labsense-ui-kit 1.0.28 → 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 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2324,6 +2324,7 @@ var StyledButton = styled.button(_templateObject5 || (_templateObject5 = _tagged
|
|
|
2324
2324
|
padding = _ref13.padding;
|
|
2325
2325
|
return size === 'small' ? '8px 12.2px' : size === 'medium' ? '10px 19px' : size === 'large' ? '12px 24.5px' : size === 'custom' ? padding : '10px 16px';
|
|
2326
2326
|
}, function (_ref14) {
|
|
2327
|
+
var _borderHover$match;
|
|
2327
2328
|
var variant = _ref14.variant,
|
|
2328
2329
|
disabled = _ref14.disabled,
|
|
2329
2330
|
borderHover = _ref14.borderHover,
|
|
@@ -2334,7 +2335,7 @@ var StyledButton = styled.button(_templateObject5 || (_templateObject5 = _tagged
|
|
|
2334
2335
|
case 'secondary':
|
|
2335
2336
|
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
2337
|
case 'tertiary':
|
|
2337
|
-
return "\n background: " + colorVariables["default"].tertiary + ";\n color: " + (
|
|
2338
|
+
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 ";
|
|
2338
2339
|
case 'error':
|
|
2339
2340
|
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
2341
|
case 'outline-primary':
|