@momo-kits/animated-tooltip 0.169.13 → 0.169.15
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/package.json +1 -1
- package/renderButtons.tsx +5 -11
- package/styles.ts +2 -4
- package/types.ts +1 -1
package/package.json
CHANGED
package/renderButtons.tsx
CHANGED
|
@@ -93,7 +93,7 @@ export const renderTooltipButtons = (buttons: TooltipButton[]) => {
|
|
|
93
93
|
);
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
/** Bubble body: title, description, close icon and
|
|
96
|
+
/** Bubble body: required title, optional description, close icon and actions. */
|
|
97
97
|
export const renderTooltipContent = ({
|
|
98
98
|
title,
|
|
99
99
|
description,
|
|
@@ -101,7 +101,7 @@ export const renderTooltipContent = ({
|
|
|
101
101
|
screenWidth,
|
|
102
102
|
onPressClose,
|
|
103
103
|
}: {
|
|
104
|
-
title
|
|
104
|
+
title: string;
|
|
105
105
|
description?: string;
|
|
106
106
|
buttons: TooltipButton[];
|
|
107
107
|
screenWidth: number;
|
|
@@ -118,15 +118,9 @@ export const renderTooltipContent = ({
|
|
|
118
118
|
},
|
|
119
119
|
]}
|
|
120
120
|
>
|
|
121
|
-
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
color={Colors.black_01}
|
|
125
|
-
style={styles.title}
|
|
126
|
-
>
|
|
127
|
-
{title}
|
|
128
|
-
</Text>
|
|
129
|
-
) : null}
|
|
121
|
+
<Text typography={'header_s_semibold'} color={Colors.black_01}>
|
|
122
|
+
{title}
|
|
123
|
+
</Text>
|
|
130
124
|
{description ? (
|
|
131
125
|
<Text
|
|
132
126
|
typography={'description_default_regular'}
|
package/styles.ts
CHANGED
|
@@ -22,13 +22,11 @@ export default StyleSheet.create({
|
|
|
22
22
|
content: {
|
|
23
23
|
flexDirection: 'column',
|
|
24
24
|
},
|
|
25
|
-
title: {
|
|
26
|
-
marginBottom: Spacing.XS,
|
|
27
|
-
},
|
|
28
25
|
description: {
|
|
29
|
-
|
|
26
|
+
marginTop: Spacing.XS,
|
|
30
27
|
},
|
|
31
28
|
buttonsRow: {
|
|
29
|
+
marginTop: Spacing.M,
|
|
32
30
|
flexDirection: 'row',
|
|
33
31
|
flexWrap: 'wrap',
|
|
34
32
|
justifyContent: 'flex-end',
|