@xyd-js/components 0.1.0-xyd.1 → 0.1.0-xyd.11

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 (405) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/LICENSE +21 -0
  3. package/dist/CTABanner-BLDHbq5h.js +2 -0
  4. package/dist/CTABanner-BLDHbq5h.js.map +1 -0
  5. package/dist/CTABanner-n3vc4xW5.js +2 -0
  6. package/dist/CTABanner-n3vc4xW5.js.map +1 -0
  7. package/dist/CodeSample-CVki5fdQ.js +2 -0
  8. package/dist/CodeSample-CVki5fdQ.js.map +1 -0
  9. package/dist/CodeSample-Dkob5gWa.js +2 -0
  10. package/dist/CodeSample-Dkob5gWa.js.map +1 -0
  11. package/dist/HomeView-DHdqouwJ.js +2 -0
  12. package/dist/HomeView-DHdqouwJ.js.map +1 -0
  13. package/dist/HomeView-TDx2tcP_.js +2 -0
  14. package/dist/HomeView-TDx2tcP_.js.map +1 -0
  15. package/dist/UnderlineNav-9lJPvnIp.js +2 -0
  16. package/dist/UnderlineNav-9lJPvnIp.js.map +1 -0
  17. package/dist/UnderlineNav-VqB7jDQD.js +2 -0
  18. package/dist/UnderlineNav-VqB7jDQD.js.map +1 -0
  19. package/dist/_rollupPluginBabelHelpers-C8nLsqZ7.js +2 -0
  20. package/dist/_rollupPluginBabelHelpers-C8nLsqZ7.js.map +1 -0
  21. package/dist/_rollupPluginBabelHelpers-CrdNG0jb.js +2 -0
  22. package/dist/_rollupPluginBabelHelpers-CrdNG0jb.js.map +1 -0
  23. package/dist/brand.d.ts +11 -10
  24. package/dist/brand.js +2 -1
  25. package/dist/brand.js.map +1 -0
  26. package/dist/coder/themes/cosmo-light.d.ts +5 -0
  27. package/dist/coder/themes/cosmo-light.js +2 -0
  28. package/dist/coder/themes/cosmo-light.js.map +1 -0
  29. package/dist/coder.d.ts +52 -3
  30. package/dist/coder.js +2 -1
  31. package/dist/coder.js.map +1 -0
  32. package/dist/content.d.ts +103 -37
  33. package/dist/content.js +2 -1
  34. package/dist/content.js.map +1 -0
  35. package/dist/index-TkBHKzGT.js +2 -0
  36. package/dist/index-TkBHKzGT.js.map +1 -0
  37. package/dist/index-YH6Q3iH2.js +2 -0
  38. package/dist/index-YH6Q3iH2.js.map +1 -0
  39. package/dist/index.css +217 -135
  40. package/dist/index.d.ts +1 -1
  41. package/dist/index.js +1 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/layouts.d.ts +12 -1
  44. package/dist/layouts.js +2 -1
  45. package/dist/layouts.js.map +1 -0
  46. package/dist/pages.d.ts +2 -1
  47. package/dist/pages.js +2 -1
  48. package/dist/pages.js.map +1 -0
  49. package/dist/{tslib.es6-B1gizQU6.js → tslib.es6-BI9zka_a.js} +1 -0
  50. package/dist/tslib.es6-BI9zka_a.js.map +1 -0
  51. package/dist/{tslib.es6-CMPV4d4T.js → tslib.es6-sxmRJynD.js} +1 -0
  52. package/dist/tslib.es6-sxmRJynD.js.map +1 -0
  53. package/dist/views.d.ts +2 -1
  54. package/dist/views.js +2 -1
  55. package/dist/views.js.map +1 -0
  56. package/dist/writer.d.ts +62 -8
  57. package/dist/writer.js +2 -1
  58. package/dist/writer.js.map +1 -0
  59. package/package.json +21 -14
  60. package/rollup.config.js +53 -8
  61. package/src/brand/Button/Button.styles.tsx +31 -0
  62. package/src/brand/Button/Button.tsx +3 -35
  63. package/src/brand/CTABanner/CTABanner.styles.tsx +82 -0
  64. package/src/brand/CTABanner/CTABanner.tsx +34 -112
  65. package/src/brand/Footer/Footer.styles.tsx +21 -0
  66. package/src/brand/Footer/Footer.tsx +4 -24
  67. package/src/brand/TODO.md +1 -0
  68. package/src/coder/Code/Code.styles.tsx +47 -0
  69. package/src/coder/Code/Code.tsx +76 -0
  70. package/src/coder/Code/CodeLoader.tsx +10 -0
  71. package/src/coder/Code/annotations.tsx +31 -0
  72. package/src/coder/Code/highlight.ts +170 -0
  73. package/src/coder/Code/index.ts +15 -0
  74. package/src/coder/CodeCopy/CodeCopy.styles.tsx +19 -0
  75. package/src/coder/CodeCopy/CodeCopy.tsx +2 -4
  76. package/src/coder/CodeSample/CodeSample.tsx +42 -133
  77. package/src/coder/CodeSample/index.ts +0 -1
  78. package/src/coder/CodeSample/withLocalStored.tsx +1 -1
  79. package/src/coder/CodeTabs/CodeTabs.styles.tsx +104 -0
  80. package/src/coder/CodeTabs/CodeTabs.tsx +95 -0
  81. package/src/coder/CodeTabs/index.ts +6 -0
  82. package/src/coder/CodeTheme/CodeTheme.tsx +79 -0
  83. package/src/coder/CodeTheme/index.ts +8 -0
  84. package/src/coder/hooks/highlight.ts +182 -0
  85. package/src/coder/index.ts +31 -1
  86. package/src/coder/{CodeSample/default-theme.ts → themes/cosmo-light.ts} +3 -2
  87. package/src/content/Anchor/Anchor.styles.tsx +5 -0
  88. package/src/content/Anchor/Anchor.tsx +4 -14
  89. package/src/content/Content/Content.styles.tsx +9 -0
  90. package/src/content/Content/Content.tsx +4 -11
  91. package/src/content/Content.tsx +48 -6
  92. package/src/content/Subtitle/Subtitle.styles.ts +8 -0
  93. package/src/content/Subtitle/Subtitle.tsx +2 -11
  94. package/src/layouts/Layout.styles.tsx +135 -131
  95. package/src/layouts/Layout.tsx +21 -23
  96. package/src/layouts/LayoutPrimary/LayoutPrimary.styles.tsx +341 -0
  97. package/src/layouts/LayoutPrimary/LayoutPrimary.tsx +157 -0
  98. package/src/layouts/LayoutPrimary/index.ts +5 -0
  99. package/src/layouts/index.ts +7 -1
  100. package/src/pages/HomePage/HomePage.styles.tsx +16 -0
  101. package/src/pages/HomePage/HomePage.tsx +7 -21
  102. package/src/pages/TODO.md +1 -0
  103. package/src/pages/index.ts +1 -0
  104. package/src/ui/Loader/Loader.styles.tsx +54 -0
  105. package/src/ui/Loader/Loader.tsx +26 -0
  106. package/src/ui/TODO.md +2 -0
  107. package/src/ui/index.ts +1 -0
  108. package/src/utils/useStyle.ts +19 -0
  109. package/src/views/HomeView/HomeView.styles.tsx +37 -0
  110. package/src/views/HomeView/HomeView.tsx +5 -45
  111. package/src/views/TODO.md +1 -0
  112. package/src/views/index.ts +1 -0
  113. package/src/writer/Badge/Badge.styles.tsx +31 -26
  114. package/src/writer/Badge/Badge.tsx +42 -9
  115. package/src/writer/Blockquote/Blockquote.styles.tsx +6 -8
  116. package/src/writer/Blockquote/Blockquote.tsx +2 -2
  117. package/src/writer/Breadcrumbs/Breadcrumbs.styles.ts +27 -26
  118. package/src/writer/Breadcrumbs/Breadcrumbs.tsx +5 -5
  119. package/src/writer/Callout/Callout.styles.tsx +44 -48
  120. package/src/writer/Callout/Callout.tsx +5 -5
  121. package/src/writer/Code/Code.styles.tsx +11 -13
  122. package/src/writer/Code/Code.tsx +2 -2
  123. package/src/writer/Details/Details.styles.tsx +102 -74
  124. package/src/writer/Details/Details.tsx +46 -30
  125. package/src/writer/GuideCard/GuideCard.styles.tsx +116 -112
  126. package/src/writer/GuideCard/GuideCard.tsx +19 -19
  127. package/src/writer/Heading/Heading.styles.tsx +65 -61
  128. package/src/writer/Heading/Heading.tsx +11 -11
  129. package/src/writer/Hr/Hr.styles.tsx +3 -5
  130. package/src/writer/Hr/Hr.tsx +2 -2
  131. package/src/writer/Icon/index.tsx +243 -0
  132. package/src/writer/NavLinks/NavLinks.styles.ts +30 -30
  133. package/src/writer/NavLinks/NavLinks.tsx +6 -6
  134. package/src/writer/Pre/Pre.styles.tsx +8 -10
  135. package/src/writer/Pre/Pre.tsx +2 -2
  136. package/src/writer/Steps/Steps.styles.tsx +30 -31
  137. package/src/writer/Steps/Steps.tsx +3 -4
  138. package/src/writer/Table/Table.styles.tsx +32 -31
  139. package/src/writer/Table/Table.tsx +5 -5
  140. package/src/writer/Table/TableV2.styles.tsx +117 -0
  141. package/src/writer/Table/TableV2.tsx +83 -0
  142. package/src/writer/Table/index.ts +4 -0
  143. package/src/writer/Tabs/Tabs.styles.tsx +60 -63
  144. package/src/writer/Tabs/Tabs.tsx +11 -16
  145. package/src/writer/UnderlineNav/UnderlineNav.styles.tsx +44 -42
  146. package/src/writer/UnderlineNav/UnderlineNav.tsx +5 -5
  147. package/tsconfig.json +2 -3
  148. package/dist/CTABanner-CYKba2Vn.js +0 -1
  149. package/dist/CTABanner-hV6NH0Xf.js +0 -1
  150. package/dist/CodeSample-D1QMQt89.js +0 -1
  151. package/dist/CodeSample-DLJNHIaK.js +0 -1
  152. package/dist/CodeSample-DZq0_qWL.js +0 -1
  153. package/dist/Footer-CkBDl828.js +0 -1
  154. package/dist/HomeView-CEgDQeAf.js +0 -1
  155. package/dist/UnderlineNav-BaOK-iez.js +0 -1
  156. package/dist/UnderlineNav-D5zXLK6j.js +0 -1
  157. package/dist/UnderlineNav-DGzjCvkM.js +0 -1
  158. package/dist/abap-DsN9RuMZ.js +0 -1
  159. package/dist/actionscript-3-B1SSyZyS.js +0 -1
  160. package/dist/ada-D_J1lW-E.js +0 -1
  161. package/dist/angular-html-CYREiUrW.js +0 -1
  162. package/dist/angular-ts-DcAOu8WU.js +0 -1
  163. package/dist/apache-CCuSaqCk.js +0 -1
  164. package/dist/apex-DblqgZJW.js +0 -1
  165. package/dist/apl-PFYbmQM7.js +0 -1
  166. package/dist/applescript-CxR8VFYt.js +0 -1
  167. package/dist/ara-DyvEMt1M.js +0 -1
  168. package/dist/asciidoc-CnwoPPuH.js +0 -1
  169. package/dist/asm-CjptKFp1.js +0 -1
  170. package/dist/astro-suE8bk8k.js +0 -1
  171. package/dist/awk-DCM8RPoH.js +0 -1
  172. package/dist/ballerina-Cj78GSWA.js +0 -1
  173. package/dist/bat-DOoDZywo.js +0 -1
  174. package/dist/beancount-t-WR86_8.js +0 -1
  175. package/dist/berry-B4bZSCCn.js +0 -1
  176. package/dist/bibtex-BrVhJY3k.js +0 -1
  177. package/dist/bicep-B9mKM727.js +0 -1
  178. package/dist/blade-C5Z797nx.js +0 -1
  179. package/dist/c-DAjGiO5B.js +0 -1
  180. package/dist/cadence-PrerV_VN.js +0 -1
  181. package/dist/clarity-BHTd5LJm.js +0 -1
  182. package/dist/clojure-CfEyl-7j.js +0 -1
  183. package/dist/cmake-CRA2Enzy.js +0 -1
  184. package/dist/cobol-BnLJxYQT.js +0 -1
  185. package/dist/codeowners-BvrirGey.js +0 -1
  186. package/dist/codeql-B2c2mBK0.js +0 -1
  187. package/dist/coffee-CG62yMWj.js +0 -1
  188. package/dist/common-lisp-CN6bltgb.js +0 -1
  189. package/dist/cpp-BbrQ837u.js +0 -1
  190. package/dist/crystal-rvb5jzSz.js +0 -1
  191. package/dist/csharp-CUz8u4K7.js +0 -1
  192. package/dist/css-JK7NOE59.js +0 -1
  193. package/dist/csv-CA_RykxK.js +0 -1
  194. package/dist/cue-AyD8vP8S.js +0 -1
  195. package/dist/cypher-eVjUZ0JC.js +0 -1
  196. package/dist/d-D1E5UK87.js +0 -1
  197. package/dist/dark-plus-C6xVaa39.js +0 -1
  198. package/dist/dart-DofOkkdM.js +0 -1
  199. package/dist/dax-DqGHRpF4.js +0 -1
  200. package/dist/desktop-j1oT-0Fo.js +0 -1
  201. package/dist/diff-ChebWHqI.js +0 -1
  202. package/dist/docker-BU6yAGy2.js +0 -1
  203. package/dist/dotenv-GyMvMNRw.js +0 -1
  204. package/dist/dracula-DUKRH7Zb.js +0 -1
  205. package/dist/dracula-soft-MlIR18G6.js +0 -1
  206. package/dist/dream-maker-BsQ1dbNp.js +0 -1
  207. package/dist/edge-F-AR7ZfW.js +0 -1
  208. package/dist/elixir-k4xxGl4V.js +0 -1
  209. package/dist/elm-CInOOHq9.js +0 -1
  210. package/dist/emacs-lisp-C6yIvom4.js +0 -1
  211. package/dist/erb-3pxr-NQS.js +0 -1
  212. package/dist/erlang-pmWC-Wee.js +0 -1
  213. package/dist/fennel-DViJm-jY.js +0 -1
  214. package/dist/fish-XcExlNEH.js +0 -1
  215. package/dist/fluent-DuJOAG6K.js +0 -1
  216. package/dist/fortran-fixed-form-Db5I_UFX.js +0 -1
  217. package/dist/fortran-free-form-B2xyqK-y.js +0 -1
  218. package/dist/fsharp-is-Hk3Eq.js +0 -1
  219. package/dist/gdresource-RuRLtBIa.js +0 -1
  220. package/dist/gdscript-pJ_75zwI.js +0 -1
  221. package/dist/gdshader-C5a9x3vh.js +0 -1
  222. package/dist/genie-BQ1oppDb.js +0 -1
  223. package/dist/gherkin-CuOELy7c.js +0 -1
  224. package/dist/git-commit-3zS8hqVZ.js +0 -1
  225. package/dist/git-rebase-DbS4r3GX.js +0 -1
  226. package/dist/github-dark-MxM60tcF.js +0 -1
  227. package/dist/github-dark-dimmed-DDWwGITy.js +0 -1
  228. package/dist/github-from-css-3tseHBGr.js +0 -1
  229. package/dist/github-light-pTwVS4k8.js +0 -1
  230. package/dist/gleam-DNxiWDAA.js +0 -1
  231. package/dist/glimmer-js-BGxcWjEE.js +0 -1
  232. package/dist/glimmer-ts-BB1An-Xq.js +0 -1
  233. package/dist/glsl-DaDHpxzv.js +0 -1
  234. package/dist/gnuplot-B1t-F_Gz.js +0 -1
  235. package/dist/go-BiVONvim.js +0 -1
  236. package/dist/graphql-LpWkIzuc.js +0 -1
  237. package/dist/groovy-DcxmRonw.js +0 -1
  238. package/dist/hack-BCsHcJ0e.js +0 -1
  239. package/dist/haml-CXlzR84c.js +0 -1
  240. package/dist/handlebars-DLTopqNS.js +0 -1
  241. package/dist/haskell-35U1u5gK.js +0 -1
  242. package/dist/haxe-ssN4Oy09.js +0 -1
  243. package/dist/hcl-kzI--7Cv.js +0 -1
  244. package/dist/hjson-pR2iiFsp.js +0 -1
  245. package/dist/hlsl-8PIy5U5-.js +0 -1
  246. package/dist/html-BEHbZ4zc.js +0 -1
  247. package/dist/html-derivative-K5xYNXck.js +0 -1
  248. package/dist/http-Cd2N6YgB.js +0 -1
  249. package/dist/hxml-BiAYlMbG.js +0 -1
  250. package/dist/hy-Cg5rcmur.js +0 -1
  251. package/dist/imba-DIe-G4Fn.js +0 -1
  252. package/dist/index-B7QE1KUr.js +0 -1
  253. package/dist/index-BE4Aq8NU.js +0 -1
  254. package/dist/index-CpFJxv5e.js +0 -1
  255. package/dist/index-DMAgLttD.js +0 -1
  256. package/dist/index-byGIVYaJ.js +0 -1
  257. package/dist/index-eU5so3Si.js +0 -1
  258. package/dist/ini-H0Ga-buI.js +0 -1
  259. package/dist/java-DoE_enjS.js +0 -1
  260. package/dist/javascript-__QKtyFe.js +0 -1
  261. package/dist/jinja-UYHlv864.js +0 -1
  262. package/dist/jison-B9nCySXt.js +0 -1
  263. package/dist/json-B7oi-vA0.js +0 -1
  264. package/dist/json5-BetPwqJO.js +0 -1
  265. package/dist/jsonc-pWWkBlCi.js +0 -1
  266. package/dist/jsonl-B6mt3pJZ.js +0 -1
  267. package/dist/jsonnet-CoMYTNCI.js +0 -1
  268. package/dist/jssm-Cid3TtQ5.js +0 -1
  269. package/dist/jsx-Ckobzlnq.js +0 -1
  270. package/dist/julia-C8xlDV3I.js +0 -1
  271. package/dist/kotlin-DvN1jcCb.js +0 -1
  272. package/dist/kusto-BCF_-dC3.js +0 -1
  273. package/dist/latex-DRFLltbj.js +0 -1
  274. package/dist/lean-DNZ3POMR.js +0 -1
  275. package/dist/less-XiEW6aqg.js +0 -1
  276. package/dist/light-plus-BnkOXVnc.js +0 -1
  277. package/dist/liquid-B40PlvwD.js +0 -1
  278. package/dist/log-xo3MDRlF.js +0 -1
  279. package/dist/logo-DTYzs3BE.js +0 -1
  280. package/dist/lua-BDEQNtpi.js +0 -1
  281. package/dist/luau-B1E5PlN9.js +0 -1
  282. package/dist/make-DtNOxXXX.js +0 -1
  283. package/dist/markdown-B6FKqc-0.js +0 -1
  284. package/dist/marko-mRmYVKe_.js +0 -1
  285. package/dist/material-darker-DFW2iB51.js +0 -1
  286. package/dist/material-default-BFApb2Ag.js +0 -1
  287. package/dist/material-from-css-bTkjEQjF.js +0 -1
  288. package/dist/material-lighter-CYEL5tGv.js +0 -1
  289. package/dist/material-ocean-BhuQqQbt.js +0 -1
  290. package/dist/material-palenight-B_DfQHjY.js +0 -1
  291. package/dist/matlab-BovMnqtG.js +0 -1
  292. package/dist/mdc-DIkT1TyN.js +0 -1
  293. package/dist/mdx-CxAyQTjI.js +0 -1
  294. package/dist/mermaid-i0z8tyOx.js +0 -1
  295. package/dist/min-dark-BE2n4wJj.js +0 -1
  296. package/dist/min-light-BJgErz0d.js +0 -1
  297. package/dist/mojo-C-lVJL5A.js +0 -1
  298. package/dist/monokai-eaa8L1cq.js +0 -1
  299. package/dist/move-C3Zui0bc.js +0 -1
  300. package/dist/narrat-THKEk6T8.js +0 -1
  301. package/dist/nextflow-CtnPKe-i.js +0 -1
  302. package/dist/nginx-CGEFMta9.js +0 -1
  303. package/dist/nim-C8mPZfis.js +0 -1
  304. package/dist/nix-JCk4_G_4.js +0 -1
  305. package/dist/nord-Doy8uXi5.js +0 -1
  306. package/dist/nushell-CX0evzNH.js +0 -1
  307. package/dist/objective-c-CRUJa2eY.js +0 -1
  308. package/dist/objective-cpp-CCYeWv4r.js +0 -1
  309. package/dist/ocaml-DGJqpgv5.js +0 -1
  310. package/dist/one-dark-pro-u8LD4Pzz.js +0 -1
  311. package/dist/pascal-DBmHAUBB.js +0 -1
  312. package/dist/perl-DeqR1cIo.js +0 -1
  313. package/dist/php-DgxB75vC.js +0 -1
  314. package/dist/plsql-7JGOsii8.js +0 -1
  315. package/dist/po-iKcL_E8G.js +0 -1
  316. package/dist/poimandres-CA110GE1.js +0 -1
  317. package/dist/postcss-Da2iRvoL.js +0 -1
  318. package/dist/powerquery-DPeggvzL.js +0 -1
  319. package/dist/powershell-CaJNoU_J.js +0 -1
  320. package/dist/prisma-CJb-Lxak.js +0 -1
  321. package/dist/prolog-DfSRFLOg.js +0 -1
  322. package/dist/proto-CQScmtFO.js +0 -1
  323. package/dist/pug-C812gnD5.js +0 -1
  324. package/dist/puppet-B1xO3kuT.js +0 -1
  325. package/dist/purescript-CNYgFxmJ.js +0 -1
  326. package/dist/python-D9HM-cQI.js +0 -1
  327. package/dist/qml-DJVpVDAW.js +0 -1
  328. package/dist/qmldir-CHfKHU4H.js +0 -1
  329. package/dist/qss-C4aoutlf.js +0 -1
  330. package/dist/r-CqYxKsjx.js +0 -1
  331. package/dist/racket-DUEDYd32.js +0 -1
  332. package/dist/raku-D9-XDqRz.js +0 -1
  333. package/dist/razor-3rNKfrrf.js +0 -1
  334. package/dist/reg-b5Nk8lNx.js +0 -1
  335. package/dist/regexp-DVRafeF7.js +0 -1
  336. package/dist/rel--gRyHcrO.js +0 -1
  337. package/dist/riscv-C8SxbbN2.js +0 -1
  338. package/dist/rose-pine-DPGqNU4b.js +0 -1
  339. package/dist/rose-pine-dawn-DymfQU_V.js +0 -1
  340. package/dist/rose-pine-moon-BQUAYUon.js +0 -1
  341. package/dist/rst-CmHkCKmJ.js +0 -1
  342. package/dist/ruby-Q-VH1uZA.js +0 -1
  343. package/dist/rust-ClS6MAIk.js +0 -1
  344. package/dist/sas-D3oI_z1n.js +0 -1
  345. package/dist/sass-C7IOYsXa.js +0 -1
  346. package/dist/scala-Bo-OrDK4.js +0 -1
  347. package/dist/scheme-CZPOfAv0.js +0 -1
  348. package/dist/scss-CrrfDAqb.js +0 -1
  349. package/dist/shaderlab-BHdRvEKr.js +0 -1
  350. package/dist/shellscript-CGx4lQcC.js +0 -1
  351. package/dist/shellsession-DNVyDTwx.js +0 -1
  352. package/dist/slack-dark-BdYiGGaR.js +0 -1
  353. package/dist/slack-ochin-D47ofNk9.js +0 -1
  354. package/dist/smalltalk-CSwwxfh6.js +0 -1
  355. package/dist/solarized-dark-B_ueb431.js +0 -1
  356. package/dist/solarized-light-ClfNXI7y.js +0 -1
  357. package/dist/solidity-DTxkUBi_.js +0 -1
  358. package/dist/soy-CWDkaEw-.js +0 -1
  359. package/dist/sparql-iRDOfWr5.js +0 -1
  360. package/dist/splunk-BEkc8uO-.js +0 -1
  361. package/dist/sql-BJ_taBmN.js +0 -1
  362. package/dist/ssh-config-Df9b2KGk.js +0 -1
  363. package/dist/stata-D3UR29Ve.js +0 -1
  364. package/dist/stylus-CdDBOxWC.js +0 -1
  365. package/dist/svelte-DyEd0oQk.js +0 -1
  366. package/dist/swift-BxhiGBjX.js +0 -1
  367. package/dist/system-verilog-CetQnQ4g.js +0 -1
  368. package/dist/systemd-BnD0vcw3.js +0 -1
  369. package/dist/tasl-DVvrvOfd.js +0 -1
  370. package/dist/tcl-DLSUI_zn.js +0 -1
  371. package/dist/templ-DSz21pzx.js +0 -1
  372. package/dist/terraform-EK_dQKQM.js +0 -1
  373. package/dist/tex-BM4Fklib.js +0 -1
  374. package/dist/toml-kuUrbkod.js +0 -1
  375. package/dist/ts-tags-By7dzkmj.js +0 -1
  376. package/dist/tslib.es6-DlLz3CkS.js +0 -1
  377. package/dist/tsv-BCJoRl62.js +0 -1
  378. package/dist/tsx-BjuLHzrJ.js +0 -1
  379. package/dist/turtle-CufS_WpN.js +0 -1
  380. package/dist/twig-JhO6NGAT.js +0 -1
  381. package/dist/txt-C4POgh3W.js +0 -1
  382. package/dist/typescript-B1VYfqvp.js +0 -1
  383. package/dist/typespec-CZzVsQ68.js +0 -1
  384. package/dist/typst-DLkGCZHs.js +0 -1
  385. package/dist/v-DNo0Cbkd.js +0 -1
  386. package/dist/vala-J9aWDLgT.js +0 -1
  387. package/dist/vb-CukbP-ad.js +0 -1
  388. package/dist/verilog-C7Ns4wPb.js +0 -1
  389. package/dist/vhdl-D94Lw1Fr.js +0 -1
  390. package/dist/viml-gaixGh_X.js +0 -1
  391. package/dist/vue-BX9d0W3t.js +0 -1
  392. package/dist/vue-html-CPRiJ8jH.js +0 -1
  393. package/dist/vyper-Ckj8wEzF.js +0 -1
  394. package/dist/wasm-BIwf60De.js +0 -1
  395. package/dist/wenyan-8NGlujRm.js +0 -1
  396. package/dist/wgsl-BcYJIOdN.js +0 -1
  397. package/dist/wikitext-B892rECa.js +0 -1
  398. package/dist/wolfram-CsrnIKPa.js +0 -1
  399. package/dist/xml-bnQL-E2F.js +0 -1
  400. package/dist/xsl-n4ZnN1T3.js +0 -1
  401. package/dist/yaml-8btRgevg.js +0 -1
  402. package/dist/zenscript-C4tShGxI.js +0 -1
  403. package/dist/zig-YA915rBO.js +0 -1
  404. package/src/coder/CodeCopy/CodeCopy.style.tsx +0 -21
  405. package/src/coder/CodeSample/CodeSample.styles.tsx +0 -137
@@ -0,0 +1,37 @@
1
+ import {css} from "@linaria/core";
2
+
3
+ export const HomeViewHost = css`
4
+ display: flex;
5
+ flex-direction: column;
6
+ min-height: 100vh;
7
+ `;
8
+
9
+ export const HomeViewBodyHost = css`
10
+ background: radial-gradient(circle, hsl(0 0% 9% / .3) 1px, transparent 1px);
11
+ backdrop-filter: sepia(10%);
12
+ background-size: 30px 30px;
13
+ padding: 60px;
14
+ flex: 1;
15
+ `;
16
+
17
+ export const HomeViewBodyHostSecondary = css`
18
+ background: repeating-linear-gradient(to right, hsl(0 0% 9% / .1), hsl(0 0% 9% / .1) 1px, transparent 1px, transparent 50px), repeating-linear-gradient(to bottom, hsl(0 0% 9% / .1), hsl(0 0% 9% / .1) 1px, transparent 1px, transparent 50px);
19
+ `;
20
+
21
+ export const HomeViewBodyContent = css`
22
+ width: 1200px;
23
+ margin: 0 auto;
24
+ display: flex;
25
+ flex-direction: column;
26
+ gap: 80px;
27
+
28
+ @media (max-width: 1200px) {
29
+ width: 100%;
30
+ padding: 0 20px;
31
+ }
32
+
33
+ @media (max-width: 768px) {
34
+ width: 100%;
35
+ padding: 0 10px;
36
+ }
37
+ `;
@@ -1,13 +1,5 @@
1
1
  import React from "react"
2
- import {css} from "@linaria/core";
3
-
4
- const $homeView = {
5
- host: css`
6
- display: flex;
7
- flex-direction: column;
8
- min-height: 100vh;
9
- `,
10
- }
2
+ import * as cn from "./HomeView.styles";
11
3
 
12
4
  export interface HomeViewProps {
13
5
  header: React.ReactNode
@@ -16,43 +8,13 @@ export interface HomeViewProps {
16
8
  }
17
9
 
18
10
  export function HomeView({header, body, footer}: HomeViewProps) {
19
- return <div className={$homeView.host}>
11
+ return <div className={cn.HomeViewHost}>
20
12
  {header}
21
13
  {body}
22
14
  {footer}
23
15
  </div>
24
16
  }
25
17
 
26
- const $body = {
27
- host: css`
28
- background: radial-gradient(circle, hsl(0 0% 9% / .3) 1px, transparent 1px);
29
- backdrop-filter: sepia(10%);
30
- background-size: 30px 30px;
31
- padding: 60px;
32
- flex: 1;
33
- `,
34
- host$$secondary: css`
35
- background: repeating-linear-gradient(to right, hsl(0 0% 9% / .1), hsl(0 0% 9% / .1) 1px, transparent 1px, transparent 50px), repeating-linear-gradient(to bottom, hsl(0 0% 9% / .1), hsl(0 0% 9% / .1) 1px, transparent 1px, transparent 50px);
36
- `,
37
- body: css`
38
- width: 1200px;
39
- margin: 0 auto;
40
- display: flex;
41
- flex-direction: column;
42
- gap: 80px;
43
-
44
- @media (max-width: 1200px) {
45
- width: 100%;
46
- padding: 0 20px;
47
- }
48
-
49
- @media (max-width: 768px) {
50
- width: 100%;
51
- padding: 0 10px;
52
- }
53
- `
54
- }
55
-
56
18
  export interface HomeViewBodyProps {
57
19
  children: React.ReactNode
58
20
  kind?: "secondary"
@@ -60,12 +22,10 @@ export interface HomeViewBodyProps {
60
22
 
61
23
  HomeView.Body = function HomeViewBody({children, kind}: HomeViewBodyProps) {
62
24
  return <div className={`
63
- ${$body.host}
64
- ${kind === "secondary" ? $body.host$$secondary : ""}
25
+ ${cn.HomeViewBodyHost}
26
+ ${kind === "secondary" ? cn.HomeViewBodyHostSecondary : ""}
65
27
  `}>
66
- <div className={`
67
- ${$body.body}
68
- `}>
28
+ <div className={cn.HomeViewBodyContent}>
69
29
  {children}
70
30
  </div>
71
31
  </div>
@@ -0,0 +1 @@
1
+ move to `@xyd-js/pages` ?
@@ -1 +1,2 @@
1
+ // TODO: rename to @xyd-js/components/pages
1
2
  export * from "./HomeView";
@@ -1,29 +1,34 @@
1
1
  import {css} from "@linaria/core";
2
2
 
3
- export const $badge = {
4
- host: css`
5
- display: inline-flex;
6
- align-items: center;
7
- line-height: 1rem;
8
- font-style: normal;
9
- font-weight: 500;
10
- letter-spacing: normal;
11
- white-space: nowrap;
12
- text-transform: none;
13
- `,
14
- host$$warning: css`
15
- color: #000;
16
- background-color: #f8d047;
17
- `,
18
- host$$sm: css`
19
- font-size: 12px;
20
- height: 18px;
21
- padding: 0 6px;
22
- gap: 3px;
23
- border-radius: 6px;
24
- `,
3
+ export const BadgeHost = css`
4
+ display: inline-flex;
5
+ align-items: center;
6
+ line-height: 1rem;
7
+ font-style: normal;
8
+ font-weight: 500;
9
+ letter-spacing: normal;
10
+ white-space: nowrap;
11
+ text-transform: none;
12
+ `;
25
13
 
26
- item: css`
27
- position: relative;
28
- `
29
- }
14
+ export const BadgeHostWarning = css`
15
+ color: #434e4e;
16
+ background-color: #ffffe1
17
+ `;
18
+
19
+ export const BadgeHostInfo = css`
20
+ color: #fff;
21
+ background-color: #1971a8;
22
+ `;
23
+
24
+ export const BadgeHostSm = css`
25
+ font-size: 12px;
26
+ height: 18px;
27
+ padding: 0 6px;
28
+ gap: 3px;
29
+ border-radius: 6px;
30
+ `;
31
+
32
+ export const BadgeItem = css`
33
+ position: relative;
34
+ `;
@@ -1,28 +1,61 @@
1
1
  import React from "react"
2
-
3
- import {$badge} from "./Badge.styles";
2
+ import * as cn from "./Badge.styles";
4
3
 
5
4
  export interface BadgeProps {
6
- children: React.ReactNode;
5
+ className?: string;
6
+ children?: React.ReactNode;
7
7
 
8
8
  size?: "sm"
9
- kind?: "warning"
9
+ kind?: "warning" | "info"
10
10
  }
11
11
 
12
12
  export function Badge({
13
+ className,
13
14
  children,
14
15
  size = "sm",
15
16
  kind = "warning"
16
17
  }: BadgeProps) {
17
18
  return <div className={`
18
- ${$badge.host}
19
+ ${cn.BadgeHost}
20
+
21
+ ${size === "sm" && cn.BadgeHostSm}
22
+
23
+ ${kind === "warning" && cn.BadgeHostWarning}
19
24
 
20
- ${size === "sm" && $badge.host$$sm}
25
+ ${kind === "info" && cn.BadgeHostInfo}
21
26
 
22
- ${kind === "warning" && $badge.host$$warning}
27
+ ${className || ''}
23
28
  `}>
24
- <span className={$badge.item}>
29
+ <span className={cn.BadgeItem}>
25
30
  {children}
26
31
  </span>
27
32
  </div>
28
- }
33
+ }
34
+
35
+ // TODO: below is a concept only
36
+ // Export styles for useStyle hook
37
+ // Badge.styles = cn;
38
+ // export type BadgeStyles = typeof cn;
39
+
40
+ // Example usage:
41
+ /*
42
+ import { useStyle } from '@xyd/components/utils';
43
+ import { Badge, BadgeStyles } from '@xyd/components/writer';
44
+
45
+ const styled = useStyle<BadgeStyles>(Badge);
46
+
47
+ styled.BadgeHost`
48
+ background-color: red;
49
+ `;
50
+ */
51
+
52
+ // usage
53
+
54
+ // import {Content} from "@xyd-js/components/writer"
55
+ // const styled = useStyle(Badge)
56
+
57
+ // styled.BadgeHostInfo`
58
+ // background-color: red;
59
+ // `
60
+
61
+ // export default styled
@@ -1,10 +1,8 @@
1
1
  import {css} from "@linaria/core";
2
2
 
3
- export const $blockquote = {
4
- host: css`
5
- color: rgb(55 65 81 / 1);
6
- font-style: italic;
7
- border-color: rgb(209 213 219 / 1);
8
- margin: 0;
9
- `
10
- }
3
+ export const BlockquoteHost = css`
4
+ color: rgb(55 65 81 / 1);
5
+ font-style: italic;
6
+ border-color: rgb(209 213 219 / 1);
7
+ margin: 0;
8
+ `;
@@ -1,13 +1,13 @@
1
1
  import React from "react"
2
2
 
3
- import {$blockquote} from "./Blockquote.styles";
3
+ import * as cn from "./Blockquote.styles";
4
4
 
5
5
  export interface BlockquoteProps {
6
6
  children: React.ReactNode;
7
7
  }
8
8
 
9
9
  export function Blockquote({children}: BlockquoteProps) {
10
- return <blockquote className={$blockquote.host}>
10
+ return <blockquote className={cn.BlockquoteHost}>
11
11
  {children}
12
12
  </blockquote>
13
13
  }
@@ -1,28 +1,29 @@
1
1
  import {css} from "@linaria/core";
2
2
 
3
- export const $breadcrumbs = {
4
- host: css`
5
- display: flex;
6
- overflow: hidden;
7
- margin-top: 0.375rem;
8
- gap: 0.25rem;
9
- align-items: center;
10
- font-size: 0.875rem;
11
- line-height: 1.25rem;
12
- color: #6B7280;
13
- `,
14
- icon: css`
15
- shrink: 0;
16
- width: 0.875rem;
17
- `,
18
- item: css`
19
- white-space: nowrap;
20
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
21
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
22
- transition-duration: 300ms;
23
- `,
24
- item$$active: css`
25
- color: #000;
26
- font-weight: bold;
27
- `
28
- };
3
+ export const BreadcrumbsHost = css`
4
+ display: flex;
5
+ overflow: hidden;
6
+ margin-top: 0.375rem;
7
+ gap: 0.25rem;
8
+ align-items: center;
9
+ font-size: 0.875rem;
10
+ line-height: 1.25rem;
11
+ color: #6B7280;
12
+ `;
13
+
14
+ export const BreadcrumbsIcon = css`
15
+ shrink: 0;
16
+ width: 0.875rem;
17
+ `;
18
+
19
+ export const BreadcrumbsItem = css`
20
+ white-space: nowrap;
21
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
22
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
23
+ transition-duration: 300ms;
24
+ `;
25
+
26
+ export const BreadcrumbsItemActive = css`
27
+ color: #000;
28
+ font-weight: bold;
29
+ `;
@@ -2,7 +2,7 @@ import React, {Fragment} from 'react'
2
2
  import type {ReactElement} from 'react'
3
3
  import {ArrowRightIcon} from '@radix-ui/react-icons'
4
4
 
5
- import {$breadcrumbs} from './Breadcrumbs.styles'
5
+ import * as cn from './Breadcrumbs.styles'
6
6
 
7
7
  function Anchor({children, ...rest}) {
8
8
  return <a {...rest}>
@@ -19,16 +19,16 @@ export interface BreadcrumbsProps {
19
19
 
20
20
  export function Breadcrumbs(props: BreadcrumbsProps): ReactElement {
21
21
  return (
22
- <div className={$breadcrumbs.host}>
22
+ <div className={cn.BreadcrumbsHost}>
23
23
  {props.items.map((item, index) => {
24
24
  const lastActive = index === props.items.length - 1
25
25
 
26
26
  return (
27
27
  <Fragment key={item.href + item.title}>
28
- {index > 0 && <ArrowRightIcon className={$breadcrumbs.icon}/>}
28
+ {index > 0 && <ArrowRightIcon className={cn.BreadcrumbsIcon}/>}
29
29
  <div className={`
30
- ${$breadcrumbs.item}
31
- ${lastActive && $breadcrumbs.item$$active}
30
+ ${cn.BreadcrumbsItem}
31
+ ${lastActive && cn.BreadcrumbsItemActive}
32
32
  `}
33
33
  title={item.title}
34
34
  >
@@ -1,50 +1,46 @@
1
1
  import {css} from "@linaria/core";
2
2
 
3
- export const $callout = {
4
- host: css`
5
- display: inline-flex;
6
- align-items: center;
7
-
8
- position: relative;
9
- width: 100%;
10
- min-width: 275px;
11
- padding: 8px 12px;
12
-
13
- border-radius: 8px;
14
-
15
- text-align: center;
16
-
17
- border: 1px solid #ececf1;
18
- `,
19
- $$neutral: css`
20
- background-color: #f7f7f8;
21
-
22
- border-color: #ececf1;
23
- `
24
- }
25
-
26
- export const $icon = {
27
- host: css`
28
- display: inline-flex;
29
- margin-right: 14px;
30
- flex: 0 0 auto;
31
- align-self: flex-start;
32
-
33
- color: #6e6e80;
34
- font-size: 20px;
35
- margin-top: 2px;
36
- `
37
- }
38
-
39
- export const $message = {
40
- host: css`
41
- color: #353740;
42
- text-align: left;
43
-
44
- flex: 1 1 auto;
45
- `,
46
- body: css`
47
- font-size: 14px;
48
- line-height: 20px;
49
- `
50
- }
3
+ export const CalloutHost = css`
4
+ display: inline-flex;
5
+ align-items: center;
6
+
7
+ position: relative;
8
+ width: 100%;
9
+ min-width: 275px;
10
+ padding: 8px 12px;
11
+
12
+ border-radius: 8px;
13
+
14
+ text-align: center;
15
+
16
+ border: 1px solid #ececf1;
17
+ `;
18
+
19
+ export const CalloutNeutral = css`
20
+ background-color: #f7f7f8;
21
+
22
+ border-color: #ececf1;
23
+ `;
24
+
25
+ export const CalloutIcon = css`
26
+ display: inline-flex;
27
+ margin-right: 14px;
28
+ flex: 0 0 auto;
29
+ align-self: flex-start;
30
+
31
+ color: #6e6e80;
32
+ font-size: 20px;
33
+ margin-top: 2px;
34
+ `;
35
+
36
+ export const CalloutMessage = css`
37
+ color: #353740;
38
+ text-align: left;
39
+
40
+ flex: 1 1 auto;
41
+ `;
42
+
43
+ export const CalloutMessageBody = css`
44
+ font-size: 14px;
45
+ line-height: 20px;
46
+ `;
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
2
 
3
- import {$callout, $icon, $message} from "./Callout.styles";
3
+ import * as cn from "./Callout.styles";
4
4
 
5
5
  export interface CalloutProps {
6
6
  children: React.ReactNode;
@@ -24,12 +24,12 @@ function InfoIcon() {
24
24
  }
25
25
 
26
26
  export function Callout({children}: CalloutProps) {
27
- return <div className={`${$callout.host} ${$callout.$$neutral}`}>
28
- <div className={$icon.host}>
27
+ return <div className={`${cn.CalloutHost} ${cn.CalloutNeutral}`}>
28
+ <div className={cn.CalloutIcon}>
29
29
  <InfoIcon/>
30
30
  </div>
31
- <div className={$message.host}>
32
- <div className={$message.body}>
31
+ <div className={cn.CalloutMessage}>
32
+ <div className={cn.CalloutMessageBody}>
33
33
  {children}
34
34
  </div>
35
35
  </div>
@@ -1,17 +1,15 @@
1
1
  import {css} from "@linaria/core";
2
2
 
3
- export const $code = {
4
- host: css`
5
- display: inline-block;
6
- padding: 0 .3em;
7
- border-radius: 6px;
8
- margin: 0 3px;
9
- border: .5px solid #ececf1;
3
+ export const CodeHost = css`
4
+ display: inline-block;
5
+ padding: 0 .3em;
6
+ border-radius: 6px;
7
+ margin: 0 3px;
8
+ border: .5px solid #ececf1;
10
9
 
11
- font-size: 14px;
12
- font-weight: 500;
13
- line-height: 1.6em;
10
+ font-size: 14px;
11
+ font-weight: 500;
12
+ line-height: 1.6em;
14
13
 
15
- background: linear-gradient(45deg, #f7f7f8 0%, rgba(247, 247, 248, 1) 100%);
16
- `
17
- }
14
+ background: linear-gradient(45deg, #f7f7f8 0%, rgba(247, 247, 248, 1) 100%);
15
+ `;
@@ -1,13 +1,13 @@
1
1
  import React from "react"
2
2
 
3
- import {$code} from "./Code.styles";
3
+ import * as cn from "./Code.styles";
4
4
 
5
5
  export interface CodeProps {
6
6
  children: React.ReactNode;
7
7
  }
8
8
 
9
9
  export function Code({children}: CodeProps) {
10
- return <code className={$code.host}>
10
+ return <code className={cn.CodeHost}>
11
11
  {children}
12
12
  </code>
13
13
  }