@hero-design/rn 8.44.0-alpha.0 → 8.44.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 (281) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +36 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +2852 -2683
  5. package/jest-setup.ts +2 -0
  6. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  7. package/lib/index.js +2855 -2687
  8. package/package.json +23 -24
  9. package/rollup.config.js +0 -1
  10. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -384
  11. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  12. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +791 -605
  13. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -567
  14. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +172 -110
  15. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -70
  16. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -581
  17. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +158 -57
  18. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -153
  19. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
  20. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
  21. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -242
  22. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -183
  23. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  24. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
  25. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -140
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -880
  27. package/src/components/Button/StyledButton.tsx +4 -0
  28. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -106
  29. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1675 -1125
  30. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +71 -26
  31. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1651 -665
  32. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -330
  33. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  34. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
  35. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  36. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
  37. package/src/components/Carousel/CardCarousel.tsx +10 -7
  38. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -406
  39. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +197 -70
  40. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  41. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1742 -1526
  42. package/src/components/Carousel/__tests__/index.spec.tsx +50 -3
  43. package/src/components/Carousel/index.tsx +16 -22
  44. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +404 -112
  45. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -334
  46. package/src/components/Chip/StyledChip.tsx +121 -0
  47. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1483 -0
  48. package/src/components/Chip/__tests__/index.spec.tsx +136 -0
  49. package/src/components/Chip/index.tsx +82 -0
  50. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
  51. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
  52. package/src/components/Collapse/index.tsx +1 -1
  53. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
  54. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +424 -268
  55. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +622 -457
  56. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +212 -157
  57. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +204 -149
  58. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +483 -386
  59. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  60. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
  61. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -192
  62. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
  63. package/src/components/Error/StyledError.tsx +2 -1
  64. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +390 -262
  65. package/src/components/Error/__tests__/index.spec.tsx +9 -6
  66. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +860 -723
  67. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
  68. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +199 -99
  69. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +293 -185
  70. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
  71. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  72. package/src/components/Icon/IconList.ts +3 -0
  73. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
  74. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
  75. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -170
  76. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -588
  77. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +272 -128
  78. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +477 -193
  79. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +169 -0
  80. package/src/components/Modal/__tests__/index.spec.tsx +99 -0
  81. package/src/components/Modal/index.tsx +178 -82
  82. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +84 -41
  83. package/src/components/PageControl/index.tsx +1 -0
  84. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  85. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
  86. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  87. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
  88. package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
  89. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
  90. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
  91. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -116
  92. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +257 -205
  93. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -600
  94. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
  95. package/src/components/RichTextEditor/RichTextEditor.tsx +76 -38
  96. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  97. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  98. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +413 -266
  99. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -35
  100. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +403 -305
  101. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
  102. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
  103. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -57
  104. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2387 -2151
  105. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +856 -174
  106. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
  107. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -37
  108. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2321 -2085
  109. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +674 -150
  110. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
  111. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  112. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
  113. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
  114. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
  115. package/src/components/Success/StyledSuccess.tsx +2 -1
  116. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +388 -258
  117. package/src/components/Success/__tests__/index.spec.tsx +9 -6
  118. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -75
  119. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
  120. package/src/components/Swipeable/index.tsx +3 -3
  121. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
  122. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +146 -109
  123. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
  124. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -68
  125. package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
  126. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
  127. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2217 -1962
  128. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -455
  129. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
  130. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1641 -1398
  131. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
  132. package/src/components/TextInput/StyledTextInput.tsx +8 -31
  133. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +0 -44
  134. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +990 -711
  135. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3200 -2431
  136. package/src/components/TextInput/__tests__/index.spec.tsx +2 -2
  137. package/src/components/TextInput/index.tsx +113 -57
  138. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +414 -304
  139. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +686 -534
  140. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -573
  141. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  142. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -426
  143. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -363
  144. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
  145. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
  146. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
  147. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
  148. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
  149. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
  150. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  151. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
  152. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
  153. package/src/index.ts +2 -2
  154. package/src/testHelpers/renderWithTheme.tsx +2 -2
  155. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +40 -3
  156. package/src/theme/components/button.ts +0 -1
  157. package/src/theme/components/chip.ts +47 -0
  158. package/src/theme/components/textInput.ts +2 -2
  159. package/src/theme/getTheme.ts +3 -0
  160. package/testUtils/setup.tsx +0 -18
  161. package/tsconfig.json +4 -1
  162. package/types/components/Accordion/AccordionItem.d.ts +2 -1
  163. package/types/components/Accordion/index.d.ts +1 -1
  164. package/types/components/Attachment/index.d.ts +2 -1
  165. package/types/components/Avatar/Avatar.d.ts +2 -1
  166. package/types/components/Avatar/AvatarStack/index.d.ts +2 -2
  167. package/types/components/Avatar/index.d.ts +3 -2
  168. package/types/components/Badge/StyledBadge.d.ts +0 -4
  169. package/types/components/BottomSheet/Footer.d.ts +2 -1
  170. package/types/components/BottomSheet/Header.d.ts +2 -1
  171. package/types/components/BottomSheet/ScrollView.d.ts +1 -0
  172. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -4
  173. package/types/components/Box/index.d.ts +2 -1
  174. package/types/components/Button/IconButton.d.ts +2 -1
  175. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
  176. package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
  177. package/types/components/Button/UtilityButton/index.d.ts +2 -1
  178. package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
  179. package/types/components/Calendar/StyledCalendar.d.ts +1 -1
  180. package/types/components/Calendar/index.d.ts +2 -1
  181. package/types/components/Carousel/CardCarousel.d.ts +1 -1
  182. package/types/components/Carousel/CarouselItem.d.ts +2 -1
  183. package/types/components/Carousel/index.d.ts +2 -2
  184. package/types/components/Checkbox/index.d.ts +2 -1
  185. package/types/components/Chip/StyledChip.d.ts +31 -0
  186. package/types/components/Chip/index.d.ts +27 -0
  187. package/types/components/Collapse/StyledCollapse.d.ts +0 -2
  188. package/types/components/Collapse/index.d.ts +2 -1
  189. package/types/components/ContentNavigator/index.d.ts +2 -1
  190. package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
  191. package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
  192. package/types/components/DatePicker/DatePickerIOS.d.ts +2 -1
  193. package/types/components/DatePicker/index.d.ts +2 -1
  194. package/types/components/Divider/index.d.ts +2 -1
  195. package/types/components/Drawer/StyledDrawer.d.ts +0 -6
  196. package/types/components/Error/StyledError.d.ts +3 -9
  197. package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -1
  198. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -4
  199. package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
  200. package/types/components/HeroDesignProvider/index.d.ts +2 -1
  201. package/types/components/Icon/AnimatedIcon.d.ts +2 -1
  202. package/types/components/Icon/IconList.d.ts +1 -1
  203. package/types/components/Icon/index.d.ts +3 -2
  204. package/types/components/Icon/utils.d.ts +1 -1
  205. package/types/components/Image/index.d.ts +1 -0
  206. package/types/components/Modal/index.d.ts +12 -8
  207. package/types/components/PageControl/StyledPageControl.d.ts +0 -2
  208. package/types/components/PageControl/index.d.ts +2 -1
  209. package/types/components/PinInput/PinCell.d.ts +2 -1
  210. package/types/components/Portal/PortalHost.d.ts +1 -1
  211. package/types/components/Portal/PortalProvider.d.ts +1 -1
  212. package/types/components/Portal/index.d.ts +2 -2
  213. package/types/components/Progress/ProgressBar.d.ts +1 -0
  214. package/types/components/Progress/StyledProgressBar.d.ts +0 -2
  215. package/types/components/Progress/index.d.ts +1 -0
  216. package/types/components/Rate/StyledRate.d.ts +0 -2
  217. package/types/components/Rate/index.d.ts +2 -1
  218. package/types/components/RefreshControl/index.d.ts +2 -1
  219. package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
  220. package/types/components/RichTextEditor/MentionList.d.ts +2 -1
  221. package/types/components/RichTextEditor/index.d.ts +2 -2
  222. package/types/components/Select/BaseOptionList.d.ts +1 -1
  223. package/types/components/Select/Footer.d.ts +2 -1
  224. package/types/components/Select/MultiSelect/Option.d.ts +2 -1
  225. package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
  226. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  227. package/types/components/Select/SingleSelect/Option.d.ts +2 -1
  228. package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
  229. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
  230. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  231. package/types/components/Select/helpers.d.ts +1 -2
  232. package/types/components/Select/index.d.ts +2 -1
  233. package/types/components/Skeleton/index.d.ts +2 -1
  234. package/types/components/Slider/index.d.ts +2 -1
  235. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  236. package/types/components/Success/StyledSuccess.d.ts +3 -7
  237. package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
  238. package/types/components/Swipeable/index.d.ts +3 -3
  239. package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
  240. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -6
  241. package/types/components/Switch/StyledSwitch.d.ts +0 -2
  242. package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
  243. package/types/components/Tabs/SceneView.d.ts +1 -1
  244. package/types/components/Tabs/ScrollableTabs.d.ts +2 -1
  245. package/types/components/Tabs/ScrollableTabsHeader.d.ts +2 -1
  246. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -4
  247. package/types/components/Tabs/StyledTabs.d.ts +0 -4
  248. package/types/components/Tabs/TabWithBadge.d.ts +2 -2
  249. package/types/components/Tabs/index.d.ts +2 -1
  250. package/types/components/TextInput/StyledTextInput.d.ts +5 -25
  251. package/types/components/TextInput/index.d.ts +2 -1
  252. package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
  253. package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
  254. package/types/components/TimePicker/index.d.ts +2 -1
  255. package/types/components/Toast/StyledToast.d.ts +0 -2
  256. package/types/components/Toast/Toast.d.ts +1 -0
  257. package/types/components/Toast/ToastProvider.d.ts +2 -1
  258. package/types/components/Toast/index.d.ts +1 -1
  259. package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
  260. package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
  261. package/types/components/Toolbar/index.d.ts +3 -2
  262. package/types/components/Typography/Body/index.d.ts +2 -1
  263. package/types/components/Typography/Caption/index.d.ts +2 -1
  264. package/types/components/Typography/Label/index.d.ts +2 -1
  265. package/types/components/Typography/Text/index.d.ts +2 -1
  266. package/types/components/Typography/Title/index.d.ts +2 -1
  267. package/types/index.d.ts +2 -2
  268. package/types/testHelpers/renderWithTheme.d.ts +1 -0
  269. package/types/theme/ThemeSwitcher.d.ts +2 -2
  270. package/types/theme/components/button.d.ts +0 -1
  271. package/types/theme/components/chip.d.ts +40 -0
  272. package/types/theme/getTheme.d.ts +2 -0
  273. package/.turbo/turbo-publish:npm.log +0 -0
  274. package/src/components/Modal/ModalContentWrapper.tsx +0 -112
  275. package/src/components/Modal/ModalPresenter/ModalPresenter.tsx +0 -135
  276. package/src/components/Modal/ModalPresenter/index.tsx +0 -9
  277. package/src/components/Modal/ModalProvider.tsx +0 -8
  278. package/types/components/Modal/ModalContentWrapper.d.ts +0 -16
  279. package/types/components/Modal/ModalPresenter/ModalPresenter.d.ts +0 -34
  280. package/types/components/Modal/ModalPresenter/index.d.ts +0 -3
  281. package/types/components/Modal/ModalProvider.d.ts +0 -5
@@ -1,8 +1,8 @@
1
- import { View } from 'react-native';
2
- import styled from '@emotion/native';
3
- import type { ViewProps } from 'react-native';
4
1
  import type { ReactNativeStyle } from '@emotion/native';
2
+ import styled from '@emotion/native';
5
3
  import type { Theme } from '@emotion/react';
4
+ import type { ViewProps } from 'react-native';
5
+ import { View } from 'react-native';
6
6
 
7
7
  type Intent = 'primary' | 'secondary' | 'danger';
8
8
 
@@ -25,13 +25,11 @@ const genLoadingIndicatorStyles = (
25
25
  backgroundColor: theme.__hd__.button.colors[intent],
26
26
  });
27
27
 
28
- const StyledLoadingIndicatorWrapper = styled(View)<ViewProps>(({ theme }) => ({
28
+ const StyledLoadingIndicatorWrapper = styled(View)<ViewProps>({
29
29
  flexDirection: 'row',
30
30
  justifyContent: 'center',
31
31
  alignItems: 'center',
32
- paddingVertical:
33
- theme.__hd__.button.space.loadingIndicatorWrapperVerticalPadding,
34
- }));
32
+ });
35
33
 
36
34
  const StyledLoadingDot = styled(View)<{
37
35
  size?: number;
@@ -61,12 +59,10 @@ const StyledLoadingDot = styled(View)<{
61
59
  return {
62
60
  width: size,
63
61
  height: size,
64
- marginTop: theme.space.xsmall,
65
- marginBottom: theme.space.xsmall,
66
62
  marginHorizontal: theme.space.small,
67
63
  borderRadius: theme.space.small,
68
64
  ...themeStyling(),
69
65
  };
70
66
  });
71
67
 
72
- export { StyledLoadingIndicatorWrapper, StyledLoadingDot };
68
+ export { StyledLoadingDot, StyledLoadingIndicatorWrapper };
@@ -3,199 +3,459 @@
3
3
  exports[`StyledLoadingIndicator has basic-transparent style 1`] = `
4
4
  <View
5
5
  style={
6
- [
7
- {
8
- "backgroundColor": "#ffffff",
9
- "borderRadius": 8,
10
- "height": 12,
11
- "marginBottom": 4,
12
- "marginHorizontal": 8,
13
- "marginTop": 4,
14
- "width": 12,
15
- },
16
- undefined,
17
- ]
6
+ {
7
+ "flex": 1,
8
+ }
18
9
  }
19
- themeVariant="basic-transparent"
20
- />
10
+ >
11
+ <View
12
+ style={
13
+ [
14
+ {
15
+ "backgroundColor": "#ffffff",
16
+ "borderRadius": 8,
17
+ "height": 12,
18
+ "marginHorizontal": 8,
19
+ "width": 12,
20
+ },
21
+ undefined,
22
+ ]
23
+ }
24
+ themeVariant="basic-transparent"
25
+ />
26
+ <View
27
+ pointerEvents="box-none"
28
+ position="bottom"
29
+ style={
30
+ [
31
+ {
32
+ "bottom": 0,
33
+ "elevation": 9999,
34
+ "flexDirection": "column-reverse",
35
+ "left": 0,
36
+ "paddingHorizontal": 24,
37
+ "paddingVertical": 16,
38
+ "position": "absolute",
39
+ "right": 0,
40
+ "top": 0,
41
+ },
42
+ undefined,
43
+ ]
44
+ }
45
+ />
46
+ </View>
21
47
  `;
22
48
 
23
49
  exports[`StyledLoadingIndicator has filled-danger style 1`] = `
24
50
  <View
25
51
  style={
26
- [
27
- {
28
- "backgroundColor": "#ffffff",
29
- "borderRadius": 8,
30
- "height": 12,
31
- "marginBottom": 4,
32
- "marginHorizontal": 8,
33
- "marginTop": 4,
34
- "width": 12,
35
- },
36
- undefined,
37
- ]
52
+ {
53
+ "flex": 1,
54
+ }
38
55
  }
39
- themeVariant="filled-danger"
40
- />
56
+ >
57
+ <View
58
+ style={
59
+ [
60
+ {
61
+ "backgroundColor": "#ffffff",
62
+ "borderRadius": 8,
63
+ "height": 12,
64
+ "marginHorizontal": 8,
65
+ "width": 12,
66
+ },
67
+ undefined,
68
+ ]
69
+ }
70
+ themeVariant="filled-danger"
71
+ />
72
+ <View
73
+ pointerEvents="box-none"
74
+ position="bottom"
75
+ style={
76
+ [
77
+ {
78
+ "bottom": 0,
79
+ "elevation": 9999,
80
+ "flexDirection": "column-reverse",
81
+ "left": 0,
82
+ "paddingHorizontal": 24,
83
+ "paddingVertical": 16,
84
+ "position": "absolute",
85
+ "right": 0,
86
+ "top": 0,
87
+ },
88
+ undefined,
89
+ ]
90
+ }
91
+ />
92
+ </View>
41
93
  `;
42
94
 
43
95
  exports[`StyledLoadingIndicator has filled-primary style 1`] = `
44
96
  <View
45
97
  style={
46
- [
47
- {
48
- "backgroundColor": "#ffffff",
49
- "borderRadius": 8,
50
- "height": 12,
51
- "marginBottom": 4,
52
- "marginHorizontal": 8,
53
- "marginTop": 4,
54
- "width": 12,
55
- },
56
- undefined,
57
- ]
98
+ {
99
+ "flex": 1,
100
+ }
58
101
  }
59
- themeVariant="filled-primary"
60
- />
102
+ >
103
+ <View
104
+ style={
105
+ [
106
+ {
107
+ "backgroundColor": "#ffffff",
108
+ "borderRadius": 8,
109
+ "height": 12,
110
+ "marginHorizontal": 8,
111
+ "width": 12,
112
+ },
113
+ undefined,
114
+ ]
115
+ }
116
+ themeVariant="filled-primary"
117
+ />
118
+ <View
119
+ pointerEvents="box-none"
120
+ position="bottom"
121
+ style={
122
+ [
123
+ {
124
+ "bottom": 0,
125
+ "elevation": 9999,
126
+ "flexDirection": "column-reverse",
127
+ "left": 0,
128
+ "paddingHorizontal": 24,
129
+ "paddingVertical": 16,
130
+ "position": "absolute",
131
+ "right": 0,
132
+ "top": 0,
133
+ },
134
+ undefined,
135
+ ]
136
+ }
137
+ />
138
+ </View>
61
139
  `;
62
140
 
63
141
  exports[`StyledLoadingIndicator has filled-secondary style 1`] = `
64
142
  <View
65
143
  style={
66
- [
67
- {
68
- "backgroundColor": "#ffffff",
69
- "borderRadius": 8,
70
- "height": 12,
71
- "marginBottom": 4,
72
- "marginHorizontal": 8,
73
- "marginTop": 4,
74
- "width": 12,
75
- },
76
- undefined,
77
- ]
144
+ {
145
+ "flex": 1,
146
+ }
78
147
  }
79
- themeVariant="filled-secondary"
80
- />
148
+ >
149
+ <View
150
+ style={
151
+ [
152
+ {
153
+ "backgroundColor": "#ffffff",
154
+ "borderRadius": 8,
155
+ "height": 12,
156
+ "marginHorizontal": 8,
157
+ "width": 12,
158
+ },
159
+ undefined,
160
+ ]
161
+ }
162
+ themeVariant="filled-secondary"
163
+ />
164
+ <View
165
+ pointerEvents="box-none"
166
+ position="bottom"
167
+ style={
168
+ [
169
+ {
170
+ "bottom": 0,
171
+ "elevation": 9999,
172
+ "flexDirection": "column-reverse",
173
+ "left": 0,
174
+ "paddingHorizontal": 24,
175
+ "paddingVertical": 16,
176
+ "position": "absolute",
177
+ "right": 0,
178
+ "top": 0,
179
+ },
180
+ undefined,
181
+ ]
182
+ }
183
+ />
184
+ </View>
81
185
  `;
82
186
 
83
187
  exports[`StyledLoadingIndicator has outlined-danger style 1`] = `
84
188
  <View
85
189
  style={
86
- [
87
- {
88
- "backgroundColor": "#cb300a",
89
- "borderRadius": 8,
90
- "height": 12,
91
- "marginBottom": 4,
92
- "marginHorizontal": 8,
93
- "marginTop": 4,
94
- "width": 12,
95
- },
96
- undefined,
97
- ]
190
+ {
191
+ "flex": 1,
192
+ }
98
193
  }
99
- themeVariant="outlined-danger"
100
- />
194
+ >
195
+ <View
196
+ style={
197
+ [
198
+ {
199
+ "backgroundColor": "#cb300a",
200
+ "borderRadius": 8,
201
+ "height": 12,
202
+ "marginHorizontal": 8,
203
+ "width": 12,
204
+ },
205
+ undefined,
206
+ ]
207
+ }
208
+ themeVariant="outlined-danger"
209
+ />
210
+ <View
211
+ pointerEvents="box-none"
212
+ position="bottom"
213
+ style={
214
+ [
215
+ {
216
+ "bottom": 0,
217
+ "elevation": 9999,
218
+ "flexDirection": "column-reverse",
219
+ "left": 0,
220
+ "paddingHorizontal": 24,
221
+ "paddingVertical": 16,
222
+ "position": "absolute",
223
+ "right": 0,
224
+ "top": 0,
225
+ },
226
+ undefined,
227
+ ]
228
+ }
229
+ />
230
+ </View>
101
231
  `;
102
232
 
103
233
  exports[`StyledLoadingIndicator has outlined-primary style 1`] = `
104
234
  <View
105
235
  style={
106
- [
107
- {
108
- "backgroundColor": "#401960",
109
- "borderRadius": 8,
110
- "height": 12,
111
- "marginBottom": 4,
112
- "marginHorizontal": 8,
113
- "marginTop": 4,
114
- "width": 12,
115
- },
116
- undefined,
117
- ]
236
+ {
237
+ "flex": 1,
238
+ }
118
239
  }
119
- themeVariant="outlined-primary"
120
- />
240
+ >
241
+ <View
242
+ style={
243
+ [
244
+ {
245
+ "backgroundColor": "#401960",
246
+ "borderRadius": 8,
247
+ "height": 12,
248
+ "marginHorizontal": 8,
249
+ "width": 12,
250
+ },
251
+ undefined,
252
+ ]
253
+ }
254
+ themeVariant="outlined-primary"
255
+ />
256
+ <View
257
+ pointerEvents="box-none"
258
+ position="bottom"
259
+ style={
260
+ [
261
+ {
262
+ "bottom": 0,
263
+ "elevation": 9999,
264
+ "flexDirection": "column-reverse",
265
+ "left": 0,
266
+ "paddingHorizontal": 24,
267
+ "paddingVertical": 16,
268
+ "position": "absolute",
269
+ "right": 0,
270
+ "top": 0,
271
+ },
272
+ undefined,
273
+ ]
274
+ }
275
+ />
276
+ </View>
121
277
  `;
122
278
 
123
279
  exports[`StyledLoadingIndicator has outlined-secondary style 1`] = `
124
280
  <View
125
281
  style={
126
- [
127
- {
128
- "backgroundColor": "#795e90",
129
- "borderRadius": 8,
130
- "height": 12,
131
- "marginBottom": 4,
132
- "marginHorizontal": 8,
133
- "marginTop": 4,
134
- "width": 12,
135
- },
136
- undefined,
137
- ]
282
+ {
283
+ "flex": 1,
284
+ }
138
285
  }
139
- themeVariant="outlined-secondary"
140
- />
286
+ >
287
+ <View
288
+ style={
289
+ [
290
+ {
291
+ "backgroundColor": "#795e90",
292
+ "borderRadius": 8,
293
+ "height": 12,
294
+ "marginHorizontal": 8,
295
+ "width": 12,
296
+ },
297
+ undefined,
298
+ ]
299
+ }
300
+ themeVariant="outlined-secondary"
301
+ />
302
+ <View
303
+ pointerEvents="box-none"
304
+ position="bottom"
305
+ style={
306
+ [
307
+ {
308
+ "bottom": 0,
309
+ "elevation": 9999,
310
+ "flexDirection": "column-reverse",
311
+ "left": 0,
312
+ "paddingHorizontal": 24,
313
+ "paddingVertical": 16,
314
+ "position": "absolute",
315
+ "right": 0,
316
+ "top": 0,
317
+ },
318
+ undefined,
319
+ ]
320
+ }
321
+ />
322
+ </View>
141
323
  `;
142
324
 
143
325
  exports[`StyledLoadingIndicator has text-danger style 1`] = `
144
326
  <View
145
327
  style={
146
- [
147
- {
148
- "backgroundColor": "#cb300a",
149
- "borderRadius": 8,
150
- "height": 12,
151
- "marginBottom": 4,
152
- "marginHorizontal": 8,
153
- "marginTop": 4,
154
- "width": 12,
155
- },
156
- undefined,
157
- ]
328
+ {
329
+ "flex": 1,
330
+ }
158
331
  }
159
- themeVariant="text-danger"
160
- />
332
+ >
333
+ <View
334
+ style={
335
+ [
336
+ {
337
+ "backgroundColor": "#cb300a",
338
+ "borderRadius": 8,
339
+ "height": 12,
340
+ "marginHorizontal": 8,
341
+ "width": 12,
342
+ },
343
+ undefined,
344
+ ]
345
+ }
346
+ themeVariant="text-danger"
347
+ />
348
+ <View
349
+ pointerEvents="box-none"
350
+ position="bottom"
351
+ style={
352
+ [
353
+ {
354
+ "bottom": 0,
355
+ "elevation": 9999,
356
+ "flexDirection": "column-reverse",
357
+ "left": 0,
358
+ "paddingHorizontal": 24,
359
+ "paddingVertical": 16,
360
+ "position": "absolute",
361
+ "right": 0,
362
+ "top": 0,
363
+ },
364
+ undefined,
365
+ ]
366
+ }
367
+ />
368
+ </View>
161
369
  `;
162
370
 
163
371
  exports[`StyledLoadingIndicator has text-primary style 1`] = `
164
372
  <View
165
373
  style={
166
- [
167
- {
168
- "backgroundColor": "#795e90",
169
- "borderRadius": 8,
170
- "height": 12,
171
- "marginBottom": 4,
172
- "marginHorizontal": 8,
173
- "marginTop": 4,
174
- "width": 12,
175
- },
176
- undefined,
177
- ]
374
+ {
375
+ "flex": 1,
376
+ }
178
377
  }
179
- themeVariant="text-primary"
180
- />
378
+ >
379
+ <View
380
+ style={
381
+ [
382
+ {
383
+ "backgroundColor": "#795e90",
384
+ "borderRadius": 8,
385
+ "height": 12,
386
+ "marginHorizontal": 8,
387
+ "width": 12,
388
+ },
389
+ undefined,
390
+ ]
391
+ }
392
+ themeVariant="text-primary"
393
+ />
394
+ <View
395
+ pointerEvents="box-none"
396
+ position="bottom"
397
+ style={
398
+ [
399
+ {
400
+ "bottom": 0,
401
+ "elevation": 9999,
402
+ "flexDirection": "column-reverse",
403
+ "left": 0,
404
+ "paddingHorizontal": 24,
405
+ "paddingVertical": 16,
406
+ "position": "absolute",
407
+ "right": 0,
408
+ "top": 0,
409
+ },
410
+ undefined,
411
+ ]
412
+ }
413
+ />
414
+ </View>
181
415
  `;
182
416
 
183
417
  exports[`StyledLoadingIndicator has text-secondary style 1`] = `
184
418
  <View
185
419
  style={
186
- [
187
- {
188
- "backgroundColor": "#795e90",
189
- "borderRadius": 8,
190
- "height": 12,
191
- "marginBottom": 4,
192
- "marginHorizontal": 8,
193
- "marginTop": 4,
194
- "width": 12,
195
- },
196
- undefined,
197
- ]
420
+ {
421
+ "flex": 1,
422
+ }
198
423
  }
199
- themeVariant="text-secondary"
200
- />
424
+ >
425
+ <View
426
+ style={
427
+ [
428
+ {
429
+ "backgroundColor": "#795e90",
430
+ "borderRadius": 8,
431
+ "height": 12,
432
+ "marginHorizontal": 8,
433
+ "width": 12,
434
+ },
435
+ undefined,
436
+ ]
437
+ }
438
+ themeVariant="text-secondary"
439
+ />
440
+ <View
441
+ pointerEvents="box-none"
442
+ position="bottom"
443
+ style={
444
+ [
445
+ {
446
+ "bottom": 0,
447
+ "elevation": 9999,
448
+ "flexDirection": "column-reverse",
449
+ "left": 0,
450
+ "paddingHorizontal": 24,
451
+ "paddingVertical": 16,
452
+ "position": "absolute",
453
+ "right": 0,
454
+ "top": 0,
455
+ },
456
+ undefined,
457
+ ]
458
+ }
459
+ />
460
+ </View>
201
461
  `;