@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,221 @@
1
+ export function useTransactionDetailScreen(tokens, props) {
2
+ const { accessibilityLabel, testID } = props;
3
+ const containerStyle = {
4
+ flex: 1,
5
+ backgroundColor: tokens.colors.background,
6
+ };
7
+ const scrollContentStyle = {
8
+ padding: tokens.spacing.md,
9
+ gap: tokens.spacing.md,
10
+ };
11
+ const amountContainerStyle = {
12
+ alignItems: 'center',
13
+ justifyContent: 'center',
14
+ paddingVertical: tokens.spacing.lg,
15
+ };
16
+ const amountStyle = {
17
+ fontSize: tokens.typography.sizes['4xl'],
18
+ fontWeight: tokens.typography.weights.bold,
19
+ color: tokens.colors.foreground,
20
+ fontFamily: tokens.typography.fontFamily.body,
21
+ };
22
+ const debitAmountStyle = {
23
+ fontSize: tokens.typography.sizes['4xl'],
24
+ fontWeight: tokens.typography.weights.bold,
25
+ color: tokens.colors.destructive,
26
+ fontFamily: tokens.typography.fontFamily.body,
27
+ };
28
+ const creditAmountStyle = {
29
+ fontSize: tokens.typography.sizes['4xl'],
30
+ fontWeight: tokens.typography.weights.bold,
31
+ color: tokens.colors.accent,
32
+ fontFamily: tokens.typography.fontFamily.body,
33
+ };
34
+ const statusBadgeStyle = {
35
+ flexDirection: 'row',
36
+ alignItems: 'center',
37
+ justifyContent: 'center',
38
+ gap: tokens.spacing.xs,
39
+ borderRadius: tokens.radii.full,
40
+ paddingHorizontal: tokens.spacing.sm,
41
+ paddingVertical: 2,
42
+ alignSelf: 'center',
43
+ };
44
+ const completedBadgeStyle = {
45
+ ...statusBadgeStyle,
46
+ backgroundColor: tokens.colors.card,
47
+ };
48
+ const pendingBadgeStyle = {
49
+ ...statusBadgeStyle,
50
+ backgroundColor: tokens.colors.muted,
51
+ };
52
+ const failedBadgeStyle = {
53
+ ...statusBadgeStyle,
54
+ backgroundColor: tokens.colors.card,
55
+ };
56
+ const refundedBadgeStyle = {
57
+ ...statusBadgeStyle,
58
+ backgroundColor: tokens.colors.muted,
59
+ };
60
+ const statusTextStyle = {
61
+ fontSize: tokens.typography.sizes.xs,
62
+ fontWeight: tokens.typography.weights.semibold,
63
+ color: tokens.colors.foreground,
64
+ fontFamily: tokens.typography.fontFamily.body,
65
+ };
66
+ const merchantRowStyle = {
67
+ flexDirection: 'row',
68
+ alignItems: 'center',
69
+ gap: tokens.spacing.sm,
70
+ backgroundColor: tokens.colors.card,
71
+ borderRadius: tokens.radii.md,
72
+ padding: tokens.spacing.md,
73
+ };
74
+ const merchantLogoStyle = {
75
+ width: 40,
76
+ height: 40,
77
+ borderRadius: tokens.radii.full,
78
+ };
79
+ const merchantNameStyle = {
80
+ fontSize: tokens.typography.sizes.sm,
81
+ fontWeight: tokens.typography.weights.semibold,
82
+ color: tokens.colors.foreground,
83
+ fontFamily: tokens.typography.fontFamily.body,
84
+ };
85
+ const merchantCategoryStyle = {
86
+ fontSize: tokens.typography.sizes.xs,
87
+ color: tokens.colors.mutedForeground,
88
+ fontFamily: tokens.typography.fontFamily.body,
89
+ };
90
+ const cardStyle = {
91
+ backgroundColor: tokens.colors.card,
92
+ borderRadius: tokens.radii.md,
93
+ padding: tokens.spacing.md,
94
+ gap: tokens.spacing.xs,
95
+ };
96
+ const lineItemRowStyle = {
97
+ flexDirection: 'row',
98
+ justifyContent: 'space-between',
99
+ paddingVertical: tokens.spacing.xs,
100
+ borderBottomWidth: 1,
101
+ borderColor: tokens.colors.border,
102
+ };
103
+ const lineItemLabelStyle = {
104
+ fontSize: tokens.typography.sizes.sm,
105
+ color: tokens.colors.foreground,
106
+ fontFamily: tokens.typography.fontFamily.body,
107
+ };
108
+ const lineItemAmountStyle = {
109
+ fontSize: tokens.typography.sizes.sm,
110
+ color: tokens.colors.foreground,
111
+ fontFamily: tokens.typography.fontFamily.body,
112
+ };
113
+ const mutedLineItemStyle = {
114
+ fontSize: tokens.typography.sizes.xs,
115
+ color: tokens.colors.mutedForeground,
116
+ fontFamily: tokens.typography.fontFamily.body,
117
+ };
118
+ const boldLineItemStyle = {
119
+ fontSize: tokens.typography.sizes.sm,
120
+ fontWeight: tokens.typography.weights.bold,
121
+ color: tokens.colors.foreground,
122
+ fontFamily: tokens.typography.fontFamily.body,
123
+ };
124
+ const metadataRowStyle = {
125
+ flexDirection: 'row',
126
+ justifyContent: 'space-between',
127
+ paddingVertical: tokens.spacing.xs,
128
+ borderBottomWidth: 1,
129
+ borderColor: tokens.colors.border,
130
+ };
131
+ const metadataLabelStyle = {
132
+ fontSize: tokens.typography.sizes.xs,
133
+ color: tokens.colors.mutedForeground,
134
+ fontFamily: tokens.typography.fontFamily.body,
135
+ };
136
+ const metadataValueStyle = {
137
+ fontSize: tokens.typography.sizes.xs,
138
+ fontWeight: tokens.typography.weights.semibold,
139
+ color: tokens.colors.foreground,
140
+ fontFamily: tokens.typography.fontFamily.body,
141
+ };
142
+ const copyIconColor = tokens.colors.primary;
143
+ const actionsRowStyle = {
144
+ flexDirection: 'row',
145
+ gap: tokens.spacing.sm,
146
+ padding: tokens.spacing.md,
147
+ borderTopWidth: 1,
148
+ borderColor: tokens.colors.border,
149
+ };
150
+ const actionButtonStyle = {
151
+ flex: 1,
152
+ backgroundColor: tokens.colors.card,
153
+ borderRadius: tokens.radii.md,
154
+ alignItems: 'center',
155
+ justifyContent: 'center',
156
+ padding: tokens.spacing.md,
157
+ gap: tokens.spacing.xs,
158
+ borderWidth: 1,
159
+ borderColor: tokens.colors.border,
160
+ };
161
+ const destructiveActionStyle = {
162
+ flex: 1,
163
+ backgroundColor: tokens.colors.card,
164
+ borderRadius: tokens.radii.md,
165
+ alignItems: 'center',
166
+ justifyContent: 'center',
167
+ padding: tokens.spacing.md,
168
+ gap: tokens.spacing.xs,
169
+ borderWidth: 1,
170
+ borderColor: tokens.colors.destructive,
171
+ };
172
+ const actionLabelStyle = {
173
+ fontSize: tokens.typography.sizes.xs,
174
+ fontWeight: tokens.typography.weights.semibold,
175
+ color: tokens.colors.foreground,
176
+ fontFamily: tokens.typography.fontFamily.body,
177
+ };
178
+ const destructiveActionLabelStyle = {
179
+ fontSize: tokens.typography.sizes.xs,
180
+ color: tokens.colors.destructive,
181
+ fontFamily: tokens.typography.fontFamily.body,
182
+ };
183
+ return {
184
+ containerStyle,
185
+ scrollContentStyle,
186
+ amountContainerStyle,
187
+ amountStyle,
188
+ debitAmountStyle,
189
+ creditAmountStyle,
190
+ statusBadgeStyle,
191
+ completedBadgeStyle,
192
+ pendingBadgeStyle,
193
+ failedBadgeStyle,
194
+ refundedBadgeStyle,
195
+ statusTextStyle,
196
+ merchantRowStyle,
197
+ merchantLogoStyle,
198
+ merchantNameStyle,
199
+ merchantCategoryStyle,
200
+ cardStyle,
201
+ lineItemRowStyle,
202
+ lineItemLabelStyle,
203
+ lineItemAmountStyle,
204
+ mutedLineItemStyle,
205
+ boldLineItemStyle,
206
+ metadataRowStyle,
207
+ metadataLabelStyle,
208
+ metadataValueStyle,
209
+ copyIconColor,
210
+ actionsRowStyle,
211
+ actionButtonStyle,
212
+ destructiveActionStyle,
213
+ actionLabelStyle,
214
+ destructiveActionLabelStyle,
215
+ accessibilityProps: {
216
+ ...(accessibilityLabel !== undefined && { accessibilityLabel }),
217
+ ...(testID !== undefined && { testID }),
218
+ },
219
+ };
220
+ }
221
+ //# sourceMappingURL=use-transaction-detail-screen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-transaction-detail-screen.js","sourceRoot":"","sources":["../../../../src/components/screens/transaction-detail-screen/use-transaction-detail-screen.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,0BAA0B,CACxC,MAAmB,EACnB,KAAmC;IAEnC,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAE7C,MAAM,cAAc,GAAqB;QACvC,IAAI,EAAE,CAAC;QACP,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU;KAC1C,CAAC;IAEF,MAAM,kBAAkB,GAAqB;QAC3C,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QAC1B,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KACvB,CAAC;IAEF,MAAM,oBAAoB,GAAqB;QAC7C,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KACnC,CAAC;IAEF,MAAM,WAAW,GAAsB;QACrC,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC;QACxC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI;QAC1C,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU;QAC/B,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI;KAC9C,CAAC;IAEF,MAAM,gBAAgB,GAAsB;QAC1C,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC;QACxC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI;QAC1C,KAAK,EAAE,MAAM,C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BAAkB;QAClB,mBAAmB;QACnB,kBAAkB;QAClB,iBAAiB;QACjB,gBAAgB;QAChB,kBAAkB;QAClB,kBAAkB;QAClB,aAAa;QACb,eAAe;QACf,iBAAiB;QACjB,sBAAsB;QACtB,gBAAgB;QAChB,2BAA2B;QAC3B,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,3 @@
1
+ import type { CommentThreadProps } from './types.js';
2
+ export declare function CommentThread(props: CommentThreadProps): import("react").DetailedReactHTMLElement<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
3
+ //# sourceMappingURL=comment-thread.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment-thread.d.ts","sourceRoot":"","sources":["../../../../src/components/social/comment-thread/comment-thread.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAW,MAAM,YAAY,CAAC;AAsK9D,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,qHAkCtD"}
@@ -0,0 +1,88 @@
1
+ import { createElement } from 'react';
2
+ import { View, Text, Image, Pressable, ScrollView } from 'react-native';
3
+ import { useTheme } from '../../../theme/context.js';
4
+ import { useCommentThread } from './use-comment-thread.js';
5
+ function CommentItem({ comment, depth, hookResult, tokens, onReply, onLike, onAuthorPress, }) {
6
+ const { commentStyle, getIndentStyle, threadLineStyle, avatarContainerStyle, avatarSize, authorStyle, textStyle, timestampStyle, likeButtonStyle, likeCountStyle, replyButtonStyle, replyButtonTextStyle, maxDepth, showAvatars, showThreadLines, } = hookResult;
7
+ const indentStyle = getIndentStyle(depth);
8
+ const liked = comment.liked ?? false;
9
+ const likes = comment.likes ?? 0;
10
+ const hasReplies = comment.replies && comment.replies.length > 0;
11
+ const initialsText = comment.author
12
+ .trim()
13
+ .split(/\s+/)
14
+ .map((p) => p[0])
15
+ .slice(0, 2)
16
+ .join('')
17
+ .toUpperCase();
18
+ return createElement(View, { key: comment.id }, createElement(View, { style: { ...commentStyle, ...indentStyle } }, showAvatars
19
+ ? createElement(View, { style: avatarContainerStyle }, comment.avatar
20
+ ? createElement(Image, {
21
+ source: { uri: comment.avatar },
22
+ style: {
23
+ width: avatarSize,
24
+ height: avatarSize,
25
+ borderRadius: tokens.radii.full,
26
+ },
27
+ })
28
+ : createElement(View, {
29
+ style: {
30
+ width: avatarSize,
31
+ height: avatarSize,
32
+ borderRadius: tokens.radii.full,
33
+ backgroundColor: tokens.colors.muted,
34
+ alignItems: 'center',
35
+ justifyContent: 'center',
36
+ },
37
+ }, createElement(Text, {
38
+ style: {
39
+ fontSize: tokens.typography.sizes.xs,
40
+ color: tokens.colors.foreground,
41
+ fontWeight: tokens.typography.weights.semibold,
42
+ },
43
+ }, initialsText)), showThreadLines && hasReplies
44
+ ? createElement(View, { style: threadLineStyle })
45
+ : null)
46
+ : null, createElement(View, { style: { flex: 1 } }, createElement(View, { style: { flexDirection: 'row', alignItems: 'center' } }, createElement(Pressable, { onPress: () => onAuthorPress?.(comment.author) }, createElement(Text, { style: authorStyle }, comment.author)), createElement(Text, { style: timestampStyle }, comment.timestamp)), createElement(Text, { style: textStyle }, comment.text), createElement(View, { style: { flexDirection: 'row', marginTop: tokens.spacing.xs } }, createElement(Pressable, {
47
+ style: likeButtonStyle,
48
+ onPress: () => onLike?.(comment.id, !liked),
49
+ }, createElement(Text, {
50
+ style: {
51
+ fontSize: tokens.typography.sizes.xs,
52
+ color: liked ? tokens.colors.primary : tokens.colors.mutedForeground,
53
+ },
54
+ }, liked ? '♥' : '♡'), likes > 0
55
+ ? createElement(Text, { style: likeCountStyle }, String(likes))
56
+ : null), createElement(Pressable, {
57
+ style: replyButtonStyle,
58
+ onPress: () => onReply?.(comment.id),
59
+ }, createElement(Text, { style: replyButtonTextStyle }, 'Reply'))))), ...(comment.replies && depth < maxDepth
60
+ ? comment.replies.map((reply) => createElement(CommentItem, {
61
+ key: reply.id,
62
+ comment: reply,
63
+ depth: depth + 1,
64
+ hookResult,
65
+ tokens,
66
+ onReply,
67
+ onLike,
68
+ onAuthorPress,
69
+ }))
70
+ : []));
71
+ }
72
+ export function CommentThread(props) {
73
+ const { tokens } = useTheme();
74
+ const { comments, onReply, onLike, onAuthorPress, 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: _r, shadow: _sh, flex: _f, row: _row, center: _cen, w: _w, h: _h, borderWidth: _bw, borderColor: _bc, opacity: _op, overflow: _ov, position: _pos, top: _top, bottom: _bot, left: _left, right: _right, zIndex: _zi, ...rest } = props;
75
+ const hookResult = useCommentThread(tokens, props);
76
+ const { containerStyle, accessibilityProps } = hookResult;
77
+ return createElement(ScrollView, { style: containerStyle, ...accessibilityProps, ...rest }, ...comments.map((comment) => createElement(CommentItem, {
78
+ key: comment.id,
79
+ comment,
80
+ depth: 0,
81
+ hookResult,
82
+ tokens,
83
+ onReply,
84
+ onLike,
85
+ onAuthorPress,
86
+ })));
87
+ }
88
+ //# sourceMappingURL=comment-thread.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment-thread.js","sourceRoot":"","sources":["../../../../src/components/social/comment-thread/comment-thread.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAa3D,SAAS,WAAW,CAAC,EACnB,OAAO,EACP,KAAK,EACL,UAAU,EACV,MA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,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACnD,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,UAAU,CAAC;IAE1D,OAAO,aAAa,CAClB,UAAiB,EACjB,EAAE,KAAK,EAAE,cAAqB,EAAE,GAAG,kBAAkB,EAAE,GAAG,IAAI,EAAE,EAChE,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAC1B,aAAa,CAAC,WAAW,EAAE;QACzB,GAAG,EAAE,OAAO,CAAC,EAAE;QACf,OAAO;QACP,KAAK,EAAE,CAAC;QACR,UAAU;QACV,MAAM;QACN,OAAO;QACP,MAAM;QACN,aAAa;KACd,CAAC,CACH,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { CommentThread } from './comment-thread.js';
2
+ export { useCommentThread } from './use-comment-thread.js';
3
+ export type { Comment, CommentThreadProps, UseCommentThreadResult } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/social/comment-thread/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EAAE,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CommentThread } from './comment-thread.js';
2
+ export { useCommentThread } from './use-comment-thread.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/social/comment-thread/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,47 @@
1
+ import type { BoxStyleProps } from '../../types.js';
2
+ import type { ResolvedBoxStyle, ResolvedTextStyle } from '../../use-component-style.js';
3
+ export interface Comment {
4
+ id: string;
5
+ author: string;
6
+ avatar?: string;
7
+ text: string;
8
+ timestamp: string;
9
+ likes?: number;
10
+ liked?: boolean;
11
+ replies?: Comment[];
12
+ }
13
+ export interface CommentThreadProps extends BoxStyleProps {
14
+ comments: Comment[];
15
+ maxDepth?: number;
16
+ onReply?: (commentId: string) => void;
17
+ onLike?: (commentId: string, liked: boolean) => void;
18
+ onAuthorPress?: (author: string) => void;
19
+ showAvatars?: boolean;
20
+ showThreadLines?: boolean;
21
+ accessibilityLabel?: string;
22
+ testID?: string;
23
+ }
24
+ export interface UseCommentThreadResult {
25
+ containerStyle: ResolvedBoxStyle;
26
+ commentStyle: ResolvedBoxStyle;
27
+ getIndentStyle(depth: number): ResolvedBoxStyle;
28
+ threadLineStyle: ResolvedBoxStyle;
29
+ avatarContainerStyle: ResolvedBoxStyle;
30
+ avatarSize: number;
31
+ authorStyle: ResolvedTextStyle;
32
+ textStyle: ResolvedTextStyle;
33
+ timestampStyle: ResolvedTextStyle;
34
+ likeButtonStyle: ResolvedBoxStyle;
35
+ likeButtonActiveStyle: ResolvedBoxStyle;
36
+ likeCountStyle: ResolvedTextStyle;
37
+ replyButtonStyle: ResolvedBoxStyle;
38
+ replyButtonTextStyle: ResolvedTextStyle;
39
+ maxDepth: number;
40
+ showAvatars: boolean;
41
+ showThreadLines: boolean;
42
+ accessibilityProps: {
43
+ accessibilityLabel?: string;
44
+ testID?: string;
45
+ };
46
+ }
47
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/social/comment-thread/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAi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C,cAAc,EAAE,iBAAiB,CAAC;IAClC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,EAAE,iBAAiB,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,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/social/comment-thread/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { CommentThreadProps, UseCommentThreadResult } from './types.js';
3
+ export declare function useCommentThread(tokens: ThemeTokens, props: CommentThreadProps): UseCommentThreadResult;
4
+ //# sourceMappingURL=use-comment-thread.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-comment-thread.d.ts","sourceRoot":"","sources":["../../../../src/components/social/comment-thread/use-comment-thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAG7E,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,kBAAkB,GAAG,sBAAsB,CAsHvG"}
@@ -0,0 +1,100 @@
1
+ export function useCommentThread(tokens, props) {
2
+ const { maxDepth: maxDepthProp = 3, showAvatars = true, showThreadLines = true, accessibilityLabel, testID, } = props;
3
+ const maxDepth = maxDepthProp;
4
+ const avatarSize = 32;
5
+ const containerStyle = {
6
+ flex: 1,
7
+ backgroundColor: tokens.colors.background,
8
+ paddingVertical: tokens.spacing.xs,
9
+ };
10
+ const commentStyle = {
11
+ flexDirection: 'row',
12
+ paddingVertical: tokens.spacing.sm,
13
+ paddingHorizontal: tokens.spacing.md,
14
+ };
15
+ function getIndentStyle(depth) {
16
+ const clampedDepth = Math.min(depth, maxDepth);
17
+ if (clampedDepth === 0)
18
+ return {};
19
+ return { paddingLeft: clampedDepth * tokens.spacing.lg };
20
+ }
21
+ const threadLineStyle = {
22
+ position: 'absolute',
23
+ left: 0,
24
+ top: avatarSize + 2,
25
+ bottom: 0,
26
+ width: 1,
27
+ backgroundColor: tokens.colors.border,
28
+ };
29
+ const avatarContainerStyle = {
30
+ marginRight: tokens.spacing.sm,
31
+ position: 'relative',
32
+ };
33
+ const authorStyle = {
34
+ fontSize: tokens.typography.sizes.sm,
35
+ fontWeight: tokens.typography.weights.bold,
36
+ color: tokens.colors.foreground,
37
+ fontFamily: tokens.typography.fontFamily.body,
38
+ };
39
+ const textStyle = {
40
+ fontSize: tokens.typography.sizes.sm,
41
+ color: tokens.colors.foreground,
42
+ fontFamily: tokens.typography.fontFamily.body,
43
+ marginTop: tokens.spacing.xs,
44
+ };
45
+ const timestampStyle = {
46
+ fontSize: tokens.typography.sizes.xs,
47
+ color: tokens.colors.mutedForeground,
48
+ fontFamily: tokens.typography.fontFamily.body,
49
+ marginLeft: tokens.spacing.sm,
50
+ };
51
+ const likeButtonStyle = {
52
+ flexDirection: 'row',
53
+ gap: tokens.spacing.xs,
54
+ marginRight: tokens.spacing.md,
55
+ alignItems: 'center',
56
+ };
57
+ const likeButtonActiveStyle = {
58
+ ...likeButtonStyle,
59
+ // active state: primary tint (handled by color on the icon/text in shell)
60
+ };
61
+ const likeCountStyle = {
62
+ fontSize: tokens.typography.sizes.xs,
63
+ color: tokens.colors.mutedForeground,
64
+ fontFamily: tokens.typography.fontFamily.body,
65
+ };
66
+ const replyButtonStyle = {
67
+ flexDirection: 'row',
68
+ gap: tokens.spacing.xs,
69
+ alignItems: 'center',
70
+ };
71
+ const replyButtonTextStyle = {
72
+ fontSize: tokens.typography.sizes.xs,
73
+ color: tokens.colors.mutedForeground,
74
+ fontFamily: tokens.typography.fontFamily.body,
75
+ };
76
+ return {
77
+ containerStyle,
78
+ commentStyle,
79
+ getIndentStyle,
80
+ threadLineStyle,
81
+ avatarContainerStyle,
82
+ avatarSize,
83
+ authorStyle,
84
+ textStyle,
85
+ timestampStyle,
86
+ likeButtonStyle,
87
+ likeButtonActiveStyle,
88
+ likeCountStyle,
89
+ replyButtonStyle,
90
+ replyButtonTextStyle,
91
+ maxDepth,
92
+ showAvatars,
93
+ showThreadLines,
94
+ accessibilityProps: {
95
+ ...(accessibilityLabel !== undefined && { accessibilityLabel }),
96
+ ...(testID !== undefined && { testID }),
97
+ },
98
+ };
99
+ }
100
+ //# sourceMappingURL=use-comment-thread.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-comment-thread.js","sourceRoot":"","sources":["../../../../src/components/social/comment-thread/use-comment-thread.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,gBAAgB,CAAC,MAAmB,EAAE,KAAyB;IAC7E,MAAM,EACJ,QAAQ,EAAE,YAAY,GAAG,CAAC,EAC1B,WAAW,GAAG,IAAI,EAClB,eAAe,GAAG,IAAI,EACtB,kBAAkB,EAClB,MAAM,GACP,GAAG,KAAK,CAAC;IAEV,MAAM,QAAQ,GAAG,YAAY,CAAC;IAC9B,MAAM,UAAU,GAAG,EAAE,CAAC;IAEtB,MAAM,cAAc,GAAqB;QACvC,IAAI,EAAE,CAAC;QACP,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU;QACzC,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KACnC,CAAC;IAEF,MAAM,YAAY,GAAqB;QACrC,aAAa,EAAE,KAAK;QACpB,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QAClC,iBAAiB,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KACrC,CAAC;IAEF,SAAS,cAAc,CAAC,KAAa;QACnC,MAA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,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;SACxC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ export { StoryRow, useStoryRow } from './story-row/index.js';
2
+ export type { Story, StoryRowProps, StoryRowSize, StoryItemStyle, UseStoryRowResult } from './story-row/index.js';
3
+ export { ReactionPicker, useReactionPicker } from './reaction-picker/index.js';
4
+ export type { Reaction, AnchorRect, ReactionPickerProps, ReactionPickerSize, ReactionItemStyle, UseReactionPickerResult, } from './reaction-picker/index.js';
5
+ export { CommentThread, useCommentThread } from './comment-thread/index.js';
6
+ export type { Comment, CommentThreadProps, UseCommentThreadResult } from './comment-thread/index.js';
7
+ export { MentionInput, useMentionInput } from './mention-input/index.js';
8
+ export type { Suggestion, TriggerConfig, MentionInputProps, MentionInputSize, MentionInputVariant, UseMentionInputResult, } from './mention-input/index.js';
9
+ export { PresenceIndicator, usePresenceIndicator } from './presence-indicator/index.js';
10
+ export type { PresenceStatus, PresencePlacement, PresenceSize, PresenceIndicatorProps, UsePresenceIndicatorResult, } from './presence-indicator/index.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/social/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC7D,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAElH,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/E,YAAY,EACV,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,kBAAkB,EAC7D,iBAAiB,EAAE,uBAAuB,GAC3C,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC5E,YAAY,EAAE,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAErG,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACzE,YAAY,EACV,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,mBAAmB,EACnF,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACxF,YAAY,EACV,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAC/C,sBAAsB,EAAE,0BAA0B,GACnD,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { StoryRow, useStoryRow } from './story-row/index.js';
2
+ export { ReactionPicker, useReactionPicker } from './reaction-picker/index.js';
3
+ export { CommentThread, useCommentThread } from './comment-thread/index.js';
4
+ export { MentionInput, useMentionInput } from './mention-input/index.js';
5
+ export { PresenceIndicator, usePresenceIndicator } from './presence-indicator/index.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/social/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAM/E,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG5E,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAMzE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { MentionInput } from './mention-input.js';
2
+ export { useMentionInput } from './use-mention-input.js';
3
+ export type { Suggestion, TriggerConfig, MentionInputProps, MentionInputSize, MentionInputVariant, UseMentionInputResult, } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/social/mention-input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EACV,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,mBAAmB,EACnF,qBAAqB,GACtB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { MentionInput } from './mention-input.js';
2
+ export { useMentionInput } from './use-mention-input.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/social/mention-input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { MentionInputProps } from './types.js';
2
+ export declare function MentionInput(props: MentionInputProps): import("react").DetailedReactHTMLElement<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
3
+ //# sourceMappingURL=mention-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mention-input.d.ts","sourceRoot":"","sources":["../../../../src/components/social/mention-input/mention-input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qHAgGpD"}