sud-ui 1.2.2 → 1.2.3

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
@@ -916,7 +916,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
916
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
+ }, q1 = (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",
@@ -1167,7 +1167,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1167
1167
  80% { transform: rotate(270deg); }
1168
1168
  100% { transform: rotate(360deg); }
1169
1169
  }
1170
- `, J1 = ({
1170
+ `, K1 = ({
1171
1171
  children: s,
1172
1172
  colorType: c = "default",
1173
1173
  background: o,
@@ -1198,7 +1198,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1198
1198
  const I = b1(), L = u1(), { bgColor: U, txtColor: W, borColor: B } = h1({
1199
1199
  border: n,
1200
1200
  fallback: y ? "disabled" : c
1201
- }), _ = o ? N(o, I) : U, Z = l ? N(l, I) : W, O = a ? N(a, I) : B, j = n && O ? `${g}px ${f} ${O}` : "none", R = Q1(M, I), r = A1(C, I);
1201
+ }), _ = o ? N(o, I) : U, Z = l ? N(l, I) : W, O = a ? N(a, I) : B, j = n && O ? `${g}px ${f} ${O}` : "none", R = q1(M, I), r = A1(C, I);
1202
1202
  let i = {};
1203
1203
  typeof E == "string" && (E === "sm" ? i = { padding: "4px 10px", fontSize: "0.875rem" } : E === "md" ? i = { padding: "6px 16px", fontSize: "1rem" } : E === "lg" && (i = { padding: "10px 20px", fontSize: "1.125rem" })), v1(() => {
1204
1204
  V2("sud-button-styles", X2);
@@ -1347,14 +1347,14 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1347
1347
  if (G || O(e1), z == null || z(e1), !e1 && (A(!1), r.current)) {
1348
1348
  const j1 = _0.get(r.current);
1349
1349
  j1 && j1.forEach((w1) => {
1350
- var t0, K1;
1350
+ var t0, X1;
1351
1351
  const _1 = Array.from(B0).find(
1352
- (I1) => {
1352
+ (E1) => {
1353
1353
  var s0, J;
1354
- return ((J = (s0 = I1.current) == null ? void 0 : s0.popupInstance) == null ? void 0 : J.id) === w1;
1354
+ return ((J = (s0 = E1.current) == null ? void 0 : s0.popupInstance) == null ? void 0 : J.id) === w1;
1355
1355
  }
1356
1356
  );
1357
- (K1 = (t0 = _1 == null ? void 0 : _1.current) == null ? void 0 : t0.popupInstance) != null && K1.hide && _1.current.popupInstance.hide();
1357
+ (X1 = (t0 = _1 == null ? void 0 : _1.current) == null ? void 0 : t0.popupInstance) != null && X1.hide && _1.current.popupInstance.hide();
1358
1358
  });
1359
1359
  }
1360
1360
  },
@@ -1389,13 +1389,13 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1389
1389
  const { bgColor: i1, txtColor: m1, borColor: k1 } = h1({
1390
1390
  border: v,
1391
1391
  fallback: m
1392
- }), C1 = p ? N(p, _) : i1, L1 = w ? N(w, _) : m1, T1 = $ ? N($, _) : k1, B1 = v && T1 ? `${C}px ${M} ${T1}` : "none", P1 = A1(D, _), W1 = Q1(S), z1 = S1(() => {
1392
+ }), C1 = p ? N(p, _) : i1, L1 = w ? N(w, _) : m1, T1 = $ ? N($, _) : k1, B1 = v && T1 ? `${C}px ${M} ${T1}` : "none", P1 = A1(D, _), W1 = q1(S), z1 = S1(() => {
1393
1393
  if (!j.current || !r.current) return {};
1394
1394
  const e1 = j.current.getBoundingClientRect(), j1 = r.current.getBoundingClientRect(), w1 = window.scrollY || document.documentElement.scrollTop, _1 = window.scrollX || document.documentElement.scrollLeft, t0 = {
1395
1395
  position: "fixed",
1396
1396
  zIndex: 1e4,
1397
1397
  transition: "opacity 0.2s ease"
1398
- }, [K1, I1] = a.split("-");
1398
+ }, [X1, E1] = a.split("-");
1399
1399
  let J = ((C0, c0) => {
1400
1400
  switch (C0) {
1401
1401
  case "top": {
@@ -1433,10 +1433,10 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1433
1433
  default:
1434
1434
  return {};
1435
1435
  }
1436
- })(K1, I1);
1437
- const R1 = window.innerWidth, E1 = window.innerHeight;
1438
- let $1 = J.left ?? 0, V1 = J.top ?? 0, G1 = j1.width, q1 = j1.height, o0 = !1;
1439
- return $1 < 0 ? ($1 = 8, o0 = !0) : $1 + G1 > R1 && ($1 = R1 - G1 - 8, o0 = !0), V1 < 0 ? (V1 = 8, o0 = !0) : V1 + q1 > E1 && (V1 = E1 - q1 - 8, o0 = !0), o0 && (J.transform = void 0), { ...t0, ...J, left: $1, top: V1 };
1436
+ })(X1, E1);
1437
+ const R1 = window.innerWidth, I1 = window.innerHeight;
1438
+ let $1 = J.left ?? 0, V1 = J.top ?? 0, J1 = j1.width, Q1 = j1.height, o0 = !1;
1439
+ return $1 < 0 ? ($1 = 8, o0 = !0) : $1 + J1 > R1 && ($1 = R1 - J1 - 8, o0 = !0), V1 < 0 ? (V1 = 8, o0 = !0) : V1 + Q1 > I1 && (V1 = I1 - Q1 - 8, o0 = !0), o0 && (J.transform = void 0), { ...t0, ...J, left: $1, top: V1 };
1440
1440
  }, [a]);
1441
1441
  d0(() => {
1442
1442
  if (X && r.current && j.current && !Y) {
@@ -1470,7 +1470,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1470
1470
  }, [X, z1]);
1471
1471
  const O1 = S1(
1472
1472
  ({ type: e1 = "background" }) => {
1473
- const j1 = e1 === "border", w1 = T1 && C > 0, _1 = n0 * 2 + (w1 ? C * 2 : 0), t0 = Math.sqrt(C * C * 2), K1 = !j1 && w1 ? t0 : 0, I1 = {
1473
+ const j1 = e1 === "border", w1 = T1 && C > 0, _1 = n0 * 2 + (w1 ? C * 2 : 0), t0 = Math.sqrt(C * C * 2), X1 = !j1 && w1 ? t0 : 0, E1 = {
1474
1474
  bottom: `linear-gradient(135deg, ${C1} 50%, transparent 50%)`,
1475
1475
  top: `linear-gradient(-45deg, ${C1} 50%, transparent 50%)`,
1476
1476
  left: `linear-gradient(225deg, ${C1} 50%, transparent 50%)`,
@@ -1483,27 +1483,27 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1483
1483
  zIndex: j1 ? 1 : 3,
1484
1484
  border: j1 ? B1 : void 0,
1485
1485
  borderRadius: "2px 0 0 0",
1486
- background: j1 ? void 0 : I1[a],
1486
+ background: j1 ? void 0 : E1[a],
1487
1487
  backgroundColor: j1 ? T1 ?? C1 : void 0,
1488
1488
  boxShadow: j1 ? P1 : void 0
1489
1489
  }, J = {
1490
1490
  bottom: {
1491
- top: `-${n0 - K1}px`,
1491
+ top: `-${n0 - X1}px`,
1492
1492
  left: "50%",
1493
1493
  transform: "translateX(-50%) rotate(45deg)"
1494
1494
  },
1495
1495
  top: {
1496
- bottom: `-${n0 - K1}px`,
1496
+ bottom: `-${n0 - X1}px`,
1497
1497
  left: "50%",
1498
1498
  transform: "translateX(-50%) rotate(45deg)"
1499
1499
  },
1500
1500
  right: {
1501
- left: `-${n0 - K1}px`,
1501
+ left: `-${n0 - X1}px`,
1502
1502
  top: "50%",
1503
1503
  transform: "translateY(-50%) rotate(45deg)"
1504
1504
  },
1505
1505
  left: {
1506
- right: `-${n0 - K1}px`,
1506
+ right: `-${n0 - X1}px`,
1507
1507
  top: "50%",
1508
1508
  transform: "translateY(-50%) rotate(45deg)"
1509
1509
  }
@@ -1522,8 +1522,8 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1522
1522
  return v1(() => {
1523
1523
  if (n !== "hover") return;
1524
1524
  const e1 = (j1) => {
1525
- var I1, s0;
1526
- 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(
1525
+ var E1, s0;
1526
+ const w1 = document.elementFromPoint(j1.clientX, j1.clientY), _1 = (E1 = j.current) == null ? void 0 : E1.contains(w1), t0 = (s0 = r.current) == null ? void 0 : s0.contains(w1), X1 = G2(
1527
1527
  r,
1528
1528
  w1,
1529
1529
  G0,
@@ -1533,7 +1533,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1533
1533
  _1 && t1();
1534
1534
  return;
1535
1535
  }
1536
- !_1 && !t0 && !K1 ? i.current || (i.current = setTimeout(() => {
1536
+ !_1 && !t0 && !X1 ? i.current || (i.current = setTimeout(() => {
1537
1537
  r1();
1538
1538
  }, 100)) : (clearTimeout(i.current), i.current = null);
1539
1539
  };
@@ -1646,8 +1646,8 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1646
1646
  }
1647
1647
  ) : c),
1648
1648
  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: [
1649
- /* @__PURE__ */ t.jsx(J1, { colorType: "primary", onClick: q, children: "okay" }),
1650
- /* @__PURE__ */ t.jsx(J1, { colorType: "danger", onClick: Q, children: "cancel" })
1649
+ /* @__PURE__ */ t.jsx(K1, { colorType: "primary", onClick: q, children: "okay" }),
1650
+ /* @__PURE__ */ t.jsx(K1, { colorType: "danger", onClick: Q, children: "cancel" })
1651
1651
  ] }) : L === !0 || L !== void 0 ? L : null
1652
1652
  ]
1653
1653
  }
@@ -1705,7 +1705,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1705
1705
  border: h,
1706
1706
  componentType: "tag",
1707
1707
  fallback: f
1708
- }), E = 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 = A1(p, D), _ = s || (l ? null : c ? K2[c] : null), Z = () => l || (_ ? typeof _ == "string" ? _.startsWith("http") || _.startsWith("/") || _.startsWith("data:image") ? /* @__PURE__ */ t.jsx(
1708
+ }), E = 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 = A1(p, D), _ = s || (l ? null : c ? K2[c] : null), Z = () => l || (_ ? typeof _ == "string" ? _.startsWith("http") || _.startsWith("/") || _.startsWith("data:image") ? /* @__PURE__ */ t.jsx(
1709
1709
  "img",
1710
1710
  {
1711
1711
  className: "sud-avatar-img",
@@ -2759,7 +2759,7 @@ const n9 = {
2759
2759
  /* @__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" })
2760
2760
  ] }),
2761
2761
  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" }) })
2762
- }, X1 = Object.entries(n9).reduce((s, [c, o]) => {
2762
+ }, G1 = Object.entries(n9).reduce((s, [c, o]) => {
2763
2763
  const l = ({ size: n = 24, color: a, style: f = {}, ...g }) => /* @__PURE__ */ e.jsx(
2764
2764
  "svg",
2765
2765
  {
@@ -2776,22 +2776,22 @@ const n9 = {
2776
2776
  );
2777
2777
  return l.displayName = c, s[c] = l, s;
2778
2778
  }, {});
2779
- X1.BarChartFill;
2780
- X1.BarChartOutline;
2781
- X1.DonutChartFill;
2782
- X1.DonutChartOutline;
2783
- X1.LineChart;
2784
- X1.PieChartFill;
2785
- X1.PieChartOutline;
2786
- X1.BriefcaseFill;
2787
- X1.BriefcaseOutline;
2788
- X1.CalendarFill;
2789
- const o9 = X1.CalendarOutline;
2790
- X1.OrganizationChartFill;
2791
- X1.OrganizationChartOutline;
2792
- X1.Barcode;
2793
- X1.DocumentFill;
2794
- const a9 = X1.DocumentOutline, i9 = {
2779
+ G1.BarChartFill;
2780
+ G1.BarChartOutline;
2781
+ G1.DonutChartFill;
2782
+ G1.DonutChartOutline;
2783
+ G1.LineChart;
2784
+ G1.PieChartFill;
2785
+ G1.PieChartOutline;
2786
+ G1.BriefcaseFill;
2787
+ G1.BriefcaseOutline;
2788
+ G1.CalendarFill;
2789
+ const o9 = G1.CalendarOutline;
2790
+ G1.OrganizationChartFill;
2791
+ G1.OrganizationChartOutline;
2792
+ G1.Barcode;
2793
+ G1.DocumentFill;
2794
+ const a9 = G1.DocumentOutline, i9 = {
2795
2795
  FolderFill: [
2796
2796
  /* @__PURE__ */ e.jsx(
2797
2797
  "path",
@@ -6496,7 +6496,7 @@ const M0 = ({
6496
6496
  border: w,
6497
6497
  fallback: c,
6498
6498
  componentType: "tag"
6499
- }), k = o ? N(o, C) : S, F = l ? N(l, C) : D, V = n ? N(n, C) : m, E = w && V ? `${f}px ${a} ${V}` : "none", I = Q1(y, C), L = A1(p, C), U = {
6499
+ }), k = o ? N(o, C) : S, F = l ? N(l, C) : D, V = n ? N(n, C) : m, E = w && V ? `${f}px ${a} ${V}` : "none", I = q1(y, C), L = A1(p, C), U = {
6500
6500
  sm: C.typography.fontSize.sm,
6501
6501
  md: C.typography.fontSize.base,
6502
6502
  lg: C.typography.fontSize.lg
@@ -6539,7 +6539,7 @@ const M0 = ({
6539
6539
  _,
6540
6540
  d && x === "right" && d,
6541
6541
  z && /* @__PURE__ */ t.jsx(
6542
- J1,
6542
+ K1,
6543
6543
  {
6544
6544
  className: "sud-tag__close",
6545
6545
  background: k,
@@ -6605,8 +6605,8 @@ const M0 = ({
6605
6605
  }), r1 = u1(null), Z1 = u1(null), q = u1(null), Q = u1([]), i1 = W.filter(
6606
6606
  (J) => J.label.toLowerCase().includes(b.toLowerCase())
6607
6607
  ), m1 = L ? W.filter((J) => Array.isArray(x) && x.includes(J.value)) : W.find((J) => J.value === x), k1 = S1((J) => {
6608
- var R1, E1;
6609
- !((R1 = r1.current) != null && R1.contains(J.target)) && !((E1 = q.current) != null && E1.contains(J.target)) && u(!1);
6608
+ var R1, I1;
6609
+ !((R1 = r1.current) != null && R1.contains(J.target)) && !((I1 = q.current) != null && I1.contains(J.target)) && u(!1);
6610
6610
  }, []), C1 = S1((J) => {
6611
6611
  J.key === "Escape" && u(!1);
6612
6612
  }, []), L1 = S1(
@@ -6633,26 +6633,26 @@ const M0 = ({
6633
6633
  ]
6634
6634
  ), T1 = S1(
6635
6635
  (J) => {
6636
- var R1, E1, $1, V1;
6636
+ var R1, I1, $1, V1;
6637
6637
  if (J.key.length === 1 && !J.ctrlKey && !J.altKey && !J.metaKey) {
6638
6638
  i || u(!0), (R1 = Z1.current) == null || R1.focus();
6639
6639
  return;
6640
6640
  }
6641
6641
  if (!i && (J.key === "Enter" || J.key === "ArrowDown")) {
6642
- J.preventDefault(), u(!0), A(0), (E1 = Z1.current) == null || E1.focus();
6642
+ J.preventDefault(), u(!0), A(0), (I1 = Z1.current) == null || I1.focus();
6643
6643
  return;
6644
6644
  }
6645
6645
  switch (J.key) {
6646
6646
  case "ArrowDown":
6647
- J.preventDefault(), ($1 = Z1.current) == null || $1.focus(), A((G1) => {
6648
- const q1 = G1 + 1;
6649
- return q1 >= i1.length ? 0 : q1;
6647
+ J.preventDefault(), ($1 = Z1.current) == null || $1.focus(), A((J1) => {
6648
+ const Q1 = J1 + 1;
6649
+ return Q1 >= i1.length ? 0 : Q1;
6650
6650
  });
6651
6651
  break;
6652
6652
  case "ArrowUp":
6653
- J.preventDefault(), (V1 = Z1.current) == null || V1.focus(), A((G1) => {
6654
- const q1 = G1 - 1;
6655
- return q1 < 0 ? i1.length - 1 : q1;
6653
+ J.preventDefault(), (V1 = Z1.current) == null || V1.focus(), A((J1) => {
6654
+ const Q1 = J1 - 1;
6655
+ return Q1 < 0 ? i1.length - 1 : Q1;
6656
6656
  });
6657
6657
  break;
6658
6658
  case "Enter":
@@ -6666,10 +6666,10 @@ const M0 = ({
6666
6666
  break;
6667
6667
  case "Backspace":
6668
6668
  if (b === "" && L && Array.isArray(x) && x.length > 0) {
6669
- const G1 = W.find(
6670
- (q1) => q1.value === x[x.length - 1]
6669
+ const J1 = W.find(
6670
+ (Q1) => Q1.value === x[x.length - 1]
6671
6671
  );
6672
- G1 && L1(G1);
6672
+ J1 && L1(J1);
6673
6673
  }
6674
6674
  break;
6675
6675
  }
@@ -6686,10 +6686,10 @@ const M0 = ({
6686
6686
  ]
6687
6687
  ), B1 = S1(() => {
6688
6688
  if (!r1.current || !q.current) return;
6689
- 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, q1 = V1 < R1.height && G1 > V1;
6689
+ const J = r1.current.getBoundingClientRect(), R1 = q.current.getBoundingClientRect(), I1 = window.innerHeight - J.bottom, $1 = J.top, V1 = I1 < R1.height && $1 > I1;
6690
6690
  t1({
6691
- top: q1 ? J.top - R1.height - 4 + E1 : J.bottom + 4 + E1,
6692
- left: J.left + $1
6691
+ top: V1 ? J.top - R1.height - 4 : J.bottom + 4,
6692
+ left: J.left
6693
6693
  });
6694
6694
  }, []);
6695
6695
  d0(() => {
@@ -6723,7 +6723,7 @@ const M0 = ({
6723
6723
  border: o,
6724
6724
  fallback: m ? "error" : G ? "focus" : "default",
6725
6725
  componentType: "input"
6726
- }), 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 = A1(w, r), I1 = {
6726
+ }), 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), X1 = A1(w, r), E1 = {
6727
6727
  sm: { height: 32, fontSize: 14, padding: "4px" },
6728
6728
  md: { height: 38, fontSize: 16, padding: "6px" },
6729
6729
  lg: { height: 42, fontSize: 18, padding: "8px" }
@@ -6780,9 +6780,9 @@ const M0 = ({
6780
6780
  color: F ? N("cool-gray-3", r) : j1,
6781
6781
  ...t0,
6782
6782
  width: "100%",
6783
- padding: I1.padding,
6783
+ padding: E1.padding,
6784
6784
  cursor: F ? "not-allowed" : "pointer",
6785
- boxShadow: K1,
6785
+ boxShadow: X1,
6786
6786
  ...f ? {
6787
6787
  borderTop: "none",
6788
6788
  borderRight: "none",
@@ -6823,7 +6823,8 @@ const M0 = ({
6823
6823
  gap: 4,
6824
6824
  overflowX: "auto",
6825
6825
  flex: 1,
6826
- minWidth: 0
6826
+ minWidth: 0,
6827
+ minHeight: E1.height - (parseInt(E1.padding) || 0) * 2
6827
6828
  },
6828
6829
  children: [
6829
6830
  Array.isArray(m1) && m1.map((J) => /* @__PURE__ */ t.jsx(
@@ -6853,7 +6854,7 @@ const M0 = ({
6853
6854
  border: "none",
6854
6855
  outline: "none",
6855
6856
  background: "transparent",
6856
- fontSize: I1.fontSize,
6857
+ fontSize: E1.fontSize,
6857
6858
  color: j1,
6858
6859
  flexGrow: 1,
6859
6860
  minWidth: 60,
@@ -6879,9 +6880,9 @@ const M0 = ({
6879
6880
  backgroundColor: "transparent",
6880
6881
  border: "none",
6881
6882
  outline: "none",
6882
- fontSize: I1.fontSize,
6883
+ fontSize: E1.fontSize,
6883
6884
  color: j1,
6884
- height: I1.height,
6885
+ height: E1.height,
6885
6886
  cursor: F ? "not-allowed" : I ? "text" : "default"
6886
6887
  }
6887
6888
  }
@@ -6905,7 +6906,7 @@ const M0 = ({
6905
6906
  {
6906
6907
  className: "sud-select__count",
6907
6908
  style: {
6908
- fontSize: I1.fontSize,
6909
+ fontSize: E1.fontSize,
6909
6910
  color: N("cool-gray-6", r),
6910
6911
  whiteSpace: "nowrap"
6911
6912
  },
@@ -6915,7 +6916,7 @@ const M0 = ({
6915
6916
  k && !F && (L && (x == null ? void 0 : x.length) > 0 || !L && x) && /* @__PURE__ */ t.jsx(
6916
6917
  Z0,
6917
6918
  {
6918
- size: I1.fontSize,
6919
+ size: E1.fontSize,
6919
6920
  onClick: (J) => {
6920
6921
  J.stopPropagation(), P1();
6921
6922
  },
@@ -6976,18 +6977,18 @@ const M0 = ({
6976
6977
  children: "검색 결과가 없습니다"
6977
6978
  }
6978
6979
  ) : i1.map((J, R1) => {
6979
- const E1 = L ? x == null ? void 0 : x.includes(J.value) : x === J.value;
6980
+ const I1 = L ? x == null ? void 0 : x.includes(J.value) : x === J.value;
6980
6981
  return /* @__PURE__ */ t.jsx(
6981
6982
  "div",
6982
6983
  {
6983
6984
  ref: ($1) => Q.current[R1] = $1,
6984
6985
  className: o1(
6985
6986
  "sud-select__option",
6986
- E1 ? "sud-select__option--selected" : "",
6987
+ I1 ? "sud-select__option--selected" : "",
6987
6988
  R1 === Y ? "sud-select__option--focused" : ""
6988
6989
  ),
6989
6990
  role: "option",
6990
- "aria-selected": E1,
6991
+ "aria-selected": I1,
6991
6992
  "aria-disabled": F,
6992
6993
  onClick: ($1) => {
6993
6994
  $1.stopPropagation(), L1(J);
@@ -6995,18 +6996,18 @@ const M0 = ({
6995
6996
  style: {
6996
6997
  padding: "8px 12px",
6997
6998
  cursor: F ? "not-allowed" : "pointer",
6998
- fontSize: I1.fontSize,
6999
- backgroundColor: E1 ? N("sky-1", r) : e1,
6999
+ fontSize: E1.fontSize,
7000
+ backgroundColor: I1 ? N("sky-1", r) : e1,
7000
7001
  transition: "background-color 0.2s ease"
7001
7002
  },
7002
7003
  onMouseEnter: ($1) => {
7003
- E1 || ($1.currentTarget.style.backgroundColor = N(
7004
+ I1 || ($1.currentTarget.style.backgroundColor = N(
7004
7005
  "cool-gray-2",
7005
7006
  r
7006
7007
  ));
7007
7008
  },
7008
7009
  onMouseLeave: ($1) => {
7009
- E1 || ($1.currentTarget.style.backgroundColor = e1);
7010
+ I1 || ($1.currentTarget.style.backgroundColor = e1);
7010
7011
  },
7011
7012
  children: J.label
7012
7013
  },
@@ -7023,7 +7024,7 @@ const M0 = ({
7023
7024
  className: "sud-input__error",
7024
7025
  style: {
7025
7026
  marginTop: 4,
7026
- marginLeft: I1.padding
7027
+ marginLeft: E1.padding
7027
7028
  },
7028
7029
  children: /* @__PURE__ */ t.jsx(
7029
7030
  c1,
@@ -7065,7 +7066,7 @@ const M0 = ({
7065
7066
  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({
7066
7067
  fallback: "hovered",
7067
7068
  componentType: "etc"
7068
- }), V = Q1(w, S), E = A1(p, S), I = (L, U) => {
7069
+ }), V = q1(w, S), E = A1(p, S), I = (L, U) => {
7069
7070
  (L.key === "Enter" || L.key === " ") && (L.preventDefault(), l || o == null || o(U));
7070
7071
  };
7071
7072
  return /* @__PURE__ */ t.jsx(
@@ -7089,7 +7090,7 @@ const M0 = ({
7089
7090
  children: s.map((L, U) => {
7090
7091
  const W = D(L), B = m(L), _ = W === c, Z = l || k(L);
7091
7092
  return /* @__PURE__ */ t.jsx(
7092
- J1,
7093
+ K1,
7093
7094
  {
7094
7095
  onClick: () => !Z && (o == null ? void 0 : o(W)),
7095
7096
  onKeyDown: (O) => I(O, W),
@@ -7201,7 +7202,7 @@ const M0 = ({
7201
7202
  const V = b1(), { bgColor: E, txtColor: I, borColor: L } = h1({
7202
7203
  border: g,
7203
7204
  fallback: n
7204
- }), U = a ? N(a, V) : E, W = f ? N(f, V) : I, B = z ? N(z, V) : L, _ = g && B ? `${d}px ${h} ${B}` : "none", Z = C === "drawer" || m ? {} : Q1(x, V), O = A1(y, V), j = V.spacing;
7205
+ }), U = a ? N(a, V) : E, W = f ? N(f, V) : I, B = z ? N(z, V) : L, _ = g && B ? `${d}px ${h} ${B}` : "none", Z = C === "drawer" || m ? {} : q1(x, V), O = A1(y, V), j = V.spacing;
7205
7206
  return /* @__PURE__ */ t.jsxs(
7206
7207
  "div",
7207
7208
  {
@@ -7420,7 +7421,7 @@ const M0 = ({
7420
7421
  }, [k, F]);
7421
7422
  const _1 = (s1, f1) => !s1 || !f1 ? !1 : d1(s1).isSame(d1(f1), "day"), t0 = (s1) => {
7422
7423
  P1(), r1(s1), s1 === "daily" && b(X);
7423
- }, K1 = F1(() => {
7424
+ }, X1 = F1(() => {
7424
7425
  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);
7425
7426
  for (let r0 = 0; r0 < w0; r0++) {
7426
7427
  let i0, l0 = !0;
@@ -7437,15 +7438,15 @@ const M0 = ({
7437
7438
  s1.push({ date: i0.toDate(), inCurrentMonth: l0 });
7438
7439
  }
7439
7440
  return s1;
7440
- }, [u]), { bgColor: I1, txtColor: s0, borColor: J } = h1({
7441
+ }, [u]), { bgColor: E1, txtColor: s0, borColor: J } = h1({
7441
7442
  border: w,
7442
7443
  fallback: d,
7443
7444
  componentType: "tag"
7444
- }), 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 = w && V1 ? `${M}px ${$} ${V1}` : "none", q1 = (s1) => {
7445
+ }), R1 = x ? N(x, W) : E1, I1 = N(y || "neutral-2", W), $1 = p ? N(p, W) : s0, V1 = v ? N(v, W) : J, J1 = w && V1 ? `${M}px ${$} ${V1}` : "none", Q1 = (s1) => {
7445
7446
  if (!I || I.length === 0) return !1;
7446
7447
  const f1 = d1(s1).format("YYYY-MM-DD");
7447
7448
  return I.includes(f1);
7448
- }, o0 = (s1, f1) => q1(f1) || s1 === 0 || s1 === 6 ? N("red-6", W) : "inherit", C0 = (s1) => {
7449
+ }, o0 = (s1, f1) => Q1(f1) || s1 === 0 || s1 === 6 ? N("red-6", W) : "inherit", C0 = (s1) => {
7449
7450
  if (t1 === "year") {
7450
7451
  const N1 = d1(s1).startOf("month");
7451
7452
  b(N1), r1("month");
@@ -7586,7 +7587,7 @@ const M0 = ({
7586
7587
  },
7587
7588
  children: [
7588
7589
  /* @__PURE__ */ t.jsx(
7589
- J1,
7590
+ K1,
7590
7591
  {
7591
7592
  onClick: c0,
7592
7593
  size: "sm",
@@ -7644,7 +7645,7 @@ const M0 = ({
7644
7645
  )
7645
7646
  ] }),
7646
7647
  /* @__PURE__ */ t.jsx(
7647
- J1,
7648
+ K1,
7648
7649
  {
7649
7650
  onClick: Y1,
7650
7651
  size: "sm",
@@ -7808,7 +7809,7 @@ const M0 = ({
7808
7809
  children: Array.from({ length: 12 }, (s1, f1) => {
7809
7810
  const x1 = d1(u).month(f1), u0 = x1.format("YYYY-MM"), y0 = o.filter(
7810
7811
  (l0) => l0.date.slice(0, 7) === u0
7811
- ), a0 = X.isSame(x1, "month"), w0 = A && d1(A).isSame(x1, "month"), r0 = a0 ? R1 : w0 ? E1 : "transparent", i0 = a0 ? $1 : "inherit";
7812
+ ), a0 = X.isSame(x1, "month"), w0 = A && d1(A).isSame(x1, "month"), r0 = a0 ? R1 : w0 ? I1 : "transparent", i0 = a0 ? $1 : "inherit";
7812
7813
  return /* @__PURE__ */ t.jsxs(
7813
7814
  "div",
7814
7815
  {
@@ -7820,8 +7821,8 @@ const M0 = ({
7820
7821
  transition: "background-color 0.2s ease",
7821
7822
  backgroundColor: r0,
7822
7823
  color: i0,
7823
- borderTop: G1,
7824
- borderBottom: G1,
7824
+ borderTop: J1,
7825
+ borderBottom: J1,
7825
7826
  padding: r.cellPadding
7826
7827
  },
7827
7828
  children: [
@@ -7874,8 +7875,8 @@ const M0 = ({
7874
7875
  gridTemplateColumns: "repeat(7, 1fr)",
7875
7876
  textAlign: "center"
7876
7877
  },
7877
- children: K1.map(({ date: s1, inCurrentMonth: f1 }, N1) => {
7878
- const x1 = d1(s1), u0 = _1(A, 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 ? E1 : "transparent";
7878
+ children: X1.map(({ date: s1, inCurrentMonth: f1 }, N1) => {
7879
+ const x1 = d1(s1), u0 = _1(A, 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 ? I1 : "transparent";
7879
7880
  let N0 = { ...L };
7880
7881
  return O0 && (L.background && (N0.backgroundColor = N(
7881
7882
  L.background,
@@ -7901,8 +7902,8 @@ const M0 = ({
7901
7902
  padding: r.cellPadding,
7902
7903
  cursor: "pointer",
7903
7904
  transition: "background-color 0.2s ease",
7904
- borderTop: G1,
7905
- borderBottom: w0 ? G1 : "none",
7905
+ borderTop: J1,
7906
+ borderBottom: w0 ? J1 : "none",
7906
7907
  border: j === "miniView" && "none",
7907
7908
  color: N2,
7908
7909
  backgroundColor: R2,
@@ -8131,7 +8132,7 @@ const M0 = ({
8131
8132
  ...C,
8132
8133
  children: [
8133
8134
  x && /* @__PURE__ */ t.jsx(
8134
- J1,
8135
+ K1,
8135
8136
  {
8136
8137
  className: "sud-carousel__btn sud-carousel__btn--left",
8137
8138
  icon: y,
@@ -8182,7 +8183,7 @@ const M0 = ({
8182
8183
  }
8183
8184
  ),
8184
8185
  x && /* @__PURE__ */ t.jsx(
8185
- J1,
8186
+ K1,
8186
8187
  {
8187
8188
  className: "sud-carousel__btn sud-carousel__btn--right",
8188
8189
  icon: p,
@@ -8240,7 +8241,7 @@ const M0 = ({
8240
8241
  }), _ = h ? N(h, m) : I, Z = 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({
8241
8242
  border: !1,
8242
8243
  fallback: "disabled"
8243
- }), b = A1(w, m), P = Q1(C, m), T = m.spacing[M] || m.spacing.md, H = m.typography.fontSize[M === "md" ? "base" : M] || m.typography.fontSize.base;
8244
+ }), b = A1(w, m), P = q1(C, m), T = m.spacing[M] || m.spacing.md, H = m.typography.fontSize[M === "md" ? "base" : M] || m.typography.fontSize.base;
8244
8245
  return /* @__PURE__ */ t.jsx(
8245
8246
  "div",
8246
8247
  {
@@ -8365,7 +8366,7 @@ const M0 = ({
8365
8366
  ariaDescribedby: k,
8366
8367
  ...F
8367
8368
  }) => {
8368
- const V = b1(), E = Q1(w, V), I = 9999, [L, U] = K(!1), [W, B] = K(!1), _ = u1();
8369
+ const V = b1(), E = q1(w, V), I = 9999, [L, U] = K(!1), [W, B] = K(!1), _ = u1();
8369
8370
  v1(() => {
8370
8371
  s && B(!0);
8371
8372
  }, [s]), v1(() => {
@@ -8464,7 +8465,7 @@ const M0 = ({
8464
8465
  children: [
8465
8466
  /* @__PURE__ */ t.jsx(c1, { as: "h2", size: "lg", pretendard: "SB", color: h, children: o }),
8466
8467
  /* @__PURE__ */ t.jsx(
8467
- J1,
8468
+ K1,
8468
8469
  {
8469
8470
  className: "sud-drawer__close",
8470
8471
  colorType: "text",
@@ -8486,7 +8487,7 @@ const M0 = ({
8486
8487
  children: [
8487
8488
  o,
8488
8489
  /* @__PURE__ */ t.jsx(
8489
- J1,
8490
+ K1,
8490
8491
  {
8491
8492
  className: "sud-drawer__close",
8492
8493
  colorType: "text",
@@ -8614,7 +8615,7 @@ const M0 = ({
8614
8615
  if (d && d.includes("/")) {
8615
8616
  const [I, L] = d.split("/").map(Number);
8616
8617
  }
8617
- const m = A1(y, M), k = Q1(x, M), F = `sud-image ${n}`, V = {
8618
+ const m = A1(y, M), k = q1(x, M), F = `sud-image ${n}`, V = {
8618
8619
  position: "relative",
8619
8620
  display: "inline-block",
8620
8621
  width: o ? typeof o == "number" ? `${o}px` : o : "auto",
@@ -9202,7 +9203,7 @@ const g3 = ({
9202
9203
  "..."
9203
9204
  );
9204
9205
  const F = m === p, V = F ? g : z;
9205
- return x0(J1, {
9206
+ return x0(K1, {
9206
9207
  key: `page-${m}`,
9207
9208
  onClick: () => {
9208
9209
  m !== p && $(m);
@@ -10033,7 +10034,7 @@ const j3 = ({
10033
10034
  lg: { padding: "16px 20px", fontSize: 16 }
10034
10035
  }),
10035
10036
  []
10036
- ), j = O[l] || O.md, R = Q1(a, m), r = A1(f, m), i = j.padding, u = S1(
10037
+ ), j = O[l] || O.md, R = q1(a, m), r = A1(f, m), i = j.padding, u = S1(
10037
10038
  (q, Q) => typeof o == "function" ? o(q) : q[o] ?? Q,
10038
10039
  [o]
10039
10040
  ), b = F1(() => {
@@ -10568,7 +10569,7 @@ const f0 = ({
10568
10569
  v1(() => {
10569
10570
  v && H.current && H.current.focus();
10570
10571
  }, [v]);
10571
- 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(E, T), i1 = A1(I, T), m1 = {
10572
+ 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(E, T), i1 = A1(I, T), m1 = {
10572
10573
  sm: { height: 32, fontSize: 14, padding: "4px" },
10573
10574
  md: { height: 38, fontSize: 16, padding: "6px" },
10574
10575
  lg: { height: 42, fontSize: 18, padding: "8px" }
@@ -10849,7 +10850,7 @@ const f0 = ({
10849
10850
  v1(() => {
10850
10851
  x && b.current && b.current.focus();
10851
10852
  }, [x]);
10852
- const n1 = s ? N(s, u) : A, 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 = A1(C, u), i1 = {
10853
+ const n1 = s ? N(s, u) : A, 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 = A1(C, u), i1 = {
10853
10854
  sm: { height: 32, fontSize: 14, padding: "4px" },
10854
10855
  md: { height: 38, fontSize: 16, padding: "6px" },
10855
10856
  lg: { height: 42, fontSize: 18, padding: "8px" }
@@ -11093,7 +11094,7 @@ const f0 = ({
11093
11094
  v1(() => {
11094
11095
  x && Z.current[0] && Z.current[0].focus();
11095
11096
  }, [x]);
11096
- const r = c ? N(c, _) : R, i = Q1(M, _), u = A1(C, _), b = {
11097
+ const r = c ? N(c, _) : R, i = q1(M, _), u = A1(C, _), b = {
11097
11098
  sm: { height: 32, fontSize: 14, padding: "4px" },
11098
11099
  md: { height: 38, fontSize: 16, padding: "6px" },
11099
11100
  lg: { height: 42, fontSize: 18, padding: "8px" }
@@ -12259,7 +12260,7 @@ const I9 = {
12259
12260
  }
12260
12261
  ),
12261
12262
  children: n || /* @__PURE__ */ t.jsx(
12262
- J1,
12263
+ K1,
12263
12264
  {
12264
12265
  size: h,
12265
12266
  style: g,
@@ -14219,7 +14220,7 @@ const k3 = {
14219
14220
  }
14220
14221
  ),
14221
14222
  /* @__PURE__ */ t.jsx(
14222
- J1,
14223
+ K1,
14223
14224
  {
14224
14225
  className: "sud-notification__close",
14225
14226
  colorType: "text",
@@ -14348,7 +14349,7 @@ const k3 = {
14348
14349
  pointerEvents: E ? "auto" : "none"
14349
14350
  },
14350
14351
  children: /* @__PURE__ */ t.jsx(
14351
- J1,
14352
+ K1,
14352
14353
  {
14353
14354
  className: "sud-float-button__action",
14354
14355
  ...Z,
@@ -14378,7 +14379,7 @@ const k3 = {
14378
14379
  );
14379
14380
  }),
14380
14381
  /* @__PURE__ */ t.jsx(
14381
- J1,
14382
+ K1,
14382
14383
  {
14383
14384
  className: o1("sud-float-button", V),
14384
14385
  icon: s,
@@ -14910,7 +14911,7 @@ const s3 = ({ isOpen: s, children: c }) => {
14910
14911
  shadow: S,
14911
14912
  style: D = {}
14912
14913
  }) => {
14913
- const m = b1(), k = Q1(C, m), F = A1(S, m), [V, E] = K(
14914
+ const m = b1(), k = q1(C, m), F = A1(S, m), [V, E] = K(
14914
14915
  o || ""
14915
14916
  ), [I, L] = K([]), U = c || V, W = (T) => {
14916
14917
  c === void 0 && E(T), l == null || l(T);
@@ -15393,7 +15394,7 @@ export {
15393
15394
  F0 as Avatar,
15394
15395
  d3 as Badge,
15395
15396
  T3 as Breadcrumb,
15396
- J1 as Button,
15397
+ K1 as Button,
15397
15398
  O9 as Calendar,
15398
15399
  m0 as Card,
15399
15400
  h3 as Carousel,
@@ -15452,7 +15453,7 @@ export {
15452
15453
  o3 as getColorWithIntensity,
15453
15454
  g0 as getFontStyles,
15454
15455
  A1 as getShadowStyle,
15455
- Q1 as getShapeStyles,
15456
+ q1 as getShapeStyles,
15456
15457
  o1 as mergeClassNames,
15457
15458
  k3 as notification,
15458
15459
  Y2 as parseColorString,