@objectifthunes/limestone-sdk 0.1.7 → 0.1.8

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 (249) hide show
  1. package/dist/animations/confetti/confetti.d.ts +4 -0
  2. package/dist/animations/confetti/confetti.d.ts.map +1 -0
  3. package/dist/animations/confetti/confetti.js +10 -0
  4. package/dist/animations/confetti/confetti.js.map +1 -0
  5. package/dist/animations/confetti/index.d.ts +4 -0
  6. package/dist/animations/confetti/index.d.ts.map +1 -0
  7. package/dist/animations/confetti/index.js +3 -0
  8. package/dist/animations/confetti/index.js.map +1 -0
  9. package/dist/animations/confetti/types.d.ts +24 -0
  10. package/dist/animations/confetti/types.d.ts.map +1 -0
  11. package/dist/animations/confetti/types.js +2 -0
  12. package/dist/animations/confetti/types.js.map +1 -0
  13. package/dist/animations/confetti/use-confetti.d.ts +4 -0
  14. package/dist/animations/confetti/use-confetti.d.ts.map +1 -0
  15. package/dist/animations/confetti/use-confetti.js +35 -0
  16. package/dist/animations/confetti/use-confetti.js.map +1 -0
  17. package/dist/animations/error-shake/error-shake.d.ts +4 -0
  18. package/dist/animations/error-shake/error-shake.d.ts.map +1 -0
  19. package/dist/animations/error-shake/error-shake.js +10 -0
  20. package/dist/animations/error-shake/error-shake.js.map +1 -0
  21. package/dist/animations/error-shake/index.d.ts +4 -0
  22. package/dist/animations/error-shake/index.d.ts.map +1 -0
  23. package/dist/animations/error-shake/index.js +3 -0
  24. package/dist/animations/error-shake/index.js.map +1 -0
  25. package/dist/animations/error-shake/types.d.ts +14 -0
  26. package/dist/animations/error-shake/types.d.ts.map +1 -0
  27. package/dist/animations/error-shake/types.js +2 -0
  28. package/dist/animations/error-shake/types.js.map +1 -0
  29. package/dist/animations/error-shake/use-error-shake.d.ts +4 -0
  30. package/dist/animations/error-shake/use-error-shake.d.ts.map +1 -0
  31. package/dist/animations/error-shake/use-error-shake.js +15 -0
  32. package/dist/animations/error-shake/use-error-shake.js.map +1 -0
  33. package/dist/animations/index.d.ts +4 -0
  34. package/dist/animations/index.d.ts.map +1 -1
  35. package/dist/animations/index.js +2 -0
  36. package/dist/animations/index.js.map +1 -1
  37. package/dist/components/data-display/activity-ring/activity-ring.d.ts +4 -0
  38. package/dist/components/data-display/activity-ring/activity-ring.d.ts.map +1 -0
  39. package/dist/components/data-display/activity-ring/activity-ring.js +10 -0
  40. package/dist/components/data-display/activity-ring/activity-ring.js.map +1 -0
  41. package/dist/components/data-display/activity-ring/index.d.ts +4 -0
  42. package/dist/components/data-display/activity-ring/index.d.ts.map +1 -0
  43. package/dist/components/data-display/activity-ring/index.js +3 -0
  44. package/dist/components/data-display/activity-ring/index.js.map +1 -0
  45. package/dist/components/data-display/activity-ring/types.d.ts +35 -0
  46. package/dist/components/data-display/activity-ring/types.d.ts.map +1 -0
  47. package/dist/components/data-display/activity-ring/types.js +2 -0
  48. package/dist/components/data-display/activity-ring/types.js.map +1 -0
  49. package/dist/components/data-display/activity-ring/use-activity-ring.d.ts +4 -0
  50. package/dist/components/data-display/activity-ring/use-activity-ring.d.ts.map +1 -0
  51. package/dist/components/data-display/activity-ring/use-activity-ring.js +61 -0
  52. package/dist/components/data-display/activity-ring/use-activity-ring.js.map +1 -0
  53. package/dist/components/data-display/chart/chart.d.ts +4 -0
  54. package/dist/components/data-display/chart/chart.d.ts.map +1 -0
  55. package/dist/components/data-display/chart/chart.js +10 -0
  56. package/dist/components/data-display/chart/chart.js.map +1 -0
  57. package/dist/components/data-display/chart/index.d.ts +4 -0
  58. package/dist/components/data-display/chart/index.d.ts.map +1 -0
  59. package/dist/components/data-display/chart/index.js +3 -0
  60. package/dist/components/data-display/chart/index.js.map +1 -0
  61. package/dist/components/data-display/chart/types.d.ts +86 -0
  62. package/dist/components/data-display/chart/types.d.ts.map +1 -0
  63. package/dist/components/data-display/chart/types.js +2 -0
  64. package/dist/components/data-display/chart/types.js.map +1 -0
  65. package/dist/components/data-display/chart/use-chart.d.ts +4 -0
  66. package/dist/components/data-display/chart/use-chart.d.ts.map +1 -0
  67. package/dist/components/data-display/chart/use-chart.js +172 -0
  68. package/dist/components/data-display/chart/use-chart.js.map +1 -0
  69. package/dist/components/data-display/countdown-timer/countdown-timer.d.ts +4 -0
  70. package/dist/components/data-display/countdown-timer/countdown-timer.d.ts.map +1 -0
  71. package/dist/components/data-display/countdown-timer/countdown-timer.js +10 -0
  72. package/dist/components/data-display/countdown-timer/countdown-timer.js.map +1 -0
  73. package/dist/components/data-display/countdown-timer/index.d.ts +4 -0
  74. package/dist/components/data-display/countdown-timer/index.d.ts.map +1 -0
  75. package/dist/components/data-display/countdown-timer/index.js +3 -0
  76. package/dist/components/data-display/countdown-timer/index.js.map +1 -0
  77. package/dist/components/data-display/countdown-timer/types.d.ts +37 -0
  78. package/dist/components/data-display/countdown-timer/types.d.ts.map +1 -0
  79. package/dist/components/data-display/countdown-timer/types.js +2 -0
  80. package/dist/components/data-display/countdown-timer/types.js.map +1 -0
  81. package/dist/components/data-display/countdown-timer/use-countdown-timer.d.ts +4 -0
  82. package/dist/components/data-display/countdown-timer/use-countdown-timer.d.ts.map +1 -0
  83. package/dist/components/data-display/countdown-timer/use-countdown-timer.js +81 -0
  84. package/dist/components/data-display/countdown-timer/use-countdown-timer.js.map +1 -0
  85. package/dist/components/data-display/credit-card-display/credit-card-display.d.ts +4 -0
  86. package/dist/components/data-display/credit-card-display/credit-card-display.d.ts.map +1 -0
  87. package/dist/components/data-display/credit-card-display/credit-card-display.js +10 -0
  88. package/dist/components/data-display/credit-card-display/credit-card-display.js.map +1 -0
  89. package/dist/components/data-display/credit-card-display/index.d.ts +4 -0
  90. package/dist/components/data-display/credit-card-display/index.d.ts.map +1 -0
  91. package/dist/components/data-display/credit-card-display/index.js +3 -0
  92. package/dist/components/data-display/credit-card-display/index.js.map +1 -0
  93. package/dist/components/data-display/credit-card-display/types.d.ts +41 -0
  94. package/dist/components/data-display/credit-card-display/types.d.ts.map +1 -0
  95. package/dist/components/data-display/credit-card-display/types.js +2 -0
  96. package/dist/components/data-display/credit-card-display/types.js.map +1 -0
  97. package/dist/components/data-display/credit-card-display/use-credit-card-display.d.ts +4 -0
  98. package/dist/components/data-display/credit-card-display/use-credit-card-display.d.ts.map +1 -0
  99. package/dist/components/data-display/credit-card-display/use-credit-card-display.js +72 -0
  100. package/dist/components/data-display/credit-card-display/use-credit-card-display.js.map +1 -0
  101. package/dist/components/data-display/data-table/data-table.d.ts +4 -0
  102. package/dist/components/data-display/data-table/data-table.d.ts.map +1 -0
  103. package/dist/components/data-display/data-table/data-table.js +10 -0
  104. package/dist/components/data-display/data-table/data-table.js.map +1 -0
  105. package/dist/components/data-display/data-table/index.d.ts +4 -0
  106. package/dist/components/data-display/data-table/index.d.ts.map +1 -0
  107. package/dist/components/data-display/data-table/index.js +3 -0
  108. package/dist/components/data-display/data-table/index.js.map +1 -0
  109. package/dist/components/data-display/data-table/types.d.ts +51 -0
  110. package/dist/components/data-display/data-table/types.d.ts.map +1 -0
  111. package/dist/components/data-display/data-table/types.js +2 -0
  112. package/dist/components/data-display/data-table/types.js.map +1 -0
  113. package/dist/components/data-display/data-table/use-data-table.d.ts +4 -0
  114. package/dist/components/data-display/data-table/use-data-table.d.ts.map +1 -0
  115. package/dist/components/data-display/data-table/use-data-table.js +75 -0
  116. package/dist/components/data-display/data-table/use-data-table.js.map +1 -0
  117. package/dist/components/data-display/index.d.ts +10 -0
  118. package/dist/components/data-display/index.d.ts.map +1 -1
  119. package/dist/components/data-display/index.js +5 -0
  120. package/dist/components/data-display/index.js.map +1 -1
  121. package/dist/components/index.d.ts +14 -4
  122. package/dist/components/index.d.ts.map +1 -1
  123. package/dist/components/index.js +7 -2
  124. package/dist/components/index.js.map +1 -1
  125. package/dist/components/inputs/calendar/calendar.d.ts +4 -0
  126. package/dist/components/inputs/calendar/calendar.d.ts.map +1 -0
  127. package/dist/components/inputs/calendar/calendar.js +10 -0
  128. package/dist/components/inputs/calendar/calendar.js.map +1 -0
  129. package/dist/components/inputs/calendar/index.d.ts +4 -0
  130. package/dist/components/inputs/calendar/index.d.ts.map +1 -0
  131. package/dist/components/inputs/calendar/index.js +3 -0
  132. package/dist/components/inputs/calendar/index.js.map +1 -0
  133. package/dist/components/inputs/calendar/types.d.ts +52 -0
  134. package/dist/components/inputs/calendar/types.d.ts.map +1 -0
  135. package/dist/components/inputs/calendar/types.js +2 -0
  136. package/dist/components/inputs/calendar/types.js.map +1 -0
  137. package/dist/components/inputs/calendar/use-calendar.d.ts +4 -0
  138. package/dist/components/inputs/calendar/use-calendar.d.ts.map +1 -0
  139. package/dist/components/inputs/calendar/use-calendar.js +192 -0
  140. package/dist/components/inputs/calendar/use-calendar.js.map +1 -0
  141. package/dist/components/inputs/index.d.ts +4 -0
  142. package/dist/components/inputs/index.d.ts.map +1 -1
  143. package/dist/components/inputs/index.js +2 -0
  144. package/dist/components/inputs/index.js.map +1 -1
  145. package/dist/components/inputs/signature-pad/index.d.ts +4 -0
  146. package/dist/components/inputs/signature-pad/index.d.ts.map +1 -0
  147. package/dist/components/inputs/signature-pad/index.js +3 -0
  148. package/dist/components/inputs/signature-pad/index.js.map +1 -0
  149. package/dist/components/inputs/signature-pad/signature-pad.d.ts +4 -0
  150. package/dist/components/inputs/signature-pad/signature-pad.d.ts.map +1 -0
  151. package/dist/components/inputs/signature-pad/signature-pad.js +10 -0
  152. package/dist/components/inputs/signature-pad/signature-pad.js.map +1 -0
  153. package/dist/components/inputs/signature-pad/types.d.ts +47 -0
  154. package/dist/components/inputs/signature-pad/types.d.ts.map +1 -0
  155. package/dist/components/inputs/signature-pad/types.js +2 -0
  156. package/dist/components/inputs/signature-pad/types.js.map +1 -0
  157. package/dist/components/inputs/signature-pad/use-signature-pad.d.ts +4 -0
  158. package/dist/components/inputs/signature-pad/use-signature-pad.d.ts.map +1 -0
  159. package/dist/components/inputs/signature-pad/use-signature-pad.js +60 -0
  160. package/dist/components/inputs/signature-pad/use-signature-pad.js.map +1 -0
  161. package/dist/components/interactive/drag-to-reorder/drag-to-reorder.d.ts +4 -0
  162. package/dist/components/interactive/drag-to-reorder/drag-to-reorder.d.ts.map +1 -0
  163. package/dist/components/interactive/drag-to-reorder/drag-to-reorder.js +10 -0
  164. package/dist/components/interactive/drag-to-reorder/drag-to-reorder.js.map +1 -0
  165. package/dist/components/interactive/drag-to-reorder/index.d.ts +4 -0
  166. package/dist/components/interactive/drag-to-reorder/index.d.ts.map +1 -0
  167. package/dist/components/interactive/drag-to-reorder/index.js +3 -0
  168. package/dist/components/interactive/drag-to-reorder/index.js.map +1 -0
  169. package/dist/components/interactive/drag-to-reorder/types.d.ts +24 -0
  170. package/dist/components/interactive/drag-to-reorder/types.d.ts.map +1 -0
  171. package/dist/components/interactive/drag-to-reorder/types.js +2 -0
  172. package/dist/components/interactive/drag-to-reorder/types.js.map +1 -0
  173. package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.d.ts +4 -0
  174. package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.d.ts.map +1 -0
  175. package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.js +44 -0
  176. package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.js.map +1 -0
  177. package/dist/components/interactive/index.d.ts +10 -0
  178. package/dist/components/interactive/index.d.ts.map +1 -1
  179. package/dist/components/interactive/index.js +5 -0
  180. package/dist/components/interactive/index.js.map +1 -1
  181. package/dist/components/interactive/page-view/index.d.ts +4 -0
  182. package/dist/components/interactive/page-view/index.d.ts.map +1 -0
  183. package/dist/components/interactive/page-view/index.js +3 -0
  184. package/dist/components/interactive/page-view/index.js.map +1 -0
  185. package/dist/components/interactive/page-view/page-view.d.ts +4 -0
  186. package/dist/components/interactive/page-view/page-view.d.ts.map +1 -0
  187. package/dist/components/interactive/page-view/page-view.js +10 -0
  188. package/dist/components/interactive/page-view/page-view.js.map +1 -0
  189. package/dist/components/interactive/page-view/types.d.ts +24 -0
  190. package/dist/components/interactive/page-view/types.d.ts.map +1 -0
  191. package/dist/components/interactive/page-view/types.js +2 -0
  192. package/dist/components/interactive/page-view/types.js.map +1 -0
  193. package/dist/components/interactive/page-view/use-page-view.d.ts +4 -0
  194. package/dist/components/interactive/page-view/use-page-view.d.ts.map +1 -0
  195. package/dist/components/interactive/page-view/use-page-view.js +45 -0
  196. package/dist/components/interactive/page-view/use-page-view.js.map +1 -0
  197. package/dist/components/interactive/parallax-header/index.d.ts +4 -0
  198. package/dist/components/interactive/parallax-header/index.d.ts.map +1 -0
  199. package/dist/components/interactive/parallax-header/index.js +3 -0
  200. package/dist/components/interactive/parallax-header/index.js.map +1 -0
  201. package/dist/components/interactive/parallax-header/parallax-header.d.ts +4 -0
  202. package/dist/components/interactive/parallax-header/parallax-header.d.ts.map +1 -0
  203. package/dist/components/interactive/parallax-header/parallax-header.js +10 -0
  204. package/dist/components/interactive/parallax-header/parallax-header.js.map +1 -0
  205. package/dist/components/interactive/parallax-header/types.d.ts +16 -0
  206. package/dist/components/interactive/parallax-header/types.d.ts.map +1 -0
  207. package/dist/components/interactive/parallax-header/types.js +2 -0
  208. package/dist/components/interactive/parallax-header/types.js.map +1 -0
  209. package/dist/components/interactive/parallax-header/use-parallax-header.d.ts +4 -0
  210. package/dist/components/interactive/parallax-header/use-parallax-header.d.ts.map +1 -0
  211. package/dist/components/interactive/parallax-header/use-parallax-header.js +24 -0
  212. package/dist/components/interactive/parallax-header/use-parallax-header.js.map +1 -0
  213. package/dist/components/interactive/pinch-to-zoom/index.d.ts +4 -0
  214. package/dist/components/interactive/pinch-to-zoom/index.d.ts.map +1 -0
  215. package/dist/components/interactive/pinch-to-zoom/index.js +3 -0
  216. package/dist/components/interactive/pinch-to-zoom/index.js.map +1 -0
  217. package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.d.ts +4 -0
  218. package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.d.ts.map +1 -0
  219. package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.js +10 -0
  220. package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.js.map +1 -0
  221. package/dist/components/interactive/pinch-to-zoom/types.d.ts +25 -0
  222. package/dist/components/interactive/pinch-to-zoom/types.d.ts.map +1 -0
  223. package/dist/components/interactive/pinch-to-zoom/types.js +2 -0
  224. package/dist/components/interactive/pinch-to-zoom/types.js.map +1 -0
  225. package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.d.ts +4 -0
  226. package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.d.ts.map +1 -0
  227. package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.js +38 -0
  228. package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.js.map +1 -0
  229. package/dist/components/interactive/pull-to-refresh/index.d.ts +4 -0
  230. package/dist/components/interactive/pull-to-refresh/index.d.ts.map +1 -0
  231. package/dist/components/interactive/pull-to-refresh/index.js +3 -0
  232. package/dist/components/interactive/pull-to-refresh/index.js.map +1 -0
  233. package/dist/components/interactive/pull-to-refresh/pull-to-refresh.d.ts +4 -0
  234. package/dist/components/interactive/pull-to-refresh/pull-to-refresh.d.ts.map +1 -0
  235. package/dist/components/interactive/pull-to-refresh/pull-to-refresh.js +10 -0
  236. package/dist/components/interactive/pull-to-refresh/pull-to-refresh.js.map +1 -0
  237. package/dist/components/interactive/pull-to-refresh/types.d.ts +21 -0
  238. package/dist/components/interactive/pull-to-refresh/types.d.ts.map +1 -0
  239. package/dist/components/interactive/pull-to-refresh/types.js +2 -0
  240. package/dist/components/interactive/pull-to-refresh/types.js.map +1 -0
  241. package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.d.ts +4 -0
  242. package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.d.ts.map +1 -0
  243. package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.js +28 -0
  244. package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.js.map +1 -0
  245. package/dist/index.d.ts +14 -4
  246. package/dist/index.d.ts.map +1 -1
  247. package/dist/index.js +7 -2
  248. package/dist/index.js.map +1 -1
  249. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { createElement } from 'react';
2
+ import type { ConfettiProps } from './types.js';
3
+ export declare function Confetti(props: ConfettiProps): ReturnType<typeof createElement>;
4
+ //# sourceMappingURL=confetti.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confetti.d.ts","sourceRoot":"","sources":["../../../src/animations/confetti/confetti.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAK/E"}
@@ -0,0 +1,10 @@
1
+ import { createElement } from 'react';
2
+ import { View } from 'react-native';
3
+ import { useTheme } from '../../theme/context.js';
4
+ import { useConfetti } from './use-confetti.js';
5
+ export function Confetti(props) {
6
+ const { tokens } = useTheme();
7
+ const { containerStyle } = useConfetti(tokens, props);
8
+ return createElement(View, { style: containerStyle });
9
+ }
10
+ //# sourceMappingURL=confetti.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confetti.js","sourceRoot":"","sources":["../../../src/animations/confetti/confetti.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,MAAM,UAAU,QAAQ,CAAC,KAAoB;IAC3C,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EAAE,cAAc,EAAE,GAAG,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEtD,OAAO,aAAa,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC;AACxD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { Confetti } from './confetti.js';
2
+ export { useConfetti } from './use-confetti.js';
3
+ export type { ConfettiProps, ConfettiParticle, UseConfettiResult } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/animations/confetti/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Confetti } from './confetti.js';
2
+ export { useConfetti } from './use-confetti.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/animations/confetti/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { ResolvedBoxStyle } from '../../components/use-component-style.js';
2
+ export interface ConfettiParticle {
3
+ id: string;
4
+ x: number;
5
+ y: number;
6
+ rotation: number;
7
+ color: string;
8
+ size: number;
9
+ }
10
+ export interface ConfettiProps {
11
+ trigger: boolean;
12
+ colors?: string[];
13
+ particleCount?: number;
14
+ duration?: number;
15
+ spread?: number;
16
+ }
17
+ export interface UseConfettiResult {
18
+ containerStyle: ResolvedBoxStyle;
19
+ isAnimating: boolean;
20
+ particles: ConfettiParticle[];
21
+ duration: number;
22
+ spread: number;
23
+ }
24
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/animations/confetti/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,gBAAgB,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/animations/confetti/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../theme/tokens.js';
2
+ import type { ConfettiProps, UseConfettiResult } from './types.js';
3
+ export declare function useConfetti(tokens: ThemeTokens, props: ConfettiProps): UseConfettiResult;
4
+ //# sourceMappingURL=use-confetti.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-confetti.d.ts","sourceRoot":"","sources":["../../../src/animations/confetti/use-confetti.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAoB,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGrF,wBAAgB,WAAW,CACzB,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,aAAa,GACnB,iBAAiB,CA0CnB"}
@@ -0,0 +1,35 @@
1
+ export function useConfetti(tokens, props) {
2
+ const { trigger, colors = [
3
+ tokens.colors.primary,
4
+ tokens.colors.accent,
5
+ '#22c55e',
6
+ '#eab308',
7
+ '#ef4444',
8
+ ], particleCount = 50, duration = 2000, spread = 60, } = props;
9
+ const containerStyle = {
10
+ position: 'absolute',
11
+ top: 0,
12
+ left: 0,
13
+ right: 0,
14
+ bottom: 0,
15
+ pointerEvents: 'none',
16
+ };
17
+ const particles = trigger
18
+ ? Array.from({ length: particleCount }, (_, i) => ({
19
+ id: `particle-${i}`,
20
+ x: 0.2 + (i / (particleCount - 1 || 1)) * 0.6,
21
+ y: 0.5,
22
+ rotation: (i * 137.5) % 360,
23
+ color: colors[i % colors.length],
24
+ size: 6 + (i % 7),
25
+ }))
26
+ : [];
27
+ return {
28
+ containerStyle,
29
+ isAnimating: trigger,
30
+ particles,
31
+ duration,
32
+ spread,
33
+ };
34
+ }
35
+ //# sourceMappingURL=use-confetti.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-confetti.js","sourceRoot":"","sources":["../../../src/animations/confetti/use-confetti.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,WAAW,CACzB,MAAmB,EACnB,KAAoB;IAEpB,MAAM,EACJ,OAAO,EACP,MAAM,GAAG;QACP,MAAM,CAAC,MAAM,CAAC,OAAO;QACrB,MAAM,CAAC,MAAM,CAAC,MAAM;QACpB,SAAS;QACT,SAAS;QACT,SAAS;KACV,EACD,aAAa,GAAG,EAAE,EAClB,QAAQ,GAAG,IAAI,EACf,MAAM,GAAG,EAAE,GACZ,GAAG,KAAK,CAAC;IAEV,MAAM,cAAc,GAAqB;QACvC,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,aAAa,EAAE,MAAM;KACF,CAAC;IAEtB,MAAM,SAAS,GAAuB,OAAO;QAC3C,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YAC/C,EAAE,EAAE,YAAY,CAAC,EAAE;YACnB,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,aAAa,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG;YAC7C,CAAC,EAAE,GAAG;YACN,QAAQ,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,GAAG;YAC3B,KAAK,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAE;YACjC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;SAClB,CAAC,CAAC;QACL,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;QACL,cAAc;QACd,WAAW,EAAE,OAAO;QACpB,SAAS;QACT,QAAQ;QACR,MAAM;KACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { createElement } from 'react';
2
+ import type { ErrorShakeProps } from './types.js';
3
+ export declare function ErrorShake(props: ErrorShakeProps): ReturnType<typeof createElement>;
4
+ //# sourceMappingURL=error-shake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-shake.d.ts","sourceRoot":"","sources":["../../../src/animations/error-shake/error-shake.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAKnF"}
@@ -0,0 +1,10 @@
1
+ import { createElement } from 'react';
2
+ import { View } from 'react-native';
3
+ import { useTheme } from '../../theme/context.js';
4
+ import { useErrorShake } from './use-error-shake.js';
5
+ export function ErrorShake(props) {
6
+ const { tokens } = useTheme();
7
+ const { shakeStyle } = useErrorShake(tokens, props);
8
+ return createElement(View, { style: shakeStyle });
9
+ }
10
+ //# sourceMappingURL=error-shake.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-shake.js","sourceRoot":"","sources":["../../../src/animations/error-shake/error-shake.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,MAAM,UAAU,UAAU,CAAC,KAAsB;IAC/C,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEpD,OAAO,aAAa,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { ErrorShake } from './error-shake.js';
2
+ export { useErrorShake } from './use-error-shake.js';
3
+ export type { ErrorShakeProps, UseErrorShakeResult } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/animations/error-shake/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ErrorShake } from './error-shake.js';
2
+ export { useErrorShake } from './use-error-shake.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/animations/error-shake/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { ResolvedBoxStyle } from '../../components/use-component-style.js';
2
+ export interface ErrorShakeProps {
3
+ trigger: boolean;
4
+ intensity?: number;
5
+ oscillations?: number;
6
+ speed?: number;
7
+ }
8
+ export interface UseErrorShakeResult {
9
+ shakeStyle: ResolvedBoxStyle;
10
+ isShaking: boolean;
11
+ totalDuration: number;
12
+ keyframes: number[];
13
+ }
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/animations/error-shake/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/animations/error-shake/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../theme/tokens.js';
2
+ import type { ErrorShakeProps, UseErrorShakeResult } from './types.js';
3
+ export declare function useErrorShake(_tokens: ThemeTokens, props: ErrorShakeProps): UseErrorShakeResult;
4
+ //# sourceMappingURL=use-error-shake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-error-shake.d.ts","sourceRoot":"","sources":["../../../src/animations/error-shake/use-error-shake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGvE,wBAAgB,aAAa,CAC3B,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,eAAe,GACrB,mBAAmB,CAqBrB"}
@@ -0,0 +1,15 @@
1
+ export function useErrorShake(_tokens, props) {
2
+ const { trigger, intensity = 8, oscillations = 3, speed = 50, } = props;
3
+ const keyframes = [0, intensity, -intensity, intensity / 2, -intensity / 2, 0];
4
+ const totalDuration = oscillations * 2 * speed;
5
+ const shakeStyle = {
6
+ transform: [{ translateX: 0 }],
7
+ };
8
+ return {
9
+ shakeStyle,
10
+ isShaking: trigger,
11
+ totalDuration,
12
+ keyframes,
13
+ };
14
+ }
15
+ //# sourceMappingURL=use-error-shake.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-error-shake.js","sourceRoot":"","sources":["../../../src/animations/error-shake/use-error-shake.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,aAAa,CAC3B,OAAoB,EACpB,KAAsB;IAEtB,MAAM,EACJ,OAAO,EACP,SAAS,GAAG,CAAC,EACb,YAAY,GAAG,CAAC,EAChB,KAAK,GAAG,EAAE,GACX,GAAG,KAAK,CAAC;IAEV,MAAM,SAAS,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,GAAG,CAAC,EAAE,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/E,MAAM,aAAa,GAAG,YAAY,GAAG,CAAC,GAAG,KAAK,CAAC;IAE/C,MAAM,UAAU,GAAqB;QACnC,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;KACX,CAAC;IAEtB,OAAO;QACL,UAAU;QACV,SAAS,EAAE,OAAO;QAClB,aAAa;QACb,SAAS;KACV,CAAC;AACJ,CAAC"}
@@ -2,4 +2,8 @@ export { FadeIn, SlideUp, ScalePress, SpringBounce, Stagger } from './primitives
2
2
  export type { FadeInProps, SlideUpProps, ScalePressProps, SpringBounceProps, StaggerProps } from './primitives.js';
3
3
  export { Shimmer, useShimmer } from './shimmer/index.js';
4
4
  export type { ShimmerProps, UseShimmerResult } from './shimmer/index.js';
5
+ export { Confetti, useConfetti } from './confetti/index.js';
6
+ export type { ConfettiProps, ConfettiParticle, UseConfettiResult } from './confetti/index.js';
7
+ export { ErrorShake, useErrorShake } from './error-shake/index.js';
8
+ export type { ErrorShakeProps, UseErrorShakeResult } from './error-shake/index.js';
5
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/animations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrF,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEnH,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACzD,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/animations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrF,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEnH,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACzD,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE9F,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACnE,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,3 +1,5 @@
1
1
  export { FadeIn, SlideUp, ScalePress, SpringBounce, Stagger } from './primitives.js';
2
2
  export { Shimmer, useShimmer } from './shimmer/index.js';
3
+ export { Confetti, useConfetti } from './confetti/index.js';
4
+ export { ErrorShake, useErrorShake } from './error-shake/index.js';
3
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/animations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAGrF,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/animations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAGrF,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { createElement } from 'react';
2
+ import type { ActivityRingProps } from './types.js';
3
+ export declare function ActivityRing(props: ActivityRingProps): ReturnType<typeof createElement>;
4
+ //# sourceMappingURL=activity-ring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-ring.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/activity-ring/activity-ring.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAKvF"}
@@ -0,0 +1,10 @@
1
+ import { createElement } from 'react';
2
+ import { View } from 'react-native';
3
+ import { useTheme } from '../../../theme/context.js';
4
+ import { useActivityRing } from './use-activity-ring.js';
5
+ export function ActivityRing(props) {
6
+ const { tokens } = useTheme();
7
+ const { containerStyle } = useActivityRing(tokens, props);
8
+ return createElement(View, { style: containerStyle, testID: props.testID });
9
+ }
10
+ //# sourceMappingURL=activity-ring.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-ring.js","sourceRoot":"","sources":["../../../../src/components/data-display/activity-ring/activity-ring.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EAAE,cAAc,EAAE,GAAG,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAE1D,OAAO,aAAa,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;AAC9E,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { ActivityRing } from './activity-ring.js';
2
+ export { useActivityRing } from './use-activity-ring.js';
3
+ export type { ActivityRingProps, ActivityRingData, RingGeometry, UseActivityRingResult } 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/activity-ring/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ActivityRing } from './activity-ring.js';
2
+ export { useActivityRing } from './use-activity-ring.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/data-display/activity-ring/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { ResolvedBoxStyle } from '../../use-component-style.js';
2
+ export interface ActivityRingData {
3
+ value: number;
4
+ max: number;
5
+ color: string;
6
+ label?: string;
7
+ }
8
+ export interface ActivityRingProps {
9
+ rings: ActivityRingData[];
10
+ size?: number;
11
+ strokeWidth?: number;
12
+ gap?: number;
13
+ showLabels?: boolean;
14
+ testID?: string;
15
+ }
16
+ export interface RingGeometry {
17
+ radius: number;
18
+ circumference: number;
19
+ dashOffset: number;
20
+ strokeColor: string;
21
+ trackColor: string;
22
+ cx: number;
23
+ cy: number;
24
+ }
25
+ export interface UseActivityRingResult {
26
+ containerStyle: ResolvedBoxStyle;
27
+ getRingStyle: (index: number) => RingGeometry;
28
+ getLabelStyle: (index: number) => {
29
+ fontSize: number;
30
+ color: string;
31
+ fontFamily: string;
32
+ };
33
+ centerStyle: ResolvedBoxStyle;
34
+ }
35
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/activity-ring/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,gBAAgB,CAAC;IACjC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,YAAY,CAAC;IAC9C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1F,WAAW,EAAE,gBAAgB,CAAC;CAC/B"}
@@ -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/activity-ring/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { ActivityRingProps, UseActivityRingResult } from './types.js';
3
+ export declare function useActivityRing(tokens: ThemeTokens, props: ActivityRingProps): UseActivityRingResult;
4
+ //# sourceMappingURL=use-activity-ring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-activity-ring.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/activity-ring/use-activity-ring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAgB,MAAM,YAAY,CAAC;AAGzF,wBAAgB,eAAe,CAC7B,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,iBAAiB,GACvB,qBAAqB,CAwEvB"}
@@ -0,0 +1,61 @@
1
+ export function useActivityRing(tokens, props) {
2
+ const { rings, size = 120, strokeWidth = 12, gap = 4, } = props;
3
+ const cx = size / 2;
4
+ const cy = size / 2;
5
+ const containerStyle = {
6
+ width: size,
7
+ height: size,
8
+ position: 'relative',
9
+ };
10
+ const centerStyle = {
11
+ position: 'absolute',
12
+ top: 0,
13
+ left: 0,
14
+ right: 0,
15
+ bottom: 0,
16
+ alignItems: 'center',
17
+ justifyContent: 'center',
18
+ };
19
+ const getRingStyle = (index) => {
20
+ const ring = rings[index];
21
+ if (!ring) {
22
+ return {
23
+ radius: 0,
24
+ circumference: 0,
25
+ dashOffset: 0,
26
+ strokeColor: tokens.colors.primary,
27
+ trackColor: tokens.colors.primary,
28
+ cx,
29
+ cy,
30
+ };
31
+ }
32
+ const radius = size / 2 - strokeWidth / 2 - index * (strokeWidth + gap);
33
+ const circumference = 2 * Math.PI * radius;
34
+ const progress = Math.min(1, Math.max(0, ring.value / ring.max));
35
+ const dashOffset = circumference - progress * circumference;
36
+ return {
37
+ radius,
38
+ circumference,
39
+ dashOffset,
40
+ strokeColor: ring.color,
41
+ trackColor: ring.color,
42
+ cx,
43
+ cy,
44
+ };
45
+ };
46
+ const getLabelStyle = (index) => {
47
+ const ring = rings[index];
48
+ return {
49
+ fontSize: tokens.typography.sizes.xs,
50
+ color: ring?.color ?? tokens.colors.mutedForeground,
51
+ fontFamily: tokens.typography.fontFamily.body,
52
+ };
53
+ };
54
+ return {
55
+ containerStyle,
56
+ getRingStyle,
57
+ getLabelStyle,
58
+ centerStyle,
59
+ };
60
+ }
61
+ //# sourceMappingURL=use-activity-ring.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-activity-ring.js","sourceRoot":"","sources":["../../../../src/components/data-display/activity-ring/use-activity-ring.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,eAAe,CAC7B,MAAmB,EACnB,KAAwB;IAExB,MAAM,EACJ,KAAK,EACL,IAAI,GAAG,GAAG,EACV,WAAW,GAAG,EAAE,EAChB,GAAG,GAAG,CAAC,GACR,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,GAAG,IAAI,GAAG,CAAC,CAAC;IACpB,MAAM,EAAE,GAAG,IAAI,GAAG,CAAC,CAAC;IAEpB,MAAM,cAAc,GAAqB;QACvC,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,UAAU;KACrB,CAAC;IAEF,MAAM,WAAW,GAAqB;QACpC,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB,CAAC;IAEF,MAAM,YAAY,GAAG,CAAC,KAAa,EAAgB,EAAE;QACnD,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO;gBACL,MAAM,EAAE,CAAC;gBACT,aAAa,EAAE,CAAC;gBAChB,UAAU,EAAE,CAAC;gBACb,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO;gBAClC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO;gBACjC,EAAE;gBACF,EAAE;aACH,CAAC;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,WAAW,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC;QACxE,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC;QAC3C,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACjE,MAAM,UAAU,GAAG,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;QAE5D,OAAO;YACL,MAAM;YACN,aAAa;YACb,UAAU;YACV,WAAW,EAAE,IAAI,CAAC,KAAK;YACvB,UAAU,EAAE,IAAI,CAAC,KAAK;YACtB,EAAE;YACF,EAAE;SACH,CAAC;IACJ,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,EAAE;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1B,OAAO;YACL,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YACpC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,eAAe;YACnD,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI;SAC9C,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO;QACL,cAAc;QACd,YAAY;QACZ,aAAa;QACb,WAAW;KACZ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { createElement } from 'react';
2
+ import type { ChartProps } from './types.js';
3
+ export declare function Chart(props: ChartProps): ReturnType<typeof createElement>;
4
+ //# sourceMappingURL=chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/chart/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAKzE"}
@@ -0,0 +1,10 @@
1
+ import { createElement } from 'react';
2
+ import { View } from 'react-native';
3
+ import { useTheme } from '../../../theme/context.js';
4
+ import { useChart } from './use-chart.js';
5
+ export function Chart(props) {
6
+ const { tokens } = useTheme();
7
+ const { containerStyle } = useChart(tokens, props);
8
+ return createElement(View, { style: containerStyle });
9
+ }
10
+ //# sourceMappingURL=chart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.js","sourceRoot":"","sources":["../../../../src/components/data-display/chart/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,MAAM,UAAU,KAAK,CAAC,KAAiB;IACrC,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EAAE,cAAc,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEnD,OAAO,aAAa,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC;AACxD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { Chart } from './chart.js';
2
+ export { useChart } from './use-chart.js';
3
+ export type { ChartProps, ChartType, ChartDataPoint, ChartPadding, GridLine, AxisLabel, ChartBounds, LineChartPoint, BarRect, PieSlice, UseChartResult, } 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/chart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,YAAY,EACV,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EACnD,QAAQ,EAAE,SAAS,EAAE,WAAW,EAChC,cAAc,EAAE,OAAO,EAAE,QAAQ,EACjC,cAAc,GACf,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Chart } from './chart.js';
2
+ export { useChart } from './use-chart.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/data-display/chart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,86 @@
1
+ import type { ResolvedBoxStyle } from '../../use-component-style.js';
2
+ export type ChartType = 'line' | 'bar' | 'pie';
3
+ export interface ChartDataPoint {
4
+ label: string;
5
+ value: number;
6
+ color?: string;
7
+ }
8
+ export interface ChartPadding {
9
+ top: number;
10
+ right: number;
11
+ bottom: number;
12
+ left: number;
13
+ }
14
+ export interface ChartProps {
15
+ type: ChartType;
16
+ data: ChartDataPoint[];
17
+ width: number;
18
+ height: number;
19
+ showGrid?: boolean;
20
+ showLabels?: boolean;
21
+ padding?: ChartPadding;
22
+ animated?: boolean;
23
+ }
24
+ export interface GridLine {
25
+ x1: number;
26
+ y1: number;
27
+ x2: number;
28
+ y2: number;
29
+ }
30
+ export interface AxisLabel {
31
+ x: number;
32
+ y: number;
33
+ label: string;
34
+ }
35
+ export interface ChartBounds {
36
+ minX: number;
37
+ maxX: number;
38
+ minY: number;
39
+ maxY: number;
40
+ }
41
+ export interface LineChartPoint {
42
+ x: number;
43
+ y: number;
44
+ value: number;
45
+ }
46
+ export interface BarRect {
47
+ x: number;
48
+ y: number;
49
+ width: number;
50
+ height: number;
51
+ value: number;
52
+ color: string;
53
+ }
54
+ export interface PieSlice {
55
+ startAngle: number;
56
+ endAngle: number;
57
+ color: string;
58
+ value: number;
59
+ percentage: number;
60
+ labelPosition: {
61
+ x: number;
62
+ y: number;
63
+ };
64
+ }
65
+ export interface UseChartResult {
66
+ points: LineChartPoint[] | undefined;
67
+ pathData: string | undefined;
68
+ bars: BarRect[] | undefined;
69
+ slices: PieSlice[] | undefined;
70
+ gridLines: GridLine[];
71
+ xLabels: AxisLabel[];
72
+ yLabels: AxisLabel[];
73
+ bounds: ChartBounds;
74
+ containerStyle: ResolvedBoxStyle;
75
+ gridLineStyle: {
76
+ stroke: string;
77
+ strokeWidth: number;
78
+ strokeDasharray: string;
79
+ };
80
+ labelStyle: {
81
+ fontSize: number;
82
+ color: string;
83
+ };
84
+ chartAreaStyle: ResolvedBoxStyle;
85
+ }
86
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/chart/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAE/C,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,OAAO;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACzC;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC;IACrC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,IAAI,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IAC/B,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,MAAM,EAAE,WAAW,CAAC;IACpB,cAAc,EAAE,gBAAgB,CAAC;IACjC,aAAa,EAAE;QACb,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,cAAc,EAAE,gBAAgB,CAAC;CAClC"}
@@ -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/chart/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { ChartProps, UseChartResult } from './types.js';
3
+ export declare function useChart(tokens: ThemeTokens, props: ChartProps): UseChartResult;
4
+ //# sourceMappingURL=use-chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-chart.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/chart/use-chart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EAOf,MAAM,YAAY,CAAC;AAUpB,wBAAgB,QAAQ,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,GAAG,cAAc,CAkM/E"}