@momo-kits/animated-tooltip 0.169.13-beta.1 → 0.169.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/animated-tooltip",
3
- "version": "0.169.13-beta.1",
3
+ "version": "0.169.14",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},
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 the action row. */
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?: string;
104
+ title: string;
105
105
  description?: string;
106
106
  buttons: TooltipButton[];
107
107
  screenWidth: number;
@@ -118,19 +118,14 @@ export const renderTooltipContent = ({
118
118
  },
119
119
  ]}
120
120
  >
121
- {title ? (
122
- <Text
123
- typography={'header_s_semibold'}
124
- color={Colors.black_01}
125
- >
126
- {title}
127
- </Text>
128
- ) : null}
121
+ <Text typography={'header_s_semibold'} color={Colors.black_01}>
122
+ {title}
123
+ </Text>
129
124
  {description ? (
130
125
  <Text
131
126
  typography={'description_default_regular'}
132
127
  color={Colors.black_01}
133
- style={title ? styles.description : undefined}
128
+ style={styles.description}
134
129
  >
135
130
  {description}
136
131
  </Text>
package/types.ts CHANGED
@@ -22,7 +22,7 @@ export type TooltipProps = {
22
22
  /**
23
23
  * Title displayed at the top of the tooltip.
24
24
  */
25
- title?: string;
25
+ title: string;
26
26
  /**
27
27
  * Description text shown under the title.
28
28
  */