@apple-pie/slice 0.1.51 → 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-CWG0JYyG.js → AudioBubble-BSceAgq8.js} +4 -4
- package/dist/cjs/chunks/{Avatar-DyIIYHth.js → Avatar-LhoIzZYs.js} +2 -2
- package/dist/cjs/chunks/{AvatarGroup--zAf-dNr.js → AvatarGroup-6rYDbrq0.js} +3 -3
- package/dist/cjs/chunks/{Badge-Ca3fUHzW.js → Badge-DNzsgQk9.js} +1 -1
- package/dist/cjs/chunks/{Button-Cep3SqsR.js → Button-GrPLJIBP.js} +6 -5
- package/dist/cjs/chunks/{ButtonBar-CDoTe2KT.js → ButtonBar-Df0iGtC3.js} +2 -2
- package/dist/cjs/chunks/{Camera-BilzVJC-.js → Camera-BN2emgEV.js} +6 -6
- package/dist/cjs/chunks/{CheckBox-DlRmdo4F.js → CheckBox-DOTWw9VH.js} +1 -1
- package/dist/cjs/chunks/{Chip-Bcn3P9vI.js → Chip-BjzBZU6j.js} +4 -3
- package/dist/cjs/chunks/{DivInput-CPoU2IlK.js → DivInput-DXpi201k.js} +5 -5
- package/dist/cjs/chunks/{Dot-W1TQ5vfI.js → Dot-nWPzJqlj.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel--LSNphoy.js → DrggablePanel-Bi4cmUh5.js} +20 -16
- package/dist/cjs/chunks/{DropDown-AUxguryP.js → DropDown-K6xOYkfl.js} +5 -4
- package/dist/cjs/chunks/{ErrorSummary-D-eB1h3-.js → ErrorSummary-pWO_o2MN.js} +7 -6
- package/dist/cjs/chunks/{FileIcon-D7hcykwe.js → FileIcon-BXmM4L3A.js} +4 -4
- package/dist/cjs/chunks/{FileList-CBGZ8PsW.js → FileList-NDj9e_To.js} +3 -3
- package/dist/cjs/chunks/{FlexDiv-DsN5tGEG.js → FlexDiv-Dfp6NfR-.js} +1 -1
- package/dist/cjs/chunks/{Grouper-DzGrJo5i.js → Grouper-DJP2JXUi.js} +5 -5
- package/dist/cjs/chunks/{Icon-NDphOLR6.js → Icon-VcvTUkMA.js} +4 -4
- package/dist/cjs/chunks/{IconButton-DFk-yVc6.js → IconButton-Cz7iTVhO.js} +3 -3
- package/dist/cjs/chunks/{IndexedDB-CpCbUa22.js → IndexedDB-D7TVb0pF.js} +8 -4
- package/dist/cjs/chunks/{Label-DkUq49nx.js → Label-E7350HYG.js} +4 -3
- package/dist/cjs/chunks/{Level-MO3XuoBp.js → Level-ZmAb4JQ9.js} +3 -3
- package/dist/cjs/chunks/{Modal-o7KtPH6D.js → Modal-BKZ9fgWF.js} +5 -4
- package/dist/cjs/chunks/{ModalController-Bh4HjLKC.js → ModalController-CCcRXYUs.js} +3 -3
- package/dist/cjs/chunks/{Overlay-CxVrTI2z.js → Overlay-B0jNgBu3.js} +2 -2
- package/dist/cjs/chunks/{Pager-DkpPXtWt.js → Pager-CwOhw4nE.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-a4uthp1C.js → ProgressIndicator--Ph78ZSe.js} +4 -4
- package/dist/cjs/chunks/{PromptInput-DJ3sMLAK.js → PromptInput-8TqoRRtq.js} +16 -10
- package/dist/cjs/chunks/{RadioButton-J0dfBuuZ.js → RadioButton-oZxMZCpd.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-CovzfXBb.js → RadioButtonList-C0zngoe4.js} +1 -1
- package/dist/cjs/chunks/{Slider-CLQ0GSie.js → Slider-BfiaN55A.js} +4 -4
- package/dist/cjs/chunks/{Spacer-hd4zs1jA.js → Spacer-D9SULpcV.js} +1 -1
- package/dist/cjs/chunks/{Switch-Bk0OdvjZ.js → Switch-Bax_lPw4.js} +2 -2
- package/dist/cjs/chunks/{TabBar-DqkCgnSR.js → TabBar-C9NycMo8.js} +18 -18
- package/dist/cjs/chunks/{TextArea-BCeor0hV.js → TextArea-BSo1K02e.js} +5 -5
- package/dist/cjs/chunks/{TextField-CtbfTAmK.js → TextField-TpzwNrB3.js} +13 -8
- package/dist/cjs/chunks/{Tip-D7gtWmNi.js → Tip-CtobkAG3.js} +6 -5
- package/dist/cjs/chunks/{Toast-D3Hd0AMU.js → Toast-BRvp6HeI.js} +10 -8
- package/dist/cjs/chunks/{ToggleButton-DnDRKdTq.js → ToggleButton-BGsKt1uz.js} +5 -5
- package/dist/cjs/chunks/{UploadArea-BHTAfz-P.js → UploadArea-BVIOxAk0.js} +8 -7
- package/dist/cjs/chunks/{Video-B7bisMIA.js → Video-B9BWFeiN.js} +15 -15
- package/dist/cjs/chunks/{VideoController-QMAJKhPH.js → VideoController-D5J76aQJ.js} +8 -8
- package/dist/cjs/chunks/{WSConnection-BAltqes7.js → WSConnection-BrwlAScO.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-dL2SK3_2.js → WebRTCConnection-nx-EhtdY.js} +1 -1
- package/dist/cjs/chunks/{browserChannelsStore-BTPpbDRA.js → browserChannelsStore-C8C4qb7h.js} +2 -2
- package/dist/cjs/chunks/{localDBStore-C3NUtnhe.js → localDBStore-DhruyXfz.js} +2 -2
- package/dist/cjs/chunks/magic-string.es-DXiBW6ft.js +724 -0
- package/dist/cjs/chunks/{microphoneStore-Ds2J_e1I.js → microphoneStore-axA5TgKM.js} +1 -1
- package/dist/cjs/chunks/{misc-LAaHE64b.js → misc-B2oK3rIL.js} +1 -1
- package/dist/cjs/chunks/{sseStore-DPzXXIbg.js → sseStore-DaJgRKej.js} +3 -3
- package/dist/cjs/chunks/{uploads-worker-BpfjZ_xT.js → uploads-worker-B_12HqmC.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-Dek7g7dl.js → uploadsStore-hFHe0RDh.js} +2 -2
- package/dist/cjs/chunks/{viewState--I3LaDpn.js → viewState-BzvJJA68.js} +7 -7
- package/dist/cjs/chunks/{volumeStore-DbLg_-L9.js → volumeStore-D64ziNWo.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-B-ZZdCuw.js → webRTCStore-XciamNCa.js} +2 -2
- package/dist/cjs/chunks/{windowStore-CjjP9E2z.js → windowStore-DRgyVg9e.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +6 -6
- 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 -12
- package/dist/cjs/components/ButtonBar/index.js +9 -9
- package/dist/cjs/components/Camera/index.js +8 -8
- package/dist/cjs/components/CheckBox/index.js +6 -6
- package/dist/cjs/components/Chip/index.js +9 -10
- package/dist/cjs/components/DataTable/index.js +13 -14
- 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 -6
- package/dist/cjs/components/DropDown/index.js +9 -9
- package/dist/cjs/components/ErrorSummary/index.js +6 -6
- package/dist/cjs/components/FileIcon/index.js +6 -6
- package/dist/cjs/components/FileList/index.js +7 -7
- package/dist/cjs/components/FlexDiv/index.js +2 -2
- package/dist/cjs/components/Grouper/index.js +7 -7
- package/dist/cjs/components/Icon/index.js +6 -6
- package/dist/cjs/components/IconButton/index.js +12 -11
- 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 -13
- package/dist/cjs/components/ModalController/index.js +6 -6
- 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 -6
- package/dist/cjs/components/PromptInput/index.js +10 -10
- package/dist/cjs/components/RadioButton/index.js +6 -6
- package/dist/cjs/components/RadioButtonList/index.js +7 -7
- package/dist/cjs/components/Slider/index.js +6 -6
- 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 -9
- package/dist/cjs/components/TextArea/index.js +12 -13
- package/dist/cjs/components/Textfield/index.js +10 -10
- package/dist/cjs/components/Tip/index.js +4 -3
- package/dist/cjs/components/Toast/index.js +7 -7
- package/dist/cjs/components/ToggleButton/index.js +12 -13
- package/dist/cjs/components/UploadArea/index.js +12 -11
- package/dist/cjs/components/Video/index.js +15 -14
- package/dist/cjs/components/VideoController/index.js +13 -13
- 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 +5 -5
- package/dist/cjs/theme/corners.js +8 -8
- package/dist/cjs/theme/type.js +5 -5
- 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/css/type.module.css +10 -10
- package/dist/esm/chunks/{AudioBubble-DFYw0nQU.mjs → AudioBubble-CdmLKDhc.mjs} +7 -7
- package/dist/esm/chunks/{Avatar-EkYvqFJa.mjs → Avatar-CblCPiom.mjs} +3 -3
- package/dist/esm/chunks/{AvatarGroup-B8EnFBX3.mjs → AvatarGroup-DgNd60cP.mjs} +4 -4
- package/dist/esm/chunks/{Badge-C6kNwu4r.mjs → Badge-DIru-w6O.mjs} +1 -1
- package/dist/esm/chunks/{Button-Bvgo8DRW.mjs → Button-BYALDfuE.mjs} +13 -10
- package/dist/esm/chunks/{ButtonBar-CqXWLImb.mjs → ButtonBar-DUDK-0Y4.mjs} +6 -4
- package/dist/esm/chunks/{Camera-9gSj5JCt.mjs → Camera-BOgxXxRV.mjs} +10 -10
- package/dist/esm/chunks/{CheckBox-BxI_tTid.mjs → CheckBox-xLveo-Lt.mjs} +3 -3
- package/dist/esm/chunks/{Chip-Cy_9aGFx.mjs → Chip-COWEFzyh.mjs} +9 -6
- package/dist/esm/chunks/{DivInput-C1kmP54k.mjs → DivInput-faLHJ1b9.mjs} +8 -6
- package/dist/esm/chunks/{Dot-m6fw22Z0.mjs → Dot-CWVfujdC.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-C73eGSsp.mjs → DrggablePanel-DCA9LeNq.mjs} +22 -18
- package/dist/esm/chunks/{DropDown-BczM9aTO.mjs → DropDown-C9fS9E6c.mjs} +9 -6
- package/dist/esm/chunks/{ErrorSummary-Co3vVXxA.mjs → ErrorSummary-D1WbASIx.mjs} +9 -8
- package/dist/esm/chunks/{FileIcon-SKFp6-Eh.mjs → FileIcon-CBNQckHc.mjs} +6 -6
- package/dist/esm/chunks/{FileList-Dt5V9YPs.mjs → FileList-CK96tECm.mjs} +7 -7
- package/dist/esm/chunks/{FlexDiv-BoxzmKqk.mjs → FlexDiv-Cglvd-xT.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-Do8rpPZb.mjs → Grouper-CivlTYk2.mjs} +7 -7
- package/dist/esm/chunks/{Icon-BMT9cn9A.mjs → Icon-CGqm8lg7.mjs} +6 -6
- package/dist/esm/chunks/{IconButton-DEcW36kF.mjs → IconButton-LsCK8HUU.mjs} +9 -7
- package/dist/esm/chunks/{IndexedDB-BvJLLZU8.mjs → IndexedDB-DNFNyOit.mjs} +8 -4
- package/dist/esm/chunks/{Label-Etcumudw.mjs → Label-CFUlmEKM.mjs} +7 -4
- package/dist/esm/chunks/{Level-C2rSTZAQ.mjs → Level-CAZN_Xt7.mjs} +7 -5
- package/dist/esm/chunks/{Modal-C1g7ceSt.mjs → Modal-DAU9VnrP.mjs} +11 -8
- package/dist/esm/chunks/{ModalController-CkPCQeYU.mjs → ModalController-axF12LqY.mjs} +5 -5
- package/dist/esm/chunks/{Overlay-CZxlviV2.mjs → Overlay-CYvVXNU5.mjs} +2 -2
- package/dist/esm/chunks/{Pager-aLZXhX_w.mjs → Pager-BvFWzAok.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-CGbLu2wM.mjs → ProgressIndicator-CNTW0t8s.mjs} +6 -6
- package/dist/esm/chunks/{PromptInput-rsGyHTJb.mjs → PromptInput-PJIXJMCp.mjs} +17 -13
- package/dist/esm/chunks/{RadioButton-DPKvT5yo.mjs → RadioButton-DipoEV9R.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-Brl_h2Nx.mjs → RadioButtonList-CDysnTjd.mjs} +3 -3
- package/dist/esm/chunks/{Slider-BJ9mifdr.mjs → Slider-BzX_jQ27.mjs} +7 -7
- package/dist/esm/chunks/{Spacer-pZIEZfkL.mjs → Spacer-DJKkJpdX.mjs} +1 -1
- package/dist/esm/chunks/{Switch-Cbl6iesb.mjs → Switch-C8FXGMlJ.mjs} +2 -2
- package/dist/esm/chunks/{TabBar-b8Dqmz0l.mjs → TabBar-B_pwLZcy.mjs} +23 -23
- package/dist/esm/chunks/{TextArea-Ml2KuVpk.mjs → TextArea-BbveliHo.mjs} +8 -6
- package/dist/esm/chunks/{TextField-BS3bOQj-.mjs → TextField-D-680Ah3.mjs} +14 -11
- package/dist/esm/chunks/{Tip-BrBts6HZ.mjs → Tip-IdoSsqpu.mjs} +9 -6
- package/dist/esm/chunks/{Toast-BL0jO3nb.mjs → Toast-DNN0M8ds.mjs} +13 -11
- package/dist/esm/chunks/{ToggleButton-dZPHYzZH.mjs → ToggleButton-BhRGIiQz.mjs} +6 -6
- package/dist/esm/chunks/{UploadArea-voCl4jpT.mjs → UploadArea-BFEjUf7n.mjs} +13 -10
- package/dist/esm/chunks/{Video-CRBP0r2b.mjs → Video-DBF6un3N.mjs} +19 -19
- package/dist/esm/chunks/{VideoController-kYO0CqYG.mjs → VideoController-lNXxiYAp.mjs} +14 -12
- package/dist/esm/chunks/{WSConnection-e7-nSYVD.mjs → WSConnection-Bd3_THiB.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-DtIhWGrY.mjs → WebRTCConnection-DvF2ENaH.mjs} +1 -1
- package/dist/esm/chunks/{browserChannelsStore-DGDANcLP.mjs → browserChannelsStore-Dkg2yF-s.mjs} +2 -2
- package/dist/esm/chunks/{localDBStore-DwusxhIq.mjs → localDBStore-DmM1xv6W.mjs} +3 -3
- package/dist/esm/chunks/magic-string.es-w54Wbyiz.mjs +722 -0
- package/dist/esm/chunks/{microphoneStore-CDNQZJzG.mjs → microphoneStore-B9HEjn8x.mjs} +1 -1
- package/dist/esm/chunks/{misc-CV0SS-jF.mjs → misc-O5ZSVDP0.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-BaLy2MK1.mjs → sseStore-CWOB35p7.mjs} +3 -3
- package/dist/esm/chunks/{uploads-worker-F-je70Dd.mjs → uploads-worker-C4I-bc63.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-CPylq__a.mjs → uploadsStore-Bx9nAcin.mjs} +1 -1
- package/dist/esm/chunks/{viewState-CAAi7sd6.mjs → viewState-Dv3Y_pc4.mjs} +12 -10
- package/dist/esm/chunks/{volumeStore-C-rKyxRG.mjs → volumeStore-C2AnBA5B.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-B2GPjQX6.mjs → webRTCStore-fNJiXwLR.mjs} +3 -3
- package/dist/esm/chunks/{windowStore-NdbQt4lG.mjs → windowStore-CYsBH-_Y.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +9 -9
- 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 +15 -15
- package/dist/esm/components/ButtonBar/index.mjs +11 -11
- package/dist/esm/components/Camera/index.mjs +11 -11
- package/dist/esm/components/CheckBox/index.mjs +9 -9
- package/dist/esm/components/Chip/index.mjs +12 -12
- package/dist/esm/components/DataTable/index.mjs +12 -12
- 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 +8 -8
- package/dist/esm/components/DropDown/index.mjs +11 -11
- package/dist/esm/components/ErrorSummary/index.mjs +8 -8
- package/dist/esm/components/FileIcon/index.mjs +8 -8
- package/dist/esm/components/FileList/index.mjs +11 -11
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +10 -10
- package/dist/esm/components/Icon/index.mjs +9 -9
- package/dist/esm/components/IconButton/index.mjs +14 -14
- 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 +17 -17
- package/dist/esm/components/ModalController/index.mjs +9 -9
- 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 +9 -9
- package/dist/esm/components/PromptInput/index.mjs +16 -16
- package/dist/esm/components/RadioButton/index.mjs +9 -9
- package/dist/esm/components/RadioButtonList/index.mjs +10 -10
- package/dist/esm/components/Slider/index.mjs +9 -9
- 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 +13 -13
- package/dist/esm/components/TextArea/index.mjs +16 -16
- package/dist/esm/components/Textfield/index.mjs +15 -15
- package/dist/esm/components/Tip/index.mjs +5 -3
- package/dist/esm/components/Toast/index.mjs +10 -10
- package/dist/esm/components/ToggleButton/index.mjs +16 -16
- package/dist/esm/components/UploadArea/index.mjs +15 -15
- package/dist/esm/components/Video/index.mjs +19 -19
- package/dist/esm/components/VideoController/index.mjs +17 -17
- 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/theme/type.mjs +5 -5
- 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 +2400 -2349
- 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 +2 -6
- package/dist/types/components/Button/_types.d.ts +1 -3
- package/dist/types/components/ButtonBar/_types.d.ts +0 -3
- package/dist/types/components/Chip/_types.d.ts +1 -3
- package/dist/types/components/DataTable/_types.d.ts +2 -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 +1 -2
- package/dist/types/components/ErrorSummary/_types.d.ts +1 -2
- package/dist/types/components/FileList/_types.d.ts +1 -2
- 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 +1 -2
- package/dist/types/components/Modal/_types.d.ts +2 -2
- package/dist/types/components/PromptInput/PromptInput.d.ts +2 -2
- package/dist/types/components/PromptInput/_types.d.ts +1 -1
- package/dist/types/components/Switch/_types.d.ts +0 -2
- package/dist/types/components/TabBar/_types.d.ts +5 -6
- package/dist/types/components/TextArea/_types.d.ts +1 -2
- package/dist/types/components/Textfield/_types.d.ts +2 -2
- package/dist/types/components/Tip/_types.d.ts +1 -2
- package/dist/types/components/Toast/_types.d.ts +1 -1
- package/dist/types/components/ToggleButton/_types.d.ts +4 -4
- package/dist/types/components/UploadArea/UploadArea.d.ts +2 -6
- package/dist/types/components/UploadArea/_types.d.ts +1 -3
- 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-BIlyoz-U.js → MdStreamBuffer-BiFYXGu6.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-B2qZwRe5.js → SSEConnection-CygPbs0L.js} +0 -0
- /package/dist/cjs/chunks/{_types-KVtz1JIf.js → _types-jaI3KEVY.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-COtQiyA7.js → audioVisualizer-Dmtjjosj.js} +0 -0
- /package/dist/cjs/chunks/{broadcastChannel-Cqzs7sXX.js → broadcastChannel-CRR59lw6.js} +0 -0
- /package/dist/cjs/chunks/{colors-CmJHFEI7.js → colors-Dok44sXW.js} +0 -0
- /package/dist/cjs/chunks/{debounce-TfVmWD0v.js → debounce-C3P6vOcn.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-C6J4X4Z_.js → modalStore--QHdUyuE.js} +0 -0
- /package/dist/cjs/chunks/{rafThrottle-QTFO3TjH.js → rafThrottle-DlDdrddz.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-BeP4wu1R.js → sharedTypes-BW_hw-Vb.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-DksXXZ-l.js → tipStore-DAb0BV40.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-DaSJFhEz.js → toastStore-6OcUl7VL.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-B8RWDz3P.js → tslib.es6-Y3RzGMQw.js} +0 -0
- /package/dist/cjs/chunks/{videoStore-COp8iv9F.js → videoStore-B2FtqVfG.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-BzkkcjT9.mjs → MdStreamBuffer-D3J2CXWe.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-BpZWD_YR.mjs → SSEConnection-5GuqCTf8.mjs} +0 -0
- /package/dist/esm/chunks/{_types-BEg4q3Ct.mjs → _types-CLPtELrL.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-B7i2Eluw.mjs → audioVisualizer-BO_hMyyp.mjs} +0 -0
- /package/dist/esm/chunks/{broadcastChannel-Bw5Pck80.mjs → broadcastChannel-B8FxWRVj.mjs} +0 -0
- /package/dist/esm/chunks/{colors-6NoVF74x.mjs → colors-Pe71RB3l.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-BXeBit77.mjs → debounce-O12UHVJH.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-CC-D_muU.mjs → modalStore-CBW78_cT.mjs} +0 -0
- /package/dist/esm/chunks/{rafThrottle-B25fapDv.mjs → rafThrottle-Cf-gEuLq.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-h1aSeCm2.mjs → sharedTypes-ySBopm8X.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-B1G8sE05.mjs → tipStore-DHu8QqNR.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-9muAYcgx.mjs → toastStore-EbAo-Cjj.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-p9eD9VLE.mjs → tslib.es6-uJhEruZV.mjs} +0 -0
- /package/dist/esm/chunks/{videoStore-Z2NndKsG.mjs → videoStore-TxVsMj8s.mjs} +0 -0
|
@@ -1,15 +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 { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
import React, { useState, useCallback, useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { corners } from "../theme/corners.mjs";
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { s as setStyle, a as accessibleKeyDown } from "./misc-O5ZSVDP0.mjs";
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { I as Icon } from "./Icon-CGqm8lg7.mjs";
|
|
13
|
+
|
|
14
|
+
import { T as ToolTipType } from "./sharedTypes-ySBopm8X.mjs";
|
|
13
15
|
|
|
14
16
|
var css = {
|
|
15
17
|
chip: "Chip-module_chip__0nys- flexBox-module_row__z24tF",
|
|
@@ -17,11 +19,12 @@ var css = {
|
|
|
17
19
|
xs: "Chip-module_xs__s-KNG type-module_body-xs-regular__ZAFft",
|
|
18
20
|
s: "Chip-module_s__2KTXi type-module_body-s-regular__vRHSP",
|
|
19
21
|
m: "Chip-module_m__l2u3N type-module_body-m-regular__LuQBA",
|
|
20
|
-
l: "Chip-module_l__3MqPN type-module_body-l-regular__lOYbg"
|
|
22
|
+
l: "Chip-module_l__3MqPN type-module_body-l-regular__lOYbg",
|
|
23
|
+
xl: "Chip-module_xl__iJX-F type-module_body-xl-regular__pF2kC"
|
|
21
24
|
};
|
|
22
25
|
|
|
23
26
|
const Chip = React.memo(props => {
|
|
24
|
-
const {variant: variant = "normal", children: children, label: label, icon: icon, tooltip: tooltip, iconSize: iconSize = 20, disabled: disabled = !1, focused: focused = !1, iconPosition: iconPosition = "left", labelSize: labelSize = "m", labelColor: labelColor = "var(--core-text-primary)", labelColorHover: labelColorHover = ("normal" === variant ? labelColor : "var(--core-text-special)"), iconColor: iconColor = "var(--core-text-primary)", iconColorHover: iconColorHover = ("normal" === variant ? iconColor : "var(--core-text-special)"), backgroundColor: backgroundColor, backgroundColorHover: backgroundColorHover, borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-text-primary)", borderColorHover: borderColorHover = ("normal" === variant ? borderColor : "var(--core-text-special)"), borderColorDisabled: borderColorDisabled = "var(--core-text-disabled)",
|
|
27
|
+
const {variant: variant = "normal", children: children, label: label, icon: icon, tooltip: tooltip, iconSize: iconSize = 20, disabled: disabled = !1, focused: focused = !1, iconPosition: iconPosition = "left", labelSize: labelSize = "m", labelColor: labelColor = "var(--core-text-primary)", labelColorHover: labelColorHover = ("normal" === variant ? labelColor : "var(--core-text-special)"), iconColor: iconColor = "var(--core-text-primary)", iconColorHover: iconColorHover = ("normal" === variant ? iconColor : "var(--core-text-special)"), backgroundColor: backgroundColor = "transparent", backgroundColorHover: backgroundColorHover = ("normal" === variant ? backgroundColor : "var(--core-surface-secondary)"), borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-text-primary)", borderColorHover: borderColorHover = ("normal" === variant ? borderColor : "var(--core-text-special)"), borderColorDisabled: borderColorDisabled = "var(--core-text-disabled)", borderRadius: borderRadius = corners["corner-m"], paddingTop: paddingTop, paddingTops: paddingTops = 8, paddingSides: paddingSides = 16, gap: gap = 4, onToolTip: onToolTip = () => null, onClick: onClick = () => null} = props, divAttributes = __rest(props, [ "variant", "children", "label", "icon", "tooltip", "iconSize", "disabled", "focused", "iconPosition", "labelSize", "labelColor", "labelColorHover", "iconColor", "iconColorHover", "backgroundColor", "backgroundColorHover", "borderWidth", "borderSize", "borderColor", "borderColorHover", "borderColorDisabled", "borderRadius", "paddingTop", "paddingTops", "paddingSides", "gap", "onToolTip", "onClick" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isHovered, setIsHovered] = useState(!1), resolvedBackgroundColor = backgroundColor, resolvedBackgroundColorHover = backgroundColorHover, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, resolvedPaddingTop = null != paddingTop ? paddingTop : paddingTops, handleClick = useCallback(e => {
|
|
25
28
|
disabled || onClick(e);
|
|
26
29
|
}, [ disabled, onClick ]), handleMouseEnter = useCallback((enter, event) => {
|
|
27
30
|
if (enter) {
|
|
@@ -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,15 +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 "./webRTCStore-
|
|
18
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
19
19
|
|
|
20
|
-
import "./microphoneStore-
|
|
20
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
21
21
|
|
|
22
|
-
import "./volumeStore-
|
|
22
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
23
23
|
|
|
24
24
|
import "../hooks/useWindow.mjs";
|
|
25
25
|
|
|
@@ -51,10 +51,10 @@ const DraggablePanel = React.memo(props => {
|
|
|
51
51
|
width: 10,
|
|
52
52
|
color: "transparent",
|
|
53
53
|
offsetX: !0
|
|
54
|
-
}, 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 = {
|
|
55
55
|
height: 24,
|
|
56
56
|
width: 9
|
|
57
|
-
}, 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);
|
|
58
58
|
const handleWindowResize = useCallback(() => {
|
|
59
59
|
(null == containerRef ? void 0 : containerRef.current) || setContWidth(window.innerWidth);
|
|
60
60
|
}, [ containerRef ]), handleMouseOver = useCallback(() => {
|
|
@@ -90,13 +90,7 @@ const DraggablePanel = React.memo(props => {
|
|
|
90
90
|
timer.current && clearTimeout(timer.current), state ? timer.current = setTimeout(() => {
|
|
91
91
|
setHandleHighlight(state);
|
|
92
92
|
}, isTouchDevice ? 0 : 350) : setHandleHighlight(!1);
|
|
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) => {
|
|
94
|
-
if (null == constraints ? void 0 : constraints.min) {
|
|
95
|
-
if (newWidth <= constraints.min) return !1;
|
|
96
|
-
if (newWidth < constraints.min) return !1;
|
|
97
|
-
}
|
|
98
|
-
return !((null == constraints ? void 0 : constraints.max) && newWidth >= constraints.max && clientX - startX.current > 0);
|
|
99
|
-
}, [ 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 => {
|
|
100
94
|
if (null == div ? void 0 : div.current) {
|
|
101
95
|
e.stopPropagation(), e.preventDefault();
|
|
102
96
|
const el = div.current, clientX = getClientX(e), newWidth = getNewWidth(clientX);
|
|
@@ -126,7 +120,16 @@ const DraggablePanel = React.memo(props => {
|
|
|
126
120
|
onResize(update), onResizeEnd(update);
|
|
127
121
|
}
|
|
128
122
|
setLastWidth(divWidth.current), isOver.current || setHighlight(!1);
|
|
129
|
-
}, [ 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 => {
|
|
130
133
|
if ((null == div ? void 0 : div.current) && document.defaultView) {
|
|
131
134
|
setIsDragging(!0);
|
|
132
135
|
const el = div.current;
|
|
@@ -157,8 +160,8 @@ const DraggablePanel = React.memo(props => {
|
|
|
157
160
|
} : {
|
|
158
161
|
left: isTouchDevice ? -22 : -(gripper.width || 10) / 2
|
|
159
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(() => ({
|
|
160
|
-
"--panel-bg": null !=
|
|
161
|
-
}), [
|
|
163
|
+
"--panel-bg": null != backgroundColor ? backgroundColor : "transparent"
|
|
164
|
+
}), [ backgroundColor ]);
|
|
162
165
|
return jsxs("div", Object.assign({
|
|
163
166
|
id: divId,
|
|
164
167
|
className: `${css_panel}${divClass}`,
|
|
@@ -166,6 +169,7 @@ const DraggablePanel = React.memo(props => {
|
|
|
166
169
|
onContextMenu: e => (disableOnContext && e.preventDefault(), !0),
|
|
167
170
|
style: Object.assign(Object.assign(Object.assign({}, divStyle), cssVars), {
|
|
168
171
|
overflow: "visible",
|
|
172
|
+
flexShrink: 0,
|
|
169
173
|
width: width,
|
|
170
174
|
height: "100%",
|
|
171
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",
|
|
@@ -18,6 +20,7 @@ var css = {
|
|
|
18
20
|
s: "DropDown-module_s__vAxXD type-module_body-s-regular__vRHSP",
|
|
19
21
|
m: "DropDown-module_m__K6JPk type-module_body-m-regular__LuQBA",
|
|
20
22
|
l: "DropDown-module_l__Kib48 type-module_body-l-regular__lOYbg",
|
|
23
|
+
xl: "DropDown-module_xl__mwc0C type-module_body-xl-regular__pF2kC",
|
|
21
24
|
chevron: "DropDown-module_chevron__LkYsE flexBox-module_rowStart__4tcxS",
|
|
22
25
|
select: "DropDown-module_select__mzNnv"
|
|
23
26
|
};
|
|
@@ -27,7 +30,7 @@ function resolveValueKey(value, valueKey) {
|
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
function DropDownComponent(props) {
|
|
30
|
-
const {name: name = "drop-down-select", label: label, labelColor: labelColor = "var(--core-text-primary)",
|
|
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);
|
|
31
34
|
useEffect(() => {
|
|
32
35
|
if (null == selectedValue && void 0 !== selectedIndex && (null == ref ? void 0 : ref.current)) {
|
|
33
36
|
if (!(null == options ? void 0 : options[selectedIndex])) return;
|
|
@@ -78,10 +81,10 @@ function DropDownComponent(props) {
|
|
|
78
81
|
style: Object.assign(Object.assign({}, divStyle), cssVars)
|
|
79
82
|
}, rest, {
|
|
80
83
|
children: [ label && jsx("span", {
|
|
81
|
-
className: `${css.label} ${css[
|
|
84
|
+
className: `${css.label} ${css[textSize]}`,
|
|
82
85
|
children: label
|
|
83
86
|
}), jsx("span", {
|
|
84
|
-
className: `${css.face} ${css[
|
|
87
|
+
className: `${css.face} ${css[textSize]}`,
|
|
85
88
|
children: jsx("span", {
|
|
86
89
|
className: css.faceText,
|
|
87
90
|
children: displayText
|
|
@@ -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,15 +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 "./webRTCStore-
|
|
20
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
21
21
|
|
|
22
|
-
import "./microphoneStore-
|
|
22
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
23
23
|
|
|
24
|
-
import "./volumeStore-
|
|
24
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
25
25
|
|
|
26
26
|
import "../hooks/useWindow.mjs";
|
|
27
27
|
|
|
@@ -34,11 +34,12 @@ var css = {
|
|
|
34
34
|
xs: "ErrorSummary-module_xs__pTqMn type-module_body-xs-regular__ZAFft",
|
|
35
35
|
s: "ErrorSummary-module_s__u2sIP type-module_body-s-regular__vRHSP",
|
|
36
36
|
m: "ErrorSummary-module_m__-QyP- type-module_body-m-regular__LuQBA",
|
|
37
|
-
l: "ErrorSummary-module_l__bb1xZ type-module_body-l-regular__lOYbg"
|
|
37
|
+
l: "ErrorSummary-module_l__bb1xZ type-module_body-l-regular__lOYbg",
|
|
38
|
+
xl: "ErrorSummary-module_xl__SaVRd type-module_body-xl-regular__pF2kC"
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
const ErrorSummary = React.memo(props => {
|
|
41
|
-
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(() => ({
|
|
42
43
|
enter: {
|
|
43
44
|
opacity: 0,
|
|
44
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,15 +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 "./webRTCStore-
|
|
18
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
19
19
|
|
|
20
|
-
import "./microphoneStore-
|
|
20
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
21
21
|
|
|
22
|
-
import "./volumeStore-
|
|
22
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
23
23
|
|
|
24
24
|
import "../hooks/useWindow.mjs";
|
|
25
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,
|
|
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";
|
|
@@ -173,7 +173,7 @@ const FileList = React.memo(props => {
|
|
|
173
173
|
}, rest, {
|
|
174
174
|
children: displayList.map(i => {
|
|
175
175
|
return jsxs("div", {
|
|
176
|
-
className: `${css.file} ${css[
|
|
176
|
+
className: `${css.file} ${css[textSize]}`,
|
|
177
177
|
style: fileCSSVars(i.progress, i.error),
|
|
178
178
|
children: [ jsx("div", {
|
|
179
179
|
className: css.fileIcon,
|
|
@@ -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,19 +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 "./webRTCStore-
|
|
18
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
19
19
|
|
|
20
|
-
import "./microphoneStore-
|
|
20
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
21
21
|
|
|
22
|
-
import "./volumeStore-
|
|
22
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
23
23
|
|
|
24
24
|
import "../hooks/useWindow.mjs";
|
|
25
25
|
|
|
26
|
-
import { B as Badge } from "./Badge-
|
|
26
|
+
import { B as Badge } from "./Badge-DIru-w6O.mjs";
|
|
27
27
|
|
|
28
|
-
import { I as Icon } from "./Icon-
|
|
28
|
+
import { I as Icon } from "./Icon-CGqm8lg7.mjs";
|
|
29
29
|
|
|
30
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";
|
|
31
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,15 +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 "./webRTCStore-
|
|
18
|
+
import "./webRTCStore-fNJiXwLR.mjs";
|
|
19
19
|
|
|
20
|
-
import "./microphoneStore-
|
|
20
|
+
import "./microphoneStore-B9HEjn8x.mjs";
|
|
21
21
|
|
|
22
|
-
import "./volumeStore-
|
|
22
|
+
import "./volumeStore-C2AnBA5B.mjs";
|
|
23
23
|
|
|
24
24
|
import "../hooks/useWindow.mjs";
|
|
25
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",
|
|
@@ -13,7 +15,8 @@ var LabelBackground, css = {
|
|
|
13
15
|
xs: "Label-module_xs__K9Ai6 type-module_body-xs-regular__ZAFft",
|
|
14
16
|
s: "Label-module_s__Zh8Gp type-module_body-s-regular__vRHSP",
|
|
15
17
|
m: "Label-module_m__BJtGL type-module_body-m-regular__LuQBA",
|
|
16
|
-
l: "Label-module_l__t70tt type-module_body-l-regular__lOYbg"
|
|
18
|
+
l: "Label-module_l__t70tt type-module_body-l-regular__lOYbg",
|
|
19
|
+
xl: "Label-module_xl__bX0ub type-module_body-xl-regular__pF2kC"
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
function resolveSemanticBackground(backgroundColor) {
|
|
@@ -23,7 +26,7 @@ function resolveSemanticBackground(backgroundColor) {
|
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
function Label(props) {
|
|
26
|
-
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 => {
|
|
27
30
|
isInteractive && (null == onClick || onClick(e));
|
|
28
31
|
}, [ isInteractive, onClick ]), setBgColor = useMemo(() => {
|
|
29
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(() => ({
|