@mw-kit/mw-ui 1.6.8 → 1.6.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.modern.js
CHANGED
|
@@ -12597,7 +12597,7 @@ var getMask = function getMask(mask) {
|
|
|
12597
12597
|
};
|
|
12598
12598
|
};
|
|
12599
12599
|
|
|
12600
|
-
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;
|
|
12600
|
+
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;
|
|
12601
12601
|
var IconContainer = styled.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) {
|
|
12602
12602
|
var onClick = _ref.onClick,
|
|
12603
12603
|
disabled = _ref.disabled;
|
|
@@ -12655,7 +12655,7 @@ var Input = styled.input(_templateObject3$a || (_templateObject3$a = _taggedTemp
|
|
|
12655
12655
|
if (!readOnly) return;
|
|
12656
12656
|
return css(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n cursor: ", ";\n "])), !onClick || disabled ? 'unset' : 'pointer');
|
|
12657
12657
|
});
|
|
12658
|
-
var Label = styled.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 >
|
|
12658
|
+
var Label = styled.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) {
|
|
12659
12659
|
var theme = _ref13.theme;
|
|
12660
12660
|
return theme.useTypography('p');
|
|
12661
12661
|
}, function (_ref14) {
|
|
@@ -12668,31 +12668,32 @@ var Label = styled.label(_templateObject9$3 || (_templateObject9$3 = _taggedTemp
|
|
|
12668
12668
|
var disabled = _ref16.disabled;
|
|
12669
12669
|
if (!disabled) return;
|
|
12670
12670
|
return css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
12671
|
-
}, function (_ref17) {
|
|
12672
|
-
var theme = _ref17.theme
|
|
12673
|
-
|
|
12674
|
-
}, function (_ref18) {
|
|
12675
|
-
var required = _ref18.required;
|
|
12676
|
-
if (!required) return;
|
|
12677
|
-
return css(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12678
|
-
}, IconContainer, function (_ref19) {
|
|
12679
|
-
var theme = _ref19.theme,
|
|
12680
|
-
paddingless = _ref19.paddingless;
|
|
12671
|
+
}, IconContainer, function (_ref17) {
|
|
12672
|
+
var theme = _ref17.theme,
|
|
12673
|
+
paddingless = _ref17.paddingless;
|
|
12681
12674
|
return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
|
|
12682
|
-
}, function (
|
|
12683
|
-
var theme =
|
|
12684
|
-
icon =
|
|
12685
|
-
paddingless =
|
|
12675
|
+
}, function (_ref18) {
|
|
12676
|
+
var theme = _ref18.theme,
|
|
12677
|
+
icon = _ref18.icon,
|
|
12678
|
+
paddingless = _ref18.paddingless;
|
|
12686
12679
|
if (!icon) return;
|
|
12687
12680
|
var width = icon.width,
|
|
12688
12681
|
position = icon.position;
|
|
12689
12682
|
var padding = paddingless ? '0px' : theme.spacings.s3;
|
|
12690
12683
|
|
|
12691
12684
|
if (position === 'right') {
|
|
12692
|
-
return css(
|
|
12685
|
+
return 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);
|
|
12693
12686
|
}
|
|
12694
12687
|
|
|
12695
|
-
return css(
|
|
12688
|
+
return 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);
|
|
12689
|
+
});
|
|
12690
|
+
var LabelText = styled.div(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref19) {
|
|
12691
|
+
var theme = _ref19.theme;
|
|
12692
|
+
return theme.spacings.s1;
|
|
12693
|
+
}, function (_ref20) {
|
|
12694
|
+
var required = _ref20.required;
|
|
12695
|
+
if (!required) return;
|
|
12696
|
+
return css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12696
12697
|
});
|
|
12697
12698
|
|
|
12698
12699
|
var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
@@ -12832,13 +12833,14 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12832
12833
|
} : undefined;
|
|
12833
12834
|
if (htmlDisabled) inputProps.disabled = true;
|
|
12834
12835
|
return React__default.createElement(Label, {
|
|
12835
|
-
required: intRequired,
|
|
12836
12836
|
disabled: intDisabled,
|
|
12837
12837
|
invalid: intInvalid,
|
|
12838
12838
|
paddingless: intPaddingless,
|
|
12839
12839
|
icon: iconProps,
|
|
12840
12840
|
width: width
|
|
12841
|
-
},
|
|
12841
|
+
}, label && React__default.createElement(LabelText, {
|
|
12842
|
+
required: intRequired
|
|
12843
|
+
}, label), React__default.createElement(Input, Object.assign({}, inputProps, {
|
|
12842
12844
|
ref: ref
|
|
12843
12845
|
})), icon && React__default.createElement(IconContainer, {
|
|
12844
12846
|
type: iconSubmit ? 'submit' : 'button',
|
|
@@ -14675,7 +14677,7 @@ var Switch = function Switch(props) {
|
|
|
14675
14677
|
})), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$1, null, label));
|
|
14676
14678
|
};
|
|
14677
14679
|
|
|
14678
|
-
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$
|
|
14680
|
+
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;
|
|
14679
14681
|
var bullet = 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) {
|
|
14680
14682
|
var theme = _ref.theme;
|
|
14681
14683
|
return theme.spacings.s4;
|
|
@@ -14735,7 +14737,7 @@ var SelectedArea = styled.div(_templateObject13$3 || (_templateObject13$3 = _tag
|
|
|
14735
14737
|
var percent = _ref13.percent;
|
|
14736
14738
|
return percent;
|
|
14737
14739
|
});
|
|
14738
|
-
var MarkersContainer = styled.div(_templateObject14$
|
|
14740
|
+
var MarkersContainer = styled.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
|
|
14739
14741
|
var Marker = styled.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) {
|
|
14740
14742
|
var left = _ref14.left;
|
|
14741
14743
|
return left;
|
|
@@ -15249,7 +15251,7 @@ var parse = function parse(value) {
|
|
|
15249
15251
|
};
|
|
15250
15252
|
|
|
15251
15253
|
var _templateObject$q, _templateObject2$l, _templateObject3$j, _templateObject4$g, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$7, _templateObject9$7, _templateObject10$5;
|
|
15252
|
-
var RelativeContainer$5 = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: relative;\n\n > :nth-child(1) input {\n color: transparent;\n }\n"])));
|
|
15254
|
+
var RelativeContainer$5 = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n\n > :nth-child(1) input {\n color: transparent;\n }\n"])));
|
|
15253
15255
|
var LabelContainer$3 = styled.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref) {
|
|
15254
15256
|
var theme = _ref.theme;
|
|
15255
15257
|
return theme.useTypography('p');
|
|
@@ -17029,7 +17031,7 @@ var useContext$2 = function useContext() {
|
|
|
17029
17031
|
return React__default.useContext(Provider$2);
|
|
17030
17032
|
};
|
|
17031
17033
|
|
|
17032
|
-
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$
|
|
17034
|
+
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;
|
|
17033
17035
|
var aligns = {
|
|
17034
17036
|
self: {
|
|
17035
17037
|
horizontal: {
|
|
@@ -17139,7 +17141,7 @@ var Col = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLi
|
|
|
17139
17141
|
if (!hover) return;
|
|
17140
17142
|
var h = hover === true ? ['lightGrey', 50] : hover;
|
|
17141
17143
|
var c = Array.isArray(h) ? theme.getColor.apply(theme, h) : theme.colors[h];
|
|
17142
|
-
return css(_templateObject14$
|
|
17144
|
+
return css(_templateObject14$3 || (_templateObject14$3 = _taggedTemplateLiteralLoose(["\n :hover {\n background-color: ", ";\n }\n "])), c);
|
|
17143
17145
|
}, function (_ref9) {
|
|
17144
17146
|
var pointer = _ref9.pointer;
|
|
17145
17147
|
if (!pointer) return;
|