@coinswap-app/uikit 1.0.7 → 1.0.9
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 +28 -16
- package/dist/index.esm.js +28 -16
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -497,7 +497,7 @@ var getButtonVariantProp$3 = function getButtonVariantProp(prop) {
|
|
|
497
497
|
};
|
|
498
498
|
var StyledButton$2 = styledComponents.styled.button.withConfig({
|
|
499
499
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
500
|
-
return !['$fullWidth', '$isLoading', '$white'].includes(prop);
|
|
500
|
+
return !['$fullWidth', '$isLoading', '$white', 'variant'].includes(prop);
|
|
501
501
|
}
|
|
502
502
|
})(_templateObject$29 || (_templateObject$29 = _taggedTemplateLiteral(["\n align-items: center;\n background-color: ", ";\n border: ", ";\n border-radius: 10px;\n color: ", ";\n cursor: pointer;\n display: inline-flex;\n font-family: inherit;\n font-size: 16px;\n font-weight: 600;\n /* max-content instead of auto for Safari fix */\n width: ", ";\n height: ", ";\n line-height: 1;\n letter-spacing: 0.03em;\n justify-content: center;\n outline: 0;\n padding: ", ";\n transition: background-color 0.2s;\n opacity: ", ";\n\n &:hover:not(:disabled):not(.button--disabled):not(:active) {\n background-color: ", ";\n border-color: ", ";\n }\n\n &:focus:not(:active) {\n box-shadow: 0 0 0 1px ", ";\n }\n\n &:active {\n background-color: ", ";\n box-shadow: ", ";\n }\n\n ", "\n ", "\n ", "\n"])), getButtonVariantProp$3("background"), getButtonVariantProp$3("border"), function (_ref4) {
|
|
503
503
|
var $white = _ref4.$white;
|
|
@@ -522,7 +522,7 @@ var StyledButton$2 = styledComponents.styled.button.withConfig({
|
|
|
522
522
|
}, getButtonVariantProp$3("backgroundActive"), getButtonVariantProp$3("boxShadowActive"), getDisabledStyles$3, removePointerEvents$3, styledSystem.space);
|
|
523
523
|
|
|
524
524
|
var _excluded$12 = ["startIcon", "style", "endIcon", "children", "external", "$isLoading", "disabled", "$white", "$fullWidth", "fullWidth", "isLoading", "white"];
|
|
525
|
-
var Button$1 = /*#__PURE__*/React.forwardRef(function (_ref) {
|
|
525
|
+
var Button$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
526
526
|
var startIcon = _ref.startIcon,
|
|
527
527
|
style = _ref.style,
|
|
528
528
|
endIcon = _ref.endIcon,
|
|
@@ -543,7 +543,9 @@ var Button$1 = /*#__PURE__*/React.forwardRef(function (_ref) {
|
|
|
543
543
|
var $white = $whiteProp || whiteProp;
|
|
544
544
|
var $fullWidth = $fullWidthProp || fullWidthProp;
|
|
545
545
|
var isDisabled = $isLoading || disabled;
|
|
546
|
-
return /*#__PURE__*/jsxRuntime.jsxs(StyledButton$2, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
546
|
+
return /*#__PURE__*/jsxRuntime.jsxs(StyledButton$2, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
547
|
+
ref: ref
|
|
548
|
+
}, internalProps), props), {}, {
|
|
547
549
|
$isLoading: $isLoading,
|
|
548
550
|
disabled: isDisabled,
|
|
549
551
|
style: style,
|
|
@@ -8434,7 +8436,7 @@ var Heading = styledComponents.styled(Text).attrs(function (_ref) {
|
|
|
8434
8436
|
var _ref$as = _ref.as,
|
|
8435
8437
|
as = _ref$as === void 0 ? tags.H2 : _ref$as;
|
|
8436
8438
|
return {
|
|
8437
|
-
bold: true,
|
|
8439
|
+
$bold: true,
|
|
8438
8440
|
as: as
|
|
8439
8441
|
};
|
|
8440
8442
|
})(_templateObject$1$ || (_templateObject$1$ = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: 600;\n line-height: 1.1;\n\n ", " {\n font-size: ", ";\n }\n"])), function (_ref2) {
|
|
@@ -8933,7 +8935,7 @@ var Link = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
8933
8935
|
return /*#__PURE__*/jsxRuntime.jsx(StyledLink$1, _objectSpread2(_objectSpread2({
|
|
8934
8936
|
ref: ref,
|
|
8935
8937
|
as: "a",
|
|
8936
|
-
bold: true,
|
|
8938
|
+
$bold: true,
|
|
8937
8939
|
color: color
|
|
8938
8940
|
}, internalProps), props));
|
|
8939
8941
|
});
|
|
@@ -9458,7 +9460,11 @@ var Breadcrumbs = function Breadcrumbs(_ref4) {
|
|
|
9458
9460
|
};
|
|
9459
9461
|
|
|
9460
9462
|
var _templateObject$1S;
|
|
9461
|
-
var StyledButtonMenu = styledComponents.styled.div(
|
|
9463
|
+
var StyledButtonMenu = styledComponents.styled.div.withConfig({
|
|
9464
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
9465
|
+
return prop !== 'variant';
|
|
9466
|
+
}
|
|
9467
|
+
})(_templateObject$1S || (_templateObject$1S = _taggedTemplateLiteral(["\n background-color: transparent;\n border-radius: 16px;\n display: inline-flex;\n @media (max-width: 500px) {\n width: 100%;\n justify-content: space-around;\n }\n"])));
|
|
9462
9468
|
|
|
9463
9469
|
var ButtonMenu = function ButtonMenu(_ref) {
|
|
9464
9470
|
var _ref$activeIndex = _ref.activeIndex,
|
|
@@ -9515,7 +9521,11 @@ var getButtonVariantProp$2 = function getButtonVariantProp(prop) {
|
|
|
9515
9521
|
return theme.button[variant][prop];
|
|
9516
9522
|
};
|
|
9517
9523
|
};
|
|
9518
|
-
var StyledButton$1 = styledComponents.styled.button
|
|
9524
|
+
var StyledButton$1 = styledComponents.styled.button.withConfig({
|
|
9525
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
9526
|
+
return !['variant', 'isLoading', 'fullWidth', 'lined', 'active', 'isActive'].includes(prop);
|
|
9527
|
+
}
|
|
9528
|
+
})(_templateObject$1R || (_templateObject$1R = _taggedTemplateLiteral(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 10px;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n font-family: inherit;\n font-size: 16px;\n font-weight: 700;\n color: white;\n /* max-content instead of auto for Safari fix */\n width: ", ";\n height: ", ";\n line-height: 1;\n letter-spacing: 0.03em;\n justify-content: center;\n outline: 0;\n padding: ", ";\n transition: all 0.5s;\n\n .dot {\n margin-top: 10px;\n height: ", ";\n width: ", ";\n border-radius: ", ";\n display: inline-block;\n background-color: ", ";\n }\n\n &:hover:not(:disabled):not(.button--disabled):not(:active) {\n border-color: ", ";\n color: ", ";\n }\n\n &:active {\n background-color: transparent;\n color: ", ";\n }\n\n ", "\n ", "\n ", "\n"])), function (_ref4) {
|
|
9519
9529
|
var fullWidth = _ref4.fullWidth;
|
|
9520
9530
|
return fullWidth ? "100%" : "max-content";
|
|
9521
9531
|
}, function (_ref5) {
|
|
@@ -9555,16 +9565,14 @@ var Button = function Button(_ref) {
|
|
|
9555
9565
|
_ref$isLoading = _ref.isLoading,
|
|
9556
9566
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
9557
9567
|
_ref$disabled = _ref.disabled,
|
|
9558
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled
|
|
9559
|
-
|
|
9560
|
-
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
9568
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
9569
|
+
_ref.lined;
|
|
9570
|
+
var props = _objectWithoutProperties(_ref, _excluded$m);
|
|
9561
9571
|
var internalProps = external ? getExternalLinkProps() : {};
|
|
9562
9572
|
var isDisabled = isLoading || disabled;
|
|
9563
9573
|
return /*#__PURE__*/jsxRuntime.jsxs(StyledButton$1, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
|
|
9564
|
-
isLoading: isLoading,
|
|
9565
9574
|
disabled: isDisabled,
|
|
9566
9575
|
style: style,
|
|
9567
|
-
lined: lined,
|
|
9568
9576
|
children: [/*#__PURE__*/React.isValidElement(startIcon) && /*#__PURE__*/React.cloneElement(startIcon, {
|
|
9569
9577
|
mr: "0.5rem"
|
|
9570
9578
|
}), children, /*#__PURE__*/React.isValidElement(endIcon) && /*#__PURE__*/React.cloneElement(endIcon, {
|
|
@@ -9600,13 +9608,14 @@ var StyledTag = styledComponents.styled.div(_templateObject$1Q || (_templateObje
|
|
|
9600
9608
|
return getColor(variant, theme);
|
|
9601
9609
|
}, getThemeTextColor, getThemeTextColor);
|
|
9602
9610
|
|
|
9603
|
-
var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide"]
|
|
9611
|
+
var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide"],
|
|
9612
|
+
_excluded2$1 = ["isActive"];
|
|
9604
9613
|
var _templateObject$1P, _templateObject2$Z, _templateObject3$L;
|
|
9605
9614
|
var ButtonBody = styledComponents.styled.div(_templateObject$1P || (_templateObject$1P = _taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n"])));
|
|
9606
9615
|
var ButtonTag = styledComponents.styled(StyledTag)(_templateObject2$Z || (_templateObject2$Z = _taggedTemplateLiteral(["\n margin-left: 7px;\n font-weight: bold;\n font-size: 11px;\n padding: 1px 5px;\n height: unset;\n border-width: 1px;\n"])));
|
|
9607
9616
|
var InactiveButton$1 = styledComponents.styled(Button).withConfig({
|
|
9608
9617
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
9609
|
-
return prop !== 'colorKey';
|
|
9618
|
+
return prop !== 'colorKey' && prop !== 'isActive';
|
|
9610
9619
|
}
|
|
9611
9620
|
})(_templateObject3$L || (_templateObject3$L = _taggedTemplateLiteral(["\n background-color: transparent;\n color: #535459;\n .dot {\n background-color: transparent;\n }\n\n &:hover:not(:disabled):not(:active) {\n background-color: transparent;\n }\n"])));
|
|
9612
9621
|
var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
@@ -9621,13 +9630,16 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9621
9630
|
tag = _ref.tag,
|
|
9622
9631
|
hide = _ref.hide,
|
|
9623
9632
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
9633
|
+
// Remove isActive from props to prevent it from being passed to DOM
|
|
9634
|
+
props.isActive;
|
|
9635
|
+
var buttonProps = _objectWithoutProperties(props, _excluded2$1);
|
|
9624
9636
|
if (!isActive) {
|
|
9625
9637
|
return /*#__PURE__*/jsxRuntime.jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
|
|
9626
9638
|
forwardedAs: as,
|
|
9627
9639
|
size: size,
|
|
9628
9640
|
variant: "tertiary",
|
|
9629
9641
|
colorKey: variant === variants$2.PRIMARY ? "primary" : "textSubtle"
|
|
9630
|
-
},
|
|
9642
|
+
}, buttonProps), {}, {
|
|
9631
9643
|
style: {
|
|
9632
9644
|
display: hide ? "none" : "flex"
|
|
9633
9645
|
},
|
|
@@ -9643,7 +9655,7 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9643
9655
|
as: as,
|
|
9644
9656
|
size: size,
|
|
9645
9657
|
variant: variant
|
|
9646
|
-
},
|
|
9658
|
+
}, buttonProps), {}, {
|
|
9647
9659
|
style: {
|
|
9648
9660
|
display: hide ? "none" : "flex"
|
|
9649
9661
|
},
|
package/dist/index.esm.js
CHANGED
|
@@ -475,7 +475,7 @@ var getButtonVariantProp$3 = function getButtonVariantProp(prop) {
|
|
|
475
475
|
};
|
|
476
476
|
var StyledButton$2 = styled.button.withConfig({
|
|
477
477
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
478
|
-
return !['$fullWidth', '$isLoading', '$white'].includes(prop);
|
|
478
|
+
return !['$fullWidth', '$isLoading', '$white', 'variant'].includes(prop);
|
|
479
479
|
}
|
|
480
480
|
})(_templateObject$29 || (_templateObject$29 = _taggedTemplateLiteral(["\n align-items: center;\n background-color: ", ";\n border: ", ";\n border-radius: 10px;\n color: ", ";\n cursor: pointer;\n display: inline-flex;\n font-family: inherit;\n font-size: 16px;\n font-weight: 600;\n /* max-content instead of auto for Safari fix */\n width: ", ";\n height: ", ";\n line-height: 1;\n letter-spacing: 0.03em;\n justify-content: center;\n outline: 0;\n padding: ", ";\n transition: background-color 0.2s;\n opacity: ", ";\n\n &:hover:not(:disabled):not(.button--disabled):not(:active) {\n background-color: ", ";\n border-color: ", ";\n }\n\n &:focus:not(:active) {\n box-shadow: 0 0 0 1px ", ";\n }\n\n &:active {\n background-color: ", ";\n box-shadow: ", ";\n }\n\n ", "\n ", "\n ", "\n"])), getButtonVariantProp$3("background"), getButtonVariantProp$3("border"), function (_ref4) {
|
|
481
481
|
var $white = _ref4.$white;
|
|
@@ -500,7 +500,7 @@ var StyledButton$2 = styled.button.withConfig({
|
|
|
500
500
|
}, getButtonVariantProp$3("backgroundActive"), getButtonVariantProp$3("boxShadowActive"), getDisabledStyles$3, removePointerEvents$3, space);
|
|
501
501
|
|
|
502
502
|
var _excluded$12 = ["startIcon", "style", "endIcon", "children", "external", "$isLoading", "disabled", "$white", "$fullWidth", "fullWidth", "isLoading", "white"];
|
|
503
|
-
var Button$1 = /*#__PURE__*/React__default.forwardRef(function (_ref) {
|
|
503
|
+
var Button$1 = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
504
504
|
var startIcon = _ref.startIcon,
|
|
505
505
|
style = _ref.style,
|
|
506
506
|
endIcon = _ref.endIcon,
|
|
@@ -521,7 +521,9 @@ var Button$1 = /*#__PURE__*/React__default.forwardRef(function (_ref) {
|
|
|
521
521
|
var $white = $whiteProp || whiteProp;
|
|
522
522
|
var $fullWidth = $fullWidthProp || fullWidthProp;
|
|
523
523
|
var isDisabled = $isLoading || disabled;
|
|
524
|
-
return /*#__PURE__*/jsxs(StyledButton$2, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
524
|
+
return /*#__PURE__*/jsxs(StyledButton$2, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
525
|
+
ref: ref
|
|
526
|
+
}, internalProps), props), {}, {
|
|
525
527
|
$isLoading: $isLoading,
|
|
526
528
|
disabled: isDisabled,
|
|
527
529
|
style: style,
|
|
@@ -8412,7 +8414,7 @@ var Heading = styled(Text).attrs(function (_ref) {
|
|
|
8412
8414
|
var _ref$as = _ref.as,
|
|
8413
8415
|
as = _ref$as === void 0 ? tags.H2 : _ref$as;
|
|
8414
8416
|
return {
|
|
8415
|
-
bold: true,
|
|
8417
|
+
$bold: true,
|
|
8416
8418
|
as: as
|
|
8417
8419
|
};
|
|
8418
8420
|
})(_templateObject$1$ || (_templateObject$1$ = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: 600;\n line-height: 1.1;\n\n ", " {\n font-size: ", ";\n }\n"])), function (_ref2) {
|
|
@@ -8911,7 +8913,7 @@ var Link = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
8911
8913
|
return /*#__PURE__*/jsx(StyledLink$1, _objectSpread2(_objectSpread2({
|
|
8912
8914
|
ref: ref,
|
|
8913
8915
|
as: "a",
|
|
8914
|
-
bold: true,
|
|
8916
|
+
$bold: true,
|
|
8915
8917
|
color: color
|
|
8916
8918
|
}, internalProps), props));
|
|
8917
8919
|
});
|
|
@@ -9436,7 +9438,11 @@ var Breadcrumbs = function Breadcrumbs(_ref4) {
|
|
|
9436
9438
|
};
|
|
9437
9439
|
|
|
9438
9440
|
var _templateObject$1S;
|
|
9439
|
-
var StyledButtonMenu = styled.div(
|
|
9441
|
+
var StyledButtonMenu = styled.div.withConfig({
|
|
9442
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
9443
|
+
return prop !== 'variant';
|
|
9444
|
+
}
|
|
9445
|
+
})(_templateObject$1S || (_templateObject$1S = _taggedTemplateLiteral(["\n background-color: transparent;\n border-radius: 16px;\n display: inline-flex;\n @media (max-width: 500px) {\n width: 100%;\n justify-content: space-around;\n }\n"])));
|
|
9440
9446
|
|
|
9441
9447
|
var ButtonMenu = function ButtonMenu(_ref) {
|
|
9442
9448
|
var _ref$activeIndex = _ref.activeIndex,
|
|
@@ -9493,7 +9499,11 @@ var getButtonVariantProp$2 = function getButtonVariantProp(prop) {
|
|
|
9493
9499
|
return theme.button[variant][prop];
|
|
9494
9500
|
};
|
|
9495
9501
|
};
|
|
9496
|
-
var StyledButton$1 = styled.button
|
|
9502
|
+
var StyledButton$1 = styled.button.withConfig({
|
|
9503
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
9504
|
+
return !['variant', 'isLoading', 'fullWidth', 'lined', 'active', 'isActive'].includes(prop);
|
|
9505
|
+
}
|
|
9506
|
+
})(_templateObject$1R || (_templateObject$1R = _taggedTemplateLiteral(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 10px;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n font-family: inherit;\n font-size: 16px;\n font-weight: 700;\n color: white;\n /* max-content instead of auto for Safari fix */\n width: ", ";\n height: ", ";\n line-height: 1;\n letter-spacing: 0.03em;\n justify-content: center;\n outline: 0;\n padding: ", ";\n transition: all 0.5s;\n\n .dot {\n margin-top: 10px;\n height: ", ";\n width: ", ";\n border-radius: ", ";\n display: inline-block;\n background-color: ", ";\n }\n\n &:hover:not(:disabled):not(.button--disabled):not(:active) {\n border-color: ", ";\n color: ", ";\n }\n\n &:active {\n background-color: transparent;\n color: ", ";\n }\n\n ", "\n ", "\n ", "\n"])), function (_ref4) {
|
|
9497
9507
|
var fullWidth = _ref4.fullWidth;
|
|
9498
9508
|
return fullWidth ? "100%" : "max-content";
|
|
9499
9509
|
}, function (_ref5) {
|
|
@@ -9533,16 +9543,14 @@ var Button = function Button(_ref) {
|
|
|
9533
9543
|
_ref$isLoading = _ref.isLoading,
|
|
9534
9544
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
9535
9545
|
_ref$disabled = _ref.disabled,
|
|
9536
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled
|
|
9537
|
-
|
|
9538
|
-
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
9546
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
9547
|
+
_ref.lined;
|
|
9548
|
+
var props = _objectWithoutProperties(_ref, _excluded$m);
|
|
9539
9549
|
var internalProps = external ? getExternalLinkProps() : {};
|
|
9540
9550
|
var isDisabled = isLoading || disabled;
|
|
9541
9551
|
return /*#__PURE__*/jsxs(StyledButton$1, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
|
|
9542
|
-
isLoading: isLoading,
|
|
9543
9552
|
disabled: isDisabled,
|
|
9544
9553
|
style: style,
|
|
9545
|
-
lined: lined,
|
|
9546
9554
|
children: [/*#__PURE__*/React__default.isValidElement(startIcon) && /*#__PURE__*/React__default.cloneElement(startIcon, {
|
|
9547
9555
|
mr: "0.5rem"
|
|
9548
9556
|
}), children, /*#__PURE__*/React__default.isValidElement(endIcon) && /*#__PURE__*/React__default.cloneElement(endIcon, {
|
|
@@ -9578,13 +9586,14 @@ var StyledTag = styled.div(_templateObject$1Q || (_templateObject$1Q = _taggedTe
|
|
|
9578
9586
|
return getColor(variant, theme);
|
|
9579
9587
|
}, getThemeTextColor, getThemeTextColor);
|
|
9580
9588
|
|
|
9581
|
-
var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide"]
|
|
9589
|
+
var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide"],
|
|
9590
|
+
_excluded2$1 = ["isActive"];
|
|
9582
9591
|
var _templateObject$1P, _templateObject2$Z, _templateObject3$L;
|
|
9583
9592
|
var ButtonBody = styled.div(_templateObject$1P || (_templateObject$1P = _taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n"])));
|
|
9584
9593
|
var ButtonTag = styled(StyledTag)(_templateObject2$Z || (_templateObject2$Z = _taggedTemplateLiteral(["\n margin-left: 7px;\n font-weight: bold;\n font-size: 11px;\n padding: 1px 5px;\n height: unset;\n border-width: 1px;\n"])));
|
|
9585
9594
|
var InactiveButton$1 = styled(Button).withConfig({
|
|
9586
9595
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
9587
|
-
return prop !== 'colorKey';
|
|
9596
|
+
return prop !== 'colorKey' && prop !== 'isActive';
|
|
9588
9597
|
}
|
|
9589
9598
|
})(_templateObject3$L || (_templateObject3$L = _taggedTemplateLiteral(["\n background-color: transparent;\n color: #535459;\n .dot {\n background-color: transparent;\n }\n\n &:hover:not(:disabled):not(:active) {\n background-color: transparent;\n }\n"])));
|
|
9590
9599
|
var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
@@ -9599,13 +9608,16 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9599
9608
|
tag = _ref.tag,
|
|
9600
9609
|
hide = _ref.hide,
|
|
9601
9610
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
9611
|
+
// Remove isActive from props to prevent it from being passed to DOM
|
|
9612
|
+
props.isActive;
|
|
9613
|
+
var buttonProps = _objectWithoutProperties(props, _excluded2$1);
|
|
9602
9614
|
if (!isActive) {
|
|
9603
9615
|
return /*#__PURE__*/jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
|
|
9604
9616
|
forwardedAs: as,
|
|
9605
9617
|
size: size,
|
|
9606
9618
|
variant: "tertiary",
|
|
9607
9619
|
colorKey: variant === variants$2.PRIMARY ? "primary" : "textSubtle"
|
|
9608
|
-
},
|
|
9620
|
+
}, buttonProps), {}, {
|
|
9609
9621
|
style: {
|
|
9610
9622
|
display: hide ? "none" : "flex"
|
|
9611
9623
|
},
|
|
@@ -9621,7 +9633,7 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9621
9633
|
as: as,
|
|
9622
9634
|
size: size,
|
|
9623
9635
|
variant: variant
|
|
9624
|
-
},
|
|
9636
|
+
}, buttonProps), {}, {
|
|
9625
9637
|
style: {
|
|
9626
9638
|
display: hide ? "none" : "flex"
|
|
9627
9639
|
},
|