@moises.ai/design-system 1.0.30 → 2.0.1
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/icons.js +6893 -428
- package/dist/index.js +687 -676
- package/dist/primitives.js +1 -0
- package/package.json +15 -3
- package/dist/react-icons.esm-DrgObs82.js +0 -6780
- /package/{Readme.md → README.md} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as Be } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
import B from "react";
|
|
4
|
-
import { R as
|
|
5
|
-
|
|
6
|
-
function Wn(t) {
|
|
4
|
+
import { R as Hr, S as R, P as Zr, a as Fr, A as Wr, C as qr, b as Kr, O as Ur, c as Xr, D as Qr, d as Yr, T as Jr, e as es, f as ts, g as as, F as rs, I as ss, h as ge, i as ns, j as ut, k as os, l as $e, m as mt, n as dt, u as ls, o as cs, p as pt, q as ft, r as is, s as je, t as us, v as ht, V as Ct, w as _e, x as De, y as ms, z as ds, B as gt, E as vt, G as ps, H as fs, J as hs, L as Cs, K as gs, M as vs, N as Ns, Q as ys, U as bs, W as $s, X as Es, Y as ws, Z as Rs, _ as xs, $ as Ss, a0 as Ts, a1 as Is, a2 as Ms, a3 as ks, a4 as zs, a5 as Ps, a6 as Nt, a7 as yt, a8 as Ls, a9 as Bs, aa as _s, ab as Ds, ac as Vs, ad as Gs, ae as js, af as Os, ag as As, ah as Hs, ai as Zs, aj as Fs, ak as Ws, al as qs, am as Ks, an as Us, ao as Xs, ap as Qs, aq as Ys, ar as Js, as as en, at as tn, au as an, av as rn, aw as sn, ax as bt, ay as $t, az as Et, aA as wt, aB as nn, aC as on, aD as ln, aE as cn, aF as un, aG as mn, aH as dn, aI as pn, aJ as fn, aK as hn, aL as Cn, aM as gn, aN as vn, aO as Nn, aP as yn, aQ as bn, aR as $n, aS as En, aT as wn, aU as Rn, aV as xn, aW as Sn, aX as Tn, aY as In, aZ as Mn, a_ as kn, a$ as zn, b0 as Pn, b1 as Ln, b2 as Bn, b3 as _n, b4 as Dn, b5 as Vn, b6 as Gn, b7 as jn, b8 as On } from "./index-BIjOAs1j.js";
|
|
5
|
+
function An(t) {
|
|
7
6
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
8
7
|
}
|
|
9
|
-
const
|
|
10
|
-
var
|
|
8
|
+
const Hn = Hr;
|
|
9
|
+
var Rt = { exports: {} };
|
|
11
10
|
/*!
|
|
12
11
|
Copyright (c) 2018 Jed Watson.
|
|
13
12
|
Licensed under the MIT License (MIT), see
|
|
@@ -42,31 +41,31 @@ var wt = { exports: {} };
|
|
|
42
41
|
}
|
|
43
42
|
t.exports ? (r.default = r, t.exports = r) : window.classNames = r;
|
|
44
43
|
})();
|
|
45
|
-
})(
|
|
46
|
-
var
|
|
47
|
-
const i = /* @__PURE__ */
|
|
48
|
-
function
|
|
44
|
+
})(Rt);
|
|
45
|
+
var Zn = Rt.exports;
|
|
46
|
+
const i = /* @__PURE__ */ An(Zn), N = { asChild: { type: "boolean" } }, S = { width: { type: "string", className: "rt-r-w", customProperties: ["--width"], responsive: !0 }, minWidth: { type: "string", className: "rt-r-min-w", customProperties: ["--min-width"], responsive: !0 }, maxWidth: { type: "string", className: "rt-r-max-w", customProperties: ["--max-width"], responsive: !0 } }, ne = { height: { type: "string", className: "rt-r-h", customProperties: ["--height"], responsive: !0 }, minHeight: { type: "string", className: "rt-r-min-h", customProperties: ["--min-height"], responsive: !0 }, maxHeight: { type: "string", className: "rt-r-max-h", customProperties: ["--max-height"], responsive: !0 } }, Fn = ["1", "2", "3", "4"], xt = { ...N, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: Fn, default: "3", responsive: !0 }, width: S.width, minWidth: S.minWidth, maxWidth: { ...S.maxWidth, default: "600px" }, ...ne }, Oe = ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"], Wn = ["auto", "gray", "mauve", "slate", "sage", "olive", "sand"], $ = { color: { type: "enum", values: Oe, default: void 0 } }, oe = { color: { type: "enum", values: Oe, default: "" } }, w = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, qn = ["normal", "start", "end", "both"], Ee = { trim: { type: "enum", className: "rt-r-lt", values: qn, responsive: !0 } }, Kn = ["left", "center", "right"], St = { align: { type: "enum", className: "rt-r-ta", values: Kn, responsive: !0 } }, Un = ["wrap", "nowrap", "pretty", "balance"], ee = { wrap: { type: "enum", className: "rt-r-tw", values: Un, responsive: !0 } }, te = { truncate: { type: "boolean", className: "rt-truncate" } }, Xn = ["light", "regular", "medium", "bold"], we = { weight: { type: "enum", className: "rt-r-weight", values: Xn, responsive: !0 } }, Qn = ["h1", "h2", "h3", "h4", "h5", "h6"], Yn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Jn = { as: { type: "enum", values: Qn, default: "h1" }, ...N, size: { type: "enum", className: "rt-r-size", values: Yn, default: "6", responsive: !0 }, ...we, ...St, ...Ee, ...te, ...ee, ...$, ...w }, Ae = ["initial", "xs", "sm", "md", "lg", "xl"];
|
|
47
|
+
function Tt(t, a) {
|
|
49
48
|
return Object.prototype.hasOwnProperty.call(t, a);
|
|
50
49
|
}
|
|
51
|
-
function
|
|
50
|
+
function pe(t) {
|
|
52
51
|
return typeof t == "object" && Object.keys(t).some((a) => Ae.includes(a));
|
|
53
52
|
}
|
|
54
|
-
function
|
|
55
|
-
const s =
|
|
53
|
+
function q({ className: t, customProperties: a, ...r }) {
|
|
54
|
+
const s = he({ allowArbitraryValues: !0, className: t, ...r }), n = eo({ customProperties: a, ...r });
|
|
56
55
|
return [s, n];
|
|
57
56
|
}
|
|
58
|
-
function
|
|
57
|
+
function he({ allowArbitraryValues: t, value: a, className: r, propValues: s, parseValue: n = (o) => o }) {
|
|
59
58
|
const o = [];
|
|
60
59
|
if (a) {
|
|
61
|
-
if (typeof a == "string" && s.includes(a)) return
|
|
62
|
-
if (
|
|
60
|
+
if (typeof a == "string" && s.includes(a)) return ot(r, a, n);
|
|
61
|
+
if (pe(a)) {
|
|
63
62
|
const l = a;
|
|
64
63
|
for (const c in l) {
|
|
65
|
-
if (!
|
|
64
|
+
if (!Tt(l, c) || !Ae.includes(c)) continue;
|
|
66
65
|
const u = l[c];
|
|
67
66
|
if (u !== void 0) {
|
|
68
67
|
if (s.includes(u)) {
|
|
69
|
-
const p =
|
|
68
|
+
const p = ot(r, u, n), f = c === "initial" ? p : `${c}:${p}`;
|
|
70
69
|
o.push(f);
|
|
71
70
|
} else if (t) {
|
|
72
71
|
const p = c === "initial" ? r : `${c}:${r}`;
|
|
@@ -79,17 +78,17 @@ function Ce({ allowArbitraryValues: t, value: a, className: r, propValues: s, pa
|
|
|
79
78
|
if (t) return r;
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
|
-
function
|
|
81
|
+
function ot(t, a, r) {
|
|
83
82
|
const s = t ? "-" : "", n = r(a), o = n == null ? void 0 : n.startsWith("-"), l = o ? "-" : "", c = o ? n == null ? void 0 : n.substring(1) : n;
|
|
84
83
|
return `${l}${t}${s}${c}`;
|
|
85
84
|
}
|
|
86
|
-
function
|
|
85
|
+
function eo({ customProperties: t, value: a, propValues: r, parseValue: s = (n) => n }) {
|
|
87
86
|
let n = {};
|
|
88
87
|
if (!(!a || typeof a == "string" && r.includes(a))) {
|
|
89
|
-
if (typeof a == "string" && (n = Object.fromEntries(t.map((o) => [o, a]))),
|
|
88
|
+
if (typeof a == "string" && (n = Object.fromEntries(t.map((o) => [o, a]))), pe(a)) {
|
|
90
89
|
const o = a;
|
|
91
90
|
for (const l in o) {
|
|
92
|
-
if (!
|
|
91
|
+
if (!Tt(o, l) || !Ae.includes(l)) continue;
|
|
93
92
|
const c = o[l];
|
|
94
93
|
if (!r.includes(c)) for (const u of t) n = { [l === "initial" ? u : `${u}-${l}`]: c, ...n };
|
|
95
94
|
}
|
|
@@ -101,32 +100,32 @@ function ro({ customProperties: t, value: a, propValues: r, parseValue: s = (n)
|
|
|
101
100
|
return n;
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
|
-
function
|
|
103
|
+
function Ce(...t) {
|
|
105
104
|
let a = {};
|
|
106
105
|
for (const r of t) r && (a = { ...a, ...r });
|
|
107
106
|
return Object.keys(a).length ? a : void 0;
|
|
108
107
|
}
|
|
109
|
-
function
|
|
108
|
+
function to(...t) {
|
|
110
109
|
return Object.assign({}, ...t);
|
|
111
110
|
}
|
|
112
111
|
function m(t, ...a) {
|
|
113
112
|
let r, s;
|
|
114
|
-
const n = { ...t }, o =
|
|
113
|
+
const n = { ...t }, o = to(...a);
|
|
115
114
|
for (const l in o) {
|
|
116
115
|
let c = n[l];
|
|
117
116
|
const u = o[l];
|
|
118
|
-
if (u.default !== void 0 && c === void 0 && (c = u.default), u.type === "enum" && ![u.default, ...u.values].includes(c) && !
|
|
117
|
+
if (u.default !== void 0 && c === void 0 && (c = u.default), u.type === "enum" && ![u.default, ...u.values].includes(c) && !pe(c) && (c = u.default), n[l] = c, "className" in u && u.className) {
|
|
119
118
|
delete n[l];
|
|
120
119
|
const p = "responsive" in u;
|
|
121
|
-
if (!c ||
|
|
122
|
-
if (
|
|
123
|
-
const f =
|
|
120
|
+
if (!c || pe(c) && !p) continue;
|
|
121
|
+
if (pe(c) && (u.default !== void 0 && c.initial === void 0 && (c.initial = u.default), u.type === "enum" && ([u.default, ...u.values].includes(c.initial) || (c.initial = u.default))), u.type === "enum") {
|
|
122
|
+
const f = he({ allowArbitraryValues: !1, value: c, className: u.className, propValues: u.values, parseValue: u.parseValue });
|
|
124
123
|
r = i(r, f);
|
|
125
124
|
continue;
|
|
126
125
|
}
|
|
127
126
|
if (u.type === "string" || u.type === "enum | string") {
|
|
128
|
-
const f = u.type === "string" ? [] : u.values, [C, v] =
|
|
129
|
-
s =
|
|
127
|
+
const f = u.type === "string" ? [] : u.values, [C, v] = q({ className: u.className, customProperties: u.customProperties, propValues: f, parseValue: u.parseValue, value: c });
|
|
128
|
+
s = Ce(s, v), r = i(r, C);
|
|
130
129
|
continue;
|
|
131
130
|
}
|
|
132
131
|
if (u.type === "boolean" && c) {
|
|
@@ -135,19 +134,19 @@ function m(t, ...a) {
|
|
|
135
134
|
}
|
|
136
135
|
}
|
|
137
136
|
}
|
|
138
|
-
return n.className = i(r, t.className), n.style =
|
|
137
|
+
return n.className = i(r, t.className), n.style = Ce(s, t.style), n;
|
|
139
138
|
}
|
|
140
|
-
const
|
|
141
|
-
const { children: r, className: s, asChild: n, as: o = "h1", color: l, ...c } = m(t,
|
|
139
|
+
const U = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], h = { m: { type: "enum | string", values: U, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: U, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: U, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: U, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: U, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: U, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: U, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, Re = e.forwardRef((t, a) => {
|
|
140
|
+
const { children: r, className: s, asChild: n, as: o = "h1", color: l, ...c } = m(t, Jn, h);
|
|
142
141
|
return e.createElement(R, { "data-accent-color": l, ...c, ref: a, className: i("rt-Heading", s) }, n ? r : e.createElement(o, null, r));
|
|
143
142
|
});
|
|
144
|
-
|
|
145
|
-
const
|
|
146
|
-
const { children: r, className: s, asChild: n, as: o = "span", color: l, ...c } = m(t,
|
|
143
|
+
Re.displayName = "Heading";
|
|
144
|
+
const ao = ["span", "div", "label", "p"], ro = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], so = { as: { type: "enum", values: ao, default: "span" }, ...N, size: { type: "enum", className: "rt-r-size", values: ro, responsive: !0 }, ...we, ...St, ...Ee, ...te, ...ee, ...$, ...w }, E = e.forwardRef((t, a) => {
|
|
145
|
+
const { children: r, className: s, asChild: n, as: o = "span", color: l, ...c } = m(t, so, h);
|
|
147
146
|
return e.createElement(R, { "data-accent-color": l, ...c, ref: a, className: i("rt-Text", s) }, n ? r : e.createElement(o, null, r));
|
|
148
147
|
});
|
|
149
|
-
|
|
150
|
-
function
|
|
148
|
+
E.displayName = "Text";
|
|
149
|
+
function It(t) {
|
|
151
150
|
switch (t) {
|
|
152
151
|
case "tomato":
|
|
153
152
|
case "red":
|
|
@@ -183,123 +182,123 @@ function Tt(t) {
|
|
|
183
182
|
return "gray";
|
|
184
183
|
}
|
|
185
184
|
}
|
|
186
|
-
const Mt = ["none", "small", "medium", "large", "full"],
|
|
187
|
-
},
|
|
188
|
-
function
|
|
189
|
-
const t = e.useContext(
|
|
185
|
+
const Mt = ["none", "small", "medium", "large", "full"], D = { radius: { type: "enum", values: Mt, default: void 0 } }, no = ["solid", "translucent"], oo = ["90%", "95%", "100%", "105%", "110%"], y = { hasBackground: { default: !0 }, appearance: { default: "inherit" }, accentColor: { values: Oe, default: "indigo" }, grayColor: { values: Wn, default: "auto" }, panelBackground: { values: no, default: "translucent" }, radius: { values: Mt, default: "medium" }, scaling: { values: oo, default: "100%" } }, re = () => {
|
|
186
|
+
}, be = e.createContext(void 0);
|
|
187
|
+
function xe() {
|
|
188
|
+
const t = e.useContext(be);
|
|
190
189
|
if (t === void 0) throw new Error("`useThemeContext` must be used within a `Theme`");
|
|
191
190
|
return t;
|
|
192
191
|
}
|
|
193
|
-
const I = e.forwardRef((t, a) => e.useContext(
|
|
192
|
+
const I = e.forwardRef((t, a) => e.useContext(be) === void 0 ? e.createElement(Zr, { delayDuration: 200 }, e.createElement(Fr, { dir: "ltr" }, e.createElement(kt, { ...t, ref: a }))) : e.createElement(He, { ...t, ref: a }));
|
|
194
193
|
I.displayName = "Theme";
|
|
195
|
-
const
|
|
196
|
-
const { appearance: r =
|
|
194
|
+
const kt = e.forwardRef((t, a) => {
|
|
195
|
+
const { appearance: r = y.appearance.default, accentColor: s = y.accentColor.default, grayColor: n = y.grayColor.default, panelBackground: o = y.panelBackground.default, radius: l = y.radius.default, scaling: c = y.scaling.default, hasBackground: u = y.hasBackground.default, ...p } = t, [f, C] = e.useState(r);
|
|
197
196
|
e.useEffect(() => C(r), [r]);
|
|
198
|
-
const [v,
|
|
199
|
-
e.useEffect(() =>
|
|
197
|
+
const [v, b] = e.useState(s);
|
|
198
|
+
e.useEffect(() => b(s), [s]);
|
|
200
199
|
const [T, x] = e.useState(n);
|
|
201
200
|
e.useEffect(() => x(n), [n]);
|
|
202
|
-
const [
|
|
203
|
-
e.useEffect(() =>
|
|
204
|
-
const [
|
|
205
|
-
e.useEffect(() =>
|
|
206
|
-
const [P,
|
|
207
|
-
return e.useEffect(() =>
|
|
208
|
-
});
|
|
209
|
-
|
|
201
|
+
const [M, k] = e.useState(o);
|
|
202
|
+
e.useEffect(() => k(o), [o]);
|
|
203
|
+
const [Z, _] = e.useState(l);
|
|
204
|
+
e.useEffect(() => _(l), [l]);
|
|
205
|
+
const [P, G] = e.useState(c);
|
|
206
|
+
return e.useEffect(() => G(c), [c]), e.createElement(He, { ...p, ref: a, isRoot: !0, hasBackground: u, appearance: f, accentColor: v, grayColor: T, panelBackground: M, radius: Z, scaling: P, onAppearanceChange: C, onAccentColorChange: b, onGrayColorChange: x, onPanelBackgroundChange: k, onRadiusChange: _, onScalingChange: G });
|
|
207
|
+
});
|
|
208
|
+
kt.displayName = "ThemeRoot";
|
|
210
209
|
const He = e.forwardRef((t, a) => {
|
|
211
|
-
const r = e.useContext(
|
|
212
|
-
return e.createElement(
|
|
210
|
+
const r = e.useContext(be), { asChild: s, isRoot: n, hasBackground: o, appearance: l = (r == null ? void 0 : r.appearance) ?? y.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? y.accentColor.default, grayColor: u = (r == null ? void 0 : r.resolvedGrayColor) ?? y.grayColor.default, panelBackground: p = (r == null ? void 0 : r.panelBackground) ?? y.panelBackground.default, radius: f = (r == null ? void 0 : r.radius) ?? y.radius.default, scaling: C = (r == null ? void 0 : r.scaling) ?? y.scaling.default, onAppearanceChange: v = re, onAccentColorChange: b = re, onGrayColorChange: T = re, onPanelBackgroundChange: x = re, onRadiusChange: M = re, onScalingChange: k = re, ...Z } = t, _ = s ? R : "div", P = u === "auto" ? It(c) : u, G = t.appearance === "light" || t.appearance === "dark", le = o === void 0 ? n || G : o;
|
|
211
|
+
return e.createElement(be.Provider, { value: e.useMemo(() => ({ appearance: l, accentColor: c, grayColor: u, resolvedGrayColor: P, panelBackground: p, radius: f, scaling: C, onAppearanceChange: v, onAccentColorChange: b, onGrayColorChange: T, onPanelBackgroundChange: x, onRadiusChange: M, onScalingChange: k }), [l, c, u, P, p, f, C, v, b, T, x, M, k]) }, e.createElement(_, { "data-is-root-theme": n ? "true" : "false", "data-accent-color": c, "data-gray-color": P, "data-has-background": le ? "true" : "false", "data-panel-background": p, "data-radius": f, "data-scaling": C, ref: a, ...Z, className: i("radix-themes", { light: l === "light", dark: l === "dark" }, Z.className) }));
|
|
213
212
|
});
|
|
214
213
|
He.displayName = "ThemeImpl";
|
|
215
|
-
const
|
|
214
|
+
const V = (t) => {
|
|
216
215
|
if (!e.isValidElement(t)) throw Error(`Expected a single React Element child, but got: ${e.Children.toArray(t).map((a) => typeof a == "object" && "type" in a && typeof a.type == "string" ? a.type : typeof a).join(", ")}`);
|
|
217
216
|
return t;
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
const
|
|
223
|
-
const { align: s, ...n } =
|
|
224
|
-
return e.createElement(
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
const
|
|
228
|
-
|
|
229
|
-
const
|
|
230
|
-
|
|
231
|
-
const Dt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(
|
|
217
|
+
}, zt = (t) => e.createElement(Yr, { ...t });
|
|
218
|
+
zt.displayName = "AlertDialog.Root";
|
|
219
|
+
const Pt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(es, { ...a, ref: r, asChild: !0 }, V(t)));
|
|
220
|
+
Pt.displayName = "AlertDialog.Trigger";
|
|
221
|
+
const Lt = e.forwardRef(({ align: t, ...a }, r) => {
|
|
222
|
+
const { align: s, ...n } = xt, { className: o } = m({ align: t }, { align: s }), { className: l, forceMount: c, container: u, ...p } = m(a, n);
|
|
223
|
+
return e.createElement(Kr, { container: u, forceMount: c }, e.createElement(I, { asChild: !0 }, e.createElement(Ur, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, e.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, e.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${o}` }, e.createElement(Xr, { ...p, ref: r, className: i("rt-BaseDialogContent", "rt-AlertDialogContent", l) }))))));
|
|
224
|
+
});
|
|
225
|
+
Lt.displayName = "AlertDialog.Content";
|
|
226
|
+
const Bt = e.forwardRef((t, a) => e.createElement(Jr, { asChild: !0 }, e.createElement(Re, { size: "5", mb: "3", trim: "start", ...t, asChild: !1, ref: a })));
|
|
227
|
+
Bt.displayName = "AlertDialog.Title";
|
|
228
|
+
const _t = e.forwardRef((t, a) => e.createElement(Qr, { asChild: !0 }, e.createElement(E, { as: "p", size: "3", ...t, asChild: !1, ref: a })));
|
|
229
|
+
_t.displayName = "AlertDialog.Description";
|
|
230
|
+
const Dt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(Wr, { ...a, ref: r, asChild: !0 }, V(t)));
|
|
232
231
|
Dt.displayName = "AlertDialog.Action";
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
const
|
|
232
|
+
const Vt = e.forwardRef(({ children: t, ...a }, r) => e.createElement(qr, { ...a, ref: r, asChild: !0 }, V(t)));
|
|
233
|
+
Vt.displayName = "AlertDialog.Cancel";
|
|
234
|
+
const $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
236
235
|
__proto__: null,
|
|
237
236
|
Action: Dt,
|
|
238
|
-
Cancel:
|
|
239
|
-
Content:
|
|
240
|
-
Description:
|
|
241
|
-
Root:
|
|
242
|
-
Title:
|
|
243
|
-
Trigger:
|
|
244
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
245
|
-
function
|
|
237
|
+
Cancel: Vt,
|
|
238
|
+
Content: Lt,
|
|
239
|
+
Description: _t,
|
|
240
|
+
Root: zt,
|
|
241
|
+
Title: Bt,
|
|
242
|
+
Trigger: Pt
|
|
243
|
+
}, Symbol.toStringTag, { value: "Module" })), Ei = ts, lo = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], co = ["solid", "soft"], io = { ...N, size: { type: "enum", className: "rt-r-size", values: lo, default: "3", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: co, default: "soft" }, ...oe, ...w, ...D, fallback: { type: "ReactNode", required: !0 } };
|
|
244
|
+
function Se(t, a) {
|
|
246
245
|
const { asChild: r, children: s } = t;
|
|
247
246
|
if (!r) return typeof a == "function" ? a(s) : a;
|
|
248
247
|
const n = e.Children.only(s);
|
|
249
248
|
return e.cloneElement(n, { children: typeof a == "function" ? a(n.props.children) : a });
|
|
250
249
|
}
|
|
251
|
-
const
|
|
252
|
-
const { asChild: r, children: s, className: n, style: o, color: l, radius: c, ...u } = m(t,
|
|
253
|
-
return e.createElement(
|
|
250
|
+
const uo = e.forwardRef((t, a) => {
|
|
251
|
+
const { asChild: r, children: s, className: n, style: o, color: l, radius: c, ...u } = m(t, io, h);
|
|
252
|
+
return e.createElement(as, { "data-accent-color": l, "data-radius": c, className: i("rt-reset", "rt-AvatarRoot", n), style: o, asChild: r }, Se({ asChild: r, children: s }, e.createElement(Gt, { ref: a, ...u })));
|
|
254
253
|
});
|
|
255
|
-
|
|
254
|
+
uo.displayName = "Avatar";
|
|
256
255
|
const Gt = e.forwardRef(({ fallback: t, ...a }, r) => {
|
|
257
256
|
const [s, n] = e.useState("idle");
|
|
258
|
-
return e.createElement(e.Fragment, null, s === "idle" || s === "loading" ? e.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? e.createElement(
|
|
257
|
+
return e.createElement(e.Fragment, null, s === "idle" || s === "loading" ? e.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? e.createElement(rs, { className: i("rt-AvatarFallback", { "rt-one-letter": typeof t == "string" && t.length === 1, "rt-two-letters": typeof t == "string" && t.length === 2 }), delayMs: 0 }, t) : null, e.createElement(ss, { ref: r, className: "rt-AvatarImage", ...a, onLoadingStatusChange: (o) => {
|
|
259
258
|
var l;
|
|
260
259
|
(l = a.onLoadingStatusChange) == null || l.call(a, o), n(o);
|
|
261
260
|
} }));
|
|
262
261
|
});
|
|
263
262
|
Gt.displayName = "AvatarImpl";
|
|
264
|
-
const
|
|
265
|
-
const { asChild: r, className: s, color: n, radius: o, ...l } = m(t,
|
|
263
|
+
const mo = ["1", "2", "3"], po = ["solid", "soft", "surface", "outline"], fo = { ...N, size: { type: "enum", className: "rt-r-size", values: mo, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: po, default: "soft" }, ...oe, ...w, ...D }, ho = e.forwardRef((t, a) => {
|
|
264
|
+
const { asChild: r, className: s, color: n, radius: o, ...l } = m(t, fo, h), c = r ? R : "span";
|
|
266
265
|
return e.createElement(c, { "data-accent-color": n, "data-radius": o, ...l, ref: a, className: i("rt-reset", "rt-Badge", s) });
|
|
267
266
|
});
|
|
268
|
-
|
|
269
|
-
const
|
|
267
|
+
ho.displayName = "Badge";
|
|
268
|
+
const Co = e.forwardRef((t, a) => {
|
|
270
269
|
const { asChild: r, children: s, className: n, ...o } = t, l = r ? R : "blockquote";
|
|
271
|
-
return e.createElement(
|
|
270
|
+
return e.createElement(E, { asChild: !0, ...o, ref: a, className: i("rt-Blockquote", n) }, e.createElement(l, null, s));
|
|
272
271
|
});
|
|
273
|
-
|
|
274
|
-
const Ze = R,
|
|
275
|
-
const { className: r, asChild: s, as: n = "div", ...o } = m(t,
|
|
272
|
+
Co.displayName = "Blockquote";
|
|
273
|
+
const Ze = R, wi = ge, go = ["div", "span"], vo = ["none", "inline", "inline-block", "block", "contents"], No = { as: { type: "enum", values: go, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: vo, responsive: !0 } }, X = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], fe = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: X, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: X, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: X, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: X, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: X, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: X, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: X, responsive: !0 } }, ke = ["visible", "hidden", "clip", "scroll", "auto"], yo = ["static", "relative", "absolute", "fixed", "sticky"], ce = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], bo = ["0", "1"], $o = ["0", "1"], ve = { ...fe, ...S, ...ne, position: { type: "enum", className: "rt-r-position", values: yo, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: ce, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: ce, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: ce, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: ce, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: ce, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: ke, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: ke, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: ke, responsive: !0 }, flexBasis: { type: "string", className: "rt-r-fb", customProperties: ["--flex-basis"], responsive: !0 }, flexShrink: { type: "enum | string", className: "rt-r-fs", customProperties: ["--flex-shrink"], values: bo, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: $o, responsive: !0 }, gridArea: { type: "string", className: "rt-r-ga", customProperties: ["--grid-area"], responsive: !0 }, gridColumn: { type: "string", className: "rt-r-gc", customProperties: ["--grid-column"], responsive: !0 }, gridColumnStart: { type: "string", className: "rt-r-gcs", customProperties: ["--grid-column-start"], responsive: !0 }, gridColumnEnd: { type: "string", className: "rt-r-gce", customProperties: ["--grid-column-end"], responsive: !0 }, gridRow: { type: "string", className: "rt-r-gr", customProperties: ["--grid-row"], responsive: !0 }, gridRowStart: { type: "string", className: "rt-r-grs", customProperties: ["--grid-row-start"], responsive: !0 }, gridRowEnd: { type: "string", className: "rt-r-gre", customProperties: ["--grid-row-end"], responsive: !0 } }, ue = e.forwardRef((t, a) => {
|
|
274
|
+
const { className: r, asChild: s, as: n = "div", ...o } = m(t, No, ve, h);
|
|
276
275
|
return e.createElement(s ? Ze : n, { ...o, ref: a, className: i("rt-Box", r) });
|
|
277
276
|
});
|
|
278
|
-
|
|
279
|
-
const
|
|
280
|
-
function
|
|
277
|
+
ue.displayName = "Box";
|
|
278
|
+
const Eo = ["1", "2", "3", "4"], wo = ["classic", "solid", "soft", "surface", "outline", "ghost"], lt = { ...N, size: { type: "enum", className: "rt-r-size", values: Eo, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: wo, default: "solid" }, ...oe, ...w, ...D, loading: { type: "boolean", className: "rt-loading", default: !1 } }, ze = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], jt = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: ze, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: ze, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: ze, responsive: !0 } }, Ro = ["div", "span"], xo = ["none", "inline-flex", "flex"], So = ["row", "column", "row-reverse", "column-reverse"], To = ["start", "center", "end", "baseline", "stretch"], Io = ["start", "center", "end", "between"], Mo = ["nowrap", "wrap", "wrap-reverse"], Ot = { as: { type: "enum", values: Ro, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: xo, responsive: !0 }, direction: { type: "enum", className: "rt-r-fd", values: So, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: To, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Io, parseValue: ko, responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: Mo, responsive: !0 }, ...jt };
|
|
279
|
+
function ko(t) {
|
|
281
280
|
return t === "between" ? "space-between" : t;
|
|
282
281
|
}
|
|
283
|
-
const
|
|
284
|
-
const { className: r, asChild: s, as: n = "div", ...o } = m(t, Ot,
|
|
282
|
+
const z = e.forwardRef((t, a) => {
|
|
283
|
+
const { className: r, asChild: s, as: n = "div", ...o } = m(t, Ot, ve, h);
|
|
285
284
|
return e.createElement(s ? Ze : n, { ...o, ref: a, className: i("rt-Flex", r) });
|
|
286
285
|
});
|
|
287
|
-
|
|
288
|
-
const
|
|
289
|
-
const { className: r, children: s, loading: n, ...o } = m(t,
|
|
286
|
+
z.displayName = "Flex";
|
|
287
|
+
const zo = ["1", "2", "3"], Po = { size: { type: "enum", className: "rt-r-size", values: zo, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, At = e.forwardRef((t, a) => {
|
|
288
|
+
const { className: r, children: s, loading: n, ...o } = m(t, Po, h);
|
|
290
289
|
if (!n) return s;
|
|
291
290
|
const l = e.createElement("span", { ...o, ref: a, className: i("rt-Spinner", r) }, e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }));
|
|
292
|
-
return s === void 0 ? l : e.createElement(
|
|
291
|
+
return s === void 0 ? l : e.createElement(z, { asChild: !0, position: "relative", align: "center", justify: "center" }, e.createElement("span", null, e.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, s), e.createElement(z, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, e.createElement("span", null, l))));
|
|
293
292
|
});
|
|
294
293
|
At.displayName = "Spinner";
|
|
295
|
-
const
|
|
294
|
+
const Lo = ns;
|
|
296
295
|
function Ht(t, a) {
|
|
297
296
|
if (t !== void 0) return typeof t == "string" ? a(t) : Object.fromEntries(Object.entries(t).map(([r, s]) => [r, a(s)]));
|
|
298
297
|
}
|
|
299
|
-
function
|
|
298
|
+
function Bo(t) {
|
|
300
299
|
return t === "3" ? "3" : "2";
|
|
301
300
|
}
|
|
302
|
-
function
|
|
301
|
+
function _o(t) {
|
|
303
302
|
switch (t) {
|
|
304
303
|
case "1":
|
|
305
304
|
return "1";
|
|
@@ -310,595 +309,595 @@ function Vo(t) {
|
|
|
310
309
|
return "3";
|
|
311
310
|
}
|
|
312
311
|
}
|
|
313
|
-
const
|
|
314
|
-
const { size: r =
|
|
315
|
-
return e.createElement(f, { "data-disabled": u || void 0, "data-accent-color": l, "data-radius": c, ...p, ref: a, className: i("rt-reset", "rt-BaseButton", s), disabled: u }, t.loading ? e.createElement(e.Fragment, null, e.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, n), e.createElement(
|
|
312
|
+
const Fe = e.forwardRef((t, a) => {
|
|
313
|
+
const { size: r = lt.size.default } = t, { className: s, children: n, asChild: o, color: l, radius: c, disabled: u = t.loading, ...p } = m(t, lt, h), f = o ? R : "button";
|
|
314
|
+
return e.createElement(f, { "data-disabled": u || void 0, "data-accent-color": l, "data-radius": c, ...p, ref: a, className: i("rt-reset", "rt-BaseButton", s), disabled: u }, t.loading ? e.createElement(e.Fragment, null, e.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, n), e.createElement(Lo, null, n), e.createElement(z, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, e.createElement("span", null, e.createElement(At, { size: Ht(r, _o) })))) : n);
|
|
316
315
|
});
|
|
317
|
-
|
|
318
|
-
const Zt = e.forwardRef(({ className: t, ...a }, r) => e.createElement(
|
|
316
|
+
Fe.displayName = "BaseButton";
|
|
317
|
+
const Zt = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Fe, { ...a, ref: r, className: i("rt-Button", t) }));
|
|
319
318
|
Zt.displayName = "Button";
|
|
320
|
-
const
|
|
321
|
-
const { size: r =
|
|
322
|
-
return e.createElement(u, { "data-accent-color": l, ...c, className: i("rt-CalloutRoot", o), ref: a }, e.createElement(
|
|
319
|
+
const Do = ["1", "2", "3"], Vo = ["soft", "surface", "outline"], ct = { ...N, size: { type: "enum", className: "rt-r-size", values: Do, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Vo, default: "soft" }, ...oe, ...w }, Ft = e.createContext({}), Wt = e.forwardRef((t, a) => {
|
|
320
|
+
const { size: r = ct.size.default } = t, { asChild: s, children: n, className: o, color: l, ...c } = m(t, ct, h), u = s ? R : "div";
|
|
321
|
+
return e.createElement(u, { "data-accent-color": l, ...c, className: i("rt-CalloutRoot", o), ref: a }, e.createElement(Ft.Provider, { value: e.useMemo(() => ({ size: r }), [r]) }, n));
|
|
323
322
|
});
|
|
324
|
-
|
|
323
|
+
Wt.displayName = "Callout.Root";
|
|
325
324
|
const qt = e.forwardRef(({ className: t, ...a }, r) => e.createElement("div", { ...a, className: i("rt-CalloutIcon", t), ref: r }));
|
|
326
325
|
qt.displayName = "Callout.Icon";
|
|
327
326
|
const Kt = e.forwardRef(({ className: t, ...a }, r) => {
|
|
328
|
-
const { size: s } = e.useContext(
|
|
329
|
-
return e.createElement(
|
|
327
|
+
const { size: s } = e.useContext(Ft);
|
|
328
|
+
return e.createElement(E, { as: "p", size: Ht(s, Bo), ...a, asChild: !1, ref: r, className: i("rt-CalloutText", t) });
|
|
330
329
|
});
|
|
331
330
|
Kt.displayName = "Callout.Text";
|
|
332
|
-
const
|
|
331
|
+
const Ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
333
332
|
__proto__: null,
|
|
334
333
|
Icon: qt,
|
|
335
|
-
Root:
|
|
334
|
+
Root: Wt,
|
|
336
335
|
Text: Kt
|
|
337
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
338
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
336
|
+
}, Symbol.toStringTag, { value: "Module" })), Go = ["1", "2", "3", "4", "5"], jo = ["surface", "classic", "ghost"], Oo = { ...N, size: { type: "enum", className: "rt-r-size", values: Go, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: jo, default: "surface" } }, Ao = e.forwardRef((t, a) => {
|
|
337
|
+
const { asChild: r, className: s, ...n } = m(t, Oo, h), o = r ? R : "div";
|
|
339
338
|
return e.createElement(o, { ref: a, ...n, className: i("rt-reset", "rt-BaseCard", "rt-Card", s) });
|
|
340
339
|
});
|
|
341
|
-
|
|
342
|
-
var
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
const { useDirection:
|
|
346
|
-
const { __scopeCheckboxGroup: r, name: s, defaultValue: n, value: o, required: l = !1, disabled: c = !1, orientation: u, dir: p, loop: f = !0, onValueChange: C, ...v } = t,
|
|
347
|
-
return e.createElement(Fo, { scope: r, name: s, required: l, disabled: c, value: x, onItemCheck:
|
|
340
|
+
Ao.displayName = "Card";
|
|
341
|
+
var We = ut;
|
|
342
|
+
We.dispatchDiscreteCustomEvent = os;
|
|
343
|
+
We.Root = ut;
|
|
344
|
+
const { useDirection: Ho } = is, qe = "CheckboxGroup", [Zo, Te] = $e(qe, [mt, dt]), Ut = mt(), Xt = dt(), [Fo, Wo] = Zo(qe), Qt = e.forwardRef((t, a) => {
|
|
345
|
+
const { __scopeCheckboxGroup: r, name: s, defaultValue: n, value: o, required: l = !1, disabled: c = !1, orientation: u, dir: p, loop: f = !0, onValueChange: C, ...v } = t, b = Ut(r), T = Ho(p), [x = [], M] = je({ prop: o, defaultProp: n, onChange: C }), k = e.useCallback((_) => M((P = []) => [...P, _]), [M]), Z = e.useCallback((_) => M((P = []) => P.filter((G) => G !== _)), [M]);
|
|
346
|
+
return e.createElement(Fo, { scope: r, name: s, required: l, disabled: c, value: x, onItemCheck: k, onItemUncheck: Z }, e.createElement(us, { asChild: !0, ...b, orientation: u, dir: T, loop: f }, e.createElement(We.div, { role: "group", "data-disabled": c ? "" : void 0, dir: T, ...v, ref: a })));
|
|
348
347
|
});
|
|
349
|
-
|
|
350
|
-
const
|
|
348
|
+
Qt.displayName = qe;
|
|
349
|
+
const Yt = "CheckboxGroupItem", Jt = e.forwardRef((t, a) => {
|
|
351
350
|
var v;
|
|
352
|
-
const { __scopeCheckboxGroup: r, disabled: s, ...n } = t, o =
|
|
353
|
-
return e.createElement(
|
|
354
|
-
|
|
351
|
+
const { __scopeCheckboxGroup: r, disabled: s, ...n } = t, o = Wo(Yt, r), l = o.disabled || s, c = Ut(r), u = Xt(r), p = e.useRef(null), f = ls(a, p), C = (v = o.value) == null ? void 0 : v.includes(n.value);
|
|
352
|
+
return e.createElement(cs, { asChild: !0, ...c, focusable: !l, active: C }, e.createElement(pt, { name: o.name, disabled: l, required: o.required, checked: C, ...u, ...n, ref: f, onCheckedChange: (b) => {
|
|
353
|
+
b ? o.onItemCheck(t.value) : o.onItemUncheck(t.value);
|
|
355
354
|
} }));
|
|
356
355
|
});
|
|
357
|
-
|
|
358
|
-
const
|
|
359
|
-
const { __scopeCheckboxGroup: r, ...s } = t, n =
|
|
360
|
-
return e.createElement(
|
|
356
|
+
Jt.displayName = Yt;
|
|
357
|
+
const qo = "CheckboxGroupIndicator", ea = e.forwardRef((t, a) => {
|
|
358
|
+
const { __scopeCheckboxGroup: r, ...s } = t, n = Xt(r);
|
|
359
|
+
return e.createElement(ft, { ...n, ...s, ref: a });
|
|
361
360
|
});
|
|
362
|
-
|
|
363
|
-
const
|
|
364
|
-
function
|
|
365
|
-
return
|
|
361
|
+
ea.displayName = qo;
|
|
362
|
+
const ta = Qt, aa = Jt, ra = ea, Ko = ["div", "span"], Uo = ["none", "inline-grid", "grid"], Xo = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Qo = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Yo = ["row", "column", "dense", "row-dense", "column-dense"], Jo = ["start", "center", "end", "baseline", "stretch"], el = ["start", "center", "end", "between"], se = { as: { type: "enum", values: Ko, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: Uo, responsive: !0 }, areas: { type: "string", className: "rt-r-gta", customProperties: ["--grid-template-areas"], responsive: !0 }, columns: { type: "enum | string", className: "rt-r-gtc", customProperties: ["--grid-template-columns"], values: Xo, parseValue: it, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: Qo, parseValue: it, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: Yo, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Jo, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: el, parseValue: tl, responsive: !0 }, ...jt };
|
|
363
|
+
function it(t) {
|
|
364
|
+
return se.columns.values.includes(t) ? t : t != null && t.match(/^\d+$/) ? `repeat(${t}, minmax(0, 1fr))` : t;
|
|
366
365
|
}
|
|
367
|
-
function
|
|
366
|
+
function tl(t) {
|
|
368
367
|
return t === "between" ? "space-between" : t;
|
|
369
368
|
}
|
|
370
|
-
const
|
|
371
|
-
const { className: r, asChild: s, as: n = "div", ...o } = m(t,
|
|
369
|
+
const al = ["1", "2", "3"], rl = ["surface", "classic"], sl = { ...N, size: { type: "enum", className: "rt-r-size", values: al, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: rl, default: "surface" }, ...$, ...w, columns: { ...se.columns, default: "repeat(auto-fit, minmax(200px, 1fr))" }, gap: { ...se.gap, default: "4" } }, nl = ["1", "2", "3"], ol = ["classic", "surface", "soft"], Ke = { size: { type: "enum", className: "rt-r-size", values: nl, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: ol, default: "surface" }, ...$, ...w }, A = e.forwardRef((t, a) => {
|
|
370
|
+
const { className: r, asChild: s, as: n = "div", ...o } = m(t, se, ve, h);
|
|
372
371
|
return e.createElement(s ? Ze : n, { ...o, ref: a, className: i("rt-Grid", r) });
|
|
373
372
|
});
|
|
374
|
-
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
const
|
|
378
|
-
|
|
373
|
+
A.displayName = "Grid";
|
|
374
|
+
const sa = B.forwardRef((t, a) => B.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: a }, B.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z" })));
|
|
375
|
+
sa.displayName = "ThickDividerHorizontalIcon";
|
|
376
|
+
const H = B.forwardRef((t, a) => B.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: a }, B.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z" })));
|
|
377
|
+
H.displayName = "ThickCheckIcon";
|
|
379
378
|
const Ue = B.forwardRef((t, a) => B.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: a }, B.createElement("path", { d: "M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z" })));
|
|
380
379
|
Ue.displayName = "ChevronDownIcon";
|
|
381
380
|
const Xe = B.forwardRef((t, a) => B.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...t, ref: a }, B.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z" })));
|
|
382
381
|
Xe.displayName = "ThickChevronRightIcon";
|
|
383
|
-
const
|
|
384
|
-
const { __scopeCheckboxCards: r, className: s, color: n, ...o } = m(t,
|
|
385
|
-
return e.createElement(
|
|
382
|
+
const na = "CheckboxCards", [ll] = $e(na, [Te]), oa = Te(), [cl, il] = ll(na), la = e.forwardRef((t, a) => {
|
|
383
|
+
const { __scopeCheckboxCards: r, className: s, color: n, ...o } = m(t, sl, h), l = oa(r);
|
|
384
|
+
return e.createElement(cl, { scope: r, size: t.size, highContrast: t.highContrast }, e.createElement(A, { asChild: !0 }, e.createElement(ta, { ...l, "data-accent-color": n, ...o, ref: a, className: i("rt-CheckboxCardsRoot", s) })));
|
|
386
385
|
});
|
|
387
|
-
|
|
388
|
-
const
|
|
389
|
-
const l =
|
|
390
|
-
return e.createElement("label", { className: i("rt-BaseCard", "rt-CheckboxCardsItem", r), style: s }, a, e.createElement(
|
|
386
|
+
la.displayName = "CheckboxCards.Root";
|
|
387
|
+
const ca = e.forwardRef(({ __scopeCheckboxCards: t, children: a, className: r, style: s, ...n }, o) => {
|
|
388
|
+
const l = il("CheckboxCardsItem", t), c = oa(t), { className: u } = m({ size: l == null ? void 0 : l.size, variant: "surface", highContrast: l == null ? void 0 : l.highContrast }, Ke);
|
|
389
|
+
return e.createElement("label", { className: i("rt-BaseCard", "rt-CheckboxCardsItem", r), style: s }, a, e.createElement(aa, { ...c, ...n, ref: o, className: i("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxCardCheckbox", u) }, e.createElement(ra, { ...c, asChild: !0, className: "rt-BaseCheckboxIndicator" }, e.createElement(H, null))));
|
|
391
390
|
});
|
|
392
|
-
|
|
393
|
-
const
|
|
391
|
+
ca.displayName = "CheckboxCards.Item";
|
|
392
|
+
const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
394
393
|
__proto__: null,
|
|
395
|
-
Item:
|
|
396
|
-
Root:
|
|
397
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
398
|
-
const { __scopeCheckboxGroup: l, className: c, ...u } = m(n, h), p =
|
|
399
|
-
return e.createElement(
|
|
400
|
-
});
|
|
401
|
-
|
|
402
|
-
const
|
|
403
|
-
const { __scopeCheckboxGroup: r, children: s, className: n, style: o, ...l } = t, { size: c } =
|
|
404
|
-
return s ? e.createElement(
|
|
405
|
-
});
|
|
406
|
-
|
|
394
|
+
Item: ca,
|
|
395
|
+
Root: la
|
|
396
|
+
}, Symbol.toStringTag, { value: "Module" })), me = { ...N, ...Ke }, ia = "CheckboxGroup", [ul] = $e(ia, [Te]), ua = Te(), [ml, ma] = ul(ia), da = e.forwardRef(({ color: t = me.color.default, highContrast: a = me.highContrast.default, size: r = me.size.default, variant: s = me.variant.default, ...n }, o) => {
|
|
397
|
+
const { __scopeCheckboxGroup: l, className: c, ...u } = m(n, h), p = ua(l);
|
|
398
|
+
return e.createElement(ml, { scope: l, color: t, size: r, highContrast: a, variant: s }, e.createElement(ta, { ...p, ...u, ref: o, className: i("rt-CheckboxGroupRoot", c) }));
|
|
399
|
+
});
|
|
400
|
+
da.displayName = "CheckboxGroup.Root";
|
|
401
|
+
const pa = e.forwardRef((t, a) => {
|
|
402
|
+
const { __scopeCheckboxGroup: r, children: s, className: n, style: o, ...l } = t, { size: c } = ma("CheckboxGroupItem", r);
|
|
403
|
+
return s ? e.createElement(E, { as: "label", size: c, className: i("rt-CheckboxGroupItem", n), style: o }, e.createElement(Ve, { __scopeCheckboxGroup: r, ...l, ref: a }), s && e.createElement("span", { className: "rt-CheckboxGroupItemInner" }, s)) : e.createElement(Ve, { __scopeCheckboxGroup: r, ...l, ref: a, className: n, style: o });
|
|
404
|
+
});
|
|
405
|
+
pa.displayName = "CheckboxGroup.Item";
|
|
407
406
|
const Ve = e.forwardRef(({ __scopeCheckboxGroup: t, ...a }, r) => {
|
|
408
|
-
const s =
|
|
409
|
-
return e.createElement(
|
|
407
|
+
const s = ma("CheckboxGroupItemCheckbox", t), n = ua(t), { color: o, className: l } = m({ ...a, ...s }, me, h);
|
|
408
|
+
return e.createElement(aa, { ...n, "data-accent-color": o, ...a, ref: r, className: i("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxGroupItemCheckbox", l) }, e.createElement(ra, { ...n, asChild: !0, className: "rt-BaseCheckboxIndicator" }, e.createElement(H, null)));
|
|
410
409
|
});
|
|
411
410
|
Ve.displayName = "CheckboxGroup.ItemCheckbox";
|
|
412
|
-
const
|
|
411
|
+
const Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
413
412
|
__proto__: null,
|
|
414
|
-
Item:
|
|
415
|
-
Root:
|
|
416
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
413
|
+
Item: pa,
|
|
414
|
+
Root: da
|
|
415
|
+
}, Symbol.toStringTag, { value: "Module" })), dl = e.forwardRef((t, a) => {
|
|
417
416
|
const { className: r, color: s, checked: n, defaultChecked: o, onCheckedChange: l, ...c } = m(t, Ke, h), [u, p] = je({ prop: n, defaultProp: o, onChange: l });
|
|
418
|
-
return e.createElement(
|
|
417
|
+
return e.createElement(pt, { "data-accent-color": s, ...c, defaultChecked: o, checked: u, onCheckedChange: p, asChild: !1, ref: a, className: i("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxRoot", r) }, e.createElement(ft, { asChild: !0, className: "rt-BaseCheckboxIndicator rt-CheckboxIndicator" }, e.createElement(u === "indeterminate" ? sa : H, null)));
|
|
419
418
|
});
|
|
420
|
-
|
|
421
|
-
const
|
|
422
|
-
const { asChild: r, className: s, color: n, ...o } = m(t,
|
|
419
|
+
dl.displayName = "Checkbox";
|
|
420
|
+
const pl = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], fl = ["solid", "soft", "outline", "ghost"], hl = { ...N, size: { type: "enum", className: "rt-r-size", values: pl, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: fl, default: "soft" }, ...we, ...oe, ...w, ...te, ...ee }, Cl = e.forwardRef((t, a) => {
|
|
421
|
+
const { asChild: r, className: s, color: n, ...o } = m(t, hl, h), l = t.variant === "ghost" ? n || void 0 : n, c = r ? R : "code";
|
|
423
422
|
return e.createElement(c, { "data-accent-color": l, ...o, ref: a, className: i("rt-reset", "rt-Code", s) });
|
|
424
423
|
});
|
|
425
|
-
|
|
426
|
-
const
|
|
427
|
-
function
|
|
424
|
+
Cl.displayName = "Code";
|
|
425
|
+
const gl = ["1", "2", "3", "4"], vl = ["none", "initial"], Nl = ["left", "center", "right"], yl = { ...N, size: { type: "enum", className: "rt-r-size", values: gl, default: "4", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: vl, parseValue: bl, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Nl, parseValue: $l, responsive: !0 } };
|
|
426
|
+
function bl(t) {
|
|
428
427
|
return t === "initial" ? "flex" : t;
|
|
429
428
|
}
|
|
430
|
-
function
|
|
429
|
+
function $l(t) {
|
|
431
430
|
return t === "left" ? "start" : t === "right" ? "end" : t;
|
|
432
431
|
}
|
|
433
|
-
const
|
|
434
|
-
const { asChild: u, children: p, className: f, ...C } = m(l,
|
|
435
|
-
return e.createElement(T, { ...C, ref: c, className: i("rt-Container", f) },
|
|
432
|
+
const El = e.forwardRef(({ width: t, minWidth: a, maxWidth: r, height: s, minHeight: n, maxHeight: o, ...l }, c) => {
|
|
433
|
+
const { asChild: u, children: p, className: f, ...C } = m(l, yl, ve, h), { className: v, style: b } = m({ width: t, minWidth: a, maxWidth: r, height: s, minHeight: n, maxHeight: o }, S, ne), T = u ? R : "div";
|
|
434
|
+
return e.createElement(T, { ...C, ref: c, className: i("rt-Container", f) }, Se({ asChild: u, children: p }, (x) => e.createElement("div", { className: i("rt-ContainerInner", v), style: b }, x)));
|
|
436
435
|
});
|
|
437
|
-
|
|
438
|
-
const
|
|
439
|
-
function
|
|
436
|
+
El.displayName = "Container";
|
|
437
|
+
const wl = ["1", "2", "3"], ie = { ...N, size: { values: wl, default: "1" }, ...D, scrollbars: { default: "both" } };
|
|
438
|
+
function Rl(t) {
|
|
440
439
|
const { m: a, mx: r, my: s, mt: n, mr: o, mb: l, ml: c, ...u } = t;
|
|
441
440
|
return { m: a, mx: r, my: s, mt: n, mr: o, mb: l, ml: c, rest: u };
|
|
442
441
|
}
|
|
443
|
-
const
|
|
444
|
-
function
|
|
445
|
-
const [a, r] =
|
|
446
|
-
return [i(a, s, o, c, p, C,
|
|
442
|
+
const Q = h.m.values;
|
|
443
|
+
function xl(t) {
|
|
444
|
+
const [a, r] = q({ className: "rt-r-m", customProperties: ["--margin"], propValues: Q, value: t.m }), [s, n] = q({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: Q, value: t.mx }), [o, l] = q({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: Q, value: t.my }), [c, u] = q({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: Q, value: t.mt }), [p, f] = q({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: Q, value: t.mr }), [C, v] = q({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: Q, value: t.mb }), [b, T] = q({ className: "rt-r-ml", customProperties: ["--margin-left"], propValues: Q, value: t.ml });
|
|
445
|
+
return [i(a, s, o, c, p, C, b), Ce(r, n, l, u, f, v, T)];
|
|
447
446
|
}
|
|
448
|
-
const
|
|
449
|
-
const { rest: r, ...s } =
|
|
450
|
-
return e.createElement(
|
|
451
|
-
});
|
|
452
|
-
|
|
453
|
-
const
|
|
454
|
-
|
|
455
|
-
const
|
|
456
|
-
|
|
457
|
-
const
|
|
458
|
-
const r =
|
|
459
|
-
return e.createElement(
|
|
460
|
-
});
|
|
461
|
-
|
|
462
|
-
const
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
const { className: r, children: s, color: n =
|
|
466
|
-
return e.createElement(
|
|
467
|
-
});
|
|
468
|
-
|
|
469
|
-
const
|
|
470
|
-
|
|
471
|
-
const
|
|
472
|
-
|
|
447
|
+
const ae = e.forwardRef((t, a) => {
|
|
448
|
+
const { rest: r, ...s } = Rl(t), [n, o] = xl(s), { asChild: l, children: c, className: u, style: p, type: f, scrollHideDelay: C = f !== "scroll" ? 0 : void 0, dir: v, size: b = ie.size.default, radius: T = ie.radius.default, scrollbars: x = ie.scrollbars.default, ...M } = r;
|
|
449
|
+
return e.createElement(ht, { type: f, scrollHideDelay: C, className: i("rt-ScrollAreaRoot", n, u), style: Ce(o, p), asChild: l }, Se({ asChild: l, children: c }, (k) => e.createElement(e.Fragment, null, e.createElement(Ct, { ...M, ref: a, className: "rt-ScrollAreaViewport" }, k), e.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), x !== "vertical" ? e.createElement(_e, { "data-radius": T, orientation: "horizontal", className: i("rt-ScrollAreaScrollbar", he({ className: "rt-r-size", value: b, propValues: ie.size.values })) }, e.createElement(De, { className: "rt-ScrollAreaThumb" })) : null, x !== "horizontal" ? e.createElement(_e, { "data-radius": T, orientation: "vertical", className: i("rt-ScrollAreaScrollbar", he({ className: "rt-r-size", value: b, propValues: ie.size.values })) }, e.createElement(De, { className: "rt-ScrollAreaThumb" })) : null, x === "both" ? e.createElement(ms, { className: "rt-ScrollAreaCorner" }) : null)));
|
|
450
|
+
});
|
|
451
|
+
ae.displayName = "ScrollArea";
|
|
452
|
+
const Sl = ["1", "2"], Tl = ["solid", "soft"], j = { size: { type: "enum", className: "rt-r-size", values: Sl, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Tl, default: "solid" }, ...$, ...w }, fa = { ...N, ...$ }, ha = { ...$ }, Ca = { ...$ }, ga = (t) => e.createElement(Ns, { ...t });
|
|
453
|
+
ga.displayName = "ContextMenu.Root";
|
|
454
|
+
const va = e.forwardRef(({ children: t, ...a }, r) => e.createElement(ws, { ...a, ref: r, asChild: !0 }, V(t)));
|
|
455
|
+
va.displayName = "ContextMenu.Trigger";
|
|
456
|
+
const Na = e.createContext({}), ya = e.forwardRef((t, a) => {
|
|
457
|
+
const r = xe(), { size: s = j.size.default, variant: n = j.variant.default, highContrast: o = j.highContrast.default } = t, { className: l, children: c, color: u, container: p, forceMount: f, ...C } = m(t, j), v = u || r.accentColor;
|
|
458
|
+
return e.createElement(vt, { container: p, forceMount: f }, e.createElement(I, { asChild: !0 }, e.createElement(ps, { "data-accent-color": v, alignOffset: -Number(s) * 4, collisionPadding: 10, ...C, asChild: !1, ref: a, className: i("rt-PopperContent", "rt-BaseMenuContent", "rt-ContextMenuContent", l) }, e.createElement(ae, { type: "auto" }, e.createElement("div", { className: i("rt-BaseMenuViewport", "rt-ContextMenuViewport") }, e.createElement(Na.Provider, { value: e.useMemo(() => ({ size: s, variant: n, color: v, highContrast: o }), [s, n, v, o]) }, c))))));
|
|
459
|
+
});
|
|
460
|
+
ya.displayName = "ContextMenu.Content";
|
|
461
|
+
const ba = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Cs, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuLabel", "rt-ContextMenuLabel", t) }));
|
|
462
|
+
ba.displayName = "ContextMenu.Label";
|
|
463
|
+
const $a = e.forwardRef((t, a) => {
|
|
464
|
+
const { className: r, children: s, color: n = fa.color.default, shortcut: o, ...l } = t;
|
|
465
|
+
return e.createElement(hs, { "data-accent-color": n, ...l, ref: a, className: i("rt-reset", "rt-BaseMenuItem", "rt-ContextMenuItem", r) }, e.createElement(ge, null, s), o && e.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, o));
|
|
466
|
+
});
|
|
467
|
+
$a.displayName = "ContextMenu.Item";
|
|
468
|
+
const Ea = e.forwardRef(({ className: t, ...a }, r) => e.createElement(fs, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuGroup", "rt-ContextMenuGroup", t) }));
|
|
469
|
+
Ea.displayName = "ContextMenu.Group";
|
|
470
|
+
const wa = e.forwardRef(({ className: t, ...a }, r) => e.createElement(gs, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuRadioGroup", "rt-ContextMenuRadioGroup", t) }));
|
|
471
|
+
wa.displayName = "ContextMenu.RadioGroup";
|
|
472
|
+
const Ra = e.forwardRef((t, a) => {
|
|
473
|
+
const { children: r, className: s, color: n = Ca.color.default, ...o } = t;
|
|
474
|
+
return e.createElement(vs, { ...o, asChild: !1, ref: a, "data-accent-color": n, className: i("rt-BaseMenuItem", "rt-BaseMenuRadioItem", "rt-ContextMenuItem", "rt-ContextMenuRadioItem", s) }, e.createElement(ge, null, r), e.createElement(gt, { className: "rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator" }, e.createElement(H, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })));
|
|
475
|
+
});
|
|
476
|
+
Ra.displayName = "ContextMenu.RadioItem";
|
|
473
477
|
const xa = e.forwardRef((t, a) => {
|
|
474
|
-
const { children: r, className: s,
|
|
475
|
-
return e.createElement(
|
|
476
|
-
});
|
|
477
|
-
xa.displayName = "ContextMenu.
|
|
478
|
-
const Sa = e.
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
});
|
|
482
|
-
Sa.displayName = "ContextMenu.CheckboxItem";
|
|
483
|
-
const Ta = (t) => e.createElement(Es, { ...t });
|
|
484
|
-
Ta.displayName = "ContextMenu.Sub";
|
|
485
|
-
const Ma = e.forwardRef((t, a) => {
|
|
478
|
+
const { children: r, className: s, shortcut: n, color: o = ha.color.default, ...l } = t;
|
|
479
|
+
return e.createElement(ds, { ...l, asChild: !1, ref: a, "data-accent-color": o, className: i("rt-BaseMenuItem", "rt-BaseMenuCheckboxItem", "rt-ContextMenuItem", "rt-ContextMenuCheckboxItem", s) }, e.createElement(ge, null, r), e.createElement(gt, { className: "rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator" }, e.createElement(H, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })), n && e.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, n));
|
|
480
|
+
});
|
|
481
|
+
xa.displayName = "ContextMenu.CheckboxItem";
|
|
482
|
+
const Sa = (t) => e.createElement(bs, { ...t });
|
|
483
|
+
Sa.displayName = "ContextMenu.Sub";
|
|
484
|
+
const Ta = e.forwardRef((t, a) => {
|
|
486
485
|
const { className: r, children: s, ...n } = t;
|
|
487
|
-
return e.createElement(
|
|
486
|
+
return e.createElement(Es, { ...n, asChild: !1, ref: a, className: i("rt-BaseMenuItem", "rt-BaseMenuSubTrigger", "rt-ContextMenuItem", "rt-ContextMenuSubTrigger", r) }, s, e.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, e.createElement(Xe, { className: "rt-BaseMenuSubTriggerIcon rt-ContextMenuSubTriggerIcon" })));
|
|
488
487
|
});
|
|
489
|
-
|
|
488
|
+
Ta.displayName = "ContextMenu.SubTrigger";
|
|
490
489
|
const Ia = e.forwardRef((t, a) => {
|
|
491
|
-
const { size: r, variant: s, color: n, highContrast: o } = e.useContext(
|
|
492
|
-
return e.createElement(
|
|
490
|
+
const { size: r, variant: s, color: n, highContrast: o } = e.useContext(Na), { className: l, children: c, container: u, forceMount: p, ...f } = m({ size: r, variant: s, color: n, highContrast: o, ...t }, j);
|
|
491
|
+
return e.createElement(vt, { container: u, forceMount: p }, e.createElement(I, { asChild: !0 }, e.createElement($s, { "data-accent-color": n, alignOffset: -Number(r) * 4, sideOffset: 1, collisionPadding: 10, ...f, asChild: !1, ref: a, className: i("rt-PopperContent", "rt-BaseMenuContent", "rt-BaseMenuSubContent", "rt-ContextMenuContent", "rt-ContextMenuSubContent", l) }, e.createElement(ae, { type: "auto" }, e.createElement("div", { className: i("rt-BaseMenuViewport", "rt-ContextMenuViewport") }, c)))));
|
|
493
492
|
});
|
|
494
493
|
Ia.displayName = "ContextMenu.SubContent";
|
|
495
|
-
const
|
|
496
|
-
|
|
497
|
-
const
|
|
494
|
+
const Ma = e.forwardRef(({ className: t, ...a }, r) => e.createElement(ys, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuSeparator", "rt-ContextMenuSeparator", t) }));
|
|
495
|
+
Ma.displayName = "ContextMenu.Separator";
|
|
496
|
+
const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
498
497
|
__proto__: null,
|
|
499
|
-
CheckboxItem:
|
|
500
|
-
Content:
|
|
501
|
-
Group:
|
|
502
|
-
Item:
|
|
503
|
-
Label:
|
|
504
|
-
RadioGroup:
|
|
505
|
-
RadioItem:
|
|
506
|
-
Root:
|
|
507
|
-
Separator:
|
|
508
|
-
Sub:
|
|
498
|
+
CheckboxItem: xa,
|
|
499
|
+
Content: ya,
|
|
500
|
+
Group: Ea,
|
|
501
|
+
Item: $a,
|
|
502
|
+
Label: ba,
|
|
503
|
+
RadioGroup: wa,
|
|
504
|
+
RadioItem: Ra,
|
|
505
|
+
Root: ga,
|
|
506
|
+
Separator: Ma,
|
|
507
|
+
Sub: Sa,
|
|
509
508
|
SubContent: Ia,
|
|
510
|
-
SubTrigger:
|
|
511
|
-
Trigger:
|
|
512
|
-
}, Symbol.toStringTag, { value: "Module" })), Il = ["start", "center", "end", "baseline", "stretch"],
|
|
513
|
-
const { className: r, ...s } = m(t,
|
|
514
|
-
return e.createElement(
|
|
515
|
-
});
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
const { className: r, ...s } = m(t,
|
|
509
|
+
SubTrigger: Ta,
|
|
510
|
+
Trigger: va
|
|
511
|
+
}, Symbol.toStringTag, { value: "Module" })), Il = ["start", "center", "end", "baseline", "stretch"], Ml = ["horizontal", "vertical"], kl = ["1", "2", "3"], zl = { orientation: { type: "enum", className: "rt-r-orientation", values: Ml, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: kl, default: "2", responsive: !0 }, trim: { ...Ee.trim, className: "rt-r-trim" } }, Pl = { align: { type: "enum", className: "rt-r-ai", values: Il, responsive: !0 } }, Ll = { ...S, ...$, ...w }, ka = e.forwardRef((t, a) => {
|
|
512
|
+
const { className: r, ...s } = m(t, zl, h);
|
|
513
|
+
return e.createElement(E, { asChild: !0 }, e.createElement("dl", { ...s, ref: a, className: i("rt-DataListRoot", r) }));
|
|
514
|
+
});
|
|
515
|
+
ka.displayName = "DataList.Root";
|
|
516
|
+
const za = e.forwardRef((t, a) => {
|
|
517
|
+
const { className: r, ...s } = m(t, Pl);
|
|
519
518
|
return e.createElement("div", { ...s, ref: a, className: i("rt-DataListItem", r) });
|
|
520
519
|
});
|
|
521
|
-
|
|
522
|
-
const
|
|
523
|
-
const { className: r, color: s, ...n } = m(t,
|
|
520
|
+
za.displayName = "DataList.Item";
|
|
521
|
+
const Pa = e.forwardRef((t, a) => {
|
|
522
|
+
const { className: r, color: s, ...n } = m(t, Ll);
|
|
524
523
|
return e.createElement("dt", { ...n, "data-accent-color": s, ref: a, className: i("rt-DataListLabel", r) });
|
|
525
524
|
});
|
|
526
|
-
|
|
527
|
-
const
|
|
528
|
-
|
|
529
|
-
const
|
|
525
|
+
Pa.displayName = "DataList.Label";
|
|
526
|
+
const La = e.forwardRef(({ children: t, className: a, ...r }, s) => e.createElement("dd", { ...r, ref: s, className: i(a, "rt-DataListValue") }, t));
|
|
527
|
+
La.displayName = "DataList.Value";
|
|
528
|
+
const Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
530
529
|
__proto__: null,
|
|
531
|
-
Item:
|
|
532
|
-
Label:
|
|
533
|
-
Root:
|
|
534
|
-
Value:
|
|
535
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
536
|
-
|
|
537
|
-
const _a = e.forwardRef(({ children: t, ...a }, r) => e.createElement(
|
|
530
|
+
Item: za,
|
|
531
|
+
Label: Pa,
|
|
532
|
+
Root: ka,
|
|
533
|
+
Value: La
|
|
534
|
+
}, Symbol.toStringTag, { value: "Module" })), Ba = (t) => e.createElement(Ms, { ...t, modal: !0 });
|
|
535
|
+
Ba.displayName = "Dialog.Root";
|
|
536
|
+
const _a = e.forwardRef(({ children: t, ...a }, r) => e.createElement(zs, { ...a, ref: r, asChild: !0 }, V(t)));
|
|
538
537
|
_a.displayName = "Dialog.Trigger";
|
|
539
|
-
const
|
|
540
|
-
const { align: s, ...n } =
|
|
541
|
-
return e.createElement(
|
|
542
|
-
});
|
|
543
|
-
|
|
544
|
-
const
|
|
545
|
-
|
|
546
|
-
const
|
|
547
|
-
|
|
548
|
-
const
|
|
549
|
-
|
|
550
|
-
const
|
|
538
|
+
const Da = e.forwardRef(({ align: t, ...a }, r) => {
|
|
539
|
+
const { align: s, ...n } = xt, { className: o } = m({ align: t }, { align: s }), { className: l, forceMount: c, container: u, ...p } = m(a, n);
|
|
540
|
+
return e.createElement(xs, { container: u, forceMount: c }, e.createElement(I, { asChild: !0 }, e.createElement(Ss, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, e.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, e.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${o}` }, e.createElement(Ts, { ...p, ref: r, className: i("rt-BaseDialogContent", "rt-DialogContent", l) }))))));
|
|
541
|
+
});
|
|
542
|
+
Da.displayName = "Dialog.Content";
|
|
543
|
+
const Va = e.forwardRef((t, a) => e.createElement(ks, { asChild: !0 }, e.createElement(Re, { size: "5", mb: "3", trim: "start", ...t, asChild: !1, ref: a })));
|
|
544
|
+
Va.displayName = "Dialog.Title";
|
|
545
|
+
const Ga = e.forwardRef((t, a) => e.createElement(Is, { asChild: !0 }, e.createElement(E, { as: "p", size: "3", ...t, asChild: !1, ref: a })));
|
|
546
|
+
Ga.displayName = "Dialog.Description";
|
|
547
|
+
const ja = e.forwardRef(({ children: t, ...a }, r) => e.createElement(Rs, { ...a, ref: r, asChild: !0 }, V(t)));
|
|
548
|
+
ja.displayName = "Dialog.Close";
|
|
549
|
+
const Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
551
550
|
__proto__: null,
|
|
552
|
-
Close:
|
|
553
|
-
Content:
|
|
554
|
-
Description:
|
|
555
|
-
Root:
|
|
556
|
-
Title:
|
|
551
|
+
Close: ja,
|
|
552
|
+
Content: Da,
|
|
553
|
+
Description: Ga,
|
|
554
|
+
Root: Ba,
|
|
555
|
+
Title: Va,
|
|
557
556
|
Trigger: _a
|
|
558
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
559
|
-
|
|
560
|
-
const
|
|
561
|
-
|
|
562
|
-
const
|
|
563
|
-
const r =
|
|
564
|
-
return e.createElement(
|
|
565
|
-
});
|
|
566
|
-
|
|
567
|
-
const Fa = e.forwardRef(({ className: t, ...a }, r) => e.createElement(
|
|
557
|
+
}, Symbol.toStringTag, { value: "Module" })), Oa = (t) => e.createElement(js, { ...t });
|
|
558
|
+
Oa.displayName = "DropdownMenu.Root";
|
|
559
|
+
const Aa = e.forwardRef(({ children: t, ...a }, r) => e.createElement(Fs, { ...a, ref: r, asChild: !0 }, V(t)));
|
|
560
|
+
Aa.displayName = "DropdownMenu.Trigger";
|
|
561
|
+
const Ha = e.createContext({}), Za = e.forwardRef((t, a) => {
|
|
562
|
+
const r = xe(), { size: s = j.size.default, variant: n = j.variant.default, highContrast: o = j.highContrast.default } = t, { className: l, children: c, color: u, container: p, forceMount: f, ...C } = m(t, j), v = u || r.accentColor;
|
|
563
|
+
return e.createElement(yt, { container: p, forceMount: f }, e.createElement(I, { asChild: !0 }, e.createElement(Ls, { "data-accent-color": v, align: "start", sideOffset: 4, collisionPadding: 10, ...C, asChild: !1, ref: a, className: i("rt-PopperContent", "rt-BaseMenuContent", "rt-DropdownMenuContent", l) }, e.createElement(ae, { type: "auto" }, e.createElement("div", { className: i("rt-BaseMenuViewport", "rt-DropdownMenuViewport") }, e.createElement(Ha.Provider, { value: e.useMemo(() => ({ size: s, variant: n, color: v, highContrast: o }), [s, n, v, o]) }, c))))));
|
|
564
|
+
});
|
|
565
|
+
Za.displayName = "DropdownMenu.Content";
|
|
566
|
+
const Fa = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Ds, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuLabel", "rt-DropdownMenuLabel", t) }));
|
|
568
567
|
Fa.displayName = "DropdownMenu.Label";
|
|
569
|
-
const
|
|
570
|
-
const { className: r, children: s, color: n =
|
|
571
|
-
return e.createElement(
|
|
572
|
-
});
|
|
573
|
-
|
|
574
|
-
const
|
|
575
|
-
|
|
576
|
-
const
|
|
577
|
-
|
|
568
|
+
const Wa = e.forwardRef((t, a) => {
|
|
569
|
+
const { className: r, children: s, color: n = fa.color.default, shortcut: o, ...l } = t;
|
|
570
|
+
return e.createElement(_s, { "data-accent-color": n, ...l, ref: a, className: i("rt-reset", "rt-BaseMenuItem", "rt-DropdownMenuItem", r) }, e.createElement(ge, null, s), o && e.createElement("div", { className: "rt-BaseMenuShortcut rt-DropdownMenuShortcut" }, o));
|
|
571
|
+
});
|
|
572
|
+
Wa.displayName = "DropdownMenu.Item";
|
|
573
|
+
const qa = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Bs, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuGroup", "rt-DropdownMenuGroup", t) }));
|
|
574
|
+
qa.displayName = "DropdownMenu.Group";
|
|
575
|
+
const Ka = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Vs, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuRadioGroup", "rt-DropdownMenuRadioGroup", t) }));
|
|
576
|
+
Ka.displayName = "DropdownMenu.RadioGroup";
|
|
577
|
+
const Ua = e.forwardRef((t, a) => {
|
|
578
|
+
const { children: r, className: s, color: n = Ca.color.default, ...o } = t;
|
|
579
|
+
return e.createElement(Gs, { ...o, asChild: !1, ref: a, "data-accent-color": n, className: i("rt-BaseMenuItem", "rt-BaseMenuRadioItem", "rt-DropdownMenuItem", "rt-DropdownMenuRadioItem", s) }, r, e.createElement(Nt, { className: "rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator" }, e.createElement(H, { className: "rt-BaseMenuItemIndicatorIcon rt-DropdownMenuItemIndicatorIcon" })));
|
|
580
|
+
});
|
|
581
|
+
Ua.displayName = "DropdownMenu.RadioItem";
|
|
578
582
|
const Xa = e.forwardRef((t, a) => {
|
|
579
|
-
const { children: r, className: s,
|
|
580
|
-
return e.createElement(
|
|
581
|
-
});
|
|
582
|
-
Xa.displayName = "DropdownMenu.RadioItem";
|
|
583
|
-
const Qa = e.forwardRef((t, a) => {
|
|
584
|
-
const { children: r, className: s, shortcut: n, color: o = Ca.color.default, ...l } = t;
|
|
585
|
-
return e.createElement(Bs, { ...l, asChild: !1, ref: a, "data-accent-color": o, className: i("rt-BaseMenuItem", "rt-BaseMenuCheckboxItem", "rt-DropdownMenuItem", "rt-DropdownMenuCheckboxItem", s) }, r, e.createElement(vt, { className: "rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator" }, e.createElement(W, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })), n && e.createElement("div", { className: "rt-BaseMenuShortcut rt-DropdownMenuShortcut" }, n));
|
|
583
|
+
const { children: r, className: s, shortcut: n, color: o = ha.color.default, ...l } = t;
|
|
584
|
+
return e.createElement(Ps, { ...l, asChild: !1, ref: a, "data-accent-color": o, className: i("rt-BaseMenuItem", "rt-BaseMenuCheckboxItem", "rt-DropdownMenuItem", "rt-DropdownMenuCheckboxItem", s) }, r, e.createElement(Nt, { className: "rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator" }, e.createElement(H, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })), n && e.createElement("div", { className: "rt-BaseMenuShortcut rt-DropdownMenuShortcut" }, n));
|
|
586
585
|
});
|
|
587
|
-
|
|
588
|
-
const
|
|
589
|
-
|
|
590
|
-
const
|
|
586
|
+
Xa.displayName = "DropdownMenu.CheckboxItem";
|
|
587
|
+
const Qa = (t) => e.createElement(As, { ...t });
|
|
588
|
+
Qa.displayName = "DropdownMenu.Sub";
|
|
589
|
+
const Ya = e.forwardRef((t, a) => {
|
|
591
590
|
const { className: r, children: s, ...n } = t;
|
|
592
|
-
return e.createElement(
|
|
591
|
+
return e.createElement(Zs, { ...n, asChild: !1, ref: a, className: i("rt-BaseMenuItem", "rt-BaseMenuSubTrigger", "rt-DropdownMenuItem", "rt-DropdownMenuSubTrigger", r) }, s, e.createElement("div", { className: "rt-BaseMenuShortcut rt-DropdownMenuShortcut" }, e.createElement(Xe, { className: "rt-BaseMenuSubTriggerIcon rt-DropdownMenuSubtriggerIcon" })));
|
|
593
592
|
});
|
|
594
|
-
|
|
595
|
-
const
|
|
596
|
-
const { size: r, variant: s, color: n, highContrast: o } = e.useContext(
|
|
597
|
-
return e.createElement(
|
|
593
|
+
Ya.displayName = "DropdownMenu.SubTrigger";
|
|
594
|
+
const Ja = e.forwardRef((t, a) => {
|
|
595
|
+
const { size: r, variant: s, color: n, highContrast: o } = e.useContext(Ha), { className: l, children: c, container: u, forceMount: p, ...f } = m({ size: r, variant: s, color: n, highContrast: o, ...t }, j);
|
|
596
|
+
return e.createElement(yt, { container: u, forceMount: p }, e.createElement(I, { asChild: !0 }, e.createElement(Hs, { "data-accent-color": n, alignOffset: -Number(r) * 4, sideOffset: 1, collisionPadding: 10, ...f, asChild: !1, ref: a, className: i("rt-PopperContent", "rt-BaseMenuContent", "rt-BaseMenuSubContent", "rt-DropdownMenuContent", "rt-DropdownMenuSubContent", l) }, e.createElement(ae, { type: "auto" }, e.createElement("div", { className: i("rt-BaseMenuViewport", "rt-DropdownMenuViewport") }, c)))));
|
|
598
597
|
});
|
|
599
|
-
|
|
600
|
-
const
|
|
601
|
-
|
|
602
|
-
const
|
|
598
|
+
Ja.displayName = "DropdownMenu.SubContent";
|
|
599
|
+
const er = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Os, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuSeparator", "rt-DropdownMenuSeparator", t) }));
|
|
600
|
+
er.displayName = "DropdownMenu.Separator";
|
|
601
|
+
const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
603
602
|
__proto__: null,
|
|
604
|
-
CheckboxItem:
|
|
605
|
-
Content:
|
|
606
|
-
Group:
|
|
607
|
-
Item:
|
|
603
|
+
CheckboxItem: Xa,
|
|
604
|
+
Content: Za,
|
|
605
|
+
Group: qa,
|
|
606
|
+
Item: Wa,
|
|
608
607
|
Label: Fa,
|
|
609
|
-
RadioGroup:
|
|
610
|
-
RadioItem:
|
|
611
|
-
Root:
|
|
612
|
-
Separator:
|
|
613
|
-
Sub:
|
|
614
|
-
SubContent:
|
|
615
|
-
SubTrigger:
|
|
616
|
-
Trigger:
|
|
608
|
+
RadioGroup: Ka,
|
|
609
|
+
RadioItem: Ua,
|
|
610
|
+
Root: Oa,
|
|
611
|
+
Separator: er,
|
|
612
|
+
Sub: Qa,
|
|
613
|
+
SubContent: Ja,
|
|
614
|
+
SubTrigger: Ya,
|
|
615
|
+
Trigger: Aa,
|
|
617
616
|
TriggerIcon: Ue
|
|
618
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
619
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
617
|
+
}, Symbol.toStringTag, { value: "Module" })), Bl = { ...N, ...te, ...ee }, _l = e.forwardRef((t, a) => {
|
|
618
|
+
const { asChild: r, className: s, ...n } = m(t, Bl), o = r ? R : "em";
|
|
620
619
|
return e.createElement(o, { ...n, ref: a, className: i("rt-Em", s) });
|
|
621
620
|
});
|
|
622
621
|
_l.displayName = "Em";
|
|
623
|
-
const
|
|
624
|
-
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
const
|
|
628
|
-
const { className: r, forceMount: s, container: n, ...o } = m(t,
|
|
629
|
-
return e.createElement(
|
|
630
|
-
});
|
|
631
|
-
|
|
632
|
-
const
|
|
622
|
+
const Dl = ["1", "2", "3"], Vl = { ...N, size: { type: "enum", className: "rt-r-size", values: Dl, default: "2", responsive: !0 }, width: S.width, minWidth: S.minWidth, maxWidth: { ...S.maxWidth, default: "480px" }, ...ne }, tr = (t) => e.createElement(Ks, { closeDelay: 150, openDelay: 200, ...t });
|
|
623
|
+
tr.displayName = "HoverCard.Root";
|
|
624
|
+
const ar = e.forwardRef(({ children: t, className: a, ...r }, s) => e.createElement(Us, { ref: s, className: i("rt-HoverCardTrigger", a), ...r, asChild: !0 }, V(t)));
|
|
625
|
+
ar.displayName = "HoverCard.Trigger";
|
|
626
|
+
const rr = e.forwardRef((t, a) => {
|
|
627
|
+
const { className: r, forceMount: s, container: n, ...o } = m(t, Vl);
|
|
628
|
+
return e.createElement(Ws, { container: n, forceMount: s }, e.createElement(I, { asChild: !0 }, e.createElement(qs, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: a, className: i("rt-PopperContent", "rt-HoverCardContent", r) })));
|
|
629
|
+
});
|
|
630
|
+
rr.displayName = "HoverCard.Content";
|
|
631
|
+
const zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
633
632
|
__proto__: null,
|
|
634
|
-
Content:
|
|
635
|
-
Root:
|
|
636
|
-
Trigger:
|
|
637
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
638
|
-
|
|
639
|
-
const
|
|
640
|
-
function
|
|
633
|
+
Content: rr,
|
|
634
|
+
Root: tr,
|
|
635
|
+
Trigger: ar
|
|
636
|
+
}, Symbol.toStringTag, { value: "Module" })), Qe = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Fe, { ...a, ref: r, className: i("rt-IconButton", t) }));
|
|
637
|
+
Qe.displayName = "IconButton";
|
|
638
|
+
const Gl = ["all", "x", "y", "top", "bottom", "left", "right"], jl = ["border-box", "padding-box"], Y = ["current", "0"], Ol = { ...N, side: { type: "enum", className: "rt-r-side", values: Gl, default: "all", responsive: !0 }, clip: { type: "enum", className: "rt-r-clip", values: jl, default: "border-box", responsive: !0 }, p: { type: "enum", className: "rt-r-p", values: Y, parseValue: J, responsive: !0 }, px: { type: "enum", className: "rt-r-px", values: Y, parseValue: J, responsive: !0 }, py: { type: "enum", className: "rt-r-py", values: Y, parseValue: J, responsive: !0 }, pt: { type: "enum", className: "rt-r-pt", values: Y, parseValue: J, responsive: !0 }, pr: { type: "enum", className: "rt-r-pr", values: Y, parseValue: J, responsive: !0 }, pb: { type: "enum", className: "rt-r-pb", values: Y, parseValue: J, responsive: !0 }, pl: { type: "enum", className: "rt-r-pl", values: Y, parseValue: J, responsive: !0 } };
|
|
639
|
+
function J(t) {
|
|
641
640
|
return t === "current" ? "inset" : t;
|
|
642
641
|
}
|
|
643
|
-
const
|
|
644
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
642
|
+
const Al = e.forwardRef((t, a) => {
|
|
643
|
+
const { asChild: r, className: s, ...n } = m(t, Ol, h), o = r ? R : "div";
|
|
645
644
|
return e.createElement(o, { ...n, ref: a, className: i("rt-Inset", s) });
|
|
646
645
|
});
|
|
647
|
-
|
|
648
|
-
const
|
|
649
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
646
|
+
Al.displayName = "Inset";
|
|
647
|
+
const Hl = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Zl = { ...N, size: { type: "enum", className: "rt-r-size", values: Hl, responsive: !0 } }, sr = e.forwardRef((t, a) => {
|
|
648
|
+
const { asChild: r, className: s, ...n } = m(t, Zl, h), o = r ? R : "kbd";
|
|
650
649
|
return e.createElement(o, { ...n, ref: a, className: i("rt-reset", "rt-Kbd", s) });
|
|
651
650
|
});
|
|
652
|
-
|
|
653
|
-
const Fl = ["1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
654
|
-
const { children: r, className: s, color: n, asChild: o, ...l } = m(t,
|
|
655
|
-
return e.createElement(
|
|
656
|
-
});
|
|
657
|
-
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
const
|
|
663
|
-
const { className: r, forceMount: s, container: n, ...o } = m(t,
|
|
664
|
-
return e.createElement(
|
|
665
|
-
});
|
|
666
|
-
|
|
667
|
-
const
|
|
668
|
-
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
const
|
|
651
|
+
sr.displayName = "Kbd";
|
|
652
|
+
const Fl = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Wl = ["auto", "always", "hover", "none"], ql = { ...N, size: { type: "enum", className: "rt-r-size", values: Fl, responsive: !0 }, ...we, ...Ee, ...te, ...ee, underline: { type: "enum", className: "rt-underline", values: Wl, default: "auto" }, ...oe, ...w }, Kl = e.forwardRef((t, a) => {
|
|
653
|
+
const { children: r, className: s, color: n, asChild: o, ...l } = m(t, ql);
|
|
654
|
+
return e.createElement(E, { ...l, "data-accent-color": n, ref: a, asChild: !0, className: i("rt-reset", "rt-Link", s) }, o ? r : e.createElement("a", null, r));
|
|
655
|
+
});
|
|
656
|
+
Kl.displayName = "Link";
|
|
657
|
+
const Ul = ["1", "2", "3", "4"], Xl = { ...N, size: { type: "enum", className: "rt-r-size", values: Ul, default: "2", responsive: !0 }, width: S.width, minWidth: S.minWidth, maxWidth: { ...S.maxWidth, default: "480px" }, ...ne }, Ye = (t) => e.createElement(en, { ...t });
|
|
658
|
+
Ye.displayName = "Popover.Root";
|
|
659
|
+
const Je = e.forwardRef(({ children: t, ...a }, r) => e.createElement(tn, { ...a, ref: r, asChild: !0 }, V(t)));
|
|
660
|
+
Je.displayName = "Popover.Trigger";
|
|
661
|
+
const et = e.forwardRef((t, a) => {
|
|
662
|
+
const { className: r, forceMount: s, container: n, ...o } = m(t, Xl);
|
|
663
|
+
return e.createElement(Ys, { container: n, forceMount: s }, e.createElement(I, { asChild: !0 }, e.createElement(Js, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: a, className: i("rt-PopperContent", "rt-PopoverContent", r) })));
|
|
664
|
+
});
|
|
665
|
+
et.displayName = "Popover.Content";
|
|
666
|
+
const nr = e.forwardRef(({ children: t, ...a }, r) => e.createElement(Qs, { ...a, ref: r, asChild: !0 }, V(t)));
|
|
667
|
+
nr.displayName = "Popover.Close";
|
|
668
|
+
const or = e.forwardRef(({ children: t, ...a }, r) => e.createElement(Xs, { ...a, ref: r }));
|
|
669
|
+
or.displayName = "Popover.Anchor";
|
|
670
|
+
const Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
672
671
|
__proto__: null,
|
|
673
|
-
Anchor:
|
|
674
|
-
Close:
|
|
675
|
-
Content:
|
|
676
|
-
Root:
|
|
677
|
-
Trigger:
|
|
678
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
679
|
-
const { className: r, style: s, color: n, radius: o, duration: l, ...c } = m(t,
|
|
680
|
-
return e.createElement(
|
|
681
|
-
});
|
|
682
|
-
|
|
683
|
-
const
|
|
684
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
672
|
+
Anchor: or,
|
|
673
|
+
Close: nr,
|
|
674
|
+
Content: et,
|
|
675
|
+
Root: Ye,
|
|
676
|
+
Trigger: Je
|
|
677
|
+
}, Symbol.toStringTag, { value: "Module" })), Li = an, Ql = ["1", "2", "3"], Yl = ["classic", "surface", "soft"], Jl = { size: { type: "enum", className: "rt-r-size", values: Ql, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Yl, default: "surface" }, ...$, ...w, ...D, duration: { type: "string" } }, ec = e.forwardRef((t, a) => {
|
|
678
|
+
const { className: r, style: s, color: n, radius: o, duration: l, ...c } = m(t, Jl, h);
|
|
679
|
+
return e.createElement(rn, { "data-accent-color": n, "data-radius": o, ref: a, className: i("rt-ProgressRoot", r), style: Ce({ "--progress-duration": "value" in c ? void 0 : l, "--progress-value": "value" in c ? c.value : void 0, "--progress-max": "max" in c ? c.max : void 0 }, s), ...c, asChild: !1 }, e.createElement(sn, { className: "rt-ProgressIndicator" }));
|
|
680
|
+
});
|
|
681
|
+
ec.displayName = "Progress";
|
|
682
|
+
const tc = { ...N, ...te, ...ee }, ac = e.forwardRef((t, a) => {
|
|
683
|
+
const { asChild: r, className: s, ...n } = m(t, tc), o = r ? R : "q";
|
|
685
684
|
return e.createElement(o, { ...n, ref: a, className: i("rt-Quote", s) });
|
|
686
685
|
});
|
|
687
|
-
|
|
688
|
-
const
|
|
689
|
-
const { className: r, color: s, ...n } = m(t,
|
|
690
|
-
return e.createElement(
|
|
686
|
+
ac.displayName = "Quote";
|
|
687
|
+
const rc = ["1", "2", "3"], sc = ["surface", "classic"], nc = { ...N, size: { type: "enum", className: "rt-r-size", values: rc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: sc, default: "surface" }, ...$, ...w, columns: { ...se.columns, default: "repeat(auto-fit, minmax(160px, 1fr))" }, gap: { ...se.gap, default: "4" } }, lr = e.forwardRef((t, a) => {
|
|
688
|
+
const { className: r, color: s, ...n } = m(t, nc, h);
|
|
689
|
+
return e.createElement(A, { asChild: !0 }, e.createElement($t, { "data-accent-color": s, ...n, ref: a, className: i("rt-RadioCardsRoot", r) }));
|
|
691
690
|
});
|
|
692
|
-
|
|
693
|
-
const
|
|
694
|
-
|
|
695
|
-
const
|
|
691
|
+
lr.displayName = "RadioCards.Root";
|
|
692
|
+
const cr = e.forwardRef(({ className: t, ...a }, r) => e.createElement(bt, { ...a, asChild: !1, ref: r, className: i("rt-reset", "rt-BaseCard", "rt-RadioCardsItem", t) }));
|
|
693
|
+
cr.displayName = "RadioCards.Item";
|
|
694
|
+
const Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
696
695
|
__proto__: null,
|
|
697
|
-
Item:
|
|
698
|
-
Root:
|
|
699
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
700
|
-
const { __scopeRadioGroup: l, className: c, ...u } = m(n, h), p =
|
|
701
|
-
return e.createElement(
|
|
702
|
-
});
|
|
703
|
-
|
|
704
|
-
const
|
|
705
|
-
const { __scopeRadioGroup: r, children: s, className: n, style: o, ...l } = t, { size: c } =
|
|
706
|
-
return s ? e.createElement(
|
|
707
|
-
});
|
|
708
|
-
|
|
696
|
+
Item: cr,
|
|
697
|
+
Root: lr
|
|
698
|
+
}, Symbol.toStringTag, { value: "Module" })), oc = ["1", "2", "3"], lc = ["classic", "surface", "soft"], de = { ...N, size: { type: "enum", className: "rt-r-size", values: oc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: lc, default: "surface" }, ...$, ...w }, ir = "RadioGroup", [cc] = $e(ir, [Et]), ur = Et(), [ic, mr] = cc(ir), dr = e.forwardRef(({ color: t = de.color.default, highContrast: a = de.highContrast.default, size: r = de.size.default, variant: s = de.variant.default, ...n }, o) => {
|
|
699
|
+
const { __scopeRadioGroup: l, className: c, ...u } = m(n, h), p = ur(l);
|
|
700
|
+
return e.createElement(ic, { scope: l, color: t, highContrast: a, size: r, variant: s }, e.createElement($t, { ...p, ...u, ref: o, className: i("rt-RadioGroupRoot", c) }));
|
|
701
|
+
});
|
|
702
|
+
dr.displayName = "RadioGroup.Root";
|
|
703
|
+
const pr = e.forwardRef((t, a) => {
|
|
704
|
+
const { __scopeRadioGroup: r, children: s, className: n, style: o, ...l } = t, { size: c } = mr("RadioGroupItem", r);
|
|
705
|
+
return s ? e.createElement(E, { as: "label", size: c, className: i("rt-RadioGroupItem", n), style: o }, e.createElement(Ge, { __scopeRadioGroup: r, ...l, ref: a }), s && e.createElement("span", { className: "rt-RadioGroupItemInner" }, s)) : e.createElement(Ge, { __scopeRadioGroup: r, ...l, ref: a, className: n, style: o });
|
|
706
|
+
});
|
|
707
|
+
pr.displayName = "RadioGroup.Item";
|
|
709
708
|
const Ge = e.forwardRef(({ __scopeRadioGroup: t, ...a }, r) => {
|
|
710
|
-
const s =
|
|
711
|
-
return e.createElement(
|
|
709
|
+
const s = mr("RadioGroupItemRadio", t), n = ur(t), { color: o, className: l } = m({ ...a, ...s }, de, h);
|
|
710
|
+
return e.createElement(bt, { ...n, "data-accent-color": o, ...a, asChild: !1, ref: r, className: i("rt-reset", "rt-BaseRadioRoot", l) });
|
|
712
711
|
});
|
|
713
712
|
Ge.displayName = "RadioGroup.ItemRadio";
|
|
714
|
-
const
|
|
713
|
+
const _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
715
714
|
__proto__: null,
|
|
716
|
-
Item:
|
|
717
|
-
Root:
|
|
718
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
719
|
-
const r = e.useRef(null), { className: s, color: n, onChange: o, onValueChange: l, ...c } = m(t,
|
|
720
|
-
return e.createElement("input", { type: "radio", "data-accent-color": n, ...c, onChange:
|
|
721
|
-
});
|
|
722
|
-
|
|
723
|
-
const
|
|
724
|
-
|
|
725
|
-
const
|
|
726
|
-
const { className: r, children: s, radius: n, value: o, defaultValue: l, onValueChange: c, ...u } = m(t,
|
|
727
|
-
return e.createElement(
|
|
715
|
+
Item: pr,
|
|
716
|
+
Root: dr
|
|
717
|
+
}, Symbol.toStringTag, { value: "Module" })), uc = ["1", "2", "3"], mc = ["classic", "surface", "soft"], dc = { size: { type: "enum", className: "rt-r-size", values: uc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: mc, default: "surface" }, ...$, ...w }, pc = e.forwardRef((t, a) => {
|
|
718
|
+
const r = e.useRef(null), { className: s, color: n, onChange: o, onValueChange: l, ...c } = m(t, dc, h);
|
|
719
|
+
return e.createElement("input", { type: "radio", "data-accent-color": n, ...c, onChange: nn(o, (u) => l == null ? void 0 : l(u.currentTarget.value)), ref: wt(r, a), className: i("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", s) });
|
|
720
|
+
});
|
|
721
|
+
pc.displayName = "Radio";
|
|
722
|
+
const fc = e.forwardRef(({ className: t, children: a, ...r }, s) => e.createElement(R, { ...r, ref: s, className: i("rt-reset", t) }, V(a)));
|
|
723
|
+
fc.displayName = "Reset";
|
|
724
|
+
const hc = ["1", "2", "3"], Cc = ["surface", "classic"], gc = { disabled: { type: "boolean", className: "disabled", default: !1 }, size: { type: "enum", className: "rt-r-size", values: hc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Cc, default: "surface" }, ...D }, fr = e.forwardRef((t, a) => {
|
|
725
|
+
const { className: r, children: s, radius: n, value: o, defaultValue: l, onValueChange: c, ...u } = m(t, gc, h), [p, f] = je({ prop: o, onChange: c, defaultProp: l });
|
|
726
|
+
return e.createElement(ln, { "data-disabled": t.disabled || void 0, "data-radius": n, ref: a, className: i("rt-SegmentedControlRoot", r), onValueChange: (C) => {
|
|
728
727
|
C && f(C);
|
|
729
728
|
}, ...u, type: "single", value: p, asChild: !1, disabled: !!t.disabled }, s, e.createElement("div", { className: "rt-SegmentedControlIndicator" }));
|
|
730
729
|
});
|
|
731
|
-
|
|
732
|
-
const
|
|
733
|
-
|
|
734
|
-
const
|
|
730
|
+
fr.displayName = "SegmentedControl.Root";
|
|
731
|
+
const hr = e.forwardRef(({ children: t, className: a, ...r }, s) => e.createElement(on, { ref: s, className: i("rt-reset", "rt-SegmentedControlItem", a), ...r, disabled: !1, asChild: !1 }, e.createElement("span", { className: "rt-SegmentedControlItemSeparator" }), e.createElement("span", { className: "rt-SegmentedControlItemLabel" }, e.createElement("span", { className: "rt-SegmentedControlItemLabelActive" }, t), e.createElement("span", { className: "rt-SegmentedControlItemLabelInactive", "aria-hidden": !0 }, t))));
|
|
732
|
+
hr.displayName = "SegmentedControl.Item";
|
|
733
|
+
const Di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
735
734
|
__proto__: null,
|
|
736
|
-
Item:
|
|
737
|
-
Root:
|
|
738
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
739
|
-
function
|
|
735
|
+
Item: hr,
|
|
736
|
+
Root: fr
|
|
737
|
+
}, Symbol.toStringTag, { value: "Module" })), vc = ["1", "2", "3", "4"], Nc = ["none", "initial"], yc = { ...N, size: { type: "enum", className: "rt-r-size", values: vc, default: "3", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: Nc, parseValue: bc, responsive: !0 } };
|
|
738
|
+
function bc(t) {
|
|
740
739
|
return t === "initial" ? "block" : t;
|
|
741
740
|
}
|
|
742
|
-
const
|
|
743
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
741
|
+
const $c = e.forwardRef((t, a) => {
|
|
742
|
+
const { asChild: r, className: s, ...n } = m(t, yc, ve, h), o = r ? R : "section";
|
|
744
743
|
return e.createElement(o, { ...n, ref: a, className: i("rt-Section", s) });
|
|
745
744
|
});
|
|
746
|
-
|
|
747
|
-
const
|
|
748
|
-
const { children: a, size: r =
|
|
749
|
-
return e.createElement(
|
|
745
|
+
$c.displayName = "Section";
|
|
746
|
+
const Ec = ["1", "2", "3"], tt = { size: { type: "enum", className: "rt-r-size", values: Ec, default: "2", responsive: !0 } }, wc = ["classic", "surface", "soft", "ghost"], Rc = { variant: { type: "enum", className: "rt-variant", values: wc, default: "surface" }, ...$, ...D, placeholder: { type: "string" } }, xc = ["solid", "soft"], Sc = { variant: { type: "enum", className: "rt-variant", values: xc, default: "solid" }, ...$, ...w }, at = e.createContext({}), Cr = (t) => {
|
|
747
|
+
const { children: a, size: r = tt.size.default, ...s } = t;
|
|
748
|
+
return e.createElement(gn, { ...s }, e.createElement(at.Provider, { value: e.useMemo(() => ({ size: r }), [r]) }, a));
|
|
750
749
|
};
|
|
751
|
-
|
|
752
|
-
const
|
|
753
|
-
const r = e.useContext(
|
|
754
|
-
return e.createElement(
|
|
750
|
+
Cr.displayName = "Select.Root";
|
|
751
|
+
const gr = e.forwardRef((t, a) => {
|
|
752
|
+
const r = e.useContext(at), { children: s, className: n, color: o, radius: l, placeholder: c, ...u } = m({ size: r == null ? void 0 : r.size, ...t }, { size: tt.size }, Rc, h);
|
|
753
|
+
return e.createElement(Nn, { asChild: !0 }, e.createElement("button", { "data-accent-color": o, "data-radius": l, ...u, ref: a, className: i("rt-reset", "rt-SelectTrigger", n) }, e.createElement("span", { className: "rt-SelectTriggerInner" }, e.createElement(yn, { placeholder: c }, s)), e.createElement(bn, { asChild: !0 }, e.createElement(Ue, { className: "rt-SelectIcon" }))));
|
|
755
754
|
});
|
|
756
|
-
|
|
757
|
-
const
|
|
758
|
-
const r = e.useContext(
|
|
759
|
-
return e.createElement(
|
|
755
|
+
gr.displayName = "Select.Trigger";
|
|
756
|
+
const vr = e.forwardRef((t, a) => {
|
|
757
|
+
const r = e.useContext(at), { className: s, children: n, color: o, container: l, ...c } = m({ size: r == null ? void 0 : r.size, ...t }, { size: tt.size }, Sc), u = xe(), p = o || u.accentColor;
|
|
758
|
+
return e.createElement(cn, { container: l }, e.createElement(I, { asChild: !0 }, e.createElement(un, { "data-accent-color": p, sideOffset: 4, ...c, asChild: !1, ref: a, className: i({ "rt-PopperContent": c.position === "popper" }, "rt-SelectContent", s) }, e.createElement(ht, { type: "auto", className: "rt-ScrollAreaRoot" }, e.createElement(mn, { asChild: !0, className: "rt-SelectViewport" }, e.createElement(Ct, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, n)), e.createElement(_e, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, e.createElement(De, { className: "rt-ScrollAreaThumb" }))))));
|
|
760
759
|
});
|
|
761
|
-
|
|
762
|
-
const
|
|
760
|
+
vr.displayName = "Select.Content";
|
|
761
|
+
const Nr = e.forwardRef((t, a) => {
|
|
763
762
|
const { className: r, children: s, ...n } = t;
|
|
764
|
-
return e.createElement(
|
|
765
|
-
});
|
|
766
|
-
|
|
767
|
-
const
|
|
768
|
-
|
|
769
|
-
const
|
|
770
|
-
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
const
|
|
763
|
+
return e.createElement(pn, { ...n, asChild: !1, ref: a, className: i("rt-SelectItem", r) }, e.createElement(fn, { className: "rt-SelectItemIndicator" }, e.createElement(H, { className: "rt-SelectItemIndicatorIcon" })), e.createElement(hn, null, s));
|
|
764
|
+
});
|
|
765
|
+
Nr.displayName = "Select.Item";
|
|
766
|
+
const yr = e.forwardRef(({ className: t, ...a }, r) => e.createElement(dn, { ...a, asChild: !1, ref: r, className: i("rt-SelectGroup", t) }));
|
|
767
|
+
yr.displayName = "Select.Group";
|
|
768
|
+
const br = e.forwardRef(({ className: t, ...a }, r) => e.createElement(Cn, { ...a, asChild: !1, ref: r, className: i("rt-SelectLabel", t) }));
|
|
769
|
+
br.displayName = "Select.Label";
|
|
770
|
+
const $r = e.forwardRef(({ className: t, ...a }, r) => e.createElement(vn, { ...a, asChild: !1, ref: r, className: i("rt-SelectSeparator", t) }));
|
|
771
|
+
$r.displayName = "Select.Separator";
|
|
772
|
+
const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
774
773
|
__proto__: null,
|
|
775
|
-
Content:
|
|
776
|
-
Group:
|
|
777
|
-
Item:
|
|
778
|
-
Label:
|
|
779
|
-
Root:
|
|
780
|
-
Separator:
|
|
781
|
-
Trigger:
|
|
782
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
783
|
-
const { className: r, color: s, decorative: n, ...o } = m(t,
|
|
774
|
+
Content: vr,
|
|
775
|
+
Group: yr,
|
|
776
|
+
Item: Nr,
|
|
777
|
+
Label: br,
|
|
778
|
+
Root: Cr,
|
|
779
|
+
Separator: $r,
|
|
780
|
+
Trigger: gr
|
|
781
|
+
}, Symbol.toStringTag, { value: "Module" })), Tc = ["horizontal", "vertical"], Ic = ["1", "2", "3", "4"], Mc = { orientation: { type: "enum", className: "rt-r-orientation", values: Tc, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: Ic, default: "1", responsive: !0 }, color: { ...$.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, kc = e.forwardRef((t, a) => {
|
|
782
|
+
const { className: r, color: s, decorative: n, ...o } = m(t, Mc, h);
|
|
784
783
|
return e.createElement("span", { "data-accent-color": s, role: n ? void 0 : "separator", ...o, ref: a, className: i("rt-Separator", r) });
|
|
785
784
|
});
|
|
786
|
-
|
|
787
|
-
const
|
|
788
|
-
const { children: r, className: s, loading: n, ...o } = m(t,
|
|
785
|
+
kc.displayName = "Separator";
|
|
786
|
+
const Er = parseFloat(e.version) >= 19 || "", zc = { loading: { type: "boolean", default: !0 }, ...S, ...ne }, Pc = e.forwardRef((t, a) => {
|
|
787
|
+
const { children: r, className: s, loading: n, ...o } = m(t, zc, h);
|
|
789
788
|
if (!n) return r;
|
|
790
789
|
const l = e.isValidElement(r) ? R : "span";
|
|
791
|
-
return e.createElement(l, { ref: a, "aria-hidden": !0, className: i("rt-Skeleton", s), "data-inline-skeleton": e.isValidElement(r) ? void 0 : !0, tabIndex: -1, inert:
|
|
790
|
+
return e.createElement(l, { ref: a, "aria-hidden": !0, className: i("rt-Skeleton", s), "data-inline-skeleton": e.isValidElement(r) ? void 0 : !0, tabIndex: -1, inert: Er, ...o }, r);
|
|
792
791
|
});
|
|
793
|
-
|
|
794
|
-
const
|
|
792
|
+
Pc.displayName = "Skeleton";
|
|
793
|
+
const Lc = ["1", "2", "3"], Bc = ["classic", "surface", "soft"], _c = { size: { type: "enum", className: "rt-r-size", values: Lc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Bc, default: "surface" }, ...$, ...w, ...D }, Dc = e.forwardRef((t, a) => {
|
|
795
794
|
const { className: r, color: s, radius: n, tabIndex: o, ...l } = m(t, _c, h);
|
|
796
|
-
return e.createElement(
|
|
795
|
+
return e.createElement($n, { "data-accent-color": s, "data-radius": n, ref: a, ...l, asChild: !1, className: i("rt-SliderRoot", r) }, e.createElement(En, { className: "rt-SliderTrack" }, e.createElement(wn, { className: i("rt-SliderRange", { "rt-high-contrast": t.highContrast }), "data-inverted": l.inverted ? "" : void 0 })), (l.value ?? l.defaultValue ?? []).map((c, u) => e.createElement(Rn, { key: u, className: "rt-SliderThumb", ...o !== void 0 ? { tabIndex: o } : void 0 })));
|
|
797
796
|
});
|
|
798
|
-
|
|
799
|
-
const
|
|
800
|
-
const { asChild: r, className: s, ...n } = m(t,
|
|
797
|
+
Dc.displayName = "Slider";
|
|
798
|
+
const Vc = { ...N, ...te, ...ee }, Gc = e.forwardRef((t, a) => {
|
|
799
|
+
const { asChild: r, className: s, ...n } = m(t, Vc), o = r ? R : "strong";
|
|
801
800
|
return e.createElement(o, { ...n, ref: a, className: i("rt-Strong", s) });
|
|
802
801
|
});
|
|
803
|
-
|
|
804
|
-
const
|
|
805
|
-
const { className: r, color: s, radius: n, ...o } = m(t,
|
|
806
|
-
return e.createElement(
|
|
802
|
+
Gc.displayName = "Strong";
|
|
803
|
+
const jc = ["1", "2", "3"], Oc = ["classic", "surface", "soft"], Ac = { size: { type: "enum", className: "rt-r-size", values: jc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Oc, default: "surface" }, ...$, ...w, ...D }, Hc = e.forwardRef((t, a) => {
|
|
804
|
+
const { className: r, color: s, radius: n, ...o } = m(t, Ac, h);
|
|
805
|
+
return e.createElement(xn, { "data-accent-color": s, "data-radius": n, ...o, asChild: !1, ref: a, className: i("rt-reset", "rt-SwitchRoot", r) }, e.createElement(Sn, { className: i("rt-SwitchThumb", { "rt-high-contrast": t.highContrast }) }));
|
|
807
806
|
});
|
|
808
|
-
|
|
809
|
-
const
|
|
810
|
-
const { children: r, className: s, color: n, ...o } = m(t,
|
|
811
|
-
return e.createElement(
|
|
807
|
+
Hc.displayName = "Switch";
|
|
808
|
+
const Zc = ["1", "2"], Fc = ["nowrap", "wrap", "wrap-reverse"], Wc = ["start", "center", "end"], wr = { size: { type: "enum", className: "rt-r-size", values: Zc, default: "2", responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: Fc, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Wc, responsive: !0 }, ...$, ...w }, Rr = e.forwardRef((t, a) => {
|
|
809
|
+
const { children: r, className: s, color: n, ...o } = m(t, wr, h);
|
|
810
|
+
return e.createElement(Mn, { className: "rt-TabNavRoot", "data-accent-color": n, ...o, asChild: !1, ref: a }, e.createElement(kn, { className: i("rt-reset", "rt-BaseTabList", "rt-TabNavList", s) }, r));
|
|
812
811
|
});
|
|
813
|
-
|
|
814
|
-
const
|
|
812
|
+
Rr.displayName = "TabNav.Root";
|
|
813
|
+
const xr = e.forwardRef((t, a) => {
|
|
815
814
|
const { asChild: r, children: s, className: n, ...o } = t;
|
|
816
|
-
return e.createElement(
|
|
815
|
+
return e.createElement(Tn, { className: "rt-TabNavItem" }, e.createElement(In, { ...o, ref: a, className: i("rt-reset", "rt-BaseTabListTrigger", "rt-TabNavLink", n), onSelect: void 0, asChild: r }, Se({ asChild: r, children: s }, (l) => e.createElement(e.Fragment, null, e.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabNavLinkInner" }, l), e.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabNavLinkInnerHidden" }, l)))));
|
|
817
816
|
});
|
|
818
|
-
|
|
819
|
-
const
|
|
817
|
+
xr.displayName = "TabNav.Link";
|
|
818
|
+
const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
820
819
|
__proto__: null,
|
|
821
|
-
Link:
|
|
822
|
-
Root:
|
|
823
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
824
|
-
function
|
|
820
|
+
Link: xr,
|
|
821
|
+
Root: Rr
|
|
822
|
+
}, Symbol.toStringTag, { value: "Module" })), qc = ["1", "2", "3"], Kc = ["surface", "ghost"], Uc = ["auto", "fixed"], Pe = { size: { type: "enum", className: "rt-r-size", values: qc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Kc, default: "ghost" }, layout: { type: "enum", className: "rt-r-tl", values: Uc, responsive: !0 } }, Xc = ["start", "center", "end", "baseline"], Qc = { align: { type: "enum", className: "rt-r-va", values: Xc, parseValue: Yc, responsive: !0 } };
|
|
823
|
+
function Yc(t) {
|
|
825
824
|
return { baseline: "baseline", start: "top", center: "middle", end: "bottom" }[t];
|
|
826
825
|
}
|
|
827
|
-
const
|
|
828
|
-
function
|
|
826
|
+
const Jc = ["start", "center", "end"], rt = { justify: { type: "enum", className: "rt-r-ta", values: Jc, parseValue: ei, responsive: !0 }, ...S, ...fe };
|
|
827
|
+
function ei(t) {
|
|
829
828
|
return { start: "left", center: "center", end: "right" }[t];
|
|
830
829
|
}
|
|
830
|
+
const Sr = e.forwardRef((t, a) => {
|
|
831
|
+
const { layout: r, ...s } = Pe, { className: n, children: o, layout: l, ...c } = m(t, s, h), u = he({ value: l, className: Pe.layout.className, propValues: Pe.layout.values });
|
|
832
|
+
return e.createElement("div", { ref: a, className: i("rt-TableRoot", n), ...c }, e.createElement(ae, null, e.createElement("table", { className: i("rt-TableRootTable", u) }, o)));
|
|
833
|
+
});
|
|
834
|
+
Sr.displayName = "Table.Root";
|
|
835
|
+
const Tr = e.forwardRef(({ className: t, ...a }, r) => e.createElement("thead", { ...a, ref: r, className: i("rt-TableHeader", t) }));
|
|
836
|
+
Tr.displayName = "Table.Header";
|
|
837
|
+
const Ir = e.forwardRef(({ className: t, ...a }, r) => e.createElement("tbody", { ...a, ref: r, className: i("rt-TableBody", t) }));
|
|
838
|
+
Ir.displayName = "Table.Body";
|
|
831
839
|
const Mr = e.forwardRef((t, a) => {
|
|
832
|
-
const {
|
|
833
|
-
return e.createElement("div", { ref: a, className: i("rt-TableRoot", n), ...c }, e.createElement(se, null, e.createElement("table", { className: i("rt-TableRootTable", u) }, o)));
|
|
834
|
-
});
|
|
835
|
-
Mr.displayName = "Table.Root";
|
|
836
|
-
const Ir = e.forwardRef(({ className: t, ...a }, r) => e.createElement("thead", { ...a, ref: r, className: i("rt-TableHeader", t) }));
|
|
837
|
-
Ir.displayName = "Table.Header";
|
|
838
|
-
const kr = e.forwardRef(({ className: t, ...a }, r) => e.createElement("tbody", { ...a, ref: r, className: i("rt-TableBody", t) }));
|
|
839
|
-
kr.displayName = "Table.Body";
|
|
840
|
-
const zr = e.forwardRef((t, a) => {
|
|
841
|
-
const { className: r, ...s } = m(t, Yc);
|
|
840
|
+
const { className: r, ...s } = m(t, Qc);
|
|
842
841
|
return e.createElement("tr", { ...s, ref: a, className: i("rt-TableRow", r) });
|
|
843
842
|
});
|
|
844
|
-
|
|
845
|
-
const
|
|
846
|
-
const { className: r, ...s } = m(t,
|
|
843
|
+
Mr.displayName = "Table.Row";
|
|
844
|
+
const kr = e.forwardRef((t, a) => {
|
|
845
|
+
const { className: r, ...s } = m(t, rt);
|
|
847
846
|
return e.createElement("td", { className: i("rt-TableCell", r), ref: a, ...s });
|
|
848
847
|
});
|
|
849
|
-
|
|
850
|
-
const
|
|
851
|
-
const { className: r, ...s } = m(t,
|
|
848
|
+
kr.displayName = "Table.Cell";
|
|
849
|
+
const zr = e.forwardRef((t, a) => {
|
|
850
|
+
const { className: r, ...s } = m(t, rt);
|
|
852
851
|
return e.createElement("th", { className: i("rt-TableCell", "rt-TableColumnHeaderCell", r), scope: "col", ref: a, ...s });
|
|
853
852
|
});
|
|
854
|
-
|
|
855
|
-
const
|
|
856
|
-
const { className: r, ...s } = m(t,
|
|
853
|
+
zr.displayName = "Table.ColumnHeaderCell";
|
|
854
|
+
const Pr = e.forwardRef((t, a) => {
|
|
855
|
+
const { className: r, ...s } = m(t, rt);
|
|
857
856
|
return e.createElement("th", { className: i("rt-TableCell", "rt-TableRowHeaderCell", r), scope: "row", ref: a, ...s });
|
|
858
857
|
});
|
|
859
|
-
|
|
860
|
-
const
|
|
858
|
+
Pr.displayName = "Table.RowHeaderCell";
|
|
859
|
+
const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
861
860
|
__proto__: null,
|
|
862
|
-
Body:
|
|
863
|
-
Cell:
|
|
864
|
-
ColumnHeaderCell:
|
|
865
|
-
Header:
|
|
866
|
-
Root:
|
|
867
|
-
Row:
|
|
868
|
-
RowHeaderCell:
|
|
869
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
861
|
+
Body: Ir,
|
|
862
|
+
Cell: kr,
|
|
863
|
+
ColumnHeaderCell: zr,
|
|
864
|
+
Header: Tr,
|
|
865
|
+
Root: Sr,
|
|
866
|
+
Row: Mr,
|
|
867
|
+
RowHeaderCell: Pr
|
|
868
|
+
}, Symbol.toStringTag, { value: "Module" })), Lr = e.forwardRef((t, a) => {
|
|
870
869
|
const { className: r, ...s } = m(t, h);
|
|
871
|
-
return e.createElement(
|
|
870
|
+
return e.createElement(Ln, { ...s, ref: a, className: i("rt-TabsRoot", r) });
|
|
872
871
|
});
|
|
873
|
-
|
|
874
|
-
const
|
|
875
|
-
const { className: r, color: s, ...n } = m(t,
|
|
876
|
-
return e.createElement(
|
|
872
|
+
Lr.displayName = "Tabs.Root";
|
|
873
|
+
const Br = e.forwardRef((t, a) => {
|
|
874
|
+
const { className: r, color: s, ...n } = m(t, wr, h);
|
|
875
|
+
return e.createElement(Pn, { "data-accent-color": s, ...n, asChild: !1, ref: a, className: i("rt-BaseTabList", "rt-TabsList", r) });
|
|
877
876
|
});
|
|
878
|
-
|
|
879
|
-
const
|
|
877
|
+
Br.displayName = "Tabs.List";
|
|
878
|
+
const _r = e.forwardRef((t, a) => {
|
|
880
879
|
const { className: r, children: s, ...n } = t;
|
|
881
|
-
return e.createElement(
|
|
880
|
+
return e.createElement(Bn, { ...n, asChild: !1, ref: a, className: i("rt-reset", "rt-BaseTabListTrigger", "rt-TabsTrigger", r) }, e.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabsTriggerInner" }, s), e.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden" }, s));
|
|
882
881
|
});
|
|
883
|
-
|
|
884
|
-
const
|
|
882
|
+
_r.displayName = "Tabs.Trigger";
|
|
883
|
+
const Dr = e.forwardRef((t, a) => {
|
|
885
884
|
const { className: r, ...s } = m(t, h);
|
|
886
|
-
return e.createElement(
|
|
885
|
+
return e.createElement(zn, { ...s, ref: a, className: i("rt-TabsContent", r) });
|
|
887
886
|
});
|
|
888
|
-
|
|
889
|
-
const
|
|
887
|
+
Dr.displayName = "Tabs.Content";
|
|
888
|
+
const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
890
889
|
__proto__: null,
|
|
891
|
-
Content:
|
|
892
|
-
List:
|
|
893
|
-
Root:
|
|
894
|
-
Trigger:
|
|
895
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
896
|
-
const { className: r, color: s, radius: n, style: o, ...l } = m(t,
|
|
890
|
+
Content: Dr,
|
|
891
|
+
List: Br,
|
|
892
|
+
Root: Lr,
|
|
893
|
+
Trigger: _r
|
|
894
|
+
}, Symbol.toStringTag, { value: "Module" })), ti = ["1", "2", "3"], ai = ["classic", "surface", "soft"], ri = ["none", "vertical", "horizontal", "both"], si = { size: { type: "enum", className: "rt-r-size", values: ti, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: ai, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: ri, responsive: !0 }, ...$, ...D }, ni = e.forwardRef((t, a) => {
|
|
895
|
+
const { className: r, color: s, radius: n, style: o, ...l } = m(t, si, h);
|
|
897
896
|
return e.createElement("div", { "data-accent-color": s, "data-radius": n, className: i("rt-TextAreaRoot", r), style: o }, e.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: a, ...l }));
|
|
898
897
|
});
|
|
899
|
-
|
|
900
|
-
const
|
|
901
|
-
const r = e.useRef(null), { children: s, className: n, color: o, radius: l, style: c, ...u } = m(t,
|
|
898
|
+
ni.displayName = "TextArea";
|
|
899
|
+
const oi = ["1", "2", "3"], li = ["classic", "surface", "soft"], ci = { size: { type: "enum", className: "rt-r-size", values: oi, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: li, default: "surface" }, ...$, ...D }, ii = ["left", "right"], ui = { side: { type: "enum", values: ii }, ...$, gap: Ot.gap, px: fe.px, pl: fe.pl, pr: fe.pr }, Vr = e.forwardRef((t, a) => {
|
|
900
|
+
const r = e.useRef(null), { children: s, className: n, color: o, radius: l, style: c, ...u } = m(t, ci, h);
|
|
902
901
|
return e.createElement("div", { "data-accent-color": o, "data-radius": l, style: c, className: i("rt-TextFieldRoot", n), onPointerDown: (p) => {
|
|
903
902
|
const f = p.target;
|
|
904
903
|
if (f.closest("input, button, a")) return;
|
|
@@ -915,37 +914,37 @@ const li = ["1", "2", "3"], ci = ["classic", "surface", "soft"], ii = { size: {
|
|
|
915
914
|
}
|
|
916
915
|
C.focus();
|
|
917
916
|
});
|
|
918
|
-
} }, e.createElement("input", { spellCheck: "false", ...u, ref:
|
|
917
|
+
} }, e.createElement("input", { spellCheck: "false", ...u, ref: wt(r, a), className: "rt-reset rt-TextFieldInput" }), s);
|
|
919
918
|
});
|
|
920
|
-
|
|
921
|
-
const
|
|
922
|
-
const { className: r, color: s, side: n, ...o } = m(t,
|
|
919
|
+
Vr.displayName = "TextField.Root";
|
|
920
|
+
const Gr = e.forwardRef((t, a) => {
|
|
921
|
+
const { className: r, color: s, side: n, ...o } = m(t, ui);
|
|
923
922
|
return e.createElement("div", { "data-accent-color": s, "data-side": n, ...o, ref: a, className: i("rt-TextFieldSlot", r) });
|
|
924
923
|
});
|
|
925
|
-
|
|
926
|
-
const
|
|
924
|
+
Gr.displayName = "TextField.Slot";
|
|
925
|
+
const Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
927
926
|
__proto__: null,
|
|
928
|
-
Root:
|
|
929
|
-
Slot:
|
|
930
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
927
|
+
Root: Vr,
|
|
928
|
+
Slot: Gr
|
|
929
|
+
}, Symbol.toStringTag, { value: "Module" })), mi = e.forwardRef(({ defaultOpen: t = !0, ...a }, r) => {
|
|
931
930
|
const [s, n] = e.useState(t);
|
|
932
|
-
return e.createElement(
|
|
931
|
+
return e.createElement(jr, { ...a, ref: r, open: s, onOpenChange: n });
|
|
933
932
|
});
|
|
934
|
-
|
|
935
|
-
const
|
|
936
|
-
const { open: r, onOpenChange: s, onAppearanceChange: n, ...o } = t, l =
|
|
937
|
-
const g =
|
|
933
|
+
mi.displayName = "ThemePanel";
|
|
934
|
+
const jr = e.forwardRef((t, a) => {
|
|
935
|
+
const { open: r, onOpenChange: s, onAppearanceChange: n, ...o } = t, l = xe(), { appearance: c, onAppearanceChange: u, accentColor: p, onAccentColorChange: f, grayColor: C, onGrayColorChange: v, panelBackground: b, onPanelBackgroundChange: T, radius: x, onRadiusChange: M, scaling: k, onScalingChange: Z } = l, _ = n !== void 0, P = _n(n), G = e.useCallback((d) => {
|
|
936
|
+
const g = di();
|
|
938
937
|
if (c !== "inherit") {
|
|
939
938
|
u(d);
|
|
940
939
|
return;
|
|
941
940
|
}
|
|
942
|
-
|
|
943
|
-
}, [c, u,
|
|
944
|
-
async function
|
|
945
|
-
const d = { appearance: c ===
|
|
946
|
-
|
|
941
|
+
_ ? P(d) : (nt(d), pi(d)), g();
|
|
942
|
+
}, [c, u, _, P]), le = It(p), st = C === "auto" ? le : C, [Or, Ie] = e.useState("idle");
|
|
943
|
+
async function Ar() {
|
|
944
|
+
const d = { appearance: c === y.appearance.default ? void 0 : c, accentColor: p === y.accentColor.default ? void 0 : p, grayColor: C === y.grayColor.default ? void 0 : C, panelBackground: b === y.panelBackground.default ? void 0 : b, radius: x === y.radius.default ? void 0 : x, scaling: k === y.scaling.default ? void 0 : k }, g = Object.keys(d).filter((L) => d[L] !== void 0).map((L) => `${L}="${d[L]}"`).join(" "), F = g ? `<Theme ${g}>` : "<Theme>";
|
|
945
|
+
Ie("copying"), await navigator.clipboard.writeText(F), Ie("copied"), setTimeout(() => Ie("idle"), 2e3);
|
|
947
946
|
}
|
|
948
|
-
const [
|
|
947
|
+
const [Me, nt] = e.useState(c === "inherit" ? null : c), Ne = `
|
|
949
948
|
[contenteditable],
|
|
950
949
|
[role="combobox"],
|
|
951
950
|
[role="listbox"],
|
|
@@ -956,34 +955,34 @@ const Ar = e.forwardRef((t, a) => {
|
|
|
956
955
|
`;
|
|
957
956
|
return e.useEffect(() => {
|
|
958
957
|
function d(g) {
|
|
959
|
-
var
|
|
960
|
-
const
|
|
961
|
-
((
|
|
958
|
+
var O, K;
|
|
959
|
+
const F = g.altKey || g.ctrlKey || g.shiftKey || g.metaKey, L = (O = document.activeElement) == null ? void 0 : O.closest(Ne);
|
|
960
|
+
((K = g.key) == null ? void 0 : K.toUpperCase()) === "T" && !F && !L && s(!r);
|
|
962
961
|
}
|
|
963
962
|
return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
|
|
964
|
-
}, [s, r,
|
|
963
|
+
}, [s, r, Ne]), e.useEffect(() => {
|
|
965
964
|
function d(g) {
|
|
966
|
-
var
|
|
967
|
-
const
|
|
968
|
-
((
|
|
965
|
+
var O, K;
|
|
966
|
+
const F = g.altKey || g.ctrlKey || g.shiftKey || g.metaKey, L = (O = document.activeElement) == null ? void 0 : O.closest(Ne);
|
|
967
|
+
((K = g.key) == null ? void 0 : K.toUpperCase()) === "D" && !F && !L && G(Me === "light" ? "dark" : "light");
|
|
969
968
|
}
|
|
970
969
|
return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
|
|
971
|
-
}, [
|
|
970
|
+
}, [G, Me, Ne]), e.useEffect(() => {
|
|
972
971
|
const d = document.documentElement, g = document.body;
|
|
973
|
-
function
|
|
974
|
-
const
|
|
975
|
-
|
|
972
|
+
function F() {
|
|
973
|
+
const O = d.classList.contains("dark") || d.classList.contains("dark-theme") || g.classList.contains("dark") || g.classList.contains("dark-theme");
|
|
974
|
+
nt(c === "inherit" ? O ? "dark" : "light" : c);
|
|
976
975
|
}
|
|
977
|
-
const L = new MutationObserver(function(
|
|
978
|
-
|
|
979
|
-
|
|
976
|
+
const L = new MutationObserver(function(O) {
|
|
977
|
+
O.forEach(function(K) {
|
|
978
|
+
K.attributeName === "class" && F();
|
|
980
979
|
});
|
|
981
980
|
});
|
|
982
|
-
return
|
|
983
|
-
}, [c]), e.createElement(I, { asChild: !0, radius: "medium", scaling: "100%" }, e.createElement(M, { direction: "column", position: "fixed", top: "0", right: "0", mr: "4", mt: "4", inert: r ? void 0 : Rr, ...o, ref: a, style: { zIndex: 9999, overflow: "hidden", maxHeight: "calc(100vh - var(--space-4) - var(--space-4))", borderRadius: "var(--radius-4)", backgroundColor: "var(--color-panel-solid)", transformOrigin: "top center", transitionProperty: "transform, box-shadow", transitionDuration: "200ms", transitionTimingFunction: r ? "ease-out" : "ease-in", transform: r ? "none" : "translateX(105%)", boxShadow: r ? "var(--shadow-5)" : "var(--shadow-2)", ...t.style } }, e.createElement(se, null, e.createElement(Z, { flexGrow: "1", p: "5", position: "relative" }, e.createElement(Z, { position: "absolute", top: "0", right: "0", m: "2" }, e.createElement($e, { content: "Press T to show/hide the Theme Panel", side: "bottom", sideOffset: 6 }, e.createElement(or, { asChild: !0, size: "3", tabIndex: 0, className: "rt-ThemePanelShortcut" }, e.createElement("button", { onClick: () => s(!r) }, "T")))), e.createElement(Ne, { size: "5", trim: "both", as: "h3", mb: "5" }, "Theme"), e.createElement(y, { id: "accent-color-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Accent color"), e.createElement(H, { columns: "10", gap: "2", mt: "3", role: "group", "aria-labelledby": "accent-color-title" }, b.accentColor.values.map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelSwatch", style: { backgroundColor: `var(--${d}-9)` } }, e.createElement($e, { content: `${K(d)}${p === "gray" && rt !== "gray" ? ` (${K(rt)})` : ""}` }, e.createElement("input", { className: "rt-ThemePanelSwatchInput", type: "radio", name: "accentColor", value: d, checked: p === d, onChange: (g) => f(g.target.value) }))))), e.createElement(M, { asChild: !0, align: "center", justify: "between" }, e.createElement(y, { as: "p", id: "gray-color-title", size: "2", weight: "medium", mt: "5" }, "Gray color")), e.createElement(H, { columns: "10", gap: "2", mt: "3", role: "group", "aria-labelledby": "gray-color-title" }, b.grayColor.values.map((d) => e.createElement(M, { key: d, asChild: !0, align: "center", justify: "center" }, e.createElement("label", { className: "rt-ThemePanelSwatch", style: { backgroundColor: d === "auto" ? `var(--${ie}-9)` : d === "gray" ? "var(--gray-9)" : `var(--${d}-9)`, filter: d === "gray" ? "saturate(0)" : void 0 } }, e.createElement($e, { content: `${K(d)}${d === "auto" ? ` (${K(ie)})` : ""}` }, e.createElement("input", { className: "rt-ThemePanelSwatchInput", type: "radio", name: "grayColor", value: d, checked: C === d, onChange: (g) => v(g.target.value) })))))), e.createElement(y, { id: "appearance-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Appearance"), e.createElement(H, { columns: "2", gap: "2", mt: "3", role: "group", "aria-labelledby": "appearance-title" }, ["light", "dark"].map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "appearance", value: d, checked: ze === d, onChange: (g) => j(g.target.value) }), e.createElement(M, { align: "center", justify: "center", height: "32px", gap: "2" }, d === "light" ? e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -1px" } }, e.createElement("path", { d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })) : e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -1px" } }, e.createElement("path", { d: "M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), e.createElement(y, { size: "1", weight: "medium" }, K(d)))))), e.createElement(y, { id: "radius-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Radius"), e.createElement(H, { columns: "5", gap: "2", mt: "3", role: "group", "aria-labelledby": "radius-title" }, b.radius.values.map((d) => e.createElement(M, { key: d, direction: "column", align: "center" }, e.createElement("label", { className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "radius", id: `theme-panel-radius-${d}`, value: d, checked: x === d, onChange: (g) => k(g.target.value) }), e.createElement(I, { asChild: !0, radius: d }, e.createElement(Z, { m: "3", width: "32px", height: "32px", style: { borderTopLeftRadius: d === "full" ? "80%" : "var(--radius-5)", backgroundImage: "linear-gradient(to bottom right, var(--accent-3), var(--accent-4))", borderTop: "2px solid var(--accent-a8)", borderLeft: "2px solid var(--accent-a8)" } }))), e.createElement(Z, { asChild: !0, pt: "2" }, e.createElement(y, { asChild: !0, size: "1", color: "gray" }, e.createElement("label", { htmlFor: `theme-panel-radius-${d}` }, K(d))))))), e.createElement(y, { id: "scaling-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Scaling"), e.createElement(H, { columns: "5", gap: "2", mt: "3", role: "group", "aria-labelledby": "scaling-title" }, b.scaling.values.map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "scaling", value: d, checked: z === d, onChange: (g) => F(g.target.value) }), e.createElement(M, { align: "center", justify: "center", height: "32px" }, e.createElement(I, { asChild: !0, scaling: d }, e.createElement(M, { align: "center", justify: "center" }, e.createElement(y, { size: "1", weight: "medium" }, K(d)))))))), e.createElement(M, { mt: "5", align: "center", gap: "2" }, e.createElement(y, { id: "panel-background-title", as: "p", size: "2", weight: "medium" }, "Panel background"), e.createElement(Qe, null, e.createElement(Ye, null, e.createElement(nr, { size: "1", variant: "ghost", color: "gray" }, e.createElement(Fn, { label: "Learn more about panel background options" }, e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, e.createElement("path", { d: "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z", fillRule: "evenodd", clipRule: "evenodd" }))))), e.createElement(Je, { size: "1", style: { maxWidth: 220 }, side: "top", align: "center" }, e.createElement(y, { as: "p", size: "2" }, "Whether Card and Table panels are translucent, showing some of the background behind them.")))), e.createElement(H, { columns: "2", gap: "2", mt: "3", role: "group", "aria-labelledby": "panel-background-title" }, b.panelBackground.values.map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "panelBackground", value: d, checked: $ === d, onChange: (g) => T(g.target.value) }), e.createElement(M, { align: "center", justify: "center", height: "32px", gap: "2" }, d === "solid" ? e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -2px" } }, e.createElement("path", { d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })) : e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -2px" } }, e.createElement("path", { opacity: ".05", d: "M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".1", d: "M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".15", d: "M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".2", d: "M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".25", d: "M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".3", d: "M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".35", d: "M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".4", d: "M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".45", d: "M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".5", d: "M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), e.createElement(y, { size: "1", weight: "medium" }, K(d)))))), e.createElement(Zt, { mt: "5", style: { width: "100%" }, onClick: Zr }, Hr === "copied" ? "Copied" : "Copy Theme")))));
|
|
981
|
+
return F(), c === "inherit" && (L.observe(d, { attributes: !0 }), L.observe(g, { attributes: !0 })), () => L.disconnect();
|
|
982
|
+
}, [c]), e.createElement(I, { asChild: !0, radius: "medium", scaling: "100%" }, e.createElement(z, { direction: "column", position: "fixed", top: "0", right: "0", mr: "4", mt: "4", inert: r ? void 0 : Er, ...o, ref: a, style: { zIndex: 9999, overflow: "hidden", maxHeight: "calc(100vh - var(--space-4) - var(--space-4))", borderRadius: "var(--radius-4)", backgroundColor: "var(--color-panel-solid)", transformOrigin: "top center", transitionProperty: "transform, box-shadow", transitionDuration: "200ms", transitionTimingFunction: r ? "ease-out" : "ease-in", transform: r ? "none" : "translateX(105%)", boxShadow: r ? "var(--shadow-5)" : "var(--shadow-2)", ...t.style } }, e.createElement(ae, null, e.createElement(ue, { flexGrow: "1", p: "5", position: "relative" }, e.createElement(ue, { position: "absolute", top: "0", right: "0", m: "2" }, e.createElement(ye, { content: "Press T to show/hide the Theme Panel", side: "bottom", sideOffset: 6 }, e.createElement(sr, { asChild: !0, size: "3", tabIndex: 0, className: "rt-ThemePanelShortcut" }, e.createElement("button", { onClick: () => s(!r) }, "T")))), e.createElement(Re, { size: "5", trim: "both", as: "h3", mb: "5" }, "Theme"), e.createElement(E, { id: "accent-color-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Accent color"), e.createElement(A, { columns: "10", gap: "2", mt: "3", role: "group", "aria-labelledby": "accent-color-title" }, y.accentColor.values.map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelSwatch", style: { backgroundColor: `var(--${d}-9)` } }, e.createElement(ye, { content: `${W(d)}${p === "gray" && st !== "gray" ? ` (${W(st)})` : ""}` }, e.createElement("input", { className: "rt-ThemePanelSwatchInput", type: "radio", name: "accentColor", value: d, checked: p === d, onChange: (g) => f(g.target.value) }))))), e.createElement(z, { asChild: !0, align: "center", justify: "between" }, e.createElement(E, { as: "p", id: "gray-color-title", size: "2", weight: "medium", mt: "5" }, "Gray color")), e.createElement(A, { columns: "10", gap: "2", mt: "3", role: "group", "aria-labelledby": "gray-color-title" }, y.grayColor.values.map((d) => e.createElement(z, { key: d, asChild: !0, align: "center", justify: "center" }, e.createElement("label", { className: "rt-ThemePanelSwatch", style: { backgroundColor: d === "auto" ? `var(--${le}-9)` : d === "gray" ? "var(--gray-9)" : `var(--${d}-9)`, filter: d === "gray" ? "saturate(0)" : void 0 } }, e.createElement(ye, { content: `${W(d)}${d === "auto" ? ` (${W(le)})` : ""}` }, e.createElement("input", { className: "rt-ThemePanelSwatchInput", type: "radio", name: "grayColor", value: d, checked: C === d, onChange: (g) => v(g.target.value) })))))), e.createElement(E, { id: "appearance-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Appearance"), e.createElement(A, { columns: "2", gap: "2", mt: "3", role: "group", "aria-labelledby": "appearance-title" }, ["light", "dark"].map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "appearance", value: d, checked: Me === d, onChange: (g) => G(g.target.value) }), e.createElement(z, { align: "center", justify: "center", height: "32px", gap: "2" }, d === "light" ? e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -1px" } }, e.createElement("path", { d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })) : e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -1px" } }, e.createElement("path", { d: "M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), e.createElement(E, { size: "1", weight: "medium" }, W(d)))))), e.createElement(E, { id: "radius-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Radius"), e.createElement(A, { columns: "5", gap: "2", mt: "3", role: "group", "aria-labelledby": "radius-title" }, y.radius.values.map((d) => e.createElement(z, { key: d, direction: "column", align: "center" }, e.createElement("label", { className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "radius", id: `theme-panel-radius-${d}`, value: d, checked: x === d, onChange: (g) => M(g.target.value) }), e.createElement(I, { asChild: !0, radius: d }, e.createElement(ue, { m: "3", width: "32px", height: "32px", style: { borderTopLeftRadius: d === "full" ? "80%" : "var(--radius-5)", backgroundImage: "linear-gradient(to bottom right, var(--accent-3), var(--accent-4))", borderTop: "2px solid var(--accent-a8)", borderLeft: "2px solid var(--accent-a8)" } }))), e.createElement(ue, { asChild: !0, pt: "2" }, e.createElement(E, { asChild: !0, size: "1", color: "gray" }, e.createElement("label", { htmlFor: `theme-panel-radius-${d}` }, W(d))))))), e.createElement(E, { id: "scaling-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Scaling"), e.createElement(A, { columns: "5", gap: "2", mt: "3", role: "group", "aria-labelledby": "scaling-title" }, y.scaling.values.map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "scaling", value: d, checked: k === d, onChange: (g) => Z(g.target.value) }), e.createElement(z, { align: "center", justify: "center", height: "32px" }, e.createElement(I, { asChild: !0, scaling: d }, e.createElement(z, { align: "center", justify: "center" }, e.createElement(E, { size: "1", weight: "medium" }, W(d)))))))), e.createElement(z, { mt: "5", align: "center", gap: "2" }, e.createElement(E, { id: "panel-background-title", as: "p", size: "2", weight: "medium" }, "Panel background"), e.createElement(Ye, null, e.createElement(Je, null, e.createElement(Qe, { size: "1", variant: "ghost", color: "gray" }, e.createElement(Hn, { label: "Learn more about panel background options" }, e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, e.createElement("path", { d: "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z", fillRule: "evenodd", clipRule: "evenodd" }))))), e.createElement(et, { size: "1", style: { maxWidth: 220 }, side: "top", align: "center" }, e.createElement(E, { as: "p", size: "2" }, "Whether Card and Table panels are translucent, showing some of the background behind them.")))), e.createElement(A, { columns: "2", gap: "2", mt: "3", role: "group", "aria-labelledby": "panel-background-title" }, y.panelBackground.values.map((d) => e.createElement("label", { key: d, className: "rt-ThemePanelRadioCard" }, e.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "panelBackground", value: d, checked: b === d, onChange: (g) => T(g.target.value) }), e.createElement(z, { align: "center", justify: "center", height: "32px", gap: "2" }, d === "solid" ? e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -2px" } }, e.createElement("path", { d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })) : e.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -2px" } }, e.createElement("path", { opacity: ".05", d: "M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".1", d: "M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".15", d: "M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".2", d: "M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".25", d: "M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".3", d: "M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".35", d: "M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".4", d: "M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".45", d: "M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { opacity: ".5", d: "M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), e.createElement("path", { d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), e.createElement(E, { size: "1", weight: "medium" }, W(d)))))), e.createElement(Zt, { mt: "5", style: { width: "100%" }, onClick: Ar }, Or === "copied" ? "Copied" : "Copy Theme")))));
|
|
984
983
|
});
|
|
985
|
-
|
|
986
|
-
function
|
|
984
|
+
jr.displayName = "ThemePanelImpl";
|
|
985
|
+
function di() {
|
|
987
986
|
const t = document.createElement("style");
|
|
988
987
|
return t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), document.head.appendChild(t), () => {
|
|
989
988
|
window.getComputedStyle(document.body), setTimeout(() => {
|
|
@@ -991,22 +990,46 @@ function pi() {
|
|
|
991
990
|
}, 1);
|
|
992
991
|
};
|
|
993
992
|
}
|
|
994
|
-
function
|
|
993
|
+
function W(t) {
|
|
995
994
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
996
995
|
}
|
|
997
|
-
function
|
|
996
|
+
function pi(t) {
|
|
998
997
|
const a = document.documentElement, r = a.classList.contains("light-theme"), s = a.classList.contains("dark-theme"), n = a.classList.contains("light"), o = a.classList.contains("dark");
|
|
999
998
|
(r || s) && (a.classList.remove("light-theme", "dark-theme"), a.style.colorScheme = t, a.classList.add(`${t}-theme`)), (n || o) && (a.classList.remove("light", "dark"), a.style.colorScheme = t, a.classList.add(t)), !r && !s && !n && !o && (a.style.colorScheme = t, a.classList.add(t));
|
|
1000
999
|
}
|
|
1001
|
-
const
|
|
1002
|
-
const { children: r, className: s, open: n, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: u, content: p, container: f, forceMount: C, ...v } = m(t,
|
|
1003
|
-
return e.createElement(
|
|
1004
|
-
});
|
|
1005
|
-
|
|
1006
|
-
const
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1000
|
+
const fi = { content: { type: "ReactNode", required: !0 }, width: S.width, minWidth: S.minWidth, maxWidth: { ...S.maxWidth, default: "360px" } }, ye = e.forwardRef((t, a) => {
|
|
1001
|
+
const { children: r, className: s, open: n, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: u, content: p, container: f, forceMount: C, ...v } = m(t, fi), b = { open: n, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: u };
|
|
1002
|
+
return e.createElement(Dn, { ...b }, e.createElement(Vn, { asChild: !0 }, r), e.createElement(Gn, { container: f, forceMount: C }, e.createElement(I, { asChild: !0 }, e.createElement(jn, { sideOffset: 4, collisionPadding: 10, ...v, asChild: !1, ref: a, className: i("rt-TooltipContent", s) }, e.createElement(E, { as: "p", className: "rt-TooltipText", size: "1" }, p), e.createElement(On, { className: "rt-TooltipArrow" })))));
|
|
1003
|
+
});
|
|
1004
|
+
ye.displayName = "Tooltip";
|
|
1005
|
+
const hi = "_iconButton_7rr0k_3", Ci = "_iconButtonDisabled_7rr0k_7", gi = "_iconButtonActive_7rr0k_15", Le = {
|
|
1006
|
+
iconButton: hi,
|
|
1007
|
+
iconButtonDisabled: Ci,
|
|
1008
|
+
iconButtonActive: gi
|
|
1009
|
+
}, vi = ({
|
|
1010
|
+
key: t,
|
|
1011
|
+
onClick: a,
|
|
1012
|
+
className: r,
|
|
1013
|
+
iconSize: s,
|
|
1014
|
+
Icon: n,
|
|
1015
|
+
active: o,
|
|
1016
|
+
...l
|
|
1017
|
+
}) => /* @__PURE__ */ Be(
|
|
1018
|
+
Qe,
|
|
1019
|
+
{
|
|
1020
|
+
onClick: a,
|
|
1021
|
+
className: i(Le.iconButton, r, {
|
|
1022
|
+
[Le.iconButtonActive]: o,
|
|
1023
|
+
[Le.iconButtonDisabled]: l.disabled
|
|
1024
|
+
}),
|
|
1025
|
+
variant: "ghost",
|
|
1026
|
+
...l,
|
|
1027
|
+
children: /* @__PURE__ */ Be(n, { width: s, height: s })
|
|
1028
|
+
},
|
|
1029
|
+
t
|
|
1030
|
+
);
|
|
1031
|
+
vi.displayName = "IconButton";
|
|
1032
|
+
const Hi = ({ children: t, ...a }) => /* @__PURE__ */ Be(
|
|
1010
1033
|
I,
|
|
1011
1034
|
{
|
|
1012
1035
|
accentColor: "red",
|
|
@@ -1015,82 +1038,70 @@ const Oi = ({ title: t, children: a, ...r }) => /* @__PURE__ */ _(Z, { asChild:
|
|
|
1015
1038
|
...a,
|
|
1016
1039
|
children: t
|
|
1017
1040
|
}
|
|
1018
|
-
)
|
|
1019
|
-
"Hello, ",
|
|
1020
|
-
t,
|
|
1021
|
-
"!"
|
|
1022
|
-
] }) }) }), Zi = ({ ...t }) => /* @__PURE__ */ _(Z, { p: "4", style: { maxWidth: 400 }, ...t, children: /* @__PURE__ */ Ee(M, { gap: "3", align: "center", children: [
|
|
1023
|
-
/* @__PURE__ */ _(Vt, { fallback: /* @__PURE__ */ _(Zn, { width: "22", height: "22" }) }),
|
|
1024
|
-
/* @__PURE__ */ Ee(Z, { children: [
|
|
1025
|
-
/* @__PURE__ */ _(y, { weight: "bold", children: "World Component" }),
|
|
1026
|
-
/* @__PURE__ */ _(y, { size: "2", color: "gray", children: "A sample component for our design system" })
|
|
1027
|
-
] })
|
|
1028
|
-
] }) });
|
|
1041
|
+
);
|
|
1029
1042
|
export {
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1043
|
+
Hn as AccessibleIcon,
|
|
1044
|
+
$i as AlertDialog,
|
|
1045
|
+
Ei as AspectRatio,
|
|
1046
|
+
uo as Avatar,
|
|
1047
|
+
ho as Badge,
|
|
1048
|
+
Co as Blockquote,
|
|
1049
|
+
ue as Box,
|
|
1037
1050
|
Zt as Button,
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1051
|
+
Ri as Callout,
|
|
1052
|
+
Ao as Card,
|
|
1053
|
+
dl as Checkbox,
|
|
1054
|
+
xi as CheckboxCards,
|
|
1055
|
+
Si as CheckboxGroup,
|
|
1043
1056
|
Ue as ChevronDownIcon,
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1057
|
+
Cl as Code,
|
|
1058
|
+
El as Container,
|
|
1059
|
+
Ti as ContextMenu,
|
|
1060
|
+
Ii as DataList,
|
|
1061
|
+
Mi as Dialog,
|
|
1062
|
+
ki as DropdownMenu,
|
|
1050
1063
|
_l as Em,
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
Vc as Slider,
|
|
1064
|
+
z as Flex,
|
|
1065
|
+
A as Grid,
|
|
1066
|
+
Re as Heading,
|
|
1067
|
+
zi as HoverCard,
|
|
1068
|
+
vi as IconButton,
|
|
1069
|
+
Al as Inset,
|
|
1070
|
+
sr as Kbd,
|
|
1071
|
+
Kl as Link,
|
|
1072
|
+
Pi as Popover,
|
|
1073
|
+
Li as Portal,
|
|
1074
|
+
ec as Progress,
|
|
1075
|
+
ac as Quote,
|
|
1076
|
+
pc as Radio,
|
|
1077
|
+
Bi as RadioCards,
|
|
1078
|
+
_i as RadioGroup,
|
|
1079
|
+
fc as Reset,
|
|
1080
|
+
ae as ScrollArea,
|
|
1081
|
+
$c as Section,
|
|
1082
|
+
Di as SegmentedControl,
|
|
1083
|
+
Vi as Select,
|
|
1084
|
+
kc as Separator,
|
|
1085
|
+
Pc as Skeleton,
|
|
1086
|
+
Dc as Slider,
|
|
1075
1087
|
Ze as Slot,
|
|
1076
|
-
|
|
1088
|
+
wi as Slottable,
|
|
1077
1089
|
At as Spinner,
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
+
Gc as Strong,
|
|
1091
|
+
Hc as Switch,
|
|
1092
|
+
Gi as TabNav,
|
|
1093
|
+
ji as Table,
|
|
1094
|
+
Oi as Tabs,
|
|
1095
|
+
E as Text,
|
|
1096
|
+
ni as TextArea,
|
|
1097
|
+
Ai as TextField,
|
|
1098
|
+
Hi as Theme,
|
|
1099
|
+
be as ThemeContext,
|
|
1100
|
+
mi as ThemePanel,
|
|
1101
|
+
H as ThickCheckIcon,
|
|
1090
1102
|
Xe as ThickChevronRightIcon,
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
Te as useThemeContext
|
|
1103
|
+
sa as ThickDividerHorizontalIcon,
|
|
1104
|
+
ye as Tooltip,
|
|
1105
|
+
Lo as VisuallyHidden,
|
|
1106
|
+
xe as useThemeContext
|
|
1096
1107
|
};
|