@apple-pie/slice 0.1.28 → 0.1.30
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/README.md +164 -3
- package/dist/cjs/chunks/{Avatar-Dg8ZHnw6.js → Avatar-CqUSRzVd.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-F8eSiMwn.js → AvatarGroup-DhGp_qLw.js} +1 -1
- package/dist/cjs/chunks/{Button-Dic9Rfkr.js → Button-PsJx1WmV.js} +1 -1
- package/dist/cjs/chunks/{ButtonBar-C7tJ6pDM.js → ButtonBar-8zm6a_h7.js} +1 -1
- package/dist/cjs/chunks/{Camera-DfnOBHeI.js → Camera-zFyIXcge.js} +2 -2
- package/dist/cjs/chunks/{CheckBox-Cxzt7DJo.js → CheckBox-Cbh6UK-7.js} +1 -1
- package/dist/cjs/chunks/{Chip-DKbhpeho.js → Chip-DcS8dtW2.js} +1 -1
- package/dist/cjs/chunks/{DivInput-DWPwVUs_.js → DivInput-2cMdJQ9U.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-DuOxkekq.js → DrggablePanel-P7TgBI3j.js} +4 -4
- package/dist/cjs/chunks/{DropDown-BcRH7Fle.js → DropDown-B0970yVe.js} +11 -10
- package/dist/cjs/chunks/{FileIcon-DgRlhqzv.js → FileIcon-PuDoz0mF.js} +1 -1
- package/dist/cjs/chunks/{FileList-S0Hf82-C.js → FileList-sDq1jK0b.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-BPnptnPL.js → FlexDiv-D4aSJC_G.js} +1 -1
- package/dist/cjs/chunks/{Grouper-CgkPu4sa.js → Grouper-Ccd-x_Nb.js} +1 -1
- package/dist/cjs/chunks/{Icon-UFrKtcYJ.js → Icon-BtcHXeqE.js} +84 -2
- package/dist/cjs/chunks/{IconButton-CaQ0SioJ.js → IconButton-CF4cR7Tr.js} +2 -2
- package/dist/cjs/chunks/{Label-Bxp2pCXf.js → Label-htjXHiQ4.js} +1 -1
- package/dist/cjs/chunks/{MdStreamBuffer-DObxjnAm.js → MdStreamBuffer-CvLO7CVi.js} +37 -3
- package/dist/cjs/chunks/Modal-C0Z59meI.js +101 -0
- package/dist/cjs/chunks/ModalController-13xmvKnm.js +70 -0
- package/dist/cjs/chunks/{Overlay-DDOvMM6L.js → Overlay-GXu6nMnw.js} +9 -3
- package/dist/cjs/chunks/{Pager-DO197OyC.js → Pager-D2_fshTy.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-n9CfW6jd.js → ProgressIndicator-D06PqCQk.js} +55 -51
- package/dist/cjs/chunks/{PromptInput-CI0iSYKL.js → PromptInput-DuE4vGxR.js} +1 -1
- package/dist/cjs/chunks/{RadioButton-JBNaNihZ.js → RadioButton-DPB2ZGVf.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-CW2pDNIq.js → RadioButtonList-N7Fmvr5W.js} +1 -1
- package/dist/cjs/chunks/{Slider-BAcaZUs2.js → Slider-BSy8xciG.js} +26 -31
- package/dist/cjs/chunks/{TabBar-Bpngr90Q.js → TabBar-BtFfMwiB.js} +10 -7
- package/dist/cjs/chunks/{TextArea-BZgwajEC.js → TextArea-CRiPRF8v.js} +1 -1
- package/dist/cjs/chunks/{TextField-x1MWESCA.js → TextField-Bh2EA082.js} +2 -2
- package/dist/cjs/chunks/{Tip-BZQhRyng.js → Tip-C5keUoHx.js} +1 -1
- package/dist/cjs/chunks/{Toast-cda-RInJ.js → Toast-CyiFOsI3.js} +19 -9
- package/dist/cjs/chunks/{ToggleButton-CuX1nQk4.js → ToggleButton-D5_WnW0o.js} +2 -2
- package/dist/cjs/chunks/{UploadArea-CiiKnWe7.js → UploadArea-KqES_OLl.js} +1 -1
- package/dist/cjs/chunks/{_types-Cqkxw-yc.js → _types-Bdqd2vHh.js} +6 -2
- package/dist/cjs/chunks/{microphoneStore-CgFohRfy.js → microphoneStore-D1fV_8QQ.js} +21 -4
- package/dist/cjs/chunks/{misc-BTF7BCZW.js → misc-QpU0XEOW.js} +17 -20
- package/dist/cjs/chunks/modalStore-7VjHHM8X.js +70 -0
- package/dist/cjs/chunks/{uploads-worker-mD8pcsGP.js → uploads-worker-Az040BSN.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-CxWIctvI.js → uploadsStore-8mOTz0Qe.js} +2 -2
- package/dist/cjs/chunks/volumeStore-Pv23v12t.js +95 -0
- 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 +4 -4
- package/dist/cjs/components/ButtonBar/index.js +2 -2
- package/dist/cjs/components/Camera/index.js +4 -4
- package/dist/cjs/components/CheckBox/index.js +2 -2
- package/dist/cjs/components/Chip/index.js +2 -2
- package/dist/cjs/components/DivInput/index.js +2 -2
- package/dist/cjs/components/DraggablePanel/index.js +2 -2
- package/dist/cjs/components/DropDown/index.js +2 -2
- package/dist/cjs/components/FileIcon/index.js +2 -2
- package/dist/cjs/components/FileList/index.js +3 -3
- package/dist/cjs/components/FlexDiv/index.js +1 -1
- package/dist/cjs/components/Grouper/index.js +2 -2
- package/dist/cjs/components/Icon/index.js +2 -2
- package/dist/cjs/components/IconButton/index.js +3 -3
- package/dist/cjs/components/Label/index.js +2 -2
- package/dist/cjs/components/Modal/index.js +14 -0
- package/dist/cjs/components/ModalController/index.js +7 -0
- package/dist/cjs/components/Overlay/index.js +1 -1
- package/dist/cjs/components/Pager/index.js +2 -2
- package/dist/cjs/components/Progress/index.js +2 -2
- package/dist/cjs/components/PromptInput/index.js +5 -5
- package/dist/cjs/components/RadioButton/index.js +2 -2
- package/dist/cjs/components/RadioButtonList/index.js +3 -3
- package/dist/cjs/components/Slider/index.js +2 -2
- package/dist/cjs/components/TabBar/index.js +3 -3
- package/dist/cjs/components/TextArea/index.js +5 -5
- package/dist/cjs/components/Textfield/index.js +4 -4
- package/dist/cjs/components/Tip/index.js +2 -2
- package/dist/cjs/components/Toast/index.js +4 -3
- package/dist/cjs/components/ToggleButton/index.js +5 -5
- package/dist/cjs/components/UploadArea/index.js +10 -10
- package/dist/cjs/hooks/useAudioRecorder.js +3 -4
- package/dist/cjs/hooks/useLocalStore.js +3 -9
- package/dist/cjs/hooks/useMdStreamBuffer.js +1 -1
- package/dist/cjs/hooks/useMicrophone.js +64 -24
- package/dist/cjs/hooks/useTrackRenders.js +1 -1
- package/dist/cjs/hooks.js +1 -1
- package/dist/cjs/index.js +7 -5
- package/dist/cjs/providers/ThemeProvider.js +2 -2
- package/dist/cjs/stores/microphone.js +5 -3
- package/dist/cjs/stores/modal.js +7 -0
- package/dist/cjs/stores/uploads.js +2 -2
- package/dist/cjs/stores/volume.js +10 -0
- package/dist/cjs/stores.js +30 -20
- package/dist/cjs/theme/colors.js +7 -1
- package/dist/cjs/utils/index.js +1 -1
- package/dist/cjs/utils/objects/index.js +1 -1
- package/dist/cjs/workers/uploads/uploads.js +1 -1
- package/dist/esm/chunks/{Avatar-m5-zleDk.mjs → Avatar-29zhNfxX.mjs} +1 -1
- package/dist/esm/chunks/{AvatarGroup-DlgP4lTS.mjs → AvatarGroup-C7YRtPmJ.mjs} +1 -1
- package/dist/esm/chunks/{Button-BIbAGVV8.mjs → Button-BQS3rwrS.mjs} +2 -2
- package/dist/esm/chunks/{ButtonBar-B-1YFX9u.mjs → ButtonBar-GLNRjmjv.mjs} +2 -2
- package/dist/esm/chunks/{Camera-BQBo2g52.mjs → Camera-CAp0Y2gN.mjs} +3 -3
- package/dist/esm/chunks/{CheckBox-DDwE1wkX.mjs → CheckBox-7TiT2U47.mjs} +2 -2
- package/dist/esm/chunks/{Chip-BuHc883v.mjs → Chip-CKsojimU.mjs} +2 -2
- package/dist/esm/chunks/{DivInput-WJltaCra.mjs → DivInput-g6F1YWTo.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-Dc6lqqfO.mjs → DrggablePanel-C0AmJy8g.mjs} +4 -4
- package/dist/esm/chunks/{DropDown-CdkEVTRk.mjs → DropDown-mwo8fY7p.mjs} +12 -11
- package/dist/esm/chunks/{FileIcon-Cufsp1gn.mjs → FileIcon-BQ2zZIW5.mjs} +1 -1
- package/dist/esm/chunks/{FileList-DN4Ubroe.mjs → FileList-fh-x9Dzm.mjs} +4 -4
- package/dist/esm/chunks/{FlexDiv-BWZ7f8mA.mjs → FlexDiv-DnY1_qk4.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-C4A3qYot.mjs → Grouper-naJMvpB9.mjs} +1 -1
- package/dist/esm/chunks/{Icon-DRzjkybv.mjs → Icon--RjjODc9.mjs} +85 -3
- package/dist/esm/chunks/{IconButton-b1v9Me0P.mjs → IconButton-ByBYppAj.mjs} +2 -2
- package/dist/esm/chunks/{Label-CvCDAg1y.mjs → Label-C04tD7UZ.mjs} +1 -1
- package/dist/esm/chunks/{MdStreamBuffer-DNXE4XbN.mjs → MdStreamBuffer-By7pHJQL.mjs} +37 -3
- package/dist/esm/chunks/Modal-B9ad9OfJ.mjs +115 -0
- package/dist/esm/chunks/ModalController-BO5FkAqu.mjs +80 -0
- package/dist/esm/chunks/{Overlay-DiSvgIQP.mjs → Overlay-sXM7cEYc.mjs} +9 -3
- package/dist/esm/chunks/{Pager-BoDLaKFh.mjs → Pager-Bz0FpgO5.mjs} +1 -1
- package/dist/esm/chunks/{ProgressIndicator-D5e7406q.mjs → ProgressIndicator-B5oByN3i.mjs} +56 -52
- package/dist/esm/chunks/{PromptInput-Dmx4sQZ3.mjs → PromptInput-Cwd53ux7.mjs} +3 -3
- package/dist/esm/chunks/{RadioButton-D2T-SsVw.mjs → RadioButton-CLeRiZ8x.mjs} +2 -2
- package/dist/esm/chunks/{RadioButtonList-BSPuAYoh.mjs → RadioButtonList-C_heuiis.mjs} +2 -2
- package/dist/esm/chunks/{Slider-Cav86rU6.mjs → Slider-XEV0D2Rd.mjs} +26 -31
- package/dist/esm/chunks/{TabBar-DBoZ8aoV.mjs → TabBar-kPZ6ZJxr.mjs} +11 -8
- package/dist/esm/chunks/{TextArea-CSUDfcYd.mjs → TextArea-CxscPLwN.mjs} +1 -1
- package/dist/esm/chunks/{TextField-Z1O858hB.mjs → TextField-DwVKlLI_.mjs} +4 -4
- package/dist/esm/chunks/{Tip-B8YrmJEt.mjs → Tip-C6EcX7_M.mjs} +1 -1
- package/dist/esm/chunks/{Toast-QQ6GMr5F.mjs → Toast-D4uMNvaa.mjs} +21 -9
- package/dist/esm/chunks/{ToggleButton-B5oobnXJ.mjs → ToggleButton-C0QIflzX.mjs} +3 -3
- package/dist/esm/chunks/{UploadArea-CJAQmqOS.mjs → UploadArea-je-1NhGb.mjs} +5 -5
- package/dist/esm/chunks/{_types-fSW-DudT.mjs → _types-BVrr_Khp.mjs} +6 -2
- package/dist/esm/chunks/{microphoneStore-t16oxjGB.mjs → microphoneStore-Dr3lxoWX.mjs} +19 -5
- package/dist/esm/chunks/{misc-BeEWwOaJ.mjs → misc-wS74txaa.mjs} +17 -20
- package/dist/esm/chunks/modalStore-BpWnLtOF.mjs +68 -0
- package/dist/esm/chunks/{uploads-worker-7X9EwX9N.mjs → uploads-worker-CYp-F4dz.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-B7VECR5Q.mjs → uploadsStore-DeRMJ5c9.mjs} +1 -1
- package/dist/esm/chunks/volumeStore-BX7QcrL-.mjs +90 -0
- 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 +4 -4
- package/dist/esm/components/ButtonBar/index.mjs +3 -3
- package/dist/esm/components/Camera/index.mjs +4 -4
- package/dist/esm/components/CheckBox/index.mjs +3 -3
- package/dist/esm/components/Chip/index.mjs +3 -3
- package/dist/esm/components/DivInput/index.mjs +2 -2
- package/dist/esm/components/DraggablePanel/index.mjs +2 -2
- package/dist/esm/components/DropDown/index.mjs +3 -3
- package/dist/esm/components/FileIcon/index.mjs +2 -2
- package/dist/esm/components/FileList/index.mjs +5 -5
- package/dist/esm/components/FlexDiv/index.mjs +1 -1
- package/dist/esm/components/Grouper/index.mjs +3 -3
- package/dist/esm/components/Icon/index.mjs +3 -3
- package/dist/esm/components/IconButton/index.mjs +3 -3
- package/dist/esm/components/Label/index.mjs +2 -2
- package/dist/esm/components/Modal/index.mjs +47 -0
- package/dist/esm/components/ModalController/index.mjs +17 -0
- package/dist/esm/components/Overlay/index.mjs +1 -1
- package/dist/esm/components/Pager/index.mjs +2 -2
- package/dist/esm/components/Progress/index.mjs +3 -3
- package/dist/esm/components/PromptInput/index.mjs +7 -7
- package/dist/esm/components/RadioButton/index.mjs +3 -3
- package/dist/esm/components/RadioButtonList/index.mjs +4 -4
- package/dist/esm/components/Slider/index.mjs +2 -2
- package/dist/esm/components/TabBar/index.mjs +4 -4
- package/dist/esm/components/TextArea/index.mjs +5 -5
- package/dist/esm/components/Textfield/index.mjs +6 -6
- package/dist/esm/components/Tip/index.mjs +2 -2
- package/dist/esm/components/Toast/index.mjs +5 -3
- package/dist/esm/components/ToggleButton/index.mjs +5 -5
- package/dist/esm/components/UploadArea/index.mjs +8 -8
- package/dist/esm/hooks/useAudioRecorder.mjs +3 -4
- package/dist/esm/hooks/useLocalStore.mjs +3 -9
- package/dist/esm/hooks/useMdStreamBuffer.mjs +1 -1
- package/dist/esm/hooks/useMicrophone.mjs +64 -24
- package/dist/esm/hooks/useTrackRenders.mjs +1 -1
- package/dist/esm/hooks.mjs +1 -1
- package/dist/esm/index.mjs +42 -34
- package/dist/esm/providers/ThemeProvider.mjs +2 -2
- package/dist/esm/stores/microphone.mjs +1 -1
- package/dist/esm/stores/modal.mjs +3 -0
- package/dist/esm/stores/uploads.mjs +2 -2
- package/dist/esm/stores/volume.mjs +5 -0
- package/dist/esm/stores.mjs +7 -3
- package/dist/esm/theme/colors.mjs +7 -1
- package/dist/esm/utils/index.mjs +2 -2
- package/dist/esm/utils/objects/index.mjs +1 -1
- package/dist/esm/workers/uploads/uploads.mjs +1 -1
- package/dist/types/components/DropDown/_types.d.ts +1 -0
- package/dist/types/components/Icon/_types.d.ts +4 -0
- package/dist/types/components/Modal/Modal.d.ts +3 -0
- package/dist/types/components/Modal/_types.d.ts +45 -0
- package/dist/types/components/Modal/index.d.ts +2 -0
- package/dist/types/components/ModalController/ModalController.d.ts +2 -0
- package/dist/types/components/ModalController/_types.d.ts +13 -0
- package/dist/types/components/ModalController/index.d.ts +2 -0
- package/dist/types/components/Overlay/_types.d.ts +4 -0
- package/dist/types/components/Progress/ProgressIndicator/ProgressIndicator.d.ts +1 -1
- package/dist/types/components/Progress/ProgressIndicator/_types.d.ts +2 -1
- 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 +3 -0
- package/dist/types/hooks/useMicrophone/useMicrophone.d.ts +4 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/stores/index.d.ts +2 -0
- package/dist/types/stores/microphone/_types.d.ts +4 -0
- package/dist/types/stores/microphone/index.d.ts +1 -1
- package/dist/types/stores/microphone/microphoneStore.d.ts +3 -0
- package/dist/types/stores/modal/_types.d.ts +27 -0
- package/dist/types/stores/modal/index.d.ts +2 -0
- package/dist/types/stores/modal/modalStore.d.ts +20 -0
- package/dist/types/stores/toast/_types.d.ts +3 -1
- 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/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
|
@@ -5,7 +5,7 @@ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/
|
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var misc = require("./misc-
|
|
8
|
+
var misc = require("./misc-QpU0XEOW.js");
|
|
9
9
|
|
|
10
10
|
require("../hooks/useWindow.js");
|
|
11
11
|
|
|
@@ -17,7 +17,21 @@ styleInject_es.styleInject(".Icon-module_icon__szG-X {\n\tcursor: var(--cursor);
|
|
|
17
17
|
* Static icon registry created once at module load.
|
|
18
18
|
* Each entry stores only icon line content renderers.
|
|
19
19
|
*/
|
|
20
|
-
const STATIC_ICON_REGISTRY = new Map([ [ "
|
|
20
|
+
const STATIC_ICON_REGISTRY = new Map([ [ "talk", {
|
|
21
|
+
line: ({strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
22
|
+
children: [ jsxRuntime.jsx("path", {
|
|
23
|
+
d: "M10,2.5c4.14,0,7.5,3.36,7.5,7.5s-3.36,7.5-7.5,7.5-7.5-3.36-7.5-7.5,3.36-7.5,7.5-7.5M10,1C5.03,1,1,5.03,1,10s4.03,9,9,9,9-4.03,9-9S14.97,1,10,1h0Z",
|
|
24
|
+
fill: strokeColor
|
|
25
|
+
}), jsxRuntime.jsx("path", {
|
|
26
|
+
d: "M1,10c0,3,1.47,5.65,3.73,7.28l1.7.24c.43.06.86.03,1.28-.02.96-.12,1.81-.82,1.92-1.81.11-1.06-.59-2.18-.06-2.67.22-.21.47-.37.64-.62.17-.27.1-.73-.15-.93-.44-.36-1.41-.24-1.83-.66-.16-.16-.24-.41-.21-.62.13-.8,2.13-1,2.72-1.61.29-.3.25-.79.09-1.15-.34-.78-.72-1.73.15-2.09l.66-.27c.39-.16.73-.46.86-.87.25-.82-.71-1.56-1.39-2.21-.31-.3-.58-.63-.84-.97-.09,0-.18-.01-.26-.01C5.03,1,1,5.03,1,10Z",
|
|
27
|
+
fill: strokeColor,
|
|
28
|
+
fillOpacity: fillColor
|
|
29
|
+
}), jsxRuntime.jsx("path", {
|
|
30
|
+
d: "M9.54,2.51c.17.2.34.39.52.55.09.09.18.17.28.26.13.13.32.3.47.46l-.41.17c-.78.32-1.13.86-1.29,1.27-.36.89-.08,1.79.19,2.45-.11.04-.23.09-.33.12-.94.35-2.22.82-2.44,2.15-.11.7.13,1.44.64,1.94.29.28.63.45.95.56-.42.77-.23,1.65-.11,2.22.07.32.14.64.11.85-.03.27-.34.45-.61.48-.17.02-.4.05-.61.05-.1,0-.19,0-.28-.02l-1.31-.18c-1.77-1.42-2.82-3.58-2.82-5.85,0-3.98,3.12-7.25,7.04-7.49M10,1C5.03,1,1,5.03,1,10c0,3,1.47,5.65,3.73,7.28l1.7.24c.16.02.32.03.49.03.27,0,.53-.02.79-.06.96-.12,1.81-.82,1.92-1.81.11-1.06-.59-2.18-.06-2.67.22-.21.47-.37.64-.62.17-.27.1-.73-.15-.93-.44-.36-1.41-.24-1.83-.66-.16-.16-.24-.41-.21-.62.13-.8,2.13-1,2.72-1.61.29-.3.25-.79.09-1.15-.34-.78-.72-1.73.15-2.09l.66-.27c.39-.16.73-.46.86-.87.25-.82-.71-1.56-1.39-2.21-.31-.3-.58-.63-.84-.97-.09,0-.18-.01-.26-.01h0Z",
|
|
31
|
+
fill: strokeColor
|
|
32
|
+
}) ]
|
|
33
|
+
})
|
|
34
|
+
} ], [ "speaker", {
|
|
21
35
|
line: ({fillColor: fillColor, strokeColor: strokeColor}) => jsxRuntime.jsx("path", {
|
|
22
36
|
d: "M4.71,7.95v4.13c0,.37.3.66.66.66h3.31c.08,0,.17.03.23.09l4.81,4.21c.22.19.56.04.56-.25V3.15c0-.25-.3-.37-.47-.2l-4.21,4.21c-.06.06-.15.1-.24.1h-3.97c-.37,0-.68.3-.68.68Z",
|
|
23
37
|
fill: strokeColor,
|
|
@@ -53,6 +67,46 @@ const STATIC_ICON_REGISTRY = new Map([ [ "speaker", {
|
|
|
53
67
|
fill: "none"
|
|
54
68
|
}) ]
|
|
55
69
|
})
|
|
70
|
+
} ], [ "speaker high", {
|
|
71
|
+
line: ({strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
72
|
+
children: [ jsxRuntime.jsx("path", {
|
|
73
|
+
d: "M11.24,17.87c-.26,0-.51-.09-.72-.27l-4.7-4.11h-3.16c-.78,0-1.41-.63-1.41-1.41v-4.13c0-.79.64-1.43,1.43-1.43h3.8l4.09-4.09c.29-.29.73-.38,1.12-.22.39.16.64.53.64.95v13.63c0,.43-.25.81-.64.99-.14.06-.3.1-.45.1Z",
|
|
74
|
+
fill: strokeColor,
|
|
75
|
+
fillOpacity: fillColor
|
|
76
|
+
}), jsxRuntime.jsx("path", {
|
|
77
|
+
d: "M11.24,17.87c-.26,0-.51-.09-.72-.27l-4.7-4.11h-3.16c-.78,0-1.41-.63-1.41-1.41v-4.13c0-.79.64-1.43,1.43-1.43h3.8l4.09-4.09c.29-.29.73-.38,1.12-.22.39.16.64.53.64.95v13.63c0,.43-.25.81-.64.99-.14.06-.3.1-.45.1ZM2.75,11.99h3.22c.27,0,.52.1.72.27l4.13,3.61V4.29l-3.41,3.41c-.21.21-.48.32-.77.32h-3.89v3.97Z",
|
|
78
|
+
fill: strokeColor
|
|
79
|
+
}), jsxRuntime.jsx("rect", {
|
|
80
|
+
x: "14.04",
|
|
81
|
+
y: "8",
|
|
82
|
+
width: "1.5",
|
|
83
|
+
height: "4",
|
|
84
|
+
fill: strokeColor
|
|
85
|
+
}), jsxRuntime.jsx("rect", {
|
|
86
|
+
x: "16.75",
|
|
87
|
+
y: "6",
|
|
88
|
+
width: "1.5",
|
|
89
|
+
height: "8",
|
|
90
|
+
fill: strokeColor
|
|
91
|
+
}) ]
|
|
92
|
+
})
|
|
93
|
+
} ], [ "speaker low", {
|
|
94
|
+
line: ({strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
95
|
+
children: [ jsxRuntime.jsx("path", {
|
|
96
|
+
d: "M12.85,17.87c-.26,0-.51-.09-.72-.27l-4.7-4.11h-3.16c-.78,0-1.41-.63-1.41-1.41v-4.13c0-.79.64-1.43,1.43-1.43h3.8l4.09-4.09c.3-.3.74-.38,1.12-.22.38.16.63.53.63.95v13.63c0,.43-.25.81-.64.99-.14.06-.3.1-.45.1Z",
|
|
97
|
+
fill: strokeColor,
|
|
98
|
+
fillOpacity: fillColor
|
|
99
|
+
}), jsxRuntime.jsx("path", {
|
|
100
|
+
d: "M12.85,17.87c-.26,0-.51-.09-.72-.27l-4.7-4.11h-3.16c-.78,0-1.41-.63-1.41-1.41v-4.13c0-.79.64-1.43,1.43-1.43h3.8l4.09-4.09c.3-.3.74-.38,1.12-.22.38.16.63.53.63.95v13.63c0,.43-.25.81-.64.99-.14.06-.3.1-.45.1ZM4.36,11.99h3.22c.27,0,.52.1.72.27l4.13,3.61V4.29l-3.41,3.41c-.2.2-.49.32-.77.32h-3.9v3.97Z",
|
|
101
|
+
fill: strokeColor
|
|
102
|
+
}), jsxRuntime.jsx("rect", {
|
|
103
|
+
x: "15.64",
|
|
104
|
+
y: "8",
|
|
105
|
+
width: "1.5",
|
|
106
|
+
height: "4",
|
|
107
|
+
fill: strokeColor
|
|
108
|
+
}) ]
|
|
109
|
+
})
|
|
56
110
|
} ], [ "laptop", {
|
|
57
111
|
line: ({fillColor: fillColor, strokeColor: strokeColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
58
112
|
children: [ jsxRuntime.jsx("rect", {
|
|
@@ -188,6 +242,34 @@ const STATIC_ICON_REGISTRY = new Map([ [ "speaker", {
|
|
|
188
242
|
fill: strokeColor
|
|
189
243
|
}) ]
|
|
190
244
|
})
|
|
245
|
+
} ], [ "sidebar split", {
|
|
246
|
+
line: ({fillColor: fillColor, strokeColor: strokeColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
247
|
+
children: [ jsxRuntime.jsx("rect", {
|
|
248
|
+
x: "10",
|
|
249
|
+
y: "4.5",
|
|
250
|
+
width: "8",
|
|
251
|
+
height: "11",
|
|
252
|
+
rx: "1",
|
|
253
|
+
ry: "1",
|
|
254
|
+
fill: strokeColor,
|
|
255
|
+
fillOpacity: fillColor
|
|
256
|
+
}), jsxRuntime.jsx("path", {
|
|
257
|
+
d: "M17,16.25H3c-.96,0-1.75-.78-1.75-1.75V5.5c0-.96.78-1.75,1.75-1.75h14c.96,0,1.75.78,1.75,1.75v9c0,.96-.78,1.75-1.75,1.75ZM3,5.25c-.14,0-.25.11-.25.25v9c0,.14.11.25.25.25h14c.14,0,.25-.11.25-.25V5.5c0-.14-.11-.25-.25-.25H3Z",
|
|
258
|
+
fill: strokeColor
|
|
259
|
+
}), jsxRuntime.jsx("rect", {
|
|
260
|
+
x: "9.25",
|
|
261
|
+
y: "4.5",
|
|
262
|
+
width: "1.5",
|
|
263
|
+
height: "11",
|
|
264
|
+
fill: strokeColor
|
|
265
|
+
}), jsxRuntime.jsx("rect", {
|
|
266
|
+
x: "10",
|
|
267
|
+
y: "9.5",
|
|
268
|
+
width: "8",
|
|
269
|
+
height: "1",
|
|
270
|
+
fill: strokeColor
|
|
271
|
+
}) ]
|
|
272
|
+
})
|
|
191
273
|
} ], [ "target", {
|
|
192
274
|
line: ({strokeColor: strokeColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
193
275
|
children: [ jsxRuntime.jsx("circle", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), Badge = require("./Badge-DjPJ_iJX.js"), Dot = require("./Dot-fKIwhjYA.js"), Icon = require("./Icon-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), Badge = require("./Badge-DjPJ_iJX.js"), Dot = require("./Dot-fKIwhjYA.js"), Icon = require("./Icon-BtcHXeqE.js"), sharedTypes = require("./sharedTypes-gCECyn2N.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_button = "IconButton-module_button__rziqa flexBox-module_row__z24tF", css_label = "IconButton-module_label__qWGFD flexBox-module_row__z24tF type-module_body-l-regular__lOYbg", css_icon = "IconButton-module_icon__2DDWy flexBox-module_row__z24tF", css_count = "IconButton-module_count__6r373 flexBox-module_row__z24tF";
|
|
5
5
|
|
|
6
|
-
styleInject_es.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.IconButton-module_button__rziqa {\n\tposition: relative;\n\tbackground: var(--ib-bg-color);\n\tborder-radius: var(--ib-border-radius);\n\tborder: var(--ib-border) solid var(--core-outline-primary);\n\tgap: 6px;\n\tcursor: var(--ib-cursor);\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-image: none;\n\toutline: none;\n\tmin-height: var(--ib-button-size);\n\theight: var(--ib-button-size);\n\tmin-width: var(--ib-button-size);\n\twidth: var(--ib-button-size);\n\t&:hover {\n\t\tbackground: var(--ib-bg-color-hover);\n\t}\n}\n\n.IconButton-module_label__qWGFD {\n\tcolor: var(--ib-color);\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tword-break: break-all;\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 1;\n\t-webkit-box-orient: vertical;\n}\n\n.IconButton-module_icon__2DDWy {\n\tmin-height: var(--ib-icon-size);\n\theight: var(--ib-icon-size);\n\tmin-width: var(--ib-icon-size);\n\twidth: var(--ib-icon-size);\n}\n\n.IconButton-module_count__6r373 {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\ttransform: translateX(5px) translateY(-2px);\n}\n");
|
|
6
|
+
styleInject_es.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.IconButton-module_button__rziqa {\n\tposition: relative;\n\tbackground: var(--ib-bg-color);\n\tborder-radius: var(--ib-border-radius);\n\tborder: var(--ib-border) solid var(--core-outline-primary);\n\tgap: 6px;\n\tcursor: var(--ib-cursor);\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-image: none;\n\toutline: none;\n\tmin-height: var(--ib-button-size);\n\theight: var(--ib-button-size);\n\tmin-width: var(--ib-button-size);\n\twidth: var(--ib-button-size);\n\tuser-select: none;\n\t-webkit-user-select: none;\n\t&:hover {\n\t\tbackground: var(--ib-bg-color-hover);\n\t}\n}\n\n.IconButton-module_label__qWGFD {\n\tcolor: var(--ib-color);\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tword-break: break-all;\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: 1;\n\t-webkit-box-orient: vertical;\n}\n\n.IconButton-module_icon__2DDWy {\n\tmin-height: var(--ib-icon-size);\n\theight: var(--ib-icon-size);\n\tmin-width: var(--ib-icon-size);\n\twidth: var(--ib-icon-size);\n}\n\n.IconButton-module_count__6r373 {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\ttransform: translateX(5px) translateY(-2px);\n}\n");
|
|
7
7
|
|
|
8
8
|
const IconButton = React.memo(props => {
|
|
9
9
|
const {frameSize: frameSize = 36, iconSize: iconSize = 20, round: round = !0, icon: icon = "more", borderRadius: borderRadius = 4, border: border = !1, tooltip: tooltip, color: color, colorOn: colorOn, iconFill: iconFill = !1, bgColor: bgColor = "var(--core-surface-secondary)", bgColorHover: bgColorHover = "var(--core-outline-primary)", bgColorOn: bgColorOn = "var(--core-outline-primary)", iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-text-primary)", iconColorHover: iconColorHover = "var(--core-text-primary)", transition: transition, variants: variants, initial: initial, animate: animate, exit: exit, fillColor: fillColor, label: label, hover: hover = !0, count: count = 0, toggle: toggle = !1, toggleIcon: toggleIcon = !1, isToggled: isToggled = !1, disabled: disabled = !1, showDot: showDot = !1, buttonSize: buttonSize = "m", onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "frameSize", "iconSize", "round", "icon", "borderRadius", "border", "tooltip", "color", "colorOn", "iconFill", "bgColor", "bgColorHover", "bgColorOn", "iconColor", "iconColorOn", "iconColorHover", "transition", "variants", "initial", "animate", "exit", "fillColor", "label", "hover", "count", "toggle", "toggleIcon", "isToggled", "disabled", "showDot", "buttonSize", "onClick", "onToolTip" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", ref = React.useRef(null), [on, setOn] = React.useState(isToggled), [hovered, setHovered] = React.useState(!1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var LabelBackground, tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-
|
|
4
|
+
var LabelBackground, tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-QpU0XEOW.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
|
|
5
5
|
label: "Label-module_label__RaRvM",
|
|
6
6
|
button: "Label-module_button__N8bcQ type-module_body-m-regular__LuQBA",
|
|
7
7
|
xs: "Label-module_xs__K9Ai6 type-module_body-xs-regular__ZAFft",
|
|
@@ -136,7 +136,8 @@ exports.MdBuffer = class {
|
|
|
136
136
|
constructor(options) {
|
|
137
137
|
var _a, _b, _c, _d, _e, rules;
|
|
138
138
|
this.committedRaw = "", this.activeRaw = "", this.frameHandle = null, this.completeSignal = !1,
|
|
139
|
-
this.endOfStreamToken = null == options ? void 0 : options.endOfStreamToken, this.
|
|
139
|
+
this.endOfStreamToken = null == options ? void 0 : options.endOfStreamToken, this.healthyEndMarker = null == options ? void 0 : options.healthyEndMarker,
|
|
140
|
+
this.htmlHandling = null !== (_a = null == options ? void 0 : options.htmlHandling) && void 0 !== _a ? _a : "ignore",
|
|
140
141
|
this.includeLinksAndImages = null !== (_b = null == options ? void 0 : options.includeLinksAndImages) && void 0 !== _b && _b,
|
|
141
142
|
this.onFlush = null == options ? void 0 : options.onFlush, this.requestFrame = null !== (_c = null == options ? void 0 : options.requestFrame) && void 0 !== _c ? _c : function() {
|
|
142
143
|
if ("undefined" != typeof globalThis && "function" == typeof globalThis.requestAnimationFrame) return globalThis.requestAnimationFrame.bind(globalThis);
|
|
@@ -215,7 +216,11 @@ exports.MdBuffer = class {
|
|
|
215
216
|
this.committedRaw += stablePrefix, this.activeRaw = this.activeRaw.slice(lastNewlineIndex + 1);
|
|
216
217
|
}
|
|
217
218
|
buildHealthyOutput() {
|
|
218
|
-
|
|
219
|
+
const healthyTail = this.buildHealthyTail(this.activeRaw);
|
|
220
|
+
return `${this.committedRaw}${this.applyHealthyEndMarker(this.activeRaw, healthyTail)}`;
|
|
221
|
+
}
|
|
222
|
+
applyHealthyEndMarker(rawTail, healthyTail) {
|
|
223
|
+
return this.healthyEndMarker ? 0 === healthyTail.length ? this.healthyEndMarker : healthyTail.endsWith("\n") && !rawTail.endsWith("\n") ? `${healthyTail.slice(0, -1)}${this.healthyEndMarker}\n` : `${healthyTail}${this.healthyEndMarker}` : healthyTail;
|
|
219
224
|
}
|
|
220
225
|
buildHealthyTail(value) {
|
|
221
226
|
const withHtmlHandling = "strip" === this.htmlHandling ? function(value) {
|
|
@@ -226,9 +231,38 @@ exports.MdBuffer = class {
|
|
|
226
231
|
/^<\/?[a-zA-Z][^>]*$/.test(trailingSegment) && (stripped = stripped.slice(0, lastOpenTag));
|
|
227
232
|
}
|
|
228
233
|
return stripped;
|
|
229
|
-
}(value) : value, withLinksAndImages = this.includeLinksAndImages ? this.closeLinksAndImages(
|
|
234
|
+
}(value) : value, withInlineSelects = this.closeTrailingInlineSelect(withHtmlHandling), withLinksAndImages = this.includeLinksAndImages ? this.closeLinksAndImages(withInlineSelects) : withInlineSelects;
|
|
230
235
|
return this.closeInlineMarkdown(withLinksAndImages);
|
|
231
236
|
}
|
|
237
|
+
closeTrailingInlineSelect(value) {
|
|
238
|
+
if (0 === value.length) return value;
|
|
239
|
+
let cursor = 0, selectStart = -1, lastCompleteBoundary = -1;
|
|
240
|
+
for (;cursor < value.length; ) {
|
|
241
|
+
if (isEscaped(value, cursor)) {
|
|
242
|
+
cursor += 1;
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
if ("$" !== value[cursor]) {
|
|
246
|
+
cursor += 1;
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
if ("$" !== value[cursor + 1]) {
|
|
250
|
+
if (cursor === value.length - 1) return -1 === selectStart ? value.slice(0, -1) : -1 === lastCompleteBoundary ? value.slice(0, selectStart) : value.slice(0, lastCompleteBoundary);
|
|
251
|
+
cursor += 1;
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
if (-1 === selectStart) {
|
|
255
|
+
selectStart = cursor, lastCompleteBoundary = -1, cursor += 2;
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
lastCompleteBoundary = cursor + 2;
|
|
259
|
+
const postMarkerCharacter = value[cursor + 2];
|
|
260
|
+
if (void 0 === postMarkerCharacter) return value.slice(0, lastCompleteBoundary);
|
|
261
|
+
/[\s,.!]/.test(postMarkerCharacter) ? (selectStart = -1, lastCompleteBoundary = -1,
|
|
262
|
+
cursor += 2) : cursor += 2;
|
|
263
|
+
}
|
|
264
|
+
return -1 === selectStart ? value : -1 === lastCompleteBoundary ? value.slice(0, selectStart) : value.slice(0, lastCompleteBoundary);
|
|
265
|
+
}
|
|
232
266
|
closeInlineMarkdown(value) {
|
|
233
267
|
const counts = function(value, rules) {
|
|
234
268
|
var _a;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-QpU0XEOW.js"), Button = require("./Button-PsJx1WmV.js"), Icon = require("./Icon-BtcHXeqE.js"), IconButton = require("./IconButton-CF4cR7Tr.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
|
|
4
|
+
wrapper: "Modal-module_wrapper__34Hds flexBox-module_columnBetween__ERfp7",
|
|
5
|
+
title: "Modal-module_title__A5OeE flexBox-module_rowBetween__5FEvi",
|
|
6
|
+
titleBlock: "Modal-module_titleBlock__HUepX flexBox-module_rowStart__4tcxS",
|
|
7
|
+
titleIcon: "Modal-module_titleIcon__xJYzy flexBox-module_row__z24tF",
|
|
8
|
+
content: "Modal-module_content__dWO-B flexBox-module_columnStart__C7P44",
|
|
9
|
+
actions: "Modal-module_actions__hY6zi flexBox-module_rowBetween__5FEvi",
|
|
10
|
+
leftActions: "Modal-module_leftActions__-M-DM flexBox-module_rowStart__4tcxS",
|
|
11
|
+
rightActions: "Modal-module_rightActions__IFgrN flexBox-module_rowEnd__rVdVm",
|
|
12
|
+
xs: "Modal-module_xs__iPcS9 type-module_body-xs-medium__s3KvF",
|
|
13
|
+
s: "Modal-module_s__31sYS type-module_body-s-medium__tjdFc",
|
|
14
|
+
m: "Modal-module_m__Iz82L type-module_body-m-medium__uW1on",
|
|
15
|
+
l: "Modal-module_l__pntdS type-module_body-l-medium__BqRC7",
|
|
16
|
+
xl: "Modal-module_xl__MR-68 type-module_body-xl-medium__BeyrH"
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
styleInject_es.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.Modal-module_wrapper__34Hds {\n\tposition: relative;\n\tmin-width: var(--modal-min-width);\n\tmin-height: var(--modal-min-height);\n\tmax-height: var(--modal-max-height);\n\tmax-width: var(--modal-max-width);\n\tbackground: var(--modal-background-color);\n\tborder: var(--modal-border-width) solid var(--modal-border-color);\n\tborder-radius: var(--modal-border-radius);\n\tbox-shadow: var(--surface-shadow-soft);\n\toverflow: hidden;\n}\n\n.Modal-module_title__A5OeE {\n\twidth: 100%;\n\tpadding: var(--modal-padding);\n\tgap: 16px;\n\tborder-bottom: var(--modal-title-border-width) solid\n\t\tvar(--modal-title-border-color);\n}\n\n.Modal-module_titleBlock__HUepX {\n\tcolor: var(--modal-title-color);\n\tflex: 1;\n\tgap: 6px;\n\ttouch-action: none;\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.Modal-module_titleIcon__xJYzy {\n\theight: 20px;\n\twidth: 20px;\n\tmin-height: 20px;\n\tmin-width: 20px;\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.Modal-module_content__dWO-B {\n\twidth: 100%;\n\tflex: 1;\n\tpadding-right: var(--modal-padding);\n\tpadding-left: var(--modal-padding);\n\toverflow: hidden;\n\toverflow-y: auto;\n\t&::-webkit-scrollbar {\n\t\tbackground-color: var(--modal-background);\n\t\twidth: 6px;\n\t}\n\n\t&::-webkit-scrollbar-track {\n\t\tbackground-color: var(--modal-background);\n\t\twidth: 6px;\n\t}\n\n\t&::-webkit-scrollbar-thumb {\n\t\tbackground-color: var(--modal-scroll-handle);\n\t\tborder-radius: 20px;\n\t\tborder: 1px solid var(--modal-background);\n\t}\n\n\t&::-webkit-scrollbar-thumb:hover {\n\t\tbackground-color: var(--modal-scroll-handle-hover);\n\t\tborder-radius: 20px;\n\t\tborder: 1px solid var(--modal-background);\n\t}\n}\n\n.Modal-module_actions__hY6zi {\n\twidth: 100%;\n\tpadding: var(--modal-padding);\n\tuser-select: none;\n\t-webkit-user-select: none;\n\tborder-top: var(--modal-actions-border-width) solid\n\t\tvar(--modal-actions-border-color);\n}\n\n.Modal-module_leftActions__-M-DM {\n\tgap: 8px;\n}\n\n.Modal-module_rightActions__IFgrN {\n\tgap: 8px;\n}\n\n.Modal-module_xs__iPcS9 {\n}\n\n.Modal-module_s__31sYS {\n}\n\n.Modal-module_m__Iz82L {\n}\n\n.Modal-module_l__pntdS {\n}\n\n.Modal-module_xl__MR-68 {\n}\n");
|
|
20
|
+
|
|
21
|
+
const Modal = React.memo(props => {
|
|
22
|
+
const {children: children, id: id, className: className, style: style, minWidth: minWidth = 300, minHeight: minHeight = 200, maxHeight: maxHeight = 400, maxWidth: maxWidth = 400, padding: padding, close: close = !0, title: title, titleSize: titleSize = "l", contentSize: contentSize = "m", actions: actions, titleIcon: titleIcon, titleBorderColor: titleBorderColor = "var(--core-outline-primary)", titleBorderWidth: titleBorderWidth = 0, actionsBorderColor: actionsBorderColor = "var(--core-outline-primary)", actionsBorderWidth: actionsBorderWidth = 0, onAction: onAction, onReject: onReject, onResolve: onResolve, onClose: onClose, onToolTip: onToolTip, onDragPointerDown: onDragPointerDown, backgroundColor: backgroundColor = "var(--core-surface-secondary)", titleColor: titleColor = "var(--core-text-special)", borderColor: borderColor = "var(--core-outline-primary)", borderRadius: borderRadius = 8, borderWidth: borderWidth = 1} = props, rest = tslib_es6.__rest(props, [ "children", "id", "className", "style", "minWidth", "minHeight", "maxHeight", "maxWidth", "padding", "close", "title", "titleSize", "contentSize", "actions", "titleIcon", "titleBorderColor", "titleBorderWidth", "actionsBorderColor", "actionsBorderWidth", "onAction", "onReject", "onResolve", "onClose", "onToolTip", "onDragPointerDown", "backgroundColor", "titleColor", "borderColor", "borderRadius", "borderWidth" ]), modalStyle = null != style ? style : {}, modalClass = className ? ` ${className}` : "", cssVars = React.useMemo(() => ({
|
|
23
|
+
"--modal-min-width": misc.setStyle(minWidth),
|
|
24
|
+
"--modal-min-height": misc.setStyle(minHeight),
|
|
25
|
+
"--modal-max-height": misc.setStyle(maxHeight),
|
|
26
|
+
"--modal-max-width": misc.setStyle(maxWidth),
|
|
27
|
+
"--modal-border-color": borderColor,
|
|
28
|
+
"--modal-title-color": titleColor,
|
|
29
|
+
"--modal-border-radius": misc.setStyle(borderRadius),
|
|
30
|
+
"--modal-border-width": misc.setStyle(borderWidth),
|
|
31
|
+
"--modal-padding": misc.setStyle(padding, 16),
|
|
32
|
+
"--modal-background-color": backgroundColor,
|
|
33
|
+
"--modal-title-border-color": titleBorderColor,
|
|
34
|
+
"--modal-title-border-width": misc.setStyle(titleBorderWidth),
|
|
35
|
+
"--modal-actions-border-color": actionsBorderColor,
|
|
36
|
+
"--modal-actions-border-width": misc.setStyle(actionsBorderWidth)
|
|
37
|
+
}), [ minWidth, minHeight, maxHeight, maxWidth, borderColor, titleColor, borderRadius, borderWidth, padding, titleBorderWidth, titleBorderColor, actionsBorderWidth, actionsBorderColor, backgroundColor ]), renderActions = position => null == actions ? void 0 : actions.map((action, index) => action.position || "left" !== position ? action.position && position !== action.position ? null : jsxRuntime.jsx(Button.Button, {
|
|
38
|
+
variant: action.primary ? "solid" : "outline",
|
|
39
|
+
label: action.label,
|
|
40
|
+
onClick: e => (action => {
|
|
41
|
+
const resolves = !action.promise || "resolve" === action.promise, rejects = "reject" === action.promise;
|
|
42
|
+
null == onAction || onAction(action.value), resolves && (null == onResolve || onResolve(action.value)),
|
|
43
|
+
rejects && (null == onReject || onReject(new Error("Modal rejected", {
|
|
44
|
+
cause: action.value
|
|
45
|
+
})));
|
|
46
|
+
})(action),
|
|
47
|
+
round: !0 === action.round,
|
|
48
|
+
iconLeft: action.iconLeft,
|
|
49
|
+
tooltip: action.tooltip,
|
|
50
|
+
onToolTip: tip => null == onToolTip ? void 0 : onToolTip(tip)
|
|
51
|
+
}, `${action.id}_${index}`) : null);
|
|
52
|
+
return jsxRuntime.jsxs("div", Object.assign({
|
|
53
|
+
id: id,
|
|
54
|
+
className: `${css.wrapper}${modalClass}`,
|
|
55
|
+
style: Object.assign(Object.assign({}, modalStyle), cssVars)
|
|
56
|
+
}, rest, {
|
|
57
|
+
children: [ (title || close) && jsxRuntime.jsxs("div", {
|
|
58
|
+
className: `${css.title} ${css[titleSize]}`,
|
|
59
|
+
children: [ jsxRuntime.jsxs("div", {
|
|
60
|
+
className: css.titleBlock,
|
|
61
|
+
onPointerDown: onDragPointerDown,
|
|
62
|
+
children: [ titleIcon && jsxRuntime.jsx("div", {
|
|
63
|
+
className: css.titleIcon,
|
|
64
|
+
children: jsxRuntime.jsx(Icon.Icon, {
|
|
65
|
+
name: titleIcon,
|
|
66
|
+
size: 20
|
|
67
|
+
})
|
|
68
|
+
}), title ]
|
|
69
|
+
}), close && jsxRuntime.jsx("div", {
|
|
70
|
+
className: css.close,
|
|
71
|
+
children: jsxRuntime.jsx("div", {
|
|
72
|
+
className: css.titleIcon,
|
|
73
|
+
children: jsxRuntime.jsx(IconButton.IconButton, {
|
|
74
|
+
tooltip: "close",
|
|
75
|
+
icon: "x",
|
|
76
|
+
onClick: () => {
|
|
77
|
+
null == onReject || onReject(new Error("Modal was closed", {
|
|
78
|
+
cause: "user action"
|
|
79
|
+
})), null == onClose || onClose();
|
|
80
|
+
},
|
|
81
|
+
onToolTip: tip => null == onToolTip ? void 0 : onToolTip(tip)
|
|
82
|
+
})
|
|
83
|
+
})
|
|
84
|
+
}) ]
|
|
85
|
+
}), jsxRuntime.jsx("div", {
|
|
86
|
+
className: `${css.content} ${css[contentSize]}`,
|
|
87
|
+
children: children
|
|
88
|
+
}), actions && actions.length > 0 && jsxRuntime.jsxs("div", {
|
|
89
|
+
className: css.actions,
|
|
90
|
+
children: [ jsxRuntime.jsx("div", {
|
|
91
|
+
className: css.leftActions,
|
|
92
|
+
children: renderActions("left")
|
|
93
|
+
}), jsxRuntime.jsx("div", {
|
|
94
|
+
className: css.rightActions,
|
|
95
|
+
children: renderActions("right")
|
|
96
|
+
}) ]
|
|
97
|
+
}) ]
|
|
98
|
+
}));
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
exports.Modal = Modal;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), Overlay = require("./Overlay-GXu6nMnw.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), modalStore = require("./modalStore-7VjHHM8X.js"), css_wrapper = "ModalController-module_wrapper__HkOoX flexBox-module_row__z24tF";
|
|
4
|
+
|
|
5
|
+
styleInject_es.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}.ModalController-module_wrapper__HkOoX {\n\tposition: absolute;\n\tz-index: var(--elevation-confirm);\n}\n");
|
|
6
|
+
|
|
7
|
+
const defaultTransition = {
|
|
8
|
+
ease: "easeOut",
|
|
9
|
+
duration: .25,
|
|
10
|
+
delay: .1
|
|
11
|
+
}, defaultVariants = {
|
|
12
|
+
initial: {
|
|
13
|
+
opacity: 0,
|
|
14
|
+
y: 20
|
|
15
|
+
},
|
|
16
|
+
animate: {
|
|
17
|
+
opacity: 1,
|
|
18
|
+
y: 0
|
|
19
|
+
},
|
|
20
|
+
exit: {
|
|
21
|
+
opacity: 0,
|
|
22
|
+
y: 20
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.ModalController = function(props) {
|
|
27
|
+
const {dragConstraintsRef: dragConstraintsRef, transition: transition = defaultTransition, variants: variants = defaultVariants, initial: initial = "initial", animate: animate = "animate", exit: exit = "exit", draggable: draggable = !0, overlayOpacity: overlayOpacity = .7, overlayColor: overlayColor = "rgb(0,0,0)"} = props, controls = react.useDragControls(), modal = modalStore.useModal(), resolve = modalStore.useModalActions().resolve, reject = modalStore.useModalActions().reject, hide = modalStore.useModalActions().hide, ModalComponent = null == modal ? void 0 : modal.component, modalProps = null == modal ? void 0 : modal.props;
|
|
28
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
29
|
+
children: [ jsxRuntime.jsx(Overlay.Overlay, {
|
|
30
|
+
show: !!modal,
|
|
31
|
+
type: "dark",
|
|
32
|
+
opacity: overlayOpacity,
|
|
33
|
+
color: overlayColor,
|
|
34
|
+
onClick: () => hide()
|
|
35
|
+
}), jsxRuntime.jsx(react.AnimatePresence, {
|
|
36
|
+
children: modal && ModalComponent && jsxRuntime.jsx(react.motion.div, {
|
|
37
|
+
className: css_wrapper,
|
|
38
|
+
variants: variants,
|
|
39
|
+
initial: initial,
|
|
40
|
+
animate: animate,
|
|
41
|
+
exit: exit,
|
|
42
|
+
transition: transition,
|
|
43
|
+
drag: draggable,
|
|
44
|
+
dragListener: !draggable && void 0,
|
|
45
|
+
dragControls: draggable ? controls : void 0,
|
|
46
|
+
dragConstraints: draggable ? dragConstraintsRef : void 0,
|
|
47
|
+
dragElastic: draggable ? 0 : void 0,
|
|
48
|
+
dragMomentum: !draggable && void 0,
|
|
49
|
+
children: jsxRuntime.jsx(ModalComponent, Object.assign({}, modalProps, {
|
|
50
|
+
onResolve: value => {
|
|
51
|
+
"function" == typeof (null == modalProps ? void 0 : modalProps.onResolve) && modalProps.onResolve(value),
|
|
52
|
+
resolve(value);
|
|
53
|
+
},
|
|
54
|
+
onReject: error => {
|
|
55
|
+
"function" == typeof (null == modalProps ? void 0 : modalProps.onReject) && modalProps.onReject(error),
|
|
56
|
+
reject(error);
|
|
57
|
+
},
|
|
58
|
+
onClose: () => {
|
|
59
|
+
"function" == typeof (null == modalProps ? void 0 : modalProps.onClose) && modalProps.onClose(),
|
|
60
|
+
hide();
|
|
61
|
+
},
|
|
62
|
+
onDragPointerDown: e => {
|
|
63
|
+
"function" == typeof (null == modalProps ? void 0 : modalProps.onDragPointerDown) && (null == modalProps || modalProps.onDragPointerDown(e)),
|
|
64
|
+
controls.start(e);
|
|
65
|
+
}
|
|
66
|
+
}))
|
|
67
|
+
})
|
|
68
|
+
}) ]
|
|
69
|
+
});
|
|
70
|
+
};
|
|
@@ -5,8 +5,11 @@ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/
|
|
|
5
5
|
|
|
6
6
|
styleInject_es.styleInject(".Overlay-module_overlay__EkbfA {\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tbackground-color: var(--overlay-color);\n\tz-index: var(--elevation-overlay);\n}\n");
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const defaultTransition = {
|
|
9
|
+
ease: "easeOut",
|
|
10
|
+
duration: .25
|
|
11
|
+
}, Overlay = React.memo(props => {
|
|
12
|
+
const {children: children, show: show = !1, type: type = "clear", global: global = !1, overlay: overlay, color: color = "rgb(0,0,0)", opacity: opacity = 0, transition: transition = defaultTransition, onClick: onClick = () => null, toggleOverlay: toggleOverlay = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "children", "show", "type", "global", "overlay", "color", "opacity", "transition", "onClick", "toggleOverlay" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", computedOpacity = React.useMemo(() => "clear" === type ? 0 : void 0 !== opacity ? opacity : "dark" === type ? .8 : 0, [ type, opacity ]), handleClick = React.useCallback(() => {
|
|
10
13
|
global && toggleOverlay(!1), onClick();
|
|
11
14
|
}, [ global, toggleOverlay, onClick ]), handleContextMenu = React.useCallback(e => {
|
|
12
15
|
e.preventDefault();
|
|
@@ -29,8 +32,11 @@ const Overlay = React.memo(props => {
|
|
|
29
32
|
opacity: 0
|
|
30
33
|
},
|
|
31
34
|
onClick: handleClick,
|
|
35
|
+
transition: transition,
|
|
32
36
|
onContextMenu: handleContextMenu
|
|
33
|
-
}, rest
|
|
37
|
+
}, rest, {
|
|
38
|
+
children: children
|
|
39
|
+
}))
|
|
34
40
|
});
|
|
35
41
|
});
|
|
36
42
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-QpU0XEOW.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "Pager-module_wrapper__eutVg flexBox-module_row__z24tF", css_bullet = "Pager-module_bullet__TxyR5 flexBox-module_row__z24tF", css_selected = "Pager-module_selected__C6xbR";
|
|
5
5
|
|
|
6
6
|
styleInject_es.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.Pager-module_wrapper__eutVg {\n\tgap: var(--pager-gap);\n\twidth: 100%;\n\tz-index: var(--elevation-status);\n}\n\n.Pager-module_bullet__TxyR5 {\n\twidth: var(--pager-size);\n\theight: var(--pager-size);\n\tmax-width: var(--pager-size);\n\tmax-height: var(--pager-size);\n\tbackground: var(--pager-color);\n\tborder-radius: 100%;\n\tborder: 0;\n\tcursor: pointer;\n\toutline: none;\n\ttransition: background var(--motion-water-duration) var(--motion-water) 0s;\n\t&:hover {\n\t\tbackground: var(--pager-colorHover);\n\t}\n}\n\n.Pager-module_selected__C6xbR {\n\tbackground: var(--pager-colorOn);\n\t&:hover {\n\t\tbackground: var(--pager-colorOn);\n\t}\n}\n");
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ var tslib_es6 = require("./tslib.es6-C8dZW5nY.js");
|
|
|
9
9
|
|
|
10
10
|
require("../hooks/useWindow.js");
|
|
11
11
|
|
|
12
|
-
var Icon = require("./Icon-
|
|
12
|
+
var Icon = require("./Icon-BtcHXeqE.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), react = require("motion/react"), css$1_wrapper = "DoneCheck-module_wrapper__AlISD flexBox-module_row__z24tF", css$1_icon = "DoneCheck-module_icon__bKaFp flexBox-module_row__z24tF";
|
|
13
13
|
|
|
14
14
|
styleInject_es.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.DoneCheck-module_wrapper__AlISD {\n\theight: var(--icon-height);\n\tmax-height: var(--icon-height);\n\twidth: var(--icon-width);\n\tmax-width: var(--icon-width);\n\toverflow: visible;\n}\n\n.DoneCheck-module_icon__bKaFp {\n\theight: var(--icon-height);\n\tmax-height: var(--icon-height);\n\twidth: var(--icon-width);\n\tmax-width: var(--icon-width);\n\tscale: var(--icon-scale);\n\ttransition: var(--icon-transition);\n}\n");
|
|
15
15
|
|
|
@@ -54,57 +54,61 @@ var css_container = "ProgressIndicator-module_container__pW2gW flexBox-module_co
|
|
|
54
54
|
|
|
55
55
|
styleInject_es.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.ProgressIndicator-module_container__pW2gW {\n\tdisplay: var(--pi-display) !important;\n\tposition: var(--pi-position);\n\ttop: var(--pi-inset);\n\tbottom: var(--pi-inset);\n\tleft: var(--pi-inset);\n\tright: var(--pi-inset);\n\tcolor: var(--core-text-disabled);\n\tz-index: var(--elevation-status);\n}\n\n.ProgressIndicator-module_iconWrapper__puIt4 {\n\tmin-width: var(--pi-icon-size);\n\tmax-width: var(--pi-icon-size);\n\tmax-height: var(--pi-icon-size);\n\tmin-height: var(--pi-icon-size);\n\theight: var(--pi-icon-size);\n\twidth: var(--pi-icon-size);\n\tpadding: 0;\n\tbackground: none;\n\tborder-radius: 100%;\n}\n");
|
|
56
56
|
|
|
57
|
-
const OpenCircle = (size, secondsPerSpin, color, stroke = 1.5, playing = !1) =>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
57
|
+
const OpenCircle = (size, secondsPerSpin, color, stroke = 1.5, playing = !1, inset = !0, gradientId = "strokeFill") => {
|
|
58
|
+
const edgeRadius = 10 - stroke / 2, edgeStartX = 10 + edgeRadius * Math.cos(-.4), edgeStartY = 10 + edgeRadius * Math.sin(-.4), path = inset ? "M 17.371 6.886 C 17.776 7.843 18 8.895 18 10 C 18 14.418 14.418 18 10 18 C 5.582 18 2 14.418 2 10 C 2 5.582 5.582 2 10 2" : `M ${edgeStartX.toFixed(3)} ${edgeStartY.toFixed(3)} A ${edgeRadius.toFixed(3)} ${edgeRadius.toFixed(3)} 0 1 1 10 ${(10 - edgeRadius).toFixed(3)}`;
|
|
59
|
+
return jsxRuntime.jsxs(react.motion.svg, {
|
|
60
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
61
|
+
width: size,
|
|
62
|
+
height: size,
|
|
63
|
+
viewBox: "0 0 20 20",
|
|
64
|
+
role: "img",
|
|
65
|
+
"aria-label": "Loading spinner",
|
|
66
|
+
transition: {
|
|
67
|
+
ease: "linear",
|
|
68
|
+
repeatType: "loop",
|
|
69
|
+
repeat: playing ? Number.POSITIVE_INFINITY : 0,
|
|
70
|
+
duration: secondsPerSpin
|
|
71
|
+
},
|
|
72
|
+
animate: playing ? {
|
|
73
|
+
rotate: 360
|
|
74
|
+
} : {
|
|
75
|
+
rotate: 0
|
|
76
|
+
},
|
|
77
|
+
children: [ jsxRuntime.jsx("title", {
|
|
78
|
+
children: "Loading"
|
|
79
|
+
}), jsxRuntime.jsx("defs", {
|
|
80
|
+
children: jsxRuntime.jsxs("linearGradient", {
|
|
81
|
+
id: gradientId,
|
|
82
|
+
x1: "0",
|
|
83
|
+
y1: "0",
|
|
84
|
+
x2: "20",
|
|
85
|
+
y2: "0",
|
|
86
|
+
gradientUnits: "userSpaceOnUse",
|
|
87
|
+
children: [ jsxRuntime.jsx("stop", {
|
|
88
|
+
offset: "0%",
|
|
89
|
+
stopColor: color,
|
|
90
|
+
stopOpacity: 1
|
|
91
|
+
}), jsxRuntime.jsx("stop", {
|
|
92
|
+
offset: "50%",
|
|
93
|
+
stopColor: color,
|
|
94
|
+
stopOpacity: 1
|
|
95
|
+
}), jsxRuntime.jsx("stop", {
|
|
96
|
+
offset: "100%",
|
|
97
|
+
stopColor: color,
|
|
98
|
+
stopOpacity: 0
|
|
99
|
+
}) ]
|
|
100
|
+
})
|
|
101
|
+
}), jsxRuntime.jsx(react.motion.path, {
|
|
102
|
+
d: path,
|
|
103
|
+
fill: "transparent",
|
|
104
|
+
strokeWidth: stroke,
|
|
105
|
+
stroke: `url(#${gradientId})`
|
|
106
|
+
}) ]
|
|
107
|
+
});
|
|
108
|
+
};
|
|
105
109
|
|
|
106
110
|
exports.DoneCheck = DoneCheck, exports.ProgressIndicator = function(props) {
|
|
107
|
-
const theme = hooks_useTheme.useTheme(), {size: size = 20, secondsPerSpin: secondsPerSpin = 1, show: show = !1, color: color = theme.current.colors["core-icon-primary"], stroke: stroke = 1.5, inline: inline = !1, duration: duration, didStart: didStart = () => null, didStop: didStop = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "size", "secondsPerSpin", "show", "color", "stroke", "inline", "duration", "didStart", "didStop" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [playing, setPlaying] = React.useState(show), timer = React.useRef(null);
|
|
111
|
+
const theme = hooks_useTheme.useTheme(), {size: size = 20, inset: inset = !0, secondsPerSpin: secondsPerSpin = 1, show: show = !1, color: color = theme.current.colors["core-icon-primary"], stroke: stroke = 1.5, inline: inline = !1, duration: duration, didStart: didStart = () => null, didStop: didStop = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "size", "inset", "secondsPerSpin", "show", "color", "stroke", "inline", "duration", "didStart", "didStop" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [playing, setPlaying] = React.useState(show), gradientId = React.useId().replace(/:/g, ""), timer = React.useRef(null);
|
|
108
112
|
React.useEffect(() => (show ? (setPlaying(!0), didStart(), duration && (timer.current = setTimeout(() => {
|
|
109
113
|
setPlaying(!1), didStop();
|
|
110
114
|
}, 1e3 * duration))) : (setPlaying(!1), didStop()), () => {
|
|
@@ -115,7 +119,7 @@ exports.DoneCheck = DoneCheck, exports.ProgressIndicator = function(props) {
|
|
|
115
119
|
"--pi-inset": inline ? "unset" : "0",
|
|
116
120
|
"--pi-icon-size": `${null != size ? size : 0}px`,
|
|
117
121
|
"--pi-display": inline ? "inline-flex" : "flex"
|
|
118
|
-
}), [ inline, size ]), openCircle = React.useMemo(() => OpenCircle(size, secondsPerSpin, color, stroke, playing), [ size, secondsPerSpin, color, stroke, playing ]);
|
|
122
|
+
}), [ inline, size ]), openCircle = React.useMemo(() => OpenCircle(size, secondsPerSpin, color, stroke, playing, inset, gradientId), [ size, secondsPerSpin, color, stroke, playing, inset, gradientId ]);
|
|
119
123
|
return jsxRuntime.jsx(react.AnimatePresence, {
|
|
120
124
|
initial: !0,
|
|
121
125
|
children: show && jsxRuntime.jsx(react.motion.div, Object.assign({
|