@mw-kit/mw-ui 1.7.58 → 1.7.59
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 +32 -40
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +32 -40
- 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',
|
|
@@ -13729,8 +13731,8 @@ var getTimeProps = function getTimeProps(time, value) {
|
|
|
13729
13731
|
});
|
|
13730
13732
|
};
|
|
13731
13733
|
|
|
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
|
|
13734
|
+
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$9, _templateObject5$8, _templateObject6$7, _templateObject7$7, _templateObject8$6, _templateObject9$6, _templateObject10$6;
|
|
13735
|
+
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
13736
|
var theme = _ref.theme,
|
|
13735
13737
|
appearance = _ref.appearance;
|
|
13736
13738
|
return appearance === 'link' ? 0 : theme.spacings.s3;
|
|
@@ -13766,49 +13768,39 @@ var Button = styled__default.button(_templateObject$e || (_templateObject$e = _t
|
|
|
13766
13768
|
|
|
13767
13769
|
return theme.getColor('white');
|
|
13768
13770
|
}, function (_ref6) {
|
|
13769
|
-
var
|
|
13770
|
-
|
|
13771
|
-
|
|
13771
|
+
var loading = _ref6.loading,
|
|
13772
|
+
disabled = _ref6.disabled;
|
|
13773
|
+
return loading || disabled ? 'default' : 'pointer';
|
|
13774
|
+
}, function (_ref7) {
|
|
13775
|
+
var appearance = _ref7.appearance,
|
|
13776
|
+
color = _ref7.color,
|
|
13777
|
+
theme = _ref7.theme;
|
|
13772
13778
|
|
|
13773
|
-
if (
|
|
13774
|
-
return styled.css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n
|
|
13779
|
+
if (appearance === 'bordered') {
|
|
13780
|
+
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));
|
|
13781
|
+
} else if (['link', 'borderless'].includes(appearance)) {
|
|
13782
|
+
return styled.css(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.blue);
|
|
13775
13783
|
}
|
|
13776
13784
|
|
|
13777
|
-
return styled.css(
|
|
13778
|
-
}, function (_ref7) {
|
|
13779
|
-
var loading = _ref7.loading,
|
|
13780
|
-
disabled = _ref7.disabled;
|
|
13781
|
-
return loading || disabled ? 'default' : 'pointer';
|
|
13785
|
+
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
13786
|
}, function (_ref8) {
|
|
13783
13787
|
var appearance = _ref8.appearance,
|
|
13784
13788
|
color = _ref8.color,
|
|
13785
13789
|
theme = _ref8.theme;
|
|
13786
13790
|
|
|
13787
13791
|
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'));
|
|
13792
|
+
return styled.css(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.getColor('iceWhite'));
|
|
13801
13793
|
}
|
|
13802
13794
|
|
|
13803
13795
|
if (['link', 'borderless'].includes(appearance)) {
|
|
13804
|
-
return styled.css(
|
|
13796
|
+
return styled.css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
|
|
13805
13797
|
}
|
|
13806
13798
|
|
|
13807
|
-
return styled.css(
|
|
13808
|
-
}, function (
|
|
13809
|
-
var loading =
|
|
13799
|
+
return styled.css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor(color || 'blue'));
|
|
13800
|
+
}, function (_ref9) {
|
|
13801
|
+
var loading = _ref9.loading;
|
|
13810
13802
|
if (!loading) return;
|
|
13811
|
-
return styled.css(
|
|
13803
|
+
return styled.css(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n "])));
|
|
13812
13804
|
});
|
|
13813
13805
|
|
|
13814
13806
|
var _excluded = ["children", "content"];
|
|
@@ -16228,7 +16220,7 @@ var parse = function parse(value) {
|
|
|
16228
16220
|
});
|
|
16229
16221
|
};
|
|
16230
16222
|
|
|
16231
|
-
var _templateObject$B, _templateObject2$t, _templateObject3$n, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b, _templateObject8$8, _templateObject9$8, _templateObject10$7, _templateObject11$
|
|
16223
|
+
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
16224
|
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
16225
|
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
16226
|
var theme = _ref.theme;
|
|
@@ -16278,13 +16270,13 @@ var Button$4 = styled__default.button(_templateObject9$8 || (_templateObject9$8
|
|
|
16278
16270
|
if (!onClick) return;
|
|
16279
16271
|
return styled.css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16280
16272
|
});
|
|
16281
|
-
var LabelText$1 = styled__default.label(_templateObject11$
|
|
16273
|
+
var LabelText$1 = styled__default.label(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
|
|
16282
16274
|
var theme = _ref12.theme;
|
|
16283
16275
|
return theme.spacings.s1;
|
|
16284
16276
|
}, function (_ref13) {
|
|
16285
16277
|
var required = _ref13.required;
|
|
16286
16278
|
if (!required) return;
|
|
16287
|
-
return styled.css(_templateObject12$
|
|
16279
|
+
return styled.css(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
16288
16280
|
});
|
|
16289
16281
|
|
|
16290
16282
|
var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
@@ -17773,7 +17765,7 @@ var useContext$2 = function useContext() {
|
|
|
17773
17765
|
return React__default.useContext(Provider$2);
|
|
17774
17766
|
};
|
|
17775
17767
|
|
|
17776
|
-
var _templateObject$M, _templateObject2$z, _templateObject3$s, _templateObject4$h, _templateObject5$e, _templateObject6$d, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject10$9, _templateObject11$
|
|
17768
|
+
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
17769
|
var aligns = {
|
|
17778
17770
|
self: {
|
|
17779
17771
|
horizontal: {
|
|
@@ -17864,13 +17856,13 @@ var Col = styled__default.div(_templateObject$M || (_templateObject$M = _taggedT
|
|
|
17864
17856
|
var bordered = _ref5.bordered,
|
|
17865
17857
|
lightestGrey = _ref5.theme.colors.lightestGrey;
|
|
17866
17858
|
if (!bordered) return;
|
|
17867
|
-
return styled.css(_templateObject11$
|
|
17859
|
+
return styled.css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
|
|
17868
17860
|
}, function (_ref6) {
|
|
17869
17861
|
var fontColor = _ref6.fontColor,
|
|
17870
17862
|
theme = _ref6.theme;
|
|
17871
17863
|
if (fontColor === undefined) return;
|
|
17872
17864
|
var c = Array.isArray(fontColor) ? theme.getColor.apply(theme, fontColor) : theme.colors[fontColor];
|
|
17873
|
-
return styled.css(_templateObject12$
|
|
17865
|
+
return styled.css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), c);
|
|
17874
17866
|
}, function (_ref7) {
|
|
17875
17867
|
var backgroundColor = _ref7.backgroundColor,
|
|
17876
17868
|
theme = _ref7.theme;
|
|
@@ -18290,7 +18282,7 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
18290
18282
|
Audit: Audit
|
|
18291
18283
|
});
|
|
18292
18284
|
|
|
18293
|
-
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$k, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$
|
|
18285
|
+
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$k, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$5;
|
|
18294
18286
|
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
18287
|
var Header$6 = styled__default.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18296
18288
|
var HeaderImage = styled__default.div(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
@@ -18307,7 +18299,7 @@ var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g =
|
|
|
18307
18299
|
}, function (props) {
|
|
18308
18300
|
return props.size === 'large' && styled.css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18309
18301
|
});
|
|
18310
|
-
var MainLine = styled__default(HeaderLine)(_templateObject11$
|
|
18302
|
+
var MainLine = styled__default(HeaderLine)(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
18311
18303
|
|
|
18312
18304
|
var Template1 = function Template1(props) {
|
|
18313
18305
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18692,7 +18684,7 @@ var Template8$1 = function Template8(props) {
|
|
|
18692
18684
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
18693
18685
|
};
|
|
18694
18686
|
|
|
18695
|
-
var _templateObject$11, _templateObject2$N, _templateObject3$G, _templateObject4$t, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$
|
|
18687
|
+
var _templateObject$11, _templateObject2$N, _templateObject3$G, _templateObject4$t, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$6;
|
|
18696
18688
|
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
18689
|
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
18690
|
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 +18707,7 @@ var CustomLine$6 = styled__default(HeaderLine$9)(_templateObject8$l || (_templat
|
|
|
18715
18707
|
});
|
|
18716
18708
|
var GraphLine = styled__default(CustomLine$6)(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
|
|
18717
18709
|
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$
|
|
18710
|
+
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
18711
|
|
|
18720
18712
|
var Template10 = function Template10(props) {
|
|
18721
18713
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|