@doist/reactist 11.3.0 → 11.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.
@@ -598,9 +598,9 @@ function Spinner(_ref) {
598
598
  })));
599
599
  }
600
600
 
601
- var modules_b9569bce = {"label":"_1f20c88a","baseButton":"_623015f3","size-small":"_062de645","size-normal":"_55e2a6a9","size-large":"cab32a7c","disabled":"e71c191a","iconButton":"_368efc16","startIcon":"d35389c1","endIcon":"_900d41d8","variant-primary":"_7c95e162","variant-secondary":"_9cb889aa","variant-tertiary":"_611b5b28","variant-quaternary":"_80c2bb84","tone-destructive":"ee13c455"};
601
+ var modules_b9569bce = {"baseButton":"_7a2031d6","label":"_09c23660","align-start":"dd82f17a","align-center":"_8a9315ae","align-end":"_6acb4219","size-small":"_1e48abcb","size-normal":"_949f7858","size-large":"_34ac3da9","disabled":"_7e5800ce","iconButton":"_1bdc5d38","startIcon":"_270d7bdf","endIcon":"_471c6e23","variant-primary":"a878a9a4","variant-secondary":"_81c213d2","variant-tertiary":"_12f96f70","variant-quaternary":"_8c546508","tone-destructive":"_441a7e3a"};
602
602
 
603
- var _excluded$7 = ["as", "variant", "tone", "size", "disabled", "loading", "tooltip", "tooltipGapSize", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon"];
603
+ var _excluded$7 = ["as", "variant", "tone", "size", "disabled", "loading", "tooltip", "tooltipGapSize", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon", "width", "align"];
604
604
 
605
605
  function preventDefault(event) {
606
606
  event.preventDefault();
@@ -634,6 +634,9 @@ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref
634
634
  startIcon = _ref.startIcon,
635
635
  endIcon = _ref.endIcon,
636
636
  icon = _ref.icon,
637
+ _ref$width = _ref.width,
638
+ width = _ref$width === void 0 ? 'auto' : _ref$width,
639
+ align = _ref.align,
637
640
  props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
638
641
 
639
642
  var isDisabled = loading || disabled;
@@ -642,7 +645,8 @@ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref
642
645
  ref: ref,
643
646
  "aria-disabled": isDisabled,
644
647
  onClick: isDisabled ? preventDefault : onClick,
645
- className: [exceptionallySetClassName, modules_b9569bce.baseButton, modules_b9569bce["variant-" + variant], modules_b9569bce["tone-" + tone], modules_b9569bce["size-" + size], icon ? modules_b9569bce.iconButton : null, disabled ? modules_b9569bce.disabled : null]
648
+ width: icon ? undefined : width,
649
+ className: [exceptionallySetClassName, modules_b9569bce.baseButton, modules_b9569bce["variant-" + variant], modules_b9569bce["tone-" + tone], modules_b9569bce["size-" + size], width !== 'auto' && icon == null && align != null ? modules_b9569bce["align-" + align] : null, icon ? modules_b9569bce.iconButton : null, disabled ? modules_b9569bce.disabled : null]
646
650
  }), icon ? loading && /*#__PURE__*/React.createElement(Spinner, null) || icon : /*#__PURE__*/React.createElement(React.Fragment, null, startIcon ? /*#__PURE__*/React.createElement(Box, {
647
651
  display: "flex",
648
652
  className: modules_b9569bce.startIcon,
@@ -1661,7 +1665,7 @@ function TabAwareSlot(_ref5) {
1661
1665
  }) : null;
1662
1666
  }
1663
1667
 
1664
- var modules_8f59d13b = {"reach-portal":"dddb40c3","fadein":"_955f2d73","fitContent":"_95c7550e","container":"_88079712","full":"_4779d078","large":"_5fd86231","medium":"bdfb5931","small":"_4e848a11","xlarge":"d673fba2","overlay":"ea9ae0cc","expand":"a8bf8a4f","buttonContainer":"_44d6850e"};
1668
+ var modules_8f59d13b = {"reach-portal":"_37bef8d8","fadein":"_77f9687f","fitContent":"bcc4e0a5","container":"d4832c2d","full":"b0c3b021","large":"_573d6aa5","medium":"_8550d996","small":"_43bb18f5","xlarge":"_57b4159d","overlay":"cb63f300","expand":"e741893e","buttonContainer":"bb1ce281","headerContent":"c5ef989c"};
1665
1669
 
1666
1670
  var _excluded$n = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "autoFocus", "children"],
1667
1671
  _excluded2$2 = ["children", "button", "withDivider", "exceptionallySetClassName"],
@@ -1784,7 +1788,7 @@ function ModalHeader(_ref2) {
1784
1788
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
1785
1789
  as: "header",
1786
1790
  paddingLeft: "large",
1787
- paddingRight: "small",
1791
+ paddingRight: button === false || button === null ? 'large' : 'small',
1788
1792
  paddingY: "small",
1789
1793
  className: exceptionallySetClassName
1790
1794
  }), /*#__PURE__*/React.createElement(Columns, {
@@ -1792,7 +1796,9 @@ function ModalHeader(_ref2) {
1792
1796
  alignY: "center"
1793
1797
  }, /*#__PURE__*/React.createElement(Column, {
1794
1798
  width: "auto"
1795
- }, children), button === false || button === null ? null : /*#__PURE__*/React.createElement(Column, {
1799
+ }, children), button === false || button === null ? /*#__PURE__*/React.createElement("div", {
1800
+ className: modules_8f59d13b.headerContent
1801
+ }) : /*#__PURE__*/React.createElement(Column, {
1796
1802
  width: "content",
1797
1803
  exceptionallySetClassName: modules_8f59d13b.buttonContainer,
1798
1804
  "data-testid": "button-container"