labsense-ui-kit 1.2.18 → 1.2.20

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.
@@ -27,6 +27,7 @@ export declare const Container: import("styled-components/dist/types").IStyledCo
27
27
  $flexWrap?: string | undefined;
28
28
  $textAlign?: string | undefined;
29
29
  $overflow?: string | undefined;
30
+ $overflowWrap?: string | undefined;
30
31
  $overflowY?: string | undefined;
31
32
  $color?: string | undefined;
32
33
  $zIndex?: number | undefined;
package/dist/index.js CHANGED
@@ -3773,7 +3773,7 @@ var useCustomModal = function useCustomModal(_ref4) {
3773
3773
  };
3774
3774
 
3775
3775
  var _templateObject$1, _templateObject2$1;
3776
- var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: ", ";\n flex-wrap: ", ";\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", "; \n gap: ", ";\n font-weight: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n padding: ", ";\n background: ", ";\n object-fit:", ";\n margin: ", ";\n border-radius: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n border-bottom-left-radius: ", ";\n cursor: ", ";\n font-size: ", ";\n opacity: ", ";\n pointer-events: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n text-align: ", "; \n color: ", "; \n overflow: ", ";\n overflow-y: ", ";\n z-index: ", "; \n scrollbar-width: ", ";\n border: ", "; \n border-top: ", ";\n border-bottom: ", ";\n border-left: ", ";\n transition: ", ";\n transform: ", ";\n box-shadow: ", ";\n backdrop-filter: ", ";\n white-space: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_ref) {
3776
+ var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: ", ";\n flex-wrap: ", ";\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", "; \n gap: ", ";\n font-weight: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n padding: ", ";\n background: ", ";\n object-fit:", ";\n margin: ", ";\n border-radius: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n border-bottom-left-radius: ", ";\n cursor: ", ";\n font-size: ", ";\n opacity: ", ";\n pointer-events: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n text-align: ", "; \n color: ", "; \n overflow: ", ";\n overflow-wrap: ", ";\n overflow-y: ", ";\n z-index: ", "; \n scrollbar-width: ", ";\n border: ", "; \n border-top: ", ";\n border-bottom: ", ";\n border-left: ", ";\n transition: ", ";\n transform: ", ";\n box-shadow: ", ";\n backdrop-filter: ", ";\n white-space: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_ref) {
3777
3777
  var $flex = _ref.$flex;
3778
3778
  return $flex;
3779
3779
  }, function (_ref2) {
@@ -3876,81 +3876,84 @@ var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _t
3876
3876
  var $overflow = _ref34.$overflow;
3877
3877
  return $overflow || 'visible';
3878
3878
  }, function (_ref35) {
3879
- var $overflowY = _ref35.$overflowY;
3880
- return $overflowY;
3879
+ var $overflowWrap = _ref35.$overflowWrap;
3880
+ return $overflowWrap;
3881
3881
  }, function (_ref36) {
3882
- var $zIndex = _ref36.$zIndex;
3883
- return $zIndex;
3882
+ var $overflowY = _ref36.$overflowY;
3883
+ return $overflowY;
3884
3884
  }, function (_ref37) {
3885
- var $scrollbarWidth = _ref37.$scrollbarWidth;
3886
- return $scrollbarWidth;
3885
+ var $zIndex = _ref37.$zIndex;
3886
+ return $zIndex;
3887
3887
  }, function (_ref38) {
3888
- var $border = _ref38.$border;
3889
- return $border;
3888
+ var $scrollbarWidth = _ref38.$scrollbarWidth;
3889
+ return $scrollbarWidth;
3890
3890
  }, function (_ref39) {
3891
- var $borderTop = _ref39.$borderTop;
3892
- return $borderTop;
3891
+ var $border = _ref39.$border;
3892
+ return $border;
3893
3893
  }, function (_ref40) {
3894
- var $borderBottom = _ref40.$borderBottom;
3895
- return $borderBottom;
3894
+ var $borderTop = _ref40.$borderTop;
3895
+ return $borderTop;
3896
3896
  }, function (_ref41) {
3897
- var $borderLeft = _ref41.$borderLeft;
3898
- return $borderLeft;
3897
+ var $borderBottom = _ref41.$borderBottom;
3898
+ return $borderBottom;
3899
3899
  }, function (_ref42) {
3900
- var $transition = _ref42.$transition;
3901
- return $transition;
3900
+ var $borderLeft = _ref42.$borderLeft;
3901
+ return $borderLeft;
3902
3902
  }, function (_ref43) {
3903
- var $transform = _ref43.$transform;
3904
- return $transform;
3903
+ var $transition = _ref43.$transition;
3904
+ return $transition;
3905
3905
  }, function (_ref44) {
3906
- var $boxShadow = _ref44.$boxShadow;
3907
- return $boxShadow;
3906
+ var $transform = _ref44.$transform;
3907
+ return $transform;
3908
3908
  }, function (_ref45) {
3909
- var $backDropFilter = _ref45.$backDropFilter;
3910
- return $backDropFilter;
3909
+ var $boxShadow = _ref45.$boxShadow;
3910
+ return $boxShadow;
3911
3911
  }, function (_ref46) {
3912
- var $whiteSpace = _ref46.$whiteSpace;
3913
- return $whiteSpace;
3912
+ var $backDropFilter = _ref46.$backDropFilter;
3913
+ return $backDropFilter;
3914
3914
  }, function (_ref47) {
3915
- var $hoverBackground = _ref47.$hoverBackground;
3916
- return $hoverBackground;
3915
+ var $whiteSpace = _ref47.$whiteSpace;
3916
+ return $whiteSpace;
3917
3917
  }, function (_ref48) {
3918
- var $hoverColor = _ref48.$hoverColor;
3918
+ var $hoverBackground = _ref48.$hoverBackground;
3919
+ return $hoverBackground;
3920
+ }, function (_ref49) {
3921
+ var $hoverColor = _ref49.$hoverColor;
3919
3922
  return $hoverColor;
3920
3923
  });
3921
- var Span = styled__default.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-style: ", ";\n color: ", ";\n line-height: ", ";\n text-align: ", ";\n min-width: ", ";\n width: ", ";\n overflow-wrap: ", ";\n white-space: ", ";\n"])), function (_ref49) {
3922
- var $fontFamily = _ref49.$fontFamily;
3924
+ var Span = styled__default.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-style: ", ";\n color: ", ";\n line-height: ", ";\n text-align: ", ";\n min-width: ", ";\n width: ", ";\n overflow-wrap: ", ";\n white-space: ", ";\n"])), function (_ref50) {
3925
+ var $fontFamily = _ref50.$fontFamily;
3923
3926
  return $fontFamily ? $fontFamily : 'NotoSans, sans-serif';
3924
- }, function (_ref50) {
3925
- var $fontWeight = _ref50.$fontWeight;
3926
- return $fontWeight ? $fontWeight : '500';
3927
3927
  }, function (_ref51) {
3928
- var $fontSize = _ref51.$fontSize;
3929
- return $fontSize ? $fontSize : '16px';
3928
+ var $fontWeight = _ref51.$fontWeight;
3929
+ return $fontWeight ? $fontWeight : '500';
3930
3930
  }, function (_ref52) {
3931
- var $fontStyle = _ref52.$fontStyle;
3932
- return $fontStyle ? $fontStyle : 'normal';
3931
+ var $fontSize = _ref52.$fontSize;
3932
+ return $fontSize ? $fontSize : '16px';
3933
3933
  }, function (_ref53) {
3934
- var $color = _ref53.$color,
3935
- theme = _ref53.theme;
3936
- return $color ? $color : theme.text.medium;
3934
+ var $fontStyle = _ref53.$fontStyle;
3935
+ return $fontStyle ? $fontStyle : 'normal';
3937
3936
  }, function (_ref54) {
3938
- var $lineHeight = _ref54.$lineHeight;
3939
- return $lineHeight ? $lineHeight : '100%';
3937
+ var $color = _ref54.$color,
3938
+ theme = _ref54.theme;
3939
+ return $color ? $color : theme.text.medium;
3940
3940
  }, function (_ref55) {
3941
- var $textAlign = _ref55.$textAlign;
3942
- return $textAlign ? $textAlign : 'center';
3941
+ var $lineHeight = _ref55.$lineHeight;
3942
+ return $lineHeight ? $lineHeight : '100%';
3943
3943
  }, function (_ref56) {
3944
- var $minWidth = _ref56.$minWidth;
3945
- return $minWidth;
3944
+ var $textAlign = _ref56.$textAlign;
3945
+ return $textAlign ? $textAlign : 'center';
3946
3946
  }, function (_ref57) {
3947
- var $width = _ref57.$width;
3948
- return $width;
3947
+ var $minWidth = _ref57.$minWidth;
3948
+ return $minWidth;
3949
3949
  }, function (_ref58) {
3950
- var $overflowWrap = _ref58.$overflowWrap;
3951
- return $overflowWrap;
3950
+ var $width = _ref58.$width;
3951
+ return $width;
3952
3952
  }, function (_ref59) {
3953
- var $whiteSpace = _ref59.$whiteSpace;
3953
+ var $overflowWrap = _ref59.$overflowWrap;
3954
+ return $overflowWrap;
3955
+ }, function (_ref60) {
3956
+ var $whiteSpace = _ref60.$whiteSpace;
3954
3957
  return $whiteSpace;
3955
3958
  });
3956
3959
 
@@ -4805,7 +4808,7 @@ var ButtonComponent = function ButtonComponent(_ref21) {
4805
4808
  var loaderPos = loaderProps.loaderPosition || 'right';
4806
4809
  return React__default.createElement(StyledButton, {
4807
4810
  "$disabled": disabled,
4808
- onClick: onClick,
4811
+ onClick: !disabled ? onClick : undefined,
4809
4812
  "$buttonWidth": buttonWidth,
4810
4813
  "$background": background,
4811
4814
  "$borderDefault": borderDefault,