@momo-kits/foundation 0.74.2-react-native.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.
Files changed (105) hide show
  1. package/Application/BottomTab.tsx +120 -0
  2. package/Application/Components.tsx +534 -0
  3. package/Application/ModalScreen.tsx +268 -0
  4. package/Application/Navigation.ts +50 -0
  5. package/Application/NavigationContainer.tsx +120 -0
  6. package/Application/Navigator.ts +131 -0
  7. package/Application/StackScreen.tsx +71 -0
  8. package/Application/index.ts +41 -0
  9. package/Application/types.ts +216 -0
  10. package/Application/utils.tsx +151 -0
  11. package/Assets/DotAnimation.json +256 -0
  12. package/Assets/SpinnerAnimation.json +1027 -0
  13. package/Assets/icon.json +4031 -0
  14. package/Assets/icon_bank.json +506 -0
  15. package/Assets/language.json +202 -0
  16. package/Badge/Badge.tsx +56 -0
  17. package/Badge/BadgeDot.tsx +11 -0
  18. package/Badge/BadgeRibbon.tsx +125 -0
  19. package/Badge/Shape.tsx +29 -0
  20. package/Badge/index.tsx +7 -0
  21. package/Badge/styles.ts +58 -0
  22. package/Badge/types.ts +63 -0
  23. package/Button/index.tsx +310 -0
  24. package/Button/styles.ts +60 -0
  25. package/CheckBox/index.tsx +65 -0
  26. package/CheckBox/styles.ts +15 -0
  27. package/CheckBox/types.ts +38 -0
  28. package/Consts/colors+spacing+radius.ts +218 -0
  29. package/Consts/index.ts +4 -0
  30. package/Consts/styles.ts +52 -0
  31. package/Consts/theme.ts +125 -0
  32. package/Divider/index.tsx +21 -0
  33. package/Icon/index.tsx +41 -0
  34. package/Icon/types.ts +27 -0
  35. package/IconButton/index.tsx +139 -0
  36. package/IconButton/styles.ts +19 -0
  37. package/Image/index.tsx +83 -0
  38. package/Image/styles.ts +5 -0
  39. package/Image/types.ts +5 -0
  40. package/Input/Input.tsx +192 -0
  41. package/Input/InputDropDown.tsx +114 -0
  42. package/Input/InputMoney.tsx +163 -0
  43. package/Input/InputOTP.tsx +235 -0
  44. package/Input/InputSearch.tsx +151 -0
  45. package/Input/InputTextArea.tsx +159 -0
  46. package/Input/common.tsx +129 -0
  47. package/Input/index.tsx +251 -0
  48. package/Input/styles.ts +160 -0
  49. package/Input/utils.ts +69 -0
  50. package/Layout/Card.tsx +180 -0
  51. package/Layout/GridSystem.tsx +136 -0
  52. package/Layout/Item.tsx +56 -0
  53. package/Layout/ItemList.tsx +55 -0
  54. package/Layout/ItemSectionList.tsx +39 -0
  55. package/Layout/Screen.tsx +355 -0
  56. package/Layout/Section.tsx +179 -0
  57. package/Layout/index.ts +29 -0
  58. package/Layout/styles.ts +97 -0
  59. package/Layout/types.ts +23 -0
  60. package/Layout/utils.ts +55 -0
  61. package/Loader/DotLoader.tsx +37 -0
  62. package/Loader/Loader.tsx +13 -0
  63. package/Loader/ProgressBar.tsx +44 -0
  64. package/Loader/Spinner.tsx +28 -0
  65. package/Loader/index.tsx +4 -0
  66. package/Loader/styles.ts +10 -0
  67. package/Loader/types.ts +35 -0
  68. package/Loader/utils.ts +25 -0
  69. package/Pagination/Dot.tsx +16 -0
  70. package/Pagination/PaginationDot.tsx +38 -0
  71. package/Pagination/PaginationNumber.tsx +24 -0
  72. package/Pagination/PaginationScroll.tsx +88 -0
  73. package/Pagination/PaginationWhiteDot.tsx +35 -0
  74. package/Pagination/index.tsx +25 -0
  75. package/Pagination/styles.ts +50 -0
  76. package/Pagination/types.ts +40 -0
  77. package/Popup/PopupNotify.tsx +266 -0
  78. package/Popup/PopupPromotion.tsx +120 -0
  79. package/Popup/index.tsx +4 -0
  80. package/Popup/types.ts +87 -0
  81. package/Radio/index.tsx +64 -0
  82. package/Radio/styles.ts +11 -0
  83. package/Radio/types.ts +38 -0
  84. package/Skeleton/index.tsx +72 -0
  85. package/Skeleton/styles.ts +5 -0
  86. package/Skeleton/types.ts +6 -0
  87. package/Switch/index.tsx +37 -0
  88. package/Switch/styles.ts +23 -0
  89. package/Switch/types.ts +26 -0
  90. package/Tag/index.tsx +79 -0
  91. package/Tag/styles.ts +24 -0
  92. package/Tag/types.ts +36 -0
  93. package/Text/index.tsx +110 -0
  94. package/Text/styles.ts +73 -0
  95. package/Text/types.ts +34 -0
  96. package/Text/utils.ts +14 -0
  97. package/Title/index.tsx +132 -0
  98. package/Title/styles.ts +52 -0
  99. package/Title/types.ts +52 -0
  100. package/code-scanner.js +51 -0
  101. package/index.ts +51 -0
  102. package/package.json +36 -0
  103. package/publish.sh +23 -0
  104. package/tsconfig.json +24 -0
  105. package/verify.js +44 -0
@@ -0,0 +1,202 @@
1
+ {
2
+ "vi": {
3
+ "errorCode": "Mã lỗi: ",
4
+ "seeMore": "Xem thêm",
5
+ "cancel": "Huỷ",
6
+ "done": "Xong",
7
+ "confirm": "Xác nhận",
8
+ "month": "tháng",
9
+ "day": "ngày",
10
+ "choose": "Chọn",
11
+ "sent": "Đã gửi",
12
+ "received": "Đã tiếp nhận",
13
+ "processing": "Đang xử lý",
14
+ "processed": "Đã xử lý",
15
+ "addImg": "Thêm hình",
16
+ "chooseBtn": "Chọn button",
17
+ "imgEg": "Hình ảnh tham khảo",
18
+ "filter": "Sắp xếp",
19
+ "shipping": "Đang giao hàng",
20
+ "men": "Nam",
21
+ "women": "Nữ",
22
+ "more": "Khác",
23
+ "expDate": "Ngày hết hạn",
24
+ "exp": "HSD",
25
+ "inActive": "Chưa kích hoạt",
26
+ "voucherRemindHour": "Hết hạn sau {hours} giờ",
27
+ "voucherRemindMinute": "Hết hạn sau {minutes} phút",
28
+ "voucherRemindSecond": "Hết hạn sau {seconds} giây",
29
+ "voucherRemindDay": "Hết hạn sau {days} ngày",
30
+ "chooseRoundtrip": "Chọn vé khứ hồi",
31
+ "depart": "Ngày đi",
32
+ "return": "Ngày về",
33
+ "departing": "Đi",
34
+ "returning": "Về",
35
+ "jan": "Tháng 1",
36
+ "feb": "Tháng 2",
37
+ "mar": "Tháng 3",
38
+ "apr": "Tháng 4",
39
+ "may": "Tháng 5",
40
+ "jun": "Tháng 6",
41
+ "jul": "Tháng 7",
42
+ "aug": "Tháng 8",
43
+ "sep": "Tháng 9",
44
+ "oct": "Tháng 10",
45
+ "nov": "Tháng 11",
46
+ "dec": "Tháng 12",
47
+ "mon": "T2",
48
+ "tue": "T3",
49
+ "wed": "T4",
50
+ "thu": "T5",
51
+ "fri": "T6",
52
+ "sat": "T7",
53
+ "sun": "CN",
54
+ "showLunar": "Hiển thị lịch âm",
55
+ "newYear": "Tết Dương lịch",
56
+ "valentine": "Ngày Lễ Tình nhân",
57
+ "womenDay": "Ngày Quốc tế Phụ nữ",
58
+ "liberationDay": "Ngày giải phóng Miền Nam thống nhất đất nước",
59
+ "laborDay": "Ngày Quốc tế Lao động",
60
+ "childrenDay": "Ngày Quốc tế Thiếu nhi",
61
+ "nationalDay": "Quốc khánh nước CHXHCN Việt Nam",
62
+ "womenDayVN": "Ngày Phụ nữ Việt Nam",
63
+ "teacherDay": "Ngày Nhà giáo Việt Nam",
64
+ "christmasEve": "Ngày Lễ Giáng Sinh",
65
+ "christmas": "Ngày Lễ Giáng Sinh",
66
+ "lunarNewYear": "Tết Nguyên Đán",
67
+ "hungKingDay": "Giỗ Tổ Hùng Vương",
68
+ "balance": "Số dư trong ví",
69
+ "chooseDate": "Chọn ngày tháng năm",
70
+ "year": "năm",
71
+ "hour": "giờ",
72
+ "minute": "phút",
73
+ "from": "Từ",
74
+ "to": "Đến",
75
+ "connected": "Đã kết nối",
76
+ "disconnected": "Mất kết nối",
77
+ "hide": "Ẩn",
78
+ "viewAllTitle": "Xem tất cả",
79
+ "headerTitle": "Lịch sử thanh toán",
80
+ "SHORTEN": "THU GỌN",
81
+ "viewMoreBank": "XEM THÊM (${otherItemCount} ngân hàng)",
82
+ "transaction_success": "Thành công",
83
+ "transaction_fail": "Thất bại",
84
+ "transaction_processing": "Đang xử lý",
85
+ "viewMore": "Xem thêm",
86
+ "shorten": "Thu gọn",
87
+ "Payment": "Thanh toán ${serviceName}",
88
+ "currencyUnit": "đ",
89
+ "Month": "Tháng",
90
+ "save": "Lưu",
91
+ "favoriteIn": "Thêm dịch vụ yêu thích",
92
+ "favoriteOut": "Xóa dịch vụ yêu thích",
93
+ "deviceIn": "Thêm vào thiết bị",
94
+ "setting": "Cài đặt",
95
+ "transaction": "Lịch sử giao dịch",
96
+ "share": "Chia sẽ dịch vụ",
97
+ "information": "Thông tin chung",
98
+ "tutorial": "Hướng dẫn sử dụng",
99
+ "question": "Câu hỏi thường gặp",
100
+ "support": "Trung tâm hỗ trợ"
101
+ },
102
+ "en": {
103
+ "seeMore": "See more",
104
+ "cancel": "Cancel",
105
+ "done": "Done",
106
+ "confirm": "Confirm",
107
+ "month": "month",
108
+ "day": "day",
109
+ "choose": "Choose",
110
+ "sent": "Sent",
111
+ "received": "Received",
112
+ "processing": "Processing",
113
+ "processed": "Done",
114
+ "addImg": "Add image",
115
+ "chooseBtn": "Choose button",
116
+ "imgEg": "Example images",
117
+ "filter": "Filter",
118
+ "shipping": "Shipping",
119
+ "men": "Men",
120
+ "women": "Women",
121
+ "more": "More",
122
+ "expDate": "Expiration date",
123
+ "exp": "EXP",
124
+ "inActive": "Not Activated",
125
+ "voucherRemindHour": "Revoke after {hours} hours",
126
+ "voucherRemindMinute": "Revoke after {minutes} minutes",
127
+ "voucherRemindSecond": "Revoke after {seconds} seconds",
128
+ "voucherRemindDay": "Revoke after {days} days",
129
+ "chooseRoundtrip": "Choose roundtrip ticket",
130
+ "depart": "Departing",
131
+ "return": "Returning",
132
+ "departing": "De",
133
+ "returning": "Re",
134
+ "jan": "January",
135
+ "feb": "February",
136
+ "mar": "March",
137
+ "apr": "April",
138
+ "may": "May",
139
+ "jun": "June",
140
+ "jul": "July",
141
+ "aug": "August",
142
+ "sep": "September",
143
+ "oct": "October",
144
+ "nov": "November",
145
+ "dec": "December",
146
+ "mon": "Mon",
147
+ "tue": "Tue",
148
+ "wed": "Wed",
149
+ "thu": "Thu",
150
+ "fri": "Fri",
151
+ "sat": "Sat",
152
+ "sun": "Sun",
153
+ "showLunar": "Show Lunar Calendar",
154
+ "newYear": "New Year's Day",
155
+ "valentine": "Valentine's Day",
156
+ "womenDay": "International Women's Day",
157
+ "liberationDay": "Liberation Day",
158
+ "laborDay": "Internation Labor's Day",
159
+ "childrenDay": "International Labor's Day",
160
+ "nationalDay": "National Day",
161
+ "womenDayVN": "Vietnamese Women's Day",
162
+ "teacherDay": "Teacher's Day",
163
+ "christmasEve": "Christmas Eve",
164
+ "christmas": "Christmas Day",
165
+ "lunarNewYear": "Lunar New Year",
166
+ "hungKingDay": "Hung Kings' Festival",
167
+ "balance": "Wallet Balance",
168
+ "chooseDate": "Choose date",
169
+ "year": "year",
170
+ "hour": "hour",
171
+ "minute": "minute",
172
+ "from": "From",
173
+ "to": "To",
174
+ "connected": "Connected",
175
+ "disconnected": "Disconnected",
176
+ "hide": "Hide",
177
+ "viewAllTitle": "View all",
178
+ "headerTitle": "Transaction history",
179
+ "SHORTEN": "SHORTEN",
180
+ "viewMoreBank": "VIEW MORE (${otherItemCount} banks)",
181
+ "transaction_success": "Success",
182
+ "transaction_fail": "Fail",
183
+ "transaction_processing": "Processing",
184
+ "viewMore": "View more",
185
+ "shorten": "Shorten",
186
+ "Payment": "${serviceName} payment",
187
+ "currencyUnit": "VND",
188
+ "Month": "Month",
189
+ "save": "Save",
190
+ "favoriteIn": "Add to favorite services",
191
+ "favoriteOut": "Remove to favorite services",
192
+ "deviceIn": "Add to device",
193
+ "setting": "Settings",
194
+ "transaction": "Transaction History",
195
+ "share": "Share",
196
+ "information": "Information",
197
+ "tutorial": "Instruction",
198
+ "question": "FAQ",
199
+ "support": "Support center",
200
+ "errorCode": "Error code: "
201
+ }
202
+ }
@@ -0,0 +1,56 @@
1
+ import React, {FC, useContext} from 'react';
2
+ import {View} from 'react-native';
3
+
4
+ import {ApplicationContext} from '../Application';
5
+ import {BadgeProps} from './types';
6
+ import styles from './styles';
7
+ import {Colors} from '../Consts';
8
+ import {Text} from '../Text';
9
+
10
+ const Badge: FC<BadgeProps> = ({label = 'Label', style, backgroundColor}) => {
11
+ const {theme} = useContext(ApplicationContext);
12
+
13
+ const isValidatedColor = () => {
14
+ const colorKeys = Object.keys(Colors);
15
+ const colorValue = Object.values(Colors);
16
+ if (backgroundColor) {
17
+ const colorIndex = colorValue.indexOf(backgroundColor);
18
+ if (colorIndex !== -1) {
19
+ if (colorKeys[colorIndex]?.includes('_03')) {
20
+ return true;
21
+ }
22
+ }
23
+ }
24
+ return false;
25
+ };
26
+
27
+ const isNumber = () => {
28
+ const numberRegex = /^\d+$/;
29
+ return numberRegex.test(String(label));
30
+ };
31
+
32
+ const formatTitle = () => {
33
+ if (isNumber() && Number(label) > 99) {
34
+ return '99+';
35
+ }
36
+ return label.toString();
37
+ };
38
+
39
+ let badgeColor = isNumber()
40
+ ? theme.colors.error.primary
41
+ : theme.colors.warning.primary;
42
+
43
+ if (backgroundColor && isValidatedColor()) {
44
+ badgeColor = backgroundColor;
45
+ }
46
+
47
+ return (
48
+ <View style={[style, styles.badge, {backgroundColor: badgeColor}]}>
49
+ <Text color={Colors.black_01} typography={'action_xs_bold'}>
50
+ {formatTitle()}
51
+ </Text>
52
+ </View>
53
+ );
54
+ };
55
+
56
+ export default Badge;
@@ -0,0 +1,11 @@
1
+ import React, {FC} from 'react';
2
+ import {View} from 'react-native';
3
+ import {BadgeDotProps} from './types';
4
+ import styles from './styles';
5
+
6
+ const BadgeDot: FC<BadgeDotProps> = ({size = 'large', style}) => {
7
+ const dotStyle = size === 'small' ? styles.dotSmall : styles.dot;
8
+ return <View style={[style, dotStyle]} />;
9
+ };
10
+
11
+ export default BadgeDot;
@@ -0,0 +1,125 @@
1
+ import React, {FC, useContext} from 'react';
2
+ import {View} from 'react-native';
3
+ import {DownTail, UpTail} from './Shape';
4
+ import styles from './styles';
5
+ import {BadgeRibbonProps} from './types';
6
+ import {ApplicationContext} from '../Application';
7
+ import {Text} from '../Text';
8
+ import {Colors} from '../Consts';
9
+ import {Image} from '../Image';
10
+
11
+ const BadgeRibbon: FC<BadgeRibbonProps> = ({
12
+ position = 'top_right',
13
+ label = 'Label',
14
+ isRound = false,
15
+ style = {},
16
+ }) => {
17
+ const {theme} = useContext(ApplicationContext);
18
+ let ribbonRotate = '0deg';
19
+ let textRotate = '0deg';
20
+ let ribbonTail = <DownTail />;
21
+ let textMargin = 0;
22
+ let skewMargin = 0;
23
+
24
+ if (position === 'top_right' || position === 'bottom_right') {
25
+ ribbonRotate = '180deg';
26
+ textRotate = '180deg';
27
+ }
28
+
29
+ if (position === 'bottom_left' || position === 'top_right') {
30
+ textMargin = 4;
31
+ ribbonTail = <UpTail />;
32
+ skewMargin = 4;
33
+ }
34
+
35
+ const renderRoundContent = () => {
36
+ return (
37
+ <View
38
+ style={[
39
+ styles.ribbonContent,
40
+ {
41
+ backgroundColor: theme.colors.warning.primary,
42
+ marginTop: textMargin,
43
+ },
44
+ ]}>
45
+ <Text
46
+ style={[
47
+ styles.ribbonLabel,
48
+ {
49
+ transform: [
50
+ {
51
+ rotate: textRotate,
52
+ },
53
+ ],
54
+ },
55
+ ]}
56
+ color={Colors.black_01}
57
+ typography={'label_xs_medium'}>
58
+ {label}
59
+ </Text>
60
+ </View>
61
+ );
62
+ };
63
+
64
+ const renderSkewContent = () => {
65
+ return (
66
+ <View
67
+ style={{
68
+ flexDirection: 'row',
69
+ marginTop: skewMargin,
70
+ }}>
71
+ <View
72
+ style={[
73
+ styles.ribbonSkewContent,
74
+ {
75
+ backgroundColor: theme.colors.warning.primary,
76
+ },
77
+ ]}>
78
+ <Text
79
+ style={[
80
+ styles.ribbonLabel,
81
+ {
82
+ transform: [
83
+ {
84
+ rotate: textRotate,
85
+ },
86
+ ],
87
+ },
88
+ ]}
89
+ color={Colors.black_01}
90
+ typography={'label_xs_medium'}>
91
+ {label}
92
+ </Text>
93
+ </View>
94
+ <Image
95
+ source={{
96
+ uri: 'https://static.momocdn.net/app/img/kits/utils/Tail_4x.png',
97
+ }}
98
+ style={styles.skew}
99
+ />
100
+ </View>
101
+ );
102
+ };
103
+
104
+ const content = isRound ? renderRoundContent() : renderSkewContent();
105
+
106
+ return (
107
+ <View
108
+ style={[
109
+ style,
110
+ styles.ribbon,
111
+ {
112
+ transform: [
113
+ {
114
+ rotate: ribbonRotate,
115
+ },
116
+ ],
117
+ },
118
+ ]}>
119
+ {ribbonTail}
120
+ {content}
121
+ </View>
122
+ );
123
+ };
124
+
125
+ export default BadgeRibbon;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import styles from './styles';
3
+ import {Image} from '../Image';
4
+
5
+ const UpTail = () => {
6
+ return (
7
+ <Image
8
+ resizeMode={'stretch'}
9
+ source={{
10
+ uri: 'https://static.momocdn.net/app/img/kits/utils/Head_down_4x.png',
11
+ }}
12
+ style={[styles.tail, {transform: [{rotate: '180deg'}]}]}
13
+ />
14
+ );
15
+ };
16
+
17
+ const DownTail = () => {
18
+ return (
19
+ <Image
20
+ resizeMode={'stretch'}
21
+ source={{
22
+ uri: 'https://static.momocdn.net/app/img/kits/utils/Head_4x.png',
23
+ }}
24
+ style={styles.tail}
25
+ />
26
+ );
27
+ };
28
+
29
+ export {UpTail, DownTail};
@@ -0,0 +1,7 @@
1
+ import Badge from './Badge';
2
+ import BadgeDot from './BadgeDot';
3
+ import BadgeRibbon from './BadgeRibbon';
4
+ import {BadgeProps, BadgeDotProps, BadgeRibbonProps} from './types';
5
+
6
+ export {Badge, BadgeRibbon, BadgeDot};
7
+ export type {BadgeProps, BadgeDotProps, BadgeRibbonProps};
@@ -0,0 +1,58 @@
1
+ import {StyleSheet} from 'react-native';
2
+ import {Colors, Radius, Spacing} from '../Consts';
3
+ import {scaleSize} from '../Text';
4
+
5
+ export default StyleSheet.create({
6
+ badge: {
7
+ paddingHorizontal: Spacing.XS,
8
+ borderRadius: Radius.M,
9
+ justifyContent: 'center',
10
+ alignItems: 'center',
11
+ height: scaleSize(16),
12
+ minWidth: scaleSize(16),
13
+ flexDirection: 'row',
14
+ borderWidth: 1,
15
+ borderColor: Colors.black_01,
16
+ alignSelf: 'baseline',
17
+ },
18
+ dot: {
19
+ width: 16,
20
+ height: 16,
21
+ borderWidth: 2,
22
+ borderColor: Colors.black_01,
23
+ backgroundColor: Colors.red_03,
24
+ borderRadius: 8,
25
+ },
26
+ dotSmall: {
27
+ width: 10,
28
+ height: 10,
29
+ borderWidth: 1,
30
+ borderColor: Colors.black_01,
31
+ backgroundColor: Colors.red_03,
32
+ borderRadius: 5,
33
+ },
34
+ ribbon: {
35
+ alignSelf: 'baseline',
36
+ flexDirection: 'row',
37
+ height: 20,
38
+ overflow: 'hidden',
39
+ },
40
+ ribbonContent: {
41
+ height: 16,
42
+ justifyContent: 'center',
43
+ alignItems: 'center',
44
+ borderBottomRightRadius: 12,
45
+ borderTopRightRadius: 12,
46
+ paddingRight: 6,
47
+ },
48
+ ribbonSkewContent: {
49
+ height: 16,
50
+ justifyContent: 'center',
51
+ alignItems: 'center',
52
+ },
53
+ ribbonLabel: {
54
+ color: Colors.black_01,
55
+ },
56
+ skew: {width: 8, height: 16},
57
+ tail: {width: 5, height: 20},
58
+ });
package/Badge/types.ts ADDED
@@ -0,0 +1,63 @@
1
+ import {ViewStyle} from 'react-native';
2
+
3
+ /**
4
+ * Props for a general Badge component. It can display a wide range of badges including simple labels, numbers, or dots.
5
+ */
6
+ export type BadgeProps = {
7
+ /**
8
+ * Optional. The text to display on the badge. This could be a number or string, depending on the badge's purpose.
9
+ */
10
+ label?: string | number;
11
+
12
+ /**
13
+ * Optional. Custom styles to apply to the badge component. Can be a single style or an array of styles.
14
+ */
15
+ style?: ViewStyle | ViewStyle[];
16
+
17
+ /**
18
+ * Optional. Custom background badge.
19
+ */
20
+ backgroundColor?: string;
21
+ };
22
+
23
+ /**
24
+ * Props for a BadgeDot component. It specifically represents a dot-style badge, typically used for notification indicators.
25
+ */
26
+ export type BadgeDotProps = {
27
+ /**
28
+ * Optional. The size of the dot, either 'small' or 'large'. This allows for better visual alignment with different UI elements.
29
+ */
30
+ size?: 'small' | 'large';
31
+
32
+ /**
33
+ * Optional. Custom styles to apply to the badge dot component. Can be a single style or an array of styles.
34
+ */
35
+ style?: ViewStyle | ViewStyle[];
36
+ };
37
+
38
+ /**
39
+ * Props for a BadgeRibbon component. It represents a more specialized badge in the shape of a ribbon, allowing for placement around containers.
40
+ */
41
+ export type BadgeRibbonProps = {
42
+ /**
43
+ * The text to display on the ribbon-style badge. Unlike other badges, ribbons typically carry more descriptive text.
44
+ */
45
+ label: string;
46
+
47
+ /**
48
+ * Optional. Determines the placement of the ribbon on its parent container. The position can be any corner of the container.
49
+ * Defaults to 'top_right' if not specified.
50
+ */
51
+ position?: 'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
52
+
53
+ /**
54
+ * Optional. If true, the edges of the ribbon badge will be rounded. This is purely a stylistic choice.
55
+ * Defaults to `false` if not provided, resulting in a flat-edged ribbon.
56
+ */
57
+ isRound?: boolean;
58
+
59
+ /**
60
+ * Optional. Custom styles to apply to the ribbon badge component. Can be a single style or an array of styles.
61
+ */
62
+ style?: ViewStyle | ViewStyle[];
63
+ };