@workday/canvas-kit-docs 11.0.0-alpha.790-next.0 → 11.0.0-alpha.793-next.0
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 +52 -3
- package/dist/mdx/preview-react/_examples/examples/TextInputWithReactHookForm.tsx +9 -5
- package/dist/mdx/preview-react/form-field/examples/AllFields.tsx +10 -8
- package/dist/mdx/preview-react/form-field/examples/RefForwarding.tsx +9 -1
- package/dist/mdx/preview-react/form-field/examples/ThemedErrors.tsx +9 -1
- package/dist/mdx/preview-react/radio/examples/Basic.tsx +6 -1
- package/dist/mdx/preview-react/radio/examples/Custom.tsx +21 -4
- package/dist/mdx/preview-react/radio/examples/Inverse.tsx +16 -10
- package/dist/mdx/preview-react/status-indicator/examples/Emphasis.tsx +7 -1
- package/dist/mdx/preview-react/status-indicator/examples/Icon.tsx +7 -1
- package/dist/mdx/preview-react/status-indicator/examples/Overflow.tsx +7 -1
- package/dist/mdx/preview-react/status-indicator/examples/Variants.tsx +15 -3
- package/dist/mdx/react/button/button/examples/Delete.tsx +8 -1
- package/dist/mdx/react/button/button/examples/ExternalHyperlinkInverse.tsx +8 -1
- package/dist/mdx/react/button/button/examples/HyperlinkInverse.tsx +8 -1
- package/dist/mdx/react/button/button/examples/Primary.tsx +8 -1
- package/dist/mdx/react/button/button/examples/PrimaryInverse.tsx +9 -1
- package/dist/mdx/react/button/button/examples/Secondary.tsx +8 -1
- package/dist/mdx/react/button/button/examples/SecondaryInverse.tsx +9 -1
- package/dist/mdx/react/button/button/examples/Tertiary.tsx +8 -1
- package/dist/mdx/react/button/button/examples/TertiaryInverse.tsx +9 -2
- package/dist/mdx/react/checkbox/examples/Indeterminate.tsx +8 -1
- package/dist/mdx/react/checkbox/examples/Inverse.tsx +9 -1
- package/dist/mdx/react/combobox/examples/Autocomplete.tsx +20 -4
- package/dist/mdx/react/icon/examples/AccentIconList.tsx +23 -10
- package/dist/mdx/react/icon/examples/AppletIconList.tsx +23 -10
- package/dist/mdx/react/icon/examples/IconList.tsx +24 -10
- package/dist/mdx/react/icon/examples/Overview.tsx +15 -2
- package/dist/mdx/react/loading-dots/examples/Accessible.tsx +12 -7
- package/dist/mdx/react/select/examples/Alert.tsx +6 -1
- package/dist/mdx/react/select/examples/Basic.tsx +6 -1
- package/dist/mdx/react/select/examples/Complex.tsx +6 -1
- package/dist/mdx/react/select/examples/Disabled.tsx +6 -1
- package/dist/mdx/react/select/examples/DisabledOption.tsx +6 -1
- package/dist/mdx/react/select/examples/Error.tsx +6 -1
- package/dist/mdx/react/select/examples/FetchingDynamicItems.tsx +7 -1
- package/dist/mdx/react/select/examples/InitialSelectedItem.tsx +6 -1
- package/dist/mdx/react/select/examples/MenuHeight.tsx +6 -1
- package/dist/mdx/react/select/examples/Placeholder.tsx +6 -1
- package/dist/mdx/react/select/examples/Required.tsx +6 -1
- package/dist/mdx/react/select/examples/WithIcons.tsx +12 -2
- package/dist/mdx/react/table/examples/Basic.tsx +8 -2
- package/dist/mdx/react/table/examples/BasicWithHeading.tsx +14 -3
- package/dist/mdx/react/table/examples/FixedColumn.tsx +21 -17
- package/dist/mdx/react/table/examples/RightToLeft.tsx +8 -2
- package/package.json +6 -6
|
@@ -2,8 +2,24 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import {Table} from '@workday/canvas-kit-react/table';
|
|
4
4
|
import {Heading} from '@workday/canvas-kit-react/text';
|
|
5
|
-
import {colors} from '@workday/canvas-kit-react/tokens';
|
|
6
5
|
import {useUniqueId} from '@workday/canvas-kit-react/common';
|
|
6
|
+
import {createStyles, px2rem} from '@workday/canvas-kit-styling';
|
|
7
|
+
import {system} from '@workday/canvas-tokens-web';
|
|
8
|
+
|
|
9
|
+
const styleOverrides = {
|
|
10
|
+
parentContainerStyles: createStyles({
|
|
11
|
+
marginBottom: system.space.x4,
|
|
12
|
+
}),
|
|
13
|
+
tableStyles: createStyles({
|
|
14
|
+
width: px2rem(690),
|
|
15
|
+
}),
|
|
16
|
+
tableHeaderStyles: createStyles({
|
|
17
|
+
position: 'sticky',
|
|
18
|
+
left: system.space.zero,
|
|
19
|
+
backgroundColor: system.color.bg.alt.softer,
|
|
20
|
+
borderRight: `2px solid ${system.color.border.divider}`,
|
|
21
|
+
}),
|
|
22
|
+
};
|
|
7
23
|
|
|
8
24
|
export default () => {
|
|
9
25
|
const headingID = useUniqueId();
|
|
@@ -77,19 +93,13 @@ export default () => {
|
|
|
77
93
|
];
|
|
78
94
|
return (
|
|
79
95
|
<>
|
|
80
|
-
<Heading as="h3" id={headingID} size="small"
|
|
96
|
+
<Heading as="h3" id={headingID} size="small" cs={styleOverrides.parentContainerStyles}>
|
|
81
97
|
Performance Car Specs
|
|
82
98
|
</Heading>
|
|
83
|
-
<Table
|
|
99
|
+
<Table cs={styleOverrides.tableStyles} aria-labelledby={headingID} tabIndex={0}>
|
|
84
100
|
<Table.Head>
|
|
85
101
|
<Table.Row>
|
|
86
|
-
<Table.Header
|
|
87
|
-
scope="col"
|
|
88
|
-
position="sticky"
|
|
89
|
-
left="0"
|
|
90
|
-
backgroundColor="soap100"
|
|
91
|
-
borderRight={`2px solid ${colors.soap400}`}
|
|
92
|
-
>
|
|
102
|
+
<Table.Header scope="col" cs={styleOverrides.tableHeaderStyles}>
|
|
93
103
|
Make
|
|
94
104
|
</Table.Header>
|
|
95
105
|
<Table.Header scope="col">Model</Table.Header>
|
|
@@ -106,13 +116,7 @@ export default () => {
|
|
|
106
116
|
{exampleData.map(item => (
|
|
107
117
|
<>
|
|
108
118
|
<Table.Row>
|
|
109
|
-
<Table.Header
|
|
110
|
-
scope="row"
|
|
111
|
-
position="sticky"
|
|
112
|
-
left="0"
|
|
113
|
-
backgroundColor="soap100"
|
|
114
|
-
borderRight={`2px solid ${colors.soap400}`}
|
|
115
|
-
>
|
|
119
|
+
<Table.Header scope="row" cs={styleOverrides.tableHeaderStyles}>
|
|
116
120
|
{item.make}
|
|
117
121
|
</Table.Header>
|
|
118
122
|
<Table.Cell>{item.model}</Table.Cell>
|
|
@@ -2,6 +2,12 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import {Table} from '@workday/canvas-kit-react/table';
|
|
4
4
|
import {CanvasProvider, ContentDirection} from '@workday/canvas-kit-react/common';
|
|
5
|
+
import {createStyles} from '@workday/canvas-kit-styling';
|
|
6
|
+
import {base, system} from '@workday/canvas-tokens-web';
|
|
7
|
+
|
|
8
|
+
const tableHeaderStyles = createStyles({
|
|
9
|
+
backgroundColor: system.color.bg.alt.softer,
|
|
10
|
+
});
|
|
5
11
|
|
|
6
12
|
export default () => {
|
|
7
13
|
return (
|
|
@@ -10,10 +16,10 @@ export default () => {
|
|
|
10
16
|
<Table.Caption>משקאות קפה וגדלים</Table.Caption>
|
|
11
17
|
<Table.Head>
|
|
12
18
|
<Table.Row>
|
|
13
|
-
<Table.Header scope="col"
|
|
19
|
+
<Table.Header scope="col" cs={tableHeaderStyles}>
|
|
14
20
|
מַשׁקֶה
|
|
15
21
|
</Table.Header>
|
|
16
|
-
<Table.Header scope="col"
|
|
22
|
+
<Table.Header scope="col" cs={tableHeaderStyles}>
|
|
17
23
|
גודל
|
|
18
24
|
</Table.Header>
|
|
19
25
|
</Table.Row>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.793-next.0",
|
|
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,10 +44,10 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
46
|
"@storybook/csf": "0.0.1",
|
|
47
|
-
"@workday/canvas-kit-labs-react": "^11.0.0-alpha.
|
|
48
|
-
"@workday/canvas-kit-preview-react": "^11.0.0-alpha.
|
|
49
|
-
"@workday/canvas-kit-react": "^11.0.0-alpha.
|
|
50
|
-
"@workday/canvas-kit-styling": "^11.0.0-alpha.
|
|
47
|
+
"@workday/canvas-kit-labs-react": "^11.0.0-alpha.793-next.0",
|
|
48
|
+
"@workday/canvas-kit-preview-react": "^11.0.0-alpha.793-next.0",
|
|
49
|
+
"@workday/canvas-kit-react": "^11.0.0-alpha.793-next.0",
|
|
50
|
+
"@workday/canvas-kit-styling": "^11.0.0-alpha.793-next.0",
|
|
51
51
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
52
52
|
"@workday/canvas-tokens-web": "^1.3.1",
|
|
53
53
|
"markdown-to-jsx": "^6.10.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"mkdirp": "^1.0.3",
|
|
60
60
|
"typescript": "4.2"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "8932c60111b24b90d9d1014266095dc9d157f41e"
|
|
63
63
|
}
|