@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.
@@ -15,6 +15,7 @@ export interface RangeProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
15
15
  value: number;
16
16
  width?: string;
17
17
  onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: number) => void;
18
+ setValue: React.Dispatch<React.SetStateAction<number>>;
18
19
  markers?: {
19
20
  min?: number;
20
21
  max?: number;
@@ -5,6 +5,7 @@ interface StyledLabelProps extends React.HtmlHTMLAttributes<HTMLDivElement> {
5
5
  required: 1 | 0;
6
6
  width?: string;
7
7
  }
8
+ export declare const LabelContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
9
  export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, StyledLabelProps, never>;
9
10
  interface InputContainerProps extends React.HtmlHTMLAttributes<HTMLDivElement> {
10
11
  invalid: 1 | 0;
@@ -25,4 +26,8 @@ interface MarkerProps extends React.HtmlHTMLAttributes<HTMLDivElement> {
25
26
  bullet: 1 | 0;
26
27
  }
27
28
  export declare const Marker: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, MarkerProps, never>;
29
+ export declare const Text: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
30
+ percent: number;
31
+ position: 'bottom' | 'top';
32
+ }, never>;
28
33
  export {};
package/dist/index.js CHANGED
@@ -12435,7 +12435,6 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12435
12435
  }),
12436
12436
  width: '14px'
12437
12437
  };
12438
- inputProps.disabled = true;
12439
12438
  } else if (clearable) {
12440
12439
  position = position || 'right';
12441
12440
  iconOnClick = typeof clearable === 'function' ? clearable : function () {
@@ -15546,7 +15545,7 @@ var Switch = function Switch(props) {
15546
15545
  })), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
15547
15546
  };
15548
15547
 
15549
- 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;
15548
+ 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;
15550
15549
  var bullet = styled.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) {
15551
15550
  var theme = _ref.theme;
15552
15551
  return theme.spacings.s4;
@@ -15561,60 +15560,78 @@ var bullet = styled.css(_templateObject$q || (_templateObject$q = _taggedTemplat
15561
15560
  return theme.getColor('black', 10);
15562
15561
  });
15563
15562
  var Input$2 = styled__default.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);
15564
- var Label$5 = styled__default.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) {
15563
+ var LabelContainer$4 = styled__default.div(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n"])), function (_ref5) {
15565
15564
  var theme = _ref5.theme;
15565
+ return theme.spacings.s1;
15566
+ });
15567
+ var Label$5 = styled__default.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) {
15568
+ var theme = _ref6.theme;
15566
15569
  return theme.useTypography('p');
15567
- }, function (_ref6) {
15568
- var width = _ref6.width;
15569
- return width || '100%';
15570
15570
  }, function (_ref7) {
15571
- var disabled = _ref7.disabled;
15572
- if (!disabled) return;
15573
- return styled.css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15571
+ var width = _ref7.width;
15572
+ return width || '100%';
15574
15573
  }, function (_ref8) {
15575
- var theme = _ref8.theme;
15576
- return theme.spacings.s1;
15577
- }, function (_ref9) {
15574
+ var disabled = _ref8.disabled;
15575
+ if (!disabled) return;
15576
+ return styled.css(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15577
+ }, LabelContainer$4, function (_ref9) {
15578
15578
  var required = _ref9.required;
15579
- if (!required) return;
15580
- return styled.css(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
15579
+ return required && styled.css(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
15581
15580
  });
15582
- var InputContainer$1 = styled__default.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) {
15581
+ var InputContainer$1 = styled__default.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) {
15583
15582
  var theme = _ref10.theme,
15584
15583
  invalid = _ref10.invalid;
15585
15584
 
15586
15585
  if (!invalid) {
15587
- return styled.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);
15586
+ return styled.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);
15588
15587
  }
15589
15588
 
15590
- return styled.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);
15589
+ return styled.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);
15591
15590
  });
15592
- var MinMaxLabelContainer = styled__default.div(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
15593
- var LabelsContainer = styled__default.div(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
15591
+ var MinMaxLabelContainer = styled__default.div(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
15592
+ var LabelsContainer = styled__default.div(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 7px;\n\n ", "\n"])), function (_ref11) {
15594
15593
  var position = _ref11.position;
15595
15594
 
15596
15595
  if (position === 'bottom') {
15597
- return styled.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);
15596
+ return styled.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);
15598
15597
  }
15599
15598
 
15600
- return styled.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);
15599
+ return styled.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);
15601
15600
  });
15602
- var SelectedArea = styled__default.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) {
15601
+ var SelectedArea = styled__default.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) {
15603
15602
  var theme = _ref12.theme;
15604
15603
  return theme.getColor('greyishBlue', 10);
15605
15604
  }, function (_ref13) {
15606
15605
  var percent = _ref13.percent;
15607
15606
  return percent;
15608
15607
  });
15609
- var MarkersContainer = styled__default.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
15610
- var Marker = styled__default.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) {
15608
+ var MarkersContainer = styled__default.div(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
15609
+ var Marker = styled__default.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) {
15611
15610
  var left = _ref14.left;
15612
15611
  return left;
15613
15612
  }, function (_ref15) {
15614
15613
  var bullet = _ref15.bullet,
15615
15614
  theme = _ref15.theme;
15616
15615
  if (!bullet) return;
15617
- return styled.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));
15616
+ return styled.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));
15617
+ });
15618
+ var Text = styled__default.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) {
15619
+ var position = _ref16.position;
15620
+ return position === 'bottom' ? styled.css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n bottom: calc(100% + 10px);\n "]))) : styled.css(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n top: calc(100% + 10px);\n "])));
15621
+ }, function (_ref17) {
15622
+ var percent = _ref17.percent;
15623
+ if (percent < 10) return '0%';
15624
+ if (percent > 90) return 'calc(100% - 80px)';
15625
+ return "calc(" + percent + "% - 40px + 22px * " + (50 - percent) / 100 + ")";
15626
+ }, function (_ref18) {
15627
+ var theme = _ref18.theme;
15628
+ return theme.colors.blue;
15629
+ }, function (_ref19) {
15630
+ var theme = _ref19.theme;
15631
+ return theme.colors.white;
15632
+ }, function (_ref20) {
15633
+ var theme = _ref20.theme;
15634
+ return theme.spacings.s1;
15618
15635
  });
15619
15636
 
15620
15637
  var getMarkers = function getMarkers(props) {
@@ -15687,6 +15704,16 @@ var getMarkers = function getMarkers(props) {
15687
15704
  };
15688
15705
  };
15689
15706
 
15707
+ var getLeft = function getLeft(markers, percent, index) {
15708
+ var z = markers - 2;
15709
+ if (z < markers - 1) z = markers - 1;
15710
+ var y = 20 / z;
15711
+ var x = 20 - y * (z - index);
15712
+ var p = index * percent;
15713
+ var left = "calc(" + p + "% - 10px - " + x + "px)";
15714
+ return left;
15715
+ };
15716
+
15690
15717
  var Range = React__default.forwardRef(function (props, ref) {
15691
15718
  var label = props.label,
15692
15719
  minLabel = props.minLabel,
@@ -15694,7 +15721,8 @@ var Range = React__default.forwardRef(function (props, ref) {
15694
15721
  invalid = props.invalid,
15695
15722
  disabled = props.disabled,
15696
15723
  required = props.required,
15697
- width = props.width;
15724
+ width = props.width,
15725
+ setValue = props.setValue;
15698
15726
 
15699
15727
  var _getMarkers = getMarkers(props),
15700
15728
  min = _getMarkers.min,
@@ -15713,18 +15741,69 @@ var Range = React__default.forwardRef(function (props, ref) {
15713
15741
  throw new Error('Invalid value');
15714
15742
  }
15715
15743
 
15716
- var _onChange = props.onChange || function () {};
15717
-
15718
- var onChange = strict ? function (event) {
15719
- var index = parseInt(event.target.value);
15744
+ var getValue = strict ? function (v) {
15745
+ var index = typeof v === 'number' ? v : parseInt(v);
15720
15746
  var value = markers[index].value;
15747
+ return value;
15748
+ } : function (v) {
15749
+ var value = typeof v === 'number' ? v : parseFloat(v);
15750
+ return value;
15751
+ };
15721
15752
 
15722
- _onChange(event, value);
15723
- } : function (event) {
15724
- var value = parseFloat(event.target.value);
15753
+ var _onChange = props.onChange || function (_event, value) {
15754
+ return setValue(value);
15755
+ };
15756
+
15757
+ var onChange = function onChange(event) {
15758
+ var value = getValue(event.target.value);
15725
15759
 
15726
15760
  _onChange(event, value);
15727
15761
  };
15762
+
15763
+ var _ref = strict ? {
15764
+ increment: function increment() {
15765
+ setValue(function (prev) {
15766
+ var index = markers.findIndex(function (e) {
15767
+ return e.value === prev;
15768
+ });
15769
+ if (index < 0) return prev;
15770
+ var x = index + 1;
15771
+ return x < markers.length ? markers[x].value : prev;
15772
+ });
15773
+ },
15774
+ canIncrement: value + 1 < markers.length,
15775
+ decrement: function decrement() {
15776
+ setValue(function (prev) {
15777
+ var index = markers.findIndex(function (e) {
15778
+ return e.value === prev;
15779
+ });
15780
+ if (index < 0) return prev;
15781
+ var x = index - 1;
15782
+ return x >= 0 ? markers[x].value : prev;
15783
+ });
15784
+ },
15785
+ canDecrement: value - 1 >= 0
15786
+ } : {
15787
+ increment: function increment() {
15788
+ setValue(function (prev) {
15789
+ var x = prev + step;
15790
+ return x > max ? prev : x;
15791
+ });
15792
+ },
15793
+ canIncrement: value + step <= max,
15794
+ decrement: function decrement() {
15795
+ setValue(function (prev) {
15796
+ var x = prev - step;
15797
+ return x < min ? prev : x;
15798
+ });
15799
+ },
15800
+ canDecrement: value - step >= min
15801
+ },
15802
+ increment = _ref.increment,
15803
+ canIncrement = _ref.canIncrement,
15804
+ decrement = _ref.decrement,
15805
+ canDecrement = _ref.canDecrement;
15806
+
15728
15807
  var inputProps = filterObject(props, ['label', 'minLabel', 'maxLabel', 'invalid', 'required', 'width', 'onChange', 'step', 'value'], {
15729
15808
  min: min,
15730
15809
  max: max,
@@ -15736,17 +15815,14 @@ var Range = React__default.forwardRef(function (props, ref) {
15736
15815
  required: required ? 1 : 0,
15737
15816
  disabled: disabled ? 1 : 0,
15738
15817
  width: width
15739
- }, React__default.createElement("div", null, label), React__default.createElement(LabelsContainer, {
15818
+ }, label && React__default.createElement("div", {
15819
+ children: label
15820
+ }), React__default.createElement(LabelsContainer, {
15740
15821
  position: position
15741
15822
  }, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
15742
15823
  invalid: invalid ? 1 : 0
15743
15824
  }, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
15744
- var z = markers.length - 2;
15745
- if (z < markers.length - 1) z = markers.length - 1;
15746
- var y = 20 / z;
15747
- var x = 20 - y * (z - index);
15748
- var p = index * percent;
15749
- var left = "calc(" + p + "% - 10px - " + x + "px)";
15825
+ var left = getLeft(markers.length, percent, index);
15750
15826
  var bullet = marker.value > value ? 1 : 0;
15751
15827
  return React__default.createElement(Marker, {
15752
15828
  key: marker.value,
@@ -15755,7 +15831,20 @@ var Range = React__default.forwardRef(function (props, ref) {
15755
15831
  }, marker.label);
15756
15832
  })), React__default.createElement("div", null, React__default.createElement(Input$2, Object.assign({
15757
15833
  ref: ref
15758
- }, inputProps)), React__default.createElement(SelectedArea, {
15834
+ }, inputProps)), React__default.createElement(Text, {
15835
+ percent: value * 100 / max,
15836
+ position: position
15837
+ }, React__default.createElement(Icon, {
15838
+ type: 'feather',
15839
+ icon: 'minus_circle',
15840
+ color: 'white',
15841
+ onClick: canDecrement ? decrement : undefined
15842
+ }), getValue(value), React__default.createElement(Icon, {
15843
+ type: 'feather',
15844
+ icon: 'plus_circle',
15845
+ color: 'white',
15846
+ onClick: canIncrement ? increment : undefined
15847
+ })), React__default.createElement(SelectedArea, {
15759
15848
  percent: percent
15760
15849
  }, Array(spans).fill(1).map(function (_value, index) {
15761
15850
  return React__default.createElement("span", {
@@ -15766,7 +15855,7 @@ var Range = React__default.forwardRef(function (props, ref) {
15766
15855
  Range.displayName = 'input';
15767
15856
 
15768
15857
  var _templateObject$r, _templateObject2$n, _templateObject3$j, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b;
15769
- var LabelContainer$4 = styled__default.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
15858
+ var LabelContainer$5 = styled__default.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
15770
15859
  var theme = _ref.theme;
15771
15860
  return theme.useTypography('p');
15772
15861
  });
@@ -15784,7 +15873,7 @@ var Label$6 = styled__default.label(_templateObject2$n || (_templateObject2$n =
15784
15873
  }, function (_ref4) {
15785
15874
  var required = _ref4.required;
15786
15875
  if (!required) return;
15787
- return styled.css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: ' *';\n }\n }\n "])), LabelContainer$4);
15876
+ return styled.css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: ' *';\n }\n }\n "])), LabelContainer$5);
15788
15877
  }, function (_ref5) {
15789
15878
  var invalid = _ref5.invalid;
15790
15879
 
@@ -15822,7 +15911,7 @@ var RadioButton = function RadioButton(props) {
15822
15911
  invalid: invalid ? 1 : 0
15823
15912
  }, React__default.createElement("input", Object.assign({}, htmlProps, {
15824
15913
  type: 'radio'
15825
- })), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$4, null, label));
15914
+ })), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$5, null, label));
15826
15915
  };
15827
15916
 
15828
15917
  var validate = function validate(_ref, min, max) {
@@ -16010,7 +16099,7 @@ var parse = function parse(value) {
16010
16099
 
16011
16100
  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;
16012
16101
  var RelativeContainer$5 = styled__default.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"])));
16013
- var LabelContainer$5 = styled__default.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) {
16102
+ var LabelContainer$6 = styled__default.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) {
16014
16103
  var theme = _ref.theme;
16015
16104
  return theme.useTypography('p');
16016
16105
  }, function (_ref2) {
@@ -16178,7 +16267,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
16178
16267
  paddingless: props.paddingless ? 1 : 0,
16179
16268
  borderless: props.borderless ? 1 : 0
16180
16269
  }, function () {
16181
- var label = React__default.createElement(LabelContainer$5, {
16270
+ var label = React__default.createElement(LabelContainer$6, {
16182
16271
  onClick: onClick
16183
16272
  }, !value.some(function (v) {
16184
16273
  return !isDateInstance(v);