sud-ui 1.3.5 → 1.4.0

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
@@ -1349,9 +1349,9 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1349
1349
  j1 && j1.forEach((w1) => {
1350
1350
  var t0, X1;
1351
1351
  const _1 = Array.from(B0).find(
1352
- (D1) => {
1352
+ (H1) => {
1353
1353
  var s0, J;
1354
- return ((J = (s0 = D1.current) == null ? void 0 : s0.popupInstance) == null ? void 0 : J.id) === w1;
1354
+ return ((J = (s0 = H1.current) == null ? void 0 : s0.popupInstance) == null ? void 0 : J.id) === w1;
1355
1355
  }
1356
1356
  );
1357
1357
  (X1 = (t0 = _1 == null ? void 0 : _1.current) == null ? void 0 : t0.popupInstance) != null && X1.hide && _1.current.popupInstance.hide();
@@ -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: y,
1391
1391
  fallback: p
1392
- }), C1 = f ? N(f, b) : i1, L1 = S ? N(S, b) : m1, T1 = L ? N(L, b) : k1, H1 = y && T1 ? `${M}px ${Z} ${T1}` : "none", P1 = E1(H, b), W1 = q1(T), z1 = S1(() => {
1392
+ }), C1 = f ? N(f, b) : i1, L1 = S ? N(S, b) : m1, T1 = L ? N(L, b) : k1, B1 = y && T1 ? `${M}px ${Z} ${T1}` : "none", P1 = E1(H, b), W1 = q1(T), 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
- }, [X1, D1] = a.split("-");
1398
+ }, [X1, H1] = 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
- })(X1, D1);
1437
- const N1 = window.innerWidth, I1 = window.innerHeight;
1436
+ })(X1, H1);
1437
+ const R1 = window.innerWidth, I1 = window.innerHeight;
1438
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 > N1 && ($1 = N1 - 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 };
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 (G && r.current && j.current && !E) {
@@ -1470,23 +1470,23 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1470
1470
  }, [G, z1]);
1471
1471
  const O1 = S1(
1472
1472
  ({ type: e1 = "background" }) => {
1473
- const j1 = e1 === "border", w1 = T1 && M > 0, _1 = n0 * 2 + (w1 ? M * 2 : 0), t0 = Math.sqrt(M * M * 2), X1 = !j1 && w1 ? t0 : 0, D1 = a.split("-")[0], s0 = {
1473
+ const j1 = e1 === "border", w1 = T1 && M > 0, _1 = n0 * 2 + (w1 ? M * 2 : 0), t0 = Math.sqrt(M * M * 2), X1 = !j1 && w1 ? t0 : 0, H1 = {
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%)`,
1477
1477
  right: `linear-gradient(45deg, ${C1} 50%, transparent 50%)`
1478
- }, J = {
1478
+ }, s0 = {
1479
1479
  width: `${_1}px`,
1480
1480
  height: `${_1}px`,
1481
1481
  position: "fixed",
1482
1482
  transform: "rotate(45deg)",
1483
1483
  zIndex: j1 ? 1 : 3,
1484
- border: j1 ? H1 : void 0,
1484
+ border: j1 ? B1 : void 0,
1485
1485
  borderRadius: "2px 0 0 0",
1486
- background: j1 ? void 0 : s0[D1],
1486
+ background: j1 ? void 0 : H1[a],
1487
1487
  backgroundColor: j1 ? T1 ?? C1 : void 0,
1488
1488
  boxShadow: j1 ? P1 : void 0
1489
- }, N1 = {
1489
+ }, J = {
1490
1490
  bottom: {
1491
1491
  top: `-${n0 - X1}px`,
1492
1492
  left: "50%",
@@ -1508,13 +1508,13 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1508
1508
  transform: "translateY(-50%) rotate(45deg)"
1509
1509
  }
1510
1510
  };
1511
- return { ...J, ...N1[D1] };
1511
+ return { ...s0, ...J[a] };
1512
1512
  },
1513
1513
  [
1514
1514
  a,
1515
1515
  C1,
1516
1516
  T1,
1517
- H1,
1517
+ B1,
1518
1518
  M,
1519
1519
  P1
1520
1520
  ]
@@ -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 D1, s0;
1526
- const w1 = document.elementFromPoint(j1.clientX, j1.clientY), _1 = (D1 = j.current) == null ? void 0 : D1.contains(w1), t0 = (s0 = r.current) == null ? void 0 : s0.contains(w1), X1 = G2(
1525
+ var H1, s0;
1526
+ const w1 = document.elementFromPoint(j1.clientX, j1.clientY), _1 = (H1 = j.current) == null ? void 0 : H1.contains(w1), t0 = (s0 = r.current) == null ? void 0 : s0.contains(w1), X1 = G2(
1527
1527
  r,
1528
1528
  w1,
1529
1529
  G0,
@@ -1614,7 +1614,7 @@ const u2 = (s = "") => `loading-spinner ${s ? `${s}-spin` : ""}`, $0 = (s) => {
1614
1614
  gap: "8px",
1615
1615
  backgroundColor: C1,
1616
1616
  color: L1,
1617
- border: H1,
1617
+ border: B1,
1618
1618
  padding: "8px",
1619
1619
  width: "max-content",
1620
1620
  whiteSpace: "nowrap",
@@ -4139,7 +4139,7 @@ const j9 = {
4139
4139
  /* @__PURE__ */ e.jsx("path", { d: "M12,5c-.5522461,0-1,.4477539-1,1v8c0,.5522461.4477539,1,1,1s1-.4477539,1-1V6c0-.5522461-.4477539-1-1-1Z" }),
4140
4140
  /* @__PURE__ */ e.jsx("path", { d: "M12.7099609,16.2904912c-.1000977-.090332-.2099609-.1601562-.3300781-.2104492-.3701172-.159668-.8100586-.0698242-1.0898438.2104492-.090332.0996094-.1601562.2099609-.2104492.3295898-.0498047.1201172-.0795898.25-.0795898.3803711,0,.2700195.1098633.5200195.2900391.7099609.1899414.1796875.449707.2900391.7099609.2900391.1298828,0,.2597656-.0302734.3798828-.0800781.1201172-.050293.2299805-.1201172.3300781-.2099609.1796875-.1899414.2900391-.4399414.2900391-.7099609,0-.1303711-.0302734-.2602539-.0800781-.3803711-.050293-.1196289-.1201172-.2299805-.2099609-.3295898Z" })
4141
4141
  ] })
4142
- }, B1 = Object.entries(j9).reduce((s, [c, o]) => {
4142
+ }, D1 = Object.entries(j9).reduce((s, [c, o]) => {
4143
4143
  const l = ({ size: n = 24, color: a, style: h = {}, ...m }) => /* @__PURE__ */ e.jsx(
4144
4144
  "svg",
4145
4145
  {
@@ -4156,29 +4156,29 @@ const j9 = {
4156
4156
  );
4157
4157
  return l.displayName = c, s[c] = l, s;
4158
4158
  }, {});
4159
- B1.Aim;
4160
- B1.EarthFill;
4161
- B1.EarthOutline;
4162
- B1.MapArrowCircleFill;
4163
- B1.MapArrowCircleOutline;
4164
- B1.MapArrowFill;
4165
- B1.MapArrowOutline;
4166
- B1.MapMarkerFill;
4167
- B1.MapMarkerOutline;
4168
- B1.Map;
4169
- B1.SunOutline;
4170
- B1.SunFill;
4171
- B1.MoonOutline;
4172
- B1.MoonFill;
4173
- B1.ThunderFill;
4174
- B1.ThunderOutline;
4175
- B1.BicycleFill;
4176
- B1.BicycleOutline;
4177
- B1.Rain;
4178
- B1.Snow;
4179
- B1.Cloudy;
4180
- B1.TemperatureFill;
4181
- B1.TemperatureOutline;
4159
+ D1.Aim;
4160
+ D1.EarthFill;
4161
+ D1.EarthOutline;
4162
+ D1.MapArrowCircleFill;
4163
+ D1.MapArrowCircleOutline;
4164
+ D1.MapArrowFill;
4165
+ D1.MapArrowOutline;
4166
+ D1.MapMarkerFill;
4167
+ D1.MapMarkerOutline;
4168
+ D1.Map;
4169
+ D1.SunOutline;
4170
+ D1.SunFill;
4171
+ D1.MoonOutline;
4172
+ D1.MoonFill;
4173
+ D1.ThunderFill;
4174
+ D1.ThunderOutline;
4175
+ D1.BicycleFill;
4176
+ D1.BicycleOutline;
4177
+ D1.Rain;
4178
+ D1.Snow;
4179
+ D1.Cloudy;
4180
+ D1.TemperatureFill;
4181
+ D1.TemperatureOutline;
4182
4182
  const v9 = {
4183
4183
  GridFourFill: /* @__PURE__ */ e.jsxs("g", { children: [
4184
4184
  /* @__PURE__ */ e.jsx("rect", { x: "2", y: "2", width: "9", height: "9", rx: "2", ry: "2" }),
@@ -6605,15 +6605,15 @@ const M0 = ({
6605
6605
  }), t1 = u1(null), M1 = u1(null), K = u1(null), Q = u1([]), i1 = W.filter(
6606
6606
  (J) => J.label.toLowerCase().includes(k.toLowerCase())
6607
6607
  ), m1 = F ? W.filter((J) => Array.isArray(g) && g.includes(J.value)) : W.find((J) => J.value === g), k1 = S1((J) => {
6608
- var N1, I1;
6609
- !((N1 = t1.current) != null && N1.contains(J.target)) && !((I1 = K.current) != null && I1.contains(J.target)) && x(!1);
6608
+ var R1, I1;
6609
+ !((R1 = t1.current) != null && R1.contains(J.target)) && !((I1 = K.current) != null && I1.contains(J.target)) && x(!1);
6610
6610
  }, []), C1 = S1((J) => {
6611
6611
  J.key === "Escape" && x(!1);
6612
6612
  }, []), L1 = S1(
6613
6613
  (J) => {
6614
6614
  if (!($ || P))
6615
6615
  if (F) {
6616
- const N1 = Array.isArray(g) ? g : [], $1 = N1.includes(J.value) ? N1.filter((V1) => V1 !== J.value) : [...N1, J.value];
6616
+ const R1 = Array.isArray(g) ? g : [], $1 = R1.includes(J.value) ? R1.filter((V1) => V1 !== J.value) : [...R1, J.value];
6617
6617
  v($1), Y(""), setTimeout(() => {
6618
6618
  var V1;
6619
6619
  (V1 = M1.current) == null || V1.focus();
@@ -6633,9 +6633,9 @@ const M0 = ({
6633
6633
  ]
6634
6634
  ), T1 = S1(
6635
6635
  (J) => {
6636
- var N1, I1, $1, V1;
6636
+ var R1, I1, $1, V1;
6637
6637
  if (J.key.length === 1 && !J.ctrlKey && !J.altKey && !J.metaKey) {
6638
- u || x(!0), (N1 = M1.current) == null || N1.focus();
6638
+ u || x(!0), (R1 = M1.current) == null || R1.focus();
6639
6639
  return;
6640
6640
  }
6641
6641
  if (!u && (J.key === "Enter" || J.key === "ArrowDown")) {
@@ -6684,32 +6684,32 @@ const M0 = ({
6684
6684
  W,
6685
6685
  L1
6686
6686
  ]
6687
- ), H1 = S1(() => {
6687
+ ), B1 = S1(() => {
6688
6688
  if (!t1.current || !K.current) return;
6689
- const J = t1.current.getBoundingClientRect(), N1 = K.current.getBoundingClientRect(), I1 = window.innerHeight - J.bottom, $1 = J.top, V1 = I1 < N1.height && $1 > I1;
6689
+ const J = t1.current.getBoundingClientRect(), R1 = K.current.getBoundingClientRect(), I1 = window.innerHeight - J.bottom, $1 = J.top, V1 = I1 < R1.height && $1 > I1;
6690
6690
  r1({
6691
- top: V1 ? J.top - N1.height - 4 : J.bottom + 4,
6691
+ top: V1 ? J.top - R1.height - 4 : J.bottom + 4,
6692
6692
  left: J.left
6693
6693
  });
6694
6694
  }, []);
6695
6695
  d0(() => {
6696
- u && H1();
6697
- }, [u, H1]), v1(() => {
6696
+ u && B1();
6697
+ }, [u, B1]), v1(() => {
6698
6698
  if (!u) return;
6699
6699
  const J = () => {
6700
- H1();
6700
+ B1();
6701
6701
  };
6702
6702
  return window.addEventListener("scroll", J, !0), window.addEventListener("resize", J), () => {
6703
6703
  window.removeEventListener("scroll", J, !0), window.removeEventListener("resize", J);
6704
6704
  };
6705
- }, [u, H1]), d0(() => {
6705
+ }, [u, B1]), d0(() => {
6706
6706
  t1.current && D(t1.current.offsetWidth);
6707
6707
  }, [u]), v1(() => (document.addEventListener("mousedown", k1), document.addEventListener("keydown", C1), () => {
6708
6708
  document.removeEventListener("mousedown", k1), document.removeEventListener("keydown", C1);
6709
6709
  }), [k1, C1]), v1(() => {
6710
6710
  if (u && m1 && !k) {
6711
6711
  const J = i1.findIndex(
6712
- (N1) => N1.value === (F ? g[0] : g)
6712
+ (R1) => R1.value === (F ? g[0] : g)
6713
6713
  );
6714
6714
  J >= 0 && Q.current[J] && (Q.current[J].scrollIntoView({
6715
6715
  block: "center"
@@ -6723,7 +6723,7 @@ const M0 = ({
6723
6723
  border: o,
6724
6724
  fallback: p ? "error" : U ? "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(f, r), X1 = E1(S, r), D1 = {
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(f, r), X1 = E1(S, r), H1 = {
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,7 +6780,7 @@ const M0 = ({
6780
6780
  color: $ ? N("cool-gray-3", r) : j1,
6781
6781
  ...t0,
6782
6782
  width: "100%",
6783
- padding: D1.padding,
6783
+ padding: H1.padding,
6784
6784
  cursor: $ ? "not-allowed" : "pointer",
6785
6785
  boxShadow: X1,
6786
6786
  ...h ? {
@@ -6824,7 +6824,7 @@ const M0 = ({
6824
6824
  overflowX: "auto",
6825
6825
  flex: 1,
6826
6826
  minWidth: 0,
6827
- minHeight: D1.height - (parseInt(D1.padding) || 0) * 2
6827
+ minHeight: H1.height - (parseInt(H1.padding) || 0) * 2
6828
6828
  },
6829
6829
  children: [
6830
6830
  Array.isArray(m1) && m1.map((J) => /* @__PURE__ */ t.jsx(
@@ -6854,11 +6854,11 @@ const M0 = ({
6854
6854
  border: "none",
6855
6855
  outline: "none",
6856
6856
  background: "transparent",
6857
- fontSize: D1.fontSize,
6857
+ fontSize: H1.fontSize,
6858
6858
  color: j1,
6859
6859
  flexGrow: 1,
6860
6860
  maxWidth: "100%",
6861
- height: D1.height,
6861
+ height: H1.height,
6862
6862
  minWidth: 0,
6863
6863
  cursor: $ ? "not-allowed" : "text"
6864
6864
  }
@@ -6883,9 +6883,9 @@ const M0 = ({
6883
6883
  backgroundColor: "transparent",
6884
6884
  border: "none",
6885
6885
  outline: "none",
6886
- fontSize: D1.fontSize,
6886
+ fontSize: H1.fontSize,
6887
6887
  color: j1,
6888
- height: D1.height,
6888
+ height: H1.height,
6889
6889
  cursor: $ ? "not-allowed" : V ? "text" : "default"
6890
6890
  }
6891
6891
  }
@@ -6909,7 +6909,7 @@ const M0 = ({
6909
6909
  {
6910
6910
  className: "sud-select__count",
6911
6911
  style: {
6912
- fontSize: D1.fontSize,
6912
+ fontSize: H1.fontSize,
6913
6913
  color: N("cool-gray-6", r),
6914
6914
  whiteSpace: "nowrap"
6915
6915
  },
@@ -6919,7 +6919,7 @@ const M0 = ({
6919
6919
  _ && !$ && (F && (g == null ? void 0 : g.length) > 0 || !F && g) && /* @__PURE__ */ t.jsx(
6920
6920
  Z0,
6921
6921
  {
6922
- size: D1.fontSize,
6922
+ size: H1.fontSize,
6923
6923
  onClick: (J) => {
6924
6924
  J.stopPropagation(), P1();
6925
6925
  },
@@ -6979,16 +6979,16 @@ const M0 = ({
6979
6979
  },
6980
6980
  children: "검색 결과가 없습니다"
6981
6981
  }
6982
- ) : i1.map((J, N1) => {
6982
+ ) : i1.map((J, R1) => {
6983
6983
  const I1 = F ? g == null ? void 0 : g.includes(J.value) : g === J.value;
6984
6984
  return /* @__PURE__ */ t.jsx(
6985
6985
  "div",
6986
6986
  {
6987
- ref: ($1) => Q.current[N1] = $1,
6987
+ ref: ($1) => Q.current[R1] = $1,
6988
6988
  className: o1(
6989
6989
  "sud-select__option",
6990
6990
  I1 ? "sud-select__option--selected" : "",
6991
- N1 === E ? "sud-select__option--focused" : ""
6991
+ R1 === E ? "sud-select__option--focused" : ""
6992
6992
  ),
6993
6993
  role: "option",
6994
6994
  "aria-selected": I1,
@@ -6999,7 +6999,7 @@ const M0 = ({
6999
6999
  style: {
7000
7000
  padding: "8px 12px",
7001
7001
  cursor: $ ? "not-allowed" : "pointer",
7002
- fontSize: D1.fontSize,
7002
+ fontSize: H1.fontSize,
7003
7003
  backgroundColor: I1 ? N("sky-1", r) : e1,
7004
7004
  transition: "background-color 0.2s ease"
7005
7005
  },
@@ -7027,7 +7027,7 @@ const M0 = ({
7027
7027
  className: "sud-input__error",
7028
7028
  style: {
7029
7029
  marginTop: 4,
7030
- marginLeft: D1.padding
7030
+ marginLeft: H1.padding
7031
7031
  },
7032
7032
  children: /* @__PURE__ */ t.jsx(
7033
7033
  l1,
@@ -7288,9 +7288,7 @@ const M0 = ({
7288
7288
  display: "flex",
7289
7289
  flexDirection: "column",
7290
7290
  gap: j.sm,
7291
- width: "100%",
7292
- flex: 1,
7293
- overflowY: "auto"
7291
+ width: "100%"
7294
7292
  },
7295
7293
  children: c
7296
7294
  }
@@ -7400,9 +7398,9 @@ const M0 = ({
7400
7398
  v1(() => {
7401
7399
  const s1 = () => {
7402
7400
  if (b.current) {
7403
- const R1 = b.current.offsetWidth;
7401
+ const N1 = b.current.offsetWidth;
7404
7402
  let x1 = P;
7405
- R1 >= 700 ? x1 = "lg" : R1 >= 500 ? x1 = "md" : R1 >= 300 ? x1 = "sm" : x1 = "miniView", O(x1), R(R1);
7403
+ N1 >= 700 ? x1 = "lg" : N1 >= 500 ? x1 = "md" : N1 >= 300 ? x1 = "sm" : x1 = "miniView", O(x1), R(N1);
7406
7404
  }
7407
7405
  };
7408
7406
  s1();
@@ -7413,11 +7411,11 @@ const M0 = ({
7413
7411
  }, [P]);
7414
7412
  const [r, u] = q(L9[j]), [x, k] = q(d1(s || /* @__PURE__ */ new Date())), [Y, C] = q(
7415
7413
  _ ? d1(_) : null
7416
- ), [D, E] = q($ ? d1($) : null), [A, U] = q(null), [G, c1] = q(d1(s || /* @__PURE__ */ new Date())), [r1, t1] = q(l), [M1, K] = q(!1), [Q, i1] = q(x.year()), [m1, k1] = q(x.month()), [C1, L1] = q(x.date()), [T1, H1] = q(!1), P1 = () => {
7417
- H1(!0), setTimeout(() => H1(!1), 150);
7418
- }, W1 = (s1, f1, R1) => {
7419
- const x1 = d1(new Date(s1, f1, R1));
7420
- i1(s1), k1(f1), L1(R1), k(x1), c1(x1);
7414
+ ), [D, E] = q($ ? d1($) : null), [A, U] = q(null), [G, c1] = q(d1(s || /* @__PURE__ */ new Date())), [r1, t1] = q(l), [M1, K] = q(!1), [Q, i1] = q(x.year()), [m1, k1] = q(x.month()), [C1, L1] = q(x.date()), [T1, B1] = q(!1), P1 = () => {
7415
+ B1(!0), setTimeout(() => B1(!1), 150);
7416
+ }, W1 = (s1, f1, N1) => {
7417
+ const x1 = d1(new Date(s1, f1, N1));
7418
+ i1(s1), k1(f1), L1(N1), k(x1), c1(x1);
7421
7419
  }, z1 = d1().year(), O1 = Array.from({ length: 201 }, (s1, f1) => z1 - 100 + f1), e1 = Array.from({ length: 12 }, (s1, f1) => f1), j1 = x.daysInMonth(), w1 = Array.from({ length: j1 }, (s1, f1) => f1 + 1);
7422
7420
  v1(() => {
7423
7421
  s && (c1(d1(s)), k(d1(s)));
@@ -7427,11 +7425,11 @@ const M0 = ({
7427
7425
  const _1 = (s1, f1) => !s1 || !f1 ? !1 : d1(s1).isSame(d1(f1), "day"), t0 = (s1) => {
7428
7426
  P1(), t1(s1), s1 === "daily" && k(G);
7429
7427
  }, X1 = F1(() => {
7430
- const s1 = [], f1 = d1(x), R1 = f1.startOf("month"), x1 = R1.day(), u0 = f1.daysInMonth(), a0 = f1.endOf("month").day(), w0 = x1 + u0 + (6 - a0);
7428
+ const s1 = [], f1 = d1(x), N1 = f1.startOf("month"), x1 = N1.day(), u0 = f1.daysInMonth(), a0 = f1.endOf("month").day(), w0 = x1 + u0 + (6 - a0);
7431
7429
  for (let r0 = 0; r0 < w0; r0++) {
7432
7430
  let i0, l0 = !0;
7433
7431
  if (r0 < x1) {
7434
- const O0 = R1.subtract(1, "day").date() - (x1 - r0 - 1);
7432
+ const O0 = N1.subtract(1, "day").date() - (x1 - r0 - 1);
7435
7433
  i0 = f1.subtract(1, "month").date(O0), l0 = !1;
7436
7434
  } else if (r0 < x1 + u0) {
7437
7435
  const p0 = r0 - x1 + 1;
@@ -7443,18 +7441,18 @@ const M0 = ({
7443
7441
  s1.push({ date: i0.toDate(), inCurrentMonth: l0 });
7444
7442
  }
7445
7443
  return s1;
7446
- }, [x]), { bgColor: D1, txtColor: s0, borColor: J } = h1({
7444
+ }, [x]), { bgColor: H1, txtColor: s0, borColor: J } = h1({
7447
7445
  border: S,
7448
7446
  fallback: i,
7449
7447
  componentType: "tag"
7450
- }), N1 = g ? N(g, W) : D1, I1 = N(v || "neutral-2", W), $1 = f ? N(f, W) : s0, V1 = y ? N(y, W) : J, J1 = S && V1 ? `${Z}px ${L} ${V1}` : "none", Q1 = (s1) => {
7448
+ }), R1 = g ? N(g, W) : H1, I1 = N(v || "neutral-2", W), $1 = f ? N(f, W) : s0, V1 = y ? N(y, W) : J, J1 = S && V1 ? `${Z}px ${L} ${V1}` : "none", Q1 = (s1) => {
7451
7449
  if (!V || V.length === 0) return !1;
7452
7450
  const f1 = d1(s1).format("YYYY-MM-DD");
7453
7451
  return V.includes(f1);
7454
7452
  }, o0 = (s1, f1) => Q1(f1) || s1 === 0 || s1 === 6 ? N("red-6", W) : "inherit", C0 = (s1) => {
7455
7453
  if (r1 === "year") {
7456
- const R1 = d1(s1).startOf("month");
7457
- k(R1), t1("month");
7454
+ const N1 = d1(s1).startOf("month");
7455
+ k(N1), t1("month");
7458
7456
  return;
7459
7457
  }
7460
7458
  const f1 = d1(s1);
@@ -7463,8 +7461,8 @@ const M0 = ({
7463
7461
  else if (!Y || Y && D)
7464
7462
  C(f1), E(null), c({ startDate: f1.toDate(), endDate: null });
7465
7463
  else {
7466
- const [R1, x1] = f1.isBefore(Y) ? [f1, Y] : [Y, f1];
7467
- C(R1), E(x1), c({ startDate: R1.toDate(), endDate: x1.toDate() });
7464
+ const [N1, x1] = f1.isBefore(Y) ? [f1, Y] : [Y, f1];
7465
+ C(N1), E(x1), c({ startDate: N1.toDate(), endDate: x1.toDate() });
7468
7466
  }
7469
7467
  }, c0 = () => {
7470
7468
  P1(), k(r1 === "daily" ? x.subtract(1, "day") : r1 === "month" ? x.subtract(1, "month").startOf("month") : x.subtract(1, "year").startOf("month"));
@@ -7532,12 +7530,12 @@ const M0 = ({
7532
7530
  paddingLeft: 4,
7533
7531
  gap: r.itemGap
7534
7532
  },
7535
- children: s1.map((R1) => {
7533
+ children: s1.map((N1) => {
7536
7534
  var x1;
7537
7535
  return /* @__PURE__ */ t.jsx(
7538
7536
  M0,
7539
7537
  {
7540
- colorType: R1.colorType || "apricot",
7538
+ colorType: N1.colorType || "apricot",
7541
7539
  style: {
7542
7540
  fontSize: r.itemFontSize
7543
7541
  },
@@ -7549,14 +7547,14 @@ const M0 = ({
7549
7547
  color: "inherit",
7550
7548
  fontSize: r.itemFontSize,
7551
7549
  textAlign: "left",
7552
- ...(x1 = R1.itemProps) == null ? void 0 : x1.style
7550
+ ...(x1 = N1.itemProps) == null ? void 0 : x1.style
7553
7551
  },
7554
- ...R1.itemProps,
7555
- children: R1.content
7552
+ ...N1.itemProps,
7553
+ children: N1.content
7556
7554
  }
7557
7555
  )
7558
7556
  },
7559
- R1.key
7557
+ N1.key
7560
7558
  );
7561
7559
  })
7562
7560
  }
@@ -7814,7 +7812,7 @@ const M0 = ({
7814
7812
  children: Array.from({ length: 12 }, (s1, f1) => {
7815
7813
  const x1 = d1(x).month(f1), u0 = x1.format("YYYY-MM"), b0 = o.filter(
7816
7814
  (l0) => l0.date.slice(0, 7) === u0
7817
- ), a0 = G.isSame(x1, "month"), w0 = A && d1(A).isSame(x1, "month"), r0 = a0 ? N1 : w0 ? I1 : "transparent", i0 = a0 ? $1 : "inherit";
7815
+ ), a0 = G.isSame(x1, "month"), w0 = A && d1(A).isSame(x1, "month"), r0 = a0 ? R1 : w0 ? I1 : "transparent", i0 = a0 ? $1 : "inherit";
7818
7816
  return /* @__PURE__ */ t.jsxs(
7819
7817
  "div",
7820
7818
  {
@@ -7880,8 +7878,8 @@ const M0 = ({
7880
7878
  gridTemplateColumns: "repeat(7, 1fr)",
7881
7879
  textAlign: "center"
7882
7880
  },
7883
- children: X1.map(({ date: s1, inCurrentMonth: f1 }, R1) => {
7884
- const x1 = d1(s1), u0 = _1(A, x1), b0 = _1(G, x1), a0 = x1.day(), w0 = R1 >= 35, r0 = x1.format("YYYY-MM-DD"), i0 = o.filter((U0) => U0.date === r0), l0 = p && (x1.isSame(Y, "day") || x1.isSame(D, "day")), p0 = p && Y && D && x1.isAfter(Y, "day") && x1.isBefore(D, "day"), O0 = Q1(x1) || a0 === 0 || a0 === 6, N2 = l0 || b0 || p0 ? $1 : f1 ? o0(a0, x1) : N("neutral-4", W), R2 = l0 || b0 || p0 ? N1 : u0 ? I1 : "transparent";
7881
+ children: X1.map(({ date: s1, inCurrentMonth: f1 }, N1) => {
7882
+ const x1 = d1(s1), u0 = _1(A, x1), b0 = _1(G, x1), a0 = x1.day(), w0 = N1 >= 35, r0 = x1.format("YYYY-MM-DD"), i0 = o.filter((U0) => U0.date === r0), l0 = p && (x1.isSame(Y, "day") || x1.isSame(D, "day")), p0 = p && Y && D && x1.isAfter(Y, "day") && x1.isBefore(D, "day"), O0 = Q1(x1) || a0 === 0 || a0 === 6, N2 = l0 || b0 || p0 ? $1 : f1 ? o0(a0, x1) : N("neutral-4", W), R2 = l0 || b0 || p0 ? R1 : u0 ? I1 : "transparent";
7885
7883
  let N0 = { ...F };
7886
7884
  return O0 && (F.background && (N0.backgroundColor = N(
7887
7885
  F.background,
@@ -7937,7 +7935,7 @@ const M0 = ({
7937
7935
  i2(i0, j === "miniView")
7938
7936
  ]
7939
7937
  },
7940
- R1
7938
+ N1
7941
7939
  );
7942
7940
  })
7943
7941
  }
@@ -10020,8 +10018,8 @@ const j3 = ({
10020
10018
  const { columnKey: K, order: Q } = _, i1 = s.find((C1) => (C1.dataIndex || C1.key) === K);
10021
10019
  if (!i1) return c;
10022
10020
  const m1 = i1.sorter === !0 ? (C1, L1) => {
10023
- const T1 = C1[K], H1 = L1[K];
10024
- return typeof T1 == "number" ? T1 - H1 : String(T1).localeCompare(String(H1));
10021
+ const T1 = C1[K], B1 = L1[K];
10022
+ return typeof T1 == "number" ? T1 - B1 : String(T1).localeCompare(String(B1));
10025
10023
  } : i1.sorter;
10026
10024
  return [...c].sort((C1, L1) => {
10027
10025
  const T1 = m1(C1, L1);
@@ -10273,7 +10271,7 @@ const j3 = ({
10273
10271
  role: "row",
10274
10272
  "aria-rowindex": Q + 1,
10275
10273
  "aria-selected": K.selected || !1,
10276
- children: t1.map((T1, H1) => {
10274
+ children: t1.map((T1, B1) => {
10277
10275
  const P1 = T1.key, W1 = K[P1], z1 = T1.align || "left", O1 = T1.render ? T1.render(W1, K, Q) : /* @__PURE__ */ t.jsx(l1, { size: j.fontSize, children: W1 });
10278
10276
  return /* @__PURE__ */ t.jsx(
10279
10277
  "td",
@@ -10287,8 +10285,8 @@ const j3 = ({
10287
10285
  background: m1,
10288
10286
  color: k1,
10289
10287
  borderBottom: L1,
10290
- borderLeft: H1 === 0 ? "none" : L1,
10291
- borderRight: H1 === s.length - 1 ? "none" : L1,
10288
+ borderLeft: B1 === 0 ? "none" : L1,
10289
+ borderRight: B1 === s.length - 1 ? "none" : L1,
10292
10290
  fontSize: j.fontSize,
10293
10291
  padding: u
10294
10292
  },
@@ -10296,7 +10294,7 @@ const j3 = ({
10296
10294
  "aria-label": `${T1.title}: ${W1}`,
10297
10295
  children: O1
10298
10296
  },
10299
- P1 || H1
10297
+ P1 || B1
10300
10298
  );
10301
10299
  })
10302
10300
  },
@@ -10567,7 +10565,7 @@ const f0 = ({
10567
10565
  _({ target: { value: e1 } });
10568
10566
  }, T1 = (O1) => {
10569
10567
  O1.key === "Enter" && $(O1), P(O1);
10570
- }, H1 = p, P1 = Y && p && isNaN(Number(p.replace(/,/g, ""))), W1 = Y ? P1 : j, z1 = Y && P1 ? "숫자를 입력하세요" : R;
10568
+ }, B1 = p, P1 = Y && p && isNaN(Number(p.replace(/,/g, ""))), W1 = Y ? P1 : j, z1 = Y && P1 ? "숫자를 입력하세요" : R;
10571
10569
  return /* @__PURE__ */ t.jsxs(
10572
10570
  "div",
10573
10571
  {
@@ -10667,7 +10665,7 @@ const f0 = ({
10667
10665
  ref: D,
10668
10666
  className: `sud-input__field cursor-${f ? "not-allowed" : ""}`,
10669
10667
  type: Y ? "text" : k1,
10670
- value: H1,
10668
+ value: B1,
10671
10669
  onChange: L1,
10672
10670
  onKeyDown: T1,
10673
10671
  placeholder: H,
@@ -11361,7 +11359,7 @@ const E9 = ({
11361
11359
  return;
11362
11360
  }
11363
11361
  x(O1), n == null || n(O1);
11364
- }, H1 = a ? {
11362
+ }, B1 = a ? {
11365
11363
  position: "absolute",
11366
11364
  left: 0,
11367
11365
  width: "100%",
@@ -11442,7 +11440,7 @@ const E9 = ({
11442
11440
  className: "su-hover sud-slider__filled",
11443
11441
  style: {
11444
11442
  borderRadius: a ? K / 2 : Q / 2,
11445
- ...H1
11443
+ ...B1
11446
11444
  }
11447
11445
  }
11448
11446
  ),
@@ -14727,7 +14725,7 @@ const s3 = ({ isOpen: s, children: c }) => {
14727
14725
  finalDividerColor: d,
14728
14726
  ...i
14729
14727
  }) => {
14730
- const [g, v] = q(!1), f = Array.isArray(s.children) && s.children.length > 0, S = a.includes(s.key), y = !f, L = `${12 + c * 16}px`, { backgroundColor: Z, color: M } = h(s.key, y, g);
14728
+ const [g, v] = q(!1), f = Array.isArray(s.children) && s.children.length > 0, S = a.includes(s.key), y = !f, L = 12 + c * 16, { backgroundColor: Z, color: M } = h(s.key, y, g);
14731
14729
  return s.mode === "group" ? /* @__PURE__ */ t.jsxs("li", { style: { marginBottom: 6 }, children: [
14732
14730
  typeof s.title == "string" ? /* @__PURE__ */ t.jsx(
14733
14731
  l1,
@@ -14737,10 +14735,10 @@ const s3 = ({ isOpen: s, children: c }) => {
14737
14735
  size: "sm",
14738
14736
  pretendard: "B",
14739
14737
  color: "cool-gray-6",
14740
- style: { padding: "4px 12px", paddingLeft: L },
14738
+ style: { padding: `4px 12px 4px ${L}px` },
14741
14739
  children: s.title
14742
14740
  }
14743
- ) : /* @__PURE__ */ t.jsx("div", { style: { padding: "4px 12px", paddingLeft: L }, children: s.title }),
14741
+ ) : /* @__PURE__ */ t.jsx("div", { style: { padding: `4px 12px 4px ${L}px` }, children: s.title }),
14744
14742
  /* @__PURE__ */ t.jsx(
14745
14743
  "ul",
14746
14744
  {
@@ -14793,14 +14791,14 @@ const s3 = ({ isOpen: s, children: c }) => {
14793
14791
  transition: "all 0.2s ease",
14794
14792
  borderRadius: 10,
14795
14793
  cursor: "pointer",
14796
- padding: 12,
14794
+ padding: `6px 12px 6px ${L}px`,
14797
14795
  display: "flex",
14798
14796
  justifyContent: "space-between",
14799
14797
  alignItems: "center"
14800
14798
  },
14801
14799
  onClick: () => {
14802
14800
  var T;
14803
- y ? (l == null || l(s.key), (T = s.onClick) == null || T.call(s)) : n(s.key);
14801
+ l == null || l(s.key), (T = s.onClick) == null || T.call(s), y || n(s.key);
14804
14802
  },
14805
14803
  role: f ? "button" : "menuitem",
14806
14804
  "aria-expanded": f ? S : void 0,
@@ -14903,7 +14901,7 @@ const s3 = ({ isOpen: s, children: c }) => {
14903
14901
  (D) => D.includes(C) ? D.filter((E) => E !== C) : [...D, C]
14904
14902
  );
14905
14903
  }, b = (C, D, E) => {
14906
- const A = X === C && D, G = h1({
14904
+ const A = X === C, G = h1({
14907
14905
  border: !1,
14908
14906
  componentType: "etc",
14909
14907
  fallback: A ? "selected" : E ? "hovered" : "default"