@reillymc/react-native-components 0.11.9 → 0.11.11

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 (208) hide show
  1. package/lib/components/input/dropdownInput/DropdownInput.styles.js +1 -1
  2. package/lib/components/swipe/SwipeAction.styles.js +1 -1
  3. package/lib/components/text/HighlightedText.js +1 -1
  4. package/lib/hooks/useThemedStyles.js +1 -1
  5. package/lib/icons/componentIconAssets.js +0 -0
  6. package/lib/icons/componentIcons.js +1 -0
  7. package/lib/providers/ThemeContext.js +1 -1
  8. package/lib/providers/ThemeProvider.js +1 -1
  9. package/lib/style/createThemedStyles.js +1 -0
  10. package/lib/style/index.js +1 -0
  11. package/lib/style/styleFactory.js +1 -0
  12. package/lib/{theme → style}/styles.js +1 -1
  13. package/lib/theme/index.js +1 -1
  14. package/lib/theme/theme.js +1 -1
  15. package/lib/types/components/action/Action.d.ts +1 -7
  16. package/lib/types/components/action/Action.d.ts.map +1 -1
  17. package/lib/types/components/action/Action.styles.d.ts +9 -3
  18. package/lib/types/components/action/Action.styles.d.ts.map +1 -1
  19. package/lib/types/components/action/IconAction.d.ts +2 -15
  20. package/lib/types/components/action/IconAction.d.ts.map +1 -1
  21. package/lib/types/components/action/IconAction.styles.d.ts +17 -3
  22. package/lib/types/components/action/IconAction.styles.d.ts.map +1 -1
  23. package/lib/types/components/action/IconActionBase.d.ts +2 -11
  24. package/lib/types/components/action/IconActionBase.d.ts.map +1 -1
  25. package/lib/types/components/action/IconActionBase.styles.d.ts +13 -3
  26. package/lib/types/components/action/IconActionBase.styles.d.ts.map +1 -1
  27. package/lib/types/components/action/index.d.ts +3 -3
  28. package/lib/types/components/action/index.d.ts.map +1 -1
  29. package/lib/types/components/alert/AlertIndicator.d.ts +2 -8
  30. package/lib/types/components/alert/AlertIndicator.d.ts.map +1 -1
  31. package/lib/types/components/alert/AlertIndicator.styles.d.ts +10 -3
  32. package/lib/types/components/alert/AlertIndicator.styles.d.ts.map +1 -1
  33. package/lib/types/components/alert/index.d.ts +1 -1
  34. package/lib/types/components/alert/index.d.ts.map +1 -1
  35. package/lib/types/components/avatar/Avatar.d.ts +2 -20
  36. package/lib/types/components/avatar/Avatar.d.ts.map +1 -1
  37. package/lib/types/components/avatar/Avatar.styles.d.ts +21 -3
  38. package/lib/types/components/avatar/Avatar.styles.d.ts.map +1 -1
  39. package/lib/types/components/avatar/index.d.ts +1 -1
  40. package/lib/types/components/avatar/index.d.ts.map +1 -1
  41. package/lib/types/components/button/Button.d.ts +2 -12
  42. package/lib/types/components/button/Button.d.ts.map +1 -1
  43. package/lib/types/components/button/Button.styles.d.ts +14 -3
  44. package/lib/types/components/button/Button.styles.d.ts.map +1 -1
  45. package/lib/types/components/button/ButtonBase.d.ts +1 -12
  46. package/lib/types/components/button/ButtonBase.d.ts.map +1 -1
  47. package/lib/types/components/button/ButtonBase.styles.d.ts +14 -3
  48. package/lib/types/components/button/ButtonBase.styles.d.ts.map +1 -1
  49. package/lib/types/components/button/IconButton.d.ts +3 -12
  50. package/lib/types/components/button/IconButton.d.ts.map +1 -1
  51. package/lib/types/components/button/IconButton.styles.d.ts +14 -3
  52. package/lib/types/components/button/IconButton.styles.d.ts.map +1 -1
  53. package/lib/types/components/button/IconButtonBase.d.ts +3 -12
  54. package/lib/types/components/button/IconButtonBase.d.ts.map +1 -1
  55. package/lib/types/components/button/IconButtonBase.styles.d.ts +14 -3
  56. package/lib/types/components/button/IconButtonBase.styles.d.ts.map +1 -1
  57. package/lib/types/components/button/index.d.ts +4 -4
  58. package/lib/types/components/button/index.d.ts.map +1 -1
  59. package/lib/types/components/container/anchoredContainer/AnchoredContainer.d.ts +0 -3
  60. package/lib/types/components/container/anchoredContainer/AnchoredContainer.d.ts.map +1 -1
  61. package/lib/types/components/container/anchoredContainer/AnchoredContainer.styles.d.ts +5 -3
  62. package/lib/types/components/container/anchoredContainer/AnchoredContainer.styles.d.ts.map +1 -1
  63. package/lib/types/components/container/anchoredContainer/index.d.ts +1 -1
  64. package/lib/types/components/container/anchoredContainer/index.d.ts.map +1 -1
  65. package/lib/types/components/container/index.d.ts +1 -1
  66. package/lib/types/components/container/index.d.ts.map +1 -1
  67. package/lib/types/components/icon/Icon.d.ts +1 -6
  68. package/lib/types/components/icon/Icon.d.ts.map +1 -1
  69. package/lib/types/components/icon/Icon.styles.d.ts +8 -3
  70. package/lib/types/components/icon/Icon.styles.d.ts.map +1 -1
  71. package/lib/types/components/icon/IconBase.d.ts +1 -5
  72. package/lib/types/components/icon/IconBase.d.ts.map +1 -1
  73. package/lib/types/components/icon/IconBase.styles.d.ts +7 -3
  74. package/lib/types/components/icon/IconBase.styles.d.ts.map +1 -1
  75. package/lib/types/components/icon/IconComponentProps.d.ts +1 -1
  76. package/lib/types/components/icon/IconComponentProps.d.ts.map +1 -1
  77. package/lib/types/components/icon/InteractiveIcon.d.ts +1 -8
  78. package/lib/types/components/icon/InteractiveIcon.d.ts.map +1 -1
  79. package/lib/types/components/icon/InteractiveIcon.styles.d.ts +10 -3
  80. package/lib/types/components/icon/InteractiveIcon.styles.d.ts.map +1 -1
  81. package/lib/types/components/icon/index.d.ts +3 -3
  82. package/lib/types/components/icon/index.d.ts.map +1 -1
  83. package/lib/types/components/index.d.ts +15 -15
  84. package/lib/types/components/index.d.ts.map +1 -1
  85. package/lib/types/components/input/CounterInput.d.ts +1 -1
  86. package/lib/types/components/input/CounterInput.d.ts.map +1 -1
  87. package/lib/types/components/input/InputAction.d.ts +1 -4
  88. package/lib/types/components/input/InputAction.d.ts.map +1 -1
  89. package/lib/types/components/input/InputAction.styles.d.ts +6 -3
  90. package/lib/types/components/input/InputAction.styles.d.ts.map +1 -1
  91. package/lib/types/components/input/InputBase.d.ts +2 -17
  92. package/lib/types/components/input/InputBase.d.ts.map +1 -1
  93. package/lib/types/components/input/InputBase.styles.d.ts +19 -3
  94. package/lib/types/components/input/InputBase.styles.d.ts.map +1 -1
  95. package/lib/types/components/input/InputScaffold.d.ts +2 -11
  96. package/lib/types/components/input/InputScaffold.d.ts.map +1 -1
  97. package/lib/types/components/input/InputScaffold.styles.d.ts +12 -3
  98. package/lib/types/components/input/InputScaffold.styles.d.ts.map +1 -1
  99. package/lib/types/components/input/NumberInput.d.ts +1 -1
  100. package/lib/types/components/input/NumberInput.d.ts.map +1 -1
  101. package/lib/types/components/input/NumberInputBase.d.ts +0 -1
  102. package/lib/types/components/input/NumberInputBase.d.ts.map +1 -1
  103. package/lib/types/components/input/RatingInput.d.ts +1 -2
  104. package/lib/types/components/input/RatingInput.d.ts.map +1 -1
  105. package/lib/types/components/input/SelectionInput.d.ts +2 -13
  106. package/lib/types/components/input/SelectionInput.d.ts.map +1 -1
  107. package/lib/types/components/input/SelectionInput.styles.d.ts +14 -3
  108. package/lib/types/components/input/SelectionInput.styles.d.ts.map +1 -1
  109. package/lib/types/components/input/TextInput.d.ts +0 -1
  110. package/lib/types/components/input/TextInput.d.ts.map +1 -1
  111. package/lib/types/components/input/TimeInput.d.ts +1 -1
  112. package/lib/types/components/input/TimeInput.d.ts.map +1 -1
  113. package/lib/types/components/input/ToggleInput.d.ts +4 -19
  114. package/lib/types/components/input/ToggleInput.d.ts.map +1 -1
  115. package/lib/types/components/input/ToggleInput.styles.d.ts +19 -3
  116. package/lib/types/components/input/ToggleInput.styles.d.ts.map +1 -1
  117. package/lib/types/components/input/dropdownInput/DropdownInput.d.ts +0 -3
  118. package/lib/types/components/input/dropdownInput/DropdownInput.d.ts.map +1 -1
  119. package/lib/types/components/input/dropdownInput/DropdownInput.styles.d.ts +5 -3
  120. package/lib/types/components/input/dropdownInput/DropdownInput.styles.d.ts.map +1 -1
  121. package/lib/types/components/input/dropdownInput/index.d.ts +1 -1
  122. package/lib/types/components/input/dropdownInput/index.d.ts.map +1 -1
  123. package/lib/types/components/input/index.d.ts +8 -8
  124. package/lib/types/components/input/index.d.ts.map +1 -1
  125. package/lib/types/components/listItem/ListItem.d.ts +0 -7
  126. package/lib/types/components/listItem/ListItem.d.ts.map +1 -1
  127. package/lib/types/components/listItem/ListItem.styles.d.ts +9 -3
  128. package/lib/types/components/listItem/ListItem.styles.d.ts.map +1 -1
  129. package/lib/types/components/listItem/index.d.ts +1 -1
  130. package/lib/types/components/listItem/index.d.ts.map +1 -1
  131. package/lib/types/components/menu/Menu.d.ts +2 -9
  132. package/lib/types/components/menu/Menu.d.ts.map +1 -1
  133. package/lib/types/components/menu/Menu.styles.d.ts +11 -3
  134. package/lib/types/components/menu/Menu.styles.d.ts.map +1 -1
  135. package/lib/types/components/menu/MenuItem.d.ts +0 -5
  136. package/lib/types/components/menu/MenuItem.d.ts.map +1 -1
  137. package/lib/types/components/menu/MenuItem.styles.d.ts +7 -3
  138. package/lib/types/components/menu/MenuItem.styles.d.ts.map +1 -1
  139. package/lib/types/components/menu/index.d.ts +2 -2
  140. package/lib/types/components/menu/index.d.ts.map +1 -1
  141. package/lib/types/components/rating/Rating.d.ts +3 -9
  142. package/lib/types/components/rating/Rating.d.ts.map +1 -1
  143. package/lib/types/components/rating/Rating.styles.d.ts +11 -3
  144. package/lib/types/components/rating/Rating.styles.d.ts.map +1 -1
  145. package/lib/types/components/rating/index.d.ts +1 -1
  146. package/lib/types/components/rating/index.d.ts.map +1 -1
  147. package/lib/types/components/swipe/SwipeAction.d.ts +0 -3
  148. package/lib/types/components/swipe/SwipeAction.d.ts.map +1 -1
  149. package/lib/types/components/swipe/SwipeAction.styles.d.ts +5 -3
  150. package/lib/types/components/swipe/SwipeAction.styles.d.ts.map +1 -1
  151. package/lib/types/components/swipe/index.d.ts +1 -1
  152. package/lib/types/components/swipe/index.d.ts.map +1 -1
  153. package/lib/types/components/tag/Tag.d.ts +0 -5
  154. package/lib/types/components/tag/Tag.d.ts.map +1 -1
  155. package/lib/types/components/tag/Tag.styles.d.ts +7 -3
  156. package/lib/types/components/tag/Tag.styles.d.ts.map +1 -1
  157. package/lib/types/components/tag/index.d.ts +1 -1
  158. package/lib/types/components/tag/index.d.ts.map +1 -1
  159. package/lib/types/components/text/HighlightedText.d.ts +2 -5
  160. package/lib/types/components/text/HighlightedText.d.ts.map +1 -1
  161. package/lib/types/components/text/HighlightedText.styles.d.ts +7 -2
  162. package/lib/types/components/text/HighlightedText.styles.d.ts.map +1 -1
  163. package/lib/types/components/text/InteractiveText.d.ts +2 -7
  164. package/lib/types/components/text/InteractiveText.d.ts.map +1 -1
  165. package/lib/types/components/text/InteractiveText.styles.d.ts +9 -3
  166. package/lib/types/components/text/InteractiveText.styles.d.ts.map +1 -1
  167. package/lib/types/components/text/Text.d.ts +2 -12
  168. package/lib/types/components/text/Text.d.ts.map +1 -1
  169. package/lib/types/components/text/Text.styles.d.ts +14 -3
  170. package/lib/types/components/text/Text.styles.d.ts.map +1 -1
  171. package/lib/types/components/text/index.d.ts +3 -3
  172. package/lib/types/components/text/index.d.ts.map +1 -1
  173. package/lib/types/components/toast/Toast.d.ts +1 -8
  174. package/lib/types/components/toast/Toast.d.ts.map +1 -1
  175. package/lib/types/components/toast/Toast.styles.d.ts +10 -3
  176. package/lib/types/components/toast/Toast.styles.d.ts.map +1 -1
  177. package/lib/types/components/toast/index.d.ts +1 -1
  178. package/lib/types/components/toast/index.d.ts.map +1 -1
  179. package/lib/types/hooks/useTheme.d.ts +2 -2
  180. package/lib/types/hooks/useThemedStyles.d.ts +25 -23
  181. package/lib/types/hooks/useThemedStyles.d.ts.map +1 -1
  182. package/lib/types/icons/componentIconAssets.d.ts +2 -0
  183. package/lib/types/icons/componentIconAssets.d.ts.map +1 -0
  184. package/lib/types/{theme/icons.d.ts → icons/componentIcons.d.ts} +17 -18
  185. package/lib/types/icons/componentIcons.d.ts.map +1 -0
  186. package/lib/types/icons/index.d.ts +2 -0
  187. package/lib/types/icons/index.d.ts.map +1 -1
  188. package/lib/types/providers/ThemeContext.d.ts +5 -3
  189. package/lib/types/providers/ThemeContext.d.ts.map +1 -1
  190. package/lib/types/providers/ThemeProvider.d.ts +10 -5
  191. package/lib/types/providers/ThemeProvider.d.ts.map +1 -1
  192. package/lib/types/style/createThemedStyles.d.ts +5 -0
  193. package/lib/types/style/createThemedStyles.d.ts.map +1 -0
  194. package/lib/types/style/index.d.ts +4 -0
  195. package/lib/types/style/index.d.ts.map +1 -0
  196. package/lib/types/style/styleFactory.d.ts +3 -0
  197. package/lib/types/style/styleFactory.d.ts.map +1 -0
  198. package/lib/types/style/styles.d.ts +51 -0
  199. package/lib/types/style/styles.d.ts.map +1 -0
  200. package/lib/types/theme/index.d.ts +1 -3
  201. package/lib/types/theme/index.d.ts.map +1 -1
  202. package/lib/types/theme/theme.d.ts +1 -6
  203. package/lib/types/theme/theme.d.ts.map +1 -1
  204. package/package.json +5 -1
  205. package/lib/theme/icons.js +0 -1
  206. package/lib/types/theme/icons.d.ts.map +0 -1
  207. package/lib/types/theme/styles.d.ts +0 -58
  208. package/lib/types/theme/styles.d.ts.map +0 -1
@@ -0,0 +1,51 @@
1
+ import type { DeepPartial } from "@reillymc/es-utils";
2
+ import type { Theme } from "../theme/theme";
3
+ import type { StyleFactory } from "./styleFactory";
4
+ /**
5
+ * Composes the default style registry from each component's `styles.ts`
6
+ * factory.
7
+ */
8
+ export declare const createDefaultStyles: (theme: Theme) => {
9
+ interactiveText: import("../components/text/InteractiveText.styles").InteractiveTextStyles;
10
+ highlightedText: import("../components/text/HighlightedText.styles").HighlightedTextStyles;
11
+ iconBase: import("../components/icon/IconBase.styles").IconBaseStyles;
12
+ icon: import("../components/icon/Icon.styles").IconStyles;
13
+ interactiveIcon: import("../components/icon/InteractiveIcon.styles").InteractiveIconStyles;
14
+ action: import("../components/action/Action.styles").ActionStyles;
15
+ iconActionBase: import("../components/action/IconActionBase.styles").IconActionBaseStyles;
16
+ iconAction: import("../components/action/IconAction.styles").IconActionStyles;
17
+ buttonBase: import("../components/button/ButtonBase.styles").ButtonBaseStyles;
18
+ button: import("../components/button/Button.styles").ButtonStyles;
19
+ iconButtonBase: import("../components/button/IconButtonBase.styles").IconButtonBaseStyles;
20
+ iconButton: import("../components/button/IconButton.styles").IconButtonStyles;
21
+ inputBase: import("../components/input/InputBase.styles").InputBaseStyles;
22
+ inputScaffold: import("../components/input/InputScaffold.styles").InputScaffoldStyles;
23
+ inputAction: import("../components/input/InputAction.styles").InputActionStyles;
24
+ selectionInput: import("../components/input/SelectionInput.styles").SelectionInputStyles;
25
+ ratingInput: null;
26
+ swipeAction: import("../components/swipe/SwipeAction.styles").SwipeActionStyles;
27
+ anchoredContainer: import("../components/container/anchoredContainer/AnchoredContainer.styles").AnchoredContainerStyles;
28
+ menu: import("../components/menu/Menu.styles").MenuStyles;
29
+ menuItem: import("../components/menu/MenuItem.styles").MenuItemStyles;
30
+ rating: import("../components/rating/Rating.styles").RatingStyles;
31
+ alertIndicator: import("../components/alert/AlertIndicator.styles").AlertIndicatorStyles;
32
+ tag: import("../components/tag/Tag.styles").TagStyles;
33
+ text: import("../components/text/Text.styles").TextStyles;
34
+ dropdownInput: import("../components/input/dropdownInput/DropdownInput.styles").DropdownInputStyles;
35
+ toggleInput: import("../components/input/ToggleInput.styles").ToggleInputStyles;
36
+ listItem: import("../components/listItem/ListItem.styles").ListItemStyles;
37
+ avatar: import("../components/avatar/Avatar.styles").AvatarStyles;
38
+ toast: import("../components/toast/Toast.styles").ToastStyles;
39
+ };
40
+ export type Styles = ReturnType<typeof createDefaultStyles>;
41
+ export type StyleOverrides<E extends object = Record<never, never>> = DeepPartial<Styles & E>;
42
+ /**
43
+ * Builds the full `Styles` registry for a theme, optionally merged with
44
+ * app-owned component style overrides.
45
+ *
46
+ * Style overrides are supplied as a factory so they can derive values from
47
+ * the resolved base theme and are merged over the default registry.
48
+ */
49
+ export declare const createStyles: <E extends object = Record<never, never>>(theme: Theme, createOverrides?: StyleFactory<E>) => Styles & E;
50
+ export declare const mergeStyle: <T>(base: T, override: unknown) => T;
51
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/style/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAgCtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC9C,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE5D,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAC9D,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAE5B;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAChE,OAAO,KAAK,EACZ,kBAAkB,YAAY,CAAC,CAAC,CAAC,KAClC,MAAM,GAAG,CAEH,CAAC;AAEV,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,MAAM,CAAC,EAAE,UAAU,OAAO,KAAG,CACS,CAAC"}
@@ -1,4 +1,2 @@
1
- export type { ComponentIconAssets, Icons } from "./icons";
2
- export { createStyles, type StyleOverrides, type Styles } from "./styles";
3
- export { createTheme, type Theme, type ThemeOverrides } from "./theme";
1
+ export { MergeTheme, type Theme, type ThemeOverrides } from "./theme";
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,KAAK,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC"}
@@ -77,10 +77,5 @@ export declare const DefaultTheme: {
77
77
  };
78
78
  };
79
79
  };
80
- export declare const MergeTheme: <E extends object = Record<never, never>>(first?: ThemeOverrides & E, second?: ThemeOverrides & DeepPartial<NoInfer<E>>) => Theme & E;
81
- /**
82
- * Builds a complete theme from a single set of base overrides, optionally
83
- * deriving additional app-owned tokens from the resolved base theme.
84
- */
85
- export declare const createTheme: <E extends object = Record<never, never>>(overrides?: ThemeOverrides, createExtras?: (theme: Theme) => E) => Theme & E;
80
+ export declare const MergeTheme: (overrides?: ThemeOverrides) => Theme;
86
81
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGxB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC9D,QAAQ,cAAc,GAAG,CAAC,EAC1B,SAAS,cAAc,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAClD,KAAK,GAAG,CAAoE,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC/D,YAAY,cAAc,EAC1B,eAAe,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,KACnC,KAAK,GAAG,CAMV,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGxB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,YAAY,cAAc,KAAG,KACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reillymc/react-native-components",
3
- "version": "0.11.9",
3
+ "version": "0.11.11",
4
4
  "description": "A collection of React Native components and resources",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -25,6 +25,10 @@
25
25
  "types": "./lib/types/theme/index.d.ts",
26
26
  "default": "./lib/theme/index.js"
27
27
  },
28
+ "./style": {
29
+ "types": "./lib/types/style/index.d.ts",
30
+ "default": "./lib/style/index.js"
31
+ },
28
32
  "./common": {
29
33
  "types": "./lib/types/common/index.d.ts",
30
34
  "default": "./lib/common/index.js"
@@ -1 +0,0 @@
1
- function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{UiIcons}from"../icons";export var createIcons=config=>config;export var DefaultIcons=createIcons({inputScaffold:{error:{iconSet:UiIcons,iconName:"exclamation"}},counterInput:{decrease:{iconSet:UiIcons,iconName:"dash"},increase:{iconSet:UiIcons,iconName:"plus"}},numberInput:{number:{iconSet:UiIcons,iconName:"infinity"},fraction:{iconSet:UiIcons,iconName:"number"},range:{iconSet:UiIcons,iconName:"arrow-both"}},selectionInput:{showOptions:{iconSet:UiIcons,iconName:"chevron-down"}},timeInput:{time:{iconSet:UiIcons,iconName:"clock"}},toggleInput:{outline:{iconSet:UiIcons,iconName:"circle"}},rating:{empty:{iconSet:UiIcons,iconName:"star-empty"},full:{iconSet:UiIcons,iconName:"star-full"},half:{iconSet:UiIcons,iconName:"star-half"}},ratingInput:{empty:{iconSet:UiIcons,iconName:"star-empty"},full:{iconSet:UiIcons,iconName:"star-full"},half:{iconSet:UiIcons,iconName:"star-half"}}});export var MergeIcons=overrides=>{if(!overrides)return DefaultIcons;var merged={...DefaultIcons};for(var _ref of Object.entries(overrides)){var _ref2=_slicedToArray(_ref,2);var category=_ref2[0];var slots=_ref2[1];if(!slots)continue;merged[category]={...merged[category],...slots};}return merged;};
@@ -1 +0,0 @@
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,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EACR,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,OAAO,EAAW,MAAM,UAAU,CAAC;AAElE,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC;AAEtD,KAAK,cAAc,GAAG;IAClB,aAAa,EAAE,kBAAkB,CAAC;IAClC,YAAY,EAAE,iBAAiB,CAAC;IAChC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,cAAc,EAAE,mBAAmB,CAAC;IACpC,SAAS,EAAE,cAAc,CAAC;IAC1B,WAAW,EAAE,gBAAgB,CAAC;IAC9B,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;KACf,CAAC,IAAI,MAAM,cAAc,GAAG;SACxB,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG;YACtB,OAAO,EAAE,UAAU,CAAC;YACpB,QAAQ,EAAE,MAAM,CAAC;SACpB;KACJ;CACJ,CAAC;AAEF,KAAK,UAAU,CAAC,CAAC,IACb,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GACpB,CAAC,GACD,CAAC,SAAS,EAAE,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,GAC7B,CAAC,GACD,MAAM,CAAC;AAEnB,MAAM,MAAM,oBAAoB,GAAG;KAC9B,QAAQ,IAAI,MAAM,cAAc,GAAG;SAC/B,MAAM,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG;YAClC,OAAO,EAAE,UAAU,CAAC;YACpB,QAAQ,EAAE,MAAM,CAAC;SACpB;KACJ;CACJ,CAAC;AAEF,KAAK,cAAc,CAAC,CAAC,IAAI;KACpB,QAAQ,IAAI,MAAM,cAAc,GAAG;SAC/B,MAAM,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG,QAAQ,SAAS,MAAM,CAAC,GACxD,MAAM,SAAS,MAAM,CAAC,CAAC,QAAQ,CAAC,GAC5B,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,SAAS;YAAE,OAAO,EAAE,MAAM,CAAC,CAAA;SAAE,GAC5C;YAAE,OAAO,EAAE,CAAC,CAAC;YAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;SAAE,GACvC,KAAK,GACT,KAAK,GACT,KAAK;KACd;CACJ,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,oBAAoB,EACtD,QAAQ,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,KAC9B,CAAW,CAAC;AAEf,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCvB,CAAC;AAEH,eAAO,MAAM,UAAU,GAAI,YAAY,WAAW,CAAC,KAAK,CAAC,KAAG,KAc3D,CAAC"}
@@ -1,58 +0,0 @@
1
- import type { DeepPartial } from "@reillymc/es-utils";
2
- import type { ActionStyles, AlertIndicatorStyles, AnchoredContainerStyles, AvatarStyles, ButtonBaseStyles, ButtonStyles, DropdownInputStyles, 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
- anchoredContainer: AnchoredContainerStyles;
41
- tag: TagStyles;
42
- };
43
- export type StyleOverrides = DeepPartial<Styles>;
44
- export type CreateStyles = (theme: Theme) => Styles;
45
- /**
46
- * Composes the default `Styles` registry from each component's `styles.ts`
47
- * factory. Defaults live next to the component that owns them; this module only
48
- * assembles them (and holds the shared `common` token).
49
- */
50
- export declare const createDefaultStyles: CreateStyles;
51
- export declare const MergeStyles: (styles: Styles, overrides?: StyleOverrides | undefined) => Styles;
52
- /**
53
- * Builds the full `Styles` registry for a theme, optionally merged with
54
- * consumer style overrides.
55
- */
56
- export declare const createStyles: (theme: Theme, overrides?: StyleOverrides) => Styles;
57
- export declare const MergeStyleSlice: <T>(base: T, override: unknown) => T;
58
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
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,uBAAuB,EACvB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,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,oBAAoB,EACpB,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,WAAW,EACX,iBAAiB,EACpB,MAAM,eAAe,CAAC;AA8BvB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,MAAM,MAAM,GAAG;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,eAAe,EAAE,qBAAqB,CAAC;IACvC,eAAe,EAAE,qBAAqB,CAAC;IAEvC,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,cAAc,CAAC;IACzB,eAAe,EAAE,qBAAqB,CAAC;IAEvC,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,cAAc,EAAE,oBAAoB,CAAC;IAErC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,cAAc,EAAE,oBAAoB,CAAC;IACrC,UAAU,EAAE,gBAAgB,CAAC;IAE7B,SAAS,EAAE,eAAe,CAAC;IAC3B,aAAa,EAAE,mBAAmB,CAAC;IACnC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,cAAc,EAAE,oBAAoB,CAAC;IACrC,WAAW,EAAE,iBAAiB,CAAC;IAE/B,MAAM,EAAE,YAAY,CAAC;IACrB,cAAc,EAAE,oBAAoB,CAAC;IAErC,aAAa,EAAE,mBAAmB,CAAC;IACnC,QAAQ,EAAE,cAAc,CAAC;IACzB,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE;QACJ,MAAM,EAAE;YACJ,QAAQ,EAAE;iBACL,IAAI,IAAI,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM;aAClD,CAAC;SACL,CAAC;KACL,CAAC;IACF,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,iBAAiB,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;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,YAyChC,CAAC;AAEH,eAAO,MAAM,WAAW,GACpB,QAAQ,MAAM,EACd,YAAW,cAAc,GAAG,SAAc,KAC3C,MAAsC,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,YAAY,GACrB,OAAO,KAAK,EACZ,YAAY,cAAc,KAC3B,MAA4D,CAAC;AAEhE,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,MAAM,CAAC,EAAE,UAAU,OAAO,KAAG,CACI,CAAC"}