@mw-kit/mw-ui 1.7.31 → 1.7.32

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.
@@ -15951,56 +15951,63 @@ var parse = function parse(value) {
15951
15951
  });
15952
15952
  };
15953
15953
 
15954
- var _templateObject$s, _templateObject2$n, _templateObject3$j, _templateObject4$f, _templateObject5$d, _templateObject6$c, _templateObject7$c, _templateObject8$9, _templateObject9$9, _templateObject10$7, _templateObject11$5;
15954
+ var _templateObject$s, _templateObject2$n, _templateObject3$j, _templateObject4$f, _templateObject5$d, _templateObject6$c, _templateObject7$c, _templateObject8$9, _templateObject9$9, _templateObject10$7, _templateObject11$5, _templateObject12$4;
15955
15955
  var RelativeContainer$5 = styled.div(_templateObject$s || (_templateObject$s = _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"])));
15956
- var LabelContainer$5 = styled.div(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n text-align: center;\n\n ", ";\n"])), function (_ref) {
15956
+ var LabelContainer$5 = styled.div(_templateObject2$n || (_templateObject2$n = _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) {
15957
15957
  var theme = _ref.theme;
15958
15958
  return theme.useTypography('p');
15959
15959
  }, function (_ref2) {
15960
- var onClick = _ref2.onClick;
15960
+ var children = _ref2.children;
15961
+ if (children) return;
15962
+ return css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n :after {\n content: '--/--/-- (--:--) \xE0 --/--/-- (--:--)';\n color: ", ";\n }\n "])), function (_ref3) {
15963
+ var theme = _ref3.theme;
15964
+ return theme.colors.darkGrey;
15965
+ });
15966
+ }, function (_ref4) {
15967
+ var onClick = _ref4.onClick;
15961
15968
  if (!onClick) return;
15962
- return css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
15969
+ return css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
15963
15970
  });
15964
- var Container$6 = styled.div(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n gap: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n\n width: 100%;\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref3) {
15965
- var theme = _ref3.theme;
15971
+ var Container$6 = styled.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n gap: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n\n width: 100%;\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref5) {
15972
+ var theme = _ref5.theme;
15966
15973
  return theme.spacings.s1;
15967
- }, function (_ref4) {
15968
- var theme = _ref4.theme,
15969
- invalid = _ref4.invalid,
15970
- borderless = _ref4.borderless;
15974
+ }, function (_ref6) {
15975
+ var theme = _ref6.theme,
15976
+ invalid = _ref6.invalid,
15977
+ borderless = _ref6.borderless;
15971
15978
  if (borderless) return 'transparent';
15972
15979
  return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
15973
- }, function (_ref5) {
15974
- var theme = _ref5.theme,
15975
- invalid = _ref5.invalid;
15976
-
15977
- var _ref6 = invalid ? [theme.getColor('warningRed', 5), theme.colors.warningRed] : [theme.colors.white, theme.colors.darkBlue],
15978
- bgColor = _ref6[0],
15979
- color = _ref6[1];
15980
-
15981
- return css(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n background-color: ", ";\n /** google chrome blue background */\n -webkit-box-shadow: 0 0 0px 1000px ", " inset !important;\n "])), color, bgColor, bgColor);
15982
15980
  }, function (_ref7) {
15983
15981
  var theme = _ref7.theme,
15984
- paddingless = _ref7.paddingless;
15982
+ invalid = _ref7.invalid;
15983
+
15984
+ var _ref8 = invalid ? [theme.getColor('warningRed', 5), theme.colors.warningRed] : [theme.colors.white, theme.colors.darkBlue],
15985
+ bgColor = _ref8[0],
15986
+ color = _ref8[1];
15987
+
15988
+ return css(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n color: ", ";\n background-color: ", ";\n /** google chrome blue background */\n -webkit-box-shadow: 0 0 0px 1000px ", " inset !important;\n "])), color, bgColor, bgColor);
15989
+ }, function (_ref9) {
15990
+ var theme = _ref9.theme,
15991
+ paddingless = _ref9.paddingless;
15985
15992
  if (paddingless) return;
15986
- return css(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n padding: ", " ", " ", "\n ", ";\n "])), theme.spacings.s2, theme.spacings.s1, theme.spacings.s2, theme.spacings.s3);
15987
- }, function (_ref8) {
15988
- var disabled = _ref8.disabled;
15993
+ return css(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n padding: ", " ", " ", "\n ", ";\n "])), theme.spacings.s2, theme.spacings.s1, theme.spacings.s2, theme.spacings.s3);
15994
+ }, function (_ref10) {
15995
+ var disabled = _ref10.disabled;
15989
15996
  if (!disabled) return;
15990
- return css(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15997
+ return css(_templateObject8$9 || (_templateObject8$9 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15991
15998
  });
15992
- var Button$4 = styled.button(_templateObject8$9 || (_templateObject8$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref9) {
15993
- var onClick = _ref9.onClick;
15999
+ var Button$4 = styled.button(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref11) {
16000
+ var onClick = _ref11.onClick;
15994
16001
  if (!onClick) return;
15995
- return css(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
16002
+ return css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
15996
16003
  });
15997
- var LabelText$1 = styled.label(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref10) {
15998
- var theme = _ref10.theme;
16004
+ var LabelText$1 = styled.label(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref12) {
16005
+ var theme = _ref12.theme;
15999
16006
  return theme.spacings.s1;
16000
- }, function (_ref11) {
16001
- var required = _ref11.required;
16007
+ }, function (_ref13) {
16008
+ var required = _ref13.required;
16002
16009
  if (!required) return;
16003
- return css(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
16010
+ return css(_templateObject12$4 || (_templateObject12$4 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
16004
16011
  });
16005
16012
 
16006
16013
  var Component$1 = React__default.forwardRef(function (props, ref) {
@@ -16116,9 +16123,9 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
16116
16123
  }, function () {
16117
16124
  var label = React__default.createElement(LabelContainer$5, {
16118
16125
  onClick: onClick
16119
- }, value.some(function (v) {
16126
+ }, !value.some(function (v) {
16120
16127
  return !isDateInstance(v);
16121
- }) ? '--/--/-- (--:--) à --/--/-- (--:--)' : config.label(value));
16128
+ }) && config.label(value));
16122
16129
  if (intervalType === 'custom') return label;
16123
16130
  var incrementProps = getArrowProps('increment');
16124
16131
  var decrementProps = getArrowProps('decrement');
@@ -16140,15 +16147,15 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
16140
16147
  icon: 'chevron_right',
16141
16148
  color: props.invalid ? 'warningRed' : 'grey',
16142
16149
  strokeWidth: '3px'
16143
- })), React__default.createElement(Button$4, {
16144
- onClick: onClick
16145
- }, React__default.createElement(Icon, {
16146
- type: 'feather',
16147
- icon: 'calendar',
16148
- color: props.invalid ? 'warningRed' : 'grey',
16149
- width: '24px'
16150
16150
  })));
16151
- }()), React__default.createElement(Menu, {
16151
+ }(), React__default.createElement(Button$4, {
16152
+ onClick: onClick
16153
+ }, React__default.createElement(Icon, {
16154
+ type: 'feather',
16155
+ icon: 'calendar',
16156
+ color: props.invalid ? 'warningRed' : 'grey',
16157
+ width: '24px'
16158
+ }))), React__default.createElement(Menu, {
16152
16159
  open: open === 'menu',
16153
16160
  close: function close() {
16154
16161
  return setOpen(null);
@@ -17464,7 +17471,7 @@ var useContext$2 = function useContext() {
17464
17471
  return React__default.useContext(Provider$2);
17465
17472
  };
17466
17473
 
17467
- var _templateObject$D, _templateObject2$t, _templateObject3$o, _templateObject4$i, _templateObject5$f, _templateObject6$e, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject10$9, _templateObject11$6, _templateObject12$4, _templateObject13$3, _templateObject14$3, _templateObject15$2;
17474
+ var _templateObject$D, _templateObject2$t, _templateObject3$o, _templateObject4$i, _templateObject5$f, _templateObject6$e, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject10$9, _templateObject11$6, _templateObject12$5, _templateObject13$3, _templateObject14$3, _templateObject15$2;
17468
17475
  var aligns = {
17469
17476
  self: {
17470
17477
  horizontal: {
@@ -17561,7 +17568,7 @@ var Col = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLi
17561
17568
  theme = _ref6.theme;
17562
17569
  if (fontColor === undefined) return;
17563
17570
  var c = Array.isArray(fontColor) ? theme.getColor.apply(theme, fontColor) : theme.colors[fontColor];
17564
- return css(_templateObject12$4 || (_templateObject12$4 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), c);
17571
+ return css(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), c);
17565
17572
  }, function (_ref7) {
17566
17573
  var backgroundColor = _ref7.backgroundColor,
17567
17574
  theme = _ref7.theme;