@apple-pie/slice 0.1.32 → 0.1.34

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 (260) hide show
  1. package/dist/cjs/chunks/{AudioBubble-Dh2IlYW0.js → AudioBubble-D6EdVxCx.js} +4 -3
  2. package/dist/cjs/chunks/{Avatar-WcBAu25_.js → Avatar-C8Y8QA6W.js} +1 -1
  3. package/dist/cjs/chunks/{AvatarGroup-eUkVdeTf.js → AvatarGroup-BJGROy0D.js} +1 -1
  4. package/dist/cjs/chunks/{Badge-4tBynWZe.js → Badge-D0jOqpGM.js} +1 -1
  5. package/dist/cjs/chunks/{Button-QJ5lsSAz.js → Button-CSyenByA.js} +1 -1
  6. package/dist/cjs/chunks/{ButtonBar-DcpvT1vD.js → ButtonBar-D6nO_KLU.js} +1 -1
  7. package/dist/cjs/chunks/{Camera-iDyPLq9h.js → Camera-C8ug84NJ.js} +5 -4
  8. package/dist/cjs/chunks/{CheckBox-CmZJd8u2.js → CheckBox-rALyYaSt.js} +1 -1
  9. package/dist/cjs/chunks/{Chip-Bd1bSYeC.js → Chip-BwxjTPRM.js} +1 -1
  10. package/dist/cjs/chunks/{DivInput-BY9pQ6ty.js → DivInput-BRhOr7b5.js} +1 -1
  11. package/dist/cjs/chunks/{Dot-BeWDLajy.js → Dot-DLk45OlQ.js} +1 -1
  12. package/dist/cjs/chunks/{DrggablePanel-DzY5wTco.js → DrggablePanel-Ch24xWZu.js} +4 -3
  13. package/dist/cjs/chunks/{DropDown-Cn_nX8u7.js → DropDown-BbhZnN_w.js} +1 -1
  14. package/dist/cjs/chunks/{ErrorSummary-D-0uVwyV.js → ErrorSummary-CI6hUFwD.js} +4 -3
  15. package/dist/cjs/chunks/{FileIcon-JfY2AYqG.js → FileIcon-CfjasX-r.js} +5 -3
  16. package/dist/cjs/chunks/{FileList-Dc1nfpR2.js → FileList-B93Xcxz4.js} +1 -1
  17. package/dist/cjs/chunks/{FlexDiv-B5Pi0-aJ.js → FlexDiv-rfXrDSOq.js} +1 -1
  18. package/dist/cjs/chunks/{Grouper-DKZkTlow.js → Grouper-DSrE9R-U.js} +4 -3
  19. package/dist/cjs/chunks/{Icon-BVYVJp9J.js → Icon-CRxH8X5b.js} +4 -3
  20. package/dist/cjs/chunks/{IconButton-CP1Wsvsx.js → IconButton-KFtalJ6A.js} +1 -1
  21. package/dist/cjs/chunks/{IndexedDB-CeiVT55Z.js → IndexedDB-BFj53nVB.js} +1 -1
  22. package/dist/cjs/chunks/{Label-DIs1rOey.js → Label-BHP_DdP0.js} +1 -1
  23. package/dist/cjs/chunks/{Level-3yxetsco.js → Level-BWOIrzAv.js} +1 -1
  24. package/dist/cjs/chunks/{Modal-CjpQdoOe.js → Modal-BEKrk6zT.js} +1 -1
  25. package/dist/cjs/chunks/ModalController-DQJ-Vr6w.js +80 -0
  26. package/dist/cjs/chunks/{Overlay-DRpHYZek.js → Overlay-CgD0_kQK.js} +1 -1
  27. package/dist/cjs/chunks/{Pager-ChnTKwml.js → Pager-CjMnXBqh.js} +1 -1
  28. package/dist/cjs/chunks/{ProgressIndicator-CFiAU-aF.js → ProgressIndicator-V-orBNdI.js} +4 -3
  29. package/dist/cjs/chunks/{PromptInput-BFWR0TaP.js → PromptInput-DK1pGnIm.js} +42 -36
  30. package/dist/cjs/chunks/{RadioButton-Bi-FP41j.js → RadioButton-DOv8YC-8.js} +1 -1
  31. package/dist/cjs/chunks/{RadioButtonList-JHPKMCoX.js → RadioButtonList-BC0PaUB2.js} +1 -1
  32. package/dist/cjs/chunks/{Slider-D97ws1Cl.js → Slider-D4zQ-4aq.js} +10 -1
  33. package/dist/cjs/chunks/{Spacer-DvI2M1wZ.js → Spacer-CdIj0JdL.js} +1 -1
  34. package/dist/cjs/chunks/{Switch-DDSSprb7.js → Switch-BcyjA09W.js} +1 -1
  35. package/dist/cjs/chunks/{TabBar-TllSeSzb.js → TabBar-BzfXUqQ7.js} +38 -17
  36. package/dist/cjs/chunks/{TextArea-DjZRDixt.js → TextArea-Aqo_XxW3.js} +1 -1
  37. package/dist/cjs/chunks/{TextField-CKA3K0AN.js → TextField-D9cVqxeH.js} +5 -4
  38. package/dist/cjs/chunks/{Tip-BdGXN-TQ.js → Tip-6p-WETDg.js} +1 -1
  39. package/dist/cjs/chunks/{Toast-COrDS_50.js → Toast-D2RPpe4w.js} +5 -4
  40. package/dist/cjs/chunks/{ToggleButton-hoOMzBZc.js → ToggleButton-DIO-mLzn.js} +4 -3
  41. package/dist/cjs/chunks/{UploadArea-ClG8ZgRZ.js → UploadArea-dLHkxZaJ.js} +1 -1
  42. package/dist/cjs/chunks/{WSConnection-Brxc2hEv.js → WSConnection-DUtc0Zek.js} +1 -1
  43. package/dist/cjs/chunks/{WebRTCConnection-eWP4lueC.js → WebRTCConnection-DOegM5k_.js} +1 -1
  44. package/dist/cjs/chunks/{localDBStore-SS_r0C6F.js → localDBStore-BE1Spdvk.js} +1 -1
  45. package/dist/cjs/chunks/{microphoneStore-DM_8bhFr.js → microphoneStore-BQttBRKb.js} +1 -1
  46. package/dist/cjs/chunks/{misc-4xyXRU2K.js → misc-CktV9aap.js} +1 -1
  47. package/dist/cjs/chunks/{sseStore-Ag-UnuQq.js → sseStore-CUctZwDm.js} +2 -2
  48. package/dist/cjs/chunks/{uploads-worker-CI-SZptI.js → uploads-worker-B-7wl30J.js} +1 -1
  49. package/dist/cjs/chunks/{uploadsStore-DR2hc4ct.js → uploadsStore-BhvyVpxk.js} +2 -2
  50. package/dist/cjs/chunks/{volumeStore-DtTHf-9_.js → volumeStore-CPxgI64S.js} +4 -5
  51. package/dist/cjs/chunks/{webRTCStore-DWWn7k-0.js → webRTCStore-M1HXHN92.js} +1 -1
  52. package/dist/cjs/chunks/{windowStore-BUo9Du_e.js → windowStore-BeMPlP7X.js} +1 -1
  53. package/dist/cjs/components/AudioBubble/index.js +6 -4
  54. package/dist/cjs/components/Avatar/index.js +3 -3
  55. package/dist/cjs/components/AvatarGroup/index.js +3 -3
  56. package/dist/cjs/components/Badge/index.js +2 -2
  57. package/dist/cjs/components/Button/index.js +9 -7
  58. package/dist/cjs/components/ButtonBar/index.js +6 -4
  59. package/dist/cjs/components/Camera/index.js +7 -5
  60. package/dist/cjs/components/CheckBox/index.js +6 -4
  61. package/dist/cjs/components/Chip/index.js +7 -5
  62. package/dist/cjs/components/DivInput/index.js +3 -3
  63. package/dist/cjs/components/Dot/index.js +2 -2
  64. package/dist/cjs/components/DraggablePanel/index.js +5 -3
  65. package/dist/cjs/components/DropDown/index.js +6 -4
  66. package/dist/cjs/components/ErrorSummary/index.js +5 -3
  67. package/dist/cjs/components/FileIcon/index.js +5 -3
  68. package/dist/cjs/components/FileList/index.js +7 -5
  69. package/dist/cjs/components/FlexDiv/index.js +2 -2
  70. package/dist/cjs/components/Grouper/index.js +7 -5
  71. package/dist/cjs/components/Icon/index.js +5 -3
  72. package/dist/cjs/components/IconButton/index.js +8 -6
  73. package/dist/cjs/components/Label/index.js +3 -3
  74. package/dist/cjs/components/Level/index.js +3 -3
  75. package/dist/cjs/components/Modal/index.js +10 -8
  76. package/dist/cjs/components/ModalController/index.js +6 -4
  77. package/dist/cjs/components/Overlay/index.js +2 -2
  78. package/dist/cjs/components/Pager/index.js +3 -3
  79. package/dist/cjs/components/Progress/index.js +5 -3
  80. package/dist/cjs/components/PromptInput/index.js +9 -7
  81. package/dist/cjs/components/RadioButton/index.js +6 -4
  82. package/dist/cjs/components/RadioButtonList/index.js +7 -5
  83. package/dist/cjs/components/Slider/index.js +7 -4
  84. package/dist/cjs/components/Spacer/index.js +2 -2
  85. package/dist/cjs/components/Switch/index.js +2 -2
  86. package/dist/cjs/components/TabBar/index.js +8 -6
  87. package/dist/cjs/components/TextArea/index.js +9 -7
  88. package/dist/cjs/components/Textfield/index.js +9 -7
  89. package/dist/cjs/components/Tip/index.js +3 -3
  90. package/dist/cjs/components/Toast/index.js +6 -4
  91. package/dist/cjs/components/ToggleButton/index.js +9 -7
  92. package/dist/cjs/components/UploadArea/index.js +11 -10
  93. package/dist/cjs/hooks/useAudioRecorder.js +1 -1
  94. package/dist/cjs/hooks/useBindWebRTC.js +2 -2
  95. package/dist/cjs/hooks/useMdStreamBuffer.js +1 -1
  96. package/dist/cjs/hooks/useMicrophone.js +1 -1
  97. package/dist/cjs/hooks/useTrackRenders.js +2 -2
  98. package/dist/cjs/hooks.js +3 -3
  99. package/dist/cjs/index.js +8 -9
  100. package/dist/cjs/stores/LocalDB.js +3 -3
  101. package/dist/cjs/stores/SSE.js +2 -2
  102. package/dist/cjs/stores/WS.js +2 -2
  103. package/dist/cjs/stores/WebRTC.js +2 -2
  104. package/dist/cjs/stores/microphone.js +2 -2
  105. package/dist/cjs/stores/modal.js +1 -1
  106. package/dist/cjs/stores/tip.js +1 -1
  107. package/dist/cjs/stores/toast.js +1 -1
  108. package/dist/cjs/stores/uploads.js +2 -2
  109. package/dist/cjs/stores/volume.js +2 -2
  110. package/dist/cjs/stores/window.js +2 -2
  111. package/dist/cjs/stores.js +31 -31
  112. package/dist/cjs/utils/index.js +2 -2
  113. package/dist/cjs/utils/objects/index.js +2 -2
  114. package/dist/cjs/workers/uploads/uploads.js +2 -2
  115. package/dist/esm/chunks/{AudioBubble-cYlxxQ7c.mjs → AudioBubble-BudIMUsf.mjs} +9 -3
  116. package/dist/esm/chunks/{Avatar-D84wF2os.mjs → Avatar-Bk8kdTEa.mjs} +2 -2
  117. package/dist/esm/chunks/{AvatarGroup-DiwfbRxH.mjs → AvatarGroup-CRixAHW5.mjs} +2 -2
  118. package/dist/esm/chunks/{Badge-DuUb5-80.mjs → Badge-DHvo2-ZQ.mjs} +1 -1
  119. package/dist/esm/chunks/{Button-BIgwWrPJ.mjs → Button-v92U2QVV.mjs} +6 -6
  120. package/dist/esm/chunks/{ButtonBar-vNvnvw7u.mjs → ButtonBar-Bn4GhpbO.mjs} +3 -3
  121. package/dist/esm/chunks/{Camera-BMwkTJPq.mjs → Camera-Cvp_kb-A.mjs} +11 -5
  122. package/dist/esm/chunks/{CheckBox-Cpoxy8w_.mjs → CheckBox-CUbeBXgg.mjs} +3 -3
  123. package/dist/esm/chunks/{Chip-BayNVv7N.mjs → Chip-HGLXF8JO.mjs} +4 -4
  124. package/dist/esm/chunks/{DivInput-CWRUxy1y.mjs → DivInput-CZ3PVteW.mjs} +2 -2
  125. package/dist/esm/chunks/{Dot-v_kcIWV2.mjs → Dot-B6Q97aIp.mjs} +1 -1
  126. package/dist/esm/chunks/{DrggablePanel-yEeGeE1w.mjs → DrggablePanel-DLltuMUc.mjs} +8 -2
  127. package/dist/esm/chunks/{DropDown-QQhwAg_J.mjs → DropDown-DqVsJwO3.mjs} +3 -3
  128. package/dist/esm/chunks/{ErrorSummary-DzIZMIll.mjs → ErrorSummary-CCTJpTqA.mjs} +8 -2
  129. package/dist/esm/chunks/{FileIcon-6UlkbKzk.mjs → FileIcon-DnEohsNX.mjs} +8 -2
  130. package/dist/esm/chunks/{FileList-vMiGJByw.mjs → FileList-CnuT4Llg.mjs} +5 -5
  131. package/dist/esm/chunks/{FlexDiv-B1m7aY04.mjs → FlexDiv-DGEzQRcq.mjs} +1 -1
  132. package/dist/esm/chunks/{Grouper-BDrAnfDF.mjs → Grouper-BoGryrnc.mjs} +9 -3
  133. package/dist/esm/chunks/{Icon-D4A6_c4x.mjs → Icon-CbDAKN_S.mjs} +8 -2
  134. package/dist/esm/chunks/{IconButton-B_W-aOsB.mjs → IconButton-nOcdRqR3.mjs} +5 -5
  135. package/dist/esm/chunks/{IndexedDB-CTqfKmp1.mjs → IndexedDB-Bqjric8V.mjs} +1 -1
  136. package/dist/esm/chunks/{Label-I75yz3gq.mjs → Label-BlvreqNJ.mjs} +2 -2
  137. package/dist/esm/chunks/{Level-DgczkKBr.mjs → Level-COXHoBs6.mjs} +3 -3
  138. package/dist/esm/chunks/{Modal-CwwyijaO.mjs → Modal-CqBytyja.mjs} +5 -5
  139. package/dist/esm/chunks/ModalController-6Gc8QRxx.mjs +91 -0
  140. package/dist/esm/chunks/{Overlay-C-yori3-.mjs → Overlay-iKgSkUKP.mjs} +1 -1
  141. package/dist/esm/chunks/{Pager-BEtfyKtq.mjs → Pager-XgsZBzcg.mjs} +2 -2
  142. package/dist/esm/chunks/{ProgressIndicator-BV0ginXb.mjs → ProgressIndicator-BWrcdWvF.mjs} +8 -2
  143. package/dist/esm/chunks/{PromptInput-Cn5fRYap.mjs → PromptInput-DbT3sVeA.mjs} +46 -37
  144. package/dist/esm/chunks/{RadioButton-DWlg6ldv.mjs → RadioButton-DUzPaLKa.mjs} +3 -3
  145. package/dist/esm/chunks/{RadioButtonList-D9FdlhPL.mjs → RadioButtonList-NjEGYpj4.mjs} +3 -3
  146. package/dist/esm/chunks/{Slider-B2WZkZSg.mjs → Slider-Bvnhqzjx.mjs} +14 -4
  147. package/dist/esm/chunks/{Spacer-7Oj0SlD0.mjs → Spacer-B2JAN7e8.mjs} +1 -1
  148. package/dist/esm/chunks/{Switch-DRhnznnO.mjs → Switch-CspvY_DQ.mjs} +1 -1
  149. package/dist/esm/chunks/{TabBar-D6VR71ye.mjs → TabBar-BlvOUGJx.mjs} +42 -18
  150. package/dist/esm/chunks/{TextArea-CkB5rJjI.mjs → TextArea-BpMTGopK.mjs} +2 -2
  151. package/dist/esm/chunks/{TextField-BIXmkjEz.mjs → TextField-DELrBLOa.mjs} +11 -5
  152. package/dist/esm/chunks/{Tip-CTdrwLky.mjs → Tip-DBVeB0Zs.mjs} +2 -2
  153. package/dist/esm/chunks/{Toast-8bUziIgh.mjs → Toast-HU8Pgwsr.mjs} +10 -4
  154. package/dist/esm/chunks/{ToggleButton-BOFITa8_.mjs → ToggleButton-CGpBWhaX.mjs} +5 -4
  155. package/dist/esm/chunks/{UploadArea-DE2ccDVx.mjs → UploadArea-DdV_ILIU.mjs} +4 -4
  156. package/dist/esm/chunks/{WSConnection-CHudrD62.mjs → WSConnection-eStD8i-1.mjs} +1 -1
  157. package/dist/esm/chunks/{WebRTCConnection-DQbNa7Z9.mjs → WebRTCConnection-BaPHQ_C4.mjs} +1 -1
  158. package/dist/esm/chunks/{localDBStore-CaYiqITY.mjs → localDBStore-NpiMrXsA.mjs} +2 -2
  159. package/dist/esm/chunks/{microphoneStore-COEGtgyX.mjs → microphoneStore-uYs2NQQx.mjs} +1 -1
  160. package/dist/esm/chunks/{misc-2MIIqzsX.mjs → misc-BQH7I5Zj.mjs} +1 -1
  161. package/dist/esm/chunks/{sseStore-nW9CMec_.mjs → sseStore-ueYoyFeB.mjs} +2 -2
  162. package/dist/esm/chunks/{uploads-worker-CMomtRvm.mjs → uploads-worker-CFPGExfT.mjs} +1 -1
  163. package/dist/esm/chunks/{uploadsStore-CsfpSOTS.mjs → uploadsStore-DNalSMtC.mjs} +1 -1
  164. package/dist/esm/chunks/{volumeStore-TSYPqbHx.mjs → volumeStore-C0iU07fK.mjs} +4 -5
  165. package/dist/esm/chunks/{webRTCStore-CVCDJzj5.mjs → webRTCStore-Ck8TCzr_.mjs} +2 -2
  166. package/dist/esm/chunks/{windowStore-BvejIR82.mjs → windowStore-DcYPAWds.mjs} +1 -1
  167. package/dist/esm/components/AudioBubble/index.mjs +14 -4
  168. package/dist/esm/components/Avatar/index.mjs +3 -3
  169. package/dist/esm/components/AvatarGroup/index.mjs +4 -4
  170. package/dist/esm/components/Badge/index.mjs +2 -2
  171. package/dist/esm/components/Button/index.mjs +18 -8
  172. package/dist/esm/components/ButtonBar/index.mjs +14 -4
  173. package/dist/esm/components/Camera/index.mjs +16 -6
  174. package/dist/esm/components/CheckBox/index.mjs +14 -4
  175. package/dist/esm/components/Chip/index.mjs +15 -5
  176. package/dist/esm/components/DivInput/index.mjs +3 -3
  177. package/dist/esm/components/Dot/index.mjs +2 -2
  178. package/dist/esm/components/DraggablePanel/index.mjs +13 -3
  179. package/dist/esm/components/DropDown/index.mjs +14 -4
  180. package/dist/esm/components/ErrorSummary/index.mjs +13 -3
  181. package/dist/esm/components/FileIcon/index.mjs +13 -3
  182. package/dist/esm/components/FileList/index.mjs +16 -6
  183. package/dist/esm/components/FlexDiv/index.mjs +2 -2
  184. package/dist/esm/components/Grouper/index.mjs +15 -5
  185. package/dist/esm/components/Icon/index.mjs +14 -4
  186. package/dist/esm/components/IconButton/index.mjs +17 -7
  187. package/dist/esm/components/Label/index.mjs +3 -3
  188. package/dist/esm/components/Level/index.mjs +4 -4
  189. package/dist/esm/components/Modal/index.mjs +20 -10
  190. package/dist/esm/components/ModalController/index.mjs +14 -6
  191. package/dist/esm/components/Overlay/index.mjs +2 -2
  192. package/dist/esm/components/Pager/index.mjs +3 -3
  193. package/dist/esm/components/Progress/index.mjs +14 -4
  194. package/dist/esm/components/PromptInput/index.mjs +22 -12
  195. package/dist/esm/components/RadioButton/index.mjs +14 -4
  196. package/dist/esm/components/RadioButtonList/index.mjs +15 -5
  197. package/dist/esm/components/Slider/index.mjs +19 -5
  198. package/dist/esm/components/Spacer/index.mjs +2 -2
  199. package/dist/esm/components/Switch/index.mjs +2 -2
  200. package/dist/esm/components/TabBar/index.mjs +19 -9
  201. package/dist/esm/components/TextArea/index.mjs +19 -9
  202. package/dist/esm/components/Textfield/index.mjs +20 -10
  203. package/dist/esm/components/Tip/index.mjs +3 -3
  204. package/dist/esm/components/Toast/index.mjs +15 -5
  205. package/dist/esm/components/ToggleButton/index.mjs +19 -9
  206. package/dist/esm/components/UploadArea/index.mjs +19 -9
  207. package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
  208. package/dist/esm/hooks/useBindWebRTC.mjs +5 -5
  209. package/dist/esm/hooks/useMdStreamBuffer.mjs +2 -2
  210. package/dist/esm/hooks/useMicrophone.mjs +1 -1
  211. package/dist/esm/hooks/useTrackRenders.mjs +2 -2
  212. package/dist/esm/hooks.mjs +6 -6
  213. package/dist/esm/index.mjs +53 -53
  214. package/dist/esm/stores/LocalDB.mjs +3 -3
  215. package/dist/esm/stores/SSE.mjs +3 -3
  216. package/dist/esm/stores/WS.mjs +2 -2
  217. package/dist/esm/stores/WebRTC.mjs +3 -3
  218. package/dist/esm/stores/microphone.mjs +2 -2
  219. package/dist/esm/stores/modal.mjs +1 -1
  220. package/dist/esm/stores/tip.mjs +1 -1
  221. package/dist/esm/stores/toast.mjs +1 -1
  222. package/dist/esm/stores/uploads.mjs +3 -3
  223. package/dist/esm/stores/volume.mjs +2 -2
  224. package/dist/esm/stores/window.mjs +2 -2
  225. package/dist/esm/stores.mjs +17 -17
  226. package/dist/esm/utils/index.mjs +10 -10
  227. package/dist/esm/utils/objects/index.mjs +7 -7
  228. package/dist/esm/workers/uploads/uploads.mjs +2 -2
  229. package/dist/styles.css +46 -3
  230. package/dist/types/components/PromptInput/PromptInput.d.ts +10 -2
  231. package/dist/types/components/PromptInput/_types.d.ts +5 -1
  232. package/dist/types/components/TabBar/_types.d.ts +5 -0
  233. package/dist/types/components/ToggleButton/_types.d.ts +1 -0
  234. package/dist/types/stores/volume/_types.d.ts +1 -1
  235. package/dist/types/stores/volume/volumeStore.d.ts +2 -2
  236. package/package.json +1 -1
  237. package/dist/cjs/chunks/ModalController-Cp2PXOOS.js +0 -68
  238. package/dist/esm/chunks/ModalController-IyB9lDRa.mjs +0 -76
  239. /package/dist/cjs/chunks/{MdStreamBuffer-BudWFoNw.js → MdStreamBuffer-CQGZtTLN.js} +0 -0
  240. /package/dist/cjs/chunks/{SSEConnection-DfjLAlOG.js → SSEConnection-BqitbvAq.js} +0 -0
  241. /package/dist/cjs/chunks/{_types-DMyBIF8s.js → _types-CnvV2yMQ.js} +0 -0
  242. /package/dist/cjs/chunks/{audioVisualizer-BxPvUj4h.js → audioVisualizer-i41gzZXM.js} +0 -0
  243. /package/dist/cjs/chunks/{colors-4n0sNFRA.js → colors-BlSE7Sf2.js} +0 -0
  244. /package/dist/cjs/chunks/{debounce-_IK-La-Z.js → debounce-C7m-uQW2.js} +0 -0
  245. /package/dist/cjs/chunks/{modalStore-CFsfK3ba.js → modalStore-BrwOUMH_.js} +0 -0
  246. /package/dist/cjs/chunks/{sharedTypes-C0ZHzH_T.js → sharedTypes-Cep5dDpY.js} +0 -0
  247. /package/dist/cjs/chunks/{tipStore-dqD9-c30.js → tipStore-BXKWR6IE.js} +0 -0
  248. /package/dist/cjs/chunks/{toastStore-BN1N7WXv.js → toastStore-Y9JmFP0o.js} +0 -0
  249. /package/dist/cjs/chunks/{tslib.es6-DsF7Wv4Y.js → tslib.es6-yslq87rf.js} +0 -0
  250. /package/dist/esm/chunks/{MdStreamBuffer-CoQWQwRL.mjs → MdStreamBuffer-BF5ZQeUD.mjs} +0 -0
  251. /package/dist/esm/chunks/{SSEConnection-iFKOV9Uo.mjs → SSEConnection-DNA5yBWy.mjs} +0 -0
  252. /package/dist/esm/chunks/{_types-DrNviSG6.mjs → _types-DR4jXucA.mjs} +0 -0
  253. /package/dist/esm/chunks/{audioVisualizer-BsmpLZyK.mjs → audioVisualizer-CAET7dc9.mjs} +0 -0
  254. /package/dist/esm/chunks/{colors-BAATtfbL.mjs → colors-BHYMt294.mjs} +0 -0
  255. /package/dist/esm/chunks/{debounce-CYBH5qXQ.mjs → debounce-DpPYyz3x.mjs} +0 -0
  256. /package/dist/esm/chunks/{modalStore-DmaeMv7z.mjs → modalStore-DbxIsSpU.mjs} +0 -0
  257. /package/dist/esm/chunks/{sharedTypes-CyrInj1b.mjs → sharedTypes-DoNQkNSM.mjs} +0 -0
  258. /package/dist/esm/chunks/{tipStore-B_MUZfr2.mjs → tipStore-CmyIJWe7.mjs} +0 -0
  259. /package/dist/esm/chunks/{toastStore-DAprlBVj.mjs → toastStore-BYMHSiu2.mjs} +0 -0
  260. /package/dist/esm/chunks/{tslib.es6-C81Qhn1z.mjs → tslib.es6-75ZdAmtm.mjs} +0 -0
@@ -7,13 +7,21 @@ import { useTheme } from "../hooks/useTheme.mjs";
7
7
 
8
8
  import "../theme/colors.mjs";
9
9
 
10
- import "./tslib.es6-C81Qhn1z.mjs";
10
+ import "./tslib.es6-75ZdAmtm.mjs";
11
+
12
+ import { s as setStyle } from "./misc-BQH7I5Zj.mjs";
13
+
14
+ import "./webRTCStore-Ck8TCzr_.mjs";
15
+
16
+ import "./microphoneStore-uYs2NQQx.mjs";
17
+
18
+ import "./volumeStore-C0iU07fK.mjs";
11
19
 
12
20
  import "../hooks/useWindow.mjs";
13
21
 
14
- import { B as Button } from "./Button-BIgwWrPJ.mjs";
22
+ import { B as Button } from "./Button-v92U2QVV.mjs";
15
23
 
16
- import { F as FileList } from "./FileList-vMiGJByw.mjs";
24
+ import { F as FileList } from "./FileList-CnuT4Llg.mjs";
17
25
 
18
26
  var css = {
19
27
  wrapperBg: "PromptInput-module_wrapperBg__zabZq flexBox-module_columnStart__C7P44",
@@ -30,15 +38,17 @@ var css = {
30
38
  };
31
39
 
32
40
  const PromptInputBase = React.forwardRef((props, ref) => {
33
- const {children: children, attachments: attachments = [], value: value = "", working: working = !1, maxHeight: maxHeight, borderStyle: borderStyle = "gradient", borderColor: borderColor, borderColorOn: borderColorOn, borderAnimate: borderAnimate = !0, borderWidth: borderWidth = 1, borderRadius: borderRadius = 8, focused: focused = !1, placeholder: placeholder = "Ask me anything ...", placeholderWorking: placeholderWorking = "Working ...", submitClears: submitClears = !0, submitEnablesStop: submitEnablesStop = !0, enterSubmits: enterSubmits = !0, attachButton: attachButton = !0, sendButton: sendButton = !0, stopEnabled: stopEnabled = !1, textSize: textSize = "m", maxLength: maxLength, toolbarGap: toolbarGap = 8, onChange: onChange, onBlur: onBlur, onFocus: onFocus, onSubmit: onSubmit, onStop: onStop, onAttachmentsChange: onAttachmentsChange} = props, {isDark: isDark} = useTheme(), [isFocused, setIsFocused] = useState(null != focused && focused), [isWorking, setIsWorking] = useState(null != working && working), [isStopEnabled, setIsStopEnabled] = useState(stopEnabled), [textValue, setTextValue] = useState(value), textAreaRef = useRef(null), handleFocus = useCallback(() => {
41
+ const {children: children, attachments: attachments = [], value: value = "", width: width = "100%", maxWidth: maxWidth, minWidth: minWidth, working: working = !1, maxHeight: maxHeight, attachmentsDisabled: attachmentsDisabled = !1, submitWorking: submitWorking = !1, borderStyle: borderStyle = "gradient", borderColor: borderColor, borderColorOn: borderColorOn, borderAnimate: borderAnimate = !0, borderWidth: borderWidth = 1, borderRadius: borderRadius = 8, focused: focused = !1, placeholder: placeholder = "Ask me anything ...", placeholderWorking: placeholderWorking = "Working ...", submitClears: submitClears = !0, enterSubmits: enterSubmits = !0, attachButton: attachButton = !0, sendButton: sendButton = !0, stopEnabled: stopEnabled = !1, textSize: textSize = "m", maxLength: maxLength, toolbarGap: toolbarGap = 8, onChange: onChange, onBlur: onBlur, onFocus: onFocus, onSubmit: onSubmit, onStop: onStop, onAttachmentsChange: onAttachmentsChange} = props, {isDark: isDark} = useTheme(), [isFocused, setIsFocused] = useState(null != focused && focused), [textValue, setTextValue] = useState(value), textAreaRef = useRef(null), handleFocus = useCallback(() => {
34
42
  var _a, _b;
35
43
  setIsFocused(!0), null === (_a = null == textAreaRef ? void 0 : textAreaRef.current) || void 0 === _a || _a.focus(),
36
44
  null == onFocus || onFocus(null === (_b = textAreaRef.current) || void 0 === _b ? void 0 : _b.value, attachments);
37
- }, [ onFocus, attachments ]), handleBlur = useCallback(() => {
45
+ }, [ onFocus, attachments ]), handleBlur = useCallback(valueOverride => {
38
46
  var _a, _b;
39
47
  setIsFocused(!1), null === (_a = textAreaRef.current) || void 0 === _a || _a.blur(),
40
- null == onBlur || onBlur(null === (_b = textAreaRef.current) || void 0 === _b ? void 0 : _b.value, attachments);
41
- }, [ onBlur, attachments ]), handleAttachmentsChange = useCallback(newFiles => {
48
+ null == onBlur || onBlur(null != valueOverride ? valueOverride : null === (_b = textAreaRef.current) || void 0 === _b ? void 0 : _b.value, attachments);
49
+ }, [ onBlur, attachments ]), handleTextAreaBlur = useCallback(() => {
50
+ handleBlur();
51
+ }, [ handleBlur ]), handleAttachmentsChange = useCallback(newFiles => {
42
52
  var _a;
43
53
  null == onAttachmentsChange || onAttachmentsChange(newFiles), null == onChange || onChange(null === (_a = textAreaRef.current) || void 0 === _a ? void 0 : _a.value, newFiles);
44
54
  }, [ onAttachmentsChange, onChange ]), handleChange = useCallback(e => {
@@ -46,47 +56,46 @@ const PromptInputBase = React.forwardRef((props, ref) => {
46
56
  setTextValue(newValue), null == onChange || onChange(newValue, attachments);
47
57
  }, [ onChange, attachments ]), handleSubmit = useCallback(() => {
48
58
  var _a;
49
- if (isWorking || isStopEnabled) return;
59
+ if (stopEnabled) return;
60
+ if (working && submitWorking) return;
50
61
  const currentValue = null === (_a = textAreaRef.current) || void 0 === _a ? void 0 : _a.value;
51
- currentValue && (null == onSubmit || onSubmit(currentValue, attachments), setIsWorking(!0),
52
- submitClears && setTextValue(""), submitEnablesStop && setIsStopEnabled(!0), handleBlur());
53
- }, [ submitClears, onSubmit, handleBlur, submitEnablesStop, isWorking, isStopEnabled, attachments ]), handleStop = useCallback(() => {
54
- setIsWorking(!1), setIsStopEnabled(!1), null == onStop || onStop(), handleFocus();
62
+ currentValue && (null == onSubmit || onSubmit(currentValue, attachments), submitClears && (setTextValue(""),
63
+ null == onChange || onChange("", attachments), textAreaRef.current && (textAreaRef.current.value = "")),
64
+ handleBlur(submitClears ? "" : currentValue));
65
+ }, [ stopEnabled, submitClears, onChange, onSubmit, handleBlur, attachments, working, submitWorking ]), handleStop = useCallback(() => {
66
+ null == onStop || onStop(), handleFocus();
55
67
  }, [ onStop, handleFocus ]), handleKeyDown = useCallback(e => {
56
- if ("Enter" === e.key && enterSubmits) {
57
- if (e.preventDefault(), isWorking) return;
58
- handleSubmit();
59
- }
60
- }, [ handleSubmit, isWorking, enterSubmits ]), handleClickSend = useCallback(e => {
61
- e.preventDefault(), e.stopPropagation(), isWorking && !isStopEnabled || (isStopEnabled ? handleStop() : handleSubmit());
62
- }, [ handleSubmit, handleStop, isStopEnabled, isWorking ]), handleClickAttach = useCallback(e => {
68
+ "Enter" === e.key && enterSubmits && (e.preventDefault(), handleSubmit());
69
+ }, [ handleSubmit, enterSubmits ]), handleClickSend = useCallback(e => {
70
+ e.preventDefault(), e.stopPropagation(), stopEnabled ? handleStop() : handleSubmit();
71
+ }, [ handleSubmit, handleStop, stopEnabled ]), handleClickAttach = useCallback(e => {
63
72
  e.preventDefault(), e.stopPropagation();
64
73
  }, []), handleClickButtonBar = useCallback(e => {
65
- e.preventDefault(), isWorking || handleFocus();
66
- }, [ handleFocus, isWorking ]), setBorderColor = useMemo(() => {
74
+ e.preventDefault(), handleFocus();
75
+ }, [ handleFocus ]), setBorderColor = useMemo(() => {
67
76
  if ("gradient" === borderStyle) {
68
77
  const radial = isDark ? "var(--conic-gradient-dark)" : "var(--conic-gradient-light)";
69
- return isWorking && borderAnimate ? radial : isFocused ? null != borderColorOn ? borderColorOn : radial : null != borderColor ? borderColor : radial;
78
+ return working && borderAnimate ? radial : isFocused ? null != borderColorOn ? borderColorOn : radial : null != borderColor ? borderColor : radial;
70
79
  }
71
- return "solid" === borderStyle ? isWorking || isFocused ? null != borderColorOn ? borderColorOn : "var(--core-outline-special)" : null != borderColor ? borderColor : "transparent" : "transparent";
72
- }, [ borderStyle, isFocused, borderColorOn, borderColor, isWorking, borderAnimate, isDark ]), setPlaceholder = useMemo(() => isWorking && placeholderWorking ? placeholderWorking : placeholder, [ isWorking, placeholder, placeholderWorking ]), setSendIconColor = useMemo(() => isStopEnabled || isWorking ? "var(--core-text-primary)" : "" !== textValue ? "var(--core-text-light)" : "var(--core-text-disabled)", [ textValue, isWorking, isStopEnabled ]), sendButtonState = useMemo(() => isStopEnabled || "" !== textValue || isWorking ? "normal" : "disabled", [ textValue, isStopEnabled, isWorking ]), attachState = useMemo(() => isWorking ? "disabled" : "normal", [ isWorking ]);
80
+ return "solid" === borderStyle ? working || isFocused ? null != borderColorOn ? borderColorOn : "var(--core-outline-special)" : null != borderColor ? borderColor : "transparent" : "transparent";
81
+ }, [ borderStyle, isFocused, borderColorOn, borderColor, working, borderAnimate, isDark ]), setPlaceholder = useMemo(() => working && placeholderWorking ? placeholderWorking : placeholder, [ working, placeholder, placeholderWorking ]), setSendIconColor = useMemo(() => stopEnabled ? "var(--core-text-primary)" : "" !== textValue ? "var(--core-text-light)" : "var(--core-text-disabled)", [ textValue, stopEnabled ]), sendButtonState = useMemo(() => working && submitWorking || stopEnabled ? "normal" : "" === textValue ? "disabled" : "normal", [ textValue, stopEnabled, working, submitWorking ]), attachState = useMemo(() => attachmentsDisabled ? "disabled" : "normal", [ attachmentsDisabled ]);
73
82
  useEffect(() => {
74
83
  var _a, _b;
75
84
  focused ? null === (_a = textAreaRef.current) || void 0 === _a || _a.focus() : null === (_b = textAreaRef.current) || void 0 === _b || _b.blur();
76
85
  }, [ focused ]), useEffect(() => {
77
- var _a;
78
- (null === (_a = textAreaRef.current) || void 0 === _a ? void 0 : _a.value) !== value && setTextValue(value);
79
- }, [ value ]), useEffect(() => {
80
- void 0 !== working && setIsWorking(working);
81
- }, [ working ]), useEffect(() => setIsStopEnabled(stopEnabled), [ stopEnabled ]);
86
+ setTextValue(value);
87
+ }, [ value ]);
82
88
  const cssVars = useMemo(() => ({
89
+ "--prompt-width": setStyle(width),
90
+ "--prompt-min-width": setStyle(minWidth, "unset"),
91
+ "--prompt-max-width": setStyle(maxWidth, "unset"),
83
92
  "--prompt-border-color": setBorderColor,
84
93
  "--prompt-max-height": maxHeight ? `${maxHeight}px` : "unset",
85
94
  "--prompt-border-width": borderWidth ? `${borderWidth}px` : "0",
86
- "--prompt-state": isWorking && borderAnimate ? "running" : "paused",
95
+ "--prompt-state": working && borderAnimate ? "running" : "paused",
87
96
  "--prompt-border-radius": borderRadius ? `${borderRadius}px` : "8px",
88
97
  "--prompt-inner-border-radius": borderRadius ? borderRadius - 1 + "px" : "7px"
89
- }), [ isWorking, borderAnimate, setBorderColor, borderWidth, borderRadius, maxHeight ]);
98
+ }), [ working, borderAnimate, setBorderColor, borderWidth, borderRadius, maxHeight, width, maxWidth, minWidth ]);
90
99
  return jsx("div", {
91
100
  className: css.wrapperBg,
92
101
  ref: ref,
@@ -113,7 +122,7 @@ const PromptInputBase = React.forwardRef((props, ref) => {
113
122
  onChange: handleChange,
114
123
  placeholder: setPlaceholder,
115
124
  onFocus: handleFocus,
116
- onBlur: handleBlur,
125
+ onBlur: handleTextAreaBlur,
117
126
  onKeyDown: handleKeyDown,
118
127
  maxLength: maxLength,
119
128
  rows: 1
@@ -137,13 +146,13 @@ const PromptInputBase = React.forwardRef((props, ref) => {
137
146
  }), sendButton && jsx(Button, {
138
147
  round: !0,
139
148
  label: void 0,
140
- variant: isStopEnabled ? "outline" : "solid",
141
- iconLeft: isStopEnabled ? "stop" : "arrow up",
142
- iconSize: isStopEnabled ? 16 : 20,
149
+ variant: stopEnabled ? "outline" : "solid",
150
+ iconLeft: stopEnabled ? "stop" : "arrow up",
151
+ iconSize: stopEnabled ? 16 : 20,
143
152
  state: sendButtonState,
144
153
  bgColorDisabled: "var(--core-outline-primary)",
145
- progress: !isStopEnabled,
146
- working: !isStopEnabled && isWorking,
154
+ progress: !stopEnabled,
155
+ working: submitWorking && working,
147
156
  onMouseDown: handleClickSend,
148
157
  iconColor: setSendIconColor
149
158
  }) ]
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useState, useEffect, useCallback, useMemo } from "react";
7
7
 
8
- import { s as setStyle } from "./misc-2MIIqzsX.mjs";
8
+ import { s as setStyle } from "./misc-BQH7I5Zj.mjs";
9
9
 
10
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
10
+ import { I as Icon } from "./Icon-CbDAKN_S.mjs";
11
11
 
12
12
  var css_wrapper = "RadioButton-module_wrapper__-pWRe flexBox-module_row__z24tF", css_radioIcon = "RadioButton-module_radioIcon__I27Xv flexBox-module_column__ezvMq", css_radioTitle = "RadioButton-module_radioTitle__zCQII flexBox-module_rowStart__4tcxS type-module_body-m-regular__LuQBA", css_radioContent = "RadioButton-module_radioContent__38xVx flexBox-module_columnStart__C7P44";
13
13
 
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useId, useState, useEffect, useCallback, useMemo } from "react";
7
7
 
8
- import { s as setStyle } from "./misc-2MIIqzsX.mjs";
8
+ import { s as setStyle } from "./misc-BQH7I5Zj.mjs";
9
9
 
10
- import { R as RadioButton } from "./RadioButton-DWlg6ldv.mjs";
10
+ import { R as RadioButton } from "./RadioButton-DUzPaLKa.mjs";
11
11
 
12
12
  var css_wrapper = "RadioButtonList-module_wrapper__wnq1-", css_column = "RadioButtonList-module_column__Bq16e flexBox-module_columnStart__C7P44", css_row = "RadioButtonList-module_row__D3szq flexBox-module_rowStart__4tcxS";
13
13
 
@@ -1,15 +1,25 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useRef, useState, useMemo, useCallback, useEffect } from "react";
7
7
 
8
- import { useObserveResize } from "../hooks/useObserveResize.mjs";
8
+ import "../theme/colors.mjs";
9
+
10
+ import { p as pointerPosition } from "./misc-BQH7I5Zj.mjs";
11
+
12
+ import { d as debounce } from "./debounce-DpPYyz3x.mjs";
13
+
14
+ import "./webRTCStore-Ck8TCzr_.mjs";
9
15
 
10
- import { d as debounce } from "./debounce-CYBH5qXQ.mjs";
16
+ import "./microphoneStore-uYs2NQQx.mjs";
11
17
 
12
- import { p as pointerPosition } from "./misc-2MIIqzsX.mjs";
18
+ import "./volumeStore-C0iU07fK.mjs";
19
+
20
+ import "../hooks/useWindow.mjs";
21
+
22
+ import { useObserveResize } from "../hooks/useObserveResize.mjs";
13
23
 
14
24
  var css_wrapper = "Slider-module_wrapper__KCCs1", css_trackBg = "Slider-module_trackBg__7zfqm flexBox-module_rowStart__4tcxS", css_track = "Slider-module_track__kaJkL flexBox-module_rowStart__4tcxS", css_trackHead = "Slider-module_trackHead__W-UdG", css_trackWrapper = "Slider-module_trackWrapper__Ot0Wh flexBox-module_rowStart__4tcxS";
15
25
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -9,17 +9,36 @@ import { useTheme } from "../hooks/useTheme.mjs";
9
9
 
10
10
  import "../theme/colors.mjs";
11
11
 
12
+ import { s as setStyle } from "./misc-BQH7I5Zj.mjs";
13
+
14
+ import "./webRTCStore-Ck8TCzr_.mjs";
15
+
16
+ import "./microphoneStore-uYs2NQQx.mjs";
17
+
18
+ import "./volumeStore-C0iU07fK.mjs";
19
+
12
20
  import "../hooks/useWindow.mjs";
13
21
 
14
- import { B as Badge } from "./Badge-DuUb5-80.mjs";
22
+ import { B as Badge } from "./Badge-DHvo2-ZQ.mjs";
15
23
 
16
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
24
+ import { I as Icon } from "./Icon-CbDAKN_S.mjs";
17
25
 
18
- import { I as IconButton } from "./IconButton-B_W-aOsB.mjs";
26
+ import { I as IconButton } from "./IconButton-nOcdRqR3.mjs";
19
27
 
20
- import { T as ToolTipType } from "./sharedTypes-CyrInj1b.mjs";
28
+ import { T as ToolTipType } from "./sharedTypes-DoNQkNSM.mjs";
21
29
 
22
- var css_wrapper = "TabBar-module_wrapper__cyOR1 flexBox-module_rowStart__4tcxS", css_option = "TabBar-module_option__gYjDf flexBox-module_row__z24tF type-module_body-m-regular__LuQBA", css_icon = "TabBar-module_icon__JDgG3 flexBox-module_row__z24tF", css_close = "TabBar-module_close__bvSBh flexBox-module_row__z24tF";
30
+ var css = {
31
+ wrapper: "TabBar-module_wrapper__cyOR1 flexBox-module_rowStart__4tcxS",
32
+ option: "TabBar-module_option__gYjDf flexBox-module_row__z24tF",
33
+ icon: "TabBar-module_icon__JDgG3 flexBox-module_row__z24tF",
34
+ close: "TabBar-module_close__bvSBh flexBox-module_row__z24tF",
35
+ xs: "TabBar-module_xs__QDjV9 type-module_body-xs-regular__ZAFft",
36
+ s: "TabBar-module_s__-EBj2 type-module_body-s-regular__vRHSP",
37
+ m: "TabBar-module_m__3sCA3 type-module_body-m-regular__LuQBA",
38
+ l: "TabBar-module_l__hy1rR type-module_body-l-regular__lOYbg",
39
+ xl: "TabBar-module_xl__zaASU type-module_body-xl-regular__pF2kC",
40
+ selected: "TabBar-module_selected__UmBdu"
41
+ };
23
42
 
24
43
  const placeholderOptions = [ {
25
44
  name: "Light",
@@ -30,7 +49,7 @@ const placeholderOptions = [ {
30
49
  value: "Option 2",
31
50
  icon: "moon full"
32
51
  } ], TabBar = React.memo(props => {
33
- const {options: options = placeholderOptions, selected: selected = 0, border: border = !0, underline: underline = !0, height: height = "100%", width: width = "100%", tabWidth: tabWidth = "fill", padding: padding = 8, iconFill: iconFill = !1, iconSize: iconSize = 20, iconGap: iconGap = 8, tabGap: tabGap = 0, disabled: disabled = !1, hasClose: hasClose = !1, closeWidth: closeWidth = "auto", selectedValue: selectedValue = null, onChange: onChange = () => null, onTabChange: onTabChange = () => null, onClose: onClose = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = __rest(props, [ "options", "selected", "border", "underline", "height", "width", "tabWidth", "padding", "iconFill", "iconSize", "iconGap", "tabGap", "disabled", "hasClose", "closeWidth", "selectedValue", "onChange", "onTabChange", "onClose", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [index, setIndex] = useState(selected), optionRefs = useRef([]);
52
+ const {options: options = placeholderOptions, selected: selected = 0, border: border = !0, underline: underline = !0, height: height = "100%", width: width = "100%", tabWidth: tabWidth = "fill", padding: padding = 8, iconFill: iconFill = !1, iconSize: iconSize = 20, iconGap: iconGap = 8, tabGap: tabGap = 0, disabled: disabled = !1, hasClose: hasClose = !1, closeWidth: closeWidth = "auto", selectedValue: selectedValue = null, justify: justify = "start", borderColor: borderColor = "var(--core-outline-secondary)", textSize: textSize = "m", onChange: onChange = () => null, onTabChange: onTabChange = () => null, onClose: onClose = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = __rest(props, [ "options", "selected", "border", "underline", "height", "width", "tabWidth", "padding", "iconFill", "iconSize", "iconGap", "tabGap", "disabled", "hasClose", "closeWidth", "selectedValue", "justify", "borderColor", "textSize", "onChange", "onTabChange", "onClose", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [index, setIndex] = useState(selected), optionRefs = useRef([]);
34
53
  useEffect(() => {
35
54
  let selectedIndex = 0;
36
55
  selectedValue && options ? (selectedIndex = options.findIndex(option => option.value === selectedValue),
@@ -82,26 +101,30 @@ const placeholderOptions = [ {
82
101
  underline: underline,
83
102
  iconFill: iconFill,
84
103
  tabWidth: tabWidth,
104
+ textSize: textSize,
105
+ borderColor: borderColor,
85
106
  buttonRef: element => {
86
107
  optionRefs.current[i] = element;
87
108
  }
88
- }, `${i}_option_${option.name}`)), [ options, index, padding, iconSize, iconGap, disabled, underline, tabWidth, onToolTip, handleOptionClick, iconFill, handleOptionKeyDown ]), setStyle = useCallback(value => "string" == typeof value ? value : `${value}px`, []), cssVars = useMemo(() => ({
109
+ }, `${i}_option_${option.name}`)), [ options, index, padding, iconSize, iconGap, disabled, underline, tabWidth, onToolTip, handleOptionClick, iconFill, handleOptionKeyDown, textSize ]), cssVars = useMemo(() => ({
89
110
  "--tab-bar-gap": `${tabGap}px`,
90
111
  "--tab-bar-height": `${setStyle(height)}px`,
91
112
  "--tab-bar-width": setStyle(width),
92
113
  "--tab-bar-border-bottom": "" + (border ? "1px" : "0"),
114
+ "--tab-bar-border-color": borderColor,
115
+ "--tab-bar-justify": justify,
93
116
  "--tab-bar-close-width": `${closeWidth}px`,
94
- "--tab-bar-close-padding": padding ? `${padding}px` : "8px"
95
- }), [ tabGap, height, width, border, setStyle, closeWidth, padding ]);
117
+ "--tab-bar-close-padding": setStyle(padding, "8px")
118
+ }), [ tabGap, height, width, border, closeWidth, padding, borderColor, justify ]);
96
119
  return jsxs("div", Object.assign({
97
120
  id: divId,
98
- className: `${css_wrapper}${divClass}`,
121
+ className: `${css.wrapper}${divClass}`,
99
122
  style: Object.assign(Object.assign({}, divStyle), cssVars),
100
123
  role: "tablist",
101
124
  "aria-orientation": "horizontal"
102
125
  }, rest, {
103
126
  children: [ renderedOptions, hasClose && jsx("div", {
104
- className: css_close,
127
+ className: css.close,
105
128
  children: jsx(IconButton, {
106
129
  iconSize: iconSize - 4,
107
130
  frameSize: iconSize,
@@ -118,7 +141,7 @@ const placeholderOptions = [ {
118
141
  TabBar.displayName = "TabBar";
119
142
 
120
143
  const Option = React.memo(props => {
121
- const theme = useTheme(), {label: label = "Option", value: value = 0, icon: icon = null, selected: selected = !1, onClick: onClick = () => null, onToolTip: onToolTip = () => null, padding: padding = 8, iconSize: iconSize = 20, iconGap: iconGap = 6, disabled: disabled = !1, showToolTip: showToolTip = null, underline: underline = !0, tabWidth: tabWidth = "fill", count: count = 0, iconFill: iconFill = !1, onKeyDown: onKeyDown = () => null, buttonRef: buttonRef} = props, ref = useRef(null), strokeColor = useMemo(() => !disabled && selected ? theme.current.colors["core-text-special"] : disabled ? theme.current.colors["core-text-disabled"] : theme.current.colors["core-text-primary"], [ disabled, selected, theme ]), handleMouseOver = useCallback(e => {
144
+ const theme = useTheme(), {label: label = "Option", value: value = 0, icon: icon = null, selected: selected = !1, onClick: onClick = () => null, onToolTip: onToolTip = () => null, padding: padding = 8, iconSize: iconSize = 20, iconGap: iconGap = 6, disabled: disabled = !1, showToolTip: showToolTip = null, underline: underline = !0, tabWidth: tabWidth = "fill", borderColor: borderColor = "var(--core-outline-secondary)", count: count = 0, iconFill: iconFill = !1, textSize: textSize = "m", onKeyDown: onKeyDown = () => null, buttonRef: buttonRef} = props, ref = useRef(null), strokeColor = useMemo(() => !disabled && selected ? theme.current.colors["core-text-special"] : disabled ? theme.current.colors["core-text-disabled"] : theme.current.colors["core-text-primary"], [ disabled, selected, theme ]), handleMouseOver = useCallback(e => {
122
145
  if (onToolTip(null), showToolTip && ref.current) {
123
146
  const tip = {
124
147
  type: ToolTipType.button,
@@ -134,17 +157,18 @@ const Option = React.memo(props => {
134
157
  showToolTip && onToolTip(null);
135
158
  }, [ showToolTip, onToolTip ]), textColor = useMemo(() => disabled ? "var(--core-text-disabled)" : selected ? "var(--core-text-special)" : "var(--core-text-primary)", [ disabled, selected ]), setTabWidth = useMemo(() => "compact" === tabWidth ? "min-content" : "fill" === tabWidth ? "unset" : `${tabWidth}px`, [ tabWidth ]), setTabFlex = useMemo(() => "fill" === tabWidth ? "1" : "unset", [ tabWidth ]), setUnderline = useMemo(() => selected && underline && !disabled ? "1px" : "0", [ underline, disabled, selected ]), cssVars = useMemo(() => ({
136
159
  "--tab-bar-option-border": setUnderline,
137
- "--tab-bar-option-padding": `${padding}px`,
160
+ "--tab-bar-option-border-color": borderColor,
161
+ "--tab-bar-option-padding": setStyle(padding, "8px"),
138
162
  "--tab-bar-option-icon-size": `${iconSize}px`,
139
163
  "--tab-bar-option-cursor": disabled ? "default" : "pointer",
140
164
  "--tab-bar-option-gap": `${null != iconGap ? iconGap : 0}px`,
141
165
  "--tab-bar-option-color": textColor,
142
166
  "--tab-bar-option-width": setTabWidth,
143
167
  "--tab-bar-option-flex": setTabFlex
144
- }), [ padding, iconSize, disabled, textColor, iconGap, setTabFlex, setTabWidth, setUnderline ]);
168
+ }), [ padding, iconSize, disabled, textColor, iconGap, setTabFlex, setTabWidth, setUnderline, borderColor ]);
145
169
  return jsxs("button", {
146
170
  type: "button",
147
- className: css_option,
171
+ className: `${css.option} ${css[textSize]} ${selected ? css.selected : ""}`,
148
172
  style: cssVars,
149
173
  ref: element => {
150
174
  ref.current = element, null == buttonRef || buttonRef(element);
@@ -157,7 +181,7 @@ const Option = React.memo(props => {
157
181
  onClick: () => onClick(value),
158
182
  onKeyDown: e => onKeyDown(e, value),
159
183
  children: [ icon && jsx("div", {
160
- className: css_icon,
184
+ className: css.icon,
161
185
  children: jsx(Icon, {
162
186
  name: icon,
163
187
  fill: iconFill,
@@ -170,7 +194,7 @@ const Option = React.memo(props => {
170
194
  count: count
171
195
  }) ]
172
196
  });
173
- }, (prevProps, nextProps) => prevProps.selected === nextProps.selected && prevProps.underline === nextProps.underline && prevProps.tabWidth === nextProps.tabWidth && prevProps.disabled === nextProps.disabled && prevProps.iconGap === nextProps.iconGap && prevProps.iconSize === nextProps.iconSize && prevProps.count === nextProps.count && prevProps.label === nextProps.label && prevProps.icon === nextProps.icon);
197
+ }, (prevProps, nextProps) => prevProps.selected === nextProps.selected && prevProps.underline === nextProps.underline && prevProps.tabWidth === nextProps.tabWidth && prevProps.disabled === nextProps.disabled && prevProps.iconGap === nextProps.iconGap && prevProps.iconSize === nextProps.iconSize && prevProps.count === nextProps.count && prevProps.label === nextProps.label && prevProps.icon === nextProps.icon && prevProps.borderColor === nextProps.borderColor && prevProps.textSize === nextProps.textSize && prevProps.padding === nextProps.padding);
174
198
 
175
199
  Option.displayName = "TabOption";
176
200
 
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useState, useRef, useCallback, useEffect, useMemo } from "react";
7
7
 
8
- import { B as Button } from "./Button-BIgwWrPJ.mjs";
8
+ import { B as Button } from "./Button-v92U2QVV.mjs";
9
9
 
10
10
  var css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_xs = "TextArea-module_xs__5e748 type-module_body-xs-regular__ZAFft", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
11
11
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
@@ -11,15 +11,21 @@ import { useTheme } from "../hooks/useTheme.mjs";
11
11
 
12
12
  import "../theme/colors.mjs";
13
13
 
14
- import { s as setStyle } from "./misc-2MIIqzsX.mjs";
14
+ import { s as setStyle } from "./misc-BQH7I5Zj.mjs";
15
+
16
+ import "./webRTCStore-Ck8TCzr_.mjs";
17
+
18
+ import "./microphoneStore-uYs2NQQx.mjs";
19
+
20
+ import "./volumeStore-C0iU07fK.mjs";
15
21
 
16
22
  import "../hooks/useWindow.mjs";
17
23
 
18
- import { B as Button } from "./Button-BIgwWrPJ.mjs";
24
+ import { B as Button } from "./Button-v92U2QVV.mjs";
19
25
 
20
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
26
+ import { I as Icon } from "./Icon-CbDAKN_S.mjs";
21
27
 
22
- import { I as IconButton } from "./IconButton-B_W-aOsB.mjs";
28
+ import { I as IconButton } from "./IconButton-nOcdRqR3.mjs";
23
29
 
24
30
  var css = {
25
31
  wrapper: "TextField-module_wrapper__qZ-p- flexBox-module_rowStart__4tcxS",
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -7,7 +7,7 @@ import { motion } from "motion/react";
7
7
 
8
8
  import React, { useState, useRef, useEffect, useMemo } from "react";
9
9
 
10
- import { f as filterClasses } from "./misc-2MIIqzsX.mjs";
10
+ import { f as filterClasses } from "./misc-BQH7I5Zj.mjs";
11
11
 
12
12
  var css = {
13
13
  wrapper: "Tip-module_wrapper__D7ACT flexBox-module_rowStart__4tcxS",
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -11,13 +11,19 @@ import { useTheme } from "../hooks/useTheme.mjs";
11
11
 
12
12
  import "../theme/colors.mjs";
13
13
 
14
- import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
14
+ import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-BQH7I5Zj.mjs";
15
+
16
+ import "./webRTCStore-Ck8TCzr_.mjs";
17
+
18
+ import "./microphoneStore-uYs2NQQx.mjs";
19
+
20
+ import "./volumeStore-C0iU07fK.mjs";
15
21
 
16
22
  import "../hooks/useWindow.mjs";
17
23
 
18
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
24
+ import { I as Icon } from "./Icon-CbDAKN_S.mjs";
19
25
 
20
- import { P as ProgressIndicator } from "./ProgressIndicator-BV0ginXb.mjs";
26
+ import { P as ProgressIndicator } from "./ProgressIndicator-BWrcdWvF.mjs";
21
27
 
22
28
  var ToastType, css = {
23
29
  wrapper: "Toast-module_wrapper__1uj9O flexBox-module_rowBetween__5FEvi",
@@ -2,14 +2,14 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
 
3
3
  import { useMemo } from "react";
4
4
 
5
- import { I as IconButton } from "./IconButton-B_W-aOsB.mjs";
5
+ import { I as IconButton } from "./IconButton-nOcdRqR3.mjs";
6
6
 
7
- import { L as Label } from "./Label-I75yz3gq.mjs";
7
+ import { L as Label } from "./Label-BlvreqNJ.mjs";
8
8
 
9
9
  var css_toggleButton = "ToggleButton-module_toggleButton__H7KgI flexBox-module_rowStart__4tcxS";
10
10
 
11
11
  function ToggleButton(props) {
12
- const {label: label, textSize: textSize, icon: icon, selected: selected = !1, iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-surface-primary)", bgColor: bgColor = "var(--core-surface-secondary)", bgColorOn: bgColorOn = "var(--core-text-special)", iconSize: iconSize = 20, buttonSize: buttonSize = "m", tooltip: tooltip, gap: gap = 4, unselect: unselect = !0, fill: fill = !1, disabled: disabled = !1, onChange: onChange, onSelect: onSelect, onToolTip: onToolTip, children: children} = props, handleClick = () => {
12
+ const {label: label, textSize: textSize, icon: icon, selected: selected = !1, iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-surface-primary)", bgColor: bgColor = "var(--core-surface-secondary)", bgColorOn: bgColorOn = "var(--core-text-special)", iconSize: iconSize = 20, buttonSize: buttonSize = "m", tooltip: tooltip, gap: gap = 4, unselect: unselect = !0, fill: fill = !1, disabled: disabled = !1, border: border = !1, onChange: onChange, onSelect: onSelect, onToolTip: onToolTip, children: children} = props, handleClick = () => {
13
13
  if (!unselect && selected) return;
14
14
  const newState = !selected;
15
15
  null == onChange || onChange(newState), newState && (null == onSelect || onSelect());
@@ -33,7 +33,8 @@ function ToggleButton(props) {
33
33
  iconSize: iconSize,
34
34
  iconFill: fill,
35
35
  disabled: disabled,
36
- onToolTip: onToolTip
36
+ onToolTip: onToolTip,
37
+ border: border
37
38
  }), (children || label) && jsx(Label, {
38
39
  textSize: textSize,
39
40
  borderSize: 0,
@@ -3,13 +3,13 @@ import { jsxs, jsx } from "react/jsx-runtime";
3
3
 
4
4
  import React, { useState, useRef, useId, useCallback, useMemo } from "react";
5
5
 
6
- import { s as setStyle, a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
6
+ import { s as setStyle, a as accessibleKeyDown } from "./misc-BQH7I5Zj.mjs";
7
7
 
8
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
8
+ import { F as FileList } from "./FileList-CnuT4Llg.mjs";
9
9
 
10
- import { P as ProgressIndicator } from "./ProgressIndicator-BV0ginXb.mjs";
10
+ import { I as Icon } from "./Icon-CbDAKN_S.mjs";
11
11
 
12
- import { F as FileList } from "./FileList-vMiGJByw.mjs";
12
+ import { P as ProgressIndicator } from "./ProgressIndicator-BWrcdWvF.mjs";
13
13
 
14
14
  var css = {
15
15
  wrapper: "UploadArea-module_wrapper__aircC flexBox-module_column__ezvMq",
@@ -1,4 +1,4 @@
1
- import { a as __awaiter } from "./tslib.es6-C81Qhn1z.mjs";
1
+ import { a as __awaiter } from "./tslib.es6-75ZdAmtm.mjs";
2
2
 
3
3
  /**
4
4
  * Manage a WebSocket connection with optional unified events, retries, and keep-alive pings.
@@ -1,4 +1,4 @@
1
- import { a as __awaiter } from "./tslib.es6-C81Qhn1z.mjs";
1
+ import { a as __awaiter } from "./tslib.es6-75ZdAmtm.mjs";
2
2
 
3
3
  class WebRTCConnection {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a as __awaiter, _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
1
+ import { a as __awaiter, _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
2
2
 
3
3
  import { useMemo } from "react";
4
4
 
@@ -6,7 +6,7 @@ import { create } from "zustand";
6
6
 
7
7
  import { useShallow } from "zustand/react/shallow";
8
8
 
9
- import { I as IndexedDB } from "./IndexedDB-CTqfKmp1.mjs";
9
+ import { I as IndexedDB } from "./IndexedDB-Bqjric8V.mjs";
10
10
 
11
11
  function isValidIDBKey(key) {
12
12
  return "string" == typeof key || "number" == typeof key || key instanceof Date || key instanceof ArrayBuffer || (Array.isArray(key) ? key.every(entry => isValidIDBKey(entry)) : ArrayBuffer.isView(key));
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __awaiter } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { a as __awaiter } from "./tslib.es6-75ZdAmtm.mjs";
3
3
 
4
4
  import { useEffect } from "react";
5
5
 
@@ -1,4 +1,4 @@
1
- import { a as __awaiter } from "./tslib.es6-C81Qhn1z.mjs";
1
+ import { a as __awaiter } from "./tslib.es6-75ZdAmtm.mjs";
2
2
 
3
3
  /**
4
4
  * Remove scripts, invisible characters, and optional HTML tags from a string.
@@ -1,8 +1,8 @@
1
1
  import { create } from "zustand";
2
2
 
3
- import "./tslib.es6-C81Qhn1z.mjs";
3
+ import "./tslib.es6-75ZdAmtm.mjs";
4
4
 
5
- import { S as SSEConnection } from "./SSEConnection-iFKOV9Uo.mjs";
5
+ import { S as SSEConnection } from "./SSEConnection-DNA5yBWy.mjs";
6
6
 
7
7
  const useSSEStore = create((set, get) => ({
8
8
  connections: [],
@@ -1,4 +1,4 @@
1
- import { a as __awaiter } from "./tslib.es6-C81Qhn1z.mjs";
1
+ import { a as __awaiter } from "./tslib.es6-75ZdAmtm.mjs";
2
2
 
3
3
  var FileUploadStatus, UploadError, WorkerStatus;
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { create } from "zustand";
2
2
 
3
- import { W as WorkerStatus } from "./uploads-worker-CMomtRvm.mjs";
3
+ import { W as WorkerStatus } from "./uploads-worker-CFPGExfT.mjs";
4
4
 
5
5
  let uploadsWorker = null;
6
6