@mw-kit/mw-ui 1.6.12 → 1.6.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.js CHANGED
@@ -12600,14 +12600,14 @@ var getMask = function getMask(mask) {
12600
12600
  };
12601
12601
  };
12602
12602
 
12603
- var _templateObject$c, _templateObject2$a, _templateObject3$a, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$2, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1;
12603
+ var _templateObject$c, _templateObject2$a, _templateObject3$a, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$2, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15;
12604
12604
  var IconContainer = styled__default.button(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n ", "\n"])), function (_ref) {
12605
12605
  var onClick = _ref.onClick,
12606
12606
  disabled = _ref.disabled;
12607
12607
  if (!onClick || disabled) return;
12608
12608
  return styled.css(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12609
12609
  });
12610
- var Input = styled__default.input(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n\n ", "\n }\n\n display: block;\n width: ", ";\n box-sizing: border-box;\n\n ", ";\n\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n\n background-color: ", ";\n\n box-shadow: none;\n outline: none;\n\n ", "\n\n ", "\n"])), function (_ref2) {
12610
+ var Input = styled__default.input(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n\n ", "\n }\n\n display: block;\n width: ", ";\n box-sizing: border-box;\n\n ", ";\n\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n\n ", ";\n\n box-shadow: none;\n outline: none;\n\n ", "\n\n ", "\n"])), function (_ref2) {
12611
12611
  var theme = _ref2.theme;
12612
12612
  return theme.useTypography('p');
12613
12613
  }, function (_ref3) {
@@ -12646,19 +12646,20 @@ var Input = styled__default.input(_templateObject3$a || (_templateObject3$a = _t
12646
12646
  }, function (_ref10) {
12647
12647
  var theme = _ref10.theme,
12648
12648
  invalid = _ref10.invalid;
12649
- return invalid ? theme.getColor('warningRed', 5) : theme.colors.white;
12649
+ var color = invalid ? theme.getColor('warningRed', 5) : theme.colors.white;
12650
+ return styled.css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n /** google chrome blue background */\n -webkit-box-shadow: 0 0 0px 1000px ", "; inset !important;\n "])), color, color);
12650
12651
  }, function (_ref11) {
12651
12652
  var arrows = _ref11.arrows;
12652
12653
  if (arrows) return;
12653
- return styled.css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: textfield;\n "])));
12654
+ return styled.css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: textfield;\n "])));
12654
12655
  }, function (_ref12) {
12655
12656
  var readOnly = _ref12.readOnly,
12656
12657
  onClick = _ref12.onClick,
12657
12658
  disabled = _ref12.disabled;
12658
12659
  if (!readOnly) return;
12659
- return styled.css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n cursor: ", ";\n "])), !onClick || disabled ? 'unset' : 'pointer');
12660
+ return styled.css(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n cursor: ", ";\n "])), !onClick || disabled ? 'unset' : 'pointer');
12660
12661
  });
12661
- var Label = styled__default.label(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n\n > ", " {\n bottom: ", ";\n }\n\n ", "\n"])), function (_ref13) {
12662
+ var Label = styled__default.label(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n\n > ", " {\n bottom: ", ";\n }\n\n ", "\n"])), function (_ref13) {
12662
12663
  var theme = _ref13.theme;
12663
12664
  return theme.useTypography('p');
12664
12665
  }, function (_ref14) {
@@ -12670,7 +12671,7 @@ var Label = styled__default.label(_templateObject9$3 || (_templateObject9$3 = _t
12670
12671
  }, function (_ref16) {
12671
12672
  var disabled = _ref16.disabled;
12672
12673
  if (!disabled) return;
12673
- return styled.css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12674
+ return styled.css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12674
12675
  }, IconContainer, function (_ref17) {
12675
12676
  var theme = _ref17.theme,
12676
12677
  paddingless = _ref17.paddingless;
@@ -12685,18 +12686,18 @@ var Label = styled__default.label(_templateObject9$3 || (_templateObject9$3 = _t
12685
12686
  var padding = paddingless ? '0px' : theme.spacings.s3;
12686
12687
 
12687
12688
  if (position === 'right') {
12688
- return styled.css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n right: calc(", " / 2);\n }\n\n > ", " {\n padding-right: calc(", " + ", ");\n }\n "])), IconContainer, width, padding, Input, padding, width);
12689
+ return styled.css(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n right: calc(", " / 2);\n }\n\n > ", " {\n padding-right: calc(", " + ", ");\n }\n "])), IconContainer, width, padding, Input, padding, width);
12689
12690
  }
12690
12691
 
12691
- return styled.css(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " {\n padding-left: calc(", " + ", ");\n }\n "])), IconContainer, width, padding, Input, padding, width);
12692
+ return styled.css(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " {\n padding-left: calc(", " + ", ");\n }\n "])), IconContainer, width, padding, Input, padding, width);
12692
12693
  });
12693
- var LabelText = styled__default.div(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref19) {
12694
+ var LabelText = styled__default.div(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref19) {
12694
12695
  var theme = _ref19.theme;
12695
12696
  return theme.spacings.s1;
12696
12697
  }, function (_ref20) {
12697
12698
  var required = _ref20.required;
12698
12699
  if (!required) return;
12699
- return styled.css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12700
+ return styled.css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12700
12701
  });
12701
12702
 
12702
12703
  var Input$1 = React__default.forwardRef(function (props, ref) {
@@ -14680,7 +14681,7 @@ var Switch = function Switch(props) {
14680
14681
  })), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$1, null, label));
14681
14682
  };
14682
14683
 
14683
- var _templateObject$n, _templateObject2$j, _templateObject3$h, _templateObject4$e, _templateObject5$d, _templateObject6$b, _templateObject7$9, _templateObject8$6, _templateObject9$6, _templateObject10$4, _templateObject11$3, _templateObject12$3, _templateObject13$3, _templateObject14$2, _templateObject15, _templateObject16;
14684
+ var _templateObject$n, _templateObject2$j, _templateObject3$h, _templateObject4$e, _templateObject5$d, _templateObject6$b, _templateObject7$9, _templateObject8$6, _templateObject9$6, _templateObject10$4, _templateObject11$3, _templateObject12$3, _templateObject13$3, _templateObject14$2, _templateObject15$1, _templateObject16;
14684
14685
  var bullet = styled.css(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: ", ";\n height: ", ";\n border-radius: 100%;\n border-width: 1px;\n border-style: solid;\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n"])), function (_ref) {
14685
14686
  var theme = _ref.theme;
14686
14687
  return theme.spacings.s4;
@@ -14695,7 +14696,7 @@ var bullet = styled.css(_templateObject$n || (_templateObject$n = _taggedTemplat
14695
14696
  return theme.getColor('black', 10);
14696
14697
  });
14697
14698
  var Input$2 = styled__default.input(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: 100%;\n height: 10px;\n background-color: transparent;\n outline: none;\n position: relative;\n z-index: 3;\n margin: 0;\n\n :not(:disabled) {\n cursor: pointer;\n }\n\n /** firefox */\n ::-moz-range-thumb {\n ", "\n }\n /** ie */\n ::-ms-thumb {\n ", "\n }\n /** chrome */\n ::-webkit-slider-thumb {\n ", "\n }\n"])), bullet, bullet, bullet);
14698
- var Label$4 = styled__default.label(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteralLoose(["\n ", ";\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > div:first-child {\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n }\n"])), function (_ref5) {
14699
+ var Label$4 = styled__default.label(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 19px;\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > div:first-child {\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n }\n"])), function (_ref5) {
14699
14700
  var theme = _ref5.theme;
14700
14701
  return theme.useTypography('p');
14701
14702
  }, function (_ref6) {
@@ -14741,7 +14742,7 @@ var SelectedArea = styled__default.div(_templateObject13$3 || (_templateObject13
14741
14742
  return percent;
14742
14743
  });
14743
14744
  var MarkersContainer = styled__default.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
14744
- var Marker = styled__default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n width: 40px;\n text-align: center;\n left: ", ";\n z-index: 2;\n\n :first-child {\n left: 0;\n text-align: left;\n\n :after {\n left: 0;\n }\n }\n :last-child {\n right: 0;\n left: unset;\n text-align: right;\n\n :after {\n right: 0;\n left: unset;\n }\n }\n\n ", "\n"])), function (_ref14) {
14745
+ var Marker = styled__default.div(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n width: 40px;\n text-align: center;\n left: ", ";\n z-index: 2;\n\n :first-child {\n left: 0;\n text-align: left;\n\n :after {\n left: 0;\n }\n }\n :last-child {\n right: 0;\n left: unset;\n text-align: right;\n\n :after {\n right: 0;\n left: unset;\n }\n }\n\n ", "\n"])), function (_ref14) {
14745
14746
  var left = _ref14.left;
14746
14747
  return left;
14747
14748
  }, function (_ref15) {
@@ -17042,7 +17043,7 @@ var useContext$2 = function useContext() {
17042
17043
  return React__default.useContext(Provider$2);
17043
17044
  };
17044
17045
 
17045
- var _templateObject$M, _templateObject2$C, _templateObject3$A, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$6, _templateObject12$4, _templateObject13$4, _templateObject14$3, _templateObject15$1;
17046
+ var _templateObject$M, _templateObject2$C, _templateObject3$A, _templateObject4$w, _templateObject5$u, _templateObject6$q, _templateObject7$n, _templateObject8$j, _templateObject9$h, _templateObject10$c, _templateObject11$6, _templateObject12$4, _templateObject13$4, _templateObject14$3, _templateObject15$2;
17046
17047
  var aligns = {
17047
17048
  self: {
17048
17049
  horizontal: {
@@ -17156,7 +17157,7 @@ var Col = styled__default.div(_templateObject$M || (_templateObject$M = _taggedT
17156
17157
  }, function (_ref9) {
17157
17158
  var pointer = _ref9.pointer;
17158
17159
  if (!pointer) return;
17159
- return styled.css(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
17160
+ return styled.css(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
17160
17161
  });
17161
17162
 
17162
17163
  var Col$1 = function Col$1(props) {