@marimo-team/islands 0.24.1-dev115 → 0.24.1-dev116
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/{ConnectedDataExplorerComponent-3vyrwCHu.js → ConnectedDataExplorerComponent-BabDOEkd.js} +10 -10
- package/dist/{ErrorBoundary-QF0xsxMw.js → ErrorBoundary-DXp6EXOC.js} +2 -2
- package/dist/{any-language-editor-B2e3EkTe.js → any-language-editor-CpTnK43-.js} +3 -3
- package/dist/{chat-ui-BgGHMO2G.js → chat-ui-B2KTPWqm.js} +15 -15
- package/dist/{check-C_-c2CXl.js → check-CHig47QV.js} +1 -1
- package/dist/{common-Cdx64lyR.js → common-mAFq987V.js} +7588 -7544
- package/dist/{copy-D4GHy7GA.js → copy-CD7S58CY.js} +1 -1
- package/dist/{dist-mymH-A_x.js → dist-3_o3T78I.js} +14 -14
- package/dist/{dropdown-menu-Div6gwlw.js → dropdown-menu-D1s8H8Ow.js} +123 -123
- package/dist/{error-banner-DmgOcFS3.js → error-banner-WDhUzJyg.js} +202 -202
- package/dist/{esm-CmFEQJjP.js → esm-CesmlDrs.js} +1 -1
- package/dist/{extends-CGTKDWHv.js → extends-BPB6_lTK.js} +3 -3
- package/dist/{formats-DuRRWVwb.js → formats-DrWM-ouO.js} +1 -1
- package/dist/{glide-data-editor-ekJ5GwaZ.js → glide-data-editor-B-3cUJQd.js} +7 -7
- package/dist/{glide-utils-Dwc8Eh8G.js → glide-utils-NShAPPtn.js} +2 -2
- package/dist/{html-to-image-u8Ik6EnK.js → html-to-image-DqqHcuV2.js} +3378 -3378
- package/dist/{label-DdGS_CZZ.js → label-lwzzBHUW.js} +1 -1
- package/dist/main.js +792 -792
- package/dist/{mermaid-Bt45Zzl4.js → mermaid-DWMOBSe8.js} +3 -3
- package/dist/{process-output-DQiqt-_U.js → process-output-D5dqSIGW.js} +3 -3
- package/dist/{reveal-component-tQ-rgxcQ.js → reveal-component-DU6Wrhzv.js} +8 -8
- package/dist/{schemas-BjeOpZLk.js → schemas-DzK6U94N.js} +1379 -1363
- package/dist/{select-DotAQ4jp.js → select-3qHpFKF9.js} +286 -286
- package/dist/{spec-BesaYkGC.js → spec-DzTo7SI8.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/{toDate-CrAIOASL.js → toDate-Cq6SCTVJ.js} +2 -2
- package/dist/{tooltip-COXZxyl7.js → tooltip-Dt77sBeT.js} +87 -87
- package/dist/{useAsyncData-x0_tWDWI.js → useAsyncData-DqlulK9M.js} +1 -1
- package/dist/{useDateFormatter-B3V__WqX.js → useDateFormatter-Cp9Jdxls.js} +2 -2
- package/dist/{useDeepCompareMemoize-KaRHJEEU.js → useDeepCompareMemoize-Ceu-LMdC.js} +1 -1
- package/dist/{useLifecycle-x0OriHo-.js → useLifecycle-DmYfrWCI.js} +2 -2
- package/dist/{useTheme-Bm9_FyqO.js → useTheme-CWrCsZgw.js} +1 -1
- package/dist/{vega-component-nD2oP6WN.js → vega-component-Dzo_03Dh.js} +7 -7
- package/package.json +1 -1
- package/src/components/editor/Output.tsx +40 -0
- package/src/components/editor/__tests__/Output.test.tsx +85 -2
- package/src/components/ui/__tests__/fullscreen.test.tsx +88 -0
- package/src/components/ui/fullscreen.tsx +43 -1
- package/src/hooks/useEventListener.ts +1 -1
|
@@ -2,32 +2,32 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
|
2
2
|
import { g as t, h as n, m as r, p as i, r as a, u as o } from "./button-CKBkqR9J.js";
|
|
3
3
|
import { t as s } from "./react-DMWcHin-.js";
|
|
4
4
|
import { t as c } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
|
-
import { a as l, c as u, i as d, n as f, r as p, t as m, u as h } from "./dist-
|
|
6
|
-
import { t as g } from "./check-
|
|
5
|
+
import { a as l, c as u, i as d, n as f, r as p, t as m, u as h } from "./dist-3_o3T78I.js";
|
|
6
|
+
import { t as g } from "./check-CHig47QV.js";
|
|
7
7
|
import { t as _ } from "./react-dom-C94wmq5w.js";
|
|
8
8
|
import { t as v } from "./jsx-runtime-CpoKNRgu.js";
|
|
9
|
-
import { Ac as y, Bc as b, Dc as x,
|
|
10
|
-
import { t as
|
|
11
|
-
var
|
|
9
|
+
import { Ac as y, Bc as b, Dc as x, Fc as S, Gc as C, Ic as ee, Jc as w, Mc as T, Oc as E, Pc as D, Rc as te, Uc as O, Vc as k, Wc as A, jc as ne, qc as re } from "./schemas-DzK6U94N.js";
|
|
10
|
+
import { t as j } from "./invariant-DLmrl-hA.js";
|
|
11
|
+
var M = h("chevron-down", [["path", {
|
|
12
12
|
d: "m6 9 6 6 6-6",
|
|
13
13
|
key: "qrunsl"
|
|
14
|
-
}]]),
|
|
14
|
+
}]]), ie = h("chevron-up", [["path", {
|
|
15
15
|
d: "m18 15-6-6-6 6",
|
|
16
16
|
key: "153udz"
|
|
17
|
-
}]]),
|
|
17
|
+
}]]), N = h("x", [["path", {
|
|
18
18
|
d: "M18 6 6 18",
|
|
19
19
|
key: "1bl5f8"
|
|
20
20
|
}], ["path", {
|
|
21
21
|
d: "m6 6 12 12",
|
|
22
22
|
key: "d8bk6v"
|
|
23
|
-
}]]),
|
|
24
|
-
function
|
|
25
|
-
let t = e + "CollectionProvider", [n, r] =
|
|
23
|
+
}]]), P = /* @__PURE__ */ e(_(), 1), F = /* @__PURE__ */ e(s(), 1), I = v();
|
|
24
|
+
function L(e) {
|
|
25
|
+
let t = e + "CollectionProvider", [n, r] = re(t), [a, s] = n(t, {
|
|
26
26
|
collectionRef: { current: null },
|
|
27
27
|
itemMap: /* @__PURE__ */ new Map()
|
|
28
28
|
}), c = (e) => {
|
|
29
|
-
let { scope: t, children: n } = e, r =
|
|
30
|
-
return /* @__PURE__ */ (0,
|
|
29
|
+
let { scope: t, children: n } = e, r = F.useRef(null), i = F.useRef(/* @__PURE__ */ new Map()).current;
|
|
30
|
+
return /* @__PURE__ */ (0, I.jsx)(a, {
|
|
31
31
|
scope: t,
|
|
32
32
|
itemMap: i,
|
|
33
33
|
collectionRef: r,
|
|
@@ -35,20 +35,20 @@ function R(e) {
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
c.displayName = t;
|
|
38
|
-
let l = e + "CollectionSlot", u = o(l), d =
|
|
38
|
+
let l = e + "CollectionSlot", u = o(l), d = F.forwardRef((e, t) => {
|
|
39
39
|
let { scope: n, children: r } = e, a = s(l, n), o = i(t, a.collectionRef);
|
|
40
|
-
return /* @__PURE__ */ (0,
|
|
40
|
+
return /* @__PURE__ */ (0, I.jsx)(u, {
|
|
41
41
|
ref: o,
|
|
42
42
|
children: r
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
d.displayName = l;
|
|
46
|
-
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = o(f), h =
|
|
47
|
-
let { scope: n, children: r, ...a } = e, o =
|
|
48
|
-
return
|
|
46
|
+
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = o(f), h = F.forwardRef((e, t) => {
|
|
47
|
+
let { scope: n, children: r, ...a } = e, o = F.useRef(null), c = i(t, o), l = s(f, n);
|
|
48
|
+
return F.useEffect(() => (l.itemMap.set(o, {
|
|
49
49
|
ref: o,
|
|
50
50
|
...a
|
|
51
|
-
}), () => void l.itemMap.delete(o))), /* @__PURE__ */ (0,
|
|
51
|
+
}), () => void l.itemMap.delete(o))), /* @__PURE__ */ (0, I.jsx)(m, {
|
|
52
52
|
[p]: "",
|
|
53
53
|
ref: c,
|
|
54
54
|
children: r
|
|
@@ -57,7 +57,7 @@ function R(e) {
|
|
|
57
57
|
h.displayName = f;
|
|
58
58
|
function g(t) {
|
|
59
59
|
let n = s(e + "CollectionConsumer", t);
|
|
60
|
-
return
|
|
60
|
+
return F.useCallback(() => {
|
|
61
61
|
let e = n.collectionRef.current;
|
|
62
62
|
if (!e) return [];
|
|
63
63
|
let t = Array.from(e.querySelectorAll(`[${p}]`));
|
|
@@ -76,96 +76,96 @@ function R(e) {
|
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region ../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
79
|
-
var
|
|
80
|
-
function
|
|
81
|
-
let t =
|
|
79
|
+
var R = F.createContext(void 0);
|
|
80
|
+
function z(e) {
|
|
81
|
+
let t = F.useContext(R);
|
|
82
82
|
return e || t || "ltr";
|
|
83
83
|
}
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region ../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
86
|
-
function
|
|
87
|
-
let t =
|
|
86
|
+
function ae(e) {
|
|
87
|
+
let t = F.useRef({
|
|
88
88
|
value: e,
|
|
89
89
|
previous: e
|
|
90
90
|
});
|
|
91
|
-
return
|
|
91
|
+
return F.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region ../node_modules/.pnpm/@radix-ui+number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs
|
|
95
|
-
function
|
|
95
|
+
function B(e, [t, n]) {
|
|
96
96
|
return Math.min(n, Math.max(t, e));
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
99
99
|
//#region ../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@19.2.3_@types+react@19.2.10__@types+react_1f7b4ff668a805c08339bb4e58c413b0/node_modules/@radix-ui/react-select/dist/index.mjs
|
|
100
|
-
var
|
|
100
|
+
var oe = [
|
|
101
101
|
" ",
|
|
102
102
|
"Enter",
|
|
103
103
|
"ArrowUp",
|
|
104
104
|
"ArrowDown"
|
|
105
|
-
],
|
|
106
|
-
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: f, disabled: p, required: m, form: h } = e, g =
|
|
105
|
+
], se = [" ", "Enter"], V = "Select", [H, U, ce] = L(V), [W, le] = re(V, [ce, l]), G = l(), [ue, K] = W(V), [de, fe] = W(V), pe = (e) => {
|
|
106
|
+
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: f, disabled: p, required: m, form: h } = e, g = G(t), [_, v] = F.useState(null), [y, b] = F.useState(null), [x, S] = F.useState(!1), C = z(l), [ee, w] = O({
|
|
107
107
|
prop: r,
|
|
108
108
|
defaultProp: i ?? !1,
|
|
109
109
|
onChange: a,
|
|
110
|
-
caller:
|
|
111
|
-
}), [
|
|
110
|
+
caller: V
|
|
111
|
+
}), [T, E] = O({
|
|
112
112
|
prop: o,
|
|
113
113
|
defaultProp: s,
|
|
114
114
|
onChange: c,
|
|
115
|
-
caller:
|
|
116
|
-
}),
|
|
117
|
-
return /* @__PURE__ */ (0,
|
|
115
|
+
caller: V
|
|
116
|
+
}), D = F.useRef(null), te = !_ || h || !!_.closest("form"), [A, ne] = F.useState(/* @__PURE__ */ new Set()), re = Array.from(A).map((e) => e.props.value).join(";");
|
|
117
|
+
return /* @__PURE__ */ (0, I.jsx)(d, {
|
|
118
118
|
...g,
|
|
119
|
-
children: /* @__PURE__ */ (0,
|
|
119
|
+
children: /* @__PURE__ */ (0, I.jsxs)(ue, {
|
|
120
120
|
required: m,
|
|
121
121
|
scope: t,
|
|
122
122
|
trigger: _,
|
|
123
123
|
onTriggerChange: v,
|
|
124
124
|
valueNode: y,
|
|
125
|
-
onValueNodeChange:
|
|
126
|
-
valueNodeHasChildren:
|
|
127
|
-
onValueNodeHasChildrenChange:
|
|
128
|
-
contentId:
|
|
129
|
-
value:
|
|
130
|
-
onValueChange:
|
|
131
|
-
open:
|
|
132
|
-
onOpenChange:
|
|
133
|
-
dir:
|
|
134
|
-
triggerPointerDownPosRef:
|
|
125
|
+
onValueNodeChange: b,
|
|
126
|
+
valueNodeHasChildren: x,
|
|
127
|
+
onValueNodeHasChildrenChange: S,
|
|
128
|
+
contentId: k(),
|
|
129
|
+
value: T,
|
|
130
|
+
onValueChange: E,
|
|
131
|
+
open: ee,
|
|
132
|
+
onOpenChange: w,
|
|
133
|
+
dir: C,
|
|
134
|
+
triggerPointerDownPosRef: D,
|
|
135
135
|
disabled: p,
|
|
136
|
-
children: [/* @__PURE__ */ (0,
|
|
136
|
+
children: [/* @__PURE__ */ (0, I.jsx)(H.Provider, {
|
|
137
137
|
scope: t,
|
|
138
|
-
children: /* @__PURE__ */ (0,
|
|
138
|
+
children: /* @__PURE__ */ (0, I.jsx)(de, {
|
|
139
139
|
scope: e.__scopeSelect,
|
|
140
|
-
onNativeOptionAdd:
|
|
141
|
-
|
|
140
|
+
onNativeOptionAdd: F.useCallback((e) => {
|
|
141
|
+
ne((t) => new Set(t).add(e));
|
|
142
142
|
}, []),
|
|
143
|
-
onNativeOptionRemove:
|
|
144
|
-
|
|
143
|
+
onNativeOptionRemove: F.useCallback((e) => {
|
|
144
|
+
ne((t) => {
|
|
145
145
|
let n = new Set(t);
|
|
146
146
|
return n.delete(e), n;
|
|
147
147
|
});
|
|
148
148
|
}, []),
|
|
149
149
|
children: n
|
|
150
150
|
})
|
|
151
|
-
}), te ? /* @__PURE__ */ (0,
|
|
151
|
+
}), te ? /* @__PURE__ */ (0, I.jsxs)(rt, {
|
|
152
152
|
"aria-hidden": !0,
|
|
153
153
|
required: m,
|
|
154
154
|
tabIndex: -1,
|
|
155
155
|
name: u,
|
|
156
156
|
autoComplete: f,
|
|
157
|
-
value:
|
|
158
|
-
onChange: (e) =>
|
|
157
|
+
value: T,
|
|
158
|
+
onChange: (e) => E(e.target.value),
|
|
159
159
|
disabled: p,
|
|
160
160
|
form: h,
|
|
161
|
-
children: [
|
|
162
|
-
},
|
|
161
|
+
children: [T === void 0 ? /* @__PURE__ */ (0, I.jsx)("option", { value: "" }) : null, Array.from(A)]
|
|
162
|
+
}, re) : null]
|
|
163
163
|
})
|
|
164
164
|
});
|
|
165
165
|
};
|
|
166
|
-
|
|
167
|
-
var
|
|
168
|
-
let { __scopeSelect: n, disabled: r = !1, ...a } = e, o =
|
|
166
|
+
pe.displayName = V;
|
|
167
|
+
var me = "SelectTrigger", he = F.forwardRef((e, t) => {
|
|
168
|
+
let { __scopeSelect: n, disabled: r = !1, ...a } = e, o = G(n), s = K(me, n), c = s.disabled || r, l = i(t, s.onTriggerChange), u = U(n), d = F.useRef("touch"), [f, p, h] = at((e) => {
|
|
169
169
|
let t = u().filter((e) => !e.disabled), n = ot(t, e, t.find((e) => e.value === s.value));
|
|
170
170
|
n !== void 0 && s.onValueChange(n.value);
|
|
171
171
|
}), g = (e) => {
|
|
@@ -174,10 +174,10 @@ var pe = "SelectTrigger", me = I.forwardRef((e, t) => {
|
|
|
174
174
|
y: Math.round(e.pageY)
|
|
175
175
|
});
|
|
176
176
|
};
|
|
177
|
-
return /* @__PURE__ */ (0,
|
|
177
|
+
return /* @__PURE__ */ (0, I.jsx)(m, {
|
|
178
178
|
asChild: !0,
|
|
179
179
|
...o,
|
|
180
|
-
children: /* @__PURE__ */ (0,
|
|
180
|
+
children: /* @__PURE__ */ (0, I.jsx)(w.button, {
|
|
181
181
|
type: "button",
|
|
182
182
|
role: "combobox",
|
|
183
183
|
"aria-controls": s.contentId,
|
|
@@ -191,100 +191,100 @@ var pe = "SelectTrigger", me = I.forwardRef((e, t) => {
|
|
|
191
191
|
"data-placeholder": it(s.value) ? "" : void 0,
|
|
192
192
|
...a,
|
|
193
193
|
ref: l,
|
|
194
|
-
onClick:
|
|
194
|
+
onClick: C(a.onClick, (e) => {
|
|
195
195
|
e.currentTarget.focus(), d.current !== "mouse" && g(e);
|
|
196
196
|
}),
|
|
197
|
-
onPointerDown:
|
|
197
|
+
onPointerDown: C(a.onPointerDown, (e) => {
|
|
198
198
|
d.current = e.pointerType;
|
|
199
199
|
let t = e.target;
|
|
200
200
|
t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (g(e), e.preventDefault());
|
|
201
201
|
}),
|
|
202
|
-
onKeyDown:
|
|
202
|
+
onKeyDown: C(a.onKeyDown, (e) => {
|
|
203
203
|
let t = f.current !== "";
|
|
204
|
-
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && p(e.key), !(t && e.key === " ") &&
|
|
204
|
+
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && p(e.key), !(t && e.key === " ") && oe.includes(e.key) && (g(), e.preventDefault());
|
|
205
205
|
})
|
|
206
206
|
})
|
|
207
207
|
});
|
|
208
208
|
});
|
|
209
|
-
|
|
210
|
-
var
|
|
211
|
-
let { __scopeSelect: n, className: r, style: a, children: o, placeholder: s = "", ...c } = e, l =
|
|
212
|
-
return
|
|
209
|
+
he.displayName = me;
|
|
210
|
+
var ge = "SelectValue", _e = F.forwardRef((e, t) => {
|
|
211
|
+
let { __scopeSelect: n, className: r, style: a, children: o, placeholder: s = "", ...c } = e, l = K(ge, n), { onValueNodeHasChildrenChange: u } = l, d = o !== void 0, f = i(t, l.onValueNodeChange);
|
|
212
|
+
return A(() => {
|
|
213
213
|
u(d);
|
|
214
|
-
}, [u, d]), /* @__PURE__ */ (0,
|
|
214
|
+
}, [u, d]), /* @__PURE__ */ (0, I.jsx)(w.span, {
|
|
215
215
|
...c,
|
|
216
216
|
ref: f,
|
|
217
217
|
style: { pointerEvents: "none" },
|
|
218
|
-
children: it(l.value) ? /* @__PURE__ */ (0,
|
|
218
|
+
children: it(l.value) ? /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: s }) : o
|
|
219
219
|
});
|
|
220
220
|
});
|
|
221
|
-
|
|
222
|
-
var
|
|
221
|
+
_e.displayName = ge;
|
|
222
|
+
var ve = "SelectIcon", ye = F.forwardRef((e, t) => {
|
|
223
223
|
let { __scopeSelect: n, children: r, ...i } = e;
|
|
224
|
-
return /* @__PURE__ */ (0,
|
|
224
|
+
return /* @__PURE__ */ (0, I.jsx)(w.span, {
|
|
225
225
|
"aria-hidden": !0,
|
|
226
226
|
...i,
|
|
227
227
|
ref: t,
|
|
228
228
|
children: r || "▼"
|
|
229
229
|
});
|
|
230
230
|
});
|
|
231
|
-
|
|
232
|
-
var
|
|
231
|
+
ye.displayName = ve;
|
|
232
|
+
var be = "SelectPortal", xe = (e) => /* @__PURE__ */ (0, I.jsx)(S, {
|
|
233
233
|
asChild: !0,
|
|
234
234
|
...e
|
|
235
235
|
});
|
|
236
|
-
|
|
237
|
-
var
|
|
238
|
-
let n = q
|
|
239
|
-
if (
|
|
236
|
+
xe.displayName = be;
|
|
237
|
+
var q = "SelectContent", Se = F.forwardRef((e, t) => {
|
|
238
|
+
let n = K(q, e.__scopeSelect), [r, i] = F.useState();
|
|
239
|
+
if (A(() => {
|
|
240
240
|
i(new DocumentFragment());
|
|
241
241
|
}, []), !n.open) {
|
|
242
242
|
let t = r;
|
|
243
|
-
return t ?
|
|
243
|
+
return t ? P.createPortal(/* @__PURE__ */ (0, I.jsx)(Ce, {
|
|
244
244
|
scope: e.__scopeSelect,
|
|
245
|
-
children: /* @__PURE__ */ (0,
|
|
245
|
+
children: /* @__PURE__ */ (0, I.jsx)(H.Slot, {
|
|
246
246
|
scope: e.__scopeSelect,
|
|
247
|
-
children: /* @__PURE__ */ (0,
|
|
247
|
+
children: /* @__PURE__ */ (0, I.jsx)("div", { children: e.children })
|
|
248
248
|
})
|
|
249
249
|
}), t) : null;
|
|
250
250
|
}
|
|
251
|
-
return /* @__PURE__ */ (0,
|
|
251
|
+
return /* @__PURE__ */ (0, I.jsx)(Ee, {
|
|
252
252
|
...e,
|
|
253
253
|
ref: t
|
|
254
254
|
});
|
|
255
255
|
});
|
|
256
|
-
|
|
257
|
-
var
|
|
258
|
-
let { __scopeSelect: n, position: r = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: _, ...v } = e,
|
|
259
|
-
|
|
260
|
-
if (
|
|
261
|
-
}, [
|
|
262
|
-
let
|
|
263
|
-
let [t, ...n] =
|
|
264
|
-
for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t &&
|
|
265
|
-
}, [
|
|
266
|
-
|
|
256
|
+
Se.displayName = q;
|
|
257
|
+
var J = 10, [Ce, Y] = W(q), we = "SelectContentImpl", Te = o("SelectContent.RemoveScroll"), Ee = F.forwardRef((e, t) => {
|
|
258
|
+
let { __scopeSelect: n, position: r = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: _, ...v } = e, y = K(q, n), [b, x] = F.useState(null), [S, w] = F.useState(null), E = i(t, (e) => x(e)), [O, k] = F.useState(null), [A, re] = F.useState(null), j = U(n), [M, ie] = F.useState(!1), N = F.useRef(!1);
|
|
259
|
+
F.useEffect(() => {
|
|
260
|
+
if (b) return ne(b);
|
|
261
|
+
}, [b]), D();
|
|
262
|
+
let P = F.useCallback((e) => {
|
|
263
|
+
let [t, ...n] = j().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
|
|
264
|
+
for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && S && (S.scrollTop = 0), n === r && S && (S.scrollTop = S.scrollHeight), n?.focus(), document.activeElement !== i)) return;
|
|
265
|
+
}, [j, S]), L = F.useCallback(() => P([O, b]), [
|
|
266
|
+
P,
|
|
267
267
|
O,
|
|
268
|
-
|
|
268
|
+
b
|
|
269
269
|
]);
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}, [
|
|
273
|
-
let { onOpenChange:
|
|
274
|
-
|
|
275
|
-
if (
|
|
270
|
+
F.useEffect(() => {
|
|
271
|
+
M && L();
|
|
272
|
+
}, [M, L]);
|
|
273
|
+
let { onOpenChange: R, triggerPointerDownPosRef: z } = y;
|
|
274
|
+
F.useEffect(() => {
|
|
275
|
+
if (b) {
|
|
276
276
|
let e = {
|
|
277
277
|
x: 0,
|
|
278
278
|
y: 0
|
|
279
279
|
}, t = (t) => {
|
|
280
280
|
e = {
|
|
281
|
-
x: Math.abs(Math.round(t.pageX) - (
|
|
282
|
-
y: Math.abs(Math.round(t.pageY) - (
|
|
281
|
+
x: Math.abs(Math.round(t.pageX) - (z.current?.x ?? 0)),
|
|
282
|
+
y: Math.abs(Math.round(t.pageY) - (z.current?.y ?? 0))
|
|
283
283
|
};
|
|
284
284
|
}, n = (n) => {
|
|
285
|
-
e.x <= 10 && e.y <= 10 ? n.preventDefault() :
|
|
285
|
+
e.x <= 10 && e.y <= 10 ? n.preventDefault() : b.contains(n.target) || R(!1), document.removeEventListener("pointermove", t), z.current = null;
|
|
286
286
|
};
|
|
287
|
-
return
|
|
287
|
+
return z.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
|
|
288
288
|
capture: !0,
|
|
289
289
|
once: !0
|
|
290
290
|
})), () => {
|
|
@@ -292,25 +292,25 @@ var Y = 10, [Se, X] = G(J), Ce = "SelectContentImpl", we = o("SelectContent.Remo
|
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
}, [
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
]),
|
|
299
|
-
let e = () =>
|
|
295
|
+
b,
|
|
296
|
+
R,
|
|
297
|
+
z
|
|
298
|
+
]), F.useEffect(() => {
|
|
299
|
+
let e = () => R(!1);
|
|
300
300
|
return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
|
|
301
301
|
window.removeEventListener("blur", e), window.removeEventListener("resize", e);
|
|
302
302
|
};
|
|
303
|
-
}, [
|
|
304
|
-
let [
|
|
305
|
-
let t =
|
|
303
|
+
}, [R]);
|
|
304
|
+
let [ae, B] = at((e) => {
|
|
305
|
+
let t = j().filter((e) => !e.disabled), n = ot(t, e, t.find((e) => e.ref.current === document.activeElement));
|
|
306
306
|
n && setTimeout(() => n.ref.current.focus());
|
|
307
|
-
}),
|
|
308
|
-
let r = !
|
|
309
|
-
(
|
|
310
|
-
}, [
|
|
311
|
-
let r = !
|
|
312
|
-
(
|
|
313
|
-
}, [
|
|
307
|
+
}), oe = F.useCallback((e, t, n) => {
|
|
308
|
+
let r = !N.current && !n;
|
|
309
|
+
(y.value !== void 0 && y.value === t || r) && (k(e), r && (N.current = !0));
|
|
310
|
+
}, [y.value]), se = F.useCallback(() => b?.focus(), [b]), V = F.useCallback((e, t, n) => {
|
|
311
|
+
let r = !N.current && !n;
|
|
312
|
+
(y.value !== void 0 && y.value === t || r) && re(e);
|
|
313
|
+
}, [y.value]), H = r === "popper" ? Ae : Oe, ce = H === Ae ? {
|
|
314
314
|
side: c,
|
|
315
315
|
sideOffset: l,
|
|
316
316
|
align: u,
|
|
@@ -322,69 +322,69 @@ var Y = 10, [Se, X] = G(J), Ce = "SelectContentImpl", we = o("SelectContent.Remo
|
|
|
322
322
|
hideWhenDetached: g,
|
|
323
323
|
avoidCollisions: _
|
|
324
324
|
} : {};
|
|
325
|
-
return /* @__PURE__ */ (0,
|
|
325
|
+
return /* @__PURE__ */ (0, I.jsx)(Ce, {
|
|
326
326
|
scope: n,
|
|
327
|
-
content:
|
|
328
|
-
viewport:
|
|
329
|
-
onViewportChange:
|
|
330
|
-
itemRefCallback:
|
|
327
|
+
content: b,
|
|
328
|
+
viewport: S,
|
|
329
|
+
onViewportChange: w,
|
|
330
|
+
itemRefCallback: oe,
|
|
331
331
|
selectedItem: O,
|
|
332
|
-
onItemLeave:
|
|
333
|
-
itemTextRefCallback:
|
|
334
|
-
focusSelectedItem:
|
|
335
|
-
selectedItemText:
|
|
332
|
+
onItemLeave: se,
|
|
333
|
+
itemTextRefCallback: V,
|
|
334
|
+
focusSelectedItem: L,
|
|
335
|
+
selectedItemText: A,
|
|
336
336
|
position: r,
|
|
337
|
-
isPositioned:
|
|
338
|
-
searchRef:
|
|
339
|
-
children: /* @__PURE__ */ (0,
|
|
340
|
-
as:
|
|
337
|
+
isPositioned: M,
|
|
338
|
+
searchRef: ae,
|
|
339
|
+
children: /* @__PURE__ */ (0, I.jsx)(T, {
|
|
340
|
+
as: Te,
|
|
341
341
|
allowPinchZoom: !0,
|
|
342
|
-
children: /* @__PURE__ */ (0,
|
|
342
|
+
children: /* @__PURE__ */ (0, I.jsx)(ee, {
|
|
343
343
|
asChild: !0,
|
|
344
|
-
trapped:
|
|
344
|
+
trapped: y.open,
|
|
345
345
|
onMountAutoFocus: (e) => {
|
|
346
346
|
e.preventDefault();
|
|
347
347
|
},
|
|
348
|
-
onUnmountAutoFocus:
|
|
349
|
-
|
|
348
|
+
onUnmountAutoFocus: C(a, (e) => {
|
|
349
|
+
y.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
|
|
350
350
|
}),
|
|
351
|
-
children: /* @__PURE__ */ (0,
|
|
351
|
+
children: /* @__PURE__ */ (0, I.jsx)(te, {
|
|
352
352
|
asChild: !0,
|
|
353
353
|
disableOutsidePointerEvents: !0,
|
|
354
354
|
onEscapeKeyDown: o,
|
|
355
355
|
onPointerDownOutside: s,
|
|
356
356
|
onFocusOutside: (e) => e.preventDefault(),
|
|
357
|
-
onDismiss: () =>
|
|
358
|
-
children: /* @__PURE__ */ (0,
|
|
357
|
+
onDismiss: () => y.onOpenChange(!1),
|
|
358
|
+
children: /* @__PURE__ */ (0, I.jsx)(H, {
|
|
359
359
|
role: "listbox",
|
|
360
|
-
id:
|
|
361
|
-
"data-state":
|
|
362
|
-
dir:
|
|
360
|
+
id: y.contentId,
|
|
361
|
+
"data-state": y.open ? "open" : "closed",
|
|
362
|
+
dir: y.dir,
|
|
363
363
|
onContextMenu: (e) => e.preventDefault(),
|
|
364
364
|
...v,
|
|
365
|
-
...
|
|
366
|
-
onPlaced: () =>
|
|
367
|
-
ref:
|
|
365
|
+
...ce,
|
|
366
|
+
onPlaced: () => ie(!0),
|
|
367
|
+
ref: E,
|
|
368
368
|
style: {
|
|
369
369
|
display: "flex",
|
|
370
370
|
flexDirection: "column",
|
|
371
371
|
outline: "none",
|
|
372
372
|
...v.style
|
|
373
373
|
},
|
|
374
|
-
onKeyDown:
|
|
374
|
+
onKeyDown: C(v.onKeyDown, (e) => {
|
|
375
375
|
let t = e.ctrlKey || e.altKey || e.metaKey;
|
|
376
|
-
if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 &&
|
|
376
|
+
if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && B(e.key), [
|
|
377
377
|
"ArrowUp",
|
|
378
378
|
"ArrowDown",
|
|
379
379
|
"Home",
|
|
380
380
|
"End"
|
|
381
381
|
].includes(e.key)) {
|
|
382
|
-
let t =
|
|
382
|
+
let t = j().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
383
383
|
if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
|
|
384
384
|
let n = e.target, r = t.indexOf(n);
|
|
385
385
|
t = t.slice(r + 1);
|
|
386
386
|
}
|
|
387
|
-
setTimeout(() =>
|
|
387
|
+
setTimeout(() => P(t)), e.preventDefault();
|
|
388
388
|
}
|
|
389
389
|
})
|
|
390
390
|
})
|
|
@@ -393,31 +393,31 @@ var Y = 10, [Se, X] = G(J), Ce = "SelectContentImpl", we = o("SelectContent.Remo
|
|
|
393
393
|
})
|
|
394
394
|
});
|
|
395
395
|
});
|
|
396
|
-
|
|
397
|
-
var
|
|
398
|
-
let { __scopeSelect: n, onPlaced: r, ...a } = e, o = q
|
|
396
|
+
Ee.displayName = we;
|
|
397
|
+
var De = "SelectItemAlignedPosition", Oe = F.forwardRef((e, t) => {
|
|
398
|
+
let { __scopeSelect: n, onPlaced: r, ...a } = e, o = K(q, n), s = Y(q, n), [c, l] = F.useState(null), [u, d] = F.useState(null), f = i(t, (e) => d(e)), p = U(n), m = F.useRef(!1), h = F.useRef(!0), { viewport: g, selectedItem: _, selectedItemText: v, focusSelectedItem: y } = s, b = F.useCallback(() => {
|
|
399
399
|
if (o.trigger && o.valueNode && c && u && g && _ && v) {
|
|
400
400
|
let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), i = v.getBoundingClientRect();
|
|
401
401
|
if (o.dir !== "rtl") {
|
|
402
|
-
let r = i.left - t.left, a = n.left - r, o = e.left - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth -
|
|
402
|
+
let r = i.left - t.left, a = n.left - r, o = e.left - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - J, d = B(a, [J, Math.max(J, u - l)]);
|
|
403
403
|
c.style.minWidth = s + "px", c.style.left = d + "px";
|
|
404
404
|
} else {
|
|
405
|
-
let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth -
|
|
405
|
+
let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - J, d = B(a, [J, Math.max(J, u - l)]);
|
|
406
406
|
c.style.minWidth = s + "px", c.style.right = d + "px";
|
|
407
407
|
}
|
|
408
|
-
let a = p(), s = window.innerHeight -
|
|
409
|
-
if (
|
|
408
|
+
let a = p(), s = window.innerHeight - J * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + y, S = Math.min(_.offsetHeight * 5, x), C = window.getComputedStyle(g), ee = parseInt(C.paddingTop, 10), w = parseInt(C.paddingBottom, 10), T = e.top + e.height / 2 - J, E = s - T, D = _.offsetHeight / 2, te = _.offsetTop + D, O = f + h + te, k = x - O;
|
|
409
|
+
if (O <= T) {
|
|
410
410
|
let e = a.length > 0 && _ === a[a.length - 1].ref.current;
|
|
411
411
|
c.style.bottom = "0px";
|
|
412
|
-
let t = u.clientHeight - g.offsetTop - g.offsetHeight, n =
|
|
412
|
+
let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = O + Math.max(E, D + (e ? w : 0) + t + y);
|
|
413
413
|
c.style.height = n + "px";
|
|
414
414
|
} else {
|
|
415
415
|
let e = a.length > 0 && _ === a[0].ref.current;
|
|
416
416
|
c.style.top = "0px";
|
|
417
|
-
let t = Math.max(
|
|
418
|
-
c.style.height = t + "px", g.scrollTop =
|
|
417
|
+
let t = Math.max(T, f + g.offsetTop + (e ? ee : 0) + D) + k;
|
|
418
|
+
c.style.height = t + "px", g.scrollTop = O - T + g.offsetTop;
|
|
419
419
|
}
|
|
420
|
-
c.style.margin = `${
|
|
420
|
+
c.style.margin = `${J}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", r?.(), requestAnimationFrame(() => m.current = !0);
|
|
421
421
|
}
|
|
422
422
|
}, [
|
|
423
423
|
p,
|
|
@@ -431,20 +431,20 @@ var Ee = "SelectItemAlignedPosition", De = I.forwardRef((e, t) => {
|
|
|
431
431
|
o.dir,
|
|
432
432
|
r
|
|
433
433
|
]);
|
|
434
|
-
|
|
435
|
-
let [x, S] =
|
|
436
|
-
|
|
434
|
+
A(() => b(), [b]);
|
|
435
|
+
let [x, S] = F.useState();
|
|
436
|
+
A(() => {
|
|
437
437
|
u && S(window.getComputedStyle(u).zIndex);
|
|
438
438
|
}, [u]);
|
|
439
|
-
let C =
|
|
439
|
+
let C = F.useCallback((e) => {
|
|
440
440
|
e && h.current === !0 && (b(), y?.(), h.current = !1);
|
|
441
441
|
}, [b, y]);
|
|
442
|
-
return /* @__PURE__ */ (0,
|
|
442
|
+
return /* @__PURE__ */ (0, I.jsx)(je, {
|
|
443
443
|
scope: n,
|
|
444
444
|
contentWrapper: c,
|
|
445
445
|
shouldExpandOnScrollRef: m,
|
|
446
446
|
onScrollButtonChange: C,
|
|
447
|
-
children: /* @__PURE__ */ (0,
|
|
447
|
+
children: /* @__PURE__ */ (0, I.jsx)("div", {
|
|
448
448
|
ref: l,
|
|
449
449
|
style: {
|
|
450
450
|
display: "flex",
|
|
@@ -452,7 +452,7 @@ var Ee = "SelectItemAlignedPosition", De = I.forwardRef((e, t) => {
|
|
|
452
452
|
position: "fixed",
|
|
453
453
|
zIndex: x
|
|
454
454
|
},
|
|
455
|
-
children: /* @__PURE__ */ (0,
|
|
455
|
+
children: /* @__PURE__ */ (0, I.jsx)(w.div, {
|
|
456
456
|
...a,
|
|
457
457
|
ref: f,
|
|
458
458
|
style: {
|
|
@@ -464,10 +464,10 @@ var Ee = "SelectItemAlignedPosition", De = I.forwardRef((e, t) => {
|
|
|
464
464
|
})
|
|
465
465
|
});
|
|
466
466
|
});
|
|
467
|
-
|
|
468
|
-
var
|
|
469
|
-
let { __scopeSelect: n, align: r = "start", collisionPadding: i =
|
|
470
|
-
return /* @__PURE__ */ (0,
|
|
467
|
+
Oe.displayName = De;
|
|
468
|
+
var ke = "SelectPopperPosition", Ae = F.forwardRef((e, t) => {
|
|
469
|
+
let { __scopeSelect: n, align: r = "start", collisionPadding: i = J, ...a } = e, o = G(n);
|
|
470
|
+
return /* @__PURE__ */ (0, I.jsx)(p, {
|
|
471
471
|
...o,
|
|
472
472
|
...a,
|
|
473
473
|
ref: t,
|
|
@@ -484,15 +484,15 @@ var Oe = "SelectPopperPosition", ke = I.forwardRef((e, t) => {
|
|
|
484
484
|
}
|
|
485
485
|
});
|
|
486
486
|
});
|
|
487
|
-
|
|
488
|
-
var [
|
|
489
|
-
let { __scopeSelect: n, nonce: r, ...a } = e, o =
|
|
490
|
-
return /* @__PURE__ */ (0,
|
|
487
|
+
Ae.displayName = ke;
|
|
488
|
+
var [je, Me] = W(q, {}), Ne = "SelectViewport", Pe = F.forwardRef((e, t) => {
|
|
489
|
+
let { __scopeSelect: n, nonce: r, ...a } = e, o = Y(Ne, n), s = Me(Ne, n), c = i(t, o.onViewportChange), l = F.useRef(0);
|
|
490
|
+
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("style", {
|
|
491
491
|
dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
|
|
492
492
|
nonce: r
|
|
493
|
-
}), /* @__PURE__ */ (0,
|
|
493
|
+
}), /* @__PURE__ */ (0, I.jsx)(H.Slot, {
|
|
494
494
|
scope: n,
|
|
495
|
-
children: /* @__PURE__ */ (0,
|
|
495
|
+
children: /* @__PURE__ */ (0, I.jsx)(w.div, {
|
|
496
496
|
"data-radix-select-viewport": "",
|
|
497
497
|
role: "presentation",
|
|
498
498
|
...a,
|
|
@@ -503,12 +503,12 @@ var [Ae, je] = G(J, {}), Me = "SelectViewport", Ne = I.forwardRef((e, t) => {
|
|
|
503
503
|
overflow: "hidden auto",
|
|
504
504
|
...a.style
|
|
505
505
|
},
|
|
506
|
-
onScroll:
|
|
506
|
+
onScroll: C(a.onScroll, (e) => {
|
|
507
507
|
let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = s;
|
|
508
508
|
if (r?.current && n) {
|
|
509
509
|
let e = Math.abs(l.current - t.scrollTop);
|
|
510
510
|
if (e > 0) {
|
|
511
|
-
let r = window.innerHeight -
|
|
511
|
+
let r = window.innerHeight - J * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
|
|
512
512
|
if (o < r) {
|
|
513
513
|
let i = o + e, a = Math.min(r, i), s = i - a;
|
|
514
514
|
n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
|
|
@@ -520,13 +520,13 @@ var [Ae, je] = G(J, {}), Me = "SelectViewport", Ne = I.forwardRef((e, t) => {
|
|
|
520
520
|
})
|
|
521
521
|
})] });
|
|
522
522
|
});
|
|
523
|
-
|
|
524
|
-
var
|
|
525
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
526
|
-
return /* @__PURE__ */ (0,
|
|
523
|
+
Pe.displayName = Ne;
|
|
524
|
+
var Fe = "SelectGroup", [Ie, Le] = W(Fe), Re = F.forwardRef((e, t) => {
|
|
525
|
+
let { __scopeSelect: n, ...r } = e, i = k();
|
|
526
|
+
return /* @__PURE__ */ (0, I.jsx)(Ie, {
|
|
527
527
|
scope: n,
|
|
528
528
|
id: i,
|
|
529
|
-
children: /* @__PURE__ */ (0,
|
|
529
|
+
children: /* @__PURE__ */ (0, I.jsx)(w.div, {
|
|
530
530
|
role: "group",
|
|
531
531
|
"aria-labelledby": i,
|
|
532
532
|
...r,
|
|
@@ -534,36 +534,36 @@ var Pe = "SelectGroup", [Fe, Ie] = G(Pe), Le = I.forwardRef((e, t) => {
|
|
|
534
534
|
})
|
|
535
535
|
});
|
|
536
536
|
});
|
|
537
|
-
|
|
538
|
-
var
|
|
539
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
540
|
-
return /* @__PURE__ */ (0,
|
|
537
|
+
Re.displayName = Fe;
|
|
538
|
+
var ze = "SelectLabel", Be = F.forwardRef((e, t) => {
|
|
539
|
+
let { __scopeSelect: n, ...r } = e, i = Le(ze, n);
|
|
540
|
+
return /* @__PURE__ */ (0, I.jsx)(w.div, {
|
|
541
541
|
id: i.id,
|
|
542
542
|
...r,
|
|
543
543
|
ref: t
|
|
544
544
|
});
|
|
545
545
|
});
|
|
546
|
-
|
|
547
|
-
var
|
|
548
|
-
let { __scopeSelect: n, value: r, disabled: a = !1, textValue: o, ...s } = e, c =
|
|
546
|
+
Be.displayName = ze;
|
|
547
|
+
var X = "SelectItem", [Ve, He] = W(X), Ue = F.forwardRef((e, t) => {
|
|
548
|
+
let { __scopeSelect: n, value: r, disabled: a = !1, textValue: o, ...s } = e, c = K(X, n), l = Y(X, n), u = c.value === r, [d, f] = F.useState(o ?? ""), [p, m] = F.useState(!1), h = i(t, (e) => l.itemRefCallback?.(e, r, a)), g = k(), _ = F.useRef("touch"), v = () => {
|
|
549
549
|
a || (c.onValueChange(r), c.onOpenChange(!1));
|
|
550
550
|
};
|
|
551
551
|
if (r === "") throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
|
|
552
|
-
return /* @__PURE__ */ (0,
|
|
552
|
+
return /* @__PURE__ */ (0, I.jsx)(Ve, {
|
|
553
553
|
scope: n,
|
|
554
554
|
value: r,
|
|
555
555
|
disabled: a,
|
|
556
556
|
textId: g,
|
|
557
557
|
isSelected: u,
|
|
558
|
-
onItemTextChange:
|
|
558
|
+
onItemTextChange: F.useCallback((e) => {
|
|
559
559
|
f((t) => t || (e?.textContent ?? "").trim());
|
|
560
560
|
}, []),
|
|
561
|
-
children: /* @__PURE__ */ (0,
|
|
561
|
+
children: /* @__PURE__ */ (0, I.jsx)(H.ItemSlot, {
|
|
562
562
|
scope: n,
|
|
563
563
|
value: r,
|
|
564
564
|
disabled: a,
|
|
565
565
|
textValue: d,
|
|
566
|
-
children: /* @__PURE__ */ (0,
|
|
566
|
+
children: /* @__PURE__ */ (0, I.jsx)(w.div, {
|
|
567
567
|
role: "option",
|
|
568
568
|
"aria-labelledby": g,
|
|
569
569
|
"data-highlighted": p ? "" : void 0,
|
|
@@ -574,33 +574,33 @@ var Be = "SelectItem", [Ve, He] = G(Be), Ue = I.forwardRef((e, t) => {
|
|
|
574
574
|
tabIndex: a ? void 0 : -1,
|
|
575
575
|
...s,
|
|
576
576
|
ref: h,
|
|
577
|
-
onFocus:
|
|
578
|
-
onBlur:
|
|
579
|
-
onClick:
|
|
577
|
+
onFocus: C(s.onFocus, () => m(!0)),
|
|
578
|
+
onBlur: C(s.onBlur, () => m(!1)),
|
|
579
|
+
onClick: C(s.onClick, () => {
|
|
580
580
|
_.current !== "mouse" && v();
|
|
581
581
|
}),
|
|
582
|
-
onPointerUp:
|
|
582
|
+
onPointerUp: C(s.onPointerUp, () => {
|
|
583
583
|
_.current === "mouse" && v();
|
|
584
584
|
}),
|
|
585
|
-
onPointerDown:
|
|
585
|
+
onPointerDown: C(s.onPointerDown, (e) => {
|
|
586
586
|
_.current = e.pointerType;
|
|
587
587
|
}),
|
|
588
|
-
onPointerMove:
|
|
588
|
+
onPointerMove: C(s.onPointerMove, (e) => {
|
|
589
589
|
_.current = e.pointerType, a ? l.onItemLeave?.() : _.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
|
|
590
590
|
}),
|
|
591
|
-
onPointerLeave:
|
|
591
|
+
onPointerLeave: C(s.onPointerLeave, (e) => {
|
|
592
592
|
e.currentTarget === document.activeElement && l.onItemLeave?.();
|
|
593
593
|
}),
|
|
594
|
-
onKeyDown:
|
|
595
|
-
(l.searchRef?.current === "" || e.key !== " ") && (
|
|
594
|
+
onKeyDown: C(s.onKeyDown, (e) => {
|
|
595
|
+
(l.searchRef?.current === "" || e.key !== " ") && (se.includes(e.key) && v(), e.key === " " && e.preventDefault());
|
|
596
596
|
})
|
|
597
597
|
})
|
|
598
598
|
})
|
|
599
599
|
});
|
|
600
600
|
});
|
|
601
|
-
Ue.displayName =
|
|
602
|
-
var Z = "SelectItemText", We =
|
|
603
|
-
let { __scopeSelect: n, className: r, style: a, ...o } = e, s =
|
|
601
|
+
Ue.displayName = X;
|
|
602
|
+
var Z = "SelectItemText", We = F.forwardRef((e, t) => {
|
|
603
|
+
let { __scopeSelect: n, className: r, style: a, ...o } = e, s = K(Z, n), c = Y(Z, n), l = He(Z, n), u = fe(Z, n), [d, f] = F.useState(null), p = i(t, (e) => f(e), l.onItemTextChange, (e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = d?.textContent, h = F.useMemo(() => /* @__PURE__ */ (0, I.jsx)("option", {
|
|
604
604
|
value: l.value,
|
|
605
605
|
disabled: l.disabled,
|
|
606
606
|
children: m
|
|
@@ -609,29 +609,29 @@ var Z = "SelectItemText", We = I.forwardRef((e, t) => {
|
|
|
609
609
|
l.value,
|
|
610
610
|
m
|
|
611
611
|
]), { onNativeOptionAdd: g, onNativeOptionRemove: _ } = u;
|
|
612
|
-
return
|
|
612
|
+
return A(() => (g(h), () => _(h)), [
|
|
613
613
|
g,
|
|
614
614
|
_,
|
|
615
615
|
h
|
|
616
|
-
]), /* @__PURE__ */ (0,
|
|
616
|
+
]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(w.span, {
|
|
617
617
|
id: l.textId,
|
|
618
618
|
...o,
|
|
619
619
|
ref: p
|
|
620
|
-
}), l.isSelected && s.valueNode && !s.valueNodeHasChildren ?
|
|
620
|
+
}), l.isSelected && s.valueNode && !s.valueNodeHasChildren ? P.createPortal(o.children, s.valueNode) : null] });
|
|
621
621
|
});
|
|
622
622
|
We.displayName = Z;
|
|
623
|
-
var Ge = "SelectItemIndicator", Ke =
|
|
623
|
+
var Ge = "SelectItemIndicator", Ke = F.forwardRef((e, t) => {
|
|
624
624
|
let { __scopeSelect: n, ...r } = e;
|
|
625
|
-
return He(Ge, n).isSelected ? /* @__PURE__ */ (0,
|
|
625
|
+
return He(Ge, n).isSelected ? /* @__PURE__ */ (0, I.jsx)(w.span, {
|
|
626
626
|
"aria-hidden": !0,
|
|
627
627
|
...r,
|
|
628
628
|
ref: t
|
|
629
629
|
}) : null;
|
|
630
630
|
});
|
|
631
631
|
Ke.displayName = Ge;
|
|
632
|
-
var qe = "SelectScrollUpButton", Je =
|
|
633
|
-
let n =
|
|
634
|
-
return
|
|
632
|
+
var qe = "SelectScrollUpButton", Je = F.forwardRef((e, t) => {
|
|
633
|
+
let n = Y(qe, e.__scopeSelect), r = Me(qe, e.__scopeSelect), [a, o] = F.useState(!1), s = i(t, r.onScrollButtonChange);
|
|
634
|
+
return A(() => {
|
|
635
635
|
if (n.viewport && n.isPositioned) {
|
|
636
636
|
let e = function() {
|
|
637
637
|
let e = t.scrollTop > 0;
|
|
@@ -639,7 +639,7 @@ var qe = "SelectScrollUpButton", Je = I.forwardRef((e, t) => {
|
|
|
639
639
|
}, t = n.viewport;
|
|
640
640
|
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
641
641
|
}
|
|
642
|
-
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0,
|
|
642
|
+
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, I.jsx)(Ze, {
|
|
643
643
|
...e,
|
|
644
644
|
ref: s,
|
|
645
645
|
onAutoScroll: () => {
|
|
@@ -649,9 +649,9 @@ var qe = "SelectScrollUpButton", Je = I.forwardRef((e, t) => {
|
|
|
649
649
|
}) : null;
|
|
650
650
|
});
|
|
651
651
|
Je.displayName = qe;
|
|
652
|
-
var Ye = "SelectScrollDownButton", Xe =
|
|
653
|
-
let n =
|
|
654
|
-
return
|
|
652
|
+
var Ye = "SelectScrollDownButton", Xe = F.forwardRef((e, t) => {
|
|
653
|
+
let n = Y(Ye, e.__scopeSelect), r = Me(Ye, e.__scopeSelect), [a, o] = F.useState(!1), s = i(t, r.onScrollButtonChange);
|
|
654
|
+
return A(() => {
|
|
655
655
|
if (n.viewport && n.isPositioned) {
|
|
656
656
|
let e = function() {
|
|
657
657
|
let e = t.scrollHeight - t.clientHeight, n = Math.ceil(t.scrollTop) < e;
|
|
@@ -659,7 +659,7 @@ var Ye = "SelectScrollDownButton", Xe = I.forwardRef((e, t) => {
|
|
|
659
659
|
}, t = n.viewport;
|
|
660
660
|
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
661
661
|
}
|
|
662
|
-
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0,
|
|
662
|
+
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, I.jsx)(Ze, {
|
|
663
663
|
...e,
|
|
664
664
|
ref: s,
|
|
665
665
|
onAutoScroll: () => {
|
|
@@ -669,13 +669,13 @@ var Ye = "SelectScrollDownButton", Xe = I.forwardRef((e, t) => {
|
|
|
669
669
|
}) : null;
|
|
670
670
|
});
|
|
671
671
|
Xe.displayName = Ye;
|
|
672
|
-
var Ze =
|
|
673
|
-
let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a =
|
|
672
|
+
var Ze = F.forwardRef((e, t) => {
|
|
673
|
+
let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = Y("SelectScrollButton", n), o = F.useRef(null), s = U(n), c = F.useCallback(() => {
|
|
674
674
|
o.current !== null && (window.clearInterval(o.current), o.current = null);
|
|
675
675
|
}, []);
|
|
676
|
-
return
|
|
676
|
+
return F.useEffect(() => () => c(), [c]), A(() => {
|
|
677
677
|
s().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
678
|
-
}, [s]), /* @__PURE__ */ (0,
|
|
678
|
+
}, [s]), /* @__PURE__ */ (0, I.jsx)(w.div, {
|
|
679
679
|
"aria-hidden": !0,
|
|
680
680
|
...i,
|
|
681
681
|
ref: t,
|
|
@@ -683,37 +683,37 @@ var Ze = I.forwardRef((e, t) => {
|
|
|
683
683
|
flexShrink: 0,
|
|
684
684
|
...i.style
|
|
685
685
|
},
|
|
686
|
-
onPointerDown:
|
|
686
|
+
onPointerDown: C(i.onPointerDown, () => {
|
|
687
687
|
o.current === null && (o.current = window.setInterval(r, 50));
|
|
688
688
|
}),
|
|
689
|
-
onPointerMove:
|
|
689
|
+
onPointerMove: C(i.onPointerMove, () => {
|
|
690
690
|
a.onItemLeave?.(), o.current === null && (o.current = window.setInterval(r, 50));
|
|
691
691
|
}),
|
|
692
|
-
onPointerLeave:
|
|
692
|
+
onPointerLeave: C(i.onPointerLeave, () => {
|
|
693
693
|
c();
|
|
694
694
|
})
|
|
695
695
|
});
|
|
696
|
-
}), Qe = "SelectSeparator", $e =
|
|
696
|
+
}), Qe = "SelectSeparator", $e = F.forwardRef((e, t) => {
|
|
697
697
|
let { __scopeSelect: n, ...r } = e;
|
|
698
|
-
return /* @__PURE__ */ (0,
|
|
698
|
+
return /* @__PURE__ */ (0, I.jsx)(w.div, {
|
|
699
699
|
"aria-hidden": !0,
|
|
700
700
|
...r,
|
|
701
701
|
ref: t
|
|
702
702
|
});
|
|
703
703
|
});
|
|
704
704
|
$e.displayName = Qe;
|
|
705
|
-
var et = "SelectArrow", tt =
|
|
706
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
707
|
-
return a.open && o.position === "popper" ? /* @__PURE__ */ (0,
|
|
705
|
+
var et = "SelectArrow", tt = F.forwardRef((e, t) => {
|
|
706
|
+
let { __scopeSelect: n, ...r } = e, i = G(n), a = K(et, n), o = Y(et, n);
|
|
707
|
+
return a.open && o.position === "popper" ? /* @__PURE__ */ (0, I.jsx)(f, {
|
|
708
708
|
...i,
|
|
709
709
|
...r,
|
|
710
710
|
ref: t
|
|
711
711
|
}) : null;
|
|
712
712
|
});
|
|
713
713
|
tt.displayName = et;
|
|
714
|
-
var nt = "SelectBubbleInput", rt =
|
|
715
|
-
let a =
|
|
716
|
-
return
|
|
714
|
+
var nt = "SelectBubbleInput", rt = F.forwardRef(({ __scopeSelect: e, value: t, ...n }, r) => {
|
|
715
|
+
let a = F.useRef(null), o = i(r, a), s = ae(t);
|
|
716
|
+
return F.useEffect(() => {
|
|
717
717
|
let e = a.current;
|
|
718
718
|
if (!e) return;
|
|
719
719
|
let n = window.HTMLSelectElement.prototype, r = Object.getOwnPropertyDescriptor(n, "value").set;
|
|
@@ -721,7 +721,7 @@ var nt = "SelectBubbleInput", rt = I.forwardRef(({ __scopeSelect: e, value: t, .
|
|
|
721
721
|
let n = new Event("change", { bubbles: !0 });
|
|
722
722
|
r.call(e, t), e.dispatchEvent(n);
|
|
723
723
|
}
|
|
724
|
-
}, [s, t]), /* @__PURE__ */ (0,
|
|
724
|
+
}, [s, t]), /* @__PURE__ */ (0, I.jsx)(w.select, {
|
|
725
725
|
...n,
|
|
726
726
|
style: {
|
|
727
727
|
...u,
|
|
@@ -736,15 +736,15 @@ function it(e) {
|
|
|
736
736
|
return e === "" || e === void 0;
|
|
737
737
|
}
|
|
738
738
|
function at(e) {
|
|
739
|
-
let t =
|
|
739
|
+
let t = b(e), n = F.useRef(""), r = F.useRef(0), i = F.useCallback((e) => {
|
|
740
740
|
let i = n.current + e;
|
|
741
741
|
t(i), (function e(t) {
|
|
742
742
|
n.current = t, window.clearTimeout(r.current), t !== "" && (r.current = window.setTimeout(() => e(""), 1e3));
|
|
743
743
|
})(i);
|
|
744
|
-
}, [t]), a =
|
|
744
|
+
}, [t]), a = F.useCallback(() => {
|
|
745
745
|
n.current = "", window.clearTimeout(r.current);
|
|
746
746
|
}, []);
|
|
747
|
-
return
|
|
747
|
+
return F.useEffect(() => () => window.clearTimeout(r.current), []), [
|
|
748
748
|
n,
|
|
749
749
|
i,
|
|
750
750
|
a
|
|
@@ -759,16 +759,16 @@ function ot(e, t, n) {
|
|
|
759
759
|
function st(e, t) {
|
|
760
760
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
761
761
|
}
|
|
762
|
-
var ct =
|
|
762
|
+
var ct = pe, lt = he, ut = _e, dt = ye, ft = xe, pt = Se, mt = Pe, ht = Re, gt = Be, _t = Ue, vt = We, yt = Ke, bt = Je, xt = Xe, St = $e, Ct = {
|
|
763
763
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
764
764
|
current: 0
|
|
765
|
-
}, wt = /*#__PURE__*/
|
|
765
|
+
}, wt = /*#__PURE__*/ F.createContext(Ct), Tt = /*#__PURE__*/ F.createContext(!1);
|
|
766
766
|
typeof window < "u" && window.document && window.document.createElement;
|
|
767
767
|
var Et = /* @__PURE__ */ new WeakMap();
|
|
768
768
|
function Dt(e = !1) {
|
|
769
|
-
let t = (0,
|
|
769
|
+
let t = (0, F.useContext)(wt), n = (0, F.useRef)(null);
|
|
770
770
|
if (n.current === null && !e) {
|
|
771
|
-
let e =
|
|
771
|
+
let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
|
|
772
772
|
if (e) {
|
|
773
773
|
let n = Et.get(e);
|
|
774
774
|
n == null ? Et.set(e, {
|
|
@@ -781,14 +781,14 @@ function Dt(e = !1) {
|
|
|
781
781
|
return n.current;
|
|
782
782
|
}
|
|
783
783
|
function Ot(e) {
|
|
784
|
-
let t = (0,
|
|
784
|
+
let t = (0, F.useContext)(wt), n = Dt(!!e), r = `react-aria${t.prefix}`;
|
|
785
785
|
return e || `${r}-${n}`;
|
|
786
786
|
}
|
|
787
787
|
function kt(e) {
|
|
788
|
-
let t =
|
|
788
|
+
let t = F.useId(), [n] = (0, F.useState)(Pt()), r = n ? "react-aria" : `react-aria${Ct.prefix}`;
|
|
789
789
|
return e || `${r}-${t}`;
|
|
790
790
|
}
|
|
791
|
-
var At = typeof
|
|
791
|
+
var At = typeof F.useId == "function" ? kt : Ot;
|
|
792
792
|
function jt() {
|
|
793
793
|
return !1;
|
|
794
794
|
}
|
|
@@ -799,7 +799,7 @@ function Nt(e) {
|
|
|
799
799
|
return () => {};
|
|
800
800
|
}
|
|
801
801
|
function Pt() {
|
|
802
|
-
return typeof
|
|
802
|
+
return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Nt, jt, Mt) : (0, F.useContext)(Tt);
|
|
803
803
|
}
|
|
804
804
|
//#endregion
|
|
805
805
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/i18n/dist/utils.mjs
|
|
@@ -865,8 +865,8 @@ function Vt() {
|
|
|
865
865
|
for (let e of Q) e(Bt);
|
|
866
866
|
}
|
|
867
867
|
function Ht() {
|
|
868
|
-
let e = Pt(), [t, n] = (0,
|
|
869
|
-
return (0,
|
|
868
|
+
let e = Pt(), [t, n] = (0, F.useState)(Bt);
|
|
869
|
+
return (0, F.useEffect)(() => (Q.size === 0 && window.addEventListener("languagechange", Vt), Q.add(n), () => {
|
|
870
870
|
Q.delete(n), Q.size === 0 && window.removeEventListener("languagechange", Vt);
|
|
871
871
|
}), []), e ? {
|
|
872
872
|
locale: typeof window < "u" && window[Rt] || "en-US",
|
|
@@ -875,28 +875,28 @@ function Ht() {
|
|
|
875
875
|
}
|
|
876
876
|
//#endregion
|
|
877
877
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/i18n/dist/context.mjs
|
|
878
|
-
var Ut = /*#__PURE__*/
|
|
878
|
+
var Ut = /*#__PURE__*/ F.createContext(null);
|
|
879
879
|
function Wt(e) {
|
|
880
|
-
let { locale: t, children: n } = e, r =
|
|
880
|
+
let { locale: t, children: n } = e, r = F.useMemo(() => ({
|
|
881
881
|
locale: t,
|
|
882
882
|
direction: Lt(t) ? "rtl" : "ltr"
|
|
883
883
|
}), [t]);
|
|
884
|
-
return /*#__PURE__*/
|
|
884
|
+
return /*#__PURE__*/ F.createElement(Ut.Provider, { value: r }, n);
|
|
885
885
|
}
|
|
886
886
|
function Gt(e) {
|
|
887
887
|
let { children: t } = e, n = Ht();
|
|
888
|
-
return /*#__PURE__*/
|
|
888
|
+
return /*#__PURE__*/ F.createElement(Ut.Provider, { value: n }, t);
|
|
889
889
|
}
|
|
890
890
|
function Kt(e) {
|
|
891
891
|
let { locale: t, children: n } = e;
|
|
892
|
-
return t ? /*#__PURE__*/
|
|
892
|
+
return t ? /*#__PURE__*/ F.createElement(Wt, {
|
|
893
893
|
locale: t,
|
|
894
894
|
children: n
|
|
895
|
-
}) : /*#__PURE__*/
|
|
895
|
+
}) : /*#__PURE__*/ F.createElement(Gt, { children: n });
|
|
896
896
|
}
|
|
897
897
|
function qt() {
|
|
898
898
|
let e = Ht();
|
|
899
|
-
return (0,
|
|
899
|
+
return (0, F.useContext)(Ut) || e;
|
|
900
900
|
}
|
|
901
901
|
//#endregion
|
|
902
902
|
//#region ../node_modules/.pnpm/@internationalized+number@3.6.5/node_modules/@internationalized/number/dist/NumberFormatter.mjs
|
|
@@ -1003,12 +1003,12 @@ function en(e, t, n) {
|
|
|
1003
1003
|
//#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@react-aria/i18n/dist/useNumberFormatter.mjs
|
|
1004
1004
|
function tn(e = {}) {
|
|
1005
1005
|
let { locale: t } = qt();
|
|
1006
|
-
return (0,
|
|
1006
|
+
return (0, F.useMemo)(() => new Qt(t, e), [t, e]);
|
|
1007
1007
|
}
|
|
1008
1008
|
//#endregion
|
|
1009
1009
|
//#region src/utils/assertNever.ts
|
|
1010
1010
|
function nn(e) {
|
|
1011
|
-
|
|
1011
|
+
j(!1, `Unexpected object: ${e}`);
|
|
1012
1012
|
}
|
|
1013
1013
|
function rn(e) {
|
|
1014
1014
|
return t.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
|
|
@@ -1061,7 +1061,7 @@ var sn = {
|
|
|
1061
1061
|
let a;
|
|
1062
1062
|
t[3] === r ? a = t[4] : (a = n("ml-auto text-xs tracking-widest opacity-60", r), t[3] = r, t[4] = a);
|
|
1063
1063
|
let o;
|
|
1064
|
-
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0,
|
|
1064
|
+
return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0, I.jsx)("span", {
|
|
1065
1065
|
className: a,
|
|
1066
1066
|
...i
|
|
1067
1067
|
}), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
|
|
@@ -1075,7 +1075,7 @@ var _n = a("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
|
|
|
1075
1075
|
ghost: "opacity-70 hover:opacity-100 focus:opacity-100"
|
|
1076
1076
|
} },
|
|
1077
1077
|
defaultVariants: { variant: "default" }
|
|
1078
|
-
}), vn =
|
|
1078
|
+
}), vn = F.forwardRef((e, t) => {
|
|
1079
1079
|
let i = (0, $.c)(12), a, o, s;
|
|
1080
1080
|
i[0] === e ? (a = i[1], o = i[2], s = i[3]) : ({className: o, children: a, ...s} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = s);
|
|
1081
1081
|
let c;
|
|
@@ -1083,7 +1083,7 @@ var _n = a("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
|
|
|
1083
1083
|
let l;
|
|
1084
1084
|
i[5] === o ? l = i[6] : (l = n(_n({}), o), i[5] = o, i[6] = l);
|
|
1085
1085
|
let u;
|
|
1086
|
-
return i[7] !== a || i[8] !== s || i[9] !== t || i[10] !== l ? (u = /* @__PURE__ */ (0,
|
|
1086
|
+
return i[7] !== a || i[8] !== s || i[9] !== t || i[10] !== l ? (u = /* @__PURE__ */ (0, I.jsx)("select", {
|
|
1087
1087
|
ref: t,
|
|
1088
1088
|
onClick: c,
|
|
1089
1089
|
className: l,
|
|
@@ -1094,25 +1094,25 @@ var _n = a("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
|
|
|
1094
1094
|
vn.displayName = "NativeSelect";
|
|
1095
1095
|
//#endregion
|
|
1096
1096
|
//#region src/components/ui/select.tsx
|
|
1097
|
-
var yn = ct, bn = ht, xn =
|
|
1097
|
+
var yn = ct, bn = ht, xn = x(ft), Sn = ut, Cn = F.forwardRef((e, t) => {
|
|
1098
1098
|
let r = (0, $.c)(21), i, a, o, s, c, l;
|
|
1099
1099
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5], l = r[6]) : ({className: a, children: i, onClear: o, variant: l, hideChevron: c, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c, r[6] = l);
|
|
1100
1100
|
let u = c !== void 0 && c, d;
|
|
1101
1101
|
r[7] !== a || r[8] !== l ? (d = n(_n({ variant: l }), "mb-0", a), r[7] = a, r[8] = l, r[9] = d) : d = r[9];
|
|
1102
1102
|
let f;
|
|
1103
|
-
r[10] !== u || r[11] !== o ? (f = o ? /* @__PURE__ */ (0,
|
|
1103
|
+
r[10] !== u || r[11] !== o ? (f = o ? /* @__PURE__ */ (0, I.jsx)("span", {
|
|
1104
1104
|
onPointerDown: (e) => {
|
|
1105
1105
|
e.preventDefault(), e.stopPropagation(), o();
|
|
1106
1106
|
},
|
|
1107
|
-
children: /* @__PURE__ */ (0,
|
|
1108
|
-
}) : !u && /* @__PURE__ */ (0,
|
|
1107
|
+
children: /* @__PURE__ */ (0, I.jsx)(N, { className: "h-4 w-4 opacity-50 hover:opacity-90" })
|
|
1108
|
+
}) : !u && /* @__PURE__ */ (0, I.jsx)(M, { className: "h-4 w-4 opacity-50" }), r[10] = u, r[11] = o, r[12] = f) : f = r[12];
|
|
1109
1109
|
let p;
|
|
1110
|
-
r[13] === f ? p = r[14] : (p = /* @__PURE__ */ (0,
|
|
1110
|
+
r[13] === f ? p = r[14] : (p = /* @__PURE__ */ (0, I.jsx)(dt, {
|
|
1111
1111
|
asChild: !0,
|
|
1112
1112
|
children: f
|
|
1113
1113
|
}), r[13] = f, r[14] = p);
|
|
1114
1114
|
let m;
|
|
1115
|
-
return r[15] !== i || r[16] !== s || r[17] !== t || r[18] !== d || r[19] !== p ? (m = /* @__PURE__ */ (0,
|
|
1115
|
+
return r[15] !== i || r[16] !== s || r[17] !== t || r[18] !== d || r[19] !== p ? (m = /* @__PURE__ */ (0, I.jsxs)(lt, {
|
|
1116
1116
|
ref: t,
|
|
1117
1117
|
className: d,
|
|
1118
1118
|
...s,
|
|
@@ -1120,30 +1120,30 @@ var yn = ct, bn = ht, xn = S(ft), Sn = ut, Cn = I.forwardRef((e, t) => {
|
|
|
1120
1120
|
}), r[15] = i, r[16] = s, r[17] = t, r[18] = d, r[19] = p, r[20] = m) : m = r[20], m;
|
|
1121
1121
|
});
|
|
1122
1122
|
Cn.displayName = lt.displayName;
|
|
1123
|
-
var wn =
|
|
1123
|
+
var wn = E(pt), Tn = F.forwardRef((e, t) => {
|
|
1124
1124
|
let r = (0, $.c)(21), i, a, o, s;
|
|
1125
1125
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: a, children: i, position: s, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
|
|
1126
1126
|
let c = s === void 0 ? "popper" : s, l = c === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", u;
|
|
1127
1127
|
r[5] !== a || r[6] !== l ? (u = n("max-h-[300px] relative z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", l, a), r[5] = a, r[6] = l, r[7] = u) : u = r[7];
|
|
1128
1128
|
let d;
|
|
1129
|
-
r[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0,
|
|
1129
|
+
r[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, I.jsx)(bt, {
|
|
1130
1130
|
className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
|
|
1131
|
-
children: /* @__PURE__ */ (0,
|
|
1131
|
+
children: /* @__PURE__ */ (0, I.jsx)(ie, { className: "h-4 w-4" })
|
|
1132
1132
|
}), r[8] = d) : d = r[8];
|
|
1133
1133
|
let f = c === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)", p;
|
|
1134
1134
|
r[9] === f ? p = r[10] : (p = n("p-1", f), r[9] = f, r[10] = p);
|
|
1135
1135
|
let m;
|
|
1136
|
-
r[11] !== i || r[12] !== p ? (m = /* @__PURE__ */ (0,
|
|
1136
|
+
r[11] !== i || r[12] !== p ? (m = /* @__PURE__ */ (0, I.jsx)(mt, {
|
|
1137
1137
|
className: p,
|
|
1138
1138
|
children: i
|
|
1139
1139
|
}), r[11] = i, r[12] = p, r[13] = m) : m = r[13];
|
|
1140
1140
|
let h;
|
|
1141
|
-
r[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0,
|
|
1141
|
+
r[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, I.jsx)(xt, {
|
|
1142
1142
|
className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
|
|
1143
|
-
children: /* @__PURE__ */ (0,
|
|
1143
|
+
children: /* @__PURE__ */ (0, I.jsx)(M, { className: "h-4 w-4 opacity-50" })
|
|
1144
1144
|
}), r[14] = h) : h = r[14];
|
|
1145
1145
|
let g;
|
|
1146
|
-
return r[15] !== c || r[16] !== o || r[17] !== t || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0,
|
|
1146
|
+
return r[15] !== c || r[16] !== o || r[17] !== t || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, I.jsx)(xn, { children: /* @__PURE__ */ (0, I.jsx)(y, { children: /* @__PURE__ */ (0, I.jsxs)(wn, {
|
|
1147
1147
|
ref: t,
|
|
1148
1148
|
className: u,
|
|
1149
1149
|
position: c,
|
|
@@ -1156,37 +1156,37 @@ var wn = x(pt), Tn = I.forwardRef((e, t) => {
|
|
|
1156
1156
|
}) }) }), r[15] = c, r[16] = o, r[17] = t, r[18] = u, r[19] = m, r[20] = g) : g = r[20], g;
|
|
1157
1157
|
});
|
|
1158
1158
|
Tn.displayName = pt.displayName;
|
|
1159
|
-
var En =
|
|
1159
|
+
var En = F.forwardRef((e, t) => {
|
|
1160
1160
|
let r = (0, $.c)(9), i, a;
|
|
1161
1161
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1162
1162
|
let o;
|
|
1163
1163
|
r[3] === i ? o = r[4] : (o = n("px-2 py-1.5 text-sm font-semibold", i), r[3] = i, r[4] = o);
|
|
1164
1164
|
let s;
|
|
1165
|
-
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
1165
|
+
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, I.jsx)(gt, {
|
|
1166
1166
|
ref: t,
|
|
1167
1167
|
className: o,
|
|
1168
1168
|
...a
|
|
1169
1169
|
}), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1170
1170
|
});
|
|
1171
1171
|
En.displayName = gt.displayName;
|
|
1172
|
-
var Dn =
|
|
1172
|
+
var Dn = F.forwardRef((e, t) => {
|
|
1173
1173
|
let r = (0, $.c)(17), i, a, o, s;
|
|
1174
1174
|
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: a, children: i, subtitle: s, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
|
|
1175
1175
|
let c;
|
|
1176
1176
|
r[5] === a ? c = r[6] : (c = n("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText]", un, a), r[5] = a, r[6] = c);
|
|
1177
1177
|
let l;
|
|
1178
|
-
r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0,
|
|
1178
|
+
r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, I.jsx)("span", {
|
|
1179
1179
|
className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1180
|
-
children: /* @__PURE__ */ (0,
|
|
1180
|
+
children: /* @__PURE__ */ (0, I.jsx)(yt, { children: /* @__PURE__ */ (0, I.jsx)(g, { className: "h-3 w-3" }) })
|
|
1181
1181
|
}), r[7] = l) : l = r[7];
|
|
1182
1182
|
let u = typeof i != "string" || void 0, d;
|
|
1183
|
-
r[8] !== i || r[9] !== u ? (d = /* @__PURE__ */ (0,
|
|
1183
|
+
r[8] !== i || r[9] !== u ? (d = /* @__PURE__ */ (0, I.jsx)(vt, {
|
|
1184
1184
|
asChild: u,
|
|
1185
1185
|
className: "flex w-full flex-1",
|
|
1186
1186
|
children: i
|
|
1187
1187
|
}), r[8] = i, r[9] = u, r[10] = d) : d = r[10];
|
|
1188
1188
|
let f;
|
|
1189
|
-
return r[11] !== o || r[12] !== t || r[13] !== s || r[14] !== c || r[15] !== d ? (f = /* @__PURE__ */ (0,
|
|
1189
|
+
return r[11] !== o || r[12] !== t || r[13] !== s || r[14] !== c || r[15] !== d ? (f = /* @__PURE__ */ (0, I.jsxs)(_t, {
|
|
1190
1190
|
ref: t,
|
|
1191
1191
|
className: c,
|
|
1192
1192
|
...o,
|
|
@@ -1198,13 +1198,13 @@ var Dn = I.forwardRef((e, t) => {
|
|
|
1198
1198
|
}), r[11] = o, r[12] = t, r[13] = s, r[14] = c, r[15] = d, r[16] = f) : f = r[16], f;
|
|
1199
1199
|
});
|
|
1200
1200
|
Dn.displayName = _t.displayName;
|
|
1201
|
-
var On =
|
|
1201
|
+
var On = F.forwardRef((e, t) => {
|
|
1202
1202
|
let r = (0, $.c)(9), i, a;
|
|
1203
1203
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1204
1204
|
let o;
|
|
1205
1205
|
r[3] === i ? o = r[4] : (o = n("-mx-1 my-1 h-px bg-muted", i), r[3] = i, r[4] = o);
|
|
1206
1206
|
let s;
|
|
1207
|
-
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
1207
|
+
return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, I.jsx)(St, {
|
|
1208
1208
|
ref: t,
|
|
1209
1209
|
className: o,
|
|
1210
1210
|
...a
|
|
@@ -1212,4 +1212,4 @@ var On = I.forwardRef((e, t) => {
|
|
|
1212
1212
|
});
|
|
1213
1213
|
On.displayName = St.displayName;
|
|
1214
1214
|
//#endregion
|
|
1215
|
-
export { dt as A, rn as C, Kt as D, qt as E,
|
|
1215
|
+
export { dt as A, rn as C, Kt as D, qt as E, L as F, N as I, ie as L, B as M, ae as N, Pt as O, z as P, M as R, nn as S, Qt as T, pn as _, En as a, sn as b, Sn as c, un as d, gn as f, mn as g, dn as h, Dn as i, lt as j, At as k, vn as l, fn as m, Tn as n, On as o, cn as p, bn as r, Cn as s, yn as t, _n as u, hn as v, tn as w, an as x, ln as y };
|