labsense-ui-kit 1.0.26 → 1.0.28

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.
@@ -2300,7 +2300,7 @@ var LoaderWrapper = styled.div(_templateObject3$1 || (_templateObject3$1 = _tagg
2300
2300
  var loaderPosition = _ref6.loaderPosition;
2301
2301
  return loaderPosition === 'left' ? '4px' : '0';
2302
2302
  });
2303
- var Container = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n \n svg {\n cursor: ", ";\n }\n"])), function (_ref7) {
2303
+ var Container = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n svg {\n cursor: ", ";\n }\n"])), function (_ref7) {
2304
2304
  var iconPosition = _ref7.iconPosition;
2305
2305
  return iconPosition === 'right' ? 'row-reverse' : 'row';
2306
2306
  }, function (_ref8) {
@@ -2334,7 +2334,7 @@ var StyledButton = styled.button(_templateObject5 || (_templateObject5 = _tagged
2334
2334
  case 'secondary':
2335
2335
  return "\n background: " + (disabled ? colorVariables.disabled.secondary : colorVariables["default"].secondary) + "; \n color: " + colorVariables.text.white + ";\n border: " + (disabled ? "1px solid " + colorVariables.disabled.secondary : "1px solid " + colorVariables["default"].secondary) + ";\n &:hover{\n background: " + colorVariables.hover.secondary + ";\n border: 1px solid " + colorVariables.hover.secondary + ";\n }\n ";
2336
2336
  case 'tertiary':
2337
- return "\n background: " + colorVariables["default"].tertiary + ";\n color: " + (disabled ? colorVariables.disabled.primary : colorVariables["default"].primary) + ";\n border: " + (borderDefault ? "" + borderDefault : "1px solid " + colorVariables["default"].tertiary) + ";\n &:hover {\n color: " + colorVariables.hover.primary + ";\n border: " + (borderHover ? "" + borderHover : "1px solid " + colorVariables.hover.primary) + ";\n }\n ";
2337
+ return "\n background: " + colorVariables["default"].tertiary + ";\n color: " + (!disabled && borderHover ? borderHover : disabled ? colorVariables.disabled.primary : colorVariables["default"].primary) + ";\n border: " + (borderDefault ? "" + borderDefault : "1px solid " + colorVariables["default"].tertiary) + ";\n &:hover {\n color: " + colorVariables.hover.primary + ";\n border: " + (borderHover ? borderHover : "1px solid " + colorVariables.hover.primary) + ";\n }\n ";
2338
2338
  case 'error':
2339
2339
  return "\n background: " + (disabled ? colorVariables.disabled.error : colorVariables["default"].error) + "; \n color: " + colorVariables.text.white + ";\n border: " + (disabled ? "1px solid " + colorVariables.disabled.error : "1px solid " + colorVariables["default"].error) + ";\n &:hover{\n background: " + colorVariables.hover.error + ";\n border: 1px solid " + colorVariables.hover.error + ";\n }\n ";
2340
2340
  case 'outline-primary':
@@ -2421,7 +2421,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
2421
2421
  }, React.createElement(Container, {
2422
2422
  iconPosition: iconPos,
2423
2423
  gap: gap,
2424
- cursor: !disabled && onclick ? 'pointer' : 'default'
2424
+ cursor: !disabled && typeof onClick === 'function' ? 'pointer' : 'default'
2425
2425
  }, icon && React.createElement(Icon, {
2426
2426
  icon: icon,
2427
2427
  weight: iconWeight,
@@ -2429,7 +2429,6 @@ var ButtonComponent = function ButtonComponent(_ref20) {
2429
2429
  color: variant === 'tertiary' && isHovered ? colorVariables.hover.primary : variant === 'tertiary' && disabled ? colorVariables.disabled.primary : variant === 'tertiary' ? colorVariables["default"].primary : variant === 'outline-primary' && isHovered ? colorVariables.text.white : variant === 'outline-primary' && disabled ? colorVariables.disabled.primary : variant === 'outline-primary' ? colorVariables["default"].primary : variant === 'outline-secondary' && isHovered ? colorVariables.text.white : variant === 'outline-secondary' && disabled ? colorVariables.disabled.secondary : variant === 'outline-secondary' ? colorVariables["default"].secondary : variant === 'outline-error' && isHovered ? colorVariables.text.white : variant === 'outline-error' && disabled ? colorVariables.disabled.error : variant === 'outline-error' ? colorVariables["default"].error : color ? color : colorVariables.text.white
2430
2430
  }), text && React.createElement(ButtonText, {
2431
2431
  size: size,
2432
- color: color,
2433
2432
  fontFamily: fontFamily,
2434
2433
  fontSize: fontSize,
2435
2434
  fontWeight: fontWeight