flikkui 0.1.0-beta.11 → 0.1.0-beta.12

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 (840) hide show
  1. package/README.md +174 -86
  2. package/dist/components/ai/ApprovalCard/ApprovalCard.d.ts +3 -0
  3. package/dist/components/ai/ApprovalCard/ApprovalCard.js +43 -0
  4. package/dist/components/ai/ApprovalCard/ApprovalCard.theme.d.ts +15 -0
  5. package/dist/components/ai/ApprovalCard/ApprovalCard.theme.js +17 -0
  6. package/dist/components/ai/ApprovalCard/ApprovalCard.types.d.ts +43 -0
  7. package/dist/components/ai/ApprovalCard/index.d.ts +2 -0
  8. package/dist/components/ai/ArtifactContainer/ArtifactContainer.d.ts +6 -0
  9. package/dist/components/ai/ArtifactContainer/ArtifactContainer.js +136 -0
  10. package/dist/components/ai/ArtifactContainer/ArtifactContainer.theme.d.ts +6 -0
  11. package/dist/components/ai/ArtifactContainer/ArtifactContainer.theme.js +14 -0
  12. package/dist/components/ai/ArtifactContainer/ArtifactContainer.types.d.ts +57 -0
  13. package/dist/components/ai/ArtifactContainer/index.d.ts +3 -0
  14. package/dist/components/ai/ChatInterface/ChatInterface.d.ts +26 -0
  15. package/dist/components/ai/ChatInterface/ChatInterface.js +79 -0
  16. package/dist/components/ai/ChatInterface/ChatInterface.theme.d.ts +2 -0
  17. package/dist/components/ai/ChatInterface/ChatInterface.theme.js +8 -0
  18. package/dist/components/ai/ChatInterface/ChatInterface.types.d.ts +68 -0
  19. package/dist/components/ai/ChatInterface/ChatInterface.types.js +19 -0
  20. package/dist/components/ai/ChatInterface/index.d.ts +4 -0
  21. package/dist/components/ai/CodeBlock/CodeBlock.d.ts +34 -0
  22. package/dist/components/ai/CodeBlock/CodeBlock.js +207 -0
  23. package/dist/components/ai/CodeBlock/CodeBlock.theme.d.ts +2 -0
  24. package/dist/components/ai/CodeBlock/CodeBlock.theme.js +17 -0
  25. package/dist/components/ai/CodeBlock/CodeBlock.types.d.ts +108 -0
  26. package/dist/components/ai/CodeBlock/LanguageIcon.d.ts +10 -0
  27. package/dist/components/ai/CodeBlock/LanguageIcon.js +103 -0
  28. package/dist/components/ai/CodeBlock/index.d.ts +3 -0
  29. package/dist/components/ai/EditingIndicator/EditingIndicator.animations.d.ts +31 -0
  30. package/dist/components/ai/EditingIndicator/EditingIndicator.animations.js +115 -0
  31. package/dist/components/ai/EditingIndicator/EditingIndicator.d.ts +35 -0
  32. package/dist/components/ai/EditingIndicator/EditingIndicator.js +93 -0
  33. package/dist/components/ai/EditingIndicator/EditingIndicator.theme.d.ts +2 -0
  34. package/dist/components/ai/EditingIndicator/EditingIndicator.theme.js +13 -0
  35. package/dist/components/ai/EditingIndicator/EditingIndicator.types.d.ts +54 -0
  36. package/dist/components/ai/EditingIndicator/index.d.ts +9 -0
  37. package/dist/components/ai/GenerativeRenderer/GenerativeRenderer.d.ts +3 -0
  38. package/dist/components/ai/GenerativeRenderer/GenerativeRenderer.js +104 -0
  39. package/dist/components/ai/GenerativeRenderer/GenerativeRenderer.theme.d.ts +2 -0
  40. package/dist/components/ai/GenerativeRenderer/GenerativeRenderer.theme.js +8 -0
  41. package/dist/components/ai/GenerativeRenderer/GenerativeRenderer.types.d.ts +45 -0
  42. package/dist/components/ai/GenerativeRenderer/index.d.ts +3 -0
  43. package/dist/components/ai/MessageHistory/MessageHistory.d.ts +18 -0
  44. package/dist/components/ai/MessageHistory/MessageHistory.js +107 -0
  45. package/dist/components/ai/MessageHistory/MessageHistory.theme.d.ts +2 -0
  46. package/dist/components/ai/MessageHistory/MessageHistory.theme.js +8 -0
  47. package/dist/components/ai/MessageHistory/MessageHistory.types.d.ts +94 -0
  48. package/dist/components/ai/MessageHistory/index.d.ts +3 -0
  49. package/dist/components/ai/PresenceIndicator/PresenceIndicator.animations.d.ts +17 -0
  50. package/dist/components/ai/PresenceIndicator/PresenceIndicator.animations.js +56 -0
  51. package/dist/components/ai/PresenceIndicator/PresenceIndicator.d.ts +38 -0
  52. package/dist/components/ai/PresenceIndicator/PresenceIndicator.js +109 -0
  53. package/dist/components/ai/PresenceIndicator/PresenceIndicator.theme.d.ts +2 -0
  54. package/dist/components/ai/PresenceIndicator/PresenceIndicator.theme.js +13 -0
  55. package/dist/components/ai/PresenceIndicator/PresenceIndicator.types.d.ts +53 -0
  56. package/dist/components/ai/PresenceIndicator/index.d.ts +8 -0
  57. package/dist/components/ai/PresenceProvider/PresenceContext.d.ts +24 -0
  58. package/dist/components/ai/PresenceProvider/PresenceContext.js +34 -0
  59. package/dist/components/ai/PresenceProvider/PresenceProvider.d.ts +32 -0
  60. package/dist/components/ai/PresenceProvider/PresenceProvider.js +345 -0
  61. package/dist/components/ai/PresenceProvider/PresenceProvider.types.d.ts +140 -0
  62. package/dist/components/ai/PresenceProvider/adapters/MockAdapter.d.ts +102 -0
  63. package/dist/components/ai/PresenceProvider/adapters/MockAdapter.js +353 -0
  64. package/dist/components/ai/PresenceProvider/adapters/PresenceAdapter.d.ts +93 -0
  65. package/dist/components/ai/PresenceProvider/adapters/SupabaseAdapter.d.ts +134 -0
  66. package/dist/components/ai/PresenceProvider/adapters/WebSocketAdapter.d.ts +149 -0
  67. package/dist/components/ai/PresenceProvider/adapters/index.d.ts +11 -0
  68. package/dist/components/ai/PresenceProvider/index.d.ts +10 -0
  69. package/dist/components/ai/PromptInput/PromptInput.js +613 -0
  70. package/dist/components/ai/PromptInput/PromptInput.theme.d.ts +1 -7
  71. package/dist/components/ai/PromptInput/PromptInput.theme.js +15 -0
  72. package/dist/components/ai/PromptInput/PromptInput.types.d.ts +72 -5
  73. package/dist/components/ai/PromptInput/index.d.ts +3 -3
  74. package/dist/components/ai/PromptSuggestions/PromptSuggestions.d.ts +27 -0
  75. package/dist/components/ai/PromptSuggestions/PromptSuggestions.js +66 -0
  76. package/dist/components/ai/PromptSuggestions/PromptSuggestions.types.d.ts +65 -0
  77. package/dist/components/ai/PromptSuggestions/index.d.ts +2 -0
  78. package/dist/components/ai/StreamingResponse/ErrorDisplay.d.ts +23 -0
  79. package/dist/components/ai/StreamingResponse/ErrorDisplay.js +50 -0
  80. package/dist/components/ai/StreamingResponse/MarkdownRenderer.d.ts +17 -0
  81. package/dist/components/ai/StreamingResponse/MarkdownRenderer.js +138 -0
  82. package/dist/components/ai/StreamingResponse/StreamingResponse.d.ts +22 -0
  83. package/dist/components/ai/StreamingResponse/StreamingResponse.js +84 -0
  84. package/dist/components/ai/StreamingResponse/StreamingResponse.theme.d.ts +2 -0
  85. package/dist/components/ai/StreamingResponse/StreamingResponse.theme.js +10 -0
  86. package/dist/components/ai/StreamingResponse/StreamingResponse.types.d.ts +101 -0
  87. package/dist/components/ai/StreamingResponse/index.d.ts +9 -0
  88. package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.animations.d.ts +10 -0
  89. package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.animations.js +47 -0
  90. package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.d.ts +20 -0
  91. package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.js +58 -0
  92. package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.theme.d.ts +2 -0
  93. package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.theme.js +20 -0
  94. package/dist/components/ai/ThinkingIndicator/ThinkingIndicator.types.d.ts +67 -0
  95. package/dist/components/ai/ThinkingIndicator/index.d.ts +3 -0
  96. package/dist/components/ai/TokenCounter/TokenCounter.d.ts +21 -0
  97. package/dist/components/ai/TokenCounter/TokenCounter.js +74 -0
  98. package/dist/components/ai/TokenCounter/TokenCounter.theme.d.ts +2 -0
  99. package/dist/components/ai/TokenCounter/TokenCounter.theme.js +28 -0
  100. package/dist/components/ai/TokenCounter/TokenCounter.types.d.ts +104 -0
  101. package/dist/components/ai/TokenCounter/index.d.ts +4 -0
  102. package/dist/components/ai/TokenCounter/tokenUtils.d.ts +23 -0
  103. package/dist/components/ai/TokenCounter/tokenUtils.js +108 -0
  104. package/dist/components/ai/VersionSlider/VersionSlider.d.ts +3 -0
  105. package/dist/components/ai/VersionSlider/VersionSlider.js +99 -0
  106. package/dist/components/ai/VersionSlider/VersionSlider.theme.d.ts +2 -0
  107. package/dist/components/ai/VersionSlider/VersionSlider.theme.js +18 -0
  108. package/dist/components/ai/VersionSlider/VersionSlider.types.d.ts +77 -0
  109. package/dist/components/ai/VersionSlider/index.d.ts +3 -0
  110. package/dist/components/ai/index.d.ts +33 -0
  111. package/dist/components/charts/ActivityRings/ActivityRings.js +164 -0
  112. package/dist/components/charts/ActivityRings/ActivityRings.theme.js +27 -0
  113. package/dist/components/charts/ActivityRings/ActivityRings.types.js +8 -0
  114. package/dist/components/charts/AreaChart/AreaChart.js +490 -0
  115. package/dist/components/charts/AreaChart/AreaChart.theme.js +45 -0
  116. package/dist/components/charts/AreaChart/AreaChart.types.js +7 -0
  117. package/dist/components/charts/BarChart/BarChart.js +470 -0
  118. package/dist/components/charts/BarChart/BarChart.types.d.ts +4 -4
  119. package/dist/components/charts/BarChart/BarChart.types.js +7 -0
  120. package/dist/components/charts/ChartContainer.js +38 -0
  121. package/dist/components/charts/ComboChart/ComboChart.js +164 -0
  122. package/dist/components/charts/ComboChart/ComboChart.types.js +7 -0
  123. package/dist/components/charts/DonutChart/DonutChart.js +169 -0
  124. package/dist/components/charts/DonutChart/DonutChart.theme.js +24 -0
  125. package/dist/components/charts/DonutChart/MultiSegmentDonutChart.js +252 -0
  126. package/dist/components/charts/DonutChart/MultiSegmentDonutChart.theme.js +36 -0
  127. package/dist/components/charts/DonutChart/donut-utils.js +117 -0
  128. package/dist/components/charts/FunnelChart/FunnelChart.animations.js +106 -0
  129. package/dist/components/charts/FunnelChart/FunnelChart.d.ts +2 -2
  130. package/dist/components/charts/FunnelChart/FunnelChart.js +486 -0
  131. package/dist/components/charts/FunnelChart/FunnelChart.theme.js +12 -0
  132. package/dist/components/charts/Heatmap/Heatmap.js +166 -0
  133. package/dist/components/charts/Heatmap/Heatmap.theme.js +18 -0
  134. package/dist/components/charts/Heatmap/HeatmapCell.js +91 -0
  135. package/dist/components/charts/Heatmap/HeatmapLegend.js +23 -0
  136. package/dist/components/charts/Heatmap/utils/heatmapUtils.js +174 -0
  137. package/dist/components/charts/LineChart/LineChart.js +443 -0
  138. package/dist/components/charts/LineChart/LineChart.types.js +7 -0
  139. package/dist/components/charts/ScatterPlot/ScatterPlot.js +222 -0
  140. package/dist/components/charts/ScatterPlot/ScatterPlot.theme.js +38 -0
  141. package/dist/components/charts/ScatterPlot/ScatterPlot.types.js +9 -0
  142. package/dist/components/charts/StackedBarChart/StackedBarChart.d.ts +3 -0
  143. package/dist/components/charts/StackedBarChart/StackedBarChart.js +314 -0
  144. package/dist/components/charts/StackedBarChart/StackedBarChart.types.d.ts +34 -0
  145. package/dist/components/charts/StackedBarChart/StackedBarChart.types.js +7 -0
  146. package/dist/components/charts/StackedBarChart/index.d.ts +3 -0
  147. package/dist/components/charts/hooks/useChartAccessibility.js +127 -0
  148. package/dist/components/charts/hooks/useChartScales.js +180 -0
  149. package/dist/components/charts/hooks/useChartTheme.js +86 -0
  150. package/dist/components/charts/hooks/useChartValidation.js +59 -0
  151. package/dist/components/charts/hooks/useTooltipPosition.js +304 -0
  152. package/dist/components/charts/index.d.ts +52 -49
  153. package/dist/components/charts/index.js +40 -0
  154. package/dist/components/charts/shared/BarRenderer/BarRenderer.js +295 -0
  155. package/dist/components/charts/shared/ChartAxis/XAxis.js +40 -0
  156. package/dist/components/charts/shared/ChartAxis/YAxis.js +97 -0
  157. package/dist/components/charts/shared/ChartContainer/ChartContainer.js +172 -0
  158. package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.js +34 -0
  159. package/dist/components/charts/shared/ChartCrosshair/ChartCrosshair.theme.js +11 -0
  160. package/dist/components/charts/shared/ChartErrorBoundary/ChartErrorBoundary.js +66 -0
  161. package/dist/components/charts/shared/ChartGrid/HorizontalGrid.js +22 -0
  162. package/dist/components/charts/shared/ChartLegend/ChartLegend.js +30 -0
  163. package/dist/components/charts/shared/ChartLegend/ChartLegendContent.js +22 -0
  164. package/dist/components/charts/shared/ChartMarker/ChartMarker.js +23 -0
  165. package/dist/components/charts/shared/ChartMarker/ChartMarker.theme.js +9 -0
  166. package/dist/components/charts/shared/ChartText/ChartText.js +33 -0
  167. package/dist/components/charts/shared/ChartText/ChartText.theme.js +9 -0
  168. package/dist/components/charts/shared/ChartTooltip/ChartTooltip.js +71 -0
  169. package/dist/components/charts/shared/ChartTooltip/ChartTooltip.theme.js +18 -0
  170. package/dist/components/charts/shared/LineRenderer/LineRenderer.js +314 -0
  171. package/dist/components/charts/theme/chart.theme.js +73 -0
  172. package/dist/components/charts/types/chart.types.js +31 -0
  173. package/dist/components/charts/utils/animation-utils.js +115 -0
  174. package/dist/components/charts/utils/chart-validation.js +301 -0
  175. package/dist/components/charts/utils/color-utils.js +144 -0
  176. package/dist/components/core/Accordion/Accordion.js +1 -1
  177. package/dist/components/core/Accordion/Accordion.theme.js +1 -1
  178. package/dist/components/core/Accordion/AccordionContent.js +2 -3
  179. package/dist/components/core/Accordion/AccordionItem.js +1 -1
  180. package/dist/components/core/Accordion/AccordionTrigger.js +4 -4
  181. package/dist/components/core/Alert/Alert.js +14 -18
  182. package/dist/components/core/Alert/Alert.theme.js +1 -9
  183. package/dist/components/core/Alert/Alert.types.d.ts +2 -10
  184. package/dist/components/core/AlertDialog/AlertDialog.js +29 -0
  185. package/dist/components/core/Avatar/Avatar.js +15 -15
  186. package/dist/components/core/Avatar/Avatar.theme.d.ts +1 -1
  187. package/dist/components/core/Avatar/Avatar.theme.js +11 -11
  188. package/dist/components/core/AvatarGroup/AvatarGroup.animations.d.ts +5 -4
  189. package/dist/components/core/AvatarGroup/AvatarGroup.animations.js +60 -32
  190. package/dist/components/core/AvatarGroup/AvatarGroup.js +24 -16
  191. package/dist/components/core/AvatarGroup/AvatarGroup.theme.d.ts +1 -1
  192. package/dist/components/core/AvatarGroup/AvatarGroup.theme.js +8 -8
  193. package/dist/components/core/Badge/Badge.js +23 -19
  194. package/dist/components/core/Badge/Badge.theme.d.ts +2 -2
  195. package/dist/components/core/Badge/Badge.theme.js +88 -59
  196. package/dist/components/core/Badge/Badge.types.d.ts +10 -9
  197. package/dist/components/core/Breadcrumbs/Breadcrumbs.js +1 -1
  198. package/dist/components/core/Breadcrumbs/Breadcrumbs.theme.js +2 -2
  199. package/dist/components/core/Button/Button.js +57 -35
  200. package/dist/components/core/Button/Button.ripple.js +1 -1
  201. package/dist/components/core/Button/Button.theme.d.ts +8 -2
  202. package/dist/components/core/Button/Button.theme.js +109 -12
  203. package/dist/components/core/Button/Button.types.d.ts +2 -0
  204. package/dist/components/core/ButtonGroup/ButtonGroup.js +1 -1
  205. package/dist/components/core/ButtonGroup/ButtonGroup.theme.d.ts +1 -0
  206. package/dist/components/core/ButtonGroup/ButtonGroup.theme.js +2 -0
  207. package/dist/components/core/ButtonGroup/ButtonGroupSeparator.js +1 -1
  208. package/dist/components/core/ButtonGroup/ButtonGroupText.js +1 -1
  209. package/dist/components/core/Calendar/Calendar.animations.js +12 -0
  210. package/dist/components/core/Calendar/Calendar.js +6 -78
  211. package/dist/components/core/Calendar/Calendar.theme.d.ts +1 -1
  212. package/dist/components/core/Calendar/Calendar.theme.js +37 -4
  213. package/dist/components/core/Calendar/CalendarMini/CalendarMini.animations.js +27 -0
  214. package/dist/components/core/Calendar/CalendarMini/CalendarMini.js +269 -0
  215. package/dist/components/core/Calendar/CalendarMini/CalendarMini.theme.js +9 -0
  216. package/dist/components/core/Calendar/calendar.utils.js +10 -1
  217. package/dist/components/core/Card/Card.js +1 -1
  218. package/dist/components/core/Card/Card.theme.d.ts +1 -1
  219. package/dist/components/core/Card/Card.theme.js +6 -6
  220. package/dist/components/core/Card/Card.types.d.ts +2 -2
  221. package/dist/components/core/Card/CardContent.js +1 -1
  222. package/dist/components/core/Card/CardDescription.js +1 -1
  223. package/dist/components/core/Card/CardFooter.js +1 -1
  224. package/dist/components/core/Card/CardHeader.js +1 -1
  225. package/dist/components/core/Card/CardTitle.js +1 -1
  226. package/dist/components/core/CardStack/CardStack.animations.d.ts +47 -0
  227. package/dist/components/core/CardStack/CardStack.d.ts +3 -0
  228. package/dist/components/core/CardStack/CardStack.js +189 -0
  229. package/dist/components/core/CardStack/CardStack.theme.d.ts +6 -0
  230. package/dist/components/core/CardStack/CardStack.theme.js +33 -0
  231. package/dist/components/core/CardStack/CardStack.types.d.ts +139 -0
  232. package/dist/components/core/CardStack/index.d.ts +7 -0
  233. package/dist/components/core/Carousel/Carousel.js +1 -1
  234. package/dist/components/core/Carousel/CarouselContent.js +2 -2
  235. package/dist/components/core/Carousel/CarouselItem.js +1 -1
  236. package/dist/components/core/Carousel/CarouselNext.js +3 -4
  237. package/dist/components/core/Carousel/CarouselPrevious.js +3 -4
  238. package/dist/components/core/CommandPalette/CommandItem.js +145 -0
  239. package/dist/components/core/CommandPalette/CommandPalette.animations.d.ts +1 -1
  240. package/dist/components/core/CommandPalette/CommandPalette.animations.js +51 -0
  241. package/dist/components/core/CommandPalette/CommandPalette.d.ts +2 -2
  242. package/dist/components/core/CommandPalette/CommandPalette.js +236 -0
  243. package/dist/components/core/CommandPalette/CommandPalette.theme.d.ts +1 -1
  244. package/dist/components/core/CommandPalette/CommandPalette.theme.js +30 -0
  245. package/dist/components/core/ContextMenu/ContextMenu.types.d.ts +4 -1
  246. package/dist/components/core/ContextMenu/ContextMenuItem.d.ts +1 -0
  247. package/dist/components/core/Divider/Divider.js +1 -1
  248. package/dist/components/core/DragDrop/DragDrop.js +30 -3
  249. package/dist/components/core/Drawer/Drawer.js +8 -4
  250. package/dist/components/core/Drawer/Drawer.theme.js +12 -4
  251. package/dist/components/core/Drawer/DrawerContent.js +1 -1
  252. package/dist/components/core/Drawer/DrawerFooter.js +1 -1
  253. package/dist/components/core/Drawer/DrawerHeader.js +3 -3
  254. package/dist/components/core/Dropdown/Dropdown.js +2 -2
  255. package/dist/components/core/Dropdown/Dropdown.theme.d.ts +1 -0
  256. package/dist/components/core/Dropdown/Dropdown.theme.js +21 -4
  257. package/dist/components/core/Dropdown/DropdownItem.js +6 -3
  258. package/dist/components/core/Dropdown/DropdownMenu.js +53 -12
  259. package/dist/components/core/Dropdown/DropdownSection.js +1 -1
  260. package/dist/components/core/Dropdown/DropdownSeparator.js +1 -1
  261. package/dist/components/core/Empty/Empty.js +1 -1
  262. package/dist/components/core/Kbd/Kbd.js +1 -1
  263. package/dist/components/core/Link/Link.js +6 -7
  264. package/dist/components/core/Loader/Loader.js +64 -0
  265. package/dist/components/core/Loader/Loader.theme.js +60 -0
  266. package/dist/components/core/Masonry/Masonry.js +2 -3
  267. package/dist/components/core/Masonry/Masonry.theme.js +1 -1
  268. package/dist/components/{ai → core}/Message/Message.d.ts +1 -1
  269. package/dist/components/core/Message/Message.js +136 -0
  270. package/dist/components/core/Message/Message.theme.d.ts +6 -0
  271. package/dist/components/core/Message/Message.theme.js +46 -0
  272. package/dist/components/core/Message/Message.types.d.ts +169 -0
  273. package/dist/components/core/Message/MessageActions.js +21 -0
  274. package/dist/components/{ai → core}/Message/MessageAvatar.d.ts +2 -2
  275. package/dist/components/core/Message/MessageAvatar.js +18 -0
  276. package/dist/components/core/Message/MessageContent.js +26 -0
  277. package/dist/components/{ai → core}/Message/MessageContext.d.ts +3 -2
  278. package/dist/components/core/Message/MessageContext.js +12 -0
  279. package/dist/components/core/Message/MessageTimestamp.js +23 -0
  280. package/dist/components/core/Message/TypeWriter.js +28 -0
  281. package/dist/components/core/Message/index.d.ts +5 -0
  282. package/dist/components/core/Metric/Metric.js +6 -4
  283. package/dist/components/core/Metric/index.d.ts +1 -1
  284. package/dist/components/core/Modal/Modal.js +8 -4
  285. package/dist/components/core/Modal/Modal.theme.js +1 -1
  286. package/dist/components/core/Modal/ModalBody.js +1 -1
  287. package/dist/components/core/Modal/ModalDescription.js +1 -1
  288. package/dist/components/core/Modal/ModalFooter.js +1 -1
  289. package/dist/components/core/Modal/ModalHeader.js +6 -5
  290. package/dist/components/core/Modal/ModalTitle.js +1 -1
  291. package/dist/components/core/NavItem/NavItem.js +42 -21
  292. package/dist/components/core/NavItem/NavItem.theme.js +11 -11
  293. package/dist/components/core/NavItem/NavItem.types.d.ts +59 -4
  294. package/dist/components/core/Notification/Notification.js +33 -42
  295. package/dist/components/core/Notification/Notification.theme.js +7 -11
  296. package/dist/components/core/OfflineIndicator/OfflineIndicator.d.ts +20 -0
  297. package/dist/components/core/OfflineIndicator/OfflineIndicator.js +113 -0
  298. package/dist/components/core/OfflineIndicator/OfflineIndicator.theme.d.ts +2 -0
  299. package/dist/components/core/OfflineIndicator/OfflineIndicator.theme.js +22 -0
  300. package/dist/components/core/OfflineIndicator/OfflineIndicator.types.d.ts +57 -0
  301. package/dist/components/core/OfflineIndicator/index.d.ts +3 -0
  302. package/dist/components/core/Pagination/Pagination.js +6 -9
  303. package/dist/components/core/Pagination/Pagination.theme.js +20 -2
  304. package/dist/components/core/Pill/Pill.animations.js +25 -0
  305. package/dist/components/core/Pill/Pill.js +150 -0
  306. package/dist/components/core/Pill/Pill.theme.d.ts +1 -1
  307. package/dist/components/core/Pill/Pill.theme.js +65 -0
  308. package/dist/components/core/Pill/Pill.types.d.ts +5 -5
  309. package/dist/components/core/Popover/Popover.js +1 -1
  310. package/dist/components/core/Popover/PopoverContent.js +2 -4
  311. package/dist/components/core/Popover/PopoverTrigger.js +1 -1
  312. package/dist/components/core/ProgressiveBlur/ProgressiveBlur.d.ts +31 -4
  313. package/dist/components/core/ProgressiveBlur/ProgressiveBlur.js +223 -33
  314. package/dist/components/core/ProgressiveBlur/ProgressiveBlur.theme.d.ts +0 -6
  315. package/dist/components/core/ProgressiveBlur/ProgressiveBlur.types.d.ts +8 -2
  316. package/dist/components/core/ProgressiveBlur/index.d.ts +2 -2
  317. package/dist/components/core/RetryBoundary/RetryBoundary.d.ts +35 -0
  318. package/dist/components/core/RetryBoundary/RetryBoundary.js +160 -0
  319. package/dist/components/core/RetryBoundary/RetryBoundary.theme.d.ts +2 -0
  320. package/dist/components/core/RetryBoundary/RetryBoundary.theme.js +7 -0
  321. package/dist/components/core/RetryBoundary/RetryBoundary.types.d.ts +51 -0
  322. package/dist/components/core/RetryBoundary/index.d.ts +3 -0
  323. package/dist/components/core/Segmented/Segmented.js +4 -1
  324. package/dist/components/core/Segmented/Segmented.theme.d.ts +1 -1
  325. package/dist/components/core/Segmented/Segmented.theme.js +4 -4
  326. package/dist/components/core/Segmented/SegmentedItem.js +1 -1
  327. package/dist/components/core/Sidebar/Sidebar.d.ts +2 -2
  328. package/dist/components/core/Sidebar/Sidebar.js +14 -9
  329. package/dist/components/core/Sidebar/SidebarContent.d.ts +2 -2
  330. package/dist/components/core/Sidebar/SidebarContent.js +6 -4
  331. package/dist/components/core/Sidebar/SidebarFooter.d.ts +2 -2
  332. package/dist/components/core/Sidebar/SidebarFooter.js +6 -3
  333. package/dist/components/core/Sidebar/SidebarHeader.d.ts +2 -2
  334. package/dist/components/core/Sidebar/SidebarHeader.js +6 -7
  335. package/dist/components/core/Sidebar/SidebarNav.js +1 -1
  336. package/dist/components/core/Sidebar/SidebarNavGroup.d.ts +2 -2
  337. package/dist/components/core/Sidebar/SidebarNavGroup.js +7 -7
  338. package/dist/components/core/Sidebar/SidebarSubmenu.d.ts +7 -0
  339. package/dist/components/core/Sidebar/SidebarSubmenu.js +13 -0
  340. package/dist/components/core/Sidebar/SidebarToggle.d.ts +2 -2
  341. package/dist/components/core/Sidebar/SidebarToggle.js +11 -9
  342. package/dist/components/core/Sidebar/index.d.ts +10 -9
  343. package/dist/components/core/Skeleton/Skeleton.js +61 -0
  344. package/dist/components/core/Skeleton/Skeleton.theme.js +18 -0
  345. package/dist/components/core/SlidingNumber/SlidingNumber.d.ts +2 -2
  346. package/dist/components/core/SlidingNumber/SlidingNumber.js +40 -32
  347. package/dist/components/core/SlidingNumber/SlidingNumber.types.d.ts +3 -3
  348. package/dist/components/core/Sortable/Sortable.animations.d.ts +48 -0
  349. package/dist/components/core/Sortable/Sortable.animations.js +1 -1
  350. package/dist/components/core/Sortable/Sortable.js +6 -10
  351. package/dist/components/core/Spinner/Spinner.js +4 -1
  352. package/dist/components/core/Stepper/Stepper.js +1 -1
  353. package/dist/components/core/Stepper/Stepper.theme.d.ts +26 -4
  354. package/dist/components/core/Stepper/Stepper.theme.js +42 -9
  355. package/dist/components/core/Stepper/StepperItem.js +39 -15
  356. package/dist/components/core/Table/Table.js +6 -3
  357. package/dist/components/core/Table/Table.theme.js +49 -14
  358. package/dist/components/core/Table/components/DeclarativeComponents.js +4 -1
  359. package/dist/components/core/Table/components/TableActions/TableActions.d.ts +3 -3
  360. package/dist/components/core/Table/components/TableActions/TableActions.js +44 -22
  361. package/dist/components/core/Table/components/TableActions/TableActionsMenu.js +4 -1
  362. package/dist/components/core/Table/components/TablePagination/TablePagination.js +4 -1
  363. package/dist/components/core/Table/components/TableSelectionHeader/TableSelectionHeader.js +6 -3
  364. package/dist/components/core/Table/components/core/TableBody.js +1 -1
  365. package/dist/components/core/Table/components/core/TableCell.js +4 -1
  366. package/dist/components/core/Table/components/core/TableHeader.js +1 -1
  367. package/dist/components/core/Table/components/core/TableRow.js +2 -3
  368. package/dist/components/core/Table/index.js +6 -1
  369. package/dist/components/core/Tabs/Tabs.js +1 -1
  370. package/dist/components/core/Tabs/TabsContent.js +2 -4
  371. package/dist/components/core/Tabs/TabsList.js +2 -3
  372. package/dist/components/core/Tabs/TabsTrigger.js +2 -3
  373. package/dist/components/core/Toast/Toast.js +11 -16
  374. package/dist/components/core/Toast/ToastProvider.js +2 -2
  375. package/dist/components/core/Tooltip/Tooltip.animations.js +18 -2
  376. package/dist/components/core/Tooltip/Tooltip.js +48 -11
  377. package/dist/components/core/Tooltip/Tooltip.theme.js +2 -1
  378. package/dist/components/core/Tree/Tree.animations.js +1 -1
  379. package/dist/components/core/Tree/Tree.js +5 -8
  380. package/dist/components/core/index.d.ts +4 -1
  381. package/dist/components/core/index.js +94 -0
  382. package/dist/components/effects/CustomCursor/CustomCursor.js +4 -8
  383. package/dist/components/effects/GlassEffect/GlassEffect.js +4 -1
  384. package/dist/components/effects/GlassSurface/GlassSurface.d.ts +8 -0
  385. package/dist/components/effects/GlassSurface/GlassSurface.js +218 -0
  386. package/dist/components/effects/GlassSurface/GlassSurface.types.d.ts +57 -0
  387. package/dist/components/effects/GlassSurface/index.d.ts +2 -0
  388. package/dist/components/effects/Overlay/Overlay.d.ts +2 -2
  389. package/dist/components/effects/Overlay/Overlay.js +26 -17
  390. package/dist/components/effects/SpotlightBorder/SpotlightBorder.d.ts +18 -0
  391. package/dist/components/effects/SpotlightBorder/SpotlightBorder.js +195 -0
  392. package/dist/components/effects/SpotlightBorder/SpotlightBorder.shaders.d.ts +7 -0
  393. package/dist/components/effects/SpotlightBorder/SpotlightBorder.shaders.js +9 -0
  394. package/dist/components/effects/SpotlightBorder/SpotlightBorder.types.d.ts +61 -0
  395. package/dist/components/effects/SpotlightBorder/SpotlightBorder.types.js +8 -0
  396. package/dist/components/effects/SpotlightBorder/index.d.ts +2 -0
  397. package/dist/components/effects/index.d.ts +10 -6
  398. package/dist/components/effects/index.js +5 -0
  399. package/dist/components/forms/Checkbox/Checkbox.js +4 -5
  400. package/dist/components/forms/Checkbox/Checkbox.theme.d.ts +1 -0
  401. package/dist/components/forms/Checkbox/Checkbox.theme.js +31 -4
  402. package/dist/components/forms/DatePicker/DatePicker.d.ts +2 -2
  403. package/dist/components/forms/DatePicker/DatePicker.js +19 -13
  404. package/dist/components/forms/DatePicker/DatePicker.theme.d.ts +1 -1
  405. package/dist/components/forms/DatePicker/DatePicker.theme.js +26 -7
  406. package/dist/components/forms/DatePicker/DatePicker.types.d.ts +11 -13
  407. package/dist/components/forms/DatePicker/DatePickerContent.d.ts +2 -2
  408. package/dist/components/forms/DatePicker/DatePickerContent.js +85 -36
  409. package/dist/components/forms/DatePicker/DatePickerTrigger.d.ts +2 -2
  410. package/dist/components/forms/DatePicker/DatePickerTrigger.js +8 -7
  411. package/dist/components/forms/FileUpload/FileUpload.js +299 -0
  412. package/dist/components/forms/FileUpload/FileUpload.theme.js +36 -0
  413. package/dist/components/forms/FileUpload/FileUpload.types.d.ts +4 -0
  414. package/dist/components/forms/FileUpload/index.d.ts +1 -1
  415. package/dist/components/forms/FormLabel/FormLabel.js +4 -1
  416. package/dist/components/forms/Input/Input.js +7 -6
  417. package/dist/components/forms/Input/Input.theme.js +23 -16
  418. package/dist/components/forms/InputAddress/InputAddress.js +1 -1
  419. package/dist/components/forms/InputAddress/InputAddress.theme.js +1 -1
  420. package/dist/components/forms/InputCounter/InputCounter.d.ts +2 -2
  421. package/dist/components/forms/InputCounter/InputCounter.js +172 -0
  422. package/dist/components/forms/InputCounter/InputCounter.theme.js +11 -0
  423. package/dist/components/forms/InputCreditCard/InputCreditCard.js +1 -1
  424. package/dist/components/forms/InputCreditCard/InputCreditCard.theme.js +1 -1
  425. package/dist/components/forms/InputDate/InputDate.js +1 -1
  426. package/dist/components/forms/InputOTP/InputOTP.js +1 -1
  427. package/dist/components/forms/OptimisticForm/OptimisticForm.d.ts +33 -0
  428. package/dist/components/forms/OptimisticForm/OptimisticForm.js +88 -0
  429. package/dist/components/forms/OptimisticForm/OptimisticForm.theme.d.ts +2 -0
  430. package/dist/components/forms/OptimisticForm/OptimisticForm.theme.js +8 -0
  431. package/dist/components/forms/OptimisticForm/OptimisticForm.types.d.ts +74 -0
  432. package/dist/components/forms/OptimisticForm/index.d.ts +3 -0
  433. package/dist/components/forms/Radio/Radio.js +1 -1
  434. package/dist/components/forms/RichTextEditor/RichTextEditor.js +16 -22
  435. package/dist/components/forms/Select/Select.js +103 -36
  436. package/dist/components/forms/Select/Select.theme.d.ts +1 -1
  437. package/dist/components/forms/Select/Select.theme.js +18 -8
  438. package/dist/components/forms/Select/Select.types.d.ts +8 -4
  439. package/dist/components/forms/Signature/Signature.js +1 -1
  440. package/dist/components/forms/Slider/Slider.js +29 -11
  441. package/dist/components/forms/Slider/Slider.theme.js +1 -1
  442. package/dist/components/forms/StepperForm/StepperForm.d.ts +7 -0
  443. package/dist/components/forms/StepperForm/StepperForm.js +105 -0
  444. package/dist/components/forms/StepperForm/StepperForm.theme.d.ts +2 -0
  445. package/dist/components/forms/StepperForm/StepperForm.theme.js +19 -0
  446. package/dist/components/forms/StepperForm/StepperForm.types.d.ts +65 -0
  447. package/dist/components/forms/StepperForm/StepperForm.types.js +12 -0
  448. package/dist/components/forms/StepperForm/index.d.ts +3 -0
  449. package/dist/components/forms/Switch/Switch.js +5 -2
  450. package/dist/components/forms/Switch/Switch.types.d.ts +1 -1
  451. package/dist/components/forms/Textarea/Textarea.js +1 -1
  452. package/dist/components/forms/TimePicker/TimePicker.js +1 -1
  453. package/dist/components/forms/TimePicker/TimePickerContent.js +2 -3
  454. package/dist/components/forms/TimePicker/TimePickerTrigger.js +4 -6
  455. package/dist/components/forms/forms.theme.js +32 -9
  456. package/dist/components/forms/index.d.ts +59 -55
  457. package/dist/components/forms/index.js +52 -0
  458. package/dist/hooks/index.d.ts +14 -5
  459. package/dist/hooks/useFormStateMachine.d.ts +31 -0
  460. package/dist/hooks/useFormStateMachine.js +72 -0
  461. package/dist/hooks/useNetworkStatus.d.ts +40 -0
  462. package/dist/hooks/useNetworkStatus.js +88 -0
  463. package/dist/hooks/useOptimisticMutation.d.ts +109 -0
  464. package/dist/hooks/useOptimisticMutation.js +196 -0
  465. package/dist/hooks/usePresence.d.ts +88 -0
  466. package/dist/hooks/useSlidingNumber.js +67 -0
  467. package/dist/hooks/useStreamingSSE.d.ts +80 -0
  468. package/dist/hooks/useStreamingSSE.js +236 -0
  469. package/dist/hooks/useTypewriter.js +117 -0
  470. package/dist/icons/Icon.js +1 -1
  471. package/dist/icons/core/ChevronUpDown.js +1 -1
  472. package/dist/icons/core/DollarIcon.js +1 -1
  473. package/dist/icons/core/LockIcon.js +1 -1
  474. package/dist/icons/core/MinusIcon.js +1 -1
  475. package/dist/icons/core/PlusIcon.js +1 -1
  476. package/dist/icons/core/SearchIcon.js +1 -1
  477. package/dist/icons/core/TickIcon.js +1 -1
  478. package/dist/index.d.ts +11 -124
  479. package/dist/index.js +150 -35
  480. package/dist/styles.css +1 -1
  481. package/dist/utils/actionQueue.d.ts +113 -0
  482. package/dist/utils/actionQueue.js +233 -0
  483. package/dist/utils/cn.js +2 -2
  484. package/dist/utils/dateUtils.js +1 -1
  485. package/dist/utils/formValidation.d.ts +20 -0
  486. package/dist/utils/formValidation.js +33 -0
  487. package/dist/utils/index.d.ts +14 -6
  488. package/dist/utils/optimisticErrors.d.ts +79 -0
  489. package/dist/utils/optimisticErrors.js +111 -0
  490. package/dist/utils/presenceUtils.d.ts +66 -0
  491. package/dist/utils/presenceUtils.js +110 -0
  492. package/dist/utils/retryUtils.d.ts +49 -0
  493. package/dist/utils/retryUtils.js +53 -0
  494. package/dist/utils/sseFormatParsers.d.ts +64 -0
  495. package/dist/utils/sseFormatParsers.js +124 -0
  496. package/dist/utils/stateMachine.d.ts +43 -0
  497. package/dist/utils/stateMachine.js +45 -0
  498. package/dist/utils/streamingErrors.d.ts +70 -0
  499. package/dist/utils/streamingErrors.js +110 -0
  500. package/package.json +69 -20
  501. package/dist/_virtual/jsx-runtime.js +0 -5
  502. package/dist/_virtual/jsx-runtime2.js +0 -3
  503. package/dist/_virtual/react-jsx-runtime.development.js +0 -3
  504. package/dist/_virtual/react-jsx-runtime.production.js +0 -3
  505. package/dist/components/ai/Message/Message.theme.d.ts +0 -2
  506. package/dist/components/ai/Message/Message.types.d.ts +0 -110
  507. package/dist/components/ai/Message/index.d.ts +0 -9
  508. package/dist/components/core/ChatMessage/ChatMessage.d.ts +0 -3
  509. package/dist/components/core/ChatMessage/ChatMessage.js +0 -62
  510. package/dist/components/core/ChatMessage/ChatMessage.theme.d.ts +0 -6
  511. package/dist/components/core/ChatMessage/ChatMessage.theme.js +0 -31
  512. package/dist/components/core/ChatMessage/ChatMessage.types.d.ts +0 -120
  513. package/dist/components/core/ChatMessage/index.d.ts +0 -2
  514. package/dist/components/core/ProgressiveBlur/ProgressiveBlur.theme.js +0 -17
  515. package/dist/node_modules/@heroicons/react/16/solid/esm/CheckIcon.js +0 -26
  516. package/dist/node_modules/@heroicons/react/16/solid/esm/LockClosedIcon.js +0 -26
  517. package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js +0 -26
  518. package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronRightIcon.js +0 -26
  519. package/dist/node_modules/@heroicons/react/20/solid/esm/PaperAirplaneIcon.js +0 -24
  520. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowTrendingDownIcon.js +0 -28
  521. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowTrendingUpIcon.js +0 -28
  522. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowUturnLeftIcon.js +0 -28
  523. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowUturnRightIcon.js +0 -28
  524. package/dist/node_modules/@heroicons/react/24/outline/esm/Bars3BottomLeftIcon.js +0 -28
  525. package/dist/node_modules/@heroicons/react/24/outline/esm/Bars3BottomRightIcon.js +0 -28
  526. package/dist/node_modules/@heroicons/react/24/outline/esm/Bars3Icon.js +0 -28
  527. package/dist/node_modules/@heroicons/react/24/outline/esm/BoldIcon.js +0 -27
  528. package/dist/node_modules/@heroicons/react/24/outline/esm/CalendarIcon.js +0 -28
  529. package/dist/node_modules/@heroicons/react/24/outline/esm/CheckIcon.js +0 -28
  530. package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronDoubleLeftIcon.js +0 -28
  531. package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronDoubleRightIcon.js +0 -28
  532. package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronDownIcon.js +0 -28
  533. package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronLeftIcon.js +0 -28
  534. package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronRightIcon.js +0 -28
  535. package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronUpDownIcon.js +0 -28
  536. package/dist/node_modules/@heroicons/react/24/outline/esm/ChevronUpIcon.js +0 -28
  537. package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js +0 -28
  538. package/dist/node_modules/@heroicons/react/24/outline/esm/Cog6ToothIcon.js +0 -32
  539. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentIcon.js +0 -28
  540. package/dist/node_modules/@heroicons/react/24/outline/esm/EllipsisVerticalIcon.js +0 -28
  541. package/dist/node_modules/@heroicons/react/24/outline/esm/ItalicIcon.js +0 -28
  542. package/dist/node_modules/@heroicons/react/24/outline/esm/LockClosedIcon.js +0 -28
  543. package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js +0 -28
  544. package/dist/node_modules/@heroicons/react/24/outline/esm/MinusIcon.js +0 -28
  545. package/dist/node_modules/@heroicons/react/24/outline/esm/PlusIcon.js +0 -28
  546. package/dist/node_modules/@heroicons/react/24/outline/esm/UnderlineIcon.js +0 -28
  547. package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js +0 -28
  548. package/dist/node_modules/@heroicons/react/24/solid/esm/ArrowPathIcon.js +0 -26
  549. package/dist/node_modules/@heroicons/react/24/solid/esm/BellIcon.js +0 -26
  550. package/dist/node_modules/@heroicons/react/24/solid/esm/CheckCircleIcon.js +0 -26
  551. package/dist/node_modules/@heroicons/react/24/solid/esm/ExclamationTriangleIcon.js +0 -26
  552. package/dist/node_modules/@heroicons/react/24/solid/esm/EyeIcon.js +0 -28
  553. package/dist/node_modules/@heroicons/react/24/solid/esm/EyeSlashIcon.js +0 -28
  554. package/dist/node_modules/@heroicons/react/24/solid/esm/InformationCircleIcon.js +0 -26
  555. package/dist/node_modules/@heroicons/react/24/solid/esm/LockClosedIcon.js +0 -26
  556. package/dist/node_modules/@heroicons/react/24/solid/esm/PaintBrushIcon.js +0 -26
  557. package/dist/node_modules/@heroicons/react/24/solid/esm/XCircleIcon.js +0 -26
  558. package/dist/node_modules/@heroicons/react/24/solid/esm/XMarkIcon.js +0 -26
  559. package/dist/node_modules/clsx/dist/clsx.js +0 -3
  560. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
  561. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -11
  562. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -103
  563. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -85
  564. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -59
  565. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -26
  566. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
  567. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
  568. package/dist/node_modules/framer-motion/dist/es/animation/utils/calc-child-stagger.js +0 -15
  569. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -40
  570. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -7
  571. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
  572. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -10
  573. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -87
  574. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -63
  575. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -165
  576. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -44
  577. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -14
  578. package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +0 -52
  579. package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +0 -33
  580. package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.js +0 -24
  581. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
  582. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
  583. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -12
  584. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
  585. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
  586. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -17
  587. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -9
  588. package/dist/node_modules/framer-motion/dist/es/context/ReorderContext.js +0 -5
  589. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -8
  590. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -6
  591. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
  592. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -15
  593. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -501
  594. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -27
  595. package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.js +0 -116
  596. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -129
  597. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -41
  598. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -30
  599. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -157
  600. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -50
  601. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -33
  602. package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -9
  603. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -36
  604. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -40
  605. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
  606. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
  607. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
  608. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
  609. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -147
  610. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
  611. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
  612. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -72
  613. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -49
  614. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -107
  615. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -11
  616. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -3
  617. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -38
  618. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -139
  619. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -79
  620. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -57
  621. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -91
  622. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -33
  623. package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -31
  624. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -119
  625. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -52
  626. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -54
  627. package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -17
  628. package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -31
  629. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -13
  630. package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -27
  631. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -1582
  632. package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -19
  633. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -112
  634. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -41
  635. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -35
  636. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -13
  637. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -49
  638. package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -5
  639. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -26
  640. package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -17
  641. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -489
  642. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -45
  643. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
  644. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
  645. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -43
  646. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -14
  647. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -28
  648. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -6
  649. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -59
  650. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -30
  651. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -44
  652. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
  653. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -57
  654. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -65
  655. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -62
  656. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -8
  657. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -17
  658. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -19
  659. package/dist/node_modules/framer-motion/dist/es/render/store.js +0 -3
  660. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -45
  661. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -33
  662. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -24
  663. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
  664. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -57
  665. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -30
  666. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
  667. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -3
  668. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -32
  669. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
  670. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -19
  671. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -357
  672. package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -3
  673. package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -24
  674. package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -28
  675. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -13
  676. package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -8
  677. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -51
  678. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
  679. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -36
  680. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -31
  681. package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -12
  682. package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -20
  683. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
  684. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -6
  685. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -3
  686. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
  687. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -19
  688. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -5
  689. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -47
  690. package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -14
  691. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -18
  692. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
  693. package/dist/node_modules/framer-motion/dist/es/value/use-combine-values.js +0 -37
  694. package/dist/node_modules/framer-motion/dist/es/value/use-computed.js +0 -19
  695. package/dist/node_modules/framer-motion/dist/es/value/use-motion-value.js +0 -38
  696. package/dist/node_modules/framer-motion/dist/es/value/use-spring.js +0 -22
  697. package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +0 -29
  698. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -20
  699. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
  700. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -12
  701. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -176
  702. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -341
  703. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -158
  704. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -65
  705. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
  706. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -87
  707. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -51
  708. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +0 -27
  709. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +0 -86
  710. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +0 -176
  711. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -17
  712. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -19
  713. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -5
  714. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
  715. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -131
  716. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -147
  717. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -11
  718. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -9
  719. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
  720. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -5
  721. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
  722. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -15
  723. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -30
  724. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -36
  725. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -26
  726. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -42
  727. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -42
  728. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -7
  729. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -30
  730. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -15
  731. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
  732. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -18
  733. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -3
  734. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -28
  735. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
  736. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -29
  737. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -43
  738. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -15
  739. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -12
  740. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -20
  741. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -71
  742. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -6
  743. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -6
  744. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -12
  745. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -81
  746. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -31
  747. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -9
  748. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -28
  749. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -37
  750. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -83
  751. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -13
  752. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -38
  753. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -3
  754. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -20
  755. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -18
  756. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -15
  757. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -3
  758. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -83
  759. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -9
  760. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
  761. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -28
  762. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -79
  763. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -11
  764. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -11
  765. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -11
  766. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -47
  767. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -93
  768. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -5
  769. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -14
  770. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -26
  771. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -16
  772. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -14
  773. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -7
  774. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -15
  775. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
  776. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
  777. package/dist/node_modules/motion-dom/dist/es/utils/transform.js +0 -14
  778. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -325
  779. package/dist/node_modules/motion-dom/dist/es/value/spring-value.js +0 -54
  780. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -9
  781. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -40
  782. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -42
  783. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -22
  784. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -32
  785. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -25
  786. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -29
  787. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -30
  788. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -91
  789. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -15
  790. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
  791. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -30
  792. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -50
  793. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -31
  794. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
  795. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -18
  796. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -6
  797. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -15
  798. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -3
  799. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -15
  800. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -3
  801. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -10
  802. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -5
  803. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -5
  804. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -3
  805. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -3
  806. package/dist/node_modules/motion-utils/dist/es/array.js +0 -21
  807. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -9
  808. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
  809. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
  810. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
  811. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -51
  812. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
  813. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -5
  814. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -5
  815. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -3
  816. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -5
  817. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -41
  818. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -18
  819. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -7
  820. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -3
  821. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -6
  822. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -5
  823. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -6
  824. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -11
  825. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
  826. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -11
  827. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -19
  828. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -40
  829. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -12
  830. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -11
  831. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -11
  832. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -368
  833. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
  834. package/dist/node_modules/react/jsx-runtime.js +0 -19
  835. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2956
  836. package/dist/node_modules/tslib/tslib.es6.js +0 -56
  837. /package/dist/components/{ai → core}/Message/MessageActions.d.ts +0 -0
  838. /package/dist/components/{ai → core}/Message/MessageContent.d.ts +0 -0
  839. /package/dist/components/{ai → core}/Message/MessageTimestamp.d.ts +0 -0
  840. /package/dist/components/{ai → core}/Message/TypeWriter.d.ts +0 -0
@@ -0,0 +1,103 @@
1
+ import { __rest, __assign } from '/Users/ggn/Development/ui-flik/node_modules/tslib/tslib.es6.js';
2
+ import React__default, { useId } from 'react';
3
+ import { cn } from '../../../utils/cn.js';
4
+ import '../../../utils/streamingErrors.js';
5
+ import '../../../utils/optimisticErrors.js';
6
+ import '../../../utils/actionQueue.js';
7
+
8
+ /**
9
+ * Branded language icons for CodeBlock
10
+ * Maps language names to their respective SVG icons
11
+ */
12
+ var LanguageIcon = function (_a) {
13
+ var language = _a.language, className = _a.className, props = __rest(_a, ["language", "className"]);
14
+ var id = useId();
15
+ var normalizedLang = language.toLowerCase();
16
+ switch (normalizedLang) {
17
+ case "python":
18
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
19
+ React__default.createElement("linearGradient", { id: "".concat(id, "-python-a"), gradientUnits: "userSpaceOnUse", x1: "70.252", y1: "1237.476", x2: "170.659", y2: "1151.089", gradientTransform: "matrix(.563 0 0 -.568 -29.215 707.817)" },
20
+ React__default.createElement("stop", { offset: "0", stopColor: "#5A9FD4" }),
21
+ React__default.createElement("stop", { offset: "1", stopColor: "#306998" })),
22
+ React__default.createElement("linearGradient", { id: "".concat(id, "-python-b"), gradientUnits: "userSpaceOnUse", x1: "209.474", y1: "1098.811", x2: "173.62", y2: "1149.537", gradientTransform: "matrix(.563 0 0 -.568 -29.215 707.817)" },
23
+ React__default.createElement("stop", { offset: "0", stopColor: "#FFD43B" }),
24
+ React__default.createElement("stop", { offset: "1", stopColor: "#FFE873" })),
25
+ React__default.createElement("path", { fill: "url(#".concat(id, "-python-a)"), d: "M63.391 1.988c-4.222.02-8.252.379-11.8 1.007-10.45 1.846-12.346 5.71-12.346 12.837v9.411h24.693v3.137H29.977c-7.176 0-13.46 4.313-15.426 12.521-2.268 9.405-2.368 15.275 0 25.096 1.755 7.311 5.947 12.519 13.124 12.519h8.491V67.234c0-8.151 7.051-15.34 15.426-15.34h24.665c6.866 0 12.346-5.654 12.346-12.548V15.833c0-6.693-5.646-11.72-12.346-12.837-4.244-.706-8.645-1.027-12.866-1.008zM50.037 9.557c2.55 0 4.634 2.117 4.634 4.721 0 2.593-2.083 4.69-4.634 4.69-2.56 0-4.633-2.097-4.633-4.69-.001-2.604 2.073-4.721 4.633-4.721z", transform: "translate(0 10.26)" }),
26
+ React__default.createElement("path", { fill: "url(#".concat(id, "-python-b)"), d: "M91.682 28.38v10.966c0 8.5-7.208 15.655-15.426 15.655H51.591c-6.756 0-12.346 5.783-12.346 12.549v23.515c0 6.691 5.818 10.628 12.346 12.547 7.816 2.297 15.312 2.713 24.665 0 6.216-1.801 12.346-5.423 12.346-12.547v-9.412H63.938v-3.138h37.012c7.176 0 9.852-5.005 12.348-12.519 2.578-7.735 2.467-15.174 0-25.096-1.774-7.145-5.161-12.521-12.348-12.521h-9.268zM77.809 87.927c2.561 0 4.634 2.097 4.634 4.692 0 2.602-2.074 4.719-4.634 4.719-2.55 0-4.633-2.117-4.633-4.719 0-2.595 2.083-4.692 4.633-4.692z", transform: "translate(0 10.26)" }),
27
+ React__default.createElement("radialGradient", { id: "".concat(id, "-python-c"), cx: "1825.678", cy: "444.45", r: "26.743", gradientTransform: "matrix(0 -.24 -1.055 0 532.979 557.576)", gradientUnits: "userSpaceOnUse" },
28
+ React__default.createElement("stop", { offset: "0", stopColor: "#B8B8B8", stopOpacity: ".498" }),
29
+ React__default.createElement("stop", { offset: "1", stopColor: "#7F7F7F", stopOpacity: "0" })),
30
+ React__default.createElement("path", { opacity: ".444", fill: "url(#".concat(id, "-python-c)"), d: "M97.309 119.597c0 3.543-14.816 6.416-33.091 6.416-18.276 0-33.092-2.873-33.092-6.416 0-3.544 14.815-6.417 33.092-6.417 18.275 0 33.091 2.872 33.091 6.417z" })));
31
+ case "js":
32
+ case "javascript":
33
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
34
+ React__default.createElement("path", { fill: "#F0DB4F", d: "M1.408 1.408h125.184v125.185H1.408z" }),
35
+ React__default.createElement("path", { fill: "#323330", d: "M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z" })));
36
+ case "ts":
37
+ case "tsx":
38
+ case "typescript":
39
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
40
+ React__default.createElement("path", { fill: "#fff", d: "M22.67 47h99.67v73.67H22.67z" }),
41
+ React__default.createElement("path", { fill: "#007acc", d: "M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 017.82 4.5 20.58 20.58 0 013 4c0 .16-5.4 3.81-8.69 5.85-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 00-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.58 4.58 0 00.54 2.34c.83 1.73 2.38 2.76 7.24 4.86 8.95 3.85 12.78 6.39 15.16 10 2.66 4 3.25 10.46 1.45 15.24-2 5.2-6.9 8.73-13.83 9.9a38.32 38.32 0 01-9.52-.1 23 23 0 01-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9.34 9.34 0 011.15-.73L82 101l3.59-2.08.75 1.11a16.78 16.78 0 004.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 00.69-6.92c-1-1.39-3-2.56-8.59-5-6.45-2.78-9.23-4.5-11.77-7.24a16.48 16.48 0 01-3.43-6.25 25 25 0 01-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.66 31.66 0 019.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49.19 49.19 0 01.12-5.17C29.08 59 39 59 51 59h21.83z" })));
42
+ case "java":
43
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
44
+ React__default.createElement("path", { fill: "#0074BD", d: "M47.617 98.12s-4.767 2.774 3.397 3.71c9.892 1.13 14.947.968 25.845-1.092 0 0 2.871 1.795 6.873 3.351-24.439 10.47-55.308-.607-36.115-5.969zm-2.988-13.665s-5.348 3.959 2.823 4.805c10.567 1.091 18.91 1.18 33.354-1.6 0 0 1.993 2.025 5.132 3.131-29.542 8.64-62.446.68-41.309-6.336z" }),
45
+ React__default.createElement("path", { fill: "#EA2D2E", d: "M69.802 61.271c6.025 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.792 15.635-29.58 0 .001-42.731 10.67-22.324 34.187z" }),
46
+ React__default.createElement("path", { fill: "#0074BD", d: "M102.123 108.229s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.094.171-4.451-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.953-3.487-32.013 6.85-13.743 9.815 49.821 8.076 90.817-3.637 77.896-9.468zM49.912 70.294s-22.686 5.389-8.033 7.348c6.188.828 18.518.638 30.011-.326 9.39-.789 18.813-2.474 18.813-2.474s-3.308 1.419-5.704 3.053c-23.042 6.061-67.544 3.238-54.731-2.958 10.832-5.239 19.644-4.643 19.644-4.643zm40.697 22.747c23.421-12.167 12.591-23.86 5.032-22.285-1.848.385-2.677.72-2.677.72s.688-1.079 2-1.543c14.953-5.255 26.451 15.503-4.823 23.725 0-.002.359-.327.468-.617z" }),
47
+ React__default.createElement("path", { fill: "#EA2D2E", d: "M76.491 1.587S89.459 14.563 64.188 34.51c-20.266 16.006-4.621 25.13-.007 35.559-11.831-10.673-20.509-20.07-14.688-28.815C58.041 28.42 81.722 22.195 76.491 1.587z" }),
48
+ React__default.createElement("path", { fill: "#0074BD", d: "M52.214 126.021c22.476 1.437 57-.8 57.817-11.436 0 0-1.571 4.032-18.577 7.231-19.186 3.612-42.854 3.191-56.887.874 0 .001 2.875 2.381 17.647 3.331z" })));
49
+ case "csharp":
50
+ case "cs":
51
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
52
+ React__default.createElement("path", { fill: "#9B4F96", d: "M115.4 30.7L67.1 2.9c-.8-.5-1.9-.7-3.1-.7-1.2 0-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.4 1 3.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7z" }),
53
+ React__default.createElement("path", { fill: "#68217A", d: "M10.7 95.3c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7 1.2 0 2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c0-.9-.1-1.9-.6-2.8l-106.6 62z" }),
54
+ React__default.createElement("path", { fill: "#fff", d: "M85.3 76.1C81.1 83.5 73.1 88.5 64 88.5c-13.5 0-24.5-11-24.5-24.5s11-24.5 24.5-24.5c9.1 0 17.1 5 21.3 12.5l13-7.5c-6.8-11.9-19.6-20-34.3-20-21.8 0-39.5 17.7-39.5 39.5s17.7 39.5 39.5 39.5c14.6 0 27.4-8 34.2-19.8l-12.9-7.6zM97 66.2l.9-4.3h-4.2v-4.7h5.1L100 51h4.9l-1.2 6.1h3.8l1.2-6.1h4.8l-1.2 6.1h2.4v4.7h-3.3l-.9 4.3h4.2v4.7h-5.1l-1.2 6h-4.9l1.2-6h-3.8l-1.2 6h-4.8l1.2-6h-2.4v-4.7H97zm4.8 0h3.8l.9-4.3h-3.8l-.9 4.3z" })));
55
+ case "go":
56
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
57
+ React__default.createElement("g", { fill: "#00acd7", fillRule: "evenodd" },
58
+ React__default.createElement("path", { d: "M11.156 54.829c-.243 0-.303-.122-.182-.303l1.273-1.637c.12-.182.424-.303.666-.303H34.55c.243 0 .303.182.182.364l-1.03 1.576c-.121.181-.424.363-.606.363zM2.004 60.404c-.242 0-.303-.12-.182-.303l1.273-1.636c.121-.182.424-.303.667-.303h27.636c.242 0 .364.182.303.364l-.485 1.454c-.06.243-.303.364-.545.364zM16.67 65.98c-.242 0-.302-.182-.181-.364l.848-1.515c.122-.182.364-.363.607-.363h12.12c.243 0 .364.181.364.424l-.12 1.454c0 .243-.243.425-.425.425zM79.58 53.738c-3.819.97-6.425 1.697-10.182 2.666-.91.243-.97.303-1.758-.606-.909-1.03-1.576-1.697-2.848-2.303-3.819-1.878-7.516-1.333-10.97.91-4.121 2.666-6.242 6.605-6.182 11.514.06 4.849 3.394 8.849 8.182 9.516 4.121.545 7.576-.91 10.303-4 .545-.667 1.03-1.394 1.636-2.243H56.064c-1.272 0-1.575-.788-1.151-1.818.788-1.879 2.242-5.03 3.09-6.606.183-.364.607-.97 1.516-.97h22.06c-.12 1.637-.12 3.273-.363 4.91-.667 4.363-2.303 8.363-4.97 11.878-4.364 5.758-10.06 9.333-17.273 10.303-5.939.788-11.454-.364-16.302-4-4.485-3.394-7.03-7.879-7.697-13.454-.788-6.606 1.151-12.546 5.151-17.758 4.303-5.636 10-9.212 16.97-10.485 5.697-1.03 11.151-.363 16.06 2.97 3.212 2.121 5.515 5.03 7.03 8.545.364.546.122.849-.606 1.03z" }),
59
+ React__default.createElement("path", { d: "M99.64 87.253c-5.515-.122-10.546-1.697-14.788-5.334-3.576-3.09-5.818-7.03-6.545-11.697-1.091-6.848.787-12.909 4.909-18.302 4.424-5.819 9.757-8.849 16.97-10.122 6.181-1.09 12-.484 17.272 3.091 4.788 3.273 7.757 7.697 8.545 13.515 1.03 8.182-1.333 14.849-6.97 20.546-4 4.06-8.909 6.606-14.545 7.757-1.636.303-3.273.364-4.848.546zm14.424-24.485c-.06-.788-.06-1.394-.182-2-1.09-6-6.606-9.394-12.363-8.06-5.637 1.272-9.273 4.848-10.606 10.545-1.091 4.727 1.212 9.515 5.575 11.454 3.334 1.455 6.667 1.273 9.879-.363 4.788-2.485 7.394-6.364 7.697-11.576z", fillRule: "nonzero" }))));
60
+ case "ruby":
61
+ case "rb":
62
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
63
+ React__default.createElement("path", { fill: "#d91404", d: "m35.971 111.33 81.958 11.188c-9.374-15.606-18.507-30.813-27.713-46.144Zm89.71-86.383L93.513 73.339c-.462.696-1.061 1.248-.41 2.321 8.016 13.237 15.969 26.513 23.942 39.777 1.258 2.095 2.53 4.182 4.157 6.192l4.834-96.58zM16.252 66.22c.375.355 1.311.562 1.747.347 7.689-3.779 15.427-7.474 22.948-11.564 2.453-1.333 4.339-3.723 6.452-5.661 6.997-6.417 13.983-12.847 20.966-19.278.427-.395.933-.777 1.188-1.275 2.508-4.902 4.973-9.829 7.525-14.898-3.043-1.144-5.928-2.263-8.849-3.281-.396-.138-1.02.136-1.449.375-6.761 3.777-13.649 7.353-20.195 11.472-3.275 2.061-5.943 5.098-8.843 7.743-4.674 4.266-9.342 8.542-13.948 12.882a24.011 24.011 0 0 0-3.288 3.854c-3.15 4.587-6.206 9.24-9.402 14.025 1.786 1.847 3.41 3.613 5.148 5.259zm28.102-6.271-11.556 48.823 54.3-34.987zm76.631-34.846-46.15 7.71 15.662 38.096zM44.996 56.644l41.892 13.6c-5.25-12.79-10.32-25.133-15.495-37.737ZM16.831 75.643 2.169 110.691l27.925-.825Zm13.593 26.096.346-.076c3.353-13.941 6.754-27.786 10.177-42.272L18.544 71.035c3.819 9.926 7.891 20.397 11.88 30.704zm84.927-78.897c-4.459-1.181-8.918-2.366-13.379-3.539-6.412-1.686-12.829-3.351-19.237-5.052-.801-.213-1.38-.352-1.851.613-2.265 4.64-4.6 9.245-6.901 13.868-.071.143-.056.328-.111.687l41.47-6.285zM89.482 12.288l36.343 10.054-6.005-17.11-30.285 6.715ZM33.505 114.007c-4.501-.519-9.122-.042-13.687.037-3.75.063-7.5.206-11.25.323-.386.012-.771.09-1.156.506 31.003 2.866 62.005 5.732 93.007 8.6l.063-.414-29.815-4.07c-12.384-1.691-24.747-3.551-37.162-4.982ZM2.782 99.994c3.995-9.27 7.973-18.546 11.984-27.809.401-.929.37-1.56-.415-2.308-1.678-1.597-3.237-3.318-5.071-5.226-2.479 12.24-4.897 24.177-7.317 36.113l.271.127c.185-.297.411-.578.548-.897zm78.74-90.153c6.737-1.738 13.572-3.097 20.367-4.613.44-.099.87-.244 1.303-.368l-.067-.332-29.194 3.928c2.741 1.197 4.853 2.091 7.591 1.385z" })));
64
+ case "php":
65
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
66
+ React__default.createElement("path", { d: "M64 30.332C28.654 30.332 0 45.407 0 64s28.654 33.668 64 33.668c35.345 0 64-15.075 64-33.668S99.346 30.332 64 30.332zm-5.982 9.81h7.293v.003l-1.745 8.968h6.496c4.087 0 6.908.714 8.458 2.139 1.553 1.427 2.017 3.737 1.398 6.93l-3.053 15.7h-7.408l2.902-14.929c.33-1.698.208-2.855-.365-3.473-.573-.617-1.793-.925-3.658-.925h-5.828L58.752 73.88h-7.291l6.557-33.738zM26.73 49.114h14.133c4.252 0 7.355 1.116 9.305 3.348 1.95 2.232 2.536 5.346 1.758 9.346-.32 1.649-.863 3.154-1.625 4.52-.763 1.364-1.76 2.613-2.99 3.745-1.468 1.373-3.098 2.353-4.891 2.936-1.794.585-4.08.875-6.858.875h-6.294l-1.745 8.97h-7.35l6.557-33.74zm57.366 0h14.13c4.252 0 7.353 1.116 9.303 3.348h.002c1.95 2.232 2.538 5.346 1.76 9.346-.32 1.649-.861 3.154-1.623 4.52-.763 1.364-1.76 2.613-2.992 3.745-1.467 1.373-3.098 2.353-4.893 2.936-1.794.585-4.077.875-6.855.875h-6.295l-1.744 8.97h-7.35l6.557-33.74zm-51.051 5.325-2.742 14.12h4.468c2.963 0 5.172-.556 6.622-1.673 1.45-1.116 2.428-2.981 2.937-5.592.485-2.507.264-4.279-.666-5.309-.93-1.032-2.79-1.547-5.584-1.547h-5.035zm57.363 0-2.744 14.12h4.47c2.965 0 5.17-.556 6.622-1.673 1.449-1.116 2.427-2.981 2.935-5.592.487-2.507.266-4.279-.664-5.309-.93-1.032-2.792-1.547-5.584-1.547h-5.035z" })));
67
+ case "html":
68
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
69
+ React__default.createElement("path", { fill: "#E44D26", d: "M19.037 113.876L9.032 1.661h109.936l-10.016 112.198-45.019 12.48z" }),
70
+ React__default.createElement("path", { fill: "#F16529", d: "M64 116.8l36.378-10.086 8.559-95.878H64z" }),
71
+ React__default.createElement("path", { fill: "#EBEBEB", d: "M64 52.455H45.788L44.53 38.361H64V24.599H29.489l.33 3.692 3.382 37.927H64zm0 35.743l-.061.017-15.327-4.14-.979-10.975H33.816l1.928 21.609 28.193 7.826.063-.017z" }),
72
+ React__default.createElement("path", { fill: "#fff", d: "M63.952 52.455v13.763h16.947l-1.597 17.849-15.35 4.143v14.319l28.215-7.82.207-2.325 3.234-36.233.335-3.696h-3.708zm0-27.856v13.762h33.244l.276-3.092.628-6.978.329-3.692z" })));
73
+ case "scss":
74
+ case "sass":
75
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
76
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", fill: "#CB6699", d: "M1.219 56.156c0 .703.207 1.167.323 1.618.756 2.933 2.381 5.45 4.309 7.746 2.746 3.272 6.109 5.906 9.554 8.383 2.988 2.148 6.037 4.248 9.037 6.38.515.366 1.002.787 1.561 1.236-.481.26-.881.489-1.297.7-3.959 2.008-7.768 4.259-11.279 6.986-2.116 1.644-4.162 3.391-5.607 5.674-2.325 3.672-3.148 7.584-1.415 11.761.506 1.22 1.278 2.274 2.367 3.053.353.252.749.502 1.162.6 1.058.249 2.136.412 3.207.609l3.033-.002c3.354-.299 6.407-1.448 9.166-3.352 4.312-2.976 7.217-6.966 8.466-12.087.908-3.722.945-7.448-.125-11.153a11.696 11.696 0 00-.354-1.014c-.13-.333-.283-.657-.463-1.072l6.876-3.954.103.088c-.125.409-.258.817-.371 1.23-.817 2.984-1.36 6.02-1.165 9.117.208 3.3 1.129 6.389 3.061 9.146 1.562 2.23 5.284 2.313 6.944.075.589-.795 1.16-1.626 1.589-2.513 1.121-2.315 2.159-4.671 3.23-7.011l.187-.428c-.077 1.108-.167 2.081-.208 3.055-.064 1.521.025 3.033.545 4.48.445 1.238 1.202 2.163 2.62 2.326.97.111 1.743-.333 2.456-.896a10.384 10.384 0 002.691-3.199c1.901-3.491 3.853-6.961 5.576-10.54 1.864-3.871 3.494-7.855 5.225-11.792l.286-.698c.409 1.607.694 3.181 1.219 4.671.61 1.729 1.365 3.417 2.187 5.058.389.775.344 1.278-.195 1.928-2.256 2.72-4.473 5.473-6.692 8.223-.491.607-.98 1.225-1.389 1.888a3.701 3.701 0 00-.48 1.364 1.737 1.737 0 001.383 1.971 9.661 9.661 0 002.708.193c3.097-.228 5.909-1.315 8.395-3.157 3.221-2.386 4.255-5.642 3.475-9.501-.211-1.047-.584-2.065-.947-3.074-.163-.455-.174-.774.123-1.198 2.575-3.677 4.775-7.578 6.821-11.569.081-.157.164-.314.306-.482.663 3.45 1.661 6.775 3.449 9.792-.912.879-1.815 1.676-2.632 2.554-1.799 1.934-3.359 4.034-4.173 6.595-.35 1.104-.619 2.226-.463 3.405.242 1.831 1.742 3.021 3.543 2.604 3.854-.892 7.181-2.708 9.612-5.925 1.636-2.166 1.785-4.582 1.1-7.113-.188-.688-.411-1.365-.651-2.154.951-.295 1.878-.649 2.837-.868 4.979-1.136 9.904-.938 14.702.86 2.801 1.05 5.064 2.807 6.406 5.571 1.639 3.379.733 6.585-2.452 8.721-.297.199-.637.356-.883.605a.869.869 0 00-.205.67c.021.123.346.277.533.275 1.047-.008 1.896-.557 2.711-1.121 2.042-1.413 3.532-3.314 3.853-5.817l.063-.188-.077-1.63c-.031-.094.023-.187.016-.258-.434-3.645-2.381-6.472-5.213-8.688-3.28-2.565-7.153-3.621-11.249-3.788a25.401 25.401 0 00-9.765 1.503c-.897.325-1.786.71-2.688 1.073-.121-.219-.251-.429-.358-.646-.926-1.896-2.048-3.708-2.296-5.882-.176-1.544-.392-3.086-.025-4.613.353-1.469.813-2.913 1.246-4.362.223-.746.066-1.164-.646-1.5a2.854 2.854 0 00-.786-.258c-1.75-.254-3.476-.109-5.171.384-.6.175-1.036.511-1.169 1.175-.076.381-.231.746-.339 1.122-.443 1.563-.757 3.156-1.473 4.645-1.794 3.735-3.842 7.329-5.938 10.897-.227.385-.466.763-.752 1.23-.736-1.54-1.521-2.922-1.759-4.542-.269-1.832-.481-3.661-.025-5.479.339-1.356.782-2.687 1.19-4.025.193-.636.104-.97-.472-1.305-.291-.169-.62-.319-.948-.368a11.643 11.643 0 00-5.354.438c-.543.176-.828.527-.994 1.087-.488 1.652-.904 3.344-1.589 4.915-2.774 6.36-5.628 12.687-8.479 19.013-.595 1.321-1.292 2.596-1.963 3.882-.17.326-.418.613-.63.919-.17-.201-.236-.339-.235-.477.005-.813-.092-1.65.063-2.436a172.189 172.189 0 011.578-7.099c.47-1.946 1.017-3.874 1.538-5.807.175-.647.178-1.252-.287-1.796-.781-.911-2.413-1.111-3.381-.409l-.428.242.083-.69c.204-1.479.245-2.953-.161-4.41-.506-1.816-1.802-2.861-3.686-2.803-.878.027-1.8.177-2.613.497-3.419 1.34-6.048 3.713-8.286 6.568a2.592 2.592 0 01-.757.654c-2.893 1.604-5.795 3.188-8.696 4.778l-3.229 1.769c-.866-.826-1.653-1.683-2.546-2.41-2.727-2.224-5.498-4.393-8.244-6.592-2.434-1.949-4.792-3.979-6.596-6.56-1.342-1.92-2.207-4.021-2.29-6.395-.105-3.025.753-5.789 2.293-8.362 1.97-3.292 4.657-5.934 7.611-8.327 3.125-2.53 6.505-4.678 10.008-6.639 4.901-2.743 9.942-5.171 15.347-6.774 5.542-1.644 11.165-2.585 16.965-1.929 2.28.258 4.494.78 6.527 1.895 1.557.853 2.834 1.97 3.428 3.716.586 1.718.568 3.459.162 5.204-.825 3.534-2.76 6.447-5.195 9.05-3.994 4.267-8.866 7.172-14.351 9.091a39.478 39.478 0 01-9.765 2.083c-2.729.229-5.401-.013-7.985-.962-1.711-.629-3.201-1.591-4.399-2.987-.214-.25-.488-.521-.887-.287-.391.23-.46.602-.329.979.219.626.421 1.278.762 1.838.857 1.405 2.107 2.424 3.483 3.298 2.643 1.681 5.597 2.246 8.66 2.377 4.648.201 9.183-.493 13.654-1.74 6.383-1.78 11.933-4.924 16.384-9.884 3.706-4.13 6.353-8.791 6.92-14.419.277-2.747-.018-5.438-1.304-7.944-1.395-2.715-3.613-4.734-6.265-6.125C68.756 18.179 64.588 17 60.286 17h-4.31c-5.21 0-10.247 1.493-15.143 3.274-3.706 1.349-7.34 2.941-10.868 4.703-7.683 3.839-14.838 8.468-20.715 14.833-2.928 3.171-5.407 6.67-6.833 10.79a40.494 40.494 0 00-1.111 3.746m27.839 36.013c-.333 4.459-2.354 8.074-5.657 11.002-1.858 1.646-3.989 2.818-6.471 3.23-.9.149-1.821.185-2.694-.188-1.245-.532-1.524-1.637-1.548-2.814-.037-1.876.62-3.572 1.521-5.186 1.176-2.104 2.9-3.708 4.741-5.206 2.9-2.361 6.046-4.359 9.268-6.245l.243-.1c.498 1.84.735 3.657.597 5.507zM54.303 70.98c-.235 1.424-.529 2.849-.945 4.229-1.438 4.777-3.285 9.406-5.282 13.973-.369.845-.906 1.616-1.373 2.417a1.689 1.689 0 01-.283.334c-.578.571-1.126.541-1.418-.206-.34-.868-.549-1.797-.729-2.716-.121-.617-.092-1.265-.13-1.897.039-4.494 1.41-8.578 3.736-12.38.959-1.568 2.003-3.062 3.598-4.054a6.27 6.27 0 011.595-.706c.85-.239 1.372.154 1.231 1.006zm17.164 21.868l6.169-7.203c.257 2.675-4.29 8.015-6.169 7.203zm19.703-4.847c-.436.25-.911.43-1.358.661-.409.212-.544-.002-.556-.354a2.385 2.385 0 01.093-.721c.833-2.938 2.366-5.446 4.647-7.486l.16-.082c1.085 3.035-.169 6.368-2.986 7.982z" })));
77
+ case "css":
78
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
79
+ React__default.createElement("path", { fill: "#1572B6", d: "M18.814 114.123L8.76 1.352h110.48l-10.064 112.754-45.243 12.543-45.119-12.526z" }),
80
+ React__default.createElement("path", { fill: "#33A9DC", d: "M64.001 117.062l36.559-10.136 8.601-96.354h-45.16v106.49z" }),
81
+ React__default.createElement("path", { fill: "#fff", d: "M64.001 51.429h18.302l1.264-14.163H64.001V23.435h34.682l-.332 3.711-3.4 38.114h-30.95V51.429z" }),
82
+ React__default.createElement("path", { fill: "#EBEBEB", d: "M64.083 87.349l-.061.018-15.403-4.159-.985-11.031H33.752l1.937 21.717 28.331 7.863.063-.018v-14.39z" }),
83
+ React__default.createElement("path", { fill: "#fff", d: "M81.127 64.675l-1.666 18.522-15.426 4.164v14.39l28.354-7.858.208-2.337 2.406-26.881H81.127z" }),
84
+ React__default.createElement("path", { fill: "#EBEBEB", d: "M64.048 23.435v13.831H30.64l-.277-3.108-.63-7.012-.331-3.711h34.646zm-.047 27.996v13.831H48.792l-.277-3.108-.631-7.012-.33-3.711h16.447z" })));
85
+ case "json":
86
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
87
+ React__default.createElement("path", { fill: "#505050", d: "M45.949 63.71c0 22.998 17.853 30.038 18.223 30.175l.016.005a.823.823 0 0 0-.05.021h-.001v.001h.001c20.306 6.899 40.668-10.261 40.668-41.251 0-17.054-7.595-37.361-27.7-48.894C105.528 10.083 126 34.393 126 63.903c0 35.822-30.182 62.003-61.873 62.003-2.078 0-37.078-10.935-37.216-51.164-.103-30.18 19.208-40.406 32.72-38.442.009.003-13.682 7.806-13.682 27.41z" }),
88
+ React__default.createElement("path", { fill: "#505050", fillRule: "evenodd", d: "M82.051 64.29c0-22.998-17.853-30.038-18.223-30.175l-.016-.005a.823.823 0 0 0 .05-.021h.001v-.001h-.001C43.556 27.19 23.193 44.35 23.193 75.34c0 17.054 7.595 37.361 27.7 48.894C22.472 117.917 2 93.607 2 64.097 2 28.275 32.182 2.094 63.873 2.094c2.078 0 37.078 10.935 37.216 51.164.103 30.18-19.207 40.406-32.72 38.443-.009-.004 13.682-7.807 13.682-27.411z", clipRule: "evenodd" })));
89
+ case "md":
90
+ case "markdown":
91
+ return (React__default.createElement("svg", __assign({ viewBox: "0 0 128 128", className: cn("size-4", className) }, props),
92
+ React__default.createElement("path", { style: {
93
+ isolation: "auto",
94
+ mixBlendMode: "normal",
95
+ }, d: "M11.95 24.348c-5.836 0-10.618 4.867-10.618 10.681v57.942c0 5.814 4.782 10.681 10.617 10.681h104.102c5.835 0 10.617-4.867 10.617-10.681V35.03c0-5.814-4.783-10.681-10.617-10.681H14.898l-.002-.002H11.95zm-.007 9.543h104.108c.625 0 1.076.423 1.076 1.14v57.94c0 .717-.453 1.14-1.076 1.14H11.949c-.623 0-1.076-.423-1.076 1.14V35.029c0-.715.451-1.135 1.07-1.138z", color: "#000", fontWeight: "400", fontFamily: "sans-serif", overflow: "visible" }),
96
+ React__default.createElement("path", { d: "M20.721 84.1V43.9H32.42l11.697 14.78L55.81 43.9h11.696v40.2H55.81V61.044l-11.694 14.78-11.698-14.78V84.1H20.722zm73.104 0L76.28 64.591h11.697V43.9h11.698v20.69h11.698zm0 0" })));
97
+ default:
98
+ // Fallback: Return null or a generic code icon
99
+ return null;
100
+ }
101
+ };
102
+
103
+ export { LanguageIcon };
@@ -0,0 +1,3 @@
1
+ export { CodeBlock } from "./CodeBlock";
2
+ export { codeBlockTheme } from "./CodeBlock.theme";
3
+ export type { CodeBlockProps, CodeBlockLanguage, CodeBlockTheme, CodeBlockThemeOverrides, } from "./CodeBlock.types";
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EditingIndicator Animations
3
+ *
4
+ * Framer Motion animation variants for typing indicators.
5
+ * Import from 'motion/react' (NOT 'framer-motion').
6
+ */
7
+ import { Variants } from "motion/react";
8
+ /**
9
+ * Container fade in/out animation with subtle scale
10
+ */
11
+ export declare const containerVariants: Variants;
12
+ /**
13
+ * Ellipsis dot animation
14
+ * Wave effect: Dots move up and down while fading
15
+ */
16
+ export declare const ellipsisVariants: Variants;
17
+ /**
18
+ * Pulse animation (alternative to ellipsis)
19
+ * Smooth fade in/out of the entire indicator
20
+ */
21
+ export declare const pulseVariants: Variants;
22
+ /**
23
+ * Avatar Container for staggering
24
+ * Ensures children (avatars) animate in sequence
25
+ */
26
+ export declare const avatarContainerVariants: Variants;
27
+ /**
28
+ * Individual Avatar animation
29
+ * Pop-in effect
30
+ */
31
+ export declare const avatarVariants: Variants;
@@ -0,0 +1,115 @@
1
+ /**
2
+ * EditingIndicator Animations
3
+ *
4
+ * Framer Motion animation variants for typing indicators.
5
+ * Import from 'motion/react' (NOT 'framer-motion').
6
+ */
7
+ /**
8
+ * Container fade in/out animation with subtle scale
9
+ */
10
+ var containerVariants = {
11
+ hidden: {
12
+ opacity: 0,
13
+ y: 8,
14
+ scale: 0.95,
15
+ transition: {
16
+ duration: 0.2,
17
+ ease: "easeOut",
18
+ },
19
+ },
20
+ visible: {
21
+ opacity: 1,
22
+ y: 0,
23
+ scale: 1,
24
+ transition: {
25
+ duration: 0.3,
26
+ ease: "backOut",
27
+ staggerChildren: 0.1, // Stagger avatar entry
28
+ },
29
+ },
30
+ exit: {
31
+ opacity: 0,
32
+ y: -4,
33
+ scale: 0.98,
34
+ transition: {
35
+ duration: 0.2,
36
+ ease: "easeIn",
37
+ },
38
+ },
39
+ };
40
+ /**
41
+ * Ellipsis dot animation
42
+ * Wave effect: Dots move up and down while fading
43
+ */
44
+ var ellipsisVariants = {
45
+ initial: {
46
+ opacity: 0.4,
47
+ y: 0,
48
+ },
49
+ animate: function (index) { return ({
50
+ opacity: [0.4, 1, 0.4],
51
+ y: [0, -3, 0], // Wave motion
52
+ transition: {
53
+ duration: 1.2,
54
+ repeat: Infinity,
55
+ delay: index * 0.15,
56
+ ease: "easeInOut",
57
+ },
58
+ }); },
59
+ };
60
+ /**
61
+ * Pulse animation (alternative to ellipsis)
62
+ * Smooth fade in/out of the entire indicator
63
+ */
64
+ var pulseVariants = {
65
+ initial: {
66
+ scale: 1,
67
+ opacity: 0.5,
68
+ },
69
+ animate: {
70
+ scale: [1, 1.1, 1],
71
+ opacity: [0.5, 1, 0.5],
72
+ transition: {
73
+ duration: 1.5,
74
+ repeat: Infinity,
75
+ ease: "easeInOut",
76
+ },
77
+ },
78
+ };
79
+ /**
80
+ * Avatar Container for staggering
81
+ * Ensures children (avatars) animate in sequence
82
+ */
83
+ var avatarContainerVariants = {
84
+ hidden: { opacity: 0 },
85
+ visible: {
86
+ opacity: 1,
87
+ transition: {
88
+ staggerChildren: 0.1,
89
+ delayChildren: 0.1,
90
+ },
91
+ },
92
+ };
93
+ /**
94
+ * Individual Avatar animation
95
+ * Pop-in effect
96
+ */
97
+ var avatarVariants = {
98
+ hidden: {
99
+ opacity: 0,
100
+ scale: 0.5,
101
+ x: -10, // Slide in slightly from left
102
+ },
103
+ visible: {
104
+ opacity: 1,
105
+ scale: 1,
106
+ x: 0,
107
+ transition: {
108
+ type: "spring",
109
+ stiffness: 400,
110
+ damping: 25,
111
+ },
112
+ },
113
+ };
114
+
115
+ export { avatarContainerVariants, avatarVariants, containerVariants, ellipsisVariants, pulseVariants };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * EditingIndicator Component
3
+ *
4
+ * Displays "User is typing..." with animated ellipsis.
5
+ * Shows when one or more users are actively typing.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * <PresenceProvider channel="chat" currentUser={user} adapter={adapter}>
10
+ * <EditingIndicator position="above" showAvatars />
11
+ * <input type="text" />
12
+ * </PresenceProvider>
13
+ * ```
14
+ */
15
+ import React from "react";
16
+ import { EditingIndicatorProps } from "./EditingIndicator.types";
17
+ /**
18
+ * EditingIndicator - Show typing status
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * // Basic usage
23
+ * <EditingIndicator />
24
+ *
25
+ * // With avatars
26
+ * <EditingIndicator showAvatars avatarSize="xs" />
27
+ *
28
+ * // Custom position
29
+ * <EditingIndicator position="below" />
30
+ *
31
+ * // Custom styling
32
+ * <EditingIndicator className="text-blue-600" />
33
+ * ```
34
+ */
35
+ export declare const EditingIndicator: React.ForwardRefExoticComponent<EditingIndicatorProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,93 @@
1
+ import { __rest, __assign } from '/Users/ggn/Development/ui-flik/node_modules/tslib/tslib.es6.js';
2
+ import React__default, { useMemo } from 'react';
3
+ import { useReducedMotion, AnimatePresence, motion } from 'motion/react';
4
+ import { Avatar } from '../../core/Avatar/Avatar.js';
5
+ import { usePresenceContext } from '../PresenceProvider/PresenceContext.js';
6
+ import { editingIndicatorTheme } from './EditingIndicator.theme.js';
7
+ import { containerVariants, avatarContainerVariants, avatarVariants, ellipsisVariants, pulseVariants } from './EditingIndicator.animations.js';
8
+ import { cn } from '../../../utils/cn.js';
9
+ import { formatTypingText } from '../../../utils/presenceUtils.js';
10
+
11
+ /**
12
+ * EditingIndicator Component
13
+ *
14
+ * Displays "User is typing..." with animated ellipsis.
15
+ * Shows when one or more users are actively typing.
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * <PresenceProvider channel="chat" currentUser={user} adapter={adapter}>
20
+ * <EditingIndicator position="above" showAvatars />
21
+ * <input type="text" />
22
+ * </PresenceProvider>
23
+ * ```
24
+ */
25
+ /**
26
+ * EditingIndicator - Show typing status
27
+ *
28
+ * @example
29
+ * ```tsx
30
+ * // Basic usage
31
+ * <EditingIndicator />
32
+ *
33
+ * // With avatars
34
+ * <EditingIndicator showAvatars avatarSize="xs" />
35
+ *
36
+ * // Custom position
37
+ * <EditingIndicator position="below" />
38
+ *
39
+ * // Custom styling
40
+ * <EditingIndicator className="text-blue-600" />
41
+ * ```
42
+ */
43
+ var EditingIndicator = React__default.forwardRef(function (_a, ref) {
44
+ var _b;
45
+ var _c = _a.position, position = _c === void 0 ? "above" : _c, _d = _a.maxVisible, maxVisible = _d === void 0 ? 3 : _d, _e = _a.showAvatars, showAvatars = _e === void 0 ? false : _e, _f = _a.avatarSize, avatarSize = _f === void 0 ? "xs" : _f, formatText = _a.formatText, _g = _a.animation, animation = _g === void 0 ? "ellipsis" : _g, _h = _a.shouldAnimate, shouldAnimate = _h === void 0 ? true : _h, icon = _a.icon, _j = _a.theme, theme = _j === void 0 ? editingIndicatorTheme : _j, className = _a.className, props = __rest(_a, ["position", "maxVisible", "showAvatars", "avatarSize", "formatText", "animation", "shouldAnimate", "icon", "theme", "className"]);
46
+ // Get typing users from context
47
+ var typingUsers = usePresenceContext().typingUsers;
48
+ // Check for reduced motion preference
49
+ var prefersReducedMotion = useReducedMotion();
50
+ var enableAnimations = shouldAnimate && !prefersReducedMotion;
51
+ // Format typing text
52
+ var typingText = useMemo(function () {
53
+ if (typingUsers.length === 0)
54
+ return null;
55
+ return formatText
56
+ ? formatText(typingUsers)
57
+ : formatTypingText(typingUsers, maxVisible);
58
+ }, [typingUsers, maxVisible, formatText]);
59
+ // Build ARIA label (without ellipsis)
60
+ var ariaLabel = useMemo(function () {
61
+ if (typingUsers.length === 0)
62
+ return "No one is typing";
63
+ if (typingUsers.length === 1)
64
+ return "".concat(typingUsers[0].name, " is typing");
65
+ if (typingUsers.length === 2)
66
+ return "".concat(typingUsers[0].name, " and ").concat(typingUsers[1].name, " are typing");
67
+ return "".concat(typingUsers.length, " people are typing");
68
+ }, [typingUsers]);
69
+ // Merge theme
70
+ var mergedTheme = __assign(__assign({}, editingIndicatorTheme), theme);
71
+ // Build className
72
+ var containerClassName = cn(mergedTheme.baseStyle, (_b = mergedTheme.positions) === null || _b === void 0 ? void 0 : _b[position], className // User overrides take precedence
73
+ );
74
+ // Don't render if no one is typing
75
+ if (typingUsers.length === 0) {
76
+ return null;
77
+ }
78
+ return (React__default.createElement(AnimatePresence, { mode: "wait" },
79
+ React__default.createElement(motion.div, __assign({ ref: ref, className: containerClassName, role: "status", "aria-live": "polite", "aria-label": ariaLabel, "data-typing-count": typingUsers.length, variants: enableAnimations ? containerVariants : undefined, initial: enableAnimations ? "hidden" : undefined, animate: enableAnimations ? "visible" : undefined, exit: enableAnimations ? "exit" : undefined }, props),
80
+ showAvatars && typingUsers.length > 0 && (React__default.createElement(motion.div, { className: mergedTheme.avatarContainerStyle, variants: enableAnimations ? avatarContainerVariants : undefined }, typingUsers.slice(0, maxVisible).map(function (user) { return (React__default.createElement(motion.div, { key: user.id, variants: enableAnimations ? avatarVariants : undefined },
81
+ React__default.createElement(Avatar, { src: user.avatar, alt: user.name, size: avatarSize, className: "border-2 border-white" }))); }))),
82
+ icon ? (React__default.createElement("div", { className: "flex items-center gap-1" },
83
+ icon,
84
+ React__default.createElement("span", { className: mergedTheme.textStyle }, typingText))) : (React__default.createElement("span", { className: mergedTheme.textStyle },
85
+ typingText,
86
+ enableAnimations && animation === "ellipsis" && (React__default.createElement("span", { className: mergedTheme.ellipsisStyle, "aria-hidden": "true" }, [0, 1, 2].map(function (index) { return (React__default.createElement(motion.span, { key: index, custom: index, variants: ellipsisVariants, initial: "initial", animate: "animate" }, ".")); }))),
87
+ (!enableAnimations || animation === "none") && (React__default.createElement("span", { "aria-hidden": "true" }, "...")))),
88
+ enableAnimations && animation === "pulse" && (React__default.createElement(motion.span, { variants: pulseVariants, initial: "initial", animate: "animate", className: "inline-block w-2 h-2 rounded-full bg-[var(--color-primary)]", "aria-hidden": "true" })))));
89
+ });
90
+ // Display name for dev tools
91
+ EditingIndicator.displayName = "EditingIndicator";
92
+
93
+ export { EditingIndicator };
@@ -0,0 +1,2 @@
1
+ import { EditingIndicatorTheme } from "./EditingIndicator.types";
2
+ export declare const editingIndicatorTheme: EditingIndicatorTheme;
@@ -0,0 +1,13 @@
1
+ var editingIndicatorTheme = {
2
+ baseStyle: "flex items-center gap-2 text-[var(--color-text-secondary)]",
3
+ textStyle: "text-sm font-medium",
4
+ avatarContainerStyle: "inline-flex -space-x-1",
5
+ ellipsisStyle: "inline-flex gap-0.5 ml-0.5",
6
+ positions: {
7
+ above: "mb-2",
8
+ below: "mt-2",
9
+ inline: "",
10
+ },
11
+ };
12
+
13
+ export { editingIndicatorTheme };
@@ -0,0 +1,54 @@
1
+ /**
2
+ * EditingIndicator Type Definitions
3
+ *
4
+ * Defines props and interfaces for the EditingIndicator component.
5
+ */
6
+ import React from 'react';
7
+ import { TypingUser } from '../PresenceProvider/PresenceProvider.types';
8
+ import { AvatarSize } from '../../core/Avatar/Avatar.types';
9
+ /**
10
+ * Position of the indicator relative to input
11
+ */
12
+ export type EditingIndicatorPosition = 'above' | 'below' | 'inline';
13
+ /**
14
+ * Animation style for the indicator
15
+ */
16
+ export type EditingIndicatorAnimation = 'ellipsis' | 'pulse' | 'none';
17
+ /**
18
+ * EditingIndicator component props
19
+ */
20
+ export interface EditingIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
21
+ /** Position relative to input (default: 'above') */
22
+ position?: EditingIndicatorPosition;
23
+ /** Maximum users to display in text (default: 3) */
24
+ maxVisible?: number;
25
+ /** Show user avatars alongside text (default: false) */
26
+ showAvatars?: boolean;
27
+ /** Avatar size when shown (default: 'xs') */
28
+ avatarSize?: Extract<AvatarSize, 'xs' | 'sm'>;
29
+ /** Custom text formatter */
30
+ formatText?: (users: TypingUser[]) => string;
31
+ /** Animation style (default: 'ellipsis') */
32
+ animation?: EditingIndicatorAnimation;
33
+ /** Enable animations (default: true) */
34
+ shouldAnimate?: boolean;
35
+ /** Custom icon instead of text */
36
+ icon?: React.ReactNode;
37
+ /** Theme overrides */
38
+ theme?: EditingIndicatorTheme;
39
+ }
40
+ /**
41
+ * Theme configuration for EditingIndicator
42
+ */
43
+ export interface EditingIndicatorTheme {
44
+ /** Base container style */
45
+ baseStyle?: string;
46
+ /** Text label style */
47
+ textStyle?: string;
48
+ /** Avatar container style */
49
+ avatarContainerStyle?: string;
50
+ /** Ellipsis dots style */
51
+ ellipsisStyle?: string;
52
+ /** Position variants */
53
+ positions?: Partial<Record<EditingIndicatorPosition, string>>;
54
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * EditingIndicator - Typing status indicator
3
+ *
4
+ * @module collaboration/EditingIndicator
5
+ */
6
+ export { EditingIndicator } from './EditingIndicator';
7
+ export { editingIndicatorTheme } from './EditingIndicator.theme';
8
+ export { containerVariants, ellipsisVariants, pulseVariants, } from './EditingIndicator.animations';
9
+ export type { EditingIndicatorProps, EditingIndicatorTheme, EditingIndicatorPosition, EditingIndicatorAnimation, } from './EditingIndicator.types';
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { GenerativeRendererProps } from "./GenerativeRenderer.types";
3
+ export declare const GenerativeRenderer: React.FC<GenerativeRendererProps>;
@@ -0,0 +1,104 @@
1
+ import { __rest, __assign } from '/Users/ggn/Development/ui-flik/node_modules/tslib/tslib.es6.js';
2
+ import React__default, { useState, useRef, useMemo, useCallback, useEffect } from 'react';
3
+ import { ExclamationTriangleIcon } from '@heroicons/react/24/outline';
4
+ import { cn } from '../../../utils/cn.js';
5
+ import { generativeRendererTheme } from './GenerativeRenderer.theme.js';
6
+ import { Spinner } from '../../core/Spinner/Spinner.js';
7
+
8
+ /**
9
+ * Wraps HTML content in a full document structure
10
+ */
11
+ var createHTMLDocument = function (content) {
12
+ // If content already has <html> or <body>, use as-is
13
+ if (content.includes("<html") || content.includes("<!DOCTYPE")) {
14
+ return content;
15
+ }
16
+ // Check if content has style tags
17
+ content.includes("<style");
18
+ return "\n<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <style>\n * { box-sizing: border-box; margin: 0; padding: 0; }\n body { \n font-family: system-ui, -apple-system, sans-serif;\n line-height: 1.5;\n padding: 16px;\n color: #1a1a1a;\n }\n </style>\n</head>\n<body>\n ".concat(content, "\n</body>\n</html>\n ").trim();
19
+ };
20
+ /**
21
+ * Converts markdown to basic HTML (lightweight, no external deps)
22
+ */
23
+ var markdownToHTML = function (markdown) {
24
+ var html = markdown
25
+ // Headers
26
+ .replace(/^### (.*$)/gim, "<h3>$1</h3>")
27
+ .replace(/^## (.*$)/gim, "<h2>$1</h2>")
28
+ .replace(/^# (.*$)/gim, "<h1>$1</h1>")
29
+ // Bold & Italic
30
+ .replace(/\*\*\*(.*)\*\*\*/gim, "<strong><em>$1</em></strong>")
31
+ .replace(/\*\*(.*)\*\*/gim, "<strong>$1</strong>")
32
+ .replace(/\*(.*)\*/gim, "<em>$1</em>")
33
+ // Links
34
+ .replace(/\[([^\]]+)\]\(([^)]+)\)/gim, '<a href="$2" target="_blank" rel="noopener">$1</a>')
35
+ // Code blocks
36
+ .replace(/```(\w+)?\n([\s\S]*?)```/gim, "<pre><code>$2</code></pre>")
37
+ // Inline code
38
+ .replace(/`([^`]+)`/gim, "<code>$1</code>")
39
+ // Line breaks to paragraphs
40
+ .replace(/\n\n/gim, "</p><p>")
41
+ .replace(/\n/gim, "<br>");
42
+ return "<p>".concat(html, "</p>");
43
+ };
44
+ var GenerativeRenderer = function (_a) {
45
+ var content = _a.content, _b = _a.type, type = _b === void 0 ? "html" : _b, onError = _a.onError, onLoad = _a.onLoad, _c = _a.sandboxOptions, sandboxOptions = _c === void 0 ? ["allow-scripts"] : _c, _d = _a.showLoading, showLoading = _d === void 0 ? true : _d, className = _a.className, _e = _a.title, title = _e === void 0 ? "Generated content preview" : _e, props = __rest(_a, ["content", "type", "onError", "onLoad", "sandboxOptions", "showLoading", "className", "title"]);
46
+ var _f = useState(true), isLoading = _f[0], setIsLoading = _f[1];
47
+ var _g = useState(null), error = _g[0], setError = _g[1];
48
+ var iframeRef = useRef(null);
49
+ // Process content based on type
50
+ var processedContent = useMemo(function () {
51
+ try {
52
+ switch (type) {
53
+ case "markdown":
54
+ return createHTMLDocument(markdownToHTML(content));
55
+ case "react":
56
+ // For React, we show the code in a styled container
57
+ // Full React rendering would require a bundler like Sucrase
58
+ return createHTMLDocument("\n <div style=\"background: #1e1e1e; padding: 16px; border-radius: 8px; overflow-x: auto;\">\n <pre style=\"color: #d4d4d4; font-family: 'Monaco', 'Consolas', monospace; font-size: 14px; margin: 0;\">".concat(content
59
+ .replace(/</g, "&lt;")
60
+ .replace(/>/g, "&gt;"), "</pre>\n </div>\n "));
61
+ case "html":
62
+ default:
63
+ return createHTMLDocument(content);
64
+ }
65
+ }
66
+ catch (err) {
67
+ var error_1 = err instanceof Error ? err : new Error("Failed to process content");
68
+ setError(error_1);
69
+ onError === null || onError === void 0 ? void 0 : onError(error_1);
70
+ return "";
71
+ }
72
+ }, [content, type, onError]);
73
+ // Handle iframe load
74
+ var handleLoad = useCallback(function () {
75
+ setIsLoading(false);
76
+ setError(null);
77
+ onLoad === null || onLoad === void 0 ? void 0 : onLoad();
78
+ }, [onLoad]);
79
+ // Handle iframe error
80
+ var handleError = useCallback(function () {
81
+ var error = new Error("Failed to load content in sandbox");
82
+ setError(error);
83
+ setIsLoading(false);
84
+ onError === null || onError === void 0 ? void 0 : onError(error);
85
+ }, [onError]);
86
+ // Reset loading state when content changes
87
+ useEffect(function () {
88
+ setIsLoading(true);
89
+ setError(null);
90
+ }, [content, type]);
91
+ // Build sandbox attribute
92
+ var sandboxAttribute = sandboxOptions.length > 0 ? sandboxOptions.join(" ") : undefined;
93
+ return (React__default.createElement("div", __assign({ className: cn(generativeRendererTheme.containerStyle, className) }, props),
94
+ showLoading && isLoading && !error && (React__default.createElement("div", { className: generativeRendererTheme.loadingStyle },
95
+ React__default.createElement(Spinner, { size: "md" }))),
96
+ error && (React__default.createElement("div", { className: generativeRendererTheme.errorStyle },
97
+ React__default.createElement(ExclamationTriangleIcon, { className: "size-8 mb-2" }),
98
+ React__default.createElement("p", { className: "font-medium" }, "Failed to render content"),
99
+ React__default.createElement("p", { className: "text-sm opacity-75 mt-1" }, error.message))),
100
+ !error && (React__default.createElement("iframe", { ref: iframeRef, srcDoc: processedContent, sandbox: sandboxAttribute, className: cn(generativeRendererTheme.iframeStyle, isLoading && "opacity-0"), title: title, onLoad: handleLoad, onError: handleError, "aria-label": title }))));
101
+ };
102
+ GenerativeRenderer.displayName = "GenerativeRenderer";
103
+
104
+ export { GenerativeRenderer };
@@ -0,0 +1,2 @@
1
+ import { GenerativeRendererTheme } from "./GenerativeRenderer.types";
2
+ export declare const generativeRendererTheme: GenerativeRendererTheme;
@@ -0,0 +1,8 @@
1
+ var generativeRendererTheme = {
2
+ containerStyle: "relative w-full h-full overflow-hidden rounded-lg border border-[var(--color-border)] bg-white",
3
+ iframeStyle: "w-full h-full border-0",
4
+ loadingStyle: "absolute inset-0 flex items-center justify-center bg-[var(--color-background)]",
5
+ errorStyle: "absolute inset-0 flex flex-col items-center justify-center bg-[var(--color-danger-50)] text-[var(--color-danger)] p-4 text-center",
6
+ };
7
+
8
+ export { generativeRendererTheme };