@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
@@ -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,2 @@
1
+ export declare const App: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../lib/stackblitzFiles/App.tsx"],"names":[],"mappings":"AAeA,eAAO,MAAM,GAAG,+CAiBf,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { CanvasProvider, ContentDirection, useTheme, } from '@workday/canvas-kit-react/common';
3
+ import { createStyles } from '@workday/canvas-kit-styling';
4
+ import { Demo } from './Demo';
5
+ import { system } from '@workday/canvas-tokens-web';
6
+ const mainContentStyles = createStyles({
7
+ padding: system.space.x4,
8
+ });
9
+ export const App = () => {
10
+ // useTheme is filling in the Canvas theme object if any keys are missing
11
+ const canvasTheme = useTheme({
12
+ canvas: {
13
+ direction: ContentDirection.LTR,
14
+ },
15
+ });
16
+ return (_jsx(CanvasProvider, { theme: canvasTheme, children: _jsx(_Fragment, { children: _jsx("main", { className: mainContentStyles, children: _jsx(Demo, {}) }) }) }));
17
+ };
@@ -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,2 @@
1
+ export declare const Demo: ({}: {}) => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Demo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Demo.d.ts","sourceRoot":"","sources":["../../../../lib/stackblitzFiles/Demo.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,qDAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const Demo = ({}) => _jsx("div", {});
@@ -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,4 @@
1
+ import '@workday/canvas-tokens-web/css/base/_variables.css';
2
+ import '@workday/canvas-tokens-web/css/brand/_variables.css';
3
+ import '@workday/canvas-tokens-web/css/system/_variables.css';
4
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../lib/stackblitzFiles/main.tsx"],"names":[],"mappings":"AAMA,OAAO,oDAAoD,CAAC;AAC5D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,sDAAsD,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { createRoot } from 'react-dom/client';
3
+ import { fonts } from '@workday/canvas-kit-react-fonts';
4
+ import { system } from '@workday/canvas-tokens-web';
5
+ import { cssVar, injectGlobal } from '@workday/canvas-kit-styling';
6
+ import { App } from './App';
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
+ //@ts-ignore
11
+ injectGlobal({
12
+ ...fonts,
13
+ 'html, body': {
14
+ fontFamily: cssVar(system.fontFamily.default),
15
+ margin: 0,
16
+ minHeight: '100vh',
17
+ },
18
+ '#root, #root < div': {
19
+ minHeight: '100vh',
20
+ ...system.type.body.small,
21
+ },
22
+ });
23
+ const container = document.getElementById('root');
24
+ const root = createRoot(container);
25
+ root.render(_jsx(App, {}));
@@ -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,2 @@
1
+ export declare const packageJSONFile: string;
2
+ //# sourceMappingURL=packageJSONFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packageJSONFile.d.ts","sourceRoot":"","sources":["../../../../lib/stackblitzFiles/packageJSONFile.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,QAuC3B,CAAC"}
@@ -0,0 +1,42 @@
1
+ // @ts-ignore: Cannot find module error
2
+
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": "13.0.1",
22
+ "@workday/canvas-kit-preview-react": "13.0.1",
23
+ "@workday/canvas-kit-react": "13.0.1",
24
+ "@workday/canvas-kit-react-fonts": "^13.0.1",
25
+ "@workday/canvas-kit-styling": "13.0.1",
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,42 @@
1
+ // @ts-ignore: Cannot find module error
2
+
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": "13.0.1",
22
+ "@workday/canvas-kit-preview-react": "13.0.1",
23
+ "@workday/canvas-kit-react": "13.0.1",
24
+ "@workday/canvas-kit-react-fonts": "^13.0.1",
25
+ "@workday/canvas-kit-styling": "13.0.1",
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 @@
1
+ /// <reference types="vite/client" />`
@@ -0,0 +1,4 @@
1
+ /// <reference path="../../../../lib/stackblitzFiles/types/custom-imports.d.ts" />
2
+ declare const _default: any;
3
+ export default _default;
4
+ //# sourceMappingURL=vite.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../../../lib/stackblitzFiles/vite.config.ts"],"names":[],"mappings":";;AAOA,wBAEG"}
@@ -0,0 +1,7 @@
1
+ /// <reference path="./types/custom-imports.d.ts" />
2
+ import { defineConfig } from 'vite';
3
+ import react from '@vitejs/plugin-react';
4
+ // https://vitejs.dev/config/
5
+ export default defineConfig({
6
+ plugins: [react()],
7
+ });
@@ -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
+ });
@@ -27,11 +27,11 @@ interface HeadingProps {
27
27
  * relative heading levels.
28
28
  */
29
29
  export declare const Heading: import("@workday/canvas-kit-react/common").ElementComponent<"h4", HeadingProps>;
30
- export declare function renderTypeParameters(typeParameters?: types.TypeParameter[]): "" | React.JSX.Element;
30
+ export declare function renderTypeParameters(typeParameters?: types.TypeParameter[]): "" | import("react/jsx-runtime").JSX.Element;
31
31
  export interface SymbolDialogProps {
32
32
  value: types.SymbolValue;
33
33
  }
34
- export declare const SymbolDialog: ({ value }: SymbolDialogProps) => React.JSX.Element;
34
+ export declare const SymbolDialog: ({ value }: SymbolDialogProps) => import("react/jsx-runtime").JSX.Element;
35
35
  export declare const useDoc: (criteria: ValueDocProps) => types.ExportedSymbol<types.Value> | undefined;
36
36
  export interface ValueDocProps {
37
37
  name: string;
@@ -41,11 +41,11 @@ export interface ValueDocProps {
41
41
  * Renders the `<Value>` of a exported symbol without any wrapper. This should be used when nesting
42
42
  * inside a `<SymbolDoc>` component.
43
43
  */
44
- export declare const SymbolValue: (props: ValueDocProps) => React.JSX.Element;
44
+ export declare const SymbolValue: (props: ValueDocProps) => import("react/jsx-runtime").JSX.Element;
45
45
  /**
46
46
  * Renders just the description of an exported symbol.
47
47
  */
48
- export declare const SymbolDescription: (props: ValueDocProps) => React.JSX.Element | null;
48
+ export declare const SymbolDescription: (props: ValueDocProps) => import("react/jsx-runtime").JSX.Element | null;
49
49
  export interface SymbolDocProps extends ValueDocProps, StyledType {
50
50
  /**
51
51
  * `SymbolDoc` can support heading levels inside widgets. The `headingStart` determines the
@@ -76,6 +76,6 @@ export interface SymbolDocProps extends ValueDocProps, StyledType {
76
76
  * Renders an exported symbol as a doc object. This will render JSDoc tags, description and setup
77
77
  * rendering contexts for headers.
78
78
  */
79
- export declare const SymbolDoc: ({ name, fileName, headingStart, hideDescription, hideHeading, descriptionOverride, meta, ...elemProps }: SymbolDocProps) => React.JSX.Element;
79
+ export declare const SymbolDoc: ({ name, fileName, headingStart, hideDescription, hideHeading, descriptionOverride, meta, ...elemProps }: SymbolDocProps) => import("react/jsx-runtime").JSX.Element;
80
80
  export {};
81
81
  //# sourceMappingURL=widgetUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"widgetUtils.d.ts","sourceRoot":"","sources":["../../../lib/widgetUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAkB,UAAU,EAAC,MAAM,kCAAkC,CAAC;AAS7E,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAc5C,yFAAyF;AACzF,eAAO,MAAM,aAAa,mCAAmD,CAAC;AAC9E;;;GAGG;AACH,eAAO,MAAM,mBAAmB,uBAAyB,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,kBAAkB,uBAAyB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,UAEnC;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAEvC;AAED,UAAU,YAAY;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD;;;GAGG;AACH,eAAO,MAAM,OAAO,iFAOlB,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,0BAiB1E;AAID,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,cAAa,iBAAiB,sBAkItD,CAAC;AAsEF,eAAO,MAAM,MAAM,aAAc,aAAa,kDAK7C,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,UAAW,aAAa,sBAI/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,UAAW,aAAa,6BAIrD,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,aAAa,EAAE,UAAU;IAC/D;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,4GASnB,cAAc,sBAsDhB,CAAC"}
1
+ {"version":3,"file":"widgetUtils.d.ts","sourceRoot":"","sources":["../../../lib/widgetUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAkB,UAAU,EAAC,MAAM,kCAAkC,CAAC;AAS7E,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAc5C,yFAAyF;AACzF,eAAO,MAAM,aAAa,mCAAmD,CAAC;AAC9E;;;GAGG;AACH,eAAO,MAAM,mBAAmB,uBAAyB,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,kBAAkB,uBAAyB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,UAEnC;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,UAEvC;AAED,UAAU,YAAY;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD;;;GAGG;AACH,eAAO,MAAM,OAAO,iFAOlB,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,gDAiB1E;AAID,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,cAAa,iBAAiB,4CAkItD,CAAC;AAsEF,eAAO,MAAM,MAAM,aAAc,aAAa,kDAK7C,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,UAAW,aAAa,4CAI/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,UAAW,aAAa,mDAIrD,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,aAAa,EAAE,UAAU;IAC/D;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,4GASnB,cAAc,4CAsDhB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import styled from '@emotion/styled';
3
4
  import { createComponent } from '@workday/canvas-kit-react/common';
@@ -47,18 +48,13 @@ export const Heading = createComponent('h4')({
47
48
  Component({ headingOffset = 0, ...elemProps }) {
48
49
  const headingLevel = React.useContext(HeadingLevelContext);
49
50
  const as = `h${headingLevel + headingOffset}`; // Make Typescript happy
50
- return React.createElement(MDX, { as: as, ...elemProps });
51
+ return _jsx(MDX, { as: as, ...elemProps });
51
52
  },
52
53
  });
53
54
  export function renderTypeParameters(typeParameters) {
54
- return typeParameters && typeParameters.length ? (React.createElement(RenderContext.Provider, { value: "inline" },
55
- React.createElement("span", null, "<"),
56
- typeParameters.map((p, index) => {
57
- return (React.createElement(React.Fragment, { key: index },
58
- index !== 0 && React.createElement("span", { className: "token punctuation" }, ", "),
59
- React.createElement(Value, { value: p })));
60
- }),
61
- React.createElement("span", null, ">"))) : ('');
55
+ return typeParameters && typeParameters.length ? (_jsxs(RenderContext.Provider, { value: "inline", children: [_jsx("span", { children: "<" }), typeParameters.map((p, index) => {
56
+ return (_jsxs(React.Fragment, { children: [index !== 0 && _jsx("span", { className: "token punctuation", children: ", " }), _jsx(Value, { value: p })] }, index));
57
+ }), _jsx("span", { children: ">" })] })) : ('');
62
58
  }
63
59
  const ButtonHyperLink = Hyperlink.as('button');
64
60
  export const SymbolDialog = ({ value }) => {
@@ -89,41 +85,23 @@ export const SymbolDialog = ({ value }) => {
89
85
  };
90
86
  // If we're inside a nested context, we render a Hyperlink. This button will update the dialog instead of rendering a new one.
91
87
  if (nestedContext) {
92
- return (React.createElement(ButtonHyperLink, { style: {
88
+ return (_jsx(ButtonHyperLink, { style: {
93
89
  border: 'none',
94
90
  background: 'transparent',
95
91
  fontSize: 'inherit',
96
92
  fontFamily: 'inherit',
97
- }, onClick: handleTargetClick }, value.displayName || value.name));
93
+ }, onClick: handleTargetClick, children: value.displayName || value.name }));
98
94
  }
99
- return (React.createElement(NestedContext.Provider, { value: true },
100
- React.createElement(Dialog, { model: model },
101
- React.createElement(Dialog.Target, { as: ButtonHyperLink, className: "token symbol", onClick: handleTargetClick, style: {
102
- border: 'none',
103
- background: 'transparent',
104
- fontSize: 'inherit',
105
- fontFamily: 'inherit',
106
- }, "aria-haspopup": "true" }, value.displayName || value.name),
107
- renderTypeParameters(value.typeParameters),
108
- React.createElement(Dialog.Popper, null,
109
- React.createElement(Dialog.Card, { maxHeight: "50vh", maxWidth: "90vh", minWidth: '600px' },
110
- React.createElement(Dialog.CloseIcon, null),
111
- React.createElement(Dialog.Heading, null,
112
- value.name,
113
- " "),
114
- breadcrumbsList.length > 1 && (React.createElement(Breadcrumbs, { "aria-label": "Breadcrumbs" },
115
- React.createElement(Breadcrumbs.List, { paddingX: "xxs" }, breadcrumbsList.map((item, index) => {
116
- return (React.createElement(React.Fragment, null, index === breadcrumbsList.length - 1 ? (React.createElement(Breadcrumbs.CurrentItem, { key: index }, item)) : (React.createElement(Breadcrumbs.Item, { key: index },
117
- React.createElement(Breadcrumbs.Link, { onClick: e => handleBreadcrumbClick(e, index), href: '#' }, item)))));
118
- })))),
119
- React.createElement(Dialog.Body, null,
120
- React.createElement(RenderContext.Provider, { value: "table" },
121
- React.createElement(IndentLevelContext.Provider, { value: 0 }, symbol ? (React.createElement(SymbolDoc, { name: breadcrumbsList.length >= 1
122
- ? breadcrumbsList[breadcrumbsList.length - 1]
123
- : value.name, headingStart: 3, hideHeading: true })) : (React.createElement(React.Fragment, null,
124
- React.createElement("p", null, "Basic type information:"),
125
- React.createElement("pre", null,
126
- React.createElement("code", null, value.name))))))))))));
95
+ return (_jsx(NestedContext.Provider, { value: true, children: _jsxs(Dialog, { model: model, children: [_jsx(Dialog.Target, { as: ButtonHyperLink, className: "token symbol", onClick: handleTargetClick, style: {
96
+ border: 'none',
97
+ background: 'transparent',
98
+ fontSize: 'inherit',
99
+ fontFamily: 'inherit',
100
+ }, "aria-haspopup": "true", children: value.displayName || value.name }), renderTypeParameters(value.typeParameters), _jsx(Dialog.Popper, { children: _jsxs(Dialog.Card, { maxHeight: "50vh", maxWidth: "90vh", minWidth: '600px', children: [_jsx(Dialog.CloseIcon, {}), _jsxs(Dialog.Heading, { children: [value.name, " "] }), breadcrumbsList.length > 1 && (_jsx(Breadcrumbs, { "aria-label": "Breadcrumbs", children: _jsx(Breadcrumbs.List, { paddingX: "xxs", children: breadcrumbsList.map((item, index) => {
101
+ return (_jsx(_Fragment, { children: index === breadcrumbsList.length - 1 ? (_jsx(Breadcrumbs.CurrentItem, { children: item }, index)) : (_jsx(Breadcrumbs.Item, { children: _jsx(Breadcrumbs.Link, { onClick: e => handleBreadcrumbClick(e, index), href: '#', children: item }) }, index)) }));
102
+ }) }) })), _jsx(Dialog.Body, { children: _jsx(RenderContext.Provider, { value: "table", children: _jsx(IndentLevelContext.Provider, { value: 0, children: symbol ? (_jsx(SymbolDoc, { name: breadcrumbsList.length >= 1
103
+ ? breadcrumbsList[breadcrumbsList.length - 1]
104
+ : value.name, headingStart: 3, hideHeading: true })) : (_jsxs(_Fragment, { children: [_jsx("p", { children: "Basic type information:" }), _jsx("pre", { children: _jsx("code", { children: value.name }) })] })) }) }) })] }) })] }) }));
127
105
  };
128
106
  function createColor(color) {
129
107
  return {
@@ -161,15 +139,12 @@ const StyledSymbolDoc = styled('div')({
161
139
  function getSymbolDocChildren(doc, meta, name) {
162
140
  if (!doc) {
163
141
  // We're within a symbol doc context, but there's no information, so we still want to render the basic type information
164
- return (React.createElement(React.Fragment, null,
165
- React.createElement("p", null, "Basic type information:"),
166
- React.createElement("pre", null,
167
- React.createElement("code", null, name))));
142
+ return (_jsxs(_Fragment, { children: [_jsx("p", { children: "Basic type information:" }), _jsx("pre", { children: _jsx("code", { children: name }) })] }));
168
143
  }
169
144
  if (doc && doc.type) {
170
- return React.createElement(Value, { value: doc.type, doc: doc, meta: meta });
145
+ return _jsx(Value, { value: doc.type, doc: doc, meta: meta });
171
146
  }
172
- return React.createElement("div", null, "Not found");
147
+ return _jsx("div", { children: "Not found" });
173
148
  }
174
149
  function findDoc({ name, fileName }) {
175
150
  const doc = (docs || []).find(d => {
@@ -198,7 +173,7 @@ export const SymbolValue = (props) => {
198
173
  */
199
174
  export const SymbolDescription = (props) => {
200
175
  const doc = useDoc(props);
201
- return doc ? React.createElement(MdxJSToJSX, null, doc.description) : null;
176
+ return doc ? _jsx(MdxJSToJSX, { children: doc.description }) : null;
202
177
  };
203
178
  /**
204
179
  * Renders an exported symbol as a doc object. This will render JSDoc tags, description and setup
@@ -232,15 +207,11 @@ export const SymbolDoc = ({ name, fileName, headingStart = 3, hideDescription =
232
207
  'function',
233
208
  'callExpression',
234
209
  ].includes((doc === null || doc === void 0 ? void 0 : doc.type.kind) || 'notFound');
235
- const contents = requiresCodeWrapper ? (React.createElement("code", { style: { display: 'block' } }, children)) : (children);
236
- const symbolDocContents = (React.createElement(StyledSymbolDoc, { ...elemProps },
237
- React.createElement(HeadingLevelContext.Provider, { value: headingStart },
238
- !hideHeading && React.createElement(Heading, { id: `${name.toLowerCase()}-api` }, name),
239
- !hideDescription && doc && (React.createElement(MdxJSToJSX, null, descriptionOverride || doc.description)),
240
- contents)));
241
- return symbolDocBreadcrumb === undefined ? (React.createElement(SymbolDocWrapper, null, symbolDocContents)) : (symbolDocContents);
210
+ const contents = requiresCodeWrapper ? (_jsx("code", { style: { display: 'block' }, children: children })) : (children);
211
+ const symbolDocContents = (_jsx(StyledSymbolDoc, { ...elemProps, children: _jsxs(HeadingLevelContext.Provider, { value: headingStart, children: [!hideHeading && _jsx(Heading, { id: `${name.toLowerCase()}-api`, children: name }), !hideDescription && doc && (_jsx(MdxJSToJSX, { children: descriptionOverride || doc.description })), contents] }) }));
212
+ return symbolDocBreadcrumb === undefined ? (_jsx(SymbolDocWrapper, { children: symbolDocContents })) : (symbolDocContents);
242
213
  };
243
214
  const SymbolDocWrapper = ({ children }) => {
244
215
  const [breadcrumbsList, updateBreadcrumbs] = React.useState([]);
245
- return (React.createElement(SymbolDocBreadcrumbsContext.Provider, { value: { breadcrumbsList, updateBreadcrumbs } }, children));
216
+ return (_jsx(SymbolDocBreadcrumbsContext.Provider, { value: { breadcrumbsList, updateBreadcrumbs }, children: children }));
246
217
  };
@@ -1,8 +1,6 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { registerWidget, Value } from '../Value';
3
3
  import { RenderContext } from '../widgetUtils';
4
4
  registerWidget('array', ({ value }) => {
5
- return (React.createElement(RenderContext.Provider, { value: "inline" },
6
- React.createElement(Value, { value: value.value }),
7
- React.createElement("span", { className: "token punctuation" }, "[]")));
5
+ return (_jsxs(RenderContext.Provider, { value: "inline", children: [_jsx(Value, { value: value.value }), _jsx("span", { className: "token punctuation", children: "[]" })] }));
8
6
  });
@@ -1,20 +1,8 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import { registerWidget, Value } from '../Value';
3
4
  import { IndentLevelContext, indent } from '../widgetUtils';
4
5
  registerWidget('callExpression', ({ value }) => {
5
6
  const level = React.useContext(IndentLevelContext);
6
- return (React.createElement(React.Fragment, null,
7
- value.name && React.createElement(Value, { value: value.name }),
8
- React.createElement("span", { className: "token punctuation" }, "("),
9
- React.createElement(React.Fragment, null, value.parameters.map((p, index) => (React.createElement(React.Fragment, { key: index },
10
- index !== 0 && React.createElement("span", { className: "token punctuation" }, ", "),
11
- value.parameters.length > 1 && (React.createElement(React.Fragment, null,
12
- React.createElement("br", null),
13
- indent(level + 1))),
14
- value.parameters.length > 1 ? (React.createElement(IndentLevelContext.Provider, { value: level + 1 },
15
- React.createElement(Value, { value: p }))) : (React.createElement(Value, { value: p })),
16
- index === value.parameters.length - 1 && index > 0 && (React.createElement(React.Fragment, null,
17
- React.createElement("br", null),
18
- indent(level))))))),
19
- React.createElement("span", { className: "token punctuation" }, ")")));
7
+ return (_jsxs(_Fragment, { children: [value.name && _jsx(Value, { value: value.name }), _jsx("span", { className: "token punctuation", children: "(" }), _jsx(_Fragment, { children: value.parameters.map((p, index) => (_jsxs(React.Fragment, { children: [index !== 0 && _jsx("span", { className: "token punctuation", children: ", " }), value.parameters.length > 1 && (_jsxs(_Fragment, { children: [_jsx("br", {}), indent(level + 1)] })), value.parameters.length > 1 ? (_jsx(IndentLevelContext.Provider, { value: level + 1, children: _jsx(Value, { value: p }) })) : (_jsx(Value, { value: p })), index === value.parameters.length - 1 && index > 0 && (_jsxs(_Fragment, { children: [_jsx("br", {}), indent(level)] }))] }, index))) }), _jsx("span", { className: "token punctuation", children: ")" })] }));
20
8
  });
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { colors } from '@workday/canvas-kit-react/tokens';
3
3
  import { ColorPicker } from '@workday/canvas-kit-preview-react/color-picker';
4
4
  import { registerWidget } from '../Value';
5
5
  registerWidget('canvasColor', () => {
6
- return (React.createElement(ColorPicker, { style: { width: 170 }, colorSet: Object.values(colors), onColorChange: () => { } }));
6
+ return (_jsx(ColorPicker, { style: { width: 170 }, colorSet: Object.values(colors), onColorChange: () => { } }));
7
7
  });
@@ -1,9 +1,7 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { PropertiesTable, registerWidget } from '../Value';
3
3
  import { Heading } from '../widgetUtils';
4
4
  registerWidget('component', ({ value, doc, meta }) => {
5
5
  var _a;
6
- return (React.createElement(React.Fragment, null,
7
- React.createElement(Heading, { id: `${(_a = value.displayName) === null || _a === void 0 ? void 0 : _a.toLowerCase()}-props-api`, headingOffset: 1 }, "Props"),
8
- React.createElement(PropertiesTable, { properties: value.props })));
6
+ return (_jsxs(_Fragment, { children: [_jsx(Heading, { id: `${(_a = value.displayName) === null || _a === void 0 ? void 0 : _a.toLowerCase()}-props-api`, headingOffset: 1, children: "Props" }), _jsx(PropertiesTable, { properties: value.props })] }));
9
7
  });
@@ -1,15 +1,5 @@
1
- import React from 'react';
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { registerWidget, Value } from '../Value';
3
3
  registerWidget('conditional', ({ value }) => {
4
- return (React.createElement(React.Fragment, null,
5
- React.createElement(Value, { value: value.check }),
6
- " ",
7
- React.createElement("span", { className: "token keyword" }, "extends"),
8
- ' ',
9
- React.createElement(Value, { value: value.extends }),
10
- " ? ",
11
- React.createElement(Value, { value: value.trueType }),
12
- " :",
13
- ' ',
14
- React.createElement(Value, { value: value.falseType })));
4
+ return (_jsxs(_Fragment, { children: [_jsx(Value, { value: value.check }), " ", _jsx("span", { className: "token keyword", children: "extends" }), ' ', _jsx(Value, { value: value.extends }), " ? ", _jsx(Value, { value: value.trueType }), " :", ' ', _jsx(Value, { value: value.falseType })] }));
15
5
  });