@hero-design/rn 7.18.1 → 7.20.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 (399) hide show
  1. package/.eslintrc.json +6 -1
  2. package/.turbo/turbo-build.log +2 -2
  3. package/es/index.js +726 -336
  4. package/lib/index.js +727 -336
  5. package/package.json +4 -4
  6. package/src/components/Accordion/AccordionItem.tsx +5 -4
  7. package/src/components/Accordion/__tests__/index.spec.tsx +2 -1
  8. package/src/components/Accordion/index.tsx +3 -2
  9. package/src/components/Alert/StyledAlert.tsx +8 -7
  10. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +140 -19
  11. package/src/components/Alert/__tests__/index.spec.tsx +21 -0
  12. package/src/components/Alert/index.tsx +18 -9
  13. package/src/components/Avatar/StyledAvatar.tsx +2 -1
  14. package/src/components/Avatar/index.tsx +4 -3
  15. package/src/components/Badge/Status.tsx +4 -2
  16. package/src/components/Badge/index.tsx +2 -1
  17. package/src/components/BottomNavigation/__tests__/index.spec.tsx +4 -2
  18. package/src/components/BottomNavigation/index.tsx +6 -8
  19. package/src/components/BottomSheet/Footer.tsx +2 -1
  20. package/src/components/BottomSheet/Header.tsx +2 -1
  21. package/src/components/BottomSheet/StyledBottomSheet.tsx +2 -2
  22. package/src/components/BottomSheet/index.tsx +4 -8
  23. package/src/components/Box/StyledBox.tsx +54 -0
  24. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +605 -0
  25. package/src/components/Box/__tests__/helpers.spec.ts +14 -0
  26. package/src/components/Box/__tests__/index.spec.tsx +155 -0
  27. package/src/components/Box/config.ts +201 -0
  28. package/src/components/Box/helpers.ts +10 -0
  29. package/src/components/Box/index.tsx +13 -0
  30. package/src/components/Box/types.ts +38 -0
  31. package/src/components/Button/Button.tsx +5 -6
  32. package/src/components/Button/IconButton.tsx +4 -7
  33. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +5 -3
  34. package/src/components/Button/LoadingIndicator/index.tsx +2 -8
  35. package/src/components/Button/StyledButton.tsx +4 -5
  36. package/src/components/Button/UtilityButton/index.tsx +5 -4
  37. package/src/components/Button/index.tsx +3 -2
  38. package/src/components/Calendar/StyledCalendar.tsx +2 -1
  39. package/src/components/Calendar/__tests__/index.spec.tsx +13 -17
  40. package/src/components/Card/DataCard/StyledDataCard.tsx +8 -2
  41. package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +1 -0
  42. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +16 -0
  43. package/src/components/Card/DataCard/index.tsx +4 -3
  44. package/src/components/Card/StyledCard.tsx +12 -19
  45. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +147 -0
  46. package/src/components/Card/__tests__/index.spec.tsx +18 -0
  47. package/src/components/Card/index.tsx +9 -3
  48. package/src/components/Checkbox/StyledCheckbox.tsx +44 -14
  49. package/src/components/Checkbox/__tests__/StyledCheckbox.spec.tsx +28 -3
  50. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +95 -9
  51. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +337 -23
  52. package/src/components/Checkbox/__tests__/index.spec.tsx +38 -7
  53. package/src/components/Checkbox/index.tsx +35 -18
  54. package/src/components/Collapse/index.tsx +4 -8
  55. package/src/components/ContentNavigator/index.tsx +1 -1
  56. package/src/components/DatePicker/DatePickerAndroid.tsx +1 -1
  57. package/src/components/DatePicker/DatePickerIOS.tsx +1 -1
  58. package/src/components/DatePicker/StyledDatePicker.tsx +2 -1
  59. package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +1 -2
  60. package/src/components/DatePicker/index.tsx +1 -1
  61. package/src/components/DatePicker/types.ts +1 -1
  62. package/src/components/Divider/index.tsx +1 -1
  63. package/src/components/Drawer/DragableDrawer/helpers.ts +3 -4
  64. package/src/components/Drawer/DragableDrawer/index.tsx +3 -2
  65. package/src/components/Drawer/StyledDrawer.tsx +3 -2
  66. package/src/components/Drawer/index.tsx +2 -1
  67. package/src/components/Empty/index.tsx +1 -2
  68. package/src/components/FAB/ActionGroup/ActionItem.tsx +3 -2
  69. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +4 -3
  70. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +4 -2
  71. package/src/components/FAB/ActionGroup/index.tsx +11 -11
  72. package/src/components/FAB/AnimatedFABIcon.tsx +1 -1
  73. package/src/components/FAB/FAB.tsx +2 -2
  74. package/src/components/FAB/StyledFAB.tsx +4 -7
  75. package/src/components/Icon/AnimatedIcon.tsx +2 -1
  76. package/src/components/Icon/index.tsx +1 -1
  77. package/src/components/List/BasicListItem.tsx +3 -3
  78. package/src/components/List/ListItem.tsx +6 -3
  79. package/src/components/List/StyledListItem.tsx +2 -1
  80. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +13 -27
  81. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -0
  82. package/src/components/PinInput/PinCell.tsx +1 -1
  83. package/src/components/PinInput/index.tsx +3 -7
  84. package/src/components/Progress/ProgressBar.tsx +2 -1
  85. package/src/components/Progress/ProgressCircle.tsx +3 -9
  86. package/src/components/Progress/StyledProgressBar.tsx +3 -3
  87. package/src/components/Progress/StyledProgressCircle.tsx +3 -3
  88. package/src/components/Radio/Radio.tsx +20 -14
  89. package/src/components/Radio/RadioGroup.tsx +5 -3
  90. package/src/components/Radio/StyledRadio.tsx +12 -29
  91. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +84 -50
  92. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +124 -73
  93. package/src/components/RichTextEditor/EditorToolbar.tsx +4 -8
  94. package/src/components/RichTextEditor/RichTextEditor.tsx +5 -14
  95. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +2 -6
  96. package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +2 -6
  97. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +8 -15
  98. package/src/components/RichTextEditor/index.tsx +6 -6
  99. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  100. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  101. package/src/components/SectionHeading/index.tsx +5 -4
  102. package/src/components/Select/MultiSelect/Option.tsx +2 -1
  103. package/src/components/Select/MultiSelect/OptionList.tsx +3 -3
  104. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
  105. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +609 -589
  106. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +1 -1
  107. package/src/components/Select/MultiSelect/index.tsx +20 -16
  108. package/src/components/Select/SingleSelect/Option.tsx +2 -1
  109. package/src/components/Select/SingleSelect/OptionList.tsx +3 -3
  110. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
  111. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +606 -586
  112. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +1 -1
  113. package/src/components/Select/SingleSelect/index.tsx +20 -16
  114. package/src/components/Select/StyledOptionList.tsx +11 -9
  115. package/src/components/Select/helpers.tsx +1 -1
  116. package/src/components/Select/index.tsx +6 -4
  117. package/src/components/Select/types.ts +3 -3
  118. package/src/components/Spinner/AnimatedSpinner.tsx +7 -7
  119. package/src/components/Spinner/StyledSpinner.tsx +26 -20
  120. package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +1 -1
  121. package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +32 -16
  122. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +14 -12
  123. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +273 -31
  124. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +14 -12
  125. package/src/components/Spinner/index.tsx +13 -5
  126. package/src/components/Switch/StyledSwitch.tsx +10 -26
  127. package/src/components/Switch/__tests__/StyledSwitch.spec.tsx +25 -0
  128. package/src/components/Switch/__tests__/__snapshots__/{StyledHeading.spec.tsx.snap → StyledSwitch.spec.tsx.snap} +45 -18
  129. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +26 -52
  130. package/src/components/Switch/index.tsx +23 -20
  131. package/src/components/Tabs/ScrollableTabs.tsx +10 -5
  132. package/src/components/Tabs/StyledScrollableTabs.tsx +6 -5
  133. package/src/components/Tabs/StyledTabs.tsx +6 -0
  134. package/src/components/Tabs/TabWithBadge.tsx +68 -0
  135. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +17 -2
  136. package/src/components/Tabs/__tests__/TabWithBadge.spec.tsx +48 -0
  137. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +205 -43
  138. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +165 -0
  139. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +135 -34
  140. package/src/components/Tabs/__tests__/index.spec.tsx +16 -2
  141. package/src/components/Tabs/index.tsx +17 -16
  142. package/src/components/Tag/StyledTag.tsx +1 -11
  143. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +4 -4
  144. package/src/components/Tag/index.tsx +3 -3
  145. package/src/components/TextInput/__tests__/index.spec.tsx +10 -14
  146. package/src/components/TextInput/index.tsx +5 -5
  147. package/src/components/TimePicker/StyledTimePicker.tsx +2 -1
  148. package/src/components/TimePicker/TimePickerAndroid.tsx +1 -1
  149. package/src/components/TimePicker/TimePickerIOS.tsx +1 -1
  150. package/src/components/TimePicker/__tests__/TimePickerIOS.spec.tsx +1 -2
  151. package/src/components/TimePicker/index.tsx +1 -1
  152. package/src/components/TimePicker/types.ts +1 -1
  153. package/src/components/Toast/StyledToast.tsx +16 -15
  154. package/src/components/Toast/Toast.tsx +36 -10
  155. package/src/components/Toast/ToastContainer.tsx +2 -2
  156. package/src/components/Toast/ToastContext.ts +1 -1
  157. package/src/components/Toast/ToastProvider.tsx +20 -19
  158. package/src/components/Toast/__tests__/Toast.spec.tsx +17 -0
  159. package/src/components/Toast/__tests__/ToastContainer.spec.tsx +1 -1
  160. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +299 -19
  161. package/src/components/Toast/types.ts +18 -4
  162. package/src/components/Toolbar/StyledToolbar.tsx +2 -1
  163. package/src/components/Toolbar/ToolbarGroup.tsx +2 -1
  164. package/src/components/Toolbar/ToolbarItem.tsx +2 -1
  165. package/src/components/Toolbar/index.tsx +2 -1
  166. package/src/components/Typography/Text/StyledText.tsx +7 -1
  167. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +1 -0
  168. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +22 -0
  169. package/src/components/Typography/Text/index.tsx +10 -3
  170. package/src/index.ts +2 -0
  171. package/src/testHelpers/renderWithTheme.tsx +2 -1
  172. package/src/theme/ThemeProvider.ts +1 -1
  173. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +100 -49
  174. package/src/theme/components/.eslintrc.json +10 -0
  175. package/src/theme/components/accordion.ts +1 -1
  176. package/src/theme/components/alert.ts +6 -2
  177. package/src/theme/components/avatar.ts +3 -1
  178. package/src/theme/components/badge.ts +1 -1
  179. package/src/theme/components/bottomNavigation.ts +1 -1
  180. package/src/theme/components/bottomSheet.ts +1 -1
  181. package/src/theme/components/button.ts +1 -1
  182. package/src/theme/components/calendar.ts +1 -1
  183. package/src/theme/components/card.ts +7 -8
  184. package/src/theme/components/checkbox.ts +12 -8
  185. package/src/theme/components/contentNavigator.ts +1 -1
  186. package/src/theme/components/divider.ts +1 -1
  187. package/src/theme/components/drawer.ts +1 -1
  188. package/src/theme/components/empty.ts +1 -1
  189. package/src/theme/components/fab.ts +1 -1
  190. package/src/theme/components/icon.ts +1 -1
  191. package/src/theme/components/list.ts +5 -4
  192. package/src/theme/components/pinInput.ts +1 -1
  193. package/src/theme/components/progress.ts +1 -1
  194. package/src/theme/components/radio.ts +3 -11
  195. package/src/theme/components/richTextEditor.ts +1 -1
  196. package/src/theme/components/sectionHeading.ts +2 -2
  197. package/src/theme/components/select.ts +1 -1
  198. package/src/theme/components/spinner.ts +20 -8
  199. package/src/theme/components/switch.ts +7 -8
  200. package/src/theme/components/tabs.ts +4 -3
  201. package/src/theme/components/tag.ts +14 -14
  202. package/src/theme/components/textInput.ts +1 -1
  203. package/src/theme/components/toast.ts +18 -4
  204. package/src/theme/components/toolbar.ts +1 -1
  205. package/src/theme/components/typography.ts +3 -1
  206. package/src/theme/getTheme.ts +4 -11
  207. package/src/theme/global/borders.ts +2 -1
  208. package/src/theme/global/colors/swag.ts +25 -3
  209. package/src/theme/global/colors/types.ts +23 -0
  210. package/src/theme/global/colors/work.ts +6 -2
  211. package/src/theme/global/index.ts +6 -11
  212. package/src/theme/global/scale.ts +2 -1
  213. package/src/theme/global/space.ts +2 -1
  214. package/src/theme/global/typography.ts +2 -8
  215. package/src/theme/index.ts +5 -2
  216. package/src/types.ts +9 -10
  217. package/testUtils/setup.tsx +2 -0
  218. package/tsconfig.json +5 -21
  219. package/types/components/Accordion/AccordionItem.d.ts +3 -3
  220. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  221. package/types/components/Accordion/index.d.ts +3 -2
  222. package/types/components/Alert/StyledAlert.d.ts +18 -17
  223. package/types/components/Alert/index.d.ts +4 -4
  224. package/types/components/Avatar/StyledAvatar.d.ts +16 -16
  225. package/types/components/Avatar/index.d.ts +3 -3
  226. package/types/components/Badge/Status.d.ts +2 -2
  227. package/types/components/Badge/StyledBadge.d.ts +7 -7
  228. package/types/components/Badge/index.d.ts +2 -1
  229. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  230. package/types/components/BottomNavigation/index.d.ts +3 -3
  231. package/types/components/BottomSheet/Footer.d.ts +1 -1
  232. package/types/components/BottomSheet/Header.d.ts +2 -2
  233. package/types/components/BottomSheet/StyledBottomSheet.d.ts +21 -20
  234. package/types/components/BottomSheet/index.d.ts +2 -2
  235. package/types/components/Box/StyledBox.d.ts +15 -0
  236. package/types/components/{Radio/__tests__/StyledRadio.spec.d.ts → Box/__tests__/helpers.spec.d.ts} +0 -0
  237. package/types/components/{Switch/__tests__/StyledHeading.spec.d.ts → Box/__tests__/index.spec.d.ts} +0 -0
  238. package/types/components/Box/config.d.ts +170 -0
  239. package/types/components/Box/helpers.d.ts +1 -0
  240. package/types/components/Box/index.d.ts +5 -0
  241. package/types/components/Box/types.d.ts +31 -0
  242. package/types/components/Button/Button.d.ts +4 -4
  243. package/types/components/Button/IconButton.d.ts +2 -2
  244. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +10 -9
  245. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  246. package/types/components/Button/StyledButton.d.ts +19 -18
  247. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  248. package/types/components/Button/UtilityButton/index.d.ts +3 -3
  249. package/types/components/Button/index.d.ts +2 -2
  250. package/types/components/Calendar/StyledCalendar.d.ts +27 -26
  251. package/types/components/Calendar/helpers.d.ts +2 -2
  252. package/types/components/Card/DataCard/StyledDataCard.d.ts +7 -7
  253. package/types/components/Card/DataCard/index.d.ts +3 -3
  254. package/types/components/Card/StyledCard.d.ts +7 -6
  255. package/types/components/Card/index.d.ts +7 -3
  256. package/types/components/Checkbox/StyledCheckbox.d.ts +24 -6
  257. package/types/components/Checkbox/index.d.ts +11 -3
  258. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  259. package/types/components/Collapse/index.d.ts +2 -2
  260. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  261. package/types/components/ContentNavigator/index.d.ts +1 -1
  262. package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
  263. package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
  264. package/types/components/DatePicker/StyledDatePicker.d.ts +5 -4
  265. package/types/components/DatePicker/index.d.ts +1 -1
  266. package/types/components/DatePicker/types.d.ts +1 -1
  267. package/types/components/Divider/StyledDivider.d.ts +5 -5
  268. package/types/components/Divider/index.d.ts +1 -1
  269. package/types/components/Drawer/DragableDrawer/index.d.ts +1 -1
  270. package/types/components/Drawer/StyledDrawer.d.ts +21 -20
  271. package/types/components/Drawer/index.d.ts +1 -1
  272. package/types/components/Empty/StyledEmpty.d.ts +12 -12
  273. package/types/components/Empty/index.d.ts +1 -1
  274. package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -2
  275. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +14 -13
  276. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +10 -9
  277. package/types/components/FAB/ActionGroup/index.d.ts +3 -3
  278. package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
  279. package/types/components/FAB/FAB.d.ts +2 -2
  280. package/types/components/FAB/StyledFAB.d.ts +11 -10
  281. package/types/components/Icon/AnimatedIcon.d.ts +1 -1
  282. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  283. package/types/components/Icon/index.d.ts +1 -1
  284. package/types/components/List/BasicListItem.d.ts +2 -2
  285. package/types/components/List/ListItem.d.ts +4 -3
  286. package/types/components/List/StyledBasicListItem.d.ts +14 -14
  287. package/types/components/List/StyledListItem.d.ts +23 -23
  288. package/types/components/PinInput/PinCell.d.ts +1 -1
  289. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  290. package/types/components/PinInput/index.d.ts +2 -2
  291. package/types/components/Progress/ProgressBar.d.ts +1 -1
  292. package/types/components/Progress/ProgressCircle.d.ts +1 -1
  293. package/types/components/Progress/StyledProgressBar.d.ts +8 -7
  294. package/types/components/Progress/StyledProgressCircle.d.ts +21 -20
  295. package/types/components/Radio/Radio.d.ts +2 -2
  296. package/types/components/Radio/RadioGroup.d.ts +3 -3
  297. package/types/components/Radio/StyledRadio.d.ts +11 -21
  298. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  299. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  300. package/types/components/RichTextEditor/RichTextEditor.d.ts +3 -2
  301. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  302. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  303. package/types/components/RichTextEditor/index.d.ts +5 -4
  304. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  305. package/types/components/SectionHeading/index.d.ts +3 -3
  306. package/types/components/Select/MultiSelect/Option.d.ts +2 -2
  307. package/types/components/Select/MultiSelect/OptionList.d.ts +2 -2
  308. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  309. package/types/components/Select/SingleSelect/Option.d.ts +2 -2
  310. package/types/components/Select/SingleSelect/OptionList.d.ts +2 -2
  311. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  312. package/types/components/Select/StyledOptionList.d.ts +4 -4
  313. package/types/components/Select/StyledSelect.d.ts +11 -11
  314. package/types/components/Select/helpers.d.ts +2 -2
  315. package/types/components/Select/index.d.ts +4 -3
  316. package/types/components/Select/types.d.ts +3 -3
  317. package/types/components/Spinner/AnimatedSpinner.d.ts +3 -1
  318. package/types/components/Spinner/StyledSpinner.d.ts +16 -13
  319. package/types/components/Spinner/index.d.ts +7 -3
  320. package/types/components/Switch/StyledSwitch.d.ts +8 -23
  321. package/types/components/Switch/__tests__/StyledSwitch.spec.d.ts +1 -0
  322. package/types/components/Switch/index.d.ts +3 -2
  323. package/types/components/Tabs/ScrollableTabs.d.ts +1 -1
  324. package/types/components/Tabs/StyledScrollableTabs.d.ts +24 -22
  325. package/types/components/Tabs/StyledTabs.d.ts +26 -20
  326. package/types/components/Tabs/TabWithBadge.d.ts +17 -0
  327. package/types/components/Tabs/__tests__/TabWithBadge.spec.d.ts +1 -0
  328. package/types/components/Tabs/index.d.ts +4 -2
  329. package/types/components/Tag/StyledTag.d.ts +6 -6
  330. package/types/components/Tag/index.d.ts +2 -2
  331. package/types/components/TextInput/StyledTextInput.d.ts +44 -44
  332. package/types/components/TextInput/index.d.ts +8 -8
  333. package/types/components/TimePicker/StyledTimePicker.d.ts +5 -4
  334. package/types/components/TimePicker/TimePickerAndroid.d.ts +1 -1
  335. package/types/components/TimePicker/TimePickerIOS.d.ts +1 -1
  336. package/types/components/TimePicker/index.d.ts +1 -1
  337. package/types/components/TimePicker/types.d.ts +1 -1
  338. package/types/components/Toast/StyledToast.d.ts +21 -19
  339. package/types/components/Toast/Toast.d.ts +1 -1
  340. package/types/components/Toast/ToastContainer.d.ts +2 -2
  341. package/types/components/Toast/ToastContext.d.ts +1 -1
  342. package/types/components/Toast/ToastProvider.d.ts +2 -2
  343. package/types/components/Toast/types.d.ts +5 -4
  344. package/types/components/Toolbar/StyledToolbar.d.ts +11 -10
  345. package/types/components/Toolbar/ToolbarGroup.d.ts +1 -1
  346. package/types/components/Toolbar/ToolbarItem.d.ts +1 -1
  347. package/types/components/Toolbar/index.d.ts +1 -1
  348. package/types/components/Typography/Text/StyledText.d.ts +4 -4
  349. package/types/components/Typography/Text/index.d.ts +3 -3
  350. package/types/index.d.ts +2 -1
  351. package/types/testHelpers/renderWithTheme.d.ts +2 -2
  352. package/types/theme/ThemeProvider.d.ts +1 -1
  353. package/types/theme/ThemeSwitcher.d.ts +1 -1
  354. package/types/theme/components/accordion.d.ts +1 -1
  355. package/types/theme/components/alert.d.ts +6 -2
  356. package/types/theme/components/avatar.d.ts +3 -1
  357. package/types/theme/components/badge.d.ts +1 -1
  358. package/types/theme/components/bottomNavigation.d.ts +1 -1
  359. package/types/theme/components/bottomSheet.d.ts +1 -1
  360. package/types/theme/components/button.d.ts +1 -1
  361. package/types/theme/components/calendar.d.ts +1 -1
  362. package/types/theme/components/card.d.ts +7 -8
  363. package/types/theme/components/checkbox.d.ts +10 -7
  364. package/types/theme/components/contentNavigator.d.ts +1 -1
  365. package/types/theme/components/divider.d.ts +1 -1
  366. package/types/theme/components/drawer.d.ts +1 -1
  367. package/types/theme/components/empty.d.ts +1 -1
  368. package/types/theme/components/fab.d.ts +1 -1
  369. package/types/theme/components/icon.d.ts +1 -1
  370. package/types/theme/components/list.d.ts +8 -7
  371. package/types/theme/components/pinInput.d.ts +1 -1
  372. package/types/theme/components/progress.d.ts +1 -1
  373. package/types/theme/components/radio.d.ts +1 -8
  374. package/types/theme/components/richTextEditor.d.ts +1 -1
  375. package/types/theme/components/sectionHeading.d.ts +1 -1
  376. package/types/theme/components/select.d.ts +1 -1
  377. package/types/theme/components/spinner.d.ts +18 -6
  378. package/types/theme/components/switch.d.ts +7 -6
  379. package/types/theme/components/tabs.d.ts +2 -1
  380. package/types/theme/components/tag.d.ts +3 -3
  381. package/types/theme/components/textInput.d.ts +1 -1
  382. package/types/theme/components/toast.d.ts +19 -3
  383. package/types/theme/components/toolbar.d.ts +1 -1
  384. package/types/theme/components/typography.d.ts +3 -1
  385. package/types/theme/getTheme.d.ts +2 -2
  386. package/types/theme/global/borders.d.ts +2 -1
  387. package/types/theme/global/colors/swag.d.ts +1 -1
  388. package/types/theme/global/colors/types.d.ts +17 -0
  389. package/types/theme/global/colors/work.d.ts +1 -1
  390. package/types/theme/global/index.d.ts +22 -3
  391. package/types/theme/global/scale.d.ts +2 -1
  392. package/types/theme/global/space.d.ts +2 -1
  393. package/types/theme/global/typography.d.ts +2 -1
  394. package/types/theme/index.d.ts +4 -2
  395. package/types/types.d.ts +9 -8
  396. package/types/utils/hooks.d.ts +1 -1
  397. package/src/components/Radio/__tests__/StyledRadio.spec.tsx +0 -43
  398. package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +0 -124
  399. package/src/components/Switch/__tests__/StyledHeading.spec.tsx +0 -42
@@ -0,0 +1,170 @@
1
+ declare const config: {
2
+ readonly borderWidth: {
3
+ readonly property: "borderWidth";
4
+ readonly scale: "borderWidths";
5
+ };
6
+ readonly borderBottomWidth: {
7
+ readonly property: "borderBottomWidth";
8
+ readonly scale: "borderWidths";
9
+ };
10
+ readonly borderTopWidth: {
11
+ readonly property: "borderTopWidth";
12
+ readonly scale: "borderWidths";
13
+ };
14
+ readonly borderLeftWidth: {
15
+ readonly property: "borderLeftWidth";
16
+ readonly scale: "borderWidths";
17
+ };
18
+ readonly borderRightWidth: {
19
+ readonly property: "borderRightWidth";
20
+ readonly scale: "borderWidths";
21
+ };
22
+ readonly borderBottomEndRadius: {
23
+ readonly property: "borderBottomEndRadius";
24
+ readonly scale: "radii";
25
+ };
26
+ readonly borderBottomLeftRadius: {
27
+ readonly property: "borderBottomLeftRadius";
28
+ readonly scale: "radii";
29
+ };
30
+ readonly borderBottomRightRadius: {
31
+ readonly property: "borderBottomRightRadius";
32
+ readonly scale: "radii";
33
+ };
34
+ readonly borderBottomStartRadius: {
35
+ readonly property: "borderBottomStartRadius";
36
+ readonly scale: "radii";
37
+ };
38
+ readonly borderTopEndRadius: {
39
+ readonly property: "borderTopEndRadius";
40
+ readonly scale: "radii";
41
+ };
42
+ readonly borderTopLeftRadius: {
43
+ readonly property: "borderTopLeftRadius";
44
+ readonly scale: "radii";
45
+ };
46
+ readonly borderTopRightRadius: {
47
+ readonly property: "borderTopRightRadius";
48
+ readonly scale: "radii";
49
+ };
50
+ readonly borderTopStartRadius: {
51
+ readonly property: "borderTopStartRadius";
52
+ readonly scale: "radii";
53
+ };
54
+ readonly borderRadius: {
55
+ readonly property: "borderRadius";
56
+ readonly scale: "radii";
57
+ };
58
+ readonly margin: {
59
+ readonly property: "margin";
60
+ readonly scale: "space";
61
+ };
62
+ readonly marginBottom: {
63
+ readonly property: "marginBottom";
64
+ readonly scale: "space";
65
+ };
66
+ readonly marginEnd: {
67
+ readonly property: "marginEnd";
68
+ readonly scale: "space";
69
+ };
70
+ readonly marginHorizontal: {
71
+ readonly property: "marginHorizontal";
72
+ readonly scale: "space";
73
+ };
74
+ readonly marginLeft: {
75
+ readonly property: "marginLeft";
76
+ readonly scale: "space";
77
+ };
78
+ readonly marginRight: {
79
+ readonly property: "marginRight";
80
+ readonly scale: "space";
81
+ };
82
+ readonly marginStart: {
83
+ readonly property: "marginStart";
84
+ readonly scale: "space";
85
+ };
86
+ readonly marginTop: {
87
+ readonly property: "marginTop";
88
+ readonly scale: "space";
89
+ };
90
+ readonly marginVertical: {
91
+ readonly property: "marginVertical";
92
+ readonly scale: "space";
93
+ };
94
+ readonly padding: {
95
+ readonly property: "padding";
96
+ readonly scale: "space";
97
+ };
98
+ readonly paddingBottom: {
99
+ readonly property: "paddingBottom";
100
+ readonly scale: "space";
101
+ };
102
+ readonly paddingEnd: {
103
+ readonly property: "paddingEnd";
104
+ readonly scale: "space";
105
+ };
106
+ readonly paddingHorizontal: {
107
+ readonly property: "paddingHorizontal";
108
+ readonly scale: "space";
109
+ };
110
+ readonly paddingLeft: {
111
+ readonly property: "paddingLeft";
112
+ readonly scale: "space";
113
+ };
114
+ readonly paddingRight: {
115
+ readonly property: "paddingRight";
116
+ readonly scale: "space";
117
+ };
118
+ readonly paddingStart: {
119
+ readonly property: "paddingStart";
120
+ readonly scale: "space";
121
+ };
122
+ readonly paddingTop: {
123
+ readonly property: "paddingTop";
124
+ readonly scale: "space";
125
+ };
126
+ readonly paddingVertical: {
127
+ readonly property: "paddingVertical";
128
+ readonly scale: "space";
129
+ };
130
+ readonly backgroundColor: {
131
+ readonly property: "backgroundColor";
132
+ readonly scale: "colors";
133
+ };
134
+ readonly bgColor: {
135
+ readonly property: "backgroundColor";
136
+ readonly scale: "colors";
137
+ };
138
+ readonly borderColor: {
139
+ readonly property: "borderColor";
140
+ readonly scale: "colors";
141
+ };
142
+ readonly borderTopColor: {
143
+ readonly property: "borderTopColor";
144
+ readonly scale: "colors";
145
+ };
146
+ readonly borderBottomColor: {
147
+ readonly property: "borderBottomColor";
148
+ readonly scale: "colors";
149
+ };
150
+ readonly borderStartColor: {
151
+ readonly property: "borderStartColor";
152
+ readonly scale: "colors";
153
+ };
154
+ readonly borderEndColor: {
155
+ readonly property: "borderEndColor";
156
+ readonly scale: "colors";
157
+ };
158
+ readonly borderLeftColor: {
159
+ readonly property: "borderLeftColor";
160
+ readonly scale: "colors";
161
+ };
162
+ readonly borderRightColor: {
163
+ readonly property: "borderRightColor";
164
+ readonly scale: "colors";
165
+ };
166
+ };
167
+ export declare const flexPropsKey: readonly ["alignContent", "alignItems", "alignSelf", "display", "flex", "flexBasis", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "justifyContent"];
168
+ export declare type ConfigType = typeof config;
169
+ export declare type FlexPropsKeyType = typeof flexPropsKey[number];
170
+ export default config;
@@ -0,0 +1 @@
1
+ export declare const pick: (keys: Array<string>, props: Record<string, any>) => {};
@@ -0,0 +1,5 @@
1
+ import type { BoxViewProps, FlexStyleProps, StyleProps } from './types';
2
+ export interface BoxProps extends StyleProps, FlexStyleProps, BoxViewProps {
3
+ }
4
+ declare const Box: ({ children, style, testID, ...otherProps }: BoxProps) => JSX.Element;
5
+ export default Box;
@@ -0,0 +1,31 @@
1
+ import { StyleProp, ViewStyle, ViewProps } from 'react-native';
2
+ import { SystemPalette } from '../../theme/global';
3
+ import { BorderWidths, Radii } from '../../theme/global/borders';
4
+ import { Space } from '../../theme/global/space';
5
+ import { ConfigType, FlexPropsKeyType } from './config';
6
+ export interface ThemeScale {
7
+ colors: keyof SystemPalette;
8
+ space: keyof Space;
9
+ radii: keyof Radii;
10
+ borderWidths: keyof BorderWidths;
11
+ }
12
+ declare type ConfigKeyType = keyof ConfigType;
13
+ export declare type StyleProps = {
14
+ [key in ConfigKeyType]?: ThemeScale[ConfigType[key]['scale']];
15
+ };
16
+ export declare type FlexStyleProps = Pick<Omit<ViewStyle, keyof StyleProps>, FlexPropsKeyType>;
17
+ export interface BoxViewProps extends ViewProps {
18
+ /**
19
+ * Box's content.
20
+ */
21
+ children?: React.ReactNode;
22
+ /**
23
+ * Addtional styles.
24
+ */
25
+ style?: StyleProp<ViewStyle>;
26
+ /**
27
+ * Testing id of the component.
28
+ */
29
+ testID?: string;
30
+ }
31
+ export {};
@@ -1,7 +1,7 @@
1
- import { ReactChild } from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- import { IconName } from '../Icon';
4
- import { Intent, ThemeVariant } from './StyledButton';
1
+ import type { ReactChild } from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
3
+ import type { IconName } from '../Icon';
4
+ import type { Intent, ThemeVariant } from './StyledButton';
5
5
  export interface ButtonProps {
6
6
  /**
7
7
  * Helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.
@@ -1,5 +1,5 @@
1
- import { StyleProp, ViewStyle, TouchableOpacityProps } from 'react-native';
2
- import { IconProps, IconName } from '../Icon';
1
+ import type { StyleProp, ViewStyle, TouchableOpacityProps } from 'react-native';
2
+ import type { IconProps, IconName } from '../Icon';
3
3
  export interface IconButtonProps {
4
4
  /**
5
5
  * Set how far you can touch from the button.
@@ -1,19 +1,20 @@
1
- import { View, ViewProps } from 'react-native';
2
- import { Theme } from '@emotion/react';
1
+ import { View } from 'react-native';
2
+ import type { ViewProps } from 'react-native';
3
+ import type { Theme } from '@emotion/react';
3
4
  declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
4
5
  declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
5
- theme?: Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
6
+ theme?: Theme;
7
+ as?: import("react").ElementType<any>;
7
8
  }, {}, {
8
- ref?: import("react").Ref<View> | undefined;
9
+ ref?: import("react").Ref<View>;
9
10
  }>;
10
11
  declare const StyledLoadingDot: import("@emotion/native").StyledComponent<ViewProps & {
11
- theme?: Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ theme?: Theme;
13
+ as?: import("react").ElementType<any>;
13
14
  } & {
14
- size?: number | undefined;
15
+ size?: number;
15
16
  themeVariant: ThemeVariant;
16
17
  }, {}, {
17
- ref?: import("react").Ref<View> | undefined;
18
+ ref?: import("react").Ref<View>;
18
19
  }>;
19
20
  export { StyledLoadingIndicatorWrapper, StyledLoadingDot };
@@ -1,4 +1,4 @@
1
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
1
+ import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
2
2
  declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
3
3
  interface LoadingIndicatorProps extends ViewProps {
4
4
  /**
@@ -1,39 +1,40 @@
1
1
  import { TouchableHighlight, View } from 'react-native';
2
- import { Theme } from '@emotion/react';
2
+ import type { Theme } from '@emotion/react';
3
3
  declare type Intent = 'primary' | 'secondary' | 'danger';
4
4
  declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
5
5
  declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
6
- theme?: Theme | undefined;
7
- as?: import("react").ElementType<any> | undefined;
6
+ theme?: Theme;
7
+ as?: import("react").ElementType<any>;
8
8
  } & {
9
- disabled?: boolean | undefined;
10
- pressed?: boolean | undefined;
9
+ disabled?: boolean;
10
+ pressed?: boolean;
11
11
  themeVariant: ThemeVariant;
12
12
  }, {}, {
13
- ref?: import("react").Ref<TouchableHighlight> | undefined;
13
+ ref?: import("react").Ref<TouchableHighlight>;
14
14
  }>;
15
15
  declare const StyledButtonText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
16
- theme?: Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
16
+ theme?: Theme;
17
+ as?: import("react").ElementType<any>;
18
18
  } & {
19
- disabled?: boolean | undefined;
20
- pressed?: boolean | undefined;
19
+ disabled?: boolean;
20
+ pressed?: boolean;
21
21
  themeVariant: ThemeVariant;
22
22
  }, {}, {}>;
23
23
  declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
24
- theme?: Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
24
+ theme?: Theme;
25
+ as?: import("react").ElementType<any>;
26
26
  } & {
27
27
  themePosition: 'left' | 'right';
28
28
  }, {}, {
29
- ref?: import("react").Ref<View> | undefined;
29
+ ref?: import("react").Ref<View>;
30
30
  }>;
31
31
  declare const StyledButtonIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
32
- theme?: Theme | undefined;
33
- as?: import("react").ElementType<any> | undefined;
32
+ theme?: Theme;
33
+ as?: import("react").ElementType<any>;
34
34
  } & {
35
- disabled?: boolean | undefined;
36
- pressed?: boolean | undefined;
35
+ disabled?: boolean;
36
+ pressed?: boolean;
37
37
  themeVariant: ThemeVariant;
38
38
  }, {}, {}>;
39
- export { StyledButtonContainer, StyledButtonText, StyledButtonIconWrapper, StyledButtonIcon, Intent, ThemeVariant, };
39
+ export { StyledButtonContainer, StyledButtonText, StyledButtonIconWrapper, StyledButtonIcon, };
40
+ export type { Intent, ThemeVariant };
@@ -1,17 +1,17 @@
1
1
  import { View, TouchableOpacity } from 'react-native';
2
2
  export declare const ButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: import("react").ElementType<any>;
5
5
  }, {}, {
6
- ref?: import("react").Ref<TouchableOpacity> | undefined;
6
+ ref?: import("react").Ref<TouchableOpacity>;
7
7
  }>;
8
8
  export declare const IconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
- theme?: import("@emotion/react").Theme | undefined;
10
- as?: import("react").ElementType<any> | undefined;
9
+ theme?: import("@emotion/react").Theme;
10
+ as?: import("react").ElementType<any>;
11
11
  }, {}, {
12
- ref?: import("react").Ref<View> | undefined;
12
+ ref?: import("react").Ref<View>;
13
13
  }>;
14
14
  export declare const ButtonText: import("@emotion/native").StyledComponent<import("../../Typography/Text").TextProps & {
15
- theme?: import("@emotion/react").Theme | undefined;
16
- as?: import("react").ElementType<any> | undefined;
15
+ theme?: import("@emotion/react").Theme;
16
+ as?: import("react").ElementType<any>;
17
17
  }, {}, {}>;
@@ -1,6 +1,6 @@
1
- import { ReactChild } from 'react';
2
- import { ViewProps } from 'react-native';
3
- import { IconName } from '../../Icon';
1
+ import type { ReactChild } from 'react';
2
+ import type { ViewProps } from 'react-native';
3
+ import type { IconName } from '../../Icon';
4
4
  export interface UtilityButtonProps extends ViewProps {
5
5
  /**
6
6
  * Places an icon within the button, before the button's text
@@ -1,7 +1,7 @@
1
- import { FunctionComponent } from 'react';
2
- import { ButtonProps } from './Button';
1
+ import type { FunctionComponent } from 'react';
3
2
  import IconButton from './IconButton';
4
3
  import UtilityButton from './UtilityButton';
4
+ import type { ButtonProps } from './Button';
5
5
  interface CompoundButtonProps extends FunctionComponent<ButtonProps> {
6
6
  Icon: typeof IconButton;
7
7
  Utility: typeof UtilityButton;
@@ -1,54 +1,55 @@
1
- import { TouchableOpacity, View, ViewProps } from 'react-native';
1
+ import { TouchableOpacity, View } from 'react-native';
2
+ import type { ViewProps } from 'react-native';
2
3
  declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
4
+ theme?: import("@emotion/react").Theme;
5
+ as?: import("react").ElementType<any>;
5
6
  }, {}, {
6
- ref?: import("react").Ref<View> | undefined;
7
+ ref?: import("react").Ref<View>;
7
8
  }>;
8
9
  declare const StyledCalendarHeader: import("@emotion/native").StyledComponent<ViewProps & {
9
- theme?: import("@emotion/react").Theme | undefined;
10
- as?: import("react").ElementType<any> | undefined;
10
+ theme?: import("@emotion/react").Theme;
11
+ as?: import("react").ElementType<any>;
11
12
  }, {}, {
12
- ref?: import("react").Ref<View> | undefined;
13
+ ref?: import("react").Ref<View>;
13
14
  }>;
14
15
  declare const StyledCalendarDayNameCell: import("@emotion/native").StyledComponent<ViewProps & {
15
- theme?: import("@emotion/react").Theme | undefined;
16
- as?: import("react").ElementType<any> | undefined;
16
+ theme?: import("@emotion/react").Theme;
17
+ as?: import("react").ElementType<any>;
17
18
  }, {}, {
18
- ref?: import("react").Ref<View> | undefined;
19
+ ref?: import("react").Ref<View>;
19
20
  }>;
20
21
  declare const StyledCalendarCell: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
21
- theme?: import("@emotion/react").Theme | undefined;
22
- as?: import("react").ElementType<any> | undefined;
22
+ theme?: import("@emotion/react").Theme;
23
+ as?: import("react").ElementType<any>;
23
24
  } & {
24
- variant?: "selected" | "default" | "current" | undefined;
25
+ variant?: 'default' | 'current' | 'selected';
25
26
  }, {}, {
26
- ref?: import("react").Ref<TouchableOpacity> | undefined;
27
+ ref?: import("react").Ref<TouchableOpacity>;
27
28
  }>;
28
29
  declare const StyledCalendarRow: import("@emotion/native").StyledComponent<ViewProps & {
29
- theme?: import("@emotion/react").Theme | undefined;
30
- as?: import("react").ElementType<any> | undefined;
30
+ theme?: import("@emotion/react").Theme;
31
+ as?: import("react").ElementType<any>;
31
32
  }, {}, {
32
- ref?: import("react").Ref<View> | undefined;
33
+ ref?: import("react").Ref<View>;
33
34
  }>;
34
35
  declare const StyledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
35
- theme?: import("@emotion/react").Theme | undefined;
36
- as?: import("react").ElementType<any> | undefined;
36
+ theme?: import("@emotion/react").Theme;
37
+ as?: import("react").ElementType<any>;
37
38
  }, {}, {
38
- ref?: import("react").Ref<View> | undefined;
39
+ ref?: import("react").Ref<View>;
39
40
  }>;
40
41
  declare const StyledDisabledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
41
- theme?: import("@emotion/react").Theme | undefined;
42
- as?: import("react").ElementType<any> | undefined;
42
+ theme?: import("@emotion/react").Theme;
43
+ as?: import("react").ElementType<any>;
43
44
  }, {}, {
44
- ref?: import("react").Ref<View> | undefined;
45
+ ref?: import("react").Ref<View>;
45
46
  }>;
46
47
  declare const StyledMark: import("@emotion/native").StyledComponent<ViewProps & {
47
- theme?: import("@emotion/react").Theme | undefined;
48
- as?: import("react").ElementType<any> | undefined;
48
+ theme?: import("@emotion/react").Theme;
49
+ as?: import("react").ElementType<any>;
49
50
  } & {
50
51
  variant: 'primary' | 'inverted';
51
52
  }, {}, {
52
- ref?: import("react").Ref<View> | undefined;
53
+ ref?: import("react").Ref<View>;
53
54
  }>;
54
55
  export { StyledContainer, StyledCalendarHeader, StyledCalendarRow, StyledCalendarRowItem, StyledDisabledCalendarRowItem, StyledCalendarDayNameCell, StyledCalendarCell, StyledMark, };
@@ -1,3 +1,3 @@
1
1
  export declare const initArray: <T>(length: number, func: (value: number) => T) => T[];
2
- export declare const isEqDate: (dateA?: Date | undefined, dateB?: Date | undefined) => boolean;
3
- export declare const getValidDate: (date: Date, minDate?: Date | undefined, maxDate?: Date | undefined) => Date | undefined;
2
+ export declare const isEqDate: (dateA?: Date, dateB?: Date) => boolean;
3
+ export declare const getValidDate: (date: Date, minDate?: Date, maxDate?: Date) => Date | undefined;
@@ -1,16 +1,16 @@
1
1
  import { View } from 'react-native';
2
2
  declare const StyledDataCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: import("react").ElementType<any>;
5
5
  }, {}, {
6
- ref?: import("react").Ref<View> | undefined;
6
+ ref?: import("react").Ref<View>;
7
7
  }>;
8
8
  declare const Indicator: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
- theme?: import("@emotion/react").Theme | undefined;
10
- as?: import("react").ElementType<any> | undefined;
9
+ theme?: import("@emotion/react").Theme;
10
+ as?: import("react").ElementType<any>;
11
11
  } & {
12
- themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived';
12
+ themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived' | 'primary';
13
13
  }, {}, {
14
- ref?: import("react").Ref<View> | undefined;
14
+ ref?: import("react").Ref<View>;
15
15
  }>;
16
16
  export { StyledDataCard, Indicator };
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
1
+ import type { ReactNode } from 'react';
2
+ import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
3
  export interface DataCardProps extends ViewProps {
4
4
  /**
5
5
  * Card's content.
@@ -8,7 +8,7 @@ export interface DataCardProps extends ViewProps {
8
8
  /**
9
9
  * Visual intent color to apply to card.
10
10
  */
11
- intent?: 'success' | 'info' | 'warning' | 'danger' | 'archived';
11
+ intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
12
12
  /**
13
13
  * Additional style.
14
14
  */
@@ -1,16 +1,17 @@
1
1
  import { View } from 'react-native';
2
2
  declare const StyledCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: import("react").ElementType<any>;
5
5
  } & {
6
6
  themeVariant: 'basic' | 'data';
7
+ themeIntent?: 'primary' | 'success' | 'warning';
7
8
  }, {}, {
8
- ref?: import("react").Ref<View> | undefined;
9
+ ref?: import("react").Ref<View>;
9
10
  }>;
10
11
  declare const LeftDataCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
- theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ theme?: import("@emotion/react").Theme;
13
+ as?: import("react").ElementType<any>;
13
14
  }, {}, {
14
- ref?: import("react").Ref<View> | undefined;
15
+ ref?: import("react").Ref<View>;
15
16
  }>;
16
17
  export { StyledCard, LeftDataCard };
@@ -1,10 +1,14 @@
1
- import { ReactNode } from 'react';
2
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
1
+ import type { ReactNode } from 'react';
2
+ import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
3
  interface CardProps extends ViewProps {
4
4
  /**
5
5
  * Card's content.
6
6
  */
7
7
  children?: ReactNode;
8
+ /**
9
+ * Visual intent color to apply to card.
10
+ */
11
+ intent?: 'primary' | 'success' | 'warning';
8
12
  /**
9
13
  * Card type.
10
14
  * This is now deprecated. If you want to use "data" variant, please use Card.Data instead.
@@ -20,7 +24,7 @@ interface CardProps extends ViewProps {
20
24
  */
21
25
  testID?: string;
22
26
  }
23
- declare const _default: (({ variant, children, ...nativeProps }: CardProps) => JSX.Element) & {
27
+ declare const _default: (({ variant, intent, children, ...nativeProps }: CardProps) => JSX.Element) & {
24
28
  Data: ({ intent, children, ...nativeProps }: import("./DataCard").DataCardProps) => JSX.Element;
25
29
  };
26
30
  export default _default;
@@ -1,8 +1,26 @@
1
- import { TouchableOpacity } from 'react-native';
2
- declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
1
+ import { TouchableOpacity, View } from 'react-native';
2
+ export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: import("react").ElementType<any>;
5
+ } & {
6
+ themeWithBorder: boolean;
7
+ themeDisabled: boolean;
5
8
  }, {}, {
6
- ref?: import("react").Ref<TouchableOpacity> | undefined;
9
+ ref?: import("react").Ref<TouchableOpacity>;
7
10
  }>;
8
- export { StyledWrapper };
11
+ export declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
12
+ theme?: import("@emotion/react").Theme;
13
+ as?: import("react").ElementType<any>;
14
+ }, {}, {}>;
15
+ export declare const StyledCheckbox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
16
+ theme?: import("@emotion/react").Theme;
17
+ as?: import("react").ElementType<any>;
18
+ } & {
19
+ themeDisabled: boolean;
20
+ }, {}, {
21
+ ref?: import("react").Ref<View>;
22
+ }>;
23
+ export declare const StyledCheckMark: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
24
+ theme?: import("@emotion/react").Theme;
25
+ as?: import("react").ElementType<any>;
26
+ }, {}, {}>;
@@ -1,9 +1,17 @@
1
- import { StyleProp, ViewStyle } from 'react-native';
1
+ import type { StyleProp, ViewStyle } from 'react-native';
2
2
  export interface CheckboxProps {
3
3
  /**
4
4
  * Control whether the switch is checked
5
5
  */
6
6
  checked?: boolean;
7
+ /**
8
+ * Checkbox's description.
9
+ */
10
+ description?: string;
11
+ /**
12
+ * Whether the border is shown.
13
+ */
14
+ withBorder?: boolean;
7
15
  /**
8
16
  * Whether the switch is disabled
9
17
  */
@@ -21,5 +29,5 @@ export interface CheckboxProps {
21
29
  */
22
30
  testID?: string;
23
31
  }
24
- declare const CheckBox: ({ checked, disabled, onPress, style, testID, }: CheckboxProps) => JSX.Element;
25
- export default CheckBox;
32
+ declare const Checkbox: ({ checked, description, withBorder, disabled, onPress, style, testID, }: CheckboxProps) => JSX.Element;
33
+ export default Checkbox;