oolib 2.15.0 → 2.15.3
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.
|
@@ -48,8 +48,8 @@ var ButtonStyledWrapper = function (_a) {
|
|
|
48
48
|
var props = _a.props, variant = _a.variant;
|
|
49
49
|
var id = props.id, link = props.link, children = props.children, value = props.value, submit = props.submit, icon = props.icon, iconAfter = props.iconAfter, onClick = props.onClick, onMouseDown = props.onMouseDown, active = props.active, S = props.S, disabled = props.disabled, invert = props.invert, theme = props.theme, width = props.width, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, color = props.color, style = props.style, className = props.className;
|
|
50
50
|
var displayText = (link === null || link === void 0 ? void 0 : link.displayText) || children || value;
|
|
51
|
-
var size = (S && "S") || 'M';
|
|
52
51
|
var composition = (icon || iconAfter) && displayText ? 'icon+text' : !displayText && 'iconOnly';
|
|
52
|
+
var size = (S && "S") || 'M';
|
|
53
53
|
return (react_1.default.createElement(index_styled_1.ButtonStyled, { id: id, style: style, className: className, variant: variant, size: size, active: active, invert: invert, disabled: disabled, theme: theme, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, type: submit ? 'submit' : 'button', onClick: onClick, onMouseDown: onMouseDown, composition: composition, width: width, color: color },
|
|
54
54
|
icon && react_1.default.createElement(DisplayIcon, { icon: icon, size: S ? 15 : 20 }),
|
|
55
55
|
displayText && react_1.default.createElement(Typo_1.SANS_3, { semibold: true }, displayText),
|
|
@@ -92,7 +92,7 @@ var ButtonSecondary = (0, styled_components_2.css)(templateObject_7 || (template
|
|
|
92
92
|
var colors = _a.theme.colors;
|
|
93
93
|
return (0, utilsOolib_1.getPrimaryColorText)(colors);
|
|
94
94
|
});
|
|
95
|
-
var ButtonCustom = (0, styled_components_2.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n border: 2px solid\n ", ";\n box-shadow: -4px 4px 1px\n ", "
|
|
95
|
+
var ButtonCustom = (0, styled_components_2.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n border: 2px solid\n ", ";\n box-shadow: -4px 4px 1px\n ", ";\n \n background-color: ", ";\n\n color: ", ";\n\n ", "\n\n ", "\n &:hover {\n background-color: ", ";\n }\n"], ["\n border: 2px solid\n ", ";\n box-shadow: -4px 4px 1px\n ", ";\n \n background-color: ", ";\n\n color: ", ";\n\n ", "\n\n ", "\n &:hover {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
96
96
|
var invert = _a.invert, colors = _a.theme.colors;
|
|
97
97
|
return invert
|
|
98
98
|
? (0, utilsOolib_1.getPrimaryColor40)(colors)
|
|
@@ -28,7 +28,7 @@ var LoaderDiv = function (props) {
|
|
|
28
28
|
react_1.default.createElement(index_styled_1.StyledLoader, __assign({}, props)) :
|
|
29
29
|
react_1.default.createElement(index_styled_1.StyledLoaderWrapper, __assign({}, props),
|
|
30
30
|
react_1.default.createElement(index_styled_1.StyledLoader, __assign({}, props, { children: null })),
|
|
31
|
-
react_1.default.createElement(SuitableTypo, __assign({ color: greyColor100, invert: props.invert }, (props.L ? { bold: true } : { semibold: true })), theme._Env === 'dev'
|
|
31
|
+
react_1.default.createElement(SuitableTypo, __assign({ color: greyColor100, invert: props.invert }, (props.L ? { bold: true } : { semibold: true })), ((theme === null || theme === void 0 ? void 0 : theme._Env) === 'dev' && props.debug) || props.children)));
|
|
32
32
|
};
|
|
33
33
|
var Loader = function (props) {
|
|
34
34
|
return (!props.isBlock ?
|