labsense-ui-kit 1.3.82 → 1.3.83

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.
@@ -9476,7 +9476,7 @@ var Label = styled.label(_templateObject$f || (_templateObject$f = _taggedTempla
9476
9476
  return $titlecolor;
9477
9477
  }
9478
9478
  });
9479
- 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 pointer-events: ", ";\n\n ", "\n\n &:focus {\n border: 1px solid\n ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n }\n"])), function (_ref4) {
9479
+ 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: 1px solid\n ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n }\n"])), function (_ref4) {
9480
9480
  var theme = _ref4.theme;
9481
9481
  return "1px solid " + theme.vms.border.light;
9482
9482
  }, function (_ref5) {
@@ -9491,11 +9491,8 @@ var Input = styled.input(_templateObject2$c || (_templateObject2$c = _taggedTemp
9491
9491
  var $color = _ref7.$color;
9492
9492
  return $color;
9493
9493
  }, function (_ref8) {
9494
- var $disabled = _ref8.$disabled;
9495
- return $disabled ? 'none' : 'auto';
9496
- }, function (_ref9) {
9497
- var $size = _ref9.$size,
9498
- $type = _ref9.$type;
9494
+ var $size = _ref8.$size,
9495
+ $type = _ref8.$type;
9499
9496
  switch ($size) {
9500
9497
  case 'small':
9501
9498
  return "\n font-size: 12px;\n padding: " + ($type === 'password' ? '5px 38px 5px 10px' : '5px 10px') + ";\n ";
@@ -9506,9 +9503,9 @@ var Input = styled.input(_templateObject2$c || (_templateObject2$c = _taggedTemp
9506
9503
  default:
9507
9504
  return "\n font-size: 14px;\n padding: " + ($type === 'password' ? '7px 38px 7px 12px' : '7px 12px') + ";\n ";
9508
9505
  }
9509
- }, function (_ref10) {
9510
- var $color = _ref10.$color,
9511
- theme = _ref10.theme;
9506
+ }, function (_ref9) {
9507
+ var $color = _ref9.$color,
9508
+ theme = _ref9.theme;
9512
9509
  switch ($color) {
9513
9510
  case 'dark':
9514
9511
  return theme.vms.text.dark;
@@ -9529,89 +9526,95 @@ var Input = styled.input(_templateObject2$c || (_templateObject2$c = _taggedTemp
9529
9526
  default:
9530
9527
  return $color;
9531
9528
  }
9532
- }, function (_ref11) {
9533
- var theme = _ref11.theme;
9529
+ }, function (_ref10) {
9530
+ var theme = _ref10.theme;
9534
9531
  return theme.vms.text.light;
9535
9532
  });
9536
9533
  var InputWrapper$1 = styled.div(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n"])));
9537
- var IconWrapper$1 = styled.div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 12px;\n cursor: pointer;\n\n > div {\n cursor: ", ";\n }\n"])), function (_ref12) {
9538
- var $disabled = _ref12.$disabled;
9534
+ var IconWrapper$1 = styled.div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 12px;\n cursor: pointer;\n\n > div {\n cursor: ", ";\n }\n"])), function (_ref11) {
9535
+ var $disabled = _ref11.$disabled;
9539
9536
  return $disabled ? 'not-allowed' : 'pointer';
9540
9537
  });
9541
- 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 (_ref13) {
9542
- var theme = _ref13.theme;
9538
+ 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) {
9539
+ var theme = _ref12.theme;
9543
9540
  return theme.vms["default"].error;
9544
9541
  });
9545
- var TimeInputWrapper$1 = styled(InputWrapper$1)(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n\n input {\n cursor: pointer;\n }\n"])));
9546
- var TimePickerDropdown = styled.div(_templateObject7$4 || (_templateObject7$4 = _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 (_ref14) {
9547
- var theme = _ref14.theme;
9548
- return theme.vms.border.light;
9549
- }, function (_ref15) {
9542
+ var TimeInputWrapper$1 = styled(InputWrapper$1)(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n cursor: ", ";\n\n input {\n cursor: ", ";\n }\n"])), function (_ref13) {
9543
+ var $disabled = _ref13.$disabled;
9544
+ return $disabled ? 'not-allowed' : 'pointer';
9545
+ }, function (_ref14) {
9546
+ var $disabled = _ref14.$disabled;
9547
+ return $disabled ? 'not-allowed' : 'pointer';
9548
+ });
9549
+ var TimePickerDropdown = styled.div(_templateObject7$4 || (_templateObject7$4 = _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 (_ref15) {
9550
9550
  var theme = _ref15.theme;
9551
+ return theme.vms.border.light;
9552
+ }, function (_ref16) {
9553
+ var theme = _ref16.theme;
9551
9554
  return theme.vms.text.white;
9552
9555
  });
9553
9556
  var SliderColumn = styled.div(_templateObject8$4 || (_templateObject8$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"])));
9554
- var SliderLabel = styled.div(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-weight: 500;\n color: ", ";\n margin-bottom: 4px;\n"])), function (_ref16) {
9555
- var theme = _ref16.theme;
9557
+ var SliderLabel = styled.div(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-weight: 500;\n color: ", ";\n margin-bottom: 4px;\n"])), function (_ref17) {
9558
+ var theme = _ref17.theme;
9556
9559
  return theme.vms.text.medium;
9557
9560
  });
9558
- var SliderWrapper = styled.div(_templateObject10$4 || (_templateObject10$4 = _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 (_ref17) {
9559
- var theme = _ref17.theme;
9560
- return theme.vms.border.light;
9561
- }, function (_ref18) {
9561
+ var SliderWrapper = styled.div(_templateObject10$4 || (_templateObject10$4 = _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 (_ref18) {
9562
9562
  var theme = _ref18.theme;
9563
- return theme.vms.accent.light_2;
9563
+ return theme.vms.border.light;
9564
9564
  }, function (_ref19) {
9565
9565
  var theme = _ref19.theme;
9566
9566
  return theme.vms.accent.light_2;
9567
9567
  }, function (_ref20) {
9568
9568
  var theme = _ref20.theme;
9569
- return theme.vms.border.medium;
9569
+ return theme.vms.accent.light_2;
9570
9570
  }, function (_ref21) {
9571
9571
  var theme = _ref21.theme;
9572
+ return theme.vms.border.medium;
9573
+ }, function (_ref22) {
9574
+ var theme = _ref22.theme;
9572
9575
  return theme.vms.text.medium;
9573
9576
  });
9574
- var SliderItem = styled.div(_templateObject11$3 || (_templateObject11$3 = _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 (_ref22) {
9575
- var $selected = _ref22.$selected,
9576
- theme = _ref22.theme;
9577
- return $selected ? theme.vms.text.white : theme.vms.text.dark;
9578
- }, function (_ref23) {
9577
+ var SliderItem = styled.div(_templateObject11$3 || (_templateObject11$3 = _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 (_ref23) {
9579
9578
  var $selected = _ref23.$selected,
9580
9579
  theme = _ref23.theme;
9581
- return $selected ? theme.vms["default"].primary : 'transparent';
9580
+ return $selected ? theme.vms.text.white : theme.vms.text.dark;
9582
9581
  }, function (_ref24) {
9583
9582
  var $selected = _ref24.$selected,
9584
9583
  theme = _ref24.theme;
9584
+ return $selected ? theme.vms["default"].primary : 'transparent';
9585
+ }, function (_ref25) {
9586
+ var $selected = _ref25.$selected,
9587
+ theme = _ref25.theme;
9585
9588
  return $selected ? theme.vms["default"].primary : theme.vms.accent.light_3;
9586
9589
  });
9587
- var TextField = function TextField(_ref25) {
9588
- var _ref25$type = _ref25.type,
9589
- type = _ref25$type === void 0 ? 'text' : _ref25$type,
9590
- title = _ref25.title,
9591
- name = _ref25.name,
9592
- titleWeight = _ref25.titleWeight,
9593
- placeholder = _ref25.placeholder,
9594
- _ref25$disabled = _ref25.disabled,
9595
- disabled = _ref25$disabled === void 0 ? false : _ref25$disabled,
9596
- inputValue = _ref25.inputValue,
9597
- onChange = _ref25.onChange,
9598
- _ref25$size = _ref25.size,
9599
- size = _ref25$size === void 0 ? 'medium' : _ref25$size,
9600
- color = _ref25.color,
9601
- _ref25$padding = _ref25.padding,
9602
- padding = _ref25$padding === void 0 ? '0px' : _ref25$padding,
9603
- titlecolor = _ref25.titlecolor,
9604
- icon = _ref25.icon,
9605
- _ref25$iconsize = _ref25.iconsize,
9606
- iconsize = _ref25$iconsize === void 0 ? 18 : _ref25$iconsize,
9607
- iconweight = _ref25.iconweight,
9608
- iconcolor = _ref25.iconcolor,
9609
- _ref25$required = _ref25.required,
9610
- required = _ref25$required === void 0 ? false : _ref25$required,
9611
- background = _ref25.background,
9612
- onEnter = _ref25.onEnter,
9613
- titleRightNode = _ref25.titleRightNode,
9614
- autoComplete = _ref25.autoComplete;
9590
+ var TextField = function TextField(_ref26) {
9591
+ var _ref26$type = _ref26.type,
9592
+ type = _ref26$type === void 0 ? 'text' : _ref26$type,
9593
+ title = _ref26.title,
9594
+ name = _ref26.name,
9595
+ titleWeight = _ref26.titleWeight,
9596
+ placeholder = _ref26.placeholder,
9597
+ _ref26$disabled = _ref26.disabled,
9598
+ disabled = _ref26$disabled === void 0 ? false : _ref26$disabled,
9599
+ inputValue = _ref26.inputValue,
9600
+ onChange = _ref26.onChange,
9601
+ _ref26$size = _ref26.size,
9602
+ size = _ref26$size === void 0 ? 'medium' : _ref26$size,
9603
+ color = _ref26.color,
9604
+ _ref26$padding = _ref26.padding,
9605
+ padding = _ref26$padding === void 0 ? '0px' : _ref26$padding,
9606
+ titlecolor = _ref26.titlecolor,
9607
+ icon = _ref26.icon,
9608
+ _ref26$iconsize = _ref26.iconsize,
9609
+ iconsize = _ref26$iconsize === void 0 ? 18 : _ref26$iconsize,
9610
+ iconweight = _ref26.iconweight,
9611
+ iconcolor = _ref26.iconcolor,
9612
+ _ref26$required = _ref26.required,
9613
+ required = _ref26$required === void 0 ? false : _ref26$required,
9614
+ background = _ref26.background,
9615
+ onEnter = _ref26.onEnter,
9616
+ titleRightNode = _ref26.titleRightNode,
9617
+ autoComplete = _ref26.autoComplete;
9615
9618
  var themeColors = useTheme();
9616
9619
  var _useState = useState(disabled),
9617
9620
  isDisabled = _useState[0],
@@ -9800,7 +9803,8 @@ var TextField = function TextField(_ref25) {
9800
9803
  htmlFor: title,
9801
9804
  "$titlecolor": titlecolor || themeColors.vms.text.dark
9802
9805
  }, title, required && React.createElement(Asterisk$1, null, "*")), titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.node), React.createElement(TimeInputWrapper$1, {
9803
- ref: timePickerRef
9806
+ ref: timePickerRef,
9807
+ "$disabled": isDisabled
9804
9808
  }, React.createElement(Input, {
9805
9809
  type: 'text',
9806
9810
  value: timeValue,
@@ -9939,7 +9943,7 @@ var Label$1 = styled.label(_templateObject2$d || (_templateObject2$d = _taggedTe
9939
9943
  theme = _ref4.theme;
9940
9944
  return $titlecolor || theme.vms.text.dark;
9941
9945
  });
9942
- var TextAreaComponent = styled.textarea(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: ", ";\n border-radius: 8px;\n cursor: ", ";\n background: ", ";\n transition: all 0.3s ease;\n color: ", ";\n resize: none;\n height: 100%;\n pointer-events: ", ";\n \n ", "\n\n &:focus {\n border-color: ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n }\n"])), function (_ref5) {
9946
+ var TextAreaComponent = styled.textarea(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: ", ";\n border-radius: 8px;\n cursor: ", ";\n background: ", ";\n transition: all 0.3s ease;\n color: ", ";\n resize: none;\n height: 100%;\n \n ", "\n\n &:focus {\n border-color: ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n }\n"])), function (_ref5) {
9943
9947
  var theme = _ref5.theme;
9944
9948
  return "1px solid " + theme.vms.border.light;
9945
9949
  }, function (_ref6) {
@@ -9954,10 +9958,7 @@ var TextAreaComponent = styled.textarea(_templateObject3$9 || (_templateObject3$
9954
9958
  var $color = _ref8.$color;
9955
9959
  return $color;
9956
9960
  }, function (_ref9) {
9957
- var $disabled = _ref9.$disabled;
9958
- return $disabled ? 'none' : 'auto';
9959
- }, function (_ref10) {
9960
- var $size = _ref10.$size;
9961
+ var $size = _ref9.$size;
9961
9962
  switch ($size) {
9962
9963
  case 'small':
9963
9964
  return 'font-size: 12px; padding: 5px 10px;';
@@ -9968,32 +9969,32 @@ var TextAreaComponent = styled.textarea(_templateObject3$9 || (_templateObject3$
9968
9969
  default:
9969
9970
  return 'font-size: 14px; padding: 7px 12px;';
9970
9971
  }
9971
- }, function (_ref11) {
9972
- var $color = _ref11.$color,
9973
- theme = _ref11.theme;
9972
+ }, function (_ref10) {
9973
+ var $color = _ref10.$color,
9974
+ theme = _ref10.theme;
9974
9975
  return $color || theme.vms.text.dark;
9975
- }, function (_ref12) {
9976
- var theme = _ref12.theme;
9976
+ }, function (_ref11) {
9977
+ var theme = _ref11.theme;
9977
9978
  return theme.vms.text.light;
9978
9979
  });
9979
- var TextArea = function TextArea(_ref13) {
9980
- var title = _ref13.title,
9981
- name = _ref13.name,
9982
- titleWeight = _ref13.titleWeight,
9983
- placeholder = _ref13.placeholder,
9984
- _ref13$disabled = _ref13.disabled,
9985
- disabled = _ref13$disabled === void 0 ? false : _ref13$disabled,
9986
- inputValue = _ref13.inputValue,
9987
- onChange = _ref13.onChange,
9988
- _ref13$size = _ref13.size,
9989
- size = _ref13$size === void 0 ? 'medium' : _ref13$size,
9990
- color = _ref13.color,
9991
- _ref13$padding = _ref13.padding,
9992
- padding = _ref13$padding === void 0 ? '0px' : _ref13$padding,
9993
- titlecolor = _ref13.titlecolor,
9994
- _ref13$required = _ref13.required,
9995
- required = _ref13$required === void 0 ? false : _ref13$required,
9996
- background = _ref13.background;
9980
+ var TextArea = function TextArea(_ref12) {
9981
+ var title = _ref12.title,
9982
+ name = _ref12.name,
9983
+ titleWeight = _ref12.titleWeight,
9984
+ placeholder = _ref12.placeholder,
9985
+ _ref12$disabled = _ref12.disabled,
9986
+ disabled = _ref12$disabled === void 0 ? false : _ref12$disabled,
9987
+ inputValue = _ref12.inputValue,
9988
+ onChange = _ref12.onChange,
9989
+ _ref12$size = _ref12.size,
9990
+ size = _ref12$size === void 0 ? 'medium' : _ref12$size,
9991
+ color = _ref12.color,
9992
+ _ref12$padding = _ref12.padding,
9993
+ padding = _ref12$padding === void 0 ? '0px' : _ref12$padding,
9994
+ titlecolor = _ref12.titlecolor,
9995
+ _ref12$required = _ref12.required,
9996
+ required = _ref12$required === void 0 ? false : _ref12$required,
9997
+ background = _ref12.background;
9997
9998
  var themeColors = useTheme();
9998
9999
  var _useState = useState(disabled),
9999
10000
  isDisabled = _useState[0],