Skip to content

Commit 31d9a05

Browse files
fix(DataTable): export datatable utility types (#5182)
* fix(DataTable): export datatable utility types * Create old-plums-explode.md * test: update snapshot
1 parent a2536bf commit 31d9a05

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.changeset/old-plums-explode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
fix(DataTable): export datatable utility types

packages/react/src/DataTable/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ export type {
5050
TableSkeletonProps,
5151
} from './Table'
5252
export {createColumnHelper} from './column'
53-
export type {Column} from './column'
53+
export type {Column, CellAlignment, ColumnWidth} from './column'
54+
export type {UniqueRow} from './row'
55+
export type {ObjectPaths} from './utils'

packages/react/src/__tests__/__snapshots__/exports.test.ts.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,10 @@ exports[`@primer/react/experimental should not update exports without a semver c
263263
"type BlankslateProps",
264264
"ButtonBase",
265265
"type ButtonBaseProps",
266+
"type CellAlignment",
266267
"type ChildrenPropTypes",
267268
"type Column",
269+
"type ColumnWidth",
268270
"createColumnHelper",
269271
"DataTable",
270272
"type DataTableProps",
@@ -299,6 +301,7 @@ exports[`@primer/react/experimental should not update exports without a semver c
299301
"type NavListProps",
300302
"type NavListSubNavProps",
301303
"type NavListTrailingVisualProps",
304+
"type ObjectPaths",
302305
"PageHeader",
303306
"type PageHeaderProps",
304307
"type ParentLinkProps",
@@ -333,6 +336,7 @@ exports[`@primer/react/experimental should not update exports without a semver c
333336
"type UnderlinePanelsPanelProps",
334337
"type UnderlinePanelsProps",
335338
"type UnderlinePanelsTabProps",
339+
"type UniqueRow",
336340
"useFeatureFlag",
337341
"useOverflow",
338342
"useSlots",

packages/react/src/experimental/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export type {
3131
TableSubtitleProps,
3232
TableActionsProps,
3333
Column,
34+
CellAlignment,
35+
ColumnWidth,
36+
UniqueRow,
37+
ObjectPaths,
3438
} from '../DataTable'
3539

3640
export * from '../Dialog/Dialog'

0 commit comments

Comments
 (0)