@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.esm.js CHANGED
@@ -31505,26 +31505,23 @@ function ModalFooter(_ref) {
31505
31505
 
31506
31506
  function ModalHeader(_ref) {
31507
31507
  var children = _ref.children,
31508
- isNoBorder = _ref.isNoBorder,
31509
- isNoCloseButton = _ref.isNoCloseButton;
31508
+ isNoBorder = _ref.isNoBorder;
31510
31509
  var _useContext = useContext(ModalContext),
31511
31510
  onClose = _useContext.onClose;
31512
31511
  var headerClasses = clsx$1('typography-h5 flex w-full shrink-0 items-center justify-between rounded-t-lg px-6 text-text-text01', {
31513
31512
  'border-b-[1px] border-border-uiBorder01': !isNoBorder,
31514
- 'h-14': !isNoCloseButton,
31515
- 'h-12': isNoCloseButton
31513
+ 'h-14': !onClose,
31514
+ 'h-12': onClose
31516
31515
  });
31517
31516
  return /*#__PURE__*/jsxs("div", {
31518
31517
  className: headerClasses,
31519
31518
  children: [/*#__PURE__*/jsx("div", {
31520
31519
  children: children
31521
- }), !isNoCloseButton && /*#__PURE__*/jsx(IconButton, {
31520
+ }), onClose && /*#__PURE__*/jsx(IconButton, {
31522
31521
  icon: "close",
31523
31522
  size: "small",
31524
31523
  variant: "text",
31525
- onClick: function onClick() {
31526
- return onClose();
31527
- }
31524
+ onClick: onClose
31528
31525
  })]
31529
31526
  });
31530
31527
  }