@mw-kit/mw-ui 1.7.37 → 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
@@ -15545,7 +15545,7 @@ var Switch = function Switch(props) {
15545
15545
  })), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
15546
15546
  };
15547
15547
 
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;
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;
15549
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) {
15550
15550
  var theme = _ref.theme;
15551
15551
  return theme.spacings.s4;
@@ -15560,60 +15560,78 @@ var bullet = styled.css(_templateObject$q || (_templateObject$q = _taggedTemplat
15560
15560
  return theme.getColor('black', 10);
15561
15561
  });
15562
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);
15563
- 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) {
15564
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;
15565
15569
  return theme.useTypography('p');
15566
- }, function (_ref6) {
15567
- var width = _ref6.width;
15568
- return width || '100%';
15569
15570
  }, function (_ref7) {
15570
- var disabled = _ref7.disabled;
15571
- if (!disabled) return;
15572
- return styled.css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
15571
+ var width = _ref7.width;
15572
+ return width || '100%';
15573
15573
  }, function (_ref8) {
15574
- var theme = _ref8.theme;
15575
- return theme.spacings.s1;
15576
- }, 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) {
15577
15578
  var required = _ref9.required;
15578
- if (!required) return;
15579
- 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 "])));
15580
15580
  });
15581
- 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) {
15582
15582
  var theme = _ref10.theme,
15583
15583
  invalid = _ref10.invalid;
15584
15584
 
15585
15585
  if (!invalid) {
15586
- 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);
15587
15587
  }
15588
15588
 
15589
- 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);
15590
15590
  });
15591
- var MinMaxLabelContainer = styled__default.div(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding-bottom: 2px;\n"])));
15592
- 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) {
15593
15593
  var position = _ref11.position;
15594
15594
 
15595
15595
  if (position === 'bottom') {
15596
- 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);
15597
15597
  }
15598
15598
 
15599
- 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);
15600
15600
  });
15601
- 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) {
15602
15602
  var theme = _ref12.theme;
15603
15603
  return theme.getColor('greyishBlue', 10);
15604
15604
  }, function (_ref13) {
15605
15605
  var percent = _ref13.percent;
15606
15606
  return percent;
15607
15607
  });
15608
- var MarkersContainer = styled__default.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
15609
- 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) {
15610
15610
  var left = _ref14.left;
15611
15611
  return left;
15612
15612
  }, function (_ref15) {
15613
15613
  var bullet = _ref15.bullet,
15614
15614
  theme = _ref15.theme;
15615
15615
  if (!bullet) return;
15616
- 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;
15617
15635
  });
15618
15636
 
15619
15637
  var getMarkers = function getMarkers(props) {
@@ -15686,6 +15704,16 @@ var getMarkers = function getMarkers(props) {
15686
15704
  };
15687
15705
  };
15688
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
+
15689
15717
  var Range = React__default.forwardRef(function (props, ref) {
15690
15718
  var label = props.label,
15691
15719
  minLabel = props.minLabel,
@@ -15693,7 +15721,8 @@ var Range = React__default.forwardRef(function (props, ref) {
15693
15721
  invalid = props.invalid,
15694
15722
  disabled = props.disabled,
15695
15723
  required = props.required,
15696
- width = props.width;
15724
+ width = props.width,
15725
+ setValue = props.setValue;
15697
15726
 
15698
15727
  var _getMarkers = getMarkers(props),
15699
15728
  min = _getMarkers.min,
@@ -15712,18 +15741,69 @@ var Range = React__default.forwardRef(function (props, ref) {
15712
15741
  throw new Error('Invalid value');
15713
15742
  }
15714
15743
 
15715
- var _onChange = props.onChange || function () {};
15716
-
15717
- var onChange = strict ? function (event) {
15718
- var index = parseInt(event.target.value);
15744
+ var getValue = strict ? function (v) {
15745
+ var index = typeof v === 'number' ? v : parseInt(v);
15719
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
+ };
15720
15752
 
15721
- _onChange(event, value);
15722
- } : function (event) {
15723
- 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);
15724
15759
 
15725
15760
  _onChange(event, value);
15726
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
+
15727
15807
  var inputProps = filterObject(props, ['label', 'minLabel', 'maxLabel', 'invalid', 'required', 'width', 'onChange', 'step', 'value'], {
15728
15808
  min: min,
15729
15809
  max: max,
@@ -15735,17 +15815,14 @@ var Range = React__default.forwardRef(function (props, ref) {
15735
15815
  required: required ? 1 : 0,
15736
15816
  disabled: disabled ? 1 : 0,
15737
15817
  width: width
15738
- }, React__default.createElement("div", null, label), React__default.createElement(LabelsContainer, {
15818
+ }, label && React__default.createElement("div", {
15819
+ children: label
15820
+ }), React__default.createElement(LabelsContainer, {
15739
15821
  position: position
15740
15822
  }, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
15741
15823
  invalid: invalid ? 1 : 0
15742
15824
  }, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
15743
- var z = markers.length - 2;
15744
- if (z < markers.length - 1) z = markers.length - 1;
15745
- var y = 20 / z;
15746
- var x = 20 - y * (z - index);
15747
- var p = index * percent;
15748
- var left = "calc(" + p + "% - 10px - " + x + "px)";
15825
+ var left = getLeft(markers.length, percent, index);
15749
15826
  var bullet = marker.value > value ? 1 : 0;
15750
15827
  return React__default.createElement(Marker, {
15751
15828
  key: marker.value,
@@ -15754,7 +15831,20 @@ var Range = React__default.forwardRef(function (props, ref) {
15754
15831
  }, marker.label);
15755
15832
  })), React__default.createElement("div", null, React__default.createElement(Input$2, Object.assign({
15756
15833
  ref: ref
15757
- }, 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, {
15758
15848
  percent: percent
15759
15849
  }, Array(spans).fill(1).map(function (_value, index) {
15760
15850
  return React__default.createElement("span", {
@@ -15765,7 +15855,7 @@ var Range = React__default.forwardRef(function (props, ref) {
15765
15855
  Range.displayName = 'input';
15766
15856
 
15767
15857
  var _templateObject$r, _templateObject2$n, _templateObject3$j, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b;
15768
- 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) {
15769
15859
  var theme = _ref.theme;
15770
15860
  return theme.useTypography('p');
15771
15861
  });
@@ -15783,7 +15873,7 @@ var Label$6 = styled__default.label(_templateObject2$n || (_templateObject2$n =
15783
15873
  }, function (_ref4) {
15784
15874
  var required = _ref4.required;
15785
15875
  if (!required) return;
15786
- 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);
15787
15877
  }, function (_ref5) {
15788
15878
  var invalid = _ref5.invalid;
15789
15879
 
@@ -15821,7 +15911,7 @@ var RadioButton = function RadioButton(props) {
15821
15911
  invalid: invalid ? 1 : 0
15822
15912
  }, React__default.createElement("input", Object.assign({}, htmlProps, {
15823
15913
  type: 'radio'
15824
- })), 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));
15825
15915
  };
15826
15916
 
15827
15917
  var validate = function validate(_ref, min, max) {
@@ -16009,7 +16099,7 @@ var parse = function parse(value) {
16009
16099
 
16010
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;
16011
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"])));
16012
- 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) {
16013
16103
  var theme = _ref.theme;
16014
16104
  return theme.useTypography('p');
16015
16105
  }, function (_ref2) {
@@ -16177,7 +16267,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
16177
16267
  paddingless: props.paddingless ? 1 : 0,
16178
16268
  borderless: props.borderless ? 1 : 0
16179
16269
  }, function () {
16180
- var label = React__default.createElement(LabelContainer$5, {
16270
+ var label = React__default.createElement(LabelContainer$6, {
16181
16271
  onClick: onClick
16182
16272
  }, !value.some(function (v) {
16183
16273
  return !isDateInstance(v);