@workday/canvas-kit-docs 9.0.0-alpha.384-next.3 → 9.0.0-alpha.385-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es6/lib/docs.js +782 -0
- package/dist/mdx/9.0-UPGRADE-GUIDE.mdx +72 -19
- package/dist/mdx/preview-react/table/Table.mdx +60 -0
- package/dist/mdx/preview-react/table/examples/Basic.tsx +36 -0
- package/dist/mdx/preview-react/table/examples/BasicWithHeading.tsx +34 -0
- package/dist/mdx/preview-react/table/examples/FixedColumn.tsx +127 -0
- package/dist/mdx/preview-react/table/examples/TableWithContainer.tsx +48 -0
- package/package.json +5 -5
package/dist/es6/lib/docs.js
CHANGED
|
@@ -27641,6 +27641,788 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
27641
27641
|
}
|
|
27642
27642
|
}
|
|
27643
27643
|
},
|
|
27644
|
+
{
|
|
27645
|
+
"name": "Table",
|
|
27646
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/Table.tsx",
|
|
27647
|
+
"description": "`Table` is a simple styled compound component that renders a [table](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table) element. It is used to present information in a two-dimensional table comprised of rows and columns of cells containing data.\n\n\n```tsx\nimport {Table} from '@workday/canvas-kit-preview-react/table';\n\nexport default function App() {\nreturn (\n <Table>\n <Table.Caption>Table Caption</Table.Caption>\n <Table.Head>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Header>Table Header</Table.Header>\n </Table.Row>\n </Table.Head>\n <Table.Body>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Header>Table Header</Table.Header>\n </Table.Row>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Cell>Table Data Cell</Table.Cell>\n </Table.Row>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Cell>Table Data Cell</Table.Cell>\n </Table.Row>\n </Table.Body>\n <Table.Footer>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Cell>Table Data Cell</Table.Cell>\n </Table.Row>\n </Table.Footer>\n </Table>\n);\n}\n```",
|
|
27648
|
+
"declarations": [
|
|
27649
|
+
{
|
|
27650
|
+
"name": "Table",
|
|
27651
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/Table.tsx"
|
|
27652
|
+
}
|
|
27653
|
+
],
|
|
27654
|
+
"tags": {},
|
|
27655
|
+
"type": {
|
|
27656
|
+
"kind": "enhancedComponent",
|
|
27657
|
+
"componentType": "regular",
|
|
27658
|
+
"displayName": "Table",
|
|
27659
|
+
"props": [
|
|
27660
|
+
{
|
|
27661
|
+
"kind": "property",
|
|
27662
|
+
"name": "children",
|
|
27663
|
+
"required": false,
|
|
27664
|
+
"type": {
|
|
27665
|
+
"kind": "external",
|
|
27666
|
+
"name": "ReactNode",
|
|
27667
|
+
"url": "https://reactjs.org/docs/rendering-elements.html"
|
|
27668
|
+
},
|
|
27669
|
+
"description": "",
|
|
27670
|
+
"declarations": [
|
|
27671
|
+
{
|
|
27672
|
+
"name": "children",
|
|
27673
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/Box.tsx"
|
|
27674
|
+
}
|
|
27675
|
+
],
|
|
27676
|
+
"tags": {}
|
|
27677
|
+
},
|
|
27678
|
+
{
|
|
27679
|
+
"kind": "property",
|
|
27680
|
+
"name": "as",
|
|
27681
|
+
"description": "Optional override of the default element used by the component. Any valid tag or Component. If you provided a Component, this component should forward the ref using `React.forwardRef`and spread extra props to a root element.\n\n**Note:** Not all elements make sense and some elements may cause accessibility issues. Change this value with care.",
|
|
27682
|
+
"tags": {},
|
|
27683
|
+
"declarations": [],
|
|
27684
|
+
"type": {
|
|
27685
|
+
"kind": "external",
|
|
27686
|
+
"name": "React.ElementType",
|
|
27687
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
|
|
27688
|
+
},
|
|
27689
|
+
"defaultValue": {
|
|
27690
|
+
"kind": "external",
|
|
27691
|
+
"name": "table",
|
|
27692
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table"
|
|
27693
|
+
}
|
|
27694
|
+
},
|
|
27695
|
+
{
|
|
27696
|
+
"kind": "property",
|
|
27697
|
+
"name": "ref",
|
|
27698
|
+
"description": "Optional ref. If the component represents an element, this ref will be a reference to the real DOM element of the component. If `as` is set to an element, it will be that element. If `as` is a component, the reference will be to that component (or element if the component uses `React.forwardRef`).",
|
|
27699
|
+
"tags": {},
|
|
27700
|
+
"declarations": [],
|
|
27701
|
+
"type": {
|
|
27702
|
+
"kind": "external",
|
|
27703
|
+
"name": "React.Ref",
|
|
27704
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html",
|
|
27705
|
+
"typeParameters": [
|
|
27706
|
+
{
|
|
27707
|
+
"kind": "typeParameter",
|
|
27708
|
+
"name": "R",
|
|
27709
|
+
"required": true,
|
|
27710
|
+
"defaultValue": {
|
|
27711
|
+
"kind": "external",
|
|
27712
|
+
"name": "table",
|
|
27713
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table"
|
|
27714
|
+
}
|
|
27715
|
+
}
|
|
27716
|
+
]
|
|
27717
|
+
}
|
|
27718
|
+
}
|
|
27719
|
+
],
|
|
27720
|
+
"baseElement": {
|
|
27721
|
+
"kind": "external",
|
|
27722
|
+
"name": "table",
|
|
27723
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table"
|
|
27724
|
+
},
|
|
27725
|
+
"subComponents": [
|
|
27726
|
+
{
|
|
27727
|
+
"name": "Caption",
|
|
27728
|
+
"symbol": "TableCaption",
|
|
27729
|
+
"description": "`Table.Caption` renders a [caption](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption) element.\n\n\n```tsx\nimport {Table} from '@workday/canvas-kit-preview-react/table';\n\nexport default function App() {\n return (\n <Table>\n <Table.Caption>Table Caption</Table.Caption>\n <Table.Body>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Cell>Table Cell</Table.Cell>\n </Table.Row>\n </Table.Body>\n </Table>\n );\n}\n```",
|
|
27730
|
+
"declarations": [
|
|
27731
|
+
{
|
|
27732
|
+
"name": "Caption",
|
|
27733
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/Table.tsx"
|
|
27734
|
+
}
|
|
27735
|
+
],
|
|
27736
|
+
"tags": {}
|
|
27737
|
+
},
|
|
27738
|
+
{
|
|
27739
|
+
"name": "Head",
|
|
27740
|
+
"symbol": "TableHead",
|
|
27741
|
+
"description": "`Table.Head` renders a [thead](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead) element.\n\n\n```tsx\nimport {Table} from '@workday/canvas-kit-preview-react/table';\n\nexport default function App() {\nreturn (\n <Table>\n <Table.Head>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Cell>Table Cell</Table.Cell>\n </Table.Row>\n </Table.Head>\n </Table>\n);\n}\n```",
|
|
27742
|
+
"declarations": [
|
|
27743
|
+
{
|
|
27744
|
+
"name": "Head",
|
|
27745
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/Table.tsx"
|
|
27746
|
+
}
|
|
27747
|
+
],
|
|
27748
|
+
"tags": {}
|
|
27749
|
+
},
|
|
27750
|
+
{
|
|
27751
|
+
"name": "Body",
|
|
27752
|
+
"symbol": "TableBody",
|
|
27753
|
+
"description": "`Table.Body` renders a [tbody](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody) element.\n\n\n```tsx\nimport {Table} from '@workday/canvas-kit-preview-react/table';\n\nexport default function App() {\nreturn (\n <Table>\n <Table.Body>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Cell>Table Cell</Table.Cell>\n </Table.Row>\n </Table.Body>\n </Table>\n);\n}\n```",
|
|
27754
|
+
"declarations": [
|
|
27755
|
+
{
|
|
27756
|
+
"name": "Body",
|
|
27757
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/Table.tsx"
|
|
27758
|
+
}
|
|
27759
|
+
],
|
|
27760
|
+
"tags": {}
|
|
27761
|
+
},
|
|
27762
|
+
{
|
|
27763
|
+
"name": "Row",
|
|
27764
|
+
"symbol": "TableRow",
|
|
27765
|
+
"description": "`Table.Row` renders a [tr](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr) element.\n\n**Note**: `Table.Row` is built on [Grid](/docs/components-layout-grid--basic). It will look for\nhow many children are there and if those children are valid React Elements. This will adjust the\namount of columns automatically using the `gridTemplateColumns` style prop and the width of the\ncolumns is also set using a `minmax` function in the `gridTemplateColumns` style prop. If a user\nwould like to adjust this, it can be overwritten on `Table.Row`. See the example below for how to\noverwrite `gridTemplateColumns`.\n\n\n```tsx\nimport {Table} from '@workday/canvas-kit-preview-react/table';\n\nexport default function App() {\nreturn (\n <Table>\n <Table.Head>\n <Table.Row gridTemplateColumns=\"repeat(4, minmax(100px, 1fr))\">\n <Table.Header>Table Header</Table.Header>\n <Table.Cell>Table Cell</Table.Cell>\n </Table.Row>\n </Table.Head>\n </Table>\n);\n}\n```",
|
|
27766
|
+
"declarations": [
|
|
27767
|
+
{
|
|
27768
|
+
"name": "Row",
|
|
27769
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/Table.tsx"
|
|
27770
|
+
}
|
|
27771
|
+
],
|
|
27772
|
+
"tags": {}
|
|
27773
|
+
},
|
|
27774
|
+
{
|
|
27775
|
+
"name": "Header",
|
|
27776
|
+
"symbol": "TableHeader",
|
|
27777
|
+
"description": "`Table.Header` renders a [th](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th) element.\n\n\n```tsx\nimport {Table} from '@workday/canvas-kit-preview-react/table';\n\nexport default function App() {\nreturn (\n <Table>\n <Table.Head>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Cell>Table Cell</Table.Cell>\n </Table.Row>\n </Table.Head>\n </Table>\n);\n}\n```",
|
|
27778
|
+
"declarations": [
|
|
27779
|
+
{
|
|
27780
|
+
"name": "Header",
|
|
27781
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/Table.tsx"
|
|
27782
|
+
}
|
|
27783
|
+
],
|
|
27784
|
+
"tags": {}
|
|
27785
|
+
},
|
|
27786
|
+
{
|
|
27787
|
+
"name": "Cell",
|
|
27788
|
+
"symbol": "TableCell",
|
|
27789
|
+
"description": "`Table.Cell` renders a [td](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td) element.\n\n\n```tsx\nimport {Table} from '@workday/canvas-kit-preview-react/table';\n\nexport default function App() {\nreturn (\n <Table>\n <Table.Body>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Cell>Table Cell</Table.Cell>\n </Table.Row>\n </Table.Body>\n </Table>\n);\n}\n```",
|
|
27790
|
+
"declarations": [
|
|
27791
|
+
{
|
|
27792
|
+
"name": "Cell",
|
|
27793
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/Table.tsx"
|
|
27794
|
+
}
|
|
27795
|
+
],
|
|
27796
|
+
"tags": {}
|
|
27797
|
+
},
|
|
27798
|
+
{
|
|
27799
|
+
"name": "Footer",
|
|
27800
|
+
"symbol": "TableFooter",
|
|
27801
|
+
"description": "`Table.Footer` renders a [tfoot](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot) element.\n\n\n```tsx\nimport {Table} from '@workday/canvas-kit-preview-react/table';\n\nexport default function App() {\nreturn (\n <Table>\n <Table.Footer>\n <Table.Row>\n <Table.Header>Table Header</Table.Header>\n <Table.Cell>Table Cell</Table.Cell>\n </Table.Row>\n </Table.Footer>\n </Table>\n);\n}\n```",
|
|
27802
|
+
"declarations": [
|
|
27803
|
+
{
|
|
27804
|
+
"name": "Footer",
|
|
27805
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/Table.tsx"
|
|
27806
|
+
}
|
|
27807
|
+
],
|
|
27808
|
+
"tags": {}
|
|
27809
|
+
}
|
|
27810
|
+
],
|
|
27811
|
+
"styleComponent": {
|
|
27812
|
+
"kind": "symbol",
|
|
27813
|
+
"name": "Grid"
|
|
27814
|
+
}
|
|
27815
|
+
}
|
|
27816
|
+
},
|
|
27817
|
+
{
|
|
27818
|
+
"name": "TableBody",
|
|
27819
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableBody.tsx",
|
|
27820
|
+
"description": "",
|
|
27821
|
+
"declarations": [
|
|
27822
|
+
{
|
|
27823
|
+
"name": "TableBody",
|
|
27824
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableBody.tsx"
|
|
27825
|
+
}
|
|
27826
|
+
],
|
|
27827
|
+
"tags": {},
|
|
27828
|
+
"type": {
|
|
27829
|
+
"kind": "enhancedComponent",
|
|
27830
|
+
"componentType": "regular",
|
|
27831
|
+
"displayName": "Table.Body",
|
|
27832
|
+
"props": [
|
|
27833
|
+
{
|
|
27834
|
+
"kind": "property",
|
|
27835
|
+
"name": "children",
|
|
27836
|
+
"required": false,
|
|
27837
|
+
"type": {
|
|
27838
|
+
"kind": "external",
|
|
27839
|
+
"name": "ReactNode",
|
|
27840
|
+
"url": "https://reactjs.org/docs/rendering-elements.html"
|
|
27841
|
+
},
|
|
27842
|
+
"description": "",
|
|
27843
|
+
"declarations": [
|
|
27844
|
+
{
|
|
27845
|
+
"name": "children",
|
|
27846
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/Box.tsx"
|
|
27847
|
+
}
|
|
27848
|
+
],
|
|
27849
|
+
"tags": {}
|
|
27850
|
+
},
|
|
27851
|
+
{
|
|
27852
|
+
"kind": "property",
|
|
27853
|
+
"name": "as",
|
|
27854
|
+
"description": "Optional override of the default element used by the component. Any valid tag or Component. If you provided a Component, this component should forward the ref using `React.forwardRef`and spread extra props to a root element.\n\n**Note:** Not all elements make sense and some elements may cause accessibility issues. Change this value with care.",
|
|
27855
|
+
"tags": {},
|
|
27856
|
+
"declarations": [],
|
|
27857
|
+
"type": {
|
|
27858
|
+
"kind": "external",
|
|
27859
|
+
"name": "React.ElementType",
|
|
27860
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
|
|
27861
|
+
},
|
|
27862
|
+
"defaultValue": {
|
|
27863
|
+
"kind": "external",
|
|
27864
|
+
"name": "tbody",
|
|
27865
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody"
|
|
27866
|
+
}
|
|
27867
|
+
},
|
|
27868
|
+
{
|
|
27869
|
+
"kind": "property",
|
|
27870
|
+
"name": "ref",
|
|
27871
|
+
"description": "Optional ref. If the component represents an element, this ref will be a reference to the real DOM element of the component. If `as` is set to an element, it will be that element. If `as` is a component, the reference will be to that component (or element if the component uses `React.forwardRef`).",
|
|
27872
|
+
"tags": {},
|
|
27873
|
+
"declarations": [],
|
|
27874
|
+
"type": {
|
|
27875
|
+
"kind": "external",
|
|
27876
|
+
"name": "React.Ref",
|
|
27877
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html",
|
|
27878
|
+
"typeParameters": [
|
|
27879
|
+
{
|
|
27880
|
+
"kind": "typeParameter",
|
|
27881
|
+
"name": "R",
|
|
27882
|
+
"required": true,
|
|
27883
|
+
"defaultValue": {
|
|
27884
|
+
"kind": "external",
|
|
27885
|
+
"name": "tbody",
|
|
27886
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody"
|
|
27887
|
+
}
|
|
27888
|
+
}
|
|
27889
|
+
]
|
|
27890
|
+
}
|
|
27891
|
+
}
|
|
27892
|
+
],
|
|
27893
|
+
"baseElement": {
|
|
27894
|
+
"kind": "external",
|
|
27895
|
+
"name": "tbody",
|
|
27896
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody"
|
|
27897
|
+
},
|
|
27898
|
+
"styleComponent": {
|
|
27899
|
+
"kind": "symbol",
|
|
27900
|
+
"name": "Grid"
|
|
27901
|
+
}
|
|
27902
|
+
}
|
|
27903
|
+
},
|
|
27904
|
+
{
|
|
27905
|
+
"name": "TableCaption",
|
|
27906
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableCaption.tsx",
|
|
27907
|
+
"description": "",
|
|
27908
|
+
"declarations": [
|
|
27909
|
+
{
|
|
27910
|
+
"name": "TableCaption",
|
|
27911
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableCaption.tsx"
|
|
27912
|
+
}
|
|
27913
|
+
],
|
|
27914
|
+
"tags": {},
|
|
27915
|
+
"type": {
|
|
27916
|
+
"kind": "enhancedComponent",
|
|
27917
|
+
"componentType": "regular",
|
|
27918
|
+
"displayName": "Table.Caption",
|
|
27919
|
+
"props": [
|
|
27920
|
+
{
|
|
27921
|
+
"kind": "property",
|
|
27922
|
+
"name": "children",
|
|
27923
|
+
"required": false,
|
|
27924
|
+
"type": {
|
|
27925
|
+
"kind": "external",
|
|
27926
|
+
"name": "ReactNode",
|
|
27927
|
+
"url": "https://reactjs.org/docs/rendering-elements.html"
|
|
27928
|
+
},
|
|
27929
|
+
"description": "",
|
|
27930
|
+
"declarations": [
|
|
27931
|
+
{
|
|
27932
|
+
"name": "children",
|
|
27933
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/Box.tsx"
|
|
27934
|
+
}
|
|
27935
|
+
],
|
|
27936
|
+
"tags": {}
|
|
27937
|
+
},
|
|
27938
|
+
{
|
|
27939
|
+
"kind": "property",
|
|
27940
|
+
"name": "as",
|
|
27941
|
+
"description": "Optional override of the default element used by the component. Any valid tag or Component. If you provided a Component, this component should forward the ref using `React.forwardRef`and spread extra props to a root element.\n\n**Note:** Not all elements make sense and some elements may cause accessibility issues. Change this value with care.",
|
|
27942
|
+
"tags": {},
|
|
27943
|
+
"declarations": [],
|
|
27944
|
+
"type": {
|
|
27945
|
+
"kind": "external",
|
|
27946
|
+
"name": "React.ElementType",
|
|
27947
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
|
|
27948
|
+
},
|
|
27949
|
+
"defaultValue": {
|
|
27950
|
+
"kind": "external",
|
|
27951
|
+
"name": "caption",
|
|
27952
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption"
|
|
27953
|
+
}
|
|
27954
|
+
},
|
|
27955
|
+
{
|
|
27956
|
+
"kind": "property",
|
|
27957
|
+
"name": "ref",
|
|
27958
|
+
"description": "Optional ref. If the component represents an element, this ref will be a reference to the real DOM element of the component. If `as` is set to an element, it will be that element. If `as` is a component, the reference will be to that component (or element if the component uses `React.forwardRef`).",
|
|
27959
|
+
"tags": {},
|
|
27960
|
+
"declarations": [],
|
|
27961
|
+
"type": {
|
|
27962
|
+
"kind": "external",
|
|
27963
|
+
"name": "React.Ref",
|
|
27964
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html",
|
|
27965
|
+
"typeParameters": [
|
|
27966
|
+
{
|
|
27967
|
+
"kind": "typeParameter",
|
|
27968
|
+
"name": "R",
|
|
27969
|
+
"required": true,
|
|
27970
|
+
"defaultValue": {
|
|
27971
|
+
"kind": "external",
|
|
27972
|
+
"name": "caption",
|
|
27973
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption"
|
|
27974
|
+
}
|
|
27975
|
+
}
|
|
27976
|
+
]
|
|
27977
|
+
}
|
|
27978
|
+
}
|
|
27979
|
+
],
|
|
27980
|
+
"baseElement": {
|
|
27981
|
+
"kind": "external",
|
|
27982
|
+
"name": "caption",
|
|
27983
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption"
|
|
27984
|
+
},
|
|
27985
|
+
"styleComponent": {
|
|
27986
|
+
"kind": "symbol",
|
|
27987
|
+
"name": "Flex"
|
|
27988
|
+
}
|
|
27989
|
+
}
|
|
27990
|
+
},
|
|
27991
|
+
{
|
|
27992
|
+
"name": "TableCell",
|
|
27993
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableCell.tsx",
|
|
27994
|
+
"description": "",
|
|
27995
|
+
"declarations": [
|
|
27996
|
+
{
|
|
27997
|
+
"name": "TableCell",
|
|
27998
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableCell.tsx"
|
|
27999
|
+
}
|
|
28000
|
+
],
|
|
28001
|
+
"tags": {},
|
|
28002
|
+
"type": {
|
|
28003
|
+
"kind": "enhancedComponent",
|
|
28004
|
+
"componentType": "regular",
|
|
28005
|
+
"displayName": "Table.Cell",
|
|
28006
|
+
"props": [
|
|
28007
|
+
{
|
|
28008
|
+
"kind": "property",
|
|
28009
|
+
"name": "children",
|
|
28010
|
+
"required": false,
|
|
28011
|
+
"type": {
|
|
28012
|
+
"kind": "external",
|
|
28013
|
+
"name": "ReactNode",
|
|
28014
|
+
"url": "https://reactjs.org/docs/rendering-elements.html"
|
|
28015
|
+
},
|
|
28016
|
+
"description": "",
|
|
28017
|
+
"declarations": [
|
|
28018
|
+
{
|
|
28019
|
+
"name": "children",
|
|
28020
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/Box.tsx"
|
|
28021
|
+
}
|
|
28022
|
+
],
|
|
28023
|
+
"tags": {}
|
|
28024
|
+
},
|
|
28025
|
+
{
|
|
28026
|
+
"kind": "property",
|
|
28027
|
+
"name": "as",
|
|
28028
|
+
"description": "Optional override of the default element used by the component. Any valid tag or Component. If you provided a Component, this component should forward the ref using `React.forwardRef`and spread extra props to a root element.\n\n**Note:** Not all elements make sense and some elements may cause accessibility issues. Change this value with care.",
|
|
28029
|
+
"tags": {},
|
|
28030
|
+
"declarations": [],
|
|
28031
|
+
"type": {
|
|
28032
|
+
"kind": "external",
|
|
28033
|
+
"name": "React.ElementType",
|
|
28034
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
|
|
28035
|
+
},
|
|
28036
|
+
"defaultValue": {
|
|
28037
|
+
"kind": "external",
|
|
28038
|
+
"name": "td",
|
|
28039
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td"
|
|
28040
|
+
}
|
|
28041
|
+
},
|
|
28042
|
+
{
|
|
28043
|
+
"kind": "property",
|
|
28044
|
+
"name": "ref",
|
|
28045
|
+
"description": "Optional ref. If the component represents an element, this ref will be a reference to the real DOM element of the component. If `as` is set to an element, it will be that element. If `as` is a component, the reference will be to that component (or element if the component uses `React.forwardRef`).",
|
|
28046
|
+
"tags": {},
|
|
28047
|
+
"declarations": [],
|
|
28048
|
+
"type": {
|
|
28049
|
+
"kind": "external",
|
|
28050
|
+
"name": "React.Ref",
|
|
28051
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html",
|
|
28052
|
+
"typeParameters": [
|
|
28053
|
+
{
|
|
28054
|
+
"kind": "typeParameter",
|
|
28055
|
+
"name": "R",
|
|
28056
|
+
"required": true,
|
|
28057
|
+
"defaultValue": {
|
|
28058
|
+
"kind": "external",
|
|
28059
|
+
"name": "td",
|
|
28060
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td"
|
|
28061
|
+
}
|
|
28062
|
+
}
|
|
28063
|
+
]
|
|
28064
|
+
}
|
|
28065
|
+
}
|
|
28066
|
+
],
|
|
28067
|
+
"baseElement": {
|
|
28068
|
+
"kind": "external",
|
|
28069
|
+
"name": "td",
|
|
28070
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td"
|
|
28071
|
+
},
|
|
28072
|
+
"styleComponent": {
|
|
28073
|
+
"kind": "symbol",
|
|
28074
|
+
"name": "Grid"
|
|
28075
|
+
}
|
|
28076
|
+
}
|
|
28077
|
+
},
|
|
28078
|
+
{
|
|
28079
|
+
"name": "TableFooter",
|
|
28080
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableFooter.tsx",
|
|
28081
|
+
"description": "",
|
|
28082
|
+
"declarations": [
|
|
28083
|
+
{
|
|
28084
|
+
"name": "TableFooter",
|
|
28085
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableFooter.tsx"
|
|
28086
|
+
}
|
|
28087
|
+
],
|
|
28088
|
+
"tags": {},
|
|
28089
|
+
"type": {
|
|
28090
|
+
"kind": "enhancedComponent",
|
|
28091
|
+
"componentType": "regular",
|
|
28092
|
+
"displayName": "Table.Footer",
|
|
28093
|
+
"props": [
|
|
28094
|
+
{
|
|
28095
|
+
"kind": "property",
|
|
28096
|
+
"name": "children",
|
|
28097
|
+
"required": false,
|
|
28098
|
+
"type": {
|
|
28099
|
+
"kind": "external",
|
|
28100
|
+
"name": "ReactNode",
|
|
28101
|
+
"url": "https://reactjs.org/docs/rendering-elements.html"
|
|
28102
|
+
},
|
|
28103
|
+
"description": "",
|
|
28104
|
+
"declarations": [
|
|
28105
|
+
{
|
|
28106
|
+
"name": "children",
|
|
28107
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/Box.tsx"
|
|
28108
|
+
}
|
|
28109
|
+
],
|
|
28110
|
+
"tags": {}
|
|
28111
|
+
},
|
|
28112
|
+
{
|
|
28113
|
+
"kind": "property",
|
|
28114
|
+
"name": "as",
|
|
28115
|
+
"description": "Optional override of the default element used by the component. Any valid tag or Component. If you provided a Component, this component should forward the ref using `React.forwardRef`and spread extra props to a root element.\n\n**Note:** Not all elements make sense and some elements may cause accessibility issues. Change this value with care.",
|
|
28116
|
+
"tags": {},
|
|
28117
|
+
"declarations": [],
|
|
28118
|
+
"type": {
|
|
28119
|
+
"kind": "external",
|
|
28120
|
+
"name": "React.ElementType",
|
|
28121
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
|
|
28122
|
+
},
|
|
28123
|
+
"defaultValue": {
|
|
28124
|
+
"kind": "external",
|
|
28125
|
+
"name": "tfoot",
|
|
28126
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot"
|
|
28127
|
+
}
|
|
28128
|
+
},
|
|
28129
|
+
{
|
|
28130
|
+
"kind": "property",
|
|
28131
|
+
"name": "ref",
|
|
28132
|
+
"description": "Optional ref. If the component represents an element, this ref will be a reference to the real DOM element of the component. If `as` is set to an element, it will be that element. If `as` is a component, the reference will be to that component (or element if the component uses `React.forwardRef`).",
|
|
28133
|
+
"tags": {},
|
|
28134
|
+
"declarations": [],
|
|
28135
|
+
"type": {
|
|
28136
|
+
"kind": "external",
|
|
28137
|
+
"name": "React.Ref",
|
|
28138
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html",
|
|
28139
|
+
"typeParameters": [
|
|
28140
|
+
{
|
|
28141
|
+
"kind": "typeParameter",
|
|
28142
|
+
"name": "R",
|
|
28143
|
+
"required": true,
|
|
28144
|
+
"defaultValue": {
|
|
28145
|
+
"kind": "external",
|
|
28146
|
+
"name": "tfoot",
|
|
28147
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot"
|
|
28148
|
+
}
|
|
28149
|
+
}
|
|
28150
|
+
]
|
|
28151
|
+
}
|
|
28152
|
+
}
|
|
28153
|
+
],
|
|
28154
|
+
"baseElement": {
|
|
28155
|
+
"kind": "external",
|
|
28156
|
+
"name": "tfoot",
|
|
28157
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot"
|
|
28158
|
+
},
|
|
28159
|
+
"styleComponent": {
|
|
28160
|
+
"kind": "symbol",
|
|
28161
|
+
"name": "Grid"
|
|
28162
|
+
}
|
|
28163
|
+
}
|
|
28164
|
+
},
|
|
28165
|
+
{
|
|
28166
|
+
"name": "TableHead",
|
|
28167
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableHead.tsx",
|
|
28168
|
+
"description": "",
|
|
28169
|
+
"declarations": [
|
|
28170
|
+
{
|
|
28171
|
+
"name": "TableHead",
|
|
28172
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableHead.tsx"
|
|
28173
|
+
}
|
|
28174
|
+
],
|
|
28175
|
+
"tags": {},
|
|
28176
|
+
"type": {
|
|
28177
|
+
"kind": "enhancedComponent",
|
|
28178
|
+
"componentType": "regular",
|
|
28179
|
+
"displayName": "Table.Head",
|
|
28180
|
+
"props": [
|
|
28181
|
+
{
|
|
28182
|
+
"kind": "property",
|
|
28183
|
+
"name": "children",
|
|
28184
|
+
"required": false,
|
|
28185
|
+
"type": {
|
|
28186
|
+
"kind": "external",
|
|
28187
|
+
"name": "ReactNode",
|
|
28188
|
+
"url": "https://reactjs.org/docs/rendering-elements.html"
|
|
28189
|
+
},
|
|
28190
|
+
"description": "",
|
|
28191
|
+
"declarations": [
|
|
28192
|
+
{
|
|
28193
|
+
"name": "children",
|
|
28194
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/Box.tsx"
|
|
28195
|
+
}
|
|
28196
|
+
],
|
|
28197
|
+
"tags": {}
|
|
28198
|
+
},
|
|
28199
|
+
{
|
|
28200
|
+
"kind": "property",
|
|
28201
|
+
"name": "as",
|
|
28202
|
+
"description": "Optional override of the default element used by the component. Any valid tag or Component. If you provided a Component, this component should forward the ref using `React.forwardRef`and spread extra props to a root element.\n\n**Note:** Not all elements make sense and some elements may cause accessibility issues. Change this value with care.",
|
|
28203
|
+
"tags": {},
|
|
28204
|
+
"declarations": [],
|
|
28205
|
+
"type": {
|
|
28206
|
+
"kind": "external",
|
|
28207
|
+
"name": "React.ElementType",
|
|
28208
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
|
|
28209
|
+
},
|
|
28210
|
+
"defaultValue": {
|
|
28211
|
+
"kind": "external",
|
|
28212
|
+
"name": "thead",
|
|
28213
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead"
|
|
28214
|
+
}
|
|
28215
|
+
},
|
|
28216
|
+
{
|
|
28217
|
+
"kind": "property",
|
|
28218
|
+
"name": "ref",
|
|
28219
|
+
"description": "Optional ref. If the component represents an element, this ref will be a reference to the real DOM element of the component. If `as` is set to an element, it will be that element. If `as` is a component, the reference will be to that component (or element if the component uses `React.forwardRef`).",
|
|
28220
|
+
"tags": {},
|
|
28221
|
+
"declarations": [],
|
|
28222
|
+
"type": {
|
|
28223
|
+
"kind": "external",
|
|
28224
|
+
"name": "React.Ref",
|
|
28225
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html",
|
|
28226
|
+
"typeParameters": [
|
|
28227
|
+
{
|
|
28228
|
+
"kind": "typeParameter",
|
|
28229
|
+
"name": "R",
|
|
28230
|
+
"required": true,
|
|
28231
|
+
"defaultValue": {
|
|
28232
|
+
"kind": "external",
|
|
28233
|
+
"name": "thead",
|
|
28234
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead"
|
|
28235
|
+
}
|
|
28236
|
+
}
|
|
28237
|
+
]
|
|
28238
|
+
}
|
|
28239
|
+
}
|
|
28240
|
+
],
|
|
28241
|
+
"baseElement": {
|
|
28242
|
+
"kind": "external",
|
|
28243
|
+
"name": "thead",
|
|
28244
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead"
|
|
28245
|
+
},
|
|
28246
|
+
"styleComponent": {
|
|
28247
|
+
"kind": "symbol",
|
|
28248
|
+
"name": "Grid"
|
|
28249
|
+
}
|
|
28250
|
+
}
|
|
28251
|
+
},
|
|
28252
|
+
{
|
|
28253
|
+
"name": "TableHeader",
|
|
28254
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableHeader.tsx",
|
|
28255
|
+
"description": "",
|
|
28256
|
+
"declarations": [
|
|
28257
|
+
{
|
|
28258
|
+
"name": "TableHeader",
|
|
28259
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableHeader.tsx"
|
|
28260
|
+
}
|
|
28261
|
+
],
|
|
28262
|
+
"tags": {},
|
|
28263
|
+
"type": {
|
|
28264
|
+
"kind": "enhancedComponent",
|
|
28265
|
+
"componentType": "regular",
|
|
28266
|
+
"displayName": "Table.Header",
|
|
28267
|
+
"props": [
|
|
28268
|
+
{
|
|
28269
|
+
"kind": "property",
|
|
28270
|
+
"name": "children",
|
|
28271
|
+
"required": false,
|
|
28272
|
+
"type": {
|
|
28273
|
+
"kind": "external",
|
|
28274
|
+
"name": "ReactNode",
|
|
28275
|
+
"url": "https://reactjs.org/docs/rendering-elements.html"
|
|
28276
|
+
},
|
|
28277
|
+
"description": "",
|
|
28278
|
+
"declarations": [
|
|
28279
|
+
{
|
|
28280
|
+
"name": "children",
|
|
28281
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/Box.tsx"
|
|
28282
|
+
}
|
|
28283
|
+
],
|
|
28284
|
+
"tags": {}
|
|
28285
|
+
},
|
|
28286
|
+
{
|
|
28287
|
+
"kind": "property",
|
|
28288
|
+
"name": "as",
|
|
28289
|
+
"description": "Optional override of the default element used by the component. Any valid tag or Component. If you provided a Component, this component should forward the ref using `React.forwardRef`and spread extra props to a root element.\n\n**Note:** Not all elements make sense and some elements may cause accessibility issues. Change this value with care.",
|
|
28290
|
+
"tags": {},
|
|
28291
|
+
"declarations": [],
|
|
28292
|
+
"type": {
|
|
28293
|
+
"kind": "external",
|
|
28294
|
+
"name": "React.ElementType",
|
|
28295
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
|
|
28296
|
+
},
|
|
28297
|
+
"defaultValue": {
|
|
28298
|
+
"kind": "external",
|
|
28299
|
+
"name": "th",
|
|
28300
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th"
|
|
28301
|
+
}
|
|
28302
|
+
},
|
|
28303
|
+
{
|
|
28304
|
+
"kind": "property",
|
|
28305
|
+
"name": "ref",
|
|
28306
|
+
"description": "Optional ref. If the component represents an element, this ref will be a reference to the real DOM element of the component. If `as` is set to an element, it will be that element. If `as` is a component, the reference will be to that component (or element if the component uses `React.forwardRef`).",
|
|
28307
|
+
"tags": {},
|
|
28308
|
+
"declarations": [],
|
|
28309
|
+
"type": {
|
|
28310
|
+
"kind": "external",
|
|
28311
|
+
"name": "React.Ref",
|
|
28312
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html",
|
|
28313
|
+
"typeParameters": [
|
|
28314
|
+
{
|
|
28315
|
+
"kind": "typeParameter",
|
|
28316
|
+
"name": "R",
|
|
28317
|
+
"required": true,
|
|
28318
|
+
"defaultValue": {
|
|
28319
|
+
"kind": "external",
|
|
28320
|
+
"name": "th",
|
|
28321
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th"
|
|
28322
|
+
}
|
|
28323
|
+
}
|
|
28324
|
+
]
|
|
28325
|
+
}
|
|
28326
|
+
}
|
|
28327
|
+
],
|
|
28328
|
+
"baseElement": {
|
|
28329
|
+
"kind": "external",
|
|
28330
|
+
"name": "th",
|
|
28331
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th"
|
|
28332
|
+
},
|
|
28333
|
+
"styleComponent": {
|
|
28334
|
+
"kind": "symbol",
|
|
28335
|
+
"name": "Grid"
|
|
28336
|
+
}
|
|
28337
|
+
}
|
|
28338
|
+
},
|
|
28339
|
+
{
|
|
28340
|
+
"name": "TableRow",
|
|
28341
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableRow.tsx",
|
|
28342
|
+
"description": "",
|
|
28343
|
+
"declarations": [
|
|
28344
|
+
{
|
|
28345
|
+
"name": "TableRow",
|
|
28346
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/table/lib/TableRow.tsx"
|
|
28347
|
+
}
|
|
28348
|
+
],
|
|
28349
|
+
"tags": {},
|
|
28350
|
+
"type": {
|
|
28351
|
+
"kind": "enhancedComponent",
|
|
28352
|
+
"componentType": "regular",
|
|
28353
|
+
"displayName": "Table.Row",
|
|
28354
|
+
"props": [
|
|
28355
|
+
{
|
|
28356
|
+
"kind": "property",
|
|
28357
|
+
"name": "children",
|
|
28358
|
+
"required": false,
|
|
28359
|
+
"type": {
|
|
28360
|
+
"kind": "external",
|
|
28361
|
+
"name": "ReactNode",
|
|
28362
|
+
"url": "https://reactjs.org/docs/rendering-elements.html"
|
|
28363
|
+
},
|
|
28364
|
+
"description": "",
|
|
28365
|
+
"declarations": [
|
|
28366
|
+
{
|
|
28367
|
+
"name": "children",
|
|
28368
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/layout/lib/Box.tsx"
|
|
28369
|
+
}
|
|
28370
|
+
],
|
|
28371
|
+
"tags": {}
|
|
28372
|
+
},
|
|
28373
|
+
{
|
|
28374
|
+
"kind": "property",
|
|
28375
|
+
"name": "as",
|
|
28376
|
+
"description": "Optional override of the default element used by the component. Any valid tag or Component. If you provided a Component, this component should forward the ref using `React.forwardRef`and spread extra props to a root element.\n\n**Note:** Not all elements make sense and some elements may cause accessibility issues. Change this value with care.",
|
|
28377
|
+
"tags": {},
|
|
28378
|
+
"declarations": [],
|
|
28379
|
+
"type": {
|
|
28380
|
+
"kind": "external",
|
|
28381
|
+
"name": "React.ElementType",
|
|
28382
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
|
|
28383
|
+
},
|
|
28384
|
+
"defaultValue": {
|
|
28385
|
+
"kind": "external",
|
|
28386
|
+
"name": "tr",
|
|
28387
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr"
|
|
28388
|
+
}
|
|
28389
|
+
},
|
|
28390
|
+
{
|
|
28391
|
+
"kind": "property",
|
|
28392
|
+
"name": "ref",
|
|
28393
|
+
"description": "Optional ref. If the component represents an element, this ref will be a reference to the real DOM element of the component. If `as` is set to an element, it will be that element. If `as` is a component, the reference will be to that component (or element if the component uses `React.forwardRef`).",
|
|
28394
|
+
"tags": {},
|
|
28395
|
+
"declarations": [],
|
|
28396
|
+
"type": {
|
|
28397
|
+
"kind": "external",
|
|
28398
|
+
"name": "React.Ref",
|
|
28399
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html",
|
|
28400
|
+
"typeParameters": [
|
|
28401
|
+
{
|
|
28402
|
+
"kind": "typeParameter",
|
|
28403
|
+
"name": "R",
|
|
28404
|
+
"required": true,
|
|
28405
|
+
"defaultValue": {
|
|
28406
|
+
"kind": "external",
|
|
28407
|
+
"name": "tr",
|
|
28408
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr"
|
|
28409
|
+
}
|
|
28410
|
+
}
|
|
28411
|
+
]
|
|
28412
|
+
}
|
|
28413
|
+
}
|
|
28414
|
+
],
|
|
28415
|
+
"baseElement": {
|
|
28416
|
+
"kind": "external",
|
|
28417
|
+
"name": "tr",
|
|
28418
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr"
|
|
28419
|
+
},
|
|
28420
|
+
"styleComponent": {
|
|
28421
|
+
"kind": "symbol",
|
|
28422
|
+
"name": "Grid"
|
|
28423
|
+
}
|
|
28424
|
+
}
|
|
28425
|
+
},
|
|
27644
28426
|
{
|
|
27645
28427
|
"name": "TextAreaProps",
|
|
27646
28428
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/preview-react/text-area/lib/TextArea.tsx",
|
|
@@ -5,6 +5,8 @@ This guide contains an overview of the changes in Canvas Kit v9. Please
|
|
|
5
5
|
any questions.
|
|
6
6
|
|
|
7
7
|
- [Codemod](#codemod)
|
|
8
|
+
- [New Components](#new-components)
|
|
9
|
+
- [Table](#table)
|
|
8
10
|
- [Removals](#Removals)
|
|
9
11
|
- [Drawer](#drawer)
|
|
10
12
|
- [Layout and Column](#layout-and-column)
|
|
@@ -12,7 +14,7 @@ any questions.
|
|
|
12
14
|
- [focusRing](#focusring)
|
|
13
15
|
- [useCanvasTheme and getCanvasTheme](#usecanvastheme-and-getcanvastheme)
|
|
14
16
|
- [Deprecations](#deprecations)
|
|
15
|
-
|
|
17
|
+
- [useThemeRTL](#usethemertl)
|
|
16
18
|
- [Token Updates](#token-updates)
|
|
17
19
|
- [Depth](#depth)
|
|
18
20
|
- [Component Updates](#component-updates)
|
|
@@ -57,12 +59,61 @@ handled by the codemod are marked with 🤖 in the Upgrade Guide.**
|
|
|
57
59
|
the changes from the codemod as a single isolated commit (separate from other changes) so you can
|
|
58
60
|
roll back more easily if necessary.
|
|
59
61
|
|
|
60
|
-
##
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
## New Components
|
|
63
|
+
|
|
64
|
+
### Table
|
|
65
|
+
|
|
66
|
+
We've introduced a new `Table`
|
|
67
|
+
[compound component](/getting-started/for-developers/resources/compound-components/) to the Preview
|
|
68
|
+
package. `Table` is a compound component that is used to present information in a two-dimensional
|
|
69
|
+
[table](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table) comprised of rows and
|
|
70
|
+
columns of cells containing data.
|
|
63
71
|
|
|
72
|
+
```tsx
|
|
73
|
+
import {Table} from '@workday/canvas-kit-preview-react/table';
|
|
74
|
+
|
|
75
|
+
export default function App() {
|
|
76
|
+
return (
|
|
77
|
+
<Table>
|
|
78
|
+
<Table.Caption>Table Caption</Table.Caption>
|
|
79
|
+
<Table.Head>
|
|
80
|
+
<Table.Row>
|
|
81
|
+
<Table.Header>Table Header</Table.Header>
|
|
82
|
+
<Table.Header>Table Header</Table.Header>
|
|
83
|
+
</Table.Row>
|
|
84
|
+
</Table.Head>
|
|
85
|
+
<Table.Body>
|
|
86
|
+
<Table.Row>
|
|
87
|
+
<Table.Header>Table Header</Table.Header>
|
|
88
|
+
<Table.Header>Table Header</Table.Header>
|
|
89
|
+
</Table.Row>
|
|
90
|
+
<Table.Divider />
|
|
91
|
+
<Table.Row>
|
|
92
|
+
<Table.Header>Table Header</Table.Header>
|
|
93
|
+
<Table.Cell>Table Data Cell</Table.Cell>
|
|
94
|
+
</Table.Row>
|
|
95
|
+
<Table.Divider />
|
|
96
|
+
<Table.Row>
|
|
97
|
+
<Table.Header>Table Header</Table.Header>
|
|
98
|
+
<Table.Cell>Table Data Cell</Table.Cell>
|
|
99
|
+
</Table.Row>
|
|
100
|
+
</Table.Body>
|
|
101
|
+
<Table.Divider />
|
|
102
|
+
<Table.Footer>
|
|
103
|
+
<Table.Row>
|
|
104
|
+
<Table.Header>Table Header</Table.Header>
|
|
105
|
+
<Table.Cell>Table Data Cell</Table.Cell>
|
|
106
|
+
</Table.Row>
|
|
107
|
+
</Table.Footer>
|
|
108
|
+
</Table>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
```
|
|
64
112
|
|
|
113
|
+
## Removals
|
|
65
114
|
|
|
115
|
+
Removals are deletions from our codebase and you can no longer consume this component. We've either
|
|
116
|
+
promoted or replaced a component or utility.
|
|
66
117
|
|
|
67
118
|
### Drawer
|
|
68
119
|
|
|
@@ -156,15 +207,16 @@ We've removed `useCanvasTheme` and `getCanvasTheme`. Please use `useTheme` and `
|
|
|
156
207
|
|
|
157
208
|
## Deprecations
|
|
158
209
|
|
|
159
|
-
We add the [@deprecated](https://jsdoc.app/tags-deprecated.html) from JSDoc to code that we plan to
|
|
160
|
-
Al though you can still consume this code, we want consumers to move
|
|
210
|
+
We add the [@deprecated](https://jsdoc.app/tags-deprecated.html) from JSDoc to code that we plan to
|
|
211
|
+
deprecate in the near future. Al though you can still consume this code, we want consumers to move
|
|
212
|
+
to a utility or component that is more stable.
|
|
161
213
|
|
|
162
214
|
### useThemeRTL
|
|
163
215
|
|
|
164
216
|
**PR:** [#2119](https://github.com/Workday/canvas-kit/pull/2119)
|
|
165
217
|
|
|
166
|
-
We've deprecated `useThemeRTL` from [Labs](#labs). Although you may still use this utility, we
|
|
167
|
-
using
|
|
218
|
+
We've deprecated `useThemeRTL` from [Labs](#labs). Although you may still use this utility, we
|
|
219
|
+
recommend using
|
|
168
220
|
[CSS logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties)
|
|
169
221
|
instead.
|
|
170
222
|
|
|
@@ -222,8 +274,8 @@ within a form, add `type="submit"` to the button.
|
|
|
222
274
|
|
|
223
275
|
**PR:** [#2044](https://github.com/Workday/canvas-kit/pull/2044)
|
|
224
276
|
|
|
225
|
-
We've promoted `Toast` from [Labs](#labs) to [Main](#main). It replaces the `Toast` that was
|
|
226
|
-
reference, see
|
|
277
|
+
We've promoted `Toast` from [Labs](#labs) to [Main](#main). It replaces the `Toast` that was
|
|
278
|
+
previously in [Main](#main) (for reference, see
|
|
227
279
|
[`Toast`](https://d2krrudi3mmzzw.cloudfront.net/v8/?path=/docs/components-popups-toast--error) in
|
|
228
280
|
[Main](#main) from v8).
|
|
229
281
|
|
|
@@ -250,9 +302,9 @@ mode: `status`, `alert`, or `dialog`.
|
|
|
250
302
|
```
|
|
251
303
|
|
|
252
304
|
🤖 The codemod will rewrite your usages of the previous `Toast` in [Main](#main) to use the compound
|
|
253
|
-
component API of the new `Toast` in [Main](#main). `mode` will be set to `dialog` if the `Toast`
|
|
254
|
-
used `actionText` or `onActionClick`. The codemod will also update imports from the
|
|
255
|
-
instead import from [Main](#main).
|
|
305
|
+
component API of the new `Toast` in [Main](#main). `mode` will be set to `dialog` if the `Toast`
|
|
306
|
+
previously used `actionText` or `onActionClick`. The codemod will also update imports from the
|
|
307
|
+
[Labs](#labs) `Toast` to instead import from [Main](#main).
|
|
256
308
|
|
|
257
309
|
> **Note:** You will manually need to set `mode` to `alert` if your `Toast` conveys urgent and
|
|
258
310
|
> important information such as an error.
|
|
@@ -271,7 +323,8 @@ also added `getTheme` to provide access to a theme from `styled` or class compon
|
|
|
271
323
|
|
|
272
324
|
**PR:** [#2119](https://github.com/Workday/canvas-kit/pull/2119)
|
|
273
325
|
|
|
274
|
-
We've promoted `useThemedRing` from [Labs](#labs) to [Main](#main). `useThemedRing` allows you to
|
|
326
|
+
We've promoted `useThemedRing` from [Labs](#labs) to [Main](#main). `useThemedRing` allows you to
|
|
327
|
+
theme focus rings.
|
|
275
328
|
|
|
276
329
|
🤖 The codemod will update the import for this utility.
|
|
277
330
|
|
|
@@ -291,16 +344,16 @@ communicated in advance and accompanied by migration strategies.
|
|
|
291
344
|
|
|
292
345
|
Our Preview package of Canvas Kit tokens, components, and utilities at
|
|
293
346
|
`@workday/canvas-kit-preview-react` has undergone a full design and a11y review and is approved for
|
|
294
|
-
use in product, but may not be up to the high code standards upheld in the [Main](#main) package.
|
|
295
|
-
analagous to code in beta.
|
|
347
|
+
use in product, but may not be up to the high code standards upheld in the [Main](#main) package.
|
|
348
|
+
Preview is analagous to code in beta.
|
|
296
349
|
|
|
297
350
|
Breaking changes are unlikely, but possible, and can be deployed to Preview at any time without
|
|
298
351
|
triggering a major version update, though such changes will be communicated in advance and
|
|
299
352
|
accompanied by migration strategies.
|
|
300
353
|
|
|
301
|
-
Generally speaking, our goal is to eventually promote code from Preview to [Main](#main).
|
|
302
|
-
component with the same name will exist in both [Main](#main) and Preview (for
|
|
303
|
-
in [Preview](/components/buttons/segmented-control/) and
|
|
354
|
+
Generally speaking, our goal is to eventually promote code from Preview to [Main](#main).
|
|
355
|
+
Occasionally, a component with the same name will exist in both [Main](#main) and Preview (for
|
|
356
|
+
example, see Segmented Control in [Preview](/components/buttons/segmented-control/) and
|
|
304
357
|
[Main](https://d2krrudi3mmzzw.cloudfront.net/v8/?path=/docs/components-buttons-segmented-control--basic)).
|
|
305
358
|
In these cases, Preview serves as a staging ground for an improved version of the component with a
|
|
306
359
|
different API. The component in [Main](#main) will eventually be replaced with the one in Preview.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {SymbolDoc, Specifications} from '@workday/canvas-kit-docs';
|
|
2
|
+
import {Table} from '@workday/canvas-kit-preview-react/table';
|
|
3
|
+
// examples
|
|
4
|
+
import Basic from './examples/Basic';
|
|
5
|
+
import BasicWithHeading from './examples/BasicWithHeading';
|
|
6
|
+
import FixedColumn from './examples/FixedColumn';
|
|
7
|
+
import TableWithContainer from './examples/TableWithContainer';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# Canvas Kit Table
|
|
11
|
+
|
|
12
|
+
`Table` is a simple styled compound component that renders a
|
|
13
|
+
[table](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table) element. It is used to
|
|
14
|
+
present information in a two-dimensional table comprised of rows and columns of cells containing
|
|
15
|
+
data.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
yarn add @workday/canvas-kit-preview-react
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
### Basic Example
|
|
26
|
+
|
|
27
|
+
Users may not want to use a `caption` so they can import
|
|
28
|
+
[Heading](/docs/components-text-heading--basic) or [Text](/docs/components-text-text--basic)
|
|
29
|
+
instead. This will give the user more flexibility around the customization of the title/heading of
|
|
30
|
+
their table.
|
|
31
|
+
|
|
32
|
+
<ExampleCodeBlock code={BasicWithHeading} />
|
|
33
|
+
|
|
34
|
+
### Example with Container
|
|
35
|
+
|
|
36
|
+
Users may want to have some padding around the `table` and have inset dividers for their rows. This
|
|
37
|
+
showcases how a user can achieve this with creating a styled component to wrap the `table`.
|
|
38
|
+
|
|
39
|
+
<ExampleCodeBlock code={TableWithContainer} />
|
|
40
|
+
|
|
41
|
+
### Example with Caption
|
|
42
|
+
|
|
43
|
+
We built a simple table that includes a `caption` without a Heading. A `caption` is not required but
|
|
44
|
+
it is good for
|
|
45
|
+
[accessibility](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table#accessibility_concerns)
|
|
46
|
+
purposes.
|
|
47
|
+
|
|
48
|
+
<ExampleCodeBlock code={Basic} />
|
|
49
|
+
|
|
50
|
+
### Fixed Column with TableContainer
|
|
51
|
+
|
|
52
|
+
Users may want to have some padding surrounding their table and have a fixed column. They can use
|
|
53
|
+
the `TableContainer` to wrap the `Table` component and some styles to make it so that the left
|
|
54
|
+
column is fixed.
|
|
55
|
+
|
|
56
|
+
<ExampleCodeBlock code={FixedColumn} />
|
|
57
|
+
|
|
58
|
+
## Component API
|
|
59
|
+
|
|
60
|
+
<SymbolDoc name="Table" fileName="/preview-react/" />
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {Table} from '@workday/canvas-kit-preview-react/table';
|
|
4
|
+
|
|
5
|
+
export default () => {
|
|
6
|
+
return (
|
|
7
|
+
<Table>
|
|
8
|
+
<Table.Caption>Coffee Drinks and Sizes</Table.Caption>
|
|
9
|
+
<Table.Head>
|
|
10
|
+
<Table.Row>
|
|
11
|
+
<Table.Header backgroundColor="soap100">Drink</Table.Header>
|
|
12
|
+
<Table.Header backgroundColor="soap100">Size</Table.Header>
|
|
13
|
+
</Table.Row>
|
|
14
|
+
</Table.Head>
|
|
15
|
+
<Table.Body>
|
|
16
|
+
<Table.Row>
|
|
17
|
+
<Table.Cell>Espresso</Table.Cell>
|
|
18
|
+
<Table.Cell>1 oz</Table.Cell>
|
|
19
|
+
</Table.Row>
|
|
20
|
+
<Table.Row>
|
|
21
|
+
<Table.Cell>Macchiato</Table.Cell>
|
|
22
|
+
<Table.Cell>2 oz Espresso</Table.Cell>
|
|
23
|
+
</Table.Row>
|
|
24
|
+
<Table.Row>
|
|
25
|
+
<Table.Cell>Cortado</Table.Cell>
|
|
26
|
+
<Table.Cell>2 oz Espresso, 1 oz Foamed Milk</Table.Cell>
|
|
27
|
+
</Table.Row>
|
|
28
|
+
<Table.Row></Table.Row>
|
|
29
|
+
<Table.Row>
|
|
30
|
+
<Table.Cell>Cappuccino</Table.Cell>
|
|
31
|
+
<Table.Cell>2 oz Espresso, 2 oz Foamed Milk, 2 oz Steamed Milk</Table.Cell>
|
|
32
|
+
</Table.Row>
|
|
33
|
+
</Table.Body>
|
|
34
|
+
</Table>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {Table} from '@workday/canvas-kit-preview-react/table';
|
|
4
|
+
import {Heading} from '@workday/canvas-kit-react/text';
|
|
5
|
+
|
|
6
|
+
export default () => {
|
|
7
|
+
return (
|
|
8
|
+
<>
|
|
9
|
+
<Heading size="small">Pizza Toppings</Heading>
|
|
10
|
+
<Table>
|
|
11
|
+
<Table.Head>
|
|
12
|
+
<Table.Row>
|
|
13
|
+
<Table.Header backgroundColor="soap100">Toppings</Table.Header>
|
|
14
|
+
<Table.Header backgroundColor="soap100">Amount</Table.Header>
|
|
15
|
+
</Table.Row>
|
|
16
|
+
</Table.Head>
|
|
17
|
+
<Table.Body>
|
|
18
|
+
<Table.Row>
|
|
19
|
+
<Table.Cell>Pepperoni</Table.Cell>
|
|
20
|
+
<Table.Cell>2.5 oz</Table.Cell>
|
|
21
|
+
</Table.Row>
|
|
22
|
+
<Table.Row>
|
|
23
|
+
<Table.Cell>Mozzarella</Table.Cell>
|
|
24
|
+
<Table.Cell>5 oz</Table.Cell>
|
|
25
|
+
</Table.Row>
|
|
26
|
+
<Table.Row>
|
|
27
|
+
<Table.Cell>Basil</Table.Cell>
|
|
28
|
+
<Table.Cell>10 Leaves</Table.Cell>
|
|
29
|
+
</Table.Row>
|
|
30
|
+
</Table.Body>
|
|
31
|
+
</Table>
|
|
32
|
+
</>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {Table} from '@workday/canvas-kit-preview-react/table';
|
|
4
|
+
import {Heading} from '@workday/canvas-kit-react/text';
|
|
5
|
+
import {colors} from '@workday/canvas-kit-react/tokens';
|
|
6
|
+
|
|
7
|
+
export default () => {
|
|
8
|
+
const exampleData = [
|
|
9
|
+
{
|
|
10
|
+
brand: 'Porsche',
|
|
11
|
+
model: '992 911 GT3',
|
|
12
|
+
year: '2022',
|
|
13
|
+
price: 'Starts at $160,000',
|
|
14
|
+
engine: '4.0L Flat 6',
|
|
15
|
+
transmission: 'PDK or 7-Speed Manual',
|
|
16
|
+
horsepower: '502hp',
|
|
17
|
+
torque: '346 lb-ft',
|
|
18
|
+
curbWeight: '3,164 lbs',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
brand: 'BMW',
|
|
22
|
+
model: 'M5 Competition',
|
|
23
|
+
year: '2018',
|
|
24
|
+
price: 'Starts at $105,000',
|
|
25
|
+
engine: 'Twin-Turbo 4.4L V8',
|
|
26
|
+
transmission: 'Automatic',
|
|
27
|
+
horsepower: '627hp',
|
|
28
|
+
torque: '553 lb-ft',
|
|
29
|
+
curbWeight: '4,345 lbs',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
brand: 'Audi',
|
|
33
|
+
model: 'R8',
|
|
34
|
+
year: '2022',
|
|
35
|
+
price: 'Starts at $148,000',
|
|
36
|
+
engine: '5.2L V10',
|
|
37
|
+
transmission: 'Automatic',
|
|
38
|
+
horsepower: '562hp',
|
|
39
|
+
torque: '408 lb-ft',
|
|
40
|
+
curbWeight: '3,594 lbs',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
brand: 'Lotus',
|
|
44
|
+
model: 'Emira',
|
|
45
|
+
year: '2023',
|
|
46
|
+
price: 'Starts at $78,000',
|
|
47
|
+
engine: 'Supercharged 3.5L V6',
|
|
48
|
+
transmission: 'Automatic or 6-Speed Manual',
|
|
49
|
+
horsepower: '400hp',
|
|
50
|
+
torque: '317 lb-ft',
|
|
51
|
+
curbWeight: '3520 lbs',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
brand: 'Toyota',
|
|
55
|
+
model: 'Supra',
|
|
56
|
+
year: '1998',
|
|
57
|
+
price: '$40,000 - $80,000',
|
|
58
|
+
engine: '3.0L Inline 6',
|
|
59
|
+
transmission: 'Automatic or 6-Speed Manual',
|
|
60
|
+
horsepower: '320hp',
|
|
61
|
+
torque: '315 lb-ft',
|
|
62
|
+
curbWeight: '3,599 lbs',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
brand: 'Nissan',
|
|
66
|
+
model: 'Skyline GT-R',
|
|
67
|
+
year: '1994',
|
|
68
|
+
price: '$45,000 - $90,000',
|
|
69
|
+
engine: '2.6L Twin-Turbo Inline 6',
|
|
70
|
+
transmission: '5-Speed Manual',
|
|
71
|
+
horsepower: '276hp',
|
|
72
|
+
torque: '260 lb-ft',
|
|
73
|
+
curbWeight: '3,153 lbs',
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
return (
|
|
77
|
+
<>
|
|
78
|
+
<Heading size="small">Performance Car Specs</Heading>
|
|
79
|
+
<Table>
|
|
80
|
+
<Table.Head>
|
|
81
|
+
<Table.Row>
|
|
82
|
+
<Table.Header
|
|
83
|
+
position="sticky"
|
|
84
|
+
left="0"
|
|
85
|
+
backgroundColor="soap100"
|
|
86
|
+
borderRight={`2px solid ${colors.soap400}`}
|
|
87
|
+
>
|
|
88
|
+
Brand
|
|
89
|
+
</Table.Header>
|
|
90
|
+
<Table.Header>Model</Table.Header>
|
|
91
|
+
<Table.Header>Year</Table.Header>
|
|
92
|
+
<Table.Header>Price</Table.Header>
|
|
93
|
+
<Table.Header>Engine</Table.Header>
|
|
94
|
+
<Table.Header>Transmission</Table.Header>
|
|
95
|
+
<Table.Header>Horsepower</Table.Header>
|
|
96
|
+
<Table.Header>Torque</Table.Header>
|
|
97
|
+
<Table.Header>Tires</Table.Header>
|
|
98
|
+
</Table.Row>
|
|
99
|
+
</Table.Head>
|
|
100
|
+
<Table.Body>
|
|
101
|
+
{exampleData.map(item => (
|
|
102
|
+
<>
|
|
103
|
+
<Table.Row>
|
|
104
|
+
<Table.Header
|
|
105
|
+
position="sticky"
|
|
106
|
+
left="0"
|
|
107
|
+
backgroundColor="soap100"
|
|
108
|
+
borderRight={`2px solid ${colors.soap400}`}
|
|
109
|
+
>
|
|
110
|
+
{item.brand}
|
|
111
|
+
</Table.Header>
|
|
112
|
+
<Table.Cell>{item.model}</Table.Cell>
|
|
113
|
+
<Table.Cell>{item.year}</Table.Cell>
|
|
114
|
+
<Table.Cell>{item.price}</Table.Cell>
|
|
115
|
+
<Table.Cell>{item.engine}</Table.Cell>
|
|
116
|
+
<Table.Cell>{item.transmission}</Table.Cell>
|
|
117
|
+
<Table.Cell>{item.horsepower}</Table.Cell>
|
|
118
|
+
<Table.Cell>{item.torque}</Table.Cell>
|
|
119
|
+
<Table.Cell>{item.curbWeight}</Table.Cell>
|
|
120
|
+
</Table.Row>
|
|
121
|
+
</>
|
|
122
|
+
))}
|
|
123
|
+
</Table.Body>
|
|
124
|
+
</Table>
|
|
125
|
+
</>
|
|
126
|
+
);
|
|
127
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {Table} from '@workday/canvas-kit-preview-react/table';
|
|
4
|
+
import {Box} from '@workday/canvas-kit-react/layout';
|
|
5
|
+
import {Heading} from '@workday/canvas-kit-react/text';
|
|
6
|
+
import {space, borderRadius, colors} from '@workday/canvas-kit-react/tokens';
|
|
7
|
+
import styled from '@emotion/styled';
|
|
8
|
+
|
|
9
|
+
const Container = styled(Box)({
|
|
10
|
+
border: `1px solid ${colors.soap500}`,
|
|
11
|
+
borderRadius: borderRadius.l,
|
|
12
|
+
paddingTop: space.xxxs,
|
|
13
|
+
paddingRight: space.xs,
|
|
14
|
+
paddingLeft: space.xs,
|
|
15
|
+
paddingBottom: space.xs,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export default () => {
|
|
19
|
+
return (
|
|
20
|
+
<>
|
|
21
|
+
<Heading size="small">Pizza Toppings</Heading>
|
|
22
|
+
<Container>
|
|
23
|
+
<Table border="none">
|
|
24
|
+
<Table.Head>
|
|
25
|
+
<Table.Row>
|
|
26
|
+
<Table.Header borderColor="soap500">Toppings</Table.Header>
|
|
27
|
+
<Table.Header borderColor="soap500">Amount</Table.Header>
|
|
28
|
+
</Table.Row>
|
|
29
|
+
</Table.Head>
|
|
30
|
+
<Table.Body>
|
|
31
|
+
<Table.Row>
|
|
32
|
+
<Table.Cell>Pepperoni</Table.Cell>
|
|
33
|
+
<Table.Cell>2.5 oz</Table.Cell>
|
|
34
|
+
</Table.Row>
|
|
35
|
+
<Table.Row>
|
|
36
|
+
<Table.Cell>Mozzarella</Table.Cell>
|
|
37
|
+
<Table.Cell>5 oz</Table.Cell>
|
|
38
|
+
</Table.Row>
|
|
39
|
+
<Table.Row>
|
|
40
|
+
<Table.Cell>Basil</Table.Cell>
|
|
41
|
+
<Table.Cell>10 Leaves</Table.Cell>
|
|
42
|
+
</Table.Row>
|
|
43
|
+
</Table.Body>
|
|
44
|
+
</Table>
|
|
45
|
+
</Container>
|
|
46
|
+
</>
|
|
47
|
+
);
|
|
48
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.385-next.4+399695e0",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
46
|
"@storybook/csf": "0.0.1",
|
|
47
|
-
"@workday/canvas-kit-labs-react": "^9.0.0-alpha.
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^9.0.0-alpha.
|
|
49
|
-
"@workday/canvas-kit-react": "^9.0.0-alpha.
|
|
47
|
+
"@workday/canvas-kit-labs-react": "^9.0.0-alpha.385-next.4+399695e0",
|
|
48
|
+
"@workday/canvas-kit-preview-react": "^9.0.0-alpha.385-next.4+399695e0",
|
|
49
|
+
"@workday/canvas-kit-react": "^9.0.0-alpha.385-next.4+399695e0",
|
|
50
50
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
51
51
|
"markdown-to-jsx": "^6.10.3",
|
|
52
52
|
"ts-node": "^10.9.1"
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"mkdirp": "^1.0.3",
|
|
58
58
|
"typescript": "4.2"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "399695e0108fa563e49cae17ecde059a7de58890"
|
|
61
61
|
}
|