@workday/canvas-kit-docs 12.1.0-945-next.0 → 12.1.0-949-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.
@@ -8,10 +8,14 @@ const items = ['Cheese', 'Olives', 'Onions', 'Pepperoni', 'Peppers'];
8
8
  export default () => {
9
9
  return (
10
10
  <>
11
- <MultiSelect items={items}>
11
+ <MultiSelect items={items} initialSelectedIds={['Olives', 'Onions', 'Pepperoni']}>
12
12
  <FormField orientation="horizontal">
13
13
  <FormField.Label>Toppings</FormField.Label>
14
- <FormField.Input as={MultiSelect.Input} placeholder="Select Multiple" />
14
+ <FormField.Input
15
+ as={MultiSelect.Input}
16
+ placeholder="Select Multiple"
17
+ removeLabel="Remove"
18
+ />
15
19
  <MultiSelect.Popper>
16
20
  <MultiSelect.Card>
17
21
  <MultiSelect.List>
@@ -39,6 +39,7 @@ export default () => {
39
39
  <FormField.Input
40
40
  as={MultiSelect.Input}
41
41
  placeholder="Select Multiple"
42
+ removeLabel="Remove"
42
43
  name="toppings"
43
44
  onChange={e => {
44
45
  const value = e.currentTarget.value;
@@ -46,6 +46,7 @@ export default () => {
46
46
  <FormField.Input
47
47
  as={MultiSelect.Input}
48
48
  placeholder="Select Multiple"
49
+ removeLabel="Remove"
49
50
  name="toppings"
50
51
  onChange={handleOnChange}
51
52
  value={value}
@@ -23,7 +23,11 @@ export default () => {
23
23
  <MultiSelect items={items}>
24
24
  <FormField orientation="horizontal">
25
25
  <FormField.Label>Controls</FormField.Label>
26
- <FormField.Input as={MultiSelect.Input} placeholder="Select Multiple" />
26
+ <FormField.Input
27
+ as={MultiSelect.Input}
28
+ placeholder="Select Multiple"
29
+ removeLabel="Remove"
30
+ />
27
31
  <MultiSelect.Popper>
28
32
  <MultiSelect.Card>
29
33
  <MultiSelect.List>
@@ -88,6 +88,7 @@ export default () => {
88
88
  <FormField.Input
89
89
  as={MultiSelect.SearchInput}
90
90
  placeholder="Search"
91
+ removeLabel="Remove"
91
92
  name="toppings"
92
93
  onChange={e => {
93
94
  setValue(e.currentTarget.value);
@@ -36,7 +36,12 @@ export default () => {
36
36
  <FormField.Label>Contact</FormField.Label>
37
37
  <FormField.Field>
38
38
  <Select items={options} getId={item => item.serverId} getTextValue={item => item.label}>
39
- <FormField.Input as={Select.Input} onChange={handleChange} value={value} />
39
+ <FormField.Input
40
+ as={Select.Input}
41
+ onChange={handleChange}
42
+ value={value}
43
+ name="contact"
44
+ />
40
45
  <Select.Popper>
41
46
  <Select.Card>
42
47
  <Select.List>{item => <Select.Item>{item.label}</Select.Item>}</Select.List>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "12.1.0-945-next.0",
3
+ "version": "12.1.0-949-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": "^12.1.0-945-next.0",
48
- "@workday/canvas-kit-preview-react": "^12.1.0-945-next.0",
49
- "@workday/canvas-kit-react": "^12.1.0-945-next.0",
50
- "@workday/canvas-kit-styling": "^12.1.0-945-next.0",
47
+ "@workday/canvas-kit-labs-react": "^12.1.0-949-next.0",
48
+ "@workday/canvas-kit-preview-react": "^12.1.0-949-next.0",
49
+ "@workday/canvas-kit-react": "^12.1.0-949-next.0",
50
+ "@workday/canvas-kit-styling": "^12.1.0-949-next.0",
51
51
  "@workday/canvas-system-icons-web": "^3.0.0",
52
52
  "@workday/canvas-tokens-web": "^2.0.1",
53
53
  "markdown-to-jsx": "^7.2.0",
@@ -60,5 +60,5 @@
60
60
  "mkdirp": "^1.0.3",
61
61
  "typescript": "5.0"
62
62
  },
63
- "gitHead": "b0122ce4912dbd26971c9fdeaa71ef307bed60c3"
63
+ "gitHead": "2fa9149392fa70e103e6d7e2323c91f09b187b0a"
64
64
  }