@reillymc/react-native-components 0.11.7 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/lib/components/action/Action.js +1 -1
  2. package/lib/components/action/Action.styles.js +1 -1
  3. package/lib/components/action/ActionBase.js +1 -1
  4. package/lib/components/action/ActionBase.styles.js +1 -0
  5. package/lib/components/action/IconAction.js +1 -1
  6. package/lib/components/action/IconAction.styles.js +1 -1
  7. package/lib/components/action/IconActionBase.js +1 -1
  8. package/lib/components/action/IconActionBase.styles.js +1 -1
  9. package/lib/components/action/StateTint.js +1 -0
  10. package/lib/components/action/StateTint.styles.js +1 -0
  11. package/lib/components/action/index.js +1 -1
  12. package/lib/components/alert/AlertIndicator.styles.js +1 -1
  13. package/lib/components/avatar/Avatar.js +1 -1
  14. package/lib/components/avatar/Avatar.styles.js +1 -1
  15. package/lib/components/button/Button.js +1 -1
  16. package/lib/components/button/Button.styles.js +1 -1
  17. package/lib/components/button/ButtonBase.js +1 -1
  18. package/lib/components/button/ButtonBase.styles.js +1 -1
  19. package/lib/components/button/IconButton.js +1 -1
  20. package/lib/components/button/IconButton.styles.js +1 -1
  21. package/lib/components/button/IconButtonBase.js +1 -1
  22. package/lib/components/button/IconButtonBase.styles.js +1 -1
  23. package/lib/components/icon/Icon.styles.js +1 -1
  24. package/lib/components/icon/IconBase.styles.js +1 -1
  25. package/lib/components/icon/index.js +1 -1
  26. package/lib/components/index.js +1 -1
  27. package/lib/components/input/InputAction.js +1 -1
  28. package/lib/components/input/InputAction.styles.js +1 -1
  29. package/lib/components/input/InputBase.js +1 -1
  30. package/lib/components/input/InputBase.styles.js +1 -1
  31. package/lib/components/input/InputScaffold.js +1 -1
  32. package/lib/components/input/InputScaffold.styles.js +1 -1
  33. package/lib/components/input/SelectionInput.js +1 -1
  34. package/lib/components/input/SelectionInput.styles.js +1 -1
  35. package/lib/components/input/ToggleInput.js +1 -1
  36. package/lib/components/input/ToggleInput.styles.js +1 -1
  37. package/lib/components/listItem/ListItem.js +1 -1
  38. package/lib/components/menu/Menu.js +1 -1
  39. package/lib/components/menu/Menu.styles.js +1 -1
  40. package/lib/components/menu/MenuItem.js +1 -1
  41. package/lib/components/rating/Rating.styles.js +1 -1
  42. package/lib/components/surface/InteractionSurface.js +1 -0
  43. package/lib/components/surface/StateLayer.js +1 -0
  44. package/lib/components/surface/StateLayer.styles.js +1 -0
  45. package/lib/components/surface/index.js +1 -0
  46. package/lib/components/swipe/SwipeAction.js +1 -1
  47. package/lib/components/tag/Tag.js +1 -1
  48. package/lib/components/tag/TagIcon.js +1 -1
  49. package/lib/components/text/Text.styles.js +1 -1
  50. package/lib/components/text/index.js +1 -1
  51. package/lib/components/toast/Toast.js +1 -1
  52. package/lib/components/toast/Toast.styles.js +1 -1
  53. package/lib/theme/index.js +1 -1
  54. package/lib/theme/palette.js +1 -0
  55. package/lib/theme/styles.js +1 -1
  56. package/lib/theme/theme.js +1 -1
  57. package/lib/types/components/action/Action.d.ts +2 -2
  58. package/lib/types/components/action/Action.d.ts.map +1 -1
  59. package/lib/types/components/action/Action.styles.d.ts.map +1 -1
  60. package/lib/types/components/action/ActionBase.d.ts +12 -4
  61. package/lib/types/components/action/ActionBase.d.ts.map +1 -1
  62. package/lib/types/components/action/ActionBase.styles.d.ts +3 -0
  63. package/lib/types/components/action/ActionBase.styles.d.ts.map +1 -0
  64. package/lib/types/components/action/IconAction.d.ts +3 -12
  65. package/lib/types/components/action/IconAction.d.ts.map +1 -1
  66. package/lib/types/components/action/IconAction.styles.d.ts.map +1 -1
  67. package/lib/types/components/action/IconActionBase.d.ts +5 -10
  68. package/lib/types/components/action/IconActionBase.d.ts.map +1 -1
  69. package/lib/types/components/action/IconActionBase.styles.d.ts.map +1 -1
  70. package/lib/types/components/action/StateTint.d.ts +13 -0
  71. package/lib/types/components/action/StateTint.d.ts.map +1 -0
  72. package/lib/types/components/action/StateTint.styles.d.ts +3 -0
  73. package/lib/types/components/action/StateTint.styles.d.ts.map +1 -0
  74. package/lib/types/components/action/index.d.ts +2 -1
  75. package/lib/types/components/action/index.d.ts.map +1 -1
  76. package/lib/types/components/avatar/Avatar.d.ts.map +1 -1
  77. package/lib/types/components/button/Button.d.ts +15 -6
  78. package/lib/types/components/button/Button.d.ts.map +1 -1
  79. package/lib/types/components/button/Button.styles.d.ts.map +1 -1
  80. package/lib/types/components/button/ButtonBase.d.ts +3 -4
  81. package/lib/types/components/button/ButtonBase.d.ts.map +1 -1
  82. package/lib/types/components/button/ButtonBase.styles.d.ts.map +1 -1
  83. package/lib/types/components/button/IconButton.d.ts +7 -8
  84. package/lib/types/components/button/IconButton.d.ts.map +1 -1
  85. package/lib/types/components/button/IconButton.styles.d.ts.map +1 -1
  86. package/lib/types/components/button/IconButtonBase.d.ts +7 -4
  87. package/lib/types/components/button/IconButtonBase.d.ts.map +1 -1
  88. package/lib/types/components/button/IconButtonBase.styles.d.ts.map +1 -1
  89. package/lib/types/components/button/index.d.ts +1 -1
  90. package/lib/types/components/button/index.d.ts.map +1 -1
  91. package/lib/types/components/icon/index.d.ts +0 -1
  92. package/lib/types/components/icon/index.d.ts.map +1 -1
  93. package/lib/types/components/index.d.ts +7 -5
  94. package/lib/types/components/index.d.ts.map +1 -1
  95. package/lib/types/components/input/InputAction.d.ts +3 -2
  96. package/lib/types/components/input/InputAction.d.ts.map +1 -1
  97. package/lib/types/components/input/InputAction.styles.d.ts.map +1 -1
  98. package/lib/types/components/input/SelectionInput.d.ts +3 -3
  99. package/lib/types/components/input/SelectionInput.d.ts.map +1 -1
  100. package/lib/types/components/input/SelectionInput.styles.d.ts.map +1 -1
  101. package/lib/types/components/input/ToggleInput.d.ts +7 -3
  102. package/lib/types/components/input/ToggleInput.d.ts.map +1 -1
  103. package/lib/types/components/input/ToggleInput.styles.d.ts.map +1 -1
  104. package/lib/types/components/listItem/ListItem.d.ts.map +1 -1
  105. package/lib/types/components/menu/MenuItem.d.ts.map +1 -1
  106. package/lib/types/components/surface/InteractionSurface.d.ts +7 -0
  107. package/lib/types/components/surface/InteractionSurface.d.ts.map +1 -0
  108. package/lib/types/components/surface/StateLayer.d.ts +13 -0
  109. package/lib/types/components/surface/StateLayer.d.ts.map +1 -0
  110. package/lib/types/components/surface/StateLayer.styles.d.ts +4 -0
  111. package/lib/types/components/surface/StateLayer.styles.d.ts.map +1 -0
  112. package/lib/types/components/surface/index.d.ts +3 -0
  113. package/lib/types/components/surface/index.d.ts.map +1 -0
  114. package/lib/types/components/swipe/SwipeAction.d.ts.map +1 -1
  115. package/lib/types/components/tag/Tag.d.ts.map +1 -1
  116. package/lib/types/components/text/Text.d.ts +2 -2
  117. package/lib/types/components/text/Text.d.ts.map +1 -1
  118. package/lib/types/components/text/index.d.ts +0 -1
  119. package/lib/types/components/text/index.d.ts.map +1 -1
  120. package/lib/types/theme/index.d.ts +1 -0
  121. package/lib/types/theme/index.d.ts.map +1 -1
  122. package/lib/types/theme/palette.d.ts +28 -0
  123. package/lib/types/theme/palette.d.ts.map +1 -0
  124. package/lib/types/theme/styles.d.ts +4 -3
  125. package/lib/types/theme/styles.d.ts.map +1 -1
  126. package/lib/types/theme/theme.d.ts +1 -42
  127. package/lib/types/theme/theme.d.ts.map +1 -1
  128. package/package.json +1 -1
  129. package/lib/components/icon/InteractiveIcon.js +0 -1
  130. package/lib/components/icon/InteractiveIcon.styles.js +0 -1
  131. package/lib/components/text/InteractiveText.js +0 -1
  132. package/lib/components/text/InteractiveText.styles.js +0 -1
  133. package/lib/types/components/icon/InteractiveIcon.d.ts +0 -17
  134. package/lib/types/components/icon/InteractiveIcon.d.ts.map +0 -1
  135. package/lib/types/components/icon/InteractiveIcon.styles.d.ts +0 -4
  136. package/lib/types/components/icon/InteractiveIcon.styles.d.ts.map +0 -1
  137. package/lib/types/components/text/InteractiveText.d.ts +0 -18
  138. package/lib/types/components/text/InteractiveText.d.ts.map +0 -1
  139. package/lib/types/components/text/InteractiveText.styles.d.ts +0 -4
  140. package/lib/types/components/text/InteractiveText.styles.d.ts.map +0 -1
@@ -2,10 +2,10 @@ import { type ColorValue } from "react-native";
2
2
  import type { DeepPartial } from "@reillymc/es-utils";
3
3
  import type { ValueItem } from "../../common";
4
4
  import type { ComponentIconAssets } from "../../theme";
5
- import { type InteractiveIconStyles } from "../icon";
5
+ import { type IconBaseStyles } from "../icon";
6
6
  import type { InputBaseProps } from "./InputBase";
7
7
  import { type InputScaffoldFieldProps } from "./InputScaffold";
8
- export type SelectionInputState = "enabled" | "disabled" | "pressed";
8
+ export type SelectionInputState = "enabled" | "disabled";
9
9
  export type SelectionInputStyles = {
10
10
  container: {
11
11
  backgroundColor: Record<SelectionInputState, ColorValue>;
@@ -13,7 +13,7 @@ export type SelectionInputStyles = {
13
13
  selectionContainer: {
14
14
  gap: number;
15
15
  };
16
- icon: Pick<InteractiveIconStyles, "color">;
16
+ icon: Pick<IconBaseStyles, "color">;
17
17
  };
18
18
  export type SelectionInputIcons = ComponentIconAssets<"showOptions">;
19
19
  interface SingleSelection<T> {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/SelectionInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAmB,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAiB,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE9E,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAErE,MAAM,MAAM,oBAAoB,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AM,IAAI,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,GACxE,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAE/E,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,MAAM,IAAI,IAAI,CAC9C,cAAc,EACd,UAAU,GAAG,SAAS,CACzB,GACG,uBAAuB,GACvB,cAAc,CAAC,CAAC,CAAC,GAAG;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAC1C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,IAAI,CAAC;IACxD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEN,eAAO,MAAM,cAAc;KAAI,CAAC,sJAY7B,mBAAmB,CAAC,CAAC,CAAC;;CAqDxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionInput.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/input/SelectionInput.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,eAAO,MAAM,2BAA2B,GACpC,OAAO,KAAK,KACb,oBAiBF,CAAC"}
1
+ {"version":3,"file":"SelectionInput.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/input/SelectionInput.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,eAAO,MAAM,2BAA2B,GACpC,OAAO,KAAK,KACb,oBAcF,CAAC"}
@@ -1,6 +1,7 @@
1
+ import { type ColorValue } from "react-native";
1
2
  import type { DeepPartial } from "@reillymc/es-utils";
2
3
  import type { ComponentIconAssets } from "../../theme";
3
- import { type IconComponentProps, type InteractiveIconStyles } from "../icon";
4
+ import { type IconComponentProps } from "../icon";
4
5
  import type { InputBaseProps, InputVariant } from "./InputBase";
5
6
  import type { InputScaffoldFieldProps } from "./InputScaffold";
6
7
  type ToggleVariant = "primary" | "secondary";
@@ -11,8 +12,11 @@ export type ToggleInputStyles = {
11
12
  [Size in InputVariant]: number;
12
13
  };
13
14
  color: {
14
- deselected: InteractiveIconStyles["color"];
15
- selected: Record<ToggleVariant, InteractiveIconStyles["color"]>;
15
+ deselected: {
16
+ enabled: ColorValue;
17
+ disabled: ColorValue;
18
+ };
19
+ selected: Record<ToggleVariant, ColorValue>;
16
20
  };
17
21
  };
18
22
  label: {
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/ToggleInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EACH,KAAK,kBAAkB,EAEvB,KAAK,qBAAqB,EAC7B,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE/D,KAAK,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,SAAS,EAAE;QACP,IAAI,EAAE;aAAG,IAAI,IAAI,YAAY,GAAG,MAAM;SAAE,CAAC;QACzC,KA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CAAC,SAAS,CAAC,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,SAAS,EAAE;QACP,IAAI,EAAE;aAAG,IAAI,IAAI,YAAY,GAAG,MAAM;SAAE,CAAC;QACzC,KAAK,EAAE;YACH,UAAU,EAAE;gBACR,OAAO,EAAE,UAAU,CAAC;gBACpB,QAAQ,EAAE,UAAU,CAAC;aACxB,CAAC;YACF,QAAQ,EAAE,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;SAC/C,CAAC;KACL,CAAC;IACF,KAAK,EAAE;QACH,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;CACL,CAAC;AAEF,MAAM,WAAW,gBACb,SAAQ,IAAI,CACJ,uBAAuB,EACvB,UAAU,GAAG,OAAO,GAAG,gBAAgB,CAC1C,EACD,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,CAAC;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,KAAK,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACvC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EAAE,2IAW3C,gBAAgB,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCA+E1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleInput.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/input/ToggleInput.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,wBAAwB,GAAI,OAAO,KAAK,KAAG,iBAwBvD,CAAC"}
1
+ {"version":3,"file":"ToggleInput.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/input/ToggleInput.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,wBAAwB,GAAI,OAAO,KAAK,KAAG,iBAuBvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/listItem/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKhF,OAAO,EAAsB,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAG5E,KAAK,eAAe,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,eAAe,CAAC;IAE1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAE/B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,YAAY,CAAC,EAAE,uBAAuB,CAAC,cAAc,CAAC,CAAC;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,qBAAqB,CAAC,EAAE,SA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AAID,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAqEtC,CAAC"}
@@ -1 +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;AAOhC,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,CA+BtC,CAAC"}
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;AAOhC,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,CAwBtC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { FC, ReactNode } from "react";
2
+ import { type ActionBaseProps } from "../action";
3
+ export interface InteractionSurfaceProps extends Pick<ActionBaseProps, "containerStyle" | "disabled" | "onPress" | "hitSlop"> {
4
+ children?: ReactNode;
5
+ }
6
+ export declare const InteractionSurface: FC<InteractionSurfaceProps>;
7
+ //# sourceMappingURL=InteractionSurface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InteractionSurface.d.ts","sourceRoot":"","sources":["../../../../src/components/surface/InteractionSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAG7D,MAAM,WAAW,uBACb,SAAQ,IAAI,CACR,eAAe,EACf,gBAAgB,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CACxD;IACD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAY1D,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { FC } from "react";
2
+ import { type ColorValue, type StyleProp, type ViewStyle } from "react-native";
3
+ import type { ActionState } from "../action";
4
+ export type StateLayerStyles = {
5
+ color: ColorValue;
6
+ hoverOpacity: number;
7
+ pressedOpacity: number;
8
+ };
9
+ export interface StateLayerProps extends ActionState {
10
+ style?: StyleProp<ViewStyle>;
11
+ }
12
+ export declare const StateLayer: FC<StateLayerProps>;
13
+ //# sourceMappingURL=StateLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StateLayer.d.ts","sourceRoot":"","sources":["../../../../src/components/surface/StateLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EACH,KAAK,UAAU,EACf,KAAK,SAAS,EAEd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,EAAE,UAAU,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAChD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA6B1C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Theme } from "../../theme/theme";
2
+ import type { StateLayerStyles } from "./StateLayer";
3
+ export declare const defaultStateLayerStyles: ({ color, }: Theme) => StateLayerStyles;
4
+ //# sourceMappingURL=StateLayer.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StateLayer.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/surface/StateLayer.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,eAAO,MAAM,uBAAuB,GAAI,YAErC,KAAK,KAAG,gBAIT,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { InteractionSurface, type InteractionSurfaceProps, } from "./InteractionSurface";
2
+ export { StateLayer, type StateLayerProps, type StateLayerStyles, } from "./StateLayer";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/surface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,KAAK,uBAAuB,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACH,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACxB,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeAction.d.ts","sourceRoot":"","sources":["../../../../src/components/swipe/SwipeAction.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,gBACb,SAAQ,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,CAAC;CAAG;AAE3D,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EACxC,OAAO,gBAAgB,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCAIlD,CAAC"}
1
+ {"version":3,"file":"SwipeAction.d.ts","sourceRoot":"","sources":["../../../../src/components/swipe/SwipeAction.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,gBACb,SAAQ,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,CAAC;CAAG;AAE3D,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EACxC,OAAO,gBAAgB,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCAUlD,CAAC"}
@@ -1 +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,EAAE,KAAK,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAM1E,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,CAc5B,CAAC"}
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,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMhF,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,CAqB5B,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import type { FC, ReactNode } from "react";
2
- import { type TextProps as RnTextProps, type TextStyle } from "react-native";
2
+ import { type ColorValue, type TextProps as RnTextProps, type TextStyle } from "react-native";
3
3
  export type TextVariant = "display" | "title" | "heading" | "label" | "body" | "caption";
4
4
  export interface TextStyles {
5
- color: string;
5
+ color: ColorValue;
6
6
  font: {
7
7
  [Variant in TextVariant]: {
8
8
  family: string;
@@ -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,EACH,KAAK,UAAU,EAEf,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,UAAU,CAAC;IAClB,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,4 +1,3 @@
1
1
  export { HighlightedText, type HighlightedTextProps, type HighlightedTextStyles, } from "./HighlightedText";
2
- export { InteractiveText, type InteractiveTextProps, type InteractiveTextStyles, } from "./InteractiveText";
3
2
  export { Text, type TextProps, type TextStyles } from "./Text";
4
3
  //# 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,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,4 +1,5 @@
1
1
  export type { ComponentIconAssets, Icons } from "./icons";
2
+ export { darkPalette, lightPalette, type ThemeColors } from "./palette";
2
3
  export { createStyles, type StyleOverrides, type Styles } from "./styles";
3
4
  export { createTheme, type Theme, type ThemeOverrides } from "./theme";
4
5
  //# 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,YAAY,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AACxE,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"}
@@ -0,0 +1,28 @@
1
+ import type { ColorValue } from "react-native";
2
+ export type ThemeColors = {
3
+ background: ColorValue;
4
+ foreground: ColorValue;
5
+ inset: ColorValue;
6
+ insetForeground: ColorValue;
7
+ surface: ColorValue;
8
+ surfaceForeground: ColorValue;
9
+ elevated: ColorValue;
10
+ elevatedForeground: ColorValue;
11
+ primary: ColorValue;
12
+ primaryForeground: ColorValue;
13
+ secondary: ColorValue;
14
+ secondaryForeground: ColorValue;
15
+ destructive: ColorValue;
16
+ destructiveForeground: ColorValue;
17
+ muted: ColorValue;
18
+ mutedForeground: ColorValue;
19
+ border: ColorValue;
20
+ tint1: ColorValue;
21
+ tint2: ColorValue;
22
+ tint3: ColorValue;
23
+ tint4: ColorValue;
24
+ tint5: ColorValue;
25
+ };
26
+ export declare const lightPalette: ThemeColors;
27
+ export declare const darkPalette: ThemeColors;
28
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/theme/palette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IAEvB,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,UAAU,CAAC;IAE5B,OAAO,EAAE,UAAU,CAAC;IACpB,iBAAiB,EAAE,UAAU,CAAC;IAE9B,QAAQ,EAAE,UAAU,CAAC;IACrB,kBAAkB,EAAE,UAAU,CAAC;IAE/B,OAAO,EAAE,UAAU,CAAC;IACpB,iBAAiB,EAAE,UAAU,CAAC;IAC9B,SAAS,EAAE,UAAU,CAAC;IACtB,mBAAmB,EAAE,UAAU,CAAC;IAChC,WAAW,EAAE,UAAU,CAAC;IACxB,qBAAqB,EAAE,UAAU,CAAC;IAElC,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,UAAU,CAAC;IAE5B,MAAM,EAAE,UAAU,CAAC;IAEnB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,WA8B1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WA8BzB,CAAC"}
@@ -1,13 +1,14 @@
1
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";
2
+ import type { ActionBaseStyles, ActionStyles, AlertIndicatorStyles, AvatarStyles, ButtonBaseStyles, ButtonStyles, DropdownInputStyles, FloatingContainerStyles, HighlightedTextStyles, IconActionBaseStyles, IconActionStyles, IconBaseStyles, IconButtonBaseStyles, IconButtonStyles, IconStyles, InputActionStyles, InputBaseStyles, InputScaffoldStyles, ListItemStyles, MenuItemStyles, MenuStyles, RatingInputStyles, RatingStyles, SelectionInputStyles, StateLayerStyles, StateTintStyles, SwipeActionStyles, TagStyles, TextStyles, ToastStyles, ToggleInputStyles } from "../components";
3
3
  import type { Theme } from "./theme";
4
4
  export type Styles = {
5
5
  text: TextStyles;
6
- interactiveText: InteractiveTextStyles;
7
6
  highlightedText: HighlightedTextStyles;
8
7
  icon: IconStyles;
9
8
  iconBase: IconBaseStyles;
10
- interactiveIcon: InteractiveIconStyles;
9
+ actionBase: ActionBaseStyles;
10
+ stateLayer: StateLayerStyles;
11
+ stateTint: StateTintStyles;
11
12
  action: ActionStyles;
12
13
  iconAction: IconActionStyles;
13
14
  iconActionBase: IconActionBaseStyles;
@@ -1 +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,iBAA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AS,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,YA0ChC,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"}
@@ -16,48 +16,7 @@ export declare const DefaultTheme: {
16
16
  xxLarge: number;
17
17
  };
18
18
  };
19
- color: {
20
- primary: string;
21
- primaryDark: string;
22
- primaryLight: string;
23
- secondary: string;
24
- secondaryHighlight: string;
25
- secondaryDisabled: string;
26
- tertiary: string;
27
- destructive: string;
28
- destructiveHighlight: string;
29
- light: string;
30
- white: string;
31
- black: string;
32
- red: string;
33
- orange: string;
34
- green: string;
35
- blue: string;
36
- purple: string;
37
- textPrimary: string;
38
- textSecondary: string;
39
- textHighlight: string;
40
- textInverted: string;
41
- textDisabled: string;
42
- textOnPrimary: string;
43
- textOnSecondary: string;
44
- textOnDestructive: string;
45
- background: string;
46
- backgroundHighlight: string;
47
- foreground: string;
48
- foregroundHighlight: string;
49
- backgroundOverlay: string;
50
- shadow: string;
51
- border: string;
52
- inputBackground: string;
53
- inputBackgroundDisabled: string;
54
- inputText: string;
55
- pressOverlay: string;
56
- alert: string;
57
- error: string;
58
- success: string;
59
- warning: string;
60
- };
19
+ color: import("./palette").ThemeColors;
61
20
  spacing: {
62
21
  large: number;
63
22
  medium: number;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","s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,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reillymc/react-native-components",
3
- "version": "0.11.7",
3
+ "version": "0.12.0",
4
4
  "description": "A collection of React Native components and resources",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1 +0,0 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/icon/InteractiveIcon.tsx";var _excluded=["pressed","style","disabled"];function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{useStyles}from"../../hooks";import{IconBase}from"./IconBase";import{jsx as _jsx}from"react/jsx-runtime";export var InteractiveIcon=t0=>{var $=_c(11);var iconProps;var pressed;var style;var t1;if($[0]!==t0){pressed=t0.pressed;style=t0.style;t1=t0.disabled;iconProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=iconProps;$[2]=pressed;$[3]=style;$[4]=t1;}else{iconProps=$[1];pressed=$[2];style=$[3];t1=$[4];}var disabled=t1===undefined?false:t1;var t2;if($[5]!==style){t2={interactiveIcon:style};$[5]=style;$[6]=t2;}else{t2=$[6];}var _useStyles=useStyles(t2),interactiveIcon=_useStyles.interactiveIcon;var t3=pressed?interactiveIcon.color.pressed:interactiveIcon.color[disabled?"disabled":"enabled"];var t4;if($[7]!==iconProps||$[8]!==interactiveIcon.size||$[9]!==t3){t4=_jsx(IconBase,{...iconProps,size:interactiveIcon.size,color:t3});$[7]=iconProps;$[8]=interactiveIcon.size;$[9]=t3;$[10]=t4;}else{t4=$[10];}return t4;};
@@ -1 +0,0 @@
1
- import{defaultIconBaseStyles}from"./IconBase.styles";export var defaultInteractiveIconStyles=theme=>{var iconBase=defaultIconBaseStyles(theme);return{size:iconBase.size,color:{enabled:theme.color.primary,pressed:theme.color.primaryLight,disabled:theme.color.primaryLight}};};
@@ -1 +0,0 @@
1
- var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/text/InteractiveText.tsx";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{c as _c}from"react/compiler-runtime";import{StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"./Text";import{jsx as _jsx}from"react/jsx-runtime";export var InteractiveText=t0=>{var $=_c(17);var pressed=t0.pressed,styleOverrides=t0.style,textVariant=t0.textVariant,children=t0.children,t1=t0.disabled;var disabled=t1===undefined?false:t1;var t2;if($[0]!==styleOverrides){t2={interactiveText:styleOverrides};$[0]=styleOverrides;$[1]=t2;}else{t2=$[1];}var t3;if($[2]!==disabled){t3={disabled};$[2]=disabled;$[3]=t3;}else{t3=$[3];}var t4;if($[4]!==t2||$[5]!==t3){t4={styles:t2,props:t3};$[4]=t2;$[5]=t3;$[6]=t4;}else{t4=$[6];}var _useThemedStyles=useThemedStyles("interactiveText",createStyles,t4),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t5=_useThemedStyles2[1];var style=t5.style;var t6;if($[7]!==pressed||$[8]!==style){t6=pressed&&{color:style.color.pressed};$[7]=pressed;$[8]=style;$[9]=t6;}else{t6=$[9];}var t7;if($[10]!==styles.label||$[11]!==t6){t7=[styles.label,t6];$[10]=styles.label;$[11]=t6;$[12]=t7;}else{t7=$[12];}var t8;if($[13]!==children||$[14]!==t7||$[15]!==textVariant){t8=_jsx(Text,{numberOfLines:1,variant:textVariant,style:t7,children:children});$[13]=children;$[14]=t7;$[15]=textVariant;$[16]=t8;}else{t8=$[16];}return t8;};var createStyles=({styles:{interactiveText}},{disabled})=>StyleSheet.create({label:{color:interactiveText.color[disabled?"disabled":"enabled"]}});
@@ -1 +0,0 @@
1
- export var defaultInteractiveTextStyles=({color})=>({color:{enabled:color.primary,pressed:color.primaryLight,disabled:color.primaryLight}});
@@ -1,17 +0,0 @@
1
- import type { PressableStateCallbackType } from "react-native";
2
- import type { DeepPartial } from "@reillymc/es-utils";
3
- import { type IconBaseStyles } from "./IconBase";
4
- import type { IconComponentProps } from "./IconComponentProps";
5
- export type InteractiveIconState = "enabled" | "disabled" | "pressed";
6
- export type InteractiveIconStyles = {
7
- size: IconBaseStyles["size"];
8
- color: {
9
- [State in InteractiveIconState]: IconBaseStyles["color"];
10
- };
11
- };
12
- export interface InteractiveIconProps extends PressableStateCallbackType {
13
- style?: DeepPartial<InteractiveIconStyles>;
14
- disabled?: boolean;
15
- }
16
- export declare const InteractiveIcon: <G extends string>({ pressed, style, disabled, ...iconProps }: InteractiveIconProps & IconComponentProps<G>) => import("react").JSX.Element;
17
- //# sourceMappingURL=InteractiveIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InteractiveIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/InteractiveIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IAChC,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC7B,KAAK,EAAE;SACF,KAAK,IAAI,oBAAoB,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3D,CAAC;CACL,CAAC;AAEF,MAAM,WAAW,oBAAqB,SAAQ,0BAA0B;IACpE,KAAK,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,MAAM,EAAE,4CAK/C,oBAAoB,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCAc9C,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { Theme } from "../../theme/theme";
2
- import type { InteractiveIconStyles } from "./InteractiveIcon";
3
- export declare const defaultInteractiveIconStyles: (theme: Theme) => InteractiveIconStyles;
4
- //# sourceMappingURL=InteractiveIcon.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InteractiveIcon.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/InteractiveIcon.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAO,MAAM,4BAA4B,GACrC,OAAO,KAAK,KACb,qBAWF,CAAC"}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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,4 +0,0 @@
1
- import type { Theme } from "../../theme/theme";
2
- import type { InteractiveTextStyles } from "./InteractiveText";
3
- export declare const defaultInteractiveTextStyles: ({ color, }: Theme) => InteractiveTextStyles;
4
- //# sourceMappingURL=InteractiveText.styles.d.ts.map
@@ -1 +0,0 @@
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"}