@fde-desktop/fde-core 0.4.7 → 0.4.8
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 +26 -0
- package/dist/AccordionChevron-DBXp38Lm.cjs +1 -0
- package/dist/ActionIcon-C_SfdBfx.cjs +1 -0
- package/dist/ActionIcon-CtVbYlGY.js +145 -0
- package/dist/AppEmptyState-BTujnL_b.js +4962 -0
- package/dist/AppEmptyState-Dc4GaDfu.cjs +1 -0
- package/dist/AppIcon--qzR4sgf.cjs +1 -0
- package/dist/AppIcon-DCDuaU-t.js +80 -0
- package/dist/AppMenuBar-BiHbNg9V.cjs +9 -0
- package/dist/AppMenuBar-CHJy8OF0.js +2639 -0
- package/dist/Box-DRm8EabO.js +1593 -0
- package/dist/Box-D_64wv6n.cjs +1 -0
- package/dist/Button-D0FXpkur.cjs +1 -0
- package/dist/Button-k7SxX1Xl.js +178 -0
- package/dist/CalendarApp-C1HvuJoa.cjs +1 -0
- package/dist/CalendarApp-DBEQqsS_.js +1721 -0
- package/dist/Center-CyryG5zn.js +25 -0
- package/dist/Center-T4No_FAa.cjs +1 -0
- package/dist/CheckIcon-C3WjIR2i.js +25 -0
- package/dist/CheckIcon-CBMLR6Gc.cjs +1 -0
- package/dist/CodeServerApp-B3l5QPuG.cjs +1 -0
- package/dist/CodeServerApp-BpeALSaX.js +2 -0
- package/dist/CodeServerApp-CRjCngFv.cjs +1 -0
- package/dist/CodeServerApp-DY94cy1a.js +149 -0
- package/dist/ColorPicker-BL4UbKCV.cjs +1 -0
- package/dist/ColorPicker-DvRR-wlQ.js +997 -0
- package/dist/Colors-BxX4G8kX.cjs +1 -0
- package/dist/Colors-hca6raEG.js +15 -0
- package/dist/CreateItemApp-BU9wmjKM.cjs +1 -0
- package/dist/CreateItemApp-CtdH1K1g.js +400 -0
- package/dist/CreateItemApp-t9F-a6wD.cjs +1 -0
- package/dist/DeviceInfoApp-C306YvtZ.js +223 -0
- package/dist/DeviceInfoApp-Cdju_LIB.cjs +1 -0
- package/dist/DeviceInfoApp-CyB01v4D.cjs +1 -0
- package/dist/DownloadProgress-IRw1dzLX.cjs +1 -0
- package/dist/DownloadProgress-hdupSUBT.js +174 -0
- package/dist/FileIcon-BCpGMI5U.js +88 -0
- package/dist/FileIcon-BCrsxmtt.cjs +1 -0
- package/dist/FilePickerApp-DMGuvahM.js +409 -0
- package/dist/FilePickerApp-Eu0cr2Cm.cjs +1 -0
- package/dist/FilesApp-30OjnOuP.cjs +1 -0
- package/dist/FilesApp-BvlzPNuO.cjs +1 -0
- package/dist/FilesApp-VXrmtt63.js +225 -0
- package/dist/Group-BzwlMeob.js +48 -0
- package/dist/Group-DhwePB84.cjs +1 -0
- package/dist/ImageViewerApp-BOz59TGc.cjs +1 -0
- package/dist/ImageViewerApp-BeqY6voE.cjs +1 -0
- package/dist/ImageViewerApp-CWiP6zx-.js +68 -0
- package/dist/ImageViewerApp-DBAfJPSo.js +2 -0
- package/dist/ImageViewerMenuBar-BULkh_Ku.js +86 -0
- package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +2 -0
- package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +1 -0
- package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +1 -0
- package/dist/MenuEditApp-BoKtj2GH.js +2 -0
- package/dist/MenuEditApp-D21sEp86.js +2615 -0
- package/dist/MenuEditApp-k3cPfTG9.cjs +1 -0
- package/dist/MenuEditApp-sz9GlLVH.cjs +5 -0
- package/dist/MenuEditMenuBar-6QxlIDpl.cjs +1 -0
- package/dist/MenuEditMenuBar-B94z4Umw.js +59 -0
- package/dist/MenuEditMenuBar-Bv6R42lf.js +2 -0
- package/dist/MenuEditMenuBar-CBsmH_-T.cjs +1 -0
- package/dist/NotesApp-BtR55Hva.cjs +207 -0
- package/dist/NotesApp-C59exz_9.js +16154 -0
- package/dist/NotesApp-D47I5LS_.js +2 -0
- package/dist/NotesApp-lOwsi2sg.cjs +1 -0
- package/dist/NotesMenuBar-BB4NkKGf.js +61 -0
- package/dist/NotesMenuBar-BZITC74y.cjs +1 -0
- package/dist/NotesMenuBar-Bp0sPqyR.cjs +1 -0
- package/dist/NotesMenuBar-xlfODmMA.js +2 -0
- package/dist/Paper-DtUYKmYn.js +30 -0
- package/dist/Paper-DwCpwWwH.cjs +1 -0
- package/dist/PdfApp-1XbFGfoY.cjs +1 -0
- package/dist/PdfApp-BhIoJWeK.cjs +1 -0
- package/dist/PdfApp-C5Rt1Zaw.js +2 -0
- package/dist/PdfApp-C8Hwxxqh.js +38 -0
- package/dist/PdfMenuBar-BA9rKuMP.cjs +1 -0
- package/dist/PdfMenuBar-JXHqwxhZ.cjs +1 -0
- package/dist/PdfMenuBar-R0fu7oYF.js +2 -0
- package/dist/PdfMenuBar-sd-9Vk3h.js +38 -0
- package/dist/SettingsApp-BA-5B4RA.cjs +1 -0
- package/dist/SettingsApp-B_rev1xh.cjs +1 -0
- package/dist/SettingsApp-Ck4aUXs5.js +2 -0
- package/dist/SettingsApp-DUMKSA3K.js +2425 -0
- package/dist/SettingsMenuBar-BPwv8JQK.js +41 -0
- package/dist/SettingsMenuBar-D8R7hOik.js +2 -0
- package/dist/SettingsMenuBar-DDrjZLmg.cjs +1 -0
- package/dist/SettingsMenuBar-DQjUa8g1.cjs +1 -0
- package/dist/Slider-BNO-vDFn.js +1175 -0
- package/dist/Slider-Bg_EIBg6.cjs +1 -0
- package/dist/Stack-BOaJgV3N.cjs +1 -0
- package/dist/Stack-CuDEaP7e.js +34 -0
- package/dist/StorybookApp-Bkr-7mXp.cjs +1 -0
- package/dist/StorybookApp-WYninkJo.js +10 -0
- package/dist/TerminalApp-8XbsKAWa.js +10041 -0
- package/dist/TerminalApp-Bq2e7QQu.cjs +1 -0
- package/dist/TerminalApp-CVu3Axc9.js +2 -0
- package/dist/TerminalApp-b7_d0jRO.cjs +36 -0
- package/dist/TerminalMenuBar-Cb8x9laS.js +2 -0
- package/dist/TerminalMenuBar-De-FH5AE.cjs +1 -0
- package/dist/TerminalMenuBar-iKLydNda.js +112 -0
- package/dist/TerminalMenuBar-yOaWd-hn.cjs +1 -0
- package/dist/TextInput-C3qfxxWI.js +980 -0
- package/dist/TextInput-DcYns3hz.cjs +1 -0
- package/dist/Tooltip-CAOO-qdx.js +3185 -0
- package/dist/Tooltip-DDh_x-CB.cjs +1 -0
- package/dist/UnstyledButton-CI3kyRck.js +25 -0
- package/dist/UnstyledButton-Cl5RuIid.cjs +1 -0
- package/dist/UploaderApp-BZXW75A0.cjs +1 -0
- package/dist/UploaderApp-C9W_yCT-.js +487 -0
- package/dist/UploaderApp-CPpStgP5.cjs +1 -0
- package/dist/UploaderApp-DHsMQN-f.js +2 -0
- package/dist/VscIcon-CxEmqD80.cjs +1 -0
- package/dist/VscIcon-DueRJVTe.js +8 -0
- package/dist/chunk-BQCxAhux.js +23 -0
- package/dist/chunk-CiTBaPhY.cjs +1 -0
- package/dist/create-safe-context-95P-Bfg3.cjs +1 -0
- package/dist/create-safe-context-XT2cxc14.js +12 -0
- package/dist/desktopStore-B0R1-BeA.js +1905 -0
- package/dist/desktopStore-Cox-Og1z.cjs +1 -0
- package/dist/fc-DejOsQyD.cjs +1 -0
- package/dist/fc-kd8WzIER.js +20536 -0
- package/dist/fc-xJ_v2ayq.cjs +184 -0
- package/dist/fi-BahYsbim.js +9993 -0
- package/dist/fi-BkhyTcZo.cjs +1 -0
- package/dist/getRuntime-BLXyQZBB.cjs +1 -0
- package/dist/getRuntime-CCRXVzJH.js +63 -0
- package/dist/iconBase-B4UCuSvv.cjs +1 -0
- package/dist/iconBase-D7iPes7B.js +108 -0
- package/dist/imageViewerStore-CH1qW6md.cjs +1 -0
- package/dist/imageViewerStore-CJMRXaQh.js +50 -0
- package/dist/index.cjs +53 -5642
- package/dist/index.css +2 -9192
- package/dist/index.d.ts +2258 -2019
- package/dist/index.js +8983 -4780
- package/dist/is-element-BocgicRg.cjs +1 -0
- package/dist/is-element-Bu_JY8Qy.js +7 -0
- package/dist/menuEditStore-C8S_EedM.js +38 -0
- package/dist/menuEditStore-CU7IAg3L.cjs +1 -0
- package/dist/notesStore-DKRgTTFn.js +36 -0
- package/dist/notesStore-zKmChTfF.cjs +1 -0
- package/dist/react-DYmzHD0X.js +27 -0
- package/dist/react-Dldg32sN.cjs +1 -0
- package/dist/settingsAppStore-BrlImdAH.cjs +1 -0
- package/dist/settingsAppStore-KOeWRO6h.js +29 -0
- package/dist/terminalStore-LWWjCvCe.js +30 -0
- package/dist/terminalStore-fZe5t7Ty.cjs +1 -0
- package/dist/use-merged-ref-BI9n1hUK.cjs +1 -0
- package/dist/use-merged-ref-BT8_u6vW.js +25 -0
- package/dist/use-resolved-styles-api-AVDygMKo.cjs +1 -0
- package/dist/use-resolved-styles-api-pEOi2wiK.js +21 -0
- package/dist/use-uncontrolled-A4hm9ATM.js +23 -0
- package/dist/use-uncontrolled-BPrfGv0W.cjs +1 -0
- package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +1 -0
- package/dist/useAdaptiveDimensions-CunsU0mn.js +40 -0
- package/dist/useCloseInterceptor-CuKAAFnj.js +51 -0
- package/dist/useCloseInterceptor-a_6Lcuqj.cjs +1 -0
- package/dist/useDynamicIcon-GJg3vWsJ.js +22 -0
- package/dist/useDynamicIcon-SytdL1Tu.cjs +1 -0
- package/dist/useMenuBarUtils-Bp5PiztD.cjs +1 -0
- package/dist/useMenuBarUtils-ChmpZjwu.js +6 -0
- package/dist/useOpenApp-BdarhIgl.cjs +1 -0
- package/dist/useOpenApp-JHCPTBWa.js +279 -0
- package/dist/useResolvedUrl-Be5ZlCX7.cjs +1 -0
- package/dist/useResolvedUrl-DFKXq598.js +30 -0
- package/dist/useTranslation-DMRGdqZi.js +279 -0
- package/dist/useTranslation-D_O7S4RJ.cjs +1 -0
- package/dist/vsc-Ciibqbxo.cjs +1 -0
- package/dist/vsc-DGKSpOAR.js +9574 -0
- package/package.json +7 -3
- package/dist/CalendarApp-CHLUCAI7.css +0 -744
- package/dist/CalendarApp-K7ZOUZ6C.js +0 -2
- package/dist/CalendarApp-OTGEERSS.cjs +0 -8
- package/dist/CodeServerApp-5KZGO7HL.css +0 -75
- package/dist/CodeServerApp-LUZFCQBI.js +0 -3
- package/dist/CodeServerApp-P3TMJPLY.cjs +0 -9
- package/dist/CreateItemApp-ESQ42VHH.js +0 -8
- package/dist/CreateItemApp-PQB5GTFG.css +0 -107
- package/dist/CreateItemApp-RFE3REWZ.cjs +0 -14
- package/dist/DeviceInfoApp-XNIS6ZY6.js +0 -5
- package/dist/DeviceInfoApp-ZNLQNOKI.cjs +0 -11
- package/dist/DeviceInfoApp-ZSMRSITP.css +0 -7
- package/dist/FilesApp-4GEU64QN.js +0 -8
- package/dist/FilesApp-E6L5W3T2.css +0 -1817
- package/dist/FilesApp-QSLB5IWR.cjs +0 -14
- package/dist/ImageViewerApp-N2Q7E7WZ.css +0 -215
- package/dist/ImageViewerApp-NCVDKLB3.js +0 -11
- package/dist/ImageViewerApp-QB373H5Z.cjs +0 -17
- package/dist/ImageViewerMenuBar-I3TFKQPS.cjs +0 -14
- package/dist/ImageViewerMenuBar-TV5C6TM2.js +0 -5
- package/dist/ImageViewerMenuBar-XLK4LIHW.css +0 -56
- package/dist/MenuEditApp-5EFYAPFC.cjs +0 -15
- package/dist/MenuEditApp-V5XOPIHX.js +0 -9
- package/dist/MenuEditApp-YA6HSAMJ.css +0 -94
- package/dist/MenuEditMenuBar-7VHMZNRM.css +0 -56
- package/dist/MenuEditMenuBar-GF6L4PGZ.cjs +0 -15
- package/dist/MenuEditMenuBar-IUXFPZE5.js +0 -6
- package/dist/NotesApp-2YNT7Y3D.js +0 -10
- package/dist/NotesApp-IAEE7YHU.cjs +0 -16
- package/dist/NotesApp-TQ6IHDNX.css +0 -302
- package/dist/NotesMenuBar-25LKN3SE.cjs +0 -15
- package/dist/NotesMenuBar-MXLOX7OT.css +0 -56
- package/dist/NotesMenuBar-SRV3AIAL.js +0 -6
- package/dist/PdfApp-67XIX6AM.js +0 -10
- package/dist/PdfApp-BUIC5U5H.css +0 -206
- package/dist/PdfApp-GZ6RHTBR.cjs +0 -16
- package/dist/PdfMenuBar-NLZC6JHS.js +0 -4
- package/dist/PdfMenuBar-QUM72EE4.css +0 -56
- package/dist/PdfMenuBar-WBRTKMLN.cjs +0 -13
- package/dist/SettingsApp-BPLMGPNK.cjs +0 -20
- package/dist/SettingsApp-JVOSEFH3.css +0 -283
- package/dist/SettingsApp-LUDIXCYY.js +0 -14
- package/dist/SettingsMenuBar-5CBSSMVM.css +0 -56
- package/dist/SettingsMenuBar-VLT6TTCM.js +0 -6
- package/dist/SettingsMenuBar-Y5QEXDEO.cjs +0 -15
- package/dist/StorybookApp-NQ244BER.css +0 -7
- package/dist/StorybookApp-NZDV4X3Y.js +0 -1
- package/dist/StorybookApp-VF3KIMU3.cjs +0 -7
- package/dist/TerminalApp-CDGWRBFJ.cjs +0 -10
- package/dist/TerminalApp-EAATMIMX.css +0 -77
- package/dist/TerminalApp-GCKJCM55.js +0 -4
- package/dist/TerminalMenuBar-3J26O26Q.css +0 -56
- package/dist/TerminalMenuBar-7BH7MGNJ.cjs +0 -14
- package/dist/TerminalMenuBar-7JAEQUZ4.js +0 -5
- package/dist/UploaderApp-6KV3TGCT.css +0 -1817
- package/dist/UploaderApp-FJC2J4I5.js +0 -10
- package/dist/UploaderApp-HLXJYJZQ.cjs +0 -16
- package/dist/chunk-2PSTHGTD.cjs +0 -42
- package/dist/chunk-2RQX7QBP.cjs +0 -148
- package/dist/chunk-43W6UDUZ.cjs +0 -19
- package/dist/chunk-4E45FBAH.js +0 -223
- package/dist/chunk-4E4U2A25.cjs +0 -237
- package/dist/chunk-4QHX7CMN.cjs +0 -38
- package/dist/chunk-4XURSNM4.js +0 -43
- package/dist/chunk-4ZCRYHL6.js +0 -407
- package/dist/chunk-5C6IQE42.cjs +0 -35
- package/dist/chunk-5HUYQDQF.js +0 -36
- package/dist/chunk-5NOHYJNH.js +0 -84
- package/dist/chunk-5QFZW6HW.js +0 -2241
- package/dist/chunk-5YH6AKEO.js +0 -146
- package/dist/chunk-756GPSPM.js +0 -283
- package/dist/chunk-7WUYUTPN.js +0 -2293
- package/dist/chunk-7XCMBW64.js +0 -162
- package/dist/chunk-7Y7HB7FB.cjs +0 -53
- package/dist/chunk-ABIAPZ6S.cjs +0 -45
- package/dist/chunk-ACHGJKCI.cjs +0 -286
- package/dist/chunk-BQCD5RAF.cjs +0 -48
- package/dist/chunk-BQL3YXMV.js +0 -17429
- package/dist/chunk-C3XER4N3.js +0 -442
- package/dist/chunk-C6BEZNAM.cjs +0 -45
- package/dist/chunk-CILU6BWC.cjs +0 -548
- package/dist/chunk-CV5PUHAE.cjs +0 -86
- package/dist/chunk-D5MVFFID.js +0 -42
- package/dist/chunk-D7R55WWT.js +0 -1601
- package/dist/chunk-DFYDUXWP.cjs +0 -34
- package/dist/chunk-DWP2SYF7.js +0 -55
- package/dist/chunk-E55VXNLK.cjs +0 -17498
- package/dist/chunk-E5FW77FG.js +0 -77
- package/dist/chunk-EAELL43F.js +0 -42
- package/dist/chunk-EX5V2ZTU.js +0 -40
- package/dist/chunk-FD7QZCTN.cjs +0 -2329
- package/dist/chunk-FH4ILMKF.js +0 -38
- package/dist/chunk-FRHBM2U7.js +0 -33
- package/dist/chunk-FX2TPX3L.cjs +0 -45
- package/dist/chunk-GPXNLTPI.cjs +0 -451
- package/dist/chunk-GRYCUBJZ.js +0 -9
- package/dist/chunk-HPHHS7FJ.cjs +0 -49
- package/dist/chunk-HWHBSAUC.js +0 -40
- package/dist/chunk-IDHP3R4I.js +0 -31
- package/dist/chunk-IHWGT3DL.js +0 -86
- package/dist/chunk-JEBKLIMU.cjs +0 -123
- package/dist/chunk-KDZLBI6F.cjs +0 -324
- package/dist/chunk-KQHICFX3.js +0 -121
- package/dist/chunk-LMJE6V4N.cjs +0 -42
- package/dist/chunk-MCHPDWVH.js +0 -444
- package/dist/chunk-MVDGM5Y4.js +0 -68
- package/dist/chunk-N36HBL53.cjs +0 -165
- package/dist/chunk-NV5GNFA3.js +0 -541
- package/dist/chunk-NVEGEK3N.js +0 -31
- package/dist/chunk-OJIDKDKF.js +0 -68
- package/dist/chunk-PGGNSLM7.js +0 -215
- package/dist/chunk-PKPQA5NR.js +0 -15
- package/dist/chunk-PNDBLFJW.cjs +0 -50
- package/dist/chunk-Q3WA72BF.cjs +0 -70
- package/dist/chunk-RDIDAZ3S.cjs +0 -9
- package/dist/chunk-RGJPRXYY.js +0 -48
- package/dist/chunk-RPSYXORB.cjs +0 -219
- package/dist/chunk-RQ6OZRUW.cjs +0 -41
- package/dist/chunk-SBE4SZAN.cjs +0 -226
- package/dist/chunk-TAFNCDUI.js +0 -234
- package/dist/chunk-TFIDSENE.cjs +0 -88
- package/dist/chunk-TGWMOHAO.js +0 -17
- package/dist/chunk-UA6XSTW6.js +0 -48
- package/dist/chunk-UIQCTAVM.cjs +0 -59
- package/dist/chunk-UKYESVDS.cjs +0 -50
- package/dist/chunk-V4N255NL.cjs +0 -2309
- package/dist/chunk-VO6KXO2I.js +0 -32
- package/dist/chunk-WXSTSC3D.cjs +0 -83
- package/dist/chunk-XSK7BWYO.js +0 -47
- package/dist/chunk-XVAPJ4PP.cjs +0 -449
- package/dist/chunk-XVASHRCE.cjs +0 -70
- package/dist/chunk-XYSMVQQD.cjs +0 -1608
- package/dist/chunk-YAIWI4Z5.js +0 -7
- package/dist/chunk-YGYOLDKR.js +0 -280
- package/dist/chunk-YP2PLNOF.cjs +0 -34
- package/dist/chunk-YSOLW4FS.cjs +0 -11
- package/dist/chunk-YY6OUR2U.js +0 -44
- package/dist/chunk-YZWS7FDT.cjs +0 -409
- package/dist/chunk-Z5YGWL65.cjs +0 -39
- package/dist/chunk-ZHNDXNL4.js +0 -45
- package/dist/chunk-ZX3EDZ5C.cjs +0 -17
- package/dist/index.d.cts +0 -2019
|
@@ -0,0 +1,997 @@
|
|
|
1
|
+
import { C as e, F as t, L as n, N as r, O as i, P as a, a as o, c as s, d as c, j as l, l as u, n as d, r as f, s as p, t as m, z as h } from "./Box-DRm8EabO.js";
|
|
2
|
+
import { d as g, f as _, n as v } from "./Tooltip-CAOO-qdx.js";
|
|
3
|
+
import { t as y } from "./use-uncontrolled-A4hm9ATM.js";
|
|
4
|
+
import { d as b, f as x, i as S, n as C, r as ee } from "./TextInput-C3qfxxWI.js";
|
|
5
|
+
import { r as te } from "./use-merged-ref-BT8_u6vW.js";
|
|
6
|
+
import { t as ne } from "./use-resolved-styles-api-pEOi2wiK.js";
|
|
7
|
+
import { t as re } from "./UnstyledButton-CI3kyRck.js";
|
|
8
|
+
import { t as ie } from "./ActionIcon-CtVbYlGY.js";
|
|
9
|
+
import { t as w } from "./CheckIcon-C3WjIR2i.js";
|
|
10
|
+
import { t as T } from "./Colors-hca6raEG.js";
|
|
11
|
+
import { createContext as E, createElement as D, use as O, useCallback as k, useEffect as A, useRef as j, useState as M } from "react";
|
|
12
|
+
import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/units-converters/px.mjs
|
|
14
|
+
function I(e) {
|
|
15
|
+
return typeof e != "string" || !e.includes("var(--mantine-scale)") ? e : e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim();
|
|
16
|
+
}
|
|
17
|
+
function L(e) {
|
|
18
|
+
let t = I(e);
|
|
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
|
+
}
|
|
21
|
+
//#endregion
|
|
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 R(e, t) {
|
|
24
|
+
return e in t ? L(t[e]) : L(e);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
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 z(e, t) {
|
|
29
|
+
let n = e.map((e) => ({
|
|
30
|
+
value: e,
|
|
31
|
+
px: R(e, t)
|
|
32
|
+
}));
|
|
33
|
+
return n.sort((e, t) => e.px - t.px), n;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
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 B(e) {
|
|
38
|
+
return typeof e == "object" && e ? "base" in e ? e.base : void 0 : e;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
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 V() {
|
|
43
|
+
let [e, t] = M(!1);
|
|
44
|
+
return x(() => {
|
|
45
|
+
t(typeof window < "u" && !H() && "EyeDropper" in window);
|
|
46
|
+
}, []), {
|
|
47
|
+
supported: e,
|
|
48
|
+
open: k((t = {}) => e ? new window.EyeDropper().open(t) : Promise.resolve(void 0), [e])
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function H() {
|
|
52
|
+
return navigator.userAgent.includes("OPR");
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorSwatch/ColorSwatch.module.mjs
|
|
56
|
+
var U = {
|
|
57
|
+
root: "m_de3d2490",
|
|
58
|
+
colorOverlay: "m_862f3d1b",
|
|
59
|
+
shadowOverlay: "m_98ae7f22",
|
|
60
|
+
alphaOverlay: "m_95709ac0",
|
|
61
|
+
childrenOverlay: "m_93e74e3"
|
|
62
|
+
}, W = { withShadow: !0 }, G = i((e, { radius: t, size: r }) => ({ root: {
|
|
63
|
+
"--cs-radius": t === void 0 ? void 0 : l(t),
|
|
64
|
+
"--cs-size": n(r)
|
|
65
|
+
} })), K = d((e) => {
|
|
66
|
+
let t = u("ColorSwatch", W, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: c, color: l, radius: d, withShadow: f, children: p, attributes: h, ...g } = u("ColorSwatch", W, t), _ = s({
|
|
67
|
+
name: "ColorSwatch",
|
|
68
|
+
props: t,
|
|
69
|
+
classes: U,
|
|
70
|
+
className: r,
|
|
71
|
+
style: i,
|
|
72
|
+
classNames: n,
|
|
73
|
+
styles: a,
|
|
74
|
+
unstyled: o,
|
|
75
|
+
attributes: h,
|
|
76
|
+
vars: c,
|
|
77
|
+
varsResolver: G
|
|
78
|
+
});
|
|
79
|
+
return /* @__PURE__ */ F(m, {
|
|
80
|
+
..._("root", { focusable: !0 }),
|
|
81
|
+
...g,
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ P("span", { ..._("alphaOverlay") }),
|
|
84
|
+
f && /* @__PURE__ */ P("span", { ..._("shadowOverlay") }),
|
|
85
|
+
/* @__PURE__ */ P("span", { ..._("colorOverlay", { style: { backgroundColor: l } }) }),
|
|
86
|
+
/* @__PURE__ */ P("span", {
|
|
87
|
+
..._("childrenOverlay"),
|
|
88
|
+
children: p
|
|
89
|
+
})
|
|
90
|
+
]
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
K.classes = U, K.varsResolver = G, K.displayName = "@mantine/core/ColorSwatch";
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/converters/parsers.mjs
|
|
96
|
+
function q(e, t = 0, n = 10 ** t) {
|
|
97
|
+
return Math.round(n * e) / n;
|
|
98
|
+
}
|
|
99
|
+
function J({ h: e, s: t, l: n, a: r }) {
|
|
100
|
+
let i = t * ((n < 50 ? n : 100 - n) / 100);
|
|
101
|
+
return {
|
|
102
|
+
h: e,
|
|
103
|
+
s: i > 0 ? 2 * i / (n + i) * 100 : 0,
|
|
104
|
+
v: n + i,
|
|
105
|
+
a: r
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
var Y = {
|
|
109
|
+
grad: 360 / 400,
|
|
110
|
+
turn: 360,
|
|
111
|
+
rad: 360 / (Math.PI * 2)
|
|
112
|
+
};
|
|
113
|
+
function ae(e, t = "deg") {
|
|
114
|
+
return Number(e) * (Y[t] || 1);
|
|
115
|
+
}
|
|
116
|
+
var oe = /hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;
|
|
117
|
+
function se(e) {
|
|
118
|
+
let t = oe.exec(e);
|
|
119
|
+
return t ? J({
|
|
120
|
+
h: ae(t[1], t[2]),
|
|
121
|
+
s: Number(t[3]),
|
|
122
|
+
l: Number(t[4]),
|
|
123
|
+
a: t[5] === void 0 ? 1 : Number(t[5]) / (t[6] ? 100 : 1)
|
|
124
|
+
}) : {
|
|
125
|
+
h: 0,
|
|
126
|
+
s: 0,
|
|
127
|
+
v: 0,
|
|
128
|
+
a: 1
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function ce({ r: e, g: t, b: n, a: r }) {
|
|
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
|
+
return {
|
|
134
|
+
h: q(60 * (o < 0 ? o + 6 : o), 3),
|
|
135
|
+
s: q(i ? a / i * 100 : 0, 3),
|
|
136
|
+
v: q(i / 255 * 100, 3),
|
|
137
|
+
a: r
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
function le(e) {
|
|
141
|
+
let t = e[0] === "#" ? e.slice(1) : e;
|
|
142
|
+
return t.length === 3 ? ce({
|
|
143
|
+
r: parseInt(t[0] + t[0], 16),
|
|
144
|
+
g: parseInt(t[1] + t[1], 16),
|
|
145
|
+
b: parseInt(t[2] + t[2], 16),
|
|
146
|
+
a: 1
|
|
147
|
+
}) : ce({
|
|
148
|
+
r: parseInt(t.slice(0, 2), 16),
|
|
149
|
+
g: parseInt(t.slice(2, 4), 16),
|
|
150
|
+
b: parseInt(t.slice(4, 6), 16),
|
|
151
|
+
a: 1
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function ue(e) {
|
|
155
|
+
let t = e[0] === "#" ? e.slice(1) : e, n = (e) => q(parseInt(e, 16) / 255, 3);
|
|
156
|
+
if (t.length === 4) {
|
|
157
|
+
let e = t.slice(0, 3), r = n(t[3] + t[3]);
|
|
158
|
+
return {
|
|
159
|
+
...le(e),
|
|
160
|
+
a: r
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
let r = t.slice(0, 6), i = n(t.slice(6, 8));
|
|
164
|
+
return {
|
|
165
|
+
...le(r),
|
|
166
|
+
a: i
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
var de = /rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;
|
|
170
|
+
function fe(e) {
|
|
171
|
+
let t = de.exec(e);
|
|
172
|
+
return t ? ce({
|
|
173
|
+
r: Number(t[1]) / (t[2] ? 100 / 255 : 1),
|
|
174
|
+
g: Number(t[3]) / (t[4] ? 100 / 255 : 1),
|
|
175
|
+
b: Number(t[5]) / (t[6] ? 100 / 255 : 1),
|
|
176
|
+
a: t[7] === void 0 ? 1 : Number(t[7]) / (t[8] ? 100 : 1)
|
|
177
|
+
}) : {
|
|
178
|
+
h: 0,
|
|
179
|
+
s: 0,
|
|
180
|
+
v: 0,
|
|
181
|
+
a: 1
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
var pe = {
|
|
185
|
+
hex: /^#?([0-9A-F]{3}){1,2}$/i,
|
|
186
|
+
hexa: /^#?([0-9A-F]{4}){1,2}$/i,
|
|
187
|
+
rgb: /^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,
|
|
188
|
+
rgba: /^rgba\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,
|
|
189
|
+
hsl: /hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,
|
|
190
|
+
hsla: /^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i
|
|
191
|
+
}, me = {
|
|
192
|
+
hex: le,
|
|
193
|
+
hexa: ue,
|
|
194
|
+
rgb: fe,
|
|
195
|
+
rgba: fe,
|
|
196
|
+
hsl: se,
|
|
197
|
+
hsla: se
|
|
198
|
+
};
|
|
199
|
+
function X(e) {
|
|
200
|
+
for (let [, t] of Object.entries(pe)) if (t.test(e)) return !0;
|
|
201
|
+
return !1;
|
|
202
|
+
}
|
|
203
|
+
function Z(e) {
|
|
204
|
+
if (typeof e != "string") return {
|
|
205
|
+
h: 0,
|
|
206
|
+
s: 0,
|
|
207
|
+
v: 0,
|
|
208
|
+
a: 1
|
|
209
|
+
};
|
|
210
|
+
if (e === "transparent") return {
|
|
211
|
+
h: 0,
|
|
212
|
+
s: 0,
|
|
213
|
+
v: 0,
|
|
214
|
+
a: 0
|
|
215
|
+
};
|
|
216
|
+
let t = e.trim();
|
|
217
|
+
for (let [e, n] of Object.entries(pe)) if (n.test(t)) return me[e](t);
|
|
218
|
+
return {
|
|
219
|
+
h: 0,
|
|
220
|
+
s: 0,
|
|
221
|
+
v: 0,
|
|
222
|
+
a: 1
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/ColorPicker.context.mjs
|
|
227
|
+
var he = E(null);
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/Thumb/Thumb.mjs
|
|
230
|
+
function ge({ position: e, ...t }) {
|
|
231
|
+
return /* @__PURE__ */ P(m, {
|
|
232
|
+
__vars: {
|
|
233
|
+
"--thumb-y-offset": `${e.y * 100}%`,
|
|
234
|
+
"--thumb-x-offset": `${e.x * 100}%`
|
|
235
|
+
},
|
|
236
|
+
...t
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
ge.displayName = "@mantine/core/ColorPickerThumb";
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/ColorPicker.module.mjs
|
|
242
|
+
var _e = {
|
|
243
|
+
wrapper: "m_fee9c77",
|
|
244
|
+
preview: "m_9dddfbac",
|
|
245
|
+
body: "m_bffecc3e",
|
|
246
|
+
sliders: "m_3283bb96",
|
|
247
|
+
thumb: "m_40d572ba",
|
|
248
|
+
swatch: "m_d8ee6fd8",
|
|
249
|
+
swatches: "m_5711e686",
|
|
250
|
+
saturation: "m_202a296e",
|
|
251
|
+
saturationOverlay: "m_11b3db02",
|
|
252
|
+
slider: "m_d856d47d",
|
|
253
|
+
sliderOverlay: "m_8f327113"
|
|
254
|
+
}, Q = f((e) => {
|
|
255
|
+
let t = u("ColorSlider", null, e), { classNames: r, className: i, style: a, styles: o, unstyled: l, vars: d, onChange: f, onChangeEnd: p, maxValue: h, round: v, size: y = "md", focusable: x = !0, value: S, overlays: C, thumbColor: ee = "transparent", onScrubStart: ne, onScrubEnd: re, __staticSelector: ie = "ColorPicker", attributes: w, ref: T, ...E } = t, k = s({
|
|
256
|
+
name: ie,
|
|
257
|
+
classes: _e,
|
|
258
|
+
props: t,
|
|
259
|
+
className: i,
|
|
260
|
+
style: a,
|
|
261
|
+
classNames: r,
|
|
262
|
+
styles: o,
|
|
263
|
+
unstyled: l,
|
|
264
|
+
attributes: w,
|
|
265
|
+
rootSelector: "slider"
|
|
266
|
+
}), A = O(he)?.getStyles || k, N = c(), [I, L] = M({
|
|
267
|
+
y: 0,
|
|
268
|
+
x: S / h
|
|
269
|
+
}), R = j(I), z = (e) => v ? Math.round(e * h) : e * h, { ref: B } = _(({ x: e, y: t }) => {
|
|
270
|
+
R.current = {
|
|
271
|
+
x: e,
|
|
272
|
+
y: t
|
|
273
|
+
}, f?.(z(e));
|
|
274
|
+
}, {
|
|
275
|
+
onScrubEnd: () => {
|
|
276
|
+
let { x: e } = R.current;
|
|
277
|
+
p?.(z(e)), re?.();
|
|
278
|
+
},
|
|
279
|
+
onScrubStart: ne
|
|
280
|
+
});
|
|
281
|
+
b(() => {
|
|
282
|
+
L({
|
|
283
|
+
y: 0,
|
|
284
|
+
x: S / h
|
|
285
|
+
});
|
|
286
|
+
}, [S]);
|
|
287
|
+
let V = (e, t) => {
|
|
288
|
+
e.preventDefault();
|
|
289
|
+
let n = g(t);
|
|
290
|
+
f?.(z(n.x)), p?.(z(n.x));
|
|
291
|
+
}, H = (e) => {
|
|
292
|
+
switch (e.key) {
|
|
293
|
+
case "ArrowRight":
|
|
294
|
+
V(e, {
|
|
295
|
+
x: I.x + .05,
|
|
296
|
+
y: I.y
|
|
297
|
+
});
|
|
298
|
+
break;
|
|
299
|
+
case "ArrowLeft":
|
|
300
|
+
V(e, {
|
|
301
|
+
x: I.x - .05,
|
|
302
|
+
y: I.y
|
|
303
|
+
});
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
}, U = C.map((e, t) => /* @__PURE__ */ D("div", {
|
|
307
|
+
...A("sliderOverlay"),
|
|
308
|
+
style: e,
|
|
309
|
+
key: t
|
|
310
|
+
}));
|
|
311
|
+
return /* @__PURE__ */ F(m, {
|
|
312
|
+
...E,
|
|
313
|
+
ref: te(B, T),
|
|
314
|
+
...A("slider"),
|
|
315
|
+
size: y,
|
|
316
|
+
role: "slider",
|
|
317
|
+
"aria-valuenow": S,
|
|
318
|
+
"aria-valuemax": h,
|
|
319
|
+
"aria-valuemin": 0,
|
|
320
|
+
tabIndex: x ? 0 : -1,
|
|
321
|
+
onKeyDown: H,
|
|
322
|
+
"data-focus-ring": N.focusRing,
|
|
323
|
+
__vars: { "--cp-thumb-size": `var(--cp-thumb-size-${y})` },
|
|
324
|
+
children: [U, /* @__PURE__ */ P(ge, {
|
|
325
|
+
position: I,
|
|
326
|
+
...A("thumb", { style: {
|
|
327
|
+
top: n(1),
|
|
328
|
+
background: ee
|
|
329
|
+
} })
|
|
330
|
+
})]
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
Q.displayName = "@mantine/core/ColorSlider", Q.classes = _e;
|
|
334
|
+
//#endregion
|
|
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 = f((e) => {
|
|
337
|
+
let { value: t, onChange: r, onChangeEnd: i, color: a, ...o } = u("AlphaSlider", ve, e);
|
|
338
|
+
return /* @__PURE__ */ P(Q, {
|
|
339
|
+
...o,
|
|
340
|
+
value: t,
|
|
341
|
+
onChange: (e) => r?.(q(e, 2)),
|
|
342
|
+
onChangeEnd: (e) => i?.(q(e, 2)),
|
|
343
|
+
maxValue: 1,
|
|
344
|
+
round: !1,
|
|
345
|
+
"data-alpha": !0,
|
|
346
|
+
overlays: [
|
|
347
|
+
{
|
|
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: `${n(8)} ${n(8)}`,
|
|
350
|
+
backgroundPosition: `0 0, 0 ${n(4)}, ${n(4)} ${n(-4)}, ${n(-4)} 0`
|
|
351
|
+
},
|
|
352
|
+
{ backgroundImage: `linear-gradient(90deg, transparent, ${a})` },
|
|
353
|
+
{ boxShadow: `rgba(0, 0, 0, .1) 0 0 0 ${n(1)} inset, rgb(0, 0, 0, .15) 0 0 ${n(4)} inset` }
|
|
354
|
+
]
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
ye.displayName = "@mantine/core/AlphaSlider", ye.classes = Q.classes;
|
|
358
|
+
//#endregion
|
|
359
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/converters/converters.mjs
|
|
360
|
+
function be({ h: e, s: t, v: n, a: r }) {
|
|
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
|
+
return {
|
|
363
|
+
r: q([
|
|
364
|
+
o,
|
|
365
|
+
l,
|
|
366
|
+
c,
|
|
367
|
+
c,
|
|
368
|
+
u,
|
|
369
|
+
o
|
|
370
|
+
][d] * 255),
|
|
371
|
+
g: q([
|
|
372
|
+
u,
|
|
373
|
+
o,
|
|
374
|
+
o,
|
|
375
|
+
l,
|
|
376
|
+
c,
|
|
377
|
+
c
|
|
378
|
+
][d] * 255),
|
|
379
|
+
b: q([
|
|
380
|
+
c,
|
|
381
|
+
c,
|
|
382
|
+
u,
|
|
383
|
+
o,
|
|
384
|
+
o,
|
|
385
|
+
l
|
|
386
|
+
][d] * 255),
|
|
387
|
+
a: q(r, 2)
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
function xe(e, t) {
|
|
391
|
+
let { r: n, g: r, b: i, a } = be(e);
|
|
392
|
+
return t ? `rgba(${n}, ${r}, ${i}, ${q(a, 2)})` : `rgb(${n}, ${r}, ${i})`;
|
|
393
|
+
}
|
|
394
|
+
function Se({ h: e, s: t, v: n, a: r }, i) {
|
|
395
|
+
let a = (200 - t) * n / 100, o = {
|
|
396
|
+
h: Math.round(e),
|
|
397
|
+
s: Math.round(a > 0 && a < 200 ? t * n / 100 / (a <= 100 ? a : 200 - a) * 100 : 0),
|
|
398
|
+
l: Math.round(a / 2)
|
|
399
|
+
};
|
|
400
|
+
return i ? `hsla(${o.h}, ${o.s}%, ${o.l}%, ${q(r, 2)})` : `hsl(${o.h}, ${o.s}%, ${o.l}%)`;
|
|
401
|
+
}
|
|
402
|
+
function Ce(e) {
|
|
403
|
+
let t = e.toString(16);
|
|
404
|
+
return t.length < 2 ? `0${t}` : t;
|
|
405
|
+
}
|
|
406
|
+
function we(e) {
|
|
407
|
+
let { r: t, g: n, b: r } = be(e);
|
|
408
|
+
return `#${Ce(t)}${Ce(n)}${Ce(r)}`;
|
|
409
|
+
}
|
|
410
|
+
function Te(e) {
|
|
411
|
+
let t = Math.round(e.a * 255);
|
|
412
|
+
return `${we(e)}${Ce(t)}`;
|
|
413
|
+
}
|
|
414
|
+
var Ee = {
|
|
415
|
+
hex: we,
|
|
416
|
+
hexa: (e) => Te(e),
|
|
417
|
+
rgb: (e) => xe(e, !1),
|
|
418
|
+
rgba: (e) => xe(e, !0),
|
|
419
|
+
hsl: (e) => Se(e, !1),
|
|
420
|
+
hsla: (e) => Se(e, !0)
|
|
421
|
+
};
|
|
422
|
+
function $(e, t) {
|
|
423
|
+
return t ? e in Ee ? Ee[e](t) : Ee.hex(t) : "#000000";
|
|
424
|
+
}
|
|
425
|
+
//#endregion
|
|
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 = f((e) => {
|
|
428
|
+
let { value: t, onChange: r, onChangeEnd: i, color: a, ...o } = u("HueSlider", De, e);
|
|
429
|
+
return /* @__PURE__ */ P(Q, {
|
|
430
|
+
...o,
|
|
431
|
+
value: t,
|
|
432
|
+
onChange: r,
|
|
433
|
+
onChangeEnd: i,
|
|
434
|
+
maxValue: 360,
|
|
435
|
+
thumbColor: `hsl(${t}, 100%, 50%)`,
|
|
436
|
+
round: !0,
|
|
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 ${n(1)} inset, rgb(0, 0, 0, .15) 0 0 ${n(4)} inset` }]
|
|
439
|
+
});
|
|
440
|
+
});
|
|
441
|
+
Oe.displayName = "@mantine/core/HueSlider", Oe.classes = Q.classes;
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/Saturation/Saturation.mjs
|
|
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 } = O(he), [f, p] = M({
|
|
446
|
+
x: r.s / 100,
|
|
447
|
+
y: 1 - r.v / 100
|
|
448
|
+
}), h = j(f), { ref: v } = _(({ x: e, y: n }) => {
|
|
449
|
+
h.current = {
|
|
450
|
+
x: e,
|
|
451
|
+
y: n
|
|
452
|
+
}, t({
|
|
453
|
+
s: Math.round(e * 100),
|
|
454
|
+
v: Math.round((1 - n) * 100)
|
|
455
|
+
});
|
|
456
|
+
}, {
|
|
457
|
+
onScrubEnd: () => {
|
|
458
|
+
let { x: e, y: t } = h.current;
|
|
459
|
+
n({
|
|
460
|
+
s: Math.round(e * 100),
|
|
461
|
+
v: Math.round((1 - t) * 100)
|
|
462
|
+
}), l?.();
|
|
463
|
+
},
|
|
464
|
+
onScrubStart: c
|
|
465
|
+
});
|
|
466
|
+
A(() => {
|
|
467
|
+
p({
|
|
468
|
+
x: r.s / 100,
|
|
469
|
+
y: 1 - r.v / 100
|
|
470
|
+
});
|
|
471
|
+
}, [r.s, r.v]);
|
|
472
|
+
let y = (e, r) => {
|
|
473
|
+
e.preventDefault();
|
|
474
|
+
let i = g(r);
|
|
475
|
+
t({
|
|
476
|
+
s: Math.round(i.x * 100),
|
|
477
|
+
v: Math.round((1 - i.y) * 100)
|
|
478
|
+
}), n({
|
|
479
|
+
s: Math.round(i.x * 100),
|
|
480
|
+
v: Math.round((1 - i.y) * 100)
|
|
481
|
+
});
|
|
482
|
+
}, b = (e) => {
|
|
483
|
+
switch (e.key) {
|
|
484
|
+
case "ArrowUp":
|
|
485
|
+
y(e, {
|
|
486
|
+
y: f.y - .05,
|
|
487
|
+
x: f.x
|
|
488
|
+
});
|
|
489
|
+
break;
|
|
490
|
+
case "ArrowDown":
|
|
491
|
+
y(e, {
|
|
492
|
+
y: f.y + .05,
|
|
493
|
+
x: f.x
|
|
494
|
+
});
|
|
495
|
+
break;
|
|
496
|
+
case "ArrowRight":
|
|
497
|
+
y(e, {
|
|
498
|
+
x: f.x + .05,
|
|
499
|
+
y: f.y
|
|
500
|
+
});
|
|
501
|
+
break;
|
|
502
|
+
case "ArrowLeft":
|
|
503
|
+
y(e, {
|
|
504
|
+
x: f.x - .05,
|
|
505
|
+
y: f.y
|
|
506
|
+
});
|
|
507
|
+
break;
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
return /* @__PURE__ */ F(m, {
|
|
511
|
+
...d("saturation"),
|
|
512
|
+
ref: v,
|
|
513
|
+
...u,
|
|
514
|
+
role: "slider",
|
|
515
|
+
"aria-label": i,
|
|
516
|
+
"aria-valuenow": f.x,
|
|
517
|
+
"aria-valuetext": $("rgba", r),
|
|
518
|
+
tabIndex: a ? 0 : -1,
|
|
519
|
+
onKeyDown: b,
|
|
520
|
+
children: [
|
|
521
|
+
/* @__PURE__ */ P("div", { ...d("saturationOverlay", { style: { backgroundColor: `hsl(${r.h}, 100%, 50%)` } }) }),
|
|
522
|
+
/* @__PURE__ */ P("div", { ...d("saturationOverlay", { style: { backgroundImage: "linear-gradient(90deg, #fff, transparent)" } }) }),
|
|
523
|
+
/* @__PURE__ */ P("div", { ...d("saturationOverlay", { style: { backgroundImage: "linear-gradient(0deg, #000, transparent)" } }) }),
|
|
524
|
+
/* @__PURE__ */ P(ge, {
|
|
525
|
+
position: f,
|
|
526
|
+
...d("thumb", { style: { backgroundColor: s } })
|
|
527
|
+
})
|
|
528
|
+
]
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
ke.displayName = "@mantine/core/Saturation";
|
|
532
|
+
//#endregion
|
|
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: t, datatype: n, setValue: r, onChangeEnd: i, size: a, focusable: o, data: s, swatchesPerRow: c, value: l, ...u }) {
|
|
535
|
+
let d = O(he), f = s.map((t, n) => /* @__PURE__ */ D(K, {
|
|
536
|
+
...d.getStyles("swatch"),
|
|
537
|
+
unstyled: d.unstyled,
|
|
538
|
+
component: "button",
|
|
539
|
+
type: "button",
|
|
540
|
+
color: t,
|
|
541
|
+
key: n,
|
|
542
|
+
radius: "sm",
|
|
543
|
+
onClick: () => {
|
|
544
|
+
r(t), i?.(t);
|
|
545
|
+
},
|
|
546
|
+
"aria-label": t,
|
|
547
|
+
tabIndex: o ? 0 : -1,
|
|
548
|
+
"data-swatch": !0
|
|
549
|
+
}, l === t && /* @__PURE__ */ P(w, {
|
|
550
|
+
size: "35%",
|
|
551
|
+
color: e(t) < .5 ? "white" : "black"
|
|
552
|
+
})));
|
|
553
|
+
return /* @__PURE__ */ P(m, {
|
|
554
|
+
...d.getStyles("swatches"),
|
|
555
|
+
...u,
|
|
556
|
+
children: f
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
Ae.displayName = "@mantine/core/Swatches";
|
|
560
|
+
//#endregion
|
|
561
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorPicker/ColorPicker.mjs
|
|
562
|
+
var je = {
|
|
563
|
+
swatchesPerRow: 7,
|
|
564
|
+
withPicker: !0,
|
|
565
|
+
focusable: !0,
|
|
566
|
+
size: "md",
|
|
567
|
+
__staticSelector: "ColorPicker"
|
|
568
|
+
}, Me = i((e, { size: t, swatchesPerRow: n }) => ({ wrapper: {
|
|
569
|
+
"--cp-preview-size": r(t, "cp-preview-size"),
|
|
570
|
+
"--cp-width": r(t, "cp-width"),
|
|
571
|
+
"--cp-body-spacing": a(t),
|
|
572
|
+
"--cp-swatch-size": `${100 / n}%`,
|
|
573
|
+
"--cp-thumb-size": r(t, "cp-thumb-size"),
|
|
574
|
+
"--cp-saturation-height": r(t, "cp-saturation-height")
|
|
575
|
+
} })), Ne = f((e) => {
|
|
576
|
+
let t = u("ColorPicker", je, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: c, format: l = "hex", value: d, defaultValue: f, onChange: p, onChangeEnd: h, withPicker: g, size: _, saturationLabel: v, hueLabel: x, alphaLabel: S, focusable: C, swatches: ee, swatchesPerRow: te, fullWidth: ne, onColorSwatchClick: re, __staticSelector: ie, mod: w, attributes: T, name: E, hiddenInputProps: D, ...O } = t, k = s({
|
|
577
|
+
name: ie,
|
|
578
|
+
props: t,
|
|
579
|
+
classes: _e,
|
|
580
|
+
className: r,
|
|
581
|
+
style: i,
|
|
582
|
+
classNames: n,
|
|
583
|
+
styles: a,
|
|
584
|
+
unstyled: o,
|
|
585
|
+
attributes: T,
|
|
586
|
+
rootSelector: "wrapper",
|
|
587
|
+
vars: c,
|
|
588
|
+
varsResolver: Me
|
|
589
|
+
}), A = j(l || "hex"), I = j(""), L = j(-1), R = j(!1), z = l === "hexa" || l === "rgba" || l === "hsla", [B, V, H] = y({
|
|
590
|
+
value: d,
|
|
591
|
+
defaultValue: f,
|
|
592
|
+
finalValue: "#FFFFFF",
|
|
593
|
+
onChange: p
|
|
594
|
+
}), [U, W] = M(Z(B)), G = () => {
|
|
595
|
+
window.clearTimeout(L.current), R.current = !0;
|
|
596
|
+
}, q = () => {
|
|
597
|
+
window.clearTimeout(L.current), L.current = window.setTimeout(() => {
|
|
598
|
+
R.current = !1;
|
|
599
|
+
}, 200);
|
|
600
|
+
}, J = (e) => {
|
|
601
|
+
W((t) => {
|
|
602
|
+
let n = {
|
|
603
|
+
...t,
|
|
604
|
+
...e
|
|
605
|
+
};
|
|
606
|
+
return I.current = $(A.current, n), n;
|
|
607
|
+
}), V(I.current);
|
|
608
|
+
};
|
|
609
|
+
return b(() => {
|
|
610
|
+
typeof d == "string" && X(d) && !R.current && W(Z(d));
|
|
611
|
+
}, [d]), b(() => {
|
|
612
|
+
A.current = l || "hex", V($(A.current, U));
|
|
613
|
+
}, [l]), /* @__PURE__ */ P(he, {
|
|
614
|
+
value: {
|
|
615
|
+
getStyles: k,
|
|
616
|
+
unstyled: o
|
|
617
|
+
},
|
|
618
|
+
children: /* @__PURE__ */ F(m, {
|
|
619
|
+
...k("wrapper"),
|
|
620
|
+
size: _,
|
|
621
|
+
mod: [{ "full-width": ne }, w],
|
|
622
|
+
...O,
|
|
623
|
+
children: [
|
|
624
|
+
E && /* @__PURE__ */ P("input", {
|
|
625
|
+
type: "hidden",
|
|
626
|
+
name: E,
|
|
627
|
+
value: B,
|
|
628
|
+
...D
|
|
629
|
+
}),
|
|
630
|
+
g && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(ke, {
|
|
631
|
+
value: U,
|
|
632
|
+
onChange: J,
|
|
633
|
+
onChangeEnd: ({ s: e, v: t }) => h?.($(A.current, {
|
|
634
|
+
...U,
|
|
635
|
+
s: e,
|
|
636
|
+
v: t
|
|
637
|
+
})),
|
|
638
|
+
color: B,
|
|
639
|
+
size: _,
|
|
640
|
+
focusable: C,
|
|
641
|
+
saturationLabel: v,
|
|
642
|
+
onScrubStart: G,
|
|
643
|
+
onScrubEnd: q
|
|
644
|
+
}), /* @__PURE__ */ F("div", {
|
|
645
|
+
...k("body"),
|
|
646
|
+
children: [/* @__PURE__ */ F("div", {
|
|
647
|
+
...k("sliders"),
|
|
648
|
+
children: [/* @__PURE__ */ P(Oe, {
|
|
649
|
+
value: U.h,
|
|
650
|
+
onChange: (e) => J({ h: e }),
|
|
651
|
+
onChangeEnd: (e) => h?.($(A.current, {
|
|
652
|
+
...U,
|
|
653
|
+
h: e
|
|
654
|
+
})),
|
|
655
|
+
size: _,
|
|
656
|
+
focusable: C,
|
|
657
|
+
"aria-label": x,
|
|
658
|
+
onScrubStart: G,
|
|
659
|
+
onScrubEnd: q
|
|
660
|
+
}), z && /* @__PURE__ */ P(ye, {
|
|
661
|
+
value: U.a,
|
|
662
|
+
onChange: (e) => J({ a: e }),
|
|
663
|
+
onChangeEnd: (e) => {
|
|
664
|
+
h?.($(A.current, {
|
|
665
|
+
...U,
|
|
666
|
+
a: e
|
|
667
|
+
}));
|
|
668
|
+
},
|
|
669
|
+
size: _,
|
|
670
|
+
color: $("hex", U),
|
|
671
|
+
focusable: C,
|
|
672
|
+
"aria-label": S,
|
|
673
|
+
onScrubStart: G,
|
|
674
|
+
onScrubEnd: q
|
|
675
|
+
})]
|
|
676
|
+
}), z && /* @__PURE__ */ P(K, {
|
|
677
|
+
color: B,
|
|
678
|
+
radius: "sm",
|
|
679
|
+
size: "var(--cp-preview-size)",
|
|
680
|
+
...k("preview")
|
|
681
|
+
})]
|
|
682
|
+
})] }),
|
|
683
|
+
Array.isArray(ee) && /* @__PURE__ */ P(Ae, {
|
|
684
|
+
data: ee,
|
|
685
|
+
swatchesPerRow: te,
|
|
686
|
+
focusable: C,
|
|
687
|
+
setValue: V,
|
|
688
|
+
value: B,
|
|
689
|
+
onChangeEnd: (e) => {
|
|
690
|
+
let t = $(l, Z(e));
|
|
691
|
+
re?.(t), h?.(t), H || W(Z(e));
|
|
692
|
+
}
|
|
693
|
+
})
|
|
694
|
+
]
|
|
695
|
+
})
|
|
696
|
+
});
|
|
697
|
+
});
|
|
698
|
+
Ne.classes = _e, Ne.varsResolver = Me, Ne.displayName = "@mantine/core/ColorPicker";
|
|
699
|
+
//#endregion
|
|
700
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorInput/EyeDropperIcon.mjs
|
|
701
|
+
function Pe({ style: e, ...t }) {
|
|
702
|
+
return /* @__PURE__ */ F("svg", {
|
|
703
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
704
|
+
style: {
|
|
705
|
+
width: "var(--ci-eye-dropper-icon-size)",
|
|
706
|
+
height: "var(--ci-eye-dropper-icon-size)",
|
|
707
|
+
...e
|
|
708
|
+
},
|
|
709
|
+
viewBox: "0 0 24 24",
|
|
710
|
+
strokeWidth: "1.5",
|
|
711
|
+
stroke: "currentColor",
|
|
712
|
+
fill: "none",
|
|
713
|
+
strokeLinecap: "round",
|
|
714
|
+
strokeLinejoin: "round",
|
|
715
|
+
...t,
|
|
716
|
+
children: [
|
|
717
|
+
/* @__PURE__ */ P("path", {
|
|
718
|
+
stroke: "none",
|
|
719
|
+
d: "M0 0h24v24H0z",
|
|
720
|
+
fill: "none"
|
|
721
|
+
}),
|
|
722
|
+
/* @__PURE__ */ P("path", { d: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" }),
|
|
723
|
+
/* @__PURE__ */ P("path", { d: "M12 3l0 4" }),
|
|
724
|
+
/* @__PURE__ */ P("path", { d: "M12 21l0 -3" }),
|
|
725
|
+
/* @__PURE__ */ P("path", { d: "M3 12l4 0" }),
|
|
726
|
+
/* @__PURE__ */ P("path", { d: "M21 12l-3 0" }),
|
|
727
|
+
/* @__PURE__ */ P("path", { d: "M12 12l0 .01" })
|
|
728
|
+
]
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
//#endregion
|
|
732
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/ColorInput/ColorInput.module.mjs
|
|
733
|
+
var Fe = {
|
|
734
|
+
eyeDropperIcon: "m_b077c2bc",
|
|
735
|
+
eyeDropperButton: "m_66a028b5",
|
|
736
|
+
colorPreview: "m_c5ccdcab",
|
|
737
|
+
dropdown: "m_5ece2cd7"
|
|
738
|
+
}, Ie = {
|
|
739
|
+
format: "hex",
|
|
740
|
+
fixOnBlur: !0,
|
|
741
|
+
withPreview: !0,
|
|
742
|
+
swatchesPerRow: 7,
|
|
743
|
+
withPicker: !0,
|
|
744
|
+
popoverProps: { transitionProps: {
|
|
745
|
+
transition: "fade",
|
|
746
|
+
duration: 0
|
|
747
|
+
} },
|
|
748
|
+
withEyeDropper: !0,
|
|
749
|
+
size: "sm",
|
|
750
|
+
leftSectionPointerEvents: "none"
|
|
751
|
+
}, Le = i((e, { size: t }) => ({
|
|
752
|
+
eyeDropperIcon: { "--ci-eye-dropper-icon-size": r(t, "ci-eye-dropper-icon-size") },
|
|
753
|
+
eyeDropperButton: { "--ci-button-size": r(t, "ci-button-size") },
|
|
754
|
+
colorPreview: { "--ci-preview-size": r(t, "ci-preview-size") }
|
|
755
|
+
})), Re = f((e) => {
|
|
756
|
+
let t = u("ColorInput", Ie, e), { classNames: n, styles: r, unstyled: i, disallowInput: a, fixOnBlur: o, popoverProps: c, withPreview: l, withEyeDropper: d, eyeDropperIcon: f, closeOnColorSwatchClick: p, eyeDropperButtonProps: m, value: h, defaultValue: g, onChange: _, onChangeEnd: x, onClick: C, onFocus: te, onBlur: re, inputProps: w, format: T = "hex", wrapperProps: E, readOnly: D, withPicker: O, swatches: k, disabled: j, leftSection: N, rightSection: I, swatchesPerRow: L, ...R } = ee("ColorInput", Ie, e), z = s({
|
|
757
|
+
name: "ColorInput",
|
|
758
|
+
props: t,
|
|
759
|
+
classes: Fe,
|
|
760
|
+
classNames: n,
|
|
761
|
+
styles: r,
|
|
762
|
+
unstyled: i,
|
|
763
|
+
rootSelector: "wrapper",
|
|
764
|
+
vars: t.vars,
|
|
765
|
+
varsResolver: Le
|
|
766
|
+
}), { resolvedClassNames: B, resolvedStyles: H } = ne({
|
|
767
|
+
classNames: n,
|
|
768
|
+
styles: r,
|
|
769
|
+
props: t
|
|
770
|
+
}), [U, W] = M(!1), [G, q] = M(""), [J, Y] = y({
|
|
771
|
+
value: h,
|
|
772
|
+
defaultValue: g,
|
|
773
|
+
finalValue: "",
|
|
774
|
+
onChange: _
|
|
775
|
+
}), { supported: ae, open: oe } = V(), se = /* @__PURE__ */ P(ie, {
|
|
776
|
+
...m,
|
|
777
|
+
...z("eyeDropperButton", {
|
|
778
|
+
className: m?.className,
|
|
779
|
+
style: m?.style
|
|
780
|
+
}),
|
|
781
|
+
variant: "subtle",
|
|
782
|
+
color: "gray",
|
|
783
|
+
unstyled: i,
|
|
784
|
+
onClick: () => oe().then((e) => {
|
|
785
|
+
if (e?.sRGBHex) {
|
|
786
|
+
let t = $(T, Z(e.sRGBHex));
|
|
787
|
+
Y(t), x?.(t);
|
|
788
|
+
}
|
|
789
|
+
}).catch(() => {}),
|
|
790
|
+
children: f || /* @__PURE__ */ P(Pe, { ...z("eyeDropperIcon") })
|
|
791
|
+
}), ce = (e) => {
|
|
792
|
+
te?.(e), W(!0);
|
|
793
|
+
}, le = (e) => {
|
|
794
|
+
o && Y(G), re?.(e), W(!1);
|
|
795
|
+
}, ue = (e) => {
|
|
796
|
+
C?.(e), W(!0);
|
|
797
|
+
};
|
|
798
|
+
return A(() => {
|
|
799
|
+
(X(J) || J.trim() === "") && q(J);
|
|
800
|
+
}, [J]), b(() => {
|
|
801
|
+
X(J) && Y($(T, Z(J)));
|
|
802
|
+
}, [T]), /* @__PURE__ */ P(S.Wrapper, {
|
|
803
|
+
...E,
|
|
804
|
+
classNames: B,
|
|
805
|
+
styles: H,
|
|
806
|
+
__staticSelector: "ColorInput",
|
|
807
|
+
children: /* @__PURE__ */ F(v, {
|
|
808
|
+
__staticSelector: "ColorInput",
|
|
809
|
+
position: "bottom-start",
|
|
810
|
+
offset: 5,
|
|
811
|
+
opened: U,
|
|
812
|
+
...c,
|
|
813
|
+
classNames: B,
|
|
814
|
+
styles: H,
|
|
815
|
+
unstyled: i,
|
|
816
|
+
withRoles: !1,
|
|
817
|
+
disabled: D || O === !1 && (!Array.isArray(k) || k.length === 0),
|
|
818
|
+
children: [/* @__PURE__ */ P(v.Target, { children: /* @__PURE__ */ P(S, {
|
|
819
|
+
autoComplete: "off",
|
|
820
|
+
...R,
|
|
821
|
+
...w,
|
|
822
|
+
classNames: B,
|
|
823
|
+
styles: H,
|
|
824
|
+
disabled: j,
|
|
825
|
+
__staticSelector: "ColorInput",
|
|
826
|
+
onFocus: ce,
|
|
827
|
+
onBlur: le,
|
|
828
|
+
onClick: ue,
|
|
829
|
+
spellCheck: !1,
|
|
830
|
+
value: J,
|
|
831
|
+
onChange: (e) => {
|
|
832
|
+
let t = e.currentTarget.value;
|
|
833
|
+
Y(t), X(t) && x?.($(T, Z(t)));
|
|
834
|
+
},
|
|
835
|
+
leftSection: N || (l ? /* @__PURE__ */ P(K, {
|
|
836
|
+
color: X(J) ? J : "#fff",
|
|
837
|
+
size: "var(--ci-preview-size)",
|
|
838
|
+
...z("colorPreview")
|
|
839
|
+
}) : null),
|
|
840
|
+
readOnly: a || D,
|
|
841
|
+
pointer: a,
|
|
842
|
+
unstyled: i,
|
|
843
|
+
rightSection: I || (d && !j && !D && ae ? se : null)
|
|
844
|
+
}) }), /* @__PURE__ */ P(v.Dropdown, {
|
|
845
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
846
|
+
className: Fe.dropdown,
|
|
847
|
+
children: /* @__PURE__ */ P(Ne, {
|
|
848
|
+
__staticSelector: "ColorInput",
|
|
849
|
+
value: J,
|
|
850
|
+
onChange: Y,
|
|
851
|
+
onChangeEnd: x,
|
|
852
|
+
format: T,
|
|
853
|
+
swatches: k,
|
|
854
|
+
swatchesPerRow: L,
|
|
855
|
+
withPicker: O,
|
|
856
|
+
size: w.size,
|
|
857
|
+
focusable: !1,
|
|
858
|
+
unstyled: i,
|
|
859
|
+
styles: H,
|
|
860
|
+
classNames: B,
|
|
861
|
+
onColorSwatchClick: () => p && W(!1),
|
|
862
|
+
attributes: E.attributes
|
|
863
|
+
})
|
|
864
|
+
})]
|
|
865
|
+
})
|
|
866
|
+
});
|
|
867
|
+
});
|
|
868
|
+
Re.classes = C.classes, Re.varsResolver = Le, Re.displayName = "@mantine/core/ColorInput";
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/SimpleGrid/SimpleGridVariables.mjs
|
|
871
|
+
function ze(e) {
|
|
872
|
+
if (e !== void 0) return typeof e == "number" ? n(e) : e;
|
|
873
|
+
}
|
|
874
|
+
function Be({ spacing: e, verticalSpacing: n, cols: r, minColWidth: i, autoRows: o, selector: s }) {
|
|
875
|
+
let l = c(), u = n === void 0 ? e : n, d = i !== void 0, f = t({
|
|
876
|
+
"--sg-spacing-x": a(B(e)),
|
|
877
|
+
"--sg-spacing-y": a(B(u)),
|
|
878
|
+
"--sg-auto-rows": o,
|
|
879
|
+
...d ? { "--sg-min-col-width": ze(i) } : { "--sg-cols": B(r)?.toString() }
|
|
880
|
+
}), m = h(l.breakpoints).reduce((t, n) => (t[n] || (t[n] = {}), typeof e == "object" && e[n] !== void 0 && (t[n]["--sg-spacing-x"] = a(e[n])), typeof u == "object" && u[n] !== void 0 && (t[n]["--sg-spacing-y"] = a(u[n])), !d && typeof r == "object" && r[n] !== void 0 && (t[n]["--sg-cols"] = r[n]), t), {});
|
|
881
|
+
return /* @__PURE__ */ P(p, {
|
|
882
|
+
styles: f,
|
|
883
|
+
media: z(h(m), l.breakpoints).filter((e) => h(m[e.value]).length > 0).map((e) => ({
|
|
884
|
+
query: `(min-width: ${l.breakpoints[e.value]})`,
|
|
885
|
+
styles: m[e.value]
|
|
886
|
+
})),
|
|
887
|
+
selector: s
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
function Ve(e) {
|
|
891
|
+
return typeof e == "object" && e ? h(e) : [];
|
|
892
|
+
}
|
|
893
|
+
function He(e) {
|
|
894
|
+
return e.sort((e, t) => L(e) - L(t));
|
|
895
|
+
}
|
|
896
|
+
function Ue({ spacing: e, verticalSpacing: t, cols: n, minColWidth: r }) {
|
|
897
|
+
return He(Array.from(new Set([
|
|
898
|
+
...Ve(e),
|
|
899
|
+
...Ve(t),
|
|
900
|
+
...r === void 0 ? Ve(n) : []
|
|
901
|
+
])));
|
|
902
|
+
}
|
|
903
|
+
function We({ spacing: e, verticalSpacing: n, cols: r, minColWidth: i, autoRows: o, selector: s }) {
|
|
904
|
+
let c = n === void 0 ? e : n, l = i !== void 0, u = t({
|
|
905
|
+
"--sg-spacing-x": a(B(e)),
|
|
906
|
+
"--sg-spacing-y": a(B(c)),
|
|
907
|
+
"--sg-auto-rows": o,
|
|
908
|
+
...l ? { "--sg-min-col-width": ze(i) } : { "--sg-cols": B(r)?.toString() }
|
|
909
|
+
}), d = Ue({
|
|
910
|
+
spacing: e,
|
|
911
|
+
verticalSpacing: n,
|
|
912
|
+
cols: r,
|
|
913
|
+
minColWidth: i
|
|
914
|
+
}), f = d.reduce((t, n) => (t[n] || (t[n] = {}), typeof e == "object" && e[n] !== void 0 && (t[n]["--sg-spacing-x"] = a(e[n])), typeof c == "object" && c[n] !== void 0 && (t[n]["--sg-spacing-y"] = a(c[n])), !l && typeof r == "object" && r[n] !== void 0 && (t[n]["--sg-cols"] = r[n]), t), {});
|
|
915
|
+
return /* @__PURE__ */ P(p, {
|
|
916
|
+
styles: u,
|
|
917
|
+
container: d.map((e) => ({
|
|
918
|
+
query: `simple-grid (min-width: ${e})`,
|
|
919
|
+
styles: f[e]
|
|
920
|
+
})),
|
|
921
|
+
selector: s
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
//#endregion
|
|
925
|
+
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/SimpleGrid/SimpleGrid.module.mjs
|
|
926
|
+
var Ge = {
|
|
927
|
+
container: "m_925c2d2c",
|
|
928
|
+
root: "m_2415a157"
|
|
929
|
+
}, Ke = {
|
|
930
|
+
cols: 1,
|
|
931
|
+
spacing: "md",
|
|
932
|
+
type: "media"
|
|
933
|
+
}, qe = f((e) => {
|
|
934
|
+
let t = u("SimpleGrid", Ke, e), { classNames: n, className: r, style: i, styles: a, unstyled: c, vars: l, cols: d, verticalSpacing: f, spacing: p, type: h, minColWidth: g, autoFlow: _, autoRows: v, attributes: y, ...b } = t, x = s({
|
|
935
|
+
name: "SimpleGrid",
|
|
936
|
+
classes: Ge,
|
|
937
|
+
props: t,
|
|
938
|
+
className: r,
|
|
939
|
+
style: i,
|
|
940
|
+
classNames: n,
|
|
941
|
+
styles: a,
|
|
942
|
+
unstyled: c,
|
|
943
|
+
attributes: y,
|
|
944
|
+
vars: l
|
|
945
|
+
}), S = o(), C = g === void 0 ? void 0 : _ || "auto-fill";
|
|
946
|
+
return h === "container" ? /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(We, {
|
|
947
|
+
...t,
|
|
948
|
+
selector: `.${S}`
|
|
949
|
+
}), /* @__PURE__ */ P("div", {
|
|
950
|
+
...x("container"),
|
|
951
|
+
children: /* @__PURE__ */ P(m, {
|
|
952
|
+
...x("root", { className: S }),
|
|
953
|
+
...b,
|
|
954
|
+
"data-auto-cols": C
|
|
955
|
+
})
|
|
956
|
+
})] }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(Be, {
|
|
957
|
+
...t,
|
|
958
|
+
selector: `.${S}`
|
|
959
|
+
}), /* @__PURE__ */ P(m, {
|
|
960
|
+
...x("root", { className: S }),
|
|
961
|
+
...b,
|
|
962
|
+
"data-auto-cols": C
|
|
963
|
+
})] });
|
|
964
|
+
});
|
|
965
|
+
qe.classes = Ge, qe.displayName = "@mantine/core/SimpleGrid";
|
|
966
|
+
var Je = {
|
|
967
|
+
root: "_root_18r9b_1",
|
|
968
|
+
colorRow: "_colorRow_18r9b_7",
|
|
969
|
+
colorSwatch: "_colorSwatch_18r9b_13",
|
|
970
|
+
colorInput: "_colorInput_18r9b_38"
|
|
971
|
+
}, Ye = ({ value: e, onChange: t, error: n, disabled: r = !1 }) => /* @__PURE__ */ F("div", {
|
|
972
|
+
className: Je.root,
|
|
973
|
+
children: [/* @__PURE__ */ P("div", {
|
|
974
|
+
className: Je.colorRow,
|
|
975
|
+
children: T.map((n) => /* @__PURE__ */ P(re, {
|
|
976
|
+
className: Je.colorSwatch,
|
|
977
|
+
"data-selected": e === n || void 0,
|
|
978
|
+
"data-disabled": r || void 0,
|
|
979
|
+
style: { background: n },
|
|
980
|
+
onClick: () => !r && t(n),
|
|
981
|
+
"aria-label": `Color ${n}`,
|
|
982
|
+
"aria-pressed": e === n,
|
|
983
|
+
disabled: r
|
|
984
|
+
}, n))
|
|
985
|
+
}), /* @__PURE__ */ P(Re, {
|
|
986
|
+
value: e,
|
|
987
|
+
onChange: t,
|
|
988
|
+
placeholder: "Custom color",
|
|
989
|
+
size: "xs",
|
|
990
|
+
className: Je.colorInput,
|
|
991
|
+
"aria-label": "Custom color picker",
|
|
992
|
+
error: n,
|
|
993
|
+
disabled: r
|
|
994
|
+
})]
|
|
995
|
+
});
|
|
996
|
+
//#endregion
|
|
997
|
+
export { qe as n, L as r, Ye as t };
|