@hero-design/rn 7.23.0 → 7.25.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 (276) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +1364 -9239
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +1368 -9238
  6. package/package.json +7 -4
  7. package/rollup.config.js +1 -0
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -4
  9. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  10. package/src/components/Attachment/StyledAttachment.tsx +44 -0
  11. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +158 -0
  12. package/src/components/Attachment/__tests__/index.spec.tsx +59 -0
  13. package/src/components/Attachment/index.tsx +77 -0
  14. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
  15. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  16. package/src/components/Badge/Status.tsx +1 -1
  17. package/src/components/Badge/StyledBadge.tsx +8 -1
  18. package/src/components/Badge/__tests__/Badge.spec.tsx +9 -0
  19. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +44 -0
  20. package/src/components/Badge/index.tsx +1 -1
  21. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  22. package/src/components/BottomSheet/Header.tsx +2 -1
  23. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +52 -52
  24. package/src/components/BottomSheet/index.tsx +4 -4
  25. package/src/components/Button/Button.tsx +0 -11
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
  27. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  28. package/src/components/Button/LoadingIndicator/index.tsx +1 -1
  29. package/src/components/Button/StyledButton.tsx +24 -63
  30. package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +2 -2
  31. package/src/components/Button/__tests__/Button.spec.tsx +10 -5
  32. package/src/components/Button/__tests__/StyledButton.spec.tsx +0 -70
  33. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +301 -1206
  34. package/src/components/Calendar/CalendarRowItem.tsx +1 -4
  35. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
  36. package/src/components/Calendar/index.tsx +4 -3
  37. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
  38. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  39. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  40. package/src/components/Checkbox/StyledCheckbox.tsx +7 -5
  41. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +4 -12
  42. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +95 -42
  43. package/src/components/Checkbox/index.tsx +4 -2
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  45. package/src/components/ContentNavigator/index.tsx +14 -9
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +29 -27
  48. package/src/components/Drawer/DragableDrawer/index.tsx +0 -2
  49. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  50. package/src/components/Empty/index.tsx +1 -2
  51. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  52. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
  53. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  54. package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
  55. package/src/components/Icon/HeroIcon/glyphMap.json +1 -0
  56. package/src/components/Icon/HeroIcon/index.tsx +3 -7
  57. package/src/components/Icon/IconList.ts +36 -6
  58. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  59. package/src/components/Icon/index.tsx +1 -0
  60. package/src/components/List/BasicListItem.tsx +13 -8
  61. package/src/components/List/ListItem.tsx +8 -6
  62. package/src/components/List/StyledBasicListItem.tsx +2 -2
  63. package/src/components/List/StyledListItem.tsx +2 -2
  64. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +24 -36
  65. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +39 -59
  66. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +40 -44
  67. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -50
  68. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
  69. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  70. package/src/components/Progress/ProgressBar.tsx +1 -1
  71. package/src/components/Progress/ProgressCircle.tsx +1 -1
  72. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +10 -10
  73. package/src/components/Progress/types.ts +7 -1
  74. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +20 -32
  75. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +30 -48
  76. package/src/components/RefreshControl/__tests__/index.spec.tsx +1 -3
  77. package/src/components/RefreshControl/index.tsx +4 -2
  78. package/src/components/RichTextEditor/MentionList.tsx +12 -3
  79. package/src/components/RichTextEditor/RichTextEditor.tsx +4 -8
  80. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -4
  81. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  82. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +13 -20
  83. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +154 -238
  84. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +435 -650
  85. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -18
  86. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +144 -228
  87. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +414 -629
  88. package/src/components/Select/StyledOptionList.tsx +0 -1
  89. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
  90. package/src/components/Spinner/AnimatedSpinner.tsx +22 -7
  91. package/src/components/Spinner/StyledSpinner.tsx +15 -11
  92. package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +3 -1
  93. package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +42 -31
  94. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +12 -8
  95. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +543 -83
  96. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +12 -8
  97. package/src/components/Spinner/index.tsx +6 -1
  98. package/src/components/Swipeable/StyledSwipeable.tsx +11 -0
  99. package/src/components/Swipeable/SwipeableAction.tsx +45 -0
  100. package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +37 -0
  101. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +130 -0
  102. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +33 -0
  103. package/src/components/Swipeable/__tests__/index.spec.tsx +34 -0
  104. package/src/components/Swipeable/index.tsx +160 -0
  105. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -5
  106. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  107. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  108. package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +1 -0
  109. package/src/components/Switch/SelectorSwitch/index.tsx +4 -1
  110. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
  111. package/src/components/Tabs/StyledTabs.tsx +1 -1
  112. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
  113. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  114. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +2 -2
  115. package/src/components/TextInput/StyledTextInput.tsx +7 -12
  116. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +12 -6
  117. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +31 -146
  118. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +40 -14
  119. package/src/components/TextInput/__tests__/index.spec.tsx +114 -124
  120. package/src/components/TextInput/index.tsx +8 -6
  121. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
  122. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +29 -27
  123. package/src/components/Toast/Toast.tsx +0 -3
  124. package/src/components/Toast/ToastProvider.tsx +1 -0
  125. package/src/components/Toast/__tests__/index.spec.tsx +1 -1
  126. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  127. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
  128. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +4 -4
  129. package/src/emotion.d.ts +1 -0
  130. package/src/index.ts +10 -0
  131. package/src/theme/ThemeSwitcher.tsx +7 -1
  132. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +96 -78
  133. package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +13 -0
  134. package/src/theme/components/alert.ts +1 -1
  135. package/src/theme/components/attachment.ts +28 -0
  136. package/src/theme/components/avatar.ts +1 -1
  137. package/src/theme/components/badge.ts +2 -1
  138. package/src/theme/components/bottomNavigation.ts +1 -1
  139. package/src/theme/components/bottomSheet.ts +2 -2
  140. package/src/theme/components/button.ts +4 -20
  141. package/src/theme/components/calendar.ts +3 -3
  142. package/src/theme/components/card.ts +1 -1
  143. package/src/theme/components/checkbox.ts +2 -2
  144. package/src/theme/components/divider.ts +1 -1
  145. package/src/theme/components/drawer.ts +2 -2
  146. package/src/theme/components/empty.ts +3 -3
  147. package/src/theme/components/fab.ts +7 -7
  148. package/src/theme/components/icon.ts +4 -4
  149. package/src/theme/components/list.ts +0 -2
  150. package/src/theme/components/pinInput.ts +4 -4
  151. package/src/theme/components/progress.ts +6 -5
  152. package/src/theme/components/radio.ts +1 -1
  153. package/src/theme/components/richTextEditor.ts +2 -2
  154. package/src/theme/components/slider.ts +2 -2
  155. package/src/theme/components/spinner.ts +4 -1
  156. package/src/theme/components/swipeable.ts +13 -0
  157. package/src/theme/components/switch.ts +4 -4
  158. package/src/theme/components/tabs.ts +6 -5
  159. package/src/theme/components/tag.ts +2 -2
  160. package/src/theme/components/textInput.ts +23 -33
  161. package/src/theme/components/toast.ts +3 -3
  162. package/src/theme/components/toolbar.ts +3 -3
  163. package/src/theme/components/typography.ts +7 -7
  164. package/src/theme/getTheme.ts +7 -1
  165. package/src/theme/global/colors/eBens.ts +23 -0
  166. package/src/theme/global/colors/global.ts +15 -6
  167. package/src/theme/global/colors/jobs.ts +15 -10
  168. package/src/theme/global/colors/legacySystemPalette.ts +6 -6
  169. package/src/theme/global/colors/swag.ts +32 -53
  170. package/src/theme/global/colors/types.ts +35 -15
  171. package/src/theme/global/colors/wallet.ts +23 -0
  172. package/src/theme/global/colors/work.ts +15 -11
  173. package/src/theme/global/index.ts +4 -0
  174. package/src/theme/index.ts +4 -0
  175. package/src/types.ts +2 -0
  176. package/src/utils/functions.ts +2 -0
  177. package/src/utils/scale.ts +1 -1
  178. package/testUtils/setup.tsx +13 -0
  179. package/tsconfig.json +8 -2
  180. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  181. package/types/components/Alert/StyledAlert.d.ts +15 -15
  182. package/types/components/Attachment/StyledAttachment.d.ts +28 -0
  183. package/types/components/Attachment/index.d.ts +37 -0
  184. package/types/components/Avatar/StyledAvatar.d.ts +15 -15
  185. package/types/components/Avatar/index.d.ts +1 -1
  186. package/types/components/Badge/Status.d.ts +1 -1
  187. package/types/components/Badge/StyledBadge.d.ts +8 -8
  188. package/types/components/Badge/index.d.ts +1 -1
  189. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  190. package/types/components/BottomSheet/Header.d.ts +1 -1
  191. package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
  192. package/types/components/Box/StyledBox.d.ts +4 -4
  193. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
  194. package/types/components/Button/StyledButton.d.ts +15 -18
  195. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  196. package/types/components/Calendar/StyledCalendar.d.ts +25 -25
  197. package/types/components/Calendar/helpers.d.ts +2 -2
  198. package/types/components/Card/DataCard/StyledDataCard.d.ts +6 -6
  199. package/types/components/Card/StyledCard.d.ts +7 -7
  200. package/types/components/Checkbox/StyledCheckbox.d.ts +16 -10
  201. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  202. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  203. package/types/components/ContentNavigator/index.d.ts +2 -1
  204. package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
  205. package/types/components/Divider/StyledDivider.d.ts +5 -5
  206. package/types/components/Drawer/StyledDrawer.d.ts +19 -19
  207. package/types/components/Empty/StyledEmpty.d.ts +9 -9
  208. package/types/components/Empty/index.d.ts +1 -2
  209. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
  210. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
  211. package/types/components/FAB/StyledFAB.d.ts +8 -8
  212. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  213. package/types/components/Icon/IconList.d.ts +1 -1
  214. package/types/components/Icon/index.d.ts +4 -1
  215. package/types/components/Icon/utils.d.ts +1 -1
  216. package/types/components/List/StyledBasicListItem.d.ts +16 -16
  217. package/types/components/List/StyledListItem.d.ts +25 -25
  218. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  219. package/types/components/Progress/ProgressBar.d.ts +1 -1
  220. package/types/components/Progress/ProgressCircle.d.ts +1 -1
  221. package/types/components/Progress/StyledProgressBar.d.ts +5 -5
  222. package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
  223. package/types/components/Progress/types.d.ts +1 -1
  224. package/types/components/Radio/StyledRadio.d.ts +9 -9
  225. package/types/components/RefreshControl/index.d.ts +1 -2
  226. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  227. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  228. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  229. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  230. package/types/components/RichTextEditor/index.d.ts +2 -2
  231. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  232. package/types/components/Select/MultiSelect/Option.d.ts +1 -1
  233. package/types/components/Select/SingleSelect/Option.d.ts +1 -1
  234. package/types/components/Select/StyledSelect.d.ts +11 -11
  235. package/types/components/Select/helpers.d.ts +1 -1
  236. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  237. package/types/components/Spinner/StyledSpinner.d.ts +13 -12
  238. package/types/components/Spinner/index.d.ts +5 -1
  239. package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
  240. package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
  241. package/types/components/Swipeable/index.d.ts +45 -0
  242. package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -1
  243. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +9 -9
  244. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  245. package/types/components/Tabs/StyledScrollableTabs.d.ts +23 -23
  246. package/types/components/Tabs/StyledTabs.d.ts +22 -22
  247. package/types/components/Tag/StyledTag.d.ts +6 -6
  248. package/types/components/TextInput/StyledTextInput.d.ts +46 -45
  249. package/types/components/TextInput/index.d.ts +6 -6
  250. package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
  251. package/types/components/Toast/StyledToast.d.ts +17 -17
  252. package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
  253. package/types/components/Typography/Text/StyledText.d.ts +3 -3
  254. package/types/index.d.ts +4 -2
  255. package/types/testHelpers/renderWithTheme.d.ts +1 -1
  256. package/types/theme/ThemeSwitcher.d.ts +2 -2
  257. package/types/theme/components/attachment.d.ts +21 -0
  258. package/types/theme/components/badge.d.ts +1 -0
  259. package/types/theme/components/button.d.ts +0 -15
  260. package/types/theme/components/list.d.ts +0 -1
  261. package/types/theme/components/progress.d.ts +1 -0
  262. package/types/theme/components/spinner.d.ts +4 -1
  263. package/types/theme/components/swipeable.d.ts +9 -0
  264. package/types/theme/components/tabs.d.ts +1 -0
  265. package/types/theme/components/tag.d.ts +2 -2
  266. package/types/theme/components/textInput.d.ts +0 -10
  267. package/types/theme/getTheme.d.ts +4 -0
  268. package/types/theme/global/colors/eBens.d.ts +3 -0
  269. package/types/theme/global/colors/types.d.ts +23 -16
  270. package/types/theme/global/colors/wallet.d.ts +3 -0
  271. package/types/theme/global/index.d.ts +26 -12
  272. package/types/theme/index.d.ts +2 -2
  273. package/types/types.d.ts +2 -1
  274. package/types/utils/functions.d.ts +1 -0
  275. package/types/utils/hooks.d.ts +1 -1
  276. package/src/components/Icon/HeroIcon/selection.json +0 -7029
@@ -1,103 +1,104 @@
1
1
  import { TextInput, View } from 'react-native';
2
- export declare type Variant = 'default' | 'filled' | 'focused' | 'disabled' | 'readonly' | 'error';
2
+ export declare type Variant = 'default' | 'filled' | 'disabled' | 'readonly' | 'error';
3
3
  declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType<any>;
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
6
  }, {}, {
7
- ref?: import("react").Ref<View>;
7
+ ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  declare const StyledLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
- theme?: import("@emotion/react").Theme;
11
- as?: import("react").ElementType<any>;
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
12
  }, {}, {
13
- ref?: import("react").Ref<View>;
13
+ ref?: import("react").Ref<View> | undefined;
14
14
  }>;
15
15
  declare const StyledLabel: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: import("react").ElementType<any>;
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
18
  } & {
19
19
  themeVariant: Variant;
20
20
  }, {}, {}>;
21
21
  declare const StyledAsteriskLabel: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
22
- theme?: import("@emotion/react").Theme;
23
- as?: import("react").ElementType<any>;
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
24
24
  } & {
25
25
  themeVariant: Variant;
26
26
  }, {}, {}>;
27
27
  declare const StyledLabelContainerInsideTextInput: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
28
- theme?: import("@emotion/react").Theme;
29
- as?: import("react").ElementType<any>;
28
+ theme?: import("@emotion/react").Theme | undefined;
29
+ as?: import("react").ElementType<any> | undefined;
30
30
  }, {}, {
31
- ref?: import("react").Ref<View>;
31
+ ref?: import("react").Ref<View> | undefined;
32
32
  }>;
33
33
  declare const StyledLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
34
- theme?: import("@emotion/react").Theme;
35
- as?: import("react").ElementType<any>;
34
+ theme?: import("@emotion/react").Theme | undefined;
35
+ as?: import("react").ElementType<any> | undefined;
36
36
  } & {
37
37
  themeVariant: Variant;
38
38
  }, {}, {}>;
39
39
  declare const StyledAsteriskLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
40
- theme?: import("@emotion/react").Theme;
41
- as?: import("react").ElementType<any>;
40
+ theme?: import("@emotion/react").Theme | undefined;
41
+ as?: import("react").ElementType<any> | undefined;
42
42
  } & {
43
43
  themeVariant: Variant;
44
44
  }, {}, {}>;
45
45
  declare const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
46
- theme?: import("@emotion/react").Theme;
47
- as?: import("react").ElementType<any>;
46
+ theme?: import("@emotion/react").Theme | undefined;
47
+ as?: import("react").ElementType<any> | undefined;
48
48
  }, {}, {
49
- ref?: import("react").Ref<View>;
49
+ ref?: import("react").Ref<View> | undefined;
50
50
  }>;
51
51
  declare const StyledError: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
52
- theme?: import("@emotion/react").Theme;
53
- as?: import("react").ElementType<any>;
52
+ theme?: import("@emotion/react").Theme | undefined;
53
+ as?: import("react").ElementType<any> | undefined;
54
54
  }, {}, {}>;
55
55
  declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
56
- theme?: import("@emotion/react").Theme;
57
- as?: import("react").ElementType<any>;
56
+ theme?: import("@emotion/react").Theme | undefined;
57
+ as?: import("react").ElementType<any> | undefined;
58
58
  } & {
59
59
  themeVariant: Variant;
60
60
  }, {}, {}>;
61
61
  declare const StyledHelperText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
62
- theme?: import("@emotion/react").Theme;
63
- as?: import("react").ElementType<any>;
62
+ theme?: import("@emotion/react").Theme | undefined;
63
+ as?: import("react").ElementType<any> | undefined;
64
64
  }, {}, {}>;
65
65
  declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
66
- theme?: import("@emotion/react").Theme;
67
- as?: import("react").ElementType<any>;
66
+ theme?: import("@emotion/react").Theme | undefined;
67
+ as?: import("react").ElementType<any> | undefined;
68
68
  }, {}, {
69
- ref?: import("react").Ref<TextInput>;
69
+ ref?: import("react").Ref<TextInput> | undefined;
70
70
  }>;
71
71
  declare const StyledBorderBackDrop: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
72
- theme?: import("@emotion/react").Theme;
73
- as?: import("react").ElementType<any>;
72
+ theme?: import("@emotion/react").Theme | undefined;
73
+ as?: import("react").ElementType<any> | undefined;
74
74
  } & {
75
75
  themeVariant: Variant;
76
+ themeFocused: boolean;
76
77
  }, {}, {
77
- ref?: import("react").Ref<View>;
78
+ ref?: import("react").Ref<View> | undefined;
78
79
  }>;
79
80
  declare const StyledTextInputContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
80
- theme?: import("@emotion/react").Theme;
81
- as?: import("react").ElementType<any>;
81
+ theme?: import("@emotion/react").Theme | undefined;
82
+ as?: import("react").ElementType<any> | undefined;
82
83
  }, {}, {
83
- ref?: import("react").Ref<View>;
84
+ ref?: import("react").Ref<View> | undefined;
84
85
  }>;
85
86
  declare const StyledTextInputAndLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
86
- theme?: import("@emotion/react").Theme;
87
- as?: import("react").ElementType<any>;
87
+ theme?: import("@emotion/react").Theme | undefined;
88
+ as?: import("react").ElementType<any> | undefined;
88
89
  }, {}, {
89
- ref?: import("react").Ref<View>;
90
+ ref?: import("react").Ref<View> | undefined;
90
91
  }>;
91
92
  declare const StyledErrorAndHelpTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
92
- theme?: import("@emotion/react").Theme;
93
- as?: import("react").ElementType<any>;
93
+ theme?: import("@emotion/react").Theme | undefined;
94
+ as?: import("react").ElementType<any> | undefined;
94
95
  }, {}, {
95
- ref?: import("react").Ref<View>;
96
+ ref?: import("react").Ref<View> | undefined;
96
97
  }>;
97
98
  declare const StyledErrorAndMaxLengthContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
98
- theme?: import("@emotion/react").Theme;
99
- as?: import("react").ElementType<any>;
99
+ theme?: import("@emotion/react").Theme | undefined;
100
+ as?: import("react").ElementType<any> | undefined;
100
101
  }, {}, {
101
- ref?: import("react").Ref<View>;
102
+ ref?: import("react").Ref<View> | undefined;
102
103
  }>;
103
104
  export { StyledTextInputContainer, StyledLabel, StyledLabelContainer, StyledAsteriskLabel, StyledAsteriskLabelInsideTextInput, StyledTextInput, StyledError, StyledMaxLengthMessage, StyledLabelInsideTextInput, StyledContainer, StyledErrorContainer, StyledHelperText, StyledTextInputAndLabelContainer, StyledLabelContainerInsideTextInput, StyledErrorAndHelpTextContainer, StyledBorderBackDrop, StyledErrorAndMaxLengthContainer, };
@@ -53,13 +53,13 @@ export interface TextInputProps extends NativeTextInputProps {
53
53
  helpText?: string;
54
54
  renderInputValue?: (inputProps: NativeTextInputProps) => React.ReactNode;
55
55
  }
56
- export declare const getVariant: ({ disabled, error, editable, loading, isFocused, isEmptyValue, }: {
57
- disabled?: boolean;
58
- error?: string;
59
- editable?: boolean;
56
+ export declare const getVariant: ({ disabled, error, editable, loading, isEmptyValue, }: {
57
+ disabled?: boolean | undefined;
58
+ error?: string | undefined;
59
+ editable?: boolean | undefined;
60
60
  loading: boolean;
61
- isFocused?: boolean;
62
- isEmptyValue?: boolean;
61
+ isFocused?: boolean | undefined;
62
+ isEmptyValue?: boolean | undefined;
63
63
  }) => Variant;
64
64
  declare const TextInput: ({ label, prefix, suffix, style, textStyle, testID, accessibilityLabelledBy, error, required, editable, disabled, loading, maxLength, helpText, value, defaultValue, renderInputValue, ...nativeProps }: TextInputProps) => JSX.Element;
65
65
  export default TextInput;
@@ -1,9 +1,9 @@
1
1
  import { View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  declare const StyledPickerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType<any>;
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
6
  }, {}, {
7
- ref?: import("react").Ref<View>;
7
+ ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  export { StyledPickerWrapper };
@@ -2,46 +2,46 @@ import { Animated, TouchableOpacity, View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import { IntentType } from './types';
4
4
  declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
5
- theme?: import("@emotion/react").Theme;
6
- as?: import("react").ElementType<any>;
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
7
  } & {
8
8
  position: 'top' | 'bottom';
9
9
  }, {}, {
10
- ref?: import("react").Ref<View>;
10
+ ref?: import("react").Ref<View> | undefined;
11
11
  }>;
12
12
  declare const Container: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
13
13
  children?: import("react").ReactNode;
14
14
  } & {
15
- theme?: import("@emotion/react").Theme;
16
- as?: import("react").ElementType<any>;
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
17
  } & {
18
18
  themeVariant: 'default' | 'round';
19
19
  themeIntent: IntentType;
20
20
  }, {}, {}>;
21
21
  declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
22
- theme?: import("@emotion/react").Theme;
23
- as?: import("react").ElementType<any>;
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
24
24
  }, {}, {
25
- ref?: import("react").Ref<View>;
25
+ ref?: import("react").Ref<View> | undefined;
26
26
  }>;
27
27
  declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
28
- theme?: import("@emotion/react").Theme;
29
- as?: import("react").ElementType<any>;
28
+ theme?: import("@emotion/react").Theme | undefined;
29
+ as?: import("react").ElementType<any> | undefined;
30
30
  }, {}, {
31
- ref?: import("react").Ref<View>;
31
+ ref?: import("react").Ref<View> | undefined;
32
32
  }>;
33
33
  declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
34
- theme?: import("@emotion/react").Theme;
35
- as?: import("react").ElementType<any>;
34
+ theme?: import("@emotion/react").Theme | undefined;
35
+ as?: import("react").ElementType<any> | undefined;
36
36
  } & {
37
37
  showDivider: boolean;
38
38
  }, {}, {
39
- ref?: import("react").Ref<View>;
39
+ ref?: import("react").Ref<View> | undefined;
40
40
  }>;
41
41
  declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
42
- theme?: import("@emotion/react").Theme;
43
- as?: import("react").ElementType<any>;
42
+ theme?: import("@emotion/react").Theme | undefined;
43
+ as?: import("react").ElementType<any> | undefined;
44
44
  }, {}, {
45
- ref?: import("react").Ref<TouchableOpacity>;
45
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
46
46
  }>;
47
47
  export { ToastContainerWrapper, Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, };
@@ -1,23 +1,23 @@
1
1
  import { TouchableOpacity, View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  declare const ToolbarWrapper: import("@emotion/native").StyledComponent<ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType<any>;
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
6
  }, {}, {
7
- ref?: import("react").Ref<View>;
7
+ ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  declare const ToolbarGroupWrapper: import("@emotion/native").StyledComponent<ViewProps & {
10
- theme?: import("@emotion/react").Theme;
11
- as?: import("react").ElementType<any>;
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
12
  } & {
13
13
  align: 'left' | 'center' | 'right';
14
14
  }, {}, {
15
- ref?: import("react").Ref<View>;
15
+ ref?: import("react").Ref<View> | undefined;
16
16
  }>;
17
17
  declare const ToolbarItemWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
18
- theme?: import("@emotion/react").Theme;
19
- as?: import("react").ElementType<any>;
18
+ theme?: import("@emotion/react").Theme | undefined;
19
+ as?: import("react").ElementType<any> | undefined;
20
20
  }, {}, {
21
- ref?: import("react").Ref<TouchableOpacity>;
21
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
22
22
  }>;
23
23
  export { ToolbarWrapper, ToolbarGroupWrapper, ToolbarItemWrapper };
@@ -1,12 +1,12 @@
1
1
  import { Text } from 'react-native';
2
2
  declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
3
- theme?: import("@emotion/react").Theme;
4
- as?: import("react").ElementType<any>;
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
5
  } & {
6
6
  themeFontSize: 'small' | 'medium' | 'large' | 'xlarge' | 'xxxlarge' | 'xxxxxlarge';
7
7
  themeFontWeight: 'light' | 'regular' | 'semi-bold';
8
8
  themeIntent: 'body' | 'subdued' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted';
9
9
  }, {}, {
10
- ref?: import("react").Ref<Text>;
10
+ ref?: import("react").Ref<Text> | undefined;
11
11
  }>;
12
12
  export { StyledText };
package/types/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import theme, { getTheme, ThemeProvider, useTheme, swagSystemPalette, workSystemPalette, jobsSystemPalette } from './theme';
1
+ import theme, { getTheme, ThemeProvider, useTheme, swagSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, ThemeSwitcher } from './theme';
2
2
  import { scale } from './utils/scale';
3
3
  import Accordion from './components/Accordion';
4
4
  import Alert from './components/Alert';
5
+ import Attachment from './components/Attachment';
5
6
  import Avatar from './components/Avatar';
6
7
  import Badge from './components/Badge';
7
8
  import BottomNavigation from './components/BottomNavigation';
@@ -25,6 +26,7 @@ import PinInput from './components/PinInput';
25
26
  import Progress from './components/Progress';
26
27
  import Slider from './components/Slider';
27
28
  import Spinner from './components/Spinner';
29
+ import Swipeable from './components/Swipeable';
28
30
  import Radio from './components/Radio';
29
31
  import SectionHeading from './components/SectionHeading';
30
32
  import Select from './components/Select';
@@ -38,5 +40,5 @@ import Toolbar from './components/Toolbar';
38
40
  import Typography from './components/Typography';
39
41
  import RefreshControl from './components/RefreshControl';
40
42
  import RichTextEditor from './components/RichTextEditor';
41
- export { theme, getTheme, useTheme, scale, ThemeProvider, swagSystemPalette, workSystemPalette, jobsSystemPalette, Accordion, Alert, Avatar, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, FAB, Icon, Image, List, PinInput, Progress, Slider, Spinner, Radio, SectionHeading, Select, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, RefreshControl, RichTextEditor, };
43
+ export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, swagSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, FAB, Icon, Image, List, PinInput, Progress, Slider, Spinner, Swipeable, Radio, SectionHeading, Select, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, RefreshControl, RichTextEditor, };
42
44
  export * from './types';
@@ -1,3 +1,3 @@
1
1
  import type { RenderOptions } from '@testing-library/react-native';
2
- declare const renderWithTheme: (ui: JSX.Element, options?: RenderOptions) => import("@testing-library/react-native").RenderAPI;
2
+ declare const renderWithTheme: (ui: JSX.Element, options?: RenderOptions | undefined) => import("@testing-library/react-native").RenderAPI;
3
3
  export default renderWithTheme;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- declare type ThemeName = 'swag' | 'work' | 'jobs';
2
+ declare type ThemeName = 'swag' | 'work' | 'jobs' | 'wallet' | 'eBens';
3
3
  declare const ThemeSwitcher: ({ name, children, }: {
4
- name?: ThemeName;
4
+ name?: ThemeName | undefined;
5
5
  children: React.ReactNode;
6
6
  }) => JSX.Element;
7
7
  export default ThemeSwitcher;
@@ -0,0 +1,21 @@
1
+ import type { GlobalTheme } from '../global';
2
+ declare const getAttachmentTheme: (theme: GlobalTheme) => {
3
+ colors: {
4
+ highlightedBackground: string;
5
+ };
6
+ radii: {
7
+ image: number;
8
+ container: number;
9
+ };
10
+ sizes: {
11
+ imageHeight: number;
12
+ imageWidth: number;
13
+ };
14
+ space: {
15
+ containerPadding: number;
16
+ containerVerticalPadding: number;
17
+ ctaPadding: number;
18
+ textHorizontalPadding: number;
19
+ };
20
+ };
21
+ export default getAttachmentTheme;
@@ -1,6 +1,7 @@
1
1
  import type { GlobalTheme } from '../global';
2
2
  declare const getBadgeTheme: (theme: GlobalTheme) => {
3
3
  colors: {
4
+ primary: string;
4
5
  danger: string;
5
6
  info: string;
6
7
  success: string;
@@ -21,29 +21,14 @@ declare const getButtonTheme: (theme: GlobalTheme) => {
21
21
  };
22
22
  colors: {
23
23
  primary: string;
24
- pressedPrimary: string;
25
24
  secondary: string;
26
- pressedSecondary: string;
27
25
  danger: string;
28
- pressedDanger: string;
29
26
  defaultText: string;
30
27
  disabledText: string;
31
28
  disabledBorder: string;
32
29
  disabledBackground: string;
33
30
  invertedText: string;
34
31
  utilityBackground: string;
35
- underlayColors: {
36
- 'filled-primary': string;
37
- 'filled-secondary': string;
38
- 'filled-danger': string;
39
- 'outlined-primary': string;
40
- 'outlined-secondary': string;
41
- 'outlined-danger': string;
42
- 'text-primary': string;
43
- 'text-secondary': string;
44
- 'text-danger': string;
45
- 'basic-transparent': string;
46
- };
47
32
  };
48
33
  lineHeight: {
49
34
  default: number;
@@ -2,7 +2,6 @@ import type { GlobalTheme } from '../global';
2
2
  declare const getListTheme: (theme: GlobalTheme) => {
3
3
  colors: {
4
4
  checkedListItemContainerBackground: string;
5
- highlightedListItemContainerBackground: string;
6
5
  listItemContainerBackground: string;
7
6
  leadingStatus: {
8
7
  danger: string;
@@ -6,6 +6,7 @@ declare const getProgressTheme: (theme: GlobalTheme) => {
6
6
  warning: string;
7
7
  danger: string;
8
8
  info: string;
9
+ archived: string;
9
10
  background: string;
10
11
  innerBackground: string;
11
12
  };
@@ -1,7 +1,10 @@
1
1
  import type { GlobalTheme } from '../global';
2
2
  declare const getSpinnerTheme: (theme: GlobalTheme) => {
3
3
  colors: {
4
- dot: string;
4
+ dot: {
5
+ primary: string;
6
+ inverted: string;
7
+ };
5
8
  };
6
9
  space: {
7
10
  spinnerDot: {
@@ -0,0 +1,9 @@
1
+ import type { GlobalTheme } from '../global';
2
+ declare const getSwipeableTheme: (theme: GlobalTheme) => {
3
+ colors: {
4
+ success: string;
5
+ danger: string;
6
+ primary: string;
7
+ };
8
+ };
9
+ export default getSwipeableTheme;
@@ -8,6 +8,7 @@ declare const getTabsTheme: (theme: GlobalTheme) => {
8
8
  inactive: string;
9
9
  activeBackground: string;
10
10
  headerBottom: string;
11
+ indicator: string;
11
12
  text: string;
12
13
  };
13
14
  space: {
@@ -5,9 +5,9 @@ declare const getTagTheme: (theme: GlobalTheme) => {
5
5
  };
6
6
  colors: {
7
7
  default: string;
8
- defaultBackground: any;
8
+ defaultBackground: undefined;
9
9
  primary: string;
10
- primaryBackground: any;
10
+ primaryBackground: undefined;
11
11
  info: string;
12
12
  infoBackground: string;
13
13
  success: string;
@@ -8,14 +8,8 @@ declare const getTextInputTheme: (theme: GlobalTheme) => {
8
8
  disabled: string;
9
9
  readonly: string;
10
10
  filled: string;
11
- focused: string;
12
11
  };
13
12
  error: string;
14
- placeholderIfNotFocused: string;
15
- placeholderIfFocued: string;
16
- label: string;
17
- readonlyLabel: string;
18
- disabledLabel: string;
19
13
  text: string;
20
14
  borders: {
21
15
  default: string;
@@ -23,7 +17,6 @@ declare const getTextInputTheme: (theme: GlobalTheme) => {
23
17
  disabled: string;
24
18
  readonly: string;
25
19
  filled: string;
26
- focused: string;
27
20
  };
28
21
  labels: {
29
22
  default: string;
@@ -31,7 +24,6 @@ declare const getTextInputTheme: (theme: GlobalTheme) => {
31
24
  disabled: string;
32
25
  readonly: string;
33
26
  filled: string;
34
- focused: string;
35
27
  };
36
28
  labelsInsideTextInput: {
37
29
  default: string;
@@ -39,7 +31,6 @@ declare const getTextInputTheme: (theme: GlobalTheme) => {
39
31
  disabled: string;
40
32
  readonly: string;
41
33
  filled: string;
42
- focused: string;
43
34
  };
44
35
  maxLengthLabels: {
45
36
  default: string;
@@ -47,7 +38,6 @@ declare const getTextInputTheme: (theme: GlobalTheme) => {
47
38
  disabled: string;
48
39
  readonly: string;
49
40
  filled: string;
50
- focused: string;
51
41
  };
52
42
  };
53
43
  space: {
@@ -1,5 +1,6 @@
1
1
  import getAccordionTheme from './components/accordion';
2
2
  import getAlertTheme from './components/alert';
3
+ import getAttachmentTheme from './components/attachment';
3
4
  import getAvatarTheme from './components/avatar';
4
5
  import getBadgeTheme from './components/badge';
5
6
  import getBottomNavigationTheme from './components/bottomNavigation';
@@ -26,6 +27,7 @@ import getSectionHeadingTheme from './components/sectionHeading';
26
27
  import getSelectTheme from './components/select';
27
28
  import getSliderTheme from './components/slider';
28
29
  import getSpinnerTheme from './components/spinner';
30
+ import getSwipeableTheme from './components/swipeable';
29
31
  import getSwitchTheme from './components/switch';
30
32
  import getTabsTheme from './components/tabs';
31
33
  import getTagTheme from './components/tag';
@@ -39,6 +41,7 @@ declare type Theme = GlobalTheme & {
39
41
  __hd__: {
40
42
  accordion: ReturnType<typeof getAccordionTheme>;
41
43
  alert: ReturnType<typeof getAlertTheme>;
44
+ attachment: ReturnType<typeof getAttachmentTheme>;
42
45
  avatar: ReturnType<typeof getAvatarTheme>;
43
46
  badge: ReturnType<typeof getBadgeTheme>;
44
47
  bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
@@ -65,6 +68,7 @@ declare type Theme = GlobalTheme & {
65
68
  select: ReturnType<typeof getSelectTheme>;
66
69
  slider: ReturnType<typeof getSliderTheme>;
67
70
  spinner: ReturnType<typeof getSpinnerTheme>;
71
+ swipeable: ReturnType<typeof getSwipeableTheme>;
68
72
  switch: ReturnType<typeof getSwitchTheme>;
69
73
  tabs: ReturnType<typeof getTabsTheme>;
70
74
  tag: ReturnType<typeof getTagTheme>;
@@ -0,0 +1,3 @@
1
+ import type { SystemPalette } from './types';
2
+ declare const eBensSystemPalette: SystemPalette;
3
+ export default eBensSystemPalette;
@@ -1,14 +1,16 @@
1
1
  export declare type GlobalSystemPalette = {
2
- globalPrimary: string;
3
- mutedGlobalPrimary: string;
4
- onGlobalPrimary: string;
5
- globalSecondary: string;
6
- globalPrimaryOutline: string;
7
- globalSecondaryOutline: string;
8
2
  defaultGlobalSurface: string;
9
3
  onDefaultGlobalSurface: string;
10
4
  neutralGlobalSurface: string;
5
+ mutedOnDefaultGlobalSurface: string;
6
+ inactiveOnDefaultGlobalSurface: string;
11
7
  disabledOnDefaultGlobalSurface: string;
8
+ darkGlobalSurface: string;
9
+ onDarkGlobalSurface: string;
10
+ primaryOutline: string;
11
+ secondaryOutline: string;
12
+ inactiveOutline: string;
13
+ disabledOutline: string;
12
14
  error: string;
13
15
  errorSurface: string;
14
16
  onErrorSurface: string;
@@ -27,33 +29,35 @@ export declare type GlobalSystemPalette = {
27
29
  };
28
30
  export declare type BrandSystemPalette = {
29
31
  primary: string;
30
- mutedPrimary: string;
31
32
  onPrimary: string;
32
33
  secondary: string;
33
- highlightedSecondarySurface: string;
34
34
  onSecondary: string;
35
+ defaultSurface: string;
36
+ highlightedSurface: string;
37
+ pressedSurface: string;
38
+ decorativePrimary: string;
39
+ decorativePrimarySurface: string;
40
+ };
41
+ export declare type LegacyBrandSystemPalette = {
42
+ mutedPrimary: string;
43
+ highlightedSecondarySurface: string;
35
44
  mutedSecondary: string;
36
45
  disabledSecondary: string;
37
- highlightedSurface: string;
38
46
  lightHighlightedSurface: string;
39
47
  };
40
48
  export declare type LegacySystemPalette = {
41
49
  globalPrimary: string;
42
50
  globalPrimaryLight: string;
43
51
  globalPrimaryBackground: string;
44
- primary: string;
45
52
  primaryLight: string;
46
53
  primaryDark: string;
47
54
  primaryBackground: string;
48
55
  primaryBackgroundDark: string;
49
- secondary: string;
50
56
  secondaryLight: string;
51
57
  secondaryBackground: string;
52
- info: string;
53
58
  infoMediumLight: string;
54
59
  infoLight: string;
55
60
  infoBackground: string;
56
- success: string;
57
61
  successLight: string;
58
62
  successDark: string;
59
63
  successBackground: string;
@@ -61,7 +65,6 @@ export declare type LegacySystemPalette = {
61
65
  dangerMediumLight: string;
62
66
  dangerLight: string;
63
67
  dangerBackground: string;
64
- warning: string;
65
68
  warningLight: string;
66
69
  warningDark: string;
67
70
  warningBackground: string;
@@ -74,12 +77,16 @@ export declare type LegacySystemPalette = {
74
77
  disabledLightText: string;
75
78
  invertedText: string;
76
79
  outline: string;
77
- archived: string;
78
80
  archivedLight: string;
79
81
  archivedDark: string;
80
82
  archivedBackground: string;
81
83
  black: string;
82
84
  inactiveBackground: string;
83
85
  shadow: string;
86
+ mutedGlobalPrimary: string;
87
+ onGlobalPrimary: string;
88
+ globalSecondary: string;
89
+ globalPrimaryOutline: string;
90
+ globalSecondaryOutline: string;
84
91
  };
85
- export declare type SystemPalette = LegacySystemPalette & GlobalSystemPalette & BrandSystemPalette;
92
+ export declare type SystemPalette = LegacySystemPalette & LegacyBrandSystemPalette & GlobalSystemPalette & BrandSystemPalette;