11import { Meta , ArgsTable , Canvas , Story , Markdown } from ' @storybook/addon-docs' ;
2- import {
3- Table ,
4- Body ,
5- Caption ,
6- Cell ,
7- GroupRow ,
8- Head ,
9- HeaderCell ,
10- HeaderRow ,
11- OverflowButton ,
12- Row ,
13- SortableCell
14- } from ' @zendeskgarden/react-tables' ;
2+ import { Table } from ' @zendeskgarden/react-tables' ;
153import { TableStory } from ' ./stories/TableStory' ;
164import { TABLE_DATA as DATA } from ' ./stories/data' ;
175import README from ' ../README.md' ;
@@ -20,16 +8,16 @@ import README from '../README.md';
208 title = " Packages/Tables/Table"
219 component = { Table }
2210 subcomponents = { {
23- Body ,
24- Caption ,
25- Cell ,
26- GroupRow ,
27- Head ,
28- HeaderCell ,
29- HeaderRow ,
30- OverflowButton ,
31- Row ,
32- SortableCell
11+ ' Table.Body ' : Table . Body ,
12+ ' Table.Caption ' : Table . Caption ,
13+ ' Table.Cell ' : Table . Cell ,
14+ ' Table.GroupRow ' : Table . GroupRow ,
15+ ' Table.Head ' : Table . Head ,
16+ ' Table.HeaderCell ' : Table . HeaderCell ,
17+ ' Table.HeaderRow ' : Table . HeaderRow ,
18+ ' Table.OverflowButton ' : Table . OverflowButton ,
19+ ' Table.Row ' : Table . Row ,
20+ ' Table.SortableCell ' : Table . SortableCell
3321 }}
3422/>
3523
@@ -45,18 +33,18 @@ import README from '../README.md';
4533 args = { { caption: ' Caption' , data: DATA , widths: [], isBold: true }}
4634 argTypes = { {
4735 isReadOnly: { control: ' boolean' },
48- hasOverflow: { control: ' boolean' , table: { category: ' Cell' } },
49- isTruncated: { control: ' boolean' , table: { category: ' Cell' } },
50- isHidden: { name: ' hidden' , control: ' boolean' , table: { category: ' Cell' } },
51- caption: { name: ' children' , table: { category: ' Caption' } },
52- isBold: { control: ' boolean' , table: { category: ' GroupRow' } },
53- isSticky: { control: ' boolean' , table: { category: ' Head' } },
54- isStriped: { control: ' boolean' , table: { category: ' Row' } },
55- isSelected: { control: ' boolean' , table: { category: ' Row' } },
56- data: { name: ' Row[]' , table: { category: ' Story' } },
57- widths: { name: ' Cell[] widths' , table: { category: ' Story' } },
36+ hasOverflow: { control: ' boolean' , table: { category: ' Table. Cell' } },
37+ isTruncated: { control: ' boolean' , table: { category: ' Table. Cell' } },
38+ isHidden: { name: ' hidden' , control: ' boolean' , table: { category: ' Table. Cell' } },
39+ caption: { name: ' children' , table: { category: ' Table. Caption' } },
40+ isBold: { control: ' boolean' , table: { category: ' Table. GroupRow' } },
41+ isSticky: { control: ' boolean' , table: { category: ' Table. Head' } },
42+ isStriped: { control: ' boolean' , table: { category: ' Table. Row' } },
43+ isSelected: { control: ' boolean' , table: { category: ' Table. Row' } },
44+ data: { name: ' Table. Row[]' , table: { category: ' Story' } },
45+ widths: { name: ' Table. Cell[] widths' , table: { category: ' Story' } },
5846 hasSelection: { control: ' boolean' , table: { category: ' Story' } },
59- isSortable: { name: ' SortableCell' , control: ' boolean' , table: { category: ' Story' } }
47+ isSortable: { name: ' Table. SortableCell' , control: ' boolean' , table: { category: ' Story' } }
6048 }}
6149 parameters = { {
6250 design: {
0 commit comments