@moises.ai/design-system 2.0.8 → 2.0.10
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/colors/custom-styles.css +1 -0
- package/dist/index.js +954 -796
- package/dist/primitives.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as d, jsxs as C, Fragment as et } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import
|
|
4
|
-
import { S as
|
|
5
|
-
import { C as
|
|
6
|
-
function
|
|
3
|
+
import P, { useState as tt, useRef as he, useCallback as _, useMemo as J, memo as tr, useLayoutEffect as ar, useEffect as at } from "react";
|
|
4
|
+
import { S as w, P as Me, a as rr, A as sr, C as nr, b as or, O as lr, c as cr, D as ir, R as ur, T as dr, d as mr, e as pr, f as fr, F as gr, I as hr, g as vr, u as rt, h as Nr, i as yr, j as st, V as nt, k as Se, l as xe, m as Cr, n as $r, o as Pe, p as ot, q as lt, r as br, G as wr, s as Er, L as Rr, t as Sr, v as xr, w as Tr, x as Mr, y as Pr, z as Ir, B as zr, E as _r, H as kr, J as Br, K as Ar, M as Dr, N as Lr, Q as Vr, U as Or, W as jr, X as Hr, Y as Gr, Z as Fr, _ as Wr, $ as qr, a0 as Kr, a1 as Yr, a2 as Zr, a3 as Xr, a4 as Qr, a5 as Ur, a6 as Jr, a7 as ct, a8 as it, a9 as es, aa as ut, ab as dt, ac as ts, ad as as, ae as rs, af as ss, ag as ns, ah as os, ai as ls, aj as cs, ak as is, al as us, am as ds, an as ms, ao as ps, ap as fs, aq as gs, ar as hs, as as mt, at as pt, au as ft, av as gt, aw as vs, ax as Ns, ay as ys, az as Cs, aA as $s, aB as bs, aC as Ie, aD as ze, aE as ws, aF as _e, aG as ke, aH as Es, aI as Rs, aJ as Ss, aK as xs, aL as Ts, aM as Ms, aN as Ps, aO as Is, aP as zs } from "./index-CsjBionl.js";
|
|
5
|
+
import { C as _s, I as ht } from "./react-icons.esm-CDVTF3xl.js";
|
|
6
|
+
function ks(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
|
-
var
|
|
9
|
+
var vt = { exports: {} };
|
|
10
10
|
/*!
|
|
11
11
|
Copyright (c) 2018 Jed Watson.
|
|
12
12
|
Licensed under the MIT License (MIT), see
|
|
@@ -16,116 +16,116 @@ var st = { exports: {} };
|
|
|
16
16
|
(function() {
|
|
17
17
|
var a = {}.hasOwnProperty;
|
|
18
18
|
function r() {
|
|
19
|
-
for (var
|
|
20
|
-
var c = arguments[
|
|
21
|
-
c && (
|
|
19
|
+
for (var o = "", l = 0; l < arguments.length; l++) {
|
|
20
|
+
var c = arguments[l];
|
|
21
|
+
c && (o = n(o, s(c)));
|
|
22
22
|
}
|
|
23
|
-
return
|
|
23
|
+
return o;
|
|
24
24
|
}
|
|
25
|
-
function s(
|
|
26
|
-
if (typeof
|
|
27
|
-
return
|
|
28
|
-
if (typeof
|
|
25
|
+
function s(o) {
|
|
26
|
+
if (typeof o == "string" || typeof o == "number")
|
|
27
|
+
return o;
|
|
28
|
+
if (typeof o != "object")
|
|
29
29
|
return "";
|
|
30
|
-
if (Array.isArray(
|
|
31
|
-
return r.apply(null,
|
|
32
|
-
if (
|
|
33
|
-
return
|
|
34
|
-
var
|
|
35
|
-
for (var c in
|
|
36
|
-
a.call(
|
|
37
|
-
return
|
|
30
|
+
if (Array.isArray(o))
|
|
31
|
+
return r.apply(null, o);
|
|
32
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
33
|
+
return o.toString();
|
|
34
|
+
var l = "";
|
|
35
|
+
for (var c in o)
|
|
36
|
+
a.call(o, c) && o[c] && (l = n(l, c));
|
|
37
|
+
return l;
|
|
38
38
|
}
|
|
39
|
-
function n(
|
|
40
|
-
return
|
|
39
|
+
function n(o, l) {
|
|
40
|
+
return l ? o ? o + " " + l : o + l : o;
|
|
41
41
|
}
|
|
42
42
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
43
43
|
})();
|
|
44
|
-
})(
|
|
45
|
-
var
|
|
46
|
-
const i = /* @__PURE__ */
|
|
47
|
-
function
|
|
44
|
+
})(vt);
|
|
45
|
+
var Bs = vt.exports;
|
|
46
|
+
const i = /* @__PURE__ */ ks(Bs), 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 } }, ee = { 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 } }, As = ["1", "2", "3", "4"], Nt = { ...N, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: As, default: "3", responsive: !0 }, width: S.width, minWidth: S.minWidth, maxWidth: { ...S.maxWidth, default: "600px" }, ...ee }, yt = ["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"], $ = { color: { type: "enum", values: yt, default: void 0 } }, te = { color: { type: "enum", values: yt, default: "" } }, E = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, Ds = ["normal", "start", "end", "both"], Be = { trim: { type: "enum", className: "rt-r-lt", values: Ds, responsive: !0 } }, Ls = ["left", "center", "right"], Ct = { align: { type: "enum", className: "rt-r-ta", values: Ls, responsive: !0 } }, Vs = ["wrap", "nowrap", "pretty", "balance"], Z = { wrap: { type: "enum", className: "rt-r-tw", values: Vs, responsive: !0 } }, X = { truncate: { type: "boolean", className: "rt-truncate" } }, Os = ["light", "regular", "medium", "bold"], ye = { weight: { type: "enum", className: "rt-r-weight", values: Os, responsive: !0 } }, js = ["h1", "h2", "h3", "h4", "h5", "h6"], Hs = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Gs = { as: { type: "enum", values: js, default: "h1" }, ...N, size: { type: "enum", className: "rt-r-size", values: Hs, default: "6", responsive: !0 }, ...ye, ...Ct, ...Be, ...X, ...Z, ...$, ...E }, Ae = ["initial", "xs", "sm", "md", "lg", "xl"];
|
|
47
|
+
function $t(e, a) {
|
|
48
48
|
return Object.prototype.hasOwnProperty.call(e, a);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return typeof e == "object" && Object.keys(e).some((a) =>
|
|
50
|
+
function ue(e) {
|
|
51
|
+
return typeof e == "object" && Object.keys(e).some((a) => Ae.includes(a));
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const s =
|
|
53
|
+
function j({ className: e, customProperties: a, ...r }) {
|
|
54
|
+
const s = me({ allowArbitraryValues: !0, className: e, ...r }), n = Fs({ customProperties: a, ...r });
|
|
55
55
|
return [s, n];
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
const
|
|
57
|
+
function me({ allowArbitraryValues: e, value: a, className: r, propValues: s, parseValue: n = (o) => o }) {
|
|
58
|
+
const o = [];
|
|
59
59
|
if (a) {
|
|
60
|
-
if (typeof a == "string" && s.includes(a)) return
|
|
61
|
-
if (
|
|
62
|
-
const
|
|
63
|
-
for (const c in
|
|
64
|
-
if (
|
|
65
|
-
const u =
|
|
60
|
+
if (typeof a == "string" && s.includes(a)) return Ke(r, a, n);
|
|
61
|
+
if (ue(a)) {
|
|
62
|
+
const l = a;
|
|
63
|
+
for (const c in l) {
|
|
64
|
+
if (!$t(l, c) || !Ae.includes(c)) continue;
|
|
65
|
+
const u = l[c];
|
|
66
66
|
if (u !== void 0) {
|
|
67
67
|
if (s.includes(u)) {
|
|
68
|
-
const p =
|
|
69
|
-
|
|
68
|
+
const p = Ke(r, u, n), f = c === "initial" ? p : `${c}:${p}`;
|
|
69
|
+
o.push(f);
|
|
70
70
|
} else if (e) {
|
|
71
71
|
const p = c === "initial" ? r : `${c}:${r}`;
|
|
72
|
-
|
|
72
|
+
o.push(p);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
return
|
|
76
|
+
return o.join(" ");
|
|
77
77
|
}
|
|
78
78
|
if (e) return r;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const s = e ? "-" : "", n = r(a),
|
|
83
|
-
return `${
|
|
81
|
+
function Ke(e, a, r) {
|
|
82
|
+
const s = e ? "-" : "", n = r(a), o = n == null ? void 0 : n.startsWith("-"), l = o ? "-" : "", c = o ? n == null ? void 0 : n.substring(1) : n;
|
|
83
|
+
return `${l}${e}${s}${c}`;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Fs({ customProperties: e, value: a, propValues: r, parseValue: s = (n) => n }) {
|
|
86
86
|
let n = {};
|
|
87
87
|
if (!(!a || typeof a == "string" && r.includes(a))) {
|
|
88
|
-
if (typeof a == "string" && (n = Object.fromEntries(e.map((
|
|
89
|
-
const
|
|
90
|
-
for (const
|
|
91
|
-
if (
|
|
92
|
-
const c = l
|
|
93
|
-
if (!r.includes(c)) for (const u of e) n = { [
|
|
88
|
+
if (typeof a == "string" && (n = Object.fromEntries(e.map((o) => [o, a]))), ue(a)) {
|
|
89
|
+
const o = a;
|
|
90
|
+
for (const l in o) {
|
|
91
|
+
if (!$t(o, l) || !Ae.includes(l)) continue;
|
|
92
|
+
const c = o[l];
|
|
93
|
+
if (!r.includes(c)) for (const u of e) n = { [l === "initial" ? u : `${u}-${l}`]: c, ...n };
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
for (const
|
|
97
|
-
const
|
|
98
|
-
|
|
96
|
+
for (const o in n) {
|
|
97
|
+
const l = n[o];
|
|
98
|
+
l !== void 0 && (n[o] = s(l));
|
|
99
99
|
}
|
|
100
100
|
return n;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function pe(...e) {
|
|
104
104
|
let a = {};
|
|
105
105
|
for (const r of e) r && (a = { ...a, ...r });
|
|
106
106
|
return Object.keys(a).length ? a : void 0;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Ws(...e) {
|
|
109
109
|
return Object.assign({}, ...e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function m(e, ...a) {
|
|
112
112
|
let r, s;
|
|
113
|
-
const n = { ...e },
|
|
114
|
-
for (const
|
|
115
|
-
let c = n[
|
|
116
|
-
const u = l
|
|
117
|
-
if (u.default !== void 0 && c === void 0 && (c = u.default), u.type === "enum" && ![u.default, ...u.values].includes(c) && !
|
|
118
|
-
delete n[
|
|
113
|
+
const n = { ...e }, o = Ws(...a);
|
|
114
|
+
for (const l in o) {
|
|
115
|
+
let c = n[l];
|
|
116
|
+
const u = o[l];
|
|
117
|
+
if (u.default !== void 0 && c === void 0 && (c = u.default), u.type === "enum" && ![u.default, ...u.values].includes(c) && !ue(c) && (c = u.default), n[l] = c, "className" in u && u.className) {
|
|
118
|
+
delete n[l];
|
|
119
119
|
const p = "responsive" in u;
|
|
120
|
-
if (!c ||
|
|
121
|
-
if (
|
|
122
|
-
const f =
|
|
120
|
+
if (!c || ue(c) && !p) continue;
|
|
121
|
+
if (ue(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 = me({ allowArbitraryValues: !1, value: c, className: u.className, propValues: u.values, parseValue: u.parseValue });
|
|
123
123
|
r = i(r, f);
|
|
124
124
|
continue;
|
|
125
125
|
}
|
|
126
126
|
if (u.type === "string" || u.type === "enum | string") {
|
|
127
|
-
const f = u.type === "string" ? [] : u.values, [
|
|
128
|
-
s =
|
|
127
|
+
const f = u.type === "string" ? [] : u.values, [h, y] = j({ className: u.className, customProperties: u.customProperties, propValues: f, parseValue: u.parseValue, value: c });
|
|
128
|
+
s = pe(s, y), r = i(r, h);
|
|
129
129
|
continue;
|
|
130
130
|
}
|
|
131
131
|
if (u.type === "boolean" && c) {
|
|
@@ -134,19 +134,19 @@ function d(e, ...a) {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
return n.className = i(r, e.className), n.style =
|
|
137
|
+
return n.className = i(r, e.className), n.style = pe(s, e.style), n;
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
const { children: r, className: s, asChild: n, as:
|
|
141
|
-
return t.createElement(
|
|
139
|
+
const H = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], g = { m: { type: "enum | string", values: H, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: H, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: H, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: H, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: H, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: H, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: H, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, De = t.forwardRef((e, a) => {
|
|
140
|
+
const { children: r, className: s, asChild: n, as: o = "h1", color: l, ...c } = m(e, Gs, g);
|
|
141
|
+
return t.createElement(w, { "data-accent-color": l, ...c, ref: a, className: i("rt-Heading", s) }, n ? r : t.createElement(o, null, r));
|
|
142
142
|
});
|
|
143
|
-
|
|
144
|
-
const
|
|
145
|
-
const { children: r, className: s, asChild: n, as:
|
|
146
|
-
return t.createElement(
|
|
143
|
+
De.displayName = "Heading";
|
|
144
|
+
const qs = ["span", "div", "label", "p"], Ks = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Ys = { as: { type: "enum", values: qs, default: "span" }, ...N, size: { type: "enum", className: "rt-r-size", values: Ks, responsive: !0 }, ...ye, ...Ct, ...Be, ...X, ...Z, ...$, ...E }, z = t.forwardRef((e, a) => {
|
|
145
|
+
const { children: r, className: s, asChild: n, as: o = "span", color: l, ...c } = m(e, Ys, g);
|
|
146
|
+
return t.createElement(w, { "data-accent-color": l, ...c, ref: a, className: i("rt-Text", s) }, n ? r : t.createElement(o, null, r));
|
|
147
147
|
});
|
|
148
148
|
z.displayName = "Text";
|
|
149
|
-
function
|
|
149
|
+
function Zs(e) {
|
|
150
150
|
switch (e) {
|
|
151
151
|
case "tomato":
|
|
152
152
|
case "red":
|
|
@@ -182,123 +182,123 @@ function As(e) {
|
|
|
182
182
|
return "gray";
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
const
|
|
186
|
-
},
|
|
187
|
-
function
|
|
188
|
-
const e = t.useContext(
|
|
185
|
+
const Xs = ["none", "small", "medium", "large", "full"], B = { radius: { type: "enum", values: Xs, default: void 0 } }, I = { hasBackground: { default: !0 }, appearance: { default: "inherit" }, accentColor: { default: "indigo" }, grayColor: { default: "auto" }, panelBackground: { default: "translucent" }, radius: { default: "medium" }, scaling: { default: "100%" } }, U = () => {
|
|
186
|
+
}, ve = t.createContext(void 0);
|
|
187
|
+
function bt() {
|
|
188
|
+
const e = t.useContext(ve);
|
|
189
189
|
if (e === void 0) throw new Error("`useThemeContext` must be used within a `Theme`");
|
|
190
190
|
return e;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
const { appearance: r =
|
|
196
|
-
t.useEffect(() =>
|
|
197
|
-
const [y,
|
|
198
|
-
t.useEffect(() =>
|
|
199
|
-
const [
|
|
200
|
-
t.useEffect(() =>
|
|
201
|
-
const [
|
|
202
|
-
t.useEffect(() =>
|
|
203
|
-
const [
|
|
204
|
-
t.useEffect(() =>
|
|
205
|
-
const [
|
|
206
|
-
return t.useEffect(() =>
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
const
|
|
210
|
-
const r = t.useContext(
|
|
211
|
-
return t.createElement(
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
const
|
|
192
|
+
const L = t.forwardRef((e, a) => t.useContext(ve) === void 0 ? t.createElement(Me, { delayDuration: 200 }, t.createElement(rr, { dir: "ltr" }, t.createElement(wt, { ...e, ref: a }))) : t.createElement(Le, { ...e, ref: a }));
|
|
193
|
+
L.displayName = "Theme";
|
|
194
|
+
const wt = t.forwardRef((e, a) => {
|
|
195
|
+
const { appearance: r = I.appearance.default, accentColor: s = I.accentColor.default, grayColor: n = I.grayColor.default, panelBackground: o = I.panelBackground.default, radius: l = I.radius.default, scaling: c = I.scaling.default, hasBackground: u = I.hasBackground.default, ...p } = e, [f, h] = t.useState(r);
|
|
196
|
+
t.useEffect(() => h(r), [r]);
|
|
197
|
+
const [y, b] = t.useState(s);
|
|
198
|
+
t.useEffect(() => b(s), [s]);
|
|
199
|
+
const [x, v] = t.useState(n);
|
|
200
|
+
t.useEffect(() => v(n), [n]);
|
|
201
|
+
const [k, A] = t.useState(o);
|
|
202
|
+
t.useEffect(() => A(o), [o]);
|
|
203
|
+
const [Q, R] = t.useState(l);
|
|
204
|
+
t.useEffect(() => R(l), [l]);
|
|
205
|
+
const [T, O] = t.useState(c);
|
|
206
|
+
return t.useEffect(() => O(c), [c]), t.createElement(Le, { ...p, ref: a, isRoot: !0, hasBackground: u, appearance: f, accentColor: y, grayColor: x, panelBackground: k, radius: Q, scaling: T, onAppearanceChange: h, onAccentColorChange: b, onGrayColorChange: v, onPanelBackgroundChange: A, onRadiusChange: R, onScalingChange: O });
|
|
207
|
+
});
|
|
208
|
+
wt.displayName = "ThemeRoot";
|
|
209
|
+
const Le = t.forwardRef((e, a) => {
|
|
210
|
+
const r = t.useContext(ve), { asChild: s, isRoot: n, hasBackground: o, appearance: l = (r == null ? void 0 : r.appearance) ?? I.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? I.accentColor.default, grayColor: u = (r == null ? void 0 : r.resolvedGrayColor) ?? I.grayColor.default, panelBackground: p = (r == null ? void 0 : r.panelBackground) ?? I.panelBackground.default, radius: f = (r == null ? void 0 : r.radius) ?? I.radius.default, scaling: h = (r == null ? void 0 : r.scaling) ?? I.scaling.default, onAppearanceChange: y = U, onAccentColorChange: b = U, onGrayColorChange: x = U, onPanelBackgroundChange: v = U, onRadiusChange: k = U, onScalingChange: A = U, ...Q } = e, R = s ? w : "div", T = u === "auto" ? Zs(c) : u, O = e.appearance === "light" || e.appearance === "dark", $e = o === void 0 ? n || O : o;
|
|
211
|
+
return t.createElement(ve.Provider, { value: t.useMemo(() => ({ appearance: l, accentColor: c, grayColor: u, resolvedGrayColor: T, panelBackground: p, radius: f, scaling: h, onAppearanceChange: y, onAccentColorChange: b, onGrayColorChange: x, onPanelBackgroundChange: v, onRadiusChange: k, onScalingChange: A }), [l, c, u, T, p, f, h, y, b, x, v, k, A]) }, t.createElement(R, { "data-is-root-theme": n ? "true" : "false", "data-accent-color": c, "data-gray-color": T, "data-has-background": $e ? "true" : "false", "data-panel-background": p, "data-radius": f, "data-scaling": h, ref: a, ...Q, className: i("radix-themes", { light: l === "light", dark: l === "dark" }, Q.className) }));
|
|
212
|
+
});
|
|
213
|
+
Le.displayName = "ThemeImpl";
|
|
214
|
+
const V = (e) => {
|
|
215
215
|
if (!t.isValidElement(e)) throw Error(`Expected a single React Element child, but got: ${t.Children.toArray(e).map((a) => typeof a == "object" && "type" in a && typeof a.type == "string" ? a.type : typeof a).join(", ")}`);
|
|
216
216
|
return e;
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
const
|
|
222
|
-
const { align: s, ...n } =
|
|
223
|
-
return t.createElement(
|
|
224
|
-
});
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
const
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
const
|
|
217
|
+
}, Et = (e) => t.createElement(ur, { ...e });
|
|
218
|
+
Et.displayName = "AlertDialog.Root";
|
|
219
|
+
const Rt = t.forwardRef(({ children: e, ...a }, r) => t.createElement(mr, { ...a, ref: r, asChild: !0 }, V(e)));
|
|
220
|
+
Rt.displayName = "AlertDialog.Trigger";
|
|
221
|
+
const St = t.forwardRef(({ align: e, ...a }, r) => {
|
|
222
|
+
const { align: s, ...n } = Nt, { className: o } = m({ align: e }, { align: s }), { className: l, forceMount: c, container: u, ...p } = m(a, n);
|
|
223
|
+
return t.createElement(or, { container: u, forceMount: c }, t.createElement(L, { asChild: !0 }, t.createElement(lr, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, t.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, t.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${o}` }, t.createElement(cr, { ...p, ref: r, className: i("rt-BaseDialogContent", "rt-AlertDialogContent", l) }))))));
|
|
224
|
+
});
|
|
225
|
+
St.displayName = "AlertDialog.Content";
|
|
226
|
+
const xt = t.forwardRef((e, a) => t.createElement(dr, { asChild: !0 }, t.createElement(De, { size: "5", mb: "3", trim: "start", ...e, asChild: !1, ref: a })));
|
|
227
|
+
xt.displayName = "AlertDialog.Title";
|
|
228
|
+
const Tt = t.forwardRef((e, a) => t.createElement(ir, { asChild: !0 }, t.createElement(z, { as: "p", size: "3", ...e, asChild: !1, ref: a })));
|
|
229
|
+
Tt.displayName = "AlertDialog.Description";
|
|
230
|
+
const Mt = t.forwardRef(({ children: e, ...a }, r) => t.createElement(sr, { ...a, ref: r, asChild: !0 }, V(e)));
|
|
231
|
+
Mt.displayName = "AlertDialog.Action";
|
|
232
|
+
const Pt = t.forwardRef(({ children: e, ...a }, r) => t.createElement(nr, { ...a, ref: r, asChild: !0 }, V(e)));
|
|
233
|
+
Pt.displayName = "AlertDialog.Cancel";
|
|
234
|
+
const Sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
235
235
|
__proto__: null,
|
|
236
|
-
Action:
|
|
237
|
-
Cancel:
|
|
238
|
-
Content:
|
|
239
|
-
Description:
|
|
240
|
-
Root:
|
|
241
|
-
Title:
|
|
242
|
-
Trigger:
|
|
243
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
244
|
-
function
|
|
236
|
+
Action: Mt,
|
|
237
|
+
Cancel: Pt,
|
|
238
|
+
Content: St,
|
|
239
|
+
Description: Tt,
|
|
240
|
+
Root: Et,
|
|
241
|
+
Title: xt,
|
|
242
|
+
Trigger: Rt
|
|
243
|
+
}, Symbol.toStringTag, { value: "Module" })), xc = pr, Qs = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Us = ["solid", "soft"], Js = { ...N, size: { type: "enum", className: "rt-r-size", values: Qs, default: "3", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Us, default: "soft" }, ...te, ...E, ...B, fallback: { type: "ReactNode", required: !0 } };
|
|
244
|
+
function Ve(e, a) {
|
|
245
245
|
const { asChild: r, children: s } = e;
|
|
246
246
|
if (!r) return typeof a == "function" ? a(s) : a;
|
|
247
247
|
const n = t.Children.only(s);
|
|
248
248
|
return t.cloneElement(n, { children: typeof a == "function" ? a(n.props.children) : a });
|
|
249
249
|
}
|
|
250
|
-
const
|
|
251
|
-
const { asChild: r, children: s, className: n, style:
|
|
252
|
-
return t.createElement(
|
|
250
|
+
const It = t.forwardRef((e, a) => {
|
|
251
|
+
const { asChild: r, children: s, className: n, style: o, color: l, radius: c, ...u } = m(e, Js, g);
|
|
252
|
+
return t.createElement(fr, { "data-accent-color": l, "data-radius": c, className: i("rt-reset", "rt-AvatarRoot", n), style: o, asChild: r }, Ve({ asChild: r, children: s }, t.createElement(zt, { ref: a, ...u })));
|
|
253
253
|
});
|
|
254
|
-
|
|
255
|
-
const
|
|
254
|
+
It.displayName = "Avatar";
|
|
255
|
+
const zt = t.forwardRef(({ fallback: e, ...a }, r) => {
|
|
256
256
|
const [s, n] = t.useState("idle");
|
|
257
|
-
return t.createElement(t.Fragment, null, s === "idle" || s === "loading" ? t.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? t.createElement(
|
|
258
|
-
var
|
|
259
|
-
(
|
|
257
|
+
return t.createElement(t.Fragment, null, s === "idle" || s === "loading" ? t.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? t.createElement(gr, { className: i("rt-AvatarFallback", { "rt-one-letter": typeof e == "string" && e.length === 1, "rt-two-letters": typeof e == "string" && e.length === 2 }), delayMs: 0 }, e) : null, t.createElement(hr, { ref: r, className: "rt-AvatarImage", ...a, onLoadingStatusChange: (o) => {
|
|
258
|
+
var l;
|
|
259
|
+
(l = a.onLoadingStatusChange) == null || l.call(a, o), n(o);
|
|
260
260
|
} }));
|
|
261
261
|
});
|
|
262
|
-
|
|
263
|
-
const
|
|
264
|
-
const { asChild: r, className: s, color: n, radius:
|
|
265
|
-
return t.createElement(c, { "data-accent-color": n, "data-radius":
|
|
262
|
+
zt.displayName = "AvatarImpl";
|
|
263
|
+
const en = ["1", "2", "3"], tn = ["solid", "soft", "surface", "outline"], an = { ...N, size: { type: "enum", className: "rt-r-size", values: en, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: tn, default: "soft" }, ...te, ...E, ...B }, rn = t.forwardRef((e, a) => {
|
|
264
|
+
const { asChild: r, className: s, color: n, radius: o, ...l } = m(e, an, g), c = r ? w : "span";
|
|
265
|
+
return t.createElement(c, { "data-accent-color": n, "data-radius": o, ...l, ref: a, className: i("rt-reset", "rt-Badge", s) });
|
|
266
266
|
});
|
|
267
|
-
|
|
268
|
-
const
|
|
269
|
-
const { asChild: r, children: s, className: n, ...
|
|
270
|
-
return t.createElement(z, { asChild: !0, ...
|
|
267
|
+
rn.displayName = "Badge";
|
|
268
|
+
const sn = t.forwardRef((e, a) => {
|
|
269
|
+
const { asChild: r, children: s, className: n, ...o } = e, l = r ? w : "blockquote";
|
|
270
|
+
return t.createElement(z, { asChild: !0, ...o, ref: a, className: i("rt-Blockquote", n) }, t.createElement(l, null, s));
|
|
271
271
|
});
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
const { className: r, asChild: s, as: n = "div", ...
|
|
275
|
-
return t.createElement(s ?
|
|
272
|
+
sn.displayName = "Blockquote";
|
|
273
|
+
const Oe = w, nn = ["div", "span"], on = ["none", "inline", "inline-block", "block", "contents"], ln = { as: { type: "enum", values: nn, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: on, responsive: !0 } }, G = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], de = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: G, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: G, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: G, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: G, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: G, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: G, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: G, responsive: !0 } }, be = ["visible", "hidden", "clip", "scroll", "auto"], cn = ["static", "relative", "absolute", "fixed", "sticky"], re = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], un = ["0", "1"], dn = ["0", "1"], fe = { ...de, ...S, ...ee, position: { type: "enum", className: "rt-r-position", values: cn, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: re, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: re, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: re, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: re, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: re, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: be, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: be, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: be, 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: un, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: dn, 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 } }, ae = t.forwardRef((e, a) => {
|
|
274
|
+
const { className: r, asChild: s, as: n = "div", ...o } = m(e, ln, fe, g);
|
|
275
|
+
return t.createElement(s ? Oe : n, { ...o, ref: a, className: i("rt-Box", r) });
|
|
276
276
|
});
|
|
277
|
-
|
|
278
|
-
const
|
|
279
|
-
function
|
|
277
|
+
ae.displayName = "Box";
|
|
278
|
+
const mn = ["1", "2", "3", "4"], pn = ["classic", "solid", "soft", "surface", "outline", "ghost"], Ye = { ...N, size: { type: "enum", className: "rt-r-size", values: mn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: pn, default: "solid" }, ...te, ...E, ...B, loading: { type: "boolean", className: "rt-loading", default: !1 } }, we = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], _t = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: we, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: we, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: we, responsive: !0 } }, fn = ["div", "span"], gn = ["none", "inline-flex", "flex"], hn = ["row", "column", "row-reverse", "column-reverse"], vn = ["start", "center", "end", "baseline", "stretch"], Nn = ["start", "center", "end", "between"], yn = ["nowrap", "wrap", "wrap-reverse"], kt = { as: { type: "enum", values: fn, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: gn, responsive: !0 }, direction: { type: "enum", className: "rt-r-fd", values: hn, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: vn, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Nn, parseValue: Cn, responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: yn, responsive: !0 }, ..._t };
|
|
279
|
+
function Cn(e) {
|
|
280
280
|
return e === "between" ? "space-between" : e;
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
const { className: r, asChild: s, as: n = "div", ...
|
|
284
|
-
return t.createElement(s ?
|
|
282
|
+
const M = t.forwardRef((e, a) => {
|
|
283
|
+
const { className: r, asChild: s, as: n = "div", ...o } = m(e, kt, fe, g);
|
|
284
|
+
return t.createElement(s ? Oe : n, { ...o, ref: a, className: i("rt-Flex", r) });
|
|
285
285
|
});
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
const { className: r, children: s, loading: n, ...
|
|
286
|
+
M.displayName = "Flex";
|
|
287
|
+
const $n = ["1", "2", "3"], bn = { size: { type: "enum", className: "rt-r-size", values: $n, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, Bt = t.forwardRef((e, a) => {
|
|
288
|
+
const { className: r, children: s, loading: n, ...o } = m(e, bn, g);
|
|
289
289
|
if (!n) return s;
|
|
290
|
-
const
|
|
291
|
-
return s === void 0 ?
|
|
290
|
+
const l = t.createElement("span", { ...o, ref: a, className: i("rt-Spinner", r) }, t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }), t.createElement("span", { className: "rt-SpinnerLeaf" }));
|
|
291
|
+
return s === void 0 ? l : t.createElement(M, { asChild: !0, position: "relative", align: "center", justify: "center" }, t.createElement("span", null, t.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, s), t.createElement(M, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, t.createElement("span", null, l))));
|
|
292
292
|
});
|
|
293
|
-
|
|
294
|
-
const
|
|
295
|
-
function
|
|
293
|
+
Bt.displayName = "Spinner";
|
|
294
|
+
const wn = vr;
|
|
295
|
+
function At(e, a) {
|
|
296
296
|
if (e !== void 0) return typeof e == "string" ? a(e) : Object.fromEntries(Object.entries(e).map(([r, s]) => [r, a(s)]));
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function En(e) {
|
|
299
299
|
return e === "3" ? "3" : "2";
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Rn(e) {
|
|
302
302
|
switch (e) {
|
|
303
303
|
case "1":
|
|
304
304
|
return "1";
|
|
@@ -309,478 +309,478 @@ function mn(e) {
|
|
|
309
309
|
return "3";
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
const
|
|
313
|
-
const { size: r =
|
|
314
|
-
return t.createElement(f, { "data-disabled": u || void 0, "data-accent-color":
|
|
315
|
-
});
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
const
|
|
320
|
-
const { size: r =
|
|
321
|
-
return t.createElement(u, { "data-accent-color":
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
const
|
|
327
|
-
const { size: s } = t.useContext(
|
|
328
|
-
return t.createElement(z, { as: "p", size:
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
const
|
|
332
|
-
const { asChild: r, className: s, ...n } =
|
|
333
|
-
return t.createElement(
|
|
334
|
-
});
|
|
335
|
-
|
|
336
|
-
const
|
|
337
|
-
function
|
|
338
|
-
return
|
|
312
|
+
const je = t.forwardRef((e, a) => {
|
|
313
|
+
const { size: r = Ye.size.default } = e, { className: s, children: n, asChild: o, color: l, radius: c, disabled: u = e.loading, ...p } = m(e, Ye, g), f = o ? w : "button";
|
|
314
|
+
return t.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 }, e.loading ? t.createElement(t.Fragment, null, t.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, n), t.createElement(wn, null, n), t.createElement(M, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, t.createElement("span", null, t.createElement(Bt, { size: At(r, Rn) })))) : n);
|
|
315
|
+
});
|
|
316
|
+
je.displayName = "BaseButton";
|
|
317
|
+
const Dt = t.forwardRef(({ className: e, ...a }, r) => t.createElement(je, { ...a, ref: r, className: i("rt-Button", e) }));
|
|
318
|
+
Dt.displayName = "Button";
|
|
319
|
+
const Sn = ["1", "2", "3"], xn = ["soft", "surface", "outline"], Ze = { ...N, size: { type: "enum", className: "rt-r-size", values: Sn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: xn, default: "soft" }, ...te, ...E }, Lt = t.createContext({}), Vt = t.forwardRef((e, a) => {
|
|
320
|
+
const { size: r = Ze.size.default } = e, { asChild: s, children: n, className: o, color: l, ...c } = m(e, Ze, g), u = s ? w : "div";
|
|
321
|
+
return t.createElement(u, { "data-accent-color": l, ...c, className: i("rt-CalloutRoot", o), ref: a }, t.createElement(Lt.Provider, { value: t.useMemo(() => ({ size: r }), [r]) }, n));
|
|
322
|
+
});
|
|
323
|
+
Vt.displayName = "Callout.Root";
|
|
324
|
+
const Ot = t.forwardRef(({ className: e, ...a }, r) => t.createElement("div", { ...a, className: i("rt-CalloutIcon", e), ref: r }));
|
|
325
|
+
Ot.displayName = "Callout.Icon";
|
|
326
|
+
const jt = t.forwardRef(({ className: e, ...a }, r) => {
|
|
327
|
+
const { size: s } = t.useContext(Lt);
|
|
328
|
+
return t.createElement(z, { as: "p", size: At(s, En), ...a, asChild: !1, ref: r, className: i("rt-CalloutText", e) });
|
|
329
|
+
});
|
|
330
|
+
jt.displayName = "Callout.Text";
|
|
331
|
+
const Tn = ["1", "2", "3", "4", "5"], Mn = ["surface", "classic", "ghost"], Pn = { ...N, size: { type: "enum", className: "rt-r-size", values: Tn, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Mn, default: "surface" } }, Ht = t.forwardRef((e, a) => {
|
|
332
|
+
const { asChild: r, className: s, ...n } = m(e, Pn, g), o = r ? w : "div";
|
|
333
|
+
return t.createElement(o, { ref: a, ...n, className: i("rt-reset", "rt-BaseCard", "rt-Card", s) });
|
|
334
|
+
});
|
|
335
|
+
Ht.displayName = "Card";
|
|
336
|
+
const In = ["div", "span"], zn = ["none", "inline-grid", "grid"], _n = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], kn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Bn = ["row", "column", "dense", "row-dense", "column-dense"], An = ["start", "center", "end", "baseline", "stretch"], Dn = ["start", "center", "end", "between"], Ne = { as: { type: "enum", values: In, default: "div" }, ...N, display: { type: "enum", className: "rt-r-display", values: zn, 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: _n, parseValue: Xe, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: kn, parseValue: Xe, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: Bn, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: An, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Dn, parseValue: Ln, responsive: !0 }, ..._t };
|
|
337
|
+
function Xe(e) {
|
|
338
|
+
return Ne.columns.values.includes(e) ? e : e != null && e.match(/^\d+$/) ? `repeat(${e}, minmax(0, 1fr))` : e;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Ln(e) {
|
|
341
341
|
return e === "between" ? "space-between" : e;
|
|
342
342
|
}
|
|
343
|
-
const
|
|
344
|
-
const { className: r, asChild: s, as: n = "div", ...
|
|
345
|
-
return t.createElement(s ?
|
|
346
|
-
});
|
|
347
|
-
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
const
|
|
355
|
-
|
|
356
|
-
const
|
|
357
|
-
const { className: r, color: s, checked: n, defaultChecked:
|
|
358
|
-
return t.createElement(
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
const
|
|
362
|
-
const { asChild: r, className: s, color: n, ...
|
|
363
|
-
return t.createElement(c, { "data-accent-color":
|
|
364
|
-
});
|
|
365
|
-
|
|
366
|
-
const
|
|
367
|
-
function
|
|
343
|
+
const Vn = ["1", "2", "3"], On = ["classic", "surface", "soft"], jn = { size: { type: "enum", className: "rt-r-size", values: Vn, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: On, default: "surface" }, ...$, ...E }, Gt = t.forwardRef((e, a) => {
|
|
344
|
+
const { className: r, asChild: s, as: n = "div", ...o } = m(e, Ne, fe, g);
|
|
345
|
+
return t.createElement(s ? Oe : n, { ...o, ref: a, className: i("rt-Grid", r) });
|
|
346
|
+
});
|
|
347
|
+
Gt.displayName = "Grid";
|
|
348
|
+
const Ft = P.forwardRef((e, a) => P.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, ref: a }, P.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" })));
|
|
349
|
+
Ft.displayName = "ThickDividerHorizontalIcon";
|
|
350
|
+
const ge = P.forwardRef((e, a) => P.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, ref: a }, P.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" })));
|
|
351
|
+
ge.displayName = "ThickCheckIcon";
|
|
352
|
+
const Wt = P.forwardRef((e, a) => P.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, ref: a }, P.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" })));
|
|
353
|
+
Wt.displayName = "ChevronDownIcon";
|
|
354
|
+
const qt = P.forwardRef((e, a) => P.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, ref: a }, P.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" })));
|
|
355
|
+
qt.displayName = "ThickChevronRightIcon";
|
|
356
|
+
const Hn = t.forwardRef((e, a) => {
|
|
357
|
+
const { className: r, color: s, checked: n, defaultChecked: o, onCheckedChange: l, ...c } = m(e, jn, g), [u, p] = rt({ prop: n, defaultProp: o, onChange: l });
|
|
358
|
+
return t.createElement(Nr, { "data-accent-color": s, ...c, defaultChecked: o, checked: u, onCheckedChange: p, asChild: !1, ref: a, className: i("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxRoot", r) }, t.createElement(yr, { asChild: !0, className: "rt-BaseCheckboxIndicator rt-CheckboxIndicator" }, t.createElement(u === "indeterminate" ? Ft : ge, null)));
|
|
359
|
+
});
|
|
360
|
+
Hn.displayName = "Checkbox";
|
|
361
|
+
const Gn = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Fn = ["solid", "soft", "outline", "ghost"], Wn = { ...N, size: { type: "enum", className: "rt-r-size", values: Gn, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Fn, default: "soft" }, ...ye, ...te, ...E, ...X, ...Z }, qn = t.forwardRef((e, a) => {
|
|
362
|
+
const { asChild: r, className: s, color: n, ...o } = m(e, Wn, g), l = e.variant === "ghost" ? n || void 0 : n, c = r ? w : "code";
|
|
363
|
+
return t.createElement(c, { "data-accent-color": l, ...o, ref: a, className: i("rt-reset", "rt-Code", s) });
|
|
364
|
+
});
|
|
365
|
+
qn.displayName = "Code";
|
|
366
|
+
const Kn = ["1", "2", "3", "4"], Yn = ["none", "initial"], Zn = ["left", "center", "right"], Xn = { ...N, size: { type: "enum", className: "rt-r-size", values: Kn, default: "4", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: Yn, parseValue: Qn, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Zn, parseValue: Un, responsive: !0 } };
|
|
367
|
+
function Qn(e) {
|
|
368
368
|
return e === "initial" ? "flex" : e;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Un(e) {
|
|
371
371
|
return e === "left" ? "start" : e === "right" ? "end" : e;
|
|
372
372
|
}
|
|
373
|
-
const
|
|
374
|
-
const { asChild: u, children: p, className: f, ...
|
|
375
|
-
return t.createElement(
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
const
|
|
379
|
-
function
|
|
380
|
-
const { m: a, mx: r, my: s, mt: n, mr:
|
|
381
|
-
return { m: a, mx: r, my: s, mt: n, mr:
|
|
373
|
+
const Jn = t.forwardRef(({ width: e, minWidth: a, maxWidth: r, height: s, minHeight: n, maxHeight: o, ...l }, c) => {
|
|
374
|
+
const { asChild: u, children: p, className: f, ...h } = m(l, Xn, fe, g), { className: y, style: b } = m({ width: e, minWidth: a, maxWidth: r, height: s, minHeight: n, maxHeight: o }, S, ee), x = u ? w : "div";
|
|
375
|
+
return t.createElement(x, { ...h, ref: c, className: i("rt-Container", f) }, Ve({ asChild: u, children: p }, (v) => t.createElement("div", { className: i("rt-ContainerInner", y), style: b }, v)));
|
|
376
|
+
});
|
|
377
|
+
Jn.displayName = "Container";
|
|
378
|
+
const eo = ["1", "2", "3"], se = { ...N, size: { values: eo, default: "1" }, ...B, scrollbars: { default: "both" } };
|
|
379
|
+
function to(e) {
|
|
380
|
+
const { m: a, mx: r, my: s, mt: n, mr: o, mb: l, ml: c, ...u } = e;
|
|
381
|
+
return { m: a, mx: r, my: s, mt: n, mr: o, mb: l, ml: c, rest: u };
|
|
382
382
|
}
|
|
383
|
-
const
|
|
384
|
-
function
|
|
385
|
-
const [a, r] =
|
|
386
|
-
return [i(a, s,
|
|
383
|
+
const F = g.m.values;
|
|
384
|
+
function ao(e) {
|
|
385
|
+
const [a, r] = j({ className: "rt-r-m", customProperties: ["--margin"], propValues: F, value: e.m }), [s, n] = j({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: F, value: e.mx }), [o, l] = j({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: F, value: e.my }), [c, u] = j({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: F, value: e.mt }), [p, f] = j({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: F, value: e.mr }), [h, y] = j({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: F, value: e.mb }), [b, x] = j({ className: "rt-r-ml", customProperties: ["--margin-left"], propValues: F, value: e.ml });
|
|
386
|
+
return [i(a, s, o, c, p, h, b), pe(r, n, l, u, f, y, x)];
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
const { rest: r, ...s } =
|
|
390
|
-
return t.createElement(
|
|
391
|
-
});
|
|
392
|
-
|
|
393
|
-
const
|
|
394
|
-
|
|
395
|
-
const
|
|
396
|
-
|
|
397
|
-
const
|
|
398
|
-
const r =
|
|
399
|
-
return t.createElement(
|
|
400
|
-
});
|
|
401
|
-
|
|
402
|
-
const
|
|
403
|
-
|
|
404
|
-
const
|
|
405
|
-
const { className: r, children: s, color: n =
|
|
406
|
-
return t.createElement(
|
|
407
|
-
});
|
|
408
|
-
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
const
|
|
412
|
-
|
|
413
|
-
const
|
|
414
|
-
const { children: r, className: s, color: n =
|
|
415
|
-
return t.createElement(
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
const
|
|
419
|
-
const { children: r, className: s, shortcut: n, color:
|
|
420
|
-
return t.createElement(
|
|
421
|
-
});
|
|
422
|
-
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
const
|
|
388
|
+
const Ce = t.forwardRef((e, a) => {
|
|
389
|
+
const { rest: r, ...s } = to(e), [n, o] = ao(s), { asChild: l, children: c, className: u, style: p, type: f, scrollHideDelay: h = f !== "scroll" ? 0 : void 0, dir: y, size: b = se.size.default, radius: x = se.radius.default, scrollbars: v = se.scrollbars.default, ...k } = r;
|
|
390
|
+
return t.createElement(st, { type: f, scrollHideDelay: h, className: i("rt-ScrollAreaRoot", n, u), style: pe(o, p), asChild: l }, Ve({ asChild: l, children: c }, (A) => t.createElement(t.Fragment, null, t.createElement(nt, { ...k, ref: a, className: "rt-ScrollAreaViewport" }, A), t.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), v !== "vertical" ? t.createElement(Se, { "data-radius": x, orientation: "horizontal", className: i("rt-ScrollAreaScrollbar", me({ className: "rt-r-size", value: b, propValues: se.size.values })) }, t.createElement(xe, { className: "rt-ScrollAreaThumb" })) : null, v !== "horizontal" ? t.createElement(Se, { "data-radius": x, orientation: "vertical", className: i("rt-ScrollAreaScrollbar", me({ className: "rt-r-size", value: b, propValues: se.size.values })) }, t.createElement(xe, { className: "rt-ScrollAreaThumb" })) : null, v === "both" ? t.createElement(Cr, { className: "rt-ScrollAreaCorner" }) : null)));
|
|
391
|
+
});
|
|
392
|
+
Ce.displayName = "ScrollArea";
|
|
393
|
+
const ro = ["1", "2"], so = ["solid", "soft"], ce = { size: { type: "enum", className: "rt-r-size", values: ro, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: so, default: "solid" }, ...$, ...E }, no = { ...N, ...$ }, oo = { ...$ }, lo = { ...$ }, Kt = (e) => t.createElement(Tr, { ...e });
|
|
394
|
+
Kt.displayName = "ContextMenu.Root";
|
|
395
|
+
const Yt = t.forwardRef(({ children: e, ...a }, r) => t.createElement(_r, { ...a, ref: r, asChild: !0 }, V(e)));
|
|
396
|
+
Yt.displayName = "ContextMenu.Trigger";
|
|
397
|
+
const Zt = t.createContext({}), Xt = t.forwardRef((e, a) => {
|
|
398
|
+
const r = bt(), { size: s = ce.size.default, variant: n = ce.variant.default, highContrast: o = ce.highContrast.default } = e, { className: l, children: c, color: u, container: p, forceMount: f, ...h } = m(e, ce), y = u || r.accentColor;
|
|
399
|
+
return t.createElement(lt, { container: p, forceMount: f }, t.createElement(L, { asChild: !0 }, t.createElement(br, { "data-accent-color": y, alignOffset: -Number(s) * 4, collisionPadding: 10, ...h, asChild: !1, ref: a, className: i("rt-PopperContent", "rt-BaseMenuContent", "rt-ContextMenuContent", l) }, t.createElement(Ce, { type: "auto" }, t.createElement("div", { className: i("rt-BaseMenuViewport", "rt-ContextMenuViewport") }, t.createElement(Zt.Provider, { value: t.useMemo(() => ({ size: s, variant: n, color: y, highContrast: o }), [s, n, y, o]) }, c))))));
|
|
400
|
+
});
|
|
401
|
+
Xt.displayName = "ContextMenu.Content";
|
|
402
|
+
const Qt = t.forwardRef(({ className: e, ...a }, r) => t.createElement(Rr, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuLabel", "rt-ContextMenuLabel", e) }));
|
|
403
|
+
Qt.displayName = "ContextMenu.Label";
|
|
404
|
+
const Ut = t.forwardRef((e, a) => {
|
|
405
|
+
const { className: r, children: s, color: n = no.color.default, shortcut: o, ...l } = e;
|
|
406
|
+
return t.createElement(Er, { "data-accent-color": n, ...l, ref: a, className: i("rt-reset", "rt-BaseMenuItem", "rt-ContextMenuItem", r) }, t.createElement(Pe, null, s), o && t.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, o));
|
|
407
|
+
});
|
|
408
|
+
Ut.displayName = "ContextMenu.Item";
|
|
409
|
+
const Jt = t.forwardRef(({ className: e, ...a }, r) => t.createElement(wr, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuGroup", "rt-ContextMenuGroup", e) }));
|
|
410
|
+
Jt.displayName = "ContextMenu.Group";
|
|
411
|
+
const ea = t.forwardRef(({ className: e, ...a }, r) => t.createElement(Sr, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuRadioGroup", "rt-ContextMenuRadioGroup", e) }));
|
|
412
|
+
ea.displayName = "ContextMenu.RadioGroup";
|
|
413
|
+
const ta = t.forwardRef((e, a) => {
|
|
414
|
+
const { children: r, className: s, color: n = lo.color.default, ...o } = e;
|
|
415
|
+
return t.createElement(xr, { ...o, asChild: !1, ref: a, "data-accent-color": n, className: i("rt-BaseMenuItem", "rt-BaseMenuRadioItem", "rt-ContextMenuItem", "rt-ContextMenuRadioItem", s) }, t.createElement(Pe, null, r), t.createElement(ot, { className: "rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator" }, t.createElement(ge, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })));
|
|
416
|
+
});
|
|
417
|
+
ta.displayName = "ContextMenu.RadioItem";
|
|
418
|
+
const aa = t.forwardRef((e, a) => {
|
|
419
|
+
const { children: r, className: s, shortcut: n, color: o = oo.color.default, ...l } = e;
|
|
420
|
+
return t.createElement($r, { ...l, asChild: !1, ref: a, "data-accent-color": o, className: i("rt-BaseMenuItem", "rt-BaseMenuCheckboxItem", "rt-ContextMenuItem", "rt-ContextMenuCheckboxItem", s) }, t.createElement(Pe, null, r), t.createElement(ot, { className: "rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator" }, t.createElement(ge, { className: "rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon" })), n && t.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, n));
|
|
421
|
+
});
|
|
422
|
+
aa.displayName = "ContextMenu.CheckboxItem";
|
|
423
|
+
const ra = (e) => t.createElement(Pr, { ...e });
|
|
424
|
+
ra.displayName = "ContextMenu.Sub";
|
|
425
|
+
const sa = t.forwardRef((e, a) => {
|
|
426
426
|
const { className: r, children: s, ...n } = e;
|
|
427
|
-
return t.createElement(
|
|
427
|
+
return t.createElement(zr, { ...n, asChild: !1, ref: a, className: i("rt-BaseMenuItem", "rt-BaseMenuSubTrigger", "rt-ContextMenuItem", "rt-ContextMenuSubTrigger", r) }, s, t.createElement("div", { className: "rt-BaseMenuShortcut rt-ContextMenuShortcut" }, t.createElement(qt, { className: "rt-BaseMenuSubTriggerIcon rt-ContextMenuSubTriggerIcon" })));
|
|
428
428
|
});
|
|
429
|
-
|
|
430
|
-
const
|
|
431
|
-
const { size: r, variant: s, color: n, highContrast:
|
|
432
|
-
return t.createElement(
|
|
429
|
+
sa.displayName = "ContextMenu.SubTrigger";
|
|
430
|
+
const na = t.forwardRef((e, a) => {
|
|
431
|
+
const { size: r, variant: s, color: n, highContrast: o } = t.useContext(Zt), { className: l, children: c, container: u, forceMount: p, ...f } = m({ size: r, variant: s, color: n, highContrast: o, ...e }, ce);
|
|
432
|
+
return t.createElement(lt, { container: u, forceMount: p }, t.createElement(L, { asChild: !0 }, t.createElement(Ir, { "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) }, t.createElement(Ce, { type: "auto" }, t.createElement("div", { className: i("rt-BaseMenuViewport", "rt-ContextMenuViewport") }, c)))));
|
|
433
433
|
});
|
|
434
|
-
|
|
435
|
-
const
|
|
436
|
-
|
|
437
|
-
const
|
|
434
|
+
na.displayName = "ContextMenu.SubContent";
|
|
435
|
+
const oa = t.forwardRef(({ className: e, ...a }, r) => t.createElement(Mr, { ...a, asChild: !1, ref: r, className: i("rt-BaseMenuSeparator", "rt-ContextMenuSeparator", e) }));
|
|
436
|
+
oa.displayName = "ContextMenu.Separator";
|
|
437
|
+
const Tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
438
438
|
__proto__: null,
|
|
439
|
-
CheckboxItem:
|
|
440
|
-
Content:
|
|
441
|
-
Group:
|
|
442
|
-
Item:
|
|
443
|
-
Label:
|
|
444
|
-
RadioGroup:
|
|
445
|
-
RadioItem:
|
|
446
|
-
Root:
|
|
447
|
-
Separator:
|
|
448
|
-
Sub:
|
|
449
|
-
SubContent:
|
|
450
|
-
SubTrigger:
|
|
451
|
-
Trigger:
|
|
452
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
453
|
-
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
const
|
|
457
|
-
const { align: s, ...n } =
|
|
458
|
-
return t.createElement(
|
|
459
|
-
});
|
|
460
|
-
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
const
|
|
464
|
-
|
|
465
|
-
const
|
|
466
|
-
|
|
467
|
-
const
|
|
439
|
+
CheckboxItem: aa,
|
|
440
|
+
Content: Xt,
|
|
441
|
+
Group: Jt,
|
|
442
|
+
Item: Ut,
|
|
443
|
+
Label: Qt,
|
|
444
|
+
RadioGroup: ea,
|
|
445
|
+
RadioItem: ta,
|
|
446
|
+
Root: Kt,
|
|
447
|
+
Separator: oa,
|
|
448
|
+
Sub: ra,
|
|
449
|
+
SubContent: na,
|
|
450
|
+
SubTrigger: sa,
|
|
451
|
+
Trigger: Yt
|
|
452
|
+
}, Symbol.toStringTag, { value: "Module" })), la = (e) => t.createElement(Vr, { ...e, modal: !0 });
|
|
453
|
+
la.displayName = "Dialog.Root";
|
|
454
|
+
const ca = t.forwardRef(({ children: e, ...a }, r) => t.createElement(jr, { ...a, ref: r, asChild: !0 }, V(e)));
|
|
455
|
+
ca.displayName = "Dialog.Trigger";
|
|
456
|
+
const ia = t.forwardRef(({ align: e, ...a }, r) => {
|
|
457
|
+
const { align: s, ...n } = Nt, { className: o } = m({ align: e }, { align: s }), { className: l, forceMount: c, container: u, ...p } = m(a, n);
|
|
458
|
+
return t.createElement(Br, { container: u, forceMount: c }, t.createElement(L, { asChild: !0 }, t.createElement(Ar, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, t.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, t.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${o}` }, t.createElement(Dr, { ...p, ref: r, className: i("rt-BaseDialogContent", "rt-DialogContent", l) }))))));
|
|
459
|
+
});
|
|
460
|
+
ia.displayName = "Dialog.Content";
|
|
461
|
+
const ua = t.forwardRef((e, a) => t.createElement(Or, { asChild: !0 }, t.createElement(De, { size: "5", mb: "3", trim: "start", ...e, asChild: !1, ref: a })));
|
|
462
|
+
ua.displayName = "Dialog.Title";
|
|
463
|
+
const da = t.forwardRef((e, a) => t.createElement(Lr, { asChild: !0 }, t.createElement(z, { as: "p", size: "3", ...e, asChild: !1, ref: a })));
|
|
464
|
+
da.displayName = "Dialog.Description";
|
|
465
|
+
const ma = t.forwardRef(({ children: e, ...a }, r) => t.createElement(kr, { ...a, ref: r, asChild: !0 }, V(e)));
|
|
466
|
+
ma.displayName = "Dialog.Close";
|
|
467
|
+
const Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
468
468
|
__proto__: null,
|
|
469
|
-
Close:
|
|
470
|
-
Content:
|
|
471
|
-
Description:
|
|
472
|
-
Root:
|
|
473
|
-
Title:
|
|
474
|
-
Trigger:
|
|
475
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
476
|
-
const { asChild: r, className: s, ...n } =
|
|
477
|
-
return t.createElement(
|
|
478
|
-
});
|
|
479
|
-
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
const
|
|
485
|
-
const { className: r, forceMount: s, container: n, ...
|
|
486
|
-
return t.createElement(
|
|
469
|
+
Close: ma,
|
|
470
|
+
Content: ia,
|
|
471
|
+
Description: da,
|
|
472
|
+
Root: la,
|
|
473
|
+
Title: ua,
|
|
474
|
+
Trigger: ca
|
|
475
|
+
}, Symbol.toStringTag, { value: "Module" })), co = { ...N, ...X, ...Z }, io = t.forwardRef((e, a) => {
|
|
476
|
+
const { asChild: r, className: s, ...n } = m(e, co), o = r ? w : "em";
|
|
477
|
+
return t.createElement(o, { ...n, ref: a, className: i("rt-Em", s) });
|
|
478
|
+
});
|
|
479
|
+
io.displayName = "Em";
|
|
480
|
+
const uo = ["1", "2", "3"], mo = { ...N, size: { type: "enum", className: "rt-r-size", values: uo, default: "2", responsive: !0 }, width: S.width, minWidth: S.minWidth, maxWidth: { ...S.maxWidth, default: "480px" }, ...ee }, pa = (e) => t.createElement(Fr, { closeDelay: 150, openDelay: 200, ...e });
|
|
481
|
+
pa.displayName = "HoverCard.Root";
|
|
482
|
+
const fa = t.forwardRef(({ children: e, className: a, ...r }, s) => t.createElement(Wr, { ref: s, className: i("rt-HoverCardTrigger", a), ...r, asChild: !0 }, V(e)));
|
|
483
|
+
fa.displayName = "HoverCard.Trigger";
|
|
484
|
+
const ga = t.forwardRef((e, a) => {
|
|
485
|
+
const { className: r, forceMount: s, container: n, ...o } = m(e, mo);
|
|
486
|
+
return t.createElement(Hr, { container: n, forceMount: s }, t.createElement(L, { asChild: !0 }, t.createElement(Gr, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: a, className: i("rt-PopperContent", "rt-HoverCardContent", r) })));
|
|
487
487
|
});
|
|
488
|
-
|
|
489
|
-
const
|
|
488
|
+
ga.displayName = "HoverCard.Content";
|
|
489
|
+
const Pc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
490
490
|
__proto__: null,
|
|
491
|
-
Content:
|
|
492
|
-
Root:
|
|
493
|
-
Trigger:
|
|
494
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
495
|
-
|
|
496
|
-
const
|
|
497
|
-
function
|
|
491
|
+
Content: ga,
|
|
492
|
+
Root: pa,
|
|
493
|
+
Trigger: fa
|
|
494
|
+
}, Symbol.toStringTag, { value: "Module" })), ha = t.forwardRef(({ className: e, ...a }, r) => t.createElement(je, { ...a, ref: r, className: i("rt-IconButton", e) }));
|
|
495
|
+
ha.displayName = "IconButton";
|
|
496
|
+
const po = ["all", "x", "y", "top", "bottom", "left", "right"], fo = ["border-box", "padding-box"], W = ["current", "0"], go = { ...N, side: { type: "enum", className: "rt-r-side", values: po, default: "all", responsive: !0 }, clip: { type: "enum", className: "rt-r-clip", values: fo, default: "border-box", responsive: !0 }, p: { type: "enum", className: "rt-r-p", values: W, parseValue: q, responsive: !0 }, px: { type: "enum", className: "rt-r-px", values: W, parseValue: q, responsive: !0 }, py: { type: "enum", className: "rt-r-py", values: W, parseValue: q, responsive: !0 }, pt: { type: "enum", className: "rt-r-pt", values: W, parseValue: q, responsive: !0 }, pr: { type: "enum", className: "rt-r-pr", values: W, parseValue: q, responsive: !0 }, pb: { type: "enum", className: "rt-r-pb", values: W, parseValue: q, responsive: !0 }, pl: { type: "enum", className: "rt-r-pl", values: W, parseValue: q, responsive: !0 } };
|
|
497
|
+
function q(e) {
|
|
498
498
|
return e === "current" ? "inset" : e;
|
|
499
499
|
}
|
|
500
|
-
const
|
|
501
|
-
const { asChild: r, className: s, ...n } =
|
|
502
|
-
return t.createElement(
|
|
503
|
-
});
|
|
504
|
-
|
|
505
|
-
const
|
|
506
|
-
const { asChild: r, className: s, ...n } =
|
|
507
|
-
return t.createElement(
|
|
508
|
-
});
|
|
509
|
-
|
|
510
|
-
const
|
|
511
|
-
const { children: r, className: s, color: n, asChild:
|
|
512
|
-
return t.createElement(z, { ...
|
|
513
|
-
});
|
|
514
|
-
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
-
const
|
|
520
|
-
const { className: r, forceMount: s, container: n, ...
|
|
521
|
-
return t.createElement(
|
|
522
|
-
});
|
|
523
|
-
|
|
524
|
-
const
|
|
525
|
-
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
const
|
|
500
|
+
const ho = t.forwardRef((e, a) => {
|
|
501
|
+
const { asChild: r, className: s, ...n } = m(e, go, g), o = r ? w : "div";
|
|
502
|
+
return t.createElement(o, { ...n, ref: a, className: i("rt-Inset", s) });
|
|
503
|
+
});
|
|
504
|
+
ho.displayName = "Inset";
|
|
505
|
+
const vo = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], No = { ...N, size: { type: "enum", className: "rt-r-size", values: vo, responsive: !0 } }, yo = t.forwardRef((e, a) => {
|
|
506
|
+
const { asChild: r, className: s, ...n } = m(e, No, g), o = r ? w : "kbd";
|
|
507
|
+
return t.createElement(o, { ...n, ref: a, className: i("rt-reset", "rt-Kbd", s) });
|
|
508
|
+
});
|
|
509
|
+
yo.displayName = "Kbd";
|
|
510
|
+
const Co = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], $o = ["auto", "always", "hover", "none"], bo = { ...N, size: { type: "enum", className: "rt-r-size", values: Co, responsive: !0 }, ...ye, ...Be, ...X, ...Z, underline: { type: "enum", className: "rt-underline", values: $o, default: "auto" }, ...te, ...E }, wo = t.forwardRef((e, a) => {
|
|
511
|
+
const { children: r, className: s, color: n, asChild: o, ...l } = m(e, bo);
|
|
512
|
+
return t.createElement(z, { ...l, "data-accent-color": n, ref: a, asChild: !0, className: i("rt-reset", "rt-Link", s) }, o ? r : t.createElement("a", null, r));
|
|
513
|
+
});
|
|
514
|
+
wo.displayName = "Link";
|
|
515
|
+
const Eo = ["1", "2", "3", "4"], Ro = { ...N, size: { type: "enum", className: "rt-r-size", values: Eo, default: "2", responsive: !0 }, width: S.width, minWidth: S.minWidth, maxWidth: { ...S.maxWidth, default: "480px" }, ...ee }, va = (e) => t.createElement(Xr, { ...e });
|
|
516
|
+
va.displayName = "Popover.Root";
|
|
517
|
+
const Na = t.forwardRef(({ children: e, ...a }, r) => t.createElement(Qr, { ...a, ref: r, asChild: !0 }, V(e)));
|
|
518
|
+
Na.displayName = "Popover.Trigger";
|
|
519
|
+
const ya = t.forwardRef((e, a) => {
|
|
520
|
+
const { className: r, forceMount: s, container: n, ...o } = m(e, Ro);
|
|
521
|
+
return t.createElement(Yr, { container: n, forceMount: s }, t.createElement(L, { asChild: !0 }, t.createElement(Zr, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: a, className: i("rt-PopperContent", "rt-PopoverContent", r) })));
|
|
522
|
+
});
|
|
523
|
+
ya.displayName = "Popover.Content";
|
|
524
|
+
const Ca = t.forwardRef(({ children: e, ...a }, r) => t.createElement(Kr, { ...a, ref: r, asChild: !0 }, V(e)));
|
|
525
|
+
Ca.displayName = "Popover.Close";
|
|
526
|
+
const $a = t.forwardRef(({ children: e, ...a }, r) => t.createElement(qr, { ...a, ref: r }));
|
|
527
|
+
$a.displayName = "Popover.Anchor";
|
|
528
|
+
const Ic = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
529
529
|
__proto__: null,
|
|
530
|
-
Anchor:
|
|
531
|
-
Close:
|
|
532
|
-
Content:
|
|
533
|
-
Root:
|
|
534
|
-
Trigger:
|
|
535
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
536
|
-
const { className: r, style: s, color: n, radius:
|
|
537
|
-
return t.createElement(
|
|
538
|
-
});
|
|
539
|
-
|
|
540
|
-
const
|
|
541
|
-
const { asChild: r, className: s, ...n } =
|
|
542
|
-
return t.createElement(
|
|
543
|
-
});
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
const { className: r, color: s, ...n } =
|
|
547
|
-
return t.createElement(
|
|
548
|
-
});
|
|
549
|
-
|
|
550
|
-
const
|
|
551
|
-
|
|
552
|
-
const
|
|
553
|
-
const { __scopeRadioGroup:
|
|
554
|
-
return t.createElement(
|
|
555
|
-
});
|
|
556
|
-
|
|
557
|
-
const
|
|
558
|
-
const { __scopeRadioGroup: r, children: s, className: n, style:
|
|
559
|
-
return s ? t.createElement(z, { as: "label", size: c, className: i("rt-RadioGroupItem", n), style:
|
|
530
|
+
Anchor: $a,
|
|
531
|
+
Close: Ca,
|
|
532
|
+
Content: ya,
|
|
533
|
+
Root: va,
|
|
534
|
+
Trigger: Na
|
|
535
|
+
}, Symbol.toStringTag, { value: "Module" })), So = ["1", "2", "3"], xo = ["classic", "surface", "soft"], To = { size: { type: "enum", className: "rt-r-size", values: So, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: xo, default: "surface" }, ...$, ...E, ...B, duration: { type: "string" } }, Mo = t.forwardRef((e, a) => {
|
|
536
|
+
const { className: r, style: s, color: n, radius: o, duration: l, ...c } = m(e, To, g);
|
|
537
|
+
return t.createElement(Ur, { "data-accent-color": n, "data-radius": o, ref: a, className: i("rt-ProgressRoot", r), style: pe({ "--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 }, t.createElement(Jr, { className: "rt-ProgressIndicator" }));
|
|
538
|
+
});
|
|
539
|
+
Mo.displayName = "Progress";
|
|
540
|
+
const Po = { ...N, ...X, ...Z }, Io = t.forwardRef((e, a) => {
|
|
541
|
+
const { asChild: r, className: s, ...n } = m(e, Po), o = r ? w : "q";
|
|
542
|
+
return t.createElement(o, { ...n, ref: a, className: i("rt-Quote", s) });
|
|
543
|
+
});
|
|
544
|
+
Io.displayName = "Quote";
|
|
545
|
+
const zo = ["1", "2", "3"], _o = ["surface", "classic"], ko = { ...N, size: { type: "enum", className: "rt-r-size", values: zo, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: _o, default: "surface" }, ...$, ...E, columns: { ...Ne.columns, default: "repeat(auto-fit, minmax(160px, 1fr))" }, gap: { ...Ne.gap, default: "4" } }, ba = t.forwardRef((e, a) => {
|
|
546
|
+
const { className: r, color: s, ...n } = m(e, ko, g);
|
|
547
|
+
return t.createElement(Gt, { asChild: !0 }, t.createElement(ct, { "data-accent-color": s, ...n, ref: a, className: i("rt-RadioCardsRoot", r) }));
|
|
548
|
+
});
|
|
549
|
+
ba.displayName = "RadioCards.Root";
|
|
550
|
+
const wa = t.forwardRef(({ className: e, ...a }, r) => t.createElement(it, { ...a, asChild: !1, ref: r, className: i("rt-reset", "rt-BaseCard", "rt-RadioCardsItem", e) }));
|
|
551
|
+
wa.displayName = "RadioCards.Item";
|
|
552
|
+
const Bo = ["1", "2", "3"], Ao = ["classic", "surface", "soft"], ie = { ...N, size: { type: "enum", className: "rt-r-size", values: Bo, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Ao, default: "surface" }, ...$, ...E }, Ea = "RadioGroup", [Do] = es(Ea, [ut]), Ra = ut(), [Lo, Sa] = Do(Ea), xa = t.forwardRef(({ color: e = ie.color.default, highContrast: a = ie.highContrast.default, size: r = ie.size.default, variant: s = ie.variant.default, ...n }, o) => {
|
|
553
|
+
const { __scopeRadioGroup: l, className: c, ...u } = m(n, g), p = Ra(l);
|
|
554
|
+
return t.createElement(Lo, { scope: l, color: e, highContrast: a, size: r, variant: s }, t.createElement(ct, { ...p, ...u, ref: o, className: i("rt-RadioGroupRoot", c) }));
|
|
555
|
+
});
|
|
556
|
+
xa.displayName = "RadioGroup.Root";
|
|
557
|
+
const Ta = t.forwardRef((e, a) => {
|
|
558
|
+
const { __scopeRadioGroup: r, children: s, className: n, style: o, ...l } = e, { size: c } = Sa("RadioGroupItem", r);
|
|
559
|
+
return s ? t.createElement(z, { as: "label", size: c, className: i("rt-RadioGroupItem", n), style: o }, t.createElement(Te, { __scopeRadioGroup: r, ...l, ref: a }), s && t.createElement("span", { className: "rt-RadioGroupItemInner" }, s)) : t.createElement(Te, { __scopeRadioGroup: r, ...l, ref: a, className: n, style: o });
|
|
560
560
|
});
|
|
561
|
-
|
|
562
|
-
const
|
|
563
|
-
const s =
|
|
564
|
-
return t.createElement(
|
|
561
|
+
Ta.displayName = "RadioGroup.Item";
|
|
562
|
+
const Te = t.forwardRef(({ __scopeRadioGroup: e, ...a }, r) => {
|
|
563
|
+
const s = Sa("RadioGroupItemRadio", e), n = Ra(e), { color: o, className: l } = m({ ...a, ...s }, ie, g);
|
|
564
|
+
return t.createElement(it, { ...n, "data-accent-color": o, ...a, asChild: !1, ref: r, className: i("rt-reset", "rt-BaseRadioRoot", l) });
|
|
565
565
|
});
|
|
566
|
-
|
|
567
|
-
const
|
|
566
|
+
Te.displayName = "RadioGroup.ItemRadio";
|
|
567
|
+
const zc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
568
568
|
__proto__: null,
|
|
569
|
-
Item:
|
|
570
|
-
Root:
|
|
571
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
572
|
-
const r = t.useRef(null), { className: s, color: n, onChange:
|
|
573
|
-
return t.createElement("input", { type: "radio", "data-accent-color": n, ...c, onChange:
|
|
574
|
-
});
|
|
575
|
-
|
|
576
|
-
const
|
|
577
|
-
const { className: r, children: s, radius: n, value:
|
|
578
|
-
return t.createElement(
|
|
579
|
-
|
|
569
|
+
Item: Ta,
|
|
570
|
+
Root: xa
|
|
571
|
+
}, Symbol.toStringTag, { value: "Module" })), Vo = ["1", "2", "3"], Oo = ["classic", "surface", "soft"], jo = { size: { type: "enum", className: "rt-r-size", values: Vo, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Oo, default: "surface" }, ...$, ...E }, Ho = t.forwardRef((e, a) => {
|
|
572
|
+
const r = t.useRef(null), { className: s, color: n, onChange: o, onValueChange: l, ...c } = m(e, jo, g);
|
|
573
|
+
return t.createElement("input", { type: "radio", "data-accent-color": n, ...c, onChange: ts(o, (u) => l == null ? void 0 : l(u.currentTarget.value)), ref: dt(r, a), className: i("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", s) });
|
|
574
|
+
});
|
|
575
|
+
Ho.displayName = "Radio";
|
|
576
|
+
const Go = ["1", "2", "3"], Fo = ["surface", "classic"], Wo = { disabled: { type: "boolean", className: "disabled", default: !1 }, size: { type: "enum", className: "rt-r-size", values: Go, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Fo, default: "surface" }, ...B }, Ma = t.forwardRef((e, a) => {
|
|
577
|
+
const { className: r, children: s, radius: n, value: o, defaultValue: l, onValueChange: c, ...u } = m(e, Wo, g), [p, f] = rt({ prop: o, onChange: c, defaultProp: l });
|
|
578
|
+
return t.createElement(as, { "data-disabled": e.disabled || void 0, "data-radius": n, ref: a, className: i("rt-SegmentedControlRoot", r), onValueChange: (h) => {
|
|
579
|
+
h && f(h);
|
|
580
580
|
}, ...u, type: "single", value: p, asChild: !1, disabled: !!e.disabled }, s, t.createElement("div", { className: "rt-SegmentedControlIndicator" }));
|
|
581
581
|
});
|
|
582
|
-
|
|
583
|
-
const
|
|
584
|
-
|
|
585
|
-
const
|
|
586
|
-
function
|
|
582
|
+
Ma.displayName = "SegmentedControl.Root";
|
|
583
|
+
const Pa = t.forwardRef(({ children: e, className: a, ...r }, s) => t.createElement(rs, { ref: s, className: i("rt-reset", "rt-SegmentedControlItem", a), ...r, disabled: !1, asChild: !1 }, t.createElement("span", { className: "rt-SegmentedControlItemSeparator" }), t.createElement("span", { className: "rt-SegmentedControlItemLabel" }, t.createElement("span", { className: "rt-SegmentedControlItemLabelActive" }, e), t.createElement("span", { className: "rt-SegmentedControlItemLabelInactive", "aria-hidden": !0 }, e))));
|
|
584
|
+
Pa.displayName = "SegmentedControl.Item";
|
|
585
|
+
const qo = ["1", "2", "3", "4"], Ko = ["none", "initial"], Yo = { ...N, size: { type: "enum", className: "rt-r-size", values: qo, default: "3", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: Ko, parseValue: Zo, responsive: !0 } };
|
|
586
|
+
function Zo(e) {
|
|
587
587
|
return e === "initial" ? "block" : e;
|
|
588
588
|
}
|
|
589
|
-
const
|
|
590
|
-
const { asChild: r, className: s, ...n } =
|
|
591
|
-
return t.createElement(
|
|
592
|
-
});
|
|
593
|
-
|
|
594
|
-
const
|
|
595
|
-
const { children: a, size: r =
|
|
596
|
-
return t.createElement(
|
|
589
|
+
const Xo = t.forwardRef((e, a) => {
|
|
590
|
+
const { asChild: r, className: s, ...n } = m(e, Yo, fe, g), o = r ? w : "section";
|
|
591
|
+
return t.createElement(o, { ...n, ref: a, className: i("rt-Section", s) });
|
|
592
|
+
});
|
|
593
|
+
Xo.displayName = "Section";
|
|
594
|
+
const Qo = ["1", "2", "3"], He = { size: { type: "enum", className: "rt-r-size", values: Qo, default: "2", responsive: !0 } }, Uo = ["classic", "surface", "soft", "ghost"], Jo = { variant: { type: "enum", className: "rt-variant", values: Uo, default: "surface" }, ...$, ...B, placeholder: { type: "string" } }, el = ["solid", "soft"], tl = { variant: { type: "enum", className: "rt-variant", values: el, default: "solid" }, ...$, ...E }, Ge = t.createContext({}), Ia = (e) => {
|
|
595
|
+
const { children: a, size: r = He.size.default, ...s } = e;
|
|
596
|
+
return t.createElement(ss, { ...s }, t.createElement(Ge.Provider, { value: t.useMemo(() => ({ size: r }), [r]) }, a));
|
|
597
597
|
};
|
|
598
|
-
|
|
599
|
-
const
|
|
600
|
-
const r = t.useContext(
|
|
601
|
-
return t.createElement(
|
|
598
|
+
Ia.displayName = "Select.Root";
|
|
599
|
+
const za = t.forwardRef((e, a) => {
|
|
600
|
+
const r = t.useContext(Ge), { children: s, className: n, color: o, radius: l, placeholder: c, ...u } = m({ size: r == null ? void 0 : r.size, ...e }, { size: He.size }, Jo, g);
|
|
601
|
+
return t.createElement(ns, { asChild: !0 }, t.createElement("button", { "data-accent-color": o, "data-radius": l, ...u, ref: a, className: i("rt-reset", "rt-SelectTrigger", n) }, t.createElement("span", { className: "rt-SelectTriggerInner" }, t.createElement(os, { placeholder: c }, s)), t.createElement(ls, { asChild: !0 }, t.createElement(Wt, { className: "rt-SelectIcon" }))));
|
|
602
602
|
});
|
|
603
|
-
|
|
604
|
-
const
|
|
605
|
-
const r = t.useContext(
|
|
606
|
-
return t.createElement(
|
|
603
|
+
za.displayName = "Select.Trigger";
|
|
604
|
+
const _a = t.forwardRef((e, a) => {
|
|
605
|
+
const r = t.useContext(Ge), { className: s, children: n, color: o, container: l, ...c } = m({ size: r == null ? void 0 : r.size, ...e }, { size: He.size }, tl), u = bt(), p = o || u.accentColor;
|
|
606
|
+
return t.createElement(cs, { container: l }, t.createElement(L, { asChild: !0 }, t.createElement(is, { "data-accent-color": p, sideOffset: 4, ...c, asChild: !1, ref: a, className: i({ "rt-PopperContent": c.position === "popper" }, "rt-SelectContent", s) }, t.createElement(st, { type: "auto", className: "rt-ScrollAreaRoot" }, t.createElement(us, { asChild: !0, className: "rt-SelectViewport" }, t.createElement(nt, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, n)), t.createElement(Se, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, t.createElement(xe, { className: "rt-ScrollAreaThumb" }))))));
|
|
607
607
|
});
|
|
608
|
-
|
|
609
|
-
const
|
|
608
|
+
_a.displayName = "Select.Content";
|
|
609
|
+
const ka = t.forwardRef((e, a) => {
|
|
610
610
|
const { className: r, children: s, ...n } = e;
|
|
611
|
-
return t.createElement(
|
|
612
|
-
});
|
|
613
|
-
|
|
614
|
-
const
|
|
615
|
-
|
|
616
|
-
const
|
|
617
|
-
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
const
|
|
621
|
-
const { className: r, color: s, decorative: n, ...
|
|
622
|
-
return t.createElement("span", { "data-accent-color": s, role: n ? void 0 : "separator", ...
|
|
623
|
-
});
|
|
624
|
-
|
|
625
|
-
const
|
|
626
|
-
const { children: r, className: s, loading: n, ...
|
|
611
|
+
return t.createElement(ms, { ...n, asChild: !1, ref: a, className: i("rt-SelectItem", r) }, t.createElement(ps, { className: "rt-SelectItemIndicator" }, t.createElement(ge, { className: "rt-SelectItemIndicatorIcon" })), t.createElement(fs, null, s));
|
|
612
|
+
});
|
|
613
|
+
ka.displayName = "Select.Item";
|
|
614
|
+
const Ba = t.forwardRef(({ className: e, ...a }, r) => t.createElement(ds, { ...a, asChild: !1, ref: r, className: i("rt-SelectGroup", e) }));
|
|
615
|
+
Ba.displayName = "Select.Group";
|
|
616
|
+
const al = t.forwardRef(({ className: e, ...a }, r) => t.createElement(gs, { ...a, asChild: !1, ref: r, className: i("rt-SelectLabel", e) }));
|
|
617
|
+
al.displayName = "Select.Label";
|
|
618
|
+
const rl = t.forwardRef(({ className: e, ...a }, r) => t.createElement(hs, { ...a, asChild: !1, ref: r, className: i("rt-SelectSeparator", e) }));
|
|
619
|
+
rl.displayName = "Select.Separator";
|
|
620
|
+
const sl = ["horizontal", "vertical"], nl = ["1", "2", "3", "4"], ol = { orientation: { type: "enum", className: "rt-r-orientation", values: sl, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: nl, default: "1", responsive: !0 }, color: { ...$.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, ll = t.forwardRef((e, a) => {
|
|
621
|
+
const { className: r, color: s, decorative: n, ...o } = m(e, ol, g);
|
|
622
|
+
return t.createElement("span", { "data-accent-color": s, role: n ? void 0 : "separator", ...o, ref: a, className: i("rt-Separator", r) });
|
|
623
|
+
});
|
|
624
|
+
ll.displayName = "Separator";
|
|
625
|
+
const cl = parseFloat(t.version) >= 19 || "", il = { loading: { type: "boolean", default: !0 }, ...S, ...ee }, ul = t.forwardRef((e, a) => {
|
|
626
|
+
const { children: r, className: s, loading: n, ...o } = m(e, il, g);
|
|
627
627
|
if (!n) return r;
|
|
628
|
-
const
|
|
629
|
-
return t.createElement(
|
|
630
|
-
});
|
|
631
|
-
|
|
632
|
-
const
|
|
633
|
-
const { className: r, color: s, radius: n, tabIndex:
|
|
634
|
-
return t.createElement(
|
|
635
|
-
});
|
|
636
|
-
|
|
637
|
-
const
|
|
638
|
-
const { asChild: r, className: s, ...n } =
|
|
639
|
-
return t.createElement(
|
|
640
|
-
});
|
|
641
|
-
|
|
642
|
-
const
|
|
643
|
-
const { className: r, color: s, radius: n, ...
|
|
644
|
-
return t.createElement(
|
|
645
|
-
});
|
|
646
|
-
|
|
647
|
-
const
|
|
648
|
-
function
|
|
628
|
+
const l = t.isValidElement(r) ? w : "span";
|
|
629
|
+
return t.createElement(l, { ref: a, "aria-hidden": !0, className: i("rt-Skeleton", s), "data-inline-skeleton": t.isValidElement(r) ? void 0 : !0, tabIndex: -1, inert: cl, ...o }, r);
|
|
630
|
+
});
|
|
631
|
+
ul.displayName = "Skeleton";
|
|
632
|
+
const dl = ["1", "2", "3"], ml = ["classic", "surface", "soft"], pl = { size: { type: "enum", className: "rt-r-size", values: dl, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: ml, default: "surface" }, ...$, ...E, ...B }, fl = t.forwardRef((e, a) => {
|
|
633
|
+
const { className: r, color: s, radius: n, tabIndex: o, ...l } = m(e, pl, g);
|
|
634
|
+
return t.createElement(mt, { "data-accent-color": s, "data-radius": n, ref: a, ...l, asChild: !1, className: i("rt-SliderRoot", r) }, t.createElement(pt, { className: "rt-SliderTrack" }, t.createElement(ft, { className: i("rt-SliderRange", { "rt-high-contrast": e.highContrast }), "data-inverted": l.inverted ? "" : void 0 })), (l.value ?? l.defaultValue ?? []).map((c, u) => t.createElement(gt, { key: u, className: "rt-SliderThumb", ...o !== void 0 ? { tabIndex: o } : void 0 })));
|
|
635
|
+
});
|
|
636
|
+
fl.displayName = "Slider";
|
|
637
|
+
const gl = { ...N, ...X, ...Z }, hl = t.forwardRef((e, a) => {
|
|
638
|
+
const { asChild: r, className: s, ...n } = m(e, gl), o = r ? w : "strong";
|
|
639
|
+
return t.createElement(o, { ...n, ref: a, className: i("rt-Strong", s) });
|
|
640
|
+
});
|
|
641
|
+
hl.displayName = "Strong";
|
|
642
|
+
const vl = ["1", "2", "3"], Nl = ["classic", "surface", "soft"], yl = { size: { type: "enum", className: "rt-r-size", values: vl, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Nl, default: "surface" }, ...$, ...E, ...B }, Cl = t.forwardRef((e, a) => {
|
|
643
|
+
const { className: r, color: s, radius: n, ...o } = m(e, yl, g);
|
|
644
|
+
return t.createElement(vs, { "data-accent-color": s, "data-radius": n, ...o, asChild: !1, ref: a, className: i("rt-reset", "rt-SwitchRoot", r) }, t.createElement(Ns, { className: i("rt-SwitchThumb", { "rt-high-contrast": e.highContrast }) }));
|
|
645
|
+
});
|
|
646
|
+
Cl.displayName = "Switch";
|
|
647
|
+
const $l = ["1", "2"], bl = ["nowrap", "wrap", "wrap-reverse"], wl = ["start", "center", "end"], El = { size: { type: "enum", className: "rt-r-size", values: $l, default: "2", responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: bl, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: wl, responsive: !0 }, ...$, ...E }, Rl = ["1", "2", "3"], Sl = ["surface", "ghost"], xl = ["auto", "fixed"], Ee = { size: { type: "enum", className: "rt-r-size", values: Rl, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Sl, default: "ghost" }, layout: { type: "enum", className: "rt-r-tl", values: xl, responsive: !0 } }, Tl = ["start", "center", "end", "baseline"], Ml = { align: { type: "enum", className: "rt-r-va", values: Tl, parseValue: Pl, responsive: !0 } };
|
|
648
|
+
function Pl(e) {
|
|
649
649
|
return { baseline: "baseline", start: "top", center: "middle", end: "bottom" }[e];
|
|
650
650
|
}
|
|
651
|
-
const
|
|
652
|
-
function
|
|
651
|
+
const Il = ["start", "center", "end"], Fe = { justify: { type: "enum", className: "rt-r-ta", values: Il, parseValue: zl, responsive: !0 }, ...S, ...de };
|
|
652
|
+
function zl(e) {
|
|
653
653
|
return { start: "left", center: "center", end: "right" }[e];
|
|
654
654
|
}
|
|
655
|
-
const
|
|
656
|
-
const { layout: r, ...s } =
|
|
657
|
-
return t.createElement("div", { ref: a, className: i("rt-TableRoot", n), ...c }, t.createElement(
|
|
658
|
-
});
|
|
659
|
-
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
const
|
|
665
|
-
const { className: r, ...s } =
|
|
655
|
+
const Aa = t.forwardRef((e, a) => {
|
|
656
|
+
const { layout: r, ...s } = Ee, { className: n, children: o, layout: l, ...c } = m(e, s, g), u = me({ value: l, className: Ee.layout.className, propValues: Ee.layout.values });
|
|
657
|
+
return t.createElement("div", { ref: a, className: i("rt-TableRoot", n), ...c }, t.createElement(Ce, null, t.createElement("table", { className: i("rt-TableRootTable", u) }, o)));
|
|
658
|
+
});
|
|
659
|
+
Aa.displayName = "Table.Root";
|
|
660
|
+
const Da = t.forwardRef(({ className: e, ...a }, r) => t.createElement("thead", { ...a, ref: r, className: i("rt-TableHeader", e) }));
|
|
661
|
+
Da.displayName = "Table.Header";
|
|
662
|
+
const La = t.forwardRef(({ className: e, ...a }, r) => t.createElement("tbody", { ...a, ref: r, className: i("rt-TableBody", e) }));
|
|
663
|
+
La.displayName = "Table.Body";
|
|
664
|
+
const Va = t.forwardRef((e, a) => {
|
|
665
|
+
const { className: r, ...s } = m(e, Ml);
|
|
666
666
|
return t.createElement("tr", { ...s, ref: a, className: i("rt-TableRow", r) });
|
|
667
667
|
});
|
|
668
|
-
|
|
669
|
-
const
|
|
670
|
-
const { className: r, ...s } =
|
|
668
|
+
Va.displayName = "Table.Row";
|
|
669
|
+
const Oa = t.forwardRef((e, a) => {
|
|
670
|
+
const { className: r, ...s } = m(e, Fe);
|
|
671
671
|
return t.createElement("td", { className: i("rt-TableCell", r), ref: a, ...s });
|
|
672
672
|
});
|
|
673
|
-
|
|
674
|
-
const
|
|
675
|
-
const { className: r, ...s } =
|
|
673
|
+
Oa.displayName = "Table.Cell";
|
|
674
|
+
const ja = t.forwardRef((e, a) => {
|
|
675
|
+
const { className: r, ...s } = m(e, Fe);
|
|
676
676
|
return t.createElement("th", { className: i("rt-TableCell", "rt-TableColumnHeaderCell", r), scope: "col", ref: a, ...s });
|
|
677
677
|
});
|
|
678
|
-
|
|
679
|
-
const
|
|
680
|
-
const { className: r, ...s } =
|
|
678
|
+
ja.displayName = "Table.ColumnHeaderCell";
|
|
679
|
+
const Ha = t.forwardRef((e, a) => {
|
|
680
|
+
const { className: r, ...s } = m(e, Fe);
|
|
681
681
|
return t.createElement("th", { className: i("rt-TableCell", "rt-TableRowHeaderCell", r), scope: "row", ref: a, ...s });
|
|
682
682
|
});
|
|
683
|
-
|
|
684
|
-
const
|
|
683
|
+
Ha.displayName = "Table.RowHeaderCell";
|
|
684
|
+
const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
685
685
|
__proto__: null,
|
|
686
|
-
Body:
|
|
687
|
-
Cell:
|
|
688
|
-
ColumnHeaderCell:
|
|
689
|
-
Header:
|
|
690
|
-
Root:
|
|
691
|
-
Row:
|
|
692
|
-
RowHeaderCell:
|
|
693
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
694
|
-
const { className: r, ...s } =
|
|
695
|
-
return t.createElement(
|
|
696
|
-
});
|
|
697
|
-
|
|
698
|
-
const
|
|
699
|
-
const { className: r, color: s, ...n } =
|
|
700
|
-
return t.createElement(
|
|
701
|
-
});
|
|
702
|
-
|
|
703
|
-
const
|
|
686
|
+
Body: La,
|
|
687
|
+
Cell: Oa,
|
|
688
|
+
ColumnHeaderCell: ja,
|
|
689
|
+
Header: Da,
|
|
690
|
+
Root: Aa,
|
|
691
|
+
Row: Va,
|
|
692
|
+
RowHeaderCell: Ha
|
|
693
|
+
}, Symbol.toStringTag, { value: "Module" })), Ga = t.forwardRef((e, a) => {
|
|
694
|
+
const { className: r, ...s } = m(e, g);
|
|
695
|
+
return t.createElement($s, { ...s, ref: a, className: i("rt-TabsRoot", r) });
|
|
696
|
+
});
|
|
697
|
+
Ga.displayName = "Tabs.Root";
|
|
698
|
+
const Fa = t.forwardRef((e, a) => {
|
|
699
|
+
const { className: r, color: s, ...n } = m(e, El, g);
|
|
700
|
+
return t.createElement(Cs, { "data-accent-color": s, ...n, asChild: !1, ref: a, className: i("rt-BaseTabList", "rt-TabsList", r) });
|
|
701
|
+
});
|
|
702
|
+
Fa.displayName = "Tabs.List";
|
|
703
|
+
const Wa = t.forwardRef((e, a) => {
|
|
704
704
|
const { className: r, children: s, ...n } = e;
|
|
705
|
-
return t.createElement(
|
|
705
|
+
return t.createElement(bs, { ...n, asChild: !1, ref: a, className: i("rt-reset", "rt-BaseTabListTrigger", "rt-TabsTrigger", r) }, t.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabsTriggerInner" }, s), t.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden" }, s));
|
|
706
706
|
});
|
|
707
|
-
|
|
708
|
-
const
|
|
709
|
-
const { className: r, ...s } =
|
|
710
|
-
return t.createElement(
|
|
707
|
+
Wa.displayName = "Tabs.Trigger";
|
|
708
|
+
const qa = t.forwardRef((e, a) => {
|
|
709
|
+
const { className: r, ...s } = m(e, g);
|
|
710
|
+
return t.createElement(ys, { ...s, ref: a, className: i("rt-TabsContent", r) });
|
|
711
711
|
});
|
|
712
|
-
|
|
713
|
-
const
|
|
712
|
+
qa.displayName = "Tabs.Content";
|
|
713
|
+
const kc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
714
714
|
__proto__: null,
|
|
715
|
-
Content:
|
|
716
|
-
List:
|
|
717
|
-
Root:
|
|
718
|
-
Trigger:
|
|
719
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
720
|
-
const { className: r, color: s, radius: n, style:
|
|
721
|
-
return t.createElement("div", { "data-accent-color": s, "data-radius": n, className: i("rt-TextAreaRoot", r), style:
|
|
722
|
-
});
|
|
723
|
-
|
|
724
|
-
const
|
|
725
|
-
const r = t.useRef(null), { children: s, className: n, color:
|
|
726
|
-
return t.createElement("div", { "data-accent-color":
|
|
715
|
+
Content: qa,
|
|
716
|
+
List: Fa,
|
|
717
|
+
Root: Ga,
|
|
718
|
+
Trigger: Wa
|
|
719
|
+
}, Symbol.toStringTag, { value: "Module" })), _l = ["1", "2", "3"], kl = ["classic", "surface", "soft"], Bl = ["none", "vertical", "horizontal", "both"], Al = { size: { type: "enum", className: "rt-r-size", values: _l, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: kl, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: Bl, responsive: !0 }, ...$, ...B }, Dl = t.forwardRef((e, a) => {
|
|
720
|
+
const { className: r, color: s, radius: n, style: o, ...l } = m(e, Al, g);
|
|
721
|
+
return t.createElement("div", { "data-accent-color": s, "data-radius": n, className: i("rt-TextAreaRoot", r), style: o }, t.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: a, ...l }));
|
|
722
|
+
});
|
|
723
|
+
Dl.displayName = "TextArea";
|
|
724
|
+
const Ll = ["1", "2", "3"], Vl = ["classic", "surface", "soft"], Ol = { size: { type: "enum", className: "rt-r-size", values: Ll, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Vl, default: "surface" }, ...$, ...B }, jl = ["left", "right"], Hl = { side: { type: "enum", values: jl }, ...$, gap: kt.gap, px: de.px, pl: de.pl, pr: de.pr }, Ka = t.forwardRef((e, a) => {
|
|
725
|
+
const r = t.useRef(null), { children: s, className: n, color: o, radius: l, style: c, ...u } = m(e, Ol, g);
|
|
726
|
+
return t.createElement("div", { "data-accent-color": o, "data-radius": l, style: c, className: i("rt-TextFieldRoot", n), onPointerDown: (p) => {
|
|
727
727
|
const f = p.target;
|
|
728
728
|
if (f.closest("input, button, a")) return;
|
|
729
|
-
const
|
|
730
|
-
if (!
|
|
729
|
+
const h = r.current;
|
|
730
|
+
if (!h) return;
|
|
731
731
|
const y = f.closest(`
|
|
732
732
|
.rt-TextFieldSlot[data-side='right'],
|
|
733
733
|
.rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])
|
|
734
|
-
`) ?
|
|
734
|
+
`) ? h.value.length : 0;
|
|
735
735
|
requestAnimationFrame(() => {
|
|
736
736
|
try {
|
|
737
|
-
|
|
737
|
+
h.setSelectionRange(y, y);
|
|
738
738
|
} catch {
|
|
739
739
|
}
|
|
740
|
-
|
|
740
|
+
h.focus();
|
|
741
741
|
});
|
|
742
|
-
} }, t.createElement("input", { spellCheck: "false", ...u, ref:
|
|
742
|
+
} }, t.createElement("input", { spellCheck: "false", ...u, ref: dt(r, a), className: "rt-reset rt-TextFieldInput" }), s);
|
|
743
743
|
});
|
|
744
|
-
|
|
745
|
-
const
|
|
746
|
-
const { className: r, color: s, side: n, ...
|
|
747
|
-
return t.createElement("div", { "data-accent-color": s, "data-side": n, ...
|
|
744
|
+
Ka.displayName = "TextField.Root";
|
|
745
|
+
const Ya = t.forwardRef((e, a) => {
|
|
746
|
+
const { className: r, color: s, side: n, ...o } = m(e, Hl);
|
|
747
|
+
return t.createElement("div", { "data-accent-color": s, "data-side": n, ...o, ref: a, className: i("rt-TextFieldSlot", r) });
|
|
748
748
|
});
|
|
749
|
-
|
|
750
|
-
const
|
|
749
|
+
Ya.displayName = "TextField.Slot";
|
|
750
|
+
const Bc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
751
751
|
__proto__: null,
|
|
752
|
-
Root:
|
|
753
|
-
Slot:
|
|
754
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
755
|
-
const { children: r, className: s, open: n, defaultOpen:
|
|
756
|
-
return t.createElement(
|
|
757
|
-
});
|
|
758
|
-
|
|
759
|
-
const
|
|
752
|
+
Root: Ka,
|
|
753
|
+
Slot: Ya
|
|
754
|
+
}, Symbol.toStringTag, { value: "Module" })), Gl = { content: { type: "ReactNode", required: !0 }, width: S.width, minWidth: S.minWidth, maxWidth: { ...S.maxWidth, default: "360px" } }, We = t.forwardRef((e, a) => {
|
|
755
|
+
const { children: r, className: s, open: n, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: u, content: p, container: f, forceMount: h, ...y } = m(e, Gl), b = { open: n, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: u };
|
|
756
|
+
return t.createElement(Ie, { ...b }, t.createElement(ze, { asChild: !0 }, r), t.createElement(ws, { container: f, forceMount: h }, t.createElement(L, { asChild: !0 }, t.createElement(_e, { sideOffset: 4, collisionPadding: 10, ...y, asChild: !1, ref: a, className: i("rt-TooltipContent", s) }, t.createElement(z, { as: "p", className: "rt-TooltipText", size: "1" }, p), t.createElement(ke, { className: "rt-TooltipArrow" })))));
|
|
757
|
+
});
|
|
758
|
+
We.displayName = "Tooltip";
|
|
759
|
+
const Za = ({
|
|
760
760
|
onClick: e,
|
|
761
761
|
className: a,
|
|
762
762
|
children: r,
|
|
763
763
|
variant: s = "ghost",
|
|
764
764
|
color: n = "gray",
|
|
765
|
-
disabled:
|
|
766
|
-
size:
|
|
765
|
+
disabled: o,
|
|
766
|
+
size: l = "1",
|
|
767
767
|
...c
|
|
768
|
-
}) => /* @__PURE__ */
|
|
769
|
-
|
|
768
|
+
}) => /* @__PURE__ */ d(
|
|
769
|
+
ha,
|
|
770
770
|
{
|
|
771
771
|
onClick: e,
|
|
772
772
|
className: i(a),
|
|
773
773
|
variant: s,
|
|
774
|
-
disabled:
|
|
774
|
+
disabled: o,
|
|
775
775
|
color: n,
|
|
776
|
-
size:
|
|
776
|
+
size: l,
|
|
777
777
|
...c,
|
|
778
778
|
children: r
|
|
779
779
|
}
|
|
780
780
|
);
|
|
781
|
-
|
|
782
|
-
const
|
|
783
|
-
|
|
781
|
+
Za.displayName = "IconButton";
|
|
782
|
+
const Ac = ({ children: e, ...a }) => /* @__PURE__ */ d(
|
|
783
|
+
L,
|
|
784
784
|
{
|
|
785
785
|
accentColor: "cyan",
|
|
786
786
|
appearance: "dark",
|
|
@@ -788,92 +788,92 @@ const fc = ({ children: e, ...a }) => /* @__PURE__ */ m(
|
|
|
788
788
|
...a,
|
|
789
789
|
children: e
|
|
790
790
|
}
|
|
791
|
-
),
|
|
792
|
-
sliderRoot:
|
|
793
|
-
sliderTrack:
|
|
794
|
-
sliderRange:
|
|
795
|
-
sliderThumb:
|
|
796
|
-
tooltipContent:
|
|
797
|
-
tooltipArrow:
|
|
798
|
-
sliderContainer:
|
|
799
|
-
},
|
|
800
|
-
const [s, n] =
|
|
801
|
-
if (
|
|
802
|
-
const
|
|
803
|
-
return
|
|
804
|
-
}, []), c =
|
|
805
|
-
const
|
|
806
|
-
return
|
|
807
|
-
}, [a,
|
|
808
|
-
clearTimeout(
|
|
809
|
-
}, []),
|
|
810
|
-
|
|
791
|
+
), Fl = "_sliderRoot_1fv47_23", Wl = "_sliderTrack_1fv47_31", ql = "_sliderRange_1fv47_46", Kl = "_sliderThumb_1fv47_65", Yl = "_tooltipContent_1fv47_85", Zl = "_tooltipArrow_1fv47_99", Xl = "_sliderContainer_1fv47_114", K = {
|
|
792
|
+
sliderRoot: Fl,
|
|
793
|
+
sliderTrack: Wl,
|
|
794
|
+
sliderRange: ql,
|
|
795
|
+
sliderThumb: Kl,
|
|
796
|
+
tooltipContent: Yl,
|
|
797
|
+
tooltipArrow: Zl,
|
|
798
|
+
sliderContainer: Xl
|
|
799
|
+
}, Dc = ({ onChangeValue: e, volume: a, disabled: r }) => {
|
|
800
|
+
const [s, n] = tt(!1), o = he(), l = _((v) => {
|
|
801
|
+
if (v < 1e-3) return -1 / 0;
|
|
802
|
+
const k = 20 * Math.log10(v);
|
|
803
|
+
return k < -60 ? -60 : k;
|
|
804
|
+
}, []), c = _((v) => v === -1 / 0 || v <= -60 ? 0 : Math.pow(10, v / 20), []), u = J(() => {
|
|
805
|
+
const v = l(a);
|
|
806
|
+
return v === -1 / 0 ? -60 : Math.max(-60, Math.min(6, v));
|
|
807
|
+
}, [a, l]), p = J(() => a < 1e-3, [a]), f = _(() => {
|
|
808
|
+
clearTimeout(o.current), n(!0);
|
|
809
|
+
}, []), h = _(() => {
|
|
810
|
+
o.current = setTimeout(() => {
|
|
811
811
|
n(!1);
|
|
812
812
|
}, 300);
|
|
813
|
-
}, []), y =
|
|
814
|
-
(
|
|
815
|
-
(
|
|
813
|
+
}, []), y = _(
|
|
814
|
+
(v) => {
|
|
815
|
+
(v.key === "ArrowUp" || v.key === "ArrowDown") && f(), (v.key === "ArrowLeft" || v.key === "ArrowRight") && (v.preventDefault(), v.stopPropagation());
|
|
816
816
|
},
|
|
817
817
|
[f]
|
|
818
|
-
),
|
|
819
|
-
(
|
|
820
|
-
e(
|
|
818
|
+
), b = _(
|
|
819
|
+
(v) => {
|
|
820
|
+
e(v.map(c));
|
|
821
821
|
},
|
|
822
822
|
[e, c]
|
|
823
|
-
),
|
|
824
|
-
() => /* @__PURE__ */
|
|
823
|
+
), x = J(
|
|
824
|
+
() => /* @__PURE__ */ C(et, { children: [
|
|
825
825
|
p ? "-∞ dB" : `${u.toFixed(1)} dB`,
|
|
826
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ d(ke, { className: K.tooltipArrow })
|
|
827
827
|
] }),
|
|
828
828
|
[u, p]
|
|
829
829
|
);
|
|
830
|
-
return /* @__PURE__ */
|
|
831
|
-
|
|
830
|
+
return /* @__PURE__ */ d(
|
|
831
|
+
mt,
|
|
832
832
|
{
|
|
833
|
-
className:
|
|
833
|
+
className: K.sliderRoot,
|
|
834
834
|
min: -60,
|
|
835
835
|
max: 6,
|
|
836
836
|
step: 0.1,
|
|
837
837
|
value: [p ? -60 : u],
|
|
838
|
-
onValueChange:
|
|
838
|
+
onValueChange: b,
|
|
839
839
|
onMouseEnter: f,
|
|
840
|
-
onMouseLeave:
|
|
840
|
+
onMouseLeave: h,
|
|
841
841
|
disabled: r,
|
|
842
|
-
children: /* @__PURE__ */
|
|
842
|
+
children: /* @__PURE__ */ C(
|
|
843
843
|
"div",
|
|
844
844
|
{
|
|
845
|
-
className:
|
|
845
|
+
className: K.sliderContainer,
|
|
846
846
|
onMouseEnter: f,
|
|
847
|
-
onMouseLeave:
|
|
847
|
+
onMouseLeave: h,
|
|
848
848
|
children: [
|
|
849
|
-
/* @__PURE__ */
|
|
850
|
-
|
|
849
|
+
/* @__PURE__ */ d(
|
|
850
|
+
pt,
|
|
851
851
|
{
|
|
852
|
-
className:
|
|
852
|
+
className: K.sliderTrack,
|
|
853
853
|
onMouseEnter: f,
|
|
854
|
-
onMouseLeave:
|
|
855
|
-
children: /* @__PURE__ */
|
|
854
|
+
onMouseLeave: h,
|
|
855
|
+
children: /* @__PURE__ */ d(ft, { className: K.sliderRange })
|
|
856
856
|
}
|
|
857
857
|
),
|
|
858
|
-
/* @__PURE__ */
|
|
859
|
-
/* @__PURE__ */
|
|
860
|
-
|
|
858
|
+
/* @__PURE__ */ d(Me, { delayDuration: 200, children: /* @__PURE__ */ C(Ie, { open: s, children: [
|
|
859
|
+
/* @__PURE__ */ d(ze, { asChild: !0, children: /* @__PURE__ */ d(
|
|
860
|
+
gt,
|
|
861
861
|
{
|
|
862
|
-
className:
|
|
862
|
+
className: K.sliderThumb,
|
|
863
863
|
onPointerDown: f,
|
|
864
864
|
onMouseEnter: f,
|
|
865
|
-
onMouseLeave:
|
|
865
|
+
onMouseLeave: h,
|
|
866
866
|
onKeyDown: y
|
|
867
867
|
}
|
|
868
868
|
) }),
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
-
|
|
869
|
+
/* @__PURE__ */ d(
|
|
870
|
+
_e,
|
|
871
871
|
{
|
|
872
|
-
className:
|
|
872
|
+
className: K.tooltipContent,
|
|
873
873
|
side: "bottom",
|
|
874
874
|
align: "center",
|
|
875
875
|
sideOffset: 10,
|
|
876
|
-
children:
|
|
876
|
+
children: x
|
|
877
877
|
}
|
|
878
878
|
)
|
|
879
879
|
] }) })
|
|
@@ -882,66 +882,66 @@ const fc = ({ children: e, ...a }) => /* @__PURE__ */ m(
|
|
|
882
882
|
)
|
|
883
883
|
}
|
|
884
884
|
);
|
|
885
|
-
},
|
|
886
|
-
dropdownMenuContent:
|
|
887
|
-
dropdownMenuSubContent:
|
|
888
|
-
dropdownMenuItem:
|
|
889
|
-
dropdownMenuSeparator:
|
|
890
|
-
rightSlot:
|
|
891
|
-
dropdownMenuSub:
|
|
892
|
-
dropdownMenuSubTrigger:
|
|
893
|
-
dropdownMenuLabel:
|
|
894
|
-
dropdownMenuTrigger:
|
|
895
|
-
},
|
|
885
|
+
}, Ql = "_dropdownMenuContent_fegrn_1", Ul = "_dropdownMenuSubContent_fegrn_1", Jl = "_dropdownMenuItem_fegrn_15", ec = "_dropdownMenuSeparator_fegrn_33", tc = "_rightSlot_fegrn_39", ac = "_dropdownMenuSub_fegrn_1", rc = "_dropdownMenuSubTrigger_fegrn_55", sc = "_dropdownMenuLabel_fegrn_82", nc = "_dropdownMenuTrigger_fegrn_90", D = {
|
|
886
|
+
dropdownMenuContent: Ql,
|
|
887
|
+
dropdownMenuSubContent: Ul,
|
|
888
|
+
dropdownMenuItem: Jl,
|
|
889
|
+
dropdownMenuSeparator: ec,
|
|
890
|
+
rightSlot: tc,
|
|
891
|
+
dropdownMenuSub: ac,
|
|
892
|
+
dropdownMenuSubTrigger: rc,
|
|
893
|
+
dropdownMenuLabel: sc,
|
|
894
|
+
dropdownMenuTrigger: nc
|
|
895
|
+
}, Xa = (e) => {
|
|
896
896
|
var a;
|
|
897
897
|
switch (e.type) {
|
|
898
898
|
case "separator":
|
|
899
|
-
return /* @__PURE__ */
|
|
900
|
-
|
|
899
|
+
return /* @__PURE__ */ d(
|
|
900
|
+
zs,
|
|
901
901
|
{
|
|
902
|
-
className:
|
|
902
|
+
className: D.dropdownMenuSeparator
|
|
903
903
|
},
|
|
904
904
|
e.key
|
|
905
905
|
);
|
|
906
906
|
case "label":
|
|
907
|
-
return /* @__PURE__ */
|
|
908
|
-
|
|
907
|
+
return /* @__PURE__ */ d(
|
|
908
|
+
Is,
|
|
909
909
|
{
|
|
910
|
-
className:
|
|
910
|
+
className: D.dropdownMenuLabel,
|
|
911
911
|
children: e.label
|
|
912
912
|
},
|
|
913
913
|
e.key
|
|
914
914
|
);
|
|
915
915
|
case "sub":
|
|
916
|
-
return /* @__PURE__ */
|
|
917
|
-
/* @__PURE__ */
|
|
918
|
-
|
|
916
|
+
return /* @__PURE__ */ C(Ts, { className: D.dropdownMenuSub, children: [
|
|
917
|
+
/* @__PURE__ */ C(
|
|
918
|
+
Ms,
|
|
919
919
|
{
|
|
920
|
-
className:
|
|
920
|
+
className: D.dropdownMenuSubTrigger,
|
|
921
921
|
children: [
|
|
922
922
|
e.label,
|
|
923
|
-
/* @__PURE__ */
|
|
923
|
+
/* @__PURE__ */ d("div", { className: D.rightSlot, children: /* @__PURE__ */ d(_s, {}) })
|
|
924
924
|
]
|
|
925
925
|
}
|
|
926
926
|
),
|
|
927
|
-
/* @__PURE__ */
|
|
928
|
-
|
|
927
|
+
/* @__PURE__ */ d(
|
|
928
|
+
Ps,
|
|
929
929
|
{
|
|
930
|
-
className:
|
|
931
|
-
children: (a = e == null ? void 0 : e.children) == null ? void 0 : a.map((r) =>
|
|
930
|
+
className: D.dropdownMenuSubContent,
|
|
931
|
+
children: (a = e == null ? void 0 : e.children) == null ? void 0 : a.map((r) => Xa(r))
|
|
932
932
|
}
|
|
933
933
|
)
|
|
934
934
|
] }, e.key);
|
|
935
935
|
case "item":
|
|
936
|
-
return /* @__PURE__ */
|
|
937
|
-
|
|
936
|
+
return /* @__PURE__ */ C(
|
|
937
|
+
xs,
|
|
938
938
|
{
|
|
939
|
-
className:
|
|
939
|
+
className: D.dropdownMenuItem,
|
|
940
940
|
onSelect: e.onClick,
|
|
941
941
|
disabled: e.disabled,
|
|
942
942
|
children: [
|
|
943
943
|
e.label,
|
|
944
|
-
e.keybinding && /* @__PURE__ */
|
|
944
|
+
e.keybinding && /* @__PURE__ */ d("div", { className: D.rightSlot, children: e.keybinding })
|
|
945
945
|
]
|
|
946
946
|
},
|
|
947
947
|
e.key
|
|
@@ -949,20 +949,20 @@ const fc = ({ children: e, ...a }) => /* @__PURE__ */ m(
|
|
|
949
949
|
default:
|
|
950
950
|
return null;
|
|
951
951
|
}
|
|
952
|
-
},
|
|
953
|
-
({ trigger: e, options: a, className: r, ...s }) => /* @__PURE__ */
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
|
|
952
|
+
}, Lc = tr(
|
|
953
|
+
({ trigger: e, options: a, className: r, ...s }) => /* @__PURE__ */ C(Es, { children: [
|
|
954
|
+
/* @__PURE__ */ d(
|
|
955
|
+
Rs,
|
|
956
956
|
{
|
|
957
957
|
asChild: !0,
|
|
958
|
-
className:
|
|
958
|
+
className: D.dropdownMenuTrigger,
|
|
959
959
|
children: e
|
|
960
960
|
}
|
|
961
961
|
),
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
-
|
|
962
|
+
/* @__PURE__ */ d(
|
|
963
|
+
Ss,
|
|
964
964
|
{
|
|
965
|
-
className: i(
|
|
965
|
+
className: i(D.dropdownMenuContent, r),
|
|
966
966
|
side: s.side,
|
|
967
967
|
align: s.align,
|
|
968
968
|
sideOffset: 5,
|
|
@@ -970,88 +970,93 @@ const fc = ({ children: e, ...a }) => /* @__PURE__ */ m(
|
|
|
970
970
|
onCloseAutoFocus: (n) => {
|
|
971
971
|
n.preventDefault();
|
|
972
972
|
},
|
|
973
|
-
children: a == null ? void 0 : a.map((n) =>
|
|
973
|
+
children: a == null ? void 0 : a.map((n) => Xa(n))
|
|
974
974
|
}
|
|
975
975
|
)
|
|
976
976
|
] })
|
|
977
|
-
),
|
|
978
|
-
({ children: e, onClick: a, title: r, className: s, ...n },
|
|
979
|
-
|
|
977
|
+
), Qa = P.forwardRef(
|
|
978
|
+
({ children: e, onClick: a, title: r, className: s, ...n }, o) => /* @__PURE__ */ d(
|
|
979
|
+
Za,
|
|
980
980
|
{
|
|
981
|
-
ref:
|
|
981
|
+
ref: o,
|
|
982
982
|
variant: "ghost",
|
|
983
983
|
className: s,
|
|
984
984
|
...n,
|
|
985
985
|
onClick: a,
|
|
986
|
-
children: r ? /* @__PURE__ */
|
|
986
|
+
children: r ? /* @__PURE__ */ d(We, { content: r, children: e }) : e
|
|
987
987
|
}
|
|
988
988
|
)
|
|
989
989
|
);
|
|
990
|
-
|
|
991
|
-
const
|
|
992
|
-
({ title: e, children: a, className: r, ...s }, n) => /* @__PURE__ */
|
|
993
|
-
|
|
990
|
+
Qa.displayName = "HeaderPanel.Button";
|
|
991
|
+
const qe = P.forwardRef(
|
|
992
|
+
({ title: e, children: a, className: r, ...s }, n) => /* @__PURE__ */ C(
|
|
993
|
+
M,
|
|
994
994
|
{
|
|
995
995
|
ref: n,
|
|
996
996
|
gap: "4",
|
|
997
997
|
align: "center",
|
|
998
998
|
justify: "between",
|
|
999
|
+
style: {
|
|
1000
|
+
paddingBottom: "8px",
|
|
1001
|
+
borderBottom: "1px solid #212225"
|
|
1002
|
+
// TODO: add color token
|
|
1003
|
+
},
|
|
999
1004
|
className: r,
|
|
1000
1005
|
...s,
|
|
1001
1006
|
children: [
|
|
1002
|
-
/* @__PURE__ */
|
|
1003
|
-
/* @__PURE__ */
|
|
1007
|
+
/* @__PURE__ */ d(z, { size: "4", weight: "bold", children: e }),
|
|
1008
|
+
/* @__PURE__ */ d(M, { gap: "3", children: a })
|
|
1004
1009
|
]
|
|
1005
1010
|
}
|
|
1006
1011
|
)
|
|
1007
1012
|
);
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
const
|
|
1011
|
-
const
|
|
1012
|
-
return /* @__PURE__ */
|
|
1013
|
-
|
|
1013
|
+
qe.displayName = "HeaderPanel";
|
|
1014
|
+
qe.Button = Qa;
|
|
1015
|
+
const Vc = qe, oc = ({ className: e, image: a, name: r, description: s, id: n, ...o }) => {
|
|
1016
|
+
const l = a && (a != null && a.startsWith("url(")) ? a == null ? void 0 : a.substring(4, (a == null ? void 0 : a.length) - 1).replace(/"/g, "") : a;
|
|
1017
|
+
return /* @__PURE__ */ d(
|
|
1018
|
+
wa,
|
|
1014
1019
|
{
|
|
1015
1020
|
value: n,
|
|
1016
1021
|
style: { justifyContent: "flex-start" },
|
|
1017
1022
|
className: e,
|
|
1018
|
-
...
|
|
1019
|
-
children: /* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
-
/* @__PURE__ */
|
|
1023
|
-
/* @__PURE__ */
|
|
1023
|
+
...o,
|
|
1024
|
+
children: /* @__PURE__ */ C(M, { gap: "4", align: "center", children: [
|
|
1025
|
+
/* @__PURE__ */ d(It, { size: "6", src: l, radius: 10 }),
|
|
1026
|
+
/* @__PURE__ */ C(ae, { children: [
|
|
1027
|
+
/* @__PURE__ */ d(z, { as: "div", size: "2", weight: "bold", children: r }),
|
|
1028
|
+
/* @__PURE__ */ d(z, { as: "div", size: "2", color: "gray", children: s })
|
|
1024
1029
|
] })
|
|
1025
1030
|
] })
|
|
1026
1031
|
}
|
|
1027
1032
|
);
|
|
1028
|
-
},
|
|
1029
|
-
|
|
1033
|
+
}, lc = ({ items: e, value: a, onSelect: r, className: s, ...n }) => /* @__PURE__ */ d(ae, { height: "100%", width: "100%", overflow: "auto", children: /* @__PURE__ */ d(
|
|
1034
|
+
ba,
|
|
1030
1035
|
{
|
|
1031
1036
|
defaultValue: a,
|
|
1032
1037
|
onValueChange: r,
|
|
1033
1038
|
columns: { initial: "1", sm: "1" },
|
|
1034
1039
|
className: s,
|
|
1035
1040
|
...n,
|
|
1036
|
-
children: e.map((
|
|
1037
|
-
|
|
1041
|
+
children: e.map((o) => /* @__PURE__ */ d(
|
|
1042
|
+
oc,
|
|
1038
1043
|
{
|
|
1039
|
-
id:
|
|
1040
|
-
name:
|
|
1041
|
-
description:
|
|
1042
|
-
image:
|
|
1044
|
+
id: o.id,
|
|
1045
|
+
name: o.name,
|
|
1046
|
+
description: o.description,
|
|
1047
|
+
image: o.image
|
|
1043
1048
|
},
|
|
1044
|
-
|
|
1049
|
+
o.id
|
|
1045
1050
|
))
|
|
1046
1051
|
}
|
|
1047
1052
|
) });
|
|
1048
|
-
|
|
1049
|
-
const
|
|
1050
|
-
const s =
|
|
1053
|
+
lc.displayName = "ListCards";
|
|
1054
|
+
const cc = ({ item: e, value: a, onSelect: r }) => {
|
|
1055
|
+
const s = _(() => {
|
|
1051
1056
|
r && r(e.value);
|
|
1052
1057
|
}, [r, e.value]), n = a == null ? void 0 : a.includes(e.value);
|
|
1053
|
-
return /* @__PURE__ */
|
|
1054
|
-
|
|
1058
|
+
return /* @__PURE__ */ d(ae, { width: "calc(50% - 6px)", children: /* @__PURE__ */ d(
|
|
1059
|
+
Ht,
|
|
1055
1060
|
{
|
|
1056
1061
|
onClick: s,
|
|
1057
1062
|
cursor: "pointer",
|
|
@@ -1061,65 +1066,58 @@ const Qo = ({ item: e, value: a, onSelect: r }) => {
|
|
|
1061
1066
|
border: n ? "2px solid var(--accent-9)" : "2px solid transparent",
|
|
1062
1067
|
background: n ? "var(--accent-3)" : "var(--color-surface)"
|
|
1063
1068
|
},
|
|
1064
|
-
children: /* @__PURE__ */
|
|
1069
|
+
children: /* @__PURE__ */ C(M, { gap: "3", align: "start", direction: "column", height: "87px", children: [
|
|
1065
1070
|
e == null ? void 0 : e.icon,
|
|
1066
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ d(z, { as: "div", size: "2", color: "gray", weight: "bold", children: e == null ? void 0 : e.name })
|
|
1067
1072
|
] })
|
|
1068
1073
|
}
|
|
1069
1074
|
) });
|
|
1070
|
-
},
|
|
1075
|
+
}, ic = ({
|
|
1071
1076
|
items: e,
|
|
1072
1077
|
value: a = [],
|
|
1073
1078
|
onSelect: r,
|
|
1074
1079
|
className: s,
|
|
1075
1080
|
...n
|
|
1076
|
-
}) => /* @__PURE__ */
|
|
1077
|
-
|
|
1081
|
+
}) => /* @__PURE__ */ d(ae, { height: "100%", width: "100%", overflow: "auto", children: /* @__PURE__ */ d(M, { className: s, ...n, gap: "3", wrap: "wrap", children: e.map((o) => /* @__PURE__ */ d(
|
|
1082
|
+
cc,
|
|
1078
1083
|
{
|
|
1079
|
-
item:
|
|
1084
|
+
item: o,
|
|
1080
1085
|
value: a,
|
|
1081
1086
|
onSelect: r
|
|
1082
1087
|
},
|
|
1083
|
-
|
|
1088
|
+
o.value
|
|
1084
1089
|
)) }) });
|
|
1085
|
-
|
|
1086
|
-
const
|
|
1090
|
+
ic.displayName = "MultiSelectCards";
|
|
1091
|
+
const uc = ({
|
|
1087
1092
|
className: e,
|
|
1088
1093
|
selectedType: a,
|
|
1089
|
-
size: r = "
|
|
1094
|
+
size: r = "2",
|
|
1090
1095
|
handleTypeChange: s,
|
|
1091
1096
|
items: n,
|
|
1092
|
-
...
|
|
1093
|
-
}) => /* @__PURE__ */
|
|
1094
|
-
|
|
1097
|
+
...o
|
|
1098
|
+
}) => /* @__PURE__ */ d(M, { padding: "1", width: "100%", children: /* @__PURE__ */ d(
|
|
1099
|
+
Ma,
|
|
1095
1100
|
{
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
onValueChange: s,
|
|
1105
|
-
variant: "surface",
|
|
1106
|
-
className: `custom-segmented-control ${e || ""}`,
|
|
1107
|
-
...l,
|
|
1108
|
-
children: n.map((o) => /* @__PURE__ */ m(ha, { value: o.value, children: o.label }, o.value))
|
|
1109
|
-
}
|
|
1110
|
-
)
|
|
1101
|
+
size: r,
|
|
1102
|
+
value: a,
|
|
1103
|
+
onValueChange: s,
|
|
1104
|
+
variant: "surface",
|
|
1105
|
+
radius: "medium",
|
|
1106
|
+
className: `custom-segmented-control ${e || ""}`,
|
|
1107
|
+
...o,
|
|
1108
|
+
children: n.map((l) => /* @__PURE__ */ d(Pa, { value: l.value, children: l.label }, l.value))
|
|
1111
1109
|
}
|
|
1112
|
-
);
|
|
1113
|
-
|
|
1114
|
-
const
|
|
1110
|
+
) });
|
|
1111
|
+
uc.displayName = "SegmentedControl";
|
|
1112
|
+
const dc = ({
|
|
1115
1113
|
type: e,
|
|
1116
1114
|
message: a,
|
|
1117
1115
|
ctaLabel: r,
|
|
1118
1116
|
onClick: s,
|
|
1119
1117
|
className: n,
|
|
1120
|
-
...
|
|
1121
|
-
}) => /* @__PURE__ */
|
|
1122
|
-
|
|
1118
|
+
...o
|
|
1119
|
+
}) => /* @__PURE__ */ d(
|
|
1120
|
+
Vt,
|
|
1123
1121
|
{
|
|
1124
1122
|
size: "1",
|
|
1125
1123
|
color: e === "error" ? "red" : e === "warn" ? "yellow" : "gray",
|
|
@@ -1129,93 +1127,253 @@ const Xo = ({
|
|
|
1129
1127
|
display: "flex"
|
|
1130
1128
|
},
|
|
1131
1129
|
className: n,
|
|
1132
|
-
...
|
|
1133
|
-
children: /* @__PURE__ */
|
|
1134
|
-
/* @__PURE__ */
|
|
1135
|
-
/* @__PURE__ */
|
|
1136
|
-
/* @__PURE__ */
|
|
1130
|
+
...o,
|
|
1131
|
+
children: /* @__PURE__ */ C(M, { align: "center", width: "100%", gap: "2", justify: "between", children: [
|
|
1132
|
+
/* @__PURE__ */ C(M, { align: "center", gap: "2", children: [
|
|
1133
|
+
/* @__PURE__ */ d(Ot, { children: /* @__PURE__ */ d(ht, {}) }),
|
|
1134
|
+
/* @__PURE__ */ d(jt, { children: a })
|
|
1137
1135
|
] }),
|
|
1138
|
-
/* @__PURE__ */
|
|
1136
|
+
/* @__PURE__ */ d(M, { children: r && /* @__PURE__ */ d(Dt, { size: "1", variant: "solid", color: "gray", onClick: s, children: r }) })
|
|
1139
1137
|
] })
|
|
1140
1138
|
}
|
|
1141
1139
|
);
|
|
1142
|
-
|
|
1143
|
-
const
|
|
1140
|
+
dc.displayName = "MessageWithAction";
|
|
1141
|
+
const mc = ({
|
|
1144
1142
|
className: e,
|
|
1145
1143
|
title: a,
|
|
1146
1144
|
handleModelChange: r,
|
|
1147
1145
|
defaultValue: s,
|
|
1148
1146
|
items: n,
|
|
1149
|
-
info:
|
|
1150
|
-
...
|
|
1151
|
-
}) => /* @__PURE__ */
|
|
1152
|
-
a && /* @__PURE__ */
|
|
1153
|
-
/* @__PURE__ */
|
|
1154
|
-
|
|
1147
|
+
info: o,
|
|
1148
|
+
...l
|
|
1149
|
+
}) => /* @__PURE__ */ C(ae, { width: "100%", className: e, ...l, children: [
|
|
1150
|
+
a && /* @__PURE__ */ C(M, { mb: "2", alignItems: "center", gap: "2", children: [
|
|
1151
|
+
/* @__PURE__ */ d(z, { size: "1", weight: "bold", children: a }),
|
|
1152
|
+
o && /* @__PURE__ */ d(We, { content: o, children: /* @__PURE__ */ d(ht, {}) })
|
|
1155
1153
|
] }),
|
|
1156
|
-
/* @__PURE__ */
|
|
1157
|
-
|
|
1154
|
+
/* @__PURE__ */ d(M, { direction: "column", children: /* @__PURE__ */ C(
|
|
1155
|
+
Ia,
|
|
1158
1156
|
{
|
|
1159
1157
|
onValueChange: r,
|
|
1160
1158
|
defaultValue: s,
|
|
1161
1159
|
children: [
|
|
1162
|
-
/* @__PURE__ */
|
|
1163
|
-
/* @__PURE__ */
|
|
1160
|
+
/* @__PURE__ */ d(za, { variant: "soft", color: "gray" }),
|
|
1161
|
+
/* @__PURE__ */ d(_a, { children: /* @__PURE__ */ d(Ba, { children: n.map((c) => /* @__PURE__ */ d(ka, { value: c.value, children: c.label }, c.value)) }) })
|
|
1164
1162
|
]
|
|
1165
1163
|
}
|
|
1166
1164
|
) })
|
|
1167
1165
|
] });
|
|
1168
|
-
|
|
1166
|
+
mc.displayName = "Select";
|
|
1167
|
+
const pc = "_content_106xp_1", fc = "_pan_106xp_8", gc = "_range_106xp_19", hc = "_tooltipContent_106xp_39", vc = "_tooltipArrow_106xp_53", ne = {
|
|
1168
|
+
content: pc,
|
|
1169
|
+
pan: fc,
|
|
1170
|
+
range: gc,
|
|
1171
|
+
tooltipContent: hc,
|
|
1172
|
+
tooltipArrow: vc
|
|
1173
|
+
}, Nc = typeof window < "u" ? ar : at;
|
|
1174
|
+
function yc(e, a, r) {
|
|
1175
|
+
const s = he(a);
|
|
1176
|
+
Nc(() => {
|
|
1177
|
+
s.current = a;
|
|
1178
|
+
}, [a]), at(() => {
|
|
1179
|
+
const n = (r == null ? void 0 : r.current) || window;
|
|
1180
|
+
if (!(n && n.addEventListener))
|
|
1181
|
+
return;
|
|
1182
|
+
const o = (l) => s.current(l);
|
|
1183
|
+
return n.addEventListener(e, o), () => {
|
|
1184
|
+
n.removeEventListener(e, o);
|
|
1185
|
+
};
|
|
1186
|
+
}, [e, r]);
|
|
1187
|
+
}
|
|
1188
|
+
const oe = 10, le = 10, Y = 9.5, Re = -Math.PI / 2, Qe = 0.01, Ue = -1, Je = 1, Cc = 0.1, $c = ({ className: e, value: a, onChange: r, disabled: s }) => {
|
|
1189
|
+
const n = he(null), [o, l] = tt(!1), c = he(), u = _(
|
|
1190
|
+
(R) => {
|
|
1191
|
+
R.preventDefault(), R.stopPropagation();
|
|
1192
|
+
const T = R.wheelDelta ?? -R.deltaY * 25;
|
|
1193
|
+
if (!T) return;
|
|
1194
|
+
const O = Math.max(
|
|
1195
|
+
Ue,
|
|
1196
|
+
Math.min(
|
|
1197
|
+
Je,
|
|
1198
|
+
parseFloat(n.current.value) + (T > 0 ? Qe : -0.01)
|
|
1199
|
+
)
|
|
1200
|
+
);
|
|
1201
|
+
r(O), p();
|
|
1202
|
+
},
|
|
1203
|
+
[r]
|
|
1204
|
+
);
|
|
1205
|
+
yc("wheel", u, n);
|
|
1206
|
+
const p = _(() => {
|
|
1207
|
+
clearTimeout(c.current), l(!0);
|
|
1208
|
+
}, []), f = _(() => {
|
|
1209
|
+
c.current = setTimeout(() => {
|
|
1210
|
+
l(!1);
|
|
1211
|
+
}, 300);
|
|
1212
|
+
}, []), h = _(
|
|
1213
|
+
(R) => {
|
|
1214
|
+
let T = parseFloat(R.currentTarget.value);
|
|
1215
|
+
T = Math.abs(T) < Cc ? 0 : T, r(T), p();
|
|
1216
|
+
},
|
|
1217
|
+
[r, p]
|
|
1218
|
+
), y = _(
|
|
1219
|
+
(R) => {
|
|
1220
|
+
R.detail === 2 && (r(0), p());
|
|
1221
|
+
},
|
|
1222
|
+
[r, p]
|
|
1223
|
+
), { arcPath: b, pointerRotation: x, arcColor: v, pointerColor: k } = J(() => {
|
|
1224
|
+
const R = Re + a * Math.PI, T = oe + Y * Math.cos(Re), O = le + Y * Math.sin(Re), $e = oe + Y * Math.cos(R), Ua = le + Y * Math.sin(R), Ja = 0, er = a > 0 ? 1 : 0;
|
|
1225
|
+
return {
|
|
1226
|
+
arcPath: `M ${T.toFixed(3)} ${O.toFixed(3)}
|
|
1227
|
+
A ${Y} ${Y} 0 ${Ja} ${er}
|
|
1228
|
+
${$e.toFixed(3)} ${Ua.toFixed(3)}`,
|
|
1229
|
+
pointerRotation: a * 180,
|
|
1230
|
+
arcColor: s ? "#5A6169" : "#19E4F1",
|
|
1231
|
+
pointerColor: s ? "#43484E" : "#B0B4BA"
|
|
1232
|
+
};
|
|
1233
|
+
}, [a, s]), A = J(() => Math.abs(a) < 0.01 ? "Pan: 0" : `Pan: ${Math.round(a * 100)}`, [a]), Q = J(
|
|
1234
|
+
() => /* @__PURE__ */ C(et, { children: [
|
|
1235
|
+
A,
|
|
1236
|
+
/* @__PURE__ */ d(ke, { className: ne.tooltipArrow })
|
|
1237
|
+
] }),
|
|
1238
|
+
[A]
|
|
1239
|
+
);
|
|
1240
|
+
return /* @__PURE__ */ C(
|
|
1241
|
+
"div",
|
|
1242
|
+
{
|
|
1243
|
+
className: i(ne.content, e),
|
|
1244
|
+
"data-no-drag": "true",
|
|
1245
|
+
onMouseEnter: p,
|
|
1246
|
+
onMouseLeave: f,
|
|
1247
|
+
children: [
|
|
1248
|
+
/* @__PURE__ */ d(Me, { delayDuration: 200, children: /* @__PURE__ */ C(Ie, { open: o, children: [
|
|
1249
|
+
/* @__PURE__ */ d(ze, { asChild: !0, children: /* @__PURE__ */ d("div", { className: ne.pan, children: /* @__PURE__ */ C("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", children: [
|
|
1250
|
+
/* @__PURE__ */ d(
|
|
1251
|
+
"circle",
|
|
1252
|
+
{
|
|
1253
|
+
cx: oe,
|
|
1254
|
+
cy: le,
|
|
1255
|
+
r: 10,
|
|
1256
|
+
fill: "#DDEAF8",
|
|
1257
|
+
fillOpacity: 0.0784314
|
|
1258
|
+
}
|
|
1259
|
+
),
|
|
1260
|
+
/* @__PURE__ */ d(
|
|
1261
|
+
"circle",
|
|
1262
|
+
{
|
|
1263
|
+
cx: oe,
|
|
1264
|
+
cy: le,
|
|
1265
|
+
r: Y,
|
|
1266
|
+
stroke: "#D3EDF8",
|
|
1267
|
+
strokeOpacity: 0.113725
|
|
1268
|
+
}
|
|
1269
|
+
),
|
|
1270
|
+
a !== 0 && /* @__PURE__ */ d(
|
|
1271
|
+
"path",
|
|
1272
|
+
{
|
|
1273
|
+
d: b,
|
|
1274
|
+
stroke: v,
|
|
1275
|
+
strokeLinecap: "round",
|
|
1276
|
+
strokeWidth: 1.5,
|
|
1277
|
+
fill: "none"
|
|
1278
|
+
}
|
|
1279
|
+
),
|
|
1280
|
+
/* @__PURE__ */ d(
|
|
1281
|
+
"g",
|
|
1282
|
+
{
|
|
1283
|
+
transform: `rotate(${x} ${oe} ${le})`,
|
|
1284
|
+
children: /* @__PURE__ */ d(
|
|
1285
|
+
"path",
|
|
1286
|
+
{
|
|
1287
|
+
d: "M10 0 L10 6",
|
|
1288
|
+
stroke: k,
|
|
1289
|
+
strokeLinecap: "round",
|
|
1290
|
+
strokeWidth: 1
|
|
1291
|
+
}
|
|
1292
|
+
)
|
|
1293
|
+
}
|
|
1294
|
+
)
|
|
1295
|
+
] }) }) }),
|
|
1296
|
+
/* @__PURE__ */ d(
|
|
1297
|
+
_e,
|
|
1298
|
+
{
|
|
1299
|
+
className: ne.tooltipContent,
|
|
1300
|
+
side: "bottom",
|
|
1301
|
+
align: "center",
|
|
1302
|
+
sideOffset: 10,
|
|
1303
|
+
children: Q
|
|
1304
|
+
}
|
|
1305
|
+
)
|
|
1306
|
+
] }) }),
|
|
1307
|
+
/* @__PURE__ */ d("div", { className: ne.range, children: /* @__PURE__ */ d(
|
|
1308
|
+
"input",
|
|
1309
|
+
{
|
|
1310
|
+
ref: n,
|
|
1311
|
+
type: "range",
|
|
1312
|
+
min: Ue,
|
|
1313
|
+
max: Je,
|
|
1314
|
+
step: Qe,
|
|
1315
|
+
value: a,
|
|
1316
|
+
onChange: h,
|
|
1317
|
+
onClick: y,
|
|
1318
|
+
disabled: s
|
|
1319
|
+
}
|
|
1320
|
+
) })
|
|
1321
|
+
]
|
|
1322
|
+
}
|
|
1323
|
+
);
|
|
1324
|
+
};
|
|
1325
|
+
$c.displayName = "PanControl";
|
|
1169
1326
|
export {
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1327
|
+
Sc as AlertDialog,
|
|
1328
|
+
xc as AspectRatio,
|
|
1329
|
+
It as Avatar,
|
|
1330
|
+
rn as Badge,
|
|
1331
|
+
sn as Blockquote,
|
|
1332
|
+
ae as Box,
|
|
1333
|
+
Dt as Button,
|
|
1334
|
+
Ht as Card,
|
|
1335
|
+
Hn as Checkbox,
|
|
1336
|
+
qn as Code,
|
|
1337
|
+
Jn as Container,
|
|
1338
|
+
Tc as ContextMenu,
|
|
1339
|
+
Mc as Dialog,
|
|
1340
|
+
Lc as DropdownMenu,
|
|
1341
|
+
io as Em,
|
|
1342
|
+
M as Flex,
|
|
1343
|
+
Gt as Grid,
|
|
1344
|
+
Vc as HeaderPanel,
|
|
1345
|
+
De as Heading,
|
|
1346
|
+
Dc as HorizontalVolume,
|
|
1347
|
+
Pc as HoverCard,
|
|
1348
|
+
Za as IconButton,
|
|
1349
|
+
ho as Inset,
|
|
1350
|
+
yo as Kbd,
|
|
1351
|
+
wo as Link,
|
|
1352
|
+
lc as ListCards,
|
|
1353
|
+
dc as MessageWithAction,
|
|
1354
|
+
ic as MultiSelectCards,
|
|
1355
|
+
$c as PanControl,
|
|
1356
|
+
Ic as Popover,
|
|
1357
|
+
Mo as Progress,
|
|
1358
|
+
Io as Quote,
|
|
1359
|
+
Ho as Radio,
|
|
1360
|
+
zc as RadioGroup,
|
|
1361
|
+
Ce as ScrollArea,
|
|
1362
|
+
Xo as Section,
|
|
1363
|
+
uc as SegmentedControl,
|
|
1364
|
+
mc as Select,
|
|
1365
|
+
ll as Separator,
|
|
1366
|
+
ul as Skeleton,
|
|
1367
|
+
fl as Slider,
|
|
1368
|
+
Bt as Spinner,
|
|
1369
|
+
hl as Strong,
|
|
1370
|
+
Cl as Switch,
|
|
1371
|
+
_c as Table,
|
|
1372
|
+
kc as Tabs,
|
|
1215
1373
|
z as Text,
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1374
|
+
Dl as TextArea,
|
|
1375
|
+
Bc as TextField,
|
|
1376
|
+
Ac as Theme,
|
|
1377
|
+
We as Tooltip,
|
|
1378
|
+
wn as VisuallyHidden
|
|
1221
1379
|
};
|