twenty-ui 2.57.0 → 2.58.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/{Dropdown-CWXJOVhy.js → Dropdown-CV8O8IPo.js} +38 -38
- package/dist/{ListItem-mIMpO2Ia.js → ListItem-C9yyYuIT.js} +18 -18
- package/dist/{ProgressBar-ByhC2LPe.js → ProgressBar-BTEZiRUL.js} +10 -10
- package/dist/{Radio-Bg-zmy-1.js → Radio-DdZ07JJK.js} +10 -10
- package/dist/TablerIcons-C9XA-vxC.js +469 -0
- package/dist/TabsTabContent-BWmkx11I.js +39 -0
- package/dist/TabsTabContent-CV8DRReQ.cjs +1 -0
- package/dist/components/data-display.mjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +2 -2
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +2 -2
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +6 -6
- package/dist/{data-display-_j--U7HG.js → data-display-DYTRUIPj.js} +58 -58
- package/dist/{feedback-BPJEugY_.js → feedback-BuqRtaQX.js} +53 -53
- package/dist/icon/components/IconEuStars.d.ts +4 -0
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/index.d.ts +2 -1
- package/dist/icon/provider.mjs +1 -1
- package/dist/{icon-2HTgZZ7x.js → icon-BNFRYgWo.js} +250 -173
- package/dist/icon-zfBrWUrF.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +519 -512
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +659 -652
- package/dist/{input-cZCDLL4-.cjs → input-B9zsrdsB.cjs} +1 -1
- package/dist/{input-BaXuEzOr.js → input-CpFhHo1F.js} +64 -64
- package/dist/{input-BlZ0RHaV.js → input-Dwk_oei3.js} +27 -27
- package/dist/{navigation-CuI3MVOM.cjs → navigation-C_MdtheL.cjs} +1 -1
- package/dist/{navigation-CmTgub0K.js → navigation-D65GGk3w.js} +9 -9
- package/dist/{navigation-B4F-yaFC.js → navigation-D7G0QFK0.js} +17 -16
- package/dist/{navigation-Dqiqv2rb.cjs → navigation-DNB3vhUF.cjs} +1 -1
- package/dist/primitives/feedback.mjs +1 -1
- package/dist/primitives/input.mjs +2 -2
- package/dist/primitives/navigation/Tabs/Tabs.d.ts +1 -1
- package/dist/primitives/navigation/Tabs/internal/TabsTab.d.ts +1 -1
- package/dist/primitives/navigation/Tabs/types/TabsTabProps.d.ts +3 -0
- package/dist/primitives/navigation/Tabs/types/TabsVariant.d.ts +1 -0
- package/dist/primitives/navigation/index.d.ts +1 -0
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +2 -2
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +5 -5
- package/dist/{settings-BSIBOXgt.js → settings-DWFRds1d.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TablerIcons-B6BhOlW_.js +0 -463
- package/dist/TabsTabContent-6rkARU9F.cjs +0 -1
- package/dist/TabsTabContent-DPkLTBi2.js +0 -39
- package/dist/icon-CJchVntY.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c as xr, r as kt } from "./theme-B1jMC8En.js";
|
|
2
2
|
import { t as S } from "./isDefined-fMi6eQ4r.js";
|
|
3
3
|
import { t as pe } from "./isRenderableSlot-DT_depzM.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Ac as Dr, At as Or, Go as Ar, Mc as Hr, Pa as $r, ac as Mr, jt as Fr, kt as tt, mo as Vr, pc as Lr, ro as zr, zt as Rt } from "./TablerIcons-C9XA-vxC.js";
|
|
5
5
|
import { t as P } from "./doNotTranslate-BSVT8Xyd.js";
|
|
6
6
|
import { t as ge } from "./mergeClassNames-ClFMR1v0.js";
|
|
7
7
|
import { t as be } from "./normalizeSearchText-DLmPiBUZ.js";
|
|
8
8
|
import { r as Nt, t as ae } from "./Button-wpJzTy9O.js";
|
|
9
9
|
import { r as Ur, t as rt } from "./OverflowingTextWithTooltip-aPLt9O1-.js";
|
|
10
10
|
import { t as Yr } from "./Separator-0LzwPfOn.js";
|
|
11
|
-
import { a as ct, n as Br, r as Wr, s as Ne, t as T } from "./Dropdown-
|
|
11
|
+
import { a as ct, n as Br, r as Wr, s as Ne, t as T } from "./Dropdown-CV8O8IPo.js";
|
|
12
12
|
import { n as Fe, t as Tt } from "./Input-B9glruH9.js";
|
|
13
|
-
import { a as Q, i as ut, n as Gr, o as We, r as
|
|
13
|
+
import { a as Q, i as ut, n as Gr, o as We, r as $e, t as qr } from "./Radio-DdZ07JJK.js";
|
|
14
14
|
import { t as Kr } from "./Skeleton-gAiz2xVU.js";
|
|
15
15
|
import { isFunction as Ve, isNonEmptyArray as Te, isNonEmptyString as L, isNull as Pt, isNumber as Jr, isString as Xr, isUndefined as Le } from "@sniptt/guards";
|
|
16
16
|
import { clsx as G } from "clsx";
|
|
@@ -24,7 +24,7 @@ import { useStableCallback as Ot } from "@base-ui/utils/useStableCallback";
|
|
|
24
24
|
import { useValueAsRef as ln } from "@base-ui/utils/useValueAsRef";
|
|
25
25
|
import { formatNumber as dt } from "@base-ui/utils/formatNumber";
|
|
26
26
|
import { RadioGroup as sn } from "@base-ui/react/radio-group";
|
|
27
|
-
var At = Ye(void 0), cn = "country:",
|
|
27
|
+
var At = Ye(void 0), cn = "country:", Ht = (e) => `${cn}${e}`, $t = ({ countries: e, value: t, defaultValue: r = null, onValueChange: n, disabled: o = !1, noCountryLabel: a = P("No country"), children: s }) => {
|
|
28
28
|
const c = oe(), [l, u] = Dt({
|
|
29
29
|
controlled: t,
|
|
30
30
|
default: r,
|
|
@@ -32,7 +32,7 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
32
32
|
state: "value"
|
|
33
33
|
}), h = he(() => e.map((m) => ({
|
|
34
34
|
...m,
|
|
35
|
-
selectionValue:
|
|
35
|
+
selectionValue: Ht(m.value),
|
|
36
36
|
searchText: be(m.label)
|
|
37
37
|
})), [e]), d = he(() => new Map(h.map((m) => [m.value, m])), [h]), g = o || !Te(h);
|
|
38
38
|
return /* @__PURE__ */ i(At.Provider, {
|
|
@@ -75,11 +75,11 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
75
75
|
if (!S(e)) throw new Error(P("CountrySelect parts must be inside CountrySelect.Root"));
|
|
76
76
|
return e;
|
|
77
77
|
}, we = (e) => e.preventBaseUIHandler?.(), Ft = ({ label: e, wrapperProps: t, children: r, className: n, style: o, render: a, onClick: s, onMouseDown: c, onPointerDown: l, onKeyDown: u, onKeyUp: h, openOnHover: d, id: g, "aria-label": m, "aria-labelledby": f, "aria-describedby": b, ...y }) => {
|
|
78
|
-
const { selectedCountry: w, disabled: p, noCountryLabel: j } = nt(), { open: k, setOpen: C } = Ne(), v = oe(), E = g ?? v, _ = `${v}-label`, N = `${v}-value`,
|
|
78
|
+
const { selectedCountry: w, disabled: p, noCountryLabel: j } = nt(), { open: k, setOpen: C } = Ne(), v = oe(), E = g ?? v, _ = `${v}-label`, N = `${v}-value`, H = L(e), M = L(m) ? m : void 0, O = hn({
|
|
79
79
|
ariaLabelledBy: f,
|
|
80
80
|
ariaLabel: M,
|
|
81
|
-
visibleLabelId:
|
|
82
|
-
}),
|
|
81
|
+
visibleLabelId: H ? _ : void 0
|
|
82
|
+
}), $ = [b, (S(O) || S(M)) && !S(r) ? N : void 0].filter(L), x = w?.label ?? j, R = S(w) ? w.flag : /* @__PURE__ */ i(Rt, {}), A = (Y) => ({
|
|
83
83
|
...Y,
|
|
84
84
|
disabled: p
|
|
85
85
|
}), re = ge(G(Fe.input, Fe.md, We.trigger), n);
|
|
@@ -92,7 +92,7 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
92
92
|
open: k,
|
|
93
93
|
onOpenChange: C
|
|
94
94
|
}),
|
|
95
|
-
|
|
95
|
+
H && /* @__PURE__ */ i("label", {
|
|
96
96
|
id: _,
|
|
97
97
|
className: je.label,
|
|
98
98
|
htmlFor: E,
|
|
@@ -103,7 +103,7 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
103
103
|
id: E,
|
|
104
104
|
"aria-label": M,
|
|
105
105
|
"aria-labelledby": O,
|
|
106
|
-
"aria-describedby": Te(
|
|
106
|
+
"aria-describedby": Te($) ? $.join(" ") : void 0,
|
|
107
107
|
"aria-disabled": p || void 0,
|
|
108
108
|
openOnHover: p ? !1 : d,
|
|
109
109
|
"data-disabled": p ? "" : void 0,
|
|
@@ -164,7 +164,7 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
164
164
|
multiple: !1
|
|
165
165
|
}) : n,
|
|
166
166
|
id: h,
|
|
167
|
-
value: Pt(s) ? gn :
|
|
167
|
+
value: Pt(s) ? gn : Ht(s),
|
|
168
168
|
onValueChange: (v, E) => {
|
|
169
169
|
const _ = a.find((N) => N.selectionValue === v);
|
|
170
170
|
c(_?.value ?? null, E);
|
|
@@ -224,7 +224,7 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
224
224
|
})
|
|
225
225
|
})]
|
|
226
226
|
})] });
|
|
227
|
-
}, pn = ({ countries: e, value: t, defaultValue: r, onValueChange: n, disabled: o, noCountryLabel: a, ...s }) => /* @__PURE__ */ i(
|
|
227
|
+
}, pn = ({ countries: e, value: t, defaultValue: r, onValueChange: n, disabled: o, noCountryLabel: a, ...s }) => /* @__PURE__ */ i($t, {
|
|
228
228
|
countries: e,
|
|
229
229
|
value: t,
|
|
230
230
|
defaultValue: r,
|
|
@@ -233,7 +233,7 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
233
233
|
noCountryLabel: a,
|
|
234
234
|
children: /* @__PURE__ */ i(fn, { ...s })
|
|
235
235
|
}), yi = Object.assign(pn, {
|
|
236
|
-
Root:
|
|
236
|
+
Root: $t,
|
|
237
237
|
Trigger: Ft,
|
|
238
238
|
Options: Vt
|
|
239
239
|
}), bn = "_trigger_18tlx_1", yn = "_chevron_18tlx_40", wn = "_options_18tlx_45", _n = "_emptyStatus_18tlx_51", ze = {
|
|
@@ -246,7 +246,7 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
246
246
|
if (!S(e)) throw new Error(P("CurrencyPicker parts must be inside CurrencyPicker.Root"));
|
|
247
247
|
return e;
|
|
248
248
|
}, Ut = ({ disabled: e = !1, searchable: t = !0, searchLabel: r = P("Search"), listLabel: n, emptyLabel: o = P("No results"), searchProps: a, className: s, render: c, ref: l, ...u }) => {
|
|
249
|
-
const { state: h, groupId: d, options: g, selectionProps: m } = zt(), { titleId: f, triggerId: b } = Ne(), { value: y, defaultValue: w = "", onValueChange: p, ...j } = a ?? {}, [k, C] = K(w), v = y ?? k, E = t ? String(v).trim().toLowerCase() : "", _ = g.filter(({ searchText: O }) => O.includes(E)), N = Te(_),
|
|
249
|
+
const { state: h, groupId: d, options: g, selectionProps: m } = zt(), { titleId: f, triggerId: b } = Ne(), { value: y, defaultValue: w = "", onValueChange: p, ...j } = a ?? {}, [k, C] = K(w), v = y ?? k, E = t ? String(v).trim().toLowerCase() : "", _ = g.filter(({ searchText: O }) => O.includes(E)), N = Te(_), H = h.disabled || e, M = S(n) ? void 0 : f ?? b;
|
|
250
250
|
return Pe({
|
|
251
251
|
render: c,
|
|
252
252
|
ref: l,
|
|
@@ -262,7 +262,7 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
262
262
|
onValueChange: (O) => {
|
|
263
263
|
p?.(O), Le(y) && C(O);
|
|
264
264
|
},
|
|
265
|
-
disabled:
|
|
265
|
+
disabled: H || a?.disabled
|
|
266
266
|
}), /* @__PURE__ */ i(T.Separator, {})] }),
|
|
267
267
|
/* @__PURE__ */ i(T.SelectionGroup, {
|
|
268
268
|
...m,
|
|
@@ -271,10 +271,10 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
271
271
|
"aria-labelledby": M,
|
|
272
272
|
children: N && /* @__PURE__ */ i(T.Section, {
|
|
273
273
|
scrollable: !0,
|
|
274
|
-
children: _.map(({ currency: O, label:
|
|
274
|
+
children: _.map(({ currency: O, label: $ }) => /* @__PURE__ */ i(T.OptionItem, {
|
|
275
275
|
value: O.code,
|
|
276
|
-
disabled:
|
|
277
|
-
children: Xr(
|
|
276
|
+
disabled: H || O.disabled,
|
|
277
|
+
children: Xr($) ? /* @__PURE__ */ i(rt, { text: $ }) : $
|
|
278
278
|
}, O.code))
|
|
279
279
|
})
|
|
280
280
|
}),
|
|
@@ -361,7 +361,7 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
361
361
|
Root: Bt,
|
|
362
362
|
Trigger: Wt,
|
|
363
363
|
Options: Ut
|
|
364
|
-
}), Sn = "
|
|
364
|
+
}), Sn = "_calendar_1ob13_1", In = "_header_1ob13_9", jn = "_monthSelect_1ob13_18", kn = "_yearSelect_1ob13_23", Rn = "_navigation_1ob13_28", Nn = "_chevron_1ob13_33", se = {
|
|
365
365
|
calendar: Sn,
|
|
366
366
|
header: In,
|
|
367
367
|
monthSelect: jn,
|
|
@@ -483,7 +483,7 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
483
483
|
disabled: f || a,
|
|
484
484
|
"aria-label": l,
|
|
485
485
|
onClick: t,
|
|
486
|
-
children: /* @__PURE__ */ i(
|
|
486
|
+
children: /* @__PURE__ */ i(Or, { className: se.chevron })
|
|
487
487
|
}), /* @__PURE__ */ i(ct, {
|
|
488
488
|
size: "md",
|
|
489
489
|
disabled: f || s,
|
|
@@ -512,12 +512,12 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
512
512
|
return { default: "default" in e ? e.default : e };
|
|
513
513
|
}), An = ({ start: e, end: t }) => {
|
|
514
514
|
if (Ue(e), Ue(t), e > t) throw new Xe({ message: P("Calendar highlighted ranges must end on or after their start date.") });
|
|
515
|
-
},
|
|
516
|
-
const M = U(null), O = U(null),
|
|
515
|
+
}, Hn = 300, _i = ({ value: e, onValueChange: t, onValueSelect: r, viewedMonth: n, onViewedMonthChange: o, highlightedRange: a, readOnly: s = !1, isGridHidden: c = !1, weekStart: l, locale: u, weekdayLabels: h, previousMonthLabel: d, nextMonthLabel: g, monthLabel: m, yearLabel: f, portalContainer: b, onNavigationOpenChange: y, isDateUnavailable: w, disabled: p = !1, isKeyboardNavigationDisabled: j = !1, renderHeader: k, loadingFallback: C, dir: v, render: E, ref: _, className: N, ...H }) => {
|
|
516
|
+
const M = U(null), O = U(null), $ = U(e?.slice(0, 7) ?? n), x = on(), R = v === "rtl" || v === "ltr" ? v : x;
|
|
517
517
|
S(a) && An(a);
|
|
518
518
|
const A = (D) => {
|
|
519
519
|
const W = _e(D).slice(0, 7);
|
|
520
|
-
|
|
520
|
+
$.current = W, W !== n && o(W);
|
|
521
521
|
}, re = (D) => {
|
|
522
522
|
s || p || !S(D) || t(_e(D));
|
|
523
523
|
}, Y = {
|
|
@@ -551,12 +551,12 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
551
551
|
onNextMonth: Oe,
|
|
552
552
|
onMonthChange: (Ae) => Rr(Ae - 1),
|
|
553
553
|
onYearChange: (Ae) => {
|
|
554
|
-
const
|
|
555
|
-
if (
|
|
554
|
+
const He = new Date(D);
|
|
555
|
+
if (He.setFullYear(Ae), He.getMonth() === D.getMonth()) {
|
|
556
556
|
Nr(Ae);
|
|
557
557
|
return;
|
|
558
558
|
}
|
|
559
|
-
|
|
559
|
+
He.setDate(0), M.current?.setPreSelection(He);
|
|
560
560
|
},
|
|
561
561
|
isPreviousMonthDisabled: p || Tr,
|
|
562
562
|
isNextMonthDisabled: p || Pr
|
|
@@ -590,26 +590,26 @@ var At = Ye(void 0), cn = "country:", $t = (e) => `${cn}${e}`, Ht = ({ countries
|
|
|
590
590
|
ref: _,
|
|
591
591
|
props: {
|
|
592
592
|
role: "group",
|
|
593
|
-
|
|
593
|
+
...H,
|
|
594
594
|
dir: R,
|
|
595
595
|
onMouseDownCapture: (D) => {
|
|
596
|
-
|
|
596
|
+
H.onMouseDownCapture?.(D), O.current = D.nativeEvent;
|
|
597
597
|
},
|
|
598
598
|
className: G(se.calendar, N),
|
|
599
599
|
"data-readonly": s || void 0,
|
|
600
600
|
"data-hide-grid": c || void 0,
|
|
601
601
|
children: /* @__PURE__ */ I(Qr, {
|
|
602
|
-
fallback: C ?? /* @__PURE__ */ i(Kr, { height:
|
|
602
|
+
fallback: C ?? /* @__PURE__ */ i(Kr, { height: Hn }),
|
|
603
603
|
children: [/* @__PURE__ */ i(On, {
|
|
604
604
|
calendarRef: M,
|
|
605
|
-
engineViewedMonthRef:
|
|
605
|
+
engineViewedMonthRef: $,
|
|
606
606
|
viewedMonth: n
|
|
607
607
|
}), ve()]
|
|
608
608
|
})
|
|
609
609
|
}
|
|
610
610
|
});
|
|
611
|
-
},
|
|
612
|
-
for (var r in t)
|
|
611
|
+
}, $n = Object.defineProperty, Mn = (e, t) => {
|
|
612
|
+
for (var r in t) $n(e, r, {
|
|
613
613
|
get: t[r],
|
|
614
614
|
enumerable: !0
|
|
615
615
|
});
|
|
@@ -1165,8 +1165,8 @@ function la(e, t, r, n, o) {
|
|
|
1165
1165
|
if (!(k instanceof HTMLElement)) return;
|
|
1166
1166
|
let C = k.offsetTop, v = getComputedStyle(k), E = Number.parseFloat(v.scrollMarginTop), _ = Number.parseFloat(v.scrollMarginBottom), N = a + E;
|
|
1167
1167
|
m && C < a + b / 2 && (N += y);
|
|
1168
|
-
let
|
|
1169
|
-
(C < N || C + f >
|
|
1168
|
+
let H = N + b - _;
|
|
1169
|
+
(C < N || C + f > H) && p.scrollTo({
|
|
1170
1170
|
top: Math.max(C < N + y ? C - Math.max(m ? y : 0, E) : C - b + f + _, 0),
|
|
1171
1171
|
behavior: "instant"
|
|
1172
1172
|
});
|
|
@@ -1337,8 +1337,8 @@ var ur = xe(({ locale: e = "en", columns: t = 9, skinTone: r = "none", onEmojiSe
|
|
|
1337
1337
|
}, [r]);
|
|
1338
1338
|
let k = z((v) => {
|
|
1339
1339
|
c?.(v);
|
|
1340
|
-
let { searchRef: E, viewportRef: _ } = b.get(), N = v.target === E?.current || v.target.hasAttribute("frimousse-search"),
|
|
1341
|
-
v.isDefaultPrevented() || (w(N ||
|
|
1340
|
+
let { searchRef: E, viewportRef: _ } = b.get(), N = v.target === E?.current || v.target.hasAttribute("frimousse-search"), H = v.target === _?.current || v.target.hasAttribute("frimousse-viewport");
|
|
1341
|
+
v.isDefaultPrevented() || (w(N || H), v.isDefaultPrevented() || (w(N || H), H ? b.get().onActiveEmojiChange("keyboard", 0, 0) : N && b.get().search === "" && b.set({ interaction: "none" })));
|
|
1342
1342
|
}, [c]), C = z((v) => {
|
|
1343
1343
|
l?.(v), !v.isDefaultPrevented() && !v.currentTarget.contains(v.relatedTarget) && w(!1);
|
|
1344
1344
|
}, [l]);
|
|
@@ -1348,13 +1348,13 @@ var ur = xe(({ locale: e = "en", columns: t = 9, skinTone: r = "none", onEmojiSe
|
|
|
1348
1348
|
if (!y) return;
|
|
1349
1349
|
function v(E) {
|
|
1350
1350
|
if (E.defaultPrevented || !E.key.startsWith("Arrow") && E.key !== "Enter") return;
|
|
1351
|
-
let { data: _, onEmojiSelect: N, onActiveEmojiChange:
|
|
1351
|
+
let { data: _, onEmojiSelect: N, onActiveEmojiChange: H, interaction: M, activeColumnIndex: O, activeRowIndex: $ } = b.get();
|
|
1352
1352
|
if (E.key === "Enter") {
|
|
1353
1353
|
let x = it(b.get());
|
|
1354
1354
|
x && (E.preventDefault(), N(x));
|
|
1355
1355
|
}
|
|
1356
1356
|
if (E.key.startsWith("Arrow")) {
|
|
1357
|
-
let x = O, R =
|
|
1357
|
+
let x = O, R = $;
|
|
1358
1358
|
if (E.preventDefault(), M !== "none") {
|
|
1359
1359
|
if (_?.rows && _.rows.length > 0) switch (E.key) {
|
|
1360
1360
|
case "ArrowLeft":
|
|
@@ -1380,18 +1380,18 @@ var ur = xe(({ locale: e = "en", columns: t = 9, skinTone: r = "none", onEmojiSe
|
|
|
1380
1380
|
break;
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
|
|
1384
|
-
} else
|
|
1383
|
+
H("keyboard", x, R);
|
|
1384
|
+
} else H("keyboard", 0, 0);
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
1387
|
return document.addEventListener("keydown", v), () => {
|
|
1388
1388
|
document.removeEventListener("keydown", v);
|
|
1389
1389
|
};
|
|
1390
1390
|
}, [y]), X(() => {
|
|
1391
|
-
let v = null, E = null, _ = null, N = null,
|
|
1391
|
+
let v = null, E = null, _ = null, N = null, H = b.subscribe((R) => {
|
|
1392
1392
|
p.current && (v !== R.viewportWidth && (v = R.viewportWidth, p.current.style.setProperty("--frimousse-viewport-width", `${R.viewportWidth}px`)), E !== R.viewportHeight && (E = R.viewportHeight, p.current.style.setProperty("--frimousse-viewport-height", `${R.viewportHeight}px`)), _ !== R.rowHeight && (_ = R.rowHeight, p.current.style.setProperty("--frimousse-row-height", `${R.rowHeight}px`)), N !== R.categoryHeaderHeight && (N = R.categoryHeaderHeight, p.current.style.setProperty("--frimousse-category-header-height", `${R.categoryHeaderHeight}px`)));
|
|
1393
|
-
}), { viewportWidth: M, viewportHeight: O, rowHeight:
|
|
1394
|
-
return M && p.current.style.setProperty("--frimousse-viewport-width", `${M}px`), O && p.current.style.setProperty("--frimousse-viewport-height", `${O}px`),
|
|
1393
|
+
}), { viewportWidth: M, viewportHeight: O, rowHeight: $, categoryHeaderHeight: x } = b.get();
|
|
1394
|
+
return M && p.current.style.setProperty("--frimousse-viewport-width", `${M}px`), O && p.current.style.setProperty("--frimousse-viewport-height", `${O}px`), $ && p.current.style.setProperty("--frimousse-row-height", `${$}px`), x && p.current.style.setProperty("--frimousse-category-header-height", `${x}px`), H;
|
|
1395
1395
|
}, []), i("div", {
|
|
1396
1396
|
"data-focused": y ? "" : void 0,
|
|
1397
1397
|
"frimousse-root": "",
|
|
@@ -1762,12 +1762,12 @@ wr.displayName = "EmojiPicker.Empty";
|
|
|
1762
1762
|
br.displayName = "EmojiPicker.SkinToneSelector";
|
|
1763
1763
|
_r.displayName = "EmojiPicker.ActiveEmoji";
|
|
1764
1764
|
Cr.displayName = "EmojiPicker.SkinTone";
|
|
1765
|
-
var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33",
|
|
1765
|
+
var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", Ha = "_message_1elk3_42", Se = {
|
|
1766
1766
|
root: Da,
|
|
1767
1767
|
search: Oa,
|
|
1768
1768
|
viewport: Aa,
|
|
1769
|
-
message:
|
|
1770
|
-
},
|
|
1769
|
+
message: Ha
|
|
1770
|
+
}, $a = ({ emoji: e, "aria-colindex": t, ...r }) => /* @__PURE__ */ i("button", {
|
|
1771
1771
|
...r,
|
|
1772
1772
|
type: "button",
|
|
1773
1773
|
role: "gridcell",
|
|
@@ -1836,7 +1836,7 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
1836
1836
|
}),
|
|
1837
1837
|
/* @__PURE__ */ i(ue.List, { components: {
|
|
1838
1838
|
Row: Ma,
|
|
1839
|
-
Emoji:
|
|
1839
|
+
Emoji: $a
|
|
1840
1840
|
} })
|
|
1841
1841
|
]
|
|
1842
1842
|
}),
|
|
@@ -1912,7 +1912,7 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
1912
1912
|
errorMessage: io
|
|
1913
1913
|
}, lo = ({ src: e }) => {
|
|
1914
1914
|
const t = kt(), [r, n] = K(!1);
|
|
1915
|
-
return !L(e) || r ? /* @__PURE__ */ i(
|
|
1915
|
+
return !L(e) || r ? /* @__PURE__ */ i(zr, {
|
|
1916
1916
|
size: t.icon.size.lg,
|
|
1917
1917
|
"aria-hidden": !0
|
|
1918
1918
|
}) : /* @__PURE__ */ i("img", {
|
|
@@ -1922,7 +1922,7 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
1922
1922
|
onError: () => n(!0)
|
|
1923
1923
|
});
|
|
1924
1924
|
}, so = "image/*", Si = ({ src: e, onFileSelect: t, onRemove: r, onAbort: n, disabled: o = !1, isUploading: a = !1, helperText: s, errorMessage: c, uploadLabel: l = P("Upload"), removeLabel: u = P("Remove"), abortLabel: h = P("Abort"), accept: d = so, inputRef: g, onChange: m, "aria-describedby": f, className: b, style: y, dir: w, render: p, ref: j, ...k }) => {
|
|
1925
|
-
const C = U(null), v = xt(C, g), E = oe(), _ = `${E}-helper`, N = `${E}-error`,
|
|
1925
|
+
const C = U(null), v = xt(C, g), E = oe(), _ = `${E}-helper`, N = `${E}-error`, H = L(e), M = L(s), O = L(c), $ = o || !S(t), x = o || !H || !S(r), R = $ || a, A = x || a, re = a && S(n), Y = [
|
|
1926
1926
|
f,
|
|
1927
1927
|
M && _,
|
|
1928
1928
|
O && N
|
|
@@ -1948,7 +1948,7 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
1948
1948
|
children: /* @__PURE__ */ I(Z, { children: [/* @__PURE__ */ i("button", {
|
|
1949
1949
|
className: ne.preview,
|
|
1950
1950
|
type: "button",
|
|
1951
|
-
disabled:
|
|
1951
|
+
disabled: $,
|
|
1952
1952
|
"aria-disabled": a || void 0,
|
|
1953
1953
|
"aria-label": l,
|
|
1954
1954
|
"aria-describedby": Y,
|
|
@@ -1987,17 +1987,17 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
1987
1987
|
children: h
|
|
1988
1988
|
}) : /* @__PURE__ */ i(ae, {
|
|
1989
1989
|
type: "button",
|
|
1990
|
-
startIcon: /* @__PURE__ */ i(
|
|
1990
|
+
startIcon: /* @__PURE__ */ i(Lr, {}),
|
|
1991
1991
|
onClick: ve,
|
|
1992
1992
|
disabled: R,
|
|
1993
|
-
focusableWhenDisabled: a &&
|
|
1993
|
+
focusableWhenDisabled: a && !$,
|
|
1994
1994
|
"aria-describedby": Y,
|
|
1995
1995
|
variant: "outline",
|
|
1996
1996
|
children: l
|
|
1997
1997
|
}),
|
|
1998
1998
|
/* @__PURE__ */ i(ae, {
|
|
1999
1999
|
type: "button",
|
|
2000
|
-
startIcon: /* @__PURE__ */ i(
|
|
2000
|
+
startIcon: /* @__PURE__ */ i(Mr, {}),
|
|
2001
2001
|
onClick: r,
|
|
2002
2002
|
disabled: A,
|
|
2003
2003
|
focusableWhenDisabled: a && !x,
|
|
@@ -2066,7 +2066,7 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
2066
2066
|
r?.(E, _), !_.isCanceled && (C.current = E, k(E));
|
|
2067
2067
|
}
|
|
2068
2068
|
};
|
|
2069
|
-
return /* @__PURE__ */ I(
|
|
2069
|
+
return /* @__PURE__ */ I($e.Root, {
|
|
2070
2070
|
value: j,
|
|
2071
2071
|
onValueChange: v,
|
|
2072
2072
|
onValueCommitted: n,
|
|
@@ -2085,7 +2085,7 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
2085
2085
|
format: et,
|
|
2086
2086
|
className: fe.root,
|
|
2087
2087
|
children: [
|
|
2088
|
-
f && /* @__PURE__ */ i(
|
|
2088
|
+
f && /* @__PURE__ */ i($e.Decrement, {
|
|
2089
2089
|
"aria-label": b,
|
|
2090
2090
|
render: /* @__PURE__ */ i(ae, {
|
|
2091
2091
|
type: "button",
|
|
@@ -2093,16 +2093,16 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
2093
2093
|
className: fe.button,
|
|
2094
2094
|
startIcon: /* @__PURE__ */ i("span", {
|
|
2095
2095
|
className: fe.icon,
|
|
2096
|
-
children: /* @__PURE__ */ i(
|
|
2096
|
+
children: /* @__PURE__ */ i($r, {})
|
|
2097
2097
|
})
|
|
2098
2098
|
})
|
|
2099
2099
|
}),
|
|
2100
|
-
/* @__PURE__ */ i(
|
|
2100
|
+
/* @__PURE__ */ i($e.Input, {
|
|
2101
2101
|
...p,
|
|
2102
2102
|
form: g,
|
|
2103
2103
|
className: ge(G(Fe.input, Fe.sm, fe.valueInput), w)
|
|
2104
2104
|
}),
|
|
2105
|
-
f && /* @__PURE__ */ i(
|
|
2105
|
+
f && /* @__PURE__ */ i($e.Increment, {
|
|
2106
2106
|
"aria-label": y,
|
|
2107
2107
|
render: /* @__PURE__ */ i(ae, {
|
|
2108
2108
|
type: "button",
|
|
@@ -2110,7 +2110,7 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
2110
2110
|
className: fe.button,
|
|
2111
2111
|
startIcon: /* @__PURE__ */ i("span", {
|
|
2112
2112
|
className: fe.icon,
|
|
2113
|
-
children: /* @__PURE__ */ i(
|
|
2113
|
+
children: /* @__PURE__ */ i(Vr, {})
|
|
2114
2114
|
})
|
|
2115
2115
|
})
|
|
2116
2116
|
})
|
|
@@ -2219,7 +2219,7 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
2219
2219
|
children: [e ?? /* @__PURE__ */ I(Z, { children: [/* @__PURE__ */ i("span", {
|
|
2220
2220
|
className: me.triggerFlag,
|
|
2221
2221
|
"aria-hidden": !0,
|
|
2222
|
-
children: l?.flag ?? /* @__PURE__ */ i(
|
|
2222
|
+
children: l?.flag ?? /* @__PURE__ */ i(Dr, {})
|
|
2223
2223
|
}), /* @__PURE__ */ i(tt, {
|
|
2224
2224
|
className: me.chevron,
|
|
2225
2225
|
"aria-hidden": !0
|
|
@@ -2272,10 +2272,10 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
2272
2272
|
children: e
|
|
2273
2273
|
}), /* @__PURE__ */ i("span", { children: t })]
|
|
2274
2274
|
})
|
|
2275
|
-
}), Ao = "_wrapper_c0mqd_1",
|
|
2275
|
+
}), Ao = "_wrapper_c0mqd_1", Ho = "_inputGroup_c0mqd_8", $o = "_searchIcon_c0mqd_14", Je = {
|
|
2276
2276
|
wrapper: Ao,
|
|
2277
|
-
inputGroup:
|
|
2278
|
-
searchIcon:
|
|
2277
|
+
inputGroup: Ho,
|
|
2278
|
+
searchIcon: $o
|
|
2279
2279
|
}, Ti = ({ placeholder: e, actions: t, size: r = "md", hasFocusRing: n = !1, id: o, "aria-label": a, "aria-labelledby": s, ...c }) => {
|
|
2280
2280
|
const l = kt(), u = oe(), h = o ?? u;
|
|
2281
2281
|
return /* @__PURE__ */ I("div", {
|
|
@@ -2284,7 +2284,7 @@ var Da = "_root_1elk3_1", Oa = "_search_1elk3_29", Aa = "_viewport_1elk3_33", $a
|
|
|
2284
2284
|
className: Je.inputGroup,
|
|
2285
2285
|
size: r,
|
|
2286
2286
|
hasFocusRing: n,
|
|
2287
|
-
startElement: /* @__PURE__ */ i(
|
|
2287
|
+
startElement: /* @__PURE__ */ i(Ar, {
|
|
2288
2288
|
className: Je.searchIcon,
|
|
2289
2289
|
size: l.icon.size.md,
|
|
2290
2290
|
"aria-hidden": !0
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as te } from "./theme-B1jMC8En.js";
|
|
2
2
|
import { t as m } from "./isDefined-fMi6eQ4r.js";
|
|
3
3
|
import { t as w } from "./isRenderableSlot-DT_depzM.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Et as ae, Pa as ie } from "./TablerIcons-C9XA-vxC.js";
|
|
5
5
|
import { t as n } from "./mergeClassNames-ClFMR1v0.js";
|
|
6
6
|
import { r as le } from "./Button-wpJzTy9O.js";
|
|
7
7
|
import { t as D } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
8
8
|
import { n as p, t as d } from "./ListItem.module-BV1vQ5hr.js";
|
|
9
9
|
import { n as G, r as ne } from "./Input-B9glruH9.js";
|
|
10
|
-
import { i as se } from "./Radio-
|
|
10
|
+
import { i as se } from "./Radio-DdZ07JJK.js";
|
|
11
11
|
import { isFunction as k, isUndefined as ce } from "@sniptt/guards";
|
|
12
12
|
import { clsx as b } from "clsx";
|
|
13
|
-
import { Fragment as me, jsx as a, jsxs as
|
|
13
|
+
import { Fragment as me, jsx as a, jsxs as S } from "react/jsx-runtime";
|
|
14
14
|
import { useRender as z } from "@base-ui/react/use-render";
|
|
15
|
-
import { forwardRef as y, useContext as ue, useLayoutEffect as
|
|
15
|
+
import { forwardRef as y, useContext as ue, useLayoutEffect as P, useMemo as de, useRef as pe, useState as ve } from "react";
|
|
16
16
|
import { mergeProps as _e } from "@base-ui/react/merge-props";
|
|
17
17
|
import { Input as fe } from "@base-ui/react/input";
|
|
18
18
|
import { RadioGroup as he } from "@base-ui/react/radio-group";
|
|
@@ -20,14 +20,14 @@ import { Autocomplete as l } from "@base-ui/react/autocomplete";
|
|
|
20
20
|
import { Checkbox as B } from "@base-ui/react/checkbox";
|
|
21
21
|
import { Field as h } from "@base-ui/react/field";
|
|
22
22
|
import { Slider as N } from "@base-ui/react/slider";
|
|
23
|
-
var be = "_inputGroup_17li0_1", Ne = "_positioner_17li0_8", Ie = "_popup_17li0_12", Ce = "_arrow_17li0_31", ge = "_separator_17li0_72",
|
|
23
|
+
var be = "_inputGroup_17li0_1", Ne = "_positioner_17li0_8", Ie = "_popup_17li0_12", Ce = "_arrow_17li0_31", ge = "_separator_17li0_72", Se = "_list_17li0_86", Ae = "_empty_17li0_93", I = {
|
|
24
24
|
inputGroup: be,
|
|
25
25
|
positioner: Ne,
|
|
26
26
|
popup: Ie,
|
|
27
27
|
arrow: Ce,
|
|
28
28
|
separator: ge,
|
|
29
|
-
list:
|
|
30
|
-
empty:
|
|
29
|
+
list: Se,
|
|
30
|
+
empty: Ae
|
|
31
31
|
}, Fe = ({ className: e, ...r }) => /* @__PURE__ */ a(l.Arrow, {
|
|
32
32
|
...r,
|
|
33
33
|
className: n(I.arrow, e)
|
|
@@ -50,7 +50,7 @@ var be = "_inputGroup_17li0_1", Ne = "_positioner_17li0_8", Ie = "_popup_17li0_1
|
|
|
50
50
|
}, ke = ({ className: e, ...r }) => /* @__PURE__ */ a(l.InputGroup, {
|
|
51
51
|
...r,
|
|
52
52
|
className: n(I.inputGroup, e)
|
|
53
|
-
}), Re = ({ className: e, children: r, startIcon: o, endIcon: t, description: i, descriptionPlacement: s = "inline", ...c }) => /* @__PURE__ */
|
|
53
|
+
}), Re = ({ className: e, children: r, startIcon: o, endIcon: t, description: i, descriptionPlacement: s = "inline", ...c }) => /* @__PURE__ */ S(l.Item, {
|
|
54
54
|
...c,
|
|
55
55
|
className: n(d.root, e),
|
|
56
56
|
"data-color": "neutral",
|
|
@@ -60,7 +60,7 @@ var be = "_inputGroup_17li0_1", Ne = "_positioner_17li0_8", Ie = "_popup_17li0_1
|
|
|
60
60
|
"aria-hidden": !0,
|
|
61
61
|
children: o
|
|
62
62
|
}),
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ S("div", {
|
|
64
64
|
className: d.label,
|
|
65
65
|
children: [/* @__PURE__ */ a("div", {
|
|
66
66
|
className: d.text,
|
|
@@ -98,7 +98,7 @@ var be = "_inputGroup_17li0_1", Ne = "_positioner_17li0_8", Ie = "_popup_17li0_1
|
|
|
98
98
|
...r,
|
|
99
99
|
container: ce(e) ? o ?? void 0 : e
|
|
100
100
|
});
|
|
101
|
-
},
|
|
101
|
+
}, Pe = ({ className: e, align: r = "start", sideOffset: o = 8, ...t }) => {
|
|
102
102
|
const i = D();
|
|
103
103
|
return /* @__PURE__ */ a(l.Positioner, {
|
|
104
104
|
dir: i,
|
|
@@ -107,7 +107,7 @@ var be = "_inputGroup_17li0_1", Ne = "_positioner_17li0_8", Ie = "_popup_17li0_1
|
|
|
107
107
|
...t,
|
|
108
108
|
className: n(I.positioner, e)
|
|
109
109
|
});
|
|
110
|
-
},
|
|
110
|
+
}, xe = ({ className: e, ...r }) => /* @__PURE__ */ a(l.Separator, {
|
|
111
111
|
...r,
|
|
112
112
|
className: n(I.separator, e)
|
|
113
113
|
}), Ee = () => ({
|
|
@@ -120,7 +120,7 @@ var be = "_inputGroup_17li0_1", Ne = "_positioner_17li0_8", Ie = "_popup_17li0_1
|
|
|
120
120
|
Clear: l.Clear,
|
|
121
121
|
Portal: Ge,
|
|
122
122
|
Backdrop: l.Backdrop,
|
|
123
|
-
Positioner:
|
|
123
|
+
Positioner: Pe,
|
|
124
124
|
Popup: ye,
|
|
125
125
|
Arrow: Fe,
|
|
126
126
|
List: Le,
|
|
@@ -131,7 +131,7 @@ var be = "_inputGroup_17li0_1", Ne = "_positioner_17li0_8", Ie = "_popup_17li0_1
|
|
|
131
131
|
Row: l.Row,
|
|
132
132
|
Collection: l.Collection,
|
|
133
133
|
Empty: we,
|
|
134
|
-
Separator:
|
|
134
|
+
Separator: xe,
|
|
135
135
|
useFilter: l.useFilter,
|
|
136
136
|
useFilteredItems: l.useFilteredItems
|
|
137
137
|
}), $r = /* @__PURE__ */ Ee(), De = "_container_262rx_1", ze = { container: De }, Wr = ({ attached: e = !0, framed: r = !1, className: o, children: t, variant: i, size: s, color: c, render: v, ref: C, ..._ }) => {
|
|
@@ -161,12 +161,12 @@ var be = "_inputGroup_17li0_1", Ne = "_positioner_17li0_8", Ie = "_popup_17li0_1
|
|
|
161
161
|
}), $ = ({ size: e = "sm", variant: r = "solid", shape: o = "square", color: t = "accent", hoverable: i = !0, className: s, ...c }) => /* @__PURE__ */ a(B.Root, {
|
|
162
162
|
...c,
|
|
163
163
|
className: n(b(p.root, p[e], p[r], p[o], p[t], i && p.hoverable), s)
|
|
164
|
-
}), Be = ({ children: e, ...r }) => /* @__PURE__ */
|
|
164
|
+
}), Be = ({ children: e, ...r }) => /* @__PURE__ */ S($, {
|
|
165
165
|
...r,
|
|
166
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ S(V, { children: [/* @__PURE__ */ a(ae, {
|
|
167
167
|
className: p.check,
|
|
168
168
|
"aria-hidden": !0
|
|
169
|
-
}), /* @__PURE__ */ a(
|
|
169
|
+
}), /* @__PURE__ */ a(ie, {
|
|
170
170
|
className: p.minus,
|
|
171
171
|
"aria-hidden": !0
|
|
172
172
|
})] }), e]
|
|
@@ -275,7 +275,7 @@ var jr = {
|
|
|
275
275
|
};
|
|
276
276
|
}, pr = ({ textarea: e, autoResize: r, value: o, maxRows: t, rows: i, size: s, variant: c, consumerBlockSize: v, form: C }) => {
|
|
277
277
|
const _ = pe(!1);
|
|
278
|
-
return
|
|
278
|
+
return P(() => {
|
|
279
279
|
if (!m(e)) return;
|
|
280
280
|
const u = _.current;
|
|
281
281
|
if (_.current = r ?? !1, r) {
|
|
@@ -292,31 +292,31 @@ var jr = {
|
|
|
292
292
|
s,
|
|
293
293
|
c,
|
|
294
294
|
v
|
|
295
|
-
]),
|
|
295
|
+
]), P(() => {
|
|
296
296
|
if (!r || !m(e)) return;
|
|
297
297
|
let u = !0;
|
|
298
298
|
const g = (L) => {
|
|
299
299
|
requestAnimationFrame(() => {
|
|
300
300
|
u && !L.defaultPrevented && T(e);
|
|
301
301
|
});
|
|
302
|
-
},
|
|
303
|
-
return
|
|
304
|
-
u = !1,
|
|
302
|
+
}, A = e.form, R = dr(e);
|
|
303
|
+
return A?.addEventListener("reset", g), () => {
|
|
304
|
+
u = !1, A?.removeEventListener("reset", g), R?.();
|
|
305
305
|
};
|
|
306
306
|
}, [
|
|
307
307
|
e,
|
|
308
308
|
r,
|
|
309
309
|
C
|
|
310
310
|
]), null;
|
|
311
|
-
},
|
|
311
|
+
}, x = (e, r) => {
|
|
312
312
|
if (m(e)) {
|
|
313
313
|
if (k(e)) return e(r);
|
|
314
314
|
e.current = r;
|
|
315
315
|
}
|
|
316
316
|
}, vr = (...e) => (r) => {
|
|
317
317
|
const o = e.map((t) => {
|
|
318
|
-
const i =
|
|
319
|
-
return k(i) ? i : () =>
|
|
318
|
+
const i = x(t, r);
|
|
319
|
+
return k(i) ? i : () => x(t, null);
|
|
320
320
|
});
|
|
321
321
|
return () => {
|
|
322
322
|
for (const t of o) t();
|
|
@@ -326,13 +326,13 @@ var jr = {
|
|
|
326
326
|
sm: fr,
|
|
327
327
|
md: hr
|
|
328
328
|
}, Mr = ({ size: e = "md", variant: r = "default", autoResize: o = !1, maxRows: t, className: i, style: s, ref: c, render: v, onChange: C, value: _, rows: u, ...g }) => {
|
|
329
|
-
const [
|
|
329
|
+
const [A, R] = ve(null), L = de(() => vr(c, R), [c]), q = m(_), H = s?.blockSize, M = (F) => {
|
|
330
330
|
o && !q && T(F.currentTarget), C?.(F);
|
|
331
331
|
}, U = m(t) ? {
|
|
332
332
|
...s,
|
|
333
333
|
"--tw-textarea-max-rows": t
|
|
334
334
|
} : s, { "aria-describedby": J, id: K, name: Q, disabled: X, autoFocus: Y, defaultValue: Z, onValueChange: ee, ...re } = g;
|
|
335
|
-
return /* @__PURE__ */
|
|
335
|
+
return /* @__PURE__ */ S(me, { children: [/* @__PURE__ */ a(fe, {
|
|
336
336
|
"aria-describedby": J,
|
|
337
337
|
id: K,
|
|
338
338
|
name: Q,
|
|
@@ -357,7 +357,7 @@ var jr = {
|
|
|
357
357
|
"data-auto-resize": o || void 0,
|
|
358
358
|
"data-variant": r
|
|
359
359
|
}), /* @__PURE__ */ a(pr, {
|
|
360
|
-
textarea:
|
|
360
|
+
textarea: A,
|
|
361
361
|
autoResize: o,
|
|
362
362
|
value: _,
|
|
363
363
|
maxRows: t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const h=require("./isDefined-DS2Q42p5.cjs"),C=require("./doNotTranslate-CHE7WmRS.cjs"),L=require("./mergeClassNames-D4lshrT6.cjs"),v=require("./Button-CbJ3qEQ9.cjs"),y=require("./OverflowingTextWithTooltip-B21zZWP6.cjs"),D=require("./ListItem-D6FYdx6v.cjs"),g=require("./Dropdown-CTTQTn7B.cjs"),f=require("./TabsTabContent-
|
|
1
|
+
const h=require("./isDefined-DS2Q42p5.cjs"),C=require("./doNotTranslate-CHE7WmRS.cjs"),L=require("./mergeClassNames-D4lshrT6.cjs"),v=require("./Button-CbJ3qEQ9.cjs"),y=require("./OverflowingTextWithTooltip-B21zZWP6.cjs"),D=require("./ListItem-D6FYdx6v.cjs"),g=require("./Dropdown-CTTQTn7B.cjs"),f=require("./TabsTabContent-CV8DRReQ.cjs");let T=require("@sniptt/guards"),P=require("clsx"),r=require("react/jsx-runtime"),O=require("@base-ui/react/use-render"),j=require("react"),I=require("@base-ui/react/button"),x=require("@tabler/icons-react");var k="_pager_wkox0_1",N="_position_wkox0_11",z="_icon_wkox0_21",m={pager:k,position:N,icon:z},A=({index:e,count:t,onIndexChange:n,positionText:a,previousLabel:s,nextLabel:i,disabled:o=!1,positionPlacement:u="between",render:l,ref:c,className:p,...q})=>{const d=(0,T.isInteger)(e)&&(0,T.isInteger)(t)&&e>=0&&e<t,_=o||!d||e===0,w=o||!d||e===t-1,b=(0,r.jsx)(y.Text,{render:(0,r.jsx)("span",{}),className:m.position,"aria-live":"polite","aria-atomic":"true",children:a});return(0,O.useRender)({render:l,ref:c,props:{role:"group",...q,className:(0,P.clsx)(m.pager,p),"data-position-placement":u,children:(0,r.jsxs)(r.Fragment,{children:[u==="start"&&b,(0,r.jsx)(g.LightIconButton,{size:"sm",disabled:_,onClick:()=>n(e-1),"aria-label":s,children:(0,r.jsx)(x.IconChevronLeft,{className:m.icon})}),u==="between"&&b,(0,r.jsx)(g.LightIconButton,{size:"sm",disabled:w,onClick:()=>n(e+1),"aria-label":i,children:(0,r.jsx)(x.IconChevronRight,{className:m.icon})})]})}})},G=()=>{const{pageId:e,isPageActive:t,open:n,goToPage:a,goBack:s,canGoBack:i}=g.useDropdownContext();return{page:e,isActive:t&&n,goToPage:o=>a({id:o}),goBack:s,canGoBack:i}},R=()=>{const e=(0,j.useContext)(g.DropdownPlacementContext);if(!h.isDefined(e))throw new Error(C.doNotTranslate("useDropdownPlacementOrThrow must be used within Dropdown.Content"));return e},E=({color:e,selected:t,selectionAppearance:n,active:a,focused:s,indicator:i,startIcon:o,endIcon:u,description:l,descriptionPlacement:c,shortcut:p,shortcutJoinLabel:q,hasSubmenu:d,disabled:_=!1,type:w="button",children:b,...B})=>(0,r.jsx)(D.ListItem,{color:e,selected:t,selectionAppearance:n,active:a,focused:s,indicator:i,startIcon:o,endIcon:u,description:l,descriptionPlacement:c,shortcut:p,shortcutJoinLabel:q,hasSubmenu:d,disabled:_,render:(0,r.jsx)(I.Button,{...B,nativeButton:!0,type:w,disabled:_}),children:b}),S=C.doNotTranslate({gray:"Gray",tomato:"Tomato",red:"Red",ruby:"Ruby",crimson:"Crimson",pink:"Pink",plum:"Plum",purple:"Purple",violet:"Violet",iris:"Iris",cyan:"Cyan",turquoise:"Turquoise",sky:"Sky",blue:"Blue",jade:"Jade",green:"Green",grass:"Grass",mint:"Mint",lime:"Lime",bronze:"Bronze",gold:"Gold",brown:"Brown",orange:"Orange",amber:"Amber",yellow:"Yellow"}),F="_button_quwcq_1",U={button:F},J=({active:e=!1,className:t,children:n,startIcon:a,endIcon:s,badge:i,size:o,...u})=>{const l=(0,j.useContext)(v.ButtonGroupContext),c=o??l?.size??"sm";return(0,r.jsx)(v.Button,{...u,variant:"ghost",size:c,"data-active":e||void 0,className:L.mergeClassNames((0,P.clsx)(f.Tab_module_default.tab,U.button),t),children:(0,r.jsx)(f.TabsTabContent,{startIcon:a,endIcon:s,badge:i,children:n})})};Object.defineProperty(exports,"CountPager",{enumerable:!0,get:function(){return A}});Object.defineProperty(exports,"DEFAULT_COLOR_LABELS",{enumerable:!0,get:function(){return S}});Object.defineProperty(exports,"ListItemButton",{enumerable:!0,get:function(){return E}});Object.defineProperty(exports,"TabButton",{enumerable:!0,get:function(){return J}});Object.defineProperty(exports,"useDropdownPage",{enumerable:!0,get:function(){return G}});Object.defineProperty(exports,"useDropdownPlacementOrThrow",{enumerable:!0,get:function(){return R}});
|