@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
|
@@ -3,8 +3,25 @@
|
|
|
3
3
|
|
|
4
4
|
var tslib_es6 = require("../chunks/tslib.es6-C8dZW5nY.js"), React = require("react");
|
|
5
5
|
|
|
6
|
-
exports.useMicrophone = function(startMuted = !0, microphoneDeviceId) {
|
|
7
|
-
const micStream = React.useRef(null), micTrack = React.useRef(null), mutedRef = React.useRef(startMuted), mountedRef = React.useRef(!0), initializedRef = React.useRef(!1), [microphones, setMicrophones] = React.useState([]), [micOptions, setMicOptions] = React.useState([]), [muted, setMuted] = React.useState(startMuted), [isRequesting, setIsRequesting] = React.useState(!1), [error, setError] = React.useState(null),
|
|
6
|
+
exports.useMicrophone = function(startMuted = !0, microphoneDeviceId, autoRequest = !0) {
|
|
7
|
+
const micStream = React.useRef(null), processedMicStream = React.useRef(null), micTrack = React.useRef(null), audioContextRef = React.useRef(null), sourceNodeRef = React.useRef(null), gainNodeRef = React.useRef(null), destinationNodeRef = React.useRef(null), inputVolumeRef = React.useRef(1), mutedRef = React.useRef(startMuted), mountedRef = React.useRef(!0), initializedRef = React.useRef(!1), [microphones, setMicrophones] = React.useState([]), [micOptions, setMicOptions] = React.useState([]), [currentDeviceId, setCurrentDeviceId] = React.useState(null), [isActive, setIsActive] = React.useState(!1), [inputVolume, setInputVolumeState] = React.useState(1), [muted, setMuted] = React.useState(startMuted), [isRequesting, setIsRequesting] = React.useState(!1), [error, setError] = React.useState(null), normalizeInputVolume = React.useCallback(volume => Number.isFinite(volume) ? Math.min(1, Math.max(0, volume)) : 1, []), resetAudioProcessing = React.useCallback(() => {
|
|
8
|
+
var _a, _b, _c, _d;
|
|
9
|
+
null === (_a = sourceNodeRef.current) || void 0 === _a || _a.disconnect(), null === (_b = gainNodeRef.current) || void 0 === _b || _b.disconnect(),
|
|
10
|
+
null === (_c = destinationNodeRef.current) || void 0 === _c || _c.disconnect(),
|
|
11
|
+
null === (_d = audioContextRef.current) || void 0 === _d || _d.close().catch(() => null),
|
|
12
|
+
sourceNodeRef.current = null, gainNodeRef.current = null, destinationNodeRef.current = null,
|
|
13
|
+
audioContextRef.current = null, processedMicStream.current = null;
|
|
14
|
+
}, []), setupAudioProcessing = React.useCallback(stream => {
|
|
15
|
+
var _a;
|
|
16
|
+
resetAudioProcessing();
|
|
17
|
+
const AudioContextCtor = null !== (_a = globalThis.AudioContext) && void 0 !== _a ? _a : globalThis.webkitAudioContext;
|
|
18
|
+
if (!AudioContextCtor) return processedMicStream.current = stream, stream;
|
|
19
|
+
const context = new AudioContextCtor, source = context.createMediaStreamSource(stream), gain = context.createGain(), destination = context.createMediaStreamDestination();
|
|
20
|
+
return gain.gain.value = normalizeInputVolume(inputVolumeRef.current), source.connect(gain),
|
|
21
|
+
gain.connect(destination), audioContextRef.current = context, sourceNodeRef.current = source,
|
|
22
|
+
gainNodeRef.current = gain, destinationNodeRef.current = destination, processedMicStream.current = destination.stream,
|
|
23
|
+
destination.stream;
|
|
24
|
+
}, [ normalizeInputVolume, resetAudioProcessing ]), waitForPaint = React.useCallback(() => tslib_es6.__awaiter(this, void 0, void 0, function*() {
|
|
8
25
|
yield new Promise(resolve => {
|
|
9
26
|
requestAnimationFrame(() => resolve());
|
|
10
27
|
});
|
|
@@ -19,10 +36,12 @@ exports.useMicrophone = function(startMuted = !0, microphoneDeviceId) {
|
|
|
19
36
|
}));
|
|
20
37
|
}), []), stopMicStream = React.useCallback(() => {
|
|
21
38
|
var _a;
|
|
39
|
+
resetAudioProcessing();
|
|
22
40
|
const tracks = null === (_a = micStream.current) || void 0 === _a ? void 0 : _a.getTracks();
|
|
23
41
|
for (const track of null != tracks ? tracks : []) track.stop();
|
|
24
|
-
micStream.current = null, micTrack.current = null
|
|
25
|
-
|
|
42
|
+
micStream.current = null, micTrack.current = null, processedMicStream.current = null,
|
|
43
|
+
setCurrentDeviceId(null), setIsActive(!1);
|
|
44
|
+
}, [ resetAudioProcessing ]), hasMediaSupport = React.useMemo(() => {
|
|
26
45
|
var _a;
|
|
27
46
|
return "undefined" != typeof navigator && Boolean(null === (_a = navigator.mediaDevices) || void 0 === _a ? void 0 : _a.getUserMedia);
|
|
28
47
|
}, []), getMicTrack = React.useCallback(() => {
|
|
@@ -30,9 +49,13 @@ exports.useMicrophone = function(startMuted = !0, microphoneDeviceId) {
|
|
|
30
49
|
const audioTrack = micStream.current.getAudioTracks()[0];
|
|
31
50
|
if (!audioTrack) throw new Error("No audio track found");
|
|
32
51
|
return audioTrack;
|
|
33
|
-
}, []), muteMic = React.useCallback(() => (getMicTrack().enabled = !1,
|
|
34
|
-
setMuted(!0), !0), [ getMicTrack ]), unmuteMic = React.useCallback(() => (getMicTrack().enabled = !0,
|
|
35
|
-
mutedRef.current = !1, setMuted(!1), !0), [ getMicTrack ]),
|
|
52
|
+
}, []), hasActiveStream = React.useCallback(() => !(!micStream.current || !micTrack.current) && "live" === micTrack.current.readyState, []), muteMic = React.useCallback(() => (getMicTrack().enabled = !1,
|
|
53
|
+
mutedRef.current = !0, setMuted(!0), !0), [ getMicTrack ]), unmuteMic = React.useCallback(() => (getMicTrack().enabled = !0,
|
|
54
|
+
mutedRef.current = !1, setMuted(!1), !0), [ getMicTrack ]), setInputVolume = React.useCallback(volume => {
|
|
55
|
+
const nextVolume = normalizeInputVolume(volume);
|
|
56
|
+
return inputVolumeRef.current = nextVolume, setInputVolumeState(nextVolume), gainNodeRef.current && (gainNodeRef.current.gain.value = nextVolume),
|
|
57
|
+
nextVolume;
|
|
58
|
+
}, [ normalizeInputVolume ]), constraints = React.useCallback((deviceId, usePreferredDevice = !0) => {
|
|
36
59
|
var _a;
|
|
37
60
|
const id = usePreferredDevice ? null !== (_a = null != deviceId ? deviceId : microphoneDeviceId) && void 0 !== _a ? _a : void 0 : deviceId;
|
|
38
61
|
return {
|
|
@@ -43,36 +66,56 @@ exports.useMicrophone = function(startMuted = !0, microphoneDeviceId) {
|
|
|
43
66
|
}
|
|
44
67
|
};
|
|
45
68
|
}, [ microphoneDeviceId ]), requestStream = React.useCallback((deviceId_1, ...args_1) => tslib_es6.__awaiter(this, [ deviceId_1, ...args_1 ], void 0, function*(deviceId, usePreferredDevice = !0) {
|
|
69
|
+
var _a;
|
|
46
70
|
return micStream.current = yield navigator.mediaDevices.getUserMedia(constraints(deviceId, usePreferredDevice)),
|
|
47
|
-
micTrack.current = getMicTrack(), micTrack.current.
|
|
48
|
-
mutedRef.current || (yield waitForTrackToBecomeActive(micTrack.current)),
|
|
49
|
-
|
|
71
|
+
setupAudioProcessing(micStream.current), micTrack.current = getMicTrack(), setCurrentDeviceId(null !== (_a = micTrack.current.getSettings().deviceId) && void 0 !== _a ? _a : null),
|
|
72
|
+
micTrack.current.enabled = !mutedRef.current, mutedRef.current || (yield waitForTrackToBecomeActive(micTrack.current)),
|
|
73
|
+
setIsActive(Boolean("live" === micTrack.current.readyState)), micStream.current;
|
|
74
|
+
}), [ constraints, getMicTrack, setupAudioProcessing, waitForTrackToBecomeActive ]), requestMicrophone = React.useCallback(() => tslib_es6.__awaiter(this, void 0, void 0, function*() {
|
|
75
|
+
if (hasActiveStream()) return setIsActive(!0), setError(null), micStream.current;
|
|
50
76
|
if (setIsRequesting(!0), yield waitForPaint(), !hasMediaSupport) {
|
|
51
|
-
const nextError = new Error("Microphone access
|
|
52
|
-
return setError(nextError), mountedRef.current && setIsRequesting(!1),
|
|
77
|
+
const nextError = new Error("Microphone access isn't supported");
|
|
78
|
+
return setError(nextError), setCurrentDeviceId(null), setIsActive(!1), mountedRef.current && setIsRequesting(!1),
|
|
79
|
+
null;
|
|
53
80
|
}
|
|
54
81
|
setError(null), stopMicStream();
|
|
55
82
|
try {
|
|
56
83
|
return yield requestStream();
|
|
57
84
|
} catch (error) {
|
|
58
85
|
if (!(error instanceof DOMException && "OverconstrainedError" === error.name || error instanceof DOMException && "NotFoundError" === error.name)) {
|
|
59
|
-
|
|
60
|
-
throw
|
|
86
|
+
let nextError = new Error("Failed to access microphone");
|
|
87
|
+
throw error instanceof Error && (error.message.toLowerCase().includes("denied permission") || "NotAllowedError" === error.name) && (nextError = new Error("Permission to access the microphone was denied")),
|
|
88
|
+
setError(nextError), setCurrentDeviceId(null), setIsActive(!1), nextError;
|
|
61
89
|
}
|
|
62
90
|
return yield requestStream(void 0, !1);
|
|
63
91
|
} finally {
|
|
64
92
|
setIsRequesting(!1);
|
|
65
93
|
}
|
|
66
|
-
}), [ hasMediaSupport, requestStream, stopMicStream, waitForPaint ]), refreshMicrophones = React.useCallback(() => tslib_es6.__awaiter(this, void 0, void 0, function*() {
|
|
94
|
+
}), [ hasActiveStream, hasMediaSupport, requestStream, stopMicStream, waitForPaint ]), refreshMicrophones = React.useCallback(() => tslib_es6.__awaiter(this, void 0, void 0, function*() {
|
|
95
|
+
var _a;
|
|
67
96
|
if (!hasMediaSupport) return [];
|
|
68
97
|
try {
|
|
69
|
-
const devices = yield navigator.mediaDevices.enumerateDevices(),
|
|
98
|
+
const devices = yield navigator.mediaDevices.enumerateDevices(), currentDeviceId = null === (_a = micTrack.current) || void 0 === _a ? void 0 : _a.getSettings().deviceId, mics = function(devices, activeDeviceId) {
|
|
99
|
+
const microphones = [ ...devices ], defaultIndex = microphones.findIndex(device => "default" === device.deviceId);
|
|
100
|
+
if (defaultIndex > 0) {
|
|
101
|
+
const [defaultDevice] = microphones.splice(defaultIndex, 1);
|
|
102
|
+
return microphones.unshift(defaultDevice), microphones;
|
|
103
|
+
}
|
|
104
|
+
if (0 === defaultIndex) return microphones;
|
|
105
|
+
if (!activeDeviceId) return microphones;
|
|
106
|
+
const activeIndex = microphones.findIndex(device => device.deviceId === activeDeviceId);
|
|
107
|
+
if (activeIndex > 0) {
|
|
108
|
+
const [activeDevice] = microphones.splice(activeIndex, 1);
|
|
109
|
+
microphones.unshift(activeDevice);
|
|
110
|
+
}
|
|
111
|
+
return microphones;
|
|
112
|
+
}(devices.filter(device => "audioinput" === device.kind), currentDeviceId), options = mics.map(mic => ({
|
|
70
113
|
value: {
|
|
71
114
|
id: mic.deviceId
|
|
72
115
|
},
|
|
73
116
|
label: mic.label
|
|
74
117
|
}));
|
|
75
|
-
return setMicrophones(mics), setMicOptions(options),
|
|
118
|
+
return setMicrophones(mics), setMicOptions(options), mics;
|
|
76
119
|
} catch (error) {
|
|
77
120
|
return console.warn("Error getting microphone devices:", error), setMicrophones([]),
|
|
78
121
|
setMicOptions([]), [];
|
|
@@ -84,7 +127,7 @@ exports.useMicrophone = function(startMuted = !0, microphoneDeviceId) {
|
|
|
84
127
|
try {
|
|
85
128
|
setError(null), stopMicStream(), yield requestStream(id, !1);
|
|
86
129
|
} catch (err) {
|
|
87
|
-
setError(err instanceof Error ? err : new Error("Error switching microphone")),
|
|
130
|
+
setCurrentDeviceId(null), setIsActive(!1), setError(err instanceof Error ? err : new Error("Error switching microphone")),
|
|
88
131
|
console.warn("Error switching microphone:", err);
|
|
89
132
|
} finally {
|
|
90
133
|
setIsRequesting(!1);
|
|
@@ -98,14 +141,16 @@ exports.useMicrophone = function(startMuted = !0, microphoneDeviceId) {
|
|
|
98
141
|
}, [ muted, unmuteMic, muteMic ]);
|
|
99
142
|
return React.useEffect(() => {
|
|
100
143
|
if (mountedRef.current = !0, hasMediaSupport && !initializedRef.current) return initializedRef.current = !0,
|
|
101
|
-
requestMicrophone().then(() => {
|
|
144
|
+
autoRequest ? (requestMicrophone().then(() => {
|
|
102
145
|
startMuted && muteMic();
|
|
103
146
|
}).catch(err => {
|
|
104
147
|
console.error("Error accessing microphone:", err);
|
|
105
148
|
}), () => {
|
|
106
149
|
mountedRef.current = !1, stopMicStream();
|
|
107
|
-
}
|
|
108
|
-
|
|
150
|
+
}) : (refreshMicrophones(), () => {
|
|
151
|
+
mountedRef.current = !1, stopMicStream();
|
|
152
|
+
});
|
|
153
|
+
}, [ autoRequest, hasMediaSupport, refreshMicrophones, requestMicrophone, startMuted, muteMic, stopMicStream ]),
|
|
109
154
|
React.useEffect(() => {
|
|
110
155
|
var _a;
|
|
111
156
|
if (!hasMediaSupport || !(null === (_a = navigator.mediaDevices) || void 0 === _a ? void 0 : _a.addEventListener)) return;
|
|
@@ -125,7 +170,11 @@ exports.useMicrophone = function(startMuted = !0, microphoneDeviceId) {
|
|
|
125
170
|
}, [ hasMediaSupport, microphoneDeviceId, refreshMicrophones, requestMicrophone ]),
|
|
126
171
|
{
|
|
127
172
|
micStream: micStream,
|
|
173
|
+
processedMicStream: processedMicStream,
|
|
128
174
|
micTrack: micTrack,
|
|
175
|
+
currentDeviceId: currentDeviceId,
|
|
176
|
+
isActive: isActive,
|
|
177
|
+
inputVolume: inputVolume,
|
|
129
178
|
muted: muted,
|
|
130
179
|
isSupported: hasMediaSupport,
|
|
131
180
|
isRequesting: isRequesting,
|
|
@@ -137,6 +186,7 @@ exports.useMicrophone = function(startMuted = !0, microphoneDeviceId) {
|
|
|
137
186
|
muteMic: muteMic,
|
|
138
187
|
unmuteMic: unmuteMic,
|
|
139
188
|
toggleMute: toggleMute,
|
|
189
|
+
setInputVolume: setInputVolume,
|
|
140
190
|
refreshMicrophones: refreshMicrophones,
|
|
141
191
|
setMicrophone: setMicrophone
|
|
142
192
|
};
|
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var React = require("react"), theme_themes = require("../theme/themes.js"), theme_colors = require("../theme/colors.js"), theme_type = require("../theme/type.js"), hooks_useObserveTheme = require("./useObserveTheme.js");
|
|
4
|
+
var React = require("react"), providers_ThemeProvider = require("../providers/ThemeProvider.js"), theme_themes = require("../theme/themes.js"), theme_colors = require("../theme/colors.js"), theme_type = require("../theme/type.js"), hooks_useObserveTheme = require("./useObserveTheme.js");
|
|
5
|
+
|
|
6
|
+
function setDocumentTheme(name, system) {
|
|
7
|
+
"undefined" != typeof document && (document.documentElement.dataset.sliceTheme = name,
|
|
8
|
+
document.cookie = `slice-theme=${encodeURIComponent(name)}; path=/; max-age=31536000; samesite=lax`,
|
|
9
|
+
document.cookie = `slice-system-theme=${encodeURIComponent(system)}; path=/; max-age=31536000; samesite=lax`);
|
|
10
|
+
}
|
|
5
11
|
|
|
6
|
-
require("../theme/corners.js"), require("../theme/elevations.js"), require("../theme/motion.js"),
|
|
7
|
-
require("../providers/ThemeProvider.js"), require("react/jsx-runtime"), require("../chunks/style-inject.es-CMuL-BfJ.js"),
|
|
8
|
-
exports.useTheme =
|
|
9
12
|
/**
|
|
10
13
|
* Hook to manage Slice theming
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
*/ require("react/jsx-runtime"), require("../chunks/style-inject.es-CMuL-BfJ.js"),
|
|
15
|
+
require("../theme/corners.js"), require("../theme/elevations.js"), require("../theme/motion.js"),
|
|
16
|
+
exports.useTheme = function() {
|
|
17
|
+
const current = hooks_useObserveTheme.useObserveTheme(), {systemTheme: systemTheme, setSystemTheme: setSystemTheme} = providers_ThemeProvider.useThemeContext(), set = React.useCallback(newTheme => {
|
|
18
|
+
let theme, system = !1;
|
|
15
19
|
if ("string" == typeof newTheme) if ("system" === newTheme) {
|
|
20
|
+
system = !0;
|
|
16
21
|
theme = globalThis.matchMedia("(prefers-color-scheme: dark)").matches ? theme_themes.darkTheme : theme_themes.lightTheme;
|
|
17
22
|
} else theme = newTheme === theme_themes.darkTheme.name ? theme_themes.darkTheme : theme_themes.lightTheme; else theme = newTheme;
|
|
18
|
-
|
|
19
|
-
}, []),
|
|
23
|
+
setSystemTheme(system), setDocumentTheme(theme.name, system);
|
|
24
|
+
}, [ setSystemTheme ]), toggle = React.useCallback(() => {
|
|
25
|
+
const newTheme = current.name === theme_themes.lightTheme.name ? theme_themes.darkTheme : theme_themes.lightTheme;
|
|
26
|
+
setSystemTheme(!1), setDocumentTheme(newTheme.name, !1);
|
|
27
|
+
}, [ current.name, setSystemTheme ]), isDark = React.useMemo(() => current.name === theme_themes.darkTheme.name, [ current ]);
|
|
20
28
|
return {
|
|
21
29
|
/**
|
|
22
30
|
* Slice's default dark theme
|
|
@@ -52,15 +60,16 @@ function() {
|
|
|
52
60
|
*/
|
|
53
61
|
set: set,
|
|
54
62
|
/**
|
|
55
|
-
*
|
|
63
|
+
* Togglebetween light and dark themes
|
|
56
64
|
*/
|
|
57
|
-
toggle:
|
|
58
|
-
const newTheme = current.name === theme_themes.lightTheme.name ? theme_themes.darkTheme : theme_themes.lightTheme;
|
|
59
|
-
document.documentElement.dataset.sliceTheme = newTheme.name;
|
|
60
|
-
},
|
|
65
|
+
toggle: toggle,
|
|
61
66
|
/**
|
|
62
67
|
* If the currently active theme is the Slice's default dark theme'
|
|
63
68
|
*/
|
|
64
|
-
isDark: isDark
|
|
69
|
+
isDark: isDark,
|
|
70
|
+
/**
|
|
71
|
+
* True when the current theme is still being derived from the OS preference
|
|
72
|
+
*/
|
|
73
|
+
systemTheme: systemTheme
|
|
65
74
|
};
|
|
66
75
|
};
|
|
@@ -10,16 +10,19 @@ const hiddenCoords = {
|
|
|
10
10
|
|
|
11
11
|
exports.useToolTip = function(toolTip, tipElement) {
|
|
12
12
|
const [coords, setCoords] = React.useState(hiddenCoords), adjustX = React.useCallback(x => {
|
|
13
|
+
var _a;
|
|
13
14
|
if (x < 10) return 10;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
if (!tipElement.current) return x;
|
|
16
|
+
const maxWidth = globalThis.innerWidth - 10, tipWdithStyle = null !== (_a = globalThis.getComputedStyle(tipElement.current).width) && void 0 !== _a ? _a : 0, endX = x + Number.parseInt(tipWdithStyle.replace("px", ""));
|
|
17
|
+
if (endX > maxWidth) {
|
|
18
|
+
return x - (endX - maxWidth);
|
|
17
19
|
}
|
|
18
20
|
return x;
|
|
19
|
-
}, []), adjustY = React.useCallback((y, parentY) => {
|
|
20
|
-
var _a
|
|
21
|
+
}, [ tipElement ]), adjustY = React.useCallback((y, parentY) => {
|
|
22
|
+
var _a;
|
|
21
23
|
if (y < 10) return 10;
|
|
22
|
-
|
|
24
|
+
if (!tipElement.current) return y;
|
|
25
|
+
const tipHeightStyle = null !== (_a = globalThis.getComputedStyle(tipElement.current).height) && void 0 !== _a ? _a : 0, tipHeight = Number.parseInt(tipHeightStyle.replace("px", ""));
|
|
23
26
|
return y + tipHeight > globalThis.innerHeight - 10 ? parentY - tipHeight - 10 : y;
|
|
24
27
|
}, [ tipElement ]);
|
|
25
28
|
return React.useLayoutEffect(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var React = require("react"), misc = require("../chunks/misc-
|
|
4
|
+
var React = require("react"), misc = require("../chunks/misc-CTl4GDxI.js");
|
|
5
5
|
|
|
6
6
|
require("../chunks/tslib.es6-C8dZW5nY.js"), exports.useTrackRenders =
|
|
7
7
|
/**
|
package/dist/cjs/hooks.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var hooks_useTheme = require("./hooks/useTheme.js"), hooks_useObserveTheme = require("./hooks/useObserveTheme.js"), hooks_useDoubleClick = require("./hooks/useDoubleClick.js"), hooks_useToolTip = require("./hooks/useToolTip.js"), hooks_useKeyboardShortcuts = require("./hooks/useKeyboardShortcuts.js"), hooks_useLastUpdated = require("./hooks/useLastUpdated.js"), hooks_useLocalStore = require("./hooks/useLocalStore.js"), hooks_useMdStreamBuffer = require("./hooks/useMdStreamBuffer.js"), hooks_useMicrophone = require("./hooks/useMicrophone.js"), hooks_useAudioRecorder = require("./hooks/useAudioRecorder.js"), hooks_useWindow = require("./hooks/useWindow.js"), hooks_useObserveResize = require("./hooks/useObserveResize.js");
|
|
4
4
|
|
|
5
|
-
require("react"), require("./
|
|
6
|
-
require("./
|
|
7
|
-
require("./
|
|
8
|
-
require("./chunks/tslib.es6-C8dZW5nY.js"), require("./chunks/MdStreamBuffer-
|
|
5
|
+
require("react"), require("./providers/ThemeProvider.js"), require("react/jsx-runtime"),
|
|
6
|
+
require("./chunks/style-inject.es-CMuL-BfJ.js"), require("./theme/themes.js"), require("./theme/colors.js"),
|
|
7
|
+
require("./theme/corners.js"), require("./theme/elevations.js"), require("./theme/motion.js"),
|
|
8
|
+
require("./theme/type.js"), require("./chunks/tslib.es6-C8dZW5nY.js"), require("./chunks/MdStreamBuffer-CvLO7CVi.js"),
|
|
9
9
|
exports.useTheme = hooks_useTheme.useTheme, exports.useObserveTheme = hooks_useObserveTheme.useObserveTheme,
|
|
10
10
|
exports.useDoubleClick = hooks_useDoubleClick.useDoubleClick, exports.useToolTip = hooks_useToolTip.useToolTip,
|
|
11
11
|
exports.useKeyboardShortcuts = hooks_useKeyboardShortcuts.useKeyboardShortcuts,
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var sharedTypes = require("./chunks/sharedTypes-gCECyn2N.js"), theme_themes = require("./theme/themes.js"), theme_colors = require("./theme/colors.js"), theme_elevations = require("./theme/elevations.js"), theme_motion = require("./theme/motion.js"), hooks_useTheme = require("./hooks/useTheme.js"), hooks_useObserveTheme = require("./hooks/useObserveTheme.js"), hooks_useDoubleClick = require("./hooks/useDoubleClick.js"), hooks_useToolTip = require("./hooks/useToolTip.js"), hooks_useKeyboardShortcuts = require("./hooks/useKeyboardShortcuts.js"), hooks_useLastUpdated = require("./hooks/useLastUpdated.js"), hooks_useLocalStore = require("./hooks/useLocalStore.js"), hooks_useMdStreamBuffer = require("./hooks/useMdStreamBuffer.js"), hooks_useMicrophone = require("./hooks/useMicrophone.js"), hooks_useAudioRecorder = require("./hooks/useAudioRecorder.js"), hooks_useWindow = require("./hooks/useWindow.js"), hooks_useObserveResize = require("./hooks/useObserveResize.js"), AudioBubble = require("./chunks/AudioBubble-
|
|
3
|
+
var sharedTypes = require("./chunks/sharedTypes-gCECyn2N.js"), theme_themes = require("./theme/themes.js"), theme_colors = require("./theme/colors.js"), theme_elevations = require("./theme/elevations.js"), theme_motion = require("./theme/motion.js"), hooks_useTheme = require("./hooks/useTheme.js"), hooks_useObserveTheme = require("./hooks/useObserveTheme.js"), hooks_useDoubleClick = require("./hooks/useDoubleClick.js"), hooks_useToolTip = require("./hooks/useToolTip.js"), hooks_useKeyboardShortcuts = require("./hooks/useKeyboardShortcuts.js"), hooks_useLastUpdated = require("./hooks/useLastUpdated.js"), hooks_useLocalStore = require("./hooks/useLocalStore.js"), hooks_useMdStreamBuffer = require("./hooks/useMdStreamBuffer.js"), hooks_useMicrophone = require("./hooks/useMicrophone.js"), hooks_useAudioRecorder = require("./hooks/useAudioRecorder.js"), hooks_useWindow = require("./hooks/useWindow.js"), hooks_useObserveResize = require("./hooks/useObserveResize.js"), AudioBubble = require("./chunks/AudioBubble-DisHuKIC.js"), Avatar = require("./chunks/Avatar-vIquH-Uk.js"), AvatarGroup = require("./chunks/AvatarGroup-DYN73N5x.js"), Badge = require("./chunks/Badge-DjPJ_iJX.js"), IconButton = require("./chunks/IconButton-Cv-po19M.js"), Camera = require("./chunks/Camera-CCzynmXT.js"), CheckBox = require("./chunks/CheckBox-DNctUlTA.js"), DivInput = require("./chunks/DivInput-932r3bvF.js"), Dot = require("./chunks/Dot-fKIwhjYA.js"), DrggablePanel = require("./chunks/DrggablePanel-u8C-Y4dA.js"), DropDown = require("./chunks/DropDown-BZbrZOkx.js"), ErrorSummary = require("./chunks/ErrorSummary-K_rPxGWK.js"), Grouper = require("./chunks/Grouper-D6rSl9nK.js"), Overlay = require("./chunks/Overlay-DDOvMM6L.js"), FlexDiv = require("./chunks/FlexDiv-D4aSJC_G.js"), Pager = require("./chunks/Pager-GH2y7l5h.js"), PromptInput = require("./chunks/PromptInput-C8-V67sS.js"), ProgressIndicator = require("./chunks/ProgressIndicator-7pLk4Dvn.js"), RadioButton = require("./chunks/RadioButton-3CzhKBn6.js"), RadioButtonList = require("./chunks/RadioButtonList-DvJV6Qdg.js"), Slider = require("./chunks/Slider-D8OYGFsN.js"), Spacer = require("./chunks/Spacer-CyZAUR5N.js"), Switch = require("./chunks/Switch-Crm-nHYI.js"), ToggleButton = require("./chunks/ToggleButton-BdCsChJM.js"), TabBar = require("./chunks/TabBar-VzxuAesC.js"), TextArea = require("./chunks/TextArea-CBNHvcK3.js"), TextField = require("./chunks/TextField-BpoLF6pZ.js"), providers_ThemeProvider = require("./providers/ThemeProvider.js"), Tip = require("./chunks/Tip-CUKFhP9K.js"), Toast = require("./chunks/Toast-CKqGjsEk.js"), Button = require("./chunks/Button-B1qbfQgN.js"), Chip = require("./chunks/Chip-BN4qBz6w.js"), FileIcon = require("./chunks/FileIcon-Dxn9OL10.js"), Icon = require("./chunks/Icon-BFiN8Wzm.js"), _types = require("./chunks/_types-Bdqd2vHh.js"), ButtonBar = require("./chunks/ButtonBar-zpC3sClM.js"), Label = require("./chunks/Label-BQ6flU4-.js"), UploadArea = require("./chunks/UploadArea-M9oc-No2.js");
|
|
4
4
|
|
|
5
5
|
require("./theme/corners.js"), require("./theme/type.js"), require("react"), require("./chunks/tslib.es6-C8dZW5nY.js"),
|
|
6
|
-
require("./chunks/MdStreamBuffer-
|
|
6
|
+
require("./chunks/MdStreamBuffer-CvLO7CVi.js"), require("react/jsx-runtime"), require("./chunks/colors-njquvHkx.js"),
|
|
7
7
|
require("./chunks/audioVisualizer-EIfIjWH7.js"), require("./chunks/style-inject.es-CMuL-BfJ.js"),
|
|
8
|
-
require("./chunks/misc-
|
|
8
|
+
require("./chunks/misc-CTl4GDxI.js"), require("motion/react"), require("./chunks/FileList-D5_igVaC.js"),
|
|
9
9
|
require("./chunks/debounce-BF4i6uIC.js"), Object.defineProperty(exports, "ToolTipType", {
|
|
10
10
|
enumerable: !0,
|
|
11
11
|
get: function() {
|
|
@@ -40,9 +40,9 @@ Object.defineProperty(exports, "Preset", {
|
|
|
40
40
|
exports.DoneCheck = ProgressIndicator.DoneCheck, exports.ProgressIndicator = ProgressIndicator.ProgressIndicator,
|
|
41
41
|
exports.RadioButton = RadioButton.RadioButton, exports.RadioButtonList = RadioButtonList.RadioButtonList,
|
|
42
42
|
exports.Slider = Slider.Slider, exports.Spacer = Spacer.Spacer, exports.Switch = Switch.Switch,
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.Toast = Toast.Toast, Object.defineProperty(exports, "ToastType", {
|
|
43
|
+
exports.ToggleButton = ToggleButton.ToggleButton, exports.TabBar = TabBar.TabBar,
|
|
44
|
+
exports.TextArea = TextArea.TextArea, exports.TextField = TextField.TextField, exports.ThemeProvider = providers_ThemeProvider.ThemeProvider,
|
|
45
|
+
exports.Tip = Tip.Tip, exports.Toast = Toast.Toast, Object.defineProperty(exports, "ToastType", {
|
|
46
46
|
enumerable: !0,
|
|
47
47
|
get: function() {
|
|
48
48
|
return Toast.ToastType;
|
|
@@ -6,11 +6,11 @@ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), styleIn
|
|
|
6
6
|
require("../theme/colors.js"), require("../theme/corners.js"), require("../theme/elevations.js"),
|
|
7
7
|
require("../theme/motion.js"), require("../theme/type.js");
|
|
8
8
|
|
|
9
|
-
styleInject_es.styleInject('/* Core brand colors (un-themed) */\n[data-slice-theme-scope] {\n\t--brand-grey-50: #f4f7fa;\n\t--brand-grey-100: #e5ecf3;\n\t--brand-grey-200: #d5e0ea;\n\t--brand-grey-300: #98acbf;\n\t--brand-grey-400: #7f96a9;\n\t--brand-grey-500: #657d91;\n\t--brand-grey-600: #4c6273;\n\t--brand-grey-700: #405261;\n\t--brand-grey-800: #37434e;\n\t--brand-grey-900: #2d353d;\n\t--brand-grey-950: #1f262d;\n\t--brand-sea-50: #e8f1ff;\n\t--brand-sea-100: #c7defe;\n\t--brand-sea-200: #a5c9ff;\n\t--brand-sea-300: #7ab3ff;\n\t--brand-sea-400: #4084ff;\n\t--brand-sea-500: #2f45ff;\n\t--brand-sea-600: #2d2fff;\n\t--brand-sea-700: #0000ff;\n\t--brand-sea-800: #0609cd;\n\t--brand-sea-900: #001699;\n\t--brand-sea-950: #0a0b5c;\n\t--brand-sky-50: #eafffe;\n\t--brand-sky-100: #cdfffb;\n\t--brand-sky-200: #a3f8ff;\n\t--brand-sky-300: #6af5ff;\n\t--brand-sky-400: #00edff;\n\t--brand-sky-500: #00c8e0;\n\t--brand-sky-600: #00a6c0;\n\t--brand-sky-700: #03839b;\n\t--brand-sky-800: #0d697d;\n\t--brand-sky-900: #105669;\n\t--brand-sky-950: #033949;\n\t--brand-land-50: #f4ffe5;\n\t--brand-land-100: #e0ffb7;\n\t--brand-land-200: #caff95;\n\t--brand-land-300: #b7fe59;\n\t--brand-land-400: #9cf820;\n\t--brand-land-500: #71e618;\n\t--brand-land-600: #56c900;\n\t--brand-land-700: #2d8c00;\n\t--brand-land-800: #31690b;\n\t--brand-land-900: #2a580f;\n\t--brand-land-950: #123201;\n\t--brand-orange-50: #fff8ec;\n\t--brand-orange-100: #ffebd7;\n\t--brand-orange-200: #ffe3c6;\n\t--brand-orange-300: #ffc182;\n\t--brand-orange-400: #ff972e;\n\t--brand-orange-500: #ff800a;\n\t--brand-orange-600: #ff6700;\n\t--brand-orange-700: #ff3700;\n\t--brand-orange-800: #a02b0b;\n\t--brand-orange-900: #80250b;\n\t--brand-orange-950: #461604;\n\t--brand-yellow-50: #ffffea;\n\t--brand-yellow-100: #fffdca;\n\t--brand-yellow-200: #fff2a0;\n\t--brand-yellow-300: #ffeb72;\n\t--brand-yellow-400: #ffd333;\n\t--brand-yellow-500: #ffc200;\n\t--brand-yellow-600: #ffad00;\n\t--brand-yellow-700: #c68601;\n\t--brand-yellow-800: #8f6307;\n\t--brand-yellow-900: #5f430a;\n\t--brand-yellow-950: #442e00;\n\t--brand-purple-50: #faf0ff;\n\t--brand-purple-100: #f4ddff;\n\t--brand-purple-200: #e5cdff;\n\t--brand-purple-300: #ccafff;\n\t--brand-purple-400: #b891ff;\n\t--brand-purple-500: #7d48ff;\n\t--brand-purple-600: #6a14ff;\n\t--brand-purple-700: #5600f1;\n\t--brand-purple-800: #4d01d6;\n\t--brand-purple-900: #4003af;\n\t--brand-purple-950: #1e007c;\n\t--brand-magenta-50: #fef1fc;\n\t--brand-magenta-100: #ffdcef;\n\t--brand-magenta-200: #ffcae6;\n\t--brand-magenta-300: #ff90cb;\n\t--brand-magenta-400: #ff61ca;\n\t--brand-magenta-500: #ff3ac2;\n\t--brand-magenta-600: #f012aa;\n\t--brand-magenta-700: #df059b;\n\t--brand-magenta-800: #9b0069;\n\t--brand-magenta-900: #790a55;\n\t--brand-magenta-950: #58003a;\n\t--brand-white-0: #ffffff;\n\t--product-red-400: #ff474a;\n\t--product-red-500: #df0529;\n\n\t/* Non-brand semantic aliases */\n\t--core-drop-shadow-light: #0339491a;\n\t--core-drop-shadow-dark: #0000007a;\n\t--core-surface-coverup-translucent-light: #1f262d52;\n\t--core-surface-coverup-translucent-dark: #0000007a;\n\t--core-surface-overlay-translucent-light: #ffffffcc;\n\t--core-surface-overlay-translucent-dark: #1f262dcc;\n\t--scroll-bar-light: #e3e8ef;\n\t--scroll-bar-dark: rgba(255, 255, 255, 0.1);\n\t--scroll-bar-hover-light: #cdd5df;\n\t--scroll-bar-hover-dark: rgba(255, 255, 255, 0.15);\n\t--surface-shadow-soft-light: 0px 4px 24px #0339491a;\n\t--surface-shadow-soft-dark: 0px 4px 24px #0000007a;\n\t--surface-shadow-strong-light: 0px 4px 64px #0339491a;\n\t--surface-shadow-strong-dark: 0px 4px 64px #0000007a;\n}\n\n/* Root-level token needed for global viewport backgrounds */\n:root[data-slice-theme="lightMode"] {\n\t--core-surface-primary: #ffffff;\n}\n\n/* Light theme tokens */\n:root[data-slice-theme="lightMode"] [data-slice-theme-scope] {\n\t--array-land: var(--brand-land-100);\n\t--array-land-label: var(--brand-land-600);\n\t--array-magenta: var(--brand-magenta-100);\n\t--array-magenta-label: var(--brand-magenta-600);\n\t--array-orange: var(--brand-orange-100);\n\t--array-orange-label: var(--brand-orange-600);\n\t--array-purple: var(--brand-purple-100);\n\t--array-purple-label: var(--brand-purple-600);\n\t--array-sea: var(--brand-sea-100);\n\t--array-sea-label: var(--brand-sea-600);\n\t--array-sky: var(--brand-sky-100);\n\t--array-sky-label: var(--brand-sky-600);\n\t--array-yellow: var(--brand-yellow-100);\n\t--array-yellow-label: var(--brand-yellow-600);\n\t--core-badge-primary: var(--brand-sea-500);\n\t--core-badge-secondary: var(--brand-grey-100);\n\t--core-button-disabled: var(--brand-grey-50);\n\t--core-button-primary: var(--brand-sea-500);\n\t--core-drop-shadow: var(--core-drop-shadow-light);\n\t--core-gp-logo-primary: var(--brand-sea-700);\n\t--core-gp-logo-secondary: var(--brand-grey-950);\n\t--core-icon-dark: var(--brand-grey-950);\n\t--core-icon-disabled: var(--brand-grey-300);\n\t--core-icon-error: var(--product-red-500);\n\t--core-icon-light: var(--brand-white-0);\n\t--core-icon-primary: var(--brand-grey-950);\n\t--core-icon-secondary: var(--brand-grey-700);\n\t--core-icon-tertiary: var(--brand-sea-500);\n\t--core-outline-secondary: var(--brand-grey-700);\n\t--core-outline-primary: var(--brand-grey-100);\n\t--core-outline-special: var(--brand-sea-100);\n\t--core-outline-tertiary: var(--brand-sea-500);\n\t--core-surface-coverup-translucent: var(\n\t\t--core-surface-coverup-translucent-light\n\t);\n\t--core-surface-overlay-translucent: var(\n\t\t--core-surface-overlay-translucent-light\n\t);\n\t--core-surface-primary: var(--brand-white-0);\n\t--core-surface-secondary: var(--brand-grey-50);\n\t--core-surface-special: var(--brand-sea-50);\n\t--core-text-dark: var(--brand-grey-950);\n\t--core-text-disabled: var(--brand-grey-300);\n\t--core-text-error: var(--product-red-500);\n\t--core-text-light: var(--brand-white-0);\n\t--core-text-primary: var(--brand-grey-950);\n\t--core-text-secondary: var(--brand-grey-700);\n\t--core-text-tertiary: var(--brand-grey-600);\n\t--core-text-special: var(--brand-sea-500);\n\t--core-link-primary: var(--brand-sea-700);\n\t--eor-tag-employee: var(--brand-sky-700);\n\t--eor-tag-overdue: var(--product-red-500);\n\t--eor-tag-paid: var(--brand-land-700);\n\t--eor-tag-pending: var(--brand-orange-500);\n\t--eor-tag-professional: var(--brand-sea-500);\n\t--feedback-attention: var(--brand-yellow-500);\n\t--feedback-informative: var(--brand-sky-700);\n\t--feedback-positive: var(--brand-land-700);\n\t--feedback-urgency: var(--brand-orange-500);\n\t--feedback-warning: var(--product-red-500);\n\t--gia-tag-risk-high: var(--product-red-500);\n\t--gia-tag-risk-low: var(--brand-sky-700);\n\t--gia-tag-risk-moderate: var(--brand-orange-500);\n\t--gia-text-excerpt-highlight: var(--brand-orange-100);\n\t--gia-text-selection: var(--brand-sea-100);\n\t--scroll-bar: var(--scroll-bar-light);\n\t--scroll-bar-hover: var(--scroll-bar-hover-light);\n\t--surface-shadow-soft: var(--surface-shadow-soft-light);\n\t--surface-shadow-strong: var(--surface-shadow-strong-light);\n}\n\n/* Root-level token needed for global viewport backgrounds */\n:root[data-slice-theme="darkMode"] {\n\t--core-surface-primary: #1f262d;\n}\n\n/* Dark theme tokens */\n:root[data-slice-theme="darkMode"] [data-slice-theme-scope] {\n\t--array-land: var(--brand-land-100);\n\t--array-land-label: var(--brand-land-600);\n\t--array-magenta: var(--brand-magenta-100);\n\t--array-magenta-label: var(--brand-magenta-600);\n\t--array-orange: var(--brand-orange-100);\n\t--array-orange-label: var(--brand-orange-600);\n\t--array-purple: var(--brand-purple-100);\n\t--array-purple-label: var(--brand-purple-600);\n\t--array-sea: var(--brand-sea-100);\n\t--array-sea-label: var(--brand-sea-600);\n\t--array-sky: var(--brand-sky-100);\n\t--array-sky-label: var(--brand-sky-600);\n\t--array-yellow: var(--brand-yellow-100);\n\t--array-yellow-label: var(--brand-yellow-600);\n\t--core-badge-primary: var(--brand-sea-500);\n\t--core-badge-secondary: var(--brand-grey-700);\n\t--core-button-disabled: var(--brand-grey-900);\n\t--core-button-primary: var(--brand-sea-500);\n\t--core-drop-shadow: var(--core-drop-shadow-dark);\n\t--core-gp-logo-primary: var(--brand-sea-500);\n\t--core-gp-logo-secondary: var(--brand-white-0);\n\t--core-icon-dark: var(--brand-grey-950);\n\t--core-icon-disabled: var(--brand-grey-500);\n\t--core-icon-error: var(--product-red-400);\n\t--core-icon-light: var(--brand-white-0);\n\t--core-icon-primary: var(--brand-white-0);\n\t--core-icon-secondary: var(--brand-grey-200);\n\t--core-icon-tertiary: var(--brand-sky-300);\n\t--core-outline-secondary: var(--brand-grey-100);\n\t--core-outline-primary: var(--brand-grey-700);\n\t--core-outline-special: var(--brand-sky-300);\n\t--core-outline-tertiary: var(--brand-sky-300);\n\t--core-surface-coverup-translucent: var(\n\t\t--core-surface-coverup-translucent-dark\n\t);\n\t--core-surface-overlay-translucent: var(\n\t\t--core-surface-overlay-translucent-dark\n\t);\n\t--core-surface-primary: var(--brand-grey-950);\n\t--core-surface-secondary: var(--brand-grey-900);\n\t--core-surface-special: var(--brand-sky-950);\n\t--core-text-dark: var(--brand-grey-950);\n\t--core-text-disabled: var(--brand-grey-500);\n\t--core-text-error: var(--product-red-400);\n\t--core-text-light: var(--brand-white-0);\n\t--core-text-primary: var(--brand-white-0);\n\t--core-text-secondary: var(--brand-grey-200);\n\t--core-text-tertiary: var(--brand-grey-400);\n\t--core-text-special: var(--brand-sky-300);\n\t--core-link-primary: var(--brand-sky-300);\n\t--eor-tag-employee: var(--brand-sky-700);\n\t--eor-tag-overdue: var(--product-red-400);\n\t--eor-tag-paid: var(--brand-land-700);\n\t--eor-tag-pending: var(--brand-orange-500);\n\t--eor-tag-professional: var(--brand-sea-500);\n\t--feedback-attention: var(--brand-yellow-400);\n\t--feedback-informative: var(--brand-sky-600);\n\t--feedback-positive: var(--brand-land-700);\n\t--feedback-urgency: var(--brand-orange-500);\n\t--feedback-warning: var(--product-red-400);\n\t--gia-tag-risk-high: var(--product-red-400);\n\t--gia-tag-risk-low: var(--brand-sky-600);\n\t--gia-tag-risk-moderate: var(--brand-orange-500);\n\t--gia-text-excerpt-highlight: var(--brand-orange-100);\n\t--gia-text-selection: var(--brand-sea-900);\n\t--scroll-bar: var(--scroll-bar-dark);\n\t--scroll-bar-hover: var(--scroll-bar-hover-dark);\n\t--surface-shadow-soft: var(--surface-shadow-soft-dark);\n\t--surface-shadow-strong: var(--surface-shadow-strong-dark);\n}\n\n/* Theme token text-color utility classes */\n[data-slice-theme-scope] .array-land {\n\tbackground: var(--array-land);\n}\n[data-slice-theme-scope] .array-land-label {\n\tcolor: var(--array-land-label);\n}\n[data-slice-theme-scope] .array-magenta {\n\tbackground: var(--array-magenta);\n}\n[data-slice-theme-scope] .array-magenta-label {\n\tcolor: var(--array-magenta-label);\n}\n[data-slice-theme-scope] .array-orange {\n\tbackground: var(--array-orange);\n}\n[data-slice-theme-scope] .array-orange-label {\n\tcolor: var(--array-orange-label);\n}\n[data-slice-theme-scope] .array-purple {\n\tbackground: var(--array-purple);\n}\n[data-slice-theme-scope] .array-purple-label {\n\tcolor: var(--array-purple-label);\n}\n[data-slice-theme-scope] .array-sea {\n\tbackground: var(--array-sea);\n}\n[data-slice-theme-scope] .array-sea-label {\n\tcolor: var(--array-sea-label);\n}\n[data-slice-theme-scope] .array-sky {\n\tbackground: var(--array-sky);\n}\n[data-slice-theme-scope] .array-sky-label {\n\tcolor: var(--array-sky-label);\n}\n[data-slice-theme-scope] .array-yellow {\n\tbackground: var(--array-yellow);\n}\n[data-slice-theme-scope] .array-yellow-label {\n\tcolor: var(--array-yellow-label);\n}\n[data-slice-theme-scope] .core-badge-primary {\n\tbackground: var(--core-badge-primary);\n}\n[data-slice-theme-scope] .core-badge-secondary {\n\tbackground: var(--core-badge-secondary);\n}\n[data-slice-theme-scope] .core-button-disabled {\n\tbackground: var(--core-button-disabled);\n}\n[data-slice-theme-scope] .core-button-primary {\n\tbackground: var(--core-button-primary);\n}\n[data-slice-theme-scope] .core-drop-shadow {\n\tbox-shadow: var(--core-drop-shadow);\n}\n[data-slice-theme-scope] .core-gp-logo-primary {\n\tcolor: var(--core-gp-logo-primary);\n}\n[data-slice-theme-scope] .core-gp-logo-secondary {\n\tcolor: var(--core-gp-logo-secondary);\n}\n[data-slice-theme-scope] .core-icon-dark {\n\tcolor: var(--core-icon-dark);\n}\n[data-slice-theme-scope] .core-icon-disabled {\n\tcolor: var(--core-icon-disabled);\n}\n[data-slice-theme-scope] .core-icon-error {\n\tcolor: var(--core-icon-error);\n}\n[data-slice-theme-scope] .core-icon-light {\n\tcolor: var(--core-icon-light);\n}\n[data-slice-theme-scope] .core-icon-primary {\n\tcolor: var(--core-icon-primary);\n}\n[data-slice-theme-scope] .core-icon-secondary {\n\tcolor: var(--core-icon-secondary);\n}\n[data-slice-theme-scope] .core-icon-tertiary {\n\tcolor: var(--core-icon-tertiary);\n}\n[data-slice-theme-scope] .core-link-primary {\n\tcolor: var(--core-link-primary);\n}\n[data-slice-theme-scope] .core-outline-primary {\n\tborder-color: var(--core-outline-primary);\n}\n[data-slice-theme-scope] .core-outline-secondary {\n\tborder-color: var(--core-outline-secondary);\n}\n[data-slice-theme-scope] .core-outline-special {\n\tborder-color: var(--core-outline-special);\n}\n[data-slice-theme-scope] .core-outline-tertiary {\n\tborder-color: var(--core-outline-tertiary);\n}\n[data-slice-theme-scope] .core-surface-coverup-translucent {\n\tbackground: var(--core-surface-coverup-translucent);\n}\n[data-slice-theme-scope] .core-surface-overlay-translucent {\n\tbackground: var(--core-surface-overlay-translucent);\n}\n[data-slice-theme-scope] .core-surface-primary {\n\tbackground: var(--core-surface-primary);\n}\n[data-slice-theme-scope] .core-surface-secondary {\n\tbackground: var(--core-surface-secondary);\n}\n[data-slice-theme-scope] .core-surface-special {\n\tbackground: var(--core-surface-special);\n}\n[data-slice-theme-scope] .core-text-dark {\n\tcolor: var(--core-text-dark);\n}\n[data-slice-theme-scope] .core-text-disabled {\n\tcolor: var(--core-text-disabled);\n}\n[data-slice-theme-scope] .core-text-error {\n\tcolor: var(--core-text-error);\n}\n[data-slice-theme-scope] .core-text-light {\n\tcolor: var(--core-text-light);\n}\n[data-slice-theme-scope] .core-text-primary {\n\tcolor: var(--core-text-primary);\n}\n[data-slice-theme-scope] .core-text-secondary {\n\tcolor: var(--core-text-secondary);\n}\n[data-slice-theme-scope] .core-text-special {\n\tcolor: var(--core-text-special);\n}\n[data-slice-theme-scope] .core-text-tertiary {\n\tcolor: var(--core-text-tertiary);\n}\n[data-slice-theme-scope] .eor-tag-employee {\n\tcolor: var(--eor-tag-employee);\n}\n[data-slice-theme-scope] .eor-tag-overdue {\n\tcolor: var(--eor-tag-overdue);\n}\n[data-slice-theme-scope] .eor-tag-paid {\n\tcolor: var(--eor-tag-paid);\n}\n[data-slice-theme-scope] .eor-tag-pending {\n\tcolor: var(--eor-tag-pending);\n}\n[data-slice-theme-scope] .eor-tag-professional {\n\tcolor: var(--eor-tag-professional);\n}\n[data-slice-theme-scope] .feedback-attention {\n\tcolor: var(--feedback-attention);\n}\n[data-slice-theme-scope] .feedback-informative {\n\tcolor: var(--feedback-informative);\n}\n[data-slice-theme-scope] .feedback-positive {\n\tcolor: var(--feedback-positive);\n}\n[data-slice-theme-scope] .feedback-urgency {\n\tcolor: var(--feedback-urgency);\n}\n[data-slice-theme-scope] .feedback-warning {\n\tcolor: var(--feedback-warning);\n}\n[data-slice-theme-scope] .gia-tag-risk-high {\n\tcolor: var(--gia-tag-risk-high);\n}\n[data-slice-theme-scope] .gia-tag-risk-low {\n\tcolor: var(--gia-tag-risk-low);\n}\n[data-slice-theme-scope] .gia-tag-risk-moderate {\n\tcolor: var(--gia-tag-risk-moderate);\n}\n[data-slice-theme-scope] .gia-text-excerpt-highlight {\n\tcolor: var(--gia-text-excerpt-highlight);\n}\n[data-slice-theme-scope] .gia-text-selection {\n\tcolor: var(--gia-text-selection);\n}\n[data-slice-theme-scope] .scroll-bar {\n\tcolor: var(--scroll-bar);\n}\n[data-slice-theme-scope] .scroll-bar-hover {\n\tcolor: var(--scroll-bar-hover);\n}\n[data-slice-theme-scope] .surface-shadow-soft {\n\tcolor: var(--surface-shadow-soft);\n}\n[data-slice-theme-scope] .surface-shadow-strong {\n\tcolor: var(--surface-shadow-strong);\n}\n\n[data-slice-theme-scope] {\n\tbackground: var(--core-surface-primary);\n}\n\n[data-slice-theme-scope] a {\n\tcolor: var(--core-text-special);\n\ttext-decoration: underline;\n}\n\n[data-slice-theme-scope] a:visited {\n\tcolor: var(--core-text-special);\n\ttext-decoration: underline;\n}\n\n[data-slice-theme-scope] a:hover {\n\ttext-decoration: none;\n}\n\n[data-slice-theme-scope] code {\n\tborder: 1px solid var(--core-outline-primary);\n\tbackground: var(--core-surface-secondary);\n\tcolor: var(--core-text-primary);\n}\n');
|
|
9
|
+
styleInject_es.styleInject('/* Core brand colors (un-themed) */\n[data-slice-theme-scope] {\n\t--brand-grey-50: #f4f7fa;\n\t--brand-grey-100: #e5ecf3;\n\t--brand-grey-200: #d5e0ea;\n\t--brand-grey-300: #98acbf;\n\t--brand-grey-400: #7f96a9;\n\t--brand-grey-500: #657d91;\n\t--brand-grey-600: #4c6273;\n\t--brand-grey-700: #405261;\n\t--brand-grey-800: #37434e;\n\t--brand-grey-900: #2d353d;\n\t--brand-grey-950: #1f262d;\n\t--brand-sea-50: #e8f1ff;\n\t--brand-sea-100: #c7defe;\n\t--brand-sea-200: #a5c9ff;\n\t--brand-sea-300: #7ab3ff;\n\t--brand-sea-400: #4084ff;\n\t--brand-sea-500: #2f45ff;\n\t--brand-sea-600: #2d2fff;\n\t--brand-sea-700: #0000ff;\n\t--brand-sea-800: #0609cd;\n\t--brand-sea-900: #001699;\n\t--brand-sea-950: #0a0b5c;\n\t--brand-sky-50: #eafffe;\n\t--brand-sky-100: #cdfffb;\n\t--brand-sky-200: #a3f8ff;\n\t--brand-sky-300: #6af5ff;\n\t--brand-sky-400: #00edff;\n\t--brand-sky-500: #00c8e0;\n\t--brand-sky-600: #00a6c0;\n\t--brand-sky-700: #03839b;\n\t--brand-sky-800: #0d697d;\n\t--brand-sky-900: #105669;\n\t--brand-sky-950: #033949;\n\t--brand-land-50: #f4ffe5;\n\t--brand-land-100: #e0ffb7;\n\t--brand-land-200: #caff95;\n\t--brand-land-300: #b7fe59;\n\t--brand-land-400: #9cf820;\n\t--brand-land-500: #71e618;\n\t--brand-land-600: #56c900;\n\t--brand-land-700: #2d8c00;\n\t--brand-land-800: #31690b;\n\t--brand-land-900: #2a580f;\n\t--brand-land-950: #123201;\n\t--brand-orange-50: #fff8ec;\n\t--brand-orange-100: #ffebd7;\n\t--brand-orange-200: #ffe3c6;\n\t--brand-orange-300: #ffc182;\n\t--brand-orange-400: #ff972e;\n\t--brand-orange-500: #ff800a;\n\t--brand-orange-600: #ff6700;\n\t--brand-orange-700: #ff3700;\n\t--brand-orange-800: #a02b0b;\n\t--brand-orange-900: #80250b;\n\t--brand-orange-950: #461604;\n\t--brand-yellow-50: #ffffea;\n\t--brand-yellow-100: #fffdca;\n\t--brand-yellow-200: #fff2a0;\n\t--brand-yellow-300: #ffeb72;\n\t--brand-yellow-400: #ffd333;\n\t--brand-yellow-500: #ffc200;\n\t--brand-yellow-600: #ffad00;\n\t--brand-yellow-700: #c68601;\n\t--brand-yellow-800: #8f6307;\n\t--brand-yellow-900: #5f430a;\n\t--brand-yellow-950: #442e00;\n\t--brand-purple-50: #faf0ff;\n\t--brand-purple-100: #f4ddff;\n\t--brand-purple-200: #e5cdff;\n\t--brand-purple-300: #ccafff;\n\t--brand-purple-400: #b891ff;\n\t--brand-purple-500: #7d48ff;\n\t--brand-purple-600: #6a14ff;\n\t--brand-purple-700: #5600f1;\n\t--brand-purple-800: #4d01d6;\n\t--brand-purple-900: #4003af;\n\t--brand-purple-950: #1e007c;\n\t--brand-magenta-50: #fef1fc;\n\t--brand-magenta-100: #ffdcef;\n\t--brand-magenta-200: #ffcae6;\n\t--brand-magenta-300: #ff90cb;\n\t--brand-magenta-400: #ff61ca;\n\t--brand-magenta-500: #ff3ac2;\n\t--brand-magenta-600: #f012aa;\n\t--brand-magenta-700: #df059b;\n\t--brand-magenta-800: #9b0069;\n\t--brand-magenta-900: #790a55;\n\t--brand-magenta-950: #58003a;\n\t--brand-white-0: #ffffff;\n\t--product-red-400: #ff474a;\n\t--product-red-500: #df0529;\n\n\t/* Non-brand semantic aliases */\n\t--core-drop-shadow-light: #0339491a;\n\t--core-drop-shadow-dark: #0000007a;\n\t--core-surface-coverup-translucent-light: #1f262d52;\n\t--core-surface-coverup-translucent-dark: #0000007a;\n\t--core-surface-overlay-translucent-light: #ffffffcc;\n\t--core-surface-overlay-translucent-dark: #1f262dcc;\n\t--scroll-bar-light: #e3e8ef;\n\t--scroll-bar-dark: rgba(255, 255, 255, 0.1);\n\t--scroll-bar-hover-light: #cdd5df;\n\t--scroll-bar-hover-dark: rgba(255, 255, 255, 0.15);\n\t--surface-primary-tint-light: #fcfcfc;\n\t--surface-primary-tint-dark: #191e24;\n\t--surface-shadow-soft-light: 0px 4px 24px #0339491a;\n\t--surface-shadow-soft-dark: 0px 4px 24px #0000007a;\n\t--surface-shadow-strong-light: 0px 4px 64px #0339491a;\n\t--surface-shadow-strong-dark: 0px 4px 64px #0000007a;\n}\n\n/* Root-level token needed for global viewport backgrounds */\n:root[data-slice-theme="lightMode"] {\n\t--core-surface-primary: #ffffff;\n}\n\n/* Light theme tokens */\n:root[data-slice-theme="lightMode"] [data-slice-theme-scope] {\n\t--array-land: var(--brand-land-100);\n\t--array-land-label: var(--brand-land-600);\n\t--array-magenta: var(--brand-magenta-100);\n\t--array-magenta-label: var(--brand-magenta-600);\n\t--array-orange: var(--brand-orange-100);\n\t--array-orange-label: var(--brand-orange-600);\n\t--array-purple: var(--brand-purple-100);\n\t--array-purple-label: var(--brand-purple-600);\n\t--array-sea: var(--brand-sea-100);\n\t--array-sea-label: var(--brand-sea-600);\n\t--array-sky: var(--brand-sky-100);\n\t--array-sky-label: var(--brand-sky-600);\n\t--array-yellow: var(--brand-yellow-100);\n\t--array-yellow-label: var(--brand-yellow-600);\n\t--core-badge-primary: var(--brand-sea-500);\n\t--core-badge-secondary: var(--brand-grey-100);\n\t--core-button-disabled: var(--brand-grey-50);\n\t--core-button-primary: var(--brand-sea-500);\n\t--core-drop-shadow: var(--core-drop-shadow-light);\n\t--core-gp-logo-primary: var(--brand-sea-700);\n\t--core-gp-logo-secondary: var(--brand-grey-950);\n\t--core-icon-dark: var(--brand-grey-950);\n\t--core-icon-disabled: var(--brand-grey-300);\n\t--core-icon-error: var(--product-red-500);\n\t--core-icon-light: var(--brand-white-0);\n\t--core-icon-primary: var(--brand-grey-950);\n\t--core-icon-secondary: var(--brand-grey-700);\n\t--core-icon-tertiary: var(--brand-sea-500);\n\t--core-outline-secondary: var(--brand-grey-100);\n\t--core-outline-primary: var(--brand-grey-100);\n\t--core-outline-special: var(--brand-sea-100);\n\t--core-outline-tertiary: var(--brand-sea-500);\n\t--core-surface-coverup-translucent: var(\n\t\t--core-surface-coverup-translucent-light\n\t);\n\t--core-surface-overlay-translucent: var(\n\t\t--core-surface-overlay-translucent-light\n\t);\n\t--core-surface-primary: var(--brand-white-0);\n\t--core-surface-primary-tint: var(--surface-primary-tint-light);\n\t--core-surface-secondary: var(--brand-grey-50);\n\t--core-surface-special: var(--brand-sea-50);\n\t--core-text-dark: var(--brand-grey-950);\n\t--core-text-disabled: var(--brand-grey-300);\n\t--core-text-error: var(--product-red-500);\n\t--core-text-light: var(--brand-white-0);\n\t--core-text-primary: var(--brand-grey-950);\n\t--core-text-secondary: var(--brand-grey-700);\n\t--core-text-tertiary: var(--brand-grey-600);\n\t--core-text-special: var(--brand-sea-500);\n\t--core-link-primary: var(--brand-sea-700);\n\t--eor-tag-employee: var(--brand-sky-700);\n\t--eor-tag-overdue: var(--product-red-500);\n\t--eor-tag-paid: var(--brand-land-700);\n\t--eor-tag-pending: var(--brand-orange-500);\n\t--eor-tag-professional: var(--brand-sea-500);\n\t--feedback-attention: var(--brand-yellow-500);\n\t--feedback-informative: var(--brand-sky-700);\n\t--feedback-positive: var(--brand-land-700);\n\t--feedback-urgency: var(--brand-orange-500);\n\t--feedback-warning: var(--product-red-500);\n\t--gia-tag-risk-high: var(--product-red-500);\n\t--gia-tag-risk-low: var(--brand-sky-700);\n\t--gia-tag-risk-moderate: var(--brand-orange-500);\n\t--gia-text-excerpt-highlight: var(--brand-orange-100);\n\t--gia-text-selection: var(--brand-sea-100);\n\t--scroll-bar: var(--scroll-bar-light);\n\t--scroll-bar-hover: var(--scroll-bar-hover-light);\n\t--surface-shadow-soft: var(--surface-shadow-soft-light);\n\t--surface-shadow-strong: var(--surface-shadow-strong-light);\n}\n\n/* Root-level token needed for global viewport backgrounds */\n:root[data-slice-theme="darkMode"] {\n\t--core-surface-primary: #1f262d;\n}\n\n/* Dark theme tokens */\n:root[data-slice-theme="darkMode"] [data-slice-theme-scope] {\n\t--array-land: var(--brand-land-100);\n\t--array-land-label: var(--brand-land-600);\n\t--array-magenta: var(--brand-magenta-100);\n\t--array-magenta-label: var(--brand-magenta-600);\n\t--array-orange: var(--brand-orange-100);\n\t--array-orange-label: var(--brand-orange-600);\n\t--array-purple: var(--brand-purple-100);\n\t--array-purple-label: var(--brand-purple-600);\n\t--array-sea: var(--brand-sea-100);\n\t--array-sea-label: var(--brand-sea-600);\n\t--array-sky: var(--brand-sky-100);\n\t--array-sky-label: var(--brand-sky-600);\n\t--array-yellow: var(--brand-yellow-100);\n\t--array-yellow-label: var(--brand-yellow-600);\n\t--core-badge-primary: var(--brand-sea-500);\n\t--core-badge-secondary: var(--brand-grey-700);\n\t--core-button-disabled: var(--brand-grey-900);\n\t--core-button-primary: var(--brand-sea-500);\n\t--core-drop-shadow: var(--core-drop-shadow-dark);\n\t--core-gp-logo-primary: var(--brand-sea-500);\n\t--core-gp-logo-secondary: var(--brand-white-0);\n\t--core-icon-dark: var(--brand-grey-950);\n\t--core-icon-disabled: var(--brand-grey-500);\n\t--core-icon-error: var(--product-red-400);\n\t--core-icon-light: var(--brand-white-0);\n\t--core-icon-primary: var(--brand-white-0);\n\t--core-icon-secondary: var(--brand-grey-200);\n\t--core-icon-tertiary: var(--brand-sky-300);\n\t--core-outline-secondary: var(--brand-grey-900);\n\t--core-outline-primary: var(--brand-grey-700);\n\t--core-outline-special: var(--brand-sky-300);\n\t--core-outline-tertiary: var(--brand-sky-300);\n\t--core-surface-coverup-translucent: var(\n\t\t--core-surface-coverup-translucent-dark\n\t);\n\t--core-surface-overlay-translucent: var(\n\t\t--core-surface-overlay-translucent-dark\n\t);\n\t--core-surface-primary: var(--brand-grey-950);\n\t--core-surface-primary-tint: var(--surface-primary-tint-dark);\n\t--core-surface-secondary: var(--brand-grey-900);\n\t--core-surface-special: var(--brand-sky-950);\n\t--core-text-dark: var(--brand-grey-950);\n\t--core-text-disabled: var(--brand-grey-500);\n\t--core-text-error: var(--product-red-400);\n\t--core-text-light: var(--brand-white-0);\n\t--core-text-primary: var(--brand-white-0);\n\t--core-text-secondary: var(--brand-grey-200);\n\t--core-text-tertiary: var(--brand-grey-400);\n\t--core-text-special: var(--brand-sky-300);\n\t--core-link-primary: var(--brand-sky-300);\n\t--eor-tag-employee: var(--brand-sky-700);\n\t--eor-tag-overdue: var(--product-red-400);\n\t--eor-tag-paid: var(--brand-land-700);\n\t--eor-tag-pending: var(--brand-orange-500);\n\t--eor-tag-professional: var(--brand-sea-500);\n\t--feedback-attention: var(--brand-yellow-400);\n\t--feedback-informative: var(--brand-sky-600);\n\t--feedback-positive: var(--brand-land-700);\n\t--feedback-urgency: var(--brand-orange-500);\n\t--feedback-warning: var(--product-red-400);\n\t--gia-tag-risk-high: var(--product-red-400);\n\t--gia-tag-risk-low: var(--brand-sky-600);\n\t--gia-tag-risk-moderate: var(--brand-orange-500);\n\t--gia-text-excerpt-highlight: var(--brand-orange-100);\n\t--gia-text-selection: var(--brand-sea-900);\n\t--scroll-bar: var(--scroll-bar-dark);\n\t--scroll-bar-hover: var(--scroll-bar-hover-dark);\n\t--surface-shadow-soft: var(--surface-shadow-soft-dark);\n\t--surface-shadow-strong: var(--surface-shadow-strong-dark);\n}\n\n/* Theme token text-color utility classes */\n[data-slice-theme-scope] .array-land {\n\tbackground: var(--array-land);\n}\n[data-slice-theme-scope] .array-land-label {\n\tcolor: var(--array-land-label);\n}\n[data-slice-theme-scope] .array-magenta {\n\tbackground: var(--array-magenta);\n}\n[data-slice-theme-scope] .array-magenta-label {\n\tcolor: var(--array-magenta-label);\n}\n[data-slice-theme-scope] .array-orange {\n\tbackground: var(--array-orange);\n}\n[data-slice-theme-scope] .array-orange-label {\n\tcolor: var(--array-orange-label);\n}\n[data-slice-theme-scope] .array-purple {\n\tbackground: var(--array-purple);\n}\n[data-slice-theme-scope] .array-purple-label {\n\tcolor: var(--array-purple-label);\n}\n[data-slice-theme-scope] .array-sea {\n\tbackground: var(--array-sea);\n}\n[data-slice-theme-scope] .array-sea-label {\n\tcolor: var(--array-sea-label);\n}\n[data-slice-theme-scope] .array-sky {\n\tbackground: var(--array-sky);\n}\n[data-slice-theme-scope] .array-sky-label {\n\tcolor: var(--array-sky-label);\n}\n[data-slice-theme-scope] .array-yellow {\n\tbackground: var(--array-yellow);\n}\n[data-slice-theme-scope] .array-yellow-label {\n\tcolor: var(--array-yellow-label);\n}\n[data-slice-theme-scope] .core-badge-primary {\n\tbackground: var(--core-badge-primary);\n}\n[data-slice-theme-scope] .core-badge-secondary {\n\tbackground: var(--core-badge-secondary);\n}\n[data-slice-theme-scope] .core-button-disabled {\n\tbackground: var(--core-button-disabled);\n}\n[data-slice-theme-scope] .core-button-primary {\n\tbackground: var(--core-button-primary);\n}\n[data-slice-theme-scope] .core-drop-shadow {\n\tbox-shadow: var(--core-drop-shadow);\n}\n[data-slice-theme-scope] .core-gp-logo-primary {\n\tcolor: var(--core-gp-logo-primary);\n}\n[data-slice-theme-scope] .core-gp-logo-secondary {\n\tcolor: var(--core-gp-logo-secondary);\n}\n[data-slice-theme-scope] .core-icon-dark {\n\tcolor: var(--core-icon-dark);\n}\n[data-slice-theme-scope] .core-icon-disabled {\n\tcolor: var(--core-icon-disabled);\n}\n[data-slice-theme-scope] .core-icon-error {\n\tcolor: var(--core-icon-error);\n}\n[data-slice-theme-scope] .core-icon-light {\n\tcolor: var(--core-icon-light);\n}\n[data-slice-theme-scope] .core-icon-primary {\n\tcolor: var(--core-icon-primary);\n}\n[data-slice-theme-scope] .core-icon-secondary {\n\tcolor: var(--core-icon-secondary);\n}\n[data-slice-theme-scope] .core-icon-tertiary {\n\tcolor: var(--core-icon-tertiary);\n}\n[data-slice-theme-scope] .core-link-primary {\n\tcolor: var(--core-link-primary);\n}\n[data-slice-theme-scope] .core-outline-primary {\n\tborder-color: var(--core-outline-primary);\n}\n[data-slice-theme-scope] .core-outline-secondary {\n\tborder-color: var(--core-outline-secondary);\n}\n[data-slice-theme-scope] .core-outline-special {\n\tborder-color: var(--core-outline-special);\n}\n[data-slice-theme-scope] .core-outline-tertiary {\n\tborder-color: var(--core-outline-tertiary);\n}\n[data-slice-theme-scope] .core-surface-coverup-translucent {\n\tbackground: var(--core-surface-coverup-translucent);\n}\n[data-slice-theme-scope] .core-surface-overlay-translucent {\n\tbackground: var(--core-surface-overlay-translucent);\n}\n[data-slice-theme-scope] .core-surface-primary {\n\tbackground: var(--core-surface-primary);\n}\n[data-slice-theme-scope] .core-surface-primary-tint {\n\tbackground: var(--core-surface-primary-tint);\n}\n[data-slice-theme-scope] .core-surface-secondary {\n\tbackground: var(--core-surface-secondary);\n}\n[data-slice-theme-scope] .core-surface-special {\n\tbackground: var(--core-surface-special);\n}\n[data-slice-theme-scope] .core-text-dark {\n\tcolor: var(--core-text-dark);\n}\n[data-slice-theme-scope] .core-text-disabled {\n\tcolor: var(--core-text-disabled);\n}\n[data-slice-theme-scope] .core-text-error {\n\tcolor: var(--core-text-error);\n}\n[data-slice-theme-scope] .core-text-light {\n\tcolor: var(--core-text-light);\n}\n[data-slice-theme-scope] .core-text-primary {\n\tcolor: var(--core-text-primary);\n}\n[data-slice-theme-scope] .core-text-secondary {\n\tcolor: var(--core-text-secondary);\n}\n[data-slice-theme-scope] .core-text-special {\n\tcolor: var(--core-text-special);\n}\n[data-slice-theme-scope] .core-text-tertiary {\n\tcolor: var(--core-text-tertiary);\n}\n[data-slice-theme-scope] .eor-tag-employee {\n\tcolor: var(--eor-tag-employee);\n}\n[data-slice-theme-scope] .eor-tag-overdue {\n\tcolor: var(--eor-tag-overdue);\n}\n[data-slice-theme-scope] .eor-tag-paid {\n\tcolor: var(--eor-tag-paid);\n}\n[data-slice-theme-scope] .eor-tag-pending {\n\tcolor: var(--eor-tag-pending);\n}\n[data-slice-theme-scope] .eor-tag-professional {\n\tcolor: var(--eor-tag-professional);\n}\n[data-slice-theme-scope] .feedback-attention {\n\tcolor: var(--feedback-attention);\n}\n[data-slice-theme-scope] .feedback-informative {\n\tcolor: var(--feedback-informative);\n}\n[data-slice-theme-scope] .feedback-positive {\n\tcolor: var(--feedback-positive);\n}\n[data-slice-theme-scope] .feedback-urgency {\n\tcolor: var(--feedback-urgency);\n}\n[data-slice-theme-scope] .feedback-warning {\n\tcolor: var(--feedback-warning);\n}\n[data-slice-theme-scope] .gia-tag-risk-high {\n\tcolor: var(--gia-tag-risk-high);\n}\n[data-slice-theme-scope] .gia-tag-risk-low {\n\tcolor: var(--gia-tag-risk-low);\n}\n[data-slice-theme-scope] .gia-tag-risk-moderate {\n\tcolor: var(--gia-tag-risk-moderate);\n}\n[data-slice-theme-scope] .gia-text-excerpt-highlight {\n\tcolor: var(--gia-text-excerpt-highlight);\n}\n[data-slice-theme-scope] .gia-text-selection {\n\tcolor: var(--gia-text-selection);\n}\n[data-slice-theme-scope] .scroll-bar {\n\tcolor: var(--scroll-bar);\n}\n[data-slice-theme-scope] .scroll-bar-hover {\n\tcolor: var(--scroll-bar-hover);\n}\n[data-slice-theme-scope] .surface-shadow-soft {\n\tcolor: var(--surface-shadow-soft);\n}\n[data-slice-theme-scope] .surface-shadow-strong {\n\tcolor: var(--surface-shadow-strong);\n}\n\n[data-slice-theme-scope] {\n\tbackground: var(--core-surface-primary);\n}\n\n[data-slice-theme-scope] a {\n\tcolor: var(--core-text-special);\n\ttext-decoration: underline;\n}\n\n[data-slice-theme-scope] a:visited {\n\tcolor: var(--core-text-special);\n\ttext-decoration: underline;\n}\n\n[data-slice-theme-scope] a:hover {\n\ttext-decoration: none;\n}\n\n[data-slice-theme-scope] code {\n\tborder: 1px solid var(--core-outline-primary);\n\tbackground: var(--core-surface-secondary);\n\tcolor: var(--core-text-primary);\n}\n');
|
|
10
10
|
|
|
11
11
|
styleInject_es.styleInject("[data-slice-theme-scope] {\n\t--elevation-below-surface: -100;\n\t--elevation-surface: 0;\n\t--elevation-float: 100;\n\t--elevation-describe: 200;\n\t--elevation-status: 300;\n\t--elevation-notify: 400;\n\t--elevation-overlay: 500;\n\t--elevation-confirm: 600;\n}\n");
|
|
12
12
|
|
|
13
|
-
styleInject_es.styleInject('@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap");\n\n[data-slice-theme-scope] {\n\t--font-family: "Funnel Sans";\n\t--font-weight-regular: 360;\n\t--font-weight-medium: 420;\n\t--font-weight-bold: 480;\n\t--font-size-xs: 12px;\n\t--font-size-s: 14px;\n\t--font-size-m: 15px;\n\t--font-size-l: 16px;\n\t--font-size-xl: 17px;\n}\n\n[data-slice-theme-scope] .body-xs-regular {\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}\n\n[data-slice-theme-scope] .body-xs-medium {\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}\n\n[data-slice-theme-scope] .body-xs-bold {\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}\n\n[data-slice-theme-scope] .body-s-regular {\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}\n\n[data-slice-theme-scope] .body-s-medium {\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}\n\n[data-slice-theme-scope] .body-s-bold {\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}\n\n[data-slice-theme-scope] .body-m-regular {\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}\n\n[data-slice-theme-scope] .body-m-medium {\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}\n\n[data-slice-theme-scope] .body-m-bold {\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}\n\n[data-slice-theme-scope] .body-l-regular {\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}\n\n[data-slice-theme-scope] .body-l-medium {\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}\n\n[data-slice-theme-scope] .body-l-bold {\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}\n\n[data-slice-theme-scope] .body-xl-regular {\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}\n\n[data-slice-theme-scope] .body-xl-medium {\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}\n\n[data-slice-theme-scope] .body-xl-bold {\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}\n\n[data-slice-theme-scope] .heading-s-medium {\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}\n\n[data-slice-theme-scope] .heading-s-bold {\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}\n\n[data-slice-theme-scope] .heading-m-medium {\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}\n\n[data-slice-theme-scope] .heading-m-bold {\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}\n\n[data-slice-theme-scope] .heading-l-medium {\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}\n\n[data-slice-theme-scope] .heading-l-bold {\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}\n\n[data-slice-theme-scope] .heading-xl-medium {\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}\n\n[data-slice-theme-scope] .heading-xl-bold {\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[data-slice-theme-scope]
|
|
13
|
+
styleInject_es.styleInject('@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap");\n\n[data-slice-theme-scope] {\n\t--font-family: "Funnel Sans";\n\t--font-weight-regular: 360;\n\t--font-weight-medium: 420;\n\t--font-weight-bold: 480;\n\t--font-size-xs: 12px;\n\t--font-size-s: 14px;\n\t--font-size-m: 15px;\n\t--font-size-l: 16px;\n\t--font-size-xl: 17px;\n}\n\n[data-slice-theme-scope] .body-xs-regular {\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}\n\n[data-slice-theme-scope] .body-xs-medium {\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}\n\n[data-slice-theme-scope] .body-xs-bold {\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}\n\n[data-slice-theme-scope] .body-s-regular {\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}\n\n[data-slice-theme-scope] .body-s-medium {\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}\n\n[data-slice-theme-scope] .body-s-bold {\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}\n\n[data-slice-theme-scope] .body-m-regular {\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}\n\n[data-slice-theme-scope] .body-m-medium {\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}\n\n[data-slice-theme-scope] .body-m-bold {\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}\n\n[data-slice-theme-scope] .body-l-regular {\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}\n\n[data-slice-theme-scope] .body-l-medium {\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}\n\n[data-slice-theme-scope] .body-l-bold {\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}\n\n[data-slice-theme-scope] .body-xl-regular {\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}\n\n[data-slice-theme-scope] .body-xl-medium {\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}\n\n[data-slice-theme-scope] .body-xl-bold {\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}\n\n[data-slice-theme-scope] .heading-s-medium {\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}\n\n[data-slice-theme-scope] .heading-s-bold {\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}\n\n[data-slice-theme-scope] .heading-m-medium {\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}\n\n[data-slice-theme-scope] .heading-m-bold {\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}\n\n[data-slice-theme-scope] .heading-l-medium {\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}\n\n[data-slice-theme-scope] .heading-l-bold {\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}\n\n[data-slice-theme-scope] .heading-xl-medium {\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}\n\n[data-slice-theme-scope] .heading-xl-bold {\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[data-slice-theme-scope] h1,\n[data-slice-theme-scope] h2,\n[data-slice-theme-scope] h3,\n[data-slice-theme-scope] h4 {\n\tmargin: 1.5em 0 0.6em 0;\n}\n\n[data-slice-theme-scope] h1 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 560;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n\tmargin-top: 0;\n}\n\n[data-slice-theme-scope] h2 {\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}\n\n[data-slice-theme-scope] h3 {\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}\n\n[data-slice-theme-scope] h4 {\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}\n\n[data-slice-theme-scope] p {\n\tmargin: 0 0 1.5em 0;\n}\n\n[data-slice-theme-scope] b,\n[data-slice-theme-scope] strong {\n\tfont-weight: var(--font-weight-bold);\n}\n');
|
|
14
14
|
|
|
15
15
|
styleInject_es.styleInject("/* Keep these values in sync with src/hooks/useWindow/useWindow.ts */\n");
|
|
16
16
|
|
|
@@ -19,42 +19,59 @@ styleInject_es.styleInject("[data-slice-theme-scope] {\n\t--motion-magnet: cubic
|
|
|
19
19
|
styleInject_es.styleInject('.slice-global-body {\n\t/* apply themed background color */\n\tbackground-color: var(--core-surface-primary);\n\t/* remove gaps */\n\tmargin: 0;\n\tpadding: 0;\n\t/* base medium body font style with pref. for theme google font */\n\tfont-family: "Funnel Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",\n\t\tRoboto, Helvetica, Arial, sans-serif;\n\tfont-weight: 360;\n\tfont-size: 15px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n\t-webkit-font-smoothing: antialiased;\n}\n');
|
|
20
20
|
|
|
21
21
|
const ThemeContext = React.createContext({
|
|
22
|
-
initialTheme: theme_themes.lightTheme.name
|
|
22
|
+
initialTheme: theme_themes.lightTheme.name,
|
|
23
|
+
systemTheme: !0,
|
|
24
|
+
setSystemTheme: () => {}
|
|
23
25
|
});
|
|
24
26
|
|
|
25
|
-
function
|
|
27
|
+
function resolveTheme(theme, system) {
|
|
28
|
+
if (theme) return theme.includes("dark") ? theme_themes.darkTheme : theme_themes.lightTheme;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function setDocumentTheme(name, system) {
|
|
26
32
|
"undefined" != typeof document && (document.documentElement.dataset.sliceTheme = name,
|
|
27
|
-
document.cookie = `slice-theme=${encodeURIComponent(name)}; path=/; max-age=31536000; samesite=lax
|
|
33
|
+
document.cookie = `slice-theme=${encodeURIComponent(name)}; path=/; max-age=31536000; samesite=lax`,
|
|
34
|
+
document.cookie = `slice-system-theme=${encodeURIComponent(system)}; path=/; max-age=31536000; samesite=lax`);
|
|
28
35
|
}
|
|
29
36
|
|
|
30
37
|
exports.ThemeProvider = function(props) {
|
|
31
|
-
const {children: children, theme: theme, system: system, global: global, initialTheme: initialTheme} = props,
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
const {children: children, theme: theme, system: system, global: global, initialTheme: initialTheme} = props, [systemTheme, setSystemTheme] = React.useState(null == system || system);
|
|
39
|
+
React.useEffect(() => {
|
|
40
|
+
setSystemTheme(null == system || system);
|
|
41
|
+
}, [ system ]);
|
|
42
|
+
const contextValue = React.useMemo(() => ({
|
|
43
|
+
initialTheme: null != initialTheme ? initialTheme : theme_themes.lightTheme.name,
|
|
44
|
+
systemTheme: systemTheme,
|
|
45
|
+
setSystemTheme: setSystemTheme
|
|
46
|
+
}), [ initialTheme, systemTheme ]);
|
|
34
47
|
return React.useEffect(() => {
|
|
35
|
-
if (theme
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
48
|
+
if (theme) {
|
|
49
|
+
setSystemTheme(!1);
|
|
50
|
+
const newTheme = resolveTheme(theme);
|
|
51
|
+
if (!newTheme) return;
|
|
52
|
+
return void setDocumentTheme(newTheme.name, !1);
|
|
53
|
+
}
|
|
54
|
+
if (initialTheme && !systemTheme && "undefined" != typeof document && !document.documentElement.dataset.sliceTheme) {
|
|
55
|
+
const newTheme = resolveTheme(initialTheme);
|
|
39
56
|
if (!newTheme) return;
|
|
40
|
-
setDocumentTheme(newTheme.name);
|
|
57
|
+
setDocumentTheme(newTheme.name, !1);
|
|
41
58
|
}
|
|
42
|
-
}, [ theme, initialTheme ]), React.useEffect(() => {
|
|
43
|
-
if (!
|
|
59
|
+
}, [ theme, initialTheme, systemTheme ]), React.useEffect(() => {
|
|
60
|
+
if (!systemTheme) return;
|
|
44
61
|
const darkModeMediaQuery = "undefined" == typeof globalThis || "function" != typeof globalThis.matchMedia ? null : globalThis.matchMedia("(prefers-color-scheme: dark)");
|
|
45
62
|
if (!darkModeMediaQuery) return;
|
|
46
63
|
const handleSystemThemeChange = e => {
|
|
47
|
-
if (
|
|
48
|
-
setDocumentTheme((e.matches ? theme_themes.darkTheme : theme_themes.lightTheme).name);
|
|
64
|
+
if (systemTheme) {
|
|
65
|
+
setDocumentTheme((e.matches ? theme_themes.darkTheme : theme_themes.lightTheme).name, !0);
|
|
49
66
|
}
|
|
50
67
|
};
|
|
51
|
-
if (
|
|
52
|
-
setDocumentTheme((darkModeMediaQuery.matches ? theme_themes.darkTheme : theme_themes.lightTheme).name);
|
|
68
|
+
if (systemTheme) {
|
|
69
|
+
setDocumentTheme((darkModeMediaQuery.matches ? theme_themes.darkTheme : theme_themes.lightTheme).name, !0);
|
|
53
70
|
}
|
|
54
71
|
return darkModeMediaQuery.addEventListener("change", handleSystemThemeChange), () => {
|
|
55
72
|
darkModeMediaQuery.removeEventListener("change", handleSystemThemeChange);
|
|
56
73
|
};
|
|
57
|
-
}, [
|
|
74
|
+
}, [ systemTheme ]), React.useEffect(() => {
|
|
58
75
|
if (global) {
|
|
59
76
|
if ("undefined" != typeof document) return document.body.classList.add("slice-global-body"),
|
|
60
77
|
() => {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var microphoneStore = require("../chunks/microphoneStore-D1fV_8QQ.js");
|
|
4
|
+
|
|
5
|
+
require("../chunks/tslib.es6-C8dZW5nY.js"), require("react"), require("zustand"),
|
|
6
|
+
exports.getMicrophoneState = microphoneStore.getMicrophoneState, exports.microphoneActions = microphoneStore.microphoneActions,
|
|
7
|
+
exports.useCurrentMicDeviceId = microphoneStore.useCurrentMicDeviceId, exports.useMicActive = microphoneStore.useMicActive,
|
|
8
|
+
exports.useMicError = microphoneStore.useMicError, exports.useMicInputVolume = microphoneStore.useMicInputVolume,
|
|
9
|
+
exports.useMicMuted = microphoneStore.useMicMuted, exports.useMicOptions = microphoneStore.useMicOptions,
|
|
10
|
+
exports.useMicRequesting = microphoneStore.useMicRequesting, exports.useMicStream = microphoneStore.useMicStream,
|
|
11
|
+
exports.useMicSupported = microphoneStore.useMicSupported, exports.useMicTrack = microphoneStore.useMicTrack,
|
|
12
|
+
exports.useMicrophoneStore = microphoneStore.useMicrophoneStore, exports.useMicrophoneStoreActions = microphoneStore.useMicrophoneStoreActions,
|
|
13
|
+
exports.useMicrophones = microphoneStore.useMicrophones, exports.useProcessedMicStream = microphoneStore.useProcessedMicStream,
|
|
14
|
+
exports.useSyncMicrophoneStore = microphoneStore.useSyncMicrophoneStore;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var volumeStore = require("../chunks/volumeStore-oYwlRVN0.js");
|
|
4
|
+
|
|
5
|
+
require("../chunks/tslib.es6-C8dZW5nY.js"), require("zustand"), exports.getAttachedMedia = volumeStore.getAttachedMedia,
|
|
6
|
+
exports.getMuted = volumeStore.getMuted, exports.getStoredVolume = volumeStore.getStoredVolume,
|
|
7
|
+
exports.getVolume = volumeStore.getVolume, exports.useAttachedMedia = volumeStore.useAttachedMedia,
|
|
8
|
+
exports.useMuted = volumeStore.useMuted, exports.useStoredVolume = volumeStore.useStoredVolume,
|
|
9
|
+
exports.useVolume = volumeStore.useVolume, exports.useVolumeActions = volumeStore.useVolumeActions,
|
|
10
|
+
exports.useVolumeStore = volumeStore.useVolumeStore, exports.volumeActions = volumeStore.volumeActions;
|
package/dist/cjs/stores.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var windowStore = require("./chunks/windowStore-CCxCOUqa.js"), uploadsStore = require("./chunks/uploadsStore-CxWIctvI.js"), tipStore = require("./chunks/tipStore-Ck4NLvml.js"), toastStore = require("./chunks/toastStore-CSStgB9d.js"), localDBStore = require("./chunks/localDBStore-zyDhaEiP.js"), sseStore = require("./chunks/sseStore-1OeJ9TRP.js");
|
|
3
|
+
var windowStore = require("./chunks/windowStore-CCxCOUqa.js"), uploadsStore = require("./chunks/uploadsStore-CxWIctvI.js"), volumeStore = require("./chunks/volumeStore-oYwlRVN0.js"), microphoneStore = require("./chunks/microphoneStore-D1fV_8QQ.js"), tipStore = require("./chunks/tipStore-Ck4NLvml.js"), toastStore = require("./chunks/toastStore-CSStgB9d.js"), localDBStore = require("./chunks/localDBStore-zyDhaEiP.js"), sseStore = require("./chunks/sseStore-1OeJ9TRP.js");
|
|
4
4
|
|
|
5
5
|
require("./chunks/tslib.es6-C8dZW5nY.js"), require("zustand"), require("./chunks/uploads-worker-mD8pcsGP.js"),
|
|
6
6
|
require("react"), require("zustand/react/shallow"), require("./chunks/IndexedDB-BaVmQgkK.js"),
|
|
@@ -26,7 +26,21 @@ exports.getUploadsWorkerStatus = uploadsStore.getUploadsWorkerStatus, exports.up
|
|
|
26
26
|
exports.uploadsInitialized = uploadsStore.uploadsInitialized, exports.useUploads = uploadsStore.useUploads,
|
|
27
27
|
exports.useUploadsActions = uploadsStore.useUploadsActions, exports.useUploadsError = uploadsStore.useUploadsError,
|
|
28
28
|
exports.useUploadsInitialized = uploadsStore.useUploadsInitialized, exports.useUploadsStore = uploadsStore.useUploadsStore,
|
|
29
|
-
exports.useUploadsWorkerStatus = uploadsStore.useUploadsWorkerStatus, exports.
|
|
29
|
+
exports.useUploadsWorkerStatus = uploadsStore.useUploadsWorkerStatus, exports.getAttachedMedia = volumeStore.getAttachedMedia,
|
|
30
|
+
exports.getMuted = volumeStore.getMuted, exports.getStoredVolume = volumeStore.getStoredVolume,
|
|
31
|
+
exports.getVolume = volumeStore.getVolume, exports.useAttachedMedia = volumeStore.useAttachedMedia,
|
|
32
|
+
exports.useMuted = volumeStore.useMuted, exports.useStoredVolume = volumeStore.useStoredVolume,
|
|
33
|
+
exports.useVolume = volumeStore.useVolume, exports.useVolumeActions = volumeStore.useVolumeActions,
|
|
34
|
+
exports.useVolumeStore = volumeStore.useVolumeStore, exports.volumeActions = volumeStore.volumeActions,
|
|
35
|
+
exports.getMicrophoneState = microphoneStore.getMicrophoneState, exports.microphoneActions = microphoneStore.microphoneActions,
|
|
36
|
+
exports.useCurrentMicDeviceId = microphoneStore.useCurrentMicDeviceId, exports.useMicActive = microphoneStore.useMicActive,
|
|
37
|
+
exports.useMicError = microphoneStore.useMicError, exports.useMicInputVolume = microphoneStore.useMicInputVolume,
|
|
38
|
+
exports.useMicMuted = microphoneStore.useMicMuted, exports.useMicOptions = microphoneStore.useMicOptions,
|
|
39
|
+
exports.useMicRequesting = microphoneStore.useMicRequesting, exports.useMicStream = microphoneStore.useMicStream,
|
|
40
|
+
exports.useMicSupported = microphoneStore.useMicSupported, exports.useMicTrack = microphoneStore.useMicTrack,
|
|
41
|
+
exports.useMicrophoneStore = microphoneStore.useMicrophoneStore, exports.useMicrophoneStoreActions = microphoneStore.useMicrophoneStoreActions,
|
|
42
|
+
exports.useMicrophones = microphoneStore.useMicrophones, exports.useProcessedMicStream = microphoneStore.useProcessedMicStream,
|
|
43
|
+
exports.useSyncMicrophoneStore = microphoneStore.useSyncMicrophoneStore, exports.getTip = tipStore.getTip,
|
|
30
44
|
exports.tipActions = tipStore.tipActions, exports.useTip = tipStore.useTip, exports.useTipActions = tipStore.useTipActions,
|
|
31
45
|
exports.useTipStore = tipStore.useTipStore, exports.getToast = toastStore.getToast,
|
|
32
46
|
exports.toastActions = toastStore.toastActions, exports.useToast = toastStore.useToast,
|