@apple-pie/slice 0.1.52 → 0.1.53
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-Di2Qyjer.js → AudioBubble-BSceAgq8.js} +5 -4
- package/dist/cjs/chunks/{Avatar-L6s2-x0u.js → Avatar-LhoIzZYs.js} +2 -2
- package/dist/cjs/chunks/{AvatarGroup-DNGFPl1j.js → AvatarGroup-6rYDbrq0.js} +3 -3
- package/dist/cjs/chunks/{Badge-CWASZI0E.js → Badge-DNzsgQk9.js} +1 -1
- package/dist/cjs/chunks/{Button-kzWt5lcL.js → Button-GrPLJIBP.js} +5 -5
- package/dist/cjs/chunks/{ButtonBar-BaFGN5AR.js → ButtonBar-Df0iGtC3.js} +2 -2
- package/dist/cjs/chunks/{Camera-CBZmVUf6.js → Camera-BN2emgEV.js} +7 -6
- package/dist/cjs/chunks/{CheckBox-D8e57FqA.js → CheckBox-DOTWw9VH.js} +1 -1
- package/dist/cjs/chunks/{Chip-DCFtFPpu.js → Chip-BjzBZU6j.js} +2 -2
- package/dist/cjs/chunks/{DivInput-BbYo5dnn.js → DivInput-DXpi201k.js} +5 -5
- package/dist/cjs/chunks/{Dot-ByKZIcva.js → Dot-nWPzJqlj.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-EvnMMRh0.js → DrggablePanel-Bi4cmUh5.js} +21 -16
- package/dist/cjs/chunks/{DropDown-C-i2rIhH.js → DropDown-K6xOYkfl.js} +2 -2
- package/dist/cjs/chunks/{ErrorSummary-DLaE1duh.js → ErrorSummary-pWO_o2MN.js} +6 -5
- package/dist/cjs/chunks/{FileIcon-DqFMbhRF.js → FileIcon-BXmM4L3A.js} +5 -5
- package/dist/cjs/chunks/{FileList-C3KR7jHj.js → FileList-NDj9e_To.js} +2 -2
- package/dist/cjs/chunks/{FlexDiv-BPmDJlQe.js → FlexDiv-Dfp6NfR-.js} +1 -1
- package/dist/cjs/chunks/{Grouper-Bm013ATj.js → Grouper-DJP2JXUi.js} +5 -5
- package/dist/cjs/chunks/{Icon-CUbgmUeu.js → Icon-VcvTUkMA.js} +5 -4
- package/dist/cjs/chunks/{IconButton-BbgyyMjG.js → IconButton-Cz7iTVhO.js} +3 -3
- package/dist/cjs/chunks/{IndexedDB-DFVmvrQg.js → IndexedDB-D7TVb0pF.js} +8 -4
- package/dist/cjs/chunks/{Label-CDuN-9n3.js → Label-E7350HYG.js} +2 -2
- package/dist/cjs/chunks/{Level-vbDvflcO.js → Level-ZmAb4JQ9.js} +3 -3
- package/dist/cjs/chunks/{Modal-BS-9UkxV.js → Modal-BKZ9fgWF.js} +3 -2
- package/dist/cjs/chunks/{ModalController-B-m3OD5K.js → ModalController-CCcRXYUs.js} +3 -2
- package/dist/cjs/chunks/{Overlay-QprT1IaK.js → Overlay-B0jNgBu3.js} +2 -2
- package/dist/cjs/chunks/{Pager-7edBFop6.js → Pager-CwOhw4nE.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-Bi1UfJIW.js → ProgressIndicator--Ph78ZSe.js} +5 -4
- package/dist/cjs/chunks/{PromptInput-BHDK8fjX.js → PromptInput-8TqoRRtq.js} +13 -8
- package/dist/cjs/chunks/{RadioButton-SqAqjkcO.js → RadioButton-oZxMZCpd.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-Bk4zdfNK.js → RadioButtonList-C0zngoe4.js} +1 -1
- package/dist/cjs/chunks/{Slider-CGXCa5hf.js → Slider-BfiaN55A.js} +5 -4
- package/dist/cjs/chunks/{Spacer-Cz634l5B.js → Spacer-D9SULpcV.js} +1 -1
- package/dist/cjs/chunks/{Switch-BWz76WjN.js → Switch-Bax_lPw4.js} +2 -2
- package/dist/cjs/chunks/{TabBar-BhV5XeiX.js → TabBar-C9NycMo8.js} +6 -5
- package/dist/cjs/chunks/{TextArea-Dc0MXEtY.js → TextArea-BSo1K02e.js} +5 -5
- package/dist/cjs/chunks/{TextField-l62uCubT.js → TextField-TpzwNrB3.js} +12 -7
- package/dist/cjs/chunks/{Tip-BBMqZlgV.js → Tip-CtobkAG3.js} +3 -3
- package/dist/cjs/chunks/{Toast-DNSA3BzO.js → Toast-BRvp6HeI.js} +6 -5
- package/dist/cjs/chunks/{ToggleButton-DclomTgT.js → ToggleButton-BGsKt1uz.js} +5 -5
- package/dist/cjs/chunks/{UploadArea-Bm674kMd.js → UploadArea-BVIOxAk0.js} +5 -5
- package/dist/cjs/chunks/{Video-Be2aIETB.js → Video-B9BWFeiN.js} +15 -15
- package/dist/cjs/chunks/{VideoController-BCTD_gZh.js → VideoController-D5J76aQJ.js} +8 -7
- package/dist/cjs/chunks/{WSConnection-pryKJWc6.js → WSConnection-BrwlAScO.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-C_GRUnIY.js → WebRTCConnection-nx-EhtdY.js} +1 -1
- package/dist/cjs/chunks/{browserChannelsStore-6ZSY_xb-.js → browserChannelsStore-C8C4qb7h.js} +2 -2
- package/dist/cjs/chunks/{localDBStore-DO3FanPt.js → localDBStore-DhruyXfz.js} +2 -2
- package/dist/cjs/chunks/magic-string.es-DXiBW6ft.js +724 -0
- package/dist/cjs/chunks/{microphoneStore-Ch3VVm4T.js → microphoneStore-axA5TgKM.js} +1 -1
- package/dist/cjs/chunks/{misc-BNlFh_4N.js → misc-B2oK3rIL.js} +1 -1
- package/dist/cjs/chunks/{sseStore-C_INE2Dq.js → sseStore-DaJgRKej.js} +3 -3
- package/dist/cjs/chunks/{uploads-worker-Bz66LCly.js → uploads-worker-B_12HqmC.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-blQX5Zny.js → uploadsStore-hFHe0RDh.js} +2 -2
- package/dist/cjs/chunks/{viewState-8FeRZBG3.js → viewState-BzvJJA68.js} +8 -7
- package/dist/cjs/chunks/{volumeStore-CA9Pdx5e.js → volumeStore-D64ziNWo.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-Bu7_nxNq.js → webRTCStore-XciamNCa.js} +2 -2
- package/dist/cjs/chunks/{windowStore-CYvn2_ma.js → windowStore-DRgyVg9e.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +6 -5
- 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 +12 -11
- package/dist/cjs/components/ButtonBar/index.js +9 -8
- package/dist/cjs/components/Camera/index.js +8 -7
- package/dist/cjs/components/CheckBox/index.js +6 -5
- package/dist/cjs/components/Chip/index.js +9 -9
- package/dist/cjs/components/DataTable/index.js +13 -13
- package/dist/cjs/components/DivInput/index.js +4 -3
- package/dist/cjs/components/Dot/index.js +2 -2
- package/dist/cjs/components/DraggablePanel/index.js +6 -5
- package/dist/cjs/components/DropDown/index.js +9 -8
- package/dist/cjs/components/ErrorSummary/index.js +6 -5
- package/dist/cjs/components/FileIcon/index.js +6 -5
- package/dist/cjs/components/FileList/index.js +7 -6
- package/dist/cjs/components/FlexDiv/index.js +2 -2
- package/dist/cjs/components/Grouper/index.js +7 -6
- package/dist/cjs/components/Icon/index.js +6 -5
- package/dist/cjs/components/IconButton/index.js +12 -10
- package/dist/cjs/components/Label/index.js +4 -3
- package/dist/cjs/components/Level/index.js +4 -4
- package/dist/cjs/components/Modal/index.js +12 -12
- package/dist/cjs/components/ModalController/index.js +6 -5
- 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 +6 -5
- package/dist/cjs/components/PromptInput/index.js +10 -9
- package/dist/cjs/components/RadioButton/index.js +6 -5
- package/dist/cjs/components/RadioButtonList/index.js +7 -6
- package/dist/cjs/components/Slider/index.js +6 -5
- 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 +9 -8
- package/dist/cjs/components/TextArea/index.js +12 -12
- package/dist/cjs/components/Textfield/index.js +10 -9
- package/dist/cjs/components/Tip/index.js +4 -3
- package/dist/cjs/components/Toast/index.js +7 -6
- package/dist/cjs/components/ToggleButton/index.js +12 -12
- package/dist/cjs/components/UploadArea/index.js +11 -10
- package/dist/cjs/components/Video/index.js +15 -13
- package/dist/cjs/components/VideoController/index.js +12 -12
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +2 -2
- package/dist/cjs/hooks/useClipboard.js +2 -2
- package/dist/cjs/hooks/useMdStreamBuffer.js +2 -2
- package/dist/cjs/hooks/useMicrophone.js +1 -1
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +4 -4
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/providers/themeServer.test.js +10574 -0
- package/dist/cjs/stores/LocalDB.js +3 -3
- package/dist/cjs/stores/SSE.js +3 -3
- package/dist/cjs/stores/WS.js +3 -3
- package/dist/cjs/stores/WebRTC.js +3 -3
- package/dist/cjs/stores/browserChannel.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/video.js +1 -1
- package/dist/cjs/stores/volume.js +2 -2
- package/dist/cjs/stores/window.js +2 -2
- package/dist/cjs/stores.js +15 -16
- package/dist/cjs/theme/corners.js +8 -8
- 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-BzlrPWjD.mjs → AudioBubble-CdmLKDhc.mjs} +8 -6
- package/dist/esm/chunks/{Avatar-DE7v6q5Z.mjs → Avatar-CblCPiom.mjs} +3 -3
- package/dist/esm/chunks/{AvatarGroup-B-E3eFeF.mjs → AvatarGroup-DgNd60cP.mjs} +4 -4
- package/dist/esm/chunks/{Badge-Cli_Ebpu.mjs → Badge-DIru-w6O.mjs} +1 -1
- package/dist/esm/chunks/{Button-BdxJ4wnE.mjs → Button-BYALDfuE.mjs} +12 -10
- package/dist/esm/chunks/{ButtonBar-LIzMkcAW.mjs → ButtonBar-DUDK-0Y4.mjs} +6 -4
- package/dist/esm/chunks/{Camera-DQIlyciR.mjs → Camera-BOgxXxRV.mjs} +11 -9
- package/dist/esm/chunks/{CheckBox-yuitT-oK.mjs → CheckBox-xLveo-Lt.mjs} +3 -3
- package/dist/esm/chunks/{Chip-BVWlgpZ4.mjs → Chip-COWEFzyh.mjs} +7 -5
- package/dist/esm/chunks/{DivInput-SeyX77Nb.mjs → DivInput-faLHJ1b9.mjs} +8 -6
- package/dist/esm/chunks/{Dot-Lyaimh03.mjs → Dot-CWVfujdC.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel--TPNDMpD.mjs → DrggablePanel-DCA9LeNq.mjs} +23 -17
- package/dist/esm/chunks/{DropDown-BmumgcHV.mjs → DropDown-C9fS9E6c.mjs} +6 -4
- package/dist/esm/chunks/{ErrorSummary-CPsaqCL-.mjs → ErrorSummary-D1WbASIx.mjs} +8 -6
- package/dist/esm/chunks/{FileIcon-Ckvm7EOw.mjs → FileIcon-CBNQckHc.mjs} +7 -5
- package/dist/esm/chunks/{FileList-D0b6RxKc.mjs → FileList-CK96tECm.mjs} +6 -6
- package/dist/esm/chunks/{FlexDiv-D7wQNKz0.mjs → FlexDiv-Cglvd-xT.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-BrjPf1Zm.mjs → Grouper-CivlTYk2.mjs} +8 -6
- package/dist/esm/chunks/{Icon-DGQB6Mfm.mjs → Icon-CGqm8lg7.mjs} +7 -5
- package/dist/esm/chunks/{IconButton-Wffb0Rhg.mjs → IconButton-LsCK8HUU.mjs} +9 -7
- package/dist/esm/chunks/{IndexedDB-Cwb-PZNm.mjs → IndexedDB-DNFNyOit.mjs} +8 -4
- package/dist/esm/chunks/{Label-BF7Bac6I.mjs → Label-CFUlmEKM.mjs} +5 -3
- package/dist/esm/chunks/{Level-DnWQ5mLH.mjs → Level-CAZN_Xt7.mjs} +7 -5
- package/dist/esm/chunks/{Modal-BuDVEntK.mjs → Modal-DAU9VnrP.mjs} +9 -6
- package/dist/esm/chunks/{ModalController-CWZBh7Dg.mjs → ModalController-axF12LqY.mjs} +6 -4
- package/dist/esm/chunks/{Overlay-DXAULyRd.mjs → Overlay-CYvVXNU5.mjs} +2 -2
- package/dist/esm/chunks/{Pager-Bjwlh0Vs.mjs → Pager-BvFWzAok.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-C8tli-Jg.mjs → ProgressIndicator-CNTW0t8s.mjs} +7 -5
- package/dist/esm/chunks/{PromptInput-JE3EkzEV.mjs → PromptInput-PJIXJMCp.mjs} +14 -10
- package/dist/esm/chunks/{RadioButton-BK37fGER.mjs → RadioButton-DipoEV9R.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-CPfE3YBM.mjs → RadioButtonList-CDysnTjd.mjs} +3 -3
- package/dist/esm/chunks/{Slider-D6nWSQ-A.mjs → Slider-BzX_jQ27.mjs} +8 -6
- package/dist/esm/chunks/{Spacer-CWY79s4p.mjs → Spacer-DJKkJpdX.mjs} +1 -1
- package/dist/esm/chunks/{Switch-De_cFgOS.mjs → Switch-C8FXGMlJ.mjs} +2 -2
- package/dist/esm/chunks/{TabBar-CCq8-TdA.mjs → TabBar-B_pwLZcy.mjs} +11 -9
- package/dist/esm/chunks/{TextArea-kAVb9Lpy.mjs → TextArea-BbveliHo.mjs} +8 -6
- package/dist/esm/chunks/{TextField-MxcxS6SE.mjs → TextField-D-680Ah3.mjs} +13 -9
- package/dist/esm/chunks/{Tip-CuRp-fki.mjs → Tip-IdoSsqpu.mjs} +6 -4
- package/dist/esm/chunks/{Toast-CvWVJwrM.mjs → Toast-DNN0M8ds.mjs} +9 -7
- package/dist/esm/chunks/{ToggleButton-DpR2FO_I.mjs → ToggleButton-BhRGIiQz.mjs} +6 -6
- package/dist/esm/chunks/{UploadArea-ChXIXxSg.mjs → UploadArea-BFEjUf7n.mjs} +10 -8
- package/dist/esm/chunks/{Video-D3FSIySJ.mjs → Video-DBF6un3N.mjs} +19 -19
- package/dist/esm/chunks/{VideoController-CS6eZwuf.mjs → VideoController-lNXxiYAp.mjs} +15 -11
- package/dist/esm/chunks/{WSConnection-DX-v8PDB.mjs → WSConnection-Bd3_THiB.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-KLpY6CZG.mjs → WebRTCConnection-DvF2ENaH.mjs} +1 -1
- package/dist/esm/chunks/{browserChannelsStore-BlUi1EOi.mjs → browserChannelsStore-Dkg2yF-s.mjs} +2 -2
- package/dist/esm/chunks/{localDBStore-Cqmkk2oq.mjs → localDBStore-DmM1xv6W.mjs} +3 -3
- package/dist/esm/chunks/magic-string.es-w54Wbyiz.mjs +722 -0
- package/dist/esm/chunks/{microphoneStore-CHjTUEL_.mjs → microphoneStore-B9HEjn8x.mjs} +1 -1
- package/dist/esm/chunks/{misc-GB29X0YR.mjs → misc-O5ZSVDP0.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-CsFtm_ph.mjs → sseStore-CWOB35p7.mjs} +3 -3
- package/dist/esm/chunks/{uploads-worker-DnuyqnvO.mjs → uploads-worker-C4I-bc63.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-BJkaMc8Q.mjs → uploadsStore-Bx9nAcin.mjs} +1 -1
- package/dist/esm/chunks/{viewState-Bz_5JiKf.mjs → viewState-Dv3Y_pc4.mjs} +13 -9
- package/dist/esm/chunks/{volumeStore-DBjptppw.mjs → volumeStore-C2AnBA5B.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-Da4krjmG.mjs → webRTCStore-fNJiXwLR.mjs} +3 -3
- package/dist/esm/chunks/{windowStore-DuCMm9ZH.mjs → windowStore-CYsBH-_Y.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +11 -7
- 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 +17 -13
- package/dist/esm/components/ButtonBar/index.mjs +13 -9
- package/dist/esm/components/Camera/index.mjs +13 -9
- package/dist/esm/components/CheckBox/index.mjs +11 -7
- package/dist/esm/components/Chip/index.mjs +14 -10
- package/dist/esm/components/DataTable/index.mjs +14 -10
- package/dist/esm/components/DivInput/index.mjs +5 -3
- package/dist/esm/components/Dot/index.mjs +2 -2
- package/dist/esm/components/DraggablePanel/index.mjs +10 -6
- package/dist/esm/components/DropDown/index.mjs +13 -9
- package/dist/esm/components/ErrorSummary/index.mjs +10 -6
- package/dist/esm/components/FileIcon/index.mjs +10 -6
- package/dist/esm/components/FileList/index.mjs +13 -9
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +12 -8
- package/dist/esm/components/Icon/index.mjs +11 -7
- package/dist/esm/components/IconButton/index.mjs +16 -12
- package/dist/esm/components/Label/index.mjs +5 -3
- package/dist/esm/components/Level/index.mjs +7 -5
- package/dist/esm/components/Modal/index.mjs +19 -15
- package/dist/esm/components/ModalController/index.mjs +12 -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 +11 -7
- package/dist/esm/components/PromptInput/index.mjs +18 -14
- package/dist/esm/components/RadioButton/index.mjs +11 -7
- package/dist/esm/components/RadioButtonList/index.mjs +12 -8
- package/dist/esm/components/Slider/index.mjs +11 -7
- 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 +15 -11
- package/dist/esm/components/TextArea/index.mjs +18 -14
- package/dist/esm/components/Textfield/index.mjs +17 -13
- package/dist/esm/components/Tip/index.mjs +5 -3
- package/dist/esm/components/Toast/index.mjs +12 -8
- package/dist/esm/components/ToggleButton/index.mjs +18 -14
- package/dist/esm/components/UploadArea/index.mjs +16 -12
- package/dist/esm/components/Video/index.mjs +21 -17
- package/dist/esm/components/VideoController/index.mjs +20 -16
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +6 -6
- package/dist/esm/hooks/useClipboard.mjs +3 -3
- package/dist/esm/hooks/useMdStreamBuffer.mjs +3 -3
- package/dist/esm/hooks/useMicrophone.mjs +1 -1
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +8 -8
- package/dist/esm/index.mjs +59 -59
- package/dist/esm/providers/themeServer.test.mjs +10572 -0
- package/dist/esm/stores/LocalDB.mjs +4 -4
- package/dist/esm/stores/SSE.mjs +4 -4
- package/dist/esm/stores/WS.mjs +3 -3
- package/dist/esm/stores/WebRTC.mjs +4 -4
- package/dist/esm/stores/browserChannel.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/video.mjs +1 -1
- package/dist/esm/stores/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +18 -18
- package/dist/esm/theme/corners.mjs +8 -8
- package/dist/esm/utils/index.mjs +12 -12
- package/dist/esm/utils/objects/index.mjs +8 -8
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +2225 -2214
- package/dist/types/components/Avatar/_types.d.ts +0 -1
- package/dist/types/components/AvatarGroup/_types.d.ts +0 -1
- package/dist/types/components/Button/Button.d.ts +0 -4
- package/dist/types/components/Button/_types.d.ts +0 -2
- package/dist/types/components/ButtonBar/_types.d.ts +0 -3
- package/dist/types/components/Chip/_types.d.ts +0 -2
- package/dist/types/components/DataTable/_useResizeColumn.test.d.ts +1 -0
- package/dist/types/components/DataTable/columnHelper.test.d.ts +1 -0
- package/dist/types/components/DivInput/_types.d.ts +0 -1
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +13 -1
- package/dist/types/components/DropDown/_types.d.ts +0 -1
- package/dist/types/components/ErrorSummary/_types.d.ts +0 -1
- package/dist/types/components/FileList/_types.d.ts +0 -1
- package/dist/types/components/Icon/iconRegistry.test.d.ts +1 -0
- package/dist/types/components/IconButton/_animation.test.d.ts +1 -0
- package/dist/types/components/IconButton/_types.d.ts +3 -3
- package/dist/types/components/Label/_types.d.ts +0 -1
- package/dist/types/components/Switch/_types.d.ts +0 -2
- package/dist/types/components/TextArea/_types.d.ts +0 -1
- package/dist/types/components/Tip/_types.d.ts +0 -1
- package/dist/types/components/ToggleButton/_types.d.ts +3 -3
- package/dist/types/components/UploadArea/UploadArea.d.ts +0 -4
- package/dist/types/components/UploadArea/_types.d.ts +0 -2
- package/dist/types/components/playHelpers.d.ts +353 -0
- package/dist/types/hooks/useBindWebRTC/useBindWebRTC.test.d.ts +1 -0
- package/dist/types/hooks/useTrackRenders/useTrackRenders.test.d.ts +1 -0
- package/dist/types/providers/themeServer.test.d.ts +1 -0
- package/dist/types/stores/LocalDB/localDBStore.test.d.ts +1 -0
- package/dist/types/theme/corners/types.d.ts +8 -8
- package/dist/types/utils/objects/IndexedDB/IndexedDB.d.ts +3 -0
- package/dist/types/utils/objects/IndexedDB/IndexedDB.test.d.ts +1 -0
- package/dist/types/utils/objects/MDStreamBuffer/MdStreamBuffer.test.d.ts +1 -0
- package/dist/types/utils/objects/WebRTCConnection/WebRTCConnection.test.d.ts +1 -0
- package/dist/types/workers/uploads/uploads-worker.test.d.ts +1 -0
- package/package.json +2 -1
- /package/dist/cjs/chunks/{MdStreamBuffer-Ba-YbQaW.js → MdStreamBuffer-BiFYXGu6.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-C0XhTcpi.js → SSEConnection-CygPbs0L.js} +0 -0
- /package/dist/cjs/chunks/{_types-DEjCVlhp.js → _types-jaI3KEVY.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-DFgLMDKW.js → audioVisualizer-Dmtjjosj.js} +0 -0
- /package/dist/cjs/chunks/{broadcastChannel-B0l8OE4I.js → broadcastChannel-CRR59lw6.js} +0 -0
- /package/dist/cjs/chunks/{colors-jx2QRRls.js → colors-Dok44sXW.js} +0 -0
- /package/dist/cjs/chunks/{debounce-CsmIqkDy.js → debounce-C3P6vOcn.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-DaB75uoa.js → modalStore--QHdUyuE.js} +0 -0
- /package/dist/cjs/chunks/{rafThrottle-DvT0BNgS.js → rafThrottle-DlDdrddz.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-BT25wBhL.js → sharedTypes-BW_hw-Vb.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-Dxda_4EA.js → tipStore-DAb0BV40.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-DqWfFw57.js → toastStore-6OcUl7VL.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-CTGrDO27.js → tslib.es6-Y3RzGMQw.js} +0 -0
- /package/dist/cjs/chunks/{videoStore-q-yi22M3.js → videoStore-B2FtqVfG.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-CuqX6fWF.mjs → MdStreamBuffer-D3J2CXWe.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-DgwE_V3B.mjs → SSEConnection-5GuqCTf8.mjs} +0 -0
- /package/dist/esm/chunks/{_types-n_IXoiPR.mjs → _types-CLPtELrL.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-CLKL6Y79.mjs → audioVisualizer-BO_hMyyp.mjs} +0 -0
- /package/dist/esm/chunks/{broadcastChannel-qkn7bL4S.mjs → broadcastChannel-B8FxWRVj.mjs} +0 -0
- /package/dist/esm/chunks/{colors-C3CypePZ.mjs → colors-Pe71RB3l.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-xuz65F25.mjs → debounce-O12UHVJH.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-DN1F_WR9.mjs → modalStore-CBW78_cT.mjs} +0 -0
- /package/dist/esm/chunks/{rafThrottle-B6dxl-O8.mjs → rafThrottle-Cf-gEuLq.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-DqPH1p0Q.mjs → sharedTypes-ySBopm8X.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-B_trLnIa.mjs → tipStore-DHu8QqNR.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-BWlW1cRh.mjs → toastStore-EbAo-Cjj.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-DGRmn-gx.mjs → tslib.es6-uJhEruZV.mjs} +0 -0
- /package/dist/esm/chunks/{videoStore-BxCTQ_tE.mjs → videoStore-TxVsMj8s.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -7,12 +7,14 @@ import { motion } from "motion/react";
|
|
|
7
7
|
|
|
8
8
|
import React, { useRef, useState, useCallback, useEffect, useMemo } from "react";
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { corners } from "../theme/corners.mjs";
|
|
11
|
+
|
|
12
|
+
import { b as cleanString } from "./misc-O5ZSVDP0.mjs";
|
|
11
13
|
|
|
12
14
|
var css_wrapper = "DivInput-module_wrapper__ZQxY-", css_input = "DivInput-module_input__J34-l type-module_body-m-regular__LuQBA";
|
|
13
15
|
|
|
14
16
|
const DivInput = React.memo(props => {
|
|
15
|
-
const {value:
|
|
17
|
+
const {value: valueProp = "", name: name = "Input Field", placeholder: placeholder = "Placeholder", isEditable: isEditable = !0, wrap: wrap = !1, focus: focus = !1, width: width = "auto", textAlign: textAlign = "left", clamp: clamp = 3, padding: padding = "0px", onChange: onChange = () => null, onSubmit: onSubmit = () => null, onFocus: onFocus = () => null, onBlur: onBlur = () => null, onDblClick: onDblClick = () => null, onClick: onClick = () => null, borderRadius: borderRadius, radius: radius = corners["corner-xs"], backgroundColor: backgroundColor = "var(--core-surface-secondary)"} = props, divAttributes = __rest(props, [ "value", "name", "placeholder", "isEditable", "wrap", "focus", "width", "textAlign", "clamp", "padding", "onChange", "onSubmit", "onFocus", "onBlur", "onDblClick", "onClick", "borderRadius", "radius", "backgroundColor" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", ref = useRef(null), value = null != valueProp ? valueProp : "", innerText = useRef(cleanString("" === value ? placeholder : value)), [isFocused, setIsFocused] = useState(focus), [text, setText] = useState(innerText.current), [isPlaceholder, setIsPlaceholder] = useState(!1), resolvedBorderRadius = null != borderRadius ? borderRadius : radius, resolvedBackgroundColor = backgroundColor, setCursor = useCallback((to, length = 1) => {
|
|
16
18
|
if (ref.current) {
|
|
17
19
|
const range = document.createRange();
|
|
18
20
|
range.setStart(ref.current, "start" === to ? 0 : length), range.setEnd(ref.current, "start" === to ? 0 : 1);
|
|
@@ -78,10 +80,10 @@ const DivInput = React.memo(props => {
|
|
|
78
80
|
"--div-input-white-space": isEditable && wrap ? "wrap" : "no-wrap",
|
|
79
81
|
"--div-input-line-clamp": isEditable && isFocused ? "none" : null != clamp ? clamp : "none",
|
|
80
82
|
"--div-input-cursor": isEditable ? "text" : "default",
|
|
81
|
-
"--div-input-bg": isEditable ? null !=
|
|
83
|
+
"--div-input-bg": isEditable ? null != resolvedBackgroundColor ? resolvedBackgroundColor : "var(--core-surface-secondary)" : "transparent",
|
|
82
84
|
"--div-input-wrapper-bg": isEditable && isFocused ? null != resolvedBackgroundColor ? resolvedBackgroundColor : "var(--core-surface-secondary)" : "transparent",
|
|
83
85
|
"--div-input-border-radius": `${resolvedBorderRadius}px`
|
|
84
|
-
}), [ clamp, wrap, isEditable, width, textAlign, isFocused, padding, isPlaceholder, setWidth, resolvedBackgroundColor, resolvedBorderRadius
|
|
86
|
+
}), [ clamp, wrap, isEditable, width, textAlign, isFocused, padding, isPlaceholder, setWidth, resolvedBackgroundColor, resolvedBorderRadius ]);
|
|
85
87
|
return jsx("div", Object.assign({
|
|
86
88
|
id: divId,
|
|
87
89
|
className: `${css_wrapper}${divClass}`,
|
|
@@ -101,7 +103,7 @@ const DivInput = React.memo(props => {
|
|
|
101
103
|
onClick: handleClick,
|
|
102
104
|
role: "textbox",
|
|
103
105
|
"aria-label": name,
|
|
104
|
-
children: null !=
|
|
106
|
+
children: null != valueProp ? valueProp : placeholder
|
|
105
107
|
})
|
|
106
108
|
}));
|
|
107
109
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -11,13 +11,15 @@ import "../theme/colors.mjs";
|
|
|
11
11
|
|
|
12
12
|
import "../theme/type.mjs";
|
|
13
13
|
|
|
14
|
-
import { p as pointerPosition } from "./misc-
|
|
14
|
+
import { p as pointerPosition } from "./misc-O5ZSVDP0.mjs";
|
|
15
15
|
|
|
16
|
-
import "./broadcastChannel-
|
|
16
|
+
import "./broadcastChannel-B8FxWRVj.mjs";
|
|
17
17
|
|
|
18
|
-
import "./
|
|
18
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
19
19
|
|
|
20
|
-
import "./
|
|
20
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
21
|
+
|
|
22
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
21
23
|
|
|
22
24
|
import "../hooks/useWindow.mjs";
|
|
23
25
|
|
|
@@ -49,10 +51,10 @@ const DraggablePanel = React.memo(props => {
|
|
|
49
51
|
width: 10,
|
|
50
52
|
color: "transparent",
|
|
51
53
|
offsetX: !0
|
|
52
|
-
}, borderRight: borderRight = "1px solid var(--core-outline-secondary)", borderLeft: borderLeft = "1px solid var(--core-outline-secondary)",
|
|
54
|
+
}, borderRight: borderRight = "1px solid var(--core-outline-secondary)", borderLeft: borderLeft = "1px solid var(--core-outline-secondary)", backgroundColor: backgroundColor = "transparent", drags: drags = "right", isTouchDevice: isTouchDevice = !1, disableOnContext: disableOnContext = !1, dragHandle: dragHandle = !0, dragHandleStyle: dragHandleStyle = {
|
|
53
55
|
height: 24,
|
|
54
56
|
width: 9
|
|
55
|
-
}, containerRef: containerRef, onResize: onResize = () => null, onResizeStart: onResizeStart = () => null, onResizeEnd: onResizeEnd = () => null} = props, divAttributes = __rest(props, [ "children", "sizeConstraints", "isClosed", "resizeHandle", "borderRight", "borderLeft", "
|
|
57
|
+
}, transitionDurationOnInit: transitionDurationOnInit, containerRef: containerRef, onResize: onResize = () => null, onResizeStart: onResizeStart = () => null, onResizeEnd: onResizeEnd = () => null} = props, divAttributes = __rest(props, [ "children", "sizeConstraints", "isClosed", "resizeHandle", "borderRight", "borderLeft", "backgroundColor", "drags", "isTouchDevice", "disableOnContext", "dragHandle", "dragHandleStyle", "transitionDurationOnInit", "containerRef", "onResize", "onResizeStart", "onResizeEnd" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", handle = useRef(null), div = useRef(null), [isDragging, setIsDragging] = useState(!1), isOver = useRef(!1), gripper = Object.assign({}, resizeHandle), containerSize = useObserveResize(containerRef), panelSize = useObserveResize(div), [handleHighlight, setHandleHighlight] = useState(!1), [lastWidth, setLastWidth] = useState(null), [panelClosed, setPanelClosed] = useState(isClosed), [constraints, setConstraints] = useState(() => resolveConstraints(sizeConstraints)), [contWidth, setContWidth] = useState((null == containerRef ? void 0 : containerRef.current) ? containerRef.current.offsetWidth : void 0 !== globalThis.window ? window.innerWidth : void 0), [mounted, setMounted] = useState(!1), timer = useRef(null), closed = panelSize.width <= 1, startX = useRef(0), startWidth = useRef(0), divWidth = useRef(0), divHeight = useRef(0), deltaWidth = useRef(0);
|
|
56
58
|
const handleWindowResize = useCallback(() => {
|
|
57
59
|
(null == containerRef ? void 0 : containerRef.current) || setContWidth(window.innerWidth);
|
|
58
60
|
}, [ containerRef ]), handleMouseOver = useCallback(() => {
|
|
@@ -88,13 +90,7 @@ const DraggablePanel = React.memo(props => {
|
|
|
88
90
|
timer.current && clearTimeout(timer.current), state ? timer.current = setTimeout(() => {
|
|
89
91
|
setHandleHighlight(state);
|
|
90
92
|
}, isTouchDevice ? 0 : 350) : setHandleHighlight(!1);
|
|
91
|
-
}, [ isTouchDevice ]), getClientX = useCallback(e => pointerPosition(e), []), getNewWidth = useCallback(clientX => "right" === drags ? startWidth.current + clientX - startX.current : startWidth.current - clientX + startX.current, [ drags ]), canDrag = useCallback((newWidth, clientX) => {
|
|
92
|
-
if (null == constraints ? void 0 : constraints.min) {
|
|
93
|
-
if (newWidth <= constraints.min) return !1;
|
|
94
|
-
if (newWidth < constraints.min) return !1;
|
|
95
|
-
}
|
|
96
|
-
return !((null == constraints ? void 0 : constraints.max) && newWidth >= constraints.max && clientX - startX.current > 0);
|
|
97
|
-
}, [ constraints ]), doDrag = useCallback(e => {
|
|
93
|
+
}, [ isTouchDevice ]), getClientX = useCallback(e => pointerPosition(e), []), getNewWidth = useCallback(clientX => "right" === drags ? startWidth.current + clientX - startX.current : startWidth.current - clientX + startX.current, [ drags ]), canDrag = useCallback((newWidth, clientX) => !((null == constraints ? void 0 : constraints.min) && newWidth < constraints.min) && !((null == constraints ? void 0 : constraints.max) && newWidth > constraints.max && clientX - startX.current > 0), [ constraints ]), doDrag = useCallback(e => {
|
|
98
94
|
if (null == div ? void 0 : div.current) {
|
|
99
95
|
e.stopPropagation(), e.preventDefault();
|
|
100
96
|
const el = div.current, clientX = getClientX(e), newWidth = getNewWidth(clientX);
|
|
@@ -124,7 +120,16 @@ const DraggablePanel = React.memo(props => {
|
|
|
124
120
|
onResize(update), onResizeEnd(update);
|
|
125
121
|
}
|
|
126
122
|
setLastWidth(divWidth.current), isOver.current || setHighlight(!1);
|
|
127
|
-
}, [ doDrag, onResizeEnd, onResize, setHighlight ]),
|
|
123
|
+
}, [ doDrag, onResizeEnd, onResize, setHighlight ]), [initialOpenSettled, setInitialOpenSettled] = useState(!1);
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
mounted && setInitialOpenSettled(!0);
|
|
126
|
+
}, [ mounted ]);
|
|
127
|
+
const transition = useMemo(() => {
|
|
128
|
+
if (mounted && !initialOpenSettled && void 0 !== transitionDurationOnInit) {
|
|
129
|
+
return `width ${"number" == typeof transitionDurationOnInit ? `${transitionDurationOnInit}ms` : transitionDurationOnInit} var(--motion-water)`;
|
|
130
|
+
}
|
|
131
|
+
return "width var(--motion-water-duration) var(--motion-water)";
|
|
132
|
+
}, [ mounted, initialOpenSettled, transitionDurationOnInit ]), initDrag = useCallback(e => {
|
|
128
133
|
if ((null == div ? void 0 : div.current) && document.defaultView) {
|
|
129
134
|
setIsDragging(!0);
|
|
130
135
|
const el = div.current;
|
|
@@ -155,8 +160,8 @@ const DraggablePanel = React.memo(props => {
|
|
|
155
160
|
} : {
|
|
156
161
|
left: isTouchDevice ? -22 : -(gripper.width || 10) / 2
|
|
157
162
|
}, [ drags, isTouchDevice, gripper.width ]), normalizeWidth = useCallback(width => mounted ? "number" == typeof width ? width <= 1 && width >= 0 ? contWidth ? contWidth * width + "px" : 0 : `${width}px` : width : "0px", [ contWidth, mounted ]), width = useMemo(() => drags ? panelClosed ? 0 : lastWidth || normalizeWidth(constraints.initial) : "100%", [ drags, panelClosed, lastWidth, constraints.initial, normalizeWidth ]), cssVars = useMemo(() => ({
|
|
158
|
-
"--panel-bg": null !=
|
|
159
|
-
}), [
|
|
163
|
+
"--panel-bg": null != backgroundColor ? backgroundColor : "transparent"
|
|
164
|
+
}), [ backgroundColor ]);
|
|
160
165
|
return jsxs("div", Object.assign({
|
|
161
166
|
id: divId,
|
|
162
167
|
className: `${css_panel}${divClass}`,
|
|
@@ -164,6 +169,7 @@ const DraggablePanel = React.memo(props => {
|
|
|
164
169
|
onContextMenu: e => (disableOnContext && e.preventDefault(), !0),
|
|
165
170
|
style: Object.assign(Object.assign(Object.assign({}, divStyle), cssVars), {
|
|
166
171
|
overflow: "visible",
|
|
172
|
+
flexShrink: 0,
|
|
167
173
|
width: width,
|
|
168
174
|
height: "100%",
|
|
169
175
|
maxWidth: drags ? constraints.max : "unset",
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
import React, { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { corners } from "../theme/corners.mjs";
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { s as setStyle } from "./misc-O5ZSVDP0.mjs";
|
|
11
|
+
|
|
12
|
+
import { I as Icon } from "./Icon-CGqm8lg7.mjs";
|
|
11
13
|
|
|
12
14
|
var css = {
|
|
13
15
|
wrapper: "DropDown-module_wrapper__CyX0u flexBox-module_rowStart__4tcxS",
|
|
@@ -28,7 +30,7 @@ function resolveValueKey(value, valueKey) {
|
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
function DropDownComponent(props) {
|
|
31
|
-
const {name: name = "drop-down-select", label: label, labelColor: labelColor = "var(--core-text-primary)", textSize: textSize = "m", width: width = "100%", height: height = "auto", inline: inline = !1, selectedIndex: selectedIndex, selectedValue: selectedValue, valueKey: valueKey, options: options = [], placeholder: placeholder = !0, borderRadius: borderRadius =
|
|
33
|
+
const {name: name = "drop-down-select", label: label, labelColor: labelColor = "var(--core-text-primary)", textSize: textSize = "m", width: width = "100%", height: height = "auto", inline: inline = !1, selectedIndex: selectedIndex, selectedValue: selectedValue, valueKey: valueKey, options: options = [], placeholder: placeholder = !0, borderRadius: borderRadius = corners["corner-m"], backgroundColor: backgroundColor = "var(--core-surface-secondary)", iconColor: iconColor = "var(--core-text-primary)", textColor: textColor = "var(--core-text-primary)", borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-outline-primary)", paddingLeft: paddingLeft = "10px", paddingRight: paddingRight = "8px", paddingTop: paddingTop = "8px", paddingBottom: paddingBottom = "8px", borderStyle: borderStyle = "box", iconSize: iconSize = 20, disabled: disabled = !1, error: error = !1, gap: gap = 8, onChange: onChange = () => null, onOption: onOption = () => null} = props, divAttributes = __rest(props, [ "name", "label", "labelColor", "textSize", "width", "height", "inline", "selectedIndex", "selectedValue", "valueKey", "options", "placeholder", "borderRadius", "backgroundColor", "iconColor", "textColor", "borderWidth", "borderSize", "borderColor", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "borderStyle", "iconSize", "disabled", "error", "gap", "onChange", "onOption" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = backgroundColor, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, [index, setIndex] = useState(null != selectedIndex ? selectedIndex : 0), [selectedText, setSelectedText] = useState("Select an option"), ref = useRef(null);
|
|
32
34
|
useEffect(() => {
|
|
33
35
|
if (null == selectedValue && void 0 !== selectedIndex && (null == ref ? void 0 : ref.current)) {
|
|
34
36
|
if (!(null == options ? void 0 : options[selectedIndex])) return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -13,13 +13,15 @@ import "../theme/colors.mjs";
|
|
|
13
13
|
|
|
14
14
|
import "../theme/type.mjs";
|
|
15
15
|
|
|
16
|
-
import { a as addOpacity } from "./colors-
|
|
16
|
+
import { a as addOpacity } from "./colors-Pe71RB3l.mjs";
|
|
17
17
|
|
|
18
|
-
import "./broadcastChannel-
|
|
18
|
+
import "./broadcastChannel-B8FxWRVj.mjs";
|
|
19
19
|
|
|
20
|
-
import "./
|
|
20
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
21
21
|
|
|
22
|
-
import "./
|
|
22
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
23
|
+
|
|
24
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
23
25
|
|
|
24
26
|
import "../hooks/useWindow.mjs";
|
|
25
27
|
|
|
@@ -37,7 +39,7 @@ var css = {
|
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
const ErrorSummary = React.memo(props => {
|
|
40
|
-
const {current: current} = useTheme(), warning = current.colors["feedback-warning"], bg = addOpacity(warning, .1), {entries: entries, textSize: textSize = "m", textColor: textColor = warning, backgroundColor: backgroundColor
|
|
42
|
+
const {current: current} = useTheme(), warning = current.colors["feedback-warning"], bg = addOpacity(warning, .1), {entries: entries, textSize: textSize = "m", textColor: textColor = warning, backgroundColor: backgroundColor = bg, autoNumber: autoNumber = !0} = props, divAttributes = __rest(props, [ "entries", "textSize", "textColor", "backgroundColor", "autoNumber" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = backgroundColor, variants = useMemo(() => ({
|
|
41
43
|
enter: {
|
|
42
44
|
opacity: 0,
|
|
43
45
|
maxHeight: 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -11,13 +11,15 @@ import "../theme/colors.mjs";
|
|
|
11
11
|
|
|
12
12
|
import "../theme/type.mjs";
|
|
13
13
|
|
|
14
|
-
import { a as accessibleKeyDown } from "./misc-
|
|
14
|
+
import { a as accessibleKeyDown } from "./misc-O5ZSVDP0.mjs";
|
|
15
15
|
|
|
16
|
-
import "./broadcastChannel-
|
|
16
|
+
import "./broadcastChannel-B8FxWRVj.mjs";
|
|
17
17
|
|
|
18
|
-
import "./
|
|
18
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
19
19
|
|
|
20
|
-
import "./
|
|
20
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
21
|
+
|
|
22
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
21
23
|
|
|
22
24
|
import "../hooks/useWindow.mjs";
|
|
23
25
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
import React, { useCallback, useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import { s as setStyle, a as accessibleKeyDown } from "./misc-
|
|
8
|
+
import { s as setStyle, a as accessibleKeyDown } from "./misc-O5ZSVDP0.mjs";
|
|
9
9
|
|
|
10
|
-
import { F as FileIcon } from "./FileIcon-
|
|
10
|
+
import { F as FileIcon } from "./FileIcon-CBNQckHc.mjs";
|
|
11
11
|
|
|
12
|
-
import { I as Icon } from "./Icon-
|
|
12
|
+
import { I as Icon } from "./Icon-CGqm8lg7.mjs";
|
|
13
13
|
|
|
14
|
-
import { P as ProgressIndicator } from "./ProgressIndicator-
|
|
14
|
+
import { P as ProgressIndicator } from "./ProgressIndicator-CNTW0t8s.mjs";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Split a file name into its display name and extension.
|
|
@@ -46,7 +46,7 @@ function displayClose(uploading) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
const FileList = React.memo(props => {
|
|
49
|
-
const {files: files = [], onChange: onChange, onToolTip: onToolTip, maxWidth: maxWidth, minWidth: minWidth, direction: direction = "row", padding: padding, gap: gap = 10, textSize: textSize = "s", iconSize: iconSize = 24, backgroundColor: backgroundColor,
|
|
49
|
+
const {files: files = [], onChange: onChange, onToolTip: onToolTip, maxWidth: maxWidth, minWidth: minWidth, direction: direction = "row", padding: padding, gap: gap = 10, textSize: textSize = "s", iconSize: iconSize = 24, backgroundColor: backgroundColor, canRemove: canRemove = !0} = props, divAttributes = __rest(props, [ "files", "onChange", "onToolTip", "maxWidth", "minWidth", "direction", "padding", "gap", "textSize", "iconSize", "backgroundColor", "canRemove" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = backgroundColor, fileNameToFileItem = useCallback(fileName => {
|
|
50
50
|
const {ext: ext, name: name} = function(fileName) {
|
|
51
51
|
var _a;
|
|
52
52
|
const ext = null !== (_a = fileName.split(".").pop()) && void 0 !== _a ? _a : "unknown";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -13,17 +13,19 @@ import "../theme/colors.mjs";
|
|
|
13
13
|
|
|
14
14
|
import "../theme/type.mjs";
|
|
15
15
|
|
|
16
|
-
import "./broadcastChannel-
|
|
16
|
+
import "./broadcastChannel-B8FxWRVj.mjs";
|
|
17
17
|
|
|
18
|
-
import "./
|
|
18
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
19
19
|
|
|
20
|
-
import "./
|
|
20
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
21
|
+
|
|
22
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
21
23
|
|
|
22
24
|
import "../hooks/useWindow.mjs";
|
|
23
25
|
|
|
24
|
-
import { B as Badge } from "./Badge-
|
|
26
|
+
import { B as Badge } from "./Badge-DIru-w6O.mjs";
|
|
25
27
|
|
|
26
|
-
import { I as Icon } from "./Icon-
|
|
28
|
+
import { I as Icon } from "./Icon-CGqm8lg7.mjs";
|
|
27
29
|
|
|
28
30
|
var css_header = "Grouper-module_header__D5fV0 flexBox-module_rowBetween__5FEvi", css_title = "Grouper-module_title__ZKqTP flexBox-module_rowBetween__5FEvi type-module_body-m-regular__LuQBA", css_content = "Grouper-module_content__Mof50 flexBox-module_rowBetween__5FEvi", css_icon = "Grouper-module_icon__14Jis flexBox-module_row__z24tF";
|
|
29
31
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -11,13 +11,15 @@ import "../theme/colors.mjs";
|
|
|
11
11
|
|
|
12
12
|
import "../theme/type.mjs";
|
|
13
13
|
|
|
14
|
-
import { a as accessibleKeyDown } from "./misc-
|
|
14
|
+
import { a as accessibleKeyDown } from "./misc-O5ZSVDP0.mjs";
|
|
15
15
|
|
|
16
|
-
import "./broadcastChannel-
|
|
16
|
+
import "./broadcastChannel-B8FxWRVj.mjs";
|
|
17
17
|
|
|
18
|
-
import "./
|
|
18
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
19
19
|
|
|
20
|
-
import "./
|
|
20
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
21
|
+
|
|
22
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
21
23
|
|
|
22
24
|
import "../hooks/useWindow.mjs";
|
|
23
25
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -7,13 +7,15 @@ import { motion } from "motion/react";
|
|
|
7
7
|
|
|
8
8
|
import React, { useRef, useState, useEffect, useCallback, useMemo } from "react";
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { corners } from "../theme/corners.mjs";
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { B as Badge } from "./Badge-DIru-w6O.mjs";
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { D as Dot } from "./Dot-CWVfujdC.mjs";
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { I as Icon } from "./Icon-CGqm8lg7.mjs";
|
|
17
|
+
|
|
18
|
+
import { T as ToolTipType } from "./sharedTypes-ySBopm8X.mjs";
|
|
17
19
|
|
|
18
20
|
var AnimationPreset, AnimationType, 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";
|
|
19
21
|
|
|
@@ -110,7 +112,7 @@ const presetAnimation = {
|
|
|
110
112
|
transition: transition
|
|
111
113
|
});
|
|
112
114
|
}, IconButton = React.memo(props => {
|
|
113
|
-
const {frameSize: frameSize = 36, iconSize: iconSize = 20, round: round = !0, icon: icon = "more", borderRadius: borderRadius =
|
|
115
|
+
const {frameSize: frameSize = 36, iconSize: iconSize = 20, round: round = !0, icon: icon = "more", borderRadius: borderRadius = corners["corner-xs"], border: border = !1, tooltip: tooltip, color: color, colorOn: colorOn, iconFill: iconFill = !1, backgroundColor: backgroundColor = "var(--core-surface-secondary)", backgroundColorHover: backgroundColorHover = "var(--core-outline-primary)", backgroundColorOn: backgroundColorOn = "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", presetAnimations: presetAnimations, customAnimations: customAnimations, onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = __rest(props, [ "frameSize", "iconSize", "round", "icon", "borderRadius", "border", "tooltip", "color", "colorOn", "iconFill", "backgroundColor", "backgroundColorHover", "backgroundColorOn", "iconColor", "iconColorOn", "iconColorHover", "transition", "variants", "initial", "animate", "exit", "fillColor", "label", "hover", "count", "toggle", "toggleIcon", "isToggled", "disabled", "showDot", "buttonSize", "presetAnimations", "customAnimations", "onClick", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", ref = useRef(null), [on, setOn] = useState(isToggled), [hovered, setHovered] = useState(!1);
|
|
114
116
|
useEffect(() => setOn(isToggled), [ isToggled ]);
|
|
115
117
|
const handleClick = useCallback(e => {
|
|
116
118
|
disabled || (tooltip && onToolTip(null), toggle && setOn(!on), onClick(e));
|
|
@@ -127,7 +129,7 @@ const presetAnimation = {
|
|
|
127
129
|
onToolTip(tip);
|
|
128
130
|
}, [ tooltip, onToolTip ]), handleMouseLeave = useCallback(() => {
|
|
129
131
|
setHovered(!1), tooltip && onToolTip(null);
|
|
130
|
-
}, [ tooltip, onToolTip ]), bgColorNormal = useMemo(() => on ?
|
|
132
|
+
}, [ tooltip, onToolTip ]), bgColorNormal = useMemo(() => on ? backgroundColorOn : null != backgroundColor ? backgroundColor : "var(--core-surface-secondary)", [ backgroundColorOn, backgroundColor, on ]), bgHoverColor = useMemo(() => hover && on ? backgroundColorOn : hover ? backgroundColorHover : null != backgroundColor ? backgroundColor : "transparent", [ hover, backgroundColor, backgroundColorOn, backgroundColorHover, on ]), textColor = useMemo(() => on ? colorOn : null != color ? color : "var(--core-text-primary)", [ on, colorOn, color ]), setIconColor = useMemo(() => on ? iconColorOn : hovered ? iconColorHover : null != iconColor ? iconColor : "var(--core-text-primary)", [ on, iconColorOn, iconColor, iconColorHover, hovered ]), size = useMemo(() => buttonSize ? "s" === buttonSize ? 24 : "m" === buttonSize ? 36 : "l" === buttonSize ? 44 : "xl" === buttonSize ? 56 : void 0 : frameSize, [ frameSize, buttonSize ]), cssVars = useMemo(() => ({
|
|
131
133
|
"--ib-bg-color": bgColorNormal,
|
|
132
134
|
"--ib-bg-color-hover": disabled ? bgColorNormal : bgHoverColor,
|
|
133
135
|
"--ib-icon-size": `${null != iconSize ? iconSize : 0}px`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter } from "./tslib.es6-
|
|
1
|
+
import { _ as __awaiter } from "./tslib.es6-uJhEruZV.mjs";
|
|
2
2
|
|
|
3
3
|
class IndexedDB {
|
|
4
4
|
constructor(storeName, options = {}) {
|
|
@@ -41,7 +41,8 @@ class IndexedDB {
|
|
|
41
41
|
* Get a single DB value by key.
|
|
42
42
|
*/ get(key) {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function*() {
|
|
44
|
-
|
|
44
|
+
const value = yield this.runRequest("readonly", store => store.get(key));
|
|
45
|
+
return null != value ? value : null;
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
@@ -60,15 +61,18 @@ class IndexedDB {
|
|
|
60
61
|
}
|
|
61
62
|
set(key, value) {
|
|
62
63
|
return __awaiter(this, void 0, void 0, function*() {
|
|
63
|
-
return this.runRequest("readwrite", store => store.put(value, key));
|
|
64
|
+
return this.runRequest("readwrite", store => this.key ? store.put(value) : store.put(value, key));
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
67
|
/**
|
|
67
68
|
* Adds a new value to the store with or without a key.
|
|
68
69
|
* If a key already exists it will error.
|
|
70
|
+
*
|
|
71
|
+
* As with `set()`, a store configured with an in-line key path must never
|
|
72
|
+
* be given an explicit key - it is always derived from the value.
|
|
69
73
|
*/ add(value, key) {
|
|
70
74
|
return __awaiter(this, void 0, void 0, function*() {
|
|
71
|
-
return this.runRequest("readwrite", store => void 0 === key ? store.add(value) : store.add(value, key));
|
|
75
|
+
return this.runRequest("readwrite", store => this.key || void 0 === key ? store.add(value) : store.add(value, key));
|
|
72
76
|
});
|
|
73
77
|
}
|
|
74
78
|
/**
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
import { useCallback, useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { corners } from "../theme/corners.mjs";
|
|
9
|
+
|
|
10
|
+
import { s as setStyle } from "./misc-O5ZSVDP0.mjs";
|
|
9
11
|
|
|
10
12
|
var LabelBackground, css = {
|
|
11
13
|
label: "Label-module_label__RaRvM",
|
|
@@ -24,7 +26,7 @@ function resolveSemanticBackground(backgroundColor) {
|
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
function Label(props) {
|
|
27
|
-
const {children: children, label: label, backgroundColor: backgroundColor, borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-outline-primary)",
|
|
29
|
+
const {children: children, label: label, backgroundColor: backgroundColor = "transparent", borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-outline-primary)", borderRadius: borderRadius = corners["corner-xs"], padding: padding, textColor: textColor = "var(--core-text-primary)", textSize: textSize = "s", onClick: onClick} = props, divAttributes = __rest(props, [ "children", "label", "backgroundColor", "borderWidth", "borderSize", "borderColor", "borderRadius", "padding", "textColor", "textSize", "onClick" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", isInteractive = Boolean(onClick), resolvedBackgroundColor = backgroundColor, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, handleClick = useCallback(e => {
|
|
28
30
|
isInteractive && (null == onClick || onClick(e));
|
|
29
31
|
}, [ isInteractive, onClick ]), setBgColor = useMemo(() => {
|
|
30
32
|
if (!resolvedBackgroundColor) return "transparent";
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
import React, { useRef, useState, useMemo, useEffect } from "react";
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { corners } from "../theme/corners.mjs";
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { s as setStyle } from "./misc-O5ZSVDP0.mjs";
|
|
11
11
|
|
|
12
|
-
import "./
|
|
12
|
+
import { A as AudioVisualizer } from "./audioVisualizer-BO_hMyyp.mjs";
|
|
13
|
+
|
|
14
|
+
import "./broadcastChannel-B8FxWRVj.mjs";
|
|
13
15
|
|
|
14
16
|
var css_wrapper = "Level-module_wrapper__yOfXw", css_barContainer = "Level-module_barContainer__QMUdv", css_bar = "Level-module_bar__MnApX";
|
|
15
17
|
|
|
16
18
|
const Level = React.memo(function(props) {
|
|
17
|
-
const {width: width = 100, height: height = 4, gap: gap = 0, audioStream: audioStream, playing: playing = !1, minIntensity: minIntensity = 0, maxIntensity: maxIntensity = 5, intensity: intensity = 3.5, peakIntensity: peakIntensity = .5, risePerSeconds: risePerSeconds = 4, releasePerSeconds: releasePerSeconds, ReleasePerSeconds: ReleasePerSeconds = 1.5, borderRadius: borderRadius =
|
|
19
|
+
const {width: width = 100, height: height = 4, gap: gap = 0, audioStream: audioStream, playing: playing = !1, minIntensity: minIntensity = 0, maxIntensity: maxIntensity = 5, intensity: intensity = 3.5, peakIntensity: peakIntensity = .5, risePerSeconds: risePerSeconds = 4, releasePerSeconds: releasePerSeconds, ReleasePerSeconds: ReleasePerSeconds = 1.5, borderRadius: borderRadius = corners["corner-xs"], borderColor: borderColor = "transparent", borderWidth: borderWidth = 0, colorActive: colorActive = "var(--feedback-positive)", backgroundColor: backgroundColor = "var(--core-surface-primary-tint)"} = props, divAttributes = __rest(props, [ "width", "height", "gap", "audioStream", "playing", "minIntensity", "maxIntensity", "intensity", "peakIntensity", "risePerSeconds", "releasePerSeconds", "ReleasePerSeconds", "borderRadius", "borderColor", "borderWidth", "colorActive", "backgroundColor" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", visualizerRef = useRef(null), [normalizedIntensity, setNormalizedIntensity] = useState(0), totalBars = Math.max(1, Math.floor(maxIntensity)), minBars = Math.max(0, Math.min(Math.floor(minIntensity), totalBars)), releaseRate = null != releasePerSeconds ? releasePerSeconds : ReleasePerSeconds, intensityIntervals = useMemo(() => new Array(totalBars).fill(0).map((_, index) => index), [ totalBars ]), activeBars = useMemo(() => {
|
|
18
20
|
const scaledBars = Math.round(minBars + normalizedIntensity * (totalBars - minBars));
|
|
19
21
|
return Math.max(minBars, Math.min(scaledBars, totalBars));
|
|
20
22
|
}, [ minBars, normalizedIntensity, totalBars ]), visualizerSettings = useMemo(() => ({
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
import React, { useRef, useState, useCallback, useMemo, useEffect } from "react";
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { corners } from "../theme/corners.mjs";
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { s as setStyle } from "./misc-O5ZSVDP0.mjs";
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { B as Button } from "./Button-BYALDfuE.mjs";
|
|
13
13
|
|
|
14
|
-
import { I as
|
|
14
|
+
import { I as Icon } from "./Icon-CGqm8lg7.mjs";
|
|
15
|
+
|
|
16
|
+
import { I as IconButton } from "./IconButton-LsCK8HUU.mjs";
|
|
15
17
|
|
|
16
18
|
var css = {
|
|
17
19
|
wrapper: "Modal-module_wrapper__34Hds flexBox-module_columnBetween__ERfp7",
|
|
@@ -31,7 +33,7 @@ var css = {
|
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
const Modal = React.memo(props => {
|
|
34
|
-
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, titleTextSize: titleTextSize = "l", contentTextSize: contentTextSize = "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, autoBorderBottom: autoBorderBottom = !0, onAction: onAction, onReject: onReject, onResolve: onResolve, onClose: onClose, onToolTip: onToolTip, onDragPointerDown: onDragPointerDown, backgroundColor: backgroundColor = "var(--core-surface-secondary)", scrollHandleColor: scrollHandleColor = "var(--core-text-disabled)", scrollHandleColorHover: scrollHandleColorHover = "var(--core-text-disabled)", titleColor: titleColor = "var(--core-text-special)", borderColor: borderColor = "var(--core-outline-primary)", borderRadius: borderRadius =
|
|
36
|
+
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, titleTextSize: titleTextSize = "l", contentTextSize: contentTextSize = "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, autoBorderBottom: autoBorderBottom = !0, onAction: onAction, onReject: onReject, onResolve: onResolve, onClose: onClose, onToolTip: onToolTip, onDragPointerDown: onDragPointerDown, backgroundColor: backgroundColor = "var(--core-surface-secondary)", scrollHandleColor: scrollHandleColor = "var(--core-text-disabled)", scrollHandleColorHover: scrollHandleColorHover = "var(--core-text-disabled)", titleColor: titleColor = "var(--core-text-special)", borderColor: borderColor = "var(--core-outline-primary)", borderRadius: borderRadius = corners["corner-m"], borderWidth: borderWidth = 1} = props, rest = __rest(props, [ "children", "id", "className", "style", "minWidth", "minHeight", "maxHeight", "maxWidth", "padding", "close", "title", "titleTextSize", "contentTextSize", "actions", "titleIcon", "titleIconFill", "titleBorderColor", "titleBorderWidth", "actionsBorderColor", "actionsBorderWidth", "autoBorderBottom", "onAction", "onReject", "onResolve", "onClose", "onToolTip", "onDragPointerDown", "backgroundColor", "scrollHandleColor", "scrollHandleColorHover", "titleColor", "borderColor", "borderRadius", "borderWidth" ]), contentWrapperRef = useRef(null), modalStyle = null != style ? style : {}, modalClass = className ? ` ${className}` : "", [scrolls, setScrolls] = useState(!1), getScrolls = useCallback(() => {
|
|
35
37
|
var _a, _b;
|
|
36
38
|
const height = null === (_a = contentWrapperRef.current) || void 0 === _a ? void 0 : _a.offsetHeight, scrollHeight = null === (_b = contentWrapperRef.current) || void 0 === _b ? void 0 : _b.scrollHeight;
|
|
37
39
|
return !(!height || !scrollHeight) && height < scrollHeight;
|
|
@@ -105,6 +107,7 @@ const Modal = React.memo(props => {
|
|
|
105
107
|
className: css.titleIcon,
|
|
106
108
|
children: jsx(IconButton, {
|
|
107
109
|
tooltip: "close",
|
|
110
|
+
"aria-label": "close",
|
|
108
111
|
icon: "x",
|
|
109
112
|
onClick: () => {
|
|
110
113
|
null == onReject || onReject(new Error("Modal was closed", {
|
|
@@ -5,13 +5,15 @@ import { useDragControls, AnimatePresence, motion } from "motion/react";
|
|
|
5
5
|
|
|
6
6
|
import { useRef } from "react";
|
|
7
7
|
|
|
8
|
-
import "./microphoneStore-
|
|
8
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
9
9
|
|
|
10
|
-
import "./volumeStore-
|
|
10
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
11
11
|
|
|
12
|
-
import
|
|
12
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { O as Overlay } from "./Overlay-CYvVXNU5.mjs";
|
|
15
|
+
|
|
16
|
+
import { u as useModal, a as useModalActions } from "./modalStore-CBW78_cT.mjs";
|
|
15
17
|
|
|
16
18
|
var css_container = "ModalController-module_container__3cSaO", css_box = "ModalController-module_box__cPzOz", css_wrapper = "ModalController-module_wrapper__HkOoX flexBox-module_row__z24tF";
|
|
17
19
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-uJhEruZV.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -13,7 +13,7 @@ const defaultTransition = {
|
|
|
13
13
|
ease: "easeOut",
|
|
14
14
|
duration: .25
|
|
15
15
|
}, Overlay = React.memo(props => {
|
|
16
|
-
const {children: children, show: show = !1, type: type = "clear", global: global = !1, overlay: overlay, color: color = "rgb(0,0,0)", opacity: opacity
|
|
16
|
+
const {children: children, show: show = !1, type: type = "clear", global: global = !1, overlay: overlay, color: color = "rgb(0,0,0)", opacity: opacity, transition: transition = defaultTransition, onClick: onClick = () => null, toggleOverlay: toggleOverlay = () => null} = props, divAttributes = __rest(props, [ "children", "show", "type", "global", "overlay", "color", "opacity", "transition", "onClick", "toggleOverlay" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", computedOpacity = useMemo(() => "clear" === type ? 0 : void 0 !== opacity ? opacity : "dark" === type ? .8 : 0, [ type, opacity ]), handleClick = useCallback(() => {
|
|
17
17
|
global && toggleOverlay(!1), onClick();
|
|
18
18
|
}, [ global, toggleOverlay, onClick ]), handleContextMenu = useCallback(e => {
|
|
19
19
|
e.preventDefault();
|