@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.
@@ -59,6 +59,7 @@ var colors = {
59
59
  darkGrey: '#949494',
60
60
  darkSilver: '#525A6A',
61
61
  floralWhite: '#FFFAF3',
62
+ ghostWhite: '#F9FAFB',
62
63
  green: '#76B100',
63
64
  grey: '#ADADAD',
64
65
  greyishBlue: '#263046',
@@ -70,6 +71,7 @@ var colors = {
70
71
  milkWhite: '#FCFFF5',
71
72
  orange: '#FB8702',
72
73
  pink: '#E23851',
74
+ platinum: '#E2E2E3',
73
75
  purple: '#8E66BB',
74
76
  red: '#C31717',
75
77
  silver: '#B2B2B2',
@@ -13726,8 +13728,8 @@ var getTimeProps = function getTimeProps(time, value) {
13726
13728
  });
13727
13729
  };
13728
13730
 
13729
- var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$9, _templateObject5$8, _templateObject6$7, _templateObject7$7, _templateObject8$6, _templateObject9$6, _templateObject10$6, _templateObject11$3, _templateObject12$2;
13730
- var Button = styled.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 ", "\n }\n\n :hover {\n cursor: ", ";\n\n ", "\n }\n\n :active {\n ", ";\n }\n\n ", "\n"])), function (_ref) {
13731
+ var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$9, _templateObject5$8, _templateObject6$7, _templateObject7$7, _templateObject8$6, _templateObject9$6, _templateObject10$6;
13732
+ var Button = styled.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) {
13731
13733
  var theme = _ref.theme,
13732
13734
  appearance = _ref.appearance;
13733
13735
  return appearance === 'link' ? 0 : theme.spacings.s3;
@@ -13763,49 +13765,39 @@ var Button = styled.button(_templateObject$e || (_templateObject$e = _taggedTemp
13763
13765
 
13764
13766
  return theme.getColor('white');
13765
13767
  }, function (_ref6) {
13766
- var appearance = _ref6.appearance,
13767
- loading = _ref6.loading,
13768
- theme = _ref6.theme;
13768
+ var loading = _ref6.loading,
13769
+ disabled = _ref6.disabled;
13770
+ return loading || disabled ? 'default' : 'pointer';
13771
+ }, function (_ref7) {
13772
+ var appearance = _ref7.appearance,
13773
+ color = _ref7.color,
13774
+ theme = _ref7.theme;
13769
13775
 
13770
- if (['bordered', 'link', 'borderless'].includes(appearance)) {
13771
- return css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n opacity: 0.3;\n pointer-events: none;\n "])));
13776
+ if (appearance === 'bordered') {
13777
+ return css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n color: ", ";\n border: 1px solid ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
13778
+ } else if (['link', 'borderless'].includes(appearance)) {
13779
+ return css(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.blue);
13772
13780
  }
13773
13781
 
13774
- return css(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border-color: ", ";\n color: ", ";\n pointer-events: none;\n "])), theme.getColor('greyishBlue', 10), theme.getColor('greyishBlue', 10), loading ? 'transparent' : theme.getColor('greyishBlue', 30));
13775
- }, function (_ref7) {
13776
- var loading = _ref7.loading,
13777
- disabled = _ref7.disabled;
13778
- return loading || disabled ? 'default' : 'pointer';
13782
+ return css(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border-color: ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
13779
13783
  }, function (_ref8) {
13780
13784
  var appearance = _ref8.appearance,
13781
13785
  color = _ref8.color,
13782
13786
  theme = _ref8.theme;
13783
13787
 
13784
13788
  if (appearance === 'bordered') {
13785
- return css(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n color: ", ";\n border: 1px solid ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
13786
- } else if (['link', 'borderless'].includes(appearance)) {
13787
- return css(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.blue);
13788
- }
13789
-
13790
- return css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border-color: ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
13791
- }, function (_ref9) {
13792
- var appearance = _ref9.appearance,
13793
- color = _ref9.color,
13794
- theme = _ref9.theme;
13795
-
13796
- if (appearance === 'bordered') {
13797
- return css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.getColor('iceWhite'));
13789
+ return css(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), theme.getColor('iceWhite'));
13798
13790
  }
13799
13791
 
13800
13792
  if (['link', 'borderless'].includes(appearance)) {
13801
- return css(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
13793
+ return css(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor('blue', 50));
13802
13794
  }
13803
13795
 
13804
- return css(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor(color || 'blue'));
13805
- }, function (_ref10) {
13806
- var loading = _ref10.loading;
13796
+ return css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.getColor(color || 'blue'));
13797
+ }, function (_ref9) {
13798
+ var loading = _ref9.loading;
13807
13799
  if (!loading) return;
13808
- return css(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n "])));
13800
+ return css(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n pointer-events: none;\n "])));
13809
13801
  });
13810
13802
 
13811
13803
  var _excluded = ["children", "content"];
@@ -16225,7 +16217,7 @@ var parse = function parse(value) {
16225
16217
  });
16226
16218
  };
16227
16219
 
16228
- var _templateObject$B, _templateObject2$t, _templateObject3$n, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b, _templateObject8$8, _templateObject9$8, _templateObject10$7, _templateObject11$4, _templateObject12$3;
16220
+ 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;
16229
16221
  var RelativeContainer$5 = styled.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"])));
16230
16222
  var LabelContainer$6 = styled.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) {
16231
16223
  var theme = _ref.theme;
@@ -16275,13 +16267,13 @@ var Button$4 = styled.button(_templateObject9$8 || (_templateObject9$8 = _tagged
16275
16267
  if (!onClick) return;
16276
16268
  return css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
16277
16269
  });
16278
- var LabelText$1 = styled.label(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
16270
+ var LabelText$1 = styled.label(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
16279
16271
  var theme = _ref12.theme;
16280
16272
  return theme.spacings.s1;
16281
16273
  }, function (_ref13) {
16282
16274
  var required = _ref13.required;
16283
16275
  if (!required) return;
16284
- return css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
16276
+ return css(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
16285
16277
  });
16286
16278
 
16287
16279
  var Component$1 = React__default.forwardRef(function (props, ref) {
@@ -17770,7 +17762,7 @@ var useContext$2 = function useContext() {
17770
17762
  return React__default.useContext(Provider$2);
17771
17763
  };
17772
17764
 
17773
- var _templateObject$M, _templateObject2$z, _templateObject3$s, _templateObject4$h, _templateObject5$e, _templateObject6$d, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject10$9, _templateObject11$5, _templateObject12$4, _templateObject13$2, _templateObject14$2, _templateObject15$2;
17765
+ 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;
17774
17766
  var aligns = {
17775
17767
  self: {
17776
17768
  horizontal: {
@@ -17861,13 +17853,13 @@ var Col = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLi
17861
17853
  var bordered = _ref5.bordered,
17862
17854
  lightestGrey = _ref5.theme.colors.lightestGrey;
17863
17855
  if (!bordered) return;
17864
- return css(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
17856
+ return css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n :not(:last-child) {\n border-right: 1px solid ", ";\n }\n "])), lightestGrey);
17865
17857
  }, function (_ref6) {
17866
17858
  var fontColor = _ref6.fontColor,
17867
17859
  theme = _ref6.theme;
17868
17860
  if (fontColor === undefined) return;
17869
17861
  var c = Array.isArray(fontColor) ? theme.getColor.apply(theme, fontColor) : theme.colors[fontColor];
17870
- return css(_templateObject12$4 || (_templateObject12$4 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), c);
17862
+ return css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), c);
17871
17863
  }, function (_ref7) {
17872
17864
  var backgroundColor = _ref7.backgroundColor,
17873
17865
  theme = _ref7.theme;
@@ -18287,7 +18279,7 @@ var Modal$1 = Object.assign(Modal, {
18287
18279
  Audit: Audit
18288
18280
  });
18289
18281
 
18290
- var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$k, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$6;
18282
+ var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$k, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$5;
18291
18283
  var Container$c = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
18292
18284
  var Header$6 = styled.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
18293
18285
  var HeaderImage = styled.div(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
@@ -18304,7 +18296,7 @@ var HeaderLine = styled.div(_templateObject6$g || (_templateObject6$g = _taggedT
18304
18296
  }, function (props) {
18305
18297
  return props.size === 'large' && css(_templateObject10$c || (_templateObject10$c = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
18306
18298
  });
18307
- var MainLine = styled(HeaderLine)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
18299
+ var MainLine = styled(HeaderLine)(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
18308
18300
 
18309
18301
  var Template1 = function Template1(props) {
18310
18302
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);
@@ -18689,7 +18681,7 @@ var Template8$1 = function Template8(props) {
18689
18681
  })), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
18690
18682
  };
18691
18683
 
18692
- var _templateObject$11, _templateObject2$N, _templateObject3$G, _templateObject4$t, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$7;
18684
+ var _templateObject$11, _templateObject2$N, _templateObject3$G, _templateObject4$t, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$6;
18693
18685
  var Container$l = styled.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"])));
18694
18686
  var Header$c = styled.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"])));
18695
18687
  var HeaderLine$9 = styled.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) {
@@ -18712,7 +18704,7 @@ var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$l || (_templateObject8$
18712
18704
  });
18713
18705
  var GraphLine = styled(CustomLine$6)(_templateObject9$j || (_templateObject9$j = _taggedTemplateLiteralLoose(["\n margin: 0 7px;\n"])));
18714
18706
  var Main$5 = styled.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"])));
18715
- var Circle$3 = styled.div(_templateObject11$7 || (_templateObject11$7 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
18707
+ var Circle$3 = styled.div(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose(["\n width: 128px;\n height: 128px;\n background-color: #ebebeb;\n border-radius: 50%;\n"])));
18716
18708
 
18717
18709
  var Template10 = function Template10(props) {
18718
18710
  if (!props.loading) return React__default.createElement(React__default.Fragment, null);