@xyd-js/components 0.1.0-xyd.0

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 (356) hide show
  1. package/README.md +3 -0
  2. package/coder.ts +1 -0
  3. package/content.ts +3 -0
  4. package/dist/CTABanner-CWX9isVG.js +1 -0
  5. package/dist/CodeSample-C5YaEpAi.js +1 -0
  6. package/dist/HomeView-CnAj-VYl.js +1 -0
  7. package/dist/UnderlineNav-C8onw9Na.js +1 -0
  8. package/dist/_rollupPluginBabelHelpers-DfQAiTCw.js +1 -0
  9. package/dist/abap-kIO_7z1o.js +1 -0
  10. package/dist/actionscript-3-DiaraCXE.js +1 -0
  11. package/dist/ada-aNFKX2pl.js +1 -0
  12. package/dist/angular-html-y0qIEhS2.js +1 -0
  13. package/dist/angular-ts-Bn_6f37o.js +1 -0
  14. package/dist/apache-Cx7e0H64.js +1 -0
  15. package/dist/apex-CdSCJjuL.js +1 -0
  16. package/dist/apl-BDzWBUim.js +1 -0
  17. package/dist/applescript-CJFkzk5i.js +1 -0
  18. package/dist/ara-BC9R9M5c.js +1 -0
  19. package/dist/asciidoc-lqQQs4M0.js +1 -0
  20. package/dist/asm-QQeI-gwp.js +1 -0
  21. package/dist/astro-BPstp8LF.js +1 -0
  22. package/dist/awk-Cxb7Sqvk.js +1 -0
  23. package/dist/ballerina-G8TyVc6O.js +1 -0
  24. package/dist/bat-UDEmXz-g.js +1 -0
  25. package/dist/beancount-BWg86rhE.js +1 -0
  26. package/dist/berry-5E5uGOYg.js +1 -0
  27. package/dist/bibtex-CZn_FFnb.js +1 -0
  28. package/dist/bicep-D_G0XT5J.js +1 -0
  29. package/dist/blade-7dxmctkK.js +1 -0
  30. package/dist/brand.d.ts +30 -0
  31. package/dist/brand.js +1 -0
  32. package/dist/c-CrEz-oYf.js +1 -0
  33. package/dist/cadence-BulSIR1A.js +1 -0
  34. package/dist/clarity-m2OigCMT.js +1 -0
  35. package/dist/clojure-Bpes2rhL.js +1 -0
  36. package/dist/cmake-C4Tr1SQC.js +1 -0
  37. package/dist/cobol-Dp8xGW1S.js +1 -0
  38. package/dist/codeowners-Bs3mpoau.js +1 -0
  39. package/dist/codeql-CvQzaisq.js +1 -0
  40. package/dist/coder.d.ts +19 -0
  41. package/dist/coder.js +1 -0
  42. package/dist/coffee-DOjtyJj_.js +1 -0
  43. package/dist/common-lisp-DGVR8DFi.js +1 -0
  44. package/dist/content.d.ts +225 -0
  45. package/dist/content.js +1 -0
  46. package/dist/cpp-BUT7C4Bo.js +1 -0
  47. package/dist/crystal-BJh9OJ1_.js +1 -0
  48. package/dist/csharp-BhZuAD8H.js +1 -0
  49. package/dist/css-8_G4_UCW.js +1 -0
  50. package/dist/csv-DLRyYdMG.js +1 -0
  51. package/dist/cue-DAgMCCsT.js +1 -0
  52. package/dist/cypher-CtSiSKRh.js +1 -0
  53. package/dist/d-feZJOTtr.js +1 -0
  54. package/dist/dark-plus-Dcn2h2HL.js +1 -0
  55. package/dist/dart-CNOu4aud.js +1 -0
  56. package/dist/dax-Dkp1Uj6t.js +1 -0
  57. package/dist/desktop-CAGQzotA.js +1 -0
  58. package/dist/diff-D6yk3_ZG.js +1 -0
  59. package/dist/docker-BdTrQq0b.js +1 -0
  60. package/dist/dotenv-BeHGAMs7.js +1 -0
  61. package/dist/dracula-BUaMrXr0.js +1 -0
  62. package/dist/dracula-soft-CBx6n76m.js +1 -0
  63. package/dist/dream-maker-BU0sZZmb.js +1 -0
  64. package/dist/edge-D2Tk5tmg.js +1 -0
  65. package/dist/elixir-B-l3Nz-G.js +1 -0
  66. package/dist/elm-Bqm7aRpV.js +1 -0
  67. package/dist/emacs-lisp-BSvpfolf.js +1 -0
  68. package/dist/erb-CwBHxfFV.js +1 -0
  69. package/dist/erlang-B0PtHWg2.js +1 -0
  70. package/dist/fennel-CdN4E9Xo.js +1 -0
  71. package/dist/fish-XrbYjeRx.js +1 -0
  72. package/dist/fluent-zYsEgElv.js +1 -0
  73. package/dist/fortran-fixed-form-CPwX6okW.js +1 -0
  74. package/dist/fortran-free-form-B6Kk9658.js +1 -0
  75. package/dist/fsharp-CbMfVCMr.js +1 -0
  76. package/dist/gdresource-CdRUpBQO.js +1 -0
  77. package/dist/gdscript-CYXv_Ac9.js +1 -0
  78. package/dist/gdshader-CtiaGYI5.js +1 -0
  79. package/dist/genie-C-gOIth7.js +1 -0
  80. package/dist/gherkin-uGsOfG-k.js +1 -0
  81. package/dist/git-commit-CWQvkRNX.js +1 -0
  82. package/dist/git-rebase-BZ0YVJ-O.js +1 -0
  83. package/dist/github-dark-DCm4kydX.js +1 -0
  84. package/dist/github-dark-dimmed-CsRUrOJA.js +1 -0
  85. package/dist/github-from-css-CTRi6tFC.js +1 -0
  86. package/dist/github-light-B2ofRYMU.js +1 -0
  87. package/dist/gleam-C9ZZ3Vp2.js +1 -0
  88. package/dist/glimmer-js-Cuwfndkm.js +1 -0
  89. package/dist/glimmer-ts-D8nR8_k2.js +1 -0
  90. package/dist/glsl-qc_rLvzz.js +1 -0
  91. package/dist/gnuplot-BgHAcd--.js +1 -0
  92. package/dist/go-Dm8VBUM2.js +1 -0
  93. package/dist/graphql-CRmnB6D5.js +1 -0
  94. package/dist/groovy-DJcw8dX4.js +1 -0
  95. package/dist/hack-DYOVz52F.js +1 -0
  96. package/dist/haml-j8Vx_P4q.js +1 -0
  97. package/dist/handlebars-Qz3hgrPG.js +1 -0
  98. package/dist/haskell-DE3vVmXn.js +1 -0
  99. package/dist/haxe-DpuNPTTj.js +1 -0
  100. package/dist/hcl-BvV3VZ9s.js +1 -0
  101. package/dist/hjson-CsTZvU0B.js +1 -0
  102. package/dist/hlsl-BLZumTGu.js +1 -0
  103. package/dist/html-BJsWDmIe.js +1 -0
  104. package/dist/html-derivative-zDWJvwg5.js +1 -0
  105. package/dist/http-BiMppEBd.js +1 -0
  106. package/dist/hxml-DG2jWwyK.js +1 -0
  107. package/dist/hy-C9zVJlJf.js +1 -0
  108. package/dist/imba-DGD1mm8E.js +1 -0
  109. package/dist/index-TKJ66_wI.js +1 -0
  110. package/dist/index.css +135 -0
  111. package/dist/index.d.ts +2 -0
  112. package/dist/index.js +1 -0
  113. package/dist/ini-CU7wgrgh.js +1 -0
  114. package/dist/java-DyOZhX5L.js +1 -0
  115. package/dist/javascript-C0AWZ4eK.js +1 -0
  116. package/dist/jinja-Lc82IfGI.js +1 -0
  117. package/dist/jison-DT7Oqeqm.js +1 -0
  118. package/dist/json-Zoq3rK60.js +1 -0
  119. package/dist/json5-BOFh3mt2.js +1 -0
  120. package/dist/jsonc-CPutX9W5.js +1 -0
  121. package/dist/jsonl-xWfKSBhV.js +1 -0
  122. package/dist/jsonnet-UcnvaLwK.js +1 -0
  123. package/dist/jssm-BRT8_Uqd.js +1 -0
  124. package/dist/jsx-B4WNxrCK.js +1 -0
  125. package/dist/julia-i7_3XSV_.js +1 -0
  126. package/dist/kotlin-B_s0KNy5.js +1 -0
  127. package/dist/kusto-CDr4m-xT.js +1 -0
  128. package/dist/latex-BNB6MZrj.js +1 -0
  129. package/dist/layouts.d.ts +19 -0
  130. package/dist/layouts.js +1 -0
  131. package/dist/lean-2dBp1asm.js +1 -0
  132. package/dist/less-CfPPFFsV.js +1 -0
  133. package/dist/light-plus-glPHycm5.js +1 -0
  134. package/dist/liquid-Bj1DN66U.js +1 -0
  135. package/dist/log-CKSz9t_o.js +1 -0
  136. package/dist/logo-D3UPVeLP.js +1 -0
  137. package/dist/lua-C1EFGxtA.js +1 -0
  138. package/dist/luau-Dvb2LLsw.js +1 -0
  139. package/dist/make-TqphZF-7.js +1 -0
  140. package/dist/markdown-yX62Igf3.js +1 -0
  141. package/dist/marko-LH6NoP97.js +1 -0
  142. package/dist/material-darker-D6whucX3.js +1 -0
  143. package/dist/material-default-DYqS7fqa.js +1 -0
  144. package/dist/material-from-css-DlWo_ZDV.js +1 -0
  145. package/dist/material-lighter-CYQaMsGh.js +1 -0
  146. package/dist/material-ocean-Dl_zLA-F.js +1 -0
  147. package/dist/material-palenight-Cd4X9kqy.js +1 -0
  148. package/dist/matlab-Dy9K5GW8.js +1 -0
  149. package/dist/mdc-DhAfBnnn.js +1 -0
  150. package/dist/mdx-tnT2uTqR.js +1 -0
  151. package/dist/mermaid-aEaCok9S.js +1 -0
  152. package/dist/min-dark-CpapYCVz.js +1 -0
  153. package/dist/min-light-plRN0zW-.js +1 -0
  154. package/dist/mojo-BanaVmFY.js +1 -0
  155. package/dist/monokai-Cs2_BG4b.js +1 -0
  156. package/dist/move-B_kaWhAV.js +1 -0
  157. package/dist/narrat-6tChrAmV.js +1 -0
  158. package/dist/nextflow-BYB6CU6V.js +1 -0
  159. package/dist/nginx-Clr7XfzW.js +1 -0
  160. package/dist/nim-gLesixmv.js +1 -0
  161. package/dist/nix-DCgUXh-o.js +1 -0
  162. package/dist/nord-BHSE8FbR.js +1 -0
  163. package/dist/nushell-DDKGkuZY.js +1 -0
  164. package/dist/objective-c-BsQdhSk0.js +1 -0
  165. package/dist/objective-cpp-B-VZlBXW.js +1 -0
  166. package/dist/ocaml-B19L2xxl.js +1 -0
  167. package/dist/one-dark-pro-AWPQgJbJ.js +1 -0
  168. package/dist/pages.d.ts +30 -0
  169. package/dist/pages.js +1 -0
  170. package/dist/pascal-B0kVBVTU.js +1 -0
  171. package/dist/perl-Bs2cXIO6.js +1 -0
  172. package/dist/php-BgaH_AHK.js +1 -0
  173. package/dist/plsql-CPY7hT9n.js +1 -0
  174. package/dist/po-BszTsnLZ.js +1 -0
  175. package/dist/poimandres-CZF4JUv5.js +1 -0
  176. package/dist/postcss-DQ0frX96.js +1 -0
  177. package/dist/powerquery-BitONm6p.js +1 -0
  178. package/dist/powershell-B_lVHVgu.js +1 -0
  179. package/dist/prisma-CqkE3olT.js +1 -0
  180. package/dist/prolog-Bpuon3aK.js +1 -0
  181. package/dist/proto-C349dup0.js +1 -0
  182. package/dist/pug-Bbf3g_hT.js +1 -0
  183. package/dist/puppet-qDtDc0so.js +1 -0
  184. package/dist/purescript-C03CHyrT.js +1 -0
  185. package/dist/python-D5e4BtVB.js +1 -0
  186. package/dist/qml-LVCeHqxw.js +1 -0
  187. package/dist/qmldir-BEg8Q-XX.js +1 -0
  188. package/dist/qss-vq-U9k0N.js +1 -0
  189. package/dist/r-DnCIdoUu.js +1 -0
  190. package/dist/racket-BQt8mf2o.js +1 -0
  191. package/dist/raku-ChTHpuBS.js +1 -0
  192. package/dist/razor-CjFZSXD2.js +1 -0
  193. package/dist/reg-12gGsscy.js +1 -0
  194. package/dist/regexp-zLCCZKTi.js +1 -0
  195. package/dist/rel-aZ4oe34Q.js +1 -0
  196. package/dist/riscv-BA9R8KI2.js +1 -0
  197. package/dist/rose-pine-8QECO0Ox.js +1 -0
  198. package/dist/rose-pine-dawn-DT77ObZh.js +1 -0
  199. package/dist/rose-pine-moon-D3-I8ETF.js +1 -0
  200. package/dist/rst-DFKlxnrd.js +1 -0
  201. package/dist/ruby-BypI_hk5.js +1 -0
  202. package/dist/rust-tE6tRkqD.js +1 -0
  203. package/dist/sas-D1sMUJql.js +1 -0
  204. package/dist/sass-DBEOLVv3.js +1 -0
  205. package/dist/scala-DUzir4os.js +1 -0
  206. package/dist/scheme-dsSqVZz3.js +1 -0
  207. package/dist/scss-B0kJw1gM.js +1 -0
  208. package/dist/shaderlab-Cd8Cbryn.js +1 -0
  209. package/dist/shellscript-BL-Ihj2z.js +1 -0
  210. package/dist/shellsession-C5KJPcFG.js +1 -0
  211. package/dist/slack-dark-JbsLGggd.js +1 -0
  212. package/dist/slack-ochin-hTeCADjA.js +1 -0
  213. package/dist/smalltalk-DQ23HuGh.js +1 -0
  214. package/dist/solarized-dark-D2bQRcX7.js +1 -0
  215. package/dist/solarized-light-6xrOKoxI.js +1 -0
  216. package/dist/solidity-DUCwohjn.js +1 -0
  217. package/dist/soy-Cy4pRjbu.js +1 -0
  218. package/dist/sparql-D7gNTkUq.js +1 -0
  219. package/dist/splunk-Dvl5Xm98.js +1 -0
  220. package/dist/sql-BfoT44Al.js +1 -0
  221. package/dist/ssh-config-C-ZFySPN.js +1 -0
  222. package/dist/stata-Dpw9jvge.js +1 -0
  223. package/dist/stylus-mJ9_5M6n.js +1 -0
  224. package/dist/svelte-DD5dtnEi.js +1 -0
  225. package/dist/swift-DDernUpH.js +1 -0
  226. package/dist/system-verilog-DeXSd9Py.js +1 -0
  227. package/dist/systemd-NetTuLPL.js +1 -0
  228. package/dist/tasl-BCm9L3tI.js +1 -0
  229. package/dist/tcl-DmWVgxCm.js +1 -0
  230. package/dist/templ-B7wt_K-d.js +1 -0
  231. package/dist/terraform-DYIIsq8p.js +1 -0
  232. package/dist/tex-DFj0qpOD.js +1 -0
  233. package/dist/toml-CFu3vY0Q.js +1 -0
  234. package/dist/ts-tags-BvMEeGTJ.js +1 -0
  235. package/dist/tslib.es6-C3PNVQlC.js +1 -0
  236. package/dist/tsv-DnenRF8k.js +1 -0
  237. package/dist/tsx-DooqfEr1.js +1 -0
  238. package/dist/turtle-DKlxyehf.js +1 -0
  239. package/dist/twig-DpQc8FUF.js +1 -0
  240. package/dist/txt-C4tHEtDr.js +1 -0
  241. package/dist/typescript-DtE5sB_4.js +1 -0
  242. package/dist/typespec-B69vp3jc.js +1 -0
  243. package/dist/typst-BzEngGMo.js +1 -0
  244. package/dist/v-Dy6tTX8K.js +1 -0
  245. package/dist/vala-DQnmDtkE.js +1 -0
  246. package/dist/vb-CqTjXY4K.js +1 -0
  247. package/dist/verilog-D6Zfe00a.js +1 -0
  248. package/dist/vhdl-Dxu0BOr9.js +1 -0
  249. package/dist/views.d.ts +17 -0
  250. package/dist/views.js +1 -0
  251. package/dist/viml-eXtfIM-m.js +1 -0
  252. package/dist/vue-D3vey6Cu.js +1 -0
  253. package/dist/vue-html-DyaqvCGV.js +1 -0
  254. package/dist/vyper-C6AULW8C.js +1 -0
  255. package/dist/wasm-Cl39COlm.js +1 -0
  256. package/dist/wenyan-DJGdsiXE.js +1 -0
  257. package/dist/wgsl-CDhIPMwJ.js +1 -0
  258. package/dist/wikitext-D05PpJ8X.js +1 -0
  259. package/dist/wolfram-JgWnd2g7.js +1 -0
  260. package/dist/writer.d.ts +157 -0
  261. package/dist/writer.js +1 -0
  262. package/dist/xml-Cc1Sy-d4.js +1 -0
  263. package/dist/xsl-CEYTrbD0.js +1 -0
  264. package/dist/yaml-NvTdC05o.js +1 -0
  265. package/dist/zenscript-De0mU_BW.js +1 -0
  266. package/dist/zig-D9TJVGyp.js +1 -0
  267. package/index.ts +1 -0
  268. package/layouts.ts +1 -0
  269. package/package.json +58 -0
  270. package/postcss.config.cjs +5 -0
  271. package/rollup.config.js +149 -0
  272. package/src/brand/Button/Button.tsx +48 -0
  273. package/src/brand/Button/index.ts +7 -0
  274. package/src/brand/CTABanner/CTABanner.tsx +127 -0
  275. package/src/brand/CTABanner/index.ts +8 -0
  276. package/src/brand/Footer/Footer.tsx +36 -0
  277. package/src/brand/Footer/index.ts +3 -0
  278. package/src/brand/index.ts +5 -0
  279. package/src/coder/CodeCopy/CodeCopy.style.tsx +21 -0
  280. package/src/coder/CodeCopy/CodeCopy.tsx +32 -0
  281. package/src/coder/CodeCopy/index.ts +7 -0
  282. package/src/coder/CodeSample/CodeSample.styles.tsx +137 -0
  283. package/src/coder/CodeSample/CodeSample.tsx +150 -0
  284. package/src/coder/CodeSample/default-theme.ts +266 -0
  285. package/src/coder/CodeSample/index.ts +12 -0
  286. package/src/coder/CodeSample/withLocalStored.tsx +50 -0
  287. package/src/coder/README.md +1 -0
  288. package/src/coder/index.ts +3 -0
  289. package/src/content/Anchor/Anchor.tsx +63 -0
  290. package/src/content/Anchor/index.tsx +3 -0
  291. package/src/content/Content/Content.tsx +20 -0
  292. package/src/content/Content/index.tsx +3 -0
  293. package/src/content/Content.tsx +137 -0
  294. package/src/content/Subtitle/Subtitle.tsx +21 -0
  295. package/src/content/Subtitle/index.tsx +3 -0
  296. package/src/content/index.ts +3 -0
  297. package/src/layouts/Layout.styles.tsx +151 -0
  298. package/src/layouts/Layout.tsx +121 -0
  299. package/src/layouts/index.ts +7 -0
  300. package/src/pages/HomePage/HomePage.tsx +93 -0
  301. package/src/pages/HomePage/index.ts +5 -0
  302. package/src/pages/HomePage/types.ts +41 -0
  303. package/src/pages/index.ts +1 -0
  304. package/src/views/HomeView/HomeView.tsx +74 -0
  305. package/src/views/HomeView/index.ts +3 -0
  306. package/src/views/index.ts +1 -0
  307. package/src/writer/Badge/Badge.styles.tsx +29 -0
  308. package/src/writer/Badge/Badge.tsx +28 -0
  309. package/src/writer/Badge/index.ts +7 -0
  310. package/src/writer/Blockquote/Blockquote.styles.tsx +10 -0
  311. package/src/writer/Blockquote/Blockquote.tsx +13 -0
  312. package/src/writer/Blockquote/index.ts +7 -0
  313. package/src/writer/Breadcrumbs/Breadcrumbs.styles.ts +28 -0
  314. package/src/writer/Breadcrumbs/Breadcrumbs.tsx +46 -0
  315. package/src/writer/Breadcrumbs/index.ts +7 -0
  316. package/src/writer/Callout/Callout.styles.tsx +50 -0
  317. package/src/writer/Callout/Callout.tsx +37 -0
  318. package/src/writer/Callout/index.tsx +3 -0
  319. package/src/writer/Code/Code.styles.tsx +17 -0
  320. package/src/writer/Code/Code.tsx +13 -0
  321. package/src/writer/Code/index.ts +3 -0
  322. package/src/writer/Details/Details.styles.tsx +76 -0
  323. package/src/writer/Details/Details.tsx +122 -0
  324. package/src/writer/Details/index.ts +3 -0
  325. package/src/writer/GuideCard/GuideCard.styles.tsx +115 -0
  326. package/src/writer/GuideCard/GuideCard.tsx +81 -0
  327. package/src/writer/GuideCard/index.ts +1 -0
  328. package/src/writer/Heading/Heading.styles.tsx +73 -0
  329. package/src/writer/Heading/Heading.tsx +53 -0
  330. package/src/writer/Heading/index.ts +7 -0
  331. package/src/writer/Hr/Hr.styles.tsx +7 -0
  332. package/src/writer/Hr/Hr.tsx +13 -0
  333. package/src/writer/Hr/index.ts +3 -0
  334. package/src/writer/Icon/index.tsx +112 -0
  335. package/src/writer/NavLinks/NavLinks.styles.ts +32 -0
  336. package/src/writer/NavLinks/NavLinks.tsx +48 -0
  337. package/src/writer/NavLinks/index.ts +7 -0
  338. package/src/writer/Pre/Pre.styles.tsx +13 -0
  339. package/src/writer/Pre/Pre.tsx +13 -0
  340. package/src/writer/Pre/index.ts +3 -0
  341. package/src/writer/README.md +1 -0
  342. package/src/writer/Steps/Steps.styles.tsx +36 -0
  343. package/src/writer/Steps/Steps.tsx +24 -0
  344. package/src/writer/Steps/index.ts +5 -0
  345. package/src/writer/Table/Table.styles.tsx +39 -0
  346. package/src/writer/Table/Table.tsx +45 -0
  347. package/src/writer/Table/index.ts +10 -0
  348. package/src/writer/Tabs/Tabs.styles.tsx +77 -0
  349. package/src/writer/Tabs/Tabs.tsx +104 -0
  350. package/src/writer/Tabs/index.ts +7 -0
  351. package/src/writer/UnderlineNav/UnderlineNav.styles.tsx +45 -0
  352. package/src/writer/UnderlineNav/UnderlineNav.tsx +38 -0
  353. package/src/writer/UnderlineNav/index.ts +1 -0
  354. package/src/writer/index.ts +32 -0
  355. package/tsconfig.json +41 -0
  356. package/writer.ts +1 -0
@@ -0,0 +1,115 @@
1
+ import {css} from "@linaria/core";
2
+
3
+ export const $guide = {
4
+ host: css`
5
+ `,
6
+ host$$secondary: css`
7
+ //flex-grow: 1;
8
+ //width: 100%;
9
+ display: flex;
10
+ position: relative;
11
+ overflow: hidden;
12
+ border: .5px solid #ececf1;
13
+ background: linear-gradient(238deg, rgba(247, 247, 248, .5) 0%, rgba(247, 247, 248, 1) 100%);
14
+ border-radius: 8px;
15
+ padding: 16px 20px 20px;
16
+ z-index: 0;
17
+ transition: box-shadow .2s ease-in-out, background-image .2s ease;
18
+
19
+ &:hover {
20
+ background: linear-gradient(238deg, rgba(255, 255, 255, .5) 0%, rgba(250, 250, 250, 1) 100%);
21
+ }
22
+ `,
23
+ host$$secondary$$md: css`
24
+ padding: 21px 25px 25px;
25
+ `,
26
+ link: css`
27
+ width: 100%;
28
+ height: 100%;
29
+ `,
30
+ item: css`
31
+ border-radius: 8px;
32
+ display: flex;
33
+
34
+ align-items: flex-start;
35
+ cursor: pointer;
36
+ transition: opacity .15s;
37
+
38
+ &:hover {
39
+ [data-pointer="true"] {
40
+ opacity: 1;
41
+ transform: translate(0);
42
+ }
43
+ }
44
+ `,
45
+ item$$secondary: css`
46
+ width: 100%;
47
+ height: 100%;
48
+ `,
49
+ icon: css`
50
+ line-height: 0px;
51
+ font-size: 24px;
52
+ border-radius: 8px;
53
+ width: 48px;
54
+ height: 48px;
55
+ display: flex;
56
+ justify-content: center;
57
+ align-items: center;
58
+ color: #353740;
59
+ border: 1px solid #ececf1;
60
+ background: linear-gradient(238deg, rgba(255, 255, 255, .5) 0%, rgba(250, 250, 250, 1) 100%);
61
+ transition: background .2s ease;
62
+ box-sizing: border-box;
63
+ flex-shrink: 0;
64
+ `,
65
+ right: css`
66
+ padding-left: 16px;
67
+ display: flex;
68
+ flex-direction: column;
69
+ gap: 4px;
70
+ `,
71
+ title: css`
72
+ display: flex;
73
+ color: #202123;
74
+ font-weight: 400;
75
+ align-items: center;
76
+ transition: color .15s;
77
+ `,
78
+ titleBody: css`
79
+ font-size: 16px;
80
+ line-height: 20px;
81
+ `,
82
+ titleBody$$md: css`
83
+ font-size: 18px;
84
+ `,
85
+ body: css`
86
+ font-weight: 400;
87
+ font-size: 14px;
88
+ line-height: 20px;
89
+
90
+ color: #6e6e80;
91
+ white-space: normal;
92
+ overflow: hidden;
93
+ text-overflow: ellipsis;
94
+ `,
95
+ body$$md: css`
96
+ font-size: 16px;
97
+ `,
98
+ pointer: css`
99
+ opacity: 0;
100
+ transform: translate(-4px);
101
+ display: flex;
102
+ justify-content: center;
103
+ transition: opacity .15s ease-in-out, transform .15s ease-in-out;
104
+ `
105
+ }
106
+
107
+
108
+ export const $list = {
109
+ host: css`
110
+ display: grid;
111
+ grid-template-columns: 1fr 1fr;
112
+ justify-content: center;
113
+ gap: 30px;
114
+ `
115
+ }
@@ -0,0 +1,81 @@
1
+ import React from "react"
2
+
3
+ import {$guide, $list} from "./GuideCard.styles";
4
+
5
+ export interface GuideCardProps {
6
+ children: React.ReactNode;
7
+ href: string
8
+ title: string;
9
+ icon?: React.ReactNode;
10
+ kind?: "secondary"
11
+ size?: "sm" | "md"
12
+ }
13
+
14
+ export function GuideCard({
15
+ children,
16
+ href,
17
+ icon,
18
+ title,
19
+ kind,
20
+ size,
21
+
22
+ }: GuideCardProps) {
23
+ return <div className={`
24
+ ${$guide.host}
25
+ ${kind === "secondary" && $guide.host$$secondary}
26
+ ${kind === "secondary" && size == "md" && $guide.host$$secondary$$md}
27
+ `}>
28
+ <a className={$guide.link} href={href}>
29
+ <div className={`
30
+ ${$guide.item}
31
+ ${kind === "secondary" && $guide.item$$secondary}
32
+ `}>
33
+ {icon && <div className={$guide.icon}>
34
+ {icon}
35
+ </div>}
36
+ <div className={$guide.right}>
37
+ <div className={$guide.title}>
38
+ <div className={`
39
+ ${$guide.title}
40
+ ${$guide.titleBody}
41
+ ${size == "md" && $guide.titleBody$$md}
42
+ `}>
43
+ {title}
44
+ </div>
45
+ <$Pointer/>
46
+ </div>
47
+ <div className={`
48
+ ${$guide.body}
49
+ ${size == "md" && $guide.body$$md}
50
+ `}>
51
+ {children}
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </a>
56
+ </div>
57
+ }
58
+
59
+ GuideCard.List = function GuideCardList({children}: { children: React.ReactNode }) {
60
+ return <div className={$list.host}>
61
+ {children}
62
+ </div>
63
+ }
64
+
65
+ function $Pointer() {
66
+ return <div data-pointer="true" className={$guide.pointer}>
67
+ <svg
68
+ xmlns="http://www.w3.org/2000/svg"
69
+ width={24}
70
+ height={24}
71
+ fill="currentColor"
72
+ viewBox="0 0 24 24"
73
+ >
74
+ <path
75
+ fillRule="evenodd"
76
+ d="M9.293 7.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414L12.586 12 9.293 8.707a1 1 0 0 1 0-1.414Z"
77
+ clipRule="evenodd"
78
+ />
79
+ </svg>
80
+ </div>
81
+ }
@@ -0,0 +1 @@
1
+ export {GuideCard} from "./GuideCard";
@@ -0,0 +1,73 @@
1
+ import {css} from "@linaria/core";
2
+
3
+ export const $heading = {
4
+ host: css`
5
+ line-height: 40px;
6
+ font-weight: 300;
7
+ color: #202123;
8
+
9
+ position: relative;
10
+ display: inline-block;
11
+ margin: 0;
12
+ padding: 0 24px 0 0;
13
+ scroll-margin-top: 30px;
14
+ cursor: pointer;
15
+
16
+ &:hover {
17
+ svg {
18
+ opacity: 1;
19
+ }
20
+ }
21
+ `,
22
+ h1: css`
23
+ font-size: 36px;
24
+
25
+ code {
26
+ font-size: 30px;
27
+ }
28
+ `,
29
+ h2: css`
30
+ font-size: 30px;
31
+
32
+ code {
33
+ font-size: 24px;
34
+ }
35
+ `,
36
+ h3: css`
37
+ font-size: 26px;
38
+
39
+ code {
40
+ font-size: 22px;
41
+ }
42
+ `,
43
+ h4: css`
44
+ font-size: 22px;
45
+
46
+ code {
47
+ font-size: 18px;
48
+ }
49
+ `,
50
+ h5: css`
51
+ font-size: 18px;
52
+
53
+ code {
54
+ font-size: 14px;
55
+ }
56
+ `,
57
+ h6: css`
58
+ font-size: 16px;
59
+
60
+ code {
61
+ font-size: 12px;
62
+ }
63
+ `,
64
+ link: css`
65
+ position: absolute;
66
+ top: 50%;
67
+ right: 0;
68
+ margin-top: -6px;
69
+ opacity: 0;
70
+ color: #7051d4;
71
+ transition: opacity .15s ease;
72
+ `
73
+ }
@@ -0,0 +1,53 @@
1
+ import React, {useRef} from "react"
2
+
3
+ import {$heading} from "./Heading.styles";
4
+
5
+ export interface HeadingProps {
6
+ children: React.ReactNode
7
+ size: 1 | 2 | 3 | 4 | 5 | 6
8
+ as?: "div" | "span"
9
+ id?: string
10
+ onClick?: () => void
11
+ }
12
+
13
+ export function Heading({children, size = 1, as, id, onClick}: HeadingProps) {
14
+ let HeadingComponent = as ? as : `h${size}` as "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
15
+
16
+ const obRef = useRef<HTMLAnchorElement>(null)
17
+
18
+ return <HeadingComponent
19
+ className={`
20
+ ${$heading.host}
21
+ ${size === 1 && $heading.h1}
22
+ ${size === 2 && $heading.h2}
23
+ ${size === 3 && $heading.h3}
24
+ ${size === 4 && $heading.h4}
25
+ ${size === 5 && $heading.h5}
26
+ ${size === 6 && $heading.h6}
27
+ xyd_comp-comp-heading
28
+ `}
29
+ onClick={onClick}
30
+ >
31
+ {children}
32
+
33
+ {id && <$Anchor/>}
34
+ </HeadingComponent>
35
+ }
36
+
37
+ function $Anchor() {
38
+ return <svg
39
+ xmlns="http://www.w3.org/2000/svg"
40
+ width={15}
41
+ height={15}
42
+ fill="currentColor"
43
+ viewBox="0 0 24 24"
44
+ className={$heading.link}
45
+ role="presentation"
46
+ >
47
+ <path
48
+ fillRule="evenodd"
49
+ d="M18.293 5.707a4.657 4.657 0 0 0-6.586 0l-1 1a1 1 0 1 1-1.414-1.414l1-1a6.657 6.657 0 1 1 9.414 9.414l-1 1a1 1 0 0 1-1.414-1.414l1-1a4.657 4.657 0 0 0 0-6.586Zm-2.586 2.586a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414l6-6a1 1 0 0 1 1.414 0Zm-9 1a1 1 0 0 1 0 1.414l-1 1a4.657 4.657 0 0 0 6.586 6.586l1-1a1 1 0 0 1 1.414 1.414l-1 1a6.657 6.657 0 1 1-9.414-9.414l1-1a1 1 0 0 1 1.414 0Z"
50
+ clipRule="evenodd"
51
+ />
52
+ </svg>
53
+ }
@@ -0,0 +1,7 @@
1
+ export {
2
+ Heading
3
+ } from "./Heading";
4
+
5
+ export type {
6
+ HeadingProps
7
+ } from "./Heading"
@@ -0,0 +1,7 @@
1
+ import {css} from "@linaria/core";
2
+
3
+ export const $hr = {
4
+ host: css`
5
+ border-color: rgb(229 229 229 / 0.7);
6
+ `
7
+ }
@@ -0,0 +1,13 @@
1
+ import React from "react"
2
+
3
+ import {$hr} from "./Hr.styles";
4
+
5
+ export interface HrProps {
6
+ children: React.ReactNode;
7
+ }
8
+
9
+ export function Hr({children}: HrProps) {
10
+ return <hr className={$hr.host}>
11
+ {children}
12
+ </hr>
13
+ }
@@ -0,0 +1,3 @@
1
+ export {Hr} from "./Hr"
2
+
3
+ export type {HrProps} from "./Hr"
@@ -0,0 +1,112 @@
1
+ import React from "react";
2
+
3
+ // TODO: better icon system
4
+
5
+ export function IconSessionReplay() {
6
+ return <svg
7
+ width={24}
8
+ height={24}
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ >
13
+ <path
14
+ d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"
15
+ stroke="black"
16
+ strokeWidth={2}
17
+ strokeLinecap="round"
18
+ strokeLinejoin="round"
19
+ />
20
+ <path
21
+ d="M10 8L16 12L10 16V8Z"
22
+ stroke="black"
23
+ strokeWidth={2}
24
+ strokeLinecap="round"
25
+ strokeLinejoin="round"
26
+ />
27
+ </svg>
28
+ }
29
+
30
+ export function IconMetrics() {
31
+ return <svg
32
+ width={24}
33
+ height={24}
34
+ viewBox="0 0 24 24"
35
+ fill="none"
36
+ xmlns="http://www.w3.org/2000/svg"
37
+ >
38
+ <path
39
+ d="M21 7L13.2273 14.9167L9.13636 10.75L3 17"
40
+ stroke="black"
41
+ strokeWidth={2}
42
+ strokeLinecap="round"
43
+ strokeLinejoin="round"
44
+ />
45
+ <path
46
+ d="M16 7H21V12"
47
+ stroke="black"
48
+ strokeWidth={2}
49
+ strokeLinecap="round"
50
+ strokeLinejoin="round"
51
+ />
52
+ </svg>
53
+ }
54
+
55
+ export function IconFunnels() {
56
+ return <svg
57
+ width={24}
58
+ height={24}
59
+ viewBox="0 0 24 24"
60
+ fill="none"
61
+ xmlns="http://www.w3.org/2000/svg"
62
+ >
63
+ <path
64
+ d="M12 20L12 10"
65
+ stroke="black"
66
+ strokeWidth={2}
67
+ strokeLinecap="round"
68
+ strokeLinejoin="round"
69
+ />
70
+ <path
71
+ d="M6 20L6 4"
72
+ stroke="black"
73
+ strokeWidth={2}
74
+ strokeLinecap="round"
75
+ strokeLinejoin="round"
76
+ />
77
+ <path
78
+ d="M18 20L18 16"
79
+ stroke="black"
80
+ strokeWidth={2}
81
+ strokeLinecap="round"
82
+ strokeLinejoin="round"
83
+ />
84
+ </svg>
85
+ }
86
+
87
+ export function IconCode() {
88
+ return <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width={24} height={24}>
89
+ <path
90
+ fillRule="evenodd"
91
+ d="M14.447 7.106a1 1 0 0 1 .447 1.341l-4 8a1 1 0 1 1-1.788-.894l4-8a1 1 0 0 1 1.341-.447ZM6.6 7.2a1 1 0 0 1 .2 1.4L4.25 12l2.55 3.4a1 1 0 0 1-1.6 1.2l-3-4a1 1 0 0 1 0-1.2l3-4a1 1 0 0 1 1.4-.2Zm10.8 0a1 1 0 0 1 1.4.2l3 4a1 1 0 0 1 0 1.2l-3 4a1 1 0 0 1-1.6-1.2l2.55-3.4-2.55-3.4a1 1 0 0 1 .2-1.4Z"
92
+ clipRule="evenodd"
93
+ />
94
+ </svg>
95
+ }
96
+
97
+ export function IconCustomEvent() {
98
+ return <svg
99
+ width={24}
100
+ height={24}
101
+ viewBox="0 0 16 16"
102
+ fill="none"
103
+ xmlns="http://www.w3.org/2000/svg"
104
+ >
105
+ <path
106
+ d="M3.66179 8.03142L6.54954 1.79004C6.63136 1.6132 6.80847 1.5 7.00333 1.5H10.7236C11.0872 1.5 11.3292 1.87581 11.1788 2.20685L9.18871 6.58625C9.03827 6.9173 9.28029 7.2931 9.64391 7.2931L11.589 7.2931C12.0146 7.2931 12.2456 7.79098 11.9708 8.11596L6.77738 14.2573C6.4593 14.6334 5.84636 14.3715 5.89839 13.8816L6.3857 9.2942C6.41708 8.99882 6.18554 8.74138 5.8885 8.74138H4.11558C3.75048 8.74138 3.50848 8.36278 3.66179 8.03142Z"
107
+ stroke="black"
108
+ strokeWidth={1.2}
109
+ strokeLinejoin="round"
110
+ />
111
+ </svg>
112
+ }
@@ -0,0 +1,32 @@
1
+ import {css} from "@linaria/core";
2
+
3
+ export const $navLinks = {
4
+ host: css`
5
+ display: flex;
6
+ padding-top: 2rem;
7
+ margin-top: 2rem;
8
+ margin-bottom: 2rem;
9
+ justify-content: space-between;
10
+ align-items: center;
11
+ border-top-width: 1px;
12
+ `,
13
+ link: css`
14
+ display: flex;
15
+ padding-top: 1rem;
16
+ padding-bottom: 1rem;
17
+ gap: 0.25rem;
18
+ align-items: center;
19
+ font-size: 1rem;
20
+ line-height: 1.5rem;
21
+ font-weight: 500;
22
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
23
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
24
+ transition-duration: 300ms;
25
+ max-width: 50%;
26
+ `,
27
+ icon: css`
28
+ display: inline;
29
+ height: 1.25rem;
30
+ flex-shrink: 0;
31
+ `,
32
+ };
@@ -0,0 +1,48 @@
1
+ import React from "react"
2
+ import {ArrowLeftIcon, ArrowRightIcon} from '@radix-ui/react-icons'
3
+
4
+ import {$navLinks} from "./NavLinks.styles";
5
+
6
+ function Anchor({children, ...rest}) {
7
+ return <a {...rest}>
8
+ {children}
9
+ </a>
10
+ }
11
+
12
+ export interface NavLinksProps {
13
+ prev?: {
14
+ title: string
15
+ href: string
16
+ }
17
+ next?: {
18
+ title: string
19
+ href: string
20
+ }
21
+ }
22
+
23
+ export function NavLinks(props: NavLinksProps) {
24
+ return (
25
+ <div className={$navLinks.host}>
26
+ {props.prev ? (
27
+ <Anchor
28
+ href={props.prev.href}
29
+ title={props.prev.title}
30
+ className={$navLinks.link}
31
+ >
32
+ <ArrowLeftIcon className={$navLinks.icon}/>
33
+ {props.prev.title}
34
+ </Anchor>
35
+ ) : <div/>}
36
+ {props.next && (
37
+ <Anchor
38
+ href={props.next.href}
39
+ title={props.next.title}
40
+ className={$navLinks.link}
41
+ >
42
+ {props.next.title}
43
+ <ArrowRightIcon className={$navLinks.icon}/>
44
+ </Anchor>
45
+ )}
46
+ </div>
47
+ )
48
+ }
@@ -0,0 +1,7 @@
1
+ export {
2
+ NavLinks
3
+ } from "./NavLinks"
4
+
5
+ export type {
6
+ NavLinksProps,
7
+ } from "./NavLinks";
@@ -0,0 +1,13 @@
1
+ import {css} from "@linaria/core";
2
+
3
+ export const $pre = {
4
+ host: css`
5
+ margin-top: 0;
6
+ border-radius: 6px;
7
+ padding: 16px;
8
+ border: 0;
9
+
10
+ background-color: rgb(246, 248, 250);
11
+ overflow: auto;
12
+ `
13
+ }
@@ -0,0 +1,13 @@
1
+ import React from "react"
2
+
3
+ import {$pre} from "./Pre.styles"
4
+
5
+ export interface PreProps {
6
+ children: React.ReactNode
7
+ }
8
+
9
+ export function Pre({children}: PreProps) {
10
+ return <pre className={$pre.host}>
11
+ {children}
12
+ </pre>
13
+ }
@@ -0,0 +1,3 @@
1
+ export {Pre} from "./Pre"
2
+
3
+ export type {PreProps} from "./Pre"
@@ -0,0 +1 @@
1
+ # @xyd-js/components/writer
@@ -0,0 +1,36 @@
1
+ import {css} from "@linaria/core";
2
+
3
+ export const $steps = {
4
+ host: css`
5
+ padding-left: 0;
6
+ list-style: none;
7
+ counter-reset: ordered-listitem;
8
+
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: 6px;
12
+ `,
13
+ li: css`
14
+ padding-left: 32px;
15
+ position: relative;
16
+ line-height: 1.5;
17
+
18
+ &::after {
19
+ position: absolute;
20
+ top: 0;
21
+ left: 0;
22
+ counter-increment: ordered-listitem;
23
+ content: counter(ordered-listitem);
24
+
25
+ background: #ececf1;
26
+ color: #353740;
27
+ font-size: 12px;
28
+ line-height: 24px;
29
+ font-weight: 500;
30
+ text-align: center;
31
+ height: 24px;
32
+ width: 24px;
33
+ border-radius: 12px;
34
+ }
35
+ `,
36
+ }
@@ -0,0 +1,24 @@
1
+ import React from "react"
2
+
3
+ import {$steps} from "./Steps.styles";
4
+
5
+ export interface StepsProps {
6
+ children: React.ReactNode;
7
+ }
8
+
9
+ export function Steps({children}: StepsProps) {
10
+ return <ol className={$steps.host}>
11
+ {children}
12
+ </ol>
13
+
14
+ }
15
+
16
+ export interface StepsItemProps {
17
+ children: React.ReactNode;
18
+ }
19
+
20
+ Steps.Item = function StepsItem({children}: StepsItemProps) {
21
+ return <li className={$steps.li}>
22
+ {children}
23
+ </li>
24
+ }
@@ -0,0 +1,5 @@
1
+ export {
2
+ Steps
3
+ } from "./Steps";
4
+
5
+ export type {StepsProps} from "./Steps";