@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.
- package/dist/cjs/chunks/{AudioBubble-Dh2IlYW0.js → AudioBubble-D6EdVxCx.js} +4 -3
- package/dist/cjs/chunks/{Avatar-WcBAu25_.js → Avatar-C8Y8QA6W.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-eUkVdeTf.js → AvatarGroup-BJGROy0D.js} +1 -1
- package/dist/cjs/chunks/{Badge-4tBynWZe.js → Badge-D0jOqpGM.js} +1 -1
- package/dist/cjs/chunks/{Button-QJ5lsSAz.js → Button-CSyenByA.js} +1 -1
- package/dist/cjs/chunks/{ButtonBar-DcpvT1vD.js → ButtonBar-D6nO_KLU.js} +1 -1
- package/dist/cjs/chunks/{Camera-iDyPLq9h.js → Camera-C8ug84NJ.js} +5 -4
- package/dist/cjs/chunks/{CheckBox-CmZJd8u2.js → CheckBox-rALyYaSt.js} +1 -1
- package/dist/cjs/chunks/{Chip-Bd1bSYeC.js → Chip-BwxjTPRM.js} +1 -1
- package/dist/cjs/chunks/{DivInput-BY9pQ6ty.js → DivInput-BRhOr7b5.js} +1 -1
- package/dist/cjs/chunks/{Dot-BeWDLajy.js → Dot-DLk45OlQ.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-DzY5wTco.js → DrggablePanel-Ch24xWZu.js} +4 -3
- package/dist/cjs/chunks/{DropDown-Cn_nX8u7.js → DropDown-BbhZnN_w.js} +1 -1
- package/dist/cjs/chunks/{ErrorSummary-D-0uVwyV.js → ErrorSummary-CI6hUFwD.js} +4 -3
- package/dist/cjs/chunks/{FileIcon-JfY2AYqG.js → FileIcon-CfjasX-r.js} +5 -3
- package/dist/cjs/chunks/{FileList-Dc1nfpR2.js → FileList-B93Xcxz4.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-B5Pi0-aJ.js → FlexDiv-rfXrDSOq.js} +1 -1
- package/dist/cjs/chunks/{Grouper-DKZkTlow.js → Grouper-DSrE9R-U.js} +4 -3
- package/dist/cjs/chunks/{Icon-BVYVJp9J.js → Icon-CRxH8X5b.js} +4 -3
- package/dist/cjs/chunks/{IconButton-CP1Wsvsx.js → IconButton-KFtalJ6A.js} +1 -1
- package/dist/cjs/chunks/{IndexedDB-CeiVT55Z.js → IndexedDB-BFj53nVB.js} +1 -1
- package/dist/cjs/chunks/{Label-DIs1rOey.js → Label-BHP_DdP0.js} +1 -1
- package/dist/cjs/chunks/{Level-3yxetsco.js → Level-BWOIrzAv.js} +1 -1
- package/dist/cjs/chunks/{Modal-CjpQdoOe.js → Modal-BEKrk6zT.js} +1 -1
- package/dist/cjs/chunks/ModalController-DQJ-Vr6w.js +80 -0
- package/dist/cjs/chunks/{Overlay-DRpHYZek.js → Overlay-CgD0_kQK.js} +1 -1
- package/dist/cjs/chunks/{Pager-ChnTKwml.js → Pager-CjMnXBqh.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-CFiAU-aF.js → ProgressIndicator-V-orBNdI.js} +4 -3
- package/dist/cjs/chunks/{PromptInput-BFWR0TaP.js → PromptInput-DK1pGnIm.js} +42 -36
- package/dist/cjs/chunks/{RadioButton-Bi-FP41j.js → RadioButton-DOv8YC-8.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-JHPKMCoX.js → RadioButtonList-BC0PaUB2.js} +1 -1
- package/dist/cjs/chunks/{Slider-D97ws1Cl.js → Slider-D4zQ-4aq.js} +10 -1
- package/dist/cjs/chunks/{Spacer-DvI2M1wZ.js → Spacer-CdIj0JdL.js} +1 -1
- package/dist/cjs/chunks/{Switch-DDSSprb7.js → Switch-BcyjA09W.js} +1 -1
- package/dist/cjs/chunks/{TabBar-TllSeSzb.js → TabBar-BzfXUqQ7.js} +38 -17
- package/dist/cjs/chunks/{TextArea-DjZRDixt.js → TextArea-Aqo_XxW3.js} +1 -1
- package/dist/cjs/chunks/{TextField-CKA3K0AN.js → TextField-D9cVqxeH.js} +5 -4
- package/dist/cjs/chunks/{Tip-BdGXN-TQ.js → Tip-6p-WETDg.js} +1 -1
- package/dist/cjs/chunks/{Toast-COrDS_50.js → Toast-D2RPpe4w.js} +5 -4
- package/dist/cjs/chunks/{ToggleButton-hoOMzBZc.js → ToggleButton-DIO-mLzn.js} +4 -3
- package/dist/cjs/chunks/{UploadArea-ClG8ZgRZ.js → UploadArea-dLHkxZaJ.js} +1 -1
- package/dist/cjs/chunks/{WSConnection-Brxc2hEv.js → WSConnection-DUtc0Zek.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-eWP4lueC.js → WebRTCConnection-DOegM5k_.js} +1 -1
- package/dist/cjs/chunks/{localDBStore-SS_r0C6F.js → localDBStore-BE1Spdvk.js} +1 -1
- package/dist/cjs/chunks/{microphoneStore-DM_8bhFr.js → microphoneStore-BQttBRKb.js} +1 -1
- package/dist/cjs/chunks/{misc-4xyXRU2K.js → misc-CktV9aap.js} +1 -1
- package/dist/cjs/chunks/{sseStore-Ag-UnuQq.js → sseStore-CUctZwDm.js} +2 -2
- package/dist/cjs/chunks/{uploads-worker-CI-SZptI.js → uploads-worker-B-7wl30J.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-DR2hc4ct.js → uploadsStore-BhvyVpxk.js} +2 -2
- package/dist/cjs/chunks/{volumeStore-DtTHf-9_.js → volumeStore-CPxgI64S.js} +4 -5
- package/dist/cjs/chunks/{webRTCStore-DWWn7k-0.js → webRTCStore-M1HXHN92.js} +1 -1
- package/dist/cjs/chunks/{windowStore-BUo9Du_e.js → windowStore-BeMPlP7X.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +6 -4
- package/dist/cjs/components/Avatar/index.js +3 -3
- package/dist/cjs/components/AvatarGroup/index.js +3 -3
- package/dist/cjs/components/Badge/index.js +2 -2
- package/dist/cjs/components/Button/index.js +9 -7
- package/dist/cjs/components/ButtonBar/index.js +6 -4
- package/dist/cjs/components/Camera/index.js +7 -5
- package/dist/cjs/components/CheckBox/index.js +6 -4
- package/dist/cjs/components/Chip/index.js +7 -5
- package/dist/cjs/components/DivInput/index.js +3 -3
- package/dist/cjs/components/Dot/index.js +2 -2
- package/dist/cjs/components/DraggablePanel/index.js +5 -3
- package/dist/cjs/components/DropDown/index.js +6 -4
- package/dist/cjs/components/ErrorSummary/index.js +5 -3
- package/dist/cjs/components/FileIcon/index.js +5 -3
- package/dist/cjs/components/FileList/index.js +7 -5
- package/dist/cjs/components/FlexDiv/index.js +2 -2
- package/dist/cjs/components/Grouper/index.js +7 -5
- package/dist/cjs/components/Icon/index.js +5 -3
- package/dist/cjs/components/IconButton/index.js +8 -6
- package/dist/cjs/components/Label/index.js +3 -3
- package/dist/cjs/components/Level/index.js +3 -3
- package/dist/cjs/components/Modal/index.js +10 -8
- package/dist/cjs/components/ModalController/index.js +6 -4
- package/dist/cjs/components/Overlay/index.js +2 -2
- package/dist/cjs/components/Pager/index.js +3 -3
- package/dist/cjs/components/Progress/index.js +5 -3
- package/dist/cjs/components/PromptInput/index.js +9 -7
- package/dist/cjs/components/RadioButton/index.js +6 -4
- package/dist/cjs/components/RadioButtonList/index.js +7 -5
- package/dist/cjs/components/Slider/index.js +7 -4
- package/dist/cjs/components/Spacer/index.js +2 -2
- package/dist/cjs/components/Switch/index.js +2 -2
- package/dist/cjs/components/TabBar/index.js +8 -6
- package/dist/cjs/components/TextArea/index.js +9 -7
- package/dist/cjs/components/Textfield/index.js +9 -7
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +6 -4
- package/dist/cjs/components/ToggleButton/index.js +9 -7
- package/dist/cjs/components/UploadArea/index.js +11 -10
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +2 -2
- package/dist/cjs/hooks/useMdStreamBuffer.js +1 -1
- package/dist/cjs/hooks/useMicrophone.js +1 -1
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +3 -3
- package/dist/cjs/index.js +8 -9
- package/dist/cjs/stores/LocalDB.js +3 -3
- package/dist/cjs/stores/SSE.js +2 -2
- package/dist/cjs/stores/WS.js +2 -2
- package/dist/cjs/stores/WebRTC.js +2 -2
- package/dist/cjs/stores/microphone.js +2 -2
- package/dist/cjs/stores/modal.js +1 -1
- package/dist/cjs/stores/tip.js +1 -1
- package/dist/cjs/stores/toast.js +1 -1
- package/dist/cjs/stores/uploads.js +2 -2
- package/dist/cjs/stores/volume.js +2 -2
- package/dist/cjs/stores/window.js +2 -2
- package/dist/cjs/stores.js +31 -31
- package/dist/cjs/utils/index.js +2 -2
- package/dist/cjs/utils/objects/index.js +2 -2
- package/dist/cjs/workers/uploads/uploads.js +2 -2
- package/dist/esm/chunks/{AudioBubble-cYlxxQ7c.mjs → AudioBubble-BudIMUsf.mjs} +9 -3
- package/dist/esm/chunks/{Avatar-D84wF2os.mjs → Avatar-Bk8kdTEa.mjs} +2 -2
- package/dist/esm/chunks/{AvatarGroup-DiwfbRxH.mjs → AvatarGroup-CRixAHW5.mjs} +2 -2
- package/dist/esm/chunks/{Badge-DuUb5-80.mjs → Badge-DHvo2-ZQ.mjs} +1 -1
- package/dist/esm/chunks/{Button-BIgwWrPJ.mjs → Button-v92U2QVV.mjs} +6 -6
- package/dist/esm/chunks/{ButtonBar-vNvnvw7u.mjs → ButtonBar-Bn4GhpbO.mjs} +3 -3
- package/dist/esm/chunks/{Camera-BMwkTJPq.mjs → Camera-Cvp_kb-A.mjs} +11 -5
- package/dist/esm/chunks/{CheckBox-Cpoxy8w_.mjs → CheckBox-CUbeBXgg.mjs} +3 -3
- package/dist/esm/chunks/{Chip-BayNVv7N.mjs → Chip-HGLXF8JO.mjs} +4 -4
- package/dist/esm/chunks/{DivInput-CWRUxy1y.mjs → DivInput-CZ3PVteW.mjs} +2 -2
- package/dist/esm/chunks/{Dot-v_kcIWV2.mjs → Dot-B6Q97aIp.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-yEeGeE1w.mjs → DrggablePanel-DLltuMUc.mjs} +8 -2
- package/dist/esm/chunks/{DropDown-QQhwAg_J.mjs → DropDown-DqVsJwO3.mjs} +3 -3
- package/dist/esm/chunks/{ErrorSummary-DzIZMIll.mjs → ErrorSummary-CCTJpTqA.mjs} +8 -2
- package/dist/esm/chunks/{FileIcon-6UlkbKzk.mjs → FileIcon-DnEohsNX.mjs} +8 -2
- package/dist/esm/chunks/{FileList-vMiGJByw.mjs → FileList-CnuT4Llg.mjs} +5 -5
- package/dist/esm/chunks/{FlexDiv-B1m7aY04.mjs → FlexDiv-DGEzQRcq.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-BDrAnfDF.mjs → Grouper-BoGryrnc.mjs} +9 -3
- package/dist/esm/chunks/{Icon-D4A6_c4x.mjs → Icon-CbDAKN_S.mjs} +8 -2
- package/dist/esm/chunks/{IconButton-B_W-aOsB.mjs → IconButton-nOcdRqR3.mjs} +5 -5
- package/dist/esm/chunks/{IndexedDB-CTqfKmp1.mjs → IndexedDB-Bqjric8V.mjs} +1 -1
- package/dist/esm/chunks/{Label-I75yz3gq.mjs → Label-BlvreqNJ.mjs} +2 -2
- package/dist/esm/chunks/{Level-DgczkKBr.mjs → Level-COXHoBs6.mjs} +3 -3
- package/dist/esm/chunks/{Modal-CwwyijaO.mjs → Modal-CqBytyja.mjs} +5 -5
- package/dist/esm/chunks/ModalController-6Gc8QRxx.mjs +91 -0
- package/dist/esm/chunks/{Overlay-C-yori3-.mjs → Overlay-iKgSkUKP.mjs} +1 -1
- package/dist/esm/chunks/{Pager-BEtfyKtq.mjs → Pager-XgsZBzcg.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-BV0ginXb.mjs → ProgressIndicator-BWrcdWvF.mjs} +8 -2
- package/dist/esm/chunks/{PromptInput-Cn5fRYap.mjs → PromptInput-DbT3sVeA.mjs} +46 -37
- package/dist/esm/chunks/{RadioButton-DWlg6ldv.mjs → RadioButton-DUzPaLKa.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-D9FdlhPL.mjs → RadioButtonList-NjEGYpj4.mjs} +3 -3
- package/dist/esm/chunks/{Slider-B2WZkZSg.mjs → Slider-Bvnhqzjx.mjs} +14 -4
- package/dist/esm/chunks/{Spacer-7Oj0SlD0.mjs → Spacer-B2JAN7e8.mjs} +1 -1
- package/dist/esm/chunks/{Switch-DRhnznnO.mjs → Switch-CspvY_DQ.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-D6VR71ye.mjs → TabBar-BlvOUGJx.mjs} +42 -18
- package/dist/esm/chunks/{TextArea-CkB5rJjI.mjs → TextArea-BpMTGopK.mjs} +2 -2
- package/dist/esm/chunks/{TextField-BIXmkjEz.mjs → TextField-DELrBLOa.mjs} +11 -5
- package/dist/esm/chunks/{Tip-CTdrwLky.mjs → Tip-DBVeB0Zs.mjs} +2 -2
- package/dist/esm/chunks/{Toast-8bUziIgh.mjs → Toast-HU8Pgwsr.mjs} +10 -4
- package/dist/esm/chunks/{ToggleButton-BOFITa8_.mjs → ToggleButton-CGpBWhaX.mjs} +5 -4
- package/dist/esm/chunks/{UploadArea-DE2ccDVx.mjs → UploadArea-DdV_ILIU.mjs} +4 -4
- package/dist/esm/chunks/{WSConnection-CHudrD62.mjs → WSConnection-eStD8i-1.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-DQbNa7Z9.mjs → WebRTCConnection-BaPHQ_C4.mjs} +1 -1
- package/dist/esm/chunks/{localDBStore-CaYiqITY.mjs → localDBStore-NpiMrXsA.mjs} +2 -2
- package/dist/esm/chunks/{microphoneStore-COEGtgyX.mjs → microphoneStore-uYs2NQQx.mjs} +1 -1
- package/dist/esm/chunks/{misc-2MIIqzsX.mjs → misc-BQH7I5Zj.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-nW9CMec_.mjs → sseStore-ueYoyFeB.mjs} +2 -2
- package/dist/esm/chunks/{uploads-worker-CMomtRvm.mjs → uploads-worker-CFPGExfT.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-CsfpSOTS.mjs → uploadsStore-DNalSMtC.mjs} +1 -1
- package/dist/esm/chunks/{volumeStore-TSYPqbHx.mjs → volumeStore-C0iU07fK.mjs} +4 -5
- package/dist/esm/chunks/{webRTCStore-CVCDJzj5.mjs → webRTCStore-Ck8TCzr_.mjs} +2 -2
- package/dist/esm/chunks/{windowStore-BvejIR82.mjs → windowStore-DcYPAWds.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +14 -4
- package/dist/esm/components/Avatar/index.mjs +3 -3
- package/dist/esm/components/AvatarGroup/index.mjs +4 -4
- package/dist/esm/components/Badge/index.mjs +2 -2
- package/dist/esm/components/Button/index.mjs +18 -8
- package/dist/esm/components/ButtonBar/index.mjs +14 -4
- package/dist/esm/components/Camera/index.mjs +16 -6
- package/dist/esm/components/CheckBox/index.mjs +14 -4
- package/dist/esm/components/Chip/index.mjs +15 -5
- package/dist/esm/components/DivInput/index.mjs +3 -3
- package/dist/esm/components/Dot/index.mjs +2 -2
- package/dist/esm/components/DraggablePanel/index.mjs +13 -3
- package/dist/esm/components/DropDown/index.mjs +14 -4
- package/dist/esm/components/ErrorSummary/index.mjs +13 -3
- package/dist/esm/components/FileIcon/index.mjs +13 -3
- package/dist/esm/components/FileList/index.mjs +16 -6
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +15 -5
- package/dist/esm/components/Icon/index.mjs +14 -4
- package/dist/esm/components/IconButton/index.mjs +17 -7
- package/dist/esm/components/Label/index.mjs +3 -3
- package/dist/esm/components/Level/index.mjs +4 -4
- package/dist/esm/components/Modal/index.mjs +20 -10
- package/dist/esm/components/ModalController/index.mjs +14 -6
- package/dist/esm/components/Overlay/index.mjs +2 -2
- package/dist/esm/components/Pager/index.mjs +3 -3
- package/dist/esm/components/Progress/index.mjs +14 -4
- package/dist/esm/components/PromptInput/index.mjs +22 -12
- package/dist/esm/components/RadioButton/index.mjs +14 -4
- package/dist/esm/components/RadioButtonList/index.mjs +15 -5
- package/dist/esm/components/Slider/index.mjs +19 -5
- package/dist/esm/components/Spacer/index.mjs +2 -2
- package/dist/esm/components/Switch/index.mjs +2 -2
- package/dist/esm/components/TabBar/index.mjs +19 -9
- package/dist/esm/components/TextArea/index.mjs +19 -9
- package/dist/esm/components/Textfield/index.mjs +20 -10
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +15 -5
- package/dist/esm/components/ToggleButton/index.mjs +19 -9
- package/dist/esm/components/UploadArea/index.mjs +19 -9
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +5 -5
- package/dist/esm/hooks/useMdStreamBuffer.mjs +2 -2
- package/dist/esm/hooks/useMicrophone.mjs +1 -1
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +6 -6
- package/dist/esm/index.mjs +53 -53
- package/dist/esm/stores/LocalDB.mjs +3 -3
- package/dist/esm/stores/SSE.mjs +3 -3
- package/dist/esm/stores/WS.mjs +2 -2
- package/dist/esm/stores/WebRTC.mjs +3 -3
- package/dist/esm/stores/microphone.mjs +2 -2
- package/dist/esm/stores/modal.mjs +1 -1
- package/dist/esm/stores/tip.mjs +1 -1
- package/dist/esm/stores/toast.mjs +1 -1
- package/dist/esm/stores/uploads.mjs +3 -3
- package/dist/esm/stores/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +17 -17
- package/dist/esm/utils/index.mjs +10 -10
- package/dist/esm/utils/objects/index.mjs +7 -7
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +46 -3
- package/dist/types/components/PromptInput/PromptInput.d.ts +10 -2
- package/dist/types/components/PromptInput/_types.d.ts +5 -1
- package/dist/types/components/TabBar/_types.d.ts +5 -0
- package/dist/types/components/ToggleButton/_types.d.ts +1 -0
- package/dist/types/stores/volume/_types.d.ts +1 -1
- package/dist/types/stores/volume/volumeStore.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/chunks/ModalController-Cp2PXOOS.js +0 -68
- package/dist/esm/chunks/ModalController-IyB9lDRa.mjs +0 -76
- /package/dist/cjs/chunks/{MdStreamBuffer-BudWFoNw.js → MdStreamBuffer-CQGZtTLN.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-DfjLAlOG.js → SSEConnection-BqitbvAq.js} +0 -0
- /package/dist/cjs/chunks/{_types-DMyBIF8s.js → _types-CnvV2yMQ.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-BxPvUj4h.js → audioVisualizer-i41gzZXM.js} +0 -0
- /package/dist/cjs/chunks/{colors-4n0sNFRA.js → colors-BlSE7Sf2.js} +0 -0
- /package/dist/cjs/chunks/{debounce-_IK-La-Z.js → debounce-C7m-uQW2.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-CFsfK3ba.js → modalStore-BrwOUMH_.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-C0ZHzH_T.js → sharedTypes-Cep5dDpY.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-dqD9-c30.js → tipStore-BXKWR6IE.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-BN1N7WXv.js → toastStore-Y9JmFP0o.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-DsF7Wv4Y.js → tslib.es6-yslq87rf.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-CoQWQwRL.mjs → MdStreamBuffer-BF5ZQeUD.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-iFKOV9Uo.mjs → SSEConnection-DNA5yBWy.mjs} +0 -0
- /package/dist/esm/chunks/{_types-DrNviSG6.mjs → _types-DR4jXucA.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-BsmpLZyK.mjs → audioVisualizer-CAET7dc9.mjs} +0 -0
- /package/dist/esm/chunks/{colors-BAATtfbL.mjs → colors-BHYMt294.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-CYBH5qXQ.mjs → debounce-DpPYyz3x.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-DmaeMv7z.mjs → modalStore-DbxIsSpU.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-CyrInj1b.mjs → sharedTypes-DoNQkNSM.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-B_MUZfr2.mjs → tipStore-CmyIJWe7.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-DAprlBVj.mjs → toastStore-BYMHSiu2.mjs} +0 -0
- /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-
|
|
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-
|
|
22
|
+
import { B as Button } from "./Button-v92U2QVV.mjs";
|
|
15
23
|
|
|
16
|
-
import { F as FileList } from "./FileList-
|
|
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,
|
|
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 ]),
|
|
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 (
|
|
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),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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(),
|
|
66
|
-
}, [ handleFocus
|
|
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
|
|
78
|
+
return working && borderAnimate ? radial : isFocused ? null != borderColorOn ? borderColorOn : radial : null != borderColor ? borderColor : radial;
|
|
70
79
|
}
|
|
71
|
-
return "solid" === borderStyle ?
|
|
72
|
-
}, [ borderStyle, isFocused, borderColorOn, borderColor,
|
|
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
|
-
|
|
78
|
-
|
|
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":
|
|
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
|
-
}), [
|
|
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:
|
|
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:
|
|
141
|
-
iconLeft:
|
|
142
|
-
iconSize:
|
|
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: !
|
|
146
|
-
working:
|
|
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-
|
|
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-
|
|
8
|
+
import { s as setStyle } from "./misc-BQH7I5Zj.mjs";
|
|
9
9
|
|
|
10
|
-
import { I as Icon } from "./Icon-
|
|
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-
|
|
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-
|
|
8
|
+
import { s as setStyle } from "./misc-BQH7I5Zj.mjs";
|
|
9
9
|
|
|
10
|
-
import { R as RadioButton } from "./RadioButton-
|
|
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-
|
|
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
|
|
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
|
|
16
|
+
import "./microphoneStore-uYs2NQQx.mjs";
|
|
11
17
|
|
|
12
|
-
import
|
|
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-
|
|
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-
|
|
22
|
+
import { B as Badge } from "./Badge-DHvo2-ZQ.mjs";
|
|
15
23
|
|
|
16
|
-
import { I as Icon } from "./Icon-
|
|
24
|
+
import { I as Icon } from "./Icon-CbDAKN_S.mjs";
|
|
17
25
|
|
|
18
|
-
import { I as IconButton } from "./IconButton-
|
|
26
|
+
import { I as IconButton } from "./IconButton-nOcdRqR3.mjs";
|
|
19
27
|
|
|
20
|
-
import { T as ToolTipType } from "./sharedTypes-
|
|
28
|
+
import { T as ToolTipType } from "./sharedTypes-DoNQkNSM.mjs";
|
|
21
29
|
|
|
22
|
-
var
|
|
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
|
|
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
|
|
95
|
-
}), [ tabGap, height, width, border,
|
|
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: `${
|
|
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:
|
|
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-
|
|
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:
|
|
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:
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
24
|
+
import { B as Button } from "./Button-v92U2QVV.mjs";
|
|
19
25
|
|
|
20
|
-
import { I as Icon } from "./Icon-
|
|
26
|
+
import { I as Icon } from "./Icon-CbDAKN_S.mjs";
|
|
21
27
|
|
|
22
|
-
import { I as IconButton } from "./IconButton-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
24
|
+
import { I as Icon } from "./Icon-CbDAKN_S.mjs";
|
|
19
25
|
|
|
20
|
-
import { P as ProgressIndicator } from "./ProgressIndicator-
|
|
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-
|
|
5
|
+
import { I as IconButton } from "./IconButton-nOcdRqR3.mjs";
|
|
6
6
|
|
|
7
|
-
import { L as Label } from "./Label-
|
|
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-
|
|
6
|
+
import { s as setStyle, a as accessibleKeyDown } from "./misc-BQH7I5Zj.mjs";
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { F as FileList } from "./FileList-CnuT4Llg.mjs";
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { I as Icon } from "./Icon-CbDAKN_S.mjs";
|
|
11
11
|
|
|
12
|
-
import {
|
|
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, _ as __rest } from "./tslib.es6-
|
|
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-
|
|
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,8 +1,8 @@
|
|
|
1
1
|
import { create } from "zustand";
|
|
2
2
|
|
|
3
|
-
import "./tslib.es6-
|
|
3
|
+
import "./tslib.es6-75ZdAmtm.mjs";
|
|
4
4
|
|
|
5
|
-
import { S as SSEConnection } from "./SSEConnection-
|
|
5
|
+
import { S as SSEConnection } from "./SSEConnection-DNA5yBWy.mjs";
|
|
6
6
|
|
|
7
7
|
const useSSEStore = create((set, get) => ({
|
|
8
8
|
connections: [],
|