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.
- package/dist/index.js +92 -91
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +92 -91
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9480,7 +9480,7 @@ var Label = styled__default.label(_templateObject$f || (_templateObject$f = _tag
|
|
|
9480
9480
|
return $titlecolor;
|
|
9481
9481
|
}
|
|
9482
9482
|
});
|
|
9483
|
-
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
|
|
9483
|
+
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: 1px solid\n ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n }\n"])), function (_ref4) {
|
|
9484
9484
|
var theme = _ref4.theme;
|
|
9485
9485
|
return "1px solid " + theme.vms.border.light;
|
|
9486
9486
|
}, function (_ref5) {
|
|
@@ -9495,11 +9495,8 @@ var Input = styled__default.input(_templateObject2$c || (_templateObject2$c = _t
|
|
|
9495
9495
|
var $color = _ref7.$color;
|
|
9496
9496
|
return $color;
|
|
9497
9497
|
}, function (_ref8) {
|
|
9498
|
-
var $
|
|
9499
|
-
|
|
9500
|
-
}, function (_ref9) {
|
|
9501
|
-
var $size = _ref9.$size,
|
|
9502
|
-
$type = _ref9.$type;
|
|
9498
|
+
var $size = _ref8.$size,
|
|
9499
|
+
$type = _ref8.$type;
|
|
9503
9500
|
switch ($size) {
|
|
9504
9501
|
case 'small':
|
|
9505
9502
|
return "\n font-size: 12px;\n padding: " + ($type === 'password' ? '5px 38px 5px 10px' : '5px 10px') + ";\n ";
|
|
@@ -9510,9 +9507,9 @@ var Input = styled__default.input(_templateObject2$c || (_templateObject2$c = _t
|
|
|
9510
9507
|
default:
|
|
9511
9508
|
return "\n font-size: 14px;\n padding: " + ($type === 'password' ? '7px 38px 7px 12px' : '7px 12px') + ";\n ";
|
|
9512
9509
|
}
|
|
9513
|
-
}, function (
|
|
9514
|
-
var $color =
|
|
9515
|
-
theme =
|
|
9510
|
+
}, function (_ref9) {
|
|
9511
|
+
var $color = _ref9.$color,
|
|
9512
|
+
theme = _ref9.theme;
|
|
9516
9513
|
switch ($color) {
|
|
9517
9514
|
case 'dark':
|
|
9518
9515
|
return theme.vms.text.dark;
|
|
@@ -9533,89 +9530,95 @@ var Input = styled__default.input(_templateObject2$c || (_templateObject2$c = _t
|
|
|
9533
9530
|
default:
|
|
9534
9531
|
return $color;
|
|
9535
9532
|
}
|
|
9536
|
-
}, function (
|
|
9537
|
-
var theme =
|
|
9533
|
+
}, function (_ref10) {
|
|
9534
|
+
var theme = _ref10.theme;
|
|
9538
9535
|
return theme.vms.text.light;
|
|
9539
9536
|
});
|
|
9540
9537
|
var InputWrapper$1 = styled__default.div(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n"])));
|
|
9541
|
-
var IconWrapper$1 = styled__default.div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 12px;\n cursor: pointer;\n\n > div {\n cursor: ", ";\n }\n"])), function (
|
|
9542
|
-
var $disabled =
|
|
9538
|
+
var IconWrapper$1 = styled__default.div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 12px;\n cursor: pointer;\n\n > div {\n cursor: ", ";\n }\n"])), function (_ref11) {
|
|
9539
|
+
var $disabled = _ref11.$disabled;
|
|
9543
9540
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
9544
9541
|
});
|
|
9545
|
-
var Asterisk$1 = styled__default.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 (
|
|
9546
|
-
var theme =
|
|
9542
|
+
var Asterisk$1 = styled__default.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) {
|
|
9543
|
+
var theme = _ref12.theme;
|
|
9547
9544
|
return theme.vms["default"].error;
|
|
9548
9545
|
});
|
|
9549
|
-
var TimeInputWrapper$1 = styled__default(InputWrapper$1)(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n cursor:
|
|
9550
|
-
var
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9546
|
+
var TimeInputWrapper$1 = styled__default(InputWrapper$1)(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n cursor: ", ";\n\n input {\n cursor: ", ";\n }\n"])), function (_ref13) {
|
|
9547
|
+
var $disabled = _ref13.$disabled;
|
|
9548
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
9549
|
+
}, function (_ref14) {
|
|
9550
|
+
var $disabled = _ref14.$disabled;
|
|
9551
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
9552
|
+
});
|
|
9553
|
+
var TimePickerDropdown = styled__default.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) {
|
|
9554
9554
|
var theme = _ref15.theme;
|
|
9555
|
+
return theme.vms.border.light;
|
|
9556
|
+
}, function (_ref16) {
|
|
9557
|
+
var theme = _ref16.theme;
|
|
9555
9558
|
return theme.vms.text.white;
|
|
9556
9559
|
});
|
|
9557
9560
|
var SliderColumn = styled__default.div(_templateObject8$4 || (_templateObject8$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"])));
|
|
9558
|
-
var SliderLabel = styled__default.div(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-weight: 500;\n color: ", ";\n margin-bottom: 4px;\n"])), function (
|
|
9559
|
-
var theme =
|
|
9561
|
+
var SliderLabel = styled__default.div(_templateObject9$4 || (_templateObject9$4 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-weight: 500;\n color: ", ";\n margin-bottom: 4px;\n"])), function (_ref17) {
|
|
9562
|
+
var theme = _ref17.theme;
|
|
9560
9563
|
return theme.vms.text.medium;
|
|
9561
9564
|
});
|
|
9562
|
-
var SliderWrapper = styled__default.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 (
|
|
9563
|
-
var theme = _ref17.theme;
|
|
9564
|
-
return theme.vms.border.light;
|
|
9565
|
-
}, function (_ref18) {
|
|
9565
|
+
var SliderWrapper = styled__default.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) {
|
|
9566
9566
|
var theme = _ref18.theme;
|
|
9567
|
-
return theme.vms.
|
|
9567
|
+
return theme.vms.border.light;
|
|
9568
9568
|
}, function (_ref19) {
|
|
9569
9569
|
var theme = _ref19.theme;
|
|
9570
9570
|
return theme.vms.accent.light_2;
|
|
9571
9571
|
}, function (_ref20) {
|
|
9572
9572
|
var theme = _ref20.theme;
|
|
9573
|
-
return theme.vms.
|
|
9573
|
+
return theme.vms.accent.light_2;
|
|
9574
9574
|
}, function (_ref21) {
|
|
9575
9575
|
var theme = _ref21.theme;
|
|
9576
|
+
return theme.vms.border.medium;
|
|
9577
|
+
}, function (_ref22) {
|
|
9578
|
+
var theme = _ref22.theme;
|
|
9576
9579
|
return theme.vms.text.medium;
|
|
9577
9580
|
});
|
|
9578
|
-
var SliderItem = styled__default.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 (
|
|
9579
|
-
var $selected = _ref22.$selected,
|
|
9580
|
-
theme = _ref22.theme;
|
|
9581
|
-
return $selected ? theme.vms.text.white : theme.vms.text.dark;
|
|
9582
|
-
}, function (_ref23) {
|
|
9581
|
+
var SliderItem = styled__default.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) {
|
|
9583
9582
|
var $selected = _ref23.$selected,
|
|
9584
9583
|
theme = _ref23.theme;
|
|
9585
|
-
return $selected ? theme.vms
|
|
9584
|
+
return $selected ? theme.vms.text.white : theme.vms.text.dark;
|
|
9586
9585
|
}, function (_ref24) {
|
|
9587
9586
|
var $selected = _ref24.$selected,
|
|
9588
9587
|
theme = _ref24.theme;
|
|
9588
|
+
return $selected ? theme.vms["default"].primary : 'transparent';
|
|
9589
|
+
}, function (_ref25) {
|
|
9590
|
+
var $selected = _ref25.$selected,
|
|
9591
|
+
theme = _ref25.theme;
|
|
9589
9592
|
return $selected ? theme.vms["default"].primary : theme.vms.accent.light_3;
|
|
9590
9593
|
});
|
|
9591
|
-
var TextField = function TextField(
|
|
9592
|
-
var
|
|
9593
|
-
type =
|
|
9594
|
-
title =
|
|
9595
|
-
name =
|
|
9596
|
-
titleWeight =
|
|
9597
|
-
placeholder =
|
|
9598
|
-
|
|
9599
|
-
disabled =
|
|
9600
|
-
inputValue =
|
|
9601
|
-
onChange =
|
|
9602
|
-
|
|
9603
|
-
size =
|
|
9604
|
-
color =
|
|
9605
|
-
|
|
9606
|
-
padding =
|
|
9607
|
-
titlecolor =
|
|
9608
|
-
icon =
|
|
9609
|
-
|
|
9610
|
-
iconsize =
|
|
9611
|
-
iconweight =
|
|
9612
|
-
iconcolor =
|
|
9613
|
-
|
|
9614
|
-
required =
|
|
9615
|
-
background =
|
|
9616
|
-
onEnter =
|
|
9617
|
-
titleRightNode =
|
|
9618
|
-
autoComplete =
|
|
9594
|
+
var TextField = function TextField(_ref26) {
|
|
9595
|
+
var _ref26$type = _ref26.type,
|
|
9596
|
+
type = _ref26$type === void 0 ? 'text' : _ref26$type,
|
|
9597
|
+
title = _ref26.title,
|
|
9598
|
+
name = _ref26.name,
|
|
9599
|
+
titleWeight = _ref26.titleWeight,
|
|
9600
|
+
placeholder = _ref26.placeholder,
|
|
9601
|
+
_ref26$disabled = _ref26.disabled,
|
|
9602
|
+
disabled = _ref26$disabled === void 0 ? false : _ref26$disabled,
|
|
9603
|
+
inputValue = _ref26.inputValue,
|
|
9604
|
+
onChange = _ref26.onChange,
|
|
9605
|
+
_ref26$size = _ref26.size,
|
|
9606
|
+
size = _ref26$size === void 0 ? 'medium' : _ref26$size,
|
|
9607
|
+
color = _ref26.color,
|
|
9608
|
+
_ref26$padding = _ref26.padding,
|
|
9609
|
+
padding = _ref26$padding === void 0 ? '0px' : _ref26$padding,
|
|
9610
|
+
titlecolor = _ref26.titlecolor,
|
|
9611
|
+
icon = _ref26.icon,
|
|
9612
|
+
_ref26$iconsize = _ref26.iconsize,
|
|
9613
|
+
iconsize = _ref26$iconsize === void 0 ? 18 : _ref26$iconsize,
|
|
9614
|
+
iconweight = _ref26.iconweight,
|
|
9615
|
+
iconcolor = _ref26.iconcolor,
|
|
9616
|
+
_ref26$required = _ref26.required,
|
|
9617
|
+
required = _ref26$required === void 0 ? false : _ref26$required,
|
|
9618
|
+
background = _ref26.background,
|
|
9619
|
+
onEnter = _ref26.onEnter,
|
|
9620
|
+
titleRightNode = _ref26.titleRightNode,
|
|
9621
|
+
autoComplete = _ref26.autoComplete;
|
|
9619
9622
|
var themeColors = useTheme();
|
|
9620
9623
|
var _useState = React.useState(disabled),
|
|
9621
9624
|
isDisabled = _useState[0],
|
|
@@ -9804,7 +9807,8 @@ var TextField = function TextField(_ref25) {
|
|
|
9804
9807
|
htmlFor: title,
|
|
9805
9808
|
"$titlecolor": titlecolor || themeColors.vms.text.dark
|
|
9806
9809
|
}, title, required && React__default.createElement(Asterisk$1, null, "*")), titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.node), React__default.createElement(TimeInputWrapper$1, {
|
|
9807
|
-
ref: timePickerRef
|
|
9810
|
+
ref: timePickerRef,
|
|
9811
|
+
"$disabled": isDisabled
|
|
9808
9812
|
}, React__default.createElement(Input, {
|
|
9809
9813
|
type: 'text',
|
|
9810
9814
|
value: timeValue,
|
|
@@ -9943,7 +9947,7 @@ var Label$1 = styled__default.label(_templateObject2$d || (_templateObject2$d =
|
|
|
9943
9947
|
theme = _ref4.theme;
|
|
9944
9948
|
return $titlecolor || theme.vms.text.dark;
|
|
9945
9949
|
});
|
|
9946
|
-
var TextAreaComponent = styled__default.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
|
|
9950
|
+
var TextAreaComponent = styled__default.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) {
|
|
9947
9951
|
var theme = _ref5.theme;
|
|
9948
9952
|
return "1px solid " + theme.vms.border.light;
|
|
9949
9953
|
}, function (_ref6) {
|
|
@@ -9958,10 +9962,7 @@ var TextAreaComponent = styled__default.textarea(_templateObject3$9 || (_templat
|
|
|
9958
9962
|
var $color = _ref8.$color;
|
|
9959
9963
|
return $color;
|
|
9960
9964
|
}, function (_ref9) {
|
|
9961
|
-
var $
|
|
9962
|
-
return $disabled ? 'none' : 'auto';
|
|
9963
|
-
}, function (_ref10) {
|
|
9964
|
-
var $size = _ref10.$size;
|
|
9965
|
+
var $size = _ref9.$size;
|
|
9965
9966
|
switch ($size) {
|
|
9966
9967
|
case 'small':
|
|
9967
9968
|
return 'font-size: 12px; padding: 5px 10px;';
|
|
@@ -9972,32 +9973,32 @@ var TextAreaComponent = styled__default.textarea(_templateObject3$9 || (_templat
|
|
|
9972
9973
|
default:
|
|
9973
9974
|
return 'font-size: 14px; padding: 7px 12px;';
|
|
9974
9975
|
}
|
|
9975
|
-
}, function (
|
|
9976
|
-
var $color =
|
|
9977
|
-
theme =
|
|
9976
|
+
}, function (_ref10) {
|
|
9977
|
+
var $color = _ref10.$color,
|
|
9978
|
+
theme = _ref10.theme;
|
|
9978
9979
|
return $color || theme.vms.text.dark;
|
|
9979
|
-
}, function (
|
|
9980
|
-
var theme =
|
|
9980
|
+
}, function (_ref11) {
|
|
9981
|
+
var theme = _ref11.theme;
|
|
9981
9982
|
return theme.vms.text.light;
|
|
9982
9983
|
});
|
|
9983
|
-
var TextArea = function TextArea(
|
|
9984
|
-
var title =
|
|
9985
|
-
name =
|
|
9986
|
-
titleWeight =
|
|
9987
|
-
placeholder =
|
|
9988
|
-
|
|
9989
|
-
disabled =
|
|
9990
|
-
inputValue =
|
|
9991
|
-
onChange =
|
|
9992
|
-
|
|
9993
|
-
size =
|
|
9994
|
-
color =
|
|
9995
|
-
|
|
9996
|
-
padding =
|
|
9997
|
-
titlecolor =
|
|
9998
|
-
|
|
9999
|
-
required =
|
|
10000
|
-
background =
|
|
9984
|
+
var TextArea = function TextArea(_ref12) {
|
|
9985
|
+
var title = _ref12.title,
|
|
9986
|
+
name = _ref12.name,
|
|
9987
|
+
titleWeight = _ref12.titleWeight,
|
|
9988
|
+
placeholder = _ref12.placeholder,
|
|
9989
|
+
_ref12$disabled = _ref12.disabled,
|
|
9990
|
+
disabled = _ref12$disabled === void 0 ? false : _ref12$disabled,
|
|
9991
|
+
inputValue = _ref12.inputValue,
|
|
9992
|
+
onChange = _ref12.onChange,
|
|
9993
|
+
_ref12$size = _ref12.size,
|
|
9994
|
+
size = _ref12$size === void 0 ? 'medium' : _ref12$size,
|
|
9995
|
+
color = _ref12.color,
|
|
9996
|
+
_ref12$padding = _ref12.padding,
|
|
9997
|
+
padding = _ref12$padding === void 0 ? '0px' : _ref12$padding,
|
|
9998
|
+
titlecolor = _ref12.titlecolor,
|
|
9999
|
+
_ref12$required = _ref12.required,
|
|
10000
|
+
required = _ref12$required === void 0 ? false : _ref12$required,
|
|
10001
|
+
background = _ref12.background;
|
|
10001
10002
|
var themeColors = useTheme();
|
|
10002
10003
|
var _useState = React.useState(disabled),
|
|
10003
10004
|
isDisabled = _useState[0],
|