@moises.ai/design-system 2.0.5 → 2.0.6

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