labsense-ui-kit 1.1.4 → 1.1.6
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/Container&Span/StyledComponents.d.ts +3 -2
- package/dist/index.js +32 -26
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +32 -26
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/Buttons/Button.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export declare const Container: import("styled-components/dist/types").IStyledCo
|
|
|
14
14
|
$padding?: string | undefined;
|
|
15
15
|
$background?: string | undefined;
|
|
16
16
|
$fontSize?: string | undefined;
|
|
17
|
-
$borderRadius?: string | undefined;
|
|
18
17
|
$objectfit?: string | undefined;
|
|
19
18
|
$margin?: string | undefined;
|
|
20
19
|
$cursor?: string | undefined;
|
|
@@ -33,7 +32,9 @@ export declare const Container: import("styled-components/dist/types").IStyledCo
|
|
|
33
32
|
$zIndex?: number | undefined;
|
|
34
33
|
$scrollbarWidth?: string | undefined;
|
|
35
34
|
$border?: string | undefined;
|
|
36
|
-
$
|
|
35
|
+
$borderRadius?: string | undefined;
|
|
36
|
+
$borderBottom?: string | undefined;
|
|
37
|
+
$borderLeft?: string | undefined;
|
|
37
38
|
$fontWeight?: string | undefined;
|
|
38
39
|
$hoverBackground?: string | undefined;
|
|
39
40
|
$hoverColor?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -2839,7 +2839,7 @@ var Icon = function Icon(_ref2) {
|
|
|
2839
2839
|
};
|
|
2840
2840
|
|
|
2841
2841
|
var _templateObject$1, _templateObject2$1;
|
|
2842
|
-
var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: ", ";\n flex-wrap: ", ";\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", "; \n gap: ", ";\n font-weight: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n padding: ", ";\n background: ", ";\n object-fit:", ";\n margin: ", ";\n border-radius: ", ";\n cursor: ", ";\n font-size: ", ";\n opacity: ", ";\n pointer-events: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n text-align: ", "; \n color: ", "; \n overflow: ", ";\n overflow-y: ", ";\n z-index: ", "; \n scrollbar-width: ", ";\n border: ", "; \n border-bottom: ", "
|
|
2842
|
+
var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: ", ";\n flex-wrap: ", ";\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", "; \n gap: ", ";\n font-weight: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n padding: ", ";\n background: ", ";\n object-fit:", ";\n margin: ", ";\n border-radius: ", ";\n cursor: ", ";\n font-size: ", ";\n opacity: ", ";\n pointer-events: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n text-align: ", "; \n color: ", "; \n overflow: ", ";\n overflow-y: ", ";\n z-index: ", "; \n scrollbar-width: ", ";\n border: ", "; \n border-bottom: ", ";\n border-left: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_ref) {
|
|
2843
2843
|
var $flex = _ref.$flex;
|
|
2844
2844
|
return $flex;
|
|
2845
2845
|
}, function (_ref2) {
|
|
@@ -2942,41 +2942,44 @@ var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _t
|
|
|
2942
2942
|
var $border = _ref34.$border;
|
|
2943
2943
|
return $border;
|
|
2944
2944
|
}, function (_ref35) {
|
|
2945
|
-
var $
|
|
2946
|
-
return $
|
|
2945
|
+
var $borderBottom = _ref35.$borderBottom;
|
|
2946
|
+
return $borderBottom;
|
|
2947
2947
|
}, function (_ref36) {
|
|
2948
|
-
var $
|
|
2949
|
-
return $
|
|
2948
|
+
var $borderLeft = _ref36.$borderLeft;
|
|
2949
|
+
return $borderLeft;
|
|
2950
2950
|
}, function (_ref37) {
|
|
2951
|
-
var $
|
|
2951
|
+
var $hoverBackground = _ref37.$hoverBackground;
|
|
2952
|
+
return $hoverBackground;
|
|
2953
|
+
}, function (_ref38) {
|
|
2954
|
+
var $hoverColor = _ref38.$hoverColor;
|
|
2952
2955
|
return $hoverColor;
|
|
2953
2956
|
});
|
|
2954
|
-
var Span = styled__default.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: ", ";\n text-align: ", ";\n min-width: ", ";\n width: ", ";\n overflow-wrap: ", ";\n"])), function (
|
|
2955
|
-
var $fontFamily =
|
|
2957
|
+
var Span = styled__default.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: ", ";\n text-align: ", ";\n min-width: ", ";\n width: ", ";\n overflow-wrap: ", ";\n"])), function (_ref39) {
|
|
2958
|
+
var $fontFamily = _ref39.$fontFamily;
|
|
2956
2959
|
return $fontFamily ? $fontFamily : 'NotoSans, sans-serif';
|
|
2957
|
-
}, function (_ref39) {
|
|
2958
|
-
var $fontWeight = _ref39.$fontWeight;
|
|
2959
|
-
return $fontWeight ? $fontWeight : '500';
|
|
2960
2960
|
}, function (_ref40) {
|
|
2961
|
-
var $
|
|
2962
|
-
return $
|
|
2961
|
+
var $fontWeight = _ref40.$fontWeight;
|
|
2962
|
+
return $fontWeight ? $fontWeight : '500';
|
|
2963
2963
|
}, function (_ref41) {
|
|
2964
|
-
var $
|
|
2965
|
-
return $
|
|
2964
|
+
var $fontSize = _ref41.$fontSize;
|
|
2965
|
+
return $fontSize ? $fontSize : '16px';
|
|
2966
2966
|
}, function (_ref42) {
|
|
2967
|
-
var $
|
|
2968
|
-
return $
|
|
2967
|
+
var $color = _ref42.$color;
|
|
2968
|
+
return $color ? $color : colorVariables.text.medium;
|
|
2969
2969
|
}, function (_ref43) {
|
|
2970
|
-
var $
|
|
2971
|
-
return $
|
|
2970
|
+
var $lineHeight = _ref43.$lineHeight;
|
|
2971
|
+
return $lineHeight ? $lineHeight : '100%';
|
|
2972
2972
|
}, function (_ref44) {
|
|
2973
|
-
var $
|
|
2974
|
-
return $
|
|
2973
|
+
var $textAlign = _ref44.$textAlign;
|
|
2974
|
+
return $textAlign ? $textAlign : 'center';
|
|
2975
2975
|
}, function (_ref45) {
|
|
2976
|
-
var $
|
|
2977
|
-
return $
|
|
2976
|
+
var $minWidth = _ref45.$minWidth;
|
|
2977
|
+
return $minWidth;
|
|
2978
2978
|
}, function (_ref46) {
|
|
2979
|
-
var $
|
|
2979
|
+
var $width = _ref46.$width;
|
|
2980
|
+
return $width;
|
|
2981
|
+
}, function (_ref47) {
|
|
2982
|
+
var $overflowWrap = _ref47.$overflowWrap;
|
|
2980
2983
|
return $overflowWrap;
|
|
2981
2984
|
});
|
|
2982
2985
|
|
|
@@ -3192,7 +3195,8 @@ var StyledButton = styled__default.button(_templateObject5 || (_templateObject5
|
|
|
3192
3195
|
$borderHover = _ref14.$borderHover,
|
|
3193
3196
|
$borderDefault = _ref14.$borderDefault,
|
|
3194
3197
|
$background = _ref14.$background,
|
|
3195
|
-
$color = _ref14.$color
|
|
3198
|
+
$color = _ref14.$color,
|
|
3199
|
+
$colorHover = _ref14.$colorHover;
|
|
3196
3200
|
switch ($variant) {
|
|
3197
3201
|
case 'primary':
|
|
3198
3202
|
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 +3213,7 @@ var StyledButton = styled__default.button(_templateObject5 || (_templateObject5
|
|
|
3209
3213
|
case 'outline-error':
|
|
3210
3214
|
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
3215
|
case 'custom':
|
|
3212
|
-
return "\n background: " + $background + ";\n color: " + $color + ";\n border: " + ("1px solid " + $borderDefault) + ";\n &:hover{\n border: 1px solid " + $borderHover + ";\n color: " + $
|
|
3216
|
+
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
3217
|
default:
|
|
3214
3218
|
return '';
|
|
3215
3219
|
}
|
|
@@ -3241,6 +3245,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
3241
3245
|
_ref20$hoverColor = _ref20.hoverColor,
|
|
3242
3246
|
hoverColor = _ref20$hoverColor === void 0 ? colorVariables.text.white : _ref20$hoverColor,
|
|
3243
3247
|
color = _ref20.color,
|
|
3248
|
+
colorHover = _ref20.colorHover,
|
|
3244
3249
|
borderDefault = _ref20.borderDefault,
|
|
3245
3250
|
borderHover = _ref20.borderHover,
|
|
3246
3251
|
borderRadius = _ref20.borderRadius,
|
|
@@ -3280,6 +3285,7 @@ var ButtonComponent = function ButtonComponent(_ref20) {
|
|
|
3280
3285
|
"$borderRadius": borderRadius,
|
|
3281
3286
|
"$size": size,
|
|
3282
3287
|
"$color": color,
|
|
3288
|
+
"$colorHover": colorHover,
|
|
3283
3289
|
"$padding": padding,
|
|
3284
3290
|
"$variant": variant,
|
|
3285
3291
|
onMouseEnter: function onMouseEnter() {
|