@mw-kit/mw-ui 1.7.58 → 1.7.60
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 +36 -46
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +36 -46
- package/dist/index.modern.js.map +1 -1
- package/dist/theme/constants.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62,6 +62,7 @@ var colors = {
|
|
|
62
62
|
darkGrey: '#949494',
|
|
63
63
|
darkSilver: '#525A6A',
|
|
64
64
|
floralWhite: '#FFFAF3',
|
|
65
|
+
ghostWhite: '#F9FAFB',
|
|
65
66
|
green: '#76B100',
|
|
66
67
|
grey: '#ADADAD',
|
|
67
68
|
greyishBlue: '#263046',
|
|
@@ -73,6 +74,7 @@ var colors = {
|
|
|
73
74
|
milkWhite: '#FCFFF5',
|
|
74
75
|
orange: '#FB8702',
|
|
75
76
|
pink: '#E23851',
|
|
77
|
+
platinum: '#E2E2E3',
|
|
76
78
|
purple: '#8E66BB',
|
|
77
79
|
red: '#C31717',
|
|
78
80
|
silver: '#B2B2B2',
|
|
@@ -12125,8 +12127,8 @@ var Loader = styled__default.div(_templateObject2$3 || (_templateObject2$3 = _ta
|
|
|
12125
12127
|
theme = _ref.theme,
|
|
12126
12128
|
filled = _ref.filled,
|
|
12127
12129
|
zIndex = _ref.zIndex;
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
+
borderSize = borderSize || size ? "calc(" + size + " * 0.0757)" : '5px';
|
|
12131
|
+
size = size || '48px';
|
|
12130
12132
|
color = color || 'blue';
|
|
12131
12133
|
bgColor = bgColor || color;
|
|
12132
12134
|
var beforeColor = isKeyOf(theme.colors, bgColor) ? theme.getColor(bgColor, 25) : color;
|
|
@@ -12659,7 +12661,7 @@ var Container$1 = styled__default.div(_templateObject$7 || (_templateObject$7 =
|
|
|
12659
12661
|
var theme = _ref2.theme;
|
|
12660
12662
|
return theme.spacings.s1;
|
|
12661
12663
|
});
|
|
12662
|
-
var OverflowContainer = styled__default.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n overflow-y: scroll;\n overflow-y: overlay;\n width: 100%;\n position: relative;\n\n max-height: ", ";\n\n scrollbar-color: ", ";\n scrollbar-width:
|
|
12664
|
+
var OverflowContainer = styled__default.div(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n overflow-y: scroll;\n overflow-y: overlay;\n width: 100%;\n position: relative;\n\n max-height: ", ";\n\n scrollbar-color: ", ";\n scrollbar-width: thin;\n\n ::-webkit-scrollbar {\n width: 7px;\n }\n ::-webkit-scrollbar-thumb {\n background: ", ";\n }\n ::-webkit-scrollbar-track {\n background: ", ";\n }\n\n ", ";\n"])), function (_ref3) {
|
|
12663
12665
|
var height = _ref3.height;
|
|
12664
12666
|
return height || '100%';
|
|
12665
12667
|
}, function (_ref4) {
|
|
@@ -12718,9 +12720,7 @@ var ScrollContainer = function ScrollContainer(props) {
|
|
|
12718
12720
|
_onScroll2(event);
|
|
12719
12721
|
}
|
|
12720
12722
|
})), loading && React__default.createElement(Loader, {
|
|
12721
|
-
filled: true
|
|
12722
|
-
size: '43px',
|
|
12723
|
-
borderSize: '2px'
|
|
12723
|
+
filled: true
|
|
12724
12724
|
})), after);
|
|
12725
12725
|
};
|
|
12726
12726
|
|
|
@@ -13729,8 +13729,8 @@ var getTimeProps = function getTimeProps(time, value) {
|
|
|
13729
13729
|
});
|
|
13730
13730
|
};
|
|
13731
13731
|
|
|
13732
|
-
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$9, _templateObject5$8, _templateObject6$7, _templateObject7$7, _templateObject8$6, _templateObject9$6, _templateObject10$6
|
|
13733
|
-
var Button = styled__default.button(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n padding: 0\n ", ";\n font-family: 'Lato', sans-serif;\n font-weight: ", ";\n border-radius: 4px;\n position: relative;\n user-select: none;\n\n ", ";\n\n ", ";\n\n color: ", ";\n\n :disabled {\n
|
|
13732
|
+
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$9, _templateObject5$8, _templateObject6$7, _templateObject7$7, _templateObject8$6, _templateObject9$6, _templateObject10$6;
|
|
13733
|
+
var Button = styled__default.button(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n padding: 0\n ", ";\n font-family: 'Lato', sans-serif;\n font-weight: ", ";\n border-radius: 4px;\n position: relative;\n user-select: none;\n\n ", ";\n\n ", ";\n\n color: ", ";\n\n :disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n :hover {\n cursor: ", ";\n\n ", "\n }\n\n :active {\n ", ";\n }\n\n ", "\n"])), function (_ref) {
|
|
13734
13734
|
var theme = _ref.theme,
|
|
13735
13735
|
appearance = _ref.appearance;
|
|
13736
13736
|
return appearance === 'link' ? 0 : theme.spacings.s3;
|
|
@@ -13766,49 +13766,39 @@ var Button = styled__default.button(_templateObject$e || (_templateObject$e = _t
|
|
|
13766
13766
|
|
|
13767
13767
|
return theme.getColor('white');
|
|
13768
13768
|
}, function (_ref6) {
|
|
13769
|
-
var
|
|
13770
|
-
|
|
13771
|
-
|
|
13769
|
+
var loading = _ref6.loading,
|
|
13770
|
+
disabled = _ref6.disabled;
|
|
13771
|
+
return loading || disabled ? 'default' : 'pointer';
|
|
13772
|
+
}, function (_ref7) {
|
|
13773
|
+
var appearance = _ref7.appearance,
|
|
13774
|
+
color = _ref7.color,
|
|
13775
|
+
theme = _ref7.theme;
|
|
13772
13776
|
|
|
13773
|
-
if (
|
|
13774
|
-
return styled.css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n
|
|
13777
|
+
if (appearance === 'bordered') {
|
|
13778
|
+
return styled.css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n color: ", ";\n border: 1px solid ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
|
|
13779
|
+
} else if (['link', 'borderless'].includes(appearance)) {
|
|
13780
|
+
return styled.css(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.blue);
|
|
13775
13781
|
}
|
|
13776
13782
|
|
|
13777
|
-
return styled.css(
|
|
13778
|
-
}, function (_ref7) {
|
|
13779
|
-
var loading = _ref7.loading,
|
|
13780
|
-
disabled = _ref7.disabled;
|
|
13781
|
-
return loading || disabled ? 'default' : 'pointer';
|
|
13783
|
+
return styled.css(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border-color: ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
|
|
13782
13784
|
}, function (_ref8) {
|
|
13783
13785
|
var appearance = _ref8.appearance,
|
|
13784
13786
|
color = _ref8.color,
|
|
13785
13787
|
theme = _ref8.theme;
|
|
13786
13788
|
|
|
13787
13789
|
if (appearance === 'bordered') {
|
|
13788
|
-
return styled.css(
|
|
13789
|
-
} else if (['link', 'borderless'].includes(appearance)) {
|
|
13790
|
-
return styled.css(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.blue);
|
|
13791
|
-
}
|
|
13792
|
-
|
|
13793
|
-
return styled.css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border-color: ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
|
|
13794
|
-
}, function (_ref9) {
|
|
13795
|
-
var appearance = _ref9.appearance,
|
|
13796
|
-
color = _ref9.color,
|
|
13797
|
-
theme = _ref9.theme;
|
|
13798
|
-
|
|
13799
|
-
if (appearance === 'bordered') {
|
|
13800
|
-
return styled.css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.getColor('iceWhite'));
|
|
13790
|
+
return styled.css(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.getColor('iceWhite'));
|
|
13801
13791
|
}
|
|
13802
13792
|
|
|
13803
13793
|
if (['link', 'borderless'].includes(appearance)) {
|
|
13804
|
-
return styled.css(
|
|
13794
|
+
return styled.css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
|
|
13805
13795
|
}
|
|
13806
13796
|
|
|
13807
|
-
return styled.css(
|
|
13808
|
-
}, function (
|
|
13809
|
-
var loading =
|
|
13797
|
+
return styled.css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor(color || 'blue'));
|
|
13798
|
+
}, function (_ref9) {
|
|
13799
|
+
var loading = _ref9.loading;
|
|
13810
13800
|
if (!loading) return;
|
|
13811
|
-
return styled.css(
|
|
13801
|
+
return styled.css(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n "])));
|
|
13812
13802
|
});
|
|
13813
13803
|
|
|
13814
13804
|
var _excluded = ["children", "content"];
|
|
@@ -16228,7 +16218,7 @@ var parse = function parse(value) {
|
|
|
16228
16218
|
});
|
|
16229
16219
|
};
|
|
16230
16220
|
|
|
16231
|
-
var _templateObject$B, _templateObject2$t, _templateObject3$n, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b, _templateObject8$8, _templateObject9$8, _templateObject10$7, _templateObject11$
|
|
16221
|
+
var _templateObject$B, _templateObject2$t, _templateObject3$n, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b, _templateObject8$8, _templateObject9$8, _templateObject10$7, _templateObject11$3, _templateObject12$2;
|
|
16232
16222
|
var RelativeContainer$5 = styled__default.div(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
|
|
16233
16223
|
var LabelContainer$6 = styled__default.div(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n\n :first-child {\n text-align: left;\n }\n :not(:first-child) {\n text-align: center;\n }\n\n ", "\n\n ", ";\n"])), function (_ref) {
|
|
16234
16224
|
var theme = _ref.theme;
|
|
@@ -16278,13 +16268,13 @@ var Button$4 = styled__default.button(_templateObject9$8 || (_templateObject9$8
|
|
|
16278
16268
|
if (!onClick) return;
|
|
16279
16269
|
return styled.css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16280
16270
|
});
|
|
16281
|
-
var LabelText$1 = styled__default.label(_templateObject11$
|
|
16271
|
+
var LabelText$1 = styled__default.label(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
|
|
16282
16272
|
var theme = _ref12.theme;
|
|
16283
16273
|
return theme.spacings.s1;
|
|
16284
16274
|
}, function (_ref13) {
|
|
16285
16275
|
var required = _ref13.required;
|
|
16286
16276
|
if (!required) return;
|
|
16287
|
-
return styled.css(_templateObject12$
|
|
16277
|
+
return styled.css(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
16288
16278
|
});
|
|
16289
16279
|
|
|
16290
16280
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
@@ -17773,7 +17763,7 @@ var useContext$2 = function useContext() {
|
|
|
17773
17763
|
return React__default.useContext(Provider$2);
|
|
17774
17764
|
};
|
|
17775
17765
|
|
|
17776
|
-
var _templateObject$M, _templateObject2$z, _templateObject3$s, _templateObject4$h, _templateObject5$e, _templateObject6$d, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject10$9, _templateObject11$
|
|
17766
|
+
var _templateObject$M, _templateObject2$z, _templateObject3$s, _templateObject4$h, _templateObject5$e, _templateObject6$d, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject10$9, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$2;
|
|
17777
17767
|
var aligns = {
|
|
17778
17768
|
self: {
|
|
17779
17769
|
horizontal: {
|
|
@@ -17864,13 +17854,13 @@ var Col = styled__default.div(_templateObject$M || (_templateObject$M = _taggedT
|
|
|
17864
17854
|
var bordered = _ref5.bordered,
|
|
17865
17855
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
17866
17856
|
if (!bordered) return;
|
|
17867
|
-
return styled.css(_templateObject11$
|
|
17857
|
+
return styled.css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
17868
17858
|
}, function (_ref6) {
|
|
17869
17859
|
var fontColor = _ref6.fontColor,
|
|
17870
17860
|
theme = _ref6.theme;
|
|
17871
17861
|
if (fontColor === undefined) return;
|
|
17872
17862
|
var c = Array.isArray(fontColor) ? theme.getColor.apply(theme, fontColor) : theme.colors[fontColor];
|
|
17873
|
-
return styled.css(_templateObject12$
|
|
17863
|
+
return styled.css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), c);
|
|
17874
17864
|
}, function (_ref7) {
|
|
17875
17865
|
var backgroundColor = _ref7.backgroundColor,
|
|
17876
17866
|
theme = _ref7.theme;
|
|
@@ -18290,7 +18280,7 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
18290
18280
|
Audit: Audit
|
|
18291
18281
|
});
|
|
18292
18282
|
|
|
18293
|
-
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$k, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$
|
|
18283
|
+
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$k, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$5;
|
|
18294
18284
|
var Container$c = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
18295
18285
|
var Header$6 = styled__default.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18296
18286
|
var HeaderImage = styled__default.div(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -18307,7 +18297,7 @@ var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g =
|
|
|
18307
18297
|
}, function (props) {
|
|
18308
18298
|
return props.size === 'large' && styled.css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18309
18299
|
});
|
|
18310
|
-
var MainLine = styled__default(HeaderLine)(_templateObject11$
|
|
18300
|
+
var MainLine = styled__default(HeaderLine)(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
18311
18301
|
|
|
18312
18302
|
var Template1 = function Template1(props) {
|
|
18313
18303
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18692,7 +18682,7 @@ var Template8$1 = function Template8(props) {
|
|
|
18692
18682
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
18693
18683
|
};
|
|
18694
18684
|
|
|
18695
|
-
var _templateObject$11, _templateObject2$N, _templateObject3$G, _templateObject4$t, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$
|
|
18685
|
+
var _templateObject$11, _templateObject2$N, _templateObject3$G, _templateObject4$t, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$6;
|
|
18696
18686
|
var Container$l = styled__default.div(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18697
18687
|
var Header$c = styled__default.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18698
18688
|
var HeaderLine$9 = styled__default.div(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
@@ -18715,7 +18705,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$l || (_templat
|
|
|
18715
18705
|
});
|
|
18716
18706
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
18717
18707
|
var Main$5 = styled__default.div(_templateObject10$f || (_templateObject10$f = _taggedTemplateLiteralLoose(["\n flex: 1;\n padding: 0 7px 72px 7px;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: center;\n"])));
|
|
18718
|
-
var Circle$3 = styled__default.div(_templateObject11$
|
|
18708
|
+
var Circle$3 = styled__default.div(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
|
|
18719
18709
|
|
|
18720
18710
|
var Template10 = function Template10(props) {
|
|
18721
18711
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|