labsense-ui-kit 1.0.27 → 1.0.29
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2328,6 +2328,7 @@ var StyledButton = styled__default.button(_templateObject5 || (_templateObject5
|
|
|
2328
2328
|
padding = _ref13.padding;
|
|
2329
2329
|
return size === 'small' ? '8px 12.2px' : size === 'medium' ? '10px 19px' : size === 'large' ? '12px 24.5px' : size === 'custom' ? padding : '10px 16px';
|
|
2330
2330
|
}, function (_ref14) {
|
|
2331
|
+
var _borderHover$match;
|
|
2331
2332
|
var variant = _ref14.variant,
|
|
2332
2333
|
disabled = _ref14.disabled,
|
|
2333
2334
|
borderHover = _ref14.borderHover,
|
|
@@ -2338,7 +2339,7 @@ var StyledButton = styled__default.button(_templateObject5 || (_templateObject5
|
|
|
2338
2339
|
case 'secondary':
|
|
2339
2340
|
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
2341
|
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 ?
|
|
2342
|
+
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: " + (!disabled && borderHover ? (_borderHover$match = borderHover.match(/#\w+/)) === null || _borderHover$match === void 0 ? void 0 : _borderHover$match[0] : colorVariables.hover.primary) + ";\n border: " + (borderHover ? borderHover : "1px solid " + colorVariables.hover.primary) + ";\n }\n ";
|
|
2342
2343
|
case 'error':
|
|
2343
2344
|
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
2345
|
case 'outline-primary':
|
|
@@ -2433,7 +2434,6 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
2433
2434
|
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
2435
|
}), text && React__default.createElement(ButtonText, {
|
|
2435
2436
|
size: size,
|
|
2436
|
-
color: color,
|
|
2437
2437
|
fontFamily: fontFamily,
|
|
2438
2438
|
fontSize: fontSize,
|
|
2439
2439
|
fontWeight: fontWeight
|