@workday/canvas-kit-docs 15.0.0-alpha.0075-next.0 → 15.0.0-alpha.0076-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 +0 -2058
- package/dist/mdx/15.0-UPGRADE-GUIDE.mdx +123 -0
- package/dist/mdx/react/select/Select.mdx +8 -1
- package/dist/mdx/react/select/examples/GroupedItems.tsx +59 -0
- package/package.json +6 -6
- package/dist/mdx/preview-react/select/Select.mdx +0 -107
- package/dist/mdx/preview-react/select/examples/Left Label/AlertLeft.tsx +0 -18
- package/dist/mdx/preview-react/select/examples/Left Label/DefaultLeft.tsx +0 -17
- package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithCustomOptionsLeft.tsx +0 -25
- package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithSimpleOptionsLeft.tsx +0 -17
- package/dist/mdx/preview-react/select/examples/Left Label/DisabledLeft.tsx +0 -19
- package/dist/mdx/preview-react/select/examples/Left Label/ErrorLeft.tsx +0 -18
- package/dist/mdx/preview-react/select/examples/Left Label/GrowLeft.tsx +0 -17
- package/dist/mdx/preview-react/select/examples/Left Label/ScrollableLeft.tsx +0 -17
- package/dist/mdx/preview-react/select/examples/Left Label/index.ts +0 -8
- package/dist/mdx/preview-react/select/examples/Top Label/Caution.tsx +0 -16
- package/dist/mdx/preview-react/select/examples/Top Label/Default.tsx +0 -15
- package/dist/mdx/preview-react/select/examples/Top Label/DefaultWithCustomOptions.tsx +0 -23
- package/dist/mdx/preview-react/select/examples/Top Label/DefaultWithSimpleOptions.tsx +0 -15
- package/dist/mdx/preview-react/select/examples/Top Label/Disabled.tsx +0 -17
- package/dist/mdx/preview-react/select/examples/Top Label/Error.tsx +0 -16
- package/dist/mdx/preview-react/select/examples/Top Label/Grow.tsx +0 -15
- package/dist/mdx/preview-react/select/examples/Top Label/Scrollable.tsx +0 -13
- package/dist/mdx/preview-react/select/examples/Top Label/index.ts +0 -8
- package/dist/mdx/preview-react/select/examples/storiesData.tsx +0 -92
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {FormField} from '@workday/canvas-kit-react/form-field';
|
|
2
|
-
import {Select} from '@workday/canvas-kit-preview-react/select';
|
|
3
|
-
import {manyOptions} from '../storiesData';
|
|
4
|
-
import {controlComponent} from '../../../../../../utils/storybook';
|
|
5
|
-
|
|
6
|
-
export default () => {
|
|
7
|
-
return (
|
|
8
|
-
<FormField id="select-default">
|
|
9
|
-
<FormField.Label>Label</FormField.Label>
|
|
10
|
-
{controlComponent(<FormField.Input as={Select} name="contact" options={manyOptions} />)}
|
|
11
|
-
</FormField>
|
|
12
|
-
);
|
|
13
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export {Default} from './Default';
|
|
2
|
-
export {DefaultWithCustomOptions} from './DefaultWithCustomOptions';
|
|
3
|
-
export {DefaultWithSimpleOptions} from './DefaultWithSimpleOptions';
|
|
4
|
-
export {Scrollable} from './Scrollable';
|
|
5
|
-
export {Disabled} from './Disabled';
|
|
6
|
-
export {Caution} from './Caution';
|
|
7
|
-
export {Error} from './Error';
|
|
8
|
-
export {Grow} from './Grow';
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import {SystemIcon} from '@workday/canvas-kit-react/icon';
|
|
2
|
-
import {
|
|
3
|
-
activityStreamIcon,
|
|
4
|
-
avatarIcon,
|
|
5
|
-
uploadCloudIcon,
|
|
6
|
-
userIcon,
|
|
7
|
-
} from '@workday/canvas-system-icons-web';
|
|
8
|
-
import {colors, typeColors} from '@workday/canvas-kit-react/tokens';
|
|
9
|
-
import {
|
|
10
|
-
RenderOptionFunction,
|
|
11
|
-
RenderSelectedFunction,
|
|
12
|
-
} from '@workday/canvas-kit-preview-react/select';
|
|
13
|
-
|
|
14
|
-
export default 'Helpful text goes here.';
|
|
15
|
-
export default 'error-desc-id';
|
|
16
|
-
|
|
17
|
-
export default [
|
|
18
|
-
{label: 'E-mail', value: 'email-1234'},
|
|
19
|
-
{label: 'Phone', value: 'phone'},
|
|
20
|
-
{label: 'Fax (disabled)', value: 'fax', disabled: true},
|
|
21
|
-
{label: 'Mail', value: 'mail'},
|
|
22
|
-
{label: 'Mobile Phone', value: 'mobile_phone'},
|
|
23
|
-
{
|
|
24
|
-
label: 'The Ontologically Anthropocentric Sensory Immersive Simulation',
|
|
25
|
-
value: 'oasis',
|
|
26
|
-
},
|
|
27
|
-
];
|
|
28
|
-
|
|
29
|
-
export default ['California', 'Florida', 'New York', 'Pennsylvania', 'Texas'];
|
|
30
|
-
|
|
31
|
-
export default [
|
|
32
|
-
{label: 'Atlanta (United States)', value: 'atlanta'},
|
|
33
|
-
{label: 'Amsterdam (Europe)', value: 'amsterdam'},
|
|
34
|
-
{label: 'Austin (United States)', value: 'austin'},
|
|
35
|
-
{label: 'Beaverton (United States)', value: 'beaverton'},
|
|
36
|
-
{label: 'Belfast (Europe)', value: 'belfast'},
|
|
37
|
-
{label: 'Berlin (Europe)', value: 'berlin'},
|
|
38
|
-
{label: 'Boston (United States)', value: 'boston'},
|
|
39
|
-
{label: 'Boulder (United States)', value: 'boulder'},
|
|
40
|
-
{label: 'Chicago (United States)', value: 'chicago'},
|
|
41
|
-
{label: 'Dallas (United States)', value: 'dallas'},
|
|
42
|
-
{label: 'Denver (United States)', value: 'denver'},
|
|
43
|
-
{label: 'Dublin (Europe)', value: 'dublin'},
|
|
44
|
-
{label: 'Irvine (United States)', value: 'irvine'},
|
|
45
|
-
{label: 'Minneapolis (United States)', value: 'minneapolis'},
|
|
46
|
-
{label: 'New York (United States)', value: 'new-york'},
|
|
47
|
-
{label: 'Orlando (United States)', value: 'orlando'},
|
|
48
|
-
{label: 'Palo Alto (United States)', value: 'palo-alto'},
|
|
49
|
-
{label: 'Philadelphia (United States)', value: 'philadelphia'},
|
|
50
|
-
{label: 'Pleasanton (United States)', value: 'pleasanton'},
|
|
51
|
-
{label: 'Raleigh (United States)', value: 'raleigh'},
|
|
52
|
-
{label: 'San Francisco (United States)', value: 'san-francisco'},
|
|
53
|
-
{label: 'San Mateo (United States)', value: 'san-mateo'},
|
|
54
|
-
{label: 'Stockholm (Europe)', value: 'stockholm'},
|
|
55
|
-
{
|
|
56
|
-
label: 'The Ontologically Anthropocentric Sensory Immersive Simulation (Virtual Reality)',
|
|
57
|
-
value: 'oasis',
|
|
58
|
-
},
|
|
59
|
-
{label: 'Toronto (Canada)', value: 'toronto'},
|
|
60
|
-
{label: 'Victoria (Canada)', value: 'victoria'},
|
|
61
|
-
{label: 'Vienna (Europe)', value: 'vienna'},
|
|
62
|
-
{label: 'Warsaw (Europe)', value: 'warsaw'},
|
|
63
|
-
{label: 'Washington, DC (United States)', value: 'washington-dc'},
|
|
64
|
-
{label: 'Zurich (Europe)', value: 'zurich'},
|
|
65
|
-
];
|
|
66
|
-
|
|
67
|
-
export default [
|
|
68
|
-
{value: 'Activity Stream', data: {icon: activityStreamIcon}},
|
|
69
|
-
{value: 'Avatar', data: {icon: avatarIcon}},
|
|
70
|
-
{value: 'Upload Cloud', data: {icon: uploadCloudIcon}},
|
|
71
|
-
{value: 'User', data: {icon: userIcon}},
|
|
72
|
-
];
|
|
73
|
-
|
|
74
|
-
export const customRenderOption: RenderOptionFunction = option => {
|
|
75
|
-
const iconColor = option.focused ? typeColors.inverse : colors.blackPepper100;
|
|
76
|
-
return (
|
|
77
|
-
<div style={{alignItems: 'center', display: 'flex', padding: '3px 0'}}>
|
|
78
|
-
<SystemIcon icon={option.data.icon} color={iconColor} colorHover={iconColor} />
|
|
79
|
-
<div style={{marginLeft: 5}}>{option.value}</div>
|
|
80
|
-
</div>
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export const customRenderSelected: RenderSelectedFunction = option => {
|
|
85
|
-
const iconColor = colors.blackPepper100;
|
|
86
|
-
return (
|
|
87
|
-
<div style={{alignItems: 'center', display: 'flex'}}>
|
|
88
|
-
<SystemIcon icon={option.data.icon} color={iconColor} colorHover={iconColor} />
|
|
89
|
-
<div style={{marginLeft: 5}}>{option.value}</div>
|
|
90
|
-
</div>
|
|
91
|
-
);
|
|
92
|
-
};
|