@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
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var AnimationPreset, AnimationType, tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), Badge = require("./Badge-C6Yv-vZ7.js"), Dot = require("./Dot-ByyRFxJf.js"), Icon = require("./Icon-DR7d5wbQ.js"), sharedTypes = require("./sharedTypes-DC-9YrKq.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
|
+
/**
|
|
7
|
+
* Helper for quick popular animation effects
|
|
8
|
+
*/
|
|
9
|
+
exports.AnimationPreset = void 0, (AnimationPreset = exports.AnimationPreset || (exports.AnimationPreset = {})).Rotate = "rotate",
|
|
10
|
+
AnimationPreset.Fade = "fade", AnimationPreset.Scale = "scale",
|
|
11
|
+
/**
|
|
12
|
+
* Popular types
|
|
13
|
+
*/
|
|
14
|
+
exports.AnimationType = void 0, (AnimationType = exports.AnimationType || (exports.AnimationType = {})).Rotate = "rotate",
|
|
15
|
+
AnimationType.Fade = "opacity", AnimationType.Scale = "scale";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Resolves presets to a button animation
|
|
19
|
+
*/
|
|
20
|
+
const presetAnimation = {
|
|
21
|
+
[exports.AnimationPreset.Rotate]: {
|
|
22
|
+
animation: {
|
|
23
|
+
type: exports.AnimationType.Rotate,
|
|
24
|
+
value: {
|
|
25
|
+
on: 0,
|
|
26
|
+
off: 180
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
transition: {
|
|
30
|
+
on: {
|
|
31
|
+
duration: .25,
|
|
32
|
+
ease: "linear"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
[exports.AnimationPreset.Fade]: {
|
|
37
|
+
animation: {
|
|
38
|
+
type: exports.AnimationType.Fade,
|
|
39
|
+
value: {
|
|
40
|
+
off: 0,
|
|
41
|
+
on: 1
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
transition: {
|
|
45
|
+
on: {
|
|
46
|
+
duration: .25,
|
|
47
|
+
ease: "easeInOut"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
[exports.AnimationPreset.Scale]: {
|
|
52
|
+
animation: {
|
|
53
|
+
type: exports.AnimationType.Scale,
|
|
54
|
+
value: {
|
|
55
|
+
off: 0,
|
|
56
|
+
on: 1
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
transition: {
|
|
60
|
+
on: {
|
|
61
|
+
duration: .25,
|
|
62
|
+
ease: "linear"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, resolveVariants = (presets, custom) => {
|
|
67
|
+
const animations = [];
|
|
68
|
+
let transition;
|
|
69
|
+
if (presets) {
|
|
70
|
+
const presetAnimations = presetAnimation[presets].animation, presetTransition = presetAnimation[presets].transition, animationEntries = Array.isArray(presetAnimations) ? presetAnimations : [ presetAnimations ];
|
|
71
|
+
animations.push(...animationEntries), presetTransition && (transition = presetTransition);
|
|
72
|
+
}
|
|
73
|
+
if (custom) {
|
|
74
|
+
const customAnimations = custom.animation, customTransition = custom.transition, customAnimationEntries = Array.isArray(customAnimations) ? customAnimations : [ customAnimations ];
|
|
75
|
+
animations.push(...customAnimationEntries), customTransition && (transition = customTransition);
|
|
76
|
+
}
|
|
77
|
+
return (animations => {
|
|
78
|
+
if (!animations) return;
|
|
79
|
+
const variants = {
|
|
80
|
+
initial: {},
|
|
81
|
+
animate: {},
|
|
82
|
+
exit: {}
|
|
83
|
+
}, {animation: animation, transition: transition} = animations, animationEntries = Array.isArray(animation) ? animation : [ animation ], {on: on, off: off} = null != transition ? transition : {};
|
|
84
|
+
for (const entry of animationEntries) {
|
|
85
|
+
const {type: type, value: value} = entry;
|
|
86
|
+
variants.initial = Object.assign(Object.assign({}, variants.initial), {
|
|
87
|
+
[type]: value.off
|
|
88
|
+
}), variants.animate = Object.assign(Object.assign({}, variants.animate), {
|
|
89
|
+
[type]: value.on,
|
|
90
|
+
transition: on
|
|
91
|
+
}), variants.exit = Object.assign(Object.assign({}, variants.exit), {
|
|
92
|
+
[type]: value.off,
|
|
93
|
+
transition: null != off ? off : on
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return variants;
|
|
97
|
+
})({
|
|
98
|
+
animation: animations,
|
|
99
|
+
transition: transition
|
|
100
|
+
});
|
|
101
|
+
}, IconButton = React.memo(props => {
|
|
102
|
+
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", presetAnimations: presetAnimations, customAnimations: customAnimations, onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "frameSize", "iconSize", "round", "icon", "borderRadius", "border", "tooltip", "color", "colorOn", "iconFill", "bgColor", "bgColorHover", "bgColorOn", "iconColor", "iconColorOn", "iconColorHover", "transition", "variants", "initial", "animate", "exit", "fillColor", "label", "hover", "count", "toggle", "toggleIcon", "isToggled", "disabled", "showDot", "buttonSize", "presetAnimations", "customAnimations", "onClick", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", ref = React.useRef(null), [on, setOn] = React.useState(isToggled), [hovered, setHovered] = React.useState(!1);
|
|
103
|
+
React.useEffect(() => setOn(isToggled), [ isToggled ]);
|
|
104
|
+
const handleClick = React.useCallback(e => {
|
|
105
|
+
disabled || (tooltip && onToolTip(null), toggle && setOn(!on), onClick(e));
|
|
106
|
+
}, [ disabled, tooltip, onToolTip, on, onClick, toggle ]), handleMouseEnter = React.useCallback(e => {
|
|
107
|
+
if (setHovered(!0), !(null == ref ? void 0 : ref.current) || !tooltip) return;
|
|
108
|
+
const tip = {
|
|
109
|
+
type: sharedTypes.ToolTipType.button,
|
|
110
|
+
payload: {
|
|
111
|
+
label: tooltip
|
|
112
|
+
},
|
|
113
|
+
event: e,
|
|
114
|
+
ref: ref
|
|
115
|
+
};
|
|
116
|
+
onToolTip(tip);
|
|
117
|
+
}, [ tooltip, onToolTip ]), handleMouseLeave = React.useCallback(() => {
|
|
118
|
+
setHovered(!1), tooltip && onToolTip(null);
|
|
119
|
+
}, [ 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(() => ({
|
|
120
|
+
"--ib-bg-color": bgColorNormal,
|
|
121
|
+
"--ib-bg-color-hover": disabled ? bgColorNormal : bgHoverColor,
|
|
122
|
+
"--ib-icon-size": `${null != iconSize ? iconSize : 0}px`,
|
|
123
|
+
"--ib-button-size": `${null != size ? size : 0}px`,
|
|
124
|
+
"--ib-border-radius": round ? "100%" : `${null != borderRadius ? borderRadius : 0}px`,
|
|
125
|
+
"--ib-border": border ? "1px" : 0,
|
|
126
|
+
"--ib-color": textColor,
|
|
127
|
+
"--ib-cursor": disabled ? "default" : "pointer"
|
|
128
|
+
}), [ bgColorNormal, bgHoverColor, textColor, border, size, borderRadius, iconSize, round, disabled ]);
|
|
129
|
+
return jsxRuntime.jsxs(react.motion.button, Object.assign({
|
|
130
|
+
id: divId,
|
|
131
|
+
type: "button",
|
|
132
|
+
className: `${css_button}${divClass}`,
|
|
133
|
+
style: Object.assign(Object.assign({}, divStyle), cssVars),
|
|
134
|
+
onClick: e => handleClick(e),
|
|
135
|
+
onMouseOutCapture: handleMouseLeave,
|
|
136
|
+
onMouseOverCapture: handleMouseEnter,
|
|
137
|
+
transition: transition,
|
|
138
|
+
variants: variants,
|
|
139
|
+
initial: initial,
|
|
140
|
+
animate: animate,
|
|
141
|
+
exit: exit,
|
|
142
|
+
disabled: disabled,
|
|
143
|
+
"aria-disabled": disabled,
|
|
144
|
+
ref: ref
|
|
145
|
+
}, rest, {
|
|
146
|
+
children: [ jsxRuntime.jsx(react.motion.div, {
|
|
147
|
+
className: css_icon,
|
|
148
|
+
style: {
|
|
149
|
+
opacity: disabled ? .3 : 1
|
|
150
|
+
},
|
|
151
|
+
variants: resolveVariants(presetAnimations, customAnimations),
|
|
152
|
+
initial: isToggled ? "animate" : "initial",
|
|
153
|
+
animate: on ? "animate" : "exit",
|
|
154
|
+
children: jsxRuntime.jsx(Icon.Icon, {
|
|
155
|
+
name: icon,
|
|
156
|
+
strokeColor: setIconColor,
|
|
157
|
+
fillColor: fillColor,
|
|
158
|
+
disabled: disabled,
|
|
159
|
+
size: iconSize,
|
|
160
|
+
fill: iconFill,
|
|
161
|
+
toggle: !!toggleIcon && on,
|
|
162
|
+
pointer: !0
|
|
163
|
+
})
|
|
164
|
+
}), label && jsxRuntime.jsx("div", {
|
|
165
|
+
className: css_label,
|
|
166
|
+
children: label
|
|
167
|
+
}), jsxRuntime.jsx(Dot.Dot, {
|
|
168
|
+
show: showDot
|
|
169
|
+
}), 0 !== count && jsxRuntime.jsx("div", {
|
|
170
|
+
className: css_count,
|
|
171
|
+
children: jsxRuntime.jsx(Badge.Badge, {
|
|
172
|
+
variant: "light",
|
|
173
|
+
count: count,
|
|
174
|
+
hideNull: !0
|
|
175
|
+
})
|
|
176
|
+
}) ]
|
|
177
|
+
}));
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Resolves button animation to motion variants
|
|
182
|
+
*/ exports.IconButton = IconButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var LabelBackground, tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var LabelBackground, tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-Xy8NlSfu.js"), css = {
|
|
5
5
|
label: "Label-module_label__RaRvM",
|
|
6
6
|
button: "Label-module_button__N8bcQ type-module_body-m-regular__LuQBA",
|
|
7
7
|
xs: "Label-module_xs__K9Ai6 type-module_body-xs-regular__ZAFft",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require("./tslib.es6-
|
|
3
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-Xy8NlSfu.js"), audioVisualizer = require("./audioVisualizer-DFVbG1U3.js"), css_wrapper = "Level-module_wrapper__yOfXw", css_barContainer = "Level-module_barContainer__QMUdv", css_bar = "Level-module_bar__MnApX";
|
|
4
4
|
|
|
5
5
|
const Level = React.memo(function(props) {
|
|
6
6
|
const {width: width = 100, height: height = 4, gap: gap = 0, audioStream: audioStream, playing: playing = !1, minIntensity: minIntensity = 0, maxIntensity: maxIntensity = 5, intensity: intensity = 3.5, peakIntensity: peakIntensity = .5, risePerSeconds: risePerSeconds = 4, releasePerSeconds: releasePerSeconds, ReleasePerSeconds: ReleasePerSeconds = 1.5, borderRadius: borderRadius = 4, borderColor: borderColor = "transparent", borderWidth: borderWidth = 0, colorActive: colorActive = "var(--feedback-positive)", backgroundColor: backgroundColor = "var(--core-surface-primary-tint)"} = props, divAttributes = tslib_es6.__rest(props, [ "width", "height", "gap", "audioStream", "playing", "minIntensity", "maxIntensity", "intensity", "peakIntensity", "risePerSeconds", "releasePerSeconds", "ReleasePerSeconds", "borderRadius", "borderColor", "borderWidth", "colorActive", "backgroundColor" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", visualizerRef = React.useRef(null), [normalizedIntensity, setNormalizedIntensity] = React.useState(0), totalBars = Math.max(1, Math.floor(maxIntensity)), minBars = Math.max(0, Math.min(Math.floor(minIntensity), totalBars)), releaseRate = null != releasePerSeconds ? releasePerSeconds : ReleasePerSeconds, intensityIntervals = React.useMemo(() => new Array(totalBars).fill(0).map((_, index) => index), [ totalBars ]), activeBars = React.useMemo(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-Xy8NlSfu.js"), Button = require("./Button-DSFVBBSz.js"), Icon = require("./Icon-DR7d5wbQ.js"), IconButton = require("./IconButton-C2pgDGer.js"), css = {
|
|
5
5
|
wrapper: "Modal-module_wrapper__34Hds flexBox-module_columnBetween__ERfp7",
|
|
6
6
|
title: "Modal-module_title__A5OeE flexBox-module_rowBetween__5FEvi",
|
|
7
7
|
titleBlock: "Modal-module_titleBlock__HUepX flexBox-module_rowStart__4tcxS",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react");
|
|
4
4
|
|
|
5
|
-
require("./microphoneStore-
|
|
6
|
-
require("./webRTCStore-
|
|
5
|
+
require("./microphoneStore-BWE0f5k5.js"), require("./volumeStore-TOX_FL_t.js"),
|
|
6
|
+
require("./webRTCStore-B1cS14MD.js");
|
|
7
7
|
|
|
8
|
-
var Overlay = require("./Overlay-
|
|
8
|
+
var Overlay = require("./Overlay-77krece8.js"), modalStore = require("./modalStore-C2TNegI3.js"), css_container = "ModalController-module_container__3cSaO", css_box = "ModalController-module_box__cPzOz", css_wrapper = "ModalController-module_wrapper__HkOoX flexBox-module_row__z24tF";
|
|
9
9
|
|
|
10
10
|
const defaultTransition = {
|
|
11
11
|
ease: "easeOut",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), css_overlay = "Overlay-module_overlay__EkbfA";
|
|
5
5
|
|
|
6
6
|
const defaultTransition = {
|
|
7
7
|
ease: "easeOut",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-Xy8NlSfu.js"), css_wrapper = "Pager-module_wrapper__eutVg flexBox-module_row__z24tF", css_bullet = "Pager-module_bullet__TxyR5 flexBox-module_row__z24tF", css_selected = "Pager-module_selected__C6xbR";
|
|
5
5
|
|
|
6
6
|
const Pager = React.memo(props => {
|
|
7
7
|
const {size: size = 8, index: index = 0, color: color, colorHover: colorHover, colorOn: colorOn, pages: pages = 2, gap: gap = 4, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "size", "index", "color", "colorHover", "colorOn", "pages", "gap", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [selected, setSelected] = React.useState(index), bullets = React.useMemo(() => Array.from({
|
|
@@ -5,12 +5,12 @@ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_u
|
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var tslib_es6 = require("./tslib.es6-
|
|
8
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js");
|
|
9
9
|
|
|
10
|
-
require("./webRTCStore-
|
|
11
|
-
require("./volumeStore-
|
|
10
|
+
require("./webRTCStore-B1cS14MD.js"), require("./microphoneStore-BWE0f5k5.js"),
|
|
11
|
+
require("./volumeStore-TOX_FL_t.js"), require("../hooks/useWindow.js");
|
|
12
12
|
|
|
13
|
-
var Icon = require("./Icon-
|
|
13
|
+
var Icon = require("./Icon-DR7d5wbQ.js"), react = require("motion/react"), css$1_wrapper = "DoneCheck-module_wrapper__AlISD flexBox-module_row__z24tF", css$1_icon = "DoneCheck-module_icon__bKaFp flexBox-module_row__z24tF";
|
|
14
14
|
|
|
15
15
|
const DoneCheck = React.memo(props => {
|
|
16
16
|
const theme = hooks_useTheme.useTheme(), {size: size = 88, stroke: stroke = 1.5, color: color = theme.current.colors["feedback-positive"], play: play = !0, delay: delay = 5, duration: duration = 1, didStart: didStart, didEnd: didEnd} = props, [playing, setPlaying] = React.useState(!play);
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
var jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
|
-
require("../theme/colors.js"), require("./tslib.es6-
|
|
6
|
+
require("../theme/colors.js"), require("./tslib.es6-CZ8Is2ry.js");
|
|
7
7
|
|
|
8
|
-
var misc = require("./misc-
|
|
8
|
+
var misc = require("./misc-Xy8NlSfu.js");
|
|
9
9
|
|
|
10
|
-
require("./webRTCStore-
|
|
11
|
-
require("./volumeStore-
|
|
10
|
+
require("./webRTCStore-B1cS14MD.js"), require("./microphoneStore-BWE0f5k5.js"),
|
|
11
|
+
require("./volumeStore-TOX_FL_t.js"), require("../hooks/useWindow.js");
|
|
12
12
|
|
|
13
|
-
var Button = require("./Button-
|
|
13
|
+
var Button = require("./Button-DSFVBBSz.js"), FileList = require("./FileList-CY_ZUI5o.js"), css = {
|
|
14
14
|
wrapperBg: "PromptInput-module_wrapperBg__zabZq flexBox-module_columnStart__C7P44",
|
|
15
15
|
bgRotate: "PromptInput-module_bgRotate__Um720",
|
|
16
16
|
textareaWrapper: "PromptInput-module_textareaWrapper__KusiV flexBox-module_columnStart__C7P44",
|
|
@@ -29,11 +29,13 @@ const PromptInputBase = React.forwardRef((props, ref) => {
|
|
|
29
29
|
var _a, _b;
|
|
30
30
|
setIsFocused(!0), null === (_a = null == textAreaRef ? void 0 : textAreaRef.current) || void 0 === _a || _a.focus(),
|
|
31
31
|
null == onFocus || onFocus(null === (_b = textAreaRef.current) || void 0 === _b ? void 0 : _b.value, attachments);
|
|
32
|
-
}, [ onFocus, attachments ]), handleBlur = React.useCallback(
|
|
32
|
+
}, [ onFocus, attachments ]), handleBlur = React.useCallback(valueOverride => {
|
|
33
33
|
var _a, _b;
|
|
34
34
|
setIsFocused(!1), null === (_a = textAreaRef.current) || void 0 === _a || _a.blur(),
|
|
35
|
-
null == onBlur || onBlur(null === (_b = textAreaRef.current) || void 0 === _b ? void 0 : _b.value, attachments);
|
|
36
|
-
}, [ onBlur, attachments ]),
|
|
35
|
+
null == onBlur || onBlur(null != valueOverride ? valueOverride : null === (_b = textAreaRef.current) || void 0 === _b ? void 0 : _b.value, attachments);
|
|
36
|
+
}, [ onBlur, attachments ]), handleTextAreaBlur = React.useCallback(() => {
|
|
37
|
+
handleBlur();
|
|
38
|
+
}, [ handleBlur ]), handleAttachmentsChange = React.useCallback(newFiles => {
|
|
37
39
|
var _a;
|
|
38
40
|
null == onAttachmentsChange || onAttachmentsChange(newFiles), null == onChange || onChange(null === (_a = textAreaRef.current) || void 0 === _a ? void 0 : _a.value, newFiles);
|
|
39
41
|
}, [ onAttachmentsChange, onChange ]), handleChange = React.useCallback(e => {
|
|
@@ -44,9 +46,10 @@ const PromptInputBase = React.forwardRef((props, ref) => {
|
|
|
44
46
|
if (stopEnabled) return;
|
|
45
47
|
if (working && submitWorking) return;
|
|
46
48
|
const currentValue = null === (_a = textAreaRef.current) || void 0 === _a ? void 0 : _a.value;
|
|
47
|
-
currentValue && (null == onSubmit || onSubmit(currentValue, attachments), submitClears && setTextValue(""),
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
currentValue && (null == onSubmit || onSubmit(currentValue, attachments), submitClears && (setTextValue(""),
|
|
50
|
+
null == onChange || onChange("", attachments), textAreaRef.current && (textAreaRef.current.value = "")),
|
|
51
|
+
handleBlur(submitClears ? "" : currentValue));
|
|
52
|
+
}, [ stopEnabled, submitClears, onChange, onSubmit, handleBlur, attachments, working, submitWorking ]), handleStop = React.useCallback(() => {
|
|
50
53
|
null == onStop || onStop(), handleFocus();
|
|
51
54
|
}, [ onStop, handleFocus ]), handleKeyDown = React.useCallback(e => {
|
|
52
55
|
"Enter" === e.key && enterSubmits && (e.preventDefault(), handleSubmit());
|
|
@@ -67,8 +70,7 @@ const PromptInputBase = React.forwardRef((props, ref) => {
|
|
|
67
70
|
var _a, _b;
|
|
68
71
|
focused ? null === (_a = textAreaRef.current) || void 0 === _a || _a.focus() : null === (_b = textAreaRef.current) || void 0 === _b || _b.blur();
|
|
69
72
|
}, [ focused ]), React.useEffect(() => {
|
|
70
|
-
|
|
71
|
-
(null === (_a = textAreaRef.current) || void 0 === _a ? void 0 : _a.value) !== value && setTextValue(value);
|
|
73
|
+
setTextValue(value);
|
|
72
74
|
}, [ value ]);
|
|
73
75
|
const cssVars = React.useMemo(() => ({
|
|
74
76
|
"--prompt-width": misc.setStyle(width),
|
|
@@ -107,7 +109,7 @@ const PromptInputBase = React.forwardRef((props, ref) => {
|
|
|
107
109
|
onChange: handleChange,
|
|
108
110
|
placeholder: setPlaceholder,
|
|
109
111
|
onFocus: handleFocus,
|
|
110
|
-
onBlur:
|
|
112
|
+
onBlur: handleTextAreaBlur,
|
|
111
113
|
onKeyDown: handleKeyDown,
|
|
112
114
|
maxLength: maxLength,
|
|
113
115
|
rows: 1
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-Xy8NlSfu.js"), Icon = require("./Icon-DR7d5wbQ.js"), css_wrapper = "RadioButton-module_wrapper__-pWRe flexBox-module_row__z24tF", css_radioIcon = "RadioButton-module_radioIcon__I27Xv flexBox-module_column__ezvMq", css_radioTitle = "RadioButton-module_radioTitle__zCQII flexBox-module_rowStart__4tcxS type-module_body-m-regular__LuQBA", css_radioContent = "RadioButton-module_radioContent__38xVx flexBox-module_columnStart__C7P44";
|
|
5
5
|
|
|
6
6
|
function RadioButtonComponent(props) {
|
|
7
7
|
const {label: label, children: children, fieldName: fieldName, value: value, selected: selected = !1, controlType: controlType = "radio", deselect: deselect = !0, tabIndex: tabIndex = 0, wrap: wrap = !1, list: list = !1, hideRadio: hideRadio = !1, noFrame: noFrame = !0, icon: icon = "circle", checkedIcon: checkedIcon = "check circle", iconColor: iconColor, gap: gap = 6, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "label", "children", "fieldName", "value", "selected", "controlType", "deselect", "tabIndex", "wrap", "list", "hideRadio", "noFrame", "icon", "checkedIcon", "iconColor", "gap", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isSelected, setIsSelected] = React.useState(selected);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-Xy8NlSfu.js"), RadioButton = require("./RadioButton-qoMg2eXZ.js"), css_wrapper = "RadioButtonList-module_wrapper__wnq1-", css_column = "RadioButtonList-module_column__Bq16e flexBox-module_columnStart__C7P44", css_row = "RadioButtonList-module_row__D3szq flexBox-module_rowStart__4tcxS";
|
|
5
5
|
|
|
6
6
|
function RadioButtonListComponent(props) {
|
|
7
7
|
const {width: width = "min-content", options: options = [], selectedIndexes: selectedIndexes = null, selectedOptions: selectedOptions = null, label: label = null, deselect: deselect = !1, multiSelect: multiSelect = !1, wrap: wrap = !1, tabIndexSeed: tabIndexSeed = 0, spacer: spacer = "none", custom: custom = 0, gap: gap = 16, hideRadio: hideRadio = !1, noFrame: noFrame = !0, toggleIcon: toggleIcon = !0, iconColor: iconColor, icon: icon = "circle", checkedIcon: checkedIcon = "check circle", iconSelectedColor: iconSelectedColor, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "width", "options", "selectedIndexes", "selectedOptions", "label", "deselect", "multiSelect", "wrap", "tabIndexSeed", "spacer", "custom", "gap", "hideRadio", "noFrame", "toggleIcon", "iconColor", "icon", "checkedIcon", "iconSelectedColor", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", labelId = React.useId(), [selected, setSelected] = React.useState(selectedIndexes);
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react");
|
|
5
|
+
|
|
6
|
+
require("../theme/colors.js");
|
|
7
|
+
|
|
8
|
+
var misc = require("./misc-Xy8NlSfu.js"), debounce = require("./debounce-Dt7br1wm.js");
|
|
9
|
+
|
|
10
|
+
require("./webRTCStore-B1cS14MD.js"), require("./microphoneStore-BWE0f5k5.js"),
|
|
11
|
+
require("./volumeStore-TOX_FL_t.js"), require("../hooks/useWindow.js");
|
|
12
|
+
|
|
13
|
+
var hooks_useObserveResize = require("../hooks/useObserveResize.js"), css_wrapper = "Slider-module_wrapper__KCCs1", css_trackBg = "Slider-module_trackBg__7zfqm flexBox-module_rowStart__4tcxS", css_track = "Slider-module_track__kaJkL flexBox-module_rowStart__4tcxS", css_trackHead = "Slider-module_trackHead__W-UdG", css_trackWrapper = "Slider-module_trackWrapper__Ot0Wh flexBox-module_rowStart__4tcxS";
|
|
5
14
|
|
|
6
15
|
const Slider = React.memo(props => {
|
|
7
16
|
const {value: value = 25, scaleMin: scaleMin = 0, scaleMax: scaleMax = 100, width: width, height: height = 2, touchHeight: touchHeight = 24, trackHeadSize: trackHeadSize = 7, step: step, disabled: disabled = !1, disabledOpacity: disabledOpacity = .5, cursor: cursor = "default", headColor: headColor = "var(--core-text-light)", trackColor: trackColor = "var(--core-surface-secondary)", progressColor: progressColor = "var(--core-text-tertiary)", trackHeadBorderSize: trackHeadBorderSize = 1, trackHeadBorderColor: trackHeadBorderColor = "var(--core-outline-secondary)", onChange: onChange = () => null, onDragChange: onDragChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "value", "scaleMin", "scaleMax", "width", "height", "touchHeight", "trackHeadSize", "step", "disabled", "disabledOpacity", "cursor", "headColor", "trackColor", "progressColor", "trackHeadBorderSize", "trackHeadBorderColor", "onChange", "onDragChange" ]), {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), track = React.useRef(null), head = React.useRef(null), [currentValue, setCurrentValue] = React.useState(value), absProgressRef = React.useRef(value), relativeProgressRef = React.useRef(0), didMount = React.useRef(!1), size = hooks_useObserveResize.useObserveResize(ref, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react");
|
|
5
5
|
|
|
6
6
|
const Spacer = React.memo(props => {
|
|
7
7
|
const {size: size = 8} = props, divAttributes = tslib_es6.__rest(props, [ "size" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), spacerStyle = React.useMemo(() => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), css_wrapper = "Switch-module_wrapper__kudO9 flexBox-module_row__z24tF", css_knob = "Switch-module_knob__vKNOc flexBox-module_row__z24tF";
|
|
5
5
|
|
|
6
6
|
function SwitchComponent(props) {
|
|
7
7
|
const {fieldName: fieldName, state: state = !1, value: value, height: height = 22, width: width = 44, padding: padding = 3, backgroundColorOn: backgroundColorOn, backgroundColorOff: backgroundColorOff, bgColorOn: bgColorOn = "var(--feedback-positive)", bgColorOff: bgColorOff = "var(--core-text-disabled)", knobColor: knobColor = "var(--core-surface-primary)", onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "fieldName", "state", "value", "height", "width", "padding", "backgroundColorOn", "backgroundColorOff", "bgColorOn", "bgColorOff", "knobColor", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [on, setOn] = React.useState(state), resolvedBackgroundColorOn = null != backgroundColorOn ? backgroundColorOn : bgColorOn, resolvedBackgroundColorOff = null != backgroundColorOff ? backgroundColorOff : bgColorOff;
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
|
-
require("../theme/colors.js")
|
|
7
|
-
require("./volumeStore-BXFAQhvS.js"), require("../hooks/useWindow.js");
|
|
6
|
+
require("../theme/colors.js");
|
|
8
7
|
|
|
9
|
-
var
|
|
8
|
+
var misc = require("./misc-Xy8NlSfu.js");
|
|
9
|
+
|
|
10
|
+
require("./webRTCStore-B1cS14MD.js"), require("./microphoneStore-BWE0f5k5.js"),
|
|
11
|
+
require("./volumeStore-TOX_FL_t.js"), require("../hooks/useWindow.js");
|
|
12
|
+
|
|
13
|
+
var Badge = require("./Badge-C6Yv-vZ7.js"), Icon = require("./Icon-DR7d5wbQ.js"), IconButton = require("./IconButton-C2pgDGer.js"), sharedTypes = require("./sharedTypes-DC-9YrKq.js"), css = {
|
|
14
|
+
wrapper: "TabBar-module_wrapper__cyOR1 flexBox-module_rowStart__4tcxS",
|
|
15
|
+
option: "TabBar-module_option__gYjDf flexBox-module_row__z24tF",
|
|
16
|
+
icon: "TabBar-module_icon__JDgG3 flexBox-module_row__z24tF",
|
|
17
|
+
close: "TabBar-module_close__bvSBh flexBox-module_row__z24tF",
|
|
18
|
+
xs: "TabBar-module_xs__QDjV9 type-module_body-xs-regular__ZAFft",
|
|
19
|
+
s: "TabBar-module_s__-EBj2 type-module_body-s-regular__vRHSP",
|
|
20
|
+
m: "TabBar-module_m__3sCA3 type-module_body-m-regular__LuQBA",
|
|
21
|
+
l: "TabBar-module_l__hy1rR type-module_body-l-regular__lOYbg",
|
|
22
|
+
xl: "TabBar-module_xl__zaASU type-module_body-xl-regular__pF2kC",
|
|
23
|
+
selected: "TabBar-module_selected__UmBdu"
|
|
24
|
+
};
|
|
10
25
|
|
|
11
26
|
const placeholderOptions = [ {
|
|
12
27
|
name: "Light",
|
|
@@ -17,7 +32,7 @@ const placeholderOptions = [ {
|
|
|
17
32
|
value: "Option 2",
|
|
18
33
|
icon: "moon full"
|
|
19
34
|
} ], TabBar = React.memo(props => {
|
|
20
|
-
const {options: options = placeholderOptions, selected: selected = 0, border: border = !0, underline: underline = !0, height: height = "100%", width: width = "100%", tabWidth: tabWidth = "fill", padding: padding = 8, iconFill: iconFill = !1, iconSize: iconSize = 20, iconGap: iconGap = 8, tabGap: tabGap = 0, disabled: disabled = !1, hasClose: hasClose = !1, closeWidth: closeWidth = "auto", selectedValue: selectedValue = null, onChange: onChange = () => null, onTabChange: onTabChange = () => null, onClose: onClose = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "options", "selected", "border", "underline", "height", "width", "tabWidth", "padding", "iconFill", "iconSize", "iconGap", "tabGap", "disabled", "hasClose", "closeWidth", "selectedValue", "onChange", "onTabChange", "onClose", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [index, setIndex] = React.useState(selected), optionRefs = React.useRef([]);
|
|
35
|
+
const {options: options = placeholderOptions, selected: selected = 0, border: border = !0, underline: underline = !0, height: height = "100%", width: width = "100%", tabWidth: tabWidth = "fill", padding: padding = 8, iconFill: iconFill = !1, iconSize: iconSize = 20, iconGap: iconGap = 8, tabGap: tabGap = 0, disabled: disabled = !1, hasClose: hasClose = !1, closeWidth: closeWidth = "auto", selectedValue: selectedValue = null, justify: justify = "start", borderColor: borderColor = "var(--core-outline-secondary)", textSize: textSize = "m", onChange: onChange = () => null, onTabChange: onTabChange = () => null, onClose: onClose = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "options", "selected", "border", "underline", "height", "width", "tabWidth", "padding", "iconFill", "iconSize", "iconGap", "tabGap", "disabled", "hasClose", "closeWidth", "selectedValue", "justify", "borderColor", "textSize", "onChange", "onTabChange", "onClose", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [index, setIndex] = React.useState(selected), optionRefs = React.useRef([]);
|
|
21
36
|
React.useEffect(() => {
|
|
22
37
|
let selectedIndex = 0;
|
|
23
38
|
selectedValue && options ? (selectedIndex = options.findIndex(option => option.value === selectedValue),
|
|
@@ -69,26 +84,30 @@ const placeholderOptions = [ {
|
|
|
69
84
|
underline: underline,
|
|
70
85
|
iconFill: iconFill,
|
|
71
86
|
tabWidth: tabWidth,
|
|
87
|
+
textSize: textSize,
|
|
88
|
+
borderColor: borderColor,
|
|
72
89
|
buttonRef: element => {
|
|
73
90
|
optionRefs.current[i] = element;
|
|
74
91
|
}
|
|
75
|
-
}, `${i}_option_${option.name}`)), [ options, index, padding, iconSize, iconGap, disabled, underline, tabWidth, onToolTip, handleOptionClick, iconFill, handleOptionKeyDown
|
|
92
|
+
}, `${i}_option_${option.name}`)), [ options, index, padding, iconSize, iconGap, disabled, underline, tabWidth, onToolTip, handleOptionClick, iconFill, handleOptionKeyDown, borderColor, textSize ]), cssVars = React.useMemo(() => ({
|
|
76
93
|
"--tab-bar-gap": `${tabGap}px`,
|
|
77
|
-
"--tab-bar-height": `${setStyle(height)}px`,
|
|
78
|
-
"--tab-bar-width": setStyle(width),
|
|
94
|
+
"--tab-bar-height": `${misc.setStyle(height)}px`,
|
|
95
|
+
"--tab-bar-width": misc.setStyle(width),
|
|
79
96
|
"--tab-bar-border-bottom": "" + (border ? "1px" : "0"),
|
|
97
|
+
"--tab-bar-border-color": borderColor,
|
|
98
|
+
"--tab-bar-justify": justify,
|
|
80
99
|
"--tab-bar-close-width": `${closeWidth}px`,
|
|
81
|
-
"--tab-bar-close-padding": padding
|
|
82
|
-
}), [ tabGap, height, width, border,
|
|
100
|
+
"--tab-bar-close-padding": misc.setStyle(padding, "8px")
|
|
101
|
+
}), [ tabGap, height, width, border, closeWidth, padding, borderColor, justify ]);
|
|
83
102
|
return jsxRuntime.jsxs("div", Object.assign({
|
|
84
103
|
id: divId,
|
|
85
|
-
className: `${
|
|
104
|
+
className: `${css.wrapper}${divClass}`,
|
|
86
105
|
style: Object.assign(Object.assign({}, divStyle), cssVars),
|
|
87
106
|
role: "tablist",
|
|
88
107
|
"aria-orientation": "horizontal"
|
|
89
108
|
}, rest, {
|
|
90
109
|
children: [ renderedOptions, hasClose && jsxRuntime.jsx("div", {
|
|
91
|
-
className:
|
|
110
|
+
className: css.close,
|
|
92
111
|
children: jsxRuntime.jsx(IconButton.IconButton, {
|
|
93
112
|
iconSize: iconSize - 4,
|
|
94
113
|
frameSize: iconSize,
|
|
@@ -105,7 +124,7 @@ const placeholderOptions = [ {
|
|
|
105
124
|
TabBar.displayName = "TabBar";
|
|
106
125
|
|
|
107
126
|
const Option = React.memo(props => {
|
|
108
|
-
const theme = hooks_useTheme.useTheme(), {label: label = "Option", value: value = 0, icon: icon = null, selected: selected = !1, onClick: onClick = () => null, onToolTip: onToolTip = () => null, padding: padding = 8, iconSize: iconSize = 20, iconGap: iconGap = 6, disabled: disabled = !1, showToolTip: showToolTip = null, underline: underline = !0, tabWidth: tabWidth = "fill", count: count = 0, iconFill: iconFill = !1, onKeyDown: onKeyDown = () => null, buttonRef: buttonRef} = props, ref = React.useRef(null), strokeColor = React.useMemo(() => !disabled && selected ? theme.current.colors["core-text-special"] : disabled ? theme.current.colors["core-text-disabled"] : theme.current.colors["core-text-primary"], [ disabled, selected, theme ]), handleMouseOver = React.useCallback(e => {
|
|
127
|
+
const theme = hooks_useTheme.useTheme(), {label: label = "Option", value: value = 0, icon: icon = null, selected: selected = !1, onClick: onClick = () => null, onToolTip: onToolTip = () => null, padding: padding = 8, iconSize: iconSize = 20, iconGap: iconGap = 6, disabled: disabled = !1, showToolTip: showToolTip = null, underline: underline = !0, tabWidth: tabWidth = "fill", borderColor: borderColor = "var(--core-outline-secondary)", count: count = 0, iconFill: iconFill = !1, textSize: textSize = "m", onKeyDown: onKeyDown = () => null, buttonRef: buttonRef} = props, ref = React.useRef(null), strokeColor = React.useMemo(() => !disabled && selected ? theme.current.colors["core-text-special"] : disabled ? theme.current.colors["core-text-disabled"] : theme.current.colors["core-text-primary"], [ disabled, selected, theme ]), handleMouseOver = React.useCallback(e => {
|
|
109
128
|
if (onToolTip(null), showToolTip && ref.current) {
|
|
110
129
|
const tip = {
|
|
111
130
|
type: sharedTypes.ToolTipType.button,
|
|
@@ -121,17 +140,18 @@ const Option = React.memo(props => {
|
|
|
121
140
|
showToolTip && onToolTip(null);
|
|
122
141
|
}, [ showToolTip, onToolTip ]), textColor = React.useMemo(() => disabled ? "var(--core-text-disabled)" : selected ? "var(--core-text-special)" : "var(--core-text-primary)", [ disabled, selected ]), setTabWidth = React.useMemo(() => "compact" === tabWidth ? "min-content" : "fill" === tabWidth ? "unset" : `${tabWidth}px`, [ tabWidth ]), setTabFlex = React.useMemo(() => "fill" === tabWidth ? "1" : "unset", [ tabWidth ]), setUnderline = React.useMemo(() => selected && underline && !disabled ? "1px" : "0", [ underline, disabled, selected ]), cssVars = React.useMemo(() => ({
|
|
123
142
|
"--tab-bar-option-border": setUnderline,
|
|
124
|
-
"--tab-bar-option-
|
|
143
|
+
"--tab-bar-option-border-color": borderColor,
|
|
144
|
+
"--tab-bar-option-padding": misc.setStyle(padding, "8px"),
|
|
125
145
|
"--tab-bar-option-icon-size": `${iconSize}px`,
|
|
126
146
|
"--tab-bar-option-cursor": disabled ? "default" : "pointer",
|
|
127
147
|
"--tab-bar-option-gap": `${null != iconGap ? iconGap : 0}px`,
|
|
128
148
|
"--tab-bar-option-color": textColor,
|
|
129
149
|
"--tab-bar-option-width": setTabWidth,
|
|
130
150
|
"--tab-bar-option-flex": setTabFlex
|
|
131
|
-
}), [ padding, iconSize, disabled, textColor, iconGap, setTabFlex, setTabWidth, setUnderline ]);
|
|
151
|
+
}), [ padding, iconSize, disabled, textColor, iconGap, setTabFlex, setTabWidth, setUnderline, borderColor ]);
|
|
132
152
|
return jsxRuntime.jsxs("button", {
|
|
133
153
|
type: "button",
|
|
134
|
-
className:
|
|
154
|
+
className: `${css.option} ${css[textSize]} ${selected ? css.selected : ""}`,
|
|
135
155
|
style: cssVars,
|
|
136
156
|
ref: element => {
|
|
137
157
|
ref.current = element, null == buttonRef || buttonRef(element);
|
|
@@ -144,7 +164,7 @@ const Option = React.memo(props => {
|
|
|
144
164
|
onClick: () => onClick(value),
|
|
145
165
|
onKeyDown: e => onKeyDown(e, value),
|
|
146
166
|
children: [ icon && jsxRuntime.jsx("div", {
|
|
147
|
-
className:
|
|
167
|
+
className: css.icon,
|
|
148
168
|
children: jsxRuntime.jsx(Icon.Icon, {
|
|
149
169
|
name: icon,
|
|
150
170
|
fill: iconFill,
|
|
@@ -157,6 +177,6 @@ const Option = React.memo(props => {
|
|
|
157
177
|
count: count
|
|
158
178
|
}) ]
|
|
159
179
|
});
|
|
160
|
-
}, (prevProps, nextProps) => prevProps.selected === nextProps.selected && prevProps.underline === nextProps.underline && prevProps.tabWidth === nextProps.tabWidth && prevProps.disabled === nextProps.disabled && prevProps.iconGap === nextProps.iconGap && prevProps.iconSize === nextProps.iconSize && prevProps.count === nextProps.count && prevProps.label === nextProps.label && prevProps.icon === nextProps.icon);
|
|
180
|
+
}, (prevProps, nextProps) => prevProps.selected === nextProps.selected && prevProps.underline === nextProps.underline && prevProps.tabWidth === nextProps.tabWidth && prevProps.disabled === nextProps.disabled && prevProps.iconGap === nextProps.iconGap && prevProps.iconSize === nextProps.iconSize && prevProps.count === nextProps.count && prevProps.label === nextProps.label && prevProps.icon === nextProps.icon && prevProps.borderColor === nextProps.borderColor && prevProps.textSize === nextProps.textSize && prevProps.padding === nextProps.padding);
|
|
161
181
|
|
|
162
182
|
Option.displayName = "TabOption", exports.TabBar = TabBar;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CZ8Is2ry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Button = require("./Button-DSFVBBSz.js"), css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_xs = "TextArea-module_xs__5e748 type-module_body-xs-regular__ZAFft", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
|
|
5
5
|
|
|
6
6
|
const TextArea = React.memo(props => {
|
|
7
7
|
const {value: value = "", name: name = "text_area", width: width = "100%", focused: focused = !1, placeholder: placeholder = "Enter text here...", rows: rows = 6, border: border = !0, borderRadius: borderRadius = 4, padding: padding = "16px 4px 16px 16px", error: error = !1, resizable: resizable = !0, hasSend: hasSend = !1, sendOffset: sendOffset = {
|
|
8
8
|
bottom: 10,
|
|
9
9
|
right: 10
|
|
10
|
-
}, sendSize: sendSize = 36, returnSubmits: returnSubmits = !1, backgroundColor: backgroundColor, bgColor: bgColor, minWidth: minWidth, textSize: textSize = "m", disabled: disabled = !1, submitClears: submitClears = !0, onChange: onChange = () => null, onFocus: onFocus = () => null, onBlur: onBlur = () => null, onSubmit: onSubmit = () => null, onKeyDown: onKeyDown = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "value", "name", "width", "focused", "placeholder", "rows", "border", "borderRadius", "padding", "error", "resizable", "hasSend", "sendOffset", "sendSize", "returnSubmits", "backgroundColor", "bgColor", "minWidth", "textSize", "disabled", "submitClears", "onChange", "onFocus", "onBlur", "onSubmit", "onKeyDown" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, [isFocused, setIsFocused] = React.useState(focused), [text, setText] = React.useState(value), ref = React.useRef(null), handleResize = React.useCallback(() => {
|
|
10
|
+
}, sendSize: sendSize = 36, returnSubmits: returnSubmits = !1, backgroundColor: backgroundColor, bgColor: bgColor, minWidth: minWidth, textSize: textSize = "m", disabled: disabled = !1, submitClears: submitClears = !0, maxLength: maxLength, onChange: onChange = () => null, onFocus: onFocus = () => null, onBlur: onBlur = () => null, onSubmit: onSubmit = () => null, onKeyDown: onKeyDown = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "value", "name", "width", "focused", "placeholder", "rows", "border", "borderRadius", "padding", "error", "resizable", "hasSend", "sendOffset", "sendSize", "returnSubmits", "backgroundColor", "bgColor", "minWidth", "textSize", "disabled", "submitClears", "maxLength", "onChange", "onFocus", "onBlur", "onSubmit", "onKeyDown" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, [isFocused, setIsFocused] = React.useState(focused), [text, setText] = React.useState(value), ref = React.useRef(null), handleResize = React.useCallback(() => {
|
|
11
11
|
(null == ref ? void 0 : ref.current) && (ref.current.style.height = "auto", ref.current.style.height = `${ref.current.scrollHeight}px`);
|
|
12
12
|
}, []);
|
|
13
13
|
React.useEffect(() => {
|
|
@@ -63,6 +63,7 @@ const TextArea = React.memo(props => {
|
|
|
63
63
|
value: text,
|
|
64
64
|
placeholder: placeholder,
|
|
65
65
|
rows: rows,
|
|
66
|
+
maxLength: maxLength,
|
|
66
67
|
disabled: disabled,
|
|
67
68
|
onChange: e => handleChange(e.target.value),
|
|
68
69
|
onInput: () => handleResize(),
|