shekel-fe-shared-lib 1.0.13 → 1.0.15

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/index.mjs CHANGED
@@ -14,14 +14,16 @@ const z0 = ({
14
14
  }) => {
15
15
  const i = () => {
16
16
  switch (e) {
17
+ case "xsmall":
18
+ return "32px";
17
19
  case "small":
18
20
  return "40px";
19
21
  case "medium":
20
- return "44px";
21
- case "large":
22
22
  return "48px";
23
+ case "large":
24
+ return "52px";
23
25
  default:
24
- return "48px";
26
+ return "52px";
25
27
  }
26
28
  }, c = () => {
27
29
  const a = i();
@@ -45,8 +47,8 @@ const z0 = ({
45
47
  case "outline":
46
48
  return {
47
49
  backgroundColor: "transparent",
48
- borderColor: "#D1D1D1",
49
- color: "#181918",
50
+ borderColor: "#EC615B",
51
+ color: "#EC615B",
50
52
  height: a,
51
53
  borderRadius: "8px"
52
54
  };
@@ -108,11 +110,11 @@ const z0 = ({
108
110
  boxShadow: "0 0 0 0 rgba(0, 0, 0, 0)",
109
111
  transition: "all 0.3s ease-in-out"
110
112
  },
111
- onMouseEnter: (m) => {
112
- m.currentTarget.style.boxShadow = "0 0 20px 0 rgba(0, 0, 0, 0.1)";
113
+ onMouseEnter: (g) => {
114
+ g.currentTarget.style.boxShadow = "0 0 20px 0 rgba(0, 0, 0, 0.1)";
113
115
  },
114
- onMouseLeave: (m) => {
115
- m.currentTarget.style.boxShadow = "0 0 0 0 rgba(0, 0, 0, 0)";
116
+ onMouseLeave: (g) => {
117
+ g.currentTarget.style.boxShadow = "0 0 0 0 rgba(0, 0, 0, 0)";
116
118
  },
117
119
  children: [
118
120
  /* @__PURE__ */ p("div", { children: [
@@ -153,7 +155,7 @@ const z0 = ({
153
155
  focusBorderColor: C,
154
156
  iconColor: d,
155
157
  textColor: l,
156
- placeholderColor: m,
158
+ placeholderColor: g,
157
159
  rounded: f = "md",
158
160
  style: w,
159
161
  ...h
@@ -161,7 +163,7 @@ const z0 = ({
161
163
  process.env.NODE_ENV !== "production" && console.warn(
162
164
  "[Shekel Shared Lib] SearchInput is deprecated as of v1.0.11. Please use the new Input component instead for better functionality and consistent styling."
163
165
  );
164
- const y = "relative inline-flex items-center", g = "border focus:outline-none focus:ring-1 transition-all duration-200 ease-in-out", V = {
166
+ const y = "relative inline-flex items-center", m = "border focus:outline-none focus:ring-1 transition-all duration-200 ease-in-out", V = {
165
167
  sm: "px-3 py-1.5 text-sm",
166
168
  md: "px-4 py-2 text-base",
167
169
  lg: "px-5 py-3 text-lg",
@@ -182,7 +184,7 @@ const z0 = ({
182
184
  borderColor: a || "#D1D5DB",
183
185
  color: l,
184
186
  ...w
185
- }, M = m ? "" : "placeholder:text-gray-400", Z = a ? "" : "border-gray-300", z = l ? "" : "text-gray-900", F = C ? "" : "focus:ring-[#EC615B] focus:border-[#EC615B]", E = `${g} ${!o.includes("px-") && !o.includes("py-") ? V[s] : ""} ${t ? b : ""} ${u} ${o.includes("rounded") ? "" : v[f]} ${o.includes("border-") ? "" : Z} ${z} ${F} ${M} ${o}`, L = e === "left" ? "left-3" : "right-3", _ = d || "text-gray-400", $ = d ? "" : "hover:text-gray-600", N = /* @__PURE__ */ n(
187
+ }, M = g ? "" : "placeholder:text-gray-400", Z = a ? "" : "border-gray-300", z = l ? "" : "text-gray-900", F = C ? "" : "focus:ring-[#EC615B] focus:border-[#EC615B]", E = `${m} ${!o.includes("px-") && !o.includes("py-") ? V[s] : ""} ${t ? b : ""} ${u} ${o.includes("rounded") ? "" : v[f]} ${o.includes("border-") ? "" : Z} ${z} ${F} ${M} ${o}`, L = e === "left" ? "left-3" : "right-3", _ = d || "text-gray-400", $ = d ? "" : "hover:text-gray-600", N = /* @__PURE__ */ n(
186
188
  "svg",
187
189
  {
188
190
  className: `${x[s]} ${_}`,
@@ -220,8 +222,8 @@ const z0 = ({
220
222
  ...C && {
221
223
  "--focus-border-color": C
222
224
  },
223
- ...m && {
224
- "--placeholder-color": m
225
+ ...g && {
226
+ "--placeholder-color": g
225
227
  }
226
228
  },
227
229
  ...h
@@ -260,7 +262,7 @@ const z0 = ({
260
262
  menuBgColor: C,
261
263
  menuItemHoverColor: d,
262
264
  dangerColor: l,
263
- borderColor: m,
265
+ borderColor: g,
264
266
  style: f
265
267
  }) => {
266
268
  const [w, h] = j(!1), y = e2(null);
@@ -272,7 +274,7 @@ const z0 = ({
272
274
  document.removeEventListener("mousedown", S);
273
275
  };
274
276
  }, [w]);
275
- const g = () => {
277
+ const m = () => {
276
278
  !c && e === "click" && h(!w);
277
279
  }, V = () => {
278
280
  !c && e === "hover" && h(!0);
@@ -295,7 +297,7 @@ const z0 = ({
295
297
  md: "px-4 py-2 text-sm gap-2",
296
298
  lg: "px-5 py-3 text-base gap-2.5",
297
299
  responsive: "px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 md:py-3 text-xs sm:text-sm md:text-base gap-1.5 sm:gap-2 md:gap-2.5"
298
- }, Z = "hover:bg-gray-50", z = "border-gray-200", F = "text-red-600", E = d ? { backgroundColor: d } : {}, L = d ? "" : Z, _ = l ? { color: l } : {}, $ = l ? { backgroundColor: l + "15" } : {}, N = m || z;
300
+ }, Z = "hover:bg-gray-50", z = "border-gray-200", F = "text-red-600", E = d ? { backgroundColor: d } : {}, L = d ? "" : Z, _ = l ? { color: l } : {}, $ = l ? { backgroundColor: l + "15" } : {}, N = g || z;
299
301
  return /* @__PURE__ */ p(
300
302
  "div",
301
303
  {
@@ -308,7 +310,7 @@ const z0 = ({
308
310
  /* @__PURE__ */ n(
309
311
  "div",
310
312
  {
311
- onClick: g,
313
+ onClick: m,
312
314
  className: `inline-flex ${c ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
313
315
  children: r
314
316
  }
@@ -366,12 +368,12 @@ const z0 = ({
366
368
  className: C = "",
367
369
  allowClear: d = !1,
368
370
  showSearch: l = !1,
369
- searchPlaceholder: m = "Search...",
371
+ searchPlaceholder: g = "Search...",
370
372
  bgColor: f,
371
373
  borderColor: w,
372
374
  focusBorderColor: h = "#EC615B",
373
375
  selectedBgColor: y,
374
- selectedTextColor: g,
376
+ selectedTextColor: m,
375
377
  hoverBgColor: V,
376
378
  rounded: x = "lg",
377
379
  style: v
@@ -409,7 +411,7 @@ const z0 = ({
409
411
  return f && (H.backgroundColor = f), w && (H.borderColor = w), H;
410
412
  }, Y = () => {
411
413
  const H = {};
412
- return y && (H.backgroundColor = y), g && (H.color = g), H;
414
+ return y && (H.backgroundColor = y), m && (H.color = m), H;
413
415
  }, s2 = /* @__PURE__ */ n(
414
416
  "svg",
415
417
  {
@@ -477,7 +479,7 @@ const z0 = ({
477
479
  type: "text",
478
480
  value: Z,
479
481
  onChange: (H) => z(H.target.value),
480
- placeholder: m,
482
+ placeholder: g,
481
483
  className: "w-full px-3 py-1.5 text-sm border border-gray-300 rounded focus:outline-none focus:ring-2 transition-all duration-200 ease-out",
482
484
  style: {
483
485
  borderColor: w,
@@ -498,7 +500,7 @@ const z0 = ({
498
500
  style: {
499
501
  ...H.value === L ? Y() : {},
500
502
  backgroundColor: H.value === L ? y || "#FCEAE9" : void 0,
501
- color: H.value === L ? g || "#EC615B" : "#181918",
503
+ color: H.value === L ? m || "#EC615B" : "#181918",
502
504
  fontWeight: H.value === L ? "medium" : void 0
503
505
  },
504
506
  onMouseEnter: (q) => {
@@ -525,12 +527,12 @@ const z0 = ({
525
527
  striped: C = !1,
526
528
  size: d = "md",
527
529
  headerBgColor: l,
528
- headerTextColor: m,
530
+ headerTextColor: g,
529
531
  rowHoverColor: f,
530
532
  borderColor: w,
531
533
  stripedRowColor: h,
532
534
  rounded: y = "md",
533
- style: g
535
+ style: m
534
536
  }) => {
535
537
  const [V, x] = j(
536
538
  r && typeof r == "object" && r.current || 1
@@ -577,7 +579,7 @@ const z0 = ({
577
579
  }, _ = ($) => {
578
580
  b($), x(1), r && typeof r == "object" && r.onChange && r.onChange(1, $);
579
581
  };
580
- return /* @__PURE__ */ p("div", { className: "w-full", style: g, children: [
582
+ return /* @__PURE__ */ p("div", { className: "w-full", style: m, children: [
581
583
  /* @__PURE__ */ n(
582
584
  "div",
583
585
  {
@@ -589,7 +591,7 @@ const z0 = ({
589
591
  {
590
592
  style: {
591
593
  backgroundColor: l || "#F5F6F7",
592
- color: m || "#333333"
594
+ color: g || "#333333"
593
595
  },
594
596
  children: /* @__PURE__ */ n("tr", { children: t.map(($, N) => /* @__PURE__ */ n(
595
597
  "th",
@@ -598,7 +600,7 @@ const z0 = ({
598
600
  style: {
599
601
  width: $.width,
600
602
  borderColor: w || "#EEEEEE",
601
- color: m || "#333333"
603
+ color: g || "#333333"
602
604
  },
603
605
  children: $.title
604
606
  },
@@ -724,7 +726,7 @@ const z0 = ({
724
726
  showTotal: a = !0,
725
727
  size: C = "md"
726
728
  }) => {
727
- const d = Math.ceil(s / e), l = (t - 1) * e + 1, m = Math.min(t * e, s), f = {
729
+ const d = Math.ceil(s / e), l = (t - 1) * e + 1, g = Math.min(t * e, s), f = {
728
730
  sm: {
729
731
  button: "px-2.5 py-1 text-xs",
730
732
  icon: "h-3.5 w-3.5",
@@ -743,17 +745,17 @@ const z0 = ({
743
745
  }, w = () => {
744
746
  const h = [];
745
747
  if (d <= 7)
746
- for (let g = 1; g <= d; g++)
747
- h.push(g);
748
+ for (let m = 1; m <= d; m++)
749
+ h.push(m);
748
750
  else if (t <= 3) {
749
- for (let g = 1; g <= 5; g++) h.push(g);
751
+ for (let m = 1; m <= 5; m++) h.push(m);
750
752
  h.push("..."), h.push(d);
751
753
  } else if (t >= d - 2) {
752
754
  h.push(1), h.push("...");
753
- for (let g = d - 4; g <= d; g++) h.push(g);
755
+ for (let m = d - 4; m <= d; m++) h.push(m);
754
756
  } else {
755
757
  h.push(1), h.push("...");
756
- for (let g = t - 1; g <= t + 1; g++) h.push(g);
758
+ for (let m = t - 1; m <= t + 1; m++) h.push(m);
757
759
  h.push("..."), h.push(d);
758
760
  }
759
761
  return h;
@@ -762,7 +764,7 @@ const z0 = ({
762
764
  a && /* @__PURE__ */ p("div", { className: "text-sm text-[#181918]", children: [
763
765
  l,
764
766
  "-",
765
- m,
767
+ g,
766
768
  " of ",
767
769
  s,
768
770
  " items"
@@ -847,12 +849,12 @@ const z0 = ({
847
849
  titleColor: C,
848
850
  descriptionColor: d,
849
851
  searchBgColor: l = "white",
850
- searchBorderColor: m = "#d1d5db",
852
+ searchBorderColor: g = "#d1d5db",
851
853
  searchFocusBorderColor: f = "#3b82f6",
852
854
  rounded: w = "md",
853
855
  style: h,
854
856
  hideActionButtons: y = !1,
855
- selectedActionButton: g
857
+ selectedActionButton: m
856
858
  }) => {
857
859
  const V = (M) => {
858
860
  r == null || r(M.target.value);
@@ -917,7 +919,7 @@ const z0 = ({
917
919
  full: "rounded-full"
918
920
  }[w], k = {
919
921
  backgroundColor: l,
920
- borderColor: m
922
+ borderColor: g
921
923
  };
922
924
  return /* @__PURE__ */ p(
923
925
  "div",
@@ -975,12 +977,12 @@ const z0 = ({
975
977
  M.currentTarget.style.borderColor = f, M.currentTarget.style.boxShadow = "0 0 0 2px rgba(59, 130, 246, 0.1)";
976
978
  },
977
979
  onBlur: (M) => {
978
- M.currentTarget.style.borderColor = m, M.currentTarget.style.boxShadow = "none";
980
+ M.currentTarget.style.borderColor = g, M.currentTarget.style.boxShadow = "none";
979
981
  }
980
982
  }
981
983
  )
982
984
  ] }) }),
983
- /* @__PURE__ */ n("div", { className: "flex items-center gap-2 w-full sm:w-auto", children: y && g ? g : o })
985
+ /* @__PURE__ */ n("div", { className: "flex items-center gap-2 w-full sm:w-auto", children: y && m ? m : o })
984
986
  ] }),
985
987
  i && /* @__PURE__ */ n("div", { className: `flex flex-wrap items-center ${v.gap}`, children: i })
986
988
  ]
@@ -1005,17 +1007,17 @@ const z0 = ({
1005
1007
  maskClosable: C = !0,
1006
1008
  centered: d = !0,
1007
1009
  className: l = "",
1008
- bgColor: m = "#ffffff",
1010
+ bgColor: g = "#ffffff",
1009
1011
  headerBgColor: f = "#ffffff",
1010
1012
  overlayColor: w = "rgba(0, 0, 0, 0.5)",
1011
1013
  bodyClassName: h = "",
1012
1014
  headerClassName: y = "",
1013
- maxHeight: g = "70vh"
1015
+ maxHeight: m = "70vh"
1014
1016
  }) => {
1015
1017
  const [V, x] = j(!1), [v, b] = j(!1), u = i || K2[c], M = {
1016
1018
  width: typeof u == "number" ? `${u}px` : u,
1017
1019
  maxWidth: "90vw",
1018
- backgroundColor: m
1020
+ backgroundColor: g
1019
1021
  }, Z = {
1020
1022
  backgroundColor: f
1021
1023
  }, z = {
@@ -1061,7 +1063,7 @@ const z0 = ({
1061
1063
  "div",
1062
1064
  {
1063
1065
  className: `relative rounded-lg shadow-xl transition-all duration-200 ease-out overflow-y-auto ${v ? "opacity-100 scale-100 translate-y-0" : "opacity-0 scale-95 -translate-y-4"} ${l}`,
1064
- style: { ...M, maxHeight: typeof g == "number" ? `${g}px` : g },
1066
+ style: { ...M, maxHeight: typeof m == "number" ? `${m}px` : m },
1065
1067
  onClick: E,
1066
1068
  children: [
1067
1069
  (s || a) && /* @__PURE__ */ p(
@@ -1125,7 +1127,7 @@ const z0 = ({
1125
1127
  textColor: C,
1126
1128
  borderColor: d,
1127
1129
  rounded: l = "full",
1128
- style: m
1130
+ style: g
1129
1131
  }) => {
1130
1132
  const f = {
1131
1133
  default: "bg-gray-100 text-[#181918]",
@@ -1151,7 +1153,7 @@ const z0 = ({
1151
1153
  warning: "bg-yellow-600",
1152
1154
  danger: "bg-red-600",
1153
1155
  info: "bg-cyan-600"
1154
- }, g = {
1156
+ }, m = {
1155
1157
  sm: "w-3 h-3",
1156
1158
  md: "w-3.5 h-3.5",
1157
1159
  lg: "w-4 h-4",
@@ -1166,7 +1168,7 @@ const z0 = ({
1166
1168
  ...a && { backgroundColor: a },
1167
1169
  ...C && { color: C },
1168
1170
  ...d && { borderColor: d, borderWidth: "1px", borderStyle: "solid" },
1169
- ...m
1171
+ ...g
1170
1172
  };
1171
1173
  return /* @__PURE__ */ p(
1172
1174
  "span",
@@ -1175,9 +1177,9 @@ const z0 = ({
1175
1177
  style: x,
1176
1178
  children: [
1177
1179
  r && /* @__PURE__ */ n("span", { className: `rounded-full ${h[s]} ${y[e]}` }),
1178
- o && i === "left" && /* @__PURE__ */ n("span", { className: `inline-flex items-center ${g[s]}`, children: o }),
1180
+ o && i === "left" && /* @__PURE__ */ n("span", { className: `inline-flex items-center ${m[s]}`, children: o }),
1179
1181
  t,
1180
- o && i === "right" && /* @__PURE__ */ n("span", { className: `inline-flex items-center ${g[s]}`, children: o })
1182
+ o && i === "right" && /* @__PURE__ */ n("span", { className: `inline-flex items-center ${m[s]}`, children: o })
1181
1183
  ]
1182
1184
  }
1183
1185
  );
@@ -1193,7 +1195,7 @@ const z0 = ({
1193
1195
  processColor: C,
1194
1196
  waitColor: d,
1195
1197
  errorColor: l,
1196
- lineColor: m
1198
+ lineColor: g
1197
1199
  }) => {
1198
1200
  const f = (x, v) => v.status ? v.status : x < e ? "finish" : x === e ? "process" : "wait", w = {
1199
1201
  sm: "w-6 h-6",
@@ -1210,7 +1212,7 @@ const z0 = ({
1210
1212
  md: "text-sm",
1211
1213
  lg: "text-base",
1212
1214
  responsive: "text-xs sm:text-xs md:text-sm lg:text-base"
1213
- }, g = (x, v) => v || (x === "finish" ? /* @__PURE__ */ n("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
1215
+ }, m = (x, v) => v || (x === "finish" ? /* @__PURE__ */ n("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
1214
1216
  "path",
1215
1217
  {
1216
1218
  fillRule: "evenodd",
@@ -1232,7 +1234,7 @@ const z0 = ({
1232
1234
  icon: v ? `bg-white text-white border ${a ? `border-[${a}]` : "border-green-500"}` : `${a ? `bg-[${a}]` : "bg-green-500"} text-white ${a ? `border-[${a}]` : "border-green-500"}`,
1233
1235
  title: "text-[#181918]",
1234
1236
  description: "text-gray-600",
1235
- line: m ? `bg-[${m}]` : "bg-green-500",
1237
+ line: g ? `bg-[${g}]` : "bg-green-500",
1236
1238
  iconColor: a
1237
1239
  };
1238
1240
  case "process":
@@ -1240,7 +1242,7 @@ const z0 = ({
1240
1242
  icon: v ? `bg-white text-white border ${C ? `border-[${C}]` : "border-[#EC615B]"}` : `${C ? `bg-[${C}]` : "bg-[#EC615B]"} text-white ${C ? `border-[${C}]` : "border-[#EC615B]"}`,
1241
1243
  title: "text-[#181918] font-semibold",
1242
1244
  description: "text-gray-700",
1243
- line: m ? `bg-[${m}]` : "bg-gray-300",
1245
+ line: g ? `bg-[${g}]` : "bg-gray-300",
1244
1246
  iconColor: C
1245
1247
  };
1246
1248
  case "error":
@@ -1248,7 +1250,7 @@ const z0 = ({
1248
1250
  icon: v ? `bg-white text-white border ${l ? `border-[${l}]` : "border-red-500"}` : `${l ? `bg-[${l}]` : "bg-red-500"} text-white ${l ? `border-[${l}]` : "border-red-500"}`,
1249
1251
  title: "text-red-600",
1250
1252
  description: "text-red-500",
1251
- line: m ? `bg-[${m}]` : "bg-gray-300",
1253
+ line: g ? `bg-[${g}]` : "bg-gray-300",
1252
1254
  iconColor: l
1253
1255
  };
1254
1256
  default:
@@ -1256,7 +1258,7 @@ const z0 = ({
1256
1258
  icon: "bg-white text-gray-400 border-gray-300",
1257
1259
  title: "text-gray-500",
1258
1260
  description: "text-gray-400",
1259
- line: m ? `bg-[${m}]` : "bg-gray-300",
1261
+ line: g ? `bg-[${g}]` : "bg-gray-300",
1260
1262
  iconColor: d
1261
1263
  };
1262
1264
  }
@@ -1270,7 +1272,7 @@ const z0 = ({
1270
1272
  {
1271
1273
  className: `flex items-center justify-center ${w[r]} rounded-full border transition-all duration-300 ${u.icon}`,
1272
1274
  style: M,
1273
- children: g(b, x.icon)
1275
+ children: m(b, x.icon)
1274
1276
  }
1275
1277
  ),
1276
1278
  /* @__PURE__ */ p("div", { className: "mt-2 text-center", children: [
@@ -1306,7 +1308,7 @@ const z0 = ({
1306
1308
  {
1307
1309
  className: `flex items-center justify-center ${w[r]} rounded-full border transition-all duration-300 ${u.icon}`,
1308
1310
  style: M,
1309
- children: g(b, x.icon)
1311
+ children: m(b, x.icon)
1310
1312
  }
1311
1313
  ),
1312
1314
  !k && /* @__PURE__ */ n(
@@ -1347,7 +1349,7 @@ const z0 = ({
1347
1349
  bgColor: C,
1348
1350
  successColor: d,
1349
1351
  exceptionColor: l,
1350
- trackColor: m,
1352
+ trackColor: g,
1351
1353
  rounded: f = "full"
1352
1354
  }) => {
1353
1355
  const w = Math.min(100, Math.max(0, t)), h = {
@@ -1360,7 +1362,7 @@ const z0 = ({
1360
1362
  md: "text-sm",
1361
1363
  lg: "text-base",
1362
1364
  responsive: "text-xs sm:text-sm md:text-base lg:text-lg"
1363
- }, g = {
1365
+ }, m = {
1364
1366
  none: "rounded-none",
1365
1367
  sm: "rounded-sm",
1366
1368
  md: "rounded-md",
@@ -1378,7 +1380,7 @@ const z0 = ({
1378
1380
  default:
1379
1381
  return w === 100 ? d || "bg-green-500" : C || "bg-[#EC615B]";
1380
1382
  }
1381
- }, x = () => m || "bg-gray-200", v = () => e === "success" || w === 100 ? /* @__PURE__ */ n("svg", { className: "w-4 h-4 text-green-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
1383
+ }, x = () => g || "bg-gray-200", v = () => e === "success" || w === 100 ? /* @__PURE__ */ n("svg", { className: "w-4 h-4 text-green-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
1382
1384
  "path",
1383
1385
  {
1384
1386
  fillRule: "evenodd",
@@ -1397,12 +1399,12 @@ const z0 = ({
1397
1399
  /* @__PURE__ */ n("div", { className: "flex-1", children: /* @__PURE__ */ n(
1398
1400
  "div",
1399
1401
  {
1400
- className: `w-full overflow-hidden ${h[i]} ${g[f]} ${x()}`,
1402
+ className: `w-full overflow-hidden ${h[i]} ${m[f]} ${x()}`,
1401
1403
  style: { height: u },
1402
1404
  children: /* @__PURE__ */ n(
1403
1405
  "div",
1404
1406
  {
1405
- className: `${V()} ${h[i]} ${g[f]} transition-all duration-300 ease-out ${e === "active" ? "progress-active" : ""}`,
1407
+ className: `${V()} ${h[i]} ${m[f]} transition-all duration-300 ease-out ${e === "active" ? "progress-active" : ""}`,
1406
1408
  style: {
1407
1409
  width: `${w}%`,
1408
1410
  height: u
@@ -1425,15 +1427,15 @@ const z0 = ({
1425
1427
  id: C,
1426
1428
  name: d,
1427
1429
  value: l,
1428
- checkedColor: m = "#EC615B",
1430
+ checkedColor: g = "#EC615B",
1429
1431
  uncheckedColor: f = "#ffffff",
1430
1432
  checkedBorderColor: w = "#EC615B",
1431
1433
  style: h
1432
1434
  }) => {
1433
- const [y, g] = j(e), V = t !== void 0, x = V ? t : y, v = (F) => {
1435
+ const [y, m] = j(e), V = t !== void 0, x = V ? t : y, v = (F) => {
1434
1436
  if (r) return;
1435
1437
  const E = F.target.checked;
1436
- V || g(E), s == null || s(E);
1438
+ V || m(E), s == null || s(E);
1437
1439
  }, b = {
1438
1440
  sm: "w-4 h-4",
1439
1441
  md: "w-5 h-5",
@@ -1448,7 +1450,7 @@ const z0 = ({
1448
1450
  if (!r && !(!x && !o))
1449
1451
  return k ? {
1450
1452
  borderColor: w,
1451
- backgroundColor: m
1453
+ backgroundColor: g
1452
1454
  } : {
1453
1455
  borderColor: w,
1454
1456
  backgroundColor: f
@@ -1492,7 +1494,7 @@ const z0 = ({
1492
1494
  stroke: "currentColor",
1493
1495
  viewBox: "0 0 24 24",
1494
1496
  strokeWidth: 3,
1495
- style: !k && (x || o) ? { color: m } : void 0,
1497
+ style: !k && (x || o) ? { color: g } : void 0,
1496
1498
  children: /* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" })
1497
1499
  }
1498
1500
  ),
@@ -1502,7 +1504,7 @@ const z0 = ({
1502
1504
  className: `${u[i]} ${z()}`,
1503
1505
  fill: "currentColor",
1504
1506
  viewBox: "0 0 24 24",
1505
- style: !k && (x || o) ? { color: m } : void 0,
1507
+ style: !k && (x || o) ? { color: g } : void 0,
1506
1508
  children: /* @__PURE__ */ n("rect", { x: "4", y: "11", width: "16", height: "2", rx: "1" })
1507
1509
  }
1508
1510
  )
@@ -1561,12 +1563,12 @@ const z0 = ({
1561
1563
  hoverBgColor: C,
1562
1564
  textColor: d,
1563
1565
  sublabelColor: l,
1564
- removeButtonColor: m,
1566
+ removeButtonColor: g,
1565
1567
  removeButtonHoverColor: f,
1566
1568
  rounded: w = "md",
1567
1569
  style: h
1568
1570
  }) => {
1569
- const y = Q2(c), g = Y2(w), V = "#F4F4F4", x = "#EBEBEB", v = "#181918", b = "#999999", u = "#9CA3AF", k = "#EC615B", M = a || V, Z = C || x, z = d || v, F = l || b, E = m || u, L = f || k;
1571
+ const y = Q2(c), m = Y2(w), V = "#F4F4F4", x = "#EBEBEB", v = "#181918", b = "#999999", u = "#9CA3AF", k = "#EC615B", M = a || V, Z = C || x, z = d || v, F = l || b, E = g || u, L = f || k;
1570
1572
  return t.length === 0 ? /* @__PURE__ */ n(
1571
1573
  "div",
1572
1574
  {
@@ -1587,7 +1589,7 @@ const z0 = ({
1587
1589
  {
1588
1590
  className: `
1589
1591
  group flex items-center justify-between
1590
- ${g}
1592
+ ${m}
1591
1593
  transition-all duration-300 ease-out
1592
1594
  hover:shadow-sm
1593
1595
  animate-slide-in-item
@@ -1820,26 +1822,26 @@ const z0 = ({
1820
1822
  d(y);
1821
1823
  }
1822
1824
  }, [e, t]);
1823
- const m = (h, y) => {
1825
+ const g = (h, y) => {
1824
1826
  var x;
1825
1827
  if (y && !/^\d+$/.test(y)) return;
1826
- const g = [...C];
1827
- g[h] = y.slice(-1), d(g);
1828
- const V = g.join("");
1829
- s == null || s(V), y && h < t - 1 && ((x = l.current[h + 1]) == null || x.focus()), g.every((v) => v !== "") && (r == null || r(V));
1828
+ const m = [...C];
1829
+ m[h] = y.slice(-1), d(m);
1830
+ const V = m.join("");
1831
+ s == null || s(V), y && h < t - 1 && ((x = l.current[h + 1]) == null || x.focus()), m.every((v) => v !== "") && (r == null || r(V));
1830
1832
  }, f = (h, y) => {
1831
- var g;
1832
- y.key === "Backspace" && !C[h] && h > 0 && ((g = l.current[h - 1]) == null || g.focus());
1833
+ var m;
1834
+ y.key === "Backspace" && !C[h] && h > 0 && ((m = l.current[h - 1]) == null || m.focus());
1833
1835
  }, w = (h) => {
1834
1836
  var b;
1835
1837
  h.preventDefault();
1836
1838
  const y = h.clipboardData.getData("text/plain");
1837
1839
  if (!/^\d+$/.test(y)) return;
1838
- const g = y.split("").slice(0, t), V = [...g, ...Array(t - g.length).fill("")];
1840
+ const m = y.split("").slice(0, t), V = [...m, ...Array(t - m.length).fill("")];
1839
1841
  d(V);
1840
1842
  const x = V.join("");
1841
1843
  s == null || s(x);
1842
- const v = Math.min(g.length, t - 1);
1844
+ const v = Math.min(m.length, t - 1);
1843
1845
  (b = l.current[v]) == null || b.focus(), V.every((u) => u !== "") && (r == null || r(x));
1844
1846
  };
1845
1847
  return /* @__PURE__ */ p("div", { className: "w-full", children: [
@@ -1847,13 +1849,13 @@ const z0 = ({
1847
1849
  /* @__PURE__ */ n(
1848
1850
  K,
1849
1851
  {
1850
- ref: (g) => {
1851
- l.current[y] = g;
1852
+ ref: (m) => {
1853
+ l.current[y] = m;
1852
1854
  },
1853
1855
  placeholder: "",
1854
1856
  value: h,
1855
- onChange: (g) => m(y, g.target.value),
1856
- onKeyDown: (g) => f(y, g),
1857
+ onChange: (m) => g(y, m.target.value),
1858
+ onKeyDown: (m) => f(y, m),
1857
1859
  onPaste: w,
1858
1860
  disabled: c,
1859
1861
  maxLength: 1,
@@ -1897,17 +1899,17 @@ const z0 = ({
1897
1899
  format: C = "spaced",
1898
1900
  customFormat: d,
1899
1901
  value: l,
1900
- onChange: m,
1902
+ onChange: g,
1901
1903
  ...f
1902
1904
  }) => {
1903
1905
  const w = e ? "phone-input-error-state" : "", [h, y] = j("");
1904
1906
  P(() => {
1905
1907
  if (l !== void 0) {
1906
- const b = String(l).replace(/\D/g, ""), u = g(b);
1908
+ const b = String(l).replace(/\D/g, ""), u = m(b);
1907
1909
  y(u);
1908
1910
  }
1909
1911
  }, [l, C, o]);
1910
- const g = (b) => {
1912
+ const m = (b) => {
1911
1913
  const u = b.replace(/\D/g, "");
1912
1914
  if (d)
1913
1915
  return d(u);
@@ -1919,29 +1921,29 @@ const z0 = ({
1919
1921
  var u;
1920
1922
  !/^\d$/.test(b.key) && b.key !== "Backspace" && b.key !== "Delete" && b.key !== "Tab" && b.key !== "ArrowLeft" && b.key !== "ArrowRight" && b.key !== "Home" && b.key !== "End" && b.preventDefault(), (u = f.onKeyDown) == null || u.call(f, b);
1921
1923
  }, x = (b) => {
1922
- const u = b.target, k = u.selectionStart || 0, M = u.value.replace(/\D/g, ""), Z = g(M);
1924
+ const u = b.target, k = u.selectionStart || 0, M = u.value.replace(/\D/g, ""), Z = m(M);
1923
1925
  y(Z);
1924
1926
  const z = h.length, E = Z.length - z;
1925
1927
  if (requestAnimationFrame(() => {
1926
1928
  const L = Math.max(0, Math.min(k + E, Z.length));
1927
1929
  u.setSelectionRange(L, L);
1928
- }), m) {
1930
+ }), g) {
1929
1931
  const L = {
1930
1932
  ...b,
1931
1933
  target: { ...b.target, value: M }
1932
1934
  };
1933
- m(L);
1935
+ g(L);
1934
1936
  }
1935
1937
  }, v = (b) => {
1936
1938
  var L;
1937
1939
  b.preventDefault();
1938
- const k = b.clipboardData.getData("text/plain").replace(/\D/g, ""), Z = b.target.selectionStart || 0, F = h.replace(/\D/g, "").slice(0, Z) + k, E = g(F);
1939
- if (y(E), m) {
1940
+ const k = b.clipboardData.getData("text/plain").replace(/\D/g, ""), Z = b.target.selectionStart || 0, F = h.replace(/\D/g, "").slice(0, Z) + k, E = m(F);
1941
+ if (y(E), g) {
1940
1942
  const _ = {
1941
1943
  ...b,
1942
1944
  target: { ...b.target, value: F }
1943
1945
  };
1944
- m(_);
1946
+ g(_);
1945
1947
  }
1946
1948
  (L = f.onPaste) == null || L.call(f, b);
1947
1949
  };
@@ -2069,23 +2071,23 @@ const z0 = ({
2069
2071
  value: C,
2070
2072
  ...d
2071
2073
  }) => {
2072
- const l = e ? "currency-input-error-state" : "", [m, f] = j(""), w = (g) => {
2073
- const x = g.replace(/[^\d.]/g, "").split("."), v = x[0], b = x[1], u = v.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
2074
+ const l = e ? "currency-input-error-state" : "", [g, f] = j(""), w = (m) => {
2075
+ const x = m.replace(/[^\d.]/g, "").split("."), v = x[0], b = x[1], u = v.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
2074
2076
  return b !== void 0 ? `${u}.${b}` : u;
2075
- }, h = (g) => g.replace(/,/g, "");
2077
+ }, h = (m) => m.replace(/,/g, "");
2076
2078
  P(() => {
2077
2079
  if (C !== void 0) {
2078
- const g = String(C);
2079
- f(c ? w(g) : g);
2080
+ const m = String(C);
2081
+ f(c ? w(m) : m);
2080
2082
  }
2081
2083
  }, [C, c]);
2082
- const y = (g) => {
2083
- const V = g.target.value;
2084
+ const y = (m) => {
2085
+ const V = m.target.value;
2084
2086
  if (c) {
2085
2087
  const x = h(V), v = w(x);
2086
- f(v), a && a(x, g);
2088
+ f(v), a && a(x, m);
2087
2089
  } else
2088
- f(V), a && a(V, g);
2090
+ f(V), a && a(V, m);
2089
2091
  };
2090
2092
  return /* @__PURE__ */ p("div", { className: "w-full", children: [
2091
2093
  t && /* @__PURE__ */ p(
@@ -2144,7 +2146,7 @@ const z0 = ({
2144
2146
  status: e ? "error" : o,
2145
2147
  prefix: /* @__PURE__ */ n("span", { children: i }),
2146
2148
  ...d,
2147
- value: c ? m : C,
2149
+ value: c ? g : C,
2148
2150
  onChange: y,
2149
2151
  style: {
2150
2152
  borderColor: e ? "#C21919" : "#D1D1D1",
@@ -2335,7 +2337,7 @@ function n2(t, e) {
2335
2337
  r[o] = e(r[o] || 0, s[o] || "", o);
2336
2338
  return s[3] ? r[3] = s[3].includes("%") ? r[3] / 100 : r[3] : r[3] = 1, r;
2337
2339
  }
2338
- const m2 = (t, e, s) => s === 0 ? t : t / 100;
2340
+ const g2 = (t, e, s) => s === 0 ? t : t / 100;
2339
2341
  function U(t, e) {
2340
2342
  const s = e || 255;
2341
2343
  return t > s ? s : t < 0 ? 0 : t;
@@ -2649,8 +2651,8 @@ class A {
2649
2651
  return;
2650
2652
  }
2651
2653
  let c = 0, a = 0, C = 0;
2652
- const d = i / 60, l = (1 - Math.abs(2 * r - 1)) * s, m = l * (1 - Math.abs(d % 2 - 1));
2653
- d >= 0 && d < 1 ? (c = l, a = m) : d >= 1 && d < 2 ? (c = m, a = l) : d >= 2 && d < 3 ? (a = l, C = m) : d >= 3 && d < 4 ? (a = m, C = l) : d >= 4 && d < 5 ? (c = m, C = l) : d >= 5 && d < 6 && (c = l, C = m);
2654
+ const d = i / 60, l = (1 - Math.abs(2 * r - 1)) * s, g = l * (1 - Math.abs(d % 2 - 1));
2655
+ d >= 0 && d < 1 ? (c = l, a = g) : d >= 1 && d < 2 ? (c = g, a = l) : d >= 2 && d < 3 ? (a = l, C = g) : d >= 3 && d < 4 ? (a = g, C = l) : d >= 4 && d < 5 ? (c = g, C = l) : d >= 5 && d < 6 && (c = l, C = g);
2654
2656
  const f = r - l / 2;
2655
2657
  this.r = B((c + f) * 255), this.g = B((a + f) * 255), this.b = B((C + f) * 255);
2656
2658
  }
@@ -2665,31 +2667,31 @@ class A {
2665
2667
  const c = B(r * 255);
2666
2668
  if (this.r = c, this.g = c, this.b = c, s <= 0)
2667
2669
  return;
2668
- const a = i / 60, C = Math.floor(a), d = a - C, l = B(r * (1 - s) * 255), m = B(r * (1 - s * d) * 255), f = B(r * (1 - s * (1 - d)) * 255);
2670
+ const a = i / 60, C = Math.floor(a), d = a - C, l = B(r * (1 - s) * 255), g = B(r * (1 - s * d) * 255), f = B(r * (1 - s * (1 - d)) * 255);
2669
2671
  switch (C) {
2670
2672
  case 0:
2671
2673
  this.g = f, this.b = l;
2672
2674
  break;
2673
2675
  case 1:
2674
- this.r = m, this.b = l;
2676
+ this.r = g, this.b = l;
2675
2677
  break;
2676
2678
  case 2:
2677
2679
  this.r = l, this.b = f;
2678
2680
  break;
2679
2681
  case 3:
2680
- this.r = l, this.g = m;
2682
+ this.r = l, this.g = g;
2681
2683
  break;
2682
2684
  case 4:
2683
2685
  this.r = f, this.g = l;
2684
2686
  break;
2685
2687
  case 5:
2686
2688
  default:
2687
- this.g = l, this.b = m;
2689
+ this.g = l, this.b = g;
2688
2690
  break;
2689
2691
  }
2690
2692
  }
2691
2693
  fromHsvString(e) {
2692
- const s = n2(e, m2);
2694
+ const s = n2(e, g2);
2693
2695
  this.fromHsv({
2694
2696
  h: s[0],
2695
2697
  s: s[1],
@@ -2698,7 +2700,7 @@ class A {
2698
2700
  });
2699
2701
  }
2700
2702
  fromHslString(e) {
2701
- const s = n2(e, m2);
2703
+ const s = n2(e, g2);
2702
2704
  this.fromHsl({
2703
2705
  h: s[0],
2704
2706
  s: s[1],
@@ -2830,10 +2832,10 @@ function E2(t, e = {}) {
2830
2832
  } = C;
2831
2833
  if (r) {
2832
2834
  if (c) {
2833
- const l = (e.styles || p2(C)).filter((m) => {
2834
- if (!["prepend", "prependQueue"].includes(m.getAttribute(v2)))
2835
+ const l = (e.styles || p2(C)).filter((g) => {
2836
+ if (!["prepend", "prependQueue"].includes(g.getAttribute(v2)))
2835
2837
  return !1;
2836
- const f = Number(m.getAttribute(w2) || 0);
2838
+ const f = Number(g.getAttribute(w2) || 0);
2837
2839
  return o >= f;
2838
2840
  });
2839
2841
  if (l.length)
@@ -2883,18 +2885,18 @@ function h0(t) {
2883
2885
  return u0(t) ? Z2(t) : null;
2884
2886
  }
2885
2887
  let l2 = {};
2886
- const g2 = [], p0 = (t) => {
2887
- g2.push(t);
2888
+ const m2 = [], p0 = (t) => {
2889
+ m2.push(t);
2888
2890
  };
2889
- function g0(t, e) {
2891
+ function m0(t, e) {
2890
2892
  if (process.env.NODE_ENV !== "production" && !t && console !== void 0) {
2891
- const s = g2.reduce((r, o) => o(r ?? "", "warning"), e);
2893
+ const s = m2.reduce((r, o) => o(r ?? "", "warning"), e);
2892
2894
  s && console.error(`Warning: ${s}`);
2893
2895
  }
2894
2896
  }
2895
- function m0(t, e) {
2897
+ function g0(t, e) {
2896
2898
  if (process.env.NODE_ENV !== "production" && !t && console !== void 0) {
2897
- const s = g2.reduce((r, o) => o(r ?? "", "note"), e);
2899
+ const s = m2.reduce((r, o) => o(r ?? "", "note"), e);
2898
2900
  s && console.warn(`Note: ${s}`);
2899
2901
  }
2900
2902
  }
@@ -2905,10 +2907,10 @@ function F2(t, e, s) {
2905
2907
  !e && !l2[s] && (t(!1, s), l2[s] = !0);
2906
2908
  }
2907
2909
  function t2(t, e) {
2908
- F2(g0, t, e);
2910
+ F2(m0, t, e);
2909
2911
  }
2910
2912
  function x0(t, e) {
2911
- F2(m0, t, e);
2913
+ F2(g0, t, e);
2912
2914
  }
2913
2915
  t2.preMessage = p0;
2914
2916
  t2.resetWarned = f0;
@@ -3113,8 +3115,8 @@ const r2 = /* @__PURE__ */ I.forwardRef((t, e) => {
3113
3115
  ...d
3114
3116
  } = t, {
3115
3117
  prefixCls: l = "anticon",
3116
- rootClassName: m
3117
- } = I.useContext(M2), f = J2(m, l, {
3118
+ rootClassName: g
3119
+ } = I.useContext(M2), f = J2(g, l, {
3118
3120
  [`${l}-${r.name}`]: !!r.name,
3119
3121
  [`${l}-spin`]: !!o || r.name === "loading"
3120
3122
  }, s);
@@ -3123,7 +3125,7 @@ const r2 = /* @__PURE__ */ I.forwardRef((t, e) => {
3123
3125
  const h = i ? {
3124
3126
  msTransform: `rotate(${i}deg)`,
3125
3127
  transform: `rotate(${i}deg)`
3126
- } : void 0, [y, g] = _2(C);
3128
+ } : void 0, [y, m] = _2(C);
3127
3129
  return /* @__PURE__ */ I.createElement("span", C2({
3128
3130
  role: "img",
3129
3131
  "aria-label": r.name
@@ -3135,7 +3137,7 @@ const r2 = /* @__PURE__ */ I.forwardRef((t, e) => {
3135
3137
  }), /* @__PURE__ */ I.createElement(W, {
3136
3138
  icon: r,
3137
3139
  primaryColor: y,
3138
- secondaryColor: g,
3140
+ secondaryColor: m,
3139
3141
  style: h
3140
3142
  }));
3141
3143
  });
@@ -3328,9 +3330,9 @@ const J0 = ({
3328
3330
  ] }),
3329
3331
  // Add searchable text for filtering
3330
3332
  searchLabel: `${l.name} ${l.code}`.toLowerCase()
3331
- })), d = (l, m) => {
3333
+ })), d = (l, g) => {
3332
3334
  var f;
3333
- return ((f = m == null ? void 0 : m.searchLabel) == null ? void 0 : f.includes(l.toLowerCase())) || !1;
3335
+ return ((f = g == null ? void 0 : g.searchLabel) == null ? void 0 : f.includes(l.toLowerCase())) || !1;
3334
3336
  };
3335
3337
  return /* @__PURE__ */ p(u2, { children: [
3336
3338
  /* @__PURE__ */ n("style", { children: `
@@ -3429,8 +3431,8 @@ const J0 = ({
3429
3431
  ], C = ({ key: l }) => {
3430
3432
  o && o(l);
3431
3433
  }, d = (l) => {
3432
- const m = l.split(" ");
3433
- return m.length >= 2 ? `${m[0][0]}${m[1][0]}`.toUpperCase() : l.substring(0, 2).toUpperCase();
3434
+ const g = l.split(" ");
3435
+ return g.length >= 2 ? `${g[0][0]}${g[1][0]}`.toUpperCase() : l.substring(0, 2).toUpperCase();
3434
3436
  };
3435
3437
  return /* @__PURE__ */ p(u2, { children: [
3436
3438
  /* @__PURE__ */ n("style", { children: `
@@ -3634,8 +3636,8 @@ const J0 = ({
3634
3636
  width: C = 348,
3635
3637
  className: d = ""
3636
3638
  }) => {
3637
- const [l, m] = j(!0), f = () => {
3638
- m(!l), o && o();
3639
+ const [l, g] = j(!0), f = () => {
3640
+ g(!l), o && o();
3639
3641
  }, w = /* @__PURE__ */ p("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
3640
3642
  /* @__PURE__ */ n("rect", { x: "3", y: "6", width: "18", height: "12", rx: "2", stroke: "currentColor", strokeWidth: "2" }),
3641
3643
  /* @__PURE__ */ n("path", { d: "M3 10h18M7 14h4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })