sud-ui 1.2.0 → 1.2.1

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.js CHANGED
@@ -913,10 +913,10 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
913
913
  }, o3 = (s, c = 1, o) => {
914
914
  var l;
915
915
  return (l = o == null ? void 0 : o.colors) != null && l[s] && o.colors[s][c] || s;
916
- }, o1 = (...s) => s.filter(Boolean).join(" "), E1 = (s = "", c) => {
916
+ }, o1 = (...s) => s.filter(Boolean).join(" "), A1 = (s = "", c) => {
917
917
  var o;
918
918
  return (o = c == null ? void 0 : c.shadows) != null && o[s] ? c.shadows[s] : "none";
919
- }, Q1 = (s = "rounded", c) => {
919
+ }, X1 = (s = "rounded", c) => {
920
920
  var o;
921
921
  return ((o = c == null ? void 0 : c.shapes) == null ? void 0 : o[s]) || {
922
922
  borderRadius: "10px",
@@ -971,7 +971,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
971
971
  const Z = b1(), { bgColor: v, txtColor: $, borColor: M } = h1({
972
972
  border: n,
973
973
  fallback: c
974
- }), w = o ? N(o, Z) : v, S = l ? N(l, Z) : $, D = a ? N(a, Z) : M, m = n && D ? `${g}px ${f} ${D}` : "none", k = variant === "drawer" || isDrawer ? {} : getShapeStyles(z, Z), F = getShadowStyle(h, Z), V = (A) => {
974
+ }), w = o ? N(o, Z) : v, S = l ? N(l, Z) : $, D = a ? N(a, Z) : M, m = n && D ? `${g}px ${f} ${D}` : "none", k = X1(z, Z), F = A1(h, Z), V = (A) => {
975
975
  d && d(A);
976
976
  };
977
977
  return /* @__PURE__ */ t.jsx(
@@ -1169,7 +1169,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1169
1169
  80% { transform: rotate(270deg); }
1170
1170
  100% { transform: rotate(360deg); }
1171
1171
  }
1172
- `, J1 = ({
1172
+ `, Q1 = ({
1173
1173
  children: s,
1174
1174
  colorType: c = "default",
1175
1175
  background: o,
@@ -1200,7 +1200,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1200
1200
  const I = b1(), L = u1(), { bgColor: U, txtColor: W, borColor: B } = h1({
1201
1201
  border: n,
1202
1202
  fallback: y ? "disabled" : c
1203
- }), _ = o ? N(o, I) : U, C = l ? N(l, I) : W, O = a ? N(a, I) : B, j = n && O ? `${g}px ${f} ${O}` : "none", R = Q1(M, I), r = E1(w, I);
1203
+ }), _ = o ? N(o, I) : U, C = l ? N(l, I) : W, O = a ? N(a, I) : B, j = n && O ? `${g}px ${f} ${O}` : "none", R = X1(M, I), r = A1(w, I);
1204
1204
  let i = {};
1205
1205
  typeof A == "string" && (A === "sm" ? i = { padding: "4px 10px", fontSize: "0.875rem" } : A === "md" ? i = { padding: "6px 16px", fontSize: "1rem" } : A === "lg" && (i = { padding: "10px 20px", fontSize: "1.125rem" })), v1(() => {
1206
1206
  V2("sud-button-styles", X2);
@@ -1349,14 +1349,14 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1349
1349
  if (G || O(e1), z == null || z(e1), !e1 && (E(!1), r.current)) {
1350
1350
  const j1 = _0.get(r.current);
1351
1351
  j1 && j1.forEach((w1) => {
1352
- var t0, K1;
1352
+ var t0, q1;
1353
1353
  const _1 = Array.from(B0).find(
1354
1354
  (I1) => {
1355
1355
  var s0, J;
1356
1356
  return ((J = (s0 = I1.current) == null ? void 0 : s0.popupInstance) == null ? void 0 : J.id) === w1;
1357
1357
  }
1358
1358
  );
1359
- (K1 = (t0 = _1 == null ? void 0 : _1.current) == null ? void 0 : t0.popupInstance) != null && K1.hide && _1.current.popupInstance.hide();
1359
+ (q1 = (t0 = _1 == null ? void 0 : _1.current) == null ? void 0 : t0.popupInstance) != null && q1.hide && _1.current.popupInstance.hide();
1360
1360
  });
1361
1361
  }
1362
1362
  },
@@ -1391,13 +1391,13 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1391
1391
  const { bgColor: i1, txtColor: m1, borColor: k1 } = h1({
1392
1392
  border: v,
1393
1393
  fallback: m
1394
- }), C1 = p ? N(p, _) : i1, L1 = Z ? N(Z, _) : m1, T1 = $ ? N($, _) : k1, B1 = v && T1 ? `${w}px ${M} ${T1}` : "none", P1 = E1(D, _), W1 = Q1(S), z1 = S1(() => {
1394
+ }), C1 = p ? N(p, _) : i1, L1 = Z ? N(Z, _) : m1, T1 = $ ? N($, _) : k1, B1 = v && T1 ? `${w}px ${M} ${T1}` : "none", P1 = A1(D, _), W1 = X1(S), z1 = S1(() => {
1395
1395
  if (!j.current || !r.current) return {};
1396
1396
  const e1 = j.current.getBoundingClientRect(), j1 = r.current.getBoundingClientRect(), w1 = window.scrollY || document.documentElement.scrollTop, _1 = window.scrollX || document.documentElement.scrollLeft, t0 = {
1397
1397
  position: "fixed",
1398
1398
  zIndex: 1e4,
1399
1399
  transition: "opacity 0.2s ease"
1400
- }, [K1, I1] = a.split("-");
1400
+ }, [q1, I1] = a.split("-");
1401
1401
  let J = ((C0, c0) => {
1402
1402
  switch (C0) {
1403
1403
  case "top": {
@@ -1435,10 +1435,10 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1435
1435
  default:
1436
1436
  return {};
1437
1437
  }
1438
- })(K1, I1);
1439
- const R1 = window.innerWidth, A1 = window.innerHeight;
1440
- let $1 = J.left ?? 0, V1 = J.top ?? 0, G1 = j1.width, q1 = j1.height, o0 = !1;
1441
- return $1 < 0 ? ($1 = 8, o0 = !0) : $1 + G1 > R1 && ($1 = R1 - G1 - 8, o0 = !0), V1 < 0 ? (V1 = 8, o0 = !0) : V1 + q1 > A1 && (V1 = A1 - q1 - 8, o0 = !0), o0 && (J.transform = void 0), { ...t0, ...J, left: $1, top: V1 };
1438
+ })(q1, I1);
1439
+ const R1 = window.innerWidth, E1 = window.innerHeight;
1440
+ let $1 = J.left ?? 0, V1 = J.top ?? 0, G1 = j1.width, J1 = j1.height, o0 = !1;
1441
+ return $1 < 0 ? ($1 = 8, o0 = !0) : $1 + G1 > R1 && ($1 = R1 - G1 - 8, o0 = !0), V1 < 0 ? (V1 = 8, o0 = !0) : V1 + J1 > E1 && (V1 = E1 - J1 - 8, o0 = !0), o0 && (J.transform = void 0), { ...t0, ...J, left: $1, top: V1 };
1442
1442
  }, [a]);
1443
1443
  d0(() => {
1444
1444
  if (X && r.current && j.current && !Y) {
@@ -1472,7 +1472,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1472
1472
  }, [X, z1]);
1473
1473
  const O1 = S1(
1474
1474
  ({ type: e1 = "background" }) => {
1475
- const j1 = e1 === "border", w1 = T1 && w > 0, _1 = n0 * 2 + (w1 ? w * 2 : 0), t0 = Math.sqrt(w * w * 2), K1 = !j1 && w1 ? t0 : 0, I1 = {
1475
+ const j1 = e1 === "border", w1 = T1 && w > 0, _1 = n0 * 2 + (w1 ? w * 2 : 0), t0 = Math.sqrt(w * w * 2), q1 = !j1 && w1 ? t0 : 0, I1 = {
1476
1476
  bottom: `linear-gradient(135deg, ${C1} 50%, transparent 50%)`,
1477
1477
  top: `linear-gradient(-45deg, ${C1} 50%, transparent 50%)`,
1478
1478
  left: `linear-gradient(225deg, ${C1} 50%, transparent 50%)`,
@@ -1490,22 +1490,22 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1490
1490
  boxShadow: j1 ? P1 : void 0
1491
1491
  }, J = {
1492
1492
  bottom: {
1493
- top: `-${n0 - K1}px`,
1493
+ top: `-${n0 - q1}px`,
1494
1494
  left: "50%",
1495
1495
  transform: "translateX(-50%) rotate(45deg)"
1496
1496
  },
1497
1497
  top: {
1498
- bottom: `-${n0 - K1}px`,
1498
+ bottom: `-${n0 - q1}px`,
1499
1499
  left: "50%",
1500
1500
  transform: "translateX(-50%) rotate(45deg)"
1501
1501
  },
1502
1502
  right: {
1503
- left: `-${n0 - K1}px`,
1503
+ left: `-${n0 - q1}px`,
1504
1504
  top: "50%",
1505
1505
  transform: "translateY(-50%) rotate(45deg)"
1506
1506
  },
1507
1507
  left: {
1508
- right: `-${n0 - K1}px`,
1508
+ right: `-${n0 - q1}px`,
1509
1509
  top: "50%",
1510
1510
  transform: "translateY(-50%) rotate(45deg)"
1511
1511
  }
@@ -1525,7 +1525,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1525
1525
  if (n !== "hover") return;
1526
1526
  const e1 = (j1) => {
1527
1527
  var I1, s0;
1528
- const w1 = document.elementFromPoint(j1.clientX, j1.clientY), _1 = (I1 = j.current) == null ? void 0 : I1.contains(w1), t0 = (s0 = r.current) == null ? void 0 : s0.contains(w1), K1 = G2(
1528
+ const w1 = document.elementFromPoint(j1.clientX, j1.clientY), _1 = (I1 = j.current) == null ? void 0 : I1.contains(w1), t0 = (s0 = r.current) == null ? void 0 : s0.contains(w1), q1 = G2(
1529
1529
  r,
1530
1530
  w1,
1531
1531
  G0,
@@ -1535,7 +1535,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1535
1535
  _1 && t1();
1536
1536
  return;
1537
1537
  }
1538
- !_1 && !t0 && !K1 ? i.current || (i.current = setTimeout(() => {
1538
+ !_1 && !t0 && !q1 ? i.current || (i.current = setTimeout(() => {
1539
1539
  r1();
1540
1540
  }, 100)) : (clearTimeout(i.current), i.current = null);
1541
1541
  };
@@ -1648,8 +1648,8 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1648
1648
  }
1649
1649
  ) : c),
1650
1650
  I === "popconfirm" && (L === !0 || L === void 0) ? /* @__PURE__ */ t.jsxs("div", { className: "sud-popconfirm__footer flex flex-row gap-8 item-cen jus-cen", children: [
1651
- /* @__PURE__ */ t.jsx(J1, { colorType: "primary", onClick: q, children: "okay" }),
1652
- /* @__PURE__ */ t.jsx(J1, { colorType: "danger", onClick: Q, children: "cancel" })
1651
+ /* @__PURE__ */ t.jsx(Q1, { colorType: "primary", onClick: q, children: "okay" }),
1652
+ /* @__PURE__ */ t.jsx(Q1, { colorType: "danger", onClick: Q, children: "cancel" })
1653
1653
  ] }) : L === !0 || L !== void 0 ? L : null
1654
1654
  ]
1655
1655
  }
@@ -1707,7 +1707,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1707
1707
  border: h,
1708
1708
  componentType: "tag",
1709
1709
  fallback: f
1710
- }), A = g ? N(g, D) : k, I = z ? N(z, D) : F, L = d ? N(d, D) : V, U = h && L ? `${y}px ${x} ${L}` : "none", W = Q1(a, D), B = E1(p, D), _ = s || (l ? null : c ? K2[c] : null), C = () => l || (_ ? typeof _ == "string" ? _.startsWith("http") || _.startsWith("/") || _.startsWith("data:image") ? /* @__PURE__ */ t.jsx(
1710
+ }), A = g ? N(g, D) : k, I = z ? N(z, D) : F, L = d ? N(d, D) : V, U = h && L ? `${y}px ${x} ${L}` : "none", W = X1(a, D), B = A1(p, D), _ = s || (l ? null : c ? K2[c] : null), C = () => l || (_ ? typeof _ == "string" ? _.startsWith("http") || _.startsWith("/") || _.startsWith("data:image") ? /* @__PURE__ */ t.jsx(
1711
1711
  "img",
1712
1712
  {
1713
1713
  className: "sud-avatar-img",
@@ -2012,7 +2012,7 @@ const q2 = {
2012
2012
  background: I,
2013
2013
  color: L,
2014
2014
  border: W,
2015
- boxShadow: E1(p, k),
2015
+ boxShadow: A1(p, k),
2016
2016
  display: "flex",
2017
2017
  justifyContent: "center",
2018
2018
  alignItems: "center",
@@ -2761,7 +2761,7 @@ const n9 = {
2761
2761
  /* @__PURE__ */ e.jsx("path", { d: "M13,8.5c-.2763672,0-.5-.2236328-.5-.5V2h-4.875c-1.9990234,0-3.625,1.659668-3.625,3.7001953v12.5996094c0,2.0405273,1.6259766,3.7001953,3.625,3.7001953h8.75c1.9990234,0,3.625-1.659668,3.625-3.7001953v-9.7998047h-7Z" })
2762
2762
  ] }),
2763
2763
  DocumentOutline: /* @__PURE__ */ e.jsx("g", { children: /* @__PURE__ */ e.jsx("path", { d: "M19.9884644,7.9429321c-.0056763-.0961304-.0238037-.1889648-.0563965-.2791748-.0136108-.0377197-.02948-.0718994-.0473633-.1074219-.0358887-.0717163-.0809937-.1365967-.1340332-.1987305-.0255127-.0297852-.0474854-.0601196-.0762939-.086731-.0128784-.0119629-.0206299-.0275879-.0342407-.0389404l-6-5c-.0758057-.0632935-.1593628-.1132812-.2473145-.1508789-.0074463-.0031738-.0159912-.003418-.0235596-.0064697-.1038818-.0413818-.2130127-.0603638-.3239136-.0654297-.0159302-.0007324-.0292358-.0091553-.0453491-.0091553h-5.375c-1.9990234,0-3.625,1.659668-3.625,3.7001953v12.5996094c0,2.0405273,1.6259766,3.7001953,3.625,3.7001953h8.75c1.9990234,0,3.625-1.659668,3.625-3.7001953v-10.2998047c0-.0202637-.010376-.0371094-.0115356-.0570679ZM14,5.1352539l2.237793,1.8647461h-2.237793v-1.8647461ZM16.375,20H7.625c-.8959961,0-1.625-.7626953-1.625-1.7001953V5.7001953c0-.9375.7290039-1.7001953,1.625-1.7001953h4.375v4c0,.5522461.4477539,1,1,1h5v9.2998047c0,.9375-.7290039,1.7001953-1.625,1.7001953Z" }) })
2764
- }, X1 = Object.entries(n9).reduce((s, [c, o]) => {
2764
+ }, K1 = Object.entries(n9).reduce((s, [c, o]) => {
2765
2765
  const l = ({ size: n = 24, color: a, style: f = {}, ...g }) => /* @__PURE__ */ e.jsx(
2766
2766
  "svg",
2767
2767
  {
@@ -2778,22 +2778,22 @@ const n9 = {
2778
2778
  );
2779
2779
  return l.displayName = c, s[c] = l, s;
2780
2780
  }, {});
2781
- X1.BarChartFill;
2782
- X1.BarChartOutline;
2783
- X1.DonutChartFill;
2784
- X1.DonutChartOutline;
2785
- X1.LineChart;
2786
- X1.PieChartFill;
2787
- X1.PieChartOutline;
2788
- X1.BriefcaseFill;
2789
- X1.BriefcaseOutline;
2790
- X1.CalendarFill;
2791
- const o9 = X1.CalendarOutline;
2792
- X1.OrganizationChartFill;
2793
- X1.OrganizationChartOutline;
2794
- X1.Barcode;
2795
- X1.DocumentFill;
2796
- const a9 = X1.DocumentOutline, i9 = {
2781
+ K1.BarChartFill;
2782
+ K1.BarChartOutline;
2783
+ K1.DonutChartFill;
2784
+ K1.DonutChartOutline;
2785
+ K1.LineChart;
2786
+ K1.PieChartFill;
2787
+ K1.PieChartOutline;
2788
+ K1.BriefcaseFill;
2789
+ K1.BriefcaseOutline;
2790
+ K1.CalendarFill;
2791
+ const o9 = K1.CalendarOutline;
2792
+ K1.OrganizationChartFill;
2793
+ K1.OrganizationChartOutline;
2794
+ K1.Barcode;
2795
+ K1.DocumentFill;
2796
+ const a9 = K1.DocumentOutline, i9 = {
2797
2797
  FolderFill: [
2798
2798
  /* @__PURE__ */ e.jsx(
2799
2799
  "path",
@@ -6498,7 +6498,7 @@ const M0 = ({
6498
6498
  border: Z,
6499
6499
  fallback: c,
6500
6500
  componentType: "tag"
6501
- }), k = o ? N(o, w) : S, F = l ? N(l, w) : D, V = n ? N(n, w) : m, A = Z && V ? `${f}px ${a} ${V}` : "none", I = Q1(y, w), L = E1(p, w), U = {
6501
+ }), k = o ? N(o, w) : S, F = l ? N(l, w) : D, V = n ? N(n, w) : m, A = Z && V ? `${f}px ${a} ${V}` : "none", I = X1(y, w), L = A1(p, w), U = {
6502
6502
  sm: w.typography.fontSize.sm,
6503
6503
  md: w.typography.fontSize.base,
6504
6504
  lg: w.typography.fontSize.lg
@@ -6541,7 +6541,7 @@ const M0 = ({
6541
6541
  _,
6542
6542
  d && x === "right" && d,
6543
6543
  z && /* @__PURE__ */ t.jsx(
6544
- J1,
6544
+ Q1,
6545
6545
  {
6546
6546
  className: "sud-tag__close",
6547
6547
  background: k,
@@ -6607,8 +6607,8 @@ const M0 = ({
6607
6607
  }), r1 = u1(null), Z1 = u1(null), q = u1(null), Q = u1([]), i1 = W.filter(
6608
6608
  (J) => J.label.toLowerCase().includes(b.toLowerCase())
6609
6609
  ), m1 = L ? W.filter((J) => Array.isArray(x) && x.includes(J.value)) : W.find((J) => J.value === x), k1 = S1((J) => {
6610
- var R1, A1;
6611
- !((R1 = r1.current) != null && R1.contains(J.target)) && !((A1 = q.current) != null && A1.contains(J.target)) && u(!1);
6610
+ var R1, E1;
6611
+ !((R1 = r1.current) != null && R1.contains(J.target)) && !((E1 = q.current) != null && E1.contains(J.target)) && u(!1);
6612
6612
  }, []), C1 = S1((J) => {
6613
6613
  J.key === "Escape" && u(!1);
6614
6614
  }, []), L1 = S1(
@@ -6635,26 +6635,26 @@ const M0 = ({
6635
6635
  ]
6636
6636
  ), T1 = S1(
6637
6637
  (J) => {
6638
- var R1, A1, $1, V1;
6638
+ var R1, E1, $1, V1;
6639
6639
  if (J.key.length === 1 && !J.ctrlKey && !J.altKey && !J.metaKey) {
6640
6640
  i || u(!0), (R1 = Z1.current) == null || R1.focus();
6641
6641
  return;
6642
6642
  }
6643
6643
  if (!i && (J.key === "Enter" || J.key === "ArrowDown")) {
6644
- J.preventDefault(), u(!0), E(0), (A1 = Z1.current) == null || A1.focus();
6644
+ J.preventDefault(), u(!0), E(0), (E1 = Z1.current) == null || E1.focus();
6645
6645
  return;
6646
6646
  }
6647
6647
  switch (J.key) {
6648
6648
  case "ArrowDown":
6649
6649
  J.preventDefault(), ($1 = Z1.current) == null || $1.focus(), E((G1) => {
6650
- const q1 = G1 + 1;
6651
- return q1 >= i1.length ? 0 : q1;
6650
+ const J1 = G1 + 1;
6651
+ return J1 >= i1.length ? 0 : J1;
6652
6652
  });
6653
6653
  break;
6654
6654
  case "ArrowUp":
6655
6655
  J.preventDefault(), (V1 = Z1.current) == null || V1.focus(), E((G1) => {
6656
- const q1 = G1 - 1;
6657
- return q1 < 0 ? i1.length - 1 : q1;
6656
+ const J1 = G1 - 1;
6657
+ return J1 < 0 ? i1.length - 1 : J1;
6658
6658
  });
6659
6659
  break;
6660
6660
  case "Enter":
@@ -6669,7 +6669,7 @@ const M0 = ({
6669
6669
  case "Backspace":
6670
6670
  if (b === "" && L && Array.isArray(x) && x.length > 0) {
6671
6671
  const G1 = W.find(
6672
- (q1) => q1.value === x[x.length - 1]
6672
+ (J1) => J1.value === x[x.length - 1]
6673
6673
  );
6674
6674
  G1 && L1(G1);
6675
6675
  }
@@ -6688,9 +6688,9 @@ const M0 = ({
6688
6688
  ]
6689
6689
  ), B1 = S1(() => {
6690
6690
  if (!r1.current || !q.current) return;
6691
- const J = r1.current.getBoundingClientRect(), R1 = q.current.getBoundingClientRect(), A1 = window.scrollY || document.documentElement.scrollTop, $1 = window.scrollX || document.documentElement.scrollLeft, V1 = window.innerHeight - J.bottom, G1 = J.top, q1 = V1 < R1.height && G1 > V1;
6691
+ const J = r1.current.getBoundingClientRect(), R1 = q.current.getBoundingClientRect(), E1 = window.scrollY || document.documentElement.scrollTop, $1 = window.scrollX || document.documentElement.scrollLeft, V1 = window.innerHeight - J.bottom, G1 = J.top, J1 = V1 < R1.height && G1 > V1;
6692
6692
  t1({
6693
- top: q1 ? J.top - R1.height - 4 + A1 : J.bottom + 4 + A1,
6693
+ top: J1 ? J.top - R1.height - 4 + E1 : J.bottom + 4 + E1,
6694
6694
  left: J.left + $1
6695
6695
  });
6696
6696
  }, []);
@@ -6725,7 +6725,7 @@ const M0 = ({
6725
6725
  border: o,
6726
6726
  fallback: m ? "error" : G ? "focus" : "default",
6727
6727
  componentType: "input"
6728
- }), e1 = s ? N(s, r) : W1, j1 = c ? N(c, r) : z1, w1 = l ? N(l, r) : O1, _1 = o && w1 ? `${a}px ${n} ${w1}` : "none", t0 = Q1(p, r), K1 = E1(Z, r), I1 = {
6728
+ }), e1 = s ? N(s, r) : W1, j1 = c ? N(c, r) : z1, w1 = l ? N(l, r) : O1, _1 = o && w1 ? `${a}px ${n} ${w1}` : "none", t0 = X1(p, r), q1 = A1(Z, r), I1 = {
6729
6729
  sm: { height: 32, fontSize: 14, padding: "4px" },
6730
6730
  md: { height: 38, fontSize: 16, padding: "6px" },
6731
6731
  lg: { height: 42, fontSize: 18, padding: "8px" }
@@ -6784,7 +6784,7 @@ const M0 = ({
6784
6784
  width: "100%",
6785
6785
  padding: I1.padding,
6786
6786
  cursor: F ? "not-allowed" : "pointer",
6787
- boxShadow: K1,
6787
+ boxShadow: q1,
6788
6788
  ...f ? {
6789
6789
  borderTop: "none",
6790
6790
  borderRight: "none",
@@ -6954,7 +6954,7 @@ const M0 = ({
6954
6954
  transition: "opacity 0.2s ease",
6955
6955
  pointerEvents: "auto",
6956
6956
  borderRadius: 6,
6957
- boxShadow: E1("md", r),
6957
+ boxShadow: A1("md", r),
6958
6958
  color: j1,
6959
6959
  zIndex: 1e4,
6960
6960
  background: e1,
@@ -6978,18 +6978,18 @@ const M0 = ({
6978
6978
  children: "검색 결과가 없습니다"
6979
6979
  }
6980
6980
  ) : i1.map((J, R1) => {
6981
- const A1 = L ? x == null ? void 0 : x.includes(J.value) : x === J.value;
6981
+ const E1 = L ? x == null ? void 0 : x.includes(J.value) : x === J.value;
6982
6982
  return /* @__PURE__ */ t.jsx(
6983
6983
  "div",
6984
6984
  {
6985
6985
  ref: ($1) => Q.current[R1] = $1,
6986
6986
  className: o1(
6987
6987
  "sud-select__option",
6988
- A1 ? "sud-select__option--selected" : "",
6988
+ E1 ? "sud-select__option--selected" : "",
6989
6989
  R1 === Y ? "sud-select__option--focused" : ""
6990
6990
  ),
6991
6991
  role: "option",
6992
- "aria-selected": A1,
6992
+ "aria-selected": E1,
6993
6993
  "aria-disabled": F,
6994
6994
  onClick: ($1) => {
6995
6995
  $1.stopPropagation(), L1(J);
@@ -6998,17 +6998,17 @@ const M0 = ({
6998
6998
  padding: "8px 12px",
6999
6999
  cursor: F ? "not-allowed" : "pointer",
7000
7000
  fontSize: I1.fontSize,
7001
- backgroundColor: A1 ? N("sky-1", r) : e1,
7001
+ backgroundColor: E1 ? N("sky-1", r) : e1,
7002
7002
  transition: "background-color 0.2s ease"
7003
7003
  },
7004
7004
  onMouseEnter: ($1) => {
7005
- A1 || ($1.currentTarget.style.backgroundColor = N(
7005
+ E1 || ($1.currentTarget.style.backgroundColor = N(
7006
7006
  "cool-gray-2",
7007
7007
  r
7008
7008
  ));
7009
7009
  },
7010
7010
  onMouseLeave: ($1) => {
7011
- A1 || ($1.currentTarget.style.backgroundColor = e1);
7011
+ E1 || ($1.currentTarget.style.backgroundColor = e1);
7012
7012
  },
7013
7013
  children: J.label
7014
7014
  },
@@ -7067,7 +7067,7 @@ const M0 = ({
7067
7067
  const S = b1(), D = (L) => typeof L == "object" ? L.value : L, m = (L) => typeof L == "object" ? L.label : L, k = (L) => typeof L == "object" && L.disabled, { bgColor: F } = h1({
7068
7068
  fallback: "hovered",
7069
7069
  componentType: "etc"
7070
- }), V = Q1(Z, S), A = E1(p, S), I = (L, U) => {
7070
+ }), V = X1(Z, S), A = A1(p, S), I = (L, U) => {
7071
7071
  (L.key === "Enter" || L.key === " ") && (L.preventDefault(), l || o == null || o(U));
7072
7072
  };
7073
7073
  return /* @__PURE__ */ t.jsx(
@@ -7091,7 +7091,7 @@ const M0 = ({
7091
7091
  children: s.map((L, U) => {
7092
7092
  const W = D(L), B = m(L), _ = W === c, C = l || k(L);
7093
7093
  return /* @__PURE__ */ t.jsx(
7094
- J1,
7094
+ Q1,
7095
7095
  {
7096
7096
  onClick: () => !C && (o == null ? void 0 : o(W)),
7097
7097
  onKeyDown: (O) => I(O, W),
@@ -7203,7 +7203,7 @@ const M0 = ({
7203
7203
  const V = b1(), { bgColor: A, txtColor: I, borColor: L } = h1({
7204
7204
  border: g,
7205
7205
  fallback: n
7206
- }), U = a ? N(a, V) : A, W = f ? N(f, V) : I, B = z ? N(z, V) : L, _ = g && B ? `${d}px ${h} ${B}` : "none", C = w === "drawer" || m ? {} : Q1(x, V), O = E1(y, V), j = V.spacing;
7206
+ }), U = a ? N(a, V) : A, W = f ? N(f, V) : I, B = z ? N(z, V) : L, _ = g && B ? `${d}px ${h} ${B}` : "none", C = w === "drawer" || m ? {} : X1(x, V), O = A1(y, V), j = V.spacing;
7207
7207
  return /* @__PURE__ */ t.jsxs(
7208
7208
  "div",
7209
7209
  {
@@ -7422,7 +7422,7 @@ const M0 = ({
7422
7422
  }, [k, F]);
7423
7423
  const _1 = (s1, f1) => !s1 || !f1 ? !1 : d1(s1).isSame(d1(f1), "day"), t0 = (s1) => {
7424
7424
  P1(), r1(s1), s1 === "daily" && b(X);
7425
- }, K1 = F1(() => {
7425
+ }, q1 = F1(() => {
7426
7426
  const s1 = [], f1 = d1(u), N1 = f1.startOf("month"), x1 = N1.day(), u0 = f1.daysInMonth(), a0 = f1.endOf("month").day(), w0 = x1 + u0 + (6 - a0);
7427
7427
  for (let r0 = 0; r0 < w0; r0++) {
7428
7428
  let i0, l0 = !0;
@@ -7443,11 +7443,11 @@ const M0 = ({
7443
7443
  border: Z,
7444
7444
  fallback: d,
7445
7445
  componentType: "tag"
7446
- }), R1 = x ? N(x, W) : I1, A1 = N(y || "neutral-2", W), $1 = p ? N(p, W) : s0, V1 = v ? N(v, W) : J, G1 = Z && V1 ? `${M}px ${$} ${V1}` : "none", q1 = (s1) => {
7446
+ }), R1 = x ? N(x, W) : I1, E1 = N(y || "neutral-2", W), $1 = p ? N(p, W) : s0, V1 = v ? N(v, W) : J, G1 = Z && V1 ? `${M}px ${$} ${V1}` : "none", J1 = (s1) => {
7447
7447
  if (!I || I.length === 0) return !1;
7448
7448
  const f1 = d1(s1).format("YYYY-MM-DD");
7449
7449
  return I.includes(f1);
7450
- }, o0 = (s1, f1) => q1(f1) || s1 === 0 || s1 === 6 ? N("red-6", W) : "inherit", C0 = (s1) => {
7450
+ }, o0 = (s1, f1) => J1(f1) || s1 === 0 || s1 === 6 ? N("red-6", W) : "inherit", C0 = (s1) => {
7451
7451
  if (t1 === "year") {
7452
7452
  const N1 = d1(s1).startOf("month");
7453
7453
  b(N1), r1("month");
@@ -7588,7 +7588,7 @@ const M0 = ({
7588
7588
  },
7589
7589
  children: [
7590
7590
  /* @__PURE__ */ t.jsx(
7591
- J1,
7591
+ Q1,
7592
7592
  {
7593
7593
  onClick: c0,
7594
7594
  size: "sm",
@@ -7646,7 +7646,7 @@ const M0 = ({
7646
7646
  )
7647
7647
  ] }),
7648
7648
  /* @__PURE__ */ t.jsx(
7649
- J1,
7649
+ Q1,
7650
7650
  {
7651
7651
  onClick: Y1,
7652
7652
  size: "sm",
@@ -7810,7 +7810,7 @@ const M0 = ({
7810
7810
  children: Array.from({ length: 12 }, (s1, f1) => {
7811
7811
  const x1 = d1(u).month(f1), u0 = x1.format("YYYY-MM"), y0 = o.filter(
7812
7812
  (l0) => l0.date.slice(0, 7) === u0
7813
- ), a0 = X.isSame(x1, "month"), w0 = E && d1(E).isSame(x1, "month"), r0 = a0 ? R1 : w0 ? A1 : "transparent", i0 = a0 ? $1 : "inherit";
7813
+ ), a0 = X.isSame(x1, "month"), w0 = E && d1(E).isSame(x1, "month"), r0 = a0 ? R1 : w0 ? E1 : "transparent", i0 = a0 ? $1 : "inherit";
7814
7814
  return /* @__PURE__ */ t.jsxs(
7815
7815
  "div",
7816
7816
  {
@@ -7876,8 +7876,8 @@ const M0 = ({
7876
7876
  gridTemplateColumns: "repeat(7, 1fr)",
7877
7877
  textAlign: "center"
7878
7878
  },
7879
- children: K1.map(({ date: s1, inCurrentMonth: f1 }, N1) => {
7880
- const x1 = d1(s1), u0 = _1(E, x1), y0 = _1(X, x1), a0 = x1.day(), w0 = N1 >= 35, r0 = x1.format("YYYY-MM-DD"), i0 = o.filter((U0) => U0.date === r0), l0 = m && (x1.isSame(P, "day") || x1.isSame(H, "day")), p0 = m && P && H && x1.isAfter(P, "day") && x1.isBefore(H, "day"), O0 = q1(x1) || a0 === 0 || a0 === 6, N2 = l0 || y0 || p0 ? $1 : f1 ? o0(a0, x1) : N("neutral-4", W), R2 = l0 || y0 || p0 ? R1 : u0 ? A1 : "transparent";
7879
+ children: q1.map(({ date: s1, inCurrentMonth: f1 }, N1) => {
7880
+ const x1 = d1(s1), u0 = _1(E, x1), y0 = _1(X, x1), a0 = x1.day(), w0 = N1 >= 35, r0 = x1.format("YYYY-MM-DD"), i0 = o.filter((U0) => U0.date === r0), l0 = m && (x1.isSame(P, "day") || x1.isSame(H, "day")), p0 = m && P && H && x1.isAfter(P, "day") && x1.isBefore(H, "day"), O0 = J1(x1) || a0 === 0 || a0 === 6, N2 = l0 || y0 || p0 ? $1 : f1 ? o0(a0, x1) : N("neutral-4", W), R2 = l0 || y0 || p0 ? R1 : u0 ? E1 : "transparent";
7881
7881
  let N0 = { ...L };
7882
7882
  return O0 && (L.background && (N0.backgroundColor = N(
7883
7883
  L.background,
@@ -8133,7 +8133,7 @@ const M0 = ({
8133
8133
  ...w,
8134
8134
  children: [
8135
8135
  x && /* @__PURE__ */ t.jsx(
8136
- J1,
8136
+ Q1,
8137
8137
  {
8138
8138
  className: "sud-carousel__btn sud-carousel__btn--left",
8139
8139
  icon: y,
@@ -8184,7 +8184,7 @@ const M0 = ({
8184
8184
  }
8185
8185
  ),
8186
8186
  x && /* @__PURE__ */ t.jsx(
8187
- J1,
8187
+ Q1,
8188
8188
  {
8189
8189
  className: "sud-carousel__btn sud-carousel__btn--right",
8190
8190
  icon: p,
@@ -8242,7 +8242,7 @@ const M0 = ({
8242
8242
  }), _ = h ? N(h, m) : I, C = d ? N(d, m) : U, O = a ? N(a, m) : L, j = y ? N(y, m) : W, R = p ? N(p, m) : B, r = n && O ? `${g}px ${f} ${O}` : "none", { bgColor: i, txtColor: u } = h1({
8243
8243
  border: !1,
8244
8244
  fallback: "disabled"
8245
- }), b = E1(Z, m), P = Q1(w, m), T = m.spacing[M] || m.spacing.md, H = m.typography.fontSize[M === "md" ? "base" : M] || m.typography.fontSize.base;
8245
+ }), b = A1(Z, m), P = X1(w, m), T = m.spacing[M] || m.spacing.md, H = m.typography.fontSize[M === "md" ? "base" : M] || m.typography.fontSize.base;
8246
8246
  return /* @__PURE__ */ t.jsx(
8247
8247
  "div",
8248
8248
  {
@@ -8367,7 +8367,7 @@ const M0 = ({
8367
8367
  ariaDescribedby: k,
8368
8368
  ...F
8369
8369
  }) => {
8370
- const V = b1(), A = Q1(Z, V), I = 9999, [L, U] = K(!1), [W, B] = K(!1), _ = u1();
8370
+ const V = b1(), A = X1(Z, V), I = 9999, [L, U] = K(!1), [W, B] = K(!1), _ = u1();
8371
8371
  v1(() => {
8372
8372
  s && B(!0);
8373
8373
  }, [s]), v1(() => {
@@ -8466,7 +8466,7 @@ const M0 = ({
8466
8466
  children: [
8467
8467
  /* @__PURE__ */ t.jsx(c1, { as: "h2", size: "lg", pretendard: "SB", color: h, children: o }),
8468
8468
  /* @__PURE__ */ t.jsx(
8469
- J1,
8469
+ Q1,
8470
8470
  {
8471
8471
  className: "sud-drawer__close",
8472
8472
  colorType: "text",
@@ -8488,7 +8488,7 @@ const M0 = ({
8488
8488
  children: [
8489
8489
  o,
8490
8490
  /* @__PURE__ */ t.jsx(
8491
- J1,
8491
+ Q1,
8492
8492
  {
8493
8493
  className: "sud-drawer__close",
8494
8494
  colorType: "text",
@@ -8616,7 +8616,7 @@ const M0 = ({
8616
8616
  if (d && d.includes("/")) {
8617
8617
  const [I, L] = d.split("/").map(Number);
8618
8618
  }
8619
- const m = E1(y, M), k = Q1(x, M), F = `sud-image ${n}`, V = {
8619
+ const m = A1(y, M), k = X1(x, M), F = `sud-image ${n}`, V = {
8620
8620
  position: "relative",
8621
8621
  display: "inline-block",
8622
8622
  width: o ? typeof o == "number" ? `${o}px` : o : "auto",
@@ -9204,7 +9204,7 @@ const g3 = ({
9204
9204
  "..."
9205
9205
  );
9206
9206
  const F = m === p, V = F ? g : z;
9207
- return x0(J1, {
9207
+ return x0(Q1, {
9208
9208
  key: `page-${m}`,
9209
9209
  onClick: () => {
9210
9210
  m !== p && $(m);
@@ -10035,7 +10035,7 @@ const j3 = ({
10035
10035
  lg: { padding: "16px 20px", fontSize: 16 }
10036
10036
  }),
10037
10037
  []
10038
- ), j = O[l] || O.md, R = Q1(a, m), r = E1(f, m), i = j.padding, u = S1(
10038
+ ), j = O[l] || O.md, R = X1(a, m), r = A1(f, m), i = j.padding, u = S1(
10039
10039
  (q, Q) => typeof o == "function" ? o(q) : q[o] ?? Q,
10040
10040
  [o]
10041
10041
  ), b = F1(() => {
@@ -10570,7 +10570,7 @@ const f0 = ({
10570
10570
  v1(() => {
10571
10571
  v && H.current && H.current.focus();
10572
10572
  }, [v]);
10573
- const t1 = s ? N(s, T) : G, r1 = c ? N(c, T) : X, Z1 = l ? N(l, T) : n1, q = o && Z1 ? `${a}px ${n} ${Z1}` : "none", Q = Q1(A, T), i1 = E1(I, T), m1 = {
10573
+ const t1 = s ? N(s, T) : G, r1 = c ? N(c, T) : X, Z1 = l ? N(l, T) : n1, q = o && Z1 ? `${a}px ${n} ${Z1}` : "none", Q = X1(A, T), i1 = A1(I, T), m1 = {
10574
10574
  sm: { height: 32, fontSize: 14, padding: "4px" },
10575
10575
  md: { height: 38, fontSize: 16, padding: "6px" },
10576
10576
  lg: { height: 42, fontSize: 18, padding: "8px" }
@@ -10851,7 +10851,7 @@ const f0 = ({
10851
10851
  v1(() => {
10852
10852
  x && b.current && b.current.focus();
10853
10853
  }, [x]);
10854
- const n1 = s ? N(s, u) : E, t1 = c ? N(c, u) : G, r1 = l ? N(l, u) : X, Z1 = o && r1 ? `${a}px ${n} ${r1}` : "none", q = Q1(M, u), Q = E1(w, u), i1 = {
10854
+ const n1 = s ? N(s, u) : E, t1 = c ? N(c, u) : G, r1 = l ? N(l, u) : X, Z1 = o && r1 ? `${a}px ${n} ${r1}` : "none", q = X1(M, u), Q = A1(w, u), i1 = {
10855
10855
  sm: { height: 32, fontSize: 14, padding: "4px" },
10856
10856
  md: { height: 38, fontSize: 16, padding: "6px" },
10857
10857
  lg: { height: 42, fontSize: 18, padding: "8px" }
@@ -11095,7 +11095,7 @@ const f0 = ({
11095
11095
  v1(() => {
11096
11096
  x && C.current[0] && C.current[0].focus();
11097
11097
  }, [x]);
11098
- const r = c ? N(c, _) : R, i = Q1(M, _), u = E1(w, _), b = {
11098
+ const r = c ? N(c, _) : R, i = X1(M, _), u = A1(w, _), b = {
11099
11099
  sm: { height: 32, fontSize: 14, padding: "4px" },
11100
11100
  md: { height: 38, fontSize: 16, padding: "6px" },
11101
11101
  lg: { height: 42, fontSize: 18, padding: "8px" }
@@ -11315,7 +11315,7 @@ const E9 = ({
11315
11315
  border: z,
11316
11316
  fallback: M,
11317
11317
  componentType: "button"
11318
- }), Y = E1(m, C), E = g ? N(g, C) : T;
11318
+ }), Y = A1(m, C), E = g ? N(g, C) : T;
11319
11319
  x && N(x, C);
11320
11320
  const G = {
11321
11321
  sm: { width: 8, height: 240, thumb: 16, fontSize: 14 },
@@ -12261,7 +12261,7 @@ const I9 = {
12261
12261
  }
12262
12262
  ),
12263
12263
  children: n || /* @__PURE__ */ t.jsx(
12264
- J1,
12264
+ Q1,
12265
12265
  {
12266
12266
  size: h,
12267
12267
  style: g,
@@ -12723,7 +12723,7 @@ const b3 = ({
12723
12723
  k || m(H), o == null || o(H), V.current && l2(V.current), $0(T.currentTarget);
12724
12724
  }, C = (T) => {
12725
12725
  l || (T.key === "Enter" || T.key === " ") && (T.preventDefault(), _(T));
12726
- }, O = E1(d, S), { bgColor: j } = h1({
12726
+ }, O = A1(d, S), { bgColor: j } = h1({
12727
12727
  border: !1,
12728
12728
  fallback: p,
12729
12729
  componentType: "button"
@@ -14221,7 +14221,7 @@ const k3 = {
14221
14221
  }
14222
14222
  ),
14223
14223
  /* @__PURE__ */ t.jsx(
14224
- J1,
14224
+ Q1,
14225
14225
  {
14226
14226
  className: "sud-notification__close",
14227
14227
  colorType: "text",
@@ -14350,7 +14350,7 @@ const k3 = {
14350
14350
  pointerEvents: A ? "auto" : "none"
14351
14351
  },
14352
14352
  children: /* @__PURE__ */ t.jsx(
14353
- J1,
14353
+ Q1,
14354
14354
  {
14355
14355
  className: "sud-float-button__action",
14356
14356
  ...C,
@@ -14380,7 +14380,7 @@ const k3 = {
14380
14380
  );
14381
14381
  }),
14382
14382
  /* @__PURE__ */ t.jsx(
14383
- J1,
14383
+ Q1,
14384
14384
  {
14385
14385
  className: o1("sud-float-button", V),
14386
14386
  icon: s,
@@ -14490,7 +14490,7 @@ const k3 = {
14490
14490
  const M = b1(), { bgColor: w, txtColor: S, borColor: D } = h1({
14491
14491
  border: p,
14492
14492
  fallback: l
14493
- }), m = c ? N(c, M) : w, k = o ? N(o, M) : S, F = n ? N(n, M) : D, V = p && F ? `${f}px ${a} ${F}` : "none", A = z === "rounded" ? { borderRadius: "0 0 15px 15px" } : { borderRadius: "0" }, I = E1(d, M);
14493
+ }), m = c ? N(c, M) : w, k = o ? N(o, M) : S, F = n ? N(n, M) : D, V = p && F ? `${f}px ${a} ${F}` : "none", A = z === "rounded" ? { borderRadius: "0 0 15px 15px" } : { borderRadius: "0" }, I = A1(d, M);
14494
14494
  return /* @__PURE__ */ t.jsx(
14495
14495
  "div",
14496
14496
  {
@@ -14552,7 +14552,7 @@ const Q9 = W0(
14552
14552
  const { bgColor: F, txtColor: V, borColor: A } = h1({
14553
14553
  border: $,
14554
14554
  fallback: o
14555
- }), I = c ? N(c, k) : F, L = l ? N(l, k) : V, U = n ? N(n, k) : A, W = $ && U ? `${f}px ${a} ${U}` : "none", B = E1(x, k), _ = z === "rounded" ? { borderRadius: "0 15px 15px 0" } : { borderRadius: "0" };
14555
+ }), I = c ? N(c, k) : F, L = l ? N(l, k) : V, U = n ? N(n, k) : A, W = $ && U ? `${f}px ${a} ${U}` : "none", B = A1(x, k), _ = z === "rounded" ? { borderRadius: "0 15px 15px 0" } : { borderRadius: "0" };
14556
14556
  return /* @__PURE__ */ t.jsx(
14557
14557
  "div",
14558
14558
  {
@@ -14661,7 +14661,7 @@ const t3 = W0(
14661
14661
  const { bgColor: k, txtColor: F, borColor: V } = h1({
14662
14662
  border: v,
14663
14663
  fallback: l
14664
- }), A = c ? N(c, m) : k, I = o ? N(o, m) : F, L = n ? N(n, m) : V, U = v && L ? `${f}px ${a} ${L}` : "none", W = E1(x, m), B = z === "rounded" ? { borderRadius: "15px 15px 0 0" } : { borderRadius: "0" };
14664
+ }), A = c ? N(c, m) : k, I = o ? N(o, m) : F, L = n ? N(n, m) : V, U = v && L ? `${f}px ${a} ${L}` : "none", W = A1(x, m), B = z === "rounded" ? { borderRadius: "15px 15px 0 0" } : { borderRadius: "0" };
14665
14665
  return /* @__PURE__ */ t.jsx(
14666
14666
  "div",
14667
14667
  {
@@ -14912,7 +14912,7 @@ const s3 = ({ isOpen: s, children: c }) => {
14912
14912
  shadow: S,
14913
14913
  style: D = {}
14914
14914
  }) => {
14915
- const m = b1(), k = Q1(w, m), F = E1(S, m), [V, A] = K(
14915
+ const m = b1(), k = X1(w, m), F = A1(S, m), [V, A] = K(
14916
14916
  o || ""
14917
14917
  ), [I, L] = K([]), U = c || V, W = (T) => {
14918
14918
  c === void 0 && A(T), l == null || l(T);
@@ -15395,7 +15395,7 @@ export {
15395
15395
  F0 as Avatar,
15396
15396
  d3 as Badge,
15397
15397
  T3 as Breadcrumb,
15398
- J1 as Button,
15398
+ Q1 as Button,
15399
15399
  O9 as Calendar,
15400
15400
  m0 as Card,
15401
15401
  h3 as Carousel,
@@ -15453,8 +15453,8 @@ export {
15453
15453
  I0 as defaultTheme,
15454
15454
  o3 as getColorWithIntensity,
15455
15455
  g0 as getFontStyles,
15456
- E1 as getShadowStyle,
15457
- Q1 as getShapeStyles,
15456
+ A1 as getShadowStyle,
15457
+ X1 as getShapeStyles,
15458
15458
  o1 as mergeClassNames,
15459
15459
  k3 as notification,
15460
15460
  Y2 as parseColorString,