@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
package/dist/cjs/theme/colors.js
CHANGED
|
@@ -98,6 +98,8 @@ const coreColors = {
|
|
|
98
98
|
"core-surface-coverup-translucent-dark": "#0000007a",
|
|
99
99
|
"core-surface-overlay-translucent-light": "#ffffffcc",
|
|
100
100
|
"core-surface-overlay-translucent-dark": "#1f262dcc",
|
|
101
|
+
"surface-primary-tint-light": "#fcfcfc",
|
|
102
|
+
"surface-primary-tint-dark": "#191e24",
|
|
101
103
|
"scroll-bar-light": "#e3e8ef",
|
|
102
104
|
"scroll-bar-dark": "rgba(255, 255, 255, 0.1)",
|
|
103
105
|
"scroll-bar-hover-light": "#cdd5df",
|
|
@@ -135,13 +137,14 @@ const coreColors = {
|
|
|
135
137
|
"core-icon-primary": coreColors["brand-grey-950"],
|
|
136
138
|
"core-icon-secondary": coreColors["brand-grey-700"],
|
|
137
139
|
"core-icon-tertiary": coreColors["brand-sea-500"],
|
|
138
|
-
"core-outline-secondary": coreColors["brand-grey-
|
|
140
|
+
"core-outline-secondary": coreColors["brand-grey-100"],
|
|
139
141
|
"core-outline-primary": coreColors["brand-grey-100"],
|
|
140
142
|
"core-outline-special": coreColors["brand-sea-100"],
|
|
141
143
|
"core-outline-tertiary": coreColors["brand-sea-500"],
|
|
142
144
|
"core-surface-coverup-translucent": coreColors["core-surface-coverup-translucent-light"],
|
|
143
145
|
"core-surface-overlay-translucent": coreColors["core-surface-overlay-translucent-light"],
|
|
144
146
|
"core-surface-primary": coreColors["brand-white-0"],
|
|
147
|
+
"core-surface-primary-tint": coreColors["surface-primary-tint-light"],
|
|
145
148
|
"core-surface-secondary": coreColors["brand-grey-50"],
|
|
146
149
|
"core-surface-special": coreColors["brand-sea-50"],
|
|
147
150
|
"core-text-dark": coreColors["brand-grey-950"],
|
|
@@ -201,13 +204,14 @@ const coreColors = {
|
|
|
201
204
|
"core-icon-primary": coreColors["brand-white-0"],
|
|
202
205
|
"core-icon-secondary": coreColors["brand-grey-200"],
|
|
203
206
|
"core-icon-tertiary": coreColors["brand-sky-300"],
|
|
204
|
-
"core-outline-secondary": coreColors["brand-grey-
|
|
207
|
+
"core-outline-secondary": coreColors["brand-grey-900"],
|
|
205
208
|
"core-outline-primary": coreColors["brand-grey-700"],
|
|
206
209
|
"core-outline-special": coreColors["brand-sky-900"],
|
|
207
210
|
"core-outline-tertiary": coreColors["brand-sky-300"],
|
|
208
211
|
"core-surface-coverup-translucent": coreColors["core-surface-coverup-translucent-dark"],
|
|
209
212
|
"core-surface-overlay-translucent": coreColors["core-surface-overlay-translucent-dark"],
|
|
210
213
|
"core-surface-primary": coreColors["brand-grey-950"],
|
|
214
|
+
"core-surface-primary-tint": coreColors["surface-primary-tint-dark"],
|
|
211
215
|
"core-surface-secondary": coreColors["brand-grey-900"],
|
|
212
216
|
"core-surface-special": coreColors["brand-sky-950"],
|
|
213
217
|
"core-text-dark": coreColors["brand-grey-950"],
|
|
@@ -276,6 +280,7 @@ exports.colorClass = {
|
|
|
276
280
|
"core-surface-coverup-translucent": "core-surface-coverup-translucent",
|
|
277
281
|
"core-surface-overlay-translucent": "core-surface-overlay-translucent",
|
|
278
282
|
"core-surface-primary": "core-surface-primary",
|
|
283
|
+
"core-surface-primary-tint": "core-surface-primary-tint",
|
|
279
284
|
"core-surface-secondary": "core-surface-secondary",
|
|
280
285
|
"core-surface-special": "core-surface-special",
|
|
281
286
|
"core-text-dark": "core-text-dark",
|
|
@@ -342,6 +347,7 @@ exports.colorClass = {
|
|
|
342
347
|
"core-surface-coverup-translucent": "var(--core-surface-coverup-translucent)",
|
|
343
348
|
"core-surface-overlay-translucent": "var(--core-surface-overlay-translucent)",
|
|
344
349
|
"core-surface-primary": "var(--core-surface-primary)",
|
|
350
|
+
"core-surface-primary-tint": "var(--core-surface-primary-tint)",
|
|
345
351
|
"core-surface-secondary": "var(--core-surface-secondary)",
|
|
346
352
|
"core-surface-special": "var(--core-surface-special)",
|
|
347
353
|
"core-text-dark": "var(--core-text-dark)",
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var misc = require("../chunks/misc-
|
|
3
|
+
var misc = require("../chunks/misc-CTl4GDxI.js"), debounce = require("../chunks/debounce-BF4i6uIC.js"), colors = require("../chunks/colors-njquvHkx.js"), IndexedDB = require("../chunks/IndexedDB-BaVmQgkK.js"), audioVisualizer = require("../chunks/audioVisualizer-EIfIjWH7.js"), MdStreamBuffer = require("../chunks/MdStreamBuffer-CvLO7CVi.js"), SSEConnection = require("../chunks/SSEConnection-C-1OzEOp.js"), WSConnection = require("../chunks/WSConnection-DrOC8Z0R.js");
|
|
4
4
|
|
|
5
5
|
require("../chunks/tslib.es6-C8dZW5nY.js"), exports.copyToClipboard = misc.copyToClipboard,
|
|
6
6
|
exports.hexToRgb = misc.hexToRgb, exports.debounce = debounce.debounce, exports.addOpacity = colors.addOpacity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var IndexedDB = require("../../chunks/IndexedDB-BaVmQgkK.js"), audioVisualizer = require("../../chunks/audioVisualizer-EIfIjWH7.js"), MdStreamBuffer = require("../../chunks/MdStreamBuffer-
|
|
3
|
+
var IndexedDB = require("../../chunks/IndexedDB-BaVmQgkK.js"), audioVisualizer = require("../../chunks/audioVisualizer-EIfIjWH7.js"), MdStreamBuffer = require("../../chunks/MdStreamBuffer-CvLO7CVi.js"), SSEConnection = require("../../chunks/SSEConnection-C-1OzEOp.js"), WSConnection = require("../../chunks/WSConnection-DrOC8Z0R.js");
|
|
4
4
|
|
|
5
5
|
require("../../chunks/tslib.es6-C8dZW5nY.js"), exports.IndexedDB = IndexedDB.IndexedDB,
|
|
6
6
|
exports.AudioVisualizer = audioVisualizer.AudioVisualizer, exports.MdBuffer = MdStreamBuffer.MdBuffer,
|
|
@@ -22,7 +22,7 @@ var css_wrapper = "AudioBubble-module_wrapper__f2yKg flexBox-module_row__z24tF",
|
|
|
22
22
|
styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.AudioBubble-module_wrapper__f2yKg {\n\tmin-height: var(--ab-size);\n\tmin-width: var(--ab-size);\n\theight: var(--ab-size);\n\twidth: var(--ab-size);\n\toverflow: visible;\n\tz-index: var(--elevation-status);\n}\n\n.AudioBubble-module_bubble__bpPT3 {\n\tmin-height: var(--ab-size);\n\tmin-width: var(--ab-size);\n\theight: var(--ab-size);\n\twidth: var(--ab-size);\n\tborder-radius: 100%;\n\tbackground: var(--ab-bg-color);\n\tbox-shadow: var(--ab-box-shadow);\n\ttransition: transform 40ms linear 0s;\n}\n");
|
|
23
23
|
|
|
24
24
|
const AudioBubble = React.memo(props => {
|
|
25
|
-
const
|
|
25
|
+
const {current: current} = useTheme(), color = current.colors["core-text-primary"], {audioStream: audioStream, playing: playing = !1, size: size = 64, backgroundColor: backgroundColor = "var(--core-text-primary)", glow: glow = !0, glowColor: glowColor = addOpacity(color, .1), glowSize: glowSize = 48, glowOffset: glowOffset = 18, minScale: minScale = 1, maxScale: maxScale = 3, intensity: intensity = 2.2, peakIntensity: peakIntensity = .5, risePerSeconds: risePerSeconds = 4, ReleasePerSeconds: ReleasePerSeconds = 1.5} = props, divAttributes = __rest(props, [ "audioStream", "playing", "size", "backgroundColor", "glow", "glowColor", "glowSize", "glowOffset", "minScale", "maxScale", "intensity", "peakIntensity", "risePerSeconds", "ReleasePerSeconds" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", visualizerRef = useRef(null), [scale, setScale] = useState(minScale), visualizerSettings = useMemo(() => ({
|
|
26
26
|
minScale: minScale,
|
|
27
27
|
maxScale: maxScale,
|
|
28
28
|
intensityMultiplier: intensity,
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
|
|
6
6
|
import React, { useRef, useState, useMemo, useEffect, useCallback } from "react";
|
|
7
7
|
|
|
8
|
-
import { n as normalizedPercent, a as accessibleKeyDown, s as setStyle } from "./misc-
|
|
8
|
+
import { n as normalizedPercent, a as accessibleKeyDown, s as setStyle } from "./misc-Bjbro8Xe.mjs";
|
|
9
9
|
|
|
10
10
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
|
|
6
6
|
import React, { useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import { A as Avatar } from "./Avatar-
|
|
8
|
+
import { A as Avatar } from "./Avatar-Ds6MWC2c.mjs";
|
|
9
9
|
|
|
10
10
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
11
11
|
|
|
@@ -11,9 +11,9 @@ import { B as Badge } from "./Badge-CC0zSLMf.mjs";
|
|
|
11
11
|
|
|
12
12
|
import { D as Dot } from "./Dot-DZE134mJ.mjs";
|
|
13
13
|
|
|
14
|
-
import { I as Icon } from "./Icon-
|
|
14
|
+
import { I as Icon } from "./Icon-BOJAk-hM.mjs";
|
|
15
15
|
|
|
16
|
-
import { P as ProgressIndicator } from "./ProgressIndicator-
|
|
16
|
+
import { P as ProgressIndicator } from "./ProgressIndicator-d2JGUDW_.mjs";
|
|
17
17
|
|
|
18
18
|
import { T as ToolTipType } from "./sharedTypes-tn9-uJvb.mjs";
|
|
19
19
|
|
|
@@ -33,7 +33,7 @@ var css = {
|
|
|
33
33
|
styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.Button-module_button__2ZuB7 {\n\tposition: relative;\n\tuser-select: none;\n\t-webkit-user-select: none;\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-image: none;\n\toutline: none;\n}\n\n.Button-module_label__UJ3Zt {\n\tuser-select: none;\n\t-webkit-user-select: none;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\twhite-space: nowrap;\n\tword-break: break-all;\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 1;\n\t-webkit-box-orient: vertical;\n\t&:hover {\n\t\ttext-decoration: var(--ui-button-decoration);\n\t}\n}\n\n.Button-module_count__DFxVB {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\ttransform: translateX(10px) translateY(-2px);\n}\n\n.Button-module_icon__-43u5 {\n\tmin-width: var(--ui-button-icon-size);\n\tmin-height: var(--ui-button-icon-size);\n\theight: var(--ui-button-icon-size);\n\twidth: var(--ui-button-icon-size);\n}\n\n.Button-module_xs__cF6m0 {\n}\n\n.Button-module_m__DR-gs {\n}\n\n.Button-module_l__0E0yI {\n}\n\n.Button-module_s__dSKOL {\n}\n");
|
|
34
34
|
|
|
35
35
|
const ButtonComponent = forwardRef((props, buttonRef) => {
|
|
36
|
-
const {children: children, size: size = "medium", variant: variant = "outline", label: label, labelSize: labelSize = "m", iconRight: iconRight, iconLeft: iconLeft, count: count = (void 0 === props.count ? void 0 : Number(props.count)), showDot: showDot, tooltip: tooltip, round: round = !1, state: state = "normal", fill: fill = !1, iconSize: iconSize = (void 0 === props.iconSize ? 20 : Number(props.iconSize)), width: width = "min-content", underline: underline = !1, borderRadius: borderRadius, iconColor: iconColor, backgroundColor: backgroundColor, backgroundColorDisabled: backgroundColorDisabled, bgColor: bgColor, bgColorDisabled: bgColorDisabled, labelColor: labelColor, transition: transition, variants: variants, initial: initial, animate: animate, exit: exit, paddingRight: paddingRight, paddingLeft: paddingLeft, progress: progress = !1, working: working = !1, duration: duration, trigger: trigger = !1, destructive: destructive = !1, onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = __rest(props, [ "children", "size", "variant", "label", "labelSize", "iconRight", "iconLeft", "count", "showDot", "tooltip", "round", "state", "fill", "iconSize", "width", "underline", "borderRadius", "iconColor", "backgroundColor", "backgroundColorDisabled", "bgColor", "bgColorDisabled", "labelColor", "transition", "variants", "initial", "animate", "exit", "paddingRight", "paddingLeft", "progress", "working", "duration", "trigger", "destructive", "onClick", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedBackgroundColorDisabled = null != backgroundColorDisabled ? backgroundColorDisabled : bgColorDisabled, [btnState, setBtnState] = useState(state), [lockedWidth, setLockedWidth] = useState(void 0), [playing, setPlaying] = useState(working), ref = useRef(null), lockCurrentWidth = useCallback(() => {
|
|
36
|
+
const {children: children, size: size = "medium", variant: variant = "outline", label: label, labelSize: labelSize = "m", iconRight: iconRight, iconLeft: iconLeft, iconFill: iconFill = !1, count: count = (void 0 === props.count ? void 0 : Number(props.count)), showDot: showDot, tooltip: tooltip, round: round = !1, state: state = "normal", fill: fill = !1, iconSize: iconSize = (void 0 === props.iconSize ? 20 : Number(props.iconSize)), width: width = "min-content", underline: underline = !1, borderRadius: borderRadius, iconColor: iconColor, backgroundColor: backgroundColor, backgroundColorDisabled: backgroundColorDisabled, bgColor: bgColor, bgColorDisabled: bgColorDisabled, labelColor: labelColor, transition: transition, variants: variants, initial: initial, animate: animate, exit: exit, paddingRight: paddingRight, paddingLeft: paddingLeft, progress: progress = !1, working: working = !1, duration: duration, trigger: trigger = !1, destructive: destructive = !1, onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = __rest(props, [ "children", "size", "variant", "label", "labelSize", "iconRight", "iconLeft", "iconFill", "count", "showDot", "tooltip", "round", "state", "fill", "iconSize", "width", "underline", "borderRadius", "iconColor", "backgroundColor", "backgroundColorDisabled", "bgColor", "bgColorDisabled", "labelColor", "transition", "variants", "initial", "animate", "exit", "paddingRight", "paddingLeft", "progress", "working", "duration", "trigger", "destructive", "onClick", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedBackgroundColorDisabled = null != backgroundColorDisabled ? backgroundColorDisabled : bgColorDisabled, [btnState, setBtnState] = useState(state), [lockedWidth, setLockedWidth] = useState(void 0), [playing, setPlaying] = useState(working), ref = useRef(null), lockCurrentWidth = useCallback(() => {
|
|
37
37
|
ref.current && setLockedWidth(ref.current.offsetWidth);
|
|
38
38
|
}, []), handleClick = useCallback(e => {
|
|
39
39
|
onToolTip(null), "disabled" !== btnState && (progress && duration ? (lockCurrentWidth(),
|
|
@@ -173,7 +173,7 @@ const ButtonComponent = forwardRef((props, buttonRef) => {
|
|
|
173
173
|
"disabled" !== btnState && setBtnState("normal"), tooltip && onToolTip(null);
|
|
174
174
|
}, [ btnState, tooltip, onToolTip ]), handleDidStop = useCallback(() => {
|
|
175
175
|
setPlaying(!1), setLockedWidth(void 0), onClick(void 0);
|
|
176
|
-
}, [ onClick ]), buttonContent = null != children ? children : label, shouldShowLabel = useMemo(() => !(playing && !iconLeft && !iconRight) && Boolean(buttonContent), [ playing, iconLeft, iconRight, buttonContent ]), setStyle = useCallback(value => void 0 === value ? "unset" : "number" == typeof value ? `${value}px` : value, []), buttonStyle = useMemo(() => ({
|
|
176
|
+
}, [ onClick ]), buttonContent = null != children ? children : label, shouldShowLabel = useMemo(() => !(playing && !iconLeft && !iconRight) && Boolean(buttonContent), [ playing, iconLeft, iconRight, buttonContent ]), setStyle = useCallback(value => void 0 === value ? "unset" : "number" == typeof value ? `${value}px` : value, []), setWidth = useMemo(() => playing && lockedWidth && "min-content" === width ? setStyle(lockedWidth) : width && "fill" !== width ? setStyle(width) : "min-content", [ playing, lockedWidth, width, setStyle ]), buttonStyle = useMemo(() => ({
|
|
177
177
|
color: colorStyles[variant].color[btnState],
|
|
178
178
|
background: fill ? "var(--core-surface-primary)" : colorStyles[variant].background[state],
|
|
179
179
|
paddingRight: null != paddingRight ? paddingRight : sizingStyles[size].paddingRight,
|
|
@@ -185,15 +185,15 @@ const ButtonComponent = forwardRef((props, buttonRef) => {
|
|
|
185
185
|
maxHeight: sizingStyles[size].height,
|
|
186
186
|
minHeight: sizingStyles[size].height,
|
|
187
187
|
flex: "fill" === width ? 1 : "unset",
|
|
188
|
-
width:
|
|
189
|
-
maxWidth:
|
|
188
|
+
width: setWidth,
|
|
189
|
+
maxWidth: setWidth,
|
|
190
190
|
gap: sizingStyles[size].gap,
|
|
191
191
|
borderWidth: colorStyles[variant].border,
|
|
192
192
|
borderStyle: "solid",
|
|
193
193
|
borderColor: colorStyles[variant].borderColor[btnState],
|
|
194
194
|
cursor: "disabled" === state ? "default" : "pointer",
|
|
195
195
|
transition: "all var(--motion-water-duration) var(--motion-water) 0s"
|
|
196
|
-
}), [ colorStyles, variant, btnState, fill, state, paddingRight, paddingLeft, sizingStyles, size,
|
|
196
|
+
}), [ colorStyles, variant, btnState, fill, state, paddingRight, paddingLeft, sizingStyles, size, setWidth, width ]), progressColor = useMemo(() => destructive ? "var(feedback-warning)" : colorStyles[variant].color[btnState], [ destructive, colorStyles, variant, btnState ]), iconDivSize = useMemo(() => round ? `${buttonStyle.minHeight}px` : iconSize ? setStyle(iconSize) : "unset", [ round, iconSize, buttonStyle, setStyle ]), cssVars = useMemo(() => ({
|
|
197
197
|
"--ui-button-decoration": underline ? "underline" : "unset",
|
|
198
198
|
"--ui-button-icon-size": iconDivSize
|
|
199
199
|
}), [ underline, iconDivSize ]);
|
|
@@ -220,7 +220,8 @@ const ButtonComponent = forwardRef((props, buttonRef) => {
|
|
|
220
220
|
name: iconLeft,
|
|
221
221
|
size: sizingStyles[size].iconSize,
|
|
222
222
|
strokeColor: colorStyles[variant].iconColor[btnState],
|
|
223
|
-
pointer: "disabled" !== btnState
|
|
223
|
+
pointer: "disabled" !== btnState,
|
|
224
|
+
fill: iconFill
|
|
224
225
|
})
|
|
225
226
|
}), playing && iconLeft && jsx("div", {
|
|
226
227
|
className: css.icon,
|
|
@@ -261,7 +262,8 @@ const ButtonComponent = forwardRef((props, buttonRef) => {
|
|
|
261
262
|
name: iconRight,
|
|
262
263
|
size: sizingStyles[size].iconSize,
|
|
263
264
|
strokeColor: colorStyles[variant].iconColor[btnState],
|
|
264
|
-
pointer: "disabled" !== btnState
|
|
265
|
+
pointer: "disabled" !== btnState,
|
|
266
|
+
fill: iconFill
|
|
265
267
|
})
|
|
266
268
|
}), jsx(Dot, {
|
|
267
269
|
show: !playing && showDot
|
|
@@ -5,9 +5,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
|
|
6
6
|
import React, { useState, useEffect, useCallback, useMemo, useRef } from "react";
|
|
7
7
|
|
|
8
|
-
import { s as setStyle } from "./misc-
|
|
8
|
+
import { s as setStyle } from "./misc-Bjbro8Xe.mjs";
|
|
9
9
|
|
|
10
|
-
import { I as Icon } from "./Icon-
|
|
10
|
+
import { I as Icon } from "./Icon-BOJAk-hM.mjs";
|
|
11
11
|
|
|
12
12
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
13
13
|
|
|
@@ -9,15 +9,15 @@ import { useTheme } from "../hooks/useTheme.mjs";
|
|
|
9
9
|
|
|
10
10
|
import "../theme/colors.mjs";
|
|
11
11
|
|
|
12
|
-
import { a as accessibleKeyDown } from "./misc-
|
|
12
|
+
import { a as accessibleKeyDown } from "./misc-Bjbro8Xe.mjs";
|
|
13
13
|
|
|
14
14
|
import { a as addOpacity } from "./colors-FQ0uNQcW.mjs";
|
|
15
15
|
|
|
16
16
|
import "../hooks/useWindow.mjs";
|
|
17
17
|
|
|
18
|
-
import { A as Avatar } from "./Avatar-
|
|
18
|
+
import { A as Avatar } from "./Avatar-Ds6MWC2c.mjs";
|
|
19
19
|
|
|
20
|
-
import { I as Icon } from "./Icon-
|
|
20
|
+
import { I as Icon } from "./Icon-BOJAk-hM.mjs";
|
|
21
21
|
|
|
22
22
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
23
23
|
|
|
@@ -7,9 +7,9 @@ import { motion } from "motion/react";
|
|
|
7
7
|
|
|
8
8
|
import React, { useState, useEffect, useMemo, useCallback } from "react";
|
|
9
9
|
|
|
10
|
-
import { a as accessibleKeyDown } from "./misc-
|
|
10
|
+
import { a as accessibleKeyDown } from "./misc-Bjbro8Xe.mjs";
|
|
11
11
|
|
|
12
|
-
import { I as Icon } from "./Icon-
|
|
12
|
+
import { I as Icon } from "./Icon-BOJAk-hM.mjs";
|
|
13
13
|
|
|
14
14
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
15
15
|
|
|
@@ -5,9 +5,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
5
5
|
|
|
6
6
|
import React, { useState, useCallback, useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import { s as setStyle, a as accessibleKeyDown } from "./misc-
|
|
8
|
+
import { s as setStyle, a as accessibleKeyDown } from "./misc-Bjbro8Xe.mjs";
|
|
9
9
|
|
|
10
|
-
import { I as Icon } from "./Icon-
|
|
10
|
+
import { I as Icon } from "./Icon-BOJAk-hM.mjs";
|
|
11
11
|
|
|
12
12
|
import { T as ToolTipType } from "./sharedTypes-tn9-uJvb.mjs";
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ import { motion } from "motion/react";
|
|
|
7
7
|
|
|
8
8
|
import React, { useRef, useState, useCallback, useEffect, useMemo } from "react";
|
|
9
9
|
|
|
10
|
-
import { b as cleanString } from "./misc-
|
|
10
|
+
import { b as cleanString } from "./misc-Bjbro8Xe.mjs";
|
|
11
11
|
|
|
12
12
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
13
13
|
|
|
@@ -9,7 +9,7 @@ import { useTheme } from "../hooks/useTheme.mjs";
|
|
|
9
9
|
|
|
10
10
|
import "../theme/colors.mjs";
|
|
11
11
|
|
|
12
|
-
import { p as pointerPosition } from "./misc-
|
|
12
|
+
import { p as pointerPosition } from "./misc-Bjbro8Xe.mjs";
|
|
13
13
|
|
|
14
14
|
import "../hooks/useWindow.mjs";
|
|
15
15
|
|
|
@@ -28,10 +28,10 @@ function normalizeConstraintValue(value, containerWidth, fallback) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
function resolveConstraints(sizeConstraints, containerWidth) {
|
|
31
|
-
const initial = normalizeConstraintValue(sizeConstraints.initial, containerWidth,
|
|
31
|
+
const initial = normalizeConstraintValue(sizeConstraints.initial, containerWidth, sizeConstraints.initial);
|
|
32
32
|
return {
|
|
33
|
-
initial:
|
|
34
|
-
min: min,
|
|
33
|
+
initial: initial,
|
|
34
|
+
min: normalizeConstraintValue(sizeConstraints.min, containerWidth, initial),
|
|
35
35
|
max: normalizeConstraintValue(sizeConstraints.max, containerWidth, initial)
|
|
36
36
|
};
|
|
37
37
|
}
|
|
@@ -41,11 +41,14 @@ const DraggablePanel = React.memo(props => {
|
|
|
41
41
|
initial: 250,
|
|
42
42
|
min: 250,
|
|
43
43
|
max: 500
|
|
44
|
-
},
|
|
44
|
+
}, isClosed: isClosed = !0, resizeHandle: resizeHandle = {
|
|
45
45
|
width: 10,
|
|
46
46
|
color: "transparent",
|
|
47
47
|
offsetX: !0
|
|
48
|
-
}, borderRight: borderRight = "1px solid var(--core-outline-
|
|
48
|
+
}, borderRight: borderRight = "1px solid var(--core-outline-secondary)", borderLeft: borderLeft = "1px solid var(--core-outline-secondary)", bgColor: bgColor = "transparent", drags: drags = "right", isTouchDevice: isTouchDevice = !1, disableOnContext: disableOnContext = !1, dragHandle: dragHandle = !0, dragHandleStyle: dragHandleStyle = {
|
|
49
|
+
height: 24,
|
|
50
|
+
width: 9
|
|
51
|
+
}, containerRef: containerRef, onResize: onResize = () => null, onResizeStart: onResizeStart = () => null, onResizeEnd: onResizeEnd = () => null} = props, divAttributes = __rest(props, [ "children", "sizeConstraints", "isClosed", "resizeHandle", "borderRight", "borderLeft", "bgColor", "drags", "isTouchDevice", "disableOnContext", "dragHandle", "dragHandleStyle", "containerRef", "onResize", "onResizeStart", "onResizeEnd" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", handle = useRef(null), div = useRef(null), [isDragging, setIsDragging] = useState(!1), isOver = useRef(!1), gripper = Object.assign({}, resizeHandle), containerSize = useObserveResize(containerRef), panelSize = useObserveResize(div), [handleHighlight, setHandleHighlight] = useState(!1), [lastWidth, setLastWidth] = useState(null), [panelClosed, setPanelClosed] = useState(isClosed), [constraints, setConstraints] = useState(() => resolveConstraints(sizeConstraints)), [contWidth, setContWidth] = useState(void 0), timer = useRef(null), closed = panelSize.width <= 1, startX = useRef(0), startWidth = useRef(0), divWidth = useRef(0), divHeight = useRef(0), deltaWidth = useRef(0), handleWindowResize = useCallback(() => {
|
|
49
52
|
(null == containerRef ? void 0 : containerRef.current) || setContWidth(window.innerWidth);
|
|
50
53
|
}, [ containerRef ]), handleMouseOver = useCallback(() => {
|
|
51
54
|
isOver.current = !0, setHighlight(!0);
|
|
@@ -80,7 +83,7 @@ const DraggablePanel = React.memo(props => {
|
|
|
80
83
|
timer.current && clearTimeout(timer.current), state ? timer.current = setTimeout(() => {
|
|
81
84
|
setHandleHighlight(state);
|
|
82
85
|
}, isTouchDevice ? 0 : 350) : setHandleHighlight(!1);
|
|
83
|
-
}, [ isTouchDevice ]), getClientX = useCallback(e => pointerPosition(e), []), getNewWidth = useCallback(clientX =>
|
|
86
|
+
}, [ isTouchDevice ]), getClientX = useCallback(e => pointerPosition(e), []), getNewWidth = useCallback(clientX => "right" === drags ? startWidth.current + clientX - startX.current : startWidth.current - clientX + startX.current, [ drags ]), canDrag = useCallback((newWidth, clientX) => {
|
|
84
87
|
if (null == constraints ? void 0 : constraints.min) {
|
|
85
88
|
if (newWidth <= constraints.min) return !1;
|
|
86
89
|
if (newWidth < constraints.min) return !1;
|
|
@@ -116,7 +119,7 @@ const DraggablePanel = React.memo(props => {
|
|
|
116
119
|
onResize(update), onResizeEnd(update);
|
|
117
120
|
}
|
|
118
121
|
setLastWidth(divWidth.current), isOver.current || setHighlight(!1);
|
|
119
|
-
}, [ doDrag, onResizeEnd, onResize, setHighlight ]), transition = useMemo(() =>
|
|
122
|
+
}, [ doDrag, onResizeEnd, onResize, setHighlight ]), transition = useMemo(() => "width var(--motion-water-duration) var(--motion-water)", []), initDrag = useCallback(e => {
|
|
120
123
|
if ((null == div ? void 0 : div.current) && document.defaultView) {
|
|
121
124
|
setIsDragging(!0);
|
|
122
125
|
const el = div.current;
|
|
@@ -142,11 +145,11 @@ const DraggablePanel = React.memo(props => {
|
|
|
142
145
|
hl && (hl.removeEventListener("mousedown", initDrag, !1), hl.removeEventListener("touchstart", initDrag));
|
|
143
146
|
};
|
|
144
147
|
}, [ drags, initDrag ]);
|
|
145
|
-
const leftRightStyle = useMemo(() =>
|
|
148
|
+
const leftRightStyle = useMemo(() => "right" === drags ? {
|
|
146
149
|
right: isTouchDevice ? -22 : -(gripper.width || 10) / 2
|
|
147
150
|
} : {
|
|
148
151
|
left: isTouchDevice ? -22 : -(gripper.width || 10) / 2
|
|
149
|
-
}, [
|
|
152
|
+
}, [ drags, isTouchDevice, gripper.width ]), normalizeWidth = useCallback(width => "number" == typeof width ? width <= 1 && width >= 0 ? 100 * width + "%" : `${width}px` : width, []), width = useMemo(() => drags ? panelClosed ? 0 : lastWidth || normalizeWidth(constraints.initial) : "100%", [ drags, panelClosed, lastWidth, constraints.initial, normalizeWidth ]), cssVars = useMemo(() => ({
|
|
150
153
|
"--panel-bg": null != bgColor ? bgColor : "transparent"
|
|
151
154
|
}), [ bgColor ]);
|
|
152
155
|
return jsxs("div", Object.assign({
|
|
@@ -160,8 +163,8 @@ const DraggablePanel = React.memo(props => {
|
|
|
160
163
|
height: "100%",
|
|
161
164
|
maxWidth: drags ? constraints.max : "unset",
|
|
162
165
|
transition: isDragging ? "" : transition,
|
|
163
|
-
borderRight:
|
|
164
|
-
borderLeft:
|
|
166
|
+
borderRight: closed || "right" !== drags ? "none" : borderRight,
|
|
167
|
+
borderLeft: closed || "left" !== drags ? "none" : borderLeft
|
|
165
168
|
})
|
|
166
169
|
}, rest, {
|
|
167
170
|
children: [ jsxs("div", {
|
|
@@ -203,7 +206,7 @@ const DraggablePanel = React.memo(props => {
|
|
|
203
206
|
}) ]
|
|
204
207
|
}));
|
|
205
208
|
}), DragHandle = React.memo(props => {
|
|
206
|
-
const {width: width = 6, height: height = 6, radius: radius = 100, stroke: stroke = 1, color: color = "var(--core-surface-primary)", strokeColor: strokeColor = "var(--core-outline-
|
|
209
|
+
const {width: width = 6, height: height = 6, radius: radius = 100, stroke: stroke = 1, color: color = "var(--core-surface-primary-tint)", strokeColor: strokeColor = "var(--core-outline-secondary)"} = props, cssVars = useMemo(() => ({
|
|
207
210
|
"--drag-handle-width": `${width}px`,
|
|
208
211
|
"--drag-handle-height": `${height}px`,
|
|
209
212
|
"--drag-handle-radius": `${radius}px`,
|
|
@@ -5,15 +5,16 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
|
|
6
6
|
import React, { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import { s as setStyle } from "./misc-
|
|
8
|
+
import { s as setStyle } from "./misc-Bjbro8Xe.mjs";
|
|
9
9
|
|
|
10
|
-
import { I as Icon } from "./Icon-
|
|
10
|
+
import { I as Icon } from "./Icon-BOJAk-hM.mjs";
|
|
11
11
|
|
|
12
12
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
13
13
|
|
|
14
14
|
var css = {
|
|
15
15
|
wrapper: "DropDown-module_wrapper__CyX0u flexBox-module_rowStart__4tcxS",
|
|
16
16
|
face: "DropDown-module_face__6gyF3 flexBox-module_rowStart__4tcxS",
|
|
17
|
+
faceText: "DropDown-module_faceText__glhB3",
|
|
17
18
|
label: "DropDown-module_label__Mrwbp flexBox-module_rowStart__4tcxS",
|
|
18
19
|
xs: "DropDown-module_xs__7L71q type-module_body-xs-regular__ZAFft",
|
|
19
20
|
s: "DropDown-module_s__vAxXD type-module_body-s-regular__vRHSP",
|
|
@@ -28,7 +29,7 @@ function resolveValueKey(value, valueKey) {
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
function DropDownComponent(props) {
|
|
31
|
-
const {name: name = "drop-down-select", label: label, labelColor: labelColor = "var(--core-text-primary)", size: size = "m", width: width = "100%", height: height = "auto", selectedIndex: selectedIndex, selectedValue: selectedValue, valueKey: valueKey, options: options = [], placeholder: placeholder = !0, borderRadius: borderRadius =
|
|
32
|
+
const {name: name = "drop-down-select", label: label, labelColor: labelColor = "var(--core-text-primary)", size: size = "m", width: width = "100%", height: height = "auto", inline: inline = !1, selectedIndex: selectedIndex, selectedValue: selectedValue, valueKey: valueKey, options: options = [], placeholder: placeholder = !0, borderRadius: borderRadius = 8, backgroundColor: backgroundColor = "var(--core-surface-secondary)", bgColor: bgColor = "var(--core-surface-secondary)", iconColor: iconColor = "var(--core-text-primary)", textColor: textColor = "var(--core-text-primary)", borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-outline-primary)", paddingLeft: paddingLeft = "10px", paddingRight: paddingRight = "8px", paddingTop: paddingTop = "8px", paddingBottom: paddingBottom = "8px", borderStyle: borderStyle = "box", iconSize: iconSize = 20, disabled: disabled = !1, error: error = !1, gap: gap = 8, onChange: onChange = () => null, onOption: onOption = () => null} = props, divAttributes = __rest(props, [ "name", "label", "labelColor", "size", "width", "height", "inline", "selectedIndex", "selectedValue", "valueKey", "options", "placeholder", "borderRadius", "backgroundColor", "bgColor", "iconColor", "textColor", "borderWidth", "borderSize", "borderColor", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "borderStyle", "iconSize", "disabled", "error", "gap", "onChange", "onOption" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, [index, setIndex] = useState(null != selectedIndex ? selectedIndex : 0), [selectedText, setSelectedText] = useState("Select an option"), ref = useRef(null);
|
|
32
33
|
useEffect(() => {
|
|
33
34
|
if (null == selectedValue && void 0 !== selectedIndex && (null == ref ? void 0 : ref.current)) {
|
|
34
35
|
if (!(null == options ? void 0 : options[selectedIndex])) return;
|
|
@@ -58,13 +59,11 @@ function DropDownComponent(props) {
|
|
|
58
59
|
disabled && e.preventDefault();
|
|
59
60
|
}, [ disabled ]), handleSelectChange = useCallback(e => {
|
|
60
61
|
handleChange(e.target.selectedIndex);
|
|
61
|
-
}, [ handleChange ]), setTextColor = useMemo(() => disabled ? "var(--core-text-disabled)" : placeholder && 0 === index ? "var(--core-text-tertiary)" : textColor, [ disabled, placeholder, index, textColor ]), setLabelColor = useMemo(() => disabled ? "var(--core-text-disabled)" : labelColor, [ disabled, labelColor ]), setIconColor = useMemo(() => disabled ? "var(--core-text-disabled)" : iconColor, [ disabled, iconColor ])
|
|
62
|
-
useMemo(() => disabled ? "var(--core-outline-primary)" : error ? "var(--feedback-warning)" : borderColor, [ disabled, error, borderColor ]);
|
|
63
|
-
const setPadding = useMemo(() => "box" === borderStyle ? `${setStyle(paddingTop)} ${setStyle(paddingRight)} ${setStyle(paddingBottom)} ${setStyle(paddingLeft)}` : `0 0 ${setStyle(paddingBottom)} 0`, [ paddingTop, paddingRight, paddingBottom, paddingLeft, borderStyle ]), setBorder = useMemo(() => "box" === borderStyle ? `${setStyle(resolvedBorderWidth)} solid ${setStyle(borderColor)}` : "unset", [ resolvedBorderWidth, borderColor, borderStyle ]), setBorderBottom = useMemo(() => "none" !== borderStyle ? `${setStyle(resolvedBorderWidth)} solid ${setStyle(borderColor)}` : "unset", [ resolvedBorderWidth, borderColor, borderStyle ]), setBorderRadius = useMemo(() => "box" !== borderStyle ? 0 : `${borderRadius}px`, [ borderStyle, borderRadius ]), cssVars = useMemo(() => ({
|
|
62
|
+
}, [ handleChange ]), setTextColor = useMemo(() => disabled ? "var(--core-text-disabled)" : placeholder && 0 === index ? "var(--core-text-tertiary)" : textColor, [ disabled, placeholder, index, textColor ]), setLabelColor = useMemo(() => disabled ? "var(--core-text-disabled)" : labelColor, [ disabled, labelColor ]), setIconColor = useMemo(() => disabled ? "var(--core-text-disabled)" : iconColor, [ disabled, iconColor ]), setBorderColor = useMemo(() => disabled ? "var(--core-outline-primary)" : error ? "var(--feedback-warning)" : borderColor, [ disabled, error, borderColor ]), setPadding = useMemo(() => "box" === borderStyle ? `${setStyle(paddingTop)} ${setStyle(paddingRight)} ${setStyle(paddingBottom)} ${setStyle(paddingLeft)}` : `0 0 ${setStyle(paddingBottom)} 0`, [ paddingTop, paddingRight, paddingBottom, paddingLeft, borderStyle ]), setBorder = useMemo(() => "box" === borderStyle ? `${setStyle(resolvedBorderWidth)} solid ${setBorderColor}` : "unset", [ resolvedBorderWidth, setBorderColor, borderStyle ]), setBorderBottom = useMemo(() => "none" !== borderStyle ? `${setStyle(resolvedBorderWidth)} solid ${setStyle(borderColor)}` : "unset", [ resolvedBorderWidth, borderColor, borderStyle ]), setBorderRadius = useMemo(() => "box" !== borderStyle ? 0 : `${borderRadius}px`, [ borderStyle, borderRadius ]), cssVars = useMemo(() => ({
|
|
64
63
|
"--dd-gap": setStyle(gap),
|
|
65
64
|
"--dd-height": setStyle(height),
|
|
66
65
|
"--dd-width": setStyle(width),
|
|
67
|
-
"--dd-margin": "
|
|
66
|
+
"--dd-margin": inline ? "0 4px" : "0",
|
|
68
67
|
"--dd-border-radius": setBorderRadius,
|
|
69
68
|
"--dd-border": setBorder,
|
|
70
69
|
"--dd-border-bottom": setBorderBottom,
|
|
@@ -72,20 +71,24 @@ function DropDownComponent(props) {
|
|
|
72
71
|
"--dd-bg-color": null != resolvedBackgroundColor ? resolvedBackgroundColor : "transparent",
|
|
73
72
|
"--dd-padding": setPadding,
|
|
74
73
|
"--dd-icon-size": `${iconSize}px`,
|
|
75
|
-
"--dd-label-color": setLabelColor
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
"--dd-label-color": setLabelColor,
|
|
75
|
+
"--dd-display": inline ? "inline-flex" : "flex"
|
|
76
|
+
}), [ gap, height, width, setBorderRadius, setBorder, setBorderBottom, setTextColor, resolvedBackgroundColor, setPadding, setLabelColor, iconSize, inline ]);
|
|
77
|
+
return jsxs("span", Object.assign({
|
|
78
78
|
id: divId,
|
|
79
79
|
className: `${css.wrapper}${divClass}`,
|
|
80
80
|
style: Object.assign(Object.assign({}, divStyle), cssVars)
|
|
81
81
|
}, rest, {
|
|
82
|
-
children: [ jsx("
|
|
82
|
+
children: [ label && jsx("span", {
|
|
83
83
|
className: `${css.label} ${css[size]}`,
|
|
84
84
|
children: label
|
|
85
|
-
}), jsx("
|
|
85
|
+
}), jsx("span", {
|
|
86
86
|
className: `${css.face} ${css[size]}`,
|
|
87
|
-
children:
|
|
88
|
-
|
|
87
|
+
children: jsx("span", {
|
|
88
|
+
className: css.faceText,
|
|
89
|
+
children: displayText
|
|
90
|
+
})
|
|
91
|
+
}), jsx("span", {
|
|
89
92
|
className: css.chevron,
|
|
90
93
|
children: jsx(Icon, {
|
|
91
94
|
name: "chevron down",
|
|
@@ -104,7 +107,7 @@ function DropDownComponent(props) {
|
|
|
104
107
|
}));
|
|
105
108
|
}
|
|
106
109
|
|
|
107
|
-
styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.DropDown-module_wrapper__CyX0u {\n\
|
|
110
|
+
styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.DropDown-module_wrapper__CyX0u {\n\tdisplay: var(--dd-display) !important;\n\tpadding: var(--dd-padding) !important;\n\tmargin: var(--dd-margin) !important;\n\tposition: relative;\n\tgap: var(--dd-gap);\n\twidth: var(--dd-width);\n\tborder-radius: var(--dd-border-radius);\n\tbackground-color: var(--dd-bg-color);\n\tborder: var(--dd-border);\n\tborder-bottom: var(--dd-border-bottom);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.DropDown-module_face__6gyF3 {\n\toverflow: hidden;\n\tmin-width: 0;\n\tflex: 1;\n}\n\n.DropDown-module_faceText__glhB3 {\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 1;\n\t-webkit-box-orient: vertical;\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tword-break: break-all;\n\tcolor: var(--dd-color);\n\tmin-width: 0;\n}\n\n.DropDown-module_label__Mrwbp {\n\twidth: min-content;\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n\tcolor: var(--dd-label-color);\n}\n\n.DropDown-module_xs__7L71q {\n}\n\n.DropDown-module_s__vAxXD {\n}\n\n.DropDown-module_m__K6JPk {\n}\n\n.DropDown-module_l__Kib48 {\n}\n\n.DropDown-module_chevron__LkYsE {\n\tmin-height: var(--dd-icon-size);\n\tmax-height: var(--dd-icon-size);\n\tmin-width: var(--dd-icon-size);\n\tmax-width: var(--dd-icon-size);\n}\n\n.DropDown-module_select__mzNnv {\n\tposition: absolute;\n\topacity: 0;\n\twidth: 100%;\n\theight: 100%;\n\tfont-size: 14px;\n\tbackground-color: #1f99cd;\n\tbackground-position: right 10px center;\n\tbackground-repeat: no-repeat;\n\tbackground-size: auto 50%;\n\tborder: none;\n\toutline: none;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\tappearance: none;\n\t&::-ms-expand {\n\t\tdisplay: none;\n\t}\n}\n"),
|
|
108
111
|
DropDownComponent.displayName = "DropDown";
|
|
109
112
|
|
|
110
113
|
const DropDown = React.memo(DropDownComponent);
|
|
@@ -5,13 +5,13 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
|
|
6
6
|
import React, { useCallback, useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import { s as setStyle, a as accessibleKeyDown } from "./misc-
|
|
8
|
+
import { s as setStyle, a as accessibleKeyDown } from "./misc-Bjbro8Xe.mjs";
|
|
9
9
|
|
|
10
|
-
import { F as FileIcon } from "./FileIcon-
|
|
10
|
+
import { F as FileIcon } from "./FileIcon-fJV_Cl6v.mjs";
|
|
11
11
|
|
|
12
|
-
import { I as Icon } from "./Icon-
|
|
12
|
+
import { I as Icon } from "./Icon-BOJAk-hM.mjs";
|
|
13
13
|
|
|
14
|
-
import { P as ProgressIndicator } from "./ProgressIndicator-
|
|
14
|
+
import { P as ProgressIndicator } from "./ProgressIndicator-d2JGUDW_.mjs";
|
|
15
15
|
|
|
16
16
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
17
17
|
|