am-shared-assets 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Input.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components.js +329 -236
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ interface IInputProps {
|
|
|
7
7
|
name?: string;
|
|
8
8
|
value?: string;
|
|
9
9
|
onChange?: (value: string) => void;
|
|
10
|
+
isFocused?: boolean;
|
|
10
11
|
placeHolder?: string;
|
|
11
12
|
variant?: "flat" | "bordered" | "faded";
|
|
12
13
|
color?: "default" | "primary" | "success" | "warning" | "danger";
|
|
@@ -18,5 +19,5 @@ interface IInputProps {
|
|
|
18
19
|
errorMsg?: string;
|
|
19
20
|
hasError?: boolean;
|
|
20
21
|
}
|
|
21
|
-
export declare const Input: ({ id, label, required, register, name, value, onChange, placeHolder, variant, color, size, rounded, description, icon, endIcon, errorMsg, hasError, }: IInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const Input: ({ id, label, required, register, name, value, onChange, isFocused, placeHolder, variant, color, size, rounded, description, icon, endIcon, errorMsg, hasError, }: IInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
export {};
|
package/dist/components.js
CHANGED
|
@@ -1,126 +1,128 @@
|
|
|
1
|
-
import { jsxs as l, jsx as t, Fragment as
|
|
2
|
-
import { I as
|
|
3
|
-
import { Slider as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as l, jsx as t, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import { I as S, b as z, a as q, W as V, T as Y, C as G } from "./ChevronBottomIcon-BM6pUrh1.js";
|
|
3
|
+
import { Slider as J, MenuItem as K } from "@mui/material";
|
|
4
|
+
import Q from "@mui/material/Select";
|
|
5
|
+
import U from "@mui/material/Autocomplete";
|
|
6
|
+
import "react";
|
|
5
7
|
function T(a) {
|
|
6
|
-
var
|
|
7
|
-
if (typeof a == "string" || typeof a == "number")
|
|
8
|
+
var r, s, e = "";
|
|
9
|
+
if (typeof a == "string" || typeof a == "number") e += a;
|
|
8
10
|
else if (typeof a == "object") if (Array.isArray(a)) {
|
|
9
11
|
var n = a.length;
|
|
10
|
-
for (
|
|
11
|
-
} else for (s in a) a[s] && (
|
|
12
|
-
return
|
|
12
|
+
for (r = 0; r < n; r++) a[r] && (s = T(a[r])) && (e && (e += " "), e += s);
|
|
13
|
+
} else for (s in a) a[s] && (e && (e += " "), e += s);
|
|
14
|
+
return e;
|
|
13
15
|
}
|
|
14
|
-
function
|
|
15
|
-
for (var a,
|
|
16
|
-
return
|
|
16
|
+
function f() {
|
|
17
|
+
for (var a, r, s = 0, e = "", n = arguments.length; s < n; s++) (a = arguments[s]) && (r = T(a)) && (e && (e += " "), e += r);
|
|
18
|
+
return e;
|
|
17
19
|
}
|
|
18
|
-
const
|
|
20
|
+
const X = {
|
|
19
21
|
sm: "text-xs",
|
|
20
22
|
md: "text-sm"
|
|
21
|
-
},
|
|
23
|
+
}, Z = {
|
|
22
24
|
default: "w-[342px] min-w-[342px]",
|
|
23
25
|
full: "w-full"
|
|
24
|
-
},
|
|
26
|
+
}, H = {
|
|
25
27
|
default: "bg-default-100",
|
|
26
28
|
primary: "bg-primary-50",
|
|
27
29
|
secondary: "bg-secondary-50",
|
|
28
30
|
success: "bg-success-50",
|
|
29
31
|
warning: "bg-warning-50",
|
|
30
32
|
danger: "bg-danger-50"
|
|
31
|
-
},
|
|
33
|
+
}, ee = {
|
|
32
34
|
default: "text-default-900",
|
|
33
35
|
primary: "text-base-primary",
|
|
34
36
|
secondary: "text-base-secondary",
|
|
35
37
|
success: "text-base-success",
|
|
36
38
|
warning: "text-default-900",
|
|
37
39
|
danger: "text-base-danger"
|
|
38
|
-
},
|
|
40
|
+
}, re = {
|
|
39
41
|
default: "text-default-600",
|
|
40
42
|
primary: "text-base-primary",
|
|
41
43
|
secondary: "text-base-secondary",
|
|
42
44
|
success: "text-base-success",
|
|
43
45
|
warning: "text-default-600",
|
|
44
46
|
danger: "text-base-danger"
|
|
45
|
-
},
|
|
47
|
+
}, se = {
|
|
46
48
|
default: "bg-default-300",
|
|
47
49
|
primary: "bg-base-primary",
|
|
48
50
|
secondary: "bg-base-secondary",
|
|
49
51
|
success: "bg-base-success",
|
|
50
52
|
warning: "bg-base-warning",
|
|
51
53
|
danger: "bg-base-danger"
|
|
52
|
-
},
|
|
54
|
+
}, ae = {
|
|
53
55
|
white: "text-white",
|
|
54
56
|
black: "text-default-900"
|
|
55
|
-
},
|
|
57
|
+
}, A = {
|
|
56
58
|
default: "#a1a1aa",
|
|
57
59
|
primary: "#A9BCE3",
|
|
58
60
|
secondary: "#E2CDA6",
|
|
59
61
|
success: "#a2e9c1",
|
|
60
62
|
warning: "#fbdba7",
|
|
61
63
|
danger: "#faa0bf"
|
|
62
|
-
},
|
|
64
|
+
}, M = {
|
|
63
65
|
start: "items-start",
|
|
64
66
|
center: "items-center"
|
|
65
|
-
},
|
|
67
|
+
}, B = {
|
|
66
68
|
default: "#000",
|
|
67
69
|
primary: "#112E62",
|
|
68
70
|
secondary: "#C59C4E",
|
|
69
71
|
success: "#17c964",
|
|
70
72
|
warning: "#f5a524",
|
|
71
73
|
danger: "#f31260"
|
|
72
|
-
},
|
|
73
|
-
success: /* @__PURE__ */ t(
|
|
74
|
-
warning: /* @__PURE__ */ t(
|
|
75
|
-
danger: /* @__PURE__ */ t(
|
|
76
|
-
},
|
|
74
|
+
}, v = {
|
|
75
|
+
success: /* @__PURE__ */ t(Y, { color: "#17C964", size: 24 }),
|
|
76
|
+
warning: /* @__PURE__ */ t(V, { color: "#F5A524", size: 24 }),
|
|
77
|
+
danger: /* @__PURE__ */ t(q, { color: "#F31260", size: 24 })
|
|
78
|
+
}, te = {
|
|
77
79
|
none: "rounded-none",
|
|
78
80
|
sm: "rounded-md",
|
|
79
81
|
md: "rounded-xl",
|
|
80
82
|
lg: "rounded-[22px]",
|
|
81
83
|
full: "rounded-full"
|
|
82
|
-
},
|
|
84
|
+
}, Ve = ({
|
|
83
85
|
title: a,
|
|
84
|
-
description:
|
|
86
|
+
description: r,
|
|
85
87
|
color: s = "default",
|
|
86
|
-
size:
|
|
88
|
+
size: e = "md",
|
|
87
89
|
width: n = "default",
|
|
88
90
|
rounded: o = "none",
|
|
89
91
|
infoIconAlignment: d,
|
|
90
92
|
isInfoIcon: c = !0,
|
|
91
93
|
hasCloseButton: i = !0,
|
|
92
94
|
hasButton: u = !1,
|
|
93
|
-
buttonTitle:
|
|
94
|
-
buttonTextColor:
|
|
95
|
-
buttonClickHandler:
|
|
96
|
-
closeAlertHandler:
|
|
97
|
-
children:
|
|
95
|
+
buttonTitle: b,
|
|
96
|
+
buttonTextColor: p = "black",
|
|
97
|
+
buttonClickHandler: g,
|
|
98
|
+
closeAlertHandler: m,
|
|
99
|
+
children: h
|
|
98
100
|
}) => {
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
const y = f(
|
|
102
|
+
Z[n],
|
|
103
|
+
X[e],
|
|
104
|
+
te[o],
|
|
105
|
+
H[s]
|
|
104
106
|
);
|
|
105
|
-
return
|
|
107
|
+
return h ? /* @__PURE__ */ l(
|
|
106
108
|
"div",
|
|
107
109
|
{
|
|
108
|
-
className: `flex p-3 ${
|
|
110
|
+
className: `flex p-3 ${y} ${d && M[d]}`,
|
|
109
111
|
children: [
|
|
110
|
-
/* @__PURE__ */ t("div", { className: "mt-[1px]", children: c ||
|
|
111
|
-
|
|
112
|
+
/* @__PURE__ */ t("div", { className: "mt-[1px]", children: c || !v[s] ? /* @__PURE__ */ t(S, { color: B[s] }) : v[s] }),
|
|
113
|
+
h
|
|
112
114
|
]
|
|
113
115
|
}
|
|
114
|
-
) : /* @__PURE__ */ l("div", { className: `relative flex justify-between p-3 ${
|
|
116
|
+
) : /* @__PURE__ */ l("div", { className: `relative flex justify-between p-3 ${y}`, children: [
|
|
115
117
|
/* @__PURE__ */ l(
|
|
116
118
|
"div",
|
|
117
119
|
{
|
|
118
|
-
className: `flex ${d ?
|
|
120
|
+
className: `flex ${d ? M[d] : u ? "items-center" : a && r ? "items-start" : "items-center"} gap-3`,
|
|
119
121
|
children: [
|
|
120
|
-
/* @__PURE__ */ t("div", { className: "mt-[1px]", children: c ||
|
|
122
|
+
/* @__PURE__ */ t("div", { className: "mt-[1px]", children: c || !v[s] ? /* @__PURE__ */ t(S, { color: B[s] }) : v[s] }),
|
|
121
123
|
/* @__PURE__ */ l("div", { children: [
|
|
122
|
-
a && /* @__PURE__ */ t("h2", { className: `font-semibold ${
|
|
123
|
-
|
|
124
|
+
a && /* @__PURE__ */ t("h2", { className: `font-semibold ${ee[s]}`, children: a }),
|
|
125
|
+
r && /* @__PURE__ */ t("p", { className: re[s], children: r })
|
|
124
126
|
] })
|
|
125
127
|
]
|
|
126
128
|
}
|
|
@@ -129,56 +131,56 @@ const Q = {
|
|
|
129
131
|
/* @__PURE__ */ t(
|
|
130
132
|
"button",
|
|
131
133
|
{
|
|
132
|
-
onClick:
|
|
133
|
-
className: `h-8 px-3 rounded-md ${
|
|
134
|
-
children:
|
|
134
|
+
onClick: g,
|
|
135
|
+
className: `h-8 px-3 rounded-md ${se[s]} ${ae[p]}`,
|
|
136
|
+
children: b
|
|
135
137
|
}
|
|
136
138
|
),
|
|
137
139
|
i && /* @__PURE__ */ t(
|
|
138
140
|
"button",
|
|
139
141
|
{
|
|
140
|
-
onClick:
|
|
142
|
+
onClick: m,
|
|
141
143
|
className: "absolute -top-1 -left-1 border border-default-300 bg-default-100 rounded-full",
|
|
142
|
-
children: /* @__PURE__ */ t(
|
|
144
|
+
children: /* @__PURE__ */ t(z, { color: A.default, size: 14 })
|
|
143
145
|
}
|
|
144
146
|
)
|
|
145
|
-
] }) : i && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("button", { onClick:
|
|
147
|
+
] }) : i && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("button", { onClick: m, children: /* @__PURE__ */ t(z, { color: A[s] }) }) })
|
|
146
148
|
] });
|
|
147
|
-
},
|
|
149
|
+
}, ne = {
|
|
148
150
|
sm: "h-5 text-xs px-2",
|
|
149
151
|
md: "h-6 text-sm px-2.5",
|
|
150
152
|
lg: "h-7 text-sm px-3"
|
|
151
|
-
},
|
|
153
|
+
}, oe = {
|
|
152
154
|
neutral: "bg-default-500",
|
|
153
155
|
default: "bg-default-200",
|
|
154
156
|
primary: "bg-layout-focus",
|
|
155
157
|
danger: "bg-base-danger",
|
|
156
158
|
success: "bg-base-success"
|
|
157
|
-
},
|
|
159
|
+
}, de = {
|
|
158
160
|
white: "text-content-1",
|
|
159
161
|
black: "text-layout-fg"
|
|
160
|
-
},
|
|
162
|
+
}, ce = {
|
|
161
163
|
pill: "rounded-full",
|
|
162
164
|
Rectangle: "rounded-xxs"
|
|
163
|
-
},
|
|
165
|
+
}, Ye = ({
|
|
164
166
|
label: a,
|
|
165
|
-
color:
|
|
167
|
+
color: r = "default",
|
|
166
168
|
type: s = "pill",
|
|
167
|
-
size:
|
|
169
|
+
size: e = "md",
|
|
168
170
|
textColor: n = "black"
|
|
169
171
|
}) => {
|
|
170
|
-
const o =
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
const o = f(
|
|
173
|
+
oe[r],
|
|
174
|
+
de[n],
|
|
175
|
+
ne[e],
|
|
176
|
+
ce[s]
|
|
175
177
|
);
|
|
176
178
|
return /* @__PURE__ */ t("div", { className: `flex justify-center items-center ${o}`, children: a });
|
|
177
|
-
},
|
|
179
|
+
}, ie = {
|
|
178
180
|
sm: "h-8 text-xs px-3",
|
|
179
181
|
md: "h-10 text-sm px-4",
|
|
180
182
|
lg: "h-12 text-base px-6"
|
|
181
|
-
},
|
|
183
|
+
}, w = {
|
|
182
184
|
white: "text-white",
|
|
183
185
|
black: "text-default-900",
|
|
184
186
|
default: "text-default-900",
|
|
@@ -187,108 +189,108 @@ const Q = {
|
|
|
187
189
|
success: "text-base-success",
|
|
188
190
|
warning: "text-base-warning",
|
|
189
191
|
danger: "text-base-danger"
|
|
190
|
-
},
|
|
192
|
+
}, I = {
|
|
191
193
|
default: "bg-default-300",
|
|
192
194
|
primary: "bg-base-primary",
|
|
193
195
|
secondary: "bg-base-secondary",
|
|
194
196
|
success: "bg-base-success",
|
|
195
197
|
warning: "bg-base-warning",
|
|
196
198
|
danger: "bg-base-danger"
|
|
197
|
-
},
|
|
199
|
+
}, j = {
|
|
198
200
|
default: "border-default-300",
|
|
199
201
|
primary: "border-base-primary",
|
|
200
202
|
secondary: "border-base-secondary",
|
|
201
203
|
success: "border-base-success",
|
|
202
204
|
warning: "border-base-warning",
|
|
203
205
|
danger: "border-base-danger"
|
|
204
|
-
},
|
|
206
|
+
}, D = {
|
|
205
207
|
default: "bg-default-100",
|
|
206
208
|
primary: "bg-primary-100",
|
|
207
209
|
secondary: "bg-secondary-100",
|
|
208
210
|
success: "bg-success-100",
|
|
209
211
|
warning: "bg-warning-100",
|
|
210
212
|
danger: "bg-danger-100"
|
|
211
|
-
},
|
|
213
|
+
}, le = {
|
|
212
214
|
none: "rounded-none",
|
|
213
215
|
sm: "rounded-sm",
|
|
214
216
|
md: "rounded-md",
|
|
215
217
|
lg: "rounded-lg",
|
|
216
218
|
full: "rounded-full"
|
|
217
|
-
},
|
|
218
|
-
let
|
|
219
|
+
}, ue = (a, r, s) => {
|
|
220
|
+
let e = "";
|
|
219
221
|
switch (a) {
|
|
220
222
|
case "solid":
|
|
221
|
-
|
|
223
|
+
e = `${I[r]} ${w[s]}`;
|
|
222
224
|
break;
|
|
223
225
|
case "bordered":
|
|
224
|
-
|
|
226
|
+
e = `border-2 ${j[r]} ${w[r]}`;
|
|
225
227
|
break;
|
|
226
228
|
case "light":
|
|
227
|
-
|
|
229
|
+
e = w[r];
|
|
228
230
|
break;
|
|
229
231
|
case "flat":
|
|
230
|
-
|
|
232
|
+
e = `${D[r]} ${w[r]}`;
|
|
231
233
|
break;
|
|
232
234
|
case "faded":
|
|
233
|
-
|
|
235
|
+
e = `border-2 ${j.default} ${D.default} ${w[r]}`;
|
|
234
236
|
break;
|
|
235
237
|
case "shadow":
|
|
236
|
-
|
|
238
|
+
e = `shadow-lg ${I[r]} ${w[s]}`;
|
|
237
239
|
break;
|
|
238
240
|
}
|
|
239
|
-
return
|
|
240
|
-
},
|
|
241
|
+
return e;
|
|
242
|
+
}, Ge = ({
|
|
241
243
|
type: a = "button",
|
|
242
|
-
variant:
|
|
244
|
+
variant: r = "solid",
|
|
243
245
|
color: s = "default",
|
|
244
|
-
textColor:
|
|
246
|
+
textColor: e = "black",
|
|
245
247
|
size: n = "md",
|
|
246
248
|
rounded: o = "none",
|
|
247
249
|
label: d,
|
|
248
250
|
icon: c,
|
|
249
251
|
iconPosition: i = "left",
|
|
250
252
|
width: u = "auto",
|
|
251
|
-
disabled:
|
|
252
|
-
onClick:
|
|
253
|
+
disabled: b = !1,
|
|
254
|
+
onClick: p
|
|
253
255
|
}) => {
|
|
254
|
-
const
|
|
256
|
+
const g = f(
|
|
255
257
|
u === "full" ? "w-full" : "w-auto",
|
|
256
258
|
i === "right" ? "flex-row" : "flex-row-reverse",
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
259
|
+
le[o],
|
|
260
|
+
ie[n],
|
|
261
|
+
ue(r, s, e)
|
|
260
262
|
);
|
|
261
263
|
return /* @__PURE__ */ l(
|
|
262
264
|
"button",
|
|
263
265
|
{
|
|
264
266
|
type: a,
|
|
265
|
-
className: "flex items-center justify-center gap-2 font-semibold transition-all duration-300 " +
|
|
266
|
-
onClick:
|
|
267
|
-
disabled:
|
|
267
|
+
className: "flex items-center justify-center gap-2 font-semibold transition-all duration-300 " + g,
|
|
268
|
+
onClick: p,
|
|
269
|
+
disabled: b,
|
|
268
270
|
children: [
|
|
269
271
|
c,
|
|
270
272
|
d && /* @__PURE__ */ t("p", { children: d })
|
|
271
273
|
]
|
|
272
274
|
}
|
|
273
275
|
);
|
|
274
|
-
},
|
|
276
|
+
}, be = {
|
|
275
277
|
sm: "h-6 text-xs",
|
|
276
278
|
md: "h-7 text-sm",
|
|
277
279
|
lg: "h-8 text-base"
|
|
278
|
-
},
|
|
280
|
+
}, ge = {
|
|
279
281
|
none: "rounded-none",
|
|
280
282
|
sm: "rounded-sm",
|
|
281
283
|
md: "rounded-md",
|
|
282
284
|
lg: "rounded-lg",
|
|
283
285
|
full: "rounded-full"
|
|
284
|
-
},
|
|
286
|
+
}, P = {
|
|
285
287
|
default: "bg-default-200",
|
|
286
288
|
primary: "bg-base-primary",
|
|
287
289
|
secondary: "bg-base-secondary",
|
|
288
290
|
success: "bg-base-success",
|
|
289
291
|
warning: "bg-base-warning",
|
|
290
292
|
danger: "bg-base-danger"
|
|
291
|
-
},
|
|
293
|
+
}, x = {
|
|
292
294
|
white: "text-content-1",
|
|
293
295
|
black: "text-layout-fg",
|
|
294
296
|
default: "text-layout-fg",
|
|
@@ -297,148 +299,149 @@ const Q = {
|
|
|
297
299
|
success: "text-base-success",
|
|
298
300
|
warning: "text-base-warning",
|
|
299
301
|
danger: "text-base-danger"
|
|
300
|
-
},
|
|
302
|
+
}, C = {
|
|
301
303
|
default: "border-default-200",
|
|
302
304
|
primary: "border-base-primary",
|
|
303
305
|
secondary: "border-base-secondary",
|
|
304
306
|
success: "border-base-success",
|
|
305
307
|
warning: "border-base-warning",
|
|
306
308
|
danger: "border-base-danger"
|
|
307
|
-
},
|
|
309
|
+
}, fe = {
|
|
308
310
|
default: "bg-default-200",
|
|
309
311
|
primary: "bg-primary-100",
|
|
310
312
|
secondary: "bg-secondary-100",
|
|
311
313
|
success: "bg-success-100",
|
|
312
314
|
warning: "bg-warning-100",
|
|
313
315
|
danger: "bg-danger-100"
|
|
314
|
-
},
|
|
316
|
+
}, pe = {
|
|
315
317
|
default: "bg-default-400",
|
|
316
318
|
primary: "bg-base-primary",
|
|
317
319
|
secondary: "bg-base-secondary",
|
|
318
320
|
success: "bg-base-success",
|
|
319
321
|
warning: "bg-base-warning",
|
|
320
322
|
danger: "bg-base-danger"
|
|
321
|
-
},
|
|
322
|
-
let
|
|
323
|
+
}, me = (a, r, s) => {
|
|
324
|
+
let e = "";
|
|
323
325
|
switch (a) {
|
|
324
326
|
case "solid":
|
|
325
|
-
|
|
327
|
+
e = `${P[r]} ${x[s]}`;
|
|
326
328
|
break;
|
|
327
329
|
case "bordered":
|
|
328
|
-
|
|
330
|
+
e = `border-2 ${C[r]} ${x[r]}`;
|
|
329
331
|
break;
|
|
330
332
|
case "light":
|
|
331
|
-
|
|
333
|
+
e = x[r];
|
|
332
334
|
break;
|
|
333
335
|
case "flat":
|
|
334
|
-
|
|
336
|
+
e = `${fe[r]} ${x[r]}`;
|
|
335
337
|
break;
|
|
336
338
|
case "faded":
|
|
337
|
-
|
|
339
|
+
e = `border-2 ${C.default} bg-default-100 ${x[r]}`;
|
|
338
340
|
break;
|
|
339
341
|
case "shadow":
|
|
340
|
-
|
|
342
|
+
e = `shadow-lg ${P[r]} ${x[s]}`;
|
|
341
343
|
break;
|
|
342
344
|
case "dot":
|
|
343
|
-
|
|
345
|
+
e = `border-2 ${C.default} ${x.black}`;
|
|
344
346
|
break;
|
|
345
347
|
}
|
|
346
|
-
return
|
|
347
|
-
},
|
|
348
|
+
return e;
|
|
349
|
+
}, Je = ({
|
|
348
350
|
variant: a = "solid",
|
|
349
|
-
color:
|
|
351
|
+
color: r = "default",
|
|
350
352
|
textColor: s = "black",
|
|
351
|
-
label:
|
|
353
|
+
label: e,
|
|
352
354
|
size: n = "md",
|
|
353
355
|
rounded: o = "none",
|
|
354
356
|
children: d
|
|
355
357
|
}) => {
|
|
356
|
-
const c =
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
const c = f(
|
|
359
|
+
ge[o],
|
|
360
|
+
be[n],
|
|
361
|
+
me(a, r, s)
|
|
360
362
|
);
|
|
361
|
-
return /* @__PURE__ */ t("div", { className: `w-fit flex items-center justify-center gap-1 px-2 ${c}`, children: d || /* @__PURE__ */ l(
|
|
362
|
-
/* @__PURE__ */ t("p", { children:
|
|
363
|
-
a === "dot" && /* @__PURE__ */ t("div", { className: `size-2 rounded-full ${
|
|
363
|
+
return /* @__PURE__ */ t("div", { className: `w-fit flex items-center justify-center gap-1 px-2 ${c}`, children: d || /* @__PURE__ */ l(W, { children: [
|
|
364
|
+
/* @__PURE__ */ t("p", { children: e }),
|
|
365
|
+
a === "dot" && /* @__PURE__ */ t("div", { className: `size-2 rounded-full ${pe[r]}` })
|
|
364
366
|
] }) });
|
|
365
|
-
},
|
|
367
|
+
}, xe = {
|
|
366
368
|
sm: "h-8 py-1",
|
|
367
369
|
lg: "h-10 py-2"
|
|
368
|
-
},
|
|
370
|
+
}, he = {
|
|
369
371
|
default: "text-default-600",
|
|
370
372
|
primary: "text-base-primary",
|
|
371
373
|
success: "text-base-success",
|
|
372
374
|
warning: "text-base-warning",
|
|
373
375
|
danger: "text-base-danger"
|
|
374
|
-
},
|
|
376
|
+
}, we = {
|
|
375
377
|
primary: "text-base-primary hover:text-base-primary",
|
|
376
378
|
success: "text-base-success hover:text-base-success",
|
|
377
379
|
warning: "text-base-warning hover:text-base-warning"
|
|
378
|
-
},
|
|
380
|
+
}, ye = {
|
|
379
381
|
default: "bg-default-100 hover:bg-default-200 focus-within:hover:bg-transparent",
|
|
380
382
|
primary: "bg-primary-100 hover:bg-primary-50 focus-within:hover:bg-transparent",
|
|
381
383
|
success: "bg-success-100 hover:bg-success-50 focus-within:hover:bg-transparent",
|
|
382
384
|
warning: "bg-warning-100 hover:bg-warning-50 focus-within:hover:bg-transparent",
|
|
383
385
|
danger: "bg-danger-100 hover:bg-danger-50 focus-within:hover:bg-transparent"
|
|
384
|
-
},
|
|
386
|
+
}, k = {
|
|
385
387
|
default: "focus-within:bg-transparent focus-within:border focus-within:border-layout-fg focus-within:hover:border-layout-fg focus-within:hover:bg-transparent",
|
|
386
388
|
primary: "focus-within:bg-transparent focus-within:border focus-within:border-base-primary focus-within:hover:border-base-primary focus-within:hover:bg-transparent",
|
|
387
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",
|
|
388
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",
|
|
389
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"
|
|
390
|
-
},
|
|
392
|
+
}, ve = {
|
|
391
393
|
default: "hover:border-default-400",
|
|
392
394
|
primary: "hover:border-base-primary",
|
|
393
395
|
success: "hover:border-base-success",
|
|
394
396
|
warning: "hover:border-base-warning",
|
|
395
397
|
danger: "hover:border-base-danger"
|
|
396
|
-
},
|
|
398
|
+
}, $e = {
|
|
397
399
|
sm: "rounded-sm",
|
|
398
400
|
full: "rounded-full"
|
|
399
|
-
},
|
|
400
|
-
let
|
|
401
|
+
}, Ce = (a, r, s) => {
|
|
402
|
+
let e = "";
|
|
401
403
|
if (s)
|
|
402
|
-
return
|
|
404
|
+
return e = "bg-danger-100 hover:bg-danger-50 focus-within:hover:bg-transparent focus-within:bg-transparent focus-within:border focus-within:border-base-danger";
|
|
403
405
|
switch (a) {
|
|
404
406
|
case "flat":
|
|
405
|
-
|
|
407
|
+
e = `${ye[r]} ${k[r]} ${we[r]} focus-within:text-layout-fg`;
|
|
406
408
|
break;
|
|
407
409
|
case "bordered":
|
|
408
|
-
|
|
410
|
+
e = `bg-transparent border border-default-200 hover:border-default-400 ${k[r]}`;
|
|
409
411
|
break;
|
|
410
412
|
case "faded":
|
|
411
|
-
|
|
413
|
+
e = `border border-default-200 bg-default-100 hover:bg-default-200 ${ve[r]} ${k[r]}`;
|
|
412
414
|
break;
|
|
413
415
|
}
|
|
414
|
-
return
|
|
415
|
-
},
|
|
416
|
+
return e;
|
|
417
|
+
}, Ke = ({
|
|
416
418
|
id: a,
|
|
417
|
-
label:
|
|
419
|
+
label: r,
|
|
418
420
|
required: s = !1,
|
|
419
|
-
register:
|
|
421
|
+
register: e,
|
|
420
422
|
name: n,
|
|
421
423
|
value: o,
|
|
422
424
|
onChange: d,
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
425
|
+
isFocused: c = !1,
|
|
426
|
+
placeHolder: i,
|
|
427
|
+
variant: u = "flat",
|
|
428
|
+
color: b = "default",
|
|
429
|
+
size: p = "sm",
|
|
430
|
+
rounded: g = "sm",
|
|
431
|
+
description: m = "",
|
|
432
|
+
icon: h,
|
|
430
433
|
endIcon: y,
|
|
431
|
-
errorMsg:
|
|
434
|
+
errorMsg: $ = "",
|
|
432
435
|
hasError: _ = !1
|
|
433
436
|
}) => {
|
|
434
|
-
const L =
|
|
437
|
+
const L = f($e[g], Ce(u, b, _)), F = f(xe[p]);
|
|
435
438
|
return /* @__PURE__ */ l("label", { className: "flex flex-col w-full", children: [
|
|
436
|
-
|
|
439
|
+
r && /* @__PURE__ */ l(
|
|
437
440
|
"div",
|
|
438
441
|
{
|
|
439
|
-
className: `h-4 text-xs mb-2 ${_ ? "text-base-danger" :
|
|
442
|
+
className: `h-4 text-xs mb-2 ${_ ? "text-base-danger" : he[b]}`,
|
|
440
443
|
children: [
|
|
441
|
-
|
|
444
|
+
r,
|
|
442
445
|
s && /* @__PURE__ */ t("span", { className: "text-base-danger text-sm", children: "*" })
|
|
443
446
|
]
|
|
444
447
|
}
|
|
@@ -448,15 +451,16 @@ const Q = {
|
|
|
448
451
|
{
|
|
449
452
|
className: `${L} flex items-center px-1.5 transition-all duration-200`,
|
|
450
453
|
children: [
|
|
451
|
-
|
|
452
|
-
|
|
454
|
+
h,
|
|
455
|
+
e ? /* @__PURE__ */ t(
|
|
453
456
|
"input",
|
|
454
457
|
{
|
|
455
458
|
id: `${a}`,
|
|
456
459
|
type: "text",
|
|
457
|
-
...
|
|
458
|
-
placeholder:
|
|
459
|
-
className: `${
|
|
460
|
+
...e(n),
|
|
461
|
+
placeholder: i,
|
|
462
|
+
className: `${F} bg-transparent w-full px-1.5 text-sm outline-none`,
|
|
463
|
+
autoFocus: c
|
|
460
464
|
}
|
|
461
465
|
) : /* @__PURE__ */ t(
|
|
462
466
|
"input",
|
|
@@ -464,64 +468,65 @@ const Q = {
|
|
|
464
468
|
id: `${a}`,
|
|
465
469
|
type: "text",
|
|
466
470
|
value: o,
|
|
467
|
-
onChange: (
|
|
468
|
-
placeholder:
|
|
469
|
-
className: `${
|
|
471
|
+
onChange: (O) => d && d(O.target.value),
|
|
472
|
+
placeholder: i,
|
|
473
|
+
className: `${F} bg-transparent w-full px-1.5 text-sm outline-none`,
|
|
474
|
+
autoFocus: c
|
|
470
475
|
}
|
|
471
476
|
),
|
|
472
477
|
y
|
|
473
478
|
]
|
|
474
479
|
}
|
|
475
480
|
),
|
|
476
|
-
|
|
477
|
-
|
|
481
|
+
m && !$ && /* @__PURE__ */ t("p", { className: "mt-1 text-xs text-default-400", children: m }),
|
|
482
|
+
$ && /* @__PURE__ */ t("p", { className: "mt-1 mr-1 text-xs text-base-danger", children: $ })
|
|
478
483
|
] });
|
|
479
|
-
},
|
|
484
|
+
}, ke = {
|
|
480
485
|
sm: "size-4 min-w-4 p-[3px]",
|
|
481
486
|
md: "size-5 min-w-5 p-1",
|
|
482
487
|
lg: "size-6 min-w-6 p-[5px]"
|
|
483
|
-
},
|
|
488
|
+
}, Ne = {
|
|
484
489
|
primary: "border-base-primary",
|
|
485
490
|
secondary: "border-base-secondary",
|
|
486
491
|
success: "border-base-success",
|
|
487
492
|
warning: "border-base-warning",
|
|
488
493
|
danger: "border-base-danger",
|
|
489
494
|
neutral: "border-default-500"
|
|
490
|
-
},
|
|
495
|
+
}, _e = {
|
|
491
496
|
primary: "bg-base-primary",
|
|
492
497
|
secondary: "bg-base-secondary",
|
|
493
498
|
success: "bg-base-success",
|
|
494
499
|
warning: "bg-base-warning",
|
|
495
500
|
danger: "bg-base-danger",
|
|
496
501
|
neutral: "bg-default-500"
|
|
497
|
-
},
|
|
502
|
+
}, Qe = ({
|
|
498
503
|
name: a,
|
|
499
|
-
value:
|
|
504
|
+
value: r,
|
|
500
505
|
checked: s,
|
|
501
|
-
disabled:
|
|
506
|
+
disabled: e = !1,
|
|
502
507
|
onChange: n,
|
|
503
508
|
size: o = "md",
|
|
504
509
|
color: d = "primary",
|
|
505
510
|
children: c
|
|
506
511
|
}) => {
|
|
507
|
-
const i =
|
|
508
|
-
|
|
509
|
-
s ?
|
|
512
|
+
const i = f(
|
|
513
|
+
ke[o],
|
|
514
|
+
s ? Ne[d] : "border-base-default hover:bg-default-100 transition-all duration-200"
|
|
510
515
|
);
|
|
511
516
|
return /* @__PURE__ */ l(
|
|
512
517
|
"label",
|
|
513
518
|
{
|
|
514
|
-
className: `flex items-center gap-2 ${
|
|
519
|
+
className: `flex items-center gap-2 ${e ? "opacity-50" : "cursor-pointer"}`,
|
|
515
520
|
children: [
|
|
516
521
|
/* @__PURE__ */ t(
|
|
517
522
|
"input",
|
|
518
523
|
{
|
|
519
524
|
name: a,
|
|
520
525
|
type: "radio",
|
|
521
|
-
value:
|
|
526
|
+
value: r,
|
|
522
527
|
checked: s,
|
|
523
528
|
onChange: (u) => n && n(u.target.value),
|
|
524
|
-
disabled:
|
|
529
|
+
disabled: e,
|
|
525
530
|
style: { display: "none" }
|
|
526
531
|
}
|
|
527
532
|
),
|
|
@@ -532,7 +537,7 @@ const Q = {
|
|
|
532
537
|
children: s && /* @__PURE__ */ t(
|
|
533
538
|
"span",
|
|
534
539
|
{
|
|
535
|
-
className: `block w-full h-full rounded-full ${
|
|
540
|
+
className: `block w-full h-full rounded-full ${_e[d]}`
|
|
536
541
|
}
|
|
537
542
|
)
|
|
538
543
|
}
|
|
@@ -541,29 +546,29 @@ const Q = {
|
|
|
541
546
|
]
|
|
542
547
|
}
|
|
543
548
|
);
|
|
544
|
-
},
|
|
549
|
+
}, Fe = {
|
|
545
550
|
sm: "min-h-6 text-xs",
|
|
546
551
|
md: "min-h-7 text-sm",
|
|
547
552
|
lg: "min-h-8 text-base"
|
|
548
|
-
},
|
|
553
|
+
}, R = {
|
|
549
554
|
default: "bg-content-1",
|
|
550
555
|
primary: "bg-layout-focus",
|
|
551
556
|
secondary: "bg-base-secondary",
|
|
552
557
|
success: "bg-base-success",
|
|
553
558
|
warning: "bg-base-warning",
|
|
554
559
|
danger: "bg-base-danger"
|
|
555
|
-
},
|
|
560
|
+
}, Se = {
|
|
556
561
|
white: "text-content-1",
|
|
557
562
|
black: "text-default-900"
|
|
558
|
-
},
|
|
563
|
+
}, ze = {
|
|
559
564
|
none: "rounded-none",
|
|
560
565
|
sm: "rounded-sm",
|
|
561
566
|
md: "rounded-md",
|
|
562
567
|
lg: "rounded-lg",
|
|
563
568
|
full: "rounded-full"
|
|
564
|
-
},
|
|
569
|
+
}, Ae = (a, r) => {
|
|
565
570
|
let s = "";
|
|
566
|
-
const
|
|
571
|
+
const e = {
|
|
567
572
|
start: "left-4",
|
|
568
573
|
center: "left-1/2 -translate-x-1/2",
|
|
569
574
|
end: "right-4"
|
|
@@ -574,33 +579,33 @@ const Q = {
|
|
|
574
579
|
};
|
|
575
580
|
switch (a) {
|
|
576
581
|
case "top":
|
|
577
|
-
s = "top-[-3px] " + r
|
|
582
|
+
s = "top-[-3px] " + e[r];
|
|
578
583
|
break;
|
|
579
584
|
case "right":
|
|
580
|
-
s = "right-[-3px] " + n[
|
|
585
|
+
s = "right-[-3px] " + n[r];
|
|
581
586
|
break;
|
|
582
587
|
case "bottom":
|
|
583
|
-
s = "bottom-[-3px] " + r
|
|
588
|
+
s = "bottom-[-3px] " + e[r];
|
|
584
589
|
break;
|
|
585
590
|
case "left":
|
|
586
|
-
s = "left-[-3px] " + n[
|
|
591
|
+
s = "left-[-3px] " + n[r];
|
|
587
592
|
break;
|
|
588
593
|
}
|
|
589
594
|
return s;
|
|
590
|
-
},
|
|
595
|
+
}, Me = ({
|
|
591
596
|
label: a,
|
|
592
|
-
color:
|
|
597
|
+
color: r = "default",
|
|
593
598
|
textColor: s = "black",
|
|
594
|
-
size:
|
|
599
|
+
size: e = "md",
|
|
595
600
|
rounded: n = "md",
|
|
596
601
|
direction: o = "bottom",
|
|
597
602
|
position: d = "center"
|
|
598
603
|
}) => {
|
|
599
|
-
const c =
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
+
const c = f(
|
|
605
|
+
Fe[e],
|
|
606
|
+
R[r],
|
|
607
|
+
Se[s],
|
|
608
|
+
ze[n]
|
|
604
609
|
);
|
|
605
610
|
return /* @__PURE__ */ l("div", { className: "relative", children: [
|
|
606
611
|
/* @__PURE__ */ t(
|
|
@@ -613,47 +618,47 @@ const Q = {
|
|
|
613
618
|
/* @__PURE__ */ t(
|
|
614
619
|
"div",
|
|
615
620
|
{
|
|
616
|
-
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] ${Ae(o, d)} ${R[r]}`
|
|
617
622
|
}
|
|
618
623
|
)
|
|
619
624
|
] });
|
|
620
|
-
},
|
|
625
|
+
}, E = {
|
|
621
626
|
foreground: "#000000",
|
|
622
627
|
primary: "#112E62",
|
|
623
628
|
secondary: "#C59C4E",
|
|
624
629
|
success: "#17C964",
|
|
625
630
|
warning: "#F5A524",
|
|
626
631
|
danger: "#F31260"
|
|
627
|
-
},
|
|
632
|
+
}, N = {
|
|
628
633
|
foreground: "#A1A1AA",
|
|
629
634
|
primary: "#D6E0F3",
|
|
630
635
|
secondary: "#EEE1C9",
|
|
631
636
|
success: "#d1f4e0",
|
|
632
637
|
warning: "#fdedd3",
|
|
633
638
|
danger: "#fdd0df"
|
|
634
|
-
},
|
|
639
|
+
}, Ue = ({
|
|
635
640
|
value: a,
|
|
636
|
-
setValue:
|
|
641
|
+
setValue: r,
|
|
637
642
|
min: s = 0,
|
|
638
|
-
max:
|
|
643
|
+
max: e = 100,
|
|
639
644
|
step: n = 1,
|
|
640
645
|
color: o = "primary",
|
|
641
646
|
tooltipColor: d = "primary",
|
|
642
647
|
tooltipTextColor: c = "white"
|
|
643
648
|
}) => /* @__PURE__ */ t(
|
|
644
|
-
|
|
649
|
+
J,
|
|
645
650
|
{
|
|
646
651
|
value: a,
|
|
647
652
|
min: s,
|
|
648
|
-
max:
|
|
653
|
+
max: e,
|
|
649
654
|
step: n,
|
|
650
655
|
onChange: (i, u) => {
|
|
651
|
-
|
|
656
|
+
r(u);
|
|
652
657
|
},
|
|
653
658
|
onChangeCommitted: (i) => {
|
|
654
659
|
},
|
|
655
660
|
valueLabelFormat: (i) => /* @__PURE__ */ t(
|
|
656
|
-
|
|
661
|
+
Me,
|
|
657
662
|
{
|
|
658
663
|
color: d,
|
|
659
664
|
textColor: c,
|
|
@@ -670,28 +675,28 @@ const Q = {
|
|
|
670
675
|
width: "16px",
|
|
671
676
|
height: "16px",
|
|
672
677
|
border: "2px solid",
|
|
673
|
-
borderColor:
|
|
678
|
+
borderColor: E[o],
|
|
674
679
|
color: "#fff"
|
|
675
680
|
},
|
|
676
681
|
"& .MuiSlider-thumb.Mui-focusVisible": {
|
|
677
|
-
boxShadow: `0 0 0 4px ${
|
|
682
|
+
boxShadow: `0 0 0 4px ${N[o]}`
|
|
678
683
|
},
|
|
679
684
|
"& .MuiSlider-thumb.Mui-active": {
|
|
680
|
-
boxShadow: `0 0 0 4px ${
|
|
685
|
+
boxShadow: `0 0 0 4px ${N[o]}`
|
|
681
686
|
},
|
|
682
687
|
"& .MuiSlider-thumb:hover": {
|
|
683
|
-
boxShadow: `0 0 0 4px ${
|
|
688
|
+
boxShadow: `0 0 0 4px ${N[o]}`
|
|
684
689
|
},
|
|
685
690
|
"& .MuiSlider-track": {
|
|
686
|
-
color:
|
|
691
|
+
color: E[o]
|
|
687
692
|
},
|
|
688
693
|
"& .MuiSlider-valueLabel": {
|
|
689
694
|
backgroundColor: "transparent"
|
|
690
695
|
}
|
|
691
696
|
}
|
|
692
697
|
}
|
|
693
|
-
),
|
|
694
|
-
|
|
698
|
+
), Be = () => /* @__PURE__ */ t("div", { className: "custom-select-icon", children: /* @__PURE__ */ t(G, {}) }), Xe = ({ options: a, value: r, onChange: s }) => /* @__PURE__ */ t(
|
|
699
|
+
Q,
|
|
695
700
|
{
|
|
696
701
|
MenuProps: {
|
|
697
702
|
sx: {
|
|
@@ -710,7 +715,7 @@ const Q = {
|
|
|
710
715
|
}
|
|
711
716
|
}
|
|
712
717
|
},
|
|
713
|
-
IconComponent:
|
|
718
|
+
IconComponent: Be,
|
|
714
719
|
sx: {
|
|
715
720
|
width: "100%",
|
|
716
721
|
height: 34,
|
|
@@ -736,10 +741,10 @@ const Q = {
|
|
|
736
741
|
transform: "rotate(180deg)"
|
|
737
742
|
}
|
|
738
743
|
},
|
|
739
|
-
value:
|
|
740
|
-
onChange: (
|
|
741
|
-
children: a.map(({ title:
|
|
742
|
-
|
|
744
|
+
value: r,
|
|
745
|
+
onChange: (e) => s(e.target.value),
|
|
746
|
+
children: a.map(({ title: e, value: n }, o) => /* @__PURE__ */ t(
|
|
747
|
+
K,
|
|
743
748
|
{
|
|
744
749
|
sx: {
|
|
745
750
|
fontFamily: "YekanBakh",
|
|
@@ -762,44 +767,44 @@ const Q = {
|
|
|
762
767
|
}
|
|
763
768
|
},
|
|
764
769
|
value: n,
|
|
765
|
-
children:
|
|
770
|
+
children: e
|
|
766
771
|
},
|
|
767
772
|
o
|
|
768
773
|
))
|
|
769
774
|
}
|
|
770
|
-
),
|
|
775
|
+
), Ie = {
|
|
771
776
|
sm: "min-w-10 min-h-6",
|
|
772
777
|
md: "min-w-12 min-h-7",
|
|
773
778
|
lg: "min-w-14 min-h-8"
|
|
774
|
-
},
|
|
779
|
+
}, je = {
|
|
775
780
|
default: "bg-default-400",
|
|
776
781
|
primary: "bg-layout-focus",
|
|
777
782
|
secondary: "bg-base-secondary",
|
|
778
783
|
success: "bg-base-success",
|
|
779
784
|
warning: "bg-base-warning",
|
|
780
785
|
danger: "bg-base-danger"
|
|
781
|
-
},
|
|
786
|
+
}, Ze = ({
|
|
782
787
|
enabled: a,
|
|
783
|
-
onChange:
|
|
788
|
+
onChange: r,
|
|
784
789
|
label: s,
|
|
785
|
-
labelPosition:
|
|
790
|
+
labelPosition: e = "left",
|
|
786
791
|
size: n = "md",
|
|
787
792
|
color: o = "default",
|
|
788
793
|
disabled: d = !1
|
|
789
794
|
}) => {
|
|
790
|
-
const c =
|
|
791
|
-
|
|
795
|
+
const c = f(
|
|
796
|
+
e === "left" ? "flex-row" : "flex-row-reverse",
|
|
792
797
|
d && "opacity-50"
|
|
793
|
-
), i =
|
|
794
|
-
|
|
795
|
-
a ?
|
|
798
|
+
), i = f(
|
|
799
|
+
Ie[n],
|
|
800
|
+
a ? je[o] : "bg-default-700",
|
|
796
801
|
d && "cursor-auto"
|
|
797
802
|
);
|
|
798
803
|
return /* @__PURE__ */ l("div", { className: `flex items-center gap-2 ${c}`, children: [
|
|
799
804
|
/* @__PURE__ */ t(
|
|
800
805
|
"button",
|
|
801
806
|
{
|
|
802
|
-
onClick:
|
|
807
|
+
onClick: r,
|
|
803
808
|
className: `relative rounded-full transition-colors duration-300 p-1 ${i}`,
|
|
804
809
|
disabled: d,
|
|
805
810
|
children: /* @__PURE__ */ t(
|
|
@@ -816,16 +821,104 @@ const Q = {
|
|
|
816
821
|
),
|
|
817
822
|
s && /* @__PURE__ */ t("p", { className: `text-default-600 ${n === "sm" && "text-sm"}`, children: s })
|
|
818
823
|
] });
|
|
819
|
-
}
|
|
824
|
+
}, De = {
|
|
825
|
+
sm: "h-8 py-1",
|
|
826
|
+
lg: "h-10 py-2"
|
|
827
|
+
}, Pe = {
|
|
828
|
+
flat: "bg-default-100 hover:bg-default-200 focus:bg-transparent focus:border-2 border-[#11181C]",
|
|
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
|
+
bordered: "bg-transparent border-2 border-default-200 hover:border-default-400 focus:border-[#11181C]"
|
|
831
|
+
}, Re = ({
|
|
832
|
+
value: a,
|
|
833
|
+
onChange: r,
|
|
834
|
+
placeHolder: s,
|
|
835
|
+
inputIcon: e,
|
|
836
|
+
inputEndIcon: n,
|
|
837
|
+
inputProps: o,
|
|
838
|
+
inputRef: d,
|
|
839
|
+
size: c,
|
|
840
|
+
variant: i,
|
|
841
|
+
iconOnClick: u,
|
|
842
|
+
endIconOnClick: b
|
|
843
|
+
}) => /* @__PURE__ */ l("div", { ref: d, className: "relative", children: [
|
|
844
|
+
e && /* @__PURE__ */ t(
|
|
845
|
+
"button",
|
|
846
|
+
{
|
|
847
|
+
onClick: u,
|
|
848
|
+
className: "absolute top-1/2 -translate-y-1/2 right-2",
|
|
849
|
+
children: e
|
|
850
|
+
}
|
|
851
|
+
),
|
|
852
|
+
/* @__PURE__ */ t(
|
|
853
|
+
"input",
|
|
854
|
+
{
|
|
855
|
+
...o,
|
|
856
|
+
type: "text",
|
|
857
|
+
value: a,
|
|
858
|
+
onChange: (p) => r && r(p.target.value),
|
|
859
|
+
placeholder: s,
|
|
860
|
+
className: `${Pe[i]} ${De[c]} transition-all duration-300 w-full px-3 text-sm outline-none rounded-sm ${n && "pl-[30px]"} ${e && "pr-[30px]"}`
|
|
861
|
+
}
|
|
862
|
+
),
|
|
863
|
+
n && /* @__PURE__ */ t(
|
|
864
|
+
"button",
|
|
865
|
+
{
|
|
866
|
+
onClick: b,
|
|
867
|
+
className: "absolute top-1/2 -translate-y-1/2 left-2",
|
|
868
|
+
children: n
|
|
869
|
+
}
|
|
870
|
+
)
|
|
871
|
+
] }), He = ({
|
|
872
|
+
label: a,
|
|
873
|
+
placeHolder: r,
|
|
874
|
+
inputIcon: s,
|
|
875
|
+
inputEndIcon: e,
|
|
876
|
+
value: n,
|
|
877
|
+
onChange: o,
|
|
878
|
+
size: d = "sm",
|
|
879
|
+
variant: c = "flat",
|
|
880
|
+
options: i,
|
|
881
|
+
optionsUI: u,
|
|
882
|
+
iconOnClick: b,
|
|
883
|
+
endIconOnClick: p
|
|
884
|
+
}) => /* @__PURE__ */ t(
|
|
885
|
+
U,
|
|
886
|
+
{
|
|
887
|
+
disablePortal: !0,
|
|
888
|
+
options: i,
|
|
889
|
+
sx: { width: "100%" },
|
|
890
|
+
renderOption: (g, m) => /* @__PURE__ */ t("li", { ...g, children: u.find(({ id: h }) => h === m.id)?.element }),
|
|
891
|
+
renderInput: (g) => /* @__PURE__ */ l("div", { children: [
|
|
892
|
+
a && /* @__PURE__ */ t("div", { className: "h-4 text-xs mb-2 text-default-600", children: a }),
|
|
893
|
+
/* @__PURE__ */ t(
|
|
894
|
+
Re,
|
|
895
|
+
{
|
|
896
|
+
value: n,
|
|
897
|
+
onChange: o,
|
|
898
|
+
placeHolder: r,
|
|
899
|
+
inputIcon: s,
|
|
900
|
+
inputEndIcon: e,
|
|
901
|
+
inputProps: g.slotProps.htmlInput,
|
|
902
|
+
inputRef: g.slotProps.input.ref,
|
|
903
|
+
size: d,
|
|
904
|
+
variant: c,
|
|
905
|
+
iconOnClick: b,
|
|
906
|
+
endIconOnClick: p
|
|
907
|
+
}
|
|
908
|
+
)
|
|
909
|
+
] })
|
|
910
|
+
}
|
|
911
|
+
);
|
|
820
912
|
export {
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
913
|
+
Ve as Alert,
|
|
914
|
+
He as Autocomplete,
|
|
915
|
+
Ye as Badge,
|
|
916
|
+
Ge as Button,
|
|
917
|
+
Je as Chip,
|
|
918
|
+
Ke as Input,
|
|
919
|
+
Qe as Radio,
|
|
920
|
+
Ue as RangeSlider,
|
|
921
|
+
Xe as Select,
|
|
922
|
+
Ze as Switch,
|
|
923
|
+
Me as Tooltip
|
|
831
924
|
};
|