@workday/canvas-kit-docs 13.0.0-alpha.1102-next.0 → 13.0.0-alpha.1104-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 +2 -35
- package/dist/es6/mdx/style-props/examples/Background.js +2 -2
- package/dist/es6/mdx/style-props/examples/Border.js +2 -2
- package/dist/es6/mdx/style-props/examples/Color.js +2 -2
- package/dist/es6/mdx/style-props/examples/Depth.js +2 -2
- package/dist/es6/mdx/style-props/examples/Position.js +2 -2
- package/dist/es6/mdx/style-props/examples/Space.js +2 -2
- package/dist/mdx/13.0-UPGRADE-GUIDE.mdx +28 -1
- package/dist/mdx/preview-react/loading-sparkles/examples/Basic.tsx +2 -2
- package/dist/mdx/preview-react/multi-select/examples/Basic.tsx +1 -1
- package/dist/mdx/preview-react/multi-select/examples/Complex.tsx +1 -1
- package/dist/mdx/preview-react/multi-select/examples/Controlled.tsx +1 -1
- package/dist/mdx/preview-react/multi-select/examples/Icons.tsx +1 -1
- package/dist/mdx/preview-react/multi-select/examples/Searching.tsx +1 -1
- package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithCustomOptionsLeft.tsx +1 -1
- package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithSimpleOptionsLeft.tsx +1 -1
- package/dist/mdx/react/expandable/examples/Avatar.tsx +2 -2
- package/dist/mdx/style-props/examples/Background.tsx +2 -2
- package/dist/mdx/style-props/examples/Border.tsx +2 -2
- package/dist/mdx/style-props/examples/Color.tsx +2 -2
- package/dist/mdx/style-props/examples/Depth.tsx +2 -2
- package/dist/mdx/style-props/examples/Position.tsx +2 -2
- package/dist/mdx/style-props/examples/Space.tsx +2 -2
- package/package.json +6 -6
package/dist/es6/lib/docs.js
CHANGED
|
@@ -48542,10 +48542,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
48542
48542
|
{
|
|
48543
48543
|
"kind": "string",
|
|
48544
48544
|
"value": "horizontalEnd"
|
|
48545
|
-
},
|
|
48546
|
-
{
|
|
48547
|
-
"kind": "string",
|
|
48548
|
-
"value": "horizontal"
|
|
48549
48545
|
}
|
|
48550
48546
|
]
|
|
48551
48547
|
},
|
|
@@ -49026,10 +49022,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
49026
49022
|
{
|
|
49027
49023
|
"kind": "string",
|
|
49028
49024
|
"value": "horizontalEnd"
|
|
49029
|
-
},
|
|
49030
|
-
{
|
|
49031
|
-
"kind": "string",
|
|
49032
|
-
"value": "horizontal"
|
|
49033
49025
|
}
|
|
49034
49026
|
]
|
|
49035
49027
|
},
|
|
@@ -169807,10 +169799,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
169807
169799
|
{
|
|
169808
169800
|
"kind": "string",
|
|
169809
169801
|
"value": "horizontalEnd"
|
|
169810
|
-
},
|
|
169811
|
-
{
|
|
169812
|
-
"kind": "string",
|
|
169813
|
-
"value": "horizontal"
|
|
169814
169802
|
}
|
|
169815
169803
|
]
|
|
169816
169804
|
},
|
|
@@ -169825,8 +169813,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
169825
169813
|
"default": "vertical"
|
|
169826
169814
|
},
|
|
169827
169815
|
"defaultValue": {
|
|
169828
|
-
"kind": "
|
|
169829
|
-
"name": "vertical",
|
|
169816
|
+
"kind": "string",
|
|
169830
169817
|
"value": "vertical"
|
|
169831
169818
|
}
|
|
169832
169819
|
},
|
|
@@ -170061,7 +170048,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
170061
170048
|
{
|
|
170062
170049
|
"name": "Field",
|
|
170063
170050
|
"symbol": "FormFieldField",
|
|
170064
|
-
"description": "`FormField.Field` allows you to customize container alignment and styles when wrapping your input and hint text.\n```tsx\n<FormField orientation=\"
|
|
170051
|
+
"description": "`FormField.Field` allows you to customize container alignment and styles when wrapping your input and hint text.\n```tsx\n<FormField orientation=\"horizontalStart\">\n <FormField.Label>First Name</FormField.Label>\n <FormField.Field>\n <FormField.Input as={TextInput} value={value} onChange={(e) => console.log(e)} />\n <FormField.Hint>This is your hint text</FormField.Hint>\n </FormField.Field>\n </FormField>\n```",
|
|
170065
170052
|
"declarations": [
|
|
170066
170053
|
{
|
|
170067
170054
|
"name": "Field",
|
|
@@ -171805,10 +171792,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
171805
171792
|
{
|
|
171806
171793
|
"kind": "string",
|
|
171807
171794
|
"value": "horizontalEnd"
|
|
171808
|
-
},
|
|
171809
|
-
{
|
|
171810
|
-
"kind": "string",
|
|
171811
|
-
"value": "horizontal"
|
|
171812
171795
|
}
|
|
171813
171796
|
]
|
|
171814
171797
|
},
|
|
@@ -176606,10 +176589,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
176606
176589
|
"type": {
|
|
176607
176590
|
"kind": "union",
|
|
176608
176591
|
"value": [
|
|
176609
|
-
{
|
|
176610
|
-
"kind": "string",
|
|
176611
|
-
"value": "horizontal"
|
|
176612
|
-
},
|
|
176613
176592
|
{
|
|
176614
176593
|
"kind": "string",
|
|
176615
176594
|
"value": "vertical"
|
|
@@ -176721,10 +176700,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
176721
176700
|
"type": {
|
|
176722
176701
|
"kind": "union",
|
|
176723
176702
|
"value": [
|
|
176724
|
-
{
|
|
176725
|
-
"kind": "string",
|
|
176726
|
-
"value": "horizontal"
|
|
176727
|
-
},
|
|
176728
176703
|
{
|
|
176729
176704
|
"kind": "string",
|
|
176730
176705
|
"value": "vertical"
|
|
@@ -176856,10 +176831,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
176856
176831
|
"type": {
|
|
176857
176832
|
"kind": "union",
|
|
176858
176833
|
"value": [
|
|
176859
|
-
{
|
|
176860
|
-
"kind": "string",
|
|
176861
|
-
"value": "horizontal"
|
|
176862
|
-
},
|
|
176863
176834
|
{
|
|
176864
176835
|
"kind": "string",
|
|
176865
176836
|
"value": "vertical"
|
|
@@ -176966,10 +176937,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
176966
176937
|
"type": {
|
|
176967
176938
|
"kind": "union",
|
|
176968
176939
|
"value": [
|
|
176969
|
-
{
|
|
176970
|
-
"kind": "string",
|
|
176971
|
-
"value": "horizontal"
|
|
176972
|
-
},
|
|
176973
176940
|
{
|
|
176974
176941
|
"kind": "string",
|
|
176975
176942
|
"value": "vertical"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@workday/canvas-kit-react/layout';
|
|
3
3
|
const baseStyles = {
|
|
4
4
|
color: 'blackPepper500',
|
|
@@ -9,5 +9,5 @@ const baseStyles = {
|
|
|
9
9
|
padding: 'xs',
|
|
10
10
|
};
|
|
11
11
|
export const Background = () => {
|
|
12
|
-
return (_jsxs(
|
|
12
|
+
return (_jsxs("div", { children: [_jsx(Box, { backgroundColor: "cinnamon300", ...baseStyles, children: "Cinnamon 300" }), _jsx(Box, { backgroundColor: "sourLemon300", ...baseStyles, children: "Sour Lemon 300" }), _jsx(Box, { backgroundColor: "blueberry300", ...baseStyles, children: "Blueberry 300" })] }));
|
|
13
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@workday/canvas-kit-react/layout';
|
|
3
3
|
const baseStyles = {
|
|
4
4
|
color: 'blackPepper300',
|
|
@@ -8,4 +8,4 @@ const baseStyles = {
|
|
|
8
8
|
minWidth: '8rem',
|
|
9
9
|
padding: 'xs',
|
|
10
10
|
};
|
|
11
|
-
export const Border = () => (_jsxs(
|
|
11
|
+
export const Border = () => (_jsxs("div", { children: [_jsx(Box, { borderRadius: "m", border: "solid 4px", borderColor: "cinnamon300", ...baseStyles, children: "Cinnamon 300" }), _jsx(Box, { borderRadius: "m", border: "solid 4px", borderColor: "sourLemon300", ...baseStyles, children: "Sour Lemon 300" }), _jsx(Box, { borderRadius: "m", border: "solid 4px", borderColor: "blueberry300", ...baseStyles, children: "Blueberry 300" })] }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@workday/canvas-kit-react/layout';
|
|
3
3
|
const baseStyles = {
|
|
4
4
|
display: 'inline-block',
|
|
@@ -7,4 +7,4 @@ const baseStyles = {
|
|
|
7
7
|
minWidth: '8rem',
|
|
8
8
|
padding: 'xs',
|
|
9
9
|
};
|
|
10
|
-
export const Color = () => (_jsxs(
|
|
10
|
+
export const Color = () => (_jsxs("div", { children: [_jsx(Box, { backgroundColor: "cinnamon300", color: "blackPepper500", ...baseStyles, children: "Cinnamon 300" }), _jsx(Box, { backgroundColor: "sourLemon300", color: "blackPepper500", ...baseStyles, children: "Sour Lemon 300" }), _jsx(Box, { backgroundColor: "blueberry300", color: "blackPepper500", ...baseStyles, children: "Blueberry 300" })] }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@workday/canvas-kit-react/layout';
|
|
3
3
|
const baseStyles = {
|
|
4
4
|
color: 'blackPepper500',
|
|
@@ -8,4 +8,4 @@ const baseStyles = {
|
|
|
8
8
|
minWidth: '8rem',
|
|
9
9
|
padding: 'xs',
|
|
10
10
|
};
|
|
11
|
-
export const Depth = () => (_jsxs(
|
|
11
|
+
export const Depth = () => (_jsxs("div", { children: [_jsx(Box, { backgroundColor: "cinnamon300", depth: 1, ...baseStyles, children: "Depth 1" }), _jsx(Box, { backgroundColor: "sourLemon300", depth: 2, ...baseStyles, children: "Depth 2" }), _jsx(Box, { backgroundColor: "blueberry300", depth: 3, ...baseStyles, children: "Depth 3" })] }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@workday/canvas-kit-react/layout';
|
|
3
3
|
const baseStyles = {
|
|
4
4
|
color: 'blackPepper500',
|
|
@@ -8,5 +8,5 @@ const baseStyles = {
|
|
|
8
8
|
padding: 'xs',
|
|
9
9
|
};
|
|
10
10
|
export const Position = () => {
|
|
11
|
-
return (_jsxs(
|
|
11
|
+
return (_jsxs("div", { children: [_jsx(Box, { backgroundColor: "cinnamon300", left: 0, position: "absolute", top: "calc(50% - 20px)", zIndex: 1, textAlign: "center", ...baseStyles, children: "Left" }), _jsx(Box, { backgroundColor: "sourLemon300", left: `calc(50% - 4rem)`, position: "absolute", top: "calc(50% - 20px)", zIndex: 2, textAlign: "center", ...baseStyles, children: "Center" }), _jsx(Box, { backgroundColor: "blueberry300", position: "absolute", right: 0, top: "calc(50% - 20px)", zIndex: 3, textAlign: "center", ...baseStyles, children: "Right" })] }));
|
|
12
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@workday/canvas-kit-react/layout';
|
|
3
3
|
const baseStyles = {
|
|
4
4
|
border: 'dotted 2px',
|
|
@@ -6,4 +6,4 @@ const baseStyles = {
|
|
|
6
6
|
display: 'inline-block',
|
|
7
7
|
verticalAlign: 'bottom',
|
|
8
8
|
};
|
|
9
|
-
export const Space = () => (_jsxs(
|
|
9
|
+
export const Space = () => (_jsxs("div", { children: [_jsx(Box, { backgroundColor: "cinnamon300", margin: "xxs", padding: "s", textAlign: "center", ...baseStyles, children: _jsx(Box, { border: "dotted 2px", borderColor: "blackPepper500", children: "Small" }) }), _jsx(Box, { backgroundColor: "sourLemon300", margin: "xxs", padding: "m", textAlign: "center", ...baseStyles, children: _jsx(Box, { border: "dotted 2px", borderColor: "blackPepper500", children: "Medium" }) }), _jsx(Box, { backgroundColor: "blueberry300", margin: "xxs", padding: "l", textAlign: "center", ...baseStyles, children: _jsx(Box, { border: "dotted 2px", borderColor: "blackPepper500", children: "Large" }) })] }));
|
|
@@ -21,6 +21,7 @@ any questions.
|
|
|
21
21
|
- [Avatar](#avatar)
|
|
22
22
|
- [Expandable](#expandable)
|
|
23
23
|
- [External Hyperlink](#external-hyperlink)
|
|
24
|
+
- [Form Field and Form Field Group](#form-field-and-form-field-group)
|
|
24
25
|
- [Pill](#pill)
|
|
25
26
|
- [Tabs](#tabs)
|
|
26
27
|
- [Brand Refresh](#brand-refresh)
|
|
@@ -169,9 +170,35 @@ import {Expandable} from '@workday/canvas-kit-react/expandable';
|
|
|
169
170
|
</ExternalHyperlink>
|
|
170
171
|
```
|
|
171
172
|
|
|
173
|
+
### Form Field and Form Field Group
|
|
174
|
+
**PR:** [#3101](https://github.com/Workday/canvas-kit/pull/3101)
|
|
175
|
+
|
|
176
|
+
The `orientation` prop on `FormField` component has been updated to remove the deprecated `horizontal` value. v12 had a codemod to update this value to `horizontalStart`. In v13, we've dropped `horizontal` as a value.` You must update your code to use `horizontalStart`.
|
|
177
|
+
|
|
178
|
+
**Before in v12**
|
|
179
|
+
```tsx
|
|
180
|
+
<FormField orientation="horizontal">
|
|
181
|
+
<FormField.Label>Label</FormField.Label>
|
|
182
|
+
<FormField.Field>
|
|
183
|
+
<FormField.Input as={TextInput} />
|
|
184
|
+
<FormField.Field>
|
|
185
|
+
</FormField>
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**After in v13**
|
|
189
|
+
```tsx
|
|
190
|
+
<FormField orientation="horizontalStart">
|
|
191
|
+
<FormField.Label>Label</FormField.Label>
|
|
192
|
+
<FormField.Field>
|
|
193
|
+
<FormField.Input as={TextInput} />
|
|
194
|
+
<FormField.Field>
|
|
195
|
+
</FormField>
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
|
|
172
199
|
### Pill
|
|
173
200
|
|
|
174
|
-
**
|
|
201
|
+
**PR:** [#3104](https://github.com/Workday/canvas-kit/pull/3104)
|
|
175
202
|
|
|
176
203
|
A few changes have been made to `Pill` to ensure proper accessibility and styles.
|
|
177
204
|
|
|
@@ -35,7 +35,7 @@ export default () => {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
|
-
|
|
38
|
+
<div>
|
|
39
39
|
<div className={containerStyles}>
|
|
40
40
|
{quote && <Text cs={{maxWidth: '60ch'}}>{quote}</Text>}
|
|
41
41
|
<AriaLiveRegion>
|
|
@@ -46,7 +46,7 @@ export default () => {
|
|
|
46
46
|
</AriaLiveRegion>
|
|
47
47
|
</div>
|
|
48
48
|
<SecondaryButton onClick={handleClick}>Generate Quote</SecondaryButton>
|
|
49
|
-
|
|
49
|
+
</div>
|
|
50
50
|
);
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -9,7 +9,7 @@ export default () => {
|
|
|
9
9
|
return (
|
|
10
10
|
<>
|
|
11
11
|
<MultiSelect items={items} initialSelectedIds={['Olives', 'Onions', 'Pepperoni']}>
|
|
12
|
-
<FormField orientation="
|
|
12
|
+
<FormField orientation="horizontalStart">
|
|
13
13
|
<FormField.Label>Toppings</FormField.Label>
|
|
14
14
|
<FormField.Input
|
|
15
15
|
as={MultiSelect.Input}
|
|
@@ -34,7 +34,7 @@ export default () => {
|
|
|
34
34
|
>
|
|
35
35
|
<main className={mainContentStyles}>
|
|
36
36
|
<MultiSelect items={items} getId={i => i.id} getTextValue={i => i.text}>
|
|
37
|
-
<FormField orientation="
|
|
37
|
+
<FormField orientation="horizontalStart">
|
|
38
38
|
<FormField.Label>Toppings</FormField.Label>
|
|
39
39
|
<FormField.Input
|
|
40
40
|
as={MultiSelect.Input}
|
|
@@ -41,7 +41,7 @@ export default () => {
|
|
|
41
41
|
>
|
|
42
42
|
<Flex gap="s" flexDirection="column">
|
|
43
43
|
<MultiSelect items={items}>
|
|
44
|
-
<FormField orientation="
|
|
44
|
+
<FormField orientation="horizontalStart">
|
|
45
45
|
<FormField.Label>Toppings</FormField.Label>
|
|
46
46
|
<FormField.Input
|
|
47
47
|
as={MultiSelect.Input}
|
|
@@ -21,7 +21,7 @@ const items = [
|
|
|
21
21
|
export default () => {
|
|
22
22
|
return (
|
|
23
23
|
<MultiSelect items={items}>
|
|
24
|
-
<FormField orientation="
|
|
24
|
+
<FormField orientation="horizontalStart">
|
|
25
25
|
<FormField.Label>Controls</FormField.Label>
|
|
26
26
|
<FormField.Input
|
|
27
27
|
as={MultiSelect.Input}
|
|
@@ -83,7 +83,7 @@ export default () => {
|
|
|
83
83
|
>
|
|
84
84
|
<main className={mainContentStyles}>
|
|
85
85
|
<MultiSelect model={model}>
|
|
86
|
-
<FormField orientation="
|
|
86
|
+
<FormField orientation="horizontalStart">
|
|
87
87
|
<FormField.Label>Fruits</FormField.Label>
|
|
88
88
|
<FormField.Input
|
|
89
89
|
as={MultiSelect.SearchInput}
|
|
@@ -7,7 +7,7 @@ import {controlComponent} from '../../../../../../utils/storybook';
|
|
|
7
7
|
|
|
8
8
|
export default () => {
|
|
9
9
|
return (
|
|
10
|
-
<FormField orientation="
|
|
10
|
+
<FormField orientation="horizontalStart" id="select-default-custom">
|
|
11
11
|
<FormField.Label>Label</FormField.Label>
|
|
12
12
|
<FormField.Field>
|
|
13
13
|
{controlComponent(
|
|
@@ -7,7 +7,7 @@ import {controlComponent} from '../../../../../../utils/storybook';
|
|
|
7
7
|
|
|
8
8
|
export default () => {
|
|
9
9
|
return (
|
|
10
|
-
<FormField orientation="
|
|
10
|
+
<FormField orientation="horizontalStart" id="select-default-simple">
|
|
11
11
|
<FormField.Label>Label</FormField.Label>
|
|
12
12
|
<FormField.Field>
|
|
13
13
|
{controlComponent(<FormField.Input as={Select} name="state" options={simpleOptions} />)}
|
|
@@ -3,7 +3,7 @@ import {Expandable} from '@workday/canvas-kit-react/expandable';
|
|
|
3
3
|
import testAvatar from './test-avatar.png';
|
|
4
4
|
|
|
5
5
|
export default () => (
|
|
6
|
-
|
|
6
|
+
<div>
|
|
7
7
|
<Expandable>
|
|
8
8
|
<Expandable.Target headingLevel="h4">
|
|
9
9
|
<Expandable.Icon iconPosition="start" />
|
|
@@ -22,5 +22,5 @@ export default () => (
|
|
|
22
22
|
|
|
23
23
|
<Expandable.Content>Content</Expandable.Content>
|
|
24
24
|
</Expandable>
|
|
25
|
-
|
|
25
|
+
</div>
|
|
26
26
|
);
|
|
@@ -11,7 +11,7 @@ const baseStyles = {
|
|
|
11
11
|
|
|
12
12
|
export default () => {
|
|
13
13
|
return (
|
|
14
|
-
|
|
14
|
+
<div>
|
|
15
15
|
<Box backgroundColor="cinnamon300" {...baseStyles}>
|
|
16
16
|
Cinnamon 300
|
|
17
17
|
</Box>
|
|
@@ -21,6 +21,6 @@ export default () => {
|
|
|
21
21
|
<Box backgroundColor="blueberry300" {...baseStyles}>
|
|
22
22
|
Blueberry 300
|
|
23
23
|
</Box>
|
|
24
|
-
|
|
24
|
+
</div>
|
|
25
25
|
);
|
|
26
26
|
};
|
|
@@ -10,7 +10,7 @@ const baseStyles = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export default () => (
|
|
13
|
-
|
|
13
|
+
<div>
|
|
14
14
|
<Box borderRadius="m" border="solid 4px" borderColor="cinnamon300" {...baseStyles}>
|
|
15
15
|
Cinnamon 300
|
|
16
16
|
</Box>
|
|
@@ -20,5 +20,5 @@ export default () => (
|
|
|
20
20
|
<Box borderRadius="m" border="solid 4px" borderColor="blueberry300" {...baseStyles}>
|
|
21
21
|
Blueberry 300
|
|
22
22
|
</Box>
|
|
23
|
-
|
|
23
|
+
</div>
|
|
24
24
|
);
|
|
@@ -9,7 +9,7 @@ const baseStyles = {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export default () => (
|
|
12
|
-
|
|
12
|
+
<div>
|
|
13
13
|
<Box backgroundColor="cinnamon300" color="blackPepper500" {...baseStyles}>
|
|
14
14
|
Cinnamon 300
|
|
15
15
|
</Box>
|
|
@@ -19,5 +19,5 @@ export default () => (
|
|
|
19
19
|
<Box backgroundColor="blueberry300" color="blackPepper500" {...baseStyles}>
|
|
20
20
|
Blueberry 300
|
|
21
21
|
</Box>
|
|
22
|
-
|
|
22
|
+
</div>
|
|
23
23
|
);
|
|
@@ -10,7 +10,7 @@ const baseStyles = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export default () => (
|
|
13
|
-
|
|
13
|
+
<div>
|
|
14
14
|
<Box backgroundColor="cinnamon300" depth={1} {...baseStyles}>
|
|
15
15
|
Depth 1
|
|
16
16
|
</Box>
|
|
@@ -20,5 +20,5 @@ export default () => (
|
|
|
20
20
|
<Box backgroundColor="blueberry300" depth={3} {...baseStyles}>
|
|
21
21
|
Depth 3
|
|
22
22
|
</Box>
|
|
23
|
-
|
|
23
|
+
</div>
|
|
24
24
|
);
|
|
@@ -8,7 +8,7 @@ const baseStyles = {
|
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export default () => (
|
|
11
|
-
|
|
11
|
+
<div>
|
|
12
12
|
<Box backgroundColor="cinnamon300" margin="xxs" padding="s" textAlign="center" {...baseStyles}>
|
|
13
13
|
<Box border="dotted 2px" borderColor="blackPepper500">
|
|
14
14
|
Small
|
|
@@ -24,5 +24,5 @@ export default () => (
|
|
|
24
24
|
Large
|
|
25
25
|
</Box>
|
|
26
26
|
</Box>
|
|
27
|
-
|
|
27
|
+
</div>
|
|
28
28
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "13.0.0-alpha.
|
|
3
|
+
"version": "13.0.0-alpha.1104-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",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@emotion/styled": "^11.6.0",
|
|
46
46
|
"@stackblitz/sdk": "^1.11.0",
|
|
47
47
|
"@storybook/csf": "0.0.1",
|
|
48
|
-
"@workday/canvas-kit-labs-react": "^13.0.0-alpha.
|
|
49
|
-
"@workday/canvas-kit-preview-react": "^13.0.0-alpha.
|
|
50
|
-
"@workday/canvas-kit-react": "^13.0.0-alpha.
|
|
51
|
-
"@workday/canvas-kit-styling": "^13.0.0-alpha.
|
|
48
|
+
"@workday/canvas-kit-labs-react": "^13.0.0-alpha.1104-next.0",
|
|
49
|
+
"@workday/canvas-kit-preview-react": "^13.0.0-alpha.1104-next.0",
|
|
50
|
+
"@workday/canvas-kit-react": "^13.0.0-alpha.1104-next.0",
|
|
51
|
+
"@workday/canvas-kit-styling": "^13.0.0-alpha.1104-next.0",
|
|
52
52
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
53
53
|
"@workday/canvas-tokens-web": "^2.1.1",
|
|
54
54
|
"markdown-to-jsx": "^7.2.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"mkdirp": "^1.0.3",
|
|
62
62
|
"typescript": "5.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "82666a867a722cf5cc918d5cbc218300e7cacfb4"
|
|
65
65
|
}
|