@apple-pie/slice 0.1.31 → 0.1.33
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/README.md +35 -284
- package/dist/cjs/chunks/{AudioBubble-k7qS53g6.js → AudioBubble-_eYM1QMu.js} +4 -3
- package/dist/cjs/chunks/{Avatar-hP8GuwvD.js → Avatar-DTro_MXZ.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-DMy34q7_.js → AvatarGroup-OPJJ_Te5.js} +1 -1
- package/dist/cjs/chunks/{Badge-D2TbyfJS.js → Badge-DWUeXxm2.js} +1 -1
- package/dist/cjs/chunks/{Button-CTsHZBEB.js → Button-CuGvPAkH.js} +1 -1
- package/dist/cjs/chunks/{ButtonBar-BRb1PTmw.js → ButtonBar-CbXToyfD.js} +1 -1
- package/dist/cjs/chunks/{Camera-CKv087kr.js → Camera-DjENiyud.js} +5 -4
- package/dist/cjs/chunks/{CheckBox-VRIL1FHh.js → CheckBox-DiJpbdy5.js} +1 -1
- package/dist/cjs/chunks/{Chip-Dr3vKvRY.js → Chip-kzOvEo0P.js} +1 -1
- package/dist/cjs/chunks/{DivInput-Ci0gaCWL.js → DivInput-B917fKB9.js} +1 -1
- package/dist/cjs/chunks/{Dot-C0MvSJOl.js → Dot-DaRF2JyO.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-DflouLUs.js → DrggablePanel-CJTEmYW6.js} +4 -3
- package/dist/cjs/chunks/{DropDown-BS1H62yj.js → DropDown-DRSQvXCC.js} +1 -1
- package/dist/cjs/chunks/{ErrorSummary-B3tof7ir.js → ErrorSummary-ltiIsgJ6.js} +4 -3
- package/dist/cjs/chunks/{FileIcon-Te8MaqTs.js → FileIcon-WIVOTJLa.js} +5 -3
- package/dist/cjs/chunks/{FileList-CDcfKIV6.js → FileList-CzQZZErI.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-wO8IY0Zf.js → FlexDiv-CBENyLT4.js} +1 -1
- package/dist/cjs/chunks/{Grouper-DyGkzdvz.js → Grouper-Cd3AJEFv.js} +4 -3
- package/dist/cjs/chunks/{Icon-BFZ_5Qv3.js → Icon-DjvProjz.js} +4 -3
- package/dist/cjs/chunks/{IconButton-CgsuJIuF.js → IconButton-BuwQLUuj.js} +1 -1
- package/dist/cjs/chunks/{IndexedDB-Dgwal8na.js → IndexedDB-Ddhq6Gjd.js} +1 -1
- package/dist/cjs/chunks/{Label-BuyhcJbF.js → Label-d32ENzwL.js} +1 -1
- package/dist/cjs/chunks/Level-B8eT8XyV.js +58 -0
- package/dist/cjs/chunks/{MdStreamBuffer-CbG_VeRI.js → MdStreamBuffer-Chwibu07.js} +38 -16
- package/dist/cjs/chunks/{Modal-ByRyv3wy.js → Modal-CUAj4e6x.js} +34 -8
- package/dist/cjs/chunks/ModalController-BwFAVI5G.js +80 -0
- package/dist/cjs/chunks/{Overlay-FooE9M_s.js → Overlay-CaAA3ey5.js} +1 -1
- package/dist/cjs/chunks/{Pager-B-cuwffo.js → Pager-uExZ5E3x.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-ByZ_aYAZ.js → ProgressIndicator-DwqslY4o.js} +4 -3
- package/dist/cjs/chunks/{PromptInput--grtHPvy.js → PromptInput-Dl8l8cZv.js} +34 -30
- package/dist/cjs/chunks/{RadioButton-DP2X1dA_.js → RadioButton-DPpAOFQt.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-COGNW5y3.js → RadioButtonList-IbPA6A3y.js} +1 -1
- package/dist/cjs/chunks/{Slider-G1a8UKef.js → Slider-D5oa7NGy.js} +1 -1
- package/dist/cjs/chunks/{Spacer-CsRCleXv.js → Spacer-DtUh2VLv.js} +1 -1
- package/dist/cjs/chunks/{Switch-OBVHKn_D.js → Switch-Bs0r5va5.js} +1 -1
- package/dist/cjs/chunks/{TabBar-C1HkBaxE.js → TabBar-BCSTg_Uc.js} +4 -3
- package/dist/cjs/chunks/{TextArea-BEmNI_HZ.js → TextArea-Dj7jsvVr.js} +1 -1
- package/dist/cjs/chunks/{TextField-D9_COA9H.js → TextField-DNP0wJla.js} +5 -4
- package/dist/cjs/chunks/{Tip-2W0u_oQN.js → Tip-awq6PDZa.js} +1 -1
- package/dist/cjs/chunks/{Toast-B9jX6ioq.js → Toast-xS1TC3Ba.js} +7 -6
- package/dist/cjs/chunks/{ToggleButton-C_Gu5dYR.js → ToggleButton-CqD5c6JA.js} +4 -3
- package/dist/cjs/chunks/{UploadArea-ENFAf4tE.js → UploadArea-CvWqk8YK.js} +1 -1
- package/dist/cjs/chunks/{WSConnection-CZ22tcLz.js → WSConnection-BACWw4TS.js} +1 -1
- package/dist/cjs/chunks/WebRTCConnection-DBeyg4j9.js +252 -0
- package/dist/cjs/chunks/{localDBStore-Ca73jeFf.js → localDBStore-wgCc1SmV.js} +1 -1
- package/dist/cjs/chunks/{microphoneStore-lxYIvhN8.js → microphoneStore-Dy5TwE2I.js} +27 -4
- package/dist/cjs/chunks/{misc-DZAbObFp.js → misc-BwQIEIuF.js} +1 -1
- package/dist/cjs/chunks/{sseStore-Bq7sVvyA.js → sseStore-CFFaYonG.js} +2 -2
- package/dist/cjs/chunks/{uploads-worker-CD-annza.js → uploads-worker-DWvOe9F8.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-CUeB10zx.js → uploadsStore-BCmts7Ie.js} +2 -2
- package/dist/cjs/chunks/{volumeStore-roYTyKJ2.js → volumeStore-BXFAQhvS.js} +5 -4
- package/dist/cjs/chunks/webRTCStore-DRjvbnve.js +55 -0
- package/dist/cjs/chunks/{windowStore-BdJv-RF0.js → windowStore-C4Bg6I9i.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +6 -4
- package/dist/cjs/components/Avatar/index.js +3 -3
- package/dist/cjs/components/AvatarGroup/index.js +3 -3
- package/dist/cjs/components/Badge/index.js +2 -2
- package/dist/cjs/components/Button/index.js +9 -7
- package/dist/cjs/components/ButtonBar/index.js +6 -4
- package/dist/cjs/components/Camera/index.js +7 -5
- package/dist/cjs/components/CheckBox/index.js +6 -4
- package/dist/cjs/components/Chip/index.js +7 -5
- package/dist/cjs/components/DivInput/index.js +3 -3
- package/dist/cjs/components/Dot/index.js +2 -2
- package/dist/cjs/components/DraggablePanel/index.js +5 -3
- package/dist/cjs/components/DropDown/index.js +6 -4
- package/dist/cjs/components/ErrorSummary/index.js +5 -3
- package/dist/cjs/components/FileIcon/index.js +5 -3
- package/dist/cjs/components/FileList/index.js +7 -5
- package/dist/cjs/components/FlexDiv/index.js +2 -2
- package/dist/cjs/components/Grouper/index.js +7 -5
- package/dist/cjs/components/Icon/index.js +5 -3
- package/dist/cjs/components/IconButton/index.js +8 -6
- package/dist/cjs/components/Label/index.js +3 -3
- package/dist/cjs/components/Level/index.js +7 -0
- package/dist/cjs/components/Modal/index.js +10 -8
- package/dist/cjs/components/ModalController/index.js +6 -4
- package/dist/cjs/components/Overlay/index.js +2 -2
- package/dist/cjs/components/Pager/index.js +3 -3
- package/dist/cjs/components/Progress/index.js +5 -3
- package/dist/cjs/components/PromptInput/index.js +9 -7
- package/dist/cjs/components/RadioButton/index.js +6 -4
- package/dist/cjs/components/RadioButtonList/index.js +7 -5
- package/dist/cjs/components/Slider/index.js +4 -4
- package/dist/cjs/components/Spacer/index.js +2 -2
- package/dist/cjs/components/Switch/index.js +2 -2
- package/dist/cjs/components/TabBar/index.js +8 -6
- package/dist/cjs/components/TextArea/index.js +9 -7
- package/dist/cjs/components/Textfield/index.js +9 -7
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +6 -4
- package/dist/cjs/components/ToggleButton/index.js +9 -7
- package/dist/cjs/components/UploadArea/index.js +11 -10
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +60 -0
- package/dist/cjs/hooks/useLocalStore.js +3 -3
- package/dist/cjs/hooks/useMdStreamBuffer.js +55 -30
- package/dist/cjs/hooks/useMicrophone.js +1 -1
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +7 -4
- package/dist/cjs/index.js +19 -18
- package/dist/cjs/providers/ThemeProvider.js +5 -4
- package/dist/cjs/providers/themeServer.js +15 -9
- package/dist/cjs/stores/LocalDB.js +3 -3
- package/dist/cjs/stores/SSE.js +2 -2
- package/dist/cjs/stores/WS.js +2 -2
- package/dist/cjs/stores/WebRTC.js +9 -0
- package/dist/cjs/stores/microphone.js +5 -4
- package/dist/cjs/stores/modal.js +1 -1
- package/dist/cjs/stores/tip.js +1 -1
- package/dist/cjs/stores/toast.js +1 -1
- package/dist/cjs/stores/uploads.js +2 -2
- package/dist/cjs/stores/volume.js +2 -2
- package/dist/cjs/stores/window.js +2 -2
- package/dist/cjs/stores.js +24 -19
- package/dist/cjs/utils/index.js +4 -3
- package/dist/cjs/utils/objects/index.js +4 -3
- package/dist/cjs/workers/uploads/uploads.js +2 -2
- package/dist/esm/chunks/{AudioBubble-DfrxyTX_.mjs → AudioBubble-SB1LCBlJ.mjs} +9 -3
- package/dist/esm/chunks/{Avatar-pA41Pcyl.mjs → Avatar-B6PcVOmT.mjs} +2 -2
- package/dist/esm/chunks/{AvatarGroup-CZBtWjnj.mjs → AvatarGroup-DEb3j2IZ.mjs} +2 -2
- package/dist/esm/chunks/{Badge-pLwG0zm7.mjs → Badge-bh5UVUnt.mjs} +1 -1
- package/dist/esm/chunks/{Button-BJoMLZIs.mjs → Button-CWKs3uAV.mjs} +6 -6
- package/dist/esm/chunks/{ButtonBar-BO2RUJ8R.mjs → ButtonBar-CWeMhkSb.mjs} +3 -3
- package/dist/esm/chunks/{Camera-4MNA52HG.mjs → Camera-BmuMA9xY.mjs} +11 -5
- package/dist/esm/chunks/{CheckBox-7KAsvZld.mjs → CheckBox-BR6a2n0j.mjs} +3 -3
- package/dist/esm/chunks/{Chip-BuGvCLLU.mjs → Chip-DXW0jxKf.mjs} +4 -4
- package/dist/esm/chunks/{DivInput-D0YzSWjJ.mjs → DivInput-BWO1EJXA.mjs} +2 -2
- package/dist/esm/chunks/{Dot-h26m47Z-.mjs → Dot-DMst-5Q2.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-Bh6HLPMX.mjs → DrggablePanel-qxrCS7Ot.mjs} +8 -2
- package/dist/esm/chunks/{DropDown-NgMYjjXn.mjs → DropDown-DlO2J4QP.mjs} +3 -3
- package/dist/esm/chunks/{ErrorSummary-nNm9qymE.mjs → ErrorSummary-BplQFunJ.mjs} +8 -2
- package/dist/esm/chunks/{FileIcon-BqyV1wut.mjs → FileIcon-iFmAF7_a.mjs} +8 -2
- package/dist/esm/chunks/{FileList-C1tOvoc0.mjs → FileList-CztHFCJe.mjs} +5 -5
- package/dist/esm/chunks/{FlexDiv-CkK-DAyg.mjs → FlexDiv-DGmDZL7M.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-CyrOkuu2.mjs → Grouper-DxOISLzH.mjs} +9 -3
- package/dist/esm/chunks/{Icon-DjW0Krm8.mjs → Icon-L8B35JN1.mjs} +8 -2
- package/dist/esm/chunks/{IconButton-DdLhTUl0.mjs → IconButton-DxwJemEK.mjs} +5 -5
- package/dist/esm/chunks/{IndexedDB-DVoDikoA.mjs → IndexedDB-DA5oZXju.mjs} +1 -1
- package/dist/esm/chunks/{Label-DhmJ_Sln.mjs → Label-wDPtyK4h.mjs} +2 -2
- package/dist/esm/chunks/Level-B9JayinM.mjs +63 -0
- package/dist/esm/chunks/{MdStreamBuffer-4AJH8WaN.mjs → MdStreamBuffer-Cyon3ytf.mjs} +38 -16
- package/dist/esm/chunks/{Modal-FztrJsQo.mjs → Modal-C-Q2A_RY.mjs} +39 -13
- package/dist/esm/chunks/ModalController-ClAjHLPb.mjs +91 -0
- package/dist/esm/chunks/{Overlay-Dsy55Bxm.mjs → Overlay-Dr9YYxJ6.mjs} +1 -1
- package/dist/esm/chunks/{Pager-BqSdwL0L.mjs → Pager-DPbTCMNe.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-BnqZFATV.mjs → ProgressIndicator-HaJJDZ-m.mjs} +8 -2
- package/dist/esm/chunks/{PromptInput-CRkcPXJu.mjs → PromptInput-wGhpXw-h.mjs} +38 -31
- package/dist/esm/chunks/{RadioButton-DXq3yniV.mjs → RadioButton-oOGgTDhg.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-BgOskHCP.mjs → RadioButtonList-CDWKVvyL.mjs} +3 -3
- package/dist/esm/chunks/{Slider-DPOy9uNI.mjs → Slider-ioPGftDY.mjs} +3 -3
- package/dist/esm/chunks/{Spacer-BJd_D0Fn.mjs → Spacer-VJBjxVlr.mjs} +1 -1
- package/dist/esm/chunks/{Switch-DHqlyizo.mjs → Switch-BCk2sTh3.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-RBXExqMK.mjs → TabBar-C1DYnCRx.mjs} +11 -5
- package/dist/esm/chunks/{TextArea-CIlx_P26.mjs → TextArea-CF3r5m2G.mjs} +2 -2
- package/dist/esm/chunks/{TextField-CX72ybwH.mjs → TextField-BNfTj9v2.mjs} +11 -5
- package/dist/esm/chunks/{Tip-COBSyEjm.mjs → Tip-DIKQvxxO.mjs} +2 -2
- package/dist/esm/chunks/{Toast-BTm3HxDD.mjs → Toast-CkXPrDpp.mjs} +12 -6
- package/dist/esm/chunks/{ToggleButton-DujsCKF3.mjs → ToggleButton-Dvy8fc4t.mjs} +5 -4
- package/dist/esm/chunks/{UploadArea-D--Nt8Ed.mjs → UploadArea-D_xGzR2e.mjs} +4 -4
- package/dist/esm/chunks/{WSConnection-BMXcuW3f.mjs → WSConnection-TiYLENWB.mjs} +1 -1
- package/dist/esm/chunks/WebRTCConnection-d0Yvd66q.mjs +252 -0
- package/dist/esm/chunks/{localDBStore-36E3160Z.mjs → localDBStore-C-5y16uv.mjs} +2 -2
- package/dist/esm/chunks/{microphoneStore-Cexu82zH.mjs → microphoneStore-Cbx9nV4R.mjs} +26 -3
- package/dist/esm/chunks/{misc-CTGTuM2J.mjs → misc-zecH7-IH.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-Dow4NXkZ.mjs → sseStore-DIquUNpm.mjs} +2 -2
- package/dist/esm/chunks/{tslib.es6-BX2F90pK.mjs → tslib.es6-CVvvNSPr.mjs} +1 -1
- package/dist/esm/chunks/{uploads-worker-Dhyp4ot3.mjs → uploads-worker-CUggKU9b.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-DT4lFybE.mjs → uploadsStore-9QngohOe.mjs} +1 -1
- package/dist/esm/chunks/{volumeStore-RAxdmQ60.mjs → volumeStore-BrgZCRKF.mjs} +5 -4
- package/dist/esm/chunks/webRTCStore-DhFE9-bb.mjs +57 -0
- package/dist/esm/chunks/{windowStore-C4AZexIa.mjs → windowStore-BKW7HyoD.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +14 -4
- package/dist/esm/components/Avatar/index.mjs +3 -3
- package/dist/esm/components/AvatarGroup/index.mjs +4 -4
- package/dist/esm/components/Badge/index.mjs +2 -2
- package/dist/esm/components/Button/index.mjs +18 -8
- package/dist/esm/components/ButtonBar/index.mjs +14 -4
- package/dist/esm/components/Camera/index.mjs +16 -6
- package/dist/esm/components/CheckBox/index.mjs +14 -4
- package/dist/esm/components/Chip/index.mjs +15 -5
- package/dist/esm/components/DivInput/index.mjs +3 -3
- package/dist/esm/components/Dot/index.mjs +2 -2
- package/dist/esm/components/DraggablePanel/index.mjs +13 -3
- package/dist/esm/components/DropDown/index.mjs +14 -4
- package/dist/esm/components/ErrorSummary/index.mjs +13 -3
- package/dist/esm/components/FileIcon/index.mjs +13 -3
- package/dist/esm/components/FileList/index.mjs +16 -6
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +15 -5
- package/dist/esm/components/Icon/index.mjs +14 -4
- package/dist/esm/components/IconButton/index.mjs +17 -7
- package/dist/esm/components/Label/index.mjs +3 -3
- package/dist/esm/components/Level/index.mjs +11 -0
- package/dist/esm/components/Modal/index.mjs +20 -10
- package/dist/esm/components/ModalController/index.mjs +14 -6
- package/dist/esm/components/Overlay/index.mjs +2 -2
- package/dist/esm/components/Pager/index.mjs +3 -3
- package/dist/esm/components/Progress/index.mjs +14 -4
- package/dist/esm/components/PromptInput/index.mjs +22 -12
- package/dist/esm/components/RadioButton/index.mjs +14 -4
- package/dist/esm/components/RadioButtonList/index.mjs +15 -5
- package/dist/esm/components/Slider/index.mjs +4 -4
- 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 +18 -8
- package/dist/esm/components/TextArea/index.mjs +19 -9
- package/dist/esm/components/Textfield/index.mjs +20 -10
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +15 -5
- package/dist/esm/components/ToggleButton/index.mjs +19 -9
- package/dist/esm/components/UploadArea/index.mjs +19 -9
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +72 -0
- package/dist/esm/hooks/useLocalStore.mjs +3 -3
- package/dist/esm/hooks/useMdStreamBuffer.mjs +56 -28
- package/dist/esm/hooks/useMicrophone.mjs +1 -1
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +14 -2
- package/dist/esm/index.mjs +62 -50
- package/dist/esm/providers/ThemeProvider.mjs +6 -5
- package/dist/esm/providers/themeServer.mjs +11 -6
- package/dist/esm/stores/LocalDB.mjs +3 -3
- package/dist/esm/stores/SSE.mjs +3 -3
- package/dist/esm/stores/WS.mjs +2 -2
- package/dist/esm/stores/WebRTC.mjs +7 -0
- package/dist/esm/stores/microphone.mjs +2 -2
- package/dist/esm/stores/modal.mjs +1 -1
- package/dist/esm/stores/tip.mjs +1 -1
- package/dist/esm/stores/toast.mjs +1 -1
- package/dist/esm/stores/uploads.mjs +3 -3
- package/dist/esm/stores/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +18 -14
- package/dist/esm/utils/index.mjs +11 -9
- package/dist/esm/utils/objects/index.mjs +8 -6
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +76 -13
- package/dist/types/components/Level/Level.d.ts +5 -0
- package/dist/types/components/Level/_types.d.ts +21 -0
- package/dist/types/components/Level/index.d.ts +2 -0
- package/dist/types/components/Modal/_types.d.ts +3 -0
- package/dist/types/components/PromptInput/PromptInput.d.ts +10 -2
- package/dist/types/components/PromptInput/_types.d.ts +5 -1
- package/dist/types/components/Toast/_types.d.ts +1 -0
- package/dist/types/components/ToggleButton/_types.d.ts +1 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useBindWebRTC/index.d.ts +1 -0
- package/dist/types/hooks/useBindWebRTC/useBindWebRTC.d.ts +15 -0
- package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +1 -1
- package/dist/types/hooks/useMdStreamBuffer/useMdStreamBuffer.d.ts +6 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/providers/ThemeProvider.d.ts +1 -0
- package/dist/types/providers/themeServer.d.ts +7 -3
- package/dist/types/stores/WebRTC/_types.d.ts +16 -0
- package/dist/types/stores/WebRTC/index.d.ts +2 -0
- package/dist/types/stores/WebRTC/webRTCStore.d.ts +21 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/microphone/index.d.ts +1 -1
- package/dist/types/stores/microphone/microphoneStore.d.ts +14 -1
- package/dist/types/stores/toast/_types.d.ts +1 -0
- package/dist/types/stores/volume/_types.d.ts +3 -1
- package/dist/types/stores/volume/volumeStore.d.ts +6 -2
- package/dist/types/utils/functions/files.d.ts +1 -1
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/objects/MDStreamBuffer/MdStreamBuffer.d.ts +10 -0
- package/dist/types/utils/objects/MDStreamBuffer/_types.d.ts +2 -0
- package/dist/types/utils/objects/WebRTCConnection/WebRTCConnection.d.ts +37 -3
- package/dist/types/utils/objects/WebRTCConnection/_types.d.ts +13 -4
- package/dist/types/utils/objects/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/chunks/ModalController-xjflFsjF.js +0 -68
- package/dist/esm/chunks/ModalController-C1BnM5Dz.mjs +0 -76
- /package/dist/cjs/chunks/{SSEConnection-ACoOeeTO.js → SSEConnection-CF5WZG9b.js} +0 -0
- /package/dist/cjs/chunks/{_types-k-3V1fz_.js → _types-BTdDWVYI.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-MOSbvvnZ.js → audioVisualizer-C7fMG0WH.js} +0 -0
- /package/dist/cjs/chunks/{colors-B0_3srZN.js → colors-CmOkcjB3.js} +0 -0
- /package/dist/cjs/chunks/{debounce-CaoYvh12.js → debounce-BtCCTkbG.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-D4bOjuWd.js → modalStore-CaQkdY5_.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-CthHPjrO.js → sharedTypes-BOieqpQy.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-CPB7RHKY.js → tipStore-4Bs9v2sg.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-6eHe6esp.js → toastStore-CyCE9-lr.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-CzpRaW14.js → tslib.es6-DqjaJVC3.js} +0 -0
- /package/dist/esm/chunks/{SSEConnection-qNnkZUOe.mjs → SSEConnection-g0GBGAqe.mjs} +0 -0
- /package/dist/esm/chunks/{_types-CEStVWlB.mjs → _types-9ekyeJYl.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-BUNbarKP.mjs → audioVisualizer-nMo67yOW.mjs} +0 -0
- /package/dist/esm/chunks/{colors-D-qeA9gU.mjs → colors-v5b8_oYV.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-D5b6tZ5a.mjs → debounce-DFxAyrPi.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-Crg_QmSJ.mjs → modalStore-D6_oc47l.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-U5H1I85x.mjs → sharedTypes-CdmzhKXN.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-pvswaezx.mjs → tipStore-C2M6zBzd.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-80oOTYsj.mjs → toastStore-B-6kdNHw.mjs} +0 -0
package/README.md
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
# Slice (`@apple-pie/slice`)
|
|
2
2
|
|
|
3
|
-
Slice is a TypeScript-first React UI kit with
|
|
3
|
+
Slice is a TypeScript-first React UI kit with themed components, hooks, optional Zustand stores, worker-backed uploads, and Storybook documentation.
|
|
4
4
|
|
|
5
5
|
The package is currently in beta. Until `1.0.0`, breaking API changes may still happen.
|
|
6
6
|
|
|
7
7
|
Docs and showcase: https://slice-uikit.com
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
GitHub repository: https://github.com/uris/uikit
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
npm install @apple-pie/slice
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Required peer dependencies:
|
|
11
|
+
## Installation
|
|
16
12
|
|
|
17
13
|
```bash
|
|
18
|
-
npm install react react-dom motion
|
|
14
|
+
npm install @apple-pie/slice react react-dom motion
|
|
19
15
|
```
|
|
20
16
|
|
|
21
17
|
Optional peer dependency for store APIs:
|
|
@@ -26,6 +22,20 @@ npm install zustand
|
|
|
26
22
|
|
|
27
23
|
## Quick Start
|
|
28
24
|
|
|
25
|
+
Import the package stylesheet once at your app root:
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import '@apple-pie/slice/styles.css';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Slice uses Funnel Sans as its default typeface. Load the font in your app so the theme typography renders correctly.
|
|
32
|
+
|
|
33
|
+
```css
|
|
34
|
+
@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap");
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Wrap your app with `ThemeProvider` and use components inside that scope:
|
|
38
|
+
|
|
29
39
|
```tsx
|
|
30
40
|
import '@apple-pie/slice/styles.css';
|
|
31
41
|
import { Avatar, Button, ThemeProvider, useTheme } from '@apple-pie/slice';
|
|
@@ -51,56 +61,17 @@ export default function App() {
|
|
|
51
61
|
}
|
|
52
62
|
```
|
|
53
63
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Slice uses Funnel Sans as its default typeface. Load the font in your app so the theme typography renders correctly.
|
|
57
|
-
|
|
58
|
-
```css
|
|
59
|
-
@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap");
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
`ThemeProvider` is the default theme bootstrap for the library. It sets the active `data-slice-theme` value on the document root and renders a `data-slice-theme-scope` wrapper. When `global` is enabled, it also applies the active theme's `core-surface-primary` color to the root document element and `document.body` backgrounds. In Safari, this also drives the browser header color.
|
|
64
|
+
For more setup examples, theming guidance, component docs, and Storybook demos, use the site:
|
|
63
65
|
|
|
64
|
-
|
|
66
|
+
- https://slice-uikit.com
|
|
65
67
|
|
|
66
|
-
|
|
68
|
+
## What Slice Includes
|
|
67
69
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
export function ConfirmExample() {
|
|
74
|
-
const actions = useModalActions();
|
|
75
|
-
const boundsRef = useRef<HTMLDivElement>(null);
|
|
76
|
-
|
|
77
|
-
const openModal = async () => {
|
|
78
|
-
try {
|
|
79
|
-
const result = await actions.modalResponse<'yes' | 'no'>({
|
|
80
|
-
component: Modal,
|
|
81
|
-
props: {
|
|
82
|
-
title: 'Continue?',
|
|
83
|
-
children: 'Are you sure you want to continue?',
|
|
84
|
-
actions: [
|
|
85
|
-
{ id: 'no', label: 'No', value: 'no' },
|
|
86
|
-
{ id: 'yes', label: 'Yes', value: 'yes', primary: true },
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
console.log(result);
|
|
91
|
-
} catch (error) {
|
|
92
|
-
console.error(error);
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
return (
|
|
97
|
-
<FlexDiv ref={boundsRef} height={320} justify="center" align="center">
|
|
98
|
-
<Button onClick={openModal}>Open Modal</Button>
|
|
99
|
-
<ModalController dragConstraintsRef={boundsRef} />
|
|
100
|
-
</FlexDiv>
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
```
|
|
70
|
+
- React UI components for layout, inputs, feedback, modal flows, overlays, media, and uploads
|
|
71
|
+
- Typed theme tokens for color, typography, elevation, motion, and light or dark themes
|
|
72
|
+
- Hooks for theme state, resize observation, keyboard shortcuts, local storage, audio, microphone, tooltips, and window helpers
|
|
73
|
+
- Optional Zustand-backed stores exposed through package subpaths
|
|
74
|
+
- Worker-backed uploads through `@apple-pie/slice/workers/uploads`
|
|
104
75
|
|
|
105
76
|
## Package Surface
|
|
106
77
|
|
|
@@ -110,7 +81,7 @@ Primary entrypoint:
|
|
|
110
81
|
import { Avatar, ThemeProvider, useTheme } from '@apple-pie/slice';
|
|
111
82
|
```
|
|
112
83
|
|
|
113
|
-
|
|
84
|
+
Common subpaths:
|
|
114
85
|
|
|
115
86
|
- `@apple-pie/slice/components/*`
|
|
116
87
|
- `@apple-pie/slice/hooks`
|
|
@@ -129,246 +100,26 @@ Published subpaths:
|
|
|
129
100
|
- `@apple-pie/slice/utils`
|
|
130
101
|
- `@apple-pie/slice/utils/objects`
|
|
131
102
|
- `@apple-pie/slice/workers/*`
|
|
132
|
-
|
|
133
|
-
Example subpath imports:
|
|
134
|
-
|
|
135
|
-
```ts
|
|
136
|
-
import { Avatar } from '@apple-pie/slice/components/Avatar';
|
|
137
|
-
import { useTheme } from '@apple-pie/slice/hooks/useTheme';
|
|
138
|
-
import { ModalController } from '@apple-pie/slice/components/ModalController';
|
|
139
|
-
import { ThemeProvider } from '@apple-pie/slice/providers/ThemeProvider';
|
|
140
|
-
import { useModalActions } from '@apple-pie/slice/stores/modal';
|
|
141
|
-
import { useUploadsActions } from '@apple-pie/slice/stores/uploads';
|
|
142
|
-
import { lightTheme } from '@apple-pie/slice/theme/themes';
|
|
143
|
-
import { IndexedDB } from '@apple-pie/slice/utils/objects';
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
## What’s Included
|
|
147
|
-
|
|
148
|
-
- 35+ exported React UI components covering input, feedback, modal, overlay, media, layout, and upload flows
|
|
149
|
-
- Theme tokens and presets for colors, corners, elevations, motion, typography, and full light/dark themes
|
|
150
|
-
- Exported React hooks for theme state, resize observation, keyboard shortcuts, local storage, audio, microphone, tooltips, and window helpers
|
|
151
|
-
- Optional Zustand stores for `LocalDB`, `modal`, `microphone`, `SSE`, `WS`, `tip`, `toast`, `uploads`, `volume`, and `window`
|
|
152
|
-
- Worker-backed uploads via `@apple-pie/slice/workers/uploads`
|
|
153
|
-
- Utility functions plus low-level `IndexedDB`, `SSEConnection`, and `WSConnection` helpers
|
|
154
|
-
|
|
155
|
-
## Exported Components
|
|
156
|
-
|
|
157
|
-
Top-level component exports currently include:
|
|
158
|
-
|
|
159
|
-
- `AudioBubble`
|
|
160
|
-
- `Avatar`
|
|
161
|
-
- `AvatarGroup`
|
|
162
|
-
- `Badge`
|
|
163
|
-
- `Button`
|
|
164
|
-
- `ButtonBar`
|
|
165
|
-
- `Camera`
|
|
166
|
-
- `CheckBox`
|
|
167
|
-
- `Chip`
|
|
168
|
-
- `DivInput`
|
|
169
|
-
- `DoneCheck`
|
|
170
|
-
- `Dot`
|
|
171
|
-
- `DraggablePanel`
|
|
172
|
-
- `DropDown`
|
|
173
|
-
- `ErrorSummary`
|
|
174
|
-
- `FileIcon`
|
|
175
|
-
- `FlexDiv`
|
|
176
|
-
- `Grouper`
|
|
177
|
-
- `Icon`
|
|
178
|
-
- `IconButton`
|
|
179
|
-
- `Label`
|
|
180
|
-
- `Modal`
|
|
181
|
-
- `ModalController`
|
|
182
|
-
- `Overlay`
|
|
183
|
-
- `Pager`
|
|
184
|
-
- `ProgressIndicator`
|
|
185
|
-
- `PromptInput`
|
|
186
|
-
- `RadioButton`
|
|
187
|
-
- `RadioButtonList`
|
|
188
|
-
- `Slider`
|
|
189
|
-
- `Spacer`
|
|
190
|
-
- `Switch`
|
|
191
|
-
- `TabBar`
|
|
192
|
-
- `TextArea`
|
|
193
|
-
- `TextField`
|
|
194
|
-
- `Tip`
|
|
195
|
-
- `Toast`
|
|
196
|
-
- `ToggleButton`
|
|
197
|
-
- `UploadArea`
|
|
198
|
-
|
|
199
|
-
Supporting exports also include:
|
|
200
|
-
|
|
201
|
-
- `ThemeProvider`
|
|
202
|
-
- `ToastType`
|
|
203
|
-
- `FileIconNames`
|
|
204
|
-
- `SliceIcons`
|
|
205
|
-
- `LabelBackground`
|
|
206
|
-
|
|
207
|
-
## Exported Hooks
|
|
208
|
-
|
|
209
|
-
Top-level hook exports currently include:
|
|
210
|
-
|
|
211
|
-
- `useAudioRecorder`
|
|
212
|
-
- `useDoubleClick`
|
|
213
|
-
- `useKeyboardShortcuts`
|
|
214
|
-
- `useLastUpdated`
|
|
215
|
-
- `useLocalStore`
|
|
216
|
-
- `useMDStreamBuffer`
|
|
217
|
-
- `useMicrophone`
|
|
218
|
-
- `useObserveResize`
|
|
219
|
-
- `useObserveTheme`
|
|
220
|
-
- `useTheme`
|
|
221
|
-
- `useToolTip`
|
|
222
|
-
- `useWindow`
|
|
223
|
-
|
|
224
|
-
Type exports alongside hooks include:
|
|
225
|
-
|
|
226
|
-
- `KeyboardShortcut`
|
|
227
|
-
- `KeyboardShortcuts`
|
|
228
|
-
- `MicOption`
|
|
229
|
-
- `UseMicrophoneReturn`
|
|
230
|
-
- `WindowGeolocation`
|
|
231
|
-
- `WindowGeolocationError`
|
|
232
|
-
- `BreakPoints`
|
|
233
|
-
|
|
234
|
-
## Exported Stores
|
|
235
|
-
|
|
236
|
-
Store subpaths currently include:
|
|
237
|
-
|
|
238
|
-
- `@apple-pie/slice/stores/LocalDB`
|
|
239
|
-
- `@apple-pie/slice/stores/modal`
|
|
240
|
-
- `@apple-pie/slice/stores/microphone`
|
|
241
|
-
- `@apple-pie/slice/stores/SSE`
|
|
242
|
-
- `@apple-pie/slice/stores/WS`
|
|
243
|
-
- `@apple-pie/slice/stores/tip`
|
|
244
|
-
- `@apple-pie/slice/stores/toast`
|
|
245
|
-
- `@apple-pie/slice/stores/uploads`
|
|
246
|
-
- `@apple-pie/slice/stores/volume`
|
|
247
|
-
- `@apple-pie/slice/stores/window`
|
|
248
|
-
|
|
249
|
-
The shared stores barrel is also available at:
|
|
250
|
-
|
|
251
|
-
- `@apple-pie/slice/stores`
|
|
252
|
-
|
|
253
|
-
## Theme Exports
|
|
254
|
-
|
|
255
|
-
Theme exports currently include:
|
|
256
|
-
|
|
257
|
-
- `light`
|
|
258
|
-
- `dark`
|
|
259
|
-
- `lightTheme`
|
|
260
|
-
- `darkTheme`
|
|
261
|
-
- `motion`
|
|
262
|
-
- `elevations`
|
|
263
|
-
- `Elevation`
|
|
264
|
-
|
|
265
|
-
Type exports alongside theme values include:
|
|
266
|
-
|
|
267
|
-
- `SliceTheme`
|
|
268
|
-
- `Colors`
|
|
269
|
-
- `Corners`
|
|
270
|
-
- `Type`
|
|
271
|
-
- `Elevations`
|
|
272
|
-
|
|
273
|
-
## Upload Worker Example
|
|
274
|
-
|
|
275
|
-
```tsx
|
|
276
|
-
import { useEffect, useRef } from 'react';
|
|
277
|
-
import { UploadArea } from '@apple-pie/slice';
|
|
278
|
-
import {
|
|
279
|
-
createUploadsWorker,
|
|
280
|
-
useUploads,
|
|
281
|
-
useUploadsActions,
|
|
282
|
-
useUploadsWorkerStatus,
|
|
283
|
-
} from '@apple-pie/slice/stores/uploads';
|
|
284
|
-
|
|
285
|
-
function UploadsExample() {
|
|
286
|
-
const workerRef = useRef<Worker | null>(null);
|
|
287
|
-
const uploads = useUploads();
|
|
288
|
-
const workerStatus = useUploadsWorkerStatus();
|
|
289
|
-
const actions = useUploadsActions();
|
|
290
|
-
|
|
291
|
-
useEffect(() => {
|
|
292
|
-
if (workerRef.current) return;
|
|
293
|
-
workerRef.current = createUploadsWorker();
|
|
294
|
-
actions.initialize({ uploadURL: '/api/uploads' }, workerRef.current);
|
|
295
|
-
}, [actions]);
|
|
296
|
-
|
|
297
|
-
return (
|
|
298
|
-
<div>
|
|
299
|
-
<UploadArea
|
|
300
|
-
busy={workerStatus === 'busy'}
|
|
301
|
-
files={uploads.map((upload) => ({
|
|
302
|
-
id: upload.id,
|
|
303
|
-
file: upload.file,
|
|
304
|
-
progress: upload.progress,
|
|
305
|
-
error: upload.error,
|
|
306
|
-
}))}
|
|
307
|
-
onUpload={(files) => actions.push(files)}
|
|
308
|
-
showProgress={true}
|
|
309
|
-
title={'Upload files'}
|
|
310
|
-
message={'Drag and drop files here or click to upload'}
|
|
311
|
-
/>
|
|
312
|
-
</div>
|
|
313
|
-
);
|
|
314
|
-
}
|
|
315
|
-
```
|
|
316
|
-
|
|
317
|
-
If your app needs an explicit worker URL, import the built worker asset from the worker subpath:
|
|
318
|
-
|
|
319
|
-
```ts
|
|
320
|
-
import { createUploadsWorker, uploadsActions } from '@apple-pie/slice/stores/uploads';
|
|
321
|
-
import uploadsWorkerUrl from '@apple-pie/slice/workers/uploads/uploads?url';
|
|
322
|
-
|
|
323
|
-
const worker = createUploadsWorker(uploadsWorkerUrl);
|
|
324
|
-
uploadsActions.initialize({ uploadURL: '/api/uploads' }, worker);
|
|
325
|
-
```
|
|
103
|
+
- `@apple-pie/slice/styles.css`
|
|
326
104
|
|
|
327
105
|
## Development
|
|
328
106
|
|
|
329
107
|
```bash
|
|
108
|
+
npm install
|
|
330
109
|
npm run dev
|
|
331
110
|
npm run storybook
|
|
332
111
|
npm run test
|
|
333
112
|
npm run benchmark
|
|
334
113
|
npm run build
|
|
335
|
-
npm run build:min
|
|
336
114
|
npm run lint
|
|
337
115
|
```
|
|
338
116
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
- CommonJS in `dist/cjs`
|
|
342
|
-
- ESM in `dist/esm`
|
|
343
|
-
- type declarations in `dist/types`
|
|
344
|
-
- shared CSS modules in `dist/css`
|
|
345
|
-
|
|
346
|
-
## Site Deployment
|
|
347
|
-
|
|
348
|
-
The public `slice-uikit.com` site is deployed as a static Storybook build served from Docker with nginx.
|
|
349
|
-
|
|
350
|
-
Production image build:
|
|
351
|
-
|
|
352
|
-
```bash
|
|
353
|
-
docker build -t slice-uikit-site .
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
Local container run:
|
|
357
|
-
|
|
358
|
-
```bash
|
|
359
|
-
docker run --rm -p 8090:80 slice-uikit-site
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
The GitHub Actions workflow at [`.github/workflows/deploy-site.yml`](./.github/workflows/deploy-site.yml) deploys using the same SSH-on-VM pattern as the existing website project: it connects to the VM, pulls or clones the repo, then rebuilds the `uikit` service from the shared `~/projects/docker-compose.yml` file on the VM.
|
|
363
|
-
|
|
364
|
-
Configure these repository secrets before enabling it:
|
|
365
|
-
|
|
366
|
-
- `VM_HOST`
|
|
367
|
-
- `VM_USER`
|
|
368
|
-
- `SSH_PRIVATE_KEY`
|
|
117
|
+
Contributor setup and workflow:
|
|
369
118
|
|
|
370
|
-
|
|
119
|
+
- [CONTRIBUTING.md](./CONTRIBUTING.md)
|
|
120
|
+
- [contributor-docs/build-architecture.md](./contributor-docs/build-architecture.md)
|
|
371
121
|
|
|
372
|
-
|
|
122
|
+
## Support
|
|
373
123
|
|
|
374
|
-
|
|
124
|
+
- Documentation and demos: https://slice-uikit.com
|
|
125
|
+
- Source and issues: https://github.com/uris/uikit
|
|
@@ -1,13 +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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var colors = require("./colors-
|
|
8
|
+
var colors = require("./colors-CmOkcjB3.js"), audioVisualizer = require("./audioVisualizer-C7fMG0WH.js");
|
|
9
9
|
|
|
10
|
-
require("
|
|
10
|
+
require("./webRTCStore-DRjvbnve.js"), require("./microphoneStore-Dy5TwE2I.js"),
|
|
11
|
+
require("./volumeStore-BXFAQhvS.js"), require("../hooks/useWindow.js");
|
|
11
12
|
|
|
12
13
|
var css_wrapper = "AudioBubble-module_wrapper__f2yKg flexBox-module_row__z24tF", css_bubble = "AudioBubble-module_bubble__bpPT3 flexBox-module_row__z24tF";
|
|
13
14
|
|
|
@@ -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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BwQIEIuF.js"), css_wrapper = "Avatar-module_wrapper__ab1D7 flexBox-module_row__z24tF type-module_body-m-regular__LuQBA", css_user = "Avatar-module_user__ZQv0Q flexBox-module_row__z24tF type-module_body-m-regular__LuQBA";
|
|
5
5
|
|
|
6
6
|
const Avatar = React.memo(props => {
|
|
7
7
|
var _a;
|
|
@@ -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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Avatar = require("./Avatar-DTro_MXZ.js"), css_wrapper = "AvatarGroup-module_wrapper__MtOyq flexBox-module_rowStart__4tcxS", css_avatar = "AvatarGroup-module_avatar__5NVpW";
|
|
5
5
|
|
|
6
6
|
const AvatarGroup = React.memo(props => {
|
|
7
7
|
const {avatars: avatars = [], size: size = 32, borderWidth: borderWidth, borderSize: borderSize = 3, overlap: overlap = 8, gap: gap = 0, borderColor: borderColor, borderColorHover: borderColorHover, outerBorderSize: outerBorderSize = 3, outerBorderColor: outerBorderColor = "var(--core-surface-primary)", margin: margin = 0, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "avatars", "size", "borderWidth", "borderSize", "overlap", "gap", "borderColor", "borderColorHover", "outerBorderSize", "outerBorderColor", "margin", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, cssVars = 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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), css_badge = "Badge-module_badge__RsuMz flexBox-module_row__z24tF type-module_body-xs-medium__s3KvF";
|
|
5
5
|
|
|
6
6
|
const Badge = React.memo(props => {
|
|
7
7
|
const {count: count, variant: variant = "dark", hideNull: hideNull = !0} = props, divAttributes = tslib_es6.__rest(props, [ "count", "variant", "hideNull" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", displayCount = React.useMemo(() => void 0 === count ? "0" : "string" == typeof count ? count : count > 99 ? "99+" : count.toString(), [ count ]), cssVars = 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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), Badge = require("./Badge-DWUeXxm2.js"), Dot = require("./Dot-DaRF2JyO.js"), Icon = require("./Icon-DjvProjz.js"), ProgressIndicator = require("./ProgressIndicator-DwqslY4o.js"), sharedTypes = require("./sharedTypes-BOieqpQy.js"), css = {
|
|
5
5
|
button: "Button-module_button__2ZuB7 flexBox-module_row__z24tF",
|
|
6
6
|
label: "Button-module_label__UJ3Zt",
|
|
7
7
|
count: "Button-module_count__DFxVB flexBox-module_row__z24tF",
|
|
@@ -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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BwQIEIuF.js"), Icon = require("./Icon-DjvProjz.js"), css_wrapper = "ButtonBar-module_wrapper__FYZ3s flexBox-module_rowStart__4tcxS", css_button = "ButtonBar-module_button__bMR3h flexBox-module_row__z24tF", css_selected = "ButtonBar-module_selected__wKvmi";
|
|
5
5
|
|
|
6
6
|
const ButtonBar = React.memo(function(props) {
|
|
7
7
|
const {buttons: buttons = [], selected: selected, toggle: toggle = !0, buttonSize: buttonSize = "m", frameSize: frameSize = 36, iconSize: iconSize = 20, borderWidth: borderWidth, borderSize: borderSize = 0, borderRadius: borderRadius = 100, borderColor: borderColor = "var(--core-outline-primary)", backgroundColor: backgroundColor, backgroundColorHover: backgroundColorHover, backgroundColorActive: backgroundColorActive, bgColor: bgColor = "var(--core-surface-secondary)", bgColorHover: bgColorHover = "var(--core-outline-primary)", bgColorActive: bgColorActive = "var(--core-outline-primary)", labelColor: labelColor = "var(--core-text-primary)", onClick: onClick = button => null, onChange: onChange = button => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "buttons", "selected", "toggle", "buttonSize", "frameSize", "iconSize", "borderWidth", "borderSize", "borderRadius", "borderColor", "backgroundColor", "backgroundColorHover", "backgroundColorActive", "bgColor", "bgColorHover", "bgColorActive", "labelColor", "onClick", "onChange", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedBackgroundColorHover = null != backgroundColorHover ? backgroundColorHover : bgColorHover, resolvedBackgroundColorActive = null != backgroundColorActive ? backgroundColorActive : bgColorActive, [hovered, setHovered] = React.useState(-1), [selectedIndex, setSelectedIndex] = React.useState(selected);
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var misc = require("./misc-
|
|
8
|
+
var misc = require("./misc-BwQIEIuF.js"), colors = require("./colors-CmOkcjB3.js");
|
|
9
9
|
|
|
10
|
-
require("
|
|
10
|
+
require("./webRTCStore-DRjvbnve.js"), require("./microphoneStore-Dy5TwE2I.js"),
|
|
11
|
+
require("./volumeStore-BXFAQhvS.js"), require("../hooks/useWindow.js");
|
|
11
12
|
|
|
12
|
-
var Avatar = require("./Avatar-
|
|
13
|
+
var Avatar = require("./Avatar-DTro_MXZ.js"), Icon = require("./Icon-DjvProjz.js"), css_wrapper = "Camera-module_wrapper__GOsKp flexBox-module_column__ezvMq", css_video = "Camera-module_video__Q2r9B", css_controls = "Camera-module_controls__qXYoL flexBox-module_rowBetween__5FEvi", css_controlsRight = "Camera-module_controlsRight__VcIz7 flexBox-module_rowEnd__rVdVm", css_controlsCenter = "Camera-module_controlsCenter__e-erq flexBox-module_row__z24tF", css_controlsLeft = "Camera-module_controlsLeft__bR4TN flexBox-module_rowStart__4tcxS", css_error = "Camera-module_error__t0w-d flexBox-module_row__z24tF type-module_body-m-regular__LuQBA", css_poster = "Camera-module_poster__Gun-v flexBox-module_row__z24tF type-module_body-m-regular__LuQBA", css_snapshotFrame = "Camera-module_snapshotFrame__YM6Eu flexBox-module_row__z24tF", css_clear = "Camera-module_clear__aaCfT", css_snapshot = "Camera-module_snapshot__odQH0", css_toolbarButton = "Camera-module_toolbarButton__mnmoF flexBox-module_columnStartCenter__PKcrG", css_buttonIcon = "Camera-module_buttonIcon__a-VBR flexBox-module_row__z24tF", css_buttonLabel = "Camera-module_buttonLabel__6BEs1 flexBox-module_row__z24tF type-module_body-xs-regular__ZAFft";
|
|
13
14
|
|
|
14
15
|
const Camera = React.memo(React.forwardRef((props, ref) => {
|
|
15
16
|
const videoElement = React.useRef(null), containerElement = React.useRef(null), controlsTimer = React.useRef(null), {noVideoPoster: noVideoPoster, width: width, height: height, showControlBar: showControlBar = !0, autoHideControlBar: autoHideControlBar = !0, startCameraOff: startCameraOff = !1, startAudioMuted: startAudioMuted = !1, playLocalAudio: playLocalAudio = !1, pipSnapshot: pipSnapshot = !0, userProfile: userProfile, sessionSettings: sessionSettings, onChangeProfile: onChangeProfile, onChangeSettings: onChangeSettings, onSnapshot: onSnapshot, onVideoStream: onVideoStream, onNoVideo: onNoVideo, onNoAudio: onNoAudio} = props, theme = hooks_useTheme.useTheme(), [cameraSupport, setCameraSupport] = React.useState(void 0), [cameraError, setCameraError] = React.useState(void 0), [hovered, setHovered] = React.useState(!1), [cameraOn, setCameraOn] = React.useState(!1), [micMuted, setMicMuted] = React.useState(startAudioMuted), [snapshot, setSnapshot] = React.useState(void 0), [settings, setSettings] = React.useState(!1), [profile, setProfile] = React.useState(!1), [deviceList, setDeviceList] = React.useState([]), constraints = 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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), misc = require("./misc-BwQIEIuF.js"), Icon = require("./Icon-DjvProjz.js"), css_wrapper = "CheckBox-module_wrapper__uRsjI flexBox-module_row__z24tF", css_icon = "CheckBox-module_icon__FoDJN flexBox-module_row__z24tF", css_label = "CheckBox-module_label__0AiBp type-module_body-m-regular__LuQBA";
|
|
5
5
|
|
|
6
6
|
const CheckBox = React.memo(props => {
|
|
7
7
|
const {size: size = 20, checked: checked = !1, disabled: disabled = !1, color: color, children: children, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "size", "checked", "disabled", "color", "children", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [state, setState] = React.useState(checked);
|
|
@@ -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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BwQIEIuF.js"), Icon = require("./Icon-DjvProjz.js"), sharedTypes = require("./sharedTypes-BOieqpQy.js"), css = {
|
|
5
5
|
chip: "Chip-module_chip__0nys- flexBox-module_row__z24tF",
|
|
6
6
|
icon: "Chip-module_icon__dtR-K flexBox-module_row__z24tF",
|
|
7
7
|
xs: "Chip-module_xs__s-KNG type-module_body-xs-regular__ZAFft",
|
|
@@ -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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), misc = require("./misc-BwQIEIuF.js"), css_wrapper = "DivInput-module_wrapper__ZQxY-", css_input = "DivInput-module_input__J34-l type-module_body-m-regular__LuQBA";
|
|
5
5
|
|
|
6
6
|
const DivInput = React.memo(props => {
|
|
7
7
|
const {value: value = "", 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 = 4, backgroundColor: backgroundColor, bgColor: bgColor = "var(--core-surface-secondary)"} = props, divAttributes = tslib_es6.__rest(props, [ "value", "name", "placeholder", "isEditable", "wrap", "focus", "width", "textAlign", "clamp", "padding", "onChange", "onSubmit", "onFocus", "onBlur", "onDblClick", "onClick", "borderRadius", "radius", "backgroundColor", "bgColor" ]), {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), innerText = React.useRef("" === value ? misc.cleanString(placeholder) : misc.cleanString(value)), [isFocused, setIsFocused] = React.useState(focus), [text, setText] = React.useState(innerText.current), [isPlaceholder, setIsPlaceholder] = React.useState(!1), resolvedBorderRadius = null != borderRadius ? borderRadius : radius, resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, setCursor = React.useCallback((to, length = 1) => {
|
|
@@ -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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), css_dot = "Dot-module_dot__RNz87 flexBox-module_row__z24tF";
|
|
5
5
|
|
|
6
6
|
const DEFAULT_VARIANTS = {
|
|
7
7
|
initial: {
|
|
@@ -1,13 +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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var misc = require("./misc-
|
|
8
|
+
var misc = require("./misc-BwQIEIuF.js");
|
|
9
9
|
|
|
10
|
-
require("
|
|
10
|
+
require("./webRTCStore-DRjvbnve.js"), require("./microphoneStore-Dy5TwE2I.js"),
|
|
11
|
+
require("./volumeStore-BXFAQhvS.js"), require("../hooks/useWindow.js");
|
|
11
12
|
|
|
12
13
|
var hooks_useObserveResize = require("../hooks/useObserveResize.js"), css_panel = "DraggablePanel-module_panel__vuq2R flexBox-module_columnStart__C7P44", css_content = "DraggablePanel-module_content__SBL0T flexBox-module_columnStart__C7P44", css_handle = "DraggablePanel-module_handle__LPZw8";
|
|
13
14
|
|
|
@@ -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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BwQIEIuF.js"), Icon = require("./Icon-DjvProjz.js"), css = {
|
|
5
5
|
wrapper: "DropDown-module_wrapper__CyX0u flexBox-module_rowStart__4tcxS",
|
|
6
6
|
face: "DropDown-module_face__6gyF3 flexBox-module_rowStart__4tcxS",
|
|
7
7
|
faceText: "DropDown-module_faceText__glhB3",
|
|
@@ -1,13 +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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var colors = require("./colors-
|
|
8
|
+
var colors = require("./colors-CmOkcjB3.js");
|
|
9
9
|
|
|
10
|
-
require("
|
|
10
|
+
require("./webRTCStore-DRjvbnve.js"), require("./microphoneStore-Dy5TwE2I.js"),
|
|
11
|
+
require("./volumeStore-BXFAQhvS.js"), require("../hooks/useWindow.js");
|
|
11
12
|
|
|
12
13
|
var css = {
|
|
13
14
|
errorBox: "ErrorSummary-module_errorBox__hjY50 flexBox-module_columnStart__C7P44",
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var FileIconNames, misc = require("./misc-
|
|
8
|
+
var FileIconNames, misc = require("./misc-BwQIEIuF.js");
|
|
9
9
|
|
|
10
|
-
require("
|
|
10
|
+
require("./webRTCStore-DRjvbnve.js"), require("./microphoneStore-Dy5TwE2I.js"),
|
|
11
|
+
require("./volumeStore-BXFAQhvS.js"), require("../hooks/useWindow.js"), exports.FileIconNames = void 0,
|
|
12
|
+
(FileIconNames = exports.FileIconNames || (exports.FileIconNames = {})).pdf = "pdf",
|
|
11
13
|
FileIconNames.text = "text", FileIconNames.sheet = "sheet", FileIconNames.preso = "preso",
|
|
12
14
|
FileIconNames.md = "md", FileIconNames.code = "code", FileIconNames.image = "image",
|
|
13
15
|
FileIconNames.audio = "audio", FileIconNames.video = "video", FileIconNames.other = "other";
|
|
@@ -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-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BwQIEIuF.js"), FileIcon = require("./FileIcon-WIVOTJLa.js"), Icon = require("./Icon-DjvProjz.js"), ProgressIndicator = require("./ProgressIndicator-DwqslY4o.js");
|
|
5
5
|
|
|
6
6
|
var css = {
|
|
7
7
|
wrapper: "FileList-module_wrapper__9-rrl flexBox-module_rowStart__4tcxS",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var Size, Preset, tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var Size, Preset, tslib_es6 = require("./tslib.es6-DqjaJVC3.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), css_flexDiv = "FlexDiv-module_flexDiv__EY5A- type-module_body-m-regular__LuQBA";
|
|
5
5
|
|
|
6
6
|
exports.Size = void 0, (Size = exports.Size || (exports.Size = {})).Grow = "grow",
|
|
7
7
|
Size.Fill = "fill", Size.Fit = "fit", Size.Viewport = "viewport", Size.Auto = "auto",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-DqjaJVC3.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"), require("
|
|
6
|
+
require("../theme/colors.js"), require("./webRTCStore-DRjvbnve.js"), require("./microphoneStore-Dy5TwE2I.js"),
|
|
7
|
+
require("./volumeStore-BXFAQhvS.js"), require("../hooks/useWindow.js");
|
|
7
8
|
|
|
8
|
-
var Badge = require("./Badge-
|
|
9
|
+
var Badge = require("./Badge-DWUeXxm2.js"), Icon = require("./Icon-DjvProjz.js"), 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";
|
|
9
10
|
|
|
10
11
|
const Grouper = React.memo(props => {
|
|
11
12
|
const theme = hooks_useTheme.useTheme(), {title: title = "Group Title", toggle: toggle = !0, open: open = !0, hasIcon: hasIcon = !0, iconName: iconName = "chevron down", iconSize: iconSize = 18, frameSize: frameSize = 64, border: border = 0, count: count = 0, unframed: unframed = !1, hideNull: hideNull = !0, showFilterBadge: showFilterBadge = !1, onChange: onChange = () => null, onClick: onClick = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "title", "toggle", "open", "hasIcon", "iconName", "iconSize", "frameSize", "border", "count", "unframed", "hideNull", "showFilterBadge", "onChange", "onClick" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [state, setState] = React.useState(open), [icon, animateIcon] = react.useAnimate();
|