@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.
- package/dist/reactist.cjs.development.js +12 -6
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/new-components/base-button/base-button.js +6 -2
- package/es/new-components/base-button/base-button.js.map +1 -1
- package/es/new-components/base-button/base-button.module.css.js +1 -1
- package/es/new-components/modal/modal.js +4 -2
- package/es/new-components/modal/modal.js.map +1 -1
- package/es/new-components/modal/modal.module.css.js +1 -1
- package/lib/new-components/base-button/base-button.d.ts +11 -1
- package/lib/new-components/base-button/base-button.js +1 -1
- package/lib/new-components/base-button/base-button.js.map +1 -1
- package/lib/new-components/base-button/base-button.module.css.js +1 -1
- package/lib/new-components/button/button.d.ts +26 -2
- package/lib/new-components/modal/modal.d.ts +1 -1
- package/lib/new-components/modal/modal.js +1 -1
- package/lib/new-components/modal/modal.js.map +1 -1
- package/lib/new-components/modal/modal.module.css.js +1 -1
- package/package.json +3 -3
- package/styles/alert.css +1 -1
- package/styles/base-button.css +1 -1
- package/styles/base-button.module.css.css +1 -1
- package/styles/modal.css +2 -2
- package/styles/modal.module.css.css +1 -1
- package/styles/reactist.css +2 -2
|
@@ -598,9 +598,9 @@ function Spinner(_ref) {
|
|
|
598
598
|
})));
|
|
599
599
|
}
|
|
600
600
|
|
|
601
|
-
var modules_b9569bce = {"label":"
|
|
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
|
-
|
|
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":"
|
|
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:
|
|
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 ?
|
|
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"
|