@hivcd-printshop/design-system 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
@@ -1026,7 +1026,7 @@ var ModalBase = ({ isVisible, header, children, className, onClose }) => {
1026
1026
  {
1027
1027
  "aria-hidden": true,
1028
1028
  onClick: onClose,
1029
- className: cn("fixed inset-0 z-1000 bg-black/10", onClose && "cursor-pointer")
1029
+ className: cn("fixed inset-0 z-1000 bg-[#212121]/30", onClose && "cursor-pointer")
1030
1030
  }
1031
1031
  ),
1032
1032
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "fixed inset-0 z-1001 flex items-center justify-center pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
@@ -1429,8 +1429,9 @@ var RadioToggleItem = ({
1429
1429
  onClick: onSelect,
1430
1430
  style,
1431
1431
  className: cn(
1432
- "w-full flex items-center gap-1.5 p-3",
1433
- "text-body1-regular text-secondary text-left cursor-pointer",
1432
+ "group w-full flex items-center gap-1.5 p-3",
1433
+ "text-body1-regular text-left cursor-pointer",
1434
+ open ? "text-strong" : "text-secondary",
1434
1435
  rowBg,
1435
1436
  className
1436
1437
  ),
@@ -1457,7 +1458,21 @@ var RadioToggleItem = ({
1457
1458
  };
1458
1459
  var Radio = ({ selected = false, className }) => {
1459
1460
  const Icon = selected ? IconRadioSelected : IconRadioUnselected;
1460
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { className: cn("w-6 h-6", className) });
1461
+ return (
1462
+ // 디자인 스펙(Figma "radio" 5:781): 아이콘 자체 색은 고정, hover/pressed 시
1463
+ // 24px 원형 배경 칩만 나타난다(gray00/gray01). 부모 버튼의 group-hover/active로 동기화.
1464
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1465
+ "span",
1466
+ {
1467
+ className: cn(
1468
+ "inline-flex size-6 shrink-0 items-center justify-center rounded-full transition-colors",
1469
+ "group-hover:bg-gray00 group-active:bg-gray01",
1470
+ className
1471
+ ),
1472
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { className: "size-6" })
1473
+ }
1474
+ )
1475
+ );
1461
1476
  };
1462
1477
  var TextButton2 = ({ label, onClick, showIcon = false, className }) => {
1463
1478
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
@@ -1889,14 +1904,10 @@ var UpperPart = ({
1889
1904
  ] }),
1890
1905
  /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-stretch", children: [
1891
1906
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { "aria-hidden": true, className: "w-px self-stretch bg-gray02" }),
1892
- upperPartIconList.map((icon, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1893
- NavIconButton,
1894
- {
1895
- ...icon,
1896
- linkComponent
1897
- },
1898
- icon.id ?? icon.src ?? icon.label ?? index
1899
- ))
1907
+ upperPartIconList.map((icon, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_react9.Fragment, { children: [
1908
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(NavIconButton, { ...icon, linkComponent }),
1909
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { "aria-hidden": true, className: "w-px self-stretch bg-gray02" })
1910
+ ] }, icon.id ?? icon.src ?? icon.label ?? index))
1900
1911
  ] })
1901
1912
  ]
1902
1913
  }
@@ -1918,7 +1929,9 @@ var UpperPartTab = ({
1918
1929
  linkComponent,
1919
1930
  current: selected,
1920
1931
  className: cn(
1921
- "inline-flex min-h-13 flex-col items-center gap-2 pt-2.5 cursor-pointer no-underline",
1932
+ // 헤더 바닥 border-b와 언더라인이 겹치도록 높이를 52px로 고정하고
1933
+ // justify-between으로 라벨/언더라인을 위-아래 끝에 붙인다.
1934
+ "inline-flex h-13 flex-col items-center justify-between pt-2.5 cursor-pointer no-underline",
1922
1935
  "transition-colors hover:bg-gray00 active:bg-gray01",
1923
1936
  className
1924
1937
  ),