@xyd-js/components 0.1.0-xyd.5 → 0.1.0-xyd.52

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 (530) 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 +378 -0
  6. package/LICENSE +21 -0
  7. package/TODO.md +1 -0
  8. package/content.ts +0 -2
  9. package/dist/CTABanner-4mVtgtg1.js +2 -0
  10. package/dist/CTABanner-4mVtgtg1.js.map +1 -0
  11. package/dist/CTABanner-8awHx3iq.js +2 -0
  12. package/dist/CTABanner-8awHx3iq.js.map +1 -0
  13. package/dist/CTABanner-BW4YN4-n.js +2 -0
  14. package/dist/CTABanner-BW4YN4-n.js.map +1 -0
  15. package/dist/CTABanner-C-6auNiO.js +2 -0
  16. package/dist/CTABanner-C-6auNiO.js.map +1 -0
  17. package/dist/CTABanner-CUwluXcM.js +2 -0
  18. package/dist/CTABanner-CUwluXcM.js.map +1 -0
  19. package/dist/CTABanner-CV8B6kGd.js +2 -0
  20. package/dist/CTABanner-CV8B6kGd.js.map +1 -0
  21. package/dist/CTABanner-CYq6zqzK.js +2 -0
  22. package/dist/CTABanner-CYq6zqzK.js.map +1 -0
  23. package/dist/CTABanner-CmOPCiBU.js +2 -0
  24. package/dist/CTABanner-CmOPCiBU.js.map +1 -0
  25. package/dist/CTABanner-DW0jn0tm.js +2 -0
  26. package/dist/CTABanner-DW0jn0tm.js.map +1 -0
  27. package/dist/CTABanner-D_vBSERH.js +2 -0
  28. package/dist/CTABanner-D_vBSERH.js.map +1 -0
  29. package/dist/CTABanner-RYtzotAc.js +2 -0
  30. package/dist/CTABanner-RYtzotAc.js.map +1 -0
  31. package/dist/CTABanner-d0dU_3UV.js +2 -0
  32. package/dist/CTABanner-d0dU_3UV.js.map +1 -0
  33. package/dist/CTABanner-f-kYjXeS.js +2 -0
  34. package/dist/CTABanner-f-kYjXeS.js.map +1 -0
  35. package/dist/CTABanner-hl7edywo.js +2 -0
  36. package/dist/CTABanner-hl7edywo.js.map +1 -0
  37. package/dist/CTABanner-kg01fEFO.js +2 -0
  38. package/dist/CTABanner-kg01fEFO.js.map +1 -0
  39. package/dist/CTABanner-yKuWX36F.js +2 -0
  40. package/dist/CTABanner-yKuWX36F.js.map +1 -0
  41. package/dist/CTABanner-zHhZFxmC.js +2 -0
  42. package/dist/CTABanner-zHhZFxmC.js.map +1 -0
  43. package/dist/CodeSample-60eygvma.js +2 -0
  44. package/dist/CodeSample-60eygvma.js.map +1 -0
  45. package/dist/CodeSample-BOwTybu7.js +2 -0
  46. package/dist/CodeSample-BOwTybu7.js.map +1 -0
  47. package/dist/CodeSample-BabNvAXq.js +2 -0
  48. package/dist/CodeSample-BabNvAXq.js.map +1 -0
  49. package/dist/CodeSample-BeKAECzE.js +2 -0
  50. package/dist/CodeSample-BeKAECzE.js.map +1 -0
  51. package/dist/CodeSample-Bmj6O9cO.js +2 -0
  52. package/dist/CodeSample-Bmj6O9cO.js.map +1 -0
  53. package/dist/CodeSample-By1h0pjl.js +2 -0
  54. package/dist/CodeSample-By1h0pjl.js.map +1 -0
  55. package/dist/CodeSample-C1A9mpxa.js +2 -0
  56. package/dist/CodeSample-C1A9mpxa.js.map +1 -0
  57. package/dist/CodeSample-C8UmShST.js +2 -0
  58. package/dist/CodeSample-C8UmShST.js.map +1 -0
  59. package/dist/CodeSample-CirMT2VK.js +2 -0
  60. package/dist/CodeSample-CirMT2VK.js.map +1 -0
  61. package/dist/CodeSample-D1cQIpZA.js +2 -0
  62. package/dist/CodeSample-D1cQIpZA.js.map +1 -0
  63. package/dist/CodeSample-D8oms9v4.js +2 -0
  64. package/dist/CodeSample-D8oms9v4.js.map +1 -0
  65. package/dist/CodeSample-DAYrHZ42.js +2 -0
  66. package/dist/CodeSample-DAYrHZ42.js.map +1 -0
  67. package/dist/CodeSample-DV4gehAY.js +2 -0
  68. package/dist/CodeSample-DV4gehAY.js.map +1 -0
  69. package/dist/CodeSample-DkfSxkpp.js +2 -0
  70. package/dist/CodeSample-DkfSxkpp.js.map +1 -0
  71. package/dist/CodeSample-VlH3bfzC.js +2 -0
  72. package/dist/CodeSample-VlH3bfzC.js.map +1 -0
  73. package/dist/CodeSample-dW2vKCd1.js +2 -0
  74. package/dist/CodeSample-dW2vKCd1.js.map +1 -0
  75. package/dist/CodeSample-vnPcdu-x.js +2 -0
  76. package/dist/CodeSample-vnPcdu-x.js.map +1 -0
  77. package/dist/HomeView-B9Ve1Kuh.js +2 -0
  78. package/dist/HomeView-B9Ve1Kuh.js.map +1 -0
  79. package/dist/HomeView-CH5Po1Ed.js +2 -0
  80. package/dist/HomeView-CH5Po1Ed.js.map +1 -0
  81. package/dist/HomeView-CL0kAYj1.js +2 -0
  82. package/dist/HomeView-CL0kAYj1.js.map +1 -0
  83. package/dist/HomeView-CMvkJdJa.js +2 -0
  84. package/dist/HomeView-CMvkJdJa.js.map +1 -0
  85. package/dist/HomeView-CQK9q_tO.js +2 -0
  86. package/dist/HomeView-CQK9q_tO.js.map +1 -0
  87. package/dist/HomeView-CTDZ19B3.js +2 -0
  88. package/dist/HomeView-CTDZ19B3.js.map +1 -0
  89. package/dist/HomeView-CU-l-tLg.js +2 -0
  90. package/dist/HomeView-CU-l-tLg.js.map +1 -0
  91. package/dist/HomeView-CWNvXmSg.js +2 -0
  92. package/dist/HomeView-CWNvXmSg.js.map +1 -0
  93. package/dist/HomeView-CdyaQH15.js +2 -0
  94. package/dist/HomeView-CdyaQH15.js.map +1 -0
  95. package/dist/HomeView-CzlycqNf.js +2 -0
  96. package/dist/HomeView-CzlycqNf.js.map +1 -0
  97. package/dist/HomeView-D0NBPUfo.js +2 -0
  98. package/dist/HomeView-D0NBPUfo.js.map +1 -0
  99. package/dist/HomeView-D8G2HjcZ.js +2 -0
  100. package/dist/HomeView-D8G2HjcZ.js.map +1 -0
  101. package/dist/HomeView-DGW10Fml.js +2 -0
  102. package/dist/HomeView-DGW10Fml.js.map +1 -0
  103. package/dist/HomeView-DgQI-VH2.js +2 -0
  104. package/dist/HomeView-DgQI-VH2.js.map +1 -0
  105. package/dist/HomeView-FTlkTnsT.js +2 -0
  106. package/dist/HomeView-FTlkTnsT.js.map +1 -0
  107. package/dist/HomeView-hSpU5kot.js +2 -0
  108. package/dist/HomeView-hSpU5kot.js.map +1 -0
  109. package/dist/HomeView-vZozpVGs.js +2 -0
  110. package/dist/HomeView-vZozpVGs.js.map +1 -0
  111. package/dist/Icon-B2OPWMtK.js +2 -0
  112. package/dist/Icon-B2OPWMtK.js.map +1 -0
  113. package/dist/Icon-BRAhu_Eb.js +2 -0
  114. package/dist/Icon-BRAhu_Eb.js.map +1 -0
  115. package/dist/Icon-C822nO1R.js +2 -0
  116. package/dist/Icon-C822nO1R.js.map +1 -0
  117. package/dist/Icon-CEm2iFxX.js +2 -0
  118. package/dist/Icon-CEm2iFxX.js.map +1 -0
  119. package/dist/Icon-CINO4Gs-.js +2 -0
  120. package/dist/Icon-CINO4Gs-.js.map +1 -0
  121. package/dist/Icon-CNvRfLaE.js +2 -0
  122. package/dist/Icon-CNvRfLaE.js.map +1 -0
  123. package/dist/Icon-CWAF56rs.js +2 -0
  124. package/dist/Icon-CWAF56rs.js.map +1 -0
  125. package/dist/Icon-CzVtM54u.js +2 -0
  126. package/dist/Icon-CzVtM54u.js.map +1 -0
  127. package/dist/Icon-D-fnSCsP.js +2 -0
  128. package/dist/Icon-D-fnSCsP.js.map +1 -0
  129. package/dist/Icon-D4gOtCv9.js +2 -0
  130. package/dist/Icon-D4gOtCv9.js.map +1 -0
  131. package/dist/Icon-DP1qesF5.js +2 -0
  132. package/dist/Icon-DP1qesF5.js.map +1 -0
  133. package/dist/Icon-DQdRqDU9.js +2 -0
  134. package/dist/Icon-DQdRqDU9.js.map +1 -0
  135. package/dist/Icon-Dogc3o95.js +2 -0
  136. package/dist/Icon-Dogc3o95.js.map +1 -0
  137. package/dist/Icon-FVBVv2mV.js +2 -0
  138. package/dist/Icon-FVBVv2mV.js.map +1 -0
  139. package/dist/Icon-KY6ULovn.js +2 -0
  140. package/dist/Icon-KY6ULovn.js.map +1 -0
  141. package/dist/Icon-XgHKz5VO.js +2 -0
  142. package/dist/Icon-XgHKz5VO.js.map +1 -0
  143. package/dist/Icon-sBVn0l7I.js +2 -0
  144. package/dist/Icon-sBVn0l7I.js.map +1 -0
  145. package/dist/Text-B-0yh8la.js +2 -0
  146. package/dist/Text-B-0yh8la.js.map +1 -0
  147. package/dist/Text-BCFz4JU-.js +2 -0
  148. package/dist/Text-BCFz4JU-.js.map +1 -0
  149. package/dist/Text-BNiddUr4.js +2 -0
  150. package/dist/Text-BNiddUr4.js.map +1 -0
  151. package/dist/Text-Bf364_Q8.js +2 -0
  152. package/dist/Text-Bf364_Q8.js.map +1 -0
  153. package/dist/Text-Bxe0mzUL.js +2 -0
  154. package/dist/Text-Bxe0mzUL.js.map +1 -0
  155. package/dist/Text-CfVL9URz.js +2 -0
  156. package/dist/Text-CfVL9URz.js.map +1 -0
  157. package/dist/Text-ChiAdn4X.js +2 -0
  158. package/dist/Text-ChiAdn4X.js.map +1 -0
  159. package/dist/Text-D5uguhzM.js +2 -0
  160. package/dist/Text-D5uguhzM.js.map +1 -0
  161. package/dist/Text-D9DhNy4J.js +2 -0
  162. package/dist/Text-D9DhNy4J.js.map +1 -0
  163. package/dist/Text-DFWZt4lj.js +2 -0
  164. package/dist/Text-DFWZt4lj.js.map +1 -0
  165. package/dist/Text-DGY59P42.js +2 -0
  166. package/dist/Text-DGY59P42.js.map +1 -0
  167. package/dist/Text-DfXk3ZuK.js +2 -0
  168. package/dist/Text-DfXk3ZuK.js.map +1 -0
  169. package/dist/Text-DwHGYbrw.js +2 -0
  170. package/dist/Text-DwHGYbrw.js.map +1 -0
  171. package/dist/Text-DxqdnsZ5.js +2 -0
  172. package/dist/Text-DxqdnsZ5.js.map +1 -0
  173. package/dist/Text-K_2YR6jw.js +2 -0
  174. package/dist/Text-K_2YR6jw.js.map +1 -0
  175. package/dist/Text-XHfscYPw.js +2 -0
  176. package/dist/Text-XHfscYPw.js.map +1 -0
  177. package/dist/Text-b8fT0OYO.js +2 -0
  178. package/dist/Text-b8fT0OYO.js.map +1 -0
  179. package/dist/Update-48mkPPHi.js +2 -0
  180. package/dist/Update-48mkPPHi.js.map +1 -0
  181. package/dist/Update-6IvrCbUn.js +2 -0
  182. package/dist/Update-6IvrCbUn.js.map +1 -0
  183. package/dist/Update-B31SkKLO.js +2 -0
  184. package/dist/Update-B31SkKLO.js.map +1 -0
  185. package/dist/Update-BDC6jF5Q.js +2 -0
  186. package/dist/Update-BDC6jF5Q.js.map +1 -0
  187. package/dist/Update-BdhhXj2D.js +2 -0
  188. package/dist/Update-BdhhXj2D.js.map +1 -0
  189. package/dist/Update-BzuP6PUF.js +2 -0
  190. package/dist/Update-BzuP6PUF.js.map +1 -0
  191. package/dist/Update-C-w0Og8S.js +2 -0
  192. package/dist/Update-C-w0Og8S.js.map +1 -0
  193. package/dist/Update-CRZyUhwE.js +2 -0
  194. package/dist/Update-CRZyUhwE.js.map +1 -0
  195. package/dist/Update-Cmw6WVrs.js +2 -0
  196. package/dist/Update-Cmw6WVrs.js.map +1 -0
  197. package/dist/Update-D5pUmk9V.js +2 -0
  198. package/dist/Update-D5pUmk9V.js.map +1 -0
  199. package/dist/Update-D7tzid9y.js +2 -0
  200. package/dist/Update-D7tzid9y.js.map +1 -0
  201. package/dist/Update-DDQewhuu.js +2 -0
  202. package/dist/Update-DDQewhuu.js.map +1 -0
  203. package/dist/Update-DPeHa_01.js +2 -0
  204. package/dist/Update-DPeHa_01.js.map +1 -0
  205. package/dist/Update-DUFcLP3-.js +2 -0
  206. package/dist/Update-DUFcLP3-.js.map +1 -0
  207. package/dist/Update-DbvzJGdB.js +2 -0
  208. package/dist/Update-DbvzJGdB.js.map +1 -0
  209. package/dist/Update-SFXhorqS.js +2 -0
  210. package/dist/Update-SFXhorqS.js.map +1 -0
  211. package/dist/Update-b8FT7xsG.js +2 -0
  212. package/dist/Update-b8FT7xsG.js.map +1 -0
  213. package/dist/VideoGuide-B0uoxh7k.js +2 -0
  214. package/dist/VideoGuide-B0uoxh7k.js.map +1 -0
  215. package/dist/VideoGuide-BELHPOmy.js +2 -0
  216. package/dist/VideoGuide-BELHPOmy.js.map +1 -0
  217. package/dist/VideoGuide-BPpz9He-.js +2 -0
  218. package/dist/VideoGuide-BPpz9He-.js.map +1 -0
  219. package/dist/VideoGuide-CMURpSE8.js +2 -0
  220. package/dist/VideoGuide-CMURpSE8.js.map +1 -0
  221. package/dist/VideoGuide-CXGDgkuc.js +2 -0
  222. package/dist/VideoGuide-CXGDgkuc.js.map +1 -0
  223. package/dist/VideoGuide-CXL3G2yS.js +2 -0
  224. package/dist/VideoGuide-CXL3G2yS.js.map +1 -0
  225. package/dist/VideoGuide-Cdi9zWS2.js +2 -0
  226. package/dist/VideoGuide-Cdi9zWS2.js.map +1 -0
  227. package/dist/VideoGuide-CrW6tvqB.js +2 -0
  228. package/dist/VideoGuide-CrW6tvqB.js.map +1 -0
  229. package/dist/VideoGuide-D6TRphry.js +2 -0
  230. package/dist/VideoGuide-D6TRphry.js.map +1 -0
  231. package/dist/VideoGuide-DkMriANN.js +2 -0
  232. package/dist/VideoGuide-DkMriANN.js.map +1 -0
  233. package/dist/VideoGuide-Ds1vQrb7.js +2 -0
  234. package/dist/VideoGuide-Ds1vQrb7.js.map +1 -0
  235. package/dist/VideoGuide-Dyf3clMb.js +2 -0
  236. package/dist/VideoGuide-Dyf3clMb.js.map +1 -0
  237. package/dist/VideoGuide-QouYMQx_.js +2 -0
  238. package/dist/VideoGuide-QouYMQx_.js.map +1 -0
  239. package/dist/VideoGuide-ZBarZs4D.js +2 -0
  240. package/dist/VideoGuide-ZBarZs4D.js.map +1 -0
  241. package/dist/VideoGuide-oYwuE6Lg.js +2 -0
  242. package/dist/VideoGuide-oYwuE6Lg.js.map +1 -0
  243. package/dist/VideoGuide-qcVqW6Su.js +2 -0
  244. package/dist/VideoGuide-qcVqW6Su.js.map +1 -0
  245. package/dist/VideoGuide-yyBprKvP.js +2 -0
  246. package/dist/VideoGuide-yyBprKvP.js.map +1 -0
  247. package/dist/_rollupPluginBabelHelpers-B1yJb5Rh.js +4 -0
  248. package/dist/_rollupPluginBabelHelpers-B1yJb5Rh.js.map +1 -0
  249. package/dist/_rollupPluginBabelHelpers-BaNafudn.js +4 -0
  250. package/dist/_rollupPluginBabelHelpers-BaNafudn.js.map +1 -0
  251. package/dist/_rollupPluginBabelHelpers-BuF1bLAd.js +4 -0
  252. package/dist/_rollupPluginBabelHelpers-BuF1bLAd.js.map +1 -0
  253. package/dist/_rollupPluginBabelHelpers-C10TYBta.js +4 -0
  254. package/dist/_rollupPluginBabelHelpers-C10TYBta.js.map +1 -0
  255. package/dist/_rollupPluginBabelHelpers-CV-SOB7x.js +4 -0
  256. package/dist/_rollupPluginBabelHelpers-CV-SOB7x.js.map +1 -0
  257. package/dist/_rollupPluginBabelHelpers-CVesZFRP.js +4 -0
  258. package/dist/_rollupPluginBabelHelpers-CVesZFRP.js.map +1 -0
  259. package/dist/_rollupPluginBabelHelpers-Ch3Y817m.js +4 -0
  260. package/dist/_rollupPluginBabelHelpers-Ch3Y817m.js.map +1 -0
  261. package/dist/_rollupPluginBabelHelpers-CxxbOh5W.js +4 -0
  262. package/dist/_rollupPluginBabelHelpers-CxxbOh5W.js.map +1 -0
  263. package/dist/_rollupPluginBabelHelpers-D19Us8SI.js +4 -0
  264. package/dist/_rollupPluginBabelHelpers-D19Us8SI.js.map +1 -0
  265. package/dist/_rollupPluginBabelHelpers-D2-m_SFt.js +4 -0
  266. package/dist/_rollupPluginBabelHelpers-D2-m_SFt.js.map +1 -0
  267. package/dist/_rollupPluginBabelHelpers-D5TiGB2z.js +4 -0
  268. package/dist/_rollupPluginBabelHelpers-D5TiGB2z.js.map +1 -0
  269. package/dist/_rollupPluginBabelHelpers-D6C3DhAR.js +4 -0
  270. package/dist/_rollupPluginBabelHelpers-D6C3DhAR.js.map +1 -0
  271. package/dist/_rollupPluginBabelHelpers-IYA2a-lX.js +4 -0
  272. package/dist/_rollupPluginBabelHelpers-IYA2a-lX.js.map +1 -0
  273. package/dist/_rollupPluginBabelHelpers-IZwOU41g.js +4 -0
  274. package/dist/_rollupPluginBabelHelpers-IZwOU41g.js.map +1 -0
  275. package/dist/_rollupPluginBabelHelpers-PCuXrt2F.js +4 -0
  276. package/dist/_rollupPluginBabelHelpers-PCuXrt2F.js.map +1 -0
  277. package/dist/_rollupPluginBabelHelpers-k3SPIMH4.js +4 -0
  278. package/dist/_rollupPluginBabelHelpers-k3SPIMH4.js.map +1 -0
  279. package/dist/_rollupPluginBabelHelpers-mdhlT6e0.js +4 -0
  280. package/dist/_rollupPluginBabelHelpers-mdhlT6e0.js.map +1 -0
  281. package/dist/brand.d.ts +9 -9
  282. package/dist/brand.js +1 -1
  283. package/dist/brand.js.map +1 -1
  284. package/dist/coder/themes/cosmo-light.js.map +1 -1
  285. package/dist/coder.d.ts +33 -9
  286. package/dist/coder.js +1 -1
  287. package/dist/coder.js.map +1 -1
  288. package/dist/content.d.ts +260 -171
  289. package/dist/content.js +1 -1
  290. package/dist/content.js.map +1 -1
  291. package/dist/index.css +267 -137
  292. package/dist/layouts.d.ts +23 -14
  293. package/dist/layouts.js +1 -1
  294. package/dist/layouts.js.map +1 -1
  295. package/dist/pages.js +1 -1
  296. package/dist/pages.js.map +1 -1
  297. package/dist/system.d.ts +10 -0
  298. package/dist/system.js +2 -0
  299. package/dist/system.js.map +1 -0
  300. package/dist/tslib.es6-2HddmpXk.js +2 -0
  301. package/dist/{tslib.es6-BS8I3nP0.js.map → tslib.es6-2HddmpXk.js.map} +1 -1
  302. package/dist/tslib.es6-B3WQO7bC.js +2 -0
  303. package/dist/{tslib.es6-DNz-U5oh.js.map → tslib.es6-B3WQO7bC.js.map} +1 -1
  304. package/dist/tslib.es6-B4LqmUlh.js +2 -0
  305. package/dist/{tslib.es6-BJOaQ_lJ.js.map → tslib.es6-B4LqmUlh.js.map} +1 -1
  306. package/dist/tslib.es6-BJtAe2Ef.js +2 -0
  307. package/dist/tslib.es6-BJtAe2Ef.js.map +1 -0
  308. package/dist/tslib.es6-BUCTXb7p.js +2 -0
  309. package/dist/tslib.es6-BUCTXb7p.js.map +1 -0
  310. package/dist/tslib.es6-BVagjPgu.js +2 -0
  311. package/dist/tslib.es6-BVagjPgu.js.map +1 -0
  312. package/dist/tslib.es6-Baxakhew.js +2 -0
  313. package/dist/tslib.es6-Baxakhew.js.map +1 -0
  314. package/dist/tslib.es6-BeaYjpg4.js +2 -0
  315. package/dist/tslib.es6-BeaYjpg4.js.map +1 -0
  316. package/dist/tslib.es6-C5x7jiZr.js +2 -0
  317. package/dist/tslib.es6-C5x7jiZr.js.map +1 -0
  318. package/dist/tslib.es6-CGuo9hNf.js +2 -0
  319. package/dist/tslib.es6-CGuo9hNf.js.map +1 -0
  320. package/dist/tslib.es6-CaUFBY2d.js +2 -0
  321. package/dist/tslib.es6-CaUFBY2d.js.map +1 -0
  322. package/dist/tslib.es6-CiOfWANY.js +2 -0
  323. package/dist/tslib.es6-CiOfWANY.js.map +1 -0
  324. package/dist/tslib.es6-D6Dmrhuy.js +2 -0
  325. package/dist/tslib.es6-D6Dmrhuy.js.map +1 -0
  326. package/dist/tslib.es6-DS8w8jUy.js +2 -0
  327. package/dist/tslib.es6-DS8w8jUy.js.map +1 -0
  328. package/dist/tslib.es6-DhpaRs87.js +2 -0
  329. package/dist/tslib.es6-DhpaRs87.js.map +1 -0
  330. package/dist/tslib.es6-Y3-sJK9A.js +2 -0
  331. package/dist/tslib.es6-Y3-sJK9A.js.map +1 -0
  332. package/dist/tslib.es6-iVzSobQR.js +2 -0
  333. package/dist/tslib.es6-iVzSobQR.js.map +1 -0
  334. package/dist/views.js +1 -1
  335. package/dist/writer.d.ts +427 -53
  336. package/dist/writer.js +1 -1
  337. package/dist/writer.js.map +1 -1
  338. package/docs/.nojekyll +1 -0
  339. package/docs/assets/hierarchy.js +1 -0
  340. package/docs/assets/highlight.css +22 -0
  341. package/docs/assets/icons.js +18 -0
  342. package/docs/assets/icons.svg +1 -0
  343. package/docs/assets/main.js +60 -0
  344. package/docs/assets/navigation.js +1 -0
  345. package/docs/assets/search.js +1 -0
  346. package/docs/assets/style.css +1640 -0
  347. package/docs/functions/GuideCard.html +6 -0
  348. package/docs/hierarchy.html +1 -0
  349. package/docs/index.html +2 -0
  350. package/docs/interfaces/GuideCardProps.html +18 -0
  351. package/docs/modules.html +1 -0
  352. package/index.ts +0 -1
  353. package/package.json +16 -20
  354. package/project.json +677 -0
  355. package/rollup.config.js +32 -3
  356. package/src/brand/Button/Button.styles.tsx +28 -0
  357. package/src/brand/Button/Button.tsx +3 -35
  358. package/src/brand/CTABanner/CTABanner.styles.tsx +80 -0
  359. package/src/brand/CTABanner/CTABanner.tsx +34 -112
  360. package/src/brand/Footer/Footer.styles.tsx +18 -0
  361. package/src/brand/Footer/Footer.tsx +4 -24
  362. package/src/brand/TODO.md +1 -0
  363. package/src/coder/Code/Code.styles.tsx +134 -35
  364. package/src/coder/Code/Code.tsx +131 -43
  365. package/src/coder/Code/CodeLoader.tsx +10 -0
  366. package/src/coder/Code/annotations.tsx +28 -8
  367. package/src/coder/Code/highlight.ts +38 -0
  368. package/src/coder/Code/index.ts +6 -2
  369. package/src/coder/CodeCopy/{CodeCopy.style.tsx → CodeCopy.styles.tsx} +6 -6
  370. package/src/coder/CodeCopy/CodeCopy.tsx +6 -6
  371. package/src/coder/CodeSample/CodeSample.tsx +87 -19
  372. package/src/coder/CodeTabs/CodeTabs.styles.tsx +98 -66
  373. package/src/coder/CodeTabs/CodeTabs.tsx +78 -47
  374. package/src/coder/CodeTheme/CodeTheme.tsx +89 -48
  375. package/src/coder/CodeTheme/index.ts +0 -1
  376. package/src/coder/CoderProvider.tsx +26 -0
  377. package/src/coder/hooks/highlight.ts +182 -0
  378. package/src/coder/index.ts +11 -7
  379. package/src/content/ContentDecoator.styles.tsx +113 -0
  380. package/src/content/ContentDecorator.tsx +17 -0
  381. package/src/content/GridDecorator.styles.tsx +67 -0
  382. package/src/content/GridDecorator.tsx +21 -0
  383. package/src/content/ReactContent.tsx +575 -0
  384. package/src/content/index.ts +10 -2
  385. package/src/icons/index.ts +0 -0
  386. package/src/kit/Loader/Loader.styles.tsx +53 -0
  387. package/src/kit/Loader/Loader.tsx +22 -0
  388. package/src/kit/TODO.md +2 -0
  389. package/src/kit/index.ts +1 -0
  390. package/src/layouts/LayoutPrimary/LayoutPrimary.styles.tsx +305 -0
  391. package/src/layouts/LayoutPrimary/LayoutPrimary.tsx +237 -0
  392. package/src/layouts/LayoutPrimary/index.ts +3 -0
  393. package/src/layouts/index.ts +2 -3
  394. package/src/pages/HomePage/HomePage.styles.tsx +16 -0
  395. package/src/pages/HomePage/HomePage.tsx +7 -21
  396. package/src/pages/TODO.md +1 -0
  397. package/src/system/SearchButton/SearchButton.styles.tsx +86 -0
  398. package/src/system/SearchButton/SearchButton.tsx +116 -0
  399. package/src/system/SearchButton/index.ts +1 -0
  400. package/src/system/index.ts +1 -0
  401. package/src/utils/useStyle.ts +19 -0
  402. package/src/views/HomeView/HomeView.styles.tsx +37 -0
  403. package/src/views/HomeView/HomeView.tsx +5 -45
  404. package/src/views/TODO.md +1 -0
  405. package/src/writer/Anchor/Anchor.styles.tsx +11 -0
  406. package/src/writer/Anchor/Anchor.tsx +51 -0
  407. package/src/writer/Anchor/index.tsx +1 -0
  408. package/src/writer/Badge/Badge.styles.tsx +39 -28
  409. package/src/writer/Badge/Badge.tsx +37 -20
  410. package/src/writer/Banner/Banner.styles.tsx +91 -0
  411. package/src/writer/Banner/Banner.tsx +70 -0
  412. package/src/writer/Banner/index.ts +1 -0
  413. package/src/writer/Blockquote/Blockquote.styles.tsx +4 -4
  414. package/src/writer/Blockquote/Blockquote.tsx +6 -3
  415. package/src/writer/Breadcrumbs/Breadcrumbs.styles.ts +22 -21
  416. package/src/writer/Breadcrumbs/Breadcrumbs.tsx +19 -13
  417. package/src/writer/Button/Button.styles.tsx +137 -0
  418. package/src/writer/Button/Button.tsx +75 -0
  419. package/src/writer/Button/index.ts +2 -0
  420. package/src/writer/Callout/Callout.styles.tsx +29 -40
  421. package/src/writer/Callout/Callout.tsx +31 -16
  422. package/src/writer/Card/Card.styles.tsx +47 -0
  423. package/src/writer/Card/Card.tsx +69 -0
  424. package/src/writer/Card/index.ts +1 -0
  425. package/src/writer/Code/Code.styles.tsx +10 -11
  426. package/src/writer/Code/Code.tsx +7 -4
  427. package/src/writer/ColorSchemeButton/ColorSchemeButton.tsx +172 -0
  428. package/src/writer/ColorSchemeButton/index.ts +1 -0
  429. package/src/writer/Details/Details.styles.tsx +85 -68
  430. package/src/writer/Details/Details.tsx +83 -46
  431. package/src/writer/Example/index.tsx +5 -0
  432. package/src/writer/GuideCard/GuideCard.styles.tsx +108 -107
  433. package/src/writer/GuideCard/GuideCard.tsx +72 -37
  434. package/src/writer/Heading/Heading.styles.tsx +69 -49
  435. package/src/writer/Heading/Heading.tsx +92 -22
  436. package/src/writer/Hr/Hr.styles.tsx +5 -5
  437. package/src/writer/Hr/Hr.tsx +3 -6
  438. package/src/writer/Icon/Icon.tsx +48 -0
  439. package/src/writer/Icon/index.ts +1 -0
  440. package/src/writer/Image/Image.styles.tsx +9 -0
  441. package/src/writer/Image/Image.tsx +19 -0
  442. package/src/writer/Image/index.ts +1 -0
  443. package/src/writer/List/List.styles.tsx +47 -0
  444. package/src/writer/List/List.tsx +29 -0
  445. package/src/writer/List/index.ts +4 -0
  446. package/src/writer/NavLinks/NavLinks.styles.ts +23 -23
  447. package/src/writer/NavLinks/NavLinks.tsx +66 -19
  448. package/src/writer/Pre/Pre.styles.tsx +5 -5
  449. package/src/writer/Pre/Pre.tsx +4 -3
  450. package/src/writer/Steps/Steps.styles.tsx +14 -12
  451. package/src/writer/Steps/Steps.tsx +39 -10
  452. package/src/writer/Table/Table.styles.tsx +62 -30
  453. package/src/writer/Table/Table.tsx +121 -11
  454. package/src/writer/Table/index.ts +0 -7
  455. package/src/writer/Tabs/Tabs.styles.tsx +63 -70
  456. package/src/writer/Tabs/Tabs.tsx +31 -29
  457. package/src/writer/Text/Text.styles.tsx +66 -0
  458. package/src/writer/Text/Text.tsx +79 -0
  459. package/src/writer/Text/index.ts +3 -0
  460. package/src/writer/TocCard/TocCard.module.css +44 -0
  461. package/src/writer/TocCard/TocCard.tsx +42 -0
  462. package/src/writer/TocCard/index.ts +3 -0
  463. package/src/writer/UnderlineNav/Tabs.tsx +51 -0
  464. package/src/writer/UnderlineNav/TabsPrimary.styles.tsx +184 -0
  465. package/src/writer/UnderlineNav/TabsPrimary.tsx +209 -0
  466. package/src/writer/UnderlineNav/TabsSecondary.styles.tsx +77 -0
  467. package/src/writer/UnderlineNav/TabsSecondary.tsx +171 -0
  468. package/src/writer/UnderlineNav/UnderlineNav.styles.tsx +181 -45
  469. package/src/writer/UnderlineNav/UnderlineNav.tsx +258 -23
  470. package/src/writer/UnderlineNav/index.ts +2 -1
  471. package/src/writer/UnderlineNav/useValueChange.ts +60 -0
  472. package/src/writer/Update/Update.styles.tsx +33 -0
  473. package/src/writer/Update/Update.tsx +37 -0
  474. package/src/writer/Update/index.ts +1 -0
  475. package/src/writer/VideoGuide/VideoGuide.module.css +105 -0
  476. package/src/writer/VideoGuide/VideoGuide.tsx +75 -0
  477. package/src/writer/VideoGuide/index.ts +1 -0
  478. package/src/writer/index.ts +23 -1
  479. package/tsconfig.json +11 -6
  480. package/types.d.ts +50 -0
  481. package/writer.ts +1 -1
  482. package/dist/CTABanner-B-metiuR.js +0 -2
  483. package/dist/CTABanner-B-metiuR.js.map +0 -1
  484. package/dist/CTABanner-BytLRAOg.js +0 -2
  485. package/dist/CTABanner-BytLRAOg.js.map +0 -1
  486. package/dist/CTABanner-hcWUnRIm.js +0 -2
  487. package/dist/CTABanner-hcWUnRIm.js.map +0 -1
  488. package/dist/CodeSample-Bkdm9TLb.js +0 -2
  489. package/dist/CodeSample-Bkdm9TLb.js.map +0 -1
  490. package/dist/CodeSample-Bt6WJOYx.js +0 -2
  491. package/dist/CodeSample-Bt6WJOYx.js.map +0 -1
  492. package/dist/CodeSample-D-bGz40b.js +0 -2
  493. package/dist/CodeSample-D-bGz40b.js.map +0 -1
  494. package/dist/HomeView-C70Vzl0K.js +0 -2
  495. package/dist/HomeView-C70Vzl0K.js.map +0 -1
  496. package/dist/HomeView-DA0hRPl2.js +0 -2
  497. package/dist/HomeView-DA0hRPl2.js.map +0 -1
  498. package/dist/HomeView-sbl_99l1.js +0 -2
  499. package/dist/HomeView-sbl_99l1.js.map +0 -1
  500. package/dist/UnderlineNav-3vpnAIF7.js +0 -2
  501. package/dist/UnderlineNav-3vpnAIF7.js.map +0 -1
  502. package/dist/UnderlineNav-CnSXtQ0o.js +0 -2
  503. package/dist/UnderlineNav-CnSXtQ0o.js.map +0 -1
  504. package/dist/UnderlineNav-hAt4ieuk.js +0 -2
  505. package/dist/UnderlineNav-hAt4ieuk.js.map +0 -1
  506. package/dist/_rollupPluginBabelHelpers-CdarGYFF.js +0 -2
  507. package/dist/_rollupPluginBabelHelpers-CdarGYFF.js.map +0 -1
  508. package/dist/_rollupPluginBabelHelpers-DNCsaSlj.js +0 -2
  509. package/dist/_rollupPluginBabelHelpers-DNCsaSlj.js.map +0 -1
  510. package/dist/_rollupPluginBabelHelpers-Dyp77Dty.js +0 -2
  511. package/dist/_rollupPluginBabelHelpers-Dyp77Dty.js.map +0 -1
  512. package/dist/index-Bj8cSv3b.js +0 -2
  513. package/dist/index-Bj8cSv3b.js.map +0 -1
  514. package/dist/index-ByyyJDhj.js +0 -2
  515. package/dist/index-ByyyJDhj.js.map +0 -1
  516. package/dist/index-DcT-QJgO.js +0 -2
  517. package/dist/index-DcT-QJgO.js.map +0 -1
  518. package/dist/tslib.es6-BJOaQ_lJ.js +0 -2
  519. package/dist/tslib.es6-BS8I3nP0.js +0 -2
  520. package/dist/tslib.es6-DNz-U5oh.js +0 -2
  521. package/src/content/Anchor/Anchor.tsx +0 -63
  522. package/src/content/Anchor/index.tsx +0 -3
  523. package/src/content/Content/Content.tsx +0 -21
  524. package/src/content/Content/index.tsx +0 -3
  525. package/src/content/Content.tsx +0 -171
  526. package/src/content/Subtitle/Subtitle.tsx +0 -21
  527. package/src/content/Subtitle/index.tsx +0 -3
  528. package/src/layouts/Layout.styles.tsx +0 -151
  529. package/src/layouts/Layout.tsx +0 -121
  530. package/src/writer/Icon/index.tsx +0 -342
package/dist/content.d.ts CHANGED
@@ -1,121 +1,232 @@
1
- import React from 'react';
1
+ import React, { ReactElement } from 'react';
2
+ import { Settings } from '@xyd-js/core';
2
3
  import { Theme } from '@code-hike/lighter';
4
+ import { HighlightedCode } from 'codehike/code';
3
5
 
4
6
  interface BadgeProps {
5
- children: React.ReactNode;
6
- size?: "sm";
7
- kind?: "warning" | "info";
7
+ /**
8
+ * The class name of the badge.
9
+ */
10
+ className?: string;
11
+ /**
12
+ * The children of the badge.
13
+ */
14
+ children?: React.ReactNode;
15
+ /**
16
+ * The size of the badge.
17
+ */
18
+ size?: "sm" | "xs";
19
+ /**
20
+ * The kind of the badge.
21
+ */
22
+ kind?: "warning" | "info" | "default";
8
23
  }
9
- declare function Badge({ children, size, kind }: BadgeProps): React.JSX.Element;
24
+ /**
25
+ * Badge component is used to display a badge.
26
+ *
27
+ * @group Components
28
+ */
29
+ declare function Badge({ className, children, size, kind }: BadgeProps): React.JSX.Element;
10
30
 
11
- interface BlockquoteProps {
12
- children: React.ReactNode;
31
+ interface ButtonProps {
32
+ children?: React.ReactNode;
33
+ kind?: "primary" | "secondary" | "tertiary" | undefined;
34
+ theme?: "ghost";
35
+ size?: "sm" | "md" | "lg";
36
+ className?: string;
37
+ onClick?: () => void;
38
+ disabled?: boolean;
39
+ icon?: React.ReactElement;
40
+ iconPosition?: "left" | "right";
41
+ href?: string;
13
42
  }
14
- declare function Blockquote({ children }: BlockquoteProps): React.JSX.Element;
43
+ declare function Button({ children, kind, theme, size, className, onClick, disabled, icon, iconPosition, href }: ButtonProps): React.JSX.Element;
15
44
 
45
+ /**
46
+ * Props for the Callout component
47
+ */
16
48
  interface CalloutProps {
49
+ /** Additional CSS class name to be applied to the callout */
50
+ className?: string;
51
+ /** Content to be displayed inside the callout */
17
52
  children: React.ReactNode;
18
53
  }
19
- declare function Callout({ children }: CalloutProps): React.JSX.Element;
54
+ /**
55
+ * A Callout component that displays important information or notices in a visually distinct way.
56
+ * It includes an info icon and a message area for content.
57
+ *
58
+ * @category Component
59
+ */
60
+ declare function Callout({ className, children }: CalloutProps): React.JSX.Element;
20
61
 
21
- interface CodeProps {
22
- children: React.ReactNode;
23
- }
24
- declare function Code({ children }: CodeProps): React.JSX.Element;
62
+ declare function ColorSchemeButton(): React.JSX.Element;
25
63
 
64
+ /**
65
+ * Base interface for all Details component variants
66
+ */
26
67
  interface BaseDetailsProps {
68
+ /** Content to be displayed inside the details element */
27
69
  children: React.ReactNode;
70
+ /** Label text displayed in the summary */
28
71
  label: string;
72
+ /** Optional icon element to be displayed in the summary */
73
+ icon?: React.ReactElement;
74
+ /** Optional CSS class name for custom styling */
75
+ className?: string;
29
76
  }
77
+ /**
78
+ * Props for the tertiary variant of the Details component
79
+ */
80
+ interface TertiaryDetailsProps extends BaseDetailsProps {
81
+ /** Specifies the tertiary variant */
82
+ kind: "tertiary";
83
+ /** Title text or element displayed in the summary */
84
+ title: string | React.ReactNode;
85
+ }
86
+ /**
87
+ * Props for the secondary variant of the Details component
88
+ */
30
89
  interface SecondaryDetailsProps extends BaseDetailsProps {
90
+ /** Specifies the secondary variant */
31
91
  kind: "secondary";
32
- title: string;
92
+ /** Title text or element displayed in the summary */
93
+ title: string | React.ReactNode;
33
94
  }
95
+ /**
96
+ * Props for the primary variant of the Details component
97
+ */
34
98
  interface PrimaryDetailsProps extends BaseDetailsProps {
99
+ /** Specifies the primary variant (default) */
35
100
  kind?: "primary";
36
101
  }
37
- type DetailsProps = PrimaryDetailsProps | SecondaryDetailsProps;
38
- declare function Details(props: DetailsProps): React.JSX.Element;
102
+ /** Union type of all possible Details component variants */
103
+ type DetailsProps = PrimaryDetailsProps | SecondaryDetailsProps | TertiaryDetailsProps;
104
+ /**
105
+ * A collapsible details component that supports three variants: primary, secondary, and tertiary.
106
+ * Each variant has a different visual style and structure.
107
+ *
108
+ * @param props - The component props
109
+ * @returns A details element with collapsible content
110
+ *
111
+ * @category Component
112
+ */
113
+ declare function Details(props: DetailsProps): React.ReactElement;
39
114
 
40
- interface GuideCardProps {
41
- children: React.ReactNode;
42
- href: string;
43
- title: string;
44
- icon?: React.ReactNode;
45
- kind?: "secondary";
46
- size?: "sm" | "md";
47
- }
48
- declare function GuideCard({ children, href, icon, title, kind, size, }: GuideCardProps): React.JSX.Element;
49
- declare namespace GuideCard {
50
- var List: ({ children }: {
51
- children: React.ReactNode;
52
- }) => React.JSX.Element;
53
- }
54
-
55
- interface HrProps {
56
- children: React.ReactNode;
115
+ interface IconProps {
116
+ name: string;
117
+ size?: number;
118
+ color?: string;
57
119
  }
58
- declare function Hr({ children }: HrProps): React.JSX.Element;
59
-
60
- declare function IconSessionReplay(): React.JSX.Element;
61
- declare function IconMetrics(): React.JSX.Element;
62
- declare function IconFunnels(): React.JSX.Element;
63
- declare function IconCode(): React.JSX.Element;
64
- declare function IconCustomEvent(): React.JSX.Element;
65
- declare function IconAlert(): React.JSX.Element;
66
- declare function IconBrowser(): React.JSX.Element;
67
- declare function IconREST(): React.JSX.Element;
68
- declare function IconGraphQL(): React.JSX.Element;
69
- declare function IconWebhooks(): React.JSX.Element;
70
- declare function IconJSBrowser(): React.JSX.Element;
71
- declare function IconJSNode(): React.JSX.Element;
72
- declare function IconStorybook(): React.JSX.Element;
73
- declare function IconReactRouter(): React.JSX.Element;
74
- declare function IconNextJS(): React.JSX.Element;
75
- declare function IconAppTemplate(): React.JSX.Element;
120
+ declare function Icon(props: IconProps): ReactElement | null;
76
121
 
122
+ /**
123
+ * Props for the Steps component
124
+ */
77
125
  interface StepsProps {
126
+ /** Content to be rendered inside the steps list */
78
127
  children: React.ReactNode;
128
+ /** Optional CSS class name to be applied to the steps container */
129
+ className?: string;
79
130
  }
80
- declare function Steps({ children }: StepsProps): React.JSX.Element;
131
+ /**
132
+ * Steps component that renders a numbered list of steps or stages.
133
+ * Use this component to display a sequence of steps in a process or workflow.
134
+ *
135
+ * @category Component
136
+ */
137
+ declare function Steps({ children, className }: StepsProps): React.JSX.Element;
81
138
  declare namespace Steps {
82
- var Item: ({ children }: StepsItemProps) => React.JSX.Element;
139
+ var Item: ({ children, className }: StepsItemProps) => React.JSX.Element;
83
140
  }
141
+ /**
142
+ * Props for the Steps.Item component
143
+ */
84
144
  interface StepsItemProps {
145
+ /** Content to be rendered inside the step item */
85
146
  children: React.ReactNode;
147
+ /** Optional CSS class name to be applied to the step item */
148
+ className?: string;
86
149
  }
87
150
 
151
+ /**
152
+ * Props for the Table component
153
+ */
88
154
  interface TableProps {
155
+ /** The content to be rendered inside the table */
89
156
  children: React.ReactNode;
157
+ /** Optional CSS class name to be applied to the table */
158
+ className?: string;
90
159
  }
91
- declare function Table({ children }: TableProps): React.JSX.Element;
160
+ /**
161
+ * A table component that provides a structured way to display tabular data.
162
+ * It supports custom styling through className prop and can contain various table elements.
163
+ *
164
+ * @category Component
165
+ */
166
+ declare function Table({ children, className }: TableProps): React.JSX.Element;
92
167
  declare namespace Table {
93
- var Th: ({ children }: TableThProps) => React.JSX.Element;
168
+ var Head: ({ children }: TableHeadProps) => React.JSX.Element;
169
+ var Th: ({ children, numeric }: TableThProps) => React.JSX.Element;
94
170
  var Tr: ({ children }: TableTrProps) => React.JSX.Element;
95
- var Td: ({ children }: TableTdProps) => React.JSX.Element;
171
+ var Body: ({ children }: TableBodyProps) => React.JSX.Element;
172
+ var Td: ({ children, numeric, muted }: TableTdProps) => React.JSX.Element;
173
+ var Cell: ({ children }: TableCellProps) => React.JSX.Element;
96
174
  }
175
+ /**
176
+ * Props for the TableHead component
177
+ */
178
+ interface TableHeadProps {
179
+ /** The content to be rendered inside the table header */
180
+ children: React.ReactNode;
181
+ }
182
+ /**
183
+ * Props for the TableTh component
184
+ */
97
185
  interface TableThProps {
186
+ /** The content to be rendered inside the table header cell */
98
187
  children: React.ReactNode;
188
+ /** Whether the cell content should be right-aligned (for numeric values) */
189
+ numeric?: boolean;
99
190
  }
191
+ /**
192
+ * Props for the TableTr component
193
+ */
100
194
  interface TableTrProps {
195
+ /** The content to be rendered inside the table row */
196
+ children: React.ReactNode;
197
+ }
198
+ /**
199
+ * Props for the TableBody component
200
+ */
201
+ interface TableBodyProps {
202
+ /** The content to be rendered inside the table body */
101
203
  children: React.ReactNode;
102
204
  }
205
+ /**
206
+ * Props for the TableTd component
207
+ */
103
208
  interface TableTdProps {
209
+ /** The content to be rendered inside the table cell */
104
210
  children: React.ReactNode;
211
+ /** Whether the cell content should be right-aligned (for numeric values) */
212
+ numeric?: boolean;
213
+ /** Whether the cell should have a muted appearance */
214
+ muted?: boolean;
105
215
  }
106
-
107
- interface TabsProps {
216
+ /**
217
+ * Props for the TableCell component
218
+ */
219
+ interface TableCellProps {
220
+ /** The content to be rendered inside the table cell */
108
221
  children: React.ReactNode;
109
- items: string[];
110
- tabIndex?: number;
111
222
  }
112
- declare function Tabs({ children, items, tabIndex }: TabsProps): React.JSX.Element;
113
- declare namespace Tabs {
114
- var Content: ({ children, value }: {
115
- children: any;
116
- value: any;
117
- }) => React.JSX.Element;
223
+
224
+ interface UpdateProps {
225
+ children: React.ReactNode;
226
+ version: string;
227
+ date?: string;
118
228
  }
229
+ declare function Update(props: UpdateProps): React.JSX.Element;
119
230
 
120
231
  interface CodeThemeBlockProps {
121
232
  /** This is the raw code. May include annotation comments. */
@@ -124,142 +235,120 @@ interface CodeThemeBlockProps {
124
235
  lang: string;
125
236
  /** Metadata string (the content after the language name in a markdown codeblock). */
126
237
  meta: string;
238
+ /** The highlighted code. */
239
+ highlighted?: HighlightedCode;
127
240
  }
128
241
 
129
242
  interface CodeSampleProps {
130
243
  name: string;
131
244
  description: string;
132
- codeblocks: CodeThemeBlockProps[];
133
- size?: "full";
245
+ codeblocks?: CodeThemeBlockProps[];
134
246
  theme?: Theme;
247
+ size?: "full";
248
+ lineNumbers?: boolean;
249
+ descriptionHead?: string;
250
+ descriptionContent?: string | React.ReactNode;
251
+ descriptionIcon?: string;
252
+ kind?: "secondary";
253
+ controlByMeta?: boolean;
135
254
  }
136
255
  declare function CodeSample(props: CodeSampleProps): React.JSX.Element;
137
256
 
138
- interface ContentProps {
139
- children: React.ReactNode;
257
+ interface ReactContentOptions {
258
+ Link?: React.ElementType;
259
+ components?: {
260
+ [component: string]: (props: any) => React.JSX.Element | null;
261
+ };
262
+ useLocation?: () => {
263
+ search: string;
264
+ };
265
+ useNavigate?: (to: any) => void;
266
+ useNavigation?: () => any;
140
267
  }
141
- declare function Content({ children }: ContentProps): React.JSX.Element;
142
-
143
- interface SubtitleProps {
144
- children: React.ReactNode;
268
+ declare class ReactContent {
269
+ protected settings?: Settings | undefined;
270
+ protected options?: ReactContentOptions | undefined;
271
+ constructor(settings?: Settings | undefined, options?: ReactContentOptions | undefined);
272
+ components(): {
273
+ [component: string]: (props: any) => React.JSX.Element | null;
274
+ };
275
+ noop(): {
276
+ React: typeof NoopReactComponent;
277
+ Steps: typeof NoopComponent;
278
+ UnderlineNav: typeof NoopComponent;
279
+ Tabs: typeof NoopComponent;
280
+ GuideCard: typeof NoopComponent;
281
+ Table: typeof NoopComponent;
282
+ };
145
283
  }
146
- declare function Subtitle({ children }: SubtitleProps): React.JSX.Element;
147
-
148
- declare function content(): {
149
- DirectiveCodeSample: (props: any) => React.JSX.Element;
150
- CodeSample: typeof CodeSample;
151
- IconSessionReplay: typeof IconSessionReplay;
152
- IconMetrics: typeof IconMetrics;
153
- IconFunnels: typeof IconFunnels;
154
- IconCode: typeof IconCode;
155
- IconCustomEvent: typeof IconCustomEvent;
156
- IconAlert: typeof IconAlert;
157
- IconBrowser: typeof IconBrowser;
158
- IconREST: typeof IconREST;
159
- IconGraphQL: typeof IconGraphQL;
160
- IconWebhooks: typeof IconWebhooks;
161
- IconJSBrowser: typeof IconJSBrowser;
162
- IconJSNode: typeof IconJSNode;
163
- IconStorybook: typeof IconStorybook;
164
- IconReactRouter: typeof IconReactRouter;
165
- IconNextJS: typeof IconNextJS;
166
- IconAppTemplate: typeof IconAppTemplate;
167
- Content: typeof Content;
168
- Subtitle: typeof Subtitle;
169
- Callout: typeof Callout;
170
- Details: typeof Details;
171
- GuideCard: typeof GuideCard;
172
- Steps: typeof Steps;
173
- Tabs: typeof Tabs;
174
- Table: typeof Table;
175
- Badge: typeof Badge;
176
- h1: (props: any) => React.JSX.Element;
177
- h2: (props: any) => React.JSX.Element;
178
- h3: (props: any) => React.JSX.Element;
179
- h4: (props: any) => React.JSX.Element;
180
- h5: (props: any) => React.JSX.Element;
181
- h6: (props: any) => React.JSX.Element;
182
- p: (props: any) => React.JSX.Element;
183
- ul: (props: any) => React.JSX.Element;
184
- ol: (props: any) => React.JSX.Element;
185
- li: (props: any) => React.JSX.Element;
186
- table: typeof Table;
187
- tr: ({ children }: TableTrProps) => React.JSX.Element;
188
- th: ({ children }: TableThProps) => React.JSX.Element;
189
- td: ({ children }: TableTdProps) => React.JSX.Element;
190
- code: typeof Code;
191
- pre: (props: any) => React.JSX.Element;
192
- details: typeof Details;
193
- blockquote: typeof Blockquote;
194
- hr: typeof Hr;
195
- a: ({ href, className, ...props }: {
196
- [x: string]: any;
197
- href?: string | undefined;
198
- className?: string | undefined;
199
- }) => React.JSX.Element;
200
- };
201
- declare function stdContent(): {
284
+ declare function NoopComponent(): null;
285
+ declare namespace NoopComponent {
286
+ var Item: () => null;
287
+ var Content: () => null;
288
+ var List: () => null;
289
+ var Head: () => null;
290
+ var Td: () => null;
291
+ var Tr: () => null;
292
+ var Th: () => null;
293
+ var Cell: () => null;
294
+ }
295
+ declare function NoopReactComponent(): null;
296
+ declare namespace NoopReactComponent {
297
+ var Fragment: React.ExoticComponent<React.FragmentProps>;
298
+ }
299
+ declare function stdContent(this: ReactContent): {
202
300
  h1: (props: any) => React.JSX.Element;
203
301
  h2: (props: any) => React.JSX.Element;
204
302
  h3: (props: any) => React.JSX.Element;
205
303
  h4: (props: any) => React.JSX.Element;
206
304
  h5: (props: any) => React.JSX.Element;
207
- h6: (props: any) => React.JSX.Element;
208
305
  p: (props: any) => React.JSX.Element;
209
306
  ul: (props: any) => React.JSX.Element;
210
307
  ol: (props: any) => React.JSX.Element;
211
308
  li: (props: any) => React.JSX.Element;
212
- table: typeof Table;
213
- tr: ({ children }: TableTrProps) => React.JSX.Element;
214
- th: ({ children }: TableThProps) => React.JSX.Element;
215
- td: ({ children }: TableTdProps) => React.JSX.Element;
216
- code: typeof Code;
217
- pre: (props: any) => React.JSX.Element;
218
- details: typeof Details;
219
- blockquote: typeof Blockquote;
220
- hr: typeof Hr;
221
- a: ({ href, className, ...props }: {
222
- [x: string]: any;
223
- href?: string | undefined;
224
- className?: string | undefined;
225
- }) => React.JSX.Element;
309
+ table: (props: any) => React.JSX.Element;
310
+ tr: (props: any) => React.JSX.Element;
311
+ th: (props: any) => React.JSX.Element;
312
+ td: (props: any) => React.JSX.Element;
313
+ code: (props: any) => React.JSX.Element;
314
+ pre: any;
315
+ details: (props: any) => React.JSX.Element;
316
+ blockquote: (props: any) => React.JSX.Element;
317
+ hr: (props: any) => React.JSX.Element;
318
+ a: (props: any) => React.JSX.Element;
319
+ br: (props: any) => React.JSX.Element;
320
+ img: (props: any) => React.JSX.Element;
321
+ React: typeof NoopReactComponent;
226
322
  };
227
323
  declare function writerContent(): {
228
324
  Callout: typeof Callout;
229
325
  Details: typeof Details;
230
- GuideCard: typeof GuideCard;
326
+ GuideCard: any;
231
327
  Steps: typeof Steps;
232
- Tabs: typeof Tabs;
328
+ Tabs: any;
233
329
  Table: typeof Table;
234
330
  Badge: typeof Badge;
235
- };
236
- declare function directiveContent(): {
237
- DirectiveCodeSample: (props: any) => React.JSX.Element;
238
- };
239
- declare function helperContent(): {
240
- Content: typeof Content;
241
- Subtitle: typeof Subtitle;
331
+ Button: typeof Button;
332
+ UnderlineNav: any;
333
+ Subtitle(props: any): React.JSX.Element;
334
+ Update: typeof Update;
335
+ Card: any;
336
+ ColorSchemeButton: typeof ColorSchemeButton;
242
337
  };
243
338
  declare function iconContent(): {
244
- IconSessionReplay: typeof IconSessionReplay;
245
- IconMetrics: typeof IconMetrics;
246
- IconFunnels: typeof IconFunnels;
247
- IconCode: typeof IconCode;
248
- IconCustomEvent: typeof IconCustomEvent;
249
- IconAlert: typeof IconAlert;
250
- IconBrowser: typeof IconBrowser;
251
- IconREST: typeof IconREST;
252
- IconGraphQL: typeof IconGraphQL;
253
- IconWebhooks: typeof IconWebhooks;
254
- IconJSBrowser: typeof IconJSBrowser;
255
- IconJSNode: typeof IconJSNode;
256
- IconStorybook: typeof IconStorybook;
257
- IconReactRouter: typeof IconReactRouter;
258
- IconNextJS: typeof IconNextJS;
259
- IconAppTemplate: typeof IconAppTemplate;
339
+ Icon: typeof Icon;
260
340
  };
261
341
  declare function coderContent(): {
262
342
  CodeSample: typeof CodeSample;
263
343
  };
344
+ declare function directiveContent(this: ReactContent): {
345
+ DirectiveCodeGroup: (props: any) => React.JSX.Element;
346
+ };
347
+
348
+ interface ContentDecoratorProps {
349
+ children: React.ReactNode;
350
+ metaComponent?: string;
351
+ }
352
+ declare function ContentDecorator({ children, metaComponent }: ContentDecoratorProps): React.JSX.Element;
264
353
 
265
- export { content as MDX, coderContent, content as default, directiveContent, helperContent, iconContent, stdContent, writerContent };
354
+ export { ContentDecorator, ReactContent, coderContent, directiveContent, iconContent, stdContent, writerContent };
package/dist/content.js CHANGED
@@ -1,2 +1,2 @@
1
- import{_ as e}from"./tslib.es6-BJOaQ_lJ.js";import n,{forwardRef as t}from"react";import{H as r,B as a,D as i,C as c,a as s,b as l,c as o,I as u,d,e as m,f as h,g as f,h as v,i as p,j as b,k as g,l as j,m as E,n as O,o as I,p as S,q as N,r as k}from"./index-DcT-QJgO.js";import"@radix-ui/react-icons";import{T as C,a as T,S as w,G as x}from"./UnderlineNav-3vpnAIF7.js";import{b as z}from"./CodeSample-Bkdm9TLb.js";import"@code-hike/lighter";import"@radix-ui/react-tabs";import"lucide-react";import"./_rollupPluginBabelHelpers-Dyp77Dty.js";import"./coder/themes/cosmo-light.js";var B="h1seqss5";function y(e){var t=e.children;return n.createElement("div",{className:B},t)}var D="hmi9h9e";function J(e){var t=e.children;return n.createElement("div",{className:D},t)}var R="htyux6",q=t((function(e,t){var r=e.href,a=void 0===r?"":r,i=e.children;return e.newWindow?n.createElement("a",{ref:t,to:a,href:a,target:"_blank",rel:"noreferrer",className:R},i):n.createElement("a",{ref:t,to:a,href:a,className:R},i)}));q.displayName="Anchor";var A=/https?:\/\//,G=function(t){var r=t.href,a=void 0===r?"":r;t.className;var i=e(t,["href","className"]);return n.createElement(q,Object.assign({href:a,newWindow:A.test(a)},i))};function W(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_()),H()),F()),L()),P()),M())}function _(){return{h1:function(e){return n.createElement("div",null,n.createElement(s,Object.assign({id:e.children},e)))},h2:function(e){return n.createElement("div",null,n.createElement(s,Object.assign({id:e.children,size:2},e)))},h3:function(e){return n.createElement("div",null,n.createElement(s,Object.assign({id:e.children,size:3},e)))},h4:function(e){return n.createElement("div",null,n.createElement(s,Object.assign({id:e.children,size:4},e)))},h5:function(e){return n.createElement("div",null,n.createElement(s,Object.assign({id:e.children,size:5},e)))},h6:function(e){return n.createElement("div",null,n.createElement(s,Object.assign({id:e.children,size:6},e)))},p:function(e){return n.createElement("p",Object.assign({},e))},ul:function(e){return n.createElement("ul",Object.assign({},e),e.children)},ol:function(e){return n.createElement("ol",Object.assign({},e),e.children)},li:function(e){return n.createElement("li",Object.assign({},e),e.children)},table:C,tr:C.Tr,th:C.Th,td:C.Td,code:c,pre:function(e){var t,r,a,i,c,s,l=((null===(r=null===(t=null==e?void 0:e.children)||void 0===t?void 0:t.props)||void 0===r?void 0:r.className)||"").replace("language-","");return n.createElement(z,{name:l,description:null===(i=null===(a=null==e?void 0:e.children)||void 0===a?void 0:a.props)||void 0===i?void 0:i.meta,codeblocks:[{value:null===(s=null===(c=null==e?void 0:e.children)||void 0===c?void 0:c.props)||void 0===s?void 0:s.children,lang:l,meta:l}],size:"full"})},details:i,blockquote:a,hr:r,a:G}}function H(){return{Callout:o,Details:i,GuideCard:x,Steps:w,Tabs:T,Table:C,Badge:l}}function M(){return{DirectiveCodeSample:function(e){return n.createElement(z,Object.assign({},e,{codeblocks:JSON.parse(e.codeblocks)}))}}}function F(){return{Content:y,Subtitle:J}}function L(){return{IconSessionReplay:k,IconMetrics:N,IconFunnels:S,IconCode:I,IconCustomEvent:O,IconAlert:E,IconBrowser:j,IconREST:g,IconGraphQL:b,IconWebhooks:p,IconJSBrowser:v,IconJSNode:f,IconStorybook:h,IconReactRouter:m,IconNextJS:d,IconAppTemplate:u}}function P(){return{CodeSample:z}}export{W as MDX,P as coderContent,W as default,M as directiveContent,F as helperContent,L as iconContent,_ as stdContent,H as writerContent};
1
+ import{c as n,_ as e,d as t,a as i,e as r}from"./_rollupPluginBabelHelpers-CV-SOB7x.js";import{a as o}from"./tslib.es6-BJtAe2Ef.js";import l,{useRef as a,useState as c,useEffect as s,createContext as u,useContext as d,useMemo as v}from"react";import{T as h,L as m,a as f,G as p,B as g,S as b,A as j,b as E}from"./VideoGuide-CrW6tvqB.js";import{I as O,H as w,B as C,D as y,C as k,a as L,U as S,b as I,c as T,d as x,e as N}from"./Update-b8FT7xsG.js";import{I as U}from"./Icon-XgHKz5VO.js";import{T as A}from"./Text-K_2YR6jw.js";import{c as H}from"./CodeSample-D1cQIpZA.js";import"@code-hike/lighter";import"radix-ui";import"lucide-react";import"./coder/themes/cosmo-light.js";var R="g1wc20vm";function B(n){var e=n.children,t=n.cols;return l.createElement("xyd-grid-decorator",{className:R,"data-cols":t},e)}var G=function(){return n(function n(e,i){t(this,n),this.settings=e,this.options=i},[{key:"components",value:function(){var n,e=this,t=[F,z,Q,X,Y,Z].map(function(n){return n.bind(e)}).reduce(function(n,e){return Object.assign(Object.assign({},n),e())},{});return Object.assign(Object.assign({},t),(null===(n=this.options)||void 0===n?void 0:n.components)||{})}},{key:"noop",value:function(){var n,t=this.components(),i=[].concat(e(Object.keys(t)),e(Object.keys((null===(n=this.options)||void 0===n?void 0:n.components)||{}))).reduce(function(n,e){return n[e]=function(){return null},n},{}),r={Steps:V,UnderlineNav:V,Tabs:V,GuideCard:V,Table:V};return Object.assign(Object.assign(Object.assign({},i),r),{React:D})}}])}();function V(){return null}function D(){return null}function F(){var n=this,e=$.bind(this),t=P.bind(this);return{h1:function(n){return l.createElement(t,Object.assign({depth:1},n,{noanchor:!0}))},h2:function(n){return l.createElement(t,Object.assign({depth:2},n))},h3:function(n){return l.createElement(t,Object.assign({depth:3},n))},h4:function(n){return l.createElement(t,Object.assign({depth:4},n))},h5:function(n){return l.createElement(t,Object.assign({depth:5},n))},p:function(n){return l.createElement(A,Object.assign({},n))},ul:function(n){return l.createElement(m,Object.assign({},n),n.children)},ol:function(n){return l.createElement(f,Object.assign({},n),n.children)},li:function(n){return l.createElement(m.Item,Object.assign({},n),n.children)},table:function(n){return l.createElement(h,Object.assign({},n))},tr:function(n){return l.createElement(h.Tr,Object.assign({},n))},th:function(n){return l.createElement(h.Th,Object.assign({},n))},td:function(n){return l.createElement(h.Td,Object.assign({},n),l.createElement(h.Cell,null,n.children))},code:function(n){return l.createElement(k,Object.assign({},n))},pre:e,details:function(n){return l.createElement(y,Object.assign({},n))},blockquote:function(n){return l.createElement(C,Object.assign({},n))},hr:function(n){return l.createElement(w,Object.assign({},n))},a:function(e){var t;return l.createElement(en,Object.assign({},e,{as:null===(t=null==n?void 0:n.options)||void 0===t?void 0:t.Link}))},br:function(n){return l.createElement("br",null)},img:function(n){return l.createElement(O,Object.assign({},n))},React:D}}function P(n){var e,t=n.id,r=n.depth,o=n.children,u=n.label,d=n.subtitle,v=n.noanchor,h=n.style,m=null===(e=null==this?void 0:this.options)||void 0===e?void 0:e.useNavigation(),f=a(null),p=c(!1),g=i(p,2),b=g[0],j=g[1];function E(n){var e=window.location.hash==="#".concat(t);j(e)}return s(function(){window.addEventListener("replaceState",E);var n=window.location.hash==="#".concat(t);return j(n),n&&f.current&&"loading"!==(null==m?void 0:m.state)&&f.current.scrollIntoView(),function(){window.removeEventListener("replaceState",E)}},[]),l.createElement(x,{ref:f,id:t,size:r,active:b,onClick:function(){var n,e=new URL(window.location.href);e.hash=t,history.replaceState(null,"",e),null===(n=document.querySelector("#".concat(t)))||void 0===n||n.scrollIntoView()},label:u,subtitle:d,noanchor:v,style:h},o)}function z(){var n=W.bind(this);n.List=p.List;var e=_.bind(this);return e.Content=K.bind(this),e.Item=M.bind(this),e.Item.displayName="UnderlineNav.Item",{Callout:T,Details:y,GuideCard:n,Steps:b,Tabs:e,Table:h,Badge:I,Button:g,UnderlineNav:e,Subtitle:function(n){var e,t,i=null===(t=null===(e=null==n?void 0:n.children)||void 0===e?void 0:e.props)||void 0===t?void 0:t.children;return l.createElement(x,Object.assign({size:4,kind:"muted"},n),i)},Update:S,Card:q.bind(this),ColorSchemeButton:L}}function W(n){var e;return l.createElement(p,Object.assign({},n,{as:null===(e=null==this?void 0:this.options)||void 0===e?void 0:e.Link}))}function q(n){var e;return l.createElement(N,Object.assign({},n,{link:null===(e=null==this?void 0:this.options)||void 0===e?void 0:e.Link}))}V.Item=function(){return null},V.Content=function(){return null},V.List=function(){return null},V.Head=function(){return null},V.Td=function(){return null},V.Tr=function(){return null},V.Th=function(){return null},V.Cell=function(){return null},D.Fragment=l.Fragment;var J=u({value:"",onChange:function(n){}});function _(n){var e=c(n.value),t=i(e,2),r=t[0],o=t[1];return l.createElement(J,{value:{value:r,onChange:o}},l.createElement(E,Object.assign({},n,{value:r,onChange:function(n){o(n)}})))}function K(n){var e,t,i=d(J).onChange,r=null===(t=null===(e=null==this?void 0:this.options)||void 0===e?void 0:e.useLocation)||void 0===t?void 0:t.call(e),o=null==r?void 0:r.search,a=new URLSearchParams(o),c=new URLSearchParams(n.value),u=!0,v=!0;return c.forEach(function(n,e){var t=a.get(e);t!==n&&(u=!1),t||(v=!1)}),s(function(){u&&i(n.value)},[u]),v||(u=void 0),l.createElement(E.Content,Object.assign({},n,{defaultActive:u}))}function M(n){var e,t,i,r=d(J).onChange,o=null===(t=null===(e=null==this?void 0:this.options)||void 0===e?void 0:e.useLocation)||void 0===t?void 0:t.call(e),a=null==o?void 0:o.search,c=new URLSearchParams(a),u=new URLSearchParams(n.value),v=!0;return u.forEach(function(n,e){c.get(e)!==n&&(v=!1)}),s(function(){v&&r(n.value)},[v]),l.createElement(E.Item,Object.assign({},n,{as:null===(i=null==this?void 0:this.options)||void 0===i?void 0:i.Link,defaultActive:v}))}function Q(){return{Icon:U}}function X(){return{CodeSample:H}}function Y(){var n=this;return{DirectiveCodeGroup:function(e){var t,i,r;return l.createElement(H,Object.assign({},e,{theme:(null===(r=null===(i=null===(t=n.settings)||void 0===t?void 0:t.theme)||void 0===i?void 0:i.coder)||void 0===r?void 0:r.syntaxHighlight)||void 0,codeblocks:JSON.parse(e.codeblocks)}))}}}function Z(){return{GridDecorator:B}}function $(n){var e,t,i,r,o,a,c,s,u,d=void 0;if(n.highlighted)try{var h=JSON.parse(n.highlighted);h&&(d=h)}catch(n){console.error("Error parsing highlighted code",n)}var m,f=((null===(t=null===(e=null==n?void 0:n.children)||void 0===e?void 0:e.props)||void 0===t?void 0:t.className)||"").replace("language-",""),p=void 0;if(null==n?void 0:n.descriptionContent){var g=function(n){var e=tn(n);if(!tn)return{};return{component:null==e?void 0:e.default}}(null==n?void 0:n.descriptionContent);if(null==g?void 0:g.component){var b=(m=null==g?void 0:g.component,v(function(){return m||null},[m]));p=l.createElement(b,{components:this.components()})}}return l.createElement(H,{theme:(null===(o=null===(r=null===(i=this.settings)||void 0===i?void 0:i.theme)||void 0===r?void 0:r.coder)||void 0===o?void 0:o.syntaxHighlight)||void 0,name:f,description:null===(c=null===(a=null==n?void 0:n.children)||void 0===a?void 0:a.props)||void 0===c?void 0:c.meta,codeblocks:[{value:null===(u=null===(s=null==n?void 0:n.children)||void 0===s?void 0:s.props)||void 0===u?void 0:u.children,lang:f,meta:f,highlighted:d}],lineNumbers:null==n?void 0:n.lineNumbers,size:null==n?void 0:n.size,descriptionHead:null==n?void 0:n.descriptionHead,descriptionContent:p,descriptionIcon:null==n?void 0:n.descriptionIcon})}var nn=/https?:\/\//;function en(n){var e=n.href,t=void 0===e?"":e,i=n.as,r=n.newWindow,a=n.children,c=o(n,["href","as","newWindow","children"]),s=i||j;return l.createElement(s,Object.assign({href:t,newWindow:r||nn.test(t)},c),a)}function tn(n){var t={Fragment:l.Fragment,jsxs:rn,jsx:rn,jsxDEV:rn};return r(Function,e(Object.keys(t)).concat([n]))(t)}var rn=function(n,e){var t,i=function(n){return n.map(function(n,e){return l.isValidElement(n)&&!n.key?l.cloneElement(n,{key:"mdx-".concat(e)}):Array.isArray(n)?i(n):n})};return t=e&&e.children?Array.isArray(e.children)?i(e.children):l.isValidElement(e.children)&&!e.children.key?l.cloneElement(e.children,{key:"mdx-child"}):e.children:[],l.createElement(n,Object.assign(Object.assign({},e),{children:t}))},on="ca1c472";function ln(n){var e=n.children,t=n.metaComponent;return l.createElement("xyd-content-decorator",{className:on,"meta-component":t||void 0},e)}export{ln as ContentDecorator,G as ReactContent,X as coderContent,Y as directiveContent,Q as iconContent,F as stdContent,z as writerContent};
2
2
  //# sourceMappingURL=content.js.map