@apple-pie/slice 0.1.33 → 0.1.35
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-_eYM1QMu.js → AudioBubble-CSybA_ET.js} +4 -4
- package/dist/cjs/chunks/{Avatar-DTro_MXZ.js → Avatar-vhbPRhli.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-OPJJ_Te5.js → AvatarGroup-BQ8evyuD.js} +1 -1
- package/dist/cjs/chunks/{Badge-DWUeXxm2.js → Badge-C6Yv-vZ7.js} +1 -1
- package/dist/cjs/chunks/{Button-CuGvPAkH.js → Button-DSFVBBSz.js} +5 -4
- package/dist/cjs/chunks/{ButtonBar-CbXToyfD.js → ButtonBar-BV57H5tK.js} +1 -1
- package/dist/cjs/chunks/{Camera-DjENiyud.js → Camera-UCBkxmIi.js} +5 -5
- package/dist/cjs/chunks/{CheckBox-DiJpbdy5.js → CheckBox-DEJCxMel.js} +1 -1
- package/dist/cjs/chunks/Chip-Co9UJPhs.js +77 -0
- package/dist/cjs/chunks/{DivInput-B917fKB9.js → DivInput-DXYuLZTP.js} +1 -1
- package/dist/cjs/chunks/{Dot-DaRF2JyO.js → Dot-ByyRFxJf.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-CJTEmYW6.js → DrggablePanel-EDw3OZa4.js} +9 -8
- package/dist/cjs/chunks/{DropDown-DRSQvXCC.js → DropDown-BpvddY0X.js} +1 -1
- package/dist/cjs/chunks/{ErrorSummary-ltiIsgJ6.js → ErrorSummary-Chas_lIG.js} +4 -4
- package/dist/cjs/chunks/{FileIcon-WIVOTJLa.js → FileIcon-vvwv1ZWh.js} +4 -4
- package/dist/cjs/chunks/{FileList-CzQZZErI.js → FileList-CY_ZUI5o.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-CBENyLT4.js → FlexDiv-CXas-gXx.js} +1 -1
- package/dist/cjs/chunks/{Grouper-Cd3AJEFv.js → Grouper-DoDqtlXQ.js} +4 -4
- package/dist/cjs/chunks/{Icon-DjvProjz.js → Icon-DR7d5wbQ.js} +17 -5
- package/dist/cjs/chunks/IconButton-C2pgDGer.js +182 -0
- package/dist/cjs/chunks/{IndexedDB-Ddhq6Gjd.js → IndexedDB-B3huw-IF.js} +1 -1
- package/dist/cjs/chunks/{Label-d32ENzwL.js → Label-Bz1y0MlN.js} +1 -1
- package/dist/cjs/chunks/{Level-B8eT8XyV.js → Level-CGC1rIjD.js} +1 -1
- package/dist/cjs/chunks/{Modal-CUAj4e6x.js → Modal-C9p4TjIF.js} +1 -1
- package/dist/cjs/chunks/{ModalController-BwFAVI5G.js → ModalController-B1l70sB5.js} +3 -3
- package/dist/cjs/chunks/{Overlay-CaAA3ey5.js → Overlay-77krece8.js} +1 -1
- package/dist/cjs/chunks/{Pager-uExZ5E3x.js → Pager-B0FSZmAn.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-DwqslY4o.js → ProgressIndicator-CK7dKk8W.js} +4 -4
- package/dist/cjs/chunks/{PromptInput-Dl8l8cZv.js → PromptInput-BFjWPvXi.js} +16 -14
- package/dist/cjs/chunks/{RadioButton-DPpAOFQt.js → RadioButton-qoMg2eXZ.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-IbPA6A3y.js → RadioButtonList-BKKQcFSI.js} +1 -1
- package/dist/cjs/chunks/{Slider-D5oa7NGy.js → Slider-D7r0G9UI.js} +10 -1
- package/dist/cjs/chunks/{Spacer-DtUh2VLv.js → Spacer-DHvuvgy8.js} +1 -1
- package/dist/cjs/chunks/{Switch-Bs0r5va5.js → Switch-D0WIz66o.js} +1 -1
- package/dist/cjs/chunks/{TabBar-BCSTg_Uc.js → TabBar-OZ8cC1Wh.js} +38 -18
- package/dist/cjs/chunks/{TextArea-Dj7jsvVr.js → TextArea-BnWOSrib.js} +3 -2
- package/dist/cjs/chunks/{TextField-DNP0wJla.js → TextField-zAs-JMXf.js} +5 -5
- package/dist/cjs/chunks/{Tip-awq6PDZa.js → Tip-DeP8_frS.js} +1 -1
- package/dist/cjs/chunks/{Toast-xS1TC3Ba.js → Toast-D-pkBwRK.js} +5 -5
- package/dist/cjs/chunks/{ToggleButton-CqD5c6JA.js → ToggleButton-cNIO7RUS.js} +6 -4
- package/dist/cjs/chunks/{UploadArea-CvWqk8YK.js → UploadArea-6sLdjTc4.js} +1 -1
- package/dist/cjs/chunks/{WSConnection-BACWw4TS.js → WSConnection-BwJzXOF0.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-DBeyg4j9.js → WebRTCConnection-Bv-nWtU7.js} +1 -1
- package/dist/cjs/chunks/{_types-BTdDWVYI.js → _types-BTZx360t.js} +3 -1
- package/dist/cjs/chunks/{localDBStore-wgCc1SmV.js → localDBStore-DDw1HB7W.js} +1 -1
- package/dist/cjs/chunks/{microphoneStore-Dy5TwE2I.js → microphoneStore-BWE0f5k5.js} +1 -1
- package/dist/cjs/chunks/{misc-BwQIEIuF.js → misc-Xy8NlSfu.js} +1 -1
- package/dist/cjs/chunks/{sseStore-CFFaYonG.js → sseStore-cP_aDXa1.js} +2 -2
- package/dist/cjs/chunks/{uploads-worker-DWvOe9F8.js → uploads-worker-Ey3k_A8W.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-BCmts7Ie.js → uploadsStore-CysEm3Jm.js} +2 -2
- package/dist/cjs/chunks/{volumeStore-BXFAQhvS.js → volumeStore-TOX_FL_t.js} +4 -5
- package/dist/cjs/chunks/{webRTCStore-DRjvbnve.js → webRTCStore-B1cS14MD.js} +1 -1
- package/dist/cjs/chunks/{windowStore-C4Bg6I9i.js → windowStore-DCcNnrCO.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 +9 -9
- package/dist/cjs/components/ButtonBar/index.js +6 -6
- package/dist/cjs/components/Camera/index.js +7 -7
- package/dist/cjs/components/CheckBox/index.js +6 -6
- package/dist/cjs/components/Chip/index.js +7 -7
- 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 -5
- package/dist/cjs/components/DropDown/index.js +6 -6
- package/dist/cjs/components/ErrorSummary/index.js +5 -5
- package/dist/cjs/components/FileIcon/index.js +5 -5
- 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 +5 -5
- package/dist/cjs/components/IconButton/index.js +19 -9
- package/dist/cjs/components/Label/index.js +3 -3
- package/dist/cjs/components/Level/index.js +3 -3
- package/dist/cjs/components/Modal/index.js +10 -10
- package/dist/cjs/components/ModalController/index.js +5 -5
- package/dist/cjs/components/Overlay/index.js +2 -2
- package/dist/cjs/components/Pager/index.js +3 -3
- package/dist/cjs/components/Progress/index.js +5 -5
- package/dist/cjs/components/PromptInput/index.js +9 -9
- 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 +7 -4
- package/dist/cjs/components/Spacer/index.js +2 -2
- package/dist/cjs/components/Switch/index.js +2 -2
- package/dist/cjs/components/TabBar/index.js +8 -8
- package/dist/cjs/components/TextArea/index.js +9 -9
- package/dist/cjs/components/Textfield/index.js +9 -9
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +6 -6
- package/dist/cjs/components/ToggleButton/index.js +9 -9
- package/dist/cjs/components/UploadArea/index.js +12 -11
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +2 -2
- package/dist/cjs/hooks/useMdStreamBuffer.js +1 -1
- package/dist/cjs/hooks/useMicrophone.js +32 -28
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +3 -3
- package/dist/cjs/index.js +19 -9
- package/dist/cjs/stores/LocalDB.js +3 -3
- package/dist/cjs/stores/SSE.js +2 -2
- package/dist/cjs/stores/WS.js +2 -2
- package/dist/cjs/stores/WebRTC.js +2 -2
- package/dist/cjs/stores/microphone.js +2 -2
- package/dist/cjs/stores/modal.js +1 -1
- package/dist/cjs/stores/tip.js +1 -1
- package/dist/cjs/stores/toast.js +1 -1
- package/dist/cjs/stores/uploads.js +2 -2
- package/dist/cjs/stores/volume.js +2 -2
- package/dist/cjs/stores/window.js +2 -2
- package/dist/cjs/stores.js +4 -4
- package/dist/cjs/theme/colors.js +4 -0
- package/dist/cjs/utils/index.js +2 -2
- package/dist/cjs/utils/objects/index.js +2 -2
- package/dist/cjs/workers/uploads/uploads.js +2 -2
- package/dist/esm/chunks/{AudioBubble-SB1LCBlJ.mjs → AudioBubble-_YhANdyd.mjs} +6 -6
- package/dist/esm/chunks/{Avatar-B6PcVOmT.mjs → Avatar-C7U2ianJ.mjs} +2 -2
- package/dist/esm/chunks/{AvatarGroup-DEb3j2IZ.mjs → AvatarGroup-VAbyMrus.mjs} +2 -2
- package/dist/esm/chunks/{Badge-bh5UVUnt.mjs → Badge-BKZj-pNA.mjs} +1 -1
- package/dist/esm/chunks/{Button-CWKs3uAV.mjs → Button-C6jYGagD.mjs} +10 -9
- package/dist/esm/chunks/{ButtonBar-CWeMhkSb.mjs → ButtonBar-CHKHuVy1.mjs} +3 -3
- package/dist/esm/chunks/{Camera-BmuMA9xY.mjs → Camera-DPATxQwH.mjs} +8 -8
- package/dist/esm/chunks/{CheckBox-BR6a2n0j.mjs → CheckBox-8oY2dwYh.mjs} +3 -3
- package/dist/esm/chunks/Chip-c3piVzsJ.mjs +87 -0
- package/dist/esm/chunks/{DivInput-BWO1EJXA.mjs → DivInput-g28YpiQp.mjs} +2 -2
- package/dist/esm/chunks/{Dot-DMst-5Q2.mjs → Dot-DnfM38Qp.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-qxrCS7Ot.mjs → DrggablePanel-CjgYDhDq.mjs} +10 -9
- package/dist/esm/chunks/{DropDown-DlO2J4QP.mjs → DropDown-CWHPCDQS.mjs} +3 -3
- package/dist/esm/chunks/{ErrorSummary-BplQFunJ.mjs → ErrorSummary-D1PqqK3r.mjs} +5 -5
- package/dist/esm/chunks/{FileIcon-iFmAF7_a.mjs → FileIcon-CudRs_lw.mjs} +5 -5
- package/dist/esm/chunks/{FileList-CztHFCJe.mjs → FileList-Cj_k6oel.mjs} +5 -5
- package/dist/esm/chunks/{FlexDiv-DGmDZL7M.mjs → FlexDiv-pSlVGfpp.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-DxOISLzH.mjs → Grouper-BQxdCQKy.mjs} +6 -6
- package/dist/esm/chunks/{Icon-L8B35JN1.mjs → Icon-CKS12m2e.mjs} +19 -7
- package/dist/esm/chunks/IconButton-Cka059ZT.mjs +193 -0
- package/dist/esm/chunks/{IndexedDB-DA5oZXju.mjs → IndexedDB-C1lcbDjn.mjs} +1 -1
- package/dist/esm/chunks/{Label-wDPtyK4h.mjs → Label-B7SDZHF3.mjs} +2 -2
- package/dist/esm/chunks/{Level-B9JayinM.mjs → Level-CjR-2ZHs.mjs} +3 -3
- package/dist/esm/chunks/{Modal-C-Q2A_RY.mjs → Modal-BLqTi3R2.mjs} +5 -5
- package/dist/esm/chunks/{ModalController-ClAjHLPb.mjs → ModalController-BGCz54A8.mjs} +5 -5
- package/dist/esm/chunks/{Overlay-Dr9YYxJ6.mjs → Overlay-Dp2GOGjC.mjs} +1 -1
- package/dist/esm/chunks/{Pager-DPbTCMNe.mjs → Pager-DRkFuZTV.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-HaJJDZ-m.mjs → ProgressIndicator-C2EWIn7Z.mjs} +5 -5
- package/dist/esm/chunks/{PromptInput-wGhpXw-h.mjs → PromptInput-mkEHu-_v.mjs} +18 -16
- package/dist/esm/chunks/{RadioButton-oOGgTDhg.mjs → RadioButton-Bd23SEL0.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-CDWKVvyL.mjs → RadioButtonList-ho29Z9aG.mjs} +3 -3
- package/dist/esm/chunks/{Slider-ioPGftDY.mjs → Slider-9hcuVdaH.mjs} +14 -4
- package/dist/esm/chunks/{Spacer-VJBjxVlr.mjs → Spacer-D3_8SzUs.mjs} +1 -1
- package/dist/esm/chunks/{Switch-BCk2sTh3.mjs → Switch-CV_2ygFC.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-C1DYnCRx.mjs → TabBar-BOUnKetI.mjs} +39 -21
- package/dist/esm/chunks/{TextArea-CF3r5m2G.mjs → TextArea-FQVQo3LR.mjs} +4 -3
- package/dist/esm/chunks/{TextField-BNfTj9v2.mjs → TextField-D7ZiWK9I.mjs} +8 -8
- package/dist/esm/chunks/{Tip-DIKQvxxO.mjs → Tip-5OhdfJW7.mjs} +2 -2
- package/dist/esm/chunks/{Toast-CkXPrDpp.mjs → Toast-BlDzsT1J.mjs} +7 -7
- package/dist/esm/chunks/{ToggleButton-Dvy8fc4t.mjs → ToggleButton-BIIm75PN.mjs} +7 -5
- package/dist/esm/chunks/{UploadArea-D_xGzR2e.mjs → UploadArea-AjFofefa.mjs} +4 -4
- package/dist/esm/chunks/{WSConnection-TiYLENWB.mjs → WSConnection-CjwR_k97.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-d0Yvd66q.mjs → WebRTCConnection-rKAgZEbe.mjs} +1 -1
- package/dist/esm/chunks/{_types-9ekyeJYl.mjs → _types-Fewdpo-O.mjs} +3 -1
- package/dist/esm/chunks/{localDBStore-C-5y16uv.mjs → localDBStore-Bxvk_IzQ.mjs} +2 -2
- package/dist/esm/chunks/{microphoneStore-Cbx9nV4R.mjs → microphoneStore-Do0a5LZ9.mjs} +1 -1
- package/dist/esm/chunks/{misc-zecH7-IH.mjs → misc-C5cfUKzm.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-DIquUNpm.mjs → sseStore-oSknLkEF.mjs} +2 -2
- package/dist/esm/chunks/{uploads-worker-CUggKU9b.mjs → uploads-worker-Cyum1zTV.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-9QngohOe.mjs → uploadsStore-BxpUKpcf.mjs} +1 -1
- package/dist/esm/chunks/{volumeStore-BrgZCRKF.mjs → volumeStore-D5i1CeFf.mjs} +4 -5
- package/dist/esm/chunks/{webRTCStore-DhFE9-bb.mjs → webRTCStore-BLGNTnV3.mjs} +2 -2
- package/dist/esm/chunks/{windowStore-BKW7HyoD.mjs → windowStore-BqOOGKQ6.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +8 -8
- 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 +12 -12
- package/dist/esm/components/ButtonBar/index.mjs +8 -8
- package/dist/esm/components/Camera/index.mjs +10 -10
- package/dist/esm/components/CheckBox/index.mjs +8 -8
- package/dist/esm/components/Chip/index.mjs +9 -9
- 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 +7 -7
- package/dist/esm/components/DropDown/index.mjs +8 -8
- package/dist/esm/components/ErrorSummary/index.mjs +7 -7
- package/dist/esm/components/FileIcon/index.mjs +7 -7
- package/dist/esm/components/FileList/index.mjs +10 -10
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +9 -9
- package/dist/esm/components/Icon/index.mjs +8 -8
- package/dist/esm/components/IconButton/index.mjs +11 -11
- package/dist/esm/components/Label/index.mjs +3 -3
- package/dist/esm/components/Level/index.mjs +4 -4
- package/dist/esm/components/Modal/index.mjs +14 -14
- package/dist/esm/components/ModalController/index.mjs +8 -8
- 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 +8 -8
- package/dist/esm/components/PromptInput/index.mjs +15 -15
- package/dist/esm/components/RadioButton/index.mjs +8 -8
- package/dist/esm/components/RadioButtonList/index.mjs +9 -9
- package/dist/esm/components/Slider/index.mjs +19 -5
- package/dist/esm/components/Spacer/index.mjs +2 -2
- package/dist/esm/components/Switch/index.mjs +2 -2
- package/dist/esm/components/TabBar/index.mjs +13 -13
- package/dist/esm/components/TextArea/index.mjs +13 -13
- package/dist/esm/components/Textfield/index.mjs +14 -14
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +9 -9
- package/dist/esm/components/ToggleButton/index.mjs +13 -13
- package/dist/esm/components/UploadArea/index.mjs +13 -13
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +5 -5
- package/dist/esm/hooks/useMdStreamBuffer.mjs +2 -2
- package/dist/esm/hooks/useMicrophone.mjs +32 -28
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +6 -6
- package/dist/esm/index.mjs +53 -53
- package/dist/esm/stores/LocalDB.mjs +3 -3
- package/dist/esm/stores/SSE.mjs +3 -3
- package/dist/esm/stores/WS.mjs +2 -2
- package/dist/esm/stores/WebRTC.mjs +3 -3
- package/dist/esm/stores/microphone.mjs +2 -2
- package/dist/esm/stores/modal.mjs +1 -1
- package/dist/esm/stores/tip.mjs +1 -1
- package/dist/esm/stores/toast.mjs +1 -1
- package/dist/esm/stores/uploads.mjs +3 -3
- package/dist/esm/stores/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +15 -15
- package/dist/esm/theme/colors.mjs +4 -0
- package/dist/esm/utils/index.mjs +10 -10
- package/dist/esm/utils/objects/index.mjs +7 -7
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +27 -2
- package/dist/types/components/Button/Button.d.ts +4 -0
- package/dist/types/components/Button/_types.d.ts +2 -0
- package/dist/types/components/Chip/_types.d.ts +1 -0
- package/dist/types/components/Icon/_types.d.ts +2 -0
- package/dist/types/components/IconButton/_animation.d.ts +18 -0
- package/dist/types/components/IconButton/_types.d.ts +46 -0
- package/dist/types/components/IconButton/index.d.ts +2 -1
- package/dist/types/components/TabBar/_types.d.ts +5 -0
- package/dist/types/components/TextArea/_types.d.ts +1 -0
- package/dist/types/components/ToggleButton/_types.d.ts +5 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/stores/volume/_types.d.ts +1 -1
- package/dist/types/stores/volume/volumeStore.d.ts +2 -2
- package/dist/types/theme/colors/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/chunks/Chip-kzOvEo0P.js +0 -77
- package/dist/cjs/chunks/IconButton-BuwQLUuj.js +0 -82
- package/dist/esm/chunks/Chip-DXW0jxKf.mjs +0 -87
- package/dist/esm/chunks/IconButton-DxwJemEK.mjs +0 -96
- /package/dist/cjs/chunks/{MdStreamBuffer-Chwibu07.js → MdStreamBuffer-tvK8qsjv.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-CF5WZG9b.js → SSEConnection-C6fFzIM7.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-C7fMG0WH.js → audioVisualizer-DFVbG1U3.js} +0 -0
- /package/dist/cjs/chunks/{colors-CmOkcjB3.js → colors-D1ls4xuy.js} +0 -0
- /package/dist/cjs/chunks/{debounce-BtCCTkbG.js → debounce-Dt7br1wm.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-CaQkdY5_.js → modalStore-C2TNegI3.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-BOieqpQy.js → sharedTypes-DC-9YrKq.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-4Bs9v2sg.js → tipStore-CcUHlLfK.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-CyCE9-lr.js → toastStore-CzsUlpG7.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-DqjaJVC3.js → tslib.es6-CZ8Is2ry.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-Cyon3ytf.mjs → MdStreamBuffer-CvU2-p0i.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-g0GBGAqe.mjs → SSEConnection-CnZ9v2PI.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-nMo67yOW.mjs → audioVisualizer-Cw40IeKn.mjs} +0 -0
- /package/dist/esm/chunks/{colors-v5b8_oYV.mjs → colors-7VDET9eL.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-DFxAyrPi.mjs → debounce-zgRcExLD.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-D6_oc47l.mjs → modalStore-OVzsFkde.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-CdmzhKXN.mjs → sharedTypes-7jlhdP2f.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-C2M6zBzd.mjs → tipStore-o8uQjfPm.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-B-6kdNHw.mjs → toastStore-Cnivb4IM.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-CVvvNSPr.mjs → tslib.es6-CDAuOlZ8.mjs} +0 -0
package/dist/esm/stores.mjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
export { g as getCurrentMicDeviceLabel, a as getMicrophoneState, m as microphoneActions, u as useCurrentMicDeviceId, b as useCurrentMicDeviceLabel, c as useMicActive, d as useMicError, e as useMicInputVolume, f as useMicMuted, h as useMicOptions, i as useMicRequesting, j as useMicStream, k as useMicSupported, l as useMicTrack, n as useMicrophoneStore, o as useMicrophoneStoreActions, p as useMicrophones, q as useProcessedMicStream, r as useSyncMicrophoneStore } from "./chunks/microphoneStore-
|
|
1
|
+
export { g as getCurrentMicDeviceLabel, a as getMicrophoneState, m as microphoneActions, u as useCurrentMicDeviceId, b as useCurrentMicDeviceLabel, c as useMicActive, d as useMicError, e as useMicInputVolume, f as useMicMuted, h as useMicOptions, i as useMicRequesting, j as useMicStream, k as useMicSupported, l as useMicTrack, n as useMicrophoneStore, o as useMicrophoneStoreActions, p as useMicrophones, q as useProcessedMicStream, r as useSyncMicrophoneStore } from "./chunks/microphoneStore-Do0a5LZ9.mjs";
|
|
2
2
|
|
|
3
|
-
export { g as getAttachedMedia, a as getMuted, b as getStoredVolume, c as getVolume, u as useAttachedMedia, d as useMuted, e as useStoredVolume, f as useVolume, h as useVolumeActions, i as useVolumeStore, v as volumeActions } from "./chunks/volumeStore-
|
|
3
|
+
export { g as getAttachedMedia, a as getMuted, b as getStoredVolume, c as getVolume, u as useAttachedMedia, d as useMuted, e as useStoredVolume, f as useVolume, h as useVolumeActions, i as useVolumeStore, v as volumeActions } from "./chunks/volumeStore-D5i1CeFf.mjs";
|
|
4
4
|
|
|
5
|
-
export { g as getWebRTCConnections, u as useWebRTC, a as useWebRTCActions, b as useWebRTCConnected, c as useWebRTCConnection, d as useWebRTCConnections, e as useWebRTCStore } from "./chunks/webRTCStore-
|
|
5
|
+
export { g as getWebRTCConnections, u as useWebRTC, a as useWebRTCActions, b as useWebRTCConnected, c as useWebRTCConnection, d as useWebRTCConnections, e as useWebRTCStore } from "./chunks/webRTCStore-BLGNTnV3.mjs";
|
|
6
6
|
|
|
7
|
-
export { F as FormFactor, d as dpr, f as formFactor, g as gettingLocation, i as isAppleDevice, a as isElectron, b as isTouchDevice, l as location, c as locationError, u as useDpr, e as useFormFactor, h as useGetLocation, j as useGettingLocation, k as useInitializeWindow, m as useIsAppleDevice, n as useIsElectron, o as useIsTouchDevice, p as useLocation, q as useLocationError, r as useViewportHeight, s as useViewportWidth, t as useWindowStore, v as viewportHeight, w as viewportWidth } from "./chunks/windowStore-
|
|
7
|
+
export { F as FormFactor, d as dpr, f as formFactor, g as gettingLocation, i as isAppleDevice, a as isElectron, b as isTouchDevice, l as location, c as locationError, u as useDpr, e as useFormFactor, h as useGetLocation, j as useGettingLocation, k as useInitializeWindow, m as useIsAppleDevice, n as useIsElectron, o as useIsTouchDevice, p as useLocation, q as useLocationError, r as useViewportHeight, s as useViewportWidth, t as useWindowStore, v as viewportHeight, w as viewportWidth } from "./chunks/windowStore-BqOOGKQ6.mjs";
|
|
8
8
|
|
|
9
|
-
export { c as createUploadsWorker, g as getUploads, a as getUploadsError, b as getUploadsWorkerStatus, u as uploadsActions, d as uploadsInitialized, e as useUploads, f as useUploadsActions, h as useUploadsError, i as useUploadsInitialized, j as useUploadsStore, k as useUploadsWorkerStatus } from "./chunks/uploadsStore-
|
|
9
|
+
export { c as createUploadsWorker, g as getUploads, a as getUploadsError, b as getUploadsWorkerStatus, u as uploadsActions, d as uploadsInitialized, e as useUploads, f as useUploadsActions, h as useUploadsError, i as useUploadsInitialized, j as useUploadsStore, k as useUploadsWorkerStatus } from "./chunks/uploadsStore-BxpUKpcf.mjs";
|
|
10
10
|
|
|
11
|
-
export { g as getModal, m as modalActions, u as useModal, a as useModalActions, b as useModalStore } from "./chunks/modalStore-
|
|
11
|
+
export { g as getModal, m as modalActions, u as useModal, a as useModalActions, b as useModalStore } from "./chunks/modalStore-OVzsFkde.mjs";
|
|
12
12
|
|
|
13
|
-
export { g as getTip, t as tipActions, u as useTip, a as useTipActions, b as useTipStore } from "./chunks/tipStore-
|
|
13
|
+
export { g as getTip, t as tipActions, u as useTip, a as useTipActions, b as useTipStore } from "./chunks/tipStore-o8uQjfPm.mjs";
|
|
14
14
|
|
|
15
|
-
export { g as getToast, t as toastActions, u as useToast, a as useToastActions, b as useToastStore } from "./chunks/toastStore-
|
|
15
|
+
export { g as getToast, t as toastActions, u as useToast, a as useToastActions, b as useToastStore } from "./chunks/toastStore-Cnivb4IM.mjs";
|
|
16
16
|
|
|
17
|
-
export { l as localDBActions, u as useLocalDB, a as useLocalDBError, b as useLocalDBStore, c as useLocalDBValues, d as useManageLocalDB } from "./chunks/localDBStore-
|
|
17
|
+
export { l as localDBActions, u as useLocalDB, a as useLocalDBError, b as useLocalDBStore, c as useLocalDBValues, d as useManageLocalDB } from "./chunks/localDBStore-Bxvk_IzQ.mjs";
|
|
18
18
|
|
|
19
|
-
export { u as useConnectionClose, a as useConnectionMessage, b as useIsConnected, c as useLastSSEMessage, d as useMessage, e as useSSE, f as useSSEActions, g as useSSEStore } from "./chunks/sseStore-
|
|
19
|
+
export { u as useConnectionClose, a as useConnectionMessage, b as useIsConnected, c as useLastSSEMessage, d as useMessage, e as useSSE, f as useSSEActions, g as useSSEStore } from "./chunks/sseStore-oSknLkEF.mjs";
|
|
20
20
|
|
|
21
|
-
import "./chunks/tslib.es6-
|
|
21
|
+
import "./chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
22
22
|
|
|
23
23
|
import "react";
|
|
24
24
|
|
|
25
25
|
import "zustand";
|
|
26
26
|
|
|
27
|
-
import "./chunks/WebRTCConnection-
|
|
27
|
+
import "./chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
28
28
|
|
|
29
|
-
import "./chunks/uploads-worker-
|
|
29
|
+
import "./chunks/uploads-worker-Cyum1zTV.mjs";
|
|
30
30
|
|
|
31
31
|
import "zustand/react/shallow";
|
|
32
32
|
|
|
33
|
-
import "./chunks/IndexedDB-
|
|
33
|
+
import "./chunks/IndexedDB-C1lcbDjn.mjs";
|
|
34
34
|
|
|
35
|
-
import "./chunks/SSEConnection-
|
|
35
|
+
import "./chunks/SSEConnection-CnZ9v2PI.mjs";
|
|
@@ -153,6 +153,7 @@ const coreColors = {
|
|
|
153
153
|
"core-text-secondary": coreColors["brand-grey-700"],
|
|
154
154
|
"core-text-tertiary": coreColors["brand-grey-600"],
|
|
155
155
|
"core-text-special": coreColors["brand-sea-500"],
|
|
156
|
+
"core-text-accent": coreColors["brand-sky-500"],
|
|
156
157
|
"core-link-primary": coreColors["brand-sea-500"],
|
|
157
158
|
"eor-tag-employee": coreColors["brand-sky-700"],
|
|
158
159
|
"eor-tag-overdue": coreColors["product-red-500"],
|
|
@@ -220,6 +221,7 @@ const coreColors = {
|
|
|
220
221
|
"core-text-secondary": coreColors["brand-grey-200"],
|
|
221
222
|
"core-text-tertiary": coreColors["brand-grey-400"],
|
|
222
223
|
"core-text-special": coreColors["brand-sky-300"],
|
|
224
|
+
"core-text-accent": coreColors["brand-sky-300"],
|
|
223
225
|
"core-link-primary": coreColors["brand-sky-300"],
|
|
224
226
|
"eor-tag-employee": coreColors["brand-sky-700"],
|
|
225
227
|
"eor-tag-overdue": coreColors["product-red-400"],
|
|
@@ -286,6 +288,7 @@ const coreColors = {
|
|
|
286
288
|
"core-text-primary": "var(--core-text-primary)",
|
|
287
289
|
"core-text-secondary": "var(--core-text-secondary)",
|
|
288
290
|
"core-text-special": "var(--core-text-special)",
|
|
291
|
+
"core-text-accent": "var(--core-text-accent)",
|
|
289
292
|
"core-text-tertiary": "var(--core-text-tertiary)",
|
|
290
293
|
"core-link-primary": "var(--core-link-primary)",
|
|
291
294
|
"eor-tag-employee": "var(--eor-tag-employee)",
|
|
@@ -353,6 +356,7 @@ const coreColors = {
|
|
|
353
356
|
"core-text-primary": "core-text-primary",
|
|
354
357
|
"core-text-secondary": "core-text-secondary",
|
|
355
358
|
"core-text-special": "core-text-special",
|
|
359
|
+
"core-text-accent": "core-text-accent",
|
|
356
360
|
"core-text-tertiary": "core-text-tertiary",
|
|
357
361
|
"core-link-primary": "core-link-primary",
|
|
358
362
|
"eor-tag-employee": "eor-tag-employee",
|
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { c as copyToClipboard, h as hexToRgb } from "../chunks/misc-
|
|
1
|
+
export { c as copyToClipboard, h as hexToRgb } from "../chunks/misc-C5cfUKzm.mjs";
|
|
2
2
|
|
|
3
|
-
export { d as debounce } from "../chunks/debounce-
|
|
3
|
+
export { d as debounce } from "../chunks/debounce-zgRcExLD.mjs";
|
|
4
4
|
|
|
5
|
-
export { a as addOpacity, t as tintFromColor } from "../chunks/colors-
|
|
5
|
+
export { a as addOpacity, t as tintFromColor } from "../chunks/colors-7VDET9eL.mjs";
|
|
6
6
|
|
|
7
|
-
export { I as IndexedDB } from "../chunks/IndexedDB-
|
|
7
|
+
export { I as IndexedDB } from "../chunks/IndexedDB-C1lcbDjn.mjs";
|
|
8
8
|
|
|
9
|
-
export { A as AudioVisualizer } from "../chunks/audioVisualizer-
|
|
9
|
+
export { A as AudioVisualizer } from "../chunks/audioVisualizer-Cw40IeKn.mjs";
|
|
10
10
|
|
|
11
|
-
export { M as MdBuffer } from "../chunks/MdStreamBuffer-
|
|
11
|
+
export { M as MdBuffer } from "../chunks/MdStreamBuffer-CvU2-p0i.mjs";
|
|
12
12
|
|
|
13
|
-
export { S as SSEConnection } from "../chunks/SSEConnection-
|
|
13
|
+
export { S as SSEConnection } from "../chunks/SSEConnection-CnZ9v2PI.mjs";
|
|
14
14
|
|
|
15
|
-
export { W as WSConnection } from "../chunks/WSConnection-
|
|
15
|
+
export { W as WSConnection } from "../chunks/WSConnection-CjwR_k97.mjs";
|
|
16
16
|
|
|
17
|
-
export { W as WebRTCConnection } from "../chunks/WebRTCConnection-
|
|
17
|
+
export { W as WebRTCConnection } from "../chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
18
18
|
|
|
19
|
-
import "../chunks/tslib.es6-
|
|
19
|
+
import "../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { I as IndexedDB } from "../../chunks/IndexedDB-
|
|
1
|
+
export { I as IndexedDB } from "../../chunks/IndexedDB-C1lcbDjn.mjs";
|
|
2
2
|
|
|
3
|
-
export { A as AudioVisualizer } from "../../chunks/audioVisualizer-
|
|
3
|
+
export { A as AudioVisualizer } from "../../chunks/audioVisualizer-Cw40IeKn.mjs";
|
|
4
4
|
|
|
5
|
-
export { M as MdBuffer } from "../../chunks/MdStreamBuffer-
|
|
5
|
+
export { M as MdBuffer } from "../../chunks/MdStreamBuffer-CvU2-p0i.mjs";
|
|
6
6
|
|
|
7
|
-
export { S as SSEConnection } from "../../chunks/SSEConnection-
|
|
7
|
+
export { S as SSEConnection } from "../../chunks/SSEConnection-CnZ9v2PI.mjs";
|
|
8
8
|
|
|
9
|
-
export { W as WSConnection } from "../../chunks/WSConnection-
|
|
9
|
+
export { W as WSConnection } from "../../chunks/WSConnection-CjwR_k97.mjs";
|
|
10
10
|
|
|
11
|
-
export { W as WebRTCConnection } from "../../chunks/WebRTCConnection-
|
|
11
|
+
export { W as WebRTCConnection } from "../../chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
12
12
|
|
|
13
|
-
import "../../chunks/tslib.es6-
|
|
13
|
+
import "../../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerUploadsWorker } from "../../chunks/uploads-worker-
|
|
1
|
+
import { r as registerUploadsWorker } from "../../chunks/uploads-worker-Cyum1zTV.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
4
4
|
|
|
5
5
|
registerUploadsWorker();
|
package/dist/styles.css
CHANGED
|
@@ -166,6 +166,7 @@
|
|
|
166
166
|
--core-text-secondary: var(--brand-grey-700);
|
|
167
167
|
--core-text-tertiary: var(--brand-grey-600);
|
|
168
168
|
--core-text-special: var(--brand-sea-500);
|
|
169
|
+
--core-text-accent: var(--brand-sky-500);
|
|
169
170
|
--core-link-primary: var(--brand-sea-500);
|
|
170
171
|
--eor-tag-employee: var(--brand-sky-700);
|
|
171
172
|
--eor-tag-overdue: var(--product-red-500);
|
|
@@ -243,6 +244,7 @@
|
|
|
243
244
|
--core-text-secondary: var(--brand-grey-200);
|
|
244
245
|
--core-text-tertiary: var(--brand-grey-400);
|
|
245
246
|
--core-text-special: var(--brand-sky-300);
|
|
247
|
+
--core-text-accent: var(--brand-sky-300);
|
|
246
248
|
--core-link-primary: var(--brand-sky-300);
|
|
247
249
|
--eor-tag-employee: var(--brand-sky-700);
|
|
248
250
|
--eor-tag-overdue: var(--product-red-400);
|
|
@@ -403,6 +405,9 @@
|
|
|
403
405
|
[data-slice-theme-scope] .core-text-special {
|
|
404
406
|
color: var(--core-text-special);
|
|
405
407
|
}
|
|
408
|
+
[data-slice-theme-scope] .core-text-accent {
|
|
409
|
+
color: var(--core-text-accent);
|
|
410
|
+
}
|
|
406
411
|
[data-slice-theme-scope] .core-text-tertiary {
|
|
407
412
|
color: var(--core-text-tertiary);
|
|
408
413
|
}
|
|
@@ -2766,7 +2771,7 @@ line {
|
|
|
2766
2771
|
top: 50%;
|
|
2767
2772
|
left: 50%;
|
|
2768
2773
|
transform: translateX(-50%) translateY(-50%);
|
|
2769
|
-
z-index:
|
|
2774
|
+
z-index: var(--elevation-overlay);
|
|
2770
2775
|
}
|
|
2771
2776
|
|
|
2772
2777
|
.flexBox-module_row__z24tF {
|
|
@@ -6586,8 +6591,9 @@ line {
|
|
|
6586
6591
|
}
|
|
6587
6592
|
|
|
6588
6593
|
.TabBar-module_wrapper__cyOR1 {
|
|
6594
|
+
justify-content: var(--tab-bar-justify) !important;
|
|
6589
6595
|
gap: var(--tab-bar-gap);
|
|
6590
|
-
border-bottom: var(--tab-bar-border-bottom) solid var(--
|
|
6596
|
+
border-bottom: var(--tab-bar-border-bottom) solid var(--tab-bar-border-color);
|
|
6591
6597
|
height: var(--tab-bar-height);
|
|
6592
6598
|
width: var(--tab-bar-width);
|
|
6593
6599
|
cursor: pointer;
|
|
@@ -6628,6 +6634,25 @@ line {
|
|
|
6628
6634
|
width: min-content;
|
|
6629
6635
|
}
|
|
6630
6636
|
|
|
6637
|
+
.TabBar-module_xs__QDjV9 {
|
|
6638
|
+
}
|
|
6639
|
+
|
|
6640
|
+
.TabBar-module_s__-EBj2 {
|
|
6641
|
+
}
|
|
6642
|
+
|
|
6643
|
+
.TabBar-module_m__3sCA3 {
|
|
6644
|
+
}
|
|
6645
|
+
|
|
6646
|
+
.TabBar-module_l__hy1rR {
|
|
6647
|
+
}
|
|
6648
|
+
|
|
6649
|
+
.TabBar-module_xl__zaASU {
|
|
6650
|
+
}
|
|
6651
|
+
|
|
6652
|
+
.TabBar-module_selected__UmBdu {
|
|
6653
|
+
font-weight: 520 !important;
|
|
6654
|
+
}
|
|
6655
|
+
|
|
6631
6656
|
.flexBox-module_row__z24tF {
|
|
6632
6657
|
display: flex;
|
|
6633
6658
|
justify-content: center;
|
|
@@ -38,6 +38,8 @@ export declare const Button: React.NamedExoticComponent<Omit<React.ButtonHTMLAtt
|
|
|
38
38
|
destructive?: boolean;
|
|
39
39
|
paddingRight?: number;
|
|
40
40
|
paddingLeft?: number;
|
|
41
|
+
link?: string;
|
|
42
|
+
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
41
43
|
onToolTip?: (tip: ToolTip | null) => void;
|
|
42
44
|
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
|
|
43
45
|
}> & {
|
|
@@ -77,6 +79,8 @@ export declare const Button: React.NamedExoticComponent<Omit<React.ButtonHTMLAtt
|
|
|
77
79
|
destructive?: boolean;
|
|
78
80
|
paddingRight?: number;
|
|
79
81
|
paddingLeft?: number;
|
|
82
|
+
link?: string;
|
|
83
|
+
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
80
84
|
onToolTip?: (tip: ToolTip | null) => void;
|
|
81
85
|
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
|
|
82
86
|
} & React.RefAttributes<ButtonHandle>>;
|
|
@@ -38,6 +38,8 @@ type ButtonBaseProps = {
|
|
|
38
38
|
destructive?: boolean;
|
|
39
39
|
paddingRight?: number;
|
|
40
40
|
paddingLeft?: number;
|
|
41
|
+
link?: string;
|
|
42
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
41
43
|
onToolTip?: (tip: ToolTip | null) => void;
|
|
42
44
|
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
|
|
43
45
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Variants } from 'motion/react';
|
|
2
|
+
import { AnimationPreset, type ButtonAnimation } from './_types';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves presets to a button animation
|
|
5
|
+
*/
|
|
6
|
+
export declare const presetAnimation: {
|
|
7
|
+
rotate: ButtonAnimation;
|
|
8
|
+
fade: ButtonAnimation;
|
|
9
|
+
scale: ButtonAnimation;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Resolves button animation to motion variants
|
|
13
|
+
*/
|
|
14
|
+
export declare const animationVariants: (animations: ButtonAnimation | undefined) => Variants | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Resolves presets and custom animations to motion variants
|
|
17
|
+
*/
|
|
18
|
+
export declare const resolveVariants: (presets: AnimationPreset | undefined, custom: ButtonAnimation | undefined) => Variants | undefined;
|
|
@@ -1,6 +1,50 @@
|
|
|
1
1
|
import type { Transition, Variants } from 'motion/react';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
import type { ToolTip } from '../sharedTypes';
|
|
4
|
+
/**
|
|
5
|
+
* Helper for quick popular animation effects
|
|
6
|
+
*/
|
|
7
|
+
export declare enum AnimationPreset {
|
|
8
|
+
Rotate = "rotate",
|
|
9
|
+
Fade = "fade",
|
|
10
|
+
Scale = "scale"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Popular types
|
|
14
|
+
*/
|
|
15
|
+
export declare enum AnimationType {
|
|
16
|
+
Rotate = "rotate",
|
|
17
|
+
Fade = "opacity",
|
|
18
|
+
Scale = "scale"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Motion value for initial, animate
|
|
22
|
+
*/
|
|
23
|
+
export type MotionValue = {
|
|
24
|
+
off: number | string;
|
|
25
|
+
on: number | string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Animation type and motion value
|
|
29
|
+
*/
|
|
30
|
+
export type AnimationValue = {
|
|
31
|
+
type: AnimationType | string;
|
|
32
|
+
value: MotionValue;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Transition values for on and optionally off
|
|
36
|
+
*/
|
|
37
|
+
export type TransitionValue = {
|
|
38
|
+
on: Transition;
|
|
39
|
+
off?: Transition;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Overall button animation definition
|
|
43
|
+
*/
|
|
44
|
+
export type ButtonAnimation = {
|
|
45
|
+
animation: AnimationValue[] | AnimationValue;
|
|
46
|
+
transition?: TransitionValue;
|
|
47
|
+
};
|
|
4
48
|
type IconButtonBaseProps = {
|
|
5
49
|
round?: boolean;
|
|
6
50
|
frameSize?: number;
|
|
@@ -35,6 +79,8 @@ type IconButtonBaseProps = {
|
|
|
35
79
|
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
36
80
|
onToolTip?: (tip: ToolTip | null) => void;
|
|
37
81
|
buttonSize?: 's' | 'm' | 'l' | 'xl';
|
|
82
|
+
presetAnimations?: AnimationPreset;
|
|
83
|
+
customAnimations?: ButtonAnimation;
|
|
38
84
|
};
|
|
39
85
|
export type IconButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof IconButtonBaseProps> & IconButtonBaseProps;
|
|
40
86
|
export {};
|
|
@@ -30,6 +30,9 @@ type TabBarBaseProps = {
|
|
|
30
30
|
onChange?: (index: number) => void;
|
|
31
31
|
onTabChange?: (option: TabOption) => void;
|
|
32
32
|
onClose?: () => void;
|
|
33
|
+
justify?: 'start' | 'center' | 'end';
|
|
34
|
+
borderColor?: string;
|
|
35
|
+
textSize?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
33
36
|
};
|
|
34
37
|
export type TabBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof TabBarBaseProps> & TabBarBaseProps;
|
|
35
38
|
export interface TabOptionProps {
|
|
@@ -50,5 +53,7 @@ export interface TabOptionProps {
|
|
|
50
53
|
onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>, value: number) => void;
|
|
51
54
|
onToolTip?: (tip: ToolTip | null) => void;
|
|
52
55
|
buttonRef?: (element: HTMLButtonElement | null) => void;
|
|
56
|
+
borderColor?: string;
|
|
57
|
+
textSize?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
53
58
|
}
|
|
54
59
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
+
import type { AnimationPreset, ButtonAnimation } from '../IconButton';
|
|
2
3
|
import type { ToolTip } from '../sharedTypes';
|
|
3
4
|
export interface ToggleButtonProps {
|
|
4
5
|
children?: React.ReactNode;
|
|
@@ -7,6 +8,8 @@ export interface ToggleButtonProps {
|
|
|
7
8
|
buttonSize?: 's' | 'm' | 'l' | 'xl';
|
|
8
9
|
frameSize?: number;
|
|
9
10
|
icon?: string;
|
|
11
|
+
iconOn?: string;
|
|
12
|
+
iconTwo?: string;
|
|
10
13
|
selected?: boolean;
|
|
11
14
|
iconColor?: string;
|
|
12
15
|
iconColorOn?: string;
|
|
@@ -22,4 +25,6 @@ export interface ToggleButtonProps {
|
|
|
22
25
|
fill?: boolean;
|
|
23
26
|
unselect?: boolean;
|
|
24
27
|
disabled?: boolean;
|
|
28
|
+
presetAnimations?: AnimationPreset;
|
|
29
|
+
customAnimations?: ButtonAnimation;
|
|
25
30
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export { AvatarGroup } from './components/AvatarGroup';
|
|
|
12
12
|
export type { AvatarGroupProps, AvatarInfo } from './components/AvatarGroup';
|
|
13
13
|
export { Badge } from './components/Badge';
|
|
14
14
|
export type { BadgeProps } from './components/Badge';
|
|
15
|
-
export { IconButton } from './components/IconButton';
|
|
16
|
-
export type { IconButtonProps } from './components/IconButton';
|
|
15
|
+
export { IconButton, AnimationPreset, AnimationType, } from './components/IconButton';
|
|
16
|
+
export type { IconButtonProps, AnimationValue, MotionValue, TransitionValue, ButtonAnimation, } from './components/IconButton';
|
|
17
17
|
export { Camera } from './components/Camera';
|
|
18
18
|
export type { CameraElement, CameraProps, CameraSnapshotOptions, Controls, UserProfile, Settings, } from './components/Camera';
|
|
19
19
|
export { CheckBox } from './components/CheckBox';
|
|
@@ -12,7 +12,7 @@ export type VolumeStore = {
|
|
|
12
12
|
playFeedback: (volume?: number) => Promise<void>;
|
|
13
13
|
setVolume: (volume: number, options?: {
|
|
14
14
|
playFeedback?: boolean;
|
|
15
|
-
}) => void
|
|
15
|
+
}) => Promise<void>;
|
|
16
16
|
mute: () => Promise<void>;
|
|
17
17
|
unmute: () => Promise<void>;
|
|
18
18
|
clearMedia: () => void;
|
|
@@ -12,7 +12,7 @@ export declare const useVolumeActions: () => {
|
|
|
12
12
|
playFeedback: (volume?: number) => Promise<void>;
|
|
13
13
|
setVolume: (volume: number, options?: {
|
|
14
14
|
playFeedback?: boolean;
|
|
15
|
-
}) => void
|
|
15
|
+
}) => Promise<void>;
|
|
16
16
|
mute: () => Promise<void>;
|
|
17
17
|
unmute: () => Promise<void>;
|
|
18
18
|
clearMedia: () => void;
|
|
@@ -25,7 +25,7 @@ export declare const volumeActions: {
|
|
|
25
25
|
playFeedback: (volume?: number) => Promise<void>;
|
|
26
26
|
setVolume: (volume: number, options?: {
|
|
27
27
|
playFeedback?: boolean;
|
|
28
|
-
}) => void
|
|
28
|
+
}) => Promise<void>;
|
|
29
29
|
mute: () => Promise<void>;
|
|
30
30
|
unmute: () => Promise<void>;
|
|
31
31
|
clearMedia: () => void;
|
|
@@ -153,6 +153,7 @@ export type Colors = {
|
|
|
153
153
|
'core-text-primary': string;
|
|
154
154
|
'core-text-secondary': string;
|
|
155
155
|
'core-text-special': string;
|
|
156
|
+
'core-text-accent': string;
|
|
156
157
|
'core-text-tertiary': string;
|
|
157
158
|
'core-link-primary': string;
|
|
158
159
|
'eor-tag-employee': string;
|
package/package.json
CHANGED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
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
|
-
chip: "Chip-module_chip__0nys- flexBox-module_row__z24tF",
|
|
6
|
-
icon: "Chip-module_icon__dtR-K flexBox-module_row__z24tF",
|
|
7
|
-
xs: "Chip-module_xs__s-KNG type-module_body-xs-regular__ZAFft",
|
|
8
|
-
s: "Chip-module_s__2KTXi type-module_body-s-regular__vRHSP",
|
|
9
|
-
m: "Chip-module_m__l2u3N type-module_body-m-regular__LuQBA",
|
|
10
|
-
l: "Chip-module_l__3MqPN type-module_body-l-regular__lOYbg"
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const Chip = React.memo(props => {
|
|
14
|
-
const {children: children, label: label, icon: icon, tooltip: tooltip, iconSize: iconSize = 20, disabled: disabled = !1, focused: focused = !1, iconPosition: iconPosition = "left", labelSize: labelSize = "m", labelColor: labelColor = "var(--core-text-primary)", labelColorHover: labelColorHover = "var(--core-text-special)", iconColor: iconColor = "var(--core-text-primary)", iconColorHover: iconColorHover = "var(--core-text-special)", backgroundColor: backgroundColor, backgroundColorHover: backgroundColorHover, borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-text-primary)", borderColorHover: borderColorHover = "var(--core-text-special)", borderColorDisabled: borderColorDisabled = "var(--core-text-disabled)", bgColor: bgColor = "transparent", bgColorHover: bgColorHover = "var(--core-surface-secondary)", borderRadius: borderRadius = 8, paddingTop: paddingTop, paddingTops: paddingTops = 8, paddingSides: paddingSides = 16, gap: gap = 4, onToolTip: onToolTip = () => null, onClick: onClick = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "children", "label", "icon", "tooltip", "iconSize", "disabled", "focused", "iconPosition", "labelSize", "labelColor", "labelColorHover", "iconColor", "iconColorHover", "backgroundColor", "backgroundColorHover", "borderWidth", "borderSize", "borderColor", "borderColorHover", "borderColorDisabled", "bgColor", "bgColorHover", "borderRadius", "paddingTop", "paddingTops", "paddingSides", "gap", "onToolTip", "onClick" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isHovered, setIsHovered] = React.useState(!1), resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedBackgroundColorHover = null != backgroundColorHover ? backgroundColorHover : bgColorHover, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, resolvedPaddingTop = null != paddingTop ? paddingTop : paddingTops, handleClick = React.useCallback(e => {
|
|
15
|
-
disabled || onClick(e);
|
|
16
|
-
}, [ disabled, onClick ]), handleMouseEnter = React.useCallback((enter, event) => {
|
|
17
|
-
if (enter) {
|
|
18
|
-
if (tooltip) {
|
|
19
|
-
const tip = {
|
|
20
|
-
type: sharedTypes.ToolTipType.button,
|
|
21
|
-
payload: {
|
|
22
|
-
label: tooltip
|
|
23
|
-
},
|
|
24
|
-
ref: null,
|
|
25
|
-
event: event
|
|
26
|
-
};
|
|
27
|
-
onToolTip(tip);
|
|
28
|
-
}
|
|
29
|
-
setIsHovered(!0);
|
|
30
|
-
} else onToolTip(null), setIsHovered(!1);
|
|
31
|
-
}, [ tooltip, onToolTip ]), padding = React.useMemo(() => {
|
|
32
|
-
if (!icon) return `${resolvedPaddingTop}px ${paddingSides}px`;
|
|
33
|
-
return `${resolvedPaddingTop}px ${"right" === iconPosition ? paddingSides - 4 : paddingSides}px ${resolvedPaddingTop}px ${"right" === iconPosition ? paddingSides : paddingSides - 4}px`;
|
|
34
|
-
}, [ icon, iconPosition, resolvedPaddingTop, paddingSides ]), computedIconColor = React.useMemo(() => disabled ? "var(--core-text-disabled)" : isHovered ? null != iconColorHover ? iconColorHover : "var(--core-text-special)" : null != iconColor ? iconColor : "var(--core-text-primary)", [ iconColor, disabled, isHovered, iconColorHover ]), cssVars = React.useMemo(() => ({
|
|
35
|
-
"--ui-chip-padding": padding,
|
|
36
|
-
"--ui-chip-gap": misc.setStyle(gap),
|
|
37
|
-
"--ui-chip-border-radius": misc.setStyle(borderRadius),
|
|
38
|
-
"--ui-chip-border-size": misc.setStyle(resolvedBorderWidth),
|
|
39
|
-
"--ui-chip-border-color": disabled ? borderColorDisabled : borderColor,
|
|
40
|
-
"--ui-chip-border-color-hover": disabled ? borderColorDisabled : borderColorHover,
|
|
41
|
-
"--ui-chip-bg-color": resolvedBackgroundColor,
|
|
42
|
-
"--ui-chip-bg-color-hover": disabled ? resolvedBackgroundColor : resolvedBackgroundColorHover,
|
|
43
|
-
"--ui-chip-label-color": disabled ? "var(--core-text-disabled)" : labelColor,
|
|
44
|
-
"--ui-chip-label-color-hover": disabled ? "var(--core-text-disabled)" : labelColorHover,
|
|
45
|
-
"--ui-chip-cursor": disabled ? "default" : "pointer"
|
|
46
|
-
}), [ padding, resolvedBackgroundColor, borderColor, borderColorDisabled, borderColorHover, resolvedBorderWidth, resolvedBackgroundColorHover, labelColorHover, labelColor, gap, borderRadius, disabled ]);
|
|
47
|
-
return jsxRuntime.jsxs("div", Object.assign({
|
|
48
|
-
id: divId,
|
|
49
|
-
className: `${css.chip}${divClass}`,
|
|
50
|
-
style: Object.assign(Object.assign({}, divStyle), cssVars),
|
|
51
|
-
onKeyDown: e => misc.accessibleKeyDown(e, () => handleClick(e)),
|
|
52
|
-
onClick: handleClick,
|
|
53
|
-
onMouseEnter: e => handleMouseEnter(!0, e),
|
|
54
|
-
onMouseLeave: e => handleMouseEnter(!1, e)
|
|
55
|
-
}, rest, {
|
|
56
|
-
children: [ icon && "right" !== iconPosition && jsxRuntime.jsx("div", {
|
|
57
|
-
className: css.icon,
|
|
58
|
-
children: jsxRuntime.jsx(Icon.Icon, {
|
|
59
|
-
name: icon,
|
|
60
|
-
size: iconSize,
|
|
61
|
-
strokeColor: computedIconColor
|
|
62
|
-
})
|
|
63
|
-
}), jsxRuntime.jsx("div", {
|
|
64
|
-
className: css[labelSize],
|
|
65
|
-
children: null != children ? children : label
|
|
66
|
-
}), icon && "right" === iconPosition && jsxRuntime.jsx("div", {
|
|
67
|
-
className: css.icon,
|
|
68
|
-
children: jsxRuntime.jsx(Icon.Icon, {
|
|
69
|
-
name: icon,
|
|
70
|
-
size: iconSize,
|
|
71
|
-
strokeColor: computedIconColor
|
|
72
|
-
})
|
|
73
|
-
}) ]
|
|
74
|
-
}));
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
exports.Chip = Chip;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
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"), sharedTypes = require("./sharedTypes-BOieqpQy.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
|
-
|
|
6
|
-
const IconButton = React.memo(props => {
|
|
7
|
-
const {frameSize: frameSize = 36, iconSize: iconSize = 20, round: round = !0, icon: icon = "more", borderRadius: borderRadius = 4, border: border = !1, tooltip: tooltip, color: color, colorOn: colorOn, iconFill: iconFill = !1, bgColor: bgColor = "var(--core-surface-secondary)", bgColorHover: bgColorHover = "var(--core-outline-primary)", bgColorOn: bgColorOn = "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", onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "frameSize", "iconSize", "round", "icon", "borderRadius", "border", "tooltip", "color", "colorOn", "iconFill", "bgColor", "bgColorHover", "bgColorOn", "iconColor", "iconColorOn", "iconColorHover", "transition", "variants", "initial", "animate", "exit", "fillColor", "label", "hover", "count", "toggle", "toggleIcon", "isToggled", "disabled", "showDot", "buttonSize", "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);
|
|
8
|
-
React.useEffect(() => setOn(isToggled), [ isToggled ]);
|
|
9
|
-
const handleClick = React.useCallback(e => {
|
|
10
|
-
disabled || (tooltip && onToolTip(null), toggle && setOn(!on), onClick(e));
|
|
11
|
-
}, [ disabled, tooltip, onToolTip, on, onClick, toggle ]), handleMouseEnter = React.useCallback(e => {
|
|
12
|
-
if (setHovered(!0), !(null == ref ? void 0 : ref.current) || !tooltip) return;
|
|
13
|
-
const tip = {
|
|
14
|
-
type: sharedTypes.ToolTipType.button,
|
|
15
|
-
payload: {
|
|
16
|
-
label: tooltip
|
|
17
|
-
},
|
|
18
|
-
event: e,
|
|
19
|
-
ref: ref
|
|
20
|
-
};
|
|
21
|
-
onToolTip(tip);
|
|
22
|
-
}, [ tooltip, onToolTip ]), handleMouseLeave = React.useCallback(() => {
|
|
23
|
-
setHovered(!1), tooltip && onToolTip(null);
|
|
24
|
-
}, [ tooltip, onToolTip ]), bgColorNormal = React.useMemo(() => on ? bgColorOn : null != bgColor ? bgColor : "var(--core-surface-secondary)", [ bgColorOn, bgColor, on ]), bgHoverColor = React.useMemo(() => hover && on ? bgColorOn : hover ? bgColorHover : null != bgColor ? bgColor : "transparent", [ hover, bgColor, bgColorOn, bgColorHover, 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(() => ({
|
|
25
|
-
"--ib-bg-color": bgColorNormal,
|
|
26
|
-
"--ib-bg-color-hover": disabled ? bgColorNormal : bgHoverColor,
|
|
27
|
-
"--ib-icon-size": `${null != iconSize ? iconSize : 0}px`,
|
|
28
|
-
"--ib-button-size": `${null != size ? size : 0}px`,
|
|
29
|
-
"--ib-border-radius": round ? "100%" : `${null != borderRadius ? borderRadius : 0}px`,
|
|
30
|
-
"--ib-border": border ? "1px" : 0,
|
|
31
|
-
"--ib-color": textColor,
|
|
32
|
-
"--ib-cursor": disabled ? "default" : "pointer"
|
|
33
|
-
}), [ bgColorNormal, bgHoverColor, textColor, border, size, borderRadius, iconSize, round, disabled ]);
|
|
34
|
-
return jsxRuntime.jsxs(react.motion.button, Object.assign({
|
|
35
|
-
id: divId,
|
|
36
|
-
type: "button",
|
|
37
|
-
className: `${css_button}${divClass}`,
|
|
38
|
-
style: Object.assign(Object.assign({}, divStyle), cssVars),
|
|
39
|
-
onClick: e => handleClick(e),
|
|
40
|
-
onMouseOutCapture: handleMouseLeave,
|
|
41
|
-
onMouseOverCapture: handleMouseEnter,
|
|
42
|
-
transition: transition,
|
|
43
|
-
variants: variants,
|
|
44
|
-
initial: initial,
|
|
45
|
-
animate: animate,
|
|
46
|
-
exit: exit,
|
|
47
|
-
disabled: disabled,
|
|
48
|
-
"aria-disabled": disabled,
|
|
49
|
-
ref: ref
|
|
50
|
-
}, rest, {
|
|
51
|
-
children: [ jsxRuntime.jsx("div", {
|
|
52
|
-
className: css_icon,
|
|
53
|
-
style: {
|
|
54
|
-
opacity: disabled ? .3 : 1
|
|
55
|
-
},
|
|
56
|
-
children: jsxRuntime.jsx(Icon.Icon, {
|
|
57
|
-
name: icon,
|
|
58
|
-
strokeColor: setIconColor,
|
|
59
|
-
fillColor: fillColor,
|
|
60
|
-
disabled: disabled,
|
|
61
|
-
size: iconSize,
|
|
62
|
-
fill: iconFill,
|
|
63
|
-
toggle: !!toggleIcon && on,
|
|
64
|
-
pointer: !0
|
|
65
|
-
})
|
|
66
|
-
}), label && jsxRuntime.jsx("div", {
|
|
67
|
-
className: css_label,
|
|
68
|
-
children: label
|
|
69
|
-
}), jsxRuntime.jsx(Dot.Dot, {
|
|
70
|
-
show: showDot
|
|
71
|
-
}), 0 !== count && jsxRuntime.jsx("div", {
|
|
72
|
-
className: css_count,
|
|
73
|
-
children: jsxRuntime.jsx(Badge.Badge, {
|
|
74
|
-
variant: "light",
|
|
75
|
-
count: count,
|
|
76
|
-
hideNull: !0
|
|
77
|
-
})
|
|
78
|
-
}) ]
|
|
79
|
-
}));
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
exports.IconButton = IconButton;
|