@hivcd-printshop/design-system 1.5.0 → 1.5.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.
package/dist/index.mjs CHANGED
@@ -2164,11 +2164,10 @@ 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-gray08",
2168
- "mt-7 mx-8",
2167
+ "w-full h-fit py-2.5 px-4 bg-gray08",
2169
2168
  "text-white text-center text-body1-regular",
2170
2169
  "shadow-[0_2px_15px_rgba(0,0,0,0.18)]",
2171
- controlled && "transition-opacity duration-300",
2170
+ controlled && "transition-opacity",
2172
2171
  controlled && (visible ? "opacity-100" : "opacity-0"),
2173
2172
  className
2174
2173
  ),
@@ -2180,13 +2179,51 @@ var Toast = forwardRef7(function Toast2({ message, open, duration = 3e3, onClose
2180
2179
  "div",
2181
2180
  {
2182
2181
  className: cn(
2183
- "fixed inset-x-0 z-5000 pointer-events-none",
2182
+ "fixed inset-x-0 z-5000 pointer-events-none h-full my-7 mx-8",
2184
2183
  position === "top" ? "top-0" : "bottom-0"
2185
2184
  ),
2186
2185
  children: banner
2187
2186
  }
2188
2187
  );
2189
2188
  });
2189
+
2190
+ // src/components/HeaderBar/HeaderBar.tsx
2191
+ import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
2192
+ var HeaderBar = ({ className, children, onClick, active, ...props }) => {
2193
+ const onClickStyle = onClick ? "cursor-pointer hover:bg-gray00 active:bg-gray01 transition-colors" : "";
2194
+ const a11yProps = onClick ? {
2195
+ role: "button",
2196
+ tabIndex: 0,
2197
+ "aria-expanded": active,
2198
+ onKeyDown: (e) => {
2199
+ if (e.key === "Enter" || e.key === " ") {
2200
+ e.preventDefault();
2201
+ onClick();
2202
+ }
2203
+ }
2204
+ } : {};
2205
+ return /* @__PURE__ */ jsxs24(
2206
+ "header",
2207
+ {
2208
+ className: cn(
2209
+ "header",
2210
+ "h-12 w-full pl-5 pr-4 py-2.5",
2211
+ "bg-white box-border border-b border-gray02",
2212
+ "text-head3-medium text-strong",
2213
+ "flex items-center justify-between",
2214
+ onClickStyle,
2215
+ className
2216
+ ),
2217
+ onClick,
2218
+ ...a11yProps,
2219
+ ...props,
2220
+ children: [
2221
+ children,
2222
+ onClick && /* @__PURE__ */ jsx42(IconChevronDownXS, { className: cn("transition-transform", active && "rotate-180") })
2223
+ ]
2224
+ }
2225
+ );
2226
+ };
2190
2227
  export {
2191
2228
  Accordion,
2192
2229
  BackButton,
@@ -2213,6 +2250,7 @@ export {
2213
2250
  FormTel,
2214
2251
  FormText,
2215
2252
  FormTextArea,
2253
+ HeaderBar,
2216
2254
  IconCheck,
2217
2255
  IconChevronDownXS,
2218
2256
  IconClose,