@hivcd-printshop/design-system 1.4.2 → 1.5.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.mjs CHANGED
@@ -1088,7 +1088,7 @@ var ModalBase = ({ isVisible, header, children, className, onClose }) => {
1088
1088
  className: cn(
1089
1089
  "relative w-110 pt-8 h-fit pointer-events-auto",
1090
1090
  "flex flex-col items-center",
1091
- "border border-gray02",
1091
+ // "border border-gray02",
1092
1092
  "bg-white shadow-[0px_0px_30px_0px_rgba(0,0,0,0.08)]",
1093
1093
  className
1094
1094
  ),
@@ -1304,7 +1304,7 @@ var NoticeBar = ({
1304
1304
  children: [
1305
1305
  /* @__PURE__ */ jsxs17("section", { className: "flex items-center gap-3", children: [
1306
1306
  /* @__PURE__ */ jsx33(NoticeBadge, { variable: badgeVariable }),
1307
- /* @__PURE__ */ jsx33("h1", { className: "text-head1-medium text-strong", children: title })
1307
+ /* @__PURE__ */ jsx33("h1", { className: "text-head3-regular text-strong", children: title })
1308
1308
  ] }),
1309
1309
  /* @__PURE__ */ jsx33("p", { className: "text-body3-book text-tertiary", children: date })
1310
1310
  ]
@@ -1322,7 +1322,7 @@ var SearchBar = ({ value, onChange, className }) => {
1322
1322
  "w-full h-12 pl-4 pr-3",
1323
1323
  "flex items-center gap-2",
1324
1324
  "box-border border-b border-gray02 border-t border-t-white",
1325
- "focus-within:border-black focus-within:border focus-within:outline-none",
1325
+ "focus-within:border-black focus-within:border focus-within:outline-none focus-within:pl-[15px]",
1326
1326
  className
1327
1327
  ),
1328
1328
  children: [
@@ -1424,7 +1424,7 @@ var Stepper = ({ step, title, isOpen, collapsible, onClick, className }) => {
1424
1424
  " | ",
1425
1425
  title
1426
1426
  ] });
1427
- const base = "w-full flex items-center justify-between px-5 py-2.5 text-head3-medium text-primary text-left bg-white border-b border-gray02";
1427
+ const base = "w-full flex items-center justify-between px-5 py-2.5 text-head3-medium text-strong text-left bg-white border-b border-gray02";
1428
1428
  if (!collapsible) {
1429
1429
  return /* @__PURE__ */ jsx35("div", { className: cn(base, className), children: label });
1430
1430
  }
@@ -1477,7 +1477,7 @@ var RadioToggleItem = ({
1477
1477
  }
1478
1478
  ),
1479
1479
  open && /* @__PURE__ */ jsxs19("div", { className: "flex flex-col gap-2 px-3 py-3 bg-white", children: [
1480
- /* @__PURE__ */ jsx35("p", { className: "text-caption-regular text-secondary", children: content }),
1480
+ /* @__PURE__ */ jsx35("p", { className: "text-body3-book text-secondary", children: content }),
1481
1481
  badges && badges.length > 0 && /* @__PURE__ */ jsx35("div", { className: "flex flex-wrap gap-1", children: badges.map((badge) => /* @__PURE__ */ jsx35(Badge2, { label: badge }, badge)) }),
1482
1482
  labelTextButton && /* @__PURE__ */ jsx35(
1483
1483
  TextButton2,
@@ -1502,7 +1502,7 @@ var Radio = ({ selected = false, className }) => {
1502
1502
  {
1503
1503
  className: cn(
1504
1504
  "inline-flex size-6 shrink-0 items-center justify-center rounded-full transition-colors",
1505
- "group-hover:bg-gray00 group-active:bg-gray01",
1505
+ // "group-hover:bg-gray00 group-active:bg-gray01",
1506
1506
  className
1507
1507
  ),
1508
1508
  children: /* @__PURE__ */ jsx35(Icon, { className: "size-2.5" })
@@ -2026,7 +2026,7 @@ var UpperPartTab = ({
2026
2026
  className
2027
2027
  ),
2028
2028
  children: [
2029
- /* @__PURE__ */ jsx40("span", { className: cn("px-5 text-head1-medium", selected ? "text-strong" : "text-quaternary"), children: label }),
2029
+ /* @__PURE__ */ jsx40("span", { className: cn("px-5 text-head1-medium", selected ? "text-strong" : "text-gray04"), children: label }),
2030
2030
  /* @__PURE__ */ jsx40("span", { className: cn("h-0.5 w-full", selected ? "bg-black" : "bg-transparent") })
2031
2031
  ]
2032
2032
  }
@@ -2124,7 +2124,7 @@ var LowerPartItemButton = ({
2124
2124
  className: cn(
2125
2125
  "inline-flex h-full items-center justify-center px-5 text-head3-medium cursor-pointer no-underline",
2126
2126
  "transition-colors hover:bg-gray00 active:bg-gray01",
2127
- selected ? "text-strong" : "text-quaternary",
2127
+ selected ? "text-strong" : "text-gray04",
2128
2128
  className
2129
2129
  ),
2130
2130
  children: label
@@ -2164,8 +2164,9 @@ var Toast = forwardRef7(function Toast2({ message, open, duration = 3e3, onClose
2164
2164
  role: "status",
2165
2165
  "aria-live": "polite",
2166
2166
  className: cn(
2167
- "w-full h-fit py-2.5 bg-gray06",
2168
- "font-pretendard text-white text-center font-semibold text-[17px] leading-[1.6]",
2167
+ "w-full h-fit py-2.5 bg-gray08",
2168
+ "mt-7 mx-8",
2169
+ "text-white text-center text-body1-regular",
2169
2170
  "shadow-[0_2px_15px_rgba(0,0,0,0.18)]",
2170
2171
  controlled && "transition-opacity duration-300",
2171
2172
  controlled && (visible ? "opacity-100" : "opacity-0"),
@@ -2186,6 +2187,44 @@ var Toast = forwardRef7(function Toast2({ message, open, duration = 3e3, onClose
2186
2187
  }
2187
2188
  );
2188
2189
  });
2190
+
2191
+ // src/components/HeaderBar/HeaderBar.tsx
2192
+ import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
2193
+ var HeaderBar = ({ className, children, onClick, active, ...props }) => {
2194
+ const onClickStyle = onClick ? "cursor-pointer hover:bg-gray00 active:bg-gray01 transition-colors" : "";
2195
+ const a11yProps = onClick ? {
2196
+ role: "button",
2197
+ tabIndex: 0,
2198
+ "aria-expanded": active,
2199
+ onKeyDown: (e) => {
2200
+ if (e.key === "Enter" || e.key === " ") {
2201
+ e.preventDefault();
2202
+ onClick();
2203
+ }
2204
+ }
2205
+ } : {};
2206
+ return /* @__PURE__ */ jsxs24(
2207
+ "header",
2208
+ {
2209
+ className: cn(
2210
+ "header",
2211
+ "h-12 w-full pl-5 pr-4 py-2.5",
2212
+ "bg-white box-border border-b border-gray02",
2213
+ "text-head3-medium text-strong",
2214
+ "flex items-center justify-between",
2215
+ onClickStyle,
2216
+ className
2217
+ ),
2218
+ onClick,
2219
+ ...a11yProps,
2220
+ ...props,
2221
+ children: [
2222
+ children,
2223
+ onClick && /* @__PURE__ */ jsx42(IconChevronDownXS, { className: cn("transition-transform", active && "rotate-180") })
2224
+ ]
2225
+ }
2226
+ );
2227
+ };
2189
2228
  export {
2190
2229
  Accordion,
2191
2230
  BackButton,
@@ -2212,6 +2251,7 @@ export {
2212
2251
  FormTel,
2213
2252
  FormText,
2214
2253
  FormTextArea,
2254
+ HeaderBar,
2215
2255
  IconCheck,
2216
2256
  IconChevronDownXS,
2217
2257
  IconClose,