@mieweb/ui 0.8.0-dev.22 → 0.8.0-dev.24

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 (198) hide show
  1. package/dist/Animated-Cs-naa2g.d.cts +175 -0
  2. package/dist/Animated-Cs-naa2g.d.ts +175 -0
  3. package/dist/brands/index.cjs +7 -7
  4. package/dist/brands/index.js +2 -2
  5. package/dist/{chunk-YIOZQEMV.cjs → chunk-3LHICE4I.cjs} +3 -3
  6. package/dist/{chunk-YIOZQEMV.cjs.map → chunk-3LHICE4I.cjs.map} +1 -1
  7. package/dist/{chunk-DWRIU4MW.js → chunk-3RB35GYK.js} +3 -3
  8. package/dist/{chunk-DWRIU4MW.js.map → chunk-3RB35GYK.js.map} +1 -1
  9. package/dist/{chunk-BT7SXNZU.cjs → chunk-4SM3I7WE.cjs} +3 -3
  10. package/dist/{chunk-BT7SXNZU.cjs.map → chunk-4SM3I7WE.cjs.map} +1 -1
  11. package/dist/{chunk-JWB4UA4J.cjs → chunk-5BVFVXHN.cjs} +197 -147
  12. package/dist/chunk-5BVFVXHN.cjs.map +1 -0
  13. package/dist/{chunk-62FT5JRH.js → chunk-5H7SAEQO.js} +4 -4
  14. package/dist/{chunk-62FT5JRH.js.map → chunk-5H7SAEQO.js.map} +1 -1
  15. package/dist/{chunk-KRYJJMYN.js → chunk-6SAYPXHX.js} +3 -3
  16. package/dist/{chunk-KRYJJMYN.js.map → chunk-6SAYPXHX.js.map} +1 -1
  17. package/dist/{chunk-KTJETOOH.cjs → chunk-6XDPJWSC.cjs} +36 -36
  18. package/dist/{chunk-KTJETOOH.cjs.map → chunk-6XDPJWSC.cjs.map} +1 -1
  19. package/dist/{chunk-WUKXQZZR.cjs → chunk-7KN6J7XV.cjs} +8 -8
  20. package/dist/{chunk-WUKXQZZR.cjs.map → chunk-7KN6J7XV.cjs.map} +1 -1
  21. package/dist/chunk-BN75TLUN.cjs +163 -0
  22. package/dist/chunk-BN75TLUN.cjs.map +1 -0
  23. package/dist/{chunk-WWJIW2IH.cjs → chunk-BVMABVC4.cjs} +3 -3
  24. package/dist/{chunk-WWJIW2IH.cjs.map → chunk-BVMABVC4.cjs.map} +1 -1
  25. package/dist/{chunk-RS5VA6QU.cjs → chunk-C3DUS2VE.cjs} +3 -3
  26. package/dist/{chunk-RS5VA6QU.cjs.map → chunk-C3DUS2VE.cjs.map} +1 -1
  27. package/dist/{chunk-VIE7UI2R.cjs → chunk-CXDMZT45.cjs} +4 -2
  28. package/dist/chunk-CXDMZT45.cjs.map +1 -0
  29. package/dist/{chunk-TXRQQMG5.js → chunk-CYMZ2QS5.js} +2 -2
  30. package/dist/{chunk-TXRQQMG5.js.map → chunk-CYMZ2QS5.js.map} +1 -1
  31. package/dist/{chunk-KY2CZK5F.js → chunk-D25WH7MH.js} +2 -2
  32. package/dist/{chunk-KY2CZK5F.js.map → chunk-D25WH7MH.js.map} +1 -1
  33. package/dist/{chunk-ATOWMVZH.js → chunk-DFYMIRMW.js} +3 -3
  34. package/dist/{chunk-ATOWMVZH.js.map → chunk-DFYMIRMW.js.map} +1 -1
  35. package/dist/{chunk-PDS7OM73.js → chunk-DGRXAIWK.js} +4 -2
  36. package/dist/chunk-DGRXAIWK.js.map +1 -0
  37. package/dist/{chunk-JHR4PNUA.cjs → chunk-FQBTGS3E.cjs} +5 -5
  38. package/dist/{chunk-JHR4PNUA.cjs.map → chunk-FQBTGS3E.cjs.map} +1 -1
  39. package/dist/{chunk-W3N5XENB.cjs → chunk-FUFBRKOG.cjs} +24 -24
  40. package/dist/{chunk-W3N5XENB.cjs.map → chunk-FUFBRKOG.cjs.map} +1 -1
  41. package/dist/{chunk-UEDTZYGI.cjs → chunk-H4AVMUOC.cjs} +3 -3
  42. package/dist/{chunk-UEDTZYGI.cjs.map → chunk-H4AVMUOC.cjs.map} +1 -1
  43. package/dist/{chunk-X5ZPYYMS.js → chunk-I3DQXUSC.js} +3 -3
  44. package/dist/{chunk-X5ZPYYMS.js.map → chunk-I3DQXUSC.js.map} +1 -1
  45. package/dist/{chunk-LZVPVY5P.js → chunk-KU3XRHWA.js} +3 -3
  46. package/dist/{chunk-LZVPVY5P.js.map → chunk-KU3XRHWA.js.map} +1 -1
  47. package/dist/{chunk-P2VTQ5AR.cjs → chunk-L52N6BEN.cjs} +39 -23
  48. package/dist/chunk-L52N6BEN.cjs.map +1 -0
  49. package/dist/{chunk-SRMTRD7F.js → chunk-L5W7TJQ5.js} +3 -3
  50. package/dist/{chunk-SRMTRD7F.js.map → chunk-L5W7TJQ5.js.map} +1 -1
  51. package/dist/{chunk-Z5KFXHDP.cjs → chunk-MM7QKUE3.cjs} +5 -5
  52. package/dist/{chunk-Z5KFXHDP.cjs.map → chunk-MM7QKUE3.cjs.map} +1 -1
  53. package/dist/{chunk-FJ7YPVKV.js → chunk-MUIDWFYJ.js} +3 -3
  54. package/dist/{chunk-FJ7YPVKV.js.map → chunk-MUIDWFYJ.js.map} +1 -1
  55. package/dist/{chunk-L2LH4CEN.js → chunk-MXQ7J4BB.js} +3 -3
  56. package/dist/{chunk-L2LH4CEN.js.map → chunk-MXQ7J4BB.js.map} +1 -1
  57. package/dist/{chunk-R4E6DMZS.js → chunk-O6GJ4IYS.js} +195 -147
  58. package/dist/chunk-O6GJ4IYS.js.map +1 -0
  59. package/dist/{chunk-MX46D4UJ.cjs → chunk-O7XHHTTP.cjs} +2 -2
  60. package/dist/{chunk-MX46D4UJ.cjs.map → chunk-O7XHHTTP.cjs.map} +1 -1
  61. package/dist/{chunk-7IBZA7G6.js → chunk-OAZUDUGX.js} +4 -4
  62. package/dist/{chunk-7IBZA7G6.js.map → chunk-OAZUDUGX.js.map} +1 -1
  63. package/dist/{chunk-NFKX6QJP.cjs → chunk-OCV33S5Q.cjs} +3 -3
  64. package/dist/{chunk-NFKX6QJP.cjs.map → chunk-OCV33S5Q.cjs.map} +1 -1
  65. package/dist/{chunk-334BUQMR.js → chunk-ODYQYLO2.js} +7 -7
  66. package/dist/{chunk-334BUQMR.js.map → chunk-ODYQYLO2.js.map} +1 -1
  67. package/dist/{chunk-FK2WTX7D.js → chunk-OHDIJOGG.js} +3 -3
  68. package/dist/{chunk-FK2WTX7D.js.map → chunk-OHDIJOGG.js.map} +1 -1
  69. package/dist/{chunk-GQVL2JKQ.cjs → chunk-OHKO5THF.cjs} +3 -3
  70. package/dist/{chunk-GQVL2JKQ.cjs.map → chunk-OHKO5THF.cjs.map} +1 -1
  71. package/dist/{chunk-LMBXJZLG.js → chunk-ON4JULCA.js} +3 -3
  72. package/dist/{chunk-LMBXJZLG.js.map → chunk-ON4JULCA.js.map} +1 -1
  73. package/dist/{chunk-57DPXKUV.js → chunk-ONNY7UO4.js} +4 -4
  74. package/dist/{chunk-57DPXKUV.js.map → chunk-ONNY7UO4.js.map} +1 -1
  75. package/dist/{chunk-KFEN2SRZ.js → chunk-PHK4XBO5.js} +3 -3
  76. package/dist/{chunk-KFEN2SRZ.js.map → chunk-PHK4XBO5.js.map} +1 -1
  77. package/dist/{chunk-XMCIXHGH.js → chunk-Q7G56ZIO.js} +39 -23
  78. package/dist/chunk-Q7G56ZIO.js.map +1 -0
  79. package/dist/{chunk-T5BBZQ66.js → chunk-QAKASRE6.js} +3 -3
  80. package/dist/{chunk-T5BBZQ66.js.map → chunk-QAKASRE6.js.map} +1 -1
  81. package/dist/{chunk-UBOVDAD7.js → chunk-QAQOCS2J.js} +3 -3
  82. package/dist/{chunk-UBOVDAD7.js.map → chunk-QAQOCS2J.js.map} +1 -1
  83. package/dist/{chunk-GLEIVJQB.cjs → chunk-QKAYRHWP.cjs} +9 -9
  84. package/dist/{chunk-GLEIVJQB.cjs.map → chunk-QKAYRHWP.cjs.map} +1 -1
  85. package/dist/{chunk-JWTCEWQ4.cjs → chunk-SNEQXSC5.cjs} +2 -2
  86. package/dist/{chunk-JWTCEWQ4.cjs.map → chunk-SNEQXSC5.cjs.map} +1 -1
  87. package/dist/{chunk-ZSGEGISB.cjs → chunk-SRA2L3SQ.cjs} +4 -4
  88. package/dist/{chunk-ZSGEGISB.cjs.map → chunk-SRA2L3SQ.cjs.map} +1 -1
  89. package/dist/{chunk-3SHLOF4V.cjs → chunk-VTR2KGLY.cjs} +9 -9
  90. package/dist/{chunk-3SHLOF4V.cjs.map → chunk-VTR2KGLY.cjs.map} +1 -1
  91. package/dist/chunk-WYMO3IIK.js +136 -0
  92. package/dist/chunk-WYMO3IIK.js.map +1 -0
  93. package/dist/{chunk-CFI3TQMA.cjs → chunk-X5QRRMGB.cjs} +3 -3
  94. package/dist/{chunk-CFI3TQMA.cjs.map → chunk-X5QRRMGB.cjs.map} +1 -1
  95. package/dist/{chunk-SH6B4MG5.js → chunk-XBXDUAIM.js} +4 -4
  96. package/dist/{chunk-SH6B4MG5.js.map → chunk-XBXDUAIM.js.map} +1 -1
  97. package/dist/{chunk-K5GQPTTA.cjs → chunk-XEEVDZDK.cjs} +3 -3
  98. package/dist/{chunk-K5GQPTTA.cjs.map → chunk-XEEVDZDK.cjs.map} +1 -1
  99. package/dist/{chunk-GXODR6V4.js → chunk-XOIIUO6O.js} +3 -3
  100. package/dist/{chunk-GXODR6V4.js.map → chunk-XOIIUO6O.js.map} +1 -1
  101. package/dist/{chunk-AHHFFXJR.cjs → chunk-XTHMC76F.cjs} +3 -3
  102. package/dist/{chunk-AHHFFXJR.cjs.map → chunk-XTHMC76F.cjs.map} +1 -1
  103. package/dist/{chunk-64SSWBJN.cjs → chunk-YJP6DUFO.cjs} +6 -6
  104. package/dist/{chunk-64SSWBJN.cjs.map → chunk-YJP6DUFO.cjs.map} +1 -1
  105. package/dist/components/Alert/index.d.cts +1 -1
  106. package/dist/components/Alert/index.d.ts +1 -1
  107. package/dist/components/AlertDialog/index.cjs +5 -4
  108. package/dist/components/AlertDialog/index.js +4 -3
  109. package/dist/components/Autocomplete/index.cjs +3 -3
  110. package/dist/components/Autocomplete/index.js +2 -2
  111. package/dist/components/Badge/index.d.cts +1 -1
  112. package/dist/components/Badge/index.d.ts +1 -1
  113. package/dist/components/Card/index.d.cts +2 -2
  114. package/dist/components/Card/index.d.ts +2 -2
  115. package/dist/components/CountryCodeDropdown/index.cjs +5 -5
  116. package/dist/components/CountryCodeDropdown/index.js +2 -2
  117. package/dist/components/CustomizableDashboard/index.cjs +10 -10
  118. package/dist/components/CustomizableDashboard/index.js +3 -3
  119. package/dist/components/DateInput/index.cjs +4 -4
  120. package/dist/components/DateInput/index.js +3 -3
  121. package/dist/components/Dropdown/index.cjs +9 -9
  122. package/dist/components/Dropdown/index.js +2 -2
  123. package/dist/components/GlossaryTooltip/index.cjs +3 -3
  124. package/dist/components/GlossaryTooltip/index.js +2 -2
  125. package/dist/components/KeyboardShortcutsOverlay/index.cjs +6 -5
  126. package/dist/components/KeyboardShortcutsOverlay/index.js +4 -3
  127. package/dist/components/Markdown/index.cjs +10 -10
  128. package/dist/components/Markdown/index.js +2 -2
  129. package/dist/components/MediaEditor/index.cjs +11 -10
  130. package/dist/components/MediaEditor/index.js +6 -5
  131. package/dist/components/MediaPlayer/index.cjs +1 -1
  132. package/dist/components/MediaPlayer/index.js +1 -1
  133. package/dist/components/Modal/index.cjs +11 -10
  134. package/dist/components/Modal/index.d.cts +1 -1
  135. package/dist/components/Modal/index.d.ts +1 -1
  136. package/dist/components/Modal/index.js +3 -2
  137. package/dist/components/Pagination/index.d.cts +1 -1
  138. package/dist/components/Pagination/index.d.ts +1 -1
  139. package/dist/components/PhoneInput/index.cjs +4 -4
  140. package/dist/components/PhoneInput/index.js +2 -2
  141. package/dist/components/Progress/index.d.cts +1 -1
  142. package/dist/components/Progress/index.d.ts +1 -1
  143. package/dist/components/RecordButton/index.d.cts +1 -1
  144. package/dist/components/RecordButton/index.d.ts +1 -1
  145. package/dist/components/RichTextEditor/index.cjs +7 -7
  146. package/dist/components/RichTextEditor/index.js +4 -4
  147. package/dist/components/SectionSpyNav/index.cjs +3 -3
  148. package/dist/components/SectionSpyNav/index.js +2 -2
  149. package/dist/components/Select/index.cjs +4 -4
  150. package/dist/components/Select/index.js +2 -2
  151. package/dist/components/Sheet/index.cjs +11 -11
  152. package/dist/components/Sheet/index.js +2 -2
  153. package/dist/components/Slider/index.d.cts +2 -2
  154. package/dist/components/Slider/index.d.ts +2 -2
  155. package/dist/components/SourceTip/index.cjs +3 -3
  156. package/dist/components/SourceTip/index.js +2 -2
  157. package/dist/components/SuperChat/index.cjs +10 -10
  158. package/dist/components/SuperChat/index.js +4 -4
  159. package/dist/components/SuperChat/plugins/index.cjs +4 -4
  160. package/dist/components/SuperChat/plugins/index.js +3 -3
  161. package/dist/components/Text/index.d.cts +1 -1
  162. package/dist/components/Text/index.d.ts +1 -1
  163. package/dist/components/ThemeProvider/index.cjs +9 -9
  164. package/dist/components/ThemeProvider/index.d.cts +1 -1
  165. package/dist/components/ThemeProvider/index.d.ts +1 -1
  166. package/dist/components/ThemeProvider/index.js +3 -3
  167. package/dist/components/Toggle/index.d.cts +1 -1
  168. package/dist/components/Toggle/index.d.ts +1 -1
  169. package/dist/components/Tooltip/index.cjs +3 -3
  170. package/dist/components/Tooltip/index.js +2 -2
  171. package/dist/esheet.cjs +12 -11
  172. package/dist/esheet.cjs.map +1 -1
  173. package/dist/esheet.js +9 -8
  174. package/dist/esheet.js.map +1 -1
  175. package/dist/hooks/index.cjs +1 -1
  176. package/dist/hooks/index.js +1 -1
  177. package/dist/index.cjs +722 -620
  178. package/dist/index.cjs.map +1 -1
  179. package/dist/index.d.cts +38 -24
  180. package/dist/index.d.ts +38 -24
  181. package/dist/index.js +216 -129
  182. package/dist/index.js.map +1 -1
  183. package/dist/motion.cjs +87 -0
  184. package/dist/motion.cjs.map +1 -0
  185. package/dist/motion.d.cts +52 -0
  186. package/dist/motion.d.ts +52 -0
  187. package/dist/motion.js +50 -0
  188. package/dist/motion.js.map +1 -0
  189. package/dist/styles.css +1 -1
  190. package/dist/tailwind-preset.cjs +4 -4
  191. package/dist/tailwind-preset.js +1 -1
  192. package/package.json +16 -1
  193. package/dist/chunk-JWB4UA4J.cjs.map +0 -1
  194. package/dist/chunk-P2VTQ5AR.cjs.map +0 -1
  195. package/dist/chunk-PDS7OM73.js.map +0 -1
  196. package/dist/chunk-R4E6DMZS.js.map +0 -1
  197. package/dist/chunk-VIE7UI2R.cjs.map +0 -1
  198. package/dist/chunk-XMCIXHGH.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,73 +1,76 @@
1
- export { brands } from './chunk-TXRQQMG5.js';
1
+ export { VisuallyHidden } from './chunk-H2CIKJQI.js';
2
+ export { brands } from './chunk-CYMZ2QS5.js';
3
+ export { webchartBrand } from './chunk-CW66SO5O.js';
2
4
  export { defaultBrand } from './chunk-PSTGFXQG.js';
3
5
  export { enterpriseHealthBrand } from './chunk-MTZPVOP6.js';
4
6
  export { miewebBrand } from './chunk-NERS5ZT6.js';
5
7
  export { wagglelineBrand } from './chunk-2NTYAALC.js';
6
- export { webchartBrand } from './chunk-CW66SO5O.js';
7
8
  export { createBrandPreset, generateBrandCSS, generateTailwindTheme } from './chunk-WOYUQ4AT.js';
8
9
  export { bluehiveBrand } from './chunk-3T7QGLNB.js';
9
10
  export { ccmeBrand } from './chunk-SCQRJPSV.js';
10
11
  export { ozwellBrand } from './chunk-5YUBQIC7.js';
11
12
  import { getModelBytes } from './chunk-6I7IDZ4A.js';
13
+ import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-TNUL4LGG.js';
14
+ export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './chunk-TNUL4LGG.js';
12
15
  import { Tabs, TabsList, TabsTrigger, TabsContent } from './chunk-DVOQ3JNO.js';
13
16
  export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants, tabsTriggerVariants } from './chunk-DVOQ3JNO.js';
14
17
  import { Text } from './chunk-3YSIZ2CK.js';
15
18
  export { SmallMuted, Text, textVariants } from './chunk-3YSIZ2CK.js';
16
- export { ThemeProvider, ThemeProviderContext, ThemeToggle, themeToggleIconVariants, themeToggleVariants, useThemeContext } from './chunk-SH6B4MG5.js';
19
+ export { ThemeProvider, ThemeProviderContext, ThemeToggle, themeToggleIconVariants, themeToggleVariants, useThemeContext } from './chunk-XBXDUAIM.js';
17
20
  export { Toggle, toggleVariants } from './chunk-PTZB2GKL.js';
18
21
  export { TranscriptView, formatTimestampMs } from './chunk-LAEIVOIY.js';
19
- export { VisuallyHidden } from './chunk-H2CIKJQI.js';
20
- export { SourceTip } from './chunk-KFEN2SRZ.js';
22
+ import { Skeleton } from './chunk-ZIUADGAR.js';
23
+ export { Skeleton, SkeletonCard, SkeletonTable, SkeletonText, skeletonVariants } from './chunk-ZIUADGAR.js';
24
+ export { SourceTip } from './chunk-PHK4XBO5.js';
21
25
  export { Sparkline } from './chunk-CG4ZKJLE.js';
22
26
  import { Spinner, SpinnerWithLabel } from './chunk-UA7E7PDS.js';
23
27
  export { FullPageSpinner, Spinner, SpinnerWithLabel, spinnerVariants } from './chunk-UA7E7PDS.js';
24
28
  import { SparklesIcon, RefreshIcon, CloseIcon, AIMessageDisplay } from './chunk-22CYDCXA.js';
25
29
  export { AILogoIcon, AIMessageDisplay, AITypingIndicator, ChatBubble, ChevronIcon, CloseIcon, CollapsiblePill, MCPToolCallDisplay, MessageAvatar, RefreshIcon, ResourceLink, SendIcon, SparklesIcon, SpinnerIcon, ToolStatusIcon, getToolIcon } from './chunk-22CYDCXA.js';
26
- import { EmptyState } from './chunk-L2LH4CEN.js';
27
- export { AttachmentPreview, ConversationHeader, ConversationListItem, ConversationListSkeleton, DateSeparator, EmptyState, LightboxModal, LoadMoreButton, MessageBubble, MessageList, MessageStatusIcon, MessageThread, MessagingSplitView, ReadReceiptIndicator, SkeletonMessage, TypingIndicator, bubbleVariants, formatDateLabel, formatFileSize, formatLastSeen, getConversationSubtitle, getConversationTitle, groupMessagesByDate, headerVariants, isSameSenderGroup, useMessageScroll, useMessages, useReadReceipts, useTypingIndicator } from './chunk-L2LH4CEN.js';
28
- import { validateFile, getFileType, generateAttachmentId, AttachmentPreviewItem, MessageComposer } from './chunk-R4E6DMZS.js';
29
- export { AttachmentPicker, AttachmentPreviewItem, CameraButton, CharacterCounter, DragDropZone, MessageComposer, SendButton, generateAttachmentId, getFileType, sendButtonVariants, validateFile } from './chunk-R4E6DMZS.js';
30
- import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-TNUL4LGG.js';
31
- export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './chunk-TNUL4LGG.js';
32
- export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from './chunk-62FT5JRH.js';
30
+ import { EmptyState } from './chunk-MXQ7J4BB.js';
31
+ export { AttachmentPreview, ConversationHeader, ConversationListItem, ConversationListSkeleton, DateSeparator, EmptyState, LightboxModal, LoadMoreButton, MessageBubble, MessageList, MessageStatusIcon, MessageThread, MessagingSplitView, ReadReceiptIndicator, SkeletonMessage, TypingIndicator, bubbleVariants, formatDateLabel, formatFileSize, formatLastSeen, getConversationSubtitle, getConversationTitle, groupMessagesByDate, headerVariants, isSameSenderGroup, useMessageScroll, useMessages, useReadReceipts, useTypingIndicator } from './chunk-MXQ7J4BB.js';
32
+ import { useMentionAutocomplete, validateFile, getFileType, generateAttachmentId, AttachmentPreviewItem, MentionMenu, DragDropZone, MessageComposer } from './chunk-O6GJ4IYS.js';
33
+ export { AttachmentPicker, AttachmentPreviewItem, CameraButton, CharacterCounter, DragDropZone, MessageComposer, SendButton, generateAttachmentId, getFileType, sendButtonVariants, validateFile } from './chunk-O6GJ4IYS.js';
34
+ import { RecordButton } from './chunk-VNWJTCBQ.js';
35
+ export { RecordButton, formatDuration, recordButtonVariants } from './chunk-VNWJTCBQ.js';
36
+ export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from './chunk-5H7SAEQO.js';
33
37
  export { DateButton, DatePicker, RadioOption, SchedulePicker, TimeButton, TimePicker, dateButtonVariants, radioOptionVariants, timeButtonVariants } from './chunk-23AYDOCH.js';
34
38
  export { ScrollArea, scrollAreaVariants } from './chunk-HS25RPDW.js';
35
- export { SectionSpyNav } from './chunk-DWRIU4MW.js';
39
+ export { SectionSpyNav } from './chunk-3RB35GYK.js';
36
40
  export { Separator, separatorVariants } from './chunk-OQWZYKJM.js';
37
- import { Skeleton } from './chunk-ZIUADGAR.js';
38
- export { Skeleton, SkeletonCard, SkeletonTable, SkeletonText, skeletonVariants } from './chunk-ZIUADGAR.js';
39
41
  export { Pagination, SimplePagination, paginationButtonVariants } from './chunk-PFKRHNYV.js';
40
- export { PhoneInput, PhoneInputGroup } from './chunk-GXODR6V4.js';
42
+ export { PhoneInput, PhoneInputGroup } from './chunk-XOIIUO6O.js';
41
43
  import { Progress } from './chunk-CEQJGUAS.js';
42
44
  export { CircularProgress, Progress, circularProgressVariants, progressBarFillVariants, progressBarTrackVariants } from './chunk-CEQJGUAS.js';
43
45
  export { QuickAction, QuickActionGroup, QuickActionIcons, quickActionIconVariants, quickActionVariants } from './chunk-TQDZLRIE.js';
44
46
  export { ReadingProgressBar } from './chunk-WKSUL2ZN.js';
45
- import { RecordButton } from './chunk-VNWJTCBQ.js';
46
- export { RecordButton, formatDuration, recordButtonVariants } from './chunk-VNWJTCBQ.js';
47
- export { GlossaryTooltip } from './chunk-SRMTRD7F.js';
48
- export { Kbd, KeyboardShortcutsOverlay } from './chunk-X5ZPYYMS.js';
49
- export { CodeBlock, MarkdownRenderer, highlightCode, useMarkdown } from './chunk-KY2CZK5F.js';
47
+ export { FreshnessBadge, FreshnessDot, daysSince, freshnessLevel } from './chunk-HQ3XPCHG.js';
48
+ export { GlossaryTooltip } from './chunk-L5W7TJQ5.js';
49
+ export { Kbd, KeyboardShortcutsOverlay } from './chunk-I3DQXUSC.js';
50
+ export { CodeBlock, MarkdownRenderer, highlightCode, useMarkdown } from './chunk-D25WH7MH.js';
51
+ export { CsvBlock } from './chunk-NHN6A3ZO.js';
50
52
  export { HtmlPreviewBlock } from './chunk-EG7XFZ3W.js';
51
53
  export { MermaidBlock } from './chunk-ZB54MTMQ.js';
52
54
  export { SurveyBlock } from './chunk-OSPTA4UR.js';
53
- export { CsvBlock } from './chunk-NHN6A3ZO.js';
54
55
  export { FenceBlock } from './chunk-CK3KLRNF.js';
55
- export { FillerWordsModal, MediaEditor, SilenceSettingsModal, SpeedMarkerMenu, WordEditorModal } from './chunk-57DPXKUV.js';
56
+ export { FillerWordsModal, MediaEditor, SilenceSettingsModal, SpeedMarkerMenu, WordEditorModal } from './chunk-ONNY7UO4.js';
56
57
  export { Slider, sliderRangeVariants, sliderThumbVariants, sliderTrackVariants } from './chunk-2BPIVWAK.js';
57
58
  import './chunk-RISZWWEQ.js';
58
59
  export { MediaPlayer, inferMediaKind, mediaPlayerVariants } from './chunk-5WOB4UBD.js';
60
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './chunk-BJKAVWED.js';
59
61
  export { CopyButton } from './chunk-5QZ73PZC.js';
60
- import { CountryDropdownBase } from './chunk-T5BBZQ66.js';
61
- export { CountryCodeDropdown, formatE164, validatePhoneNumber } from './chunk-T5BBZQ66.js';
62
- export { CustomizableDashboard, DashboardCustomizePanel, consolidateColumns, mergeColumnOrder, moveAcrossColumns, reorderOnDrop, requiredColumns } from './chunk-KRYJJMYN.js';
62
+ import { CountryDropdownBase } from './chunk-QAKASRE6.js';
63
+ export { CountryCodeDropdown, formatE164, validatePhoneNumber } from './chunk-QAKASRE6.js';
64
+ export { CustomizableDashboard, DashboardCustomizePanel, consolidateColumns, mergeColumnOrder, moveAcrossColumns, reorderOnDrop, requiredColumns } from './chunk-6SAYPXHX.js';
63
65
  import { Switch, switchThumbVariants, switchTrackVariants } from './chunk-AQ564XO7.js';
64
66
  export { Switch, switchThumbVariants, switchTrackVariants } from './chunk-AQ564XO7.js';
65
- export { Sheet, SheetBody, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetTitle, sheetContentVariants, sheetOverlayVariants } from './chunk-LMBXJZLG.js';
66
- import { Dropdown, DropdownItem, DropdownSeparator, DropdownContent, DropdownHeader } from './chunk-LZVPVY5P.js';
67
- export { Dropdown, DropdownContent, DropdownHeader, DropdownItem, DropdownLabel, DropdownSeparator, DropdownSubmenu } from './chunk-LZVPVY5P.js';
67
+ export { Sheet, SheetBody, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetTitle, sheetContentVariants, sheetOverlayVariants } from './chunk-ON4JULCA.js';
68
+ import { Dropdown, DropdownItem, DropdownSeparator, DropdownContent, DropdownHeader } from './chunk-KU3XRHWA.js';
69
+ export { Dropdown, DropdownContent, DropdownHeader, DropdownItem, DropdownLabel, DropdownSeparator, DropdownSubmenu } from './chunk-KU3XRHWA.js';
68
70
  export { FilterSummaryBar } from './chunk-6SCQ7FKT.js';
69
71
  export { FloatingWindow, MinimizedWindow } from './chunk-PYHFVYVZ.js';
70
- export { FreshnessBadge, FreshnessDot, daysSince, freshnessLevel } from './chunk-HQ3XPCHG.js';
72
+ import { Avatar } from './chunk-HZ4MBUC3.js';
73
+ export { Avatar, AvatarGroup, avatarVariants, getInitials } from './chunk-HZ4MBUC3.js';
71
74
  import './chunk-IQ4KQJAO.js';
72
75
  export { Breadcrumb, BreadcrumbSlash } from './chunk-SCXELRRZ.js';
73
76
  import './chunk-OF7NTZ2I.js';
@@ -75,38 +78,40 @@ import { Checkbox } from './chunk-753Z3NXL.js';
75
78
  export { Checkbox, CheckboxGroup, checkboxVariants } from './chunk-753Z3NXL.js';
76
79
  export { ClampedText } from './chunk-L6MDULYB.js';
77
80
  export { CollabStatus, defaultCollabStatusLabels, useYjsCollabStatus } from './chunk-SVSHA7XV.js';
78
- export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './chunk-BJKAVWED.js';
79
- export { miewebUIPreset, miewebUISafelist } from './chunk-PDS7OM73.js';
81
+ import './chunk-7XUN3OQT.js';
82
+ export { isHtmlEmpty, stripHtmlTags } from './chunk-ERLPVXOV.js';
83
+ export { formatPhoneNumber, isPhoneNumberEmpty, isValidPhoneNumber, unformatPhoneNumber } from './chunk-ZVPJ2MH6.js';
84
+ export { miewebUIPreset, miewebUISafelist } from './chunk-DGRXAIWK.js';
80
85
  export { Accordion } from './chunk-KRU6IGV7.js';
81
86
  import { Alert, AlertTitle, AlertDescription } from './chunk-3JWAABYI.js';
82
87
  export { Alert, AlertDescription, AlertTitle, alertVariants } from './chunk-3JWAABYI.js';
83
- import { AlertDialog } from './chunk-FK2WTX7D.js';
84
- export { AlertDialog } from './chunk-FK2WTX7D.js';
88
+ import { AlertDialog } from './chunk-OHDIJOGG.js';
89
+ export { AlertDialog } from './chunk-OHDIJOGG.js';
85
90
  export { AudioPlayer, ProgressBar, audioPlayerVariants, formatTime as formatAudioTime, playButtonVariants } from './chunk-VVDE4CHU.js';
86
91
  export { AudioRecorder, audioRecorderVariants, controlButtonVariants, formatTime, waveformContainerVariants } from './chunk-2DW4PUJD.js';
87
- export { Autocomplete } from './chunk-UBOVDAD7.js';
88
- import { Avatar } from './chunk-HZ4MBUC3.js';
89
- export { Avatar, AvatarGroup, avatarVariants, getInitials } from './chunk-HZ4MBUC3.js';
92
+ export { Autocomplete } from './chunk-QAQOCS2J.js';
90
93
  import { evaluateDue, completedKeys, normalizeOrders } from './chunk-Y5KEFV5O.js';
91
94
  export { buildChartOrderRows, buildEncounterOrderRows, dueForOrder, evaluateDue, evaluateProgram, isApplicable } from './chunk-Y5KEFV5O.js';
92
- import { useCodeLookupConfig, RowActionToolbar, RowIconButton, toolbarKeyNav, parseSig, labelToMedicationFields, MedicationEditor } from './chunk-334BUQMR.js';
93
- export { ALLERGY_TYPE_LABELS, AllergyList, AllergyManager, CodeLookupProvider, MEDICATION_STATUS_LABELS, MedicationEditor, MedicationList, MedicationReconciliation, RowActionToolbar, RowIconButton, labelToMedicationFields, lookupToMedicationFields, parseMedicationLabel, parseSig, toolbarKeyNav, useCodeLookupConfig } from './chunk-334BUQMR.js';
95
+ import { useCodeLookupConfig, RowActionToolbar, RowIconButton, toolbarKeyNav, parseSig, labelToMedicationFields, MedicationEditor } from './chunk-ODYQYLO2.js';
96
+ export { ALLERGY_TYPE_LABELS, AllergyList, AllergyManager, CodeLookupProvider, MEDICATION_STATUS_LABELS, MedicationEditor, MedicationList, MedicationReconciliation, RowActionToolbar, RowIconButton, labelToMedicationFields, lookupToMedicationFields, parseMedicationLabel, parseSig, toolbarKeyNav, useCodeLookupConfig } from './chunk-ODYQYLO2.js';
94
97
  import { Textarea } from './chunk-H3YO5GBM.js';
95
98
  export { Textarea, textareaVariants } from './chunk-H3YO5GBM.js';
96
- import { Tooltip } from './chunk-FJ7YPVKV.js';
97
- export { Tooltip } from './chunk-FJ7YPVKV.js';
99
+ import { Tooltip } from './chunk-MUIDWFYJ.js';
100
+ export { Tooltip } from './chunk-MUIDWFYJ.js';
98
101
  import { RadioGroup, Radio } from './chunk-EPSB4WTL.js';
99
102
  export { Radio, RadioGroup, radioVariants } from './chunk-EPSB4WTL.js';
100
103
  import { Label } from './chunk-I3WGZPI6.js';
101
104
  export { Label, labelVariants } from './chunk-I3WGZPI6.js';
102
- import { Select } from './chunk-ATOWMVZH.js';
103
- export { Select, selectTriggerVariants } from './chunk-ATOWMVZH.js';
104
- import { DateInput } from './chunk-7IBZA7G6.js';
105
- export { DateInput } from './chunk-7IBZA7G6.js';
105
+ import { Select } from './chunk-DFYMIRMW.js';
106
+ export { Select, selectTriggerVariants } from './chunk-DFYMIRMW.js';
107
+ import { DateInput } from './chunk-OAZUDUGX.js';
108
+ export { DateInput } from './chunk-OAZUDUGX.js';
106
109
  import { Card, CardHeader, CardContent, CardTitle } from './chunk-QYSUYB3S.js';
107
110
  export { Card, CardActions, CardBadge, CardCollapsible, CardContent, CardDescription, CardDivider, CardFooter, CardHeader, CardMedia, CardStat, CardTitle, cardAccentVariants, cardVariants } from './chunk-QYSUYB3S.js';
108
- import { Modal, ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter } from './chunk-XMCIXHGH.js';
109
- export { Modal, ModalBody, ModalClose, ModalFooter, ModalHeader, ModalTitle, modalContentVariants, modalOverlayVariants } from './chunk-XMCIXHGH.js';
111
+ import { dateToDisplayFormat, isValidDate, displayFormatToDateString } from './chunk-RC2YMOMS.js';
112
+ export { calculateAge, dateToDisplayFormat, displayFormatToDateString, formatDateValue, isDateEmpty, isDateInFuture, isDateInPast, isValidDate, isValidDrivingAge, parseDateValue } from './chunk-RC2YMOMS.js';
113
+ import { Modal, ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter } from './chunk-Q7G56ZIO.js';
114
+ export { Modal, ModalBody, ModalClose, ModalFooter, ModalHeader, ModalTitle, modalContentVariants, modalOverlayVariants } from './chunk-Q7G56ZIO.js';
110
115
  import './chunk-6NZXWKUE.js';
111
116
  import { Input, inputVariants } from './chunk-3IMM2PM4.js';
112
117
  export { Input, RequiredMark, floatingGroupLabelVariants, floatingGroupVariants, floatingLabelVariants, inputVariants } from './chunk-3IMM2PM4.js';
@@ -116,7 +121,11 @@ import { Badge } from './chunk-BMSG4NBH.js';
116
121
  export { Badge, badgeVariants } from './chunk-BMSG4NBH.js';
117
122
  import { Button, buttonVariants } from './chunk-KREUYVMZ.js';
118
123
  export { Button, buttonVariants } from './chunk-KREUYVMZ.js';
119
- import { useCommandK, useIsMobile, useMediaQuery } from './chunk-XUVEF2RQ.js';
124
+ import { AnimatedPresence, Animated } from './chunk-WYMO3IIK.js';
125
+ export { Animated, AnimatedPresence, motionPresets, useMotionRuntime } from './chunk-WYMO3IIK.js';
126
+ import { cn } from './chunk-TQONQSJO.js';
127
+ export { cn, miewebUITwMergeConflicts } from './chunk-TQONQSJO.js';
128
+ import { useCommandK, useIsMobile, useMediaQuery, useDirection } from './chunk-XUVEF2RQ.js';
120
129
  export { RTL_LOCALES, isRtlLocale, useCommandK, useDirection, useIsDesktop, useIsLargeDesktop, useIsMobile, useIsMobileOrTablet, useIsSmallTablet, useIsTablet, useKeyboardShortcut, useMediaQuery } from './chunk-XUVEF2RQ.js';
121
130
  export { useTheme } from './chunk-KJZNEVYM.js';
122
131
  import { useScrollSpy } from './chunk-WBGUYSWY.js';
@@ -131,20 +140,13 @@ import { useFocusTrap } from './chunk-4SMSH4OY.js';
131
140
  export { useFocusTrap } from './chunk-4SMSH4OY.js';
132
141
  import { useEscapeKey } from './chunk-T4ME7QCT.js';
133
142
  export { useEscapeKey } from './chunk-T4ME7QCT.js';
143
+ import { isStorybookDocsMode } from './chunk-VSQF22GL.js';
144
+ export { isStorybookDocsMode } from './chunk-VSQF22GL.js';
134
145
  import { useClickOutside } from './chunk-62ZOA6PX.js';
135
146
  export { useClickOutside } from './chunk-62ZOA6PX.js';
136
147
  import { useAnchoredPosition } from './chunk-WSNMQQ4P.js';
137
148
  export { useAnchoredPosition } from './chunk-WSNMQQ4P.js';
138
149
  export { isDarkMode, useIsDarkMode } from './chunk-RUGHNFQG.js';
139
- import './chunk-7XUN3OQT.js';
140
- export { isHtmlEmpty, stripHtmlTags } from './chunk-ERLPVXOV.js';
141
- export { formatPhoneNumber, isPhoneNumberEmpty, isValidPhoneNumber, unformatPhoneNumber } from './chunk-ZVPJ2MH6.js';
142
- import { dateToDisplayFormat, isValidDate, displayFormatToDateString } from './chunk-RC2YMOMS.js';
143
- export { calculateAge, dateToDisplayFormat, displayFormatToDateString, formatDateValue, isDateEmpty, isDateInFuture, isDateInPast, isValidDate, isValidDrivingAge, parseDateValue } from './chunk-RC2YMOMS.js';
144
- import { cn } from './chunk-TQONQSJO.js';
145
- export { cn, miewebUITwMergeConflicts } from './chunk-TQONQSJO.js';
146
- import { isStorybookDocsMode } from './chunk-VSQF22GL.js';
147
- export { isStorybookDocsMode } from './chunk-VSQF22GL.js';
148
150
  import * as React13 from 'react';
149
151
  import React13__default, { createContext, useState, useEffect, useCallback, useMemo, useContext, useRef } from 'react';
150
152
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -12532,6 +12534,7 @@ var ChatComposer = React13.forwardRef(function ChatComposer2({
12532
12534
  acceptedFileTypes,
12533
12535
  maxFileSize,
12534
12536
  maxAttachments = 10,
12537
+ mentionOptions,
12535
12538
  showMic = false,
12536
12539
  onMicClick,
12537
12540
  micSlot,
@@ -12557,6 +12560,8 @@ var ChatComposer = React13.forwardRef(function ChatComposer2({
12557
12560
  sendLabel = "Send message",
12558
12561
  stopLabel = "Stop generating",
12559
12562
  agentSelectorLabel = "Select agent",
12563
+ mentionListLabel = "Mention",
12564
+ dropFilesLabel = "Drop files here",
12560
12565
  className
12561
12566
  }, ref) {
12562
12567
  const [internalValue, setInternalValue] = React13.useState("");
@@ -12580,6 +12585,12 @@ var ChatComposer = React13.forwardRef(function ChatComposer2({
12580
12585
  },
12581
12586
  [isControlled, onValueChange]
12582
12587
  );
12588
+ const mention = useMentionAutocomplete({
12589
+ options: mentionOptions,
12590
+ value,
12591
+ setValue,
12592
+ textareaRef
12593
+ });
12583
12594
  const resizeTextarea = React13.useCallback(() => {
12584
12595
  const textarea = textareaRef.current;
12585
12596
  if (!textarea) return;
@@ -12714,6 +12725,7 @@ var ChatComposer = React13.forwardRef(function ChatComposer2({
12714
12725
  textareaRef.current?.focus();
12715
12726
  };
12716
12727
  const handleKeyDown = (event) => {
12728
+ if (mention.handleKeyDown(event)) return;
12717
12729
  if (event.key === "Enter" && !event.shiftKey) {
12718
12730
  event.preventDefault();
12719
12731
  handleSend();
@@ -12766,48 +12778,69 @@ var ChatComposer = React13.forwardRef(function ChatComposer2({
12766
12778
  }
12767
12779
  ),
12768
12780
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[auto_minmax(0,1fr)_auto]", children: [
12769
- /* @__PURE__ */ jsx("div", { className: cells.input, children: /* @__PURE__ */ jsx(
12770
- "textarea",
12771
- {
12772
- ...textareaProps,
12773
- ref: textareaRef,
12774
- "data-slot": "chat-composer-input",
12775
- value,
12776
- onChange: (event) => {
12777
- textareaProps?.onChange?.(event);
12778
- setValue(event.target.value);
12779
- },
12780
- onKeyDown: (event) => {
12781
- textareaProps?.onKeyDown?.(event);
12782
- if (event.defaultPrevented) return;
12783
- handleKeyDown(event);
12784
- },
12785
- onPaste: (event) => {
12786
- textareaProps?.onPaste?.(event);
12787
- if (event.defaultPrevented) return;
12788
- handlePaste(event);
12789
- },
12790
- placeholder,
12791
- disabled,
12792
- autoFocus,
12793
- rows: 1,
12794
- "aria-label": inputLabel,
12795
- style: {
12796
- ...textareaProps?.style,
12797
- maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
12798
- },
12799
- className: cn(
12800
- "block w-full resize-none bg-transparent",
12801
- "rounded-lg text-sm",
12802
- cells.textarea,
12803
- "text-neutral-900 placeholder:text-neutral-400 dark:text-white dark:placeholder:text-neutral-500",
12804
- // Ring the input itself on focus rather than the whole shell.
12805
- "focus:ring-primary-500 focus:ring-1 focus:outline-none",
12806
- "disabled:cursor-not-allowed",
12807
- textareaProps?.className
12808
- )
12809
- }
12810
- ) }),
12781
+ /* @__PURE__ */ jsxs("div", { className: cells.input, ref: mention.anchorRef, children: [
12782
+ /* @__PURE__ */ jsx(
12783
+ MentionMenu,
12784
+ {
12785
+ mention,
12786
+ label: mentionListLabel,
12787
+ dataSlot: "chat-composer-mention-list"
12788
+ }
12789
+ ),
12790
+ /* @__PURE__ */ jsx(
12791
+ "textarea",
12792
+ {
12793
+ ...textareaProps,
12794
+ ref: textareaRef,
12795
+ "data-slot": "chat-composer-input",
12796
+ value,
12797
+ onChange: (event) => {
12798
+ textareaProps?.onChange?.(event);
12799
+ setValue(event.target.value);
12800
+ mention.sync(
12801
+ event.target.value,
12802
+ event.target.selectionStart ?? event.target.value.length
12803
+ );
12804
+ },
12805
+ onKeyDown: (event) => {
12806
+ textareaProps?.onKeyDown?.(event);
12807
+ if (event.defaultPrevented) return;
12808
+ handleKeyDown(event);
12809
+ },
12810
+ onClick: (event) => {
12811
+ textareaProps?.onClick?.(event);
12812
+ if (event.defaultPrevented) return;
12813
+ const el = event.currentTarget;
12814
+ mention.sync(el.value, el.selectionStart ?? el.value.length);
12815
+ },
12816
+ onPaste: (event) => {
12817
+ textareaProps?.onPaste?.(event);
12818
+ if (event.defaultPrevented) return;
12819
+ handlePaste(event);
12820
+ },
12821
+ placeholder,
12822
+ disabled,
12823
+ autoFocus,
12824
+ rows: 1,
12825
+ "aria-label": inputLabel,
12826
+ ...mention.inputProps,
12827
+ style: {
12828
+ ...textareaProps?.style,
12829
+ maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
12830
+ },
12831
+ className: cn(
12832
+ "block w-full resize-none bg-transparent",
12833
+ "rounded-lg text-sm",
12834
+ cells.textarea,
12835
+ "text-neutral-900 placeholder:text-neutral-400 dark:text-white dark:placeholder:text-neutral-500",
12836
+ // Ring the input itself on focus rather than the whole shell.
12837
+ "focus:ring-primary-500 focus:ring-1 focus:outline-none",
12838
+ "disabled:cursor-not-allowed",
12839
+ textareaProps?.className
12840
+ )
12841
+ }
12842
+ )
12843
+ ] }),
12811
12844
  showAddMenu && /* @__PURE__ */ jsx("div", { className: cells.add, children: /* @__PURE__ */ jsxs(
12812
12845
  Dropdown,
12813
12846
  {
@@ -13022,6 +13055,17 @@ var ChatComposer = React13.forwardRef(function ChatComposer2({
13022
13055
  ]
13023
13056
  }
13024
13057
  );
13058
+ const card = /* @__PURE__ */ jsx(
13059
+ "div",
13060
+ {
13061
+ "data-slot": "chat-composer-card",
13062
+ className: cn(
13063
+ "rounded-2xl border border-neutral-200 bg-white shadow-sm",
13064
+ "dark:border-[#2e2e30] dark:bg-[#1c1c1e]"
13065
+ ),
13066
+ children: composerCard
13067
+ }
13068
+ );
13025
13069
  return /* @__PURE__ */ jsxs(
13026
13070
  "div",
13027
13071
  {
@@ -13032,17 +13076,16 @@ var ChatComposer = React13.forwardRef(function ChatComposer2({
13032
13076
  className
13033
13077
  ),
13034
13078
  children: [
13035
- /* @__PURE__ */ jsx(
13036
- "div",
13079
+ allowAttachments ? /* @__PURE__ */ jsx(
13080
+ DragDropZone,
13037
13081
  {
13038
- "data-slot": "chat-composer-card",
13039
- className: cn(
13040
- "rounded-2xl border border-neutral-200 bg-white shadow-sm",
13041
- "dark:border-[#2e2e30] dark:bg-[#1c1c1e]"
13042
- ),
13043
- children: composerCard
13082
+ onFilesDropped: addFiles,
13083
+ maxFiles: Number.MAX_SAFE_INTEGER,
13084
+ disabled,
13085
+ overlayLabel: dropFilesLabel,
13086
+ children: card
13044
13087
  }
13045
- ),
13088
+ ) : card,
13046
13089
  selectorsRow
13047
13090
  ]
13048
13091
  }
@@ -41564,33 +41607,49 @@ function Sidebar({
41564
41607
  "data-testid": testId = "sidebar"
41565
41608
  }) {
41566
41609
  const { isCollapsed, isMobileOpen, closeMobile, isMobileViewport } = useSidebar();
41610
+ const navRef = useRef(null);
41611
+ const isRtl = useDirection(navRef) === "rtl";
41567
41612
  const width = isMobileViewport ? expandedWidth : isCollapsed ? collapsedWidth : expandedWidth;
41568
41613
  return /* @__PURE__ */ jsxs(Fragment, { children: [
41569
- isMobileViewport && isMobileOpen && /* @__PURE__ */ jsx(
41570
- "div",
41614
+ isMobileViewport && /* @__PURE__ */ jsx(AnimatedPresence, { children: isMobileOpen && /* @__PURE__ */ jsx(
41615
+ Animated,
41571
41616
  {
41617
+ preset: "overlay",
41618
+ mode: "presence",
41572
41619
  "data-slot": "sidebar-backdrop",
41573
- className: "fixed inset-0 z-40 bg-black/50 lg:hidden",
41620
+ className: "fixed inset-0 z-40 bg-black/50",
41574
41621
  onClick: closeMobile,
41575
41622
  "aria-hidden": "true"
41576
- }
41577
- ),
41623
+ },
41624
+ "sidebar-backdrop"
41625
+ ) }),
41578
41626
  /* @__PURE__ */ jsx(
41579
- "nav",
41627
+ Animated,
41580
41628
  {
41629
+ ref: navRef,
41630
+ as: "nav",
41631
+ preset: "drawerStart",
41632
+ mode: "toggle",
41633
+ enabled: isMobileViewport,
41634
+ open: isMobileOpen,
41635
+ custom: isRtl,
41581
41636
  "data-slot": "sidebar",
41582
41637
  "data-testid": testId,
41583
41638
  className: cn(
41584
41639
  "flex h-screen flex-col",
41585
41640
  "border-e border-neutral-200 bg-white dark:border-neutral-700 dark:bg-neutral-900",
41586
- "transition-all duration-300 ease-in-out",
41587
41641
  // Mobile positioning (start-pinned; off-canvas direction flips in RTL)
41588
41642
  isMobileViewport && "fixed start-0 top-0 z-50",
41589
- isMobileViewport && (isMobileOpen ? "translate-x-0" : "-translate-x-full rtl:translate-x-full"),
41590
- // Desktop positioning
41591
- !isMobileViewport && "relative",
41643
+ // Desktop positioning. Collapsing animates `width`, which motion does
41644
+ // not drive, so this transition belongs on both paths — but scoped to
41645
+ // desktop, where width is the only thing that changes.
41646
+ !isMobileViewport && "relative transition-[width,min-width] duration-300 ease-in-out",
41592
41647
  className
41593
41648
  ),
41649
+ fallbackClassName: cn(
41650
+ isMobileViewport && "transition-transform duration-300 ease-in-out",
41651
+ isMobileViewport && (isMobileOpen ? "translate-x-0" : "-translate-x-full rtl:translate-x-full")
41652
+ ),
41594
41653
  style: {
41595
41654
  width,
41596
41655
  minWidth: width,
@@ -41633,7 +41692,7 @@ function SidebarHeader({
41633
41692
  "button",
41634
41693
  {
41635
41694
  onClick: closeMobile,
41636
- className: "-me-2 rounded-lg p-2 text-neutral-500 transition-colors hover:bg-neutral-100 lg:hidden dark:hover:bg-neutral-800",
41695
+ className: "-me-2 rounded-lg p-2 text-neutral-500 transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-800",
41637
41696
  "aria-label": "Close navigation",
41638
41697
  children: /* @__PURE__ */ jsx(XIcon4, {})
41639
41698
  }
@@ -41725,17 +41784,31 @@ function SidebarNavGroup({
41725
41784
  children: icon
41726
41785
  }
41727
41786
  ),
41728
- !showCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
41729
- /* @__PURE__ */ jsx("span", { className: "flex-1 truncate text-start", children: label }),
41730
- /* @__PURE__ */ jsx(
41731
- "span",
41787
+ /* @__PURE__ */ jsxs(AnimatedPresence, { initial: false, children: [
41788
+ !showCollapsed && /* @__PURE__ */ jsx(
41789
+ Animated,
41732
41790
  {
41791
+ as: "span",
41792
+ preset: "sidebarLabel",
41793
+ mode: "presence",
41794
+ className: "flex-1 truncate text-start",
41795
+ children: label
41796
+ },
41797
+ "label"
41798
+ ),
41799
+ !showCollapsed && /* @__PURE__ */ jsx(
41800
+ Animated,
41801
+ {
41802
+ as: "span",
41803
+ preset: "sidebarLabel",
41804
+ mode: "presence",
41733
41805
  className: cn(
41734
41806
  "ms-2 flex-shrink-0 transition-transform duration-200",
41735
41807
  effectiveExpanded && "rotate-180"
41736
41808
  ),
41737
41809
  children: /* @__PURE__ */ jsx(ChevronDownIcon4, {})
41738
- }
41810
+ },
41811
+ "chevron"
41739
41812
  )
41740
41813
  ] })
41741
41814
  ]
@@ -41785,17 +41858,31 @@ function SidebarNavItem({
41785
41858
  children: icon
41786
41859
  }
41787
41860
  ),
41788
- !showCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
41789
- /* @__PURE__ */ jsx("span", { className: "flex-1 truncate text-start", children: label }),
41790
- badge && /* @__PURE__ */ jsx(
41791
- "span",
41861
+ /* @__PURE__ */ jsxs(AnimatedPresence, { initial: false, children: [
41862
+ !showCollapsed && /* @__PURE__ */ jsx(
41863
+ Animated,
41792
41864
  {
41865
+ as: "span",
41866
+ preset: "sidebarLabel",
41867
+ mode: "presence",
41868
+ className: "flex-1 truncate text-start",
41869
+ children: label
41870
+ },
41871
+ "label"
41872
+ ),
41873
+ !showCollapsed && badge && /* @__PURE__ */ jsx(
41874
+ Animated,
41875
+ {
41876
+ as: "span",
41877
+ preset: "sidebarLabel",
41878
+ mode: "presence",
41793
41879
  className: cn(
41794
41880
  "ms-2 rounded-full px-2 py-0.5 text-xs font-medium",
41795
41881
  isActive ? "bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300" : "bg-neutral-100 text-neutral-600 dark:bg-neutral-700 dark:text-neutral-400"
41796
41882
  ),
41797
41883
  children: badge
41798
- }
41884
+ },
41885
+ "badge"
41799
41886
  )
41800
41887
  ] })
41801
41888
  ] });