@xyd-js/components 0.1.0-xyd.10 → 0.1.0-xyd.13

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 (352) hide show
  1. package/.idea/git_toolbox_blame.xml +6 -0
  2. package/.idea/modules.xml +8 -0
  3. package/.idea/vcs.xml +6 -0
  4. package/.idea/xyd-components.iml +12 -0
  5. package/CHANGELOG.md +22 -0
  6. package/TODO.md +1 -0
  7. package/content.ts +0 -2
  8. package/dist/CTABanner-BD4wweO5.js +2 -0
  9. package/dist/CTABanner-BD4wweO5.js.map +1 -0
  10. package/dist/CTABanner-DLG0_gv8.js +2 -0
  11. package/dist/CTABanner-DLG0_gv8.js.map +1 -0
  12. package/dist/CTABanner-DpPtA-FL.js +2 -0
  13. package/dist/CTABanner-DpPtA-FL.js.map +1 -0
  14. package/dist/CodeSample--qfqZ1hL.js +2 -0
  15. package/dist/CodeSample--qfqZ1hL.js.map +1 -0
  16. package/dist/CodeSample-CqFaFwwz.js +2 -0
  17. package/dist/CodeSample-CqFaFwwz.js.map +1 -0
  18. package/dist/CodeSample-GbqwRbcO.js +2 -0
  19. package/dist/CodeSample-GbqwRbcO.js.map +1 -0
  20. package/dist/HomeView-BZdY0g_7.js +2 -0
  21. package/dist/{HomeView-ACBdUgyz.js.map → HomeView-BZdY0g_7.js.map} +1 -1
  22. package/dist/HomeView-C_mEMzjV.js +2 -0
  23. package/dist/{HomeView-B0ATNUF1.js.map → HomeView-C_mEMzjV.js.map} +1 -1
  24. package/dist/HomeView-RATm-3zT.js +2 -0
  25. package/dist/{HomeView-CHSb4HL6.js.map → HomeView-RATm-3zT.js.map} +1 -1
  26. package/dist/Icon-BkXdTctK.js +2 -0
  27. package/dist/Icon-BkXdTctK.js.map +1 -0
  28. package/dist/Icon-BoKcRZAF.js +2 -0
  29. package/dist/Icon-BoKcRZAF.js.map +1 -0
  30. package/dist/Icon-CouPZRkJ.js +2 -0
  31. package/dist/Icon-CouPZRkJ.js.map +1 -0
  32. package/dist/Text-B-E3eaWW.js +2 -0
  33. package/dist/Text-B-E3eaWW.js.map +1 -0
  34. package/dist/Text-B5Ba_pci.js +2 -0
  35. package/dist/Text-B5Ba_pci.js.map +1 -0
  36. package/dist/Text-QH4jjPUM.js +2 -0
  37. package/dist/Text-QH4jjPUM.js.map +1 -0
  38. package/dist/Update-BlhP2VFR.js +2 -0
  39. package/dist/Update-BlhP2VFR.js.map +1 -0
  40. package/dist/Update-CMM38Snc.js +2 -0
  41. package/dist/Update-CMM38Snc.js.map +1 -0
  42. package/dist/Update-D5e_yqty.js +2 -0
  43. package/dist/Update-D5e_yqty.js.map +1 -0
  44. package/dist/VideoGuide-C5aW4OXW.js +2 -0
  45. package/dist/VideoGuide-C5aW4OXW.js.map +1 -0
  46. package/dist/VideoGuide-CoQXlHjQ.js +2 -0
  47. package/dist/VideoGuide-CoQXlHjQ.js.map +1 -0
  48. package/dist/VideoGuide-CwkedH8b.js +2 -0
  49. package/dist/VideoGuide-CwkedH8b.js.map +1 -0
  50. package/dist/_rollupPluginBabelHelpers-9wcO9jN6.js +4 -0
  51. package/dist/_rollupPluginBabelHelpers-9wcO9jN6.js.map +1 -0
  52. package/dist/_rollupPluginBabelHelpers-CiqSP2w-.js +4 -0
  53. package/dist/_rollupPluginBabelHelpers-CiqSP2w-.js.map +1 -0
  54. package/dist/_rollupPluginBabelHelpers-DmvUE1MU.js +4 -0
  55. package/dist/_rollupPluginBabelHelpers-DmvUE1MU.js.map +1 -0
  56. package/dist/brand.js +1 -1
  57. package/dist/brand.js.map +1 -1
  58. package/dist/coder/themes/cosmo-light.js.map +1 -1
  59. package/dist/coder.d.ts +29 -9
  60. package/dist/coder.js +1 -1
  61. package/dist/coder.js.map +1 -1
  62. package/dist/content.d.ts +264 -201
  63. package/dist/content.js +1 -1
  64. package/dist/content.js.map +1 -1
  65. package/dist/index.css +260 -210
  66. package/dist/layouts.d.ts +20 -21
  67. package/dist/layouts.js +1 -1
  68. package/dist/layouts.js.map +1 -1
  69. package/dist/pages.js +1 -1
  70. package/dist/pages.js.map +1 -1
  71. package/dist/system.d.ts +10 -0
  72. package/dist/system.js +2 -0
  73. package/dist/system.js.map +1 -0
  74. package/dist/tslib.es6-Bb9zBh0L.js +2 -0
  75. package/dist/{tslib.es6-BBkx4Se1.js.map → tslib.es6-Bb9zBh0L.js.map} +1 -1
  76. package/dist/tslib.es6-Bd9lzVn6.js +2 -0
  77. package/dist/{tslib.es6-BF6ZLEXa.js.map → tslib.es6-Bd9lzVn6.js.map} +1 -1
  78. package/dist/tslib.es6-DwnOrHRg.js +2 -0
  79. package/dist/{tslib.es6-BOZCDgb8.js.map → tslib.es6-DwnOrHRg.js.map} +1 -1
  80. package/dist/views.js +1 -1
  81. package/dist/writer.d.ts +409 -77
  82. package/dist/writer.js +1 -1
  83. package/dist/writer.js.map +1 -1
  84. package/docs/.nojekyll +1 -0
  85. package/docs/assets/hierarchy.js +1 -0
  86. package/docs/assets/highlight.css +22 -0
  87. package/docs/assets/icons.js +18 -0
  88. package/docs/assets/icons.svg +1 -0
  89. package/docs/assets/main.js +60 -0
  90. package/docs/assets/navigation.js +1 -0
  91. package/docs/assets/search.js +1 -0
  92. package/docs/assets/style.css +1640 -0
  93. package/docs/functions/GuideCard.html +6 -0
  94. package/docs/hierarchy.html +1 -0
  95. package/docs/index.html +2 -0
  96. package/docs/interfaces/GuideCardProps.html +18 -0
  97. package/docs/modules.html +1 -0
  98. package/index.ts +0 -1
  99. package/package.json +10 -6
  100. package/project.json +677 -0
  101. package/rollup.config.js +30 -20
  102. package/src/brand/Button/Button.styles.tsx +0 -3
  103. package/src/brand/CTABanner/CTABanner.styles.tsx +2 -4
  104. package/src/brand/Footer/Footer.styles.tsx +0 -3
  105. package/src/coder/Code/Code.styles.tsx +132 -33
  106. package/src/coder/Code/Code.tsx +129 -38
  107. package/src/coder/Code/CodeLoader.tsx +3 -3
  108. package/src/coder/Code/annotations.tsx +28 -8
  109. package/src/coder/Code/highlight.ts +38 -0
  110. package/src/coder/Code/index.ts +2 -1
  111. package/src/coder/CodeCopy/CodeCopy.styles.tsx +13 -11
  112. package/src/coder/CodeCopy/CodeCopy.tsx +5 -3
  113. package/src/coder/CodeSample/CodeSample.tsx +83 -27
  114. package/src/coder/CodeTabs/CodeTabs.styles.tsx +111 -94
  115. package/src/coder/CodeTabs/CodeTabs.tsx +69 -51
  116. package/src/coder/CodeTheme/CodeTheme.tsx +89 -49
  117. package/src/coder/CodeTheme/index.ts +0 -1
  118. package/src/coder/CoderProvider.tsx +26 -0
  119. package/src/coder/index.ts +8 -4
  120. package/src/content/ContentDecoator.styles.tsx +113 -0
  121. package/src/content/ContentDecorator.tsx +17 -0
  122. package/src/content/GridDecorator.styles.tsx +67 -0
  123. package/src/content/GridDecorator.tsx +21 -0
  124. package/src/content/ReactContent.tsx +575 -0
  125. package/src/content/index.ts +10 -2
  126. package/src/icons/index.ts +0 -0
  127. package/src/kit/Loader/Loader.styles.tsx +53 -0
  128. package/src/kit/Loader/Loader.tsx +22 -0
  129. package/src/kit/index.ts +1 -0
  130. package/src/layouts/LayoutPrimary/LayoutPrimary.styles.tsx +270 -306
  131. package/src/layouts/LayoutPrimary/LayoutPrimary.tsx +171 -91
  132. package/src/layouts/LayoutPrimary/index.ts +0 -2
  133. package/src/layouts/index.ts +0 -7
  134. package/src/system/SearchButton/SearchButton.styles.tsx +86 -0
  135. package/src/system/SearchButton/SearchButton.tsx +116 -0
  136. package/src/system/SearchButton/index.ts +1 -0
  137. package/src/system/index.ts +1 -0
  138. package/src/writer/Anchor/Anchor.styles.tsx +11 -0
  139. package/src/{content → writer}/Anchor/Anchor.tsx +20 -22
  140. package/src/writer/Anchor/index.tsx +1 -0
  141. package/src/writer/Badge/Badge.styles.tsx +37 -27
  142. package/src/writer/Badge/Badge.tsx +34 -48
  143. package/src/writer/Banner/Banner.styles.tsx +91 -0
  144. package/src/writer/Banner/Banner.tsx +70 -0
  145. package/src/writer/Banner/index.ts +1 -0
  146. package/src/writer/Blockquote/Blockquote.styles.tsx +6 -4
  147. package/src/writer/Blockquote/Blockquote.tsx +5 -2
  148. package/src/writer/Breadcrumbs/Breadcrumbs.styles.ts +25 -25
  149. package/src/writer/Breadcrumbs/Breadcrumbs.tsx +18 -12
  150. package/src/writer/Button/Button.styles.tsx +137 -0
  151. package/src/writer/Button/Button.tsx +75 -0
  152. package/src/writer/Button/index.ts +2 -0
  153. package/src/writer/Callout/Callout.styles.tsx +35 -42
  154. package/src/writer/Callout/Callout.tsx +30 -15
  155. package/src/writer/Card/Card.styles.tsx +47 -0
  156. package/src/writer/Card/Card.tsx +69 -0
  157. package/src/writer/Card/index.ts +1 -0
  158. package/src/writer/Code/Code.styles.tsx +12 -11
  159. package/src/writer/Code/Code.tsx +6 -3
  160. package/src/writer/ColorSchemeButton/ColorSchemeButton.tsx +172 -0
  161. package/src/writer/ColorSchemeButton/index.ts +1 -0
  162. package/src/writer/Details/Details.styles.tsx +87 -98
  163. package/src/writer/Details/Details.tsx +65 -44
  164. package/src/writer/Example/index.tsx +5 -0
  165. package/src/writer/GuideCard/GuideCard.styles.tsx +100 -103
  166. package/src/writer/GuideCard/GuideCard.tsx +72 -37
  167. package/src/writer/Heading/Heading.styles.tsx +76 -60
  168. package/src/writer/Heading/Heading.tsx +92 -22
  169. package/src/writer/Hr/Hr.styles.tsx +3 -1
  170. package/src/writer/Hr/Hr.tsx +2 -5
  171. package/src/writer/Icon/Icon.tsx +48 -0
  172. package/src/writer/Icon/index.ts +1 -0
  173. package/src/writer/Image/Image.styles.tsx +9 -0
  174. package/src/writer/Image/Image.tsx +19 -0
  175. package/src/writer/Image/index.ts +1 -0
  176. package/src/writer/List/List.styles.tsx +47 -0
  177. package/src/writer/List/List.tsx +29 -0
  178. package/src/writer/List/index.ts +4 -0
  179. package/src/writer/NavLinks/NavLinks.styles.ts +26 -26
  180. package/src/writer/NavLinks/NavLinks.tsx +65 -18
  181. package/src/writer/Pre/Pre.styles.tsx +8 -6
  182. package/src/writer/Pre/Pre.tsx +3 -2
  183. package/src/writer/Steps/Steps.styles.tsx +27 -24
  184. package/src/writer/Steps/Steps.tsx +38 -8
  185. package/src/writer/Table/Table.styles.tsx +65 -34
  186. package/src/writer/Table/Table.tsx +121 -11
  187. package/src/writer/Table/index.ts +0 -11
  188. package/src/writer/Tabs/Tabs.styles.tsx +51 -55
  189. package/src/writer/Tabs/Tabs.tsx +30 -23
  190. package/src/writer/Text/Text.styles.tsx +66 -0
  191. package/src/writer/Text/Text.tsx +79 -0
  192. package/src/writer/Text/index.ts +3 -0
  193. package/src/writer/TocCard/TocCard.module.css +44 -0
  194. package/src/writer/TocCard/TocCard.tsx +42 -0
  195. package/src/writer/TocCard/index.ts +3 -0
  196. package/src/writer/UnderlineNav/Tabs.tsx +51 -0
  197. package/src/writer/UnderlineNav/TabsPrimary.styles.tsx +184 -0
  198. package/src/writer/UnderlineNav/TabsPrimary.tsx +209 -0
  199. package/src/writer/UnderlineNav/TabsSecondary.styles.tsx +77 -0
  200. package/src/writer/UnderlineNav/TabsSecondary.tsx +171 -0
  201. package/src/writer/UnderlineNav/UnderlineNav.styles.tsx +165 -31
  202. package/src/writer/UnderlineNav/UnderlineNav.tsx +257 -22
  203. package/src/writer/UnderlineNav/index.ts +2 -1
  204. package/src/writer/UnderlineNav/useValueChange.ts +60 -0
  205. package/src/writer/Update/Update.styles.tsx +33 -0
  206. package/src/writer/Update/Update.tsx +37 -0
  207. package/src/writer/Update/index.ts +1 -0
  208. package/src/writer/VideoGuide/VideoGuide.module.css +105 -0
  209. package/src/writer/VideoGuide/VideoGuide.tsx +75 -0
  210. package/src/writer/VideoGuide/index.ts +1 -0
  211. package/src/writer/index.ts +23 -1
  212. package/tsconfig.json +9 -3
  213. package/types.d.ts +50 -0
  214. package/writer.ts +1 -1
  215. package/dist/CTABanner-4FVIoaTR.js +0 -2
  216. package/dist/CTABanner-4FVIoaTR.js.map +0 -1
  217. package/dist/CTABanner-BQx2SLf8.js +0 -2
  218. package/dist/CTABanner-BQx2SLf8.js.map +0 -1
  219. package/dist/CTABanner-C6afsXoE.js +0 -2
  220. package/dist/CTABanner-C6afsXoE.js.map +0 -1
  221. package/dist/CTABanner-CEKs-Hb-.js +0 -2
  222. package/dist/CTABanner-CEKs-Hb-.js.map +0 -1
  223. package/dist/CTABanner-CUNcTr6s.js +0 -2
  224. package/dist/CTABanner-CUNcTr6s.js.map +0 -1
  225. package/dist/CTABanner-D02aIAsD.js +0 -2
  226. package/dist/CTABanner-D02aIAsD.js.map +0 -1
  227. package/dist/CTABanner-Dm3tUG3I.js +0 -2
  228. package/dist/CTABanner-Dm3tUG3I.js.map +0 -1
  229. package/dist/CTABanner-MCOcVowa.js +0 -2
  230. package/dist/CTABanner-MCOcVowa.js.map +0 -1
  231. package/dist/CTABanner-X6K49gSr.js +0 -2
  232. package/dist/CTABanner-X6K49gSr.js.map +0 -1
  233. package/dist/CodeSample-B9VUhTKF.js +0 -2
  234. package/dist/CodeSample-B9VUhTKF.js.map +0 -1
  235. package/dist/CodeSample-BSXeFy0x.js +0 -2
  236. package/dist/CodeSample-BSXeFy0x.js.map +0 -1
  237. package/dist/CodeSample-BwP208sQ.js +0 -2
  238. package/dist/CodeSample-BwP208sQ.js.map +0 -1
  239. package/dist/CodeSample-CK-CQYrV.js +0 -2
  240. package/dist/CodeSample-CK-CQYrV.js.map +0 -1
  241. package/dist/CodeSample-CUemtj_W.js +0 -2
  242. package/dist/CodeSample-CUemtj_W.js.map +0 -1
  243. package/dist/CodeSample-D0iKih-A.js +0 -2
  244. package/dist/CodeSample-D0iKih-A.js.map +0 -1
  245. package/dist/CodeSample-D33vTa6M.js +0 -2
  246. package/dist/CodeSample-D33vTa6M.js.map +0 -1
  247. package/dist/CodeSample-DUSx2KBt.js +0 -2
  248. package/dist/CodeSample-DUSx2KBt.js.map +0 -1
  249. package/dist/CodeSample-P4yxkHPW.js +0 -2
  250. package/dist/CodeSample-P4yxkHPW.js.map +0 -1
  251. package/dist/HomeView-ACBdUgyz.js +0 -2
  252. package/dist/HomeView-B0ATNUF1.js +0 -2
  253. package/dist/HomeView-CHSb4HL6.js +0 -2
  254. package/dist/HomeView-COJrg8Ju.js +0 -2
  255. package/dist/HomeView-COJrg8Ju.js.map +0 -1
  256. package/dist/HomeView-Cun4apuy.js +0 -2
  257. package/dist/HomeView-Cun4apuy.js.map +0 -1
  258. package/dist/HomeView-D4DXEOOn.js +0 -2
  259. package/dist/HomeView-D4DXEOOn.js.map +0 -1
  260. package/dist/HomeView-DaH1PSBB.js +0 -2
  261. package/dist/HomeView-DaH1PSBB.js.map +0 -1
  262. package/dist/HomeView-O_lj2c2t.js +0 -2
  263. package/dist/HomeView-O_lj2c2t.js.map +0 -1
  264. package/dist/HomeView-_Nu2RcOM.js +0 -2
  265. package/dist/HomeView-_Nu2RcOM.js.map +0 -1
  266. package/dist/UnderlineNav-3-KptDYD.js +0 -2
  267. package/dist/UnderlineNav-3-KptDYD.js.map +0 -1
  268. package/dist/UnderlineNav-BCyB0G5d.js +0 -2
  269. package/dist/UnderlineNav-BCyB0G5d.js.map +0 -1
  270. package/dist/UnderlineNav-BEhDJk0H.js +0 -2
  271. package/dist/UnderlineNav-BEhDJk0H.js.map +0 -1
  272. package/dist/UnderlineNav-BqZ2xAp7.js +0 -2
  273. package/dist/UnderlineNav-BqZ2xAp7.js.map +0 -1
  274. package/dist/UnderlineNav-C2-4Vyj8.js +0 -2
  275. package/dist/UnderlineNav-C2-4Vyj8.js.map +0 -1
  276. package/dist/UnderlineNav-Co08Gykm.js +0 -2
  277. package/dist/UnderlineNav-Co08Gykm.js.map +0 -1
  278. package/dist/UnderlineNav-DC3UVmnZ.js +0 -2
  279. package/dist/UnderlineNav-DC3UVmnZ.js.map +0 -1
  280. package/dist/UnderlineNav-DsRYwuGB.js +0 -2
  281. package/dist/UnderlineNav-DsRYwuGB.js.map +0 -1
  282. package/dist/UnderlineNav-FbclXKUW.js +0 -2
  283. package/dist/UnderlineNav-FbclXKUW.js.map +0 -1
  284. package/dist/_rollupPluginBabelHelpers-BEouSrrZ.js +0 -2
  285. package/dist/_rollupPluginBabelHelpers-BEouSrrZ.js.map +0 -1
  286. package/dist/_rollupPluginBabelHelpers-BHehKRBq.js +0 -2
  287. package/dist/_rollupPluginBabelHelpers-BHehKRBq.js.map +0 -1
  288. package/dist/_rollupPluginBabelHelpers-Bunpz22T.js +0 -2
  289. package/dist/_rollupPluginBabelHelpers-Bunpz22T.js.map +0 -1
  290. package/dist/_rollupPluginBabelHelpers-CVblpRvU.js +0 -2
  291. package/dist/_rollupPluginBabelHelpers-CVblpRvU.js.map +0 -1
  292. package/dist/_rollupPluginBabelHelpers-CxmswfqM.js +0 -2
  293. package/dist/_rollupPluginBabelHelpers-CxmswfqM.js.map +0 -1
  294. package/dist/_rollupPluginBabelHelpers-D0XU6lDu.js +0 -2
  295. package/dist/_rollupPluginBabelHelpers-D0XU6lDu.js.map +0 -1
  296. package/dist/_rollupPluginBabelHelpers-DQJTK9EO.js +0 -2
  297. package/dist/_rollupPluginBabelHelpers-DQJTK9EO.js.map +0 -1
  298. package/dist/_rollupPluginBabelHelpers-DuRQdJ01.js +0 -2
  299. package/dist/_rollupPluginBabelHelpers-DuRQdJ01.js.map +0 -1
  300. package/dist/_rollupPluginBabelHelpers-tRAa4O0f.js +0 -2
  301. package/dist/_rollupPluginBabelHelpers-tRAa4O0f.js.map +0 -1
  302. package/dist/index-B0FncPxO.js +0 -2
  303. package/dist/index-B0FncPxO.js.map +0 -1
  304. package/dist/index-BEm-xkm-.js +0 -2
  305. package/dist/index-BEm-xkm-.js.map +0 -1
  306. package/dist/index-BHwtxG27.js +0 -2
  307. package/dist/index-BHwtxG27.js.map +0 -1
  308. package/dist/index-BTcmIG47.js +0 -2
  309. package/dist/index-BTcmIG47.js.map +0 -1
  310. package/dist/index-BbIMmTvo.js +0 -2
  311. package/dist/index-BbIMmTvo.js.map +0 -1
  312. package/dist/index-CNkHt1r7.js +0 -2
  313. package/dist/index-CNkHt1r7.js.map +0 -1
  314. package/dist/index-D0XuyFm7.js +0 -2
  315. package/dist/index-D0XuyFm7.js.map +0 -1
  316. package/dist/index-DBspcqWq.js +0 -2
  317. package/dist/index-DBspcqWq.js.map +0 -1
  318. package/dist/index-DVBO4gYE.js +0 -2
  319. package/dist/index-DVBO4gYE.js.map +0 -1
  320. package/dist/tslib.es6-BBkx4Se1.js +0 -2
  321. package/dist/tslib.es6-BF6ZLEXa.js +0 -2
  322. package/dist/tslib.es6-BOZCDgb8.js +0 -2
  323. package/dist/tslib.es6-CNVK7Xcu.js +0 -2
  324. package/dist/tslib.es6-CNVK7Xcu.js.map +0 -1
  325. package/dist/tslib.es6-Cjl5tesf.js +0 -2
  326. package/dist/tslib.es6-Cjl5tesf.js.map +0 -1
  327. package/dist/tslib.es6-DEH7Dkgy.js +0 -2
  328. package/dist/tslib.es6-DEH7Dkgy.js.map +0 -1
  329. package/dist/tslib.es6-DTeJ7dWi.js +0 -2
  330. package/dist/tslib.es6-DTeJ7dWi.js.map +0 -1
  331. package/dist/tslib.es6-U9-f6pA7.js +0 -2
  332. package/dist/tslib.es6-U9-f6pA7.js.map +0 -1
  333. package/dist/tslib.es6-cb69JjeS.js +0 -2
  334. package/dist/tslib.es6-cb69JjeS.js.map +0 -1
  335. package/src/content/Anchor/Anchor.styles.tsx +0 -5
  336. package/src/content/Anchor/index.tsx +0 -3
  337. package/src/content/Content/Content.styles.tsx +0 -9
  338. package/src/content/Content/Content.tsx +0 -13
  339. package/src/content/Content/index.tsx +0 -3
  340. package/src/content/Content.tsx +0 -179
  341. package/src/content/Subtitle/Subtitle.styles.ts +0 -8
  342. package/src/content/Subtitle/Subtitle.tsx +0 -12
  343. package/src/content/Subtitle/index.tsx +0 -3
  344. package/src/layouts/Layout.styles.tsx +0 -155
  345. package/src/layouts/Layout.tsx +0 -119
  346. package/src/ui/Loader/Loader.styles.tsx +0 -54
  347. package/src/ui/Loader/Loader.tsx +0 -26
  348. package/src/ui/index.ts +0 -1
  349. package/src/writer/Icon/index.tsx +0 -355
  350. package/src/writer/Table/TableV2.styles.tsx +0 -117
  351. package/src/writer/Table/TableV2.tsx +0 -83
  352. /package/src/{ui → kit}/TODO.md +0 -0
package/dist/writer.d.ts CHANGED
@@ -1,101 +1,269 @@
1
1
  import React, { ReactElement } from 'react';
2
2
 
3
+ declare const Anchor: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
4
+ newWindow?: boolean;
5
+ as?: React.ElementType;
6
+ } & React.RefAttributes<HTMLAnchorElement>>;
7
+
3
8
  interface BadgeProps {
9
+ /**
10
+ * The class name of the badge.
11
+ */
4
12
  className?: string;
13
+ /**
14
+ * The children of the badge.
15
+ */
5
16
  children?: React.ReactNode;
6
- size?: "sm";
7
- kind?: "warning" | "info";
8
- }
17
+ /**
18
+ * The size of the badge.
19
+ */
20
+ size?: "sm" | "xs";
21
+ /**
22
+ * The kind of the badge.
23
+ */
24
+ kind?: "warning" | "info" | "default";
25
+ }
26
+ /**
27
+ * Badge component is used to display a badge.
28
+ *
29
+ * @group Components
30
+ */
9
31
  declare function Badge({ className, children, size, kind }: BadgeProps): React.JSX.Element;
10
32
 
33
+ interface BannerProps {
34
+ children: React.ReactNode;
35
+ kind?: "secondary";
36
+ label?: string;
37
+ href?: string;
38
+ icon?: React.ReactNode | string;
39
+ }
40
+ declare function Banner(props: BannerProps): React.JSX.Element;
41
+ declare namespace Banner {
42
+ var Secondary: (props: BannerProps) => React.JSX.Element;
43
+ }
44
+
11
45
  interface BlockquoteProps {
46
+ className?: string;
12
47
  children: React.ReactNode;
13
48
  }
14
- declare function Blockquote({ children }: BlockquoteProps): React.JSX.Element;
49
+ declare function Blockquote({ className, children }: BlockquoteProps): React.JSX.Element;
15
50
 
16
51
  interface BreadcrumbsProps {
52
+ className?: string;
17
53
  items: {
18
54
  title: string;
19
55
  href?: string;
20
56
  }[];
21
57
  }
22
- declare function Breadcrumbs(props: BreadcrumbsProps): ReactElement;
58
+ declare function Breadcrumbs({ className, items }: BreadcrumbsProps): ReactElement;
59
+
60
+ interface ButtonProps {
61
+ children?: React.ReactNode;
62
+ kind?: "primary" | "secondary" | "tertiary" | undefined;
63
+ theme?: "ghost";
64
+ size?: "sm" | "md" | "lg";
65
+ className?: string;
66
+ onClick?: () => void;
67
+ disabled?: boolean;
68
+ icon?: React.ReactElement;
69
+ iconPosition?: "left" | "right";
70
+ href?: string;
71
+ }
72
+ declare function Button({ children, kind, theme, size, className, onClick, disabled, icon, iconPosition, href }: ButtonProps): React.JSX.Element;
23
73
 
74
+ /**
75
+ * Props for the Callout component
76
+ */
24
77
  interface CalloutProps {
78
+ /** Additional CSS class name to be applied to the callout */
79
+ className?: string;
80
+ /** Content to be displayed inside the callout */
25
81
  children: React.ReactNode;
26
82
  }
27
- declare function Callout({ children }: CalloutProps): React.JSX.Element;
83
+ /**
84
+ * A Callout component that displays important information or notices in a visually distinct way.
85
+ * It includes an info icon and a message area for content.
86
+ *
87
+ * @category Component
88
+ */
89
+ declare function Callout({ className, children }: CalloutProps): React.JSX.Element;
90
+
91
+ interface CardProps {
92
+ title: string;
93
+ href?: string;
94
+ link?: React.ElementType;
95
+ description?: string;
96
+ imgSrc?: string;
97
+ imgAlt?: string;
98
+ shadow?: "md";
99
+ }
100
+ declare function Card(props: CardProps): React.JSX.Element;
28
101
 
29
102
  interface CodeProps {
103
+ className?: string;
30
104
  children: React.ReactNode;
31
105
  }
32
- declare function Code({ children }: CodeProps): React.JSX.Element;
106
+ declare function Code({ className, children }: CodeProps): React.JSX.Element;
107
+
108
+ declare function ColorSchemeButton(): React.JSX.Element;
109
+ declare function useColorScheme(): (string | (() => void))[];
33
110
 
111
+ /**
112
+ * Base interface for all Details component variants
113
+ */
34
114
  interface BaseDetailsProps {
115
+ /** Content to be displayed inside the details element */
35
116
  children: React.ReactNode;
117
+ /** Label text displayed in the summary */
36
118
  label: string;
119
+ /** Optional icon element to be displayed in the summary */
37
120
  icon?: React.ReactElement;
121
+ /** Optional CSS class name for custom styling */
122
+ className?: string;
38
123
  }
124
+ /**
125
+ * Props for the tertiary variant of the Details component
126
+ */
39
127
  interface TertiaryDetailsProps extends BaseDetailsProps {
128
+ /** Specifies the tertiary variant */
40
129
  kind: "tertiary";
130
+ /** Title text or element displayed in the summary */
41
131
  title: string | React.ReactNode;
42
132
  }
133
+ /**
134
+ * Props for the secondary variant of the Details component
135
+ */
43
136
  interface SecondaryDetailsProps extends BaseDetailsProps {
137
+ /** Specifies the secondary variant */
44
138
  kind: "secondary";
139
+ /** Title text or element displayed in the summary */
45
140
  title: string | React.ReactNode;
46
141
  }
142
+ /**
143
+ * Props for the primary variant of the Details component
144
+ */
47
145
  interface PrimaryDetailsProps extends BaseDetailsProps {
146
+ /** Specifies the primary variant (default) */
48
147
  kind?: "primary";
49
148
  }
149
+ /** Union type of all possible Details component variants */
50
150
  type DetailsProps = PrimaryDetailsProps | SecondaryDetailsProps | TertiaryDetailsProps;
51
- declare function Details(props: DetailsProps): React.JSX.Element;
151
+ /**
152
+ * A collapsible details component that supports three variants: primary, secondary, and tertiary.
153
+ * Each variant has a different visual style and structure.
154
+ *
155
+ * @param props - The component props
156
+ * @returns A details element with collapsible content
157
+ *
158
+ * @category Component
159
+ */
160
+ declare function Details(props: DetailsProps): React.ReactElement;
52
161
 
162
+ /**
163
+ * Props for the GuideCard component
164
+ */
53
165
  interface GuideCardProps {
166
+ /** Content to be displayed in the card body */
54
167
  children: React.ReactNode;
168
+ /** URL the card links to */
55
169
  href: string;
170
+ /** Title displayed at the top of the card */
56
171
  title: string;
172
+ /** Optional icon displayed to the left of the content */
57
173
  icon?: React.ReactNode;
174
+ /** Visual style variant of the card */
58
175
  kind?: "secondary";
176
+ /** Size variant of the card */
59
177
  size?: "sm" | "md";
60
- }
61
- declare function GuideCard({ children, href, icon, title, kind, size, }: GuideCardProps): React.JSX.Element;
178
+ /** Additional CSS class names to apply to the card */
179
+ className?: string;
180
+ /** Additional props to pass to the link element */
181
+ as?: React.ElementType;
182
+ }
183
+ /**
184
+ * A card component that displays content with a title and optional icon.
185
+ * The entire card is clickable and links to the specified URL.
186
+ *
187
+ * @category Component
188
+ */
189
+ declare function GuideCard({ children, href, icon, title, kind, size, className, as, }: GuideCardProps): React.JSX.Element;
62
190
  declare namespace GuideCard {
63
191
  var List: ({ children }: {
64
192
  children: React.ReactNode;
65
193
  }) => React.JSX.Element;
66
194
  }
67
195
 
196
+ /**
197
+ * Props for the Heading component
198
+ * @interface HeadingProps
199
+ */
68
200
  interface HeadingProps {
201
+ /** Content to be rendered inside the heading */
69
202
  children: React.ReactNode;
203
+ /** The size of the heading (1-6, corresponding to h1-h6) */
70
204
  size: 1 | 2 | 3 | 4 | 5 | 6;
205
+ /** Optional HTML element to render as (div or span) */
71
206
  as?: "div" | "span";
207
+ /** Optional ID for the heading element */
72
208
  id?: string;
209
+ /** Optional visual style variant */
210
+ kind?: "muted";
211
+ /** Optional click handler */
73
212
  onClick?: () => void;
74
- }
75
- declare function Heading({ children, size, as, id, onClick }: HeadingProps): React.JSX.Element;
213
+ /** Optional additional CSS class name */
214
+ className?: string;
215
+ /** Optional active state */
216
+ active?: boolean;
217
+ /** Optional label for the heading */
218
+ label?: string;
219
+ /** Optional subtitle for the heading */
220
+ subtitle?: string;
221
+ /** Optional to hide the anchor icon */
222
+ noanchor?: boolean;
223
+ /** Optional ref for the heading element */
224
+ ref?: React.RefObject<HTMLHeadingElement>;
225
+ style?: React.CSSProperties;
226
+ }
227
+ /**
228
+ * A flexible heading component that can render as any heading level (h1-h6) or as a div/span
229
+ *
230
+ * @category Component
231
+ */
232
+ declare function Heading(props: HeadingProps): React.JSX.Element;
76
233
 
77
234
  interface HrProps {
235
+ }
236
+ declare function Hr(): React.JSX.Element;
237
+
238
+ declare const IconProvider: React.Context<{
239
+ iconSet: {};
240
+ }>;
241
+ interface IconProps {
242
+ name: string;
243
+ size?: number;
244
+ color?: string;
245
+ }
246
+ declare function Icon(props: IconProps): ReactElement | null;
247
+
248
+ interface ImageProps {
249
+ src: string;
250
+ alt: string;
251
+ style?: React.CSSProperties;
252
+ }
253
+ declare function Image(props: ImageProps): React.JSX.Element;
254
+
255
+ interface ListProps {
78
256
  children: React.ReactNode;
79
257
  }
80
- declare function Hr({ children }: HrProps): React.JSX.Element;
81
-
82
- declare function IconSessionReplay(): React.JSX.Element;
83
- declare function IconMetrics(): React.JSX.Element;
84
- declare function IconFunnels(): React.JSX.Element;
85
- declare function IconCode(): React.JSX.Element;
86
- declare function IconCustomEvent(): React.JSX.Element;
87
- declare function IconAlert(): React.JSX.Element;
88
- declare function IconBrowser(): React.JSX.Element;
89
- declare function IconREST(): React.JSX.Element;
90
- declare function IconGraphQL(): React.JSX.Element;
91
- declare function IconWebhooks(): React.JSX.Element;
92
- declare function IconJSBrowser(): React.JSX.Element;
93
- declare function IconJSNode(): React.JSX.Element;
94
- declare function IconStorybook(): React.JSX.Element;
95
- declare function IconReactRouter(): React.JSX.Element;
96
- declare function IconNextJS(): React.JSX.Element;
97
- declare function IconAppTemplate(): React.JSX.Element;
98
- declare function IconQuote(): React.JSX.Element;
258
+ declare function List({ children }: ListProps): React.JSX.Element;
259
+ declare namespace List {
260
+ var Item: typeof ListItem;
261
+ }
262
+ declare function ListOl({ children }: ListProps): React.JSX.Element;
263
+ interface ListItemProps {
264
+ children: React.ReactNode;
265
+ }
266
+ declare function ListItem({ children }: ListItemProps): React.JSX.Element;
99
267
 
100
268
  interface NavLinksProps {
101
269
  prev?: {
@@ -106,106 +274,270 @@ interface NavLinksProps {
106
274
  title: string;
107
275
  href: string;
108
276
  };
277
+ as?: React.ElementType;
278
+ className?: string;
109
279
  }
110
280
  declare function NavLinks(props: NavLinksProps): React.JSX.Element;
111
281
 
112
282
  interface PreProps {
113
283
  children: React.ReactNode;
284
+ className?: string;
114
285
  }
115
- declare function Pre({ children }: PreProps): React.JSX.Element;
286
+ declare function Pre({ children, className }: PreProps): React.JSX.Element;
116
287
 
288
+ /**
289
+ * Props for the Steps component
290
+ */
117
291
  interface StepsProps {
292
+ /** Content to be rendered inside the steps list */
118
293
  children: React.ReactNode;
294
+ /** Optional CSS class name to be applied to the steps container */
295
+ className?: string;
119
296
  }
120
- declare function Steps({ children }: StepsProps): React.JSX.Element;
297
+ /**
298
+ * Steps component that renders a numbered list of steps or stages.
299
+ * Use this component to display a sequence of steps in a process or workflow.
300
+ *
301
+ * @category Component
302
+ */
303
+ declare function Steps({ children, className }: StepsProps): React.JSX.Element;
121
304
  declare namespace Steps {
122
- var Item: ({ children }: StepsItemProps) => React.JSX.Element;
305
+ var Item: ({ children, className }: StepsItemProps) => React.JSX.Element;
123
306
  }
307
+ /**
308
+ * Props for the Steps.Item component
309
+ */
124
310
  interface StepsItemProps {
311
+ /** Content to be rendered inside the step item */
125
312
  children: React.ReactNode;
313
+ /** Optional CSS class name to be applied to the step item */
314
+ className?: string;
126
315
  }
127
316
 
317
+ /**
318
+ * Props for the Table component
319
+ */
128
320
  interface TableProps {
321
+ /** The content to be rendered inside the table */
129
322
  children: React.ReactNode;
130
- }
131
- declare function Table({ children }: TableProps): React.JSX.Element;
132
- declare namespace Table {
133
- var Th: ({ children }: TableThProps$1) => React.JSX.Element;
134
- var Tr: ({ children }: TableTrProps$1) => React.JSX.Element;
135
- var Td: ({ children }: TableTdProps$1) => React.JSX.Element;
136
- }
137
- interface TableThProps$1 {
138
- children: React.ReactNode;
139
- }
140
- interface TableTrProps$1 {
141
- children: React.ReactNode;
142
- }
143
- interface TableTdProps$1 {
144
- children: React.ReactNode;
145
- }
146
-
147
- interface TableV2Props {
148
- children: React.ReactNode;
323
+ /** Optional CSS class name to be applied to the table */
149
324
  className?: string;
150
325
  }
151
- declare function TableV2({ children, className }: TableV2Props): React.JSX.Element;
152
- declare namespace TableV2 {
326
+ /**
327
+ * A table component that provides a structured way to display tabular data.
328
+ * It supports custom styling through className prop and can contain various table elements.
329
+ *
330
+ * @category Component
331
+ */
332
+ declare function Table({ children, className }: TableProps): React.JSX.Element;
333
+ declare namespace Table {
153
334
  var Head: ({ children }: TableHeadProps) => React.JSX.Element;
154
335
  var Th: ({ children, numeric }: TableThProps) => React.JSX.Element;
155
336
  var Tr: ({ children }: TableTrProps) => React.JSX.Element;
337
+ var Body: ({ children }: TableBodyProps) => React.JSX.Element;
156
338
  var Td: ({ children, numeric, muted }: TableTdProps) => React.JSX.Element;
157
339
  var Cell: ({ children }: TableCellProps) => React.JSX.Element;
158
- var ModelCell: ({ children }: TableModelCellProps) => React.JSX.Element;
159
340
  }
341
+ /**
342
+ * Props for the TableHead component
343
+ */
160
344
  interface TableHeadProps {
345
+ /** The content to be rendered inside the table header */
161
346
  children: React.ReactNode;
162
347
  }
348
+ /**
349
+ * Props for the TableTh component
350
+ */
163
351
  interface TableThProps {
352
+ /** The content to be rendered inside the table header cell */
164
353
  children: React.ReactNode;
354
+ /** Whether the cell content should be right-aligned (for numeric values) */
165
355
  numeric?: boolean;
166
356
  }
357
+ /**
358
+ * Props for the TableTr component
359
+ */
167
360
  interface TableTrProps {
361
+ /** The content to be rendered inside the table row */
168
362
  children: React.ReactNode;
169
363
  }
364
+ /**
365
+ * Props for the TableBody component
366
+ */
367
+ interface TableBodyProps {
368
+ /** The content to be rendered inside the table body */
369
+ children: React.ReactNode;
370
+ }
371
+ /**
372
+ * Props for the TableTd component
373
+ */
170
374
  interface TableTdProps {
375
+ /** The content to be rendered inside the table cell */
171
376
  children: React.ReactNode;
377
+ /** Whether the cell content should be right-aligned (for numeric values) */
172
378
  numeric?: boolean;
379
+ /** Whether the cell should have a muted appearance */
173
380
  muted?: boolean;
174
381
  }
382
+ /**
383
+ * Props for the TableCell component
384
+ */
175
385
  interface TableCellProps {
386
+ /** The content to be rendered inside the table cell */
176
387
  children: React.ReactNode;
177
388
  }
178
- interface TableModelCellProps {
179
- children: React.ReactNode;
389
+
390
+ /**
391
+ * Available font sizes for the Text component
392
+ */
393
+ type TextFontSizes = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
394
+ /**
395
+ * Available text styles/kinds for the Text component
396
+ */
397
+ type TextKindTypes = "default" | "ghost" | "success" | "warn" | "error" | "primary" | "secondary";
398
+ /**
399
+ * Available font weights for the Text component
400
+ */
401
+ type TextFontWeights = "normal" | "bold" | "extra-bold";
402
+ /**
403
+ * Props for the Text component
404
+ */
405
+ interface TextProps {
406
+ /** Font size of the text */
407
+ size?: TextFontSizes;
408
+ /** Visual style/kind of the text */
409
+ kind?: TextKindTypes;
410
+ /** Font weight of the text */
411
+ weight?: TextFontWeights;
412
+ /** Content to be rendered inside the text component */
413
+ children?: React.ReactNode;
414
+ /** Additional CSS class name */
415
+ className?: string;
416
+ /** HTML id attribute */
417
+ id?: string;
418
+ /** Click event handler */
419
+ onClick?: () => void;
420
+ /** HTML tag to render the text as */
421
+ as?: "span" | "p";
422
+ }
423
+ /**
424
+ * A flexible text component that supports different sizes, styles, and weights.
425
+ *
426
+ * @category Component
427
+ */
428
+ declare function Text({ size, kind, weight, children, className, id, onClick, as }: TextProps): React.JSX.Element;
429
+
430
+ interface TocCardProps {
431
+ title: string;
432
+ description: string;
433
+ href: string;
434
+ className?: string;
435
+ icon?: string;
436
+ as?: React.ElementType;
180
437
  }
438
+ declare function TocCard({ title, description, href, className, icon, as }: TocCardProps): React.JSX.Element;
181
439
 
182
440
  interface TabsProps$1 {
441
+ /** Child elements to be rendered within the navigation */
183
442
  children: React.ReactNode;
184
- items: string[];
185
- tabIndex?: number;
443
+ /** The currently selected tab value */
444
+ value?: string;
445
+ /** Callback function triggered when a tab is selected */
446
+ onChange?: (value: string) => void;
447
+ /** Whether to enable sliding animation between tabs */
448
+ slide?: boolean;
449
+ /** Additional CSS class name for the component */
450
+ className?: string;
451
+ /** The variant of the navigation */
452
+ kind?: 'default' | 'secondary';
453
+ }
454
+ /**
455
+ * A navigation component that displays tabs with an underline indicator
456
+ *
457
+ * @category Component
458
+ */
459
+ declare function UnderlineNav({ children, value: controlledValue, onChange, slide, className, kind }: TabsProps$1): React.JSX.Element;
460
+ declare namespace UnderlineNav {
461
+ var Item: ({ children, value, href, as, defaultActive }: UnderlineNavItemProps) => React.JSX.Element;
462
+ var Content: ({ children, value, defaultActive }: UnderlineNavContentProps) => React.JSX.Element;
186
463
  }
187
- declare function Tabs({ children, items, tabIndex }: TabsProps$1): React.JSX.Element;
188
- declare namespace Tabs {
189
- var Content: ({ children, value }: {
190
- children: any;
191
- value: any;
192
- }) => React.JSX.Element;
464
+ /**
465
+ * Props for the UnderlineNav.Item component
466
+ */
467
+ interface UnderlineNavItemProps {
468
+ /** Child elements to be rendered within the navigation item */
469
+ children: React.ReactNode;
470
+ /** Unique identifier for the navigation item */
471
+ value: string;
472
+ /** URL for the navigation item link */
473
+ href?: string;
474
+ /** Custom component to render as the link element */
475
+ as?: React.ElementType;
476
+ /** Whether this item should be active by default */
477
+ defaultActive?: boolean;
478
+ }
479
+ /**
480
+ * Props for the UnderlineNav.Content component
481
+ */
482
+ interface UnderlineNavContentProps {
483
+ /** Child elements to be rendered within the content area */
484
+ children: React.ReactNode;
485
+ /** Unique identifier for the content section */
486
+ value: string;
487
+ /** Whether this content should be active by default */
488
+ defaultActive?: boolean;
193
489
  }
194
490
 
195
- interface TabsProps {
491
+ /**
492
+ * Props for the TabsPrimary component
493
+ */
494
+ interface TabsPrimaryProps {
495
+ /** Child elements to be rendered within the navigation */
196
496
  children: React.ReactNode;
197
- value: string;
198
- onChange: (value: string) => void;
497
+ /** The currently selected tab value */
498
+ value?: string;
499
+ /** Callback function triggered when a tab is selected */
500
+ onChange?: (value: string) => void;
501
+ /** Whether to enable sliding animation between tabs */
502
+ slide?: boolean;
503
+ /** Additional CSS class name for the component */
504
+ className?: string;
199
505
  }
200
- declare function UnderlineNav({ children, value, onChange }: TabsProps): React.JSX.Element;
201
- declare namespace UnderlineNav {
202
- var Item: ({ children, value, href }: UnderlineNavItemProps) => React.JSX.Element;
506
+
507
+ interface TabsSecondaryProps {
508
+ /** The currently selected tab value */
509
+ value?: string;
510
+ children: React.ReactNode;
511
+ className?: string;
512
+ onChange?: (value: string) => void;
203
513
  }
204
- interface UnderlineNavItemProps {
514
+
515
+ interface TabsPropsCommon {
516
+ kind?: 'secondary' | null;
517
+ }
518
+ type TabsProps<T> = T & TabsPropsCommon;
519
+ declare function Tabs(props: TabsProps<TabsSecondaryProps | TabsPrimaryProps>): React.JSX.Element;
520
+ declare namespace Tabs {
521
+ var Item: (props: any) => React.JSX.Element;
522
+ var Content: (props: any) => React.JSX.Element;
523
+ }
524
+
525
+ interface UpdateProps {
205
526
  children: React.ReactNode;
206
- value: string;
207
- href?: string;
527
+ version: string;
528
+ date?: string;
529
+ }
530
+ declare function Update(props: UpdateProps): React.JSX.Element;
531
+
532
+ declare function VideoGuide(): null;
533
+ declare namespace VideoGuide {
534
+ var Miniature: (props: VideoGuideMiniatureProps) => React.JSX.Element;
535
+ }
536
+ interface VideoGuideMiniatureProps {
537
+ videoSrc?: string;
538
+ description?: string;
539
+ className?: string;
208
540
  }
209
541
 
210
- export { Badge, Blockquote, Breadcrumbs, Callout, Code, Details, GuideCard, Heading, Hr, IconAlert, IconAppTemplate, IconBrowser, IconCode, IconCustomEvent, IconFunnels, IconGraphQL, IconJSBrowser, IconJSNode, IconMetrics, IconNextJS, IconQuote, IconREST, IconReactRouter, IconSessionReplay, IconStorybook, IconWebhooks, NavLinks, Pre, Steps, Table, TableV2, Tabs, UnderlineNav };
211
- export type { BadgeProps, BlockquoteProps, BreadcrumbsProps, CalloutProps, CodeProps, DetailsProps, HeadingProps, HrProps, NavLinksProps, PreProps, StepsProps, TableProps, TableTdProps$1 as TableTdProps, TableThProps$1 as TableThProps, TableTrProps$1 as TableTrProps, TabsProps$1 as TabsProps };
542
+ export { Anchor, Badge, Banner, Blockquote, Breadcrumbs, Button, Callout, Card, Code, ColorSchemeButton, Details, GuideCard, Heading, Hr, Icon, IconProvider, Image, List, ListOl, NavLinks, Pre, Steps, Table, Tabs, Text, TocCard, UnderlineNav, Update, VideoGuide, useColorScheme };
543
+ export type { BadgeProps, BannerProps, BlockquoteProps, BreadcrumbsProps, ButtonProps, CalloutProps, CodeProps, DetailsProps, HeadingProps, HrProps, NavLinksProps, PreProps, StepsProps };
package/dist/writer.js CHANGED
@@ -1,2 +1,2 @@
1
- export{B as Badge,a as Blockquote,C as Callout,b as Code,D as Details,H as Heading,c as Hr,h as IconAlert,r as IconAppTemplate,i as IconBrowser,f as IconCode,g as IconCustomEvent,e as IconFunnels,k as IconGraphQL,m as IconJSBrowser,n as IconJSNode,d as IconMetrics,q as IconNextJS,s as IconQuote,j as IconREST,p as IconReactRouter,I as IconSessionReplay,o as IconStorybook,l as IconWebhooks}from"./index-BbIMmTvo.js";import{_ as t}from"./tslib.es6-CNVK7Xcu.js";import u,{Fragment as _}from"react";import{ArrowRightIcon as v,ArrowLeftIcon as N}from"@radix-ui/react-icons";export{G as GuideCard,S as Steps,T as Table,a as TableV2,b as Tabs,U as UnderlineNav}from"./UnderlineNav-3-KptDYD.js";import"./_rollupPluginBabelHelpers-D0XU6lDu.js";import"@radix-ui/react-tabs";import"lucide-react";function y(e){var s=e.children,r=t(e,["children"]);return u.createElement("a",Object.assign({},r),s)}function E(e){return u.createElement("div",{className:"XydComponents-Component-writer-Breadcrumbs-Breadcrumbs_styles_ts__BreadcrumbsHost"},e.items.map((function(t,s){var r=s===e.items.length-1;return u.createElement(_,{key:t.href+t.title},s>0&&u.createElement(v,{className:"XydComponents-Component-writer-Breadcrumbs-Breadcrumbs_styles_ts__BreadcrumbsIcon"}),u.createElement("div",{className:"\n ".concat("XydComponents-Component-writer-Breadcrumbs-Breadcrumbs_styles_ts__BreadcrumbsItem","\n ").concat(r&&"XydComponents-Component-writer-Breadcrumbs-Breadcrumbs_styles_ts__BreadcrumbsItemActive","\n "),title:t.title},t.href&&!r?u.createElement(y,{href:t.href},t.title):t.title))})))}var x="XydComponents-Component-writer-NavLinks-NavLinks_styles_ts__NavLinksLink",L="XydComponents-Component-writer-NavLinks-NavLinks_styles_ts__NavLinksIcon";function w(e){var s=e.children,r=t(e,["children"]);return u.createElement("a",Object.assign({},r),s)}function X(e){return u.createElement("div",{className:"XydComponents-Component-writer-NavLinks-NavLinks_styles_ts__NavLinksHost"},e.prev?u.createElement(w,{href:e.prev.href,title:e.prev.title,className:x},u.createElement(N,{className:L}),e.prev.title):u.createElement("div",null),e.next&&u.createElement(w,{href:e.next.href,title:e.next.title,className:x},e.next.title,u.createElement(v,{className:L})))}function R(e){var t=e.children;return u.createElement("pre",{className:"XydComponents-Component-writer-Pre__PreHost"},t)}export{E as Breadcrumbs,X as NavLinks,R as Pre};
1
+ export{A as Anchor,c as Banner,B as Button,G as GuideCard,L as List,a as ListOl,S as Steps,T as Table,b as Tabs,U as UnderlineNav,V as VideoGuide}from"./VideoGuide-CoQXlHjQ.js";export{b as Badge,B as Blockquote,c as Callout,e as Card,C as Code,a as ColorSchemeButton,D as Details,d as Heading,H as Hr,I as Image,U as Update,u as useColorScheme}from"./Update-D5e_yqty.js";import{a as t}from"./tslib.es6-DwnOrHRg.js";import r,{Fragment as n}from"react";import{I as l}from"./Icon-BoKcRZAF.js";export{a as IconProvider}from"./Icon-BoKcRZAF.js";export{T as Text}from"./Text-QH4jjPUM.js";import"./_rollupPluginBabelHelpers-CiqSP2w-.js";import"radix-ui";import"lucide-react";function i(){return r.createElement("div",null,"TODO")}function s(e){var a=e.children,n=t(e,["children"]);return r.createElement("a",Object.assign({},n),a)}function o(e){var t=e.className,a=e.items;return r.createElement("xyd-breadcrumbs",{className:"".concat("bwgsk4h"," ").concat(t||"")},a.map(function(e,t){var l=t===a.length-1;return r.createElement(n,{key:e.href+e.title},t>0&&r.createElement(i,{part:"icon"}),r.createElement("div",{part:"item","data-active":l?"true":"false"},e.href&&!l?r.createElement(s,{href:e.href},e.title):e.title))}))}function m(e){var t=e.as||p;return r.createElement("xyd-navlinks",{className:"".concat("n1xhrk1"," ").concat(e.className||"")},e.prev?r.createElement(t,{href:e.prev.href,title:e.prev.title,part:"link"},r.createElement(h,{part:"icon"}),e.prev.title):r.createElement("div",null),e.next&&r.createElement(t,{href:e.next.href,title:e.next.title,part:"link"},e.next.title,r.createElement(f,{part:"icon"})))}function p(e){var a=e.children,n=t(e,["children"]);return r.createElement("a",Object.assign({},n),a)}function f(e){return r.createElement("svg",Object.assign({width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function h(e){return r.createElement("svg",Object.assign({width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function v(e){var t=e.children,a=e.className;return r.createElement("pre",{className:"".concat("p1vb39qj"," ").concat(a||"")},t)}var E="TocCard-module_TocCardHost__pT0XJ";function g(e){var t=e.title,a=e.description,n=e.href,c=e.className,i=e.icon,s=e.as||x;return r.createElement("xyd-toccard",{className:"".concat(E," ").concat(c||"")},r.createElement("div",{part:"container"},r.createElement(s,{part:"link",href:n,target:"_blank",rel:"noreferrer"},r.createElement("div",{part:"title-container"},r.createElement("div",{part:"title"},t),i&&r.createElement(l,{name:i,size:16})),r.createElement("div",{part:"description"},a))))}function x(e){var a=e.children,n=e.href,l=t(e,["children","href"]);return r.createElement("a",Object.assign({href:n},l),a)}export{o as Breadcrumbs,l as Icon,m as NavLinks,v as Pre,g as TocCard};
2
2
  //# sourceMappingURL=writer.js.map