@xyd-js/components 0.1.0-xyd.1 → 0.1.0-xyd.3
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 +13 -0
- package/dist/CTABanner-CAp2EJcY.js +2 -0
- package/dist/CTABanner-CAp2EJcY.js.map +1 -0
- package/dist/CodeSample-OUrk_l-U.js +2 -0
- package/dist/CodeSample-OUrk_l-U.js.map +1 -0
- package/dist/HomeView-t6Cljv0B.js +2 -0
- package/dist/HomeView-t6Cljv0B.js.map +1 -0
- package/dist/UnderlineNav-4pD9CR2B.js +2 -0
- package/dist/UnderlineNav-4pD9CR2B.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CDahOOgk.js +2 -0
- package/dist/_rollupPluginBabelHelpers-CDahOOgk.js.map +1 -0
- package/dist/brand.d.ts +2 -1
- 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 +50 -3
- package/dist/coder.js +2 -1
- package/dist/coder.js.map +1 -0
- package/dist/content.d.ts +46 -6
- package/dist/content.js +2 -1
- package/dist/content.js.map +1 -0
- package/dist/index-P2Ntn1sE.js +2 -0
- package/dist/index-P2Ntn1sE.js.map +1 -0
- package/dist/index.css +59 -57
- 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 +2 -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-DIxZJ0kO.js} +1 -0
- package/dist/tslib.es6-DIxZJ0kO.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 +14 -2
- package/dist/writer.js +2 -1
- package/dist/writer.js.map +1 -0
- package/package.json +13 -8
- package/rollup.config.js +35 -9
- package/src/coder/Code/Code.styles.tsx +50 -0
- package/src/coder/Code/Code.tsx +79 -0
- package/src/coder/Code/annotations.tsx +31 -0
- package/src/coder/Code/highlight.ts +170 -0
- package/src/coder/Code/index.ts +12 -0
- package/src/coder/CodeSample/CodeSample.tsx +30 -133
- package/src/coder/CodeSample/index.ts +0 -1
- package/src/coder/CodeSample/withLocalStored.tsx +1 -1
- package/src/coder/{CodeSample/CodeSample.styles.tsx → CodeTabs/CodeTabs.styles.tsx} +0 -48
- package/src/coder/CodeTabs/CodeTabs.tsx +82 -0
- package/src/coder/CodeTabs/index.ts +6 -0
- package/src/coder/CodeTheme/CodeTheme.tsx +78 -0
- package/src/coder/CodeTheme/index.ts +8 -0
- package/src/coder/index.ts +31 -1
- package/src/coder/{CodeSample/default-theme.ts → themes/cosmo-light.ts} +3 -2
- package/src/content/Content/Content.tsx +1 -0
- package/src/content/Content.tsx +35 -1
- package/src/pages/index.ts +1 -0
- package/src/views/index.ts +1 -0
- package/src/writer/Badge/Badge.styles.tsx +4 -0
- package/src/writer/Badge/Badge.tsx +3 -1
- package/src/writer/Icon/index.tsx +230 -0
- 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-CMPV4d4T.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
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React, { createContext, useState, use, useEffect } from "react";
|
|
2
|
+
import { Theme } from "@code-hike/lighter";
|
|
3
|
+
import { highlight } from "codehike/code";
|
|
4
|
+
import type { HighlightedCode } from "codehike/code";
|
|
5
|
+
|
|
6
|
+
import defaultTheme from "../themes/cosmo-light"
|
|
7
|
+
|
|
8
|
+
export interface CodeThemeProps {
|
|
9
|
+
codeblocks: CodeThemeBlockProps[];
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
theme?: Theme;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface CodeThemeBlockProps {
|
|
15
|
+
/** This is the raw code. May include annotation comments. */
|
|
16
|
+
value: string;
|
|
17
|
+
/** The programming language. */
|
|
18
|
+
lang: string;
|
|
19
|
+
/** Metadata string (the content after the language name in a markdown codeblock). */
|
|
20
|
+
meta: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const CodeThemeProvider = createContext<{
|
|
24
|
+
highlighted: HighlightedCode[];
|
|
25
|
+
}>({
|
|
26
|
+
highlighted: [],
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function useCodeTheme() {
|
|
30
|
+
return use(CodeThemeProvider);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function CodeTheme(props: CodeThemeProps) {
|
|
34
|
+
const highlighted = use(
|
|
35
|
+
fetchHighlight(props.codeblocks, props.theme || defaultTheme)
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<CodeThemeProvider
|
|
40
|
+
value={{
|
|
41
|
+
highlighted,
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
{props.children}
|
|
45
|
+
</CodeThemeProvider>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// `CodeThemeSync` ?
|
|
50
|
+
export function CodeThemeCSR(props: CodeThemeProps) {
|
|
51
|
+
const [highlighted, setHighlighted] = useState<HighlightedCode[]>([]);
|
|
52
|
+
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
fetchHighlight(props.codeblocks, props.theme || defaultTheme).then(
|
|
55
|
+
setHighlighted
|
|
56
|
+
);
|
|
57
|
+
}, [props.codeblocks, props.theme]);
|
|
58
|
+
|
|
59
|
+
if (!highlighted) {
|
|
60
|
+
return <div>loading${`...`}</div>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<CodeThemeProvider
|
|
65
|
+
value={{
|
|
66
|
+
highlighted,
|
|
67
|
+
}}
|
|
68
|
+
>
|
|
69
|
+
{props.children}
|
|
70
|
+
</CodeThemeProvider>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async function fetchHighlight(codeblocks: CodeThemeBlockProps[], theme: Theme) {
|
|
75
|
+
return await Promise.all(
|
|
76
|
+
codeblocks?.map((codeblock) => highlight(codeblock, theme))
|
|
77
|
+
);
|
|
78
|
+
}
|
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
|
+
} from "./Code"
|
|
10
|
+
export {
|
|
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
|
package/src/content/Content.tsx
CHANGED
|
@@ -18,6 +18,17 @@ import {
|
|
|
18
18
|
IconFunnels,
|
|
19
19
|
IconMetrics,
|
|
20
20
|
IconSessionReplay,
|
|
21
|
+
IconAlert,
|
|
22
|
+
IconBrowser,
|
|
23
|
+
IconREST,
|
|
24
|
+
IconGraphQL,
|
|
25
|
+
IconWebhooks,
|
|
26
|
+
IconJSBrowser,
|
|
27
|
+
IconJSNode,
|
|
28
|
+
IconStorybook,
|
|
29
|
+
IconReactRouter,
|
|
30
|
+
IconNextJS,
|
|
31
|
+
IconAppTemplate
|
|
21
32
|
} from '../writer'
|
|
22
33
|
import {CodeSample} from "../coder";
|
|
23
34
|
|
|
@@ -27,7 +38,7 @@ import {Anchor} from "./Anchor";
|
|
|
27
38
|
|
|
28
39
|
const EXTERNAL_HREF_REGEX = /https?:\/\//
|
|
29
40
|
|
|
30
|
-
const Link = ({href = '', className, ...props}) => (
|
|
41
|
+
const Link = ({href = '', className = "", ...props}) => (
|
|
31
42
|
<Anchor
|
|
32
43
|
href={href}
|
|
33
44
|
newWindow={EXTERNAL_HREF_REGEX.test(href)}
|
|
@@ -43,6 +54,7 @@ export default function content() {
|
|
|
43
54
|
...helperContent(),
|
|
44
55
|
...iconContent(),
|
|
45
56
|
...coderContent(),
|
|
57
|
+
...directiveContent(),
|
|
46
58
|
}
|
|
47
59
|
}
|
|
48
60
|
|
|
@@ -113,6 +125,17 @@ export function writerContent() {
|
|
|
113
125
|
}
|
|
114
126
|
}
|
|
115
127
|
|
|
128
|
+
export function directiveContent() {
|
|
129
|
+
return {
|
|
130
|
+
DirectiveCodeSample: (props) => {
|
|
131
|
+
return <CodeSample
|
|
132
|
+
{...props}
|
|
133
|
+
codeblocks={JSON.parse(props.codeblocks)}
|
|
134
|
+
/>
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
116
139
|
export function helperContent() {
|
|
117
140
|
return {
|
|
118
141
|
Content: ContentComponent,
|
|
@@ -127,6 +150,17 @@ export function iconContent() {
|
|
|
127
150
|
IconFunnels,
|
|
128
151
|
IconCode,
|
|
129
152
|
IconCustomEvent,
|
|
153
|
+
IconAlert,
|
|
154
|
+
IconBrowser,
|
|
155
|
+
IconREST,
|
|
156
|
+
IconGraphQL,
|
|
157
|
+
IconWebhooks,
|
|
158
|
+
IconJSBrowser,
|
|
159
|
+
IconJSNode,
|
|
160
|
+
IconStorybook,
|
|
161
|
+
IconReactRouter,
|
|
162
|
+
IconNextJS,
|
|
163
|
+
IconAppTemplate,
|
|
130
164
|
}
|
|
131
165
|
}
|
|
132
166
|
|
package/src/pages/index.ts
CHANGED
package/src/views/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface BadgeProps {
|
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
|
|
8
8
|
size?: "sm"
|
|
9
|
-
kind?: "warning"
|
|
9
|
+
kind?: "warning" | "info"
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export function Badge({
|
|
@@ -20,6 +20,8 @@ export function Badge({
|
|
|
20
20
|
${size === "sm" && $badge.host$$sm}
|
|
21
21
|
|
|
22
22
|
${kind === "warning" && $badge.host$$warning}
|
|
23
|
+
|
|
24
|
+
${kind === "info" && $badge.host$$info}
|
|
23
25
|
`}>
|
|
24
26
|
<span className={$badge.item}>
|
|
25
27
|
{children}
|
|
@@ -109,4 +109,234 @@ export function IconCustomEvent() {
|
|
|
109
109
|
strokeLinejoin="round"
|
|
110
110
|
/>
|
|
111
111
|
</svg>
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function IconAlert() {
|
|
115
|
+
return <svg
|
|
116
|
+
width={24}
|
|
117
|
+
height={24}
|
|
118
|
+
viewBox="0 0 24 24"
|
|
119
|
+
fill="none"
|
|
120
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
121
|
+
>
|
|
122
|
+
<path
|
|
123
|
+
d="M18 8C18 6.4087 17.3679 4.88258 16.2426 3.75736C15.1174 2.63214 13.5913 2 12 2C10.4087 2 8.88258 2.63214 7.75736 3.75736C6.63214 4.88258 6 6.4087 6 8C6 15 3 17 3 17H21C21 17 18 15 18 8Z"
|
|
124
|
+
stroke="black"
|
|
125
|
+
strokeWidth={2}
|
|
126
|
+
strokeLinecap="round"
|
|
127
|
+
strokeLinejoin="round"
|
|
128
|
+
/>
|
|
129
|
+
<path
|
|
130
|
+
d="M13.73 21C13.5542 21.3031 13.3019 21.5547 12.9982 21.7295C12.6946 21.9044 12.3504 21.9965 12 21.9965C11.6496 21.9965 11.3054 21.9044 11.0018 21.7295C10.6982 21.5547 10.4458 21.3031 10.27 21"
|
|
131
|
+
stroke="black"
|
|
132
|
+
strokeWidth={2}
|
|
133
|
+
strokeLinecap="round"
|
|
134
|
+
strokeLinejoin="round"
|
|
135
|
+
/>
|
|
136
|
+
</svg>
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function IconBrowser() {
|
|
140
|
+
return <svg
|
|
141
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
142
|
+
width={24}
|
|
143
|
+
height={24}
|
|
144
|
+
viewBox="0 0 24 24"
|
|
145
|
+
fill="none"
|
|
146
|
+
>
|
|
147
|
+
<path
|
|
148
|
+
d="M22 9H2M2 7.8L2 16.2C2 17.8802 2 18.7202 2.32698 19.362C2.6146 19.9265 3.07354 20.3854 3.63803 20.673C4.27976 21 5.11984 21 6.8 21H17.2C18.8802 21 19.7202 21 20.362 20.673C20.9265 20.3854 21.3854 19.9265 21.673 19.362C22 18.7202 22 17.8802 22 16.2V7.8C22 6.11984 22 5.27977 21.673 4.63803C21.3854 4.07354 20.9265 3.6146 20.362 3.32698C19.7202 3 18.8802 3 17.2 3L6.8 3C5.11984 3 4.27976 3 3.63803 3.32698C3.07354 3.6146 2.6146 4.07354 2.32698 4.63803C2 5.27976 2 6.11984 2 7.8Z"
|
|
149
|
+
stroke="#000000"
|
|
150
|
+
strokeWidth={2}
|
|
151
|
+
strokeLinecap="round"
|
|
152
|
+
strokeLinejoin="round"
|
|
153
|
+
/>
|
|
154
|
+
</svg>
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function IconREST() {
|
|
158
|
+
return <svg
|
|
159
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
160
|
+
width={24}
|
|
161
|
+
height={24}
|
|
162
|
+
viewBox="0 0 16 16"
|
|
163
|
+
fill="none"
|
|
164
|
+
>
|
|
165
|
+
<path
|
|
166
|
+
fill="#000000"
|
|
167
|
+
fillRule="evenodd"
|
|
168
|
+
d="M.5 2.75a2.25 2.25 0 114.28.97l1.345 1.344.284-.284a2.25 2.25 0 013.182 0l.284.284 1.344-1.344a2.25 2.25 0 111.06 1.06l-1.343 1.345.284.284a2.25 2.25 0 010 3.182l-.284.284 1.344 1.344a2.25 2.25 0 11-1.06 1.06l-1.345-1.343-.284.284a2.25 2.25 0 01-3.182 0l-.284-.284-1.344 1.344a2.25 2.25 0 11-1.06-1.06l1.343-1.345-.284-.284a2.25 2.25 0 010-3.182l.284-.284L3.72 4.781A2.25 2.25 0 01.5 2.75zM2.75 2a.75.75 0 100 1.5.75.75 0 000-1.5zm0 10.5a.75.75 0 100 1.5.75.75 0 000-1.5zm9.75.75a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM13.25 2a.75.75 0 100 1.5.75.75 0 000-1.5zM7.47 5.841a.75.75 0 011.06 0L10.16 7.47a.75.75 0 010 1.06L8.53 10.16a.75.75 0 01-1.06 0L5.84 8.53a.75.75 0 010-1.06L7.47 5.84z"
|
|
169
|
+
clipRule="evenodd"
|
|
170
|
+
/>
|
|
171
|
+
</svg>
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function IconGraphQL() {
|
|
175
|
+
return <svg
|
|
176
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
177
|
+
fill="#000"
|
|
178
|
+
width={24}
|
|
179
|
+
height={24}
|
|
180
|
+
viewBox="0 0 32 32"
|
|
181
|
+
>
|
|
182
|
+
<path
|
|
183
|
+
d="M18.734 3.667l6.578 3.802c1.089-1.146 2.901-1.193 4.047-0.104 0.193 0.188 0.365 0.401 0.5 0.635 0.786 1.37 0.313 3.12-1.063 3.906-0.229 0.13-0.479 0.234-0.745 0.297v7.599c1.531 0.365 2.474 1.896 2.109 3.427-0.063 0.271-0.172 0.531-0.307 0.771-0.792 1.365-2.536 1.833-3.906 1.042-0.26-0.146-0.5-0.344-0.698-0.568l-6.542 3.776c0.495 1.495-0.318 3.109-1.813 3.604-0.292 0.099-0.594 0.146-0.896 0.146-1.573 0-2.854-1.271-2.854-2.849 0-0.271 0.042-0.547 0.12-0.813l-6.583-3.797c-1.089 1.141-2.896 1.188-4.036 0.094-1.135-1.089-1.177-2.891-0.094-4.031 0.38-0.396 0.865-0.677 1.396-0.807v-7.599c-1.531-0.365-2.479-1.906-2.109-3.443 0.063-0.266 0.167-0.521 0.302-0.755 0.786-1.365 2.536-1.833 3.901-1.042 0.234 0.135 0.453 0.302 0.641 0.5l6.583-3.797c-0.448-1.51 0.417-3.099 1.922-3.542 0.26-0.083 0.536-0.12 0.813-0.12 1.573 0 2.854 1.271 2.854 2.844 0 0.281-0.042 0.557-0.12 0.823zM18.047 4.839c-0.026 0.026-0.047 0.052-0.078 0.078l8.615 14.917c0.036-0.010 0.078-0.021 0.109-0.031v-7.609c-1.526-0.375-2.453-1.922-2.073-3.448 0.005-0.031 0.016-0.068 0.021-0.099zM14.026 4.917l-0.078-0.078-6.594 3.802c0.438 1.51-0.438 3.089-1.948 3.526-0.036 0.010-0.068 0.016-0.104 0.026v7.609l0.115 0.031 8.615-14.917zM16.797 5.594c-0.521 0.146-1.073 0.146-1.589 0l-8.615 14.917c0.391 0.375 0.667 0.859 0.802 1.391h17.214c0.13-0.531 0.406-1.016 0.802-1.396zM18.109 27.229l6.552-3.786c-0.021-0.063-0.036-0.125-0.052-0.188h-17.219l-0.031 0.109 6.589 3.802c0.516-0.536 1.245-0.87 2.052-0.87 0.839 0 1.589 0.359 2.109 0.932z"/>
|
|
184
|
+
</svg>
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function IconWebhooks() {
|
|
188
|
+
return <svg
|
|
189
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
190
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
191
|
+
width={24}
|
|
192
|
+
height={24}
|
|
193
|
+
viewBox="-10 -5 1034 1034"
|
|
194
|
+
>
|
|
195
|
+
<path
|
|
196
|
+
fill="#000000"
|
|
197
|
+
d="M482 226h-1l-10 2q-33 4 -64.5 18.5t-55.5 38.5q-41 37 -57 91q-9 30 -8 63t12 63q17 45 52 78l13 12l-83 135q-26 -1 -45 7q-30 13 -45 40q-7 15 -9 31t2 32q8 30 33 48q15 10 33 14.5t36 2t34.5 -12.5t27.5 -25q12 -17 14.5 -39t-5.5 -41q-1 -5 -7 -14l-3 -6l118 -192 q6 -9 8 -14l-10 -3q-9 -2 -13 -4q-23 -10 -41.5 -27.5t-28.5 -39.5q-17 -36 -9 -75q4 -23 17 -43t31 -34q37 -27 82 -27q27 -1 52.5 9.5t44.5 30.5q17 16 26.5 38.5t10.5 45.5q0 17 -6 42l70 19l8 1q14 -43 7 -86q-4 -33 -19.5 -63.5t-39.5 -53.5q-42 -42 -103 -56 q-6 -2 -18 -4l-14 -2h-37zM500 350q-17 0 -34 7t-30.5 20.5t-19.5 31.5q-8 20 -4 44q3 18 14 34t28 25q24 15 56 13q3 4 5 8l112 191q3 6 6 9q27 -26 58.5 -35.5t65 -3.5t58.5 26q32 25 43.5 61.5t0.5 73.5q-8 28 -28.5 50t-48.5 33q-31 13 -66.5 8.5t-63.5 -24.5 q-4 -3 -13 -10l-5 -6q-4 3 -11 10l-47 46q23 23 52 38.5t61 21.5l22 4h39l28 -5q64 -13 110 -60q22 -22 36.5 -50.5t19.5 -59.5q5 -36 -2 -71.5t-25 -64.5t-44 -51t-57 -35q-34 -14 -70.5 -16t-71.5 7l-17 5l-81 -137q13 -19 16 -37q5 -32 -13 -60q-16 -25 -44 -35 q-17 -6 -35 -6zM218 614q-58 13 -100 53q-47 44 -61 105l-4 24v37l2 11q2 13 4 20q7 31 24.5 59t42.5 49q50 41 115 49q38 4 76 -4.5t70 -28.5q53 -34 78 -91q7 -17 14 -45q6 -1 18 0l125 2q14 0 20 1q11 20 25 31t31.5 16t35.5 4q28 -3 50 -20q27 -21 32 -54 q2 -17 -1.5 -33t-13.5 -30q-16 -22 -41 -32q-17 -7 -35.5 -6.5t-35.5 7.5q-28 12 -43 37l-3 6q-14 0 -42 -1l-113 -1q-15 -1 -43 -1l-50 -1l3 17q8 43 -13 81q-14 27 -40 45t-57 22q-35 6 -70 -7.5t-57 -42.5q-28 -35 -27 -79q1 -37 23 -69q13 -19 32 -32t41 -19l9 -3z"
|
|
198
|
+
/>
|
|
199
|
+
</svg>
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export function IconJSBrowser() {
|
|
203
|
+
return <svg
|
|
204
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
205
|
+
viewBox="0 0 448 512"
|
|
206
|
+
width={24}
|
|
207
|
+
height={24}
|
|
208
|
+
>
|
|
209
|
+
<path
|
|
210
|
+
d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM243.8 381.4c0 43.6-25.6 63.5-62.9 63.5-33.7 0-53.2-17.4-63.2-38.5l34.3-20.7c6.6 11.7 12.6 21.6 27.1 21.6 13.8 0 22.6-5.4 22.6-26.5V237.7h42.1v143.7zm99.6 63.5c-39.1 0-64.4-18.6-76.7-43l34.3-19.8c9 14.7 20.8 25.6 41.5 25.6 17.4 0 28.6-8.7 28.6-20.8 0-14.4-11.4-19.5-30.7-28l-10.5-4.5c-30.4-12.9-50.5-29.2-50.5-63.5 0-31.6 24.1-55.6 61.6-55.6 26.8 0 46 9.3 59.8 33.7L368 290c-7.2-12.9-15-18-27.1-18-12.3 0-20.1 7.8-20.1 18 0 12.6 7.8 17.7 25.9 25.6l10.5 4.5c35.8 15.3 55.9 31 55.9 66.2 0 37.8-29.8 58.6-69.7 58.6z"/>
|
|
211
|
+
</svg>
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export function IconJSNode() {
|
|
215
|
+
return <svg
|
|
216
|
+
width={24}
|
|
217
|
+
height={24}
|
|
218
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
219
|
+
data-name="Layer 1"
|
|
220
|
+
viewBox="0 0 109 122.88"
|
|
221
|
+
>
|
|
222
|
+
<defs>
|
|
223
|
+
<style>{".cls-1{fill-rule:evenodd;}"}</style>
|
|
224
|
+
</defs>
|
|
225
|
+
<title>{"node-js-black"}</title>
|
|
226
|
+
<path
|
|
227
|
+
className="cls-1"
|
|
228
|
+
d="M68.43,87.08c-19.7,0-23.83-9-23.83-16.63a1.3,1.3,0,0,1,1.3-1.3h5.82A1.3,1.3,0,0,1,53,70.25c.88,5.93,3.49,8.92,15.41,8.92C77.9,79.17,81.93,77,81.93,72c0-2.9-1.15-5-15.89-6.49-12.33-1.22-20-3.93-20-13.8,0-9.08,7.66-14.49,20.5-14.49,14.42,0,21.56,5,22.46,15.76a1.31,1.31,0,0,1-.35,1,1.35,1.35,0,0,1-1,.42H81.9a1.29,1.29,0,0,1-1.26-1c-1.41-6.23-4.81-8.23-14.07-8.23C56.21,45.15,55,48.76,55,51.46c0,3.28,1.42,4.24,15.4,6.09S90.82,62,90.82,71.71,82.64,87.14,68.37,87.14l.06-.06Zm-13.91,35.8a9.45,9.45,0,0,1-4.72-1.26l-15-8.9c-2.25-1.26-1.15-1.7-.41-2a30.38,30.38,0,0,0,6.8-3.1,1.15,1.15,0,0,1,1.12.08l11.55,6.85a1.51,1.51,0,0,0,1.4,0l45-26a1.42,1.42,0,0,0,.69-1.22V35.43a1.44,1.44,0,0,0-.7-1.24l-45-26a1.38,1.38,0,0,0-1.39,0l-45,26a1.42,1.42,0,0,0-.71,1.23v52a1.39,1.39,0,0,0,.7,1.21l12.33,7.12C27.85,99.06,32,95.11,32,91.15V39.86a1.29,1.29,0,0,1,1.31-1.3H39a1.29,1.29,0,0,1,1.3,1.3V91.17c0,8.93-4.87,14-13.33,14-2.6,0-4.66,0-10.38-2.82L4.72,95.59A9.51,9.51,0,0,1,0,87.38v-52a9.47,9.47,0,0,1,4.72-8.21l45.07-26a9.89,9.89,0,0,1,9.47,0l45,26A9.49,9.49,0,0,1,109,35.43v52a9.54,9.54,0,0,1-4.72,8.21l-45,26a9.5,9.5,0,0,1-4.74,1.26v0Zm0,0Z"
|
|
229
|
+
/>
|
|
230
|
+
</svg>
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export function IconStorybook() {
|
|
234
|
+
return <svg
|
|
235
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
236
|
+
fill="#000000"
|
|
237
|
+
width={24}
|
|
238
|
+
height={24}
|
|
239
|
+
viewBox="0 0 32 32"
|
|
240
|
+
>
|
|
241
|
+
<path
|
|
242
|
+
d="M21.786 0.318l-0.161 3.615c-0.005 0.203 0.229 0.328 0.391 0.203l1.411-1.068 1.198 0.932c0.156 0.104 0.365 0 0.375-0.188l-0.135-3.677 1.776-0.135c0.922-0.063 1.708 0.672 1.708 1.599v28.802c0 0.917-0.766 1.646-1.682 1.599l-21.469-0.958c-0.833-0.036-1.505-0.708-1.531-1.547l-1-26.401c-0.052-0.885 0.62-1.646 1.505-1.693l17.599-1.109zM17.693 12.401c0 0.625 4.214 0.318 4.786-0.109 0-4.266-2.292-6.521-6.479-6.521-4.198 0-6.531 2.297-6.531 5.724 0 5.932 8 6.036 8 9.276 0 0.938-0.427 1.469-1.401 1.469-1.281 0-1.802-0.651-1.734-2.88 0-0.479-4.865-0.641-5.026 0-0.359 5.375 2.974 6.932 6.797 6.932 3.724 0 6.63-1.984 6.63-5.573 0-6.359-8.135-6.188-8.135-9.333 0-1.292 0.964-1.464 1.505-1.464 0.604 0 1.667 0.094 1.589 2.49z"/>
|
|
243
|
+
</svg>
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export function IconReactRouter() {
|
|
247
|
+
return <svg
|
|
248
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
249
|
+
width={24}
|
|
250
|
+
height={24}
|
|
251
|
+
viewBox="0 0 602 360"
|
|
252
|
+
fill="none"
|
|
253
|
+
>
|
|
254
|
+
<path
|
|
255
|
+
d="M480.96 180C480.96 196.572 474.239 211.572 463.357 222.42C452.475 233.28 437.445 240 420.84 240C404.235 240 389.205 246.708 378.335 257.568C367.453 268.428 360.72 283.428 360.72 300C360.72 316.572 353.999 331.572 343.117 342.42C332.235 353.28 317.205 360 300.6 360C283.995 360 268.965 353.28 258.095 342.42C247.213 331.572 240.48 316.572 240.48 300C240.48 283.428 247.213 268.428 258.095 257.568C268.965 246.708 283.995 240 300.6 240C317.205 240 332.235 233.28 343.117 222.42C353.999 211.572 360.72 196.572 360.72 180C360.72 146.856 333.81 120 300.6 120C283.995 120 268.965 113.28 258.095 102.42C247.213 91.572 240.48 76.572 240.48 60C240.48 43.428 247.213 28.428 258.095 17.568C268.965 6.708 283.995 0 300.6 0C333.81 0 360.72 26.856 360.72 60C360.72 76.572 367.453 91.572 378.335 102.42C389.205 113.28 404.235 120 420.84 120C454.05 120 480.96 146.856 480.96 180Z"
|
|
256
|
+
fill="#121212"
|
|
257
|
+
/>
|
|
258
|
+
<path
|
|
259
|
+
d="M240.48 180C240.48 146.862 213.563 120 180.36 120C147.157 120 120.24 146.862 120.24 180C120.24 213.137 147.157 240 180.36 240C213.563 240 240.48 213.137 240.48 180Z"
|
|
260
|
+
fill="#121212"
|
|
261
|
+
/>
|
|
262
|
+
<path
|
|
263
|
+
d="M120.24 300C120.24 266.863 93.3234 240 60.12 240C26.9166 240 0 266.863 0 300C0 333.138 26.9166 360 60.12 360C93.3234 360 120.24 333.138 120.24 300Z"
|
|
264
|
+
fill="#121212"
|
|
265
|
+
/>
|
|
266
|
+
<path
|
|
267
|
+
d="M601.2 300C601.2 266.863 574.283 240 541.08 240C507.877 240 480.96 266.863 480.96 300C480.96 333.138 507.877 360 541.08 360C574.283 360 601.2 333.138 601.2 300Z"
|
|
268
|
+
fill="#121212"
|
|
269
|
+
/>
|
|
270
|
+
</svg>
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function IconNextJS() {
|
|
274
|
+
return <svg
|
|
275
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
276
|
+
width={24}
|
|
277
|
+
height={24}
|
|
278
|
+
viewBox="0 0 15 15"
|
|
279
|
+
fill="none"
|
|
280
|
+
>
|
|
281
|
+
<path
|
|
282
|
+
d="M4.5 4.5L4.90534 4.20725C4.77836 4.03144 4.55252 3.95753 4.34617 4.02425C4.13981 4.09098 4 4.28313 4 4.5H4.5ZM7.5 14C3.91015 14 1 11.0899 1 7.5H0C0 11.6421 3.35786 15 7.5 15V14ZM14 7.5C14 11.0899 11.0899 14 7.5 14V15C11.6421 15 15 11.6421 15 7.5H14ZM7.5 1C11.0899 1 14 3.91015 14 7.5H15C15 3.35786 11.6421 0 7.5 0V1ZM7.5 0C3.35786 0 0 3.35786 0 7.5H1C1 3.91015 3.91015 1 7.5 1V0ZM5 12V4.5H4V12H5ZM4.09466 4.79275L10.5947 13.7927L11.4053 13.2073L4.90534 4.20725L4.09466 4.79275ZM10 4V10H11V4H10Z"
|
|
283
|
+
fill="#000000"
|
|
284
|
+
/>
|
|
285
|
+
</svg>
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export function IconAppTemplate() {
|
|
289
|
+
return <svg
|
|
290
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
291
|
+
viewBox="0 0 80 80"
|
|
292
|
+
fill="none"
|
|
293
|
+
>
|
|
294
|
+
<g clipPath="url(#clip0_202_147)">
|
|
295
|
+
<path d="M0 55.3333H80" stroke="black" strokeWidth={0.506667}/>
|
|
296
|
+
<path d="M0 40H80" stroke="black" strokeWidth={0.506667}/>
|
|
297
|
+
<path d="M0 24.6667H80" stroke="black" strokeWidth={0.506667}/>
|
|
298
|
+
<path d="M55.3334 80V0" stroke="black" strokeWidth={0.506667}/>
|
|
299
|
+
<path d="M40 80V0" stroke="black" strokeWidth={0.506667}/>
|
|
300
|
+
<path d="M24.6666 80V0" stroke="black" strokeWidth={0.506667}/>
|
|
301
|
+
<path d="M80 80L0 0" stroke="black" strokeWidth={0.506667}/>
|
|
302
|
+
<path d="M0 80L80 0" stroke="black" strokeWidth={0.506667}/>
|
|
303
|
+
<rect
|
|
304
|
+
x={5.33337}
|
|
305
|
+
y={5.33333}
|
|
306
|
+
width={69.3333}
|
|
307
|
+
height={69.3333}
|
|
308
|
+
stroke="black"
|
|
309
|
+
strokeWidth={0.506667}
|
|
310
|
+
/>
|
|
311
|
+
<circle
|
|
312
|
+
cx={40}
|
|
313
|
+
cy={40}
|
|
314
|
+
r={15.3333}
|
|
315
|
+
stroke="black"
|
|
316
|
+
strokeWidth={0.506667}
|
|
317
|
+
/>
|
|
318
|
+
<circle cx={40} cy={40} r={22} stroke="black" strokeWidth={0.506667}/>
|
|
319
|
+
<circle
|
|
320
|
+
cx={40}
|
|
321
|
+
cy={40}
|
|
322
|
+
r={34.6667}
|
|
323
|
+
stroke="black"
|
|
324
|
+
strokeWidth={0.506667}
|
|
325
|
+
/>
|
|
326
|
+
</g>
|
|
327
|
+
<rect
|
|
328
|
+
x={0.253333}
|
|
329
|
+
y={0.253333}
|
|
330
|
+
width={79.4933}
|
|
331
|
+
height={79.4933}
|
|
332
|
+
rx={17.08}
|
|
333
|
+
stroke="black"
|
|
334
|
+
strokeWidth={0.506667}
|
|
335
|
+
/>
|
|
336
|
+
<defs>
|
|
337
|
+
<clipPath id="clip0_202_147">
|
|
338
|
+
<rect width={80} height={80} rx={17.3333} fill="white"/>
|
|
339
|
+
</clipPath>
|
|
340
|
+
</defs>
|
|
341
|
+
</svg>
|
|
112
342
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{R as e}from"./index-eU5so3Si.js";var a="hn2r3b2",n="hgvnekf";function t(t){var r=t.children,c=t.kind;return e.createElement("button",{className:"\n ".concat(a,"\n ").concat("secondary"===c&&n,"\n ")},r)}var r="h1vbgqbd",c="c1qluffv",s="h7zyorj",l="h10nnuqu";function m(a){var n=a.children;return e.createElement("div",{className:r},e.createElement("div",{className:c},e.createElement("div",{className:s},n)))}var i="h1xgyvqe",v="t1rx1fna",u="s9nduqh";m.Heading=function(a){var n=a.title,t=a.subtitle,r=a.headingEffect;return e.createElement("div",{className:i},e.createElement("h1",{className:v},r?e.createElement("span",{className:l},n):n),e.createElement("p",{className:u},t))};var d="hth6on8";m.ButtonGroup=function(a){var n=a.children;return e.createElement("div",{className:d},n)};export{t as B,m as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{R as e}from"./index-BE4Aq8NU.js";var a="hn2r3b2",n="hgvnekf";function t(t){var r=t.children,c=t.kind;return e.createElement("button",{className:"\n ".concat(a,"\n ").concat("secondary"===c&&n,"\n ")},r)}var r="h1vbgqbd",c="c1qluffv",s="h7zyorj",l="h10nnuqu";function m(a){var n=a.children;return e.createElement("div",{className:r},e.createElement("div",{className:c},e.createElement("div",{className:s},n)))}var i="h1xgyvqe",v="t1rx1fna",u="s9nduqh";m.Heading=function(a){var n=a.title,t=a.subtitle,r=a.headingEffect;return e.createElement("div",{className:i},e.createElement("h1",{className:v},r?e.createElement("span",{className:l},n):n),e.createElement("p",{className:u},t))};var d="hth6on8";m.ButtonGroup=function(a){var n=a.children;return e.createElement("div",{className:d},n)};export{t as B,m as C};
|