@workday/canvas-kit-docs 13.0.0-alpha.998-next.0 → 13.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.
Files changed (296) hide show
  1. package/dist/es6/lib/ExampleCodeBlock.d.ts +1 -2
  2. package/dist/es6/lib/ExampleCodeBlock.d.ts.map +1 -1
  3. package/dist/es6/lib/ExampleCodeBlock.js +53 -28
  4. package/dist/es6/lib/MDXElements.d.ts +1 -2
  5. package/dist/es6/lib/MDXElements.d.ts.map +1 -1
  6. package/dist/es6/lib/MDXElements.js +6 -6
  7. package/dist/es6/lib/MoreTooltip.d.ts +1 -1
  8. package/dist/es6/lib/MoreTooltip.d.ts.map +1 -1
  9. package/dist/es6/lib/MoreTooltip.js +11 -12
  10. package/dist/es6/lib/Specifications.d.ts +1 -2
  11. package/dist/es6/lib/Specifications.d.ts.map +1 -1
  12. package/dist/es6/lib/Specifications.js +3 -20
  13. package/dist/es6/lib/StylePropsTable.d.ts +1 -2
  14. package/dist/es6/lib/StylePropsTable.d.ts.map +1 -1
  15. package/dist/es6/lib/StylePropsTable.js +6 -16
  16. package/dist/es6/lib/Table.d.ts.map +1 -1
  17. package/dist/es6/lib/Table.js +7 -7
  18. package/dist/es6/lib/Value.d.ts +3 -3
  19. package/dist/es6/lib/Value.d.ts.map +1 -1
  20. package/dist/es6/lib/Value.js +16 -51
  21. package/dist/es6/lib/docs.js +270155 -169429
  22. package/dist/es6/lib/stackblitzFiles/.eslintrc.cjs.txt +15 -0
  23. package/dist/es6/lib/stackblitzFiles/App.d.ts +2 -0
  24. package/dist/es6/lib/stackblitzFiles/App.d.ts.map +1 -0
  25. package/dist/es6/lib/stackblitzFiles/App.js +17 -0
  26. package/dist/es6/lib/stackblitzFiles/App.tsx +33 -0
  27. package/dist/es6/lib/stackblitzFiles/Demo.d.ts +2 -0
  28. package/dist/es6/lib/stackblitzFiles/Demo.d.ts.map +1 -0
  29. package/dist/es6/lib/stackblitzFiles/Demo.js +2 -0
  30. package/dist/es6/lib/stackblitzFiles/Demo.tsx +1 -0
  31. package/dist/es6/lib/stackblitzFiles/index.html +13 -0
  32. package/dist/es6/lib/stackblitzFiles/main.d.ts +4 -0
  33. package/dist/es6/lib/stackblitzFiles/main.d.ts.map +1 -0
  34. package/dist/es6/lib/stackblitzFiles/main.js +25 -0
  35. package/dist/es6/lib/stackblitzFiles/main.tsx +27 -0
  36. package/dist/es6/lib/stackblitzFiles/packageJSONFile.d.ts +2 -0
  37. package/dist/es6/lib/stackblitzFiles/packageJSONFile.d.ts.map +1 -0
  38. package/dist/es6/lib/stackblitzFiles/packageJSONFile.js +42 -0
  39. package/dist/es6/lib/stackblitzFiles/packageJSONFile.ts +42 -0
  40. package/dist/es6/lib/stackblitzFiles/tsconfig.json +26 -0
  41. package/dist/es6/lib/stackblitzFiles/tsconfig.node.json +12 -0
  42. package/dist/es6/lib/stackblitzFiles/vite-env.d.ts +1 -0
  43. package/dist/es6/lib/stackblitzFiles/vite.config.d.ts +4 -0
  44. package/dist/es6/lib/stackblitzFiles/vite.config.d.ts.map +1 -0
  45. package/dist/es6/lib/stackblitzFiles/vite.config.js +7 -0
  46. package/dist/es6/lib/stackblitzFiles/vite.config.ts +10 -0
  47. package/dist/es6/lib/widgetUtils.d.ts +5 -5
  48. package/dist/es6/lib/widgetUtils.d.ts.map +1 -1
  49. package/dist/es6/lib/widgetUtils.js +25 -54
  50. package/dist/es6/lib/widgets/array.js +2 -4
  51. package/dist/es6/lib/widgets/callExpression.js +2 -14
  52. package/dist/es6/lib/widgets/canvasColor.js +2 -2
  53. package/dist/es6/lib/widgets/component.js +2 -4
  54. package/dist/es6/lib/widgets/conditional.js +2 -12
  55. package/dist/es6/lib/widgets/enhancedComponent.js +15 -67
  56. package/dist/es6/lib/widgets/external.js +2 -4
  57. package/dist/es6/lib/widgets/function.js +7 -26
  58. package/dist/es6/lib/widgets/intersection.js +2 -3
  59. package/dist/es6/lib/widgets/model.js +3 -19
  60. package/dist/es6/lib/widgets/object.js +2 -2
  61. package/dist/es6/lib/widgets/parenthesis.js +2 -5
  62. package/dist/es6/lib/widgets/primitives.js +9 -27
  63. package/dist/es6/lib/widgets/qualifiedName.js +2 -5
  64. package/dist/es6/lib/widgets/symbol.js +2 -2
  65. package/dist/es6/lib/widgets/tuple.js +2 -5
  66. package/dist/es6/lib/widgets/typeParameter.js +2 -13
  67. package/dist/es6/lib/widgets/union.js +4 -10
  68. package/dist/es6/mdx/installBlock.d.ts +1 -2
  69. package/dist/es6/mdx/installBlock.d.ts.map +1 -1
  70. package/dist/es6/mdx/installBlock.js +2 -6
  71. package/dist/es6/mdx/style-props/examples/Background.d.ts +1 -2
  72. package/dist/es6/mdx/style-props/examples/Background.d.ts.map +1 -1
  73. package/dist/es6/mdx/style-props/examples/Background.js +2 -5
  74. package/dist/es6/mdx/style-props/examples/Border.d.ts +1 -2
  75. package/dist/es6/mdx/style-props/examples/Border.d.ts.map +1 -1
  76. package/dist/es6/mdx/style-props/examples/Border.js +2 -5
  77. package/dist/es6/mdx/style-props/examples/Color.d.ts +1 -2
  78. package/dist/es6/mdx/style-props/examples/Color.d.ts.map +1 -1
  79. package/dist/es6/mdx/style-props/examples/Color.js +2 -5
  80. package/dist/es6/mdx/style-props/examples/Depth.d.ts +1 -2
  81. package/dist/es6/mdx/style-props/examples/Depth.d.ts.map +1 -1
  82. package/dist/es6/mdx/style-props/examples/Depth.js +2 -5
  83. package/dist/es6/mdx/style-props/examples/Flex.d.ts +1 -2
  84. package/dist/es6/mdx/style-props/examples/Flex.d.ts.map +1 -1
  85. package/dist/es6/mdx/style-props/examples/Flex.js +2 -14
  86. package/dist/es6/mdx/style-props/examples/FlexItem.d.ts +1 -2
  87. package/dist/es6/mdx/style-props/examples/FlexItem.d.ts.map +1 -1
  88. package/dist/es6/mdx/style-props/examples/FlexItem.js +2 -13
  89. package/dist/es6/mdx/style-props/examples/Grid.d.ts +1 -2
  90. package/dist/es6/mdx/style-props/examples/Grid.d.ts.map +1 -1
  91. package/dist/es6/mdx/style-props/examples/Grid.js +2 -6
  92. package/dist/es6/mdx/style-props/examples/GridItem.d.ts +1 -2
  93. package/dist/es6/mdx/style-props/examples/GridItem.d.ts.map +1 -1
  94. package/dist/es6/mdx/style-props/examples/GridItem.js +2 -6
  95. package/dist/es6/mdx/style-props/examples/Layout.d.ts +1 -2
  96. package/dist/es6/mdx/style-props/examples/Layout.d.ts.map +1 -1
  97. package/dist/es6/mdx/style-props/examples/Layout.js +2 -5
  98. package/dist/es6/mdx/style-props/examples/Other.d.ts +1 -2
  99. package/dist/es6/mdx/style-props/examples/Other.d.ts.map +1 -1
  100. package/dist/es6/mdx/style-props/examples/Other.js +2 -5
  101. package/dist/es6/mdx/style-props/examples/Position.d.ts +1 -2
  102. package/dist/es6/mdx/style-props/examples/Position.d.ts.map +1 -1
  103. package/dist/es6/mdx/style-props/examples/Position.js +2 -5
  104. package/dist/es6/mdx/style-props/examples/Space.d.ts +1 -2
  105. package/dist/es6/mdx/style-props/examples/Space.d.ts.map +1 -1
  106. package/dist/es6/mdx/style-props/examples/Space.js +2 -8
  107. package/dist/es6/mdx/style-props/examples/Text.d.ts +1 -2
  108. package/dist/es6/mdx/style-props/examples/Text.d.ts.map +1 -1
  109. package/dist/es6/mdx/style-props/examples/Text.js +2 -5
  110. package/dist/es6/mdx/versionsTable.d.ts +1 -2
  111. package/dist/es6/mdx/versionsTable.d.ts.map +1 -1
  112. package/dist/es6/mdx/versionsTable.js +23 -49
  113. package/dist/es6/mdx/welcomePage.d.ts +1 -2
  114. package/dist/es6/mdx/welcomePage.d.ts.map +1 -1
  115. package/dist/es6/mdx/welcomePage.js +37 -49
  116. package/dist/mdx/12.0-UPGRADE-GUIDE.mdx +1 -1
  117. package/dist/mdx/13.0-UPGRADE-GUIDE.mdx +454 -0
  118. package/dist/mdx/CODEMODS.mdx +58 -0
  119. package/dist/mdx/CONTRIBUTING.mdx +8 -0
  120. package/dist/mdx/TESTING.mdx +34 -0
  121. package/dist/mdx/preview-react/_examples/mdx/{Forms.mdx → FormLibraryExample.mdx} +0 -2
  122. package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/Basic.tsx +1 -1
  123. package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/Body.tsx +1 -1
  124. package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/Caution.tsx +1 -2
  125. package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/Critical.tsx +5 -12
  126. package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/CustomIconCritical.tsx +1 -1
  127. package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/Heading.tsx +1 -1
  128. package/dist/mdx/preview-react/information-highlight/examples/Informational.tsx +55 -0
  129. package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/examples/RTL.tsx +1 -1
  130. package/dist/mdx/preview-react/loading-sparkles/examples/Basic.tsx +2 -2
  131. package/dist/mdx/preview-react/multi-select/examples/Basic.tsx +1 -1
  132. package/dist/mdx/preview-react/multi-select/examples/Complex.tsx +1 -1
  133. package/dist/mdx/preview-react/multi-select/examples/Controlled.tsx +1 -1
  134. package/dist/mdx/preview-react/multi-select/examples/Icons.tsx +1 -1
  135. package/dist/mdx/preview-react/multi-select/examples/Searching.tsx +1 -1
  136. package/dist/mdx/preview-react/pill/Pill.mdx +18 -9
  137. package/dist/mdx/preview-react/pill/examples/Basic.tsx +14 -8
  138. package/dist/mdx/preview-react/pill/examples/CustomStyles.tsx +45 -0
  139. package/dist/mdx/preview-react/pill/examples/WithAvatar.tsx +16 -10
  140. package/dist/mdx/preview-react/pill/examples/WithCount.tsx +12 -6
  141. package/dist/mdx/preview-react/pill/examples/WithList.tsx +15 -5
  142. package/dist/mdx/preview-react/pill/examples/WithReadOnly.tsx +8 -5
  143. package/dist/mdx/preview-react/pill/examples/WithRemovable.tsx +23 -11
  144. package/dist/mdx/preview-react/segmented-control/examples/Disabled.tsx +0 -1
  145. package/dist/mdx/preview-react/segmented-control/examples/RTL.tsx +0 -1
  146. package/dist/mdx/preview-react/segmented-control/examples/Vertical.tsx +0 -1
  147. package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithCustomOptionsLeft.tsx +1 -1
  148. package/dist/mdx/preview-react/select/examples/Left Label/DefaultWithSimpleOptionsLeft.tsx +1 -1
  149. package/dist/mdx/preview-react/select/examples/Top Label/Alert.tsx +0 -2
  150. package/dist/mdx/preview-react/select/examples/Top Label/Default.tsx +0 -2
  151. package/dist/mdx/preview-react/select/examples/Top Label/DefaultWithCustomOptions.tsx +0 -2
  152. package/dist/mdx/preview-react/select/examples/Top Label/DefaultWithSimpleOptions.tsx +0 -2
  153. package/dist/mdx/preview-react/select/examples/Top Label/Disabled.tsx +0 -2
  154. package/dist/mdx/preview-react/select/examples/Top Label/Error.tsx +0 -2
  155. package/dist/mdx/preview-react/select/examples/Top Label/Grow.tsx +0 -2
  156. package/dist/mdx/preview-react/select/examples/Top Label/Scrollable.tsx +0 -2
  157. package/dist/mdx/preview-react/select/examples/storiesData.tsx +0 -1
  158. package/dist/mdx/preview-react/side-panel/SidePanel.mdx +28 -3
  159. package/dist/mdx/preview-react/side-panel/examples/AlwaysOpen.tsx +36 -17
  160. package/dist/mdx/preview-react/side-panel/examples/Basic.tsx +40 -34
  161. package/dist/mdx/preview-react/side-panel/examples/ExternalControl.tsx +47 -23
  162. package/dist/mdx/preview-react/side-panel/examples/HiddenName.tsx +24 -5
  163. package/dist/mdx/preview-react/side-panel/examples/OnExpandedChange.tsx +22 -6
  164. package/dist/mdx/preview-react/side-panel/examples/OnStateTransition.tsx +24 -9
  165. package/dist/mdx/preview-react/side-panel/examples/RightOrigin.tsx +39 -40
  166. package/dist/mdx/preview-react/side-panel/examples/Variant.tsx +36 -36
  167. package/dist/mdx/preview-react/text-area/examples/Alert.tsx +1 -4
  168. package/dist/mdx/preview-react/text-input/examples/Alert.tsx +1 -4
  169. package/dist/mdx/preview-react/text-input/examples/ThemedAlert.tsx +1 -4
  170. package/dist/mdx/react/_examples/Tooltips.mdx +15 -0
  171. package/dist/mdx/react/_examples/examples/Tooltips/ListOfUploadedFiles.tsx +38 -0
  172. package/dist/mdx/react/_examples/mdx/SidePanel.mdx +18 -1
  173. package/dist/mdx/react/_examples/mdx/examples/GlobalHeader.tsx +1 -1
  174. package/dist/mdx/react/_examples/mdx/examples/SidePanelWithNavigation.tsx +154 -116
  175. package/dist/mdx/react/_examples/mdx/examples/SidePanelWithOverlay.tsx +33 -15
  176. package/dist/mdx/react/_examples/mdx/examples/Table/WithSelectableRows.tsx +1 -1
  177. package/dist/mdx/react/action-bar/examples/Basic.tsx +0 -1
  178. package/dist/mdx/react/action-bar/examples/DeleteAction.tsx +0 -2
  179. package/dist/mdx/react/action-bar/examples/Icons.tsx +0 -2
  180. package/dist/mdx/react/avatar/avatar/examples/Basic.tsx +2 -3
  181. package/dist/mdx/react/avatar/avatar/examples/Button.tsx +3 -4
  182. package/dist/mdx/react/avatar/avatar/examples/CustomStyles.tsx +2 -3
  183. package/dist/mdx/react/avatar/avatar/examples/Image.tsx +7 -8
  184. package/dist/mdx/react/avatar/avatar/examples/LazyLoad.tsx +7 -2
  185. package/dist/mdx/react/avatar/avatar/examples/ObjectFit.tsx +9 -4
  186. package/dist/mdx/react/avatar/avatar/examples/Size.tsx +10 -11
  187. package/dist/mdx/react/avatar/avatar/examples/Variant.tsx +2 -3
  188. package/dist/mdx/react/banner/examples/Error.tsx +0 -2
  189. package/dist/mdx/react/banner/examples/Sticky.tsx +0 -1
  190. package/dist/mdx/react/banner/examples/StickyAnimation.tsx +42 -26
  191. package/dist/mdx/react/breadcrumbs/examples/Basic.tsx +0 -1
  192. package/dist/mdx/react/button/button/Button.mdx +5 -1
  193. package/dist/mdx/react/button/button/examples/CustomStyles.tsx +1 -3
  194. package/dist/mdx/react/button/button/examples/Delete.tsx +0 -2
  195. package/dist/mdx/react/button/button/examples/ExternalHyperlink.tsx +3 -3
  196. package/dist/mdx/react/button/button/examples/ExternalHyperlinkInverse.tsx +5 -1
  197. package/dist/mdx/react/button/button/examples/Hyperlink.tsx +0 -2
  198. package/dist/mdx/react/button/button/examples/Primary.tsx +0 -2
  199. package/dist/mdx/react/button/button/examples/ThemeOverrides.tsx +14 -17
  200. package/dist/mdx/react/collection/mdx/examples/MultiSelection.tsx +2 -1
  201. package/dist/mdx/react/collection/mdx/examples/Selection.tsx +2 -1
  202. package/dist/mdx/react/color-picker/color-preview/examples/Basic.tsx +0 -1
  203. package/dist/mdx/react/dialog/examples/DialogWithFallbackPlacements.tsx +0 -1
  204. package/dist/mdx/{labs-react → react}/expandable/Expandable.mdx +2 -2
  205. package/dist/mdx/{labs-react → react}/expandable/examples/Avatar.tsx +5 -7
  206. package/dist/mdx/{labs-react → react}/expandable/examples/Depth.tsx +1 -4
  207. package/dist/mdx/{labs-react → react}/expandable/examples/EndIcon.tsx +1 -3
  208. package/dist/mdx/{labs-react → react}/expandable/examples/HoistedModel.tsx +1 -1
  209. package/dist/mdx/{labs-react → react}/expandable/examples/LongTitle.tsx +2 -4
  210. package/dist/mdx/{labs-react → react}/expandable/examples/RTL.tsx +1 -3
  211. package/dist/mdx/{labs-react → react}/expandable/examples/StartIcon.tsx +1 -3
  212. package/dist/mdx/react/menu/Menu.mdx +34 -0
  213. package/dist/mdx/react/menu/examples/Grouping.tsx +32 -0
  214. package/dist/mdx/react/menu/examples/Icons.tsx +1 -1
  215. package/dist/mdx/react/menu/examples/Nested.tsx +49 -0
  216. package/dist/mdx/react/menu/examples/NestedDynamic.tsx +105 -0
  217. package/dist/mdx/react/modal/examples/Basic.tsx +0 -2
  218. package/dist/mdx/react/modal/examples/IframeTest.tsx +0 -1
  219. package/dist/mdx/react/modal/examples/ModalWithPopup.tsx +0 -1
  220. package/dist/mdx/react/modal/examples/StackedModals.tsx +0 -1
  221. package/dist/mdx/react/pagination/examples/CustomRange.tsx +0 -1
  222. package/dist/mdx/react/pagination/examples/GoToForm.tsx +0 -1
  223. package/dist/mdx/react/pagination/examples/JumpControls.tsx +0 -1
  224. package/dist/mdx/react/popup/examples/Basic.tsx +0 -2
  225. package/dist/mdx/react/popup/examples/CloseOnTargetHiddenTest.tsx +0 -1
  226. package/dist/mdx/react/popup/examples/ComboboxWithinPopup.tsx +0 -1
  227. package/dist/mdx/react/popup/examples/MultiplePopups.tsx +0 -2
  228. package/dist/mdx/react/popup/examples/PopupWithFallbackPlacements.tsx +0 -1
  229. package/dist/mdx/react/popup/examples/PopupWithNonHidablePopup.tsx +0 -1
  230. package/dist/mdx/react/popup/examples/ReturnFocusTest.tsx +8 -6
  231. package/dist/mdx/react/popup/examples/TooltipReturnFocus.tsx +0 -1
  232. package/dist/mdx/react/select/examples/Basic.tsx +1 -0
  233. package/dist/mdx/react/select/examples/MenuHeight.tsx +0 -1
  234. package/dist/mdx/react/table/Table.mdx +14 -1
  235. package/dist/mdx/react/table/examples/BaseHtmlTable.tsx +46 -0
  236. package/dist/mdx/react/tabs/examples/Basic.tsx +0 -1
  237. package/dist/mdx/react/tabs/examples/DisabledTab.tsx +0 -1
  238. package/dist/mdx/react/tabs/examples/DynamicTabs.tsx +3 -2
  239. package/dist/mdx/react/tabs/examples/NamedTabs.tsx +0 -1
  240. package/dist/mdx/react/tabs/examples/RightToLeft.tsx +0 -1
  241. package/dist/mdx/react/text-input/examples/Basic.tsx +0 -3
  242. package/dist/mdx/react/toast/examples/Basic.tsx +0 -2
  243. package/dist/mdx/react/toast/examples/ToastAlert.tsx +0 -2
  244. package/dist/mdx/react/toast/examples/ToastDialog.tsx +0 -2
  245. package/dist/mdx/react/tokens/Tokens.mdx +1 -1
  246. package/dist/mdx/react/tooltip/Tooltip.mdx +31 -1
  247. package/dist/mdx/react/tooltip/examples/Default.tsx +0 -2
  248. package/dist/mdx/react/tooltip/examples/DescribeType.tsx +0 -2
  249. package/dist/mdx/react/tooltip/examples/DescriptionType.tsx +20 -0
  250. package/dist/mdx/react/tooltip/examples/Muted.tsx +0 -2
  251. package/dist/mdx/react/tooltip/examples/Placements.tsx +14 -11
  252. package/dist/mdx/style-props/examples/Background.tsx +2 -3
  253. package/dist/mdx/style-props/examples/Border.tsx +2 -3
  254. package/dist/mdx/style-props/examples/Color.tsx +2 -3
  255. package/dist/mdx/style-props/examples/Depth.tsx +2 -3
  256. package/dist/mdx/style-props/examples/Flex.tsx +0 -1
  257. package/dist/mdx/style-props/examples/FlexItem.tsx +0 -1
  258. package/dist/mdx/style-props/examples/Grid.tsx +0 -1
  259. package/dist/mdx/style-props/examples/GridItem.tsx +0 -1
  260. package/dist/mdx/style-props/examples/Layout.tsx +0 -1
  261. package/dist/mdx/style-props/examples/Other.tsx +0 -1
  262. package/dist/mdx/style-props/examples/Position.tsx +2 -3
  263. package/dist/mdx/style-props/examples/Space.tsx +2 -3
  264. package/dist/mdx/style-props/examples/Text.tsx +0 -1
  265. package/lib/ExampleCodeBlock.tsx +57 -19
  266. package/lib/MDXElements.tsx +3 -3
  267. package/lib/StylePropsTable.tsx +1 -2
  268. package/lib/Table.tsx +0 -1
  269. package/lib/stackblitzFiles/.eslintrc.cjs.txt +15 -0
  270. package/lib/stackblitzFiles/App.tsx +33 -0
  271. package/lib/stackblitzFiles/Demo.tsx +1 -0
  272. package/lib/stackblitzFiles/index.html +13 -0
  273. package/lib/stackblitzFiles/main.tsx +27 -0
  274. package/lib/stackblitzFiles/packageJSONFile.ts +42 -0
  275. package/lib/stackblitzFiles/tsconfig.json +26 -0
  276. package/lib/stackblitzFiles/tsconfig.node.json +12 -0
  277. package/lib/stackblitzFiles/types/custom-imports.d.ts +13 -0
  278. package/lib/stackblitzFiles/vite-env.d.ts +1 -0
  279. package/lib/stackblitzFiles/vite.config.ts +10 -0
  280. package/lib/widgets/array.tsx +0 -2
  281. package/lib/widgets/canvasColor.tsx +0 -2
  282. package/lib/widgets/component.tsx +0 -2
  283. package/lib/widgets/conditional.tsx +0 -2
  284. package/lib/widgets/enhancedComponent.tsx +1 -1
  285. package/lib/widgets/external.tsx +3 -2
  286. package/lib/widgets/model.tsx +0 -2
  287. package/lib/widgets/parenthesis.tsx +0 -2
  288. package/lib/widgets/primitives.tsx +1 -5
  289. package/lib/widgets/qualifiedName.tsx +0 -2
  290. package/lib/widgets/symbol.tsx +0 -2
  291. package/lib/widgets/tuple.tsx +0 -2
  292. package/lib/widgets/typeParameter.tsx +0 -2
  293. package/package.json +8 -7
  294. package/dist/mdx/preview-react/InformationHighlight/examples/Informational.tsx +0 -27
  295. /package/dist/mdx/preview-react/{InformationHighlight → information-highlight}/InformationHighlight.mdx +0 -0
  296. /package/dist/mdx/{labs-react → react}/expandable/examples/test-avatar.png +0 -0
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import {Grid} from '@workday/canvas-kit-react/layout';
3
2
 
4
3
  const baseStyles = {
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import {Grid} from '@workday/canvas-kit-react/layout';
3
2
 
4
3
  const baseStyles = {
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import {Flex} from '@workday/canvas-kit-react/layout';
3
2
 
4
3
  const baseStyles = {
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import {Box} from '@workday/canvas-kit-react/layout';
3
2
  import {colors} from '@workday/canvas-kit-react/tokens';
4
3
 
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import {Box} from '@workday/canvas-kit-react/layout';
3
2
 
4
3
  const baseStyles = {
@@ -11,7 +10,7 @@ const baseStyles = {
11
10
 
12
11
  export default () => {
13
12
  return (
14
- <>
13
+ <div>
15
14
  <Box
16
15
  backgroundColor="cinnamon300"
17
16
  left={0}
@@ -45,6 +44,6 @@ export default () => {
45
44
  >
46
45
  Right
47
46
  </Box>
48
- </>
47
+ </div>
49
48
  );
50
49
  };
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import {Box} from '@workday/canvas-kit-react/layout';
3
2
 
4
3
  const baseStyles = {
@@ -9,7 +8,7 @@ const baseStyles = {
9
8
  };
10
9
 
11
10
  export default () => (
12
- <>
11
+ <div>
13
12
  <Box backgroundColor="cinnamon300" margin="xxs" padding="s" textAlign="center" {...baseStyles}>
14
13
  <Box border="dotted 2px" borderColor="blackPepper500">
15
14
  Small
@@ -25,5 +24,5 @@ export default () => (
25
24
  Large
26
25
  </Box>
27
26
  </Box>
28
- </>
27
+ </div>
29
28
  );
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import {Box} from '@workday/canvas-kit-react/layout';
3
2
 
4
3
  export default () => (
@@ -7,7 +7,17 @@ import {calc, createStencil, cssVar, px2rem} from '@workday/canvas-kit-styling';
7
7
  import {system} from '@workday/canvas-tokens-web';
8
8
  import {vscDarkPlus} from 'react-syntax-highlighter/dist/cjs/styles/prism';
9
9
  import {checkCircleIcon, copyIcon} from '@workday/canvas-system-icons-web';
10
- import {Tooltip} from '@workday/canvas-kit-react';
10
+ import {Tooltip} from '@workday/canvas-kit-react/tooltip';
11
+ import sdk from '@stackblitz/sdk';
12
+ import tsconfigFile from '!!raw-loader!./stackblitzFiles/tsconfig.json';
13
+ import {packageJSONFile} from './stackblitzFiles/packageJSONFile';
14
+ import indexHTMLFile from '!!raw-loader!./stackblitzFiles/index.html';
15
+ import mainFile from '!!raw-loader!./stackblitzFiles/main.tsx';
16
+ import viteConfigFile from '!!raw-loader!./stackblitzFiles/vite.config.ts';
17
+ import eslintrc from '!!raw-loader!./stackblitzFiles/.eslintrc.cjs.txt';
18
+ import tsconfigNodeFile from '!!raw-loader!./stackblitzFiles/tsconfig.node.json';
19
+ import appFile from '!!raw-loader!./stackblitzFiles/App.tsx';
20
+ import viteEnvFile from '!!raw-loader!./stackblitzFiles/vite-env.d.ts';
11
21
 
12
22
  const cardStencil = createStencil({
13
23
  base: {
@@ -21,10 +31,12 @@ const cardStencil = createStencil({
21
31
  boxShadow: system.depth[1],
22
32
  borderRadius: system.shape.x1,
23
33
  },
24
- '[data-part="code-toggle-btn"]': {
34
+ '[data-part="code-toggle-stackblitz-btn-container"]': {
25
35
  position: 'absolute',
26
36
  right: calc.negate(px2rem(1)),
27
37
  bottom: calc.negate(px2rem(1)),
38
+ display: 'flex',
39
+ gap: system.space.x2,
28
40
  },
29
41
  '[data-part="copy-btn"]': {
30
42
  position: 'absolute',
@@ -70,17 +82,42 @@ export const ExampleCodeBlock = ({code}: any) => {
70
82
  navigator.clipboard.writeText(textInput.current.textContent);
71
83
  };
72
84
 
73
- // React.useEffect(() => {
74
- // if (copied) {
75
- // const copyCodeTimeout = setTimeout(() => {
76
- // setCopied(false);
77
- // }, 2000);
85
+ /**
86
+ * `code` returns our examples. We need to rewrite them so that they export `Demo`.
87
+ */
88
+ const handleExampleRewrite = (code: any) => {
89
+ return code
90
+ .replace(/\bexport\s+const\s+(\w+)\s*=/, `export const Demo =`)
91
+ .replace(/export default/, 'export const Demo =');
92
+ };
78
93
 
79
- // return () => {
80
- // clearTimeout(copyCodeTimeout);
81
- // };
82
- // }
83
- // }, [copied]);
94
+ const openProjectInStackblitz = () => {
95
+ sdk.openProject(
96
+ {
97
+ files: {
98
+ 'src/Demo.tsx': handleExampleRewrite(code.__RAW__),
99
+ 'src/vite-env-d.ts': viteEnvFile,
100
+ 'src/App.tsx': appFile,
101
+ 'tsconfig.node.json': tsconfigNodeFile,
102
+ '.eslintrc.js': eslintrc,
103
+ 'vite.config.ts': viteConfigFile,
104
+ 'src/main.tsx': mainFile,
105
+ 'index.html': indexHTMLFile,
106
+ 'tsconfig.json': tsconfigFile,
107
+ 'package.json': packageJSONFile,
108
+ },
109
+ template: 'node',
110
+ title: `Demo`,
111
+ description: `This is a Canvas Kit Demo. Edit and play around!`,
112
+ },
113
+
114
+ // Options
115
+ {
116
+ newWindow: true,
117
+ openFile: 'src/Demo.tsx',
118
+ }
119
+ );
120
+ };
84
121
 
85
122
  return (
86
123
  <div {...cardStencil({opened: isCodeDisplayed})}>
@@ -88,13 +125,14 @@ export const ExampleCodeBlock = ({code}: any) => {
88
125
  <Card.Body>
89
126
  {React.createElement(code)}
90
127
  {code && (
91
- <TertiaryButton
92
- size="extraSmall"
93
- onClick={() => setCodeDisplayed(!isCodeDisplayed)}
94
- data-part="code-toggle-btn"
95
- >
96
- {!isCodeDisplayed ? 'Show Code' : 'Hide Code'}
97
- </TertiaryButton>
128
+ <div data-part="code-toggle-stackblitz-btn-container">
129
+ <TertiaryButton size="extraSmall" onClick={() => openProjectInStackblitz()}>
130
+ ⚡️ Edit in Stackblitz
131
+ </TertiaryButton>
132
+ <TertiaryButton size="extraSmall" onClick={() => setCodeDisplayed(!isCodeDisplayed)}>
133
+ {!isCodeDisplayed ? 'Show Code' : 'Hide Code'}
134
+ </TertiaryButton>
135
+ </div>
98
136
  )}
99
137
  </Card.Body>
100
138
  </Card>
@@ -25,7 +25,7 @@ export const MDX = createComponent('div')({
25
25
  */
26
26
  const Button = (props: any) => {
27
27
  const components = useMDXComponents();
28
- if (props['data-symbol'] !== undefined) {
28
+ if (props['data-symbol'] !== undefined && props.children) {
29
29
  return (
30
30
  <code>
31
31
  <SymbolDialog
@@ -49,8 +49,8 @@ const Button = (props: any) => {
49
49
  function convertLinkToSymbolLinks(input: string): string {
50
50
  return input.replace(
51
51
  /{@link ([a-z0-9.]+)( [a-z0-9.]+)?}/gi,
52
- (substr, symbol, text = '') =>
53
- `<button href="#" data-symbol="${text.trim()}" class="token symbol">${symbol}</button>`
52
+ (_substr, symbol, text = '') =>
53
+ `<button data-symbol="${text.trim()}" className="token symbol">${symbol}</button>`
54
54
  );
55
55
  }
56
56
 
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import {Box} from '@workday/canvas-kit-react/layout';
3
2
  import {ExternalHyperlink} from '@workday/canvas-kit-react';
4
3
  import {Table} from './Table';
@@ -38,7 +37,7 @@ export const StylePropsTable = ({styleProps = []}: StylePropsTableProps) => {
38
37
  const mdnUrl = `https://developer.mozilla.org/en-US/docs/Web/CSS/${formattedName}`;
39
38
  return (
40
39
  <Box display="inline-block" marginInlineEnd="xxxs">
41
- <ExternalHyperlink href={mdnUrl} key={i}>
40
+ <ExternalHyperlink href={mdnUrl} key={i} iconLabel="Open link in new window">
42
41
  {formattedName}
43
42
  </ExternalHyperlink>
44
43
  </Box>
package/lib/Table.tsx CHANGED
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import {createComponent, StyledType} from '@workday/canvas-kit-react/common';
3
2
  import {Box, BoxProps} from '@workday/canvas-kit-react/layout';
4
3
  import {Text, TextProps} from '@workday/canvas-kit-react/text';
@@ -0,0 +1,15 @@
1
+ module.exports = {
2
+ root: true,
3
+ env: {browser: true, es2020: true},
4
+ extends: [
5
+ 'eslint:recommended',
6
+ 'plugin:@typescript-eslint/recommended',
7
+ 'plugin:react-hooks/recommended',
8
+ ],
9
+ ignorePatterns: ['dist', '.eslintrc.cjs'],
10
+ parser: '@typescript-eslint/parser',
11
+ plugins: ['react-refresh'],
12
+ rules: {
13
+ 'react-refresh/only-export-components': ['warn', {allowConstantExport: true}],
14
+ },
15
+ };
@@ -0,0 +1,33 @@
1
+ import {
2
+ CanvasProvider,
3
+ ContentDirection,
4
+ PartialEmotionCanvasTheme,
5
+ useTheme,
6
+ } from '@workday/canvas-kit-react/common';
7
+ import {createStyles} from '@workday/canvas-kit-styling';
8
+
9
+ import {Demo} from './Demo';
10
+ import {system} from '@workday/canvas-tokens-web';
11
+
12
+ const mainContentStyles = createStyles({
13
+ padding: system.space.x4,
14
+ });
15
+
16
+ export const App = () => {
17
+ // useTheme is filling in the Canvas theme object if any keys are missing
18
+ const canvasTheme: PartialEmotionCanvasTheme = useTheme({
19
+ canvas: {
20
+ direction: ContentDirection.LTR,
21
+ },
22
+ });
23
+
24
+ return (
25
+ <CanvasProvider theme={canvasTheme}>
26
+ <>
27
+ <main className={mainContentStyles}>
28
+ <Demo />
29
+ </main>
30
+ </>
31
+ </CanvasProvider>
32
+ );
33
+ };
@@ -0,0 +1 @@
1
+ export const Demo = ({}) => <div></div>;
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + React + TS</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,27 @@
1
+ import {createRoot} from 'react-dom/client';
2
+ import {fonts} from '@workday/canvas-kit-react-fonts';
3
+ import {system} from '@workday/canvas-tokens-web';
4
+ import {cssVar, injectGlobal} from '@workday/canvas-kit-styling';
5
+ import {App} from './App';
6
+
7
+ import '@workday/canvas-tokens-web/css/base/_variables.css';
8
+ import '@workday/canvas-tokens-web/css/brand/_variables.css';
9
+ import '@workday/canvas-tokens-web/css/system/_variables.css';
10
+
11
+ //@ts-ignore
12
+ injectGlobal({
13
+ ...fonts,
14
+ 'html, body': {
15
+ fontFamily: cssVar(system.fontFamily.default),
16
+ margin: 0,
17
+ minHeight: '100vh',
18
+ },
19
+ '#root, #root < div': {
20
+ minHeight: '100vh',
21
+ ...system.type.body.small,
22
+ },
23
+ });
24
+
25
+ const container = document.getElementById('root')!;
26
+ const root = createRoot(container);
27
+ root.render(<App />);
@@ -0,0 +1,42 @@
1
+ // @ts-ignore: Cannot find module error
2
+ import {version} from '../../../../lerna.json';
3
+ export const packageJSONFile = `{
4
+ "name": "vite-react-typescript-starter",
5
+ "private": true,
6
+ "version": "0.0.0",
7
+ "type": "module",
8
+ "scripts": {
9
+ "dev": "vite",
10
+ "build": "tsc && vite build",
11
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
12
+ "preview": "vite preview"
13
+ },
14
+ "dependencies": {
15
+ "react": "^18.2.0",
16
+ "react-dom": "^18.2.0",
17
+ "@emotion/css": "11.11.2",
18
+ "@emotion/react": "11.11.4",
19
+ "@types/react": "18.2.60",
20
+ "@types/react-dom": "18.2.19",
21
+ "@workday/canvas-kit-labs-react": "${version}",
22
+ "@workday/canvas-kit-preview-react": "${version}",
23
+ "@workday/canvas-kit-react": "${version}",
24
+ "@workday/canvas-kit-react-fonts": "^${version}",
25
+ "@workday/canvas-kit-styling": "${version}",
26
+ "@workday/canvas-system-icons-web": "3.0.22",
27
+ "@workday/canvas-tokens-web": "2.0.0"
28
+ },
29
+ "devDependencies": {
30
+ "@types/react": "^18.2.59",
31
+ "@types/react-dom": "^18.2.19",
32
+ "@typescript-eslint/eslint-plugin": "^7.1.0",
33
+ "@typescript-eslint/parser": "^7.1.0",
34
+ "@vitejs/plugin-react": "^4.2.1",
35
+ "eslint": "^8.57.0",
36
+ "eslint-plugin-react-hooks": "^4.6.0",
37
+ "eslint-plugin-react-refresh": "^0.4.5",
38
+ "typescript": "^5.2.2",
39
+ "vite": "^5.1.4"
40
+ }
41
+ }
42
+ `;
@@ -0,0 +1,26 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
+ "module": "ESNext",
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "noEmit": true,
15
+ "jsx": "react-jsx",
16
+ "types": ["vite-env"],
17
+
18
+ /* Linting */
19
+ "strict": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "noFallthroughCasesInSwitch": true
23
+ },
24
+ "include": ["src"],
25
+ "references": [{ "path": "./tsconfig.node.json" }]
26
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "skipLibCheck": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+ "allowSyntheticDefaultImports": true,
8
+ "strict": true
9
+ },
10
+ "include": ["vite.config.ts"]
11
+ }
12
+
@@ -0,0 +1,13 @@
1
+ declare module '!!raw-loader!*' {
2
+ const content: string;
3
+ export default content;
4
+ }
5
+
6
+ declare module 'vite' {
7
+ export function defineConfig(config: any): any;
8
+ }
9
+
10
+ declare module '@vitejs/plugin-react' {
11
+ const react: any;
12
+ export default react;
13
+ }
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />`
@@ -0,0 +1,10 @@
1
+ /// <reference path="./types/custom-imports.d.ts" />
2
+
3
+ import {defineConfig} from 'vite';
4
+
5
+ import react from '@vitejs/plugin-react';
6
+
7
+ // https://vitejs.dev/config/
8
+ export default defineConfig({
9
+ plugins: [react()],
10
+ });
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {ArrayValue} from '../../docgen/docTypes';
4
2
  import {registerWidget, Value} from '../Value';
5
3
  import {RenderContext} from '../widgetUtils';
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {colors} from '@workday/canvas-kit-react/tokens';
4
2
  import {ColorPicker} from '@workday/canvas-kit-preview-react/color-picker';
5
3
 
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {ComponentValue} from '../../docgen/plugins/customTypes';
4
2
  import {PropertiesTable, registerWidget} from '../Value';
5
3
  import {Heading} from '../widgetUtils';
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {ConditionalTypeValue} from '../../docgen/docTypes';
4
2
  import {registerWidget, Value} from '../Value';
5
3
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import {Expandable} from '@workday/canvas-kit-labs-react/expandable';
3
+ import {Expandable} from '@workday/canvas-kit-react/expandable';
4
4
 
5
5
  import {defaultJSDoc} from '../../docgen/docParser';
6
6
  import {EnhancedComponentValue} from '../../docgen/plugins/customTypes';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import {ExternalHyperlink} from '@workday/canvas-kit-react/button';
3
2
 
4
3
  import {renderTypeParameters} from '../widgetUtils';
@@ -8,7 +7,9 @@ import {registerWidget} from '../Value';
8
7
 
9
8
  registerWidget<ExternalSymbolValue>('external', ({value}) => (
10
9
  <>
11
- <ExternalHyperlink href={value.url}>{value.name}</ExternalHyperlink>
10
+ <ExternalHyperlink href={value.url} iconLabel="Open link in new window">
11
+ {value.name}
12
+ </ExternalHyperlink>
12
13
  {renderTypeParameters(value.typeParameters)}
13
14
  </>
14
15
  ));
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {ModelHookValue, ModelValue} from '../../docgen/plugins/customTypes';
4
2
  import {PropertiesTable, registerWidget, Value} from '../Value';
5
3
  import {Heading} from '../widgetUtils';
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {ParenthesisValue} from '../../docgen/docTypes';
4
2
  import {registerWidget, Value} from '../Value';
5
3
 
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {registerWidget, Value} from '../Value';
4
2
  import {
5
3
  BooleanLiteralValue,
@@ -40,9 +38,7 @@ registerWidget<TypeValue>('type', ({value, doc}) => {
40
38
  <>
41
39
  <span className="token keyword">type</span>{' '}
42
40
  <span className="token symbol">{doc?.name || 'unknown'}</span>
43
- {renderTypeParameters(
44
- value.typeParameters
45
- )} <span className="token operator">=</span>{' '}
41
+ {renderTypeParameters(value.typeParameters)} <span className="token operator">=</span>{' '}
46
42
  </>
47
43
  )}
48
44
  <Value value={value.value} />
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {QualifiedNameValue} from '../../docgen/docTypes';
4
2
  import {registerWidget, Value} from '../Value';
5
3
 
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {SymbolValue} from '../../docgen/docTypes';
4
2
  import {registerWidget} from '../Value';
5
3
  import {SymbolDialog} from '../widgetUtils';
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {TupleValue} from '../../docgen/docTypes';
4
2
  import {registerWidget, Value} from '../Value';
5
3
  import {RenderContext} from '../widgetUtils';
@@ -1,5 +1,3 @@
1
- import React from 'react';
2
-
3
1
  import {TypeParameter} from '../../docgen/docTypes';
4
2
  import {registerWidget, Value} from '../Value';
5
3
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "13.0.0-alpha.998-next.0",
3
+ "version": "13.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",
@@ -43,13 +43,14 @@
43
43
  ],
44
44
  "dependencies": {
45
45
  "@emotion/styled": "^11.6.0",
46
+ "@stackblitz/sdk": "^1.11.0",
46
47
  "@storybook/csf": "0.0.1",
47
- "@workday/canvas-kit-labs-react": "^13.0.0-alpha.998-next.0",
48
- "@workday/canvas-kit-preview-react": "^13.0.0-alpha.998-next.0",
49
- "@workday/canvas-kit-react": "^13.0.0-alpha.998-next.0",
50
- "@workday/canvas-kit-styling": "^13.0.0-alpha.998-next.0",
48
+ "@workday/canvas-kit-labs-react": "^13.0.1",
49
+ "@workday/canvas-kit-preview-react": "^13.0.1",
50
+ "@workday/canvas-kit-react": "^13.0.1",
51
+ "@workday/canvas-kit-styling": "^13.0.1",
51
52
  "@workday/canvas-system-icons-web": "^3.0.0",
52
- "@workday/canvas-tokens-web": "^2.1.0",
53
+ "@workday/canvas-tokens-web": "^2.1.1",
53
54
  "markdown-to-jsx": "^7.2.0",
54
55
  "react-syntax-highlighter": "^15.5.0",
55
56
  "ts-node": "^10.9.1"
@@ -60,5 +61,5 @@
60
61
  "mkdirp": "^1.0.3",
61
62
  "typescript": "5.0"
62
63
  },
63
- "gitHead": "d95041596e2b948c0a371f4c763746a98c58b2da"
64
+ "gitHead": "bb1ae05330f359a59d9776efe8e99cdc20e99f52"
64
65
  }
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import {Flex} from '@workday/canvas-kit-react/layout';
3
- import {InformationHighlight} from '@workday/canvas-kit-preview-react/InformationHighlight';
4
- import {system} from '@workday/canvas-tokens-web';
5
-
6
- export default () => {
7
- return (
8
- <Flex flexDirection={'column'} gap={system.space.x2}>
9
- <InformationHighlight variant={'informational'}>
10
- <InformationHighlight.Icon />
11
- <InformationHighlight.Heading> Informational Highlight </InformationHighlight.Heading>
12
- <InformationHighlight.Body>
13
- If you select the link below it will just reroute you back to this page
14
- </InformationHighlight.Body>
15
- <InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link>
16
- </InformationHighlight>
17
- <InformationHighlight variant={'informational'} emphasis={'high'}>
18
- <InformationHighlight.Icon />
19
- <InformationHighlight.Heading> Informational Highlight </InformationHighlight.Heading>
20
- <InformationHighlight.Body>
21
- If you select the link below it will just reroute you back to this page
22
- </InformationHighlight.Body>
23
- <InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link>
24
- </InformationHighlight>
25
- </Flex>
26
- );
27
- };