@fde-desktop/fde-core 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccordionChevron-CJXAq5o5.js → AccordionChevron-DxpOyInK.js} +1 -1
- package/dist/AccordionChevron-kn5kSrEc.cjs +1 -0
- package/dist/{ActionIcon-CtVbYlGY.js → ActionIcon-Drh4p6Fv.js} +32 -32
- package/dist/ActionIcon-alk2zZD6.cjs +1 -0
- package/dist/AppEmptyState-BWCUbf-B.cjs +1 -0
- package/dist/AppEmptyState-Bxpit0JV.js +49 -0
- package/dist/AppIcon-BU7a3ZNH.cjs +1 -0
- package/dist/{AppIcon-DCDuaU-t.js → AppIcon-XumS3bIG.js} +4 -4
- package/dist/AppMenuBar-B9U0n1Vv.cjs +1 -0
- package/dist/AppMenuBar-CnIEVjr8.js +2049 -0
- package/dist/{Box-DRm8EabO.js → Box-DSKR_qaa.js} +257 -271
- package/dist/Box-zW6Twge8.cjs +1 -0
- package/dist/Button-DMlnrqyx.cjs +1 -0
- package/dist/{Button-k7SxX1Xl.js → Button-wTOTQKxF.js} +38 -38
- package/dist/CalendarApp-B_e1B1Yn.cjs +1 -0
- package/dist/CalendarApp-C-l9D6nd.cjs +1 -0
- package/dist/CalendarApp-D0ftTCTG.js +1399 -0
- package/dist/{Center-CyryG5zn.js → Center-CmxXB9ql.js} +1 -1
- package/dist/Center-DKUE2pER.cjs +1 -0
- package/dist/CheckIcon-CZhtJD1O.cjs +1 -0
- package/dist/{CheckIcon-C3WjIR2i.js → CheckIcon-N5qBqXQJ.js} +1 -1
- package/dist/CodeServerApp-BOoGwZ7r.cjs +1 -0
- package/dist/CodeServerApp-Be3I5EGg.cjs +1 -0
- package/dist/{CodeServerApp-DY94cy1a.js → CodeServerApp-DW18EZxa.js} +48 -47
- package/dist/{ColorPicker-DvRR-wlQ.js → ColorPicker-BCNqi02x.js} +364 -364
- package/dist/ColorPicker-BrDE7tMO.cjs +1 -0
- package/dist/CreateItemApp-B12M1E_1.cjs +1 -0
- package/dist/{CreateItemApp-CtdH1K1g.js → CreateItemApp-TAAprby3.js} +13 -13
- package/dist/CreateItemApp-ePB6ujNl.cjs +1 -0
- package/dist/DeviceInfoApp-BMF18BGo.cjs +1 -0
- package/dist/DeviceInfoApp-DRy0H3aT.cjs +1 -0
- package/dist/{DeviceInfoApp-C306YvtZ.js → DeviceInfoApp-lgpwkeRR.js} +7 -7
- package/dist/{DownloadProgress-hdupSUBT.js → DownloadProgress-EoyCaD5O.js} +15 -15
- package/dist/DownloadProgress-VNdj22U8.cjs +1 -0
- package/dist/{FileIcon-BCpGMI5U.js → FileIcon-7JaSR3Gn.js} +26 -25
- package/dist/FileIcon-CIXopWLv.cjs +1 -0
- package/dist/{FilePickerApp-DMGuvahM.js → FilePickerApp-DaMgEqKh.js} +115 -115
- package/dist/FilePickerApp-DjmuSFqa.cjs +1 -0
- package/dist/FilesApp-Bp7wfrBZ.cjs +1 -0
- package/dist/FilesApp-BpJJRKhi.cjs +1 -0
- package/dist/{FilesApp-VXrmtt63.js → FilesApp-Cj94QG5o.js} +21 -21
- package/dist/{Group-BzwlMeob.js → Group-CtBJSfCo.js} +1 -1
- package/dist/Group-Dsrf6lEK.cjs +1 -0
- package/dist/{ImageViewerApp-CWiP6zx-.js → ImageViewerApp-BaLP3gkO.js} +18 -17
- package/dist/ImageViewerApp-DlHGeB3S.cjs +1 -0
- package/dist/ImageViewerApp-DoXd_Swu.cjs +1 -0
- package/dist/{ImageViewerMenuBar-BULkh_Ku.js → ImageViewerMenuBar-CabGSi9r.js} +15 -14
- package/dist/ImageViewerMenuBar-SAI7UNz7.cjs +1 -0
- package/dist/ImageViewerMenuBar-_Jr29gii.cjs +1 -0
- package/dist/MenuEditApp-BJjlPTOa.cjs +1 -0
- package/dist/MenuEditApp-BTRppYnD.js +497 -0
- package/dist/MenuEditApp-JPsGT-S3.cjs +1 -0
- package/dist/MenuEditMenuBar-BydGkqMw.cjs +1 -0
- package/dist/MenuEditMenuBar-DptlwVPQ.cjs +1 -0
- package/dist/{MenuEditMenuBar-B94z4Umw.js → MenuEditMenuBar-x1IQrHP2.js} +13 -12
- package/dist/NotesApp-BOcRGO7w.cjs +1 -0
- package/dist/NotesApp-CQe7UfBC.js +364 -0
- package/dist/NotesApp-OL07JXRE.cjs +1 -0
- package/dist/NotesMenuBar-BSI_2Y7p.cjs +1 -0
- package/dist/NotesMenuBar-Df6aW85J.cjs +1 -0
- package/dist/{NotesMenuBar-BB4NkKGf.js → NotesMenuBar-VhpIe68v.js} +10 -9
- package/dist/{Paper-DtUYKmYn.js → Paper-BX_9odR6.js} +3 -3
- package/dist/Paper-D8-BaBx2.cjs +1 -0
- package/dist/PdfApp-CNEbty5v.cjs +1 -0
- package/dist/PdfApp-CVv3ZCaM.cjs +1 -0
- package/dist/PdfApp-DL_R9-Nc.js +39 -0
- package/dist/PdfMenuBar--E6kDyrT.cjs +1 -0
- package/dist/PdfMenuBar-DZCLSOpR.js +39 -0
- package/dist/PdfMenuBar-Dj5cJUkg.cjs +1 -0
- package/dist/SettingsApp-BlmHuAjT.js +1831 -0
- package/dist/SettingsApp-CNvIgf5B.cjs +1 -0
- package/dist/SettingsApp-DWxanNE4.cjs +1 -0
- package/dist/SettingsMenuBar-CBoOBCfx.cjs +1 -0
- package/dist/SettingsMenuBar-DQooFkZN.cjs +1 -0
- package/dist/SettingsMenuBar-YWiJHaxq.js +42 -0
- package/dist/Slider-BUiHxjKO.cjs +1 -0
- package/dist/{Slider-BNO-vDFn.js → Slider-t-NcD60t.js} +148 -147
- package/dist/{Stack-CuDEaP7e.js → Stack-Bp1Ek2Gp.js} +1 -1
- package/dist/Stack-D4jAiRfc.cjs +1 -0
- package/dist/StorybookApp-CDLV_kja.cjs +1 -0
- package/dist/{StorybookApp-WYninkJo.js → StorybookApp-DKwlPCmo.js} +1 -1
- package/dist/TerminalApp-BCB7i1lR.cjs +1 -0
- package/dist/TerminalApp-BYc_gHLe.js +326 -0
- package/dist/TerminalApp-Dviz6aP2.cjs +1 -0
- package/dist/{TerminalMenuBar-iKLydNda.js → TerminalMenuBar-D5tPmgR_.js} +15 -14
- package/dist/TerminalMenuBar-DNshPmCa.cjs +1 -0
- package/dist/TerminalMenuBar-HzMSR7XP.cjs +1 -0
- package/dist/{TextInput-C3qfxxWI.js → TextInput-C-JtGWn1.js} +264 -263
- package/dist/TextInput-CrsmcOip.cjs +1 -0
- package/dist/Tooltip-D5Cd9wtz.cjs +1 -0
- package/dist/Tooltip-DOeIvhrO.js +1142 -0
- package/dist/{UnstyledButton-CI3kyRck.js → UnstyledButton-DGaG-e_G.js} +1 -1
- package/dist/UnstyledButton-DX2pTahr.cjs +1 -0
- package/dist/UploaderApp-C6xA5Rrf2.cjs +1 -0
- package/dist/UploaderApp-DnHIRxB_.cjs +1 -0
- package/dist/{UploaderApp-C9W_yCT-.js → UploaderApp-qBfpukR_.js} +118 -117
- package/dist/VscIcon-CcMdrFoJ.cjs +1 -0
- package/dist/{VscIcon-DueRJVTe.js → VscIcon-DBfVnArE.js} +1 -1
- package/dist/create-safe-context-Bboj0GWC.cjs +1 -0
- package/dist/desktopStore-CZoA9VHO.cjs +1 -0
- package/dist/{desktopStore-B0R1-BeA.js → desktopStore-F8bgLqFl.js} +256 -393
- package/dist/getRuntime-BFK0-8R1.cjs +1 -0
- package/dist/{getRuntime-CCRXVzJH.js → getRuntime-DAPqFH2W.js} +5 -5
- package/dist/imageViewerStore-BB_tssZR.cjs +1 -0
- package/dist/{imageViewerStore-CJMRXaQh.js → imageViewerStore-C5kWz0o7.js} +1 -1
- package/dist/index.cjs +1 -53
- package/dist/index.css +1 -1
- package/dist/index.js +1293 -5468
- package/dist/is-element-CdV0xajp.cjs +1 -0
- package/dist/menuEditStore-CTeM_dns.cjs +1 -0
- package/dist/{menuEditStore-C8S_EedM.js → menuEditStore-Cj1zAwxQ.js} +1 -1
- package/dist/notesStore-BCEl1D_v.cjs +1 -0
- package/dist/{notesStore-DKRgTTFn.js → notesStore-BPyRTHEc.js} +1 -1
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/{settingsAppStore-KOeWRO6h.js → settingsAppStore-BDQ3ts1y.js} +1 -1
- package/dist/settingsAppStore-CMBc13VU.cjs +1 -0
- package/dist/{terminalStore-LWWjCvCe.js → terminalStore-IWdf4Mm6.js} +1 -1
- package/dist/terminalStore-iIuyodfK.cjs +1 -0
- package/dist/use-merged-ref-n9Gw9LNn.cjs +1 -0
- package/dist/{use-resolved-styles-api-AVDygMKo.cjs → use-resolved-styles-api-8OXE2oRq.cjs} +1 -1
- package/dist/{use-resolved-styles-api-pEOi2wiK.js → use-resolved-styles-api-DNUlJJZf.js} +1 -1
- package/dist/use-uncontrolled-DDJVQiM_.cjs +1 -0
- package/dist/{useAdaptiveDimensions-CunsU0mn.js → useAdaptiveDimensions-AVDc_qPa.js} +1 -1
- package/dist/useAdaptiveDimensions-CfITBJ_m.cjs +1 -0
- package/dist/{useCloseInterceptor-CuKAAFnj.js → useCloseInterceptor-BZd3VILp.js} +12 -12
- package/dist/useCloseInterceptor-yntBEzNc.cjs +1 -0
- package/dist/{useDynamicIcon-GJg3vWsJ.js → useDynamicIcon-Bf0t2foA.js} +1 -1
- package/dist/useDynamicIcon-DJ_il30E.cjs +1 -0
- package/dist/{useOpenApp-JHCPTBWa.js → useOpenApp-CBIm7Gzl.js} +3 -3
- package/dist/useOpenApp-DW4x79Zg.cjs +1 -0
- package/dist/useResolvedUrl-BkMPM1fM.cjs +1 -0
- package/dist/{useResolvedUrl-DFKXq598.js → useResolvedUrl-DQpLqOoL.js} +2 -2
- package/package.json +1 -1
- package/dist/AccordionChevron-DBXp38Lm.cjs +0 -1
- package/dist/ActionIcon-C_SfdBfx.cjs +0 -1
- package/dist/AppEmptyState-BTujnL_b.js +0 -4962
- package/dist/AppEmptyState-Dc4GaDfu.cjs +0 -1
- package/dist/AppIcon--qzR4sgf.cjs +0 -1
- package/dist/AppMenuBar-BiHbNg9V.cjs +0 -9
- package/dist/AppMenuBar-CHJy8OF0.js +0 -2639
- package/dist/Box-D_64wv6n.cjs +0 -1
- package/dist/Button-D0FXpkur.cjs +0 -1
- package/dist/CalendarApp-C1HvuJoa.cjs +0 -1
- package/dist/CalendarApp-DBEQqsS_.js +0 -1721
- package/dist/Center-T4No_FAa.cjs +0 -1
- package/dist/CheckIcon-CBMLR6Gc.cjs +0 -1
- package/dist/CodeServerApp-B3l5QPuG.cjs +0 -1
- package/dist/CodeServerApp-BpeALSaX.js +0 -2
- package/dist/CodeServerApp-CRjCngFv.cjs +0 -1
- package/dist/ColorPicker-BL4UbKCV.cjs +0 -1
- package/dist/CreateItemApp-BU9wmjKM.cjs +0 -1
- package/dist/CreateItemApp-t9F-a6wD.cjs +0 -1
- package/dist/DeviceInfoApp-Cdju_LIB.cjs +0 -1
- package/dist/DeviceInfoApp-CyB01v4D.cjs +0 -1
- package/dist/DownloadProgress-IRw1dzLX.cjs +0 -1
- package/dist/FileIcon-BCrsxmtt.cjs +0 -1
- package/dist/FilePickerApp-Eu0cr2Cm.cjs +0 -1
- package/dist/FilesApp-30OjnOuP.cjs +0 -1
- package/dist/FilesApp-BvlzPNuO.cjs +0 -1
- package/dist/Group-DhwePB84.cjs +0 -1
- package/dist/ImageViewerApp-BOz59TGc.cjs +0 -1
- package/dist/ImageViewerApp-BeqY6voE.cjs +0 -1
- package/dist/ImageViewerApp-DBAfJPSo.js +0 -2
- package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +0 -2
- package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +0 -1
- package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +0 -1
- package/dist/MenuEditApp-BoKtj2GH.js +0 -2
- package/dist/MenuEditApp-D21sEp86.js +0 -2615
- package/dist/MenuEditApp-k3cPfTG9.cjs +0 -1
- package/dist/MenuEditApp-sz9GlLVH.cjs +0 -5
- package/dist/MenuEditMenuBar-6QxlIDpl.cjs +0 -1
- package/dist/MenuEditMenuBar-Bv6R42lf.js +0 -2
- package/dist/MenuEditMenuBar-CBsmH_-T.cjs +0 -1
- package/dist/NotesApp-BtR55Hva.cjs +0 -207
- package/dist/NotesApp-C59exz_9.js +0 -16154
- package/dist/NotesApp-D47I5LS_.js +0 -2
- package/dist/NotesApp-lOwsi2sg.cjs +0 -1
- package/dist/NotesMenuBar-BZITC74y.cjs +0 -1
- package/dist/NotesMenuBar-Bp0sPqyR.cjs +0 -1
- package/dist/NotesMenuBar-xlfODmMA.js +0 -2
- package/dist/Paper-DwCpwWwH.cjs +0 -1
- package/dist/PdfApp-1XbFGfoY.cjs +0 -1
- package/dist/PdfApp-BhIoJWeK.cjs +0 -1
- package/dist/PdfApp-C5Rt1Zaw.js +0 -2
- package/dist/PdfApp-C8Hwxxqh.js +0 -38
- package/dist/PdfMenuBar-BA9rKuMP.cjs +0 -1
- package/dist/PdfMenuBar-JXHqwxhZ.cjs +0 -1
- package/dist/PdfMenuBar-R0fu7oYF.js +0 -2
- package/dist/PdfMenuBar-sd-9Vk3h.js +0 -38
- package/dist/SettingsApp-BA-5B4RA.cjs +0 -1
- package/dist/SettingsApp-B_rev1xh.cjs +0 -1
- package/dist/SettingsApp-Ck4aUXs5.js +0 -2
- package/dist/SettingsApp-DUMKSA3K.js +0 -2425
- package/dist/SettingsMenuBar-BPwv8JQK.js +0 -41
- package/dist/SettingsMenuBar-D8R7hOik.js +0 -2
- package/dist/SettingsMenuBar-DDrjZLmg.cjs +0 -1
- package/dist/SettingsMenuBar-DQjUa8g1.cjs +0 -1
- package/dist/Slider-Bg_EIBg6.cjs +0 -1
- package/dist/Stack-BOaJgV3N.cjs +0 -1
- package/dist/StorybookApp-Bkr-7mXp.cjs +0 -1
- package/dist/TerminalApp-8XbsKAWa.js +0 -10041
- package/dist/TerminalApp-Bq2e7QQu.cjs +0 -1
- package/dist/TerminalApp-CVu3Axc9.js +0 -2
- package/dist/TerminalApp-b7_d0jRO.cjs +0 -36
- package/dist/TerminalMenuBar-Cb8x9laS.js +0 -2
- package/dist/TerminalMenuBar-De-FH5AE.cjs +0 -1
- package/dist/TerminalMenuBar-yOaWd-hn.cjs +0 -1
- package/dist/TextInput-DcYns3hz.cjs +0 -1
- package/dist/Tooltip-CAOO-qdx.js +0 -3185
- package/dist/Tooltip-DDh_x-CB.cjs +0 -1
- package/dist/UnstyledButton-Cl5RuIid.cjs +0 -1
- package/dist/UploaderApp-BZXW75A0.cjs +0 -1
- package/dist/UploaderApp-CPpStgP5.cjs +0 -1
- package/dist/UploaderApp-DHsMQN-f.js +0 -2
- package/dist/VscIcon-CxEmqD80.cjs +0 -1
- package/dist/chunk-BQCxAhux.js +0 -23
- package/dist/chunk-CiTBaPhY.cjs +0 -1
- package/dist/create-safe-context-95P-Bfg3.cjs +0 -1
- package/dist/desktopStore-Cox-Og1z.cjs +0 -1
- package/dist/fc-DejOsQyD.cjs +0 -1
- package/dist/fc-kd8WzIER.js +0 -20536
- package/dist/fc-xJ_v2ayq.cjs +0 -184
- package/dist/fi-BahYsbim.js +0 -9993
- package/dist/fi-BkhyTcZo.cjs +0 -1
- package/dist/getRuntime-BLXyQZBB.cjs +0 -1
- package/dist/iconBase-B4UCuSvv.cjs +0 -1
- package/dist/iconBase-D7iPes7B.js +0 -108
- package/dist/imageViewerStore-CH1qW6md.cjs +0 -1
- package/dist/is-element-BocgicRg.cjs +0 -1
- package/dist/menuEditStore-CU7IAg3L.cjs +0 -1
- package/dist/notesStore-zKmChTfF.cjs +0 -1
- package/dist/react-DYmzHD0X.js +0 -27
- package/dist/react-Dldg32sN.cjs +0 -1
- package/dist/settingsAppStore-BrlImdAH.cjs +0 -1
- package/dist/terminalStore-fZe5t7Ty.cjs +0 -1
- package/dist/use-merged-ref-BI9n1hUK.cjs +0 -1
- package/dist/use-uncontrolled-BPrfGv0W.cjs +0 -1
- package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +0 -1
- package/dist/useCloseInterceptor-a_6Lcuqj.cjs +0 -1
- package/dist/useDynamicIcon-SytdL1Tu.cjs +0 -1
- package/dist/useOpenApp-BdarhIgl.cjs +0 -1
- package/dist/useResolvedUrl-Be5ZlCX7.cjs +0 -1
- package/dist/useTranslation-DMRGdqZi.js +0 -279
- package/dist/useTranslation-D_O7S4RJ.cjs +0 -1
- package/dist/vsc-Ciibqbxo.cjs +0 -1
- package/dist/vsc-DGKSpOAR.js +0 -9574
- /package/dist/{Colors-hca6raEG.js → Colors-ClnDxnyA.js} +0 -0
- /package/dist/{Colors-BxX4G8kX.cjs → Colors-zP2AFgU3.cjs} +0 -0
- /package/dist/{useMenuBarUtils-Bp5PiztD.cjs → useMenuBarUtils-nJIPJGIQ.cjs} +0 -0
- /package/dist/{useMenuBarUtils-ChmpZjwu.js → useMenuBarUtils-nmu9yehT.js} +0 -0
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as g,
|
|
3
|
-
import { t as
|
|
4
|
-
import { d as
|
|
5
|
-
import { r as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { createContext as
|
|
12
|
-
import { Fragment as
|
|
1
|
+
import { A as e, C as t, D as n, I as r, M as i, N as a, P as o, R as s, a as c, c as l, d as u, l as d, n as f, r as p, s as m, t as h } from "./Box-DSKR_qaa.js";
|
|
2
|
+
import { d as g, n as _, u as ee } from "./Tooltip-DOeIvhrO.js";
|
|
3
|
+
import { t as v } from "./use-uncontrolled-A4hm9ATM.js";
|
|
4
|
+
import { d as y, f as b, i as x, n as S, r as te } from "./TextInput-C-JtGWn1.js";
|
|
5
|
+
import { r as ne } from "./use-merged-ref-BT8_u6vW.js";
|
|
6
|
+
import { t as re } from "./use-resolved-styles-api-DNUlJJZf.js";
|
|
7
|
+
import { t as ie } from "./UnstyledButton-DGaG-e_G.js";
|
|
8
|
+
import { t as ae } from "./ActionIcon-Drh4p6Fv.js";
|
|
9
|
+
import { t as C } from "./CheckIcon-N5qBqXQJ.js";
|
|
10
|
+
import { t as w } from "./Colors-ClnDxnyA.js";
|
|
11
|
+
import { createContext as T, createElement as E, use as D, useCallback as O, useEffect as k, useRef as A, useState as j } from "react";
|
|
12
|
+
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
13
13
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/units-converters/px.mjs
|
|
14
|
-
function
|
|
14
|
+
function F(e) {
|
|
15
15
|
return typeof e != "string" || !e.includes("var(--mantine-scale)") ? e : e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim();
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
let t =
|
|
17
|
+
function I(e) {
|
|
18
|
+
let t = F(e);
|
|
19
19
|
return typeof t == "number" ? t : typeof t == "string" ? t.includes("calc") || t.includes("var") ? t : t.includes("px") ? Number(t.replace("px", "")) : t.includes("rem") ? Number(t.replace("rem", "")) * 16 : t.includes("em") ? Number(t.replace("em", "")) * 16 : Number(t) : NaN;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-breakpoint-value/get-breakpoint-value.mjs
|
|
23
|
-
function
|
|
24
|
-
return e in t ?
|
|
23
|
+
function L(e, t) {
|
|
24
|
+
return e in t ? I(t[e]) : I(e);
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-sorted-breakpoints/get-sorted-breakpoints.mjs
|
|
28
|
-
function
|
|
28
|
+
function R(e, t) {
|
|
29
29
|
let n = e.map((e) => ({
|
|
30
30
|
value: e,
|
|
31
|
-
px:
|
|
31
|
+
px: L(e, t)
|
|
32
32
|
}));
|
|
33
33
|
return n.sort((e, t) => e.px - t.px), n;
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-base-value/get-base-value.mjs
|
|
37
|
-
function
|
|
37
|
+
function z(e) {
|
|
38
38
|
return typeof e == "object" && e ? "base" in e ? e.base : void 0 : e;
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-eye-dropper/use-eye-dropper.mjs
|
|
42
|
-
function
|
|
43
|
-
let [e, t] =
|
|
44
|
-
return
|
|
45
|
-
t(typeof window < "u" && !
|
|
42
|
+
function B() {
|
|
43
|
+
let [e, t] = j(!1);
|
|
44
|
+
return b(() => {
|
|
45
|
+
t(typeof window < "u" && !V() && "EyeDropper" in window);
|
|
46
46
|
}, []), {
|
|
47
47
|
supported: e,
|
|
48
|
-
open:
|
|
48
|
+
open: O((t = {}) => e ? new window.EyeDropper().open(t) : Promise.resolve(void 0), [e])
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function V() {
|
|
52
52
|
return navigator.userAgent.includes("OPR");
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorSwatch/ColorSwatch.module.mjs
|
|
56
|
-
var
|
|
56
|
+
var H = {
|
|
57
57
|
root: "m_de3d2490",
|
|
58
58
|
colorOverlay: "m_862f3d1b",
|
|
59
59
|
shadowOverlay: "m_98ae7f22",
|
|
60
60
|
alphaOverlay: "m_95709ac0",
|
|
61
61
|
childrenOverlay: "m_93e74e3"
|
|
62
|
-
},
|
|
63
|
-
"--cs-radius":
|
|
64
|
-
"--cs-size":
|
|
65
|
-
} })),
|
|
66
|
-
let t =
|
|
62
|
+
}, U = { withShadow: !0 }, W = n((t, { radius: n, size: i }) => ({ root: {
|
|
63
|
+
"--cs-radius": n === void 0 ? void 0 : e(n),
|
|
64
|
+
"--cs-size": r(i)
|
|
65
|
+
} })), G = f((e) => {
|
|
66
|
+
let t = d("ColorSwatch", U, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, color: c, radius: u, withShadow: f, children: p, attributes: m, ...g } = d("ColorSwatch", U, t), _ = l({
|
|
67
67
|
name: "ColorSwatch",
|
|
68
68
|
props: t,
|
|
69
|
-
classes:
|
|
69
|
+
classes: H,
|
|
70
70
|
className: r,
|
|
71
71
|
style: i,
|
|
72
72
|
classNames: n,
|
|
73
73
|
styles: a,
|
|
74
74
|
unstyled: o,
|
|
75
|
-
attributes:
|
|
76
|
-
vars:
|
|
77
|
-
varsResolver:
|
|
75
|
+
attributes: m,
|
|
76
|
+
vars: s,
|
|
77
|
+
varsResolver: W
|
|
78
78
|
});
|
|
79
|
-
return /* @__PURE__ */
|
|
79
|
+
return /* @__PURE__ */ P(h, {
|
|
80
80
|
..._("root", { focusable: !0 }),
|
|
81
81
|
...g,
|
|
82
82
|
children: [
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
f && /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ N("span", { ..._("alphaOverlay") }),
|
|
84
|
+
f && /* @__PURE__ */ N("span", { ..._("shadowOverlay") }),
|
|
85
|
+
/* @__PURE__ */ N("span", { ..._("colorOverlay", { style: { backgroundColor: c } }) }),
|
|
86
|
+
/* @__PURE__ */ N("span", {
|
|
87
87
|
..._("childrenOverlay"),
|
|
88
88
|
children: p
|
|
89
89
|
})
|
|
90
90
|
]
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
|
-
|
|
93
|
+
G.classes = H, G.varsResolver = W, G.displayName = "@mantine/core/ColorSwatch";
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/converters/parsers.mjs
|
|
96
|
-
function
|
|
96
|
+
function K(e, t = 0, n = 10 ** t) {
|
|
97
97
|
return Math.round(n * e) / n;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function q({ h: e, s: t, l: n, a: r }) {
|
|
100
100
|
let i = t * ((n < 50 ? n : 100 - n) / 100);
|
|
101
101
|
return {
|
|
102
102
|
h: e,
|
|
@@ -105,19 +105,19 @@ function J({ h: e, s: t, l: n, a: r }) {
|
|
|
105
105
|
a: r
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var J = {
|
|
109
109
|
grad: 360 / 400,
|
|
110
110
|
turn: 360,
|
|
111
111
|
rad: 360 / (Math.PI * 2)
|
|
112
112
|
};
|
|
113
|
-
function
|
|
114
|
-
return Number(e) * (
|
|
115
|
-
}
|
|
116
|
-
var
|
|
117
|
-
function
|
|
118
|
-
let t =
|
|
119
|
-
return t ?
|
|
120
|
-
h:
|
|
113
|
+
function oe(e, t = "deg") {
|
|
114
|
+
return Number(e) * (J[t] || 1);
|
|
115
|
+
}
|
|
116
|
+
var se = /hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;
|
|
117
|
+
function ce(e) {
|
|
118
|
+
let t = se.exec(e);
|
|
119
|
+
return t ? q({
|
|
120
|
+
h: oe(t[1], t[2]),
|
|
121
121
|
s: Number(t[3]),
|
|
122
122
|
l: Number(t[4]),
|
|
123
123
|
a: t[5] === void 0 ? 1 : Number(t[5]) / (t[6] ? 100 : 1)
|
|
@@ -128,23 +128,23 @@ function se(e) {
|
|
|
128
128
|
a: 1
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function le({ r: e, g: t, b: n, a: r }) {
|
|
132
132
|
let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
|
|
133
133
|
return {
|
|
134
|
-
h:
|
|
135
|
-
s:
|
|
136
|
-
v:
|
|
134
|
+
h: K(60 * (o < 0 ? o + 6 : o), 3),
|
|
135
|
+
s: K(i ? a / i * 100 : 0, 3),
|
|
136
|
+
v: K(i / 255 * 100, 3),
|
|
137
137
|
a: r
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Y(e) {
|
|
141
141
|
let t = e[0] === "#" ? e.slice(1) : e;
|
|
142
|
-
return t.length === 3 ?
|
|
142
|
+
return t.length === 3 ? le({
|
|
143
143
|
r: parseInt(t[0] + t[0], 16),
|
|
144
144
|
g: parseInt(t[1] + t[1], 16),
|
|
145
145
|
b: parseInt(t[2] + t[2], 16),
|
|
146
146
|
a: 1
|
|
147
|
-
}) :
|
|
147
|
+
}) : le({
|
|
148
148
|
r: parseInt(t.slice(0, 2), 16),
|
|
149
149
|
g: parseInt(t.slice(2, 4), 16),
|
|
150
150
|
b: parseInt(t.slice(4, 6), 16),
|
|
@@ -152,24 +152,24 @@ function le(e) {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
function ue(e) {
|
|
155
|
-
let t = e[0] === "#" ? e.slice(1) : e, n = (e) =>
|
|
155
|
+
let t = e[0] === "#" ? e.slice(1) : e, n = (e) => K(parseInt(e, 16) / 255, 3);
|
|
156
156
|
if (t.length === 4) {
|
|
157
157
|
let e = t.slice(0, 3), r = n(t[3] + t[3]);
|
|
158
158
|
return {
|
|
159
|
-
...
|
|
159
|
+
...Y(e),
|
|
160
160
|
a: r
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
let r = t.slice(0, 6), i = n(t.slice(6, 8));
|
|
164
164
|
return {
|
|
165
|
-
...
|
|
165
|
+
...Y(r),
|
|
166
166
|
a: i
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
var de = /rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;
|
|
170
170
|
function fe(e) {
|
|
171
171
|
let t = de.exec(e);
|
|
172
|
-
return t ?
|
|
172
|
+
return t ? le({
|
|
173
173
|
r: Number(t[1]) / (t[2] ? 100 / 255 : 1),
|
|
174
174
|
g: Number(t[3]) / (t[4] ? 100 / 255 : 1),
|
|
175
175
|
b: Number(t[5]) / (t[6] ? 100 / 255 : 1),
|
|
@@ -189,12 +189,12 @@ var pe = {
|
|
|
189
189
|
hsl: /hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,
|
|
190
190
|
hsla: /^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i
|
|
191
191
|
}, me = {
|
|
192
|
-
hex:
|
|
192
|
+
hex: Y,
|
|
193
193
|
hexa: ue,
|
|
194
194
|
rgb: fe,
|
|
195
195
|
rgba: fe,
|
|
196
|
-
hsl:
|
|
197
|
-
hsla:
|
|
196
|
+
hsl: ce,
|
|
197
|
+
hsla: ce
|
|
198
198
|
};
|
|
199
199
|
function X(e) {
|
|
200
200
|
for (let [, t] of Object.entries(pe)) if (t.test(e)) return !0;
|
|
@@ -224,11 +224,11 @@ function Z(e) {
|
|
|
224
224
|
}
|
|
225
225
|
//#endregion
|
|
226
226
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/ColorPicker.context.mjs
|
|
227
|
-
var he =
|
|
227
|
+
var he = T(null);
|
|
228
228
|
//#endregion
|
|
229
229
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/Thumb/Thumb.mjs
|
|
230
230
|
function ge({ position: e, ...t }) {
|
|
231
|
-
return /* @__PURE__ */
|
|
231
|
+
return /* @__PURE__ */ N(h, {
|
|
232
232
|
__vars: {
|
|
233
233
|
"--thumb-y-offset": `${e.y * 100}%`,
|
|
234
234
|
"--thumb-x-offset": `${e.x * 100}%`
|
|
@@ -251,81 +251,81 @@ var _e = {
|
|
|
251
251
|
saturationOverlay: "m_11b3db02",
|
|
252
252
|
slider: "m_d856d47d",
|
|
253
253
|
sliderOverlay: "m_8f327113"
|
|
254
|
-
}, Q =
|
|
255
|
-
let t =
|
|
256
|
-
name:
|
|
254
|
+
}, Q = p((e) => {
|
|
255
|
+
let t = d("ColorSlider", null, e), { classNames: n, className: i, style: a, styles: o, unstyled: s, vars: c, onChange: f, onChangeEnd: p, maxValue: m, round: _, size: v = "md", focusable: b = !0, value: x, overlays: S, thumbColor: te = "transparent", onScrubStart: re, onScrubEnd: ie, __staticSelector: ae = "ColorPicker", attributes: C, ref: w, ...T } = t, O = l({
|
|
256
|
+
name: ae,
|
|
257
257
|
classes: _e,
|
|
258
258
|
props: t,
|
|
259
259
|
className: i,
|
|
260
260
|
style: a,
|
|
261
|
-
classNames:
|
|
261
|
+
classNames: n,
|
|
262
262
|
styles: o,
|
|
263
|
-
unstyled:
|
|
264
|
-
attributes:
|
|
263
|
+
unstyled: s,
|
|
264
|
+
attributes: C,
|
|
265
265
|
rootSelector: "slider"
|
|
266
|
-
}),
|
|
266
|
+
}), k = D(he)?.getStyles || O, M = u(), [F, I] = j({
|
|
267
267
|
y: 0,
|
|
268
|
-
x:
|
|
269
|
-
}),
|
|
270
|
-
|
|
268
|
+
x: x / m
|
|
269
|
+
}), L = A(F), R = (e) => _ ? Math.round(e * m) : e * m, { ref: z } = g(({ x: e, y: t }) => {
|
|
270
|
+
L.current = {
|
|
271
271
|
x: e,
|
|
272
272
|
y: t
|
|
273
|
-
}, f?.(
|
|
273
|
+
}, f?.(R(e));
|
|
274
274
|
}, {
|
|
275
275
|
onScrubEnd: () => {
|
|
276
|
-
let { x: e } =
|
|
277
|
-
p?.(
|
|
276
|
+
let { x: e } = L.current;
|
|
277
|
+
p?.(R(e)), ie?.();
|
|
278
278
|
},
|
|
279
|
-
onScrubStart:
|
|
279
|
+
onScrubStart: re
|
|
280
280
|
});
|
|
281
|
-
|
|
282
|
-
|
|
281
|
+
y(() => {
|
|
282
|
+
I({
|
|
283
283
|
y: 0,
|
|
284
|
-
x:
|
|
284
|
+
x: x / m
|
|
285
285
|
});
|
|
286
|
-
}, [
|
|
287
|
-
let
|
|
286
|
+
}, [x]);
|
|
287
|
+
let B = (e, t) => {
|
|
288
288
|
e.preventDefault();
|
|
289
|
-
let n =
|
|
290
|
-
f?.(
|
|
291
|
-
},
|
|
289
|
+
let n = ee(t);
|
|
290
|
+
f?.(R(n.x)), p?.(R(n.x));
|
|
291
|
+
}, V = (e) => {
|
|
292
292
|
switch (e.key) {
|
|
293
293
|
case "ArrowRight":
|
|
294
|
-
|
|
295
|
-
x:
|
|
296
|
-
y:
|
|
294
|
+
B(e, {
|
|
295
|
+
x: F.x + .05,
|
|
296
|
+
y: F.y
|
|
297
297
|
});
|
|
298
298
|
break;
|
|
299
299
|
case "ArrowLeft":
|
|
300
|
-
|
|
301
|
-
x:
|
|
302
|
-
y:
|
|
300
|
+
B(e, {
|
|
301
|
+
x: F.x - .05,
|
|
302
|
+
y: F.y
|
|
303
303
|
});
|
|
304
304
|
break;
|
|
305
305
|
}
|
|
306
|
-
},
|
|
307
|
-
...
|
|
306
|
+
}, H = S.map((e, t) => /* @__PURE__ */ E("div", {
|
|
307
|
+
...k("sliderOverlay"),
|
|
308
308
|
style: e,
|
|
309
309
|
key: t
|
|
310
310
|
}));
|
|
311
|
-
return /* @__PURE__ */
|
|
312
|
-
...
|
|
313
|
-
ref:
|
|
314
|
-
...
|
|
315
|
-
size:
|
|
311
|
+
return /* @__PURE__ */ P(h, {
|
|
312
|
+
...T,
|
|
313
|
+
ref: ne(z, w),
|
|
314
|
+
...k("slider"),
|
|
315
|
+
size: v,
|
|
316
316
|
role: "slider",
|
|
317
|
-
"aria-valuenow":
|
|
318
|
-
"aria-valuemax":
|
|
317
|
+
"aria-valuenow": x,
|
|
318
|
+
"aria-valuemax": m,
|
|
319
319
|
"aria-valuemin": 0,
|
|
320
|
-
tabIndex:
|
|
321
|
-
onKeyDown:
|
|
322
|
-
"data-focus-ring":
|
|
323
|
-
__vars: { "--cp-thumb-size": `var(--cp-thumb-size-${
|
|
324
|
-
children: [
|
|
325
|
-
position:
|
|
326
|
-
...
|
|
327
|
-
top:
|
|
328
|
-
background:
|
|
320
|
+
tabIndex: b ? 0 : -1,
|
|
321
|
+
onKeyDown: V,
|
|
322
|
+
"data-focus-ring": M.focusRing,
|
|
323
|
+
__vars: { "--cp-thumb-size": `var(--cp-thumb-size-${v})` },
|
|
324
|
+
children: [H, /* @__PURE__ */ N(ge, {
|
|
325
|
+
position: F,
|
|
326
|
+
...k("thumb", { style: {
|
|
327
|
+
top: r(1),
|
|
328
|
+
background: te
|
|
329
329
|
} })
|
|
330
330
|
})]
|
|
331
331
|
});
|
|
@@ -333,24 +333,24 @@ var _e = {
|
|
|
333
333
|
Q.displayName = "@mantine/core/ColorSlider", Q.classes = _e;
|
|
334
334
|
//#endregion
|
|
335
335
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/AlphaSlider/AlphaSlider.mjs
|
|
336
|
-
var ve = { __staticSelector: "AlphaSlider" }, ye =
|
|
337
|
-
let { value: t, onChange:
|
|
338
|
-
return /* @__PURE__ */
|
|
336
|
+
var ve = { __staticSelector: "AlphaSlider" }, ye = p((e) => {
|
|
337
|
+
let { value: t, onChange: n, onChangeEnd: i, color: a, ...o } = d("AlphaSlider", ve, e);
|
|
338
|
+
return /* @__PURE__ */ N(Q, {
|
|
339
339
|
...o,
|
|
340
340
|
value: t,
|
|
341
|
-
onChange: (e) =>
|
|
342
|
-
onChangeEnd: (e) => i?.(
|
|
341
|
+
onChange: (e) => n?.(K(e, 2)),
|
|
342
|
+
onChangeEnd: (e) => i?.(K(e, 2)),
|
|
343
343
|
maxValue: 1,
|
|
344
344
|
round: !1,
|
|
345
345
|
"data-alpha": !0,
|
|
346
346
|
overlays: [
|
|
347
347
|
{
|
|
348
348
|
backgroundImage: "linear-gradient(45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(-45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--slider-checkers) 75%), linear-gradient(-45deg, var(--mantine-color-body) 75%, var(--slider-checkers) 75%)",
|
|
349
|
-
backgroundSize: `${
|
|
350
|
-
backgroundPosition: `0 0, 0 ${
|
|
349
|
+
backgroundSize: `${r(8)} ${r(8)}`,
|
|
350
|
+
backgroundPosition: `0 0, 0 ${r(4)}, ${r(4)} ${r(-4)}, ${r(-4)} 0`
|
|
351
351
|
},
|
|
352
352
|
{ backgroundImage: `linear-gradient(90deg, transparent, ${a})` },
|
|
353
|
-
{ boxShadow: `rgba(0, 0, 0, .1) 0 0 0 ${
|
|
353
|
+
{ boxShadow: `rgba(0, 0, 0, .1) 0 0 0 ${r(1)} inset, rgb(0, 0, 0, .15) 0 0 ${r(4)} inset` }
|
|
354
354
|
]
|
|
355
355
|
});
|
|
356
356
|
});
|
|
@@ -360,7 +360,7 @@ ye.displayName = "@mantine/core/AlphaSlider", ye.classes = Q.classes;
|
|
|
360
360
|
function be({ h: e, s: t, v: n, a: r }) {
|
|
361
361
|
let i = e / 360 * 6, a = t / 100, o = n / 100, s = Math.floor(i), c = o * (1 - a), l = o * (1 - (i - s) * a), u = o * (1 - (1 - i + s) * a), d = s % 6;
|
|
362
362
|
return {
|
|
363
|
-
r:
|
|
363
|
+
r: K([
|
|
364
364
|
o,
|
|
365
365
|
l,
|
|
366
366
|
c,
|
|
@@ -368,7 +368,7 @@ function be({ h: e, s: t, v: n, a: r }) {
|
|
|
368
368
|
u,
|
|
369
369
|
o
|
|
370
370
|
][d] * 255),
|
|
371
|
-
g:
|
|
371
|
+
g: K([
|
|
372
372
|
u,
|
|
373
373
|
o,
|
|
374
374
|
o,
|
|
@@ -376,7 +376,7 @@ function be({ h: e, s: t, v: n, a: r }) {
|
|
|
376
376
|
c,
|
|
377
377
|
c
|
|
378
378
|
][d] * 255),
|
|
379
|
-
b:
|
|
379
|
+
b: K([
|
|
380
380
|
c,
|
|
381
381
|
c,
|
|
382
382
|
u,
|
|
@@ -384,12 +384,12 @@ function be({ h: e, s: t, v: n, a: r }) {
|
|
|
384
384
|
o,
|
|
385
385
|
l
|
|
386
386
|
][d] * 255),
|
|
387
|
-
a:
|
|
387
|
+
a: K(r, 2)
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
390
|
function xe(e, t) {
|
|
391
391
|
let { r: n, g: r, b: i, a } = be(e);
|
|
392
|
-
return t ? `rgba(${n}, ${r}, ${i}, ${
|
|
392
|
+
return t ? `rgba(${n}, ${r}, ${i}, ${K(a, 2)})` : `rgb(${n}, ${r}, ${i})`;
|
|
393
393
|
}
|
|
394
394
|
function Se({ h: e, s: t, v: n, a: r }, i) {
|
|
395
395
|
let a = (200 - t) * n / 100, o = {
|
|
@@ -397,7 +397,7 @@ function Se({ h: e, s: t, v: n, a: r }, i) {
|
|
|
397
397
|
s: Math.round(a > 0 && a < 200 ? t * n / 100 / (a <= 100 ? a : 200 - a) * 100 : 0),
|
|
398
398
|
l: Math.round(a / 2)
|
|
399
399
|
};
|
|
400
|
-
return i ? `hsla(${o.h}, ${o.s}%, ${o.l}%, ${
|
|
400
|
+
return i ? `hsla(${o.h}, ${o.s}%, ${o.l}%, ${K(r, 2)})` : `hsl(${o.h}, ${o.s}%, ${o.l}%)`;
|
|
401
401
|
}
|
|
402
402
|
function Ce(e) {
|
|
403
403
|
let t = e.toString(16);
|
|
@@ -424,29 +424,29 @@ function $(e, t) {
|
|
|
424
424
|
}
|
|
425
425
|
//#endregion
|
|
426
426
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/HueSlider/HueSlider.mjs
|
|
427
|
-
var De = { __staticSelector: "HueSlider" }, Oe =
|
|
428
|
-
let { value: t, onChange:
|
|
429
|
-
return /* @__PURE__ */
|
|
427
|
+
var De = { __staticSelector: "HueSlider" }, Oe = p((e) => {
|
|
428
|
+
let { value: t, onChange: n, onChangeEnd: i, color: a, ...o } = d("HueSlider", De, e);
|
|
429
|
+
return /* @__PURE__ */ N(Q, {
|
|
430
430
|
...o,
|
|
431
431
|
value: t,
|
|
432
|
-
onChange:
|
|
432
|
+
onChange: n,
|
|
433
433
|
onChangeEnd: i,
|
|
434
434
|
maxValue: 360,
|
|
435
435
|
thumbColor: `hsl(${t}, 100%, 50%)`,
|
|
436
436
|
round: !0,
|
|
437
437
|
"data-hue": !0,
|
|
438
|
-
overlays: [{ backgroundImage: "linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))" }, { boxShadow: `rgba(0, 0, 0, .1) 0 0 0 ${
|
|
438
|
+
overlays: [{ backgroundImage: "linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))" }, { boxShadow: `rgba(0, 0, 0, .1) 0 0 0 ${r(1)} inset, rgb(0, 0, 0, .15) 0 0 ${r(4)} inset` }]
|
|
439
439
|
});
|
|
440
440
|
});
|
|
441
441
|
Oe.displayName = "@mantine/core/HueSlider", Oe.classes = Q.classes;
|
|
442
442
|
//#endregion
|
|
443
443
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/Saturation/Saturation.mjs
|
|
444
444
|
function ke({ className: e, onChange: t, onChangeEnd: n, value: r, saturationLabel: i, focusable: a = !0, size: o, color: s, onScrubStart: c, onScrubEnd: l, ...u }) {
|
|
445
|
-
let { getStyles: d } =
|
|
445
|
+
let { getStyles: d } = D(he), [f, p] = j({
|
|
446
446
|
x: r.s / 100,
|
|
447
447
|
y: 1 - r.v / 100
|
|
448
|
-
}),
|
|
449
|
-
|
|
448
|
+
}), m = A(f), { ref: _ } = g(({ x: e, y: n }) => {
|
|
449
|
+
m.current = {
|
|
450
450
|
x: e,
|
|
451
451
|
y: n
|
|
452
452
|
}, t({
|
|
@@ -455,7 +455,7 @@ function ke({ className: e, onChange: t, onChangeEnd: n, value: r, saturationLab
|
|
|
455
455
|
});
|
|
456
456
|
}, {
|
|
457
457
|
onScrubEnd: () => {
|
|
458
|
-
let { x: e, y: t } =
|
|
458
|
+
let { x: e, y: t } = m.current;
|
|
459
459
|
n({
|
|
460
460
|
s: Math.round(e * 100),
|
|
461
461
|
v: Math.round((1 - t) * 100)
|
|
@@ -463,15 +463,15 @@ function ke({ className: e, onChange: t, onChangeEnd: n, value: r, saturationLab
|
|
|
463
463
|
},
|
|
464
464
|
onScrubStart: c
|
|
465
465
|
});
|
|
466
|
-
|
|
466
|
+
k(() => {
|
|
467
467
|
p({
|
|
468
468
|
x: r.s / 100,
|
|
469
469
|
y: 1 - r.v / 100
|
|
470
470
|
});
|
|
471
471
|
}, [r.s, r.v]);
|
|
472
|
-
let
|
|
472
|
+
let v = (e, r) => {
|
|
473
473
|
e.preventDefault();
|
|
474
|
-
let i =
|
|
474
|
+
let i = ee(r);
|
|
475
475
|
t({
|
|
476
476
|
s: Math.round(i.x * 100),
|
|
477
477
|
v: Math.round((1 - i.y) * 100)
|
|
@@ -479,49 +479,49 @@ function ke({ className: e, onChange: t, onChangeEnd: n, value: r, saturationLab
|
|
|
479
479
|
s: Math.round(i.x * 100),
|
|
480
480
|
v: Math.round((1 - i.y) * 100)
|
|
481
481
|
});
|
|
482
|
-
},
|
|
482
|
+
}, y = (e) => {
|
|
483
483
|
switch (e.key) {
|
|
484
484
|
case "ArrowUp":
|
|
485
|
-
|
|
485
|
+
v(e, {
|
|
486
486
|
y: f.y - .05,
|
|
487
487
|
x: f.x
|
|
488
488
|
});
|
|
489
489
|
break;
|
|
490
490
|
case "ArrowDown":
|
|
491
|
-
|
|
491
|
+
v(e, {
|
|
492
492
|
y: f.y + .05,
|
|
493
493
|
x: f.x
|
|
494
494
|
});
|
|
495
495
|
break;
|
|
496
496
|
case "ArrowRight":
|
|
497
|
-
|
|
497
|
+
v(e, {
|
|
498
498
|
x: f.x + .05,
|
|
499
499
|
y: f.y
|
|
500
500
|
});
|
|
501
501
|
break;
|
|
502
502
|
case "ArrowLeft":
|
|
503
|
-
|
|
503
|
+
v(e, {
|
|
504
504
|
x: f.x - .05,
|
|
505
505
|
y: f.y
|
|
506
506
|
});
|
|
507
507
|
break;
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
|
-
return /* @__PURE__ */
|
|
510
|
+
return /* @__PURE__ */ P(h, {
|
|
511
511
|
...d("saturation"),
|
|
512
|
-
ref:
|
|
512
|
+
ref: _,
|
|
513
513
|
...u,
|
|
514
514
|
role: "slider",
|
|
515
515
|
"aria-label": i,
|
|
516
516
|
"aria-valuenow": f.x,
|
|
517
517
|
"aria-valuetext": $("rgba", r),
|
|
518
518
|
tabIndex: a ? 0 : -1,
|
|
519
|
-
onKeyDown:
|
|
519
|
+
onKeyDown: y,
|
|
520
520
|
children: [
|
|
521
|
-
/* @__PURE__ */
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
/* @__PURE__ */
|
|
521
|
+
/* @__PURE__ */ N("div", { ...d("saturationOverlay", { style: { backgroundColor: `hsl(${r.h}, 100%, 50%)` } }) }),
|
|
522
|
+
/* @__PURE__ */ N("div", { ...d("saturationOverlay", { style: { backgroundImage: "linear-gradient(90deg, #fff, transparent)" } }) }),
|
|
523
|
+
/* @__PURE__ */ N("div", { ...d("saturationOverlay", { style: { backgroundImage: "linear-gradient(0deg, #000, transparent)" } }) }),
|
|
524
|
+
/* @__PURE__ */ N(ge, {
|
|
525
525
|
position: f,
|
|
526
526
|
...d("thumb", { style: { backgroundColor: s } })
|
|
527
527
|
})
|
|
@@ -531,26 +531,26 @@ function ke({ className: e, onChange: t, onChangeEnd: n, value: r, saturationLab
|
|
|
531
531
|
ke.displayName = "@mantine/core/Saturation";
|
|
532
532
|
//#endregion
|
|
533
533
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/Swatches/Swatches.mjs
|
|
534
|
-
function Ae({ className:
|
|
535
|
-
let d =
|
|
534
|
+
function Ae({ className: e, datatype: n, setValue: r, onChangeEnd: i, size: a, focusable: o, data: s, swatchesPerRow: c, value: l, ...u }) {
|
|
535
|
+
let d = D(he), f = s.map((e, n) => /* @__PURE__ */ E(G, {
|
|
536
536
|
...d.getStyles("swatch"),
|
|
537
537
|
unstyled: d.unstyled,
|
|
538
538
|
component: "button",
|
|
539
539
|
type: "button",
|
|
540
|
-
color:
|
|
540
|
+
color: e,
|
|
541
541
|
key: n,
|
|
542
542
|
radius: "sm",
|
|
543
543
|
onClick: () => {
|
|
544
|
-
r(
|
|
544
|
+
r(e), i?.(e);
|
|
545
545
|
},
|
|
546
|
-
"aria-label":
|
|
546
|
+
"aria-label": e,
|
|
547
547
|
tabIndex: o ? 0 : -1,
|
|
548
548
|
"data-swatch": !0
|
|
549
|
-
}, l ===
|
|
549
|
+
}, l === e && /* @__PURE__ */ N(C, {
|
|
550
550
|
size: "35%",
|
|
551
|
-
color: e
|
|
551
|
+
color: t(e) < .5 ? "white" : "black"
|
|
552
552
|
})));
|
|
553
|
-
return /* @__PURE__ */
|
|
553
|
+
return /* @__PURE__ */ N(h, {
|
|
554
554
|
...d.getStyles("swatches"),
|
|
555
555
|
...u,
|
|
556
556
|
children: f
|
|
@@ -565,16 +565,16 @@ var je = {
|
|
|
565
565
|
focusable: !0,
|
|
566
566
|
size: "md",
|
|
567
567
|
__staticSelector: "ColorPicker"
|
|
568
|
-
}, Me =
|
|
569
|
-
"--cp-preview-size":
|
|
570
|
-
"--cp-width":
|
|
568
|
+
}, Me = n((e, { size: t, swatchesPerRow: n }) => ({ wrapper: {
|
|
569
|
+
"--cp-preview-size": i(t, "cp-preview-size"),
|
|
570
|
+
"--cp-width": i(t, "cp-width"),
|
|
571
571
|
"--cp-body-spacing": a(t),
|
|
572
572
|
"--cp-swatch-size": `${100 / n}%`,
|
|
573
|
-
"--cp-thumb-size":
|
|
574
|
-
"--cp-saturation-height":
|
|
575
|
-
} })), Ne =
|
|
576
|
-
let t =
|
|
577
|
-
name:
|
|
573
|
+
"--cp-thumb-size": i(t, "cp-thumb-size"),
|
|
574
|
+
"--cp-saturation-height": i(t, "cp-saturation-height")
|
|
575
|
+
} })), Ne = p((e) => {
|
|
576
|
+
let t = d("ColorPicker", je, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, format: c = "hex", value: u, defaultValue: f, onChange: p, onChangeEnd: m, withPicker: g, size: _, saturationLabel: ee, hueLabel: b, alphaLabel: x, focusable: S, swatches: te, swatchesPerRow: ne, fullWidth: re, onColorSwatchClick: ie, __staticSelector: ae, mod: C, attributes: w, name: T, hiddenInputProps: E, ...D } = t, O = l({
|
|
577
|
+
name: ae,
|
|
578
578
|
props: t,
|
|
579
579
|
classes: _e,
|
|
580
580
|
className: r,
|
|
@@ -582,113 +582,113 @@ var je = {
|
|
|
582
582
|
classNames: n,
|
|
583
583
|
styles: a,
|
|
584
584
|
unstyled: o,
|
|
585
|
-
attributes:
|
|
585
|
+
attributes: w,
|
|
586
586
|
rootSelector: "wrapper",
|
|
587
|
-
vars:
|
|
587
|
+
vars: s,
|
|
588
588
|
varsResolver: Me
|
|
589
|
-
}),
|
|
590
|
-
value:
|
|
589
|
+
}), k = A(c || "hex"), F = A(""), I = A(-1), L = A(!1), R = c === "hexa" || c === "rgba" || c === "hsla", [z, B, V] = v({
|
|
590
|
+
value: u,
|
|
591
591
|
defaultValue: f,
|
|
592
592
|
finalValue: "#FFFFFF",
|
|
593
593
|
onChange: p
|
|
594
|
-
}), [
|
|
595
|
-
window.clearTimeout(
|
|
596
|
-
},
|
|
597
|
-
window.clearTimeout(
|
|
598
|
-
|
|
594
|
+
}), [H, U] = j(Z(z)), W = () => {
|
|
595
|
+
window.clearTimeout(I.current), L.current = !0;
|
|
596
|
+
}, K = () => {
|
|
597
|
+
window.clearTimeout(I.current), I.current = window.setTimeout(() => {
|
|
598
|
+
L.current = !1;
|
|
599
599
|
}, 200);
|
|
600
|
-
},
|
|
601
|
-
|
|
600
|
+
}, q = (e) => {
|
|
601
|
+
U((t) => {
|
|
602
602
|
let n = {
|
|
603
603
|
...t,
|
|
604
604
|
...e
|
|
605
605
|
};
|
|
606
|
-
return
|
|
607
|
-
}),
|
|
606
|
+
return F.current = $(k.current, n), n;
|
|
607
|
+
}), B(F.current);
|
|
608
608
|
};
|
|
609
|
-
return
|
|
610
|
-
typeof
|
|
611
|
-
}, [
|
|
612
|
-
|
|
613
|
-
}, [
|
|
609
|
+
return y(() => {
|
|
610
|
+
typeof u == "string" && X(u) && !L.current && U(Z(u));
|
|
611
|
+
}, [u]), y(() => {
|
|
612
|
+
k.current = c || "hex", B($(k.current, H));
|
|
613
|
+
}, [c]), /* @__PURE__ */ N(he, {
|
|
614
614
|
value: {
|
|
615
|
-
getStyles:
|
|
615
|
+
getStyles: O,
|
|
616
616
|
unstyled: o
|
|
617
617
|
},
|
|
618
|
-
children: /* @__PURE__ */
|
|
619
|
-
...
|
|
618
|
+
children: /* @__PURE__ */ P(h, {
|
|
619
|
+
...O("wrapper"),
|
|
620
620
|
size: _,
|
|
621
|
-
mod: [{ "full-width":
|
|
622
|
-
...
|
|
621
|
+
mod: [{ "full-width": re }, C],
|
|
622
|
+
...D,
|
|
623
623
|
children: [
|
|
624
|
-
|
|
624
|
+
T && /* @__PURE__ */ N("input", {
|
|
625
625
|
type: "hidden",
|
|
626
|
-
name:
|
|
627
|
-
value:
|
|
628
|
-
...
|
|
626
|
+
name: T,
|
|
627
|
+
value: z,
|
|
628
|
+
...E
|
|
629
629
|
}),
|
|
630
|
-
g && /* @__PURE__ */
|
|
631
|
-
value:
|
|
632
|
-
onChange:
|
|
633
|
-
onChangeEnd: ({ s: e, v: t }) =>
|
|
634
|
-
...
|
|
630
|
+
g && /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(ke, {
|
|
631
|
+
value: H,
|
|
632
|
+
onChange: q,
|
|
633
|
+
onChangeEnd: ({ s: e, v: t }) => m?.($(k.current, {
|
|
634
|
+
...H,
|
|
635
635
|
s: e,
|
|
636
636
|
v: t
|
|
637
637
|
})),
|
|
638
|
-
color:
|
|
638
|
+
color: z,
|
|
639
639
|
size: _,
|
|
640
|
-
focusable:
|
|
641
|
-
saturationLabel:
|
|
642
|
-
onScrubStart:
|
|
643
|
-
onScrubEnd:
|
|
644
|
-
}), /* @__PURE__ */
|
|
645
|
-
...
|
|
646
|
-
children: [/* @__PURE__ */
|
|
647
|
-
...
|
|
648
|
-
children: [/* @__PURE__ */
|
|
649
|
-
value:
|
|
650
|
-
onChange: (e) =>
|
|
651
|
-
onChangeEnd: (e) =>
|
|
652
|
-
...
|
|
640
|
+
focusable: S,
|
|
641
|
+
saturationLabel: ee,
|
|
642
|
+
onScrubStart: W,
|
|
643
|
+
onScrubEnd: K
|
|
644
|
+
}), /* @__PURE__ */ P("div", {
|
|
645
|
+
...O("body"),
|
|
646
|
+
children: [/* @__PURE__ */ P("div", {
|
|
647
|
+
...O("sliders"),
|
|
648
|
+
children: [/* @__PURE__ */ N(Oe, {
|
|
649
|
+
value: H.h,
|
|
650
|
+
onChange: (e) => q({ h: e }),
|
|
651
|
+
onChangeEnd: (e) => m?.($(k.current, {
|
|
652
|
+
...H,
|
|
653
653
|
h: e
|
|
654
654
|
})),
|
|
655
655
|
size: _,
|
|
656
|
-
focusable:
|
|
657
|
-
"aria-label":
|
|
658
|
-
onScrubStart:
|
|
659
|
-
onScrubEnd:
|
|
660
|
-
}),
|
|
661
|
-
value:
|
|
662
|
-
onChange: (e) =>
|
|
656
|
+
focusable: S,
|
|
657
|
+
"aria-label": b,
|
|
658
|
+
onScrubStart: W,
|
|
659
|
+
onScrubEnd: K
|
|
660
|
+
}), R && /* @__PURE__ */ N(ye, {
|
|
661
|
+
value: H.a,
|
|
662
|
+
onChange: (e) => q({ a: e }),
|
|
663
663
|
onChangeEnd: (e) => {
|
|
664
|
-
|
|
665
|
-
...
|
|
664
|
+
m?.($(k.current, {
|
|
665
|
+
...H,
|
|
666
666
|
a: e
|
|
667
667
|
}));
|
|
668
668
|
},
|
|
669
669
|
size: _,
|
|
670
|
-
color: $("hex",
|
|
671
|
-
focusable:
|
|
672
|
-
"aria-label":
|
|
673
|
-
onScrubStart:
|
|
674
|
-
onScrubEnd:
|
|
670
|
+
color: $("hex", H),
|
|
671
|
+
focusable: S,
|
|
672
|
+
"aria-label": x,
|
|
673
|
+
onScrubStart: W,
|
|
674
|
+
onScrubEnd: K
|
|
675
675
|
})]
|
|
676
|
-
}),
|
|
677
|
-
color:
|
|
676
|
+
}), R && /* @__PURE__ */ N(G, {
|
|
677
|
+
color: z,
|
|
678
678
|
radius: "sm",
|
|
679
679
|
size: "var(--cp-preview-size)",
|
|
680
|
-
...
|
|
680
|
+
...O("preview")
|
|
681
681
|
})]
|
|
682
682
|
})] }),
|
|
683
|
-
Array.isArray(
|
|
684
|
-
data:
|
|
685
|
-
swatchesPerRow:
|
|
686
|
-
focusable:
|
|
687
|
-
setValue:
|
|
688
|
-
value:
|
|
683
|
+
Array.isArray(te) && /* @__PURE__ */ N(Ae, {
|
|
684
|
+
data: te,
|
|
685
|
+
swatchesPerRow: ne,
|
|
686
|
+
focusable: S,
|
|
687
|
+
setValue: B,
|
|
688
|
+
value: z,
|
|
689
689
|
onChangeEnd: (e) => {
|
|
690
|
-
let t = $(
|
|
691
|
-
|
|
690
|
+
let t = $(c, Z(e));
|
|
691
|
+
ie?.(t), m?.(t), V || U(Z(e));
|
|
692
692
|
}
|
|
693
693
|
})
|
|
694
694
|
]
|
|
@@ -699,7 +699,7 @@ Ne.classes = _e, Ne.varsResolver = Me, Ne.displayName = "@mantine/core/ColorPick
|
|
|
699
699
|
//#endregion
|
|
700
700
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorInput/EyeDropperIcon.mjs
|
|
701
701
|
function Pe({ style: e, ...t }) {
|
|
702
|
-
return /* @__PURE__ */
|
|
702
|
+
return /* @__PURE__ */ P("svg", {
|
|
703
703
|
xmlns: "http://www.w3.org/2000/svg",
|
|
704
704
|
style: {
|
|
705
705
|
width: "var(--ci-eye-dropper-icon-size)",
|
|
@@ -714,17 +714,17 @@ function Pe({ style: e, ...t }) {
|
|
|
714
714
|
strokeLinejoin: "round",
|
|
715
715
|
...t,
|
|
716
716
|
children: [
|
|
717
|
-
/* @__PURE__ */
|
|
717
|
+
/* @__PURE__ */ N("path", {
|
|
718
718
|
stroke: "none",
|
|
719
719
|
d: "M0 0h24v24H0z",
|
|
720
720
|
fill: "none"
|
|
721
721
|
}),
|
|
722
|
-
/* @__PURE__ */
|
|
723
|
-
/* @__PURE__ */
|
|
724
|
-
/* @__PURE__ */
|
|
725
|
-
/* @__PURE__ */
|
|
726
|
-
/* @__PURE__ */
|
|
727
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ N("path", { d: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" }),
|
|
723
|
+
/* @__PURE__ */ N("path", { d: "M12 3l0 4" }),
|
|
724
|
+
/* @__PURE__ */ N("path", { d: "M12 21l0 -3" }),
|
|
725
|
+
/* @__PURE__ */ N("path", { d: "M3 12l4 0" }),
|
|
726
|
+
/* @__PURE__ */ N("path", { d: "M21 12l-3 0" }),
|
|
727
|
+
/* @__PURE__ */ N("path", { d: "M12 12l0 .01" })
|
|
728
728
|
]
|
|
729
729
|
});
|
|
730
730
|
}
|
|
@@ -748,12 +748,12 @@ var Fe = {
|
|
|
748
748
|
withEyeDropper: !0,
|
|
749
749
|
size: "sm",
|
|
750
750
|
leftSectionPointerEvents: "none"
|
|
751
|
-
}, Le =
|
|
752
|
-
eyeDropperIcon: { "--ci-eye-dropper-icon-size":
|
|
753
|
-
eyeDropperButton: { "--ci-button-size":
|
|
754
|
-
colorPreview: { "--ci-preview-size":
|
|
755
|
-
})), Re =
|
|
756
|
-
let t =
|
|
751
|
+
}, Le = n((e, { size: t }) => ({
|
|
752
|
+
eyeDropperIcon: { "--ci-eye-dropper-icon-size": i(t, "ci-eye-dropper-icon-size") },
|
|
753
|
+
eyeDropperButton: { "--ci-button-size": i(t, "ci-button-size") },
|
|
754
|
+
colorPreview: { "--ci-preview-size": i(t, "ci-preview-size") }
|
|
755
|
+
})), Re = p((e) => {
|
|
756
|
+
let t = d("ColorInput", Ie, e), { classNames: n, styles: r, unstyled: i, disallowInput: a, fixOnBlur: o, popoverProps: s, withPreview: c, withEyeDropper: u, eyeDropperIcon: f, closeOnColorSwatchClick: p, eyeDropperButtonProps: m, value: h, defaultValue: g, onChange: ee, onChangeEnd: b, onClick: S, onFocus: ne, onBlur: ie, inputProps: C, format: w = "hex", wrapperProps: T, readOnly: E, withPicker: D, swatches: O, disabled: A, leftSection: M, rightSection: F, swatchesPerRow: I, ...L } = te("ColorInput", Ie, e), R = l({
|
|
757
757
|
name: "ColorInput",
|
|
758
758
|
props: t,
|
|
759
759
|
classes: Fe,
|
|
@@ -763,135 +763,135 @@ var Fe = {
|
|
|
763
763
|
rootSelector: "wrapper",
|
|
764
764
|
vars: t.vars,
|
|
765
765
|
varsResolver: Le
|
|
766
|
-
}), { resolvedClassNames:
|
|
766
|
+
}), { resolvedClassNames: z, resolvedStyles: V } = re({
|
|
767
767
|
classNames: n,
|
|
768
768
|
styles: r,
|
|
769
769
|
props: t
|
|
770
|
-
}), [
|
|
770
|
+
}), [H, U] = j(!1), [W, K] = j(""), [q, J] = v({
|
|
771
771
|
value: h,
|
|
772
772
|
defaultValue: g,
|
|
773
773
|
finalValue: "",
|
|
774
|
-
onChange:
|
|
775
|
-
}), { supported:
|
|
774
|
+
onChange: ee
|
|
775
|
+
}), { supported: oe, open: se } = B(), ce = /* @__PURE__ */ N(ae, {
|
|
776
776
|
...m,
|
|
777
|
-
...
|
|
777
|
+
...R("eyeDropperButton", {
|
|
778
778
|
className: m?.className,
|
|
779
779
|
style: m?.style
|
|
780
780
|
}),
|
|
781
781
|
variant: "subtle",
|
|
782
782
|
color: "gray",
|
|
783
783
|
unstyled: i,
|
|
784
|
-
onClick: () =>
|
|
784
|
+
onClick: () => se().then((e) => {
|
|
785
785
|
if (e?.sRGBHex) {
|
|
786
|
-
let t = $(
|
|
787
|
-
|
|
786
|
+
let t = $(w, Z(e.sRGBHex));
|
|
787
|
+
J(t), b?.(t);
|
|
788
788
|
}
|
|
789
789
|
}).catch(() => {}),
|
|
790
|
-
children: f || /* @__PURE__ */
|
|
791
|
-
}),
|
|
792
|
-
|
|
793
|
-
},
|
|
794
|
-
o &&
|
|
790
|
+
children: f || /* @__PURE__ */ N(Pe, { ...R("eyeDropperIcon") })
|
|
791
|
+
}), le = (e) => {
|
|
792
|
+
ne?.(e), U(!0);
|
|
793
|
+
}, Y = (e) => {
|
|
794
|
+
o && J(W), ie?.(e), U(!1);
|
|
795
795
|
}, ue = (e) => {
|
|
796
|
-
|
|
796
|
+
S?.(e), U(!0);
|
|
797
797
|
};
|
|
798
|
-
return
|
|
799
|
-
(X(
|
|
800
|
-
}, [
|
|
801
|
-
X(
|
|
802
|
-
}, [
|
|
803
|
-
...
|
|
804
|
-
classNames:
|
|
805
|
-
styles:
|
|
798
|
+
return k(() => {
|
|
799
|
+
(X(q) || q.trim() === "") && K(q);
|
|
800
|
+
}, [q]), y(() => {
|
|
801
|
+
X(q) && J($(w, Z(q)));
|
|
802
|
+
}, [w]), /* @__PURE__ */ N(x.Wrapper, {
|
|
803
|
+
...T,
|
|
804
|
+
classNames: z,
|
|
805
|
+
styles: V,
|
|
806
806
|
__staticSelector: "ColorInput",
|
|
807
|
-
children: /* @__PURE__ */
|
|
807
|
+
children: /* @__PURE__ */ P(_, {
|
|
808
808
|
__staticSelector: "ColorInput",
|
|
809
809
|
position: "bottom-start",
|
|
810
810
|
offset: 5,
|
|
811
|
-
opened:
|
|
812
|
-
...
|
|
813
|
-
classNames:
|
|
814
|
-
styles:
|
|
811
|
+
opened: H,
|
|
812
|
+
...s,
|
|
813
|
+
classNames: z,
|
|
814
|
+
styles: V,
|
|
815
815
|
unstyled: i,
|
|
816
816
|
withRoles: !1,
|
|
817
|
-
disabled:
|
|
818
|
-
children: [/* @__PURE__ */
|
|
817
|
+
disabled: E || D === !1 && (!Array.isArray(O) || O.length === 0),
|
|
818
|
+
children: [/* @__PURE__ */ N(_.Target, { children: /* @__PURE__ */ N(x, {
|
|
819
819
|
autoComplete: "off",
|
|
820
|
-
...
|
|
821
|
-
...
|
|
822
|
-
classNames:
|
|
823
|
-
styles:
|
|
824
|
-
disabled:
|
|
820
|
+
...L,
|
|
821
|
+
...C,
|
|
822
|
+
classNames: z,
|
|
823
|
+
styles: V,
|
|
824
|
+
disabled: A,
|
|
825
825
|
__staticSelector: "ColorInput",
|
|
826
|
-
onFocus:
|
|
827
|
-
onBlur:
|
|
826
|
+
onFocus: le,
|
|
827
|
+
onBlur: Y,
|
|
828
828
|
onClick: ue,
|
|
829
829
|
spellCheck: !1,
|
|
830
|
-
value:
|
|
830
|
+
value: q,
|
|
831
831
|
onChange: (e) => {
|
|
832
832
|
let t = e.currentTarget.value;
|
|
833
|
-
|
|
833
|
+
J(t), X(t) && b?.($(w, Z(t)));
|
|
834
834
|
},
|
|
835
|
-
leftSection:
|
|
836
|
-
color: X(
|
|
835
|
+
leftSection: M || (c ? /* @__PURE__ */ N(G, {
|
|
836
|
+
color: X(q) ? q : "#fff",
|
|
837
837
|
size: "var(--ci-preview-size)",
|
|
838
|
-
...
|
|
838
|
+
...R("colorPreview")
|
|
839
839
|
}) : null),
|
|
840
|
-
readOnly: a ||
|
|
840
|
+
readOnly: a || E,
|
|
841
841
|
pointer: a,
|
|
842
842
|
unstyled: i,
|
|
843
|
-
rightSection:
|
|
844
|
-
}) }), /* @__PURE__ */
|
|
843
|
+
rightSection: F || (u && !A && !E && oe ? ce : null)
|
|
844
|
+
}) }), /* @__PURE__ */ N(_.Dropdown, {
|
|
845
845
|
onMouseDown: (e) => e.preventDefault(),
|
|
846
846
|
className: Fe.dropdown,
|
|
847
|
-
children: /* @__PURE__ */
|
|
847
|
+
children: /* @__PURE__ */ N(Ne, {
|
|
848
848
|
__staticSelector: "ColorInput",
|
|
849
|
-
value:
|
|
850
|
-
onChange:
|
|
851
|
-
onChangeEnd:
|
|
852
|
-
format:
|
|
853
|
-
swatches:
|
|
854
|
-
swatchesPerRow:
|
|
855
|
-
withPicker:
|
|
856
|
-
size:
|
|
849
|
+
value: q,
|
|
850
|
+
onChange: J,
|
|
851
|
+
onChangeEnd: b,
|
|
852
|
+
format: w,
|
|
853
|
+
swatches: O,
|
|
854
|
+
swatchesPerRow: I,
|
|
855
|
+
withPicker: D,
|
|
856
|
+
size: C.size,
|
|
857
857
|
focusable: !1,
|
|
858
858
|
unstyled: i,
|
|
859
|
-
styles:
|
|
860
|
-
classNames:
|
|
861
|
-
onColorSwatchClick: () => p &&
|
|
862
|
-
attributes:
|
|
859
|
+
styles: V,
|
|
860
|
+
classNames: z,
|
|
861
|
+
onColorSwatchClick: () => p && U(!1),
|
|
862
|
+
attributes: T.attributes
|
|
863
863
|
})
|
|
864
864
|
})]
|
|
865
865
|
})
|
|
866
866
|
});
|
|
867
867
|
});
|
|
868
|
-
Re.classes =
|
|
868
|
+
Re.classes = S.classes, Re.varsResolver = Le, Re.displayName = "@mantine/core/ColorInput";
|
|
869
869
|
//#endregion
|
|
870
870
|
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/SimpleGrid/SimpleGridVariables.mjs
|
|
871
871
|
function ze(e) {
|
|
872
|
-
if (e !== void 0) return typeof e == "number" ?
|
|
873
|
-
}
|
|
874
|
-
function Be({ spacing: e, verticalSpacing:
|
|
875
|
-
let l =
|
|
876
|
-
"--sg-spacing-x": a(
|
|
877
|
-
"--sg-spacing-y": a(
|
|
878
|
-
"--sg-auto-rows":
|
|
879
|
-
...
|
|
880
|
-
}),
|
|
881
|
-
return /* @__PURE__ */
|
|
882
|
-
styles:
|
|
883
|
-
media:
|
|
872
|
+
if (e !== void 0) return typeof e == "number" ? r(e) : e;
|
|
873
|
+
}
|
|
874
|
+
function Be({ spacing: e, verticalSpacing: t, cols: n, minColWidth: r, autoRows: i, selector: c }) {
|
|
875
|
+
let l = u(), d = t === void 0 ? e : t, f = r !== void 0, p = o({
|
|
876
|
+
"--sg-spacing-x": a(z(e)),
|
|
877
|
+
"--sg-spacing-y": a(z(d)),
|
|
878
|
+
"--sg-auto-rows": i,
|
|
879
|
+
...f ? { "--sg-min-col-width": ze(r) } : { "--sg-cols": z(n)?.toString() }
|
|
880
|
+
}), h = s(l.breakpoints).reduce((t, r) => (t[r] || (t[r] = {}), typeof e == "object" && e[r] !== void 0 && (t[r]["--sg-spacing-x"] = a(e[r])), typeof d == "object" && d[r] !== void 0 && (t[r]["--sg-spacing-y"] = a(d[r])), !f && typeof n == "object" && n[r] !== void 0 && (t[r]["--sg-cols"] = n[r]), t), {});
|
|
881
|
+
return /* @__PURE__ */ N(m, {
|
|
882
|
+
styles: p,
|
|
883
|
+
media: R(s(h), l.breakpoints).filter((e) => s(h[e.value]).length > 0).map((e) => ({
|
|
884
884
|
query: `(min-width: ${l.breakpoints[e.value]})`,
|
|
885
|
-
styles:
|
|
885
|
+
styles: h[e.value]
|
|
886
886
|
})),
|
|
887
|
-
selector:
|
|
887
|
+
selector: c
|
|
888
888
|
});
|
|
889
889
|
}
|
|
890
890
|
function Ve(e) {
|
|
891
|
-
return typeof e == "object" && e ?
|
|
891
|
+
return typeof e == "object" && e ? s(e) : [];
|
|
892
892
|
}
|
|
893
893
|
function He(e) {
|
|
894
|
-
return e.sort((e, t) =>
|
|
894
|
+
return e.sort((e, t) => I(e) - I(t));
|
|
895
895
|
}
|
|
896
896
|
function Ue({ spacing: e, verticalSpacing: t, cols: n, minColWidth: r }) {
|
|
897
897
|
return He(Array.from(new Set([
|
|
@@ -900,19 +900,19 @@ function Ue({ spacing: e, verticalSpacing: t, cols: n, minColWidth: r }) {
|
|
|
900
900
|
...r === void 0 ? Ve(n) : []
|
|
901
901
|
])));
|
|
902
902
|
}
|
|
903
|
-
function We({ spacing: e, verticalSpacing:
|
|
904
|
-
let c =
|
|
905
|
-
"--sg-spacing-x": a(
|
|
906
|
-
"--sg-spacing-y": a(
|
|
907
|
-
"--sg-auto-rows":
|
|
908
|
-
...l ? { "--sg-min-col-width": ze(
|
|
903
|
+
function We({ spacing: e, verticalSpacing: t, cols: n, minColWidth: r, autoRows: i, selector: s }) {
|
|
904
|
+
let c = t === void 0 ? e : t, l = r !== void 0, u = o({
|
|
905
|
+
"--sg-spacing-x": a(z(e)),
|
|
906
|
+
"--sg-spacing-y": a(z(c)),
|
|
907
|
+
"--sg-auto-rows": i,
|
|
908
|
+
...l ? { "--sg-min-col-width": ze(r) } : { "--sg-cols": z(n)?.toString() }
|
|
909
909
|
}), d = Ue({
|
|
910
910
|
spacing: e,
|
|
911
|
-
verticalSpacing:
|
|
912
|
-
cols:
|
|
913
|
-
minColWidth:
|
|
914
|
-
}), f = d.reduce((t,
|
|
915
|
-
return /* @__PURE__ */
|
|
911
|
+
verticalSpacing: t,
|
|
912
|
+
cols: n,
|
|
913
|
+
minColWidth: r
|
|
914
|
+
}), f = d.reduce((t, r) => (t[r] || (t[r] = {}), typeof e == "object" && e[r] !== void 0 && (t[r]["--sg-spacing-x"] = a(e[r])), typeof c == "object" && c[r] !== void 0 && (t[r]["--sg-spacing-y"] = a(c[r])), !l && typeof n == "object" && n[r] !== void 0 && (t[r]["--sg-cols"] = n[r]), t), {});
|
|
915
|
+
return /* @__PURE__ */ N(m, {
|
|
916
916
|
styles: u,
|
|
917
917
|
container: d.map((e) => ({
|
|
918
918
|
query: `simple-grid (min-width: ${e})`,
|
|
@@ -930,8 +930,8 @@ var Ge = {
|
|
|
930
930
|
cols: 1,
|
|
931
931
|
spacing: "md",
|
|
932
932
|
type: "media"
|
|
933
|
-
}, qe =
|
|
934
|
-
let t =
|
|
933
|
+
}, qe = p((e) => {
|
|
934
|
+
let t = d("SimpleGrid", Ke, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, cols: u, verticalSpacing: f, spacing: p, type: m, minColWidth: g, autoFlow: _, autoRows: ee, attributes: v, ...y } = t, b = l({
|
|
935
935
|
name: "SimpleGrid",
|
|
936
936
|
classes: Ge,
|
|
937
937
|
props: t,
|
|
@@ -939,27 +939,27 @@ var Ge = {
|
|
|
939
939
|
style: i,
|
|
940
940
|
classNames: n,
|
|
941
941
|
styles: a,
|
|
942
|
-
unstyled:
|
|
943
|
-
attributes:
|
|
944
|
-
vars:
|
|
945
|
-
}),
|
|
946
|
-
return
|
|
942
|
+
unstyled: o,
|
|
943
|
+
attributes: v,
|
|
944
|
+
vars: s
|
|
945
|
+
}), x = c(), S = g === void 0 ? void 0 : _ || "auto-fill";
|
|
946
|
+
return m === "container" ? /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(We, {
|
|
947
947
|
...t,
|
|
948
|
-
selector: `.${
|
|
949
|
-
}), /* @__PURE__ */
|
|
950
|
-
...
|
|
951
|
-
children: /* @__PURE__ */
|
|
952
|
-
...
|
|
953
|
-
...
|
|
954
|
-
"data-auto-cols":
|
|
948
|
+
selector: `.${x}`
|
|
949
|
+
}), /* @__PURE__ */ N("div", {
|
|
950
|
+
...b("container"),
|
|
951
|
+
children: /* @__PURE__ */ N(h, {
|
|
952
|
+
...b("root", { className: x }),
|
|
953
|
+
...y,
|
|
954
|
+
"data-auto-cols": S
|
|
955
955
|
})
|
|
956
|
-
})] }) : /* @__PURE__ */
|
|
956
|
+
})] }) : /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(Be, {
|
|
957
957
|
...t,
|
|
958
|
-
selector: `.${
|
|
959
|
-
}), /* @__PURE__ */
|
|
960
|
-
...
|
|
961
|
-
...
|
|
962
|
-
"data-auto-cols":
|
|
958
|
+
selector: `.${x}`
|
|
959
|
+
}), /* @__PURE__ */ N(h, {
|
|
960
|
+
...b("root", { className: x }),
|
|
961
|
+
...y,
|
|
962
|
+
"data-auto-cols": S
|
|
963
963
|
})] });
|
|
964
964
|
});
|
|
965
965
|
qe.classes = Ge, qe.displayName = "@mantine/core/SimpleGrid";
|
|
@@ -968,11 +968,11 @@ var Je = {
|
|
|
968
968
|
colorRow: "_colorRow_18r9b_7",
|
|
969
969
|
colorSwatch: "_colorSwatch_18r9b_13",
|
|
970
970
|
colorInput: "_colorInput_18r9b_38"
|
|
971
|
-
}, Ye = ({ value: e, onChange: t, error: n, disabled: r = !1 }) => /* @__PURE__ */
|
|
971
|
+
}, Ye = ({ value: e, onChange: t, error: n, disabled: r = !1 }) => /* @__PURE__ */ P("div", {
|
|
972
972
|
className: Je.root,
|
|
973
|
-
children: [/* @__PURE__ */
|
|
973
|
+
children: [/* @__PURE__ */ N("div", {
|
|
974
974
|
className: Je.colorRow,
|
|
975
|
-
children:
|
|
975
|
+
children: w.map((n) => /* @__PURE__ */ N(ie, {
|
|
976
976
|
className: Je.colorSwatch,
|
|
977
977
|
"data-selected": e === n || void 0,
|
|
978
978
|
"data-disabled": r || void 0,
|
|
@@ -982,7 +982,7 @@ var Je = {
|
|
|
982
982
|
"aria-pressed": e === n,
|
|
983
983
|
disabled: r
|
|
984
984
|
}, n))
|
|
985
|
-
}), /* @__PURE__ */
|
|
985
|
+
}), /* @__PURE__ */ N(Re, {
|
|
986
986
|
value: e,
|
|
987
987
|
onChange: t,
|
|
988
988
|
placeholder: "Custom color",
|
|
@@ -994,4 +994,4 @@ var Je = {
|
|
|
994
994
|
})]
|
|
995
995
|
});
|
|
996
996
|
//#endregion
|
|
997
|
-
export { qe as n,
|
|
997
|
+
export { qe as n, I as r, Ye as t };
|