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.
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2304,7 +2304,7 @@ var LoaderWrapper = styled__default.div(_templateObject3$1 || (_templateObject3$
|
|
|
2304
2304
|
var loaderPosition = _ref6.loaderPosition;
|
|
2305
2305
|
return loaderPosition === 'left' ? '4px' : '0';
|
|
2306
2306
|
});
|
|
2307
|
-
var Container = styled__default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n
|
|
2307
|
+
var Container = styled__default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n svg {\n cursor: ", ";\n }\n"])), function (_ref7) {
|
|
2308
2308
|
var iconPosition = _ref7.iconPosition;
|
|
2309
2309
|
return iconPosition === 'right' ? 'row-reverse' : 'row';
|
|
2310
2310
|
}, function (_ref8) {
|
|
@@ -2338,7 +2338,7 @@ var StyledButton = styled__default.button(_templateObject5 || (_templateObject5
|
|
|
2338
2338
|
case 'secondary':
|
|
2339
2339
|
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 ";
|
|
2340
2340
|
case 'tertiary':
|
|
2341
|
-
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 ?
|
|
2341
|
+
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 ";
|
|
2342
2342
|
case 'error':
|
|
2343
2343
|
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 ";
|
|
2344
2344
|
case 'outline-primary':
|
|
@@ -2425,7 +2425,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
2425
2425
|
}, React__default.createElement(Container, {
|
|
2426
2426
|
iconPosition: iconPos,
|
|
2427
2427
|
gap: gap,
|
|
2428
|
-
cursor: !disabled &&
|
|
2428
|
+
cursor: !disabled && typeof onClick === 'function' ? 'pointer' : 'default'
|
|
2429
2429
|
}, icon && React__default.createElement(Icon, {
|
|
2430
2430
|
icon: icon,
|
|
2431
2431
|
weight: iconWeight,
|
|
@@ -2433,7 +2433,6 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
2433
2433
|
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
|
|
2434
2434
|
}), text && React__default.createElement(ButtonText, {
|
|
2435
2435
|
size: size,
|
|
2436
|
-
color: color,
|
|
2437
2436
|
fontFamily: fontFamily,
|
|
2438
2437
|
fontSize: fontSize,
|
|
2439
2438
|
fontWeight: fontWeight
|