@momo-kits/foundation 0.80.8 → 0.81.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/Title/types.ts CHANGED
@@ -1,11 +1,51 @@
1
1
  export type TitleProps = {
2
+ /**
3
+ * Optional. Defines the type of Title component.
4
+ * 'screen' - Used for screen titles.
5
+ * 'section' - Used for section titles within a screen.
6
+ * 'card' - Used for titles within a card component.
7
+ */
2
8
  type?: 'screen' | 'section' | 'card';
9
+
10
+ /**
11
+ * Required. The text of the title.
12
+ */
3
13
  title: string;
14
+
15
+ /**
16
+ * Optional. A description or subtitle that appears below the title.
17
+ */
4
18
  description?: string;
19
+
20
+ /**
21
+ * Optional. Defines the size of the Title component.
22
+ * 'large' - A larger, more prominent title.
23
+ * 'small' - A smaller, less prominent title.
24
+ */
5
25
  size?: 'large' | 'small';
26
+
27
+ /**
28
+ * Optional. Represents the name or key of the icon to be displayed alongside the title.
29
+ */
6
30
  icon?: string;
31
+
32
+ /**
33
+ * Optional. If `true`, the title will be flexible in its container, adjusting its width dynamically.
34
+ */
7
35
  titleFlex?: boolean;
36
+
37
+ /**
38
+ * Optional. Text for an action button associated with the title.
39
+ */
8
40
  actionTitle?: string;
41
+
42
+ /**
43
+ * Optional. Function to be called when the action associated with the title is pressed.
44
+ */
9
45
  onPressAction?: () => void;
46
+
47
+ /**
48
+ * Optional. If `true`, an action button or icon is displayed alongside the title.
49
+ */
10
50
  showAction?: boolean;
11
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.80.8",
3
+ "version": "0.81.1",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -42,4 +42,4 @@
42
42
  },
43
43
  "author": "@momo-kits/foundation",
44
44
  "license": "ISC"
45
- }
45
+ }