likec4 1.57.0 → 1.58.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/__app__/codegen/react.mjs +7 -8
- package/__app__/codegen/webcomponent.mjs +70 -881
- package/__app__/src/aichat/index.mjs +8 -1
- package/__app__/src/chunks/AIChat.mjs +959 -0
- package/__app__/src/chunks/DiagramActorProvider.mjs +7638 -0
- package/__app__/src/chunks/LikeC4Styles.mjs +1866 -0
- package/__app__/src/chunks/Markdown.mjs +146 -0
- package/__app__/src/chunks/NavigationPanel.mjs +61 -0
- package/__app__/src/chunks/ProjectsOverview.mjs +540 -0
- package/__app__/src/chunks/adhoc-editor.mjs +3386 -0
- package/__app__/src/chunks/es.mjs +439 -0
- package/__app__/src/chunks/hooks.mjs +145 -0
- package/__app__/src/chunks/libs/@dagrejs/dagre.mjs +1894 -0
- package/__app__/src/chunks/libs/@floating-ui.mjs +2218 -0
- package/__app__/src/chunks/libs/@mantine.mjs +12070 -0
- package/__app__/src/chunks/libs/@tabler/icons-react.mjs +252 -0
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +1768 -0
- package/__app__/src/chunks/libs/@tanstack.mjs +2718 -0
- package/__app__/src/chunks/libs/@xstate/react.mjs +1982 -0
- package/__app__/src/chunks/libs/@xyflow/react.mjs +5256 -0
- package/__app__/src/chunks/libs/bezier-js.mjs +1003 -0
- package/__app__/src/chunks/libs/d3.mjs +2842 -0
- package/__app__/src/chunks/libs/fast-equals.mjs +268 -0
- package/__app__/src/chunks/libs/framer.mjs +5872 -0
- package/__app__/src/chunks/libs/remeda.mjs +642 -0
- package/__app__/src/chunks/libs/zod.mjs +3170 -0
- package/__app__/src/chunks/rolldown-runtime.mjs +23 -0
- package/__app__/src/chunks/styled-system.mjs +1040 -0
- package/__app__/src/fonts.css +1 -1
- package/__app__/src/main.mjs +14816 -14
- package/__app__/src/style.css +1 -1
- package/dist/chunks/enableServer.mjs +1 -1
- package/dist/chunks/filenames.mjs +2 -2
- package/dist/chunks/index2.d.mts +1877 -734
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@logtape/logtape.mjs +4 -3
- package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
- package/dist/chunks/libs/chevrotain.mjs +25 -25
- package/dist/chunks/libs/langium.mjs +1 -1
- package/dist/chunks/libs/merge-error-cause.mjs +1 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/ufo.mjs +1 -1
- package/dist/chunks/libs/unstorage.mjs +1 -1
- package/dist/chunks/libs/which.mjs +1 -1
- package/dist/chunks/libs/zod.mjs +65 -0
- package/dist/chunks/node.mjs +73 -62
- package/dist/chunks/{plugin.mjs → vite-plugin.mjs} +41 -41
- package/dist/cli/index.mjs +184 -144
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +1 -1
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal/index.d.mts +52 -57
- package/dist/vite-plugin/internal/index.mjs +946 -1
- package/package.json +46 -47
- package/react/index.d.mts +92 -23
- package/react/index.mjs +44551 -42605
- package/__app__/chunks/AIChat2.mjs +0 -2
- package/__app__/chunks/DiagramActorProvider.mjs +0 -10
- package/__app__/chunks/EmbedPage.mjs +0 -1
- package/__app__/chunks/ExportPage.mjs +0 -2
- package/__app__/chunks/LikeC4Diagram.mjs +0 -19
- package/__app__/chunks/LikeC4Styles.mjs +0 -48
- package/__app__/chunks/Markdown.mjs +0 -1
- package/__app__/chunks/NavigationPanel.mjs +0 -1
- package/__app__/chunks/ViewReact.mjs +0 -1
- package/__app__/chunks/adhoc-editor.mjs +0 -1
- package/__app__/chunks/aichat.mjs +0 -1
- package/__app__/chunks/box.mjs +0 -1
- package/__app__/chunks/create-style-context.mjs +0 -1
- package/__app__/chunks/css.mjs +0 -1
- package/__app__/chunks/factory.mjs +0 -1
- package/__app__/chunks/hooks.mjs +0 -1
- package/__app__/chunks/hstack.mjs +0 -1
- package/__app__/chunks/libs/@dagrejs/dagre.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/core.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/dom.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/react.mjs +0 -1
- package/__app__/chunks/libs/@mantine/core.mjs +0 -41
- package/__app__/chunks/libs/@mantine/hooks.mjs +0 -1
- package/__app__/chunks/libs/@nanostores/react.mjs +0 -1
- package/__app__/chunks/libs/@react-hookz/web.mjs +0 -1
- package/__app__/chunks/libs/@tabler/icons-react.mjs +0 -358
- package/__app__/chunks/libs/@tanstack/ai-client.mjs +0 -2
- package/__app__/chunks/libs/@tanstack/ai-react-ui.mjs +0 -1
- package/__app__/chunks/libs/@tanstack/ai-react.mjs +0 -1
- package/__app__/chunks/libs/@tanstack/ai.mjs +0 -2
- package/__app__/chunks/libs/@tanstack/history.mjs +0 -1
- package/__app__/chunks/libs/@tanstack/react-router.mjs +0 -3
- package/__app__/chunks/libs/@tanstack/router-core.mjs +0 -1
- package/__app__/chunks/libs/@xstate/react.mjs +0 -1
- package/__app__/chunks/libs/@xstate/store.mjs +0 -1
- package/__app__/chunks/libs/@xyflow/react.mjs +0 -7
- package/__app__/chunks/libs/@zag-js/anatomy.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/collection.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/core.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/react.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/tree-view.mjs +0 -1
- package/__app__/chunks/libs/bezier-js.mjs +0 -1
- package/__app__/chunks/libs/copy-anything.mjs +0 -1
- package/__app__/chunks/libs/d3-path.mjs +0 -1
- package/__app__/chunks/libs/d3-shape.mjs +0 -1
- package/__app__/chunks/libs/fast-equals.mjs +0 -1
- package/__app__/chunks/libs/framer-motion.mjs +0 -9
- package/__app__/chunks/libs/html-to-image.mjs +0 -2
- package/__app__/chunks/libs/motion-dom.mjs +0 -1
- package/__app__/chunks/libs/nanostores.mjs +0 -1
- package/__app__/chunks/libs/react-error-boundary.mjs +0 -1
- package/__app__/chunks/libs/react-resizable-panels.mjs +0 -1
- package/__app__/chunks/libs/remeda.mjs +0 -1
- package/__app__/chunks/libs/superjson.mjs +0 -1
- package/__app__/chunks/libs/zod.mjs +0 -64
- package/__app__/chunks/rolldown-runtime.mjs +0 -1
- package/__app__/chunks/styles.css.mjs +0 -1
- package/__app__/chunks/txt.mjs +0 -1
- package/__app__/chunks/useLikeC4Project.mjs +0 -1
- package/__app__/src/pages/AdHocViewEditor.mjs +0 -1
- package/__app__/src/pages/EmbedPage.mjs +0 -1
- package/__app__/src/pages/ExportPage.mjs +0 -1
- package/__app__/src/pages/ProjectsOverview.mjs +0 -1
- package/__app__/src/pages/ViewAsD2.mjs +0 -1
- package/__app__/src/pages/ViewAsDot.mjs +0 -1
- package/__app__/src/pages/ViewAsMmd.mjs +0 -1
- package/__app__/src/pages/ViewAsPuml.mjs +0 -1
- package/__app__/src/pages/ViewEditor.mjs +0 -1
- package/__app__/src/pages/ViewReact.mjs +0 -1
- package/dist/chunks/libs/@chevrotain/utils.mjs +0 -1
- package/dist/chunks/libs/@hono/mcp.mjs +0 -70
- package/dist/chunks/libs/@hono/node-server.mjs +0 -1
- package/dist/chunks/libs/@logtape/logtape.d.mts +0 -1023
- package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
- package/dist/chunks/libs/ajv.mjs +0 -1
- package/dist/chunks/libs/ansi-align.mjs +0 -2
- package/dist/chunks/libs/ansi-regex.mjs +0 -1
- package/dist/chunks/libs/ansi-styles.mjs +0 -1
- package/dist/chunks/libs/atomically.mjs +0 -1
- package/dist/chunks/libs/boxen.mjs +0 -22
- package/dist/chunks/libs/conf.mjs +0 -1
- package/dist/chunks/libs/defu.mjs +0 -1
- package/dist/chunks/libs/destr.mjs +0 -1
- package/dist/chunks/libs/find-up-simple.mjs +0 -1
- package/dist/chunks/libs/get-port.mjs +0 -1
- package/dist/chunks/libs/hono.mjs +0 -1
- package/dist/chunks/libs/is-docker.mjs +0 -1
- package/dist/chunks/libs/is-error-instance.mjs +0 -1
- package/dist/chunks/libs/is-inside-container.mjs +0 -1
- package/dist/chunks/libs/is-plain-obj.mjs +0 -1
- package/dist/chunks/libs/isexe.mjs +0 -1
- package/dist/chunks/libs/ky.mjs +0 -3
- package/dist/chunks/libs/p-debounce.mjs +0 -1
- package/dist/chunks/libs/p-limit.mjs +0 -1
- package/dist/chunks/libs/p-timeout.mjs +0 -1
- package/dist/chunks/libs/package-up.mjs +0 -1
- package/dist/chunks/libs/parse-ms.mjs +0 -1
- package/dist/chunks/libs/safe-stringify.mjs +0 -1
- package/dist/chunks/libs/strip-indent.mjs +0 -1
- package/dist/chunks/libs/tinyrainbow.mjs +0 -1
- package/dist/chunks/libs/ts-graphviz.mjs +0 -1
- package/dist/chunks/libs/unctx.mjs +0 -1
- package/dist/chunks/libs/vscode-languageserver.mjs +0 -1
- package/dist/chunks/libs/word-wrap.mjs +0 -12
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/birpc.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/fast-equals.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/nanostores.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/remeda.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +0 -1
|
@@ -0,0 +1,1040 @@
|
|
|
1
|
+
import { i as e } from "./rolldown-runtime.mjs";
|
|
2
|
+
import { createContext as t, createElement as n, forwardRef as r, useContext as i, useMemo as a } from "react";
|
|
3
|
+
//#region styled-system/helpers.mjs
|
|
4
|
+
function isObject(e) {
|
|
5
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
6
|
+
}
|
|
7
|
+
var isObjectOrArray = (e) => typeof e == "object" && !!e;
|
|
8
|
+
function compact(e) {
|
|
9
|
+
return Object.fromEntries(Object.entries(e ?? {}).filter(([e, t]) => t !== void 0));
|
|
10
|
+
}
|
|
11
|
+
var isBaseCondition = (e) => e === "base";
|
|
12
|
+
function filterBaseConditions(e) {
|
|
13
|
+
return e.slice().filter((e) => !isBaseCondition(e));
|
|
14
|
+
}
|
|
15
|
+
function toChar(e) {
|
|
16
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
17
|
+
}
|
|
18
|
+
function toName(e) {
|
|
19
|
+
let t = "", n;
|
|
20
|
+
for (n = Math.abs(e); n > 52; n = n / 52 | 0) t = toChar(n % 52) + t;
|
|
21
|
+
return toChar(n % 52) + t;
|
|
22
|
+
}
|
|
23
|
+
function toPhash(e, t) {
|
|
24
|
+
let n = t.length;
|
|
25
|
+
for (; n;) e = e * 33 ^ t.charCodeAt(--n);
|
|
26
|
+
return e;
|
|
27
|
+
}
|
|
28
|
+
function toHash(e) {
|
|
29
|
+
return toName(toPhash(5381, e) >>> 0);
|
|
30
|
+
}
|
|
31
|
+
var o = /\s*!(important)?/i;
|
|
32
|
+
function isImportant(e) {
|
|
33
|
+
return typeof e == "string" ? o.test(e) : !1;
|
|
34
|
+
}
|
|
35
|
+
function withoutImportant(e) {
|
|
36
|
+
return typeof e == "string" ? e.replace(o, "").trim() : e;
|
|
37
|
+
}
|
|
38
|
+
function withoutSpace(e) {
|
|
39
|
+
return typeof e == "string" ? e.replaceAll(" ", "_") : e;
|
|
40
|
+
}
|
|
41
|
+
var s = /* @__PURE__ */ e((e) => {
|
|
42
|
+
let t = /* @__PURE__ */ new Map(), get = (...n) => {
|
|
43
|
+
let r = JSON.stringify(n);
|
|
44
|
+
if (t.has(r)) return t.get(r);
|
|
45
|
+
let i = e(...n);
|
|
46
|
+
return t.set(r, i), i;
|
|
47
|
+
};
|
|
48
|
+
return get;
|
|
49
|
+
}, "memo"), c = /* @__PURE__ */ new Set([
|
|
50
|
+
"__proto__",
|
|
51
|
+
"constructor",
|
|
52
|
+
"prototype"
|
|
53
|
+
]);
|
|
54
|
+
function mergeProps(...e) {
|
|
55
|
+
return e.reduce((e, t) => (t && Object.keys(t).forEach((n) => {
|
|
56
|
+
if (c.has(n)) return;
|
|
57
|
+
let r = e[n], i = t[n];
|
|
58
|
+
isObject(r) && isObject(i) ? e[n] = mergeProps(r, i) : e[n] = i;
|
|
59
|
+
}), e), {});
|
|
60
|
+
}
|
|
61
|
+
var isNotNullish = (e) => e != null;
|
|
62
|
+
function walkObject(e, t, n = {}) {
|
|
63
|
+
let { stop: r, getKey: i } = n;
|
|
64
|
+
function inner(e, n = []) {
|
|
65
|
+
if (isObjectOrArray(e)) {
|
|
66
|
+
let a = {};
|
|
67
|
+
for (let [o, s] of Object.entries(e)) {
|
|
68
|
+
let c = i?.(o, s) ?? o, l = [...n, c];
|
|
69
|
+
if (r?.(e, l)) return t(e, n);
|
|
70
|
+
let u = inner(s, l);
|
|
71
|
+
isNotNullish(u) && (a[c] = u);
|
|
72
|
+
}
|
|
73
|
+
return a;
|
|
74
|
+
}
|
|
75
|
+
return t(e, n);
|
|
76
|
+
}
|
|
77
|
+
return inner(e);
|
|
78
|
+
}
|
|
79
|
+
function mapObject(e, t) {
|
|
80
|
+
return Array.isArray(e) ? e.map((e) => t(e)) : isObject(e) ? walkObject(e, (e) => t(e)) : t(e);
|
|
81
|
+
}
|
|
82
|
+
function toResponsiveObject(e, t) {
|
|
83
|
+
return e.reduce((e, n, r) => {
|
|
84
|
+
let i = t[r];
|
|
85
|
+
return n != null && (e[i] = n), e;
|
|
86
|
+
}, {});
|
|
87
|
+
}
|
|
88
|
+
function normalizeStyleObject(e, t, n = !0) {
|
|
89
|
+
let { utility: r, conditions: i } = t, { hasShorthand: a, resolveShorthand: o } = r;
|
|
90
|
+
return walkObject(e, (e) => Array.isArray(e) ? toResponsiveObject(e, i.breakpoints.keys) : e, {
|
|
91
|
+
stop: (e) => Array.isArray(e),
|
|
92
|
+
getKey: n ? (e) => a ? o(e) : e : void 0
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
var l = {
|
|
96
|
+
shift: (e) => e,
|
|
97
|
+
finalize: (e) => e,
|
|
98
|
+
breakpoints: { keys: [] }
|
|
99
|
+
}, sanitize = (e) => typeof e == "string" ? e.replaceAll(/[\n\s]+/g, " ") : e;
|
|
100
|
+
function createCss(e) {
|
|
101
|
+
let { utility: t, hash: n, conditions: r = l } = e, formatClassName = (e) => [t.prefix, e].filter(Boolean).join("-"), hashFn = (e, i) => {
|
|
102
|
+
let a;
|
|
103
|
+
if (n) {
|
|
104
|
+
let n = [...r.finalize(e), i];
|
|
105
|
+
a = formatClassName(t.toHash(n, toHash));
|
|
106
|
+
} else a = [...r.finalize(e), formatClassName(i)].join(":");
|
|
107
|
+
return a;
|
|
108
|
+
};
|
|
109
|
+
return s(({ base: n, ...i } = {}) => {
|
|
110
|
+
let a = normalizeStyleObject(Object.assign(i, n), e), o = /* @__PURE__ */ new Set();
|
|
111
|
+
return walkObject(a, (e, n) => {
|
|
112
|
+
if (e == null) return;
|
|
113
|
+
let i = isImportant(e), [a, ...s] = r.shift(n), c = hashFn(filterBaseConditions(s), t.transform(a, withoutImportant(sanitize(e))).className);
|
|
114
|
+
i && (c = `${c}!`), o.add(c);
|
|
115
|
+
}), Array.from(o).join(" ");
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function compactStyles(...e) {
|
|
119
|
+
return e.flat().filter((e) => isObject(e) && Object.keys(compact(e)).length > 0);
|
|
120
|
+
}
|
|
121
|
+
function createMergeCss(e) {
|
|
122
|
+
function resolve(t) {
|
|
123
|
+
let n = compactStyles(...t);
|
|
124
|
+
return n.length === 1 ? n : n.map((t) => normalizeStyleObject(t, e));
|
|
125
|
+
}
|
|
126
|
+
function mergeCss(...e) {
|
|
127
|
+
return mergeProps(...resolve(e));
|
|
128
|
+
}
|
|
129
|
+
function assignCss(...e) {
|
|
130
|
+
return Object.assign({}, ...resolve(e));
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
mergeCss: s(mergeCss),
|
|
134
|
+
assignCss
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
var u = /([A-Z])/g, d = /^ms-/, f = s((e) => e.startsWith("--") ? e : e.replace(u, "-$1").replace(d, "-ms-").toLowerCase()), p = RegExp(`^(${[
|
|
138
|
+
"min",
|
|
139
|
+
"max",
|
|
140
|
+
"clamp",
|
|
141
|
+
"calc"
|
|
142
|
+
].join("|")})\\(.*\\)`), isCssFunction = (e) => typeof e == "string" && p.test(e), ee = `(?:${"cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%".split(",").join("|")})`, te = RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${ee}$`), isCssUnit = (e) => typeof e == "string" && te.test(e), isCssVar = (e) => typeof e == "string" && /^var\(--.+\)$/.test(e), m = {
|
|
143
|
+
map: mapObject,
|
|
144
|
+
isCssFunction,
|
|
145
|
+
isCssVar,
|
|
146
|
+
isCssUnit
|
|
147
|
+
}, getPatternStyles = (e, t) => {
|
|
148
|
+
if (!e?.defaultValues) return t;
|
|
149
|
+
let n = typeof e.defaultValues == "function" ? e.defaultValues(t) : e.defaultValues;
|
|
150
|
+
return Object.assign({}, n, compact(t));
|
|
151
|
+
}, getSlotRecipes = (e = {}) => {
|
|
152
|
+
let init = (t) => ({
|
|
153
|
+
className: [e.className, t].filter(Boolean).join("__"),
|
|
154
|
+
base: e.base?.[t] ?? {},
|
|
155
|
+
variants: {},
|
|
156
|
+
defaultVariants: e.defaultVariants ?? {},
|
|
157
|
+
compoundVariants: e.compoundVariants ? getSlotCompoundVariant(e.compoundVariants, t) : []
|
|
158
|
+
}), t = (e.slots ?? []).map((e) => [e, init(e)]);
|
|
159
|
+
for (let [n, r] of Object.entries(e.variants ?? {})) for (let [e, i] of Object.entries(r)) t.forEach(([t, r]) => {
|
|
160
|
+
r.variants[n] ??= {}, r.variants[n][e] = i[t] ?? {};
|
|
161
|
+
});
|
|
162
|
+
return Object.fromEntries(t);
|
|
163
|
+
}, getSlotCompoundVariant = (e, t) => e.filter((e) => e.css[t]).map((e) => ({
|
|
164
|
+
...e,
|
|
165
|
+
css: e.css[t]
|
|
166
|
+
}));
|
|
167
|
+
function splitProps(e, ...t) {
|
|
168
|
+
let n = Object.getOwnPropertyDescriptors(e), r = Object.keys(n), split = (e) => {
|
|
169
|
+
let t = {};
|
|
170
|
+
for (let r = 0; r < e.length; r++) {
|
|
171
|
+
let i = e[r];
|
|
172
|
+
n[i] && (Object.defineProperty(t, i, n[i]), delete n[i]);
|
|
173
|
+
}
|
|
174
|
+
return t;
|
|
175
|
+
}, fn = (e) => split(Array.isArray(e) ? e : r.filter(e));
|
|
176
|
+
return t.map(fn).concat(split(r));
|
|
177
|
+
}
|
|
178
|
+
var uniq = (...e) => {
|
|
179
|
+
let t = e.reduce((e, t) => (t && t.forEach((t) => e.add(t)), e), /* @__PURE__ */ new Set([]));
|
|
180
|
+
return Array.from(t);
|
|
181
|
+
}, h = [
|
|
182
|
+
"htmlSize",
|
|
183
|
+
"htmlTranslate",
|
|
184
|
+
"htmlWidth",
|
|
185
|
+
"htmlHeight"
|
|
186
|
+
];
|
|
187
|
+
function convert(e) {
|
|
188
|
+
return h.includes(e) ? e.replace("html", "").toLowerCase() : e;
|
|
189
|
+
}
|
|
190
|
+
function normalizeHTMLProps(e) {
|
|
191
|
+
return Object.fromEntries(Object.entries(e).map(([e, t]) => [convert(e), t]));
|
|
192
|
+
}
|
|
193
|
+
normalizeHTMLProps.keys = h;
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region styled-system/css/conditions.mjs
|
|
196
|
+
var g = new Set("_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_shapeBucket,_shapeDocument,_shapeComponent,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelectable,_whenSelected,_whenDimmed,_whenFocused,_p3,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,base".split(",")), ne = /^@|&|&$/;
|
|
197
|
+
function isCondition(e) {
|
|
198
|
+
return g.has(e) || ne.test(e);
|
|
199
|
+
}
|
|
200
|
+
var re = /^_/, ie = /&|@/;
|
|
201
|
+
function finalizeConditions(e) {
|
|
202
|
+
return e.map((e) => g.has(e) ? e.replace(re, "") : ie.test(e) ? `[${withoutSpace(e.trim())}]` : e);
|
|
203
|
+
}
|
|
204
|
+
function sortConditions(e) {
|
|
205
|
+
return e.sort((e, t) => {
|
|
206
|
+
let n = isCondition(e), r = isCondition(t);
|
|
207
|
+
return n && !r ? 1 : !n && r ? -1 : 0;
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region styled-system/css/css.mjs
|
|
212
|
+
var ae = "aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,WebkitTextFillColor:wktf-c,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:transition,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle,layerStyle:layerStyle,animationStyle:animationStyle", _ = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
|
|
213
|
+
ae.split(",").forEach((e) => {
|
|
214
|
+
let [t, n] = e.split(":"), [r, ...i] = n.split("/");
|
|
215
|
+
_.set(t, r), i.length && i.forEach((e) => {
|
|
216
|
+
v.set(e === "1" ? r : e, t);
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
var resolveShorthand = (e) => v.get(e) || e, oe = {
|
|
220
|
+
conditions: {
|
|
221
|
+
shift: sortConditions,
|
|
222
|
+
finalize: finalizeConditions,
|
|
223
|
+
breakpoints: { keys: [
|
|
224
|
+
"base",
|
|
225
|
+
"xs",
|
|
226
|
+
"sm",
|
|
227
|
+
"md",
|
|
228
|
+
"lg",
|
|
229
|
+
"xl"
|
|
230
|
+
] }
|
|
231
|
+
},
|
|
232
|
+
utility: {
|
|
233
|
+
transform: (e, t) => {
|
|
234
|
+
let n = resolveShorthand(e);
|
|
235
|
+
return { className: `${_.get(n) || f(n)}_${withoutSpace(t)}` };
|
|
236
|
+
},
|
|
237
|
+
hasShorthand: !0,
|
|
238
|
+
toHash: (e, t) => t(e.join(":")),
|
|
239
|
+
resolveShorthand
|
|
240
|
+
}
|
|
241
|
+
}, se = createCss(oe), css = (...e) => se(y(...e));
|
|
242
|
+
css.raw = (...e) => y(...e);
|
|
243
|
+
var { mergeCss: y, assignCss: ce } = createMergeCss(oe);
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region styled-system/css/cx.mjs
|
|
246
|
+
function cx() {
|
|
247
|
+
let e = "", t = 0, n;
|
|
248
|
+
for (; t < arguments.length;) (n = arguments[t++]) && typeof n == "string" && (e && (e += " "), e += n);
|
|
249
|
+
return e;
|
|
250
|
+
}
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region styled-system/css/cva.mjs
|
|
253
|
+
var defaults = (e) => ({
|
|
254
|
+
base: {},
|
|
255
|
+
variants: {},
|
|
256
|
+
defaultVariants: {},
|
|
257
|
+
compoundVariants: [],
|
|
258
|
+
...e
|
|
259
|
+
});
|
|
260
|
+
function cva(e) {
|
|
261
|
+
let { base: t, variants: n, defaultVariants: r, compoundVariants: i } = defaults(e), getVariantProps = (e) => ({
|
|
262
|
+
...r,
|
|
263
|
+
...compact(e)
|
|
264
|
+
});
|
|
265
|
+
function resolve(e = {}) {
|
|
266
|
+
let r = getVariantProps(e), a = { ...t };
|
|
267
|
+
for (let [e, t] of Object.entries(r)) n[e]?.[t] && (a = y(a, n[e][t]));
|
|
268
|
+
let o = getCompoundVariantCss(i, r);
|
|
269
|
+
return y(a, o);
|
|
270
|
+
}
|
|
271
|
+
function merge(e) {
|
|
272
|
+
let a = defaults(e.config), o = uniq(e.variantKeys, Object.keys(n));
|
|
273
|
+
return cva({
|
|
274
|
+
base: y(t, a.base),
|
|
275
|
+
variants: Object.fromEntries(o.map((e) => [e, y(n[e], a.variants[e])])),
|
|
276
|
+
defaultVariants: mergeProps(r, a.defaultVariants),
|
|
277
|
+
compoundVariants: [...i, ...a.compoundVariants]
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
function cvaFn(e) {
|
|
281
|
+
return css(resolve(e));
|
|
282
|
+
}
|
|
283
|
+
let a = Object.keys(n);
|
|
284
|
+
function splitVariantProps(e) {
|
|
285
|
+
return splitProps(e, a);
|
|
286
|
+
}
|
|
287
|
+
let o = Object.fromEntries(Object.entries(n).map(([e, t]) => [e, Object.keys(t)]));
|
|
288
|
+
return Object.assign(s(cvaFn), {
|
|
289
|
+
__cva__: !0,
|
|
290
|
+
variantMap: o,
|
|
291
|
+
variantKeys: a,
|
|
292
|
+
raw: resolve,
|
|
293
|
+
config: e,
|
|
294
|
+
merge,
|
|
295
|
+
splitVariantProps,
|
|
296
|
+
getVariantProps
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
function getCompoundVariantCss(e, t) {
|
|
300
|
+
let n = {};
|
|
301
|
+
return e.forEach((e) => {
|
|
302
|
+
Object.entries(e).every(([e, n]) => e === "css" ? !0 : (Array.isArray(n) ? n : [n]).some((n) => t[e] === n)) && (n = y(n, e.css));
|
|
303
|
+
}), n;
|
|
304
|
+
}
|
|
305
|
+
function assertCompoundVariant(e, t, n, r) {
|
|
306
|
+
if (t.length > 0 && typeof n?.[r] == "object") throw Error(`[recipe:${e}:${r}] Conditions are not supported when using compound variants.`);
|
|
307
|
+
}
|
|
308
|
+
//#endregion
|
|
309
|
+
//#region styled-system/css/sva.mjs
|
|
310
|
+
function sva(e) {
|
|
311
|
+
let t = Object.entries(getSlotRecipes(e)).map(([e, t]) => [e, cva(t)]), n = e.defaultVariants ?? {}, r = t.reduce((t, [n, r]) => (e.className && (t[n] = r.config.className), t), {});
|
|
312
|
+
function svaFn(e) {
|
|
313
|
+
let n = t.map(([t, n]) => [t, cx(n(e), r[t])]);
|
|
314
|
+
return Object.fromEntries(n);
|
|
315
|
+
}
|
|
316
|
+
function raw(e) {
|
|
317
|
+
let n = t.map(([t, n]) => [t, n.raw(e)]);
|
|
318
|
+
return Object.fromEntries(n);
|
|
319
|
+
}
|
|
320
|
+
let i = e.variants ?? {}, a = Object.keys(i);
|
|
321
|
+
function splitVariantProps(e) {
|
|
322
|
+
return splitProps(e, a);
|
|
323
|
+
}
|
|
324
|
+
let getVariantProps = (e) => ({
|
|
325
|
+
...n,
|
|
326
|
+
...compact(e)
|
|
327
|
+
}), o = Object.fromEntries(Object.entries(i).map(([e, t]) => [e, Object.keys(t)]));
|
|
328
|
+
return Object.assign(s(svaFn), {
|
|
329
|
+
__cva__: !1,
|
|
330
|
+
raw,
|
|
331
|
+
config: e,
|
|
332
|
+
variantMap: o,
|
|
333
|
+
variantKeys: a,
|
|
334
|
+
classNameMap: r,
|
|
335
|
+
splitVariantProps,
|
|
336
|
+
getVariantProps
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region styled-system/jsx/is-valid-prop.mjs
|
|
341
|
+
var le = "css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,bgLinear,bgRadial,bgConic,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,boxSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,WebkitTextFillColor,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,backgroundLinear,backgroundRadial,backgroundConic,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderBlockStartWidth,borderBlockEndWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,cursor,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_shapeBucket,_shapeDocument,_shapeComponent,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelectable,_whenSelected,_whenDimmed,_whenFocused,_p3,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,textStyle,layerStyle,animationStyle".split(","), ue = "WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,cornerShape,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical".split(",").concat(le), de = new Map(ue.map((e) => [e, !0])), fe = /&|@/, b = /* @__PURE__ */ s((e) => de.has(e) || e.startsWith("--") || fe.test(e)), defaultShouldForwardProp = (e, t) => !t.includes(e) && !b(e), composeShouldForwardProps = (e, t) => e.__shouldForwardProps__ && t ? (n) => e.__shouldForwardProps__(n) && t(n) : t, composeCvaFn = (e, t) => {
|
|
342
|
+
if (e && !t) return e;
|
|
343
|
+
if (!e && t) return t;
|
|
344
|
+
if (e.__cva__ && t.__cva__ || e.__recipe__ && t.__recipe__) return e.merge(t);
|
|
345
|
+
let n = /* @__PURE__ */ TypeError("Cannot merge cva with recipe. Please use either cva or recipe.");
|
|
346
|
+
throw TypeError.captureStackTrace?.(n), n;
|
|
347
|
+
}, getDisplayName = (e) => typeof e == "string" ? e : e?.displayName || e?.name || "Component";
|
|
348
|
+
//#endregion
|
|
349
|
+
//#region styled-system/jsx/factory.mjs
|
|
350
|
+
function styledFn(e, t = {}, i = {}) {
|
|
351
|
+
let o = t.__cva__ || t.__recipe__ ? t : cva(t), s = i.shouldForwardProp || defaultShouldForwardProp, shouldForwardProp = (e) => i.forwardProps?.includes(e) ? !0 : s(e, o.variantKeys), c = Object.assign(i.dataAttr && t.__name__ ? { "data-recipe": t.__name__ } : {}, i.defaultProps), l = composeCvaFn(e.__cva__, o), u = composeShouldForwardProps(e, shouldForwardProp), d = e.__base__ || e, f = /* @__PURE__ */ r(function StyledComponent(e, r) {
|
|
352
|
+
let { as: i = d, unstyled: o, children: s, ...f } = e, p = a(() => Object.assign({}, c, f), [f]), [ee, te, m, h, g] = a(() => splitProps(p, normalizeHTMLProps.keys, u, l.variantKeys, b), [p]);
|
|
353
|
+
function recipeClass() {
|
|
354
|
+
let { css: e, ...t } = h, n = l.__getCompoundVariantCss__?.(m);
|
|
355
|
+
return cx(l(m, !1), css(n, t, e), p.className);
|
|
356
|
+
}
|
|
357
|
+
function cvaClass() {
|
|
358
|
+
let { css: e, ...t } = h;
|
|
359
|
+
return cx(css(l.raw(m), t, e), p.className);
|
|
360
|
+
}
|
|
361
|
+
let classes = () => {
|
|
362
|
+
if (o) {
|
|
363
|
+
let { css: e, ...t } = h;
|
|
364
|
+
return cx(css(t, e), p.className);
|
|
365
|
+
}
|
|
366
|
+
return t.__recipe__ ? recipeClass() : cvaClass();
|
|
367
|
+
};
|
|
368
|
+
return n(i, {
|
|
369
|
+
ref: r,
|
|
370
|
+
...te,
|
|
371
|
+
...g,
|
|
372
|
+
...normalizeHTMLProps(ee),
|
|
373
|
+
className: classes()
|
|
374
|
+
}, s ?? p.children);
|
|
375
|
+
});
|
|
376
|
+
return f.displayName = `styled.${getDisplayName(d)}`, f.__cva__ = l, f.__base__ = d, f.__shouldForwardProps__ = shouldForwardProp, f;
|
|
377
|
+
}
|
|
378
|
+
function createJsxFactory() {
|
|
379
|
+
let e = /* @__PURE__ */ new Map();
|
|
380
|
+
return new Proxy(styledFn, {
|
|
381
|
+
apply(e, t, n) {
|
|
382
|
+
return styledFn(...n);
|
|
383
|
+
},
|
|
384
|
+
get(t, n) {
|
|
385
|
+
return e.has(n) || e.set(n, styledFn(n)), e.get(n);
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
var x = /* @__PURE__ */ createJsxFactory();
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region styled-system/jsx/create-style-context.mjs
|
|
392
|
+
function createSafeContext(e) {
|
|
393
|
+
let n = t(void 0), useStyleContext = (t, r) => {
|
|
394
|
+
let a = i(n);
|
|
395
|
+
if (a === void 0) {
|
|
396
|
+
let n = t ? `Component "${t}"` : "A component", i = r ? ` (slot: "${r}")` : "";
|
|
397
|
+
throw Error(`${n}${i} cannot access ${e} because it's missing its Provider.`);
|
|
398
|
+
}
|
|
399
|
+
return a;
|
|
400
|
+
};
|
|
401
|
+
return [n, useStyleContext];
|
|
402
|
+
}
|
|
403
|
+
function createStyleContext(e) {
|
|
404
|
+
let t = "__recipe__" in e, i = t && e.__name__ ? e.__name__ : void 0, [a, o] = createSafeContext(i ? `createStyleContext("${i}")` : "createStyleContext"), s = t ? e : sva(e.config), getResolvedProps = (e, n) => {
|
|
405
|
+
let { unstyled: r, ...i } = e;
|
|
406
|
+
return r ? i : t ? {
|
|
407
|
+
...i,
|
|
408
|
+
className: cx(n, i.className)
|
|
409
|
+
} : {
|
|
410
|
+
...n,
|
|
411
|
+
...i
|
|
412
|
+
};
|
|
413
|
+
}, withRootProvider = (e, r) => {
|
|
414
|
+
let WithRootProvider = (i) => {
|
|
415
|
+
let [o, c] = s.splitVariantProps(i), l = t ? s(o) : s.raw(o);
|
|
416
|
+
l._classNameMap = s.classNameMap;
|
|
417
|
+
let u = r?.defaultProps ? {
|
|
418
|
+
...r.defaultProps,
|
|
419
|
+
...c
|
|
420
|
+
} : c;
|
|
421
|
+
return n(a.Provider, {
|
|
422
|
+
value: l,
|
|
423
|
+
children: n(e, u)
|
|
424
|
+
});
|
|
425
|
+
};
|
|
426
|
+
return WithRootProvider.displayName = `withRootProvider(${getDisplayName(e)})`, WithRootProvider;
|
|
427
|
+
}, withProvider = (e, i, o) => {
|
|
428
|
+
let c = x(e, {}, o), l = r((e, r) => {
|
|
429
|
+
let [l, u] = s.splitVariantProps(e), d = t ? s(l) : s.raw(l);
|
|
430
|
+
d._classNameMap = s.classNameMap;
|
|
431
|
+
let f = getResolvedProps({
|
|
432
|
+
...u,
|
|
433
|
+
className: u.className ?? o?.defaultProps?.className
|
|
434
|
+
}, d[i]);
|
|
435
|
+
return n(a.Provider, {
|
|
436
|
+
value: d,
|
|
437
|
+
children: n(c, {
|
|
438
|
+
...f,
|
|
439
|
+
className: cx(f.className, d._classNameMap[i]),
|
|
440
|
+
ref: r
|
|
441
|
+
})
|
|
442
|
+
});
|
|
443
|
+
});
|
|
444
|
+
return l.displayName = `withProvider(${getDisplayName(e)})`, l;
|
|
445
|
+
}, withContext = (e, t, i) => {
|
|
446
|
+
let a = x(e, {}, i), s = getDisplayName(e), c = r((e, r) => {
|
|
447
|
+
let c = o(s, t), l = getResolvedProps({
|
|
448
|
+
...e,
|
|
449
|
+
className: e.className ?? i?.defaultProps?.className
|
|
450
|
+
}, c[t]);
|
|
451
|
+
return n(a, {
|
|
452
|
+
...l,
|
|
453
|
+
className: cx(l.className, c._classNameMap[t]),
|
|
454
|
+
ref: r
|
|
455
|
+
});
|
|
456
|
+
});
|
|
457
|
+
return c.displayName = `withContext(${s})`, c;
|
|
458
|
+
};
|
|
459
|
+
return {
|
|
460
|
+
withRootProvider,
|
|
461
|
+
withProvider,
|
|
462
|
+
withContext
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region styled-system/patterns/box.mjs
|
|
467
|
+
var S = { transform(e) {
|
|
468
|
+
return e;
|
|
469
|
+
} }, getBoxStyle = (e = {}) => {
|
|
470
|
+
let t = getPatternStyles(S, e);
|
|
471
|
+
return S.transform(t, m);
|
|
472
|
+
}, box = (e) => css(getBoxStyle(e));
|
|
473
|
+
box.raw = getBoxStyle;
|
|
474
|
+
//#endregion
|
|
475
|
+
//#region styled-system/jsx/box.mjs
|
|
476
|
+
var pe = /* @__PURE__ */ r(function Box(e, t) {
|
|
477
|
+
let [r, i] = splitProps(e, []), a = {
|
|
478
|
+
ref: t,
|
|
479
|
+
...getBoxStyle(r),
|
|
480
|
+
...i
|
|
481
|
+
};
|
|
482
|
+
return n(x.div, a);
|
|
483
|
+
}), C = { transform(e) {
|
|
484
|
+
let { direction: t, align: n, justify: r, wrap: i, basis: a, grow: o, shrink: s, ...c } = e;
|
|
485
|
+
return {
|
|
486
|
+
display: "flex",
|
|
487
|
+
flexDirection: t,
|
|
488
|
+
alignItems: n,
|
|
489
|
+
justifyContent: r,
|
|
490
|
+
flexWrap: i,
|
|
491
|
+
flexBasis: a,
|
|
492
|
+
flexGrow: o,
|
|
493
|
+
flexShrink: s,
|
|
494
|
+
...c
|
|
495
|
+
};
|
|
496
|
+
} }, getFlexStyle = (e = {}) => {
|
|
497
|
+
let t = getPatternStyles(C, e);
|
|
498
|
+
return C.transform(t, m);
|
|
499
|
+
}, flex = (e) => css(getFlexStyle(e));
|
|
500
|
+
flex.raw = getFlexStyle;
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region styled-system/jsx/flex.mjs
|
|
503
|
+
var me = /* @__PURE__ */ r(function Flex(e, t) {
|
|
504
|
+
let [r, i] = splitProps(e, [
|
|
505
|
+
"align",
|
|
506
|
+
"justify",
|
|
507
|
+
"direction",
|
|
508
|
+
"wrap",
|
|
509
|
+
"basis",
|
|
510
|
+
"grow",
|
|
511
|
+
"shrink"
|
|
512
|
+
]), a = {
|
|
513
|
+
ref: t,
|
|
514
|
+
...getFlexStyle(r),
|
|
515
|
+
...i
|
|
516
|
+
};
|
|
517
|
+
return n(x.div, a);
|
|
518
|
+
}), w = {
|
|
519
|
+
transform(e) {
|
|
520
|
+
let { justify: t, gap: n, ...r } = e;
|
|
521
|
+
return {
|
|
522
|
+
display: "flex",
|
|
523
|
+
alignItems: "center",
|
|
524
|
+
justifyContent: t,
|
|
525
|
+
gap: n,
|
|
526
|
+
flexDirection: "column",
|
|
527
|
+
...r
|
|
528
|
+
};
|
|
529
|
+
},
|
|
530
|
+
defaultValues: {
|
|
531
|
+
alignItems: "stretch",
|
|
532
|
+
gap: "sm"
|
|
533
|
+
}
|
|
534
|
+
}, getVstackStyle = (e = {}) => {
|
|
535
|
+
let t = getPatternStyles(w, e);
|
|
536
|
+
return w.transform(t, m);
|
|
537
|
+
}, vstack = (e) => css(getVstackStyle(e));
|
|
538
|
+
vstack.raw = getVstackStyle;
|
|
539
|
+
//#endregion
|
|
540
|
+
//#region styled-system/jsx/vstack.mjs
|
|
541
|
+
var he = /* @__PURE__ */ r(function VStack(e, t) {
|
|
542
|
+
let [r, i] = splitProps(e, ["justify", "gap"]), a = {
|
|
543
|
+
ref: t,
|
|
544
|
+
...getVstackStyle(r),
|
|
545
|
+
...i
|
|
546
|
+
};
|
|
547
|
+
return n(x.div, a);
|
|
548
|
+
}), T = {
|
|
549
|
+
transform(e) {
|
|
550
|
+
let { justify: t, gap: n, ...r } = e;
|
|
551
|
+
return {
|
|
552
|
+
display: "flex",
|
|
553
|
+
alignItems: "center",
|
|
554
|
+
justifyContent: t,
|
|
555
|
+
gap: n,
|
|
556
|
+
flexDirection: "row",
|
|
557
|
+
...r
|
|
558
|
+
};
|
|
559
|
+
},
|
|
560
|
+
defaultValues: { gap: "sm" }
|
|
561
|
+
}, getHstackStyle = (e = {}) => {
|
|
562
|
+
let t = getPatternStyles(T, e);
|
|
563
|
+
return T.transform(t, m);
|
|
564
|
+
}, hstack = (e) => css(getHstackStyle(e));
|
|
565
|
+
hstack.raw = getHstackStyle;
|
|
566
|
+
//#endregion
|
|
567
|
+
//#region styled-system/jsx/hstack.mjs
|
|
568
|
+
var ge = /* @__PURE__ */ r(function HStack(e, t) {
|
|
569
|
+
let [r, i] = splitProps(e, ["justify", "gap"]), a = {
|
|
570
|
+
ref: t,
|
|
571
|
+
...getHstackStyle(r),
|
|
572
|
+
...i
|
|
573
|
+
};
|
|
574
|
+
return n(x.div, a);
|
|
575
|
+
}), E = { transform(e) {
|
|
576
|
+
return {
|
|
577
|
+
position: "relative",
|
|
578
|
+
maxWidth: "8xl",
|
|
579
|
+
mx: "auto",
|
|
580
|
+
px: {
|
|
581
|
+
base: "4",
|
|
582
|
+
md: "6",
|
|
583
|
+
lg: "8"
|
|
584
|
+
},
|
|
585
|
+
...e
|
|
586
|
+
};
|
|
587
|
+
} }, getContainerStyle = (e = {}) => {
|
|
588
|
+
let t = getPatternStyles(E, e);
|
|
589
|
+
return E.transform(t, m);
|
|
590
|
+
}, container = (e) => css(getContainerStyle(e));
|
|
591
|
+
container.raw = getContainerStyle;
|
|
592
|
+
//#endregion
|
|
593
|
+
//#region styled-system/patterns/bleed.mjs
|
|
594
|
+
var D = {
|
|
595
|
+
transform(e, { map: t, isCssUnit: n, isCssVar: r }) {
|
|
596
|
+
let { inline: i, block: a, ...o } = e, valueFn = (e) => n(e) || r(e) ? e : `token(spacing.${e}, ${e})`;
|
|
597
|
+
return {
|
|
598
|
+
"--bleed-x": t(i, valueFn),
|
|
599
|
+
"--bleed-y": t(a, valueFn),
|
|
600
|
+
marginInline: "calc(var(--bleed-x, 0) * -1)",
|
|
601
|
+
marginBlock: "calc(var(--bleed-y, 0) * -1)",
|
|
602
|
+
...o
|
|
603
|
+
};
|
|
604
|
+
},
|
|
605
|
+
defaultValues: {
|
|
606
|
+
inline: "0",
|
|
607
|
+
block: "0"
|
|
608
|
+
}
|
|
609
|
+
}, getBleedStyle = (e = {}) => {
|
|
610
|
+
let t = getPatternStyles(D, e);
|
|
611
|
+
return D.transform(t, m);
|
|
612
|
+
}, bleed = (e) => css(getBleedStyle(e));
|
|
613
|
+
bleed.raw = getBleedStyle;
|
|
614
|
+
//#endregion
|
|
615
|
+
//#region styled-system/patterns/txt.mjs
|
|
616
|
+
var O = {
|
|
617
|
+
transform(e, t) {
|
|
618
|
+
let { inline: n, size: r, dimmed: i, lh: a, likec4color: o, noUserSelect: s, ...c } = e;
|
|
619
|
+
if (i && o) throw Error("dimmed and likec4color are mutually exclusive");
|
|
620
|
+
return {
|
|
621
|
+
userSelect: "all",
|
|
622
|
+
cursor: "default",
|
|
623
|
+
textStyle: i ? `dimmed.${r}` : r,
|
|
624
|
+
...n && { display: "inline-block" },
|
|
625
|
+
...a && { lineHeight: a },
|
|
626
|
+
...o && { "data-likec4-color": o },
|
|
627
|
+
...s && { userSelect: "none" },
|
|
628
|
+
...c
|
|
629
|
+
};
|
|
630
|
+
},
|
|
631
|
+
defaultValues: {
|
|
632
|
+
inline: !1,
|
|
633
|
+
dimmed: !1,
|
|
634
|
+
size: "md",
|
|
635
|
+
noUserSelect: !1
|
|
636
|
+
}
|
|
637
|
+
}, getTxtStyle = (e = {}) => {
|
|
638
|
+
let t = getPatternStyles(O, e);
|
|
639
|
+
return O.transform(t, m);
|
|
640
|
+
}, txt = (e) => css(getTxtStyle(e));
|
|
641
|
+
txt.raw = getTxtStyle;
|
|
642
|
+
//#endregion
|
|
643
|
+
//#region styled-system/jsx/txt.mjs
|
|
644
|
+
var _e = /* @__PURE__ */ r(function Txt(e, t) {
|
|
645
|
+
let [r, i] = splitProps(e, [
|
|
646
|
+
"inline",
|
|
647
|
+
"dimmed",
|
|
648
|
+
"noUserSelect",
|
|
649
|
+
"lh",
|
|
650
|
+
"size",
|
|
651
|
+
"likec4color"
|
|
652
|
+
]), a = {
|
|
653
|
+
ref: t,
|
|
654
|
+
...getTxtStyle(r),
|
|
655
|
+
...i
|
|
656
|
+
};
|
|
657
|
+
return n(x.div, a);
|
|
658
|
+
}), createRecipe = (e, t, n) => {
|
|
659
|
+
let getVariantProps = (n) => ({
|
|
660
|
+
[e]: "__ignore__",
|
|
661
|
+
...t,
|
|
662
|
+
...compact(n)
|
|
663
|
+
}), recipeFn = (t, r = !0) => {
|
|
664
|
+
let transform = (r, i) => (assertCompoundVariant(e, n, t, r), i === "__ignore__" ? { className: e } : (i = withoutSpace(i), { className: `${e}--${r}_${i}` })), i = createCss({
|
|
665
|
+
conditions: {
|
|
666
|
+
shift: sortConditions,
|
|
667
|
+
finalize: finalizeConditions,
|
|
668
|
+
breakpoints: { keys: [
|
|
669
|
+
"base",
|
|
670
|
+
"xs",
|
|
671
|
+
"sm",
|
|
672
|
+
"md",
|
|
673
|
+
"lg",
|
|
674
|
+
"xl"
|
|
675
|
+
] }
|
|
676
|
+
},
|
|
677
|
+
utility: {
|
|
678
|
+
toHash: (e, t) => t(e.join(":")),
|
|
679
|
+
transform
|
|
680
|
+
}
|
|
681
|
+
}), a = getVariantProps(t);
|
|
682
|
+
if (r) {
|
|
683
|
+
let e = getCompoundVariantCss(n, a);
|
|
684
|
+
return cx(i(a), css(e));
|
|
685
|
+
}
|
|
686
|
+
return i(a);
|
|
687
|
+
};
|
|
688
|
+
return {
|
|
689
|
+
recipeFn,
|
|
690
|
+
getVariantProps,
|
|
691
|
+
__getCompoundVariantCss__: (e) => getCompoundVariantCss(n, getVariantProps(e))
|
|
692
|
+
};
|
|
693
|
+
}, mergeRecipes = (e, t) => {
|
|
694
|
+
if (e && !t) return e;
|
|
695
|
+
if (!e && t) return t;
|
|
696
|
+
let recipeFn = (...n) => cx(e(...n), t(...n)), n = uniq(e.variantKeys, t.variantKeys), r = n.reduce((n, r) => (n[r] = uniq(e.variantMap[r], t.variantMap[r]), n), {});
|
|
697
|
+
return Object.assign(recipeFn, {
|
|
698
|
+
__recipe__: !0,
|
|
699
|
+
__name__: `${e.__name__} ${t.__name__}`,
|
|
700
|
+
raw: (e) => e,
|
|
701
|
+
variantKeys: n,
|
|
702
|
+
variantMap: r,
|
|
703
|
+
splitVariantProps(e) {
|
|
704
|
+
return splitProps(e, n);
|
|
705
|
+
}
|
|
706
|
+
});
|
|
707
|
+
}, k = /* @__PURE__ */ createRecipe("action-btn", {
|
|
708
|
+
size: "md",
|
|
709
|
+
radius: "md",
|
|
710
|
+
variant: "filled"
|
|
711
|
+
}, []), A = {
|
|
712
|
+
variant: ["transparent", "filled"],
|
|
713
|
+
size: ["sm", "md"],
|
|
714
|
+
radius: ["sm", "md"]
|
|
715
|
+
}, j = Object.keys(A), ve = /* @__PURE__ */ Object.assign(s(k.recipeFn), {
|
|
716
|
+
__recipe__: !0,
|
|
717
|
+
__name__: "actionBtn",
|
|
718
|
+
__getCompoundVariantCss__: k.__getCompoundVariantCss__,
|
|
719
|
+
raw: (e) => e,
|
|
720
|
+
variantKeys: j,
|
|
721
|
+
variantMap: A,
|
|
722
|
+
merge(e) {
|
|
723
|
+
return mergeRecipes(this, e);
|
|
724
|
+
},
|
|
725
|
+
splitVariantProps(e) {
|
|
726
|
+
return splitProps(e, j);
|
|
727
|
+
},
|
|
728
|
+
getVariantProps: k.getVariantProps
|
|
729
|
+
}), M = /* @__PURE__ */ createRecipe("action-buttons", {}, []), N = {}, P = Object.keys(N), ye = /* @__PURE__ */ Object.assign(s(M.recipeFn), {
|
|
730
|
+
__recipe__: !0,
|
|
731
|
+
__name__: "actionButtons",
|
|
732
|
+
__getCompoundVariantCss__: M.__getCompoundVariantCss__,
|
|
733
|
+
raw: (e) => e,
|
|
734
|
+
variantKeys: P,
|
|
735
|
+
variantMap: N,
|
|
736
|
+
merge(e) {
|
|
737
|
+
return mergeRecipes(this, e);
|
|
738
|
+
},
|
|
739
|
+
splitVariantProps(e) {
|
|
740
|
+
return splitProps(e, P);
|
|
741
|
+
},
|
|
742
|
+
getVariantProps: M.getVariantProps
|
|
743
|
+
}), F = /* @__PURE__ */ createRecipe("likec4-compound-node", {
|
|
744
|
+
isTransparent: !1,
|
|
745
|
+
inverseColor: !1,
|
|
746
|
+
borderStyle: "none"
|
|
747
|
+
}, []), I = {
|
|
748
|
+
isTransparent: ["false", "true"],
|
|
749
|
+
inverseColor: ["true", "false"],
|
|
750
|
+
borderStyle: [
|
|
751
|
+
"solid",
|
|
752
|
+
"dashed",
|
|
753
|
+
"dotted",
|
|
754
|
+
"none"
|
|
755
|
+
]
|
|
756
|
+
}, L = Object.keys(I), be = /* @__PURE__ */ Object.assign(s(F.recipeFn), {
|
|
757
|
+
__recipe__: !0,
|
|
758
|
+
__name__: "compoundNode",
|
|
759
|
+
__getCompoundVariantCss__: F.__getCompoundVariantCss__,
|
|
760
|
+
raw: (e) => e,
|
|
761
|
+
variantKeys: L,
|
|
762
|
+
variantMap: I,
|
|
763
|
+
merge(e) {
|
|
764
|
+
return mergeRecipes(this, e);
|
|
765
|
+
},
|
|
766
|
+
splitVariantProps(e) {
|
|
767
|
+
return splitProps(e, L);
|
|
768
|
+
},
|
|
769
|
+
getVariantProps: F.getVariantProps
|
|
770
|
+
}), R = /* @__PURE__ */ createRecipe("likec4-edge-action-btn", {}, []), z = {}, B = Object.keys(z), xe = /* @__PURE__ */ Object.assign(s(R.recipeFn), {
|
|
771
|
+
__recipe__: !0,
|
|
772
|
+
__name__: "edgeActionBtn",
|
|
773
|
+
__getCompoundVariantCss__: R.__getCompoundVariantCss__,
|
|
774
|
+
raw: (e) => e,
|
|
775
|
+
variantKeys: B,
|
|
776
|
+
variantMap: z,
|
|
777
|
+
merge(e) {
|
|
778
|
+
return mergeRecipes(this, e);
|
|
779
|
+
},
|
|
780
|
+
splitVariantProps(e) {
|
|
781
|
+
return splitProps(e, B);
|
|
782
|
+
},
|
|
783
|
+
getVariantProps: R.getVariantProps
|
|
784
|
+
}), V = /* @__PURE__ */ createRecipe("likec4-edge-label", {
|
|
785
|
+
pointerEvents: "all",
|
|
786
|
+
isStepEdge: !1,
|
|
787
|
+
cursor: "default"
|
|
788
|
+
}, []), H = {
|
|
789
|
+
pointerEvents: ["none", "all"],
|
|
790
|
+
cursor: ["pointer", "default"],
|
|
791
|
+
isStepEdge: ["false", "true"]
|
|
792
|
+
}, U = Object.keys(H), Se = /* @__PURE__ */ Object.assign(s(V.recipeFn), {
|
|
793
|
+
__recipe__: !0,
|
|
794
|
+
__name__: "edgeLabel",
|
|
795
|
+
__getCompoundVariantCss__: V.__getCompoundVariantCss__,
|
|
796
|
+
raw: (e) => e,
|
|
797
|
+
variantKeys: U,
|
|
798
|
+
variantMap: H,
|
|
799
|
+
merge(e) {
|
|
800
|
+
return mergeRecipes(this, e);
|
|
801
|
+
},
|
|
802
|
+
splitVariantProps(e) {
|
|
803
|
+
return splitProps(e, U);
|
|
804
|
+
},
|
|
805
|
+
getVariantProps: V.getVariantProps
|
|
806
|
+
}), W = {}, Ce = [], we = /* @__PURE__ */ [
|
|
807
|
+
["path", "likec4-edge__path"],
|
|
808
|
+
["pathBg", "likec4-edge__pathBg"],
|
|
809
|
+
["markersCtx", "likec4-edge__markersCtx"],
|
|
810
|
+
["middlePoint", "likec4-edge__middlePoint"]
|
|
811
|
+
].map(([e, t]) => [e, createRecipe(t, W, getSlotCompoundVariant(Ce, e))]), Te = s((e = {}) => Object.fromEntries(we.map(([t, n]) => [t, n.recipeFn(e)]))), Ee = [], De = /* @__PURE__ */ Object.assign(Te, {
|
|
812
|
+
__recipe__: !1,
|
|
813
|
+
__name__: "edgePath",
|
|
814
|
+
raw: (e) => e,
|
|
815
|
+
classNameMap: {},
|
|
816
|
+
variantKeys: Ee,
|
|
817
|
+
variantMap: {},
|
|
818
|
+
splitVariantProps(e) {
|
|
819
|
+
return splitProps(e, Ee);
|
|
820
|
+
},
|
|
821
|
+
getVariantProps: /* @__PURE__ */ e((e) => ({
|
|
822
|
+
...W,
|
|
823
|
+
...compact(e)
|
|
824
|
+
}), "getVariantProps")
|
|
825
|
+
}), G = /* @__PURE__ */ createRecipe("likec4-element-node", {}, []), Oe = {}, ke = Object.keys(Oe), Ae = /* @__PURE__ */ Object.assign(s(G.recipeFn), {
|
|
826
|
+
__recipe__: !0,
|
|
827
|
+
__name__: "elementNode",
|
|
828
|
+
__getCompoundVariantCss__: G.__getCompoundVariantCss__,
|
|
829
|
+
raw: (e) => e,
|
|
830
|
+
variantKeys: ke,
|
|
831
|
+
variantMap: Oe,
|
|
832
|
+
merge(e) {
|
|
833
|
+
return mergeRecipes(this, e);
|
|
834
|
+
},
|
|
835
|
+
splitVariantProps(e) {
|
|
836
|
+
return splitProps(e, ke);
|
|
837
|
+
},
|
|
838
|
+
getVariantProps: G.getVariantProps
|
|
839
|
+
}), K = /* @__PURE__ */ createRecipe("likec4-element-node-data", {
|
|
840
|
+
iconPosition: "left",
|
|
841
|
+
withIconColor: !1
|
|
842
|
+
}, []), je = {
|
|
843
|
+
iconPosition: [
|
|
844
|
+
"left",
|
|
845
|
+
"right",
|
|
846
|
+
"top",
|
|
847
|
+
"bottom"
|
|
848
|
+
],
|
|
849
|
+
withIconColor: ["true", "false"]
|
|
850
|
+
}, Me = Object.keys(je), Ne = /* @__PURE__ */ Object.assign(s(K.recipeFn), {
|
|
851
|
+
__recipe__: !0,
|
|
852
|
+
__name__: "elementNodeData",
|
|
853
|
+
__getCompoundVariantCss__: K.__getCompoundVariantCss__,
|
|
854
|
+
raw: (e) => e,
|
|
855
|
+
variantKeys: Me,
|
|
856
|
+
variantMap: je,
|
|
857
|
+
merge(e) {
|
|
858
|
+
return mergeRecipes(this, e);
|
|
859
|
+
},
|
|
860
|
+
splitVariantProps(e) {
|
|
861
|
+
return splitProps(e, Me);
|
|
862
|
+
},
|
|
863
|
+
getVariantProps: K.getVariantProps
|
|
864
|
+
}), q = /* @__PURE__ */ createRecipe("likec4-element-shape", {
|
|
865
|
+
withBorder: !1,
|
|
866
|
+
withOutline: !1
|
|
867
|
+
}, [{
|
|
868
|
+
shapetype: "html",
|
|
869
|
+
withBorder: !0,
|
|
870
|
+
css: {
|
|
871
|
+
"&": {
|
|
872
|
+
borderStyle: "solid",
|
|
873
|
+
borderWidth: "3px",
|
|
874
|
+
borderColor: "var(--likec4-palette-stroke)",
|
|
875
|
+
"--likec4-outline-size": "6px"
|
|
876
|
+
},
|
|
877
|
+
"& .likec4-shape-outline": { borderRadius: "10px" }
|
|
878
|
+
}
|
|
879
|
+
}]), Pe = {
|
|
880
|
+
shapetype: ["html", "svg"],
|
|
881
|
+
withBorder: ["true", "false"],
|
|
882
|
+
withOutline: ["true", "false"]
|
|
883
|
+
}, Fe = Object.keys(Pe), Ie = /* @__PURE__ */ Object.assign(s(q.recipeFn), {
|
|
884
|
+
__recipe__: !0,
|
|
885
|
+
__name__: "elementShapeRecipe",
|
|
886
|
+
__getCompoundVariantCss__: q.__getCompoundVariantCss__,
|
|
887
|
+
raw: (e) => e,
|
|
888
|
+
variantKeys: Fe,
|
|
889
|
+
variantMap: Pe,
|
|
890
|
+
merge(e) {
|
|
891
|
+
return mergeRecipes(this, e);
|
|
892
|
+
},
|
|
893
|
+
splitVariantProps(e) {
|
|
894
|
+
return splitProps(e, Fe);
|
|
895
|
+
},
|
|
896
|
+
getVariantProps: q.getVariantProps
|
|
897
|
+
}), J = /* @__PURE__ */ createRecipe("likec4-tag", {}, []), Le = {}, Re = Object.keys(Le), ze = /* @__PURE__ */ Object.assign(s(J.recipeFn), {
|
|
898
|
+
__recipe__: !0,
|
|
899
|
+
__name__: "likec4tag",
|
|
900
|
+
__getCompoundVariantCss__: J.__getCompoundVariantCss__,
|
|
901
|
+
raw: (e) => e,
|
|
902
|
+
variantKeys: Re,
|
|
903
|
+
variantMap: Le,
|
|
904
|
+
merge(e) {
|
|
905
|
+
return mergeRecipes(this, e);
|
|
906
|
+
},
|
|
907
|
+
splitVariantProps(e) {
|
|
908
|
+
return splitProps(e, Re);
|
|
909
|
+
},
|
|
910
|
+
getVariantProps: J.getVariantProps
|
|
911
|
+
}), Y = /* @__PURE__ */ createRecipe("likec4-markdown-block", {
|
|
912
|
+
uselikec4palette: !1,
|
|
913
|
+
value: "markdown"
|
|
914
|
+
}, []), Be = {
|
|
915
|
+
uselikec4palette: ["true", "false"],
|
|
916
|
+
value: ["markdown", "plaintext"]
|
|
917
|
+
}, Ve = Object.keys(Be), He = /* @__PURE__ */ Object.assign(s(Y.recipeFn), {
|
|
918
|
+
__recipe__: !0,
|
|
919
|
+
__name__: "markdownBlock",
|
|
920
|
+
__getCompoundVariantCss__: Y.__getCompoundVariantCss__,
|
|
921
|
+
raw: (e) => e,
|
|
922
|
+
variantKeys: Ve,
|
|
923
|
+
variantMap: Be,
|
|
924
|
+
merge(e) {
|
|
925
|
+
return mergeRecipes(this, e);
|
|
926
|
+
},
|
|
927
|
+
splitVariantProps(e) {
|
|
928
|
+
return splitProps(e, Ve);
|
|
929
|
+
},
|
|
930
|
+
getVariantProps: Y.getVariantProps
|
|
931
|
+
}), X = /* @__PURE__ */ createRecipe("likec4-navigation-panel-icon", {
|
|
932
|
+
variant: "default",
|
|
933
|
+
type: "default"
|
|
934
|
+
}, [{
|
|
935
|
+
type: "warning",
|
|
936
|
+
variant: "filled",
|
|
937
|
+
css: { backgroundColor: {
|
|
938
|
+
base: "likec4.panel.action.warning.bg",
|
|
939
|
+
_hover: "likec4.panel.action.warning.bg.hover"
|
|
940
|
+
} }
|
|
941
|
+
}]), Ue = {
|
|
942
|
+
variant: ["default", "filled"],
|
|
943
|
+
type: ["default", "warning"]
|
|
944
|
+
}, We = Object.keys(Ue), Ge = /* @__PURE__ */ Object.assign(s(X.recipeFn), {
|
|
945
|
+
__recipe__: !0,
|
|
946
|
+
__name__: "navigationPanelActionIcon",
|
|
947
|
+
__getCompoundVariantCss__: X.__getCompoundVariantCss__,
|
|
948
|
+
raw: (e) => e,
|
|
949
|
+
variantKeys: We,
|
|
950
|
+
variantMap: Ue,
|
|
951
|
+
merge(e) {
|
|
952
|
+
return mergeRecipes(this, e);
|
|
953
|
+
},
|
|
954
|
+
splitVariantProps(e) {
|
|
955
|
+
return splitProps(e, We);
|
|
956
|
+
},
|
|
957
|
+
getVariantProps: X.getVariantProps
|
|
958
|
+
}), Z = /* @__PURE__ */ createRecipe("likec4-node-notes", { opened: !1 }, []), Ke = { opened: ["false", "true"] }, qe = Object.keys(Ke), Je = /* @__PURE__ */ Object.assign(s(Z.recipeFn), {
|
|
959
|
+
__recipe__: !0,
|
|
960
|
+
__name__: "nodeNotes",
|
|
961
|
+
__getCompoundVariantCss__: Z.__getCompoundVariantCss__,
|
|
962
|
+
raw: (e) => e,
|
|
963
|
+
variantKeys: qe,
|
|
964
|
+
variantMap: Ke,
|
|
965
|
+
merge(e) {
|
|
966
|
+
return mergeRecipes(this, e);
|
|
967
|
+
},
|
|
968
|
+
splitVariantProps(e) {
|
|
969
|
+
return splitProps(e, qe);
|
|
970
|
+
},
|
|
971
|
+
getVariantProps: Z.getVariantProps
|
|
972
|
+
}), Q = /* @__PURE__ */ createRecipe("likec4-overlay", {
|
|
973
|
+
fullscreen: !1,
|
|
974
|
+
withBackdrop: !0
|
|
975
|
+
}, []), $ = {
|
|
976
|
+
fullscreen: ["false", "true"],
|
|
977
|
+
withBackdrop: ["false", "true"]
|
|
978
|
+
}, Ye = Object.keys($), Xe = /* @__PURE__ */ Object.assign(s(Q.recipeFn), {
|
|
979
|
+
__recipe__: !0,
|
|
980
|
+
__name__: "overlay",
|
|
981
|
+
__getCompoundVariantCss__: Q.__getCompoundVariantCss__,
|
|
982
|
+
raw: (e) => e,
|
|
983
|
+
variantKeys: Ye,
|
|
984
|
+
variantMap: $,
|
|
985
|
+
merge(e) {
|
|
986
|
+
return mergeRecipes(this, e);
|
|
987
|
+
},
|
|
988
|
+
splitVariantProps(e) {
|
|
989
|
+
return splitProps(e, Ye);
|
|
990
|
+
},
|
|
991
|
+
getVariantProps: Q.getVariantProps
|
|
992
|
+
}), Ze = { truncateLabel: !1 }, Qe = [], $e = /* @__PURE__ */ [
|
|
993
|
+
["root", "likec4-navlink__root"],
|
|
994
|
+
["body", "likec4-navlink__body"],
|
|
995
|
+
["section", "likec4-navlink__section"],
|
|
996
|
+
["label", "likec4-navlink__label"],
|
|
997
|
+
["description", "likec4-navlink__description"]
|
|
998
|
+
].map(([e, t]) => [e, createRecipe(t, Ze, getSlotCompoundVariant(Qe, e))]), et = s((e = {}) => Object.fromEntries($e.map(([t, n]) => [t, n.recipeFn(e)]))), tt = ["truncateLabel"], nt = /* @__PURE__ */ Object.assign(et, {
|
|
999
|
+
__recipe__: !1,
|
|
1000
|
+
__name__: "navigationLink",
|
|
1001
|
+
raw: (e) => e,
|
|
1002
|
+
classNameMap: {},
|
|
1003
|
+
variantKeys: tt,
|
|
1004
|
+
variantMap: { truncateLabel: ["true", "false"] },
|
|
1005
|
+
splitVariantProps(e) {
|
|
1006
|
+
return splitProps(e, tt);
|
|
1007
|
+
},
|
|
1008
|
+
getVariantProps: /* @__PURE__ */ e((e) => ({
|
|
1009
|
+
...Ze,
|
|
1010
|
+
...compact(e)
|
|
1011
|
+
}), "getVariantProps")
|
|
1012
|
+
}), rt = {
|
|
1013
|
+
size: "md",
|
|
1014
|
+
panelPosition: "left"
|
|
1015
|
+
}, it = [], at = /* @__PURE__ */ [
|
|
1016
|
+
["root", "likec4-navigation-panel__root"],
|
|
1017
|
+
["body", "likec4-navigation-panel__body"],
|
|
1018
|
+
["logo", "likec4-navigation-panel__logo"],
|
|
1019
|
+
["label", "likec4-navigation-panel__label"],
|
|
1020
|
+
["dropdown", "likec4-navigation-panel__dropdown"]
|
|
1021
|
+
].map(([e, t]) => [e, createRecipe(t, rt, getSlotCompoundVariant(it, e))]), ot = s((e = {}) => Object.fromEntries(at.map(([t, n]) => [t, n.recipeFn(e)]))), st = ["size", "panelPosition"], getVariantProps = (e) => ({
|
|
1022
|
+
...rt,
|
|
1023
|
+
...compact(e)
|
|
1024
|
+
}), ct = /* @__PURE__ */ Object.assign(ot, {
|
|
1025
|
+
__recipe__: !1,
|
|
1026
|
+
__name__: "navigationPanel",
|
|
1027
|
+
raw: (e) => e,
|
|
1028
|
+
classNameMap: {},
|
|
1029
|
+
variantKeys: st,
|
|
1030
|
+
variantMap: {
|
|
1031
|
+
size: ["md", "lg"],
|
|
1032
|
+
panelPosition: ["left", "right"]
|
|
1033
|
+
},
|
|
1034
|
+
splitVariantProps(e) {
|
|
1035
|
+
return splitProps(e, st);
|
|
1036
|
+
},
|
|
1037
|
+
getVariantProps
|
|
1038
|
+
});
|
|
1039
|
+
//#endregion
|
|
1040
|
+
export { sva as A, he as C, createStyleContext as D, pe as E, cx as M, css as N, x as O, hstack as S, me as T, _e as _, Ge as a, container as b, Ie as c, De as d, Se as f, ve as g, ye as h, Je as i, cva as j, b as k, Ne as l, be as m, nt as n, He as o, xe as p, Xe as r, ze as s, ct as t, Ae as u, txt as v, vstack as w, ge as x, bleed as y };
|