@hivcd-printshop/design-system 1.5.0 → 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.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2187,6 +2187,44 @@ var Toast = forwardRef7(function Toast2({ message, open, duration = 3e3, onClose
|
|
|
2187
2187
|
}
|
|
2188
2188
|
);
|
|
2189
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
|
+
};
|
|
2190
2228
|
export {
|
|
2191
2229
|
Accordion,
|
|
2192
2230
|
BackButton,
|
|
@@ -2213,6 +2251,7 @@ export {
|
|
|
2213
2251
|
FormTel,
|
|
2214
2252
|
FormText,
|
|
2215
2253
|
FormTextArea,
|
|
2254
|
+
HeaderBar,
|
|
2216
2255
|
IconCheck,
|
|
2217
2256
|
IconChevronDownXS,
|
|
2218
2257
|
IconClose,
|