@objectifthunes/limestone-sdk 0.1.5 → 0.1.7

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 (257) hide show
  1. package/dist/components/index.d.ts +1 -0
  2. package/dist/components/index.d.ts.map +1 -1
  3. package/dist/components/index.js +2 -0
  4. package/dist/components/index.js.map +1 -1
  5. package/dist/components/screens/cart-screen/cart-screen.d.ts +4 -0
  6. package/dist/components/screens/cart-screen/cart-screen.d.ts.map +1 -0
  7. package/dist/components/screens/cart-screen/cart-screen.js +16 -0
  8. package/dist/components/screens/cart-screen/cart-screen.js.map +1 -0
  9. package/dist/components/screens/cart-screen/index.d.ts +4 -0
  10. package/dist/components/screens/cart-screen/index.d.ts.map +1 -0
  11. package/dist/components/screens/cart-screen/index.js +3 -0
  12. package/dist/components/screens/cart-screen/index.js.map +1 -0
  13. package/dist/components/screens/cart-screen/types.d.ts +73 -0
  14. package/dist/components/screens/cart-screen/types.d.ts.map +1 -0
  15. package/dist/components/screens/cart-screen/types.js +2 -0
  16. package/dist/components/screens/cart-screen/types.js.map +1 -0
  17. package/dist/components/screens/cart-screen/use-cart-screen.d.ts +4 -0
  18. package/dist/components/screens/cart-screen/use-cart-screen.d.ts.map +1 -0
  19. package/dist/components/screens/cart-screen/use-cart-screen.js +208 -0
  20. package/dist/components/screens/cart-screen/use-cart-screen.js.map +1 -0
  21. package/dist/components/screens/dashboard-screen/dashboard-screen.d.ts +4 -0
  22. package/dist/components/screens/dashboard-screen/dashboard-screen.d.ts.map +1 -0
  23. package/dist/components/screens/dashboard-screen/dashboard-screen.js +16 -0
  24. package/dist/components/screens/dashboard-screen/dashboard-screen.js.map +1 -0
  25. package/dist/components/screens/dashboard-screen/index.d.ts +4 -0
  26. package/dist/components/screens/dashboard-screen/index.d.ts.map +1 -0
  27. package/dist/components/screens/dashboard-screen/index.js +3 -0
  28. package/dist/components/screens/dashboard-screen/index.js.map +1 -0
  29. package/dist/components/screens/dashboard-screen/types.d.ts +75 -0
  30. package/dist/components/screens/dashboard-screen/types.d.ts.map +1 -0
  31. package/dist/components/screens/dashboard-screen/types.js +2 -0
  32. package/dist/components/screens/dashboard-screen/types.js.map +1 -0
  33. package/dist/components/screens/dashboard-screen/use-dashboard-screen.d.ts +4 -0
  34. package/dist/components/screens/dashboard-screen/use-dashboard-screen.d.ts.map +1 -0
  35. package/dist/components/screens/dashboard-screen/use-dashboard-screen.js +165 -0
  36. package/dist/components/screens/dashboard-screen/use-dashboard-screen.js.map +1 -0
  37. package/dist/components/screens/feed-screen/feed-screen.d.ts +4 -0
  38. package/dist/components/screens/feed-screen/feed-screen.d.ts.map +1 -0
  39. package/dist/components/screens/feed-screen/feed-screen.js +16 -0
  40. package/dist/components/screens/feed-screen/feed-screen.js.map +1 -0
  41. package/dist/components/screens/feed-screen/index.d.ts +4 -0
  42. package/dist/components/screens/feed-screen/index.d.ts.map +1 -0
  43. package/dist/components/screens/feed-screen/index.js +3 -0
  44. package/dist/components/screens/feed-screen/index.js.map +1 -0
  45. package/dist/components/screens/feed-screen/types.d.ts +40 -0
  46. package/dist/components/screens/feed-screen/types.d.ts.map +1 -0
  47. package/dist/components/screens/feed-screen/types.js +2 -0
  48. package/dist/components/screens/feed-screen/types.js.map +1 -0
  49. package/dist/components/screens/feed-screen/use-feed-screen.d.ts +4 -0
  50. package/dist/components/screens/feed-screen/use-feed-screen.d.ts.map +1 -0
  51. package/dist/components/screens/feed-screen/use-feed-screen.js +62 -0
  52. package/dist/components/screens/feed-screen/use-feed-screen.js.map +1 -0
  53. package/dist/components/screens/form-wizard-screen/form-wizard-screen.d.ts +4 -0
  54. package/dist/components/screens/form-wizard-screen/form-wizard-screen.d.ts.map +1 -0
  55. package/dist/components/screens/form-wizard-screen/form-wizard-screen.js +16 -0
  56. package/dist/components/screens/form-wizard-screen/form-wizard-screen.js.map +1 -0
  57. package/dist/components/screens/form-wizard-screen/index.d.ts +4 -0
  58. package/dist/components/screens/form-wizard-screen/index.d.ts.map +1 -0
  59. package/dist/components/screens/form-wizard-screen/index.js +3 -0
  60. package/dist/components/screens/form-wizard-screen/index.js.map +1 -0
  61. package/dist/components/screens/form-wizard-screen/types.d.ts +51 -0
  62. package/dist/components/screens/form-wizard-screen/types.d.ts.map +1 -0
  63. package/dist/components/screens/form-wizard-screen/types.js +2 -0
  64. package/dist/components/screens/form-wizard-screen/types.js.map +1 -0
  65. package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.d.ts +4 -0
  66. package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.d.ts.map +1 -0
  67. package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.js +133 -0
  68. package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.js.map +1 -0
  69. package/dist/components/screens/history-screen/history-screen.d.ts +4 -0
  70. package/dist/components/screens/history-screen/history-screen.d.ts.map +1 -0
  71. package/dist/components/screens/history-screen/history-screen.js +16 -0
  72. package/dist/components/screens/history-screen/history-screen.js.map +1 -0
  73. package/dist/components/screens/history-screen/index.d.ts +4 -0
  74. package/dist/components/screens/history-screen/index.d.ts.map +1 -0
  75. package/dist/components/screens/history-screen/index.js +3 -0
  76. package/dist/components/screens/history-screen/index.js.map +1 -0
  77. package/dist/components/screens/history-screen/types.d.ts +65 -0
  78. package/dist/components/screens/history-screen/types.d.ts.map +1 -0
  79. package/dist/components/screens/history-screen/types.js +2 -0
  80. package/dist/components/screens/history-screen/types.js.map +1 -0
  81. package/dist/components/screens/history-screen/use-history-screen.d.ts +4 -0
  82. package/dist/components/screens/history-screen/use-history-screen.d.ts.map +1 -0
  83. package/dist/components/screens/history-screen/use-history-screen.js +122 -0
  84. package/dist/components/screens/history-screen/use-history-screen.js.map +1 -0
  85. package/dist/components/screens/index.d.ts +20 -0
  86. package/dist/components/screens/index.d.ts.map +1 -1
  87. package/dist/components/screens/index.js +10 -0
  88. package/dist/components/screens/index.js.map +1 -1
  89. package/dist/components/screens/media-detail-screen/index.d.ts +4 -0
  90. package/dist/components/screens/media-detail-screen/index.d.ts.map +1 -0
  91. package/dist/components/screens/media-detail-screen/index.js +3 -0
  92. package/dist/components/screens/media-detail-screen/index.js.map +1 -0
  93. package/dist/components/screens/media-detail-screen/media-detail-screen.d.ts +4 -0
  94. package/dist/components/screens/media-detail-screen/media-detail-screen.d.ts.map +1 -0
  95. package/dist/components/screens/media-detail-screen/media-detail-screen.js +16 -0
  96. package/dist/components/screens/media-detail-screen/media-detail-screen.js.map +1 -0
  97. package/dist/components/screens/media-detail-screen/types.d.ts +55 -0
  98. package/dist/components/screens/media-detail-screen/types.d.ts.map +1 -0
  99. package/dist/components/screens/media-detail-screen/types.js +2 -0
  100. package/dist/components/screens/media-detail-screen/types.js.map +1 -0
  101. package/dist/components/screens/media-detail-screen/use-media-detail-screen.d.ts +4 -0
  102. package/dist/components/screens/media-detail-screen/use-media-detail-screen.d.ts.map +1 -0
  103. package/dist/components/screens/media-detail-screen/use-media-detail-screen.js +126 -0
  104. package/dist/components/screens/media-detail-screen/use-media-detail-screen.js.map +1 -0
  105. package/dist/components/screens/notification-center-screen/index.d.ts +4 -0
  106. package/dist/components/screens/notification-center-screen/index.d.ts.map +1 -0
  107. package/dist/components/screens/notification-center-screen/index.js +3 -0
  108. package/dist/components/screens/notification-center-screen/index.js.map +1 -0
  109. package/dist/components/screens/notification-center-screen/notification-center-screen.d.ts +4 -0
  110. package/dist/components/screens/notification-center-screen/notification-center-screen.d.ts.map +1 -0
  111. package/dist/components/screens/notification-center-screen/notification-center-screen.js +16 -0
  112. package/dist/components/screens/notification-center-screen/notification-center-screen.js.map +1 -0
  113. package/dist/components/screens/notification-center-screen/types.d.ts +52 -0
  114. package/dist/components/screens/notification-center-screen/types.d.ts.map +1 -0
  115. package/dist/components/screens/notification-center-screen/types.js +2 -0
  116. package/dist/components/screens/notification-center-screen/types.js.map +1 -0
  117. package/dist/components/screens/notification-center-screen/use-notification-center-screen.d.ts +4 -0
  118. package/dist/components/screens/notification-center-screen/use-notification-center-screen.d.ts.map +1 -0
  119. package/dist/components/screens/notification-center-screen/use-notification-center-screen.js +124 -0
  120. package/dist/components/screens/notification-center-screen/use-notification-center-screen.js.map +1 -0
  121. package/dist/components/screens/order-tracking-screen/index.d.ts +4 -0
  122. package/dist/components/screens/order-tracking-screen/index.d.ts.map +1 -0
  123. package/dist/components/screens/order-tracking-screen/index.js +3 -0
  124. package/dist/components/screens/order-tracking-screen/index.js.map +1 -0
  125. package/dist/components/screens/order-tracking-screen/order-tracking-screen.d.ts +4 -0
  126. package/dist/components/screens/order-tracking-screen/order-tracking-screen.d.ts.map +1 -0
  127. package/dist/components/screens/order-tracking-screen/order-tracking-screen.js +16 -0
  128. package/dist/components/screens/order-tracking-screen/order-tracking-screen.js.map +1 -0
  129. package/dist/components/screens/order-tracking-screen/types.d.ts +55 -0
  130. package/dist/components/screens/order-tracking-screen/types.d.ts.map +1 -0
  131. package/dist/components/screens/order-tracking-screen/types.js +2 -0
  132. package/dist/components/screens/order-tracking-screen/types.js.map +1 -0
  133. package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.d.ts +4 -0
  134. package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.d.ts.map +1 -0
  135. package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.js +177 -0
  136. package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.js.map +1 -0
  137. package/dist/components/screens/product-detail-screen/index.d.ts +4 -0
  138. package/dist/components/screens/product-detail-screen/index.d.ts.map +1 -0
  139. package/dist/components/screens/product-detail-screen/index.js +3 -0
  140. package/dist/components/screens/product-detail-screen/index.js.map +1 -0
  141. package/dist/components/screens/product-detail-screen/product-detail-screen.d.ts +4 -0
  142. package/dist/components/screens/product-detail-screen/product-detail-screen.d.ts.map +1 -0
  143. package/dist/components/screens/product-detail-screen/product-detail-screen.js +16 -0
  144. package/dist/components/screens/product-detail-screen/product-detail-screen.js.map +1 -0
  145. package/dist/components/screens/product-detail-screen/types.d.ts +70 -0
  146. package/dist/components/screens/product-detail-screen/types.d.ts.map +1 -0
  147. package/dist/components/screens/product-detail-screen/types.js +2 -0
  148. package/dist/components/screens/product-detail-screen/types.js.map +1 -0
  149. package/dist/components/screens/product-detail-screen/use-product-detail-screen.d.ts +4 -0
  150. package/dist/components/screens/product-detail-screen/use-product-detail-screen.d.ts.map +1 -0
  151. package/dist/components/screens/product-detail-screen/use-product-detail-screen.js +202 -0
  152. package/dist/components/screens/product-detail-screen/use-product-detail-screen.js.map +1 -0
  153. package/dist/components/screens/transaction-detail-screen/index.d.ts +4 -0
  154. package/dist/components/screens/transaction-detail-screen/index.d.ts.map +1 -0
  155. package/dist/components/screens/transaction-detail-screen/index.js +3 -0
  156. package/dist/components/screens/transaction-detail-screen/index.js.map +1 -0
  157. package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.d.ts +4 -0
  158. package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.d.ts.map +1 -0
  159. package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.js +16 -0
  160. package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.js.map +1 -0
  161. package/dist/components/screens/transaction-detail-screen/types.d.ts +72 -0
  162. package/dist/components/screens/transaction-detail-screen/types.d.ts.map +1 -0
  163. package/dist/components/screens/transaction-detail-screen/types.js +2 -0
  164. package/dist/components/screens/transaction-detail-screen/types.js.map +1 -0
  165. package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.d.ts +4 -0
  166. package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.d.ts.map +1 -0
  167. package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.js +221 -0
  168. package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.js.map +1 -0
  169. package/dist/components/social/comment-thread/comment-thread.d.ts +3 -0
  170. package/dist/components/social/comment-thread/comment-thread.d.ts.map +1 -0
  171. package/dist/components/social/comment-thread/comment-thread.js +88 -0
  172. package/dist/components/social/comment-thread/comment-thread.js.map +1 -0
  173. package/dist/components/social/comment-thread/index.d.ts +4 -0
  174. package/dist/components/social/comment-thread/index.d.ts.map +1 -0
  175. package/dist/components/social/comment-thread/index.js +3 -0
  176. package/dist/components/social/comment-thread/index.js.map +1 -0
  177. package/dist/components/social/comment-thread/types.d.ts +47 -0
  178. package/dist/components/social/comment-thread/types.d.ts.map +1 -0
  179. package/dist/components/social/comment-thread/types.js +2 -0
  180. package/dist/components/social/comment-thread/types.js.map +1 -0
  181. package/dist/components/social/comment-thread/use-comment-thread.d.ts +4 -0
  182. package/dist/components/social/comment-thread/use-comment-thread.d.ts.map +1 -0
  183. package/dist/components/social/comment-thread/use-comment-thread.js +100 -0
  184. package/dist/components/social/comment-thread/use-comment-thread.js.map +1 -0
  185. package/dist/components/social/index.d.ts +11 -0
  186. package/dist/components/social/index.d.ts.map +1 -0
  187. package/dist/components/social/index.js +6 -0
  188. package/dist/components/social/index.js.map +1 -0
  189. package/dist/components/social/mention-input/index.d.ts +4 -0
  190. package/dist/components/social/mention-input/index.d.ts.map +1 -0
  191. package/dist/components/social/mention-input/index.js +3 -0
  192. package/dist/components/social/mention-input/index.js.map +1 -0
  193. package/dist/components/social/mention-input/mention-input.d.ts +3 -0
  194. package/dist/components/social/mention-input/mention-input.d.ts.map +1 -0
  195. package/dist/components/social/mention-input/mention-input.js +50 -0
  196. package/dist/components/social/mention-input/mention-input.js.map +1 -0
  197. package/dist/components/social/mention-input/types.d.ts +46 -0
  198. package/dist/components/social/mention-input/types.d.ts.map +1 -0
  199. package/dist/components/social/mention-input/types.js +2 -0
  200. package/dist/components/social/mention-input/types.js.map +1 -0
  201. package/dist/components/social/mention-input/use-mention-input.d.ts +4 -0
  202. package/dist/components/social/mention-input/use-mention-input.d.ts.map +1 -0
  203. package/dist/components/social/mention-input/use-mention-input.js +124 -0
  204. package/dist/components/social/mention-input/use-mention-input.js.map +1 -0
  205. package/dist/components/social/presence-indicator/index.d.ts +4 -0
  206. package/dist/components/social/presence-indicator/index.d.ts.map +1 -0
  207. package/dist/components/social/presence-indicator/index.js +3 -0
  208. package/dist/components/social/presence-indicator/index.js.map +1 -0
  209. package/dist/components/social/presence-indicator/presence-indicator.d.ts +3 -0
  210. package/dist/components/social/presence-indicator/presence-indicator.d.ts.map +1 -0
  211. package/dist/components/social/presence-indicator/presence-indicator.js +17 -0
  212. package/dist/components/social/presence-indicator/presence-indicator.js.map +1 -0
  213. package/dist/components/social/presence-indicator/types.d.ts +24 -0
  214. package/dist/components/social/presence-indicator/types.d.ts.map +1 -0
  215. package/dist/components/social/presence-indicator/types.js +2 -0
  216. package/dist/components/social/presence-indicator/types.js.map +1 -0
  217. package/dist/components/social/presence-indicator/use-presence-indicator.d.ts +4 -0
  218. package/dist/components/social/presence-indicator/use-presence-indicator.d.ts.map +1 -0
  219. package/dist/components/social/presence-indicator/use-presence-indicator.js +60 -0
  220. package/dist/components/social/presence-indicator/use-presence-indicator.js.map +1 -0
  221. package/dist/components/social/reaction-picker/index.d.ts +4 -0
  222. package/dist/components/social/reaction-picker/index.d.ts.map +1 -0
  223. package/dist/components/social/reaction-picker/index.js +3 -0
  224. package/dist/components/social/reaction-picker/index.js.map +1 -0
  225. package/dist/components/social/reaction-picker/reaction-picker.d.ts +11 -0
  226. package/dist/components/social/reaction-picker/reaction-picker.d.ts.map +1 -0
  227. package/dist/components/social/reaction-picker/reaction-picker.js +25 -0
  228. package/dist/components/social/reaction-picker/reaction-picker.js.map +1 -0
  229. package/dist/components/social/reaction-picker/types.d.ts +41 -0
  230. package/dist/components/social/reaction-picker/types.d.ts.map +1 -0
  231. package/dist/components/social/reaction-picker/types.js +2 -0
  232. package/dist/components/social/reaction-picker/types.js.map +1 -0
  233. package/dist/components/social/reaction-picker/use-reaction-picker.d.ts +4 -0
  234. package/dist/components/social/reaction-picker/use-reaction-picker.d.ts.map +1 -0
  235. package/dist/components/social/reaction-picker/use-reaction-picker.js +93 -0
  236. package/dist/components/social/reaction-picker/use-reaction-picker.js.map +1 -0
  237. package/dist/components/social/story-row/index.d.ts +4 -0
  238. package/dist/components/social/story-row/index.d.ts.map +1 -0
  239. package/dist/components/social/story-row/index.js +3 -0
  240. package/dist/components/social/story-row/index.js.map +1 -0
  241. package/dist/components/social/story-row/story-row.d.ts +13 -0
  242. package/dist/components/social/story-row/story-row.d.ts.map +1 -0
  243. package/dist/components/social/story-row/story-row.js +29 -0
  244. package/dist/components/social/story-row/story-row.js.map +1 -0
  245. package/dist/components/social/story-row/types.d.ts +37 -0
  246. package/dist/components/social/story-row/types.d.ts.map +1 -0
  247. package/dist/components/social/story-row/types.js +2 -0
  248. package/dist/components/social/story-row/types.js.map +1 -0
  249. package/dist/components/social/story-row/use-story-row.d.ts +4 -0
  250. package/dist/components/social/story-row/use-story-row.d.ts.map +1 -0
  251. package/dist/components/social/story-row/use-story-row.js +71 -0
  252. package/dist/components/social/story-row/use-story-row.js.map +1 -0
  253. package/dist/index.d.ts +2 -0
  254. package/dist/index.d.ts.map +1 -1
  255. package/dist/index.js +2 -0
  256. package/dist/index.js.map +1 -1
  257. package/package.json +1 -1
@@ -0,0 +1,70 @@
1
+ import type { BoxStyleProps } from '../../types.js';
2
+ import type { ResolvedBoxStyle, ResolvedTextStyle } from '../../use-component-style.js';
3
+ export interface ProductVariantOption {
4
+ value: string;
5
+ label: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface ProductVariant {
9
+ key: string;
10
+ label: string;
11
+ options: ProductVariantOption[];
12
+ selectedValue?: string;
13
+ onSelect?: (value: string) => void;
14
+ }
15
+ export interface ProductDetailScreenProps extends BoxStyleProps {
16
+ title: string;
17
+ price: string;
18
+ originalPrice?: string;
19
+ images: string[];
20
+ description?: string;
21
+ rating?: number;
22
+ reviewCount?: number;
23
+ variants?: ProductVariant[];
24
+ quantity?: number;
25
+ onQuantityChange?: (qty: number) => void;
26
+ minQuantity?: number;
27
+ maxQuantity?: number;
28
+ onAddToCart?: () => void;
29
+ onWishlist?: () => void;
30
+ addToCartLabel?: string;
31
+ inWishlist?: boolean;
32
+ loading?: boolean;
33
+ accessibilityLabel?: string;
34
+ testID?: string;
35
+ }
36
+ export interface UseProductDetailScreenResult {
37
+ containerStyle: ResolvedBoxStyle;
38
+ carouselStyle: ResolvedBoxStyle;
39
+ bodyScrollStyle: ResolvedBoxStyle;
40
+ bodyContentStyle: ResolvedBoxStyle;
41
+ titleStyle: ResolvedTextStyle;
42
+ priceRowStyle: ResolvedBoxStyle;
43
+ priceStyle: ResolvedTextStyle;
44
+ originalPriceStyle: ResolvedTextStyle;
45
+ ratingRowStyle: ResolvedBoxStyle;
46
+ ratingValueStyle: ResolvedTextStyle;
47
+ reviewCountStyle: ResolvedTextStyle;
48
+ descriptionStyle: ResolvedTextStyle;
49
+ variantLabelStyle: ResolvedTextStyle;
50
+ variantOptionsRowStyle: ResolvedBoxStyle;
51
+ variantOptionStyle: ResolvedBoxStyle & ResolvedTextStyle;
52
+ variantOptionSelectedStyle: ResolvedBoxStyle & ResolvedTextStyle;
53
+ variantOptionDisabledStyle: ResolvedBoxStyle & ResolvedTextStyle;
54
+ quantityRowStyle: ResolvedBoxStyle;
55
+ quantityButtonStyle: ResolvedBoxStyle;
56
+ quantityValueStyle: ResolvedTextStyle & Pick<ResolvedBoxStyle, 'minWidth'>;
57
+ footerStyle: ResolvedBoxStyle;
58
+ wishlistButtonStyle: ResolvedBoxStyle;
59
+ addToCartButtonStyle: ResolvedBoxStyle;
60
+ addToCartLabelStyle: ResolvedTextStyle;
61
+ loadingStyle: ResolvedBoxStyle;
62
+ canDecrement: boolean;
63
+ canIncrement: boolean;
64
+ showWishlist: boolean;
65
+ accessibilityProps: {
66
+ accessibilityLabel?: string;
67
+ testID?: string;
68
+ };
69
+ }
70
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/product-detail-screen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,i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aAAa,EAAE,gBAAgB,CAAC;IAChC,eAAe,EAAE,gBAAgB,CAAC;IAClC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,UAAU,EAAE,iBAAiB,CAAC;IAC9B,aAAa,EAAE,gBAAgB,CAAC;IAChC,UAAU,EAAE,iBAAiB,CAAC;IAC9B,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,cAAc,EAAE,gBAAgB,CAAC;IACjC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,sBAAsB,EAAE,gBAAgB,CAAC;IACzC,kBAAkB,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;IACzD,0BAA0B,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;IACjE,0BAA0B,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;IACjE,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,mBAAmB,EAAE,gBAAgB,CAAC;IACtC,kBAAkB,EAAE,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;IAC3E,WAAW,EAAE,gBAAgB,CAAC;IAC9B,mBAAmB,EAAE,gBAAgB,CAAC;IACtC,oBAAoB,EAAE,gBAAgB,CAAC;IACvC,mBAAmB,EAAE,iBAAiB,CAAC;IACvC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE;QAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/screens/product-detail-screen/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { ProductDetailScreenProps, UseProductDetailScreenResult } from './types.js';
3
+ export declare function useProductDetailScreen(tokens: ThemeTokens, props: ProductDetailScreenProps): UseProductDetailScreenResult;
4
+ //# sourceMappingURL=use-product-detail-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-product-detail-screen.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/product-detail-screen/use-product-detail-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAGzF,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,wBAAwB,GAC9B,4BAA4B,CAyO9B"}
@@ -0,0 +1,202 @@
1
+ export function useProductDetailScreen(tokens, props) {
2
+ const { accessibilityLabel, testID, quantity = 1, minQuantity = 1, maxQuantity = 99, onWishlist, } = props;
3
+ const canDecrement = quantity > minQuantity;
4
+ const canIncrement = quantity < maxQuantity;
5
+ const showWishlist = onWishlist !== undefined;
6
+ const containerStyle = {
7
+ flex: 1,
8
+ backgroundColor: tokens.colors.background,
9
+ };
10
+ const carouselStyle = {
11
+ height: 320,
12
+ width: '100%',
13
+ };
14
+ const bodyScrollStyle = {
15
+ flex: 1,
16
+ };
17
+ const bodyContentStyle = {
18
+ padding: tokens.spacing.md,
19
+ gap: tokens.spacing.md,
20
+ };
21
+ const titleStyle = {
22
+ fontSize: tokens.typography.sizes.lg,
23
+ fontWeight: tokens.typography.weights.bold,
24
+ color: tokens.colors.foreground,
25
+ fontFamily: tokens.typography.fontFamily.body,
26
+ };
27
+ const priceRowStyle = {
28
+ flexDirection: 'row',
29
+ alignItems: 'center',
30
+ gap: tokens.spacing.sm,
31
+ };
32
+ const priceStyle = {
33
+ fontSize: tokens.typography.sizes.lg,
34
+ fontWeight: tokens.typography.weights.bold,
35
+ color: tokens.colors.primary,
36
+ fontFamily: tokens.typography.fontFamily.body,
37
+ };
38
+ const originalPriceStyle = {
39
+ fontSize: tokens.typography.sizes.sm,
40
+ color: tokens.colors.mutedForeground,
41
+ textDecorationLine: 'line-through',
42
+ fontFamily: tokens.typography.fontFamily.body,
43
+ };
44
+ const ratingRowStyle = {
45
+ flexDirection: 'row',
46
+ gap: tokens.spacing.xs,
47
+ alignItems: 'center',
48
+ };
49
+ const ratingValueStyle = {
50
+ fontSize: tokens.typography.sizes.sm,
51
+ fontWeight: tokens.typography.weights.semibold,
52
+ color: tokens.colors.foreground,
53
+ fontFamily: tokens.typography.fontFamily.body,
54
+ };
55
+ const reviewCountStyle = {
56
+ fontSize: tokens.typography.sizes.xs,
57
+ color: tokens.colors.mutedForeground,
58
+ fontFamily: tokens.typography.fontFamily.body,
59
+ };
60
+ const descriptionStyle = {
61
+ fontSize: tokens.typography.sizes.sm,
62
+ lineHeight: tokens.typography.lineHeights.relaxed,
63
+ color: tokens.colors.foreground,
64
+ fontFamily: tokens.typography.fontFamily.body,
65
+ };
66
+ const variantLabelStyle = {
67
+ fontSize: tokens.typography.sizes.sm,
68
+ fontWeight: tokens.typography.weights.semibold,
69
+ color: tokens.colors.foreground,
70
+ fontFamily: tokens.typography.fontFamily.body,
71
+ };
72
+ const variantOptionsRowStyle = {
73
+ flexDirection: 'row',
74
+ flexWrap: 'wrap',
75
+ gap: tokens.spacing.xs,
76
+ };
77
+ const variantOptionStyle = {
78
+ paddingHorizontal: tokens.spacing.sm,
79
+ paddingVertical: tokens.spacing.xs,
80
+ borderRadius: tokens.radii.sm,
81
+ borderWidth: 1,
82
+ borderColor: tokens.colors.border,
83
+ fontSize: tokens.typography.sizes.sm,
84
+ color: tokens.colors.foreground,
85
+ fontFamily: tokens.typography.fontFamily.body,
86
+ };
87
+ const variantOptionSelectedStyle = {
88
+ paddingHorizontal: tokens.spacing.sm,
89
+ paddingVertical: tokens.spacing.xs,
90
+ borderRadius: tokens.radii.sm,
91
+ borderWidth: 1,
92
+ borderColor: tokens.colors.primary,
93
+ backgroundColor: tokens.colors.card,
94
+ fontSize: tokens.typography.sizes.sm,
95
+ color: tokens.colors.primary,
96
+ fontFamily: tokens.typography.fontFamily.body,
97
+ };
98
+ const variantOptionDisabledStyle = {
99
+ paddingHorizontal: tokens.spacing.sm,
100
+ paddingVertical: tokens.spacing.xs,
101
+ borderRadius: tokens.radii.sm,
102
+ borderWidth: 1,
103
+ borderColor: tokens.colors.border,
104
+ fontSize: tokens.typography.sizes.sm,
105
+ color: tokens.colors.mutedForeground,
106
+ fontFamily: tokens.typography.fontFamily.body,
107
+ opacity: 0.5,
108
+ };
109
+ const quantityRowStyle = {
110
+ flexDirection: 'row',
111
+ alignItems: 'center',
112
+ gap: tokens.spacing.sm,
113
+ };
114
+ const quantityButtonStyle = {
115
+ width: 32,
116
+ height: 32,
117
+ borderRadius: tokens.radii.full,
118
+ borderWidth: 1,
119
+ borderColor: tokens.colors.border,
120
+ alignItems: 'center',
121
+ justifyContent: 'center',
122
+ };
123
+ const quantityValueStyle = {
124
+ fontSize: tokens.typography.sizes.sm,
125
+ fontWeight: tokens.typography.weights.semibold,
126
+ color: tokens.colors.foreground,
127
+ fontFamily: tokens.typography.fontFamily.body,
128
+ minWidth: 32,
129
+ textAlign: 'center',
130
+ };
131
+ const footerStyle = {
132
+ flexDirection: 'row',
133
+ padding: tokens.spacing.md,
134
+ borderTopWidth: 1,
135
+ borderColor: tokens.colors.border,
136
+ gap: tokens.spacing.md,
137
+ backgroundColor: tokens.colors.background,
138
+ };
139
+ const wishlistButtonStyle = {
140
+ width: 44,
141
+ height: 44,
142
+ borderRadius: tokens.radii.full,
143
+ borderWidth: 1,
144
+ borderColor: tokens.colors.border,
145
+ alignItems: 'center',
146
+ justifyContent: 'center',
147
+ };
148
+ const addToCartButtonStyle = {
149
+ flex: 1,
150
+ backgroundColor: tokens.colors.primary,
151
+ borderRadius: tokens.radii.md,
152
+ alignItems: 'center',
153
+ justifyContent: 'center',
154
+ height: 44,
155
+ };
156
+ const addToCartLabelStyle = {
157
+ fontSize: tokens.typography.sizes.sm,
158
+ fontWeight: tokens.typography.weights.bold,
159
+ color: tokens.colors.primaryForeground,
160
+ fontFamily: tokens.typography.fontFamily.body,
161
+ };
162
+ const loadingStyle = {
163
+ flex: 1,
164
+ alignItems: 'center',
165
+ justifyContent: 'center',
166
+ };
167
+ return {
168
+ containerStyle,
169
+ carouselStyle,
170
+ bodyScrollStyle,
171
+ bodyContentStyle,
172
+ titleStyle,
173
+ priceRowStyle,
174
+ priceStyle,
175
+ originalPriceStyle,
176
+ ratingRowStyle,
177
+ ratingValueStyle,
178
+ reviewCountStyle,
179
+ descriptionStyle,
180
+ variantLabelStyle,
181
+ variantOptionsRowStyle,
182
+ variantOptionStyle,
183
+ variantOptionSelectedStyle,
184
+ variantOptionDisabledStyle,
185
+ quantityRowStyle,
186
+ quantityButtonStyle,
187
+ quantityValueStyle,
188
+ footerStyle,
189
+ wishlistButtonStyle,
190
+ addToCartButtonStyle,
191
+ addToCartLabelStyle,
192
+ loadingStyle,
193
+ canDecrement,
194
+ canIncrement,
195
+ showWishlist,
196
+ accessibilityProps: {
197
+ ...(accessibilityLabel !== undefined && { accessibilityLabel }),
198
+ ...(testID !== undefined && { testID }),
199
+ },
200
+ };
201
+ }
202
+ //# sourceMappingURL=use-product-detail-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-product-detail-screen.js","sourceRoot":"","sources":["../../../../src/components/screens/product-detail-screen/use-product-detail-screen.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,sBAAsB,CACpC,MAAmB,EACnB,KAA+B;IAE/B,MAAM,EACJ,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,GAAG,CAAC,EACZ,WAAW,GAAG,CAAC,EACf,WAAW,GAAG,EAAE,EAChB,UAAU,GACX,GAAG,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ChB,gBAAgB;QAChB,iBAAiB;QACjB,sBAAsB;QACtB,kBAAkB;QAClB,0BAA0B;QAC1B,0BAA0B;QAC1B,gBAAgB;QAChB,mBAAmB;QACnB,kBAAkB;QAClB,WAAW;QACX,mBAAmB;QACnB,oBAAoB;QACpB,mBAAmB;QACnB,YAAY;QACZ,YAAY;QACZ,YAAY;QACZ,YAAY;QACZ,kBAAkB,EAAE;YAClB,GAAG,CAAC,kBAAkB,KAAK,SAAS,IAAI,EAAE,kBAAkB,EAAE,CAAC;YAC/D,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;SACxC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { TransactionDetailScreen } from './transaction-detail-screen.js';
2
+ export { useTransactionDetailScreen } from './use-transaction-detail-screen.js';
3
+ export type { TransactionDetailScreenProps, LineItem, MetadataRow, TransactionAction, UseTransactionDetailScreenResult, } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/transaction-detail-screen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,YAAY,EACV,4BAA4B,EAC5B,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,gCAAgC,GACjC,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { TransactionDetailScreen } from './transaction-detail-screen.js';
2
+ export { useTransactionDetailScreen } from './use-transaction-detail-screen.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/screens/transaction-detail-screen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { View, type ViewProps } from 'react-native';
2
+ import type { TransactionDetailScreenProps } from './types.js';
3
+ export declare const TransactionDetailScreen: import("react").ForwardRefExoticComponent<TransactionDetailScreenProps & Omit<ViewProps, keyof TransactionDetailScreenProps> & import("react").RefAttributes<View>>;
4
+ //# sourceMappingURL=transaction-detail-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-detail-screen.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/transaction-detail-screen/transaction-detail-screen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAE/D,eAAO,MAAM,uBAAuB,qKA4BlC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { forwardRef, createElement } from 'react';
2
+ import { View } from 'react-native';
3
+ import { useTheme } from '../../../theme/context.js';
4
+ import { useTransactionDetailScreen } from './use-transaction-detail-screen.js';
5
+ export const TransactionDetailScreen = forwardRef(function TransactionDetailScreen(props, ref) {
6
+ const { tokens } = useTheme();
7
+ const { amount: _amount, amountType: _amountType, status: _status, merchantName: _merchantName, merchantCategory: _merchantCategory, merchantLogo: _merchantLogo, lineItems: _lineItems, metadata: _metadata, actions: _actions, onCopy: _onCopy, bg: _bg, p: _p, px: _px, py: _py, pt: _pt, pb: _pb, pl: _pl, pr: _pr, m: _m, mx: _mx, my: _my, mt: _mt, mb: _mb, ml: _ml, mr: _mr, rounded: _rounded, shadow: _shadow, flex: _flex, row: _row, center: _center, w: _w, h: _h, borderWidth: _bw, borderColor: _bc, opacity: _op, overflow: _ov, position: _pos, top: _top, bottom: _bot, left: _left, right: _right, zIndex: _zi, children, ...rest } = props;
8
+ const { containerStyle, accessibilityProps } = useTransactionDetailScreen(tokens, props);
9
+ return createElement(View, {
10
+ ref,
11
+ style: containerStyle,
12
+ ...accessibilityProps,
13
+ ...rest,
14
+ }, children);
15
+ });
16
+ //# sourceMappingURL=transaction-detail-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction-detail-screen.js","sourceRoot":"","sources":["../../../../src/components/screens/transaction-detail-screen/transaction-detail-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAA4B,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAAC,SAAS,uBAAuB,CAChF,KAAyF,EACzF,GAAc;IAEd,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EACJ,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EACzD,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAChE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAClD,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EACvD,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EACpE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAC3E,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAC9D,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EACnE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAC1B,QAAQ,EACR,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,0BAA0B,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEzF,OAAO,aAAa,CAAC,IAAW,EAAE;QAChC,GAAG;QACH,KAAK,EAAE,cAAc;QACrB,GAAG,kBAAkB;QACrB,GAAG,IAAI;KACR,EAAE,QAAqB,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
@@ -0,0 +1,72 @@
1
+ import type { BoxStyleProps } from '../../types.js';
2
+ import type { ResolvedBoxStyle, ResolvedTextStyle } from '../../use-component-style.js';
3
+ export interface LineItem {
4
+ label: string;
5
+ amount: string;
6
+ muted?: boolean;
7
+ bold?: boolean;
8
+ }
9
+ export interface MetadataRow {
10
+ label: string;
11
+ value: string;
12
+ copyable?: boolean;
13
+ }
14
+ export interface TransactionAction {
15
+ key: string;
16
+ label: string;
17
+ icon?: string;
18
+ onPress?: () => void;
19
+ destructive?: boolean;
20
+ }
21
+ export interface TransactionDetailScreenProps extends BoxStyleProps {
22
+ amount: string;
23
+ amountType?: 'debit' | 'credit' | 'neutral';
24
+ status: 'completed' | 'pending' | 'failed' | 'refunded';
25
+ merchantName: string;
26
+ merchantCategory?: string;
27
+ merchantLogo?: string;
28
+ lineItems?: LineItem[];
29
+ metadata?: MetadataRow[];
30
+ actions?: TransactionAction[];
31
+ onCopy?: (value: string) => void;
32
+ accessibilityLabel?: string;
33
+ testID?: string;
34
+ }
35
+ export interface UseTransactionDetailScreenResult {
36
+ containerStyle: ResolvedBoxStyle;
37
+ scrollContentStyle: ResolvedBoxStyle;
38
+ amountContainerStyle: ResolvedBoxStyle;
39
+ amountStyle: ResolvedTextStyle;
40
+ debitAmountStyle: ResolvedTextStyle;
41
+ creditAmountStyle: ResolvedTextStyle;
42
+ statusBadgeStyle: ResolvedBoxStyle;
43
+ completedBadgeStyle: ResolvedBoxStyle;
44
+ pendingBadgeStyle: ResolvedBoxStyle;
45
+ failedBadgeStyle: ResolvedBoxStyle;
46
+ refundedBadgeStyle: ResolvedBoxStyle;
47
+ statusTextStyle: ResolvedTextStyle;
48
+ merchantRowStyle: ResolvedBoxStyle;
49
+ merchantLogoStyle: ResolvedBoxStyle;
50
+ merchantNameStyle: ResolvedTextStyle;
51
+ merchantCategoryStyle: ResolvedTextStyle;
52
+ cardStyle: ResolvedBoxStyle;
53
+ lineItemRowStyle: ResolvedBoxStyle;
54
+ lineItemLabelStyle: ResolvedTextStyle;
55
+ lineItemAmountStyle: ResolvedTextStyle;
56
+ mutedLineItemStyle: ResolvedTextStyle;
57
+ boldLineItemStyle: ResolvedTextStyle;
58
+ metadataRowStyle: ResolvedBoxStyle;
59
+ metadataLabelStyle: ResolvedTextStyle;
60
+ metadataValueStyle: ResolvedTextStyle;
61
+ copyIconColor: string;
62
+ actionsRowStyle: ResolvedBoxStyle;
63
+ actionButtonStyle: ResolvedBoxStyle;
64
+ destructiveActionStyle: ResolvedBoxStyle;
65
+ actionLabelStyle: ResolvedTextStyle;
66
+ destructiveActionLabelStyle: ResolvedTextStyle;
67
+ accessibilityProps: {
68
+ accessibilityLabel?: string;
69
+ testID?: string;
70
+ };
71
+ }
72
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","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AC;CACH"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/screens/transaction-detail-screen/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { TransactionDetailScreenProps, UseTransactionDetailScreenResult } from './types.js';
3
+ export declare function useTransactionDetailScreen(tokens: ThemeTokens, props: TransactionDetailScreenProps): UseTransactionDetailScreenResult;
4
+ //# sourceMappingURL=use-transaction-detail-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-transaction-detail-screen.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/transaction-detail-screen/use-transaction-detail-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAGjG,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,4BAA4B,GAClC,gCAAgC,CA2PlC"}