@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,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var AnimationPreset, AnimationType, tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var AnimationPreset, AnimationType, tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), theme_corners = require("../theme/corners.js"), Badge = require("./Badge-DNzsgQk9.js"), Dot = require("./Dot-nWPzJqlj.js"), Icon = require("./Icon-VcvTUkMA.js"), sharedTypes = require("./sharedTypes-BW_hw-Vb.js"), css_button = "IconButton-module_button__rziqa flexBox-module_row__z24tF", css_label = "IconButton-module_label__qWGFD flexBox-module_row__z24tF type-module_body-l-regular__lOYbg", css_icon = "IconButton-module_icon__2DDWy flexBox-module_row__z24tF", css_count = "IconButton-module_count__6r373 flexBox-module_row__z24tF";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Helper for quick popular animation effects
|
|
@@ -99,7 +99,7 @@ const presetAnimation = {
|
|
|
99
99
|
transition: transition
|
|
100
100
|
});
|
|
101
101
|
}, IconButton = React.memo(props => {
|
|
102
|
-
const {frameSize: frameSize = 36, iconSize: iconSize = 20, round: round = !0, icon: icon = "more", borderRadius: borderRadius =
|
|
102
|
+
const {frameSize: frameSize = 36, iconSize: iconSize = 20, round: round = !0, icon: icon = "more", borderRadius: borderRadius = theme_corners.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 = tslib_es6.__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 = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", ref = React.useRef(null), [on, setOn] = React.useState(isToggled), [hovered, setHovered] = React.useState(!1);
|
|
103
103
|
React.useEffect(() => setOn(isToggled), [ isToggled ]);
|
|
104
104
|
const handleClick = React.useCallback(e => {
|
|
105
105
|
disabled || (tooltip && onToolTip(null), toggle && setOn(!on), onClick(e));
|
|
@@ -116,7 +116,7 @@ const presetAnimation = {
|
|
|
116
116
|
onToolTip(tip);
|
|
117
117
|
}, [ tooltip, onToolTip ]), handleMouseLeave = React.useCallback(() => {
|
|
118
118
|
setHovered(!1), tooltip && onToolTip(null);
|
|
119
|
-
}, [ tooltip, onToolTip ]), bgColorNormal = React.useMemo(() => on ?
|
|
119
|
+
}, [ tooltip, onToolTip ]), bgColorNormal = React.useMemo(() => on ? backgroundColorOn : null != backgroundColor ? backgroundColor : "var(--core-surface-secondary)", [ backgroundColorOn, backgroundColor, on ]), bgHoverColor = React.useMemo(() => hover && on ? backgroundColorOn : hover ? backgroundColorHover : null != backgroundColor ? backgroundColor : "transparent", [ hover, backgroundColor, backgroundColorOn, backgroundColorHover, on ]), textColor = React.useMemo(() => on ? colorOn : null != color ? color : "var(--core-text-primary)", [ on, colorOn, color ]), setIconColor = React.useMemo(() => on ? iconColorOn : hovered ? iconColorHover : null != iconColor ? iconColor : "var(--core-text-primary)", [ on, iconColorOn, iconColor, iconColorHover, hovered ]), size = React.useMemo(() => buttonSize ? "s" === buttonSize ? 24 : "m" === buttonSize ? 36 : "l" === buttonSize ? 44 : "xl" === buttonSize ? 56 : void 0 : frameSize, [ frameSize, buttonSize ]), cssVars = React.useMemo(() => ({
|
|
120
120
|
"--ib-bg-color": bgColorNormal,
|
|
121
121
|
"--ib-bg-color-hover": disabled ? bgColorNormal : bgHoverColor,
|
|
122
122
|
"--ib-icon-size": `${null != iconSize ? iconSize : 0}px`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require("./tslib.es6-
|
|
3
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js");
|
|
4
4
|
|
|
5
5
|
exports.IndexedDB = class {
|
|
6
6
|
constructor(storeName, options = {}) {
|
|
@@ -43,7 +43,8 @@ exports.IndexedDB = class {
|
|
|
43
43
|
* Get a single DB value by key.
|
|
44
44
|
*/ get(key) {
|
|
45
45
|
return tslib_es6.__awaiter(this, void 0, void 0, function*() {
|
|
46
|
-
|
|
46
|
+
const value = yield this.runRequest("readonly", store => store.get(key));
|
|
47
|
+
return null != value ? value : null;
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
/**
|
|
@@ -62,15 +63,18 @@ exports.IndexedDB = class {
|
|
|
62
63
|
}
|
|
63
64
|
set(key, value) {
|
|
64
65
|
return tslib_es6.__awaiter(this, void 0, void 0, function*() {
|
|
65
|
-
return this.runRequest("readwrite", store => store.put(value, key));
|
|
66
|
+
return this.runRequest("readwrite", store => this.key ? store.put(value) : store.put(value, key));
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
69
|
/**
|
|
69
70
|
* Adds a new value to the store with or without a key.
|
|
70
71
|
* If a key already exists it will error.
|
|
72
|
+
*
|
|
73
|
+
* As with `set()`, a store configured with an in-line key path must never
|
|
74
|
+
* be given an explicit key - it is always derived from the value.
|
|
71
75
|
*/ add(value, key) {
|
|
72
76
|
return tslib_es6.__awaiter(this, void 0, void 0, function*() {
|
|
73
|
-
return this.runRequest("readwrite", store => void 0 === key ? store.add(value) : store.add(value, key));
|
|
77
|
+
return this.runRequest("readwrite", store => this.key || void 0 === key ? store.add(value) : store.add(value, key));
|
|
74
78
|
});
|
|
75
79
|
}
|
|
76
80
|
/**
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var LabelBackground, tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var LabelBackground, tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), theme_corners = require("../theme/corners.js"), misc = require("./misc-B2oK3rIL.js"), css = {
|
|
5
5
|
label: "Label-module_label__RaRvM",
|
|
6
6
|
button: "Label-module_button__N8bcQ type-module_body-m-regular__LuQBA",
|
|
7
7
|
xs: "Label-module_xs__K9Ai6 type-module_body-xs-regular__ZAFft",
|
|
8
8
|
s: "Label-module_s__Zh8Gp type-module_body-s-regular__vRHSP",
|
|
9
9
|
m: "Label-module_m__BJtGL type-module_body-m-regular__LuQBA",
|
|
10
|
-
l: "Label-module_l__t70tt type-module_body-l-regular__lOYbg"
|
|
10
|
+
l: "Label-module_l__t70tt type-module_body-l-regular__lOYbg",
|
|
11
|
+
xl: "Label-module_xl__bX0ub type-module_body-xl-regular__pF2kC"
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
function resolveSemanticBackground(backgroundColor) {
|
|
@@ -20,7 +21,7 @@ exports.LabelBackground = void 0, (LabelBackground = exports.LabelBackground ||
|
|
|
20
21
|
LabelBackground.yellow = "yellow", LabelBackground.green = "green", LabelBackground.blue = "blue",
|
|
21
22
|
LabelBackground.grey = "grey", LabelBackground.lightGrey = "lightGrey", LabelBackground.white = "white",
|
|
22
23
|
exports.Label = function(props) {
|
|
23
|
-
const {children: children, label: label, backgroundColor: backgroundColor, borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-outline-primary)",
|
|
24
|
+
const {children: children, label: label, backgroundColor: backgroundColor = "transparent", borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-outline-primary)", borderRadius: borderRadius = theme_corners.corners["corner-xs"], padding: padding, textColor: textColor = "var(--core-text-primary)", textSize: textSize = "s", onClick: onClick} = props, divAttributes = tslib_es6.__rest(props, [ "children", "label", "backgroundColor", "borderWidth", "borderSize", "borderColor", "borderRadius", "padding", "textColor", "textSize", "onClick" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", isInteractive = Boolean(onClick), resolvedBackgroundColor = backgroundColor, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, handleClick = React.useCallback(e => {
|
|
24
25
|
isInteractive && (null == onClick || onClick(e));
|
|
25
26
|
}, [ isInteractive, onClick ]), setBgColor = React.useMemo(() => {
|
|
26
27
|
if (!resolvedBackgroundColor) return "transparent";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), theme_corners = require("../theme/corners.js"), misc = require("./misc-B2oK3rIL.js"), audioVisualizer = require("./audioVisualizer-Dmtjjosj.js");
|
|
5
5
|
|
|
6
|
-
require("./broadcastChannel-
|
|
6
|
+
require("./broadcastChannel-CRR59lw6.js");
|
|
7
7
|
|
|
8
8
|
var css_wrapper = "Level-module_wrapper__yOfXw", css_barContainer = "Level-module_barContainer__QMUdv", css_bar = "Level-module_bar__MnApX";
|
|
9
9
|
|
|
10
10
|
const Level = React.memo(function(props) {
|
|
11
|
-
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 =
|
|
11
|
+
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 = theme_corners.corners["corner-xs"], borderColor: borderColor = "transparent", borderWidth: borderWidth = 0, colorActive: colorActive = "var(--feedback-positive)", backgroundColor: backgroundColor = "var(--core-surface-primary-tint)"} = props, divAttributes = tslib_es6.__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 = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", visualizerRef = React.useRef(null), [normalizedIntensity, setNormalizedIntensity] = React.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 = React.useMemo(() => new Array(totalBars).fill(0).map((_, index) => index), [ totalBars ]), activeBars = React.useMemo(() => {
|
|
12
12
|
const scaledBars = Math.round(minBars + normalizedIntensity * (totalBars - minBars));
|
|
13
13
|
return Math.max(minBars, Math.min(scaledBars, totalBars));
|
|
14
14
|
}, [ minBars, normalizedIntensity, totalBars ]), visualizerSettings = React.useMemo(() => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), theme_corners = require("../theme/corners.js"), misc = require("./misc-B2oK3rIL.js"), Button = require("./Button-GrPLJIBP.js"), Icon = require("./Icon-VcvTUkMA.js"), IconButton = require("./IconButton-Cz7iTVhO.js"), css = {
|
|
5
5
|
wrapper: "Modal-module_wrapper__34Hds flexBox-module_columnBetween__ERfp7",
|
|
6
6
|
title: "Modal-module_title__A5OeE flexBox-module_rowBetween__5FEvi",
|
|
7
7
|
titleBlock: "Modal-module_titleBlock__HUepX flexBox-module_rowStart__4tcxS",
|
|
@@ -19,7 +19,7 @@ var tslib_es6 = require("./tslib.es6-B8RWDz3P.js"), jsxRuntime = require("react/
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
const Modal = React.memo(props => {
|
|
22
|
-
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,
|
|
22
|
+
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 = theme_corners.corners["corner-m"], borderWidth: borderWidth = 1} = props, rest = tslib_es6.__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 = React.useRef(null), modalStyle = null != style ? style : {}, modalClass = className ? ` ${className}` : "", [scrolls, setScrolls] = React.useState(!1), getScrolls = React.useCallback(() => {
|
|
23
23
|
var _a, _b;
|
|
24
24
|
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;
|
|
25
25
|
return !(!height || !scrollHeight) && height < scrollHeight;
|
|
@@ -75,7 +75,7 @@ const Modal = React.memo(props => {
|
|
|
75
75
|
style: Object.assign(Object.assign({}, modalStyle), cssVars)
|
|
76
76
|
}, rest, {
|
|
77
77
|
children: [ (title || close) && jsxRuntime.jsxs("div", {
|
|
78
|
-
className: `${css.title} ${css[
|
|
78
|
+
className: `${css.title} ${css[titleTextSize]}`,
|
|
79
79
|
onPointerDown: onDragPointerDown,
|
|
80
80
|
children: [ jsxRuntime.jsxs("div", {
|
|
81
81
|
className: css.titleBlock,
|
|
@@ -93,6 +93,7 @@ const Modal = React.memo(props => {
|
|
|
93
93
|
className: css.titleIcon,
|
|
94
94
|
children: jsxRuntime.jsx(IconButton.IconButton, {
|
|
95
95
|
tooltip: "close",
|
|
96
|
+
"aria-label": "close",
|
|
96
97
|
icon: "x",
|
|
97
98
|
onClick: () => {
|
|
98
99
|
null == onReject || onReject(new Error("Modal was closed", {
|
|
@@ -107,7 +108,7 @@ const Modal = React.memo(props => {
|
|
|
107
108
|
className: css.contentWrapper,
|
|
108
109
|
ref: contentWrapperRef,
|
|
109
110
|
children: jsxRuntime.jsx("div", {
|
|
110
|
-
className: `${css.content} ${css[
|
|
111
|
+
className: `${css.content} ${css[contentTextSize]}`,
|
|
111
112
|
children: children
|
|
112
113
|
})
|
|
113
114
|
}), actions && actions.length > 0 && jsxRuntime.jsxs("div", {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
var jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react");
|
|
5
5
|
|
|
6
|
-
require("./microphoneStore-
|
|
7
|
-
require("./webRTCStore-
|
|
6
|
+
require("./microphoneStore-axA5TgKM.js"), require("./volumeStore-D64ziNWo.js"),
|
|
7
|
+
require("./webRTCStore-XciamNCa.js");
|
|
8
8
|
|
|
9
|
-
var Overlay = require("./Overlay-
|
|
9
|
+
var Overlay = require("./Overlay-B0jNgBu3.js"), modalStore = require("./modalStore--QHdUyuE.js"), css_container = "ModalController-module_container__3cSaO", css_box = "ModalController-module_box__cPzOz", css_wrapper = "ModalController-module_wrapper__HkOoX flexBox-module_row__z24tF";
|
|
10
10
|
|
|
11
11
|
const defaultTransition = {
|
|
12
12
|
ease: "easeOut",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), css_overlay = "Overlay-module_overlay__EkbfA";
|
|
5
5
|
|
|
6
6
|
const defaultTransition = {
|
|
7
7
|
ease: "easeOut",
|
|
8
8
|
duration: .25
|
|
9
9
|
}, Overlay = React.memo(props => {
|
|
10
|
-
const {children: children, show: show = !1, type: type = "clear", global: global = !1, overlay: overlay, color: color = "rgb(0,0,0)", opacity: opacity
|
|
10
|
+
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 = tslib_es6.__rest(props, [ "children", "show", "type", "global", "overlay", "color", "opacity", "transition", "onClick", "toggleOverlay" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", computedOpacity = React.useMemo(() => "clear" === type ? 0 : void 0 !== opacity ? opacity : "dark" === type ? .8 : 0, [ type, opacity ]), handleClick = React.useCallback(() => {
|
|
11
11
|
global && toggleOverlay(!1), onClick();
|
|
12
12
|
}, [ global, toggleOverlay, onClick ]), handleContextMenu = React.useCallback(e => {
|
|
13
13
|
e.preventDefault();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-B2oK3rIL.js"), css_wrapper = "Pager-module_wrapper__eutVg flexBox-module_row__z24tF", css_bullet = "Pager-module_bullet__TxyR5 flexBox-module_row__z24tF", css_selected = "Pager-module_selected__C6xbR";
|
|
5
5
|
|
|
6
6
|
const Pager = React.memo(props => {
|
|
7
7
|
const {size: size = 8, index: index = 0, color: color, colorHover: colorHover, colorOn: colorOn, pages: pages = 2, gap: gap = 4, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "size", "index", "color", "colorHover", "colorOn", "pages", "gap", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [selected, setSelected] = React.useState(index), bullets = React.useMemo(() => Array.from({
|
|
@@ -5,13 +5,13 @@ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_u
|
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js"), require("../theme/type.js");
|
|
7
7
|
|
|
8
|
-
var tslib_es6 = require("./tslib.es6-
|
|
8
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js");
|
|
9
9
|
|
|
10
|
-
require("./broadcastChannel-
|
|
11
|
-
require("./microphoneStore-
|
|
10
|
+
require("./broadcastChannel-CRR59lw6.js"), require("./webRTCStore-XciamNCa.js"),
|
|
11
|
+
require("./microphoneStore-axA5TgKM.js"), require("./volumeStore-D64ziNWo.js"),
|
|
12
12
|
require("../hooks/useWindow.js");
|
|
13
13
|
|
|
14
|
-
var Icon = require("./Icon-
|
|
14
|
+
var Icon = require("./Icon-VcvTUkMA.js"), react = require("motion/react"), css$1_wrapper = "DoneCheck-module_wrapper__AlISD flexBox-module_row__z24tF", css$1_icon = "DoneCheck-module_icon__bKaFp flexBox-module_row__z24tF";
|
|
15
15
|
|
|
16
16
|
const DoneCheck = React.memo(props => {
|
|
17
17
|
const theme = hooks_useTheme.useTheme(), {size: size = 88, stroke: stroke = 1.5, color: color = theme.current.colors["feedback-positive"], play: play = !0, delay: delay = 5, duration: duration = 1, didStart: didStart, didEnd: didEnd} = props, [playing, setPlaying] = React.useState(!play);
|
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
|
|
4
4
|
var jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
|
-
require("../theme/colors.js")
|
|
6
|
+
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var theme_corners = require("../theme/corners.js");
|
|
9
9
|
|
|
10
|
-
require("
|
|
11
|
-
|
|
10
|
+
require("../theme/type.js"), require("./tslib.es6-Y3RzGMQw.js");
|
|
11
|
+
|
|
12
|
+
var misc = require("./misc-B2oK3rIL.js");
|
|
13
|
+
|
|
14
|
+
require("./broadcastChannel-CRR59lw6.js"), require("./webRTCStore-XciamNCa.js"),
|
|
15
|
+
require("./microphoneStore-axA5TgKM.js"), require("./volumeStore-D64ziNWo.js"),
|
|
12
16
|
require("../hooks/useWindow.js");
|
|
13
17
|
|
|
14
|
-
var Button = require("./Button-
|
|
18
|
+
var Button = require("./Button-GrPLJIBP.js"), FileList = require("./FileList-NDj9e_To.js"), css = {
|
|
15
19
|
wrapperBg: "PromptInput-module_wrapperBg__zabZq flexBox-module_columnStart__C7P44",
|
|
16
20
|
bgRotate: "PromptInput-module_bgRotate__Um720",
|
|
17
21
|
textareaWrapper: "PromptInput-module_textareaWrapper__KusiV flexBox-module_columnStart__C7P44",
|
|
@@ -20,13 +24,15 @@ var Button = require("./Button-Cep3SqsR.js"), FileList = require("./FileList-CBG
|
|
|
20
24
|
buttonBar: "PromptInput-module_buttonBar__X8LDe flexBox-module_rowBetween__5FEvi",
|
|
21
25
|
toolBar: "PromptInput-module_toolBar__GBvPT flexBox-module_rowStart__4tcxS",
|
|
22
26
|
textarea: "PromptInput-module_textarea__e4Kxn",
|
|
27
|
+
xs: "PromptInput-module_xs__Oy1ZT type-module_body-xs-regular__ZAFft",
|
|
23
28
|
s: "PromptInput-module_s__ivyC9 type-module_body-s-regular__vRHSP",
|
|
24
29
|
m: "PromptInput-module_m__LFHvW type-module_body-m-regular__LuQBA",
|
|
25
|
-
l: "PromptInput-module_l__TlceW type-module_body-l-regular__lOYbg"
|
|
30
|
+
l: "PromptInput-module_l__TlceW type-module_body-l-regular__lOYbg",
|
|
31
|
+
xl: "PromptInput-module_xl__FbITb type-module_body-xl-regular__pF2kC"
|
|
26
32
|
};
|
|
27
33
|
|
|
28
34
|
const PromptInputBase = React.forwardRef((props, ref) => {
|
|
29
|
-
const {children: children, attachments: attachments = [], value: value = "", width: width = "100%", maxWidth: maxWidth, minWidth: minWidth, working: working = !1, maxHeight: maxHeight, attachmentsDisabled: attachmentsDisabled = !1, submitWorking: submitWorking = !1, borderStyle: borderStyle = "gradient", borderColor: borderColor, borderColorOn: borderColorOn, borderAnimate: borderAnimate = !0, borderWidth: borderWidth = 1, borderRadius: borderRadius =
|
|
35
|
+
const {children: children, attachments: attachments = [], value: value = "", width: width = "100%", maxWidth: maxWidth, minWidth: minWidth, working: working = !1, maxHeight: maxHeight, attachmentsDisabled: attachmentsDisabled = !1, submitWorking: submitWorking = !1, borderStyle: borderStyle = "gradient", borderColor: borderColor, borderColorOn: borderColorOn, borderAnimate: borderAnimate = !0, borderWidth: borderWidth = 1, borderRadius: borderRadius = theme_corners.corners["corner-m"], focused: focused = !1, placeholder: placeholder = "Ask me anything ...", placeholderWorking: placeholderWorking = "Working ...", submitClears: submitClears = !0, enterSubmits: enterSubmits = !0, attachButton: attachButton = !0, sendButton: sendButton = !0, stopEnabled: stopEnabled = !1, textSize: textSize = "m", maxLength: maxLength, toolbarGap: toolbarGap = 8, onChange: onChange, onBlur: onBlur, onFocus: onFocus, onSubmit: onSubmit, onStop: onStop, onAttachmentsChange: onAttachmentsChange} = props, {isDark: isDark} = hooks_useTheme.useTheme(), [isFocused, setIsFocused] = React.useState(null != focused && focused), [textValue, setTextValue] = React.useState(value), textAreaRef = React.useRef(null), handleFocus = React.useCallback(() => {
|
|
30
36
|
var _a, _b;
|
|
31
37
|
setIsFocused(!0), null === (_a = null == textAreaRef ? void 0 : textAreaRef.current) || void 0 === _a || _a.focus(),
|
|
32
38
|
null == onFocus || onFocus(null === (_b = textAreaRef.current) || void 0 === _b ? void 0 : _b.value, attachments);
|
|
@@ -95,8 +101,8 @@ const PromptInputBase = React.forwardRef((props, ref) => {
|
|
|
95
101
|
children: jsxRuntime.jsx(FileList.FileList, {
|
|
96
102
|
files: attachments,
|
|
97
103
|
onChange: handleAttachmentsChange,
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
backgroundColor: "var(--core-surface-primary)",
|
|
105
|
+
textSize: "s",
|
|
100
106
|
direction: "row",
|
|
101
107
|
gap: 8,
|
|
102
108
|
iconSize: 24
|
|
@@ -138,7 +144,7 @@ const PromptInputBase = React.forwardRef((props, ref) => {
|
|
|
138
144
|
iconLeft: stopEnabled ? "stop" : "arrow up",
|
|
139
145
|
iconSize: stopEnabled ? 16 : 20,
|
|
140
146
|
state: sendButtonState,
|
|
141
|
-
|
|
147
|
+
backgroundColorDisabled: "var(--core-outline-primary)",
|
|
142
148
|
progress: !stopEnabled,
|
|
143
149
|
working: submitWorking && working,
|
|
144
150
|
onMouseDown: handleClickSend,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-B2oK3rIL.js"), Icon = require("./Icon-VcvTUkMA.js"), css_wrapper = "RadioButton-module_wrapper__-pWRe flexBox-module_row__z24tF", css_radioIcon = "RadioButton-module_radioIcon__I27Xv flexBox-module_column__ezvMq", css_radioTitle = "RadioButton-module_radioTitle__zCQII flexBox-module_rowStart__4tcxS type-module_body-m-regular__LuQBA", css_radioContent = "RadioButton-module_radioContent__38xVx flexBox-module_columnStart__C7P44";
|
|
5
5
|
|
|
6
6
|
function RadioButtonComponent(props) {
|
|
7
7
|
const {label: label, children: children, fieldName: fieldName, value: value, selected: selected = !1, controlType: controlType = "radio", deselect: deselect = !0, tabIndex: tabIndex = 0, wrap: wrap = !1, list: list = !1, hideRadio: hideRadio = !1, noFrame: noFrame = !0, icon: icon = "circle", checkedIcon: checkedIcon = "check circle", iconColor: iconColor, gap: gap = 6, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "label", "children", "fieldName", "value", "selected", "controlType", "deselect", "tabIndex", "wrap", "list", "hideRadio", "noFrame", "icon", "checkedIcon", "iconColor", "gap", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isSelected, setIsSelected] = React.useState(selected);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-B2oK3rIL.js"), RadioButton = require("./RadioButton-oZxMZCpd.js"), css_wrapper = "RadioButtonList-module_wrapper__wnq1-", css_column = "RadioButtonList-module_column__Bq16e flexBox-module_columnStart__C7P44", css_row = "RadioButtonList-module_row__D3szq flexBox-module_rowStart__4tcxS";
|
|
5
5
|
|
|
6
6
|
function RadioButtonListComponent(props) {
|
|
7
7
|
const {width: width = "min-content", options: options = [], selectedIndexes: selectedIndexes = null, selectedOptions: selectedOptions = null, label: label = null, deselect: deselect = !1, multiSelect: multiSelect = !1, wrap: wrap = !1, tabIndexSeed: tabIndexSeed = 0, spacer: spacer = "none", custom: custom = 0, gap: gap = 16, hideRadio: hideRadio = !1, noFrame: noFrame = !0, toggleIcon: toggleIcon = !0, iconColor: iconColor, icon: icon = "circle", checkedIcon: checkedIcon = "check circle", iconSelectedColor: iconSelectedColor, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "width", "options", "selectedIndexes", "selectedOptions", "label", "deselect", "multiSelect", "wrap", "tabIndexSeed", "spacer", "custom", "gap", "hideRadio", "noFrame", "toggleIcon", "iconColor", "icon", "checkedIcon", "iconSelectedColor", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", labelId = React.useId(), [selected, setSelected] = React.useState(selectedIndexes);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react");
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js"), require("../theme/type.js");
|
|
7
7
|
|
|
8
|
-
var misc = require("./misc-
|
|
8
|
+
var misc = require("./misc-B2oK3rIL.js"), debounce = require("./debounce-C3P6vOcn.js");
|
|
9
9
|
|
|
10
|
-
require("./broadcastChannel-
|
|
11
|
-
require("./microphoneStore-
|
|
10
|
+
require("./broadcastChannel-CRR59lw6.js"), require("./webRTCStore-XciamNCa.js"),
|
|
11
|
+
require("./microphoneStore-axA5TgKM.js"), require("./volumeStore-D64ziNWo.js"),
|
|
12
12
|
require("../hooks/useWindow.js");
|
|
13
13
|
|
|
14
14
|
var hooks_useObserveResize = require("../hooks/useObserveResize.js"), css_wrapper = "Slider-module_wrapper__KCCs1", css_trackBg = "Slider-module_trackBg__7zfqm flexBox-module_rowStart__4tcxS", css_track = "Slider-module_track__kaJkL flexBox-module_rowStart__4tcxS", css_trackHead = "Slider-module_trackHead__W-UdG", css_trackWrapper = "Slider-module_trackWrapper__Ot0Wh flexBox-module_rowStart__4tcxS";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react");
|
|
5
5
|
|
|
6
6
|
const Spacer = React.memo(props => {
|
|
7
7
|
const {size: size = 8} = props, divAttributes = tslib_es6.__rest(props, [ "size" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), spacerStyle = React.useMemo(() => ({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), css_wrapper = "Switch-module_wrapper__kudO9 flexBox-module_row__z24tF", css_knob = "Switch-module_knob__vKNOc flexBox-module_row__z24tF";
|
|
5
5
|
|
|
6
6
|
function SwitchComponent(props) {
|
|
7
|
-
const {fieldName: fieldName, state: state = !1, value: value, height: height = 22, width: width = 44, padding: padding = 3, backgroundColorOn: backgroundColorOn
|
|
7
|
+
const {fieldName: fieldName, state: state = !1, value: value, height: height = 22, width: width = 44, padding: padding = 3, backgroundColorOn: backgroundColorOn = "var(--feedback-positive)", backgroundColorOff: backgroundColorOff = "var(--core-text-disabled)", knobColor: knobColor = "var(--core-surface-primary)", onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "fieldName", "state", "value", "height", "width", "padding", "backgroundColorOn", "backgroundColorOff", "knobColor", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [on, setOn] = React.useState(state), resolvedBackgroundColorOn = backgroundColorOn, resolvedBackgroundColorOff = backgroundColorOff;
|
|
8
8
|
React.useEffect(() => {
|
|
9
9
|
setOn(state);
|
|
10
10
|
}, [ state ]);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js"), require("../theme/type.js");
|
|
7
7
|
|
|
8
|
-
var misc = require("./misc-
|
|
8
|
+
var misc = require("./misc-B2oK3rIL.js");
|
|
9
9
|
|
|
10
|
-
require("./broadcastChannel-
|
|
11
|
-
require("./microphoneStore-
|
|
10
|
+
require("./broadcastChannel-CRR59lw6.js"), require("./webRTCStore-XciamNCa.js"),
|
|
11
|
+
require("./microphoneStore-axA5TgKM.js"), require("./volumeStore-D64ziNWo.js"),
|
|
12
12
|
require("../hooks/useWindow.js");
|
|
13
13
|
|
|
14
|
-
var Badge = require("./Badge-
|
|
14
|
+
var Badge = require("./Badge-DNzsgQk9.js"), Icon = require("./Icon-VcvTUkMA.js"), IconButton = require("./IconButton-Cz7iTVhO.js"), sharedTypes = require("./sharedTypes-BW_hw-Vb.js"), css = {
|
|
15
15
|
wrapper: "TabBar-module_wrapper__cyOR1 flexBox-module_rowStart__4tcxS",
|
|
16
16
|
option: "TabBar-module_option__gYjDf flexBox-module_row__z24tF",
|
|
17
17
|
icon: "TabBar-module_icon__JDgG3 flexBox-module_row__z24tF",
|
|
@@ -69,9 +69,9 @@ const placeholderOptions = [ {
|
|
|
69
69
|
}
|
|
70
70
|
null !== nextIndex && (event.preventDefault(), handleOptionClick(nextIndex), focusOption(nextIndex));
|
|
71
71
|
}, [ options.length, handleOptionClick, focusOption ]), renderedOptions = React.useMemo(() => options.map((option, i) => jsxRuntime.jsx(Option, {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
name: option.name,
|
|
73
|
+
index: i,
|
|
74
|
+
toolTip: option.toolTip,
|
|
75
75
|
selected: i === index,
|
|
76
76
|
padding: padding,
|
|
77
77
|
icon: option.icon,
|
|
@@ -125,21 +125,21 @@ const placeholderOptions = [ {
|
|
|
125
125
|
TabBar.displayName = "TabBar";
|
|
126
126
|
|
|
127
127
|
const Option = React.memo(props => {
|
|
128
|
-
const theme = hooks_useTheme.useTheme(), {
|
|
129
|
-
if (onToolTip(null),
|
|
128
|
+
const theme = hooks_useTheme.useTheme(), {name: name = "Option", index: index = 0, icon: icon = null, selected: selected = !1, onClick: onClick = () => null, onToolTip: onToolTip = () => null, padding: padding = 8, iconSize: iconSize = 20, iconGap: iconGap = 6, disabled: disabled = !1, toolTip: toolTip = null, underline: underline = !0, tabWidth: tabWidth = "fill", borderColor: borderColor = "var(--core-outline-secondary)", count: count = 0, iconFill: iconFill = !1, textSize: textSize = "m", onKeyDown: onKeyDown = () => null, buttonRef: buttonRef} = props, ref = React.useRef(null), strokeColor = React.useMemo(() => !disabled && selected ? theme.current.colors["core-text-special"] : disabled ? theme.current.colors["core-text-disabled"] : theme.current.colors["core-text-primary"], [ disabled, selected, theme ]), handleMouseOver = React.useCallback(e => {
|
|
129
|
+
if (onToolTip(null), toolTip && ref.current) {
|
|
130
130
|
const tip = {
|
|
131
131
|
type: sharedTypes.ToolTipType.button,
|
|
132
132
|
payload: {
|
|
133
|
-
label:
|
|
133
|
+
label: toolTip
|
|
134
134
|
},
|
|
135
135
|
event: e,
|
|
136
136
|
ref: ref
|
|
137
137
|
};
|
|
138
138
|
onToolTip(tip);
|
|
139
139
|
}
|
|
140
|
-
}, [
|
|
141
|
-
|
|
142
|
-
}, [
|
|
140
|
+
}, [ toolTip, onToolTip ]), handleMouseLeave = React.useCallback(() => {
|
|
141
|
+
toolTip && onToolTip(null);
|
|
142
|
+
}, [ toolTip, onToolTip ]), textColor = React.useMemo(() => disabled ? "var(--core-text-disabled)" : selected ? "var(--core-text-special)" : "var(--core-text-primary)", [ disabled, selected ]), setTabWidth = React.useMemo(() => "compact" === tabWidth ? "min-content" : "fill" === tabWidth ? "unset" : `${tabWidth}px`, [ tabWidth ]), setTabFlex = React.useMemo(() => "fill" === tabWidth ? "1" : "unset", [ tabWidth ]), setUnderline = React.useMemo(() => selected && underline && !disabled ? "1px" : "0", [ underline, disabled, selected ]), cssVars = React.useMemo(() => ({
|
|
143
143
|
"--tab-bar-option-border": setUnderline,
|
|
144
144
|
"--tab-bar-option-border-color": borderColor,
|
|
145
145
|
"--tab-bar-option-padding": misc.setStyle(padding, "8px"),
|
|
@@ -162,8 +162,8 @@ const Option = React.memo(props => {
|
|
|
162
162
|
tabIndex: selected ? 0 : -1,
|
|
163
163
|
onMouseEnter: handleMouseOver,
|
|
164
164
|
onMouseLeave: handleMouseLeave,
|
|
165
|
-
onClick: () => onClick(
|
|
166
|
-
onKeyDown: e => onKeyDown(e,
|
|
165
|
+
onClick: () => onClick(index),
|
|
166
|
+
onKeyDown: e => onKeyDown(e, index),
|
|
167
167
|
children: [ icon && jsxRuntime.jsx("div", {
|
|
168
168
|
className: css.icon,
|
|
169
169
|
children: jsxRuntime.jsx(Icon.Icon, {
|
|
@@ -172,12 +172,12 @@ const Option = React.memo(props => {
|
|
|
172
172
|
size: iconSize,
|
|
173
173
|
strokeColor: strokeColor
|
|
174
174
|
})
|
|
175
|
-
}),
|
|
175
|
+
}), name, 0 !== count && jsxRuntime.jsx(Badge.Badge, {
|
|
176
176
|
variant: "light",
|
|
177
177
|
hideNull: !1,
|
|
178
178
|
count: count
|
|
179
179
|
}) ]
|
|
180
180
|
});
|
|
181
|
-
}, (prevProps, nextProps) => prevProps.selected === nextProps.selected && prevProps.underline === nextProps.underline && prevProps.tabWidth === nextProps.tabWidth && prevProps.disabled === nextProps.disabled && prevProps.iconGap === nextProps.iconGap && prevProps.iconSize === nextProps.iconSize && prevProps.count === nextProps.count && prevProps.
|
|
181
|
+
}, (prevProps, nextProps) => prevProps.selected === nextProps.selected && prevProps.underline === nextProps.underline && prevProps.tabWidth === nextProps.tabWidth && prevProps.disabled === nextProps.disabled && prevProps.iconGap === nextProps.iconGap && prevProps.iconSize === nextProps.iconSize && prevProps.count === nextProps.count && prevProps.icon === nextProps.icon && prevProps.borderColor === nextProps.borderColor && prevProps.textSize === nextProps.textSize && prevProps.padding === nextProps.padding && prevProps.name === nextProps.name && prevProps.index === nextProps.index);
|
|
182
182
|
|
|
183
183
|
Option.displayName = "TabOption", exports.TabBar = TabBar;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), theme_corners = require("../theme/corners.js"), Button = require("./Button-GrPLJIBP.js"), css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0 scrollBars-module_scrollbars__c-ZPl", css_send = "TextArea-module_send__Cub13", css_xs = "TextArea-module_xs__5e748 type-module_body-xs-regular__ZAFft", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
|
|
5
5
|
|
|
6
6
|
const TextArea = React.memo(props => {
|
|
7
|
-
const {value: value = "", name: name = "text_area", width: width = "100%", height: height = "auto", focused: focused = !1, placeholder: placeholder = "Enter text here...", rows: rows = 6, border: border = !0, borderRadius: borderRadius =
|
|
7
|
+
const {value: value = "", name: name = "text_area", width: width = "100%", height: height = "auto", focused: focused = !1, placeholder: placeholder = "Enter text here...", rows: rows = 6, border: border = !0, borderRadius: borderRadius = theme_corners.corners["corner-xs"], padding: padding = "16px 4px 16px 16px", error: error = !1, resizable: resizable = !0, hasSend: hasSend = !1, sendOffset: sendOffset = {
|
|
8
8
|
bottom: 10,
|
|
9
9
|
right: 10
|
|
10
|
-
}, sendSize: sendSize = 36, returnSubmits: returnSubmits = !1, backgroundColor: backgroundColor,
|
|
10
|
+
}, sendSize: sendSize = 36, returnSubmits: returnSubmits = !1, backgroundColor: backgroundColor, minWidth: minWidth, textSize: textSize = "m", disabled: disabled = !1, submitClears: submitClears = !0, maxLength: maxLength, onChange: onChange = () => null, onFocus: onFocus = () => null, onBlur: onBlur = () => null, onSubmit: onSubmit = () => null, onKeyDown: onKeyDown = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "value", "name", "width", "height", "focused", "placeholder", "rows", "border", "borderRadius", "padding", "error", "resizable", "hasSend", "sendOffset", "sendSize", "returnSubmits", "backgroundColor", "minWidth", "textSize", "disabled", "submitClears", "maxLength", "onChange", "onFocus", "onBlur", "onSubmit", "onKeyDown" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = backgroundColor, [isFocused, setIsFocused] = React.useState(focused), [text, setText] = React.useState(value), ref = React.useRef(null), handleResize = React.useCallback(() => {
|
|
11
11
|
(null == ref ? void 0 : ref.current) && (ref.current.style.height = "auto", ref.current.style.height = `${ref.current.scrollHeight}px`);
|
|
12
12
|
}, []);
|
|
13
13
|
React.useEffect(() => {
|
|
@@ -23,8 +23,8 @@ const TextArea = React.memo(props => {
|
|
|
23
23
|
var _a, _b;
|
|
24
24
|
setIsFocused(!1), onBlur(null !== (_b = null === (_a = ref.current) || void 0 === _a ? void 0 : _a.value) && void 0 !== _b ? _b : "");
|
|
25
25
|
}, [ onBlur ]), handleSubmit = React.useCallback(e => {
|
|
26
|
-
null == e || e.preventDefault(), handleFocus(), onSubmit(text), submitClears && setText(""),
|
|
27
|
-
|
|
26
|
+
null == e || e.preventDefault(), handleFocus(), onSubmit(text), submitClears && (setText(""),
|
|
27
|
+
ref.current && (ref.current.value = "")), handleResize();
|
|
28
28
|
}, [ handleFocus, onSubmit, text, submitClears, handleResize ]), handleKeyDownWrapper = React.useCallback(e => {
|
|
29
29
|
returnSubmits && "Enter" === e.key && (e.preventDefault(), e.stopPropagation(),
|
|
30
30
|
handleSubmit(void 0)), onKeyDown(e);
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-Y3RzGMQw.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
|
-
require("../theme/colors.js")
|
|
6
|
+
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var theme_corners = require("../theme/corners.js");
|
|
9
9
|
|
|
10
|
-
require("
|
|
11
|
-
|
|
10
|
+
require("../theme/type.js");
|
|
11
|
+
|
|
12
|
+
var misc = require("./misc-B2oK3rIL.js");
|
|
13
|
+
|
|
14
|
+
require("./broadcastChannel-CRR59lw6.js"), require("./webRTCStore-XciamNCa.js"),
|
|
15
|
+
require("./microphoneStore-axA5TgKM.js"), require("./volumeStore-D64ziNWo.js"),
|
|
12
16
|
require("../hooks/useWindow.js");
|
|
13
17
|
|
|
14
|
-
var Button = require("./Button-
|
|
18
|
+
var Button = require("./Button-GrPLJIBP.js"), Icon = require("./Icon-VcvTUkMA.js"), IconButton = require("./IconButton-Cz7iTVhO.js"), css = {
|
|
15
19
|
wrapper: "TextField-module_wrapper__qZ-p- flexBox-module_rowStart__4tcxS",
|
|
16
20
|
container: "TextField-module_container__5U9yK flexBox-module_rowStart__4tcxS",
|
|
17
21
|
label: "TextField-module_label__jD8MR flexBox-module_rowStart__4tcxS",
|
|
@@ -21,7 +25,8 @@ var Button = require("./Button-Cep3SqsR.js"), Icon = require("./Icon-NDphOLR6.js
|
|
|
21
25
|
xs: "TextField-module_xs__vyt2t type-module_body-xs-regular__ZAFft",
|
|
22
26
|
s: "TextField-module_s__0qm83 type-module_body-s-regular__vRHSP",
|
|
23
27
|
m: "TextField-module_m__M-tLl type-module_body-m-regular__LuQBA",
|
|
24
|
-
l: "TextField-module_l__gbNRz type-module_body-l-regular__lOYbg"
|
|
28
|
+
l: "TextField-module_l__gbNRz type-module_body-l-regular__lOYbg",
|
|
29
|
+
xl: "TextField-module_xl__tp--W type-module_body-xl-regular__pF2kC"
|
|
25
30
|
};
|
|
26
31
|
|
|
27
32
|
const MOTION_CONFIG = {
|
|
@@ -44,7 +49,7 @@ const MOTION_CONFIG = {
|
|
|
44
49
|
const theme = hooks_useTheme.useTheme(), {name: name = "input_name", value: value = "", label: label, labelSize: labelSize = "m", textSize: textSize = "m", placeholder: placeholder = "placeholder", focused: focused = !1, onSubmit: onSubmit = () => null, onChange: onChange = () => null, onBlur: onBlur = () => null, onFocus: onFocus = () => null, onKeydown: onKeydown = () => null, onAction: onAction = () => null, onPaste: onPaste = () => null, onClear: onClear = () => null, actionButton: actionButton = !1, maxLength: maxLength, size: size = {
|
|
45
50
|
width: "100%",
|
|
46
51
|
height: "auto"
|
|
47
|
-
}, padding: padding, borderRadius: borderRadius =
|
|
52
|
+
}, padding: padding, borderRadius: borderRadius = theme_corners.corners["corner-m"], editable: editable = !0, textAlign: textAlign = "left", inline: inline = !1, noShow: noShow = !1, borderType: borderType = "box", error: error = !1, borderColorFocused: borderColorFocused = "var(--core-link-primary)", borderColorBlurred: borderColorBlurred = "var(--core-outline-primary)", borderColorError: borderColorError = "var(--feedback-warning)", backgroundColorFocused: backgroundColorFocused = "var(--core-surface-secondary)", backgroundColorBlurred: backgroundColorBlurred = "var(--core-surface-secondary)", textColorFocused: textColorFocused = "var(--core-text-primary)", textColorBlurred: textColorBlurred = "var(--core-text-primary)", textColorError: textColorError = "var(--feedback-warning)", textColorPlaceholder: textColorPlaceholder = "var(--core-text-disabled)", textColorDisabled: textColorDisabled = "var(--core-text-disabled)", labelColor: labelColor = "var(--core-text-primary)", iconLeft: iconLeft, clearButton: clearButton = {
|
|
48
53
|
size: 20
|
|
49
54
|
}, clearBlurs: clearBlurs = !1, disabled: disabled = !1, inputType: inputType = "text"} = props, divAttributes = tslib_es6.__rest(props, [ "name", "value", "label", "labelSize", "textSize", "placeholder", "focused", "onSubmit", "onChange", "onBlur", "onFocus", "onKeydown", "onAction", "onPaste", "onClear", "actionButton", "maxLength", "size", "padding", "borderRadius", "editable", "textAlign", "inline", "noShow", "borderType", "error", "borderColorFocused", "borderColorBlurred", "borderColorError", "backgroundColorFocused", "backgroundColorBlurred", "textColorFocused", "textColorBlurred", "textColorError", "textColorPlaceholder", "textColorDisabled", "labelColor", "iconLeft", "clearButton", "clearBlurs", "disabled", "inputType" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", input = React.useRef(null), [text, setText] = React.useState(value), [isFocused, setIsFocused] = React.useState(focused), [show, setShow] = React.useState(!1);
|
|
50
55
|
React.useEffect(() => {
|