@mw-kit/mw-ui 1.7.36 → 1.7.38

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.
@@ -12432,7 +12432,6 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12432
12432
  }),
12433
12433
  width: '14px'
12434
12434
  };
12435
- inputProps.disabled = true;
12436
12435
  } else if (clearable) {
12437
12436
  position = position || 'right';
12438
12437
  iconOnClick = typeof clearable === 'function' ? clearable : function () {
@@ -15543,7 +15542,7 @@ var Switch = function Switch(props) {
15543
15542
  })), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
15544
15543
  };
15545
15544
 
15546
- var _templateObject$q, _templateObject2$m, _templateObject3$i, _templateObject4$d, _templateObject5$b, _templateObject6$a, _templateObject7$a, _templateObject8$8, _templateObject9$8, _templateObject10$6, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2;
15545
+ var _templateObject$q, _templateObject2$m, _templateObject3$i, _templateObject4$d, _templateObject5$b, _templateObject6$a, _templateObject7$a, _templateObject8$8, _templateObject9$8, _templateObject10$6, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$1, _templateObject20$1;
15547
15546
  var bullet = css(_templateObject$q || (_templateObject$q = _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) {
15548
15547
  var theme = _ref.theme;
15549
15548
  return theme.spacings.s4;
@@ -15558,60 +15557,78 @@ var bullet = css(_templateObject$q || (_templateObject$q = _taggedTemplateLitera
15558
15557
  return theme.getColor('black', 10);
15559
15558
  });
15560
15559
  var Input$2 = styled.input(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n appearance: none;\n width: 100%;\n height: 10px;\n background-color: transparent;\n outline: none;\n position: relative;\n z-index: 3;\n margin: 0;\n\n :not(:disabled) {\n cursor: pointer;\n }\n\n /** firefox */\n ::-moz-range-thumb {\n ", "\n }\n /** ie */\n ::-ms-thumb {\n ", "\n }\n /** chrome */\n ::-webkit-slider-thumb {\n ", "\n }\n"])), bullet, bullet, bullet);
15561
- var Label$5 = styled.label(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 19px;\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > div:first-child {\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n }\n"])), function (_ref5) {
15560
+ var LabelContainer$4 = styled.div(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n"])), function (_ref5) {
15562
15561
  var theme = _ref5.theme;
15562
+ return theme.spacings.s1;
15563
+ });
15564
+ var Label$5 = styled.label(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 19px;\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > ", " {\n ", "\n }\n"])), function (_ref6) {
15565
+ var theme = _ref6.theme;
15563
15566
  return theme.useTypography('p');
15564
- }, function (_ref6) {
15565
- var width = _ref6.width;
15566
- return width || '100%';
15567
15567
  }, function (_ref7) {
15568
- var disabled = _ref7.disabled;
15569
- if (!disabled) return;
15570
- return css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15568
+ var width = _ref7.width;
15569
+ return width || '100%';
15571
15570
  }, function (_ref8) {
15572
- var theme = _ref8.theme;
15573
- return theme.spacings.s1;
15574
- }, function (_ref9) {
15571
+ var disabled = _ref8.disabled;
15572
+ if (!disabled) return;
15573
+ return css(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15574
+ }, LabelContainer$4, function (_ref9) {
15575
15575
  var required = _ref9.required;
15576
- if (!required) return;
15577
- return css(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
15576
+ return required && css(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
15578
15577
  });
15579
- var InputContainer$1 = styled.div(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n gap: 6px;\n\n > div {\n position: relative;\n }\n\n ", "\n"])), function (_ref10) {
15578
+ var InputContainer$1 = styled.div(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n gap: 6px;\n\n > div {\n position: relative;\n }\n\n ", "\n"])), function (_ref10) {
15580
15579
  var theme = _ref10.theme,
15581
15580
  invalid = _ref10.invalid;
15582
15581
 
15583
15582
  if (!invalid) {
15584
- return css(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n ", " > span {\n background-color: ", ";\n }\n\n ", " {\n /** firefox */\n ::-moz-range-thumb {\n border-color: ", ";\n }\n /** ie */\n ::-ms-thumb {\n border-color: ", ";\n }\n /** chrome */\n ::-webkit-slider-thumb {\n border-color: ", ";\n }\n }\n "])), SelectedArea, theme.colors.blue, Input$2, theme.colors.lightestGrey, theme.colors.lightestGrey, theme.colors.lightestGrey);
15583
+ return css(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n ", " > span {\n background-color: ", ";\n }\n\n ", " {\n /** firefox */\n ::-moz-range-thumb {\n border-color: ", ";\n }\n /** ie */\n ::-ms-thumb {\n border-color: ", ";\n }\n /** chrome */\n ::-webkit-slider-thumb {\n border-color: ", ";\n }\n }\n "])), SelectedArea, theme.colors.blue, Input$2, theme.colors.lightestGrey, theme.colors.lightestGrey, theme.colors.lightestGrey);
15585
15584
  }
15586
15585
 
15587
- return css(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n ", " > span {\n background-color: ", ";\n }\n\n ", " {\n /** firefox */\n ::-moz-range-thumb {\n border-color: ", ";\n }\n /** ie */\n ::-ms-thumb {\n border-color: ", ";\n }\n /** chrome */\n ::-webkit-slider-thumb {\n border-color: ", ";\n }\n }\n "])), SelectedArea, theme.colors.warningRed, Input$2, theme.colors.warningRed, theme.colors.warningRed, theme.colors.warningRed);
15586
+ return css(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n ", " > span {\n background-color: ", ";\n }\n\n ", " {\n /** firefox */\n ::-moz-range-thumb {\n border-color: ", ";\n }\n /** ie */\n ::-ms-thumb {\n border-color: ", ";\n }\n /** chrome */\n ::-webkit-slider-thumb {\n border-color: ", ";\n }\n }\n "])), SelectedArea, theme.colors.warningRed, Input$2, theme.colors.warningRed, theme.colors.warningRed, theme.colors.warningRed);
15588
15587
  });
15589
- var MinMaxLabelContainer = styled.div(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
15590
- var LabelsContainer = styled.div(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
15588
+ var MinMaxLabelContainer = styled.div(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
15589
+ var LabelsContainer = styled.div(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
15591
15590
  var position = _ref11.position;
15592
15591
 
15593
15592
  if (position === 'bottom') {
15594
- return css(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 10.5px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15593
+ return css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 10.5px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15595
15594
  }
15596
15595
 
15597
- return css(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 8px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15596
+ return css(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 8px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15598
15597
  });
15599
- var SelectedArea = styled.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n height: 3px;\n width: 100%;\n position: absolute;\n bottom: calc(50% - 2px);\n left: 0;\n display: flex;\n z-index: 1;\n\n > span {\n width: ", "%;\n display: block;\n box-sizing: border-box;\n height: 100%;\n }\n"])), function (_ref12) {
15598
+ var SelectedArea = styled.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n height: 3px;\n width: 100%;\n position: absolute;\n bottom: calc(50% - 2px);\n left: 0;\n display: flex;\n z-index: 1;\n\n > span {\n width: ", "%;\n display: block;\n box-sizing: border-box;\n height: 100%;\n }\n"])), function (_ref12) {
15600
15599
  var theme = _ref12.theme;
15601
15600
  return theme.getColor('greyishBlue', 10);
15602
15601
  }, function (_ref13) {
15603
15602
  var percent = _ref13.percent;
15604
15603
  return percent;
15605
15604
  });
15606
- var MarkersContainer = styled.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
15607
- var Marker = styled.div(_templateObject15$2 || (_templateObject15$2 = _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) {
15605
+ var MarkersContainer = styled.div(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
15606
+ var Marker = styled.div(_templateObject16$2 || (_templateObject16$2 = _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) {
15608
15607
  var left = _ref14.left;
15609
15608
  return left;
15610
15609
  }, function (_ref15) {
15611
15610
  var bullet = _ref15.bullet,
15612
15611
  theme = _ref15.theme;
15613
15612
  if (!bullet) return;
15614
- return css(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n left: calc(50% - 5px);\n width: 10px;\n height: 10px;\n border-radius: 100%;\n border: 1px solid ", ";\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n }\n "])), theme.colors.lightestGrey, theme.colors.white, theme.getColor('black', 10));
15613
+ return css(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: '';\n position: absolute;\n left: calc(50% - 5px);\n width: 10px;\n height: 10px;\n border-radius: 100%;\n border: 1px solid ", ";\n background-color: ", ";\n box-shadow: 0px 1px 3px ", ";\n }\n "])), theme.colors.lightestGrey, theme.colors.white, theme.getColor('black', 10));
15614
+ });
15615
+ var Text = styled.div(_templateObject18$2 || (_templateObject18$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n ", "\n width: 80px;\n left: ", ";\n background-color: ", ";\n color: ", ";\n padding: ", ";\n border-radius: 4px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])), function (_ref16) {
15616
+ var position = _ref16.position;
15617
+ return position === 'bottom' ? css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n bottom: calc(100% + 10px);\n "]))) : css(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n top: calc(100% + 10px);\n "])));
15618
+ }, function (_ref17) {
15619
+ var percent = _ref17.percent;
15620
+ if (percent < 10) return '0%';
15621
+ if (percent > 90) return 'calc(100% - 80px)';
15622
+ return "calc(" + percent + "% - 40px + 22px * " + (50 - percent) / 100 + ")";
15623
+ }, function (_ref18) {
15624
+ var theme = _ref18.theme;
15625
+ return theme.colors.blue;
15626
+ }, function (_ref19) {
15627
+ var theme = _ref19.theme;
15628
+ return theme.colors.white;
15629
+ }, function (_ref20) {
15630
+ var theme = _ref20.theme;
15631
+ return theme.spacings.s1;
15615
15632
  });
15616
15633
 
15617
15634
  var getMarkers = function getMarkers(props) {
@@ -15684,6 +15701,16 @@ var getMarkers = function getMarkers(props) {
15684
15701
  };
15685
15702
  };
15686
15703
 
15704
+ var getLeft = function getLeft(markers, percent, index) {
15705
+ var z = markers - 2;
15706
+ if (z < markers - 1) z = markers - 1;
15707
+ var y = 20 / z;
15708
+ var x = 20 - y * (z - index);
15709
+ var p = index * percent;
15710
+ var left = "calc(" + p + "% - 10px - " + x + "px)";
15711
+ return left;
15712
+ };
15713
+
15687
15714
  var Range = React__default.forwardRef(function (props, ref) {
15688
15715
  var label = props.label,
15689
15716
  minLabel = props.minLabel,
@@ -15691,7 +15718,8 @@ var Range = React__default.forwardRef(function (props, ref) {
15691
15718
  invalid = props.invalid,
15692
15719
  disabled = props.disabled,
15693
15720
  required = props.required,
15694
- width = props.width;
15721
+ width = props.width,
15722
+ setValue = props.setValue;
15695
15723
 
15696
15724
  var _getMarkers = getMarkers(props),
15697
15725
  min = _getMarkers.min,
@@ -15710,18 +15738,69 @@ var Range = React__default.forwardRef(function (props, ref) {
15710
15738
  throw new Error('Invalid value');
15711
15739
  }
15712
15740
 
15713
- var _onChange = props.onChange || function () {};
15714
-
15715
- var onChange = strict ? function (event) {
15716
- var index = parseInt(event.target.value);
15741
+ var getValue = strict ? function (v) {
15742
+ var index = typeof v === 'number' ? v : parseInt(v);
15717
15743
  var value = markers[index].value;
15744
+ return value;
15745
+ } : function (v) {
15746
+ var value = typeof v === 'number' ? v : parseFloat(v);
15747
+ return value;
15748
+ };
15718
15749
 
15719
- _onChange(event, value);
15720
- } : function (event) {
15721
- var value = parseFloat(event.target.value);
15750
+ var _onChange = props.onChange || function (_event, value) {
15751
+ return setValue(value);
15752
+ };
15753
+
15754
+ var onChange = function onChange(event) {
15755
+ var value = getValue(event.target.value);
15722
15756
 
15723
15757
  _onChange(event, value);
15724
15758
  };
15759
+
15760
+ var _ref = strict ? {
15761
+ increment: function increment() {
15762
+ setValue(function (prev) {
15763
+ var index = markers.findIndex(function (e) {
15764
+ return e.value === prev;
15765
+ });
15766
+ if (index < 0) return prev;
15767
+ var x = index + 1;
15768
+ return x < markers.length ? markers[x].value : prev;
15769
+ });
15770
+ },
15771
+ canIncrement: value + 1 < markers.length,
15772
+ decrement: function decrement() {
15773
+ setValue(function (prev) {
15774
+ var index = markers.findIndex(function (e) {
15775
+ return e.value === prev;
15776
+ });
15777
+ if (index < 0) return prev;
15778
+ var x = index - 1;
15779
+ return x >= 0 ? markers[x].value : prev;
15780
+ });
15781
+ },
15782
+ canDecrement: value - 1 >= 0
15783
+ } : {
15784
+ increment: function increment() {
15785
+ setValue(function (prev) {
15786
+ var x = prev + step;
15787
+ return x > max ? prev : x;
15788
+ });
15789
+ },
15790
+ canIncrement: value + step <= max,
15791
+ decrement: function decrement() {
15792
+ setValue(function (prev) {
15793
+ var x = prev - step;
15794
+ return x < min ? prev : x;
15795
+ });
15796
+ },
15797
+ canDecrement: value - step >= min
15798
+ },
15799
+ increment = _ref.increment,
15800
+ canIncrement = _ref.canIncrement,
15801
+ decrement = _ref.decrement,
15802
+ canDecrement = _ref.canDecrement;
15803
+
15725
15804
  var inputProps = filterObject(props, ['label', 'minLabel', 'maxLabel', 'invalid', 'required', 'width', 'onChange', 'step', 'value'], {
15726
15805
  min: min,
15727
15806
  max: max,
@@ -15733,17 +15812,14 @@ var Range = React__default.forwardRef(function (props, ref) {
15733
15812
  required: required ? 1 : 0,
15734
15813
  disabled: disabled ? 1 : 0,
15735
15814
  width: width
15736
- }, React__default.createElement("div", null, label), React__default.createElement(LabelsContainer, {
15815
+ }, label && React__default.createElement("div", {
15816
+ children: label
15817
+ }), React__default.createElement(LabelsContainer, {
15737
15818
  position: position
15738
15819
  }, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
15739
15820
  invalid: invalid ? 1 : 0
15740
15821
  }, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
15741
- var z = markers.length - 2;
15742
- if (z < markers.length - 1) z = markers.length - 1;
15743
- var y = 20 / z;
15744
- var x = 20 - y * (z - index);
15745
- var p = index * percent;
15746
- var left = "calc(" + p + "% - 10px - " + x + "px)";
15822
+ var left = getLeft(markers.length, percent, index);
15747
15823
  var bullet = marker.value > value ? 1 : 0;
15748
15824
  return React__default.createElement(Marker, {
15749
15825
  key: marker.value,
@@ -15752,7 +15828,20 @@ var Range = React__default.forwardRef(function (props, ref) {
15752
15828
  }, marker.label);
15753
15829
  })), React__default.createElement("div", null, React__default.createElement(Input$2, Object.assign({
15754
15830
  ref: ref
15755
- }, inputProps)), React__default.createElement(SelectedArea, {
15831
+ }, inputProps)), React__default.createElement(Text, {
15832
+ percent: value * 100 / max,
15833
+ position: position
15834
+ }, React__default.createElement(Icon, {
15835
+ type: 'feather',
15836
+ icon: 'minus_circle',
15837
+ color: 'white',
15838
+ onClick: canDecrement ? decrement : undefined
15839
+ }), getValue(value), React__default.createElement(Icon, {
15840
+ type: 'feather',
15841
+ icon: 'plus_circle',
15842
+ color: 'white',
15843
+ onClick: canIncrement ? increment : undefined
15844
+ })), React__default.createElement(SelectedArea, {
15756
15845
  percent: percent
15757
15846
  }, Array(spans).fill(1).map(function (_value, index) {
15758
15847
  return React__default.createElement("span", {
@@ -15763,7 +15852,7 @@ var Range = React__default.forwardRef(function (props, ref) {
15763
15852
  Range.displayName = 'input';
15764
15853
 
15765
15854
  var _templateObject$r, _templateObject2$n, _templateObject3$j, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b;
15766
- var LabelContainer$4 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
15855
+ var LabelContainer$5 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
15767
15856
  var theme = _ref.theme;
15768
15857
  return theme.useTypography('p');
15769
15858
  });
@@ -15781,7 +15870,7 @@ var Label$6 = styled.label(_templateObject2$n || (_templateObject2$n = _taggedTe
15781
15870
  }, function (_ref4) {
15782
15871
  var required = _ref4.required;
15783
15872
  if (!required) return;
15784
- return css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: ' *';\n }\n }\n "])), LabelContainer$4);
15873
+ return css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: ' *';\n }\n }\n "])), LabelContainer$5);
15785
15874
  }, function (_ref5) {
15786
15875
  var invalid = _ref5.invalid;
15787
15876
 
@@ -15819,7 +15908,7 @@ var RadioButton = function RadioButton(props) {
15819
15908
  invalid: invalid ? 1 : 0
15820
15909
  }, React__default.createElement("input", Object.assign({}, htmlProps, {
15821
15910
  type: 'radio'
15822
- })), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$4, null, label));
15911
+ })), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$5, null, label));
15823
15912
  };
15824
15913
 
15825
15914
  var validate = function validate(_ref, min, max) {
@@ -16007,7 +16096,7 @@ var parse = function parse(value) {
16007
16096
 
16008
16097
  var _templateObject$s, _templateObject2$o, _templateObject3$k, _templateObject4$f, _templateObject5$d, _templateObject6$c, _templateObject7$c, _templateObject8$9, _templateObject9$9, _templateObject10$7, _templateObject11$5, _templateObject12$4;
16009
16098
  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"])));
16010
- var LabelContainer$5 = styled.div(_templateObject2$o || (_templateObject2$o = _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) {
16099
+ var LabelContainer$6 = styled.div(_templateObject2$o || (_templateObject2$o = _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) {
16011
16100
  var theme = _ref.theme;
16012
16101
  return theme.useTypography('p');
16013
16102
  }, function (_ref2) {
@@ -16175,7 +16264,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
16175
16264
  paddingless: props.paddingless ? 1 : 0,
16176
16265
  borderless: props.borderless ? 1 : 0
16177
16266
  }, function () {
16178
- var label = React__default.createElement(LabelContainer$5, {
16267
+ var label = React__default.createElement(LabelContainer$6, {
16179
16268
  onClick: onClick
16180
16269
  }, !value.some(function (v) {
16181
16270
  return !isDateInstance(v);