@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.
- package/CHANGELOG.md +61 -0
- package/LICENSE +21 -0
- package/dist/CTABanner-BLDHbq5h.js +2 -0
- package/dist/CTABanner-BLDHbq5h.js.map +1 -0
- package/dist/CTABanner-n3vc4xW5.js +2 -0
- package/dist/CTABanner-n3vc4xW5.js.map +1 -0
- package/dist/CodeSample-CVki5fdQ.js +2 -0
- package/dist/CodeSample-CVki5fdQ.js.map +1 -0
- package/dist/CodeSample-Dkob5gWa.js +2 -0
- package/dist/CodeSample-Dkob5gWa.js.map +1 -0
- package/dist/HomeView-DHdqouwJ.js +2 -0
- package/dist/HomeView-DHdqouwJ.js.map +1 -0
- package/dist/HomeView-TDx2tcP_.js +2 -0
- package/dist/HomeView-TDx2tcP_.js.map +1 -0
- package/dist/UnderlineNav-9lJPvnIp.js +2 -0
- package/dist/UnderlineNav-9lJPvnIp.js.map +1 -0
- package/dist/UnderlineNav-VqB7jDQD.js +2 -0
- package/dist/UnderlineNav-VqB7jDQD.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-C8nLsqZ7.js +2 -0
- package/dist/_rollupPluginBabelHelpers-C8nLsqZ7.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CrdNG0jb.js +2 -0
- package/dist/_rollupPluginBabelHelpers-CrdNG0jb.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 +52 -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-TkBHKzGT.js +2 -0
- package/dist/index-TkBHKzGT.js.map +1 -0
- package/dist/index-YH6Q3iH2.js +2 -0
- package/dist/index-YH6Q3iH2.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-BI9zka_a.js} +1 -0
- package/dist/tslib.es6-BI9zka_a.js.map +1 -0
- package/dist/{tslib.es6-CMPV4d4T.js → tslib.es6-sxmRJynD.js} +1 -0
- package/dist/tslib.es6-sxmRJynD.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/tslib.es6-DlLz3CkS.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/src/coder/index.ts
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
export {
|
|
2
|
+
annotations
|
|
3
|
+
} from "./Code"
|
|
4
|
+
export type {
|
|
5
|
+
CodeProps
|
|
6
|
+
} from "./Code"
|
|
7
|
+
export {
|
|
8
|
+
Code,
|
|
9
|
+
CodeLoader,
|
|
10
|
+
|
|
11
|
+
highlight
|
|
12
|
+
} from "./Code"
|
|
13
|
+
//
|
|
14
|
+
|
|
15
|
+
export type {CodeSampleProps} from "./CodeSample";
|
|
1
16
|
export {CodeSample} from "./CodeSample";
|
|
17
|
+
//
|
|
18
|
+
|
|
19
|
+
export type {
|
|
20
|
+
CodeTabsProps
|
|
21
|
+
} from "./CodeTabs";
|
|
22
|
+
export {
|
|
23
|
+
withCodeTabs
|
|
24
|
+
} from "./CodeTabs";
|
|
25
|
+
//
|
|
26
|
+
|
|
27
|
+
export type {CodeThemeProps, CodeThemeBlockProps} from "./CodeTheme";
|
|
28
|
+
export {
|
|
29
|
+
CodeTheme,
|
|
30
|
+
CodeThemeCSR,
|
|
2
31
|
|
|
3
|
-
|
|
32
|
+
useCodeTheme
|
|
33
|
+
} from "./CodeTheme";
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import {Theme} from "@code-hike/lighter";
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export default {
|
|
6
|
+
name: "cosmo-light",
|
|
6
7
|
type: "light",
|
|
7
8
|
colors: {
|
|
8
9
|
"list.focusForeground": "#FFFFFF",
|
|
@@ -263,4 +264,4 @@ export const theme: Theme = {
|
|
|
263
264
|
},
|
|
264
265
|
},
|
|
265
266
|
],
|
|
266
|
-
}
|
|
267
|
+
} as Theme
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import React, {forwardRef} from 'react'
|
|
2
2
|
import type {ComponentProps, ReactElement} from 'react'
|
|
3
|
-
|
|
4
|
-
import {css} from "@linaria/core";
|
|
5
|
-
|
|
6
|
-
const $anchor = {
|
|
7
|
-
host: css`
|
|
8
|
-
color: #7051d4;
|
|
9
|
-
`,
|
|
10
|
-
};
|
|
3
|
+
import * as cn from "./Anchor.styles";
|
|
11
4
|
|
|
12
5
|
export type AnchorProps = Omit<ComponentProps<'a'>, 'ref'> & {
|
|
13
6
|
newWindow?: boolean
|
|
@@ -24,11 +17,10 @@ export const Anchor = forwardRef<HTMLAnchorElement, AnchorProps>(function (
|
|
|
24
17
|
return (
|
|
25
18
|
<a
|
|
26
19
|
ref={forwardedRef}
|
|
27
|
-
to={href}
|
|
28
20
|
href={href}
|
|
29
21
|
target="_blank"
|
|
30
22
|
rel="noreferrer"
|
|
31
|
-
className={
|
|
23
|
+
className={cn.AnchorHost}
|
|
32
24
|
>
|
|
33
25
|
{children}
|
|
34
26
|
</a>
|
|
@@ -39,9 +31,8 @@ export const Anchor = forwardRef<HTMLAnchorElement, AnchorProps>(function (
|
|
|
39
31
|
return (
|
|
40
32
|
<a
|
|
41
33
|
ref={forwardedRef}
|
|
42
|
-
to={href}
|
|
43
34
|
href={href}
|
|
44
|
-
className={
|
|
35
|
+
className={cn.AnchorHost}
|
|
45
36
|
>
|
|
46
37
|
{children}
|
|
47
38
|
</a>
|
|
@@ -51,9 +42,8 @@ export const Anchor = forwardRef<HTMLAnchorElement, AnchorProps>(function (
|
|
|
51
42
|
return (
|
|
52
43
|
<a
|
|
53
44
|
ref={forwardedRef}
|
|
54
|
-
to={href}
|
|
55
45
|
href={href}
|
|
56
|
-
className={
|
|
46
|
+
className={cn.AnchorHost}
|
|
57
47
|
>
|
|
58
48
|
{children}
|
|
59
49
|
</a>
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const $content = {
|
|
5
|
-
host: css`
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: 24px;
|
|
9
|
-
`
|
|
10
|
-
}
|
|
2
|
+
import * as cn from "./Content.styles";
|
|
11
3
|
|
|
12
4
|
export interface ContentProps {
|
|
13
5
|
children: React.ReactNode
|
|
14
6
|
}
|
|
15
7
|
|
|
16
8
|
export function Content({children}: ContentProps) {
|
|
17
|
-
return <div className={
|
|
9
|
+
return <div className={cn.ContentHost}>
|
|
18
10
|
{children}
|
|
19
11
|
</div>
|
|
20
|
-
}
|
|
12
|
+
}
|
|
13
|
+
|
package/src/content/Content.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
Heading,
|
|
11
11
|
Hr,
|
|
12
12
|
Table,
|
|
13
|
+
TableV2,
|
|
13
14
|
Tabs,
|
|
14
15
|
Steps,
|
|
15
16
|
|
|
@@ -18,6 +19,18 @@ import {
|
|
|
18
19
|
IconFunnels,
|
|
19
20
|
IconMetrics,
|
|
20
21
|
IconSessionReplay,
|
|
22
|
+
IconAlert,
|
|
23
|
+
IconBrowser,
|
|
24
|
+
IconREST,
|
|
25
|
+
IconGraphQL,
|
|
26
|
+
IconWebhooks,
|
|
27
|
+
IconJSBrowser,
|
|
28
|
+
IconJSNode,
|
|
29
|
+
IconStorybook,
|
|
30
|
+
IconReactRouter,
|
|
31
|
+
IconNextJS,
|
|
32
|
+
IconAppTemplate,
|
|
33
|
+
IconQuote
|
|
21
34
|
} from '../writer'
|
|
22
35
|
import {CodeSample} from "../coder";
|
|
23
36
|
|
|
@@ -27,7 +40,7 @@ import {Anchor} from "./Anchor";
|
|
|
27
40
|
|
|
28
41
|
const EXTERNAL_HREF_REGEX = /https?:\/\//
|
|
29
42
|
|
|
30
|
-
const Link = ({href = '', className, ...props}) => (
|
|
43
|
+
const Link = ({href = '', className = "", ...props}) => (
|
|
31
44
|
<Anchor
|
|
32
45
|
href={href}
|
|
33
46
|
newWindow={EXTERNAL_HREF_REGEX.test(href)}
|
|
@@ -43,6 +56,7 @@ export default function content() {
|
|
|
43
56
|
...helperContent(),
|
|
44
57
|
...iconContent(),
|
|
45
58
|
...coderContent(),
|
|
59
|
+
...directiveContent(),
|
|
46
60
|
}
|
|
47
61
|
}
|
|
48
62
|
|
|
@@ -71,10 +85,14 @@ export function stdContent() {
|
|
|
71
85
|
{props.children}
|
|
72
86
|
</li>,
|
|
73
87
|
|
|
74
|
-
table:
|
|
75
|
-
tr:
|
|
76
|
-
th:
|
|
77
|
-
td:
|
|
88
|
+
table: TableV2,
|
|
89
|
+
tr: TableV2.Tr,
|
|
90
|
+
th: TableV2.Th,
|
|
91
|
+
td: (props) => <TableV2.Td {...props}>
|
|
92
|
+
<TableV2.Cell>
|
|
93
|
+
{props.children}
|
|
94
|
+
</TableV2.Cell>
|
|
95
|
+
</TableV2.Td>,
|
|
78
96
|
|
|
79
97
|
code: Code,
|
|
80
98
|
pre: props => {
|
|
@@ -108,11 +126,23 @@ export function writerContent() {
|
|
|
108
126
|
GuideCard,
|
|
109
127
|
Steps,
|
|
110
128
|
Tabs,
|
|
111
|
-
Table,
|
|
129
|
+
Table: TableV2,
|
|
112
130
|
Badge,
|
|
113
131
|
}
|
|
114
132
|
}
|
|
115
133
|
|
|
134
|
+
export function directiveContent() {
|
|
135
|
+
return {
|
|
136
|
+
// TODO: deprecate?
|
|
137
|
+
DirectiveCodeSample: (props) => {
|
|
138
|
+
return <CodeSample
|
|
139
|
+
{...props}
|
|
140
|
+
codeblocks={JSON.parse(props.codeblocks)}
|
|
141
|
+
/>
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
116
146
|
export function helperContent() {
|
|
117
147
|
return {
|
|
118
148
|
Content: ContentComponent,
|
|
@@ -127,6 +157,18 @@ export function iconContent() {
|
|
|
127
157
|
IconFunnels,
|
|
128
158
|
IconCode,
|
|
129
159
|
IconCustomEvent,
|
|
160
|
+
IconAlert,
|
|
161
|
+
IconBrowser,
|
|
162
|
+
IconREST,
|
|
163
|
+
IconGraphQL,
|
|
164
|
+
IconWebhooks,
|
|
165
|
+
IconJSBrowser,
|
|
166
|
+
IconJSNode,
|
|
167
|
+
IconStorybook,
|
|
168
|
+
IconReactRouter,
|
|
169
|
+
IconNextJS,
|
|
170
|
+
IconAppTemplate,
|
|
171
|
+
IconQuote,
|
|
130
172
|
}
|
|
131
173
|
}
|
|
132
174
|
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const $subitlte = {
|
|
5
|
-
host: css`
|
|
6
|
-
margin-top: -18px;
|
|
7
|
-
font-size: 18px;
|
|
8
|
-
color: #7051d4;
|
|
9
|
-
font-weight: 300;
|
|
10
|
-
`
|
|
11
|
-
}
|
|
2
|
+
import * as cn from "./Subtitle.styles";
|
|
12
3
|
|
|
13
4
|
export interface SubtitleProps {
|
|
14
5
|
children: React.ReactNode
|
|
15
6
|
}
|
|
16
7
|
|
|
17
8
|
export function Subtitle({children}: SubtitleProps) {
|
|
18
|
-
return <div className={
|
|
9
|
+
return <div className={cn.Host}>
|
|
19
10
|
{children}
|
|
20
11
|
</div>
|
|
21
12
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {css} from "@linaria/core";
|
|
2
2
|
|
|
3
3
|
const globalPageGutter = '8px';
|
|
4
|
-
export const globalHeaderHeight = '
|
|
4
|
+
export const globalHeaderHeight = '40px';
|
|
5
5
|
const globalHeaderWarningHeight = "0px";
|
|
6
6
|
const contentTopSpace = "12px";
|
|
7
7
|
|
|
8
|
-
const globalHeaderHeightWithSub = '
|
|
8
|
+
const globalHeaderHeightWithSub = '94px';
|
|
9
9
|
|
|
10
10
|
const cubicMove = "cubic-bezier(.65, 0, .35, 1)";
|
|
11
11
|
const sidebarWidth = "210px";
|
|
@@ -20,132 +20,136 @@ export const globals = css`
|
|
|
20
20
|
}
|
|
21
21
|
`;
|
|
22
22
|
|
|
23
|
-
export const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
export const
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
23
|
+
export const LayoutHost = css`
|
|
24
|
+
width: 100%;
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
export const LayoutHeader = css`
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
align-items: center;
|
|
31
|
+
|
|
32
|
+
position: fixed;
|
|
33
|
+
top: ${globalHeaderWarningHeight};
|
|
34
|
+
right: ${globalPageGutter};
|
|
35
|
+
left: ${globalPageGutter};
|
|
36
|
+
|
|
37
|
+
height: ${globalHeaderHeight};
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
export const LayoutHeaderSub = css`
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
height: ${globalHeaderHeightWithSub};
|
|
43
|
+
transition: transform 200ms;
|
|
44
|
+
`;
|
|
45
|
+
|
|
46
|
+
export const LayoutHeaderHideMain = css`
|
|
47
|
+
transform: translateY(calc(-${globalHeaderHeight} + 3px));
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
export const LayoutMain = css`
|
|
51
|
+
position: fixed;
|
|
52
|
+
top: calc(${globalHeaderHeight} + ${globalHeaderWarningHeight});
|
|
53
|
+
bottom: ${globalPageGutter};
|
|
54
|
+
left: ${globalPageGutter};
|
|
55
|
+
right: ${globalPageGutter};
|
|
56
|
+
}`;
|
|
57
|
+
|
|
58
|
+
export const LayoutMainSub = css`
|
|
59
|
+
top: calc(${globalHeaderHeightWithSub} + ${globalHeaderWarningHeight});
|
|
60
|
+
transition: top 200ms;
|
|
61
|
+
`;
|
|
62
|
+
|
|
63
|
+
export const LayoutSidebar = css`
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0;
|
|
67
|
+
left: 0;
|
|
68
|
+
bottom: 0;
|
|
69
|
+
right: 0;
|
|
70
|
+
z-index: 101;
|
|
71
|
+
width: ${sidebarWidth};
|
|
72
|
+
border: 0;
|
|
73
|
+
padding: ${contentTopSpace} 0 0;
|
|
74
|
+
overflow: visible;
|
|
75
|
+
background: none;
|
|
76
|
+
border-radius: 0;
|
|
77
|
+
opacity: 1;
|
|
78
|
+
visibility: visible;
|
|
79
|
+
transition: opacity .3s ${cubicMove};
|
|
80
|
+
`;
|
|
81
|
+
|
|
82
|
+
export const PageHost = css`
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: ${contentTopSpace};
|
|
85
|
+
right: 0;
|
|
86
|
+
bottom: 0;
|
|
87
|
+
z-index: 201;
|
|
88
|
+
background: #fff;
|
|
89
|
+
|
|
90
|
+
//border-radius: 8px;
|
|
91
|
+
//border: 1px solid #ececf1;
|
|
92
|
+
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
transition: opacity .3s ${cubicMove};
|
|
95
|
+
|
|
96
|
+
left: ${sidebarWidth};
|
|
97
|
+
`;
|
|
98
|
+
|
|
99
|
+
export const PageScroll = css`
|
|
100
|
+
//position: absolute;
|
|
101
|
+
//top: 0;
|
|
102
|
+
//right: 0;
|
|
103
|
+
//bottom: 0;
|
|
104
|
+
//left: 0;
|
|
105
|
+
//overflow: auto;
|
|
106
|
+
|
|
107
|
+
overflow: scroll;
|
|
108
|
+
height: 100%;
|
|
109
|
+
`;
|
|
110
|
+
|
|
111
|
+
export const PageContainer = css`
|
|
112
|
+
padding: 0;
|
|
113
|
+
width: 100%;
|
|
114
|
+
//position: relative; TODO: unset if during client render?
|
|
115
|
+
min-height: 100%;
|
|
116
|
+
|
|
117
|
+
max-width: 100%;
|
|
118
|
+
margin: 0 auto;
|
|
119
|
+
font-size: 15px;
|
|
120
|
+
line-height: 24px;
|
|
121
|
+
`;
|
|
122
|
+
|
|
123
|
+
export const PageArticleContainer = css`
|
|
124
|
+
width: 980px;
|
|
125
|
+
padding: 40px 56px;
|
|
126
|
+
padding-top: 20px;
|
|
127
|
+
max-width: 100%;
|
|
128
|
+
margin: 0 auto;
|
|
129
|
+
`;
|
|
130
|
+
|
|
131
|
+
export const PageArticleContainerFullWidth = css`
|
|
132
|
+
width: 1200px;
|
|
133
|
+
`;
|
|
134
|
+
|
|
135
|
+
export const ArticleHost = css`
|
|
136
|
+
display: flex;
|
|
137
|
+
gap: 30px;
|
|
138
|
+
width: 100%;
|
|
139
|
+
align-items: flex-start;;
|
|
140
|
+
`;
|
|
141
|
+
|
|
142
|
+
export const ArticleContent = css`
|
|
143
|
+
flex: 1 1 0;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
`;
|
|
146
|
+
|
|
147
|
+
export const ArticleNav = css`
|
|
148
|
+
position: sticky;
|
|
149
|
+
top: 30px;
|
|
150
|
+
width: 180px;
|
|
151
|
+
margin-top: 0;
|
|
152
|
+
margin-left: 50px;
|
|
153
|
+
padding-left: 16px;
|
|
154
|
+
flex: none;
|
|
155
|
+
`;
|
package/src/layouts/Layout.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, {useEffect, useState} from "react"
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import * as cn from "./Layout.styles"
|
|
4
4
|
|
|
5
5
|
export interface LayoutProps {
|
|
6
6
|
header: React.ReactNode;
|
|
@@ -21,7 +21,7 @@ export function Layout(props: LayoutProps) {
|
|
|
21
21
|
return
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const checkpoint = parseInt(globalHeaderHeight, 10) / 2
|
|
24
|
+
const checkpoint = parseInt(cn.globalHeaderHeight, 10) / 2
|
|
25
25
|
const diff = scrollTop - controlScrollPos
|
|
26
26
|
const reversePosDiff = Math.abs(scrollTop - controlScrollPos)
|
|
27
27
|
|
|
@@ -61,44 +61,42 @@ export function Layout(props: LayoutProps) {
|
|
|
61
61
|
return
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
document.querySelector(`.${
|
|
65
|
-
document.querySelector(`.${
|
|
64
|
+
document.querySelector(`.${cn.PageScroll}`)?.addEventListener("scroll", onScroll)
|
|
65
|
+
document.querySelector(`.${cn.PageScroll}`)?.addEventListener("scrollend", onScrollFinish)
|
|
66
66
|
|
|
67
67
|
return () => {
|
|
68
|
-
document.querySelector(`.${
|
|
69
|
-
document.querySelector(`.${
|
|
68
|
+
document.querySelector(`.${cn.PageScroll}`)?.removeEventListener("scroll", onScroll)
|
|
69
|
+
document.querySelector(`.${cn.PageScroll}`)?.removeEventListener("scrollend", onScrollFinish)
|
|
70
70
|
}
|
|
71
71
|
}, []);
|
|
72
72
|
|
|
73
|
-
return <div className={
|
|
73
|
+
return <div className={cn.LayoutHost}>
|
|
74
74
|
<Layout.Header className={`
|
|
75
|
-
${props.subheader &&
|
|
76
|
-
${hideMainHeader &&
|
|
75
|
+
${props.subheader && cn.LayoutHeaderSub}
|
|
76
|
+
${hideMainHeader && cn.LayoutHeaderHideMain}
|
|
77
77
|
`}>
|
|
78
78
|
{props.header}
|
|
79
79
|
</Layout.Header>
|
|
80
80
|
<main className={`
|
|
81
|
-
${
|
|
82
|
-
${!hideMainHeader && props.subheader &&
|
|
81
|
+
${cn.LayoutMain}
|
|
82
|
+
${!hideMainHeader && props.subheader && cn.LayoutMainSub}
|
|
83
83
|
`}>
|
|
84
|
-
<aside className={
|
|
84
|
+
<aside className={cn.LayoutSidebar}>
|
|
85
85
|
{props.aside}
|
|
86
86
|
</aside>
|
|
87
|
-
<div className={
|
|
88
|
-
<div className={
|
|
89
|
-
<div className={
|
|
87
|
+
<div className={cn.PageHost}>
|
|
88
|
+
<div className={cn.PageScroll}>
|
|
89
|
+
<div className={cn.PageContainer}>
|
|
90
90
|
<div className={`
|
|
91
|
-
${
|
|
92
|
-
${props.kind == "fullwidth" &&
|
|
91
|
+
${cn.PageArticleContainer}
|
|
92
|
+
${props.kind == "fullwidth" && cn.PageArticleContainerFullWidth}
|
|
93
93
|
`}>
|
|
94
|
-
<article className={
|
|
95
|
-
<section className={
|
|
94
|
+
<article className={cn.ArticleHost}>
|
|
95
|
+
<section className={cn.ArticleContent}>
|
|
96
96
|
{props.content}
|
|
97
97
|
</section>
|
|
98
98
|
{
|
|
99
|
-
props.contentNav && <nav className={
|
|
100
|
-
${$article.nav}
|
|
101
|
-
`}>
|
|
99
|
+
props.contentNav && <nav className={cn.ArticleNav}>
|
|
102
100
|
{props.contentNav}
|
|
103
101
|
</nav>
|
|
104
102
|
}
|
|
@@ -113,7 +111,7 @@ export function Layout(props: LayoutProps) {
|
|
|
113
111
|
|
|
114
112
|
Layout.Header = function LayoutHeader({className, children}: { className?: string, children: React.ReactNode }) {
|
|
115
113
|
return <header className={`
|
|
116
|
-
${
|
|
114
|
+
${cn.LayoutHeader}
|
|
117
115
|
${className}
|
|
118
116
|
`}>
|
|
119
117
|
{children}
|