am-shared-assets 1.0.11 → 1.0.13
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/{ChevronBottomIcon-BM6pUrh1.js → CheckIcon-DOBPX5J0.js} +43 -23
- package/dist/components/Checkbox.d.ts +9 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components.js +239 -229
- package/dist/icons/components/BatteryIcon.d.ts +5 -0
- package/dist/icons/components/CheckIcon.d.ts +5 -0
- package/dist/icons/components/EnergyGradeIcon.d.ts +5 -0
- package/dist/icons/components/FlakeIcon.d.ts +5 -0
- package/dist/icons/components/MobileScreenIcon.d.ts +5 -0
- package/dist/icons/components/PhoneSizeIcon.d.ts +5 -0
- package/dist/icons/components/ProcessorIcon.d.ts +5 -0
- package/dist/icons/components/RamIcon.d.ts +5 -0
- package/dist/icons/components/ResolutionIcon.d.ts +5 -0
- package/dist/icons/components/RulerPenIcon.d.ts +5 -0
- package/dist/icons/components/ScreenIcon.d.ts +5 -0
- package/dist/icons/components/SpeakerIcon.d.ts +5 -0
- package/dist/icons/components/TVScreenIcon.d.ts +5 -0
- package/dist/icons/components/essetional/TrashBoldIcon.d.ts +5 -0
- package/dist/icons/components/essetional/TrashBrokenIcon.d.ts +5 -0
- package/dist/icons/components/essetional/TrashBulkIcon.d.ts +5 -0
- package/dist/icons/components/essetional/TrashLinearIcon.d.ts +5 -0
- package/dist/icons/components/essetional/TrashOutlineIcon.d.ts +5 -0
- package/dist/icons/components/essetional/TrashTwotoneIcon.d.ts +5 -0
- package/dist/icons/components/essetional/index.d.ts +27 -0
- package/dist/icons/index.d.ts +14 -1
- package/dist/icons.js +498 -59
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { I as
|
|
3
|
-
import { Slider as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { jsxs as l, jsx as a, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import { I as z, c as S, b as W, W as q, T as V, a as G, C as J } from "./CheckIcon-DOBPX5J0.js";
|
|
3
|
+
import { Slider as K, MenuItem as Q } from "@mui/material";
|
|
4
|
+
import U from "@mui/material/Select";
|
|
5
|
+
import X from "@mui/material/Autocomplete";
|
|
6
6
|
import "react";
|
|
7
7
|
function L(t) {
|
|
8
|
-
var
|
|
9
|
-
if (typeof t == "string" || typeof t == "number")
|
|
8
|
+
var e, s, r = "";
|
|
9
|
+
if (typeof t == "string" || typeof t == "number") r += t;
|
|
10
10
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
11
11
|
var n = t.length;
|
|
12
|
-
for (
|
|
13
|
-
} else for (s in t) t[s] && (
|
|
14
|
-
return
|
|
12
|
+
for (e = 0; e < n; e++) t[e] && (s = L(t[e])) && (r && (r += " "), r += s);
|
|
13
|
+
} else for (s in t) t[s] && (r && (r += " "), r += s);
|
|
14
|
+
return r;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
for (var t,
|
|
18
|
-
return
|
|
16
|
+
function p() {
|
|
17
|
+
for (var t, e, s = 0, r = "", n = arguments.length; s < n; s++) (t = arguments[s]) && (e = L(t)) && (r && (r += " "), r += e);
|
|
18
|
+
return r;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const Z = {
|
|
21
21
|
sm: "text-xs",
|
|
22
22
|
md: "text-sm"
|
|
23
|
-
},
|
|
23
|
+
}, H = {
|
|
24
24
|
default: "w-[342px] min-w-[342px]",
|
|
25
25
|
full: "w-full"
|
|
26
|
-
},
|
|
26
|
+
}, ee = {
|
|
27
27
|
default: "bg-default-100",
|
|
28
28
|
primary: "bg-primary-50",
|
|
29
29
|
secondary: "bg-secondary-50",
|
|
30
30
|
success: "bg-success-50",
|
|
31
31
|
warning: "bg-warning-50",
|
|
32
32
|
danger: "bg-danger-50"
|
|
33
|
-
},
|
|
33
|
+
}, re = {
|
|
34
34
|
default: "text-default-900",
|
|
35
35
|
primary: "text-base-primary",
|
|
36
36
|
secondary: "text-base-secondary",
|
|
37
37
|
success: "text-base-success",
|
|
38
38
|
warning: "text-default-900",
|
|
39
39
|
danger: "text-base-danger"
|
|
40
|
-
},
|
|
40
|
+
}, se = {
|
|
41
41
|
default: "text-default-600",
|
|
42
42
|
primary: "text-base-primary",
|
|
43
43
|
secondary: "text-base-secondary",
|
|
44
44
|
success: "text-base-success",
|
|
45
45
|
warning: "text-default-600",
|
|
46
46
|
danger: "text-base-danger"
|
|
47
|
-
},
|
|
47
|
+
}, te = {
|
|
48
48
|
default: "bg-default-300",
|
|
49
49
|
primary: "bg-base-primary",
|
|
50
50
|
secondary: "bg-base-secondary",
|
|
51
51
|
success: "bg-base-success",
|
|
52
52
|
warning: "bg-base-warning",
|
|
53
53
|
danger: "bg-base-danger"
|
|
54
|
-
},
|
|
54
|
+
}, ae = {
|
|
55
55
|
white: "text-white",
|
|
56
56
|
black: "text-default-900"
|
|
57
57
|
}, A = {
|
|
@@ -75,65 +75,65 @@ const X = {
|
|
|
75
75
|
success: /* @__PURE__ */ a(V, { color: "#17C964", size: 24 }),
|
|
76
76
|
warning: /* @__PURE__ */ a(q, { color: "#F5A524", size: 24 }),
|
|
77
77
|
danger: /* @__PURE__ */ a(W, { color: "#F31260", size: 24 })
|
|
78
|
-
},
|
|
78
|
+
}, ne = {
|
|
79
79
|
none: "rounded-none",
|
|
80
80
|
sm: "rounded-md",
|
|
81
81
|
md: "rounded-xl",
|
|
82
82
|
lg: "rounded-[22px]",
|
|
83
83
|
full: "rounded-full"
|
|
84
|
-
},
|
|
84
|
+
}, Ge = ({
|
|
85
85
|
title: t,
|
|
86
|
-
description:
|
|
86
|
+
description: e,
|
|
87
87
|
color: s = "default",
|
|
88
|
-
size:
|
|
88
|
+
size: r = "md",
|
|
89
89
|
width: n = "default",
|
|
90
90
|
rounded: d = "none",
|
|
91
91
|
infoIconAlignment: o,
|
|
92
92
|
isInfoIcon: i = !0,
|
|
93
93
|
hasCloseButton: c = !0,
|
|
94
|
-
hasButton:
|
|
95
|
-
buttonTitle:
|
|
94
|
+
hasButton: u = !1,
|
|
95
|
+
buttonTitle: f,
|
|
96
96
|
buttonTextColor: m = "black",
|
|
97
97
|
buttonClickHandler: x,
|
|
98
98
|
closeAlertHandler: h,
|
|
99
99
|
children: b
|
|
100
100
|
}) => {
|
|
101
|
-
const g =
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
const g = p(
|
|
102
|
+
H[n],
|
|
103
|
+
Z[r],
|
|
104
|
+
ne[d],
|
|
105
|
+
ee[s]
|
|
106
106
|
);
|
|
107
|
-
return b ? /* @__PURE__ */
|
|
107
|
+
return b ? /* @__PURE__ */ l(
|
|
108
108
|
"div",
|
|
109
109
|
{
|
|
110
110
|
className: `flex p-3 ${g} ${o && M[o]}`,
|
|
111
111
|
children: [
|
|
112
|
-
/* @__PURE__ */ a("div", { className: "mt-[1px]", children: i || !$[s] ? /* @__PURE__ */ a(
|
|
112
|
+
/* @__PURE__ */ a("div", { className: "mt-[1px]", children: i || !$[s] ? /* @__PURE__ */ a(z, { color: B[s] }) : $[s] }),
|
|
113
113
|
b
|
|
114
114
|
]
|
|
115
115
|
}
|
|
116
|
-
) : /* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
116
|
+
) : /* @__PURE__ */ l("div", { className: `relative flex justify-between p-3 ${g}`, children: [
|
|
117
|
+
/* @__PURE__ */ l(
|
|
118
118
|
"div",
|
|
119
119
|
{
|
|
120
|
-
className: `flex ${o ? M[o] :
|
|
120
|
+
className: `flex ${o ? M[o] : u ? "items-center" : t && e ? "items-start" : "items-center"} gap-3`,
|
|
121
121
|
children: [
|
|
122
|
-
/* @__PURE__ */ a("div", { className: "mt-[1px]", children: i || !$[s] ? /* @__PURE__ */ a(
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
t && /* @__PURE__ */ a("h2", { className: `font-semibold ${
|
|
125
|
-
|
|
122
|
+
/* @__PURE__ */ a("div", { className: "mt-[1px]", children: i || !$[s] ? /* @__PURE__ */ a(z, { color: B[s] }) : $[s] }),
|
|
123
|
+
/* @__PURE__ */ l("div", { children: [
|
|
124
|
+
t && /* @__PURE__ */ a("h2", { className: `font-semibold ${re[s]}`, children: t }),
|
|
125
|
+
e && /* @__PURE__ */ a("p", { className: se[s], children: e })
|
|
126
126
|
] })
|
|
127
127
|
]
|
|
128
128
|
}
|
|
129
129
|
),
|
|
130
|
-
|
|
130
|
+
u ? /* @__PURE__ */ l("div", { className: "flex items-center", children: [
|
|
131
131
|
/* @__PURE__ */ a(
|
|
132
132
|
"button",
|
|
133
133
|
{
|
|
134
134
|
onClick: x,
|
|
135
|
-
className: `h-8 px-3 rounded-md ${
|
|
136
|
-
children:
|
|
135
|
+
className: `h-8 px-3 rounded-md ${te[s]} ${ae[m]}`,
|
|
136
|
+
children: f
|
|
137
137
|
}
|
|
138
138
|
),
|
|
139
139
|
c && /* @__PURE__ */ a(
|
|
@@ -141,42 +141,42 @@ const X = {
|
|
|
141
141
|
{
|
|
142
142
|
onClick: h,
|
|
143
143
|
className: "absolute -top-1 -left-1 border border-default-300 bg-default-100 rounded-full",
|
|
144
|
-
children: /* @__PURE__ */ a(
|
|
144
|
+
children: /* @__PURE__ */ a(S, { color: A.default, size: 14 })
|
|
145
145
|
}
|
|
146
146
|
)
|
|
147
|
-
] }) : c && /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("button", { onClick: h, children: /* @__PURE__ */ a(
|
|
147
|
+
] }) : c && /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("button", { onClick: h, children: /* @__PURE__ */ a(S, { color: A[s] }) }) })
|
|
148
148
|
] });
|
|
149
|
-
},
|
|
149
|
+
}, oe = {
|
|
150
150
|
sm: "h-5 text-xs px-2",
|
|
151
151
|
md: "h-6 text-sm px-2.5",
|
|
152
152
|
lg: "h-7 text-sm px-3"
|
|
153
|
-
},
|
|
153
|
+
}, de = {
|
|
154
154
|
neutral: "bg-default-500",
|
|
155
155
|
default: "bg-default-200",
|
|
156
156
|
primary: "bg-layout-focus",
|
|
157
157
|
danger: "bg-base-danger",
|
|
158
158
|
success: "bg-base-success"
|
|
159
|
-
},
|
|
159
|
+
}, ie = {
|
|
160
160
|
white: "text-content-1",
|
|
161
161
|
black: "text-layout-fg"
|
|
162
|
-
},
|
|
162
|
+
}, ce = {
|
|
163
163
|
pill: "rounded-full",
|
|
164
164
|
Rectangle: "rounded-xxs"
|
|
165
|
-
},
|
|
165
|
+
}, Je = ({
|
|
166
166
|
label: t,
|
|
167
|
-
color:
|
|
167
|
+
color: e = "default",
|
|
168
168
|
type: s = "pill",
|
|
169
|
-
size:
|
|
169
|
+
size: r = "md",
|
|
170
170
|
textColor: n = "black"
|
|
171
171
|
}) => {
|
|
172
|
-
const d =
|
|
172
|
+
const d = p(
|
|
173
|
+
de[e],
|
|
174
|
+
ie[n],
|
|
173
175
|
oe[r],
|
|
174
|
-
|
|
175
|
-
ne[e],
|
|
176
|
-
ie[s]
|
|
176
|
+
ce[s]
|
|
177
177
|
);
|
|
178
178
|
return /* @__PURE__ */ a("div", { className: `flex justify-center items-center ${d}`, children: t });
|
|
179
|
-
},
|
|
179
|
+
}, le = {
|
|
180
180
|
sm: "h-8 text-xs px-3",
|
|
181
181
|
md: "h-10 text-sm px-4",
|
|
182
182
|
lg: "h-12 text-base px-6"
|
|
@@ -210,74 +210,74 @@ const X = {
|
|
|
210
210
|
success: "bg-success-100",
|
|
211
211
|
warning: "bg-warning-100",
|
|
212
212
|
danger: "bg-danger-100"
|
|
213
|
-
},
|
|
213
|
+
}, ue = {
|
|
214
214
|
none: "rounded-none",
|
|
215
215
|
sm: "rounded-sm",
|
|
216
216
|
md: "rounded-md",
|
|
217
217
|
lg: "rounded-lg",
|
|
218
218
|
full: "rounded-full"
|
|
219
|
-
},
|
|
220
|
-
let
|
|
219
|
+
}, be = (t, e, s) => {
|
|
220
|
+
let r = "";
|
|
221
221
|
switch (t) {
|
|
222
222
|
case "solid":
|
|
223
|
-
|
|
223
|
+
r = `${I[e]} ${y[s]}`;
|
|
224
224
|
break;
|
|
225
225
|
case "bordered":
|
|
226
|
-
|
|
226
|
+
r = `border-2 ${P[e]} ${y[e]}`;
|
|
227
227
|
break;
|
|
228
228
|
case "light":
|
|
229
|
-
|
|
229
|
+
r = y[e];
|
|
230
230
|
break;
|
|
231
231
|
case "flat":
|
|
232
|
-
|
|
232
|
+
r = `${j[e]} ${y[e]}`;
|
|
233
233
|
break;
|
|
234
234
|
case "faded":
|
|
235
|
-
|
|
235
|
+
r = `border-2 ${P.default} ${j.default} ${y[e]}`;
|
|
236
236
|
break;
|
|
237
237
|
case "shadow":
|
|
238
|
-
|
|
238
|
+
r = `shadow-lg ${I[e]} ${y[s]}`;
|
|
239
239
|
break;
|
|
240
240
|
}
|
|
241
|
-
return
|
|
242
|
-
},
|
|
241
|
+
return r;
|
|
242
|
+
}, Ke = ({
|
|
243
243
|
type: t = "button",
|
|
244
|
-
variant:
|
|
244
|
+
variant: e = "solid",
|
|
245
245
|
color: s = "default",
|
|
246
|
-
textColor:
|
|
246
|
+
textColor: r = "black",
|
|
247
247
|
size: n = "md",
|
|
248
248
|
rounded: d = "none",
|
|
249
249
|
label: o,
|
|
250
250
|
icon: i,
|
|
251
251
|
iconPosition: c = "left",
|
|
252
|
-
width:
|
|
253
|
-
disabled:
|
|
252
|
+
width: u = "auto",
|
|
253
|
+
disabled: f = !1,
|
|
254
254
|
onClick: m
|
|
255
255
|
}) => {
|
|
256
|
-
const x =
|
|
257
|
-
|
|
256
|
+
const x = p(
|
|
257
|
+
u === "full" ? "w-full" : "w-auto",
|
|
258
258
|
c === "right" ? "flex-row" : "flex-row-reverse",
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
ue[d],
|
|
260
|
+
le[n],
|
|
261
|
+
be(e, s, r)
|
|
262
262
|
);
|
|
263
|
-
return /* @__PURE__ */
|
|
263
|
+
return /* @__PURE__ */ l(
|
|
264
264
|
"button",
|
|
265
265
|
{
|
|
266
266
|
type: t,
|
|
267
267
|
className: "flex items-center justify-center gap-2 font-semibold transition-all duration-300 " + x,
|
|
268
268
|
onClick: m,
|
|
269
|
-
disabled:
|
|
269
|
+
disabled: f,
|
|
270
270
|
children: [
|
|
271
271
|
i,
|
|
272
272
|
o && /* @__PURE__ */ a("p", { children: o })
|
|
273
273
|
]
|
|
274
274
|
}
|
|
275
275
|
);
|
|
276
|
-
},
|
|
276
|
+
}, ge = {
|
|
277
277
|
sm: "h-6 text-xs",
|
|
278
278
|
md: "h-7 text-sm",
|
|
279
279
|
lg: "h-8 text-base"
|
|
280
|
-
},
|
|
280
|
+
}, pe = {
|
|
281
281
|
none: "rounded-none",
|
|
282
282
|
sm: "rounded-sm",
|
|
283
283
|
md: "rounded-md",
|
|
@@ -306,78 +306,78 @@ const X = {
|
|
|
306
306
|
success: "border-base-success",
|
|
307
307
|
warning: "border-base-warning",
|
|
308
308
|
danger: "border-base-danger"
|
|
309
|
-
},
|
|
309
|
+
}, fe = {
|
|
310
310
|
default: "bg-default-200",
|
|
311
311
|
primary: "bg-primary-100",
|
|
312
312
|
secondary: "bg-secondary-100",
|
|
313
313
|
success: "bg-success-100",
|
|
314
314
|
warning: "bg-warning-100",
|
|
315
315
|
danger: "bg-danger-100"
|
|
316
|
-
},
|
|
316
|
+
}, me = {
|
|
317
317
|
default: "bg-default-400",
|
|
318
318
|
primary: "bg-base-primary",
|
|
319
319
|
secondary: "bg-base-secondary",
|
|
320
320
|
success: "bg-base-success",
|
|
321
321
|
warning: "bg-base-warning",
|
|
322
322
|
danger: "bg-base-danger"
|
|
323
|
-
},
|
|
324
|
-
let
|
|
323
|
+
}, xe = (t, e, s) => {
|
|
324
|
+
let r = "";
|
|
325
325
|
switch (t) {
|
|
326
326
|
case "solid":
|
|
327
|
-
|
|
327
|
+
r = `${D[e]} ${w[s]}`;
|
|
328
328
|
break;
|
|
329
329
|
case "bordered":
|
|
330
|
-
|
|
330
|
+
r = `border-2 ${C[e]} ${w[e]}`;
|
|
331
331
|
break;
|
|
332
332
|
case "light":
|
|
333
|
-
|
|
333
|
+
r = w[e];
|
|
334
334
|
break;
|
|
335
335
|
case "flat":
|
|
336
|
-
|
|
336
|
+
r = `${fe[e]} ${w[e]}`;
|
|
337
337
|
break;
|
|
338
338
|
case "faded":
|
|
339
|
-
|
|
339
|
+
r = `border-2 ${C.default} bg-default-100 ${w[e]}`;
|
|
340
340
|
break;
|
|
341
341
|
case "shadow":
|
|
342
|
-
|
|
342
|
+
r = `shadow-lg ${D[e]} ${w[s]}`;
|
|
343
343
|
break;
|
|
344
344
|
case "dot":
|
|
345
|
-
|
|
345
|
+
r = `border-2 ${C.default} ${w.black}`;
|
|
346
346
|
break;
|
|
347
347
|
}
|
|
348
|
-
return
|
|
349
|
-
},
|
|
348
|
+
return r;
|
|
349
|
+
}, Qe = ({
|
|
350
350
|
variant: t = "solid",
|
|
351
|
-
color:
|
|
351
|
+
color: e = "default",
|
|
352
352
|
textColor: s = "black",
|
|
353
|
-
label:
|
|
353
|
+
label: r,
|
|
354
354
|
size: n = "md",
|
|
355
355
|
rounded: d = "none",
|
|
356
356
|
children: o
|
|
357
357
|
}) => {
|
|
358
|
-
const i =
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
358
|
+
const i = p(
|
|
359
|
+
pe[d],
|
|
360
|
+
ge[n],
|
|
361
|
+
xe(t, e, s)
|
|
362
362
|
);
|
|
363
|
-
return /* @__PURE__ */ a("div", { className: `w-fit flex items-center justify-center gap-1 px-2 ${i}`, children: o || /* @__PURE__ */
|
|
364
|
-
/* @__PURE__ */ a("p", { children:
|
|
365
|
-
t === "dot" && /* @__PURE__ */ a("div", { className: `size-2 rounded-full ${
|
|
363
|
+
return /* @__PURE__ */ a("div", { className: `w-fit flex items-center justify-center gap-1 px-2 ${i}`, children: o || /* @__PURE__ */ l(Y, { children: [
|
|
364
|
+
/* @__PURE__ */ a("p", { children: r }),
|
|
365
|
+
t === "dot" && /* @__PURE__ */ a("div", { className: `size-2 rounded-full ${me[e]}` })
|
|
366
366
|
] }) });
|
|
367
|
-
},
|
|
367
|
+
}, he = {
|
|
368
368
|
sm: "h-8 py-1",
|
|
369
369
|
lg: "h-10 py-2"
|
|
370
|
-
},
|
|
370
|
+
}, we = {
|
|
371
371
|
default: "text-default-600",
|
|
372
372
|
primary: "text-base-primary",
|
|
373
373
|
success: "text-base-success",
|
|
374
374
|
warning: "text-base-warning",
|
|
375
375
|
danger: "text-base-danger"
|
|
376
|
-
},
|
|
376
|
+
}, ye = {
|
|
377
377
|
primary: "text-base-primary hover:text-base-primary",
|
|
378
378
|
success: "text-base-success hover:text-base-success",
|
|
379
379
|
warning: "text-base-warning hover:text-base-warning"
|
|
380
|
-
},
|
|
380
|
+
}, ve = {
|
|
381
381
|
default: "bg-default-100 hover:bg-default-200 focus-within:hover:bg-transparent",
|
|
382
382
|
primary: "bg-primary-100 hover:bg-primary-50 focus-within:hover:bg-transparent",
|
|
383
383
|
success: "bg-success-100 hover:bg-success-50 focus-within:hover:bg-transparent",
|
|
@@ -389,75 +389,75 @@ const X = {
|
|
|
389
389
|
success: "focus-within:bg-transparent focus-within:border focus-within:border-base-success focus-within:hover:border-base-success focus-within:hover:bg-transparent",
|
|
390
390
|
warning: "focus-within:bg-transparent focus-within:border focus-within:border-base-warning focus-within:hover:border-base-warning focus-within:hover:bg-transparent",
|
|
391
391
|
danger: "focus-within:bg-transparent focus-within:border focus-within:border-base-danger focus-within:hover:border-base-danger focus-within:hover:bg-transparent"
|
|
392
|
-
},
|
|
392
|
+
}, $e = {
|
|
393
393
|
default: "hover:border-default-400",
|
|
394
394
|
primary: "hover:border-base-primary",
|
|
395
395
|
success: "hover:border-base-success",
|
|
396
396
|
warning: "hover:border-base-warning",
|
|
397
397
|
danger: "hover:border-base-danger"
|
|
398
|
-
},
|
|
398
|
+
}, Ce = {
|
|
399
399
|
sm: "rounded-sm",
|
|
400
400
|
full: "rounded-full"
|
|
401
|
-
},
|
|
402
|
-
let
|
|
401
|
+
}, ke = (t, e, s) => {
|
|
402
|
+
let r = "";
|
|
403
403
|
if (s)
|
|
404
|
-
return
|
|
404
|
+
return r = "bg-danger-100 hover:bg-danger-50 focus-within:hover:bg-transparent focus-within:bg-transparent focus-within:border focus-within:border-base-danger";
|
|
405
405
|
switch (t) {
|
|
406
406
|
case "flat":
|
|
407
|
-
|
|
407
|
+
r = `${ve[e]} ${k[e]} ${ye[e]} focus-within:text-layout-fg`;
|
|
408
408
|
break;
|
|
409
409
|
case "bordered":
|
|
410
|
-
|
|
410
|
+
r = `bg-transparent border border-default-200 hover:border-default-400 ${k[e]}`;
|
|
411
411
|
break;
|
|
412
412
|
case "faded":
|
|
413
|
-
|
|
413
|
+
r = `border border-default-200 bg-default-100 hover:bg-default-200 ${$e[e]} ${k[e]}`;
|
|
414
414
|
break;
|
|
415
415
|
}
|
|
416
|
-
return
|
|
417
|
-
},
|
|
416
|
+
return r;
|
|
417
|
+
}, Ue = ({
|
|
418
418
|
id: t,
|
|
419
|
-
label:
|
|
419
|
+
label: e,
|
|
420
420
|
required: s = !1,
|
|
421
|
-
register:
|
|
421
|
+
register: r,
|
|
422
422
|
name: n,
|
|
423
423
|
value: d,
|
|
424
424
|
onChange: o,
|
|
425
425
|
isFocused: i = !1,
|
|
426
426
|
placeHolder: c,
|
|
427
|
-
variant:
|
|
428
|
-
color:
|
|
427
|
+
variant: u = "flat",
|
|
428
|
+
color: f = "default",
|
|
429
429
|
size: m = "sm",
|
|
430
430
|
rounded: x = "sm",
|
|
431
431
|
description: h = "",
|
|
432
432
|
icon: b,
|
|
433
433
|
endIcon: g,
|
|
434
434
|
errorMsg: v = "",
|
|
435
|
-
hasError:
|
|
435
|
+
hasError: N = !1
|
|
436
436
|
}) => {
|
|
437
|
-
const T =
|
|
438
|
-
return /* @__PURE__ */
|
|
439
|
-
|
|
437
|
+
const T = p(Ce[x], ke(u, f, N)), _ = p(he[m]);
|
|
438
|
+
return /* @__PURE__ */ l("label", { className: "flex flex-col w-full", children: [
|
|
439
|
+
e && /* @__PURE__ */ l(
|
|
440
440
|
"div",
|
|
441
441
|
{
|
|
442
|
-
className: `h-4 text-xs mb-2 ${
|
|
442
|
+
className: `h-4 text-xs mb-2 ${N ? "text-base-danger" : we[f]}`,
|
|
443
443
|
children: [
|
|
444
|
-
|
|
444
|
+
e,
|
|
445
445
|
s && /* @__PURE__ */ a("span", { className: "text-base-danger text-sm", children: "*" })
|
|
446
446
|
]
|
|
447
447
|
}
|
|
448
448
|
),
|
|
449
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ l(
|
|
450
450
|
"div",
|
|
451
451
|
{
|
|
452
452
|
className: `${T} flex items-center px-1.5 transition-all duration-200`,
|
|
453
453
|
children: [
|
|
454
454
|
b,
|
|
455
|
-
|
|
455
|
+
r ? /* @__PURE__ */ a(
|
|
456
456
|
"input",
|
|
457
457
|
{
|
|
458
458
|
id: `${t}`,
|
|
459
459
|
type: "text",
|
|
460
|
-
...
|
|
460
|
+
...r(n),
|
|
461
461
|
placeholder: c,
|
|
462
462
|
className: `${_} bg-transparent w-full px-1.5 text-sm outline-none`,
|
|
463
463
|
autoFocus: i
|
|
@@ -481,7 +481,7 @@ const X = {
|
|
|
481
481
|
h && !v && /* @__PURE__ */ a("p", { className: "mt-1 text-xs text-default-400", children: h }),
|
|
482
482
|
v && /* @__PURE__ */ a("p", { className: "mt-1 mr-1 text-xs text-base-danger", children: v })
|
|
483
483
|
] });
|
|
484
|
-
},
|
|
484
|
+
}, Fe = {
|
|
485
485
|
sm: "size-4 min-w-4 p-[3px]",
|
|
486
486
|
md: "size-5 min-w-5 p-1",
|
|
487
487
|
lg: "size-6 min-w-6 p-[5px]"
|
|
@@ -492,41 +492,41 @@ const X = {
|
|
|
492
492
|
warning: "border-base-warning",
|
|
493
493
|
danger: "border-base-danger",
|
|
494
494
|
neutral: "border-default-500"
|
|
495
|
-
},
|
|
495
|
+
}, _e = {
|
|
496
496
|
primary: "bg-base-primary",
|
|
497
497
|
secondary: "bg-base-secondary",
|
|
498
498
|
success: "bg-base-success",
|
|
499
499
|
warning: "bg-base-warning",
|
|
500
500
|
danger: "bg-base-danger",
|
|
501
501
|
neutral: "bg-default-500"
|
|
502
|
-
},
|
|
502
|
+
}, Xe = ({
|
|
503
503
|
name: t,
|
|
504
|
-
value:
|
|
504
|
+
value: e,
|
|
505
505
|
checked: s,
|
|
506
|
-
disabled:
|
|
506
|
+
disabled: r = !1,
|
|
507
507
|
onChange: n,
|
|
508
508
|
size: d = "md",
|
|
509
509
|
color: o = "primary",
|
|
510
510
|
children: i
|
|
511
511
|
}) => {
|
|
512
|
-
const c =
|
|
513
|
-
|
|
512
|
+
const c = p(
|
|
513
|
+
Fe[d],
|
|
514
514
|
s ? Ne[o] : "border-base-default hover:bg-default-100 transition-all duration-200"
|
|
515
515
|
);
|
|
516
|
-
return /* @__PURE__ */
|
|
516
|
+
return /* @__PURE__ */ l(
|
|
517
517
|
"label",
|
|
518
518
|
{
|
|
519
|
-
className: `flex items-center gap-2 ${
|
|
519
|
+
className: `flex items-center gap-2 ${r ? "opacity-50" : "cursor-pointer"}`,
|
|
520
520
|
children: [
|
|
521
521
|
/* @__PURE__ */ a(
|
|
522
522
|
"input",
|
|
523
523
|
{
|
|
524
524
|
name: t,
|
|
525
525
|
type: "radio",
|
|
526
|
-
value:
|
|
526
|
+
value: e,
|
|
527
527
|
checked: s,
|
|
528
|
-
onChange: (
|
|
529
|
-
disabled:
|
|
528
|
+
onChange: (u) => n && n(u.target.value),
|
|
529
|
+
disabled: r,
|
|
530
530
|
style: { display: "none" }
|
|
531
531
|
}
|
|
532
532
|
),
|
|
@@ -537,7 +537,7 @@ const X = {
|
|
|
537
537
|
children: s && /* @__PURE__ */ a(
|
|
538
538
|
"span",
|
|
539
539
|
{
|
|
540
|
-
className: `block w-full h-full rounded-full ${
|
|
540
|
+
className: `block w-full h-full rounded-full ${_e[o]}`
|
|
541
541
|
}
|
|
542
542
|
)
|
|
543
543
|
}
|
|
@@ -546,7 +546,7 @@ const X = {
|
|
|
546
546
|
]
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
|
-
},
|
|
549
|
+
}, ze = {
|
|
550
550
|
sm: "min-h-6 text-xs",
|
|
551
551
|
md: "min-h-7 text-sm",
|
|
552
552
|
lg: "min-h-8 text-base"
|
|
@@ -560,15 +560,15 @@ const X = {
|
|
|
560
560
|
}, Se = {
|
|
561
561
|
white: "text-content-1",
|
|
562
562
|
black: "text-default-900"
|
|
563
|
-
},
|
|
563
|
+
}, Ae = {
|
|
564
564
|
none: "rounded-none",
|
|
565
565
|
sm: "rounded-sm",
|
|
566
566
|
md: "rounded-md",
|
|
567
567
|
lg: "rounded-lg",
|
|
568
568
|
full: "rounded-full"
|
|
569
|
-
},
|
|
569
|
+
}, Me = (t, e) => {
|
|
570
570
|
let s = "";
|
|
571
|
-
const
|
|
571
|
+
const r = {
|
|
572
572
|
start: "left-4",
|
|
573
573
|
center: "left-1/2 -translate-x-1/2",
|
|
574
574
|
end: "right-4"
|
|
@@ -579,35 +579,35 @@ const X = {
|
|
|
579
579
|
};
|
|
580
580
|
switch (t) {
|
|
581
581
|
case "top":
|
|
582
|
-
s = "top-[-3px] " + e
|
|
582
|
+
s = "top-[-3px] " + r[e];
|
|
583
583
|
break;
|
|
584
584
|
case "right":
|
|
585
|
-
s = "right-[-3px] " + n[
|
|
585
|
+
s = "right-[-3px] " + n[e];
|
|
586
586
|
break;
|
|
587
587
|
case "bottom":
|
|
588
|
-
s = "bottom-[-3px] " + e
|
|
588
|
+
s = "bottom-[-3px] " + r[e];
|
|
589
589
|
break;
|
|
590
590
|
case "left":
|
|
591
|
-
s = "left-[-3px] " + n[
|
|
591
|
+
s = "left-[-3px] " + n[e];
|
|
592
592
|
break;
|
|
593
593
|
}
|
|
594
594
|
return s;
|
|
595
|
-
},
|
|
595
|
+
}, Be = ({
|
|
596
596
|
label: t,
|
|
597
|
-
color:
|
|
597
|
+
color: e = "default",
|
|
598
598
|
textColor: s = "black",
|
|
599
|
-
size:
|
|
599
|
+
size: r = "md",
|
|
600
600
|
rounded: n = "md",
|
|
601
601
|
direction: d = "bottom",
|
|
602
602
|
position: o = "center"
|
|
603
603
|
}) => {
|
|
604
|
-
const i =
|
|
605
|
-
|
|
606
|
-
E[
|
|
604
|
+
const i = p(
|
|
605
|
+
ze[r],
|
|
606
|
+
E[e],
|
|
607
607
|
Se[s],
|
|
608
|
-
|
|
608
|
+
Ae[n]
|
|
609
609
|
);
|
|
610
|
-
return /* @__PURE__ */
|
|
610
|
+
return /* @__PURE__ */ l("div", { className: "relative", children: [
|
|
611
611
|
/* @__PURE__ */ a(
|
|
612
612
|
"div",
|
|
613
613
|
{
|
|
@@ -618,7 +618,7 @@ const X = {
|
|
|
618
618
|
/* @__PURE__ */ a(
|
|
619
619
|
"div",
|
|
620
620
|
{
|
|
621
|
-
className: `absolute size-2.5 rotate-45 rounded-[2px] shadow-[0px_0px_1px_0px_#0000004D,0px_2px_10px_0px_#0000000F,0px_0px_5px_0px_#00000005] ${
|
|
621
|
+
className: `absolute size-2.5 rotate-45 rounded-[2px] shadow-[0px_0px_1px_0px_#0000004D,0px_2px_10px_0px_#0000000F,0px_0px_5px_0px_#00000005] ${Me(d, o)} ${E[e]}`
|
|
622
622
|
}
|
|
623
623
|
)
|
|
624
624
|
] });
|
|
@@ -629,36 +629,36 @@ const X = {
|
|
|
629
629
|
success: "#17C964",
|
|
630
630
|
warning: "#F5A524",
|
|
631
631
|
danger: "#F31260"
|
|
632
|
-
},
|
|
632
|
+
}, F = {
|
|
633
633
|
foreground: "#A1A1AA",
|
|
634
634
|
primary: "#D6E0F3",
|
|
635
635
|
secondary: "#EEE1C9",
|
|
636
636
|
success: "#d1f4e0",
|
|
637
637
|
warning: "#fdedd3",
|
|
638
638
|
danger: "#fdd0df"
|
|
639
|
-
},
|
|
639
|
+
}, Ze = ({
|
|
640
640
|
value: t,
|
|
641
|
-
setValue:
|
|
641
|
+
setValue: e,
|
|
642
642
|
min: s = 0,
|
|
643
|
-
max:
|
|
643
|
+
max: r = 100,
|
|
644
644
|
step: n = 1,
|
|
645
645
|
color: d = "primary",
|
|
646
646
|
tooltipColor: o = "primary",
|
|
647
647
|
tooltipTextColor: i = "white"
|
|
648
648
|
}) => /* @__PURE__ */ a(
|
|
649
|
-
|
|
649
|
+
K,
|
|
650
650
|
{
|
|
651
651
|
value: t,
|
|
652
652
|
min: s,
|
|
653
|
-
max:
|
|
653
|
+
max: r,
|
|
654
654
|
step: n,
|
|
655
|
-
onChange: (c,
|
|
656
|
-
|
|
655
|
+
onChange: (c, u) => {
|
|
656
|
+
e(u);
|
|
657
657
|
},
|
|
658
658
|
onChangeCommitted: (c) => {
|
|
659
659
|
},
|
|
660
660
|
valueLabelFormat: (c) => /* @__PURE__ */ a(
|
|
661
|
-
|
|
661
|
+
Be,
|
|
662
662
|
{
|
|
663
663
|
color: o,
|
|
664
664
|
textColor: i,
|
|
@@ -679,13 +679,13 @@ const X = {
|
|
|
679
679
|
color: "#fff"
|
|
680
680
|
},
|
|
681
681
|
"& .MuiSlider-thumb.Mui-focusVisible": {
|
|
682
|
-
boxShadow: `0 0 0 4px ${
|
|
682
|
+
boxShadow: `0 0 0 4px ${F[d]}`
|
|
683
683
|
},
|
|
684
684
|
"& .MuiSlider-thumb.Mui-active": {
|
|
685
|
-
boxShadow: `0 0 0 4px ${
|
|
685
|
+
boxShadow: `0 0 0 4px ${F[d]}`
|
|
686
686
|
},
|
|
687
687
|
"& .MuiSlider-thumb:hover": {
|
|
688
|
-
boxShadow: `0 0 0 4px ${
|
|
688
|
+
boxShadow: `0 0 0 4px ${F[d]}`
|
|
689
689
|
},
|
|
690
690
|
"& .MuiSlider-track": {
|
|
691
691
|
color: R[d]
|
|
@@ -695,8 +695,8 @@ const X = {
|
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
),
|
|
699
|
-
|
|
698
|
+
), Ie = () => /* @__PURE__ */ a("div", { className: "custom-select-icon", children: /* @__PURE__ */ a(G, {}) }), He = ({ options: t, value: e, onChange: s }) => /* @__PURE__ */ a(
|
|
699
|
+
U,
|
|
700
700
|
{
|
|
701
701
|
MenuProps: {
|
|
702
702
|
sx: {
|
|
@@ -715,7 +715,7 @@ const X = {
|
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
},
|
|
718
|
-
IconComponent:
|
|
718
|
+
IconComponent: Ie,
|
|
719
719
|
sx: {
|
|
720
720
|
width: "100%",
|
|
721
721
|
height: 34,
|
|
@@ -741,10 +741,10 @@ const X = {
|
|
|
741
741
|
transform: "rotate(180deg)"
|
|
742
742
|
}
|
|
743
743
|
},
|
|
744
|
-
value:
|
|
745
|
-
onChange: (
|
|
746
|
-
children: t.map(({ title:
|
|
747
|
-
|
|
744
|
+
value: e,
|
|
745
|
+
onChange: (r) => s(r.target.value),
|
|
746
|
+
children: t.map(({ title: r, value: n }, d) => /* @__PURE__ */ a(
|
|
747
|
+
Q,
|
|
748
748
|
{
|
|
749
749
|
sx: {
|
|
750
750
|
fontFamily: "YekanBakh",
|
|
@@ -767,44 +767,44 @@ const X = {
|
|
|
767
767
|
}
|
|
768
768
|
},
|
|
769
769
|
value: n,
|
|
770
|
-
children:
|
|
770
|
+
children: r
|
|
771
771
|
},
|
|
772
772
|
d
|
|
773
773
|
))
|
|
774
774
|
}
|
|
775
|
-
),
|
|
775
|
+
), Pe = {
|
|
776
776
|
sm: "min-w-10 min-h-6",
|
|
777
777
|
md: "min-w-12 min-h-7",
|
|
778
778
|
lg: "min-w-14 min-h-8"
|
|
779
|
-
},
|
|
779
|
+
}, je = {
|
|
780
780
|
default: "bg-default-400",
|
|
781
781
|
primary: "bg-layout-focus",
|
|
782
782
|
secondary: "bg-base-secondary",
|
|
783
783
|
success: "bg-base-success",
|
|
784
784
|
warning: "bg-base-warning",
|
|
785
785
|
danger: "bg-base-danger"
|
|
786
|
-
},
|
|
786
|
+
}, er = ({
|
|
787
787
|
enabled: t,
|
|
788
|
-
onChange:
|
|
788
|
+
onChange: e,
|
|
789
789
|
label: s,
|
|
790
|
-
labelPosition:
|
|
790
|
+
labelPosition: r = "left",
|
|
791
791
|
size: n = "md",
|
|
792
792
|
color: d = "default",
|
|
793
793
|
disabled: o = !1
|
|
794
794
|
}) => {
|
|
795
|
-
const i =
|
|
796
|
-
|
|
795
|
+
const i = p(
|
|
796
|
+
r === "left" ? "flex-row" : "flex-row-reverse",
|
|
797
797
|
o && "opacity-50"
|
|
798
|
-
), c =
|
|
799
|
-
|
|
800
|
-
t ?
|
|
798
|
+
), c = p(
|
|
799
|
+
Pe[n],
|
|
800
|
+
t ? je[d] : "bg-default-700",
|
|
801
801
|
o && "cursor-auto"
|
|
802
802
|
);
|
|
803
|
-
return /* @__PURE__ */
|
|
803
|
+
return /* @__PURE__ */ l("div", { className: `flex items-center gap-2 ${i}`, children: [
|
|
804
804
|
/* @__PURE__ */ a(
|
|
805
805
|
"button",
|
|
806
806
|
{
|
|
807
|
-
onClick:
|
|
807
|
+
onClick: e,
|
|
808
808
|
className: `relative rounded-full transition-colors duration-300 p-1 ${c}`,
|
|
809
809
|
disabled: o,
|
|
810
810
|
children: /* @__PURE__ */ a(
|
|
@@ -821,32 +821,32 @@ const X = {
|
|
|
821
821
|
),
|
|
822
822
|
s && /* @__PURE__ */ a("p", { className: `text-default-600 ${n === "sm" && "text-sm"}`, children: s })
|
|
823
823
|
] });
|
|
824
|
-
},
|
|
824
|
+
}, De = {
|
|
825
825
|
sm: "h-8 py-1",
|
|
826
826
|
lg: "h-10 py-2"
|
|
827
|
-
},
|
|
827
|
+
}, Ee = {
|
|
828
828
|
flat: "bg-default-100 hover:bg-default-200 focus:bg-transparent focus:border-2 border-[#11181C]",
|
|
829
829
|
faded: "bg-default-100 hover:bg-default-200 focus:bg-transparent border-2 border-default-200 hover:border-default-400 focus:border-[#11181C]",
|
|
830
830
|
bordered: "bg-transparent border-2 border-default-200 hover:border-default-400 focus:border-[#11181C]"
|
|
831
|
-
},
|
|
831
|
+
}, Re = ({
|
|
832
832
|
value: t,
|
|
833
|
-
onInputChange:
|
|
833
|
+
onInputChange: e,
|
|
834
834
|
placeHolder: s,
|
|
835
|
-
inputIcon:
|
|
835
|
+
inputIcon: r,
|
|
836
836
|
inputEndIcon: n,
|
|
837
837
|
inputProps: d,
|
|
838
838
|
inputRef: o,
|
|
839
839
|
size: i,
|
|
840
840
|
variant: c,
|
|
841
|
-
iconOnClick:
|
|
842
|
-
endIconOnClick:
|
|
843
|
-
}) => /* @__PURE__ */
|
|
844
|
-
|
|
841
|
+
iconOnClick: u,
|
|
842
|
+
endIconOnClick: f
|
|
843
|
+
}) => /* @__PURE__ */ l("div", { ref: o, className: "relative", children: [
|
|
844
|
+
r && /* @__PURE__ */ a(
|
|
845
845
|
"button",
|
|
846
846
|
{
|
|
847
|
-
onClick:
|
|
847
|
+
onClick: u,
|
|
848
848
|
className: "absolute top-1/2 -translate-y-1/2 right-2",
|
|
849
|
-
children:
|
|
849
|
+
children: r
|
|
850
850
|
}
|
|
851
851
|
),
|
|
852
852
|
/* @__PURE__ */ a(
|
|
@@ -855,36 +855,36 @@ const X = {
|
|
|
855
855
|
...d,
|
|
856
856
|
type: "text",
|
|
857
857
|
value: t,
|
|
858
|
-
onChange: (m) =>
|
|
858
|
+
onChange: (m) => e && e(m.target.value),
|
|
859
859
|
placeholder: s,
|
|
860
|
-
className: `${
|
|
860
|
+
className: `${Ee[c]} ${De[i]} transition-all duration-300 w-full px-3 text-sm outline-none rounded-sm ${n && "pl-[30px]"} ${r && "pr-[30px]"}`
|
|
861
861
|
}
|
|
862
862
|
),
|
|
863
863
|
n && /* @__PURE__ */ a(
|
|
864
864
|
"button",
|
|
865
865
|
{
|
|
866
|
-
onClick:
|
|
866
|
+
onClick: f,
|
|
867
867
|
className: "absolute top-1/2 -translate-y-1/2 left-2",
|
|
868
868
|
children: n
|
|
869
869
|
}
|
|
870
870
|
)
|
|
871
|
-
] }),
|
|
871
|
+
] }), rr = ({
|
|
872
872
|
label: t,
|
|
873
|
-
placeHolder:
|
|
873
|
+
placeHolder: e,
|
|
874
874
|
inputIcon: s,
|
|
875
|
-
inputEndIcon:
|
|
875
|
+
inputEndIcon: r,
|
|
876
876
|
value: n,
|
|
877
877
|
onInputChange: d,
|
|
878
878
|
onChange: o,
|
|
879
879
|
size: i = "sm",
|
|
880
880
|
variant: c = "flat",
|
|
881
|
-
options:
|
|
882
|
-
iconOnClick:
|
|
881
|
+
options: u,
|
|
882
|
+
iconOnClick: f,
|
|
883
883
|
endIconOnClick: m
|
|
884
884
|
}) => {
|
|
885
|
-
const x =
|
|
885
|
+
const x = u.map((b, g) => ({ ...b, optionIndex: g })), h = u.map((b, g) => ({ data: b.data, optionIndex: g }));
|
|
886
886
|
return /* @__PURE__ */ a(
|
|
887
|
-
|
|
887
|
+
X,
|
|
888
888
|
{
|
|
889
889
|
disablePortal: !0,
|
|
890
890
|
options: h,
|
|
@@ -907,38 +907,48 @@ const X = {
|
|
|
907
907
|
renderOption: (b, g) => /* @__PURE__ */ a("li", { ...b, children: x.find(
|
|
908
908
|
({ optionIndex: v }) => v === g.optionIndex
|
|
909
909
|
)?.itemElement }),
|
|
910
|
-
renderInput: (b) => /* @__PURE__ */
|
|
910
|
+
renderInput: (b) => /* @__PURE__ */ l("div", { children: [
|
|
911
911
|
t && /* @__PURE__ */ a("div", { className: "h-4 text-xs mb-2 text-default-600", children: t }),
|
|
912
912
|
/* @__PURE__ */ a(
|
|
913
|
-
|
|
913
|
+
Re,
|
|
914
914
|
{
|
|
915
915
|
value: n,
|
|
916
916
|
onInputChange: d,
|
|
917
|
-
placeHolder:
|
|
917
|
+
placeHolder: e,
|
|
918
918
|
inputIcon: s,
|
|
919
|
-
inputEndIcon:
|
|
919
|
+
inputEndIcon: r,
|
|
920
920
|
inputProps: b.slotProps.htmlInput,
|
|
921
921
|
inputRef: b.slotProps.input.ref,
|
|
922
922
|
size: i,
|
|
923
923
|
variant: c,
|
|
924
|
-
iconOnClick:
|
|
924
|
+
iconOnClick: f,
|
|
925
925
|
endIconOnClick: m
|
|
926
926
|
}
|
|
927
927
|
)
|
|
928
928
|
] })
|
|
929
929
|
}
|
|
930
930
|
);
|
|
931
|
+
}, Le = {
|
|
932
|
+
xs: "size-4 min-w-4",
|
|
933
|
+
sm: "size-5 min-w-5"
|
|
934
|
+
}, sr = ({ checked: t, size: e = "xs", children: s, onClickHandler: r }) => {
|
|
935
|
+
const n = p(Le[e], t ? "border-base-primary bg-base-primary" : "border-content-3 group-hover:bg-content-2");
|
|
936
|
+
return /* @__PURE__ */ l("div", { onClick: r, className: "flex cursor-pointer group", children: [
|
|
937
|
+
/* @__PURE__ */ a("div", { className: `flex items-center justify-center ${n} border-2 rounded-xs transition-all duration-300`, children: t && /* @__PURE__ */ a(J, { color: "#FFFFFF", size: e === "xs" ? 12 : 16 }) }),
|
|
938
|
+
s
|
|
939
|
+
] });
|
|
931
940
|
};
|
|
932
941
|
export {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
942
|
+
Ge as Alert,
|
|
943
|
+
rr as Autocomplete,
|
|
944
|
+
Je as Badge,
|
|
945
|
+
Ke as Button,
|
|
946
|
+
sr as Checkbox,
|
|
947
|
+
Qe as Chip,
|
|
948
|
+
Ue as Input,
|
|
949
|
+
Xe as Radio,
|
|
950
|
+
Ze as RangeSlider,
|
|
951
|
+
He as Select,
|
|
952
|
+
er as Switch,
|
|
953
|
+
Be as Tooltip
|
|
944
954
|
};
|