labsense-ui-kit 1.1.4 → 1.1.5
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 +1 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -2
- 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
|
@@ -3192,7 +3192,8 @@ var StyledButton = styled__default.button(_templateObject5 || (_templateObject5
|
|
|
3192
3192
|
$borderHover = _ref14.$borderHover,
|
|
3193
3193
|
$borderDefault = _ref14.$borderDefault,
|
|
3194
3194
|
$background = _ref14.$background,
|
|
3195
|
-
$color = _ref14.$color
|
|
3195
|
+
$color = _ref14.$color,
|
|
3196
|
+
$colorHover = _ref14.$colorHover;
|
|
3196
3197
|
switch ($variant) {
|
|
3197
3198
|
case 'primary':
|
|
3198
3199
|
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 ";
|
|
@@ -3209,7 +3210,7 @@ var StyledButton = styled__default.button(_templateObject5 || (_templateObject5
|
|
|
3209
3210
|
case 'outline-error':
|
|
3210
3211
|
return "\n background: " + colorVariables["default"].tertiary + ";\n color: " + ($disabled ? colorVariables.disabled.error : colorVariables["default"].error) + ";\n border: " + ($disabled ? "1px solid " + colorVariables.disabled.error : "1px solid " + colorVariables["default"].error) + ";\n &:hover{\n border: 1px solid " + colorVariables.hover.error + ";\n color: " + colorVariables.text.white + ";\n background: " + colorVariables.hover.error + ";\n }\n ";
|
|
3211
3212
|
case 'custom':
|
|
3212
|
-
return "\n background: " + $background + ";\n color: " + $color + ";\n border: " + ("1px solid " + $borderDefault) + ";\n &:hover{\n border: 1px solid " + $borderHover + ";\n color: " + $
|
|
3213
|
+
return "\n background: " + $background + ";\n color: " + $color + ";\n border: " + ("1px solid " + $borderDefault) + ";\n &:hover{\n border: 1px solid " + $borderHover + ";\n color: " + $colorHover + ";\n background: " + $borderHover + ";\n }\n ";
|
|
3213
3214
|
default:
|
|
3214
3215
|
return '';
|
|
3215
3216
|
}
|
|
@@ -3241,6 +3242,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
3241
3242
|
_ref20$hoverColor = _ref20.hoverColor,
|
|
3242
3243
|
hoverColor = _ref20$hoverColor === void 0 ? colorVariables.text.white : _ref20$hoverColor,
|
|
3243
3244
|
color = _ref20.color,
|
|
3245
|
+
colorHover = _ref20.colorHover,
|
|
3244
3246
|
borderDefault = _ref20.borderDefault,
|
|
3245
3247
|
borderHover = _ref20.borderHover,
|
|
3246
3248
|
borderRadius = _ref20.borderRadius,
|
|
@@ -3280,6 +3282,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
3280
3282
|
"$borderRadius": borderRadius,
|
|
3281
3283
|
"$size": size,
|
|
3282
3284
|
"$color": color,
|
|
3285
|
+
"$colorHover": colorHover,
|
|
3283
3286
|
"$padding": padding,
|
|
3284
3287
|
"$variant": variant,
|
|
3285
3288
|
onMouseEnter: function onMouseEnter() {
|