@dimasbaguspm/versaur 0.0.19 → 0.0.21
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/README.md +22 -6
- package/dist/js/bottom-sheet-Eqduh3eY.js +495 -0
- package/dist/js/{selectable-multiple-input-CJXfqy1Z.js → bottom-sheet-input-DFGibm1I.js} +591 -476
- package/dist/js/forms/index.js +20 -17
- package/dist/js/{image-rectangle-CLU-GVtw.js → image-rectangle-C6cgL8R9.js} +354 -404
- package/dist/js/index.js +61 -53
- package/dist/js/layouts/index.js +5 -4
- package/dist/js/overlays/index.js +6 -4
- package/dist/js/primitive/index.js +15 -13
- package/dist/js/side-bar-BUACYQUo.js +397 -0
- package/dist/js/text-CRsIInRA.js +127 -0
- package/dist/js/tooltip-CDdl1U3A.js +148 -0
- package/dist/types/forms/bottom-sheet-input/bottom-sheet-input.d.ts +7 -0
- package/dist/types/forms/bottom-sheet-input/index.d.ts +2 -0
- package/dist/types/forms/bottom-sheet-input/types.d.ts +17 -0
- package/dist/types/forms/drawer-input/drawer-input.d.ts +6 -0
- package/dist/types/forms/drawer-input/index.d.ts +2 -0
- package/dist/types/forms/drawer-input/types.d.ts +18 -0
- package/dist/types/forms/index.d.ts +3 -0
- package/dist/types/forms/modal-input/index.d.ts +2 -0
- package/dist/types/forms/modal-input/modal-input.d.ts +6 -0
- package/dist/types/forms/modal-input/types.d.ts +18 -0
- package/dist/types/layouts/index.d.ts +1 -0
- package/dist/types/layouts/side-bar/index.d.ts +2 -0
- package/dist/types/layouts/side-bar/side-bar.atoms.d.ts +3 -0
- package/dist/types/layouts/side-bar/side-bar.d.ts +5 -0
- package/dist/types/layouts/side-bar/types.d.ts +42 -0
- package/dist/types/overlays/bottom-sheet/types.d.ts +2 -1
- package/dist/types/overlays/drawer/types.d.ts +2 -1
- package/dist/types/overlays/index.d.ts +1 -0
- package/dist/types/overlays/menu/menu.atoms.d.ts +5 -10
- package/dist/types/overlays/menu/menu.d.ts +2 -6
- package/dist/types/overlays/menu/types.d.ts +9 -14
- package/dist/types/overlays/menu/use-menu.d.ts +0 -1
- package/dist/types/overlays/modal/modal.d.ts +14 -5
- package/dist/types/overlays/modal/types.d.ts +7 -20
- package/dist/types/overlays/tooltip/index.d.ts +2 -0
- package/dist/types/overlays/tooltip/tooltip.d.ts +5 -0
- package/dist/types/overlays/tooltip/types.d.ts +33 -0
- package/dist/types/overlays/tooltip/use-tooltip-position.d.ts +8 -0
- package/dist/types/primitive/icon/types.d.ts +1 -1
- package/dist/types/primitive/index.d.ts +1 -0
- package/dist/types/primitive/no-results/index.d.ts +2 -0
- package/dist/types/primitive/no-results/no-results.d.ts +15 -0
- package/dist/types/primitive/no-results/types.d.ts +30 -0
- package/dist/types/primitive/table/table.atoms.d.ts +4 -6
- package/dist/types/primitive/table/table.d.ts +2 -1
- package/dist/types/primitive/table/types.d.ts +7 -4
- package/dist/utils/enforce-subpath-import.js +6 -0
- package/package.json +1 -1
- package/dist/js/bottom-sheet-BRv-oJL-.js +0 -646
- package/dist/js/form-layout-4ASWdXn8.js +0 -302
- package/dist/types/overlays/modal/use-escape-close.d.ts +0 -6
- package/dist/types/overlays/modal/use-focus-trap.d.ts +0 -6
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { c as j, j as e, a as p } from "./index-DOdDlCoL.js";
|
|
2
|
-
import x, { createContext as
|
|
3
|
-
import { Check as
|
|
4
|
-
import { I as
|
|
2
|
+
import x, { createContext as S, useContext as V, useRef as $, forwardRef as I, useState as O, useId as D, useEffect as X, useMemo as P } from "react";
|
|
3
|
+
import { Check as F, Calendar as Y, SearchIcon as Z, Clock as ee, Banknote as re, MailIcon as te } from "lucide-react";
|
|
4
|
+
import { I as z } from "./image-rectangle-C6cgL8R9.js";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
|
-
|
|
6
|
+
import "./text-CRsIInRA.js";
|
|
7
|
+
import { M, D as E, B as R } from "./bottom-sheet-Eqduh3eY.js";
|
|
8
|
+
const oe = j("space-y-2", {
|
|
7
9
|
variants: {
|
|
8
10
|
direction: {
|
|
9
11
|
vertical: "space-y-2 space-x-0",
|
|
@@ -13,7 +15,7 @@ const Z = j("space-y-2", {
|
|
|
13
15
|
defaultVariants: {
|
|
14
16
|
direction: "vertical"
|
|
15
17
|
}
|
|
16
|
-
}),
|
|
18
|
+
}), se = j(
|
|
17
19
|
"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",
|
|
18
20
|
{
|
|
19
21
|
variants: {
|
|
@@ -51,7 +53,7 @@ const Z = j("space-y-2", {
|
|
|
51
53
|
size: "md"
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
|
-
),
|
|
56
|
+
), ne = j(
|
|
55
57
|
"text-foreground cursor-pointer select-none",
|
|
56
58
|
{
|
|
57
59
|
variants: {
|
|
@@ -70,48 +72,48 @@ const Z = j("space-y-2", {
|
|
|
70
72
|
disabled: !1
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
|
-
),
|
|
74
|
-
const r =
|
|
75
|
+
), A = S(null), ae = () => {
|
|
76
|
+
const r = V(A);
|
|
75
77
|
if (!r)
|
|
76
78
|
throw new Error("CheckboxOption must be used within CheckboxInput");
|
|
77
79
|
return r;
|
|
78
|
-
},
|
|
79
|
-
const
|
|
80
|
+
}, H = x.forwardRef(({ children: r, description: t, className: s, disabled: c, id: a, ...i }, l) => {
|
|
81
|
+
const n = ae(), o = x.useId(), d = a || o, g = c || n.disabled, f = n.error ? "danger" : n.variant || "primary";
|
|
80
82
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
81
83
|
/* @__PURE__ */ e.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ e.jsx(
|
|
82
84
|
"input",
|
|
83
85
|
{
|
|
84
|
-
ref:
|
|
86
|
+
ref: l,
|
|
85
87
|
type: "checkbox",
|
|
86
|
-
id:
|
|
87
|
-
disabled:
|
|
88
|
+
id: d,
|
|
89
|
+
disabled: g,
|
|
88
90
|
className: p(
|
|
89
|
-
|
|
90
|
-
variant:
|
|
91
|
-
size:
|
|
91
|
+
se({
|
|
92
|
+
variant: f,
|
|
93
|
+
size: n.size
|
|
92
94
|
}),
|
|
93
95
|
// Custom checkmark styling using ::after - centered positioning with size variants
|
|
94
96
|
'after:content-[""] after:absolute after:left-1/2 after:top-[45%] after:-translate-x-1/2 after:-translate-y-1/2 after:border-b-2 after:border-r-2 after:border-white after:rotate-45 after:opacity-0 after:transition-opacity after:duration-200',
|
|
95
97
|
// Size-specific checkmark dimensions
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
n.size === "sm" && "after:w-[3px] after:h-[6px]",
|
|
99
|
+
n.size === "md" && "after:w-[4px] after:h-[8px]",
|
|
100
|
+
n.size === "lg" && "after:w-[6px] after:h-[10px]",
|
|
99
101
|
"checked:after:opacity-100",
|
|
100
102
|
// Outline variants use colored checkmark
|
|
101
|
-
|
|
103
|
+
f?.includes("outline") && "checked:after:border-current",
|
|
102
104
|
s
|
|
103
105
|
),
|
|
104
|
-
...
|
|
106
|
+
...i
|
|
105
107
|
}
|
|
106
108
|
) }),
|
|
107
109
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
108
110
|
/* @__PURE__ */ e.jsx(
|
|
109
111
|
"label",
|
|
110
112
|
{
|
|
111
|
-
htmlFor:
|
|
112
|
-
className:
|
|
113
|
-
size:
|
|
114
|
-
disabled:
|
|
113
|
+
htmlFor: d,
|
|
114
|
+
className: ne({
|
|
115
|
+
size: n.size,
|
|
116
|
+
disabled: g
|
|
115
117
|
}),
|
|
116
118
|
children: r
|
|
117
119
|
}
|
|
@@ -121,10 +123,10 @@ const Z = j("space-y-2", {
|
|
|
121
123
|
{
|
|
122
124
|
className: p(
|
|
123
125
|
"text-gray-600 mt-1",
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
n.size === "sm" && "text-xs",
|
|
127
|
+
n.size === "md" && "text-xs",
|
|
128
|
+
n.size === "lg" && "text-sm",
|
|
129
|
+
g && "opacity-50"
|
|
128
130
|
),
|
|
129
131
|
children: t
|
|
130
132
|
}
|
|
@@ -132,45 +134,45 @@ const Z = j("space-y-2", {
|
|
|
132
134
|
] })
|
|
133
135
|
] });
|
|
134
136
|
});
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
+
H.displayName = "CheckboxOption";
|
|
138
|
+
const L = x.forwardRef(
|
|
137
139
|
({
|
|
138
140
|
variant: r = "primary",
|
|
139
141
|
size: t = "md",
|
|
140
142
|
label: s,
|
|
141
143
|
helperText: c,
|
|
142
|
-
error:
|
|
143
|
-
direction:
|
|
144
|
-
className:
|
|
145
|
-
disabled:
|
|
144
|
+
error: a,
|
|
145
|
+
direction: i = "vertical",
|
|
146
|
+
className: l,
|
|
147
|
+
disabled: n,
|
|
146
148
|
children: o,
|
|
147
|
-
...
|
|
148
|
-
},
|
|
149
|
-
const
|
|
149
|
+
...d
|
|
150
|
+
}, g) => {
|
|
151
|
+
const f = !!a, u = {
|
|
150
152
|
variant: r,
|
|
151
153
|
size: t,
|
|
152
|
-
disabled:
|
|
153
|
-
error:
|
|
154
|
+
disabled: n,
|
|
155
|
+
error: f
|
|
154
156
|
};
|
|
155
|
-
return /* @__PURE__ */ e.jsx(
|
|
157
|
+
return /* @__PURE__ */ e.jsx(A.Provider, { value: u, children: /* @__PURE__ */ e.jsxs("div", { ref: g, className: p("w-full", l), ...d, children: [
|
|
156
158
|
s && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: s }),
|
|
157
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
158
|
-
|
|
159
|
-
!
|
|
159
|
+
/* @__PURE__ */ e.jsx("div", { className: oe({ direction: i }), children: o }),
|
|
160
|
+
f && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: a }),
|
|
161
|
+
!f && c && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: c })
|
|
160
162
|
] }) });
|
|
161
163
|
}
|
|
162
164
|
);
|
|
163
|
-
|
|
164
|
-
const
|
|
165
|
-
Option:
|
|
166
|
-
}),
|
|
167
|
-
const r =
|
|
165
|
+
L.displayName = "CheckboxInput";
|
|
166
|
+
const or = Object.assign(L, {
|
|
167
|
+
Option: H
|
|
168
|
+
}), T = S(null), ie = () => {
|
|
169
|
+
const r = V(T);
|
|
168
170
|
if (!r)
|
|
169
171
|
throw new Error(
|
|
170
172
|
"useChipSingleInputContext must be used within ChipSingleInputContext"
|
|
171
173
|
);
|
|
172
174
|
return r;
|
|
173
|
-
},
|
|
175
|
+
}, ce = j(
|
|
174
176
|
"inline-flex items-center bg-white font-regular transition-colors duration-200 cursor-pointer border border-border",
|
|
175
177
|
{
|
|
176
178
|
variants: {
|
|
@@ -226,61 +228,61 @@ const Ke = Object.assign(D, {
|
|
|
226
228
|
selected: !1
|
|
227
229
|
}
|
|
228
230
|
}
|
|
229
|
-
),
|
|
231
|
+
), de = x.forwardRef(
|
|
230
232
|
({
|
|
231
233
|
children: r,
|
|
232
234
|
className: t,
|
|
233
235
|
disabled: s,
|
|
234
236
|
id: c,
|
|
235
|
-
value:
|
|
236
|
-
check:
|
|
237
|
-
defaultCheck:
|
|
238
|
-
...
|
|
237
|
+
value: a,
|
|
238
|
+
check: i,
|
|
239
|
+
defaultCheck: l = !1,
|
|
240
|
+
...n
|
|
239
241
|
}, o) => {
|
|
240
|
-
const
|
|
242
|
+
const d = ie(), g = x.useId(), f = c || g, u = s || d.disabled, b = [
|
|
241
243
|
"primary",
|
|
242
244
|
"secondary",
|
|
243
245
|
"tertiary",
|
|
244
246
|
"ghost",
|
|
245
247
|
"neutral"
|
|
246
248
|
].includes(
|
|
247
|
-
|
|
248
|
-
) ?
|
|
249
|
-
|
|
250
|
-
},
|
|
249
|
+
d.variant
|
|
250
|
+
) ? d.variant : "primary", w = d.shape || "circle", m = d.size || "sm", v = d.value === a, y = (C) => {
|
|
251
|
+
u || d.onChange?.(a), n.onChange?.(C);
|
|
252
|
+
}, N = m === "lg" ? 20 : m === "md" ? 18 : 16;
|
|
251
253
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
252
254
|
/* @__PURE__ */ e.jsx(
|
|
253
255
|
"input",
|
|
254
256
|
{
|
|
255
257
|
ref: o,
|
|
256
258
|
type: "radio",
|
|
257
|
-
id:
|
|
258
|
-
name:
|
|
259
|
-
value:
|
|
259
|
+
id: f,
|
|
260
|
+
name: d.name,
|
|
261
|
+
value: a,
|
|
260
262
|
checked: v,
|
|
261
|
-
disabled:
|
|
263
|
+
disabled: u,
|
|
262
264
|
onChange: y,
|
|
263
265
|
className: "sr-only",
|
|
264
|
-
...
|
|
266
|
+
...n
|
|
265
267
|
}
|
|
266
268
|
),
|
|
267
269
|
/* @__PURE__ */ e.jsx(
|
|
268
270
|
"label",
|
|
269
271
|
{
|
|
270
|
-
htmlFor:
|
|
272
|
+
htmlFor: f,
|
|
271
273
|
"data-selected": v,
|
|
272
274
|
className: p(
|
|
273
|
-
|
|
275
|
+
ce({
|
|
274
276
|
variant: b,
|
|
275
277
|
selected: v,
|
|
276
278
|
shape: w,
|
|
277
279
|
size: m
|
|
278
280
|
}),
|
|
279
|
-
|
|
281
|
+
u && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
280
282
|
t
|
|
281
283
|
),
|
|
282
284
|
children: /* @__PURE__ */ e.jsxs("span", { className: "flex items-center", children: [
|
|
283
|
-
(
|
|
285
|
+
(i || l) && /* @__PURE__ */ e.jsx(
|
|
284
286
|
"span",
|
|
285
287
|
{
|
|
286
288
|
className: p(
|
|
@@ -289,10 +291,10 @@ const Ke = Object.assign(D, {
|
|
|
289
291
|
v ? "opacity-100 scale-100 mr-1" : "opacity-0 scale-75"
|
|
290
292
|
),
|
|
291
293
|
"aria-hidden": "true",
|
|
292
|
-
children: v && (
|
|
293
|
-
|
|
294
|
+
children: v && (i || /* @__PURE__ */ e.jsx(
|
|
295
|
+
F,
|
|
294
296
|
{
|
|
295
|
-
size:
|
|
297
|
+
size: N,
|
|
296
298
|
className: b === "primary" ? "text-primary" : b === "secondary" ? "text-secondary" : b === "tertiary" ? "text-tertiary" : b === "ghost" ? "text-ghost" : b === "neutral" ? "text-neutral" : "text-primary"
|
|
297
299
|
}
|
|
298
300
|
))
|
|
@@ -304,49 +306,49 @@ const Ke = Object.assign(D, {
|
|
|
304
306
|
)
|
|
305
307
|
] });
|
|
306
308
|
}
|
|
307
|
-
),
|
|
309
|
+
), le = x.forwardRef(
|
|
308
310
|
({
|
|
309
311
|
variant: r = "primary",
|
|
310
312
|
shape: t = "circle",
|
|
311
313
|
size: s = "sm",
|
|
312
314
|
label: c,
|
|
313
|
-
helperText:
|
|
314
|
-
error:
|
|
315
|
-
className:
|
|
316
|
-
disabled:
|
|
315
|
+
helperText: a,
|
|
316
|
+
error: i,
|
|
317
|
+
className: l,
|
|
318
|
+
disabled: n,
|
|
317
319
|
name: o,
|
|
318
|
-
value:
|
|
319
|
-
onChange:
|
|
320
|
-
children:
|
|
321
|
-
...
|
|
322
|
-
},
|
|
323
|
-
const b = !!
|
|
320
|
+
value: d,
|
|
321
|
+
onChange: g,
|
|
322
|
+
children: f,
|
|
323
|
+
...u
|
|
324
|
+
}, h) => {
|
|
325
|
+
const b = !!i, w = {
|
|
324
326
|
variant: r,
|
|
325
327
|
shape: t,
|
|
326
328
|
size: s,
|
|
327
|
-
disabled:
|
|
329
|
+
disabled: n,
|
|
328
330
|
error: b,
|
|
329
331
|
name: o,
|
|
330
|
-
value:
|
|
331
|
-
onChange:
|
|
332
|
+
value: d,
|
|
333
|
+
onChange: g
|
|
332
334
|
};
|
|
333
|
-
return /* @__PURE__ */ e.jsx(
|
|
335
|
+
return /* @__PURE__ */ e.jsx(T.Provider, { value: w, children: /* @__PURE__ */ e.jsxs("div", { ref: h, className: p("w-full", l), ...u, children: [
|
|
334
336
|
c && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: c }),
|
|
335
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children:
|
|
336
|
-
b && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children:
|
|
337
|
-
!b &&
|
|
337
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children: f }),
|
|
338
|
+
b && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: i }),
|
|
339
|
+
!b && a && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: a })
|
|
338
340
|
] }) });
|
|
339
341
|
}
|
|
340
|
-
),
|
|
341
|
-
Option:
|
|
342
|
-
}),
|
|
343
|
-
const r =
|
|
342
|
+
), sr = Object.assign(le, {
|
|
343
|
+
Option: de
|
|
344
|
+
}), G = S(null), ue = () => {
|
|
345
|
+
const r = V(G);
|
|
344
346
|
if (!r)
|
|
345
347
|
throw new Error(
|
|
346
348
|
"useChipMultipleInputContext must be used within ChipMultipleInputContext"
|
|
347
349
|
);
|
|
348
350
|
return r;
|
|
349
|
-
},
|
|
351
|
+
}, ge = j(
|
|
350
352
|
"inline-flex items-center bg-white font-regular transition-colors duration-200 cursor-pointer border border-border",
|
|
351
353
|
{
|
|
352
354
|
variants: {
|
|
@@ -430,24 +432,24 @@ const Ke = Object.assign(D, {
|
|
|
430
432
|
}
|
|
431
433
|
}
|
|
432
434
|
}
|
|
433
|
-
),
|
|
435
|
+
), K = x.forwardRef(
|
|
434
436
|
({
|
|
435
437
|
children: r,
|
|
436
438
|
className: t,
|
|
437
439
|
disabled: s,
|
|
438
440
|
id: c,
|
|
439
|
-
value:
|
|
440
|
-
check:
|
|
441
|
-
defaultCheck:
|
|
442
|
-
...
|
|
441
|
+
value: a,
|
|
442
|
+
check: i,
|
|
443
|
+
defaultCheck: l = !1,
|
|
444
|
+
...n
|
|
443
445
|
}, o) => {
|
|
444
|
-
const
|
|
445
|
-
if (!
|
|
446
|
-
const
|
|
447
|
-
let
|
|
448
|
-
m ?
|
|
446
|
+
const d = ue(), g = x.useId(), f = c || g, u = s || d.disabled, h = d.error ? "danger" : d.variant || "primary", b = d.shape || "circle", w = d.size || "sm", m = d.value?.includes(a) ?? !1, v = (N) => {
|
|
447
|
+
if (!u) {
|
|
448
|
+
const C = d.value || [];
|
|
449
|
+
let B;
|
|
450
|
+
m ? B = C.filter((U) => U !== a) : B = [...C, a], d.onChange?.(B);
|
|
449
451
|
}
|
|
450
|
-
|
|
452
|
+
n.onChange?.(N);
|
|
451
453
|
}, y = w === "lg" ? 20 : w === "md" ? 18 : 16;
|
|
452
454
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
453
455
|
/* @__PURE__ */ e.jsx(
|
|
@@ -455,33 +457,33 @@ const Ke = Object.assign(D, {
|
|
|
455
457
|
{
|
|
456
458
|
ref: o,
|
|
457
459
|
type: "checkbox",
|
|
458
|
-
id:
|
|
459
|
-
name: `${
|
|
460
|
-
value:
|
|
460
|
+
id: f,
|
|
461
|
+
name: `${d.name}[]`,
|
|
462
|
+
value: a,
|
|
461
463
|
checked: m,
|
|
462
|
-
disabled:
|
|
464
|
+
disabled: u,
|
|
463
465
|
onChange: v,
|
|
464
466
|
className: "sr-only",
|
|
465
|
-
...
|
|
467
|
+
...n
|
|
466
468
|
}
|
|
467
469
|
),
|
|
468
470
|
/* @__PURE__ */ e.jsx(
|
|
469
471
|
"label",
|
|
470
472
|
{
|
|
471
|
-
htmlFor:
|
|
473
|
+
htmlFor: f,
|
|
472
474
|
"data-selected": m,
|
|
473
475
|
className: p(
|
|
474
|
-
|
|
475
|
-
variant:
|
|
476
|
+
ge({
|
|
477
|
+
variant: h,
|
|
476
478
|
selected: m,
|
|
477
479
|
shape: b,
|
|
478
480
|
size: w
|
|
479
481
|
}),
|
|
480
|
-
|
|
482
|
+
u && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
481
483
|
t
|
|
482
484
|
),
|
|
483
485
|
children: /* @__PURE__ */ e.jsxs("span", { className: "flex items-center", children: [
|
|
484
|
-
(
|
|
486
|
+
(i || l) && /* @__PURE__ */ e.jsx(
|
|
485
487
|
"span",
|
|
486
488
|
{
|
|
487
489
|
className: p(
|
|
@@ -490,11 +492,11 @@ const Ke = Object.assign(D, {
|
|
|
490
492
|
m ? "opacity-100 scale-100 mr-1" : "opacity-0 scale-75"
|
|
491
493
|
),
|
|
492
494
|
"aria-hidden": "true",
|
|
493
|
-
children: m && (
|
|
494
|
-
|
|
495
|
+
children: m && (i || /* @__PURE__ */ e.jsx(
|
|
496
|
+
F,
|
|
495
497
|
{
|
|
496
498
|
size: y,
|
|
497
|
-
className:
|
|
499
|
+
className: h === "primary" ? "text-primary" : h === "secondary" ? "text-secondary" : h === "tertiary" ? "text-tertiary" : h === "ghost" ? "text-ghost" : h === "success" ? "text-success" : h === "info" ? "text-info" : h === "warning" ? "text-warning" : h === "danger" ? "text-danger" : "text-primary"
|
|
498
500
|
}
|
|
499
501
|
))
|
|
500
502
|
}
|
|
@@ -506,43 +508,43 @@ const Ke = Object.assign(D, {
|
|
|
506
508
|
] });
|
|
507
509
|
}
|
|
508
510
|
);
|
|
509
|
-
|
|
510
|
-
const
|
|
511
|
+
K.displayName = "ChipMultipleOption";
|
|
512
|
+
const fe = x.forwardRef(
|
|
511
513
|
({
|
|
512
514
|
variant: r = "primary",
|
|
513
515
|
shape: t = "circle",
|
|
514
516
|
size: s = "sm",
|
|
515
517
|
label: c,
|
|
516
|
-
helperText:
|
|
517
|
-
error:
|
|
518
|
-
className:
|
|
519
|
-
disabled:
|
|
518
|
+
helperText: a,
|
|
519
|
+
error: i,
|
|
520
|
+
className: l,
|
|
521
|
+
disabled: n,
|
|
520
522
|
name: o,
|
|
521
|
-
value:
|
|
522
|
-
onChange:
|
|
523
|
-
children:
|
|
524
|
-
...
|
|
525
|
-
},
|
|
526
|
-
const b = !!
|
|
523
|
+
value: d = [],
|
|
524
|
+
onChange: g,
|
|
525
|
+
children: f,
|
|
526
|
+
...u
|
|
527
|
+
}, h) => {
|
|
528
|
+
const b = !!i, w = {
|
|
527
529
|
variant: r,
|
|
528
530
|
shape: t,
|
|
529
531
|
size: s,
|
|
530
|
-
disabled:
|
|
532
|
+
disabled: n,
|
|
531
533
|
error: b,
|
|
532
534
|
name: o,
|
|
533
|
-
value:
|
|
534
|
-
onChange:
|
|
535
|
+
value: d,
|
|
536
|
+
onChange: g
|
|
535
537
|
};
|
|
536
|
-
return /* @__PURE__ */ e.jsx(
|
|
538
|
+
return /* @__PURE__ */ e.jsx(G.Provider, { value: w, children: /* @__PURE__ */ e.jsxs("div", { ref: h, className: p("w-full", l), ...u, children: [
|
|
537
539
|
c && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: c }),
|
|
538
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children:
|
|
539
|
-
b && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children:
|
|
540
|
-
!b &&
|
|
540
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children: f }),
|
|
541
|
+
b && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: i }),
|
|
542
|
+
!b && a && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: a })
|
|
541
543
|
] }) });
|
|
542
544
|
}
|
|
543
|
-
),
|
|
544
|
-
Option:
|
|
545
|
-
}),
|
|
545
|
+
), nr = Object.assign(fe, {
|
|
546
|
+
Option: K
|
|
547
|
+
}), he = j(
|
|
546
548
|
"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",
|
|
547
549
|
{
|
|
548
550
|
variants: {
|
|
@@ -574,30 +576,30 @@ const de = x.forwardRef(
|
|
|
574
576
|
variant: "primary"
|
|
575
577
|
}
|
|
576
578
|
}
|
|
577
|
-
),
|
|
579
|
+
), k = x.forwardRef(
|
|
578
580
|
({
|
|
579
581
|
variant: r = "primary",
|
|
580
582
|
label: t,
|
|
581
583
|
leftContent: s,
|
|
582
584
|
rightContent: c,
|
|
583
|
-
helperText:
|
|
584
|
-
error:
|
|
585
|
-
className:
|
|
586
|
-
disabled:
|
|
585
|
+
helperText: a,
|
|
586
|
+
error: i,
|
|
587
|
+
className: l,
|
|
588
|
+
disabled: n,
|
|
587
589
|
id: o,
|
|
588
|
-
...
|
|
589
|
-
},
|
|
590
|
-
const
|
|
590
|
+
...d
|
|
591
|
+
}, g) => {
|
|
592
|
+
const f = x.useId(), u = o || f, h = !!i;
|
|
591
593
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
592
594
|
t && /* @__PURE__ */ e.jsx(
|
|
593
595
|
"label",
|
|
594
596
|
{
|
|
595
|
-
htmlFor:
|
|
597
|
+
htmlFor: u,
|
|
596
598
|
className: "block text-sm font-medium text-foreground mb-2",
|
|
597
599
|
children: t
|
|
598
600
|
}
|
|
599
601
|
),
|
|
600
|
-
/* @__PURE__ */ e.jsxs("div", { className: p("relative w-full",
|
|
602
|
+
/* @__PURE__ */ e.jsxs("div", { className: p("relative w-full", l), children: [
|
|
601
603
|
s && /* @__PURE__ */ e.jsx(
|
|
602
604
|
"span",
|
|
603
605
|
{
|
|
@@ -609,20 +611,20 @@ const de = x.forwardRef(
|
|
|
609
611
|
/* @__PURE__ */ e.jsx(
|
|
610
612
|
"input",
|
|
611
613
|
{
|
|
612
|
-
ref:
|
|
613
|
-
id:
|
|
614
|
-
"aria-invalid":
|
|
615
|
-
"aria-disabled":
|
|
616
|
-
disabled:
|
|
614
|
+
ref: g,
|
|
615
|
+
id: u,
|
|
616
|
+
"aria-invalid": h,
|
|
617
|
+
"aria-disabled": n,
|
|
618
|
+
disabled: n,
|
|
617
619
|
className: p(
|
|
618
|
-
|
|
619
|
-
variant:
|
|
620
|
+
he({
|
|
621
|
+
variant: h ? "danger" : r
|
|
620
622
|
}),
|
|
621
623
|
s ? "pl-9" : "pl-3",
|
|
622
624
|
c ? "pr-9" : "pr-3",
|
|
623
625
|
"h-10"
|
|
624
626
|
),
|
|
625
|
-
...
|
|
627
|
+
...d
|
|
626
628
|
}
|
|
627
629
|
),
|
|
628
630
|
c && /* @__PURE__ */ e.jsx(
|
|
@@ -634,13 +636,13 @@ const de = x.forwardRef(
|
|
|
634
636
|
}
|
|
635
637
|
)
|
|
636
638
|
] }),
|
|
637
|
-
|
|
638
|
-
!
|
|
639
|
+
h && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: i }),
|
|
640
|
+
!h && a && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-gray-600", children: a })
|
|
639
641
|
] });
|
|
640
642
|
}
|
|
641
643
|
);
|
|
642
|
-
|
|
643
|
-
function
|
|
644
|
+
k.displayName = "TextInput";
|
|
645
|
+
function be(r) {
|
|
644
646
|
if (!r) return "";
|
|
645
647
|
const t = new Date(r);
|
|
646
648
|
return isNaN(t.getTime()) ? r : t.toLocaleDateString(void 0, {
|
|
@@ -649,28 +651,28 @@ function ue(r) {
|
|
|
649
651
|
day: "numeric"
|
|
650
652
|
});
|
|
651
653
|
}
|
|
652
|
-
const
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
},
|
|
656
|
-
|
|
657
|
-
},
|
|
658
|
-
s(
|
|
659
|
-
},
|
|
654
|
+
const ar = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatter: a, ...i }, l) {
|
|
655
|
+
const n = $(null), o = (u) => {
|
|
656
|
+
n.current = u, typeof l == "function" ? l(u) : l && typeof l == "object" && (l.current = u);
|
|
657
|
+
}, d = () => {
|
|
658
|
+
n.current && (typeof n.current.showPicker == "function" ? n.current.showPicker() : n.current.focus());
|
|
659
|
+
}, g = (u) => {
|
|
660
|
+
s(u.target.value);
|
|
661
|
+
}, f = (a ?? be)(t);
|
|
660
662
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
661
663
|
/* @__PURE__ */ e.jsx(
|
|
662
|
-
|
|
664
|
+
k,
|
|
663
665
|
{
|
|
664
666
|
type: "text",
|
|
665
|
-
value:
|
|
667
|
+
value: f,
|
|
666
668
|
label: c,
|
|
667
669
|
readOnly: !0,
|
|
668
670
|
tabIndex: 0,
|
|
669
671
|
"aria-hidden": "true",
|
|
670
|
-
onClick:
|
|
671
|
-
leftContent: /* @__PURE__ */ e.jsx(
|
|
672
|
+
onClick: d,
|
|
673
|
+
leftContent: /* @__PURE__ */ e.jsx(z, { as: Y, color: "inherit", size: "sm" }),
|
|
672
674
|
"data-testid": "date-single-picker-visible-input",
|
|
673
|
-
...
|
|
675
|
+
...i
|
|
674
676
|
}
|
|
675
677
|
),
|
|
676
678
|
/* @__PURE__ */ e.jsx(
|
|
@@ -679,14 +681,14 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
679
681
|
ref: o,
|
|
680
682
|
type: "date",
|
|
681
683
|
value: t,
|
|
682
|
-
onChange:
|
|
684
|
+
onChange: g,
|
|
683
685
|
className: "sr-only absolute opacity-0 h-0 w-0 pointer-events-none",
|
|
684
686
|
tabIndex: -1,
|
|
685
687
|
"aria-label": typeof c == "string" ? c : void 0
|
|
686
688
|
}
|
|
687
689
|
)
|
|
688
690
|
] });
|
|
689
|
-
}),
|
|
691
|
+
}), xe = j("space-y-2", {
|
|
690
692
|
variants: {
|
|
691
693
|
direction: {
|
|
692
694
|
vertical: "space-y-2 space-x-0",
|
|
@@ -696,7 +698,7 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
696
698
|
defaultVariants: {
|
|
697
699
|
direction: "vertical"
|
|
698
700
|
}
|
|
699
|
-
}),
|
|
701
|
+
}), me = j(
|
|
700
702
|
"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",
|
|
701
703
|
{
|
|
702
704
|
variants: {
|
|
@@ -734,7 +736,7 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
734
736
|
size: "md"
|
|
735
737
|
}
|
|
736
738
|
}
|
|
737
|
-
),
|
|
739
|
+
), pe = j(
|
|
738
740
|
"text-foreground cursor-pointer select-none",
|
|
739
741
|
{
|
|
740
742
|
variants: {
|
|
@@ -753,31 +755,31 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
753
755
|
disabled: !1
|
|
754
756
|
}
|
|
755
757
|
}
|
|
756
|
-
),
|
|
758
|
+
), W = S(
|
|
757
759
|
null
|
|
758
|
-
),
|
|
759
|
-
const r =
|
|
760
|
+
), ye = () => {
|
|
761
|
+
const r = V(W);
|
|
760
762
|
if (!r)
|
|
761
763
|
throw new Error(
|
|
762
764
|
"useRadioInputContext must be used within RadioInputContext"
|
|
763
765
|
);
|
|
764
766
|
return r;
|
|
765
|
-
},
|
|
766
|
-
({ children: r, description: t, className: s, disabled: c, id:
|
|
767
|
-
const o =
|
|
767
|
+
}, we = x.forwardRef(
|
|
768
|
+
({ children: r, description: t, className: s, disabled: c, id: a, value: i, ...l }, n) => {
|
|
769
|
+
const o = ye(), d = x.useId(), g = a || d, f = c || o.disabled, u = o.error ? "danger" : o.variant || "primary";
|
|
768
770
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
769
771
|
/* @__PURE__ */ e.jsx("div", { className: "relative flex items-center", children: /* @__PURE__ */ e.jsx(
|
|
770
772
|
"input",
|
|
771
773
|
{
|
|
772
|
-
ref:
|
|
774
|
+
ref: n,
|
|
773
775
|
type: "radio",
|
|
774
|
-
id:
|
|
776
|
+
id: g,
|
|
775
777
|
name: o.name,
|
|
776
|
-
value:
|
|
777
|
-
disabled:
|
|
778
|
+
value: i,
|
|
779
|
+
disabled: f,
|
|
778
780
|
className: p(
|
|
779
|
-
|
|
780
|
-
variant:
|
|
781
|
+
me({
|
|
782
|
+
variant: u,
|
|
781
783
|
size: o.size
|
|
782
784
|
}),
|
|
783
785
|
// Custom radio dot styling using ::before - centered positioning with size variants
|
|
@@ -788,20 +790,20 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
788
790
|
o.size === "lg" && "before:w-[10px] before:h-[10px]",
|
|
789
791
|
"checked:before:opacity-100",
|
|
790
792
|
// Outline variants use colored radio dot
|
|
791
|
-
|
|
793
|
+
u?.includes("outline") && "checked:before:bg-current",
|
|
792
794
|
s
|
|
793
795
|
),
|
|
794
|
-
...
|
|
796
|
+
...l
|
|
795
797
|
}
|
|
796
798
|
) }),
|
|
797
799
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
798
800
|
/* @__PURE__ */ e.jsx(
|
|
799
801
|
"label",
|
|
800
802
|
{
|
|
801
|
-
htmlFor:
|
|
802
|
-
className:
|
|
803
|
+
htmlFor: g,
|
|
804
|
+
className: pe({
|
|
803
805
|
size: o.size,
|
|
804
|
-
disabled:
|
|
806
|
+
disabled: f
|
|
805
807
|
}),
|
|
806
808
|
children: r
|
|
807
809
|
}
|
|
@@ -814,7 +816,7 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
814
816
|
o.size === "sm" && "text-xs",
|
|
815
817
|
o.size === "md" && "text-xs",
|
|
816
818
|
o.size === "lg" && "text-sm",
|
|
817
|
-
|
|
819
|
+
f && "opacity-50"
|
|
818
820
|
),
|
|
819
821
|
children: t
|
|
820
822
|
}
|
|
@@ -822,37 +824,37 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
822
824
|
] })
|
|
823
825
|
] });
|
|
824
826
|
}
|
|
825
|
-
),
|
|
827
|
+
), ve = x.forwardRef(
|
|
826
828
|
({
|
|
827
829
|
variant: r = "primary",
|
|
828
830
|
size: t = "md",
|
|
829
831
|
label: s,
|
|
830
832
|
helperText: c,
|
|
831
|
-
error:
|
|
832
|
-
direction:
|
|
833
|
-
className:
|
|
834
|
-
disabled:
|
|
833
|
+
error: a,
|
|
834
|
+
direction: i = "vertical",
|
|
835
|
+
className: l,
|
|
836
|
+
disabled: n,
|
|
835
837
|
name: o,
|
|
836
|
-
children:
|
|
837
|
-
...
|
|
838
|
-
},
|
|
839
|
-
const
|
|
838
|
+
children: d,
|
|
839
|
+
...g
|
|
840
|
+
}, f) => {
|
|
841
|
+
const u = !!a, h = {
|
|
840
842
|
variant: r,
|
|
841
843
|
size: t,
|
|
842
|
-
disabled:
|
|
843
|
-
error:
|
|
844
|
+
disabled: n,
|
|
845
|
+
error: u,
|
|
844
846
|
name: o
|
|
845
847
|
};
|
|
846
|
-
return /* @__PURE__ */ e.jsx(
|
|
848
|
+
return /* @__PURE__ */ e.jsx(W.Provider, { value: h, children: /* @__PURE__ */ e.jsxs("div", { ref: f, className: p("w-full", l), ...g, children: [
|
|
847
849
|
s && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: s }),
|
|
848
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
849
|
-
|
|
850
|
-
!
|
|
850
|
+
/* @__PURE__ */ e.jsx("div", { className: xe({ direction: i }), children: d }),
|
|
851
|
+
u && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: a }),
|
|
852
|
+
!u && c && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: c })
|
|
851
853
|
] }) });
|
|
852
854
|
}
|
|
853
|
-
),
|
|
854
|
-
Option:
|
|
855
|
-
}),
|
|
855
|
+
), ir = Object.assign(ve, {
|
|
856
|
+
Option: we
|
|
857
|
+
}), je = j(
|
|
856
858
|
"flex flex-row rounded-full border overflow-hidden p-1 gap-0.25",
|
|
857
859
|
{
|
|
858
860
|
variants: {
|
|
@@ -885,7 +887,7 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
885
887
|
error: !1
|
|
886
888
|
}
|
|
887
889
|
}
|
|
888
|
-
),
|
|
890
|
+
), ke = j(
|
|
889
891
|
"inline 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 flex-1",
|
|
890
892
|
{
|
|
891
893
|
variants: {
|
|
@@ -920,7 +922,7 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
920
922
|
rounded: "middle"
|
|
921
923
|
}
|
|
922
924
|
}
|
|
923
|
-
),
|
|
925
|
+
), Ie = (r) => {
|
|
924
926
|
const t = {
|
|
925
927
|
// Core variants - override hover text color changes
|
|
926
928
|
primary: "bg-primary text-white hover:text-white",
|
|
@@ -935,51 +937,51 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
935
937
|
danger: "bg-danger text-white hover:text-white"
|
|
936
938
|
};
|
|
937
939
|
return t[r || "primary"] || t.primary;
|
|
938
|
-
},
|
|
939
|
-
const r =
|
|
940
|
+
}, _ = S(null), Ne = () => {
|
|
941
|
+
const r = V(_);
|
|
940
942
|
if (!r)
|
|
941
943
|
throw new Error(
|
|
942
944
|
"useSegmentSingleInputContext must be used within SegmentSingleInputContext"
|
|
943
945
|
);
|
|
944
946
|
return r;
|
|
945
|
-
},
|
|
946
|
-
({ children: r, className: t, disabled: s, id: c, value:
|
|
947
|
-
const o =
|
|
948
|
-
if (!
|
|
949
|
-
const m = o.value ===
|
|
947
|
+
}, q = x.forwardRef(
|
|
948
|
+
({ children: r, className: t, disabled: s, id: c, value: a, position: i = "middle", ...l }, n) => {
|
|
949
|
+
const o = Ne(), d = x.useId(), g = c || d, f = s || o.disabled, u = o.error ? "danger" : o.variant || "primary", h = o.value === a, b = (w) => {
|
|
950
|
+
if (!f) {
|
|
951
|
+
const m = o.value === a ? null : a;
|
|
950
952
|
o.onChange?.(m);
|
|
951
953
|
}
|
|
952
|
-
|
|
954
|
+
l.onChange?.(w);
|
|
953
955
|
};
|
|
954
956
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
955
957
|
/* @__PURE__ */ e.jsx(
|
|
956
958
|
"input",
|
|
957
959
|
{
|
|
958
|
-
ref:
|
|
960
|
+
ref: n,
|
|
959
961
|
type: "radio",
|
|
960
|
-
id:
|
|
962
|
+
id: g,
|
|
961
963
|
name: o.name,
|
|
962
|
-
value:
|
|
963
|
-
checked:
|
|
964
|
-
disabled:
|
|
964
|
+
value: a,
|
|
965
|
+
checked: h,
|
|
966
|
+
disabled: f,
|
|
965
967
|
onChange: b,
|
|
966
968
|
className: "sr-only",
|
|
967
|
-
...
|
|
969
|
+
...l
|
|
968
970
|
}
|
|
969
971
|
),
|
|
970
972
|
/* @__PURE__ */ e.jsx(
|
|
971
973
|
"label",
|
|
972
974
|
{
|
|
973
|
-
htmlFor:
|
|
975
|
+
htmlFor: g,
|
|
974
976
|
className: p(
|
|
975
977
|
"flex flex-row items-center justify-center",
|
|
976
|
-
|
|
977
|
-
variant:
|
|
978
|
+
ke({
|
|
979
|
+
variant: u,
|
|
978
980
|
size: o.size,
|
|
979
|
-
rounded:
|
|
981
|
+
rounded: i
|
|
980
982
|
}),
|
|
981
|
-
|
|
982
|
-
|
|
983
|
+
h && Ie(u),
|
|
984
|
+
f && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
983
985
|
t
|
|
984
986
|
),
|
|
985
987
|
children: r
|
|
@@ -988,30 +990,30 @@ const Xe = x.forwardRef(function({ value: t = "", onChange: s, label: c, formatt
|
|
|
988
990
|
] });
|
|
989
991
|
}
|
|
990
992
|
);
|
|
991
|
-
|
|
992
|
-
const
|
|
993
|
+
q.displayName = "SegmentOption";
|
|
994
|
+
const Ce = x.forwardRef(
|
|
993
995
|
({
|
|
994
996
|
variant: r = "primary",
|
|
995
997
|
size: t = "md",
|
|
996
998
|
label: s,
|
|
997
999
|
helperText: c,
|
|
998
|
-
error:
|
|
999
|
-
disabled:
|
|
1000
|
-
name:
|
|
1001
|
-
value:
|
|
1000
|
+
error: a,
|
|
1001
|
+
disabled: i,
|
|
1002
|
+
name: l,
|
|
1003
|
+
value: n,
|
|
1002
1004
|
onChange: o,
|
|
1003
|
-
children:
|
|
1004
|
-
...
|
|
1005
|
-
},
|
|
1006
|
-
const
|
|
1005
|
+
children: d,
|
|
1006
|
+
...g
|
|
1007
|
+
}, f) => {
|
|
1008
|
+
const u = !!a, h = {
|
|
1007
1009
|
variant: r,
|
|
1008
1010
|
size: t,
|
|
1009
|
-
disabled:
|
|
1010
|
-
error:
|
|
1011
|
-
name:
|
|
1012
|
-
value:
|
|
1011
|
+
disabled: i,
|
|
1012
|
+
error: u,
|
|
1013
|
+
name: l,
|
|
1014
|
+
value: n,
|
|
1013
1015
|
onChange: o
|
|
1014
|
-
}, b = x.Children.toArray(
|
|
1016
|
+
}, b = x.Children.toArray(d), w = b.map((m, v) => {
|
|
1015
1017
|
if (x.isValidElement(m)) {
|
|
1016
1018
|
let y;
|
|
1017
1019
|
return b.length === 1 ? y = "single" : v === 0 ? y = "first" : v === b.length - 1 ? y = "last" : y = "middle", x.cloneElement(
|
|
@@ -1021,28 +1023,28 @@ const je = x.forwardRef(
|
|
|
1021
1023
|
}
|
|
1022
1024
|
return m;
|
|
1023
1025
|
});
|
|
1024
|
-
return /* @__PURE__ */ e.jsx(
|
|
1026
|
+
return /* @__PURE__ */ e.jsx(_.Provider, { value: h, children: /* @__PURE__ */ e.jsxs("div", { ref: f, ...g, children: [
|
|
1025
1027
|
s && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: s }),
|
|
1026
1028
|
/* @__PURE__ */ e.jsx(
|
|
1027
1029
|
"div",
|
|
1028
1030
|
{
|
|
1029
1031
|
className: p(
|
|
1030
|
-
|
|
1031
|
-
variant:
|
|
1032
|
+
je({
|
|
1033
|
+
variant: u ? "danger" : r,
|
|
1032
1034
|
size: t,
|
|
1033
|
-
error:
|
|
1035
|
+
error: u
|
|
1034
1036
|
})
|
|
1035
1037
|
),
|
|
1036
1038
|
children: w
|
|
1037
1039
|
}
|
|
1038
1040
|
),
|
|
1039
|
-
|
|
1040
|
-
!
|
|
1041
|
+
u && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: a }),
|
|
1042
|
+
!u && c && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: c })
|
|
1041
1043
|
] }) });
|
|
1042
1044
|
}
|
|
1043
|
-
),
|
|
1044
|
-
Option:
|
|
1045
|
-
}),
|
|
1045
|
+
), cr = Object.assign(Ce, {
|
|
1046
|
+
Option: q
|
|
1047
|
+
}), ze = j(
|
|
1046
1048
|
"flex flex-row rounded-full border overflow-hidden p-1 gap-0.25",
|
|
1047
1049
|
{
|
|
1048
1050
|
variants: {
|
|
@@ -1075,7 +1077,7 @@ const je = x.forwardRef(
|
|
|
1075
1077
|
error: !1
|
|
1076
1078
|
}
|
|
1077
1079
|
}
|
|
1078
|
-
),
|
|
1080
|
+
), Se = j(
|
|
1079
1081
|
"inline 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 flex-1",
|
|
1080
1082
|
{
|
|
1081
1083
|
variants: {
|
|
@@ -1110,7 +1112,7 @@ const je = x.forwardRef(
|
|
|
1110
1112
|
rounded: "middle"
|
|
1111
1113
|
}
|
|
1112
1114
|
}
|
|
1113
|
-
),
|
|
1115
|
+
), Ve = (r) => {
|
|
1114
1116
|
const t = {
|
|
1115
1117
|
// Core variants - override hover text color changes
|
|
1116
1118
|
primary: "bg-primary text-white hover:text-white",
|
|
@@ -1125,52 +1127,52 @@ const je = x.forwardRef(
|
|
|
1125
1127
|
danger: "bg-danger text-white hover:text-white"
|
|
1126
1128
|
};
|
|
1127
1129
|
return t[r || "primary"] || t.primary;
|
|
1128
|
-
},
|
|
1129
|
-
const r =
|
|
1130
|
+
}, J = S(null), Re = () => {
|
|
1131
|
+
const r = V(J);
|
|
1130
1132
|
if (!r)
|
|
1131
1133
|
throw new Error(
|
|
1132
1134
|
"useSegmentMultipleInputContext must be used within SegmentMultipleInputContext"
|
|
1133
1135
|
);
|
|
1134
1136
|
return r;
|
|
1135
|
-
},
|
|
1136
|
-
({ children: r, className: t, disabled: s, id: c, value:
|
|
1137
|
-
const o =
|
|
1138
|
-
if (!
|
|
1137
|
+
}, Q = x.forwardRef(
|
|
1138
|
+
({ children: r, className: t, disabled: s, id: c, value: a, position: i = "middle", ...l }, n) => {
|
|
1139
|
+
const o = Re(), d = x.useId(), g = c || d, f = s || o.disabled, u = o.error ? "danger" : o.variant || "primary", h = o.value?.includes(a) ?? !1, b = (w) => {
|
|
1140
|
+
if (!f) {
|
|
1139
1141
|
const m = o.value || [];
|
|
1140
1142
|
let v;
|
|
1141
|
-
|
|
1143
|
+
h ? v = m.filter((y) => y !== a) : v = [...m, a], o.onChange?.(v);
|
|
1142
1144
|
}
|
|
1143
|
-
|
|
1145
|
+
l.onChange?.(w);
|
|
1144
1146
|
};
|
|
1145
1147
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1146
1148
|
/* @__PURE__ */ e.jsx(
|
|
1147
1149
|
"input",
|
|
1148
1150
|
{
|
|
1149
|
-
ref:
|
|
1151
|
+
ref: n,
|
|
1150
1152
|
type: "checkbox",
|
|
1151
|
-
id:
|
|
1153
|
+
id: g,
|
|
1152
1154
|
name: `${o.name}[]`,
|
|
1153
|
-
value:
|
|
1154
|
-
checked:
|
|
1155
|
-
disabled:
|
|
1155
|
+
value: a,
|
|
1156
|
+
checked: h,
|
|
1157
|
+
disabled: f,
|
|
1156
1158
|
onChange: b,
|
|
1157
1159
|
className: "sr-only",
|
|
1158
|
-
...
|
|
1160
|
+
...l
|
|
1159
1161
|
}
|
|
1160
1162
|
),
|
|
1161
1163
|
/* @__PURE__ */ e.jsx(
|
|
1162
1164
|
"label",
|
|
1163
1165
|
{
|
|
1164
|
-
htmlFor:
|
|
1166
|
+
htmlFor: g,
|
|
1165
1167
|
className: p(
|
|
1166
1168
|
"flex flex-row items-center justify-center",
|
|
1167
|
-
|
|
1168
|
-
variant:
|
|
1169
|
+
Se({
|
|
1170
|
+
variant: u,
|
|
1169
1171
|
size: o.size,
|
|
1170
|
-
rounded:
|
|
1172
|
+
rounded: i
|
|
1171
1173
|
}),
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
+
h && Ve(u),
|
|
1175
|
+
f && "opacity-50 cursor-not-allowed pointer-events-none",
|
|
1174
1176
|
t
|
|
1175
1177
|
),
|
|
1176
1178
|
children: r
|
|
@@ -1179,30 +1181,30 @@ const je = x.forwardRef(
|
|
|
1179
1181
|
] });
|
|
1180
1182
|
}
|
|
1181
1183
|
);
|
|
1182
|
-
|
|
1183
|
-
const
|
|
1184
|
+
Q.displayName = "SegmentOption";
|
|
1185
|
+
const Oe = x.forwardRef(
|
|
1184
1186
|
({
|
|
1185
1187
|
variant: r = "primary",
|
|
1186
1188
|
size: t = "md",
|
|
1187
1189
|
label: s,
|
|
1188
1190
|
helperText: c,
|
|
1189
|
-
error:
|
|
1190
|
-
disabled:
|
|
1191
|
-
name:
|
|
1192
|
-
value:
|
|
1191
|
+
error: a,
|
|
1192
|
+
disabled: i,
|
|
1193
|
+
name: l,
|
|
1194
|
+
value: n = [],
|
|
1193
1195
|
onChange: o,
|
|
1194
|
-
children:
|
|
1195
|
-
...
|
|
1196
|
-
},
|
|
1197
|
-
const
|
|
1196
|
+
children: d,
|
|
1197
|
+
...g
|
|
1198
|
+
}, f) => {
|
|
1199
|
+
const u = !!a, h = {
|
|
1198
1200
|
variant: r,
|
|
1199
1201
|
size: t,
|
|
1200
|
-
disabled:
|
|
1201
|
-
error:
|
|
1202
|
-
name:
|
|
1203
|
-
value:
|
|
1202
|
+
disabled: i,
|
|
1203
|
+
error: u,
|
|
1204
|
+
name: l,
|
|
1205
|
+
value: n,
|
|
1204
1206
|
onChange: o
|
|
1205
|
-
}, b = x.Children.toArray(
|
|
1207
|
+
}, b = x.Children.toArray(d), w = b.map((m, v) => {
|
|
1206
1208
|
if (x.isValidElement(m)) {
|
|
1207
1209
|
let y;
|
|
1208
1210
|
return b.length === 1 ? y = "single" : v === 0 ? y = "first" : v === b.length - 1 ? y = "last" : y = "middle", x.cloneElement(
|
|
@@ -1212,40 +1214,40 @@ const ze = x.forwardRef(
|
|
|
1212
1214
|
}
|
|
1213
1215
|
return m;
|
|
1214
1216
|
});
|
|
1215
|
-
return /* @__PURE__ */ e.jsx(
|
|
1217
|
+
return /* @__PURE__ */ e.jsx(J.Provider, { value: h, children: /* @__PURE__ */ e.jsxs("div", { ref: f, ...g, children: [
|
|
1216
1218
|
s && /* @__PURE__ */ e.jsx("div", { className: "block text-sm font-medium text-foreground mb-3", children: s }),
|
|
1217
1219
|
/* @__PURE__ */ e.jsx(
|
|
1218
1220
|
"div",
|
|
1219
1221
|
{
|
|
1220
1222
|
className: p(
|
|
1221
|
-
|
|
1222
|
-
variant:
|
|
1223
|
+
ze({
|
|
1224
|
+
variant: u ? "danger" : r,
|
|
1223
1225
|
size: t,
|
|
1224
|
-
error:
|
|
1226
|
+
error: u
|
|
1225
1227
|
})
|
|
1226
1228
|
),
|
|
1227
1229
|
children: w
|
|
1228
1230
|
}
|
|
1229
1231
|
),
|
|
1230
|
-
|
|
1231
|
-
!
|
|
1232
|
+
u && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-danger", role: "alert", children: a }),
|
|
1233
|
+
!u && c && /* @__PURE__ */ e.jsx("div", { className: "mt-2 text-sm text-gray-600", children: c })
|
|
1232
1234
|
] }) });
|
|
1233
1235
|
}
|
|
1234
|
-
),
|
|
1235
|
-
Option:
|
|
1236
|
-
}),
|
|
1236
|
+
), dr = Object.assign(Oe, {
|
|
1237
|
+
Option: Q
|
|
1238
|
+
}), lr = I(
|
|
1237
1239
|
({
|
|
1238
1240
|
autoComplete: r = "off",
|
|
1239
1241
|
spellCheck: t = !1,
|
|
1240
1242
|
inputMode: s = "search",
|
|
1241
1243
|
placeholder: c = "Search...",
|
|
1242
|
-
maxLength:
|
|
1243
|
-
enterKeyHint:
|
|
1244
|
-
"aria-label":
|
|
1244
|
+
maxLength: a = 256,
|
|
1245
|
+
enterKeyHint: i = "search",
|
|
1246
|
+
"aria-label": l = "Search",
|
|
1245
1247
|
// internal default, not in props
|
|
1246
|
-
...
|
|
1248
|
+
...n
|
|
1247
1249
|
}, o) => /* @__PURE__ */ e.jsx(
|
|
1248
|
-
|
|
1250
|
+
k,
|
|
1249
1251
|
{
|
|
1250
1252
|
ref: o,
|
|
1251
1253
|
type: "search",
|
|
@@ -1253,14 +1255,14 @@ const ze = x.forwardRef(
|
|
|
1253
1255
|
autoComplete: r,
|
|
1254
1256
|
spellCheck: t,
|
|
1255
1257
|
placeholder: c,
|
|
1256
|
-
maxLength:
|
|
1257
|
-
enterKeyHint:
|
|
1258
|
-
"aria-label":
|
|
1259
|
-
leftContent: /* @__PURE__ */ e.jsx(
|
|
1260
|
-
...
|
|
1258
|
+
maxLength: a,
|
|
1259
|
+
enterKeyHint: i,
|
|
1260
|
+
"aria-label": l,
|
|
1261
|
+
leftContent: /* @__PURE__ */ e.jsx(z, { as: Z, color: "inherit", size: "sm" }),
|
|
1262
|
+
...n
|
|
1261
1263
|
}
|
|
1262
1264
|
)
|
|
1263
|
-
),
|
|
1265
|
+
), Me = j(
|
|
1264
1266
|
"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",
|
|
1265
1267
|
{
|
|
1266
1268
|
variants: {
|
|
@@ -1292,47 +1294,47 @@ const ze = x.forwardRef(
|
|
|
1292
1294
|
variant: "primary"
|
|
1293
1295
|
}
|
|
1294
1296
|
}
|
|
1295
|
-
),
|
|
1297
|
+
), Ee = x.forwardRef(
|
|
1296
1298
|
({
|
|
1297
1299
|
variant: r = "primary",
|
|
1298
1300
|
label: t,
|
|
1299
1301
|
helperText: s,
|
|
1300
1302
|
error: c,
|
|
1301
|
-
className:
|
|
1302
|
-
disabled:
|
|
1303
|
-
id:
|
|
1304
|
-
placeholder:
|
|
1303
|
+
className: a,
|
|
1304
|
+
disabled: i,
|
|
1305
|
+
id: l,
|
|
1306
|
+
placeholder: n,
|
|
1305
1307
|
children: o,
|
|
1306
|
-
...
|
|
1307
|
-
},
|
|
1308
|
-
const
|
|
1308
|
+
...d
|
|
1309
|
+
}, g) => {
|
|
1310
|
+
const f = x.useId(), u = l || f, h = !!c;
|
|
1309
1311
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1310
1312
|
/* @__PURE__ */ e.jsx(
|
|
1311
1313
|
"label",
|
|
1312
1314
|
{
|
|
1313
|
-
htmlFor:
|
|
1315
|
+
htmlFor: u,
|
|
1314
1316
|
className: "block text-sm font-medium text-foreground mb-2",
|
|
1315
1317
|
children: t
|
|
1316
1318
|
}
|
|
1317
1319
|
),
|
|
1318
|
-
/* @__PURE__ */ e.jsxs("div", { className: p("relative w-full",
|
|
1320
|
+
/* @__PURE__ */ e.jsxs("div", { className: p("relative w-full", a), children: [
|
|
1319
1321
|
/* @__PURE__ */ e.jsxs(
|
|
1320
1322
|
"select",
|
|
1321
1323
|
{
|
|
1322
|
-
ref:
|
|
1323
|
-
id:
|
|
1324
|
-
"aria-invalid":
|
|
1325
|
-
"aria-disabled":
|
|
1326
|
-
disabled:
|
|
1324
|
+
ref: g,
|
|
1325
|
+
id: u,
|
|
1326
|
+
"aria-invalid": h,
|
|
1327
|
+
"aria-disabled": i,
|
|
1328
|
+
disabled: i,
|
|
1327
1329
|
className: p(
|
|
1328
|
-
|
|
1329
|
-
variant:
|
|
1330
|
+
Me({
|
|
1331
|
+
variant: h ? "danger" : r
|
|
1330
1332
|
}),
|
|
1331
1333
|
"h-10 pl-3"
|
|
1332
1334
|
),
|
|
1333
|
-
...
|
|
1335
|
+
...d,
|
|
1334
1336
|
children: [
|
|
1335
|
-
|
|
1337
|
+
n && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, hidden: !0, children: n }),
|
|
1336
1338
|
o
|
|
1337
1339
|
]
|
|
1338
1340
|
}
|
|
@@ -1356,13 +1358,13 @@ const ze = x.forwardRef(
|
|
|
1356
1358
|
}
|
|
1357
1359
|
) })
|
|
1358
1360
|
] }),
|
|
1359
|
-
|
|
1360
|
-
!
|
|
1361
|
+
h && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: c }),
|
|
1362
|
+
!h && s && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-gray-600", children: s })
|
|
1361
1363
|
] });
|
|
1362
1364
|
}
|
|
1363
1365
|
);
|
|
1364
|
-
|
|
1365
|
-
const
|
|
1366
|
+
Ee.displayName = "SelectInput";
|
|
1367
|
+
const Fe = j(
|
|
1366
1368
|
"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",
|
|
1367
1369
|
{
|
|
1368
1370
|
variants: {
|
|
@@ -1399,29 +1401,29 @@ const Re = j(
|
|
|
1399
1401
|
fieldSizing: "fixed"
|
|
1400
1402
|
}
|
|
1401
1403
|
}
|
|
1402
|
-
),
|
|
1404
|
+
), Be = x.forwardRef(
|
|
1403
1405
|
({
|
|
1404
1406
|
variant: r = "primary",
|
|
1405
1407
|
label: t,
|
|
1406
1408
|
helperText: s,
|
|
1407
1409
|
error: c,
|
|
1408
|
-
className:
|
|
1409
|
-
disabled:
|
|
1410
|
-
id:
|
|
1411
|
-
minRows:
|
|
1410
|
+
className: a,
|
|
1411
|
+
disabled: i,
|
|
1412
|
+
id: l,
|
|
1413
|
+
minRows: n = 3,
|
|
1412
1414
|
maxRows: o,
|
|
1413
|
-
fieldSizing:
|
|
1414
|
-
style:
|
|
1415
|
-
rows:
|
|
1416
|
-
...
|
|
1417
|
-
},
|
|
1418
|
-
const b = x.useId(), w =
|
|
1419
|
-
...
|
|
1415
|
+
fieldSizing: d = "fixed",
|
|
1416
|
+
style: g,
|
|
1417
|
+
rows: f,
|
|
1418
|
+
...u
|
|
1419
|
+
}, h) => {
|
|
1420
|
+
const b = x.useId(), w = l || b, m = !!c, v = f || n, y = d === "content" ? void 0 : o, N = {
|
|
1421
|
+
...d === "content" && { fieldSizing: "content" },
|
|
1420
1422
|
...y && {
|
|
1421
1423
|
maxHeight: `${y * 1.5}rem`
|
|
1422
1424
|
// Approximate line height
|
|
1423
1425
|
},
|
|
1424
|
-
...
|
|
1426
|
+
...g
|
|
1425
1427
|
};
|
|
1426
1428
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1427
1429
|
t && /* @__PURE__ */ e.jsx(
|
|
@@ -1432,24 +1434,24 @@ const Re = j(
|
|
|
1432
1434
|
children: t
|
|
1433
1435
|
}
|
|
1434
1436
|
),
|
|
1435
|
-
/* @__PURE__ */ e.jsx("div", { className: p("relative w-full",
|
|
1437
|
+
/* @__PURE__ */ e.jsx("div", { className: p("relative w-full", a), children: /* @__PURE__ */ e.jsx(
|
|
1436
1438
|
"textarea",
|
|
1437
1439
|
{
|
|
1438
|
-
ref:
|
|
1440
|
+
ref: h,
|
|
1439
1441
|
id: w,
|
|
1440
1442
|
rows: v,
|
|
1441
1443
|
"aria-invalid": m,
|
|
1442
|
-
"aria-disabled":
|
|
1443
|
-
disabled:
|
|
1444
|
-
style:
|
|
1444
|
+
"aria-disabled": i,
|
|
1445
|
+
disabled: i,
|
|
1446
|
+
style: N,
|
|
1445
1447
|
className: p(
|
|
1446
|
-
|
|
1448
|
+
Fe({
|
|
1447
1449
|
variant: m ? "danger" : r,
|
|
1448
|
-
fieldSizing:
|
|
1450
|
+
fieldSizing: d
|
|
1449
1451
|
}),
|
|
1450
1452
|
"px-3 py-2"
|
|
1451
1453
|
),
|
|
1452
|
-
...
|
|
1454
|
+
...u
|
|
1453
1455
|
}
|
|
1454
1456
|
) }),
|
|
1455
1457
|
m && /* @__PURE__ */ e.jsx("div", { className: "mt-1 text-sm text-danger", role: "alert", children: c }),
|
|
@@ -1457,24 +1459,24 @@ const Re = j(
|
|
|
1457
1459
|
] });
|
|
1458
1460
|
}
|
|
1459
1461
|
);
|
|
1460
|
-
|
|
1461
|
-
const
|
|
1462
|
-
const c = (
|
|
1463
|
-
t?.onChange?.(
|
|
1462
|
+
Be.displayName = "TextAreaInput";
|
|
1463
|
+
const ur = I(function(t, s) {
|
|
1464
|
+
const c = (a) => {
|
|
1465
|
+
t?.onChange?.(a.target.value);
|
|
1464
1466
|
};
|
|
1465
1467
|
return /* @__PURE__ */ e.jsx(
|
|
1466
|
-
|
|
1468
|
+
k,
|
|
1467
1469
|
{
|
|
1468
1470
|
type: "time",
|
|
1469
1471
|
tabIndex: 0,
|
|
1470
1472
|
"aria-hidden": "true",
|
|
1471
|
-
leftContent: /* @__PURE__ */ e.jsx(
|
|
1473
|
+
leftContent: /* @__PURE__ */ e.jsx(z, { as: ee, color: "inherit", size: "sm" }),
|
|
1472
1474
|
ref: s,
|
|
1473
1475
|
...t,
|
|
1474
1476
|
onChange: c
|
|
1475
1477
|
}
|
|
1476
1478
|
);
|
|
1477
|
-
}),
|
|
1479
|
+
}), De = j(
|
|
1478
1480
|
"relative inline-flex items-center transition-colors duration-200 border border-transparent",
|
|
1479
1481
|
{
|
|
1480
1482
|
variants: {
|
|
@@ -1530,7 +1532,7 @@ const tr = V(function(t, s) {
|
|
|
1530
1532
|
{ checked: !1, class: "bg-white border-border" }
|
|
1531
1533
|
]
|
|
1532
1534
|
}
|
|
1533
|
-
),
|
|
1535
|
+
), Pe = j(
|
|
1534
1536
|
"absolute rounded-full transition-transform duration-200",
|
|
1535
1537
|
{
|
|
1536
1538
|
variants: {
|
|
@@ -1549,23 +1551,23 @@ const tr = V(function(t, s) {
|
|
|
1549
1551
|
checked: !1
|
|
1550
1552
|
}
|
|
1551
1553
|
}
|
|
1552
|
-
),
|
|
1554
|
+
), $e = ({
|
|
1553
1555
|
color: r = "primary",
|
|
1554
1556
|
size: t = "md",
|
|
1555
1557
|
disabled: s = !1,
|
|
1556
1558
|
className: c,
|
|
1557
|
-
checked:
|
|
1559
|
+
checked: a
|
|
1558
1560
|
}) => /* @__PURE__ */ e.jsx(
|
|
1559
1561
|
"span",
|
|
1560
1562
|
{
|
|
1561
1563
|
className: p(
|
|
1562
|
-
|
|
1564
|
+
De({ color: r, size: t, disabled: s, checked: a }),
|
|
1563
1565
|
"rounded-full pointer-events-none",
|
|
1564
1566
|
c
|
|
1565
1567
|
),
|
|
1566
1568
|
"aria-hidden": "true"
|
|
1567
1569
|
}
|
|
1568
|
-
),
|
|
1570
|
+
), Ae = ({ size: r = "md", checked: t = !1 }) => /* @__PURE__ */ e.jsx("span", { className: p(Pe({ size: r, checked: t })), "aria-hidden": "true" }), He = ({ label: r, htmlFor: t, placement: s = "top", disabled: c = !1 }) => r ? /* @__PURE__ */ e.jsx(
|
|
1569
1571
|
"label",
|
|
1570
1572
|
{
|
|
1571
1573
|
htmlFor: t,
|
|
@@ -1576,42 +1578,42 @@ const tr = V(function(t, s) {
|
|
|
1576
1578
|
),
|
|
1577
1579
|
children: r
|
|
1578
1580
|
}
|
|
1579
|
-
) : null,
|
|
1581
|
+
) : null, Le = x.forwardRef(
|
|
1580
1582
|
({
|
|
1581
1583
|
checked: r,
|
|
1582
1584
|
defaultChecked: t,
|
|
1583
1585
|
onCheckedChange: s,
|
|
1584
1586
|
color: c = "primary",
|
|
1585
|
-
size:
|
|
1586
|
-
label:
|
|
1587
|
-
labelPlacement:
|
|
1588
|
-
disabled:
|
|
1587
|
+
size: a = "md",
|
|
1588
|
+
label: i,
|
|
1589
|
+
labelPlacement: l = "top",
|
|
1590
|
+
disabled: n = !1,
|
|
1589
1591
|
className: o,
|
|
1590
|
-
id:
|
|
1591
|
-
ariaLabel:
|
|
1592
|
-
...
|
|
1593
|
-
},
|
|
1594
|
-
const [
|
|
1592
|
+
id: d,
|
|
1593
|
+
ariaLabel: g,
|
|
1594
|
+
...f
|
|
1595
|
+
}, u) => {
|
|
1596
|
+
const [h, b] = O(
|
|
1595
1597
|
t ?? !1
|
|
1596
|
-
), w =
|
|
1597
|
-
v || b(
|
|
1598
|
+
), w = D(), m = d || w, v = typeof r == "boolean", y = v ? r : h, N = (C) => {
|
|
1599
|
+
v || b(C.target.checked), s?.(C.target.checked);
|
|
1598
1600
|
};
|
|
1599
1601
|
return /* @__PURE__ */ e.jsxs(
|
|
1600
1602
|
"div",
|
|
1601
1603
|
{
|
|
1602
1604
|
className: p(
|
|
1603
1605
|
"flex flex-col",
|
|
1604
|
-
|
|
1606
|
+
l === "inline" && "flex-row items-center",
|
|
1605
1607
|
o
|
|
1606
1608
|
),
|
|
1607
1609
|
children: [
|
|
1608
1610
|
/* @__PURE__ */ e.jsx(
|
|
1609
|
-
|
|
1611
|
+
He,
|
|
1610
1612
|
{
|
|
1611
|
-
label:
|
|
1613
|
+
label: i,
|
|
1612
1614
|
htmlFor: m,
|
|
1613
|
-
placement:
|
|
1614
|
-
disabled:
|
|
1615
|
+
placement: l,
|
|
1616
|
+
disabled: n
|
|
1615
1617
|
}
|
|
1616
1618
|
),
|
|
1617
1619
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -1619,33 +1621,33 @@ const tr = V(function(t, s) {
|
|
|
1619
1621
|
{
|
|
1620
1622
|
className: p(
|
|
1621
1623
|
"relative flex items-center",
|
|
1622
|
-
|
|
1624
|
+
l === "inline" && "ml-2"
|
|
1623
1625
|
),
|
|
1624
1626
|
children: [
|
|
1625
1627
|
/* @__PURE__ */ e.jsx(
|
|
1626
1628
|
"input",
|
|
1627
1629
|
{
|
|
1628
|
-
ref:
|
|
1630
|
+
ref: u,
|
|
1629
1631
|
type: "checkbox",
|
|
1630
1632
|
id: m,
|
|
1631
|
-
"aria-label":
|
|
1633
|
+
"aria-label": g || i,
|
|
1632
1634
|
checked: y,
|
|
1633
|
-
disabled:
|
|
1634
|
-
onChange:
|
|
1635
|
+
disabled: n,
|
|
1636
|
+
onChange: N,
|
|
1635
1637
|
className: "absolute inset-0 w-full h-full opacity-0 cursor-pointer z-10",
|
|
1636
|
-
...
|
|
1638
|
+
...f
|
|
1637
1639
|
}
|
|
1638
1640
|
),
|
|
1639
1641
|
/* @__PURE__ */ e.jsx(
|
|
1640
|
-
|
|
1642
|
+
$e,
|
|
1641
1643
|
{
|
|
1642
1644
|
color: c,
|
|
1643
|
-
size:
|
|
1644
|
-
disabled:
|
|
1645
|
+
size: a,
|
|
1646
|
+
disabled: n,
|
|
1645
1647
|
checked: y
|
|
1646
1648
|
}
|
|
1647
1649
|
),
|
|
1648
|
-
/* @__PURE__ */ e.jsx(
|
|
1650
|
+
/* @__PURE__ */ e.jsx(Ae, { size: a, checked: y })
|
|
1649
1651
|
]
|
|
1650
1652
|
}
|
|
1651
1653
|
)
|
|
@@ -1654,44 +1656,44 @@ const tr = V(function(t, s) {
|
|
|
1654
1656
|
);
|
|
1655
1657
|
}
|
|
1656
1658
|
);
|
|
1657
|
-
|
|
1658
|
-
function
|
|
1659
|
-
|
|
1659
|
+
Le.displayName = "SwitchInput";
|
|
1660
|
+
function Te(r, t) {
|
|
1661
|
+
X(() => {
|
|
1660
1662
|
typeof r == "number" && !isNaN(r) ? t(`${r}`) : r === "" || r === null || r === void 0 ? t("") : typeof r == "string" && t(r);
|
|
1661
1663
|
}, [r, t]);
|
|
1662
1664
|
}
|
|
1663
|
-
const
|
|
1665
|
+
const gr = ({
|
|
1664
1666
|
value: r,
|
|
1665
1667
|
onChange: t,
|
|
1666
1668
|
allowNegative: s = !1,
|
|
1667
1669
|
inputProps: c,
|
|
1668
|
-
label:
|
|
1669
|
-
helperText:
|
|
1670
|
-
error:
|
|
1671
|
-
variant:
|
|
1670
|
+
label: a,
|
|
1671
|
+
helperText: i,
|
|
1672
|
+
error: l,
|
|
1673
|
+
variant: n,
|
|
1672
1674
|
...o
|
|
1673
1675
|
}) => {
|
|
1674
|
-
const
|
|
1676
|
+
const d = $(null), [g, f] = O(
|
|
1675
1677
|
r === "" ? "" : String(r)
|
|
1676
1678
|
);
|
|
1677
|
-
|
|
1678
|
-
const
|
|
1679
|
-
let b =
|
|
1680
|
-
s || (b = b.replace(/-/g, "")),
|
|
1679
|
+
Te(r, f);
|
|
1680
|
+
const u = (h) => {
|
|
1681
|
+
let b = h.target.value.replace(/[^\d.,-]/g, "");
|
|
1682
|
+
s || (b = b.replace(/-/g, "")), f(b), t(b);
|
|
1681
1683
|
};
|
|
1682
1684
|
return /* @__PURE__ */ e.jsx(
|
|
1683
|
-
|
|
1685
|
+
k,
|
|
1684
1686
|
{
|
|
1685
|
-
ref:
|
|
1687
|
+
ref: d,
|
|
1686
1688
|
type: "text",
|
|
1687
|
-
label:
|
|
1688
|
-
value:
|
|
1689
|
-
onChange:
|
|
1690
|
-
error:
|
|
1691
|
-
helperText:
|
|
1689
|
+
label: a,
|
|
1690
|
+
value: g,
|
|
1691
|
+
onChange: u,
|
|
1692
|
+
error: l,
|
|
1693
|
+
helperText: i,
|
|
1692
1694
|
placeholder: o.placeholder,
|
|
1693
|
-
leftContent: /* @__PURE__ */ e.jsx(
|
|
1694
|
-
variant:
|
|
1695
|
+
leftContent: /* @__PURE__ */ e.jsx(z, { as: re, color: "inherit", size: "sm" }),
|
|
1696
|
+
variant: n,
|
|
1695
1697
|
inputMode: "numeric",
|
|
1696
1698
|
autoComplete: "off",
|
|
1697
1699
|
pattern: s ? "^-?[\\d,.]*$" : "^[\\d,.]*$",
|
|
@@ -1699,19 +1701,19 @@ const or = ({
|
|
|
1699
1701
|
...o
|
|
1700
1702
|
}
|
|
1701
1703
|
);
|
|
1702
|
-
},
|
|
1704
|
+
}, fr = I(
|
|
1703
1705
|
(r, t) => /* @__PURE__ */ e.jsx(
|
|
1704
|
-
|
|
1706
|
+
k,
|
|
1705
1707
|
{
|
|
1706
1708
|
...r,
|
|
1707
1709
|
ref: t,
|
|
1708
1710
|
type: "email",
|
|
1709
1711
|
autoComplete: "email",
|
|
1710
1712
|
inputMode: "email",
|
|
1711
|
-
leftContent: /* @__PURE__ */ e.jsx(
|
|
1713
|
+
leftContent: /* @__PURE__ */ e.jsx(z, { as: te, color: "inherit", size: "sm" })
|
|
1712
1714
|
}
|
|
1713
1715
|
)
|
|
1714
|
-
),
|
|
1716
|
+
), Ge = j(
|
|
1715
1717
|
"flex items-center gap-3 cursor-pointer border-b border-border select-none p-4 transition-colors hover:bg-neutral-light",
|
|
1716
1718
|
{
|
|
1717
1719
|
variants: {
|
|
@@ -1729,7 +1731,7 @@ const or = ({
|
|
|
1729
1731
|
disabled: !1
|
|
1730
1732
|
}
|
|
1731
1733
|
}
|
|
1732
|
-
),
|
|
1734
|
+
), Ke = j(
|
|
1733
1735
|
"flex h-6 w-6 items-center justify-center rounded-sm overflow-hidden border border-border transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
|
|
1734
1736
|
{
|
|
1735
1737
|
variants: {
|
|
@@ -1747,55 +1749,55 @@ const or = ({
|
|
|
1747
1749
|
disabled: !1
|
|
1748
1750
|
}
|
|
1749
1751
|
}
|
|
1750
|
-
),
|
|
1751
|
-
const o =
|
|
1752
|
+
), hr = I(({ value: r, label: t, checked: s, id: c, className: a, disabled: i, ...l }, n) => {
|
|
1753
|
+
const o = D(), d = c || o;
|
|
1752
1754
|
return /* @__PURE__ */ e.jsxs(
|
|
1753
1755
|
"label",
|
|
1754
1756
|
{
|
|
1755
|
-
htmlFor:
|
|
1757
|
+
htmlFor: d,
|
|
1756
1758
|
className: p(
|
|
1757
|
-
|
|
1759
|
+
Ge({
|
|
1758
1760
|
checked: !!s,
|
|
1759
|
-
disabled: !!
|
|
1761
|
+
disabled: !!i
|
|
1760
1762
|
}),
|
|
1761
|
-
|
|
1763
|
+
a
|
|
1762
1764
|
),
|
|
1763
1765
|
"aria-checked": s,
|
|
1764
1766
|
role: "radio",
|
|
1765
1767
|
"aria-label": `Select ${r}`,
|
|
1766
|
-
tabIndex:
|
|
1768
|
+
tabIndex: i ? -1 : 0,
|
|
1767
1769
|
children: [
|
|
1768
1770
|
/* @__PURE__ */ e.jsx(
|
|
1769
1771
|
"input",
|
|
1770
1772
|
{
|
|
1771
|
-
ref:
|
|
1772
|
-
id:
|
|
1773
|
+
ref: n,
|
|
1774
|
+
id: d,
|
|
1773
1775
|
type: "radio",
|
|
1774
1776
|
value: r,
|
|
1775
1777
|
checked: s,
|
|
1776
|
-
disabled:
|
|
1778
|
+
disabled: i,
|
|
1777
1779
|
className: "sr-only",
|
|
1778
1780
|
"aria-hidden": !0,
|
|
1779
1781
|
"aria-checked": s,
|
|
1780
|
-
...
|
|
1782
|
+
...l
|
|
1781
1783
|
}
|
|
1782
1784
|
),
|
|
1783
1785
|
/* @__PURE__ */ e.jsx(
|
|
1784
1786
|
"span",
|
|
1785
1787
|
{
|
|
1786
|
-
className:
|
|
1788
|
+
className: Ke({
|
|
1787
1789
|
checked: !!s,
|
|
1788
|
-
disabled: !!
|
|
1790
|
+
disabled: !!i
|
|
1789
1791
|
}),
|
|
1790
1792
|
"aria-hidden": "true",
|
|
1791
|
-
children: s ? /* @__PURE__ */ e.jsx(
|
|
1793
|
+
children: s ? /* @__PURE__ */ e.jsx(z, { as: F, color: "neutral", size: "md" }) : null
|
|
1792
1794
|
}
|
|
1793
1795
|
),
|
|
1794
1796
|
/* @__PURE__ */ e.jsx("span", { className: "flex-1 min-w-0 text-base text-foreground", children: t })
|
|
1795
1797
|
]
|
|
1796
1798
|
}
|
|
1797
1799
|
);
|
|
1798
|
-
}),
|
|
1800
|
+
}), We = j(
|
|
1799
1801
|
"flex items-center gap-3 cursor-pointer border-b border-border select-none p-4 transition-colors hover:bg-neutral-light",
|
|
1800
1802
|
{
|
|
1801
1803
|
variants: {
|
|
@@ -1813,7 +1815,7 @@ const or = ({
|
|
|
1813
1815
|
disabled: !1
|
|
1814
1816
|
}
|
|
1815
1817
|
}
|
|
1816
|
-
),
|
|
1818
|
+
), _e = j(
|
|
1817
1819
|
"flex h-6 w-6 items-center justify-center rounded-sm overflow-hidden border border-border transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
|
|
1818
1820
|
{
|
|
1819
1821
|
variants: {
|
|
@@ -1831,71 +1833,184 @@ const or = ({
|
|
|
1831
1833
|
disabled: !1
|
|
1832
1834
|
}
|
|
1833
1835
|
}
|
|
1834
|
-
),
|
|
1835
|
-
const o =
|
|
1836
|
+
), br = I(({ value: r, label: t, checked: s, id: c, className: a, disabled: i, ...l }, n) => {
|
|
1837
|
+
const o = D(), d = c || o;
|
|
1836
1838
|
return /* @__PURE__ */ e.jsxs(
|
|
1837
1839
|
"label",
|
|
1838
1840
|
{
|
|
1839
|
-
htmlFor:
|
|
1841
|
+
htmlFor: d,
|
|
1840
1842
|
className: p(
|
|
1841
|
-
|
|
1843
|
+
We({
|
|
1842
1844
|
checked: !!s,
|
|
1843
|
-
disabled: !!
|
|
1845
|
+
disabled: !!i
|
|
1844
1846
|
}),
|
|
1845
|
-
|
|
1847
|
+
a
|
|
1846
1848
|
),
|
|
1847
1849
|
"aria-checked": s,
|
|
1848
1850
|
role: "checkbox",
|
|
1849
1851
|
"aria-label": `Select ${r}`,
|
|
1850
|
-
tabIndex:
|
|
1852
|
+
tabIndex: i ? -1 : 0,
|
|
1851
1853
|
children: [
|
|
1852
1854
|
/* @__PURE__ */ e.jsx(
|
|
1853
1855
|
"input",
|
|
1854
1856
|
{
|
|
1855
|
-
ref:
|
|
1856
|
-
id:
|
|
1857
|
+
ref: n,
|
|
1858
|
+
id: d,
|
|
1857
1859
|
type: "checkbox",
|
|
1858
1860
|
value: r,
|
|
1859
1861
|
checked: s,
|
|
1860
|
-
disabled:
|
|
1862
|
+
disabled: i,
|
|
1861
1863
|
className: "sr-only",
|
|
1862
1864
|
"aria-hidden": !0,
|
|
1863
1865
|
"aria-checked": s,
|
|
1864
|
-
...
|
|
1866
|
+
...l
|
|
1865
1867
|
}
|
|
1866
1868
|
),
|
|
1867
1869
|
/* @__PURE__ */ e.jsx(
|
|
1868
1870
|
"span",
|
|
1869
1871
|
{
|
|
1870
|
-
className:
|
|
1872
|
+
className: _e({
|
|
1871
1873
|
checked: !!s,
|
|
1872
|
-
disabled: !!
|
|
1874
|
+
disabled: !!i
|
|
1873
1875
|
}),
|
|
1874
1876
|
"aria-hidden": "true",
|
|
1875
|
-
children: s ? /* @__PURE__ */ e.jsx(
|
|
1877
|
+
children: s ? /* @__PURE__ */ e.jsx(z, { as: F, color: "neutral", size: "md" }) : null
|
|
1876
1878
|
}
|
|
1877
1879
|
),
|
|
1878
1880
|
/* @__PURE__ */ e.jsx("span", { className: "flex-1 min-w-0 text-base text-foreground", children: t })
|
|
1879
1881
|
]
|
|
1880
1882
|
}
|
|
1881
1883
|
);
|
|
1884
|
+
}), qe = I(
|
|
1885
|
+
({ children: r, onChange: t, value: s, size: c, placement: a, ...i }, l) => {
|
|
1886
|
+
const [n, o] = O(!1), d = P(
|
|
1887
|
+
() => ({ isOpen: n, setIsOpen: o, onChange: t, value: s }),
|
|
1888
|
+
[n, o, t, s]
|
|
1889
|
+
);
|
|
1890
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1891
|
+
/* @__PURE__ */ e.jsx(
|
|
1892
|
+
k,
|
|
1893
|
+
{
|
|
1894
|
+
...i,
|
|
1895
|
+
onChange: t,
|
|
1896
|
+
value: s,
|
|
1897
|
+
ref: l,
|
|
1898
|
+
readOnly: !0,
|
|
1899
|
+
tabIndex: 0,
|
|
1900
|
+
onClick: () => o(!0),
|
|
1901
|
+
"aria-haspopup": "dialog",
|
|
1902
|
+
"aria-expanded": n,
|
|
1903
|
+
onKeyDown: (g) => {
|
|
1904
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), o(!0));
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
),
|
|
1908
|
+
/* @__PURE__ */ e.jsx(
|
|
1909
|
+
M,
|
|
1910
|
+
{
|
|
1911
|
+
isOpen: n,
|
|
1912
|
+
onClose: () => o(!1),
|
|
1913
|
+
size: c,
|
|
1914
|
+
placement: a,
|
|
1915
|
+
children: n && r(d)
|
|
1916
|
+
}
|
|
1917
|
+
)
|
|
1918
|
+
] });
|
|
1919
|
+
}
|
|
1920
|
+
), xr = Object.assign(qe, {
|
|
1921
|
+
Header: M.Header,
|
|
1922
|
+
Body: M.Body,
|
|
1923
|
+
Footer: M.Footer
|
|
1924
|
+
}), Je = I(
|
|
1925
|
+
({ children: r, onChange: t, value: s, size: c, position: a, ...i }, l) => {
|
|
1926
|
+
const [n, o] = O(!1), d = P(
|
|
1927
|
+
() => ({ isOpen: n, setIsOpen: o, onChange: t, value: s }),
|
|
1928
|
+
[n, o, t, s]
|
|
1929
|
+
);
|
|
1930
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1931
|
+
/* @__PURE__ */ e.jsx(
|
|
1932
|
+
k,
|
|
1933
|
+
{
|
|
1934
|
+
...i,
|
|
1935
|
+
onChange: t,
|
|
1936
|
+
value: s,
|
|
1937
|
+
ref: l,
|
|
1938
|
+
readOnly: !0,
|
|
1939
|
+
tabIndex: 0,
|
|
1940
|
+
onClick: () => o(!0),
|
|
1941
|
+
onKeyDown: (g) => {
|
|
1942
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), o(!0));
|
|
1943
|
+
},
|
|
1944
|
+
"aria-haspopup": "dialog",
|
|
1945
|
+
"aria-expanded": n
|
|
1946
|
+
}
|
|
1947
|
+
),
|
|
1948
|
+
/* @__PURE__ */ e.jsx(
|
|
1949
|
+
E,
|
|
1950
|
+
{
|
|
1951
|
+
isOpen: n,
|
|
1952
|
+
onClose: o,
|
|
1953
|
+
size: c,
|
|
1954
|
+
position: a,
|
|
1955
|
+
children: n && r(d)
|
|
1956
|
+
}
|
|
1957
|
+
)
|
|
1958
|
+
] });
|
|
1959
|
+
}
|
|
1960
|
+
), mr = Object.assign(Je, {
|
|
1961
|
+
Header: E.Header,
|
|
1962
|
+
Body: E.Body,
|
|
1963
|
+
Footer: E.Footer
|
|
1964
|
+
}), Qe = I(({ children: r, onChange: t, value: s, ...c }, a) => {
|
|
1965
|
+
const [i, l] = O(!1), n = P(
|
|
1966
|
+
() => ({ isOpen: i, setIsOpen: l, onChange: t, value: s }),
|
|
1967
|
+
[i, l, t, s]
|
|
1968
|
+
);
|
|
1969
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1970
|
+
/* @__PURE__ */ e.jsx(
|
|
1971
|
+
k,
|
|
1972
|
+
{
|
|
1973
|
+
...c,
|
|
1974
|
+
onChange: t,
|
|
1975
|
+
value: s,
|
|
1976
|
+
ref: a,
|
|
1977
|
+
readOnly: !0,
|
|
1978
|
+
tabIndex: 0,
|
|
1979
|
+
onClick: () => l(!0),
|
|
1980
|
+
"aria-haspopup": "dialog",
|
|
1981
|
+
"aria-expanded": i,
|
|
1982
|
+
onKeyDown: (o) => {
|
|
1983
|
+
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), l(!0));
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
),
|
|
1987
|
+
/* @__PURE__ */ e.jsx(R, { isOpen: i, onClose: () => l(!1), children: i && r(n) })
|
|
1988
|
+
] });
|
|
1989
|
+
}), pr = Object.assign(Qe, {
|
|
1990
|
+
Header: R.Header,
|
|
1991
|
+
Body: R.Body,
|
|
1992
|
+
Footer: R.Footer,
|
|
1993
|
+
Title: R.Title
|
|
1882
1994
|
});
|
|
1883
1995
|
export {
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1996
|
+
pr as B,
|
|
1997
|
+
or as C,
|
|
1998
|
+
ar as D,
|
|
1999
|
+
fr as E,
|
|
2000
|
+
xr as M,
|
|
2001
|
+
gr as P,
|
|
2002
|
+
ir as R,
|
|
2003
|
+
cr as S,
|
|
2004
|
+
k as T,
|
|
2005
|
+
sr as a,
|
|
2006
|
+
nr as b,
|
|
2007
|
+
dr as c,
|
|
2008
|
+
lr as d,
|
|
2009
|
+
Ee as e,
|
|
2010
|
+
Be as f,
|
|
2011
|
+
ur as g,
|
|
2012
|
+
Le as h,
|
|
2013
|
+
hr as i,
|
|
2014
|
+
br as j,
|
|
2015
|
+
mr as k
|
|
1901
2016
|
};
|