@apple-pie/slice 0.1.1 → 0.1.3
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 +110 -5
- package/dist/cjs/chunks/{Avatar-zAhrTMO4.js → Avatar-YNcGDUzr.js} +27 -14
- package/dist/cjs/chunks/{AvatarGroup-qI2wNIKO.js → AvatarGroup-Dn5R1XIU.js} +2 -2
- package/dist/cjs/chunks/{Badge-Bv6c2YVC.js → Badge-CY_DG6cD.js} +2 -2
- package/dist/cjs/chunks/{Button-CNrcvIUu.js → Button-hg5kGC1P.js} +9 -9
- package/dist/cjs/chunks/{ButtonBar-CcL0wFXX.js → ButtonBar-C9Nm9faU.js} +2 -2
- package/dist/cjs/chunks/Camera-Dx_PT3pS.js +364 -0
- package/dist/cjs/chunks/{Card-pxbzaSWm.js → Card-AgEMKJ4O.js} +2 -2
- package/dist/cjs/chunks/{CheckBox-tcFDVDGG.js → CheckBox-CLMxlUff.js} +2 -2
- package/dist/cjs/chunks/{Chip-DfMVpYjg.js → Chip-CIy_Xe3i.js} +7 -7
- package/dist/cjs/chunks/{DivInput-hHsbuscc.js → DivInput-C73sqUF3.js} +10 -10
- package/dist/cjs/chunks/{Dot-BSSClfHQ.js → Dot-_HCJ3qxd.js} +2 -2
- package/dist/cjs/chunks/{DrggablePanel-BbDhV-a9.js → DrggablePanel-BzvBBhS7.js} +4 -4
- package/dist/cjs/chunks/{DropDown-C0vV24pv.js → DropDown-FZb52YxR.js} +9 -9
- package/dist/cjs/chunks/{ErrorSummary-CIUqlSLC.js → ErrorSummary-By4CjJ9a.js} +2 -2
- package/dist/cjs/chunks/{FileIcon-DTQaXxfC.js → FileIcon-hYwcre20.js} +2 -2
- package/dist/cjs/chunks/{FileList-C8Aq-iCW.js → FileList-BQgcnKPP.js} +21 -21
- package/dist/cjs/chunks/{FlexDiv-CW5gSa4V.js → FlexDiv-B3q6j3W9.js} +2 -2
- package/dist/cjs/chunks/{Grouper-B16IH2YM.js → Grouper-Bgc1wrQM.js} +2 -2
- package/dist/cjs/chunks/{IconButton-BDKARPkc.js → IconButton-CBWmUZxR.js} +2 -2
- package/dist/cjs/chunks/{Label-ZlQVpETS.js → Label-D15cIroT.js} +22 -20
- package/dist/cjs/chunks/{Overlay-Bb2YoSKr.js → Overlay-DL0EJDyk.js} +2 -2
- package/dist/cjs/chunks/{Pager-Bp1rPImK.js → Pager-TUxcWbmn.js} +3 -3
- package/dist/cjs/chunks/{ProgressIndicator-Qx3jfv8r.js → ProgressIndicator-qjya_Yb5.js} +4 -4
- package/dist/cjs/chunks/{PromptInput-7rftpDc1.js → PromptInput-ZqHQUfXw.js} +13 -13
- package/dist/cjs/chunks/{RadioButton-D5EJdMlL.js → RadioButton-Ce9uf54a.js} +3 -3
- package/dist/cjs/chunks/{RadioButtonList-DqsaDvEr.js → RadioButtonList-dhPr-Uhs.js} +2 -2
- package/dist/cjs/chunks/{Slider-CZvCAodl.js → Slider-CrjpZooG.js} +4 -4
- package/dist/cjs/chunks/{Switch-C9UtaIAt.js → Switch-Xqf0vwul.js} +2 -2
- package/dist/cjs/chunks/{TabBar-DlhY_3G4.js → TabBar-DuwypMB6.js} +2 -2
- package/dist/cjs/chunks/{TextArea-D0i83Jjq.js → TextArea-BhzVGfKA.js} +2 -2
- package/dist/cjs/chunks/{TextField-DRhQUqYA.js → TextField-hIjxrOG9.js} +10 -10
- package/dist/cjs/chunks/{Tip-CjMHa-fD.js → Tip-ik8-p4_4.js} +7 -7
- package/dist/cjs/chunks/{Toast-BdrI0h64.js → Toast-DMUM1wuL.js} +11 -11
- package/dist/cjs/chunks/{UploadArea-DBsMosuN.js → UploadArea-B4GA06LW.js} +15 -15
- package/dist/cjs/chunks/{_types-BMRxxH7h.js → _types-C_zOsCbB.js} +79 -11
- package/dist/cjs/chunks/colors-uej0anrN.js +27 -0
- package/dist/cjs/chunks/{utils-BsBHecUI.js → misc-C-M6KKsH.js} +27 -9
- package/dist/cjs/chunks/sseStore-Dg0WuXsI.js +59 -0
- package/dist/cjs/components/Avatar/index.js +7 -0
- package/dist/cjs/components/AvatarGroup/index.js +7 -0
- package/dist/cjs/{uikit → components}/Badge/index.js +1 -1
- package/dist/cjs/{uikit → components}/Button/index.js +4 -4
- package/dist/cjs/{uikit → components}/ButtonBar/index.js +4 -4
- package/dist/cjs/components/Camera/index.js +11 -0
- package/dist/cjs/{uikit → components}/Card/index.js +3 -3
- package/dist/cjs/{uikit → components}/CheckBox/index.js +3 -3
- package/dist/cjs/{uikit → components}/Chip/index.js +2 -2
- package/dist/cjs/components/DivInput/index.js +7 -0
- package/dist/cjs/{uikit → components}/Dot/index.js +1 -1
- package/dist/cjs/{uikit → components}/DraggablePanel/index.js +2 -2
- package/dist/cjs/{uikit → components}/DropDown/index.js +2 -2
- package/dist/cjs/{uikit → components}/ErrorSummary/index.js +1 -1
- package/dist/cjs/{uikit → components}/FileIcon/index.js +2 -2
- package/dist/cjs/{uikit → components}/FileList/index.js +4 -4
- package/dist/cjs/{uikit → components}/FlexDiv/index.js +1 -1
- package/dist/cjs/{uikit → components}/Grouper/index.js +4 -4
- package/dist/cjs/{uikit → components}/Icon/index.js +2 -2
- package/dist/cjs/{uikit → components}/IconButton/index.js +4 -4
- package/dist/cjs/{uikit → components}/Label/index.js +2 -2
- package/dist/cjs/{uikit → components}/Overlay/index.js +1 -1
- package/dist/cjs/components/Pager/index.js +7 -0
- package/dist/cjs/{uikit → components}/Progress/index.js +3 -3
- package/dist/cjs/{uikit → components}/PromptInput/index.js +7 -7
- package/dist/cjs/{uikit → components}/RadioButton/index.js +2 -2
- package/dist/cjs/{uikit → components}/RadioButtonList/index.js +3 -3
- package/dist/cjs/{uikit → components}/Slider/index.js +2 -2
- package/dist/cjs/{uikit → components}/Switch/index.js +1 -1
- package/dist/cjs/{uikit → components}/TabBar/index.js +4 -4
- package/dist/cjs/{uikit → components}/TextArea/index.js +5 -5
- package/dist/cjs/{uikit → components}/Textfield/index.js +6 -6
- package/dist/cjs/components/Tip/index.js +7 -0
- package/dist/cjs/{uikit → components}/Toast/index.js +4 -4
- package/dist/cjs/{uikit → components}/UploadArea/index.js +6 -6
- package/dist/cjs/hooks/useTrackRenders.js +3 -3
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/stores/SSE.js +9 -0
- package/dist/cjs/stores.js +7 -3
- package/dist/cjs/utils/index.js +7 -0
- package/dist/cjs/utils/objects/index.js +140 -0
- package/dist/esm/chunks/{Avatar-D5mMmaIi.mjs → Avatar-CDMV6f9w.mjs} +30 -15
- package/dist/esm/chunks/{AvatarGroup-B3_zWk_-.mjs → AvatarGroup-BZ18GwhK.mjs} +3 -3
- package/dist/esm/chunks/{Badge-BISGWj5-.mjs → Badge-DyICxZP2.mjs} +2 -2
- package/dist/esm/chunks/{Button-qeCEnTFJ.mjs → Button-DJDS7Yad.mjs} +12 -12
- package/dist/esm/chunks/{ButtonBar-jMNpQysA.mjs → ButtonBar-DIsqJmrS.mjs} +3 -3
- package/dist/esm/chunks/Camera-BvJJ5cd-.mjs +380 -0
- package/dist/esm/chunks/{Card-4u4hpBAM.mjs → Card-DjHdCav5.mjs} +3 -3
- package/dist/esm/chunks/{CheckBox-D2jWAviD.mjs → CheckBox-C1LPehvl.mjs} +3 -3
- package/dist/esm/chunks/{Chip-DnsTVVmp.mjs → Chip-ByaaWpFx.mjs} +7 -7
- package/dist/esm/chunks/{DivInput-B4ohgnLJ.mjs → DivInput-B7BliU1p.mjs} +3 -3
- package/dist/esm/chunks/{Dot-C-Xu24wF.mjs → Dot-CLGwQu-i.mjs} +2 -2
- package/dist/esm/chunks/{DrggablePanel-CEg9sHHt.mjs → DrggablePanel-DvactFf5.mjs} +3 -3
- package/dist/esm/chunks/{DropDown-CCePGFHd.mjs → DropDown-CM01mO_W.mjs} +9 -9
- package/dist/esm/chunks/{ErrorSummary-CZw06dSh.mjs → ErrorSummary-S0shes-m.mjs} +2 -2
- package/dist/esm/chunks/{FileIcon-BcIJzIwA.mjs → FileIcon-CC_k5dUW.mjs} +1 -1
- package/dist/esm/chunks/{FileList-db86wx1X.mjs → FileList-CmlXqPXl.mjs} +18 -18
- package/dist/esm/chunks/{FlexDiv-BLYDgWu2.mjs → FlexDiv-LGEGGrT0.mjs} +2 -2
- package/dist/esm/chunks/{Grouper-D8mQt9_Q.mjs → Grouper-DNmAYWdR.mjs} +4 -4
- package/dist/esm/chunks/{IconButton-DlgZO9hb.mjs → IconButton-C8RBNFzh.mjs} +5 -5
- package/dist/esm/chunks/{Label-Cj_LkQLx.mjs → Label-DOvquc82.mjs} +21 -19
- package/dist/esm/chunks/{Overlay-Bh0enFIe.mjs → Overlay-Cw9o1fHb.mjs} +2 -2
- package/dist/esm/chunks/{Pager-6mBRDV3D.mjs → Pager-BX4TMwD_.mjs} +3 -3
- package/dist/esm/chunks/{ProgressIndicator-DsN3c0J5.mjs → ProgressIndicator-h11R3FG1.mjs} +5 -5
- package/dist/esm/chunks/{PromptInput-BGt0FgwF.mjs → PromptInput-DSHVUuEf.mjs} +14 -14
- package/dist/esm/chunks/{RadioButton-D9qz4XDZ.mjs → RadioButton-_lo_FJ8g.mjs} +4 -4
- package/dist/esm/chunks/{RadioButtonList-DCaC7MnI.mjs → RadioButtonList-CLHJxrI_.mjs} +3 -3
- package/dist/esm/chunks/{Slider-C3A8GCfH.mjs → Slider-Bih21QiT.mjs} +3 -3
- package/dist/esm/chunks/{Switch-Dt4ynf5r.mjs → Switch-nWg2Ykea.mjs} +2 -2
- package/dist/esm/chunks/{TabBar-CYGdcsab.mjs → TabBar-CDDzA_m1.mjs} +5 -5
- package/dist/esm/chunks/{TextArea-BWnMMBN0.mjs → TextArea-CyVBzMoN.mjs} +3 -3
- package/dist/esm/chunks/{TextField-D8j5hLhv.mjs → TextField-CYI2vbvO.mjs} +12 -12
- package/dist/esm/chunks/{Tip-CHQh-Yq0.mjs → Tip-B-cDOFvV.mjs} +6 -6
- package/dist/esm/chunks/{Toast-MzHPO4x3.mjs → Toast-ovxR12_-.mjs} +8 -8
- package/dist/esm/chunks/{UploadArea-DwGsYUhY.mjs → UploadArea-Kez3VD4d.mjs} +14 -14
- package/dist/esm/chunks/{_types-B0zIFpYY.mjs → _types-CTmvSEX0.mjs} +100 -32
- package/dist/esm/chunks/colors-DR9fLI5X.mjs +30 -0
- package/dist/esm/chunks/{utils-BQ1v7VE4.mjs → misc-cg9I7drO.mjs} +21 -2
- package/dist/esm/chunks/sseStore-m3IPyLwJ.mjs +56 -0
- package/dist/esm/components/Avatar/index.mjs +11 -0
- package/dist/esm/components/AvatarGroup/index.mjs +13 -0
- package/dist/esm/{uikit → components}/Badge/index.mjs +1 -1
- package/dist/esm/{uikit → components}/Button/index.mjs +6 -6
- package/dist/esm/{uikit → components}/ButtonBar/index.mjs +6 -6
- package/dist/esm/components/Camera/index.mjs +35 -0
- package/dist/esm/{uikit → components}/Card/index.mjs +3 -3
- package/dist/esm/{uikit → components}/CheckBox/index.mjs +3 -3
- package/dist/esm/{uikit → components}/Chip/index.mjs +3 -3
- package/dist/esm/{uikit → components}/DivInput/index.mjs +2 -2
- package/dist/esm/{uikit → components}/Dot/index.mjs +1 -1
- package/dist/esm/{uikit → components}/DraggablePanel/index.mjs +2 -2
- package/dist/esm/{uikit → components}/DropDown/index.mjs +3 -3
- package/dist/esm/{uikit → components}/ErrorSummary/index.mjs +1 -1
- package/dist/esm/{uikit → components}/FileIcon/index.mjs +2 -2
- package/dist/esm/{uikit → components}/FileList/index.mjs +5 -5
- package/dist/esm/{uikit → components}/FlexDiv/index.mjs +1 -1
- package/dist/esm/{uikit → components}/Grouper/index.mjs +4 -4
- package/dist/esm/{uikit → components}/Icon/index.mjs +2 -2
- package/dist/esm/{uikit → components}/IconButton/index.mjs +5 -5
- package/dist/esm/{uikit → components}/Label/index.mjs +2 -2
- package/dist/esm/{uikit → components}/Overlay/index.mjs +1 -1
- package/dist/esm/components/Pager/index.mjs +11 -0
- package/dist/esm/{uikit → components}/Progress/index.mjs +3 -3
- package/dist/esm/{uikit → components}/PromptInput/index.mjs +9 -9
- package/dist/esm/{uikit → components}/RadioButton/index.mjs +3 -3
- package/dist/esm/{uikit → components}/RadioButtonList/index.mjs +4 -4
- package/dist/esm/{uikit → components}/Slider/index.mjs +2 -2
- package/dist/esm/{uikit → components}/Switch/index.mjs +1 -1
- package/dist/esm/{uikit → components}/TabBar/index.mjs +6 -6
- package/dist/esm/{uikit → components}/TextArea/index.mjs +7 -7
- package/dist/esm/{uikit → components}/Textfield/index.mjs +8 -8
- package/dist/esm/{uikit → components}/Tip/index.mjs +2 -2
- package/dist/esm/{uikit → components}/Toast/index.mjs +3 -3
- package/dist/esm/{uikit → components}/UploadArea/index.mjs +6 -6
- package/dist/esm/hooks/useTrackRenders.mjs +1 -1
- package/dist/esm/index.mjs +39 -37
- package/dist/esm/stores/SSE.mjs +7 -0
- package/dist/esm/stores.mjs +4 -0
- package/dist/esm/utils/index.mjs +7 -0
- package/dist/esm/utils/objects/index.mjs +140 -0
- package/dist/types/{uikit → components}/Avatar/_types.d.ts +3 -3
- package/dist/types/components/Camera/Camera.d.ts +11 -0
- package/dist/types/components/Camera/_types.d.ts +78 -0
- package/dist/types/components/Camera/index.d.ts +2 -0
- package/dist/types/{uikit → components}/Icon/_types.d.ts +5 -0
- package/dist/types/{uikit → components}/Switch/Switch.stories.d.ts +1 -1
- package/dist/types/hooks/useToolTip/useToolTip.d.ts +1 -1
- package/dist/types/index.d.ts +74 -74
- package/dist/types/stores/SSE/_types.d.ts +17 -0
- package/dist/types/stores/SSE/index.d.ts +2 -0
- package/dist/types/stores/SSE/sseStore.d.ts +28 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/tip/_types.d.ts +1 -1
- package/dist/types/stores/toast/_types.d.ts +1 -1
- package/dist/types/utils/functions/colors.d.ts +8 -0
- package/dist/types/{util → utils/functions}/files.d.ts +1 -1
- package/dist/types/{util/utils.d.ts → utils/functions/misc.d.ts} +2 -2
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/objects/SSEConnection/SSEConnection.d.ts +166 -0
- package/dist/types/utils/objects/WSConnection/WSConnection.d.ts +0 -0
- package/dist/types/utils/objects/index.d.ts +2 -0
- package/package.json +15 -5
- package/dist/cjs/chunks/Logos-CAHU-eIP.js +0 -483
- package/dist/cjs/uikit/Avatar/index.js +0 -6
- package/dist/cjs/uikit/AvatarGroup/index.js +0 -7
- package/dist/cjs/uikit/DivInput/index.js +0 -7
- package/dist/cjs/uikit/Logos/index.js +0 -9
- package/dist/cjs/uikit/Pager/index.js +0 -7
- package/dist/cjs/uikit/Tip/index.js +0 -7
- package/dist/esm/chunks/Logos-CpcaarOG.mjs +0 -493
- package/dist/esm/uikit/Avatar/index.mjs +0 -9
- package/dist/esm/uikit/AvatarGroup/index.mjs +0 -11
- package/dist/esm/uikit/Logos/index.mjs +0 -25
- package/dist/esm/uikit/Pager/index.mjs +0 -11
- package/dist/types/uikit/Logos/Logos.d.ts +0 -2
- package/dist/types/uikit/Logos/_types.d.ts +0 -9
- package/dist/types/uikit/Logos/index.d.ts +0 -2
- package/dist/types/util/flexBox.d.ts +0 -11
- package/dist/types/workers/uploads/uploads.runtime.d.ts +0 -1
- /package/dist/cjs/{uikit → components}/DocIcon/index.js +0 -0
- /package/dist/cjs/{uikit → components}/Spacer/index.js +0 -0
- /package/dist/esm/{uikit → components}/DocIcon/index.mjs +0 -0
- /package/dist/esm/{uikit → components}/Spacer/index.mjs +0 -0
- /package/dist/types/{uikit → components}/Avatar/Avatar.d.ts +0 -0
- /package/dist/types/{uikit → components}/Avatar/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/AvatarGroup/AvatarGroup.d.ts +0 -0
- /package/dist/types/{uikit → components}/AvatarGroup/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/AvatarGroup/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Badge/Badge.d.ts +0 -0
- /package/dist/types/{uikit → components}/Badge/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Badge/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Button/Button.d.ts +0 -0
- /package/dist/types/{uikit → components}/Button/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Button/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/ButtonBar/ButtonBar.d.ts +0 -0
- /package/dist/types/{uikit → components}/ButtonBar/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/ButtonBar/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Card/Card.d.ts +0 -0
- /package/dist/types/{uikit → components}/Card/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Card/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/CheckBox/CheckBox.d.ts +0 -0
- /package/dist/types/{uikit → components}/CheckBox/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/CheckBox/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Chip/Chip.d.ts +0 -0
- /package/dist/types/{uikit → components}/Chip/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Chip/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/DivInput/DivInput.d.ts +0 -0
- /package/dist/types/{uikit → components}/DivInput/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/DivInput/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/DocIcon/DocIcons.d.ts +0 -0
- /package/dist/types/{uikit → components}/DocIcon/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/DocIcon/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Dot/Dot.d.ts +0 -0
- /package/dist/types/{uikit → components}/Dot/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Dot/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/DraggablePanel/DrggablePanel.d.ts +0 -0
- /package/dist/types/{uikit → components}/DraggablePanel/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/DraggablePanel/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/DropDown/DropDown.d.ts +0 -0
- /package/dist/types/{uikit → components}/DropDown/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/DropDown/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/ErrorSummary/ErrorSummary.d.ts +0 -0
- /package/dist/types/{uikit → components}/ErrorSummary/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/ErrorSummary/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileIcon/FileIcon.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileIcon/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileIcon/fileIconRegistry.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileIcon/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileList/FileList.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileList/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileList/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/FlexDiv/FlexDiv.d.ts +0 -0
- /package/dist/types/{uikit → components}/FlexDiv/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/FlexDiv/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Grouper/Grouper.d.ts +0 -0
- /package/dist/types/{uikit → components}/Grouper/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Grouper/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Icon/Icon.d.ts +0 -0
- /package/dist/types/{uikit → components}/Icon/iconRegistry.d.ts +0 -0
- /package/dist/types/{uikit → components}/Icon/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/IconButton/IconButton.d.ts +0 -0
- /package/dist/types/{uikit → components}/IconButton/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/IconButton/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Label/Label.d.ts +0 -0
- /package/dist/types/{uikit → components}/Label/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Label/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Overlay/Overlay.d.ts +0 -0
- /package/dist/types/{uikit → components}/Overlay/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Overlay/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Pager/Pager.d.ts +0 -0
- /package/dist/types/{uikit → components}/Pager/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Pager/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Progress/DoneCheck/DoneCheck.d.ts +0 -0
- /package/dist/types/{uikit → components}/Progress/DoneCheck/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Progress/ProgressIndicator/ProgressIndicator.d.ts +0 -0
- /package/dist/types/{uikit → components}/Progress/ProgressIndicator/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Progress/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/PromptInput/PromptInput.d.ts +0 -0
- /package/dist/types/{uikit → components}/PromptInput/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/PromptInput/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButton/RadioButton.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButton/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButton/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButtonList/RadioButtonList.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButtonList/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButtonList/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Slider/Slider.d.ts +0 -0
- /package/dist/types/{uikit → components}/Slider/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Slider/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Spacer/Spacer.d.ts +0 -0
- /package/dist/types/{uikit → components}/Spacer/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Spacer/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Switch/Switch.d.ts +0 -0
- /package/dist/types/{uikit → components}/Switch/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Switch/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/TabBar/TabBar.d.ts +0 -0
- /package/dist/types/{uikit → components}/TabBar/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/TabBar/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/TextArea/TextArea.d.ts +0 -0
- /package/dist/types/{uikit → components}/TextArea/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/TextArea/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Textfield/TextField.d.ts +0 -0
- /package/dist/types/{uikit → components}/Textfield/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Textfield/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Tip/Tip.d.ts +0 -0
- /package/dist/types/{uikit → components}/Tip/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Tip/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Toast/Toast.d.ts +0 -0
- /package/dist/types/{uikit → components}/Toast/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Toast/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/UploadArea/UploadArea.d.ts +0 -0
- /package/dist/types/{uikit → components}/UploadArea/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/UploadArea/index.d.ts +0 -0
- /package/dist/types/{stories → components}/playHelpers.d.ts +0 -0
- /package/dist/types/{uikit → components}/sharedTypes.d.ts +0 -0
- /package/dist/types/{util → utils/functions}/debounce.d.ts +0 -0
|
@@ -12,21 +12,21 @@ import "../theme/colors.mjs";
|
|
|
12
12
|
|
|
13
13
|
import "../hooks/useWindow.mjs";
|
|
14
14
|
|
|
15
|
-
import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./
|
|
15
|
+
import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-cg9I7drO.mjs";
|
|
16
16
|
|
|
17
|
-
import { I as Icon } from "./_types-
|
|
17
|
+
import { I as Icon } from "./_types-CTmvSEX0.mjs";
|
|
18
18
|
|
|
19
19
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
20
20
|
|
|
21
21
|
var ToastType, css = {
|
|
22
|
-
wrapper: "Toast-
|
|
23
|
-
close: "Toast-
|
|
24
|
-
s: "Toast-
|
|
25
|
-
m: "Toast-
|
|
26
|
-
l: "Toast-
|
|
22
|
+
wrapper: "Toast-module_wrapper__1uj9O flexBox-module_rowBetween__5FEvi",
|
|
23
|
+
close: "Toast-module_close__i10-s flexBox-module_row__z24tF",
|
|
24
|
+
s: "Toast-module_s__kc5Ef type-module_body-s-regular__vRHSP",
|
|
25
|
+
m: "Toast-module_m__JtmLz type-module_body-m-regular__LuQBA",
|
|
26
|
+
l: "Toast-module_l__-W0PD type-module_body-l-regular__lOYbg"
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
styleInject(".flexBox-
|
|
29
|
+
styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.Toast-module_wrapper__1uj9O {\n\tpadding: var(--toast-padding) !important;\n\tcolor: var(--toast-color);\n\tposition: fixed;\n\tborder: var(--toast-border);\n\tborder-radius: var(--toast-border-radius);\n\tbackground: var(--toast-background);\n\tz-index: var(--elevation-status);\n\tgap: 16px;\n\tbox-shadow: var(--surface-shadow-soft);\n\tleft: 50%;\n\ttransform: translateX(-50%);\n}\n\n.Toast-module_close__i10-s {\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tmin-width: 20px;\n\tmax-width: 20px;\n}\n\n.Toast-module_s__kc5Ef {\n}\n\n.Toast-module_m__JtmLz {\n}\n.Toast-module_l__-W0PD {\n}\n"),
|
|
30
30
|
function(ToastType) {
|
|
31
31
|
ToastType.Success = "success", ToastType.Error = "error", ToastType.Warning = "warning",
|
|
32
32
|
ToastType.Info = "info";
|
|
@@ -2,29 +2,29 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
|
|
3
3
|
import React, { useState, useRef, useCallback, useMemo } from "react";
|
|
4
4
|
|
|
5
|
-
import { s as setStyle, a as accessibleKeyDown } from "./
|
|
5
|
+
import { s as setStyle, a as accessibleKeyDown } from "./misc-cg9I7drO.mjs";
|
|
6
6
|
|
|
7
|
-
import { F as FileList } from "./FileList-
|
|
7
|
+
import { F as FileList } from "./FileList-CmlXqPXl.mjs";
|
|
8
8
|
|
|
9
|
-
import { I as Icon } from "./_types-
|
|
9
|
+
import { I as Icon } from "./_types-CTmvSEX0.mjs";
|
|
10
10
|
|
|
11
|
-
import { P as ProgressIndicator } from "./ProgressIndicator-
|
|
11
|
+
import { P as ProgressIndicator } from "./ProgressIndicator-h11R3FG1.mjs";
|
|
12
12
|
|
|
13
13
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
14
14
|
|
|
15
15
|
var css = {
|
|
16
|
-
wrapper: "UploadArea-
|
|
17
|
-
icon: "UploadArea-
|
|
18
|
-
title: "UploadArea-
|
|
19
|
-
message: "UploadArea-
|
|
20
|
-
files: "UploadArea-
|
|
21
|
-
xs: "UploadArea-
|
|
22
|
-
s: "UploadArea-
|
|
23
|
-
m: "UploadArea-
|
|
24
|
-
l: "UploadArea-
|
|
16
|
+
wrapper: "UploadArea-module_wrapper__aircC flexBox-module_column__ezvMq",
|
|
17
|
+
icon: "UploadArea-module_icon__M7n-m flexBox-module_row__z24tF",
|
|
18
|
+
title: "UploadArea-module_title__VbNGq type-module_body-l-bold__Fh2dt",
|
|
19
|
+
message: "UploadArea-module_message__U1ZVM flexBox-module_row__z24tF",
|
|
20
|
+
files: "UploadArea-module_files__Q796x flexBox-module_column__ezvMq",
|
|
21
|
+
xs: "UploadArea-module_xs__-AoM7 type-module_body-xs-regular__ZAFft",
|
|
22
|
+
s: "UploadArea-module_s__wy1zN type-module_body-s-regular__vRHSP",
|
|
23
|
+
m: "UploadArea-module_m__bKuFN type-module_body-m-regular__LuQBA",
|
|
24
|
+
l: "UploadArea-module_l__KG9YN type-module_body-l-regular__lOYbg"
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
styleInject(".flexBox-
|
|
27
|
+
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.UploadArea-module_wrapper__aircC {\n\tpadding: var(--ua-padding) !important;\n\tborder: var(--ua-border) var(--ua-border-style) var(--ua-border-color);\n\tborder-radius: var(--ua-radius);\n\tbackground: var(--ua-bg-color);\n\tgap: 8px;\n\tcursor: var(--ua-cursor);\n\twidth: var(--ua-width);\n\theight: var(--ua-height);\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.UploadArea-module_icon__M7n-m {\n\tmin-height: var(--ua-icon-size);\n\theight: var(--ua-icon-size);\n\tmin-width: var(--ua-icon-size);\n\twidth: var(--ua-icon-size);\n\tpointer-events: none;\n}\n\n.UploadArea-module_title__VbNGq {\n\tpointer-events: none;\n}\n\n.UploadArea-module_message__U1ZVM {\n\tcolor: var(--core-text-tertiary);\n\tpointer-events: none;\n\tgap: 8px;\n}\n\n.UploadArea-module_files__Q796x {\n\tmargin-top: 16px !important;\n\twidth: 100%;\n}\n\n.UploadArea-module_xs__-AoM7 {\n}\n\n.UploadArea-module_s__wy1zN {\n}\n\n.UploadArea-module_m__bKuFN {\n}\n\n.UploadArea-module_l__KG9YN {\n}\n");
|
|
28
28
|
|
|
29
29
|
const imageTypes = [ "png", "jpg", "jpeg", "gif", "svg", "heic", "heif" ], videoTypes = [ "mp4", "avi", "mov", "wmv", "flv" ], documentTypes = [ "pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx" ], audioTypes = [ "mp3", "wav", "ogg", "aac", "flac" ], textTypes = [ "txt", "rtf", "md", "csv", "json", "xml" ], allTypes = [ ...imageTypes, ...videoTypes, ...documentTypes, ...audioTypes, ...textTypes ];
|
|
30
30
|
|
|
@@ -10,19 +10,88 @@ import "../theme/colors.mjs";
|
|
|
10
10
|
|
|
11
11
|
import "../hooks/useWindow.mjs";
|
|
12
12
|
|
|
13
|
-
import { a as accessibleKeyDown } from "./
|
|
13
|
+
import { a as accessibleKeyDown } from "./misc-cg9I7drO.mjs";
|
|
14
14
|
|
|
15
15
|
import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
|
|
16
16
|
|
|
17
|
-
var css_icon = "Icon-
|
|
17
|
+
var css_icon = "Icon-module_icon__szG-X";
|
|
18
18
|
|
|
19
|
-
styleInject(".Icon-
|
|
19
|
+
styleInject(".Icon-module_icon__szG-X {\n\tcursor: var(--cursor);\n\tuser-select: none;\n\t--webkit-user-select: none;\n\t-webkit-tap-highlight-color: transparent;\n\toutline: none;\n\tborder: 0;\n\ttransition: stroke, fill var(--motion-water-duration) var(--motion-water);\n}\n\npath,\ncircle,\nrect,\npolyline,\npolygon,\nline {\n\ttransition: stroke, fill var(--motion-water-duration) var(--motion-water);\n}\n");
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Static icon registry created once at module load.
|
|
23
23
|
* Each entry stores only icon line content renderers.
|
|
24
24
|
*/
|
|
25
|
-
const STATIC_ICON_REGISTRY = new Map([ [ "
|
|
25
|
+
const STATIC_ICON_REGISTRY = new Map([ [ "video off", {
|
|
26
|
+
line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
|
|
27
|
+
children: [ jsx("path", {
|
|
28
|
+
d: "M10.97,14.75H3.04c-.16,0-.29-.11-.29-.25v-6.79l-1.5-1.29v8.08c0,.96.8,1.75,1.79,1.75h9.68l-1.75-1.5Z",
|
|
29
|
+
fill: strokeColor
|
|
30
|
+
}), jsx("path", {
|
|
31
|
+
d: "M18.39,5.86c-.23-.13-.51-.14-.74-.02l-2.9,1.55v-1.38c0-.97-.81-1.76-1.8-1.76H4.87l1.75,1.5h6.33c.17,0,.3.12.3.26v5.43l2.7,2.32,1.69.91c.11.06.23.09.35.09.13,0,.27-.04.39-.11.23-.14.36-.38.36-.64v-7.5c0-.26-.14-.51-.36-.64ZM17.25,12.75l-2.5-1.34v-2.32l2.5-1.34v4.99Z",
|
|
32
|
+
fill: strokeColor
|
|
33
|
+
}), jsx("path", {
|
|
34
|
+
d: "M15.21,16.5c-.17,0-.35-.06-.49-.18L1.3,4.82c-.31-.27-.35-.74-.08-1.06.27-.31.74-.35,1.06-.08l13.42,11.5c.31.27.35.74.08,1.06-.15.17-.36.26-.57.26Z",
|
|
35
|
+
fill: strokeColor
|
|
36
|
+
}) ]
|
|
37
|
+
})
|
|
38
|
+
} ], [ "video", {
|
|
39
|
+
line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
|
|
40
|
+
children: [ jsx("path", {
|
|
41
|
+
d: "M18.39,5.86c-.23-.13-.51-.14-.74-.02l-2.9,1.55v-1.38c0-.97-.81-1.76-1.8-1.76H3.04c-.99,0-1.79.79-1.79,1.75v8.5c0,.96.8,1.75,1.79,1.75h9.91c.99,0,1.79-.79,1.79-1.75v-1.39l2.9,1.55c.11.06.23.09.35.09.13,0,.27-.04.39-.11.23-.14.36-.38.36-.64v-7.5c0-.26-.14-.51-.36-.64ZM13.25,14.5c0,.14-.13.25-.29.25H3.04c-.16,0-.29-.11-.29-.25V6c0-.14.13-.25.29-.25h9.91c.17,0,.3.12.3.26v8.49ZM17.25,12.75l-2.5-1.34v-2.32l2.5-1.34v4.99Z",
|
|
42
|
+
fill: strokeColor
|
|
43
|
+
}), jsx("circle", {
|
|
44
|
+
cx: "8",
|
|
45
|
+
cy: "10.25",
|
|
46
|
+
r: "1",
|
|
47
|
+
fill: strokeColor
|
|
48
|
+
}) ]
|
|
49
|
+
})
|
|
50
|
+
} ], [ "mic", {
|
|
51
|
+
line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
|
|
52
|
+
children: [ jsx("path", {
|
|
53
|
+
d: "M10.25,11.75c1.65,0,3-1.35,3-3v-4.5c0-1.65-1.35-3-3-3s-3,1.35-3,3v4.5c0,1.65,1.35,3,3,3ZM8.75,4.25c0-.83.67-1.5,1.5-1.5s1.5.67,1.5,1.5v4.5c0,.83-.67,1.5-1.5,1.5s-1.5-.67-1.5-1.5v-4.5Z",
|
|
54
|
+
fill: strokeColor
|
|
55
|
+
}), jsx("path", {
|
|
56
|
+
d: "M14.75,7.25v1.25c0,2.48-2.02,4.5-4.5,4.5s-4.5-2.02-4.5-4.5v-1.25h-1.5v1.25c0,3.08,2.33,5.62,5.31,5.96v2.79h-3.59v1.5h8.48v-1.5h-3.39v-2.81c2.92-.4,5.19-2.91,5.19-5.94v-1.25h-1.5Z",
|
|
57
|
+
fill: strokeColor
|
|
58
|
+
}) ]
|
|
59
|
+
})
|
|
60
|
+
} ], [ "mic muted", {
|
|
61
|
+
line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
|
|
62
|
+
children: [ jsx("path", {
|
|
63
|
+
d: "M8.78,3.95c.14-.68.74-1.2,1.47-1.2.83,0,1.5.67,1.5,1.5v2.67l1.5,1.5v-4.17c0-1.65-1.35-3-3-3-1.13,0-2.1.63-2.61,1.56l1.14,1.14Z",
|
|
64
|
+
fill: strokeColor
|
|
65
|
+
}), jsx("path", {
|
|
66
|
+
d: "M7.25,8.08v.67c0,1.65,1.35,3,3,3,.21,0,.41-.02.61-.06l-3.61-3.61Z",
|
|
67
|
+
fill: strokeColor
|
|
68
|
+
}), jsx("path", {
|
|
69
|
+
d: "M14.75,7.25v1.25c0,.43-.08.84-.19,1.23l1.17,1.17c.33-.74.52-1.54.52-2.4v-1.25h-1.5Z",
|
|
70
|
+
fill: strokeColor
|
|
71
|
+
}), jsx("path", {
|
|
72
|
+
d: "M11.06,14.44c.69-.09,1.33-.31,1.93-.62l-1.13-1.13c-.5.19-1.04.31-1.61.31-2.48,0-4.5-2.02-4.5-4.5v-1.25h-1.5v1.25c0,3.08,2.33,5.62,5.31,5.96v2.79h-3.59v1.5h8.48v-1.5h-3.39v-2.81Z",
|
|
73
|
+
fill: strokeColor
|
|
74
|
+
}), jsx("path", {
|
|
75
|
+
d: "M16.75,15.5c-.19,0-.38-.07-.53-.22L3.72,2.78c-.29-.29-.29-.77,0-1.06s.77-.29,1.06,0l12.5,12.5c.29.29.29.77,0,1.06-.15.15-.34.22-.53.22Z",
|
|
76
|
+
fill: strokeColor
|
|
77
|
+
}) ]
|
|
78
|
+
})
|
|
79
|
+
} ], [ "camera", {
|
|
80
|
+
line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
|
|
81
|
+
children: [ jsx("path", {
|
|
82
|
+
d: "M16.75,16.25H3.25c-.96,0-1.75-.79-1.75-1.75V5.5c0-.96.79-1.75,1.75-1.75h13.5c.96,0,1.75.79,1.75,1.75v9c0,.96-.79,1.75-1.75,1.75ZM3.25,5.25c-.14,0-.25.11-.25.25v9c0,.14.11.25.25.25h13.5c.14,0,.25-.11.25-.25V5.5c0-.14-.11-.25-.25-.25H3.25Z",
|
|
83
|
+
fill: strokeColor
|
|
84
|
+
}), jsx("path", {
|
|
85
|
+
d: "M11.94,13.75c-2.03,0-3.69-1.65-3.69-3.69s1.65-3.69,3.69-3.69,3.69,1.65,3.69,3.69-1.65,3.69-3.69,3.69ZM11.94,7.88c-1.21,0-2.19.98-2.19,2.19s.98,2.19,2.19,2.19,2.19-.98,2.19-2.19-.98-2.19-2.19-2.19Z",
|
|
86
|
+
fill: strokeColor
|
|
87
|
+
}), jsx("circle", {
|
|
88
|
+
cx: "6",
|
|
89
|
+
cy: "8",
|
|
90
|
+
r: "1",
|
|
91
|
+
fill: strokeColor
|
|
92
|
+
}) ]
|
|
93
|
+
})
|
|
94
|
+
} ], [ "highlight", {
|
|
26
95
|
line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
|
|
27
96
|
children: [ jsx("path", {
|
|
28
97
|
d: "M 0 0 L 24 0 L 24 24 L 0 24 Z",
|
|
@@ -618,9 +687,6 @@ const STATIC_ICON_REGISTRY = new Map([ [ "highlight", {
|
|
|
618
687
|
} ], [ "help", {
|
|
619
688
|
line: ({strokeColor: strokeColor}) => jsxs(Fragment, {
|
|
620
689
|
children: [ jsx("path", {
|
|
621
|
-
d: "M 10 18 C 14.418 18 18 14.418 18 10 C 18 5.582 14.418 2 10 2 C 5.582 2 2 5.582 2 10 C 2 14.418 5.582 18 10 18 Z",
|
|
622
|
-
fill: strokeColor
|
|
623
|
-
}), jsx("path", {
|
|
624
690
|
d: "M 11 13 C 11 13.552 10.552 14 10 14 C 9.448 14 9 13.552 9 13 C 9 12.448 9.448 12 10 12 C 10.552 12 11 12.448 11 13 Z M 8.75 8 C 8.75 7.31 9.31 6.75 10 6.75 C 10.69 6.75 11.25 7.31 11.25 8 C 11.25 8.69 10.69 9.25 10 9.25 L 9.25 9.25 L 9.25 11 L 10.75 11 L 10.75 10.646 C 12.118 10.259 12.966 8.893 12.706 7.496 C 12.446 6.098 11.163 5.129 9.748 5.26 C 8.332 5.39 7.249 6.578 7.25 8 Z",
|
|
625
691
|
fill: strokeColor
|
|
626
692
|
}), jsx("path", {
|
|
@@ -980,31 +1046,33 @@ const STATIC_ICON_REGISTRY = new Map([ [ "highlight", {
|
|
|
980
1046
|
var IconNames;
|
|
981
1047
|
|
|
982
1048
|
Icon.displayName = "Icon", function(IconNames) {
|
|
983
|
-
IconNames.
|
|
984
|
-
IconNames.
|
|
985
|
-
IconNames.
|
|
986
|
-
IconNames.
|
|
987
|
-
IconNames.
|
|
988
|
-
IconNames.
|
|
989
|
-
IconNames.
|
|
990
|
-
IconNames.
|
|
991
|
-
IconNames.
|
|
992
|
-
IconNames.
|
|
993
|
-
IconNames.
|
|
994
|
-
IconNames.
|
|
995
|
-
IconNames.
|
|
996
|
-
IconNames.
|
|
997
|
-
IconNames.
|
|
998
|
-
IconNames.
|
|
999
|
-
IconNames.
|
|
1000
|
-
IconNames.
|
|
1001
|
-
IconNames.
|
|
1002
|
-
IconNames.
|
|
1003
|
-
IconNames.
|
|
1004
|
-
IconNames.
|
|
1005
|
-
IconNames.
|
|
1006
|
-
IconNames.
|
|
1007
|
-
IconNames.
|
|
1049
|
+
IconNames.video = "video", IconNames.mic = "mic", IconNames.micMuted = "mic muted",
|
|
1050
|
+
IconNames.camera = "camera", IconNames.videoOff = "video off", IconNames.home = "home",
|
|
1051
|
+
IconNames.inbox = "inbox", IconNames.sparkle = "sparkle", IconNames.people = "people",
|
|
1052
|
+
IconNames.wallet = "wallet", IconNames.invoice = "invoice", IconNames.payment = "payment",
|
|
1053
|
+
IconNames.heart = "heart", IconNames.clock = "clock", IconNames.book = "book", IconNames.search = "search",
|
|
1054
|
+
IconNames.filter = "filter", IconNames.more = "more", IconNames.checkbox = "checkbox",
|
|
1055
|
+
IconNames.checkboxChecked = "checkbox checked", IconNames.checkboxPartial = "checkbox partial",
|
|
1056
|
+
IconNames.chevronDown = "chevron down", IconNames.chevronUp = "chevron up", IconNames.plus = "plus",
|
|
1057
|
+
IconNames.plusCircle = "plus circle", IconNames.x = "x", IconNames.upload = "upload",
|
|
1058
|
+
IconNames.download = "download", IconNames.share = "share", IconNames.checkCircle = "check circle",
|
|
1059
|
+
IconNames.circle = "circle", IconNames.circleFill = "circle fill", IconNames.person = "person",
|
|
1060
|
+
IconNames.attach = "attach", IconNames.menu = "menu", IconNames.help = "help", IconNames.blank = "blank",
|
|
1061
|
+
IconNames.check = "check", IconNames.message = "message", IconNames.info = "info",
|
|
1062
|
+
IconNames.alert = "alert", IconNames.notification = "notification", IconNames.arrowUp = "arrow up",
|
|
1063
|
+
IconNames.arrowLeft = "arrow left", IconNames.arrowRight = "arrow right", IconNames.navigate = "navigate",
|
|
1064
|
+
IconNames.document = "document", IconNames.refresh = "refresh", IconNames.recentChats = "recent chats",
|
|
1065
|
+
IconNames.trashBin = "trash bin", IconNames.dollar = "dollar", IconNames.apple = "apple",
|
|
1066
|
+
IconNames.view = "view", IconNames.openCircle = "open circle", IconNames.expanded = "expanded",
|
|
1067
|
+
IconNames.concise = "concise", IconNames.moderate = "moderate", IconNames.mail = "mail",
|
|
1068
|
+
IconNames.textDocument = "text document", IconNames.edit = "edit", IconNames.characterBeam = "character beam",
|
|
1069
|
+
IconNames.undo = "undo", IconNames.chat = "chat", IconNames.exclamation = "exclamation",
|
|
1070
|
+
IconNames.chart = "chart", IconNames.lightBulb = "light bulb", IconNames.settings = "settings",
|
|
1071
|
+
IconNames.documentEditor = "document editor", IconNames.chartArrow = "chart arrow",
|
|
1072
|
+
IconNames.focus = "focus", IconNames.briefcase = "briefcase", IconNames.globeLocation = "globe location",
|
|
1073
|
+
IconNames.barChart = "bar chart", IconNames.fontSmaller = "font smaller", IconNames.fontLarger = "font larger",
|
|
1074
|
+
IconNames.copy = "copy", IconNames.stop = "stop", IconNames.like = "like", IconNames.unlike = "unlike",
|
|
1075
|
+
IconNames.highlight = "highlight";
|
|
1008
1076
|
}(IconNames || (IconNames = {}));
|
|
1009
1077
|
|
|
1010
1078
|
export { Icon as I, IconNames as a };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create a tint value from a hex color
|
|
3
|
+
*/
|
|
4
|
+
const tintFromColor = (hex, percent) => {
|
|
5
|
+
const normalizedHex = hex.trim().replace("#", "");
|
|
6
|
+
if (!(3 === normalizedHex.length || 6 === normalizedHex.length) || !/^[0-9a-fA-F]+$/.test(normalizedHex)) return hex;
|
|
7
|
+
const fullHex = 3 === normalizedHex.length ? normalizedHex.split("").map(char => `${char}${char}`).join("") : normalizedHex, ratio = Math.max(-1, Math.min(1, Math.abs(percent) > 1 ? percent / 100 : percent)), mixTo = ratio >= 0 ? 255 : 0, mix = Math.abs(ratio);
|
|
8
|
+
return `#${[ 0, 2, 4 ].map(start => Number.parseInt(fullHex.slice(start, start + 2), 16)).map(channel => {
|
|
9
|
+
const next = Math.round(channel + (mixTo - channel) * mix);
|
|
10
|
+
return Math.max(0, Math.min(255, next));
|
|
11
|
+
}).map(channel => channel.toString(16).padStart(2, "0")).join("")}`;
|
|
12
|
+
}, addOpacity = (color, opacity) => {
|
|
13
|
+
if (!color) return "";
|
|
14
|
+
const alpha = Number.isFinite(opacity) ? Math.max(0, Math.min(1, opacity)) : 1, trimmed = color.trim();
|
|
15
|
+
if (trimmed.startsWith("#")) {
|
|
16
|
+
const normalized = trimmed.slice(1), fullHex = 3 === normalized.length ? normalized.split("").map(char => `${char}${char}`).join("") : normalized;
|
|
17
|
+
if (!/^[0-9a-fA-F]{6}$/.test(fullHex)) return color;
|
|
18
|
+
return `rgba(${Number.parseInt(fullHex.slice(0, 2), 16)}, ${Number.parseInt(fullHex.slice(2, 4), 16)}, ${Number.parseInt(fullHex.slice(4, 6), 16)}, ${alpha})`;
|
|
19
|
+
}
|
|
20
|
+
const rgbMatch = trimmed.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*[\d.]+\s*)?\)$/);
|
|
21
|
+
if (rgbMatch) {
|
|
22
|
+
const [, r, g, b] = rgbMatch;
|
|
23
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
24
|
+
}
|
|
25
|
+
return color;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Adds the desired opacity level to a hex or RGB color string
|
|
30
|
+
*/ export { addOpacity as a, tintFromColor as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./tslib.es6-c-7TIv71.mjs";
|
|
1
|
+
import { a as __awaiter } from "./tslib.es6-c-7TIv71.mjs";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Clean up string with html
|
|
@@ -71,4 +71,23 @@ function accessibleKeyDown(e, clickFunction, keys) {
|
|
|
71
71
|
return useValue ? "string" == typeof useValue ? useValue : `${useValue}px` : "unset";
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Copy to clipboard
|
|
76
|
+
*/ const copyToClipboard = rawContent => __awaiter(void 0, void 0, void 0, function*() {
|
|
77
|
+
try {
|
|
78
|
+
const textArea = document.createElement("textarea");
|
|
79
|
+
return textArea.value = rawContent, textArea.style.position = "fixed", textArea.style.left = "-9999px",
|
|
80
|
+
document.body.appendChild(textArea), textArea.focus(), textArea.select(), document.execCommand("copy"),
|
|
81
|
+
textArea.remove(), !0;
|
|
82
|
+
} catch (error) {
|
|
83
|
+
return console.warn("Unable to copy to clipboard:", error), !1;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get normalized percent value from number or string
|
|
89
|
+
*/ function normalizedPercent(value) {
|
|
90
|
+
return "number" == typeof value ? value : value.endsWith("%") ? Number.parseFloat(value) : Number.parseFloat(value) / 100;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { accessibleKeyDown as a, cleanString as b, copyToClipboard as c, debug as d, filterClasses as f, normalizedPercent as n, pointerPosition as p, setStyle as s };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { create } from "zustand";
|
|
2
|
+
|
|
3
|
+
import "./tslib.es6-c-7TIv71.mjs";
|
|
4
|
+
|
|
5
|
+
import { SSEConnection } from "../utils/objects/index.mjs";
|
|
6
|
+
|
|
7
|
+
const useSSEStore = create((set, get) => ({
|
|
8
|
+
connections: [],
|
|
9
|
+
message: null,
|
|
10
|
+
closedConnection: null,
|
|
11
|
+
actions: {
|
|
12
|
+
addConnection: (name, options) => {
|
|
13
|
+
const existingConnection = get().connections.find(c => c.name === name);
|
|
14
|
+
null == existingConnection || existingConnection.connection.close();
|
|
15
|
+
const userOnMessageCallback = options.onMessageCallback, connection = new SSEConnection(Object.assign(Object.assign({}, options), {
|
|
16
|
+
unifiedOnMessage: !0,
|
|
17
|
+
onMessageCallback: message => {
|
|
18
|
+
set({
|
|
19
|
+
message: message
|
|
20
|
+
}), null == userOnMessageCallback || userOnMessageCallback(message), "close" === message.type && (set({
|
|
21
|
+
closedConnection: name
|
|
22
|
+
}), get().actions.removeConnection(name));
|
|
23
|
+
}
|
|
24
|
+
}));
|
|
25
|
+
return set(state => ({
|
|
26
|
+
connections: [ ...state.connections.filter(connection => connection.name !== name), {
|
|
27
|
+
name: name,
|
|
28
|
+
connection: connection
|
|
29
|
+
} ]
|
|
30
|
+
})), {
|
|
31
|
+
name: name,
|
|
32
|
+
connection: connection
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
removeConnection: name => {
|
|
36
|
+
const existingConnection = get().connections.find(c => c.name === name);
|
|
37
|
+
existingConnection && (existingConnection.connection.close(), set(state => ({
|
|
38
|
+
connections: state.connections.filter(connection => connection.name !== name)
|
|
39
|
+
})));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
})), useSSE = () => useSSEStore(state => state.actions), useConnectionClose = () => useSSEStore(state => state.closedConnection), useConnectionMessage = connection => useSSEStore(state => state.connections.some(entry => entry.name === connection) ? state.message : null), useIsConnected = connection => useSSEStore(state => {
|
|
43
|
+
var _a, _b;
|
|
44
|
+
return connection ? null !== (_b = null === (_a = state.connections.find(entry => entry.name === connection)) || void 0 === _a ? void 0 : _a.connection.connected) && void 0 !== _b && _b : state.connections.some(entry => entry.connection.connected);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
function useMessage(type, connection) {
|
|
48
|
+
return useSSEStore(state => {
|
|
49
|
+
const sourceMessage = connection && !state.connections.some(c => c.name === connection) ? null : state.message;
|
|
50
|
+
return type ? sourceMessage && sourceMessage.type === type ? "open" === type || "error" === type || "close" === type ? "event" in sourceMessage ? sourceMessage.event : null : "data" in sourceMessage ? sourceMessage.data : null : null : sourceMessage;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const useSSEActions = useSSEStore.getState().actions, useLastSSEMessage = () => useSSEStore.getState().message;
|
|
55
|
+
|
|
56
|
+
export { useConnectionMessage as a, useIsConnected as b, useLastSSEMessage as c, useMessage as d, useSSE as e, useSSEActions as f, useSSEStore as g, useConnectionClose as u };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { A as Avatar } from "../../chunks/Avatar-CDMV6f9w.mjs";
|
|
2
|
+
|
|
3
|
+
import "../../chunks/tslib.es6-c-7TIv71.mjs";
|
|
4
|
+
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
import "react";
|
|
8
|
+
|
|
9
|
+
import "../../chunks/misc-cg9I7drO.mjs";
|
|
10
|
+
|
|
11
|
+
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { A as AvatarGroup } from "../../chunks/AvatarGroup-BZ18GwhK.mjs";
|
|
2
|
+
|
|
3
|
+
import "../../chunks/tslib.es6-c-7TIv71.mjs";
|
|
4
|
+
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
import "react";
|
|
8
|
+
|
|
9
|
+
import "../../chunks/Avatar-CDMV6f9w.mjs";
|
|
10
|
+
|
|
11
|
+
import "../../chunks/misc-cg9I7drO.mjs";
|
|
12
|
+
|
|
13
|
+
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button } from "../../chunks/Button-
|
|
1
|
+
export { B as Button } from "../../chunks/Button-DJDS7Yad.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../chunks/tslib.es6-c-7TIv71.mjs";
|
|
4
4
|
|
|
@@ -8,13 +8,13 @@ import "motion/react";
|
|
|
8
8
|
|
|
9
9
|
import "react";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/Badge-
|
|
11
|
+
import "../../chunks/Badge-DyICxZP2.mjs";
|
|
12
12
|
|
|
13
13
|
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
14
14
|
|
|
15
|
-
import "../../chunks/Dot-
|
|
15
|
+
import "../../chunks/Dot-CLGwQu-i.mjs";
|
|
16
16
|
|
|
17
|
-
import "../../chunks/_types-
|
|
17
|
+
import "../../chunks/_types-CTmvSEX0.mjs";
|
|
18
18
|
|
|
19
19
|
import "../../hooks/useTheme.mjs";
|
|
20
20
|
|
|
@@ -34,8 +34,8 @@ import "../../hooks/useObserveTheme.mjs";
|
|
|
34
34
|
|
|
35
35
|
import "../../hooks/useWindow.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/
|
|
37
|
+
import "../../chunks/misc-cg9I7drO.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/ProgressIndicator-
|
|
39
|
+
import "../../chunks/ProgressIndicator-h11R3FG1.mjs";
|
|
40
40
|
|
|
41
41
|
import "../../chunks/sharedTypes-tn9-uJvb.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as ButtonBar } from "../../chunks/ButtonBar-
|
|
1
|
+
export { B as ButtonBar } from "../../chunks/ButtonBar-DIsqJmrS.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../chunks/tslib.es6-c-7TIv71.mjs";
|
|
4
4
|
|
|
@@ -24,18 +24,18 @@ import "../../hooks/useObserveTheme.mjs";
|
|
|
24
24
|
|
|
25
25
|
import "../../hooks/useWindow.mjs";
|
|
26
26
|
|
|
27
|
-
import "../../chunks/IconButton-
|
|
27
|
+
import "../../chunks/IconButton-C8RBNFzh.mjs";
|
|
28
28
|
|
|
29
29
|
import "motion/react";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/Badge-
|
|
31
|
+
import "../../chunks/Badge-DyICxZP2.mjs";
|
|
32
32
|
|
|
33
33
|
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
34
34
|
|
|
35
|
-
import "../../chunks/Dot-
|
|
35
|
+
import "../../chunks/Dot-CLGwQu-i.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/_types-
|
|
37
|
+
import "../../chunks/_types-CTmvSEX0.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/
|
|
39
|
+
import "../../chunks/misc-cg9I7drO.mjs";
|
|
40
40
|
|
|
41
41
|
import "../../chunks/sharedTypes-tn9-uJvb.mjs";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { C as Camera } from "../../chunks/Camera-BvJJ5cd-.mjs";
|
|
2
|
+
|
|
3
|
+
import "../../chunks/tslib.es6-c-7TIv71.mjs";
|
|
4
|
+
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
import "react";
|
|
8
|
+
|
|
9
|
+
import "../../hooks/useTheme.mjs";
|
|
10
|
+
|
|
11
|
+
import "../../theme/themes.mjs";
|
|
12
|
+
|
|
13
|
+
import "../../theme/colors.mjs";
|
|
14
|
+
|
|
15
|
+
import "../../theme/corners.mjs";
|
|
16
|
+
|
|
17
|
+
import "../../theme/elevations.mjs";
|
|
18
|
+
|
|
19
|
+
import "../../theme/motion.mjs";
|
|
20
|
+
|
|
21
|
+
import "../../theme/type.mjs";
|
|
22
|
+
|
|
23
|
+
import "../../hooks/useObserveTheme.mjs";
|
|
24
|
+
|
|
25
|
+
import "../../hooks/useWindow.mjs";
|
|
26
|
+
|
|
27
|
+
import "../../chunks/misc-cg9I7drO.mjs";
|
|
28
|
+
|
|
29
|
+
import "../../chunks/colors-DR9fLI5X.mjs";
|
|
30
|
+
|
|
31
|
+
import "../../chunks/Avatar-CDMV6f9w.mjs";
|
|
32
|
+
|
|
33
|
+
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
34
|
+
|
|
35
|
+
import "../../chunks/_types-CTmvSEX0.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Card } from "../../chunks/Card-
|
|
1
|
+
export { C as Card } from "../../chunks/Card-DjHdCav5.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../chunks/tslib.es6-c-7TIv71.mjs";
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import "react/jsx-runtime";
|
|
|
6
6
|
|
|
7
7
|
import "react";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/_types-
|
|
9
|
+
import "../../chunks/_types-CTmvSEX0.mjs";
|
|
10
10
|
|
|
11
11
|
import "../../hooks/useTheme.mjs";
|
|
12
12
|
|
|
@@ -26,6 +26,6 @@ import "../../hooks/useObserveTheme.mjs";
|
|
|
26
26
|
|
|
27
27
|
import "../../hooks/useWindow.mjs";
|
|
28
28
|
|
|
29
|
-
import "../../chunks/
|
|
29
|
+
import "../../chunks/misc-cg9I7drO.mjs";
|
|
30
30
|
|
|
31
31
|
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CheckBox } from "../../chunks/CheckBox-
|
|
1
|
+
export { C as CheckBox } from "../../chunks/CheckBox-C1LPehvl.mjs";
|
|
2
2
|
|
|
3
3
|
import "../../chunks/tslib.es6-c-7TIv71.mjs";
|
|
4
4
|
|
|
@@ -26,8 +26,8 @@ import "../../hooks/useObserveTheme.mjs";
|
|
|
26
26
|
|
|
27
27
|
import "../../hooks/useWindow.mjs";
|
|
28
28
|
|
|
29
|
-
import "../../chunks/_types-
|
|
29
|
+
import "../../chunks/_types-CTmvSEX0.mjs";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/
|
|
31
|
+
import "../../chunks/misc-cg9I7drO.mjs";
|
|
32
32
|
|
|
33
33
|
import "../../chunks/style-inject.es-D0BjEaN8.mjs";
|