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.
@@ -10852,7 +10852,7 @@ var SearchBox = function SearchBox(_ref9) {
10852
10852
  }));
10853
10853
  };
10854
10854
 
10855
- 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;
10855
+ 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;
10856
10856
  var Label = styled.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) {
10857
10857
  var $fontWeight = _ref.$fontWeight;
10858
10858
  return $fontWeight != null ? $fontWeight : '500';
@@ -10892,7 +10892,7 @@ var Label = styled.label(_templateObject$f || (_templateObject$f = _taggedTempla
10892
10892
  return $titlecolor;
10893
10893
  }
10894
10894
  });
10895
- var Input = styled.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) {
10895
+ var Input = styled.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) {
10896
10896
  var theme = _ref4.theme;
10897
10897
  return "1px solid " + theme.vms.border.light;
10898
10898
  }, function (_ref5) {
@@ -10909,15 +10909,16 @@ var Input = styled.input(_templateObject2$c || (_templateObject2$c = _taggedTemp
10909
10909
  }, function (_ref8) {
10910
10910
  var $size = _ref8.$size,
10911
10911
  $type = _ref8.$type;
10912
+ var rightPadding = $type === 'password' ? '38px' : $type === 'number' ? '28px' : undefined;
10912
10913
  switch ($size) {
10913
10914
  case 'small':
10914
- return "\n font-size: 12px;\n padding: " + ($type === 'password' ? '5px 38px 5px 10px' : '5px 10px') + ";\n ";
10915
+ return "\n font-size: 12px;\n padding: 5px " + (rightPadding != null ? rightPadding : '10px') + " 5px 10px;\n ";
10915
10916
  case 'medium':
10916
- return "\n font-size: 14px;\n padding: " + ($type === 'password' ? '9.5px 38px 9.5px 12px' : '9.5px 12px') + ";\n ";
10917
+ return "\n font-size: 14px;\n padding: 9.5px " + (rightPadding != null ? rightPadding : '12px') + " 9.5px 12px;\n ";
10917
10918
  case 'large':
10918
- return "\n font-size: 16px;\n padding: " + ($type === 'password' ? '9px 38px 9px 14px' : '9px 14px') + ";\n ";
10919
+ return "\n font-size: 16px;\n padding: 9px " + (rightPadding != null ? rightPadding : '14px') + " 9px 14px;\n ";
10919
10920
  default:
10920
- return "\n font-size: 14px;\n padding: " + ($type === 'password' ? '7px 38px 7px 12px' : '7px 12px') + ";\n ";
10921
+ return "\n font-size: 14px;\n padding: 7px " + (rightPadding != null ? rightPadding : '12px') + " 7px 12px;\n ";
10921
10922
  }
10922
10923
  }, function (_ref9) {
10923
10924
  var $color = _ref9.$color,
@@ -10963,13 +10964,38 @@ var IconWrapper$1 = styled.div(_templateObject4$6 || (_templateObject4$6 = _tagg
10963
10964
  var $disabled = _ref11.$disabled;
10964
10965
  return $disabled ? 'not-allowed' : 'pointer';
10965
10966
  });
10966
- var Asterisk$1 = styled.span(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 10px;\n height: fit-content;\n position: absolute;\n top: -2px;\n right: -8px;\n"])), function (_ref12) {
10967
+ var NumberStepper = styled.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) {
10967
10968
  var theme = _ref12.theme;
10969
+ return theme.vms.border.light;
10970
+ }, function (_ref13) {
10971
+ var $disabled = _ref13.$disabled;
10972
+ return $disabled ? 0.5 : 1;
10973
+ });
10974
+ var NumberStepperButton = styled.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) {
10975
+ var $disabled = _ref14.$disabled;
10976
+ return $disabled ? 'not-allowed' : 'pointer';
10977
+ }, function (_ref15) {
10978
+ var theme = _ref15.theme;
10979
+ return theme.vms.accent.light_2;
10980
+ }, function (_ref16) {
10981
+ var theme = _ref16.theme;
10982
+ return theme.vms.border.light;
10983
+ }, function (_ref17) {
10984
+ var $disabled = _ref17.$disabled,
10985
+ theme = _ref17.theme;
10986
+ return $disabled ? theme.vms.accent.light_2 : theme.vms.accent.light_3;
10987
+ }, function (_ref18) {
10988
+ var $disabled = _ref18.$disabled,
10989
+ theme = _ref18.theme;
10990
+ return $disabled ? theme.vms.accent.light_2 : theme.vms.border.light;
10991
+ });
10992
+ var Asterisk$1 = styled.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) {
10993
+ var theme = _ref19.theme;
10968
10994
  return theme.vms["default"].error;
10969
10995
  });
10970
- var SkeletonWrapper = styled.div(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 8px;\n"])));
10971
- var SkeletonLabel = styled.div(_templateObject7$4 || (_templateObject7$4 = _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 (_ref13) {
10972
- var $size = _ref13.$size;
10996
+ var SkeletonWrapper = styled.div(_templateObject8$4 || (_templateObject8$4 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 8px;\n"])));
10997
+ var SkeletonLabel = styled.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) {
10998
+ var $size = _ref20.$size;
10973
10999
  switch ($size) {
10974
11000
  case 'small':
10975
11001
  return '12px';
@@ -10981,8 +11007,8 @@ var SkeletonLabel = styled.div(_templateObject7$4 || (_templateObject7$4 = _tagg
10981
11007
  return '14px';
10982
11008
  }
10983
11009
  });
10984
- var SkeletonInput = styled.div(_templateObject8$4 || (_templateObject8$4 = _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 (_ref14) {
10985
- var $size = _ref14.$size;
11010
+ var SkeletonInput = styled.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) {
11011
+ var $size = _ref21.$size;
10986
11012
  switch ($size) {
10987
11013
  case 'small':
10988
11014
  return 'height: 32px;';
@@ -10994,84 +11020,88 @@ var SkeletonInput = styled.div(_templateObject8$4 || (_templateObject8$4 = _tagg
10994
11020
  return 'height: 38px;';
10995
11021
  }
10996
11022
  });
10997
- var TimeInputWrapper$1 = styled(InputWrapper$1)(_templateObject9$3 || (_templateObject9$3 = _taggedTemplateLiteralLoose(["\n cursor: ", ";\n\n input {\n cursor: ", ";\n }\n"])), function (_ref15) {
10998
- var $disabled = _ref15.$disabled;
11023
+ var TimeInputWrapper$1 = styled(InputWrapper$1)(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n cursor: ", ";\n\n input {\n cursor: ", ";\n }\n"])), function (_ref22) {
11024
+ var $disabled = _ref22.$disabled;
10999
11025
  return $disabled ? 'not-allowed' : 'pointer';
11000
- }, function (_ref16) {
11001
- var $disabled = _ref16.$disabled;
11026
+ }, function (_ref23) {
11027
+ var $disabled = _ref23.$disabled;
11002
11028
  return $disabled ? 'not-allowed' : 'pointer';
11003
11029
  });
11004
- var TimePickerDropdown = styled.div(_templateObject10$3 || (_templateObject10$3 = _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 (_ref17) {
11005
- var theme = _ref17.theme;
11030
+ var TimePickerDropdown = styled.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) {
11031
+ var theme = _ref24.theme;
11006
11032
  return theme.vms.border.light;
11007
- }, function (_ref18) {
11008
- var theme = _ref18.theme;
11033
+ }, function (_ref25) {
11034
+ var theme = _ref25.theme;
11009
11035
  return theme.vms.text.white;
11010
11036
  });
11011
- var SliderColumn = styled.div(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"])));
11012
- var SliderLabel = styled.div(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-weight: 500;\n color: ", ";\n margin-bottom: 4px;\n"])), function (_ref19) {
11013
- var theme = _ref19.theme;
11037
+ var SliderColumn = styled.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"])));
11038
+ var SliderLabel = styled.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-weight: 500;\n color: ", ";\n margin-bottom: 4px;\n"])), function (_ref26) {
11039
+ var theme = _ref26.theme;
11014
11040
  return theme.vms.text.medium;
11015
11041
  });
11016
- var SliderWrapper = styled.div(_templateObject13$2 || (_templateObject13$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 (_ref20) {
11017
- var theme = _ref20.theme;
11042
+ var SliderWrapper = styled.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) {
11043
+ var theme = _ref27.theme;
11018
11044
  return theme.vms.border.light;
11019
- }, function (_ref21) {
11020
- var theme = _ref21.theme;
11045
+ }, function (_ref28) {
11046
+ var theme = _ref28.theme;
11021
11047
  return theme.vms.accent.light_2;
11022
- }, function (_ref22) {
11023
- var theme = _ref22.theme;
11048
+ }, function (_ref29) {
11049
+ var theme = _ref29.theme;
11024
11050
  return theme.vms.accent.light_2;
11025
- }, function (_ref23) {
11026
- var theme = _ref23.theme;
11051
+ }, function (_ref30) {
11052
+ var theme = _ref30.theme;
11027
11053
  return theme.vms.border.medium;
11028
- }, function (_ref24) {
11029
- var theme = _ref24.theme;
11054
+ }, function (_ref31) {
11055
+ var theme = _ref31.theme;
11030
11056
  return theme.vms.text.medium;
11031
11057
  });
11032
- var SliderItem = styled.div(_templateObject14$2 || (_templateObject14$2 = _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 (_ref25) {
11033
- var $selected = _ref25.$selected,
11034
- theme = _ref25.theme;
11058
+ var SliderItem = styled.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) {
11059
+ var $selected = _ref32.$selected,
11060
+ theme = _ref32.theme;
11035
11061
  return $selected ? theme.vms.text.white : theme.vms.text.dark;
11036
- }, function (_ref26) {
11037
- var $selected = _ref26.$selected,
11038
- theme = _ref26.theme;
11062
+ }, function (_ref33) {
11063
+ var $selected = _ref33.$selected,
11064
+ theme = _ref33.theme;
11039
11065
  return $selected ? theme.vms["default"].primary : 'transparent';
11040
- }, function (_ref27) {
11041
- var $selected = _ref27.$selected,
11042
- theme = _ref27.theme;
11066
+ }, function (_ref34) {
11067
+ var $selected = _ref34.$selected,
11068
+ theme = _ref34.theme;
11043
11069
  return $selected ? theme.vms["default"].primary : theme.vms.accent.light_3;
11044
11070
  });
11045
- var TextField = function TextField(_ref28) {
11046
- var _ref28$type = _ref28.type,
11047
- type = _ref28$type === void 0 ? 'text' : _ref28$type,
11048
- title = _ref28.title,
11049
- name = _ref28.name,
11050
- titleWeight = _ref28.titleWeight,
11051
- placeholder = _ref28.placeholder,
11052
- _ref28$disabled = _ref28.disabled,
11053
- disabled = _ref28$disabled === void 0 ? false : _ref28$disabled,
11054
- inputValue = _ref28.inputValue,
11055
- onChange = _ref28.onChange,
11056
- _ref28$size = _ref28.size,
11057
- size = _ref28$size === void 0 ? 'medium' : _ref28$size,
11058
- color = _ref28.color,
11059
- _ref28$padding = _ref28.padding,
11060
- padding = _ref28$padding === void 0 ? '0px' : _ref28$padding,
11061
- titlecolor = _ref28.titlecolor,
11062
- icon = _ref28.icon,
11063
- _ref28$iconsize = _ref28.iconsize,
11064
- iconsize = _ref28$iconsize === void 0 ? 18 : _ref28$iconsize,
11065
- iconweight = _ref28.iconweight,
11066
- iconcolor = _ref28.iconcolor,
11067
- _ref28$required = _ref28.required,
11068
- required = _ref28$required === void 0 ? false : _ref28$required,
11069
- background = _ref28.background,
11070
- onEnter = _ref28.onEnter,
11071
- titleRightNode = _ref28.titleRightNode,
11072
- autoComplete = _ref28.autoComplete,
11073
- _ref28$loading = _ref28.loading,
11074
- loading = _ref28$loading === void 0 ? false : _ref28$loading;
11071
+ var TextField = function TextField(_ref35) {
11072
+ var _ref35$type = _ref35.type,
11073
+ type = _ref35$type === void 0 ? 'text' : _ref35$type,
11074
+ title = _ref35.title,
11075
+ name = _ref35.name,
11076
+ titleWeight = _ref35.titleWeight,
11077
+ placeholder = _ref35.placeholder,
11078
+ _ref35$disabled = _ref35.disabled,
11079
+ disabled = _ref35$disabled === void 0 ? false : _ref35$disabled,
11080
+ inputValue = _ref35.inputValue,
11081
+ onChange = _ref35.onChange,
11082
+ _ref35$size = _ref35.size,
11083
+ size = _ref35$size === void 0 ? 'medium' : _ref35$size,
11084
+ color = _ref35.color,
11085
+ _ref35$padding = _ref35.padding,
11086
+ padding = _ref35$padding === void 0 ? '0px' : _ref35$padding,
11087
+ titlecolor = _ref35.titlecolor,
11088
+ icon = _ref35.icon,
11089
+ _ref35$iconsize = _ref35.iconsize,
11090
+ iconsize = _ref35$iconsize === void 0 ? 18 : _ref35$iconsize,
11091
+ iconweight = _ref35.iconweight,
11092
+ iconcolor = _ref35.iconcolor,
11093
+ _ref35$required = _ref35.required,
11094
+ required = _ref35$required === void 0 ? false : _ref35$required,
11095
+ background = _ref35.background,
11096
+ onEnter = _ref35.onEnter,
11097
+ titleRightNode = _ref35.titleRightNode,
11098
+ autoComplete = _ref35.autoComplete,
11099
+ _ref35$loading = _ref35.loading,
11100
+ loading = _ref35$loading === void 0 ? false : _ref35$loading,
11101
+ min = _ref35.min,
11102
+ max = _ref35.max,
11103
+ _ref35$step = _ref35.step,
11104
+ step = _ref35$step === void 0 ? 1 : _ref35$step;
11075
11105
  var themeColors = useTheme();
11076
11106
  var _useState = useState(disabled),
11077
11107
  isDisabled = _useState[0],
@@ -11245,6 +11275,25 @@ var TextField = function TextField(_ref28) {
11245
11275
  return !prev;
11246
11276
  });
11247
11277
  };
11278
+ var handleNumberStep = function handleNumberStep(direction) {
11279
+ if (isDisabled || !onChange) return;
11280
+ var current = parseFloat(inputValue) || 0;
11281
+ var next = current + direction * step;
11282
+ if (typeof min === 'number' && next < min) next = min;
11283
+ if (typeof max === 'number' && next > max) next = max;
11284
+ var decimals = (step.toString().split('.')[1] || '').length;
11285
+ var nextValue = decimals > 0 ? next.toFixed(decimals) : next.toString();
11286
+ var syntheticEvent = {
11287
+ target: {
11288
+ value: nextValue,
11289
+ name: name || title
11290
+ }
11291
+ };
11292
+ onChange(syntheticEvent);
11293
+ };
11294
+ var currentNumberValue = parseFloat(inputValue);
11295
+ var isIncrementDisabled = isDisabled || !onChange || typeof max === 'number' && !isNaN(currentNumberValue) && currentNumberValue >= max;
11296
+ var isDecrementDisabled = isDisabled || !onChange || typeof min === 'number' && !isNaN(currentNumberValue) && currentNumberValue <= min;
11248
11297
  if (loading) {
11249
11298
  return React.createElement(Container, {
11250
11299
  "$flexDirection": 'column',
@@ -11364,7 +11413,10 @@ var TextField = function TextField(_ref28) {
11364
11413
  onKeyDown: function onKeyDown(e) {
11365
11414
  if (e.key === 'Enter') onEnter === null || onEnter === void 0 ? void 0 : onEnter();
11366
11415
  },
11367
- autoComplete: autoComplete
11416
+ autoComplete: autoComplete,
11417
+ min: type === 'number' ? min : undefined,
11418
+ max: type === 'number' ? max : undefined,
11419
+ step: type === 'number' ? step : undefined
11368
11420
  }), type === 'password' && inputValue && React.createElement(IconWrapper$1, {
11369
11421
  "$disabled": disabled,
11370
11422
  onClick: function onClick() {
@@ -11377,7 +11429,7 @@ var TextField = function TextField(_ref28) {
11377
11429
  size: iconsize,
11378
11430
  weight: iconweight,
11379
11431
  color: iconcolor || themeColors.vms["default"].primary
11380
- })), icon && type !== 'password' && React.createElement(IconWrapper$1, {
11432
+ })), icon && type !== 'password' && type !== 'number' && React.createElement(IconWrapper$1, {
11381
11433
  onClick: function onClick() {
11382
11434
  return setIsDisabled(function (prev) {
11383
11435
  return !prev;
@@ -11388,7 +11440,37 @@ var TextField = function TextField(_ref28) {
11388
11440
  size: iconsize,
11389
11441
  weight: iconweight,
11390
11442
  color: iconcolor || themeColors.vms["default"].primary
11391
- }))));
11443
+ })), type === 'number' && React.createElement(NumberStepper, {
11444
+ "$disabled": isDisabled
11445
+ }, React.createElement(NumberStepperButton, {
11446
+ type: 'button',
11447
+ tabIndex: -1,
11448
+ "$disabled": isIncrementDisabled,
11449
+ disabled: isIncrementDisabled,
11450
+ onClick: function onClick() {
11451
+ return handleNumberStep(1);
11452
+ },
11453
+ "aria-label": 'Increment'
11454
+ }, React.createElement(Icon, {
11455
+ icon: 'UpArrow',
11456
+ size: 7,
11457
+ weight: '2px',
11458
+ color: isIncrementDisabled ? themeColors.vms.text.light : themeColors.vms.text.medium
11459
+ })), React.createElement(NumberStepperButton, {
11460
+ type: 'button',
11461
+ tabIndex: -1,
11462
+ "$disabled": isDecrementDisabled,
11463
+ disabled: isDecrementDisabled,
11464
+ onClick: function onClick() {
11465
+ return handleNumberStep(-1);
11466
+ },
11467
+ "aria-label": 'Decrement'
11468
+ }, React.createElement(Icon, {
11469
+ icon: 'DownArrow',
11470
+ size: 7,
11471
+ weight: '2px',
11472
+ color: isDecrementDisabled ? themeColors.vms.text.light : themeColors.vms.text.medium
11473
+ })))));
11392
11474
  };
11393
11475
 
11394
11476
  var _templateObject$g, _templateObject2$d, _templateObject3$9;