oolib 2.109.4 → 2.110.1
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/components/Breadcrumbs/index.d.ts +5 -3
- package/dist/components/Breadcrumbs/index.js +5 -3
- package/dist/components/Buttons/index.d.ts +99 -6
- package/dist/components/Buttons/index.js +34 -31
- package/dist/components/Buttons/index.styled.d.ts +33 -1
- package/dist/components/Buttons/index.styled.js +24 -24
- package/dist/components/Container/index.d.ts +7 -6
- package/dist/components/Container/index.js +7 -6
- package/dist/components/EmptyStates/comps/styled.d.ts +1 -1
- package/dist/components/ImageInput/index.js +1 -1
- package/dist/components/LoadersAndProgress/utils/index.d.ts +1 -1
- package/dist/components/RadioAndCheckbox/styled.d.ts +1 -1
- package/dist/components/Switches/styled.d.ts +1 -1
- package/dist/components/TabBar/index.styled.d.ts +1 -1
- package/dist/components/Tags/index.styled.d.ts +2 -2
- package/dist/components/Tooltip/index.d.ts +10 -10
- package/dist/components/Tooltip/index.js +10 -10
- package/dist/components/Typo/index.d.ts +26 -20
- package/dist/components/Typo/index.js +29 -19
- package/dist/components/Typo/index.styled.d.ts +27 -19
- package/dist/components/UserRoleBadge/index.d.ts +17 -6
- package/dist/components/UserRoleBadge/index.js +14 -13
- package/dist/components/cards/CardEmbed/styled.d.ts +1 -1
- package/dist/components/cards/CardProfile/styled.d.ts +1 -1
- package/dist/components/cards/styled.d.ts +2 -2
- package/dist/themes/colors.d.ts +51 -101
- package/dist/themes/mixins/boxShadows.d.ts +4 -3
- package/dist/themes/mixins/boxShadows.js +3 -3
- package/dist/themes/mixins/index.d.ts +23 -7
- package/dist/themes/mixins/index.js +17 -4
- package/dist/themes/mixins/transitions.d.ts +8 -1
- package/dist/themes/mixins/transitions.js +19 -6
- package/dist/themes/typo.d.ts +25 -43
- package/dist/themes/typo.js +4 -4
- package/package.json +1 -1
|
@@ -8,10 +8,12 @@ interface BreadcrumbsProps {
|
|
|
8
8
|
invert?: boolean;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Renders a Breadcrumbs component based on the provided links and invert flag.
|
|
11
|
+
* @component Renders a Breadcrumbs component based on the provided links and invert flag.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
* @
|
|
13
|
+
* - The properties of the Breadcrumbs component.
|
|
14
|
+
* @prop {Object} props - The properties of the Breadcrumbs component
|
|
15
|
+
* @prop {BreadcrumbsProps} props.links - The array of links to be displayed in the breadcrumbs
|
|
16
|
+
* @prop {boolean} props.invert - Flag to indicate whether to invert the colors of the breadcrumbs
|
|
15
17
|
* @return {React.ReactElement} The rendered Breadcrumbs component
|
|
16
18
|
*/
|
|
17
19
|
export declare const Breadcrumbs: React.FunctionComponent<BreadcrumbsProps>;
|
|
@@ -33,10 +33,12 @@ var mixins_1 = require("../../themes/mixins");
|
|
|
33
33
|
var ArrowLeft = icons_1.icons.ArrowLeft;
|
|
34
34
|
var white = themes_1.colors.white, greyColor100 = themes_1.colors.greyColor100, greyColor50 = themes_1.colors.greyColor50;
|
|
35
35
|
/**
|
|
36
|
-
* Renders a Breadcrumbs component based on the provided links and invert flag.
|
|
36
|
+
* @component Renders a Breadcrumbs component based on the provided links and invert flag.
|
|
37
37
|
*
|
|
38
|
-
*
|
|
39
|
-
* @
|
|
38
|
+
* - The properties of the Breadcrumbs component.
|
|
39
|
+
* @prop {Object} props - The properties of the Breadcrumbs component
|
|
40
|
+
* @prop {BreadcrumbsProps} props.links - The array of links to be displayed in the breadcrumbs
|
|
41
|
+
* @prop {boolean} props.invert - Flag to indicate whether to invert the colors of the breadcrumbs
|
|
40
42
|
* @return {React.ReactElement} The rendered Breadcrumbs component
|
|
41
43
|
*/
|
|
42
44
|
var Breadcrumbs = function (_a) {
|
|
@@ -1,7 +1,100 @@
|
|
|
1
|
-
export function ButtonPrimary(props: any): React.JSX.Element;
|
|
2
|
-
export function ButtonSecondary(props: any): React.JSX.Element;
|
|
3
|
-
export function ButtonCustom(props: any): React.JSX.Element;
|
|
4
|
-
export function ButtonGhost(props: any): React.JSX.Element;
|
|
5
|
-
export function UploadButton(props: any): React.JSX.Element;
|
|
6
|
-
export function GoogleLogin(props: any): React.JSX.Element;
|
|
7
1
|
import React from "react";
|
|
2
|
+
export interface DisplayIconProps {
|
|
3
|
+
icon: string;
|
|
4
|
+
size: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
iconWeight?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ButtonStyledWrapperProps {
|
|
9
|
+
props: {
|
|
10
|
+
id?: string;
|
|
11
|
+
link?: {
|
|
12
|
+
val: string;
|
|
13
|
+
displayText?: string;
|
|
14
|
+
};
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
value?: string;
|
|
17
|
+
submit?: boolean;
|
|
18
|
+
icon?: string;
|
|
19
|
+
iconAfter?: string;
|
|
20
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
21
|
+
onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
22
|
+
active?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
invert?: boolean;
|
|
25
|
+
theme?: string;
|
|
26
|
+
width?: string;
|
|
27
|
+
onMouseEnter?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
28
|
+
onMouseLeave?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
29
|
+
color?: string;
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
className?: string;
|
|
32
|
+
S?: boolean;
|
|
33
|
+
M?: boolean;
|
|
34
|
+
iconSize?: number;
|
|
35
|
+
iconColor?: string;
|
|
36
|
+
iconWeight?: string;
|
|
37
|
+
stopPropagation?: boolean;
|
|
38
|
+
preventDefault?: boolean;
|
|
39
|
+
forceHover?: boolean;
|
|
40
|
+
};
|
|
41
|
+
variant?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface ButtonProps {
|
|
44
|
+
props: {
|
|
45
|
+
link?: {
|
|
46
|
+
val: string;
|
|
47
|
+
displayText?: string;
|
|
48
|
+
};
|
|
49
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
variant?: string;
|
|
53
|
+
}
|
|
54
|
+
export declare const ButtonPrimary: React.FunctionComponent<ButtonProps>;
|
|
55
|
+
export declare const ButtonSecondary: React.FunctionComponent<ButtonProps>;
|
|
56
|
+
export declare const ButtonCustom: React.FunctionComponent<ButtonProps>;
|
|
57
|
+
export declare const ButtonGhost: React.FunctionComponent<ButtonProps>;
|
|
58
|
+
interface UploadButtonProps {
|
|
59
|
+
mutilple?: boolean;
|
|
60
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
61
|
+
variant?: string;
|
|
62
|
+
id?: string;
|
|
63
|
+
accept?: string;
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Renders an upload button component.
|
|
68
|
+
*
|
|
69
|
+
* @param {UploadButtonProps} props - The props for the upload button component.
|
|
70
|
+
* @return {React.ReactNode} The rendered upload button component.
|
|
71
|
+
*/
|
|
72
|
+
export declare const UploadButton: React.FunctionComponent<UploadButtonProps>;
|
|
73
|
+
export interface GoogleLoginProps {
|
|
74
|
+
theme?: string;
|
|
75
|
+
S?: boolean;
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
width?: string;
|
|
78
|
+
className?: string;
|
|
79
|
+
style?: React.CSSProperties;
|
|
80
|
+
value?: string;
|
|
81
|
+
children?: React.ReactNode;
|
|
82
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Renders a Google login button component.
|
|
86
|
+
*
|
|
87
|
+
* @props - The props for the Google login button component.
|
|
88
|
+
* @prop {string} props.theme - The theme for the button.
|
|
89
|
+
* @prop {string} props.S - The size of the button.
|
|
90
|
+
* @prop {boolean} props.disabled - Whether the button is disabled or not.
|
|
91
|
+
* @prop {string} props.width - The width of the button.
|
|
92
|
+
* @prop {string} props.className - The class name of the button.
|
|
93
|
+
* @prop {React.CSSProperties} props.style - The inline style of the button.
|
|
94
|
+
* @prop {string} props.value - The value of the button.
|
|
95
|
+
* @prop {React.ReactNode} props.children - The children of the button.
|
|
96
|
+
* @prop {Function} props.onClick - The click event handler for the button.
|
|
97
|
+
* @return {React.ReactNode} The rendered Google login button component.
|
|
98
|
+
*/
|
|
99
|
+
export declare const GoogleLogin: React.FunctionComponent<GoogleLoginProps>;
|
|
100
|
+
export {};
|
|
@@ -49,28 +49,7 @@ var DisplayIcon = function (_a) {
|
|
|
49
49
|
};
|
|
50
50
|
var ButtonStyledWrapper = function (_a) {
|
|
51
51
|
var props = _a.props, variant = _a.variant;
|
|
52
|
-
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, 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, S = props.S, M = props.M, iconSize = props.iconSize, _iconColor = props.iconColor, iconWeight = props.iconWeight, stopPropagation = props.stopPropagation, preventDefault = props.preventDefault, forceHover = props.forceHover
|
|
53
|
-
;
|
|
54
|
-
/**
|
|
55
|
-
* WHY WE ARE HAVING TO DO STOP PROPAGATION IN THIS TWISTED WAY:
|
|
56
|
-
*
|
|
57
|
-
* We have debounced our mousedown and click events
|
|
58
|
-
* Why debounce? Cuz sometimes users end up double clicking buttons
|
|
59
|
-
* by mistake and end up firing parallel api calls, which leads to all
|
|
60
|
-
* sorts of duplication issues. Hence debounce.
|
|
61
|
-
*
|
|
62
|
-
* Now the problem with debounce is that, it doesnt allow this to work:
|
|
63
|
-
* <Button onClick={e => e.stopPropagation()}/>
|
|
64
|
-
* Funny thing is if you wrap the button in a div, and apply stopPropagation
|
|
65
|
-
* to that div, then it works, but that is a bit messy.
|
|
66
|
-
*
|
|
67
|
-
* Which means, e.stopPropagation has to be done before the debounce,
|
|
68
|
-
* which would have to be done inside the Button Component.
|
|
69
|
-
* Hence the boolean prop stopPropagation which controls this.
|
|
70
|
-
*
|
|
71
|
-
* We dont default to stopPropagation = true, cuz we are unsure
|
|
72
|
-
* of what other sideeffects it might have on the codebase
|
|
73
|
-
*/
|
|
52
|
+
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, 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, S = props.S, M = props.M, iconSize = props.iconSize, _iconColor = props.iconColor, iconWeight = props.iconWeight, stopPropagation = props.stopPropagation, preventDefault = props.preventDefault, forceHover = props.forceHover;
|
|
74
53
|
var displayText = (link === null || link === void 0 ? void 0 : link.displayText) || children || value;
|
|
75
54
|
var debouncedOnClick = onClick && (0, lodash_1.debounce)(onClick, 200);
|
|
76
55
|
var debouncedMouseDown = onMouseDown && (0, lodash_1.debounce)(onMouseDown, 150);
|
|
@@ -80,13 +59,8 @@ var ButtonStyledWrapper = function (_a) {
|
|
|
80
59
|
? "iconOnly"
|
|
81
60
|
: "textOnly";
|
|
82
61
|
var size = ['icon+text', 'textOnly'].indexOf(composition) !== -1
|
|
83
|
-
? (S && 'S') || 'M'
|
|
84
|
-
: (M && 'M') || 'S';
|
|
85
|
-
/**
|
|
86
|
-
* In rare cases, even if the button is 'S'
|
|
87
|
-
* we need the icon to be 'M'
|
|
88
|
-
* e.g. the DotsThree icon in ActionMenu
|
|
89
|
-
*/
|
|
62
|
+
? (S && 'S') || 'M'
|
|
63
|
+
: (M && 'M') || 'S';
|
|
90
64
|
var calcIconSize = function () {
|
|
91
65
|
var thisSize = iconSize || size;
|
|
92
66
|
return thisSize === 'S' ? 15 : 20;
|
|
@@ -94,7 +68,7 @@ var ButtonStyledWrapper = function (_a) {
|
|
|
94
68
|
var iconColor = !disabled ? _iconColor : themes_1.colors.greyColor40;
|
|
95
69
|
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: function (e) {
|
|
96
70
|
stopPropagation && e.stopPropagation();
|
|
97
|
-
preventDefault && e.preventDefault();
|
|
71
|
+
preventDefault && e.preventDefault();
|
|
98
72
|
debouncedOnClick && debouncedOnClick(e);
|
|
99
73
|
}, onMouseDown: function (e) {
|
|
100
74
|
stopPropagation && e.stopPropagation();
|
|
@@ -105,6 +79,13 @@ var ButtonStyledWrapper = function (_a) {
|
|
|
105
79
|
displayText && react_1.default.createElement(Typo_1.SANS_3, { semibold: true }, displayText),
|
|
106
80
|
iconAfter && react_1.default.createElement(DisplayIcon, { icon: iconAfter, color: iconColor, size: calcIconSize(), iconWeight: iconWeight || '' })));
|
|
107
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Generates a Button component based on the provided props and variant.
|
|
84
|
+
*
|
|
85
|
+
* @prop { ButtonProps } props - The properties for the Button component
|
|
86
|
+
* @prop { string } variant - The variant of the Button component
|
|
87
|
+
* @return { ReactNode } The Button component to be rendered
|
|
88
|
+
*/
|
|
108
89
|
var Button = function (_a) {
|
|
109
90
|
var props = _a.props, variant = _a.variant;
|
|
110
91
|
var link = props.link, onClick = props.onClick;
|
|
@@ -120,17 +101,39 @@ var ButtonCustom = function (props) { return (react_1.default.createElement(Butt
|
|
|
120
101
|
exports.ButtonCustom = ButtonCustom;
|
|
121
102
|
var ButtonGhost = function (props) { return (react_1.default.createElement(Button, { props: props, variant: "ghost" })); };
|
|
122
103
|
exports.ButtonGhost = ButtonGhost;
|
|
104
|
+
/**
|
|
105
|
+
* Renders an upload button component.
|
|
106
|
+
*
|
|
107
|
+
* @param {UploadButtonProps} props - The props for the upload button component.
|
|
108
|
+
* @return {React.ReactNode} The rendered upload button component.
|
|
109
|
+
*/
|
|
123
110
|
var UploadButton = function (props) {
|
|
124
111
|
var inputRef = (0, react_1.useRef)(null);
|
|
125
112
|
var mutilple = props.mutilple, onChange = props.onChange, variant = props.variant, id = props.id, accept = props.accept;
|
|
126
113
|
var handleFileUpload = function () {
|
|
127
|
-
|
|
114
|
+
var _a;
|
|
115
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
128
116
|
};
|
|
129
117
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
130
118
|
react_1.default.createElement("input", { id: id, ref: inputRef, type: "file", accept: accept, multiple: mutilple, onChange: onChange, style: { display: "none" } }),
|
|
131
119
|
react_1.default.createElement(ButtonStyledWrapper, { props: __assign(__assign({}, props), { onClick: handleFileUpload }), variant: variant || "secondary" })));
|
|
132
120
|
};
|
|
133
121
|
exports.UploadButton = UploadButton;
|
|
122
|
+
/**
|
|
123
|
+
* Renders a Google login button component.
|
|
124
|
+
*
|
|
125
|
+
* @props - The props for the Google login button component.
|
|
126
|
+
* @prop {string} props.theme - The theme for the button.
|
|
127
|
+
* @prop {string} props.S - The size of the button.
|
|
128
|
+
* @prop {boolean} props.disabled - Whether the button is disabled or not.
|
|
129
|
+
* @prop {string} props.width - The width of the button.
|
|
130
|
+
* @prop {string} props.className - The class name of the button.
|
|
131
|
+
* @prop {React.CSSProperties} props.style - The inline style of the button.
|
|
132
|
+
* @prop {string} props.value - The value of the button.
|
|
133
|
+
* @prop {React.ReactNode} props.children - The children of the button.
|
|
134
|
+
* @prop {Function} props.onClick - The click event handler for the button.
|
|
135
|
+
* @return {React.ReactNode} The rendered Google login button component.
|
|
136
|
+
*/
|
|
134
137
|
var GoogleLogin = function (props) {
|
|
135
138
|
var theme = props.theme, S = props.S, disabled = props.disabled, width = props.width, className = props.className, style = props.style, value = props.value, children = props.children, onClick = props.onClick;
|
|
136
139
|
var displayText = value || children || "Sign up with Google";
|
|
@@ -1 +1,33 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface HoverStylingProps {
|
|
2
|
+
invert?: boolean;
|
|
3
|
+
active?: boolean;
|
|
4
|
+
theme: {
|
|
5
|
+
colors: any;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export interface ButtonVariantProps {
|
|
9
|
+
invert?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
color?: string;
|
|
12
|
+
forceHover?: boolean;
|
|
13
|
+
theme: {
|
|
14
|
+
colors: string[];
|
|
15
|
+
};
|
|
16
|
+
active?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface ButtonGhostProps extends ButtonVariantProps {
|
|
19
|
+
composition?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GoogleButtonProps {
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface ButtonStyledProps {
|
|
25
|
+
size: string;
|
|
26
|
+
width?: string;
|
|
27
|
+
variant: string;
|
|
28
|
+
active?: boolean;
|
|
29
|
+
invert?: boolean;
|
|
30
|
+
composition?: string;
|
|
31
|
+
forceHover?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const ButtonStyled: import("styled-components").StyledComponent<"button", any, ButtonStyledProps, never>;
|
|
@@ -38,7 +38,7 @@ var SIZES = {
|
|
|
38
38
|
S: "3rem",
|
|
39
39
|
M: "4rem",
|
|
40
40
|
};
|
|
41
|
-
var hoverStylingPrimary = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
41
|
+
var hoverStylingPrimary = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n"], ["\n background-color: ", ";\n color: ", ";\n"])), function (_a) {
|
|
42
42
|
var invert = _a.invert, colors = _a.theme.colors;
|
|
43
43
|
return invert
|
|
44
44
|
? (0, utilsOolib_1.getPrimaryColor10)(colors)
|
|
@@ -49,7 +49,7 @@ var hoverStylingPrimary = (0, styled_components_1.css)(templateObject_1 || (temp
|
|
|
49
49
|
? greyColor100
|
|
50
50
|
: (0, utilsOolib_1.getPrimaryColorText)(colors);
|
|
51
51
|
});
|
|
52
|
-
var hoverStylingSecondary = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n
|
|
52
|
+
var hoverStylingSecondary = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
53
53
|
var invert = _a.invert, active = _a.active, colors = _a.theme.colors;
|
|
54
54
|
return active
|
|
55
55
|
? ""
|
|
@@ -57,13 +57,13 @@ var hoverStylingSecondary = (0, styled_components_1.css)(templateObject_2 || (te
|
|
|
57
57
|
? greyColor80
|
|
58
58
|
: (0, utilsOolib_1.getPrimaryColor40)(colors);
|
|
59
59
|
});
|
|
60
|
-
var hoverStylingCustom = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n
|
|
60
|
+
var hoverStylingCustom = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
61
61
|
var invert = _a.invert, colors = _a.theme.colors;
|
|
62
62
|
return invert
|
|
63
63
|
? greyColor80
|
|
64
64
|
: (0, utilsOolib_1.getPrimaryColor40)(colors);
|
|
65
65
|
});
|
|
66
|
-
var hoverStylingGhost = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n
|
|
66
|
+
var hoverStylingGhost = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
67
67
|
var invert = _a.invert, active = _a.active;
|
|
68
68
|
return active
|
|
69
69
|
? ""
|
|
@@ -71,7 +71,7 @@ var hoverStylingGhost = (0, styled_components_1.css)(templateObject_4 || (templa
|
|
|
71
71
|
? greyColor80
|
|
72
72
|
: greyColor10;
|
|
73
73
|
});
|
|
74
|
-
var ButtonPrimary = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n
|
|
74
|
+
var ButtonPrimary = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border: none;\n background-color: ", ";\n color: ", ";\n ", "\n ", "\n\n ", " \n \n @media (hover: hover) {\n &:hover {\n ", "\n }\n }\n"], ["\n border: none;\n background-color: ", ";\n color: ", ";\n ", "\n ", "\n\n ", " \n \n @media (hover: hover) {\n &:hover {\n ", "\n }\n }\n"])), function (_a) {
|
|
75
75
|
var invert = _a.invert, colors = _a.theme.colors;
|
|
76
76
|
return invert
|
|
77
77
|
? (0, utilsOolib_1.getPrimaryColor40)(colors)
|
|
@@ -81,10 +81,10 @@ var ButtonPrimary = (0, styled_components_1.css)(templateObject_7 || (templateOb
|
|
|
81
81
|
return invert ? greyColor100 : white;
|
|
82
82
|
}, function (_a) {
|
|
83
83
|
var color = _a.color;
|
|
84
|
-
return color && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n
|
|
84
|
+
return color && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), color);
|
|
85
85
|
}, function (_a) {
|
|
86
86
|
var disabled = _a.disabled;
|
|
87
|
-
return disabled && (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n
|
|
87
|
+
return disabled && (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n pointer-events: none;\n "], ["\n background-color: ", ";\n color: ", ";\n pointer-events: none;\n "])), function (_a) {
|
|
88
88
|
var invert = _a.invert;
|
|
89
89
|
return invert ? greyColor70 : greyColor15;
|
|
90
90
|
}, greyColor40);
|
|
@@ -92,7 +92,7 @@ var ButtonPrimary = (0, styled_components_1.css)(templateObject_7 || (templateOb
|
|
|
92
92
|
var forceHover = _a.forceHover;
|
|
93
93
|
return forceHover && hoverStylingPrimary;
|
|
94
94
|
}, hoverStylingPrimary);
|
|
95
|
-
var ButtonSecondary = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n
|
|
95
|
+
var ButtonSecondary = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n border: 2px solid\n ", ";\n background-color: ", ";\n\n color: ", "; \n ", "\n ", "\n ", "\n\n ", " \n\n @media (hover: hover) {\n &:hover {\n ", "\n }\n }\n"], ["\n border: 2px solid\n ", ";\n background-color: ", ";\n\n color: ", "; \n ", "\n ", "\n ", "\n\n ", " \n\n @media (hover: hover) {\n &:hover {\n ", "\n }\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)
|
|
@@ -107,10 +107,10 @@ var ButtonSecondary = (0, styled_components_1.css)(templateObject_11 || (templat
|
|
|
107
107
|
: (0, utilsOolib_1.getPrimaryColorText)(colors);
|
|
108
108
|
}, function (_a) {
|
|
109
109
|
var color = _a.color;
|
|
110
|
-
return color && (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n
|
|
110
|
+
return color && (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), color);
|
|
111
111
|
}, function (_a) {
|
|
112
112
|
var active = _a.active;
|
|
113
|
-
return active && (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n
|
|
113
|
+
return active && (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n "], ["\n background-color: ", ";\n color: ", ";\n "])), function (_a) {
|
|
114
114
|
var invert = _a.invert, colors = _a.theme.colors;
|
|
115
115
|
return invert ?
|
|
116
116
|
(0, utilsOolib_1.getPrimaryColor40)(colors)
|
|
@@ -122,7 +122,7 @@ var ButtonSecondary = (0, styled_components_1.css)(templateObject_11 || (templat
|
|
|
122
122
|
});
|
|
123
123
|
}, function (_a) {
|
|
124
124
|
var disabled = _a.disabled;
|
|
125
|
-
return disabled && (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n
|
|
125
|
+
return disabled && (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n border: 2px solid ", ";\n color: ", "; \n pointer-events: none;\n "], ["\n background-color: ", ";\n border: 2px solid ", ";\n color: ", "; \n pointer-events: none;\n "])), function (_a) {
|
|
126
126
|
var invert = _a.invert;
|
|
127
127
|
return invert ? greyColor80 : white;
|
|
128
128
|
}, greyColor15, greyColor40);
|
|
@@ -130,7 +130,7 @@ var ButtonSecondary = (0, styled_components_1.css)(templateObject_11 || (templat
|
|
|
130
130
|
var forceHover = _a.forceHover;
|
|
131
131
|
return forceHover && hoverStylingSecondary;
|
|
132
132
|
}, hoverStylingSecondary);
|
|
133
|
-
var ButtonCustom = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n
|
|
133
|
+
var ButtonCustom = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __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\n ", " \n\n @media (hover: hover) {\n &:hover {\n ", "\n }\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\n ", " \n\n @media (hover: hover) {\n &:hover {\n ", "\n }\n }\n"])), function (_a) {
|
|
134
134
|
var invert = _a.invert, colors = _a.theme.colors;
|
|
135
135
|
return invert
|
|
136
136
|
? (0, utilsOolib_1.getPrimaryColor40)(colors)
|
|
@@ -153,7 +153,7 @@ var ButtonCustom = (0, styled_components_1.css)(templateObject_14 || (templateOb
|
|
|
153
153
|
return color && (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["color: ", ";"], ["color: ", ";"])), color);
|
|
154
154
|
}, function (_a) {
|
|
155
155
|
var disabled = _a.disabled;
|
|
156
|
-
return disabled && (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n
|
|
156
|
+
return disabled && (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n color: ", ";\n border: 2px solid ", "; // $darkShadowColor : $greyColor15;\n box-shadow: -4px 4px 1px ", ";\n pointer-events: none;\n background-color: ", "; \n "], ["\n color: ", ";\n border: 2px solid ", "; // $darkShadowColor : $greyColor15;\n box-shadow: -4px 4px 1px ", ";\n pointer-events: none;\n background-color: ", "; \n "])), greyColor40, function (_a) {
|
|
157
157
|
var invert = _a.invert;
|
|
158
158
|
return (invert ? greyColor40 : greyColor15);
|
|
159
159
|
}, greyColor40, function (_a) {
|
|
@@ -164,7 +164,7 @@ var ButtonCustom = (0, styled_components_1.css)(templateObject_14 || (templateOb
|
|
|
164
164
|
var forceHover = _a.forceHover;
|
|
165
165
|
return forceHover && hoverStylingCustom;
|
|
166
166
|
}, hoverStylingCustom);
|
|
167
|
-
var ButtonGhost = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n
|
|
167
|
+
var ButtonGhost = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n ", "\n ", "\n\n ", "\n \n ", " \n \n @media (hover: hover) {\n &:hover {\n ", "\n }\n }\n"], ["\n background-color: ", ";\n color: ", ";\n ", "\n ", "\n\n ", "\n \n ", " \n \n @media (hover: hover) {\n &:hover {\n ", "\n }\n }\n"])), function (_a) {
|
|
168
168
|
var active = _a.active, colors = _a.theme.colors;
|
|
169
169
|
return active ? (0, utilsOolib_1.getPrimaryColor40)(colors) : none;
|
|
170
170
|
}, function (_a) {
|
|
@@ -176,23 +176,23 @@ var ButtonGhost = (0, styled_components_1.css)(templateObject_18 || (templateObj
|
|
|
176
176
|
: (0, utilsOolib_1.getPrimaryColorText)(colors);
|
|
177
177
|
}, function (_a) {
|
|
178
178
|
var color = _a.color;
|
|
179
|
-
return color && (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n
|
|
179
|
+
return color && (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), color);
|
|
180
180
|
}, function (_a) {
|
|
181
181
|
var invert = _a.invert;
|
|
182
|
-
return invert && (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n
|
|
182
|
+
return invert && (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), function (_a) {
|
|
183
183
|
var active = _a.active;
|
|
184
184
|
return active ? greyColor80 : greyColor100;
|
|
185
185
|
});
|
|
186
186
|
}, function (_a) {
|
|
187
187
|
var disabled = _a.disabled;
|
|
188
|
-
return disabled && (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n
|
|
188
|
+
return disabled && (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n color: ", "; //$greyColor40;\n pointer-events: none;\n "], ["\n color: ", "; //$greyColor40;\n pointer-events: none;\n "])), greyColor40);
|
|
189
189
|
}, function (_a) {
|
|
190
190
|
var forceHover = _a.forceHover;
|
|
191
191
|
return forceHover && hoverStylingGhost;
|
|
192
192
|
}, hoverStylingGhost);
|
|
193
|
-
var GoogleButton = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n
|
|
193
|
+
var GoogleButton = (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n color: #4285f4;\n border: 2px solid #4285f4;\n background-color: ", ";\n ", "\n"], ["\n color: #4285f4;\n border: 2px solid #4285f4;\n background-color: ", ";\n ", "\n"])), white, function (_a) {
|
|
194
194
|
var disabled = _a.disabled;
|
|
195
|
-
return disabled && (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n
|
|
195
|
+
return disabled && (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n pointer-events: none;\n "], ["\n pointer-events: none;\n "])));
|
|
196
196
|
});
|
|
197
197
|
var buttonVariantSetting = {
|
|
198
198
|
primary: ButtonPrimary,
|
|
@@ -201,19 +201,19 @@ var buttonVariantSetting = {
|
|
|
201
201
|
custom: ButtonCustom,
|
|
202
202
|
googleAuth: GoogleButton,
|
|
203
203
|
};
|
|
204
|
-
exports.ButtonStyled = styled_components_1.default.button(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n
|
|
204
|
+
exports.ButtonStyled = styled_components_1.default.button(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n ", "\n\n ", "\n\n white-space: nowrap;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n cursor: pointer;\n border: none;\n border-radius: 2px;\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n\n white-space: nowrap;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n cursor: pointer;\n border: none;\n border-radius: 2px;\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
205
205
|
var composition = _a.composition, size = _a.size;
|
|
206
206
|
switch (composition) {
|
|
207
207
|
case "iconOnly":
|
|
208
|
-
return (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n
|
|
208
|
+
return (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n padding: 0;\n height: ", ";\n width: ", ";\n flex-shrink: 0; // if button is a flex item then by default it's width shrinks when the viewport width shrinks\n "], ["\n padding: 0;\n height: ", ";\n width: ", ";\n flex-shrink: 0; // if button is a flex item then by default it's width shrinks when the viewport width shrinks\n "])), SIZES[size], SIZES[size]);
|
|
209
209
|
case "icon+text":
|
|
210
|
-
return (0, styled_components_1.css)(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n
|
|
210
|
+
return (0, styled_components_1.css)(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n padding: 0 2rem 0 1.5rem;\n height: ", ";\n "], ["\n padding: 0 2rem 0 1.5rem;\n height: ", ";\n "])), SIZES[size]);
|
|
211
211
|
default:
|
|
212
|
-
return (0, styled_components_1.css)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n
|
|
212
|
+
return (0, styled_components_1.css)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n padding: 0 2rem;\n height: ", ";\n "], ["\n padding: 0 2rem;\n height: ", ";\n "])), SIZES[size]);
|
|
213
213
|
}
|
|
214
214
|
}, function (_a) {
|
|
215
215
|
var width = _a.width;
|
|
216
|
-
return width && (0, styled_components_1.css)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n
|
|
216
|
+
return width && (0, styled_components_1.css)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n width: ", ";\n "], ["\n width: ", ";\n "])), width);
|
|
217
217
|
}, (0, mixins_1.transition)("background-color"), function (_a) {
|
|
218
218
|
var variant = _a.variant;
|
|
219
219
|
return buttonVariantSetting[variant];
|
|
@@ -7,13 +7,14 @@ export interface ContainerProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const Comp: ({ children, className, style, enableContainerQuery }: ContainerProps, ref: React.RefObject<HTMLDivElement> | null) => React.JSX.Element;
|
|
9
9
|
/**
|
|
10
|
-
* Renders a container component with optional container query feature.
|
|
10
|
+
* @component Renders a container component with optional container query feature.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
13
|
-
* @
|
|
14
|
-
* @
|
|
15
|
-
* @
|
|
16
|
-
* @
|
|
12
|
+
* - The properties of the container component.
|
|
13
|
+
* @prop {React.ReactNode} props.children - The child elements to be rendered within the container.
|
|
14
|
+
* @prop {string} props.className - The CSS class for styling the container.
|
|
15
|
+
* @prop {Object} props.style - The inline styles for the container.
|
|
16
|
+
* @prop {boolean} props.enableContainerQuery - Flag to enable or disable the container query feature.
|
|
17
|
+
* @prop {React.RefObject<HTMLDivElement> | null} ref - Reference object to the container element.
|
|
17
18
|
* @return {React.ReactElement} The rendered container component.
|
|
18
19
|
*/
|
|
19
20
|
export declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -37,13 +37,14 @@ var Comp = function (_a, ref //if a ref is passed from outside, it will override
|
|
|
37
37
|
};
|
|
38
38
|
exports.Comp = Comp;
|
|
39
39
|
/**
|
|
40
|
-
* Renders a container component with optional container query feature.
|
|
40
|
+
* @component Renders a container component with optional container query feature.
|
|
41
41
|
*
|
|
42
|
-
*
|
|
43
|
-
* @
|
|
44
|
-
* @
|
|
45
|
-
* @
|
|
46
|
-
* @
|
|
42
|
+
* - The properties of the container component.
|
|
43
|
+
* @prop {React.ReactNode} props.children - The child elements to be rendered within the container.
|
|
44
|
+
* @prop {string} props.className - The CSS class for styling the container.
|
|
45
|
+
* @prop {Object} props.style - The inline styles for the container.
|
|
46
|
+
* @prop {boolean} props.enableContainerQuery - Flag to enable or disable the container query feature.
|
|
47
|
+
* @prop {React.RefObject<HTMLDivElement> | null} ref - Reference object to the container element.
|
|
47
48
|
* @return {React.ReactElement} The rendered container component.
|
|
48
49
|
*/
|
|
49
50
|
exports.Container = (0, react_1.forwardRef)(exports.Comp);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const StyledSERIF_4_5: import("styled-components").StyledComponent<(
|
|
1
|
+
export const StyledSERIF_4_5: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../Typo").TypoCompProps>, any, {}, never>;
|
|
2
2
|
export const StyledFlexWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export const StyledContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../Container").ContainerProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
@@ -32,7 +32,7 @@ var getBlockLabelProps_1 = require("../../utils/getBlockLabelProps");
|
|
|
32
32
|
*/
|
|
33
33
|
function ImageInput(_a) {
|
|
34
34
|
var id = _a.id, value = _a.value, onChange = _a.onChange, readOnly = _a.readOnly, multiple = _a.multiple, _b = _a.stretchToFullHeight, stretchToFullHeight = _b === void 0 ? false : _b, _c = _a.aspectRatio, aspectRatio = _c === void 0 ? '5/3' : _c, _d = _a.containerShape, containerShape = _d === void 0 ? 'rectangle' : _d, //alt = circle
|
|
35
|
-
invert = _a.invert, _e = _a.enableCaptions, enableCaptions = _e === void 0 ? true : _e, _f = _a.defaultImageSpread, defaultImageSpread = _f === void 0 ? '
|
|
35
|
+
invert = _a.invert, _e = _a.enableCaptions, enableCaptions = _e === void 0 ? true : _e, _f = _a.defaultImageSpread, defaultImageSpread = _f === void 0 ? 'contain' : _f, _g = _a.allowedFormats, allowedFormats = _g === void 0 ? ["jpg", "jpeg", "png"] : _g, _h = _a.folderName, folderName = _h === void 0 ? 'images' : _h, bucketEnv = _a.bucketEnv, formatConvertConfig = _a.formatConvertConfig, dropzoneLabel = _a.dropzoneLabel, dropzoneSublabel = _a.dropzoneSublabel, _j = _a.disableImageBorder, disableImageBorder = _j === void 0 ? false : _j, _k = _a.omitEditorTools, omitEditorTools = _k === void 0 ? [] : _k, //can include : 'cover_contain' | 'rotate' | 'reposition'
|
|
36
36
|
isRequired = _a.isRequired, files = _a.files, //used by RTEImageInput
|
|
37
37
|
isInRTE = _a.isInRTE;
|
|
38
38
|
var props = arguments[0];
|
|
@@ -2,4 +2,4 @@ export const StyledOptionsContainer: import("styled-components").StyledComponent
|
|
|
2
2
|
export const StyledOption: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export const StyledOtherOptionContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export const StyledOtherTextInputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export const StyledCorrectMessage: import("styled-components").StyledComponent<(
|
|
5
|
+
export const StyledCorrectMessage: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Typo").TypoCompProps>, any, {}, never>;
|
|
@@ -2,4 +2,4 @@ export const StyledSwitchWrapperStyle1: import("styled-components").StyledCompon
|
|
|
2
2
|
export const StyledSwitchWrapperStyle2: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export const StyledButtonSlider: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export const StyledSwitch: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
5
|
-
export const STYLED_SANS_3: import("styled-components").StyledComponent<(
|
|
5
|
+
export const STYLED_SANS_3: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Typo").TypoCompProps>, any, {}, never>;
|
|
@@ -3,6 +3,6 @@ export const TabBarContainerStyled: import("styled-components").StyledComponent<
|
|
|
3
3
|
export const TabBarRowStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export const TabBarTabWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export const TabBarTabStyled: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
6
|
-
export const STYLED_SANS_2: import("styled-components").StyledComponent<(
|
|
6
|
+
export const STYLED_SANS_2: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Typo").TypoCompProps>, any, {}, never>;
|
|
7
7
|
export const StyledDirectionButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
8
|
export const StyledDot: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const STYLED_ELLIPSIS_SANS_2: import("styled-components").StyledComponent<(
|
|
2
|
-
export const STYLED_ELLIPSIS_SANS_3: import("styled-components").StyledComponent<(
|
|
1
|
+
export const STYLED_ELLIPSIS_SANS_2: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Typo").TypoCompProps>, any, {}, never>;
|
|
2
|
+
export const STYLED_ELLIPSIS_SANS_3: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Typo").TypoCompProps>, any, {}, never>;
|
|
3
3
|
export const StyledTagClearIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export const StyledLink: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
5
5
|
export const StyledTagDisplay: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -10,17 +10,17 @@ interface TooltipProps {
|
|
|
10
10
|
presetTarget?: 'infoIcon';
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Renders a tooltip component with customizable text and styling.
|
|
13
|
+
* @component Renders a tooltip component with customizable text and styling.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
15
|
+
* - The props object containing the following properties:
|
|
16
|
+
* @prop {string} props.text: The text to be displayed in the tooltip.
|
|
17
|
+
* @prop {'top' | 'bottom' | 'left' | 'right'} props.position: The position of the tooltip relative to the target element. Defaults to "top".
|
|
18
|
+
* @prop {React.CSSProperties} props.style: Additional CSS styles to apply to the tooltip.
|
|
19
|
+
* @prop {React.ReactNode} props.children: The content to be rendered inside the tooltip target element.
|
|
20
|
+
* @prop {boolean} props.popOutOfOverflowHiddenParent: A boolean indicating whether the tooltip should pop out of an overflow:hidden parent element. Defaults to false.
|
|
21
|
+
* @prop {boolean} props.invert: A boolean indicating whether to invert the tooltip colors. Defaults to false.
|
|
22
|
+
* @prop {string} props.debug: A boolean indicating whether to enable debug mode for the tooltip. Defaults to false. only for dev use
|
|
23
|
+
* @prop {string} props.presetTarget: A string indicating a preset target for the tooltip. Defaults to infoIcon.
|
|
24
24
|
* @return {ReactElement} The rendered tooltip component.
|
|
25
25
|
*/
|
|
26
26
|
export declare const Tooltip: React.FunctionComponent<TooltipProps>;
|