@reillymc/react-native-components 0.10.8

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 (226) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +37 -0
  3. package/lib/assets/StarIcon.js +1 -0
  4. package/lib/assets/index.js +1 -0
  5. package/lib/common/index.js +0 -0
  6. package/lib/common/valueItem.js +0 -0
  7. package/lib/components/AlertIndicator.js +1 -0
  8. package/lib/components/Avatar.js +1 -0
  9. package/lib/components/Panel.js +1 -0
  10. package/lib/components/Rating.js +1 -0
  11. package/lib/components/SwipeAction.js +1 -0
  12. package/lib/components/Toast.js +1 -0
  13. package/lib/components/action/Action.js +1 -0
  14. package/lib/components/action/ActionBase.js +1 -0
  15. package/lib/components/action/IconAction.js +1 -0
  16. package/lib/components/action/IconActionBase.js +1 -0
  17. package/lib/components/action/index.js +1 -0
  18. package/lib/components/button/Button.js +1 -0
  19. package/lib/components/button/ButtonBase.js +1 -0
  20. package/lib/components/button/IconButton.js +1 -0
  21. package/lib/components/button/IconButtonBase.js +1 -0
  22. package/lib/components/button/index.js +1 -0
  23. package/lib/components/container/CollapsibleContainer.js +1 -0
  24. package/lib/components/container/FloatingContainer.js +1 -0
  25. package/lib/components/container/FloatingContainer.web.js +1 -0
  26. package/lib/components/container/FormContainer.js +1 -0
  27. package/lib/components/container/SwipeableContainer.js +1 -0
  28. package/lib/components/container/index.js +1 -0
  29. package/lib/components/icon/Icon.js +1 -0
  30. package/lib/components/icon/IconBase.js +1 -0
  31. package/lib/components/icon/InteractiveIcon.js +1 -0
  32. package/lib/components/icon/componentWithIcon.js +1 -0
  33. package/lib/components/icon/index.js +1 -0
  34. package/lib/components/index.js +1 -0
  35. package/lib/components/input/CounterInput.js +1 -0
  36. package/lib/components/input/DropdownInput.js +1 -0
  37. package/lib/components/input/DropdownInputBase.js +1 -0
  38. package/lib/components/input/InputAction.js +1 -0
  39. package/lib/components/input/InputBase.js +1 -0
  40. package/lib/components/input/InputScaffold.js +1 -0
  41. package/lib/components/input/NumberInput.js +1 -0
  42. package/lib/components/input/NumberInputBase.js +1 -0
  43. package/lib/components/input/RatingInput.js +1 -0
  44. package/lib/components/input/SelectionInput.js +1 -0
  45. package/lib/components/input/TextInput.js +1 -0
  46. package/lib/components/input/TimeInput.js +1 -0
  47. package/lib/components/input/ToggleInput.js +1 -0
  48. package/lib/components/input/index.js +1 -0
  49. package/lib/components/listItem/ListItem.js +1 -0
  50. package/lib/components/listItem/ListItemAlert.js +1 -0
  51. package/lib/components/listItem/ListItemAvatar.js +1 -0
  52. package/lib/components/listItem/ListItemFooter.js +1 -0
  53. package/lib/components/listItem/ListItemRow.js +1 -0
  54. package/lib/components/listItem/index.js +1 -0
  55. package/lib/components/menu/Menu.js +1 -0
  56. package/lib/components/menu/MenuItem.js +1 -0
  57. package/lib/components/menu/index.js +1 -0
  58. package/lib/components/tag/Tag.js +1 -0
  59. package/lib/components/tag/TagIcon.js +1 -0
  60. package/lib/components/tag/index.js +1 -0
  61. package/lib/components/text/HighlightedText.js +1 -0
  62. package/lib/components/text/InteractiveText.js +1 -0
  63. package/lib/components/text/Text.js +1 -0
  64. package/lib/components/text/index.js +1 -0
  65. package/lib/hooks/index.js +1 -0
  66. package/lib/hooks/useForwardedRef.js +1 -0
  67. package/lib/hooks/useKeyboardHeight.js +1 -0
  68. package/lib/hooks/usePersistentKeyboardHeight.js +1 -0
  69. package/lib/hooks/useTheme.js +1 -0
  70. package/lib/hooks/useThemedStyles.js +1 -0
  71. package/lib/index.js +1 -0
  72. package/lib/providers/ThemeProvider.js +1 -0
  73. package/lib/providers/index.js +1 -0
  74. package/lib/theme/icons.js +1 -0
  75. package/lib/theme/index.js +1 -0
  76. package/lib/theme/styles.js +1 -0
  77. package/lib/theme/theme.js +1 -0
  78. package/lib/types/assets/StarIcon.d.ts +11 -0
  79. package/lib/types/assets/StarIcon.d.ts.map +1 -0
  80. package/lib/types/assets/index.d.ts +2 -0
  81. package/lib/types/assets/index.d.ts.map +1 -0
  82. package/lib/types/common/index.d.ts +2 -0
  83. package/lib/types/common/index.d.ts.map +1 -0
  84. package/lib/types/common/valueItem.d.ts +16 -0
  85. package/lib/types/common/valueItem.d.ts.map +1 -0
  86. package/lib/types/components/AlertIndicator.d.ts +16 -0
  87. package/lib/types/components/AlertIndicator.d.ts.map +1 -0
  88. package/lib/types/components/Avatar.d.ts +37 -0
  89. package/lib/types/components/Avatar.d.ts.map +1 -0
  90. package/lib/types/components/Panel.d.ts +10 -0
  91. package/lib/types/components/Panel.d.ts.map +1 -0
  92. package/lib/types/components/Rating.d.ts +50 -0
  93. package/lib/types/components/Rating.d.ts.map +1 -0
  94. package/lib/types/components/SwipeAction.d.ts +8 -0
  95. package/lib/types/components/SwipeAction.d.ts.map +1 -0
  96. package/lib/types/components/Toast.d.ts +13 -0
  97. package/lib/types/components/Toast.d.ts.map +1 -0
  98. package/lib/types/components/action/Action.d.ts +17 -0
  99. package/lib/types/components/action/Action.d.ts.map +1 -0
  100. package/lib/types/components/action/ActionBase.d.ts +9 -0
  101. package/lib/types/components/action/ActionBase.d.ts.map +1 -0
  102. package/lib/types/components/action/IconAction.d.ts +23 -0
  103. package/lib/types/components/action/IconAction.d.ts.map +1 -0
  104. package/lib/types/components/action/IconActionBase.d.ts +20 -0
  105. package/lib/types/components/action/IconActionBase.d.ts.map +1 -0
  106. package/lib/types/components/action/index.d.ts +5 -0
  107. package/lib/types/components/action/index.d.ts.map +1 -0
  108. package/lib/types/components/button/Button.d.ts +22 -0
  109. package/lib/types/components/button/Button.d.ts.map +1 -0
  110. package/lib/types/components/button/ButtonBase.d.ts +21 -0
  111. package/lib/types/components/button/ButtonBase.d.ts.map +1 -0
  112. package/lib/types/components/button/IconButton.d.ts +20 -0
  113. package/lib/types/components/button/IconButton.d.ts.map +1 -0
  114. package/lib/types/components/button/IconButtonBase.d.ts +19 -0
  115. package/lib/types/components/button/IconButtonBase.d.ts.map +1 -0
  116. package/lib/types/components/button/index.d.ts +5 -0
  117. package/lib/types/components/button/index.d.ts.map +1 -0
  118. package/lib/types/components/container/CollapsibleContainer.d.ts +10 -0
  119. package/lib/types/components/container/CollapsibleContainer.d.ts.map +1 -0
  120. package/lib/types/components/container/FloatingContainer.d.ts +23 -0
  121. package/lib/types/components/container/FloatingContainer.d.ts.map +1 -0
  122. package/lib/types/components/container/FormContainer.d.ts +8 -0
  123. package/lib/types/components/container/FormContainer.d.ts.map +1 -0
  124. package/lib/types/components/container/SwipeableContainer.d.ts +13 -0
  125. package/lib/types/components/container/SwipeableContainer.d.ts.map +1 -0
  126. package/lib/types/components/container/index.d.ts +5 -0
  127. package/lib/types/components/container/index.d.ts.map +1 -0
  128. package/lib/types/components/icon/Icon.d.ts +14 -0
  129. package/lib/types/components/icon/Icon.d.ts.map +1 -0
  130. package/lib/types/components/icon/IconBase.d.ts +15 -0
  131. package/lib/types/components/icon/IconBase.d.ts.map +1 -0
  132. package/lib/types/components/icon/InteractiveIcon.d.ts +16 -0
  133. package/lib/types/components/icon/InteractiveIcon.d.ts.map +1 -0
  134. package/lib/types/components/icon/componentWithIcon.d.ts +14 -0
  135. package/lib/types/components/icon/componentWithIcon.d.ts.map +1 -0
  136. package/lib/types/components/icon/index.d.ts +5 -0
  137. package/lib/types/components/icon/index.d.ts.map +1 -0
  138. package/lib/types/components/index.d.ts +23 -0
  139. package/lib/types/components/index.d.ts.map +1 -0
  140. package/lib/types/components/input/CounterInput.d.ts +10 -0
  141. package/lib/types/components/input/CounterInput.d.ts.map +1 -0
  142. package/lib/types/components/input/DropdownInput.d.ts +8 -0
  143. package/lib/types/components/input/DropdownInput.d.ts.map +1 -0
  144. package/lib/types/components/input/DropdownInputBase.d.ts +38 -0
  145. package/lib/types/components/input/DropdownInputBase.d.ts.map +1 -0
  146. package/lib/types/components/input/InputAction.d.ts +9 -0
  147. package/lib/types/components/input/InputAction.d.ts.map +1 -0
  148. package/lib/types/components/input/InputBase.d.ts +28 -0
  149. package/lib/types/components/input/InputBase.d.ts.map +1 -0
  150. package/lib/types/components/input/InputScaffold.d.ts +29 -0
  151. package/lib/types/components/input/InputScaffold.d.ts.map +1 -0
  152. package/lib/types/components/input/NumberInput.d.ts +31 -0
  153. package/lib/types/components/input/NumberInput.d.ts.map +1 -0
  154. package/lib/types/components/input/NumberInputBase.d.ts +20 -0
  155. package/lib/types/components/input/NumberInputBase.d.ts.map +1 -0
  156. package/lib/types/components/input/RatingInput.d.ts +13 -0
  157. package/lib/types/components/input/RatingInput.d.ts.map +1 -0
  158. package/lib/types/components/input/SelectionInput.d.ts +41 -0
  159. package/lib/types/components/input/SelectionInput.d.ts.map +1 -0
  160. package/lib/types/components/input/TextInput.d.ts +8 -0
  161. package/lib/types/components/input/TextInput.d.ts.map +1 -0
  162. package/lib/types/components/input/TimeInput.d.ts +17 -0
  163. package/lib/types/components/input/TimeInput.d.ts.map +1 -0
  164. package/lib/types/components/input/ToggleInput.d.ts +30 -0
  165. package/lib/types/components/input/ToggleInput.d.ts.map +1 -0
  166. package/lib/types/components/input/index.d.ts +24 -0
  167. package/lib/types/components/input/index.d.ts.map +1 -0
  168. package/lib/types/components/listItem/ListItem.d.ts +41 -0
  169. package/lib/types/components/listItem/ListItem.d.ts.map +1 -0
  170. package/lib/types/components/listItem/ListItemAlert.d.ts +6 -0
  171. package/lib/types/components/listItem/ListItemAlert.d.ts.map +1 -0
  172. package/lib/types/components/listItem/ListItemAvatar.d.ts +6 -0
  173. package/lib/types/components/listItem/ListItemAvatar.d.ts.map +1 -0
  174. package/lib/types/components/listItem/ListItemFooter.d.ts +6 -0
  175. package/lib/types/components/listItem/ListItemFooter.d.ts.map +1 -0
  176. package/lib/types/components/listItem/ListItemRow.d.ts +6 -0
  177. package/lib/types/components/listItem/ListItemRow.d.ts.map +1 -0
  178. package/lib/types/components/listItem/index.d.ts +6 -0
  179. package/lib/types/components/listItem/index.d.ts.map +1 -0
  180. package/lib/types/components/menu/Menu.d.ts +16 -0
  181. package/lib/types/components/menu/Menu.d.ts.map +1 -0
  182. package/lib/types/components/menu/MenuItem.d.ts +14 -0
  183. package/lib/types/components/menu/MenuItem.d.ts.map +1 -0
  184. package/lib/types/components/menu/index.d.ts +5 -0
  185. package/lib/types/components/menu/index.d.ts.map +1 -0
  186. package/lib/types/components/tag/Tag.d.ts +19 -0
  187. package/lib/types/components/tag/Tag.d.ts.map +1 -0
  188. package/lib/types/components/tag/TagIcon.d.ts +2 -0
  189. package/lib/types/components/tag/TagIcon.d.ts.map +1 -0
  190. package/lib/types/components/tag/index.d.ts +3 -0
  191. package/lib/types/components/tag/index.d.ts.map +1 -0
  192. package/lib/types/components/text/HighlightedText.d.ts +19 -0
  193. package/lib/types/components/text/HighlightedText.d.ts.map +1 -0
  194. package/lib/types/components/text/InteractiveText.d.ts +18 -0
  195. package/lib/types/components/text/InteractiveText.d.ts.map +1 -0
  196. package/lib/types/components/text/Text.d.ts +19 -0
  197. package/lib/types/components/text/Text.d.ts.map +1 -0
  198. package/lib/types/components/text/index.d.ts +4 -0
  199. package/lib/types/components/text/index.d.ts.map +1 -0
  200. package/lib/types/hooks/index.d.ts +6 -0
  201. package/lib/types/hooks/index.d.ts.map +1 -0
  202. package/lib/types/hooks/useForwardedRef.d.ts +3 -0
  203. package/lib/types/hooks/useForwardedRef.d.ts.map +1 -0
  204. package/lib/types/hooks/useKeyboardHeight.d.ts +4 -0
  205. package/lib/types/hooks/useKeyboardHeight.d.ts.map +1 -0
  206. package/lib/types/hooks/usePersistentKeyboardHeight.d.ts +4 -0
  207. package/lib/types/hooks/usePersistentKeyboardHeight.d.ts.map +1 -0
  208. package/lib/types/hooks/useTheme.d.ts +2 -0
  209. package/lib/types/hooks/useTheme.d.ts.map +1 -0
  210. package/lib/types/hooks/useThemedStyles.d.ts +40 -0
  211. package/lib/types/hooks/useThemedStyles.d.ts.map +1 -0
  212. package/lib/types/index.d.ts +7 -0
  213. package/lib/types/index.d.ts.map +1 -0
  214. package/lib/types/providers/ThemeProvider.d.ts +18 -0
  215. package/lib/types/providers/ThemeProvider.d.ts.map +1 -0
  216. package/lib/types/providers/index.d.ts +2 -0
  217. package/lib/types/providers/index.d.ts.map +1 -0
  218. package/lib/types/theme/icons.d.ts +24 -0
  219. package/lib/types/theme/icons.d.ts.map +1 -0
  220. package/lib/types/theme/index.d.ts +4 -0
  221. package/lib/types/theme/index.d.ts.map +1 -0
  222. package/lib/types/theme/styles.d.ts +47 -0
  223. package/lib/types/theme/styles.d.ts.map +1 -0
  224. package/lib/types/theme/theme.d.ts +87 -0
  225. package/lib/types/theme/theme.d.ts.map +1 -0
  226. package/package.json +69 -0
@@ -0,0 +1,6 @@
1
+ import type { FC, ReactNode } from "react";
2
+ export interface ListItemAlertProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const ListItemAlert: FC<ListItemAlertProps>;
6
+ //# sourceMappingURL=ListItemAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/listItem/ListItemAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK3C,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAIhD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { FC, ReactNode } from "react";
2
+ export interface ListItemAvatarProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const ListItemAvatar: FC<ListItemAvatarProps>;
6
+ //# sourceMappingURL=ListItemAvatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemAvatar.d.ts","sourceRoot":"","sources":["../../../../src/components/listItem/ListItemAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK3C,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAIlD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { FC, ReactNode } from "react";
2
+ export interface ListItemFooterProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const ListItemFooter: FC<ListItemFooterProps>;
6
+ //# sourceMappingURL=ListItemFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/listItem/ListItemFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK3C,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAIlD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { FC, ReactElement } from "react";
2
+ export interface ListItemRowProps {
3
+ contentItems?: Array<ReactElement> | ReactElement;
4
+ }
5
+ export declare const ListItemRow: FC<ListItemRowProps>;
6
+ //# sourceMappingURL=ListItemRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemRow.d.ts","sourceRoot":"","sources":["../../../../src/components/listItem/ListItemRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAM9C,MAAM,WAAW,gBAAgB;IAC7B,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC;CACrD;AACD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAiB5C,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ListItem, type ListItemProps, type ListItemStyles } from "./ListItem";
2
+ export { ListItemAlert, type ListItemAlertProps } from "./ListItemAlert";
3
+ export { ListItemAvatar, type ListItemAvatarProps } from "./ListItemAvatar";
4
+ export { ListItemFooter, type ListItemFooterProps } from "./ListItemFooter";
5
+ export { ListItemRow, type ListItemRowProps } from "./ListItemRow";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/listItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { FC, PropsWithChildren } from "react";
2
+ import { type ColorValue } from "react-native";
3
+ import type { DeepPartial } from "@reillymc/es-utils";
4
+ export type MenuStyles = {
5
+ parentMargin: number;
6
+ backgroundColor: ColorValue;
7
+ borderRadius: number;
8
+ padding: number;
9
+ gap: number;
10
+ };
11
+ export type MenuProps = PropsWithChildren<{
12
+ style?: DeepPartial<MenuStyles>;
13
+ reverse?: boolean;
14
+ }>;
15
+ export declare const Menu: FC<MenuProps>;
16
+ //# sourceMappingURL=Menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAItD,MAAM,MAAM,UAAU,GAAG;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,UAAU,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC;IACtC,KAAK,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC,CAAC;AAEH,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAe9B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { FC } from "react";
2
+ export type MenuItemStyles = {
3
+ paddingHorizontal: number;
4
+ paddingVertical: number;
5
+ borderRadius: number;
6
+ };
7
+ export interface MenuItemProps {
8
+ label: string;
9
+ description?: string;
10
+ searchValue?: string;
11
+ onPress: () => void;
12
+ }
13
+ export declare const MenuItem: FC<MenuItemProps>;
14
+ //# sourceMappingURL=MenuItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,MAAM,MAAM,cAAc,GAAG;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA8BtC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type { MenuProps, MenuStyles } from "./Menu";
2
+ export { Menu } from "./Menu";
3
+ export type { MenuItemProps, MenuItemStyles } from "./MenuItem";
4
+ export { MenuItem } from "./MenuItem";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { FC, ReactElement } from "react";
2
+ import { type StyleProp, type ViewStyle } from "react-native";
3
+ export interface TagStyles {
4
+ internalSpacing: number;
5
+ borderRadius: number;
6
+ padding: number;
7
+ }
8
+ export interface TagProps {
9
+ label?: string;
10
+ /**
11
+ * [TagIcon](./TagIcon.tsx)
12
+ */
13
+ icon?: ReactElement;
14
+ variant?: "light" | "dark";
15
+ style?: StyleProp<ViewStyle>;
16
+ onPress?: () => void;
17
+ }
18
+ export declare const Tag: FC<TagProps>;
19
+ //# sourceMappingURL=Tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAEH,KAAK,SAAS,EAEd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAKtB,MAAM,WAAW,SAAS;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,QAAQ;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC,QAAQ,CAe5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const TagIcon: <G extends string>(props: object & import("../icon/componentWithIcon").IconComponentProps<G>) => import("react").ReactNode;
2
+ //# sourceMappingURL=TagIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/TagIcon.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,4HAYlB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Tag, type TagProps, type TagStyles } from "./Tag";
2
+ export { TagIcon } from "./TagIcon";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type React from "react";
2
+ import { type TextStyle } from "react-native";
3
+ import type { DeepPartial } from "@reillymc/es-utils";
4
+ import { type TextProps, type TextVariant } from "./Text";
5
+ /**
6
+ * Escapes any characters that would interfere with RegEx processing.
7
+ */
8
+ export declare const EscapeForRegexProcessing: (string: string) => string;
9
+ export interface HighlightedTextStyles {
10
+ highlightedWeight: Record<TextVariant, TextStyle["fontWeight"]>;
11
+ }
12
+ export interface HighlightedTextProps extends Pick<TextProps, "variant"> {
13
+ text?: string;
14
+ textStyles?: TextProps["style"];
15
+ style?: DeepPartial<HighlightedTextStyles>;
16
+ highlight?: string;
17
+ }
18
+ export declare const HighlightedText: React.FunctionComponent<HighlightedTextProps>;
19
+ //# sourceMappingURL=HighlightedText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HighlightedText.d.ts","sourceRoot":"","sources":["../../../../src/components/text/HighlightedText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,WACN,CAAC;AAElD,MAAM,WAAW,qBAAqB;IAClC,iBAAiB,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;CACnE;AACD,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAsCzE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { FC } from "react";
2
+ import { type ColorValue, type PressableStateCallbackType } from "react-native";
3
+ import type { DeepPartial } from "@reillymc/es-utils";
4
+ import { type TextProps } from "./Text";
5
+ export type InteractiveTextState = "enabled" | "disabled" | "pressed";
6
+ export type InteractiveTextStyles = {
7
+ color: {
8
+ [State in InteractiveTextState]: ColorValue;
9
+ };
10
+ };
11
+ export interface InteractiveTextProps extends PressableStateCallbackType {
12
+ children: string;
13
+ style?: DeepPartial<InteractiveTextStyles>;
14
+ textVariant?: TextProps["variant"];
15
+ disabled?: boolean;
16
+ }
17
+ export declare const InteractiveText: FC<InteractiveTextProps>;
18
+ //# sourceMappingURL=InteractiveText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InteractiveText.d.ts","sourceRoot":"","sources":["../../../../src/components/text/InteractiveText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EACH,KAAK,UAAU,EACf,KAAK,0BAA0B,EAElC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IAChC,KAAK,EAAE;SACF,KAAK,IAAI,oBAAoB,GAAG,UAAU;KAC9C,CAAC;CACL,CAAC;AAEF,MAAM,WAAW,oBAAqB,SAAQ,0BAA0B;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC3C,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAyBpD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { FC, ReactNode } from "react";
2
+ import { type TextProps as RnTextProps, type TextStyle } from "react-native";
3
+ export type TextVariant = "display" | "title" | "heading" | "label" | "body" | "caption";
4
+ export interface TextStyles {
5
+ color: string;
6
+ font: {
7
+ [Variant in TextVariant]: {
8
+ family: string;
9
+ weight: TextStyle["fontWeight"];
10
+ size: number;
11
+ };
12
+ };
13
+ }
14
+ export interface TextProps extends RnTextProps {
15
+ variant?: TextVariant;
16
+ children?: ReactNode;
17
+ }
18
+ export declare const Text: FC<TextProps>;
19
+ //# sourceMappingURL=Text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAEH,KAAK,SAAS,IAAI,WAAW,EAE7B,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,WAAW,GACjB,SAAS,GACT,OAAO,GACP,SAAS,GACT,OAAO,GACP,MAAM,GACN,SAAS,CAAC;AAEhB,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE;SACD,OAAO,IAAI,WAAW,GAAG;YACtB,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;YAChC,IAAI,EAAE,MAAM,CAAC;SAChB;KACJ,CAAC;CACL;AAED,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC1C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAe9B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { HighlightedText, type HighlightedTextProps, type HighlightedTextStyles, } from "./HighlightedText";
2
+ export { InteractiveText, type InteractiveTextProps, type InteractiveTextStyles, } from "./InteractiveText";
3
+ export { Text, type TextProps, type TextStyles } from "./Text";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACH,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { useForwardedRef } from "./useForwardedRef";
2
+ export { useKeyboardHeight } from "./useKeyboardHeight";
3
+ export { usePersistentKeyboardHeight } from "./usePersistentKeyboardHeight";
4
+ export { useTheme } from "./useTheme";
5
+ export { type ThemedStyles, useStyles, useThemedStyles, useThemedStylesExternal, } from "./useThemedStyles";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACH,KAAK,YAAY,EACjB,SAAS,EACT,eAAe,EACf,uBAAuB,GAC1B,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React, { type RefObject } from "react";
2
+ export declare const useForwardedRef: <T>(ref: RefObject<T> | undefined | null) => React.RefObject<T | null>;
3
+ //# sourceMappingURL=useForwardedRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useForwardedRef.d.ts","sourceRoot":"","sources":["../../../src/hooks/useForwardedRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,8BAItE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const useKeyboardHeight: () => {
2
+ keyboardHeight: number;
3
+ };
4
+ //# sourceMappingURL=useKeyboardHeight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useKeyboardHeight.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB;;CAqB7B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const usePersistentKeyboardHeight: () => {
2
+ keyboardHeight: number;
3
+ };
4
+ //# sourceMappingURL=usePersistentKeyboardHeight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePersistentKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePersistentKeyboardHeight.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;CAgBvC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const useTheme: () => import("./useThemedStyles").ThemedStyles;
2
+ //# sourceMappingURL=useTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,gDAA0B,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { ThemeContextDefinition as ThemedStyles } from "../providers";
2
+ import { type Icons, type StyleOverrides, type Styles } from "../theme";
3
+ export type { ThemedStyles };
4
+ type StyleOnlyKey = keyof Styles;
5
+ type IconOnlyKey = keyof Icons<any>;
6
+ type ComponentKey = StyleOnlyKey | IconOnlyKey;
7
+ type ComponentRegistry = {
8
+ [K in keyof Styles | keyof Icons<any>]: K extends keyof Styles ? K extends keyof Icons<any> ? {
9
+ style: Styles[K];
10
+ icons: Icons<any>[K];
11
+ } : {
12
+ style: Styles[K];
13
+ } : K extends keyof Icons<any> ? {
14
+ icons: Icons<any>[K];
15
+ } : never;
16
+ };
17
+ type StyleResult<C extends keyof ComponentRegistry> = ComponentRegistry[C];
18
+ type UseStylesReturn<C extends ComponentKey, G = undefined> = [
19
+ generated: G,
20
+ component: StyleResult<C>
21
+ ];
22
+ type AnyGenerator = (...args: any[]) => any;
23
+ type GeneratorResult<G extends AnyGenerator> = ReturnType<G>;
24
+ type GeneratorProps<G extends AnyGenerator> = Parameters<G> extends [ThemedStyles, infer U] ? U : never;
25
+ type UseStylesOptions<G extends AnyGenerator> = [GeneratorProps<G>] extends [
26
+ never
27
+ ] ? [
28
+ options?: {
29
+ styles?: StyleOverrides;
30
+ }
31
+ ] : [
32
+ options: {
33
+ styles?: StyleOverrides;
34
+ props: GeneratorProps<G>;
35
+ }
36
+ ];
37
+ export declare const useThemedStyles: <C extends ComponentKey, G extends (...args: any[]) => any>(componentName: C, generator: G, ...[options]: UseStylesOptions<G>) => UseStylesReturn<C, GeneratorResult<G>>;
38
+ export declare const useThemedStylesExternal: <G extends (...args: any[]) => any>(generator: G, ...[options]: UseStylesOptions<G>) => GeneratorResult<G>;
39
+ export declare const useStyles: (componentStyles: StyleOverrides) => Styles;
40
+ //# sourceMappingURL=useThemedStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedStyles.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EACH,KAAK,KAAK,EAEV,KAAK,cAAc,EACnB,KAAK,MAAM,EACd,MAAM,UAAU,CAAC;AAGlB,YAAY,EAAE,YAAY,EAAE,CAAC;AAS7B,KAAK,YAAY,GAAG,MAAM,MAAM,CAAC;AACjC,KAAK,WAAW,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;AACpC,KAAK,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;AAE/C,KAAK,iBAAiB,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;QACL,MAAM,CAAC,EAAE,cAAc,CAAC;QACxB,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;KAC5B;CACJ,CAAC;AAER,eAAO,MAAM,eAAe,GACxB,CAAC,SAAS,YAAY,EACtB,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAEjC,eAAe,CAAC,EAChB,WAAW,CAAC,EACZ,GAAG,WAAgB,gBAAgB,CAAC,CAAC,CAAC,KACvC,eAAe,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CA4CvC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACrE,WAAW,CAAC,EACZ,GAAG,WAAgB,gBAAgB,CAAC,CAAC,CAAC,KACvC,eAAe,CAAC,CAAC,CAyBnB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,iBAAiB,cAAc,WASxD,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** biome-ignore-all lint/performance/noReExportAll: top level folder exports should all be exposed for simple package api */
2
+ export type { ValueItem } from "./common";
3
+ export * from "./components";
4
+ export { type ThemedStyles, useTheme, useThemedStylesExternal as useThemedStyles, } from "./hooks";
5
+ export * from "./providers";
6
+ export * from "./theme";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,6HAA6H;AAC7H,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,OAAO,EACH,KAAK,YAAY,EACjB,QAAQ,EACR,uBAAuB,IAAI,eAAe,GAC7C,MAAM,SAAS,CAAC;AACjB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { type FC, type ReactNode } from "react";
2
+ import type { DeepPartial } from "@reillymc/es-utils";
3
+ import { type Icons, type Styles, type Theme } from "../theme";
4
+ export interface ThemeContextDefinition {
5
+ theme: Theme;
6
+ styles: Styles;
7
+ icons: Icons<any>;
8
+ }
9
+ export declare const ThemeContext: import("react").Context<ThemeContextDefinition>;
10
+ interface ThemeProviderProps {
11
+ theme?: DeepPartial<Theme>;
12
+ styles?: Styles;
13
+ icons?: Icons<any>;
14
+ children?: ReactNode;
15
+ }
16
+ export declare const ThemeProvider: FC<ThemeProviderProps>;
17
+ export {};
18
+ //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAIH,KAAK,KAAK,EAEV,KAAK,MAAM,EACX,KAAK,KAAK,EACb,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,iDAIvB,CAAC;AAEH,UAAU,kBAAkB;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAahD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { ThemeContext, type ThemeContextDefinition, ThemeProvider, } from "./ThemeProvider";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,KAAK,sBAAsB,EAC3B,aAAa,GAChB,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { FC } from "react";
2
+ import type { ColorValue } from "react-native";
3
+ import { type OcticonsIconName } from "@react-native-vector-icons/octicons";
4
+ import type { CounterInputIcons, InputScaffoldIcons, NumberInputIcons, SelectionInputIcons, TimeInputIcons, ToggleInputIcons } from "../components";
5
+ export type GlyphMap = Record<string, number | string>;
6
+ export type IconComponent<G extends GlyphMap> = FC<{
7
+ name: keyof G;
8
+ size?: number;
9
+ color?: ColorValue;
10
+ } & object>;
11
+ export type ComponentIconAssets<K extends string> = K;
12
+ type ComponentAssetMap<G extends string, K extends string> = Record<K, G>;
13
+ export type Icons<G extends string> = {
14
+ iconSet: IconComponent<Record<G, number | string>>;
15
+ inputScaffold: ComponentAssetMap<G, InputScaffoldIcons>;
16
+ counterInput: ComponentAssetMap<G, CounterInputIcons>;
17
+ numberInput: ComponentAssetMap<G, NumberInputIcons>;
18
+ selectionInput: ComponentAssetMap<G, SelectionInputIcons>;
19
+ timeInput: ComponentAssetMap<G, TimeInputIcons>;
20
+ toggleInput: ComponentAssetMap<G, ToggleInputIcons>;
21
+ };
22
+ export declare const DefaultIcons: Icons<OcticonsIconName>;
23
+ export {};
24
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/theme/icons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAEH,KAAK,gBAAgB,EACxB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EACR,iBAAiB,EACjB,kBA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, type IconComponent, type Icons, } from "./icons";
2
+ export { type CreateStyles, createDefaultStyles, MergeStyles, type StyleOverrides, type Styles, } from "./styles";
3
+ export { DefaultTheme, MergeTheme, type Theme, type ThemeOverrides, } from "./theme";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,mBAAmB,EACxB,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,KAAK,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EACH,KAAK,YAAY,EACjB,mBAAmB,EACnB,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,MAAM,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EACH,YAAY,EACZ,UAAU,EACV,KAAK,KAAK,EACV,KAAK,cAAc,GACtB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,47 @@
1
+ import type { DeepPartial } from "@reillymc/es-utils";
2
+ import type { ActionStyles, AlertIndicatorStyles, AvatarStyles, ButtonBaseStyles, ButtonStyles, DropdownInputStyles, FloatingContainerStyles, HighlightedTextStyles, IconActionBaseStyles, IconActionStyles, IconBaseStyles, IconButtonBaseStyles, IconButtonStyles, IconStyles, InputActionStyles, InputBaseStyles, InputScaffoldStyles, InteractiveIconStyles, InteractiveTextStyles, ListItemStyles, MenuItemStyles, MenuStyles, RatingInputStyles, RatingStyles, SelectionInputStyles, SwipeActionStyles, TagStyles, TextStyles, ToastStyles, ToggleInputStyles } from "../components";
3
+ import type { Theme } from "./theme";
4
+ export type Styles = {
5
+ text: TextStyles;
6
+ interactiveText: InteractiveTextStyles;
7
+ highlightedText: HighlightedTextStyles;
8
+ icon: IconStyles;
9
+ iconBase: IconBaseStyles;
10
+ interactiveIcon: InteractiveIconStyles;
11
+ action: ActionStyles;
12
+ iconAction: IconActionStyles;
13
+ iconActionBase: IconActionBaseStyles;
14
+ buttonBase: ButtonBaseStyles;
15
+ button: ButtonStyles;
16
+ iconButtonBase: IconButtonBaseStyles;
17
+ iconButton: IconButtonStyles;
18
+ inputBase: InputBaseStyles;
19
+ inputScaffold: InputScaffoldStyles;
20
+ inputAction: InputActionStyles;
21
+ toggleInput: ToggleInputStyles;
22
+ selectionInput: SelectionInputStyles;
23
+ ratingInput: RatingInputStyles;
24
+ rating: RatingStyles;
25
+ alertIndicator: AlertIndicatorStyles;
26
+ dropdownInput: DropdownInputStyles;
27
+ listItem: ListItemStyles;
28
+ avatar: AvatarStyles;
29
+ common: {
30
+ action: {
31
+ fontSize: {
32
+ [Size in "small" | "regular" | "large"]: number;
33
+ };
34
+ };
35
+ };
36
+ toast: ToastStyles;
37
+ menu: MenuStyles;
38
+ menuItem: MenuItemStyles;
39
+ swipeAction: SwipeActionStyles;
40
+ floatingContainer: FloatingContainerStyles;
41
+ tag: TagStyles;
42
+ };
43
+ export type StyleOverrides = DeepPartial<Styles>;
44
+ export type CreateStyles = (theme: Theme) => Styles;
45
+ export declare const createDefaultStyles: CreateStyles;
46
+ export declare const MergeStyles: (styles: Styles, overrides?: StyleOverrides | undefined) => Styles;
47
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/theme/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EACR,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ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BAAiB,EAAE,uBAAuB,CAAC;IAC3C,GAAG,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAEjD,MAAM,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC;AAEpD,eAAO,MAAM,mBAAmB,EAAE,YAwajC,CAAC;AAEF,eAAO,MAAM,WAAW,GACpB,QAAQ,MAAM,EACd,YAAW,cAAc,GAAG,SAAc,KAC3C,MAAsC,CAAC"}
@@ -0,0 +1,87 @@
1
+ import type { DeepPartial } from "@reillymc/es-utils";
2
+ export type Theme = typeof DefaultTheme;
3
+ export type ThemeOverrides = DeepPartial<Theme>;
4
+ export declare const DefaultTheme: {
5
+ font: {
6
+ family: {
7
+ sans: string;
8
+ mono: string;
9
+ };
10
+ size: {
11
+ tiny: number;
12
+ small: number;
13
+ regular: number;
14
+ emphasised: number;
15
+ large: number;
16
+ xLarge: number;
17
+ xxLarge: number;
18
+ };
19
+ };
20
+ color: {
21
+ primary: string;
22
+ primaryDark: string;
23
+ primaryLight: string;
24
+ secondary: string;
25
+ secondaryHighlight: string;
26
+ secondaryDisabled: string;
27
+ tertiary: string;
28
+ destructive: string;
29
+ destructiveHighlight: string;
30
+ light: string;
31
+ white: string;
32
+ black: string;
33
+ red: string;
34
+ orange: string;
35
+ green: string;
36
+ blue: string;
37
+ purple: string;
38
+ textPrimary: string;
39
+ textSecondary: string;
40
+ textHighlight: string;
41
+ textInverted: string;
42
+ textDisabled: string;
43
+ textOnPrimary: string;
44
+ textOnSecondary: string;
45
+ textOnDestructive: string;
46
+ background: string;
47
+ backgroundHighlight: string;
48
+ foreground: string;
49
+ foregroundHighlight: string;
50
+ backgroundOverlay: string;
51
+ shadow: string;
52
+ border: string;
53
+ inputBackground: string;
54
+ inputBackgroundDisabled: string;
55
+ inputText: string;
56
+ pressOverlay: string;
57
+ alert: string;
58
+ error: string;
59
+ success: string;
60
+ warning: string;
61
+ };
62
+ spacing: {
63
+ screenContentTop: number;
64
+ pageHorizontal: number;
65
+ pageBottom: number;
66
+ pageTop: number;
67
+ navigationActionHorizontal: number;
68
+ large: number;
69
+ medium: number;
70
+ small: number;
71
+ tiny: number;
72
+ };
73
+ border: {
74
+ radius: {
75
+ tight: number;
76
+ regular: number;
77
+ loose: number;
78
+ };
79
+ width: {
80
+ thick: number;
81
+ regular: number;
82
+ thin: number;
83
+ };
84
+ };
85
+ };
86
+ export declare const MergeTheme: (first: ThemeOverrides, second: ThemeOverrides | undefined) => Theme;
87
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqGxB,CAAC;AAEF,eAAO,MAAM,UAAU,GACnB,OAAO,cAAc,EACrB,QAAQ,cAAc,GAAG,SAAS,KACnC,KA4CD,CAAC"}