@coinswap-app/uikit 1.0.11 → 1.0.13
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.cjs.js +13 -5
- package/dist/index.esm.js +13 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -521,7 +521,8 @@ var StyledButton$2 = styledComponents.styled.button.withConfig({
|
|
|
521
521
|
return theme.colors.secondary;
|
|
522
522
|
}, getButtonVariantProp$3("backgroundActive"), getButtonVariantProp$3("boxShadowActive"), getDisabledStyles$3, removePointerEvents$3, styledSystem.space);
|
|
523
523
|
|
|
524
|
-
var _excluded$12 = ["startIcon", "style", "endIcon", "children", "external", "$isLoading", "disabled", "$white", "$fullWidth", "fullWidth", "isLoading", "white"]
|
|
524
|
+
var _excluded$12 = ["startIcon", "style", "endIcon", "children", "external", "$isLoading", "disabled", "$white", "$fullWidth", "fullWidth", "isLoading", "white"],
|
|
525
|
+
_excluded2$2 = ["isActive"];
|
|
525
526
|
var Button$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
526
527
|
var startIcon = _ref.startIcon,
|
|
527
528
|
style = _ref.style,
|
|
@@ -543,9 +544,12 @@ var Button$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
543
544
|
var $white = $whiteProp || whiteProp;
|
|
544
545
|
var $fullWidth = $fullWidthProp || fullWidthProp;
|
|
545
546
|
var isDisabled = $isLoading || disabled;
|
|
547
|
+
// Remove isActive from props to prevent it from being passed to DOM
|
|
548
|
+
props.isActive;
|
|
549
|
+
var restProps = _objectWithoutProperties(props, _excluded2$2);
|
|
546
550
|
return /*#__PURE__*/jsxRuntime.jsxs(StyledButton$2, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
547
551
|
ref: ref
|
|
548
|
-
}, internalProps),
|
|
552
|
+
}, internalProps), restProps), {}, {
|
|
549
553
|
$isLoading: $isLoading,
|
|
550
554
|
disabled: isDisabled,
|
|
551
555
|
style: style,
|
|
@@ -9630,9 +9634,13 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9630
9634
|
tag = _ref.tag,
|
|
9631
9635
|
hide = _ref.hide,
|
|
9632
9636
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
9633
|
-
// Remove isActive from props to prevent it from being passed to DOM
|
|
9634
|
-
props
|
|
9635
|
-
|
|
9637
|
+
// Remove isActive from all props to prevent it from being passed to DOM
|
|
9638
|
+
// isActive might be in props if passed via cloneElement
|
|
9639
|
+
var _isActive$props = _objectSpread2({
|
|
9640
|
+
isActive: isActive
|
|
9641
|
+
}, props);
|
|
9642
|
+
_isActive$props.isActive;
|
|
9643
|
+
var buttonProps = _objectWithoutProperties(_isActive$props, _excluded2$1);
|
|
9636
9644
|
if (!isActive) {
|
|
9637
9645
|
return /*#__PURE__*/jsxRuntime.jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
|
|
9638
9646
|
forwardedAs: as,
|
package/dist/index.esm.js
CHANGED
|
@@ -499,7 +499,8 @@ var StyledButton$2 = styled.button.withConfig({
|
|
|
499
499
|
return theme.colors.secondary;
|
|
500
500
|
}, getButtonVariantProp$3("backgroundActive"), getButtonVariantProp$3("boxShadowActive"), getDisabledStyles$3, removePointerEvents$3, space);
|
|
501
501
|
|
|
502
|
-
var _excluded$12 = ["startIcon", "style", "endIcon", "children", "external", "$isLoading", "disabled", "$white", "$fullWidth", "fullWidth", "isLoading", "white"]
|
|
502
|
+
var _excluded$12 = ["startIcon", "style", "endIcon", "children", "external", "$isLoading", "disabled", "$white", "$fullWidth", "fullWidth", "isLoading", "white"],
|
|
503
|
+
_excluded2$2 = ["isActive"];
|
|
503
504
|
var Button$1 = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
504
505
|
var startIcon = _ref.startIcon,
|
|
505
506
|
style = _ref.style,
|
|
@@ -521,9 +522,12 @@ var Button$1 = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
521
522
|
var $white = $whiteProp || whiteProp;
|
|
522
523
|
var $fullWidth = $fullWidthProp || fullWidthProp;
|
|
523
524
|
var isDisabled = $isLoading || disabled;
|
|
525
|
+
// Remove isActive from props to prevent it from being passed to DOM
|
|
526
|
+
props.isActive;
|
|
527
|
+
var restProps = _objectWithoutProperties(props, _excluded2$2);
|
|
524
528
|
return /*#__PURE__*/jsxs(StyledButton$2, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
525
529
|
ref: ref
|
|
526
|
-
}, internalProps),
|
|
530
|
+
}, internalProps), restProps), {}, {
|
|
527
531
|
$isLoading: $isLoading,
|
|
528
532
|
disabled: isDisabled,
|
|
529
533
|
style: style,
|
|
@@ -9608,9 +9612,13 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9608
9612
|
tag = _ref.tag,
|
|
9609
9613
|
hide = _ref.hide,
|
|
9610
9614
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
9611
|
-
// Remove isActive from props to prevent it from being passed to DOM
|
|
9612
|
-
props
|
|
9613
|
-
|
|
9615
|
+
// Remove isActive from all props to prevent it from being passed to DOM
|
|
9616
|
+
// isActive might be in props if passed via cloneElement
|
|
9617
|
+
var _isActive$props = _objectSpread2({
|
|
9618
|
+
isActive: isActive
|
|
9619
|
+
}, props);
|
|
9620
|
+
_isActive$props.isActive;
|
|
9621
|
+
var buttonProps = _objectWithoutProperties(_isActive$props, _excluded2$1);
|
|
9614
9622
|
if (!isActive) {
|
|
9615
9623
|
return /*#__PURE__*/jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
|
|
9616
9624
|
forwardedAs: as,
|