@workday/canvas-kit-docs 12.0.0-alpha.862-next.0 → 12.0.0-alpha.899-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.
Files changed (434) hide show
  1. package/dist/es6/docgen/docParser.d.ts +1 -1
  2. package/dist/es6/docgen/docParser.d.ts.map +1 -1
  3. package/dist/es6/docgen/docParser.js +12 -2
  4. package/dist/es6/docgen/docTypes.d.ts +1 -1
  5. package/dist/es6/docgen/docTypes.d.ts.map +1 -1
  6. package/dist/es6/docgen/plugins/enhancedComponentParser.d.ts +1 -1
  7. package/dist/es6/docgen/plugins/enhancedComponentParser.d.ts.map +1 -1
  8. package/dist/es6/docgen/traverse.d.ts +2 -2
  9. package/dist/es6/docgen/traverse.d.ts.map +1 -1
  10. package/dist/es6/index.d.ts +1 -0
  11. package/dist/es6/index.d.ts.map +1 -1
  12. package/dist/es6/index.js +1 -0
  13. package/dist/es6/lib/ExampleCodeBlock.d.ts +3 -0
  14. package/dist/es6/lib/ExampleCodeBlock.d.ts.map +1 -0
  15. package/dist/es6/lib/ExampleCodeBlock.js +93 -0
  16. package/dist/es6/lib/InformationHighlight/Base.js +1 -1
  17. package/dist/es6/lib/InformationHighlight/Body.js +1 -1
  18. package/dist/es6/lib/InformationHighlight/Heading.js +1 -1
  19. package/dist/es6/lib/InformationHighlight/Icon.d.ts +1 -1
  20. package/dist/es6/lib/InformationHighlight/Icon.d.ts.map +1 -1
  21. package/dist/es6/lib/InformationHighlight/Icon.js +1 -1
  22. package/dist/es6/lib/InformationHighlight/Link.js +1 -1
  23. package/dist/es6/lib/InformationHighlight/index.d.ts +1 -1
  24. package/dist/es6/lib/InformationHighlight/index.d.ts.map +1 -1
  25. package/dist/es6/lib/InformationHighlight/index.js +1 -1
  26. package/dist/es6/lib/InformationHighlight/modelHook.d.ts +1 -1
  27. package/dist/es6/lib/InformationHighlight/modelHook.d.ts.map +1 -1
  28. package/dist/es6/lib/MDXElements.d.ts +2 -1
  29. package/dist/es6/lib/MDXElements.d.ts.map +1 -1
  30. package/dist/es6/lib/MDXElements.js +1 -1
  31. package/dist/es6/lib/MoreTooltip.d.ts +1 -1
  32. package/dist/es6/lib/MoreTooltip.d.ts.map +1 -1
  33. package/dist/es6/lib/MoreTooltip.js +2 -2
  34. package/dist/es6/lib/Specifications.d.ts +2 -1
  35. package/dist/es6/lib/Specifications.d.ts.map +1 -1
  36. package/dist/es6/lib/StylePropsTable.d.ts +3 -2
  37. package/dist/es6/lib/StylePropsTable.d.ts.map +1 -1
  38. package/dist/es6/lib/Table.js +6 -6
  39. package/dist/es6/lib/Value.d.ts +3 -3
  40. package/dist/es6/lib/Value.d.ts.map +1 -1
  41. package/dist/es6/lib/Value.js +4 -2
  42. package/dist/es6/lib/docs.d.ts +3 -3
  43. package/dist/es6/lib/docs.d.ts.map +1 -1
  44. package/dist/es6/lib/docs.js +76923 -72365
  45. package/dist/es6/lib/specs.js +1 -7130
  46. package/dist/es6/lib/widgetUtils.d.ts +5 -5
  47. package/dist/es6/lib/widgetUtils.d.ts.map +1 -1
  48. package/dist/es6/lib/widgetUtils.js +2 -2
  49. package/dist/es6/mdx/installBlock.d.ts +2 -1
  50. package/dist/es6/mdx/installBlock.d.ts.map +1 -1
  51. package/dist/es6/mdx/style-props/examples/Background.d.ts +2 -1
  52. package/dist/es6/mdx/style-props/examples/Background.d.ts.map +1 -1
  53. package/dist/es6/mdx/style-props/examples/Background.js +6 -4
  54. package/dist/es6/mdx/style-props/examples/Border.d.ts +2 -1
  55. package/dist/es6/mdx/style-props/examples/Border.d.ts.map +1 -1
  56. package/dist/es6/mdx/style-props/examples/Border.js +4 -4
  57. package/dist/es6/mdx/style-props/examples/Color.d.ts +2 -1
  58. package/dist/es6/mdx/style-props/examples/Color.d.ts.map +1 -1
  59. package/dist/es6/mdx/style-props/examples/Color.js +4 -4
  60. package/dist/es6/mdx/style-props/examples/Depth.d.ts +2 -1
  61. package/dist/es6/mdx/style-props/examples/Depth.d.ts.map +1 -1
  62. package/dist/es6/mdx/style-props/examples/Depth.js +4 -4
  63. package/dist/es6/mdx/style-props/examples/Flex.d.ts +2 -1
  64. package/dist/es6/mdx/style-props/examples/Flex.d.ts.map +1 -1
  65. package/dist/es6/mdx/style-props/examples/Flex.js +9 -9
  66. package/dist/es6/mdx/style-props/examples/FlexItem.d.ts +2 -1
  67. package/dist/es6/mdx/style-props/examples/FlexItem.d.ts.map +1 -1
  68. package/dist/es6/mdx/style-props/examples/FlexItem.js +9 -9
  69. package/dist/es6/mdx/style-props/examples/Grid.d.ts +2 -1
  70. package/dist/es6/mdx/style-props/examples/Grid.d.ts.map +1 -1
  71. package/dist/es6/mdx/style-props/examples/Grid.js +4 -4
  72. package/dist/es6/mdx/style-props/examples/GridItem.d.ts +2 -1
  73. package/dist/es6/mdx/style-props/examples/GridItem.d.ts.map +1 -1
  74. package/dist/es6/mdx/style-props/examples/GridItem.js +5 -5
  75. package/dist/es6/mdx/style-props/examples/Layout.d.ts +2 -1
  76. package/dist/es6/mdx/style-props/examples/Layout.d.ts.map +1 -1
  77. package/dist/es6/mdx/style-props/examples/Layout.js +4 -4
  78. package/dist/es6/mdx/style-props/examples/Other.d.ts +2 -1
  79. package/dist/es6/mdx/style-props/examples/Other.d.ts.map +1 -1
  80. package/dist/es6/mdx/style-props/examples/Other.js +4 -4
  81. package/dist/es6/mdx/style-props/examples/Position.d.ts +2 -1
  82. package/dist/es6/mdx/style-props/examples/Position.d.ts.map +1 -1
  83. package/dist/es6/mdx/style-props/examples/Position.js +4 -4
  84. package/dist/es6/mdx/style-props/examples/Space.d.ts +2 -1
  85. package/dist/es6/mdx/style-props/examples/Space.d.ts.map +1 -1
  86. package/dist/es6/mdx/style-props/examples/Space.js +4 -4
  87. package/dist/es6/mdx/style-props/examples/Text.d.ts +2 -1
  88. package/dist/es6/mdx/style-props/examples/Text.d.ts.map +1 -1
  89. package/dist/es6/mdx/style-props/examples/Text.js +1 -1
  90. package/dist/es6/mdx/versionsTable.d.ts +2 -1
  91. package/dist/es6/mdx/versionsTable.d.ts.map +1 -1
  92. package/dist/es6/mdx/welcomePage.d.ts +2 -1
  93. package/dist/es6/mdx/welcomePage.d.ts.map +1 -1
  94. package/dist/es6/mdx/welcomePage.js +5 -3
  95. package/dist/mdx/11.0-UPGRADE-GUIDE.mdx +8 -8
  96. package/dist/mdx/12.0-UPGRADE-GUIDE.mdx +350 -39
  97. package/dist/mdx/4.0-UPGRADE-GUIDE.mdx +1 -11
  98. package/dist/mdx/5.0-UPGRADE-GUIDE.mdx +0 -10
  99. package/dist/mdx/6.0-UPGRADE-GUIDE.mdx +0 -10
  100. package/dist/mdx/7.0-UPGRADE-GUIDE.mdx +0 -10
  101. package/dist/mdx/8.0-UPGRADE-GUIDE.mdx +0 -10
  102. package/dist/mdx/API_PATTERN_GUIDELINES.mdx +0 -10
  103. package/dist/mdx/COMPOUND_COMPONENTS.mdx +0 -10
  104. package/dist/mdx/CONTRIBUTING.mdx +0 -10
  105. package/dist/mdx/CREATING_COMPOUND_COMPONENTS.mdx +0 -10
  106. package/dist/mdx/DOCUMENTATION_GUIDELINES.mdx +20 -22
  107. package/dist/mdx/GETTING_STARTED.mdx +0 -9
  108. package/dist/mdx/MAINTAINING.mdx +12 -20
  109. package/dist/mdx/TESTING.mdx +1 -26
  110. package/dist/mdx/changelog.mdx +5 -0
  111. package/dist/mdx/labs-react/combobox/Combobox.mdx +52 -0
  112. package/dist/mdx/labs-react/combobox/examples/Basic.tsx +87 -0
  113. package/dist/mdx/labs-react/combobox/examples/DisabledItem.tsx +87 -0
  114. package/dist/mdx/labs-react/combobox/examples/GroupOfResult.tsx +87 -0
  115. package/dist/mdx/labs-react/combobox/examples/Grow.tsx +87 -0
  116. package/dist/mdx/labs-react/combobox/examples/NoClearButton.tsx +87 -0
  117. package/dist/mdx/labs-react/combobox/examples/RTL.tsx +90 -0
  118. package/dist/mdx/labs-react/expandable/Expandable.mdx +1 -3
  119. package/dist/mdx/labs-react/search-form/SearchForm.mdx +1 -4
  120. package/dist/mdx/preview-react/_examples/mdx/Forms.mdx +9 -0
  121. package/dist/mdx/preview-react/_examples/mdx/FormsWithFormik.mdx +14 -0
  122. package/dist/mdx/preview-react/_examples/{examples → mdx/examples}/SelectWithFormik.tsx +1 -5
  123. package/dist/mdx/preview-react/_examples/{examples → mdx/examples}/TextInputWithReactHookForm.tsx +2 -1
  124. package/dist/mdx/preview-react/divider/Divider.mdx +36 -0
  125. package/dist/mdx/preview-react/divider/examples/Basic.tsx +105 -0
  126. package/dist/mdx/preview-react/divider/examples/CustomSpace.tsx +32 -0
  127. package/dist/mdx/preview-react/loading-sparkles/LoadingSparkles.mdx +1 -2
  128. package/dist/mdx/preview-react/menu/Menu.mdx +2 -9
  129. package/dist/mdx/preview-react/pill/Pill.mdx +1 -3
  130. package/dist/mdx/preview-react/radio/Radio.mdx +1 -3
  131. package/dist/mdx/preview-react/radio/examples/Alert.tsx +26 -11
  132. package/dist/mdx/preview-react/radio/examples/Basic.tsx +29 -19
  133. package/dist/mdx/preview-react/radio/examples/Custom.tsx +32 -30
  134. package/dist/mdx/preview-react/radio/examples/Disabled.tsx +25 -12
  135. package/dist/mdx/preview-react/radio/examples/Error.tsx +26 -11
  136. package/dist/mdx/preview-react/radio/examples/Inverse.tsx +14 -18
  137. package/dist/mdx/preview-react/radio/examples/LabelPosition.tsx +25 -10
  138. package/dist/mdx/preview-react/radio/examples/NoValue.tsx +23 -10
  139. package/dist/mdx/preview-react/radio/examples/RefForwarding.tsx +17 -11
  140. package/dist/mdx/preview-react/radio/examples/Required.tsx +19 -11
  141. package/dist/mdx/preview-react/radio/examples/StandaloneRadio.tsx +6 -6
  142. package/dist/mdx/preview-react/segmented-control/SegmentedControl.mdx +1 -4
  143. package/dist/mdx/preview-react/select/Select.mdx +89 -0
  144. package/dist/mdx/preview-react/select/examples/Left Label/AlertLeft.tsx +18 -0
  145. package/dist/mdx/preview-react/select/examples/Left Label/DefaultLeft.tsx +17 -0
  146. package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithCustomOptionsLeft.tsx +25 -0
  147. package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithSimpleOptionsLeft.tsx +17 -0
  148. package/dist/mdx/preview-react/select/examples/Left Label/DisabledLeft.tsx +19 -0
  149. package/dist/mdx/preview-react/select/examples/Left Label/ErrorLeft.tsx +18 -0
  150. package/dist/mdx/preview-react/select/examples/Left Label/GrowLeft.tsx +17 -0
  151. package/dist/mdx/preview-react/select/examples/Left Label/ScrollableLeft.tsx +17 -0
  152. package/dist/mdx/preview-react/select/examples/Left Label/index.ts +8 -0
  153. package/dist/mdx/preview-react/select/examples/Top Label/Alert.tsx +18 -0
  154. package/dist/mdx/preview-react/select/examples/Top Label/Default.tsx +17 -0
  155. package/dist/mdx/preview-react/select/examples/Top Label/DefaultWithCustomOptions.tsx +25 -0
  156. package/dist/mdx/preview-react/select/examples/Top Label/DefaultWithSimpleOptions.tsx +17 -0
  157. package/dist/mdx/preview-react/select/examples/Top Label/Disabled.tsx +19 -0
  158. package/dist/mdx/preview-react/select/examples/Top Label/Error.tsx +18 -0
  159. package/dist/mdx/preview-react/select/examples/Top Label/Grow.tsx +17 -0
  160. package/dist/mdx/preview-react/select/examples/Top Label/Scrollable.tsx +15 -0
  161. package/dist/mdx/preview-react/select/examples/Top Label/index.ts +8 -0
  162. package/dist/mdx/preview-react/select/examples/storiesData.tsx +93 -0
  163. package/dist/mdx/preview-react/side-panel/SidePanel.mdx +1 -4
  164. package/dist/mdx/preview-react/status-indicator/StatusIndicator.mdx +1 -2
  165. package/dist/mdx/preview-react/text-area/TextArea.mdx +1 -4
  166. package/dist/mdx/preview-react/text-area/examples/Alert.tsx +1 -1
  167. package/dist/mdx/preview-react/text-area/examples/LabelPositionHorizontal.tsx +1 -1
  168. package/dist/mdx/preview-react/text-input/TextInput.mdx +4 -7
  169. package/dist/mdx/preview-react/text-input/examples/LabelPositionHorizontal.tsx +1 -1
  170. package/dist/mdx/react/_examples/{AriaLiveRegions.mdx → mdx/AriaLiveRegions.mdx} +1 -0
  171. package/dist/mdx/react/_examples/{CompoundComponent.mdx → mdx/CompoundComponent.mdx} +2 -0
  172. package/dist/mdx/react/_examples/mdx/CookieBanner.mdx +9 -0
  173. package/dist/mdx/react/_examples/mdx/Density.mdx +11 -0
  174. package/dist/mdx/react/_examples/mdx/Headers.mdx +19 -0
  175. package/dist/mdx/react/_examples/{Layouts.mdx → mdx/Layouts.mdx} +1 -0
  176. package/dist/mdx/react/_examples/{MediaModal.mdx → mdx/MediaModal.mdx} +3 -2
  177. package/dist/mdx/react/_examples/{SearchForm.mdx → mdx/SearchForm.mdx} +1 -0
  178. package/dist/mdx/react/_examples/{SidePanel.mdx → mdx/SidePanel.mdx} +2 -1
  179. package/dist/mdx/react/_examples/{TablesAdvanced.mdx → mdx/TablesAdvanced.mdx} +5 -5
  180. package/dist/mdx/react/_examples/{examples → mdx/examples}/AriaLiveRegions/FilterListWithLiveStatus.tsx +1 -1
  181. package/dist/mdx/react/_examples/{examples → mdx/examples}/AriaLiveRegions/HiddenLiveRegion.tsx +1 -1
  182. package/dist/mdx/react/_examples/{examples → mdx/examples}/AriaLiveRegions/TextInputWithLiveError.tsx +1 -1
  183. package/dist/mdx/react/_examples/{examples → mdx/examples}/AriaLiveRegions/VisibleLiveRegion.tsx +1 -1
  184. package/dist/mdx/react/_examples/mdx/examples/Density.tsx +370 -0
  185. package/dist/mdx/react/_examples/{examples → mdx/examples}/SidePanelWithNavigation.tsx +0 -1
  186. package/dist/mdx/react/_examples/{examples → mdx/examples}/Table/WithExpandableRows.tsx +26 -29
  187. package/dist/mdx/react/_examples/mdx/examples/common/FilterListWithLiveStatus.tsx +65 -0
  188. package/dist/mdx/react/_examples/mdx/examples/common/HiddenLiveRegion.tsx +30 -0
  189. package/dist/mdx/react/_examples/mdx/examples/common/IconButtonsWithLiveBadges.tsx +98 -0
  190. package/dist/mdx/react/_examples/mdx/examples/common/TextInputWithLiveError.tsx +25 -0
  191. package/dist/mdx/react/_examples/mdx/examples/common/VisibleLiveRegion.tsx +40 -0
  192. package/dist/mdx/react/action-bar/ActionBar.mdx +1 -5
  193. package/dist/mdx/react/action-bar/examples/Basic.tsx +12 -10
  194. package/dist/mdx/react/action-bar/examples/OverflowActionBar.tsx +13 -10
  195. package/dist/mdx/react/action-bar/examples/index.ts +5 -0
  196. package/dist/mdx/react/avatar/avatar/Avatar.mdx +12 -10
  197. package/dist/mdx/react/avatar/avatar/examples/Button.tsx +1 -1
  198. package/dist/mdx/react/avatar/avatar/examples/CustomStyles.tsx +2 -2
  199. package/dist/mdx/react/avatar/avatar/examples/Image.tsx +1 -1
  200. package/dist/mdx/react/avatar/avatar/examples/LazyLoad.tsx +1 -1
  201. package/dist/mdx/react/avatar/avatar/examples/test-avatar.png +0 -0
  202. package/dist/mdx/react/badge/CountBadge.mdx +15 -18
  203. package/dist/mdx/react/badge/examples/NotificationBadge.tsx +30 -25
  204. package/dist/mdx/react/banner/Banner.mdx +3 -5
  205. package/dist/mdx/react/breadcrumbs/Breadcrumbs.mdx +1 -5
  206. package/dist/mdx/react/button/button/Button.mdx +6 -1
  207. package/dist/mdx/react/button/button/Hyperlink.mdx +1 -4
  208. package/dist/mdx/react/button/button/examples/CustomStyles.tsx +21 -7
  209. package/dist/mdx/react/button/button/examples/Delete.tsx +1 -1
  210. package/dist/mdx/react/button/button/examples/Primary.tsx +1 -1
  211. package/dist/mdx/react/card/card.mdx +3 -4
  212. package/dist/mdx/react/checkbox/Checkbox.mdx +6 -17
  213. package/dist/mdx/react/checkbox/examples/Alert.tsx +5 -4
  214. package/dist/mdx/react/checkbox/examples/Basic.tsx +14 -1
  215. package/dist/mdx/react/checkbox/examples/Disabled.tsx +13 -6
  216. package/dist/mdx/react/checkbox/examples/Error.tsx +5 -4
  217. package/dist/mdx/react/checkbox/examples/Inverse.tsx +0 -1
  218. package/dist/mdx/react/checkbox/examples/LabelPosition.tsx +11 -9
  219. package/dist/mdx/react/checkbox/examples/RefForwarding.tsx +21 -7
  220. package/dist/mdx/react/checkbox/examples/Required.tsx +10 -8
  221. package/dist/mdx/react/collection/{Collection.mdx → mdx/Collection.mdx} +1 -3
  222. package/dist/mdx/react/color-picker/color-input/ColorInput.mdx +6 -18
  223. package/dist/mdx/react/color-picker/color-input/examples/Alert.tsx +5 -3
  224. package/dist/mdx/react/color-picker/color-input/examples/Basic.tsx +4 -2
  225. package/dist/mdx/react/color-picker/color-input/examples/Checked.tsx +4 -2
  226. package/dist/mdx/react/color-picker/color-input/examples/Disabled.tsx +4 -2
  227. package/dist/mdx/react/color-picker/color-input/examples/Error.tsx +5 -3
  228. package/dist/mdx/react/color-picker/color-input/examples/Grow.tsx +9 -2
  229. package/dist/mdx/react/color-picker/color-input/examples/LabelPosition.tsx +5 -3
  230. package/dist/mdx/react/color-picker/color-input/examples/RefForwarding.tsx +4 -2
  231. package/dist/mdx/react/color-picker/color-input/examples/Required.tsx +4 -2
  232. package/dist/mdx/react/color-picker/color-input/examples/ValidColorChange.tsx +9 -7
  233. package/dist/mdx/react/color-picker/color-preview/ColorPreview.mdx +6 -17
  234. package/dist/mdx/react/color-picker/color-preview/examples/Basic.tsx +9 -1
  235. package/dist/mdx/react/color-picker/color-preview/examples/LabelPosition.tsx +5 -3
  236. package/dist/mdx/react/color-picker/color-preview/examples/RefForwarding.tsx +4 -2
  237. package/dist/mdx/react/combobox/Combobox.mdx +1 -4
  238. package/dist/mdx/react/combobox/examples/Autocomplete.tsx +32 -30
  239. package/dist/mdx/react/common/{CompoundComponentUtilities.mdx → mdx/CompoundComponentUtilities.mdx} +2 -1
  240. package/dist/mdx/react/common/{Responsive.mdx → mdx/Responsive.mdx} +2 -2
  241. package/dist/mdx/react/common/{examples → mdx/examples}/ResponsiveStyles.tsx +1 -1
  242. package/dist/mdx/react/dialog/Dialog.mdx +1 -4
  243. package/dist/mdx/react/dialog/examples/Basic.tsx +1 -1
  244. package/dist/mdx/react/dialog/examples/DialogWithFallbackPlacements.tsx +110 -0
  245. package/dist/mdx/react/dialog/examples/Focus.tsx +1 -1
  246. package/dist/mdx/react/form-field/FormField.mdx +104 -78
  247. package/dist/mdx/react/form-field/examples/Alert.tsx +11 -9
  248. package/dist/mdx/{preview-react → react}/form-field/examples/AllFields.tsx +43 -8
  249. package/dist/mdx/react/form-field/examples/Basic.tsx +9 -4
  250. package/dist/mdx/{preview-react → react}/form-field/examples/Custom.tsx +2 -2
  251. package/dist/mdx/{preview-react → react}/form-field/examples/CustomId.tsx +4 -2
  252. package/dist/mdx/{preview-react → react}/form-field/examples/Disabled.tsx +4 -2
  253. package/dist/mdx/react/form-field/examples/Error.tsx +12 -9
  254. package/dist/mdx/react/form-field/examples/GroupedInputs.tsx +207 -0
  255. package/dist/mdx/react/form-field/examples/Grow.tsx +7 -3
  256. package/dist/mdx/react/form-field/examples/Hint.tsx +11 -8
  257. package/dist/mdx/react/form-field/examples/LabelPositionHorizontalEnd.tsx +32 -0
  258. package/dist/mdx/react/form-field/examples/LabelPositionHorizontalStart.tsx +32 -0
  259. package/dist/mdx/{preview-react → react}/form-field/examples/RefForwarding.tsx +4 -2
  260. package/dist/mdx/react/form-field/examples/Required.tsx +11 -3
  261. package/dist/mdx/{preview-react → react}/form-field/examples/ThemedErrors.tsx +7 -5
  262. package/dist/mdx/react/icon/Assets.mdx +13 -6
  263. package/dist/mdx/react/icon/examples/AccentIconList.tsx +1 -1
  264. package/dist/mdx/react/layout/Box.mdx +1 -3
  265. package/dist/mdx/react/layout/Flex.mdx +8 -7
  266. package/dist/mdx/react/layout/Grid.mdx +2 -4
  267. package/dist/mdx/react/loading-dots/LoadingDots.mdx +1 -3
  268. package/dist/mdx/react/menu/Menu.mdx +1 -4
  269. package/dist/mdx/react/menu/examples/MenuWithFallbackPlacements.tsx +66 -0
  270. package/dist/mdx/react/modal/Modal.mdx +1 -4
  271. package/dist/mdx/react/modal/examples/CustomFocus.tsx +1 -1
  272. package/dist/mdx/react/modal/examples/FormModal.tsx +1 -1
  273. package/dist/mdx/react/modal/examples/IframeTest.tsx +26 -0
  274. package/dist/mdx/react/modal/examples/ModalWithPopup.tsx +66 -0
  275. package/dist/mdx/react/modal/examples/ReturnFocus.tsx +1 -1
  276. package/dist/mdx/react/modal/examples/StackedModals.tsx +56 -0
  277. package/dist/mdx/react/modal/examples/WithRadioButtons.tsx +30 -0
  278. package/dist/mdx/react/modal/examples/WithTooltips.tsx +74 -0
  279. package/dist/mdx/react/pagination/pagination.mdx +1 -5
  280. package/dist/mdx/react/popup/Popup.mdx +30 -6
  281. package/dist/mdx/react/popup/examples/CloseOnTargetHiddenTest.tsx +54 -0
  282. package/dist/mdx/react/popup/examples/ComboboxWithinPopup.tsx +48 -0
  283. package/dist/mdx/react/popup/examples/MixedPopupTypes.tsx +143 -0
  284. package/dist/mdx/react/popup/examples/PopupWithFallbackPlacements.tsx +82 -0
  285. package/dist/mdx/react/popup/examples/PopupWithNonHidablePopup.tsx +42 -0
  286. package/dist/mdx/react/popup/examples/ReturnFocusTest.tsx +68 -0
  287. package/dist/mdx/react/popup/examples/TooltipReturnFocus.tsx +36 -0
  288. package/dist/mdx/react/radio/Radio.mdx +6 -16
  289. package/dist/mdx/react/radio/examples/Alert.tsx +1 -1
  290. package/dist/mdx/react/radio/examples/Basic.tsx +1 -1
  291. package/dist/mdx/react/radio/examples/Disabled.tsx +1 -1
  292. package/dist/mdx/react/radio/examples/Error.tsx +1 -1
  293. package/dist/mdx/react/radio/examples/LabelPosition.tsx +2 -2
  294. package/dist/mdx/react/radio/examples/NoValue.tsx +2 -2
  295. package/dist/mdx/react/radio/examples/RefForwarding.tsx +1 -1
  296. package/dist/mdx/react/radio/examples/Required.tsx +1 -1
  297. package/dist/mdx/react/segmented-control/SegmentedControl.mdx +1 -5
  298. package/dist/mdx/react/select/Select.mdx +18 -28
  299. package/dist/mdx/react/select/examples/Alert.tsx +15 -13
  300. package/dist/mdx/react/select/examples/Basic.tsx +18 -16
  301. package/dist/mdx/react/select/examples/Complex.tsx +14 -12
  302. package/dist/mdx/react/select/examples/Disabled.tsx +21 -19
  303. package/dist/mdx/react/select/examples/DisabledOption.tsx +24 -22
  304. package/dist/mdx/react/select/examples/Error.tsx +21 -19
  305. package/dist/mdx/react/select/examples/FetchingDynamicItems.tsx +23 -19
  306. package/dist/mdx/react/select/examples/Grow.tsx +14 -12
  307. package/dist/mdx/react/select/examples/HoistedModel.tsx +14 -12
  308. package/dist/mdx/react/select/examples/InitialSelectedItem.tsx +18 -15
  309. package/dist/mdx/react/select/examples/LabelPosition.tsx +15 -12
  310. package/dist/mdx/react/select/examples/MenuHeight.tsx +11 -9
  311. package/dist/mdx/react/select/examples/Placeholder.tsx +17 -14
  312. package/dist/mdx/react/select/examples/RefForwarding.tsx +13 -10
  313. package/dist/mdx/react/select/examples/Required.tsx +12 -10
  314. package/dist/mdx/react/select/examples/WithIcons.tsx +25 -23
  315. package/dist/mdx/react/skeleton/Skeleton.mdx +1 -5
  316. package/dist/mdx/react/skeleton/examples/Simulation.tsx +3 -3
  317. package/dist/mdx/react/status-indicator/StatusIndicator.mdx +5 -8
  318. package/dist/mdx/react/switch/Switch.mdx +6 -17
  319. package/dist/mdx/react/switch/examples/Alert.tsx +5 -3
  320. package/dist/mdx/react/switch/examples/Basic.tsx +4 -2
  321. package/dist/mdx/react/switch/examples/Disabled.tsx +4 -2
  322. package/dist/mdx/react/switch/examples/Error.tsx +5 -3
  323. package/dist/mdx/react/switch/examples/LabelPosition.tsx +5 -3
  324. package/dist/mdx/react/switch/examples/RefForwarding.tsx +4 -2
  325. package/dist/mdx/react/table/Table.mdx +1 -4
  326. package/dist/mdx/react/tabs/Tabs.mdx +1 -4
  327. package/dist/mdx/react/testing/Testing.mdx +1 -4
  328. package/dist/mdx/react/text/BodyText.mdx +1 -3
  329. package/dist/mdx/react/text/Heading.mdx +1 -3
  330. package/dist/mdx/react/text/LabelText.mdx +1 -3
  331. package/dist/mdx/react/text/Subtext.mdx +1 -3
  332. package/dist/mdx/react/text/Text.mdx +1 -3
  333. package/dist/mdx/react/text/Title.mdx +1 -3
  334. package/dist/mdx/react/text-area/TextArea.mdx +6 -17
  335. package/dist/mdx/react/text-area/examples/Alert.tsx +5 -3
  336. package/dist/mdx/react/text-area/examples/Basic.tsx +4 -2
  337. package/dist/mdx/react/text-area/examples/Disabled.tsx +4 -2
  338. package/dist/mdx/react/text-area/examples/Error.tsx +5 -3
  339. package/dist/mdx/react/text-area/examples/Grow.tsx +6 -4
  340. package/dist/mdx/react/text-area/examples/LabelPosition.tsx +6 -3
  341. package/dist/mdx/react/text-area/examples/Placeholder.tsx +9 -7
  342. package/dist/mdx/react/text-area/examples/RefForwarding.tsx +4 -2
  343. package/dist/mdx/react/text-area/examples/Required.tsx +4 -2
  344. package/dist/mdx/react/text-area/examples/ResizeConstraints.tsx +9 -7
  345. package/dist/mdx/react/text-input/TextInput.mdx +7 -16
  346. package/dist/mdx/react/text-input/examples/Alert.tsx +5 -3
  347. package/dist/mdx/react/text-input/examples/Basic.tsx +5 -3
  348. package/dist/mdx/react/text-input/examples/Disabled.tsx +4 -2
  349. package/dist/mdx/react/text-input/examples/Error.tsx +5 -3
  350. package/dist/mdx/react/text-input/examples/Grow.tsx +5 -3
  351. package/dist/mdx/react/text-input/examples/Icons.tsx +4 -2
  352. package/dist/mdx/react/text-input/examples/LabelPosition.tsx +6 -3
  353. package/dist/mdx/react/text-input/examples/Placeholder.tsx +9 -7
  354. package/dist/mdx/react/text-input/examples/RefForwarding.tsx +4 -2
  355. package/dist/mdx/react/text-input/examples/Required.tsx +4 -2
  356. package/dist/mdx/react/toast/toast.mdx +5 -6
  357. package/dist/mdx/react/tokens/Tokens.mdx +1 -2
  358. package/dist/mdx/react/tooltip/Tooltip.mdx +1 -5
  359. package/dist/mdx/style-props/STYLE_PROPS.mdx +25 -25
  360. package/dist/mdx/style-props/examples/Background.tsx +15 -22
  361. package/dist/mdx/style-props/examples/Border.tsx +3 -18
  362. package/dist/mdx/style-props/examples/Color.tsx +9 -21
  363. package/dist/mdx/style-props/examples/Flex.tsx +27 -9
  364. package/dist/mdx/style-props/examples/FlexItem.tsx +24 -8
  365. package/dist/mdx/style-props/examples/Position.tsx +1 -1
  366. package/dist/mdx/style-props/examples/Space.tsx +9 -3
  367. package/dist/mdx/welcome.mdx +48 -0
  368. package/index.ts +1 -0
  369. package/lib/ExampleCodeBlock.tsx +134 -0
  370. package/lib/MDXElements.tsx +2 -1
  371. package/lib/Value.tsx +5 -3
  372. package/package.json +9 -8
  373. package/dist/mdx/changelog.stories.mdx +0 -14
  374. package/dist/mdx/preview-react/_examples/SelectWithFormik.mdx +0 -8
  375. package/dist/mdx/preview-react/_examples/TextInputWithFormik.mdx +0 -8
  376. package/dist/mdx/preview-react/_examples/TextInputWithReactHookForm.mdx +0 -8
  377. package/dist/mdx/preview-react/form-field/FormField.mdx +0 -149
  378. package/dist/mdx/preview-react/form-field/examples/Alert.tsx +0 -24
  379. package/dist/mdx/preview-react/form-field/examples/Basic.tsx +0 -21
  380. package/dist/mdx/preview-react/form-field/examples/Error.tsx +0 -25
  381. package/dist/mdx/preview-react/form-field/examples/FieldSet.tsx +0 -29
  382. package/dist/mdx/preview-react/form-field/examples/Grow.tsx +0 -21
  383. package/dist/mdx/preview-react/form-field/examples/Hint.tsx +0 -25
  384. package/dist/mdx/preview-react/form-field/examples/LabelPositionHorizontal.tsx +0 -18
  385. package/dist/mdx/preview-react/form-field/examples/Required.tsx +0 -23
  386. package/dist/mdx/react/_examples/CookieBanner.mdx +0 -8
  387. package/dist/mdx/react/_examples/GlobalHeader.mdx +0 -12
  388. package/dist/mdx/react/_examples/PageHeader.mdx +0 -8
  389. package/dist/mdx/react/form-field/examples/AlertLabel.tsx +0 -23
  390. package/dist/mdx/react/form-field/examples/CustomInputId.tsx +0 -17
  391. package/dist/mdx/react/form-field/examples/ErrorLabel.tsx +0 -23
  392. package/dist/mdx/react/form-field/examples/GroupingInputs.tsx +0 -22
  393. package/dist/mdx/react/form-field/examples/LabelPosition.tsx +0 -17
  394. package/dist/mdx/welcome.stories.mdx +0 -35
  395. /package/dist/mdx/preview-react/_examples/{examples → mdx/examples}/TextInputWithFormik.tsx +0 -0
  396. /package/dist/mdx/react/_examples/{examples → mdx/examples}/AriaLiveRegions/IconButtonsWithLiveBadges.tsx +0 -0
  397. /package/dist/mdx/react/_examples/{examples → mdx/examples}/CookieBanner.tsx +0 -0
  398. /package/dist/mdx/react/_examples/{examples → mdx/examples}/GlobalHeader.tsx +0 -0
  399. /package/dist/mdx/react/_examples/{examples → mdx/examples}/MediaModal.tsx +0 -0
  400. /package/dist/mdx/react/_examples/{examples → mdx/examples}/PageHeader.tsx +0 -0
  401. /package/dist/mdx/react/_examples/{examples → mdx/examples}/SearchFormBasic.tsx +0 -0
  402. /package/dist/mdx/react/_examples/{examples → mdx/examples}/SegmentControlWithText.tsx +0 -0
  403. /package/dist/mdx/react/_examples/{examples → mdx/examples}/SidePanelWithOverlay.tsx +0 -0
  404. /package/dist/mdx/react/_examples/{examples → mdx/examples}/Table/WithSelectableRows.tsx +0 -0
  405. /package/dist/mdx/react/_examples/{examples → mdx/examples}/Table/WithSortableColumnHeaders.tsx +0 -0
  406. /package/dist/mdx/react/_examples/{examples → mdx/examples}/compoundComponent/CustomCard.tsx +0 -0
  407. /package/dist/mdx/react/_examples/{examples → mdx/examples}/layout/AreaColumnPositioning.tsx +0 -0
  408. /package/dist/mdx/react/_examples/{examples → mdx/examples}/layout/CustomColumnPositioning.tsx +0 -0
  409. /package/dist/mdx/react/_examples/{examples → mdx/examples}/layout/CustomColumnWidth.tsx +0 -0
  410. /package/dist/mdx/react/_examples/{examples → mdx/examples}/layout/FullWidthWith3Columns.tsx +0 -0
  411. /package/dist/mdx/react/_examples/{examples → mdx/examples}/layout/FullWidthWith3Columns2Rows.tsx +0 -0
  412. /package/dist/mdx/react/_examples/{examples → mdx/examples}/layout/Masonry.tsx +0 -0
  413. /package/dist/mdx/react/_examples/{examples → mdx/examples}/layout/ResponsiveColumns.tsx +0 -0
  414. /package/dist/mdx/react/_examples/{examples → mdx/examples}/layout/Tiled2and3Columns.tsx +0 -0
  415. /package/dist/mdx/react/_examples/{examples → mdx/examples}/layout/Tiled4and2Columns.tsx +0 -0
  416. /package/dist/mdx/react/collection/{examples → mdx/examples}/Basic.tsx +0 -0
  417. /package/dist/mdx/react/collection/{examples → mdx/examples}/BasicGrid.tsx +0 -0
  418. /package/dist/mdx/react/collection/{examples → mdx/examples}/BasicVirtual.tsx +0 -0
  419. /package/dist/mdx/react/collection/{examples → mdx/examples}/DataLoader.tsx +0 -0
  420. /package/dist/mdx/react/collection/{examples → mdx/examples}/DynamicItemsObjects.tsx +0 -0
  421. /package/dist/mdx/react/collection/{examples → mdx/examples}/DynamicItemsStrings.tsx +0 -0
  422. /package/dist/mdx/react/collection/{examples → mdx/examples}/IdentifiedItems.tsx +0 -0
  423. /package/dist/mdx/react/collection/{examples → mdx/examples}/MultiSelection.tsx +0 -0
  424. /package/dist/mdx/react/collection/{examples → mdx/examples}/RovingFocus.tsx +0 -0
  425. /package/dist/mdx/react/collection/{examples → mdx/examples}/Selection.tsx +0 -0
  426. /package/dist/mdx/react/collection/{examples → mdx/examples}/StringChildren.tsx +0 -0
  427. /package/dist/mdx/react/collection/{examples → mdx/examples}/Virtualization.tsx +0 -0
  428. /package/dist/mdx/react/collection/{examples → mdx/examples}/WrappingGrid.tsx +0 -0
  429. /package/dist/mdx/react/common/{examples → mdx/examples}/CreateComponent.tsx +0 -0
  430. /package/dist/mdx/react/common/{examples → mdx/examples}/CreateContainer.tsx +0 -0
  431. /package/dist/mdx/react/common/{examples → mdx/examples}/CreateElemPropsHook.tsx +0 -0
  432. /package/dist/mdx/react/common/{examples → mdx/examples}/CreateModelHook.tsx +0 -0
  433. /package/dist/mdx/react/common/{examples → mdx/examples}/CreateSubcomponent.tsx +0 -0
  434. /package/dist/mdx/react/common/{examples → mdx/examples}/ResponsiveViewport.tsx +0 -0
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+
3
+ import {FormField} from '@workday/canvas-kit-react/form-field';
4
+ import {Select} from '@workday/canvas-kit-preview-react/select';
5
+ import {hintText, options} from '../storiesData';
6
+ import {controlComponent} from '../../../../../../utils/storybook';
7
+
8
+ export default () => {
9
+ return (
10
+ <FormField id="select-alert" error="error">
11
+ <FormField.Label>Label</FormField.Label>
12
+ <FormField.Field>
13
+ {controlComponent(<FormField.Input as={Select} name="contact" options={options} />)}
14
+ <FormField.Hint>{hintText}</FormField.Hint>
15
+ </FormField.Field>
16
+ </FormField>
17
+ );
18
+ };
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+
3
+ import {FormField} from '@workday/canvas-kit-react/form-field';
4
+ import {Select} from '@workday/canvas-kit-preview-react/select';
5
+ import {options} from '../storiesData';
6
+ import {controlComponent} from '../../../../../../utils/storybook';
7
+
8
+ export default () => {
9
+ return (
10
+ <FormField id="select-default">
11
+ <FormField.Label>Label</FormField.Label>
12
+ <FormField.Field>
13
+ {controlComponent(<FormField.Input as={Select} name="contact" options={options} />)}
14
+ </FormField.Field>
15
+ </FormField>
16
+ );
17
+ };
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+
3
+ import {FormField} from '@workday/canvas-kit-react/form-field';
4
+ import {Select} from '@workday/canvas-kit-preview-react/select';
5
+ import {customOptions, customRenderOption, customRenderSelected} from '../storiesData';
6
+ import {controlComponent} from '../../../../../../utils/storybook';
7
+
8
+ export default () => {
9
+ return (
10
+ <FormField id="select-default-custom">
11
+ <FormField.Label>Label</FormField.Label>
12
+ <FormField.Field>
13
+ {controlComponent(
14
+ <FormField.Input
15
+ as={Select}
16
+ name="icon"
17
+ options={customOptions}
18
+ renderOption={customRenderOption}
19
+ renderSelected={customRenderSelected}
20
+ />
21
+ )}
22
+ </FormField.Field>
23
+ </FormField>
24
+ );
25
+ };
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+
3
+ import {FormField} from '@workday/canvas-kit-react/form-field';
4
+ import {Select} from '@workday/canvas-kit-preview-react/select';
5
+ import {simpleOptions} from '../storiesData';
6
+ import {controlComponent} from '../../../../../../utils/storybook';
7
+
8
+ export default () => {
9
+ return (
10
+ <FormField id="select-default-simple">
11
+ <FormField.Label>Label</FormField.Label>
12
+ <FormField.Field>
13
+ {controlComponent(<FormField.Input as={Select} name="state" options={simpleOptions} />)}
14
+ </FormField.Field>
15
+ </FormField>
16
+ );
17
+ };
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+
3
+ import {FormField} from '@workday/canvas-kit-react/form-field';
4
+ import {Select} from '@workday/canvas-kit-preview-react/select';
5
+ import {options} from '../storiesData';
6
+ import {controlComponent} from '../../../../../../utils/storybook';
7
+
8
+ export default () => {
9
+ return (
10
+ <FormField id="select-disabled">
11
+ <FormField.Label>Label</FormField.Label>
12
+ <FormField.Field>
13
+ {controlComponent(
14
+ <FormField.Input as={Select} name="contact" options={options} disabled={true} />
15
+ )}
16
+ </FormField.Field>
17
+ </FormField>
18
+ );
19
+ };
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+
3
+ import {FormField} from '@workday/canvas-kit-react/form-field';
4
+ import {Select} from '@workday/canvas-kit-preview-react/select';
5
+ import {hintText, options} from '../storiesData';
6
+ import {controlComponent} from '../../../../../../utils/storybook';
7
+
8
+ export default () => {
9
+ return (
10
+ <FormField id="select-error" error="error">
11
+ <FormField.Label>Label</FormField.Label>
12
+ <FormField.Field>
13
+ {controlComponent(<FormField.Input as={Select} name="contact" options={options} />)}
14
+ <FormField.Hint>{hintText}</FormField.Hint>
15
+ </FormField.Field>
16
+ </FormField>
17
+ );
18
+ };
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+
3
+ import {FormField} from '@workday/canvas-kit-react/form-field';
4
+ import {Select} from '@workday/canvas-kit-preview-react/select';
5
+ import {options} from '../storiesData';
6
+ import {controlComponent} from '../../../../../../utils/storybook';
7
+
8
+ export default () => {
9
+ return (
10
+ <FormField id="select-grow" grow={true}>
11
+ <FormField.Label>Label</FormField.Label>
12
+ <FormField.Field>
13
+ {controlComponent(<FormField.Input as={Select} name="contact" options={options} />)}
14
+ </FormField.Field>
15
+ </FormField>
16
+ );
17
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+
3
+ import {FormField} from '@workday/canvas-kit-react/form-field';
4
+ import {Select} from '@workday/canvas-kit-preview-react/select';
5
+ import {manyOptions} from '../storiesData';
6
+ import {controlComponent} from '../../../../../../utils/storybook';
7
+
8
+ export default () => {
9
+ return (
10
+ <FormField id="select-default">
11
+ <FormField.Label>Label</FormField.Label>
12
+ {controlComponent(<FormField.Input as={Select} name="contact" options={manyOptions} />)}
13
+ </FormField>
14
+ );
15
+ };
@@ -0,0 +1,8 @@
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 {Alert} from './Alert';
7
+ export {Error} from './Error';
8
+ export {Grow} from './Grow';
@@ -0,0 +1,93 @@
1
+ import * as React from 'react';
2
+ import {SystemIcon} from '@workday/canvas-kit-react/icon';
3
+ import {
4
+ activityStreamIcon,
5
+ avatarIcon,
6
+ uploadCloudIcon,
7
+ userIcon,
8
+ } from '@workday/canvas-system-icons-web';
9
+ import {colors, typeColors} from '@workday/canvas-kit-react/tokens';
10
+ import {
11
+ RenderOptionFunction,
12
+ RenderSelectedFunction,
13
+ } from '@workday/canvas-kit-preview-react/select';
14
+
15
+ export default 'Helpful text goes here.';
16
+ export default 'error-desc-id';
17
+
18
+ export default [
19
+ {label: 'E-mail', value: 'email-1234'},
20
+ {label: 'Phone', value: 'phone'},
21
+ {label: 'Fax (disabled)', value: 'fax', disabled: true},
22
+ {label: 'Mail', value: 'mail'},
23
+ {label: 'Mobile Phone', value: 'mobile_phone'},
24
+ {
25
+ label: 'The Ontologically Anthropocentric Sensory Immersive Simulation',
26
+ value: 'oasis',
27
+ },
28
+ ];
29
+
30
+ export default ['California', 'Florida', 'New York', 'Pennsylvania', 'Texas'];
31
+
32
+ export default [
33
+ {label: 'Atlanta (United States)', value: 'atlanta'},
34
+ {label: 'Amsterdam (Europe)', value: 'amsterdam'},
35
+ {label: 'Austin (United States)', value: 'austin'},
36
+ {label: 'Beaverton (United States)', value: 'beaverton'},
37
+ {label: 'Belfast (Europe)', value: 'belfast'},
38
+ {label: 'Berlin (Europe)', value: 'berlin'},
39
+ {label: 'Boston (United States)', value: 'boston'},
40
+ {label: 'Boulder (United States)', value: 'boulder'},
41
+ {label: 'Chicago (United States)', value: 'chicago'},
42
+ {label: 'Dallas (United States)', value: 'dallas'},
43
+ {label: 'Denver (United States)', value: 'denver'},
44
+ {label: 'Dublin (Europe)', value: 'dublin'},
45
+ {label: 'Irvine (United States)', value: 'irvine'},
46
+ {label: 'Minneapolis (United States)', value: 'minneapolis'},
47
+ {label: 'New York (United States)', value: 'new-york'},
48
+ {label: 'Orlando (United States)', value: 'orlando'},
49
+ {label: 'Palo Alto (United States)', value: 'palo-alto'},
50
+ {label: 'Philadelphia (United States)', value: 'philadelphia'},
51
+ {label: 'Pleasanton (United States)', value: 'pleasanton'},
52
+ {label: 'Raleigh (United States)', value: 'raleigh'},
53
+ {label: 'San Francisco (United States)', value: 'san-francisco'},
54
+ {label: 'San Mateo (United States)', value: 'san-mateo'},
55
+ {label: 'Stockholm (Europe)', value: 'stockholm'},
56
+ {
57
+ label: 'The Ontologically Anthropocentric Sensory Immersive Simulation (Virtual Reality)',
58
+ value: 'oasis',
59
+ },
60
+ {label: 'Toronto (Canada)', value: 'toronto'},
61
+ {label: 'Victoria (Canada)', value: 'victoria'},
62
+ {label: 'Vienna (Europe)', value: 'vienna'},
63
+ {label: 'Warsaw (Europe)', value: 'warsaw'},
64
+ {label: 'Washington, DC (United States)', value: 'washington-dc'},
65
+ {label: 'Zurich (Europe)', value: 'zurich'},
66
+ ];
67
+
68
+ export default [
69
+ {value: 'Activity Stream', data: {icon: activityStreamIcon}},
70
+ {value: 'Avatar', data: {icon: avatarIcon}},
71
+ {value: 'Upload Cloud', data: {icon: uploadCloudIcon}},
72
+ {value: 'User', data: {icon: userIcon}},
73
+ ];
74
+
75
+ export const customRenderOption: RenderOptionFunction = option => {
76
+ const iconColor = option.focused ? typeColors.inverse : colors.blackPepper100;
77
+ return (
78
+ <div style={{alignItems: 'center', display: 'flex', padding: '3px 0'}}>
79
+ <SystemIcon icon={option.data.icon} color={iconColor} colorHover={iconColor} />
80
+ <div style={{marginLeft: 5}}>{option.value}</div>
81
+ </div>
82
+ );
83
+ };
84
+
85
+ export const customRenderSelected: RenderSelectedFunction = option => {
86
+ const iconColor = colors.blackPepper100;
87
+ return (
88
+ <div style={{alignItems: 'center', display: 'flex'}}>
89
+ <SystemIcon icon={option.data.icon} color={iconColor} colorHover={iconColor} />
90
+ <div style={{marginLeft: 5}}>{option.value}</div>
91
+ </div>
92
+ );
93
+ };
@@ -1,7 +1,4 @@
1
- import {SymbolDoc, Specifications} from '@workday/canvas-kit-docs';
2
-
3
- import {SidePanel} from '@workday/canvas-kit-preview-react/side-panel';
4
- // Examples
1
+ import {ExampleCodeBlock, SymbolDoc, Specifications} from '@workday/canvas-kit-docs';
5
2
  import Basic from './examples/Basic';
6
3
  import HiddenName from './examples/HiddenName';
7
4
  import AlternatePanel from './examples/Variant';
@@ -1,6 +1,5 @@
1
- import {SymbolDoc, Specifications} from '@workday/canvas-kit-docs';
1
+ import {ExampleCodeBlock, SymbolDoc} from '@workday/canvas-kit-docs';
2
2
 
3
- import {StatusIndicator} from '@workday/canvas-kit-preview-react/status-indicator';
4
3
  import Basic from './examples/Basic';
5
4
  import Emphasis from './examples/Emphasis';
6
5
  import Icon from './examples/Icon';
@@ -1,7 +1,4 @@
1
- import {SymbolDoc, Specifications} from '@workday/canvas-kit-docs';
2
-
3
- import {TextArea} from '@workday/canvas-kit-preview-react/text-area';
4
- import {StatusIndicator} from '@workday/canvas-kit-preview-react/status-indicator';
1
+ import {ExampleCodeBlock, SymbolDoc, Specifications} from '@workday/canvas-kit-docs';
5
2
 
6
3
  import Alert from './examples/Alert';
7
4
  import Basic from './examples/Basic';
@@ -22,7 +22,7 @@ export default () => {
22
22
  value.length < 3
23
23
  ? colors.greenApple600
24
24
  : value.length < 7
25
- ? colors.cantaloupe600
25
+ ? colors.blackPepper300
26
26
  : colors.cinnamon500;
27
27
 
28
28
  return (
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextArea orientation="horizontal">
12
+ <TextArea orientation="horizontalStart">
13
13
  <TextArea.Label>Leave a review</TextArea.Label>
14
14
  <TextArea.Field onChange={handleChange} value={value} />
15
15
  </TextArea>
@@ -1,7 +1,4 @@
1
- import {SymbolDoc, Specifications} from '@workday/canvas-kit-docs';
2
-
3
- import {TextInput} from '@workday/canvas-kit-preview-react/text-input';
4
- import {StatusIndicator} from '@workday/canvas-kit-preview-react/status-indicator';
1
+ import {ExampleCodeBlock, SymbolDoc, Specifications} from '@workday/canvas-kit-docs';
5
2
 
6
3
  import Basic from './examples/Basic';
7
4
  import Disabled from './examples/Disabled';
@@ -67,7 +64,7 @@ that the field is required. This will also add a red asterisk to `TextInput.Labe
67
64
 
68
65
  <ExampleCodeBlock code={Required} />
69
66
 
70
- ### ReadOnly
67
+ ### Read Only
71
68
 
72
69
  Use `TextInput.Field`'s `readOnly` prop to indicate that the field can not be changed. We reccommend
73
70
  setting the background and border color to tranparent and the cursor to default to help inform users
@@ -75,13 +72,13 @@ of the immutiblity.
75
72
 
76
73
  <ExampleCodeBlock code={ReadOnly} />
77
74
 
78
- ### Hidden
75
+ ### Hidden Input
79
76
 
80
77
  Set `TextInput.Field`'s `type` prop to `hidden` to completly hide a field while still submitting its
81
78
  value, often used for things like security tokens. Note: You will likely need to manually
82
79
  set`aria-describedby={undefined}`and`id={undefined}`
83
80
 
84
- <ExampleCodeBlock code={Hidden} />
81
+ <ExampleCodeBlock code={HiddenInput} />
85
82
 
86
83
  ### Ref Forwarding
87
84
 
@@ -9,7 +9,7 @@ export default () => {
9
9
  };
10
10
 
11
11
  return (
12
- <TextInput orientation="horizontal">
12
+ <TextInput orientation="horizontalStart">
13
13
  <TextInput.Label>Email</TextInput.Label>
14
14
  <TextInput.Field onChange={handleChange} value={value} />
15
15
  </TextInput>
@@ -1,3 +1,4 @@
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
1
2
  import {AriaLiveRegion} from '@workday/canvas-kit-react/common';
2
3
  import FilterListWithLiveStatus from './examples/AriaLiveRegions/FilterListWithLiveStatus';
3
4
  import VisibleLiveRegion from './examples/AriaLiveRegions/VisibleLiveRegion';
@@ -1,3 +1,5 @@
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
2
+
1
3
  import Template from './examples/compoundComponent/CustomCard';
2
4
 
3
5
 
@@ -0,0 +1,9 @@
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
2
+ import BasicExample from './examples/CookieBanner';
3
+
4
+
5
+ # Canvas Kit Examples
6
+
7
+ ## CookieBanner
8
+
9
+ <ExampleCodeBlock code={BasicExample} />
@@ -0,0 +1,11 @@
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
2
+ import Density from './examples/Density';
3
+
4
+
5
+ # Canvas Kit Density Examples
6
+
7
+ Although we currently don't support a density system, it's common practice to provide varying
8
+ options to users, especially in the context of forms. Below is an example of how you can style our
9
+ from elements to achieve the desired density.
10
+
11
+ <ExampleCodeBlock code={Density} />
@@ -0,0 +1,19 @@
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
2
+
3
+ import {Basic as PageHeaderBasic} from './examples/PageHeader';
4
+ import {Basic as GlobalHeaderBasic} from './examples/GlobalHeader';
5
+
6
+
7
+ # Canvas Kit Examples
8
+
9
+ ## Global Header
10
+
11
+ Developers building internal Workday applications will likely not need to create this component.
12
+ However, if you're building components to be used outside of Workday, this is a helpful reference
13
+ for building a global navigation header that looks like our internal `GlobalHeader`.
14
+
15
+ <ExampleCodeBlock code={GlobalHeaderBasic} />
16
+
17
+ ## Page Header
18
+
19
+ <ExampleCodeBlock code={PageHeaderBasic} />
@@ -1,3 +1,4 @@
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
1
2
  import AreaColumnPositioning from './examples/layout/AreaColumnPositioning';
2
3
  import CustomColumnPositioning from './examples/layout/CustomColumnPositioning';
3
4
  import CustomColumnWidth from './examples/layout/CustomColumnWidth';
@@ -1,4 +1,5 @@
1
- import Basic from './examples/MediaModal';
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
2
+ import BasicExample from './examples/MediaModal';
2
3
 
3
4
 
4
5
  ## Media Modal example
@@ -6,4 +7,4 @@ import Basic from './examples/MediaModal';
6
7
  These are modals that have an image or video as the primary content. The example can use a special
7
8
  `MediaContainer` component that allows for media to take up more space in the Modal.
8
9
 
9
- <ExampleCodeBlock code={Basic} />
10
+ <ExampleCodeBlock code={BasicExample} />
@@ -1,3 +1,4 @@
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
1
2
  import SearchFormBasic from './examples/SearchFormBasic';
2
3
 
3
4
 
@@ -1,3 +1,4 @@
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
1
2
  import WithNavigation from './examples/SidePanelWithNavigation';
2
3
  import WithOverlay from './examples/SidePanelWithOverlay';
3
4
 
@@ -8,6 +9,6 @@ import WithOverlay from './examples/SidePanelWithOverlay';
8
9
 
9
10
  <ExampleCodeBlock code={WithNavigation} />
10
11
 
11
- ## Side Panel With WithOverlay
12
+ ## Side Panel With Overlay
12
13
 
13
14
  <ExampleCodeBlock code={WithOverlay} />
@@ -1,4 +1,4 @@
1
- import {Table} from '@workday/canvas-kit-react/table';
1
+ import {ExampleCodeBlock} from '@workday/canvas-kit-docs';
2
2
 
3
3
  import SelectableRows from './examples/Table/WithSelectableRows';
4
4
  import ExpandableRows from './examples/Table/WithExpandableRows';
@@ -39,11 +39,11 @@ table is added to the table just after the expanded row.
39
39
 
40
40
  ### Selectable Rows
41
41
 
42
- Developed by the Workday accessibility team, using a `Checkbox` labeled "Select All" inside of a table
43
- column header can be a confusing experience for screen reader users. Screen readers will
42
+ Developed by the Workday accessibility team, using a `Checkbox` labeled "Select All" inside of a
43
+ table column header can be a confusing experience for screen reader users. Screen readers will
44
44
  automatically announce the "Select All" column header each time users are reading any cell in
45
- column 1. For instance, the `Checkbox` in row 4 is decidedly not going to select all of the rows. Here
46
- is what we did about it:
45
+ column 1. For instance, the `Checkbox` in row 4 is decidedly not going to select all of the rows.
46
+ Here is what we did about it:
47
47
 
48
48
  - We intentionally rendered row 1, column 1 as a standard `<td>` element so screen readers won't
49
49
  automatically announce "Select All" while reading cells in column 1.
@@ -3,7 +3,7 @@ import React, {useState} from 'react';
3
3
  import {AriaLiveRegion} from '@workday/canvas-kit-react/common';
4
4
  import {BodyText, Heading} from '@workday/canvas-kit-react/text';
5
5
  import {Flex} from '@workday/canvas-kit-react/layout';
6
- import {FormField} from '@workday/canvas-kit-preview-react/form-field';
6
+ import {FormField} from '@workday/canvas-kit-react/form-field';
7
7
  import {TextInput} from '@workday/canvas-kit-react/text-input';
8
8
  import {system, base} from '@workday/canvas-tokens-web';
9
9
  import {createStyles, cssVar, px2rem} from '@workday/canvas-kit-styling';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  import {AccessibleHide, AriaLiveRegion} from '@workday/canvas-kit-react/common';
4
4
  import {PrimaryButton} from '@workday/canvas-kit-react/button';
5
- import {FormField} from '@workday/canvas-kit-preview-react/form-field';
5
+ import {FormField} from '@workday/canvas-kit-react/form-field';
6
6
  import {Flex} from '@workday/canvas-kit-react/layout';
7
7
  import {Text} from '@workday/canvas-kit-react/text';
8
8
  import {TextInput} from '@workday/canvas-kit-react/text-input';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import {AriaLiveRegion, changeFocus} from '@workday/canvas-kit-react/common';
3
- import {FormField} from '@workday/canvas-kit-preview-react/form-field';
3
+ import {FormField} from '@workday/canvas-kit-react/form-field';
4
4
  import {PrimaryButton} from '@workday/canvas-kit-react/button';
5
5
  import {TextInput} from '@workday/canvas-kit-react/text-input';
6
6
  import {system} from '@workday/canvas-tokens-web';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  import {AriaLiveRegion} from '@workday/canvas-kit-react/common';
4
4
  import {PrimaryButton} from '@workday/canvas-kit-react/button';
5
- import {FormField} from '@workday/canvas-kit-preview-react/form-field';
5
+ import {FormField} from '@workday/canvas-kit-react/form-field';
6
6
  import {Flex} from '@workday/canvas-kit-react/layout';
7
7
  import {Text} from '@workday/canvas-kit-react/text';
8
8
  import {TextInput} from '@workday/canvas-kit-react/text-input';