@traefik-labs/faency 12.0.11 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.js.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.css.cjs +3 -3
- package/dist/components/Avatar/Avatar.vanilla.css.js +1 -1
- package/dist/components/Badge/Badge.vanilla.css.cjs +3 -3
- package/dist/components/Badge/Badge.vanilla.css.js +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.css.cjs +2 -2
- package/dist/components/Blockquote/Blockquote.vanilla.css.js +1 -1
- package/dist/components/Bubble/Bubble.vanilla.css.cjs +2 -2
- package/dist/components/Bubble/Bubble.vanilla.css.js +1 -1
- package/dist/components/Button/Button.cjs +2 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.js +2 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.vanilla.css.cjs +2 -2
- package/dist/components/Button/Button.vanilla.css.js +1 -1
- package/dist/components/Card/Card.vanilla.css.cjs +3 -3
- package/dist/components/Card/Card.vanilla.css.js +1 -1
- package/dist/components/CodeBlock/CodeBlock.cjs +108 -0
- package/dist/components/CodeBlock/CodeBlock.cjs.map +1 -0
- package/dist/components/CodeBlock/CodeBlock.js +108 -0
- package/dist/components/CodeBlock/CodeBlock.js.map +1 -0
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +103 -0
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -0
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs +18 -0
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs.map +1 -0
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.js +18 -0
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.js.map +1 -0
- package/dist/components/CodeBlock/CodeBlock.vanilla.js +103 -0
- package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -0
- package/dist/components/Container/Container.vanilla.css.cjs +2 -2
- package/dist/components/Container/Container.vanilla.css.js +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.cjs +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.js +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.cjs +2 -2
- package/dist/components/Elevation/Elevation.vanilla.css.js +1 -1
- package/dist/components/FaencyProvider.cjs +2 -1
- package/dist/components/FaencyProvider.cjs.map +1 -1
- package/dist/components/FaencyProvider.js +2 -1
- package/dist/components/FaencyProvider.js.map +1 -1
- package/dist/components/Flex/Flex.vanilla.css.cjs +2 -2
- package/dist/components/Flex/Flex.vanilla.css.js +1 -1
- package/dist/components/Grid/Grid.vanilla.css.cjs +2 -2
- package/dist/components/Grid/Grid.vanilla.css.js +1 -1
- package/dist/components/IconButton/IconButton.vanilla.css.cjs +2 -2
- package/dist/components/IconButton/IconButton.vanilla.css.js +1 -1
- package/dist/components/Input/Input.vanilla.css.cjs +4 -4
- package/dist/components/Input/Input.vanilla.css.js +1 -1
- package/dist/components/Label/Label.vanilla.css.cjs +2 -2
- package/dist/components/Label/Label.vanilla.css.js +1 -1
- package/dist/components/List/List.cjs +36 -7
- package/dist/components/List/List.cjs.map +1 -1
- package/dist/components/List/List.js +36 -7
- package/dist/components/List/List.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.css.cjs +2 -2
- package/dist/components/Paragraph/Paragraph.vanilla.css.js +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.css.cjs +2 -2
- package/dist/components/Skeleton/Skeleton.vanilla.css.js +1 -1
- package/dist/components/Textarea/Textarea.vanilla.css.cjs +3 -3
- package/dist/components/Textarea/Textarea.vanilla.css.js +1 -1
- package/dist/components/colorSchemeContext.cjs +45 -0
- package/dist/components/colorSchemeContext.cjs.map +1 -0
- package/dist/components/colorSchemeContext.js +45 -0
- package/dist/components/colorSchemeContext.js.map +1 -0
- package/dist/faency.css +135 -107
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +388 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +35 -28
- package/dist/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.cjs +0 -109
- package/dist/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.cjs.map +0 -1
- package/dist/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +0 -109
- package/dist/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js.map +0 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CheckIcon, CopyIcon } from "@radix-ui/react-icons";
|
|
3
|
+
import { themes, Highlight } from "prism-react-renderer";
|
|
4
|
+
import { forwardRef, useState } from "react";
|
|
5
|
+
import { styled } from "../../stitches.config.js";
|
|
6
|
+
import { useColorScheme } from "../colorSchemeContext.js";
|
|
7
|
+
import { Box } from "../Box/Box.js";
|
|
8
|
+
import { Button } from "../Button/Button.js";
|
|
9
|
+
import { AccessibleIcon } from "../AccessibleIcon/AccessibleIcon.js";
|
|
10
|
+
const Pre = styled("pre", {
|
|
11
|
+
m: 0,
|
|
12
|
+
borderRadius: "$2",
|
|
13
|
+
overflow: "auto",
|
|
14
|
+
border: "1px solid $colors$deepBlue3",
|
|
15
|
+
position: "relative",
|
|
16
|
+
fontSize: "$2",
|
|
17
|
+
lineHeight: 1.6,
|
|
18
|
+
variants: {
|
|
19
|
+
noBorder: {
|
|
20
|
+
true: { border: "none" }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const CopyButtonWrapper = styled("div", {
|
|
25
|
+
position: "absolute",
|
|
26
|
+
right: "$4",
|
|
27
|
+
zIndex: 1,
|
|
28
|
+
variants: {
|
|
29
|
+
align: {
|
|
30
|
+
top: { top: "$2" },
|
|
31
|
+
bottom: { bottom: "$2" }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
align: "top"
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const CodeBlock = forwardRef(
|
|
39
|
+
({
|
|
40
|
+
lang,
|
|
41
|
+
code,
|
|
42
|
+
copyable = false,
|
|
43
|
+
copyText,
|
|
44
|
+
copiedText,
|
|
45
|
+
copyButtonAlign = "top",
|
|
46
|
+
noBorder,
|
|
47
|
+
wrapText = false,
|
|
48
|
+
colorScheme,
|
|
49
|
+
maxHeight = 424,
|
|
50
|
+
css,
|
|
51
|
+
...props
|
|
52
|
+
}, ref) => {
|
|
53
|
+
const systemScheme = useColorScheme();
|
|
54
|
+
const resolvedScheme = colorScheme ?? systemScheme;
|
|
55
|
+
const prismTheme = resolvedScheme === "dark" ? themes.nightOwl : themes.nightOwlLight;
|
|
56
|
+
const [copied, setCopied] = useState(false);
|
|
57
|
+
const handleCopy = async () => {
|
|
58
|
+
try {
|
|
59
|
+
await navigator.clipboard.writeText(code);
|
|
60
|
+
setCopied(true);
|
|
61
|
+
setTimeout(() => setCopied(false), 1500);
|
|
62
|
+
} catch {
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
return /* @__PURE__ */ jsx(Highlight, { theme: prismTheme, code, language: lang, children: ({ className, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ jsxs(Box, { css: { position: "relative", ...css }, children: [
|
|
66
|
+
copyable && /* @__PURE__ */ jsx(CopyButtonWrapper, { align: copyButtonAlign, children: /* @__PURE__ */ jsxs(
|
|
67
|
+
Button,
|
|
68
|
+
{
|
|
69
|
+
variant: "secondary",
|
|
70
|
+
ghost: true,
|
|
71
|
+
size: "small",
|
|
72
|
+
type: "button",
|
|
73
|
+
onClick: handleCopy,
|
|
74
|
+
css: { color: "$hiContrast", gap: "$1" },
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ jsx(AccessibleIcon, { label: copied ? "Copied" : "Copy", children: copied ? /* @__PURE__ */ jsx(CheckIcon, {}) : /* @__PURE__ */ jsx(CopyIcon, {}) }),
|
|
77
|
+
copied ? copiedText : copyText
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
) }),
|
|
81
|
+
/* @__PURE__ */ jsx(
|
|
82
|
+
Pre,
|
|
83
|
+
{
|
|
84
|
+
ref,
|
|
85
|
+
className,
|
|
86
|
+
style: { ...style, backgroundColor: "transparent" },
|
|
87
|
+
noBorder,
|
|
88
|
+
css: { maxHeight },
|
|
89
|
+
...props,
|
|
90
|
+
children: /* @__PURE__ */ jsx(Box, { css: { p: "$4" }, children: tokens.map((line, i) => /* @__PURE__ */ jsx(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
...getLineProps({ line }),
|
|
94
|
+
style: wrapText ? { whiteSpace: "normal" } : void 0,
|
|
95
|
+
children: line.map((token, key) => /* @__PURE__ */ jsx("span", { ...getTokenProps({ token }) }, key))
|
|
96
|
+
},
|
|
97
|
+
i
|
|
98
|
+
)) })
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
] }) });
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
CodeBlock.displayName = "CodeBlock";
|
|
105
|
+
export {
|
|
106
|
+
CodeBlock
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=CodeBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.js","sources":["../../../components/CodeBlock/CodeBlock.tsx"],"sourcesContent":["import { CheckIcon, CopyIcon } from '@radix-ui/react-icons';\nimport { Highlight, Language, themes } from 'prism-react-renderer';\nimport React, { ComponentProps, forwardRef, useState } from 'react';\n\nimport { CSS, styled } from '../../stitches.config';\nimport { AccessibleIcon } from '../AccessibleIcon';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { useColorScheme } from '../colorSchemeContext';\n\nconst Pre = styled('pre', {\n m: 0,\n borderRadius: '$2',\n overflow: 'auto',\n border: '1px solid $colors$deepBlue3',\n position: 'relative',\n fontSize: '$2',\n lineHeight: 1.6,\n\n variants: {\n noBorder: {\n true: { border: 'none' },\n },\n },\n});\n\nconst CopyButtonWrapper = styled('div', {\n position: 'absolute',\n right: '$4',\n zIndex: 1,\n\n variants: {\n align: {\n top: { top: '$2' },\n bottom: { bottom: '$2' },\n },\n },\n\n defaultVariants: {\n align: 'top',\n },\n});\n\nexport type CodeBlockProps = {\n lang: Language;\n code: string;\n copyable?: boolean;\n copyText?: string;\n copiedText?: string;\n copyButtonAlign?: 'top' | 'bottom';\n noBorder?: boolean;\n wrapText?: boolean;\n colorScheme?: 'light' | 'dark';\n maxHeight?: number | string;\n css?: CSS;\n} & Omit<ComponentProps<typeof Pre>, 'css'>;\n\nexport const CodeBlock = forwardRef<HTMLPreElement, CodeBlockProps>(\n (\n {\n lang,\n code,\n copyable = false,\n copyText,\n copiedText,\n copyButtonAlign = 'top',\n noBorder,\n wrapText = false,\n colorScheme,\n maxHeight = 424,\n css,\n ...props\n },\n ref,\n ) => {\n const systemScheme = useColorScheme();\n const resolvedScheme = colorScheme ?? systemScheme;\n const prismTheme = resolvedScheme === 'dark' ? themes.nightOwl : themes.nightOwlLight;\n\n const [copied, setCopied] = useState(false);\n\n const handleCopy = async () => {\n try {\n await navigator.clipboard.writeText(code);\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n } catch {\n // clipboard write failed (e.g. permission denied) — leave UI unchanged\n }\n };\n\n return (\n <Highlight theme={prismTheme} code={code} language={lang}>\n {({ className, style, tokens, getLineProps, getTokenProps }) => (\n <Box css={{ position: 'relative', ...css }}>\n {copyable && (\n <CopyButtonWrapper align={copyButtonAlign}>\n <Button\n variant=\"secondary\"\n ghost\n size=\"small\"\n type=\"button\"\n onClick={handleCopy}\n css={{ color: '$hiContrast', gap: '$1' }}\n >\n <AccessibleIcon label={copied ? 'Copied' : 'Copy'}>\n {copied ? <CheckIcon /> : <CopyIcon />}\n </AccessibleIcon>\n {copied ? copiedText : copyText}\n </Button>\n </CopyButtonWrapper>\n )}\n <Pre\n ref={ref}\n className={className}\n style={{ ...style, backgroundColor: 'transparent' }}\n noBorder={noBorder}\n css={{ maxHeight }}\n {...props}\n >\n <Box css={{ p: '$4' }}>\n {tokens.map((line, i) => (\n <div\n key={i}\n {...getLineProps({ line })}\n style={wrapText ? { whiteSpace: 'normal' } : undefined}\n >\n {line.map((token, key) => (\n <span key={key} {...getTokenProps({ token })} />\n ))}\n </div>\n ))}\n </Box>\n </Pre>\n </Box>\n )}\n </Highlight>\n );\n },\n);\n\nCodeBlock.displayName = 'CodeBlock';\n"],"names":[],"mappings":";;;;;;;;;AAUA,MAAM,MAAM,OAAO,OAAO;AAAA,EACxB,GAAG;AAAA,EACH,cAAc;AAAA,EACd,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM,EAAE,QAAQ,OAAA;AAAA,IAAO;AAAA,EACzB;AAEJ,CAAC;AAED,MAAM,oBAAoB,OAAO,OAAO;AAAA,EACtC,UAAU;AAAA,EACV,OAAO;AAAA,EACP,QAAQ;AAAA,EAER,UAAU;AAAA,IACR,OAAO;AAAA,MACL,KAAK,EAAE,KAAK,KAAA;AAAA,MACZ,QAAQ,EAAE,QAAQ,KAAA;AAAA,IAAK;AAAA,EACzB;AAAA,EAGF,iBAAiB;AAAA,IACf,OAAO;AAAA,EAAA;AAEX,CAAC;AAgBM,MAAM,YAAY;AAAA,EACvB,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA,kBAAkB;AAAA,IAClB;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,UAAM,eAAe,eAAA;AACrB,UAAM,iBAAiB,eAAe;AACtC,UAAM,aAAa,mBAAmB,SAAS,OAAO,WAAW,OAAO;AAExE,UAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,KAAK;AAE1C,UAAM,aAAa,YAAY;AAC7B,UAAI;AACF,cAAM,UAAU,UAAU,UAAU,IAAI;AACxC,kBAAU,IAAI;AACd,mBAAW,MAAM,UAAU,KAAK,GAAG,IAAI;AAAA,MACzC,QAAQ;AAAA,MAER;AAAA,IACF;AAEA,WACE,oBAAC,aAAU,OAAO,YAAY,MAAY,UAAU,MACjD,UAAA,CAAC,EAAE,WAAW,OAAO,QAAQ,cAAc,cAAA,MAC1C,qBAAC,KAAA,EAAI,KAAK,EAAE,UAAU,YAAY,GAAG,IAAA,GAClC,UAAA;AAAA,MAAA,YACC,oBAAC,mBAAA,EAAkB,OAAO,iBACxB,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,SAAQ;AAAA,UACR,OAAK;AAAA,UACL,MAAK;AAAA,UACL,MAAK;AAAA,UACL,SAAS;AAAA,UACT,KAAK,EAAE,OAAO,eAAe,KAAK,KAAA;AAAA,UAElC,UAAA;AAAA,YAAA,oBAAC,gBAAA,EAAe,OAAO,SAAS,WAAW,QACxC,UAAA,SAAS,oBAAC,WAAA,EAAU,IAAK,oBAAC,UAAA,CAAA,CAAS,GACtC;AAAA,YACC,SAAS,aAAa;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA,GAE3B;AAAA,MAEF;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA,OAAO,EAAE,GAAG,OAAO,iBAAiB,cAAA;AAAA,UACpC;AAAA,UACA,KAAK,EAAE,UAAA;AAAA,UACN,GAAG;AAAA,UAEJ,UAAA,oBAAC,KAAA,EAAI,KAAK,EAAE,GAAG,QACZ,UAAA,OAAO,IAAI,CAAC,MAAM,MACjB;AAAA,YAAC;AAAA,YAAA;AAAA,cAEE,GAAG,aAAa,EAAE,MAAM;AAAA,cACzB,OAAO,WAAW,EAAE,YAAY,aAAa;AAAA,cAE5C,UAAA,KAAK,IAAI,CAAC,OAAO,QAChB,oBAAC,QAAA,EAAgB,GAAG,cAAc,EAAE,MAAA,CAAO,EAAA,GAAhC,GAAmC,CAC/C;AAAA,YAAA;AAAA,YANI;AAAA,UAAA,CAQR,EAAA,CACH;AAAA,QAAA;AAAA,MAAA;AAAA,IACF,EAAA,CACF,EAAA,CAEJ;AAAA,EAEJ;AACF;AAEA,UAAU,cAAc;"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const reactIcons = require("@radix-ui/react-icons");
|
|
5
|
+
const dynamic = require("@vanilla-extract/dynamic");
|
|
6
|
+
const prismReactRenderer = require("prism-react-renderer");
|
|
7
|
+
const React = require("react");
|
|
8
|
+
const cssProps = require("../../styles/cssProps.cjs");
|
|
9
|
+
const themeContext = require("../../styles/themeContext.cjs");
|
|
10
|
+
const CodeBlock_vanilla_css = require("./CodeBlock.vanilla.css.cjs");
|
|
11
|
+
const Button_vanilla = require("../Button/Button.vanilla.cjs");
|
|
12
|
+
const AccessibleIcon = require("../AccessibleIcon/AccessibleIcon.cjs");
|
|
13
|
+
const CodeBlockVanilla = React.forwardRef(
|
|
14
|
+
({
|
|
15
|
+
lang,
|
|
16
|
+
code,
|
|
17
|
+
copyable = false,
|
|
18
|
+
copyText,
|
|
19
|
+
copiedText,
|
|
20
|
+
copyButtonAlign = "top",
|
|
21
|
+
noBorder,
|
|
22
|
+
wrapText = false,
|
|
23
|
+
colorScheme,
|
|
24
|
+
maxHeight = 424,
|
|
25
|
+
css,
|
|
26
|
+
style,
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}, ref) => {
|
|
30
|
+
const { colors, resolvedTheme } = themeContext.useVanillaExtractTheme();
|
|
31
|
+
const effectiveScheme = colorScheme ?? resolvedTheme;
|
|
32
|
+
const prismTheme = effectiveScheme === "dark" ? prismReactRenderer.themes.nightOwl : prismReactRenderer.themes.nightOwlLight;
|
|
33
|
+
const { style: cssStyles, vars } = cssProps.processCSSProp(css, colors);
|
|
34
|
+
const mergedStyles = { ...cssStyles, ...style, ...dynamic.assignInlineVars(vars) };
|
|
35
|
+
const [copied, setCopied] = React.useState(false);
|
|
36
|
+
const handleCopy = async () => {
|
|
37
|
+
try {
|
|
38
|
+
await navigator.clipboard.writeText(code);
|
|
39
|
+
setCopied(true);
|
|
40
|
+
setTimeout(() => setCopied(false), 1500);
|
|
41
|
+
} catch {
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ jsxRuntime.jsx(prismReactRenderer.Highlight, { theme: prismTheme, code, language: lang, children: ({
|
|
45
|
+
className: highlightClass,
|
|
46
|
+
style: highlightStyle,
|
|
47
|
+
tokens,
|
|
48
|
+
getLineProps,
|
|
49
|
+
getTokenProps
|
|
50
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: CodeBlock_vanilla_css.wrapper, children: [
|
|
51
|
+
copyable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
className: [
|
|
55
|
+
CodeBlock_vanilla_css.copyButtonWrapper,
|
|
56
|
+
copyButtonAlign === "bottom" ? CodeBlock_vanilla_css.copyButtonWrapperBottom : CodeBlock_vanilla_css.copyButtonWrapperTop
|
|
57
|
+
].join(" "),
|
|
58
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
59
|
+
Button_vanilla.ButtonVanilla,
|
|
60
|
+
{
|
|
61
|
+
variant: "secondary",
|
|
62
|
+
ghost: true,
|
|
63
|
+
size: "small",
|
|
64
|
+
type: "button",
|
|
65
|
+
onClick: handleCopy,
|
|
66
|
+
css: { color: "$hiContrast", gap: "$1" },
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ jsxRuntime.jsx(AccessibleIcon.AccessibleIcon, { label: copied ? "Copied" : "Copy", children: copied ? /* @__PURE__ */ jsxRuntime.jsx(reactIcons.CheckIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(reactIcons.CopyIcon, {}) }),
|
|
69
|
+
copied ? copiedText : copyText
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
76
|
+
"pre",
|
|
77
|
+
{
|
|
78
|
+
ref,
|
|
79
|
+
className: [CodeBlock_vanilla_css.pre, noBorder ? CodeBlock_vanilla_css.preNoBorder : "", highlightClass, className].filter(Boolean).join(" "),
|
|
80
|
+
style: {
|
|
81
|
+
maxHeight,
|
|
82
|
+
...highlightStyle,
|
|
83
|
+
backgroundColor: "transparent",
|
|
84
|
+
...mergedStyles
|
|
85
|
+
},
|
|
86
|
+
...props,
|
|
87
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: CodeBlock_vanilla_css.codeContent, children: tokens.map((line, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
...getLineProps({ line }),
|
|
91
|
+
style: wrapText ? { whiteSpace: "normal" } : void 0,
|
|
92
|
+
children: line.map((token, key) => /* @__PURE__ */ jsxRuntime.jsx("span", { ...getTokenProps({ token }) }, key))
|
|
93
|
+
},
|
|
94
|
+
i
|
|
95
|
+
)) })
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
] }) });
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
CodeBlockVanilla.displayName = "CodeBlockVanilla";
|
|
102
|
+
exports.CodeBlockVanilla = CodeBlockVanilla;
|
|
103
|
+
//# sourceMappingURL=CodeBlock.vanilla.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.vanilla.cjs","sources":["../../../components/CodeBlock/CodeBlock.vanilla.tsx"],"sourcesContent":["import { CheckIcon, CopyIcon } from '@radix-ui/react-icons';\nimport { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { Highlight, Language, themes } from 'prism-react-renderer';\nimport React, { forwardRef, HTMLAttributes, useState } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { AccessibleIcon } from '../AccessibleIcon';\nimport { ButtonVanilla } from '../Button';\nimport {\n codeContent,\n copyButtonWrapper,\n copyButtonWrapperBottom,\n copyButtonWrapperTop,\n pre,\n preNoBorder,\n wrapper,\n} from './CodeBlock.vanilla.css';\n\nexport interface CodeBlockVanillaProps\n extends Omit<HTMLAttributes<HTMLPreElement>, 'css'>,\n CSSProps {\n lang: Language;\n code: string;\n copyable?: boolean;\n copyText?: string;\n copiedText?: string;\n copyButtonAlign?: 'top' | 'bottom';\n noBorder?: boolean;\n wrapText?: boolean;\n colorScheme?: 'light' | 'dark';\n maxHeight?: number | string;\n}\n\nexport const CodeBlockVanilla = forwardRef<HTMLPreElement, CodeBlockVanillaProps>(\n (\n {\n lang,\n code,\n copyable = false,\n copyText,\n copiedText,\n copyButtonAlign = 'top',\n noBorder,\n wrapText = false,\n colorScheme,\n maxHeight = 424,\n css,\n style,\n className,\n ...props\n },\n ref,\n ) => {\n const { colors, resolvedTheme } = useVanillaExtractTheme();\n const effectiveScheme = colorScheme ?? resolvedTheme;\n const prismTheme = effectiveScheme === 'dark' ? themes.nightOwl : themes.nightOwlLight;\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n const [copied, setCopied] = useState(false);\n\n const handleCopy = async () => {\n try {\n await navigator.clipboard.writeText(code);\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n } catch {\n // clipboard write failed (e.g. permission denied) — leave UI unchanged\n }\n };\n\n return (\n <Highlight theme={prismTheme} code={code} language={lang}>\n {({\n className: highlightClass,\n style: highlightStyle,\n tokens,\n getLineProps,\n getTokenProps,\n }) => (\n <div className={wrapper}>\n {copyable && (\n <div\n className={[\n copyButtonWrapper,\n copyButtonAlign === 'bottom' ? copyButtonWrapperBottom : copyButtonWrapperTop,\n ].join(' ')}\n >\n <ButtonVanilla\n variant=\"secondary\"\n ghost\n size=\"small\"\n type=\"button\"\n onClick={handleCopy}\n css={{ color: '$hiContrast', gap: '$1' }}\n >\n <AccessibleIcon label={copied ? 'Copied' : 'Copy'}>\n {copied ? <CheckIcon /> : <CopyIcon />}\n </AccessibleIcon>\n {copied ? copiedText : copyText}\n </ButtonVanilla>\n </div>\n )}\n <pre\n ref={ref}\n className={[pre, noBorder ? preNoBorder : '', highlightClass, className]\n .filter(Boolean)\n .join(' ')}\n style={{\n maxHeight,\n ...highlightStyle,\n backgroundColor: 'transparent',\n ...mergedStyles,\n }}\n {...props}\n >\n <div className={codeContent}>\n {tokens.map((line, i) => (\n <div\n key={i}\n {...getLineProps({ line })}\n style={wrapText ? { whiteSpace: 'normal' } : undefined}\n >\n {line.map((token, key) => (\n <span key={key} {...getTokenProps({ token })} />\n ))}\n </div>\n ))}\n </div>\n </pre>\n </div>\n )}\n </Highlight>\n );\n },\n);\n\nCodeBlockVanilla.displayName = 'CodeBlockVanilla';\n"],"names":["forwardRef","useVanillaExtractTheme","themes","processCSSProp","assignInlineVars","useState","Highlight","jsxs","wrapper","jsx","copyButtonWrapper","copyButtonWrapperBottom","copyButtonWrapperTop","ButtonVanilla","AccessibleIcon","CheckIcon","CopyIcon","pre","preNoBorder","codeContent"],"mappings":"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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
var wrapper = "_1krwcuz0";
|
|
5
|
+
var pre = "_1krwcuz1";
|
|
6
|
+
var preNoBorder = "_1krwcuz2";
|
|
7
|
+
var codeContent = "_1krwcuz3";
|
|
8
|
+
var copyButtonWrapper = "_1krwcuz4";
|
|
9
|
+
var copyButtonWrapperTop = "_1krwcuz5";
|
|
10
|
+
var copyButtonWrapperBottom = "_1krwcuz6";
|
|
11
|
+
exports.codeContent = codeContent;
|
|
12
|
+
exports.copyButtonWrapper = copyButtonWrapper;
|
|
13
|
+
exports.copyButtonWrapperBottom = copyButtonWrapperBottom;
|
|
14
|
+
exports.copyButtonWrapperTop = copyButtonWrapperTop;
|
|
15
|
+
exports.pre = pre;
|
|
16
|
+
exports.preNoBorder = preNoBorder;
|
|
17
|
+
exports.wrapper = wrapper;
|
|
18
|
+
//# sourceMappingURL=CodeBlock.vanilla.css.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.vanilla.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
var wrapper = "_1krwcuz0";
|
|
3
|
+
var pre = "_1krwcuz1";
|
|
4
|
+
var preNoBorder = "_1krwcuz2";
|
|
5
|
+
var codeContent = "_1krwcuz3";
|
|
6
|
+
var copyButtonWrapper = "_1krwcuz4";
|
|
7
|
+
var copyButtonWrapperTop = "_1krwcuz5";
|
|
8
|
+
var copyButtonWrapperBottom = "_1krwcuz6";
|
|
9
|
+
export {
|
|
10
|
+
codeContent,
|
|
11
|
+
copyButtonWrapper,
|
|
12
|
+
copyButtonWrapperBottom,
|
|
13
|
+
copyButtonWrapperTop,
|
|
14
|
+
pre,
|
|
15
|
+
preNoBorder,
|
|
16
|
+
wrapper
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=CodeBlock.vanilla.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.vanilla.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CheckIcon, CopyIcon } from "@radix-ui/react-icons";
|
|
3
|
+
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
4
|
+
import { themes, Highlight } from "prism-react-renderer";
|
|
5
|
+
import { forwardRef, useState } from "react";
|
|
6
|
+
import { processCSSProp } from "../../styles/cssProps.js";
|
|
7
|
+
import { useVanillaExtractTheme } from "../../styles/themeContext.js";
|
|
8
|
+
import { wrapper, copyButtonWrapper, copyButtonWrapperBottom, copyButtonWrapperTop, pre, preNoBorder, codeContent } from "./CodeBlock.vanilla.css.js";
|
|
9
|
+
import { ButtonVanilla } from "../Button/Button.vanilla.js";
|
|
10
|
+
import { AccessibleIcon } from "../AccessibleIcon/AccessibleIcon.js";
|
|
11
|
+
const CodeBlockVanilla = forwardRef(
|
|
12
|
+
({
|
|
13
|
+
lang,
|
|
14
|
+
code,
|
|
15
|
+
copyable = false,
|
|
16
|
+
copyText,
|
|
17
|
+
copiedText,
|
|
18
|
+
copyButtonAlign = "top",
|
|
19
|
+
noBorder,
|
|
20
|
+
wrapText = false,
|
|
21
|
+
colorScheme,
|
|
22
|
+
maxHeight = 424,
|
|
23
|
+
css,
|
|
24
|
+
style,
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}, ref) => {
|
|
28
|
+
const { colors, resolvedTheme } = useVanillaExtractTheme();
|
|
29
|
+
const effectiveScheme = colorScheme ?? resolvedTheme;
|
|
30
|
+
const prismTheme = effectiveScheme === "dark" ? themes.nightOwl : themes.nightOwlLight;
|
|
31
|
+
const { style: cssStyles, vars } = processCSSProp(css, colors);
|
|
32
|
+
const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };
|
|
33
|
+
const [copied, setCopied] = useState(false);
|
|
34
|
+
const handleCopy = async () => {
|
|
35
|
+
try {
|
|
36
|
+
await navigator.clipboard.writeText(code);
|
|
37
|
+
setCopied(true);
|
|
38
|
+
setTimeout(() => setCopied(false), 1500);
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return /* @__PURE__ */ jsx(Highlight, { theme: prismTheme, code, language: lang, children: ({
|
|
43
|
+
className: highlightClass,
|
|
44
|
+
style: highlightStyle,
|
|
45
|
+
tokens,
|
|
46
|
+
getLineProps,
|
|
47
|
+
getTokenProps
|
|
48
|
+
}) => /* @__PURE__ */ jsxs("div", { className: wrapper, children: [
|
|
49
|
+
copyable && /* @__PURE__ */ jsx(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
className: [
|
|
53
|
+
copyButtonWrapper,
|
|
54
|
+
copyButtonAlign === "bottom" ? copyButtonWrapperBottom : copyButtonWrapperTop
|
|
55
|
+
].join(" "),
|
|
56
|
+
children: /* @__PURE__ */ jsxs(
|
|
57
|
+
ButtonVanilla,
|
|
58
|
+
{
|
|
59
|
+
variant: "secondary",
|
|
60
|
+
ghost: true,
|
|
61
|
+
size: "small",
|
|
62
|
+
type: "button",
|
|
63
|
+
onClick: handleCopy,
|
|
64
|
+
css: { color: "$hiContrast", gap: "$1" },
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ jsx(AccessibleIcon, { label: copied ? "Copied" : "Copy", children: copied ? /* @__PURE__ */ jsx(CheckIcon, {}) : /* @__PURE__ */ jsx(CopyIcon, {}) }),
|
|
67
|
+
copied ? copiedText : copyText
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
"pre",
|
|
75
|
+
{
|
|
76
|
+
ref,
|
|
77
|
+
className: [pre, noBorder ? preNoBorder : "", highlightClass, className].filter(Boolean).join(" "),
|
|
78
|
+
style: {
|
|
79
|
+
maxHeight,
|
|
80
|
+
...highlightStyle,
|
|
81
|
+
backgroundColor: "transparent",
|
|
82
|
+
...mergedStyles
|
|
83
|
+
},
|
|
84
|
+
...props,
|
|
85
|
+
children: /* @__PURE__ */ jsx("div", { className: codeContent, children: tokens.map((line, i) => /* @__PURE__ */ jsx(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
...getLineProps({ line }),
|
|
89
|
+
style: wrapText ? { whiteSpace: "normal" } : void 0,
|
|
90
|
+
children: line.map((token, key) => /* @__PURE__ */ jsx("span", { ...getTokenProps({ token }) }, key))
|
|
91
|
+
},
|
|
92
|
+
i
|
|
93
|
+
)) })
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
] }) });
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
CodeBlockVanilla.displayName = "CodeBlockVanilla";
|
|
100
|
+
export {
|
|
101
|
+
CodeBlockVanilla
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=CodeBlock.vanilla.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.vanilla.js","sources":["../../../components/CodeBlock/CodeBlock.vanilla.tsx"],"sourcesContent":["import { CheckIcon, CopyIcon } from '@radix-ui/react-icons';\nimport { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { Highlight, Language, themes } from 'prism-react-renderer';\nimport React, { forwardRef, HTMLAttributes, useState } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { AccessibleIcon } from '../AccessibleIcon';\nimport { ButtonVanilla } from '../Button';\nimport {\n codeContent,\n copyButtonWrapper,\n copyButtonWrapperBottom,\n copyButtonWrapperTop,\n pre,\n preNoBorder,\n wrapper,\n} from './CodeBlock.vanilla.css';\n\nexport interface CodeBlockVanillaProps\n extends Omit<HTMLAttributes<HTMLPreElement>, 'css'>,\n CSSProps {\n lang: Language;\n code: string;\n copyable?: boolean;\n copyText?: string;\n copiedText?: string;\n copyButtonAlign?: 'top' | 'bottom';\n noBorder?: boolean;\n wrapText?: boolean;\n colorScheme?: 'light' | 'dark';\n maxHeight?: number | string;\n}\n\nexport const CodeBlockVanilla = forwardRef<HTMLPreElement, CodeBlockVanillaProps>(\n (\n {\n lang,\n code,\n copyable = false,\n copyText,\n copiedText,\n copyButtonAlign = 'top',\n noBorder,\n wrapText = false,\n colorScheme,\n maxHeight = 424,\n css,\n style,\n className,\n ...props\n },\n ref,\n ) => {\n const { colors, resolvedTheme } = useVanillaExtractTheme();\n const effectiveScheme = colorScheme ?? resolvedTheme;\n const prismTheme = effectiveScheme === 'dark' ? themes.nightOwl : themes.nightOwlLight;\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n const [copied, setCopied] = useState(false);\n\n const handleCopy = async () => {\n try {\n await navigator.clipboard.writeText(code);\n setCopied(true);\n setTimeout(() => setCopied(false), 1500);\n } catch {\n // clipboard write failed (e.g. permission denied) — leave UI unchanged\n }\n };\n\n return (\n <Highlight theme={prismTheme} code={code} language={lang}>\n {({\n className: highlightClass,\n style: highlightStyle,\n tokens,\n getLineProps,\n getTokenProps,\n }) => (\n <div className={wrapper}>\n {copyable && (\n <div\n className={[\n copyButtonWrapper,\n copyButtonAlign === 'bottom' ? copyButtonWrapperBottom : copyButtonWrapperTop,\n ].join(' ')}\n >\n <ButtonVanilla\n variant=\"secondary\"\n ghost\n size=\"small\"\n type=\"button\"\n onClick={handleCopy}\n css={{ color: '$hiContrast', gap: '$1' }}\n >\n <AccessibleIcon label={copied ? 'Copied' : 'Copy'}>\n {copied ? <CheckIcon /> : <CopyIcon />}\n </AccessibleIcon>\n {copied ? copiedText : copyText}\n </ButtonVanilla>\n </div>\n )}\n <pre\n ref={ref}\n className={[pre, noBorder ? preNoBorder : '', highlightClass, className]\n .filter(Boolean)\n .join(' ')}\n style={{\n maxHeight,\n ...highlightStyle,\n backgroundColor: 'transparent',\n ...mergedStyles,\n }}\n {...props}\n >\n <div className={codeContent}>\n {tokens.map((line, i) => (\n <div\n key={i}\n {...getLineProps({ line })}\n style={wrapText ? { whiteSpace: 'normal' } : undefined}\n >\n {line.map((token, key) => (\n <span key={key} {...getTokenProps({ token })} />\n ))}\n </div>\n ))}\n </div>\n </pre>\n </div>\n )}\n </Highlight>\n );\n },\n);\n\nCodeBlockVanilla.displayName = 'CodeBlockVanilla';\n"],"names":[],"mappings":";;;;;;;;;;AAkCO,MAAM,mBAAmB;AAAA,EAC9B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA,kBAAkB;AAAA,IAClB;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,GAEL,QACG;AACH,UAAM,EAAE,QAAQ,cAAA,IAAkB,uBAAA;AAClC,UAAM,kBAAkB,eAAe;AACvC,UAAM,aAAa,oBAAoB,SAAS,OAAO,WAAW,OAAO;AAEzE,UAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;AAC7D,UAAM,eAAe,EAAE,GAAG,WAAW,GAAG,OAAO,GAAG,iBAAiB,IAAI,EAAA;AAEvE,UAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,KAAK;AAE1C,UAAM,aAAa,YAAY;AAC7B,UAAI;AACF,cAAM,UAAU,UAAU,UAAU,IAAI;AACxC,kBAAU,IAAI;AACd,mBAAW,MAAM,UAAU,KAAK,GAAG,IAAI;AAAA,MACzC,QAAQ;AAAA,MAER;AAAA,IACF;AAEA,+BACG,WAAA,EAAU,OAAO,YAAY,MAAY,UAAU,MACjD,UAAA,CAAC;AAAA,MACA,WAAW;AAAA,MACX,OAAO;AAAA,MACP;AAAA,MACA;AAAA,MACA;AAAA,IAAA,MAEA,qBAAC,OAAA,EAAI,WAAW,SACb,UAAA;AAAA,MAAA,YACC;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAW;AAAA,YACT;AAAA,YACA,oBAAoB,WAAW,0BAA0B;AAAA,UAAA,EACzD,KAAK,GAAG;AAAA,UAEV,UAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,SAAQ;AAAA,cACR,OAAK;AAAA,cACL,MAAK;AAAA,cACL,MAAK;AAAA,cACL,SAAS;AAAA,cACT,KAAK,EAAE,OAAO,eAAe,KAAK,KAAA;AAAA,cAElC,UAAA;AAAA,gBAAA,oBAAC,gBAAA,EAAe,OAAO,SAAS,WAAW,QACxC,UAAA,SAAS,oBAAC,WAAA,EAAU,IAAK,oBAAC,UAAA,CAAA,CAAS,GACtC;AAAA,gBACC,SAAS,aAAa;AAAA,cAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACzB;AAAA,MAAA;AAAA,MAGJ;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA,WAAW,CAAC,KAAK,WAAW,cAAc,IAAI,gBAAgB,SAAS,EACpE,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,UACX,OAAO;AAAA,YACL;AAAA,YACA,GAAG;AAAA,YACH,iBAAiB;AAAA,YACjB,GAAG;AAAA,UAAA;AAAA,UAEJ,GAAG;AAAA,UAEJ,UAAA,oBAAC,SAAI,WAAW,aACb,iBAAO,IAAI,CAAC,MAAM,MACjB;AAAA,YAAC;AAAA,YAAA;AAAA,cAEE,GAAG,aAAa,EAAE,MAAM;AAAA,cACzB,OAAO,WAAW,EAAE,YAAY,aAAa;AAAA,cAE5C,UAAA,KAAK,IAAI,CAAC,OAAO,QAChB,oBAAC,QAAA,EAAgB,GAAG,cAAc,EAAE,MAAA,CAAO,EAAA,GAAhC,GAAmC,CAC/C;AAAA,YAAA;AAAA,YANI;AAAA,UAAA,CAQR,EAAA,CACH;AAAA,QAAA;AAAA,MAAA;AAAA,IACF,EAAA,CACF,EAAA,CAEJ;AAAA,EAEJ;AACF;AAEA,iBAAiB,cAAc;"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
;/* empty css */
|
|
6
|
-
const
|
|
7
|
-
var containerRecipe =
|
|
6
|
+
const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
7
|
+
var containerRecipe = createRuntimeFn.createRuntimeFn({ defaultClassName: "ayuv8i1 ayuv8i0", variantClassNames: { size: { "1": "ayuv8i2", "2": "ayuv8i3", "3": "ayuv8i4", "4": "ayuv8i5" }, noGutter: { true: "ayuv8i6" } }, defaultVariants: { size: "4" }, compoundVariants: [] });
|
|
8
8
|
exports.containerRecipe = containerRecipe;
|
|
9
9
|
//# sourceMappingURL=Container.vanilla.css.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import {
|
|
4
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
5
5
|
var containerRecipe = createRuntimeFn({ defaultClassName: "ayuv8i1 ayuv8i0", variantClassNames: { size: { "1": "ayuv8i2", "2": "ayuv8i3", "3": "ayuv8i4", "4": "ayuv8i5" }, noGutter: { true: "ayuv8i6" } }, defaultVariants: { size: "4" }, compoundVariants: [] });
|
|
6
6
|
export {
|
|
7
7
|
containerRecipe
|
|
@@ -7,9 +7,9 @@ const dateFns = require("date-fns");
|
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const stitches_config = require("../../stitches.config.cjs");
|
|
9
9
|
const Box = require("../Box/Box.cjs");
|
|
10
|
-
const Button = require("../Button/Button.cjs");
|
|
11
10
|
const Flex = require("../Flex/Flex.cjs");
|
|
12
11
|
const Text = require("../Text/Text.cjs");
|
|
12
|
+
const Button = require("../Button/Button.cjs");
|
|
13
13
|
const CalendarGrid = stitches_config.styled("div", {
|
|
14
14
|
display: "grid",
|
|
15
15
|
alignItems: "center",
|
|
@@ -5,9 +5,9 @@ import { addMonths, addYears } from "date-fns";
|
|
|
5
5
|
import React, { useState } from "react";
|
|
6
6
|
import { styled } from "../../stitches.config.js";
|
|
7
7
|
import { Box } from "../Box/Box.js";
|
|
8
|
-
import { Button } from "../Button/Button.js";
|
|
9
8
|
import { Flex } from "../Flex/Flex.js";
|
|
10
9
|
import { Text } from "../Text/Text.js";
|
|
10
|
+
import { Button } from "../Button/Button.js";
|
|
11
11
|
const CalendarGrid = styled("div", {
|
|
12
12
|
display: "grid",
|
|
13
13
|
alignItems: "center",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
;/* empty css */
|
|
4
|
-
const
|
|
5
|
-
var elevationRecipe =
|
|
4
|
+
const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
5
|
+
var elevationRecipe = createRuntimeFn.createRuntimeFn({ defaultClassName: "s9g6zx1 s9g6zx0", variantClassNames: { variant: { "0": "s9g6zx2", "1": "s9g6zx3", "2": "s9g6zx4", "3": "s9g6zx5", "4": "s9g6zx6", "5": "s9g6zx7" } }, defaultVariants: { variant: 1 }, compoundVariants: [] });
|
|
6
6
|
exports.elevationRecipe = elevationRecipe;
|
|
7
7
|
//# sourceMappingURL=Elevation.vanilla.css.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var elevationRecipe = createRuntimeFn({ defaultClassName: "s9g6zx1 s9g6zx0", variantClassNames: { variant: { "0": "s9g6zx2", "1": "s9g6zx3", "2": "s9g6zx4", "3": "s9g6zx5", "4": "s9g6zx6", "5": "s9g6zx7" } }, defaultVariants: { variant: 1 }, compoundVariants: [] });
|
|
4
4
|
export {
|
|
5
5
|
elevationRecipe
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const TooltipPrimitive = require("@radix-ui/react-tooltip");
|
|
5
|
-
const
|
|
5
|
+
const colorSchemeContext = require("./colorSchemeContext.cjs");
|
|
6
|
+
const FaencyProvider = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive.Provider, { children: /* @__PURE__ */ jsxRuntime.jsx(colorSchemeContext.ColorSchemeProvider, { children }) });
|
|
6
7
|
exports.FaencyProvider = FaencyProvider;
|
|
7
8
|
//# sourceMappingURL=FaencyProvider.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FaencyProvider.cjs","sources":["../../components/FaencyProvider.tsx"],"sourcesContent":["import { Provider as TooltipProvider } from '@radix-ui/react-tooltip';\nimport React from 'react';\n\ninterface FaencyProviderProps {\n children?: React.ReactNode;\n}\n\nexport const FaencyProvider = ({ children }: FaencyProviderProps) => (\n <TooltipProvider>{children}</TooltipProvider>\n);\n"],"names":["jsx","
|
|
1
|
+
{"version":3,"file":"FaencyProvider.cjs","sources":["../../components/FaencyProvider.tsx"],"sourcesContent":["import { Provider as TooltipProvider } from '@radix-ui/react-tooltip';\nimport React from 'react';\n\nimport { ColorSchemeProvider } from './colorSchemeContext';\n\ninterface FaencyProviderProps {\n children?: React.ReactNode;\n}\n\nexport const FaencyProvider = ({ children }: FaencyProviderProps) => (\n <TooltipProvider>\n <ColorSchemeProvider>{children}</ColorSchemeProvider>\n </TooltipProvider>\n);\n"],"names":["TooltipProvider","jsx","ColorSchemeProvider"],"mappings":";;;;;AASO,MAAM,iBAAiB,CAAC,EAAE,SAAA,qCAC9BA,iBAAAA,UAAA,EACC,UAAAC,+BAACC,mBAAAA,qBAAA,EAAqB,SAAA,CAAS,EAAA,CACjC;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Provider } from "@radix-ui/react-tooltip";
|
|
3
|
-
|
|
3
|
+
import { ColorSchemeProvider } from "./colorSchemeContext.js";
|
|
4
|
+
const FaencyProvider = ({ children }) => /* @__PURE__ */ jsx(Provider, { children: /* @__PURE__ */ jsx(ColorSchemeProvider, { children }) });
|
|
4
5
|
export {
|
|
5
6
|
FaencyProvider
|
|
6
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FaencyProvider.js","sources":["../../components/FaencyProvider.tsx"],"sourcesContent":["import { Provider as TooltipProvider } from '@radix-ui/react-tooltip';\nimport React from 'react';\n\ninterface FaencyProviderProps {\n children?: React.ReactNode;\n}\n\nexport const FaencyProvider = ({ children }: FaencyProviderProps) => (\n <TooltipProvider>{children}</TooltipProvider>\n);\n"],"names":["TooltipProvider"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FaencyProvider.js","sources":["../../components/FaencyProvider.tsx"],"sourcesContent":["import { Provider as TooltipProvider } from '@radix-ui/react-tooltip';\nimport React from 'react';\n\nimport { ColorSchemeProvider } from './colorSchemeContext';\n\ninterface FaencyProviderProps {\n children?: React.ReactNode;\n}\n\nexport const FaencyProvider = ({ children }: FaencyProviderProps) => (\n <TooltipProvider>\n <ColorSchemeProvider>{children}</ColorSchemeProvider>\n </TooltipProvider>\n);\n"],"names":["TooltipProvider"],"mappings":";;;AASO,MAAM,iBAAiB,CAAC,EAAE,SAAA,0BAC9BA,UAAA,EACC,UAAA,oBAAC,qBAAA,EAAqB,SAAA,CAAS,EAAA,CACjC;"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
;/* empty css */
|
|
6
|
-
const
|
|
7
|
-
var flexRecipe =
|
|
6
|
+
const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
7
|
+
var flexRecipe = createRuntimeFn.createRuntimeFn({ defaultClassName: "qtrdwq1 qtrdwq0", variantClassNames: { direction: { row: "qtrdwq2", column: "qtrdwq3", rowReverse: "qtrdwq4", columnReverse: "qtrdwq5" }, align: { start: "qtrdwq6", center: "qtrdwq7", end: "qtrdwq8", stretch: "qtrdwq9", baseline: "qtrdwqa" }, justify: { start: "qtrdwqb", center: "qtrdwqc", end: "qtrdwqd", "space-evenly": "qtrdwqe", "space-between": "qtrdwqf", "space-around": "qtrdwqg" }, wrap: { noWrap: "qtrdwqh", wrap: "qtrdwqi", wrapReverse: "qtrdwqj" }, gap: { "1": "qtrdwqk", "2": "qtrdwql", "3": "qtrdwqm", "4": "qtrdwqn", "5": "qtrdwqo", "6": "qtrdwqp", "7": "qtrdwqq", "8": "qtrdwqr", "9": "qtrdwqs" } }, defaultVariants: { direction: "row", align: "stretch", justify: "start", wrap: "noWrap" }, compoundVariants: [] });
|
|
8
8
|
exports.flexRecipe = flexRecipe;
|
|
9
9
|
//# sourceMappingURL=Flex.vanilla.css.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import {
|
|
4
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
5
5
|
var flexRecipe = createRuntimeFn({ defaultClassName: "qtrdwq1 qtrdwq0", variantClassNames: { direction: { row: "qtrdwq2", column: "qtrdwq3", rowReverse: "qtrdwq4", columnReverse: "qtrdwq5" }, align: { start: "qtrdwq6", center: "qtrdwq7", end: "qtrdwq8", stretch: "qtrdwq9", baseline: "qtrdwqa" }, justify: { start: "qtrdwqb", center: "qtrdwqc", end: "qtrdwqd", "space-evenly": "qtrdwqe", "space-between": "qtrdwqf", "space-around": "qtrdwqg" }, wrap: { noWrap: "qtrdwqh", wrap: "qtrdwqi", wrapReverse: "qtrdwqj" }, gap: { "1": "qtrdwqk", "2": "qtrdwql", "3": "qtrdwqm", "4": "qtrdwqn", "5": "qtrdwqo", "6": "qtrdwqp", "7": "qtrdwqq", "8": "qtrdwqr", "9": "qtrdwqs" } }, defaultVariants: { direction: "row", align: "stretch", justify: "start", wrap: "noWrap" }, compoundVariants: [] });
|
|
6
6
|
export {
|
|
7
7
|
flexRecipe
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
;/* empty css */
|
|
6
|
-
const
|
|
7
|
-
var gridRecipe =
|
|
6
|
+
const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
7
|
+
var gridRecipe = createRuntimeFn.createRuntimeFn({ defaultClassName: "_1qwrd2o1 _1qwrd2o0", variantClassNames: { align: { start: "_1qwrd2o2", center: "_1qwrd2o3", end: "_1qwrd2o4", stretch: "_1qwrd2o5", baseline: "_1qwrd2o6" }, justify: { start: "_1qwrd2o7", center: "_1qwrd2o8", end: "_1qwrd2o9", between: "_1qwrd2oa" }, flow: { row: "_1qwrd2ob", column: "_1qwrd2oc", dense: "_1qwrd2od", rowDense: "_1qwrd2oe", columnDense: "_1qwrd2of" }, gap: { "1": "_1qwrd2og", "2": "_1qwrd2oh", "3": "_1qwrd2oi", "4": "_1qwrd2oj", "5": "_1qwrd2ok", "6": "_1qwrd2ol", "7": "_1qwrd2om", "8": "_1qwrd2on", "9": "_1qwrd2oo" }, gapX: { "1": "_1qwrd2op", "2": "_1qwrd2oq", "3": "_1qwrd2or", "4": "_1qwrd2os", "5": "_1qwrd2ot", "6": "_1qwrd2ou", "7": "_1qwrd2ov", "8": "_1qwrd2ow", "9": "_1qwrd2ox" }, gapY: { "1": "_1qwrd2oy", "2": "_1qwrd2oz", "3": "_1qwrd2o10", "4": "_1qwrd2o11", "5": "_1qwrd2o12", "6": "_1qwrd2o13", "7": "_1qwrd2o14", "8": "_1qwrd2o15", "9": "_1qwrd2o16" } }, defaultVariants: {}, compoundVariants: [] });
|
|
8
8
|
exports.gridRecipe = gridRecipe;
|
|
9
9
|
//# sourceMappingURL=Grid.vanilla.css.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import {
|
|
4
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
5
5
|
var gridRecipe = createRuntimeFn({ defaultClassName: "_1qwrd2o1 _1qwrd2o0", variantClassNames: { align: { start: "_1qwrd2o2", center: "_1qwrd2o3", end: "_1qwrd2o4", stretch: "_1qwrd2o5", baseline: "_1qwrd2o6" }, justify: { start: "_1qwrd2o7", center: "_1qwrd2o8", end: "_1qwrd2o9", between: "_1qwrd2oa" }, flow: { row: "_1qwrd2ob", column: "_1qwrd2oc", dense: "_1qwrd2od", rowDense: "_1qwrd2oe", columnDense: "_1qwrd2of" }, gap: { "1": "_1qwrd2og", "2": "_1qwrd2oh", "3": "_1qwrd2oi", "4": "_1qwrd2oj", "5": "_1qwrd2ok", "6": "_1qwrd2ol", "7": "_1qwrd2om", "8": "_1qwrd2on", "9": "_1qwrd2oo" }, gapX: { "1": "_1qwrd2op", "2": "_1qwrd2oq", "3": "_1qwrd2or", "4": "_1qwrd2os", "5": "_1qwrd2ot", "6": "_1qwrd2ou", "7": "_1qwrd2ov", "8": "_1qwrd2ow", "9": "_1qwrd2ox" }, gapY: { "1": "_1qwrd2oy", "2": "_1qwrd2oz", "3": "_1qwrd2o10", "4": "_1qwrd2o11", "5": "_1qwrd2o12", "6": "_1qwrd2o13", "7": "_1qwrd2o14", "8": "_1qwrd2o15", "9": "_1qwrd2o16" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6
6
|
export {
|
|
7
7
|
gridRecipe
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
;/* empty css */
|
|
4
|
-
const
|
|
5
|
-
var iconButtonRecipe =
|
|
4
|
+
const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
5
|
+
var iconButtonRecipe = createRuntimeFn.createRuntimeFn({ defaultClassName: "vdyzvy1 vdyzvy0", variantClassNames: { size: { "1": "vdyzvy2", "2": "vdyzvy3", "3": "vdyzvy4", "4": "vdyzvy5" }, variant: { "default": "vdyzvy6", contrast: "vdyzvy7", primary: "vdyzvy8", red: "vdyzvy9", green: "vdyzvya", orange: "vdyzvyb" } }, defaultVariants: { variant: "default", size: "2" }, compoundVariants: [] });
|
|
6
6
|
exports.iconButtonRecipe = iconButtonRecipe;
|
|
7
7
|
//# sourceMappingURL=IconButton.vanilla.css.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import {
|
|
2
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var iconButtonRecipe = createRuntimeFn({ defaultClassName: "vdyzvy1 vdyzvy0", variantClassNames: { size: { "1": "vdyzvy2", "2": "vdyzvy3", "3": "vdyzvy4", "4": "vdyzvy5" }, variant: { "default": "vdyzvy6", contrast: "vdyzvy7", primary: "vdyzvy8", red: "vdyzvy9", green: "vdyzvya", orange: "vdyzvyb" } }, defaultVariants: { variant: "default", size: "2" }, compoundVariants: [] });
|
|
4
4
|
export {
|
|
5
5
|
iconButtonRecipe
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
;/* empty css */
|
|
4
|
-
const
|
|
5
|
-
var styledInputRecipe =
|
|
6
|
-
var inputWrapperRecipe =
|
|
7
|
-
var adornmentWrapperRecipe =
|
|
4
|
+
const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
5
|
+
var styledInputRecipe = createRuntimeFn.createRuntimeFn({ defaultClassName: "_1st6suv1 _1st6suv0", variantClassNames: { size: { small: "_1st6suv2", medium: "_1st6suv3", large: "_1st6suv4" }, variant: { ghost: "_1st6suv5" }, state: { invalid: "_1st6suv6" }, cursor: { "default": "_1st6suv7", text: "_1st6suv8" }, startAdornment: { true: "_1st6suv9" }, endAdornment: { true: "_1st6suva" } }, defaultVariants: { size: "medium", cursor: "default" }, compoundVariants: [[{ variant: "ghost", state: "invalid" }, "_1st6suvb"], [{ startAdornment: true, size: "small" }, "_1st6suvc"], [{ startAdornment: true, size: "medium" }, "_1st6suvd"], [{ startAdornment: true, size: "large" }, "_1st6suve"], [{ endAdornment: true, size: "small" }, "_1st6suvf"], [{ endAdornment: true, size: "medium" }, "_1st6suvg"], [{ endAdornment: true, size: "large" }, "_1st6suvh"], [{ endAdornment: true, size: "small", state: "invalid" }, "_1st6suvi"], [{ endAdornment: true, size: "medium", state: "invalid" }, "_1st6suvj"], [{ endAdornment: true, size: "large", state: "invalid" }, "_1st6suvk"]] });
|
|
6
|
+
var inputWrapperRecipe = createRuntimeFn.createRuntimeFn({ defaultClassName: "_1st6suvm _1st6suvl", variantClassNames: { disabled: { true: "_1st6suvn" }, state: { invalid: "_1st6suvo" }, size: { small: "_1st6suvp", medium: "_1st6suvq", large: "_1st6suvr" } }, defaultVariants: { size: "medium", disabled: false }, compoundVariants: [] });
|
|
7
|
+
var adornmentWrapperRecipe = createRuntimeFn.createRuntimeFn({ defaultClassName: "_1st6suvt _1st6suvs", variantClassNames: { size: { small: "_1st6suvu", medium: "_1st6suvv", large: "_1st6suvw" }, variant: { start: "_1st6suvx", end: "_1st6suvy" } }, defaultVariants: { size: "medium" }, compoundVariants: [] });
|
|
8
8
|
exports.adornmentWrapperRecipe = adornmentWrapperRecipe;
|
|
9
9
|
exports.inputWrapperRecipe = inputWrapperRecipe;
|
|
10
10
|
exports.styledInputRecipe = styledInputRecipe;
|