@objectifthunes/limestone-sdk 0.1.4 → 0.1.6

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 (496) hide show
  1. package/dist/animations/index.d.ts +2 -0
  2. package/dist/animations/index.d.ts.map +1 -1
  3. package/dist/animations/index.js +1 -0
  4. package/dist/animations/index.js.map +1 -1
  5. package/dist/animations/shimmer/index.d.ts +4 -0
  6. package/dist/animations/shimmer/index.d.ts.map +1 -0
  7. package/dist/animations/shimmer/index.js +3 -0
  8. package/dist/animations/shimmer/index.js.map +1 -0
  9. package/dist/animations/shimmer/shimmer.d.ts +6 -0
  10. package/dist/animations/shimmer/shimmer.d.ts.map +1 -0
  11. package/dist/animations/shimmer/shimmer.js +19 -0
  12. package/dist/animations/shimmer/shimmer.js.map +1 -0
  13. package/dist/animations/shimmer/types.d.ts +34 -0
  14. package/dist/animations/shimmer/types.d.ts.map +1 -0
  15. package/dist/animations/shimmer/types.js +2 -0
  16. package/dist/animations/shimmer/types.js.map +1 -0
  17. package/dist/animations/shimmer/use-shimmer.d.ts +4 -0
  18. package/dist/animations/shimmer/use-shimmer.d.ts.map +1 -0
  19. package/dist/animations/shimmer/use-shimmer.js +61 -0
  20. package/dist/animations/shimmer/use-shimmer.js.map +1 -0
  21. package/dist/components/data-display/index.d.ts +8 -0
  22. package/dist/components/data-display/index.d.ts.map +1 -1
  23. package/dist/components/data-display/index.js +4 -0
  24. package/dist/components/data-display/index.js.map +1 -1
  25. package/dist/components/data-display/key-value-row/index.d.ts +4 -0
  26. package/dist/components/data-display/key-value-row/index.d.ts.map +1 -0
  27. package/dist/components/data-display/key-value-row/index.js +4 -0
  28. package/dist/components/data-display/key-value-row/index.js.map +1 -0
  29. package/dist/components/data-display/key-value-row/key-value-row.d.ts +4 -0
  30. package/dist/components/data-display/key-value-row/key-value-row.d.ts.map +1 -0
  31. package/dist/components/data-display/key-value-row/key-value-row.js +15 -0
  32. package/dist/components/data-display/key-value-row/key-value-row.js.map +1 -0
  33. package/dist/components/data-display/key-value-row/types.d.ts +36 -0
  34. package/dist/components/data-display/key-value-row/types.d.ts.map +1 -0
  35. package/dist/components/data-display/key-value-row/types.js +2 -0
  36. package/dist/components/data-display/key-value-row/types.js.map +1 -0
  37. package/dist/components/data-display/key-value-row/use-key-value-row.d.ts +4 -0
  38. package/dist/components/data-display/key-value-row/use-key-value-row.d.ts.map +1 -0
  39. package/dist/components/data-display/key-value-row/use-key-value-row.js +59 -0
  40. package/dist/components/data-display/key-value-row/use-key-value-row.js.map +1 -0
  41. package/dist/components/data-display/list-item/index.d.ts +4 -0
  42. package/dist/components/data-display/list-item/index.d.ts.map +1 -0
  43. package/dist/components/data-display/list-item/index.js +4 -0
  44. package/dist/components/data-display/list-item/index.js.map +1 -0
  45. package/dist/components/data-display/list-item/list-item.d.ts +4 -0
  46. package/dist/components/data-display/list-item/list-item.d.ts.map +1 -0
  47. package/dist/components/data-display/list-item/list-item.js +25 -0
  48. package/dist/components/data-display/list-item/list-item.js.map +1 -0
  49. package/dist/components/data-display/list-item/types.d.ts +57 -0
  50. package/dist/components/data-display/list-item/types.d.ts.map +1 -0
  51. package/dist/components/data-display/list-item/types.js +2 -0
  52. package/dist/components/data-display/list-item/types.js.map +1 -0
  53. package/dist/components/data-display/list-item/use-list-item.d.ts +4 -0
  54. package/dist/components/data-display/list-item/use-list-item.d.ts.map +1 -0
  55. package/dist/components/data-display/list-item/use-list-item.js +68 -0
  56. package/dist/components/data-display/list-item/use-list-item.js.map +1 -0
  57. package/dist/components/data-display/price-display/index.d.ts +4 -0
  58. package/dist/components/data-display/price-display/index.d.ts.map +1 -0
  59. package/dist/components/data-display/price-display/index.js +4 -0
  60. package/dist/components/data-display/price-display/index.js.map +1 -0
  61. package/dist/components/data-display/price-display/price-display.d.ts +4 -0
  62. package/dist/components/data-display/price-display/price-display.d.ts.map +1 -0
  63. package/dist/components/data-display/price-display/price-display.js +20 -0
  64. package/dist/components/data-display/price-display/price-display.js.map +1 -0
  65. package/dist/components/data-display/price-display/types.d.ts +34 -0
  66. package/dist/components/data-display/price-display/types.d.ts.map +1 -0
  67. package/dist/components/data-display/price-display/types.js +2 -0
  68. package/dist/components/data-display/price-display/types.js.map +1 -0
  69. package/dist/components/data-display/price-display/use-price-display.d.ts +4 -0
  70. package/dist/components/data-display/price-display/use-price-display.d.ts.map +1 -0
  71. package/dist/components/data-display/price-display/use-price-display.js +78 -0
  72. package/dist/components/data-display/price-display/use-price-display.js.map +1 -0
  73. package/dist/components/data-display/rating-stars/index.d.ts +4 -0
  74. package/dist/components/data-display/rating-stars/index.d.ts.map +1 -0
  75. package/dist/components/data-display/rating-stars/index.js +4 -0
  76. package/dist/components/data-display/rating-stars/index.js.map +1 -0
  77. package/dist/components/data-display/rating-stars/rating-stars.d.ts +4 -0
  78. package/dist/components/data-display/rating-stars/rating-stars.d.ts.map +1 -0
  79. package/dist/components/data-display/rating-stars/rating-stars.js +24 -0
  80. package/dist/components/data-display/rating-stars/rating-stars.js.map +1 -0
  81. package/dist/components/data-display/rating-stars/types.d.ts +45 -0
  82. package/dist/components/data-display/rating-stars/types.d.ts.map +1 -0
  83. package/dist/components/data-display/rating-stars/types.js +2 -0
  84. package/dist/components/data-display/rating-stars/types.js.map +1 -0
  85. package/dist/components/data-display/rating-stars/use-rating-stars.d.ts +4 -0
  86. package/dist/components/data-display/rating-stars/use-rating-stars.d.ts.map +1 -0
  87. package/dist/components/data-display/rating-stars/use-rating-stars.js +64 -0
  88. package/dist/components/data-display/rating-stars/use-rating-stars.js.map +1 -0
  89. package/dist/components/feedback/connection-status/connection-status.d.ts +4 -0
  90. package/dist/components/feedback/connection-status/connection-status.d.ts.map +1 -0
  91. package/dist/components/feedback/connection-status/connection-status.js +10 -0
  92. package/dist/components/feedback/connection-status/connection-status.js.map +1 -0
  93. package/dist/components/feedback/connection-status/index.d.ts +4 -0
  94. package/dist/components/feedback/connection-status/index.d.ts.map +1 -0
  95. package/dist/components/feedback/connection-status/index.js +3 -0
  96. package/dist/components/feedback/connection-status/index.js.map +1 -0
  97. package/dist/components/feedback/connection-status/types.d.ts +33 -0
  98. package/dist/components/feedback/connection-status/types.d.ts.map +1 -0
  99. package/dist/components/feedback/connection-status/types.js +2 -0
  100. package/dist/components/feedback/connection-status/types.js.map +1 -0
  101. package/dist/components/feedback/connection-status/use-connection-status.d.ts +4 -0
  102. package/dist/components/feedback/connection-status/use-connection-status.d.ts.map +1 -0
  103. package/dist/components/feedback/connection-status/use-connection-status.js +79 -0
  104. package/dist/components/feedback/connection-status/use-connection-status.js.map +1 -0
  105. package/dist/components/feedback/index.d.ts +2 -0
  106. package/dist/components/feedback/index.d.ts.map +1 -1
  107. package/dist/components/feedback/index.js +1 -0
  108. package/dist/components/feedback/index.js.map +1 -1
  109. package/dist/components/index.d.ts +14 -10
  110. package/dist/components/index.d.ts.map +1 -1
  111. package/dist/components/index.js +8 -5
  112. package/dist/components/index.js.map +1 -1
  113. package/dist/components/inputs/autocomplete/autocomplete.d.ts +4 -0
  114. package/dist/components/inputs/autocomplete/autocomplete.d.ts.map +1 -0
  115. package/dist/components/inputs/autocomplete/autocomplete.js +166 -0
  116. package/dist/components/inputs/autocomplete/autocomplete.js.map +1 -0
  117. package/dist/components/inputs/autocomplete/index.d.ts +4 -0
  118. package/dist/components/inputs/autocomplete/index.d.ts.map +1 -0
  119. package/dist/components/inputs/autocomplete/index.js +3 -0
  120. package/dist/components/inputs/autocomplete/index.js.map +1 -0
  121. package/dist/components/inputs/autocomplete/types.d.ts +66 -0
  122. package/dist/components/inputs/autocomplete/types.d.ts.map +1 -0
  123. package/dist/components/inputs/autocomplete/types.js +2 -0
  124. package/dist/components/inputs/autocomplete/types.js.map +1 -0
  125. package/dist/components/inputs/autocomplete/use-autocomplete.d.ts +4 -0
  126. package/dist/components/inputs/autocomplete/use-autocomplete.d.ts.map +1 -0
  127. package/dist/components/inputs/autocomplete/use-autocomplete.js +173 -0
  128. package/dist/components/inputs/autocomplete/use-autocomplete.js.map +1 -0
  129. package/dist/components/inputs/chip/chip.d.ts +4 -0
  130. package/dist/components/inputs/chip/chip.d.ts.map +1 -0
  131. package/dist/components/inputs/chip/chip.js +29 -0
  132. package/dist/components/inputs/chip/chip.js.map +1 -0
  133. package/dist/components/inputs/chip/index.d.ts +4 -0
  134. package/dist/components/inputs/chip/index.d.ts.map +1 -0
  135. package/dist/components/inputs/chip/index.js +3 -0
  136. package/dist/components/inputs/chip/index.js.map +1 -0
  137. package/dist/components/inputs/chip/types.d.ts +35 -0
  138. package/dist/components/inputs/chip/types.d.ts.map +1 -0
  139. package/dist/components/inputs/chip/types.js +2 -0
  140. package/dist/components/inputs/chip/types.js.map +1 -0
  141. package/dist/components/inputs/chip/use-chip.d.ts +4 -0
  142. package/dist/components/inputs/chip/use-chip.d.ts.map +1 -0
  143. package/dist/components/inputs/chip/use-chip.js +80 -0
  144. package/dist/components/inputs/chip/use-chip.js.map +1 -0
  145. package/dist/components/inputs/chip-input/chip-input.d.ts +4 -0
  146. package/dist/components/inputs/chip-input/chip-input.d.ts.map +1 -0
  147. package/dist/components/inputs/chip-input/chip-input.js +117 -0
  148. package/dist/components/inputs/chip-input/chip-input.js.map +1 -0
  149. package/dist/components/inputs/chip-input/index.d.ts +4 -0
  150. package/dist/components/inputs/chip-input/index.d.ts.map +1 -0
  151. package/dist/components/inputs/chip-input/index.js +3 -0
  152. package/dist/components/inputs/chip-input/index.js.map +1 -0
  153. package/dist/components/inputs/chip-input/types.d.ts +40 -0
  154. package/dist/components/inputs/chip-input/types.d.ts.map +1 -0
  155. package/dist/components/inputs/chip-input/types.js +2 -0
  156. package/dist/components/inputs/chip-input/types.js.map +1 -0
  157. package/dist/components/inputs/chip-input/use-chip-input.d.ts +4 -0
  158. package/dist/components/inputs/chip-input/use-chip-input.d.ts.map +1 -0
  159. package/dist/components/inputs/chip-input/use-chip-input.js +106 -0
  160. package/dist/components/inputs/chip-input/use-chip-input.js.map +1 -0
  161. package/dist/components/inputs/index.d.ts +8 -0
  162. package/dist/components/inputs/index.d.ts.map +1 -1
  163. package/dist/components/inputs/index.js +4 -0
  164. package/dist/components/inputs/index.js.map +1 -1
  165. package/dist/components/inputs/quantity-picker/index.d.ts +4 -0
  166. package/dist/components/inputs/quantity-picker/index.d.ts.map +1 -0
  167. package/dist/components/inputs/quantity-picker/index.js +3 -0
  168. package/dist/components/inputs/quantity-picker/index.js.map +1 -0
  169. package/dist/components/inputs/quantity-picker/quantity-picker.d.ts +4 -0
  170. package/dist/components/inputs/quantity-picker/quantity-picker.d.ts.map +1 -0
  171. package/dist/components/inputs/quantity-picker/quantity-picker.js +43 -0
  172. package/dist/components/inputs/quantity-picker/quantity-picker.js.map +1 -0
  173. package/dist/components/inputs/quantity-picker/types.d.ts +39 -0
  174. package/dist/components/inputs/quantity-picker/types.d.ts.map +1 -0
  175. package/dist/components/inputs/quantity-picker/types.js +2 -0
  176. package/dist/components/inputs/quantity-picker/types.js.map +1 -0
  177. package/dist/components/inputs/quantity-picker/use-quantity-picker.d.ts +4 -0
  178. package/dist/components/inputs/quantity-picker/use-quantity-picker.d.ts.map +1 -0
  179. package/dist/components/inputs/quantity-picker/use-quantity-picker.js +73 -0
  180. package/dist/components/inputs/quantity-picker/use-quantity-picker.js.map +1 -0
  181. package/dist/components/interactive/index.d.ts +3 -0
  182. package/dist/components/interactive/index.d.ts.map +1 -0
  183. package/dist/components/interactive/index.js +2 -0
  184. package/dist/components/interactive/index.js.map +1 -0
  185. package/dist/components/interactive/swipeable-row/index.d.ts +4 -0
  186. package/dist/components/interactive/swipeable-row/index.d.ts.map +1 -0
  187. package/dist/components/interactive/swipeable-row/index.js +3 -0
  188. package/dist/components/interactive/swipeable-row/index.js.map +1 -0
  189. package/dist/components/interactive/swipeable-row/swipeable-row.d.ts +8 -0
  190. package/dist/components/interactive/swipeable-row/swipeable-row.d.ts.map +1 -0
  191. package/dist/components/interactive/swipeable-row/swipeable-row.js +16 -0
  192. package/dist/components/interactive/swipeable-row/swipeable-row.js.map +1 -0
  193. package/dist/components/interactive/swipeable-row/types.d.ts +37 -0
  194. package/dist/components/interactive/swipeable-row/types.d.ts.map +1 -0
  195. package/dist/components/interactive/swipeable-row/types.js +2 -0
  196. package/dist/components/interactive/swipeable-row/types.js.map +1 -0
  197. package/dist/components/interactive/swipeable-row/use-swipeable-row.d.ts +4 -0
  198. package/dist/components/interactive/swipeable-row/use-swipeable-row.d.ts.map +1 -0
  199. package/dist/components/interactive/swipeable-row/use-swipeable-row.js +52 -0
  200. package/dist/components/interactive/swipeable-row/use-swipeable-row.js.map +1 -0
  201. package/dist/components/navigation/collapsible-header/collapsible-header.d.ts +4 -0
  202. package/dist/components/navigation/collapsible-header/collapsible-header.d.ts.map +1 -0
  203. package/dist/components/navigation/collapsible-header/collapsible-header.js +14 -0
  204. package/dist/components/navigation/collapsible-header/collapsible-header.js.map +1 -0
  205. package/dist/components/navigation/collapsible-header/index.d.ts +4 -0
  206. package/dist/components/navigation/collapsible-header/index.d.ts.map +1 -0
  207. package/dist/components/navigation/collapsible-header/index.js +3 -0
  208. package/dist/components/navigation/collapsible-header/index.js.map +1 -0
  209. package/dist/components/navigation/collapsible-header/types.d.ts +37 -0
  210. package/dist/components/navigation/collapsible-header/types.d.ts.map +1 -0
  211. package/dist/components/navigation/collapsible-header/types.js +2 -0
  212. package/dist/components/navigation/collapsible-header/types.js.map +1 -0
  213. package/dist/components/navigation/collapsible-header/use-collapsible-header.d.ts +4 -0
  214. package/dist/components/navigation/collapsible-header/use-collapsible-header.d.ts.map +1 -0
  215. package/dist/components/navigation/collapsible-header/use-collapsible-header.js +58 -0
  216. package/dist/components/navigation/collapsible-header/use-collapsible-header.js.map +1 -0
  217. package/dist/components/navigation/index.d.ts +6 -0
  218. package/dist/components/navigation/index.d.ts.map +1 -1
  219. package/dist/components/navigation/index.js +3 -0
  220. package/dist/components/navigation/index.js.map +1 -1
  221. package/dist/components/navigation/page-indicator/index.d.ts +4 -0
  222. package/dist/components/navigation/page-indicator/index.d.ts.map +1 -0
  223. package/dist/components/navigation/page-indicator/index.js +4 -0
  224. package/dist/components/navigation/page-indicator/index.js.map +1 -0
  225. package/dist/components/navigation/page-indicator/page-indicator.d.ts +4 -0
  226. package/dist/components/navigation/page-indicator/page-indicator.d.ts.map +1 -0
  227. package/dist/components/navigation/page-indicator/page-indicator.js +29 -0
  228. package/dist/components/navigation/page-indicator/page-indicator.js.map +1 -0
  229. package/dist/components/navigation/page-indicator/types.d.ts +32 -0
  230. package/dist/components/navigation/page-indicator/types.d.ts.map +1 -0
  231. package/dist/components/navigation/page-indicator/types.js +2 -0
  232. package/dist/components/navigation/page-indicator/types.js.map +1 -0
  233. package/dist/components/navigation/page-indicator/use-page-indicator.d.ts +4 -0
  234. package/dist/components/navigation/page-indicator/use-page-indicator.d.ts.map +1 -0
  235. package/dist/components/navigation/page-indicator/use-page-indicator.js +69 -0
  236. package/dist/components/navigation/page-indicator/use-page-indicator.js.map +1 -0
  237. package/dist/components/navigation/tabs/index.d.ts +4 -0
  238. package/dist/components/navigation/tabs/index.d.ts.map +1 -0
  239. package/dist/components/navigation/tabs/index.js +3 -0
  240. package/dist/components/navigation/tabs/index.js.map +1 -0
  241. package/dist/components/navigation/tabs/tabs.d.ts +4 -0
  242. package/dist/components/navigation/tabs/tabs.d.ts.map +1 -0
  243. package/dist/components/navigation/tabs/tabs.js +19 -0
  244. package/dist/components/navigation/tabs/tabs.js.map +1 -0
  245. package/dist/components/navigation/tabs/types.d.ts +49 -0
  246. package/dist/components/navigation/tabs/types.d.ts.map +1 -0
  247. package/dist/components/navigation/tabs/types.js +2 -0
  248. package/dist/components/navigation/tabs/types.js.map +1 -0
  249. package/dist/components/navigation/tabs/use-tabs.d.ts +4 -0
  250. package/dist/components/navigation/tabs/use-tabs.d.ts.map +1 -0
  251. package/dist/components/navigation/tabs/use-tabs.js +157 -0
  252. package/dist/components/navigation/tabs/use-tabs.js.map +1 -0
  253. package/dist/components/overlays/context-menu/context-menu.d.ts +9 -0
  254. package/dist/components/overlays/context-menu/context-menu.d.ts.map +1 -0
  255. package/dist/components/overlays/context-menu/context-menu.js +35 -0
  256. package/dist/components/overlays/context-menu/context-menu.js.map +1 -0
  257. package/dist/components/overlays/context-menu/index.d.ts +4 -0
  258. package/dist/components/overlays/context-menu/index.d.ts.map +1 -0
  259. package/dist/components/overlays/context-menu/index.js +3 -0
  260. package/dist/components/overlays/context-menu/index.js.map +1 -0
  261. package/dist/components/overlays/context-menu/types.d.ts +34 -0
  262. package/dist/components/overlays/context-menu/types.d.ts.map +1 -0
  263. package/dist/components/overlays/context-menu/types.js +2 -0
  264. package/dist/components/overlays/context-menu/types.js.map +1 -0
  265. package/dist/components/overlays/context-menu/use-context-menu.d.ts +4 -0
  266. package/dist/components/overlays/context-menu/use-context-menu.d.ts.map +1 -0
  267. package/dist/components/overlays/context-menu/use-context-menu.js +76 -0
  268. package/dist/components/overlays/context-menu/use-context-menu.js.map +1 -0
  269. package/dist/components/overlays/index.d.ts +2 -0
  270. package/dist/components/overlays/index.d.ts.map +1 -1
  271. package/dist/components/overlays/index.js +1 -0
  272. package/dist/components/overlays/index.js.map +1 -1
  273. package/dist/components/primitives/button/button.d.ts +4 -0
  274. package/dist/components/primitives/button/button.d.ts.map +1 -0
  275. package/dist/components/primitives/button/button.js +65 -0
  276. package/dist/components/primitives/button/button.js.map +1 -0
  277. package/dist/components/primitives/button/index.d.ts +4 -0
  278. package/dist/components/primitives/button/index.d.ts.map +1 -0
  279. package/dist/components/primitives/button/index.js +3 -0
  280. package/dist/components/primitives/button/index.js.map +1 -0
  281. package/dist/components/primitives/button/types.d.ts +49 -0
  282. package/dist/components/primitives/button/types.d.ts.map +1 -0
  283. package/dist/components/primitives/button/types.js +2 -0
  284. package/dist/components/primitives/button/types.js.map +1 -0
  285. package/dist/components/primitives/button/use-button.d.ts +4 -0
  286. package/dist/components/primitives/button/use-button.d.ts.map +1 -0
  287. package/dist/components/primitives/button/use-button.js +86 -0
  288. package/dist/components/primitives/button/use-button.js.map +1 -0
  289. package/dist/components/primitives/icon-button/icon-button.d.ts +4 -0
  290. package/dist/components/primitives/icon-button/icon-button.d.ts.map +1 -0
  291. package/dist/components/primitives/icon-button/icon-button.js +66 -0
  292. package/dist/components/primitives/icon-button/icon-button.js.map +1 -0
  293. package/dist/components/primitives/icon-button/index.d.ts +4 -0
  294. package/dist/components/primitives/icon-button/index.d.ts.map +1 -0
  295. package/dist/components/primitives/icon-button/index.js +3 -0
  296. package/dist/components/primitives/icon-button/index.js.map +1 -0
  297. package/dist/components/primitives/icon-button/types.d.ts +45 -0
  298. package/dist/components/primitives/icon-button/types.d.ts.map +1 -0
  299. package/dist/components/primitives/icon-button/types.js +2 -0
  300. package/dist/components/primitives/icon-button/types.js.map +1 -0
  301. package/dist/components/primitives/icon-button/use-icon-button.d.ts +4 -0
  302. package/dist/components/primitives/icon-button/use-icon-button.d.ts.map +1 -0
  303. package/dist/components/primitives/icon-button/use-icon-button.js +57 -0
  304. package/dist/components/primitives/icon-button/use-icon-button.js.map +1 -0
  305. package/dist/components/primitives/index.d.ts +6 -0
  306. package/dist/components/primitives/index.d.ts.map +1 -1
  307. package/dist/components/primitives/index.js +3 -0
  308. package/dist/components/primitives/index.js.map +1 -1
  309. package/dist/components/primitives/link/index.d.ts +4 -0
  310. package/dist/components/primitives/link/index.d.ts.map +1 -0
  311. package/dist/components/primitives/link/index.js +3 -0
  312. package/dist/components/primitives/link/index.js.map +1 -0
  313. package/dist/components/primitives/link/link.d.ts +4 -0
  314. package/dist/components/primitives/link/link.d.ts.map +1 -0
  315. package/dist/components/primitives/link/link.js +43 -0
  316. package/dist/components/primitives/link/link.js.map +1 -0
  317. package/dist/components/primitives/link/types.d.ts +39 -0
  318. package/dist/components/primitives/link/types.d.ts.map +1 -0
  319. package/dist/components/primitives/link/types.js +2 -0
  320. package/dist/components/primitives/link/types.js.map +1 -0
  321. package/dist/components/primitives/link/use-link.d.ts +4 -0
  322. package/dist/components/primitives/link/use-link.d.ts.map +1 -0
  323. package/dist/components/primitives/link/use-link.js +27 -0
  324. package/dist/components/primitives/link/use-link.js.map +1 -0
  325. package/dist/components/screens/cart-screen/cart-screen.d.ts +4 -0
  326. package/dist/components/screens/cart-screen/cart-screen.d.ts.map +1 -0
  327. package/dist/components/screens/cart-screen/cart-screen.js +16 -0
  328. package/dist/components/screens/cart-screen/cart-screen.js.map +1 -0
  329. package/dist/components/screens/cart-screen/index.d.ts +4 -0
  330. package/dist/components/screens/cart-screen/index.d.ts.map +1 -0
  331. package/dist/components/screens/cart-screen/index.js +3 -0
  332. package/dist/components/screens/cart-screen/index.js.map +1 -0
  333. package/dist/components/screens/cart-screen/types.d.ts +73 -0
  334. package/dist/components/screens/cart-screen/types.d.ts.map +1 -0
  335. package/dist/components/screens/cart-screen/types.js +2 -0
  336. package/dist/components/screens/cart-screen/types.js.map +1 -0
  337. package/dist/components/screens/cart-screen/use-cart-screen.d.ts +4 -0
  338. package/dist/components/screens/cart-screen/use-cart-screen.d.ts.map +1 -0
  339. package/dist/components/screens/cart-screen/use-cart-screen.js +208 -0
  340. package/dist/components/screens/cart-screen/use-cart-screen.js.map +1 -0
  341. package/dist/components/screens/dashboard-screen/dashboard-screen.d.ts +4 -0
  342. package/dist/components/screens/dashboard-screen/dashboard-screen.d.ts.map +1 -0
  343. package/dist/components/screens/dashboard-screen/dashboard-screen.js +16 -0
  344. package/dist/components/screens/dashboard-screen/dashboard-screen.js.map +1 -0
  345. package/dist/components/screens/dashboard-screen/index.d.ts +4 -0
  346. package/dist/components/screens/dashboard-screen/index.d.ts.map +1 -0
  347. package/dist/components/screens/dashboard-screen/index.js +3 -0
  348. package/dist/components/screens/dashboard-screen/index.js.map +1 -0
  349. package/dist/components/screens/dashboard-screen/types.d.ts +75 -0
  350. package/dist/components/screens/dashboard-screen/types.d.ts.map +1 -0
  351. package/dist/components/screens/dashboard-screen/types.js +2 -0
  352. package/dist/components/screens/dashboard-screen/types.js.map +1 -0
  353. package/dist/components/screens/dashboard-screen/use-dashboard-screen.d.ts +4 -0
  354. package/dist/components/screens/dashboard-screen/use-dashboard-screen.d.ts.map +1 -0
  355. package/dist/components/screens/dashboard-screen/use-dashboard-screen.js +165 -0
  356. package/dist/components/screens/dashboard-screen/use-dashboard-screen.js.map +1 -0
  357. package/dist/components/screens/feed-screen/feed-screen.d.ts +4 -0
  358. package/dist/components/screens/feed-screen/feed-screen.d.ts.map +1 -0
  359. package/dist/components/screens/feed-screen/feed-screen.js +16 -0
  360. package/dist/components/screens/feed-screen/feed-screen.js.map +1 -0
  361. package/dist/components/screens/feed-screen/index.d.ts +4 -0
  362. package/dist/components/screens/feed-screen/index.d.ts.map +1 -0
  363. package/dist/components/screens/feed-screen/index.js +3 -0
  364. package/dist/components/screens/feed-screen/index.js.map +1 -0
  365. package/dist/components/screens/feed-screen/types.d.ts +40 -0
  366. package/dist/components/screens/feed-screen/types.d.ts.map +1 -0
  367. package/dist/components/screens/feed-screen/types.js +2 -0
  368. package/dist/components/screens/feed-screen/types.js.map +1 -0
  369. package/dist/components/screens/feed-screen/use-feed-screen.d.ts +4 -0
  370. package/dist/components/screens/feed-screen/use-feed-screen.d.ts.map +1 -0
  371. package/dist/components/screens/feed-screen/use-feed-screen.js +62 -0
  372. package/dist/components/screens/feed-screen/use-feed-screen.js.map +1 -0
  373. package/dist/components/screens/form-wizard-screen/form-wizard-screen.d.ts +4 -0
  374. package/dist/components/screens/form-wizard-screen/form-wizard-screen.d.ts.map +1 -0
  375. package/dist/components/screens/form-wizard-screen/form-wizard-screen.js +16 -0
  376. package/dist/components/screens/form-wizard-screen/form-wizard-screen.js.map +1 -0
  377. package/dist/components/screens/form-wizard-screen/index.d.ts +4 -0
  378. package/dist/components/screens/form-wizard-screen/index.d.ts.map +1 -0
  379. package/dist/components/screens/form-wizard-screen/index.js +3 -0
  380. package/dist/components/screens/form-wizard-screen/index.js.map +1 -0
  381. package/dist/components/screens/form-wizard-screen/types.d.ts +51 -0
  382. package/dist/components/screens/form-wizard-screen/types.d.ts.map +1 -0
  383. package/dist/components/screens/form-wizard-screen/types.js +2 -0
  384. package/dist/components/screens/form-wizard-screen/types.js.map +1 -0
  385. package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.d.ts +4 -0
  386. package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.d.ts.map +1 -0
  387. package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.js +133 -0
  388. package/dist/components/screens/form-wizard-screen/use-form-wizard-screen.js.map +1 -0
  389. package/dist/components/screens/history-screen/history-screen.d.ts +4 -0
  390. package/dist/components/screens/history-screen/history-screen.d.ts.map +1 -0
  391. package/dist/components/screens/history-screen/history-screen.js +16 -0
  392. package/dist/components/screens/history-screen/history-screen.js.map +1 -0
  393. package/dist/components/screens/history-screen/index.d.ts +4 -0
  394. package/dist/components/screens/history-screen/index.d.ts.map +1 -0
  395. package/dist/components/screens/history-screen/index.js +3 -0
  396. package/dist/components/screens/history-screen/index.js.map +1 -0
  397. package/dist/components/screens/history-screen/types.d.ts +65 -0
  398. package/dist/components/screens/history-screen/types.d.ts.map +1 -0
  399. package/dist/components/screens/history-screen/types.js +2 -0
  400. package/dist/components/screens/history-screen/types.js.map +1 -0
  401. package/dist/components/screens/history-screen/use-history-screen.d.ts +4 -0
  402. package/dist/components/screens/history-screen/use-history-screen.d.ts.map +1 -0
  403. package/dist/components/screens/history-screen/use-history-screen.js +122 -0
  404. package/dist/components/screens/history-screen/use-history-screen.js.map +1 -0
  405. package/dist/components/screens/index.d.ts +20 -0
  406. package/dist/components/screens/index.d.ts.map +1 -1
  407. package/dist/components/screens/index.js +10 -0
  408. package/dist/components/screens/index.js.map +1 -1
  409. package/dist/components/screens/media-detail-screen/index.d.ts +4 -0
  410. package/dist/components/screens/media-detail-screen/index.d.ts.map +1 -0
  411. package/dist/components/screens/media-detail-screen/index.js +3 -0
  412. package/dist/components/screens/media-detail-screen/index.js.map +1 -0
  413. package/dist/components/screens/media-detail-screen/media-detail-screen.d.ts +4 -0
  414. package/dist/components/screens/media-detail-screen/media-detail-screen.d.ts.map +1 -0
  415. package/dist/components/screens/media-detail-screen/media-detail-screen.js +16 -0
  416. package/dist/components/screens/media-detail-screen/media-detail-screen.js.map +1 -0
  417. package/dist/components/screens/media-detail-screen/types.d.ts +55 -0
  418. package/dist/components/screens/media-detail-screen/types.d.ts.map +1 -0
  419. package/dist/components/screens/media-detail-screen/types.js +2 -0
  420. package/dist/components/screens/media-detail-screen/types.js.map +1 -0
  421. package/dist/components/screens/media-detail-screen/use-media-detail-screen.d.ts +4 -0
  422. package/dist/components/screens/media-detail-screen/use-media-detail-screen.d.ts.map +1 -0
  423. package/dist/components/screens/media-detail-screen/use-media-detail-screen.js +126 -0
  424. package/dist/components/screens/media-detail-screen/use-media-detail-screen.js.map +1 -0
  425. package/dist/components/screens/notification-center-screen/index.d.ts +4 -0
  426. package/dist/components/screens/notification-center-screen/index.d.ts.map +1 -0
  427. package/dist/components/screens/notification-center-screen/index.js +3 -0
  428. package/dist/components/screens/notification-center-screen/index.js.map +1 -0
  429. package/dist/components/screens/notification-center-screen/notification-center-screen.d.ts +4 -0
  430. package/dist/components/screens/notification-center-screen/notification-center-screen.d.ts.map +1 -0
  431. package/dist/components/screens/notification-center-screen/notification-center-screen.js +16 -0
  432. package/dist/components/screens/notification-center-screen/notification-center-screen.js.map +1 -0
  433. package/dist/components/screens/notification-center-screen/types.d.ts +52 -0
  434. package/dist/components/screens/notification-center-screen/types.d.ts.map +1 -0
  435. package/dist/components/screens/notification-center-screen/types.js +2 -0
  436. package/dist/components/screens/notification-center-screen/types.js.map +1 -0
  437. package/dist/components/screens/notification-center-screen/use-notification-center-screen.d.ts +4 -0
  438. package/dist/components/screens/notification-center-screen/use-notification-center-screen.d.ts.map +1 -0
  439. package/dist/components/screens/notification-center-screen/use-notification-center-screen.js +124 -0
  440. package/dist/components/screens/notification-center-screen/use-notification-center-screen.js.map +1 -0
  441. package/dist/components/screens/order-tracking-screen/index.d.ts +4 -0
  442. package/dist/components/screens/order-tracking-screen/index.d.ts.map +1 -0
  443. package/dist/components/screens/order-tracking-screen/index.js +3 -0
  444. package/dist/components/screens/order-tracking-screen/index.js.map +1 -0
  445. package/dist/components/screens/order-tracking-screen/order-tracking-screen.d.ts +4 -0
  446. package/dist/components/screens/order-tracking-screen/order-tracking-screen.d.ts.map +1 -0
  447. package/dist/components/screens/order-tracking-screen/order-tracking-screen.js +16 -0
  448. package/dist/components/screens/order-tracking-screen/order-tracking-screen.js.map +1 -0
  449. package/dist/components/screens/order-tracking-screen/types.d.ts +55 -0
  450. package/dist/components/screens/order-tracking-screen/types.d.ts.map +1 -0
  451. package/dist/components/screens/order-tracking-screen/types.js +2 -0
  452. package/dist/components/screens/order-tracking-screen/types.js.map +1 -0
  453. package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.d.ts +4 -0
  454. package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.d.ts.map +1 -0
  455. package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.js +177 -0
  456. package/dist/components/screens/order-tracking-screen/use-order-tracking-screen.js.map +1 -0
  457. package/dist/components/screens/product-detail-screen/index.d.ts +4 -0
  458. package/dist/components/screens/product-detail-screen/index.d.ts.map +1 -0
  459. package/dist/components/screens/product-detail-screen/index.js +3 -0
  460. package/dist/components/screens/product-detail-screen/index.js.map +1 -0
  461. package/dist/components/screens/product-detail-screen/product-detail-screen.d.ts +4 -0
  462. package/dist/components/screens/product-detail-screen/product-detail-screen.d.ts.map +1 -0
  463. package/dist/components/screens/product-detail-screen/product-detail-screen.js +16 -0
  464. package/dist/components/screens/product-detail-screen/product-detail-screen.js.map +1 -0
  465. package/dist/components/screens/product-detail-screen/types.d.ts +70 -0
  466. package/dist/components/screens/product-detail-screen/types.d.ts.map +1 -0
  467. package/dist/components/screens/product-detail-screen/types.js +2 -0
  468. package/dist/components/screens/product-detail-screen/types.js.map +1 -0
  469. package/dist/components/screens/product-detail-screen/use-product-detail-screen.d.ts +4 -0
  470. package/dist/components/screens/product-detail-screen/use-product-detail-screen.d.ts.map +1 -0
  471. package/dist/components/screens/product-detail-screen/use-product-detail-screen.js +202 -0
  472. package/dist/components/screens/product-detail-screen/use-product-detail-screen.js.map +1 -0
  473. package/dist/components/screens/transaction-detail-screen/index.d.ts +4 -0
  474. package/dist/components/screens/transaction-detail-screen/index.d.ts.map +1 -0
  475. package/dist/components/screens/transaction-detail-screen/index.js +3 -0
  476. package/dist/components/screens/transaction-detail-screen/index.js.map +1 -0
  477. package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.d.ts +4 -0
  478. package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.d.ts.map +1 -0
  479. package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.js +16 -0
  480. package/dist/components/screens/transaction-detail-screen/transaction-detail-screen.js.map +1 -0
  481. package/dist/components/screens/transaction-detail-screen/types.d.ts +72 -0
  482. package/dist/components/screens/transaction-detail-screen/types.d.ts.map +1 -0
  483. package/dist/components/screens/transaction-detail-screen/types.js +2 -0
  484. package/dist/components/screens/transaction-detail-screen/types.js.map +1 -0
  485. package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.d.ts +4 -0
  486. package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.d.ts.map +1 -0
  487. package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.js +221 -0
  488. package/dist/components/screens/transaction-detail-screen/use-transaction-detail-screen.js.map +1 -0
  489. package/dist/components/use-component-style.d.ts +3 -0
  490. package/dist/components/use-component-style.d.ts.map +1 -1
  491. package/dist/components/use-component-style.js.map +1 -1
  492. package/dist/index.d.ts +19 -9
  493. package/dist/index.d.ts.map +1 -1
  494. package/dist/index.js +11 -5
  495. package/dist/index.js.map +1 -1
  496. package/package.json +4 -4
@@ -0,0 +1,68 @@
1
+ const SIZE_MAP = {
2
+ sm: (t) => ({ paddingVertical: t.spacing.xs, paddingHorizontal: t.spacing.sm, titleFontSize: 14, subtitleFontSize: 12, minHeight: 44 }),
3
+ md: (t) => ({ paddingVertical: t.spacing.sm, paddingHorizontal: t.spacing.md, titleFontSize: 16, subtitleFontSize: 14, minHeight: 56 }),
4
+ lg: (t) => ({ paddingVertical: t.spacing.md, paddingHorizontal: t.spacing.lg, titleFontSize: 18, subtitleFontSize: 16, minHeight: 68 }),
5
+ };
6
+ export function useListItem(tokens, props) {
7
+ const { size = 'md', destructive = false, separator: _separator = false, showChevron: _showChevron = false, disabled = false, onPress, title, accessibilityLabel, testID, } = props;
8
+ const sizeConfig = SIZE_MAP[size](tokens);
9
+ const containerStyle = {
10
+ flexDirection: 'row',
11
+ alignItems: 'center',
12
+ paddingVertical: sizeConfig.paddingVertical,
13
+ paddingHorizontal: sizeConfig.paddingHorizontal,
14
+ minWidth: sizeConfig.minHeight, // use as minHeight proxy — we store it in width intentionally? No — we need custom field.
15
+ };
16
+ // minHeight is not in ResolvedBoxStyle, store via cast approach — but we need to add it.
17
+ // Since ResolvedBoxStyle doesn't have minHeight for height, use (containerStyle as any).minHeight
18
+ // Actually looking at use-component-style.ts, minHeight exists! Let's use it.
19
+ // Re-checking: ResolvedBoxStyle has minWidth but not minHeight. We'll cast.
20
+ containerStyle.minHeight = sizeConfig.minHeight;
21
+ // Remove the mistakenly set minWidth
22
+ delete containerStyle.minWidth;
23
+ const titleStyle = {
24
+ fontSize: sizeConfig.titleFontSize,
25
+ color: destructive ? tokens.colors.destructive : tokens.colors.foreground,
26
+ fontWeight: tokens.typography.weights.medium,
27
+ };
28
+ const subtitleStyle = {
29
+ fontSize: sizeConfig.subtitleFontSize,
30
+ color: tokens.colors.mutedForeground,
31
+ };
32
+ const leftAccessoryContainerStyle = {
33
+ marginRight: tokens.spacing.sm,
34
+ alignItems: 'center',
35
+ justifyContent: 'center',
36
+ };
37
+ const rightAccessoryContainerStyle = {
38
+ marginLeft: tokens.spacing.sm,
39
+ alignItems: 'center',
40
+ justifyContent: 'center',
41
+ };
42
+ const chevronColor = tokens.colors.mutedForeground;
43
+ // Left accessory is ~32px wide by convention
44
+ const leftInset = props.leftAccessory ? 32 + tokens.spacing.sm : 0;
45
+ const separatorStyle = {
46
+ height: 1,
47
+ backgroundColor: tokens.colors.border,
48
+ marginLeft: leftInset,
49
+ };
50
+ const accessibilityProps = {
51
+ accessibilityRole: (onPress ? 'button' : 'none'),
52
+ accessibilityLabel: accessibilityLabel ?? title,
53
+ accessibilityState: { disabled: disabled },
54
+ ...(testID !== undefined && { testID }),
55
+ };
56
+ return {
57
+ containerStyle,
58
+ titleStyle,
59
+ subtitleStyle,
60
+ leftAccessoryContainerStyle,
61
+ rightAccessoryContainerStyle,
62
+ chevronColor,
63
+ separatorStyle,
64
+ isDisabled: disabled,
65
+ accessibilityProps,
66
+ };
67
+ }
68
+ //# sourceMappingURL=use-list-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-list-item.js","sourceRoot":"","sources":["../../../../src/components/data-display/list-item/use-list-item.ts"],"names":[],"mappings":"AAaA,MAAM,QAAQ,GAAyD;IACrE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACvI,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACvI,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,aAAa,EAAE,E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ACpD,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QAC9B,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB,CAAC;IAEF,MAAM,4BAA4B,GAAqB;QACrD,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QAC7B,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB,CAAC;IAEF,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC;IAEnD,6CAA6C;IAC7C,MAAM,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnE,MAAM,cAAc,GAAqB;QACvC,MAAM,EAAE,CAAC;QACT,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM;QACrC,UAAU,EAAE,SAAS;KACtB,CAAC;IAEF,MAAM,kBAAkB,GAAG;QACzB,iBAAiB,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAsB;QACrE,kBAAkB,EAAE,kBAAkB,IAAI,KAAK;QAC/C,kBAAkB,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;QAC1C,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;KACxC,CAAC;IAEF,OAAO;QACL,cAAc;QACd,UAAU;QACV,aAAa;QACb,2BAA2B;QAC3B,4BAA4B;QAC5B,YAAY;QACZ,cAAc;QACd,UAAU,EAAE,QAAQ;QACpB,kBAAkB;KACnB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { PriceDisplay } from './price-display.js';
2
+ export { usePriceDisplay } from './use-price-display.js';
3
+ export type { PriceDisplayProps, UsePriceDisplayResult } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/price-display/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ // src/components/data-display/price-display/index.ts
2
+ export { PriceDisplay } from './price-display.js';
3
+ export { usePriceDisplay } from './use-price-display.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/data-display/price-display/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { View, type ViewProps } from 'react-native';
2
+ import type { PriceDisplayProps } from './types.js';
3
+ export declare const PriceDisplay: import("react").ForwardRefExoticComponent<PriceDisplayProps & Omit<ViewProps, keyof PriceDisplayProps> & import("react").RefAttributes<View>>;
4
+ //# sourceMappingURL=price-display.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-display.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/price-display/price-display.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,eAAO,MAAM,YAAY,+IA6CvB,CAAC"}
@@ -0,0 +1,20 @@
1
+ // src/components/data-display/price-display/price-display.tsx
2
+ import { forwardRef, createElement } from 'react';
3
+ import { View, Text } from 'react-native';
4
+ import { useTheme } from '../../../theme/context.js';
5
+ import { usePriceDisplay } from './use-price-display.js';
6
+ export const PriceDisplay = forwardRef(function PriceDisplay(props, ref) {
7
+ const { tokens } = useTheme();
8
+ const { price: _pr, originalPrice: _op, currency: _cu, locale: _lo, size: _s, showDiscountBadge: _sdb, discountBadgeText: _dbt, priceColor: _pc, originalPriceColor: _opc, discountBadgeColor: _dbc, bg: _bg, p: _p, px: _px, py: _py, pt: _pt, pb: _pb, pl: _pl, pr: _ppr, 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: _o, overflow: _ov, position: _pos, top: _top, bottom: _bot, left: _left, right: _right, zIndex: _zi, accessibilityLabel: _al, testID: _tid, ...rest } = props;
9
+ const result = usePriceDisplay(tokens, props);
10
+ const { containerStyle, priceStyle, originalPriceStyle, discountBadgeContainerStyle, discountBadgeTextStyle, formattedPrice, formattedOriginalPrice, discountText, showDiscount, showOriginalPrice, accessibilityProps, } = result;
11
+ const priceEl = createElement(Text, { key: 'price', style: priceStyle }, formattedPrice);
12
+ const originalEl = showOriginalPrice
13
+ ? createElement(Text, { key: 'original', style: originalPriceStyle }, formattedOriginalPrice)
14
+ : null;
15
+ const badgeEl = showDiscount
16
+ ? createElement(View, { key: 'badge', style: discountBadgeContainerStyle }, createElement(Text, { style: discountBadgeTextStyle }, discountText))
17
+ : null;
18
+ return createElement(View, { ref, style: containerStyle, ...accessibilityProps, ...rest }, priceEl, originalEl, badgeEl);
19
+ });
20
+ //# sourceMappingURL=price-display.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"price-display.js","sourceRoot":"","sources":["../../../../src/components/data-display/price-display/price-display.tsx"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CA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GAAG,EAC/F,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EACrC,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IAEV,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC9C,MAAM,EACJ,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAC9C,2BAA2B,EAAE,sBAAsB,EACnD,cAAc,EAAE,sBAAsB,EAAE,YAAY,EACpD,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,GACpD,GAAG,MAAM,CAAC;IAEX,MAAM,OAAO,GAAG,aAAa,CAAC,IAAW,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,UAAiB,EAAE,EAAE,cAAc,CAAC,CAAC;IACvG,MAAM,UAAU,GAAG,iBAAiB;QAClC,CAAC,CAAC,aAAa,CAAC,IAAW,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,kBAAyB,EAAE,EAAE,sBAAsB,CAAC;QAC3G,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,OAAO,GAAG,YAAY;QAC1B,CAAC,CAAC,aAAa,CACX,IAAW,EACX,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,2BAAkC,EAAE,EAC3D,aAAa,CAAC,IAAW,EAAE,EAAE,KAAK,EAAE,sBAA6B,EAAE,EAAE,YAAY,CAAC,CACnF;QACH,CAAC,CAAC,IAAI,CAAC;IAET,OAAO,aAAa,CAClB,IAAW,EACX,EAAE,GAAG,EAAE,KAAK,EAAE,cAAqB,EAAE,GAAG,kBAAkB,EAAE,GAAG,IAAI,EAAE,EACrE,OAAO,EACP,UAAU,EACV,OAAO,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { BoxStyleProps, SizeVariant } from '../../types.js';
2
+ import type { ResolvedBoxStyle, ResolvedTextStyle } from '../../use-component-style.js';
3
+ export interface PriceDisplayProps extends BoxStyleProps {
4
+ price: number;
5
+ originalPrice?: number;
6
+ currency?: string;
7
+ locale?: string;
8
+ size?: SizeVariant;
9
+ showDiscountBadge?: boolean;
10
+ discountBadgeText?: string;
11
+ priceColor?: string;
12
+ originalPriceColor?: string;
13
+ discountBadgeColor?: string;
14
+ accessibilityLabel?: string;
15
+ testID?: string;
16
+ }
17
+ export interface UsePriceDisplayResult {
18
+ containerStyle: ResolvedBoxStyle;
19
+ priceStyle: ResolvedTextStyle;
20
+ originalPriceStyle: ResolvedTextStyle;
21
+ discountBadgeContainerStyle: ResolvedBoxStyle;
22
+ discountBadgeTextStyle: ResolvedTextStyle;
23
+ formattedPrice: string;
24
+ formattedOriginalPrice: string;
25
+ discountPercent: number;
26
+ discountText: string;
27
+ showDiscount: boolean;
28
+ showOriginalPrice: boolean;
29
+ accessibilityProps: {
30
+ accessibilityLabel: string;
31
+ testID?: string;
32
+ };
33
+ }
34
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/price-display/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAExF,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,gBAAgB,CAAC;IACjC,UAAU,EAAE,iBAAiB,CAAC;IAC9B,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,2BAA2B,EAAE,gBAAgB,CAAC;IAC9C,sBAAsB,EAAE,iBAAiB,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,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/data-display/price-display/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { PriceDisplayProps, UsePriceDisplayResult } from './types.js';
3
+ export declare function usePriceDisplay(tokens: ThemeTokens, props: PriceDisplayProps): UsePriceDisplayResult;
4
+ //# sourceMappingURL=use-price-display.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-price-display.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/price-display/use-price-display.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAgB3E,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,GAAG,qBAAqB,CA6FpG"}
@@ -0,0 +1,78 @@
1
+ const SIZE_FONT_MAP = {
2
+ xs: { priceFontSize: 14, originalFontSize: 11 },
3
+ sm: { priceFontSize: 16, originalFontSize: 12 },
4
+ md: { priceFontSize: 20, originalFontSize: 14 },
5
+ lg: { priceFontSize: 24, originalFontSize: 16 },
6
+ xl: { priceFontSize: 30, originalFontSize: 20 },
7
+ };
8
+ export function usePriceDisplay(tokens, props) {
9
+ const { price, originalPrice, currency = 'USD', locale = 'en-US', size = 'md', showDiscountBadge, discountBadgeText, priceColor, originalPriceColor, discountBadgeColor, accessibilityLabel, testID, } = props;
10
+ const fontConfig = (SIZE_FONT_MAP[size] ?? SIZE_FONT_MAP.md);
11
+ const formatCurrency = (amount) => {
12
+ try {
13
+ return new Intl.NumberFormat(locale, { style: 'currency', currency }).format(amount);
14
+ }
15
+ catch {
16
+ return `${currency}${amount.toFixed(2)}`;
17
+ }
18
+ };
19
+ const formattedPrice = formatCurrency(price);
20
+ const formattedOriginalPrice = originalPrice !== undefined ? formatCurrency(originalPrice) : '';
21
+ const showOriginalPrice = originalPrice !== undefined;
22
+ const hasDiscount = showOriginalPrice && originalPrice > price;
23
+ const discountPercent = hasDiscount ? Math.round((1 - price / originalPrice) * 100) : 0;
24
+ const autoDiscountText = `\u2013${discountPercent}%`;
25
+ const discountText = discountBadgeText ?? autoDiscountText;
26
+ const showDiscount = showDiscountBadge !== undefined ? showDiscountBadge : hasDiscount;
27
+ const resolvedPriceColor = priceColor ?? tokens.colors.foreground;
28
+ const resolvedOriginalColor = originalPriceColor ?? tokens.colors.mutedForeground;
29
+ const resolvedBadgeColor = discountBadgeColor ?? tokens.colors.destructive;
30
+ const containerStyle = {
31
+ flexDirection: 'row',
32
+ alignItems: 'baseline',
33
+ gap: tokens.spacing.xs,
34
+ };
35
+ const priceStyle = {
36
+ fontSize: fontConfig.priceFontSize,
37
+ fontWeight: tokens.typography.weights.bold,
38
+ color: resolvedPriceColor,
39
+ };
40
+ const originalPriceStyle = {
41
+ fontSize: fontConfig.originalFontSize,
42
+ color: resolvedOriginalColor,
43
+ textDecorationLine: 'line-through',
44
+ };
45
+ const discountBadgeContainerStyle = {
46
+ backgroundColor: resolvedBadgeColor,
47
+ borderRadius: tokens.radii.sm,
48
+ paddingHorizontal: tokens.spacing.xs,
49
+ paddingVertical: 2,
50
+ };
51
+ const discountBadgeTextStyle = {
52
+ fontSize: tokens.typography.sizes.xs,
53
+ fontWeight: tokens.typography.weights.bold,
54
+ color: '#ffffff',
55
+ };
56
+ const defaultA11yLabel = hasDiscount
57
+ ? `${formattedPrice}, was ${formattedOriginalPrice}, ${discountPercent}% off`
58
+ : formattedPrice;
59
+ const resolvedA11yLabel = accessibilityLabel ?? defaultA11yLabel;
60
+ return {
61
+ containerStyle,
62
+ priceStyle,
63
+ originalPriceStyle,
64
+ discountBadgeContainerStyle,
65
+ discountBadgeTextStyle,
66
+ formattedPrice,
67
+ formattedOriginalPrice,
68
+ discountPercent,
69
+ discountText,
70
+ showDiscount,
71
+ showOriginalPrice,
72
+ accessibilityProps: {
73
+ accessibilityLabel: resolvedA11yLabel,
74
+ ...(testID !== undefined && { testID }),
75
+ },
76
+ };
77
+ }
78
+ //# sourceMappingURL=use-price-display.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-price-display.js","sourceRoot":"","sources":["../../../../src/components/data-display/price-display/use-price-display.ts"],"names":[],"mappings":"AAUA,MAAM,aAAa,GAAmC;IACpD,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC/C,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC/C,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC/C,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC/C,EAAE,EAA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ACjB,CAAC;IAEF,MAAM,gBAAgB,GAAG,WAAW;QAClC,CAAC,CAAC,GAAG,cAAc,SAAS,sBAAsB,KAAK,eAAe,OAAO;QAC7E,CAAC,CAAC,cAAc,CAAC;IACnB,MAAM,iBAAiB,GAAG,kBAAkB,IAAI,gBAAgB,CAAC;IAEjE,OAAO;QACL,cAAc;QACd,UAAU;QACV,kBAAkB;QAClB,2BAA2B;QAC3B,sBAAsB;QACtB,cAAc;QACd,sBAAsB;QACtB,eAAe;QACf,YAAY;QACZ,YAAY;QACZ,iBAAiB;QACjB,kBAAkB,EAAE;YAClB,kBAAkB,EAAE,iBAAiB;YACrC,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;SACxC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { RatingStars } from './rating-stars.js';
2
+ export { useRatingStars } from './use-rating-stars.js';
3
+ export type { RatingStarsProps, UseRatingStarsResult, StarFill, StarEntry } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/rating-stars/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ // src/components/data-display/rating-stars/index.ts
2
+ export { RatingStars } from './rating-stars.js';
3
+ export { useRatingStars } from './use-rating-stars.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/data-display/rating-stars/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { View, type ViewProps } from 'react-native';
2
+ import type { RatingStarsProps } from './types.js';
3
+ export declare const RatingStars: import("react").ForwardRefExoticComponent<RatingStarsProps & Omit<ViewProps, keyof RatingStarsProps> & import("react").RefAttributes<View>>;
4
+ //# sourceMappingURL=rating-stars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rating-stars.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/rating-stars/rating-stars.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,eAAO,MAAM,WAAW,6IA2CtB,CAAC"}
@@ -0,0 +1,24 @@
1
+ // src/components/data-display/rating-stars/rating-stars.tsx
2
+ import { forwardRef, createElement } from 'react';
3
+ import { View, Text } from 'react-native';
4
+ import { useTheme } from '../../../theme/context.js';
5
+ import { useRatingStars } from './use-rating-stars.js';
6
+ export const RatingStars = forwardRef(function RatingStars(props, ref) {
7
+ const { tokens } = useTheme();
8
+ const { value: _v, onValueChange: _ovc, max: _max, halfStar: _hs, size: _s, color: _c, emptyColor: _ec, spacing: _sp, showValue, formatValue: _fv, 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, accessibilityLabel: _al, testID: _tid, ...rest } = props;
9
+ const result = useRatingStars(tokens, props);
10
+ const { containerStyle, starContainerStyle, valueTextStyle, stars, filledColor, emptyColor: resolvedEmptyColor, starSize, formattedValue, accessibilityProps, } = result;
11
+ const starElements = stars.map((star) => {
12
+ const color = star.fill === 'empty' ? resolvedEmptyColor : filledColor;
13
+ return createElement(Text, {
14
+ key: star.index,
15
+ style: { fontSize: starSize, color },
16
+ }, star.fill === 'half' ? '☆' : star.fill === 'full' ? '★' : '☆');
17
+ });
18
+ const starsContainer = createElement(View, { style: starContainerStyle }, ...starElements);
19
+ const valueLabel = showValue
20
+ ? createElement(Text, { style: valueTextStyle }, formattedValue)
21
+ : null;
22
+ return createElement(View, { ref, style: containerStyle, ...accessibilityProps, ...rest }, starsContainer, valueLabel);
23
+ });
24
+ //# sourceMappingURL=rating-stars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rating-stars.js","sourceRoot":"","sources":["../../../../src/components/data-display/rating-stars/rating-stars.tsx"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,WAAW,CACxD,KAAiE,EACjE,GAAc;IAEd,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EACJ,KAAK,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAClE,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,EACrE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,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AAE;YAChC,GAAG,EAAE,IAAI,CAAC,KAAK;YACf,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;SACrC,EAAE,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,aAAa,CAAC,IAAW,EAAE,EAAE,KAAK,EAAE,kBAAyB,EAAE,EAAE,GAAG,YAAY,CAAC,CAAC;IACzG,MAAM,UAAU,GAAG,SAAS;QAC1B,CAAC,CAAC,aAAa,CAAC,IAAW,EAAE,EAAE,KAAK,EAAE,cAAqB,EAAE,EAAE,cAAc,CAAC;QAC9E,CAAC,CAAC,IAAI,CAAC;IAET,OAAO,aAAa,CAClB,IAAW,EACX,EAAE,GAAG,EAAE,KAAK,EAAE,cAAqB,EAAE,GAAG,kBAAkB,EAAE,GAAG,IAAI,EAAE,EACrE,cAAc,EACd,UAAU,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { BoxStyleProps, SizeVariant } from '../../types.js';
2
+ import type { ResolvedBoxStyle, ResolvedTextStyle } from '../../use-component-style.js';
3
+ export interface RatingStarsProps extends BoxStyleProps {
4
+ value: number;
5
+ onValueChange?: (value: number) => void;
6
+ max?: number;
7
+ halfStar?: boolean;
8
+ size?: SizeVariant;
9
+ color?: string;
10
+ emptyColor?: string;
11
+ spacing?: number;
12
+ showValue?: boolean;
13
+ formatValue?: (value: number, max: number) => string;
14
+ accessibilityLabel?: string;
15
+ testID?: string;
16
+ }
17
+ export type StarFill = 'full' | 'half' | 'empty';
18
+ export interface StarEntry {
19
+ index: number;
20
+ fill: StarFill;
21
+ accessibilityLabel: string;
22
+ }
23
+ export interface UseRatingStarsResult {
24
+ containerStyle: ResolvedBoxStyle;
25
+ starContainerStyle: ResolvedBoxStyle;
26
+ valueTextStyle: ResolvedTextStyle;
27
+ starSize: number;
28
+ filledColor: string;
29
+ emptyColor: string;
30
+ stars: StarEntry[];
31
+ formattedValue: string;
32
+ isInteractive: boolean;
33
+ accessibilityProps: {
34
+ accessibilityRole: 'adjustable' | 'none';
35
+ accessibilityLabel: string;
36
+ accessibilityValue: {
37
+ min: 0;
38
+ max: number;
39
+ now: number;
40
+ text: string;
41
+ };
42
+ testID?: string;
43
+ };
44
+ }
45
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/rating-stars/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAExF,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEjD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,gBAAgB,CAAC;IACjC,kBAAkB,EAAE,gBAAgB,CAAC;IACrC,cAAc,EAAE,iBAAiB,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE;QAClB,iBAAiB,EAAE,YAAY,GAAG,MAAM,CAAC;QACzC,kBAAkB,EAAE,MAAM,CAAC;QAC3B,kBAAkB,EAAE;YAAE,GAAG,EAAE,CAAC,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;QACvE,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/data-display/rating-stars/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { RatingStarsProps, UseRatingStarsResult } from './types.js';
3
+ export declare function useRatingStars(tokens: ThemeTokens, props: RatingStarsProps): UseRatingStarsResult;
4
+ //# sourceMappingURL=use-rating-stars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-rating-stars.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/rating-stars/use-rating-stars.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAuB,MAAM,YAAY,CAAC;AAiB9F,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,GAAG,oBAAoB,CAsEjG"}
@@ -0,0 +1,64 @@
1
+ const STAR_SIZE_MAP = {
2
+ xs: 12,
3
+ sm: 16,
4
+ md: 20,
5
+ lg: 24,
6
+ xl: 32,
7
+ };
8
+ function computeFill(index, value, halfStar) {
9
+ if (value >= index + 1)
10
+ return 'full';
11
+ if (halfStar && value >= index + 0.5)
12
+ return 'half';
13
+ return 'empty';
14
+ }
15
+ export function useRatingStars(tokens, props) {
16
+ const { value, max = 5, halfStar = false, size = 'md', color, emptyColor, spacing = 2, showValue: _showValue = false, formatValue, onValueChange, accessibilityLabel, testID, } = props;
17
+ const filledColor = color ?? tokens.colors.accent;
18
+ const resolvedEmptyColor = emptyColor ?? tokens.colors.mutedForeground;
19
+ const starSize = STAR_SIZE_MAP[size] ?? 20;
20
+ const isInteractive = onValueChange !== undefined;
21
+ const stars = Array.from({ length: max }, (_, i) => {
22
+ const fill = computeFill(i, value, halfStar);
23
+ return {
24
+ index: i,
25
+ fill,
26
+ accessibilityLabel: `${i + 1} of ${max} stars`,
27
+ };
28
+ });
29
+ const defaultFormat = (v, _max) => String(v);
30
+ const formattedValue = formatValue ? formatValue(value, max) : defaultFormat(value, max);
31
+ const containerStyle = {
32
+ flexDirection: 'row',
33
+ alignItems: 'center',
34
+ };
35
+ const starContainerStyle = {
36
+ flexDirection: 'row',
37
+ gap: spacing,
38
+ };
39
+ const valueTextStyle = {
40
+ fontSize: tokens.typography.sizes.sm,
41
+ color: tokens.colors.mutedForeground,
42
+ marginLeft: tokens.spacing.xs,
43
+ };
44
+ const label = accessibilityLabel ?? `Rating: ${value} out of ${max}`;
45
+ const accessibilityProps = {
46
+ accessibilityRole: (isInteractive ? 'adjustable' : 'none'),
47
+ accessibilityLabel: label,
48
+ accessibilityValue: { min: 0, max, now: value, text: formattedValue },
49
+ ...(testID !== undefined && { testID }),
50
+ };
51
+ return {
52
+ containerStyle,
53
+ starContainerStyle,
54
+ valueTextStyle,
55
+ starSize,
56
+ filledColor,
57
+ emptyColor: resolvedEmptyColor,
58
+ stars,
59
+ formattedValue,
60
+ isInteractive,
61
+ accessibilityProps,
62
+ };
63
+ }
64
+ //# sourceMappingURL=use-rating-stars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-rating-stars.js","sourceRoot":"","sources":["../../../../src/components/data-display/rating-stars/use-rating-stars.ts"],"names":[],"mappings":"AAKA,MAAM,aAAa,GAA2B;IAC5C,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;CACP,CAAC;AAEF,SAAS,WAAW,CAAC,KAAa,EAAE,KAAa,EAAE,QAAiB;IAClE,IAAI,KAAK,IAAI,KAAK,GAAG,CAAC;QAAE,OAAO,MAAM,CAAC;IACtC,IAAI,QAAQ,IAAI,KAAK,IAAI,KAAK,GAAG,GAAG;QAAE,OAAO,MAAM,CAAC;IACpD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,MAAmB,EAAE,KAAuB;IACzE,MAAM,EACJ,KAAK,EACL,GAAG,GAAG,CAAC,EACP,QAAQ,GAAG,KAAK,EAChB,IAAI,GAAG,IAAI,EACX,KAAK,EACL,UAAU,EACV,OAAO,GAAG,CAAC,EACX,SAAS,EAAE,UAAU,GAAG,KAAK,EAC7B,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,MAAM,GACP,GAAG,KAAK,CAAC;IAEV,MAAM,WAAW,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;IAClD,MAAM,kBAAkB,GAAG,UAAU,IAAI,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC;IACv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AAC,CAAC,CAAC,MAAM,CAA0B;QACnF,kBAAkB,EAAE,KAAK;QACzB,kBAAkB,EAAE,EAAE,GAAG,EAAE,CAAU,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9E,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;KACxC,CAAC;IAEF,OAAO;QACL,cAAc;QACd,kBAAkB;QAClB,cAAc;QACd,QAAQ;QACR,WAAW;QACX,UAAU,EAAE,kBAAkB;QAC9B,KAAK;QACL,cAAc;QACd,aAAa;QACb,kBAAkB;KACnB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { createElement } from 'react';
2
+ import type { ConnectionStatusProps } from './types.js';
3
+ export declare function ConnectionStatus(props: ConnectionStatusProps): ReturnType<typeof createElement>;
4
+ //# sourceMappingURL=connection-status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-status.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/connection-status/connection-status.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAoB/F"}
@@ -0,0 +1,10 @@
1
+ import { createElement } from 'react';
2
+ import { View, Text } from 'react-native';
3
+ import { useTheme } from '../../../theme/context.js';
4
+ import { useConnectionStatus } from './use-connection-status.js';
5
+ export function ConnectionStatus(props) {
6
+ const { tokens } = useTheme();
7
+ const { containerStyle, bannerStyle, textStyle, text, accessibilityProps, } = useConnectionStatus(tokens, props);
8
+ return createElement(View, { style: containerStyle }, createElement(View, { style: bannerStyle, ...accessibilityProps }, createElement(Text, { style: textStyle }, text)));
9
+ }
10
+ //# sourceMappingURL=connection-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-status.js","sourceRoot":"","sources":["../../../../src/components/feedback/connection-status/connection-status.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,MAAM,UAAU,gBAAgB,CAAC,KAA4B;IAC3D,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAE9B,MAAM,EACJ,cAAc,EACd,WAAW,EACX,SAAS,EACT,IAAI,EACJ,kBAAkB,GACnB,GAAG,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEvC,OAAO,aAAa,CAClB,IAAI,EACJ,EAAE,KAAK,EAAE,cAAc,EAAE,EACzB,aAAa,CACX,IAAI,EACJ,EAAE,KAAK,EAAE,WAAW,EAAE,GAAI,kBAA0B,EAAE,EACtD,aAAa,CAAC,IAAW,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,IAAI,CAAC,CACvD,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { ConnectionStatus } from './connection-status.js';
2
+ export { useConnectionStatus } from './use-connection-status.js';
3
+ export type { ConnectionStatusProps, ConnectionState, ConnectionVariantStyle, UseConnectionStatusResult } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/connection-status/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ConnectionStatus } from './connection-status.js';
2
+ export { useConnectionStatus } from './use-connection-status.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/feedback/connection-status/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { ResolvedBoxStyle, ResolvedTextStyle } from '../../use-component-style.js';
2
+ export type ConnectionState = 'offline' | 'reconnecting' | 'restored';
3
+ export interface ConnectionStatusProps {
4
+ connected: boolean;
5
+ offlineText?: string;
6
+ reconnectingText?: string;
7
+ restoredText?: string;
8
+ restoredDuration?: number;
9
+ position?: 'top' | 'bottom';
10
+ accessibilityLabel?: string;
11
+ testID?: string;
12
+ }
13
+ export interface ConnectionVariantStyle {
14
+ backgroundColor: string;
15
+ textColor: string;
16
+ iconName: string;
17
+ }
18
+ export interface UseConnectionStatusResult {
19
+ containerStyle: ResolvedBoxStyle;
20
+ bannerStyle: ResolvedBoxStyle;
21
+ textStyle: ResolvedTextStyle;
22
+ iconColor: string;
23
+ text: string;
24
+ iconName: string;
25
+ backgroundColor: string;
26
+ getVariantStyle: (state: ConnectionState) => ConnectionVariantStyle;
27
+ accessibilityProps: {
28
+ accessibilityRole: string;
29
+ accessibilityLabel?: string;
30
+ testID?: string;
31
+ };
32
+ }
33
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/connection-status/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAExF,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,cAAc,GAAG,UAAU,CAAC;AAEtE,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,gBAAgB,CAAC;IACjC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,sBAAsB,CAAC;IACpE,kBAAkB,EAAE;QAClB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,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/feedback/connection-status/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { ConnectionStatusProps, UseConnectionStatusResult } from './types.js';
3
+ export declare function useConnectionStatus(tokens: ThemeTokens, props: ConnectionStatusProps): UseConnectionStatusResult;
4
+ //# sourceMappingURL=use-connection-status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-connection-status.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/connection-status/use-connection-status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAA2C,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAM5H,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,qBAAqB,GAAG,yBAAyB,CA6FhH"}