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