@hero-design/rn 8.52.2-rc2.0 → 8.54.0

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 (245) hide show
  1. package/.eslintrc.js +0 -1
  2. package/.turbo/turbo-build.log +2 -2
  3. package/CHANGELOG.md +11 -13
  4. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  5. package/es/index.js +1004 -705
  6. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  7. package/lib/index.js +1003 -703
  8. package/package.json +7 -7
  9. package/sonar-project.properties +9 -0
  10. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -0
  11. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +2 -0
  12. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  13. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
  14. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  15. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -0
  16. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  17. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -0
  18. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  19. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +6 -0
  20. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -0
  21. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +60 -0
  22. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +413 -0
  23. package/src/components/BottomNavigation/__tests__/index.spec.tsx +97 -0
  24. package/src/components/BottomNavigation/index.tsx +166 -0
  25. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +21 -32
  26. package/src/components/BottomSheet/index.tsx +1 -1
  27. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +21 -0
  28. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +10 -0
  29. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +10 -0
  30. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  31. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +16 -0
  32. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -0
  33. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +32 -0
  34. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
  35. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +7 -0
  36. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
  37. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -0
  38. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  39. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +2 -0
  40. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +4 -0
  41. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +1 -0
  42. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +803 -1
  43. package/src/components/Carousel/__tests__/index.spec.tsx +47 -37
  44. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +8 -0
  45. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  46. package/src/components/Checkbox/index.tsx +13 -1
  47. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  48. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +2 -0
  49. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  50. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
  51. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  52. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +15 -0
  53. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  54. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +1 -0
  55. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +329 -309
  56. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -0
  57. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  58. package/src/components/Drawer/DragableDrawer/index.tsx +2 -2
  59. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  60. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  61. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  62. package/src/components/Error/index.tsx +20 -3
  63. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  64. package/src/components/FAB/ActionGroup/index.tsx +14 -1
  65. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -0
  66. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -0
  67. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  68. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  69. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  70. package/src/components/Icon/IconList.ts +9 -0
  71. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  72. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  73. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -0
  74. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +4 -0
  75. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
  76. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +9 -0
  77. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  78. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  79. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +5 -0
  80. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  81. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  82. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -0
  83. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
  84. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1 -0
  85. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  86. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  87. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +1 -0
  88. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -0
  89. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
  90. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +4 -0
  91. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  92. package/src/components/SectionHeading/__tests__/index.spec.tsx +1 -0
  93. package/src/components/SectionHeading/index.tsx +57 -32
  94. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  95. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -0
  96. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +42 -128
  97. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  98. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -0
  99. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +35 -96
  100. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
  101. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  102. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +1 -0
  103. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +24 -0
  104. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  105. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  106. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
  107. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  108. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +4 -0
  109. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  110. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +5 -0
  111. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  112. package/src/components/Tabs/__tests__/SceneView.spec.tsx +1 -1
  113. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +4 -0
  114. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
  115. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +1 -0
  116. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -0
  117. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  118. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +10 -0
  119. package/src/components/Tag/index.tsx +12 -0
  120. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +21 -0
  121. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +17 -0
  122. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
  123. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +330 -309
  124. package/src/components/Toast/StyledToast.tsx +9 -7
  125. package/src/components/Toast/Toast.tsx +4 -1
  126. package/src/components/Toast/ToastContainer.tsx +6 -2
  127. package/src/components/Toast/ToastContext.ts +5 -2
  128. package/src/components/Toast/ToastProvider.tsx +19 -2
  129. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +15 -12
  130. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -0
  131. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +14 -6
  132. package/src/components/Toast/types.ts +5 -1
  133. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +3 -0
  134. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -0
  135. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +16 -0
  136. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +19 -0
  137. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +10 -0
  138. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
  139. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +8 -0
  140. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +11 -0
  141. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +20 -0
  142. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +20 -0
  143. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +23 -0
  144. package/src/index.ts +2 -0
  145. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +102 -0
  146. package/src/theme/components/badge.ts +28 -1
  147. package/src/theme/components/bottomNavigation.ts +27 -0
  148. package/src/theme/components/button.ts +24 -0
  149. package/src/theme/components/carousel.ts +28 -1
  150. package/src/theme/components/empty.ts +23 -1
  151. package/src/theme/components/error.ts +32 -1
  152. package/src/theme/components/fab.ts +13 -2
  153. package/src/theme/components/pinInput.ts +32 -0
  154. package/src/theme/components/success.ts +23 -1
  155. package/src/theme/components/tag.ts +28 -1
  156. package/src/theme/components/textInput.ts +5 -0
  157. package/src/theme/getTheme.ts +21 -18
  158. package/src/types.ts +2 -0
  159. package/types/components/Accordion/AccordionItem.d.ts +1 -1
  160. package/types/components/Accordion/StyledAccordion.d.ts +1 -1
  161. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +1 -1
  162. package/types/components/Avatar/StyledAvatar.d.ts +2 -2
  163. package/types/components/Badge/StyledBadge.d.ts +2 -2
  164. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
  165. package/types/components/BottomNavigation/index.d.ts +45 -0
  166. package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -1
  167. package/types/components/Box/config.d.ts +2 -2
  168. package/types/components/Box/types.d.ts +3 -3
  169. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
  170. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  171. package/types/components/Button/StyledButton.d.ts +2 -2
  172. package/types/components/Carousel/CardCarousel.d.ts +1 -1
  173. package/types/components/Carousel/types.d.ts +2 -2
  174. package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
  175. package/types/components/Checkbox/index.d.ts +7 -2
  176. package/types/components/Chip/StyledChip.d.ts +1 -1
  177. package/types/components/Divider/StyledDivider.d.ts +1 -1
  178. package/types/components/Drawer/DragableDrawer/helpers.d.ts +1 -1
  179. package/types/components/Empty/StyledEmpty.d.ts +1 -1
  180. package/types/components/Error/StyledError.d.ts +1 -1
  181. package/types/components/Error/index.d.ts +9 -3
  182. package/types/components/FAB/ActionGroup/index.d.ts +6 -1
  183. package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
  184. package/types/components/FAB/FAB.d.ts +1 -1
  185. package/types/components/Icon/AnimatedIcon.d.ts +1 -1
  186. package/types/components/Icon/HeroIcon/index.d.ts +2 -2
  187. package/types/components/Icon/IconList.d.ts +1 -1
  188. package/types/components/Icon/index.d.ts +2 -2
  189. package/types/components/Icon/utils.d.ts +1 -1
  190. package/types/components/List/StyledListItem.d.ts +2 -2
  191. package/types/components/PinInput/StyledPinInput.d.ts +1 -1
  192. package/types/components/Portal/reducer.d.ts +1 -1
  193. package/types/components/Portal/types.d.ts +1 -1
  194. package/types/components/Progress/types.d.ts +1 -1
  195. package/types/components/Radio/types.d.ts +1 -1
  196. package/types/components/RefreshControl/index.d.ts +1 -1
  197. package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
  198. package/types/components/RichTextEditor/types.d.ts +1 -1
  199. package/types/components/SectionHeading/StyledHeading.d.ts +1 -1
  200. package/types/components/SectionHeading/index.d.ts +11 -1
  201. package/types/components/Select/BaseOptionList.d.ts +1 -1
  202. package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
  203. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  204. package/types/components/Select/helpers.d.ts +1 -1
  205. package/types/components/Select/types.d.ts +6 -6
  206. package/types/components/Skeleton/StyledSkeleton.d.ts +2 -2
  207. package/types/components/Success/StyledSuccess.d.ts +1 -1
  208. package/types/components/Swipeable/StyledSwipeable.d.ts +1 -1
  209. package/types/components/Swipeable/index.d.ts +2 -2
  210. package/types/components/Switch/SelectorSwitch/index.d.ts +3 -3
  211. package/types/components/Switch/StyledSwitch.d.ts +1 -1
  212. package/types/components/Tabs/TabWithBadge.d.ts +3 -3
  213. package/types/components/Tabs/index.d.ts +2 -2
  214. package/types/components/Tag/StyledTag.d.ts +1 -1
  215. package/types/components/Tag/index.d.ts +6 -1
  216. package/types/components/TextInput/StyledTextInput.d.ts +2 -2
  217. package/types/components/TextInput/index.d.ts +1 -1
  218. package/types/components/Toast/StyledToast.d.ts +2 -0
  219. package/types/components/Toast/ToastContext.d.ts +3 -3
  220. package/types/components/Toast/ToastProvider.d.ts +2 -2
  221. package/types/components/Toast/index.d.ts +1 -1
  222. package/types/components/Toast/types.d.ts +7 -3
  223. package/types/components/Typography/Body/StyledBody.d.ts +1 -1
  224. package/types/components/Typography/Title/StyledTitle.d.ts +1 -1
  225. package/types/components/Typography/types.d.ts +1 -1
  226. package/types/index.d.ts +2 -1
  227. package/types/theme/ThemeSwitcher.d.ts +1 -1
  228. package/types/theme/components/badge.d.ts +24 -0
  229. package/types/theme/components/bottomNavigation.d.ts +23 -0
  230. package/types/theme/components/button.d.ts +20 -0
  231. package/types/theme/components/carousel.d.ts +24 -0
  232. package/types/theme/components/empty.d.ts +19 -0
  233. package/types/theme/components/error.d.ts +27 -0
  234. package/types/theme/components/fab.d.ts +19 -8
  235. package/types/theme/components/pinInput.d.ts +27 -0
  236. package/types/theme/components/success.d.ts +19 -0
  237. package/types/theme/components/tag.d.ts +24 -0
  238. package/types/theme/components/textInput.d.ts +5 -0
  239. package/types/theme/getTheme.d.ts +21 -19
  240. package/types/theme/global/colors/types.d.ts +3 -3
  241. package/types/theme/global/index.d.ts +1 -1
  242. package/types/theme/global/scale.d.ts +1 -1
  243. package/types/theme/global/shadows.d.ts +1 -1
  244. package/types/theme/global/typography.d.ts +1 -1
  245. package/types/types.d.ts +2 -1
@@ -24,7 +24,38 @@ const getErrorTheme = (theme: GlobalTheme) => {
24
24
  inPageBackground: theme.colors.neutralGlobalSurface,
25
25
  };
26
26
 
27
- return { colors, sizes, space };
27
+ const fontSizes = {
28
+ title: theme.fontSizes.xxxlarge,
29
+ description: theme.fontSizes.xlarge,
30
+ };
31
+
32
+ const fonts = {
33
+ title: theme.fonts.playful.semiBold,
34
+ description: theme.fonts.playful.regular,
35
+ };
36
+
37
+ const lineHeight = {
38
+ title: theme.lineHeights.xxxlarge,
39
+ description: theme.lineHeights.xlarge,
40
+ };
41
+
42
+ return { fontSizes, colors, sizes, space, fonts, lineHeight };
28
43
  };
29
44
 
45
+ type GetErrorThemeReturnType = ReturnType<typeof getErrorTheme>;
46
+ export interface ErrorThemeType extends GetErrorThemeReturnType {
47
+ /**
48
+ * @deprecated will be removed in v9
49
+ * */
50
+ fonts: GetErrorThemeReturnType['fonts'];
51
+ /**
52
+ * @deprecated will be removed in v9
53
+ * */
54
+ fontSizes: GetErrorThemeReturnType['fontSizes'];
55
+ /**
56
+ * @deprecated will be removed in v9
57
+ * */
58
+ lineHeight: GetErrorThemeReturnType['lineHeight'];
59
+ }
60
+
30
61
  export default getErrorTheme;
@@ -61,14 +61,25 @@ const getFABTheme = (theme: GlobalTheme) => {
61
61
 
62
62
  return {
63
63
  radii,
64
- colors,
65
- sizes,
66
64
  fonts,
67
65
  fontSizes,
66
+ colors,
67
+ sizes,
68
68
  lineHeights,
69
69
  shadows,
70
70
  space,
71
71
  };
72
72
  };
73
+ type GetFABThemeReturnType = ReturnType<typeof getFABTheme>;
74
+ export interface FABThemeType extends GetFABThemeReturnType {
75
+ /**
76
+ * @deprecated will be removed in v9
77
+ * */
78
+ fonts: GetFABThemeReturnType['fonts'];
79
+ /**
80
+ * @deprecated will be removed in v9
81
+ * */
82
+ fontSizes: GetFABThemeReturnType['fontSizes'];
83
+ }
73
84
 
74
85
  export default getFABTheme;
@@ -13,6 +13,20 @@ const getPinInputTheme = (theme: GlobalTheme) => {
13
13
  disabled: theme.colors.disabledOnDefaultGlobalSurface,
14
14
  };
15
15
 
16
+ const fonts = {
17
+ cellText: theme.fonts.neutral.semiBold,
18
+ errorMessage: theme.fonts.neutral.regular,
19
+ };
20
+
21
+ const fontSizes = {
22
+ cellText: theme.fontSizes.xxxxlarge,
23
+ errorMessage: theme.fontSizes.small,
24
+ };
25
+ const lineHeights = {
26
+ cellText: theme.lineHeights.xxxxlarge,
27
+ errorMessage: theme.fontSizes.small,
28
+ };
29
+
16
30
  const sizes = {
17
31
  cellWidth: theme.sizes.xxlarge,
18
32
  cellHeight: theme.sizes.xxxlarge,
@@ -31,11 +45,29 @@ const getPinInputTheme = (theme: GlobalTheme) => {
31
45
 
32
46
  return {
33
47
  borderWidths,
48
+ lineHeights,
34
49
  colors,
50
+ fonts,
51
+ fontSizes,
35
52
  sizes,
36
53
  space,
37
54
  radii,
38
55
  };
39
56
  };
57
+ type GetPinInputThemeReturnType = ReturnType<typeof getPinInputTheme>;
58
+ export interface PinInputThemeType extends GetPinInputThemeReturnType {
59
+ /**
60
+ * @deprecated will be removed in v9
61
+ * */
62
+ fonts: GetPinInputThemeReturnType['fonts'];
63
+ /**
64
+ * @deprecated will be removed in v9
65
+ * */
66
+ fontSizes: GetPinInputThemeReturnType['fontSizes'];
67
+ /**
68
+ * @deprecated will be removed in v9
69
+ * */
70
+ lineHeights: GetPinInputThemeReturnType['lineHeights'];
71
+ }
40
72
 
41
73
  export default getPinInputTheme;
@@ -24,7 +24,29 @@ const getSuccessTheme = (theme: GlobalTheme) => {
24
24
  inPageBackground: theme.colors.neutralGlobalSurface,
25
25
  };
26
26
 
27
- return { colors, sizes, space };
27
+ const fontSizes = {
28
+ title: theme.fontSizes.xxxlarge,
29
+ description: theme.fontSizes.xlarge,
30
+ };
31
+
32
+ const fonts = {
33
+ title: theme.fonts.playful.semiBold,
34
+ description: theme.fonts.playful.regular,
35
+ };
36
+
37
+ return { fontSizes, colors, sizes, space, fonts };
28
38
  };
29
39
 
40
+ type GetSuccessThemeReturnType = ReturnType<typeof getSuccessTheme>;
41
+ export interface SuccessThemeType extends GetSuccessThemeReturnType {
42
+ /**
43
+ * @deprecated will be removed in v9
44
+ * */
45
+ fonts: GetSuccessThemeReturnType['fonts'];
46
+ /**
47
+ * @deprecated will be removed in v9
48
+ * */
49
+ fontSizes: GetSuccessThemeReturnType['fontSizes'];
50
+ }
51
+
30
52
  export default getSuccessTheme;
@@ -21,6 +21,17 @@ const getTagTheme = (theme: GlobalTheme) => {
21
21
  text: theme.colors.onDefaultGlobalSurface,
22
22
  };
23
23
 
24
+ const fonts = {
25
+ default: theme.fonts.neutral.semiBold,
26
+ };
27
+
28
+ const fontSizes = {
29
+ default: theme.fontSizes.small,
30
+ };
31
+ const lineHeights = {
32
+ default: theme.lineHeights.small,
33
+ };
34
+
24
35
  const space = {
25
36
  horizontalPadding: theme.space.small,
26
37
  verticalPadding: theme.space.xsmall,
@@ -30,7 +41,23 @@ const getTagTheme = (theme: GlobalTheme) => {
30
41
  default: theme.radii.base,
31
42
  };
32
43
 
33
- return { borderWidths, colors, space, radii };
44
+ return { borderWidths, colors, fonts, fontSizes, space, radii, lineHeights };
34
45
  };
35
46
 
47
+ type GetTagThemeReturnType = ReturnType<typeof getTagTheme>;
48
+ export interface TagThemeType extends GetTagThemeReturnType {
49
+ /**
50
+ * @deprecated will be removed in v9
51
+ * */
52
+ fonts: GetTagThemeReturnType['fonts'];
53
+ /**
54
+ * @deprecated will be removed in v9
55
+ * */
56
+ fontSizes: GetTagThemeReturnType['fontSizes'];
57
+ /**
58
+ * @deprecated will be removed in v9
59
+ * */
60
+ lineHeights: GetTagThemeReturnType['lineHeights'];
61
+ }
62
+
36
63
  export default getTagTheme;
@@ -64,6 +64,11 @@ const getTextInputTheme = (theme: GlobalTheme) => {
64
64
 
65
65
  const fontSizes = {
66
66
  text: theme.fontSizes.large,
67
+ labelInsideTextInput: theme.fontSizes.large,
68
+ error: theme.fontSizes.small,
69
+ maxLength: theme.fontSizes.small,
70
+ asteriskLabel: theme.fontSizes.large,
71
+ topLabel: theme.fontSizes.small,
67
72
  };
68
73
 
69
74
  const borderWidths = {
@@ -4,12 +4,13 @@ import getAccordionTheme from './components/accordion';
4
4
  import getAlertTheme from './components/alert';
5
5
  import getAttachmentTheme from './components/attachment';
6
6
  import getAvatarTheme from './components/avatar';
7
- import getBadgeTheme from './components/badge';
7
+ import getBadgeTheme, { BadgeThemeType } from './components/badge';
8
+ import getBottomNavigationTheme from './components/bottomNavigation';
8
9
  import getBottomSheetTheme from './components/bottomSheet';
9
- import getButtonTheme from './components/button';
10
+ import getButtonTheme, { ButtonThemeType } from './components/button';
10
11
  import getCalendarTheme from './components/calendar';
11
12
  import getCardTheme from './components/card';
12
- import getCarouselTheme from './components/carousel';
13
+ import getCarouselTheme, { CarouselThemeType } from './components/carousel';
13
14
  import getCardCarouselTheme from './components/cardCarousel';
14
15
  import getCheckboxTheme from './components/checkbox';
15
16
  import getChipTheme from './components/chip';
@@ -17,14 +18,14 @@ import getContentNavigatorTheme from './components/contentNavigator';
17
18
  import getDatePickerTheme from './components/datePicker';
18
19
  import getDividerTheme from './components/divider';
19
20
  import getDrawerTheme from './components/drawer';
20
- import getEmptyTheme from './components/empty';
21
- import getErrorTheme from './components/error';
22
- import getFABTheme from './components/fab';
21
+ import getEmptyTheme, { EmptyThemeType } from './components/empty';
22
+ import getErrorTheme, { ErrorThemeType } from './components/error';
23
+ import getFABTheme, { FABThemeType } from './components/fab';
23
24
  import getIconTheme from './components/icon';
24
25
  import getImageTheme from './components/image';
25
26
  import getListTheme from './components/list';
26
27
  import getPageControlTheme from './components/pageControl';
27
- import getPinInputTheme from './components/pinInput';
28
+ import getPinInputTheme, { PinInputThemeType } from './components/pinInput';
28
29
  import getProgressTheme from './components/progress';
29
30
  import getRadioTheme from './components/radio';
30
31
  import getRateTheme from './components/rate';
@@ -35,11 +36,11 @@ import getSelectTheme from './components/select';
35
36
  import getSkeletonTheme from './components/skeleton';
36
37
  import getSliderTheme from './components/slider';
37
38
  import getSpinnerTheme from './components/spinner';
38
- import getSuccessTheme from './components/success';
39
+ import getSuccessTheme, { SuccessThemeType } from './components/success';
39
40
  import getSwipeableTheme from './components/swipeable';
40
41
  import getSwitchTheme from './components/switch';
41
42
  import getTabsTheme from './components/tabs';
42
- import getTagTheme from './components/tag';
43
+ import getTagTheme, { TagThemeType } from './components/tag';
43
44
  import getTextInputTheme from './components/textInput';
44
45
  import getTimePickerTheme from './components/timePicker';
45
46
  import getToastTheme from './components/toast';
@@ -54,12 +55,13 @@ type Theme = GlobalTheme & {
54
55
  alert: ReturnType<typeof getAlertTheme>;
55
56
  attachment: ReturnType<typeof getAttachmentTheme>;
56
57
  avatar: ReturnType<typeof getAvatarTheme>;
57
- badge: ReturnType<typeof getBadgeTheme>;
58
+ badge: BadgeThemeType;
59
+ bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
58
60
  bottomSheet: ReturnType<typeof getBottomSheetTheme>;
59
- button: ReturnType<typeof getButtonTheme>;
61
+ button: ButtonThemeType;
60
62
  calendar: ReturnType<typeof getCalendarTheme>;
61
63
  card: ReturnType<typeof getCardTheme>;
62
- carousel: ReturnType<typeof getCarouselTheme>;
64
+ carousel: CarouselThemeType;
63
65
  cardCarousel: ReturnType<typeof getCardCarouselTheme>;
64
66
  checkbox: ReturnType<typeof getCheckboxTheme>;
65
67
  chip: ReturnType<typeof getChipTheme>;
@@ -67,14 +69,14 @@ type Theme = GlobalTheme & {
67
69
  datePicker: ReturnType<typeof getDatePickerTheme>;
68
70
  divider: ReturnType<typeof getDividerTheme>;
69
71
  drawer: ReturnType<typeof getDrawerTheme>;
70
- empty: ReturnType<typeof getEmptyTheme>;
71
- error: ReturnType<typeof getErrorTheme>;
72
- fab: ReturnType<typeof getFABTheme>;
72
+ empty: EmptyThemeType;
73
+ error: ErrorThemeType;
74
+ fab: FABThemeType;
73
75
  icon: ReturnType<typeof getIconTheme>;
74
76
  image: ReturnType<typeof getImageTheme>;
75
77
  list: ReturnType<typeof getListTheme>;
76
78
  pageControl: ReturnType<typeof getPageControlTheme>;
77
- pinInput: ReturnType<typeof getPinInputTheme>;
79
+ pinInput: PinInputThemeType;
78
80
  progress: ReturnType<typeof getProgressTheme>;
79
81
  radio: ReturnType<typeof getRadioTheme>;
80
82
  rate: ReturnType<typeof getRateTheme>;
@@ -85,11 +87,11 @@ type Theme = GlobalTheme & {
85
87
  skeleton: ReturnType<typeof getSkeletonTheme>;
86
88
  slider: ReturnType<typeof getSliderTheme>;
87
89
  spinner: ReturnType<typeof getSpinnerTheme>;
88
- success: ReturnType<typeof getSuccessTheme>;
90
+ success: SuccessThemeType;
89
91
  swipeable: ReturnType<typeof getSwipeableTheme>;
90
92
  switch: ReturnType<typeof getSwitchTheme>;
91
93
  tabs: ReturnType<typeof getTabsTheme>;
92
- tag: ReturnType<typeof getTagTheme>;
94
+ tag: TagThemeType;
93
95
  textInput: ReturnType<typeof getTextInputTheme>;
94
96
  timePicker: ReturnType<typeof getTimePickerTheme>;
95
97
  toast: ReturnType<typeof getToastTheme>;
@@ -111,6 +113,7 @@ const getTheme = (
111
113
  attachment: getAttachmentTheme(globalTheme),
112
114
  avatar: getAvatarTheme(globalTheme),
113
115
  badge: getBadgeTheme(globalTheme),
116
+ bottomNavigation: getBottomNavigationTheme(globalTheme),
114
117
  bottomSheet: getBottomSheetTheme(globalTheme),
115
118
  button: getButtonTheme(globalTheme),
116
119
  calendar: getCalendarTheme(globalTheme),
package/src/types.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { BottomNavigationTabType } from './components/BottomNavigation';
1
2
  import type { IconName } from './components/Icon';
2
3
  import type { SingleSelectProps, MultiSelectProps } from './components/Select';
3
4
  import type { TabType } from './components/Tabs';
@@ -18,6 +19,7 @@ import { FABHandles } from './components/FAB/FAB';
18
19
  import { ActionGroupHandles } from './components/FAB/ActionGroup';
19
20
 
20
21
  export type {
22
+ BottomNavigationTabType,
21
23
  IconName,
22
24
  SingleSelectProps,
23
25
  MultiSelectProps,
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { ReactElement } from 'react';
3
3
  import type { StyleProp, ViewStyle } from 'react-native';
4
4
  import type { Variant } from './StyledAccordion';
5
- export type AccordionItemProps = {
5
+ export declare type AccordionItemProps = {
6
6
  header: string | ReactElement;
7
7
  content: ReactElement;
8
8
  open?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TouchableOpacity, View } from 'react-native';
3
- export type Variant = 'default' | 'card';
3
+ export declare type Variant = 'default' | 'card';
4
4
  export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
6
  as?: import("react").ElementType<any> | undefined;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { View } from 'react-native';
3
3
  import { AvatarProps } from '../Avatar';
4
- type ThemeVariant = 'horizontal' | 'vertical';
4
+ declare type ThemeVariant = 'horizontal' | 'vertical';
5
5
  export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
6
6
  theme?: import("@emotion/react").Theme | undefined;
7
7
  as?: import("react").ElementType<any> | undefined;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { View, Image, TouchableOpacity } from 'react-native';
3
3
  import { TextProps } from '../Typography/Text';
4
- type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
5
- type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
4
+ declare type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
5
+ declare type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
6
6
  declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
8
  as?: import("react").ElementType<any> | undefined;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Animated } from 'react-native';
3
- type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
4
- type ThemePadding = 'narrowContent' | 'wideContent';
3
+ declare type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
4
+ declare type ThemePadding = 'narrowContent' | 'wideContent';
5
5
  declare const StyledView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
6
6
  theme?: import("@emotion/react").Theme | undefined;
7
7
  as?: import("react").ElementType<any> | undefined;
@@ -0,0 +1,52 @@
1
+ /// <reference types="react" />
2
+ import { View } from 'react-native';
3
+ declare const BottomNavigationTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & {
7
+ themeVisibility?: boolean | undefined;
8
+ }, {}, {
9
+ ref?: import("react").Ref<View> | undefined;
10
+ }>;
11
+ declare const BottomNavigationContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any> | undefined;
14
+ }, {}, {
15
+ ref?: import("react").Ref<View> | undefined;
16
+ }>;
17
+ declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
18
+ theme?: import("@emotion/react").Theme | undefined;
19
+ as?: import("react").ElementType<any> | undefined;
20
+ }, {}, {
21
+ ref?: import("react").Ref<View> | undefined;
22
+ }>;
23
+ declare const BottomBarWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
24
+ theme?: import("@emotion/react").Theme | undefined;
25
+ as?: import("react").ElementType<any> | undefined;
26
+ } & {
27
+ themeInsets: {
28
+ top: number;
29
+ right: number;
30
+ bottom: number;
31
+ left: number;
32
+ };
33
+ }, {}, {
34
+ ref?: import("react").Ref<View> | undefined;
35
+ }>;
36
+ declare const BottomBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
37
+ theme?: import("@emotion/react").Theme | undefined;
38
+ as?: import("react").ElementType<any> | undefined;
39
+ }, {}, {
40
+ ref?: import("react").Ref<View> | undefined;
41
+ }>;
42
+ declare const BottomBarItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
43
+ theme?: import("@emotion/react").Theme | undefined;
44
+ as?: import("react").ElementType<any> | undefined;
45
+ }, {}, {
46
+ ref?: import("react").Ref<View> | undefined;
47
+ }>;
48
+ declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
49
+ theme?: import("@emotion/react").Theme | undefined;
50
+ as?: import("react").ElementType<any> | undefined;
51
+ }, {}, {}>;
52
+ export { BottomBar, BottomBarItem, BottomNavigationTab, BottomNavigationContainer, BottomBarWrapper, ContentWrapper, StyledBottomBarText, };
@@ -0,0 +1,45 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
+ import type { IconName } from '../Icon';
4
+ export declare type BottomNavigationTabType = {
5
+ key: string;
6
+ title?: string;
7
+ icon: IconName;
8
+ component: ReactNode;
9
+ testID?: string;
10
+ };
11
+ interface BottomNavigationProps extends ViewProps {
12
+ /**
13
+ * Callback which is called on tab press, receiving key of upcoming active Tab.
14
+ */
15
+ onTabPress: (key: string) => void;
16
+ /**
17
+ * Whether inactive tabs should be removed and unmounted in React.
18
+ * Defaults to `false`.
19
+ */
20
+ renderActiveTabOnly?: boolean;
21
+ /**
22
+ * Current selected tab key.
23
+ */
24
+ selectedTabKey: string;
25
+ /**
26
+ * List of Tabs to be rendered. Each Tab must have an unique key.
27
+ */
28
+ tabs: {
29
+ key: string;
30
+ title?: string;
31
+ icon: IconName;
32
+ component: ReactNode;
33
+ testID?: string;
34
+ }[];
35
+ /**
36
+ * Additional style.
37
+ */
38
+ style?: StyleProp<ViewStyle>;
39
+ /**
40
+ * Testing id of the component.
41
+ */
42
+ testID?: string;
43
+ }
44
+ declare const BottomNavigation: ({ onTabPress, renderActiveTabOnly, selectedTabKey, tabs, ...nativeProps }: BottomNavigationProps) => JSX.Element;
45
+ export default BottomNavigation;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export type BottomSheetContextType = {
2
+ export declare type BottomSheetContextType = {
3
3
  setInternalShowDivider: (value: boolean) => void;
4
4
  };
5
5
  declare const BottomSheetContext: import("react").Context<BottomSheetContextType>;
@@ -165,6 +165,6 @@ declare const config: {
165
165
  };
166
166
  };
167
167
  export declare const flexPropsKey: readonly ["alignContent", "alignItems", "alignSelf", "display", "flex", "flexBasis", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "justifyContent"];
168
- export type ConfigType = typeof config;
169
- export type FlexPropsKeyType = typeof flexPropsKey[number];
168
+ export declare type ConfigType = typeof config;
169
+ export declare type FlexPropsKeyType = typeof flexPropsKey[number];
170
170
  export default config;
@@ -10,11 +10,11 @@ export interface ThemeScale {
10
10
  radii: keyof Radii;
11
11
  borderWidths: keyof BorderWidths;
12
12
  }
13
- type ConfigKeyType = keyof ConfigType;
14
- export type StyleProps = {
13
+ declare type ConfigKeyType = keyof ConfigType;
14
+ export declare type StyleProps = {
15
15
  [key in ConfigKeyType]?: ThemeScale[ConfigType[key]['scale']];
16
16
  };
17
- export type FlexStyleProps = Pick<Omit<ViewStyle, keyof StyleProps>, FlexPropsKeyType>;
17
+ export declare type FlexStyleProps = Pick<Omit<ViewStyle, keyof StyleProps>, FlexPropsKeyType>;
18
18
  export interface BoxViewProps extends ViewProps {
19
19
  /**
20
20
  * Box's content.
@@ -2,7 +2,7 @@
2
2
  import type { Theme } from '@emotion/react';
3
3
  import type { ViewProps } from 'react-native';
4
4
  import { View } from 'react-native';
5
- type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
5
+ declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
6
6
  declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
7
7
  theme?: Theme | undefined;
8
8
  as?: import("react").ElementType<any> | undefined;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
- type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
3
+ declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
4
4
  interface LoadingIndicatorProps extends ViewProps {
5
5
  /**
6
6
  * Size of the loading dot.
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { TouchableHighlight, View } from 'react-native';
3
3
  import type { Theme } from '@emotion/react';
4
- type Intent = 'primary' | 'secondary' | 'danger';
5
- type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
4
+ declare type Intent = 'primary' | 'secondary' | 'danger';
5
+ declare type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
6
6
  declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
7
7
  theme?: Theme | undefined;
8
8
  as?: import("react").ElementType<any> | undefined;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';
3
- export type CardCarouselHandles = {
3
+ export declare type CardCarouselHandles = {
4
4
  snapToIndex: (index: number) => void;
5
5
  };
6
6
  export interface CardCarouselProps {
@@ -1,11 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ImageSourcePropType, ImageResizeMode } from 'react-native';
3
- export type CarouselImageProps = ImageSourcePropType & {
3
+ export declare type CarouselImageProps = ImageSourcePropType & {
4
4
  height?: number;
5
5
  width?: number;
6
6
  resizeMode?: ImageResizeMode;
7
7
  };
8
- export type CarouselData = {
8
+ export declare type CarouselData = {
9
9
  image: CarouselImageProps | string;
10
10
  content?: ReactNode;
11
11
  heading: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TouchableOpacity, View } from 'react-native';
3
- type CheckboxThemeState = 'default' | 'disabled' | 'readonly';
3
+ declare type CheckboxThemeState = 'default' | 'disabled' | 'readonly';
4
4
  export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
6
  as?: import("react").ElementType<any> | undefined;
@@ -9,6 +9,11 @@ export interface CheckboxProps {
9
9
  * Checkbox's description.
10
10
  */
11
11
  description?: string;
12
+ /**
13
+ * @deprecated This prop will be removed in the next major release. Checkboxes will always have border.
14
+ * Whether the border is shown.
15
+ */
16
+ withBorder?: boolean;
12
17
  /**
13
18
  * Whether the switch is disabled
14
19
  */
@@ -30,10 +35,10 @@ export interface CheckboxProps {
30
35
  */
31
36
  readonly?: boolean;
32
37
  }
33
- type getStateType = {
38
+ declare type getStateType = {
34
39
  disabled: boolean;
35
40
  readonly: boolean;
36
41
  };
37
42
  export declare const getThemeState: ({ disabled, readonly }: getStateType) => "default" | "disabled" | "readonly";
38
- declare const Checkbox: ({ checked, description, disabled, onPress, style, testID, readonly, }: CheckboxProps) => React.JSX.Element;
43
+ declare const Checkbox: ({ checked, description, withBorder, disabled, onPress, style, testID, readonly, }: CheckboxProps) => React.JSX.Element;
39
44
  export default Checkbox;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TouchableOpacity } from 'react-native';
3
- type StyledChipWrapperProps = {
3
+ declare type StyledChipWrapperProps = {
4
4
  themeVariant?: 'outlined' | 'filled';
5
5
  themeSelected?: boolean;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { View } from 'react-native';
3
- type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
+ declare type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
4
4
  declare const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
6
  as?: import("react").ElementType<any> | undefined;
@@ -1,5 +1,5 @@
1
1
  export declare const getOffset: (height: number, percentage: number) => number;
2
- export type SnapPointsData = {
2
+ export declare type SnapPointsData = {
3
3
  list: number[];
4
4
  minHeightOffset: number;
5
5
  maxHeightOffset: number;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { View } from 'react-native';
3
- type ThemeVariant = 'light' | 'dark';
3
+ declare type ThemeVariant = 'light' | 'dark';
4
4
  declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
6
  as?: import("react").ElementType<any> | undefined;