@jfrader/ui 0.2.0 → 0.3.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/accordion-Bd-j04hW.js +198 -0
- package/dist/accordion.js +1 -1
- package/dist/alert-BBqaKI4k.js +135 -0
- package/dist/alert.js +1 -1
- package/dist/avatar-BahDVO9t.js +132 -0
- package/dist/avatar.js +1 -1
- package/dist/badge-B_sLygxU.js +108 -0
- package/dist/badge.js +1 -1
- package/dist/breadcrumbs-DVAOxfvL.js +141 -0
- package/dist/breadcrumbs.js +1 -1
- package/dist/button-P2e7_44z.js +200 -0
- package/dist/button.js +1 -1
- package/dist/calendar-C9Yad_-w.js +394 -0
- package/dist/calendar.js +1 -1
- package/dist/card-D-aI2QHx.js +158 -0
- package/dist/card.js +1 -1
- package/dist/checkbox-COYG6L7d.js +140 -0
- package/dist/checkbox.js +1 -1
- package/dist/{choice-control-ByFogYcT.js → choice-control-5kJkLXgv.js} +1 -1
- package/dist/{collection-registry-1l9f3XJZ.js → collection-registry-BTYi6zGh.js} +1 -1
- package/dist/combobox-DrmjBbo7.js +327 -0
- package/dist/combobox.js +1 -1
- package/dist/command-palette-V_2pEay7.js +379 -0
- package/dist/command-palette.js +1 -1
- package/dist/container-BOaSptJa.js +41 -0
- package/dist/container.js +1 -1
- package/dist/date-picker-ClUYBIBh.js +250 -0
- package/dist/date-picker.js +1 -1
- package/dist/dialog-xaydbXl2.js +218 -0
- package/dist/dialog.js +1 -1
- package/dist/divider-DYoJf0I_.js +84 -0
- package/dist/divider.js +1 -1
- package/dist/field-anatomy-D2ToMeRa.js +109 -0
- package/dist/flex-Dh-_J5-U.js +28 -0
- package/dist/flex.js +1 -1
- package/dist/{icon-wrapper-CFWzew5m.js → icon-wrapper-stN8sD7R.js} +1 -1
- package/dist/index.js +38 -37
- package/dist/kbd-C3ACoMoE.js +71 -0
- package/dist/kbd.js +1 -1
- package/dist/{layout-style-7ZTOiWGR.js → layout-style-Cbd1Vilw.js} +1 -1
- package/dist/{loading-ring-BpdB0aFi.js → loading-ring-B8-30Dl1.js} +1 -1
- package/dist/menu-DU60SMdt.js +216 -0
- package/dist/menu.js +1 -1
- package/dist/navigation-DhnKriOp.js +197 -0
- package/dist/navigation.js +1 -1
- package/dist/pagination-DYdwsxwe.js +156 -0
- package/dist/pagination.js +1 -1
- package/dist/pill-DO2gHzMb.js +56 -0
- package/dist/pill.js +1 -1
- package/dist/popover-BtN_0ejj.js +113 -0
- package/dist/popover.js +1 -1
- package/dist/progress-BpJswTG4.js +90 -0
- package/dist/progress.js +1 -1
- package/dist/radio-group-Ce0_IWQr.js +145 -0
- package/dist/radio-group.js +1 -1
- package/dist/select-BCS0-LVW.js +286 -0
- package/dist/select.js +1 -1
- package/dist/skeleton-OoFlOEXO.js +54 -0
- package/dist/skeleton.js +1 -1
- package/dist/spinner-C2YDoiMn.js +56 -0
- package/dist/spinner.js +1 -1
- package/dist/stack-DC3IbtWk.js +27 -0
- package/dist/stack.js +1 -1
- package/dist/switch-Dr-qjmT4.js +142 -0
- package/dist/switch.js +1 -1
- package/dist/sx-Dx9JUKp5.js +23 -0
- package/dist/tabs-CK_g1RKa.js +203 -0
- package/dist/tabs.js +1 -1
- package/dist/{text-field-8PQAqRpM.js → text-field-D60ok14S.js} +19 -18
- package/dist/text-field.js +1 -1
- package/dist/{textarea-CcGWuntL.js → textarea-DyfjtP0A.js} +19 -18
- package/dist/textarea.js +1 -1
- package/dist/theme-root-BiXXvQvr.js +42 -0
- package/dist/theme-root.js +1 -1
- package/dist/toast-iqelR-r0.js +282 -0
- package/dist/toast.js +1 -1
- package/dist/toggle-group-CI0e7hFm.js +166 -0
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip-CB-HC1js.js +108 -0
- package/dist/tooltip.js +1 -1
- package/dist/{trigger-style-B1GFmH7M.js → trigger-style-B1KVC8O1.js} +1 -1
- package/dist/types/components/accordion/accordion.d.ts +9 -8
- package/dist/types/components/alert/alert.d.ts +3 -2
- package/dist/types/components/avatar/avatar.d.ts +3 -2
- package/dist/types/components/badge/badge.d.ts +3 -2
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +5 -4
- package/dist/types/components/button/button.d.ts +3 -2
- package/dist/types/components/calendar/calendar.d.ts +7 -6
- package/dist/types/components/card/card.d.ts +13 -12
- package/dist/types/components/checkbox/checkbox.d.ts +3 -2
- package/dist/types/components/combobox/combobox.d.ts +8 -7
- package/dist/types/components/command-palette/command-palette.d.ts +15 -14
- package/dist/types/components/container/container.d.ts +3 -2
- package/dist/types/components/date-picker/date-picker.d.ts +3 -2
- package/dist/types/components/dialog/dialog.d.ts +11 -10
- package/dist/types/components/divider/divider.d.ts +3 -2
- package/dist/types/components/field/field-anatomy.d.ts +3 -2
- package/dist/types/components/flex/flex.d.ts +3 -2
- package/dist/types/components/kbd/kbd.d.ts +5 -4
- package/dist/types/components/menu/menu.d.ts +9 -8
- package/dist/types/components/navigation/navigation.d.ts +7 -6
- package/dist/types/components/pagination/pagination.d.ts +3 -2
- package/dist/types/components/pill/pill.d.ts +3 -2
- package/dist/types/components/popover/popover.d.ts +5 -4
- package/dist/types/components/progress/progress.d.ts +3 -2
- package/dist/types/components/radio-group/radio-group.d.ts +5 -4
- package/dist/types/components/select/select.d.ts +9 -8
- package/dist/types/components/skeleton/skeleton.d.ts +3 -2
- package/dist/types/components/spinner/spinner.d.ts +3 -2
- package/dist/types/components/stack/stack.d.ts +1 -1
- package/dist/types/components/switch/switch.d.ts +3 -2
- package/dist/types/components/tabs/tabs.d.ts +9 -8
- package/dist/types/components/text-field/text-field.d.ts +3 -2
- package/dist/types/components/textarea/textarea.d.ts +3 -2
- package/dist/types/components/theme-provider/theme-provider.d.ts +11 -0
- package/dist/types/components/theme-root/theme-root.d.ts +3 -2
- package/dist/types/components/toast/toast.d.ts +3 -2
- package/dist/types/components/toggle-group/toggle-group.d.ts +5 -4
- package/dist/types/components/tooltip/tooltip.d.ts +5 -4
- package/dist/types/index.d.ts +4 -0
- package/dist/types/styling/css.d.ts +3 -2
- package/dist/types/styling/styled.d.ts +1 -0
- package/dist/types/styling/sx.d.ts +16 -0
- package/dist/types/styling/theme.d.ts +98 -0
- package/dist/{visually-hidden-DCWhf0Cb.js → visually-hidden-BJdvqqvn.js} +1 -1
- package/package.json +3 -2
- package/dist/accordion-CkOZ-tvs.js +0 -178
- package/dist/alert-Dsjx14UW.js +0 -131
- package/dist/avatar-BRGKkoSr.js +0 -127
- package/dist/badge-DLxUMsCx.js +0 -104
- package/dist/breadcrumbs-694hF_hm.js +0 -131
- package/dist/button-CoaIcykB.js +0 -190
- package/dist/calendar-Doj7PTdG.js +0 -379
- package/dist/card-2IM71XZj.js +0 -134
- package/dist/checkbox-B7xGNFzp.js +0 -136
- package/dist/combobox-Bjhxv5U3.js +0 -311
- package/dist/command-palette-BhJwm6cS.js +0 -344
- package/dist/container-BhnrGPu-.js +0 -36
- package/dist/css-Cgj6sCHn.js +0 -2
- package/dist/date-picker-Jk8SpoiO.js +0 -245
- package/dist/dialog-fhS07G41.js +0 -187
- package/dist/divider-v_78HYF5.js +0 -79
- package/dist/field-anatomy-BzGw1Ch9.js +0 -105
- package/dist/flex-COZzFqI8.js +0 -22
- package/dist/kbd-CeP8Kfvp.js +0 -61
- package/dist/menu-B6KCbLCr.js +0 -196
- package/dist/navigation-BDht6S2-.js +0 -182
- package/dist/pagination-B50PCaDU.js +0 -151
- package/dist/pill-2_XzBdkD.js +0 -51
- package/dist/popover-DRHbeIVq.js +0 -103
- package/dist/progress-CpsskKTD.js +0 -85
- package/dist/radio-group-DPI5KUCj.js +0 -136
- package/dist/select-C1xGrOhT.js +0 -266
- package/dist/skeleton-DitdP-yz.js +0 -49
- package/dist/spinner-CFq5HPoo.js +0 -51
- package/dist/stack-D_g6NJzo.js +0 -21
- package/dist/switch-B5TTU-oJ.js +0 -138
- package/dist/tabs-C26PWl2c.js +0 -183
- package/dist/theme-root-BRLIA4eb.js +0 -22
- package/dist/toast-B1PXuwZ4.js +0 -277
- package/dist/toggle-group-N_owicT0.js +0 -156
- package/dist/tooltip-BJPisf60.js +0 -98
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { r as e, t } from "./sx-Dx9JUKp5.js";
|
|
3
|
+
import { n } from "./focus-ring-BK5W5_NY.js";
|
|
4
|
+
import { n as r, t as i } from "./media-D_eA_I-e.js";
|
|
5
|
+
import { t as a } from "./use-controlled-state-CVXDa-qM.js";
|
|
6
|
+
import { createContext as o, useContext as s, useEffect as c, useId as l, useImperativeHandle as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
7
|
+
import { vars as h } from "@jfrader/tokens/vars";
|
|
8
|
+
import { jsx as g, jsxs as _ } from "@emotion/react/jsx-runtime";
|
|
9
|
+
//#region src/components/calendar/calendar.styles.ts
|
|
10
|
+
var v = e({
|
|
11
|
+
display: "inline-flex",
|
|
12
|
+
flexDirection: "column",
|
|
13
|
+
gap: h.space[2],
|
|
14
|
+
fontFamily: h.font.sans,
|
|
15
|
+
color: h.color.text
|
|
16
|
+
}), y = e({
|
|
17
|
+
display: "flex",
|
|
18
|
+
alignItems: "center",
|
|
19
|
+
gap: h.space[2]
|
|
20
|
+
}), b = e({
|
|
21
|
+
flex: 1,
|
|
22
|
+
textAlign: "center",
|
|
23
|
+
fontSize: h.textSize.sm,
|
|
24
|
+
fontWeight: h.fontWeight.semibold
|
|
25
|
+
}), x = {
|
|
26
|
+
transitionDuration: h.motion.duration.fast,
|
|
27
|
+
transitionTimingFunction: h.motion.easeStandard,
|
|
28
|
+
[r]: { transitionDuration: "0s" }
|
|
29
|
+
}, S = e({
|
|
30
|
+
appearance: "none",
|
|
31
|
+
display: "inline-flex",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
inlineSize: "32px",
|
|
35
|
+
blockSize: "32px",
|
|
36
|
+
padding: 0,
|
|
37
|
+
border: `1px solid ${h.color.borderControl}`,
|
|
38
|
+
borderRadius: h.radius.sm,
|
|
39
|
+
backgroundColor: "transparent",
|
|
40
|
+
font: "inherit",
|
|
41
|
+
fontSize: h.textSize.lg,
|
|
42
|
+
lineHeight: 1,
|
|
43
|
+
color: h.color.text,
|
|
44
|
+
cursor: "pointer",
|
|
45
|
+
transitionProperty: "background-color",
|
|
46
|
+
...x,
|
|
47
|
+
"&:hover:not([aria-disabled=\"true\"])": { backgroundColor: h.color.surfaceHover },
|
|
48
|
+
"&[aria-disabled=\"true\"]": {
|
|
49
|
+
opacity: .55,
|
|
50
|
+
cursor: "not-allowed"
|
|
51
|
+
},
|
|
52
|
+
"&:focus-visible": { ...n }
|
|
53
|
+
}), C = e({
|
|
54
|
+
display: "inline-block",
|
|
55
|
+
"&:dir(rtl)": { transform: "scaleX(-1)" }
|
|
56
|
+
}), w = e({
|
|
57
|
+
borderCollapse: "separate",
|
|
58
|
+
borderSpacing: h.space[1],
|
|
59
|
+
marginInline: `calc(-1 * ${h.space[1]})`
|
|
60
|
+
}), T = e({
|
|
61
|
+
paddingBlock: h.space[1],
|
|
62
|
+
fontSize: h.textSize.xs,
|
|
63
|
+
fontWeight: h.fontWeight.medium,
|
|
64
|
+
color: h.color.textMuted,
|
|
65
|
+
textAlign: "center"
|
|
66
|
+
}), E = e({ padding: 0 }), D = e({
|
|
67
|
+
appearance: "none",
|
|
68
|
+
display: "inline-flex",
|
|
69
|
+
alignItems: "center",
|
|
70
|
+
justifyContent: "center",
|
|
71
|
+
inlineSize: "36px",
|
|
72
|
+
blockSize: "36px",
|
|
73
|
+
padding: 0,
|
|
74
|
+
border: "1px solid transparent",
|
|
75
|
+
borderRadius: h.radius.sm,
|
|
76
|
+
backgroundColor: "transparent",
|
|
77
|
+
font: "inherit",
|
|
78
|
+
fontSize: h.textSize.sm,
|
|
79
|
+
fontVariantNumeric: "tabular-nums",
|
|
80
|
+
color: h.color.text,
|
|
81
|
+
cursor: "pointer",
|
|
82
|
+
transitionProperty: "background-color, border-color, color",
|
|
83
|
+
...x,
|
|
84
|
+
"&:hover:not(:disabled):not([data-selected])": { backgroundColor: h.color.surfaceHover },
|
|
85
|
+
"&[data-today]": {
|
|
86
|
+
borderColor: h.color.borderControl,
|
|
87
|
+
fontWeight: h.fontWeight.semibold
|
|
88
|
+
},
|
|
89
|
+
"&[data-selected]": {
|
|
90
|
+
backgroundColor: h.color.accent,
|
|
91
|
+
borderColor: h.color.accent,
|
|
92
|
+
color: h.color.accentContrast,
|
|
93
|
+
fontWeight: h.fontWeight.semibold
|
|
94
|
+
},
|
|
95
|
+
"&[data-selected]:hover": { backgroundColor: h.color.accentHover },
|
|
96
|
+
"&:disabled": {
|
|
97
|
+
opacity: .55,
|
|
98
|
+
cursor: "not-allowed",
|
|
99
|
+
textDecoration: "line-through"
|
|
100
|
+
},
|
|
101
|
+
"&:focus-visible": { ...n },
|
|
102
|
+
[i]: { "&[data-selected]": {
|
|
103
|
+
forcedColorAdjust: "none",
|
|
104
|
+
backgroundColor: "Highlight",
|
|
105
|
+
borderColor: "Highlight",
|
|
106
|
+
color: "HighlightText"
|
|
107
|
+
} }
|
|
108
|
+
}), O = /^\d{4}-\d{2}-\d{2}$/, k = /^\d{4}-\d{2}$/, A = 12, j = 0, M = "2026-01-04", N = (e, t) => String(e).padStart(t, "0");
|
|
109
|
+
function P(e, t, n) {
|
|
110
|
+
let r = new Date(Date.UTC(0, 0, 1));
|
|
111
|
+
return r.setUTCFullYear(e, t, n), r;
|
|
112
|
+
}
|
|
113
|
+
function F(e) {
|
|
114
|
+
let [t = NaN, n = NaN, r = 1] = e.split("-").map(Number);
|
|
115
|
+
return P(t, n - 1, r);
|
|
116
|
+
}
|
|
117
|
+
var I = (e) => `${N(e.getUTCFullYear(), 4)}-${N(e.getUTCMonth() + 1, 2)}-${N(e.getUTCDate(), 2)}`, L = (e) => e !== void 0 && O.test(e) && I(F(e)) === e, R = (e) => e !== void 0 && k.test(e) && L(`${e}-01`), z = (e) => e.slice(0, 7), B = (e) => `${e}-01`;
|
|
118
|
+
function V(e, t) {
|
|
119
|
+
let n = F(e);
|
|
120
|
+
return I(P(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate() + t));
|
|
121
|
+
}
|
|
122
|
+
function H(e, t) {
|
|
123
|
+
let n = F(e), r = P(n.getUTCFullYear(), n.getUTCMonth() + t, 1), i = P(r.getUTCFullYear(), r.getUTCMonth() + 1, 0).getUTCDate();
|
|
124
|
+
return I(P(r.getUTCFullYear(), r.getUTCMonth(), Math.min(n.getUTCDate(), i)));
|
|
125
|
+
}
|
|
126
|
+
var U = (e, t) => z(H(B(e), t)), W = (e) => V(B(U(e, 1)), -1), G = (e, t, n) => (t === void 0 || e >= t) && (n === void 0 || e <= n);
|
|
127
|
+
function ee(e, t, n) {
|
|
128
|
+
return t !== void 0 && e < t ? t : n !== void 0 && e > n ? n : e;
|
|
129
|
+
}
|
|
130
|
+
var K = (e, t) => (F(e).getUTCDay() - t + 7) % 7;
|
|
131
|
+
function q(e) {
|
|
132
|
+
let t = new Intl.Locale(e), n = t.getWeekInfo?.() ?? t.weekInfo;
|
|
133
|
+
return n ? n.firstDay % 7 : j;
|
|
134
|
+
}
|
|
135
|
+
var J = {
|
|
136
|
+
calendar: "gregory",
|
|
137
|
+
timeZone: "UTC"
|
|
138
|
+
};
|
|
139
|
+
function te(e) {
|
|
140
|
+
return {
|
|
141
|
+
month: new Intl.DateTimeFormat(e, {
|
|
142
|
+
...J,
|
|
143
|
+
month: "long",
|
|
144
|
+
year: "numeric"
|
|
145
|
+
}),
|
|
146
|
+
day: new Intl.DateTimeFormat(e, {
|
|
147
|
+
...J,
|
|
148
|
+
day: "numeric"
|
|
149
|
+
}),
|
|
150
|
+
date: new Intl.DateTimeFormat(e, {
|
|
151
|
+
...J,
|
|
152
|
+
dateStyle: "long"
|
|
153
|
+
}),
|
|
154
|
+
weekdayShort: new Intl.DateTimeFormat(e, {
|
|
155
|
+
...J,
|
|
156
|
+
weekday: "short"
|
|
157
|
+
}),
|
|
158
|
+
weekdayLong: new Intl.DateTimeFormat(e, {
|
|
159
|
+
...J,
|
|
160
|
+
weekday: "long"
|
|
161
|
+
})
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
var ne = () => typeof navigator > "u" ? void 0 : navigator.language, Y = (e) => (t) => V(t, e), X = (e) => (t, { shiftKey: n }) => H(t, n ? e * A : e), Z = {
|
|
165
|
+
ArrowDown: Y(7),
|
|
166
|
+
ArrowUp: Y(-7),
|
|
167
|
+
Home: (e, { firstDayOfWeek: t }) => V(e, -K(e, t)),
|
|
168
|
+
End: (e, { firstDayOfWeek: t }) => V(e, 6 - K(e, t)),
|
|
169
|
+
PageUp: X(-1),
|
|
170
|
+
PageDown: X(1)
|
|
171
|
+
}, re = {
|
|
172
|
+
ltr: {
|
|
173
|
+
...Z,
|
|
174
|
+
ArrowRight: Y(1),
|
|
175
|
+
ArrowLeft: Y(-1)
|
|
176
|
+
},
|
|
177
|
+
rtl: {
|
|
178
|
+
...Z,
|
|
179
|
+
ArrowRight: Y(-1),
|
|
180
|
+
ArrowLeft: Y(1)
|
|
181
|
+
}
|
|
182
|
+
}, Q = o(null);
|
|
183
|
+
function $(e) {
|
|
184
|
+
let t = s(Q);
|
|
185
|
+
if (!t) throw Error(`Calendar.${e} must be rendered inside <Calendar>.`);
|
|
186
|
+
return t;
|
|
187
|
+
}
|
|
188
|
+
var ie = "‹", ae = "›";
|
|
189
|
+
function oe({ ref: e, value: n, defaultValue: r, onValueChange: i, visibleMonth: o, defaultVisibleMonth: s, onVisibleMonthChange: c, min: u, max: d, locale: p, firstDayOfWeek: h, className: _, sx: y, ...b }) {
|
|
190
|
+
let x = `${l()}-label`, S = /* @__PURE__ */ new Date(), C = I(P(S.getFullYear(), S.getMonth(), S.getDate())), w = f(() => new Intl.DateTimeFormat(p ?? ne(), J).resolvedOptions().locale, [p]), T = f(() => te(w), [w]), E = f(() => q(w), [w]), D = h ?? E, [O, k] = a(n, r, i), A = n ?? r, [j, M] = a(o, s ?? z(L(A) ? A : C), c), N = R(j) ? j : z(C), F = L(u) ? u : void 0, B = L(d) ? d : void 0, [V, H] = m(null), [U, W] = m(!1), G = f(() => ({
|
|
191
|
+
value: O,
|
|
192
|
+
visibleMonth: N,
|
|
193
|
+
today: C,
|
|
194
|
+
min: F,
|
|
195
|
+
max: B,
|
|
196
|
+
firstDayOfWeek: D,
|
|
197
|
+
formatters: T,
|
|
198
|
+
focus: V,
|
|
199
|
+
setFocus: H,
|
|
200
|
+
requestValue: k,
|
|
201
|
+
requestVisibleMonth: M,
|
|
202
|
+
labelId: x,
|
|
203
|
+
hasHeader: U,
|
|
204
|
+
setHasHeader: W
|
|
205
|
+
}), [
|
|
206
|
+
O,
|
|
207
|
+
N,
|
|
208
|
+
C,
|
|
209
|
+
F,
|
|
210
|
+
B,
|
|
211
|
+
D,
|
|
212
|
+
T,
|
|
213
|
+
V,
|
|
214
|
+
k,
|
|
215
|
+
M,
|
|
216
|
+
x,
|
|
217
|
+
U
|
|
218
|
+
]);
|
|
219
|
+
return /* @__PURE__ */ g(Q.Provider, {
|
|
220
|
+
value: G,
|
|
221
|
+
children: /* @__PURE__ */ g(t, {
|
|
222
|
+
className: _,
|
|
223
|
+
styles: v,
|
|
224
|
+
sx: y,
|
|
225
|
+
children: (t) => /* @__PURE__ */ g("div", {
|
|
226
|
+
...b,
|
|
227
|
+
ref: e,
|
|
228
|
+
"data-ui": "calendar",
|
|
229
|
+
className: t
|
|
230
|
+
})
|
|
231
|
+
})
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
oe.displayName = "Calendar";
|
|
235
|
+
function se({ ref: e, className: n, sx: r, ...i }) {
|
|
236
|
+
let { visibleMonth: a, min: o, max: s, formatters: c, requestVisibleMonth: l, labelId: u, setHasHeader: f } = $("Header");
|
|
237
|
+
d(() => (f(!0), () => f(!1)), [f]);
|
|
238
|
+
let p = U(a, -1), m = U(a, 1), h = o !== void 0 && W(p) < o, v = s !== void 0 && B(m) > s, x = (e) => c.month.format(F(B(e)));
|
|
239
|
+
return /* @__PURE__ */ g(t, {
|
|
240
|
+
className: n,
|
|
241
|
+
styles: y,
|
|
242
|
+
sx: r,
|
|
243
|
+
children: (t) => /* @__PURE__ */ _("div", {
|
|
244
|
+
...i,
|
|
245
|
+
ref: e,
|
|
246
|
+
"data-ui": "calendar-header",
|
|
247
|
+
className: t,
|
|
248
|
+
children: [
|
|
249
|
+
/* @__PURE__ */ g("button", {
|
|
250
|
+
type: "button",
|
|
251
|
+
"data-ui": "calendar-previous",
|
|
252
|
+
"aria-label": x(p),
|
|
253
|
+
"aria-disabled": h || void 0,
|
|
254
|
+
onClick: () => {
|
|
255
|
+
h || l(p);
|
|
256
|
+
},
|
|
257
|
+
css: S,
|
|
258
|
+
children: /* @__PURE__ */ g("span", {
|
|
259
|
+
"aria-hidden": "true",
|
|
260
|
+
css: C,
|
|
261
|
+
children: ie
|
|
262
|
+
})
|
|
263
|
+
}),
|
|
264
|
+
/* @__PURE__ */ g("span", {
|
|
265
|
+
id: u,
|
|
266
|
+
"aria-live": "polite",
|
|
267
|
+
"aria-atomic": "true",
|
|
268
|
+
"data-ui": "calendar-label",
|
|
269
|
+
css: b,
|
|
270
|
+
children: x(a)
|
|
271
|
+
}),
|
|
272
|
+
/* @__PURE__ */ g("button", {
|
|
273
|
+
type: "button",
|
|
274
|
+
"data-ui": "calendar-next",
|
|
275
|
+
"aria-label": x(m),
|
|
276
|
+
"aria-disabled": v || void 0,
|
|
277
|
+
onClick: () => {
|
|
278
|
+
v || l(m);
|
|
279
|
+
},
|
|
280
|
+
css: S,
|
|
281
|
+
children: /* @__PURE__ */ g("span", {
|
|
282
|
+
"aria-hidden": "true",
|
|
283
|
+
css: C,
|
|
284
|
+
children: ae
|
|
285
|
+
})
|
|
286
|
+
})
|
|
287
|
+
]
|
|
288
|
+
})
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
se.displayName = "Calendar.Header";
|
|
292
|
+
function ce({ date: e, isTabStop: t }) {
|
|
293
|
+
let { value: n, today: r, min: i, max: a, formatters: o, setFocus: s, requestValue: c } = $("Grid"), l = n === e, u = r === e, d = F(e);
|
|
294
|
+
return /* @__PURE__ */ g("td", {
|
|
295
|
+
role: "gridcell",
|
|
296
|
+
"aria-selected": l || void 0,
|
|
297
|
+
css: E,
|
|
298
|
+
children: /* @__PURE__ */ g("button", {
|
|
299
|
+
type: "button",
|
|
300
|
+
"data-ui": "calendar-day",
|
|
301
|
+
"data-date": e,
|
|
302
|
+
"data-today": u || void 0,
|
|
303
|
+
"data-selected": l || void 0,
|
|
304
|
+
"aria-current": u ? "date" : void 0,
|
|
305
|
+
"aria-label": o.date.format(d),
|
|
306
|
+
tabIndex: t ? 0 : -1,
|
|
307
|
+
disabled: !G(e, i, a),
|
|
308
|
+
onFocus: () => s({
|
|
309
|
+
date: e,
|
|
310
|
+
fallback: e
|
|
311
|
+
}),
|
|
312
|
+
onClick: () => {
|
|
313
|
+
s({
|
|
314
|
+
date: e,
|
|
315
|
+
fallback: e
|
|
316
|
+
}), c(e);
|
|
317
|
+
},
|
|
318
|
+
css: D,
|
|
319
|
+
children: o.day.format(d)
|
|
320
|
+
})
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
function le({ ref: e, onKeyDown: n, "aria-labelledby": r, "aria-label": i, className: a, sx: o, ...s }) {
|
|
324
|
+
let { value: l, visibleMonth: d, today: f, min: m, max: h, firstDayOfWeek: v, formatters: y, focus: b, setFocus: x, requestVisibleMonth: S, labelId: C, hasHeader: D } = $("Grid"), O = p(null);
|
|
325
|
+
u(e, () => O.current, []);
|
|
326
|
+
let k = p(!1), A = B(d), j = F(W(d)).getUTCDate(), N = Array.from({ length: j }, (e, t) => V(A, t)), P = (e) => e !== void 0 && N.includes(e) && G(e, m, h), I = [
|
|
327
|
+
b?.date,
|
|
328
|
+
b?.fallback,
|
|
329
|
+
l,
|
|
330
|
+
f
|
|
331
|
+
].find(P) ?? N.find((e) => G(e, m, h)), L = [...Array(K(A, v)).fill(null), ...N], R = Array.from({ length: Math.ceil(L.length / 7) }, (e, t) => Array.from({ length: 7 }, (e, n) => L[t * 7 + n] ?? null)), H = Array.from({ length: 7 }, (e, t) => F(V(M, (v + t) % 7)));
|
|
332
|
+
c(() => {
|
|
333
|
+
k.current && (k.current = !1, O.current?.querySelector(`[data-date="${I}"]`)?.focus());
|
|
334
|
+
});
|
|
335
|
+
let U = (e) => {
|
|
336
|
+
n?.(e);
|
|
337
|
+
let t = O.current;
|
|
338
|
+
if (e.defaultPrevented || !t) return;
|
|
339
|
+
let r = e.target.dataset.date;
|
|
340
|
+
if (!P(r)) return;
|
|
341
|
+
let i = re[getComputedStyle(t).direction === "rtl" ? "rtl" : "ltr"][e.key];
|
|
342
|
+
if (!i) return;
|
|
343
|
+
e.preventDefault();
|
|
344
|
+
let a = ee(i(r, {
|
|
345
|
+
firstDayOfWeek: v,
|
|
346
|
+
shiftKey: e.shiftKey
|
|
347
|
+
}), m, h);
|
|
348
|
+
a !== r && (x({
|
|
349
|
+
date: a,
|
|
350
|
+
fallback: r
|
|
351
|
+
}), k.current = !0, z(a) !== d && S(z(a)));
|
|
352
|
+
}, q = [r, D ? C : void 0].filter(Boolean).join(" ") || void 0, J = y.month.format(F(A));
|
|
353
|
+
return /* @__PURE__ */ g(t, {
|
|
354
|
+
className: a,
|
|
355
|
+
styles: w,
|
|
356
|
+
sx: o,
|
|
357
|
+
children: (e) => /* @__PURE__ */ _("table", {
|
|
358
|
+
...s,
|
|
359
|
+
ref: O,
|
|
360
|
+
role: "grid",
|
|
361
|
+
"aria-labelledby": q,
|
|
362
|
+
"aria-label": q === void 0 ? i ?? J : i,
|
|
363
|
+
"data-ui": "calendar-grid",
|
|
364
|
+
onKeyDown: U,
|
|
365
|
+
className: e,
|
|
366
|
+
children: [/* @__PURE__ */ g("thead", { children: /* @__PURE__ */ g("tr", {
|
|
367
|
+
role: "row",
|
|
368
|
+
children: H.map((e) => /* @__PURE__ */ g("th", {
|
|
369
|
+
role: "columnheader",
|
|
370
|
+
scope: "col",
|
|
371
|
+
abbr: y.weekdayLong.format(e),
|
|
372
|
+
css: T,
|
|
373
|
+
children: y.weekdayShort.format(e)
|
|
374
|
+
}, e.getUTCDay()))
|
|
375
|
+
}) }), /* @__PURE__ */ g("tbody", { children: R.map((e, t) => /* @__PURE__ */ g("tr", {
|
|
376
|
+
role: "row",
|
|
377
|
+
children: e.map((e, t) => e === null ? /* @__PURE__ */ g("td", {
|
|
378
|
+
role: "gridcell",
|
|
379
|
+
css: E
|
|
380
|
+
}, `empty-${t}`) : /* @__PURE__ */ g(ce, {
|
|
381
|
+
date: e,
|
|
382
|
+
isTabStop: e === I
|
|
383
|
+
}, e))
|
|
384
|
+
}, t)) })]
|
|
385
|
+
})
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
le.displayName = "Calendar.Grid";
|
|
389
|
+
var ue = Object.assign(oe, {
|
|
390
|
+
Header: se,
|
|
391
|
+
Grid: le
|
|
392
|
+
});
|
|
393
|
+
//#endregion
|
|
394
|
+
export { ue as t };
|
package/dist/calendar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as Calendar } from "./calendar-
|
|
2
|
+
export { t as Calendar } from "./calendar-C9Yad_-w.js";
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { r as e, t } from "./sx-Dx9JUKp5.js";
|
|
3
|
+
import { createContext as n, useContext as r } from "react";
|
|
4
|
+
import { vars as i } from "@jfrader/tokens/vars";
|
|
5
|
+
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
6
|
+
//#region src/components/card/card.tsx
|
|
7
|
+
var o = n(void 0);
|
|
8
|
+
function s(...e) {
|
|
9
|
+
return e.filter(Boolean).join(" ") || void 0;
|
|
10
|
+
}
|
|
11
|
+
var c = e({
|
|
12
|
+
boxSizing: "border-box",
|
|
13
|
+
minInlineSize: 0,
|
|
14
|
+
backgroundColor: i.color.surfaceRaised,
|
|
15
|
+
border: `1px solid ${i.color.border}`,
|
|
16
|
+
borderRadius: i.radius.lg,
|
|
17
|
+
paddingBlock: i.space[4],
|
|
18
|
+
paddingInline: i.space[5],
|
|
19
|
+
fontFamily: i.font.sans,
|
|
20
|
+
lineHeight: i.lineHeight.base,
|
|
21
|
+
color: i.color.text
|
|
22
|
+
}), l = {
|
|
23
|
+
flat: e({ boxShadow: "none" }),
|
|
24
|
+
raised: e({ boxShadow: i.shadow.raised })
|
|
25
|
+
}, u = e({
|
|
26
|
+
display: "grid",
|
|
27
|
+
gap: i.space[1],
|
|
28
|
+
marginBlockEnd: i.space[4]
|
|
29
|
+
}), d = e({
|
|
30
|
+
margin: 0,
|
|
31
|
+
fontSize: i.textSize.md,
|
|
32
|
+
fontWeight: i.fontWeight.semibold,
|
|
33
|
+
lineHeight: i.lineHeight.tight,
|
|
34
|
+
color: i.color.text
|
|
35
|
+
}), f = e({
|
|
36
|
+
margin: 0,
|
|
37
|
+
fontSize: i.textSize.sm,
|
|
38
|
+
color: i.color.textMuted
|
|
39
|
+
}), p = e({
|
|
40
|
+
fontSize: i.textSize.sm,
|
|
41
|
+
color: i.color.text
|
|
42
|
+
}), m = e({
|
|
43
|
+
display: "flex",
|
|
44
|
+
flexWrap: "wrap",
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
justifyContent: "space-between",
|
|
47
|
+
gap: i.space[2],
|
|
48
|
+
marginBlockStart: i.space[4],
|
|
49
|
+
paddingBlockStart: i.space[4],
|
|
50
|
+
borderBlockStart: `1px solid ${i.color.borderSubtle}`,
|
|
51
|
+
"& > :only-child": { marginInlineStart: "auto" }
|
|
52
|
+
});
|
|
53
|
+
function h({ ref: e, variant: n = "raised", slotProps: r, className: i, sx: u, ...d }) {
|
|
54
|
+
return /* @__PURE__ */ a(o.Provider, {
|
|
55
|
+
value: r,
|
|
56
|
+
children: /* @__PURE__ */ a(t, {
|
|
57
|
+
className: s(r?.root?.className, i),
|
|
58
|
+
styles: [
|
|
59
|
+
c,
|
|
60
|
+
l[n],
|
|
61
|
+
r?.root?.css
|
|
62
|
+
],
|
|
63
|
+
sx: u,
|
|
64
|
+
children: (t) => /* @__PURE__ */ a("div", {
|
|
65
|
+
...d,
|
|
66
|
+
ref: e,
|
|
67
|
+
"data-ui": "card",
|
|
68
|
+
"data-variant": n,
|
|
69
|
+
className: t
|
|
70
|
+
})
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
h.displayName = "Card";
|
|
75
|
+
function g({ ref: e, className: n, sx: i, ...c }) {
|
|
76
|
+
let l = r(o)?.header;
|
|
77
|
+
return /* @__PURE__ */ a(t, {
|
|
78
|
+
className: s(l?.className, n),
|
|
79
|
+
styles: [u, l?.css],
|
|
80
|
+
sx: i,
|
|
81
|
+
children: (t) => /* @__PURE__ */ a("div", {
|
|
82
|
+
...c,
|
|
83
|
+
ref: e,
|
|
84
|
+
"data-ui": "card-header",
|
|
85
|
+
className: t
|
|
86
|
+
})
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
g.displayName = "Card.Header";
|
|
90
|
+
function _({ ref: e, level: n = 3, className: i, sx: c, ...l }) {
|
|
91
|
+
let u = r(o)?.title, f = `h${n}`;
|
|
92
|
+
return /* @__PURE__ */ a(t, {
|
|
93
|
+
className: s(u?.className, i),
|
|
94
|
+
styles: [d, u?.css],
|
|
95
|
+
sx: c,
|
|
96
|
+
children: (t) => /* @__PURE__ */ a(f, {
|
|
97
|
+
...l,
|
|
98
|
+
ref: e,
|
|
99
|
+
"data-ui": "card-title",
|
|
100
|
+
className: t
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
_.displayName = "Card.Title";
|
|
105
|
+
function v({ ref: e, className: n, sx: i, ...c }) {
|
|
106
|
+
let l = r(o)?.description;
|
|
107
|
+
return /* @__PURE__ */ a(t, {
|
|
108
|
+
className: s(l?.className, n),
|
|
109
|
+
styles: [f, l?.css],
|
|
110
|
+
sx: i,
|
|
111
|
+
children: (t) => /* @__PURE__ */ a("p", {
|
|
112
|
+
...c,
|
|
113
|
+
ref: e,
|
|
114
|
+
"data-ui": "card-description",
|
|
115
|
+
className: t
|
|
116
|
+
})
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
v.displayName = "Card.Description";
|
|
120
|
+
function y({ ref: e, className: n, sx: i, ...c }) {
|
|
121
|
+
let l = r(o)?.content;
|
|
122
|
+
return /* @__PURE__ */ a(t, {
|
|
123
|
+
className: s(l?.className, n),
|
|
124
|
+
styles: [p, l?.css],
|
|
125
|
+
sx: i,
|
|
126
|
+
children: (t) => /* @__PURE__ */ a("div", {
|
|
127
|
+
...c,
|
|
128
|
+
ref: e,
|
|
129
|
+
"data-ui": "card-content",
|
|
130
|
+
className: t
|
|
131
|
+
})
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
y.displayName = "Card.Content";
|
|
135
|
+
function b({ ref: e, className: n, sx: i, ...c }) {
|
|
136
|
+
let l = r(o)?.footer;
|
|
137
|
+
return /* @__PURE__ */ a(t, {
|
|
138
|
+
className: s(l?.className, n),
|
|
139
|
+
styles: [m, l?.css],
|
|
140
|
+
sx: i,
|
|
141
|
+
children: (t) => /* @__PURE__ */ a("div", {
|
|
142
|
+
...c,
|
|
143
|
+
ref: e,
|
|
144
|
+
"data-ui": "card-footer",
|
|
145
|
+
className: t
|
|
146
|
+
})
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
b.displayName = "Card.Footer";
|
|
150
|
+
var x = Object.assign(h, {
|
|
151
|
+
Header: g,
|
|
152
|
+
Title: _,
|
|
153
|
+
Description: v,
|
|
154
|
+
Content: y,
|
|
155
|
+
Footer: b
|
|
156
|
+
});
|
|
157
|
+
//#endregion
|
|
158
|
+
export { x as t };
|
package/dist/card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as Card } from "./card-
|
|
2
|
+
export { t as Card } from "./card-D-aI2QHx.js";
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { r as e, t } from "./sx-Dx9JUKp5.js";
|
|
3
|
+
import { n } from "./media-D_eA_I-e.js";
|
|
4
|
+
import { t as r } from "./renderable-DzcIj1Lo.js";
|
|
5
|
+
import { i, n as a, r as o, t as s } from "./choice-control-5kJkLXgv.js";
|
|
6
|
+
import { useEffect as c, useId as l, useImperativeHandle as u, useRef as d } from "react";
|
|
7
|
+
import { vars as f } from "@jfrader/tokens/vars";
|
|
8
|
+
import { jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
9
|
+
//#region src/components/checkbox/checkbox.tsx
|
|
10
|
+
var h = {
|
|
11
|
+
sm: "16px",
|
|
12
|
+
md: "20px"
|
|
13
|
+
}, g = e({
|
|
14
|
+
"input:checked + span svg": { opacity: 1 },
|
|
15
|
+
"&[data-indeterminate] input + span": {
|
|
16
|
+
backgroundColor: f.color.accent,
|
|
17
|
+
borderColor: f.color.accent
|
|
18
|
+
},
|
|
19
|
+
"&[data-indeterminate] input + span svg": { opacity: 1 }
|
|
20
|
+
}), _ = e({
|
|
21
|
+
display: "inline-flex",
|
|
22
|
+
alignItems: "center",
|
|
23
|
+
justifyContent: "center",
|
|
24
|
+
flexShrink: 0,
|
|
25
|
+
boxSizing: "border-box",
|
|
26
|
+
border: `1px solid ${f.color.borderControl}`,
|
|
27
|
+
borderRadius: f.radius.sm,
|
|
28
|
+
backgroundColor: f.color.surfaceRaised,
|
|
29
|
+
color: f.color.accentContrast,
|
|
30
|
+
transitionProperty: "background-color, border-color",
|
|
31
|
+
transitionDuration: f.motion.duration.fast,
|
|
32
|
+
transitionTimingFunction: f.motion.easeStandard,
|
|
33
|
+
"& svg": {
|
|
34
|
+
inlineSize: "75%",
|
|
35
|
+
blockSize: "75%",
|
|
36
|
+
opacity: 0
|
|
37
|
+
},
|
|
38
|
+
[n]: { transitionDuration: "0s" }
|
|
39
|
+
}), v = {
|
|
40
|
+
sm: e({
|
|
41
|
+
inlineSize: h.sm,
|
|
42
|
+
blockSize: h.sm
|
|
43
|
+
}),
|
|
44
|
+
md: e({
|
|
45
|
+
inlineSize: h.md,
|
|
46
|
+
blockSize: h.md
|
|
47
|
+
})
|
|
48
|
+
}, y = {
|
|
49
|
+
sm: e({ fontSize: f.textSize.sm }),
|
|
50
|
+
md: e({ fontSize: f.textSize.md })
|
|
51
|
+
}, b = e({
|
|
52
|
+
fontSize: f.textSize.sm,
|
|
53
|
+
color: f.color.textMuted
|
|
54
|
+
}), x = {
|
|
55
|
+
sm: e({ marginInlineStart: `calc(${h.sm} + ${f.space[2]})` }),
|
|
56
|
+
md: e({ marginInlineStart: `calc(${h.md} + ${f.space[2]})` })
|
|
57
|
+
};
|
|
58
|
+
function S({ indeterminate: e }) {
|
|
59
|
+
return /* @__PURE__ */ p("svg", {
|
|
60
|
+
viewBox: "0 0 16 16",
|
|
61
|
+
fill: "none",
|
|
62
|
+
stroke: "currentColor",
|
|
63
|
+
strokeWidth: "2",
|
|
64
|
+
strokeLinecap: "round",
|
|
65
|
+
strokeLinejoin: "round",
|
|
66
|
+
children: e ? /* @__PURE__ */ p("line", {
|
|
67
|
+
x1: "4",
|
|
68
|
+
y1: "8",
|
|
69
|
+
x2: "12",
|
|
70
|
+
y2: "8"
|
|
71
|
+
}) : /* @__PURE__ */ p("polyline", { points: "3.5 8.5 6.5 11.5 12.5 4.5" })
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function C({ ref: e, label: n, description: f, indeterminate: h = !1, size: C = "md", onChange: w, onCheckedChange: T, slotProps: E, className: D, sx: O, "aria-labelledby": k, "aria-describedby": A, ...j }) {
|
|
75
|
+
let M = d(null);
|
|
76
|
+
u(e, () => M.current, []), c(() => {
|
|
77
|
+
M.current && (M.current.indeterminate = h);
|
|
78
|
+
}, [h]);
|
|
79
|
+
let N = l(), P = `${N}-label`, F = `${N}-description`, I = r(n), L = r(f), R = [k, I && P].filter(Boolean).join(" ") || void 0, z = [A, L && F].filter(Boolean).join(" ") || void 0, B = [D, E?.root?.className].filter(Boolean).join(" ") || void 0, V = (e) => {
|
|
80
|
+
h && (e.currentTarget.indeterminate = !0), w?.(e), T?.(e.currentTarget.checked);
|
|
81
|
+
};
|
|
82
|
+
return /* @__PURE__ */ p(t, {
|
|
83
|
+
className: B,
|
|
84
|
+
styles: [
|
|
85
|
+
o,
|
|
86
|
+
g,
|
|
87
|
+
a,
|
|
88
|
+
E?.root?.css
|
|
89
|
+
],
|
|
90
|
+
sx: O,
|
|
91
|
+
children: (e) => /* @__PURE__ */ m("label", {
|
|
92
|
+
"data-ui": "checkbox",
|
|
93
|
+
"data-indeterminate": h || void 0,
|
|
94
|
+
className: e,
|
|
95
|
+
children: [/* @__PURE__ */ m("span", {
|
|
96
|
+
css: i,
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ p("input", {
|
|
99
|
+
...j,
|
|
100
|
+
ref: M,
|
|
101
|
+
type: "checkbox",
|
|
102
|
+
"aria-labelledby": R,
|
|
103
|
+
"aria-describedby": z,
|
|
104
|
+
"aria-checked": h ? "mixed" : void 0,
|
|
105
|
+
onChange: V,
|
|
106
|
+
css: s
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ p("span", {
|
|
109
|
+
"aria-hidden": "true",
|
|
110
|
+
className: E?.control?.className,
|
|
111
|
+
css: [
|
|
112
|
+
_,
|
|
113
|
+
v[C],
|
|
114
|
+
E?.control?.css
|
|
115
|
+
],
|
|
116
|
+
children: /* @__PURE__ */ p(S, { indeterminate: h })
|
|
117
|
+
}),
|
|
118
|
+
I && /* @__PURE__ */ p("span", {
|
|
119
|
+
id: P,
|
|
120
|
+
className: E?.label?.className,
|
|
121
|
+
css: [y[C], E?.label?.css],
|
|
122
|
+
children: n
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
}), L && /* @__PURE__ */ p("span", {
|
|
126
|
+
id: F,
|
|
127
|
+
className: E?.description?.className,
|
|
128
|
+
css: [
|
|
129
|
+
b,
|
|
130
|
+
x[C],
|
|
131
|
+
E?.description?.css
|
|
132
|
+
],
|
|
133
|
+
children: f
|
|
134
|
+
})]
|
|
135
|
+
})
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
C.displayName = "Checkbox";
|
|
139
|
+
//#endregion
|
|
140
|
+
export { C as t };
|
package/dist/checkbox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as Checkbox } from "./checkbox-
|
|
2
|
+
export { t as Checkbox } from "./checkbox-COYG6L7d.js";
|