labsense-ui-kit 1.0.23 → 1.0.25
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/Buttons/Button.d.ts +2 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/Buttons/Button.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2326,14 +2326,16 @@ var StyledButton = styled__default.button(_templateObject5 || (_templateObject5
|
|
|
2326
2326
|
return size === 'small' ? '8px 12.2px' : size === 'medium' ? '10px 19px' : size === 'large' ? '12px 24.5px' : size === 'custom' ? padding : '10px 16px';
|
|
2327
2327
|
}, function (_ref13) {
|
|
2328
2328
|
var variant = _ref13.variant,
|
|
2329
|
-
disabled = _ref13.disabled
|
|
2329
|
+
disabled = _ref13.disabled,
|
|
2330
|
+
borderHover = _ref13.borderHover,
|
|
2331
|
+
borderDefault = _ref13.borderDefault;
|
|
2330
2332
|
switch (variant) {
|
|
2331
2333
|
case 'primary':
|
|
2332
2334
|
return "\n background: " + (disabled ? colorVariables.disabled.primary : colorVariables["default"].primary) + ";\n color: " + colorVariables.text.white + ";\n border: " + (disabled ? "1px solid " + colorVariables.disabled.primary : "1px solid " + colorVariables["default"].primary) + ";\n &:hover {\n background: " + colorVariables.hover.primary + ";\n border: 1px solid " + colorVariables.hover.primary + ";\n }\n ";
|
|
2333
2335
|
case 'secondary':
|
|
2334
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 ";
|
|
2335
2337
|
case 'tertiary':
|
|
2336
|
-
return "\n background: " + colorVariables["default"].tertiary + ";\n color: " + (disabled ? colorVariables.disabled.primary : colorVariables["default"].primary) + ";\n border: 1px solid
|
|
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: " + colorVariables.hover.primary + ";\n border: " + (borderHover ? "" + borderHover : "1px solid " + colorVariables.hover.primary) + ";\n }\n ";
|
|
2337
2339
|
case 'error':
|
|
2338
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 ";
|
|
2339
2341
|
case 'outline-primary':
|
|
@@ -2371,7 +2373,8 @@ var ButtonComponent = function ButtonComponent(_ref19) {
|
|
|
2371
2373
|
size = _ref19.size,
|
|
2372
2374
|
background = _ref19.background,
|
|
2373
2375
|
color = _ref19.color,
|
|
2374
|
-
|
|
2376
|
+
borderDefault = _ref19.borderDefault,
|
|
2377
|
+
borderHover = _ref19.borderHover,
|
|
2375
2378
|
borderRadius = _ref19.borderRadius,
|
|
2376
2379
|
fontWeight = _ref19.fontWeight,
|
|
2377
2380
|
fontSize = _ref19.fontSize,
|
|
@@ -2403,7 +2406,8 @@ var ButtonComponent = function ButtonComponent(_ref19) {
|
|
|
2403
2406
|
disabled: disabled,
|
|
2404
2407
|
onClick: onClick,
|
|
2405
2408
|
background: background,
|
|
2406
|
-
|
|
2409
|
+
borderDefault: borderDefault,
|
|
2410
|
+
borderHover: borderHover,
|
|
2407
2411
|
borderRadius: borderRadius,
|
|
2408
2412
|
size: size,
|
|
2409
2413
|
color: color,
|