@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
@@ -1,4 +1,8 @@
1
- import type { Theme } from "../../theme/theme";
2
- import type { TagStyles } from "./Tag";
3
- export declare const defaultTagStyles: ({ border, spacing }: Theme) => TagStyles;
1
+ import type { StyleFactory } from "../../style/styleFactory";
2
+ export interface TagStyles {
3
+ internalSpacing: number;
4
+ borderRadius: number;
5
+ padding: number;
6
+ }
7
+ export declare const defaultTagStyles: StyleFactory<TagStyles>;
4
8
  //# sourceMappingURL=Tag.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,eAAO,MAAM,gBAAgB,GAAI,qBAAqB,KAAK,KAAG,SAI5D,CAAC"}
1
+ {"version":3,"file":"Tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,WAAW,SAAS;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,SAAS,CAOnD,CAAC"}
@@ -1,3 +1,3 @@
1
- export { Tag, type TagProps, type TagStyles } from "./Tag";
1
+ export { Tag, type TagProps } from "./Tag";
2
2
  export { TagIcon } from "./TagIcon";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -1,10 +1,7 @@
1
1
  import type { FunctionComponent } from "react";
2
- import { type TextStyle } from "react-native";
3
2
  import type { DeepPartial } from "@reillymc/es-utils";
4
- import { type TextProps, type TextVariant } from "./Text";
5
- export interface HighlightedTextStyles {
6
- highlightedWeight: Record<TextVariant, TextStyle["fontWeight"]>;
7
- }
3
+ import type { HighlightedTextStyles } from "./HighlightedText.styles";
4
+ import { type TextProps } from "./Text";
8
5
  export interface HighlightedTextProps extends Pick<TextProps, "variant"> {
9
6
  text?: string;
10
7
  textStyles?: TextProps["style"];
@@ -1 +1 @@
1
- {"version":3,"file":"HighlightedText.d.ts","sourceRoot":"","sources":["../../../../src/components/text/HighlightedText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,i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;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,oBAAoB,CAoCnE,CAAC"}
@@ -1,3 +1,8 @@
1
- import type { HighlightedTextStyles } from "./HighlightedText";
2
- export declare const defaultHighlightedTextStyles: () => HighlightedTextStyles;
1
+ import type { TextStyle } from "react-native";
2
+ import type { StyleFactory } from "../../style/styleFactory";
3
+ import type { TextVariant } from "./Text.styles";
4
+ export interface HighlightedTextStyles {
5
+ highlightedWeight: Record<TextVariant, TextStyle["fontWeight"]>;
6
+ }
7
+ export declare const defaultHighlightedTextStyles: StyleFactory<HighlightedTextStyles>;
3
8
  //# sourceMappingURL=HighlightedText.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HighlightedText.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/HighlightedText.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAO,MAAM,4BAA4B,QAAO,qBAS9C,CAAC"}
1
+ {"version":3,"file":"HighlightedText.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/HighlightedText.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IAClC,iBAAiB,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;CACnE;AAED,eAAO,MAAM,4BAA4B,EAAE,YAAY,CACnD,qBAAqB,CAUvB,CAAC"}
@@ -1,13 +1,8 @@
1
1
  import type { FC } from "react";
2
- import { type ColorValue, type PressableStateCallbackType } from "react-native";
2
+ import type { PressableStateCallbackType } from "react-native";
3
3
  import type { DeepPartial } from "@reillymc/es-utils";
4
+ import type { InteractiveTextStyles } from "./InteractiveText.styles";
4
5
  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
6
  export interface InteractiveTextProps extends PressableStateCallbackType {
12
7
  children: string;
13
8
  style?: DeepPartial<InteractiveTextStyles>;
@@ -1 +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"}
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,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,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"}
@@ -1,4 +1,10 @@
1
- import type { Theme } from "../../theme/theme";
2
- import type { InteractiveTextStyles } from "./InteractiveText";
3
- export declare const defaultInteractiveTextStyles: ({ color, }: Theme) => InteractiveTextStyles;
1
+ import type { ColorValue } from "react-native";
2
+ import type { StyleFactory } from "../../style/styleFactory";
3
+ export type InteractiveTextState = "enabled" | "disabled" | "pressed";
4
+ export type InteractiveTextStyles = {
5
+ color: {
6
+ [State in InteractiveTextState]: ColorValue;
7
+ };
8
+ };
9
+ export declare const defaultInteractiveTextStyles: StyleFactory<InteractiveTextStyles>;
4
10
  //# sourceMappingURL=InteractiveText.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InteractiveText.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/InteractiveText.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAO,MAAM,4BAA4B,GAAI,YAE1C,KAAK,KAAG,qBAMT,CAAC"}
1
+ {"version":3,"file":"InteractiveText.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/InteractiveText.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,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,eAAO,MAAM,4BAA4B,EAAE,YAAY,CACnD,qBAAqB,CAOvB,CAAC"}
@@ -1,16 +1,6 @@
1
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
- }
2
+ import { type TextProps as RnTextProps } from "react-native";
3
+ import type { TextVariant } from "./Text.styles";
14
4
  export interface TextProps extends RnTextProps {
15
5
  variant?: TextVariant;
16
6
  children?: ReactNode;
@@ -1 +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;AAKtB,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,CAmB9B,CAAC"}
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,EAEhC,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,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,CAmB9B,CAAC"}
@@ -1,4 +1,15 @@
1
- import type { Theme } from "../../theme/theme";
2
- import type { TextStyles } from "./Text";
3
- export declare const defaultTextStyles: ({ color, font }: Theme) => TextStyles;
1
+ import type { TextStyle } from "react-native";
2
+ import type { StyleFactory } from "../../style/styleFactory";
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 declare const defaultTextStyles: StyleFactory<TextStyles>;
4
15
  //# sourceMappingURL=Text.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/Text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEzC,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,KAAK,KAAG,UAkCzD,CAAC"}
1
+ {"version":3,"file":"Text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/Text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,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,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,UAAU,CAqCrD,CAAC"}
@@ -1,4 +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";
1
+ export { HighlightedText, type HighlightedTextProps } from "./HighlightedText";
2
+ export { InteractiveText, type InteractiveTextProps } from "./InteractiveText";
3
+ export { Text, type TextProps } from "./Text";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,12 +1,5 @@
1
1
  import type { FunctionComponent, ReactNode } from "react";
2
- import { type ColorValue, type StyleProp, type ViewStyle } from "react-native";
3
- export interface ToastStyles {
4
- container: {
5
- backgroundColor: ColorValue;
6
- padding: number;
7
- borderRadius: number;
8
- };
9
- }
2
+ import { type StyleProp, type ViewStyle } from "react-native";
10
3
  export interface ToastProps {
11
4
  action?: ReactNode;
12
5
  containerStyle?: StyleProp<ViewStyle>;
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EACH,KAAK,UAAU,EACf,KAAK,SAAS,EAGd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAStB,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE;QACP,eAAe,EAAE,UAAU,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;KACxB,CAAC;CACL;AACD,MAAM,WAAW,UAAU;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAMD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,UAAU,CA4B/C,CAAC"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAShF,MAAM,WAAW,UAAU;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAMD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,UAAU,CA4B/C,CAAC"}
@@ -1,4 +1,11 @@
1
- import type { Theme } from "../../theme/theme";
2
- import type { ToastStyles } from "./Toast";
3
- export declare const defaultToastStyles: ({ color, spacing, border, }: Theme) => ToastStyles;
1
+ import type { ColorValue } from "react-native";
2
+ import type { StyleFactory } from "../../style/styleFactory";
3
+ export interface ToastStyles {
4
+ container: {
5
+ backgroundColor: ColorValue;
6
+ padding: number;
7
+ borderRadius: number;
8
+ };
9
+ }
10
+ export declare const defaultToastStyles: StyleFactory<ToastStyles>;
4
11
  //# sourceMappingURL=Toast.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,kBAAkB,GAAI,6BAIhC,KAAK,KAAG,WAMT,CAAC"}
1
+ {"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE;QACP,eAAe,EAAE,UAAU,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;KACxB,CAAC;CACL;AAED,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,WAAW,CAUvD,CAAC"}
@@ -1,2 +1,2 @@
1
- export { Toast, type ToastProps, type ToastStyles } from "./Toast";
1
+ export { Toast, type ToastProps } from "./Toast";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { type ThemeContextDefinition } from "../providers";
2
2
  /**
3
- * Reads the active theme. Pass a consumer extension type to see any custom
4
- * tokens that were provided to `ThemeProvider` (e.g. `useTheme<AppTheme>()`).
3
+ * Reads the active theme. Pass a consumer style extension type to see any
4
+ * app-owned style slices (e.g. `useTheme<AppStyles>()`).
5
5
  */
6
6
  export declare function useTheme<E extends object = Record<never, never>>(): ThemeContextDefinition<E>;
7
7
  //# sourceMappingURL=useTheme.d.ts.map
@@ -1,37 +1,35 @@
1
1
  /** biome-ignore-all lint/suspicious/noExplicitAny: any prop definition is permitted */
2
+ import type { Icons } from "../icons/componentIcons";
2
3
  import type { ThemeContextDefinition } from "../providers";
3
- import type { Icons, StyleOverrides, Styles } from "../theme";
4
+ import { type StyleOverrides, type Styles } from "../style/styles";
4
5
  export type ThemedStyles<E extends object = Record<never, never>> = ThemeContextDefinition<E>;
5
- type StyleOnlyKey = keyof Styles;
6
+ type StyleOnlyKey<E extends object> = keyof Styles | keyof E;
6
7
  type IconOnlyKey = keyof Icons;
7
- type ComponentKey = StyleOnlyKey | IconOnlyKey;
8
- type ComponentRegistry = {
9
- [K in keyof Styles | keyof Icons]: K extends keyof Styles ? K extends keyof Icons ? {
8
+ type ComponentKey<E extends object> = StyleOnlyKey<E> | IconOnlyKey;
9
+ type ComponentRegistry<E extends object> = {
10
+ [K in keyof Styles | keyof E | keyof Icons]: (K extends keyof Styles ? {
10
11
  style: Styles[K];
12
+ } : K extends keyof E ? {
13
+ style: E[K];
14
+ } : Record<never, never>) & (K extends keyof Icons ? {
11
15
  icons: Icons[K];
12
- } : {
13
- style: Styles[K];
14
- } : K extends keyof Icons ? {
15
- icons: Icons[K];
16
- } : never;
16
+ } : Record<never, never>);
17
17
  };
18
- type StyleResult<C extends keyof ComponentRegistry> = ComponentRegistry[C];
19
- type UseStylesReturn<C extends ComponentKey, G = undefined> = [
20
- generated: G,
21
- component: StyleResult<C>
22
- ];
18
+ type StyleResult<E extends object, C extends ComponentKey<E>> = ComponentRegistry<E>[C];
19
+ type UseStylesReturn<E extends object, C extends ComponentKey<E>, G = undefined> = [generated: G, component: StyleResult<E, C>];
23
20
  type AnyGenerator = (...args: any[]) => any;
24
21
  type GeneratorResult<G extends AnyGenerator> = ReturnType<G>;
25
22
  type GeneratorProps<G extends AnyGenerator> = Parameters<G> extends [ThemeContextDefinition<any>, infer U] ? U : never;
26
- type UseStylesOptions<G extends AnyGenerator> = [GeneratorProps<G>] extends [
27
- never
28
- ] ? [
23
+ type GeneratorExtension<G extends AnyGenerator> = Parameters<G>[0] extends ThemeContextDefinition<infer E> ? E : Record<never, never>;
24
+ type UseStylesOptions<E extends object, G extends AnyGenerator> = [
25
+ GeneratorProps<G>
26
+ ] extends [never] ? [
29
27
  options?: {
30
- styles?: StyleOverrides;
28
+ styles?: StyleOverrides<E>;
31
29
  }
32
30
  ] : [
33
31
  options: {
34
- styles?: StyleOverrides;
32
+ styles?: StyleOverrides<E>;
35
33
  props: GeneratorProps<G>;
36
34
  }
37
35
  ];
@@ -43,9 +41,13 @@ type UseStylesOptions<G extends AnyGenerator> = [GeneratorProps<G>] extends [
43
41
  * Returns `[generated, { style, icons }]` for the named component.
44
42
  * - `useThemedStyles(generator, options?)` — external form.
45
43
  * Returns just the generated styles.
44
+ *
45
+ * The style extension is inferred from the generator's context type, so app
46
+ * components can read their own style slices by annotating the generator with
47
+ * the app's `ThemedStyles<AppStyles>` type.
46
48
  */
47
- export declare function useThemedStyles<C extends ComponentKey, G extends AnyGenerator>(componentName: C, generator: G, ...options: UseStylesOptions<G>): UseStylesReturn<C, GeneratorResult<G>>;
48
- export declare function useThemedStyles<G extends AnyGenerator>(generator: G, ...options: UseStylesOptions<G>): GeneratorResult<G>;
49
- export declare const useStyles: (componentStyles: StyleOverrides) => Styles;
49
+ export declare function useThemedStyles<G extends AnyGenerator, C extends ComponentKey<GeneratorExtension<G>> = ComponentKey<GeneratorExtension<G>>>(componentName: C, generator: G, ...options: UseStylesOptions<GeneratorExtension<G>, G>): UseStylesReturn<GeneratorExtension<G>, C, GeneratorResult<G>>;
50
+ export declare function useThemedStyles<G extends AnyGenerator>(generator: G, ...options: UseStylesOptions<GeneratorExtension<G>, G>): GeneratorResult<G>;
51
+ export declare const useStyles: <E extends object = Record<never, never>>(componentStyles: StyleOverrides<E>) => Styles & E;
50
52
  export {};
51
53
  //# sourceMappingURL=useThemedStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedStyles.tsx"],"names":[],"m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,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AACjE,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EAClD,SAAS,EAAE,CAAC,EACZ,GAAG,OAAO,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GACvD,eAAe,CAAC,CAAC,CAAC,CAAC;AAmCtB,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC7D,iBAAiB,cAAc,CAAC,CAAC,CAAC,KACnC,MAAM,GAAG,CAmBX,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type ComponentIconAssets<K extends string> = K;
2
+ //# sourceMappingURL=componentIconAssets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentIconAssets.d.ts","sourceRoot":"","sources":["../../../src/icons/componentIconAssets.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import type { FC } from "react";
2
2
  import type { DeepPartial } from "@reillymc/es-utils";
3
3
  import type { CounterInputIcons, InputScaffoldIcons, NumberInputIcons, RatingIcons, RatingInputIcons, SelectionInputIcons, TimeInputIcons, ToggleInputIcons } from "../components";
4
- import { type AnyIconSet, type IconSet } from "../icons";
5
- export type ComponentIconAssets<K extends string> = K;
4
+ import type { AnyIconSet, IconSet } from "./base";
6
5
  type ComponentIcons = {
7
6
  inputScaffold: InputScaffoldIcons;
8
7
  counterInput: CounterInputIcons;
@@ -46,81 +45,81 @@ export declare const createIcons: <C extends ComponentIconsConfig>(config: C & V
46
45
  export declare const DefaultIcons: {
47
46
  inputScaffold: {
48
47
  error: {
49
- iconSet: IconSet<import("../icons").UiIconName>;
48
+ iconSet: IconSet<import("./ui").UiIconName>;
50
49
  iconName: string;
51
50
  };
52
51
  };
53
52
  counterInput: {
54
53
  decrease: {
55
- iconSet: IconSet<import("../icons").UiIconName>;
54
+ iconSet: IconSet<import("./ui").UiIconName>;
56
55
  iconName: string;
57
56
  };
58
57
  increase: {
59
- iconSet: IconSet<import("../icons").UiIconName>;
58
+ iconSet: IconSet<import("./ui").UiIconName>;
60
59
  iconName: string;
61
60
  };
62
61
  };
63
62
  numberInput: {
64
63
  number: {
65
- iconSet: IconSet<import("../icons").UiIconName>;
64
+ iconSet: IconSet<import("./ui").UiIconName>;
66
65
  iconName: string;
67
66
  };
68
67
  fraction: {
69
- iconSet: IconSet<import("../icons").UiIconName>;
68
+ iconSet: IconSet<import("./ui").UiIconName>;
70
69
  iconName: string;
71
70
  };
72
71
  range: {
73
- iconSet: IconSet<import("../icons").UiIconName>;
72
+ iconSet: IconSet<import("./ui").UiIconName>;
74
73
  iconName: string;
75
74
  };
76
75
  };
77
76
  selectionInput: {
78
77
  showOptions: {
79
- iconSet: IconSet<import("../icons").UiIconName>;
78
+ iconSet: IconSet<import("./ui").UiIconName>;
80
79
  iconName: string;
81
80
  };
82
81
  };
83
82
  timeInput: {
84
83
  time: {
85
- iconSet: IconSet<import("../icons").UiIconName>;
84
+ iconSet: IconSet<import("./ui").UiIconName>;
86
85
  iconName: string;
87
86
  };
88
87
  };
89
88
  toggleInput: {
90
89
  outline: {
91
- iconSet: IconSet<import("../icons").UiIconName>;
90
+ iconSet: IconSet<import("./ui").UiIconName>;
92
91
  iconName: string;
93
92
  };
94
93
  };
95
94
  rating: {
96
95
  empty: {
97
- iconSet: IconSet<import("../icons").UiIconName>;
96
+ iconSet: IconSet<import("./ui").UiIconName>;
98
97
  iconName: string;
99
98
  };
100
99
  full: {
101
- iconSet: IconSet<import("../icons").UiIconName>;
100
+ iconSet: IconSet<import("./ui").UiIconName>;
102
101
  iconName: string;
103
102
  };
104
103
  half: {
105
- iconSet: IconSet<import("../icons").UiIconName>;
104
+ iconSet: IconSet<import("./ui").UiIconName>;
106
105
  iconName: string;
107
106
  };
108
107
  };
109
108
  ratingInput: {
110
109
  empty: {
111
- iconSet: IconSet<import("../icons").UiIconName>;
110
+ iconSet: IconSet<import("./ui").UiIconName>;
112
111
  iconName: string;
113
112
  };
114
113
  full: {
115
- iconSet: IconSet<import("../icons").UiIconName>;
114
+ iconSet: IconSet<import("./ui").UiIconName>;
116
115
  iconName: string;
117
116
  };
118
117
  half: {
119
- iconSet: IconSet<import("../icons").UiIconName>;
118
+ iconSet: IconSet<import("./ui").UiIconName>;
120
119
  iconName: string;
121
120
  };
122
121
  };
123
122
  };
124
123
  export declare const MergeIcons: (overrides?: DeepPartial<Icons>) => Icons;
125
124
  export {};
126
- //# sourceMappingURL=icons.d.ts.map
125
+ //# sourceMappingURL=componentIcons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"componentIcons.d.ts","sourceRoot":"","sources":["../../../src/icons/componentIcons.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,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGlD,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,cA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AAC;AAEH,eAAO,MAAM,UAAU,GAAI,YAAY,WAAW,CAAC,KAAK,CAAC,KAAG,KAc3D,CAAC"}
@@ -1,3 +1,5 @@
1
1
  export type { AnyIconSet, IconSet, IconSetGlyphMap, IconSetItemProps, } from "./base";
2
+ export type { ComponentIconAssets } from "./componentIconAssets";
3
+ export type { Icons } from "./componentIcons";
2
4
  export { type UiIconName, UiIcons } from "./ui";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,UAAU,EACV,OAAO,EACP,eAAe,EACf,gBAAgB,GACnB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,KAAK,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,UAAU,EACV,OAAO,EACP,eAAe,EACf,gBAAgB,GACnB,MAAM,QAAQ,CAAC;AAChB,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,KAAK,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC"}
@@ -1,7 +1,9 @@
1
- import type { Icons, Styles, Theme } from "../theme";
1
+ import { type Icons } from "../icons/componentIcons";
2
+ import { type Styles } from "../style/styles";
3
+ import { type Theme } from "../theme/theme";
2
4
  export interface ThemeContextDefinition<E extends object = Record<never, never>> {
3
- theme: Theme & E;
4
- styles: Styles;
5
+ theme: Theme;
6
+ styles: Styles & E;
5
7
  icons: Icons;
6
8
  }
7
9
  export declare const ThemeContext: import("react").Context<ThemeContextDefinition<Record<never, never>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAKrD,MAAM,WAAW,sBAAsB,CACnC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IAEvC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,uEAIvB,CAAC"}
1
+ {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAgB,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,WAAW,sBAAsB,CACnC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IAEvC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,uEAIvB,CAAC"}
@@ -1,13 +1,18 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { DeepPartial } from "@reillymc/es-utils";
3
- import { type Icons, type StyleOverrides, type ThemeOverrides } from "../theme";
3
+ import { type Icons } from "../icons/componentIcons";
4
+ import type { StyleFactory } from "../style/styleFactory";
5
+ import { type ThemeOverrides } from "../theme/theme";
4
6
  export interface ThemeProviderProps<E extends object = Record<never, never>> {
5
7
  /**
6
- * The active theme. Consumers may extend it with their own tokens
7
- * (`ThemeOverrides & E`) and read them back via `useTheme<E>()`.
8
+ * The active theme.
8
9
  */
9
- theme?: ThemeOverrides & E;
10
- styles?: StyleOverrides;
10
+ theme?: ThemeOverrides;
11
+ /**
12
+ * Style overrides factory. App-owned component slices can be added by
13
+ * extending `E`.
14
+ */
15
+ styles?: StyleFactory<E>;
11
16
  icons?: DeepPartial<Icons>;
12
17
  children?: ReactNode;
13
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACtB,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IACvE;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,GAAG,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,gFAKpE,kBAAkB,CAAC,CAAC,CAAC,gCAUvB,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,KAAK,KAAK,EAAc,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGjE,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IACvE;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,gFAKpE,kBAAkB,CAAC,CAAC,CAAC,gCAUvB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { StyleSheet } from "react-native";
2
+ export type StyleRules = StyleSheet.NamedStyles<Record<string, unknown>>;
3
+ export type ThemedStylesFactory<C> = <T extends StyleSheet.NamedStyles<T> | StyleRules, P extends readonly unknown[] = []>(factory: (context: C, ...props: P) => T & StyleRules) => (context: C, ...props: P) => T;
4
+ export declare const createThemedStylesFactory: <C>() => ThemedStylesFactory<C>;
5
+ //# sourceMappingURL=createThemedStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/style/createThemedStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEzE,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CACjC,CAAC,SAAS,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,EAChD,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,EAAE,EAEjC,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,UAAU,KACnD,CAAC,OAAO,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,yBAAyB,GACjC,CAAC,OAAK,mBAAmB,CAAC,CAAC,CAGqB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { createThemedStylesFactory, type StyleRules, type ThemedStylesFactory, } from "./createThemedStyles";
2
+ export type { StyleFactory } from "./styleFactory";
3
+ export { createDefaultStyles, createStyles, type StyleOverrides, type Styles, } from "./styles";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/style/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,yBAAyB,EACzB,KAAK,UAAU,EACf,KAAK,mBAAmB,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACH,mBAAmB,EACnB,YAAY,EACZ,KAAK,cAAc,EACnB,KAAK,MAAM,GACd,MAAM,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Theme } from "../theme/theme";
2
+ export type StyleFactory<T extends object = Record<never, never>> = (theme: Theme) => T;
3
+ //# sourceMappingURL=styleFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleFactory.d.ts","sourceRoot":"","sources":["../../../src/style/styleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAChE,KAAK,EAAE,KAAK,KACX,CAAC,CAAC"}