Skip to content

Commit

Permalink
Merge branch 'main' into fix/update-action-list
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack authored Sep 13, 2023
2 parents 2dcfa74 + b90e547 commit 31fb1a5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/polite-hairs-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@primer/react': minor
---

Add the Column type and createColumnHelper function to easily define columns for DataTable

<!-- Changed components: DataTable -->
2 changes: 2 additions & 0 deletions src/DataTable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ export type {
TableActionsProps,
TableSkeletonProps,
} from './Table'
export {createColumnHelper} from './column'
export type {Column} from './column'
1 change: 1 addition & 0 deletions src/__tests__/__snapshots__/exports.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ exports[`@primer/react/drafts should not update exports without a semver change
"TreeView",
"UnderlineNav",
"callbackCancelledResult",
"createColumnHelper",
"useCombobox",
"useDynamicTextareaHeight",
"useIgnoreKeyboardActionsWhileComposing",
Expand Down
3 changes: 2 additions & 1 deletion src/drafts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
export {Blankslate} from '../Blankslate'
export type {BlankslateProps} from '../Blankslate'

export {DataTable, Table} from '../DataTable'
export {DataTable, Table, createColumnHelper} from '../DataTable'
export type {
DataTableProps,
TableProps,
Expand All @@ -22,6 +22,7 @@ export type {
TableTitleProps,
TableSubtitleProps,
TableActionsProps,
Column,
} from '../DataTable'

export * from '../Dialog/Dialog'
Expand Down

0 comments on commit 31fb1a5

Please sign in to comment.