@apple-pie/slice 0.1.26 → 0.1.29
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-Bqb2Jexf.js → AudioBubble-DisHuKIC.js} +1 -1
- package/dist/cjs/chunks/{Avatar-Dg8ZHnw6.js → Avatar-vIquH-Uk.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-F8eSiMwn.js → AvatarGroup-DYN73N5x.js} +1 -1
- package/dist/cjs/chunks/{Button-D3wZtdtj.js → Button-B1qbfQgN.js} +10 -8
- package/dist/cjs/chunks/{ButtonBar-EH8fHFhS.js → ButtonBar-zpC3sClM.js} +1 -1
- package/dist/cjs/chunks/{Camera-BnsGhOrt.js → Camera-CCzynmXT.js} +2 -2
- package/dist/cjs/chunks/{CheckBox-CEWLxffo.js → CheckBox-DNctUlTA.js} +1 -1
- package/dist/cjs/chunks/{Chip-BrQgOmJc.js → Chip-BN4qBz6w.js} +1 -1
- package/dist/cjs/chunks/{DivInput-DWPwVUs_.js → DivInput-932r3bvF.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-Duv0nmOm.js → DrggablePanel-u8C-Y4dA.js} +16 -13
- package/dist/cjs/chunks/{DropDown-Bf_pm-Go.js → DropDown-BZbrZOkx.js} +17 -14
- package/dist/cjs/chunks/{FileIcon-DgRlhqzv.js → FileIcon-Dxn9OL10.js} +1 -1
- package/dist/cjs/chunks/{FileList-DobAcOSH.js → FileList-D5_igVaC.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-C-3ahI-j.js → FlexDiv-D4aSJC_G.js} +61 -21
- package/dist/cjs/chunks/{Grouper-D9G8PKoM.js → Grouper-D6rSl9nK.js} +1 -1
- package/dist/cjs/chunks/{Icon-fRM3E0N6.js → Icon-BFiN8Wzm.js} +267 -12
- package/dist/cjs/chunks/{IconButton-Cf2RBUKA.js → IconButton-Cv-po19M.js} +14 -11
- package/dist/cjs/chunks/{Label-Bxp2pCXf.js → Label-BQ6flU4-.js} +1 -1
- package/dist/cjs/chunks/{MdStreamBuffer-DObxjnAm.js → MdStreamBuffer-CvLO7CVi.js} +37 -3
- package/dist/cjs/chunks/{Pager-DO197OyC.js → Pager-GH2y7l5h.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-t-jv4OhI.js → ProgressIndicator-7pLk4Dvn.js} +1 -1
- package/dist/cjs/chunks/{PromptInput-B1WG22xz.js → PromptInput-C8-V67sS.js} +1 -1
- package/dist/cjs/chunks/{RadioButton-BAIMCshV.js → RadioButton-3CzhKBn6.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-Bsg5oFaC.js → RadioButtonList-DvJV6Qdg.js} +1 -1
- package/dist/cjs/chunks/{Slider-BAcaZUs2.js → Slider-D8OYGFsN.js} +25 -28
- package/dist/cjs/chunks/{TabBar-BfyfjmPQ.js → TabBar-VzxuAesC.js} +10 -7
- package/dist/cjs/chunks/{TextArea-CHNWsfWH.js → TextArea-CBNHvcK3.js} +1 -1
- package/dist/cjs/chunks/{TextField-2xzSdIx3.js → TextField-BpoLF6pZ.js} +6 -6
- package/dist/cjs/chunks/{Tip-DceuNR6k.js → Tip-CUKFhP9K.js} +2 -2
- package/dist/cjs/chunks/{Toast-C8Hc9ZKI.js → Toast-CKqGjsEk.js} +7 -6
- package/dist/cjs/chunks/ToggleButton-BdCsChJM.js +40 -0
- package/dist/cjs/chunks/{UploadArea-UFWRQ-nW.js → UploadArea-M9oc-No2.js} +1 -1
- package/dist/cjs/chunks/{_types-VoADvwjb.js → _types-Bdqd2vHh.js} +15 -3
- package/dist/cjs/chunks/microphoneStore-D1fV_8QQ.js +141 -0
- package/dist/cjs/chunks/{misc-BTF7BCZW.js → misc-CTl4GDxI.js} +2 -2
- package/dist/cjs/chunks/volumeStore-oYwlRVN0.js +95 -0
- package/dist/cjs/components/AudioBubble/index.js +7 -7
- package/dist/cjs/components/Avatar/index.js +2 -2
- package/dist/cjs/components/AvatarGroup/index.js +2 -2
- package/dist/cjs/components/Button/index.js +7 -6
- package/dist/cjs/components/ButtonBar/index.js +7 -7
- package/dist/cjs/components/Camera/index.js +8 -8
- package/dist/cjs/components/CheckBox/index.js +7 -7
- package/dist/cjs/components/Chip/index.js +8 -7
- package/dist/cjs/components/DivInput/index.js +2 -2
- package/dist/cjs/components/DraggablePanel/index.js +6 -6
- package/dist/cjs/components/DropDown/index.js +7 -7
- package/dist/cjs/components/ErrorSummary/index.js +2 -2
- package/dist/cjs/components/FileIcon/index.js +7 -6
- package/dist/cjs/components/FileList/index.js +7 -7
- package/dist/cjs/components/FlexDiv/index.js +1 -1
- package/dist/cjs/components/Grouper/index.js +4 -4
- package/dist/cjs/components/Icon/index.js +7 -6
- package/dist/cjs/components/IconButton/index.js +7 -6
- package/dist/cjs/components/Label/index.js +2 -2
- package/dist/cjs/components/Pager/index.js +2 -2
- package/dist/cjs/components/Progress/index.js +4 -4
- package/dist/cjs/components/PromptInput/index.js +7 -7
- package/dist/cjs/components/RadioButton/index.js +7 -7
- package/dist/cjs/components/RadioButtonList/index.js +4 -4
- package/dist/cjs/components/Slider/index.js +2 -2
- package/dist/cjs/components/TabBar/index.js +9 -9
- package/dist/cjs/components/TextArea/index.js +7 -7
- package/dist/cjs/components/Textfield/index.js +6 -6
- package/dist/cjs/components/Tip/index.js +2 -2
- package/dist/cjs/components/Toast/index.js +4 -4
- package/dist/cjs/components/ToggleButton/index.js +13 -0
- package/dist/cjs/components/UploadArea/index.js +7 -7
- package/dist/cjs/hooks/useMdStreamBuffer.js +1 -1
- package/dist/cjs/hooks/useMicrophone.js +71 -21
- package/dist/cjs/hooks/useTheme.js +25 -16
- package/dist/cjs/hooks/useToolTip.js +9 -6
- package/dist/cjs/hooks/useTrackRenders.js +1 -1
- package/dist/cjs/hooks.js +4 -4
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/providers/ThemeProvider.js +37 -20
- package/dist/cjs/stores/microphone.js +14 -0
- package/dist/cjs/stores/volume.js +10 -0
- package/dist/cjs/stores.js +16 -2
- package/dist/cjs/theme/colors.js +8 -2
- package/dist/cjs/utils/index.js +1 -1
- package/dist/cjs/utils/objects/index.js +1 -1
- package/dist/esm/chunks/{AudioBubble-DZfzkdlq.mjs → AudioBubble-D052QyPH.mjs} +1 -1
- package/dist/esm/chunks/{Avatar-m5-zleDk.mjs → Avatar-Ds6MWC2c.mjs} +1 -1
- package/dist/esm/chunks/{AvatarGroup-DlgP4lTS.mjs → AvatarGroup-CBGi99eo.mjs} +1 -1
- package/dist/esm/chunks/{Button-YER9dCLE.mjs → Button-CYFpitCp.mjs} +11 -9
- package/dist/esm/chunks/{ButtonBar-BH4pcEpN.mjs → ButtonBar-ieMA0SHi.mjs} +2 -2
- package/dist/esm/chunks/{Camera-BJJpDuuA.mjs → Camera-jn9CcaD0.mjs} +3 -3
- package/dist/esm/chunks/{CheckBox-Cf2l3-D9.mjs → CheckBox-CoOmnGWD.mjs} +2 -2
- package/dist/esm/chunks/{Chip-DWp7p2BF.mjs → Chip-ClG6cUX0.mjs} +2 -2
- package/dist/esm/chunks/{DivInput-WJltaCra.mjs → DivInput-BVhcU0y0.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-DA7pYWg6.mjs → DrggablePanel-G5HHlntD.mjs} +16 -13
- package/dist/esm/chunks/{DropDown-BQ2tNN3_.mjs → DropDown-AuQW_DWv.mjs} +18 -15
- package/dist/esm/chunks/{FileIcon-Cufsp1gn.mjs → FileIcon-fJV_Cl6v.mjs} +1 -1
- package/dist/esm/chunks/{FileList-BQ9X5YnB.mjs → FileList-CxHaEEUi.mjs} +4 -4
- package/dist/esm/chunks/{FlexDiv-BFrVoFhC.mjs → FlexDiv-DnY1_qk4.mjs} +62 -22
- package/dist/esm/chunks/{Grouper-CvPYEsF_.mjs → Grouper-CyWZ8tfm.mjs} +1 -1
- package/dist/esm/chunks/{Icon-DI32kOA1.mjs → Icon-BOJAk-hM.mjs} +267 -12
- package/dist/esm/chunks/{IconButton-Dciw5CLn.mjs → IconButton-Ck0IMn4i.mjs} +14 -11
- package/dist/esm/chunks/{Label-CvCDAg1y.mjs → Label-DSfCcKtQ.mjs} +1 -1
- package/dist/esm/chunks/{MdStreamBuffer-DNXE4XbN.mjs → MdStreamBuffer-By7pHJQL.mjs} +37 -3
- package/dist/esm/chunks/{Pager-BoDLaKFh.mjs → Pager-ByJ2Cr0n.mjs} +1 -1
- package/dist/esm/chunks/{ProgressIndicator-CB_oazMD.mjs → ProgressIndicator-d2JGUDW_.mjs} +1 -1
- package/dist/esm/chunks/{PromptInput-plgRiAb7.mjs → PromptInput-COJnOFZf.mjs} +2 -2
- package/dist/esm/chunks/{RadioButton-B6ImCUYY.mjs → RadioButton-BB73OY2a.mjs} +2 -2
- package/dist/esm/chunks/{RadioButtonList-Cf6gk8yp.mjs → RadioButtonList-XqlqadYn.mjs} +2 -2
- package/dist/esm/chunks/{Slider-Cav86rU6.mjs → Slider-CU0Zdlpu.mjs} +25 -28
- package/dist/esm/chunks/{TabBar-0zpJ9GtN.mjs → TabBar-v8Dp4dr-.mjs} +11 -8
- package/dist/esm/chunks/{TextArea-B64bIPHm.mjs → TextArea-DGF43RON.mjs} +1 -1
- package/dist/esm/chunks/{TextField-BZeoN_ye.mjs → TextField-j4q0RUzH.mjs} +8 -8
- package/dist/esm/chunks/{Tip-C5LB54J9.mjs → Tip-Bj9d-230.mjs} +2 -2
- package/dist/esm/chunks/{Toast-Bl4s4tRo.mjs → Toast-CoioLlEG.mjs} +7 -6
- package/dist/esm/chunks/ToggleButton-CwTm8Yx0.mjs +51 -0
- package/dist/esm/chunks/{UploadArea-D3g2g1LK.mjs → UploadArea-DAwoJxtr.mjs} +4 -4
- package/dist/esm/chunks/{_types-DeEhv4Y5.mjs → _types-BVrr_Khp.mjs} +15 -3
- package/dist/esm/chunks/microphoneStore-Dr3lxoWX.mjs +135 -0
- package/dist/esm/chunks/{misc-BeEWwOaJ.mjs → misc-Bjbro8Xe.mjs} +2 -2
- package/dist/esm/chunks/volumeStore-GZnCDBMU.mjs +90 -0
- package/dist/esm/components/AudioBubble/index.mjs +5 -5
- package/dist/esm/components/Avatar/index.mjs +2 -2
- package/dist/esm/components/AvatarGroup/index.mjs +3 -3
- package/dist/esm/components/Button/index.mjs +6 -6
- package/dist/esm/components/ButtonBar/index.mjs +7 -7
- package/dist/esm/components/Camera/index.mjs +8 -8
- package/dist/esm/components/CheckBox/index.mjs +7 -7
- package/dist/esm/components/Chip/index.mjs +7 -7
- package/dist/esm/components/DivInput/index.mjs +2 -2
- package/dist/esm/components/DraggablePanel/index.mjs +6 -6
- package/dist/esm/components/DropDown/index.mjs +7 -7
- package/dist/esm/components/ErrorSummary/index.mjs +4 -4
- package/dist/esm/components/FileIcon/index.mjs +6 -6
- package/dist/esm/components/FileList/index.mjs +9 -9
- package/dist/esm/components/FlexDiv/index.mjs +1 -1
- package/dist/esm/components/Grouper/index.mjs +7 -7
- package/dist/esm/components/Icon/index.mjs +7 -7
- package/dist/esm/components/IconButton/index.mjs +5 -5
- package/dist/esm/components/Label/index.mjs +2 -2
- package/dist/esm/components/Pager/index.mjs +2 -2
- package/dist/esm/components/Progress/index.mjs +7 -7
- package/dist/esm/components/PromptInput/index.mjs +11 -11
- package/dist/esm/components/RadioButton/index.mjs +7 -7
- package/dist/esm/components/RadioButtonList/index.mjs +8 -8
- package/dist/esm/components/Slider/index.mjs +2 -2
- package/dist/esm/components/TabBar/index.mjs +8 -8
- package/dist/esm/components/TextArea/index.mjs +7 -7
- package/dist/esm/components/Textfield/index.mjs +10 -10
- package/dist/esm/components/Tip/index.mjs +2 -2
- package/dist/esm/components/Toast/index.mjs +7 -7
- package/dist/esm/components/ToggleButton/index.mjs +45 -0
- package/dist/esm/components/UploadArea/index.mjs +10 -10
- package/dist/esm/hooks/useMdStreamBuffer.mjs +1 -1
- package/dist/esm/hooks/useMicrophone.mjs +71 -21
- package/dist/esm/hooks/useTheme.mjs +26 -15
- package/dist/esm/hooks/useToolTip.mjs +9 -6
- package/dist/esm/hooks/useTrackRenders.mjs +1 -1
- package/dist/esm/hooks.mjs +7 -7
- package/dist/esm/index.mjs +35 -33
- package/dist/esm/providers/ThemeProvider.mjs +38 -21
- package/dist/esm/stores/microphone.mjs +7 -0
- package/dist/esm/stores/volume.mjs +5 -0
- package/dist/esm/stores.mjs +4 -0
- package/dist/esm/theme/colors.mjs +8 -2
- package/dist/esm/utils/index.mjs +2 -2
- package/dist/esm/utils/objects/index.mjs +1 -1
- package/dist/types/components/Button/Button.d.ts +2 -0
- package/dist/types/components/Button/_types.d.ts +1 -0
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +1 -2
- package/dist/types/components/DropDown/_types.d.ts +1 -0
- package/dist/types/components/FlexDiv/FlexDiv.d.ts +2 -0
- package/dist/types/components/FlexDiv/_types.d.ts +35 -7
- package/dist/types/components/Icon/_types.d.ts +13 -0
- package/dist/types/components/IconButton/_types.d.ts +1 -0
- package/dist/types/components/Slider/_types.d.ts +5 -0
- package/dist/types/components/TabBar/_types.d.ts +2 -0
- package/dist/types/components/Toast/_types.d.ts +1 -0
- package/dist/types/components/ToggleButton/ToggleButton.d.ts +2 -0
- package/dist/types/components/ToggleButton/_types.d.ts +24 -0
- package/dist/types/components/ToggleButton/index.d.ts +2 -0
- package/dist/types/hooks/useMicrophone/useMicrophone.d.ts +6 -1
- package/dist/types/hooks/useTheme/useTheme.d.ts +5 -1
- package/dist/types/hooks/useWindow/useWindow.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/providers/ThemeProvider.d.ts +2 -0
- package/dist/types/stores/index.d.ts +2 -0
- package/dist/types/stores/microphone/_types.d.ts +32 -0
- package/dist/types/stores/microphone/index.d.ts +2 -0
- package/dist/types/stores/microphone/microphoneStore.d.ts +27 -0
- package/dist/types/stores/volume/_types.d.ts +19 -0
- package/dist/types/stores/volume/index.d.ts +3 -0
- package/dist/types/stores/volume/volumeStore.d.ts +32 -0
- package/dist/types/stores/window/windowStore.d.ts +2 -2
- package/dist/types/theme/colors/types.d.ts +3 -0
- package/dist/types/utils/functions/misc.d.ts +1 -1
- package/dist/types/utils/objects/MDStreamBuffer/MdStreamBuffer.d.ts +3 -0
- package/dist/types/utils/objects/MDStreamBuffer/_types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { motion } from "motion/react";
|
|
|
7
7
|
|
|
8
8
|
import React, { useState, useRef, useEffect, useMemo } from "react";
|
|
9
9
|
|
|
10
|
-
import { f as filterClasses } from "./misc-
|
|
10
|
+
import { f as filterClasses } from "./misc-Bjbro8Xe.mjs";
|
|
11
11
|
|
|
12
12
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
13
13
|
|
|
@@ -19,7 +19,7 @@ var css = {
|
|
|
19
19
|
l: "Tip-module_l__OdNuh type-module_body-l-regular__lOYbg"
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.Tip-module_wrapper__D7ACT {\n\tpadding: var(--tooltip-padding) !important;\n\tposition: fixed;\n\tborder: var(--tooltip-border);\n\tborder-radius: var(--tooltip-border-radius);\n\tbackground: var(--tooltip-background);\n\tz-index: var(--elevation-describe);\n}\n\n.Tip-module_xs__wsz9y {\n}\n\n.Tip-module_s__Wvz3q {\n}\n\n.Tip-module_m__9qJbB {\n}\n.Tip-module_l__OdNuh {\n}\n");
|
|
22
|
+
styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.Tip-module_wrapper__D7ACT {\n\tpadding: var(--tooltip-padding) !important;\n\tposition: fixed;\n\tborder: var(--tooltip-border);\n\tborder-radius: var(--tooltip-border-radius);\n\tbackground: var(--tooltip-background);\n\twhite-space: nowrap;\n\tz-index: var(--elevation-describe);\n}\n\n.Tip-module_xs__wsz9y {\n}\n\n.Tip-module_s__Wvz3q {\n}\n\n.Tip-module_m__9qJbB {\n}\n.Tip-module_l__OdNuh {\n}\n");
|
|
23
23
|
|
|
24
24
|
const tipBasePos = {
|
|
25
25
|
left: 0,
|
|
@@ -11,11 +11,11 @@ import { useTheme } from "../hooks/useTheme.mjs";
|
|
|
11
11
|
|
|
12
12
|
import "../theme/colors.mjs";
|
|
13
13
|
|
|
14
|
-
import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-
|
|
14
|
+
import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-Bjbro8Xe.mjs";
|
|
15
15
|
|
|
16
16
|
import "../hooks/useWindow.mjs";
|
|
17
17
|
|
|
18
|
-
import { I as Icon } from "./Icon-
|
|
18
|
+
import { I as Icon } from "./Icon-BOJAk-hM.mjs";
|
|
19
19
|
|
|
20
20
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
21
21
|
|
|
@@ -27,14 +27,14 @@ var ToastType, css = {
|
|
|
27
27
|
l: "Toast-module_l__-W0PD type-module_body-l-regular__lOYbg"
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.Toast-module_wrapper__1uj9O {\n\tpadding: var(--toast-padding) !important;\n\tcolor: var(--toast-color);\n\tposition:
|
|
30
|
+
styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.Toast-module_wrapper__1uj9O {\n\tpadding: var(--toast-padding) !important;\n\tcolor: var(--toast-color);\n\tposition: var(--toast-position);\n\tborder: var(--toast-border);\n\tborder-radius: var(--toast-border-radius);\n\tbackground: var(--toast-background);\n\tz-index: var(--elevation-status);\n\tgap: 16px;\n\tbox-shadow: var(--surface-shadow-soft);\n\tleft: 50%;\n\ttransform: translateX(-50%);\n}\n\n.Toast-module_close__i10-s {\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tmin-width: 20px;\n\tmax-width: 20px;\n\tcursor: pointer;\n}\n\n.Toast-module_s__kc5Ef {\n}\n\n.Toast-module_m__JtmLz {\n}\n.Toast-module_l__-W0PD {\n}\n"),
|
|
31
31
|
function(ToastType) {
|
|
32
32
|
ToastType.Success = "success", ToastType.Error = "error", ToastType.Warning = "warning",
|
|
33
33
|
ToastType.Info = "info";
|
|
34
34
|
}(ToastType || (ToastType = {}));
|
|
35
35
|
|
|
36
36
|
const ToastBase = React.forwardRef((props, ref) => {
|
|
37
|
-
const {message: message = null, size: size = "m", border: border = !0, padding: padding, radius: radius = 8, showDelay: showDelay = 0, duration: duration = 5e3, position: position = "bottom", offset: offset = 24, close: close = !0, type: type = ToastType.Info, didHide: didHide = () => null} = props, divAttributes = __rest(props, [ "message", "size", "border", "padding", "radius", "showDelay", "duration", "position", "offset", "close", "type", "didHide" ]), theme = useTheme(), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? `${className}` : "", [ready, setReady] = useState(!1), [content, setContent] = useState(null), timer = useRef(null);
|
|
37
|
+
const {message: message = null, size: size = "m", border: border = !0, padding: padding, radius: radius = 8, container: container = "window", showDelay: showDelay = 0, duration: duration = 5e3, position: position = "bottom", offset: offset = 24, close: close = !0, type: type = ToastType.Info, didHide: didHide = () => null} = props, divAttributes = __rest(props, [ "message", "size", "border", "padding", "radius", "container", "showDelay", "duration", "position", "offset", "close", "type", "didHide" ]), theme = useTheme(), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? `${className}` : "", [ready, setReady] = useState(!1), [content, setContent] = useState(null), timer = useRef(null);
|
|
38
38
|
useEffect(() => {
|
|
39
39
|
timer.current && clearTimeout(timer.current);
|
|
40
40
|
return message && message.length > 0 ? timer.current = setTimeout(() => {
|
|
@@ -80,8 +80,9 @@ const ToastBase = React.forwardRef((props, ref) => {
|
|
|
80
80
|
"--toast-background": colorScheme.bg,
|
|
81
81
|
"--toast-color": colorScheme.text,
|
|
82
82
|
"--toast-border": border ? `1px solid ${colorScheme.border}` : "unset",
|
|
83
|
-
"--toast-border-radius": setStyle(radius, 4)
|
|
84
|
-
|
|
83
|
+
"--toast-border-radius": setStyle(radius, 4),
|
|
84
|
+
"--toast-position": "window" === container ? "fixed" : "absolute"
|
|
85
|
+
}), [ padding, border, colorScheme, radius, defaultPadding, container ]), variants = useMemo(() => {
|
|
85
86
|
const positionShow = "bottom" === position ? {
|
|
86
87
|
bottom: offset
|
|
87
88
|
} : {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
|
|
5
|
+
import { I as IconButton } from "./IconButton-Ck0IMn4i.mjs";
|
|
6
|
+
|
|
7
|
+
import { L as Label } from "./Label-DSfCcKtQ.mjs";
|
|
8
|
+
|
|
9
|
+
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
10
|
+
|
|
11
|
+
var css_toggleButton = "ToggleButton-module_toggleButton__H7KgI flexBox-module_rowStart__4tcxS";
|
|
12
|
+
|
|
13
|
+
function ToggleButton(props) {
|
|
14
|
+
const {label: label, textSize: textSize, icon: icon, selected: selected = !1, iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-surface-primary)", bgColor: bgColor = "var(--core-surface-secondary)", bgColorOn: bgColorOn = "var(--core-link-primary)", iconSize: iconSize = 20, buttonSize: buttonSize = "m", tooltip: tooltip, gap: gap = 4, unselect: unselect = !0, fill: fill = !1, disabled: disabled = !1, onChange: onChange, onSelect: onSelect, onToolTip: onToolTip, children: children} = props, handleClick = () => {
|
|
15
|
+
if (!unselect && selected) return;
|
|
16
|
+
const newState = !selected;
|
|
17
|
+
null == onChange || onChange(newState), newState && (null == onSelect || onSelect());
|
|
18
|
+
}, cssVars = useMemo(() => ({
|
|
19
|
+
"--tb-gap": `${gap}px`
|
|
20
|
+
}), [ gap ]);
|
|
21
|
+
return jsxs("div", {
|
|
22
|
+
className: css_toggleButton,
|
|
23
|
+
style: cssVars,
|
|
24
|
+
children: [ icon && jsx(IconButton, {
|
|
25
|
+
icon: icon,
|
|
26
|
+
buttonSize: buttonSize,
|
|
27
|
+
tooltip: tooltip,
|
|
28
|
+
toggle: !selected,
|
|
29
|
+
isToggled: selected,
|
|
30
|
+
bgColorOn: bgColorOn,
|
|
31
|
+
bgColor: bgColor,
|
|
32
|
+
iconColor: iconColor,
|
|
33
|
+
iconColorOn: iconColorOn,
|
|
34
|
+
onClick: handleClick,
|
|
35
|
+
iconSize: iconSize,
|
|
36
|
+
iconFill: fill,
|
|
37
|
+
disabled: disabled,
|
|
38
|
+
onToolTip: onToolTip
|
|
39
|
+
}), (children || label) && jsx(Label, {
|
|
40
|
+
textSize: textSize,
|
|
41
|
+
borderSize: 0,
|
|
42
|
+
padding: 0,
|
|
43
|
+
onClick: handleClick,
|
|
44
|
+
children: null != children ? children : label
|
|
45
|
+
}) ]
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.ToggleButton-module_toggleButton__H7KgI {\n\twidth: min-content;\n\tgap: var(--tb-gap);\n}\n");
|
|
50
|
+
|
|
51
|
+
export { ToggleButton as T };
|
|
@@ -3,13 +3,13 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
|
|
4
4
|
import React, { useState, useRef, useId, useCallback, useMemo } from "react";
|
|
5
5
|
|
|
6
|
-
import { s as setStyle, a as accessibleKeyDown } from "./misc-
|
|
6
|
+
import { s as setStyle, a as accessibleKeyDown } from "./misc-Bjbro8Xe.mjs";
|
|
7
7
|
|
|
8
|
-
import { F as FileList } from "./FileList-
|
|
8
|
+
import { F as FileList } from "./FileList-CxHaEEUi.mjs";
|
|
9
9
|
|
|
10
|
-
import { I as Icon } from "./Icon-
|
|
10
|
+
import { I as Icon } from "./Icon-BOJAk-hM.mjs";
|
|
11
11
|
|
|
12
|
-
import { P as ProgressIndicator } from "./ProgressIndicator-
|
|
12
|
+
import { P as ProgressIndicator } from "./ProgressIndicator-d2JGUDW_.mjs";
|
|
13
13
|
|
|
14
14
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
15
15
|
|
|
@@ -37,7 +37,11 @@ const SliceIcons = {
|
|
|
37
37
|
video: "video",
|
|
38
38
|
videoOff: "video off",
|
|
39
39
|
download: "download",
|
|
40
|
-
upload: "upload"
|
|
40
|
+
upload: "upload",
|
|
41
|
+
speaker: "speaker",
|
|
42
|
+
speakerMuted: "speaker muted",
|
|
43
|
+
speakerHigh: "speaker high",
|
|
44
|
+
speakerLow: "speaker low"
|
|
41
45
|
},
|
|
42
46
|
files: {
|
|
43
47
|
document: "document",
|
|
@@ -46,14 +50,16 @@ const SliceIcons = {
|
|
|
46
50
|
},
|
|
47
51
|
people: {
|
|
48
52
|
people: "people",
|
|
49
|
-
person: "person"
|
|
53
|
+
person: "person",
|
|
54
|
+
talk: "talk"
|
|
50
55
|
},
|
|
51
56
|
business: {
|
|
52
57
|
briefcase: "briefcase",
|
|
53
58
|
dollar: "dollar",
|
|
54
59
|
invoice: "invoice",
|
|
55
60
|
payment: "payment",
|
|
56
|
-
wallet: "wallet"
|
|
61
|
+
wallet: "wallet",
|
|
62
|
+
laptop: "laptop"
|
|
57
63
|
},
|
|
58
64
|
charts: {
|
|
59
65
|
barChart: "bar chart",
|
|
@@ -93,6 +99,10 @@ const SliceIcons = {
|
|
|
93
99
|
fontSmaller: "font smaller",
|
|
94
100
|
characterBeam: "character beam"
|
|
95
101
|
},
|
|
102
|
+
weather: {
|
|
103
|
+
sun: "sun",
|
|
104
|
+
moonFull: "moon full"
|
|
105
|
+
},
|
|
96
106
|
ai: {
|
|
97
107
|
sparkle: "sparkle",
|
|
98
108
|
wand: "wand"
|
|
@@ -112,6 +122,8 @@ const SliceIcons = {
|
|
|
112
122
|
menu: "menu",
|
|
113
123
|
more: "more",
|
|
114
124
|
sidebar: "sidebar",
|
|
125
|
+
sidebarSplit: "sidebar split",
|
|
126
|
+
keyboard: "keyboard",
|
|
115
127
|
x: "x"
|
|
116
128
|
}
|
|
117
129
|
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { _ as __awaiter } from "./tslib.es6-C-olHjXV.mjs";
|
|
3
|
+
|
|
4
|
+
import { useEffect } from "react";
|
|
5
|
+
|
|
6
|
+
import { create } from "zustand";
|
|
7
|
+
|
|
8
|
+
const emptyMicStreamRef = {
|
|
9
|
+
current: null
|
|
10
|
+
}, emptyMicTrackRef = {
|
|
11
|
+
current: null
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function createEmptyState() {
|
|
15
|
+
return {
|
|
16
|
+
micStream: emptyMicStreamRef,
|
|
17
|
+
processedMicStream: emptyMicStreamRef,
|
|
18
|
+
micTrack: emptyMicTrackRef,
|
|
19
|
+
currentDeviceId: null,
|
|
20
|
+
isActive: !1,
|
|
21
|
+
inputVolume: 1,
|
|
22
|
+
muted: !0,
|
|
23
|
+
isSupported: !1,
|
|
24
|
+
isRequesting: !1,
|
|
25
|
+
error: null,
|
|
26
|
+
microphones: [],
|
|
27
|
+
micOptions: []
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function createBoundActions(microphone, clearState) {
|
|
32
|
+
return {
|
|
33
|
+
requestMicrophone: () => __awaiter(this, void 0, void 0, function*() {
|
|
34
|
+
var _a;
|
|
35
|
+
return null !== (_a = null == microphone ? void 0 : microphone.requestMicrophone()) && void 0 !== _a ? _a : null;
|
|
36
|
+
}),
|
|
37
|
+
stopMicrophone: () => {
|
|
38
|
+
null == microphone || microphone.stopMicrophone(), microphone || clearState();
|
|
39
|
+
},
|
|
40
|
+
muteMic: () => {
|
|
41
|
+
var _a;
|
|
42
|
+
return null !== (_a = null == microphone ? void 0 : microphone.muteMic()) && void 0 !== _a && _a;
|
|
43
|
+
},
|
|
44
|
+
unmuteMic: () => {
|
|
45
|
+
var _a;
|
|
46
|
+
return null !== (_a = null == microphone ? void 0 : microphone.unmuteMic()) && void 0 !== _a && _a;
|
|
47
|
+
},
|
|
48
|
+
toggleMute: () => null == microphone ? void 0 : microphone.toggleMute(),
|
|
49
|
+
setInputVolume: volume => {
|
|
50
|
+
var _a;
|
|
51
|
+
return null !== (_a = null == microphone ? void 0 : microphone.setInputVolume(volume)) && void 0 !== _a ? _a : 1;
|
|
52
|
+
},
|
|
53
|
+
refreshMicrophones: () => __awaiter(this, void 0, void 0, function*() {
|
|
54
|
+
var _a;
|
|
55
|
+
return null !== (_a = null == microphone ? void 0 : microphone.refreshMicrophones()) && void 0 !== _a ? _a : [];
|
|
56
|
+
}),
|
|
57
|
+
setMicrophone: deviceId => __awaiter(this, void 0, void 0, function*() {
|
|
58
|
+
yield null == microphone ? void 0 : microphone.setMicrophone(deviceId);
|
|
59
|
+
})
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Store factory that creates the store state based on a sync or a clear
|
|
65
|
+
*/ const useMicrophoneStore = create(set => {
|
|
66
|
+
const clearState = () => {
|
|
67
|
+
set(state => Object.assign(Object.assign({}, createEmptyState()), {
|
|
68
|
+
actions: Object.assign(Object.assign({}, state.actions), createBoundActions(null, clearState))
|
|
69
|
+
}));
|
|
70
|
+
};
|
|
71
|
+
return Object.assign(Object.assign({}, createEmptyState()), {
|
|
72
|
+
actions: Object.assign({
|
|
73
|
+
sync: microphone => {
|
|
74
|
+
set(state => Object.assign(Object.assign({}, function(microphone) {
|
|
75
|
+
return microphone ? {
|
|
76
|
+
micStream: microphone.micStream,
|
|
77
|
+
processedMicStream: microphone.processedMicStream,
|
|
78
|
+
micTrack: microphone.micTrack,
|
|
79
|
+
currentDeviceId: microphone.currentDeviceId,
|
|
80
|
+
isActive: microphone.isActive,
|
|
81
|
+
inputVolume: microphone.inputVolume,
|
|
82
|
+
muted: microphone.muted,
|
|
83
|
+
isSupported: microphone.isSupported,
|
|
84
|
+
isRequesting: microphone.isRequesting,
|
|
85
|
+
error: microphone.error,
|
|
86
|
+
microphones: microphone.microphones,
|
|
87
|
+
micOptions: microphone.micOptions
|
|
88
|
+
} : createEmptyState();
|
|
89
|
+
}(microphone)), {
|
|
90
|
+
actions: Object.assign(Object.assign({}, state.actions), createBoundActions(microphone, clearState))
|
|
91
|
+
}));
|
|
92
|
+
},
|
|
93
|
+
clear: clearState
|
|
94
|
+
}, createBoundActions(null, clearState))
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Bind the value of useMicrophone hook to the useMicrophoneStore. Use this to update the store with a new mic object.
|
|
100
|
+
*/ function useSyncMicrophoneStore(microphone) {
|
|
101
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
102
|
+
const sync = useMicrophoneStore(state => state.actions.sync), hasMicrophone = null !== microphone, micStream = null !== (_a = null == microphone ? void 0 : microphone.micStream) && void 0 !== _a ? _a : emptyMicStreamRef, processedMicStream = null !== (_b = null == microphone ? void 0 : microphone.processedMicStream) && void 0 !== _b ? _b : emptyMicStreamRef, micTrack = null !== (_c = null == microphone ? void 0 : microphone.micTrack) && void 0 !== _c ? _c : emptyMicTrackRef, currentDeviceId = null !== (_d = null == microphone ? void 0 : microphone.currentDeviceId) && void 0 !== _d ? _d : null, isActive = null !== (_e = null == microphone ? void 0 : microphone.isActive) && void 0 !== _e && _e, inputVolume = null !== (_f = null == microphone ? void 0 : microphone.inputVolume) && void 0 !== _f ? _f : 1, muted = null === (_g = null == microphone ? void 0 : microphone.muted) || void 0 === _g || _g, isSupported = null !== (_h = null == microphone ? void 0 : microphone.isSupported) && void 0 !== _h && _h, isRequesting = null !== (_j = null == microphone ? void 0 : microphone.isRequesting) && void 0 !== _j && _j, error = null !== (_k = null == microphone ? void 0 : microphone.error) && void 0 !== _k ? _k : null, microphones = null !== (_l = null == microphone ? void 0 : microphone.microphones) && void 0 !== _l ? _l : [], micOptions = null !== (_m = null == microphone ? void 0 : microphone.micOptions) && void 0 !== _m ? _m : [], requestMicrophone = null == microphone ? void 0 : microphone.requestMicrophone, stopMicrophone = null == microphone ? void 0 : microphone.stopMicrophone, muteMic = null == microphone ? void 0 : microphone.muteMic, unmuteMic = null == microphone ? void 0 : microphone.unmuteMic, toggleMute = null == microphone ? void 0 : microphone.toggleMute, setInputVolume = null == microphone ? void 0 : microphone.setInputVolume, refreshMicrophones = null == microphone ? void 0 : microphone.refreshMicrophones, setMicrophone = null == microphone ? void 0 : microphone.setMicrophone;
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
sync(hasMicrophone ? {
|
|
105
|
+
micStream: micStream,
|
|
106
|
+
processedMicStream: processedMicStream,
|
|
107
|
+
micTrack: micTrack,
|
|
108
|
+
currentDeviceId: currentDeviceId,
|
|
109
|
+
isActive: isActive,
|
|
110
|
+
inputVolume: inputVolume,
|
|
111
|
+
muted: muted,
|
|
112
|
+
isSupported: isSupported,
|
|
113
|
+
isRequesting: isRequesting,
|
|
114
|
+
error: error,
|
|
115
|
+
microphones: microphones,
|
|
116
|
+
micOptions: micOptions,
|
|
117
|
+
requestMicrophone: null != requestMicrophone ? requestMicrophone : () => __awaiter(this, void 0, void 0, function*() {
|
|
118
|
+
return null;
|
|
119
|
+
}),
|
|
120
|
+
stopMicrophone: null != stopMicrophone ? stopMicrophone : () => null,
|
|
121
|
+
muteMic: null != muteMic ? muteMic : () => !1,
|
|
122
|
+
unmuteMic: null != unmuteMic ? unmuteMic : () => !1,
|
|
123
|
+
toggleMute: null != toggleMute ? toggleMute : () => null,
|
|
124
|
+
setInputVolume: null != setInputVolume ? setInputVolume : () => 1,
|
|
125
|
+
refreshMicrophones: null != refreshMicrophones ? refreshMicrophones : () => __awaiter(this, void 0, void 0, function*() {
|
|
126
|
+
return [];
|
|
127
|
+
}),
|
|
128
|
+
setMicrophone: null != setMicrophone ? setMicrophone : () => __awaiter(this, void 0, void 0, function*() {})
|
|
129
|
+
} : null);
|
|
130
|
+
}, [ sync, hasMicrophone, micStream, processedMicStream, micTrack, currentDeviceId, isActive, inputVolume, muted, isSupported, isRequesting, error, microphones, micOptions, requestMicrophone, stopMicrophone, muteMic, unmuteMic, toggleMute, setInputVolume, refreshMicrophones, setMicrophone ]);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const useMicStream = () => useMicrophoneStore(state => state.micStream), useProcessedMicStream = () => useMicrophoneStore(state => state.processedMicStream), useMicTrack = () => useMicrophoneStore(state => state.micTrack), useCurrentMicDeviceId = () => useMicrophoneStore(state => state.currentDeviceId), useMicActive = () => useMicrophoneStore(state => state.isActive), useMicInputVolume = () => useMicrophoneStore(state => state.inputVolume), useMicMuted = () => useMicrophoneStore(state => state.muted), useMicSupported = () => useMicrophoneStore(state => state.isSupported), useMicRequesting = () => useMicrophoneStore(state => state.isRequesting), useMicError = () => useMicrophoneStore(state => state.error), useMicrophones = () => useMicrophoneStore(state => state.microphones), useMicOptions = () => useMicrophoneStore(state => state.micOptions), useMicrophoneStoreActions = () => useMicrophoneStore(state => state.actions), microphoneActions = useMicrophoneStore.getState().actions, getMicrophoneState = () => useMicrophoneStore.getState();
|
|
134
|
+
|
|
135
|
+
export { useMicActive as a, useMicError as b, useMicInputVolume as c, useMicMuted as d, useMicOptions as e, useMicRequesting as f, getMicrophoneState as g, useMicStream as h, useMicSupported as i, useMicTrack as j, useMicrophoneStore as k, useMicrophoneStoreActions as l, microphoneActions as m, useMicrophones as n, useProcessedMicStream as o, useSyncMicrophoneStore as p, useCurrentMicDeviceId as u };
|
|
@@ -48,9 +48,9 @@ import { _ as __awaiter } from "./tslib.es6-C-olHjXV.mjs";
|
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
const hexToRgb = hex => {
|
|
51
|
+
const hexToRgb = (hex, opacity) => {
|
|
52
52
|
if (!hex) return;
|
|
53
|
-
return `
|
|
53
|
+
return `rgba(${Number.parseInt(hex.slice(1, 3), 16)}, ${Number.parseInt(hex.slice(3, 5), 16)}, ${Number.parseInt(hex.slice(5, 7), 16)}, ${null != opacity ? opacity : 1})`;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { _ as __awaiter } from "./tslib.es6-C-olHjXV.mjs";
|
|
2
|
+
|
|
3
|
+
import { create } from "zustand";
|
|
4
|
+
|
|
5
|
+
const useVolumeStore = create((set, get) => ({
|
|
6
|
+
volume: 1,
|
|
7
|
+
storedVolume: 1,
|
|
8
|
+
muted: !1,
|
|
9
|
+
elements: new Set,
|
|
10
|
+
feedbackElement: null,
|
|
11
|
+
actions: {
|
|
12
|
+
attachMedia: elements => {
|
|
13
|
+
const media = Array.isArray(elements) ? elements : [ elements ], mediaMap = new Set(get().elements);
|
|
14
|
+
for (const element of media) mediaMap.add(element);
|
|
15
|
+
adjustMediaVolume(mediaMap, get().volume), set({
|
|
16
|
+
elements: mediaMap
|
|
17
|
+
});
|
|
18
|
+
},
|
|
19
|
+
attachFeedbackElement: element => {
|
|
20
|
+
element.loop = !1, set({
|
|
21
|
+
feedbackElement: element
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
detachFeedbackElement: element => {
|
|
25
|
+
set({
|
|
26
|
+
feedbackElement: null
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
setVolume: volume => {
|
|
30
|
+
const currentVolume = get().muted ? 0 : volume, attachedMedia = get().elements, newStored = volume > 0 ? volume : get().storedVolume;
|
|
31
|
+
attachedMedia.size > 0 && adjustMediaVolume(attachedMedia, currentVolume), set({
|
|
32
|
+
volume: currentVolume,
|
|
33
|
+
storedVolume: newStored
|
|
34
|
+
});
|
|
35
|
+
},
|
|
36
|
+
playFeedback: volume => __awaiter(void 0, void 0, void 0, function*() {
|
|
37
|
+
if (get().muted) return;
|
|
38
|
+
const feedbackElement = get().feedbackElement;
|
|
39
|
+
yield playFeedbackSound(feedbackElement, null != volume ? volume : get().volume);
|
|
40
|
+
}),
|
|
41
|
+
mute: () => __awaiter(void 0, void 0, void 0, function*() {
|
|
42
|
+
if (get().muted) return;
|
|
43
|
+
const volume = get().volume, attachedMedia = get().elements;
|
|
44
|
+
attachedMedia.size > 0 && adjustMediaVolume(attachedMedia, 0), set({
|
|
45
|
+
volume: 0,
|
|
46
|
+
storedVolume: volume,
|
|
47
|
+
muted: !0
|
|
48
|
+
});
|
|
49
|
+
}),
|
|
50
|
+
unmute: () => __awaiter(void 0, void 0, void 0, function*() {
|
|
51
|
+
if (!get().muted) return;
|
|
52
|
+
const storedVolume = get().storedVolume, attachedMedia = get().elements, feedbackElement = get().feedbackElement;
|
|
53
|
+
attachedMedia.size > 0 && adjustMediaVolume(attachedMedia, storedVolume), set({
|
|
54
|
+
volume: storedVolume,
|
|
55
|
+
muted: !1
|
|
56
|
+
}), yield playFeedbackSound(feedbackElement, storedVolume);
|
|
57
|
+
}),
|
|
58
|
+
detachMedia: elements => {
|
|
59
|
+
const media = Array.isArray(elements) ? elements : [ elements ], mediaMap = new Set(get().elements);
|
|
60
|
+
for (const element of media) mediaMap.delete(element);
|
|
61
|
+
set({
|
|
62
|
+
elements: mediaMap
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
clearMedia: () => {
|
|
66
|
+
set({
|
|
67
|
+
elements: new Set
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}));
|
|
72
|
+
|
|
73
|
+
function adjustMediaVolume(media, volume) {
|
|
74
|
+
const elements = Array.from(media);
|
|
75
|
+
for (const element of elements) element instanceof HTMLAudioElement && (element.volume = volume),
|
|
76
|
+
element instanceof HTMLVideoElement && (element.volume = volume);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function playFeedbackSound(element, volume) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function*() {
|
|
81
|
+
if (Number(volume.toFixed(2)), element) {
|
|
82
|
+
!element.paused && !element.ended && element.readyState > 2 && (element.pause(),
|
|
83
|
+
element.currentTime = 0), element.volume = Number(volume.toFixed(2)), yield element.play().catch(err => console.warn(err));
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const useVolume = () => useVolumeStore(state => state.volume), useStoredVolume = () => useVolumeStore(state => state.storedVolume), useMuted = () => useVolumeStore(state => state.muted), useAttachedMedia = () => useVolumeStore(state => state.elements), useVolumeActions = () => useVolumeStore(state => state.actions), volumeActions = useVolumeStore.getState().actions, getVolume = () => useVolumeStore.getState().volume, getStoredVolume = () => useVolumeStore.getState().storedVolume, getMuted = () => useVolumeStore.getState().muted, getAttachedMedia = () => useVolumeStore.getState().elements;
|
|
89
|
+
|
|
90
|
+
export { getMuted as a, getStoredVolume as b, getVolume as c, useMuted as d, useStoredVolume as e, useVolume as f, getAttachedMedia as g, useVolumeActions as h, useVolumeStore as i, useAttachedMedia as u, volumeActions as v };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AudioBubble } from "../../chunks/AudioBubble-
|
|
1
|
+
export { A as AudioBubble } from "../../chunks/AudioBubble-D052QyPH.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../chunks/tslib.es6-C-olHjXV.mjs";
|
|
4
4
|
|
|
@@ -8,6 +8,10 @@ import "react";
|
|
|
8
8
|
|
|
9
9
|
import "../../hooks/useTheme.mjs";
|
|
10
10
|
|
|
11
|
+
import "../../providers/ThemeProvider.mjs";
|
|
12
|
+
|
|
13
|
+
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
14
|
+
|
|
11
15
|
import "../../theme/themes.mjs";
|
|
12
16
|
|
|
13
17
|
import "../../theme/colors.mjs";
|
|
@@ -22,10 +26,6 @@ import "../../theme/type.mjs";
|
|
|
22
26
|
|
|
23
27
|
import "../../hooks/useObserveTheme.mjs";
|
|
24
28
|
|
|
25
|
-
import "../../providers/ThemeProvider.mjs";
|
|
26
|
-
|
|
27
|
-
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
28
|
-
|
|
29
29
|
import "../../chunks/colors-FQ0uNQcW.mjs";
|
|
30
30
|
|
|
31
31
|
import "../../chunks/audioVisualizer-ZgT77nUw.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Avatar } from "../../chunks/Avatar-
|
|
1
|
+
export { A as Avatar } from "../../chunks/Avatar-Ds6MWC2c.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../chunks/tslib.es6-C-olHjXV.mjs";
|
|
4
4
|
|
|
@@ -6,6 +6,6 @@ import "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
import "react";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/misc-
|
|
9
|
+
import "../../chunks/misc-Bjbro8Xe.mjs";
|
|
10
10
|
|
|
11
11
|
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AvatarGroup } from "../../chunks/AvatarGroup-
|
|
1
|
+
export { A as AvatarGroup } from "../../chunks/AvatarGroup-CBGi99eo.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../chunks/tslib.es6-C-olHjXV.mjs";
|
|
4
4
|
|
|
@@ -6,8 +6,8 @@ import "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
import "react";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/Avatar-
|
|
9
|
+
import "../../chunks/Avatar-Ds6MWC2c.mjs";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/misc-
|
|
11
|
+
import "../../chunks/misc-Bjbro8Xe.mjs";
|
|
12
12
|
|
|
13
13
|
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button } from "../../chunks/Button-
|
|
1
|
+
export { B as Button } from "../../chunks/Button-CYFpitCp.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../chunks/tslib.es6-C-olHjXV.mjs";
|
|
4
4
|
|
|
@@ -14,10 +14,12 @@ import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
|
14
14
|
|
|
15
15
|
import "../../chunks/Dot-DZE134mJ.mjs";
|
|
16
16
|
|
|
17
|
-
import "../../chunks/Icon-
|
|
17
|
+
import "../../chunks/Icon-BOJAk-hM.mjs";
|
|
18
18
|
|
|
19
19
|
import "../../hooks/useTheme.mjs";
|
|
20
20
|
|
|
21
|
+
import "../../providers/ThemeProvider.mjs";
|
|
22
|
+
|
|
21
23
|
import "../../theme/themes.mjs";
|
|
22
24
|
|
|
23
25
|
import "../../theme/colors.mjs";
|
|
@@ -32,12 +34,10 @@ import "../../theme/type.mjs";
|
|
|
32
34
|
|
|
33
35
|
import "../../hooks/useObserveTheme.mjs";
|
|
34
36
|
|
|
35
|
-
import "../../
|
|
36
|
-
|
|
37
|
-
import "../../chunks/misc-BeEWwOaJ.mjs";
|
|
37
|
+
import "../../chunks/misc-Bjbro8Xe.mjs";
|
|
38
38
|
|
|
39
39
|
import "../../hooks/useWindow.mjs";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/ProgressIndicator-
|
|
41
|
+
import "../../chunks/ProgressIndicator-d2JGUDW_.mjs";
|
|
42
42
|
|
|
43
43
|
import "../../chunks/sharedTypes-tn9-uJvb.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as ButtonBar } from "../../chunks/ButtonBar-
|
|
1
|
+
export { B as ButtonBar } from "../../chunks/ButtonBar-ieMA0SHi.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../chunks/tslib.es6-C-olHjXV.mjs";
|
|
4
4
|
|
|
@@ -6,12 +6,16 @@ import "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
import "react";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/misc-
|
|
9
|
+
import "../../chunks/misc-Bjbro8Xe.mjs";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/Icon-
|
|
11
|
+
import "../../chunks/Icon-BOJAk-hM.mjs";
|
|
12
12
|
|
|
13
13
|
import "../../hooks/useTheme.mjs";
|
|
14
14
|
|
|
15
|
+
import "../../providers/ThemeProvider.mjs";
|
|
16
|
+
|
|
17
|
+
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
18
|
+
|
|
15
19
|
import "../../theme/themes.mjs";
|
|
16
20
|
|
|
17
21
|
import "../../theme/colors.mjs";
|
|
@@ -26,8 +30,4 @@ import "../../theme/type.mjs";
|
|
|
26
30
|
|
|
27
31
|
import "../../hooks/useObserveTheme.mjs";
|
|
28
32
|
|
|
29
|
-
import "../../providers/ThemeProvider.mjs";
|
|
30
|
-
|
|
31
|
-
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
32
|
-
|
|
33
33
|
import "../../hooks/useWindow.mjs";
|