am-shared-assets 1.0.4 → 1.0.6

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.
@@ -8,4 +8,3 @@ export { RangeSlider } from './RangeSlider';
8
8
  export { Select } from './Select';
9
9
  export { Switch } from './Switch';
10
10
  export { Tooltip } from './Tooltip';
11
- export { Autocomplete } from './Autocomplete';
@@ -1,57 +1,55 @@
1
- import { jsxs as u, jsx as t, Fragment as O } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as t, Fragment as O } from "react/jsx-runtime";
2
2
  import { I as F, b as S, a as W, W as q, T as V, C as Y } from "./ChevronBottomIcon-BM6pUrh1.js";
3
3
  import { Slider as G, MenuItem as J } from "@mui/material";
4
4
  import K from "@mui/material/Select";
5
- import Q from "@mui/material/Autocomplete";
6
- import "react";
7
- function E(a) {
8
- var r, s, e = "";
9
- if (typeof a == "string" || typeof a == "number") e += a;
5
+ function T(a) {
6
+ var e, s, r = "";
7
+ if (typeof a == "string" || typeof a == "number") r += a;
10
8
  else if (typeof a == "object") if (Array.isArray(a)) {
11
9
  var n = a.length;
12
- for (r = 0; r < n; r++) a[r] && (s = E(a[r])) && (e && (e += " "), e += s);
13
- } else for (s in a) a[s] && (e && (e += " "), e += s);
14
- return e;
10
+ for (e = 0; e < n; e++) a[e] && (s = T(a[e])) && (r && (r += " "), r += s);
11
+ } else for (s in a) a[s] && (r && (r += " "), r += s);
12
+ return r;
15
13
  }
16
- function g() {
17
- for (var a, r, s = 0, e = "", n = arguments.length; s < n; s++) (a = arguments[s]) && (r = E(a)) && (e && (e += " "), e += r);
18
- return e;
14
+ function b() {
15
+ for (var a, e, s = 0, r = "", n = arguments.length; s < n; s++) (a = arguments[s]) && (e = T(a)) && (r && (r += " "), r += e);
16
+ return r;
19
17
  }
20
- const U = {
18
+ const Q = {
21
19
  sm: "text-xs",
22
20
  md: "text-sm"
23
- }, X = {
21
+ }, U = {
24
22
  default: "w-[342px] min-w-[342px]",
25
23
  full: "w-full"
26
- }, Z = {
24
+ }, X = {
27
25
  default: "bg-default-100",
28
26
  primary: "bg-primary-50",
29
27
  secondary: "bg-secondary-50",
30
28
  success: "bg-success-50",
31
29
  warning: "bg-warning-50",
32
30
  danger: "bg-danger-50"
33
- }, H = {
31
+ }, Z = {
34
32
  default: "text-default-900",
35
33
  primary: "text-base-primary",
36
34
  secondary: "text-base-secondary",
37
35
  success: "text-base-success",
38
36
  warning: "text-default-900",
39
37
  danger: "text-base-danger"
40
- }, ee = {
38
+ }, H = {
41
39
  default: "text-default-600",
42
40
  primary: "text-base-primary",
43
41
  secondary: "text-base-secondary",
44
42
  success: "text-base-success",
45
43
  warning: "text-default-600",
46
44
  danger: "text-base-danger"
47
- }, re = {
45
+ }, ee = {
48
46
  default: "bg-default-300",
49
47
  primary: "bg-base-primary",
50
48
  secondary: "bg-base-secondary",
51
49
  success: "bg-base-success",
52
50
  warning: "bg-base-warning",
53
51
  danger: "bg-base-danger"
54
- }, se = {
52
+ }, re = {
55
53
  white: "text-white",
56
54
  black: "text-default-900"
57
55
  }, z = {
@@ -71,116 +69,116 @@ const U = {
71
69
  success: "#17c964",
72
70
  warning: "#f5a524",
73
71
  danger: "#f31260"
74
- }, v = {
72
+ }, $ = {
75
73
  success: /* @__PURE__ */ t(V, { color: "#17C964", size: 24 }),
76
74
  warning: /* @__PURE__ */ t(q, { color: "#F5A524", size: 24 }),
77
75
  danger: /* @__PURE__ */ t(W, { color: "#F31260", size: 24 })
78
- }, ae = {
76
+ }, se = {
79
77
  none: "rounded-none",
80
78
  sm: "rounded-md",
81
79
  md: "rounded-xl",
82
80
  lg: "rounded-[22px]",
83
81
  full: "rounded-full"
84
- }, qe = ({
82
+ }, Re = ({
85
83
  title: a,
86
- description: r,
84
+ description: e,
87
85
  color: s = "default",
88
- size: e = "md",
86
+ size: r = "md",
89
87
  width: n = "default",
90
88
  rounded: o = "none",
91
89
  infoIconAlignment: d,
92
90
  isInfoIcon: c = !0,
93
91
  hasCloseButton: i = !0,
94
- hasButton: l = !1,
95
- buttonTitle: f,
96
- buttonTextColor: p = "black",
97
- buttonClickHandler: b,
98
- closeAlertHandler: x,
99
- children: h
92
+ hasButton: u = !1,
93
+ buttonTitle: x,
94
+ buttonTextColor: h = "black",
95
+ buttonClickHandler: f,
96
+ closeAlertHandler: w,
97
+ children: y
100
98
  }) => {
101
- const w = g(
102
- X[n],
103
- U[e],
104
- ae[o],
105
- Z[s]
99
+ const p = b(
100
+ U[n],
101
+ Q[r],
102
+ se[o],
103
+ X[s]
106
104
  );
107
- return h ? /* @__PURE__ */ u(
105
+ return y ? /* @__PURE__ */ l(
108
106
  "div",
109
107
  {
110
- className: `flex p-3 ${w} ${d && A[d]}`,
108
+ className: `flex p-3 ${p} ${d && A[d]}`,
111
109
  children: [
112
- /* @__PURE__ */ t("div", { className: "mt-[1px]", children: c || !v[s] ? /* @__PURE__ */ t(F, { color: M[s] }) : v[s] }),
113
- h
110
+ /* @__PURE__ */ t("div", { className: "mt-[1px]", children: c || !$[s] ? /* @__PURE__ */ t(F, { color: M[s] }) : $[s] }),
111
+ y
114
112
  ]
115
113
  }
116
- ) : /* @__PURE__ */ u("div", { className: `relative flex justify-between p-3 ${w}`, children: [
117
- /* @__PURE__ */ u(
114
+ ) : /* @__PURE__ */ l("div", { className: `relative flex justify-between p-3 ${p}`, children: [
115
+ /* @__PURE__ */ l(
118
116
  "div",
119
117
  {
120
- className: `flex ${d ? A[d] : l ? "items-center" : a && r ? "items-start" : "items-center"} gap-3`,
118
+ className: `flex ${d ? A[d] : u ? "items-center" : a && e ? "items-start" : "items-center"} gap-3`,
121
119
  children: [
122
- /* @__PURE__ */ t("div", { className: "mt-[1px]", children: c || !v[s] ? /* @__PURE__ */ t(F, { color: M[s] }) : v[s] }),
123
- /* @__PURE__ */ u("div", { children: [
124
- a && /* @__PURE__ */ t("h2", { className: `font-semibold ${H[s]}`, children: a }),
125
- r && /* @__PURE__ */ t("p", { className: ee[s], children: r })
120
+ /* @__PURE__ */ t("div", { className: "mt-[1px]", children: c || !$[s] ? /* @__PURE__ */ t(F, { color: M[s] }) : $[s] }),
121
+ /* @__PURE__ */ l("div", { children: [
122
+ a && /* @__PURE__ */ t("h2", { className: `font-semibold ${Z[s]}`, children: a }),
123
+ e && /* @__PURE__ */ t("p", { className: H[s], children: e })
126
124
  ] })
127
125
  ]
128
126
  }
129
127
  ),
130
- l ? /* @__PURE__ */ u("div", { className: "flex items-center", children: [
128
+ u ? /* @__PURE__ */ l("div", { className: "flex items-center", children: [
131
129
  /* @__PURE__ */ t(
132
130
  "button",
133
131
  {
134
- onClick: b,
135
- className: `h-8 px-3 rounded-md ${re[s]} ${se[p]}`,
136
- children: f
132
+ onClick: f,
133
+ className: `h-8 px-3 rounded-md ${ee[s]} ${re[h]}`,
134
+ children: x
137
135
  }
138
136
  ),
139
137
  i && /* @__PURE__ */ t(
140
138
  "button",
141
139
  {
142
- onClick: x,
140
+ onClick: w,
143
141
  className: "absolute -top-1 -left-1 border border-default-300 bg-default-100 rounded-full",
144
142
  children: /* @__PURE__ */ t(S, { color: z.default, size: 14 })
145
143
  }
146
144
  )
147
- ] }) : i && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("button", { onClick: x, children: /* @__PURE__ */ t(S, { color: z[s] }) }) })
145
+ ] }) : i && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("button", { onClick: w, children: /* @__PURE__ */ t(S, { color: z[s] }) }) })
148
146
  ] });
149
- }, te = {
147
+ }, ae = {
150
148
  sm: "h-5 text-xs px-2",
151
149
  md: "h-6 text-sm px-2.5",
152
150
  lg: "h-7 text-sm px-3"
153
- }, ne = {
151
+ }, te = {
154
152
  neutral: "bg-default-500",
155
153
  default: "bg-default-200",
156
154
  primary: "bg-layout-focus",
157
155
  danger: "bg-base-danger",
158
156
  success: "bg-base-success"
159
- }, oe = {
157
+ }, ne = {
160
158
  white: "text-content-1",
161
159
  black: "text-layout-fg"
162
- }, de = {
160
+ }, oe = {
163
161
  pill: "rounded-full",
164
162
  Rectangle: "rounded-xxs"
165
- }, Ve = ({
163
+ }, Te = ({
166
164
  label: a,
167
- color: r = "default",
165
+ color: e = "default",
168
166
  type: s = "pill",
169
- size: e = "md",
167
+ size: r = "md",
170
168
  textColor: n = "black"
171
169
  }) => {
172
- const o = g(
173
- ne[r],
174
- oe[n],
170
+ const o = b(
175
171
  te[e],
176
- de[s]
172
+ ne[n],
173
+ ae[r],
174
+ oe[s]
177
175
  );
178
176
  return /* @__PURE__ */ t("div", { className: `flex justify-center items-center ${o}`, children: a });
179
- }, ce = {
177
+ }, de = {
180
178
  sm: "h-8 text-xs px-3",
181
179
  md: "h-10 text-sm px-4",
182
180
  lg: "h-12 text-base px-6"
183
- }, y = {
181
+ }, m = {
184
182
  white: "text-white",
185
183
  black: "text-default-900",
186
184
  default: "text-default-900",
@@ -203,94 +201,94 @@ const U = {
203
201
  success: "border-base-success",
204
202
  warning: "border-base-warning",
205
203
  danger: "border-base-danger"
206
- }, j = {
204
+ }, E = {
207
205
  default: "bg-default-100",
208
206
  primary: "bg-primary-100",
209
207
  secondary: "bg-secondary-100",
210
208
  success: "bg-success-100",
211
209
  warning: "bg-warning-100",
212
210
  danger: "bg-danger-100"
213
- }, ie = {
211
+ }, ce = {
214
212
  none: "rounded-none",
215
213
  sm: "rounded-sm",
216
214
  md: "rounded-md",
217
215
  lg: "rounded-lg",
218
216
  full: "rounded-full"
219
- }, le = (a, r, s) => {
220
- let e = "";
217
+ }, ie = (a, e, s) => {
218
+ let r = "";
221
219
  switch (a) {
222
220
  case "solid":
223
- e = `${B[r]} ${y[s]}`;
221
+ r = `${B[e]} ${m[s]}`;
224
222
  break;
225
223
  case "bordered":
226
- e = `border-2 ${I[r]} ${y[r]}`;
224
+ r = `border-2 ${I[e]} ${m[e]}`;
227
225
  break;
228
226
  case "light":
229
- e = y[r];
227
+ r = m[e];
230
228
  break;
231
229
  case "flat":
232
- e = `${j[r]} ${y[r]}`;
230
+ r = `${E[e]} ${m[e]}`;
233
231
  break;
234
232
  case "faded":
235
- e = `border-2 ${I.default} ${j.default} ${y[r]}`;
233
+ r = `border-2 ${I.default} ${E.default} ${m[e]}`;
236
234
  break;
237
235
  case "shadow":
238
- e = `shadow-lg ${B[r]} ${y[s]}`;
236
+ r = `shadow-lg ${B[e]} ${m[s]}`;
239
237
  break;
240
238
  }
241
- return e;
242
- }, Ye = ({
239
+ return r;
240
+ }, Le = ({
243
241
  type: a = "button",
244
- variant: r = "solid",
242
+ variant: e = "solid",
245
243
  color: s = "default",
246
- textColor: e = "black",
244
+ textColor: r = "black",
247
245
  size: n = "md",
248
246
  rounded: o = "none",
249
247
  label: d,
250
248
  icon: c,
251
249
  iconPosition: i = "left",
252
- width: l = "auto",
253
- disabled: f = !1,
254
- onClick: p
250
+ width: u = "auto",
251
+ disabled: x = !1,
252
+ onClick: h
255
253
  }) => {
256
- const b = g(
257
- l === "full" ? "w-full" : "w-auto",
254
+ const f = b(
255
+ u === "full" ? "w-full" : "w-auto",
258
256
  i === "right" ? "flex-row" : "flex-row-reverse",
259
- ie[o],
260
- ce[n],
261
- le(r, s, e)
257
+ ce[o],
258
+ de[n],
259
+ ie(e, s, r)
262
260
  );
263
- return /* @__PURE__ */ u(
261
+ return /* @__PURE__ */ l(
264
262
  "button",
265
263
  {
266
264
  type: a,
267
- className: "flex items-center justify-center gap-2 font-semibold transition-all duration-300 " + b,
268
- onClick: p,
269
- disabled: f,
265
+ className: "flex items-center justify-center gap-2 font-semibold transition-all duration-300 " + f,
266
+ onClick: h,
267
+ disabled: x,
270
268
  children: [
271
269
  c,
272
270
  d && /* @__PURE__ */ t("p", { children: d })
273
271
  ]
274
272
  }
275
273
  );
276
- }, ue = {
274
+ }, le = {
277
275
  sm: "h-6 text-xs",
278
276
  md: "h-7 text-sm",
279
277
  lg: "h-8 text-base"
280
- }, be = {
278
+ }, ue = {
281
279
  none: "rounded-none",
282
280
  sm: "rounded-sm",
283
281
  md: "rounded-md",
284
282
  lg: "rounded-lg",
285
283
  full: "rounded-full"
286
- }, D = {
284
+ }, j = {
287
285
  default: "bg-default-200",
288
286
  primary: "bg-base-primary",
289
287
  secondary: "bg-base-secondary",
290
288
  success: "bg-base-success",
291
289
  warning: "bg-base-warning",
292
290
  danger: "bg-base-danger"
293
- }, m = {
291
+ }, g = {
294
292
  white: "text-content-1",
295
293
  black: "text-layout-fg",
296
294
  default: "text-layout-fg",
@@ -299,85 +297,85 @@ const U = {
299
297
  success: "text-base-success",
300
298
  warning: "text-base-warning",
301
299
  danger: "text-base-danger"
302
- }, $ = {
300
+ }, v = {
303
301
  default: "border-default-200",
304
302
  primary: "border-base-primary",
305
303
  secondary: "border-base-secondary",
306
304
  success: "border-base-success",
307
305
  warning: "border-base-warning",
308
306
  danger: "border-base-danger"
309
- }, ge = {
307
+ }, be = {
310
308
  default: "bg-default-200",
311
309
  primary: "bg-primary-100",
312
310
  secondary: "bg-secondary-100",
313
311
  success: "bg-success-100",
314
312
  warning: "bg-warning-100",
315
313
  danger: "bg-danger-100"
316
- }, fe = {
314
+ }, ge = {
317
315
  default: "bg-default-400",
318
316
  primary: "bg-base-primary",
319
317
  secondary: "bg-base-secondary",
320
318
  success: "bg-base-success",
321
319
  warning: "bg-base-warning",
322
320
  danger: "bg-base-danger"
323
- }, pe = (a, r, s) => {
324
- let e = "";
321
+ }, fe = (a, e, s) => {
322
+ let r = "";
325
323
  switch (a) {
326
324
  case "solid":
327
- e = `${D[r]} ${m[s]}`;
325
+ r = `${j[e]} ${g[s]}`;
328
326
  break;
329
327
  case "bordered":
330
- e = `border-2 ${$[r]} ${m[r]}`;
328
+ r = `border-2 ${v[e]} ${g[e]}`;
331
329
  break;
332
330
  case "light":
333
- e = m[r];
331
+ r = g[e];
334
332
  break;
335
333
  case "flat":
336
- e = `${ge[r]} ${m[r]}`;
334
+ r = `${be[e]} ${g[e]}`;
337
335
  break;
338
336
  case "faded":
339
- e = `border-2 ${$.default} bg-default-100 ${m[r]}`;
337
+ r = `border-2 ${v.default} bg-default-100 ${g[e]}`;
340
338
  break;
341
339
  case "shadow":
342
- e = `shadow-lg ${D[r]} ${m[s]}`;
340
+ r = `shadow-lg ${j[e]} ${g[s]}`;
343
341
  break;
344
342
  case "dot":
345
- e = `border-2 ${$.default} ${m.black}`;
343
+ r = `border-2 ${v.default} ${g.black}`;
346
344
  break;
347
345
  }
348
- return e;
349
- }, Ge = ({
346
+ return r;
347
+ }, Pe = ({
350
348
  variant: a = "solid",
351
- color: r = "default",
349
+ color: e = "default",
352
350
  textColor: s = "black",
353
- label: e,
351
+ label: r,
354
352
  size: n = "md",
355
353
  rounded: o = "none",
356
354
  children: d
357
355
  }) => {
358
- const c = g(
359
- be[o],
360
- ue[n],
361
- pe(a, r, s)
356
+ const c = b(
357
+ ue[o],
358
+ le[n],
359
+ fe(a, e, s)
362
360
  );
363
- return /* @__PURE__ */ t("div", { className: `w-fit flex items-center justify-center gap-1 px-2 ${c}`, children: d || /* @__PURE__ */ u(O, { children: [
364
- /* @__PURE__ */ t("p", { children: e }),
365
- a === "dot" && /* @__PURE__ */ t("div", { className: `size-2 rounded-full ${fe[r]}` })
361
+ return /* @__PURE__ */ t("div", { className: `w-fit flex items-center justify-center gap-1 px-2 ${c}`, children: d || /* @__PURE__ */ l(O, { children: [
362
+ /* @__PURE__ */ t("p", { children: r }),
363
+ a === "dot" && /* @__PURE__ */ t("div", { className: `size-2 rounded-full ${ge[e]}` })
366
364
  ] }) });
367
- }, me = {
365
+ }, pe = {
368
366
  sm: "h-8 py-1",
369
367
  lg: "h-10 py-2"
370
- }, xe = {
368
+ }, me = {
371
369
  default: "text-default-600",
372
370
  primary: "text-base-primary",
373
371
  success: "text-base-success",
374
372
  warning: "text-base-warning",
375
373
  danger: "text-base-danger"
376
- }, he = {
374
+ }, xe = {
377
375
  primary: "text-base-primary hover:text-base-primary",
378
376
  success: "text-base-success hover:text-base-success",
379
377
  warning: "text-base-warning hover:text-base-warning"
380
- }, we = {
378
+ }, he = {
381
379
  default: "bg-default-100 hover:bg-default-200 focus-within:hover:bg-transparent",
382
380
  primary: "bg-primary-100 hover:bg-primary-50 focus-within:hover:bg-transparent",
383
381
  success: "bg-success-100 hover:bg-success-50 focus-within:hover:bg-transparent",
@@ -389,76 +387,76 @@ const U = {
389
387
  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
388
  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
389
  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
- }, ye = {
390
+ }, we = {
393
391
  default: "hover:border-default-400",
394
392
  primary: "hover:border-base-primary",
395
393
  success: "hover:border-base-success",
396
394
  warning: "hover:border-base-warning",
397
395
  danger: "hover:border-base-danger"
398
- }, ve = {
396
+ }, ye = {
399
397
  sm: "rounded-sm",
400
398
  full: "rounded-full"
401
- }, $e = (a, r, s) => {
402
- let e = "";
399
+ }, $e = (a, e, s) => {
400
+ let r = "";
403
401
  if (s)
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";
402
+ 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
403
  switch (a) {
406
404
  case "flat":
407
- e = `${we[r]} ${C[r]} ${he[r]} focus-within:text-layout-fg`;
405
+ r = `${he[e]} ${C[e]} ${xe[e]} focus-within:text-layout-fg`;
408
406
  break;
409
407
  case "bordered":
410
- e = `bg-transparent border border-default-200 hover:border-default-400 ${C[r]}`;
408
+ r = `bg-transparent border border-default-200 hover:border-default-400 ${C[e]}`;
411
409
  break;
412
410
  case "faded":
413
- e = `border border-default-200 bg-default-100 hover:bg-default-200 ${ye[r]} ${C[r]}`;
411
+ r = `border border-default-200 bg-default-100 hover:bg-default-200 ${we[e]} ${C[e]}`;
414
412
  break;
415
413
  }
416
- return e;
417
- }, Je = ({
414
+ return r;
415
+ }, Oe = ({
418
416
  id: a,
419
- label: r,
417
+ label: e,
420
418
  required: s = !1,
421
- register: e,
419
+ register: r,
422
420
  name: n,
423
421
  value: o,
424
422
  onChange: d,
425
423
  placeHolder: c,
426
424
  variant: i = "flat",
427
- color: l = "default",
428
- size: f = "sm",
429
- rounded: p = "sm",
430
- description: b = "",
431
- icon: x,
432
- endIcon: h,
433
- errorMsg: w = "",
434
- hasError: N = !1
425
+ color: u = "default",
426
+ size: x = "sm",
427
+ rounded: h = "sm",
428
+ description: f = "",
429
+ icon: w,
430
+ endIcon: y,
431
+ errorMsg: p = "",
432
+ hasError: _ = !1
435
433
  }) => {
436
- const T = g(ve[p], $e(i, l, N)), _ = g(me[f]);
437
- return /* @__PURE__ */ u("label", { className: "flex flex-col w-full", children: [
438
- r && /* @__PURE__ */ u(
434
+ const L = b(ye[h], $e(i, u, _)), N = b(pe[x]);
435
+ return /* @__PURE__ */ l("label", { className: "flex flex-col w-full", children: [
436
+ e && /* @__PURE__ */ l(
439
437
  "div",
440
438
  {
441
- className: `h-4 text-xs mb-2 ${N ? "text-base-danger" : xe[l]}`,
439
+ className: `h-4 text-xs mb-2 ${_ ? "text-base-danger" : me[u]}`,
442
440
  children: [
443
- r,
441
+ e,
444
442
  s && /* @__PURE__ */ t("span", { className: "text-base-danger text-sm", children: "*" })
445
443
  ]
446
444
  }
447
445
  ),
448
- /* @__PURE__ */ u(
446
+ /* @__PURE__ */ l(
449
447
  "div",
450
448
  {
451
- className: `${T} flex items-center px-1.5 transition-all duration-200`,
449
+ className: `${L} flex items-center px-1.5 transition-all duration-200`,
452
450
  children: [
453
- x,
454
- e ? /* @__PURE__ */ t(
451
+ w,
452
+ r ? /* @__PURE__ */ t(
455
453
  "input",
456
454
  {
457
455
  id: `${a}`,
458
456
  type: "text",
459
- ...e(n),
457
+ ...r(n),
460
458
  placeholder: c,
461
- className: `${_} bg-transparent w-full px-1.5 text-sm outline-none`
459
+ className: `${N} bg-transparent w-full px-1.5 text-sm outline-none`
462
460
  }
463
461
  ) : /* @__PURE__ */ t(
464
462
  "input",
@@ -466,64 +464,64 @@ const U = {
466
464
  id: `${a}`,
467
465
  type: "text",
468
466
  value: o,
469
- onChange: (L) => d && d(L.target.value),
467
+ onChange: (P) => d && d(P.target.value),
470
468
  placeholder: c,
471
- className: `${_} bg-transparent w-full px-1.5 text-sm outline-none`
469
+ className: `${N} bg-transparent w-full px-1.5 text-sm outline-none`
472
470
  }
473
471
  ),
474
- h
472
+ y
475
473
  ]
476
474
  }
477
475
  ),
478
- b && !w && /* @__PURE__ */ t("p", { className: "mt-1 text-xs text-default-400", children: b }),
479
- w && /* @__PURE__ */ t("p", { className: "mt-1 mr-1 text-xs text-base-danger", children: w })
476
+ f && !p && /* @__PURE__ */ t("p", { className: "mt-1 text-xs text-default-400", children: f }),
477
+ p && /* @__PURE__ */ t("p", { className: "mt-1 mr-1 text-xs text-base-danger", children: p })
480
478
  ] });
481
- }, Ce = {
479
+ }, ve = {
482
480
  sm: "size-4 min-w-4 p-[3px]",
483
481
  md: "size-5 min-w-5 p-1",
484
482
  lg: "size-6 min-w-6 p-[5px]"
485
- }, ke = {
483
+ }, Ce = {
486
484
  primary: "border-base-primary",
487
485
  secondary: "border-base-secondary",
488
486
  success: "border-base-success",
489
487
  warning: "border-base-warning",
490
488
  danger: "border-base-danger",
491
489
  neutral: "border-default-500"
492
- }, Ne = {
490
+ }, ke = {
493
491
  primary: "bg-base-primary",
494
492
  secondary: "bg-base-secondary",
495
493
  success: "bg-base-success",
496
494
  warning: "bg-base-warning",
497
495
  danger: "bg-base-danger",
498
496
  neutral: "bg-default-500"
499
- }, Ke = ({
497
+ }, We = ({
500
498
  name: a,
501
- value: r,
499
+ value: e,
502
500
  checked: s,
503
- disabled: e = !1,
501
+ disabled: r = !1,
504
502
  onChange: n,
505
503
  size: o = "md",
506
504
  color: d = "primary",
507
505
  children: c
508
506
  }) => {
509
- const i = g(
510
- Ce[o],
511
- s ? ke[d] : "border-base-default hover:bg-default-100 transition-all duration-200"
507
+ const i = b(
508
+ ve[o],
509
+ s ? Ce[d] : "border-base-default hover:bg-default-100 transition-all duration-200"
512
510
  );
513
- return /* @__PURE__ */ u(
511
+ return /* @__PURE__ */ l(
514
512
  "label",
515
513
  {
516
- className: `flex items-center gap-2 ${e ? "opacity-50" : "cursor-pointer"}`,
514
+ className: `flex items-center gap-2 ${r ? "opacity-50" : "cursor-pointer"}`,
517
515
  children: [
518
516
  /* @__PURE__ */ t(
519
517
  "input",
520
518
  {
521
519
  name: a,
522
520
  type: "radio",
523
- value: r,
521
+ value: e,
524
522
  checked: s,
525
- onChange: (l) => n && n(l.target.value),
526
- disabled: e,
523
+ onChange: (u) => n && n(u.target.value),
524
+ disabled: r,
527
525
  style: { display: "none" }
528
526
  }
529
527
  ),
@@ -534,7 +532,7 @@ const U = {
534
532
  children: s && /* @__PURE__ */ t(
535
533
  "span",
536
534
  {
537
- className: `block w-full h-full rounded-full ${Ne[d]}`
535
+ className: `block w-full h-full rounded-full ${ke[d]}`
538
536
  }
539
537
  )
540
538
  }
@@ -547,25 +545,25 @@ const U = {
547
545
  sm: "min-h-6 text-xs",
548
546
  md: "min-h-7 text-sm",
549
547
  lg: "min-h-8 text-base"
550
- }, P = {
548
+ }, D = {
551
549
  default: "bg-content-1",
552
550
  primary: "bg-layout-focus",
553
551
  secondary: "bg-base-secondary",
554
552
  success: "bg-base-success",
555
553
  warning: "bg-base-warning",
556
554
  danger: "bg-base-danger"
557
- }, Fe = {
555
+ }, Ne = {
558
556
  white: "text-content-1",
559
557
  black: "text-default-900"
560
- }, Se = {
558
+ }, Fe = {
561
559
  none: "rounded-none",
562
560
  sm: "rounded-sm",
563
561
  md: "rounded-md",
564
562
  lg: "rounded-lg",
565
563
  full: "rounded-full"
566
- }, ze = (a, r) => {
564
+ }, Se = (a, e) => {
567
565
  let s = "";
568
- const e = {
566
+ const r = {
569
567
  start: "left-4",
570
568
  center: "left-1/2 -translate-x-1/2",
571
569
  end: "right-4"
@@ -576,35 +574,35 @@ const U = {
576
574
  };
577
575
  switch (a) {
578
576
  case "top":
579
- s = "top-[-3px] " + e[r];
577
+ s = "top-[-3px] " + r[e];
580
578
  break;
581
579
  case "right":
582
- s = "right-[-3px] " + n[r];
580
+ s = "right-[-3px] " + n[e];
583
581
  break;
584
582
  case "bottom":
585
- s = "bottom-[-3px] " + e[r];
583
+ s = "bottom-[-3px] " + r[e];
586
584
  break;
587
585
  case "left":
588
- s = "left-[-3px] " + n[r];
586
+ s = "left-[-3px] " + n[e];
589
587
  break;
590
588
  }
591
589
  return s;
592
- }, Ae = ({
590
+ }, ze = ({
593
591
  label: a,
594
- color: r = "default",
592
+ color: e = "default",
595
593
  textColor: s = "black",
596
- size: e = "md",
594
+ size: r = "md",
597
595
  rounded: n = "md",
598
596
  direction: o = "bottom",
599
597
  position: d = "center"
600
598
  }) => {
601
- const c = g(
602
- _e[e],
603
- P[r],
604
- Fe[s],
605
- Se[n]
599
+ const c = b(
600
+ _e[r],
601
+ D[e],
602
+ Ne[s],
603
+ Fe[n]
606
604
  );
607
- return /* @__PURE__ */ u("div", { className: "relative", children: [
605
+ return /* @__PURE__ */ l("div", { className: "relative", children: [
608
606
  /* @__PURE__ */ t(
609
607
  "div",
610
608
  {
@@ -615,7 +613,7 @@ const U = {
615
613
  /* @__PURE__ */ t(
616
614
  "div",
617
615
  {
618
- 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] ${ze(o, d)} ${P[r]}`
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] ${Se(o, d)} ${D[e]}`
619
617
  }
620
618
  )
621
619
  ] });
@@ -633,11 +631,11 @@ const U = {
633
631
  success: "#d1f4e0",
634
632
  warning: "#fdedd3",
635
633
  danger: "#fdd0df"
636
- }, Qe = ({
634
+ }, qe = ({
637
635
  value: a,
638
- setValue: r,
636
+ setValue: e,
639
637
  min: s = 0,
640
- max: e = 100,
638
+ max: r = 100,
641
639
  step: n = 1,
642
640
  color: o = "primary",
643
641
  tooltipColor: d = "primary",
@@ -647,15 +645,15 @@ const U = {
647
645
  {
648
646
  value: a,
649
647
  min: s,
650
- max: e,
648
+ max: r,
651
649
  step: n,
652
- onChange: (i, l) => {
653
- r(l);
650
+ onChange: (i, u) => {
651
+ e(u);
654
652
  },
655
653
  onChangeCommitted: (i) => {
656
654
  },
657
655
  valueLabelFormat: (i) => /* @__PURE__ */ t(
658
- Ae,
656
+ ze,
659
657
  {
660
658
  color: d,
661
659
  textColor: c,
@@ -692,7 +690,7 @@ const U = {
692
690
  }
693
691
  }
694
692
  }
695
- ), Me = () => /* @__PURE__ */ t("div", { className: "custom-select-icon", children: /* @__PURE__ */ t(Y, {}) }), Ue = ({ options: a, value: r, onChange: s }) => /* @__PURE__ */ t(
693
+ ), Ae = () => /* @__PURE__ */ t("div", { className: "custom-select-icon", children: /* @__PURE__ */ t(Y, {}) }), Ve = ({ options: a, value: e, onChange: s }) => /* @__PURE__ */ t(
696
694
  K,
697
695
  {
698
696
  MenuProps: {
@@ -712,7 +710,7 @@ const U = {
712
710
  }
713
711
  }
714
712
  },
715
- IconComponent: Me,
713
+ IconComponent: Ae,
716
714
  sx: {
717
715
  width: "100%",
718
716
  height: 34,
@@ -738,9 +736,9 @@ const U = {
738
736
  transform: "rotate(180deg)"
739
737
  }
740
738
  },
741
- value: r,
742
- onChange: (e) => s(e.target.value),
743
- children: a.map(({ title: e, value: n }, o) => /* @__PURE__ */ t(
739
+ value: e,
740
+ onChange: (r) => s(r.target.value),
741
+ children: a.map(({ title: r, value: n }, o) => /* @__PURE__ */ t(
744
742
  J,
745
743
  {
746
744
  sx: {
@@ -764,44 +762,44 @@ const U = {
764
762
  }
765
763
  },
766
764
  value: n,
767
- children: e
765
+ children: r
768
766
  },
769
767
  o
770
768
  ))
771
769
  }
772
- ), Be = {
770
+ ), Me = {
773
771
  sm: "min-w-10 min-h-6",
774
772
  md: "min-w-12 min-h-7",
775
773
  lg: "min-w-14 min-h-8"
776
- }, Ie = {
774
+ }, Be = {
777
775
  default: "bg-default-400",
778
776
  primary: "bg-layout-focus",
779
777
  secondary: "bg-base-secondary",
780
778
  success: "bg-base-success",
781
779
  warning: "bg-base-warning",
782
780
  danger: "bg-base-danger"
783
- }, Xe = ({
781
+ }, Ye = ({
784
782
  enabled: a,
785
- onChange: r,
783
+ onChange: e,
786
784
  label: s,
787
- labelPosition: e = "left",
785
+ labelPosition: r = "left",
788
786
  size: n = "md",
789
787
  color: o = "default",
790
788
  disabled: d = !1
791
789
  }) => {
792
- const c = g(
793
- e === "left" ? "flex-row" : "flex-row-reverse",
790
+ const c = b(
791
+ r === "left" ? "flex-row" : "flex-row-reverse",
794
792
  d && "opacity-50"
795
- ), i = g(
796
- Be[n],
797
- a ? Ie[o] : "bg-default-700",
793
+ ), i = b(
794
+ Me[n],
795
+ a ? Be[o] : "bg-default-700",
798
796
  d && "cursor-auto"
799
797
  );
800
- return /* @__PURE__ */ u("div", { className: `flex items-center gap-2 ${c}`, children: [
798
+ return /* @__PURE__ */ l("div", { className: `flex items-center gap-2 ${c}`, children: [
801
799
  /* @__PURE__ */ t(
802
800
  "button",
803
801
  {
804
- onClick: r,
802
+ onClick: e,
805
803
  className: `relative rounded-full transition-colors duration-300 p-1 ${i}`,
806
804
  disabled: d,
807
805
  children: /* @__PURE__ */ t(
@@ -818,104 +816,16 @@ const U = {
818
816
  ),
819
817
  s && /* @__PURE__ */ t("p", { className: `text-default-600 ${n === "sm" && "text-sm"}`, children: s })
820
818
  ] });
821
- }, je = {
822
- sm: "h-8 py-1",
823
- lg: "h-10 py-2"
824
- }, De = {
825
- flat: "bg-default-100 hover:bg-default-200 focus:bg-transparent focus:border-2 border-[#11181C]",
826
- faded: "bg-default-100 hover:bg-default-200 focus:bg-transparent border-2 border-default-200 hover:border-default-400 focus:border-[#11181C]",
827
- bordered: "bg-transparent border-2 border-default-200 hover:border-default-400 focus:border-[#11181C]"
828
- }, Pe = ({
829
- value: a,
830
- onChange: r,
831
- placeHolder: s,
832
- inputIcon: e,
833
- inputEndIcon: n,
834
- inputProps: o,
835
- inputRef: d,
836
- size: c,
837
- variant: i,
838
- iconOnClick: l,
839
- endIconOnClick: f
840
- }) => /* @__PURE__ */ u("div", { ref: d, className: "relative", children: [
841
- e && /* @__PURE__ */ t(
842
- "button",
843
- {
844
- onClick: l,
845
- className: "absolute top-1/2 -translate-y-1/2 right-2",
846
- children: e
847
- }
848
- ),
849
- /* @__PURE__ */ t(
850
- "input",
851
- {
852
- ...o,
853
- type: "text",
854
- value: a,
855
- onChange: (p) => r && r(p.target.value),
856
- placeholder: s,
857
- className: `${De[i]} ${je[c]} transition-all duration-300 w-full px-3 text-sm outline-none rounded-sm ${n && "pl-[30px]"} ${e && "pr-[30px]"}`
858
- }
859
- ),
860
- n && /* @__PURE__ */ t(
861
- "button",
862
- {
863
- onClick: f,
864
- className: "absolute top-1/2 -translate-y-1/2 left-2",
865
- children: n
866
- }
867
- )
868
- ] }), Ze = ({
869
- label: a,
870
- placeHolder: r,
871
- inputIcon: s,
872
- inputEndIcon: e,
873
- value: n,
874
- onChange: o,
875
- size: d = "sm",
876
- variant: c = "flat",
877
- options: i,
878
- optionsUI: l,
879
- iconOnClick: f,
880
- endIconOnClick: p
881
- }) => /* @__PURE__ */ t(
882
- Q,
883
- {
884
- disablePortal: !0,
885
- options: i,
886
- sx: { width: "100%" },
887
- renderOption: (b, x) => /* @__PURE__ */ t("li", { ...b, children: l.find(({ id: h }) => h === x.id)?.element }),
888
- renderInput: (b) => /* @__PURE__ */ u("div", { children: [
889
- a && /* @__PURE__ */ t("div", { className: "h-4 text-xs mb-2 text-default-600", children: a }),
890
- /* @__PURE__ */ t(
891
- Pe,
892
- {
893
- value: n,
894
- onChange: o,
895
- placeHolder: r,
896
- inputIcon: s,
897
- inputEndIcon: e,
898
- inputProps: b.slotProps.htmlInput,
899
- inputRef: b.slotProps.input.ref,
900
- size: d,
901
- variant: c,
902
- iconOnClick: f,
903
- endIconOnClick: p
904
- }
905
- )
906
- ] })
907
- }
908
- );
819
+ };
909
820
  export {
910
- qe as Alert,
911
- Ze as Autocomplete,
912
- Ve as Badge,
913
- Ye as Button,
914
- Ge as Chip,
915
- Je as Input,
916
- Ke as Radio,
917
- Qe as RangeSlider,
918
- Ue as Select,
919
- Xe as Switch,
920
- Ae as Tooltip
821
+ Re as Alert,
822
+ Te as Badge,
823
+ Le as Button,
824
+ Pe as Chip,
825
+ Oe as Input,
826
+ We as Radio,
827
+ qe as RangeSlider,
828
+ Ve as Select,
829
+ Ye as Switch,
830
+ ze as Tooltip
921
831
  };
@@ -0,0 +1,5 @@
1
+ declare const LocationIcon: ({ color, size, }: {
2
+ color?: string;
3
+ size?: number;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default LocationIcon;
@@ -0,0 +1,5 @@
1
+ declare const MinusIcon: ({ color, size }: {
2
+ color?: string;
3
+ size?: number;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default MinusIcon;
@@ -59,4 +59,6 @@ import { default as FireIcon } from './components/FireIcon';
59
59
  import { default as CartIcon } from './components/CartIcon';
60
60
  import { default as BalloonIcon } from './components/BalloonIcon';
61
61
  import { default as PetIcon } from './components/PetIcon';
62
- export { CloseIcon, InfoIcon, WarningIcon, CloseCircleIcon, TickCircleIcon, ShoppingCartIcon, SearchIcon, ArrowRightIcon, ChevronLeftIcon, ChevronRightIcon, ChevronTopIcon, ShopIcon, StarIcon, HeartIcon, ShareIcon, TruckIcon, BoxIcon, CardTickIcon, CardsIcon, WalletCheckIcon, RotateBoxIcon, LikeIcon, DislikeIcon, RotateInfoIcon, ChevronBottomIcon, EditIcon, SettingIcon, UserIcon, BagIcon, CategoryIcon, HomeIcon, TrashIcon, MoreIcon, MessageIcon, AddIcon, BoxTimeIcon, MoneyIcon, ArrowDownIcon, SpinnerIcon, OutlineTickCircleIcon, FillShoppingCartIcon, UserSquareIcon, WalletIcon, BoxTickIcon, ReceiptIcon, LogoutIcon, MobileIcon, LaptopIcon, DigitalDevicesIcon, SofaIcon, FridgeIcon, CosmeticsIcon, TShirtIcon, GoldIcon, MotorcycleIcon, WheelIcon, HammerIcon, FireIcon, CartIcon, BalloonIcon, PetIcon };
62
+ import { default as MinusIcon } from './components/MinusIcon';
63
+ import { default as LocationIcon } from './components/LocationIcon';
64
+ export { CloseIcon, InfoIcon, WarningIcon, CloseCircleIcon, TickCircleIcon, ShoppingCartIcon, SearchIcon, ArrowRightIcon, ChevronLeftIcon, ChevronRightIcon, ChevronTopIcon, ShopIcon, StarIcon, HeartIcon, ShareIcon, TruckIcon, BoxIcon, CardTickIcon, CardsIcon, WalletCheckIcon, RotateBoxIcon, LikeIcon, DislikeIcon, RotateInfoIcon, ChevronBottomIcon, EditIcon, SettingIcon, UserIcon, BagIcon, CategoryIcon, HomeIcon, TrashIcon, MoreIcon, MessageIcon, AddIcon, BoxTimeIcon, MoneyIcon, ArrowDownIcon, SpinnerIcon, OutlineTickCircleIcon, FillShoppingCartIcon, UserSquareIcon, WalletIcon, BoxTickIcon, ReceiptIcon, LogoutIcon, MobileIcon, LaptopIcon, DigitalDevicesIcon, SofaIcon, FridgeIcon, CosmeticsIcon, TShirtIcon, GoldIcon, MotorcycleIcon, WheelIcon, HammerIcon, FireIcon, CartIcon, BalloonIcon, PetIcon, MinusIcon, LocationIcon };
package/dist/icons.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as s1, a as d1, b as h1, I as c1, T as k1, W as u1 } from "./ChevronBottomIcon-BM6pUrh1.js";
1
+ import { C as h1, a as c1, b as k1, I as u1, T as w1, W as p1 } from "./ChevronBottomIcon-BM6pUrh1.js";
2
2
  import { jsxs as e, jsx as r } from "react/jsx-runtime";
3
3
  const C = ({
4
4
  color: t,
@@ -2286,6 +2286,57 @@ const C = ({
2286
2286
  )
2287
2287
  ]
2288
2288
  }
2289
+ ), i1 = ({ color: t, size: o = 20 }) => /* @__PURE__ */ r(
2290
+ "svg",
2291
+ {
2292
+ width: o,
2293
+ height: o,
2294
+ viewBox: "0 0 16 16",
2295
+ fill: "none",
2296
+ xmlns: "http://www.w3.org/2000/svg",
2297
+ style: { color: t },
2298
+ children: /* @__PURE__ */ r(
2299
+ "path",
2300
+ {
2301
+ d: "M4 8H12",
2302
+ stroke: "currentColor",
2303
+ "stroke-width": "1.5",
2304
+ "stroke-linecap": "round",
2305
+ "stroke-linejoin": "round"
2306
+ }
2307
+ )
2308
+ }
2309
+ ), l1 = ({
2310
+ color: t,
2311
+ size: o = 20
2312
+ }) => /* @__PURE__ */ e(
2313
+ "svg",
2314
+ {
2315
+ width: o,
2316
+ height: o,
2317
+ viewBox: "0 0 20 20",
2318
+ fill: "none",
2319
+ xmlns: "http://www.w3.org/2000/svg",
2320
+ style: { color: t },
2321
+ children: [
2322
+ /* @__PURE__ */ r(
2323
+ "path",
2324
+ {
2325
+ d: "M9.9999 11.1912C11.4358 11.1912 12.5999 10.0272 12.5999 8.59121C12.5999 7.15527 11.4358 5.99121 9.9999 5.99121C8.56396 5.99121 7.3999 7.15527 7.3999 8.59121C7.3999 10.0272 8.56396 11.1912 9.9999 11.1912Z",
2326
+ stroke: "currentColor",
2327
+ "stroke-width": "1.25"
2328
+ }
2329
+ ),
2330
+ /* @__PURE__ */ r(
2331
+ "path",
2332
+ {
2333
+ d: "M3.01675 7.07533C4.65842 -0.141339 15.3501 -0.133006 16.9834 7.08366C17.9417 11.317 15.3084 14.9003 13.0001 17.117C11.3251 18.7337 8.67508 18.7337 6.99175 17.117C4.69175 14.9003 2.05842 11.3087 3.01675 7.07533Z",
2334
+ stroke: "currentColor",
2335
+ "stroke-width": "1.25"
2336
+ }
2337
+ )
2338
+ ]
2339
+ }
2289
2340
  );
2290
2341
  export {
2291
2342
  _ as AddIcon,
@@ -2300,12 +2351,12 @@ export {
2300
2351
  M as CardsIcon,
2301
2352
  e1 as CartIcon,
2302
2353
  I as CategoryIcon,
2303
- s1 as ChevronBottomIcon,
2354
+ h1 as ChevronBottomIcon,
2304
2355
  s as ChevronLeftIcon,
2305
2356
  d as ChevronRightIcon,
2306
2357
  h as ChevronTopIcon,
2307
- d1 as CloseCircleIcon,
2308
- h1 as CloseIcon,
2358
+ c1 as CloseCircleIcon,
2359
+ k1 as CloseIcon,
2309
2360
  X as CosmeticsIcon,
2310
2361
  K as DigitalDevicesIcon,
2311
2362
  m as DislikeIcon,
@@ -2317,11 +2368,13 @@ export {
2317
2368
  o1 as HammerIcon,
2318
2369
  u as HeartIcon,
2319
2370
  B as HomeIcon,
2320
- c1 as InfoIcon,
2371
+ u1 as InfoIcon,
2321
2372
  J as LaptopIcon,
2322
2373
  H as LikeIcon,
2374
+ l1 as LocationIcon,
2323
2375
  G as LogoutIcon,
2324
2376
  T as MessageIcon,
2377
+ i1 as MinusIcon,
2325
2378
  O as MobileIcon,
2326
2379
  W as MoneyIcon,
2327
2380
  S as MoreIcon,
@@ -2340,13 +2393,13 @@ export {
2340
2393
  A as SpinnerIcon,
2341
2394
  k as StarIcon,
2342
2395
  Y as TShirtIcon,
2343
- k1 as TickCircleIcon,
2396
+ w1 as TickCircleIcon,
2344
2397
  y as TrashIcon,
2345
2398
  p as TruckIcon,
2346
2399
  x as UserIcon,
2347
2400
  b as UserSquareIcon,
2348
2401
  v as WalletCheckIcon,
2349
2402
  U as WalletIcon,
2350
- u1 as WarningIcon,
2403
+ p1 as WarningIcon,
2351
2404
  r1 as WheelIcon
2352
2405
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "am-shared-assets",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "",