@dimasbaguspm/versaur 0.0.3 → 0.0.4
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/components/button-icon/helpers.d.ts +11 -0
- package/dist/components/button-icon/types.d.ts +13 -17
- package/dist/components/icon/icon.d.ts +3 -3
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/icon/types.d.ts +22 -4
- package/dist/index.js +406 -359
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as wr from "react";
|
|
2
|
-
import
|
|
2
|
+
import z, { forwardRef as E, useState as U, useEffect as H, useCallback as ke, createContext as ee, useContext as re, useRef as ce, useId as Ee, useLayoutEffect as yr } from "react";
|
|
3
3
|
import { ChevronLeft as kr, ChevronRight as jr, Check as Nr, X as Cr } from "lucide-react";
|
|
4
4
|
var ve = { exports: {} }, be = {};
|
|
5
5
|
/**
|
|
@@ -12,7 +12,7 @@ var ve = { exports: {} }, be = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var Me;
|
|
15
|
-
function
|
|
15
|
+
function Ir() {
|
|
16
16
|
if (Me) return be;
|
|
17
17
|
Me = 1;
|
|
18
18
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
@@ -44,7 +44,7 @@ var me = {};
|
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
46
|
var Pe;
|
|
47
|
-
function
|
|
47
|
+
function zr() {
|
|
48
48
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
49
|
function e(u) {
|
|
50
50
|
if (u == null) return null;
|
|
@@ -76,14 +76,14 @@ function Ir() {
|
|
|
76
76
|
case A:
|
|
77
77
|
return (u._context.displayName || "Context") + ".Consumer";
|
|
78
78
|
case M:
|
|
79
|
-
var
|
|
80
|
-
return u = u.displayName, u || (u =
|
|
79
|
+
var I = u.render;
|
|
80
|
+
return u = u.displayName, u || (u = I.displayName || I.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
|
|
81
81
|
case J:
|
|
82
|
-
return
|
|
82
|
+
return I = u.displayName || null, I !== null ? I : e(u.type) || "Memo";
|
|
83
83
|
case j:
|
|
84
|
-
|
|
84
|
+
I = u._payload, u = u._init;
|
|
85
85
|
try {
|
|
86
|
-
return e(u(
|
|
86
|
+
return e(u(I));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -95,15 +95,15 @@ function Ir() {
|
|
|
95
95
|
function t(u) {
|
|
96
96
|
try {
|
|
97
97
|
r(u);
|
|
98
|
-
var
|
|
98
|
+
var I = !1;
|
|
99
99
|
} catch {
|
|
100
|
-
|
|
100
|
+
I = !0;
|
|
101
101
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
var T =
|
|
102
|
+
if (I) {
|
|
103
|
+
I = console;
|
|
104
|
+
var T = I.error, V = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
105
105
|
return T.call(
|
|
106
|
-
|
|
106
|
+
I,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
108
|
V
|
|
109
109
|
), r(u);
|
|
@@ -114,8 +114,8 @@ function Ir() {
|
|
|
114
114
|
if (typeof u == "object" && u !== null && u.$$typeof === j)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var I = e(u);
|
|
118
|
+
return I ? "<" + I + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
@@ -129,16 +129,16 @@ function Ir() {
|
|
|
129
129
|
}
|
|
130
130
|
function i(u) {
|
|
131
131
|
if (te.call(u, "key")) {
|
|
132
|
-
var
|
|
133
|
-
if (
|
|
132
|
+
var I = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
133
|
+
if (I && I.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return u.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function l(u,
|
|
137
|
+
function l(u, I) {
|
|
138
138
|
function T() {
|
|
139
139
|
X || (X = !0, console.error(
|
|
140
140
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
141
|
-
|
|
141
|
+
I
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
144
|
T.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
@@ -152,11 +152,11 @@ function Ir() {
|
|
|
152
152
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
153
|
)), u = this.props.ref, u !== void 0 ? u : null;
|
|
154
154
|
}
|
|
155
|
-
function d(u,
|
|
155
|
+
function d(u, I, T, V, P, $, ae, O) {
|
|
156
156
|
return T = $.ref, u = {
|
|
157
157
|
$$typeof: m,
|
|
158
158
|
type: u,
|
|
159
|
-
key:
|
|
159
|
+
key: I,
|
|
160
160
|
props: $,
|
|
161
161
|
_owner: P
|
|
162
162
|
}, (T !== void 0 ? T : null) !== null ? Object.defineProperty(u, "ref", {
|
|
@@ -184,8 +184,8 @@ function Ir() {
|
|
|
184
184
|
value: O
|
|
185
185
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
186
186
|
}
|
|
187
|
-
function f(u,
|
|
188
|
-
var B =
|
|
187
|
+
function f(u, I, T, V, P, $, ae, O) {
|
|
188
|
+
var B = I.children;
|
|
189
189
|
if (B !== void 0)
|
|
190
190
|
if (V)
|
|
191
191
|
if (xe(B)) {
|
|
@@ -197,9 +197,9 @@ function Ir() {
|
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
199
|
else g(B);
|
|
200
|
-
if (te.call(
|
|
200
|
+
if (te.call(I, "key")) {
|
|
201
201
|
B = e(u);
|
|
202
|
-
var Y = Object.keys(
|
|
202
|
+
var Y = Object.keys(I).filter(function(fe) {
|
|
203
203
|
return fe !== "key";
|
|
204
204
|
});
|
|
205
205
|
V = 0 < Y.length ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}", ge[B + V] || (Y = 0 < Y.length ? "{" + Y.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
@@ -215,11 +215,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
215
215
|
B
|
|
216
216
|
), ge[B + V] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (B = null, T !== void 0 && (t(T), B = "" + T), i(
|
|
218
|
+
if (B = null, T !== void 0 && (t(T), B = "" + T), i(I) && (t(I.key), B = "" + I.key), "key" in I) {
|
|
219
219
|
T = {};
|
|
220
|
-
for (var Z in
|
|
221
|
-
Z !== "key" && (T[Z] =
|
|
222
|
-
} else T =
|
|
220
|
+
for (var Z in I)
|
|
221
|
+
Z !== "key" && (T[Z] = I[Z]);
|
|
222
|
+
} else T = I;
|
|
223
223
|
return B && l(
|
|
224
224
|
T,
|
|
225
225
|
typeof u == "function" ? u.displayName || u.name || "Unknown" : u
|
|
@@ -237,7 +237,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
function g(u) {
|
|
238
238
|
typeof u == "object" && u !== null && u.$$typeof === m && u._store && (u._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var b =
|
|
240
|
+
var b = z, m = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), N = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), _ = Symbol.for("react.client.reference"), ne = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, xe = Array.isArray, oe = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
b = {
|
|
@@ -249,11 +249,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
b,
|
|
250
250
|
a
|
|
251
251
|
)(), k = oe(o(a)), ge = {};
|
|
252
|
-
me.Fragment = w, me.jsx = function(u,
|
|
252
|
+
me.Fragment = w, me.jsx = function(u, I, T, V, P) {
|
|
253
253
|
var $ = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return f(
|
|
255
255
|
u,
|
|
256
|
-
|
|
256
|
+
I,
|
|
257
257
|
T,
|
|
258
258
|
!1,
|
|
259
259
|
V,
|
|
@@ -261,11 +261,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
261
261
|
$ ? Error("react-stack-top-frame") : q,
|
|
262
262
|
$ ? oe(o(u)) : k
|
|
263
263
|
);
|
|
264
|
-
}, me.jsxs = function(u,
|
|
264
|
+
}, me.jsxs = function(u, I, T, V, P) {
|
|
265
265
|
var $ = 1e4 > ne.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return f(
|
|
267
267
|
u,
|
|
268
|
-
|
|
268
|
+
I,
|
|
269
269
|
T,
|
|
270
270
|
!0,
|
|
271
271
|
V,
|
|
@@ -278,7 +278,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
278
278
|
}
|
|
279
279
|
var Oe;
|
|
280
280
|
function Sr() {
|
|
281
|
-
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ve.exports =
|
|
281
|
+
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ve.exports = Ir() : ve.exports = zr()), ve.exports;
|
|
282
282
|
}
|
|
283
283
|
var n = Sr();
|
|
284
284
|
function We(e) {
|
|
@@ -571,7 +571,7 @@ const D = (e) => {
|
|
|
571
571
|
position: [x, h]
|
|
572
572
|
}], u = () => ["no-repeat", {
|
|
573
573
|
repeat: ["", "x", "y", "space", "round"]
|
|
574
|
-
}],
|
|
574
|
+
}], I = () => ["auto", "cover", "contain", ot, et, {
|
|
575
575
|
size: [x, h]
|
|
576
576
|
}], T = () => [Ne, he, se], V = () => [
|
|
577
577
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -1554,7 +1554,7 @@ const D = (e) => {
|
|
|
1554
1554
|
* @see https://tailwindcss.com/docs/background-size
|
|
1555
1555
|
*/
|
|
1556
1556
|
"bg-size": [{
|
|
1557
|
-
bg:
|
|
1557
|
+
bg: I()
|
|
1558
1558
|
}],
|
|
1559
1559
|
/**
|
|
1560
1560
|
* Background Image
|
|
@@ -2231,7 +2231,7 @@ const D = (e) => {
|
|
|
2231
2231
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2232
2232
|
*/
|
|
2233
2233
|
"mask-size": [{
|
|
2234
|
-
mask:
|
|
2234
|
+
mask: I()
|
|
2235
2235
|
}],
|
|
2236
2236
|
/**
|
|
2237
2237
|
* Mask Type
|
|
@@ -3207,7 +3207,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3207
3207
|
]
|
|
3208
3208
|
}
|
|
3209
3209
|
)
|
|
3210
|
-
),
|
|
3210
|
+
), Bs = Object.assign(ut, {
|
|
3211
3211
|
Icon: tr
|
|
3212
3212
|
}), gt = y(
|
|
3213
3213
|
"w-full flex items-center px-4 py-3 gap-2 bg-white",
|
|
@@ -3288,7 +3288,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3288
3288
|
role: "banner",
|
|
3289
3289
|
children: e
|
|
3290
3290
|
}
|
|
3291
|
-
),
|
|
3291
|
+
), Ds = Object.assign(vt, {
|
|
3292
3292
|
Leading: bt,
|
|
3293
3293
|
Headline: mt,
|
|
3294
3294
|
Subtitle: ht,
|
|
@@ -3373,7 +3373,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3373
3373
|
}
|
|
3374
3374
|
);
|
|
3375
3375
|
}
|
|
3376
|
-
),
|
|
3376
|
+
), _s = Object.assign(kt, {
|
|
3377
3377
|
/**
|
|
3378
3378
|
* AvatarImage sub-component for displaying images with fallback behavior
|
|
3379
3379
|
*/
|
|
@@ -3556,7 +3556,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = Ye, y
|
|
|
3556
3556
|
}
|
|
3557
3557
|
);
|
|
3558
3558
|
Ct.displayName = "Badge";
|
|
3559
|
-
const
|
|
3559
|
+
const It = y(
|
|
3560
3560
|
"sticky bottom-0 left-0 w-full flex justify-between items-center bg-white border-t border-coral z-40 safe-bottom px-8 py-1",
|
|
3561
3561
|
{
|
|
3562
3562
|
variants: {
|
|
@@ -3578,7 +3578,7 @@ const zt = y(
|
|
|
3578
3578
|
size: "md"
|
|
3579
3579
|
}
|
|
3580
3580
|
}
|
|
3581
|
-
),
|
|
3581
|
+
), zt = y(
|
|
3582
3582
|
"flex flex-col items-center justify-center gap-1 px-2 py-1 rounded transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",
|
|
3583
3583
|
{
|
|
3584
3584
|
variants: {
|
|
@@ -3597,7 +3597,7 @@ const zt = y(
|
|
|
3597
3597
|
{
|
|
3598
3598
|
ref: a,
|
|
3599
3599
|
"aria-current": t ? "page" : void 0,
|
|
3600
|
-
className:
|
|
3600
|
+
className: zt({ active: t, className: o }),
|
|
3601
3601
|
...s,
|
|
3602
3602
|
children: [
|
|
3603
3603
|
e,
|
|
@@ -3616,11 +3616,11 @@ const zt = y(
|
|
|
3616
3616
|
{
|
|
3617
3617
|
role: "navigation",
|
|
3618
3618
|
"aria-label": "Bottom navigation",
|
|
3619
|
-
className:
|
|
3619
|
+
className: It({ variant: r, size: t, className: o }),
|
|
3620
3620
|
...s,
|
|
3621
3621
|
children: e
|
|
3622
3622
|
}
|
|
3623
|
-
),
|
|
3623
|
+
), Fs = Object.assign(Rt, {
|
|
3624
3624
|
Item: St
|
|
3625
3625
|
}), Vt = y(
|
|
3626
3626
|
"flex items-center gap-2 text-sm text-slate-700 dark:text-slate-200",
|
|
@@ -3671,7 +3671,7 @@ const Pt = E(
|
|
|
3671
3671
|
function({ children: r, "aria-label": t = "Breadcrumb", ...o }, s) {
|
|
3672
3672
|
return /* @__PURE__ */ n.jsx("nav", { "aria-label": t, ...o, children: /* @__PURE__ */ n.jsx("ol", { ref: s, className: Vt(), children: r }) });
|
|
3673
3673
|
}
|
|
3674
|
-
),
|
|
3674
|
+
), Ls = Object.assign(Pt, {
|
|
3675
3675
|
Item: At,
|
|
3676
3676
|
Separator: Mt
|
|
3677
3677
|
}), Ot = y(
|
|
@@ -3724,7 +3724,7 @@ const Pt = E(
|
|
|
3724
3724
|
size: "md"
|
|
3725
3725
|
}
|
|
3726
3726
|
}
|
|
3727
|
-
), Ge =
|
|
3727
|
+
), Ge = z.forwardRef(
|
|
3728
3728
|
function({
|
|
3729
3729
|
className: r,
|
|
3730
3730
|
variant: t = "primary",
|
|
@@ -3748,7 +3748,42 @@ const Pt = E(
|
|
|
3748
3748
|
}
|
|
3749
3749
|
);
|
|
3750
3750
|
}
|
|
3751
|
-
)
|
|
3751
|
+
);
|
|
3752
|
+
function Bt(e = "primary") {
|
|
3753
|
+
const r = e.split("-");
|
|
3754
|
+
if (r.length === 1)
|
|
3755
|
+
switch (r[0]) {
|
|
3756
|
+
case "ghost":
|
|
3757
|
+
case "neutral":
|
|
3758
|
+
case "outline":
|
|
3759
|
+
return "ghost";
|
|
3760
|
+
default:
|
|
3761
|
+
return "neutral";
|
|
3762
|
+
}
|
|
3763
|
+
switch (r[0]) {
|
|
3764
|
+
case "primary":
|
|
3765
|
+
return "primary";
|
|
3766
|
+
case "secondary":
|
|
3767
|
+
return "secondary";
|
|
3768
|
+
case "tertiary":
|
|
3769
|
+
return "tertiary";
|
|
3770
|
+
case "ghost":
|
|
3771
|
+
return "ghost";
|
|
3772
|
+
case "neutral":
|
|
3773
|
+
return "ghost";
|
|
3774
|
+
case "success":
|
|
3775
|
+
return "success";
|
|
3776
|
+
case "info":
|
|
3777
|
+
return "info";
|
|
3778
|
+
case "warning":
|
|
3779
|
+
return "warning";
|
|
3780
|
+
case "danger":
|
|
3781
|
+
return "danger";
|
|
3782
|
+
default:
|
|
3783
|
+
return "neutral";
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3786
|
+
const Dt = y(
|
|
3752
3787
|
"inline-flex items-center justify-center font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98] select-none",
|
|
3753
3788
|
{
|
|
3754
3789
|
variants: {
|
|
@@ -3788,9 +3823,11 @@ const Pt = E(
|
|
|
3788
3823
|
destructive: "bg-danger text-white hover:bg-danger/90 focus-visible:ring-danger/20 focus-visible:ring-offset-white shadow-sm hover:shadow-md"
|
|
3789
3824
|
},
|
|
3790
3825
|
size: {
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3826
|
+
xs: "h-6 w-6",
|
|
3827
|
+
sm: "h-8 w-8",
|
|
3828
|
+
md: "h-10 w-10",
|
|
3829
|
+
lg: "h-12 w-12",
|
|
3830
|
+
xl: "h-14 w-14"
|
|
3794
3831
|
},
|
|
3795
3832
|
shape: {
|
|
3796
3833
|
rounded: "rounded-md",
|
|
@@ -3804,14 +3841,48 @@ const Pt = E(
|
|
|
3804
3841
|
shape: "rounded"
|
|
3805
3842
|
}
|
|
3806
3843
|
}
|
|
3807
|
-
),
|
|
3844
|
+
), _t = y("inline-flex items-center justify-center", {
|
|
3845
|
+
variants: {
|
|
3846
|
+
size: {
|
|
3847
|
+
xs: "w-3 h-3",
|
|
3848
|
+
sm: "w-4 h-4",
|
|
3849
|
+
md: "w-5 h-5",
|
|
3850
|
+
lg: "w-6 h-6",
|
|
3851
|
+
xl: "w-8 h-8"
|
|
3852
|
+
},
|
|
3853
|
+
color: {
|
|
3854
|
+
primary: "text-primary",
|
|
3855
|
+
secondary: "text-secondary",
|
|
3856
|
+
tertiary: "text-tertiary",
|
|
3857
|
+
ghost: "text-ghost",
|
|
3858
|
+
neutral: "text-neutral",
|
|
3859
|
+
success: "text-success",
|
|
3860
|
+
info: "text-info",
|
|
3861
|
+
warning: "text-warning",
|
|
3862
|
+
danger: "text-danger"
|
|
3863
|
+
}
|
|
3864
|
+
},
|
|
3865
|
+
defaultVariants: {
|
|
3866
|
+
size: "md",
|
|
3867
|
+
color: "primary"
|
|
3868
|
+
}
|
|
3869
|
+
}), Ft = z.forwardRef(function({ as: r, color: t = "primary", size: o = "md", className: s, ...a }, i) {
|
|
3870
|
+
return /* @__PURE__ */ n.jsx(
|
|
3871
|
+
r,
|
|
3872
|
+
{
|
|
3873
|
+
ref: i,
|
|
3874
|
+
className: _t({ color: t, size: o, className: s }),
|
|
3875
|
+
...a
|
|
3876
|
+
}
|
|
3877
|
+
);
|
|
3878
|
+
}), le = z.forwardRef(
|
|
3808
3879
|
function({
|
|
3809
3880
|
className: r,
|
|
3810
3881
|
variant: t = "primary",
|
|
3811
3882
|
size: o = "md",
|
|
3812
3883
|
shape: s = "rounded",
|
|
3813
3884
|
disabled: a = !1,
|
|
3814
|
-
|
|
3885
|
+
as: i,
|
|
3815
3886
|
"aria-label": l,
|
|
3816
3887
|
...c
|
|
3817
3888
|
}, d) {
|
|
@@ -3820,17 +3891,31 @@ const Pt = E(
|
|
|
3820
3891
|
{
|
|
3821
3892
|
ref: d,
|
|
3822
3893
|
type: "button",
|
|
3823
|
-
className: p(
|
|
3894
|
+
className: p(
|
|
3895
|
+
Dt({
|
|
3896
|
+
variant: t,
|
|
3897
|
+
size: o,
|
|
3898
|
+
shape: s
|
|
3899
|
+
}),
|
|
3900
|
+
r
|
|
3901
|
+
),
|
|
3824
3902
|
disabled: a,
|
|
3825
3903
|
"aria-disabled": a,
|
|
3826
3904
|
"aria-label": l,
|
|
3827
3905
|
inert: a ? !0 : void 0,
|
|
3828
3906
|
...c,
|
|
3829
|
-
children:
|
|
3907
|
+
children: /* @__PURE__ */ n.jsx(
|
|
3908
|
+
Ft,
|
|
3909
|
+
{
|
|
3910
|
+
as: i,
|
|
3911
|
+
size: o,
|
|
3912
|
+
color: Bt(t)
|
|
3913
|
+
}
|
|
3914
|
+
)
|
|
3830
3915
|
}
|
|
3831
3916
|
);
|
|
3832
3917
|
}
|
|
3833
|
-
),
|
|
3918
|
+
), Lt = y(
|
|
3834
3919
|
[
|
|
3835
3920
|
"inline-flex items-center justify-center gap-2",
|
|
3836
3921
|
"rounded-lg",
|
|
@@ -3896,7 +3981,7 @@ const Pt = E(
|
|
|
3896
3981
|
size: "md"
|
|
3897
3982
|
}
|
|
3898
3983
|
}
|
|
3899
|
-
),
|
|
3984
|
+
), $s = E(
|
|
3900
3985
|
function({
|
|
3901
3986
|
className: r,
|
|
3902
3987
|
variant: t = "primary",
|
|
@@ -3920,7 +4005,7 @@ const Pt = E(
|
|
|
3920
4005
|
ref: c,
|
|
3921
4006
|
type: l.type || "button",
|
|
3922
4007
|
className: p(
|
|
3923
|
-
|
|
4008
|
+
Lt({ variant: t, size: o }),
|
|
3924
4009
|
d,
|
|
3925
4010
|
g && "animate-fab-in",
|
|
3926
4011
|
r
|
|
@@ -3930,7 +4015,7 @@ const Pt = E(
|
|
|
3930
4015
|
}
|
|
3931
4016
|
);
|
|
3932
4017
|
}
|
|
3933
|
-
),
|
|
4018
|
+
), $t = ({
|
|
3934
4019
|
value: e,
|
|
3935
4020
|
onChange: r,
|
|
3936
4021
|
className: t,
|
|
@@ -3946,27 +4031,27 @@ const Pt = E(
|
|
|
3946
4031
|
/* @__PURE__ */ n.jsx(
|
|
3947
4032
|
le,
|
|
3948
4033
|
{
|
|
4034
|
+
as: kr,
|
|
3949
4035
|
variant: "ghost",
|
|
3950
4036
|
size: "sm",
|
|
3951
4037
|
"aria-label": "Previous month",
|
|
3952
4038
|
onClick: () => {
|
|
3953
4039
|
const v = a === 0 ? 11 : a - 1, w = a === 0 ? l - 1 : l;
|
|
3954
4040
|
i(v), c(w), r?.(new Date(w, v, 1));
|
|
3955
|
-
}
|
|
3956
|
-
children: /* @__PURE__ */ n.jsx(kr, { className: "h-4 w-4" })
|
|
4041
|
+
}
|
|
3957
4042
|
}
|
|
3958
4043
|
),
|
|
3959
4044
|
/* @__PURE__ */ n.jsx(
|
|
3960
4045
|
le,
|
|
3961
4046
|
{
|
|
4047
|
+
as: jr,
|
|
3962
4048
|
variant: "ghost",
|
|
3963
4049
|
size: "sm",
|
|
3964
4050
|
"aria-label": "Next month",
|
|
3965
4051
|
onClick: () => {
|
|
3966
4052
|
const v = a === 11 ? 0 : a + 1, w = a === 11 ? l + 1 : l;
|
|
3967
4053
|
i(v), c(w), r?.(new Date(w, v, 1));
|
|
3968
|
-
}
|
|
3969
|
-
children: /* @__PURE__ */ n.jsx(jr, { className: "h-4 w-4" })
|
|
4054
|
+
}
|
|
3970
4055
|
}
|
|
3971
4056
|
)
|
|
3972
4057
|
] })
|
|
@@ -3977,6 +4062,7 @@ const Pt = E(
|
|
|
3977
4062
|
/* @__PURE__ */ n.jsx(
|
|
3978
4063
|
le,
|
|
3979
4064
|
{
|
|
4065
|
+
as: () => R - w + N + 1,
|
|
3980
4066
|
size: "sm",
|
|
3981
4067
|
"aria-label": "Previous month day",
|
|
3982
4068
|
variant: "ghost",
|
|
@@ -3984,8 +4070,7 @@ const Pt = E(
|
|
|
3984
4070
|
onClick: () => {
|
|
3985
4071
|
const M = a === 0 ? 11 : a - 1, F = a === 0 ? l - 1 : l, L = R - w + N + 1;
|
|
3986
4072
|
r?.(new Date(F, M, L)), i(M), c(F);
|
|
3987
|
-
}
|
|
3988
|
-
children: R - w + N + 1
|
|
4073
|
+
}
|
|
3989
4074
|
},
|
|
3990
4075
|
"prev-" + N
|
|
3991
4076
|
)
|
|
@@ -3996,12 +4081,12 @@ const Pt = E(
|
|
|
3996
4081
|
/* @__PURE__ */ n.jsx(
|
|
3997
4082
|
le,
|
|
3998
4083
|
{
|
|
4084
|
+
as: () => N,
|
|
3999
4085
|
variant: M ? "primary" : "ghost",
|
|
4000
4086
|
size: "sm",
|
|
4001
4087
|
"aria-label": `Select ${l}-${a + 1}-${N}`,
|
|
4002
4088
|
"aria-current": M ? "date" : void 0,
|
|
4003
|
-
onClick: () => r?.(new Date(l, a, N))
|
|
4004
|
-
children: N
|
|
4089
|
+
onClick: () => r?.(new Date(l, a, N))
|
|
4005
4090
|
},
|
|
4006
4091
|
N
|
|
4007
4092
|
)
|
|
@@ -4013,6 +4098,7 @@ const Pt = E(
|
|
|
4013
4098
|
/* @__PURE__ */ n.jsx(
|
|
4014
4099
|
le,
|
|
4015
4100
|
{
|
|
4101
|
+
as: () => N + 1,
|
|
4016
4102
|
size: "sm",
|
|
4017
4103
|
"aria-label": "Next month day",
|
|
4018
4104
|
variant: "ghost",
|
|
@@ -4020,8 +4106,7 @@ const Pt = E(
|
|
|
4020
4106
|
onClick: () => {
|
|
4021
4107
|
const M = a === 11 ? 0 : a + 1, F = a === 11 ? l + 1 : l, L = N + 1;
|
|
4022
4108
|
r?.(new Date(F, M, L)), i(M), c(F);
|
|
4023
|
-
}
|
|
4024
|
-
children: N + 1
|
|
4109
|
+
}
|
|
4025
4110
|
},
|
|
4026
4111
|
"next-" + N
|
|
4027
4112
|
)
|
|
@@ -4033,7 +4118,7 @@ const Pt = E(
|
|
|
4033
4118
|
b(),
|
|
4034
4119
|
m()
|
|
4035
4120
|
] });
|
|
4036
|
-
}, or = Object.assign(
|
|
4121
|
+
}, or = Object.assign($t, {}), Gt = y("space-y-2", {
|
|
4037
4122
|
variants: {
|
|
4038
4123
|
direction: {
|
|
4039
4124
|
vertical: "space-y-2 space-x-0",
|
|
@@ -4043,7 +4128,7 @@ const Pt = E(
|
|
|
4043
4128
|
defaultVariants: {
|
|
4044
4129
|
direction: "vertical"
|
|
4045
4130
|
}
|
|
4046
|
-
}),
|
|
4131
|
+
}), Wt = y(
|
|
4047
4132
|
"relative h-4 w-4 rounded border cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed appearance-none bg-white",
|
|
4048
4133
|
{
|
|
4049
4134
|
variants: {
|
|
@@ -4081,7 +4166,7 @@ const Pt = E(
|
|
|
4081
4166
|
size: "md"
|
|
4082
4167
|
}
|
|
4083
4168
|
}
|
|
4084
|
-
),
|
|
4169
|
+
), Yt = y(
|
|
4085
4170
|
"text-foreground cursor-pointer select-none",
|
|
4086
4171
|
{
|
|
4087
4172
|
variants: {
|
|
@@ -4100,13 +4185,13 @@ const Pt = E(
|
|
|
4100
4185
|
disabled: !1
|
|
4101
4186
|
}
|
|
4102
4187
|
}
|
|
4103
|
-
), sr = ee(null),
|
|
4188
|
+
), sr = ee(null), qt = () => {
|
|
4104
4189
|
const e = re(sr);
|
|
4105
4190
|
if (!e)
|
|
4106
4191
|
throw new Error("CheckboxOption must be used within CheckboxInput");
|
|
4107
4192
|
return e;
|
|
4108
|
-
}, nr =
|
|
4109
|
-
const l =
|
|
4193
|
+
}, nr = z.forwardRef(({ children: e, description: r, className: t, disabled: o, id: s, ...a }, i) => {
|
|
4194
|
+
const l = qt(), c = z.useId(), d = s || c, f = o || l.disabled, g = l.error ? "danger" : l.variant || "primary";
|
|
4110
4195
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4111
4196
|
/* @__PURE__ */ n.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
4112
4197
|
"input",
|
|
@@ -4116,7 +4201,7 @@ const Pt = E(
|
|
|
4116
4201
|
id: d,
|
|
4117
4202
|
disabled: f,
|
|
4118
4203
|
className: p(
|
|
4119
|
-
|
|
4204
|
+
Wt({
|
|
4120
4205
|
variant: g,
|
|
4121
4206
|
size: l.size
|
|
4122
4207
|
}),
|
|
@@ -4139,7 +4224,7 @@ const Pt = E(
|
|
|
4139
4224
|
"label",
|
|
4140
4225
|
{
|
|
4141
4226
|
htmlFor: d,
|
|
4142
|
-
className:
|
|
4227
|
+
className: Yt({
|
|
4143
4228
|
size: l.size,
|
|
4144
4229
|
disabled: f
|
|
4145
4230
|
}),
|
|
@@ -4163,7 +4248,7 @@ const Pt = E(
|
|
|
4163
4248
|
] });
|
|
4164
4249
|
});
|
|
4165
4250
|
nr.displayName = "CheckboxOption";
|
|
4166
|
-
const ar =
|
|
4251
|
+
const ar = z.forwardRef(
|
|
4167
4252
|
({
|
|
4168
4253
|
variant: e = "primary",
|
|
4169
4254
|
size: r = "md",
|
|
@@ -4184,23 +4269,23 @@ const ar = I.forwardRef(
|
|
|
4184
4269
|
};
|
|
4185
4270
|
return /* @__PURE__ */ n.jsx(sr.Provider, { value: b, children: /* @__PURE__ */ n.jsxs("div", { ref: f, className: p("w-full", i), ...d, children: [
|
|
4186
4271
|
t && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: t }),
|
|
4187
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
4272
|
+
/* @__PURE__ */ n.jsx("div", { className: Gt({ direction: a }), children: c }),
|
|
4188
4273
|
g && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: s }),
|
|
4189
4274
|
!g && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
4190
4275
|
] }) });
|
|
4191
4276
|
}
|
|
4192
4277
|
);
|
|
4193
4278
|
ar.displayName = "CheckboxInput";
|
|
4194
|
-
const
|
|
4279
|
+
const Gs = Object.assign(ar, {
|
|
4195
4280
|
Option: nr
|
|
4196
4281
|
}), ir = ee(
|
|
4197
4282
|
null
|
|
4198
|
-
),
|
|
4283
|
+
), Ut = () => {
|
|
4199
4284
|
const e = re(ir);
|
|
4200
4285
|
if (!e)
|
|
4201
4286
|
throw new Error("useChipInputContext must be used within ChipInputContext");
|
|
4202
4287
|
return e;
|
|
4203
|
-
},
|
|
4288
|
+
}, Ht = y(
|
|
4204
4289
|
"inline-flex items-center px-2 py-1 text-xs bg-neutral rounded-full font-medium transition-colors duration-200 cursor-pointer border border-slate-100",
|
|
4205
4290
|
{
|
|
4206
4291
|
variants: {
|
|
@@ -4279,8 +4364,8 @@ const Ls = Object.assign(ar, {
|
|
|
4279
4364
|
selected: !1
|
|
4280
4365
|
}
|
|
4281
4366
|
}
|
|
4282
|
-
), lr =
|
|
4283
|
-
const l =
|
|
4367
|
+
), lr = z.forwardRef(({ children: e, className: r, disabled: t, id: o, value: s, ...a }, i) => {
|
|
4368
|
+
const l = Ut(), c = z.useId(), d = o || c, f = t || l.disabled, g = l.error ? "danger" : l.variant || "primary", b = l.value?.includes(s) ?? !1, m = (v) => {
|
|
4284
4369
|
if (!f) {
|
|
4285
4370
|
const w = l.value || [];
|
|
4286
4371
|
let C;
|
|
@@ -4310,7 +4395,7 @@ const Ls = Object.assign(ar, {
|
|
|
4310
4395
|
htmlFor: d,
|
|
4311
4396
|
"data-selected": b,
|
|
4312
4397
|
className: p(
|
|
4313
|
-
|
|
4398
|
+
Ht({
|
|
4314
4399
|
variant: g,
|
|
4315
4400
|
selected: b
|
|
4316
4401
|
}),
|
|
@@ -4343,7 +4428,7 @@ const Ls = Object.assign(ar, {
|
|
|
4343
4428
|
] });
|
|
4344
4429
|
});
|
|
4345
4430
|
lr.displayName = "ChipOption";
|
|
4346
|
-
const
|
|
4431
|
+
const Jt = z.forwardRef(
|
|
4347
4432
|
({
|
|
4348
4433
|
variant: e = "primary",
|
|
4349
4434
|
label: r,
|
|
@@ -4372,9 +4457,9 @@ const qt = I.forwardRef(
|
|
|
4372
4457
|
!b && t && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: t })
|
|
4373
4458
|
] }) });
|
|
4374
4459
|
}
|
|
4375
|
-
),
|
|
4460
|
+
), Ws = Object.assign(Jt, {
|
|
4376
4461
|
Option: lr
|
|
4377
|
-
}),
|
|
4462
|
+
}), Xt = E(
|
|
4378
4463
|
({ className: e, ...r }, t) => /* @__PURE__ */ n.jsx(
|
|
4379
4464
|
"div",
|
|
4380
4465
|
{
|
|
@@ -4383,7 +4468,7 @@ const qt = I.forwardRef(
|
|
|
4383
4468
|
...r
|
|
4384
4469
|
}
|
|
4385
4470
|
)
|
|
4386
|
-
),
|
|
4471
|
+
), Kt = E(
|
|
4387
4472
|
({ className: e, ...r }, t) => /* @__PURE__ */ n.jsx(
|
|
4388
4473
|
"div",
|
|
4389
4474
|
{
|
|
@@ -4392,9 +4477,9 @@ const qt = I.forwardRef(
|
|
|
4392
4477
|
...r
|
|
4393
4478
|
}
|
|
4394
4479
|
)
|
|
4395
|
-
),
|
|
4480
|
+
), Zt = E(
|
|
4396
4481
|
({ className: e, ...r }, t) => /* @__PURE__ */ n.jsx("div", { ref: t, className: p("px-6 py-2", e), ...r })
|
|
4397
|
-
),
|
|
4482
|
+
), Qt = E(
|
|
4398
4483
|
({ onOverlayClick: e, ...r }, t) => /* @__PURE__ */ n.jsx(
|
|
4399
4484
|
"div",
|
|
4400
4485
|
{
|
|
@@ -4406,7 +4491,7 @@ const qt = I.forwardRef(
|
|
|
4406
4491
|
...r
|
|
4407
4492
|
}
|
|
4408
4493
|
)
|
|
4409
|
-
),
|
|
4494
|
+
), eo = y(
|
|
4410
4495
|
"fixed inset-0 z-51 transition-opacity duration-300 bg-black/30 backdrop-blur-md flex items-center justify-center transition-opacity duration-200 ease-in-out",
|
|
4411
4496
|
{
|
|
4412
4497
|
variants: {
|
|
@@ -4419,7 +4504,7 @@ const qt = I.forwardRef(
|
|
|
4419
4504
|
placement: "center"
|
|
4420
4505
|
}
|
|
4421
4506
|
}
|
|
4422
|
-
),
|
|
4507
|
+
), ro = y(
|
|
4423
4508
|
[
|
|
4424
4509
|
"bg-white rounded-lg shadow-xl relative",
|
|
4425
4510
|
"flex flex-col",
|
|
@@ -4448,7 +4533,7 @@ const qt = I.forwardRef(
|
|
|
4448
4533
|
}
|
|
4449
4534
|
}
|
|
4450
4535
|
);
|
|
4451
|
-
function
|
|
4536
|
+
function to(e, r) {
|
|
4452
4537
|
H(() => {
|
|
4453
4538
|
if (r && e.current) {
|
|
4454
4539
|
const t = e.current.querySelectorAll(
|
|
@@ -4458,7 +4543,7 @@ function Qt(e, r) {
|
|
|
4458
4543
|
}
|
|
4459
4544
|
}, [r, e]);
|
|
4460
4545
|
}
|
|
4461
|
-
function
|
|
4546
|
+
function oo(e, r) {
|
|
4462
4547
|
H(() => {
|
|
4463
4548
|
if (!e) return;
|
|
4464
4549
|
const t = (o) => {
|
|
@@ -4467,7 +4552,7 @@ function eo(e, r) {
|
|
|
4467
4552
|
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
4468
4553
|
}, [e, r]);
|
|
4469
4554
|
}
|
|
4470
|
-
const
|
|
4555
|
+
const so = 200, no = ({
|
|
4471
4556
|
isOpen: e,
|
|
4472
4557
|
onOpenChange: r,
|
|
4473
4558
|
size: t = "md",
|
|
@@ -4485,16 +4570,16 @@ const ro = 200, to = ({
|
|
|
4485
4570
|
m(!0);
|
|
4486
4571
|
const v = setTimeout(() => {
|
|
4487
4572
|
g(!1), m(!1), c.current && c.current.focus();
|
|
4488
|
-
},
|
|
4573
|
+
}, so);
|
|
4489
4574
|
return () => clearTimeout(v);
|
|
4490
4575
|
}
|
|
4491
|
-
}, [e]),
|
|
4576
|
+
}, [e]), oo(e && !i, () => {
|
|
4492
4577
|
r && r(!1);
|
|
4493
|
-
}),
|
|
4494
|
-
|
|
4578
|
+
}), to(d, e), /* @__PURE__ */ n.jsx(
|
|
4579
|
+
Qt,
|
|
4495
4580
|
{
|
|
4496
4581
|
ref: d,
|
|
4497
|
-
className: `${
|
|
4582
|
+
className: `${eo({ placement: o })} transition-opacity duration-200 ease-in-out ` + (e && !b ? "opacity-100" : "opacity-0 pointer-events-none"),
|
|
4498
4583
|
onOverlayClick: (v) => {
|
|
4499
4584
|
v.target === d.current && !a && r && r(!1);
|
|
4500
4585
|
},
|
|
@@ -4502,7 +4587,7 @@ const ro = 200, to = ({
|
|
|
4502
4587
|
children: /* @__PURE__ */ n.jsx(
|
|
4503
4588
|
"div",
|
|
4504
4589
|
{
|
|
4505
|
-
className: `${
|
|
4590
|
+
className: `${ro({ size: t, placement: o })} transition-all duration-200 ease-in-out ` + (e && !b ? "opacity-100 scale-100" : "opacity-0 scale-95 pointer-events-none"),
|
|
4506
4591
|
role: "dialog",
|
|
4507
4592
|
...l,
|
|
4508
4593
|
tabIndex: 0,
|
|
@@ -4512,10 +4597,10 @@ const ro = 200, to = ({
|
|
|
4512
4597
|
)
|
|
4513
4598
|
}
|
|
4514
4599
|
);
|
|
4515
|
-
},
|
|
4516
|
-
Header:
|
|
4517
|
-
Body:
|
|
4518
|
-
Footer:
|
|
4600
|
+
}, Ie = Object.assign(no, {
|
|
4601
|
+
Header: Xt,
|
|
4602
|
+
Body: Zt,
|
|
4603
|
+
Footer: Kt
|
|
4519
4604
|
}), cr = y(
|
|
4520
4605
|
"block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50",
|
|
4521
4606
|
{
|
|
@@ -4548,7 +4633,7 @@ const ro = 200, to = ({
|
|
|
4548
4633
|
variant: "primary"
|
|
4549
4634
|
}
|
|
4550
4635
|
}
|
|
4551
|
-
),
|
|
4636
|
+
), ao = cr, dr = z.forwardRef(
|
|
4552
4637
|
({
|
|
4553
4638
|
leftContent: e,
|
|
4554
4639
|
rightContent: r,
|
|
@@ -4566,7 +4651,7 @@ const ro = 200, to = ({
|
|
|
4566
4651
|
type: "button",
|
|
4567
4652
|
"aria-invalid": t,
|
|
4568
4653
|
className: p(
|
|
4569
|
-
|
|
4654
|
+
ao({
|
|
4570
4655
|
variant: t ? "danger" : o
|
|
4571
4656
|
}),
|
|
4572
4657
|
e ? "pl-9" : "pl-3",
|
|
@@ -4614,7 +4699,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4614
4699
|
if (!e)
|
|
4615
4700
|
throw new Error("useMenuContext must be used within a Menu component");
|
|
4616
4701
|
return e;
|
|
4617
|
-
},
|
|
4702
|
+
}, io = y(
|
|
4618
4703
|
// Modern, clean, accessible base style
|
|
4619
4704
|
"z-50 min-w-40 bg-neutral-50 text-black rounded-lg shadow-md border border-transparent",
|
|
4620
4705
|
{
|
|
@@ -4633,7 +4718,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4633
4718
|
size: "md"
|
|
4634
4719
|
}
|
|
4635
4720
|
}
|
|
4636
|
-
),
|
|
4721
|
+
), lo = y(
|
|
4637
4722
|
"w-full text-left px-4 rounded-md cursor-pointer transition-colors duration-150 font-medium select-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-coral/70 hover:bg-slate-100 active:bg-slate-200 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4638
4723
|
{
|
|
4639
4724
|
variants: {
|
|
@@ -4651,7 +4736,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4651
4736
|
size: "md"
|
|
4652
4737
|
}
|
|
4653
4738
|
}
|
|
4654
|
-
),
|
|
4739
|
+
), co = E(
|
|
4655
4740
|
({ children: e, ...r }, t) => {
|
|
4656
4741
|
const { open: o, triggerRef: s } = Ae();
|
|
4657
4742
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -4669,7 +4754,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4669
4754
|
}
|
|
4670
4755
|
);
|
|
4671
4756
|
}
|
|
4672
|
-
),
|
|
4757
|
+
), uo = E(
|
|
4673
4758
|
({ children: e, className: r, ...t }, o) => {
|
|
4674
4759
|
const { open: s, contentRef: a, triggerRef: i, size: l } = Ae(), c = Ee();
|
|
4675
4760
|
let d = 0, f = 0;
|
|
@@ -4688,7 +4773,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4688
4773
|
tabIndex: -1,
|
|
4689
4774
|
"aria-hidden": !s,
|
|
4690
4775
|
className: p(
|
|
4691
|
-
|
|
4776
|
+
io({
|
|
4692
4777
|
size: l
|
|
4693
4778
|
}),
|
|
4694
4779
|
"absolute z-50 transition-opacity duration-150 ease-out",
|
|
@@ -4705,7 +4790,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4705
4790
|
}
|
|
4706
4791
|
);
|
|
4707
4792
|
}
|
|
4708
|
-
),
|
|
4793
|
+
), go = E(
|
|
4709
4794
|
({ children: e, disabled: r, className: t, ...o }, s) => {
|
|
4710
4795
|
const { size: a } = Ae();
|
|
4711
4796
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -4717,7 +4802,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4717
4802
|
disabled: r,
|
|
4718
4803
|
"aria-disabled": r,
|
|
4719
4804
|
className: p(
|
|
4720
|
-
|
|
4805
|
+
lo({
|
|
4721
4806
|
size: a
|
|
4722
4807
|
}),
|
|
4723
4808
|
t
|
|
@@ -4728,7 +4813,7 @@ const ur = ee(null), Ae = () => {
|
|
|
4728
4813
|
);
|
|
4729
4814
|
}
|
|
4730
4815
|
);
|
|
4731
|
-
function
|
|
4816
|
+
function fo(e, r, t, o) {
|
|
4732
4817
|
H(() => {
|
|
4733
4818
|
if (!e) return;
|
|
4734
4819
|
function s(a) {
|
|
@@ -4737,7 +4822,7 @@ function co(e, r, t, o) {
|
|
|
4737
4822
|
return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
|
|
4738
4823
|
}, [e, o, r, t]);
|
|
4739
4824
|
}
|
|
4740
|
-
function
|
|
4825
|
+
function bo(e, r) {
|
|
4741
4826
|
H(() => {
|
|
4742
4827
|
if (e && r.current) {
|
|
4743
4828
|
const t = r.current.querySelectorAll('[role="menuitem"]');
|
|
@@ -4745,7 +4830,7 @@ function uo(e, r) {
|
|
|
4745
4830
|
}
|
|
4746
4831
|
}, [e, r]);
|
|
4747
4832
|
}
|
|
4748
|
-
function
|
|
4833
|
+
function mo(e, r, t, o) {
|
|
4749
4834
|
H(() => {
|
|
4750
4835
|
if (!e || !r.current) return;
|
|
4751
4836
|
const s = r.current;
|
|
@@ -4758,33 +4843,33 @@ function go(e, r, t, o) {
|
|
|
4758
4843
|
return s.addEventListener("keydown", a), () => s.removeEventListener("keydown", a);
|
|
4759
4844
|
}, [e, o, r, t]);
|
|
4760
4845
|
}
|
|
4761
|
-
const
|
|
4846
|
+
const ho = ({
|
|
4762
4847
|
children: e,
|
|
4763
4848
|
isOpen: r,
|
|
4764
4849
|
onOutsideClick: t,
|
|
4765
4850
|
size: o = "md"
|
|
4766
4851
|
}) => {
|
|
4767
4852
|
const s = ce(null), a = ce(null);
|
|
4768
|
-
return
|
|
4853
|
+
return fo(r, a, s, t), bo(r, a), mo(r, a, s, t), /* @__PURE__ */ n.jsx(
|
|
4769
4854
|
ur.Provider,
|
|
4770
4855
|
{
|
|
4771
4856
|
value: { open: r, triggerRef: s, contentRef: a, size: o },
|
|
4772
4857
|
children: e
|
|
4773
4858
|
}
|
|
4774
4859
|
);
|
|
4775
|
-
},
|
|
4776
|
-
Trigger:
|
|
4777
|
-
Content:
|
|
4778
|
-
Item:
|
|
4779
|
-
}),
|
|
4860
|
+
}, ze = Object.assign(ho, {
|
|
4861
|
+
Trigger: co,
|
|
4862
|
+
Content: uo,
|
|
4863
|
+
Item: go
|
|
4864
|
+
}), xo = ({
|
|
4780
4865
|
open: e,
|
|
4781
4866
|
value: r,
|
|
4782
4867
|
onChange: t,
|
|
4783
4868
|
handleMenuClose: o
|
|
4784
|
-
}) => /* @__PURE__ */ n.jsxs(
|
|
4785
|
-
/* @__PURE__ */ n.jsx(
|
|
4786
|
-
/* @__PURE__ */ n.jsx(
|
|
4787
|
-
] }),
|
|
4869
|
+
}) => /* @__PURE__ */ n.jsxs(ze, { isOpen: e, onOutsideClick: o, children: [
|
|
4870
|
+
/* @__PURE__ */ n.jsx(ze.Trigger, { className: "absolute top-[90%] left-0", children: /* @__PURE__ */ n.jsx("span", { "aria-hidden": "true" }) }),
|
|
4871
|
+
/* @__PURE__ */ n.jsx(ze.Content, { className: "drop-shadow-lg rounded-lg bg-white border border-neutral", children: /* @__PURE__ */ n.jsx(or, { value: r, onChange: t }) })
|
|
4872
|
+
] }), po = ({
|
|
4788
4873
|
open: e,
|
|
4789
4874
|
setOpen: r,
|
|
4790
4875
|
value: t,
|
|
@@ -4804,7 +4889,7 @@ const fo = ({
|
|
|
4804
4889
|
i && (o(i), r(!1), a.current?.focus());
|
|
4805
4890
|
};
|
|
4806
4891
|
return /* @__PURE__ */ n.jsxs(
|
|
4807
|
-
|
|
4892
|
+
Ie,
|
|
4808
4893
|
{
|
|
4809
4894
|
isOpen: e,
|
|
4810
4895
|
onOpenChange: r,
|
|
@@ -4814,8 +4899,8 @@ const fo = ({
|
|
|
4814
4899
|
disableOverlayClose: !1,
|
|
4815
4900
|
disableEscClose: !1,
|
|
4816
4901
|
children: [
|
|
4817
|
-
/* @__PURE__ */ n.jsx(
|
|
4818
|
-
/* @__PURE__ */ n.jsxs(
|
|
4902
|
+
/* @__PURE__ */ n.jsx(Ie.Body, { className: "px-2", children: /* @__PURE__ */ n.jsx(or, { value: i, onChange: l }) }),
|
|
4903
|
+
/* @__PURE__ */ n.jsxs(Ie.Footer, { className: "px-6", children: [
|
|
4819
4904
|
/* @__PURE__ */ n.jsx(
|
|
4820
4905
|
Ge,
|
|
4821
4906
|
{
|
|
@@ -4842,7 +4927,7 @@ const fo = ({
|
|
|
4842
4927
|
}
|
|
4843
4928
|
);
|
|
4844
4929
|
};
|
|
4845
|
-
function
|
|
4930
|
+
function vo({ id: e }) {
|
|
4846
4931
|
const [r, t] = U(!1), o = Ee(), s = e || o, a = ce(null), i = ke(
|
|
4847
4932
|
(c) => {
|
|
4848
4933
|
(c.key === "ArrowDown" || c.key === "Enter" || c.key === " ") && t(!0);
|
|
@@ -4860,7 +4945,7 @@ function ho({ id: e }) {
|
|
|
4860
4945
|
handleMenuClose: l
|
|
4861
4946
|
};
|
|
4862
4947
|
}
|
|
4863
|
-
const
|
|
4948
|
+
const Ys = z.forwardRef(
|
|
4864
4949
|
({
|
|
4865
4950
|
value: e,
|
|
4866
4951
|
onChange: r,
|
|
@@ -4887,7 +4972,7 @@ const Gs = I.forwardRef(
|
|
|
4887
4972
|
buttonRef: R,
|
|
4888
4973
|
handleKeyDown: A,
|
|
4889
4974
|
handleMenuClose: N
|
|
4890
|
-
} =
|
|
4975
|
+
} = vo({ id: f }), M = !!i, F = (_) => _ ? _.toLocaleDateString(void 0, {
|
|
4891
4976
|
year: "numeric",
|
|
4892
4977
|
month: "short",
|
|
4893
4978
|
day: "numeric"
|
|
@@ -4934,7 +5019,7 @@ const Gs = I.forwardRef(
|
|
|
4934
5019
|
a && /* @__PURE__ */ n.jsx("div", { className: "mt-1 text-sm text-muted-foreground", children: a })
|
|
4935
5020
|
] }),
|
|
4936
5021
|
g === "docked" ? /* @__PURE__ */ n.jsx(
|
|
4937
|
-
|
|
5022
|
+
xo,
|
|
4938
5023
|
{
|
|
4939
5024
|
open: v,
|
|
4940
5025
|
value: e,
|
|
@@ -4943,7 +5028,7 @@ const Gs = I.forwardRef(
|
|
|
4943
5028
|
handleMenuClose: N
|
|
4944
5029
|
}
|
|
4945
5030
|
) : /* @__PURE__ */ n.jsx(
|
|
4946
|
-
|
|
5031
|
+
po,
|
|
4947
5032
|
{
|
|
4948
5033
|
open: v,
|
|
4949
5034
|
setOpen: w,
|
|
@@ -4964,7 +5049,7 @@ function je() {
|
|
|
4964
5049
|
);
|
|
4965
5050
|
return e;
|
|
4966
5051
|
}
|
|
4967
|
-
const
|
|
5052
|
+
const wo = y(
|
|
4968
5053
|
"fixed inset-0 z-50 transition-opacity duration-300 bg-black/30 backdrop-blur-md",
|
|
4969
5054
|
{
|
|
4970
5055
|
variants: {
|
|
@@ -4977,7 +5062,7 @@ const xo = y(
|
|
|
4977
5062
|
state: "closed"
|
|
4978
5063
|
}
|
|
4979
5064
|
}
|
|
4980
|
-
),
|
|
5065
|
+
), yo = y(
|
|
4981
5066
|
"fixed z-50 shadow-xl transition-transform duration-300 ease-in-out flex flex-col",
|
|
4982
5067
|
{
|
|
4983
5068
|
variants: {
|
|
@@ -5004,7 +5089,7 @@ const xo = y(
|
|
|
5004
5089
|
variant: "default"
|
|
5005
5090
|
}
|
|
5006
5091
|
}
|
|
5007
|
-
),
|
|
5092
|
+
), ko = y("flex-shrink-0 px-6 py-4 border-b", {
|
|
5008
5093
|
variants: {
|
|
5009
5094
|
variant: {
|
|
5010
5095
|
default: "bg-white border-gray-200",
|
|
@@ -5014,7 +5099,7 @@ const xo = y(
|
|
|
5014
5099
|
defaultVariants: {
|
|
5015
5100
|
variant: "default"
|
|
5016
5101
|
}
|
|
5017
|
-
}),
|
|
5102
|
+
}), jo = y("flex-1 overflow-y-auto px-6 py-4", {
|
|
5018
5103
|
variants: {
|
|
5019
5104
|
variant: {
|
|
5020
5105
|
default: "bg-white",
|
|
@@ -5024,7 +5109,7 @@ const xo = y(
|
|
|
5024
5109
|
defaultVariants: {
|
|
5025
5110
|
variant: "default"
|
|
5026
5111
|
}
|
|
5027
|
-
}),
|
|
5112
|
+
}), No = y("flex-shrink-0 px-6 py-4 border-t", {
|
|
5028
5113
|
variants: {
|
|
5029
5114
|
variant: {
|
|
5030
5115
|
default: "bg-white border-gray-200",
|
|
@@ -5039,7 +5124,7 @@ const xo = y(
|
|
|
5039
5124
|
variant: "default",
|
|
5040
5125
|
responsiveFlex: !0
|
|
5041
5126
|
}
|
|
5042
|
-
}),
|
|
5127
|
+
}), Co = z.forwardRef(({ className: e, ...r }, t) => {
|
|
5043
5128
|
const { isOpen: o, onClose: s } = je(), a = () => {
|
|
5044
5129
|
s();
|
|
5045
5130
|
};
|
|
@@ -5049,7 +5134,7 @@ const xo = y(
|
|
|
5049
5134
|
ref: t,
|
|
5050
5135
|
onClick: a,
|
|
5051
5136
|
className: p(
|
|
5052
|
-
|
|
5137
|
+
wo({
|
|
5053
5138
|
state: o ? "open" : "closed"
|
|
5054
5139
|
}),
|
|
5055
5140
|
e
|
|
@@ -5057,33 +5142,33 @@ const xo = y(
|
|
|
5057
5142
|
...r
|
|
5058
5143
|
}
|
|
5059
5144
|
);
|
|
5060
|
-
}),
|
|
5145
|
+
}), Io = z.forwardRef(
|
|
5061
5146
|
({ children: e, className: r, ...t }, o) => {
|
|
5062
5147
|
const { variant: s } = je();
|
|
5063
5148
|
return /* @__PURE__ */ n.jsx(
|
|
5064
5149
|
"div",
|
|
5065
5150
|
{
|
|
5066
5151
|
ref: o,
|
|
5067
|
-
className: p(
|
|
5152
|
+
className: p(ko({ variant: s }), r),
|
|
5068
5153
|
...t,
|
|
5069
5154
|
children: e
|
|
5070
5155
|
}
|
|
5071
5156
|
);
|
|
5072
5157
|
}
|
|
5073
|
-
),
|
|
5158
|
+
), zo = z.forwardRef(
|
|
5074
5159
|
({ children: e, className: r, ...t }, o) => {
|
|
5075
5160
|
const { variant: s } = je();
|
|
5076
5161
|
return /* @__PURE__ */ n.jsx(
|
|
5077
5162
|
"div",
|
|
5078
5163
|
{
|
|
5079
5164
|
ref: o,
|
|
5080
|
-
className: p(
|
|
5165
|
+
className: p(jo({ variant: s }), r),
|
|
5081
5166
|
...t,
|
|
5082
5167
|
children: e
|
|
5083
5168
|
}
|
|
5084
5169
|
);
|
|
5085
5170
|
}
|
|
5086
|
-
),
|
|
5171
|
+
), So = z.forwardRef(
|
|
5087
5172
|
({ children: e, className: r, responsiveFlex: t = !0, ...o }, s) => {
|
|
5088
5173
|
const { variant: a } = je();
|
|
5089
5174
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -5091,7 +5176,7 @@ const xo = y(
|
|
|
5091
5176
|
{
|
|
5092
5177
|
ref: s,
|
|
5093
5178
|
className: p(
|
|
5094
|
-
|
|
5179
|
+
No({ variant: a, responsiveFlex: t }),
|
|
5095
5180
|
r
|
|
5096
5181
|
),
|
|
5097
5182
|
...o,
|
|
@@ -5099,7 +5184,7 @@ const xo = y(
|
|
|
5099
5184
|
}
|
|
5100
5185
|
);
|
|
5101
5186
|
}
|
|
5102
|
-
),
|
|
5187
|
+
), Ro = ({
|
|
5103
5188
|
children: e,
|
|
5104
5189
|
isOpen: r,
|
|
5105
5190
|
onClose: t,
|
|
@@ -5133,14 +5218,14 @@ const xo = y(
|
|
|
5133
5218
|
r && "pointer-events-auto"
|
|
5134
5219
|
),
|
|
5135
5220
|
children: [
|
|
5136
|
-
/* @__PURE__ */ n.jsx(
|
|
5221
|
+
/* @__PURE__ */ n.jsx(Co, {}),
|
|
5137
5222
|
/* @__PURE__ */ n.jsx(
|
|
5138
5223
|
"div",
|
|
5139
5224
|
{
|
|
5140
5225
|
role: r ? "dialog" : void 0,
|
|
5141
5226
|
"aria-modal": r ? "true" : void 0,
|
|
5142
5227
|
className: p(
|
|
5143
|
-
|
|
5228
|
+
yo({
|
|
5144
5229
|
position: o,
|
|
5145
5230
|
size: s,
|
|
5146
5231
|
variant: a
|
|
@@ -5157,49 +5242,11 @@ const xo = y(
|
|
|
5157
5242
|
]
|
|
5158
5243
|
}
|
|
5159
5244
|
) });
|
|
5160
|
-
},
|
|
5161
|
-
Header:
|
|
5162
|
-
Body:
|
|
5163
|
-
Footer:
|
|
5164
|
-
}),
|
|
5165
|
-
variants: {
|
|
5166
|
-
size: {
|
|
5167
|
-
xs: "w-3 h-3",
|
|
5168
|
-
sm: "w-4 h-4",
|
|
5169
|
-
md: "w-5 h-5",
|
|
5170
|
-
lg: "w-6 h-6",
|
|
5171
|
-
xl: "w-8 h-8"
|
|
5172
|
-
},
|
|
5173
|
-
color: {
|
|
5174
|
-
primary: "text-primary",
|
|
5175
|
-
secondary: "text-secondary",
|
|
5176
|
-
tertiary: "text-tertiary",
|
|
5177
|
-
ghost: "text-ghost",
|
|
5178
|
-
neutral: "text-neutral",
|
|
5179
|
-
success: "text-success",
|
|
5180
|
-
info: "text-info",
|
|
5181
|
-
warning: "text-warning",
|
|
5182
|
-
danger: "text-danger"
|
|
5183
|
-
}
|
|
5184
|
-
},
|
|
5185
|
-
defaultVariants: {
|
|
5186
|
-
size: "md",
|
|
5187
|
-
color: "primary"
|
|
5188
|
-
}
|
|
5189
|
-
}), Ys = ({
|
|
5190
|
-
color: e = "primary",
|
|
5191
|
-
size: r = "md",
|
|
5192
|
-
children: t,
|
|
5193
|
-
...o
|
|
5194
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
5195
|
-
"span",
|
|
5196
|
-
{
|
|
5197
|
-
className: Io({ color: e, size: r, className: o.className }),
|
|
5198
|
-
"aria-hidden": "true",
|
|
5199
|
-
...o,
|
|
5200
|
-
children: t
|
|
5201
|
-
}
|
|
5202
|
-
), So = y("space-y-2", {
|
|
5245
|
+
}, qs = Object.assign(Ro, {
|
|
5246
|
+
Header: Io,
|
|
5247
|
+
Body: zo,
|
|
5248
|
+
Footer: So
|
|
5249
|
+
}), Vo = y("space-y-2", {
|
|
5203
5250
|
variants: {
|
|
5204
5251
|
direction: {
|
|
5205
5252
|
vertical: "space-y-2 space-x-0",
|
|
@@ -5209,7 +5256,7 @@ const xo = y(
|
|
|
5209
5256
|
defaultVariants: {
|
|
5210
5257
|
direction: "vertical"
|
|
5211
5258
|
}
|
|
5212
|
-
}),
|
|
5259
|
+
}), Eo = y(
|
|
5213
5260
|
"relative h-4 w-4 rounded-full border cursor-pointer transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed appearance-none bg-white",
|
|
5214
5261
|
{
|
|
5215
5262
|
variants: {
|
|
@@ -5247,7 +5294,7 @@ const xo = y(
|
|
|
5247
5294
|
size: "md"
|
|
5248
5295
|
}
|
|
5249
5296
|
}
|
|
5250
|
-
),
|
|
5297
|
+
), To = y(
|
|
5251
5298
|
"text-foreground cursor-pointer select-none",
|
|
5252
5299
|
{
|
|
5253
5300
|
variants: {
|
|
@@ -5268,16 +5315,16 @@ const xo = y(
|
|
|
5268
5315
|
}
|
|
5269
5316
|
), fr = ee(
|
|
5270
5317
|
null
|
|
5271
|
-
),
|
|
5318
|
+
), Ao = () => {
|
|
5272
5319
|
const e = re(fr);
|
|
5273
5320
|
if (!e)
|
|
5274
5321
|
throw new Error(
|
|
5275
5322
|
"useRadioInputContext must be used within RadioInputContext"
|
|
5276
5323
|
);
|
|
5277
5324
|
return e;
|
|
5278
|
-
},
|
|
5325
|
+
}, Mo = z.forwardRef(
|
|
5279
5326
|
({ children: e, description: r, className: t, disabled: o, id: s, value: a, ...i }, l) => {
|
|
5280
|
-
const c =
|
|
5327
|
+
const c = Ao(), d = z.useId(), f = s || d, g = o || c.disabled, b = c.error ? "danger" : c.variant || "primary";
|
|
5281
5328
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5282
5329
|
/* @__PURE__ */ n.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
5283
5330
|
"input",
|
|
@@ -5289,7 +5336,7 @@ const xo = y(
|
|
|
5289
5336
|
value: a,
|
|
5290
5337
|
disabled: g,
|
|
5291
5338
|
className: p(
|
|
5292
|
-
|
|
5339
|
+
Eo({
|
|
5293
5340
|
variant: b,
|
|
5294
5341
|
size: c.size
|
|
5295
5342
|
}),
|
|
@@ -5312,7 +5359,7 @@ const xo = y(
|
|
|
5312
5359
|
"label",
|
|
5313
5360
|
{
|
|
5314
5361
|
htmlFor: f,
|
|
5315
|
-
className:
|
|
5362
|
+
className: To({
|
|
5316
5363
|
size: c.size,
|
|
5317
5364
|
disabled: g
|
|
5318
5365
|
}),
|
|
@@ -5335,7 +5382,7 @@ const xo = y(
|
|
|
5335
5382
|
] })
|
|
5336
5383
|
] });
|
|
5337
5384
|
}
|
|
5338
|
-
),
|
|
5385
|
+
), Po = z.forwardRef(
|
|
5339
5386
|
({
|
|
5340
5387
|
variant: e = "primary",
|
|
5341
5388
|
size: r = "md",
|
|
@@ -5358,14 +5405,14 @@ const xo = y(
|
|
|
5358
5405
|
};
|
|
5359
5406
|
return /* @__PURE__ */ n.jsx(fr.Provider, { value: m, children: /* @__PURE__ */ n.jsxs("div", { ref: g, className: p("w-full", i), ...f, children: [
|
|
5360
5407
|
t && /* @__PURE__ */ n.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: t }),
|
|
5361
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
5408
|
+
/* @__PURE__ */ n.jsx("div", { className: Vo({ direction: a }), children: d }),
|
|
5362
5409
|
b && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: s }),
|
|
5363
5410
|
!b && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5364
5411
|
] }) });
|
|
5365
5412
|
}
|
|
5366
|
-
),
|
|
5367
|
-
Option:
|
|
5368
|
-
}),
|
|
5413
|
+
), Us = Object.assign(Po, {
|
|
5414
|
+
Option: Mo
|
|
5415
|
+
}), Oo = y(
|
|
5369
5416
|
"inline-flex rounded-lg border overflow-hidden bg-neutral/50 p-1",
|
|
5370
5417
|
{
|
|
5371
5418
|
variants: {
|
|
@@ -5408,7 +5455,7 @@ const xo = y(
|
|
|
5408
5455
|
error: !1
|
|
5409
5456
|
}
|
|
5410
5457
|
}
|
|
5411
|
-
),
|
|
5458
|
+
), Bo = y(
|
|
5412
5459
|
"relative flex flex-row items-center px-3 py-2 text-center font-medium transition-all duration-200 cursor-pointer border-0 bg-transparent outline-none focus:ring-2 focus:ring-offset-1",
|
|
5413
5460
|
{
|
|
5414
5461
|
variants: {
|
|
@@ -5453,7 +5500,7 @@ const xo = y(
|
|
|
5453
5500
|
rounded: "middle"
|
|
5454
5501
|
}
|
|
5455
5502
|
}
|
|
5456
|
-
),
|
|
5503
|
+
), Do = (e) => {
|
|
5457
5504
|
const r = {
|
|
5458
5505
|
// Core variants - override hover text color changes
|
|
5459
5506
|
primary: "bg-coral text-white shadow-sm hover:text-white",
|
|
@@ -5478,16 +5525,16 @@ const xo = y(
|
|
|
5478
5525
|
"danger-outline": "bg-danger text-white shadow-sm hover:text-white"
|
|
5479
5526
|
};
|
|
5480
5527
|
return r[e || "primary"] || r.primary;
|
|
5481
|
-
}, br = ee(null),
|
|
5528
|
+
}, br = ee(null), _o = () => {
|
|
5482
5529
|
const e = re(br);
|
|
5483
5530
|
if (!e)
|
|
5484
5531
|
throw new Error(
|
|
5485
5532
|
"useSegmentSingleInputContext must be used within SegmentSingleInputContext"
|
|
5486
5533
|
);
|
|
5487
5534
|
return e;
|
|
5488
|
-
}, mr =
|
|
5535
|
+
}, mr = z.forwardRef(
|
|
5489
5536
|
({ children: e, className: r, disabled: t, id: o, value: s, position: a = "middle", ...i }, l) => {
|
|
5490
|
-
const c =
|
|
5537
|
+
const c = _o(), d = z.useId(), f = o || d, g = t || c.disabled, b = c.error ? "danger" : c.variant || "primary", m = c.value === s, v = (w) => {
|
|
5491
5538
|
if (!g) {
|
|
5492
5539
|
const C = c.value === s ? null : s;
|
|
5493
5540
|
c.onChange?.(C);
|
|
@@ -5515,13 +5562,13 @@ const xo = y(
|
|
|
5515
5562
|
{
|
|
5516
5563
|
htmlFor: f,
|
|
5517
5564
|
className: p(
|
|
5518
|
-
|
|
5565
|
+
Bo({
|
|
5519
5566
|
variant: b,
|
|
5520
5567
|
size: c.size,
|
|
5521
5568
|
rounded: a
|
|
5522
5569
|
}),
|
|
5523
5570
|
// Apply selected state styling
|
|
5524
|
-
m &&
|
|
5571
|
+
m && Do(b),
|
|
5525
5572
|
m && "relative z-10",
|
|
5526
5573
|
// Apply disabled styling directly since labels don't support disabled attribute
|
|
5527
5574
|
g && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
@@ -5534,7 +5581,7 @@ const xo = y(
|
|
|
5534
5581
|
}
|
|
5535
5582
|
);
|
|
5536
5583
|
mr.displayName = "SegmentOption";
|
|
5537
|
-
const
|
|
5584
|
+
const Fo = z.forwardRef(
|
|
5538
5585
|
({
|
|
5539
5586
|
variant: e = "primary",
|
|
5540
5587
|
size: r = "md",
|
|
@@ -5557,10 +5604,10 @@ const Do = I.forwardRef(
|
|
|
5557
5604
|
name: l,
|
|
5558
5605
|
value: c,
|
|
5559
5606
|
onChange: d
|
|
5560
|
-
}, w =
|
|
5561
|
-
if (
|
|
5607
|
+
}, w = z.Children.toArray(f), C = w.map((R, A) => {
|
|
5608
|
+
if (z.isValidElement(R)) {
|
|
5562
5609
|
let N;
|
|
5563
|
-
return w.length === 1 ? N = "single" : A === 0 ? N = "first" : A === w.length - 1 ? N = "last" : N = "middle",
|
|
5610
|
+
return w.length === 1 ? N = "single" : A === 0 ? N = "first" : A === w.length - 1 ? N = "last" : N = "middle", z.cloneElement(
|
|
5564
5611
|
R,
|
|
5565
5612
|
{ position: N }
|
|
5566
5613
|
);
|
|
@@ -5572,7 +5619,7 @@ const Do = I.forwardRef(
|
|
|
5572
5619
|
/* @__PURE__ */ n.jsx(
|
|
5573
5620
|
"div",
|
|
5574
5621
|
{
|
|
5575
|
-
className:
|
|
5622
|
+
className: Oo({
|
|
5576
5623
|
variant: m ? "danger" : e,
|
|
5577
5624
|
size: r,
|
|
5578
5625
|
error: m
|
|
@@ -5584,9 +5631,9 @@ const Do = I.forwardRef(
|
|
|
5584
5631
|
!m && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5585
5632
|
] }) });
|
|
5586
5633
|
}
|
|
5587
|
-
),
|
|
5634
|
+
), Hs = Object.assign(Fo, {
|
|
5588
5635
|
Option: mr
|
|
5589
|
-
}),
|
|
5636
|
+
}), Lo = y(
|
|
5590
5637
|
"inline-flex rounded-lg border overflow-hidden bg-neutral/50 p-1",
|
|
5591
5638
|
{
|
|
5592
5639
|
variants: {
|
|
@@ -5629,7 +5676,7 @@ const Do = I.forwardRef(
|
|
|
5629
5676
|
error: !1
|
|
5630
5677
|
}
|
|
5631
5678
|
}
|
|
5632
|
-
),
|
|
5679
|
+
), $o = y(
|
|
5633
5680
|
"relative flex flex-row items-center px-3 py-2 text-center font-medium transition-all duration-200 cursor-pointer border-0 bg-transparent outline-none focus:ring-2 focus:ring-offset-1",
|
|
5634
5681
|
{
|
|
5635
5682
|
variants: {
|
|
@@ -5674,7 +5721,7 @@ const Do = I.forwardRef(
|
|
|
5674
5721
|
rounded: "middle"
|
|
5675
5722
|
}
|
|
5676
5723
|
}
|
|
5677
|
-
),
|
|
5724
|
+
), Go = (e) => {
|
|
5678
5725
|
const r = {
|
|
5679
5726
|
// Core variants - override hover text color changes
|
|
5680
5727
|
primary: "bg-coral text-white shadow-sm hover:text-white",
|
|
@@ -5699,16 +5746,16 @@ const Do = I.forwardRef(
|
|
|
5699
5746
|
"danger-outline": "bg-danger text-white shadow-sm hover:text-white"
|
|
5700
5747
|
};
|
|
5701
5748
|
return r[e || "primary"] || r.primary;
|
|
5702
|
-
}, hr = ee(null),
|
|
5749
|
+
}, hr = ee(null), Wo = () => {
|
|
5703
5750
|
const e = re(hr);
|
|
5704
5751
|
if (!e)
|
|
5705
5752
|
throw new Error(
|
|
5706
5753
|
"useSegmentMultipleInputContext must be used within SegmentMultipleInputContext"
|
|
5707
5754
|
);
|
|
5708
5755
|
return e;
|
|
5709
|
-
}, xr =
|
|
5756
|
+
}, xr = z.forwardRef(
|
|
5710
5757
|
({ children: e, className: r, disabled: t, id: o, value: s, position: a = "middle", ...i }, l) => {
|
|
5711
|
-
const c =
|
|
5758
|
+
const c = Wo(), d = z.useId(), f = o || d, g = t || c.disabled, b = c.error ? "danger" : c.variant || "primary", m = c.value?.includes(s) ?? !1, v = (w) => {
|
|
5712
5759
|
if (!g) {
|
|
5713
5760
|
const C = c.value || [];
|
|
5714
5761
|
let R;
|
|
@@ -5737,13 +5784,13 @@ const Do = I.forwardRef(
|
|
|
5737
5784
|
{
|
|
5738
5785
|
htmlFor: f,
|
|
5739
5786
|
className: p(
|
|
5740
|
-
|
|
5787
|
+
$o({
|
|
5741
5788
|
variant: b,
|
|
5742
5789
|
size: c.size,
|
|
5743
5790
|
rounded: a
|
|
5744
5791
|
}),
|
|
5745
5792
|
// Apply selected state styling
|
|
5746
|
-
m &&
|
|
5793
|
+
m && Go(b),
|
|
5747
5794
|
m && "relative z-10",
|
|
5748
5795
|
// Apply disabled styling directly since labels don't support disabled attribute
|
|
5749
5796
|
g && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
@@ -5756,7 +5803,7 @@ const Do = I.forwardRef(
|
|
|
5756
5803
|
}
|
|
5757
5804
|
);
|
|
5758
5805
|
xr.displayName = "SegmentOption";
|
|
5759
|
-
const
|
|
5806
|
+
const Yo = z.forwardRef(
|
|
5760
5807
|
({
|
|
5761
5808
|
variant: e = "primary",
|
|
5762
5809
|
size: r = "md",
|
|
@@ -5779,10 +5826,10 @@ const Go = I.forwardRef(
|
|
|
5779
5826
|
name: l,
|
|
5780
5827
|
value: c,
|
|
5781
5828
|
onChange: d
|
|
5782
|
-
}, w =
|
|
5783
|
-
if (
|
|
5829
|
+
}, w = z.Children.toArray(f), C = w.map((R, A) => {
|
|
5830
|
+
if (z.isValidElement(R)) {
|
|
5784
5831
|
let N;
|
|
5785
|
-
return w.length === 1 ? N = "single" : A === 0 ? N = "first" : A === w.length - 1 ? N = "last" : N = "middle",
|
|
5832
|
+
return w.length === 1 ? N = "single" : A === 0 ? N = "first" : A === w.length - 1 ? N = "last" : N = "middle", z.cloneElement(
|
|
5786
5833
|
R,
|
|
5787
5834
|
{ position: N }
|
|
5788
5835
|
);
|
|
@@ -5794,7 +5841,7 @@ const Go = I.forwardRef(
|
|
|
5794
5841
|
/* @__PURE__ */ n.jsx(
|
|
5795
5842
|
"div",
|
|
5796
5843
|
{
|
|
5797
|
-
className:
|
|
5844
|
+
className: Lo({
|
|
5798
5845
|
variant: m ? "danger" : e,
|
|
5799
5846
|
size: r,
|
|
5800
5847
|
error: m
|
|
@@ -5806,9 +5853,9 @@ const Go = I.forwardRef(
|
|
|
5806
5853
|
!m && o && /* @__PURE__ */ n.jsx("div", { className: "mt-2 text-sm text-gray-600", children: o })
|
|
5807
5854
|
] }) });
|
|
5808
5855
|
}
|
|
5809
|
-
),
|
|
5856
|
+
), Js = Object.assign(Yo, {
|
|
5810
5857
|
Option: xr
|
|
5811
|
-
}),
|
|
5858
|
+
}), qo = y(
|
|
5812
5859
|
"block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50 appearance-none bg-no-repeat bg-right pr-10",
|
|
5813
5860
|
{
|
|
5814
5861
|
variants: {
|
|
@@ -5840,7 +5887,7 @@ const Go = I.forwardRef(
|
|
|
5840
5887
|
variant: "primary"
|
|
5841
5888
|
}
|
|
5842
5889
|
}
|
|
5843
|
-
),
|
|
5890
|
+
), Uo = z.forwardRef(
|
|
5844
5891
|
({
|
|
5845
5892
|
variant: e = "primary",
|
|
5846
5893
|
label: r,
|
|
@@ -5853,7 +5900,7 @@ const Go = I.forwardRef(
|
|
|
5853
5900
|
children: c,
|
|
5854
5901
|
...d
|
|
5855
5902
|
}, f) => {
|
|
5856
|
-
const g =
|
|
5903
|
+
const g = z.useId(), b = i || g, m = !!o;
|
|
5857
5904
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
5858
5905
|
/* @__PURE__ */ n.jsx(
|
|
5859
5906
|
"label",
|
|
@@ -5873,7 +5920,7 @@ const Go = I.forwardRef(
|
|
|
5873
5920
|
"aria-disabled": a,
|
|
5874
5921
|
disabled: a,
|
|
5875
5922
|
className: p(
|
|
5876
|
-
|
|
5923
|
+
qo({
|
|
5877
5924
|
variant: m ? "danger" : e
|
|
5878
5925
|
}),
|
|
5879
5926
|
"h-10 pl-3"
|
|
@@ -5909,8 +5956,8 @@ const Go = I.forwardRef(
|
|
|
5909
5956
|
] });
|
|
5910
5957
|
}
|
|
5911
5958
|
);
|
|
5912
|
-
|
|
5913
|
-
const
|
|
5959
|
+
Uo.displayName = "SelectInput";
|
|
5960
|
+
const Ho = y(
|
|
5914
5961
|
"flex items-center gap-2 px-4 py-2 rounded-sm w-fit max-w-sm relative bg-white shadow-sm",
|
|
5915
5962
|
{
|
|
5916
5963
|
variants: {
|
|
@@ -5926,7 +5973,7 @@ const qo = y(
|
|
|
5926
5973
|
}
|
|
5927
5974
|
}
|
|
5928
5975
|
);
|
|
5929
|
-
function
|
|
5976
|
+
function Jo(e) {
|
|
5930
5977
|
switch (e) {
|
|
5931
5978
|
case "info":
|
|
5932
5979
|
return "info-ghost";
|
|
@@ -5939,7 +5986,7 @@ function Uo(e) {
|
|
|
5939
5986
|
return "success-ghost";
|
|
5940
5987
|
}
|
|
5941
5988
|
}
|
|
5942
|
-
const
|
|
5989
|
+
const Xo = ({
|
|
5943
5990
|
children: e,
|
|
5944
5991
|
...r
|
|
5945
5992
|
}) => /* @__PURE__ */ n.jsx(
|
|
@@ -5950,31 +5997,31 @@ const Ho = ({
|
|
|
5950
5997
|
...r,
|
|
5951
5998
|
children: e
|
|
5952
5999
|
}
|
|
5953
|
-
),
|
|
6000
|
+
), Ko = ({
|
|
5954
6001
|
children: e,
|
|
5955
6002
|
...r
|
|
5956
|
-
}) => /* @__PURE__ */ n.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...r, children: e }),
|
|
6003
|
+
}) => /* @__PURE__ */ n.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...r, children: e }), Xs = E(
|
|
5957
6004
|
({ children: e, action: r, onClose: t, color: o, className: s, ...a }, i) => /* @__PURE__ */ n.jsxs(
|
|
5958
6005
|
"div",
|
|
5959
6006
|
{
|
|
5960
6007
|
ref: i,
|
|
5961
6008
|
role: "status",
|
|
5962
6009
|
"aria-live": "polite",
|
|
5963
|
-
className: p(
|
|
6010
|
+
className: p(Ho({ color: o }), s),
|
|
5964
6011
|
...a,
|
|
5965
6012
|
children: [
|
|
5966
|
-
/* @__PURE__ */ n.jsx(
|
|
5967
|
-
r && /* @__PURE__ */ n.jsx(
|
|
6013
|
+
/* @__PURE__ */ n.jsx(Xo, { children: e }),
|
|
6014
|
+
r && /* @__PURE__ */ n.jsx(Ko, { children: r }),
|
|
5968
6015
|
/* @__PURE__ */ n.jsx(
|
|
5969
6016
|
le,
|
|
5970
6017
|
{
|
|
5971
|
-
|
|
6018
|
+
as: Cr,
|
|
6019
|
+
variant: Jo(o),
|
|
5972
6020
|
size: "sm",
|
|
5973
6021
|
shape: "rounded",
|
|
5974
6022
|
"aria-label": "Close",
|
|
5975
6023
|
onClick: t,
|
|
5976
|
-
className: "ml-2"
|
|
5977
|
-
children: /* @__PURE__ */ n.jsx(Cr, { size: 16 })
|
|
6024
|
+
className: "ml-2"
|
|
5978
6025
|
}
|
|
5979
6026
|
)
|
|
5980
6027
|
]
|
|
@@ -5985,7 +6032,7 @@ const Ho = ({
|
|
|
5985
6032
|
if (!e)
|
|
5986
6033
|
throw new Error("useTabsContext must be used within a TabsProvider");
|
|
5987
6034
|
return e;
|
|
5988
|
-
},
|
|
6035
|
+
}, Zo = y(
|
|
5989
6036
|
"inline-flex items-center justify-center transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none select-none px-4 py-2 text-base bg-transparent relative border-b-2 border-transparent",
|
|
5990
6037
|
{
|
|
5991
6038
|
variants: {
|
|
@@ -6063,13 +6110,13 @@ const Ho = ({
|
|
|
6063
6110
|
color: "primary"
|
|
6064
6111
|
}
|
|
6065
6112
|
}
|
|
6066
|
-
),
|
|
6113
|
+
), Qo = y(
|
|
6067
6114
|
"flex flex-row w-full border-b border-neutral overflow-x-auto whitespace-nowrap",
|
|
6068
6115
|
{
|
|
6069
6116
|
variants: {},
|
|
6070
6117
|
defaultVariants: {}
|
|
6071
6118
|
}
|
|
6072
|
-
),
|
|
6119
|
+
), es = y(
|
|
6073
6120
|
"absolute bottom-0 h-0.5 rounded transition-all duration-300",
|
|
6074
6121
|
{
|
|
6075
6122
|
variants: {
|
|
@@ -6085,7 +6132,7 @@ const Ho = ({
|
|
|
6085
6132
|
color: "primary"
|
|
6086
6133
|
}
|
|
6087
6134
|
}
|
|
6088
|
-
),
|
|
6135
|
+
), rs = ({
|
|
6089
6136
|
value: e,
|
|
6090
6137
|
children: r,
|
|
6091
6138
|
className: t,
|
|
@@ -6101,7 +6148,7 @@ const Ho = ({
|
|
|
6101
6148
|
"aria-controls": `tabs-content-${e}`,
|
|
6102
6149
|
tabIndex: l ? 0 : -1,
|
|
6103
6150
|
className: p(
|
|
6104
|
-
|
|
6151
|
+
Zo({
|
|
6105
6152
|
active: l,
|
|
6106
6153
|
color: i
|
|
6107
6154
|
}),
|
|
@@ -6113,7 +6160,7 @@ const Ho = ({
|
|
|
6113
6160
|
children: r
|
|
6114
6161
|
}
|
|
6115
6162
|
);
|
|
6116
|
-
},
|
|
6163
|
+
}, ts = ({
|
|
6117
6164
|
left: e,
|
|
6118
6165
|
width: r,
|
|
6119
6166
|
className: t,
|
|
@@ -6124,7 +6171,7 @@ const Ho = ({
|
|
|
6124
6171
|
"div",
|
|
6125
6172
|
{
|
|
6126
6173
|
"aria-hidden": !0,
|
|
6127
|
-
className: p(
|
|
6174
|
+
className: p(es({ color: s }), t),
|
|
6128
6175
|
style: {
|
|
6129
6176
|
left: e,
|
|
6130
6177
|
width: r,
|
|
@@ -6134,7 +6181,7 @@ const Ho = ({
|
|
|
6134
6181
|
}
|
|
6135
6182
|
);
|
|
6136
6183
|
};
|
|
6137
|
-
function
|
|
6184
|
+
function os(e, r, t) {
|
|
6138
6185
|
const [o, s] = U({
|
|
6139
6186
|
left: 0,
|
|
6140
6187
|
width: 0
|
|
@@ -6154,7 +6201,7 @@ function rs(e, r, t) {
|
|
|
6154
6201
|
}
|
|
6155
6202
|
}, [e, t, r]), o;
|
|
6156
6203
|
}
|
|
6157
|
-
const
|
|
6204
|
+
const ss = ({
|
|
6158
6205
|
value: e,
|
|
6159
6206
|
onValueChange: r,
|
|
6160
6207
|
children: t,
|
|
@@ -6166,19 +6213,19 @@ const ts = ({
|
|
|
6166
6213
|
activeTab: e,
|
|
6167
6214
|
setActiveTab: r,
|
|
6168
6215
|
color: s
|
|
6169
|
-
}, l = ce(null), c =
|
|
6216
|
+
}, l = ce(null), c = os(e, l, t);
|
|
6170
6217
|
return /* @__PURE__ */ n.jsx(pr.Provider, { value: i, children: /* @__PURE__ */ n.jsxs(
|
|
6171
6218
|
"div",
|
|
6172
6219
|
{
|
|
6173
6220
|
role: "tablist",
|
|
6174
|
-
className: p(
|
|
6221
|
+
className: p(Qo(), o),
|
|
6175
6222
|
ref: l,
|
|
6176
6223
|
style: { position: "relative" },
|
|
6177
6224
|
...a,
|
|
6178
6225
|
children: [
|
|
6179
6226
|
t,
|
|
6180
6227
|
/* @__PURE__ */ n.jsx(
|
|
6181
|
-
|
|
6228
|
+
ts,
|
|
6182
6229
|
{
|
|
6183
6230
|
left: c.left,
|
|
6184
6231
|
width: c.width
|
|
@@ -6187,9 +6234,9 @@ const ts = ({
|
|
|
6187
6234
|
]
|
|
6188
6235
|
}
|
|
6189
6236
|
) });
|
|
6190
|
-
},
|
|
6191
|
-
Trigger:
|
|
6192
|
-
}),
|
|
6237
|
+
}, Ks = Object.assign(ss, {
|
|
6238
|
+
Trigger: rs
|
|
6239
|
+
}), ns = y("", {
|
|
6193
6240
|
variants: {
|
|
6194
6241
|
color: {
|
|
6195
6242
|
primary: "text-primary",
|
|
@@ -6254,7 +6301,7 @@ const ts = ({
|
|
|
6254
6301
|
ellipsis: !1,
|
|
6255
6302
|
as: "span"
|
|
6256
6303
|
}
|
|
6257
|
-
}),
|
|
6304
|
+
}), Zs = E(
|
|
6258
6305
|
({
|
|
6259
6306
|
as: e = "span",
|
|
6260
6307
|
color: r = "ghost",
|
|
@@ -6286,7 +6333,7 @@ const ts = ({
|
|
|
6286
6333
|
{
|
|
6287
6334
|
ref: m,
|
|
6288
6335
|
className: p(
|
|
6289
|
-
|
|
6336
|
+
ns({
|
|
6290
6337
|
color: r,
|
|
6291
6338
|
hasUnderline: t,
|
|
6292
6339
|
isCapitalize: o,
|
|
@@ -6306,7 +6353,7 @@ const ts = ({
|
|
|
6306
6353
|
}
|
|
6307
6354
|
);
|
|
6308
6355
|
}
|
|
6309
|
-
),
|
|
6356
|
+
), as = z.forwardRef(
|
|
6310
6357
|
({
|
|
6311
6358
|
variant: e = "primary",
|
|
6312
6359
|
label: r,
|
|
@@ -6319,7 +6366,7 @@ const ts = ({
|
|
|
6319
6366
|
id: c,
|
|
6320
6367
|
...d
|
|
6321
6368
|
}, f) => {
|
|
6322
|
-
const g =
|
|
6369
|
+
const g = z.useId(), b = c || g, m = !!a;
|
|
6323
6370
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
|
6324
6371
|
/* @__PURE__ */ n.jsx(
|
|
6325
6372
|
"label",
|
|
@@ -6371,8 +6418,8 @@ const ts = ({
|
|
|
6371
6418
|
] });
|
|
6372
6419
|
}
|
|
6373
6420
|
);
|
|
6374
|
-
|
|
6375
|
-
const
|
|
6421
|
+
as.displayName = "TextInput";
|
|
6422
|
+
const is = y(
|
|
6376
6423
|
"block w-full rounded-md border bg-white transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-50",
|
|
6377
6424
|
{
|
|
6378
6425
|
variants: {
|
|
@@ -6409,7 +6456,7 @@ const ns = y(
|
|
|
6409
6456
|
fieldSizing: "fixed"
|
|
6410
6457
|
}
|
|
6411
6458
|
}
|
|
6412
|
-
),
|
|
6459
|
+
), ls = z.forwardRef(
|
|
6413
6460
|
({
|
|
6414
6461
|
variant: e = "primary",
|
|
6415
6462
|
label: r,
|
|
@@ -6425,7 +6472,7 @@ const ns = y(
|
|
|
6425
6472
|
rows: g,
|
|
6426
6473
|
...b
|
|
6427
6474
|
}, m) => {
|
|
6428
|
-
const v =
|
|
6475
|
+
const v = z.useId(), w = i || v, C = !!o, R = g || l, A = d === "content" ? void 0 : c, N = {
|
|
6429
6476
|
...d === "content" && { fieldSizing: "content" },
|
|
6430
6477
|
...A && {
|
|
6431
6478
|
maxHeight: `${A * 1.5}rem`
|
|
@@ -6453,7 +6500,7 @@ const ns = y(
|
|
|
6453
6500
|
disabled: a,
|
|
6454
6501
|
style: N,
|
|
6455
6502
|
className: p(
|
|
6456
|
-
|
|
6503
|
+
is({
|
|
6457
6504
|
variant: C ? "danger" : e,
|
|
6458
6505
|
fieldSizing: d
|
|
6459
6506
|
}),
|
|
@@ -6467,8 +6514,8 @@ const ns = y(
|
|
|
6467
6514
|
] });
|
|
6468
6515
|
}
|
|
6469
6516
|
);
|
|
6470
|
-
|
|
6471
|
-
const
|
|
6517
|
+
ls.displayName = "TextAreaInput";
|
|
6518
|
+
const cs = y(
|
|
6472
6519
|
// Base classes
|
|
6473
6520
|
"block transition-colors duration-200",
|
|
6474
6521
|
{
|
|
@@ -6503,22 +6550,22 @@ const is = y(
|
|
|
6503
6550
|
shape: "rounded"
|
|
6504
6551
|
}
|
|
6505
6552
|
}
|
|
6506
|
-
),
|
|
6553
|
+
), Qs = E(
|
|
6507
6554
|
({ variant: e = "white", size: r = "md", shape: t = "rounded", className: o, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
6508
6555
|
"div",
|
|
6509
6556
|
{
|
|
6510
6557
|
ref: a,
|
|
6511
|
-
className: p(
|
|
6558
|
+
className: p(cs({ variant: e, size: r, shape: t }), o),
|
|
6512
6559
|
...s
|
|
6513
6560
|
}
|
|
6514
6561
|
)
|
|
6515
|
-
),
|
|
6562
|
+
), ds = y(
|
|
6516
6563
|
"w-full flex items-center px-6 py-2 border-b border-neutral bg-white",
|
|
6517
6564
|
{
|
|
6518
6565
|
variants: {},
|
|
6519
6566
|
defaultVariants: {}
|
|
6520
6567
|
}
|
|
6521
|
-
),
|
|
6568
|
+
), us = y("flex items-center gap-3 min-w-0 flex-1"), gs = y("flex items-center gap-2 ml-auto"), fs = y(
|
|
6522
6569
|
"px-2.5 py-1.5 rounded-md text-xs font-sm cursor-pointer transition-colors",
|
|
6523
6570
|
{
|
|
6524
6571
|
variants: {
|
|
@@ -6531,44 +6578,44 @@ const is = y(
|
|
|
6531
6578
|
active: !1
|
|
6532
6579
|
}
|
|
6533
6580
|
}
|
|
6534
|
-
),
|
|
6581
|
+
), bs = y("flex items-center gap-2 ml-4"), ms = y("flex items-center gap-2 mr-4"), hs = E(
|
|
6535
6582
|
function({ children: r, className: t, ...o }, s) {
|
|
6536
|
-
return /* @__PURE__ */ n.jsx("nav", { ref: s, className:
|
|
6583
|
+
return /* @__PURE__ */ n.jsx("nav", { ref: s, className: bs({ className: t }), ...o, children: r });
|
|
6537
6584
|
}
|
|
6538
|
-
),
|
|
6585
|
+
), xs = E(
|
|
6539
6586
|
function({ children: r, className: t, ...o }, s) {
|
|
6540
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className:
|
|
6587
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: ms({ className: t }), ...o, children: r });
|
|
6541
6588
|
}
|
|
6542
|
-
),
|
|
6589
|
+
), ps = E(
|
|
6543
6590
|
function({ children: r, className: t, ...o }, s) {
|
|
6544
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className:
|
|
6591
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: us({ className: t }), ...o, children: r });
|
|
6545
6592
|
}
|
|
6546
|
-
),
|
|
6593
|
+
), vs = E(
|
|
6547
6594
|
function({ children: r, className: t, ...o }, s) {
|
|
6548
|
-
return /* @__PURE__ */ n.jsx("div", { ref: s, className:
|
|
6595
|
+
return /* @__PURE__ */ n.jsx("div", { ref: s, className: gs({ className: t }), ...o, children: r });
|
|
6549
6596
|
}
|
|
6550
|
-
),
|
|
6597
|
+
), ws = E(
|
|
6551
6598
|
function({ children: r, className: t, active: o, ...s }, a) {
|
|
6552
6599
|
return /* @__PURE__ */ n.jsx(
|
|
6553
6600
|
"div",
|
|
6554
6601
|
{
|
|
6555
6602
|
ref: a,
|
|
6556
|
-
className:
|
|
6603
|
+
className: fs({ active: o, className: t }),
|
|
6557
6604
|
"aria-current": o ? "page" : void 0,
|
|
6558
6605
|
...s,
|
|
6559
6606
|
children: r
|
|
6560
6607
|
}
|
|
6561
6608
|
);
|
|
6562
6609
|
}
|
|
6563
|
-
),
|
|
6564
|
-
({ children: e, className: r, ...t }, o) => /* @__PURE__ */ n.jsx("header", { ref: o, className:
|
|
6565
|
-
),
|
|
6566
|
-
Leading:
|
|
6567
|
-
Trailing:
|
|
6568
|
-
NavItem:
|
|
6569
|
-
Nav:
|
|
6570
|
-
Actions:
|
|
6571
|
-
}),
|
|
6610
|
+
), ys = E(
|
|
6611
|
+
({ children: e, className: r, ...t }, o) => /* @__PURE__ */ n.jsx("header", { ref: o, className: ds({ className: r }), ...t, children: e })
|
|
6612
|
+
), en = Object.assign(ys, {
|
|
6613
|
+
Leading: ps,
|
|
6614
|
+
Trailing: vs,
|
|
6615
|
+
NavItem: ws,
|
|
6616
|
+
Nav: hs,
|
|
6617
|
+
Actions: xs
|
|
6618
|
+
}), ks = y(
|
|
6572
6619
|
"inline-block border animate-spin rounded-full",
|
|
6573
6620
|
{
|
|
6574
6621
|
variants: {
|
|
@@ -6594,7 +6641,7 @@ const is = y(
|
|
|
6594
6641
|
color: "primary"
|
|
6595
6642
|
}
|
|
6596
6643
|
}
|
|
6597
|
-
),
|
|
6644
|
+
), js = y("relative w-full h-1 overflow-hidden rounded", {
|
|
6598
6645
|
variants: {
|
|
6599
6646
|
color: {
|
|
6600
6647
|
primary: "bg-coral",
|
|
@@ -6617,7 +6664,7 @@ const is = y(
|
|
|
6617
6664
|
color: "primary",
|
|
6618
6665
|
size: "md"
|
|
6619
6666
|
}
|
|
6620
|
-
}),
|
|
6667
|
+
}), Ns = (e) => {
|
|
6621
6668
|
switch (e) {
|
|
6622
6669
|
case "primary":
|
|
6623
6670
|
return "bg-coral";
|
|
@@ -6640,7 +6687,7 @@ const is = y(
|
|
|
6640
6687
|
default:
|
|
6641
6688
|
return "bg-coral";
|
|
6642
6689
|
}
|
|
6643
|
-
},
|
|
6690
|
+
}, Cs = z.forwardRef(
|
|
6644
6691
|
({
|
|
6645
6692
|
color: e = "primary",
|
|
6646
6693
|
size: r = "md",
|
|
@@ -6653,11 +6700,11 @@ const is = y(
|
|
|
6653
6700
|
ref: a,
|
|
6654
6701
|
role: "status",
|
|
6655
6702
|
"aria-label": t,
|
|
6656
|
-
className: p(
|
|
6703
|
+
className: p(ks({ color: e, size: r }), o),
|
|
6657
6704
|
...s
|
|
6658
6705
|
}
|
|
6659
6706
|
)
|
|
6660
|
-
),
|
|
6707
|
+
), Is = z.forwardRef(
|
|
6661
6708
|
({
|
|
6662
6709
|
color: e = "primary",
|
|
6663
6710
|
size: r = "md",
|
|
@@ -6671,7 +6718,7 @@ const is = y(
|
|
|
6671
6718
|
role: "progressbar",
|
|
6672
6719
|
"aria-label": t,
|
|
6673
6720
|
className: p(
|
|
6674
|
-
|
|
6721
|
+
js({ color: e, size: r }),
|
|
6675
6722
|
"bg-neutral/40 relative overflow-hidden",
|
|
6676
6723
|
o
|
|
6677
6724
|
),
|
|
@@ -6691,7 +6738,7 @@ const is = y(
|
|
|
6691
6738
|
{
|
|
6692
6739
|
className: p(
|
|
6693
6740
|
"absolute left-0 top-0 h-full w-1/3 animate-loading-bar rounded-full",
|
|
6694
|
-
|
|
6741
|
+
Ns(e)
|
|
6695
6742
|
),
|
|
6696
6743
|
"aria-hidden": "true"
|
|
6697
6744
|
}
|
|
@@ -6699,7 +6746,7 @@ const is = y(
|
|
|
6699
6746
|
]
|
|
6700
6747
|
}
|
|
6701
6748
|
)
|
|
6702
|
-
),
|
|
6749
|
+
), zs = z.forwardRef(
|
|
6703
6750
|
({
|
|
6704
6751
|
type: e = "spinner",
|
|
6705
6752
|
size: r = "md",
|
|
@@ -6708,7 +6755,7 @@ const is = y(
|
|
|
6708
6755
|
className: s,
|
|
6709
6756
|
...a
|
|
6710
6757
|
}, i) => e === "bar" ? /* @__PURE__ */ n.jsx(
|
|
6711
|
-
|
|
6758
|
+
Is,
|
|
6712
6759
|
{
|
|
6713
6760
|
ref: i,
|
|
6714
6761
|
color: t,
|
|
@@ -6718,7 +6765,7 @@ const is = y(
|
|
|
6718
6765
|
...a
|
|
6719
6766
|
}
|
|
6720
6767
|
) : /* @__PURE__ */ n.jsx(
|
|
6721
|
-
|
|
6768
|
+
Cs,
|
|
6722
6769
|
{
|
|
6723
6770
|
ref: i,
|
|
6724
6771
|
color: t,
|
|
@@ -6729,8 +6776,8 @@ const is = y(
|
|
|
6729
6776
|
}
|
|
6730
6777
|
)
|
|
6731
6778
|
);
|
|
6732
|
-
|
|
6733
|
-
const
|
|
6779
|
+
zs.displayName = "LoadingIndicator";
|
|
6780
|
+
const Ss = y(
|
|
6734
6781
|
"relative inline-flex items-center transition-colors duration-200",
|
|
6735
6782
|
{
|
|
6736
6783
|
variants: {
|
|
@@ -6782,7 +6829,7 @@ const zs = y(
|
|
|
6782
6829
|
{ checked: !1, class: "bg-white border border-slate-300" }
|
|
6783
6830
|
]
|
|
6784
6831
|
}
|
|
6785
|
-
),
|
|
6832
|
+
), Rs = y(
|
|
6786
6833
|
"absolute rounded-full transition-transform duration-200",
|
|
6787
6834
|
{
|
|
6788
6835
|
variants: {
|
|
@@ -6801,7 +6848,7 @@ const zs = y(
|
|
|
6801
6848
|
checked: !1
|
|
6802
6849
|
}
|
|
6803
6850
|
}
|
|
6804
|
-
),
|
|
6851
|
+
), Vs = ({
|
|
6805
6852
|
color: e = "primary",
|
|
6806
6853
|
size: r = "md",
|
|
6807
6854
|
disabled: t = !1,
|
|
@@ -6811,13 +6858,13 @@ const zs = y(
|
|
|
6811
6858
|
"span",
|
|
6812
6859
|
{
|
|
6813
6860
|
className: p(
|
|
6814
|
-
|
|
6861
|
+
Ss({ color: e, size: r, disabled: t, checked: s }),
|
|
6815
6862
|
"rounded-full pointer-events-none",
|
|
6816
6863
|
o
|
|
6817
6864
|
),
|
|
6818
6865
|
"aria-hidden": "true"
|
|
6819
6866
|
}
|
|
6820
|
-
),
|
|
6867
|
+
), Es = ({ size: e = "md", checked: r = !1 }) => /* @__PURE__ */ n.jsx("span", { className: p(Rs({ size: e, checked: r })), "aria-hidden": "true" }), Ts = ({ label: e, htmlFor: r, placement: t = "top", disabled: o = !1 }) => e ? /* @__PURE__ */ n.jsx(
|
|
6821
6868
|
"label",
|
|
6822
6869
|
{
|
|
6823
6870
|
htmlFor: r,
|
|
@@ -6828,7 +6875,7 @@ const zs = y(
|
|
|
6828
6875
|
),
|
|
6829
6876
|
children: e
|
|
6830
6877
|
}
|
|
6831
|
-
) : null,
|
|
6878
|
+
) : null, As = z.forwardRef(
|
|
6832
6879
|
({
|
|
6833
6880
|
checked: e,
|
|
6834
6881
|
defaultChecked: r,
|
|
@@ -6858,7 +6905,7 @@ const zs = y(
|
|
|
6858
6905
|
),
|
|
6859
6906
|
children: [
|
|
6860
6907
|
/* @__PURE__ */ n.jsx(
|
|
6861
|
-
|
|
6908
|
+
Ts,
|
|
6862
6909
|
{
|
|
6863
6910
|
label: a,
|
|
6864
6911
|
htmlFor: C,
|
|
@@ -6889,7 +6936,7 @@ const zs = y(
|
|
|
6889
6936
|
}
|
|
6890
6937
|
),
|
|
6891
6938
|
/* @__PURE__ */ n.jsx(
|
|
6892
|
-
|
|
6939
|
+
Vs,
|
|
6893
6940
|
{
|
|
6894
6941
|
color: o,
|
|
6895
6942
|
size: s,
|
|
@@ -6897,7 +6944,7 @@ const zs = y(
|
|
|
6897
6944
|
checked: A
|
|
6898
6945
|
}
|
|
6899
6946
|
),
|
|
6900
|
-
/* @__PURE__ */ n.jsx(
|
|
6947
|
+
/* @__PURE__ */ n.jsx(Es, { size: s, checked: A })
|
|
6901
6948
|
]
|
|
6902
6949
|
}
|
|
6903
6950
|
)
|
|
@@ -6906,8 +6953,8 @@ const zs = y(
|
|
|
6906
6953
|
);
|
|
6907
6954
|
}
|
|
6908
6955
|
);
|
|
6909
|
-
|
|
6910
|
-
const
|
|
6956
|
+
As.displayName = "SwitchInput";
|
|
6957
|
+
const Ms = y("w-full overflow-hidden bg-neutral-200", {
|
|
6911
6958
|
variants: {
|
|
6912
6959
|
shape: {
|
|
6913
6960
|
rectangle: "rounded-none",
|
|
@@ -6926,7 +6973,7 @@ const Ts = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
6926
6973
|
shape: "rounded",
|
|
6927
6974
|
size: "md"
|
|
6928
6975
|
}
|
|
6929
|
-
}),
|
|
6976
|
+
}), rn = wr.forwardRef(
|
|
6930
6977
|
function({ shape: r = "rounded", size: t = "md", height: o, className: s, style: a, ...i }, l) {
|
|
6931
6978
|
const d = ["sm", "md", "lg", "xl"].includes(t) ? t : "md", f = o ? {
|
|
6932
6979
|
...a,
|
|
@@ -6939,7 +6986,7 @@ const Ts = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
6939
6986
|
role: "presentation",
|
|
6940
6987
|
className: p(
|
|
6941
6988
|
"relative",
|
|
6942
|
-
|
|
6989
|
+
Ms({ shape: r, size: d }),
|
|
6943
6990
|
s
|
|
6944
6991
|
),
|
|
6945
6992
|
style: f,
|
|
@@ -6961,42 +7008,42 @@ const Ts = y("w-full overflow-hidden bg-neutral-200", {
|
|
|
6961
7008
|
}
|
|
6962
7009
|
);
|
|
6963
7010
|
export {
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
7011
|
+
Bs as Alert,
|
|
7012
|
+
Ds as AppBar,
|
|
7013
|
+
_s as Avatar,
|
|
6967
7014
|
Ct as Badge,
|
|
6968
|
-
|
|
6969
|
-
|
|
7015
|
+
Fs as BottomBar,
|
|
7016
|
+
Ls as Breadcrumbs,
|
|
6970
7017
|
Ge as Button,
|
|
6971
|
-
|
|
7018
|
+
$s as ButtonFloat,
|
|
6972
7019
|
le as ButtonIcon,
|
|
6973
7020
|
or as Calendar,
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7021
|
+
Gs as CheckboxInput,
|
|
7022
|
+
Ws as ChipInput,
|
|
7023
|
+
Ys as DateSinglePickerInput,
|
|
7024
|
+
qs as Drawer,
|
|
7025
|
+
zo as DrawerBody,
|
|
7026
|
+
So as DrawerFooter,
|
|
7027
|
+
Io as DrawerHeader,
|
|
7028
|
+
Co as DrawerOverlay,
|
|
7029
|
+
Ft as Icon,
|
|
7030
|
+
zs as LoadingIndicator,
|
|
7031
|
+
ze as Menu,
|
|
7032
|
+
Us as RadioInput,
|
|
7033
|
+
Js as SegmentMultipleInput,
|
|
7034
|
+
Hs as SegmentSingleInput,
|
|
7035
|
+
Uo as SelectInput,
|
|
7036
|
+
rn as Skeleton,
|
|
7037
|
+
Xs as Snackbar,
|
|
7038
|
+
As as SwitchInput,
|
|
7039
|
+
Ts as SwitchLabel,
|
|
7040
|
+
Es as SwitchThumb,
|
|
7041
|
+
Vs as SwitchTrack,
|
|
7042
|
+
Ks as Tabs,
|
|
7043
|
+
Zs as Text,
|
|
7044
|
+
ls as TextAreaInput,
|
|
7045
|
+
as as TextInput,
|
|
7046
|
+
Qs as Tile,
|
|
7047
|
+
en as TopBar,
|
|
7001
7048
|
je as useDrawerContext
|
|
7002
7049
|
};
|