@hero-design/rn 7.19.0 → 7.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/.eslintrc.json +6 -1
  2. package/.turbo/turbo-build.log +2 -2
  3. package/es/index.js +612 -242
  4. package/lib/index.js +612 -241
  5. package/package.json +4 -4
  6. package/src/components/Alert/StyledAlert.tsx +5 -5
  7. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +140 -19
  8. package/src/components/Alert/__tests__/index.spec.tsx +21 -0
  9. package/src/components/Alert/index.tsx +13 -6
  10. package/src/components/Avatar/StyledAvatar.tsx +2 -1
  11. package/src/components/Avatar/index.tsx +2 -1
  12. package/src/components/Box/StyledBox.tsx +54 -0
  13. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +605 -0
  14. package/src/components/Box/__tests__/helpers.spec.ts +14 -0
  15. package/src/components/Box/__tests__/index.spec.tsx +155 -0
  16. package/src/components/Box/config.ts +201 -0
  17. package/src/components/Box/helpers.ts +10 -0
  18. package/src/components/Box/index.tsx +13 -0
  19. package/src/components/Box/types.ts +38 -0
  20. package/src/components/Calendar/__tests__/index.spec.tsx +13 -17
  21. package/src/components/Card/DataCard/StyledDataCard.tsx +8 -2
  22. package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +1 -0
  23. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +16 -0
  24. package/src/components/Card/DataCard/index.tsx +1 -1
  25. package/src/components/Card/StyledCard.tsx +12 -19
  26. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +147 -0
  27. package/src/components/Card/__tests__/index.spec.tsx +18 -0
  28. package/src/components/Card/index.tsx +6 -1
  29. package/src/components/Drawer/DragableDrawer/helpers.ts +3 -4
  30. package/src/components/FAB/ActionGroup/index.tsx +6 -8
  31. package/src/components/RichTextEditor/EditorToolbar.tsx +19 -18
  32. package/src/components/RichTextEditor/RichTextEditor.tsx +7 -2
  33. package/src/components/RichTextEditor/StyledRichTextEditor.ts +0 -2
  34. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +11 -12
  35. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -10
  36. package/src/components/RichTextEditor/constants.ts +0 -11
  37. package/src/components/RichTextEditor/index.tsx +0 -3
  38. package/src/components/RichTextEditor/types.ts +9 -0
  39. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  40. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  41. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
  42. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  43. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
  44. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  45. package/src/components/Spinner/AnimatedSpinner.tsx +7 -7
  46. package/src/components/Spinner/StyledSpinner.tsx +24 -19
  47. package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +1 -1
  48. package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +32 -16
  49. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +14 -12
  50. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +273 -31
  51. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +14 -12
  52. package/src/components/Spinner/index.tsx +10 -2
  53. package/src/components/Tabs/ScrollableTabs.tsx +9 -4
  54. package/src/components/Tabs/StyledScrollableTabs.tsx +6 -5
  55. package/src/components/Tabs/StyledTabs.tsx +6 -0
  56. package/src/components/Tabs/TabWithBadge.tsx +68 -0
  57. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +13 -0
  58. package/src/components/Tabs/__tests__/TabWithBadge.spec.tsx +48 -0
  59. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +205 -43
  60. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +165 -0
  61. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +135 -34
  62. package/src/components/Tabs/__tests__/index.spec.tsx +12 -0
  63. package/src/components/Tabs/index.tsx +11 -4
  64. package/src/components/Tag/StyledTag.tsx +1 -11
  65. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +4 -4
  66. package/src/components/Tag/index.tsx +2 -2
  67. package/src/components/TextInput/__tests__/index.spec.tsx +10 -14
  68. package/src/components/Toast/StyledToast.tsx +13 -7
  69. package/src/components/Toast/Toast.tsx +34 -9
  70. package/src/components/Toast/ToastProvider.tsx +15 -12
  71. package/src/components/Toast/__tests__/Toast.spec.tsx +17 -0
  72. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +299 -19
  73. package/src/components/Toast/types.ts +15 -1
  74. package/src/components/Typography/Text/StyledText.tsx +7 -1
  75. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +1 -0
  76. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +22 -0
  77. package/src/components/Typography/Text/index.tsx +7 -1
  78. package/src/index.ts +2 -0
  79. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +76 -23
  80. package/src/theme/components/.eslintrc.json +10 -0
  81. package/src/theme/components/alert.ts +5 -1
  82. package/src/theme/components/avatar.ts +2 -0
  83. package/src/theme/components/card.ts +6 -7
  84. package/src/theme/components/sectionHeading.ts +1 -1
  85. package/src/theme/components/spinner.ts +19 -7
  86. package/src/theme/components/tabs.ts +3 -2
  87. package/src/theme/components/tag.ts +13 -13
  88. package/src/theme/components/toast.ts +17 -3
  89. package/src/theme/components/typography.ts +2 -0
  90. package/src/theme/global/colors/swag.ts +23 -0
  91. package/src/theme/global/colors/types.ts +23 -0
  92. package/src/theme/global/colors/work.ts +5 -0
  93. package/src/types.ts +0 -2
  94. package/tsconfig.json +4 -15
  95. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  96. package/types/components/Alert/StyledAlert.d.ts +16 -16
  97. package/types/components/Alert/index.d.ts +1 -1
  98. package/types/components/Avatar/StyledAvatar.d.ts +16 -16
  99. package/types/components/Avatar/index.d.ts +2 -2
  100. package/types/components/Badge/StyledBadge.d.ts +7 -7
  101. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  102. package/types/components/BottomSheet/Header.d.ts +1 -1
  103. package/types/components/BottomSheet/StyledBottomSheet.d.ts +19 -19
  104. package/types/components/Box/StyledBox.d.ts +15 -0
  105. package/types/components/Box/__tests__/helpers.spec.d.ts +1 -0
  106. package/types/components/Box/__tests__/index.spec.d.ts +1 -0
  107. package/types/components/Box/config.d.ts +170 -0
  108. package/types/components/Box/helpers.d.ts +1 -0
  109. package/types/components/Box/index.d.ts +5 -0
  110. package/types/components/Box/types.d.ts +31 -0
  111. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
  112. package/types/components/Button/StyledButton.d.ts +16 -16
  113. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  114. package/types/components/Calendar/StyledCalendar.d.ts +25 -25
  115. package/types/components/Calendar/helpers.d.ts +2 -2
  116. package/types/components/Card/DataCard/StyledDataCard.d.ts +7 -7
  117. package/types/components/Card/DataCard/index.d.ts +1 -1
  118. package/types/components/Card/StyledCard.d.ts +7 -6
  119. package/types/components/Card/index.d.ts +5 -1
  120. package/types/components/Checkbox/StyledCheckbox.d.ts +10 -10
  121. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  122. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  123. package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
  124. package/types/components/Divider/StyledDivider.d.ts +5 -5
  125. package/types/components/Drawer/StyledDrawer.d.ts +19 -19
  126. package/types/components/Empty/StyledEmpty.d.ts +12 -12
  127. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
  128. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
  129. package/types/components/FAB/StyledFAB.d.ts +8 -8
  130. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  131. package/types/components/List/StyledBasicListItem.d.ts +14 -14
  132. package/types/components/List/StyledListItem.d.ts +23 -23
  133. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  134. package/types/components/Progress/StyledProgressBar.d.ts +5 -5
  135. package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
  136. package/types/components/Radio/StyledRadio.d.ts +9 -9
  137. package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -2
  138. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  139. package/types/components/RichTextEditor/RichTextEditor.d.ts +4 -0
  140. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  141. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  142. package/types/components/RichTextEditor/constants.d.ts +0 -10
  143. package/types/components/RichTextEditor/index.d.ts +2 -4
  144. package/types/components/RichTextEditor/types.d.ts +1 -0
  145. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  146. package/types/components/Select/MultiSelect/Option.d.ts +1 -1
  147. package/types/components/Select/SingleSelect/Option.d.ts +1 -1
  148. package/types/components/Select/StyledSelect.d.ts +11 -11
  149. package/types/components/Select/helpers.d.ts +1 -1
  150. package/types/components/Spinner/AnimatedSpinner.d.ts +3 -1
  151. package/types/components/Spinner/StyledSpinner.d.ts +14 -12
  152. package/types/components/Spinner/index.d.ts +5 -1
  153. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  154. package/types/components/Tabs/StyledScrollableTabs.d.ts +24 -22
  155. package/types/components/Tabs/StyledTabs.d.ts +26 -20
  156. package/types/components/Tabs/TabWithBadge.d.ts +17 -0
  157. package/types/components/Tabs/__tests__/TabWithBadge.spec.d.ts +1 -0
  158. package/types/components/Tabs/index.d.ts +3 -1
  159. package/types/components/Tag/StyledTag.d.ts +6 -6
  160. package/types/components/Tag/index.d.ts +1 -1
  161. package/types/components/TextInput/StyledTextInput.d.ts +44 -44
  162. package/types/components/TextInput/index.d.ts +5 -5
  163. package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
  164. package/types/components/Toast/StyledToast.d.ts +19 -18
  165. package/types/components/Toast/types.d.ts +2 -1
  166. package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
  167. package/types/components/Typography/Text/StyledText.d.ts +4 -4
  168. package/types/components/Typography/Text/index.d.ts +1 -1
  169. package/types/index.d.ts +2 -1
  170. package/types/testHelpers/renderWithTheme.d.ts +1 -1
  171. package/types/theme/ThemeSwitcher.d.ts +1 -1
  172. package/types/theme/components/alert.d.ts +5 -1
  173. package/types/theme/components/avatar.d.ts +2 -0
  174. package/types/theme/components/card.d.ts +6 -7
  175. package/types/theme/components/spinner.d.ts +17 -5
  176. package/types/theme/components/tabs.d.ts +1 -0
  177. package/types/theme/components/tag.d.ts +2 -2
  178. package/types/theme/components/toast.d.ts +18 -2
  179. package/types/theme/components/typography.d.ts +2 -0
  180. package/types/theme/global/colors/types.d.ts +17 -0
  181. package/types/theme/global/index.d.ts +17 -0
  182. package/types/types.d.ts +1 -2
  183. package/types/utils/hooks.d.ts +1 -1
@@ -2,50 +2,50 @@ import { TouchableHighlight, View } from 'react-native';
2
2
  export declare type Variant = 'full-width' | 'card';
3
3
  export declare type LeadingStatusIntent = 'success' | 'warning' | 'danger' | 'info' | 'archived';
4
4
  declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
5
+ theme?: import("@emotion/react").Theme;
6
+ as?: import("react").ElementType<any>;
7
7
  } & {
8
- themeSelected?: boolean | undefined;
9
- themeVariant?: Variant | undefined;
8
+ themeSelected?: boolean;
9
+ themeVariant?: Variant;
10
10
  }, {}, {
11
- ref?: import("react").Ref<TouchableHighlight> | undefined;
11
+ ref?: import("react").Ref<TouchableHighlight>;
12
12
  }>;
13
13
  declare const StyledContentContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
14
- theme?: import("@emotion/react").Theme | undefined;
15
- as?: import("react").ElementType<any> | undefined;
14
+ theme?: import("@emotion/react").Theme;
15
+ as?: import("react").ElementType<any>;
16
16
  }, {}, {
17
- ref?: import("react").Ref<View> | undefined;
17
+ ref?: import("react").Ref<View>;
18
18
  }>;
19
19
  declare const StyledChildrenContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
20
- theme?: import("@emotion/react").Theme | undefined;
21
- as?: import("react").ElementType<any> | undefined;
20
+ theme?: import("@emotion/react").Theme;
21
+ as?: import("react").ElementType<any>;
22
22
  }, {}, {
23
- ref?: import("react").Ref<View> | undefined;
23
+ ref?: import("react").Ref<View>;
24
24
  }>;
25
25
  declare const StyledLeadingStatus: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
26
- theme?: import("@emotion/react").Theme | undefined;
27
- as?: import("react").ElementType<any> | undefined;
26
+ theme?: import("@emotion/react").Theme;
27
+ as?: import("react").ElementType<any>;
28
28
  } & {
29
29
  themeLeadingStatusIntent: LeadingStatusIntent;
30
30
  }, {}, {
31
- ref?: import("react").Ref<View> | undefined;
31
+ ref?: import("react").Ref<View>;
32
32
  }>;
33
33
  declare const StyledPrefixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
34
- theme?: import("@emotion/react").Theme | undefined;
35
- as?: import("react").ElementType<any> | undefined;
34
+ theme?: import("@emotion/react").Theme;
35
+ as?: import("react").ElementType<any>;
36
36
  }, {}, {
37
- ref?: import("react").Ref<View> | undefined;
37
+ ref?: import("react").Ref<View>;
38
38
  }>;
39
39
  declare const StyledSuffixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
40
- theme?: import("@emotion/react").Theme | undefined;
41
- as?: import("react").ElementType<any> | undefined;
40
+ theme?: import("@emotion/react").Theme;
41
+ as?: import("react").ElementType<any>;
42
42
  }, {}, {
43
- ref?: import("react").Ref<View> | undefined;
43
+ ref?: import("react").Ref<View>;
44
44
  }>;
45
45
  declare const StyledTitleContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
46
- theme?: import("@emotion/react").Theme | undefined;
47
- as?: import("react").ElementType<any> | undefined;
46
+ theme?: import("@emotion/react").Theme;
47
+ as?: import("react").ElementType<any>;
48
48
  }, {}, {
49
- ref?: import("react").Ref<View> | undefined;
49
+ ref?: import("react").Ref<View>;
50
50
  }>;
51
51
  export { StyledListItemContainer, StyledContentContainer, StyledChildrenContainer, StyledLeadingStatus, StyledPrefixContainer, StyledTitleContainer, StyledSuffixContainer, };
@@ -1,73 +1,73 @@
1
1
  import { Text, TextInput, View } from 'react-native';
2
2
  export declare const StyledWrapper: 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
  export declare const StyledPinWrapper: 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 type State = 'default' | 'disabled' | 'error';
15
15
  export declare const StyledCell: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
16
- theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
16
+ theme?: import("@emotion/react").Theme;
17
+ as?: import("react").ElementType<any>;
18
18
  } & {
19
19
  themeFocused: boolean;
20
20
  themeState: State;
21
21
  }, {}, {
22
- ref?: import("react").Ref<View> | undefined;
22
+ ref?: import("react").Ref<View>;
23
23
  }>;
24
24
  export declare const StyledCellText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
25
- theme?: import("@emotion/react").Theme | undefined;
26
- as?: import("react").ElementType<any> | undefined;
25
+ theme?: import("@emotion/react").Theme;
26
+ as?: import("react").ElementType<any>;
27
27
  } & {
28
28
  themeState: State;
29
29
  }, {}, {
30
- ref?: import("react").Ref<Text> | undefined;
30
+ ref?: import("react").Ref<Text>;
31
31
  }>;
32
32
  export declare const StyledSpacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
33
- theme?: import("@emotion/react").Theme | undefined;
34
- as?: import("react").ElementType<any> | undefined;
33
+ theme?: import("@emotion/react").Theme;
34
+ as?: import("react").ElementType<any>;
35
35
  }, {}, {
36
- ref?: import("react").Ref<View> | undefined;
36
+ ref?: import("react").Ref<View>;
37
37
  }>;
38
38
  export declare const StyledMask: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
39
- theme?: import("@emotion/react").Theme | undefined;
40
- as?: import("react").ElementType<any> | undefined;
39
+ theme?: import("@emotion/react").Theme;
40
+ as?: import("react").ElementType<any>;
41
41
  } & {
42
42
  themeState: State;
43
43
  }, {}, {
44
- ref?: import("react").Ref<View> | undefined;
44
+ ref?: import("react").Ref<View>;
45
45
  }>;
46
46
  export declare const StyledFilledMask: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
47
- theme?: import("@emotion/react").Theme | undefined;
48
- as?: import("react").ElementType<any> | undefined;
47
+ theme?: import("@emotion/react").Theme;
48
+ as?: import("react").ElementType<any>;
49
49
  } & {
50
50
  themeState: State;
51
51
  }, {}, {
52
- ref?: import("react").Ref<View> | undefined;
52
+ ref?: import("react").Ref<View>;
53
53
  }>;
54
54
  export declare const StyledHiddenInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
55
- theme?: import("@emotion/react").Theme | undefined;
56
- as?: import("react").ElementType<any> | undefined;
55
+ theme?: import("@emotion/react").Theme;
56
+ as?: import("react").ElementType<any>;
57
57
  } & {
58
58
  themePinLength: number;
59
59
  }, {}, {
60
- ref?: import("react").Ref<TextInput> | undefined;
60
+ ref?: import("react").Ref<TextInput>;
61
61
  }>;
62
62
  export declare const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
63
- theme?: import("@emotion/react").Theme | undefined;
64
- as?: import("react").ElementType<any> | undefined;
63
+ theme?: import("@emotion/react").Theme;
64
+ as?: import("react").ElementType<any>;
65
65
  }, {}, {
66
- ref?: import("react").Ref<View> | undefined;
66
+ ref?: import("react").Ref<View>;
67
67
  }>;
68
68
  export declare const StyledErrorMessage: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
69
- theme?: import("@emotion/react").Theme | undefined;
70
- as?: import("react").ElementType<any> | undefined;
69
+ theme?: import("@emotion/react").Theme;
70
+ as?: import("react").ElementType<any>;
71
71
  }, {}, {
72
- ref?: import("react").Ref<Text> | undefined;
72
+ ref?: import("react").Ref<Text>;
73
73
  }>;
@@ -2,16 +2,16 @@ import { Animated, View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import type { ThemeIntent } from './types';
4
4
  declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
5
+ theme?: import("@emotion/react").Theme;
6
+ as?: import("react").ElementType<any>;
7
7
  }, {}, {
8
- ref?: import("react").Ref<View> | undefined;
8
+ ref?: import("react").Ref<View>;
9
9
  }>;
10
10
  declare const StyledInner: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
11
11
  children?: import("react").ReactNode;
12
12
  } & {
13
- theme?: import("@emotion/react").Theme | undefined;
14
- as?: import("react").ElementType<any> | undefined;
13
+ theme?: import("@emotion/react").Theme;
14
+ as?: import("react").ElementType<any>;
15
15
  } & {
16
16
  themeIntent: ThemeIntent;
17
17
  }, {}, {}>;
@@ -2,43 +2,43 @@ import { View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import type { ThemeIntent } from './types';
4
4
  declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
5
+ theme?: import("@emotion/react").Theme;
6
+ as?: import("react").ElementType<any>;
7
7
  }, {}, {
8
- ref?: import("react").Ref<View> | undefined;
8
+ ref?: import("react").Ref<View>;
9
9
  }>;
10
10
  declare const StyledHalfCircleWrapper: import("@emotion/native").StyledComponent<ViewProps & {
11
- theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
11
+ theme?: import("@emotion/react").Theme;
12
+ as?: import("react").ElementType<any>;
13
13
  }, {}, {
14
- ref?: import("react").Ref<View> | undefined;
14
+ ref?: import("react").Ref<View>;
15
15
  }>;
16
16
  declare const StyledHalfCircleInnerFG: import("@emotion/native").StyledComponent<ViewProps & {
17
- theme?: import("@emotion/react").Theme | undefined;
18
- as?: import("react").ElementType<any> | undefined;
17
+ theme?: import("@emotion/react").Theme;
18
+ as?: import("react").ElementType<any>;
19
19
  } & {
20
20
  themeIntent: ThemeIntent;
21
21
  }, {}, {
22
- ref?: import("react").Ref<View> | undefined;
22
+ ref?: import("react").Ref<View>;
23
23
  }>;
24
24
  declare const StyledHalfCircleInnerBG: import("@emotion/native").StyledComponent<ViewProps & {
25
- theme?: import("@emotion/react").Theme | undefined;
26
- as?: import("react").ElementType<any> | undefined;
25
+ theme?: import("@emotion/react").Theme;
26
+ as?: import("react").ElementType<any>;
27
27
  }, {}, {
28
- ref?: import("react").Ref<View> | undefined;
28
+ ref?: import("react").Ref<View>;
29
29
  }>;
30
30
  declare const StyledDonutCircle: import("@emotion/native").StyledComponent<ViewProps & {
31
- theme?: import("@emotion/react").Theme | undefined;
32
- as?: import("react").ElementType<any> | undefined;
31
+ theme?: import("@emotion/react").Theme;
32
+ as?: import("react").ElementType<any>;
33
33
  }, {}, {
34
- ref?: import("react").Ref<View> | undefined;
34
+ ref?: import("react").Ref<View>;
35
35
  }>;
36
36
  declare const StyledStrokeEnd: import("@emotion/native").StyledComponent<ViewProps & {
37
- theme?: import("@emotion/react").Theme | undefined;
38
- as?: import("react").ElementType<any> | undefined;
37
+ theme?: import("@emotion/react").Theme;
38
+ as?: import("react").ElementType<any>;
39
39
  } & {
40
40
  themeIntent: ThemeIntent;
41
41
  }, {}, {
42
- ref?: import("react").Ref<View> | undefined;
42
+ ref?: import("react").Ref<View>;
43
43
  }>;
44
44
  export { StyledContainer, StyledDonutCircle, StyledHalfCircleWrapper, StyledHalfCircleInnerFG, StyledHalfCircleInnerBG, StyledStrokeEnd, };
@@ -1,20 +1,20 @@
1
1
  import { View } from 'react-native';
2
2
  declare const Circle: 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 InnerCircle: 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
  declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
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
  }, {}, {
18
- ref?: import("react").Ref<View> | undefined;
18
+ ref?: import("react").Ref<View>;
19
19
  }>;
20
20
  export { Circle, InnerCircle, Spacer };
@@ -1,4 +1,4 @@
1
- import { ToolbarButtonName } from './constants';
1
+ import { ToolbarButtonName } from './types';
2
2
  export interface EditorToolbarProps {
3
3
  /**
4
4
  * List of buttons to display in toolbar
@@ -13,5 +13,5 @@ export interface EditorToolbarProps {
13
13
  */
14
14
  testID?: string;
15
15
  }
16
- declare const EditorToolbar: ({ name, buttons, testID, }: EditorToolbarProps) => JSX.Element | null;
16
+ declare const EditorToolbar: ({ name, buttons, testID, }: EditorToolbarProps) => JSX.Element;
17
17
  export default EditorToolbar;
@@ -8,5 +8,5 @@ export interface MentionListProps {
8
8
  */
9
9
  render: (searchText: string, onSelect: (id: string, name: string) => void) => JSX.Element;
10
10
  }
11
- declare const MentionList: ({ name: eventPrefix, render }: MentionListProps) => JSX.Element | null;
11
+ declare const MentionList: ({ name: eventPrefix, render }: MentionListProps) => JSX.Element;
12
12
  export default MentionList;
@@ -9,6 +9,10 @@ export declare type EditorValue = {
9
9
  children: any;
10
10
  }[];
11
11
  export interface RichTextEditorProps {
12
+ /**
13
+ * If true, the editor will be focused when the user enters the screen
14
+ */
15
+ autoFocus?: boolean;
12
16
  /**
13
17
  * Error message
14
18
  */
@@ -1,16 +1,16 @@
1
1
  import { View } from 'react-native';
2
2
  import { WebView } from 'react-native-webview';
3
3
  export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
4
+ theme?: import("@emotion/react").Theme;
5
+ as?: import("react").ElementType<any>;
6
6
  }, {}, {
7
- ref?: import("react").Ref<View> | undefined;
7
+ ref?: import("react").Ref<View>;
8
8
  }>;
9
9
  export declare const StyledWebView: import("@emotion/native").StyledComponent<import("react-native-webview/lib/WebViewTypes").IOSWebViewProps & import("react-native-webview/lib/WebViewTypes").AndroidWebViewProps & import("react-native-webview/lib/WebViewTypes").WindowsWebViewProps & {
10
- theme?: import("@emotion/react").Theme | undefined;
11
- as?: import("react").ElementType<any> | undefined;
10
+ theme?: import("@emotion/react").Theme;
11
+ as?: import("react").ElementType<any>;
12
12
  } & {
13
13
  height: number | undefined;
14
14
  }, {}, {
15
- ref?: import("react").Ref<WebView<unknown>> | undefined;
15
+ ref?: import("react").Ref<WebView<unknown>>;
16
16
  }>;
@@ -1,21 +1,21 @@
1
1
  import { TouchableOpacity, View } from 'react-native';
2
2
  export declare const StyledToolbarButton: 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
6
  selected: boolean;
7
7
  }, {}, {
8
- ref?: import("react").Ref<TouchableOpacity> | undefined;
8
+ ref?: import("react").Ref<TouchableOpacity>;
9
9
  }>;
10
10
  export declare const StyledToolbar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
- theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
11
+ theme?: import("@emotion/react").Theme;
12
+ as?: import("react").ElementType<any>;
13
13
  }, {}, {
14
- ref?: import("react").Ref<View> | undefined;
14
+ ref?: import("react").Ref<View>;
15
15
  }>;
16
16
  export declare const StyledSeparator: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
17
- theme?: import("@emotion/react").Theme | undefined;
18
- as?: import("react").ElementType<any> | undefined;
17
+ theme?: import("@emotion/react").Theme;
18
+ as?: import("react").ElementType<any>;
19
19
  }, {}, {
20
- ref?: import("react").Ref<View> | undefined;
20
+ ref?: import("react").Ref<View>;
21
21
  }>;
@@ -7,13 +7,3 @@ export declare enum ToolbarEvents {
7
7
  HeadingOne = "heading-one",
8
8
  HeadingTwo = "heading-two"
9
9
  }
10
- export declare enum ToolbarButtonName {
11
- Bold = "bold",
12
- Italic = "italic",
13
- Underline = "underline",
14
- BulletedList = "bulletedList",
15
- NumberedList = "numberedList",
16
- HeadingOne = "headingOne",
17
- HeadingTwo = "headingTwo",
18
- Seperator = "|"
19
- }
@@ -1,9 +1,7 @@
1
- import { ToolbarButtonName } from './constants';
2
1
  import type { RichTextEditorProps, RichTextEditorRef } from './RichTextEditor';
3
2
  export type { RichTextEditorProps, RichTextEditorRef };
4
- export { ToolbarButtonName };
5
3
  declare const _default: import("react").ForwardRefExoticComponent<Omit<RichTextEditorProps, "forwardedRef"> & import("react").RefAttributes<RichTextEditorRef>> & {
6
- MentionList: ({ name: eventPrefix, render }: import("./MentionList").MentionListProps) => JSX.Element | null;
7
- Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => JSX.Element | null;
4
+ MentionList: ({ name: eventPrefix, render }: import("./MentionList").MentionListProps) => JSX.Element;
5
+ Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => JSX.Element;
8
6
  };
9
7
  export default _default;
@@ -0,0 +1 @@
1
+ export declare type ToolbarButtonName = 'bold' | 'italic' | 'underline' | 'bulletedList' | 'numberedList' | 'headingOne' | 'headingTwo' | '|';
@@ -1,20 +1,20 @@
1
1
  import { View } from 'react-native';
2
2
  declare const StyledHeading: 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 StyledIconWrapper: 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
  declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
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
  }, {}, {
18
- ref?: import("react").Ref<View> | undefined;
18
+ ref?: import("react").Ref<View>;
19
19
  }>;
20
20
  export { StyledHeading, StyledIconWrapper, StyledWrapper };
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement } from 'react';
2
2
  declare const Option: ({ text, disabled, selected, onPress, }: {
3
3
  text: string | ReactElement;
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  selected: boolean;
6
6
  onPress: () => void;
7
7
  }) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement } from 'react';
2
2
  declare const Option: ({ text, disabled, selected, onPress, }: {
3
3
  text: string | ReactElement;
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  selected: boolean;
6
6
  onPress: () => void;
7
7
  }) => JSX.Element;
@@ -1,24 +1,24 @@
1
1
  import { View } from 'react-native';
2
2
  declare const SectionSpacer: 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 OptionSpacer: 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
  declare const FooterText: 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
  }, {}, {}>;
18
18
  declare const StyledSearchBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
19
- theme?: import("@emotion/react").Theme | undefined;
20
- as?: import("react").ElementType<any> | undefined;
19
+ theme?: import("@emotion/react").Theme;
20
+ as?: import("react").ElementType<any>;
21
21
  }, {}, {
22
- ref?: import("react").Ref<View> | undefined;
22
+ ref?: import("react").Ref<View>;
23
23
  }>;
24
24
  export { SectionSpacer, OptionSpacer, FooterText, StyledSearchBar };
@@ -1,5 +1,5 @@
1
1
  import type { SectionData, CombinedOptionsType, OptionType } from './types';
2
- export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: ((opt: T, i?: number | undefined) => string) | undefined) => import("react").Key;
2
+ export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: (opt: T, i?: number) => string) => import("react").Key;
3
3
  export declare const isSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => options is SectionData<V, T>[];
4
4
  export declare const toSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => SectionData<V, T>[];
5
5
  export declare const toFlatOptions: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => OptionType<V>[];
@@ -1,2 +1,4 @@
1
- declare const AnimatedSpinner: () => JSX.Element;
1
+ declare const AnimatedSpinner: ({ size }: {
2
+ size: 'small' | 'medium';
3
+ }) => JSX.Element;
2
4
  export { AnimatedSpinner };
@@ -1,31 +1,33 @@
1
1
  import { View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  declare const StyledView: import("@emotion/native").StyledComponent<ViewProps & {
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
4
+ theme?: import("@emotion/react").Theme;
5
+ as?: import("react").ElementType<any>;
6
6
  }, {}, {
7
- ref?: import("react").Ref<View> | undefined;
7
+ ref?: import("react").Ref<View>;
8
8
  }>;
9
9
  declare const StyledSpinnerContainer: import("@emotion/native").StyledComponent<ViewProps & {
10
- theme?: import("@emotion/react").Theme | undefined;
11
- as?: import("react").ElementType<any> | undefined;
10
+ theme?: import("@emotion/react").Theme;
11
+ as?: import("react").ElementType<any>;
12
12
  }, {}, {
13
- ref?: import("react").Ref<View> | undefined;
13
+ ref?: import("react").Ref<View>;
14
14
  }>;
15
15
  declare const StyledSpinnerRow: import("@emotion/native").StyledComponent<ViewProps & {
16
- theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
16
+ theme?: import("@emotion/react").Theme;
17
+ as?: import("react").ElementType<any>;
18
18
  } & {
19
19
  themePosition: 'top' | 'bottom';
20
+ themeSize: 'small' | 'medium';
20
21
  }, {}, {
21
- ref?: import("react").Ref<View> | undefined;
22
+ ref?: import("react").Ref<View>;
22
23
  }>;
23
24
  declare const StyledSpinnerDot: import("@emotion/native").StyledComponent<ViewProps & {
24
- theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
25
+ theme?: import("@emotion/react").Theme;
26
+ as?: import("react").ElementType<any>;
26
27
  } & {
27
28
  themePosition: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
29
+ themeSize: 'small' | 'medium';
28
30
  }, {}, {
29
- ref?: import("react").Ref<View> | undefined;
31
+ ref?: import("react").Ref<View>;
30
32
  }>;
31
33
  export { StyledView, StyledSpinnerContainer, StyledSpinnerRow, StyledSpinnerDot, };
@@ -1,10 +1,14 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { ViewProps } from 'react-native';
3
3
  interface SpinnerProps extends ViewProps {
4
+ /**
5
+ * Size of Spinner.
6
+ */
7
+ size?: 'small' | 'medium';
4
8
  /**
5
9
  * Testing id of the component.
6
10
  */
7
11
  testID?: string;
8
12
  }
9
- declare const Spinner: ({ testID, ...nativeProps }: SpinnerProps) => ReactElement;
13
+ declare const Spinner: ({ testID, size, ...nativeProps }: SpinnerProps) => ReactElement;
10
14
  export default Spinner;
@@ -2,19 +2,19 @@ import { Animated, View } from 'react-native';
2
2
  declare type ThemeSize = 'small' | 'medium';
3
3
  export declare type Variant = 'checked' | 'unchecked' | 'disabled-checked' | 'disabled-unchecked';
4
4
  declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
5
+ theme?: import("@emotion/react").Theme;
6
+ as?: import("react").ElementType<any>;
7
7
  } & {
8
8
  themeVariant: Variant;
9
9
  themeSize: ThemeSize;
10
10
  }, {}, {
11
- ref?: import("react").Ref<View> | undefined;
11
+ ref?: import("react").Ref<View>;
12
12
  }>;
13
13
  declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
14
14
  children?: import("react").ReactNode;
15
15
  } & {
16
- theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
16
+ theme?: import("@emotion/react").Theme;
17
+ as?: import("react").ElementType<any>;
18
18
  } & {
19
19
  themeSize: ThemeSize;
20
20
  }, {}, {}>;