@vellira-ui/react 2.186.1 → 2.186.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +80 -160
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -15,8 +15,7 @@ var oe = {
|
|
|
15
15
|
content: "_content_n1iaz_73",
|
|
16
16
|
contentInner: "_contentInner_n1iaz_79"
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
//#region src/components/Accordion/Content/AccordionContent.tsx
|
|
18
|
+
// src/components/Accordion/Content/AccordionContent.tsx
|
|
20
19
|
function se({ children: e, forceMount: t = !1, hidden: n = !1, contentId: r }) {
|
|
21
20
|
return n && !t ? null : /* @__PURE__ */ g("div", {
|
|
22
21
|
id: r,
|
|
@@ -28,16 +27,14 @@ function se({ children: e, forceMount: t = !1, hidden: n = !1, contentId: r }) {
|
|
|
28
27
|
})
|
|
29
28
|
});
|
|
30
29
|
}
|
|
31
|
-
|
|
32
|
-
//#region src/components/Accordion/Item/AccordionItem.tsx
|
|
30
|
+
// src/components/Accordion/Item/AccordionItem.tsx
|
|
33
31
|
function ce({ children: e, className: t }) {
|
|
34
32
|
return /* @__PURE__ */ g("div", {
|
|
35
33
|
className: t ?? oe.item,
|
|
36
34
|
children: e
|
|
37
35
|
});
|
|
38
36
|
}
|
|
39
|
-
|
|
40
|
-
//#region src/components/Accordion/Trigger/AccordionTrigger.tsx
|
|
37
|
+
// src/components/Accordion/Trigger/AccordionTrigger.tsx
|
|
41
38
|
function le({ children: e, disabled: t = !1, contentId: n, expanded: r = !1, onActivate: i }) {
|
|
42
39
|
return /* @__PURE__ */ _("button", {
|
|
43
40
|
type: "button",
|
|
@@ -53,8 +50,7 @@ function le({ children: e, disabled: t = !1, contentId: n, expanded: r = !1, onA
|
|
|
53
50
|
})]
|
|
54
51
|
});
|
|
55
52
|
}
|
|
56
|
-
|
|
57
|
-
//#region src/components/Accordion/Root/AccordionRoot.tsx
|
|
53
|
+
// src/components/Accordion/Root/AccordionRoot.tsx
|
|
58
54
|
function ue(t) {
|
|
59
55
|
let { children: r, value: i, defaultValue: s, disabled: c = !1 } = t, u = t.type ?? "single", f = t.type === "multiple" ? !1 : t.collapsible ?? !1, m = l(), h = i !== void 0, [_, v] = p(s ?? (u === "multiple" ? [] : "")), y = d(() => {
|
|
60
56
|
let e = (h ? i : _) ?? [];
|
|
@@ -102,8 +98,7 @@ function ue(t) {
|
|
|
102
98
|
})
|
|
103
99
|
});
|
|
104
100
|
}
|
|
105
|
-
|
|
106
|
-
//#region src/components/Accordion/Accordion.tsx
|
|
101
|
+
// src/components/Accordion/Accordion.tsx
|
|
107
102
|
function de(n) {
|
|
108
103
|
return e.toArray(n).flatMap((e) => a(e) && e.type === t ? de(e.props.children) : e);
|
|
109
104
|
}
|
|
@@ -123,13 +118,11 @@ var pe = Object.assign(fe, {
|
|
|
123
118
|
className: J(me.arrow, e)
|
|
124
119
|
});
|
|
125
120
|
F(he, "arrow"), he.displayName = "Dropdown.Arrow";
|
|
126
|
-
|
|
127
|
-
//#region src/components/Dropdown/internal/types.ts
|
|
121
|
+
// src/components/Dropdown/internal/types.ts
|
|
128
122
|
function ge(e) {
|
|
129
123
|
return N(e);
|
|
130
124
|
}
|
|
131
|
-
|
|
132
|
-
//#region src/components/Dropdown/internal/DropdownCollection.ts
|
|
125
|
+
// src/components/Dropdown/internal/DropdownCollection.ts
|
|
133
126
|
function Y(e, t) {
|
|
134
127
|
let n = () => null;
|
|
135
128
|
return F(n, e), n.displayName = t, n;
|
|
@@ -327,8 +320,7 @@ function be(t) {
|
|
|
327
320
|
}
|
|
328
321
|
return r(t), n.join("").trim();
|
|
329
322
|
}
|
|
330
|
-
|
|
331
|
-
//#region src/components/Dropdown/CheckboxItem/DropdownCheckboxItem.tsx
|
|
323
|
+
// src/components/Dropdown/CheckboxItem/DropdownCheckboxItem.tsx
|
|
332
324
|
var xe = Y("checkboxItem", "Dropdown.CheckboxItem"), Se = {
|
|
333
325
|
dropdown: "_dropdown_m7rnq_1",
|
|
334
326
|
"dropdown-in": "_dropdown-in_m7rnq_1",
|
|
@@ -347,12 +339,10 @@ var xe = Y("checkboxItem", "Dropdown.CheckboxItem"), Se = {
|
|
|
347
339
|
children: e ?? "No actions available"
|
|
348
340
|
});
|
|
349
341
|
we.displayName = "DropdownEmptySurface";
|
|
350
|
-
|
|
351
|
-
//#region src/components/Dropdown/Group/DropdownGroup.tsx
|
|
342
|
+
// src/components/Dropdown/Group/DropdownGroup.tsx
|
|
352
343
|
var Te = Y("group", "Dropdown.Group"), Ee = () => null;
|
|
353
344
|
Ee.displayName = "DropdownGroupSurface";
|
|
354
|
-
|
|
355
|
-
//#region src/components/Dropdown/internal/DropdownContext.tsx
|
|
345
|
+
// src/components/Dropdown/internal/DropdownContext.tsx
|
|
356
346
|
var De = r(null), Oe = r(null), ke = r(null), Ae = De.Provider, je = Oe.Provider;
|
|
357
347
|
ke.Provider;
|
|
358
348
|
function Me() {
|
|
@@ -582,8 +572,7 @@ var Be = { group: "_group_aviwv_1" }, Ve = Y("label", "Dropdown.Label"), He = ({
|
|
|
582
572
|
children: e
|
|
583
573
|
});
|
|
584
574
|
He.displayName = "DropdownLabelSurface";
|
|
585
|
-
|
|
586
|
-
//#region src/components/Dropdown/Loading/DropdownLoading.tsx
|
|
575
|
+
// src/components/Dropdown/Loading/DropdownLoading.tsx
|
|
587
576
|
var Ue = Y("loading", "Dropdown.Loading"), We = ({ children: e }) => /* @__PURE__ */ g("li", {
|
|
588
577
|
role: "presentation",
|
|
589
578
|
"aria-live": "polite",
|
|
@@ -597,8 +586,7 @@ var Ge = { separator: "_separator_1v11r_1" }, Ke = Y("separator", "Dropdown.Sepa
|
|
|
597
586
|
"aria-hidden": "true"
|
|
598
587
|
});
|
|
599
588
|
qe.displayName = "DropdownSeparatorSurface";
|
|
600
|
-
|
|
601
|
-
//#region src/hooks/behavior/focus/useAriaIsolation.ts
|
|
589
|
+
// src/hooks/behavior/focus/useAriaIsolation.ts
|
|
602
590
|
var Je = ({ active: e, enabled: t, content: n }) => {
|
|
603
591
|
c(() => {
|
|
604
592
|
if (!e || !t || !n) return;
|
|
@@ -619,8 +607,7 @@ var Je = ({ active: e, enabled: t, content: n }) => {
|
|
|
619
607
|
t
|
|
620
608
|
]);
|
|
621
609
|
};
|
|
622
|
-
|
|
623
|
-
//#region src/hooks/behavior/overlay/useOverlayFocusRestore.ts
|
|
610
|
+
// src/hooks/behavior/overlay/useOverlayFocusRestore.ts
|
|
624
611
|
function Ye(e) {
|
|
625
612
|
return !(e instanceof HTMLElement) || !e.isConnected ? !1 : (e.focus(), document.activeElement === e);
|
|
626
613
|
}
|
|
@@ -931,8 +918,7 @@ var dt = ({ active: e, id: t, zIndexLevel: n, registrationActive: r = e, registe
|
|
|
931
918
|
n(!0);
|
|
932
919
|
}, []), t ? e ?? document.getElementById("overlay-root") ?? _t() : null;
|
|
933
920
|
};
|
|
934
|
-
|
|
935
|
-
//#region src/hooks/behavior/select/useSelectPosition.ts
|
|
921
|
+
// src/hooks/behavior/select/useSelectPosition.ts
|
|
936
922
|
function yt({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange: r, placement: i }) {
|
|
937
923
|
return ft({
|
|
938
924
|
open: t,
|
|
@@ -943,8 +929,7 @@ function yt({ avoidCollisions: e, isOpen: t, matchTriggerWidth: n, onOpenChange:
|
|
|
943
929
|
mobileSheetBreakpoint: 640
|
|
944
930
|
});
|
|
945
931
|
}
|
|
946
|
-
|
|
947
|
-
//#region src/hooks/useControllableState.ts
|
|
932
|
+
// src/hooks/useControllableState.ts
|
|
948
933
|
var bt = ({ value: e, defaultValue: t, onChange: n }) => {
|
|
949
934
|
let [r, i] = p(t), a = f(n);
|
|
950
935
|
u(() => {
|
|
@@ -1249,8 +1234,7 @@ var bt = ({ value: e, defaultValue: t, onChange: n }) => {
|
|
|
1249
1234
|
return r ? B(e, r) : null;
|
|
1250
1235
|
};
|
|
1251
1236
|
Ot.__velliraPortal = !0, Ot.displayName = "Portal", Dt.displayName = "PortalProvider";
|
|
1252
|
-
|
|
1253
|
-
//#region src/components/Dropdown/Content/DropdownContent.tsx
|
|
1237
|
+
// src/components/Dropdown/Content/DropdownContent.tsx
|
|
1254
1238
|
var kt = ({ className: e }) => {
|
|
1255
1239
|
let n = Me(), { contentReadyToFocus: r, isOpen: i, setContentRef: a } = n, s = f(null), l = o((e) => {
|
|
1256
1240
|
s.current = e, a(e);
|
|
@@ -1296,11 +1280,9 @@ var kt = ({ className: e }) => {
|
|
|
1296
1280
|
return n.portal ? /* @__PURE__ */ g(Ot, { children: d }) : d;
|
|
1297
1281
|
};
|
|
1298
1282
|
F(kt, "content"), kt.displayName = "Dropdown.Content";
|
|
1299
|
-
|
|
1300
|
-
//#region src/components/Dropdown/ItemBadge/DropdownItemBadge.tsx
|
|
1283
|
+
// src/components/Dropdown/ItemBadge/DropdownItemBadge.tsx
|
|
1301
1284
|
var At = Y("itemBadge", "Dropdown.ItemBadge"), jt = Y("itemDescription", "Dropdown.ItemDescription"), Mt = Y("itemIcon", "Dropdown.ItemIcon"), Nt = Y("itemShortcut", "Dropdown.ItemShortcut"), Pt = Y("radioGroup", "Dropdown.RadioGroup"), Ft = Y("radioItem", "Dropdown.RadioItem");
|
|
1302
|
-
|
|
1303
|
-
//#region src/utils/compose.ts
|
|
1285
|
+
// src/utils/compose.ts
|
|
1304
1286
|
function It(e, t) {
|
|
1305
1287
|
return (n) => {
|
|
1306
1288
|
e?.(n), n.defaultPrevented || t(n);
|
|
@@ -1313,8 +1295,7 @@ function Lt(...e) {
|
|
|
1313
1295
|
});
|
|
1314
1296
|
};
|
|
1315
1297
|
}
|
|
1316
|
-
|
|
1317
|
-
//#region src/components/Dropdown/internal/composeEventHandlers.ts
|
|
1298
|
+
// src/components/Dropdown/internal/composeEventHandlers.ts
|
|
1318
1299
|
function Rt(e) {
|
|
1319
1300
|
return typeof e == "number" ? `${e}px` : e;
|
|
1320
1301
|
}
|
|
@@ -1508,8 +1489,7 @@ function Ut(e, t) {
|
|
|
1508
1489
|
entries: e.entries.filter((e) => e.type !== "item" || r.has(e.item.id))
|
|
1509
1490
|
};
|
|
1510
1491
|
}
|
|
1511
|
-
|
|
1512
|
-
//#region src/components/Dropdown/Search/DropdownSearch.tsx
|
|
1492
|
+
// src/components/Dropdown/Search/DropdownSearch.tsx
|
|
1513
1493
|
var Wt = Y("search", "Dropdown.Search"), Gt = Y("subContent", "Dropdown.SubContent"), Kt = Y("subTrigger", "Dropdown.SubTrigger"), qt = Y("sub", "Dropdown.Sub"), Jt = {
|
|
1514
1494
|
button: "_button_5pol3_1",
|
|
1515
1495
|
disabled: "_disabled_5pol3_63",
|
|
@@ -1559,8 +1539,7 @@ var Xt = ({ children: e, asChild: t = !1, disabled: r, className: i }) => {
|
|
|
1559
1539
|
});
|
|
1560
1540
|
};
|
|
1561
1541
|
Xt.displayName = "DropdownTriggerSurface";
|
|
1562
|
-
|
|
1563
|
-
//#region src/components/Dropdown/Dropdown.tsx
|
|
1542
|
+
// src/components/Dropdown/Dropdown.tsx
|
|
1564
1543
|
var Zt = Object.assign(Bt, {
|
|
1565
1544
|
Trigger: Yt,
|
|
1566
1545
|
Content: kt,
|
|
@@ -1584,8 +1563,7 @@ var Zt = Object.assign(Bt, {
|
|
|
1584
1563
|
Loading: Ue
|
|
1585
1564
|
});
|
|
1586
1565
|
Zt.displayName = "Dropdown";
|
|
1587
|
-
|
|
1588
|
-
//#region src/components/Modal/internal/ModalContext.tsx
|
|
1566
|
+
// src/components/Modal/internal/ModalContext.tsx
|
|
1589
1567
|
var Qt = r(void 0), $t = r(void 0), en = () => {
|
|
1590
1568
|
let e = s(Qt);
|
|
1591
1569
|
if (e === void 0) throw Error("Modal compound components must be used inside Modal");
|
|
@@ -1687,8 +1665,7 @@ var dn = { modalFooter: "_modalFooter_sb1pn_1" }, fn = ({ children: e, className
|
|
|
1687
1665
|
children: e
|
|
1688
1666
|
});
|
|
1689
1667
|
fn.displayName = "ModalFooter";
|
|
1690
|
-
|
|
1691
|
-
//#region src/components/Modal/Header/ModalDescription.tsx
|
|
1668
|
+
// src/components/Modal/Header/ModalDescription.tsx
|
|
1692
1669
|
var pn = ({ children: e }) => {
|
|
1693
1670
|
let { descriptionId: t, setDescriptionPresent: n } = en();
|
|
1694
1671
|
return c(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ g("p", {
|
|
@@ -1698,15 +1675,13 @@ var pn = ({ children: e }) => {
|
|
|
1698
1675
|
});
|
|
1699
1676
|
};
|
|
1700
1677
|
pn.displayName = "Modal.Description";
|
|
1701
|
-
|
|
1702
|
-
//#region src/components/Modal/Header/ModalHeader.tsx
|
|
1678
|
+
// src/components/Modal/Header/ModalHeader.tsx
|
|
1703
1679
|
var mn = ({ children: e, className: t }) => /* @__PURE__ */ g("div", {
|
|
1704
1680
|
className: J(sn.modalHeader, t),
|
|
1705
1681
|
children: e
|
|
1706
1682
|
});
|
|
1707
1683
|
mn.displayName = "ModalHeader";
|
|
1708
|
-
|
|
1709
|
-
//#region src/components/Modal/Header/ModalTitle.tsx
|
|
1684
|
+
// src/components/Modal/Header/ModalTitle.tsx
|
|
1710
1685
|
var hn = ({ children: e }) => {
|
|
1711
1686
|
let { setTitlePresent: t, titleId: n } = en();
|
|
1712
1687
|
return u(() => (t(!0), () => t(!1)), [t]), /* @__PURE__ */ g("h2", {
|
|
@@ -1733,8 +1708,7 @@ var gn = {
|
|
|
1733
1708
|
});
|
|
1734
1709
|
};
|
|
1735
1710
|
_n.displayName = "ModalOverlay";
|
|
1736
|
-
|
|
1737
|
-
//#region src/components/Modal/internal/useModalDismiss.ts
|
|
1711
|
+
// src/components/Modal/internal/useModalDismiss.ts
|
|
1738
1712
|
var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnEscape: i, closeOnOutsidePress: a, onEscapeKeyDown: o, onPointerDownOutside: s, onInteractOutside: c, requestClose: l }) => dt({
|
|
1739
1713
|
active: e,
|
|
1740
1714
|
registrationActive: t,
|
|
@@ -1909,8 +1883,7 @@ var vn = ({ active: e, registrationActive: t = e, id: n, contentRef: r, closeOnE
|
|
|
1909
1883
|
});
|
|
1910
1884
|
};
|
|
1911
1885
|
Cn.displayName = "ModalRoot";
|
|
1912
|
-
|
|
1913
|
-
//#region src/components/Modal/Trigger/ModalTrigger.tsx
|
|
1886
|
+
// src/components/Modal/Trigger/ModalTrigger.tsx
|
|
1914
1887
|
var wn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
|
|
1915
1888
|
let o = en(), s = t && a(e) ? e : void 0, c = r, l = {
|
|
1916
1889
|
"aria-controls": o.contentId,
|
|
@@ -1938,8 +1911,7 @@ var wn = ({ children: e, asChild: t = !1, disabled: r = !1, className: i }) => {
|
|
|
1938
1911
|
});
|
|
1939
1912
|
};
|
|
1940
1913
|
wn.displayName = "Modal.Trigger";
|
|
1941
|
-
|
|
1942
|
-
//#region src/components/Modal/Modal.tsx
|
|
1914
|
+
// src/components/Modal/Modal.tsx
|
|
1943
1915
|
var Tn = Object.assign(Cn, {
|
|
1944
1916
|
Trigger: wn,
|
|
1945
1917
|
Overlay: _n,
|
|
@@ -1952,8 +1924,7 @@ var Tn = Object.assign(Cn, {
|
|
|
1952
1924
|
Close: cn
|
|
1953
1925
|
});
|
|
1954
1926
|
Tn.displayName = "Modal";
|
|
1955
|
-
|
|
1956
|
-
//#region src/components/Popover/Context/PopoverContext.tsx
|
|
1927
|
+
// src/components/Popover/Context/PopoverContext.tsx
|
|
1957
1928
|
var En = r(null);
|
|
1958
1929
|
function Dn({ children: e, value: t }) {
|
|
1959
1930
|
return /* @__PURE__ */ g(En.Provider, {
|
|
@@ -1966,8 +1937,7 @@ function On(e) {
|
|
|
1966
1937
|
if (!t) throw Error(`${e} must be used within Popover.Root`);
|
|
1967
1938
|
return t;
|
|
1968
1939
|
}
|
|
1969
|
-
|
|
1970
|
-
//#region src/components/Popover/Anchor/PopoverAnchor.tsx
|
|
1940
|
+
// src/components/Popover/Anchor/PopoverAnchor.tsx
|
|
1971
1941
|
function kn(e, t) {
|
|
1972
1942
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
1973
1943
|
}
|
|
@@ -2010,8 +1980,7 @@ function Nn({ width: e = 14, height: t = 7, tipRadius: n = 1, align: r = "center
|
|
|
2010
1980
|
});
|
|
2011
1981
|
}
|
|
2012
1982
|
Nn.displayName = "Popover.Arrow";
|
|
2013
|
-
|
|
2014
|
-
//#region src/components/Popover/Close/PopoverClose.tsx
|
|
1983
|
+
// src/components/Popover/Close/PopoverClose.tsx
|
|
2015
1984
|
function Pn({ children: e, asChild: t = !1, className: r, disabled: i, onClick: o, ...s }) {
|
|
2016
1985
|
let { setOpen: c } = On("Popover.Close"), l = t && a(e) ? e : void 0, u = i || l?.props.disabled === !0, d = (e) => {
|
|
2017
1986
|
l?.props.onClick?.(e), o?.(e), !(e.defaultPrevented || u) && c(!1, {
|
|
@@ -2039,8 +2008,7 @@ var Fn = {
|
|
|
2039
2008
|
content: "_content_1jzfn_1",
|
|
2040
2009
|
"popover-in": "_popover-in_1jzfn_1"
|
|
2041
2010
|
};
|
|
2042
|
-
|
|
2043
|
-
//#region src/components/Popover/Content/PopoverContent.tsx
|
|
2011
|
+
// src/components/Popover/Content/PopoverContent.tsx
|
|
2044
2012
|
function In({ children: e, asChild: t = !1, className: r, style: i, initialFocus: s, returnFocus: c = !0, closeOnEscape: l = !0, closeOnOutsidePress: u = !0, onEscapeKeyDown: d, onPointerDownOutside: f, onInteractOutside: m, onOpenAutoFocus: h, onCloseAutoFocus: _, ...v }) {
|
|
2045
2013
|
let { open: y, modal: b, portal: x, triggerRef: S, anchorRef: C, contentRef: w, contentId: T, titleId: E, descriptionId: D, placement: O, floatingStyles: k, setOpen: A, setContentRef: j } = On("Popover.Content"), [M, N] = p(null), P = o((e, t) => {
|
|
2046
2014
|
A(!1, {
|
|
@@ -2068,7 +2036,7 @@ function In({ children: e, asChild: t = !1, className: r, style: i, initialFocus
|
|
|
2068
2036
|
finalFocus: S,
|
|
2069
2037
|
restoreFocus: c,
|
|
2070
2038
|
onOpenAutoFocus: o((e) => {
|
|
2071
|
-
h?.(e),
|
|
2039
|
+
h?.(e), e.defaultPrevented || b || s || e.preventDefault();
|
|
2072
2040
|
}, [
|
|
2073
2041
|
b,
|
|
2074
2042
|
s,
|
|
@@ -2121,8 +2089,7 @@ function In({ children: e, asChild: t = !1, className: r, style: i, initialFocus
|
|
|
2121
2089
|
}
|
|
2122
2090
|
In.displayName = "Popover.Content";
|
|
2123
2091
|
var Ln = { description: "_description_hji8o_1" };
|
|
2124
|
-
|
|
2125
|
-
//#region src/components/Popover/Description/PopoverDescription.tsx
|
|
2092
|
+
// src/components/Popover/Description/PopoverDescription.tsx
|
|
2126
2093
|
function Rn({ children: e, asChild: t = !1, className: r, ...i }) {
|
|
2127
2094
|
let { descriptionId: o } = On("Popover.Description"), s = t && a(e) ? e : void 0;
|
|
2128
2095
|
return s ? n(s, {
|
|
@@ -2137,8 +2104,7 @@ function Rn({ children: e, asChild: t = !1, className: r, ...i }) {
|
|
|
2137
2104
|
});
|
|
2138
2105
|
}
|
|
2139
2106
|
Rn.displayName = "Popover.Description";
|
|
2140
|
-
|
|
2141
|
-
//#region src/components/Popover/Root/PopoverRoot.tsx
|
|
2107
|
+
// src/components/Popover/Root/PopoverRoot.tsx
|
|
2142
2108
|
function zn(e, t) {
|
|
2143
2109
|
return t === "center" ? e : `${e}-${t}`;
|
|
2144
2110
|
}
|
|
@@ -2196,8 +2162,7 @@ function Bn({ children: e, open: t, defaultOpen: n = !1, modal: r = !1, onOpenCh
|
|
|
2196
2162
|
});
|
|
2197
2163
|
}
|
|
2198
2164
|
var Vn = { title: "_title_1gham_1" };
|
|
2199
|
-
|
|
2200
|
-
//#region src/components/Popover/Title/PopoverTitle.tsx
|
|
2165
|
+
// src/components/Popover/Title/PopoverTitle.tsx
|
|
2201
2166
|
function Hn({ children: e, asChild: t = !1, className: r, ...i }) {
|
|
2202
2167
|
let { titleId: o } = On("Popover.Title"), s = t && a(e) ? e : void 0;
|
|
2203
2168
|
return s ? n(s, {
|
|
@@ -2212,8 +2177,7 @@ function Hn({ children: e, asChild: t = !1, className: r, ...i }) {
|
|
|
2212
2177
|
});
|
|
2213
2178
|
}
|
|
2214
2179
|
Hn.displayName = "Popover.Title";
|
|
2215
|
-
|
|
2216
|
-
//#region src/components/Popover/Trigger/PopoverTrigger.tsx
|
|
2180
|
+
// src/components/Popover/Trigger/PopoverTrigger.tsx
|
|
2217
2181
|
function Un({ children: e, asChild: t = !1, disabled: r = !1, className: i, onClick: o, ...s }) {
|
|
2218
2182
|
let { open: c, triggerId: l, contentId: u, setOpen: d, setTriggerRef: f } = On("Popover.Trigger"), p = t && a(e) ? e : void 0, m = r || p?.props.disabled === !0, h = {
|
|
2219
2183
|
id: l,
|
|
@@ -2249,8 +2213,7 @@ function Un({ children: e, asChild: t = !1, disabled: r = !1, className: i, onCl
|
|
|
2249
2213
|
});
|
|
2250
2214
|
}
|
|
2251
2215
|
Un.displayName = "Popover.Trigger";
|
|
2252
|
-
|
|
2253
|
-
//#region src/components/Popover/Popover.tsx
|
|
2216
|
+
// src/components/Popover/Popover.tsx
|
|
2254
2217
|
var Wn = Object.assign(Bn, {
|
|
2255
2218
|
Anchor: An,
|
|
2256
2219
|
Arrow: Nn,
|
|
@@ -2354,15 +2317,13 @@ var Jn = {
|
|
|
2354
2317
|
});
|
|
2355
2318
|
});
|
|
2356
2319
|
Xn.displayName = "Radio";
|
|
2357
|
-
|
|
2358
|
-
//#region src/components/RadioGroup/Item/RadioGroupItem.tsx
|
|
2320
|
+
// src/components/RadioGroup/Item/RadioGroupItem.tsx
|
|
2359
2321
|
var Zn = i((e, t) => /* @__PURE__ */ g(Xn, {
|
|
2360
2322
|
...e,
|
|
2361
2323
|
ref: t
|
|
2362
2324
|
}));
|
|
2363
2325
|
Zn.displayName = "RadioGroup.Item";
|
|
2364
|
-
|
|
2365
|
-
//#region src/components/RadioGroup/internal/useRadioGroupCollection.ts
|
|
2326
|
+
// src/components/RadioGroup/internal/useRadioGroupCollection.ts
|
|
2366
2327
|
var Qn = (e) => {
|
|
2367
2328
|
let t = e.current;
|
|
2368
2329
|
return t ? Array.from(t.querySelectorAll("input[type=\"radio\"]")) : [];
|
|
@@ -2460,12 +2421,10 @@ var rr = {
|
|
|
2460
2421
|
});
|
|
2461
2422
|
});
|
|
2462
2423
|
ir.displayName = "RadioGroup.Root";
|
|
2463
|
-
|
|
2464
|
-
//#region src/components/RadioGroup/RadioGroup.tsx
|
|
2424
|
+
// src/components/RadioGroup/RadioGroup.tsx
|
|
2465
2425
|
var ar = Object.assign(ir, { Item: Zn });
|
|
2466
2426
|
ar.displayName = "RadioGroup";
|
|
2467
|
-
|
|
2468
|
-
//#region src/components/Select/internal/SelectContext.tsx
|
|
2427
|
+
// src/components/Select/internal/SelectContext.tsx
|
|
2469
2428
|
var or = r(null), sr = or.Provider;
|
|
2470
2429
|
function cr() {
|
|
2471
2430
|
let e = s(or);
|
|
@@ -2473,8 +2432,7 @@ function cr() {
|
|
|
2473
2432
|
return e;
|
|
2474
2433
|
}
|
|
2475
2434
|
or.displayName = "SelectContext";
|
|
2476
|
-
|
|
2477
|
-
//#region src/components/Select/internal/SelectVirtualization.ts
|
|
2435
|
+
// src/components/Select/internal/SelectVirtualization.ts
|
|
2478
2436
|
function lr({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight: i }) {
|
|
2479
2437
|
let a = typeof r == "object" ? r : r ? {} : void 0, o = a?.itemHeight ?? 40, s = a?.overscan ?? 2, c = i ?? a?.viewportHeight ?? 300, l = !!(a && t.length > 0 && !e), u = l ? Math.max(0, Math.floor(n / o) - s) : 0, d = l ? Math.ceil(c / o) + s * 2 : t.length, f = l ? t.slice(u, u + d) : t, p = l ? u * o : 0;
|
|
2480
2438
|
return {
|
|
@@ -2489,8 +2447,7 @@ function lr({ loading: e, options: t, scrollTop: n, virtual: r, viewportHeight:
|
|
|
2489
2447
|
visibleOptions: f
|
|
2490
2448
|
};
|
|
2491
2449
|
}
|
|
2492
|
-
|
|
2493
|
-
//#region src/components/Select/internal/types.ts
|
|
2450
|
+
// src/components/Select/internal/types.ts
|
|
2494
2451
|
function ur(e, t) {
|
|
2495
2452
|
return F(e, t);
|
|
2496
2453
|
}
|
|
@@ -2830,12 +2787,10 @@ function vr(t) {
|
|
|
2830
2787
|
function yr(e) {
|
|
2831
2788
|
return typeof e == "string" || typeof e == "number" ? String(e) : "Select group";
|
|
2832
2789
|
}
|
|
2833
|
-
|
|
2834
|
-
//#region src/components/Select/Empty/SelectEmpty.tsx
|
|
2790
|
+
// src/components/Select/Empty/SelectEmpty.tsx
|
|
2835
2791
|
var br = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
|
|
2836
2792
|
ur(br, "empty"), br.displayName = "Select.Empty";
|
|
2837
|
-
|
|
2838
|
-
//#region src/components/Select/Group/SelectGroup.tsx
|
|
2793
|
+
// src/components/Select/Group/SelectGroup.tsx
|
|
2839
2794
|
var xr = () => null;
|
|
2840
2795
|
ur(xr, "group"), xr.displayName = "Select.Group";
|
|
2841
2796
|
var Z = {
|
|
@@ -2875,32 +2830,26 @@ var Z = {
|
|
|
2875
2830
|
});
|
|
2876
2831
|
};
|
|
2877
2832
|
ur(Sr, "icon"), Sr.displayName = "Select.Icon";
|
|
2878
|
-
|
|
2879
|
-
//#region src/components/Select/ItemBadge/SelectItemBadge.tsx
|
|
2833
|
+
// src/components/Select/ItemBadge/SelectItemBadge.tsx
|
|
2880
2834
|
var Cr = () => null;
|
|
2881
2835
|
ur(Cr, "itemBadge"), Cr.displayName = "Select.ItemBadge";
|
|
2882
|
-
|
|
2883
|
-
//#region src/components/Select/ItemDescription/SelectItemDescription.tsx
|
|
2836
|
+
// src/components/Select/ItemDescription/SelectItemDescription.tsx
|
|
2884
2837
|
var wr = () => null;
|
|
2885
2838
|
ur(wr, "itemDescription"), wr.displayName = "Select.ItemDescription";
|
|
2886
|
-
|
|
2887
|
-
//#region src/components/Select/ItemIcon/SelectItemIcon.tsx
|
|
2839
|
+
// src/components/Select/ItemIcon/SelectItemIcon.tsx
|
|
2888
2840
|
var Tr = () => null;
|
|
2889
2841
|
ur(Tr, "itemIcon"), Tr.displayName = "Select.ItemIcon";
|
|
2890
|
-
|
|
2891
|
-
//#region src/components/Select/Label/SelectLabel.tsx
|
|
2842
|
+
// src/components/Select/Label/SelectLabel.tsx
|
|
2892
2843
|
var Er = ({ children: e }) => /* @__PURE__ */ g("div", {
|
|
2893
2844
|
role: "presentation",
|
|
2894
2845
|
className: hr.groupLabel,
|
|
2895
2846
|
children: e
|
|
2896
2847
|
});
|
|
2897
2848
|
ur(Er, "label"), Er.displayName = "Select.Label";
|
|
2898
|
-
|
|
2899
|
-
//#region src/components/Select/Loading/SelectLoading.tsx
|
|
2849
|
+
// src/components/Select/Loading/SelectLoading.tsx
|
|
2900
2850
|
var Dr = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
|
|
2901
2851
|
ur(Dr, "loading"), Dr.displayName = "Select.Loading";
|
|
2902
|
-
|
|
2903
|
-
//#region src/components/Select/Trigger/SelectTrigger.tsx
|
|
2852
|
+
// src/components/Select/Trigger/SelectTrigger.tsx
|
|
2904
2853
|
var Or = ({ children: e, className: t }) => {
|
|
2905
2854
|
let { triggerProps: n } = cr();
|
|
2906
2855
|
return /* @__PURE__ */ g(kr, {
|
|
@@ -2975,8 +2924,7 @@ var kr = ({ children: e, id: t, describedBy: n, labelledBy: r, isOpen: i, disabl
|
|
|
2975
2924
|
})]
|
|
2976
2925
|
});
|
|
2977
2926
|
kr.displayName = "SelectTriggerSurface";
|
|
2978
|
-
|
|
2979
|
-
//#region src/components/Select/internal/SelectCollection.ts
|
|
2927
|
+
// src/components/Select/internal/SelectCollection.ts
|
|
2980
2928
|
function Ar(t) {
|
|
2981
2929
|
let n = [], r = [], i = 0;
|
|
2982
2930
|
function o(t) {
|
|
@@ -3064,8 +3012,7 @@ function Nr(t, n) {
|
|
|
3064
3012
|
label: l || n
|
|
3065
3013
|
};
|
|
3066
3014
|
}
|
|
3067
|
-
|
|
3068
|
-
//#region src/components/Select/internal/SelectSearch.ts
|
|
3015
|
+
// src/components/Select/internal/SelectSearch.ts
|
|
3069
3016
|
function Pr({ options: e, searchable: t, searchValue: n }) {
|
|
3070
3017
|
if (!t || !n) return e;
|
|
3071
3018
|
let r = n.toLocaleLowerCase();
|
|
@@ -3074,13 +3021,11 @@ function Pr({ options: e, searchable: t, searchValue: n }) {
|
|
|
3074
3021
|
function Fr(e) {
|
|
3075
3022
|
return typeof e == "string" || typeof e == "number" ? String(e) : "";
|
|
3076
3023
|
}
|
|
3077
|
-
|
|
3078
|
-
//#region src/components/Select/internal/useSelectCollection.ts
|
|
3024
|
+
// src/components/Select/internal/useSelectCollection.ts
|
|
3079
3025
|
function Ir(e) {
|
|
3080
3026
|
return d(() => Ar(e), [e]);
|
|
3081
3027
|
}
|
|
3082
|
-
|
|
3083
|
-
//#region src/patterns/FormField/FormFieldContext.ts
|
|
3028
|
+
// src/patterns/FormField/FormFieldContext.ts
|
|
3084
3029
|
var Lr = r(null), Rr = () => s(Lr), zr = {
|
|
3085
3030
|
wrapper: "_wrapper_r078u_1",
|
|
3086
3031
|
sm: "_sm_r078u_41",
|
|
@@ -3222,8 +3167,7 @@ var Ur = ({ id: e, label: r, description: i, error: o, message: s, messageTone:
|
|
|
3222
3167
|
Message: qr,
|
|
3223
3168
|
displayName: "FormField"
|
|
3224
3169
|
});
|
|
3225
|
-
|
|
3226
|
-
//#region src/components/Select/Root/useSelectRootState.tsx
|
|
3170
|
+
// src/components/Select/Root/useSelectRootState.tsx
|
|
3227
3171
|
function Yr(e) {
|
|
3228
3172
|
let { children: t, label: n, description: r, id: i, name: a, "aria-label": s, "aria-describedby": u, "aria-labelledby": m, multiple: v = !1, maxSelected: y, closeOnSelect: b, placeholder: x = "Select...", empty: S, loadingText: C = "Loading...", size: w, color: T = "primary", variant: E = "outline", required: D = !1, disabled: O = !1, invalid: k = !1, loading: A = !1, clearable: j = !1, searchable: M = !1, virtual: N, modal: P = !1, command: F = !1, error: I, placement: R = "bottom", matchTriggerWidth: z = !0, avoidCollisions: B = !0, portal: V = !0, open: H, defaultOpen: U = !1, onOpenChange: W, onSearch: G, onClear: ee, startIcon: te, endIcon: ne, prefix: K, suffix: re, renderValue: q, renderOption: ie, onBlur: ae, onFocus: oe, className: se, triggerClassName: ce, dropdownClassName: le } = e, ue = l(), de = Rr(), fe = !!(n || r || I), pe = i ?? (fe ? void 0 : de?.controlId) ?? ue, me = `${pe}-listbox`, [J, he] = p(""), ge = !!I, Y = ge ? `${pe}-error` : void 0, _e = r ? `${pe}-description` : void 0, ve = w ?? de?.size ?? "md", ye = k || ge || !fe && !!de?.invalid, be = O || !fe && !!de?.disabled, xe = D || !fe && !!de?.required, Se = [
|
|
3229
3173
|
u,
|
|
@@ -3491,8 +3435,7 @@ function Yr(e) {
|
|
|
3491
3435
|
function Xr(e, t) {
|
|
3492
3436
|
return e.altKey || e.ctrlKey || e.metaKey ? !1 : t ? e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Home" || e.key === "End" || e.key === "Enter" || e.key === " " || e.key.length === 1 : e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Enter" || e.key === " ";
|
|
3493
3437
|
}
|
|
3494
|
-
|
|
3495
|
-
//#region src/components/Select/Root/SelectRoot.tsx
|
|
3438
|
+
// src/components/Select/Root/SelectRoot.tsx
|
|
3496
3439
|
var Zr = (e) => {
|
|
3497
3440
|
let { children: t, className: n, contentProps: r, contextValue: i, description: a, error: o, hasCompoundLayout: s, hasExternalField: c, hiddenInputs: l, isDisabled: u, isRequired: f, label: p, resolvedSize: m, triggerId: v, triggerProps: y } = Yr(e), b = d(() => /* @__PURE__ */ _(sr, {
|
|
3498
3441
|
value: i,
|
|
@@ -3529,8 +3472,7 @@ var Zr = (e) => {
|
|
|
3529
3472
|
});
|
|
3530
3473
|
};
|
|
3531
3474
|
Zr.displayName = "SelectRoot";
|
|
3532
|
-
|
|
3533
|
-
//#region src/components/Select/Search/SelectSearch.tsx
|
|
3475
|
+
// src/components/Select/Search/SelectSearch.tsx
|
|
3534
3476
|
var Qr = ({ placeholder: e, className: t }) => {
|
|
3535
3477
|
let { contentProps: n } = cr(), r = f(null), i = n.searchValue ?? "";
|
|
3536
3478
|
return c(() => {
|
|
@@ -3561,12 +3503,10 @@ var Qr = ({ placeholder: e, className: t }) => {
|
|
|
3561
3503
|
});
|
|
3562
3504
|
};
|
|
3563
3505
|
ur(Qr, "search"), Qr.displayName = "Select.Search";
|
|
3564
|
-
|
|
3565
|
-
//#region src/components/Select/Separator/SelectSeparator.tsx
|
|
3506
|
+
// src/components/Select/Separator/SelectSeparator.tsx
|
|
3566
3507
|
var $r = () => null;
|
|
3567
3508
|
ur($r, "separator"), $r.displayName = "Select.Separator";
|
|
3568
|
-
|
|
3569
|
-
//#region src/components/Select/Value/SelectValue.tsx
|
|
3509
|
+
// src/components/Select/Value/SelectValue.tsx
|
|
3570
3510
|
var ei = ({ children: e, className: t }) => {
|
|
3571
3511
|
let { triggerProps: n } = cr();
|
|
3572
3512
|
return /* @__PURE__ */ g("span", {
|
|
@@ -3578,8 +3518,7 @@ var ei = ({ children: e, className: t }) => {
|
|
|
3578
3518
|
});
|
|
3579
3519
|
};
|
|
3580
3520
|
ur(ei, "value"), ei.displayName = "Select.Value";
|
|
3581
|
-
|
|
3582
|
-
//#region src/components/Select/Select.tsx
|
|
3521
|
+
// src/components/Select/Select.tsx
|
|
3583
3522
|
var ti = Object.assign(Zr, {
|
|
3584
3523
|
Trigger: Or,
|
|
3585
3524
|
Value: ei,
|
|
@@ -3597,8 +3536,7 @@ var ti = Object.assign(Zr, {
|
|
|
3597
3536
|
Loading: Dr
|
|
3598
3537
|
});
|
|
3599
3538
|
ti.displayName = "Select";
|
|
3600
|
-
|
|
3601
|
-
//#region src/components/Tabs/internal/TabsContext.tsx
|
|
3539
|
+
// src/components/Tabs/internal/TabsContext.tsx
|
|
3602
3540
|
var ni = r(null), ri = () => {
|
|
3603
3541
|
let e = s(ni);
|
|
3604
3542
|
if (!e) throw Error("Tabs components must be used inside Tabs");
|
|
@@ -3627,8 +3565,7 @@ var ni = r(null), ri = () => {
|
|
|
3627
3565
|
}) : null;
|
|
3628
3566
|
};
|
|
3629
3567
|
ai.displayName = "Tabs.Content";
|
|
3630
|
-
|
|
3631
|
-
//#region src/components/Tabs/internal/useTabsIndicator.ts
|
|
3568
|
+
// src/components/Tabs/internal/useTabsIndicator.ts
|
|
3632
3569
|
var oi = 8, si = 360, ci = () => {
|
|
3633
3570
|
let e = f(null), t = f(null), n = f(void 0), r = f(null), [i, a] = p({}), { value: o, orientation: s, variant: l, collectionVersion: m, getTriggerId: h } = ri();
|
|
3634
3571
|
return c(() => () => {
|
|
@@ -3778,8 +3715,7 @@ var oi = 8, si = 360, ci = () => {
|
|
|
3778
3715
|
});
|
|
3779
3716
|
};
|
|
3780
3717
|
ui.displayName = "Tabs.Indicator";
|
|
3781
|
-
|
|
3782
|
-
//#region src/components/Tabs/List/TabsList.tsx
|
|
3718
|
+
// src/components/Tabs/List/TabsList.tsx
|
|
3783
3719
|
var di = ({ children: e, className: t, scrollable: n, ...r }) => {
|
|
3784
3720
|
let { mode: i, orientation: a, variant: o } = ri(), s = n ?? !1;
|
|
3785
3721
|
return /* @__PURE__ */ g("div", {
|
|
@@ -3794,8 +3730,7 @@ var di = ({ children: e, className: t, scrollable: n, ...r }) => {
|
|
|
3794
3730
|
});
|
|
3795
3731
|
};
|
|
3796
3732
|
di.displayName = "TabsList";
|
|
3797
|
-
|
|
3798
|
-
//#region src/components/Tabs/internal/useTabsCollection.ts
|
|
3733
|
+
// src/components/Tabs/internal/useTabsCollection.ts
|
|
3799
3734
|
var fi = (e) => [...e].sort((e, t) => {
|
|
3800
3735
|
if (e.element === t.element) return 0;
|
|
3801
3736
|
let n = e.element.compareDocumentPosition(t.element);
|
|
@@ -3977,16 +3912,14 @@ var _i = {
|
|
|
3977
3912
|
children: e
|
|
3978
3913
|
});
|
|
3979
3914
|
vi.displayName = "Tabs.Badge";
|
|
3980
|
-
|
|
3981
|
-
//#region src/components/Tabs/Trigger/TabsIcon.tsx
|
|
3915
|
+
// src/components/Tabs/Trigger/TabsIcon.tsx
|
|
3982
3916
|
var yi = ({ children: e, className: t }) => /* @__PURE__ */ g("span", {
|
|
3983
3917
|
className: J(_i.icon, t),
|
|
3984
3918
|
"aria-hidden": "true",
|
|
3985
3919
|
children: e
|
|
3986
3920
|
});
|
|
3987
3921
|
yi.displayName = "Tabs.Icon";
|
|
3988
|
-
|
|
3989
|
-
//#region src/components/Tabs/Trigger/TabsTrigger.tsx
|
|
3922
|
+
// src/components/Tabs/Trigger/TabsTrigger.tsx
|
|
3990
3923
|
var bi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c = !1, icon: l, badge: u, description: d, onClick: f, onKeyDown: p, ...m }, v) => {
|
|
3991
3924
|
let { value: y, focusedValue: b, setValue: x, setFocusedValue: S, mode: C, orientation: w, variant: T, size: E, disabled: D, registerTrigger: O, onTriggerKeyDown: k, getTriggerId: A, getContentId: j } = ri(), M = D || s, N = y === t, P = b === t || !b && N, F = c && a(r) ? r : void 0, I = F ? F.props.children : r, L = e.toArray(I), R = L.some((e) => a(e) && e.type.displayName === "Tabs.Icon"), z = !!l, B = (z || R) && I == null;
|
|
3992
3925
|
process.env.NODE_ENV !== "production" && z && R && console.warn(`Tabs.Trigger value "${t}" received both icon and Tabs.Icon. Tabs.Icon takes precedence.`);
|
|
@@ -4088,8 +4021,7 @@ var bi = i(({ value: t, children: r, className: i, disabled: s = !1, asChild: c
|
|
|
4088
4021
|
}));
|
|
4089
4022
|
});
|
|
4090
4023
|
bi.displayName = "Tabs.Trigger";
|
|
4091
|
-
|
|
4092
|
-
//#region src/components/Tabs/Tabs.tsx
|
|
4024
|
+
// src/components/Tabs/Tabs.tsx
|
|
4093
4025
|
var xi = Object.assign(gi, {
|
|
4094
4026
|
List: di,
|
|
4095
4027
|
Trigger: bi,
|
|
@@ -4099,8 +4031,7 @@ var xi = Object.assign(gi, {
|
|
|
4099
4031
|
Badge: vi
|
|
4100
4032
|
});
|
|
4101
4033
|
xi.displayName = "Tabs";
|
|
4102
|
-
|
|
4103
|
-
//#region src/components/Tooltip/internal/composeEventHandlers.ts
|
|
4034
|
+
// src/components/Tooltip/internal/composeEventHandlers.ts
|
|
4104
4035
|
function Si(e, t) {
|
|
4105
4036
|
return (n) => {
|
|
4106
4037
|
e?.(n), n.defaultPrevented || t?.(n);
|
|
@@ -4113,8 +4044,7 @@ function Ci(...e) {
|
|
|
4113
4044
|
});
|
|
4114
4045
|
};
|
|
4115
4046
|
}
|
|
4116
|
-
|
|
4117
|
-
//#region src/components/Tooltip/internal/TooltipContext.tsx
|
|
4047
|
+
// src/components/Tooltip/internal/TooltipContext.tsx
|
|
4118
4048
|
var wi = r(null), Ti = r({
|
|
4119
4049
|
delay: {
|
|
4120
4050
|
open: 300,
|
|
@@ -4185,8 +4115,7 @@ function Mi() {
|
|
|
4185
4115
|
}
|
|
4186
4116
|
});
|
|
4187
4117
|
}
|
|
4188
|
-
|
|
4189
|
-
//#region src/components/Tooltip/internal/useTooltipDelay.ts
|
|
4118
|
+
// src/components/Tooltip/internal/useTooltipDelay.ts
|
|
4190
4119
|
function Ni(e, t) {
|
|
4191
4120
|
let n = ki();
|
|
4192
4121
|
return e == null ? n.delay : typeof e == "number" ? {
|
|
@@ -4197,8 +4126,7 @@ function Ni(e, t) {
|
|
|
4197
4126
|
close: e.close ?? n.delay.close
|
|
4198
4127
|
};
|
|
4199
4128
|
}
|
|
4200
|
-
|
|
4201
|
-
//#region src/components/Tooltip/internal/useTooltipInteractions.ts
|
|
4129
|
+
// src/components/Tooltip/internal/useTooltipInteractions.ts
|
|
4202
4130
|
function Pi({ context: e, delay: t, disabled: n, interactive: r }) {
|
|
4203
4131
|
let i = re(e, {
|
|
4204
4132
|
delay: t,
|
|
@@ -4208,8 +4136,7 @@ function Pi({ context: e, delay: t, disabled: n, interactive: r }) {
|
|
|
4208
4136
|
}), a = K(e, { enabled: !n });
|
|
4209
4137
|
return q([i, a]);
|
|
4210
4138
|
}
|
|
4211
|
-
|
|
4212
|
-
//#region src/components/Tooltip/internal/useTooltipPosition.ts
|
|
4139
|
+
// src/components/Tooltip/internal/useTooltipPosition.ts
|
|
4213
4140
|
function Fi({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions: i, matchTriggerWidth: a }) {
|
|
4214
4141
|
let o = f(null), s = ft({
|
|
4215
4142
|
open: e,
|
|
@@ -4227,8 +4154,7 @@ function Fi({ open: e, onOpenChange: t, placement: n, offset: r, avoidCollisions
|
|
|
4227
4154
|
arrowY: s.middlewareData.arrow?.y
|
|
4228
4155
|
};
|
|
4229
4156
|
}
|
|
4230
|
-
|
|
4231
|
-
//#region src/components/Tooltip/Root/TooltipRoot.tsx
|
|
4157
|
+
// src/components/Tooltip/Root/TooltipRoot.tsx
|
|
4232
4158
|
var Ii = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, placement: i = "top", offset: a = 8, delay: o, skipDelay: s, disabled: c = !1, interactive: u = !1, avoidCollisions: d = !0, matchTriggerWidth: p = !1 }) => {
|
|
4233
4159
|
let m = `${l()}-content`, h = f(null), _ = f(null), [v, y] = bt({
|
|
4234
4160
|
value: t,
|
|
@@ -4283,8 +4209,7 @@ var Ii = ({ children: e, open: t, defaultOpen: n = !1, onOpenChange: r, placemen
|
|
|
4283
4209
|
});
|
|
4284
4210
|
};
|
|
4285
4211
|
Ii.displayName = "Tooltip.Root";
|
|
4286
|
-
|
|
4287
|
-
//#region src/components/Tooltip/Trigger/TooltipTrigger.tsx
|
|
4212
|
+
// src/components/Tooltip/Trigger/TooltipTrigger.tsx
|
|
4288
4213
|
var Li = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...o }) => {
|
|
4289
4214
|
let s = Oi(), c = e && a(t) ? t : void 0, l = s.disabled || r || c?.props.disabled, u = s.getTriggerProps({
|
|
4290
4215
|
...o,
|
|
@@ -4310,8 +4235,7 @@ var Li = ({ asChild: e = !1, children: t, disabled: r = !1, className: i, ...o }
|
|
|
4310
4235
|
});
|
|
4311
4236
|
};
|
|
4312
4237
|
Li.displayName = "Tooltip.Trigger";
|
|
4313
|
-
|
|
4314
|
-
//#region src/components/Tooltip/Tooltip.tsx
|
|
4238
|
+
// src/components/Tooltip/Tooltip.tsx
|
|
4315
4239
|
var Ri = Object.assign(Ii, {
|
|
4316
4240
|
Trigger: Li,
|
|
4317
4241
|
Content: ji,
|
|
@@ -4813,8 +4737,7 @@ var Zi = {
|
|
|
4813
4737
|
root: "_root_tczcc_1",
|
|
4814
4738
|
thumb: "_thumb_tczcc_54"
|
|
4815
4739
|
};
|
|
4816
|
-
|
|
4817
|
-
//#region src/primitives/Switch/Switch.tsx
|
|
4740
|
+
// src/primitives/Switch/Switch.tsx
|
|
4818
4741
|
function Qi({ accessibilityLabel: e = "Switch", checked: t, defaultChecked: n = !1, disabled: r = !1, required: i = !1, invalid: a = !1, onCheckedChange: o }) {
|
|
4819
4742
|
let [s, c] = p(n), l = t !== void 0, u = l ? t : s;
|
|
4820
4743
|
return /* @__PURE__ */ g("button", {
|
|
@@ -4888,8 +4811,7 @@ var $i = {
|
|
|
4888
4811
|
});
|
|
4889
4812
|
});
|
|
4890
4813
|
ea.displayName = "Textarea";
|
|
4891
|
-
|
|
4892
|
-
//#region src/theme/ThemeContext.ts
|
|
4814
|
+
// src/theme/ThemeContext.ts
|
|
4893
4815
|
var ta = r(null), na = (e) => e === "highContrast" ? "high-contrast" : e, ra = ({ theme: e, defaultTheme: t = "light", onThemeChange: n, syncDocument: r = !0, children: i }) => {
|
|
4894
4816
|
let [a, o] = bt({
|
|
4895
4817
|
value: e,
|
|
@@ -4916,12 +4838,10 @@ var ta = r(null), na = (e) => e === "highContrast" ? "high-contrast" : e, ra = (
|
|
|
4916
4838
|
});
|
|
4917
4839
|
};
|
|
4918
4840
|
ra.displayName = "ThemeProvider";
|
|
4919
|
-
|
|
4920
|
-
//#region src/theme/useTheme.ts
|
|
4841
|
+
// src/theme/useTheme.ts
|
|
4921
4842
|
function ia() {
|
|
4922
4843
|
let e = s(ta);
|
|
4923
4844
|
if (!e) throw Error("useTheme must be used within ThemeProvider.");
|
|
4924
4845
|
return e;
|
|
4925
4846
|
}
|
|
4926
|
-
//#endregion
|
|
4927
4847
|
export { pe as Accordion, Bi as Button, Gi as Checkbox, Zt as Dropdown, Jr as FormField, Xi as Input, Tn as Modal, Wn as Popover, Ot as Portal, Dt as PortalProvider, Xn as Radio, ar as RadioGroup, ti as Select, Qi as Switch, xi as Tabs, ea as Textarea, ra as ThemeProvider, Ri as Tooltip, ia as useTheme };
|