@admin-layout/tailwind-ui 12.2.4-alpha.6 → 12.2.4-alpha.60

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 (399) hide show
  1. package/lib/components/AIToolbar/components/AIToolBar.d.ts +22 -0
  2. package/lib/components/AIToolbar/components/AIToolBar.d.ts.map +1 -0
  3. package/lib/components/AIToolbar/components/AIToolBar.js +83 -0
  4. package/lib/components/AIToolbar/components/AIToolBar.js.map +1 -0
  5. package/lib/components/AIToolbar/components/AIToolbarPrimitives.d.ts +14 -0
  6. package/lib/components/AIToolbar/components/AIToolbarPrimitives.d.ts.map +1 -0
  7. package/lib/components/AIToolbar/components/AIToolbarPrimitives.js +60 -0
  8. package/lib/components/AIToolbar/components/AIToolbarPrimitives.js.map +1 -0
  9. package/lib/components/AIToolbar/components/CustomCursor.d.ts +2 -0
  10. package/lib/components/AIToolbar/components/CustomCursor.d.ts.map +1 -0
  11. package/lib/components/AIToolbar/components/CustomCursor.js +66 -0
  12. package/lib/components/AIToolbar/components/CustomCursor.js.map +1 -0
  13. package/lib/components/AIToolbar/components/DragButton.d.ts +9 -0
  14. package/lib/components/AIToolbar/components/DragButton.d.ts.map +1 -0
  15. package/lib/components/AIToolbar/components/DragButton.js +57 -0
  16. package/lib/components/AIToolbar/components/DragButton.js.map +1 -0
  17. package/lib/components/AIToolbar/components/Markdown/copy-button.d.ts +7 -0
  18. package/lib/components/AIToolbar/components/Markdown/copy-button.d.ts.map +1 -0
  19. package/lib/components/AIToolbar/components/Markdown/copy-button.js +30 -0
  20. package/lib/components/AIToolbar/components/Markdown/copy-button.js.map +1 -0
  21. package/lib/components/AIToolbar/components/Markdown/index.d.ts +7 -0
  22. package/lib/components/AIToolbar/components/Markdown/index.d.ts.map +1 -0
  23. package/lib/components/AIToolbar/components/Markdown/index.js +46 -0
  24. package/lib/components/AIToolbar/components/Markdown/index.js.map +1 -0
  25. package/lib/components/AIToolbar/components/completion/AssistantAvatar.d.ts +24 -0
  26. package/lib/components/AIToolbar/components/completion/AssistantAvatar.d.ts.map +1 -0
  27. package/lib/components/AIToolbar/components/completion/AssistantAvatar.js +48 -0
  28. package/lib/components/AIToolbar/components/completion/AssistantAvatar.js.map +1 -0
  29. package/lib/components/AIToolbar/components/completion/AssistantMessageActions.d.ts +28 -0
  30. package/lib/components/AIToolbar/components/completion/AssistantMessageActions.d.ts.map +1 -0
  31. package/lib/components/AIToolbar/components/completion/AssistantMessageActions.js +209 -0
  32. package/lib/components/AIToolbar/components/completion/AssistantMessageActions.js.map +1 -0
  33. package/lib/components/AIToolbar/components/completion/AssistantSenderBadge.d.ts +15 -0
  34. package/lib/components/AIToolbar/components/completion/AssistantSenderBadge.d.ts.map +1 -0
  35. package/lib/components/AIToolbar/components/completion/Audio.d.ts +3 -0
  36. package/lib/components/AIToolbar/components/completion/Audio.d.ts.map +1 -0
  37. package/lib/components/AIToolbar/components/completion/Audio.js +65 -0
  38. package/lib/components/AIToolbar/components/completion/Audio.js.map +1 -0
  39. package/lib/components/AIToolbar/components/completion/AutoSpeechVad.d.ts +11 -0
  40. package/lib/components/AIToolbar/components/completion/AutoSpeechVad.d.ts.map +1 -0
  41. package/lib/components/AIToolbar/components/completion/AutoSpeechVad.js +66 -0
  42. package/lib/components/AIToolbar/components/completion/AutoSpeechVad.js.map +1 -0
  43. package/lib/components/AIToolbar/components/completion/CharacterPicker.d.ts +3 -0
  44. package/lib/components/AIToolbar/components/completion/CharacterPicker.d.ts.map +1 -0
  45. package/lib/components/AIToolbar/components/completion/CharacterPicker.js +90 -0
  46. package/lib/components/AIToolbar/components/completion/CharacterPicker.js.map +1 -0
  47. package/lib/components/AIToolbar/components/completion/Files.d.ts +6 -0
  48. package/lib/components/AIToolbar/components/completion/Files.d.ts.map +1 -0
  49. package/lib/components/AIToolbar/components/completion/Files.js +134 -0
  50. package/lib/components/AIToolbar/components/completion/Files.js.map +1 -0
  51. package/lib/components/AIToolbar/components/completion/Input.d.ts +5 -0
  52. package/lib/components/AIToolbar/components/completion/Input.d.ts.map +1 -0
  53. package/lib/components/AIToolbar/components/completion/Input.js +283 -0
  54. package/lib/components/AIToolbar/components/completion/Input.js.map +1 -0
  55. package/lib/components/AIToolbar/components/completion/MessageHistory.d.ts +11 -0
  56. package/lib/components/AIToolbar/components/completion/MessageHistory.d.ts.map +1 -0
  57. package/lib/components/AIToolbar/components/completion/MessageHistory.js +131 -0
  58. package/lib/components/AIToolbar/components/completion/MessageHistory.js.map +1 -0
  59. package/lib/components/AIToolbar/components/completion/Screenshot.d.ts +6 -0
  60. package/lib/components/AIToolbar/components/completion/Screenshot.d.ts.map +1 -0
  61. package/lib/components/AIToolbar/components/completion/Screenshot.js +28 -0
  62. package/lib/components/AIToolbar/components/completion/Screenshot.js.map +1 -0
  63. package/lib/components/AIToolbar/components/completion/index.d.ts +11 -0
  64. package/lib/components/AIToolbar/components/completion/index.d.ts.map +1 -0
  65. package/lib/components/AIToolbar/components/completion/index.js +20 -0
  66. package/lib/components/AIToolbar/components/completion/index.js.map +1 -0
  67. package/lib/components/AIToolbar/components/index.d.ts +17 -0
  68. package/lib/components/AIToolbar/components/index.d.ts.map +1 -0
  69. package/lib/components/AIToolbar/components/speech/Header.d.ts +14 -0
  70. package/lib/components/AIToolbar/components/speech/Header.d.ts.map +1 -0
  71. package/lib/components/AIToolbar/components/speech/Header.js +82 -0
  72. package/lib/components/AIToolbar/components/speech/Header.js.map +1 -0
  73. package/lib/components/AIToolbar/components/speech/ModeSwitcher.d.ts +8 -0
  74. package/lib/components/AIToolbar/components/speech/ModeSwitcher.d.ts.map +1 -0
  75. package/lib/components/AIToolbar/components/speech/ModeSwitcher.js +44 -0
  76. package/lib/components/AIToolbar/components/speech/ModeSwitcher.js.map +1 -0
  77. package/lib/components/AIToolbar/components/speech/PermissionFlow.d.ts +13 -0
  78. package/lib/components/AIToolbar/components/speech/PermissionFlow.d.ts.map +1 -0
  79. package/lib/components/AIToolbar/components/speech/PermissionFlow.js +168 -0
  80. package/lib/components/AIToolbar/components/speech/PermissionFlow.js.map +1 -0
  81. package/lib/components/AIToolbar/components/speech/QuickActions.d.ts +13 -0
  82. package/lib/components/AIToolbar/components/speech/QuickActions.d.ts.map +1 -0
  83. package/lib/components/AIToolbar/components/speech/QuickActions.js +100 -0
  84. package/lib/components/AIToolbar/components/speech/QuickActions.js.map +1 -0
  85. package/lib/components/AIToolbar/components/speech/RecordingPanel.d.ts +14 -0
  86. package/lib/components/AIToolbar/components/speech/RecordingPanel.d.ts.map +1 -0
  87. package/lib/components/AIToolbar/components/speech/RecordingPanel.js +101 -0
  88. package/lib/components/AIToolbar/components/speech/RecordingPanel.js.map +1 -0
  89. package/lib/components/AIToolbar/components/speech/ResultsSection.d.ts +12 -0
  90. package/lib/components/AIToolbar/components/speech/ResultsSection.d.ts.map +1 -0
  91. package/lib/components/AIToolbar/components/speech/ResultsSection.js +142 -0
  92. package/lib/components/AIToolbar/components/speech/ResultsSection.js.map +1 -0
  93. package/lib/components/AIToolbar/components/speech/SettingsPanel.d.ts +14 -0
  94. package/lib/components/AIToolbar/components/speech/SettingsPanel.d.ts.map +1 -0
  95. package/lib/components/AIToolbar/components/speech/SettingsPanel.js +293 -0
  96. package/lib/components/AIToolbar/components/speech/SettingsPanel.js.map +1 -0
  97. package/lib/components/AIToolbar/components/speech/StatusIndicator.d.ts +10 -0
  98. package/lib/components/AIToolbar/components/speech/StatusIndicator.d.ts.map +1 -0
  99. package/lib/components/AIToolbar/components/speech/StatusIndicator.js +48 -0
  100. package/lib/components/AIToolbar/components/speech/StatusIndicator.js.map +1 -0
  101. package/lib/components/AIToolbar/components/speech/Warning.d.ts +6 -0
  102. package/lib/components/AIToolbar/components/speech/Warning.d.ts.map +1 -0
  103. package/lib/components/AIToolbar/components/speech/Warning.js +154 -0
  104. package/lib/components/AIToolbar/components/speech/Warning.js.map +1 -0
  105. package/lib/components/AIToolbar/components/speech/audio-visualizer.d.ts +7 -0
  106. package/lib/components/AIToolbar/components/speech/audio-visualizer.d.ts.map +1 -0
  107. package/lib/components/AIToolbar/components/speech/audio-visualizer.js +194 -0
  108. package/lib/components/AIToolbar/components/speech/audio-visualizer.js.map +1 -0
  109. package/lib/components/AIToolbar/components/speech/floatArrayToWav.d.ts +2 -0
  110. package/lib/components/AIToolbar/components/speech/floatArrayToWav.d.ts.map +1 -0
  111. package/lib/components/AIToolbar/components/speech/floatArrayToWav.js +32 -0
  112. package/lib/components/AIToolbar/components/speech/floatArrayToWav.js.map +1 -0
  113. package/lib/components/AIToolbar/components/speech/index.d.ts +4 -0
  114. package/lib/components/AIToolbar/components/speech/index.d.ts.map +1 -0
  115. package/lib/components/AIToolbar/components/speech/index.js +298 -0
  116. package/lib/components/AIToolbar/components/speech/index.js.map +1 -0
  117. package/lib/components/AIToolbar/components/speech/promptTemplates.d.ts +12 -0
  118. package/lib/components/AIToolbar/components/speech/promptTemplates.d.ts.map +1 -0
  119. package/lib/components/AIToolbar/components/speech/promptTemplates.js +114 -0
  120. package/lib/components/AIToolbar/components/speech/promptTemplates.js.map +1 -0
  121. package/lib/components/AIToolbar/components/types.d.ts +190 -0
  122. package/lib/components/AIToolbar/components/types.d.ts.map +1 -0
  123. package/lib/components/AIToolbar/hooks/useActiveCharacter.d.ts +52 -0
  124. package/lib/components/AIToolbar/hooks/useActiveCharacter.d.ts.map +1 -0
  125. package/lib/components/AIToolbar/hooks/useActiveCharacter.js +344 -0
  126. package/lib/components/AIToolbar/hooks/useActiveCharacter.js.map +1 -0
  127. package/lib/components/AIToolbar/hooks/useCharacterSprite.d.ts +14 -0
  128. package/lib/components/AIToolbar/hooks/useCharacterSprite.d.ts.map +1 -0
  129. package/lib/components/AIToolbar/hooks/useCharacterSprite.js +103 -0
  130. package/lib/components/AIToolbar/hooks/useCharacterSprite.js.map +1 -0
  131. package/lib/components/AIToolbar/hooks/useChatBackgroundImage.d.ts +10 -0
  132. package/lib/components/AIToolbar/hooks/useChatBackgroundImage.d.ts.map +1 -0
  133. package/lib/components/AIToolbar/hooks/useChatBackgroundImage.js +126 -0
  134. package/lib/components/AIToolbar/hooks/useChatBackgroundImage.js.map +1 -0
  135. package/lib/components/AIToolbar/index.d.ts +7 -0
  136. package/lib/components/AIToolbar/index.d.ts.map +1 -0
  137. package/lib/components/AIToolbar/utils/emotionClassifier.d.ts +19 -0
  138. package/lib/components/AIToolbar/utils/emotionClassifier.d.ts.map +1 -0
  139. package/lib/components/AIToolbar/utils/emotionClassifier.js +142 -0
  140. package/lib/components/AIToolbar/utils/emotionClassifier.js.map +1 -0
  141. package/lib/components/Button/Button.d.ts +1 -1
  142. package/lib/components/Button/Button.d.ts.map +1 -1
  143. package/lib/components/Button/Button.js +7 -6
  144. package/lib/components/Button/Button.js.map +1 -1
  145. package/lib/components/DatePicker/DatePicker.js +158 -140
  146. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  147. package/lib/components/Dialog/Dialog.d.ts +20 -0
  148. package/lib/components/Dialog/Dialog.d.ts.map +1 -0
  149. package/lib/components/Dialog/Dialog.js +111 -0
  150. package/lib/components/Dialog/Dialog.js.map +1 -0
  151. package/lib/components/Dialog/index.d.ts +3 -0
  152. package/lib/components/Dialog/index.d.ts.map +1 -0
  153. package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts +1 -2
  154. package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
  155. package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +2 -2
  156. package/lib/components/ErrorHandlers/ErrorBoundary.d.ts +1 -2
  157. package/lib/components/ErrorHandlers/ErrorBoundary.d.ts.map +1 -1
  158. package/lib/components/ErrorHandlers/ErrorBoundary.js +35 -28
  159. package/lib/components/ErrorHandlers/ErrorBoundary.js.map +1 -1
  160. package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts +1 -2
  161. package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts.map +1 -1
  162. package/lib/components/ErrorHandlers/LayoutErrorBoundary.js +20 -15
  163. package/lib/components/ErrorHandlers/LayoutErrorBoundary.js.map +1 -1
  164. package/lib/components/ErrorHandlers/RemixErrorBoundary.d.ts +4 -2
  165. package/lib/components/ErrorHandlers/RemixErrorBoundary.d.ts.map +1 -1
  166. package/lib/components/ErrorHandlers/RemixErrorBoundary.js +222 -100
  167. package/lib/components/ErrorHandlers/RemixErrorBoundary.js.map +1 -1
  168. package/lib/components/ErrorHandlers/SPAErrorBoundary.d.ts +4 -2
  169. package/lib/components/ErrorHandlers/SPAErrorBoundary.d.ts.map +1 -1
  170. package/lib/components/ErrorHandlers/SPAErrorBoundary.js +247 -82
  171. package/lib/components/ErrorHandlers/SPAErrorBoundary.js.map +1 -1
  172. package/lib/components/ErrorPages/403.d.ts +1 -2
  173. package/lib/components/ErrorPages/403.d.ts.map +1 -1
  174. package/lib/components/ErrorPages/403.js +26 -18
  175. package/lib/components/ErrorPages/403.js.map +1 -1
  176. package/lib/components/ErrorPages/404.d.ts +1 -2
  177. package/lib/components/ErrorPages/404.d.ts.map +1 -1
  178. package/lib/components/ErrorPages/404.js +26 -18
  179. package/lib/components/ErrorPages/404.js.map +1 -1
  180. package/lib/components/ErrorPages/500.d.ts +1 -2
  181. package/lib/components/ErrorPages/500.d.ts.map +1 -1
  182. package/lib/components/ErrorPages/500.js +26 -18
  183. package/lib/components/ErrorPages/500.js.map +1 -1
  184. package/lib/components/InputToolBar/InputToolBar.d.ts +8 -0
  185. package/lib/components/InputToolBar/InputToolBar.d.ts.map +1 -0
  186. package/lib/components/InputToolBar/InputToolBar.js +469 -0
  187. package/lib/components/InputToolBar/InputToolBar.js.map +1 -0
  188. package/lib/components/InputToolBar/defaults.d.ts +15 -0
  189. package/lib/components/InputToolBar/defaults.d.ts.map +1 -0
  190. package/lib/components/InputToolBar/defaults.js +59 -0
  191. package/lib/components/InputToolBar/defaults.js.map +1 -0
  192. package/lib/components/InputToolBar/index.d.ts +5 -0
  193. package/lib/components/InputToolBar/index.d.ts.map +1 -0
  194. package/lib/components/InputToolBar/types.d.ts +153 -0
  195. package/lib/components/InputToolBar/types.d.ts.map +1 -0
  196. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +1 -2
  197. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -1
  198. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +24 -19
  199. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -1
  200. package/lib/components/Markdown/MarkdownBreadcrumbs.d.ts +13 -0
  201. package/lib/components/Markdown/MarkdownBreadcrumbs.d.ts.map +1 -0
  202. package/lib/components/Markdown/MarkdownBreadcrumbs.js +34 -0
  203. package/lib/components/Markdown/MarkdownBreadcrumbs.js.map +1 -0
  204. package/lib/components/Markdown/MarkdownCopyButton.d.ts +10 -0
  205. package/lib/components/Markdown/MarkdownCopyButton.d.ts.map +1 -0
  206. package/lib/components/Markdown/MarkdownCopyButton.js +229 -0
  207. package/lib/components/Markdown/MarkdownCopyButton.js.map +1 -0
  208. package/lib/components/Markdown/MarkdownHeader.d.ts +13 -0
  209. package/lib/components/Markdown/MarkdownHeader.d.ts.map +1 -0
  210. package/lib/components/Markdown/MarkdownHeader.js +44 -0
  211. package/lib/components/Markdown/MarkdownHeader.js.map +1 -0
  212. package/lib/components/Markdown/MarkdownNavigation.d.ts +15 -0
  213. package/lib/components/Markdown/MarkdownNavigation.d.ts.map +1 -0
  214. package/lib/components/Markdown/MarkdownNavigation.js +38 -0
  215. package/lib/components/Markdown/MarkdownNavigation.js.map +1 -0
  216. package/lib/components/Markdown/MarkdownPage.d.ts +41 -0
  217. package/lib/components/Markdown/MarkdownPage.d.ts.map +1 -0
  218. package/lib/components/Markdown/MarkdownPage.js +238 -0
  219. package/lib/components/Markdown/MarkdownPage.js.map +1 -0
  220. package/lib/components/Markdown/MarkdownTableOfContents.d.ts +15 -0
  221. package/lib/components/Markdown/MarkdownTableOfContents.d.ts.map +1 -0
  222. package/lib/components/Markdown/MarkdownTableOfContents.js +57 -0
  223. package/lib/components/Markdown/MarkdownTableOfContents.js.map +1 -0
  224. package/lib/components/Markdown/index.d.ts +7 -0
  225. package/lib/components/Markdown/index.d.ts.map +1 -0
  226. package/lib/components/OTP/OTPInput.js +32 -30
  227. package/lib/components/OTP/OTPInput.js.map +1 -1
  228. package/lib/components/OTP/OTPVerification.js +75 -55
  229. package/lib/components/OTP/OTPVerification.js.map +1 -1
  230. package/lib/components/OTP/SingleInput.js +2 -2
  231. package/lib/components/OTP/SingleInput.js.map +1 -1
  232. package/lib/components/PageContainer/PageContainer.js +29 -22
  233. package/lib/components/PageContainer/PageContainer.js.map +1 -1
  234. package/lib/components/PageLoading/index.js +8 -7
  235. package/lib/components/PageLoading/index.js.map +1 -1
  236. package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +1 -2
  237. package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -1
  238. package/lib/components/ReactTable/Table.d.ts +1 -2
  239. package/lib/components/ReactTable/Table.d.ts.map +1 -1
  240. package/lib/components/ReactTable/Table.js +92 -71
  241. package/lib/components/ReactTable/Table.js.map +1 -1
  242. package/lib/components/ReactTable/TableFilters.d.ts +2 -3
  243. package/lib/components/ReactTable/TableFilters.d.ts.map +1 -1
  244. package/lib/components/ReactTable/TableFilters.js +40 -34
  245. package/lib/components/ReactTable/TableFilters.js.map +1 -1
  246. package/lib/components/Search/SearchInput.d.ts +1 -2
  247. package/lib/components/Search/SearchInput.d.ts.map +1 -1
  248. package/lib/components/Search/SearchInput.js +14 -13
  249. package/lib/components/Search/SearchInput.js.map +1 -1
  250. package/lib/components/Select/Select.d.ts +6 -6
  251. package/lib/components/Select/Select.d.ts.map +1 -1
  252. package/lib/components/Select/Select.js +60 -45
  253. package/lib/components/Select/Select.js.map +1 -1
  254. package/lib/components/Spin/index.js +14 -11
  255. package/lib/components/Spin/index.js.map +1 -1
  256. package/lib/components/ThemeProvider/ThemeProvider.d.ts +1 -1
  257. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  258. package/lib/components/ThemeProvider/ThemeProvider.js +29 -17
  259. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
  260. package/lib/components/ThemeProvider/ThemeToggle.js +28 -25
  261. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -1
  262. package/lib/components/ThemeProvider/types.d.ts +3 -3
  263. package/lib/components/ThemeProvider/types.d.ts.map +1 -1
  264. package/lib/components/YantraIcon.d.ts +6 -0
  265. package/lib/components/YantraIcon.d.ts.map +1 -0
  266. package/lib/components/YantraIcon.js +32 -0
  267. package/lib/components/YantraIcon.js.map +1 -0
  268. package/lib/components/index.d.ts +6 -0
  269. package/lib/components/index.d.ts.map +1 -1
  270. package/lib/hooks/activeCharacterPreference.d.ts +24 -0
  271. package/lib/hooks/activeCharacterPreference.d.ts.map +1 -0
  272. package/lib/hooks/activeCharacterPreference.js +64 -0
  273. package/lib/hooks/activeCharacterPreference.js.map +1 -0
  274. package/lib/hooks/index.d.ts +1 -0
  275. package/lib/hooks/index.d.ts.map +1 -1
  276. package/lib/hooks/useToast.d.ts +1 -1
  277. package/lib/hooks/useToast.d.ts.map +1 -1
  278. package/lib/hooks/useToast.js +46 -37
  279. package/lib/hooks/useToast.js.map +1 -1
  280. package/lib/index.js +1 -1
  281. package/lib/shardui/accordion.js +20 -16
  282. package/lib/shardui/accordion.js.map +1 -1
  283. package/lib/shardui/alert-dialog.d.ts +2 -2
  284. package/lib/shardui/alert-dialog.js +15 -13
  285. package/lib/shardui/alert-dialog.js.map +1 -1
  286. package/lib/shardui/alert.js +4 -4
  287. package/lib/shardui/alert.js.map +1 -1
  288. package/lib/shardui/avatar.js +4 -4
  289. package/lib/shardui/avatar.js.map +1 -1
  290. package/lib/shardui/badge.d.ts +1 -1
  291. package/lib/shardui/badge.d.ts.map +1 -1
  292. package/lib/shardui/badge.js +2 -2
  293. package/lib/shardui/badge.js.map +1 -1
  294. package/lib/shardui/breadcrumb.d.ts +2 -2
  295. package/lib/shardui/breadcrumb.js +19 -16
  296. package/lib/shardui/breadcrumb.js.map +1 -1
  297. package/lib/shardui/button.js +2 -2
  298. package/lib/shardui/button.js.map +1 -1
  299. package/lib/shardui/calendar.d.ts +1 -1
  300. package/lib/shardui/calendar.d.ts.map +1 -1
  301. package/lib/shardui/calendar.js +4 -4
  302. package/lib/shardui/card.js +7 -7
  303. package/lib/shardui/card.js.map +1 -1
  304. package/lib/shardui/carousel.js +40 -33
  305. package/lib/shardui/carousel.js.map +1 -1
  306. package/lib/shardui/chart.d.ts +1 -1
  307. package/lib/shardui/chart.d.ts.map +1 -1
  308. package/lib/shardui/chart.js +81 -66
  309. package/lib/shardui/chart.js.map +1 -1
  310. package/lib/shardui/checkbox.js +10 -8
  311. package/lib/shardui/checkbox.js.map +1 -1
  312. package/lib/shardui/command.d.ts +2 -2
  313. package/lib/shardui/command.d.ts.map +1 -1
  314. package/lib/shardui/command.js +28 -24
  315. package/lib/shardui/command.js.map +1 -1
  316. package/lib/shardui/context-menu.d.ts +1 -1
  317. package/lib/shardui/context-menu.js +41 -30
  318. package/lib/shardui/context-menu.js.map +1 -1
  319. package/lib/shardui/dialog.d.ts +2 -2
  320. package/lib/shardui/dialog.js +22 -17
  321. package/lib/shardui/dialog.js.map +1 -1
  322. package/lib/shardui/drawer.d.ts +3 -3
  323. package/lib/shardui/drawer.js +17 -14
  324. package/lib/shardui/drawer.js.map +1 -1
  325. package/lib/shardui/dropdown-menu.d.ts +1 -1
  326. package/lib/shardui/dropdown-menu.js +42 -31
  327. package/lib/shardui/dropdown-menu.js.map +1 -1
  328. package/lib/shardui/form.d.ts +1 -1
  329. package/lib/shardui/form.d.ts.map +1 -1
  330. package/lib/shardui/form.js +22 -19
  331. package/lib/shardui/form.js.map +1 -1
  332. package/lib/shardui/hover-card.js +2 -2
  333. package/lib/shardui/hover-card.js.map +1 -1
  334. package/lib/shardui/input-otp.js +16 -13
  335. package/lib/shardui/input-otp.js.map +1 -1
  336. package/lib/shardui/input.js +2 -2
  337. package/lib/shardui/input.js.map +1 -1
  338. package/lib/shardui/label.js +2 -2
  339. package/lib/shardui/label.js.map +1 -1
  340. package/lib/shardui/menubar.d.ts +1 -1
  341. package/lib/shardui/menubar.js +46 -35
  342. package/lib/shardui/menubar.js.map +1 -1
  343. package/lib/shardui/navigation-menu.js +28 -24
  344. package/lib/shardui/navigation-menu.js.map +1 -1
  345. package/lib/shardui/pagination.d.ts +5 -5
  346. package/lib/shardui/pagination.js +30 -22
  347. package/lib/shardui/pagination.js.map +1 -1
  348. package/lib/shardui/popover.js +10 -8
  349. package/lib/shardui/popover.js.map +1 -1
  350. package/lib/shardui/progress.js +10 -9
  351. package/lib/shardui/progress.js.map +1 -1
  352. package/lib/shardui/radio-group.js +11 -9
  353. package/lib/shardui/radio-group.js.map +1 -1
  354. package/lib/shardui/resizable.d.ts +3 -3
  355. package/lib/shardui/resizable.d.ts.map +1 -1
  356. package/lib/shardui/resizable.js +11 -9
  357. package/lib/shardui/resizable.js.map +1 -1
  358. package/lib/shardui/scroll-area.js +14 -11
  359. package/lib/shardui/scroll-area.js.map +1 -1
  360. package/lib/shardui/select.js +49 -35
  361. package/lib/shardui/select.js.map +1 -1
  362. package/lib/shardui/separator.js +2 -2
  363. package/lib/shardui/separator.js.map +1 -1
  364. package/lib/shardui/sheet.d.ts +2 -2
  365. package/lib/shardui/sheet.js +24 -19
  366. package/lib/shardui/sheet.js.map +1 -1
  367. package/lib/shardui/sidebar.js +104 -88
  368. package/lib/shardui/sidebar.js.map +1 -1
  369. package/lib/shardui/skeleton.d.ts +1 -1
  370. package/lib/shardui/skeleton.d.ts.map +1 -1
  371. package/lib/shardui/skeleton.js +2 -2
  372. package/lib/shardui/skeleton.js.map +1 -1
  373. package/lib/shardui/slider.js +12 -10
  374. package/lib/shardui/slider.js.map +1 -1
  375. package/lib/shardui/sonner.d.ts +1 -1
  376. package/lib/shardui/sonner.d.ts.map +1 -1
  377. package/lib/shardui/sonner.js +2 -2
  378. package/lib/shardui/sonner.js.map +1 -1
  379. package/lib/shardui/switch.js +7 -6
  380. package/lib/shardui/switch.js.map +1 -1
  381. package/lib/shardui/table.js +16 -15
  382. package/lib/shardui/table.js.map +1 -1
  383. package/lib/shardui/tabs.js +4 -4
  384. package/lib/shardui/tabs.js.map +1 -1
  385. package/lib/shardui/textarea.js +2 -2
  386. package/lib/shardui/textarea.js.map +1 -1
  387. package/lib/shardui/toast.js +12 -11
  388. package/lib/shardui/toast.js.map +1 -1
  389. package/lib/shardui/toaster.d.ts +1 -2
  390. package/lib/shardui/toaster.d.ts.map +1 -1
  391. package/lib/shardui/toaster.js +21 -14
  392. package/lib/shardui/toaster.js.map +1 -1
  393. package/lib/shardui/toggle-group.js +15 -12
  394. package/lib/shardui/toggle-group.js.map +1 -1
  395. package/lib/shardui/toggle.js +2 -2
  396. package/lib/shardui/toggle.js.map +1 -1
  397. package/lib/shardui/tooltip.js +2 -2
  398. package/lib/shardui/tooltip.js.map +1 -1
  399. package/package.json +9 -3
@@ -0,0 +1,7 @@
1
+ export { AIToolbar, AIToolbarLeading, AIToolbarMain, AIToolbarTrailing, AIToolbarInputSurface, AIToolbarStatusDot, } from './components/AIToolbarPrimitives';
2
+ export type { AIToolbarProps, AIToolbarSectionProps, AIToolbarInputSurfaceProps, AIToolbarStatusDotProps, } from './components/AIToolbarPrimitives';
3
+ export * from './components';
4
+ export type { CompletionSubmitOptions, UseCompletionReturn, SystemAudioProps, AIToolbarAppProps, AIToolbarHostPlatform, ChatMessage, ChatConversation, VadConfig, ToolbarAiProvider, ToolbarSelectedProvider, ToolbarAudioDevices, ToolbarAttachedFile, ToolbarScreenshotConfiguration, } from './components/types';
5
+ export { setMarketplaceCharacters, useActiveCharacter, useCharacterPicker } from './hooks/useActiveCharacter';
6
+ export type { MarketplaceCharacterEntry, ActiveCharacter, CharacterListEntry, CharacterPicker, } from './hooks/useActiveCharacter';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AIToolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,GACrB,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EACR,cAAc,EACd,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,GAC1B,MAAM,kCAAkC,CAAC;AAE1C,cAAc,cAAc,CAAC;AAE7B,YAAY,EACR,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,8BAA8B,GACjC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC9G,YAAY,EACR,yBAAyB,EACzB,eAAe,EACf,kBAAkB,EAClB,eAAe,GAClB,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,19 @@
1
+ export type EmotionLabel = 'admiration' | 'amusement' | 'anger' | 'annoyance' | 'approval' | 'caring' | 'confusion' | 'curiosity' | 'desire' | 'disappointment' | 'disapproval' | 'disgust' | 'embarrassment' | 'excitement' | 'fear' | 'gratitude' | 'grief' | 'joy' | 'love' | 'nervousness' | 'neutral' | 'optimism' | 'pride' | 'realization' | 'relief' | 'remorse' | 'sadness' | 'surprise';
2
+ /** All 28 labels, in the SillyTavern canonical order. */
3
+ export declare const ALL_EMOTIONS: EmotionLabel[];
4
+ /**
5
+ * Classify a chat-message string into one of the 28 GoEmotions labels.
6
+ *
7
+ * Returns `'neutral'` when no rule fires, which is what every sprite pack
8
+ * uses as the fallback (and what `character_get_expression` falls back to
9
+ * server-side when the requested sprite is missing).
10
+ *
11
+ * @param text - The assistant's message text. Markdown formatting is fine —
12
+ * the regexes only care about word content.
13
+ * @param available - Optional restrict-set: only return labels present here.
14
+ * Useful when the caller knows which sprites the
15
+ * character actually ships and wants to avoid a Tauri
16
+ * round-trip for labels that will fall back anyway.
17
+ */
18
+ export declare function classifyEmotion(text: string | null | undefined, available?: readonly string[]): EmotionLabel;
19
+ //# sourceMappingURL=emotionClassifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emotionClassifier.d.ts","sourceRoot":"","sources":["../../../../src/components/AIToolbar/utils/emotionClassifier.ts"],"names":[],"mappings":"AAqBA,MAAM,MAAM,YAAY,GAClB,YAAY,GACZ,WAAW,GACX,OAAO,GACP,WAAW,GACX,UAAU,GACV,QAAQ,GACR,WAAW,GACX,WAAW,GACX,QAAQ,GACR,gBAAgB,GAChB,aAAa,GACb,SAAS,GACT,eAAe,GACf,YAAY,GACZ,MAAM,GACN,WAAW,GACX,OAAO,GACP,KAAK,GACL,MAAM,GACN,aAAa,GACb,SAAS,GACT,UAAU,GACV,OAAO,GACP,aAAa,GACb,QAAQ,GACR,SAAS,GACT,SAAS,GACT,UAAU,CAAC;AAEjB,yDAAyD;AACzD,eAAO,MAAM,YAAY,EAAE,YAAY,EA6BtC,CAAC;AAgNF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,YAAY,CAuB5G"}
@@ -0,0 +1,142 @@
1
+ // Lightweight emotion classifier for assistant message text.
2
+ //
3
+ // Picks one of the 28 SillyTavern / GoEmotions labels so the AIToolbar can
4
+ // switch the assistant's avatar to the matching expression sprite (see
5
+ // `packages-extensions/seraphina-character-extension/characters/Seraphina/`
6
+ // for the canonical sprite layout: `neutral.png`, `joy.png`, `caring.png`,
7
+ // `surprise.png`, etc.).
8
+ //
9
+ // This is intentionally a heuristic (regex/keyword scoring) — fast, offline,
10
+ // no model dependency — and is the same shape (`text → label`) as a real
11
+ // GoEmotions classifier, so it can be transparently swapped for an ONNX
12
+ // transformer later without touching the call sites.
13
+ //
14
+ // Limitations:
15
+ // - English only; would need rework for i18n responses.
16
+ // - Misses subtle nuance (sarcasm, mixed emotions) — picks the *strongest*
17
+ // signal and never returns more than one label.
18
+ // - Stage directions in italics ("smiles warmly") count the same as inline
19
+ // dialogue; that's actually desirable for character-card style replies
20
+ // where mood lives in the prose.
21
+ /** All 28 labels, in the SillyTavern canonical order. */
22
+ const RULES = [{
23
+ label: 'joy',
24
+ patterns: [/\b(happy|happiness|joy(ful)?|delight(ed|ful)?|cheerful|glad)\b/gi, /\b(smile[sd]?|grin(s|ned|ning)?|beam(s|ing|ed)?)\b/gi, /:\)|=\)|<3+/g]
25
+ }, {
26
+ label: 'amusement',
27
+ patterns: [/\b(laugh(s|ed|ing|ter)?|chuckle[sd]?|giggle[sd]?|snicker(s|ed|ing)?)\b/gi, /\b(amus(ed|ing|ement)|funny|hilarious|teasing)\b/gi, /\bha+ha+\b/gi, /lol\b/gi]
28
+ }, {
29
+ label: 'love',
30
+ patterns: [/\b(i love you|love you|my love|beloved|darling|sweetheart|dearest)\b/gi, /\b(adore[sd]?|cherish(ed|es)?|smitten)\b/gi],
31
+ weight: 2
32
+ }, {
33
+ label: 'caring',
34
+ patterns: [/\b(gentle(ly)?|tender(ly)?|softly|kind(ly|ness)?|warm(ly|th)?|reassuring(ly)?)\b/gi, /\b(comfort(s|ed|ing)?|soothing(ly)?|protect(s|ing|ed)?|nurturing)\b/gi, /\b(are you (ok|okay|alright)|how are you feeling|don'?t worry)\b/gi]
35
+ }, {
36
+ label: 'admiration',
37
+ patterns: [/\b(impressive|impressed|brilliant|magnificent|incredible|amazing|remarkable|astonishing|stunning|breathtaking)\b/gi, /\b(well done|great job|so proud of you)\b/gi]
38
+ }, {
39
+ label: 'approval',
40
+ patterns: [/\b(approve|agree|exactly|precisely|that'?s right|good idea|sounds good|works for me)\b/gi, /\b(yes,?\s+(of course|absolutely|certainly))/gi]
41
+ }, {
42
+ label: 'disapproval',
43
+ patterns: [/\b(disapprove|that'?s wrong|i don'?t agree|i wouldn'?t|shouldn'?t have)\b/gi, /\b(unacceptable|not okay)\b/gi]
44
+ }, {
45
+ label: 'anger',
46
+ patterns: [/\b(angry|furious|enraged|seething|livid|outraged)\b/gi, /\b(scowl(s|ed|ing)?|glare[sd]?|snarl(s|ed|ing)?|growl(s|ed|ing)?)\b/gi, /\bhow dare you\b/gi],
47
+ weight: 2
48
+ }, {
49
+ label: 'annoyance',
50
+ patterns: [/\b(annoy(ed|ing|ance)?|irritat(ed|ing|ion)|frustrat(ed|ing|ion))\b/gi, /\b(sigh(s|ed|ing)?|huff(s|ed|ing)?|rolls? (her|his|their) eyes)\b/gi, /\b(ugh|tsk)\b/gi]
51
+ }, {
52
+ label: 'fear',
53
+ patterns: [/\b(afraid|scared|terrified|frightened|fearful|horrified)\b/gi, /\b(trembl(es|ed|ing)|shiver(s|ed|ing)?|flinch(es|ed|ing)?)\b/gi, /\b(panic(ked|king)?|dread)\b/gi],
54
+ weight: 2
55
+ }, {
56
+ label: 'nervousness',
57
+ patterns: [/\b(nervous(ly|ness)?|anxious(ly)?|uneasy|jittery|tense(ly)?|on edge)\b/gi, /\b(fidget(s|ed|ing)?|bites? (her|his|their) lip|wrings? (her|his|their) hands)\b/gi]
58
+ }, {
59
+ label: 'sadness',
60
+ patterns: [/\b(sad(ness|ly)?|unhappy|sorrow(ful)?|heartbroken|miserable|melancholy|forlorn)\b/gi, /\b(tear(s|ful|y)|crying|weep(s|ing|ed)?|sob(s|bing|bed)?)\b/gi, /:\(/g],
61
+ weight: 2
62
+ }, {
63
+ label: 'grief',
64
+ patterns: [/\b(grief|grieving|mourn(s|ed|ing)?|bereaved|devastated)\b/gi, /\b(loss of|passed away|gone forever)\b/gi],
65
+ weight: 2
66
+ }, {
67
+ label: 'remorse',
68
+ patterns: [/\b(i'?m sorry|i am sorry|my apologies|apologi[sz]e|forgive me|regret(s|ted|ting)?|guilty|guilt)\b/gi, /\b(shouldn'?t have|wish i hadn'?t)\b/gi],
69
+ weight: 2
70
+ }, {
71
+ label: 'disappointment',
72
+ patterns: [/\b(disappointed|disappointing|let down|underwhelm(ed|ing)?|expected (more|better))\b/gi]
73
+ }, {
74
+ label: 'embarrassment',
75
+ patterns: [/\b(embarrass(ed|ing|ment)?|flustered|mortified|sheepish(ly)?)\b/gi, /\b(blush(es|ed|ing)?|cheeks (turn|burn|flush))\b/gi]
76
+ }, {
77
+ label: 'disgust',
78
+ patterns: [/\b(disgust(ed|ing)?|revolted|repulsed|nauseat(ed|ing)|gross|yuck|ew)\b/gi, /\b(grimace[sd]?|wrinkles? (her|his|their) nose)\b/gi]
79
+ }, {
80
+ label: 'excitement',
81
+ patterns: [/\b(excited(ly)?|thrilled|exhilarat(ed|ing)|exhilaration|elated|ecstatic|stoked|pumped)\b/gi, /\b(can'?t wait|bouncing|jumps? up)\b/gi]
82
+ }, {
83
+ label: 'gratitude',
84
+ patterns: [/\b(thank you|thanks|thank(ful|fully)?|grateful(ly)?|appreciat(e|ed|ing|ion))\b/gi],
85
+ weight: 2
86
+ }, {
87
+ label: 'pride',
88
+ patterns: [/\b(proud(ly)?|pride)\b/gi, /\b(chin (held )?high|stands? tall)\b/gi]
89
+ }, {
90
+ label: 'relief',
91
+ patterns: [/\b(relief|relieved|reliev(es|ed|ing)?)\b/gi, /\b(exhale[sd]? (deeply|slowly)|breathes? out)\b/gi]
92
+ }, {
93
+ label: 'optimism',
94
+ patterns: [/\b(hopeful(ly)?|optimist(ic)?|things will (work|turn) out|look(ing)? forward|we'?ll figure)\b/gi]
95
+ }, {
96
+ label: 'desire',
97
+ patterns: [/\b(crave[sd]?|yearn(s|ed|ing)?|long(s|ed|ing) for|want(s|ed|ing)? you|need(s|ed|ing)? you)\b/gi, /\b(lean(s|ed|ing)? in close|breathless)\b/gi]
98
+ }, {
99
+ label: 'curiosity',
100
+ patterns: [/\b(curious(ly)?|curiosity|intrigu(ed|ing)|wonder(s|ed|ing)? (about|what|why|how))\b/gi, /\btell me more\b/gi]
101
+ }, {
102
+ label: 'confusion',
103
+ patterns: [/\b(confus(ed|ing|ion)|puzzl(ed|ing)|baffl(ed|ing)|perplex(ed|ing))\b/gi, /\b(tilts? (her|his|their) head|raises? an eyebrow|i don'?t understand|what do you mean)\b/gi, /\?\?+/g]
104
+ }, {
105
+ label: 'realization',
106
+ patterns: [/\b(realiz(es|ed|ing)|realisation|i see now|of course!|that makes sense|finally understand)\b/gi, /\b(aha|eureka)\b/gi]
107
+ }, {
108
+ label: 'surprise',
109
+ patterns: [/\b(surpris(ed|ing|e)|astonish(ed|ing)|astounded|shocked|stunned|taken aback)\b/gi, /\b(gasp(s|ed|ing)?|eyes (widen|go wide))\b/gi, /\b(oh!|wha[at]?\?!)/gi]
110
+ }];
111
+ /**
112
+ * Classify a chat-message string into one of the 28 GoEmotions labels.
113
+ *
114
+ * Returns `'neutral'` when no rule fires, which is what every sprite pack
115
+ * uses as the fallback (and what `character_get_expression` falls back to
116
+ * server-side when the requested sprite is missing).
117
+ *
118
+ * @param text - The assistant's message text. Markdown formatting is fine —
119
+ * the regexes only care about word content.
120
+ * @param available - Optional restrict-set: only return labels present here.
121
+ * Useful when the caller knows which sprites the
122
+ * character actually ships and wants to avoid a Tauri
123
+ * round-trip for labels that will fall back anyway.
124
+ */
125
+ function classifyEmotion(text, available) {
126
+ if (!text) return 'neutral';
127
+ let bestLabel = 'neutral';
128
+ let bestScore = 0;
129
+ for (const rule of RULES) {
130
+ const weight = rule.weight ?? 1;
131
+ let score = 0;
132
+ for (const pattern of rule.patterns) {
133
+ const matches = text.match(pattern);
134
+ if (matches) score += matches.length * weight;
135
+ }
136
+ if (score > bestScore) {
137
+ bestScore = score;
138
+ bestLabel = rule.label;
139
+ }
140
+ }
141
+ return bestLabel;
142
+ }export{classifyEmotion};//# sourceMappingURL=emotionClassifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emotionClassifier.js","sources":["../../../../src/components/AIToolbar/utils/emotionClassifier.ts"],"sourcesContent":[null],"names":[],"mappings":"AAqBA;AA8BA;AACA;AA6OA;;;;;;;;;;;;;AAaG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -8,6 +8,6 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
8
8
  fullWidth?: boolean;
9
9
  children: React.ReactNode;
10
10
  }
11
- declare const Button: ({ variant, size, isLoading, fullWidth, className, children, disabled, ...props }: ButtonProps) => React.JSX.Element;
11
+ declare const Button: ({ variant, size, isLoading, fullWidth, className, children, disabled, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
12
12
  export { Button as TailwindUiButton };
13
13
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AACrF,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC9E,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,QAAA,MAAM,MAAM,GAAI,kFASb,WAAW,sBA6Cb,CAAC;AAEF,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AACrF,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC9E,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,QAAA,MAAM,MAAM,GAAI,kFASb,WAAW,4CA6Cb,CAAC;AAEF,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import React__default from'react';import {Loader2}from'lucide-react';const Button = ({
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {Loader2}from'lucide-react';const Button = ({
2
2
  variant = 'primary',
3
3
  size = 'medium',
4
4
  isLoading = false,
@@ -39,11 +39,12 @@ import React__default from'react';import {Loader2}from'lucide-react';const Butto
39
39
  const sizeClasses = getSizeClasses();
40
40
  const widthClass = fullWidth ? 'w-full' : '';
41
41
  const disabledClass = isLoading || disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer interactive-hover';
42
- return React__default.createElement("button", {
42
+ return jsxs("button", {
43
43
  className: `${baseClasses} ${variantClasses} ${sizeClasses} ${widthClass} ${disabledClass} ${className}`,
44
44
  disabled: isLoading || disabled,
45
- ...props
46
- }, isLoading && React__default.createElement(Loader2, {
47
- className: "w-4 h-4 mr-2 animate-spin"
48
- }), children);
45
+ ...props,
46
+ children: [isLoading && jsx(Loader2, {
47
+ className: "w-4 h-4 mr-2 animate-spin"
48
+ }), children]
49
+ });
49
50
  };export{Button as TailwindUiButton};//# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":[null],"names":[],"mappings":"qEAIA,MAAM,MAAM;AAEZ,EAAA,OAAM,GAAA;MACF,GAAA,QAAU;WACH,GAAA,KAAA;WACP,GAAU,KAAE;WACZ,GAAU,EAAE;AACZ,EAAA,QAAA;AACH,EAAA,QAAA;AAED,EAAA,GAAA;AAwDA,CAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":[null],"names":[],"mappings":"4EAIA,MAAM,MAAM;AAEZ,EAAA,OAAM,GAAA;MACF,GAAA,QAAU;WACH,GAAA,KAAA;WACP,GAAU,KAAE;WACZ,GAAU,EAAE;AACZ,EAAA,QAAA;AACH,EAAA,QAAA;AAED,EAAA,GAAA;AAwDA,CAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import React__default,{useRef,useEffect}from'react';import {useActor}from'@xstate/react';import {datePickerMachine}from'./machine.js';import {getDaysInMonth,getYearsRange,months}from'./utils.js';const DatePicker = ({
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {useRef,useEffect}from'react';import {useActor}from'@xstate/react';import {datePickerMachine}from'./machine.js';import {getDaysInMonth,getYearsRange,months}from'./utils.js';const DatePicker = ({
2
2
  value,
3
3
  onChange,
4
4
  placeholder = 'Select date',
@@ -53,148 +53,166 @@ import React__default,{useRef,useEffect}from'react';import {useActor}from'@xstat
53
53
  // Group dates into rows (5 rows of 7 days each - may have empty cells)
54
54
  const numberOfRows = Math.ceil(daysInMonth / 7);
55
55
  const years = getYearsRange(currentDate.getFullYear());
56
- return React__default.createElement("div", {
56
+ return jsxs("div", {
57
57
  ref: containerRef,
58
- className: `relative ${className}`
59
- }, React__default.createElement("div", {
60
- className: "relative"
61
- }, React__default.createElement("input", {
62
- type: "text",
63
- className: "w-full px-2 py-1 h-7 border border-gray-300 hover:border-blue-400 focus:border-blue-400 \n rounded text-xs transition-colors duration-200 ease-in-out shadow-sm \n focus:outline-none focus:ring-0",
64
- placeholder: placeholder,
65
- value: inputValue,
66
- onChange: e => send({
67
- type: 'INPUT_CHANGE',
68
- value: e.target.value
69
- }),
70
- onClick: () => send({
71
- type: 'TOGGLE_CALENDAR'
72
- }),
73
- readOnly: true
74
- }), React__default.createElement("div", {
75
- className: "absolute inset-y-0 right-0 flex items-center px-2 cursor-pointer text-gray-400",
76
- onClick: () => send({
77
- type: 'TOGGLE_CALENDAR'
78
- })
79
- }, React__default.createElement("svg", {
80
- xmlns: "http://www.w3.org/2000/svg",
81
- className: "h-3 w-3",
82
- fill: "none",
83
- viewBox: "0 0 24 24",
84
- stroke: "currentColor"
85
- }, React__default.createElement("path", {
86
- strokeLinecap: "round",
87
- strokeLinejoin: "round",
88
- strokeWidth: 2,
89
- d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
90
- })))), isOpen && React__default.createElement("div", {
91
- className: "absolute z-50 mt-1 w-72 bg-white rounded shadow-md border border-gray-200"
92
- }, React__default.createElement("div", {
93
- className: "px-1 py-1 border-b border-gray-200"
94
- }, React__default.createElement("div", {
95
- className: "flex justify-between items-center"
96
- }, React__default.createElement("button", {
97
- className: "p-0.5 hover:bg-gray-100 text-gray-600 rounded flex items-center justify-center w-5 h-5",
98
- onClick: () => send({
99
- type: 'PREV_MONTH'
100
- })
101
- }, React__default.createElement("svg", {
102
- xmlns: "http://www.w3.org/2000/svg",
103
- className: "h-3 w-3",
104
- fill: "none",
105
- viewBox: "0 0 24 24",
106
- stroke: "currentColor"
107
- }, React__default.createElement("path", {
108
- strokeLinecap: "round",
109
- strokeLinejoin: "round",
110
- strokeWidth: 2.5,
111
- d: "M15 19l-7-7 7-7"
112
- }))), React__default.createElement("div", {
113
- className: "flex items-center space-x-1 text-xs"
114
- }, React__default.createElement("select", {
115
- className: "appearance-none bg-transparent cursor-pointer py-0 px-1 pr-6 w-20 rounded hover:bg-gray-100 text-gray-800 border-0 focus:outline-none focus:ring-0 text-xs",
116
- value: currentMonth.getMonth(),
117
- onChange: e => send({
118
- type: 'SELECT_MONTH',
119
- month: parseInt(e.target.value)
120
- }),
121
- style: {
122
- backgroundPosition: 'right 4px center'
123
- }
124
- }, months.map((month, index) => React__default.createElement("option", {
125
- key: month,
126
- value: index
127
- }, month))), React__default.createElement("select", {
128
- className: "appearance-none bg-transparent cursor-pointer py-0 px-1 pr-6 w-14 rounded hover:bg-gray-100 text-gray-800 border-0 focus:outline-none focus:ring-0 text-xs",
129
- value: currentMonth.getFullYear(),
130
- onChange: e => send({
131
- type: 'SELECT_YEAR',
132
- year: parseInt(e.target.value)
133
- }),
134
- style: {
135
- backgroundPosition: 'right 4px center'
136
- }
137
- }, years.map(year => React__default.createElement("option", {
138
- key: year,
139
- value: year
140
- }, year)))), React__default.createElement("button", {
141
- className: "p-0.5 hover:bg-gray-100 text-gray-600 rounded flex items-center justify-center w-5 h-5",
142
- onClick: () => send({
143
- type: 'NEXT_MONTH'
144
- })
145
- }, React__default.createElement("svg", {
146
- xmlns: "http://www.w3.org/2000/svg",
147
- className: "h-3 w-3",
148
- fill: "none",
149
- viewBox: "0 0 24 24",
150
- stroke: "currentColor"
151
- }, React__default.createElement("path", {
152
- strokeLinecap: "round",
153
- strokeLinejoin: "round",
154
- strokeWidth: 2.5,
155
- d: "M9 5l7 7-7 7"
156
- }))))), React__default.createElement("div", {
157
- className: "border-b border-gray-200"
158
- }, React__default.createElement("div", {
159
- className: "flex border-b border-gray-100 bg-gray-50"
160
- }, ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].map((day, index) => React__default.createElement("div", {
161
- key: day,
162
- className: `flex-1 px-1 py-1 text-xs text-center font-medium text-gray-700 ${index < 6 ? 'border-r border-gray-100' : ''}`
163
- }, day))), React__default.createElement("div", {
164
- className: "p-0"
165
- }, Array.from({
166
- length: numberOfRows
167
- }).map((_, rowIndex) => React__default.createElement("div", {
168
- key: `row-${rowIndex}`,
169
- className: "flex border-b border-gray-100 last:border-b-0"
170
- }, Array.from({
171
- length: 7
172
- }).map((_, colIndex) => {
173
- const dateIndex = rowIndex * 7 + colIndex;
174
- // Return empty cell if out of range
175
- if (dateIndex >= dates.length) {
176
- return React__default.createElement("div", {
177
- key: `empty-${rowIndex}-${colIndex}`,
178
- className: "flex-1 h-6 border-r border-gray-100 last:border-r-0"
179
- });
180
- }
181
- const date = dates[dateIndex];
182
- const isToday = date.getDate() === currentDate.getDate() && date.getMonth() === currentDate.getMonth() && date.getFullYear() === currentDate.getFullYear();
183
- const isSelected = selectedDate && date.getDate() === selectedDate.getDate() && date.getMonth() === selectedDate.getMonth() && date.getFullYear() === selectedDate.getFullYear();
184
- return React__default.createElement("div", {
185
- key: `date-${date.getDate()}`,
186
- className: `
58
+ className: `relative ${className}`,
59
+ children: [jsxs("div", {
60
+ className: "relative",
61
+ children: [jsx("input", {
62
+ type: "text",
63
+ className: "w-full px-2 py-1 h-7 border border-gray-300 hover:border-blue-400 focus:border-blue-400 \n rounded text-xs transition-colors duration-200 ease-in-out shadow-sm \n focus:outline-none focus:ring-0",
64
+ placeholder: placeholder,
65
+ value: inputValue,
66
+ onChange: e => send({
67
+ type: 'INPUT_CHANGE',
68
+ value: e.target.value
69
+ }),
70
+ onClick: () => send({
71
+ type: 'TOGGLE_CALENDAR'
72
+ }),
73
+ readOnly: true
74
+ }), jsx("div", {
75
+ className: "absolute inset-y-0 right-0 flex items-center px-2 cursor-pointer text-gray-400",
76
+ onClick: () => send({
77
+ type: 'TOGGLE_CALENDAR'
78
+ }),
79
+ children: jsx("svg", {
80
+ xmlns: "http://www.w3.org/2000/svg",
81
+ className: "h-3 w-3",
82
+ fill: "none",
83
+ viewBox: "0 0 24 24",
84
+ stroke: "currentColor",
85
+ children: jsx("path", {
86
+ strokeLinecap: "round",
87
+ strokeLinejoin: "round",
88
+ strokeWidth: 2,
89
+ d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
90
+ })
91
+ })
92
+ })]
93
+ }), isOpen && jsxs("div", {
94
+ className: "absolute z-50 mt-1 w-72 bg-white rounded shadow-md border border-gray-200",
95
+ children: [jsx("div", {
96
+ className: "px-1 py-1 border-b border-gray-200",
97
+ children: jsxs("div", {
98
+ className: "flex justify-between items-center",
99
+ children: [jsx("button", {
100
+ className: "p-0.5 hover:bg-gray-100 text-gray-600 rounded flex items-center justify-center w-5 h-5",
101
+ onClick: () => send({
102
+ type: 'PREV_MONTH'
103
+ }),
104
+ children: jsx("svg", {
105
+ xmlns: "http://www.w3.org/2000/svg",
106
+ className: "h-3 w-3",
107
+ fill: "none",
108
+ viewBox: "0 0 24 24",
109
+ stroke: "currentColor",
110
+ children: jsx("path", {
111
+ strokeLinecap: "round",
112
+ strokeLinejoin: "round",
113
+ strokeWidth: 2.5,
114
+ d: "M15 19l-7-7 7-7"
115
+ })
116
+ })
117
+ }), jsxs("div", {
118
+ className: "flex items-center space-x-1 text-xs",
119
+ children: [jsx("select", {
120
+ className: "appearance-none bg-transparent cursor-pointer py-0 px-1 pr-6 w-20 rounded hover:bg-gray-100 text-gray-800 border-0 focus:outline-none focus:ring-0 text-xs",
121
+ value: currentMonth.getMonth(),
122
+ onChange: e => send({
123
+ type: 'SELECT_MONTH',
124
+ month: parseInt(e.target.value)
125
+ }),
126
+ style: {
127
+ backgroundPosition: 'right 4px center'
128
+ },
129
+ children: months.map((month, index) => jsx("option", {
130
+ value: index,
131
+ children: month
132
+ }, month))
133
+ }), jsx("select", {
134
+ className: "appearance-none bg-transparent cursor-pointer py-0 px-1 pr-6 w-14 rounded hover:bg-gray-100 text-gray-800 border-0 focus:outline-none focus:ring-0 text-xs",
135
+ value: currentMonth.getFullYear(),
136
+ onChange: e => send({
137
+ type: 'SELECT_YEAR',
138
+ year: parseInt(e.target.value)
139
+ }),
140
+ style: {
141
+ backgroundPosition: 'right 4px center'
142
+ },
143
+ children: years.map(year => jsx("option", {
144
+ value: year,
145
+ children: year
146
+ }, year))
147
+ })]
148
+ }), jsx("button", {
149
+ className: "p-0.5 hover:bg-gray-100 text-gray-600 rounded flex items-center justify-center w-5 h-5",
150
+ onClick: () => send({
151
+ type: 'NEXT_MONTH'
152
+ }),
153
+ children: jsx("svg", {
154
+ xmlns: "http://www.w3.org/2000/svg",
155
+ className: "h-3 w-3",
156
+ fill: "none",
157
+ viewBox: "0 0 24 24",
158
+ stroke: "currentColor",
159
+ children: jsx("path", {
160
+ strokeLinecap: "round",
161
+ strokeLinejoin: "round",
162
+ strokeWidth: 2.5,
163
+ d: "M9 5l7 7-7 7"
164
+ })
165
+ })
166
+ })]
167
+ })
168
+ }), jsxs("div", {
169
+ className: "border-b border-gray-200",
170
+ children: [jsx("div", {
171
+ className: "flex border-b border-gray-100 bg-gray-50",
172
+ children: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].map((day, index) => jsx("div", {
173
+ className: `flex-1 px-1 py-1 text-xs text-center font-medium text-gray-700 ${index < 6 ? 'border-r border-gray-100' : ''}`,
174
+ children: day
175
+ }, day))
176
+ }), jsx("div", {
177
+ className: "p-0",
178
+ children: Array.from({
179
+ length: numberOfRows
180
+ }).map((_, rowIndex) => jsx("div", {
181
+ className: "flex border-b border-gray-100 last:border-b-0",
182
+ children: Array.from({
183
+ length: 7
184
+ }).map((_, colIndex) => {
185
+ const dateIndex = rowIndex * 7 + colIndex;
186
+ // Return empty cell if out of range
187
+ if (dateIndex >= dates.length) {
188
+ return jsx("div", {
189
+ className: "flex-1 h-6 border-r border-gray-100 last:border-r-0"
190
+ }, `empty-${rowIndex}-${colIndex}`);
191
+ }
192
+ const date = dates[dateIndex];
193
+ const isToday = date.getDate() === currentDate.getDate() && date.getMonth() === currentDate.getMonth() && date.getFullYear() === currentDate.getFullYear();
194
+ const isSelected = selectedDate && date.getDate() === selectedDate.getDate() && date.getMonth() === selectedDate.getMonth() && date.getFullYear() === selectedDate.getFullYear();
195
+ return jsx("div", {
196
+ className: `
187
197
  flex-1 h-6 flex items-center justify-center text-xs cursor-pointer transition-colors
188
198
  border-r border-gray-100 last:border-r-0
189
199
  ${isToday && !isSelected ? 'font-bold text-blue-600' : ''}
190
200
  ${isSelected ? 'bg-blue-50 text-blue-700 font-medium' : 'hover:bg-gray-50'}
191
201
  `,
192
- onClick: () => handleDateSelect(date)
193
- }, date.getDate());
194
- }))))), React__default.createElement("div", {
195
- className: "py-1 px-1 flex justify-end"
196
- }, React__default.createElement("button", {
197
- className: "px-2 py-0.5 text-xs text-blue-600 hover:bg-blue-50 transition-colors",
198
- onClick: () => handleDateSelect(new Date())
199
- }, "Today"))));
200
- };export{DatePicker,DatePicker as default};//# sourceMappingURL=DatePicker.js.map
202
+ onClick: () => handleDateSelect(date),
203
+ children: date.getDate()
204
+ }, `date-${date.getDate()}`);
205
+ })
206
+ }, `row-${rowIndex}`))
207
+ })]
208
+ }), jsx("div", {
209
+ className: "py-1 px-1 flex justify-end",
210
+ children: jsx("button", {
211
+ className: "px-2 py-0.5 text-xs text-blue-600 hover:bg-blue-50 transition-colors",
212
+ onClick: () => handleDateSelect(new Date()),
213
+ children: "Today"
214
+ })
215
+ })]
216
+ })]
217
+ });
218
+ };export{DatePicker};//# sourceMappingURL=DatePicker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DatePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,20 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ export interface DialogProps {
3
+ isOpen: boolean;
4
+ title?: string;
5
+ subtitle?: string;
6
+ onClose: () => void;
7
+ onSave?: () => void;
8
+ loading?: boolean;
9
+ children?: ReactNode;
10
+ saveLabel?: string;
11
+ cancelLabel?: string;
12
+ saveDisabled?: boolean;
13
+ hideFooter?: boolean;
14
+ width?: CSSProperties['width'];
15
+ height?: CSSProperties['height'];
16
+ className?: string;
17
+ bodyClassName?: string;
18
+ }
19
+ export declare function Dialog({ isOpen, title, subtitle, onClose, onSave, loading, children, saveLabel, cancelLabel, saveDisabled, hideFooter, width, height, className, bodyClassName, }: DialogProps): import("react/jsx-runtime").JSX.Element;
20
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,aAAa,EAAE,SAAS,EAA4B,MAAM,OAAO,CAAC;AAGlF,MAAM,WAAW,WAAW;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAoBD,wBAAgB,MAAM,CAAC,EACnB,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAkB,EAClB,WAAsB,EACtB,YAAY,EACZ,UAAU,EACV,KAAK,EACL,MAAM,EACN,SAAS,EACT,aAAa,GAChB,EAAE,WAAW,2CAuGb"}