@zenkigen-inc/component-ui 1.6.0 → 1.6.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.js
CHANGED
|
@@ -31497,26 +31497,25 @@ function ModalFooter({
|
|
|
31497
31497
|
|
|
31498
31498
|
function ModalHeader({
|
|
31499
31499
|
children,
|
|
31500
|
-
isNoBorder
|
|
31501
|
-
isNoCloseButton
|
|
31500
|
+
isNoBorder
|
|
31502
31501
|
}) {
|
|
31503
31502
|
const {
|
|
31504
31503
|
onClose
|
|
31505
31504
|
} = useContext(ModalContext);
|
|
31506
31505
|
const headerClasses = clsx$1('typography-h5 flex w-full shrink-0 items-center justify-between rounded-t-lg px-6 text-text-text01', {
|
|
31507
31506
|
'border-b-[1px] border-border-uiBorder01': !isNoBorder,
|
|
31508
|
-
'h-14': !
|
|
31509
|
-
'h-12':
|
|
31507
|
+
'h-14': !onClose,
|
|
31508
|
+
'h-12': onClose
|
|
31510
31509
|
});
|
|
31511
31510
|
return /*#__PURE__*/jsxs("div", {
|
|
31512
31511
|
className: headerClasses,
|
|
31513
31512
|
children: [/*#__PURE__*/jsx("div", {
|
|
31514
31513
|
children: children
|
|
31515
|
-
}),
|
|
31514
|
+
}), onClose && /*#__PURE__*/jsx(IconButton, {
|
|
31516
31515
|
icon: "close",
|
|
31517
31516
|
size: "small",
|
|
31518
31517
|
variant: "text",
|
|
31519
|
-
onClick:
|
|
31518
|
+
onClick: onClose
|
|
31520
31519
|
})]
|
|
31521
31520
|
});
|
|
31522
31521
|
}
|