labsense-ui-kit 1.4.45 → 1.4.46
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/Inputs/TextField.d.ts +3 -0
- package/dist/index.js +157 -75
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +157 -75
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10857,7 +10857,7 @@ var SearchBox = function SearchBox(_ref9) {
|
|
|
10857
10857
|
}));
|
|
10858
10858
|
};
|
|
10859
10859
|
|
|
10860
|
-
var _templateObject$f, _templateObject2$c, _templateObject3$8, _templateObject4$6, _templateObject5$6, _templateObject6$6, _templateObject7$4, _templateObject8$4, _templateObject9$3, _templateObject10$3, _templateObject11$2, _templateObject12$2, _templateObject13$2, _templateObject14$2;
|
|
10860
|
+
var _templateObject$f, _templateObject2$c, _templateObject3$8, _templateObject4$6, _templateObject5$6, _templateObject6$6, _templateObject7$4, _templateObject8$4, _templateObject9$3, _templateObject10$3, _templateObject11$2, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$1;
|
|
10861
10861
|
var Label = styled__default.label(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["\n cursor: auto;\n width: 100%;\n font-weight: ", ";\n position: relative;\n white-space: nowrap;\n width: max-content;\n\n ", "\n\n color: ", ";\n"])), function (_ref) {
|
|
10862
10862
|
var $fontWeight = _ref.$fontWeight;
|
|
10863
10863
|
return $fontWeight != null ? $fontWeight : '500';
|
|
@@ -10897,7 +10897,7 @@ var Label = styled__default.label(_templateObject$f || (_templateObject$f = _tag
|
|
|
10897
10897
|
return $titlecolor;
|
|
10898
10898
|
}
|
|
10899
10899
|
});
|
|
10900
|
-
var Input = styled__default.input(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: ", ";\n border-radius: 8px;\n cursor: ", ";\n background: ", ";\n transition: all 0.3s ease;\n color: ", ";\n\n ", "\n\n &:focus {\n border: ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n }\n"])), function (_ref4) {
|
|
10900
|
+
var Input = styled__default.input(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: ", ";\n border-radius: 8px;\n cursor: ", ";\n background: ", ";\n transition: all 0.3s ease;\n color: ", ";\n\n ", "\n\n /* Hide native number spin buttons \u2014 replaced with a custom stepper */\n &[type='number'] {\n -moz-appearance: textfield;\n }\n &[type='number']::-webkit-outer-spin-button,\n &[type='number']::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n &:focus {\n border: ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n }\n"])), function (_ref4) {
|
|
10901
10901
|
var theme = _ref4.theme;
|
|
10902
10902
|
return "1px solid " + theme.vms.border.light;
|
|
10903
10903
|
}, function (_ref5) {
|
|
@@ -10914,15 +10914,16 @@ var Input = styled__default.input(_templateObject2$c || (_templateObject2$c = _t
|
|
|
10914
10914
|
}, function (_ref8) {
|
|
10915
10915
|
var $size = _ref8.$size,
|
|
10916
10916
|
$type = _ref8.$type;
|
|
10917
|
+
var rightPadding = $type === 'password' ? '38px' : $type === 'number' ? '28px' : undefined;
|
|
10917
10918
|
switch ($size) {
|
|
10918
10919
|
case 'small':
|
|
10919
|
-
return "\n font-size: 12px;\n padding: " + (
|
|
10920
|
+
return "\n font-size: 12px;\n padding: 5px " + (rightPadding != null ? rightPadding : '10px') + " 5px 10px;\n ";
|
|
10920
10921
|
case 'medium':
|
|
10921
|
-
return "\n font-size: 14px;\n padding: " + (
|
|
10922
|
+
return "\n font-size: 14px;\n padding: 9.5px " + (rightPadding != null ? rightPadding : '12px') + " 9.5px 12px;\n ";
|
|
10922
10923
|
case 'large':
|
|
10923
|
-
return "\n font-size: 16px;\n padding: " + (
|
|
10924
|
+
return "\n font-size: 16px;\n padding: 9px " + (rightPadding != null ? rightPadding : '14px') + " 9px 14px;\n ";
|
|
10924
10925
|
default:
|
|
10925
|
-
return "\n font-size: 14px;\n padding: " + (
|
|
10926
|
+
return "\n font-size: 14px;\n padding: 7px " + (rightPadding != null ? rightPadding : '12px') + " 7px 12px;\n ";
|
|
10926
10927
|
}
|
|
10927
10928
|
}, function (_ref9) {
|
|
10928
10929
|
var $color = _ref9.$color,
|
|
@@ -10968,13 +10969,38 @@ var IconWrapper$1 = styled__default.div(_templateObject4$6 || (_templateObject4$
|
|
|
10968
10969
|
var $disabled = _ref11.$disabled;
|
|
10969
10970
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
10970
10971
|
});
|
|
10971
|
-
var
|
|
10972
|
+
var NumberStepper = styled__default.div(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 1px;\n top: 1px;\n bottom: 1px;\n display: flex;\n flex-direction: column;\n width: 20px;\n border-left: 1px solid ", ";\n border-radius: 0 7px 7px 0;\n overflow: hidden;\n opacity: ", ";\n"])), function (_ref12) {
|
|
10972
10973
|
var theme = _ref12.theme;
|
|
10974
|
+
return theme.vms.border.light;
|
|
10975
|
+
}, function (_ref13) {
|
|
10976
|
+
var $disabled = _ref13.$disabled;
|
|
10977
|
+
return $disabled ? 0.5 : 1;
|
|
10978
|
+
});
|
|
10979
|
+
var NumberStepperButton = styled__default.button(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n all: unset;\n box-sizing: border-box;\n flex: 1 1 0;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n background: ", ";\n transition: background 0.15s ease;\n\n &:not(:first-child) {\n border-top: 1px solid ", ";\n }\n\n &:hover {\n background: ", ";\n }\n\n &:active {\n background: ", ";\n }\n"])), function (_ref14) {
|
|
10980
|
+
var $disabled = _ref14.$disabled;
|
|
10981
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
10982
|
+
}, function (_ref15) {
|
|
10983
|
+
var theme = _ref15.theme;
|
|
10984
|
+
return theme.vms.accent.light_2;
|
|
10985
|
+
}, function (_ref16) {
|
|
10986
|
+
var theme = _ref16.theme;
|
|
10987
|
+
return theme.vms.border.light;
|
|
10988
|
+
}, function (_ref17) {
|
|
10989
|
+
var $disabled = _ref17.$disabled,
|
|
10990
|
+
theme = _ref17.theme;
|
|
10991
|
+
return $disabled ? theme.vms.accent.light_2 : theme.vms.accent.light_3;
|
|
10992
|
+
}, function (_ref18) {
|
|
10993
|
+
var $disabled = _ref18.$disabled,
|
|
10994
|
+
theme = _ref18.theme;
|
|
10995
|
+
return $disabled ? theme.vms.accent.light_2 : theme.vms.border.light;
|
|
10996
|
+
});
|
|
10997
|
+
var Asterisk$1 = styled__default.span(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 10px;\n height: fit-content;\n position: absolute;\n top: -2px;\n right: -8px;\n"])), function (_ref19) {
|
|
10998
|
+
var theme = _ref19.theme;
|
|
10973
10999
|
return theme.vms["default"].error;
|
|
10974
11000
|
});
|
|
10975
|
-
var SkeletonWrapper = styled__default.div(
|
|
10976
|
-
var SkeletonLabel = styled__default.div(
|
|
10977
|
-
var $size =
|
|
11001
|
+
var SkeletonWrapper = styled__default.div(_templateObject8$4 || (_templateObject8$4 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 8px;\n"])));
|
|
11002
|
+
var SkeletonLabel = styled__default.div(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n height: ", ";\n width: 80px;\n background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n background-size: 200% 100%;\n animation: loading 1.5s ease-in-out infinite;\n border-radius: 4px;\n\n @keyframes loading {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n }\n"])), function (_ref20) {
|
|
11003
|
+
var $size = _ref20.$size;
|
|
10978
11004
|
switch ($size) {
|
|
10979
11005
|
case 'small':
|
|
10980
11006
|
return '12px';
|
|
@@ -10986,8 +11012,8 @@ var SkeletonLabel = styled__default.div(_templateObject7$4 || (_templateObject7$
|
|
|
10986
11012
|
return '14px';
|
|
10987
11013
|
}
|
|
10988
11014
|
});
|
|
10989
|
-
var SkeletonInput = styled__default.div(
|
|
10990
|
-
var $size =
|
|
11015
|
+
var SkeletonInput = styled__default.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-radius: 8px;\n background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);\n background-size: 200% 100%;\n animation: loading 1.5s ease-in-out infinite;\n\n ", "\n\n @keyframes loading {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n }\n"])), function (_ref21) {
|
|
11016
|
+
var $size = _ref21.$size;
|
|
10991
11017
|
switch ($size) {
|
|
10992
11018
|
case 'small':
|
|
10993
11019
|
return 'height: 32px;';
|
|
@@ -10999,84 +11025,88 @@ var SkeletonInput = styled__default.div(_templateObject8$4 || (_templateObject8$
|
|
|
10999
11025
|
return 'height: 38px;';
|
|
11000
11026
|
}
|
|
11001
11027
|
});
|
|
11002
|
-
var TimeInputWrapper$1 = styled__default(InputWrapper$1)(
|
|
11003
|
-
var $disabled =
|
|
11028
|
+
var TimeInputWrapper$1 = styled__default(InputWrapper$1)(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n cursor: ", ";\n\n input {\n cursor: ", ";\n }\n"])), function (_ref22) {
|
|
11029
|
+
var $disabled = _ref22.$disabled;
|
|
11004
11030
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
11005
|
-
}, function (
|
|
11006
|
-
var $disabled =
|
|
11031
|
+
}, function (_ref23) {
|
|
11032
|
+
var $disabled = _ref23.$disabled;
|
|
11007
11033
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
11008
11034
|
});
|
|
11009
|
-
var TimePickerDropdown = styled__default.div(
|
|
11010
|
-
var theme =
|
|
11035
|
+
var TimePickerDropdown = styled__default.div(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n position: fixed;\n display: flex;\n gap: 8px;\n padding: 12px;\n border: 1px solid ", ";\n border-radius: 8px;\n background: ", ";\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n z-index: 999;\n"])), function (_ref24) {
|
|
11036
|
+
var theme = _ref24.theme;
|
|
11011
11037
|
return theme.vms.border.light;
|
|
11012
|
-
}, function (
|
|
11013
|
-
var theme =
|
|
11038
|
+
}, function (_ref25) {
|
|
11039
|
+
var theme = _ref25.theme;
|
|
11014
11040
|
return theme.vms.text.white;
|
|
11015
11041
|
});
|
|
11016
|
-
var SliderColumn = styled__default.div(
|
|
11017
|
-
var SliderLabel = styled__default.div(
|
|
11018
|
-
var theme =
|
|
11042
|
+
var SliderColumn = styled__default.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"])));
|
|
11043
|
+
var SliderLabel = styled__default.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-weight: 500;\n color: ", ";\n margin-bottom: 4px;\n"])), function (_ref26) {
|
|
11044
|
+
var theme = _ref26.theme;
|
|
11019
11045
|
return theme.vms.text.medium;
|
|
11020
11046
|
});
|
|
11021
|
-
var SliderWrapper = styled__default.div(
|
|
11022
|
-
var theme =
|
|
11047
|
+
var SliderWrapper = styled__default.div(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n height: 150px;\n overflow-y: auto;\n overflow-x: hidden;\n border: 1px solid ", ";\n border-radius: 6px;\n background: ", ";\n width: 60px;\n scroll-behavior: smooth;\n \n /* Custom scrollbar */\n &::-webkit-scrollbar {\n width: 4px;\n }\n \n &::-webkit-scrollbar-track {\n background: ", ";\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 2px;\n }\n \n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"])), function (_ref27) {
|
|
11048
|
+
var theme = _ref27.theme;
|
|
11023
11049
|
return theme.vms.border.light;
|
|
11024
|
-
}, function (
|
|
11025
|
-
var theme =
|
|
11050
|
+
}, function (_ref28) {
|
|
11051
|
+
var theme = _ref28.theme;
|
|
11026
11052
|
return theme.vms.accent.light_2;
|
|
11027
|
-
}, function (
|
|
11028
|
-
var theme =
|
|
11053
|
+
}, function (_ref29) {
|
|
11054
|
+
var theme = _ref29.theme;
|
|
11029
11055
|
return theme.vms.accent.light_2;
|
|
11030
|
-
}, function (
|
|
11031
|
-
var theme =
|
|
11056
|
+
}, function (_ref30) {
|
|
11057
|
+
var theme = _ref30.theme;
|
|
11032
11058
|
return theme.vms.border.medium;
|
|
11033
|
-
}, function (
|
|
11034
|
-
var theme =
|
|
11059
|
+
}, function (_ref31) {
|
|
11060
|
+
var theme = _ref31.theme;
|
|
11035
11061
|
return theme.vms.text.medium;
|
|
11036
11062
|
});
|
|
11037
|
-
var SliderItem = styled__default.div(
|
|
11038
|
-
var $selected =
|
|
11039
|
-
theme =
|
|
11063
|
+
var SliderItem = styled__default.div(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n padding: 8px 12px;\n text-align: center;\n cursor: pointer;\n font-size: 14px;\n color: ", ";\n background: ", ";\n transition: all 0.2s ease;\n \n &:hover {\n background: ", ";\n }\n"])), function (_ref32) {
|
|
11064
|
+
var $selected = _ref32.$selected,
|
|
11065
|
+
theme = _ref32.theme;
|
|
11040
11066
|
return $selected ? theme.vms.text.white : theme.vms.text.dark;
|
|
11041
|
-
}, function (
|
|
11042
|
-
var $selected =
|
|
11043
|
-
theme =
|
|
11067
|
+
}, function (_ref33) {
|
|
11068
|
+
var $selected = _ref33.$selected,
|
|
11069
|
+
theme = _ref33.theme;
|
|
11044
11070
|
return $selected ? theme.vms["default"].primary : 'transparent';
|
|
11045
|
-
}, function (
|
|
11046
|
-
var $selected =
|
|
11047
|
-
theme =
|
|
11071
|
+
}, function (_ref34) {
|
|
11072
|
+
var $selected = _ref34.$selected,
|
|
11073
|
+
theme = _ref34.theme;
|
|
11048
11074
|
return $selected ? theme.vms["default"].primary : theme.vms.accent.light_3;
|
|
11049
11075
|
});
|
|
11050
|
-
var TextField = function TextField(
|
|
11051
|
-
var
|
|
11052
|
-
type =
|
|
11053
|
-
title =
|
|
11054
|
-
name =
|
|
11055
|
-
titleWeight =
|
|
11056
|
-
placeholder =
|
|
11057
|
-
|
|
11058
|
-
disabled =
|
|
11059
|
-
inputValue =
|
|
11060
|
-
onChange =
|
|
11061
|
-
|
|
11062
|
-
size =
|
|
11063
|
-
color =
|
|
11064
|
-
|
|
11065
|
-
padding =
|
|
11066
|
-
titlecolor =
|
|
11067
|
-
icon =
|
|
11068
|
-
|
|
11069
|
-
iconsize =
|
|
11070
|
-
iconweight =
|
|
11071
|
-
iconcolor =
|
|
11072
|
-
|
|
11073
|
-
required =
|
|
11074
|
-
background =
|
|
11075
|
-
onEnter =
|
|
11076
|
-
titleRightNode =
|
|
11077
|
-
autoComplete =
|
|
11078
|
-
|
|
11079
|
-
loading =
|
|
11076
|
+
var TextField = function TextField(_ref35) {
|
|
11077
|
+
var _ref35$type = _ref35.type,
|
|
11078
|
+
type = _ref35$type === void 0 ? 'text' : _ref35$type,
|
|
11079
|
+
title = _ref35.title,
|
|
11080
|
+
name = _ref35.name,
|
|
11081
|
+
titleWeight = _ref35.titleWeight,
|
|
11082
|
+
placeholder = _ref35.placeholder,
|
|
11083
|
+
_ref35$disabled = _ref35.disabled,
|
|
11084
|
+
disabled = _ref35$disabled === void 0 ? false : _ref35$disabled,
|
|
11085
|
+
inputValue = _ref35.inputValue,
|
|
11086
|
+
onChange = _ref35.onChange,
|
|
11087
|
+
_ref35$size = _ref35.size,
|
|
11088
|
+
size = _ref35$size === void 0 ? 'medium' : _ref35$size,
|
|
11089
|
+
color = _ref35.color,
|
|
11090
|
+
_ref35$padding = _ref35.padding,
|
|
11091
|
+
padding = _ref35$padding === void 0 ? '0px' : _ref35$padding,
|
|
11092
|
+
titlecolor = _ref35.titlecolor,
|
|
11093
|
+
icon = _ref35.icon,
|
|
11094
|
+
_ref35$iconsize = _ref35.iconsize,
|
|
11095
|
+
iconsize = _ref35$iconsize === void 0 ? 18 : _ref35$iconsize,
|
|
11096
|
+
iconweight = _ref35.iconweight,
|
|
11097
|
+
iconcolor = _ref35.iconcolor,
|
|
11098
|
+
_ref35$required = _ref35.required,
|
|
11099
|
+
required = _ref35$required === void 0 ? false : _ref35$required,
|
|
11100
|
+
background = _ref35.background,
|
|
11101
|
+
onEnter = _ref35.onEnter,
|
|
11102
|
+
titleRightNode = _ref35.titleRightNode,
|
|
11103
|
+
autoComplete = _ref35.autoComplete,
|
|
11104
|
+
_ref35$loading = _ref35.loading,
|
|
11105
|
+
loading = _ref35$loading === void 0 ? false : _ref35$loading,
|
|
11106
|
+
min = _ref35.min,
|
|
11107
|
+
max = _ref35.max,
|
|
11108
|
+
_ref35$step = _ref35.step,
|
|
11109
|
+
step = _ref35$step === void 0 ? 1 : _ref35$step;
|
|
11080
11110
|
var themeColors = useTheme();
|
|
11081
11111
|
var _useState = React.useState(disabled),
|
|
11082
11112
|
isDisabled = _useState[0],
|
|
@@ -11250,6 +11280,25 @@ var TextField = function TextField(_ref28) {
|
|
|
11250
11280
|
return !prev;
|
|
11251
11281
|
});
|
|
11252
11282
|
};
|
|
11283
|
+
var handleNumberStep = function handleNumberStep(direction) {
|
|
11284
|
+
if (isDisabled || !onChange) return;
|
|
11285
|
+
var current = parseFloat(inputValue) || 0;
|
|
11286
|
+
var next = current + direction * step;
|
|
11287
|
+
if (typeof min === 'number' && next < min) next = min;
|
|
11288
|
+
if (typeof max === 'number' && next > max) next = max;
|
|
11289
|
+
var decimals = (step.toString().split('.')[1] || '').length;
|
|
11290
|
+
var nextValue = decimals > 0 ? next.toFixed(decimals) : next.toString();
|
|
11291
|
+
var syntheticEvent = {
|
|
11292
|
+
target: {
|
|
11293
|
+
value: nextValue,
|
|
11294
|
+
name: name || title
|
|
11295
|
+
}
|
|
11296
|
+
};
|
|
11297
|
+
onChange(syntheticEvent);
|
|
11298
|
+
};
|
|
11299
|
+
var currentNumberValue = parseFloat(inputValue);
|
|
11300
|
+
var isIncrementDisabled = isDisabled || !onChange || typeof max === 'number' && !isNaN(currentNumberValue) && currentNumberValue >= max;
|
|
11301
|
+
var isDecrementDisabled = isDisabled || !onChange || typeof min === 'number' && !isNaN(currentNumberValue) && currentNumberValue <= min;
|
|
11253
11302
|
if (loading) {
|
|
11254
11303
|
return React__default.createElement(Container, {
|
|
11255
11304
|
"$flexDirection": 'column',
|
|
@@ -11369,7 +11418,10 @@ var TextField = function TextField(_ref28) {
|
|
|
11369
11418
|
onKeyDown: function onKeyDown(e) {
|
|
11370
11419
|
if (e.key === 'Enter') onEnter === null || onEnter === void 0 ? void 0 : onEnter();
|
|
11371
11420
|
},
|
|
11372
|
-
autoComplete: autoComplete
|
|
11421
|
+
autoComplete: autoComplete,
|
|
11422
|
+
min: type === 'number' ? min : undefined,
|
|
11423
|
+
max: type === 'number' ? max : undefined,
|
|
11424
|
+
step: type === 'number' ? step : undefined
|
|
11373
11425
|
}), type === 'password' && inputValue && React__default.createElement(IconWrapper$1, {
|
|
11374
11426
|
"$disabled": disabled,
|
|
11375
11427
|
onClick: function onClick() {
|
|
@@ -11382,7 +11434,7 @@ var TextField = function TextField(_ref28) {
|
|
|
11382
11434
|
size: iconsize,
|
|
11383
11435
|
weight: iconweight,
|
|
11384
11436
|
color: iconcolor || themeColors.vms["default"].primary
|
|
11385
|
-
})), icon && type !== 'password' && React__default.createElement(IconWrapper$1, {
|
|
11437
|
+
})), icon && type !== 'password' && type !== 'number' && React__default.createElement(IconWrapper$1, {
|
|
11386
11438
|
onClick: function onClick() {
|
|
11387
11439
|
return setIsDisabled(function (prev) {
|
|
11388
11440
|
return !prev;
|
|
@@ -11393,7 +11445,37 @@ var TextField = function TextField(_ref28) {
|
|
|
11393
11445
|
size: iconsize,
|
|
11394
11446
|
weight: iconweight,
|
|
11395
11447
|
color: iconcolor || themeColors.vms["default"].primary
|
|
11396
|
-
}))
|
|
11448
|
+
})), type === 'number' && React__default.createElement(NumberStepper, {
|
|
11449
|
+
"$disabled": isDisabled
|
|
11450
|
+
}, React__default.createElement(NumberStepperButton, {
|
|
11451
|
+
type: 'button',
|
|
11452
|
+
tabIndex: -1,
|
|
11453
|
+
"$disabled": isIncrementDisabled,
|
|
11454
|
+
disabled: isIncrementDisabled,
|
|
11455
|
+
onClick: function onClick() {
|
|
11456
|
+
return handleNumberStep(1);
|
|
11457
|
+
},
|
|
11458
|
+
"aria-label": 'Increment'
|
|
11459
|
+
}, React__default.createElement(Icon, {
|
|
11460
|
+
icon: 'UpArrow',
|
|
11461
|
+
size: 7,
|
|
11462
|
+
weight: '2px',
|
|
11463
|
+
color: isIncrementDisabled ? themeColors.vms.text.light : themeColors.vms.text.medium
|
|
11464
|
+
})), React__default.createElement(NumberStepperButton, {
|
|
11465
|
+
type: 'button',
|
|
11466
|
+
tabIndex: -1,
|
|
11467
|
+
"$disabled": isDecrementDisabled,
|
|
11468
|
+
disabled: isDecrementDisabled,
|
|
11469
|
+
onClick: function onClick() {
|
|
11470
|
+
return handleNumberStep(-1);
|
|
11471
|
+
},
|
|
11472
|
+
"aria-label": 'Decrement'
|
|
11473
|
+
}, React__default.createElement(Icon, {
|
|
11474
|
+
icon: 'DownArrow',
|
|
11475
|
+
size: 7,
|
|
11476
|
+
weight: '2px',
|
|
11477
|
+
color: isDecrementDisabled ? themeColors.vms.text.light : themeColors.vms.text.medium
|
|
11478
|
+
})))));
|
|
11397
11479
|
};
|
|
11398
11480
|
|
|
11399
11481
|
var _templateObject$g, _templateObject2$d, _templateObject3$9;
|