@apple-pie/slice 0.1.29 → 0.1.31

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 (312) hide show
  1. package/README.md +174 -4
  2. package/dist/cjs/chunks/{AudioBubble-DisHuKIC.js → AudioBubble-k7qS53g6.js} +3 -5
  3. package/dist/cjs/chunks/Avatar-hP8GuwvD.js +82 -0
  4. package/dist/cjs/chunks/{AvatarGroup-DYN73N5x.js → AvatarGroup-DMy34q7_.js} +1 -3
  5. package/dist/cjs/chunks/Badge-D2TbyfJS.js +22 -0
  6. package/dist/cjs/chunks/{Button-B1qbfQgN.js → Button-CTsHZBEB.js} +1 -3
  7. package/dist/cjs/chunks/{ButtonBar-zpC3sClM.js → ButtonBar-BRb1PTmw.js} +1 -3
  8. package/dist/cjs/chunks/{Camera-CCzynmXT.js → Camera-CKv087kr.js} +3 -5
  9. package/dist/cjs/chunks/CheckBox-VRIL1FHh.js +51 -0
  10. package/dist/cjs/chunks/Chip-Dr3vKvRY.js +77 -0
  11. package/dist/cjs/chunks/{DivInput-932r3bvF.js → DivInput-Ci0gaCWL.js} +1 -3
  12. package/dist/cjs/chunks/{Dot-fKIwhjYA.js → Dot-C0MvSJOl.js} +1 -3
  13. package/dist/cjs/chunks/{DrggablePanel-u8C-Y4dA.js → DrggablePanel-DflouLUs.js} +3 -5
  14. package/dist/cjs/chunks/DropDown-BS1H62yj.js +104 -0
  15. package/dist/cjs/chunks/ErrorSummary-B3tof7ir.js +85 -0
  16. package/dist/cjs/chunks/{FileIcon-Dxn9OL10.js → FileIcon-Te8MaqTs.js} +2 -2
  17. package/dist/cjs/chunks/FileList-CDcfKIV6.js +222 -0
  18. package/dist/cjs/chunks/{FlexDiv-D4aSJC_G.js → FlexDiv-wO8IY0Zf.js} +2 -3
  19. package/dist/cjs/chunks/Grouper-DyGkzdvz.js +61 -0
  20. package/dist/cjs/chunks/{Icon-BFiN8Wzm.js → Icon-BFZ_5Qv3.js} +4 -7
  21. package/dist/cjs/chunks/IconButton-CgsuJIuF.js +82 -0
  22. package/dist/cjs/chunks/{IndexedDB-BaVmQgkK.js → IndexedDB-Dgwal8na.js} +1 -1
  23. package/dist/cjs/chunks/Label-BuyhcJbF.js +102 -0
  24. package/dist/cjs/chunks/Modal-ByRyv3wy.js +101 -0
  25. package/dist/cjs/chunks/ModalController-xjflFsjF.js +68 -0
  26. package/dist/cjs/chunks/Overlay-FooE9M_s.js +41 -0
  27. package/dist/cjs/chunks/Pager-B-cuwffo.js +36 -0
  28. package/dist/cjs/chunks/ProgressIndicator-ByZ_aYAZ.js +138 -0
  29. package/dist/cjs/chunks/{PromptInput-C8-V67sS.js → PromptInput--grtHPvy.js} +2 -4
  30. package/dist/cjs/chunks/RadioButton-DP2X1dA_.js +55 -0
  31. package/dist/cjs/chunks/{RadioButtonList-DvJV6Qdg.js → RadioButtonList-COGNW5y3.js} +1 -2
  32. package/dist/cjs/chunks/{Slider-D8OYGFsN.js → Slider-G1a8UKef.js} +2 -6
  33. package/dist/cjs/chunks/{Spacer-CyZAUR5N.js → Spacer-CsRCleXv.js} +1 -1
  34. package/dist/cjs/chunks/{Switch-Crm-nHYI.js → Switch-OBVHKn_D.js} +1 -2
  35. package/dist/cjs/chunks/{TabBar-VzxuAesC.js → TabBar-C1HkBaxE.js} +2 -4
  36. package/dist/cjs/chunks/TextArea-BEmNI_HZ.js +74 -0
  37. package/dist/cjs/chunks/{TextField-BpoLF6pZ.js → TextField-D9_COA9H.js} +3 -5
  38. package/dist/cjs/chunks/Tip-2W0u_oQN.js +88 -0
  39. package/dist/cjs/chunks/Toast-B9jX6ioq.js +177 -0
  40. package/dist/cjs/chunks/ToggleButton-C_Gu5dYR.js +39 -0
  41. package/dist/cjs/chunks/UploadArea-ENFAf4tE.js +127 -0
  42. package/dist/cjs/chunks/{WSConnection-DrOC8Z0R.js → WSConnection-CZ22tcLz.js} +1 -1
  43. package/dist/cjs/chunks/{localDBStore-zyDhaEiP.js → localDBStore-Ca73jeFf.js} +1 -1
  44. package/dist/cjs/chunks/{microphoneStore-D1fV_8QQ.js → microphoneStore-lxYIvhN8.js} +1 -1
  45. package/dist/cjs/chunks/{misc-CTl4GDxI.js → misc-DZAbObFp.js} +16 -19
  46. package/dist/cjs/chunks/modalStore-D4bOjuWd.js +70 -0
  47. package/dist/cjs/chunks/{sseStore-1OeJ9TRP.js → sseStore-Bq7sVvyA.js} +2 -2
  48. package/dist/cjs/chunks/{uploads-worker-mD8pcsGP.js → uploads-worker-CD-annza.js} +2 -2
  49. package/dist/cjs/chunks/{uploadsStore-CxWIctvI.js → uploadsStore-CUeB10zx.js} +2 -2
  50. package/dist/cjs/chunks/{volumeStore-oYwlRVN0.js → volumeStore-roYTyKJ2.js} +3 -3
  51. package/dist/cjs/chunks/{windowStore-CCxCOUqa.js → windowStore-BdJv-RF0.js} +1 -1
  52. package/dist/cjs/components/AudioBubble/index.js +7 -7
  53. package/dist/cjs/components/Avatar/index.js +3 -4
  54. package/dist/cjs/components/AvatarGroup/index.js +4 -4
  55. package/dist/cjs/components/Badge/index.js +3 -3
  56. package/dist/cjs/components/Button/index.js +7 -8
  57. package/dist/cjs/components/ButtonBar/index.js +7 -7
  58. package/dist/cjs/components/Camera/index.js +8 -8
  59. package/dist/cjs/components/CheckBox/index.js +7 -7
  60. package/dist/cjs/components/Chip/index.js +7 -8
  61. package/dist/cjs/components/DivInput/index.js +3 -4
  62. package/dist/cjs/components/Dot/index.js +3 -3
  63. package/dist/cjs/components/DraggablePanel/index.js +6 -6
  64. package/dist/cjs/components/DropDown/index.js +7 -7
  65. package/dist/cjs/components/ErrorSummary/index.js +6 -7
  66. package/dist/cjs/components/FileIcon/index.js +6 -7
  67. package/dist/cjs/components/FileList/index.js +7 -7
  68. package/dist/cjs/components/FlexDiv/index.js +3 -4
  69. package/dist/cjs/components/Grouper/index.js +7 -8
  70. package/dist/cjs/components/Icon/index.js +6 -7
  71. package/dist/cjs/components/IconButton/index.js +6 -7
  72. package/dist/cjs/components/Label/index.js +3 -4
  73. package/dist/cjs/components/Modal/index.js +13 -0
  74. package/dist/cjs/components/ModalController/index.js +7 -0
  75. package/dist/cjs/components/Overlay/index.js +3 -3
  76. package/dist/cjs/components/Pager/index.js +3 -4
  77. package/dist/cjs/components/Progress/index.js +5 -6
  78. package/dist/cjs/components/PromptInput/index.js +9 -10
  79. package/dist/cjs/components/RadioButton/index.js +7 -7
  80. package/dist/cjs/components/RadioButtonList/index.js +8 -8
  81. package/dist/cjs/components/Slider/index.js +4 -5
  82. package/dist/cjs/components/Spacer/index.js +2 -2
  83. package/dist/cjs/components/Switch/index.js +3 -3
  84. package/dist/cjs/components/TabBar/index.js +9 -9
  85. package/dist/cjs/components/TextArea/index.js +8 -8
  86. package/dist/cjs/components/Textfield/index.js +9 -9
  87. package/dist/cjs/components/Tip/index.js +3 -4
  88. package/dist/cjs/components/Toast/index.js +6 -6
  89. package/dist/cjs/components/ToggleButton/index.js +8 -8
  90. package/dist/cjs/components/UploadArea/index.js +7 -7
  91. package/dist/cjs/hooks/useAudioRecorder.js +4 -5
  92. package/dist/cjs/hooks/useLocalStore.js +3 -9
  93. package/dist/cjs/hooks/useMdStreamBuffer.js +2 -2
  94. package/dist/cjs/hooks/useMicrophone.js +7 -11
  95. package/dist/cjs/hooks/useObserveTheme.js +3 -3
  96. package/dist/cjs/hooks/useTheme.js +2 -3
  97. package/dist/cjs/hooks/useTrackRenders.js +2 -2
  98. package/dist/cjs/hooks.js +3 -3
  99. package/dist/cjs/index.js +9 -7
  100. package/dist/cjs/providers/ThemeProvider.js +1 -13
  101. package/dist/cjs/providers.js +4 -5
  102. package/dist/cjs/stores/LocalDB.js +3 -3
  103. package/dist/cjs/stores/SSE.js +2 -2
  104. package/dist/cjs/stores/WS.js +2 -2
  105. package/dist/cjs/stores/microphone.js +2 -2
  106. package/dist/cjs/stores/modal.js +7 -0
  107. package/dist/cjs/stores/tip.js +1 -1
  108. package/dist/cjs/stores/toast.js +1 -1
  109. package/dist/cjs/stores/uploads.js +2 -2
  110. package/dist/cjs/stores/volume.js +2 -2
  111. package/dist/cjs/stores/window.js +2 -2
  112. package/dist/cjs/stores.js +18 -15
  113. package/dist/cjs/theme/colors.js +1 -1
  114. package/dist/cjs/theme/type.js +1 -1
  115. package/dist/cjs/utils/index.js +2 -2
  116. package/dist/cjs/utils/objects/index.js +2 -2
  117. package/dist/cjs/workers/uploads/uploads.js +2 -2
  118. package/dist/esm/chunks/{AudioBubble-D052QyPH.mjs → AudioBubble-DfrxyTX_.mjs} +3 -7
  119. package/dist/esm/chunks/Avatar-pA41Pcyl.mjs +88 -0
  120. package/dist/esm/chunks/{AvatarGroup-CBGi99eo.mjs → AvatarGroup-CZBtWjnj.mjs} +2 -6
  121. package/dist/esm/chunks/Badge-pLwG0zm7.mjs +26 -0
  122. package/dist/esm/chunks/{Button-CYFpitCp.mjs → Button-BJoMLZIs.mjs} +6 -10
  123. package/dist/esm/chunks/{ButtonBar-ieMA0SHi.mjs → ButtonBar-BO2RUJ8R.mjs} +3 -7
  124. package/dist/esm/chunks/{Camera-jn9CcaD0.mjs → Camera-4MNA52HG.mjs} +5 -9
  125. package/dist/esm/chunks/CheckBox-7KAsvZld.mjs +61 -0
  126. package/dist/esm/chunks/Chip-BuGvCLLU.mjs +87 -0
  127. package/dist/esm/chunks/{DivInput-BVhcU0y0.mjs → DivInput-D0YzSWjJ.mjs} +2 -6
  128. package/dist/esm/chunks/{Dot-DZE134mJ.mjs → Dot-h26m47Z-.mjs} +1 -5
  129. package/dist/esm/chunks/{DrggablePanel-G5HHlntD.mjs → DrggablePanel-Bh6HLPMX.mjs} +2 -6
  130. package/dist/esm/chunks/DropDown-NgMYjjXn.mjs +112 -0
  131. package/dist/esm/chunks/ErrorSummary-nNm9qymE.mjs +90 -0
  132. package/dist/esm/chunks/{FileIcon-fJV_Cl6v.mjs → FileIcon-BqyV1wut.mjs} +2 -2
  133. package/dist/esm/chunks/FileList-C1tOvoc0.mjs +230 -0
  134. package/dist/esm/chunks/{FlexDiv-DnY1_qk4.mjs → FlexDiv-CkK-DAyg.mjs} +3 -6
  135. package/dist/esm/chunks/Grouper-CyrOkuu2.mjs +73 -0
  136. package/dist/esm/chunks/{Icon-BOJAk-hM.mjs → Icon-DjW0Krm8.mjs} +3 -8
  137. package/dist/esm/chunks/IconButton-DdLhTUl0.mjs +96 -0
  138. package/dist/esm/chunks/{IndexedDB-Dk7a4fPS.mjs → IndexedDB-DVoDikoA.mjs} +1 -1
  139. package/dist/esm/chunks/Label-DhmJ_Sln.mjs +113 -0
  140. package/dist/esm/chunks/Modal-FztrJsQo.mjs +113 -0
  141. package/dist/esm/chunks/ModalController-C1BnM5Dz.mjs +76 -0
  142. package/dist/esm/chunks/Overlay-Dsy55Bxm.mjs +47 -0
  143. package/dist/esm/chunks/Pager-BqSdwL0L.mjs +42 -0
  144. package/dist/esm/chunks/ProgressIndicator-BnqZFATV.mjs +146 -0
  145. package/dist/esm/chunks/{PromptInput-COJnOFZf.mjs → PromptInput-CRkcPXJu.mjs} +3 -7
  146. package/dist/esm/chunks/RadioButton-DXq3yniV.mjs +63 -0
  147. package/dist/esm/chunks/{RadioButtonList-XqlqadYn.mjs → RadioButtonList-BgOskHCP.mjs} +3 -6
  148. package/dist/esm/chunks/{Slider-CU0Zdlpu.mjs → Slider-DPOy9uNI.mjs} +4 -10
  149. package/dist/esm/chunks/{Spacer-C5651N0N.mjs → Spacer-BJd_D0Fn.mjs} +1 -1
  150. package/dist/esm/chunks/{Switch-RfA431T4.mjs → Switch-DHqlyizo.mjs} +1 -4
  151. package/dist/esm/chunks/{TabBar-v8Dp4dr-.mjs → TabBar-RBXExqMK.mjs} +5 -9
  152. package/dist/esm/chunks/TextArea-CIlx_P26.mjs +80 -0
  153. package/dist/esm/chunks/{TextField-j4q0RUzH.mjs → TextField-CX72ybwH.mjs} +5 -9
  154. package/dist/esm/chunks/Tip-COBSyEjm.mjs +96 -0
  155. package/dist/esm/chunks/Toast-BTm3HxDD.mjs +189 -0
  156. package/dist/esm/chunks/ToggleButton-DujsCKF3.mjs +47 -0
  157. package/dist/esm/chunks/UploadArea-D--Nt8Ed.mjs +135 -0
  158. package/dist/esm/chunks/{WSConnection-DV7k84B4.mjs → WSConnection-BMXcuW3f.mjs} +1 -1
  159. package/dist/esm/chunks/{localDBStore-Dnpo5nSv.mjs → localDBStore-36E3160Z.mjs} +2 -2
  160. package/dist/esm/chunks/{microphoneStore-Dr3lxoWX.mjs → microphoneStore-Cexu82zH.mjs} +1 -1
  161. package/dist/esm/chunks/{misc-Bjbro8Xe.mjs → misc-CTGTuM2J.mjs} +16 -19
  162. package/dist/esm/chunks/modalStore-Crg_QmSJ.mjs +68 -0
  163. package/dist/esm/chunks/{sseStore-DjrfpNAS.mjs → sseStore-Dow4NXkZ.mjs} +2 -2
  164. package/dist/esm/chunks/{uploads-worker-7X9EwX9N.mjs → uploads-worker-Dhyp4ot3.mjs} +2 -2
  165. package/dist/esm/chunks/{uploadsStore-B7VECR5Q.mjs → uploadsStore-DT4lFybE.mjs} +1 -1
  166. package/dist/esm/chunks/{volumeStore-GZnCDBMU.mjs → volumeStore-RAxdmQ60.mjs} +3 -3
  167. package/dist/esm/chunks/{windowStore-CAzx2-QV.mjs → windowStore-C4AZexIa.mjs} +1 -1
  168. package/dist/esm/components/AudioBubble/index.mjs +4 -6
  169. package/dist/esm/components/Avatar/index.mjs +3 -5
  170. package/dist/esm/components/AvatarGroup/index.mjs +4 -6
  171. package/dist/esm/components/Badge/index.mjs +2 -4
  172. package/dist/esm/components/Button/index.mjs +8 -10
  173. package/dist/esm/components/ButtonBar/index.mjs +4 -6
  174. package/dist/esm/components/Camera/index.mjs +6 -8
  175. package/dist/esm/components/CheckBox/index.mjs +4 -6
  176. package/dist/esm/components/Chip/index.mjs +5 -7
  177. package/dist/esm/components/DivInput/index.mjs +3 -5
  178. package/dist/esm/components/Dot/index.mjs +2 -4
  179. package/dist/esm/components/DraggablePanel/index.mjs +3 -5
  180. package/dist/esm/components/DropDown/index.mjs +4 -6
  181. package/dist/esm/components/ErrorSummary/index.mjs +3 -5
  182. package/dist/esm/components/FileIcon/index.mjs +3 -5
  183. package/dist/esm/components/FileList/index.mjs +6 -8
  184. package/dist/esm/components/FlexDiv/index.mjs +2 -4
  185. package/dist/esm/components/Grouper/index.mjs +5 -7
  186. package/dist/esm/components/Icon/index.mjs +4 -6
  187. package/dist/esm/components/IconButton/index.mjs +7 -9
  188. package/dist/esm/components/Label/index.mjs +3 -5
  189. package/dist/esm/components/Modal/index.mjs +45 -0
  190. package/dist/esm/components/ModalController/index.mjs +15 -0
  191. package/dist/esm/components/Overlay/index.mjs +2 -4
  192. package/dist/esm/components/Pager/index.mjs +3 -5
  193. package/dist/esm/components/Progress/index.mjs +4 -6
  194. package/dist/esm/components/PromptInput/index.mjs +11 -13
  195. package/dist/esm/components/RadioButton/index.mjs +4 -6
  196. package/dist/esm/components/RadioButtonList/index.mjs +5 -7
  197. package/dist/esm/components/Slider/index.mjs +4 -6
  198. package/dist/esm/components/Spacer/index.mjs +2 -2
  199. package/dist/esm/components/Switch/index.mjs +2 -4
  200. package/dist/esm/components/TabBar/index.mjs +8 -10
  201. package/dist/esm/components/TextArea/index.mjs +9 -11
  202. package/dist/esm/components/Textfield/index.mjs +10 -12
  203. package/dist/esm/components/Tip/index.mjs +3 -5
  204. package/dist/esm/components/Toast/index.mjs +6 -6
  205. package/dist/esm/components/ToggleButton/index.mjs +9 -11
  206. package/dist/esm/components/UploadArea/index.mjs +9 -11
  207. package/dist/esm/hooks/useAudioRecorder.mjs +4 -5
  208. package/dist/esm/hooks/useLocalStore.mjs +3 -9
  209. package/dist/esm/hooks/useMdStreamBuffer.mjs +2 -2
  210. package/dist/esm/hooks/useMicrophone.mjs +7 -11
  211. package/dist/esm/hooks/useObserveTheme.mjs +0 -2
  212. package/dist/esm/hooks/useTheme.mjs +0 -2
  213. package/dist/esm/hooks/useTrackRenders.mjs +2 -2
  214. package/dist/esm/hooks.mjs +2 -4
  215. package/dist/esm/index.mjs +53 -47
  216. package/dist/esm/providers/ThemeProvider.mjs +0 -14
  217. package/dist/esm/providers.mjs +0 -2
  218. package/dist/esm/stores/LocalDB.mjs +3 -3
  219. package/dist/esm/stores/SSE.mjs +3 -3
  220. package/dist/esm/stores/WS.mjs +2 -2
  221. package/dist/esm/stores/microphone.mjs +2 -2
  222. package/dist/esm/stores/modal.mjs +3 -0
  223. package/dist/esm/stores/tip.mjs +1 -1
  224. package/dist/esm/stores/toast.mjs +1 -1
  225. package/dist/esm/stores/uploads.mjs +3 -3
  226. package/dist/esm/stores/volume.mjs +2 -2
  227. package/dist/esm/stores/window.mjs +2 -2
  228. package/dist/esm/stores.mjs +14 -12
  229. package/dist/esm/theme/colors.mjs +1 -1
  230. package/dist/esm/theme/type.mjs +1 -1
  231. package/dist/esm/utils/index.mjs +9 -9
  232. package/dist/esm/utils/objects/index.mjs +6 -6
  233. package/dist/esm/workers/uploads/uploads.mjs +2 -2
  234. package/dist/styles.css +8436 -0
  235. package/dist/types/components/Modal/Modal.d.ts +3 -0
  236. package/dist/types/components/Modal/_types.d.ts +46 -0
  237. package/dist/types/components/Modal/index.d.ts +2 -0
  238. package/dist/types/components/ModalController/ModalController.d.ts +2 -0
  239. package/dist/types/components/ModalController/_types.d.ts +13 -0
  240. package/dist/types/components/ModalController/index.d.ts +2 -0
  241. package/dist/types/components/Overlay/_types.d.ts +4 -0
  242. package/dist/types/components/Progress/ProgressIndicator/ProgressIndicator.d.ts +1 -1
  243. package/dist/types/components/Progress/ProgressIndicator/_types.d.ts +2 -1
  244. package/dist/types/components/Toast/_types.d.ts +2 -0
  245. package/dist/types/index.d.ts +5 -0
  246. package/dist/types/providers/ThemeProvider.d.ts +0 -6
  247. package/dist/types/stores/index.d.ts +1 -0
  248. package/dist/types/stores/modal/_types.d.ts +27 -0
  249. package/dist/types/stores/modal/index.d.ts +2 -0
  250. package/dist/types/stores/modal/modalStore.d.ts +20 -0
  251. package/dist/types/stores/toast/_types.d.ts +3 -1
  252. package/package.json +8 -3
  253. package/dist/cjs/chunks/Avatar-vIquH-Uk.js +0 -84
  254. package/dist/cjs/chunks/Badge-DjPJ_iJX.js +0 -24
  255. package/dist/cjs/chunks/CheckBox-DNctUlTA.js +0 -53
  256. package/dist/cjs/chunks/Chip-BN4qBz6w.js +0 -79
  257. package/dist/cjs/chunks/DropDown-BZbrZOkx.js +0 -105
  258. package/dist/cjs/chunks/ErrorSummary-K_rPxGWK.js +0 -87
  259. package/dist/cjs/chunks/FileList-D5_igVaC.js +0 -225
  260. package/dist/cjs/chunks/Grouper-D6rSl9nK.js +0 -63
  261. package/dist/cjs/chunks/IconButton-Cv-po19M.js +0 -84
  262. package/dist/cjs/chunks/Label-BQ6flU4-.js +0 -103
  263. package/dist/cjs/chunks/Overlay-DDOvMM6L.js +0 -37
  264. package/dist/cjs/chunks/Pager-GH2y7l5h.js +0 -38
  265. package/dist/cjs/chunks/ProgressIndicator-7pLk4Dvn.js +0 -138
  266. package/dist/cjs/chunks/RadioButton-3CzhKBn6.js +0 -56
  267. package/dist/cjs/chunks/TextArea-CBNHvcK3.js +0 -76
  268. package/dist/cjs/chunks/Tip-CUKFhP9K.js +0 -90
  269. package/dist/cjs/chunks/Toast-CKqGjsEk.js +0 -169
  270. package/dist/cjs/chunks/ToggleButton-BdCsChJM.js +0 -40
  271. package/dist/cjs/chunks/UploadArea-M9oc-No2.js +0 -129
  272. package/dist/cjs/chunks/style-inject.es-CMuL-BfJ.js +0 -11
  273. package/dist/esm/chunks/Avatar-Ds6MWC2c.mjs +0 -92
  274. package/dist/esm/chunks/Badge-CC0zSLMf.mjs +0 -30
  275. package/dist/esm/chunks/CheckBox-CoOmnGWD.mjs +0 -65
  276. package/dist/esm/chunks/Chip-ClG6cUX0.mjs +0 -91
  277. package/dist/esm/chunks/DropDown-AuQW_DWv.mjs +0 -115
  278. package/dist/esm/chunks/ErrorSummary-EzCqVifm.mjs +0 -94
  279. package/dist/esm/chunks/FileList-CxHaEEUi.mjs +0 -235
  280. package/dist/esm/chunks/Grouper-CyWZ8tfm.mjs +0 -77
  281. package/dist/esm/chunks/IconButton-Ck0IMn4i.mjs +0 -100
  282. package/dist/esm/chunks/Label-DSfCcKtQ.mjs +0 -116
  283. package/dist/esm/chunks/Overlay-DiSvgIQP.mjs +0 -45
  284. package/dist/esm/chunks/Pager-ByJ2Cr0n.mjs +0 -46
  285. package/dist/esm/chunks/ProgressIndicator-d2JGUDW_.mjs +0 -148
  286. package/dist/esm/chunks/RadioButton-BB73OY2a.mjs +0 -66
  287. package/dist/esm/chunks/TextArea-DGF43RON.mjs +0 -84
  288. package/dist/esm/chunks/Tip-Bj9d-230.mjs +0 -100
  289. package/dist/esm/chunks/Toast-CoioLlEG.mjs +0 -181
  290. package/dist/esm/chunks/ToggleButton-CwTm8Yx0.mjs +0 -51
  291. package/dist/esm/chunks/UploadArea-DAwoJxtr.mjs +0 -139
  292. package/dist/esm/chunks/style-inject.es-D0BjEaN8.mjs +0 -11
  293. /package/dist/cjs/chunks/{MdStreamBuffer-CvLO7CVi.js → MdStreamBuffer-CbG_VeRI.js} +0 -0
  294. /package/dist/cjs/chunks/{SSEConnection-C-1OzEOp.js → SSEConnection-ACoOeeTO.js} +0 -0
  295. /package/dist/cjs/chunks/{_types-Bdqd2vHh.js → _types-k-3V1fz_.js} +0 -0
  296. /package/dist/cjs/chunks/{audioVisualizer-EIfIjWH7.js → audioVisualizer-MOSbvvnZ.js} +0 -0
  297. /package/dist/cjs/chunks/{colors-njquvHkx.js → colors-B0_3srZN.js} +0 -0
  298. /package/dist/cjs/chunks/{debounce-BF4i6uIC.js → debounce-CaoYvh12.js} +0 -0
  299. /package/dist/cjs/chunks/{sharedTypes-gCECyn2N.js → sharedTypes-CthHPjrO.js} +0 -0
  300. /package/dist/cjs/chunks/{tipStore-Ck4NLvml.js → tipStore-CPB7RHKY.js} +0 -0
  301. /package/dist/cjs/chunks/{toastStore-CSStgB9d.js → toastStore-6eHe6esp.js} +0 -0
  302. /package/dist/cjs/chunks/{tslib.es6-C8dZW5nY.js → tslib.es6-CzpRaW14.js} +0 -0
  303. /package/dist/esm/chunks/{MdStreamBuffer-By7pHJQL.mjs → MdStreamBuffer-4AJH8WaN.mjs} +0 -0
  304. /package/dist/esm/chunks/{SSEConnection-DcA3wFsO.mjs → SSEConnection-qNnkZUOe.mjs} +0 -0
  305. /package/dist/esm/chunks/{_types-BVrr_Khp.mjs → _types-CEStVWlB.mjs} +0 -0
  306. /package/dist/esm/chunks/{audioVisualizer-ZgT77nUw.mjs → audioVisualizer-BUNbarKP.mjs} +0 -0
  307. /package/dist/esm/chunks/{colors-FQ0uNQcW.mjs → colors-D-qeA9gU.mjs} +0 -0
  308. /package/dist/esm/chunks/{debounce-Bst1jxMS.mjs → debounce-D5b6tZ5a.mjs} +0 -0
  309. /package/dist/esm/chunks/{sharedTypes-tn9-uJvb.mjs → sharedTypes-U5H1I85x.mjs} +0 -0
  310. /package/dist/esm/chunks/{tipStore-CL5a95Bl.mjs → tipStore-pvswaezx.mjs} +0 -0
  311. /package/dist/esm/chunks/{toastStore-D2PEIqCo.mjs → toastStore-80oOTYsj.mjs} +0 -0
  312. /package/dist/esm/chunks/{tslib.es6-C-olHjXV.mjs → tslib.es6-BX2F90pK.mjs} +0 -0
@@ -0,0 +1,82 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), Badge = require("./Badge-D2TbyfJS.js"), Dot = require("./Dot-C0MvSJOl.js"), Icon = require("./Icon-BFZ_5Qv3.js"), sharedTypes = require("./sharedTypes-CthHPjrO.js"), css_button = "IconButton-module_button__rziqa flexBox-module_row__z24tF", css_label = "IconButton-module_label__qWGFD flexBox-module_row__z24tF type-module_body-l-regular__lOYbg", css_icon = "IconButton-module_icon__2DDWy flexBox-module_row__z24tF", css_count = "IconButton-module_count__6r373 flexBox-module_row__z24tF";
5
+
6
+ const IconButton = React.memo(props => {
7
+ const {frameSize: frameSize = 36, iconSize: iconSize = 20, round: round = !0, icon: icon = "more", borderRadius: borderRadius = 4, border: border = !1, tooltip: tooltip, color: color, colorOn: colorOn, iconFill: iconFill = !1, bgColor: bgColor = "var(--core-surface-secondary)", bgColorHover: bgColorHover = "var(--core-outline-primary)", bgColorOn: bgColorOn = "var(--core-outline-primary)", iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-text-primary)", iconColorHover: iconColorHover = "var(--core-text-primary)", transition: transition, variants: variants, initial: initial, animate: animate, exit: exit, fillColor: fillColor, label: label, hover: hover = !0, count: count = 0, toggle: toggle = !1, toggleIcon: toggleIcon = !1, isToggled: isToggled = !1, disabled: disabled = !1, showDot: showDot = !1, buttonSize: buttonSize = "m", onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "frameSize", "iconSize", "round", "icon", "borderRadius", "border", "tooltip", "color", "colorOn", "iconFill", "bgColor", "bgColorHover", "bgColorOn", "iconColor", "iconColorOn", "iconColorHover", "transition", "variants", "initial", "animate", "exit", "fillColor", "label", "hover", "count", "toggle", "toggleIcon", "isToggled", "disabled", "showDot", "buttonSize", "onClick", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", ref = React.useRef(null), [on, setOn] = React.useState(isToggled), [hovered, setHovered] = React.useState(!1);
8
+ React.useEffect(() => setOn(isToggled), [ isToggled ]);
9
+ const handleClick = React.useCallback(e => {
10
+ disabled || (tooltip && onToolTip(null), toggle && setOn(!on), onClick(e));
11
+ }, [ disabled, tooltip, onToolTip, on, onClick, toggle ]), handleMouseEnter = React.useCallback(e => {
12
+ if (setHovered(!0), !(null == ref ? void 0 : ref.current) || !tooltip) return;
13
+ const tip = {
14
+ type: sharedTypes.ToolTipType.button,
15
+ payload: {
16
+ label: tooltip
17
+ },
18
+ event: e,
19
+ ref: ref
20
+ };
21
+ onToolTip(tip);
22
+ }, [ tooltip, onToolTip ]), handleMouseLeave = React.useCallback(() => {
23
+ setHovered(!1), tooltip && onToolTip(null);
24
+ }, [ tooltip, onToolTip ]), bgColorNormal = React.useMemo(() => on ? bgColorOn : null != bgColor ? bgColor : "var(--core-surface-secondary)", [ bgColorOn, bgColor, on ]), bgHoverColor = React.useMemo(() => hover && on ? bgColorOn : hover ? bgColorHover : null != bgColor ? bgColor : "transparent", [ hover, bgColor, bgColorOn, bgColorHover, on ]), textColor = React.useMemo(() => on ? colorOn : null != color ? color : "var(--core-text-primary)", [ on, colorOn, color ]), setIconColor = React.useMemo(() => on ? iconColorOn : hovered ? iconColorHover : null != iconColor ? iconColor : "var(--core-text-primary)", [ on, iconColorOn, iconColor, iconColorHover, hovered ]), size = React.useMemo(() => buttonSize ? "s" === buttonSize ? 24 : "m" === buttonSize ? 36 : "l" === buttonSize ? 44 : "xl" === buttonSize ? 56 : void 0 : frameSize, [ frameSize, buttonSize ]), cssVars = React.useMemo(() => ({
25
+ "--ib-bg-color": bgColorNormal,
26
+ "--ib-bg-color-hover": disabled ? bgColorNormal : bgHoverColor,
27
+ "--ib-icon-size": `${null != iconSize ? iconSize : 0}px`,
28
+ "--ib-button-size": `${null != size ? size : 0}px`,
29
+ "--ib-border-radius": round ? "100%" : `${null != borderRadius ? borderRadius : 0}px`,
30
+ "--ib-border": border ? "1px" : 0,
31
+ "--ib-color": textColor,
32
+ "--ib-cursor": disabled ? "default" : "pointer"
33
+ }), [ bgColorNormal, bgHoverColor, textColor, border, size, borderRadius, iconSize, round, disabled ]);
34
+ return jsxRuntime.jsxs(react.motion.button, Object.assign({
35
+ id: divId,
36
+ type: "button",
37
+ className: `${css_button}${divClass}`,
38
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
39
+ onClick: e => handleClick(e),
40
+ onMouseOutCapture: handleMouseLeave,
41
+ onMouseOverCapture: handleMouseEnter,
42
+ transition: transition,
43
+ variants: variants,
44
+ initial: initial,
45
+ animate: animate,
46
+ exit: exit,
47
+ disabled: disabled,
48
+ "aria-disabled": disabled,
49
+ ref: ref
50
+ }, rest, {
51
+ children: [ jsxRuntime.jsx("div", {
52
+ className: css_icon,
53
+ style: {
54
+ opacity: disabled ? .3 : 1
55
+ },
56
+ children: jsxRuntime.jsx(Icon.Icon, {
57
+ name: icon,
58
+ strokeColor: setIconColor,
59
+ fillColor: fillColor,
60
+ disabled: disabled,
61
+ size: iconSize,
62
+ fill: iconFill,
63
+ toggle: !!toggleIcon && on,
64
+ pointer: !0
65
+ })
66
+ }), label && jsxRuntime.jsx("div", {
67
+ className: css_label,
68
+ children: label
69
+ }), jsxRuntime.jsx(Dot.Dot, {
70
+ show: showDot
71
+ }), 0 !== count && jsxRuntime.jsx("div", {
72
+ className: css_count,
73
+ children: jsxRuntime.jsx(Badge.Badge, {
74
+ variant: "light",
75
+ count: count,
76
+ hideNull: !0
77
+ })
78
+ }) ]
79
+ }));
80
+ });
81
+
82
+ exports.IconButton = IconButton;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js");
3
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js");
4
4
 
5
5
  exports.IndexedDB = class {
6
6
  constructor(storeName, options = {}) {
@@ -0,0 +1,102 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var LabelBackground, tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-DZAbObFp.js"), css = {
5
+ label: "Label-module_label__RaRvM",
6
+ button: "Label-module_button__N8bcQ type-module_body-m-regular__LuQBA",
7
+ xs: "Label-module_xs__K9Ai6 type-module_body-xs-regular__ZAFft",
8
+ s: "Label-module_s__Zh8Gp type-module_body-s-regular__vRHSP",
9
+ m: "Label-module_m__BJtGL type-module_body-m-regular__LuQBA",
10
+ l: "Label-module_l__t70tt type-module_body-l-regular__lOYbg"
11
+ };
12
+
13
+ function resolveSemanticBackground(backgroundColor) {
14
+ if (!backgroundColor || "string" != typeof backgroundColor) return;
15
+ const semanticKey = backgroundColor;
16
+ return exports.LabelBackground[semanticKey] ? exports.LabelBackground[semanticKey] : Object.values(exports.LabelBackground).find(value => value === backgroundColor);
17
+ }
18
+
19
+ exports.LabelBackground = void 0, (LabelBackground = exports.LabelBackground || (exports.LabelBackground = {})).red = "red",
20
+ LabelBackground.yellow = "yellow", LabelBackground.green = "green", LabelBackground.blue = "blue",
21
+ LabelBackground.grey = "grey", LabelBackground.lightGrey = "lightGrey", LabelBackground.white = "white",
22
+ exports.Label = function(props) {
23
+ const {children: children, label: label, backgroundColor: backgroundColor, borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-outline-primary)", bgColor: bgColor = "transparent", borderRadius: borderRadius = 4, padding: padding, textColor: textColor = "var(--core-text-primary)", textSize: textSize = "s", onClick: onClick} = props, divAttributes = tslib_es6.__rest(props, [ "children", "label", "backgroundColor", "borderWidth", "borderSize", "borderColor", "bgColor", "borderRadius", "padding", "textColor", "textSize", "onClick" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", isInteractive = Boolean(onClick), resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, handleClick = React.useCallback(e => {
24
+ isInteractive && (null == onClick || onClick(e));
25
+ }, [ isInteractive, onClick ]), setBgColor = React.useMemo(() => {
26
+ if (!resolvedBackgroundColor) return "transparent";
27
+ const fill = resolveSemanticBackground(resolvedBackgroundColor);
28
+ if (!fill) return resolvedBackgroundColor;
29
+ switch (fill) {
30
+ case "red":
31
+ return "var(--feedback-warning)";
32
+
33
+ case "green":
34
+ return "var(--feedback-positive)";
35
+
36
+ case "yellow":
37
+ return "var(--array-yellow)";
38
+
39
+ case "grey":
40
+ case "white":
41
+ return "var(--core-surface-secondary)";
42
+
43
+ case "lightGrey":
44
+ return "var(--core-button-disabled)";
45
+
46
+ case "blue":
47
+ return "var(--core-button-primary)";
48
+
49
+ default:
50
+ return "var(--core-surface-primary)";
51
+ }
52
+ }, [ resolvedBackgroundColor ]), setBorderColor = React.useMemo(() => {
53
+ if (!resolvedBackgroundColor) return borderColor;
54
+ const fill = resolveSemanticBackground(resolvedBackgroundColor);
55
+ if (!fill) return borderColor;
56
+ switch (fill) {
57
+ case "red":
58
+ return "var(--feedback-warning)";
59
+
60
+ case "green":
61
+ return "var(--feedback-positive)";
62
+
63
+ case "yellow":
64
+ return "var(--array-yellow-label)";
65
+
66
+ case "grey":
67
+ case "lightGrey":
68
+ case "white":
69
+ return "var(--core-outline-primary)";
70
+
71
+ case "blue":
72
+ return "var(--core-button-primary)";
73
+
74
+ default:
75
+ return "var(--core-surface-primary)";
76
+ }
77
+ }, [ resolvedBackgroundColor, borderColor ]), setPadding = React.useMemo(() => padding ? misc.setStyle(padding) : "2px 4px", [ padding ]), cssVars = React.useMemo(() => ({
78
+ "--label-padding": setPadding,
79
+ "--label-border-radius": misc.setStyle(borderRadius),
80
+ "--label-cursor": onClick ? "pointer" : "default",
81
+ "--label-color": textColor,
82
+ "--label-bg-color": setBgColor,
83
+ "--label-border-size": misc.setStyle(resolvedBorderWidth),
84
+ "--label-border-color": setBorderColor
85
+ }), [ setPadding, borderRadius, onClick, textColor, setBorderColor, setBgColor, resolvedBorderWidth ]);
86
+ return isInteractive ? jsxRuntime.jsx("button", Object.assign({
87
+ id: divId,
88
+ type: "button",
89
+ className: `${css.button} ${css[textSize]}${divClass}`,
90
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
91
+ "aria-label": "Label button",
92
+ onClick: e => handleClick(e)
93
+ }, rest, {
94
+ children: null != children ? children : label
95
+ })) : jsxRuntime.jsx("span", Object.assign({
96
+ id: divId,
97
+ className: `${css.label} ${css[textSize]}${divClass}`,
98
+ style: Object.assign(Object.assign({}, divStyle), cssVars)
99
+ }, rest, {
100
+ children: null != children ? children : label
101
+ }));
102
+ };
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+
3
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-DZAbObFp.js"), Button = require("./Button-CTsHZBEB.js"), Icon = require("./Icon-BFZ_5Qv3.js"), IconButton = require("./IconButton-CgsuJIuF.js"), css = {
4
+ wrapper: "Modal-module_wrapper__34Hds flexBox-module_columnBetween__ERfp7",
5
+ title: "Modal-module_title__A5OeE flexBox-module_rowBetween__5FEvi",
6
+ titleBlock: "Modal-module_titleBlock__HUepX flexBox-module_rowStart__4tcxS",
7
+ titleIcon: "Modal-module_titleIcon__xJYzy flexBox-module_row__z24tF",
8
+ content: "Modal-module_content__dWO-B flexBox-module_columnStart__C7P44",
9
+ actions: "Modal-module_actions__hY6zi flexBox-module_rowBetween__5FEvi",
10
+ leftActions: "Modal-module_leftActions__-M-DM flexBox-module_rowStart__4tcxS",
11
+ rightActions: "Modal-module_rightActions__IFgrN flexBox-module_rowEnd__rVdVm",
12
+ xs: "Modal-module_xs__iPcS9 type-module_body-xs-medium__s3KvF",
13
+ s: "Modal-module_s__31sYS type-module_body-s-medium__tjdFc",
14
+ m: "Modal-module_m__Iz82L type-module_body-m-medium__uW1on",
15
+ l: "Modal-module_l__pntdS type-module_body-l-medium__BqRC7",
16
+ xl: "Modal-module_xl__MR-68 type-module_body-xl-medium__BeyrH"
17
+ };
18
+
19
+ const Modal = React.memo(props => {
20
+ const {children: children, id: id, className: className, style: style, minWidth: minWidth = 300, minHeight: minHeight = 200, maxHeight: maxHeight = 400, maxWidth: maxWidth = 400, padding: padding, close: close = !0, title: title, titleSize: titleSize = "l", contentSize: contentSize = "m", actions: actions, titleIcon: titleIcon, titleIconFill: titleIconFill = !0, titleBorderColor: titleBorderColor = "var(--core-outline-primary)", titleBorderWidth: titleBorderWidth = 0, actionsBorderColor: actionsBorderColor = "var(--core-outline-primary)", actionsBorderWidth: actionsBorderWidth = 0, onAction: onAction, onReject: onReject, onResolve: onResolve, onClose: onClose, onToolTip: onToolTip, onDragPointerDown: onDragPointerDown, backgroundColor: backgroundColor = "var(--core-surface-secondary)", titleColor: titleColor = "var(--core-text-special)", borderColor: borderColor = "var(--core-outline-primary)", borderRadius: borderRadius = 8, borderWidth: borderWidth = 1} = props, rest = tslib_es6.__rest(props, [ "children", "id", "className", "style", "minWidth", "minHeight", "maxHeight", "maxWidth", "padding", "close", "title", "titleSize", "contentSize", "actions", "titleIcon", "titleIconFill", "titleBorderColor", "titleBorderWidth", "actionsBorderColor", "actionsBorderWidth", "onAction", "onReject", "onResolve", "onClose", "onToolTip", "onDragPointerDown", "backgroundColor", "titleColor", "borderColor", "borderRadius", "borderWidth" ]), modalStyle = null != style ? style : {}, modalClass = className ? ` ${className}` : "", cssVars = React.useMemo(() => ({
21
+ "--modal-min-width": misc.setStyle(minWidth),
22
+ "--modal-min-height": misc.setStyle(minHeight),
23
+ "--modal-max-height": misc.setStyle(maxHeight),
24
+ "--modal-max-width": misc.setStyle(maxWidth),
25
+ "--modal-border-color": borderColor,
26
+ "--modal-title-color": titleColor,
27
+ "--modal-border-radius": misc.setStyle(borderRadius),
28
+ "--modal-border-width": misc.setStyle(borderWidth),
29
+ "--modal-padding": misc.setStyle(padding, 16),
30
+ "--modal-background-color": backgroundColor,
31
+ "--modal-title-border-color": titleBorderColor,
32
+ "--modal-title-border-width": misc.setStyle(titleBorderWidth),
33
+ "--modal-actions-border-color": actionsBorderColor,
34
+ "--modal-actions-border-width": misc.setStyle(actionsBorderWidth)
35
+ }), [ minWidth, minHeight, maxHeight, maxWidth, borderColor, titleColor, borderRadius, borderWidth, padding, titleBorderWidth, titleBorderColor, actionsBorderWidth, actionsBorderColor, backgroundColor ]), renderActions = position => null == actions ? void 0 : actions.map((action, index) => action.position || "left" !== position ? action.position && position !== action.position ? null : jsxRuntime.jsx(Button.Button, {
36
+ variant: action.primary ? "solid" : "outline",
37
+ label: action.label,
38
+ onClick: e => (action => {
39
+ const resolves = !action.promise || "resolve" === action.promise, rejects = "reject" === action.promise;
40
+ null == onAction || onAction(action.value), resolves && (null == onResolve || onResolve(action.value)),
41
+ rejects && (null == onReject || onReject(new Error("Modal rejected", {
42
+ cause: action.value
43
+ })));
44
+ })(action),
45
+ round: !0 === action.round,
46
+ iconLeft: action.iconLeft,
47
+ iconRight: action.iconRight,
48
+ tooltip: action.tooltip,
49
+ onToolTip: tip => null == onToolTip ? void 0 : onToolTip(tip)
50
+ }, `${action.id}_${index}`) : null);
51
+ return jsxRuntime.jsxs("div", Object.assign({
52
+ id: id,
53
+ className: `${css.wrapper}${modalClass}`,
54
+ style: Object.assign(Object.assign({}, modalStyle), cssVars)
55
+ }, rest, {
56
+ children: [ (title || close) && jsxRuntime.jsxs("div", {
57
+ className: `${css.title} ${css[titleSize]}`,
58
+ children: [ jsxRuntime.jsxs("div", {
59
+ className: css.titleBlock,
60
+ onPointerDown: onDragPointerDown,
61
+ children: [ titleIcon && jsxRuntime.jsx("div", {
62
+ className: css.titleIcon,
63
+ children: jsxRuntime.jsx(Icon.Icon, {
64
+ name: titleIcon,
65
+ fill: titleIconFill,
66
+ size: 20
67
+ })
68
+ }), title ]
69
+ }), close && jsxRuntime.jsx("div", {
70
+ className: css.close,
71
+ children: jsxRuntime.jsx("div", {
72
+ className: css.titleIcon,
73
+ children: jsxRuntime.jsx(IconButton.IconButton, {
74
+ tooltip: "close",
75
+ icon: "x",
76
+ onClick: () => {
77
+ null == onReject || onReject(new Error("Modal was closed", {
78
+ cause: "user action"
79
+ })), null == onClose || onClose();
80
+ },
81
+ onToolTip: tip => null == onToolTip ? void 0 : onToolTip(tip)
82
+ })
83
+ })
84
+ }) ]
85
+ }), jsxRuntime.jsx("div", {
86
+ className: `${css.content} ${css[contentSize]}`,
87
+ children: children
88
+ }), actions && actions.length > 0 && jsxRuntime.jsxs("div", {
89
+ className: css.actions,
90
+ children: [ jsxRuntime.jsx("div", {
91
+ className: css.leftActions,
92
+ children: renderActions("left")
93
+ }), jsxRuntime.jsx("div", {
94
+ className: css.rightActions,
95
+ children: renderActions("right")
96
+ }) ]
97
+ }) ]
98
+ }));
99
+ });
100
+
101
+ exports.Modal = Modal;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ var jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), Overlay = require("./Overlay-FooE9M_s.js"), modalStore = require("./modalStore-D4bOjuWd.js"), css_wrapper = "ModalController-module_wrapper__HkOoX flexBox-module_row__z24tF";
4
+
5
+ const defaultTransition = {
6
+ ease: "easeOut",
7
+ duration: .25,
8
+ delay: .1
9
+ }, defaultVariants = {
10
+ initial: {
11
+ opacity: 0,
12
+ y: 20
13
+ },
14
+ animate: {
15
+ opacity: 1,
16
+ y: 0
17
+ },
18
+ exit: {
19
+ opacity: 0,
20
+ y: 20
21
+ }
22
+ };
23
+
24
+ exports.ModalController = function(props) {
25
+ const {dragConstraintsRef: dragConstraintsRef, transition: transition = defaultTransition, variants: variants = defaultVariants, initial: initial = "initial", animate: animate = "animate", exit: exit = "exit", draggable: draggable = !0, overlayOpacity: overlayOpacity = .7, overlayColor: overlayColor = "rgb(0,0,0)"} = props, controls = react.useDragControls(), modal = modalStore.useModal(), resolve = modalStore.useModalActions().resolve, reject = modalStore.useModalActions().reject, hide = modalStore.useModalActions().hide, ModalComponent = null == modal ? void 0 : modal.component, modalProps = null == modal ? void 0 : modal.props;
26
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, {
27
+ children: [ jsxRuntime.jsx(Overlay.Overlay, {
28
+ show: !!modal,
29
+ type: "dark",
30
+ opacity: overlayOpacity,
31
+ color: overlayColor,
32
+ onClick: () => hide()
33
+ }), jsxRuntime.jsx(react.AnimatePresence, {
34
+ children: modal && ModalComponent && jsxRuntime.jsx(react.motion.div, {
35
+ className: css_wrapper,
36
+ variants: variants,
37
+ initial: initial,
38
+ animate: animate,
39
+ exit: exit,
40
+ transition: transition,
41
+ drag: draggable,
42
+ dragListener: !draggable && void 0,
43
+ dragControls: draggable ? controls : void 0,
44
+ dragConstraints: draggable ? dragConstraintsRef : void 0,
45
+ dragElastic: draggable ? 0 : void 0,
46
+ dragMomentum: !draggable && void 0,
47
+ children: jsxRuntime.jsx(ModalComponent, Object.assign({}, modalProps, {
48
+ onResolve: value => {
49
+ "function" == typeof (null == modalProps ? void 0 : modalProps.onResolve) && modalProps.onResolve(value),
50
+ resolve(value);
51
+ },
52
+ onReject: error => {
53
+ "function" == typeof (null == modalProps ? void 0 : modalProps.onReject) && modalProps.onReject(error),
54
+ reject(error);
55
+ },
56
+ onClose: () => {
57
+ "function" == typeof (null == modalProps ? void 0 : modalProps.onClose) && modalProps.onClose(),
58
+ hide();
59
+ },
60
+ onDragPointerDown: e => {
61
+ "function" == typeof (null == modalProps ? void 0 : modalProps.onDragPointerDown) && (null == modalProps || modalProps.onDragPointerDown(e)),
62
+ controls.start(e);
63
+ }
64
+ }))
65
+ })
66
+ }) ]
67
+ });
68
+ };
@@ -0,0 +1,41 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), css_overlay = "Overlay-module_overlay__EkbfA";
5
+
6
+ const defaultTransition = {
7
+ ease: "easeOut",
8
+ duration: .25
9
+ }, Overlay = React.memo(props => {
10
+ const {children: children, show: show = !1, type: type = "clear", global: global = !1, overlay: overlay, color: color = "rgb(0,0,0)", opacity: opacity = 0, transition: transition = defaultTransition, onClick: onClick = () => null, toggleOverlay: toggleOverlay = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "children", "show", "type", "global", "overlay", "color", "opacity", "transition", "onClick", "toggleOverlay" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", computedOpacity = React.useMemo(() => "clear" === type ? 0 : void 0 !== opacity ? opacity : "dark" === type ? .8 : 0, [ type, opacity ]), handleClick = React.useCallback(() => {
11
+ global && toggleOverlay(!1), onClick();
12
+ }, [ global, toggleOverlay, onClick ]), handleContextMenu = React.useCallback(e => {
13
+ e.preventDefault();
14
+ }, []), cssVars = React.useMemo(() => ({
15
+ "--overlay-color": null != color ? color : "rgb(0,0,0)"
16
+ }), [ color ]);
17
+ return jsxRuntime.jsx(react.AnimatePresence, {
18
+ initial: !1,
19
+ children: show && jsxRuntime.jsx(react.motion.div, Object.assign({
20
+ id: divId,
21
+ className: `${css_overlay}${divClass}`,
22
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
23
+ initial: {
24
+ opacity: 0
25
+ },
26
+ animate: {
27
+ opacity: computedOpacity
28
+ },
29
+ exit: {
30
+ opacity: 0
31
+ },
32
+ onClick: handleClick,
33
+ transition: transition,
34
+ onContextMenu: handleContextMenu
35
+ }, rest, {
36
+ children: children
37
+ }))
38
+ });
39
+ });
40
+
41
+ exports.Overlay = Overlay;
@@ -0,0 +1,36 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-DZAbObFp.js"), css_wrapper = "Pager-module_wrapper__eutVg flexBox-module_row__z24tF", css_bullet = "Pager-module_bullet__TxyR5 flexBox-module_row__z24tF", css_selected = "Pager-module_selected__C6xbR";
5
+
6
+ const Pager = React.memo(props => {
7
+ const {size: size = 8, index: index = 0, color: color, colorHover: colorHover, colorOn: colorOn, pages: pages = 2, gap: gap = 4, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "size", "index", "color", "colorHover", "colorOn", "pages", "gap", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [selected, setSelected] = React.useState(index), bullets = React.useMemo(() => Array.from({
8
+ length: pages
9
+ }, (_, i) => i), [ pages ]);
10
+ React.useEffect(() => setSelected(index), [ index ]);
11
+ const handleClick = React.useCallback(i => {
12
+ setSelected(i), onChange(i);
13
+ }, [ onChange ]), cssVars = React.useMemo(() => ({
14
+ "--pager-gap": `${gap}px`,
15
+ "--pager-size": `${size}px`,
16
+ "--pager-color": null != color ? color : "var(--core-text-disabled)",
17
+ "--pager-colorOn": null != colorOn ? colorOn : "var(--core-text-primary)",
18
+ "--pager-colorHover": null != colorHover ? colorHover : "var(--core-text-disabled)"
19
+ }), [ gap, size, color, colorOn, colorHover ]);
20
+ return jsxRuntime.jsx("div", Object.assign({
21
+ id: divId,
22
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
23
+ className: `${css_wrapper}${divClass}`
24
+ }, rest, {
25
+ children: bullets.map(bulletId => jsxRuntime.jsx("input", {
26
+ className: `${css_bullet} ${selected === bulletId ? css_selected : ""}`,
27
+ type: "button",
28
+ onClick: () => handleClick(bulletId),
29
+ onKeyDown: e => misc.accessibleKeyDown(e, () => handleClick(bulletId)),
30
+ onTouchStart: () => handleClick(bulletId),
31
+ tabIndex: bulletId
32
+ }, `paging_bullet_${bulletId}`))
33
+ }));
34
+ });
35
+
36
+ exports.Pager = Pager;
@@ -0,0 +1,138 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
5
+
6
+ require("../theme/colors.js");
7
+
8
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js");
9
+
10
+ require("../hooks/useWindow.js");
11
+
12
+ var Icon = require("./Icon-BFZ_5Qv3.js"), react = require("motion/react"), css$1_wrapper = "DoneCheck-module_wrapper__AlISD flexBox-module_row__z24tF", css$1_icon = "DoneCheck-module_icon__bKaFp flexBox-module_row__z24tF";
13
+
14
+ const DoneCheck = React.memo(props => {
15
+ const theme = hooks_useTheme.useTheme(), {size: size = 88, stroke: stroke = 1.5, color: color = theme.current.colors["feedback-positive"], play: play = !0, delay: delay = 5, duration: duration = 1, didStart: didStart, didEnd: didEnd} = props, [playing, setPlaying] = React.useState(!play);
16
+ React.useEffect(() => {
17
+ let frameOne = 0, frameTwo = 0;
18
+ return play ? (setPlaying(!1), frameOne = requestAnimationFrame(() => {
19
+ frameTwo = requestAnimationFrame(() => {
20
+ setPlaying(!0);
21
+ });
22
+ })) : setPlaying(!0), () => {
23
+ frameOne && cancelAnimationFrame(frameOne), frameTwo && cancelAnimationFrame(frameTwo);
24
+ };
25
+ }, [ play ]);
26
+ const transition = React.useMemo(() => `scale ${duration}s var(--motion-spring) ${delay}s`, [ delay, duration ]), cssVars = React.useMemo(() => ({
27
+ "--icon-size": `${size}px`,
28
+ "--icon-scale": playing ? 1 : 0,
29
+ "--icon-transition": play ? transition : "unset"
30
+ }), [ size, playing, play, transition ]);
31
+ return jsxRuntime.jsx("div", {
32
+ className: css$1_wrapper,
33
+ role: "status",
34
+ "aria-live": "polite",
35
+ children: jsxRuntime.jsx("div", {
36
+ className: css$1_icon,
37
+ style: cssVars,
38
+ onTransitionEnd: () => null == didEnd ? void 0 : didEnd(),
39
+ onTransitionStart: () => null == didStart ? void 0 : didStart(),
40
+ children: jsxRuntime.jsx(Icon.Icon, {
41
+ name: "check circle",
42
+ size: size,
43
+ color: color,
44
+ stroke: stroke,
45
+ strokeColor: color
46
+ })
47
+ })
48
+ });
49
+ });
50
+
51
+ var css_container = "ProgressIndicator-module_container__pW2gW flexBox-module_column__ezvMq";
52
+
53
+ const OpenCircle = (size, secondsPerSpin, color, stroke = 1.5, playing = !1, inset = !0, gradientId = "strokeFill") => {
54
+ const edgeRadius = 10 - stroke / 2, edgeStartX = 10 + edgeRadius * Math.cos(-.4), edgeStartY = 10 + edgeRadius * Math.sin(-.4), path = inset ? "M 17.371 6.886 C 17.776 7.843 18 8.895 18 10 C 18 14.418 14.418 18 10 18 C 5.582 18 2 14.418 2 10 C 2 5.582 5.582 2 10 2" : `M ${edgeStartX.toFixed(3)} ${edgeStartY.toFixed(3)} A ${edgeRadius.toFixed(3)} ${edgeRadius.toFixed(3)} 0 1 1 10 ${(10 - edgeRadius).toFixed(3)}`;
55
+ return jsxRuntime.jsxs(react.motion.svg, {
56
+ xmlns: "http://www.w3.org/2000/svg",
57
+ width: size,
58
+ height: size,
59
+ viewBox: "0 0 20 20",
60
+ role: "img",
61
+ "aria-label": "Loading spinner",
62
+ transition: {
63
+ ease: "linear",
64
+ repeatType: "loop",
65
+ repeat: playing ? Number.POSITIVE_INFINITY : 0,
66
+ duration: secondsPerSpin
67
+ },
68
+ animate: playing ? {
69
+ rotate: 360
70
+ } : {
71
+ rotate: 0
72
+ },
73
+ children: [ jsxRuntime.jsx("title", {
74
+ children: "Loading"
75
+ }), jsxRuntime.jsx("defs", {
76
+ children: jsxRuntime.jsxs("linearGradient", {
77
+ id: gradientId,
78
+ x1: "0",
79
+ y1: "0",
80
+ x2: "20",
81
+ y2: "0",
82
+ gradientUnits: "userSpaceOnUse",
83
+ children: [ jsxRuntime.jsx("stop", {
84
+ offset: "0%",
85
+ stopColor: color,
86
+ stopOpacity: 1
87
+ }), jsxRuntime.jsx("stop", {
88
+ offset: "50%",
89
+ stopColor: color,
90
+ stopOpacity: 1
91
+ }), jsxRuntime.jsx("stop", {
92
+ offset: "100%",
93
+ stopColor: color,
94
+ stopOpacity: 0
95
+ }) ]
96
+ })
97
+ }), jsxRuntime.jsx(react.motion.path, {
98
+ d: path,
99
+ fill: "transparent",
100
+ strokeWidth: stroke,
101
+ stroke: `url(#${gradientId})`
102
+ }) ]
103
+ });
104
+ };
105
+
106
+ exports.DoneCheck = DoneCheck, exports.ProgressIndicator = function(props) {
107
+ const theme = hooks_useTheme.useTheme(), {size: size = 20, inset: inset = !0, secondsPerSpin: secondsPerSpin = 1, show: show = !1, color: color = theme.current.colors["core-icon-primary"], stroke: stroke = 1.5, inline: inline = !1, duration: duration, didStart: didStart = () => null, didStop: didStop = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "size", "inset", "secondsPerSpin", "show", "color", "stroke", "inline", "duration", "didStart", "didStop" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [playing, setPlaying] = React.useState(show), gradientId = React.useId().replace(/:/g, ""), timer = React.useRef(null);
108
+ React.useEffect(() => (show ? (setPlaying(!0), didStart(), duration && (timer.current = setTimeout(() => {
109
+ setPlaying(!1), didStop();
110
+ }, 1e3 * duration))) : (setPlaying(!1), didStop()), () => {
111
+ (null == timer ? void 0 : timer.current) && clearTimeout(timer.current);
112
+ }), [ show, didStart, didStop, duration ]);
113
+ const cssVars = React.useMemo(() => ({
114
+ "--pi-position": inline ? "relative" : "absolute",
115
+ "--pi-inset": inline ? "unset" : "0",
116
+ "--pi-icon-size": `${null != size ? size : 0}px`,
117
+ "--pi-display": inline ? "inline-flex" : "flex"
118
+ }), [ inline, size ]), openCircle = React.useMemo(() => OpenCircle(size, secondsPerSpin, color, stroke, playing, inset, gradientId), [ size, secondsPerSpin, color, stroke, playing, inset, gradientId ]);
119
+ return jsxRuntime.jsx(react.AnimatePresence, {
120
+ initial: !0,
121
+ children: show && jsxRuntime.jsx(react.motion.div, Object.assign({
122
+ id: divId,
123
+ className: `${css_container}${divClass}`,
124
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
125
+ initial: {
126
+ opacity: 0
127
+ },
128
+ animate: {
129
+ opacity: 1
130
+ },
131
+ exit: {
132
+ opacity: 0
133
+ }
134
+ }, rest, {
135
+ children: openCircle
136
+ }))
137
+ });
138
+ };
@@ -3,9 +3,9 @@
3
3
 
4
4
  var jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
5
5
 
6
- require("../theme/colors.js"), require("./tslib.es6-C8dZW5nY.js"), require("../hooks/useWindow.js");
6
+ require("../theme/colors.js"), require("./tslib.es6-CzpRaW14.js"), require("../hooks/useWindow.js");
7
7
 
8
- var Button = require("./Button-B1qbfQgN.js"), FileList = require("./FileList-D5_igVaC.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
8
+ var Button = require("./Button-CTsHZBEB.js"), FileList = require("./FileList-CDcfKIV6.js"), css = {
9
9
  wrapperBg: "PromptInput-module_wrapperBg__zabZq flexBox-module_columnStart__C7P44",
10
10
  bgRotate: "PromptInput-module_bgRotate__Um720",
11
11
  textareaWrapper: "PromptInput-module_textareaWrapper__KusiV flexBox-module_columnStart__C7P44",
@@ -19,8 +19,6 @@ var Button = require("./Button-B1qbfQgN.js"), FileList = require("./FileList-D5_
19
19
  l: "PromptInput-module_l__TlceW type-module_body-l-regular__lOYbg"
20
20
  };
21
21
 
22
- styleInject_es.styleInject('.flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.PromptInput-module_wrapperBg__zabZq {\n\tposition: relative;\n\t--border-angle: 0turn;\n\t--conic-gradient-dark: conic-gradient(\n\t\tfrom var(--border-angle),\n\t\tvar(--core-text-special) 0deg,\n\t\tvar(--core-text-special) 45deg,\n\t\tvar(--core-text-special) 90deg,\n\t\tvar(--array-magenta-label) 135deg,\n\t\tvar(--array-magenta-label) 180deg,\n\t\tvar(--array-magenta-label) 225deg,\n\t\tvar(--array-land) 270deg,\n\t\tvar(--array-land) 315deg,\n\t\tvar(--array-land) 360deg\n\t);\n\t--conic-gradient-light: conic-gradient(\n\t\tfrom var(--border-angle),\n\t\tvar(--core-text-special) 0deg,\n\t\tvar(--core-text-special) 45deg,\n\t\tvar(--core-text-special) 90deg,\n\t\tvar(--array-magenta-label) 135deg,\n\t\tvar(--array-magenta-label) 180deg,\n\t\tvar(--array-magenta-label) 225deg,\n\t\tvar(--array-land-label) 270deg,\n\t\tvar(--array-land-label) 315deg,\n\t\tvar(--array-land-label) 360deg\n\t);\n\tz-index: 0;\n\theight: auto;\n\tmax-height: var(--prompt-max-height);\n\twidth: 100%;\n\tborder-radius: var(--prompt-border-radius);\n\toverflow: hidden;\n\tpadding: var(--prompt-border-width) !important;\n\tbackground: var(--prompt-border-color);\n\tanimation: PromptInput-module_bgRotate__Um720 3s linear infinite;\n\tanimation-play-state: var(--prompt-state);\n\ttransition: background var(--motion-water-duration) var(--motion-water) 0s;\n}\n\n@property --border-angle {\n\tsyntax: "<angle>";\n\tinherits: false;\n\tinitial-value: 0turn;\n}\n\n@keyframes PromptInput-module_bgRotate__Um720 {\n\t100% {\n\t\t--border-angle: 1turn;\n\t}\n}\n\n.PromptInput-module_textareaWrapper__KusiV {\n\talign-items: flex-start;\n\twidth: 100%;\n\theight: min-content;\n\tmax-height: 400px;\n\toverflow: hidden;\n\toverflow-y: auto;\n\tborder-radius: var(--prompt-inner-border-radius);\n\tbackground: var(--core-surface-secondary);\n}\n\n.PromptInput-module_attachments__rqgY1 {\n\tpadding: 16px 16px 0 16px !important;\n\twidth: 100%;\n}\n\n.PromptInput-module_clear__MFroM {\n\tpadding: 12px 8px 0 0 !important;\n\tdisplay: var(--prompt-clear) !important;\n}\n\n.PromptInput-module_buttonBar__X8LDe {\n\tpadding: 8px 16px 16px 16px !important;\n\twidth: 100%;\n\tcursor: text;\n}\n\n.PromptInput-module_toolBar__GBvPT {\n\tflex: 1;\n\tgap: 8px;\n}\n\n.PromptInput-module_textarea__e4Kxn {\n\tpadding: 16px !important;\n\tbox-sizing: border-box;\n\tfield-sizing: content;\n\twidth: 100%;\n\tresize: none;\n\tborder: 0;\n\toutline: none;\n\tcolor: var(--core-text-primary);\n\tbackground: transparent;\n\tborder-radius: var(--prompt-border-radius);\n\t&::placeholder {\n\t\tcolor: var(--core-text-disabled);\n\t}\n}\n\n.PromptInput-module_s__ivyC9 {\n}\n\n.PromptInput-module_m__LFHvW {\n}\n\n.PromptInput-module_l__TlceW {\n}\n');
23
-
24
22
  const PromptInputBase = React.forwardRef((props, ref) => {
25
23
  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} = hooks_useTheme.useTheme(), [isFocused, setIsFocused] = React.useState(null != focused && focused), [isWorking, setIsWorking] = React.useState(null != working && working), [isStopEnabled, setIsStopEnabled] = React.useState(stopEnabled), [textValue, setTextValue] = React.useState(value), textAreaRef = React.useRef(null), handleFocus = React.useCallback(() => {
26
24
  var _a, _b;