@idbrnd/design-system 2.1.0 → 2.1.2

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +40 -40
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @idbrnd/design-system
2
2
 
3
- ![Version](https://img.shields.io/badge/version-2.1.0-4B5FE1?style=flat-square)
3
+ ![Version](https://img.shields.io/badge/version-2.1.2-4B5FE1?style=flat-square)
4
4
  ![React](https://img.shields.io/badge/React-18.3.1-61DAFB?style=flat-square&logo=react&logoColor=white)
5
5
  ![Vite](https://img.shields.io/badge/Vite-7.3.0-646CFF?style=flat-square&logo=vite&logoColor=white)
6
6
  ![TypeScript](https://img.shields.io/badge/TypeScript-5.9.3-3178C6?style=flat-square&logo=typescript&logoColor=white)
package/dist/index.js CHANGED
@@ -446,7 +446,7 @@ function kr({
446
446
  }
447
447
  );
448
448
  }
449
- const w4 = "_root_hoo4h_1", v4 = "_label_hoo4h_8", L4 = "_labelDisabled_hoo4h_16", _4 = "_requiredMark_hoo4h_20", b4 = "_controlRow_hoo4h_24", x4 = "_control_hoo4h_24", M4 = "_small_hoo4h_48", y4 = "_outline_hoo4h_53", H4 = "_fill_hoo4h_57", Z4 = "_basic_hoo4h_61", V4 = "_success_hoo4h_65", I4 = "_error_hoo4h_70", B4 = "_focused_hoo4h_82", R4 = "_disabled_hoo4h_87", k4 = "_leadingIcon_hoo4h_101", S4 = "_trailingIcon_hoo4h_102", A4 = "_trailingText_hoo4h_103", N4 = "_inputField_hoo4h_125", E4 = "_trailingButton_hoo4h_172", T4 = "_trailingIconButton_hoo4h_173", $4 = "_trailingSlot_hoo4h_177", D4 = "_trailingSlotDisabled_hoo4h_184", F4 = "_trailingBasicIconButton_hoo4h_188", O4 = "_helper_hoo4h_269", P4 = "_helperFixed_hoo4h_278", j4 = "_helperPlaceholder_hoo4h_282", W4 = "_errorHelper_hoo4h_286", q4 = "_errorHelperBounce_hoo4h_290", G4 = "_errorMessageBounceY_hoo4h_1", U4 = "_helperDisabled_hoo4h_294", U = {
449
+ const w4 = "_root_hoo4h_1", v4 = "_label_hoo4h_8", L4 = "_labelDisabled_hoo4h_16", _4 = "_requiredMark_hoo4h_20", b4 = "_controlRow_hoo4h_24", x4 = "_control_hoo4h_24", M4 = "_small_hoo4h_48", y4 = "_outline_hoo4h_53", H4 = "_fill_hoo4h_57", Z4 = "_basic_hoo4h_61", V4 = "_success_hoo4h_65", I4 = "_error_hoo4h_70", B4 = "_focused_hoo4h_82", R4 = "_disabled_hoo4h_87", k4 = "_leadingIcon_hoo4h_101", S4 = "_trailingIcon_hoo4h_102", A4 = "_trailingText_hoo4h_103", N4 = "_inputField_hoo4h_125", E4 = "_trailingButton_hoo4h_172", T4 = "_trailingIconButton_hoo4h_173", $4 = "_trailingSlot_hoo4h_177", D4 = "_trailingSlotDisabled_hoo4h_184", F4 = "_trailingBasicIconButton_hoo4h_188", O4 = "_helper_hoo4h_269", P4 = "_helperFixed_hoo4h_278", j4 = "_helperPlaceholder_hoo4h_282", W4 = "_errorHelper_hoo4h_286", q4 = "_errorHelperBounce_hoo4h_290", G4 = "_errorMessageBounceY_hoo4h_1", U4 = "_helperDisabled_hoo4h_294", Q = {
450
450
  root: w4,
451
451
  label: v4,
452
452
  labelDisabled: L4,
@@ -493,7 +493,7 @@ function Q4({
493
493
  return /* @__PURE__ */ n(
494
494
  "span",
495
495
  {
496
- className: [U.trailingSlot, t ? U.trailingSlotDisabled : ""].filter(Boolean).join(" "),
496
+ className: [Q.trailingSlot, t ? Q.trailingSlotDisabled : ""].filter(Boolean).join(" "),
497
497
  onMouseDownCapture: o,
498
498
  children: e
499
499
  }
@@ -583,20 +583,20 @@ function K4({
583
583
  onFocus: m,
584
584
  onBlur: _,
585
585
  onChange: g
586
- }), y = Z1(() => R == null ? !1 : Array.isArray(R) ? R.length > 0 : typeof R == "number" ? !0 : String(R).length > 0, [R]), H = Z1(() => g9(f), [f]), T = Z1(() => g9(C), [C]), A = H !== void 0, D = Z1(() => A ? "error" : l !== void 0 ? l : y ? "typed" : "basic", [A, l, y]), O = D === "error", Q = D === "success", a1 = D === "onFocus" || D === "onTyping", h1 = [
587
- U.control,
588
- U[t],
589
- O ? U.error : Q ? U.success : U.basic,
590
- U[o],
591
- !L && a1 ? U.focused : "",
592
- L ? U.disabled : ""
593
- ].filter(Boolean).join(" "), l1 = [U.inputField, U[`input-${o}`]].join(" "), K = U.root, B1 = [U.label, L ? U.labelDisabled : ""].filter(Boolean).join(" "), g1 = Z1(() => O ? A ? H : "에러 메시지가 표시됩니다." : C === !1 || C === void 0 || C === null ? null : C === !0 ? "2~19자 이내로 입력해 주세요." : T ?? null, [C, O, A, T, H]), r1 = [
594
- U.helper,
595
- a ? U.helperFixed : "",
596
- O ? U.errorHelper : "",
597
- O && g1 !== null ? U.errorHelperBounce : "",
598
- L ? U.helperDisabled : "",
599
- a && g1 === null ? U.helperPlaceholder : ""
586
+ }), y = Z1(() => R == null ? !1 : Array.isArray(R) ? R.length > 0 : typeof R == "number" ? !0 : String(R).length > 0, [R]), H = Z1(() => g9(f), [f]), T = Z1(() => g9(C), [C]), A = H !== void 0, D = Z1(() => A ? "error" : l !== void 0 ? l : y ? "typed" : "basic", [A, l, y]), O = D === "error", U = D === "success", a1 = D === "onFocus" || D === "onTyping", h1 = [
587
+ Q.control,
588
+ Q[t],
589
+ O ? Q.error : U ? Q.success : Q.basic,
590
+ Q[o],
591
+ !L && a1 ? Q.focused : "",
592
+ L ? Q.disabled : ""
593
+ ].filter(Boolean).join(" "), l1 = [Q.inputField, Q[`input-${o}`]].join(" "), K = Q.root, B1 = [Q.label, L ? Q.labelDisabled : ""].filter(Boolean).join(" "), g1 = Z1(() => O ? A ? H : "에러 메시지가 표시됩니다." : C === !1 || C === void 0 || C === null ? null : C === !0 ? "2~19자 이내로 입력해 주세요." : T ?? null, [C, O, A, T, H]), r1 = [
594
+ Q.helper,
595
+ a ? Q.helperFixed : "",
596
+ O ? Q.errorHelper : "",
597
+ O && g1 !== null ? Q.errorHelperBounce : "",
598
+ L ? Q.helperDisabled : "",
599
+ a && g1 === null ? Q.helperPlaceholder : ""
600
600
  ].filter(Boolean).join(" ");
601
601
  return /* @__PURE__ */ p(
602
602
  "div",
@@ -610,10 +610,10 @@ function K4({
610
610
  children: [
611
611
  b ? /* @__PURE__ */ p("label", { htmlFor: I, className: B1, children: [
612
612
  /* @__PURE__ */ n("span", { children: V }),
613
- c ? /* @__PURE__ */ n("span", { className: U.requiredMark, children: "*" }) : null
613
+ c ? /* @__PURE__ */ n("span", { className: Q.requiredMark, children: "*" }) : null
614
614
  ] }) : null,
615
- /* @__PURE__ */ n("div", { className: U.controlRow, children: /* @__PURE__ */ p("div", { className: h1, children: [
616
- d ? /* @__PURE__ */ n("span", { className: U.leadingIcon, children: d }) : null,
615
+ /* @__PURE__ */ n("div", { className: Q.controlRow, children: /* @__PURE__ */ p("div", { className: h1, children: [
616
+ d ? /* @__PURE__ */ n("span", { className: Q.leadingIcon, children: d }) : null,
617
617
  /* @__PURE__ */ n(
618
618
  "input",
619
619
  {
@@ -1875,12 +1875,12 @@ function jr({
1875
1875
  customStyle: _,
1876
1876
  textColor: g
1877
1877
  }) {
1878
- const w = _9(), L = `${w}-listbox`, [Z, S] = q(!1), [x, I] = q(!1), [b, V] = q(null), [R, M] = q("bottom"), { tooltip: k, showTooltip: N, hideTooltip: y } = L2(), H = F(null), T = F(null), A = F(null), D = F(null), O = F(), Q = 4, a1 = 204, h1 = 16, l1 = G(() => {
1878
+ const w = _9(), L = `${w}-listbox`, [Z, S] = q(!1), [x, I] = q(!1), [b, V] = q(null), [R, M] = q("bottom"), { tooltip: k, showTooltip: N, hideTooltip: y } = L2(), H = F(null), T = F(null), A = F(null), D = F(null), O = F(), U = 4, a1 = 204, h1 = 16, l1 = G(() => {
1879
1879
  const $ = T.current ?? H.current;
1880
1880
  if ($) {
1881
- const W = $.getBoundingClientRect(), C1 = window.innerHeight - W.bottom, f1 = W.top, R1 = a1 + h1 + Q, L1 = C1 < R1 && f1 > C1;
1881
+ const W = $.getBoundingClientRect(), C1 = window.innerHeight - W.bottom, f1 = W.top, R1 = a1 + h1 + U, L1 = C1 < R1 && f1 > C1;
1882
1882
  M(L1 ? "top" : "bottom"), V({
1883
- top: L1 ? W.top + window.scrollY - Q : W.bottom + window.scrollY + Q,
1883
+ top: L1 ? W.top + window.scrollY - U : W.bottom + window.scrollY + U,
1884
1884
  left: W.left + window.scrollX,
1885
1885
  width: W.width
1886
1886
  });
@@ -2430,7 +2430,7 @@ function X7(e, t, o, l, r, s, i, c, C, a, f, d, u, v, h, m, _, g, w) {
2430
2430
  touch: 600
2431
2431
  }, k = h ? 43 : 25;
2432
2432
  let N = !1, y = 0, H = 0, T = !1, A = !1, D = !1, O = !1;
2433
- function Q(B) {
2433
+ function U(B) {
2434
2434
  if (!w) return;
2435
2435
  function P(W) {
2436
2436
  (x9(w) || w(B, W)) && g1(W);
@@ -2481,7 +2481,7 @@ function X7(e, t, o, l, r, s, i, c, C, a, f, d, u, v, h, m, _, g, w) {
2481
2481
  return T;
2482
2482
  }
2483
2483
  return {
2484
- init: Q,
2484
+ init: U,
2485
2485
  destroy: a1,
2486
2486
  pointerDown: s1
2487
2487
  };
@@ -3108,8 +3108,8 @@ function g8(e, t, o, l, r, s, i) {
3108
3108
  slideSizes: A,
3109
3109
  slideSizesWithGaps: D,
3110
3110
  startGap: O,
3111
- endGap: Q
3112
- } = f8(M, V, R, o, T, r), a1 = p8(M, k, _, d, V, R, O, Q, I), {
3111
+ endGap: U
3112
+ } = f8(M, V, R, o, T, r), a1 = p8(M, k, _, d, V, R, O, U, I), {
3113
3113
  snaps: h1,
3114
3114
  snapsAligned: l1
3115
3115
  } = i8(M, y, V, R, a1), K = -V1(h1) + V1(D), {
@@ -3339,7 +3339,7 @@ function v9(e, t, o) {
3339
3339
  function O() {
3340
3340
  return g.scrollSnapList;
3341
3341
  }
3342
- function Q() {
3342
+ function U() {
3343
3343
  return g.scrollProgress.get(g.offsetLocation.get());
3344
3344
  }
3345
3345
  function a1() {
@@ -3384,7 +3384,7 @@ function v9(e, t, o) {
3384
3384
  rootNode: r1,
3385
3385
  scrollNext: H,
3386
3386
  scrollPrev: T,
3387
- scrollProgress: Q,
3387
+ scrollProgress: U,
3388
3388
  scrollSnapList: O,
3389
3389
  scrollTo: y,
3390
3390
  selectedScrollSnap: a1,
@@ -3689,8 +3689,8 @@ function Ur({
3689
3689
  let T;
3690
3690
  if (_.current === "fill") {
3691
3691
  const A = parseFloat(getComputedStyle(y).columnGap) || 0;
3692
- T = d.current.reduce((O, Q) => {
3693
- const h1 = f.current.get(Q.value)?.firstElementChild, l1 = h1?.firstElementChild;
3692
+ T = d.current.reduce((O, U) => {
3693
+ const h1 = f.current.get(U.value)?.firstElementChild, l1 = h1?.firstElementChild;
3694
3694
  return O + (l1 ? l1.scrollWidth : h1 ? h1.scrollWidth : 0);
3695
3695
  }, 0) + A * Math.max(0, d.current.length - 1) > H.clientWidth;
3696
3696
  } else
@@ -4067,7 +4067,6 @@ function Xr({
4067
4067
  o && /* @__PURE__ */ n("th", { className: `${E.th} ${E.checkboxCell}`, children: /* @__PURE__ */ n(
4068
4068
  n2,
4069
4069
  {
4070
- variant: "assistive",
4071
4070
  size: "small",
4072
4071
  checked: e.getIsAllRowsSelected() || e.getIsSomeRowsSelected(),
4073
4072
  indeterminate: e.getIsSomeRowsSelected() && !e.getIsAllRowsSelected(),
@@ -4122,8 +4121,8 @@ function Xr({
4122
4121
  E.accordionToggle,
4123
4122
  H ? E.accordionToggleExpanded : ""
4124
4123
  ].filter(Boolean).join(" "),
4125
- onClick: (Q) => {
4126
- Q.stopPropagation(), S(M.id);
4124
+ onClick: (U) => {
4125
+ U.stopPropagation(), S(M.id);
4127
4126
  },
4128
4127
  dangerouslySetInnerHTML: { __html: ht }
4129
4128
  }
@@ -4132,23 +4131,24 @@ function Xr({
4132
4131
  "td",
4133
4132
  {
4134
4133
  className: `${E.td} ${E.checkboxCell}`,
4135
- onClick: (Q) => Q.stopPropagation(),
4134
+ onClick: (U) => {
4135
+ U.stopPropagation(), !U.target.closest("label") && N && M.toggleSelected();
4136
+ },
4136
4137
  children: /* @__PURE__ */ n(
4137
4138
  n2,
4138
4139
  {
4139
- variant: "assistive",
4140
4140
  size: "small",
4141
4141
  checked: k,
4142
4142
  disabled: !N,
4143
- onChange: (Q) => M.toggleSelected(Q)
4143
+ onChange: (U) => M.toggleSelected(U)
4144
4144
  }
4145
4145
  )
4146
4146
  }
4147
4147
  ),
4148
- M.getVisibleCells().map((Q) => /* @__PURE__ */ n("td", { className: E.td, children: u2(
4149
- Q.column.columnDef.cell,
4150
- Q.getContext()
4151
- ) }, Q.id))
4148
+ M.getVisibleCells().map((U) => /* @__PURE__ */ n("td", { className: E.td, children: u2(
4149
+ U.column.columnDef.cell,
4150
+ U.getContext()
4151
+ ) }, U.id))
4152
4152
  ]
4153
4153
  }
4154
4154
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idbrnd/design-system",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",