@fde-desktop/fde-core 0.4.9 → 0.4.11
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/{AppEmptyState-Bxpit0JV.js → AppEmptyState-Boej96TB.js} +1 -1
- package/dist/AppEmptyState-CLc00OOG.cjs +1 -0
- package/dist/AppIcon-C8vHUVcb.cjs +1 -0
- package/dist/AppIcon-mtEoyzOb.js +22 -0
- package/dist/AppMenuBar-CAlkNHjj.cjs +1 -0
- package/dist/AppMenuBar-DmSfQRXU.js +197 -0
- package/dist/CalendarApp-DOmjWbpl.js +10 -0
- package/dist/CalendarApp-Z0bCCYsK.cjs +1 -0
- package/dist/ColorPicker-CQRRwY-y.cjs +1 -0
- package/dist/ColorPicker-WCeD3Wjf.js +35 -0
- package/dist/CreateItemApp-BkFFFdX1.cjs +1 -0
- package/dist/CreateItemApp-DR8Y4bwo.js +202 -0
- package/dist/DeviceInfoApp-BXQ9uOwF.cjs +1 -0
- package/dist/DeviceInfoApp-I63mJRWy.js +195 -0
- package/dist/DownloadProgress-CkTGTf0z.cjs +1 -0
- package/dist/DownloadProgress-DnVASsv5.js +39 -0
- package/dist/FilePickerApp-By6-vbag.cjs +1 -0
- package/dist/FilePickerApp-ClHuhm6Z.js +390 -0
- package/dist/FilesApp-BC4UPNuw.cjs +1 -0
- package/dist/FilesApp-D8MqvC5X.js +210 -0
- package/dist/ImageViewerApp-B1niWF75.cjs +1 -0
- package/dist/{ImageViewerApp-BaLP3gkO.js → ImageViewerApp-iojtyFEf.js} +5 -5
- package/dist/{ImageViewerMenuBar-CabGSi9r.js → ImageViewerMenuBar-BIsUokxV.js} +2 -2
- package/dist/ImageViewerMenuBar-BgzgSF3v.cjs +1 -0
- package/dist/MenuEditApp-BHptoJbz.cjs +1 -0
- package/dist/{MenuEditApp-BTRppYnD.js → MenuEditApp-CJUbJaqh.js} +138 -143
- package/dist/MenuEditMenuBar-CCOSPAUe.cjs +1 -0
- package/dist/{MenuEditMenuBar-x1IQrHP2.js → MenuEditMenuBar-DnCL-kaZ.js} +3 -3
- package/dist/NotesApp-BmQIBtJ2.cjs +1 -0
- package/dist/{NotesApp-CQe7UfBC.js → NotesApp-DJ2dGt4-.js} +5 -5
- package/dist/NotesMenuBar-BzojwMtH.cjs +1 -0
- package/dist/{NotesMenuBar-VhpIe68v.js → NotesMenuBar-DILZTjnT.js} +3 -3
- package/dist/{PdfApp-DL_R9-Nc.js → PdfApp-IjY_GtnW.js} +3 -3
- package/dist/PdfApp-krW8UI97.cjs +1 -0
- package/dist/{PdfMenuBar-DZCLSOpR.js → PdfMenuBar-Bd5MTZcZ.js} +1 -1
- package/dist/PdfMenuBar-DWD0Qa3F.cjs +1 -0
- package/dist/SettingsApp-BE22l5UP.cjs +1 -0
- package/dist/SettingsApp-BTFtTFY_.js +1228 -0
- package/dist/SettingsMenuBar-CZE2evG2.cjs +1 -0
- package/dist/{SettingsMenuBar-YWiJHaxq.js → SettingsMenuBar-ktC0viTd.js} +3 -3
- package/dist/UploaderApp-CbypD538.js +263 -0
- package/dist/UploaderApp-D_qD3O70.cjs +1 -0
- package/dist/{VscIcon-DBfVnArE.js → VscIcon-AEENjKOE.js} +1 -1
- package/dist/VscIcon-BYb_Soyy.cjs +1 -0
- package/dist/buildBreadcrumbs-Ccd8i11b.cjs +1 -0
- package/dist/buildBreadcrumbs-noWhu8os.js +45 -0
- package/dist/{desktopStore-F8bgLqFl.js → desktopStore-8cSZlj7s.js} +407 -477
- package/dist/desktopStore-C1jR6Fdb.cjs +1 -0
- package/dist/imageViewerStore-Dfylg59V.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +16 -6
- package/dist/index.js +1646 -1960
- package/dist/menuEditStore-CYwtfD6H.cjs +1 -0
- package/dist/notesStore-CrWTO6oB.cjs +1 -0
- package/dist/settingsAppStore-DuYZNeFf.cjs +1 -0
- package/dist/useAdaptiveDimensions-3Lz4X0Tc.cjs +1 -0
- package/dist/{useAdaptiveDimensions-AVDc_qPa.js → useAdaptiveDimensions-DxNLJ7R5.js} +1 -1
- package/dist/{useCloseInterceptor-BZd3VILp.js → useCloseInterceptor-CIxhOZx1.js} +1 -1
- package/dist/useCloseInterceptor-CdX-09Ib.cjs +1 -0
- package/dist/useDynamicIcon-CK6SjEv5.cjs +1 -0
- package/dist/useOpenApp-D-FOY88T.cjs +1 -0
- package/dist/{useOpenApp-CBIm7Gzl.js → useOpenApp-DkZLFFCH.js} +51 -67
- package/dist/{useResolvedUrl-DQpLqOoL.js → useResolvedUrl-B6x4xy0x.js} +1 -2
- package/dist/useResolvedUrl-Bb39DpVy.cjs +1 -0
- package/package.json +2 -1
- package/dist/AccordionChevron-DxpOyInK.js +0 -26
- package/dist/AccordionChevron-kn5kSrEc.cjs +0 -1
- package/dist/ActionIcon-Drh4p6Fv.js +0 -145
- package/dist/ActionIcon-alk2zZD6.cjs +0 -1
- package/dist/AppEmptyState-BWCUbf-B.cjs +0 -1
- package/dist/AppIcon-BU7a3ZNH.cjs +0 -1
- package/dist/AppIcon-XumS3bIG.js +0 -80
- package/dist/AppMenuBar-B9U0n1Vv.cjs +0 -1
- package/dist/AppMenuBar-CnIEVjr8.js +0 -2049
- package/dist/Box-DSKR_qaa.js +0 -1579
- package/dist/Box-zW6Twge8.cjs +0 -1
- package/dist/Button-DMlnrqyx.cjs +0 -1
- package/dist/Button-wTOTQKxF.js +0 -178
- package/dist/CalendarApp-B_e1B1Yn.cjs +0 -1
- package/dist/CalendarApp-C-l9D6nd.cjs +0 -1
- package/dist/CalendarApp-D0ftTCTG.js +0 -1399
- package/dist/Center-CmxXB9ql.js +0 -25
- package/dist/Center-DKUE2pER.cjs +0 -1
- package/dist/CheckIcon-CZhtJD1O.cjs +0 -1
- package/dist/CheckIcon-N5qBqXQJ.js +0 -25
- package/dist/CodeServerApp-BOoGwZ7r.cjs +0 -1
- package/dist/CodeServerApp-Be3I5EGg.cjs +0 -1
- package/dist/CodeServerApp-DW18EZxa.js +0 -150
- package/dist/ColorPicker-BCNqi02x.js +0 -997
- package/dist/ColorPicker-BrDE7tMO.cjs +0 -1
- package/dist/CreateItemApp-B12M1E_1.cjs +0 -1
- package/dist/CreateItemApp-TAAprby3.js +0 -400
- package/dist/CreateItemApp-ePB6ujNl.cjs +0 -1
- package/dist/DeviceInfoApp-BMF18BGo.cjs +0 -1
- package/dist/DeviceInfoApp-DRy0H3aT.cjs +0 -1
- package/dist/DeviceInfoApp-lgpwkeRR.js +0 -223
- package/dist/DownloadProgress-EoyCaD5O.js +0 -174
- package/dist/DownloadProgress-VNdj22U8.cjs +0 -1
- package/dist/FileIcon-7JaSR3Gn.js +0 -89
- package/dist/FileIcon-CIXopWLv.cjs +0 -1
- package/dist/FilePickerApp-DaMgEqKh.js +0 -409
- package/dist/FilePickerApp-DjmuSFqa.cjs +0 -1
- package/dist/FilesApp-Bp7wfrBZ.cjs +0 -1
- package/dist/FilesApp-BpJJRKhi.cjs +0 -1
- package/dist/FilesApp-Cj94QG5o.js +0 -225
- package/dist/Group-CtBJSfCo.js +0 -48
- package/dist/Group-Dsrf6lEK.cjs +0 -1
- package/dist/ImageViewerApp-DlHGeB3S.cjs +0 -1
- package/dist/ImageViewerApp-DoXd_Swu.cjs +0 -1
- package/dist/ImageViewerMenuBar-SAI7UNz7.cjs +0 -1
- package/dist/ImageViewerMenuBar-_Jr29gii.cjs +0 -1
- package/dist/MenuEditApp-BJjlPTOa.cjs +0 -1
- package/dist/MenuEditApp-JPsGT-S3.cjs +0 -1
- package/dist/MenuEditMenuBar-BydGkqMw.cjs +0 -1
- package/dist/MenuEditMenuBar-DptlwVPQ.cjs +0 -1
- package/dist/NotesApp-BOcRGO7w.cjs +0 -1
- package/dist/NotesApp-OL07JXRE.cjs +0 -1
- package/dist/NotesMenuBar-BSI_2Y7p.cjs +0 -1
- package/dist/NotesMenuBar-Df6aW85J.cjs +0 -1
- package/dist/Paper-BX_9odR6.js +0 -30
- package/dist/Paper-D8-BaBx2.cjs +0 -1
- package/dist/PdfApp-CNEbty5v.cjs +0 -1
- package/dist/PdfApp-CVv3ZCaM.cjs +0 -1
- package/dist/PdfMenuBar--E6kDyrT.cjs +0 -1
- package/dist/PdfMenuBar-Dj5cJUkg.cjs +0 -1
- package/dist/SettingsApp-BlmHuAjT.js +0 -1831
- package/dist/SettingsApp-CNvIgf5B.cjs +0 -1
- package/dist/SettingsApp-DWxanNE4.cjs +0 -1
- package/dist/SettingsMenuBar-CBoOBCfx.cjs +0 -1
- package/dist/SettingsMenuBar-DQooFkZN.cjs +0 -1
- package/dist/Slider-BUiHxjKO.cjs +0 -1
- package/dist/Slider-t-NcD60t.js +0 -1176
- package/dist/Stack-Bp1Ek2Gp.js +0 -34
- package/dist/Stack-D4jAiRfc.cjs +0 -1
- package/dist/StorybookApp-CDLV_kja.cjs +0 -1
- package/dist/StorybookApp-DKwlPCmo.js +0 -10
- package/dist/TerminalApp-BCB7i1lR.cjs +0 -1
- package/dist/TerminalApp-BYc_gHLe.js +0 -326
- package/dist/TerminalApp-Dviz6aP2.cjs +0 -1
- package/dist/TerminalMenuBar-D5tPmgR_.js +0 -113
- package/dist/TerminalMenuBar-DNshPmCa.cjs +0 -1
- package/dist/TerminalMenuBar-HzMSR7XP.cjs +0 -1
- package/dist/TextInput-C-JtGWn1.js +0 -981
- package/dist/TextInput-CrsmcOip.cjs +0 -1
- package/dist/Tooltip-D5Cd9wtz.cjs +0 -1
- package/dist/Tooltip-DOeIvhrO.js +0 -1142
- package/dist/UnstyledButton-DGaG-e_G.js +0 -25
- package/dist/UnstyledButton-DX2pTahr.cjs +0 -1
- package/dist/UploaderApp-C6xA5Rrf2.cjs +0 -1
- package/dist/UploaderApp-DnHIRxB_.cjs +0 -1
- package/dist/UploaderApp-qBfpukR_.js +0 -488
- package/dist/VscIcon-CcMdrFoJ.cjs +0 -1
- package/dist/create-safe-context-Bboj0GWC.cjs +0 -1
- package/dist/create-safe-context-XT2cxc14.js +0 -12
- package/dist/desktopStore-CZoA9VHO.cjs +0 -1
- package/dist/getRuntime-BFK0-8R1.cjs +0 -1
- package/dist/getRuntime-DAPqFH2W.js +0 -63
- package/dist/imageViewerStore-BB_tssZR.cjs +0 -1
- package/dist/is-element-Bu_JY8Qy.js +0 -7
- package/dist/is-element-CdV0xajp.cjs +0 -1
- package/dist/menuEditStore-CTeM_dns.cjs +0 -1
- package/dist/notesStore-BCEl1D_v.cjs +0 -1
- package/dist/settingsAppStore-CMBc13VU.cjs +0 -1
- package/dist/terminalStore-IWdf4Mm6.js +0 -30
- package/dist/terminalStore-iIuyodfK.cjs +0 -1
- package/dist/use-merged-ref-BT8_u6vW.js +0 -25
- package/dist/use-merged-ref-n9Gw9LNn.cjs +0 -1
- package/dist/use-resolved-styles-api-8OXE2oRq.cjs +0 -1
- package/dist/use-resolved-styles-api-DNUlJJZf.js +0 -21
- package/dist/use-uncontrolled-A4hm9ATM.js +0 -23
- package/dist/use-uncontrolled-DDJVQiM_.cjs +0 -1
- package/dist/useAdaptiveDimensions-CfITBJ_m.cjs +0 -1
- package/dist/useCloseInterceptor-yntBEzNc.cjs +0 -1
- package/dist/useDynamicIcon-DJ_il30E.cjs +0 -1
- package/dist/useOpenApp-DW4x79Zg.cjs +0 -1
- package/dist/useResolvedUrl-BkMPM1fM.cjs +0 -1
- /package/dist/{Colors-zP2AFgU3.cjs → Colors-CNJbU7oq.cjs} +0 -0
- /package/dist/{Colors-ClnDxnyA.js → Colors-CuABn2W4.js} +0 -0
- /package/dist/{imageViewerStore-C5kWz0o7.js → imageViewerStore-COrD02Zu.js} +0 -0
- /package/dist/{menuEditStore-Cj1zAwxQ.js → menuEditStore-CxsgLiQu.js} +0 -0
- /package/dist/{notesStore-BPyRTHEc.js → notesStore-Dgah46U5.js} +0 -0
- /package/dist/{settingsAppStore-BDQ3ts1y.js → settingsAppStore-DHZhi6Rl.js} +0 -0
- /package/dist/{useDynamicIcon-Bf0t2foA.js → useDynamicIcon-_wGeWu-b.js} +0 -0
- /package/dist/{useMenuBarUtils-nmu9yehT.js → useMenuBarUtils-ChAfI7OA.js} +0 -0
- /package/dist/{useMenuBarUtils-nJIPJGIQ.cjs → useMenuBarUtils-DAap0ukp.cjs} +0 -0
|
@@ -1,997 +0,0 @@
|
|
|
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
|
-
//#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/units-converters/px.mjs
|
|
14
|
-
function F(e) {
|
|
15
|
-
return typeof e != "string" || !e.includes("var(--mantine-scale)") ? e : e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim();
|
|
16
|
-
}
|
|
17
|
-
function I(e) {
|
|
18
|
-
let t = F(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 L(e, t) {
|
|
24
|
-
return e in t ? I(t[e]) : I(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 R(e, t) {
|
|
29
|
-
let n = e.map((e) => ({
|
|
30
|
-
value: e,
|
|
31
|
-
px: L(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 z(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 B() {
|
|
43
|
-
let [e, t] = j(!1);
|
|
44
|
-
return b(() => {
|
|
45
|
-
t(typeof window < "u" && !V() && "EyeDropper" in window);
|
|
46
|
-
}, []), {
|
|
47
|
-
supported: e,
|
|
48
|
-
open: O((t = {}) => e ? new window.EyeDropper().open(t) : Promise.resolve(void 0), [e])
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
function V() {
|
|
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 H = {
|
|
57
|
-
root: "m_de3d2490",
|
|
58
|
-
colorOverlay: "m_862f3d1b",
|
|
59
|
-
shadowOverlay: "m_98ae7f22",
|
|
60
|
-
alphaOverlay: "m_95709ac0",
|
|
61
|
-
childrenOverlay: "m_93e74e3"
|
|
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
|
-
name: "ColorSwatch",
|
|
68
|
-
props: t,
|
|
69
|
-
classes: H,
|
|
70
|
-
className: r,
|
|
71
|
-
style: i,
|
|
72
|
-
classNames: n,
|
|
73
|
-
styles: a,
|
|
74
|
-
unstyled: o,
|
|
75
|
-
attributes: m,
|
|
76
|
-
vars: s,
|
|
77
|
-
varsResolver: W
|
|
78
|
-
});
|
|
79
|
-
return /* @__PURE__ */ P(h, {
|
|
80
|
-
..._("root", { focusable: !0 }),
|
|
81
|
-
...g,
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ N("span", { ..._("alphaOverlay") }),
|
|
84
|
-
f && /* @__PURE__ */ N("span", { ..._("shadowOverlay") }),
|
|
85
|
-
/* @__PURE__ */ N("span", { ..._("colorOverlay", { style: { backgroundColor: c } }) }),
|
|
86
|
-
/* @__PURE__ */ N("span", {
|
|
87
|
-
..._("childrenOverlay"),
|
|
88
|
-
children: p
|
|
89
|
-
})
|
|
90
|
-
]
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
G.classes = H, G.varsResolver = W, G.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 K(e, t = 0, n = 10 ** t) {
|
|
97
|
-
return Math.round(n * e) / n;
|
|
98
|
-
}
|
|
99
|
-
function q({ 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 J = {
|
|
109
|
-
grad: 360 / 400,
|
|
110
|
-
turn: 360,
|
|
111
|
-
rad: 360 / (Math.PI * 2)
|
|
112
|
-
};
|
|
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
|
-
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 le({ 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: 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
|
-
a: r
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
function Y(e) {
|
|
141
|
-
let t = e[0] === "#" ? e.slice(1) : e;
|
|
142
|
-
return t.length === 3 ? le({
|
|
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
|
-
}) : le({
|
|
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) => K(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
|
-
...Y(e),
|
|
160
|
-
a: r
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
let r = t.slice(0, 6), i = n(t.slice(6, 8));
|
|
164
|
-
return {
|
|
165
|
-
...Y(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 ? le({
|
|
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: Y,
|
|
193
|
-
hexa: ue,
|
|
194
|
-
rgb: fe,
|
|
195
|
-
rgba: fe,
|
|
196
|
-
hsl: ce,
|
|
197
|
-
hsla: ce
|
|
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 = T(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__ */ N(h, {
|
|
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 = 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
|
-
classes: _e,
|
|
258
|
-
props: t,
|
|
259
|
-
className: i,
|
|
260
|
-
style: a,
|
|
261
|
-
classNames: n,
|
|
262
|
-
styles: o,
|
|
263
|
-
unstyled: s,
|
|
264
|
-
attributes: C,
|
|
265
|
-
rootSelector: "slider"
|
|
266
|
-
}), k = D(he)?.getStyles || O, M = u(), [F, I] = j({
|
|
267
|
-
y: 0,
|
|
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
|
-
x: e,
|
|
272
|
-
y: t
|
|
273
|
-
}, f?.(R(e));
|
|
274
|
-
}, {
|
|
275
|
-
onScrubEnd: () => {
|
|
276
|
-
let { x: e } = L.current;
|
|
277
|
-
p?.(R(e)), ie?.();
|
|
278
|
-
},
|
|
279
|
-
onScrubStart: re
|
|
280
|
-
});
|
|
281
|
-
y(() => {
|
|
282
|
-
I({
|
|
283
|
-
y: 0,
|
|
284
|
-
x: x / m
|
|
285
|
-
});
|
|
286
|
-
}, [x]);
|
|
287
|
-
let B = (e, t) => {
|
|
288
|
-
e.preventDefault();
|
|
289
|
-
let n = ee(t);
|
|
290
|
-
f?.(R(n.x)), p?.(R(n.x));
|
|
291
|
-
}, V = (e) => {
|
|
292
|
-
switch (e.key) {
|
|
293
|
-
case "ArrowRight":
|
|
294
|
-
B(e, {
|
|
295
|
-
x: F.x + .05,
|
|
296
|
-
y: F.y
|
|
297
|
-
});
|
|
298
|
-
break;
|
|
299
|
-
case "ArrowLeft":
|
|
300
|
-
B(e, {
|
|
301
|
-
x: F.x - .05,
|
|
302
|
-
y: F.y
|
|
303
|
-
});
|
|
304
|
-
break;
|
|
305
|
-
}
|
|
306
|
-
}, H = S.map((e, t) => /* @__PURE__ */ E("div", {
|
|
307
|
-
...k("sliderOverlay"),
|
|
308
|
-
style: e,
|
|
309
|
-
key: t
|
|
310
|
-
}));
|
|
311
|
-
return /* @__PURE__ */ P(h, {
|
|
312
|
-
...T,
|
|
313
|
-
ref: ne(z, w),
|
|
314
|
-
...k("slider"),
|
|
315
|
-
size: v,
|
|
316
|
-
role: "slider",
|
|
317
|
-
"aria-valuenow": x,
|
|
318
|
-
"aria-valuemax": m,
|
|
319
|
-
"aria-valuemin": 0,
|
|
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
|
-
} })
|
|
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 = p((e) => {
|
|
337
|
-
let { value: t, onChange: n, onChangeEnd: i, color: a, ...o } = d("AlphaSlider", ve, e);
|
|
338
|
-
return /* @__PURE__ */ N(Q, {
|
|
339
|
-
...o,
|
|
340
|
-
value: t,
|
|
341
|
-
onChange: (e) => n?.(K(e, 2)),
|
|
342
|
-
onChangeEnd: (e) => i?.(K(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: `${r(8)} ${r(8)}`,
|
|
350
|
-
backgroundPosition: `0 0, 0 ${r(4)}, ${r(4)} ${r(-4)}, ${r(-4)} 0`
|
|
351
|
-
},
|
|
352
|
-
{ backgroundImage: `linear-gradient(90deg, transparent, ${a})` },
|
|
353
|
-
{ boxShadow: `rgba(0, 0, 0, .1) 0 0 0 ${r(1)} inset, rgb(0, 0, 0, .15) 0 0 ${r(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: K([
|
|
364
|
-
o,
|
|
365
|
-
l,
|
|
366
|
-
c,
|
|
367
|
-
c,
|
|
368
|
-
u,
|
|
369
|
-
o
|
|
370
|
-
][d] * 255),
|
|
371
|
-
g: K([
|
|
372
|
-
u,
|
|
373
|
-
o,
|
|
374
|
-
o,
|
|
375
|
-
l,
|
|
376
|
-
c,
|
|
377
|
-
c
|
|
378
|
-
][d] * 255),
|
|
379
|
-
b: K([
|
|
380
|
-
c,
|
|
381
|
-
c,
|
|
382
|
-
u,
|
|
383
|
-
o,
|
|
384
|
-
o,
|
|
385
|
-
l
|
|
386
|
-
][d] * 255),
|
|
387
|
-
a: K(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}, ${K(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}%, ${K(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 = p((e) => {
|
|
428
|
-
let { value: t, onChange: n, onChangeEnd: i, color: a, ...o } = d("HueSlider", De, e);
|
|
429
|
-
return /* @__PURE__ */ N(Q, {
|
|
430
|
-
...o,
|
|
431
|
-
value: t,
|
|
432
|
-
onChange: n,
|
|
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 ${r(1)} inset, rgb(0, 0, 0, .15) 0 0 ${r(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 } = D(he), [f, p] = j({
|
|
446
|
-
x: r.s / 100,
|
|
447
|
-
y: 1 - r.v / 100
|
|
448
|
-
}), m = A(f), { ref: _ } = g(({ x: e, y: n }) => {
|
|
449
|
-
m.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 } = m.current;
|
|
459
|
-
n({
|
|
460
|
-
s: Math.round(e * 100),
|
|
461
|
-
v: Math.round((1 - t) * 100)
|
|
462
|
-
}), l?.();
|
|
463
|
-
},
|
|
464
|
-
onScrubStart: c
|
|
465
|
-
});
|
|
466
|
-
k(() => {
|
|
467
|
-
p({
|
|
468
|
-
x: r.s / 100,
|
|
469
|
-
y: 1 - r.v / 100
|
|
470
|
-
});
|
|
471
|
-
}, [r.s, r.v]);
|
|
472
|
-
let v = (e, r) => {
|
|
473
|
-
e.preventDefault();
|
|
474
|
-
let i = ee(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
|
-
}, y = (e) => {
|
|
483
|
-
switch (e.key) {
|
|
484
|
-
case "ArrowUp":
|
|
485
|
-
v(e, {
|
|
486
|
-
y: f.y - .05,
|
|
487
|
-
x: f.x
|
|
488
|
-
});
|
|
489
|
-
break;
|
|
490
|
-
case "ArrowDown":
|
|
491
|
-
v(e, {
|
|
492
|
-
y: f.y + .05,
|
|
493
|
-
x: f.x
|
|
494
|
-
});
|
|
495
|
-
break;
|
|
496
|
-
case "ArrowRight":
|
|
497
|
-
v(e, {
|
|
498
|
-
x: f.x + .05,
|
|
499
|
-
y: f.y
|
|
500
|
-
});
|
|
501
|
-
break;
|
|
502
|
-
case "ArrowLeft":
|
|
503
|
-
v(e, {
|
|
504
|
-
x: f.x - .05,
|
|
505
|
-
y: f.y
|
|
506
|
-
});
|
|
507
|
-
break;
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
return /* @__PURE__ */ P(h, {
|
|
511
|
-
...d("saturation"),
|
|
512
|
-
ref: _,
|
|
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: y,
|
|
520
|
-
children: [
|
|
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
|
-
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: 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
|
-
...d.getStyles("swatch"),
|
|
537
|
-
unstyled: d.unstyled,
|
|
538
|
-
component: "button",
|
|
539
|
-
type: "button",
|
|
540
|
-
color: e,
|
|
541
|
-
key: n,
|
|
542
|
-
radius: "sm",
|
|
543
|
-
onClick: () => {
|
|
544
|
-
r(e), i?.(e);
|
|
545
|
-
},
|
|
546
|
-
"aria-label": e,
|
|
547
|
-
tabIndex: o ? 0 : -1,
|
|
548
|
-
"data-swatch": !0
|
|
549
|
-
}, l === e && /* @__PURE__ */ N(C, {
|
|
550
|
-
size: "35%",
|
|
551
|
-
color: t(e) < .5 ? "white" : "black"
|
|
552
|
-
})));
|
|
553
|
-
return /* @__PURE__ */ N(h, {
|
|
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 = n((e, { size: t, swatchesPerRow: n }) => ({ wrapper: {
|
|
569
|
-
"--cp-preview-size": i(t, "cp-preview-size"),
|
|
570
|
-
"--cp-width": i(t, "cp-width"),
|
|
571
|
-
"--cp-body-spacing": a(t),
|
|
572
|
-
"--cp-swatch-size": `${100 / n}%`,
|
|
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
|
-
props: t,
|
|
579
|
-
classes: _e,
|
|
580
|
-
className: r,
|
|
581
|
-
style: i,
|
|
582
|
-
classNames: n,
|
|
583
|
-
styles: a,
|
|
584
|
-
unstyled: o,
|
|
585
|
-
attributes: w,
|
|
586
|
-
rootSelector: "wrapper",
|
|
587
|
-
vars: s,
|
|
588
|
-
varsResolver: Me
|
|
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
|
-
defaultValue: f,
|
|
592
|
-
finalValue: "#FFFFFF",
|
|
593
|
-
onChange: p
|
|
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
|
-
}, 200);
|
|
600
|
-
}, q = (e) => {
|
|
601
|
-
U((t) => {
|
|
602
|
-
let n = {
|
|
603
|
-
...t,
|
|
604
|
-
...e
|
|
605
|
-
};
|
|
606
|
-
return F.current = $(k.current, n), n;
|
|
607
|
-
}), B(F.current);
|
|
608
|
-
};
|
|
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
|
-
value: {
|
|
615
|
-
getStyles: O,
|
|
616
|
-
unstyled: o
|
|
617
|
-
},
|
|
618
|
-
children: /* @__PURE__ */ P(h, {
|
|
619
|
-
...O("wrapper"),
|
|
620
|
-
size: _,
|
|
621
|
-
mod: [{ "full-width": re }, C],
|
|
622
|
-
...D,
|
|
623
|
-
children: [
|
|
624
|
-
T && /* @__PURE__ */ N("input", {
|
|
625
|
-
type: "hidden",
|
|
626
|
-
name: T,
|
|
627
|
-
value: z,
|
|
628
|
-
...E
|
|
629
|
-
}),
|
|
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
|
-
s: e,
|
|
636
|
-
v: t
|
|
637
|
-
})),
|
|
638
|
-
color: z,
|
|
639
|
-
size: _,
|
|
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
|
-
h: e
|
|
654
|
-
})),
|
|
655
|
-
size: _,
|
|
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
|
-
onChangeEnd: (e) => {
|
|
664
|
-
m?.($(k.current, {
|
|
665
|
-
...H,
|
|
666
|
-
a: e
|
|
667
|
-
}));
|
|
668
|
-
},
|
|
669
|
-
size: _,
|
|
670
|
-
color: $("hex", H),
|
|
671
|
-
focusable: S,
|
|
672
|
-
"aria-label": x,
|
|
673
|
-
onScrubStart: W,
|
|
674
|
-
onScrubEnd: K
|
|
675
|
-
})]
|
|
676
|
-
}), R && /* @__PURE__ */ N(G, {
|
|
677
|
-
color: z,
|
|
678
|
-
radius: "sm",
|
|
679
|
-
size: "var(--cp-preview-size)",
|
|
680
|
-
...O("preview")
|
|
681
|
-
})]
|
|
682
|
-
})] }),
|
|
683
|
-
Array.isArray(te) && /* @__PURE__ */ N(Ae, {
|
|
684
|
-
data: te,
|
|
685
|
-
swatchesPerRow: ne,
|
|
686
|
-
focusable: S,
|
|
687
|
-
setValue: B,
|
|
688
|
-
value: z,
|
|
689
|
-
onChangeEnd: (e) => {
|
|
690
|
-
let t = $(c, Z(e));
|
|
691
|
-
ie?.(t), m?.(t), V || U(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__ */ P("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__ */ N("path", {
|
|
718
|
-
stroke: "none",
|
|
719
|
-
d: "M0 0h24v24H0z",
|
|
720
|
-
fill: "none"
|
|
721
|
-
}),
|
|
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
|
-
]
|
|
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 = 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
|
-
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: z, resolvedStyles: V } = re({
|
|
767
|
-
classNames: n,
|
|
768
|
-
styles: r,
|
|
769
|
-
props: t
|
|
770
|
-
}), [H, U] = j(!1), [W, K] = j(""), [q, J] = v({
|
|
771
|
-
value: h,
|
|
772
|
-
defaultValue: g,
|
|
773
|
-
finalValue: "",
|
|
774
|
-
onChange: ee
|
|
775
|
-
}), { supported: oe, open: se } = B(), ce = /* @__PURE__ */ N(ae, {
|
|
776
|
-
...m,
|
|
777
|
-
...R("eyeDropperButton", {
|
|
778
|
-
className: m?.className,
|
|
779
|
-
style: m?.style
|
|
780
|
-
}),
|
|
781
|
-
variant: "subtle",
|
|
782
|
-
color: "gray",
|
|
783
|
-
unstyled: i,
|
|
784
|
-
onClick: () => se().then((e) => {
|
|
785
|
-
if (e?.sRGBHex) {
|
|
786
|
-
let t = $(w, Z(e.sRGBHex));
|
|
787
|
-
J(t), b?.(t);
|
|
788
|
-
}
|
|
789
|
-
}).catch(() => {}),
|
|
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
|
-
}, ue = (e) => {
|
|
796
|
-
S?.(e), U(!0);
|
|
797
|
-
};
|
|
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
|
-
__staticSelector: "ColorInput",
|
|
807
|
-
children: /* @__PURE__ */ P(_, {
|
|
808
|
-
__staticSelector: "ColorInput",
|
|
809
|
-
position: "bottom-start",
|
|
810
|
-
offset: 5,
|
|
811
|
-
opened: H,
|
|
812
|
-
...s,
|
|
813
|
-
classNames: z,
|
|
814
|
-
styles: V,
|
|
815
|
-
unstyled: i,
|
|
816
|
-
withRoles: !1,
|
|
817
|
-
disabled: E || D === !1 && (!Array.isArray(O) || O.length === 0),
|
|
818
|
-
children: [/* @__PURE__ */ N(_.Target, { children: /* @__PURE__ */ N(x, {
|
|
819
|
-
autoComplete: "off",
|
|
820
|
-
...L,
|
|
821
|
-
...C,
|
|
822
|
-
classNames: z,
|
|
823
|
-
styles: V,
|
|
824
|
-
disabled: A,
|
|
825
|
-
__staticSelector: "ColorInput",
|
|
826
|
-
onFocus: le,
|
|
827
|
-
onBlur: Y,
|
|
828
|
-
onClick: ue,
|
|
829
|
-
spellCheck: !1,
|
|
830
|
-
value: q,
|
|
831
|
-
onChange: (e) => {
|
|
832
|
-
let t = e.currentTarget.value;
|
|
833
|
-
J(t), X(t) && b?.($(w, Z(t)));
|
|
834
|
-
},
|
|
835
|
-
leftSection: M || (c ? /* @__PURE__ */ N(G, {
|
|
836
|
-
color: X(q) ? q : "#fff",
|
|
837
|
-
size: "var(--ci-preview-size)",
|
|
838
|
-
...R("colorPreview")
|
|
839
|
-
}) : null),
|
|
840
|
-
readOnly: a || E,
|
|
841
|
-
pointer: a,
|
|
842
|
-
unstyled: i,
|
|
843
|
-
rightSection: F || (u && !A && !E && oe ? ce : null)
|
|
844
|
-
}) }), /* @__PURE__ */ N(_.Dropdown, {
|
|
845
|
-
onMouseDown: (e) => e.preventDefault(),
|
|
846
|
-
className: Fe.dropdown,
|
|
847
|
-
children: /* @__PURE__ */ N(Ne, {
|
|
848
|
-
__staticSelector: "ColorInput",
|
|
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
|
-
focusable: !1,
|
|
858
|
-
unstyled: i,
|
|
859
|
-
styles: V,
|
|
860
|
-
classNames: z,
|
|
861
|
-
onColorSwatchClick: () => p && U(!1),
|
|
862
|
-
attributes: T.attributes
|
|
863
|
-
})
|
|
864
|
-
})]
|
|
865
|
-
})
|
|
866
|
-
});
|
|
867
|
-
});
|
|
868
|
-
Re.classes = S.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" ? 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
|
-
query: `(min-width: ${l.breakpoints[e.value]})`,
|
|
885
|
-
styles: h[e.value]
|
|
886
|
-
})),
|
|
887
|
-
selector: c
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
function Ve(e) {
|
|
891
|
-
return typeof e == "object" && e ? s(e) : [];
|
|
892
|
-
}
|
|
893
|
-
function He(e) {
|
|
894
|
-
return e.sort((e, t) => I(e) - I(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: 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
|
-
}), d = Ue({
|
|
910
|
-
spacing: e,
|
|
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
|
-
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 = 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
|
-
name: "SimpleGrid",
|
|
936
|
-
classes: Ge,
|
|
937
|
-
props: t,
|
|
938
|
-
className: r,
|
|
939
|
-
style: i,
|
|
940
|
-
classNames: n,
|
|
941
|
-
styles: a,
|
|
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
|
-
...t,
|
|
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
|
-
})
|
|
956
|
-
})] }) : /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(Be, {
|
|
957
|
-
...t,
|
|
958
|
-
selector: `.${x}`
|
|
959
|
-
}), /* @__PURE__ */ N(h, {
|
|
960
|
-
...b("root", { className: x }),
|
|
961
|
-
...y,
|
|
962
|
-
"data-auto-cols": S
|
|
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__ */ P("div", {
|
|
972
|
-
className: Je.root,
|
|
973
|
-
children: [/* @__PURE__ */ N("div", {
|
|
974
|
-
className: Je.colorRow,
|
|
975
|
-
children: w.map((n) => /* @__PURE__ */ N(ie, {
|
|
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__ */ N(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, I as r, Ye as t };
|