@apple-pie/slice 0.1.34 → 0.1.36
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-D6EdVxCx.js → AudioBubble-BE_f4Hso.js} +3 -4
- package/dist/cjs/chunks/{Avatar-C8Y8QA6W.js → Avatar-BiyInyRO.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-BJGROy0D.js → AvatarGroup-DRL0lWmX.js} +1 -1
- package/dist/cjs/chunks/{Badge-D0jOqpGM.js → Badge-DMowUBPk.js} +1 -1
- package/dist/cjs/chunks/{Button-CSyenByA.js → Button-COMAPFWV.js} +5 -4
- package/dist/cjs/chunks/{ButtonBar-D6nO_KLU.js → ButtonBar-IiuZuTLR.js} +1 -1
- package/dist/cjs/chunks/{Camera-C8ug84NJ.js → Camera-Ly06XVkk.js} +4 -5
- package/dist/cjs/chunks/{CheckBox-rALyYaSt.js → CheckBox-HmPtb4qd.js} +1 -1
- package/dist/cjs/chunks/{Chip-BwxjTPRM.js → Chip-6PG7VzN-.js} +9 -9
- package/dist/cjs/chunks/{DivInput-BRhOr7b5.js → DivInput-C-PFUeDT.js} +1 -1
- package/dist/cjs/chunks/{Dot-DLk45OlQ.js → Dot-dB91CPB9.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-Ch24xWZu.js → DrggablePanel-B4pmiREo.js} +8 -8
- package/dist/cjs/chunks/{DropDown-BbhZnN_w.js → DropDown-DrFvc39t.js} +1 -1
- package/dist/cjs/chunks/{ErrorSummary-CI6hUFwD.js → ErrorSummary-_XvQGFbZ.js} +3 -4
- package/dist/cjs/chunks/{FileIcon-CfjasX-r.js → FileIcon-UA9ZceY_.js} +3 -4
- package/dist/cjs/chunks/{FileList-B93Xcxz4.js → FileList-CnsmD5Y7.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-rfXrDSOq.js → FlexDiv-WZf3guIi.js} +1 -1
- package/dist/cjs/chunks/{Grouper-DSrE9R-U.js → Grouper-BzPprBpD.js} +3 -4
- package/dist/cjs/chunks/{Icon-CRxH8X5b.js → Icon-g039RSWl.js} +16 -5
- package/dist/cjs/chunks/IconButton-DZBikqIA.js +182 -0
- package/dist/cjs/chunks/{IndexedDB-BFj53nVB.js → IndexedDB-DW-NDU8i.js} +1 -1
- package/dist/cjs/chunks/{Label-BHP_DdP0.js → Label-BLCGQli-.js} +1 -1
- package/dist/cjs/chunks/{Level-BWOIrzAv.js → Level-CvPkz_70.js} +1 -1
- package/dist/cjs/chunks/{Modal-BEKrk6zT.js → Modal-D8RvqX4f.js} +1 -1
- package/dist/cjs/chunks/{ModalController-DQJ-Vr6w.js → ModalController-ctBbD_Jn.js} +2 -3
- package/dist/cjs/chunks/{Overlay-CgD0_kQK.js → Overlay-CB0-ZCbr.js} +1 -1
- package/dist/cjs/chunks/{Pager-CjMnXBqh.js → Pager-GwtjwNSr.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-V-orBNdI.js → ProgressIndicator-BqAJgdQp.js} +3 -4
- package/dist/cjs/chunks/{PromptInput-DK1pGnIm.js → PromptInput-B5-MrCid.js} +4 -5
- package/dist/cjs/chunks/{RadioButton-DOv8YC-8.js → RadioButton-B0It6bQ8.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-BC0PaUB2.js → RadioButtonList-B-G1DO7M.js} +1 -1
- package/dist/cjs/chunks/{Slider-D4zQ-4aq.js → Slider-BDCvQ_h4.js} +3 -4
- package/dist/cjs/chunks/{Spacer-CdIj0JdL.js → Spacer-C_qGs52F.js} +1 -1
- package/dist/cjs/chunks/{Switch-BcyjA09W.js → Switch-2YgqC8vV.js} +1 -1
- package/dist/cjs/chunks/{TabBar-BzfXUqQ7.js → TabBar-C3FbWoTz.js} +5 -6
- package/dist/cjs/chunks/{TextArea-Aqo_XxW3.js → TextArea-C3DehkDw.js} +3 -2
- package/dist/cjs/chunks/{TextField-D9cVqxeH.js → TextField-BkZlrRfY.js} +4 -5
- package/dist/cjs/chunks/{Tip-6p-WETDg.js → Tip-CEvYKuL1.js} +1 -1
- package/dist/cjs/chunks/{Toast-D2RPpe4w.js → Toast-BoCExCrT.js} +4 -5
- package/dist/cjs/chunks/{ToggleButton-DIO-mLzn.js → ToggleButton-CBQt8Ii8.js} +6 -4
- package/dist/cjs/chunks/{UploadArea-dLHkxZaJ.js → UploadArea-D3I4J8B7.js} +1 -1
- package/dist/cjs/chunks/{WSConnection-DUtc0Zek.js → WSConnection-D6rZfnAf.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-DOegM5k_.js → WebRTCConnection-C_IDgzdx.js} +1 -1
- package/dist/cjs/chunks/{_types-CnvV2yMQ.js → _types-Cq4h0y4u.js} +3 -1
- package/dist/cjs/chunks/{localDBStore-BE1Spdvk.js → localDBStore-CmeqEYMi.js} +1 -1
- package/dist/cjs/chunks/{microphoneStore-BQttBRKb.js → microphoneStore-V2mYQFa4.js} +1 -1
- package/dist/cjs/chunks/{misc-CktV9aap.js → misc-CGesOGlL.js} +1 -1
- package/dist/cjs/chunks/{sseStore-CUctZwDm.js → sseStore-Bql9biBI.js} +2 -2
- package/dist/cjs/chunks/{uploads-worker-B-7wl30J.js → uploads-worker-CpdqGKrs.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-BhvyVpxk.js → uploadsStore-DWM1E-GX.js} +2 -2
- package/dist/cjs/chunks/{volumeStore-CPxgI64S.js → volumeStore-CpxXslLu.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-M1HXHN92.js → webRTCStore-C9e5XlzB.js} +1 -1
- package/dist/cjs/chunks/{windowStore-BeMPlP7X.js → windowStore-DV7Ch5Z2.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +5 -7
- 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 +8 -9
- package/dist/cjs/components/ButtonBar/index.js +5 -7
- package/dist/cjs/components/Camera/index.js +6 -8
- package/dist/cjs/components/CheckBox/index.js +5 -7
- package/dist/cjs/components/Chip/index.js +6 -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 -7
- package/dist/cjs/components/DropDown/index.js +5 -7
- package/dist/cjs/components/ErrorSummary/index.js +5 -6
- package/dist/cjs/components/FileIcon/index.js +5 -6
- package/dist/cjs/components/FileList/index.js +7 -8
- package/dist/cjs/components/FlexDiv/index.js +2 -2
- package/dist/cjs/components/Grouper/index.js +6 -7
- package/dist/cjs/components/Icon/index.js +5 -6
- package/dist/cjs/components/IconButton/index.js +17 -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 +9 -10
- package/dist/cjs/components/ModalController/index.js +4 -6
- package/dist/cjs/components/Overlay/index.js +2 -2
- package/dist/cjs/components/Pager/index.js +3 -3
- package/dist/cjs/components/Progress/index.js +4 -5
- package/dist/cjs/components/PromptInput/index.js +8 -10
- package/dist/cjs/components/RadioButton/index.js +5 -7
- package/dist/cjs/components/RadioButtonList/index.js +6 -8
- package/dist/cjs/components/Slider/index.js +5 -7
- 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 +7 -9
- package/dist/cjs/components/TextArea/index.js +8 -9
- package/dist/cjs/components/Textfield/index.js +8 -10
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +5 -6
- package/dist/cjs/components/ToggleButton/index.js +8 -9
- package/dist/cjs/components/UploadArea/index.js +10 -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 +20 -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 +22 -22
- 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-BudIMUsf.mjs → AudioBubble-DbIkKNSG.mjs} +4 -8
- package/dist/esm/chunks/{Avatar-Bk8kdTEa.mjs → Avatar-BdEM1ozC.mjs} +2 -2
- package/dist/esm/chunks/{AvatarGroup-CRixAHW5.mjs → AvatarGroup-BTYNzBuA.mjs} +2 -2
- package/dist/esm/chunks/{Badge-DHvo2-ZQ.mjs → Badge-BpiR8FTR.mjs} +1 -1
- package/dist/esm/chunks/{Button-v92U2QVV.mjs → Button-CsgknV85.mjs} +10 -9
- package/dist/esm/chunks/{ButtonBar-Bn4GhpbO.mjs → ButtonBar-BFZwa2aG.mjs} +3 -3
- package/dist/esm/chunks/{Camera-Cvp_kb-A.mjs → Camera-CqXqVh7j.mjs} +6 -10
- package/dist/esm/chunks/{CheckBox-CUbeBXgg.mjs → CheckBox-CQxfSzXH.mjs} +3 -3
- package/dist/esm/chunks/Chip-B9lOeTEj.mjs +87 -0
- package/dist/esm/chunks/{DivInput-CZ3PVteW.mjs → DivInput-D98_x_cR.mjs} +2 -2
- package/dist/esm/chunks/{Dot-B6Q97aIp.mjs → Dot-CWHimm2-.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-DLltuMUc.mjs → DrggablePanel-CWuLIdX9.mjs} +8 -11
- package/dist/esm/chunks/{DropDown-DqVsJwO3.mjs → DropDown-DmvRDK3x.mjs} +3 -3
- package/dist/esm/chunks/{ErrorSummary-CCTJpTqA.mjs → ErrorSummary-CB6H8_k-.mjs} +3 -7
- package/dist/esm/chunks/{FileIcon-DnEohsNX.mjs → FileIcon-D20gyTFi.mjs} +3 -7
- package/dist/esm/chunks/{FileList-CnuT4Llg.mjs → FileList-C-YZ-FcH.mjs} +5 -5
- package/dist/esm/chunks/{FlexDiv-DGEzQRcq.mjs → FlexDiv-CtfrPPcV.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-BoGryrnc.mjs → Grouper-gDZnuiM0.mjs} +4 -8
- package/dist/esm/chunks/{Icon-CbDAKN_S.mjs → Icon-CF8mSm1j.mjs} +17 -9
- package/dist/esm/chunks/IconButton-DAyyIY8J.mjs +193 -0
- package/dist/esm/chunks/{IndexedDB-Bqjric8V.mjs → IndexedDB-Ckz-KqBO.mjs} +1 -1
- package/dist/esm/chunks/{Label-BlvreqNJ.mjs → Label-2jNz4_6V.mjs} +2 -2
- package/dist/esm/chunks/{Level-COXHoBs6.mjs → Level-CVC8xDqy.mjs} +3 -3
- package/dist/esm/chunks/{Modal-CqBytyja.mjs → Modal-BmNG8fzy.mjs} +5 -5
- package/dist/esm/chunks/{ModalController-6Gc8QRxx.mjs → ModalController-Ce3srWy-.mjs} +3 -7
- package/dist/esm/chunks/{Overlay-iKgSkUKP.mjs → Overlay-B7lugjjj.mjs} +1 -1
- package/dist/esm/chunks/{Pager-XgsZBzcg.mjs → Pager-DURbG5j1.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-BWrcdWvF.mjs → ProgressIndicator-CRc_YmyK.mjs} +3 -7
- package/dist/esm/chunks/{PromptInput-DbT3sVeA.mjs → PromptInput-vnwk-zMH.mjs} +5 -9
- package/dist/esm/chunks/{RadioButton-DUzPaLKa.mjs → RadioButton-BEuDCEOu.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-NjEGYpj4.mjs → RadioButtonList-B_WIvWpr.mjs} +3 -3
- package/dist/esm/chunks/{Slider-Bvnhqzjx.mjs → Slider-CDjKOpoL.mjs} +4 -8
- package/dist/esm/chunks/{Spacer-B2JAN7e8.mjs → Spacer-CdkfmN54.mjs} +1 -1
- package/dist/esm/chunks/{Switch-CspvY_DQ.mjs → Switch-C_DiN4cG.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-BlvOUGJx.mjs → TabBar-D8IYekUP.mjs} +8 -12
- package/dist/esm/chunks/{TextArea-BpMTGopK.mjs → TextArea-DWcOF8Wp.mjs} +4 -3
- package/dist/esm/chunks/{TextField-DELrBLOa.mjs → TextField-D-Y8f0QY.mjs} +6 -10
- package/dist/esm/chunks/{Tip-DBVeB0Zs.mjs → Tip-Cr872A6k.mjs} +2 -2
- package/dist/esm/chunks/{Toast-HU8Pgwsr.mjs → Toast-Bb5Hh3so.mjs} +5 -9
- package/dist/esm/chunks/{ToggleButton-CGpBWhaX.mjs → ToggleButton-_9LchL03.mjs} +7 -5
- package/dist/esm/chunks/{UploadArea-DdV_ILIU.mjs → UploadArea-Dm3tjBoN.mjs} +4 -4
- package/dist/esm/chunks/{WSConnection-eStD8i-1.mjs → WSConnection-B1_GePm4.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-BaPHQ_C4.mjs → WebRTCConnection-DFZPhyph.mjs} +1 -1
- package/dist/esm/chunks/{_types-DR4jXucA.mjs → _types-CI0sR4EH.mjs} +3 -1
- package/dist/esm/chunks/{localDBStore-NpiMrXsA.mjs → localDBStore-C-lYeGJl.mjs} +2 -2
- package/dist/esm/chunks/{microphoneStore-uYs2NQQx.mjs → microphoneStore-zHPtnRfW.mjs} +1 -1
- package/dist/esm/chunks/{misc-BQH7I5Zj.mjs → misc-DjqDmrJE.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-ueYoyFeB.mjs → sseStore-ZGbbKbVB.mjs} +2 -2
- package/dist/esm/chunks/{uploads-worker-CFPGExfT.mjs → uploads-worker-kw6UOEx5.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-DNalSMtC.mjs → uploadsStore-BfyNmYWk.mjs} +1 -1
- package/dist/esm/chunks/{volumeStore-C0iU07fK.mjs → volumeStore-D_5Xqf_0.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-Ck8TCzr_.mjs → webRTCStore-Cy7Mo7hB.mjs} +2 -2
- package/dist/esm/chunks/{windowStore-DcYPAWds.mjs → windowStore-CXggRA80.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +5 -11
- 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 +9 -15
- package/dist/esm/components/ButtonBar/index.mjs +5 -11
- package/dist/esm/components/Camera/index.mjs +7 -13
- package/dist/esm/components/CheckBox/index.mjs +5 -11
- package/dist/esm/components/Chip/index.mjs +6 -12
- 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 +4 -10
- package/dist/esm/components/DropDown/index.mjs +5 -11
- package/dist/esm/components/ErrorSummary/index.mjs +4 -10
- package/dist/esm/components/FileIcon/index.mjs +4 -10
- package/dist/esm/components/FileList/index.mjs +7 -13
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +6 -12
- package/dist/esm/components/Icon/index.mjs +5 -11
- package/dist/esm/components/IconButton/index.mjs +8 -14
- 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 +11 -17
- package/dist/esm/components/ModalController/index.mjs +5 -11
- 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 +5 -11
- package/dist/esm/components/PromptInput/index.mjs +12 -18
- package/dist/esm/components/RadioButton/index.mjs +5 -11
- package/dist/esm/components/RadioButtonList/index.mjs +6 -12
- package/dist/esm/components/Slider/index.mjs +5 -11
- 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 +9 -15
- package/dist/esm/components/TextArea/index.mjs +10 -16
- package/dist/esm/components/Textfield/index.mjs +11 -17
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +6 -12
- package/dist/esm/components/ToggleButton/index.mjs +10 -16
- package/dist/esm/components/UploadArea/index.mjs +10 -16
- 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 +14 -1
- 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 +2 -2
- 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/theme/colors/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/chunks/IconButton-KFtalJ6A.js +0 -82
- package/dist/esm/chunks/Chip-HGLXF8JO.mjs +0 -87
- package/dist/esm/chunks/IconButton-nOcdRqR3.mjs +0 -96
- /package/dist/cjs/chunks/{MdStreamBuffer-CQGZtTLN.js → MdStreamBuffer-P4x0pDST.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-BqitbvAq.js → SSEConnection-CYqfVBs1.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-i41gzZXM.js → audioVisualizer-D3ZG5ZP6.js} +0 -0
- /package/dist/cjs/chunks/{colors-BlSE7Sf2.js → colors-DbCrvnqF.js} +0 -0
- /package/dist/cjs/chunks/{debounce-C7m-uQW2.js → debounce-DnWdlF44.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-BrwOUMH_.js → modalStore-CJNFUtIy.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-Cep5dDpY.js → sharedTypes-D5nZ9SDg.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-BXKWR6IE.js → tipStore-DV7lnGfJ.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-Y9JmFP0o.js → toastStore-B_Kb_gld.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-yslq87rf.js → tslib.es6-CjqORQO8.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-BF5ZQeUD.mjs → MdStreamBuffer-QqAM_dVR.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-DNA5yBWy.mjs → SSEConnection-Bxy3gcK3.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-CAET7dc9.mjs → audioVisualizer-DKVVhtrd.mjs} +0 -0
- /package/dist/esm/chunks/{colors-BHYMt294.mjs → colors-znQ0X8Pf.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-DpPYyz3x.mjs → debounce-AGOKEQDZ.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-DbxIsSpU.mjs → modalStore-BXnW8M6D.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-DoNQkNSM.mjs → sharedTypes-_CvGLd7A.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-CmyIJWe7.mjs → tipStore-BZPw1gyq.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-BYMHSiu2.mjs → toastStore-BXCjnqI1.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-75ZdAmtm.mjs → tslib.es6-8-nvCYY0.mjs} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { g as getToast, t as toastActions, u as useToast, a as useToastActions, b as useToastStore } from "../chunks/toastStore-
|
|
1
|
+
export { g as getToast, t as toastActions, u as useToast, a as useToastActions, b as useToastStore } from "../chunks/toastStore-BXCjnqI1.mjs";
|
|
2
2
|
|
|
3
3
|
import "zustand";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-BfyNmYWk.mjs";
|
|
2
2
|
|
|
3
3
|
import "zustand";
|
|
4
4
|
|
|
5
|
-
import "../chunks/uploads-worker-
|
|
5
|
+
import "../chunks/uploads-worker-kw6UOEx5.mjs";
|
|
6
6
|
|
|
7
|
-
import "../chunks/tslib.es6-
|
|
7
|
+
import "../chunks/tslib.es6-8-nvCYY0.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-D_5Xqf_0.mjs";
|
|
2
2
|
|
|
3
|
-
import "../chunks/tslib.es6-
|
|
3
|
+
import "../chunks/tslib.es6-8-nvCYY0.mjs";
|
|
4
4
|
|
|
5
5
|
import "zustand";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-CXggRA80.mjs";
|
|
2
2
|
|
|
3
|
-
import "../chunks/tslib.es6-
|
|
3
|
+
import "../chunks/tslib.es6-8-nvCYY0.mjs";
|
|
4
4
|
|
|
5
5
|
import "zustand";
|
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-zHPtnRfW.mjs";
|
|
2
2
|
|
|
3
|
-
export { g as
|
|
3
|
+
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-CXggRA80.mjs";
|
|
4
4
|
|
|
5
|
-
export {
|
|
5
|
+
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-BfyNmYWk.mjs";
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
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-D_5Xqf_0.mjs";
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { g as getModal, m as modalActions, u as useModal, a as useModalActions, b as useModalStore } from "./chunks/modalStore-BXnW8M6D.mjs";
|
|
10
10
|
|
|
11
|
-
export { g as
|
|
11
|
+
export { g as getTip, t as tipActions, u as useTip, a as useTipActions, b as useTipStore } from "./chunks/tipStore-BZPw1gyq.mjs";
|
|
12
12
|
|
|
13
|
-
export { g as
|
|
13
|
+
export { g as getToast, t as toastActions, u as useToast, a as useToastActions, b as useToastStore } from "./chunks/toastStore-BXCjnqI1.mjs";
|
|
14
14
|
|
|
15
|
-
export { g as
|
|
15
|
+
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-Cy7Mo7hB.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-C-lYeGJl.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-ZGbbKbVB.mjs";
|
|
20
20
|
|
|
21
|
-
import "./chunks/tslib.es6-
|
|
21
|
+
import "./chunks/tslib.es6-8-nvCYY0.mjs";
|
|
22
22
|
|
|
23
23
|
import "react";
|
|
24
24
|
|
|
25
25
|
import "zustand";
|
|
26
26
|
|
|
27
|
-
import "./chunks/
|
|
27
|
+
import "./chunks/uploads-worker-kw6UOEx5.mjs";
|
|
28
28
|
|
|
29
|
-
import "./chunks/
|
|
29
|
+
import "./chunks/WebRTCConnection-DFZPhyph.mjs";
|
|
30
30
|
|
|
31
31
|
import "zustand/react/shallow";
|
|
32
32
|
|
|
33
|
-
import "./chunks/IndexedDB-
|
|
33
|
+
import "./chunks/IndexedDB-Ckz-KqBO.mjs";
|
|
34
34
|
|
|
35
|
-
import "./chunks/SSEConnection-
|
|
35
|
+
import "./chunks/SSEConnection-Bxy3gcK3.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-DjqDmrJE.mjs";
|
|
2
2
|
|
|
3
|
-
export { d as debounce } from "../chunks/debounce-
|
|
3
|
+
export { d as debounce } from "../chunks/debounce-AGOKEQDZ.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-znQ0X8Pf.mjs";
|
|
6
6
|
|
|
7
|
-
export { I as IndexedDB } from "../chunks/IndexedDB-
|
|
7
|
+
export { I as IndexedDB } from "../chunks/IndexedDB-Ckz-KqBO.mjs";
|
|
8
8
|
|
|
9
|
-
export { A as AudioVisualizer } from "../chunks/audioVisualizer-
|
|
9
|
+
export { A as AudioVisualizer } from "../chunks/audioVisualizer-DKVVhtrd.mjs";
|
|
10
10
|
|
|
11
|
-
export { M as MdBuffer } from "../chunks/MdStreamBuffer-
|
|
11
|
+
export { M as MdBuffer } from "../chunks/MdStreamBuffer-QqAM_dVR.mjs";
|
|
12
12
|
|
|
13
|
-
export { S as SSEConnection } from "../chunks/SSEConnection-
|
|
13
|
+
export { S as SSEConnection } from "../chunks/SSEConnection-Bxy3gcK3.mjs";
|
|
14
14
|
|
|
15
|
-
export { W as WSConnection } from "../chunks/WSConnection-
|
|
15
|
+
export { W as WSConnection } from "../chunks/WSConnection-B1_GePm4.mjs";
|
|
16
16
|
|
|
17
|
-
export { W as WebRTCConnection } from "../chunks/WebRTCConnection-
|
|
17
|
+
export { W as WebRTCConnection } from "../chunks/WebRTCConnection-DFZPhyph.mjs";
|
|
18
18
|
|
|
19
|
-
import "../chunks/tslib.es6-
|
|
19
|
+
import "../chunks/tslib.es6-8-nvCYY0.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { I as IndexedDB } from "../../chunks/IndexedDB-
|
|
1
|
+
export { I as IndexedDB } from "../../chunks/IndexedDB-Ckz-KqBO.mjs";
|
|
2
2
|
|
|
3
|
-
export { A as AudioVisualizer } from "../../chunks/audioVisualizer-
|
|
3
|
+
export { A as AudioVisualizer } from "../../chunks/audioVisualizer-DKVVhtrd.mjs";
|
|
4
4
|
|
|
5
|
-
export { M as MdBuffer } from "../../chunks/MdStreamBuffer-
|
|
5
|
+
export { M as MdBuffer } from "../../chunks/MdStreamBuffer-QqAM_dVR.mjs";
|
|
6
6
|
|
|
7
|
-
export { S as SSEConnection } from "../../chunks/SSEConnection-
|
|
7
|
+
export { S as SSEConnection } from "../../chunks/SSEConnection-Bxy3gcK3.mjs";
|
|
8
8
|
|
|
9
|
-
export { W as WSConnection } from "../../chunks/WSConnection-
|
|
9
|
+
export { W as WSConnection } from "../../chunks/WSConnection-B1_GePm4.mjs";
|
|
10
10
|
|
|
11
|
-
export { W as WebRTCConnection } from "../../chunks/WebRTCConnection-
|
|
11
|
+
export { W as WebRTCConnection } from "../../chunks/WebRTCConnection-DFZPhyph.mjs";
|
|
12
12
|
|
|
13
|
-
import "../../chunks/tslib.es6-
|
|
13
|
+
import "../../chunks/tslib.es6-8-nvCYY0.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerUploadsWorker } from "../../chunks/uploads-worker-
|
|
1
|
+
import { r as registerUploadsWorker } from "../../chunks/uploads-worker-kw6UOEx5.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-8-nvCYY0.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 {
|
|
@@ -7261,6 +7266,14 @@ line {
|
|
|
7261
7266
|
-webkit-text-fill-color: var(--core-text-primary);
|
|
7262
7267
|
}
|
|
7263
7268
|
|
|
7269
|
+
.TextField-module_input__AkWBQ:-webkit-autofill::placeholder {
|
|
7270
|
+
color: var(--tf-placeholder-color);
|
|
7271
|
+
}
|
|
7272
|
+
|
|
7273
|
+
.TextField-module_input__AkWBQ:-webkit-autofill::backdrop {
|
|
7274
|
+
color: transparent;
|
|
7275
|
+
}
|
|
7276
|
+
|
|
7264
7277
|
.TextField-module_showPassword__4Ecfo {
|
|
7265
7278
|
min-height: 18px;
|
|
7266
7279
|
min-width: 18px;
|
|
@@ -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 {};
|
|
@@ -32,7 +32,7 @@ type TabBarBaseProps = {
|
|
|
32
32
|
onClose?: () => void;
|
|
33
33
|
justify?: 'start' | 'center' | 'end';
|
|
34
34
|
borderColor?: string;
|
|
35
|
-
textSize?: 'xs' | 's' | 'm' | 'l';
|
|
35
|
+
textSize?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
36
36
|
};
|
|
37
37
|
export type TabBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof TabBarBaseProps> & TabBarBaseProps;
|
|
38
38
|
export interface TabOptionProps {
|
|
@@ -54,6 +54,6 @@ export interface TabOptionProps {
|
|
|
54
54
|
onToolTip?: (tip: ToolTip | null) => void;
|
|
55
55
|
buttonRef?: (element: HTMLButtonElement | null) => void;
|
|
56
56
|
borderColor?: string;
|
|
57
|
-
textSize?: 'xs' | 's' | 'm' | 'l';
|
|
57
|
+
textSize?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
58
58
|
}
|
|
59
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';
|
|
@@ -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,82 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-yslq87rf.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), Badge = require("./Badge-D0jOqpGM.js"), Dot = require("./Dot-DLk45OlQ.js"), Icon = require("./Icon-CRxH8X5b.js"), sharedTypes = require("./sharedTypes-Cep5dDpY.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;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { _ as __rest } from "./tslib.es6-75ZdAmtm.mjs";
|
|
3
|
-
|
|
4
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
import React, { useState, useCallback, useMemo } from "react";
|
|
7
|
-
|
|
8
|
-
import { s as setStyle, a as accessibleKeyDown } from "./misc-BQH7I5Zj.mjs";
|
|
9
|
-
|
|
10
|
-
import { I as Icon } from "./Icon-CbDAKN_S.mjs";
|
|
11
|
-
|
|
12
|
-
import { T as ToolTipType } from "./sharedTypes-DoNQkNSM.mjs";
|
|
13
|
-
|
|
14
|
-
var css = {
|
|
15
|
-
chip: "Chip-module_chip__0nys- flexBox-module_row__z24tF",
|
|
16
|
-
icon: "Chip-module_icon__dtR-K flexBox-module_row__z24tF",
|
|
17
|
-
xs: "Chip-module_xs__s-KNG type-module_body-xs-regular__ZAFft",
|
|
18
|
-
s: "Chip-module_s__2KTXi type-module_body-s-regular__vRHSP",
|
|
19
|
-
m: "Chip-module_m__l2u3N type-module_body-m-regular__LuQBA",
|
|
20
|
-
l: "Chip-module_l__3MqPN type-module_body-l-regular__lOYbg"
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const Chip = React.memo(props => {
|
|
24
|
-
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 = __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 = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isHovered, setIsHovered] = useState(!1), resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedBackgroundColorHover = null != backgroundColorHover ? backgroundColorHover : bgColorHover, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, resolvedPaddingTop = null != paddingTop ? paddingTop : paddingTops, handleClick = useCallback(e => {
|
|
25
|
-
disabled || onClick(e);
|
|
26
|
-
}, [ disabled, onClick ]), handleMouseEnter = useCallback((enter, event) => {
|
|
27
|
-
if (enter) {
|
|
28
|
-
if (tooltip) {
|
|
29
|
-
const tip = {
|
|
30
|
-
type: ToolTipType.button,
|
|
31
|
-
payload: {
|
|
32
|
-
label: tooltip
|
|
33
|
-
},
|
|
34
|
-
ref: null,
|
|
35
|
-
event: event
|
|
36
|
-
};
|
|
37
|
-
onToolTip(tip);
|
|
38
|
-
}
|
|
39
|
-
setIsHovered(!0);
|
|
40
|
-
} else onToolTip(null), setIsHovered(!1);
|
|
41
|
-
}, [ tooltip, onToolTip ]), padding = useMemo(() => {
|
|
42
|
-
if (!icon) return `${resolvedPaddingTop}px ${paddingSides}px`;
|
|
43
|
-
return `${resolvedPaddingTop}px ${"right" === iconPosition ? paddingSides - 4 : paddingSides}px ${resolvedPaddingTop}px ${"right" === iconPosition ? paddingSides : paddingSides - 4}px`;
|
|
44
|
-
}, [ icon, iconPosition, resolvedPaddingTop, paddingSides ]), computedIconColor = 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 = useMemo(() => ({
|
|
45
|
-
"--ui-chip-padding": padding,
|
|
46
|
-
"--ui-chip-gap": setStyle(gap),
|
|
47
|
-
"--ui-chip-border-radius": setStyle(borderRadius),
|
|
48
|
-
"--ui-chip-border-size": setStyle(resolvedBorderWidth),
|
|
49
|
-
"--ui-chip-border-color": disabled ? borderColorDisabled : borderColor,
|
|
50
|
-
"--ui-chip-border-color-hover": disabled ? borderColorDisabled : borderColorHover,
|
|
51
|
-
"--ui-chip-bg-color": resolvedBackgroundColor,
|
|
52
|
-
"--ui-chip-bg-color-hover": disabled ? resolvedBackgroundColor : resolvedBackgroundColorHover,
|
|
53
|
-
"--ui-chip-label-color": disabled ? "var(--core-text-disabled)" : labelColor,
|
|
54
|
-
"--ui-chip-label-color-hover": disabled ? "var(--core-text-disabled)" : labelColorHover,
|
|
55
|
-
"--ui-chip-cursor": disabled ? "default" : "pointer"
|
|
56
|
-
}), [ padding, resolvedBackgroundColor, borderColor, borderColorDisabled, borderColorHover, resolvedBorderWidth, resolvedBackgroundColorHover, labelColorHover, labelColor, gap, borderRadius, disabled ]);
|
|
57
|
-
return jsxs("div", Object.assign({
|
|
58
|
-
id: divId,
|
|
59
|
-
className: `${css.chip}${divClass}`,
|
|
60
|
-
style: Object.assign(Object.assign({}, divStyle), cssVars),
|
|
61
|
-
onKeyDown: e => accessibleKeyDown(e, () => handleClick(e)),
|
|
62
|
-
onClick: handleClick,
|
|
63
|
-
onMouseEnter: e => handleMouseEnter(!0, e),
|
|
64
|
-
onMouseLeave: e => handleMouseEnter(!1, e)
|
|
65
|
-
}, rest, {
|
|
66
|
-
children: [ icon && "right" !== iconPosition && jsx("div", {
|
|
67
|
-
className: css.icon,
|
|
68
|
-
children: jsx(Icon, {
|
|
69
|
-
name: icon,
|
|
70
|
-
size: iconSize,
|
|
71
|
-
strokeColor: computedIconColor
|
|
72
|
-
})
|
|
73
|
-
}), jsx("div", {
|
|
74
|
-
className: css[labelSize],
|
|
75
|
-
children: null != children ? children : label
|
|
76
|
-
}), icon && "right" === iconPosition && jsx("div", {
|
|
77
|
-
className: css.icon,
|
|
78
|
-
children: jsx(Icon, {
|
|
79
|
-
name: icon,
|
|
80
|
-
size: iconSize,
|
|
81
|
-
strokeColor: computedIconColor
|
|
82
|
-
})
|
|
83
|
-
}) ]
|
|
84
|
-
}));
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
export { Chip as C };
|