@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.
- package/dist/components/Input/components/Range/interfaces.d.ts +1 -0
- package/dist/components/Input/components/Range/styles.d.ts +5 -0
- package/dist/index.js +135 -45
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +135 -45
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -15542,7 +15542,7 @@ var Switch = function Switch(props) {
|
|
|
15542
15542
|
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
|
|
15543
15543
|
};
|
|
15544
15544
|
|
|
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;
|
|
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;
|
|
15546
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) {
|
|
15547
15547
|
var theme = _ref.theme;
|
|
15548
15548
|
return theme.spacings.s4;
|
|
@@ -15557,60 +15557,78 @@ var bullet = css(_templateObject$q || (_templateObject$q = _taggedTemplateLitera
|
|
|
15557
15557
|
return theme.getColor('black', 10);
|
|
15558
15558
|
});
|
|
15559
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);
|
|
15560
|
-
var
|
|
15560
|
+
var LabelContainer$4 = styled.div(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n"])), function (_ref5) {
|
|
15561
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;
|
|
15562
15566
|
return theme.useTypography('p');
|
|
15563
|
-
}, function (_ref6) {
|
|
15564
|
-
var width = _ref6.width;
|
|
15565
|
-
return width || '100%';
|
|
15566
15567
|
}, function (_ref7) {
|
|
15567
|
-
var
|
|
15568
|
-
|
|
15569
|
-
return css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15568
|
+
var width = _ref7.width;
|
|
15569
|
+
return width || '100%';
|
|
15570
15570
|
}, function (_ref8) {
|
|
15571
|
-
var
|
|
15572
|
-
return
|
|
15573
|
-
|
|
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) {
|
|
15574
15575
|
var required = _ref9.required;
|
|
15575
|
-
|
|
15576
|
-
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 "])));
|
|
15577
15577
|
});
|
|
15578
|
-
var InputContainer$1 = styled.div(
|
|
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) {
|
|
15579
15579
|
var theme = _ref10.theme,
|
|
15580
15580
|
invalid = _ref10.invalid;
|
|
15581
15581
|
|
|
15582
15582
|
if (!invalid) {
|
|
15583
|
-
return css(
|
|
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);
|
|
15584
15584
|
}
|
|
15585
15585
|
|
|
15586
|
-
return css(
|
|
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);
|
|
15587
15587
|
});
|
|
15588
|
-
var MinMaxLabelContainer = styled.div(
|
|
15589
|
-
var LabelsContainer = styled.div(
|
|
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) {
|
|
15590
15590
|
var position = _ref11.position;
|
|
15591
15591
|
|
|
15592
15592
|
if (position === 'bottom') {
|
|
15593
|
-
return css(
|
|
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);
|
|
15594
15594
|
}
|
|
15595
15595
|
|
|
15596
|
-
return css(
|
|
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);
|
|
15597
15597
|
});
|
|
15598
|
-
var SelectedArea = styled.div(
|
|
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) {
|
|
15599
15599
|
var theme = _ref12.theme;
|
|
15600
15600
|
return theme.getColor('greyishBlue', 10);
|
|
15601
15601
|
}, function (_ref13) {
|
|
15602
15602
|
var percent = _ref13.percent;
|
|
15603
15603
|
return percent;
|
|
15604
15604
|
});
|
|
15605
|
-
var MarkersContainer = styled.div(
|
|
15606
|
-
var Marker = styled.div(
|
|
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) {
|
|
15607
15607
|
var left = _ref14.left;
|
|
15608
15608
|
return left;
|
|
15609
15609
|
}, function (_ref15) {
|
|
15610
15610
|
var bullet = _ref15.bullet,
|
|
15611
15611
|
theme = _ref15.theme;
|
|
15612
15612
|
if (!bullet) return;
|
|
15613
|
-
return css(
|
|
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;
|
|
15614
15632
|
});
|
|
15615
15633
|
|
|
15616
15634
|
var getMarkers = function getMarkers(props) {
|
|
@@ -15683,6 +15701,16 @@ var getMarkers = function getMarkers(props) {
|
|
|
15683
15701
|
};
|
|
15684
15702
|
};
|
|
15685
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
|
+
|
|
15686
15714
|
var Range = React__default.forwardRef(function (props, ref) {
|
|
15687
15715
|
var label = props.label,
|
|
15688
15716
|
minLabel = props.minLabel,
|
|
@@ -15690,7 +15718,8 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15690
15718
|
invalid = props.invalid,
|
|
15691
15719
|
disabled = props.disabled,
|
|
15692
15720
|
required = props.required,
|
|
15693
|
-
width = props.width
|
|
15721
|
+
width = props.width,
|
|
15722
|
+
setValue = props.setValue;
|
|
15694
15723
|
|
|
15695
15724
|
var _getMarkers = getMarkers(props),
|
|
15696
15725
|
min = _getMarkers.min,
|
|
@@ -15709,18 +15738,69 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15709
15738
|
throw new Error('Invalid value');
|
|
15710
15739
|
}
|
|
15711
15740
|
|
|
15712
|
-
var
|
|
15713
|
-
|
|
15714
|
-
var onChange = strict ? function (event) {
|
|
15715
|
-
var index = parseInt(event.target.value);
|
|
15741
|
+
var getValue = strict ? function (v) {
|
|
15742
|
+
var index = typeof v === 'number' ? v : parseInt(v);
|
|
15716
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
|
+
};
|
|
15717
15749
|
|
|
15718
|
-
|
|
15719
|
-
|
|
15720
|
-
|
|
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);
|
|
15721
15756
|
|
|
15722
15757
|
_onChange(event, value);
|
|
15723
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
|
+
|
|
15724
15804
|
var inputProps = filterObject(props, ['label', 'minLabel', 'maxLabel', 'invalid', 'required', 'width', 'onChange', 'step', 'value'], {
|
|
15725
15805
|
min: min,
|
|
15726
15806
|
max: max,
|
|
@@ -15732,17 +15812,14 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15732
15812
|
required: required ? 1 : 0,
|
|
15733
15813
|
disabled: disabled ? 1 : 0,
|
|
15734
15814
|
width: width
|
|
15735
|
-
}, React__default.createElement("div",
|
|
15815
|
+
}, label && React__default.createElement("div", {
|
|
15816
|
+
children: label
|
|
15817
|
+
}), React__default.createElement(LabelsContainer, {
|
|
15736
15818
|
position: position
|
|
15737
15819
|
}, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
|
|
15738
15820
|
invalid: invalid ? 1 : 0
|
|
15739
15821
|
}, markers.length > 0 && React__default.createElement(MarkersContainer, null, markers.map(function (marker, index) {
|
|
15740
|
-
var
|
|
15741
|
-
if (z < markers.length - 1) z = markers.length - 1;
|
|
15742
|
-
var y = 20 / z;
|
|
15743
|
-
var x = 20 - y * (z - index);
|
|
15744
|
-
var p = index * percent;
|
|
15745
|
-
var left = "calc(" + p + "% - 10px - " + x + "px)";
|
|
15822
|
+
var left = getLeft(markers.length, percent, index);
|
|
15746
15823
|
var bullet = marker.value > value ? 1 : 0;
|
|
15747
15824
|
return React__default.createElement(Marker, {
|
|
15748
15825
|
key: marker.value,
|
|
@@ -15751,7 +15828,20 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15751
15828
|
}, marker.label);
|
|
15752
15829
|
})), React__default.createElement("div", null, React__default.createElement(Input$2, Object.assign({
|
|
15753
15830
|
ref: ref
|
|
15754
|
-
}, inputProps)), React__default.createElement(
|
|
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, {
|
|
15755
15845
|
percent: percent
|
|
15756
15846
|
}, Array(spans).fill(1).map(function (_value, index) {
|
|
15757
15847
|
return React__default.createElement("span", {
|
|
@@ -15762,7 +15852,7 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15762
15852
|
Range.displayName = 'input';
|
|
15763
15853
|
|
|
15764
15854
|
var _templateObject$r, _templateObject2$n, _templateObject3$j, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b;
|
|
15765
|
-
var LabelContainer$
|
|
15855
|
+
var LabelContainer$5 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
|
|
15766
15856
|
var theme = _ref.theme;
|
|
15767
15857
|
return theme.useTypography('p');
|
|
15768
15858
|
});
|
|
@@ -15780,7 +15870,7 @@ var Label$6 = styled.label(_templateObject2$n || (_templateObject2$n = _taggedTe
|
|
|
15780
15870
|
}, function (_ref4) {
|
|
15781
15871
|
var required = _ref4.required;
|
|
15782
15872
|
if (!required) return;
|
|
15783
|
-
return css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: ' *';\n }\n }\n "])), LabelContainer$
|
|
15873
|
+
return css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: ' *';\n }\n }\n "])), LabelContainer$5);
|
|
15784
15874
|
}, function (_ref5) {
|
|
15785
15875
|
var invalid = _ref5.invalid;
|
|
15786
15876
|
|
|
@@ -15818,7 +15908,7 @@ var RadioButton = function RadioButton(props) {
|
|
|
15818
15908
|
invalid: invalid ? 1 : 0
|
|
15819
15909
|
}, React__default.createElement("input", Object.assign({}, htmlProps, {
|
|
15820
15910
|
type: 'radio'
|
|
15821
|
-
})), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$
|
|
15911
|
+
})), React__default.createElement("span", null), label && React__default.createElement(LabelContainer$5, null, label));
|
|
15822
15912
|
};
|
|
15823
15913
|
|
|
15824
15914
|
var validate = function validate(_ref, min, max) {
|
|
@@ -16006,7 +16096,7 @@ var parse = function parse(value) {
|
|
|
16006
16096
|
|
|
16007
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;
|
|
16008
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"])));
|
|
16009
|
-
var LabelContainer$
|
|
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) {
|
|
16010
16100
|
var theme = _ref.theme;
|
|
16011
16101
|
return theme.useTypography('p');
|
|
16012
16102
|
}, function (_ref2) {
|
|
@@ -16174,7 +16264,7 @@ var Component$1 = React__default.forwardRef(function (props, ref) {
|
|
|
16174
16264
|
paddingless: props.paddingless ? 1 : 0,
|
|
16175
16265
|
borderless: props.borderless ? 1 : 0
|
|
16176
16266
|
}, function () {
|
|
16177
|
-
var label = React__default.createElement(LabelContainer$
|
|
16267
|
+
var label = React__default.createElement(LabelContainer$6, {
|
|
16178
16268
|
onClick: onClick
|
|
16179
16269
|
}, !value.some(function (v) {
|
|
16180
16270
|
return !isDateInstance(v);
|