snapflow-ui-kit 1.2.0 → 1.2.2
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/{ArrowDownIcon-jfp8BJVY.js → ArrowRightIcon-D0SDyfKt.js} +40 -4
- package/dist/ArrowRightIcon-D0SDyfKt.js.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +2 -0
- package/dist/components/Carousel/Carousel.types.d.ts +8 -0
- package/dist/components/Carousel/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/icons.js +67 -101
- package/dist/icons.js.map +1 -1
- package/dist/index.client.js +436 -363
- package/dist/index.client.js.map +1 -1
- package/dist/index.css +1 -1
- package/package.json +1 -1
- package/dist/ArrowDownIcon-jfp8BJVY.js.map +0 -1
package/dist/index.client.js
CHANGED
|
@@ -1,184 +1,184 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import j, { clsx as
|
|
3
|
-
import { clsx as
|
|
2
|
+
import j, { clsx as w } from "clsx";
|
|
3
|
+
import { clsx as pn } from "clsx";
|
|
4
4
|
import U from "simplebar-react";
|
|
5
|
-
import { default as
|
|
6
|
-
import { A as
|
|
7
|
-
import { B as
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { useEffect as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
5
|
+
import { default as mn } from "simplebar-react";
|
|
6
|
+
import { A as K, s as A, c as V } from "./Textarea-D5WrCGtg.js";
|
|
7
|
+
import { B as fn, C as hn, a as bn, L as gn, R as yn, T as wn, b as vn } from "./Textarea-D5WrCGtg.js";
|
|
8
|
+
import { jsx as n, jsxs as u, Fragment as Z } from "react/jsx-runtime";
|
|
9
|
+
import { useEffect as x, useState as P, useMemo as F, useRef as G, forwardRef as ee, useId as X, useCallback as te } from "react";
|
|
10
|
+
import { A as ne, C as oe, E as re, a as ae, b as se, c as ce } from "./ArrowRightIcon-D0SDyfKt.js";
|
|
11
|
+
import { DayPicker as q } from "react-day-picker";
|
|
12
|
+
import { parse as O, isValid as $, format as M } from "date-fns";
|
|
13
13
|
import { C as Y } from "./CloseIcon-CqK3tPnG.js";
|
|
14
14
|
import * as S from "@radix-ui/react-dropdown-menu";
|
|
15
|
-
import { createPortal as
|
|
16
|
-
import { FocusTrap as
|
|
17
|
-
import { toast as
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
import { createPortal as ie } from "react-dom";
|
|
16
|
+
import { FocusTrap as le } from "focus-trap-react";
|
|
17
|
+
import { toast as W } from "react-hot-toast";
|
|
18
|
+
const nn = (e) => {
|
|
19
|
+
W.custom((t) => /* @__PURE__ */ n(
|
|
20
|
+
K,
|
|
21
21
|
{
|
|
22
22
|
variant: "success",
|
|
23
23
|
message: e,
|
|
24
|
-
className: t.visible ?
|
|
25
|
-
onClose: () =>
|
|
24
|
+
className: t.visible ? A.toastEnter : A.toastExit,
|
|
25
|
+
onClose: () => W.dismiss(t.id)
|
|
26
26
|
}
|
|
27
27
|
));
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
}, on = (e, t = "Error!") => {
|
|
29
|
+
W.custom((r) => /* @__PURE__ */ n(
|
|
30
|
+
K,
|
|
31
31
|
{
|
|
32
32
|
variant: "error",
|
|
33
33
|
title: t,
|
|
34
34
|
message: e,
|
|
35
|
-
className:
|
|
36
|
-
onClose: () =>
|
|
35
|
+
className: r.visible ? A.toastEnter : A.toastExit,
|
|
36
|
+
onClose: () => W.dismiss(r.id)
|
|
37
37
|
}
|
|
38
38
|
));
|
|
39
|
-
},
|
|
40
|
-
wrapper:
|
|
41
|
-
inputContainer:
|
|
42
|
-
label:
|
|
43
|
-
inputWrapper:
|
|
44
|
-
trigger:
|
|
45
|
-
icon:
|
|
46
|
-
placeholder:
|
|
47
|
-
clearButton:
|
|
48
|
-
clearIcon:
|
|
49
|
-
disabledLabel:
|
|
50
|
-
error:
|
|
51
|
-
calendar:
|
|
52
|
-
open:
|
|
53
|
-
monthsCaption:
|
|
54
|
-
navButtonPrevious:
|
|
55
|
-
navButtonNext:
|
|
56
|
-
navIcon:
|
|
57
|
-
monthGrid:
|
|
58
|
-
dropdowns:
|
|
59
|
-
weekday:
|
|
60
|
-
day:
|
|
61
|
-
dayButton:
|
|
62
|
-
dayOutside:
|
|
63
|
-
dayToday:
|
|
64
|
-
daySelected:
|
|
65
|
-
dayRangeStart:
|
|
66
|
-
dayRangeEnd:
|
|
67
|
-
dayRangeMiddle:
|
|
68
|
-
},
|
|
39
|
+
}, de = "_wrapper_1fmp6_1", pe = "_inputContainer_1fmp6_5", _e = "_label_1fmp6_11", me = "_inputWrapper_1fmp6_15", ue = "_trigger_1fmp6_22", fe = "_icon_1fmp6_36", he = "_placeholder_1fmp6_43", be = "_clearButton_1fmp6_47", ge = "_clearIcon_1fmp6_87", ye = "_disabledLabel_1fmp6_99", we = "_error_1fmp6_121", ve = "_calendar_1fmp6_139", Ne = "_open_1fmp6_158", Ce = "_monthsCaption_1fmp6_164", Ie = "_navButtonPrevious_1fmp6_170", ke = "_navButtonNext_1fmp6_171", De = "_navIcon_1fmp6_191", xe = "_monthGrid_1fmp6_197", Ee = "_dropdowns_1fmp6_203", Se = "_weekday_1fmp6_207", Pe = "_day_1fmp6_218", Re = "_dayButton_1fmp6_225", Be = "_dayOutside_1fmp6_252", Oe = "_dayToday_1fmp6_256", $e = "_daySelected_1fmp6_261", Me = "_dayRangeStart_1fmp6_262", Te = "_dayRangeEnd_1fmp6_263", Le = "_dayRangeMiddle_1fmp6_264", s = {
|
|
40
|
+
wrapper: de,
|
|
41
|
+
inputContainer: pe,
|
|
42
|
+
label: _e,
|
|
43
|
+
inputWrapper: me,
|
|
44
|
+
trigger: ue,
|
|
45
|
+
icon: fe,
|
|
46
|
+
placeholder: he,
|
|
47
|
+
clearButton: be,
|
|
48
|
+
clearIcon: ge,
|
|
49
|
+
disabledLabel: ye,
|
|
50
|
+
error: we,
|
|
51
|
+
calendar: ve,
|
|
52
|
+
open: Ne,
|
|
53
|
+
monthsCaption: Ce,
|
|
54
|
+
navButtonPrevious: Ie,
|
|
55
|
+
navButtonNext: ke,
|
|
56
|
+
navIcon: De,
|
|
57
|
+
monthGrid: xe,
|
|
58
|
+
dropdowns: Ee,
|
|
59
|
+
weekday: Se,
|
|
60
|
+
day: Pe,
|
|
61
|
+
dayButton: Re,
|
|
62
|
+
dayOutside: Be,
|
|
63
|
+
dayToday: Oe,
|
|
64
|
+
daySelected: $e,
|
|
65
|
+
dayRangeStart: Me,
|
|
66
|
+
dayRangeEnd: Te,
|
|
67
|
+
dayRangeMiddle: Le
|
|
68
|
+
}, Ae = ({
|
|
69
69
|
ref: e,
|
|
70
70
|
isOpen: t,
|
|
71
|
-
onDismiss:
|
|
71
|
+
onDismiss: r
|
|
72
72
|
}) => {
|
|
73
|
-
|
|
73
|
+
x(() => {
|
|
74
74
|
if (!t) return;
|
|
75
|
-
const
|
|
76
|
-
e.current && !e.current.contains(c.target) &&
|
|
77
|
-
},
|
|
78
|
-
c.key === "Escape" &&
|
|
75
|
+
const o = (c) => {
|
|
76
|
+
e.current && !e.current.contains(c.target) && r();
|
|
77
|
+
}, l = (c) => {
|
|
78
|
+
c.key === "Escape" && r();
|
|
79
79
|
};
|
|
80
|
-
return document.addEventListener("mousedown",
|
|
81
|
-
document.removeEventListener("mousedown",
|
|
80
|
+
return document.addEventListener("mousedown", o), document.addEventListener("touchstart", o), document.addEventListener("keydown", l), () => {
|
|
81
|
+
document.removeEventListener("mousedown", o), document.removeEventListener("touchstart", o), document.removeEventListener("keydown", l);
|
|
82
82
|
};
|
|
83
|
-
}, [t,
|
|
84
|
-
}, T = "dd.MM.yyyy",
|
|
83
|
+
}, [t, r, e]);
|
|
84
|
+
}, T = "dd.MM.yyyy", We = (e) => {
|
|
85
85
|
if (!e) return;
|
|
86
|
-
const t =
|
|
87
|
-
return
|
|
88
|
-
},
|
|
86
|
+
const t = O(e, T, /* @__PURE__ */ new Date());
|
|
87
|
+
return $(t) ? t : void 0;
|
|
88
|
+
}, je = (e) => {
|
|
89
89
|
if (!e) return;
|
|
90
|
-
const t = " - ",
|
|
91
|
-
if (
|
|
92
|
-
const
|
|
93
|
-
return
|
|
90
|
+
const t = " - ", r = e.indexOf(t);
|
|
91
|
+
if (r === -1) {
|
|
92
|
+
const i = O(e.trim(), T, /* @__PURE__ */ new Date());
|
|
93
|
+
return $(i) ? { from: i, to: void 0 } : void 0;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
97
|
-
const c =
|
|
98
|
-
if (
|
|
99
|
-
return { from: c, to:
|
|
95
|
+
const o = e.substring(0, r).trim(), l = e.substring(r + t.length).trim();
|
|
96
|
+
if (!o || !l) return;
|
|
97
|
+
const c = O(o, T, /* @__PURE__ */ new Date()), a = O(l, T, /* @__PURE__ */ new Date());
|
|
98
|
+
if ($(c) && $(a))
|
|
99
|
+
return { from: c, to: a };
|
|
100
100
|
}, z = (e, t) => {
|
|
101
101
|
if (e)
|
|
102
|
-
return t === "single" ?
|
|
103
|
-
},
|
|
104
|
-
const [
|
|
102
|
+
return t === "single" ? We(e) : je(e);
|
|
103
|
+
}, Fe = (e, t) => {
|
|
104
|
+
const [r, o] = P(/* @__PURE__ */ new Date());
|
|
105
105
|
return {
|
|
106
106
|
month: F(() => {
|
|
107
|
-
const
|
|
108
|
-
if (!
|
|
109
|
-
if (t === "single" &&
|
|
110
|
-
return
|
|
111
|
-
if (t === "range" && typeof
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
114
|
-
return
|
|
115
|
-
if (
|
|
116
|
-
return
|
|
107
|
+
const a = z(e, t);
|
|
108
|
+
if (!a) return r;
|
|
109
|
+
if (t === "single" && a instanceof Date)
|
|
110
|
+
return a;
|
|
111
|
+
if (t === "range" && typeof a == "object" && "from" in a) {
|
|
112
|
+
const i = a;
|
|
113
|
+
if (i.from)
|
|
114
|
+
return i.from;
|
|
115
|
+
if (i.to)
|
|
116
|
+
return i.to;
|
|
117
117
|
}
|
|
118
|
-
return
|
|
119
|
-
}, [e, t,
|
|
120
|
-
setMonth: (
|
|
121
|
-
|
|
118
|
+
return r;
|
|
119
|
+
}, [e, t, r]),
|
|
120
|
+
setMonth: (a) => {
|
|
121
|
+
o(a);
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
|
-
},
|
|
125
|
-
container:
|
|
126
|
-
label:
|
|
127
|
-
select:
|
|
128
|
-
trigger:
|
|
129
|
-
triggerOpen:
|
|
130
|
-
placeholder:
|
|
131
|
-
selectedContent:
|
|
132
|
-
optionIcon:
|
|
133
|
-
arrow:
|
|
134
|
-
open:
|
|
135
|
-
dropdown:
|
|
136
|
-
option:
|
|
137
|
-
selected:
|
|
138
|
-
},
|
|
139
|
-
const { className: t, disabled:
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
|
|
124
|
+
}, Ge = "_container_15bt3_1", Ve = "_label_15bt3_7", qe = "_select_15bt3_14", He = "_trigger_15bt3_19", Ke = "_triggerOpen_15bt3_46", Xe = "_placeholder_15bt3_67", Ye = "_selectedContent_15bt3_71", ze = "_optionIcon_15bt3_81", Je = "_arrow_15bt3_87", Qe = "_open_15bt3_98", Ue = "_dropdown_15bt3_102", Ze = "_option_15bt3_81", et = "_selected_15bt3_71", g = {
|
|
125
|
+
container: Ge,
|
|
126
|
+
label: Ve,
|
|
127
|
+
select: qe,
|
|
128
|
+
trigger: He,
|
|
129
|
+
triggerOpen: Ke,
|
|
130
|
+
placeholder: Xe,
|
|
131
|
+
selectedContent: Ye,
|
|
132
|
+
optionIcon: ze,
|
|
133
|
+
arrow: Je,
|
|
134
|
+
open: Qe,
|
|
135
|
+
dropdown: Ue,
|
|
136
|
+
option: Ze,
|
|
137
|
+
selected: et
|
|
138
|
+
}, tt = (e) => {
|
|
139
|
+
const { className: t, disabled: r = !1, label: o, onChange: l, options: c, placeholder: a, value: i } = e, [d, h] = P(!1), v = G(null), _ = c.find((p) => p.value === i), f = () => {
|
|
140
|
+
r || h(!d);
|
|
141
|
+
}, b = (p) => {
|
|
142
|
+
l?.(p), h(!1);
|
|
143
143
|
};
|
|
144
|
-
return
|
|
145
|
-
const p = (
|
|
146
|
-
v.current && !v.current.contains(
|
|
144
|
+
return x(() => {
|
|
145
|
+
const p = (k) => {
|
|
146
|
+
v.current && !v.current.contains(k.target) && h(!1);
|
|
147
147
|
};
|
|
148
148
|
return d && document.addEventListener("mousedown", p), () => {
|
|
149
149
|
document.removeEventListener("mousedown", p);
|
|
150
150
|
};
|
|
151
|
-
}, [d]), /* @__PURE__ */
|
|
152
|
-
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
151
|
+
}, [d]), /* @__PURE__ */ u("div", { className: w(g.container, t), children: [
|
|
152
|
+
o && /* @__PURE__ */ n("label", { className: g.label, children: o }),
|
|
153
|
+
/* @__PURE__ */ u("div", { className: g.select, ref: v, children: [
|
|
154
|
+
/* @__PURE__ */ u(
|
|
155
155
|
"button",
|
|
156
156
|
{
|
|
157
|
-
className: g
|
|
158
|
-
disabled:
|
|
159
|
-
onClick:
|
|
157
|
+
className: w(g.trigger, d && g.triggerOpen),
|
|
158
|
+
disabled: r,
|
|
159
|
+
onClick: f,
|
|
160
160
|
type: "button",
|
|
161
161
|
"aria-haspopup": "listbox",
|
|
162
162
|
"aria-expanded": d,
|
|
163
163
|
children: [
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
/* @__PURE__ */ u("span", { className: _ ? g.selectedContent : g.placeholder, children: [
|
|
165
|
+
_?.icon && /* @__PURE__ */ n("span", { className: g.optionIcon, children: _.icon }),
|
|
166
|
+
_ ? _.label : a || "Select an option"
|
|
167
167
|
] }),
|
|
168
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ n("span", { className: w(g.arrow, d && g.open), children: /* @__PURE__ */ n(ne, {}) })
|
|
169
169
|
]
|
|
170
170
|
}
|
|
171
171
|
),
|
|
172
|
-
d && /* @__PURE__ */
|
|
172
|
+
d && /* @__PURE__ */ n(U, { className: g.dropdown, role: "listbox", style: { maxHeight: 191 }, children: c.map((p) => /* @__PURE__ */ u(
|
|
173
173
|
"button",
|
|
174
174
|
{
|
|
175
|
-
className: g
|
|
176
|
-
onClick: () =>
|
|
175
|
+
className: w(g.option, p.value === i && g.selected),
|
|
176
|
+
onClick: () => b(p.value),
|
|
177
177
|
type: "button",
|
|
178
178
|
role: "option",
|
|
179
|
-
"aria-selected": p.value ===
|
|
179
|
+
"aria-selected": p.value === i,
|
|
180
180
|
children: [
|
|
181
|
-
p.icon && /* @__PURE__ */
|
|
181
|
+
p.icon && /* @__PURE__ */ n("span", { className: g.optionIcon, children: p.icon }),
|
|
182
182
|
p.label
|
|
183
183
|
]
|
|
184
184
|
},
|
|
@@ -187,396 +187,469 @@ const Vt = (e) => {
|
|
|
187
187
|
] })
|
|
188
188
|
] });
|
|
189
189
|
}, J = (e) => {
|
|
190
|
-
const t = (
|
|
190
|
+
const t = (o) => {
|
|
191
191
|
if (e.onChange) {
|
|
192
|
-
const
|
|
192
|
+
const l = {
|
|
193
193
|
target: {
|
|
194
|
-
value:
|
|
194
|
+
value: o
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
-
e.onChange(
|
|
197
|
+
e.onChange(l);
|
|
198
198
|
}
|
|
199
|
-
},
|
|
200
|
-
value:
|
|
201
|
-
label:
|
|
199
|
+
}, r = e.options?.map((o) => ({
|
|
200
|
+
value: o.value.toString(),
|
|
201
|
+
label: o.label
|
|
202
202
|
})) || [];
|
|
203
|
-
return /* @__PURE__ */
|
|
204
|
-
|
|
203
|
+
return /* @__PURE__ */ n(
|
|
204
|
+
tt,
|
|
205
205
|
{
|
|
206
206
|
className: e.className,
|
|
207
|
-
options:
|
|
207
|
+
options: r,
|
|
208
208
|
value: e.value?.toString() || "",
|
|
209
209
|
onChange: t
|
|
210
210
|
}
|
|
211
211
|
);
|
|
212
212
|
};
|
|
213
213
|
J.displayName = "DatePickerDropdown";
|
|
214
|
-
const
|
|
215
|
-
month_caption:
|
|
216
|
-
button_previous:
|
|
217
|
-
button_next:
|
|
218
|
-
chevron:
|
|
219
|
-
caption_label:
|
|
220
|
-
dropdowns:
|
|
221
|
-
dropdown_root:
|
|
222
|
-
dropdown:
|
|
223
|
-
dropdown_select_option:
|
|
224
|
-
months_dropdown:
|
|
225
|
-
years_dropdown:
|
|
226
|
-
month_grid:
|
|
227
|
-
weekday:
|
|
228
|
-
day_button:
|
|
229
|
-
day:
|
|
230
|
-
outside:
|
|
231
|
-
selected:
|
|
232
|
-
range_start:
|
|
233
|
-
range_middle:
|
|
234
|
-
range_end:
|
|
235
|
-
today:
|
|
236
|
-
},
|
|
214
|
+
const nt = {
|
|
215
|
+
month_caption: s.monthsCaption,
|
|
216
|
+
button_previous: s.navButtonPrevious,
|
|
217
|
+
button_next: s.navButtonNext,
|
|
218
|
+
chevron: s.navIcon,
|
|
219
|
+
caption_label: s.captionLabel,
|
|
220
|
+
dropdowns: s.dropdowns,
|
|
221
|
+
dropdown_root: s.dropdown_root,
|
|
222
|
+
dropdown: s.dropdown,
|
|
223
|
+
dropdown_select_option: s.option,
|
|
224
|
+
months_dropdown: s.monthsDropdown,
|
|
225
|
+
years_dropdown: s.yearsDropdown,
|
|
226
|
+
month_grid: s.monthGrid,
|
|
227
|
+
weekday: s.weekday,
|
|
228
|
+
day_button: s.dayButton,
|
|
229
|
+
day: s.day,
|
|
230
|
+
outside: s.dayOutside,
|
|
231
|
+
selected: s.daySelected,
|
|
232
|
+
range_start: s.dayRangeStart,
|
|
233
|
+
range_middle: s.dayRangeMiddle,
|
|
234
|
+
range_end: s.dayRangeEnd,
|
|
235
|
+
today: s.dayToday
|
|
236
|
+
}, ot = {
|
|
237
237
|
Dropdown: J
|
|
238
|
-
},
|
|
238
|
+
}, rt = {
|
|
239
239
|
weekStartsOn: 1,
|
|
240
240
|
showOutsideDays: !0,
|
|
241
241
|
reverseYears: !0,
|
|
242
242
|
captionLayout: "dropdown"
|
|
243
|
-
},
|
|
244
|
-
components:
|
|
245
|
-
...
|
|
246
|
-
},
|
|
247
|
-
...
|
|
243
|
+
}, at = {
|
|
244
|
+
components: ot,
|
|
245
|
+
...rt
|
|
246
|
+
}, st = (e) => ({
|
|
247
|
+
...at,
|
|
248
248
|
classNames: {
|
|
249
|
-
root: j(
|
|
250
|
-
...
|
|
249
|
+
root: j(s.calendar, e && s.open),
|
|
250
|
+
...nt
|
|
251
251
|
}
|
|
252
|
-
}),
|
|
252
|
+
}), L = "dd.MM.yyyy", ct = (e) => e ? M(e, L) : "", it = (e) => !e || !e.from ? "" : e.to && e.from.getTime() !== e.to.getTime() ? `${M(e.from, L)} - ${M(e.to, L)}` : M(e.from, L), H = (e, t) => e ? t === "single" && e instanceof Date ? ct(e) : t === "range" && typeof e == "object" && "from" in e ? it(e) : "" : "", lt = ({
|
|
253
253
|
value: e,
|
|
254
254
|
mode: t,
|
|
255
|
-
onChange:
|
|
256
|
-
setMonth:
|
|
257
|
-
setIsOpen:
|
|
255
|
+
onChange: r,
|
|
256
|
+
setMonth: o,
|
|
257
|
+
setIsOpen: l
|
|
258
258
|
}) => {
|
|
259
259
|
if (!e) {
|
|
260
|
-
|
|
260
|
+
r("");
|
|
261
261
|
return;
|
|
262
262
|
}
|
|
263
263
|
if (t === "single") {
|
|
264
|
-
e instanceof Date && (
|
|
264
|
+
e instanceof Date && (o(e), r(H(e, "single")), l(!1));
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
267
|
if (t === "range" && typeof e == "object" && "from" in e) {
|
|
268
268
|
const c = e;
|
|
269
|
-
c.from ?
|
|
270
|
-
const
|
|
271
|
-
|
|
269
|
+
c.from ? o(c.from) : c.to && o(c.to);
|
|
270
|
+
const a = H(c, "range");
|
|
271
|
+
r(a), c.from && c.to && c.from.getTime() !== c.to.getTime() && l(!1);
|
|
272
272
|
}
|
|
273
|
-
},
|
|
273
|
+
}, dt = (e, t, r) => {
|
|
274
274
|
if (e) {
|
|
275
275
|
if (t === "single" && e instanceof Date) {
|
|
276
|
-
|
|
276
|
+
r(e);
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
279
|
if (t === "range" && typeof e == "object" && "from" in e) {
|
|
280
|
-
const
|
|
281
|
-
|
|
280
|
+
const o = e;
|
|
281
|
+
o.from ? r(o.from) : o.to && r(o.to);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
},
|
|
284
|
+
}, rn = ({
|
|
285
285
|
mode: e,
|
|
286
286
|
value: t,
|
|
287
|
-
onChange:
|
|
288
|
-
disabled:
|
|
289
|
-
label:
|
|
287
|
+
onChange: r,
|
|
288
|
+
disabled: o,
|
|
289
|
+
label: l,
|
|
290
290
|
error: c,
|
|
291
|
-
placeholder:
|
|
292
|
-
...
|
|
291
|
+
placeholder: a,
|
|
292
|
+
...i
|
|
293
293
|
}) => {
|
|
294
|
-
const [d,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}, [
|
|
298
|
-
|
|
294
|
+
const [d, h] = P(!1), v = G(null), { month: _, setMonth: f } = Fe(t, e), b = F(() => z(t, e), [t, e]);
|
|
295
|
+
x(() => {
|
|
296
|
+
dt(b, e, f);
|
|
297
|
+
}, [b, e, f]), Ae({ ref: v, isOpen: d, onDismiss: () => {
|
|
298
|
+
h(!1);
|
|
299
299
|
} });
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
},
|
|
303
|
-
|
|
304
|
-
},
|
|
305
|
-
const Q =
|
|
306
|
-
|
|
307
|
-
},
|
|
308
|
-
|
|
309
|
-
value:
|
|
300
|
+
const k = (I) => {
|
|
301
|
+
I.stopPropagation(), D(void 0);
|
|
302
|
+
}, N = () => {
|
|
303
|
+
o || h((I) => !I);
|
|
304
|
+
}, m = (I) => {
|
|
305
|
+
const Q = I.currentTarget.value;
|
|
306
|
+
r(Q);
|
|
307
|
+
}, D = (I) => {
|
|
308
|
+
lt({
|
|
309
|
+
value: I,
|
|
310
310
|
mode: e,
|
|
311
|
-
onChange:
|
|
312
|
-
setMonth:
|
|
313
|
-
setIsOpen:
|
|
311
|
+
onChange: r,
|
|
312
|
+
setMonth: f,
|
|
313
|
+
setIsOpen: h
|
|
314
314
|
});
|
|
315
|
-
},
|
|
316
|
-
return /* @__PURE__ */
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */
|
|
315
|
+
}, R = F(() => st(d), [d]);
|
|
316
|
+
return /* @__PURE__ */ u("div", { ref: v, className: s.wrapper, children: [
|
|
317
|
+
/* @__PURE__ */ u("div", { className: s.inputContainer, children: [
|
|
318
|
+
l && /* @__PURE__ */ n("span", { className: o ? s.disabledLabel : s.label, children: /* @__PURE__ */ n(V, { variant: "text-14", children: l }) }),
|
|
319
|
+
/* @__PURE__ */ u("div", { className: s.inputWrapper, children: [
|
|
320
|
+
/* @__PURE__ */ n(
|
|
321
321
|
"input",
|
|
322
322
|
{
|
|
323
323
|
type: "text",
|
|
324
|
-
className: j(
|
|
325
|
-
onClick:
|
|
324
|
+
className: j(s.trigger, c && s.error),
|
|
325
|
+
onClick: N,
|
|
326
326
|
value: t,
|
|
327
|
-
onChange:
|
|
328
|
-
placeholder:
|
|
329
|
-
disabled:
|
|
330
|
-
"aria-label":
|
|
327
|
+
onChange: m,
|
|
328
|
+
placeholder: a,
|
|
329
|
+
disabled: o,
|
|
330
|
+
"aria-label": l || "Select date",
|
|
331
331
|
"aria-expanded": d,
|
|
332
332
|
"aria-haspopup": "dialog",
|
|
333
333
|
"aria-invalid": c ? "true" : "false",
|
|
334
|
-
...
|
|
334
|
+
...i
|
|
335
335
|
}
|
|
336
336
|
),
|
|
337
|
-
t && !
|
|
337
|
+
t && !o && /* @__PURE__ */ n(
|
|
338
338
|
"button",
|
|
339
339
|
{
|
|
340
340
|
type: "button",
|
|
341
|
-
className:
|
|
342
|
-
onClick:
|
|
341
|
+
className: s.clearButton,
|
|
342
|
+
onClick: k,
|
|
343
343
|
"aria-label": "Clear date",
|
|
344
|
-
children: /* @__PURE__ */
|
|
344
|
+
children: /* @__PURE__ */ n(Y, { className: s.clearIcon })
|
|
345
345
|
}
|
|
346
346
|
),
|
|
347
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ n(oe, { className: j(s.icon, !t && s.placeholder) })
|
|
348
348
|
] }),
|
|
349
|
-
c && /* @__PURE__ */
|
|
349
|
+
c && /* @__PURE__ */ n(V, { variant: "small", className: s.error, children: c })
|
|
350
350
|
] }),
|
|
351
|
-
e === "single" ? /* @__PURE__ */
|
|
352
|
-
|
|
351
|
+
e === "single" ? /* @__PURE__ */ n(
|
|
352
|
+
q,
|
|
353
353
|
{
|
|
354
|
-
...
|
|
355
|
-
month:
|
|
356
|
-
onMonthChange:
|
|
354
|
+
...R,
|
|
355
|
+
month: _,
|
|
356
|
+
onMonthChange: f,
|
|
357
357
|
mode: "single",
|
|
358
|
-
selected:
|
|
359
|
-
onSelect:
|
|
358
|
+
selected: b instanceof Date ? b : void 0,
|
|
359
|
+
onSelect: D
|
|
360
360
|
}
|
|
361
|
-
) : /* @__PURE__ */
|
|
362
|
-
|
|
361
|
+
) : /* @__PURE__ */ n(
|
|
362
|
+
q,
|
|
363
363
|
{
|
|
364
|
-
...
|
|
365
|
-
month:
|
|
366
|
-
onMonthChange:
|
|
364
|
+
...R,
|
|
365
|
+
month: _,
|
|
366
|
+
onMonthChange: f,
|
|
367
367
|
mode: "range",
|
|
368
|
-
selected:
|
|
369
|
-
onSelect:
|
|
368
|
+
selected: b && typeof b == "object" && "from" in b ? b : void 0,
|
|
369
|
+
onSelect: D
|
|
370
370
|
}
|
|
371
371
|
)
|
|
372
372
|
] });
|
|
373
|
-
},
|
|
374
|
-
content:
|
|
375
|
-
item:
|
|
376
|
-
icon:
|
|
377
|
-
label:
|
|
378
|
-
},
|
|
379
|
-
const { children: t, items:
|
|
380
|
-
return /* @__PURE__ */
|
|
381
|
-
/* @__PURE__ */
|
|
382
|
-
/* @__PURE__ */
|
|
373
|
+
}, pt = "_content_1bas8_1", _t = "_item_1bas8_24", mt = "_icon_1bas8_56", ut = "_label_1bas8_62", B = {
|
|
374
|
+
content: pt,
|
|
375
|
+
item: _t,
|
|
376
|
+
icon: mt,
|
|
377
|
+
label: ut
|
|
378
|
+
}, an = (e) => {
|
|
379
|
+
const { children: t, items: r, className: o, align: l = "end", side: c = "bottom" } = e;
|
|
380
|
+
return /* @__PURE__ */ u(S.Root, { children: [
|
|
381
|
+
/* @__PURE__ */ n(S.Trigger, { asChild: !0, children: t }),
|
|
382
|
+
/* @__PURE__ */ n(S.Portal, { children: /* @__PURE__ */ n(
|
|
383
383
|
S.Content,
|
|
384
384
|
{
|
|
385
|
-
align:
|
|
386
|
-
className:
|
|
385
|
+
align: l,
|
|
386
|
+
className: w(B.content, o),
|
|
387
387
|
side: c,
|
|
388
388
|
sideOffset: 4,
|
|
389
|
-
children:
|
|
389
|
+
children: r.map((a, i) => /* @__PURE__ */ u(
|
|
390
390
|
S.Item,
|
|
391
391
|
{
|
|
392
|
-
className:
|
|
393
|
-
disabled:
|
|
394
|
-
onSelect:
|
|
392
|
+
className: B.item,
|
|
393
|
+
disabled: a.disabled,
|
|
394
|
+
onSelect: a.onSelect,
|
|
395
395
|
children: [
|
|
396
|
-
|
|
397
|
-
/* @__PURE__ */
|
|
396
|
+
a.icon && /* @__PURE__ */ n("span", { className: B.icon, children: a.icon }),
|
|
397
|
+
/* @__PURE__ */ n("span", { className: B.label, children: a.label })
|
|
398
398
|
]
|
|
399
399
|
},
|
|
400
|
-
|
|
400
|
+
i
|
|
401
401
|
))
|
|
402
402
|
}
|
|
403
403
|
) })
|
|
404
404
|
] });
|
|
405
|
-
},
|
|
406
|
-
wrapper:
|
|
407
|
-
label:
|
|
408
|
-
disabled:
|
|
409
|
-
inputContainer:
|
|
410
|
-
input:
|
|
411
|
-
error:
|
|
412
|
-
withStartIcon:
|
|
413
|
-
withEndIcon:
|
|
414
|
-
startIcon:
|
|
415
|
-
endIcon:
|
|
416
|
-
errorMessage:
|
|
417
|
-
required:
|
|
418
|
-
},
|
|
405
|
+
}, ft = "_wrapper_1i0po_1", ht = "_label_1i0po_7", bt = "_disabled_1i0po_14", gt = "_inputContainer_1i0po_18", yt = "_input_1i0po_18", wt = "_error_1i0po_51", vt = "_withStartIcon_1i0po_64", Nt = "_withEndIcon_1i0po_68", Ct = "_startIcon_1i0po_72", It = "_endIcon_1i0po_73", kt = "_errorMessage_1i0po_115", Dt = "_required_1i0po_122", y = {
|
|
406
|
+
wrapper: ft,
|
|
407
|
+
label: ht,
|
|
408
|
+
disabled: bt,
|
|
409
|
+
inputContainer: gt,
|
|
410
|
+
input: yt,
|
|
411
|
+
error: wt,
|
|
412
|
+
withStartIcon: vt,
|
|
413
|
+
withEndIcon: Nt,
|
|
414
|
+
startIcon: Ct,
|
|
415
|
+
endIcon: It,
|
|
416
|
+
errorMessage: kt,
|
|
417
|
+
required: Dt
|
|
418
|
+
}, xt = ee(
|
|
419
419
|
({
|
|
420
420
|
label: e,
|
|
421
421
|
errorMessage: t,
|
|
422
|
-
startIcon:
|
|
423
|
-
endIcon:
|
|
424
|
-
onEndIconClick:
|
|
422
|
+
startIcon: r,
|
|
423
|
+
endIcon: o,
|
|
424
|
+
onEndIconClick: l,
|
|
425
425
|
allowPasswordToggle: c,
|
|
426
|
-
disabled:
|
|
427
|
-
type:
|
|
426
|
+
disabled: a,
|
|
427
|
+
type: i = "text",
|
|
428
428
|
className: d,
|
|
429
|
-
required:
|
|
429
|
+
required: h,
|
|
430
430
|
id: v,
|
|
431
|
-
...
|
|
432
|
-
},
|
|
433
|
-
const
|
|
434
|
-
return /* @__PURE__ */
|
|
435
|
-
e && /* @__PURE__ */
|
|
431
|
+
..._
|
|
432
|
+
}, f) => {
|
|
433
|
+
const b = X(), p = v ?? b, k = t ? `${p}-error` : void 0, N = !!t, m = i === "password" && c, [D, R] = P(!1);
|
|
434
|
+
return /* @__PURE__ */ u("div", { className: w(y.wrapper, d), children: [
|
|
435
|
+
e && /* @__PURE__ */ u("label", { htmlFor: p, className: w(y.label, { [y.disabled]: a }), children: [
|
|
436
436
|
e,
|
|
437
|
-
|
|
437
|
+
h && /* @__PURE__ */ n("sup", { className: y.required, children: " *" })
|
|
438
438
|
] }),
|
|
439
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ u(
|
|
440
440
|
"div",
|
|
441
441
|
{
|
|
442
|
-
className:
|
|
443
|
-
[
|
|
444
|
-
[
|
|
445
|
-
[
|
|
446
|
-
[
|
|
442
|
+
className: w(y.inputContainer, {
|
|
443
|
+
[y.error]: N,
|
|
444
|
+
[y.disabled]: a,
|
|
445
|
+
[y.withStartIcon]: !!r,
|
|
446
|
+
[y.withEndIcon]: !!o || m
|
|
447
447
|
}),
|
|
448
448
|
children: [
|
|
449
|
-
|
|
450
|
-
/* @__PURE__ */
|
|
449
|
+
r && /* @__PURE__ */ n("span", { className: y.startIcon, children: r }),
|
|
450
|
+
/* @__PURE__ */ n(
|
|
451
451
|
"input",
|
|
452
452
|
{
|
|
453
|
-
ref:
|
|
453
|
+
ref: f,
|
|
454
454
|
id: p,
|
|
455
|
-
className:
|
|
456
|
-
type:
|
|
457
|
-
autoComplete:
|
|
458
|
-
required:
|
|
459
|
-
disabled:
|
|
460
|
-
"aria-invalid":
|
|
461
|
-
"aria-describedby":
|
|
462
|
-
...
|
|
455
|
+
className: y.input,
|
|
456
|
+
type: m && D ? "text" : i,
|
|
457
|
+
autoComplete: i === "password" ? "current-password" : "off",
|
|
458
|
+
required: h,
|
|
459
|
+
disabled: a,
|
|
460
|
+
"aria-invalid": N,
|
|
461
|
+
"aria-describedby": k,
|
|
462
|
+
..._
|
|
463
463
|
}
|
|
464
464
|
),
|
|
465
|
-
|
|
465
|
+
m && /* @__PURE__ */ n(
|
|
466
466
|
"button",
|
|
467
467
|
{
|
|
468
468
|
type: "button",
|
|
469
|
-
className:
|
|
470
|
-
onClick: () =>
|
|
471
|
-
"aria-label":
|
|
472
|
-
disabled:
|
|
469
|
+
className: y.endIcon,
|
|
470
|
+
onClick: () => R((I) => !I),
|
|
471
|
+
"aria-label": D ? "Hide password" : "Show password",
|
|
472
|
+
disabled: a,
|
|
473
473
|
tabIndex: -1,
|
|
474
|
-
children:
|
|
474
|
+
children: D ? /* @__PURE__ */ n(re, {}) : /* @__PURE__ */ n(ae, {})
|
|
475
475
|
}
|
|
476
476
|
),
|
|
477
|
-
|
|
477
|
+
o && !m && /* @__PURE__ */ n(
|
|
478
478
|
"button",
|
|
479
479
|
{
|
|
480
480
|
type: "button",
|
|
481
|
-
className:
|
|
482
|
-
onClick:
|
|
481
|
+
className: y.endIcon,
|
|
482
|
+
onClick: l,
|
|
483
483
|
"aria-label": "Action",
|
|
484
|
-
disabled:
|
|
485
|
-
children:
|
|
484
|
+
disabled: a,
|
|
485
|
+
children: o
|
|
486
486
|
}
|
|
487
487
|
)
|
|
488
488
|
]
|
|
489
489
|
}
|
|
490
490
|
),
|
|
491
|
-
|
|
491
|
+
N && /* @__PURE__ */ n("span", { id: k, className: y.errorMessage, role: "alert", children: t })
|
|
492
492
|
] });
|
|
493
493
|
}
|
|
494
494
|
);
|
|
495
|
-
|
|
496
|
-
const
|
|
497
|
-
overlay:
|
|
498
|
-
modal:
|
|
499
|
-
header:
|
|
500
|
-
title:
|
|
501
|
-
close:
|
|
502
|
-
body:
|
|
503
|
-
},
|
|
504
|
-
const c =
|
|
505
|
-
if (
|
|
506
|
-
|
|
507
|
-
}, [t]),
|
|
495
|
+
xt.displayName = "Input";
|
|
496
|
+
const Et = "_overlay_17k3a_1", St = "_modal_17k3a_15", Pt = "_header_17k3a_29", Rt = "_title_17k3a_39", Bt = "_close_17k3a_52", Ot = "_body_17k3a_79", E = {
|
|
497
|
+
overlay: Et,
|
|
498
|
+
modal: St,
|
|
499
|
+
header: Pt,
|
|
500
|
+
title: Rt,
|
|
501
|
+
close: Bt,
|
|
502
|
+
body: Ot
|
|
503
|
+
}, sn = ({ open: e, onClose: t, title: r, children: o, className: l }) => {
|
|
504
|
+
const c = X(), a = G(t);
|
|
505
|
+
if (x(() => {
|
|
506
|
+
a.current = t;
|
|
507
|
+
}, [t]), x(() => {
|
|
508
508
|
if (e)
|
|
509
509
|
return document.body.style.overflow = "hidden", () => {
|
|
510
510
|
document.body.style.overflow = "";
|
|
511
511
|
};
|
|
512
|
-
}, [e]),
|
|
512
|
+
}, [e]), x(() => {
|
|
513
513
|
if (!e) return;
|
|
514
|
-
const d = (
|
|
515
|
-
|
|
514
|
+
const d = (h) => {
|
|
515
|
+
h.key === "Escape" && a.current();
|
|
516
516
|
};
|
|
517
517
|
return document.addEventListener("keydown", d), () => {
|
|
518
518
|
document.removeEventListener("keydown", d);
|
|
519
519
|
};
|
|
520
520
|
}, [e]), !e || typeof document > "u") return null;
|
|
521
|
-
const
|
|
522
|
-
return
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
|
|
521
|
+
const i = document.getElementById("modal-root") ?? document.body;
|
|
522
|
+
return ie(
|
|
523
|
+
/* @__PURE__ */ n(
|
|
524
|
+
le,
|
|
525
525
|
{
|
|
526
526
|
active: e,
|
|
527
527
|
focusTrapOptions: {
|
|
528
528
|
clickOutsideDeactivates: !0,
|
|
529
529
|
returnFocusOnDeactivate: !0
|
|
530
530
|
},
|
|
531
|
-
children: /* @__PURE__ */
|
|
531
|
+
children: /* @__PURE__ */ n("div", { className: E.overlay, onClick: () => a.current(), children: /* @__PURE__ */ u(
|
|
532
532
|
"div",
|
|
533
533
|
{
|
|
534
|
-
className:
|
|
534
|
+
className: w(E.modal, l),
|
|
535
535
|
onClick: (d) => d.stopPropagation(),
|
|
536
536
|
role: "dialog",
|
|
537
537
|
"aria-modal": "true",
|
|
538
538
|
"aria-labelledby": c,
|
|
539
539
|
children: [
|
|
540
|
-
/* @__PURE__ */
|
|
541
|
-
/* @__PURE__ */
|
|
542
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ u("header", { className: E.header, children: [
|
|
541
|
+
/* @__PURE__ */ n("h2", { id: c, className: E.title, children: r }),
|
|
542
|
+
/* @__PURE__ */ n(
|
|
543
543
|
"button",
|
|
544
544
|
{
|
|
545
545
|
type: "button",
|
|
546
|
-
className:
|
|
546
|
+
className: E.close,
|
|
547
547
|
"aria-label": "Close modal",
|
|
548
|
-
onClick: () =>
|
|
549
|
-
children: /* @__PURE__ */
|
|
548
|
+
onClick: () => a.current(),
|
|
549
|
+
children: /* @__PURE__ */ n(Y, {})
|
|
550
550
|
}
|
|
551
551
|
)
|
|
552
552
|
] }),
|
|
553
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ n("div", { className: E.body, children: o })
|
|
554
554
|
]
|
|
555
555
|
}
|
|
556
556
|
) })
|
|
557
557
|
}
|
|
558
558
|
),
|
|
559
|
-
|
|
559
|
+
i
|
|
560
|
+
);
|
|
561
|
+
}, $t = "_root_ggtcs_1", Mt = "_trackWrapper_ggtcs_16", Tt = "_track_ggtcs_16", Lt = "_slide_ggtcs_32", At = "_arrow_ggtcs_56", Wt = "_arrowPrev_ggtcs_98", jt = "_arrowNext_ggtcs_102", Ft = "_dots_ggtcs_107", Gt = "_dot_ggtcs_107", Vt = "_dotActive_ggtcs_143", C = {
|
|
562
|
+
root: $t,
|
|
563
|
+
trackWrapper: Mt,
|
|
564
|
+
track: Tt,
|
|
565
|
+
slide: Lt,
|
|
566
|
+
arrow: At,
|
|
567
|
+
arrowPrev: Wt,
|
|
568
|
+
arrowNext: jt,
|
|
569
|
+
dots: Ft,
|
|
570
|
+
dot: Gt,
|
|
571
|
+
dotActive: Vt
|
|
572
|
+
}, cn = ({
|
|
573
|
+
children: e,
|
|
574
|
+
value: t,
|
|
575
|
+
onValueChange: r,
|
|
576
|
+
autoPlayInterval: o = 0,
|
|
577
|
+
className: l,
|
|
578
|
+
hideArrowsWhenSingle: c = !0
|
|
579
|
+
}) => {
|
|
580
|
+
const a = Array.isArray(e) ? e : [e], i = a.length, [d, h] = P(0), v = t !== void 0, _ = v ? Math.min(Math.max(0, t), i - 1) : d, f = te(
|
|
581
|
+
(N) => {
|
|
582
|
+
const m = (N + i) % i;
|
|
583
|
+
v || h(m), r?.(m);
|
|
584
|
+
},
|
|
585
|
+
[i, v, r]
|
|
560
586
|
);
|
|
587
|
+
if (x(() => {
|
|
588
|
+
if (o <= 0 || i <= 1) return;
|
|
589
|
+
const N = setInterval(() => f(_ + 1), o);
|
|
590
|
+
return () => clearInterval(N);
|
|
591
|
+
}, [o, i, _, f]), i === 0) return null;
|
|
592
|
+
const b = () => f(_ - 1), p = () => f(_ + 1), k = !c || i > 1;
|
|
593
|
+
return /* @__PURE__ */ u("div", { className: w(C.root, l), role: "region", "aria-label": "Carousel", children: [
|
|
594
|
+
/* @__PURE__ */ n("div", { className: C.trackWrapper, children: /* @__PURE__ */ n("div", { className: C.track, style: { transform: `translateX(-${_ * 100}%)` }, children: a.map((N, m) => /* @__PURE__ */ n("div", { className: C.slide, children: N }, m)) }) }),
|
|
595
|
+
k && /* @__PURE__ */ u(Z, { children: [
|
|
596
|
+
/* @__PURE__ */ n(
|
|
597
|
+
"button",
|
|
598
|
+
{
|
|
599
|
+
type: "button",
|
|
600
|
+
className: w(C.arrow, C.arrowPrev),
|
|
601
|
+
onClick: b,
|
|
602
|
+
"aria-label": "Previous slide",
|
|
603
|
+
tabIndex: 0,
|
|
604
|
+
children: /* @__PURE__ */ n(se, { width: 24, height: 24, "aria-hidden": !0 })
|
|
605
|
+
}
|
|
606
|
+
),
|
|
607
|
+
/* @__PURE__ */ n(
|
|
608
|
+
"button",
|
|
609
|
+
{
|
|
610
|
+
type: "button",
|
|
611
|
+
className: w(C.arrow, C.arrowNext),
|
|
612
|
+
onClick: p,
|
|
613
|
+
"aria-label": "Next slide",
|
|
614
|
+
tabIndex: 0,
|
|
615
|
+
children: /* @__PURE__ */ n(ce, { width: 24, height: 24, "aria-hidden": !0 })
|
|
616
|
+
}
|
|
617
|
+
)
|
|
618
|
+
] }),
|
|
619
|
+
i > 1 && /* @__PURE__ */ n("div", { className: C.dots, role: "tablist", "aria-label": "Slide selection", children: a.map((N, m) => /* @__PURE__ */ n(
|
|
620
|
+
"button",
|
|
621
|
+
{
|
|
622
|
+
type: "button",
|
|
623
|
+
role: "tab",
|
|
624
|
+
"aria-selected": m === _,
|
|
625
|
+
"aria-label": `Slide ${m + 1}`,
|
|
626
|
+
className: w(C.dot, m === _ && C.dotActive),
|
|
627
|
+
onClick: () => f(m),
|
|
628
|
+
tabIndex: m === _ ? 0 : -1
|
|
629
|
+
},
|
|
630
|
+
m
|
|
631
|
+
)) })
|
|
632
|
+
] });
|
|
561
633
|
};
|
|
562
634
|
export {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
635
|
+
K as Alert,
|
|
636
|
+
fn as Button,
|
|
637
|
+
hn as Card,
|
|
638
|
+
cn as Carousel,
|
|
639
|
+
bn as Checkbox,
|
|
640
|
+
rn as DatePicker,
|
|
641
|
+
an as DropdownMenu,
|
|
642
|
+
xt as Input,
|
|
643
|
+
gn as Label,
|
|
644
|
+
sn as Modal,
|
|
645
|
+
yn as Radio,
|
|
646
|
+
tt as Select,
|
|
647
|
+
mn as SimpleBar,
|
|
648
|
+
wn as Tab,
|
|
649
|
+
vn as Textarea,
|
|
650
|
+
V as Typography,
|
|
651
|
+
pn as clsx,
|
|
652
|
+
on as toastError,
|
|
653
|
+
nn as toastSuccess
|
|
581
654
|
};
|
|
582
655
|
//# sourceMappingURL=index.client.js.map
|