@xyd-js/components 0.1.0-xyd.4 → 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 (517) 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 +384 -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-COc5mhWS.js.map → tslib.es6-2HddmpXk.js.map} +1 -1
  302. package/dist/tslib.es6-B3WQO7bC.js +2 -0
  303. package/dist/{tslib.es6-D-wQFpKV.js.map → tslib.es6-B3WQO7bC.js.map} +1 -1
  304. package/dist/tslib.es6-B4LqmUlh.js +2 -0
  305. package/dist/tslib.es6-B4LqmUlh.js.map +1 -0
  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-BX0sOkvP.js +0 -2
  483. package/dist/CTABanner-BX0sOkvP.js.map +0 -1
  484. package/dist/CTABanner-Bgr79Lqe.js +0 -2
  485. package/dist/CTABanner-Bgr79Lqe.js.map +0 -1
  486. package/dist/CodeSample-BpsiUFZH.js +0 -2
  487. package/dist/CodeSample-BpsiUFZH.js.map +0 -1
  488. package/dist/CodeSample-OEtiPDdW.js +0 -2
  489. package/dist/CodeSample-OEtiPDdW.js.map +0 -1
  490. package/dist/HomeView-BaQ94VA7.js +0 -2
  491. package/dist/HomeView-BaQ94VA7.js.map +0 -1
  492. package/dist/HomeView-Byqn8qbO.js +0 -2
  493. package/dist/HomeView-Byqn8qbO.js.map +0 -1
  494. package/dist/UnderlineNav-C4GtpoH_.js +0 -2
  495. package/dist/UnderlineNav-C4GtpoH_.js.map +0 -1
  496. package/dist/UnderlineNav-CTBRVoit.js +0 -2
  497. package/dist/UnderlineNav-CTBRVoit.js.map +0 -1
  498. package/dist/_rollupPluginBabelHelpers-DzVepvvn.js +0 -2
  499. package/dist/_rollupPluginBabelHelpers-DzVepvvn.js.map +0 -1
  500. package/dist/_rollupPluginBabelHelpers-NA6nV2VK.js +0 -2
  501. package/dist/_rollupPluginBabelHelpers-NA6nV2VK.js.map +0 -1
  502. package/dist/index-B_8erDHC.js +0 -2
  503. package/dist/index-B_8erDHC.js.map +0 -1
  504. package/dist/index-DBY3gRcL.js +0 -2
  505. package/dist/index-DBY3gRcL.js.map +0 -1
  506. package/dist/tslib.es6-COc5mhWS.js +0 -2
  507. package/dist/tslib.es6-D-wQFpKV.js +0 -2
  508. package/src/content/Anchor/Anchor.tsx +0 -63
  509. package/src/content/Anchor/index.tsx +0 -3
  510. package/src/content/Content/Content.tsx +0 -21
  511. package/src/content/Content/index.tsx +0 -3
  512. package/src/content/Content.tsx +0 -171
  513. package/src/content/Subtitle/Subtitle.tsx +0 -21
  514. package/src/content/Subtitle/index.tsx +0 -3
  515. package/src/layouts/Layout.styles.tsx +0 -151
  516. package/src/layouts/Layout.tsx +0 -121
  517. package/src/writer/Icon/index.tsx +0 -342
@@ -1,38 +1,273 @@
1
- import React from "react"
2
- import * as RadixTabs from "@radix-ui/react-tabs";
1
+ import React, { useState, useRef, useEffect, createContext, useContext } from "react"
2
+ import {Tabs as RadixTabs} from "radix-ui"; // TODO: remove and use separation
3
3
 
4
- import {$nav} from "./UnderlineNav.styles"
4
+ import * as cn from "./UnderlineNav.styles"
5
5
 
6
+ /**
7
+ * Context for managing the navigation direction in the UnderlineNav component
8
+ */
9
+ const UnderlineContext = createContext<{
10
+ direction: 'forward' | 'backward'
11
+ }>({
12
+ direction: 'forward'
13
+ });
14
+
15
+ /**
16
+ * Props for the UnderlineNav component
17
+ */§
6
18
  export interface TabsProps {
19
+ /** Child elements to be rendered within the navigation */
7
20
  children: React.ReactNode
8
- value: string
9
- onChange: (value: string) => void
21
+
22
+ /** The currently selected tab value */
23
+ value?: string
24
+
25
+ /** Callback function triggered when a tab is selected */
26
+ onChange?: (value: string) => void
27
+
28
+ /** Whether to enable sliding animation between tabs */
29
+ slide?: boolean
30
+
31
+ /** Additional CSS class name for the component */
32
+ className?: string
33
+
34
+ /** The variant of the navigation */
35
+ kind?: 'default' | 'secondary'
10
36
  }
11
37
 
12
- export function UnderlineNav({children, value, onChange}: TabsProps) {
13
- return <RadixTabs.Root asChild value={value} onValueChange={onChange}>
14
- <nav className={$nav.host}>
15
- <RadixTabs.List asChild>
16
- <ul className={$nav.ul}>
17
- {children}
18
- </ul>
19
- </RadixTabs.List>
20
- </nav>
21
- </RadixTabs.Root>
38
+ /**
39
+ * A navigation component that displays tabs with an underline indicator
40
+ *
41
+ * @category Component
42
+ */
43
+ export function UnderlineNav({
44
+ children,
45
+ value: controlledValue,
46
+ onChange,
47
+ slide = true,
48
+ className,
49
+ kind = 'default'
50
+ }: TabsProps) {
51
+ const childrenArray = React.Children.toArray(children);
52
+ const navItems = childrenArray.filter(
53
+ child => {
54
+ return React.isValidElement(child) &&
55
+ (child.type === UnderlineNav.Item || child.type.displayName === "UnderlineNav.Item")
56
+ }
57
+ );
58
+ const otherChildren = childrenArray.filter(
59
+ child => !React.isValidElement(child) ||
60
+ (child.type !== UnderlineNav.Item && child.type.displayName !== "UnderlineNav.Item")
61
+ );
62
+
63
+ const [direction, value, handleValueChange] = useValueChange(
64
+ controlledValue,
65
+ onChange,
66
+ navItems
67
+ );
68
+
69
+ return (
70
+ <UnderlineContext.Provider value={{ direction }}>
71
+ <RadixTabs.Root value={value} onValueChange={handleValueChange}>
72
+ <xyd-underlinenav
73
+ className={`${cn.UnderlineNavHost} ${className || ""}`}
74
+ data-kind={kind}
75
+ >
76
+ <nav part="nav">
77
+ <RadixTabs.List asChild>
78
+ <ul part="list">
79
+ {navItems}
80
+ </ul>
81
+ </RadixTabs.List>
82
+ </nav>
83
+ <div
84
+ part="content"
85
+ data-slide={slide ? "true" : "false"}
86
+ >
87
+ {otherChildren}
88
+ </div>
89
+ </xyd-underlinenav>
90
+ </RadixTabs.Root>
91
+ </UnderlineContext.Provider>
92
+ );
22
93
  }
23
94
 
95
+ /**
96
+ * Props for the UnderlineNav.Item component
97
+ */
24
98
  export interface UnderlineNavItemProps {
99
+ /** Child elements to be rendered within the navigation item */
25
100
  children: React.ReactNode
101
+
102
+ /** Unique identifier for the navigation item */
26
103
  value: string
104
+
105
+ /** URL for the navigation item link */
27
106
  href?: string
107
+
108
+ /** Custom component to render as the link element */
109
+ as?: React.ElementType
110
+
111
+ /** Whether this item should be active by default */
112
+ defaultActive?: boolean
113
+ }
114
+
115
+ /**
116
+ * Individual navigation item component
117
+ *
118
+ * @category Component
119
+ */
120
+ UnderlineNav.Item = function UnderlineNavItem({ children, value, href, as, defaultActive }: UnderlineNavItemProps) {
121
+ const Link = as || $Link;
122
+ const controlByItem = typeof defaultActive === "boolean"
123
+ const [defaultActiveState, setDefaultActiveState] = useState(controlByItem ? (defaultActive ? "active" : "inactive") : undefined)
124
+
125
+ let activeProps = controlByItem && defaultActiveState != undefined
126
+ ? { "data-state": defaultActiveState }
127
+ : undefined
128
+
129
+ useEffect(() => {
130
+ if (!controlByItem) {
131
+ return
132
+ }
133
+
134
+ setDefaultActiveState(undefined)
135
+ }, [])
136
+
137
+ return (
138
+ <RadixTabs.Trigger value={value} asChild {...activeProps}>
139
+ <li part="item">
140
+ <Link part="link" href={href}>
141
+ {children}
142
+ </Link>
143
+ </li>
144
+ </RadixTabs.Trigger>
145
+ );
146
+ }
147
+
148
+ /**
149
+ * Props for the UnderlineNav.Content component
150
+ */
151
+ export interface UnderlineNavContentProps {
152
+ /** Child elements to be rendered within the content area */
153
+ children: React.ReactNode
154
+
155
+ /** Unique identifier for the content section */
156
+ value: string
157
+
158
+ /** Whether this content should be active by default */
159
+ defaultActive?: boolean
160
+ }
161
+
162
+ /**
163
+ * Content section component for the UnderlineNav
164
+ *
165
+ * @category Component
166
+ */
167
+ UnderlineNav.Content = function UnderlineNavContent({
168
+ children,
169
+ value,
170
+ defaultActive
171
+ }: UnderlineNavContentProps) {
172
+ const { direction } = useContext(UnderlineContext);
173
+
174
+ const controlByItem = typeof defaultActive === "boolean"
175
+ const [defaultActiveState, setDefaultActiveState] = useState(controlByItem ? (defaultActive ? "active" : "inactive") : undefined)
176
+
177
+ let activeProps = controlByItem && defaultActiveState != undefined
178
+ ? { "data-state": defaultActiveState }
179
+ : undefined
180
+
181
+ useEffect(() => {
182
+ if (!controlByItem) {
183
+ return
184
+ }
185
+
186
+ setDefaultActiveState(undefined)
187
+ }, [])
188
+
189
+ return (
190
+ <RadixTabs.Content
191
+ value={value}
192
+ forceMount={true}
193
+ asChild
194
+ {...activeProps}
195
+ >
196
+ <xyd-underlinenav-content
197
+ className={cn.UnderlineNavContent}
198
+ data-direction={direction}
199
+ >
200
+ <div part="child">
201
+ {children}
202
+ </div>
203
+ </xyd-underlinenav-content>
204
+ </RadixTabs.Content>
205
+ );
206
+ }
207
+
208
+ /**
209
+ * Custom hook to handle value changes and determine navigation direction
210
+ * @param controlledValue - The controlled value from props
211
+ * @param onChange - Callback function for value changes
212
+ * @param navItems - Array of navigation items
213
+ * @returns Tuple containing direction, current value, and change handler
214
+ */
215
+ function useValueChange(
216
+ controlledValue: string | undefined,
217
+ onChange: ((value: string) => void) | undefined,
218
+ navItems: React.ReactNode[]
219
+ ) {
220
+ // Determine if we're in controlled or uncontrolled mode
221
+ const isControlled = controlledValue !== undefined && onChange !== undefined;
222
+
223
+ // For uncontrolled mode, use internal state
224
+ const [internalValue, setInternalValue] = useState(
225
+ navItems.length > 0 && React.isValidElement(navItems[0]) ?
226
+ navItems[0].props.value : ''
227
+ );
228
+
229
+ // Use either controlled or internal value
230
+ const value = isControlled ? controlledValue : internalValue;
231
+
232
+ // Track previous value to determine navigation direction
233
+ const prevValueRef = useRef(value);
234
+ const [direction, setDirection] = useState<'forward' | 'backward'>('forward');
235
+
236
+ // Handle value change and determine direction
237
+ const handleValueChange = (newValue: string) => {
238
+ // Find indices of current and new values
239
+ const currentIndex = navItems.findIndex(
240
+ item => React.isValidElement(item) && item.props.value === prevValueRef.current
241
+ );
242
+ const newIndex = navItems.findIndex(
243
+ item => React.isValidElement(item) && item.props.value === newValue
244
+ );
245
+
246
+ // Set direction based on indices
247
+ setDirection(newIndex > currentIndex ? 'forward' : 'backward');
248
+
249
+ // Update previous value
250
+ prevValueRef.current = newValue;
251
+
252
+ // Update internal state if uncontrolled
253
+ if (!isControlled) {
254
+ setInternalValue(newValue);
255
+ }
256
+
257
+ // Call the original onChange if provided
258
+ if (onChange) {
259
+ onChange(newValue);
260
+ }
261
+ };
262
+
263
+ return [direction, value, handleValueChange] as const;
28
264
  }
29
265
 
30
- UnderlineNav.Item = function UnderlineNavItem({children, value, href}: UnderlineNavItemProps) {
31
- return <RadixTabs.Trigger asChild value={value}>
32
- <li className={$nav.item}>
33
- <a href={href} className={`${$nav.itemLink}`}>
34
- {children}
35
- </a>
36
- </li>
37
- </RadixTabs.Trigger>
266
+ /**
267
+ * Default link component used when no custom link component is provided
268
+ * @param props - The component props
269
+ * @returns A React component
270
+ */
271
+ function $Link({ ...props }) {
272
+ return <a {...props}>{props.children}</a>
38
273
  }
@@ -1 +1,2 @@
1
- export {UnderlineNav} from "./UnderlineNav"
1
+ export {UnderlineNav} from "./UnderlineNav"
2
+ export {Tabs} from "./Tabs"
@@ -0,0 +1,60 @@
1
+ import React, {useRef, useState} from "react";
2
+
3
+ /**
4
+ * Custom hook to handle value changes and determine navigation direction
5
+ * @param controlledValue - The controlled value from props
6
+ * @param onChange - Callback function for value changes
7
+ * @param navItems - Array of navigation items
8
+ * @returns Tuple containing direction, current value, and change handler
9
+ */
10
+ export function useValueChange(
11
+ controlledValue: string | undefined,
12
+ onChange: ((value: string) => void) | undefined,
13
+ navItems: React.ReactNode[]
14
+ ) {
15
+ // Determine if we're in controlled or uncontrolled mode
16
+ const isControlled = controlledValue !== undefined && onChange !== undefined;
17
+
18
+ // For uncontrolled mode, use internal state
19
+ const [internalValue, setInternalValue] = useState(
20
+ navItems.length > 0 && React.isValidElement(navItems[0]) ?
21
+ navItems[0].props.value : ''
22
+ );
23
+
24
+ // Use either controlled or internal value
25
+ const value = isControlled ? controlledValue : internalValue;
26
+
27
+ // Track previous value to determine navigation direction
28
+ const prevValueRef = useRef(value);
29
+ const [direction, setDirection] = useState<'forward' | 'backward'>('forward');
30
+
31
+ // Handle value change and determine direction
32
+ const handleValueChange = (newValue: string) => {
33
+ // Find indices of current and new values
34
+ const currentIndex = navItems.findIndex(
35
+ item => React.isValidElement(item) && item.props.value === prevValueRef.current
36
+ );
37
+ const newIndex = navItems.findIndex(
38
+ item => React.isValidElement(item) && item.props.value === newValue
39
+ );
40
+
41
+ // Set direction based on indices
42
+ setDirection(newIndex > currentIndex ? 'forward' : 'backward');
43
+
44
+ // Update previous value
45
+ prevValueRef.current = newValue;
46
+
47
+ // Update internal state if uncontrolled
48
+ if (!isControlled) {
49
+ setInternalValue(newValue);
50
+ }
51
+
52
+ // Call the original onChange if provided
53
+ if (onChange) {
54
+ onChange(newValue);
55
+ }
56
+ };
57
+
58
+ return [direction, value, handleValueChange] as const;
59
+ }
60
+
@@ -0,0 +1,33 @@
1
+ import { css } from "@linaria/core"
2
+
3
+ export const UpdateHost = css`
4
+ @layer defaults {
5
+ gap: 24px;
6
+ flex-direction: row;
7
+ padding-top: 32px;
8
+ padding-bottom: 32px;
9
+ align-items: flex-start;
10
+ width: 100%;
11
+ display: flex;
12
+ position: relative;
13
+
14
+ [part="meta"] {
15
+ width: 160px;
16
+ position: sticky;
17
+ justify-content: flex-start;
18
+ align-items: flex-start;
19
+ flex-direction: column;
20
+ flex-shrink: 0;
21
+ display: flex;
22
+ gap: 10px;
23
+ }
24
+
25
+ [part="content-container"] {
26
+ padding-left: 2px;
27
+ padding-right: 2px;
28
+ overflow: hidden;
29
+ flex: 1 1 0%;
30
+ max-width: 100%;
31
+ }
32
+ }
33
+ `;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+
3
+ import { Badge } from '../Badge';
4
+ import { Text } from '../Text';
5
+
6
+ import * as cn from "./Update.styles"
7
+
8
+ interface UpdateProps {
9
+ children: React.ReactNode
10
+
11
+ version: string
12
+
13
+ date?: string
14
+ }
15
+
16
+ export function Update(props: UpdateProps) {
17
+ const { date, version, children } = props;
18
+ return (
19
+ <xyd-update className={cn.UpdateHost}>
20
+ <div part="meta">
21
+ {date && <div part="date">
22
+ <Badge>
23
+ {date}
24
+ </Badge>
25
+ </div>}
26
+ <div part="version">
27
+ <Text size="small">
28
+ {version}
29
+ </Text>
30
+ </div>
31
+ </div>
32
+ <div part="content-container">
33
+ <div part="content">{children}</div>
34
+ </div>
35
+ </xyd-update>
36
+ );
37
+ }
@@ -0,0 +1 @@
1
+ export {Update} from "./Update"
@@ -0,0 +1,105 @@
1
+ @layer defaults {
2
+ .VideoPlayerHost {
3
+ z-index: var(--xyd-videoguide-miniature-z-index);
4
+ width: var(--xyd-videoguide-miniature-mini-width);
5
+ height: var(--xyd-videoguide-miniature-mini-height);
6
+ overflow: visible;
7
+
8
+ [part="shape"] {
9
+ position: relative;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ overflow: visible;
14
+ box-shadow: var(--xyd-videoguide-miniature-shadow);
15
+ border-radius: var(--xyd-videoguide-miniature-radius);
16
+ box-sizing: border-box;
17
+ background-color: var(--xyd-videoguide-miniature-bgcolor);
18
+ }
19
+
20
+ [part="frame"] {
21
+ position: relative;
22
+ width: 100%;
23
+ height: var(--xyd-videoguide-miniature-mini-height);
24
+
25
+ background-color: var(--xyd-videoguide-miniature-bgcolor);
26
+ overflow: hidden;
27
+ border-radius: var(--xyd-videoguide-miniature-radius);
28
+ box-sizing: border-box;
29
+ }
30
+
31
+ [part="thumbnail"] {
32
+ position: absolute;
33
+ top: 0;
34
+ left: 0;
35
+ width: 100%;
36
+ height: 100%;
37
+ background-image: url(https://xyd-land.netlify.app/docs-hero.png);
38
+ background-size: cover;
39
+ background-position: center;
40
+ }
41
+
42
+ [part="cover"] {
43
+ background-color: transparent;
44
+ backdrop-filter: brightness(60%) blur(10px);
45
+ -webkit-backdrop-filter: brightness(60%) blur(10px);
46
+
47
+ position: absolute;
48
+ top: 0;
49
+ bottom: 0;
50
+ left: 0;
51
+ right: 0;
52
+ transition: backdrop-filter .1s ease-in-out, -webkit-backdrop-filter .1s ease-in-out, opacity .1s ease-in-out, background-color .1s ease-in-out;
53
+
54
+ overflow: hidden;
55
+
56
+ border-radius: var(--xyd-videoguide-miniature-radius);
57
+ box-sizing: border-box;
58
+ }
59
+
60
+ [part="controls"] {
61
+ position: absolute;
62
+ top: 0;
63
+ bottom: 0;
64
+ left: 0;
65
+ right: 0;
66
+ box-sizing: border-box;
67
+ }
68
+
69
+ [part="button"] {
70
+ display: flex;
71
+ flex-direction: column;
72
+ align-items: center;
73
+ justify-content: center;
74
+ width: 100%;
75
+ height: 100%;
76
+ }
77
+
78
+ [part="icon"] {
79
+ color: var(--xyd-videoguide-miniature-color);
80
+ display: flex;
81
+ box-sizing: border-box;
82
+
83
+ svg {
84
+ fill: currentColor;
85
+ }
86
+ }
87
+
88
+ [part="description"] {
89
+ box-sizing: border-box;
90
+ margin-top: 8px;
91
+ }
92
+
93
+ [part="description-container"] {
94
+ box-sizing: border-box;
95
+ margin-top: 8px;
96
+ }
97
+
98
+ [part="description"] {
99
+ text-align: center;
100
+ color: var(--xyd-videoguide-miniature-color);
101
+ display: block;
102
+ white-space: normal;
103
+ }
104
+ }
105
+ }
@@ -0,0 +1,75 @@
1
+ import React from "react";
2
+
3
+ import cn from "./VideoGuide.module.css";
4
+
5
+ export function VideoGuide() {
6
+ return null
7
+ };
8
+
9
+ interface VideoGuideMiniatureProps {
10
+ videoSrc?: string;
11
+ description?: string;
12
+ className?: string;
13
+ }
14
+
15
+ VideoGuide.Miniature = function VideoGuideMiniature(props: VideoGuideMiniatureProps) {
16
+ const {
17
+ videoSrc,
18
+ description = "Watch the video guide"
19
+ } = props;
20
+
21
+ return <xyd-videoguide-miniature
22
+ className={`${cn.VideoPlayerHost} ${props.className || ""}`}
23
+ >
24
+ <div part="shape" >
25
+ <div part="frame" >
26
+ <iframe
27
+ width="100%"
28
+ height="100%"
29
+ allow="autoplay; fullscreen"
30
+ src={videoSrc}
31
+ />
32
+ <div part="thumbnail" />
33
+ </div>
34
+
35
+ <div part="cover">
36
+ <div part="controls">
37
+ <button part="button" type="button">
38
+ <div
39
+ aria-hidden="true"
40
+ part="icon"
41
+ >
42
+ <$PlayIcon />
43
+ </div>
44
+
45
+ <div part="description-container" >
46
+ <span part="description" >
47
+ {description}
48
+ </span>
49
+ </div>
50
+ </button>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </xyd-videoguide-miniature>
55
+ };
56
+
57
+
58
+ function $PlayIcon() {
59
+ return <svg
60
+ aria-hidden="true"
61
+ height={32}
62
+ width={32}
63
+ viewBox="0 0 16 16"
64
+ fill="none"
65
+ xmlns="http://www.w3.org/2000/svg"
66
+ >
67
+ <path
68
+ fillRule="evenodd"
69
+ clipRule="evenodd"
70
+ d="M8 14.25A6.25 6.25 0 0 0 14.25 8 6.242 6.242 0 0 0 8 1.75 6.25 6.25 0 0 0 1.75 8 6.25 6.25 0 0 0 8 14.25ZM8 16a8 8 0 0 0 8-8c0-4.419-3.57-8-8-8a8 8 0 0 0-8 8 8 8 0 0 0 8 8Z"
71
+ />
72
+ <path
73
+ d="M10.817 7.659A.415.415 0 0 1 11 8a.415.415 0 0 1-.183.341L7.242 10.91c-.305.218-.742.02-.742-.34V5.431c0-.36.437-.56.742-.341l3.575 2.568Z" />
74
+ </svg>
75
+ }
@@ -0,0 +1 @@
1
+ export {VideoGuide} from './VideoGuide';
@@ -1,13 +1,23 @@
1
+ export * from "./Anchor"
2
+
1
3
  export * from "./Badge"
2
4
 
5
+ export * from "./Banner"
6
+
3
7
  export * from "./Blockquote"
4
8
 
5
9
  export * from "./Breadcrumbs"
6
10
 
11
+ export * from "./Button"
12
+
7
13
  export * from "./Callout"
8
14
 
15
+ export * from "./Card"
16
+
9
17
  export * from "./Code"
10
18
 
19
+ export * from "./ColorSchemeButton"
20
+
11
21
  export * from "./Details"
12
22
 
13
23
  export * from "./GuideCard"
@@ -18,6 +28,10 @@ export * from "./Hr"
18
28
 
19
29
  export * from "./Icon"
20
30
 
31
+ export * from "./Image"
32
+
33
+ export * from "./List"
34
+
21
35
  export * from "./NavLinks"
22
36
 
23
37
  export * from "./Pre"
@@ -26,7 +40,15 @@ export * from "./Steps"
26
40
 
27
41
  export * from "./Table"
28
42
 
29
- export * from "./Tabs"
43
+ // export * from "./Tabs"
44
+
45
+ export * from "./Text"
46
+
47
+ export * from "./TocCard"
30
48
 
31
49
  export * from "./UnderlineNav"
32
50
 
51
+ export * from "./Update"
52
+
53
+ export * from "./VideoGuide"
54
+