@xyd-js/components 0.1.0-xyd.1 → 0.1.0-xyd.10
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.
- package/CHANGELOG.md +55 -0
- package/LICENSE +21 -0
- package/dist/CTABanner-4FVIoaTR.js +2 -0
- package/dist/CTABanner-4FVIoaTR.js.map +1 -0
- package/dist/CTABanner-BQx2SLf8.js +2 -0
- package/dist/CTABanner-BQx2SLf8.js.map +1 -0
- package/dist/CTABanner-C6afsXoE.js +2 -0
- package/dist/CTABanner-C6afsXoE.js.map +1 -0
- package/dist/CTABanner-CEKs-Hb-.js +2 -0
- package/dist/CTABanner-CEKs-Hb-.js.map +1 -0
- package/dist/CTABanner-CUNcTr6s.js +2 -0
- package/dist/CTABanner-CUNcTr6s.js.map +1 -0
- package/dist/CTABanner-D02aIAsD.js +2 -0
- package/dist/CTABanner-D02aIAsD.js.map +1 -0
- package/dist/CTABanner-Dm3tUG3I.js +2 -0
- package/dist/CTABanner-Dm3tUG3I.js.map +1 -0
- package/dist/CTABanner-MCOcVowa.js +2 -0
- package/dist/CTABanner-MCOcVowa.js.map +1 -0
- package/dist/CTABanner-X6K49gSr.js +2 -0
- package/dist/CTABanner-X6K49gSr.js.map +1 -0
- package/dist/CodeSample-B9VUhTKF.js +2 -0
- package/dist/CodeSample-B9VUhTKF.js.map +1 -0
- package/dist/CodeSample-BSXeFy0x.js +2 -0
- package/dist/CodeSample-BSXeFy0x.js.map +1 -0
- package/dist/CodeSample-BwP208sQ.js +2 -0
- package/dist/CodeSample-BwP208sQ.js.map +1 -0
- package/dist/CodeSample-CK-CQYrV.js +2 -0
- package/dist/CodeSample-CK-CQYrV.js.map +1 -0
- package/dist/CodeSample-CUemtj_W.js +2 -0
- package/dist/CodeSample-CUemtj_W.js.map +1 -0
- package/dist/CodeSample-D0iKih-A.js +2 -0
- package/dist/CodeSample-D0iKih-A.js.map +1 -0
- package/dist/CodeSample-D33vTa6M.js +2 -0
- package/dist/CodeSample-D33vTa6M.js.map +1 -0
- package/dist/CodeSample-DUSx2KBt.js +2 -0
- package/dist/CodeSample-DUSx2KBt.js.map +1 -0
- package/dist/CodeSample-P4yxkHPW.js +2 -0
- package/dist/CodeSample-P4yxkHPW.js.map +1 -0
- package/dist/HomeView-ACBdUgyz.js +2 -0
- package/dist/HomeView-ACBdUgyz.js.map +1 -0
- package/dist/HomeView-B0ATNUF1.js +2 -0
- package/dist/HomeView-B0ATNUF1.js.map +1 -0
- package/dist/HomeView-CHSb4HL6.js +2 -0
- package/dist/HomeView-CHSb4HL6.js.map +1 -0
- package/dist/HomeView-COJrg8Ju.js +2 -0
- package/dist/HomeView-COJrg8Ju.js.map +1 -0
- package/dist/HomeView-Cun4apuy.js +2 -0
- package/dist/HomeView-Cun4apuy.js.map +1 -0
- package/dist/HomeView-D4DXEOOn.js +2 -0
- package/dist/HomeView-D4DXEOOn.js.map +1 -0
- package/dist/HomeView-DaH1PSBB.js +2 -0
- package/dist/HomeView-DaH1PSBB.js.map +1 -0
- package/dist/HomeView-O_lj2c2t.js +2 -0
- package/dist/HomeView-O_lj2c2t.js.map +1 -0
- package/dist/HomeView-_Nu2RcOM.js +2 -0
- package/dist/HomeView-_Nu2RcOM.js.map +1 -0
- package/dist/UnderlineNav-3-KptDYD.js +2 -0
- package/dist/UnderlineNav-3-KptDYD.js.map +1 -0
- package/dist/UnderlineNav-BCyB0G5d.js +2 -0
- package/dist/UnderlineNav-BCyB0G5d.js.map +1 -0
- package/dist/UnderlineNav-BEhDJk0H.js +2 -0
- package/dist/UnderlineNav-BEhDJk0H.js.map +1 -0
- package/dist/UnderlineNav-BqZ2xAp7.js +2 -0
- package/dist/UnderlineNav-BqZ2xAp7.js.map +1 -0
- package/dist/UnderlineNav-C2-4Vyj8.js +2 -0
- package/dist/UnderlineNav-C2-4Vyj8.js.map +1 -0
- package/dist/UnderlineNav-Co08Gykm.js +2 -0
- package/dist/UnderlineNav-Co08Gykm.js.map +1 -0
- package/dist/UnderlineNav-DC3UVmnZ.js +2 -0
- package/dist/UnderlineNav-DC3UVmnZ.js.map +1 -0
- package/dist/UnderlineNav-DsRYwuGB.js +2 -0
- package/dist/UnderlineNav-DsRYwuGB.js.map +1 -0
- package/dist/UnderlineNav-FbclXKUW.js +2 -0
- package/dist/UnderlineNav-FbclXKUW.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-BEouSrrZ.js +2 -0
- package/dist/_rollupPluginBabelHelpers-BEouSrrZ.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-BHehKRBq.js +2 -0
- package/dist/_rollupPluginBabelHelpers-BHehKRBq.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-Bunpz22T.js +2 -0
- package/dist/_rollupPluginBabelHelpers-Bunpz22T.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CVblpRvU.js +2 -0
- package/dist/_rollupPluginBabelHelpers-CVblpRvU.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CxmswfqM.js +2 -0
- package/dist/_rollupPluginBabelHelpers-CxmswfqM.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-D0XU6lDu.js +2 -0
- package/dist/_rollupPluginBabelHelpers-D0XU6lDu.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-DQJTK9EO.js +2 -0
- package/dist/_rollupPluginBabelHelpers-DQJTK9EO.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-DuRQdJ01.js +2 -0
- package/dist/_rollupPluginBabelHelpers-DuRQdJ01.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-tRAa4O0f.js +2 -0
- package/dist/_rollupPluginBabelHelpers-tRAa4O0f.js.map +1 -0
- package/dist/brand.d.ts +11 -10
- package/dist/brand.js +2 -1
- package/dist/brand.js.map +1 -0
- package/dist/coder/themes/cosmo-light.d.ts +5 -0
- package/dist/coder/themes/cosmo-light.js +2 -0
- package/dist/coder/themes/cosmo-light.js.map +1 -0
- package/dist/coder.d.ts +54 -3
- package/dist/coder.js +2 -1
- package/dist/coder.js.map +1 -0
- package/dist/content.d.ts +103 -37
- package/dist/content.js +2 -1
- package/dist/content.js.map +1 -0
- package/dist/index-B0FncPxO.js +2 -0
- package/dist/index-B0FncPxO.js.map +1 -0
- package/dist/index-BEm-xkm-.js +2 -0
- package/dist/index-BEm-xkm-.js.map +1 -0
- package/dist/index-BHwtxG27.js +2 -0
- package/dist/index-BHwtxG27.js.map +1 -0
- package/dist/index-BTcmIG47.js +2 -0
- package/dist/index-BTcmIG47.js.map +1 -0
- package/dist/index-BbIMmTvo.js +2 -0
- package/dist/index-BbIMmTvo.js.map +1 -0
- package/dist/index-CNkHt1r7.js +2 -0
- package/dist/index-CNkHt1r7.js.map +1 -0
- package/dist/index-D0XuyFm7.js +2 -0
- package/dist/index-D0XuyFm7.js.map +1 -0
- package/dist/index-DBspcqWq.js +2 -0
- package/dist/index-DBspcqWq.js.map +1 -0
- package/dist/index-DVBO4gYE.js +2 -0
- package/dist/index-DVBO4gYE.js.map +1 -0
- package/dist/index.css +217 -135
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/dist/layouts.d.ts +12 -1
- package/dist/layouts.js +2 -1
- package/dist/layouts.js.map +1 -0
- package/dist/pages.d.ts +2 -1
- package/dist/pages.js +2 -1
- package/dist/pages.js.map +1 -0
- package/dist/{tslib.es6-B1gizQU6.js → tslib.es6-BBkx4Se1.js} +1 -0
- package/dist/tslib.es6-BBkx4Se1.js.map +1 -0
- package/dist/{tslib.es6-CMPV4d4T.js → tslib.es6-BF6ZLEXa.js} +1 -0
- package/dist/tslib.es6-BF6ZLEXa.js.map +1 -0
- package/dist/{tslib.es6-DlLz3CkS.js → tslib.es6-BOZCDgb8.js} +1 -0
- package/dist/tslib.es6-BOZCDgb8.js.map +1 -0
- package/dist/tslib.es6-CNVK7Xcu.js +2 -0
- package/dist/tslib.es6-CNVK7Xcu.js.map +1 -0
- package/dist/tslib.es6-Cjl5tesf.js +2 -0
- package/dist/tslib.es6-Cjl5tesf.js.map +1 -0
- package/dist/tslib.es6-DEH7Dkgy.js +2 -0
- package/dist/tslib.es6-DEH7Dkgy.js.map +1 -0
- package/dist/tslib.es6-DTeJ7dWi.js +2 -0
- package/dist/tslib.es6-DTeJ7dWi.js.map +1 -0
- package/dist/tslib.es6-U9-f6pA7.js +2 -0
- package/dist/tslib.es6-U9-f6pA7.js.map +1 -0
- package/dist/tslib.es6-cb69JjeS.js +2 -0
- package/dist/tslib.es6-cb69JjeS.js.map +1 -0
- package/dist/views.d.ts +2 -1
- package/dist/views.js +2 -1
- package/dist/views.js.map +1 -0
- package/dist/writer.d.ts +62 -8
- package/dist/writer.js +2 -1
- package/dist/writer.js.map +1 -0
- package/package.json +21 -14
- package/rollup.config.js +53 -8
- package/src/brand/Button/Button.styles.tsx +31 -0
- package/src/brand/Button/Button.tsx +3 -35
- package/src/brand/CTABanner/CTABanner.styles.tsx +82 -0
- package/src/brand/CTABanner/CTABanner.tsx +34 -112
- package/src/brand/Footer/Footer.styles.tsx +21 -0
- package/src/brand/Footer/Footer.tsx +4 -24
- package/src/brand/TODO.md +1 -0
- package/src/coder/Code/Code.styles.tsx +47 -0
- package/src/coder/Code/Code.tsx +76 -0
- package/src/coder/Code/CodeLoader.tsx +10 -0
- package/src/coder/Code/annotations.tsx +31 -0
- package/src/coder/Code/highlight.ts +170 -0
- package/src/coder/Code/index.ts +15 -0
- package/src/coder/CodeCopy/CodeCopy.styles.tsx +19 -0
- package/src/coder/CodeCopy/CodeCopy.tsx +2 -4
- package/src/coder/CodeSample/CodeSample.tsx +42 -133
- package/src/coder/CodeSample/index.ts +0 -1
- package/src/coder/CodeSample/withLocalStored.tsx +1 -1
- package/src/coder/CodeTabs/CodeTabs.styles.tsx +104 -0
- package/src/coder/CodeTabs/CodeTabs.tsx +95 -0
- package/src/coder/CodeTabs/index.ts +6 -0
- package/src/coder/CodeTheme/CodeTheme.tsx +79 -0
- package/src/coder/CodeTheme/index.ts +8 -0
- package/src/coder/hooks/highlight.ts +182 -0
- package/src/coder/index.ts +31 -1
- package/src/coder/{CodeSample/default-theme.ts → themes/cosmo-light.ts} +3 -2
- package/src/content/Anchor/Anchor.styles.tsx +5 -0
- package/src/content/Anchor/Anchor.tsx +4 -14
- package/src/content/Content/Content.styles.tsx +9 -0
- package/src/content/Content/Content.tsx +4 -11
- package/src/content/Content.tsx +48 -6
- package/src/content/Subtitle/Subtitle.styles.ts +8 -0
- package/src/content/Subtitle/Subtitle.tsx +2 -11
- package/src/layouts/Layout.styles.tsx +135 -131
- package/src/layouts/Layout.tsx +21 -23
- package/src/layouts/LayoutPrimary/LayoutPrimary.styles.tsx +341 -0
- package/src/layouts/LayoutPrimary/LayoutPrimary.tsx +157 -0
- package/src/layouts/LayoutPrimary/index.ts +5 -0
- package/src/layouts/index.ts +7 -1
- package/src/pages/HomePage/HomePage.styles.tsx +16 -0
- package/src/pages/HomePage/HomePage.tsx +7 -21
- package/src/pages/TODO.md +1 -0
- package/src/pages/index.ts +1 -0
- package/src/ui/Loader/Loader.styles.tsx +54 -0
- package/src/ui/Loader/Loader.tsx +26 -0
- package/src/ui/TODO.md +2 -0
- package/src/ui/index.ts +1 -0
- package/src/utils/useStyle.ts +19 -0
- package/src/views/HomeView/HomeView.styles.tsx +37 -0
- package/src/views/HomeView/HomeView.tsx +5 -45
- package/src/views/TODO.md +1 -0
- package/src/views/index.ts +1 -0
- package/src/writer/Badge/Badge.styles.tsx +31 -26
- package/src/writer/Badge/Badge.tsx +42 -9
- package/src/writer/Blockquote/Blockquote.styles.tsx +6 -8
- package/src/writer/Blockquote/Blockquote.tsx +2 -2
- package/src/writer/Breadcrumbs/Breadcrumbs.styles.ts +27 -26
- package/src/writer/Breadcrumbs/Breadcrumbs.tsx +5 -5
- package/src/writer/Callout/Callout.styles.tsx +44 -48
- package/src/writer/Callout/Callout.tsx +5 -5
- package/src/writer/Code/Code.styles.tsx +11 -13
- package/src/writer/Code/Code.tsx +2 -2
- package/src/writer/Details/Details.styles.tsx +102 -74
- package/src/writer/Details/Details.tsx +46 -30
- package/src/writer/GuideCard/GuideCard.styles.tsx +116 -112
- package/src/writer/GuideCard/GuideCard.tsx +19 -19
- package/src/writer/Heading/Heading.styles.tsx +65 -61
- package/src/writer/Heading/Heading.tsx +11 -11
- package/src/writer/Hr/Hr.styles.tsx +3 -5
- package/src/writer/Hr/Hr.tsx +2 -2
- package/src/writer/Icon/index.tsx +243 -0
- package/src/writer/NavLinks/NavLinks.styles.ts +30 -30
- package/src/writer/NavLinks/NavLinks.tsx +6 -6
- package/src/writer/Pre/Pre.styles.tsx +8 -10
- package/src/writer/Pre/Pre.tsx +2 -2
- package/src/writer/Steps/Steps.styles.tsx +30 -31
- package/src/writer/Steps/Steps.tsx +3 -4
- package/src/writer/Table/Table.styles.tsx +32 -31
- package/src/writer/Table/Table.tsx +5 -5
- package/src/writer/Table/TableV2.styles.tsx +117 -0
- package/src/writer/Table/TableV2.tsx +83 -0
- package/src/writer/Table/index.ts +4 -0
- package/src/writer/Tabs/Tabs.styles.tsx +60 -63
- package/src/writer/Tabs/Tabs.tsx +11 -16
- package/src/writer/UnderlineNav/UnderlineNav.styles.tsx +44 -42
- package/src/writer/UnderlineNav/UnderlineNav.tsx +5 -5
- package/tsconfig.json +2 -3
- package/dist/CTABanner-CYKba2Vn.js +0 -1
- package/dist/CTABanner-hV6NH0Xf.js +0 -1
- package/dist/CodeSample-D1QMQt89.js +0 -1
- package/dist/CodeSample-DLJNHIaK.js +0 -1
- package/dist/CodeSample-DZq0_qWL.js +0 -1
- package/dist/Footer-CkBDl828.js +0 -1
- package/dist/HomeView-CEgDQeAf.js +0 -1
- package/dist/UnderlineNav-BaOK-iez.js +0 -1
- package/dist/UnderlineNav-D5zXLK6j.js +0 -1
- package/dist/UnderlineNav-DGzjCvkM.js +0 -1
- package/dist/abap-DsN9RuMZ.js +0 -1
- package/dist/actionscript-3-B1SSyZyS.js +0 -1
- package/dist/ada-D_J1lW-E.js +0 -1
- package/dist/angular-html-CYREiUrW.js +0 -1
- package/dist/angular-ts-DcAOu8WU.js +0 -1
- package/dist/apache-CCuSaqCk.js +0 -1
- package/dist/apex-DblqgZJW.js +0 -1
- package/dist/apl-PFYbmQM7.js +0 -1
- package/dist/applescript-CxR8VFYt.js +0 -1
- package/dist/ara-DyvEMt1M.js +0 -1
- package/dist/asciidoc-CnwoPPuH.js +0 -1
- package/dist/asm-CjptKFp1.js +0 -1
- package/dist/astro-suE8bk8k.js +0 -1
- package/dist/awk-DCM8RPoH.js +0 -1
- package/dist/ballerina-Cj78GSWA.js +0 -1
- package/dist/bat-DOoDZywo.js +0 -1
- package/dist/beancount-t-WR86_8.js +0 -1
- package/dist/berry-B4bZSCCn.js +0 -1
- package/dist/bibtex-BrVhJY3k.js +0 -1
- package/dist/bicep-B9mKM727.js +0 -1
- package/dist/blade-C5Z797nx.js +0 -1
- package/dist/c-DAjGiO5B.js +0 -1
- package/dist/cadence-PrerV_VN.js +0 -1
- package/dist/clarity-BHTd5LJm.js +0 -1
- package/dist/clojure-CfEyl-7j.js +0 -1
- package/dist/cmake-CRA2Enzy.js +0 -1
- package/dist/cobol-BnLJxYQT.js +0 -1
- package/dist/codeowners-BvrirGey.js +0 -1
- package/dist/codeql-B2c2mBK0.js +0 -1
- package/dist/coffee-CG62yMWj.js +0 -1
- package/dist/common-lisp-CN6bltgb.js +0 -1
- package/dist/cpp-BbrQ837u.js +0 -1
- package/dist/crystal-rvb5jzSz.js +0 -1
- package/dist/csharp-CUz8u4K7.js +0 -1
- package/dist/css-JK7NOE59.js +0 -1
- package/dist/csv-CA_RykxK.js +0 -1
- package/dist/cue-AyD8vP8S.js +0 -1
- package/dist/cypher-eVjUZ0JC.js +0 -1
- package/dist/d-D1E5UK87.js +0 -1
- package/dist/dark-plus-C6xVaa39.js +0 -1
- package/dist/dart-DofOkkdM.js +0 -1
- package/dist/dax-DqGHRpF4.js +0 -1
- package/dist/desktop-j1oT-0Fo.js +0 -1
- package/dist/diff-ChebWHqI.js +0 -1
- package/dist/docker-BU6yAGy2.js +0 -1
- package/dist/dotenv-GyMvMNRw.js +0 -1
- package/dist/dracula-DUKRH7Zb.js +0 -1
- package/dist/dracula-soft-MlIR18G6.js +0 -1
- package/dist/dream-maker-BsQ1dbNp.js +0 -1
- package/dist/edge-F-AR7ZfW.js +0 -1
- package/dist/elixir-k4xxGl4V.js +0 -1
- package/dist/elm-CInOOHq9.js +0 -1
- package/dist/emacs-lisp-C6yIvom4.js +0 -1
- package/dist/erb-3pxr-NQS.js +0 -1
- package/dist/erlang-pmWC-Wee.js +0 -1
- package/dist/fennel-DViJm-jY.js +0 -1
- package/dist/fish-XcExlNEH.js +0 -1
- package/dist/fluent-DuJOAG6K.js +0 -1
- package/dist/fortran-fixed-form-Db5I_UFX.js +0 -1
- package/dist/fortran-free-form-B2xyqK-y.js +0 -1
- package/dist/fsharp-is-Hk3Eq.js +0 -1
- package/dist/gdresource-RuRLtBIa.js +0 -1
- package/dist/gdscript-pJ_75zwI.js +0 -1
- package/dist/gdshader-C5a9x3vh.js +0 -1
- package/dist/genie-BQ1oppDb.js +0 -1
- package/dist/gherkin-CuOELy7c.js +0 -1
- package/dist/git-commit-3zS8hqVZ.js +0 -1
- package/dist/git-rebase-DbS4r3GX.js +0 -1
- package/dist/github-dark-MxM60tcF.js +0 -1
- package/dist/github-dark-dimmed-DDWwGITy.js +0 -1
- package/dist/github-from-css-3tseHBGr.js +0 -1
- package/dist/github-light-pTwVS4k8.js +0 -1
- package/dist/gleam-DNxiWDAA.js +0 -1
- package/dist/glimmer-js-BGxcWjEE.js +0 -1
- package/dist/glimmer-ts-BB1An-Xq.js +0 -1
- package/dist/glsl-DaDHpxzv.js +0 -1
- package/dist/gnuplot-B1t-F_Gz.js +0 -1
- package/dist/go-BiVONvim.js +0 -1
- package/dist/graphql-LpWkIzuc.js +0 -1
- package/dist/groovy-DcxmRonw.js +0 -1
- package/dist/hack-BCsHcJ0e.js +0 -1
- package/dist/haml-CXlzR84c.js +0 -1
- package/dist/handlebars-DLTopqNS.js +0 -1
- package/dist/haskell-35U1u5gK.js +0 -1
- package/dist/haxe-ssN4Oy09.js +0 -1
- package/dist/hcl-kzI--7Cv.js +0 -1
- package/dist/hjson-pR2iiFsp.js +0 -1
- package/dist/hlsl-8PIy5U5-.js +0 -1
- package/dist/html-BEHbZ4zc.js +0 -1
- package/dist/html-derivative-K5xYNXck.js +0 -1
- package/dist/http-Cd2N6YgB.js +0 -1
- package/dist/hxml-BiAYlMbG.js +0 -1
- package/dist/hy-Cg5rcmur.js +0 -1
- package/dist/imba-DIe-G4Fn.js +0 -1
- package/dist/index-B7QE1KUr.js +0 -1
- package/dist/index-BE4Aq8NU.js +0 -1
- package/dist/index-CpFJxv5e.js +0 -1
- package/dist/index-DMAgLttD.js +0 -1
- package/dist/index-byGIVYaJ.js +0 -1
- package/dist/index-eU5so3Si.js +0 -1
- package/dist/ini-H0Ga-buI.js +0 -1
- package/dist/java-DoE_enjS.js +0 -1
- package/dist/javascript-__QKtyFe.js +0 -1
- package/dist/jinja-UYHlv864.js +0 -1
- package/dist/jison-B9nCySXt.js +0 -1
- package/dist/json-B7oi-vA0.js +0 -1
- package/dist/json5-BetPwqJO.js +0 -1
- package/dist/jsonc-pWWkBlCi.js +0 -1
- package/dist/jsonl-B6mt3pJZ.js +0 -1
- package/dist/jsonnet-CoMYTNCI.js +0 -1
- package/dist/jssm-Cid3TtQ5.js +0 -1
- package/dist/jsx-Ckobzlnq.js +0 -1
- package/dist/julia-C8xlDV3I.js +0 -1
- package/dist/kotlin-DvN1jcCb.js +0 -1
- package/dist/kusto-BCF_-dC3.js +0 -1
- package/dist/latex-DRFLltbj.js +0 -1
- package/dist/lean-DNZ3POMR.js +0 -1
- package/dist/less-XiEW6aqg.js +0 -1
- package/dist/light-plus-BnkOXVnc.js +0 -1
- package/dist/liquid-B40PlvwD.js +0 -1
- package/dist/log-xo3MDRlF.js +0 -1
- package/dist/logo-DTYzs3BE.js +0 -1
- package/dist/lua-BDEQNtpi.js +0 -1
- package/dist/luau-B1E5PlN9.js +0 -1
- package/dist/make-DtNOxXXX.js +0 -1
- package/dist/markdown-B6FKqc-0.js +0 -1
- package/dist/marko-mRmYVKe_.js +0 -1
- package/dist/material-darker-DFW2iB51.js +0 -1
- package/dist/material-default-BFApb2Ag.js +0 -1
- package/dist/material-from-css-bTkjEQjF.js +0 -1
- package/dist/material-lighter-CYEL5tGv.js +0 -1
- package/dist/material-ocean-BhuQqQbt.js +0 -1
- package/dist/material-palenight-B_DfQHjY.js +0 -1
- package/dist/matlab-BovMnqtG.js +0 -1
- package/dist/mdc-DIkT1TyN.js +0 -1
- package/dist/mdx-CxAyQTjI.js +0 -1
- package/dist/mermaid-i0z8tyOx.js +0 -1
- package/dist/min-dark-BE2n4wJj.js +0 -1
- package/dist/min-light-BJgErz0d.js +0 -1
- package/dist/mojo-C-lVJL5A.js +0 -1
- package/dist/monokai-eaa8L1cq.js +0 -1
- package/dist/move-C3Zui0bc.js +0 -1
- package/dist/narrat-THKEk6T8.js +0 -1
- package/dist/nextflow-CtnPKe-i.js +0 -1
- package/dist/nginx-CGEFMta9.js +0 -1
- package/dist/nim-C8mPZfis.js +0 -1
- package/dist/nix-JCk4_G_4.js +0 -1
- package/dist/nord-Doy8uXi5.js +0 -1
- package/dist/nushell-CX0evzNH.js +0 -1
- package/dist/objective-c-CRUJa2eY.js +0 -1
- package/dist/objective-cpp-CCYeWv4r.js +0 -1
- package/dist/ocaml-DGJqpgv5.js +0 -1
- package/dist/one-dark-pro-u8LD4Pzz.js +0 -1
- package/dist/pascal-DBmHAUBB.js +0 -1
- package/dist/perl-DeqR1cIo.js +0 -1
- package/dist/php-DgxB75vC.js +0 -1
- package/dist/plsql-7JGOsii8.js +0 -1
- package/dist/po-iKcL_E8G.js +0 -1
- package/dist/poimandres-CA110GE1.js +0 -1
- package/dist/postcss-Da2iRvoL.js +0 -1
- package/dist/powerquery-DPeggvzL.js +0 -1
- package/dist/powershell-CaJNoU_J.js +0 -1
- package/dist/prisma-CJb-Lxak.js +0 -1
- package/dist/prolog-DfSRFLOg.js +0 -1
- package/dist/proto-CQScmtFO.js +0 -1
- package/dist/pug-C812gnD5.js +0 -1
- package/dist/puppet-B1xO3kuT.js +0 -1
- package/dist/purescript-CNYgFxmJ.js +0 -1
- package/dist/python-D9HM-cQI.js +0 -1
- package/dist/qml-DJVpVDAW.js +0 -1
- package/dist/qmldir-CHfKHU4H.js +0 -1
- package/dist/qss-C4aoutlf.js +0 -1
- package/dist/r-CqYxKsjx.js +0 -1
- package/dist/racket-DUEDYd32.js +0 -1
- package/dist/raku-D9-XDqRz.js +0 -1
- package/dist/razor-3rNKfrrf.js +0 -1
- package/dist/reg-b5Nk8lNx.js +0 -1
- package/dist/regexp-DVRafeF7.js +0 -1
- package/dist/rel--gRyHcrO.js +0 -1
- package/dist/riscv-C8SxbbN2.js +0 -1
- package/dist/rose-pine-DPGqNU4b.js +0 -1
- package/dist/rose-pine-dawn-DymfQU_V.js +0 -1
- package/dist/rose-pine-moon-BQUAYUon.js +0 -1
- package/dist/rst-CmHkCKmJ.js +0 -1
- package/dist/ruby-Q-VH1uZA.js +0 -1
- package/dist/rust-ClS6MAIk.js +0 -1
- package/dist/sas-D3oI_z1n.js +0 -1
- package/dist/sass-C7IOYsXa.js +0 -1
- package/dist/scala-Bo-OrDK4.js +0 -1
- package/dist/scheme-CZPOfAv0.js +0 -1
- package/dist/scss-CrrfDAqb.js +0 -1
- package/dist/shaderlab-BHdRvEKr.js +0 -1
- package/dist/shellscript-CGx4lQcC.js +0 -1
- package/dist/shellsession-DNVyDTwx.js +0 -1
- package/dist/slack-dark-BdYiGGaR.js +0 -1
- package/dist/slack-ochin-D47ofNk9.js +0 -1
- package/dist/smalltalk-CSwwxfh6.js +0 -1
- package/dist/solarized-dark-B_ueb431.js +0 -1
- package/dist/solarized-light-ClfNXI7y.js +0 -1
- package/dist/solidity-DTxkUBi_.js +0 -1
- package/dist/soy-CWDkaEw-.js +0 -1
- package/dist/sparql-iRDOfWr5.js +0 -1
- package/dist/splunk-BEkc8uO-.js +0 -1
- package/dist/sql-BJ_taBmN.js +0 -1
- package/dist/ssh-config-Df9b2KGk.js +0 -1
- package/dist/stata-D3UR29Ve.js +0 -1
- package/dist/stylus-CdDBOxWC.js +0 -1
- package/dist/svelte-DyEd0oQk.js +0 -1
- package/dist/swift-BxhiGBjX.js +0 -1
- package/dist/system-verilog-CetQnQ4g.js +0 -1
- package/dist/systemd-BnD0vcw3.js +0 -1
- package/dist/tasl-DVvrvOfd.js +0 -1
- package/dist/tcl-DLSUI_zn.js +0 -1
- package/dist/templ-DSz21pzx.js +0 -1
- package/dist/terraform-EK_dQKQM.js +0 -1
- package/dist/tex-BM4Fklib.js +0 -1
- package/dist/toml-kuUrbkod.js +0 -1
- package/dist/ts-tags-By7dzkmj.js +0 -1
- package/dist/tsv-BCJoRl62.js +0 -1
- package/dist/tsx-BjuLHzrJ.js +0 -1
- package/dist/turtle-CufS_WpN.js +0 -1
- package/dist/twig-JhO6NGAT.js +0 -1
- package/dist/txt-C4POgh3W.js +0 -1
- package/dist/typescript-B1VYfqvp.js +0 -1
- package/dist/typespec-CZzVsQ68.js +0 -1
- package/dist/typst-DLkGCZHs.js +0 -1
- package/dist/v-DNo0Cbkd.js +0 -1
- package/dist/vala-J9aWDLgT.js +0 -1
- package/dist/vb-CukbP-ad.js +0 -1
- package/dist/verilog-C7Ns4wPb.js +0 -1
- package/dist/vhdl-D94Lw1Fr.js +0 -1
- package/dist/viml-gaixGh_X.js +0 -1
- package/dist/vue-BX9d0W3t.js +0 -1
- package/dist/vue-html-CPRiJ8jH.js +0 -1
- package/dist/vyper-Ckj8wEzF.js +0 -1
- package/dist/wasm-BIwf60De.js +0 -1
- package/dist/wenyan-8NGlujRm.js +0 -1
- package/dist/wgsl-BcYJIOdN.js +0 -1
- package/dist/wikitext-B892rECa.js +0 -1
- package/dist/wolfram-CsrnIKPa.js +0 -1
- package/dist/xml-bnQL-E2F.js +0 -1
- package/dist/xsl-n4ZnN1T3.js +0 -1
- package/dist/yaml-8btRgevg.js +0 -1
- package/dist/zenscript-C4tShGxI.js +0 -1
- package/dist/zig-YA915rBO.js +0 -1
- package/src/coder/CodeCopy/CodeCopy.style.tsx +0 -21
- package/src/coder/CodeSample/CodeSample.styles.tsx +0 -137
package/dist/views.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export{H as HomeView}from"./HomeView-CHSb4HL6.js";import"react";
|
|
2
|
+
//# sourceMappingURL=views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"views.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/writer.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
|
|
3
3
|
interface BadgeProps {
|
|
4
|
-
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
5
6
|
size?: "sm";
|
|
6
|
-
kind?: "warning";
|
|
7
|
+
kind?: "warning" | "info";
|
|
7
8
|
}
|
|
8
|
-
declare function Badge({ children, size, kind }: BadgeProps): React.JSX.Element;
|
|
9
|
+
declare function Badge({ className, children, size, kind }: BadgeProps): React.JSX.Element;
|
|
9
10
|
|
|
10
11
|
interface BlockquoteProps {
|
|
11
12
|
children: React.ReactNode;
|
|
@@ -33,15 +34,20 @@ declare function Code({ children }: CodeProps): React.JSX.Element;
|
|
|
33
34
|
interface BaseDetailsProps {
|
|
34
35
|
children: React.ReactNode;
|
|
35
36
|
label: string;
|
|
37
|
+
icon?: React.ReactElement;
|
|
38
|
+
}
|
|
39
|
+
interface TertiaryDetailsProps extends BaseDetailsProps {
|
|
40
|
+
kind: "tertiary";
|
|
41
|
+
title: string | React.ReactNode;
|
|
36
42
|
}
|
|
37
43
|
interface SecondaryDetailsProps extends BaseDetailsProps {
|
|
38
44
|
kind: "secondary";
|
|
39
|
-
title: string;
|
|
45
|
+
title: string | React.ReactNode;
|
|
40
46
|
}
|
|
41
47
|
interface PrimaryDetailsProps extends BaseDetailsProps {
|
|
42
48
|
kind?: "primary";
|
|
43
49
|
}
|
|
44
|
-
type DetailsProps = PrimaryDetailsProps | SecondaryDetailsProps;
|
|
50
|
+
type DetailsProps = PrimaryDetailsProps | SecondaryDetailsProps | TertiaryDetailsProps;
|
|
45
51
|
declare function Details(props: DetailsProps): React.JSX.Element;
|
|
46
52
|
|
|
47
53
|
interface GuideCardProps {
|
|
@@ -78,6 +84,18 @@ declare function IconMetrics(): React.JSX.Element;
|
|
|
78
84
|
declare function IconFunnels(): React.JSX.Element;
|
|
79
85
|
declare function IconCode(): React.JSX.Element;
|
|
80
86
|
declare function IconCustomEvent(): React.JSX.Element;
|
|
87
|
+
declare function IconAlert(): React.JSX.Element;
|
|
88
|
+
declare function IconBrowser(): React.JSX.Element;
|
|
89
|
+
declare function IconREST(): React.JSX.Element;
|
|
90
|
+
declare function IconGraphQL(): React.JSX.Element;
|
|
91
|
+
declare function IconWebhooks(): React.JSX.Element;
|
|
92
|
+
declare function IconJSBrowser(): React.JSX.Element;
|
|
93
|
+
declare function IconJSNode(): React.JSX.Element;
|
|
94
|
+
declare function IconStorybook(): React.JSX.Element;
|
|
95
|
+
declare function IconReactRouter(): React.JSX.Element;
|
|
96
|
+
declare function IconNextJS(): React.JSX.Element;
|
|
97
|
+
declare function IconAppTemplate(): React.JSX.Element;
|
|
98
|
+
declare function IconQuote(): React.JSX.Element;
|
|
81
99
|
|
|
82
100
|
interface NavLinksProps {
|
|
83
101
|
prev?: {
|
|
@@ -112,18 +130,53 @@ interface TableProps {
|
|
|
112
130
|
}
|
|
113
131
|
declare function Table({ children }: TableProps): React.JSX.Element;
|
|
114
132
|
declare namespace Table {
|
|
115
|
-
var Th: ({ children }: TableThProps) => React.JSX.Element;
|
|
133
|
+
var Th: ({ children }: TableThProps$1) => React.JSX.Element;
|
|
134
|
+
var Tr: ({ children }: TableTrProps$1) => React.JSX.Element;
|
|
135
|
+
var Td: ({ children }: TableTdProps$1) => React.JSX.Element;
|
|
136
|
+
}
|
|
137
|
+
interface TableThProps$1 {
|
|
138
|
+
children: React.ReactNode;
|
|
139
|
+
}
|
|
140
|
+
interface TableTrProps$1 {
|
|
141
|
+
children: React.ReactNode;
|
|
142
|
+
}
|
|
143
|
+
interface TableTdProps$1 {
|
|
144
|
+
children: React.ReactNode;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
interface TableV2Props {
|
|
148
|
+
children: React.ReactNode;
|
|
149
|
+
className?: string;
|
|
150
|
+
}
|
|
151
|
+
declare function TableV2({ children, className }: TableV2Props): React.JSX.Element;
|
|
152
|
+
declare namespace TableV2 {
|
|
153
|
+
var Head: ({ children }: TableHeadProps) => React.JSX.Element;
|
|
154
|
+
var Th: ({ children, numeric }: TableThProps) => React.JSX.Element;
|
|
116
155
|
var Tr: ({ children }: TableTrProps) => React.JSX.Element;
|
|
117
|
-
var Td: ({ children }: TableTdProps) => React.JSX.Element;
|
|
156
|
+
var Td: ({ children, numeric, muted }: TableTdProps) => React.JSX.Element;
|
|
157
|
+
var Cell: ({ children }: TableCellProps) => React.JSX.Element;
|
|
158
|
+
var ModelCell: ({ children }: TableModelCellProps) => React.JSX.Element;
|
|
159
|
+
}
|
|
160
|
+
interface TableHeadProps {
|
|
161
|
+
children: React.ReactNode;
|
|
118
162
|
}
|
|
119
163
|
interface TableThProps {
|
|
120
164
|
children: React.ReactNode;
|
|
165
|
+
numeric?: boolean;
|
|
121
166
|
}
|
|
122
167
|
interface TableTrProps {
|
|
123
168
|
children: React.ReactNode;
|
|
124
169
|
}
|
|
125
170
|
interface TableTdProps {
|
|
126
171
|
children: React.ReactNode;
|
|
172
|
+
numeric?: boolean;
|
|
173
|
+
muted?: boolean;
|
|
174
|
+
}
|
|
175
|
+
interface TableCellProps {
|
|
176
|
+
children: React.ReactNode;
|
|
177
|
+
}
|
|
178
|
+
interface TableModelCellProps {
|
|
179
|
+
children: React.ReactNode;
|
|
127
180
|
}
|
|
128
181
|
|
|
129
182
|
interface TabsProps$1 {
|
|
@@ -154,4 +207,5 @@ interface UnderlineNavItemProps {
|
|
|
154
207
|
href?: string;
|
|
155
208
|
}
|
|
156
209
|
|
|
157
|
-
export { Badge,
|
|
210
|
+
export { Badge, Blockquote, Breadcrumbs, Callout, Code, Details, GuideCard, Heading, Hr, IconAlert, IconAppTemplate, IconBrowser, IconCode, IconCustomEvent, IconFunnels, IconGraphQL, IconJSBrowser, IconJSNode, IconMetrics, IconNextJS, IconQuote, IconREST, IconReactRouter, IconSessionReplay, IconStorybook, IconWebhooks, NavLinks, Pre, Steps, Table, TableV2, Tabs, UnderlineNav };
|
|
211
|
+
export type { BadgeProps, BlockquoteProps, BreadcrumbsProps, CalloutProps, CodeProps, DetailsProps, HeadingProps, HrProps, NavLinksProps, PreProps, StepsProps, TableProps, TableTdProps$1 as TableTdProps, TableThProps$1 as TableThProps, TableTrProps$1 as TableTrProps, TabsProps$1 as TabsProps };
|
package/dist/writer.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{B as Badge,a as Blockquote,C as Callout,b as Code,D as Details,H as Heading,c as Hr,h as IconAlert,r as IconAppTemplate,i as IconBrowser,f as IconCode,g as IconCustomEvent,e as IconFunnels,k as IconGraphQL,m as IconJSBrowser,n as IconJSNode,d as IconMetrics,q as IconNextJS,s as IconQuote,j as IconREST,p as IconReactRouter,I as IconSessionReplay,o as IconStorybook,l as IconWebhooks}from"./index-BbIMmTvo.js";import{_ as t}from"./tslib.es6-CNVK7Xcu.js";import u,{Fragment as _}from"react";import{ArrowRightIcon as v,ArrowLeftIcon as N}from"@radix-ui/react-icons";export{G as GuideCard,S as Steps,T as Table,a as TableV2,b as Tabs,U as UnderlineNav}from"./UnderlineNav-3-KptDYD.js";import"./_rollupPluginBabelHelpers-D0XU6lDu.js";import"@radix-ui/react-tabs";import"lucide-react";function y(e){var s=e.children,r=t(e,["children"]);return u.createElement("a",Object.assign({},r),s)}function E(e){return u.createElement("div",{className:"XydComponents-Component-writer-Breadcrumbs-Breadcrumbs_styles_ts__BreadcrumbsHost"},e.items.map((function(t,s){var r=s===e.items.length-1;return u.createElement(_,{key:t.href+t.title},s>0&&u.createElement(v,{className:"XydComponents-Component-writer-Breadcrumbs-Breadcrumbs_styles_ts__BreadcrumbsIcon"}),u.createElement("div",{className:"\n ".concat("XydComponents-Component-writer-Breadcrumbs-Breadcrumbs_styles_ts__BreadcrumbsItem","\n ").concat(r&&"XydComponents-Component-writer-Breadcrumbs-Breadcrumbs_styles_ts__BreadcrumbsItemActive","\n "),title:t.title},t.href&&!r?u.createElement(y,{href:t.href},t.title):t.title))})))}var x="XydComponents-Component-writer-NavLinks-NavLinks_styles_ts__NavLinksLink",L="XydComponents-Component-writer-NavLinks-NavLinks_styles_ts__NavLinksIcon";function w(e){var s=e.children,r=t(e,["children"]);return u.createElement("a",Object.assign({},r),s)}function X(e){return u.createElement("div",{className:"XydComponents-Component-writer-NavLinks-NavLinks_styles_ts__NavLinksHost"},e.prev?u.createElement(w,{href:e.prev.href,title:e.prev.title,className:x},u.createElement(N,{className:L}),e.prev.title):u.createElement("div",null),e.next&&u.createElement(w,{href:e.next.href,title:e.next.title,className:x},e.next.title,u.createElement(v,{className:L})))}function R(e){var t=e.children;return u.createElement("pre",{className:"XydComponents-Component-writer-Pre__PreHost"},t)}export{E as Breadcrumbs,X as NavLinks,R as Pre};
|
|
2
|
+
//# sourceMappingURL=writer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writer.js","sources":["../src/writer/Breadcrumbs/Breadcrumbs.tsx","../src/writer/Breadcrumbs/Breadcrumbs.styles.ts","../src/writer/NavLinks/NavLinks.styles.ts","../src/writer/NavLinks/NavLinks.tsx","../src/writer/Pre/Pre.tsx","../src/writer/Pre/Pre.styles.tsx"],"sourcesContent":["import React, {Fragment} from 'react'\nimport type {ReactElement} from 'react'\nimport {ArrowRightIcon} from '@radix-ui/react-icons'\n\nimport * as cn from './Breadcrumbs.styles'\n\nfunction Anchor({children, ...rest}) {\n return <a {...rest}>\n {children}\n </a>\n}\n\nexport interface BreadcrumbsProps {\n items: {\n title: string\n href?: string\n }[]\n}\n\nexport function Breadcrumbs(props: BreadcrumbsProps): ReactElement {\n return (\n <div className={cn.BreadcrumbsHost}>\n {props.items.map((item, index) => {\n const lastActive = index === props.items.length - 1\n\n return (\n <Fragment key={item.href + item.title}>\n {index > 0 && <ArrowRightIcon className={cn.BreadcrumbsIcon}/>}\n <div className={`\n ${cn.BreadcrumbsItem}\n ${lastActive && cn.BreadcrumbsItemActive}\n `}\n title={item.title}\n >\n {item.href && !lastActive ? (\n <Anchor href={item.href}>{item.title}</Anchor>\n ) : (\n item.title\n )}\n </div>\n </Fragment>\n )\n })}\n </div>\n )\n}\n","import {css} from \"@linaria/core\";\n\nexport const BreadcrumbsHost = css`\n display: flex;\n overflow: hidden;\n margin-top: 0.375rem;\n gap: 0.25rem;\n align-items: center;\n font-size: 0.875rem;\n line-height: 1.25rem;\n color: #6B7280;\n`;\n\nexport const BreadcrumbsIcon = css`\n shrink: 0;\n width: 0.875rem;\n`;\n\nexport const BreadcrumbsItem = css`\n white-space: nowrap;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n`;\n\nexport const BreadcrumbsItemActive = css`\n color: #000;\n font-weight: bold;\n`;\n","import {css} from \"@linaria/core\";\nimport colors from \"@livesession/design-system-colors\";\n\nexport const NavLinksHost = css`\n display: flex;\n padding-top: 2rem;\n margin-top: 2rem;\n margin-bottom: 2rem;\n justify-content: space-between;\n align-items: center;\n border-top-width: 1px;\n border-color: ${colors.dark32};\n`;\n\nexport const NavLinksLink = css`\n display: flex;\n gap: 8px;\n align-items: center;\n font-size: 16px;\n line-height: 1.5;\n font-weight: 600;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n max-width: 50%;\n`;\n\nexport const NavLinksIcon = css`\n display: inline;\n height: 1.25rem;\n flex-shrink: 0;\n`;\n","import React from \"react\"\nimport {ArrowLeftIcon, ArrowRightIcon} from '@radix-ui/react-icons'\n\nimport * as cn from \"./NavLinks.styles\";\n\nfunction Anchor({children, ...rest}) {\n return <a {...rest}>\n {children}\n </a>\n}\n\nexport interface NavLinksProps {\n prev?: {\n title: string\n href: string\n }\n next?: {\n title: string\n href: string\n }\n}\n\nexport function NavLinks(props: NavLinksProps) {\n return (\n <div className={cn.NavLinksHost}>\n {props.prev ? (\n <Anchor\n href={props.prev.href}\n title={props.prev.title}\n className={cn.NavLinksLink}\n >\n <ArrowLeftIcon className={cn.NavLinksIcon}/>\n {props.prev.title}\n </Anchor>\n ) : <div/>}\n {props.next && (\n <Anchor\n href={props.next.href}\n title={props.next.title}\n className={cn.NavLinksLink}\n >\n {props.next.title}\n <ArrowRightIcon className={cn.NavLinksIcon}/>\n </Anchor>\n )}\n </div>\n )\n}\n","import React from \"react\"\n\nimport * as cn from \"./Pre.styles\"\n\nexport interface PreProps {\n children: React.ReactNode\n}\n\nexport function Pre({children}: PreProps) {\n return <pre className={cn.PreHost}>\n {children}\n </pre>\n}","import {css} from \"@linaria/core\";\n\nexport const PreHost = css`\n margin-top: 0;\n border-radius: 6px;\n padding: 16px;\n border: 0;\n\n background-color: rgb(246, 248, 250);\n overflow: auto;\n`;"],"names":["Anchor","_a","children","rest","__rest","React","createElement","Object","assign","Breadcrumbs","props","className","items","map","item","index","lastActive","length","Fragment","key","href","title","ArrowRightIcon","concat","NavLinksLink","NavLinksIcon","NavLinks","prev","cn","ArrowLeftIcon","next","Pre","_ref"],"mappings":"mxBAMA,SAASA,EAAOC,GAAA,IAACC,EAAkBD,EAAlBC,SAAaC,EAAIC,EAAAH,EAAlB,cACZ,OAAOI,EAAOC,cAAA,IAAAC,OAAAC,OAAA,CAAA,EAAAL,GACTD,EAET,CASM,SAAUO,EAAYC,GACxB,OACIL,EAAKC,cAAA,MAAA,CAAAK,UCVZ,qFDWYD,EAAME,MAAMC,KAAI,SAACC,EAAMC,GACpB,IAAMC,EAAaD,IAAUL,EAAME,MAAMK,OAAS,EAElD,OACIZ,EAAAC,cAACY,EAAQ,CAACC,IAAKL,EAAKM,KAAON,EAAKO,OAC3BN,EAAQ,GAAKV,EAACC,cAAAgB,EAAe,CAAAX,UCXrD,sFDYuBN,EAAAC,cAAA,MAAA,CAAKK,UAASY,iCAAAA,OCLrC,oFDM+C,kCAAAA,OAClBP,GCF7B,0FDGwB,8BACIK,MAAOP,EAAKO,OAEZP,EAAKM,OAASJ,EACXX,EAAAC,cAACN,EAAO,CAAAoB,KAAMN,EAAKM,MAAON,EAAKO,OAE/BP,EAAKO,OAKzB,IAGZ,CE1CO,IAWMG,EAWZ,2EAEYC,EAIZ,2EC1BD,SAASzB,EAAOC,GAAA,IAACC,EAAkBD,EAAlBC,SAAaC,EAAIC,EAAAH,EAAlB,cACZ,OAAOI,EAAOC,cAAA,IAAAC,OAAAC,OAAA,CAAA,EAAAL,GACTD,EAET,CAaM,SAAUwB,EAAShB,GACrB,OACIL,EAAKC,cAAA,MAAA,CAAAK,UDZZ,4ECaYD,EAAMiB,KACHtB,EAACC,cAAAN,EACG,CAAAoB,KAAMV,EAAMiB,KAAKP,KACjBC,MAAOX,EAAMiB,KAAKN,MAClBV,UAAWiB,GAEXvB,EAAAC,cAACuB,EAAc,CAAAlB,UAAWiB,IACzBlB,EAAMiB,KAAKN,OAEhBhB,EAAMC,cAAA,MAAA,MACTI,EAAMoB,MACHzB,EAAAC,cAACN,EAAM,CACHoB,KAAMV,EAAMoB,KAAKV,KACjBC,MAAOX,EAAMoB,KAAKT,MAClBV,UAAWiB,GAEVlB,EAAMoB,KAAKT,MACZhB,EAAAC,cAACgB,EAAc,CAACX,UAAWiB,KAK/C,CCvCgB,SAAAG,EAAGC,GAAqB,IAAnB9B,EAAQ8B,EAAR9B,SACjB,OAAOG,EAAAC,cAAA,MAAA,CAAKK,UCCf,+CDAQT,EAET"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyd-js/components",
|
|
3
|
-
"version": "0.1.0-xyd.
|
|
3
|
+
"version": "0.1.0-xyd.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,28 +31,29 @@
|
|
|
31
31
|
},
|
|
32
32
|
"./writer": {
|
|
33
33
|
"import": "./dist/writer.js"
|
|
34
|
+
},
|
|
35
|
+
"./coder/themes/*": {
|
|
36
|
+
"import": "./dist/coder/themes/*"
|
|
34
37
|
}
|
|
35
38
|
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"clean": "rimraf build",
|
|
38
|
-
"prebuild": "pnpm clean",
|
|
39
|
-
"build": "rollup -c rollup.config.js"
|
|
40
|
-
},
|
|
41
39
|
"dependencies": {
|
|
40
|
+
"@livesession/design-system-colors": "0.0.6-alpha-refactor-and-typo.0",
|
|
42
41
|
"@radix-ui/react-icons": "^1.3.0",
|
|
43
42
|
"@radix-ui/react-tabs": "^1.1.1",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"codehike": "^1.0.3"
|
|
43
|
+
"codehike": "^1.0.3",
|
|
44
|
+
"lucide-react": "^0.447.0"
|
|
47
45
|
},
|
|
48
46
|
"peerDependencies": {
|
|
49
|
-
"
|
|
47
|
+
"@code-hike/lighter": "^1.0.1",
|
|
48
|
+
"react": "^19.0.0"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
|
-
"@babel/preset-typescript": "^7.26.0",
|
|
53
|
-
"@babel/preset-react": "^7.26.0",
|
|
54
51
|
"@babel/preset-env": "^7.26.0",
|
|
55
52
|
"@babel/preset-flow": "^7.25.9",
|
|
53
|
+
"@babel/preset-react": "^7.26.0",
|
|
54
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
55
|
+
"@linaria/atomic": "^6.2.0",
|
|
56
|
+
"@linaria/core": "^6.2.0",
|
|
56
57
|
"@rollup/plugin-alias": "^5.1.1",
|
|
57
58
|
"@rollup/plugin-babel": "^6.0.4",
|
|
58
59
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
@@ -63,12 +64,18 @@
|
|
|
63
64
|
"autoprefixer": "^10.4.20",
|
|
64
65
|
"postcss": "^8.4.47",
|
|
65
66
|
"postcss-import": "^16.1.0",
|
|
67
|
+
"rimraf": "^3.0.2",
|
|
66
68
|
"rollup": "^4.27.4",
|
|
67
69
|
"rollup-plugin-css-only": "^4.5.2",
|
|
68
70
|
"rollup-plugin-dts": "^6.1.1",
|
|
69
71
|
"rollup-plugin-postcss": "^4.0.2",
|
|
70
72
|
"rollup-plugin-terser": "^7.0.2",
|
|
71
|
-
"tsup": "^8.3.0"
|
|
72
|
-
|
|
73
|
+
"tsup": "^8.3.0"
|
|
74
|
+
},
|
|
75
|
+
"scripts": {
|
|
76
|
+
"build": "rollup -c rollup.config.js",
|
|
77
|
+
"dev": "rollup -c rollup.config.js --watch",
|
|
78
|
+
"prebuild": "pnpm clean",
|
|
79
|
+
"clean": "rimraf build"
|
|
73
80
|
}
|
|
74
81
|
}
|
package/rollup.config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
1
3
|
import {fileURLToPath} from 'url';
|
|
2
|
-
import {dirname} from 'path';
|
|
3
4
|
|
|
4
5
|
import resolve from '@rollup/plugin-node-resolve';
|
|
5
6
|
import commonjs from '@rollup/plugin-commonjs';
|
|
@@ -10,15 +11,30 @@ import babel from '@rollup/plugin-babel';
|
|
|
10
11
|
import postcss from 'rollup-plugin-postcss';
|
|
11
12
|
import wyw from '@wyw-in-js/rollup';
|
|
12
13
|
|
|
13
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
14
|
-
const __dirname = dirname(__filename);
|
|
15
|
-
|
|
16
14
|
import {createRequire} from 'module';
|
|
17
15
|
|
|
18
16
|
const require = createRequire(import.meta.url);
|
|
19
|
-
const {
|
|
17
|
+
const {
|
|
18
|
+
dependencies,
|
|
19
|
+
peerDependencies,
|
|
20
|
+
devDependencies
|
|
21
|
+
} = require('./package.json', {assert: {type: 'json'}});
|
|
20
22
|
|
|
21
|
-
const external =
|
|
23
|
+
const external = [
|
|
24
|
+
...Object.keys(dependencies),
|
|
25
|
+
...Object.keys(peerDependencies),
|
|
26
|
+
...Object.keys(devDependencies),
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
30
|
+
const __dirname = path.dirname(__filename);
|
|
31
|
+
|
|
32
|
+
const themesDir = path.resolve(__dirname, 'src/coder/themes');
|
|
33
|
+
const themes = fs.readdirSync(themesDir).reduce((acc, file) => {
|
|
34
|
+
const themeName = path.basename(file, path.extname(file));
|
|
35
|
+
acc[`coder/themes/${themeName}`] = path.join(themesDir, file);
|
|
36
|
+
return acc;
|
|
37
|
+
}, {});
|
|
22
38
|
|
|
23
39
|
export default [
|
|
24
40
|
{
|
|
@@ -31,12 +47,13 @@ export default [
|
|
|
31
47
|
pages: 'src/pages/index.ts',
|
|
32
48
|
views: 'src/views/index.ts',
|
|
33
49
|
writer: 'writer.ts',
|
|
50
|
+
...themes
|
|
34
51
|
},
|
|
35
52
|
output: [
|
|
36
53
|
{
|
|
37
54
|
dir: 'dist',
|
|
38
55
|
format: 'esm',
|
|
39
|
-
sourcemap:
|
|
56
|
+
sourcemap: true,
|
|
40
57
|
entryFileNames: '[name].js'
|
|
41
58
|
}
|
|
42
59
|
],
|
|
@@ -49,6 +66,25 @@ export default [
|
|
|
49
66
|
'@babel/preset-react'
|
|
50
67
|
],
|
|
51
68
|
},
|
|
69
|
+
classNameSlug: (hash, title, {file}) => {
|
|
70
|
+
// Get the full path after 'src/components/'
|
|
71
|
+
const pathParts = file.split('/');
|
|
72
|
+
const componentsIndex = pathParts.indexOf('src');
|
|
73
|
+
if (componentsIndex === -1) return `XydComponents-Component-${title}`;
|
|
74
|
+
|
|
75
|
+
// Get everything after 'components' directory
|
|
76
|
+
const componentPath = pathParts
|
|
77
|
+
.slice(componentsIndex + 1)
|
|
78
|
+
.filter(part => !part.endsWith('.styles.tsx')) // Remove styles.tsx
|
|
79
|
+
.join('-');
|
|
80
|
+
|
|
81
|
+
// Use the title as the style name (it's already the variable name)
|
|
82
|
+
const styleName = title.replace(/^\$/, ''); // Remove $ prefix if present
|
|
83
|
+
|
|
84
|
+
// TODO: in the future hash + system to override styles for specific components if hash
|
|
85
|
+
return `XydComponents-Component-${componentPath}__${styleName}`;
|
|
86
|
+
// return `XydComponents-Component-${componentPath}__${styleName}_${hash}`;
|
|
87
|
+
}
|
|
52
88
|
}),
|
|
53
89
|
postcss({
|
|
54
90
|
extract: true,
|
|
@@ -145,5 +181,14 @@ export default [
|
|
|
145
181
|
},
|
|
146
182
|
plugins: [dts()],
|
|
147
183
|
external
|
|
148
|
-
}
|
|
184
|
+
},
|
|
185
|
+
...Object.keys(themes).map(theme => ({
|
|
186
|
+
input: themes[theme],
|
|
187
|
+
output: {
|
|
188
|
+
file: `dist/${theme}.d.ts`,
|
|
189
|
+
format: 'es',
|
|
190
|
+
},
|
|
191
|
+
plugins: [dts()],
|
|
192
|
+
external
|
|
193
|
+
}))
|
|
149
194
|
];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {css} from "@linaria/core";
|
|
2
|
+
|
|
3
|
+
export const ButtonHost = css`
|
|
4
|
+
display: inline-block;
|
|
5
|
+
border: 1px solid transparent;
|
|
6
|
+
text-align: center;
|
|
7
|
+
font-weight: 600;
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
border-radius: 20px;
|
|
10
|
+
padding: 0 20px;
|
|
11
|
+
line-height: 38px;
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
border-color: transparent;
|
|
14
|
+
color: #3c3c43;
|
|
15
|
+
background-color: #f7f7f8;
|
|
16
|
+
|
|
17
|
+
transition: color .25s, border-color .25s, background-color .25s;
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
background: #e3e3e6;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
export const ButtonHostSecondary = css`
|
|
25
|
+
color: #fff;
|
|
26
|
+
background-color: rgb(112, 81, 212);
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
background-color: rgb(95, 59, 211)
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
@@ -1,37 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const $button = {
|
|
5
|
-
host: css`
|
|
6
|
-
display: inline-block;
|
|
7
|
-
border: 1px solid transparent;
|
|
8
|
-
text-align: center;
|
|
9
|
-
font-weight: 600;
|
|
10
|
-
white-space: nowrap;
|
|
11
|
-
border-radius: 20px;
|
|
12
|
-
padding: 0 20px;
|
|
13
|
-
line-height: 38px;
|
|
14
|
-
font-size: 14px;
|
|
15
|
-
border-color: transparent;
|
|
16
|
-
color: #3c3c43;
|
|
17
|
-
background-color: #f7f7f8;
|
|
18
|
-
|
|
19
|
-
transition: color .25s, border-color .25s, background-color .25s;
|
|
20
|
-
|
|
21
|
-
&:hover {
|
|
22
|
-
background: #e3e3e6;
|
|
23
|
-
}
|
|
24
|
-
`,
|
|
25
|
-
|
|
26
|
-
host$$secondary: css`
|
|
27
|
-
color: #fff;
|
|
28
|
-
background-color: rgb(112, 81, 212);
|
|
29
|
-
|
|
30
|
-
&:hover {
|
|
31
|
-
background-color: rgb(95, 59, 211)
|
|
32
|
-
}
|
|
33
|
-
`
|
|
34
|
-
}
|
|
2
|
+
import * as cn from "./Button.styles";
|
|
35
3
|
|
|
36
4
|
export interface ButtonProps {
|
|
37
5
|
children: React.ReactNode
|
|
@@ -40,8 +8,8 @@ export interface ButtonProps {
|
|
|
40
8
|
|
|
41
9
|
export function Button({children, kind}: ButtonProps) {
|
|
42
10
|
return <button className={`
|
|
43
|
-
${
|
|
44
|
-
${kind === "secondary" &&
|
|
11
|
+
${cn.ButtonHost}
|
|
12
|
+
${kind === "secondary" && cn.ButtonHostSecondary}
|
|
45
13
|
`}>
|
|
46
14
|
{children}
|
|
47
15
|
</button>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {css} from "@linaria/core";
|
|
2
|
+
|
|
3
|
+
export const CTABannerHost = css`
|
|
4
|
+
padding: 20px;
|
|
5
|
+
`;
|
|
6
|
+
|
|
7
|
+
export const CTABannerContainer = css`
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
gap: 80px;
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
export const CTABannerHero = css`
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 40px;
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
export const CTABannerHeadingEffect = css`
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
|
|
28
|
+
background: -webkit-linear-gradient(
|
|
29
|
+
120deg,
|
|
30
|
+
var(--headingEffect-color-tertiary) 20%,
|
|
31
|
+
var(--headingEffect-color-tertiary) 30%,
|
|
32
|
+
var(--headingEffect-color-secondary) 60%,
|
|
33
|
+
var(--headingEffect-color-primary) 75%,
|
|
34
|
+
var(--headingEffect-color-primary) 85%
|
|
35
|
+
);
|
|
36
|
+
background-clip: text;
|
|
37
|
+
-webkit-text-fill-color: transparent;
|
|
38
|
+
animation: wave 5s infinite;
|
|
39
|
+
background-size: 200% 200%;
|
|
40
|
+
background-position: 50% 50%; // Start with all colors visible
|
|
41
|
+
|
|
42
|
+
@keyframes wave {
|
|
43
|
+
0% {
|
|
44
|
+
background-position: 50% 50%;
|
|
45
|
+
}
|
|
46
|
+
50% {
|
|
47
|
+
background-position: 0% 50%;
|
|
48
|
+
}
|
|
49
|
+
100% {
|
|
50
|
+
background-position: 50% 50%;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
export const CTABannerHeadingHost = css`
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
`;
|
|
61
|
+
|
|
62
|
+
export const CTABannerHeadingTitle = css`
|
|
63
|
+
font-size: 76px;
|
|
64
|
+
font-weight: 900;
|
|
65
|
+
text-align: center;
|
|
66
|
+
letter-spacing: 3px;
|
|
67
|
+
margin: 0;
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
export const CTABannerHeadingSubtitle = css`
|
|
71
|
+
color: #3c3c43;
|
|
72
|
+
font-size: 46px;
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
text-align: center;
|
|
75
|
+
`;
|
|
76
|
+
|
|
77
|
+
export const CTABannerButtonGroupHost = css`
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
gap: 10px;
|
|
82
|
+
`;
|
|
@@ -1,127 +1,49 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as cn from "./CTABanner.styles";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
`,
|
|
8
|
-
container: css`
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
gap: 80px;
|
|
13
|
-
`,
|
|
14
|
-
hero: css`
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
gap: 40px;
|
|
20
|
-
`,
|
|
21
|
-
headingEffect: css`
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
|
|
27
|
-
background: -webkit-linear-gradient(
|
|
28
|
-
120deg,
|
|
29
|
-
var(--headingEffect-color-tertiary) 20%,
|
|
30
|
-
var(--headingEffect-color-tertiary) 30%,
|
|
31
|
-
var(--headingEffect-color-secondary) 60%,
|
|
32
|
-
var(--headingEffect-color-primary) 75%,
|
|
33
|
-
var(--headingEffect-color-primary) 85%
|
|
34
|
-
);
|
|
35
|
-
background-clip: text;
|
|
36
|
-
-webkit-text-fill-color: transparent;
|
|
37
|
-
animation: wave 5s infinite;
|
|
38
|
-
background-size: 200% 200%;
|
|
39
|
-
background-position: 50% 50%; // Start with all colors visible
|
|
4
|
+
export interface CTABannerProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
40
7
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
50% {
|
|
46
|
-
background-position: 0% 50%;
|
|
47
|
-
}
|
|
48
|
-
100% {
|
|
49
|
-
background-position: 50% 50%;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
`
|
|
8
|
+
export interface CTABannerHeadingProps {
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle: string;
|
|
53
11
|
}
|
|
54
12
|
|
|
55
|
-
export interface
|
|
56
|
-
children: React.ReactNode
|
|
13
|
+
export interface CTABannerButtonGroupProps {
|
|
14
|
+
children: React.ReactNode;
|
|
57
15
|
}
|
|
58
16
|
|
|
59
17
|
export function CTABanner({children}: CTABannerProps) {
|
|
60
|
-
return
|
|
61
|
-
<div className={
|
|
62
|
-
<div className={
|
|
63
|
-
{
|
|
18
|
+
return (
|
|
19
|
+
<div className={cn.CTABannerHost}>
|
|
20
|
+
<div className={cn.CTABannerContainer}>
|
|
21
|
+
<div className={cn.CTABannerHero}>
|
|
22
|
+
{children}
|
|
23
|
+
</div>
|
|
64
24
|
</div>
|
|
65
25
|
</div>
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const $heading = {
|
|
70
|
-
host: css`
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
`,
|
|
76
|
-
title: css`
|
|
77
|
-
font-size: 76px;
|
|
78
|
-
font-weight: 900;
|
|
79
|
-
text-align: center;
|
|
80
|
-
letter-spacing: 3px;
|
|
81
|
-
margin: 0;
|
|
82
|
-
`,
|
|
83
|
-
subtitle: css`
|
|
84
|
-
color: #3c3c43;
|
|
85
|
-
font-size: 46px;
|
|
86
|
-
font-weight: 600;
|
|
87
|
-
text-align: center;
|
|
88
|
-
`
|
|
26
|
+
);
|
|
89
27
|
}
|
|
90
28
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
{
|
|
101
|
-
headingEffect
|
|
102
|
-
? <span className={$banner.headingEffect}>
|
|
103
|
-
{title}
|
|
104
|
-
</span>
|
|
105
|
-
: title
|
|
106
|
-
}
|
|
107
|
-
</h1>
|
|
108
|
-
<p className={$heading.subtitle}>
|
|
109
|
-
{subtitle}
|
|
110
|
-
</p>
|
|
111
|
-
</div>
|
|
29
|
+
function Heading({title, subtitle}: CTABannerHeadingProps) {
|
|
30
|
+
return (
|
|
31
|
+
<div className={cn.CTABannerHeadingHost}>
|
|
32
|
+
<div className={cn.CTABannerHeadingEffect}>
|
|
33
|
+
<h1 className={cn.CTABannerHeadingTitle}>{title}</h1>
|
|
34
|
+
</div>
|
|
35
|
+
<h2 className={cn.CTABannerHeadingSubtitle}>{subtitle}</h2>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
112
38
|
}
|
|
113
39
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
`
|
|
40
|
+
function ButtonGroup({children}: CTABannerButtonGroupProps) {
|
|
41
|
+
return (
|
|
42
|
+
<div className={cn.CTABannerButtonGroupHost}>
|
|
43
|
+
{children}
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
121
46
|
}
|
|
122
47
|
|
|
123
|
-
CTABanner.
|
|
124
|
-
|
|
125
|
-
{children}
|
|
126
|
-
</div>
|
|
127
|
-
}
|
|
48
|
+
CTABanner.Heading = Heading;
|
|
49
|
+
CTABanner.ButtonGroup = ButtonGroup;
|