@workday/canvas-kit-docs 10.3.35 → 10.3.37

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.
@@ -101378,8 +101378,45 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
101378
101378
  "name": "aria-haspopup",
101379
101379
  "required": true,
101380
101380
  "type": {
101381
- "kind": "boolean",
101382
- "value": true
101381
+ "kind": "union",
101382
+ "value": [
101383
+ {
101384
+ "kind": "primitive",
101385
+ "value": "boolean"
101386
+ },
101387
+ {
101388
+ "kind": "string",
101389
+ "value": "listbox"
101390
+ },
101391
+ {
101392
+ "kind": "string",
101393
+ "value": "grid"
101394
+ },
101395
+ {
101396
+ "kind": "string",
101397
+ "value": "menu"
101398
+ },
101399
+ {
101400
+ "kind": "string",
101401
+ "value": "false"
101402
+ },
101403
+ {
101404
+ "kind": "string",
101405
+ "value": "true"
101406
+ },
101407
+ {
101408
+ "kind": "string",
101409
+ "value": "dialog"
101410
+ },
101411
+ {
101412
+ "kind": "string",
101413
+ "value": "tree"
101414
+ },
101415
+ {
101416
+ "kind": "primitive",
101417
+ "value": "undefined"
101418
+ }
101419
+ ]
101383
101420
  },
101384
101421
  "description": "",
101385
101422
  "tags": {},
@@ -191907,6 +191944,18 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
191907
191944
  "description": "",
191908
191945
  "tags": {},
191909
191946
  "declarations": []
191947
+ },
191948
+ {
191949
+ "kind": "property",
191950
+ "name": "aria-haspopup",
191951
+ "required": true,
191952
+ "type": {
191953
+ "kind": "string",
191954
+ "value": "menu"
191955
+ },
191956
+ "description": "",
191957
+ "tags": {},
191958
+ "declarations": []
191910
191959
  }
191911
191960
  ]
191912
191961
  }
@@ -59,7 +59,11 @@ const validationSchema: SchemaOf<LoginSchema> = object({
59
59
  role: string().required(roleRequired),
60
60
  });
61
61
 
62
- const options = ['Developer', 'Designer', 'Product Manager'];
62
+ const options = [
63
+ {id: '1', label: 'Developer'},
64
+ {id: '2', label: 'Designer'},
65
+ {id: '3', label: 'Product Manager'},
66
+ ];
63
67
 
64
68
  export default () => {
65
69
  const {
@@ -70,7 +74,7 @@ export default () => {
70
74
  defaultValues: {
71
75
  email: 'example@baz.com',
72
76
  password: 'foobarbaz',
73
- role: 'Designer',
77
+ role: '',
74
78
  },
75
79
  resolver: useYupValidationResolver(validationSchema),
76
80
  mode: 'onTouched',
@@ -94,17 +98,17 @@ export default () => {
94
98
  };
95
99
 
96
100
  return (
97
- <form onSubmit={onSubmit} action=".">
101
+ <form onSubmit={onSubmit} action="." noValidate={true}>
98
102
  <Flex gap="xs" flexDirection="column" alignItems="flex-start">
99
103
  <FormField orientation="vertical" isRequired={true} hasError={!!errors.role}>
100
- <Select items={options}>
104
+ <Select items={options} getTextValue={item => item.label}>
101
105
  <FormField.Label>What is your role?</FormField.Label>
102
106
  <FormField.Input as={Select.Input} {...register('role')} width="280px" />
103
107
  <Select.Popper>
104
108
  <Select.Card>
105
109
  <Select.List maxHeight={200}>
106
110
  {item => {
107
- return <Select.Item>{item}</Select.Item>;
111
+ return <Select.Item>{item.label}</Select.Item>;
108
112
  }}
109
113
  </Select.List>
110
114
  </Select.Card>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "10.3.35",
3
+ "version": "10.3.37",
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": "^10.3.35",
48
- "@workday/canvas-kit-preview-react": "^10.3.35",
49
- "@workday/canvas-kit-react": "^10.3.35",
50
- "@workday/canvas-kit-styling": "^10.3.35",
47
+ "@workday/canvas-kit-labs-react": "^10.3.37",
48
+ "@workday/canvas-kit-preview-react": "^10.3.37",
49
+ "@workday/canvas-kit-react": "^10.3.37",
50
+ "@workday/canvas-kit-styling": "^10.3.37",
51
51
  "@workday/canvas-system-icons-web": "^3.0.0",
52
52
  "@workday/canvas-tokens-web": "^1.0.0",
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": "5c944ffa5a0f9de8f59dc1d45cc5b9530204d36c"
62
+ "gitHead": "3e6ee1884f90549e6ae81e2206863c5f4f9502c6"
63
63
  }