@doist/reactist 11.3.0 → 11.4.0
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 +7 -3
- 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.map +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.map +1 -1
- package/package.json +1 -1
- 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 +1 -1
- package/styles/reactist.css +1 -1
|
@@ -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,
|