twenty-ui 2.52.0 → 2.54.0
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/{AllIcons-fCCVOqoJ.js → AllIcons-B9FfQJ70.js} +1 -1
- package/dist/{Button-Dd8cNsn1.js → Button-By-nG5vV.js} +1 -1
- package/dist/{Button-Du8T-dOv.cjs → Button-C3IE0Kup.cjs} +1 -1
- package/dist/Dropdown-CyEoMEjR.cjs +1 -0
- package/dist/{Dropdown-D3LPyrQI.js → Dropdown-Zdc0J7Bg.js} +53 -52
- package/dist/{ListItem-DR7Xh2WV.js → ListItem-BgRDvHQG.js} +4 -4
- package/dist/{ListItem-g1B--M70.cjs → ListItem-D0WDJG-e.cjs} +1 -1
- package/dist/ListItem.module-BV1vQ5hr.js +34 -0
- package/dist/ListItem.module-Cw0dbXxo.cjs +1 -0
- package/dist/{OverflowingTextWithTooltip-Cky5WlIk.js → OverflowingTextWithTooltip-CAQ-5aUp.js} +34 -33
- package/dist/OverflowingTextWithTooltip-CuWHF8_e.cjs +1 -0
- package/dist/{ProgressBar-BO0MkswY.js → ProgressBar-B_QvBWbI.js} +12 -12
- package/dist/{ProgressBar-BG38LPgC.cjs → ProgressBar-km29TA-7.cjs} +1 -1
- package/dist/Radio-DUQ6MLGc.cjs +1 -0
- package/dist/Radio-rURvQ923.js +176 -0
- package/dist/Shortcut-CLngfg7s.cjs +1 -0
- package/dist/Shortcut-CThgcmn_.js +77 -0
- package/dist/TablerIcons-B6BhOlW_.js +463 -0
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/FormFieldRow/FormFieldRow.d.ts +1 -1
- package/dist/components/input/FormFieldRow/types/FormFieldRowProps.d.ts +1 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +2 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +2 -2
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +7 -7
- package/dist/{data-display-VghHkQY5.cjs → data-display-Cg9gF6Cb.cjs} +1 -1
- package/dist/{data-display-CHKKTmH_.js → data-display-CuvXSBLo.js} +90 -90
- package/dist/{data-display-B7beM2yK.js → data-display-DKSUI3GC.js} +43 -43
- package/dist/data-display-DlmWaxYb.cjs +1 -0
- package/dist/{feedback-3S9S-Xi9.cjs → feedback-Cvmm1EZX.cjs} +1 -1
- package/dist/{feedback-DHATp8in.js → feedback-DFTvn5aL.js} +66 -66
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-C3fz8p3W.js → icon-BlUO7C4w.js} +2 -2
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +491 -490
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +643 -641
- package/dist/{input-jkwxjdtI.js → input-BIUZSrhq.js} +123 -122
- package/dist/input-CX8QPMDn.cjs +1 -0
- package/dist/{input-BLU0vrJM.js → input-Clzu-UFH.js} +538 -536
- package/dist/input-E1x0D2jA.cjs +1 -0
- package/dist/{layout-4nLOjbJA.js → layout-4p7UQD7l.js} +29 -28
- package/dist/{layout-DEoY3Qd0.cjs → layout-DHW99Ejj.cjs} +1 -1
- package/dist/{navigation-iP54gZTV.js → navigation-4RI9GlzA.js} +5 -5
- package/dist/{navigation-CSSOuhFm.cjs → navigation-B9jOHv99.cjs} +1 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +1 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +5 -5
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +1 -1
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +3 -3
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +9 -9
- package/dist/{settings-BmsLbd-g.js → settings-2ZhNkDgW.js} +1 -1
- package/dist/{settings-DGwyi63i.cjs → settings-DR3dpWzy.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{typography-DeFnsH3k.cjs → typography-B4hug-TZ.cjs} +1 -1
- package/dist/{typography-sorTYmvG.js → typography-jl1UzvVu.js} +2 -2
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/internal/formatCssLength.d.ts +1 -0
- package/dist/utilities/utils/getAvatarInitial.d.ts +1 -0
- package/dist/{utilities-D0KcLLtO.js → utilities-E91ftFp_.js} +16 -15
- package/dist/utilities-YhvQ2XFb.cjs +1 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +18 -17
- package/package.json +2 -2
- package/dist/Dropdown-h5-yIsU7.cjs +0 -1
- package/dist/ListItem.module-B31VK9XZ.js +0 -34
- package/dist/ListItem.module-DiUK6-0Z.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-Dmsmy-9g.cjs +0 -1
- package/dist/Radio-BK47Ig6J.cjs +0 -1
- package/dist/Radio-WuoC3hJ5.js +0 -175
- package/dist/Shortcut-CbbRd1uM.cjs +0 -1
- package/dist/Shortcut-YMhkp7f6.js +0 -73
- package/dist/TablerIcons-CqzhliLC.js +0 -462
- package/dist/data-display-C3Q_8G-N.cjs +0 -1
- package/dist/input-BLUZOGq8.cjs +0 -1
- package/dist/input-DRIIJ4Zd.cjs +0 -1
- package/dist/primitives/data-display/Avatar/internal/getAvatarInitial.d.ts +0 -1
- package/dist/utilities-Bfnz_GAC.cjs +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as a } from "./isDefined-fMi6eQ4r.js";
|
|
2
2
|
import { t as We } from "./isRenderableSlot-DT_depzM.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Ec as ut, Ot as pt, Tt as ft, kt as mt } from "./TablerIcons-B6BhOlW_.js";
|
|
4
4
|
import { t as ne } from "./doNotTranslate-BSVT8Xyd.js";
|
|
5
5
|
import { t as Z } from "./mergeClassNames-ClFMR1v0.js";
|
|
6
6
|
import { t as gt } from "./preventDismissingClickActivation-BQFMKRey.js";
|
|
7
|
-
import { r as ze, t as wt } from "./Button-
|
|
7
|
+
import { r as ze, t as wt } from "./Button-By-nG5vV.js";
|
|
8
8
|
import { t as ht } from "./Tooltip-CT9YCDaV.js";
|
|
9
|
-
import { r as He } from "./OverflowingTextWithTooltip-
|
|
10
|
-
import { t as ve } from "./ListItem.module-
|
|
11
|
-
import { t as Ee } from "./ListItem-
|
|
9
|
+
import { r as He } from "./OverflowingTextWithTooltip-CAQ-5aUp.js";
|
|
10
|
+
import { t as ve } from "./ListItem.module-BV1vQ5hr.js";
|
|
11
|
+
import { t as Ee } from "./ListItem-BgRDvHQG.js";
|
|
12
12
|
import { t as oe } from "./Popover-DhFCYRtv.js";
|
|
13
13
|
import { t as vt } from "./Input-BKRR1xlO.js";
|
|
14
14
|
import { useRender as ue } from "@base-ui/react/use-render";
|
|
15
15
|
import { isBoolean as bt, isFunction as yt, isNonEmptyString as ye, isPositiveInteger as $e, isUndefined as be } from "@sniptt/guards";
|
|
16
|
-
import { clsx as
|
|
16
|
+
import { clsx as U } from "clsx";
|
|
17
17
|
import { Fragment as Tt, createContext as Se, isValidElement as Dt, useCallback as J, useContext as pe, useEffect as It, useId as Te, useLayoutEffect as fe, useRef as Ce, useState as M } from "react";
|
|
18
18
|
import { Fragment as _t, jsx as u, jsxs as ee } from "react/jsx-runtime";
|
|
19
19
|
import { Button as Ye } from "@base-ui/react/button";
|
|
@@ -51,7 +51,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
51
51
|
disabled: r
|
|
52
52
|
}
|
|
53
53
|
}), Oe = ({ nativeButton: e, renderProps: t }) => e && "disabled" in t && bt(t.disabled) ? t.disabled : void 0, zt = "[data-dropdown-item]", Qe = ({ actions: e, actionsVisibility: t = "hover", color: r = "neutral", selected: o = !1, focused: i = !1, indicator: c = "none", disabled: s = !1, hasSubmenu: d = !1, children: n }) => /* @__PURE__ */ ee("div", {
|
|
54
|
-
className:
|
|
54
|
+
className: U(ve.root, O.itemWithActions),
|
|
55
55
|
role: "none",
|
|
56
56
|
"data-actions-visibility": t,
|
|
57
57
|
"data-color": r,
|
|
@@ -65,15 +65,15 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
65
65
|
children: [
|
|
66
66
|
n,
|
|
67
67
|
/* @__PURE__ */ u("span", {
|
|
68
|
-
className:
|
|
68
|
+
className: U(ve.actions, O.itemActions),
|
|
69
69
|
children: e
|
|
70
70
|
}),
|
|
71
71
|
c === "check" && o && /* @__PURE__ */ u(ft, {
|
|
72
|
-
className:
|
|
72
|
+
className: U(ve.checkIndicator, O.itemDecoration),
|
|
73
73
|
"aria-hidden": !0
|
|
74
74
|
}),
|
|
75
75
|
d && /* @__PURE__ */ u(mt, {
|
|
76
|
-
className:
|
|
76
|
+
className: U(ve.submenuIcon, O.itemDecoration),
|
|
77
77
|
"aria-hidden": !0
|
|
78
78
|
})
|
|
79
79
|
]
|
|
@@ -125,11 +125,12 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
125
125
|
if (a(R)) {
|
|
126
126
|
const A = I.currentTarget.closest("[data-dropdown-content]");
|
|
127
127
|
if (!a(A)) return;
|
|
128
|
+
const G = ge(A).indexOf(I.currentTarget);
|
|
128
129
|
b({
|
|
129
130
|
id: R,
|
|
130
131
|
trigger: {
|
|
131
132
|
id: N,
|
|
132
|
-
index:
|
|
133
|
+
index: G,
|
|
133
134
|
page: R,
|
|
134
135
|
label: ke(I.currentTarget)
|
|
135
136
|
}
|
|
@@ -150,7 +151,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
150
151
|
render: w,
|
|
151
152
|
disabled: A
|
|
152
153
|
}),
|
|
153
|
-
className:
|
|
154
|
+
className: U(I.className, C && O.itemWithActionsPrimary),
|
|
154
155
|
disabled: T,
|
|
155
156
|
color: e,
|
|
156
157
|
startIcon: t,
|
|
@@ -177,10 +178,10 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
177
178
|
const { goBack: i, canGoBack: c } = F();
|
|
178
179
|
return /* @__PURE__ */ u(Ze, {
|
|
179
180
|
...o,
|
|
180
|
-
className:
|
|
181
|
+
className: U(O.back, t),
|
|
181
182
|
"data-dropdown-back": "",
|
|
182
183
|
disabled: o.disabled || !c,
|
|
183
|
-
startIcon: /* @__PURE__ */ u(
|
|
184
|
+
startIcon: /* @__PURE__ */ u(pt, { className: O.backIcon }),
|
|
184
185
|
closeOnClick: !1,
|
|
185
186
|
onClick: (s) => {
|
|
186
187
|
r?.(s), !s.defaultPrevented && i();
|
|
@@ -230,7 +231,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
230
231
|
render: e ?? /* @__PURE__ */ u(er, {
|
|
231
232
|
size: "sm",
|
|
232
233
|
"aria-label": r,
|
|
233
|
-
children: t ?? /* @__PURE__ */ u(
|
|
234
|
+
children: t ?? /* @__PURE__ */ u(ut, {})
|
|
234
235
|
}),
|
|
235
236
|
children: a(e) ? t : void 0
|
|
236
237
|
}), rr = Se(void 0), ce = () => null, or = {
|
|
@@ -489,7 +490,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
489
490
|
a(x) && (n.preventDefault(), x.focus());
|
|
490
491
|
};
|
|
491
492
|
}, mr = ({ side: e, align: t = "start", sideOffset: r = 0, alignOffset: o, anchor: i, collisionPadding: c, container: s, keepMounted: d, width: n = 200, className: l, style: p, render: w, children: T, initialFocus: g, finalFocus: f, onKeyDown: _, onFocus: R, onInput: v, onClick: m, onMouseDown: S, onPointerDown: h, "aria-label": b, "aria-labelledby": k, ref: N, ...L }) => {
|
|
492
|
-
const B = F(), { type: C, isPageActive: P, sessionId: x, isSubmenu: I, rowFocus: A, initialFocusEdge:
|
|
493
|
+
const B = F(), { type: C, isPageActive: P, sessionId: x, isSubmenu: I, rowFocus: A, initialFocusEdge: G, focusOnOpen: K, triggerId: H, titleId: te, setSearchTargetId: Q } = B, $ = Ce(null), [ie, Y] = M(null), se = me($, N, Y), z = fr(), re = a(b) ? void 0 : te ?? H;
|
|
493
494
|
return /* @__PURE__ */ ee(_t, { children: [
|
|
494
495
|
/* @__PURE__ */ u(oe.Portal, {
|
|
495
496
|
container: s,
|
|
@@ -521,9 +522,9 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
521
522
|
width: n,
|
|
522
523
|
...yt(p) ? p(y) : p
|
|
523
524
|
}),
|
|
524
|
-
initialFocus: g ?? (() =>
|
|
525
|
+
initialFocus: g ?? (() => K ? a($.current) ? Le({
|
|
525
526
|
content: $.current,
|
|
526
|
-
edge:
|
|
527
|
+
edge: G,
|
|
527
528
|
type: C
|
|
528
529
|
}) : !0 : !1),
|
|
529
530
|
finalFocus: P ? f : !1,
|
|
@@ -570,13 +571,13 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
570
571
|
color: "secondary",
|
|
571
572
|
role: "status",
|
|
572
573
|
"aria-live": "polite",
|
|
573
|
-
className:
|
|
574
|
+
className: U(O.status, t)
|
|
574
575
|
}), wr = ({ render: e, ref: t, className: r, ...o }) => ue({
|
|
575
576
|
render: e,
|
|
576
577
|
ref: t,
|
|
577
578
|
props: {
|
|
578
579
|
...o,
|
|
579
|
-
className:
|
|
580
|
+
className: U(O.header, r)
|
|
580
581
|
}
|
|
581
582
|
}), hr = ({ color: e, className: t, ...r }) => /* @__PURE__ */ u(He, {
|
|
582
583
|
...r,
|
|
@@ -586,7 +587,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
586
587
|
role: "status",
|
|
587
588
|
"aria-live": "polite",
|
|
588
589
|
"aria-busy": "true",
|
|
589
|
-
className:
|
|
590
|
+
className: U(O.status, t)
|
|
590
591
|
}), vr = ({ render: e, ref: t, state: r, ...o }) => ue({
|
|
591
592
|
render: e,
|
|
592
593
|
ref: t,
|
|
@@ -611,9 +612,9 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
611
612
|
selection: C,
|
|
612
613
|
value: e,
|
|
613
614
|
standaloneSelected: t
|
|
614
|
-
}), A = k === "menu",
|
|
615
|
+
}), A = k === "menu", G = k === "picker" && P, K = a(I), H = !A && !G && (m || b.role === "button"), te = !A && !G && !H && K && I, Q = yr({
|
|
615
616
|
type: k,
|
|
616
|
-
hasSelectionState:
|
|
617
|
+
hasSelectionState: K,
|
|
617
618
|
hasSelectionOwner: P,
|
|
618
619
|
multiple: x,
|
|
619
620
|
role: b.role
|
|
@@ -623,40 +624,40 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
623
624
|
}) ?? ie, se = Fe({
|
|
624
625
|
id: Y,
|
|
625
626
|
disabled: v
|
|
626
|
-
}), z = We(g), re = B === Y, y = r ?? (
|
|
627
|
+
}), z = We(g), re = B === Y, y = r ?? (K ? $ : "none"), V = z && y === "check", we = /* @__PURE__ */ u(Ye, {
|
|
627
628
|
...b,
|
|
628
629
|
id: Y,
|
|
629
630
|
disabled: v,
|
|
630
631
|
nativeButton: m,
|
|
631
632
|
role: Q,
|
|
632
|
-
"aria-checked": A &&
|
|
633
|
-
"aria-selected":
|
|
634
|
-
"aria-pressed": H &&
|
|
633
|
+
"aria-checked": A && K ? I : void 0,
|
|
634
|
+
"aria-selected": G ? I : void 0,
|
|
635
|
+
"aria-pressed": H && K ? I : void 0,
|
|
635
636
|
"aria-current": te ? "true" : void 0,
|
|
636
637
|
tabIndex: se.tabIndex,
|
|
637
638
|
"data-dropdown-item": "",
|
|
638
639
|
"data-dropdown-option-item": "",
|
|
639
|
-
onClick: (
|
|
640
|
-
if (S?.(
|
|
640
|
+
onClick: (q) => {
|
|
641
|
+
if (S?.(q), q.defaultPrevented) return;
|
|
641
642
|
const j = br({
|
|
642
643
|
event: rt.getEvent({
|
|
643
|
-
item:
|
|
644
|
-
event:
|
|
644
|
+
item: q.currentTarget,
|
|
645
|
+
event: q.nativeEvent
|
|
645
646
|
}),
|
|
646
|
-
trigger:
|
|
647
|
+
trigger: q.currentTarget
|
|
647
648
|
});
|
|
648
|
-
o?.(j), !(j.isCanceled ||
|
|
649
|
+
o?.(j), !(j.isCanceled || q.defaultPrevented) && (P && C.select({
|
|
649
650
|
value: e,
|
|
650
651
|
eventDetails: j
|
|
651
|
-
}), !(j.isCanceled ||
|
|
652
|
+
}), !(j.isCanceled || q.defaultPrevented) && (i ?? (P ? C.closeOnSelect : !x)) && L());
|
|
652
653
|
},
|
|
653
|
-
render: (
|
|
654
|
+
render: (q) => {
|
|
654
655
|
const j = Oe({
|
|
655
656
|
nativeButton: m,
|
|
656
|
-
renderProps:
|
|
657
|
+
renderProps: q
|
|
657
658
|
});
|
|
658
659
|
return /* @__PURE__ */ u(Ee, {
|
|
659
|
-
...
|
|
660
|
+
...q,
|
|
660
661
|
render: /* @__PURE__ */ u(vr, {
|
|
661
662
|
render: R,
|
|
662
663
|
disabled: j,
|
|
@@ -666,7 +667,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
666
667
|
disabled: v
|
|
667
668
|
}
|
|
668
669
|
}),
|
|
669
|
-
className: q
|
|
670
|
+
className: U(q.className, z && O.itemWithActionsPrimary),
|
|
670
671
|
disabled: v,
|
|
671
672
|
selected: I,
|
|
672
673
|
focused: re,
|
|
@@ -769,8 +770,8 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
769
770
|
...E,
|
|
770
771
|
focusRequest: D
|
|
771
772
|
});
|
|
772
|
-
}, []), [I, A] = M(), [
|
|
773
|
-
!S && v && !a(r) && m(!1), (Ge || Ke) && k(h), Ge && (L(N + 1), P({ history: [{ id: n }] }), A(void 0), te(void 0),
|
|
773
|
+
}, []), [I, A] = M(), [G, K] = M(), [H, te] = M(), Q = B[B.length - 1], $ = Q?.id, [ie, Y] = M("first"), [se, z] = M(!0), [re, y] = M(), [V, we] = Ve(), [q, j] = Ve(), Ge = h && !b, Ke = !h && b;
|
|
774
|
+
!S && v && !a(r) && m(!1), (Ge || Ke) && k(h), Ge && (L(N + 1), P({ history: [{ id: n }] }), A(void 0), te(void 0), K(void 0)), Ke && (Y("first"), z(!0), y(void 0));
|
|
774
775
|
const he = (D) => {
|
|
775
776
|
a(r) || m(D), i?.(D);
|
|
776
777
|
}, qe = (D) => {
|
|
@@ -862,15 +863,15 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
862
863
|
isSubmenu: l,
|
|
863
864
|
parentType: p?.type,
|
|
864
865
|
rowFocus: {
|
|
865
|
-
rowIds:
|
|
866
|
+
rowIds: G,
|
|
866
867
|
tabStopRowId: Er({
|
|
867
|
-
rowIds:
|
|
868
|
+
rowIds: G,
|
|
868
869
|
focusedRowId: H
|
|
869
870
|
}),
|
|
870
871
|
focusRow: te
|
|
871
872
|
},
|
|
872
873
|
parentRowFocus: p?.rowFocus,
|
|
873
|
-
setRowIds:
|
|
874
|
+
setRowIds: K,
|
|
874
875
|
pageId: $,
|
|
875
876
|
pageFocusRequest: C,
|
|
876
877
|
setPageFocusRequest: x,
|
|
@@ -890,7 +891,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
890
891
|
setSearchTargetId: y,
|
|
891
892
|
triggerId: V,
|
|
892
893
|
registerTrigger: we,
|
|
893
|
-
titleId:
|
|
894
|
+
titleId: q,
|
|
894
895
|
registerTitle: j
|
|
895
896
|
},
|
|
896
897
|
children: [/* @__PURE__ */ u(Ar, {
|
|
@@ -952,7 +953,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
952
953
|
...o,
|
|
953
954
|
...a(d) && { gridTemplateColumns: `repeat(${d}, minmax(0, 1fr))` }
|
|
954
955
|
},
|
|
955
|
-
className:
|
|
956
|
+
className: U(O.section, i),
|
|
956
957
|
children: [a(e) && /* @__PURE__ */ u(xr, {
|
|
957
958
|
"data-dropdown-section-label": "",
|
|
958
959
|
children: e
|
|
@@ -1008,7 +1009,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
1008
1009
|
props: {
|
|
1009
1010
|
...w,
|
|
1010
1011
|
id: v,
|
|
1011
|
-
className:
|
|
1012
|
+
className: U(O.selectionGroup, l),
|
|
1012
1013
|
role: T === "picker" ? "listbox" : "group",
|
|
1013
1014
|
"aria-multiselectable": T === "picker" ? r : void 0,
|
|
1014
1015
|
children: p
|
|
@@ -1030,7 +1031,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
1030
1031
|
...t,
|
|
1031
1032
|
role: "separator",
|
|
1032
1033
|
"data-dropdown-separator": "",
|
|
1033
|
-
className:
|
|
1034
|
+
className: U(O.separator, e)
|
|
1034
1035
|
}), Kr = ({ type: e = "menu", ...t }) => /* @__PURE__ */ u(at, {
|
|
1035
1036
|
...t,
|
|
1036
1037
|
type: e,
|
|
@@ -1060,10 +1061,10 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
1060
1061
|
"data-dropdown-item": "",
|
|
1061
1062
|
onKeyDown: (A) => {
|
|
1062
1063
|
if (g?.(A), A.defaultPrevented || p) return;
|
|
1063
|
-
const
|
|
1064
|
-
if (A.key ===
|
|
1064
|
+
const G = ne(v === "rtl" ? "ArrowLeft" : "ArrowRight");
|
|
1065
|
+
if (A.key === G) {
|
|
1065
1066
|
A.preventDefault(), A.stopPropagation(), N(!0);
|
|
1066
|
-
const
|
|
1067
|
+
const K = A.currentTarget.getAttribute("aria-controls"), H = a(K) ? A.currentTarget.ownerDocument.getElementById(K) : null;
|
|
1067
1068
|
if (b && a(H)) {
|
|
1068
1069
|
Le({
|
|
1069
1070
|
content: H,
|
|
@@ -1075,7 +1076,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
1075
1076
|
}
|
|
1076
1077
|
},
|
|
1077
1078
|
render: (A) => {
|
|
1078
|
-
const
|
|
1079
|
+
const G = Oe({
|
|
1079
1080
|
nativeButton: w,
|
|
1080
1081
|
renderProps: A
|
|
1081
1082
|
});
|
|
@@ -1083,7 +1084,7 @@ var Et = "_content_nig04_1", St = "_inactivePositioner_nig04_13", Ct = "_page_ni
|
|
|
1083
1084
|
...A,
|
|
1084
1085
|
render: /* @__PURE__ */ u(Je, {
|
|
1085
1086
|
render: l,
|
|
1086
|
-
disabled:
|
|
1087
|
+
disabled: G
|
|
1087
1088
|
}),
|
|
1088
1089
|
disabled: p,
|
|
1089
1090
|
color: e,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as j } from "./isDefined-fMi6eQ4r.js";
|
|
2
2
|
import { t as n } from "./isRenderableSlot-DT_depzM.js";
|
|
3
|
-
import { Tt as k, kt as q } from "./TablerIcons-
|
|
4
|
-
import { t as y } from "./Shortcut-
|
|
5
|
-
import { t as F } from "./OverflowingTextWithTooltip-
|
|
6
|
-
import { n as t, t as e } from "./ListItem.module-
|
|
3
|
+
import { Tt as k, kt as q } from "./TablerIcons-B6BhOlW_.js";
|
|
4
|
+
import { t as y } from "./Shortcut-CThgcmn_.js";
|
|
5
|
+
import { t as F } from "./OverflowingTextWithTooltip-CAQ-5aUp.js";
|
|
6
|
+
import { n as t, t as e } from "./ListItem.module-BV1vQ5hr.js";
|
|
7
7
|
import { useRender as J } from "@base-ui/react/use-render";
|
|
8
8
|
import { isString as O } from "@sniptt/guards";
|
|
9
9
|
import { clsx as r } from "clsx";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const R=require("./isDefined-DS2Q42p5.cjs"),i=require("./isRenderableSlot-Guryb6Nf.cjs"),D=require("./Shortcut-
|
|
1
|
+
const R=require("./isDefined-DS2Q42p5.cjs"),i=require("./isRenderableSlot-Guryb6Nf.cjs"),D=require("./Shortcut-CLngfg7s.cjs"),w=require("./OverflowingTextWithTooltip-CuWHF8_e.cjs"),e=require("./ListItem.module-Cw0dbXxo.cjs");let T=require("@base-ui/react/use-render"),y=require("@sniptt/guards"),r=require("clsx"),t=require("react/jsx-runtime"),o=require("@tabler/icons-react");var O=({checked:l,disabled:a})=>(0,t.jsx)("span",{"aria-hidden":!0,className:(0,r.clsx)(e.Checkbox_module_default.root,e.Checkbox_module_default.solid,e.Checkbox_module_default.sm,e.Checkbox_module_default.square,e.Checkbox_module_default.accent),"data-checked":l||void 0,"data-disabled":a||void 0,children:l&&(0,t.jsx)("span",{className:e.Checkbox_module_default.indicator,children:(0,t.jsx)(o.IconCheck,{"aria-hidden":!0})})}),W=({color:l="neutral",selected:a=!1,selectionAppearance:I="default",active:j=!1,focused:p=!1,disabled:c=!1,indicator:d="none",startIcon:_,endIcon:m,description:u,descriptionPlacement:s="inline",actions:h,actionsVisibility:L="hover",actionsPlacement:q="auto",shortcut:x,shortcutJoinLabel:k,hasSubmenu:N=!1,className:C,children:n,render:g,ref:v,...S})=>{const f=i.isRenderableSlot(u),b=i.isRenderableSlot(h)?(0,t.jsx)("span",{className:e.ListItem_module_default.actions,children:h}):null;return(0,T.useRender)({render:g,ref:v,state:{color:l,indicator:d,selected:a,active:j,highlighted:p,disabled:c},props:{...S,"data-actions-visibility":L,"data-actions-placement":q,"data-description-placement":s,"data-selection-appearance":I,className:(0,r.clsx)(e.ListItem_module_default.root,C),children:(0,t.jsxs)(t.Fragment,{children:[d==="checkbox"&&(0,t.jsx)(O,{checked:a,disabled:c}),i.isRenderableSlot(_)&&(0,t.jsx)("span",{className:e.ListItem_module_default.startIcon,children:_}),(0,t.jsxs)("span",{className:e.ListItem_module_default.label,children:[(0,t.jsx)("span",{className:e.ListItem_module_default.text,children:(0,y.isString)(n)?(0,t.jsx)(w.OverflowingTextWithTooltip,{text:n}):n}),f&&s!=="end"&&(0,t.jsx)("span",{className:(0,r.clsx)(e.ListItem_module_default.description,s==="inline"&&e.ListItem_module_default.inlineDescription),children:u})]}),f&&s==="end"&&(0,t.jsx)("span",{className:(0,r.clsx)(e.ListItem_module_default.description,e.ListItem_module_default.endDescription),children:u}),s!=="below"&&b,R.isDefined(x)&&(0,t.jsx)(D.Shortcut,{className:e.ListItem_module_default.hotkeys,shortcut:x,sequenceJoinLabel:k}),i.isRenderableSlot(m)&&(0,t.jsx)("span",{className:e.ListItem_module_default.endIcon,children:m}),d==="check"&&a&&(0,t.jsx)(o.IconCheck,{className:e.ListItem_module_default.checkIndicator,"aria-hidden":!0}),N&&(0,t.jsx)(o.IconChevronRight,{className:e.ListItem_module_default.submenuIcon,"aria-hidden":!0}),s==="below"&&b]})}})};Object.defineProperty(exports,"ListItem",{enumerable:!0,get:function(){return W}});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var _ = "_root_xrjjl_1", r = "_solid_xrjjl_23", a = "_outline_xrjjl_27", o = "_soft_xrjjl_31", e = "_sm_xrjjl_36", l = "_md_xrjjl_41", n = "_square_xrjjl_47", t = "_round_xrjjl_52", c = "_accent_xrjjl_58", i = "_success_xrjjl_64", s = "_warning_xrjjl_70", v = "_hoverable_xrjjl_76", j = "_indicator_xrjjl_128", d = "_check_xrjjl_149", p = "_minus_xrjjl_150", w = {
|
|
2
|
+
root: _,
|
|
3
|
+
solid: r,
|
|
4
|
+
outline: a,
|
|
5
|
+
soft: o,
|
|
6
|
+
sm: e,
|
|
7
|
+
md: l,
|
|
8
|
+
square: n,
|
|
9
|
+
round: t,
|
|
10
|
+
accent: c,
|
|
11
|
+
success: i,
|
|
12
|
+
warning: s,
|
|
13
|
+
hoverable: v,
|
|
14
|
+
indicator: j,
|
|
15
|
+
check: d,
|
|
16
|
+
minus: p
|
|
17
|
+
}, x = "_root_fylp5_2", u = "_submenuIcon_fylp5_55", f = "_startIcon_fylp5_59", y = "_endIcon_fylp5_60", m = "_label_fylp5_76", h = "_text_fylp5_86", I = "_description_fylp5_94", b = "_inlineDescription_fylp5_102", k = "_endDescription_fylp5_107", D = "_hotkeys_fylp5_113", g = "_actions_fylp5_119", q = "_checkIndicator_fylp5_144", C = {
|
|
18
|
+
root: x,
|
|
19
|
+
submenuIcon: u,
|
|
20
|
+
startIcon: f,
|
|
21
|
+
endIcon: y,
|
|
22
|
+
label: m,
|
|
23
|
+
text: h,
|
|
24
|
+
description: I,
|
|
25
|
+
inlineDescription: b,
|
|
26
|
+
endDescription: k,
|
|
27
|
+
hotkeys: D,
|
|
28
|
+
actions: g,
|
|
29
|
+
checkIndicator: q
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
w as n,
|
|
33
|
+
C as t
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _="_root_xrjjl_1",r="_solid_xrjjl_23",e="_outline_xrjjl_27",a="_soft_xrjjl_31",t="_sm_xrjjl_36",n="_md_xrjjl_41",o="_square_xrjjl_47",l="_round_xrjjl_52",c="_accent_xrjjl_58",i="_success_xrjjl_64",j="_warning_xrjjl_70",s="_hoverable_xrjjl_76",v="_indicator_xrjjl_128",u="_check_xrjjl_149",d="_minus_xrjjl_150",f={root:_,solid:r,outline:e,soft:a,sm:t,md:n,square:o,round:l,accent:c,success:i,warning:j,hoverable:s,indicator:v,check:u,minus:d},p="_root_fylp5_2",x="_submenuIcon_fylp5_55",m="_startIcon_fylp5_59",y="_endIcon_fylp5_60",b="_label_fylp5_76",h="_text_fylp5_86",I="_description_fylp5_94",k="_inlineDescription_fylp5_102",g="_endDescription_fylp5_107",D="_hotkeys_fylp5_113",q="_actions_fylp5_119",w="_checkIndicator_fylp5_144",C={root:p,submenuIcon:x,startIcon:m,endIcon:y,label:b,text:h,description:I,inlineDescription:k,endDescription:g,hotkeys:D,actions:q,checkIndicator:w};Object.defineProperty(exports,"Checkbox_module_default",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"ListItem_module_default",{enumerable:!0,get:function(){return C}});
|
package/dist/{OverflowingTextWithTooltip-Cky5WlIk.js → OverflowingTextWithTooltip-CAQ-5aUp.js}
RENAMED
|
@@ -7,84 +7,85 @@ import { createContext as J, memo as K, useContext as L, useRef as Q, useState a
|
|
|
7
7
|
import { jsx as r, jsxs as U } from "react/jsx-runtime";
|
|
8
8
|
import { mergeProps as V } from "@base-ui/react/merge-props";
|
|
9
9
|
import { useMergedRefs as X } from "@base-ui/utils/useMergedRefs";
|
|
10
|
-
var Y = "_typography_qms7s_1", Z = "_truncate_qms7s_44", $ = "_lineClamp_qms7s_50",
|
|
10
|
+
var Y = "_typography_qms7s_1", Z = "_truncate_qms7s_44", $ = "_lineClamp_qms7s_50", h = {
|
|
11
11
|
typography: Y,
|
|
12
12
|
truncate: Z,
|
|
13
13
|
lineClamp: $
|
|
14
|
-
}, ee = ({ render: t, size: i, weight:
|
|
14
|
+
}, ee = ({ render: t, size: i, weight: p, color: u, truncate: d, lineClamp: o, className: m, style: n, ref: a, ...v }) => {
|
|
15
15
|
const c = s(o) && Number.isInteger(o) && o > 0;
|
|
16
16
|
return G({
|
|
17
17
|
render: t,
|
|
18
18
|
ref: a,
|
|
19
19
|
props: {
|
|
20
|
-
...
|
|
20
|
+
...v,
|
|
21
21
|
"data-size": i,
|
|
22
|
-
"data-weight":
|
|
23
|
-
"data-color":
|
|
24
|
-
className: D(
|
|
22
|
+
"data-weight": p,
|
|
23
|
+
"data-color": u,
|
|
24
|
+
className: D(h.typography, d && h.truncate, c && h.lineClamp, m),
|
|
25
25
|
style: c ? {
|
|
26
26
|
...n,
|
|
27
27
|
"--text-line-clamp": o
|
|
28
28
|
} : n
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
}, te = (t) => s(t) && (t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth), oe = J("measure-on-hover"), re = "_overflowingMultilineText_1fi6s_1", ie = "_overflowingText_1fi6s_24", ne = "_multilineTooltip_1fi6s_45",
|
|
31
|
+
}, te = (t) => s(t) && (t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth), oe = J("measure-on-hover"), re = "_overflowingMultilineText_1fi6s_1", ie = "_overflowingText_1fi6s_24", ne = "_multilineTooltip_1fi6s_45", x = {
|
|
32
32
|
overflowingMultilineText: re,
|
|
33
33
|
overflowingText: ie,
|
|
34
34
|
multilineTooltip: ne
|
|
35
|
-
}, ve = K(function({ text: i, size:
|
|
36
|
-
const
|
|
37
|
-
const e = te(
|
|
35
|
+
}, ve = K(function({ text: i, size: p, weight: u, color: d, isTooltipMultiline: o, truncate: m, lineClamp: n, tooltipContent: a, tooltipDelay: v = 500, tooltipPlace: c = "bottom", alwaysShowTooltip: _ = !1, isFocusable: I = !1, render: k, ref: q, className: j, ...H }) {
|
|
36
|
+
const w = L(oe), O = w === "disabled", g = Q(null), [y, S] = W(!1), [z, C] = W(!1), B = X(g, q), M = () => {
|
|
37
|
+
const e = te(g.current);
|
|
38
38
|
return S(e), e;
|
|
39
|
-
},
|
|
39
|
+
}, b = (e) => {
|
|
40
40
|
if (!e) {
|
|
41
|
-
|
|
41
|
+
C(!1);
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
const f = M();
|
|
45
|
+
C(f || _);
|
|
45
46
|
}, F = (e) => {
|
|
46
47
|
e.stopPropagation(), e.preventDefault();
|
|
47
|
-
},
|
|
48
|
-
...
|
|
48
|
+
}, T = N(a) ? a : N(i) ? i : null, P = s(n), R = /* @__PURE__ */ r(ee, {
|
|
49
|
+
...P ? { lineClamp: n } : { truncate: m ?? !0 },
|
|
49
50
|
dir: "auto",
|
|
50
|
-
"data-content-overflowing":
|
|
51
|
-
className: D(
|
|
51
|
+
"data-content-overflowing": y ? "" : void 0,
|
|
52
|
+
className: D(P ? x.overflowingMultilineText : x.overflowingText, j),
|
|
52
53
|
render: k,
|
|
53
54
|
ref: B,
|
|
54
55
|
...V({
|
|
55
56
|
tabIndex: I ? 0 : void 0,
|
|
56
|
-
...
|
|
57
|
-
onPointerEnter:
|
|
58
|
-
onFocus: () =>
|
|
57
|
+
...O ? {} : {
|
|
58
|
+
onPointerEnter: M,
|
|
59
|
+
onFocus: () => b(!0)
|
|
59
60
|
}
|
|
60
61
|
}, H),
|
|
61
|
-
size:
|
|
62
|
-
weight:
|
|
63
|
-
color:
|
|
62
|
+
size: p,
|
|
63
|
+
weight: u,
|
|
64
|
+
color: d,
|
|
64
65
|
children: i
|
|
65
66
|
});
|
|
66
|
-
return
|
|
67
|
-
open: z && s(
|
|
67
|
+
return O ? R : /* @__PURE__ */ U(l.Root, {
|
|
68
|
+
open: z && s(T),
|
|
68
69
|
onOpenChange: (...e) => {
|
|
69
|
-
const [
|
|
70
|
-
if (!
|
|
70
|
+
const [f, E] = e;
|
|
71
|
+
if (!f && E.reason === "trigger-hover" && g.current?.contains(document.activeElement)) {
|
|
71
72
|
E.cancel();
|
|
72
73
|
return;
|
|
73
74
|
}
|
|
74
|
-
|
|
75
|
+
b(f);
|
|
75
76
|
},
|
|
76
|
-
disabled: !s(
|
|
77
|
+
disabled: !s(T) || w === "measure-on-hover" && !y && !_,
|
|
77
78
|
children: [/* @__PURE__ */ r(l.Trigger, {
|
|
78
|
-
delay:
|
|
79
|
+
delay: v,
|
|
79
80
|
closeOnClick: !1,
|
|
80
|
-
render:
|
|
81
|
+
render: R
|
|
81
82
|
}), /* @__PURE__ */ r(l.Portal, { children: /* @__PURE__ */ r(l.Positioner, {
|
|
82
83
|
sideOffset: 5,
|
|
83
84
|
side: c,
|
|
84
85
|
children: /* @__PURE__ */ r(l.Popup, {
|
|
85
|
-
className: o ?
|
|
86
|
+
className: o ? x.multilineTooltip : void 0,
|
|
86
87
|
onClick: F,
|
|
87
|
-
children: /* @__PURE__ */ r(A, { children:
|
|
88
|
+
children: /* @__PURE__ */ r(A, { children: T })
|
|
88
89
|
})
|
|
89
90
|
}) })]
|
|
90
91
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a=require("./isDefined-DS2Q42p5.cjs"),o=require("./Tooltip-BXeUFCdb.cjs");let J=require("@base-ui/react/use-render"),R=require("@sniptt/guards"),E=require("clsx"),n=require("react"),r=require("react/jsx-runtime"),K=require("@base-ui/react/merge-props"),L=require("@base-ui/utils/useMergedRefs");var Q="_typography_qms7s_1",U="_truncate_qms7s_44",V="_lineClamp_qms7s_50",m={typography:Q,truncate:U,lineClamp:V},N=({render:t,size:l,weight:d,color:p,truncate:g,lineClamp:i,className:_,style:s,ref:u,...v})=>{const c=a.isDefined(i)&&Number.isInteger(i)&&i>0;return(0,J.useRender)({render:t,ref:u,props:{...v,"data-size":l,"data-weight":d,"data-color":p,className:(0,E.clsx)(m.typography,g&&m.truncate,c&&m.lineClamp,_),style:c?{...s,"--text-line-clamp":i}:s}})},X=t=>a.isDefined(t)&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth),W=(0,n.createContext)("measure-on-hover"),Y="_overflowingMultilineText_1fi6s_1",Z="_overflowingText_1fi6s_24",$="_multilineTooltip_1fi6s_45",h={overflowingMultilineText:Y,overflowingText:Z,multilineTooltip:$},ee=(0,n.memo)(function({text:l,size:d,weight:p,color:g,isTooltipMultiline:i,truncate:_,lineClamp:s,tooltipContent:u,tooltipDelay:v=500,tooltipPlace:c="bottom",alwaysShowTooltip:O=!1,isFocusable:I=!1,render:S,ref:k,className:H,...z}){const w=(0,n.useContext)(W),b=w==="disabled",T=(0,n.useRef)(null),[q,B]=(0,n.useState)(!1),[F,y]=(0,n.useState)(!1),A=(0,L.useMergedRefs)(T,k),j=()=>{const e=X(T.current);return B(e),e},D=e=>{if(!e){y(!1);return}const f=j();y(f||O)},G=e=>{e.stopPropagation(),e.preventDefault()},x=(0,R.isNonEmptyString)(u)?u:(0,R.isNonEmptyString)(l)?l:null,M=a.isDefined(s),P=(0,r.jsx)(N,{...M?{lineClamp:s}:{truncate:_??!0},dir:"auto","data-content-overflowing":q?"":void 0,className:(0,E.clsx)(M?h.overflowingMultilineText:h.overflowingText,H),render:S,ref:A,...(0,K.mergeProps)({tabIndex:I?0:void 0,...b?{}:{onPointerEnter:j,onFocus:()=>D(!0)}},z),size:d,weight:p,color:g,children:l});return b?P:(0,r.jsxs)(o.Tooltip.Root,{open:F&&a.isDefined(x),onOpenChange:(...e)=>{const[f,C]=e;if(!f&&C.reason==="trigger-hover"&&T.current?.contains(document.activeElement)){C.cancel();return}D(f)},disabled:!a.isDefined(x)||w==="measure-on-hover"&&!q&&!O,children:[(0,r.jsx)(o.Tooltip.Trigger,{delay:v,closeOnClick:!1,render:P}),(0,r.jsx)(o.Tooltip.Portal,{children:(0,r.jsx)(o.Tooltip.Positioner,{sideOffset:5,side:c,children:(0,r.jsx)(o.Tooltip.Popup,{className:i?h.multilineTooltip:void 0,onClick:G,children:(0,r.jsx)(o.TooltipBody,{children:x})})})})]})});Object.defineProperty(exports,"OverflowingTextTooltipModeContext",{enumerable:!0,get:function(){return W}});Object.defineProperty(exports,"OverflowingTextWithTooltip",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return N}});
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { t as u } from "./isDefined-fMi6eQ4r.js";
|
|
2
2
|
import { t as b } from "./isRenderableSlot-DT_depzM.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Ec as B } from "./TablerIcons-B6BhOlW_.js";
|
|
4
4
|
import { t as N } from "./doNotTranslate-BSVT8Xyd.js";
|
|
5
5
|
import { t as j } from "./mergeClassNames-ClFMR1v0.js";
|
|
6
6
|
import { n as g, t as y } from "./getProgressIndicatorPercentage-ejfaM6XU.js";
|
|
7
|
-
import { t as f } from "./Button-
|
|
7
|
+
import { t as f } from "./Button-By-nG5vV.js";
|
|
8
8
|
import { useRender as k } from "@base-ui/react/use-render";
|
|
9
9
|
import { isFunction as I, isNonEmptyString as C } from "@sniptt/guards";
|
|
10
10
|
import { clsx as P } from "clsx";
|
|
11
11
|
import { Fragment as S, jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
12
|
-
var
|
|
12
|
+
var w = {
|
|
13
13
|
neutral: "gray",
|
|
14
14
|
info: "blue",
|
|
15
15
|
success: "green",
|
|
16
16
|
warning: "orange",
|
|
17
17
|
error: "red"
|
|
18
|
-
},
|
|
18
|
+
}, x = (a) => /* @__PURE__ */ r(f, {
|
|
19
19
|
...a,
|
|
20
20
|
size: "sm",
|
|
21
21
|
variant: "outline",
|
|
22
22
|
color: "inherit"
|
|
23
|
-
}),
|
|
24
|
-
banner:
|
|
25
|
-
icon:
|
|
23
|
+
}), A = "_banner_8yjvn_1", E = "_icon_8yjvn_52", F = "_action_8yjvn_53", T = "_dismissible_8yjvn_59", z = "_closeButton_8yjvn_64", i = {
|
|
24
|
+
banner: A,
|
|
25
|
+
icon: E,
|
|
26
26
|
action: F,
|
|
27
|
-
dismissible:
|
|
28
|
-
closeButton:
|
|
29
|
-
}, O = ({ status: a = "info", variant: l = "solid", color: o =
|
|
27
|
+
dismissible: T,
|
|
28
|
+
closeButton: z
|
|
29
|
+
}, O = ({ status: a = "info", variant: l = "solid", color: o = w[a], icon: s, action: n, onDismiss: t, closeLabel: c = N("Close"), className: d, children: _, render: e, ref: m, ...v }) => k({
|
|
30
30
|
render: e,
|
|
31
31
|
ref: m,
|
|
32
32
|
state: {
|
|
@@ -59,7 +59,7 @@ var T = {
|
|
|
59
59
|
})
|
|
60
60
|
] })
|
|
61
61
|
}
|
|
62
|
-
}), Z = Object.assign(O, { Action:
|
|
62
|
+
}), Z = Object.assign(O, { Action: x }), R = "_bar_o09oi_1", K = "_track_o09oi_17", L = "_indicator_o09oi_23", M = "_progressBarIndeterminate_o09oi_1", p = {
|
|
63
63
|
bar: R,
|
|
64
64
|
track: K,
|
|
65
65
|
indicator: L,
|
|
@@ -94,6 +94,6 @@ var T = {
|
|
|
94
94
|
});
|
|
95
95
|
export {
|
|
96
96
|
Z as n,
|
|
97
|
-
|
|
97
|
+
w as r,
|
|
98
98
|
$ as t
|
|
99
99
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const v=require("./isDefined-DS2Q42p5.cjs"),j=require("./isRenderableSlot-Guryb6Nf.cjs"),p=require("./doNotTranslate-CHE7WmRS.cjs"),h=require("./mergeClassNames-D4lshrT6.cjs"),x=require("./getProgressIndicatorPercentage-Mii9lnYd.cjs"),B=require("./Button-
|
|
1
|
+
const v=require("./isDefined-DS2Q42p5.cjs"),j=require("./isRenderableSlot-Guryb6Nf.cjs"),p=require("./doNotTranslate-CHE7WmRS.cjs"),h=require("./mergeClassNames-D4lshrT6.cjs"),x=require("./getProgressIndicatorPercentage-Mii9lnYd.cjs"),B=require("./Button-C3IE0Kup.cjs");let P=require("@base-ui/react/use-render"),q=require("@sniptt/guards"),N=require("clsx"),e=require("react/jsx-runtime"),y=require("@tabler/icons-react"),m=require("@base-ui/react/progress");var f={neutral:"gray",info:"blue",success:"green",warning:"orange",error:"red"},S=r=>(0,e.jsx)(B.Button,{...r,size:"sm",variant:"outline",color:"inherit"}),C="_banner_8yjvn_1",O="_icon_8yjvn_52",k="_action_8yjvn_53",I="_dismissible_8yjvn_59",T="_closeButton_8yjvn_64",i={banner:C,icon:O,action:k,dismissible:I,closeButton:T},A=({status:r="info",variant:u="solid",color:a=f[r],icon:o,action:t,onDismiss:s,closeLabel:c=p.doNotTranslate("Close"),className:_,children:d,render:n,ref:l,...g})=>(0,P.useRender)({render:n,ref:l,state:{status:r,variant:u,color:a},props:{...g,className:(0,N.clsx)(i.banner,v.isDefined(s)&&i.dismissible,_),children:(0,e.jsxs)(e.Fragment,{children:[j.isRenderableSlot(o)&&(0,e.jsx)("span",{className:i.icon,children:o}),d,j.isRenderableSlot(t)&&(0,e.jsx)("div",{className:i.action,children:t}),v.isDefined(s)&&(0,e.jsx)(B.Button,{type:"button",size:"sm",variant:"ghost",color:"inherit",className:i.closeButton,"aria-label":c,onClick:s,startIcon:(0,e.jsx)(y.IconX,{"aria-hidden":"true"})})]})}}),R=Object.assign(A,{Action:S}),E="_bar_o09oi_1",F="_track_o09oi_17",w="_indicator_o09oi_23",z="_progressBarIndeterminate_o09oi_1",b={bar:E,track:F,indicator:w,progressBarIndeterminate:z},D=({size:r="md",className:u,style:a,children:o,barColor:t,backgroundColor:s="none",withBorderRadius:c=!1,withMinimumFillWidth:_=!0,...d})=>(0,e.jsxs)(m.Progress.Root,{...d,className:h.mergeClassNames(b.bar,u),"data-size":r,"data-with-border-radius":c||void 0,style:n=>({"--progress-bar-background-color":s,...(0,q.isNonEmptyString)(t)?{"--progress-bar-color":t}:{},...(0,q.isFunction)(a)?a(n):a}),children:[(0,e.jsx)(m.Progress.Track,{className:b.track,children:(0,e.jsx)(m.Progress.Indicator,{className:b.indicator,"data-with-border-radius":c||void 0,render:n=>{const l=x.getProgressIndicatorPercentage({width:n.style?.width,fallbackPercentage:0}),g=_&&l>0&&l<100;return(0,e.jsx)("div",{...n,"data-minimum-fill":g||void 0})}})}),o]});Object.defineProperty(exports,"Banner",{enumerable:!0,get:function(){return R}});Object.defineProperty(exports,"FEEDBACK_STATUS_COLORS",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"ProgressBar",{enumerable:!0,get:function(){return D}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const R=require("./theme-BJRNJNPO.cjs"),F=require("./isDefined-DS2Q42p5.cjs"),o=require("./mergeClassNames-D4lshrT6.cjs"),j=require("./Button-C3IE0Kup.cjs"),S=require("./useProvidedTextDirection-PVaoQCLH.cjs"),d=require("./ListItem.module-Cw0dbXxo.cjs"),_=require("./Input-DS19vWhl.cjs");let G=require("@base-ui/react/use-render"),b=require("@sniptt/guards"),i=require("clsx"),t=require("react/jsx-runtime"),a=require("@base-ui/react/select"),c=require("@base-ui/react/number-field"),x=require("@base-ui/react/radio"),I=require("@tabler/icons-react");var A="_trigger_hijh9_1",D="_value_hijh9_12",T="_icon_hijh9_31",w="_positioner_hijh9_42",O="_popup_hijh9_46",y="_item_hijh9_71",B="_indicator_hijh9_75",k="_groupLabel_hijh9_81",$="_separator_hijh9_89",l={trigger:A,value:D,icon:T,positioner:w,popup:O,item:y,indicator:B,groupLabel:k,separator:$},E=({className:e,...r})=>(0,t.jsx)(a.Select.GroupLabel,{...r,className:o.mergeClassNames(l.groupLabel,e)}),U=({className:e,children:r=(0,t.jsx)(I.IconChevronDown,{}),...s})=>(0,t.jsx)(a.Select.Icon,{...s,className:o.mergeClassNames(l.icon,e),children:r}),V=({className:e,...r})=>(0,t.jsx)(a.Select.Item,{"data-color":"neutral","data-indicator":"check",...r,className:o.mergeClassNames((0,i.clsx)(d.ListItem_module_default.root,l.item),e)}),H=({className:e,children:r=(0,t.jsx)(I.IconCheck,{className:d.ListItem_module_default.checkIndicator}),...s})=>(0,t.jsx)(a.Select.ItemIndicator,{...s,className:o.mergeClassNames(l.indicator,e),children:r}),J=({className:e,...r})=>(0,t.jsx)(a.Select.ItemText,{...r,className:o.mergeClassNames((0,i.clsx)(d.ListItem_module_default.label,d.ListItem_module_default.text),e)}),K=({className:e,...r})=>(0,t.jsx)(a.Select.Popup,{...r,className:o.mergeClassNames(l.popup,e)}),M=({container:e,...r})=>{const s=R.useThemeContainer(),u=S.useProvidedTextDirection();return(0,t.jsx)(a.Select.Portal,{dir:u,...r,container:(0,b.isUndefined)(e)?s??void 0:e})},Q=({className:e,...r})=>{const s=S.useProvidedTextDirection();return(0,t.jsx)(a.Select.Positioner,{dir:s,...r,className:o.mergeClassNames(l.positioner,e)})},W=({className:e,...r})=>(0,t.jsx)(a.Select.Separator,{...r,className:o.mergeClassNames(l.separator,e)}),X=({size:e="md",className:r,...s})=>(0,t.jsx)(a.Select.Trigger,{...s,className:o.mergeClassNames((0,i.clsx)(_.Input_module_default.input,_.Input_module_default[e],l.trigger),r)}),Y=({className:e,...r})=>(0,t.jsx)(a.Select.Value,{...r,className:o.mergeClassNames(l.value,e)}),Z=()=>({Root:a.Select.Root,Label:a.Select.Label,Trigger:X,Value:Y,Icon:U,Portal:M,Backdrop:a.Select.Backdrop,Positioner:Q,Popup:K,List:a.Select.List,Item:V,ItemIndicator:H,ItemText:J,Arrow:a.Select.Arrow,ScrollDownArrow:a.Select.ScrollDownArrow,ScrollUpArrow:a.Select.ScrollUpArrow,Group:a.Select.Group,GroupLabel:E,Separator:W}),z=Z(),ee=e=>(0,b.isNumber)(e)?`${e}px`:e,re="_group_mv9ls_1",te="_button_mv9ls_7",N={group:re,button:te},ae=({className:e,...r})=>(0,t.jsx)(c.NumberField.Decrement,{...r,className:o.mergeClassNames((0,i.clsx)(j.Button_module_default.button,N.button),e)}),oe=({className:e,...r})=>(0,t.jsx)(c.NumberField.Group,{...r,className:o.mergeClassNames(N.group,e)}),se=({className:e,...r})=>(0,t.jsx)(c.NumberField.Increment,{...r,className:o.mergeClassNames((0,i.clsx)(j.Button_module_default.button,N.button),e)}),le=({className:e,...r})=>(0,t.jsx)(c.NumberField.Input,{...r,className:o.mergeClassNames(_.Input_module_default.input,e)}),ue={Root:c.NumberField.Root,Group:oe,Input:le,Increment:se,Decrement:ae,ScrubArea:c.NumberField.ScrubArea,ScrubAreaCursor:c.NumberField.ScrubAreaCursor},ce="_root_g72rh_1",ie="_sm_g72rh_30",ne="_md_g72rh_34",me="_startElement_g72rh_38",de="_endElement_g72rh_39",m={root:ce,sm:ie,md:ne,startElement:me,endElement:de},g=e=>F.isDefined(e)&&!(0,b.isBoolean)(e)&&e!=="",_e=({size:e="md",hasFocusRing:r=!0,startElement:s,endElement:u,className:p,children:v,render:C,ref:q,...P})=>{const L=(0,G.useRender)({render:C,ref:q,props:{...P,className:(0,i.clsx)(m.root,m[e],p),"data-focus-ring":r,children:(0,t.jsxs)(t.Fragment,{children:[g(s)&&(0,t.jsx)("span",{className:m.startElement,children:s}),v,g(u)&&(0,t.jsx)("span",{className:m.endElement,children:u})]})}});return(0,t.jsx)(_.InputGroupContext.Provider,{value:{size:e},children:L})},pe="_root_1pdpj_1",ve="_control_1pdpj_18",be="_sm_1pdpj_33",Ne="_md_1pdpj_38",ge="_indicator_1pdpj_49",je="_card_1pdpj_90",Se="_cardContent_1pdpj_111",n={root:pe,control:ve,sm:be,md:Ne,indicator:ge,card:je,cardContent:Se},h=x.Radio.Indicator,f=x.Radio.Root,xe=({children:e,className:r,size:s="sm",variant:u="default",render:p=u==="card"?(0,t.jsx)("div",{}):void 0,...v})=>(0,t.jsxs)(f,{...v,render:p,className:o.mergeClassNames((0,i.clsx)(n.root,n[s],u==="card"&&n.card),r),children:[(0,t.jsx)("span",{className:n.control,"aria-hidden":!0,children:(0,t.jsx)(h,{className:n.indicator})}),u==="card"?(0,t.jsx)("span",{className:n.cardContent,children:e}):e]}),Ie=Object.assign(xe,{Root:f,Indicator:h});Object.defineProperty(exports,"InputGroup",{enumerable:!0,get:function(){return _e}});Object.defineProperty(exports,"NumberField",{enumerable:!0,get:function(){return ue}});Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return Ie}});Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return z}});Object.defineProperty(exports,"Select_module_default",{enumerable:!0,get:function(){return l}});Object.defineProperty(exports,"formatCssLength",{enumerable:!0,get:function(){return ee}});
|