@workday/canvas-kit-docs 12.0.0 → 12.0.1

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.
@@ -226058,116 +226058,176 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
226058
226058
  }
226059
226059
  },
226060
226060
  {
226061
- "name": "SelectInputProps",
226061
+ "name": "SelectProps",
226062
226062
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx",
226063
226063
  "description": "",
226064
226064
  "declarations": [
226065
226065
  {
226066
- "name": "SelectInputProps",
226066
+ "name": "SelectProps",
226067
226067
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226068
226068
  }
226069
226069
  ],
226070
226070
  "tags": {},
226071
226071
  "type": {
226072
226072
  "kind": "alias",
226073
- "name": "SelectInput"
226073
+ "name": "Select"
226074
226074
  }
226075
226075
  },
226076
226076
  {
226077
- "name": "SelectInput",
226077
+ "name": "Select",
226078
226078
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx",
226079
- "description": "",
226079
+ "description": "Use `Select` to allow users to choose an option from a list or type characters to select a matching option.\n\n**Note: `Select` must wrap `FormField` and `FormField` must wrap all `Select` children to ensure proper accessibility. **\n\n```tsx\n<Select items={options}>\n <FormField label=\"Your Label\">\n <Select.Input onChange={e => handleChange(e)} id=\"contact-select\" />\n <Select.Popper>\n <Select.Card>\n <Select.List>\n {item => <Select.Item>{item.id}</Select.Item>}\n </Select.List>\n </Select.Card>\n </Select.Popper>\n </FormField>\n</Select>\n```",
226080
226080
  "declarations": [
226081
226081
  {
226082
- "name": "SelectInput",
226082
+ "name": "Select",
226083
226083
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226084
226084
  }
226085
226085
  ],
226086
226086
  "tags": {},
226087
226087
  "type": {
226088
226088
  "kind": "enhancedComponent",
226089
- "componentType": "subcomponent",
226090
- "elemPropsHook": "useSelectInput",
226089
+ "componentType": "container",
226090
+ "displayName": "Select",
226091
226091
  "props": [
226092
226092
  {
226093
226093
  "kind": "property",
226094
- "name": "inputStartIcon",
226095
- "required": false,
226094
+ "name": "children",
226095
+ "required": true,
226096
226096
  "type": {
226097
- "kind": "symbol",
226098
- "name": "CanvasSystemIcon",
226099
- "value": "CanvasSystemIcon"
226097
+ "kind": "external",
226098
+ "name": "ReactNode",
226099
+ "url": "https://reactjs.org/docs/rendering-elements.html"
226100
226100
  },
226101
- "description": "The Icon to render at the start of the `input`. Use this prop if your options\ninclude icons that you would like to render in the `input` when selected.\n** Note:An option must be selected in order to render and icon.**",
226101
+ "description": "Children of the `Combobox`. Should contain a `Combobox.Input` and a `Combobox.Menu`",
226102
226102
  "declarations": [
226103
226103
  {
226104
- "name": "inputStartIcon",
226105
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226104
+ "name": "children",
226105
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/combobox/lib/Combobox.tsx"
226106
226106
  }
226107
226107
  ],
226108
226108
  "tags": {}
226109
226109
  },
226110
226110
  {
226111
226111
  "kind": "property",
226112
- "name": "error",
226113
- "required": false,
226112
+ "name": "model",
226113
+ "description": "Optional model to pass to the component. This will override the default model created for the component. This can be useful if you want to access to the state and events of the model, or if you have nested components of the same type and you need to override the model provided by React Context.",
226114
+ "tags": {},
226115
+ "declarations": [],
226114
226116
  "type": {
226115
226117
  "kind": "symbol",
226116
- "name": "ErrorType",
226117
- "value": "ErrorType"
226118
- },
226119
- "description": "The type of error associated with the TextInput (if applicable).",
226120
- "declarations": [
226121
- {
226122
- "name": "error",
226123
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/text-input/lib/TextInput.tsx"
226124
- }
226125
- ],
226126
- "tags": {}
226118
+ "name": "SelectModel"
226119
+ }
226127
226120
  },
226128
226121
  {
226129
226122
  "kind": "property",
226130
- "name": "width",
226131
- "required": false,
226123
+ "name": "elemPropsHook",
226124
+ "description": "Optional hook that receives the model and all props to be applied to the element. If you use this, it is your responsibility to return props, merging as appropriate. For example, returning an empty object will disable all elemProps hooks associated with this component. This allows finer control over a component without creating a new one.",
226125
+ "tags": {},
226126
+ "declarations": [],
226132
226127
  "type": {
226133
- "kind": "union",
226134
- "value": [
226128
+ "kind": "function",
226129
+ "parameters": [
226135
226130
  {
226136
- "kind": "primitive",
226137
- "value": "number"
226131
+ "kind": "parameter",
226132
+ "description": "",
226133
+ "tags": {},
226134
+ "declarations": [],
226135
+ "name": "model",
226136
+ "type": {
226137
+ "kind": "symbol",
226138
+ "name": "SelectModel"
226139
+ },
226140
+ "required": true
226138
226141
  },
226139
226142
  {
226140
- "kind": "primitive",
226141
- "value": "string"
226143
+ "kind": "parameter",
226144
+ "description": "",
226145
+ "tags": {},
226146
+ "declarations": [],
226147
+ "name": "elemProps",
226148
+ "type": {
226149
+ "kind": "generic",
226150
+ "name": "TProps"
226151
+ }
226142
226152
  }
226143
- ]
226144
- },
226145
- "description": "The width of the TextInput.",
226153
+ ],
226154
+ "returnType": {
226155
+ "kind": "external",
226156
+ "name": "HTML Attributes",
226157
+ "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes"
226158
+ }
226159
+ }
226160
+ }
226161
+ ],
226162
+ "model": "SelectModel",
226163
+ "subComponents": [
226164
+ {
226165
+ "name": "Input",
226166
+ "symbol": "SelectInput",
226167
+ "description": "`Select.Input` renders a {@link ComboboxMenu Combobox.Input} that handles keyboard navigation and interaction defined by [WAI](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/).\nThis component can either be [controlled or uncontrolled](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).\n\n```tsx\n<Select items={options}>\n <FormField label=\"Contact\">\n <Select.Input onChange={(event) => handleChange(event)}>\n ...\n </FormField>\n</Select>\n```",
226146
226168
  "declarations": [
226147
226169
  {
226148
- "name": "width",
226149
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/text-input/lib/TextInput.tsx"
226170
+ "name": "Input",
226171
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226172
+ },
226173
+ {
226174
+ "name": "SelectInput",
226175
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectInput.tsx"
226150
226176
  }
226151
226177
  ],
226152
226178
  "tags": {}
226153
226179
  },
226154
226180
  {
226155
- "kind": "property",
226156
- "name": "grow",
226157
- "required": false,
226158
- "type": {
226159
- "kind": "primitive",
226160
- "value": "boolean"
226161
- },
226162
- "description": "True if the component should grow to its container's width. False otherwise.",
226181
+ "name": "Card",
226182
+ "symbol": "SelectCard",
226183
+ "description": "`Select.Card` renders a {@link ComboboxCard Combobox.Card}. You have access to all `Card` props.\n\n**Note: The card will be the width of its corresponding `Select.Input`**.\n\n```tsx\n<Select items={options}>\n <FormField label=\"Your Label\">\n <Select.Input onChange={(event) => handleChange(event)}>\n <Select.Popper>\n <Select.Card>\n ...\n </Select.Card>\n </Select.Popper>\n </FormField>\n</Select>\n```",
226163
226184
  "declarations": [
226164
226185
  {
226165
- "name": "grow",
226166
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/types.ts"
226186
+ "name": "Card",
226187
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226188
+ },
226189
+ {
226190
+ "name": "SelectCard",
226191
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectCard.tsx"
226167
226192
  }
226168
226193
  ],
226169
226194
  "tags": {}
226170
226195
  },
226196
+ {
226197
+ "name": "Item",
226198
+ "symbol": "SelectItem",
226199
+ "description": "`Select.Item` renders a {@link ComboboxMenuItem Combobox.Menu.Item} with aria role of `option`. You can optionally render a `Icon`.\n\n```tsx\n<Select items={options}>\n <FormField label=\"Your Label\">\n <Select.Input onChange={(event) => handleChange(event)}>\n <Select.Popper>\n <Select.Card>\n <Select.List>\n {(item) => <Select.Item><Select.Item.Icon icon={icon} />{item}</Select.Item>}\n </Select.List\n </Select.Card>\n </Select.Popper>\n </FormField>\n</Select>\n```",
226200
+ "declarations": [
226201
+ {
226202
+ "name": "Item",
226203
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226204
+ },
226205
+ {
226206
+ "name": "SelectItem",
226207
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectItem.tsx"
226208
+ }
226209
+ ],
226210
+ "tags": {}
226211
+ }
226212
+ ]
226213
+ }
226214
+ },
226215
+ {
226216
+ "name": "SelectCard",
226217
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectCard.tsx",
226218
+ "description": "",
226219
+ "declarations": [
226220
+ {
226221
+ "name": "SelectCard",
226222
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectCard.tsx"
226223
+ }
226224
+ ],
226225
+ "tags": {},
226226
+ "type": {
226227
+ "kind": "enhancedComponent",
226228
+ "componentType": "subcomponent",
226229
+ "elemPropsHook": "useSelectCard",
226230
+ "props": [
226171
226231
  {
226172
226232
  "kind": "property",
226173
226233
  "name": "cs",
@@ -226210,8 +226270,9 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
226210
226270
  "url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
226211
226271
  },
226212
226272
  "defaultValue": {
226213
- "kind": "symbol",
226214
- "name": "TextInput"
226273
+ "kind": "external",
226274
+ "name": "div",
226275
+ "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"
226215
226276
  }
226216
226277
  },
226217
226278
  {
@@ -226230,8 +226291,9 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
226230
226291
  "name": "R",
226231
226292
  "required": true,
226232
226293
  "defaultValue": {
226233
- "kind": "symbol",
226234
- "name": "TextInput"
226294
+ "kind": "external",
226295
+ "name": "div",
226296
+ "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"
226235
226297
  }
226236
226298
  }
226237
226299
  ]
@@ -226290,111 +226352,172 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
226290
226352
  }
226291
226353
  ],
226292
226354
  "baseElement": {
226355
+ "kind": "external",
226356
+ "name": "div",
226357
+ "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"
226358
+ },
226359
+ "styleComponent": {
226293
226360
  "kind": "symbol",
226294
- "name": "TextInput"
226361
+ "name": "Box"
226295
226362
  },
226296
226363
  "model": "SelectModel"
226297
226364
  }
226298
226365
  },
226299
226366
  {
226300
- "name": "SelectItem",
226301
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx",
226367
+ "name": "SelectInputProps",
226368
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectInput.tsx",
226302
226369
  "description": "",
226303
226370
  "declarations": [
226304
226371
  {
226305
- "name": "SelectItem",
226306
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226372
+ "name": "SelectInputProps",
226373
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectInput.tsx"
226374
+ }
226375
+ ],
226376
+ "tags": {},
226377
+ "type": {
226378
+ "kind": "alias",
226379
+ "name": "SelectInput"
226380
+ }
226381
+ },
226382
+ {
226383
+ "name": "SelectInput",
226384
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectInput.tsx",
226385
+ "description": "",
226386
+ "declarations": [
226387
+ {
226388
+ "name": "SelectInput",
226389
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectInput.tsx"
226307
226390
  }
226308
226391
  ],
226309
226392
  "tags": {},
226310
226393
  "type": {
226311
226394
  "kind": "enhancedComponent",
226312
226395
  "componentType": "subcomponent",
226396
+ "elemPropsHook": "useSelectInput",
226313
226397
  "props": [
226314
226398
  {
226315
226399
  "kind": "property",
226316
- "name": "index",
226400
+ "name": "inputStartIcon",
226317
226401
  "required": false,
226318
226402
  "type": {
226319
- "kind": "primitive",
226320
- "value": "number"
226403
+ "kind": "symbol",
226404
+ "name": "CanvasSystemIcon",
226405
+ "value": "CanvasSystemIcon"
226321
226406
  },
226322
- "description": "Optionally pass index to menu item. This should be done if `Menu.Item` components were created\nvia a `Array::map` function. This index will ensure keyboard navigation works even if items are\ninserted out of order.",
226407
+ "description": "The Icon to render at the start of the `input`. Use this prop if your options\ninclude icons that you would like to render in the `input` when selected.\n** Note:An option must be selected in order to render and icon.**",
226323
226408
  "declarations": [
226324
226409
  {
226325
- "name": "index",
226326
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/menu/lib/MenuOption.tsx"
226410
+ "name": "inputStartIcon",
226411
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectInput.tsx"
226327
226412
  }
226328
226413
  ],
226329
226414
  "tags": {}
226330
226415
  },
226331
226416
  {
226332
226417
  "kind": "property",
226333
- "name": "children",
226418
+ "name": "error",
226334
226419
  "required": false,
226335
226420
  "type": {
226336
- "kind": "external",
226337
- "name": "ReactNode",
226338
- "url": "https://reactjs.org/docs/rendering-elements.html"
226421
+ "kind": "symbol",
226422
+ "name": "ErrorType",
226423
+ "value": "ErrorType"
226339
226424
  },
226340
- "description": "The label text of the MenuOption.",
226425
+ "description": "The type of error associated with the TextInput (if applicable).",
226341
226426
  "declarations": [
226342
226427
  {
226343
- "name": "children",
226344
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/menu/lib/MenuOption.tsx"
226428
+ "name": "error",
226429
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/text-input/lib/TextInput.tsx"
226345
226430
  }
226346
226431
  ],
226347
226432
  "tags": {}
226348
226433
  },
226349
226434
  {
226350
226435
  "kind": "property",
226351
- "name": "data-id",
226436
+ "name": "width",
226352
226437
  "required": false,
226353
226438
  "type": {
226354
- "kind": "primitive",
226355
- "value": "string"
226439
+ "kind": "union",
226440
+ "value": [
226441
+ {
226442
+ "kind": "primitive",
226443
+ "value": "number"
226444
+ },
226445
+ {
226446
+ "kind": "primitive",
226447
+ "value": "string"
226448
+ }
226449
+ ]
226356
226450
  },
226357
- "description": "The name of the menu item. This name will be used in the `onSelect` callback in the model. If\nthis property is not provided, it will default to a string representation of the the zero-based\nindex of the Tab when it was initialized.",
226451
+ "description": "The width of the TextInput.",
226358
226452
  "declarations": [
226359
226453
  {
226360
- "name": "data-id",
226361
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/menu/lib/MenuOption.tsx"
226454
+ "name": "width",
226455
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/text-input/lib/TextInput.tsx"
226362
226456
  }
226363
226457
  ],
226364
226458
  "tags": {}
226365
226459
  },
226366
226460
  {
226367
226461
  "kind": "property",
226368
- "name": "aria-disabled",
226462
+ "name": "grow",
226369
226463
  "required": false,
226370
226464
  "type": {
226371
226465
  "kind": "primitive",
226372
226466
  "value": "boolean"
226373
226467
  },
226374
- "description": "`aria-disabled` is used for keyboard and screen reader users to discover disabled content with\nthe keyboard or screen reader caret tool. For more information, see\nhttps://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls",
226468
+ "description": "True if the component should grow to its container's width. False otherwise.",
226375
226469
  "declarations": [
226376
226470
  {
226377
- "name": "aria-disabled",
226378
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/menu/lib/MenuOption.tsx"
226471
+ "name": "grow",
226472
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/types.ts"
226379
226473
  }
226380
226474
  ],
226381
226475
  "tags": {}
226382
226476
  },
226383
226477
  {
226384
226478
  "kind": "property",
226385
- "name": "as",
226386
- "description": "Optional override of the default element used by the component. Any valid tag or Component. If you provided a Component, this component should forward the ref using `React.forwardRef`and spread extra props to a root element.\n\n**Note:** Not all elements make sense and some elements may cause accessibility issues. Change this value with care.",
226387
- "tags": {},
226388
- "declarations": [],
226479
+ "name": "cs",
226480
+ "required": false,
226389
226481
  "type": {
226390
- "kind": "external",
226482
+ "kind": "symbol",
226483
+ "name": "CSToPropsInput",
226484
+ "value": "CSToPropsInput"
226485
+ },
226486
+ "description": "The `cs` prop takes in a single value or an array of values. You can pass the CSS class name\nreturned by {@link createStyles}, or the result of {@link createVars} and\n{@link createModifiers}. If you're extending a component already using `cs`, you can merge that\nprop in as well. Any style that is passed to the `cs` prop will override style props. If you\nwish to have styles that are overridden by the `css` prop, or styles added via the `styled`\nAPI, use {@link handleCsProp} wherever `elemProps` is used. If your component needs to also\nhandle style props, use {@link mergeStyles } instead.\n\n\n```tsx\nimport {handleCsProp} from '@workday/canvas-kit-styling';\nimport {mergeStyles} from '@workday/canvas-kit-react/layout';\n\n// ...\n\n// `handleCsProp` handles compat mode with Emotion's runtime APIs. `mergeStyles` has the same\n// function signature, but adds support for style props.\n\nreturn (\n <Element\n {...handleCsProp(elemProps, [\n myStyles,\n myModifiers({ size: 'medium' }),\n myVars({ backgroundColor: 'red' })\n ])}\n >\n {children}\n </Element>\n)\n```",
226487
+ "declarations": [
226488
+ {
226489
+ "name": "cs",
226490
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
226491
+ }
226492
+ ],
226493
+ "tags": {}
226494
+ },
226495
+ {
226496
+ "kind": "property",
226497
+ "name": "children",
226498
+ "description": "",
226499
+ "tags": {},
226500
+ "declarations": [],
226501
+ "type": {
226502
+ "kind": "external",
226503
+ "name": "React.ReactNode",
226504
+ "url": "https://reactjs.org/docs/rendering-elements.html"
226505
+ }
226506
+ },
226507
+ {
226508
+ "kind": "property",
226509
+ "name": "as",
226510
+ "description": "Optional override of the default element used by the component. Any valid tag or Component. If you provided a Component, this component should forward the ref using `React.forwardRef`and spread extra props to a root element.\n\n**Note:** Not all elements make sense and some elements may cause accessibility issues. Change this value with care.",
226511
+ "tags": {},
226512
+ "declarations": [],
226513
+ "type": {
226514
+ "kind": "external",
226391
226515
  "name": "React.ElementType",
226392
226516
  "url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
226393
226517
  },
226394
226518
  "defaultValue": {
226395
- "kind": "external",
226396
- "name": "li",
226397
- "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li"
226519
+ "kind": "symbol",
226520
+ "name": "TextInput"
226398
226521
  }
226399
226522
  },
226400
226523
  {
@@ -226413,9 +226536,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
226413
226536
  "name": "R",
226414
226537
  "required": true,
226415
226538
  "defaultValue": {
226416
- "kind": "external",
226417
- "name": "li",
226418
- "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li"
226539
+ "kind": "symbol",
226540
+ "name": "TextInput"
226419
226541
  }
226420
226542
  }
226421
226543
  ]
@@ -226474,44 +226596,40 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
226474
226596
  }
226475
226597
  ],
226476
226598
  "baseElement": {
226477
- "kind": "external",
226478
- "name": "li",
226479
- "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li"
226599
+ "kind": "symbol",
226600
+ "name": "TextInput"
226480
226601
  },
226481
- "subComponents": [],
226482
226602
  "model": "SelectModel"
226483
226603
  }
226484
226604
  },
226485
226605
  {
226486
- "name": "SelectCard",
226487
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx",
226606
+ "name": "SelectItem",
226607
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectItem.tsx",
226488
226608
  "description": "",
226489
226609
  "declarations": [
226490
226610
  {
226491
- "name": "SelectCard",
226492
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226611
+ "name": "SelectItem",
226612
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/SelectItem.tsx"
226493
226613
  }
226494
226614
  ],
226495
226615
  "tags": {},
226496
226616
  "type": {
226497
226617
  "kind": "enhancedComponent",
226498
226618
  "componentType": "subcomponent",
226499
- "elemPropsHook": "useSelectCard",
226500
226619
  "props": [
226501
226620
  {
226502
226621
  "kind": "property",
226503
- "name": "cs",
226622
+ "name": "index",
226504
226623
  "required": false,
226505
226624
  "type": {
226506
- "kind": "symbol",
226507
- "name": "CSToPropsInput",
226508
- "value": "CSToPropsInput"
226625
+ "kind": "primitive",
226626
+ "value": "number"
226509
226627
  },
226510
- "description": "The `cs` prop takes in a single value or an array of values. You can pass the CSS class name\nreturned by {@link createStyles}, or the result of {@link createVars} and\n{@link createModifiers}. If you're extending a component already using `cs`, you can merge that\nprop in as well. Any style that is passed to the `cs` prop will override style props. If you\nwish to have styles that are overridden by the `css` prop, or styles added via the `styled`\nAPI, use {@link handleCsProp} wherever `elemProps` is used. If your component needs to also\nhandle style props, use {@link mergeStyles } instead.\n\n\n```tsx\nimport {handleCsProp} from '@workday/canvas-kit-styling';\nimport {mergeStyles} from '@workday/canvas-kit-react/layout';\n\n// ...\n\n// `handleCsProp` handles compat mode with Emotion's runtime APIs. `mergeStyles` has the same\n// function signature, but adds support for style props.\n\nreturn (\n <Element\n {...handleCsProp(elemProps, [\n myStyles,\n myModifiers({ size: 'medium' }),\n myVars({ backgroundColor: 'red' })\n ])}\n >\n {children}\n </Element>\n)\n```",
226628
+ "description": "Optionally pass index to menu item. This should be done if `Menu.Item` components were created\nvia a `Array::map` function. This index will ensure keyboard navigation works even if items are\ninserted out of order.",
226511
226629
  "declarations": [
226512
226630
  {
226513
- "name": "cs",
226514
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/styling/dist/es6/lib/cs.d.ts"
226631
+ "name": "index",
226632
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/menu/lib/MenuOption.tsx"
226515
226633
  }
226516
226634
  ],
226517
226635
  "tags": {}
@@ -226519,14 +226637,54 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
226519
226637
  {
226520
226638
  "kind": "property",
226521
226639
  "name": "children",
226522
- "description": "",
226523
- "tags": {},
226524
- "declarations": [],
226640
+ "required": false,
226525
226641
  "type": {
226526
226642
  "kind": "external",
226527
- "name": "React.ReactNode",
226643
+ "name": "ReactNode",
226528
226644
  "url": "https://reactjs.org/docs/rendering-elements.html"
226529
- }
226645
+ },
226646
+ "description": "The label text of the MenuOption.",
226647
+ "declarations": [
226648
+ {
226649
+ "name": "children",
226650
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/menu/lib/MenuOption.tsx"
226651
+ }
226652
+ ],
226653
+ "tags": {}
226654
+ },
226655
+ {
226656
+ "kind": "property",
226657
+ "name": "data-id",
226658
+ "required": false,
226659
+ "type": {
226660
+ "kind": "primitive",
226661
+ "value": "string"
226662
+ },
226663
+ "description": "The name of the menu item. This name will be used in the `onSelect` callback in the model. If\nthis property is not provided, it will default to a string representation of the the zero-based\nindex of the Tab when it was initialized.",
226664
+ "declarations": [
226665
+ {
226666
+ "name": "data-id",
226667
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/menu/lib/MenuOption.tsx"
226668
+ }
226669
+ ],
226670
+ "tags": {}
226671
+ },
226672
+ {
226673
+ "kind": "property",
226674
+ "name": "aria-disabled",
226675
+ "required": false,
226676
+ "type": {
226677
+ "kind": "primitive",
226678
+ "value": "boolean"
226679
+ },
226680
+ "description": "`aria-disabled` is used for keyboard and screen reader users to discover disabled content with\nthe keyboard or screen reader caret tool. For more information, see\nhttps://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls",
226681
+ "declarations": [
226682
+ {
226683
+ "name": "aria-disabled",
226684
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/menu/lib/MenuOption.tsx"
226685
+ }
226686
+ ],
226687
+ "tags": {}
226530
226688
  },
226531
226689
  {
226532
226690
  "kind": "property",
@@ -226541,8 +226699,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
226541
226699
  },
226542
226700
  "defaultValue": {
226543
226701
  "kind": "external",
226544
- "name": "div",
226545
- "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"
226702
+ "name": "li",
226703
+ "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li"
226546
226704
  }
226547
226705
  },
226548
226706
  {
@@ -226562,8 +226720,8 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
226562
226720
  "required": true,
226563
226721
  "defaultValue": {
226564
226722
  "kind": "external",
226565
- "name": "div",
226566
- "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"
226723
+ "name": "li",
226724
+ "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li"
226567
226725
  }
226568
226726
  }
226569
226727
  ]
@@ -226623,159 +226781,13 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
226623
226781
  ],
226624
226782
  "baseElement": {
226625
226783
  "kind": "external",
226626
- "name": "div",
226627
- "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"
226628
- },
226629
- "styleComponent": {
226630
- "kind": "symbol",
226631
- "name": "Box"
226784
+ "name": "li",
226785
+ "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li"
226632
226786
  },
226787
+ "subComponents": [],
226633
226788
  "model": "SelectModel"
226634
226789
  }
226635
226790
  },
226636
- {
226637
- "name": "SelectProps",
226638
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx",
226639
- "description": "",
226640
- "declarations": [
226641
- {
226642
- "name": "SelectProps",
226643
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226644
- }
226645
- ],
226646
- "tags": {},
226647
- "type": {
226648
- "kind": "alias",
226649
- "name": "Select"
226650
- }
226651
- },
226652
- {
226653
- "name": "Select",
226654
- "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx",
226655
- "description": "Use `Select` to allow users to choose an option from a list or type characters to select a matching option.\n\n**Note: `Select` must wrap `FormField` and `FormField` must wrap all `Select` children to ensure proper accessibility. **\n\n```tsx\n<Select items={options}>\n <FormField label=\"Your Label\">\n <Select.Input onChange={e => handleChange(e)} id=\"contact-select\" />\n <Select.Popper>\n <Select.Card>\n <Select.List>\n {item => <Select.Item>{item.id}</Select.Item>}\n </Select.List>\n </Select.Card>\n </Select.Popper>\n </FormField>\n</Select>\n```",
226656
- "declarations": [
226657
- {
226658
- "name": "Select",
226659
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226660
- }
226661
- ],
226662
- "tags": {},
226663
- "type": {
226664
- "kind": "enhancedComponent",
226665
- "componentType": "container",
226666
- "displayName": "Select",
226667
- "props": [
226668
- {
226669
- "kind": "property",
226670
- "name": "children",
226671
- "required": true,
226672
- "type": {
226673
- "kind": "external",
226674
- "name": "ReactNode",
226675
- "url": "https://reactjs.org/docs/rendering-elements.html"
226676
- },
226677
- "description": "Children of the `Combobox`. Should contain a `Combobox.Input` and a `Combobox.Menu`",
226678
- "declarations": [
226679
- {
226680
- "name": "children",
226681
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/combobox/lib/Combobox.tsx"
226682
- }
226683
- ],
226684
- "tags": {}
226685
- },
226686
- {
226687
- "kind": "property",
226688
- "name": "model",
226689
- "description": "Optional model to pass to the component. This will override the default model created for the component. This can be useful if you want to access to the state and events of the model, or if you have nested components of the same type and you need to override the model provided by React Context.",
226690
- "tags": {},
226691
- "declarations": [],
226692
- "type": {
226693
- "kind": "symbol",
226694
- "name": "SelectModel"
226695
- }
226696
- },
226697
- {
226698
- "kind": "property",
226699
- "name": "elemPropsHook",
226700
- "description": "Optional hook that receives the model and all props to be applied to the element. If you use this, it is your responsibility to return props, merging as appropriate. For example, returning an empty object will disable all elemProps hooks associated with this component. This allows finer control over a component without creating a new one.",
226701
- "tags": {},
226702
- "declarations": [],
226703
- "type": {
226704
- "kind": "function",
226705
- "parameters": [
226706
- {
226707
- "kind": "parameter",
226708
- "description": "",
226709
- "tags": {},
226710
- "declarations": [],
226711
- "name": "model",
226712
- "type": {
226713
- "kind": "symbol",
226714
- "name": "SelectModel"
226715
- },
226716
- "required": true
226717
- },
226718
- {
226719
- "kind": "parameter",
226720
- "description": "",
226721
- "tags": {},
226722
- "declarations": [],
226723
- "name": "elemProps",
226724
- "type": {
226725
- "kind": "generic",
226726
- "name": "TProps"
226727
- }
226728
- }
226729
- ],
226730
- "returnType": {
226731
- "kind": "external",
226732
- "name": "HTML Attributes",
226733
- "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes"
226734
- }
226735
- }
226736
- }
226737
- ],
226738
- "model": "SelectModel",
226739
- "subComponents": [
226740
- {
226741
- "name": "Input",
226742
- "symbol": "SelectInput",
226743
- "description": "`Select.Input` renders a {@link ComboboxMenu Combobox.Input} that handles keyboard navigation and interaction defined by [WAI](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/).\nThis component can either be [controlled or uncontrolled](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).\n\n```tsx\n<Select items={options}>\n <FormField label=\"Contact\">\n <Select.Input onChange={(event) => handleChange(event)}>\n ...\n </FormField>\n</Select>\n```",
226744
- "declarations": [
226745
- {
226746
- "name": "Input",
226747
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226748
- }
226749
- ],
226750
- "tags": {}
226751
- },
226752
- {
226753
- "name": "Card",
226754
- "symbol": "SelectCard",
226755
- "description": "`Select.Card` renders a {@link ComboboxCard Combobox.Card}. You have access to all `Card` props.\n\n**Note: The card will be the width of its corresponding `Select.Input`**.\n\n```tsx\n<Select items={options}>\n <FormField label=\"Your Label\">\n <Select.Input onChange={(event) => handleChange(event)}>\n <Select.Popper>\n <Select.Card>\n ...\n </Select.Card>\n </Select.Popper>\n </FormField>\n</Select>\n```",
226756
- "declarations": [
226757
- {
226758
- "name": "Card",
226759
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226760
- }
226761
- ],
226762
- "tags": {}
226763
- },
226764
- {
226765
- "name": "Item",
226766
- "symbol": "SelectItem",
226767
- "description": "`Select.Item` renders a {@link ComboboxMenuItem Combobox.Menu.Item} with aria role of `option`. You can optionally render a `Icon`.\n\n```tsx\n<Select items={options}>\n <FormField label=\"Your Label\">\n <Select.Input onChange={(event) => handleChange(event)}>\n <Select.Popper>\n <Select.Card>\n <Select.List>\n {(item) => <Select.Item><Select.Item.Icon icon={icon} />{item}</Select.Item>}\n </Select.List\n </Select.Card>\n </Select.Popper>\n </FormField>\n</Select>\n```",
226768
- "declarations": [
226769
- {
226770
- "name": "Item",
226771
- "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/select/lib/Select.tsx"
226772
- }
226773
- ],
226774
- "tags": {}
226775
- }
226776
- ]
226777
- }
226778
- },
226779
226791
  {
226780
226792
  "name": "SidePanelProps",
226781
226793
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/side-panel/lib/SidePanel.tsx",
@@ -78,7 +78,7 @@ automatically update your code to work with most of the breaking changes in v11.
78
78
  handled by the codemod are marked with 🤖 in the Upgrade Guide.**
79
79
 
80
80
  A codemod is a script that makes programmatic transformations on your codebase by traversing the
81
- [AST](https://www.codeshiftcommunity.com/docs/understanding-asts), identifying patterns, and making
81
+ [AST](https://www.hypermod.io/docs/guides/understanding-asts), identifying patterns, and making
82
82
  prescribed changes. This greatly decreases opportunities for error and reduces the number of manual
83
83
  updates, which allows you to focus on changes that need your attention. **We highly recommend you
84
84
  use the codemod for these reasons.**
@@ -39,7 +39,7 @@ automatically update your code to work with most of the breaking changes in v9.
39
39
  handled by the codemod are marked with 🤖 in the Upgrade Guide.**
40
40
 
41
41
  A codemod is a script that makes programmatic transformations on your codebase by traversing the
42
- [AST](https://www.codeshiftcommunity.com/docs/understanding-asts), identifying patterns, and making
42
+ [AST](https://www.hypermod.io/docs/guides/understanding-asts), identifying patterns, and making
43
43
  prescribed changes. This greatly decreases opportunities for error and reduces the number of manual
44
44
  updates, which allows you to focus on changes that need your attention. **We highly recommend you
45
45
  use the codemod for these reasons.**
@@ -0,0 +1,9 @@
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
2
+ import SelectWithFormik from './examples/SelectWithFormik';
3
+
4
+
5
+ # Canvas Kit Examples
6
+
7
+ ## Select Using Formik
8
+
9
+ <ExampleCodeBlock code={SelectWithFormik} />
@@ -17,7 +17,6 @@ const formStyles = createStyles({
17
17
  const formFieldGroupListStyles = createStyles({
18
18
  display: 'inline-flex',
19
19
  flexDirection: 'row',
20
- padding: system.space.zero,
21
20
  flexWrap: 'wrap',
22
21
  });
23
22
 
@@ -109,13 +108,50 @@ const formFieldStencil = createStencil({
109
108
  gap: system.space.x2,
110
109
  },
111
110
  },
111
+ labelOrientation: {
112
+ horizontalStart: {},
113
+ horizontalEnd: {},
114
+ vertical: {},
115
+ },
112
116
  },
113
- });
114
-
115
- const creditCardInputStyles = createStyles({
116
- width: calc.add(system.space.x10, system.space.x10),
117
- minWidth: calc.add(system.space.x10, system.space.x10),
118
- textAlign: 'center',
117
+ compound: [
118
+ {
119
+ modifiers: {labelOrientation: 'horizontalStart', density: 'high'},
120
+ styles: {
121
+ gap: system.space.x4,
122
+ },
123
+ },
124
+ {
125
+ modifiers: {labelOrientation: 'horizontalStart', density: 'medium'},
126
+ styles: {
127
+ gap: system.space.x6,
128
+ },
129
+ },
130
+ {
131
+ modifiers: {labelOrientation: 'horizontalStart', density: 'low'},
132
+ styles: {
133
+ gap: system.space.x8,
134
+ },
135
+ },
136
+ {
137
+ modifiers: {labelOrientation: 'horizontalEnd', density: 'high'},
138
+ styles: {
139
+ gap: system.space.x4,
140
+ },
141
+ },
142
+ {
143
+ modifiers: {labelOrientation: 'horizontalEnd', density: 'medium'},
144
+ styles: {
145
+ gap: system.space.x6,
146
+ },
147
+ },
148
+ {
149
+ modifiers: {labelOrientation: 'horizontalEnd', density: 'low'},
150
+ styles: {
151
+ gap: system.space.x8,
152
+ },
153
+ },
154
+ ],
119
155
  });
120
156
 
121
157
  const selectStencil = createStencil({
@@ -167,6 +203,15 @@ const inputStencil = createStencil({
167
203
  },
168
204
  });
169
205
 
206
+ const creditCardInputStencil = createStencil({
207
+ extends: inputStencil,
208
+ base: {
209
+ width: calc.add(system.space.x10, system.space.x10),
210
+ minWidth: calc.add(system.space.x10, system.space.x10),
211
+ textAlign: 'center',
212
+ },
213
+ });
214
+
170
215
  const flexContainerStencil = createStencil({
171
216
  base: {
172
217
  display: 'flex',
@@ -283,7 +328,7 @@ export default () => {
283
328
  <FormField
284
329
  orientation={labelOrientation}
285
330
  grow
286
- cs={formFieldStencil({density})}
331
+ cs={formFieldStencil({density, labelOrientation})}
287
332
  id="foo"
288
333
  >
289
334
  <FormField.Label>Choose Country</FormField.Label>
@@ -300,67 +345,94 @@ export default () => {
300
345
  </Select.Popper>
301
346
  </Select>
302
347
  </FormField>
303
- <FormField grow orientation={labelOrientation} cs={formFieldStencil({density})}>
348
+ <FormField
349
+ grow
350
+ orientation={labelOrientation}
351
+ cs={formFieldStencil({density, labelOrientation})}
352
+ >
304
353
  <FormField.Label>Full Name</FormField.Label>
305
354
  <FormField.Input as={TextInput} cs={inputStencil({density})} />
306
355
  </FormField>
307
- <FormField grow orientation={labelOrientation} cs={formFieldStencil({density})}>
356
+ <FormField
357
+ grow
358
+ orientation={labelOrientation}
359
+ cs={formFieldStencil({density, labelOrientation})}
360
+ >
308
361
  <FormField.Label>Phone Number</FormField.Label>
309
362
  <FormField.Input as={TextInput} cs={inputStencil({density})} />
310
363
  </FormField>
311
- <FormField grow orientation={labelOrientation} cs={formFieldStencil({density})}>
364
+ <FormField
365
+ grow
366
+ orientation={labelOrientation}
367
+ cs={formFieldStencil({density, labelOrientation})}
368
+ >
312
369
  <FormField.Label>Street Address</FormField.Label>
313
370
  <FormField.Input as={TextInput} cs={inputStencil({density})} />
314
371
  </FormField>
315
- <FormField grow orientation={labelOrientation} cs={formFieldStencil({density})}>
372
+ <FormField
373
+ grow
374
+ orientation={labelOrientation}
375
+ cs={formFieldStencil({density, labelOrientation})}
376
+ >
316
377
  <FormField.Label>City</FormField.Label>
317
378
  <FormField.Input as={TextInput} cs={inputStencil({density})} />
318
379
  </FormField>
319
380
  <div {...sideBySideInputs({labelOrientation: labelOrientation, density})}>
320
- <FormField grow orientation={labelOrientation} cs={formFieldStencil({density})}>
381
+ <FormField
382
+ grow
383
+ orientation={labelOrientation}
384
+ cs={formFieldStencil({density, labelOrientation})}
385
+ >
321
386
  <FormField.Label>State</FormField.Label>
322
387
  <FormField.Input as={TextInput} cs={inputStencil({density})} />
323
388
  </FormField>
324
389
  <FormField
325
390
  grow
326
391
  orientation={labelOrientation}
327
- cs={[formFieldStencil({density}), zipCodeContainerStyles]}
392
+ cs={[formFieldStencil({density, labelOrientation}), zipCodeContainerStyles]}
328
393
  >
329
394
  <FormField.Label>Zip Code</FormField.Label>
330
395
  <FormField.Input cs={[inputStencil({density}), zipCodeInput]} as={TextInput} />
331
396
  </FormField>
332
397
  </div>
333
- <FormField orientation={labelOrientation} cs={formFieldStencil({density})}>
398
+ <FormField
399
+ orientation={labelOrientation}
400
+ cs={formFieldStencil({density, labelOrientation})}
401
+ >
334
402
  <FormField.Label>Enable Fast Shipping</FormField.Label>
335
403
  <FormField.Field>
336
404
  <FormField.Input as={Switch} />
337
405
  </FormField.Field>
338
406
  </FormField>
339
- <FormFieldGroup cs={formFieldStencil({density})} orientation={labelOrientation}>
407
+ <FormFieldGroup
408
+ cs={formFieldStencil({density, labelOrientation})}
409
+ orientation={labelOrientation}
410
+ >
340
411
  <FormFieldGroup.Label>Credit Card</FormFieldGroup.Label>
341
-
342
- <FormFieldGroup.List cs={formFieldGroupListStyles}>
343
- <FormFieldGroup.Input
344
- as={TextInput}
345
- placeholder="XXXX"
346
- cs={[inputStencil({density}), creditCardInputStyles]}
347
- />
348
- <FormFieldGroup.Input
349
- as={TextInput}
350
- placeholder="XXXX"
351
- cs={[inputStencil({density}), creditCardInputStyles]}
352
- />
353
- <FormFieldGroup.Input
354
- as={TextInput}
355
- placeholder="XXXX"
356
- cs={[inputStencil({density}), creditCardInputStyles]}
357
- />
358
- <FormFieldGroup.Input
359
- cs={[inputStencil({density}), creditCardInputStyles]}
360
- placeholder="XXXX"
361
- as={TextInput}
362
- />
363
- </FormFieldGroup.List>
412
+ <FormFieldGroup.Field>
413
+ <FormFieldGroup.List cs={formFieldGroupListStyles}>
414
+ <FormFieldGroup.Input
415
+ as={TextInput}
416
+ placeholder="XXXX"
417
+ cs={creditCardInputStencil({density})}
418
+ />
419
+ <FormFieldGroup.Input
420
+ as={TextInput}
421
+ placeholder="XXXX"
422
+ cs={creditCardInputStencil({density})}
423
+ />
424
+ <FormFieldGroup.Input
425
+ as={TextInput}
426
+ placeholder="XXXX"
427
+ cs={creditCardInputStencil({density})}
428
+ />
429
+ <FormFieldGroup.Input
430
+ cs={creditCardInputStencil({density})}
431
+ placeholder="XXXX"
432
+ as={TextInput}
433
+ />
434
+ </FormFieldGroup.List>
435
+ </FormFieldGroup.Field>
364
436
  </FormFieldGroup>
365
437
  </div>
366
438
  </form>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "12.0.0",
3
+ "version": "12.0.1",
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.0.0",
48
- "@workday/canvas-kit-preview-react": "^12.0.0",
49
- "@workday/canvas-kit-react": "^12.0.0",
50
- "@workday/canvas-kit-styling": "^12.0.0",
47
+ "@workday/canvas-kit-labs-react": "^12.0.1",
48
+ "@workday/canvas-kit-preview-react": "^12.0.1",
49
+ "@workday/canvas-kit-react": "^12.0.1",
50
+ "@workday/canvas-kit-styling": "^12.0.1",
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": "b7605cd0991ae1f46da537001ae6a26a811bcdb0"
63
+ "gitHead": "6350b962eb767056c20a7ea0a8a74a8a924b6e73"
64
64
  }
@@ -1,14 +0,0 @@
1
- import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
2
- import SelectWithFormik from './examples/SelectWithFormik';
3
- import TextInputWithFormik from './examples/TextInputWithFormik';
4
-
5
-
6
- # Canvas Kit Examples
7
-
8
- ## Select Using Formik
9
-
10
- <ExampleCodeBlock code={SelectWithFormik} />
11
-
12
- ## Controlled Text Inputs Using Formik
13
-
14
- <ExampleCodeBlock code={TextInputWithFormik} />