@senitix/ui 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avatar-BT_SPwFW.cjs +18 -0
- package/dist/{avatar-C0aVNCG9.cjs.map → avatar-BT_SPwFW.cjs.map} +1 -1
- package/dist/avatar-C5-ZWIqT.js +305 -0
- package/dist/{avatar-CN6wcrqY.js.map → avatar-C5-ZWIqT.js.map} +1 -1
- package/dist/calendar-BF5drX5u.cjs +12 -0
- package/dist/{calendar-BUm7YrNf.cjs.map → calendar-BF5drX5u.cjs.map} +1 -1
- package/dist/calendar-CUxm1K7J.js +17 -0
- package/dist/{calendar-ChJkFXXr.js.map → calendar-CUxm1K7J.js.map} +1 -1
- package/dist/calendar-D3RWU0_G.cjs +7 -0
- package/dist/{calendar-SwL5isYC.cjs.map → calendar-D3RWU0_G.cjs.map} +1 -1
- package/dist/{calendar-BFWc4IB7.js → calendar-DgnhzEfp.js} +126 -112
- package/dist/{calendar-BFWc4IB7.js.map → calendar-DgnhzEfp.js.map} +1 -1
- package/dist/{card-tMkUxpmW.cjs → card-DISL3sPJ.cjs} +2 -2
- package/dist/{card-tMkUxpmW.cjs.map → card-DISL3sPJ.cjs.map} +1 -1
- package/dist/{card-K4fxyYwE.js → card-fId5vof_.js} +2 -2
- package/dist/{card-K4fxyYwE.js.map → card-fId5vof_.js.map} +1 -1
- package/dist/{checkbox-CpOq5hkT.js → checkbox-BY2zxQVv.js} +5 -5
- package/dist/{checkbox-CpOq5hkT.js.map → checkbox-BY2zxQVv.js.map} +1 -1
- package/dist/checkbox-CL6u7vL6.cjs +2 -0
- package/dist/{checkbox-D7-LQyCl.cjs.map → checkbox-CL6u7vL6.cjs.map} +1 -1
- package/dist/chevron-down-BiUlxZA-.js +14 -0
- package/dist/{chevron-down-DJ1_YIFu.js.map → chevron-down-BiUlxZA-.js.map} +1 -1
- package/dist/chevron-down-Ce0kqXiD.cjs +7 -0
- package/dist/{chevron-down-DHdXqOqK.cjs.map → chevron-down-Ce0kqXiD.cjs.map} +1 -1
- package/dist/chevron-right-BLyGmyaF.js +14 -0
- package/dist/{chevron-right-B3bovvh0.js.map → chevron-right-BLyGmyaF.js.map} +1 -1
- package/dist/chevron-right-Bxf8i4gi.cjs +7 -0
- package/dist/{chevron-right-Dvyd11q0.cjs.map → chevron-right-Bxf8i4gi.cjs.map} +1 -1
- package/dist/chevron-up-BmYZUtrk.js +12 -0
- package/dist/{chevron-up-CGtXOr51.js.map → chevron-up-BmYZUtrk.js.map} +1 -1
- package/dist/chevron-up-C3RClqXD.cjs +7 -0
- package/dist/{chevron-up-B9fuiZhc.cjs.map → chevron-up-C3RClqXD.cjs.map} +1 -1
- package/dist/components/charts/index.cjs.js +1 -1
- package/dist/components/charts/index.es.js +1 -1
- package/dist/components/data-display/index.cjs.js +1 -1
- package/dist/components/data-display/index.es.js +1 -1
- package/dist/components/dnd/index.cjs.js +1 -1
- package/dist/components/dnd/index.es.js +1 -1
- package/dist/components/feedback/index.cjs.js +1 -1
- package/dist/components/feedback/index.es.js +1 -1
- package/dist/components/forms/index.cjs.js +1 -1
- package/dist/components/forms/index.es.js +1 -1
- package/dist/components/layouts/index.cjs.js +1 -1
- package/dist/components/layouts/index.es.js +1 -1
- package/dist/components/navigation/index.cjs.js +1 -1
- package/dist/components/navigation/index.es.js +1 -1
- package/dist/components/ui/index.cjs.js +1 -1
- package/dist/components/ui/index.es.js +13 -13
- package/dist/{createLucideIcon-BbeNo6vq.js → createLucideIcon-BC8wu-bu.js} +25 -1
- package/dist/{createLucideIcon-BbeNo6vq.js.map → createLucideIcon-BC8wu-bu.js.map} +1 -1
- package/dist/createLucideIcon-Cv8nC2E9.cjs +22 -0
- package/dist/{createLucideIcon-i5GEhNMV.cjs.map → createLucideIcon-Cv8nC2E9.cjs.map} +1 -1
- package/dist/ellipsis-6eUne95u.js +16 -0
- package/dist/{ellipsis-CiKEaUNP.js.map → ellipsis-6eUne95u.js.map} +1 -1
- package/dist/ellipsis-DkM3GBF5.cjs +7 -0
- package/dist/{ellipsis-BW2gWki8.cjs.map → ellipsis-DkM3GBF5.cjs.map} +1 -1
- package/dist/file-Cp5UoYUZ.cjs +7 -0
- package/dist/{file-V_hhCUhr.cjs.map → file-Cp5UoYUZ.cjs.map} +1 -1
- package/dist/file-Cw_u_aJB.js +15 -0
- package/dist/{file-wzTXnWqz.js.map → file-Cw_u_aJB.js.map} +1 -1
- package/dist/filter-tags-DoRzXjuY.cjs +48 -0
- package/dist/{filter-tags-DjUaNXHR.cjs.map → filter-tags-DoRzXjuY.cjs.map} +1 -1
- package/dist/{filter-tags-i_I8qV1N.js → filter-tags-zEQmRhEU.js} +353 -299
- package/dist/{filter-tags-i_I8qV1N.js.map → filter-tags-zEQmRhEU.js.map} +1 -1
- package/dist/{full-calendar-7ac2FFU6.js → full-calendar-5Z4JSj8g.js} +1176 -1143
- package/dist/{full-calendar-7ac2FFU6.js.map → full-calendar-5Z4JSj8g.js.map} +1 -1
- package/dist/full-calendar-DjAvCfuE.cjs +23 -0
- package/dist/{full-calendar-Cpeh5xMP.cjs.map → full-calendar-DjAvCfuE.cjs.map} +1 -1
- package/dist/{global-search-h1rVbP2q.js → global-search-BbZfc-VL.js} +514 -486
- package/dist/global-search-BbZfc-VL.js.map +1 -0
- package/dist/global-search-Bd74_wPV.cjs +22 -0
- package/dist/global-search-Bd74_wPV.cjs.map +1 -0
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +1 -1
- package/dist/index-D2U2F80P.cjs +2 -0
- package/dist/index-D2U2F80P.cjs.map +1 -0
- package/dist/index-DG0KV-sw.cjs +11 -0
- package/dist/{index-CzVK9Zyb.cjs.map → index-DG0KV-sw.cjs.map} +1 -1
- package/dist/{index-Co9o9StL.js → index-Dk_Et2WJ.js} +2 -2
- package/dist/{index-Co9o9StL.js.map → index-Dk_Et2WJ.js.map} +1 -1
- package/dist/{index-CwJPJKOE.js → index-DtaLkIY8.js} +1072 -573
- package/dist/index-DtaLkIY8.js.map +1 -0
- package/dist/index-XnFSmCuh.js +299 -0
- package/dist/{index-l828OqQN.js.map → index-XnFSmCuh.js.map} +1 -1
- package/dist/{index-lT9bLt9X.cjs → index-gVbM3K4f.cjs} +2 -2
- package/dist/{index-lT9bLt9X.cjs.map → index-gVbM3K4f.cjs.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +23 -23
- package/dist/input-BgPy-4Qu.js +3658 -0
- package/dist/{input-D4AoiWxo.js.map → input-BgPy-4Qu.js.map} +1 -1
- package/dist/input-Cfr2WB-P.cjs +47 -0
- package/dist/{input-CZrckPLk.cjs.map → input-Cfr2WB-P.cjs.map} +1 -1
- package/dist/locale-provider-BojNdf1Y.cjs +2 -0
- package/dist/{locale-provider-DHMwuneF.cjs.map → locale-provider-BojNdf1Y.cjs.map} +1 -1
- package/dist/{locale-provider-DanG6RRG.js → locale-provider-DzBeb-X3.js} +62 -61
- package/dist/{locale-provider-DanG6RRG.js.map → locale-provider-DzBeb-X3.js.map} +1 -1
- package/dist/locale-selector-BD1IWk6X.cjs +22 -0
- package/dist/{locale-selector-Ppe0KTi-.cjs.map → locale-selector-BD1IWk6X.cjs.map} +1 -1
- package/dist/locale-selector-DLRSyVye.js +1772 -0
- package/dist/{locale-selector-xn2GpdP9.js.map → locale-selector-DLRSyVye.js.map} +1 -1
- package/dist/minus-C0uyaz70.cjs +7 -0
- package/dist/{minus-BXBFZSZs.cjs.map → minus-C0uyaz70.cjs.map} +1 -1
- package/dist/minus-CiwV65ZG.js +12 -0
- package/dist/{minus-DvlYtl96.js.map → minus-CiwV65ZG.js.map} +1 -1
- package/dist/{multi-container-C2UpSw5f.js → multi-container-BZia7HCU.js} +181 -164
- package/dist/{multi-container-C2UpSw5f.js.map → multi-container-BZia7HCU.js.map} +1 -1
- package/dist/multi-container-BdNbgtPZ.cjs +7 -0
- package/dist/{multi-container-DMKL8c9B.cjs.map → multi-container-BdNbgtPZ.cjs.map} +1 -1
- package/dist/pipeline-Dh052Dvj.cjs +27 -0
- package/dist/{pipeline-By5_8AFg.cjs.map → pipeline-Dh052Dvj.cjs.map} +1 -1
- package/dist/pipeline-DqWvleNy.js +1076 -0
- package/dist/{pipeline-D-QNSU0U.js.map → pipeline-DqWvleNy.js.map} +1 -1
- package/dist/plus-BsV82JJ5.cjs +7 -0
- package/dist/{plus-8wKRkVu-.cjs.map → plus-BsV82JJ5.cjs.map} +1 -1
- package/dist/plus-DxD6rofl.js +15 -0
- package/dist/{plus-CJD68KQD.js.map → plus-DxD6rofl.js.map} +1 -1
- package/dist/popover-BgLxmm1z.cjs +7 -0
- package/dist/{popover-ivh-plLc.cjs.map → popover-BgLxmm1z.cjs.map} +1 -1
- package/dist/{popover-4V4sGe1U.js → popover-PI9jbhnS.js} +85 -75
- package/dist/{popover-4V4sGe1U.js.map → popover-PI9jbhnS.js.map} +1 -1
- package/dist/progress-CTTt_CP3.js +260 -0
- package/dist/{progress-D5AsrWa6.js.map → progress-CTTt_CP3.js.map} +1 -1
- package/dist/progress-CTWb7X1Q.cjs +37 -0
- package/dist/{progress-CFnuLqnS.cjs.map → progress-CTWb7X1Q.cjs.map} +1 -1
- package/dist/providers/index.cjs.js +1 -1
- package/dist/providers/index.es.js +1 -1
- package/dist/{scroll-area-DQeqDp3Y.js → scroll-area-A3jGu-Ta.js} +302 -280
- package/dist/{scroll-area-DQeqDp3Y.js.map → scroll-area-A3jGu-Ta.js.map} +1 -1
- package/dist/scroll-area-DzDnWIYJ.cjs +12 -0
- package/dist/{scroll-area-DYOiJMXh.cjs.map → scroll-area-DzDnWIYJ.cjs.map} +1 -1
- package/dist/select-BJpZrtep.js +989 -0
- package/dist/{select-C1rNBi6c.js.map → select-BJpZrtep.js.map} +1 -1
- package/dist/select-Ii8HRuXa.cjs +2 -0
- package/dist/{select-m-Mqwxu3.cjs.map → select-Ii8HRuXa.cjs.map} +1 -1
- package/dist/separator-BzcDE0Ei.cjs +2 -0
- package/dist/{separator-DBUivkHq.cjs.map → separator-BzcDE0Ei.cjs.map} +1 -1
- package/dist/{separator-DsfoJx-2.js → separator-DyarVo1-.js} +66 -65
- package/dist/{separator-DsfoJx-2.js.map → separator-DyarVo1-.js.map} +1 -1
- package/dist/{sheet-BVWCpq7E.js → sheet-DPSdOoE6.js} +4 -4
- package/dist/{sheet-BVWCpq7E.js.map → sheet-DPSdOoE6.js.map} +1 -1
- package/dist/{sheet-mKiFLVnK.cjs → sheet-XtjvbEMq.cjs} +2 -2
- package/dist/{sheet-mKiFLVnK.cjs.map → sheet-XtjvbEMq.cjs.map} +1 -1
- package/dist/{skeleton-BmGbfJw3.js → skeleton-Bl6FAxHT.js} +2 -2
- package/dist/{skeleton-BmGbfJw3.js.map → skeleton-Bl6FAxHT.js.map} +1 -1
- package/dist/{skeleton-BSwwYaQU.cjs → skeleton-Cb6MWerF.cjs} +2 -2
- package/dist/{skeleton-BSwwYaQU.cjs.map → skeleton-Cb6MWerF.cjs.map} +1 -1
- package/dist/sortable.esm-5DsiICDg.cjs +6 -0
- package/dist/{sortable.esm-DcQYlXi3.cjs.map → sortable.esm-5DsiICDg.cjs.map} +1 -1
- package/dist/{sortable.esm-Blhf_jh1.js → sortable.esm-Cb8oRBzU.js} +42 -42
- package/dist/{sortable.esm-Blhf_jh1.js.map → sortable.esm-Cb8oRBzU.js.map} +1 -1
- package/dist/sparkline-chart-CeCDeMNk.cjs +102 -0
- package/dist/{sparkline-chart-ca3uTzVK.cjs.map → sparkline-chart-CeCDeMNk.cjs.map} +1 -1
- package/dist/{sparkline-chart-Da-ehDGv.js → sparkline-chart-DUS4CoW_.js} +7799 -9094
- package/dist/{sparkline-chart-Da-ehDGv.js.map → sparkline-chart-DUS4CoW_.js.map} +1 -1
- package/dist/styles.css +1 -0
- package/dist/trending-up-BBjz_E69.cjs +7 -0
- package/dist/{trending-up-D3Nfrhi3.cjs.map → trending-up-BBjz_E69.cjs.map} +1 -1
- package/dist/trending-up-BHFXgLWy.js +15 -0
- package/dist/{trending-up-DPwlYzQb.js.map → trending-up-BHFXgLWy.js.map} +1 -1
- package/dist/{use-formatters-l1_2c8z0.js → use-formatters-Bgj3JA4i.js} +731 -746
- package/dist/{use-formatters-l1_2c8z0.js.map → use-formatters-Bgj3JA4i.js.map} +1 -1
- package/dist/use-formatters-CObUgipW.cjs +2 -0
- package/dist/{use-formatters-d97RVcmg.cjs.map → use-formatters-CObUgipW.cjs.map} +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +1 -1
- package/dist/welcome-card-CNuEa6Ck.cjs +67 -0
- package/dist/{welcome-card-CPolYl1D.cjs.map → welcome-card-CNuEa6Ck.cjs.map} +1 -1
- package/dist/{welcome-card-CxMJZ8bv.js → welcome-card-Cp6t6G3j.js} +197 -119
- package/dist/{welcome-card-CxMJZ8bv.js.map → welcome-card-Cp6t6G3j.js.map} +1 -1
- package/package.json +14 -12
- package/dist/avatar-C0aVNCG9.cjs +0 -2
- package/dist/avatar-CN6wcrqY.js +0 -288
- package/dist/calendar-BUm7YrNf.cjs +0 -2
- package/dist/calendar-ChJkFXXr.js +0 -11
- package/dist/calendar-SwL5isYC.cjs +0 -2
- package/dist/checkbox-D7-LQyCl.cjs +0 -2
- package/dist/chevron-down-DHdXqOqK.cjs +0 -2
- package/dist/chevron-down-DJ1_YIFu.js +0 -8
- package/dist/chevron-right-B3bovvh0.js +0 -8
- package/dist/chevron-right-Dvyd11q0.cjs +0 -2
- package/dist/chevron-up-B9fuiZhc.cjs +0 -2
- package/dist/chevron-up-CGtXOr51.js +0 -6
- package/dist/createLucideIcon-i5GEhNMV.cjs +0 -2
- package/dist/ellipsis-BW2gWki8.cjs +0 -2
- package/dist/ellipsis-CiKEaUNP.js +0 -10
- package/dist/file-V_hhCUhr.cjs +0 -2
- package/dist/file-wzTXnWqz.js +0 -9
- package/dist/filter-tags-DjUaNXHR.cjs +0 -5
- package/dist/full-calendar-Cpeh5xMP.cjs +0 -8
- package/dist/global-search-UNXjoFlI.cjs +0 -2
- package/dist/global-search-UNXjoFlI.cjs.map +0 -1
- package/dist/global-search-h1rVbP2q.js.map +0 -1
- package/dist/index-CwJPJKOE.js.map +0 -1
- package/dist/index-CzVK9Zyb.cjs +0 -6
- package/dist/index-l828OqQN.js +0 -288
- package/dist/index-lGzB9daF.cjs +0 -2
- package/dist/index-lGzB9daF.cjs.map +0 -1
- package/dist/input-CZrckPLk.cjs +0 -42
- package/dist/input-D4AoiWxo.js +0 -3629
- package/dist/locale-provider-DHMwuneF.cjs +0 -2
- package/dist/locale-selector-Ppe0KTi-.cjs +0 -2
- package/dist/locale-selector-xn2GpdP9.js +0 -1745
- package/dist/minus-BXBFZSZs.cjs +0 -2
- package/dist/minus-DvlYtl96.js +0 -6
- package/dist/multi-container-DMKL8c9B.cjs +0 -2
- package/dist/pipeline-By5_8AFg.cjs +0 -2
- package/dist/pipeline-D-QNSU0U.js +0 -1036
- package/dist/plus-8wKRkVu-.cjs +0 -2
- package/dist/plus-CJD68KQD.js +0 -9
- package/dist/popover-ivh-plLc.cjs +0 -2
- package/dist/progress-CFnuLqnS.cjs +0 -7
- package/dist/progress-D5AsrWa6.js +0 -222
- package/dist/scroll-area-DYOiJMXh.cjs +0 -2
- package/dist/select-C1rNBi6c.js +0 -974
- package/dist/select-m-Mqwxu3.cjs +0 -2
- package/dist/separator-DBUivkHq.cjs +0 -2
- package/dist/sortable.esm-DcQYlXi3.cjs +0 -6
- package/dist/sparkline-chart-ca3uTzVK.cjs +0 -68
- package/dist/trending-up-D3Nfrhi3.cjs +0 -2
- package/dist/trending-up-DPwlYzQb.js +0 -9
- package/dist/ui.css +0 -1
- package/dist/use-formatters-d97RVcmg.cjs +0 -2
- package/dist/welcome-card-CPolYl1D.cjs +0 -2
|
@@ -0,0 +1,989 @@
|
|
|
1
|
+
import { jsx as c, jsxs as Q, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import * as Ee from "react-dom";
|
|
4
|
+
import { f as gt, u as vt, g as St, P as M, h as k, i as z, j as R, k as wt, l as Re, e as yt, C as Ct } from "./scroll-area-A3jGu-Ta.js";
|
|
5
|
+
import { o as _e, u as Pe, R as xt, p as be, q as It, A as Tt, P as bt, r as Nt, s as Rt, t as Pt, F as Et, v as _t, C as Mt, w as At } from "./input-BgPy-4Qu.js";
|
|
6
|
+
import { u as Ot } from "./checkbox-BY2zxQVv.js";
|
|
7
|
+
import { V as Dt } from "./index-Dk_Et2WJ.js";
|
|
8
|
+
import { c as G } from "./index-DtaLkIY8.js";
|
|
9
|
+
import { C as Me } from "./chevron-down-BiUlxZA-.js";
|
|
10
|
+
import { C as Lt } from "./chevron-up-BmYZUtrk.js";
|
|
11
|
+
// @__NO_SIDE_EFFECTS__
|
|
12
|
+
function Vt(t) {
|
|
13
|
+
const n = /* @__PURE__ */ kt(t), e = o.forwardRef((s, r) => {
|
|
14
|
+
const { children: d, ...i } = s, l = o.Children.toArray(d), a = l.find(Ht);
|
|
15
|
+
if (a) {
|
|
16
|
+
const u = a.props.children, v = l.map((S) => S === a ? o.Children.count(u) > 1 ? o.Children.only(null) : o.isValidElement(u) ? u.props.children : null : S);
|
|
17
|
+
return /* @__PURE__ */ c(n, { ...i, ref: r, children: o.isValidElement(u) ? o.cloneElement(u, void 0, v) : null });
|
|
18
|
+
}
|
|
19
|
+
return /* @__PURE__ */ c(n, { ...i, ref: r, children: d });
|
|
20
|
+
});
|
|
21
|
+
return e.displayName = `${t}.Slot`, e;
|
|
22
|
+
}
|
|
23
|
+
// @__NO_SIDE_EFFECTS__
|
|
24
|
+
function kt(t) {
|
|
25
|
+
const n = o.forwardRef((e, s) => {
|
|
26
|
+
const { children: r, ...d } = e;
|
|
27
|
+
if (o.isValidElement(r)) {
|
|
28
|
+
const i = Ft(r), l = Wt(d, r.props);
|
|
29
|
+
return r.type !== o.Fragment && (l.ref = s ? gt(s, i) : i), o.cloneElement(r, l);
|
|
30
|
+
}
|
|
31
|
+
return o.Children.count(r) > 1 ? o.Children.only(null) : null;
|
|
32
|
+
});
|
|
33
|
+
return n.displayName = `${t}.SlotClone`, n;
|
|
34
|
+
}
|
|
35
|
+
var Bt = Symbol("radix.slottable");
|
|
36
|
+
function Ht(t) {
|
|
37
|
+
return o.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Bt;
|
|
38
|
+
}
|
|
39
|
+
function Wt(t, n) {
|
|
40
|
+
const e = { ...n };
|
|
41
|
+
for (const s in n) {
|
|
42
|
+
const r = t[s], d = n[s];
|
|
43
|
+
/^on[A-Z]/.test(s) ? r && d ? e[s] = (...l) => {
|
|
44
|
+
const a = d(...l);
|
|
45
|
+
return r(...l), a;
|
|
46
|
+
} : r && (e[s] = r) : s === "style" ? e[s] = { ...r, ...d } : s === "className" && (e[s] = [r, d].filter(Boolean).join(" "));
|
|
47
|
+
}
|
|
48
|
+
return { ...t, ...e };
|
|
49
|
+
}
|
|
50
|
+
function Ft(t) {
|
|
51
|
+
var s, r;
|
|
52
|
+
let n = (s = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : s.get, e = n && "isReactWarning" in n && n.isReactWarning;
|
|
53
|
+
return e ? t.ref : (n = (r = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : r.get, e = n && "isReactWarning" in n && n.isReactWarning, e ? t.props.ref : t.props.ref || t.ref);
|
|
54
|
+
}
|
|
55
|
+
var Ut = [" ", "Enter", "ArrowUp", "ArrowDown"], Kt = [" ", "Enter"], ee = "Select", [de, ue, $t] = It(ee), [ne] = St(ee, [
|
|
56
|
+
$t,
|
|
57
|
+
_e
|
|
58
|
+
]), pe = _e(), [jt, Y] = ne(ee), [zt, Gt] = ne(ee), Ae = (t) => {
|
|
59
|
+
const {
|
|
60
|
+
__scopeSelect: n,
|
|
61
|
+
children: e,
|
|
62
|
+
open: s,
|
|
63
|
+
defaultOpen: r,
|
|
64
|
+
onOpenChange: d,
|
|
65
|
+
value: i,
|
|
66
|
+
defaultValue: l,
|
|
67
|
+
onValueChange: a,
|
|
68
|
+
dir: u,
|
|
69
|
+
name: v,
|
|
70
|
+
autoComplete: S,
|
|
71
|
+
disabled: b,
|
|
72
|
+
required: N,
|
|
73
|
+
form: T
|
|
74
|
+
} = t, p = pe(n), [g, C] = o.useState(null), [f, h] = o.useState(null), [A, O] = o.useState(!1), re = vt(u), [P, L] = Pe({
|
|
75
|
+
prop: s,
|
|
76
|
+
defaultProp: r ?? !1,
|
|
77
|
+
onChange: d,
|
|
78
|
+
caller: ee
|
|
79
|
+
}), [K, Z] = Pe({
|
|
80
|
+
prop: i,
|
|
81
|
+
defaultProp: l,
|
|
82
|
+
onChange: a,
|
|
83
|
+
caller: ee
|
|
84
|
+
}), B = o.useRef(null), H = g ? T || !!g.closest("form") : !0, [$, W] = o.useState(/* @__PURE__ */ new Set()), F = Array.from($).map((E) => E.props.value).join(";");
|
|
85
|
+
return /* @__PURE__ */ c(xt, { ...p, children: /* @__PURE__ */ Q(
|
|
86
|
+
jt,
|
|
87
|
+
{
|
|
88
|
+
required: N,
|
|
89
|
+
scope: n,
|
|
90
|
+
trigger: g,
|
|
91
|
+
onTriggerChange: C,
|
|
92
|
+
valueNode: f,
|
|
93
|
+
onValueNodeChange: h,
|
|
94
|
+
valueNodeHasChildren: A,
|
|
95
|
+
onValueNodeHasChildrenChange: O,
|
|
96
|
+
contentId: be(),
|
|
97
|
+
value: K,
|
|
98
|
+
onValueChange: Z,
|
|
99
|
+
open: P,
|
|
100
|
+
onOpenChange: L,
|
|
101
|
+
dir: re,
|
|
102
|
+
triggerPointerDownPosRef: B,
|
|
103
|
+
disabled: b,
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ c(de.Provider, { scope: n, children: /* @__PURE__ */ c(
|
|
106
|
+
zt,
|
|
107
|
+
{
|
|
108
|
+
scope: t.__scopeSelect,
|
|
109
|
+
onNativeOptionAdd: o.useCallback((E) => {
|
|
110
|
+
W((V) => new Set(V).add(E));
|
|
111
|
+
}, []),
|
|
112
|
+
onNativeOptionRemove: o.useCallback((E) => {
|
|
113
|
+
W((V) => {
|
|
114
|
+
const U = new Set(V);
|
|
115
|
+
return U.delete(E), U;
|
|
116
|
+
});
|
|
117
|
+
}, []),
|
|
118
|
+
children: e
|
|
119
|
+
}
|
|
120
|
+
) }),
|
|
121
|
+
H ? /* @__PURE__ */ Q(
|
|
122
|
+
nt,
|
|
123
|
+
{
|
|
124
|
+
"aria-hidden": !0,
|
|
125
|
+
required: N,
|
|
126
|
+
tabIndex: -1,
|
|
127
|
+
name: v,
|
|
128
|
+
autoComplete: S,
|
|
129
|
+
value: K,
|
|
130
|
+
onChange: (E) => Z(E.target.value),
|
|
131
|
+
disabled: b,
|
|
132
|
+
form: T,
|
|
133
|
+
children: [
|
|
134
|
+
K === void 0 ? /* @__PURE__ */ c("option", { value: "" }) : null,
|
|
135
|
+
Array.from($)
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
F
|
|
139
|
+
) : null
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
) });
|
|
143
|
+
};
|
|
144
|
+
Ae.displayName = ee;
|
|
145
|
+
var Oe = "SelectTrigger", De = o.forwardRef(
|
|
146
|
+
(t, n) => {
|
|
147
|
+
const { __scopeSelect: e, disabled: s = !1, ...r } = t, d = pe(e), i = Y(Oe, e), l = i.disabled || s, a = k(n, i.onTriggerChange), u = ue(e), v = o.useRef("touch"), [S, b, N] = st((p) => {
|
|
148
|
+
const g = u().filter((h) => !h.disabled), C = g.find((h) => h.value === i.value), f = lt(g, p, C);
|
|
149
|
+
f !== void 0 && i.onValueChange(f.value);
|
|
150
|
+
}), T = (p) => {
|
|
151
|
+
l || (i.onOpenChange(!0), N()), p && (i.triggerPointerDownPosRef.current = {
|
|
152
|
+
x: Math.round(p.pageX),
|
|
153
|
+
y: Math.round(p.pageY)
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
return /* @__PURE__ */ c(Tt, { asChild: !0, ...d, children: /* @__PURE__ */ c(
|
|
157
|
+
M.button,
|
|
158
|
+
{
|
|
159
|
+
type: "button",
|
|
160
|
+
role: "combobox",
|
|
161
|
+
"aria-controls": i.contentId,
|
|
162
|
+
"aria-expanded": i.open,
|
|
163
|
+
"aria-required": i.required,
|
|
164
|
+
"aria-autocomplete": "none",
|
|
165
|
+
dir: i.dir,
|
|
166
|
+
"data-state": i.open ? "open" : "closed",
|
|
167
|
+
disabled: l,
|
|
168
|
+
"data-disabled": l ? "" : void 0,
|
|
169
|
+
"data-placeholder": rt(i.value) ? "" : void 0,
|
|
170
|
+
...r,
|
|
171
|
+
ref: a,
|
|
172
|
+
onClick: R(r.onClick, (p) => {
|
|
173
|
+
p.currentTarget.focus(), v.current !== "mouse" && T(p);
|
|
174
|
+
}),
|
|
175
|
+
onPointerDown: R(r.onPointerDown, (p) => {
|
|
176
|
+
v.current = p.pointerType;
|
|
177
|
+
const g = p.target;
|
|
178
|
+
g.hasPointerCapture(p.pointerId) && g.releasePointerCapture(p.pointerId), p.button === 0 && p.ctrlKey === !1 && p.pointerType === "mouse" && (T(p), p.preventDefault());
|
|
179
|
+
}),
|
|
180
|
+
onKeyDown: R(r.onKeyDown, (p) => {
|
|
181
|
+
const g = S.current !== "";
|
|
182
|
+
!(p.ctrlKey || p.altKey || p.metaKey) && p.key.length === 1 && b(p.key), !(g && p.key === " ") && Ut.includes(p.key) && (T(), p.preventDefault());
|
|
183
|
+
})
|
|
184
|
+
}
|
|
185
|
+
) });
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
De.displayName = Oe;
|
|
189
|
+
var Le = "SelectValue", Ve = o.forwardRef(
|
|
190
|
+
(t, n) => {
|
|
191
|
+
const { __scopeSelect: e, className: s, style: r, children: d, placeholder: i = "", ...l } = t, a = Y(Le, e), { onValueNodeHasChildrenChange: u } = a, v = d !== void 0, S = k(n, a.onValueNodeChange);
|
|
192
|
+
return z(() => {
|
|
193
|
+
u(v);
|
|
194
|
+
}, [u, v]), /* @__PURE__ */ c(
|
|
195
|
+
M.span,
|
|
196
|
+
{
|
|
197
|
+
...l,
|
|
198
|
+
ref: S,
|
|
199
|
+
style: { pointerEvents: "none" },
|
|
200
|
+
children: rt(a.value) ? /* @__PURE__ */ c(Te, { children: i }) : d
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
Ve.displayName = Le;
|
|
206
|
+
var Yt = "SelectIcon", ke = o.forwardRef(
|
|
207
|
+
(t, n) => {
|
|
208
|
+
const { __scopeSelect: e, children: s, ...r } = t;
|
|
209
|
+
return /* @__PURE__ */ c(M.span, { "aria-hidden": !0, ...r, ref: n, children: s || "▼" });
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
ke.displayName = Yt;
|
|
213
|
+
var qt = "SelectPortal", Be = (t) => /* @__PURE__ */ c(bt, { asChild: !0, ...t });
|
|
214
|
+
Be.displayName = qt;
|
|
215
|
+
var te = "SelectContent", He = o.forwardRef(
|
|
216
|
+
(t, n) => {
|
|
217
|
+
const e = Y(te, t.__scopeSelect), [s, r] = o.useState();
|
|
218
|
+
if (z(() => {
|
|
219
|
+
r(new DocumentFragment());
|
|
220
|
+
}, []), !e.open) {
|
|
221
|
+
const d = s;
|
|
222
|
+
return d ? Ee.createPortal(
|
|
223
|
+
/* @__PURE__ */ c(We, { scope: t.__scopeSelect, children: /* @__PURE__ */ c(de.Slot, { scope: t.__scopeSelect, children: /* @__PURE__ */ c("div", { children: t.children }) }) }),
|
|
224
|
+
d
|
|
225
|
+
) : null;
|
|
226
|
+
}
|
|
227
|
+
return /* @__PURE__ */ c(Fe, { ...t, ref: n });
|
|
228
|
+
}
|
|
229
|
+
);
|
|
230
|
+
He.displayName = te;
|
|
231
|
+
var D = 10, [We, q] = ne(te), Zt = "SelectContentImpl", Xt = /* @__PURE__ */ Vt("SelectContent.RemoveScroll"), Fe = o.forwardRef(
|
|
232
|
+
(t, n) => {
|
|
233
|
+
const {
|
|
234
|
+
__scopeSelect: e,
|
|
235
|
+
position: s = "item-aligned",
|
|
236
|
+
onCloseAutoFocus: r,
|
|
237
|
+
onEscapeKeyDown: d,
|
|
238
|
+
onPointerDownOutside: i,
|
|
239
|
+
//
|
|
240
|
+
// PopperContent props
|
|
241
|
+
side: l,
|
|
242
|
+
sideOffset: a,
|
|
243
|
+
align: u,
|
|
244
|
+
alignOffset: v,
|
|
245
|
+
arrowPadding: S,
|
|
246
|
+
collisionBoundary: b,
|
|
247
|
+
collisionPadding: N,
|
|
248
|
+
sticky: T,
|
|
249
|
+
hideWhenDetached: p,
|
|
250
|
+
avoidCollisions: g,
|
|
251
|
+
//
|
|
252
|
+
...C
|
|
253
|
+
} = t, f = Y(te, e), [h, A] = o.useState(null), [O, re] = o.useState(null), P = k(n, (m) => A(m)), [L, K] = o.useState(null), [Z, B] = o.useState(
|
|
254
|
+
null
|
|
255
|
+
), H = ue(e), [$, W] = o.useState(!1), F = o.useRef(!1);
|
|
256
|
+
o.useEffect(() => {
|
|
257
|
+
if (h) return Nt(h);
|
|
258
|
+
}, [h]), Rt();
|
|
259
|
+
const E = o.useCallback(
|
|
260
|
+
(m) => {
|
|
261
|
+
const [I, ..._] = H().map((y) => y.ref.current), [x] = _.slice(-1), w = document.activeElement;
|
|
262
|
+
for (const y of m)
|
|
263
|
+
if (y === w || (y == null || y.scrollIntoView({ block: "nearest" }), y === I && O && (O.scrollTop = 0), y === x && O && (O.scrollTop = O.scrollHeight), y == null || y.focus(), document.activeElement !== w)) return;
|
|
264
|
+
},
|
|
265
|
+
[H, O]
|
|
266
|
+
), V = o.useCallback(
|
|
267
|
+
() => E([L, h]),
|
|
268
|
+
[E, L, h]
|
|
269
|
+
);
|
|
270
|
+
o.useEffect(() => {
|
|
271
|
+
$ && V();
|
|
272
|
+
}, [$, V]);
|
|
273
|
+
const { onOpenChange: U, triggerPointerDownPosRef: j } = f;
|
|
274
|
+
o.useEffect(() => {
|
|
275
|
+
if (h) {
|
|
276
|
+
let m = { x: 0, y: 0 };
|
|
277
|
+
const I = (x) => {
|
|
278
|
+
var w, y;
|
|
279
|
+
m = {
|
|
280
|
+
x: Math.abs(Math.round(x.pageX) - (((w = j.current) == null ? void 0 : w.x) ?? 0)),
|
|
281
|
+
y: Math.abs(Math.round(x.pageY) - (((y = j.current) == null ? void 0 : y.y) ?? 0))
|
|
282
|
+
};
|
|
283
|
+
}, _ = (x) => {
|
|
284
|
+
m.x <= 10 && m.y <= 10 ? x.preventDefault() : h.contains(x.target) || U(!1), document.removeEventListener("pointermove", I), j.current = null;
|
|
285
|
+
};
|
|
286
|
+
return j.current !== null && (document.addEventListener("pointermove", I), document.addEventListener("pointerup", _, { capture: !0, once: !0 })), () => {
|
|
287
|
+
document.removeEventListener("pointermove", I), document.removeEventListener("pointerup", _, { capture: !0 });
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
}, [h, U, j]), o.useEffect(() => {
|
|
291
|
+
const m = () => U(!1);
|
|
292
|
+
return window.addEventListener("blur", m), window.addEventListener("resize", m), () => {
|
|
293
|
+
window.removeEventListener("blur", m), window.removeEventListener("resize", m);
|
|
294
|
+
};
|
|
295
|
+
}, [U]);
|
|
296
|
+
const [fe, ae] = st((m) => {
|
|
297
|
+
const I = H().filter((w) => !w.disabled), _ = I.find((w) => w.ref.current === document.activeElement), x = lt(I, m, _);
|
|
298
|
+
x && setTimeout(() => x.ref.current.focus());
|
|
299
|
+
}), me = o.useCallback(
|
|
300
|
+
(m, I, _) => {
|
|
301
|
+
const x = !F.current && !_;
|
|
302
|
+
(f.value !== void 0 && f.value === I || x) && (K(m), x && (F.current = !0));
|
|
303
|
+
},
|
|
304
|
+
[f.value]
|
|
305
|
+
), he = o.useCallback(() => h == null ? void 0 : h.focus(), [h]), oe = o.useCallback(
|
|
306
|
+
(m, I, _) => {
|
|
307
|
+
const x = !F.current && !_;
|
|
308
|
+
(f.value !== void 0 && f.value === I || x) && B(m);
|
|
309
|
+
},
|
|
310
|
+
[f.value]
|
|
311
|
+
), ie = s === "popper" ? we : Ue, se = ie === we ? {
|
|
312
|
+
side: l,
|
|
313
|
+
sideOffset: a,
|
|
314
|
+
align: u,
|
|
315
|
+
alignOffset: v,
|
|
316
|
+
arrowPadding: S,
|
|
317
|
+
collisionBoundary: b,
|
|
318
|
+
collisionPadding: N,
|
|
319
|
+
sticky: T,
|
|
320
|
+
hideWhenDetached: p,
|
|
321
|
+
avoidCollisions: g
|
|
322
|
+
} : {};
|
|
323
|
+
return /* @__PURE__ */ c(
|
|
324
|
+
We,
|
|
325
|
+
{
|
|
326
|
+
scope: e,
|
|
327
|
+
content: h,
|
|
328
|
+
viewport: O,
|
|
329
|
+
onViewportChange: re,
|
|
330
|
+
itemRefCallback: me,
|
|
331
|
+
selectedItem: L,
|
|
332
|
+
onItemLeave: he,
|
|
333
|
+
itemTextRefCallback: oe,
|
|
334
|
+
focusSelectedItem: V,
|
|
335
|
+
selectedItemText: Z,
|
|
336
|
+
position: s,
|
|
337
|
+
isPositioned: $,
|
|
338
|
+
searchRef: fe,
|
|
339
|
+
children: /* @__PURE__ */ c(Pt, { as: Xt, allowPinchZoom: !0, children: /* @__PURE__ */ c(
|
|
340
|
+
Et,
|
|
341
|
+
{
|
|
342
|
+
asChild: !0,
|
|
343
|
+
trapped: f.open,
|
|
344
|
+
onMountAutoFocus: (m) => {
|
|
345
|
+
m.preventDefault();
|
|
346
|
+
},
|
|
347
|
+
onUnmountAutoFocus: R(r, (m) => {
|
|
348
|
+
var I;
|
|
349
|
+
(I = f.trigger) == null || I.focus({ preventScroll: !0 }), m.preventDefault();
|
|
350
|
+
}),
|
|
351
|
+
children: /* @__PURE__ */ c(
|
|
352
|
+
_t,
|
|
353
|
+
{
|
|
354
|
+
asChild: !0,
|
|
355
|
+
disableOutsidePointerEvents: !0,
|
|
356
|
+
onEscapeKeyDown: d,
|
|
357
|
+
onPointerDownOutside: i,
|
|
358
|
+
onFocusOutside: (m) => m.preventDefault(),
|
|
359
|
+
onDismiss: () => f.onOpenChange(!1),
|
|
360
|
+
children: /* @__PURE__ */ c(
|
|
361
|
+
ie,
|
|
362
|
+
{
|
|
363
|
+
role: "listbox",
|
|
364
|
+
id: f.contentId,
|
|
365
|
+
"data-state": f.open ? "open" : "closed",
|
|
366
|
+
dir: f.dir,
|
|
367
|
+
onContextMenu: (m) => m.preventDefault(),
|
|
368
|
+
...C,
|
|
369
|
+
...se,
|
|
370
|
+
onPlaced: () => W(!0),
|
|
371
|
+
ref: P,
|
|
372
|
+
style: {
|
|
373
|
+
// flex layout so we can place the scroll buttons properly
|
|
374
|
+
display: "flex",
|
|
375
|
+
flexDirection: "column",
|
|
376
|
+
// reset the outline by default as the content MAY get focused
|
|
377
|
+
outline: "none",
|
|
378
|
+
...C.style
|
|
379
|
+
},
|
|
380
|
+
onKeyDown: R(C.onKeyDown, (m) => {
|
|
381
|
+
const I = m.ctrlKey || m.altKey || m.metaKey;
|
|
382
|
+
if (m.key === "Tab" && m.preventDefault(), !I && m.key.length === 1 && ae(m.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(m.key)) {
|
|
383
|
+
let x = H().filter((w) => !w.disabled).map((w) => w.ref.current);
|
|
384
|
+
if (["ArrowUp", "End"].includes(m.key) && (x = x.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(m.key)) {
|
|
385
|
+
const w = m.target, y = x.indexOf(w);
|
|
386
|
+
x = x.slice(y + 1);
|
|
387
|
+
}
|
|
388
|
+
setTimeout(() => E(x)), m.preventDefault();
|
|
389
|
+
}
|
|
390
|
+
})
|
|
391
|
+
}
|
|
392
|
+
)
|
|
393
|
+
}
|
|
394
|
+
)
|
|
395
|
+
}
|
|
396
|
+
) })
|
|
397
|
+
}
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
);
|
|
401
|
+
Fe.displayName = Zt;
|
|
402
|
+
var Jt = "SelectItemAlignedPosition", Ue = o.forwardRef((t, n) => {
|
|
403
|
+
const { __scopeSelect: e, onPlaced: s, ...r } = t, d = Y(te, e), i = q(te, e), [l, a] = o.useState(null), [u, v] = o.useState(null), S = k(n, (P) => v(P)), b = ue(e), N = o.useRef(!1), T = o.useRef(!0), { viewport: p, selectedItem: g, selectedItemText: C, focusSelectedItem: f } = i, h = o.useCallback(() => {
|
|
404
|
+
if (d.trigger && d.valueNode && l && u && p && g && C) {
|
|
405
|
+
const P = d.trigger.getBoundingClientRect(), L = u.getBoundingClientRect(), K = d.valueNode.getBoundingClientRect(), Z = C.getBoundingClientRect();
|
|
406
|
+
if (d.dir !== "rtl") {
|
|
407
|
+
const w = Z.left - L.left, y = K.left - w, X = P.left - y, J = P.width + X, ge = Math.max(J, L.width), ve = window.innerWidth - D, Se = Re(y, [
|
|
408
|
+
D,
|
|
409
|
+
// Prevents the content from going off the starting edge of the
|
|
410
|
+
// viewport. It may still go off the ending edge, but this can be
|
|
411
|
+
// controlled by the user since they may want to manage overflow in a
|
|
412
|
+
// specific way.
|
|
413
|
+
// https://github.com/radix-ui/primitives/issues/2049
|
|
414
|
+
Math.max(D, ve - ge)
|
|
415
|
+
]);
|
|
416
|
+
l.style.minWidth = J + "px", l.style.left = Se + "px";
|
|
417
|
+
} else {
|
|
418
|
+
const w = L.right - Z.right, y = window.innerWidth - K.right - w, X = window.innerWidth - P.right - y, J = P.width + X, ge = Math.max(J, L.width), ve = window.innerWidth - D, Se = Re(y, [
|
|
419
|
+
D,
|
|
420
|
+
Math.max(D, ve - ge)
|
|
421
|
+
]);
|
|
422
|
+
l.style.minWidth = J + "px", l.style.right = Se + "px";
|
|
423
|
+
}
|
|
424
|
+
const B = b(), H = window.innerHeight - D * 2, $ = p.scrollHeight, W = window.getComputedStyle(u), F = parseInt(W.borderTopWidth, 10), E = parseInt(W.paddingTop, 10), V = parseInt(W.borderBottomWidth, 10), U = parseInt(W.paddingBottom, 10), j = F + E + $ + U + V, fe = Math.min(g.offsetHeight * 5, j), ae = window.getComputedStyle(p), me = parseInt(ae.paddingTop, 10), he = parseInt(ae.paddingBottom, 10), oe = P.top + P.height / 2 - D, ie = H - oe, se = g.offsetHeight / 2, m = g.offsetTop + se, I = F + E + m, _ = j - I;
|
|
425
|
+
if (I <= oe) {
|
|
426
|
+
const w = B.length > 0 && g === B[B.length - 1].ref.current;
|
|
427
|
+
l.style.bottom = "0px";
|
|
428
|
+
const y = u.clientHeight - p.offsetTop - p.offsetHeight, X = Math.max(
|
|
429
|
+
ie,
|
|
430
|
+
se + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
431
|
+
(w ? he : 0) + y + V
|
|
432
|
+
), J = I + X;
|
|
433
|
+
l.style.height = J + "px";
|
|
434
|
+
} else {
|
|
435
|
+
const w = B.length > 0 && g === B[0].ref.current;
|
|
436
|
+
l.style.top = "0px";
|
|
437
|
+
const X = Math.max(
|
|
438
|
+
oe,
|
|
439
|
+
F + p.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
440
|
+
(w ? me : 0) + se
|
|
441
|
+
) + _;
|
|
442
|
+
l.style.height = X + "px", p.scrollTop = I - oe + p.offsetTop;
|
|
443
|
+
}
|
|
444
|
+
l.style.margin = `${D}px 0`, l.style.minHeight = fe + "px", l.style.maxHeight = H + "px", s == null || s(), requestAnimationFrame(() => N.current = !0);
|
|
445
|
+
}
|
|
446
|
+
}, [
|
|
447
|
+
b,
|
|
448
|
+
d.trigger,
|
|
449
|
+
d.valueNode,
|
|
450
|
+
l,
|
|
451
|
+
u,
|
|
452
|
+
p,
|
|
453
|
+
g,
|
|
454
|
+
C,
|
|
455
|
+
d.dir,
|
|
456
|
+
s
|
|
457
|
+
]);
|
|
458
|
+
z(() => h(), [h]);
|
|
459
|
+
const [A, O] = o.useState();
|
|
460
|
+
z(() => {
|
|
461
|
+
u && O(window.getComputedStyle(u).zIndex);
|
|
462
|
+
}, [u]);
|
|
463
|
+
const re = o.useCallback(
|
|
464
|
+
(P) => {
|
|
465
|
+
P && T.current === !0 && (h(), f == null || f(), T.current = !1);
|
|
466
|
+
},
|
|
467
|
+
[h, f]
|
|
468
|
+
);
|
|
469
|
+
return /* @__PURE__ */ c(
|
|
470
|
+
eo,
|
|
471
|
+
{
|
|
472
|
+
scope: e,
|
|
473
|
+
contentWrapper: l,
|
|
474
|
+
shouldExpandOnScrollRef: N,
|
|
475
|
+
onScrollButtonChange: re,
|
|
476
|
+
children: /* @__PURE__ */ c(
|
|
477
|
+
"div",
|
|
478
|
+
{
|
|
479
|
+
ref: a,
|
|
480
|
+
style: {
|
|
481
|
+
display: "flex",
|
|
482
|
+
flexDirection: "column",
|
|
483
|
+
position: "fixed",
|
|
484
|
+
zIndex: A
|
|
485
|
+
},
|
|
486
|
+
children: /* @__PURE__ */ c(
|
|
487
|
+
M.div,
|
|
488
|
+
{
|
|
489
|
+
...r,
|
|
490
|
+
ref: S,
|
|
491
|
+
style: {
|
|
492
|
+
// When we get the height of the content, it includes borders. If we were to set
|
|
493
|
+
// the height without having `boxSizing: 'border-box'` it would be too big.
|
|
494
|
+
boxSizing: "border-box",
|
|
495
|
+
// We need to ensure the content doesn't get taller than the wrapper
|
|
496
|
+
maxHeight: "100%",
|
|
497
|
+
...r.style
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
)
|
|
501
|
+
}
|
|
502
|
+
)
|
|
503
|
+
}
|
|
504
|
+
);
|
|
505
|
+
});
|
|
506
|
+
Ue.displayName = Jt;
|
|
507
|
+
var Qt = "SelectPopperPosition", we = o.forwardRef((t, n) => {
|
|
508
|
+
const {
|
|
509
|
+
__scopeSelect: e,
|
|
510
|
+
align: s = "start",
|
|
511
|
+
collisionPadding: r = D,
|
|
512
|
+
...d
|
|
513
|
+
} = t, i = pe(e);
|
|
514
|
+
return /* @__PURE__ */ c(
|
|
515
|
+
Mt,
|
|
516
|
+
{
|
|
517
|
+
...i,
|
|
518
|
+
...d,
|
|
519
|
+
ref: n,
|
|
520
|
+
align: s,
|
|
521
|
+
collisionPadding: r,
|
|
522
|
+
style: {
|
|
523
|
+
// Ensure border-box for floating-ui calculations
|
|
524
|
+
boxSizing: "border-box",
|
|
525
|
+
...d.style,
|
|
526
|
+
"--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
527
|
+
"--radix-select-content-available-width": "var(--radix-popper-available-width)",
|
|
528
|
+
"--radix-select-content-available-height": "var(--radix-popper-available-height)",
|
|
529
|
+
"--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
|
|
530
|
+
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
);
|
|
534
|
+
});
|
|
535
|
+
we.displayName = Qt;
|
|
536
|
+
var [eo, Ne] = ne(te, {}), ye = "SelectViewport", Ke = o.forwardRef(
|
|
537
|
+
(t, n) => {
|
|
538
|
+
const { __scopeSelect: e, nonce: s, ...r } = t, d = q(ye, e), i = Ne(ye, e), l = k(n, d.onViewportChange), a = o.useRef(0);
|
|
539
|
+
return /* @__PURE__ */ Q(Te, { children: [
|
|
540
|
+
/* @__PURE__ */ c(
|
|
541
|
+
"style",
|
|
542
|
+
{
|
|
543
|
+
dangerouslySetInnerHTML: {
|
|
544
|
+
__html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
|
|
545
|
+
},
|
|
546
|
+
nonce: s
|
|
547
|
+
}
|
|
548
|
+
),
|
|
549
|
+
/* @__PURE__ */ c(de.Slot, { scope: e, children: /* @__PURE__ */ c(
|
|
550
|
+
M.div,
|
|
551
|
+
{
|
|
552
|
+
"data-radix-select-viewport": "",
|
|
553
|
+
role: "presentation",
|
|
554
|
+
...r,
|
|
555
|
+
ref: l,
|
|
556
|
+
style: {
|
|
557
|
+
// we use position: 'relative' here on the `viewport` so that when we call
|
|
558
|
+
// `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
|
|
559
|
+
// (independent of the scrollUpButton).
|
|
560
|
+
position: "relative",
|
|
561
|
+
flex: 1,
|
|
562
|
+
// Viewport should only be scrollable in the vertical direction.
|
|
563
|
+
// This won't work in vertical writing modes, so we'll need to
|
|
564
|
+
// revisit this if/when that is supported
|
|
565
|
+
// https://developer.chrome.com/blog/vertical-form-controls
|
|
566
|
+
overflow: "hidden auto",
|
|
567
|
+
...r.style
|
|
568
|
+
},
|
|
569
|
+
onScroll: R(r.onScroll, (u) => {
|
|
570
|
+
const v = u.currentTarget, { contentWrapper: S, shouldExpandOnScrollRef: b } = i;
|
|
571
|
+
if (b != null && b.current && S) {
|
|
572
|
+
const N = Math.abs(a.current - v.scrollTop);
|
|
573
|
+
if (N > 0) {
|
|
574
|
+
const T = window.innerHeight - D * 2, p = parseFloat(S.style.minHeight), g = parseFloat(S.style.height), C = Math.max(p, g);
|
|
575
|
+
if (C < T) {
|
|
576
|
+
const f = C + N, h = Math.min(T, f), A = f - h;
|
|
577
|
+
S.style.height = h + "px", S.style.bottom === "0px" && (v.scrollTop = A > 0 ? A : 0, S.style.justifyContent = "flex-end");
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
a.current = v.scrollTop;
|
|
582
|
+
})
|
|
583
|
+
}
|
|
584
|
+
) })
|
|
585
|
+
] });
|
|
586
|
+
}
|
|
587
|
+
);
|
|
588
|
+
Ke.displayName = ye;
|
|
589
|
+
var $e = "SelectGroup", [to, oo] = ne($e), je = o.forwardRef(
|
|
590
|
+
(t, n) => {
|
|
591
|
+
const { __scopeSelect: e, ...s } = t, r = be();
|
|
592
|
+
return /* @__PURE__ */ c(to, { scope: e, id: r, children: /* @__PURE__ */ c(M.div, { role: "group", "aria-labelledby": r, ...s, ref: n }) });
|
|
593
|
+
}
|
|
594
|
+
);
|
|
595
|
+
je.displayName = $e;
|
|
596
|
+
var ze = "SelectLabel", Ge = o.forwardRef(
|
|
597
|
+
(t, n) => {
|
|
598
|
+
const { __scopeSelect: e, ...s } = t, r = oo(ze, e);
|
|
599
|
+
return /* @__PURE__ */ c(M.div, { id: r.id, ...s, ref: n });
|
|
600
|
+
}
|
|
601
|
+
);
|
|
602
|
+
Ge.displayName = ze;
|
|
603
|
+
var ce = "SelectItem", [no, Ye] = ne(ce), qe = o.forwardRef(
|
|
604
|
+
(t, n) => {
|
|
605
|
+
const {
|
|
606
|
+
__scopeSelect: e,
|
|
607
|
+
value: s,
|
|
608
|
+
disabled: r = !1,
|
|
609
|
+
textValue: d,
|
|
610
|
+
...i
|
|
611
|
+
} = t, l = Y(ce, e), a = q(ce, e), u = l.value === s, [v, S] = o.useState(d ?? ""), [b, N] = o.useState(!1), T = k(
|
|
612
|
+
n,
|
|
613
|
+
(f) => {
|
|
614
|
+
var h;
|
|
615
|
+
return (h = a.itemRefCallback) == null ? void 0 : h.call(a, f, s, r);
|
|
616
|
+
}
|
|
617
|
+
), p = be(), g = o.useRef("touch"), C = () => {
|
|
618
|
+
r || (l.onValueChange(s), l.onOpenChange(!1));
|
|
619
|
+
};
|
|
620
|
+
if (s === "")
|
|
621
|
+
throw new Error(
|
|
622
|
+
"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."
|
|
623
|
+
);
|
|
624
|
+
return /* @__PURE__ */ c(
|
|
625
|
+
no,
|
|
626
|
+
{
|
|
627
|
+
scope: e,
|
|
628
|
+
value: s,
|
|
629
|
+
disabled: r,
|
|
630
|
+
textId: p,
|
|
631
|
+
isSelected: u,
|
|
632
|
+
onItemTextChange: o.useCallback((f) => {
|
|
633
|
+
S((h) => h || ((f == null ? void 0 : f.textContent) ?? "").trim());
|
|
634
|
+
}, []),
|
|
635
|
+
children: /* @__PURE__ */ c(
|
|
636
|
+
de.ItemSlot,
|
|
637
|
+
{
|
|
638
|
+
scope: e,
|
|
639
|
+
value: s,
|
|
640
|
+
disabled: r,
|
|
641
|
+
textValue: v,
|
|
642
|
+
children: /* @__PURE__ */ c(
|
|
643
|
+
M.div,
|
|
644
|
+
{
|
|
645
|
+
role: "option",
|
|
646
|
+
"aria-labelledby": p,
|
|
647
|
+
"data-highlighted": b ? "" : void 0,
|
|
648
|
+
"aria-selected": u && b,
|
|
649
|
+
"data-state": u ? "checked" : "unchecked",
|
|
650
|
+
"aria-disabled": r || void 0,
|
|
651
|
+
"data-disabled": r ? "" : void 0,
|
|
652
|
+
tabIndex: r ? void 0 : -1,
|
|
653
|
+
...i,
|
|
654
|
+
ref: T,
|
|
655
|
+
onFocus: R(i.onFocus, () => N(!0)),
|
|
656
|
+
onBlur: R(i.onBlur, () => N(!1)),
|
|
657
|
+
onClick: R(i.onClick, () => {
|
|
658
|
+
g.current !== "mouse" && C();
|
|
659
|
+
}),
|
|
660
|
+
onPointerUp: R(i.onPointerUp, () => {
|
|
661
|
+
g.current === "mouse" && C();
|
|
662
|
+
}),
|
|
663
|
+
onPointerDown: R(i.onPointerDown, (f) => {
|
|
664
|
+
g.current = f.pointerType;
|
|
665
|
+
}),
|
|
666
|
+
onPointerMove: R(i.onPointerMove, (f) => {
|
|
667
|
+
var h;
|
|
668
|
+
g.current = f.pointerType, r ? (h = a.onItemLeave) == null || h.call(a) : g.current === "mouse" && f.currentTarget.focus({ preventScroll: !0 });
|
|
669
|
+
}),
|
|
670
|
+
onPointerLeave: R(i.onPointerLeave, (f) => {
|
|
671
|
+
var h;
|
|
672
|
+
f.currentTarget === document.activeElement && ((h = a.onItemLeave) == null || h.call(a));
|
|
673
|
+
}),
|
|
674
|
+
onKeyDown: R(i.onKeyDown, (f) => {
|
|
675
|
+
var A;
|
|
676
|
+
((A = a.searchRef) == null ? void 0 : A.current) !== "" && f.key === " " || (Kt.includes(f.key) && C(), f.key === " " && f.preventDefault());
|
|
677
|
+
})
|
|
678
|
+
}
|
|
679
|
+
)
|
|
680
|
+
}
|
|
681
|
+
)
|
|
682
|
+
}
|
|
683
|
+
);
|
|
684
|
+
}
|
|
685
|
+
);
|
|
686
|
+
qe.displayName = ce;
|
|
687
|
+
var le = "SelectItemText", Ze = o.forwardRef(
|
|
688
|
+
(t, n) => {
|
|
689
|
+
const { __scopeSelect: e, className: s, style: r, ...d } = t, i = Y(le, e), l = q(le, e), a = Ye(le, e), u = Gt(le, e), [v, S] = o.useState(null), b = k(
|
|
690
|
+
n,
|
|
691
|
+
(C) => S(C),
|
|
692
|
+
a.onItemTextChange,
|
|
693
|
+
(C) => {
|
|
694
|
+
var f;
|
|
695
|
+
return (f = l.itemTextRefCallback) == null ? void 0 : f.call(l, C, a.value, a.disabled);
|
|
696
|
+
}
|
|
697
|
+
), N = v == null ? void 0 : v.textContent, T = o.useMemo(
|
|
698
|
+
() => /* @__PURE__ */ c("option", { value: a.value, disabled: a.disabled, children: N }, a.value),
|
|
699
|
+
[a.disabled, a.value, N]
|
|
700
|
+
), { onNativeOptionAdd: p, onNativeOptionRemove: g } = u;
|
|
701
|
+
return z(() => (p(T), () => g(T)), [p, g, T]), /* @__PURE__ */ Q(Te, { children: [
|
|
702
|
+
/* @__PURE__ */ c(M.span, { id: a.textId, ...d, ref: b }),
|
|
703
|
+
a.isSelected && i.valueNode && !i.valueNodeHasChildren ? Ee.createPortal(d.children, i.valueNode) : null
|
|
704
|
+
] });
|
|
705
|
+
}
|
|
706
|
+
);
|
|
707
|
+
Ze.displayName = le;
|
|
708
|
+
var Xe = "SelectItemIndicator", Je = o.forwardRef(
|
|
709
|
+
(t, n) => {
|
|
710
|
+
const { __scopeSelect: e, ...s } = t;
|
|
711
|
+
return Ye(Xe, e).isSelected ? /* @__PURE__ */ c(M.span, { "aria-hidden": !0, ...s, ref: n }) : null;
|
|
712
|
+
}
|
|
713
|
+
);
|
|
714
|
+
Je.displayName = Xe;
|
|
715
|
+
var Ce = "SelectScrollUpButton", Qe = o.forwardRef((t, n) => {
|
|
716
|
+
const e = q(Ce, t.__scopeSelect), s = Ne(Ce, t.__scopeSelect), [r, d] = o.useState(!1), i = k(n, s.onScrollButtonChange);
|
|
717
|
+
return z(() => {
|
|
718
|
+
if (e.viewport && e.isPositioned) {
|
|
719
|
+
let l = function() {
|
|
720
|
+
const u = a.scrollTop > 0;
|
|
721
|
+
d(u);
|
|
722
|
+
};
|
|
723
|
+
const a = e.viewport;
|
|
724
|
+
return l(), a.addEventListener("scroll", l), () => a.removeEventListener("scroll", l);
|
|
725
|
+
}
|
|
726
|
+
}, [e.viewport, e.isPositioned]), r ? /* @__PURE__ */ c(
|
|
727
|
+
tt,
|
|
728
|
+
{
|
|
729
|
+
...t,
|
|
730
|
+
ref: i,
|
|
731
|
+
onAutoScroll: () => {
|
|
732
|
+
const { viewport: l, selectedItem: a } = e;
|
|
733
|
+
l && a && (l.scrollTop = l.scrollTop - a.offsetHeight);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
) : null;
|
|
737
|
+
});
|
|
738
|
+
Qe.displayName = Ce;
|
|
739
|
+
var xe = "SelectScrollDownButton", et = o.forwardRef((t, n) => {
|
|
740
|
+
const e = q(xe, t.__scopeSelect), s = Ne(xe, t.__scopeSelect), [r, d] = o.useState(!1), i = k(n, s.onScrollButtonChange);
|
|
741
|
+
return z(() => {
|
|
742
|
+
if (e.viewport && e.isPositioned) {
|
|
743
|
+
let l = function() {
|
|
744
|
+
const u = a.scrollHeight - a.clientHeight, v = Math.ceil(a.scrollTop) < u;
|
|
745
|
+
d(v);
|
|
746
|
+
};
|
|
747
|
+
const a = e.viewport;
|
|
748
|
+
return l(), a.addEventListener("scroll", l), () => a.removeEventListener("scroll", l);
|
|
749
|
+
}
|
|
750
|
+
}, [e.viewport, e.isPositioned]), r ? /* @__PURE__ */ c(
|
|
751
|
+
tt,
|
|
752
|
+
{
|
|
753
|
+
...t,
|
|
754
|
+
ref: i,
|
|
755
|
+
onAutoScroll: () => {
|
|
756
|
+
const { viewport: l, selectedItem: a } = e;
|
|
757
|
+
l && a && (l.scrollTop = l.scrollTop + a.offsetHeight);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
) : null;
|
|
761
|
+
});
|
|
762
|
+
et.displayName = xe;
|
|
763
|
+
var tt = o.forwardRef((t, n) => {
|
|
764
|
+
const { __scopeSelect: e, onAutoScroll: s, ...r } = t, d = q("SelectScrollButton", e), i = o.useRef(null), l = ue(e), a = o.useCallback(() => {
|
|
765
|
+
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
766
|
+
}, []);
|
|
767
|
+
return o.useEffect(() => () => a(), [a]), z(() => {
|
|
768
|
+
var v;
|
|
769
|
+
const u = l().find((S) => S.ref.current === document.activeElement);
|
|
770
|
+
(v = u == null ? void 0 : u.ref.current) == null || v.scrollIntoView({ block: "nearest" });
|
|
771
|
+
}, [l]), /* @__PURE__ */ c(
|
|
772
|
+
M.div,
|
|
773
|
+
{
|
|
774
|
+
"aria-hidden": !0,
|
|
775
|
+
...r,
|
|
776
|
+
ref: n,
|
|
777
|
+
style: { flexShrink: 0, ...r.style },
|
|
778
|
+
onPointerDown: R(r.onPointerDown, () => {
|
|
779
|
+
i.current === null && (i.current = window.setInterval(s, 50));
|
|
780
|
+
}),
|
|
781
|
+
onPointerMove: R(r.onPointerMove, () => {
|
|
782
|
+
var u;
|
|
783
|
+
(u = d.onItemLeave) == null || u.call(d), i.current === null && (i.current = window.setInterval(s, 50));
|
|
784
|
+
}),
|
|
785
|
+
onPointerLeave: R(r.onPointerLeave, () => {
|
|
786
|
+
a();
|
|
787
|
+
})
|
|
788
|
+
}
|
|
789
|
+
);
|
|
790
|
+
}), ro = "SelectSeparator", ot = o.forwardRef(
|
|
791
|
+
(t, n) => {
|
|
792
|
+
const { __scopeSelect: e, ...s } = t;
|
|
793
|
+
return /* @__PURE__ */ c(M.div, { "aria-hidden": !0, ...s, ref: n });
|
|
794
|
+
}
|
|
795
|
+
);
|
|
796
|
+
ot.displayName = ro;
|
|
797
|
+
var Ie = "SelectArrow", so = o.forwardRef(
|
|
798
|
+
(t, n) => {
|
|
799
|
+
const { __scopeSelect: e, ...s } = t, r = pe(e), d = Y(Ie, e), i = q(Ie, e);
|
|
800
|
+
return d.open && i.position === "popper" ? /* @__PURE__ */ c(At, { ...r, ...s, ref: n }) : null;
|
|
801
|
+
}
|
|
802
|
+
);
|
|
803
|
+
so.displayName = Ie;
|
|
804
|
+
var lo = "SelectBubbleInput", nt = o.forwardRef(
|
|
805
|
+
({ __scopeSelect: t, value: n, ...e }, s) => {
|
|
806
|
+
const r = o.useRef(null), d = k(s, r), i = Ot(n);
|
|
807
|
+
return o.useEffect(() => {
|
|
808
|
+
const l = r.current;
|
|
809
|
+
if (!l) return;
|
|
810
|
+
const a = window.HTMLSelectElement.prototype, v = Object.getOwnPropertyDescriptor(
|
|
811
|
+
a,
|
|
812
|
+
"value"
|
|
813
|
+
).set;
|
|
814
|
+
if (i !== n && v) {
|
|
815
|
+
const S = new Event("change", { bubbles: !0 });
|
|
816
|
+
v.call(l, n), l.dispatchEvent(S);
|
|
817
|
+
}
|
|
818
|
+
}, [i, n]), /* @__PURE__ */ c(
|
|
819
|
+
M.select,
|
|
820
|
+
{
|
|
821
|
+
...e,
|
|
822
|
+
style: { ...Dt, ...e.style },
|
|
823
|
+
ref: d,
|
|
824
|
+
defaultValue: n
|
|
825
|
+
}
|
|
826
|
+
);
|
|
827
|
+
}
|
|
828
|
+
);
|
|
829
|
+
nt.displayName = lo;
|
|
830
|
+
function rt(t) {
|
|
831
|
+
return t === "" || t === void 0;
|
|
832
|
+
}
|
|
833
|
+
function st(t) {
|
|
834
|
+
const n = wt(t), e = o.useRef(""), s = o.useRef(0), r = o.useCallback(
|
|
835
|
+
(i) => {
|
|
836
|
+
const l = e.current + i;
|
|
837
|
+
n(l), function a(u) {
|
|
838
|
+
e.current = u, window.clearTimeout(s.current), u !== "" && (s.current = window.setTimeout(() => a(""), 1e3));
|
|
839
|
+
}(l);
|
|
840
|
+
},
|
|
841
|
+
[n]
|
|
842
|
+
), d = o.useCallback(() => {
|
|
843
|
+
e.current = "", window.clearTimeout(s.current);
|
|
844
|
+
}, []);
|
|
845
|
+
return o.useEffect(() => () => window.clearTimeout(s.current), []), [e, r, d];
|
|
846
|
+
}
|
|
847
|
+
function lt(t, n, e) {
|
|
848
|
+
const r = n.length > 1 && Array.from(n).every((u) => u === n[0]) ? n[0] : n, d = e ? t.indexOf(e) : -1;
|
|
849
|
+
let i = ao(t, Math.max(d, 0));
|
|
850
|
+
r.length === 1 && (i = i.filter((u) => u !== e));
|
|
851
|
+
const a = i.find(
|
|
852
|
+
(u) => u.textValue.toLowerCase().startsWith(r.toLowerCase())
|
|
853
|
+
);
|
|
854
|
+
return a !== e ? a : void 0;
|
|
855
|
+
}
|
|
856
|
+
function ao(t, n) {
|
|
857
|
+
return t.map((e, s) => t[(n + s) % t.length]);
|
|
858
|
+
}
|
|
859
|
+
var io = Ae, at = De, co = Ve, uo = ke, po = Be, it = He, fo = Ke, mo = je, ct = Ge, dt = qe, ho = Ze, go = Je, ut = Qe, pt = et, ft = ot;
|
|
860
|
+
const Mo = io, Ao = mo, Oo = co, vo = yt(
|
|
861
|
+
"flex items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 transition-all duration-200",
|
|
862
|
+
{
|
|
863
|
+
variants: {
|
|
864
|
+
size: {
|
|
865
|
+
sm: "h-8 text-sm",
|
|
866
|
+
md: "h-10 text-base",
|
|
867
|
+
lg: "h-12 text-lg"
|
|
868
|
+
},
|
|
869
|
+
width: {
|
|
870
|
+
auto: "w-auto",
|
|
871
|
+
full: "w-full",
|
|
872
|
+
sm: "w-24",
|
|
873
|
+
md: "w-32",
|
|
874
|
+
lg: "w-48"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
defaultVariants: {
|
|
878
|
+
size: "md",
|
|
879
|
+
width: "full"
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
), So = o.forwardRef(({ className: t, children: n, size: e, width: s, ...r }, d) => /* @__PURE__ */ Q(
|
|
883
|
+
at,
|
|
884
|
+
{
|
|
885
|
+
ref: d,
|
|
886
|
+
className: G(vo({ size: e, width: s }), t),
|
|
887
|
+
...r,
|
|
888
|
+
children: [
|
|
889
|
+
n,
|
|
890
|
+
/* @__PURE__ */ c(uo, { asChild: !0, children: /* @__PURE__ */ c(Me, { className: "h-4 w-4 opacity-50" }) })
|
|
891
|
+
]
|
|
892
|
+
}
|
|
893
|
+
));
|
|
894
|
+
So.displayName = at.displayName;
|
|
895
|
+
const mt = o.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ c(
|
|
896
|
+
ut,
|
|
897
|
+
{
|
|
898
|
+
ref: e,
|
|
899
|
+
className: G("flex cursor-default items-center justify-center py-1", t),
|
|
900
|
+
...n,
|
|
901
|
+
children: /* @__PURE__ */ c(Lt, { className: "h-4 w-4" })
|
|
902
|
+
}
|
|
903
|
+
));
|
|
904
|
+
mt.displayName = ut.displayName;
|
|
905
|
+
const ht = o.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ c(
|
|
906
|
+
pt,
|
|
907
|
+
{
|
|
908
|
+
ref: e,
|
|
909
|
+
className: G("flex cursor-default items-center justify-center py-1", t),
|
|
910
|
+
...n,
|
|
911
|
+
children: /* @__PURE__ */ c(Me, { className: "h-4 w-4" })
|
|
912
|
+
}
|
|
913
|
+
));
|
|
914
|
+
ht.displayName = pt.displayName;
|
|
915
|
+
const wo = o.forwardRef(({ className: t, children: n, position: e = "popper", ...s }, r) => /* @__PURE__ */ c(po, { children: /* @__PURE__ */ Q(
|
|
916
|
+
it,
|
|
917
|
+
{
|
|
918
|
+
ref: r,
|
|
919
|
+
className: G(
|
|
920
|
+
"relative z-50 max-h-96 min-w-[8rem] 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",
|
|
921
|
+
e === "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",
|
|
922
|
+
t
|
|
923
|
+
),
|
|
924
|
+
position: e,
|
|
925
|
+
...s,
|
|
926
|
+
children: [
|
|
927
|
+
/* @__PURE__ */ c(mt, {}),
|
|
928
|
+
/* @__PURE__ */ c(
|
|
929
|
+
fo,
|
|
930
|
+
{
|
|
931
|
+
className: G(
|
|
932
|
+
"p-1",
|
|
933
|
+
e === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
934
|
+
),
|
|
935
|
+
children: n
|
|
936
|
+
}
|
|
937
|
+
),
|
|
938
|
+
/* @__PURE__ */ c(ht, {})
|
|
939
|
+
]
|
|
940
|
+
}
|
|
941
|
+
) }));
|
|
942
|
+
wo.displayName = it.displayName;
|
|
943
|
+
const yo = o.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ c(
|
|
944
|
+
ct,
|
|
945
|
+
{
|
|
946
|
+
ref: e,
|
|
947
|
+
className: G("py-1.5 pl-8 pr-2 text-sm font-semibold", t),
|
|
948
|
+
...n
|
|
949
|
+
}
|
|
950
|
+
));
|
|
951
|
+
yo.displayName = ct.displayName;
|
|
952
|
+
const Co = o.forwardRef(({ className: t, children: n, ...e }, s) => /* @__PURE__ */ Q(
|
|
953
|
+
dt,
|
|
954
|
+
{
|
|
955
|
+
ref: s,
|
|
956
|
+
className: G(
|
|
957
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
958
|
+
t
|
|
959
|
+
),
|
|
960
|
+
...e,
|
|
961
|
+
children: [
|
|
962
|
+
/* @__PURE__ */ c("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ c(go, { children: /* @__PURE__ */ c(Ct, { className: "h-4 w-4" }) }) }),
|
|
963
|
+
/* @__PURE__ */ c(ho, { children: n })
|
|
964
|
+
]
|
|
965
|
+
}
|
|
966
|
+
));
|
|
967
|
+
Co.displayName = dt.displayName;
|
|
968
|
+
const xo = o.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ c(
|
|
969
|
+
ft,
|
|
970
|
+
{
|
|
971
|
+
ref: e,
|
|
972
|
+
className: G("-mx-1 my-1 h-px bg-muted", t),
|
|
973
|
+
...n
|
|
974
|
+
}
|
|
975
|
+
));
|
|
976
|
+
xo.displayName = ft.displayName;
|
|
977
|
+
export {
|
|
978
|
+
Mo as S,
|
|
979
|
+
Ao as a,
|
|
980
|
+
Oo as b,
|
|
981
|
+
So as c,
|
|
982
|
+
wo as d,
|
|
983
|
+
yo as e,
|
|
984
|
+
Co as f,
|
|
985
|
+
xo as g,
|
|
986
|
+
mt as h,
|
|
987
|
+
ht as i
|
|
988
|
+
};
|
|
989
|
+
//# sourceMappingURL=select-BJpZrtep.js.map
|