@coinswap-app/uikit 1.0.8 → 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 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', '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;
@@ -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({}, internalProps), props), {}, {
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,
@@ -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(_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"])));
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,
@@ -9625,8 +9631,11 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
9625
9631
  hide = _ref.hide,
9626
9632
  props = _objectWithoutProperties(_ref, _excluded$l);
9627
9633
  // Remove isActive from props to prevent it from being passed to DOM
9628
- props.isActive;
9629
- var buttonProps = _objectWithoutProperties(props, _excluded2$1);
9634
+ var _isActive$props = _objectSpread2({
9635
+ isActive: isActive
9636
+ }, props);
9637
+ _isActive$props.isActive;
9638
+ var buttonProps = _objectWithoutProperties(_isActive$props, _excluded2$1);
9630
9639
  if (!isActive) {
9631
9640
  return /*#__PURE__*/jsxRuntime.jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
9632
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'].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;
@@ -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({}, internalProps), props), {}, {
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,
@@ -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(_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"])));
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,
@@ -9603,8 +9609,11 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
9603
9609
  hide = _ref.hide,
9604
9610
  props = _objectWithoutProperties(_ref, _excluded$l);
9605
9611
  // Remove isActive from props to prevent it from being passed to DOM
9606
- props.isActive;
9607
- var buttonProps = _objectWithoutProperties(props, _excluded2$1);
9612
+ var _isActive$props = _objectSpread2({
9613
+ isActive: isActive
9614
+ }, props);
9615
+ _isActive$props.isActive;
9616
+ var buttonProps = _objectWithoutProperties(_isActive$props, _excluded2$1);
9608
9617
  if (!isActive) {
9609
9618
  return /*#__PURE__*/jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
9610
9619
  forwardedAs: as,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinswap-app/uikit",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Set of UI components for CoinSwap projects",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",