@coinswap-app/uikit 1.0.10 → 1.0.12
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 +8 -7
- package/dist/index.esm.js +8 -7
- 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,
|
|
@@ -9631,11 +9635,8 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9631
9635
|
hide = _ref.hide,
|
|
9632
9636
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
9633
9637
|
// Remove isActive from props to prevent it from being passed to DOM
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
}, props);
|
|
9637
|
-
_isActive$props.isActive;
|
|
9638
|
-
var buttonProps = _objectWithoutProperties(_isActive$props, _excluded2$1);
|
|
9638
|
+
props.isActive;
|
|
9639
|
+
var buttonProps = _objectWithoutProperties(props, _excluded2$1);
|
|
9639
9640
|
if (!isActive) {
|
|
9640
9641
|
return /*#__PURE__*/jsxRuntime.jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
|
|
9641
9642
|
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,
|
|
@@ -9609,11 +9613,8 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9609
9613
|
hide = _ref.hide,
|
|
9610
9614
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
9611
9615
|
// Remove isActive from props to prevent it from being passed to DOM
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
}, props);
|
|
9615
|
-
_isActive$props.isActive;
|
|
9616
|
-
var buttonProps = _objectWithoutProperties(_isActive$props, _excluded2$1);
|
|
9616
|
+
props.isActive;
|
|
9617
|
+
var buttonProps = _objectWithoutProperties(props, _excluded2$1);
|
|
9617
9618
|
if (!isActive) {
|
|
9618
9619
|
return /*#__PURE__*/jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
|
|
9619
9620
|
forwardedAs: as,
|