@objectifthunes/limestone-sdk 0.1.7 → 0.1.9

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 (334) hide show
  1. package/README.md +50 -18
  2. package/dist/animations/confetti/confetti.d.ts +4 -0
  3. package/dist/animations/confetti/confetti.d.ts.map +1 -0
  4. package/dist/animations/confetti/confetti.js +10 -0
  5. package/dist/animations/confetti/confetti.js.map +1 -0
  6. package/dist/animations/confetti/index.d.ts +4 -0
  7. package/dist/animations/confetti/index.d.ts.map +1 -0
  8. package/dist/animations/confetti/index.js +3 -0
  9. package/dist/animations/confetti/index.js.map +1 -0
  10. package/dist/animations/confetti/types.d.ts +24 -0
  11. package/dist/animations/confetti/types.d.ts.map +1 -0
  12. package/dist/animations/confetti/types.js +2 -0
  13. package/dist/animations/confetti/types.js.map +1 -0
  14. package/dist/animations/confetti/use-confetti.d.ts +4 -0
  15. package/dist/animations/confetti/use-confetti.d.ts.map +1 -0
  16. package/dist/animations/confetti/use-confetti.js +35 -0
  17. package/dist/animations/confetti/use-confetti.js.map +1 -0
  18. package/dist/animations/error-shake/error-shake.d.ts +4 -0
  19. package/dist/animations/error-shake/error-shake.d.ts.map +1 -0
  20. package/dist/animations/error-shake/error-shake.js +10 -0
  21. package/dist/animations/error-shake/error-shake.js.map +1 -0
  22. package/dist/animations/error-shake/index.d.ts +4 -0
  23. package/dist/animations/error-shake/index.d.ts.map +1 -0
  24. package/dist/animations/error-shake/index.js +3 -0
  25. package/dist/animations/error-shake/index.js.map +1 -0
  26. package/dist/animations/error-shake/types.d.ts +14 -0
  27. package/dist/animations/error-shake/types.d.ts.map +1 -0
  28. package/dist/animations/error-shake/types.js +2 -0
  29. package/dist/animations/error-shake/types.js.map +1 -0
  30. package/dist/animations/error-shake/use-error-shake.d.ts +4 -0
  31. package/dist/animations/error-shake/use-error-shake.d.ts.map +1 -0
  32. package/dist/animations/error-shake/use-error-shake.js +15 -0
  33. package/dist/animations/error-shake/use-error-shake.js.map +1 -0
  34. package/dist/animations/index.d.ts +4 -0
  35. package/dist/animations/index.d.ts.map +1 -1
  36. package/dist/animations/index.js +2 -0
  37. package/dist/animations/index.js.map +1 -1
  38. package/dist/components/content/block-quote/block-quote.d.ts +4 -0
  39. package/dist/components/content/block-quote/block-quote.d.ts.map +1 -0
  40. package/dist/components/content/block-quote/block-quote.js +12 -0
  41. package/dist/components/content/block-quote/block-quote.js.map +1 -0
  42. package/dist/components/content/block-quote/index.d.ts +4 -0
  43. package/dist/components/content/block-quote/index.d.ts.map +1 -0
  44. package/dist/components/content/block-quote/index.js +4 -0
  45. package/dist/components/content/block-quote/index.js.map +1 -0
  46. package/dist/components/content/block-quote/types.d.ts +26 -0
  47. package/dist/components/content/block-quote/types.d.ts.map +1 -0
  48. package/dist/components/content/block-quote/types.js +2 -0
  49. package/dist/components/content/block-quote/types.js.map +1 -0
  50. package/dist/components/content/block-quote/use-block-quote.d.ts +4 -0
  51. package/dist/components/content/block-quote/use-block-quote.d.ts.map +1 -0
  52. package/dist/components/content/block-quote/use-block-quote.js +59 -0
  53. package/dist/components/content/block-quote/use-block-quote.js.map +1 -0
  54. package/dist/components/content/callout/callout.d.ts +4 -0
  55. package/dist/components/content/callout/callout.d.ts.map +1 -0
  56. package/dist/components/content/callout/callout.js +12 -0
  57. package/dist/components/content/callout/callout.js.map +1 -0
  58. package/dist/components/content/callout/index.d.ts +4 -0
  59. package/dist/components/content/callout/index.d.ts.map +1 -0
  60. package/dist/components/content/callout/index.js +4 -0
  61. package/dist/components/content/callout/index.js.map +1 -0
  62. package/dist/components/content/callout/types.d.ts +33 -0
  63. package/dist/components/content/callout/types.d.ts.map +1 -0
  64. package/dist/components/content/callout/types.js +2 -0
  65. package/dist/components/content/callout/types.js.map +1 -0
  66. package/dist/components/content/callout/use-callout.d.ts +4 -0
  67. package/dist/components/content/callout/use-callout.d.ts.map +1 -0
  68. package/dist/components/content/callout/use-callout.js +81 -0
  69. package/dist/components/content/callout/use-callout.js.map +1 -0
  70. package/dist/components/content/code-block/code-block.d.ts +4 -0
  71. package/dist/components/content/code-block/code-block.d.ts.map +1 -0
  72. package/dist/components/content/code-block/code-block.js +12 -0
  73. package/dist/components/content/code-block/code-block.js.map +1 -0
  74. package/dist/components/content/code-block/index.d.ts +4 -0
  75. package/dist/components/content/code-block/index.d.ts.map +1 -0
  76. package/dist/components/content/code-block/index.js +4 -0
  77. package/dist/components/content/code-block/index.js.map +1 -0
  78. package/dist/components/content/code-block/types.d.ts +35 -0
  79. package/dist/components/content/code-block/types.d.ts.map +1 -0
  80. package/dist/components/content/code-block/types.js +2 -0
  81. package/dist/components/content/code-block/types.js.map +1 -0
  82. package/dist/components/content/code-block/use-code-block.d.ts +4 -0
  83. package/dist/components/content/code-block/use-code-block.d.ts.map +1 -0
  84. package/dist/components/content/code-block/use-code-block.js +81 -0
  85. package/dist/components/content/code-block/use-code-block.js.map +1 -0
  86. package/dist/components/content/index.d.ts +11 -0
  87. package/dist/components/content/index.d.ts.map +1 -0
  88. package/dist/components/content/index.js +7 -0
  89. package/dist/components/content/index.js.map +1 -0
  90. package/dist/components/content/markdown-renderer/index.d.ts +4 -0
  91. package/dist/components/content/markdown-renderer/index.d.ts.map +1 -0
  92. package/dist/components/content/markdown-renderer/index.js +4 -0
  93. package/dist/components/content/markdown-renderer/index.js.map +1 -0
  94. package/dist/components/content/markdown-renderer/markdown-renderer.d.ts +4 -0
  95. package/dist/components/content/markdown-renderer/markdown-renderer.d.ts.map +1 -0
  96. package/dist/components/content/markdown-renderer/markdown-renderer.js +12 -0
  97. package/dist/components/content/markdown-renderer/markdown-renderer.js.map +1 -0
  98. package/dist/components/content/markdown-renderer/types.d.ts +40 -0
  99. package/dist/components/content/markdown-renderer/types.d.ts.map +1 -0
  100. package/dist/components/content/markdown-renderer/types.js +2 -0
  101. package/dist/components/content/markdown-renderer/types.js.map +1 -0
  102. package/dist/components/content/markdown-renderer/use-markdown-renderer.d.ts +4 -0
  103. package/dist/components/content/markdown-renderer/use-markdown-renderer.d.ts.map +1 -0
  104. package/dist/components/content/markdown-renderer/use-markdown-renderer.js +177 -0
  105. package/dist/components/content/markdown-renderer/use-markdown-renderer.js.map +1 -0
  106. package/dist/components/content/rich-text-editor/index.d.ts +4 -0
  107. package/dist/components/content/rich-text-editor/index.d.ts.map +1 -0
  108. package/dist/components/content/rich-text-editor/index.js +4 -0
  109. package/dist/components/content/rich-text-editor/index.js.map +1 -0
  110. package/dist/components/content/rich-text-editor/rich-text-editor.d.ts +4 -0
  111. package/dist/components/content/rich-text-editor/rich-text-editor.d.ts.map +1 -0
  112. package/dist/components/content/rich-text-editor/rich-text-editor.js +12 -0
  113. package/dist/components/content/rich-text-editor/rich-text-editor.js.map +1 -0
  114. package/dist/components/content/rich-text-editor/types.d.ts +37 -0
  115. package/dist/components/content/rich-text-editor/types.d.ts.map +1 -0
  116. package/dist/components/content/rich-text-editor/types.js +2 -0
  117. package/dist/components/content/rich-text-editor/types.js.map +1 -0
  118. package/dist/components/content/rich-text-editor/use-rich-text-editor.d.ts +4 -0
  119. package/dist/components/content/rich-text-editor/use-rich-text-editor.d.ts.map +1 -0
  120. package/dist/components/content/rich-text-editor/use-rich-text-editor.js +78 -0
  121. package/dist/components/content/rich-text-editor/use-rich-text-editor.js.map +1 -0
  122. package/dist/components/data-display/activity-ring/activity-ring.d.ts +4 -0
  123. package/dist/components/data-display/activity-ring/activity-ring.d.ts.map +1 -0
  124. package/dist/components/data-display/activity-ring/activity-ring.js +10 -0
  125. package/dist/components/data-display/activity-ring/activity-ring.js.map +1 -0
  126. package/dist/components/data-display/activity-ring/index.d.ts +4 -0
  127. package/dist/components/data-display/activity-ring/index.d.ts.map +1 -0
  128. package/dist/components/data-display/activity-ring/index.js +3 -0
  129. package/dist/components/data-display/activity-ring/index.js.map +1 -0
  130. package/dist/components/data-display/activity-ring/types.d.ts +35 -0
  131. package/dist/components/data-display/activity-ring/types.d.ts.map +1 -0
  132. package/dist/components/data-display/activity-ring/types.js +2 -0
  133. package/dist/components/data-display/activity-ring/types.js.map +1 -0
  134. package/dist/components/data-display/activity-ring/use-activity-ring.d.ts +4 -0
  135. package/dist/components/data-display/activity-ring/use-activity-ring.d.ts.map +1 -0
  136. package/dist/components/data-display/activity-ring/use-activity-ring.js +61 -0
  137. package/dist/components/data-display/activity-ring/use-activity-ring.js.map +1 -0
  138. package/dist/components/data-display/chart/chart.d.ts +4 -0
  139. package/dist/components/data-display/chart/chart.d.ts.map +1 -0
  140. package/dist/components/data-display/chart/chart.js +10 -0
  141. package/dist/components/data-display/chart/chart.js.map +1 -0
  142. package/dist/components/data-display/chart/index.d.ts +4 -0
  143. package/dist/components/data-display/chart/index.d.ts.map +1 -0
  144. package/dist/components/data-display/chart/index.js +3 -0
  145. package/dist/components/data-display/chart/index.js.map +1 -0
  146. package/dist/components/data-display/chart/types.d.ts +86 -0
  147. package/dist/components/data-display/chart/types.d.ts.map +1 -0
  148. package/dist/components/data-display/chart/types.js +2 -0
  149. package/dist/components/data-display/chart/types.js.map +1 -0
  150. package/dist/components/data-display/chart/use-chart.d.ts +4 -0
  151. package/dist/components/data-display/chart/use-chart.d.ts.map +1 -0
  152. package/dist/components/data-display/chart/use-chart.js +172 -0
  153. package/dist/components/data-display/chart/use-chart.js.map +1 -0
  154. package/dist/components/data-display/countdown-timer/countdown-timer.d.ts +4 -0
  155. package/dist/components/data-display/countdown-timer/countdown-timer.d.ts.map +1 -0
  156. package/dist/components/data-display/countdown-timer/countdown-timer.js +10 -0
  157. package/dist/components/data-display/countdown-timer/countdown-timer.js.map +1 -0
  158. package/dist/components/data-display/countdown-timer/index.d.ts +4 -0
  159. package/dist/components/data-display/countdown-timer/index.d.ts.map +1 -0
  160. package/dist/components/data-display/countdown-timer/index.js +3 -0
  161. package/dist/components/data-display/countdown-timer/index.js.map +1 -0
  162. package/dist/components/data-display/countdown-timer/types.d.ts +37 -0
  163. package/dist/components/data-display/countdown-timer/types.d.ts.map +1 -0
  164. package/dist/components/data-display/countdown-timer/types.js +2 -0
  165. package/dist/components/data-display/countdown-timer/types.js.map +1 -0
  166. package/dist/components/data-display/countdown-timer/use-countdown-timer.d.ts +4 -0
  167. package/dist/components/data-display/countdown-timer/use-countdown-timer.d.ts.map +1 -0
  168. package/dist/components/data-display/countdown-timer/use-countdown-timer.js +81 -0
  169. package/dist/components/data-display/countdown-timer/use-countdown-timer.js.map +1 -0
  170. package/dist/components/data-display/credit-card-display/credit-card-display.d.ts +4 -0
  171. package/dist/components/data-display/credit-card-display/credit-card-display.d.ts.map +1 -0
  172. package/dist/components/data-display/credit-card-display/credit-card-display.js +10 -0
  173. package/dist/components/data-display/credit-card-display/credit-card-display.js.map +1 -0
  174. package/dist/components/data-display/credit-card-display/index.d.ts +4 -0
  175. package/dist/components/data-display/credit-card-display/index.d.ts.map +1 -0
  176. package/dist/components/data-display/credit-card-display/index.js +3 -0
  177. package/dist/components/data-display/credit-card-display/index.js.map +1 -0
  178. package/dist/components/data-display/credit-card-display/types.d.ts +41 -0
  179. package/dist/components/data-display/credit-card-display/types.d.ts.map +1 -0
  180. package/dist/components/data-display/credit-card-display/types.js +2 -0
  181. package/dist/components/data-display/credit-card-display/types.js.map +1 -0
  182. package/dist/components/data-display/credit-card-display/use-credit-card-display.d.ts +4 -0
  183. package/dist/components/data-display/credit-card-display/use-credit-card-display.d.ts.map +1 -0
  184. package/dist/components/data-display/credit-card-display/use-credit-card-display.js +72 -0
  185. package/dist/components/data-display/credit-card-display/use-credit-card-display.js.map +1 -0
  186. package/dist/components/data-display/data-table/data-table.d.ts +4 -0
  187. package/dist/components/data-display/data-table/data-table.d.ts.map +1 -0
  188. package/dist/components/data-display/data-table/data-table.js +10 -0
  189. package/dist/components/data-display/data-table/data-table.js.map +1 -0
  190. package/dist/components/data-display/data-table/index.d.ts +4 -0
  191. package/dist/components/data-display/data-table/index.d.ts.map +1 -0
  192. package/dist/components/data-display/data-table/index.js +3 -0
  193. package/dist/components/data-display/data-table/index.js.map +1 -0
  194. package/dist/components/data-display/data-table/types.d.ts +51 -0
  195. package/dist/components/data-display/data-table/types.d.ts.map +1 -0
  196. package/dist/components/data-display/data-table/types.js +2 -0
  197. package/dist/components/data-display/data-table/types.js.map +1 -0
  198. package/dist/components/data-display/data-table/use-data-table.d.ts +4 -0
  199. package/dist/components/data-display/data-table/use-data-table.d.ts.map +1 -0
  200. package/dist/components/data-display/data-table/use-data-table.js +75 -0
  201. package/dist/components/data-display/data-table/use-data-table.js.map +1 -0
  202. package/dist/components/data-display/index.d.ts +10 -0
  203. package/dist/components/data-display/index.d.ts.map +1 -1
  204. package/dist/components/data-display/index.js +5 -0
  205. package/dist/components/data-display/index.js.map +1 -1
  206. package/dist/components/index.d.ts +15 -4
  207. package/dist/components/index.d.ts.map +1 -1
  208. package/dist/components/index.js +9 -2
  209. package/dist/components/index.js.map +1 -1
  210. package/dist/components/inputs/calendar/calendar.d.ts +4 -0
  211. package/dist/components/inputs/calendar/calendar.d.ts.map +1 -0
  212. package/dist/components/inputs/calendar/calendar.js +10 -0
  213. package/dist/components/inputs/calendar/calendar.js.map +1 -0
  214. package/dist/components/inputs/calendar/index.d.ts +4 -0
  215. package/dist/components/inputs/calendar/index.d.ts.map +1 -0
  216. package/dist/components/inputs/calendar/index.js +3 -0
  217. package/dist/components/inputs/calendar/index.js.map +1 -0
  218. package/dist/components/inputs/calendar/types.d.ts +52 -0
  219. package/dist/components/inputs/calendar/types.d.ts.map +1 -0
  220. package/dist/components/inputs/calendar/types.js +2 -0
  221. package/dist/components/inputs/calendar/types.js.map +1 -0
  222. package/dist/components/inputs/calendar/use-calendar.d.ts +4 -0
  223. package/dist/components/inputs/calendar/use-calendar.d.ts.map +1 -0
  224. package/dist/components/inputs/calendar/use-calendar.js +192 -0
  225. package/dist/components/inputs/calendar/use-calendar.js.map +1 -0
  226. package/dist/components/inputs/index.d.ts +4 -0
  227. package/dist/components/inputs/index.d.ts.map +1 -1
  228. package/dist/components/inputs/index.js +2 -0
  229. package/dist/components/inputs/index.js.map +1 -1
  230. package/dist/components/inputs/signature-pad/index.d.ts +4 -0
  231. package/dist/components/inputs/signature-pad/index.d.ts.map +1 -0
  232. package/dist/components/inputs/signature-pad/index.js +3 -0
  233. package/dist/components/inputs/signature-pad/index.js.map +1 -0
  234. package/dist/components/inputs/signature-pad/signature-pad.d.ts +4 -0
  235. package/dist/components/inputs/signature-pad/signature-pad.d.ts.map +1 -0
  236. package/dist/components/inputs/signature-pad/signature-pad.js +10 -0
  237. package/dist/components/inputs/signature-pad/signature-pad.js.map +1 -0
  238. package/dist/components/inputs/signature-pad/types.d.ts +47 -0
  239. package/dist/components/inputs/signature-pad/types.d.ts.map +1 -0
  240. package/dist/components/inputs/signature-pad/types.js +2 -0
  241. package/dist/components/inputs/signature-pad/types.js.map +1 -0
  242. package/dist/components/inputs/signature-pad/use-signature-pad.d.ts +4 -0
  243. package/dist/components/inputs/signature-pad/use-signature-pad.d.ts.map +1 -0
  244. package/dist/components/inputs/signature-pad/use-signature-pad.js +60 -0
  245. package/dist/components/inputs/signature-pad/use-signature-pad.js.map +1 -0
  246. package/dist/components/interactive/drag-to-reorder/drag-to-reorder.d.ts +4 -0
  247. package/dist/components/interactive/drag-to-reorder/drag-to-reorder.d.ts.map +1 -0
  248. package/dist/components/interactive/drag-to-reorder/drag-to-reorder.js +10 -0
  249. package/dist/components/interactive/drag-to-reorder/drag-to-reorder.js.map +1 -0
  250. package/dist/components/interactive/drag-to-reorder/index.d.ts +4 -0
  251. package/dist/components/interactive/drag-to-reorder/index.d.ts.map +1 -0
  252. package/dist/components/interactive/drag-to-reorder/index.js +3 -0
  253. package/dist/components/interactive/drag-to-reorder/index.js.map +1 -0
  254. package/dist/components/interactive/drag-to-reorder/types.d.ts +24 -0
  255. package/dist/components/interactive/drag-to-reorder/types.d.ts.map +1 -0
  256. package/dist/components/interactive/drag-to-reorder/types.js +2 -0
  257. package/dist/components/interactive/drag-to-reorder/types.js.map +1 -0
  258. package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.d.ts +4 -0
  259. package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.d.ts.map +1 -0
  260. package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.js +44 -0
  261. package/dist/components/interactive/drag-to-reorder/use-drag-to-reorder.js.map +1 -0
  262. package/dist/components/interactive/index.d.ts +10 -0
  263. package/dist/components/interactive/index.d.ts.map +1 -1
  264. package/dist/components/interactive/index.js +5 -0
  265. package/dist/components/interactive/index.js.map +1 -1
  266. package/dist/components/interactive/page-view/index.d.ts +4 -0
  267. package/dist/components/interactive/page-view/index.d.ts.map +1 -0
  268. package/dist/components/interactive/page-view/index.js +3 -0
  269. package/dist/components/interactive/page-view/index.js.map +1 -0
  270. package/dist/components/interactive/page-view/page-view.d.ts +4 -0
  271. package/dist/components/interactive/page-view/page-view.d.ts.map +1 -0
  272. package/dist/components/interactive/page-view/page-view.js +10 -0
  273. package/dist/components/interactive/page-view/page-view.js.map +1 -0
  274. package/dist/components/interactive/page-view/types.d.ts +24 -0
  275. package/dist/components/interactive/page-view/types.d.ts.map +1 -0
  276. package/dist/components/interactive/page-view/types.js +2 -0
  277. package/dist/components/interactive/page-view/types.js.map +1 -0
  278. package/dist/components/interactive/page-view/use-page-view.d.ts +4 -0
  279. package/dist/components/interactive/page-view/use-page-view.d.ts.map +1 -0
  280. package/dist/components/interactive/page-view/use-page-view.js +45 -0
  281. package/dist/components/interactive/page-view/use-page-view.js.map +1 -0
  282. package/dist/components/interactive/parallax-header/index.d.ts +4 -0
  283. package/dist/components/interactive/parallax-header/index.d.ts.map +1 -0
  284. package/dist/components/interactive/parallax-header/index.js +3 -0
  285. package/dist/components/interactive/parallax-header/index.js.map +1 -0
  286. package/dist/components/interactive/parallax-header/parallax-header.d.ts +4 -0
  287. package/dist/components/interactive/parallax-header/parallax-header.d.ts.map +1 -0
  288. package/dist/components/interactive/parallax-header/parallax-header.js +10 -0
  289. package/dist/components/interactive/parallax-header/parallax-header.js.map +1 -0
  290. package/dist/components/interactive/parallax-header/types.d.ts +16 -0
  291. package/dist/components/interactive/parallax-header/types.d.ts.map +1 -0
  292. package/dist/components/interactive/parallax-header/types.js +2 -0
  293. package/dist/components/interactive/parallax-header/types.js.map +1 -0
  294. package/dist/components/interactive/parallax-header/use-parallax-header.d.ts +4 -0
  295. package/dist/components/interactive/parallax-header/use-parallax-header.d.ts.map +1 -0
  296. package/dist/components/interactive/parallax-header/use-parallax-header.js +24 -0
  297. package/dist/components/interactive/parallax-header/use-parallax-header.js.map +1 -0
  298. package/dist/components/interactive/pinch-to-zoom/index.d.ts +4 -0
  299. package/dist/components/interactive/pinch-to-zoom/index.d.ts.map +1 -0
  300. package/dist/components/interactive/pinch-to-zoom/index.js +3 -0
  301. package/dist/components/interactive/pinch-to-zoom/index.js.map +1 -0
  302. package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.d.ts +4 -0
  303. package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.d.ts.map +1 -0
  304. package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.js +10 -0
  305. package/dist/components/interactive/pinch-to-zoom/pinch-to-zoom.js.map +1 -0
  306. package/dist/components/interactive/pinch-to-zoom/types.d.ts +25 -0
  307. package/dist/components/interactive/pinch-to-zoom/types.d.ts.map +1 -0
  308. package/dist/components/interactive/pinch-to-zoom/types.js +2 -0
  309. package/dist/components/interactive/pinch-to-zoom/types.js.map +1 -0
  310. package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.d.ts +4 -0
  311. package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.d.ts.map +1 -0
  312. package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.js +38 -0
  313. package/dist/components/interactive/pinch-to-zoom/use-pinch-to-zoom.js.map +1 -0
  314. package/dist/components/interactive/pull-to-refresh/index.d.ts +4 -0
  315. package/dist/components/interactive/pull-to-refresh/index.d.ts.map +1 -0
  316. package/dist/components/interactive/pull-to-refresh/index.js +3 -0
  317. package/dist/components/interactive/pull-to-refresh/index.js.map +1 -0
  318. package/dist/components/interactive/pull-to-refresh/pull-to-refresh.d.ts +4 -0
  319. package/dist/components/interactive/pull-to-refresh/pull-to-refresh.d.ts.map +1 -0
  320. package/dist/components/interactive/pull-to-refresh/pull-to-refresh.js +10 -0
  321. package/dist/components/interactive/pull-to-refresh/pull-to-refresh.js.map +1 -0
  322. package/dist/components/interactive/pull-to-refresh/types.d.ts +21 -0
  323. package/dist/components/interactive/pull-to-refresh/types.d.ts.map +1 -0
  324. package/dist/components/interactive/pull-to-refresh/types.js +2 -0
  325. package/dist/components/interactive/pull-to-refresh/types.js.map +1 -0
  326. package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.d.ts +4 -0
  327. package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.d.ts.map +1 -0
  328. package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.js +28 -0
  329. package/dist/components/interactive/pull-to-refresh/use-pull-to-refresh.js.map +1 -0
  330. package/dist/index.d.ts +16 -4
  331. package/dist/index.d.ts.map +1 -1
  332. package/dist/index.js +9 -2
  333. package/dist/index.js.map +1 -1
  334. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/content/callout/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { CalloutProps, UseCalloutResult } from './types.js';
3
+ export declare function useCallout(tokens: ThemeTokens, props: CalloutProps): UseCalloutResult;
4
+ //# sourceMappingURL=use-callout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-callout.d.ts","sourceRoot":"","sources":["../../../../src/components/content/callout/use-callout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAe,MAAM,YAAY,CAAC;AAoB9E,wBAAgB,UAAU,CACxB,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,YAAY,GAClB,gBAAgB,CAkFlB"}
@@ -0,0 +1,81 @@
1
+ function getBorderColor(type, tokens) {
2
+ switch (type) {
3
+ case 'info': return tokens.colors.accent;
4
+ case 'warning': return '#eab308';
5
+ case 'error': return tokens.colors.destructive;
6
+ case 'tip': return '#22c55e';
7
+ }
8
+ }
9
+ function getBackgroundColor(type, tokens) {
10
+ const base = getBorderColor(type, tokens);
11
+ return `${base}1a`;
12
+ }
13
+ function getTextColor(type, tokens) {
14
+ return getBorderColor(type, tokens);
15
+ }
16
+ export function useCallout(tokens, props) {
17
+ const { type, title, icon, dismissible = false, accessibilityLabel, } = props;
18
+ const borderColor = getBorderColor(type, tokens);
19
+ const backgroundColor = getBackgroundColor(type, tokens);
20
+ const textColor = getTextColor(type, tokens);
21
+ const showTitle = !!title;
22
+ const showIcon = !!icon;
23
+ const showDismiss = dismissible;
24
+ const containerStyle = {
25
+ padding: tokens.spacing.md,
26
+ borderRadius: tokens.radii.md,
27
+ borderLeftWidth: 4,
28
+ backgroundColor,
29
+ borderLeftColor: borderColor,
30
+ };
31
+ const headerRowStyle = {
32
+ flexDirection: 'row',
33
+ alignItems: 'center',
34
+ justifyContent: 'space-between',
35
+ marginBottom: title ? tokens.spacing.xs : 0,
36
+ };
37
+ const titleRowStyle = {
38
+ flexDirection: 'row',
39
+ alignItems: 'center',
40
+ gap: tokens.spacing.xs,
41
+ flex: 1,
42
+ };
43
+ const titleStyle = {
44
+ fontSize: tokens.typography.sizes.sm,
45
+ fontWeight: tokens.typography.weights.bold,
46
+ color: textColor,
47
+ };
48
+ const messageStyle = {
49
+ fontSize: tokens.typography.sizes.sm,
50
+ color: tokens.colors.foreground,
51
+ lineHeight: tokens.typography.sizes.sm * tokens.typography.lineHeights.normal,
52
+ };
53
+ const iconColor = textColor;
54
+ const iconSize = 16;
55
+ const dismissButtonStyle = {
56
+ padding: tokens.spacing.xs,
57
+ borderRadius: tokens.radii.sm,
58
+ };
59
+ const dismissIconColor = tokens.colors.mutedForeground;
60
+ const isError = type === 'error';
61
+ return {
62
+ containerStyle,
63
+ headerRowStyle,
64
+ titleRowStyle,
65
+ titleStyle,
66
+ messageStyle,
67
+ iconColor,
68
+ iconSize,
69
+ dismissButtonStyle,
70
+ dismissIconColor,
71
+ showTitle,
72
+ showIcon,
73
+ showDismiss,
74
+ accessibilityProps: {
75
+ accessibilityLabel: accessibilityLabel ?? `${type} callout`,
76
+ accessibilityRole: isError ? 'alert' : 'note',
77
+ accessibilityLiveRegion: isError ? 'assertive' : 'polite',
78
+ },
79
+ };
80
+ }
81
+ //# sourceMappingURL=use-callout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-callout.js","sourceRoot":"","sources":["../../../../src/components/content/callout/use-callout.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ import { View, type ViewProps } from 'react-native';
2
+ import type { CodeBlockProps } from './types.js';
3
+ export declare const CodeBlock: import("react").ForwardRefExoticComponent<CodeBlockProps & Omit<ViewProps, keyof CodeBlockProps> & import("react").RefAttributes<View>>;
4
+ //# sourceMappingURL=code-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code-block/code-block.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,SAAS,yIA4BpB,CAAC"}
@@ -0,0 +1,12 @@
1
+ // src/components/content/code-block/code-block.tsx
2
+ import { forwardRef, createElement } from 'react';
3
+ import { View } from 'react-native';
4
+ import { useTheme } from '../../../theme/context.js';
5
+ import { useCodeBlock } from './use-code-block.js';
6
+ export const CodeBlock = forwardRef(function CodeBlock(props, ref) {
7
+ const { tokens } = useTheme();
8
+ const { code: _code, language: _language, showLineNumbers: _showLineNumbers, showCopyButton: _showCopyButton, showLanguageBadge: _showLanguageBadge, maxHeight: _maxHeight, 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, ...rest } = props;
9
+ const { containerStyle, accessibilityProps } = useCodeBlock(tokens, props);
10
+ return createElement(View, { ref, style: containerStyle, ...accessibilityProps, testID, ...rest });
11
+ });
12
+ //# sourceMappingURL=code-block.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-block.js","sourceRoot":"","sources":["../../../../src/components/content/code-block/code-block.tsx"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,SAAS,CACpD,KAA6D,EAC7D,GAAc;IAEd,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EACJ,IAAI,EAAE,KAAK,EACX,QAAQ,EAAE,SAAS,EACnB,eAAe,EAAE,gBAAgB,EACjC,cAAc,EAAE,eAAe,EAC/B,iBAAiB,EAAE,kBAAkB,EACrC,SAAS,EAAE,UAAU,EACrB,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EACpE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAC3D,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAC9D,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAC/F,kBAAkB,EAAE,GAAG,EACvB,MAAM,EACN,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAE3E,OAAO,aAAa,CAClB,IAAW,EACX,EAAE,GAAG,EAAE,KAAK,EAAE,cAAqB,EAAE,GAAG,kBAAkB,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,CAC9E,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { CodeBlock } from './code-block.js';
2
+ export { useCodeBlock } from './use-code-block.js';
3
+ export type { CodeBlockProps, UseCodeBlockResult } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ // src/components/content/code-block/index.ts
2
+ export { CodeBlock } from './code-block.js';
3
+ export { useCodeBlock } from './use-code-block.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/content/code-block/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { ViewStyle, TextStyle } from 'react-native';
2
+ import type { BoxStyleProps } from '../../types.js';
3
+ export interface CodeBlockProps extends BoxStyleProps {
4
+ code: string;
5
+ language?: string;
6
+ showLineNumbers?: boolean;
7
+ showCopyButton?: boolean;
8
+ showLanguageBadge?: boolean;
9
+ maxHeight?: number;
10
+ accessibilityLabel?: string;
11
+ testID?: string;
12
+ }
13
+ export interface UseCodeBlockResult {
14
+ containerStyle: ViewStyle;
15
+ headerStyle: ViewStyle;
16
+ languageBadgeStyle: TextStyle;
17
+ copyButtonStyle: ViewStyle;
18
+ copyButtonIconColor: string;
19
+ codeContainerStyle: ViewStyle;
20
+ lineNumberStyle: TextStyle;
21
+ codeTextStyle: TextStyle;
22
+ lineCount: number;
23
+ getLineStyle: (index: number) => ViewStyle;
24
+ showHeader: boolean;
25
+ showLineNumbers: boolean;
26
+ showCopyButton: boolean;
27
+ showLanguageBadge: boolean;
28
+ resolvedLanguage: string;
29
+ accessibilityProps: {
30
+ accessibilityLabel: string;
31
+ accessibilityRole: 'none';
32
+ accessibilityHint: string;
33
+ };
34
+ }
35
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code-block/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,SAAS,CAAC;IAC1B,WAAW,EAAE,SAAS,CAAC;IACvB,kBAAkB,EAAE,SAAS,CAAC;IAC9B,eAAe,EAAE,SAAS,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,SAAS,CAAC;IAC9B,eAAe,EAAE,SAAS,CAAC;IAC3B,aAAa,EAAE,SAAS,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAC3C,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,iBAAiB,EAAE,MAAM,CAAC;KAC3B,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/content/code-block/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { CodeBlockProps, UseCodeBlockResult } from './types.js';
3
+ export declare function useCodeBlock(tokens: ThemeTokens, props: CodeBlockProps): UseCodeBlockResult;
4
+ //# sourceMappingURL=use-code-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-code-block.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code-block/use-code-block.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErE,wBAAgB,YAAY,CAC1B,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,cAAc,GACpB,kBAAkB,CAoGpB"}
@@ -0,0 +1,81 @@
1
+ export function useCodeBlock(tokens, props) {
2
+ const { code, language, showLineNumbers = false, showCopyButton = true, showLanguageBadge = true, maxHeight, accessibilityLabel, } = props;
3
+ const resolvedLanguage = language?.toLowerCase() ?? '';
4
+ const showLanguageBadgeResolved = showLanguageBadge && !!language;
5
+ const showHeader = showCopyButton || showLanguageBadgeResolved;
6
+ // Compute line count; strip trailing newline to avoid phantom line
7
+ const trimmed = code.endsWith('\n') ? code.trimEnd() : code;
8
+ const lineCount = trimmed.split('\n').length;
9
+ const containerStyle = {
10
+ backgroundColor: tokens.colors.card,
11
+ borderRadius: tokens.radii.md,
12
+ overflow: 'hidden',
13
+ };
14
+ const headerStyle = {
15
+ flexDirection: 'row',
16
+ alignItems: 'center',
17
+ justifyContent: 'space-between',
18
+ paddingHorizontal: tokens.spacing.sm,
19
+ paddingVertical: tokens.spacing.xs,
20
+ borderBottomWidth: 1,
21
+ borderBottomColor: tokens.colors.border,
22
+ };
23
+ const languageBadgeStyle = {
24
+ fontFamily: tokens.typography.fontFamily.mono,
25
+ fontSize: tokens.typography.sizes.xs,
26
+ color: tokens.colors.mutedForeground,
27
+ textTransform: 'uppercase',
28
+ letterSpacing: 1,
29
+ };
30
+ const copyButtonStyle = {
31
+ padding: tokens.spacing.xs,
32
+ borderRadius: tokens.radii.sm,
33
+ };
34
+ const copyButtonIconColor = tokens.colors.mutedForeground;
35
+ const codeContainerStyle = {
36
+ padding: tokens.spacing.md,
37
+ overflow: 'scroll',
38
+ ...(maxHeight !== undefined ? { maxHeight } : {}),
39
+ };
40
+ const lineNumberStyle = {
41
+ fontFamily: tokens.typography.fontFamily.mono,
42
+ fontSize: tokens.typography.sizes.xs,
43
+ color: tokens.colors.mutedForeground,
44
+ width: 32,
45
+ textAlign: 'right',
46
+ paddingRight: tokens.spacing.sm,
47
+ lineHeight: tokens.typography.sizes.sm * tokens.typography.lineHeights.relaxed,
48
+ };
49
+ const codeTextStyle = {
50
+ fontFamily: tokens.typography.fontFamily.mono,
51
+ fontSize: tokens.typography.sizes.sm,
52
+ color: tokens.colors.foreground,
53
+ lineHeight: tokens.typography.sizes.sm * tokens.typography.lineHeights.relaxed,
54
+ };
55
+ const getLineStyle = (_index) => ({
56
+ flexDirection: 'row',
57
+ });
58
+ return {
59
+ containerStyle,
60
+ headerStyle,
61
+ languageBadgeStyle,
62
+ copyButtonStyle,
63
+ copyButtonIconColor,
64
+ codeContainerStyle,
65
+ lineNumberStyle,
66
+ codeTextStyle,
67
+ lineCount,
68
+ getLineStyle,
69
+ showHeader,
70
+ showLineNumbers,
71
+ showCopyButton,
72
+ showLanguageBadge: showLanguageBadgeResolved,
73
+ resolvedLanguage,
74
+ accessibilityProps: {
75
+ accessibilityLabel: accessibilityLabel ?? `${resolvedLanguage} code block`,
76
+ accessibilityRole: 'none',
77
+ accessibilityHint: 'Code block. Double-tap copy button to copy code.',
78
+ },
79
+ };
80
+ }
81
+ //# sourceMappingURL=use-code-block.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-code-block.js","sourceRoot":"","sources":["../../../../src/components/content/code-block/use-code-block.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,11 @@
1
+ export { MarkdownRenderer, useMarkdownRenderer, } from './markdown-renderer/index.js';
2
+ export type { MarkdownRendererProps, UseMarkdownRendererResult } from './markdown-renderer/index.js';
3
+ export { CodeBlock, useCodeBlock, } from './code-block/index.js';
4
+ export type { CodeBlockProps, UseCodeBlockResult } from './code-block/index.js';
5
+ export { RichTextEditor, useRichTextEditor, } from './rich-text-editor/index.js';
6
+ export type { RichTextEditorProps, UseRichTextEditorResult, ToolbarAction } from './rich-text-editor/index.js';
7
+ export { BlockQuote, useBlockQuote, } from './block-quote/index.js';
8
+ export type { BlockQuoteProps, UseBlockQuoteResult } from './block-quote/index.js';
9
+ export { Callout, useCallout, } from './callout/index.js';
10
+ export type { CalloutProps, UseCalloutResult, CalloutType } from './callout/index.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/content/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAAE,mBAAmB,GACtC,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAErG,OAAO,EACL,SAAS,EAAE,YAAY,GACxB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,OAAO,EACL,cAAc,EAAE,iBAAiB,GAClC,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE/G,OAAO,EACL,UAAU,EAAE,aAAa,GAC1B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEnF,OAAO,EACL,OAAO,EAAE,UAAU,GACpB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ // src/components/content/index.ts
2
+ export { MarkdownRenderer, useMarkdownRenderer, } from './markdown-renderer/index.js';
3
+ export { CodeBlock, useCodeBlock, } from './code-block/index.js';
4
+ export { RichTextEditor, useRichTextEditor, } from './rich-text-editor/index.js';
5
+ export { BlockQuote, useBlockQuote, } from './block-quote/index.js';
6
+ export { Callout, useCallout, } from './callout/index.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/content/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,EACL,gBAAgB,EAAE,mBAAmB,GACtC,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EACL,SAAS,EAAE,YAAY,GACxB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,cAAc,EAAE,iBAAiB,GAClC,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EACL,UAAU,EAAE,aAAa,GAC1B,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,OAAO,EAAE,UAAU,GACpB,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { MarkdownRenderer } from './markdown-renderer.js';
2
+ export { useMarkdownRenderer } from './use-markdown-renderer.js';
3
+ export type { MarkdownRendererProps, UseMarkdownRendererResult } from './types.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/content/markdown-renderer/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ // src/components/content/markdown-renderer/index.ts
2
+ export { MarkdownRenderer } from './markdown-renderer.js';
3
+ export { useMarkdownRenderer } from './use-markdown-renderer.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/content/markdown-renderer/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { View, type ViewProps } from 'react-native';
2
+ import type { MarkdownRendererProps } from './types.js';
3
+ export declare const MarkdownRenderer: import("react").ForwardRefExoticComponent<MarkdownRendererProps & Omit<ViewProps, keyof MarkdownRendererProps> & import("react").RefAttributes<View>>;
4
+ //# sourceMappingURL=markdown-renderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-renderer.d.ts","sourceRoot":"","sources":["../../../../src/components/content/markdown-renderer/markdown-renderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,eAAO,MAAM,gBAAgB,uJA0B3B,CAAC"}
@@ -0,0 +1,12 @@
1
+ // src/components/content/markdown-renderer/markdown-renderer.tsx
2
+ import { forwardRef, createElement } from 'react';
3
+ import { View } from 'react-native';
4
+ import { useTheme } from '../../../theme/context.js';
5
+ import { useMarkdownRenderer } from './use-markdown-renderer.js';
6
+ export const MarkdownRenderer = forwardRef(function MarkdownRenderer(props, ref) {
7
+ const { tokens } = useTheme();
8
+ const { content: _content, onLinkPress: _onLinkPress, baseTextSize: _baseTextSize, showLineNumbers: _showLineNumbers, 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, ...rest } = props;
9
+ const { containerStyle, accessibilityProps } = useMarkdownRenderer(tokens, props);
10
+ return createElement(View, { ref, style: containerStyle, ...accessibilityProps, testID, ...rest });
11
+ });
12
+ //# sourceMappingURL=markdown-renderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-renderer.js","sourceRoot":"","sources":["../../../../src/components/content/markdown-renderer/markdown-renderer.tsx"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC,SAAS,gBAAgB,CAClE,KAA2E,EAC3E,GAAc;IAEd,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC9B,MAAM,EACJ,OAAO,EAAE,QAAQ,EACjB,WAAW,EAAE,YAAY,EACzB,YAAY,EAAE,aAAa,EAC3B,eAAe,EAAE,gBAAgB,EACjC,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EACpE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAC3D,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAC9D,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAC/F,kBAAkB,EAAE,GAAG,EACvB,MAAM,EACN,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAElF,OAAO,aAAa,CAClB,IAAW,EACX,EAAE,GAAG,EAAE,KAAK,EAAE,cAAqB,EAAE,GAAG,kBAAkB,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,CAC9E,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { ViewStyle, TextStyle } from 'react-native';
2
+ import type { BoxStyleProps } from '../../types.js';
3
+ export interface MarkdownRendererProps extends BoxStyleProps {
4
+ content: string;
5
+ onLinkPress?: (url: string) => void;
6
+ baseTextSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
+ showLineNumbers?: boolean;
8
+ accessibilityLabel?: string;
9
+ testID?: string;
10
+ }
11
+ export interface UseMarkdownRendererResult {
12
+ containerStyle: ViewStyle;
13
+ h1Style: TextStyle;
14
+ h2Style: TextStyle;
15
+ h3Style: TextStyle;
16
+ h4Style: TextStyle;
17
+ h5Style: TextStyle;
18
+ h6Style: TextStyle;
19
+ paragraphStyle: TextStyle;
20
+ boldStyle: TextStyle;
21
+ italicStyle: TextStyle;
22
+ linkStyle: TextStyle;
23
+ listItemStyle: ViewStyle;
24
+ bulletStyle: TextStyle;
25
+ orderedNumberStyle: TextStyle;
26
+ inlineCodeStyle: TextStyle;
27
+ codeBlockStyle: ViewStyle;
28
+ codeBlockTextStyle: TextStyle;
29
+ blockquoteStyle: ViewStyle;
30
+ blockquoteTextStyle: TextStyle;
31
+ hrStyle: ViewStyle;
32
+ imageContainerStyle: ViewStyle;
33
+ resolvedBaseSize: number;
34
+ showLineNumbers: boolean;
35
+ accessibilityProps: {
36
+ accessibilityLabel: string;
37
+ accessibilityRole: 'text';
38
+ };
39
+ }
40
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/content/markdown-renderer/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,SAAS,CAAC;IAC1B,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,cAAc,EAAE,SAAS,CAAC;IAC1B,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,SAAS,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;IACvB,kBAAkB,EAAE,SAAS,CAAC;IAC9B,eAAe,EAAE,SAAS,CAAC;IAC3B,cAAc,EAAE,SAAS,CAAC;IAC1B,kBAAkB,EAAE,SAAS,CAAC;IAC9B,eAAe,EAAE,SAAS,CAAC;IAC3B,mBAAmB,EAAE,SAAS,CAAC;IAC/B,OAAO,EAAE,SAAS,CAAC;IACnB,mBAAmB,EAAE,SAAS,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,iBAAiB,EAAE,MAAM,CAAC;KAC3B,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/content/markdown-renderer/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ThemeTokens } from '../../../theme/tokens.js';
2
+ import type { MarkdownRendererProps, UseMarkdownRendererResult } from './types.js';
3
+ export declare function useMarkdownRenderer(tokens: ThemeTokens, props: MarkdownRendererProps): UseMarkdownRendererResult;
4
+ //# sourceMappingURL=use-markdown-renderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-markdown-renderer.d.ts","sourceRoot":"","sources":["../../../../src/components/content/markdown-renderer/use-markdown-renderer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAUnF,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,qBAAqB,GAC3B,yBAAyB,CAmM3B"}
@@ -0,0 +1,177 @@
1
+ const BASE_SIZE_MAP = {
2
+ xs: 'xs',
3
+ sm: 'sm',
4
+ md: 'md',
5
+ lg: 'lg',
6
+ xl: 'xl',
7
+ };
8
+ export function useMarkdownRenderer(tokens, props) {
9
+ const { baseTextSize = 'md', showLineNumbers = false, accessibilityLabel, } = props;
10
+ const sizeKey = BASE_SIZE_MAP[baseTextSize] ?? 'md';
11
+ const resolvedBaseSize = tokens.typography.sizes[sizeKey];
12
+ const containerStyle = {
13
+ flex: 1,
14
+ };
15
+ const h1Style = {
16
+ fontFamily: tokens.typography.fontFamily.display,
17
+ fontSize: tokens.typography.sizes['3xl'],
18
+ fontWeight: tokens.typography.weights.bold,
19
+ color: tokens.colors.foreground,
20
+ lineHeight: tokens.typography.sizes['3xl'] * tokens.typography.lineHeights.tight,
21
+ marginBottom: tokens.spacing.md,
22
+ marginTop: tokens.spacing.lg,
23
+ };
24
+ const h2Style = {
25
+ fontFamily: tokens.typography.fontFamily.display,
26
+ fontSize: tokens.typography.sizes['2xl'],
27
+ fontWeight: tokens.typography.weights.bold,
28
+ color: tokens.colors.foreground,
29
+ lineHeight: tokens.typography.sizes['2xl'] * tokens.typography.lineHeights.tight,
30
+ marginBottom: tokens.spacing.sm,
31
+ marginTop: tokens.spacing.md,
32
+ };
33
+ const h3Style = {
34
+ fontFamily: tokens.typography.fontFamily.display,
35
+ fontSize: tokens.typography.sizes.xl,
36
+ fontWeight: tokens.typography.weights.bold,
37
+ color: tokens.colors.foreground,
38
+ lineHeight: tokens.typography.sizes.xl * tokens.typography.lineHeights.tight,
39
+ marginBottom: tokens.spacing.sm,
40
+ marginTop: tokens.spacing.md,
41
+ };
42
+ const h4Style = {
43
+ fontFamily: tokens.typography.fontFamily.display,
44
+ fontSize: tokens.typography.sizes.lg,
45
+ fontWeight: tokens.typography.weights.bold,
46
+ color: tokens.colors.foreground,
47
+ lineHeight: tokens.typography.sizes.lg * tokens.typography.lineHeights.tight,
48
+ marginBottom: tokens.spacing.xs,
49
+ marginTop: tokens.spacing.sm,
50
+ };
51
+ const h5Style = {
52
+ fontFamily: tokens.typography.fontFamily.display,
53
+ fontSize: tokens.typography.sizes.md,
54
+ fontWeight: tokens.typography.weights.bold,
55
+ color: tokens.colors.foreground,
56
+ lineHeight: tokens.typography.sizes.md * tokens.typography.lineHeights.tight,
57
+ marginBottom: tokens.spacing.xs,
58
+ marginTop: tokens.spacing.sm,
59
+ };
60
+ const h6Style = {
61
+ fontFamily: tokens.typography.fontFamily.display,
62
+ fontSize: tokens.typography.sizes.sm,
63
+ fontWeight: tokens.typography.weights.bold,
64
+ color: tokens.colors.mutedForeground,
65
+ lineHeight: tokens.typography.sizes.sm * tokens.typography.lineHeights.tight,
66
+ marginBottom: tokens.spacing.xs,
67
+ marginTop: tokens.spacing.sm,
68
+ };
69
+ const paragraphStyle = {
70
+ fontSize: resolvedBaseSize,
71
+ color: tokens.colors.foreground,
72
+ lineHeight: resolvedBaseSize * tokens.typography.lineHeights.normal,
73
+ marginBottom: tokens.spacing.sm,
74
+ };
75
+ const boldStyle = {
76
+ fontWeight: tokens.typography.weights.bold,
77
+ };
78
+ const italicStyle = {
79
+ fontStyle: 'italic',
80
+ };
81
+ const linkStyle = {
82
+ color: tokens.colors.primary,
83
+ textDecorationLine: 'underline',
84
+ };
85
+ const listItemStyle = {
86
+ flexDirection: 'row',
87
+ marginBottom: tokens.spacing.xs,
88
+ paddingLeft: tokens.spacing.md,
89
+ };
90
+ const bulletStyle = {
91
+ fontSize: resolvedBaseSize,
92
+ color: tokens.colors.mutedForeground,
93
+ marginRight: tokens.spacing.sm,
94
+ lineHeight: resolvedBaseSize * 1.5,
95
+ };
96
+ const orderedNumberStyle = {
97
+ fontSize: resolvedBaseSize,
98
+ color: tokens.colors.mutedForeground,
99
+ fontWeight: tokens.typography.weights.medium,
100
+ marginRight: tokens.spacing.sm,
101
+ minWidth: tokens.spacing.md,
102
+ };
103
+ const inlineCodeStyle = {
104
+ fontFamily: tokens.typography.fontFamily.mono,
105
+ fontSize: resolvedBaseSize - 2,
106
+ backgroundColor: tokens.colors.card,
107
+ borderRadius: tokens.radii.sm,
108
+ paddingHorizontal: 2,
109
+ color: tokens.colors.foreground,
110
+ };
111
+ const codeBlockStyle = {
112
+ backgroundColor: tokens.colors.card,
113
+ borderRadius: tokens.radii.md,
114
+ padding: tokens.spacing.md,
115
+ marginBottom: tokens.spacing.sm,
116
+ overflow: 'hidden',
117
+ };
118
+ const codeBlockTextStyle = {
119
+ fontFamily: tokens.typography.fontFamily.mono,
120
+ fontSize: tokens.typography.sizes.sm,
121
+ color: tokens.colors.foreground,
122
+ lineHeight: tokens.typography.sizes.sm * tokens.typography.lineHeights.relaxed,
123
+ };
124
+ const blockquoteStyle = {
125
+ borderLeftWidth: 3,
126
+ borderLeftColor: tokens.colors.primary,
127
+ paddingLeft: tokens.spacing.md,
128
+ paddingVertical: tokens.spacing.sm,
129
+ marginBottom: tokens.spacing.sm,
130
+ };
131
+ const blockquoteTextStyle = {
132
+ fontStyle: 'italic',
133
+ color: tokens.colors.mutedForeground,
134
+ fontSize: resolvedBaseSize,
135
+ };
136
+ const hrStyle = {
137
+ height: 1,
138
+ backgroundColor: tokens.colors.border,
139
+ marginVertical: tokens.spacing.md,
140
+ };
141
+ const imageContainerStyle = {
142
+ width: '100%',
143
+ marginBottom: tokens.spacing.sm,
144
+ borderRadius: tokens.radii.md,
145
+ overflow: 'hidden',
146
+ };
147
+ return {
148
+ containerStyle,
149
+ h1Style,
150
+ h2Style,
151
+ h3Style,
152
+ h4Style,
153
+ h5Style,
154
+ h6Style,
155
+ paragraphStyle,
156
+ boldStyle,
157
+ italicStyle,
158
+ linkStyle,
159
+ listItemStyle,
160
+ bulletStyle,
161
+ orderedNumberStyle,
162
+ inlineCodeStyle,
163
+ codeBlockStyle,
164
+ codeBlockTextStyle,
165
+ blockquoteStyle,
166
+ blockquoteTextStyle,
167
+ hrStyle,
168
+ imageContainerStyle,
169
+ resolvedBaseSize,
170
+ showLineNumbers,
171
+ accessibilityProps: {
172
+ accessibilityLabel: accessibilityLabel ?? 'Markdown content',
173
+ accessibilityRole: 'text',
174
+ },
175
+ };
176
+ }
177
+ //# sourceMappingURL=use-markdown-renderer.js.map