@yourbestsoft/studio-screen-ui-kit 0.0.3 → 0.0.4
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/ToolIconButton-mUJN5Mev.js +525 -0
- package/dist/ToolIconButton-mUJN5Mev.js.map +1 -0
- package/dist/components/theme-switcher/ThemeSwitcher.d.ts +1 -6
- package/dist/index.js +163 -163
- package/dist/index.js.map +1 -1
- package/dist/index2.js +60 -77
- package/dist/index2.js.map +1 -1
- package/package.json +1 -1
- package/dist/ToolIconButton-CH5GeW9N.js +0 -500
- package/dist/ToolIconButton-CH5GeW9N.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { D as H, B as F } from "./ToolIconButton-
|
|
2
|
-
import { a as
|
|
3
|
-
import { jsx as s, jsxs as g, Fragment as
|
|
1
|
+
import { D as H, B as F, u as J } from "./ToolIconButton-mUJN5Mev.js";
|
|
2
|
+
import { a as an, d as ln, b as rn, c as dn, C as hn, e as _n, g as un, S as mn, h as pn, T as gn, i as fn, j as yn, f as kn } from "./ToolIconButton-mUJN5Mev.js";
|
|
3
|
+
import { jsx as s, jsxs as g, Fragment as Q } from "react/jsx-runtime";
|
|
4
4
|
import m from "classnames";
|
|
5
5
|
import { useState as k, useEffect as K, useCallback as M, useRef as G } from "react";
|
|
6
|
-
import { ClipboardCopy as
|
|
7
|
-
const
|
|
8
|
-
buttonGroup:
|
|
9
|
-
button:
|
|
10
|
-
label:
|
|
11
|
-
single:
|
|
12
|
-
first:
|
|
13
|
-
last:
|
|
14
|
-
selected:
|
|
15
|
-
},
|
|
6
|
+
import { ClipboardCopy as X, ChevronLeft as Y, ChevronRight as Z, ChevronDown as ee, Sun as te, Moon as ne, Computer as oe } from "lucide-react";
|
|
7
|
+
const se = "_buttonGroup_ejhd6_1", ce = "_button_ejhd6_1", ae = "_label_ejhd6_37", le = "_single_ejhd6_42", ie = "_first_ejhd6_46", re = "_last_ejhd6_50", de = "_selected_ejhd6_54", B = {
|
|
8
|
+
buttonGroup: se,
|
|
9
|
+
button: ce,
|
|
10
|
+
label: ae,
|
|
11
|
+
single: le,
|
|
12
|
+
first: ie,
|
|
13
|
+
last: re,
|
|
14
|
+
selected: de
|
|
15
|
+
}, Jt = ({ buttons: n, className: o }) => /* @__PURE__ */ s("div", { className: m(B.buttonGroup, o), children: n.map((t, e) => {
|
|
16
16
|
const a = n.length === 1, l = e === 0 && !a, c = e === n.length - 1 && !a;
|
|
17
17
|
return /* @__PURE__ */ g(
|
|
18
18
|
"button",
|
|
@@ -33,35 +33,35 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
33
33
|
},
|
|
34
34
|
e
|
|
35
35
|
);
|
|
36
|
-
}) }),
|
|
36
|
+
}) }), he = (n, o, t, e) => [
|
|
37
37
|
Math.min(255, Math.round(n + (255 - n) * e)),
|
|
38
38
|
Math.min(255, Math.round(o + (255 - o) * e)),
|
|
39
39
|
Math.min(255, Math.round(t + (255 - t) * e))
|
|
40
40
|
], O = (n, o) => {
|
|
41
41
|
if (o === 5 || n === "transparent" || n === "#ffffff" || n === "#1e1e1e")
|
|
42
42
|
return n;
|
|
43
|
-
const [t, e, a] = q(n), l = (5 - o) * 0.2, [c, i, h] =
|
|
44
|
-
return
|
|
43
|
+
const [t, e, a] = q(n), l = (5 - o) * 0.2, [c, i, h] = he(t, e, a, l);
|
|
44
|
+
return _e(c, i, h);
|
|
45
45
|
}, q = (n) => {
|
|
46
46
|
const o = n.replace("#", ""), t = parseInt(o, 16);
|
|
47
47
|
return [t >> 16 & 255, t >> 8 & 255, t & 255];
|
|
48
|
-
},
|
|
48
|
+
}, _e = (n, o, t) => "#" + [n, o, t].map((e) => {
|
|
49
49
|
const a = e.toString(16);
|
|
50
50
|
return a.length === 1 ? "0" + a : a;
|
|
51
|
-
}).join(""),
|
|
51
|
+
}).join(""), ue = (n) => {
|
|
52
52
|
if (n === "transparent")
|
|
53
53
|
return "#000";
|
|
54
54
|
const [o, t, e] = q(n);
|
|
55
55
|
return (o * 299 + t * 587 + e * 114) / 1e3 > 128 ? "#000" : "#fff";
|
|
56
|
-
},
|
|
57
|
-
colorButton:
|
|
58
|
-
hotkey:
|
|
59
|
-
selected:
|
|
60
|
-
disabled:
|
|
61
|
-
transparent:
|
|
62
|
-
small:
|
|
63
|
-
medium:
|
|
64
|
-
large:
|
|
56
|
+
}, me = "_colorButton_wldf2_1", pe = "_hotkey_wldf2_22", ge = "_selected_wldf2_26", fe = "_disabled_wldf2_33", ye = "_transparent_wldf2_41", ke = "_small_wldf2_46", be = "_medium_wldf2_52", ve = "_large_wldf2_58", I = {
|
|
57
|
+
colorButton: me,
|
|
58
|
+
hotkey: pe,
|
|
59
|
+
selected: ge,
|
|
60
|
+
disabled: fe,
|
|
61
|
+
transparent: ye,
|
|
62
|
+
small: ke,
|
|
63
|
+
medium: be,
|
|
64
|
+
large: ve
|
|
65
65
|
}, P = (n) => {
|
|
66
66
|
const {
|
|
67
67
|
className: o,
|
|
@@ -86,14 +86,14 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
86
86
|
style: { "--swatch-color": t },
|
|
87
87
|
disabled: e,
|
|
88
88
|
...i,
|
|
89
|
-
children: /* @__PURE__ */ s("p", { className: I.hotkey, style: { color:
|
|
89
|
+
children: /* @__PURE__ */ s("p", { className: I.hotkey, style: { color: ue(t) }, children: a })
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
|
-
},
|
|
93
|
-
content:
|
|
94
|
-
section:
|
|
95
|
-
title:
|
|
96
|
-
},
|
|
92
|
+
}, we = "_content_1ybrq_1", Ce = "_section_1ybrq_11", Ne = "_title_1ybrq_17", S = {
|
|
93
|
+
content: we,
|
|
94
|
+
section: Ce,
|
|
95
|
+
title: Ne
|
|
96
|
+
}, xe = [
|
|
97
97
|
{
|
|
98
98
|
color: "transparent",
|
|
99
99
|
hotkey: "q",
|
|
@@ -169,7 +169,7 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
169
169
|
hotkey: "b",
|
|
170
170
|
name: "red"
|
|
171
171
|
}
|
|
172
|
-
],
|
|
172
|
+
], Be = ({
|
|
173
173
|
colors: n,
|
|
174
174
|
selectedColor: o,
|
|
175
175
|
selectedShadeIndex: t
|
|
@@ -181,7 +181,7 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
181
181
|
index: o?.index ?? 0
|
|
182
182
|
})), r = (_) => {
|
|
183
183
|
const u = j(n, _);
|
|
184
|
-
console.log(u), c(u), h(
|
|
184
|
+
console.log(u), c(u), h(Se(u, i));
|
|
185
185
|
}, d = (_, u = 999) => {
|
|
186
186
|
h({ ...W(_, e), index: u });
|
|
187
187
|
};
|
|
@@ -197,10 +197,10 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
197
197
|
}, W = (n, o) => ({
|
|
198
198
|
...n,
|
|
199
199
|
color: O(n.color, o)
|
|
200
|
-
}), j = (n, o) => n.map((t) => W(t, o)),
|
|
200
|
+
}), j = (n, o) => n.map((t) => W(t, o)), Se = (n, o) => ({
|
|
201
201
|
...n[o.index] ?? n[0],
|
|
202
202
|
index: o.index ?? 0
|
|
203
|
-
}),
|
|
203
|
+
}), Ie = ({
|
|
204
204
|
onSelect: n,
|
|
205
205
|
options: o,
|
|
206
206
|
selectedId: t
|
|
@@ -261,7 +261,7 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
261
261
|
selectedItem: i,
|
|
262
262
|
setIsOpen: a
|
|
263
263
|
};
|
|
264
|
-
},
|
|
264
|
+
}, Te = (n) => {
|
|
265
265
|
K(() => {
|
|
266
266
|
const o = (t) => {
|
|
267
267
|
n.forEach((e) => e(t));
|
|
@@ -270,9 +270,9 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
270
270
|
window.removeEventListener("keydown", o);
|
|
271
271
|
};
|
|
272
272
|
}, [n]);
|
|
273
|
-
},
|
|
273
|
+
}, Le = (n) => {
|
|
274
274
|
const { palette: o, setActiveColorHandler: t, setActiveShade: e } = n;
|
|
275
|
-
|
|
275
|
+
Te([(c) => {
|
|
276
276
|
if (c.shiftKey && c.code.startsWith("Digit")) {
|
|
277
277
|
const i = parseInt(c.code.replace("Digit", ""), 10);
|
|
278
278
|
i >= 1 && i <= 5 && e(i);
|
|
@@ -283,13 +283,13 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
283
283
|
), r = o[h];
|
|
284
284
|
h !== -1 && t(r, h);
|
|
285
285
|
}]);
|
|
286
|
-
},
|
|
287
|
-
iconButton:
|
|
288
|
-
primary:
|
|
289
|
-
secondary:
|
|
290
|
-
transparent:
|
|
291
|
-
selected:
|
|
292
|
-
disabled:
|
|
286
|
+
}, Ke = "_iconButton_yk1r1_14", Re = "_primary_yk1r1_34", $e = "_secondary_yk1r1_46", ze = "_transparent_yk1r1_54", He = "_selected_yk1r1_65", Me = "_disabled_yk1r1_74", R = {
|
|
287
|
+
iconButton: Ke,
|
|
288
|
+
primary: Re,
|
|
289
|
+
secondary: $e,
|
|
290
|
+
transparent: ze,
|
|
291
|
+
selected: He,
|
|
292
|
+
disabled: Me
|
|
293
293
|
}, T = (n) => {
|
|
294
294
|
const {
|
|
295
295
|
className: o,
|
|
@@ -314,17 +314,17 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
314
314
|
children: e
|
|
315
315
|
}
|
|
316
316
|
);
|
|
317
|
-
},
|
|
318
|
-
hexInput:
|
|
319
|
-
inputContainer:
|
|
320
|
-
hash:
|
|
321
|
-
input:
|
|
322
|
-
error:
|
|
323
|
-
copyButton:
|
|
324
|
-
slot:
|
|
325
|
-
copiedMessage:
|
|
326
|
-
fadeInOut:
|
|
327
|
-
},
|
|
317
|
+
}, Ae = "_hexInput_x3rtz_1", De = "_inputContainer_x3rtz_11", Ve = "_hash_x3rtz_18", Pe = "_input_x3rtz_11", je = "_error_x3rtz_39", Ee = "_copyButton_x3rtz_42", Fe = "_slot_x3rtz_48", Ge = "_copiedMessage_x3rtz_55", Oe = "_fadeInOut_x3rtz_1", w = {
|
|
318
|
+
hexInput: Ae,
|
|
319
|
+
inputContainer: De,
|
|
320
|
+
hash: Ve,
|
|
321
|
+
input: Pe,
|
|
322
|
+
error: je,
|
|
323
|
+
copyButton: Ee,
|
|
324
|
+
slot: Fe,
|
|
325
|
+
copiedMessage: Ge,
|
|
326
|
+
fadeInOut: Oe
|
|
327
|
+
}, qe = (n) => {
|
|
328
328
|
const {
|
|
329
329
|
children: o,
|
|
330
330
|
className: t,
|
|
@@ -349,7 +349,7 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
349
349
|
/* @__PURE__ */ s(
|
|
350
350
|
T,
|
|
351
351
|
{
|
|
352
|
-
icon: /* @__PURE__ */ s(
|
|
352
|
+
icon: /* @__PURE__ */ s(X, {}),
|
|
353
353
|
onClick: f,
|
|
354
354
|
className: w.copyButton
|
|
355
355
|
}
|
|
@@ -375,13 +375,13 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
375
375
|
r && /* @__PURE__ */ s("div", { className: w.copiedMessage, children: /* @__PURE__ */ s("span", { children: "Copied!" }) }),
|
|
376
376
|
o && /* @__PURE__ */ s("div", { className: w.slot, children: o })
|
|
377
377
|
] });
|
|
378
|
-
},
|
|
379
|
-
colorsList:
|
|
380
|
-
},
|
|
378
|
+
}, We = "_colorsList_1brrj_1", Ue = {
|
|
379
|
+
colorsList: We
|
|
380
|
+
}, Je = ({
|
|
381
381
|
activeColor: n,
|
|
382
382
|
palette: o,
|
|
383
383
|
setActiveColorHandler: t
|
|
384
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
384
|
+
}) => /* @__PURE__ */ s("div", { className: Ue.colorsList, children: o.map((e, a) => /* @__PURE__ */ s(
|
|
385
385
|
P,
|
|
386
386
|
{
|
|
387
387
|
color: e.color,
|
|
@@ -391,10 +391,10 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
391
391
|
size: "large"
|
|
392
392
|
},
|
|
393
393
|
e.name
|
|
394
|
-
)) }),
|
|
395
|
-
shadowList:
|
|
396
|
-
shadowText:
|
|
397
|
-
},
|
|
394
|
+
)) }), Qe = "_shadowList_1srdv_1", Xe = "_shadowText_1srdv_6", E = {
|
|
395
|
+
shadowList: Qe,
|
|
396
|
+
shadowText: Xe
|
|
397
|
+
}, Ye = ({
|
|
398
398
|
activeColor: n,
|
|
399
399
|
activeShade: o,
|
|
400
400
|
colors: t,
|
|
@@ -414,15 +414,15 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
414
414
|
},
|
|
415
415
|
c
|
|
416
416
|
)) });
|
|
417
|
-
},
|
|
418
|
-
const { changeColor: o, colors: t, selectedColor: e, selectedShadeIndex: a = 5 } = n, l =
|
|
417
|
+
}, Qt = (n) => {
|
|
418
|
+
const { changeColor: o, colors: t, selectedColor: e, selectedShadeIndex: a = 5 } = n, l = xe || t, {
|
|
419
419
|
activeColor: c,
|
|
420
420
|
activeShade: i,
|
|
421
421
|
palette: h,
|
|
422
422
|
setActiveColorHandler: r,
|
|
423
423
|
setActiveShade: d
|
|
424
|
-
} =
|
|
425
|
-
return
|
|
424
|
+
} = Be({ colors: l, selectedColor: e, selectedShadeIndex: a });
|
|
425
|
+
return Le({
|
|
426
426
|
palette: h,
|
|
427
427
|
setActiveColorHandler: r,
|
|
428
428
|
setActiveShade: d
|
|
@@ -432,7 +432,7 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
432
432
|
/* @__PURE__ */ g("div", { className: S.section, children: [
|
|
433
433
|
/* @__PURE__ */ s("h3", { className: S.title, children: "Colors" }),
|
|
434
434
|
/* @__PURE__ */ s(
|
|
435
|
-
|
|
435
|
+
Je,
|
|
436
436
|
{
|
|
437
437
|
palette: h,
|
|
438
438
|
activeColor: c,
|
|
@@ -445,7 +445,7 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
445
445
|
/* @__PURE__ */ g("div", { className: S.section, children: [
|
|
446
446
|
/* @__PURE__ */ s("h3", { className: S.title, children: "Shades" }),
|
|
447
447
|
/* @__PURE__ */ s(
|
|
448
|
-
|
|
448
|
+
Ye,
|
|
449
449
|
{
|
|
450
450
|
colors: l,
|
|
451
451
|
activeShade: i,
|
|
@@ -457,7 +457,7 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
457
457
|
/* @__PURE__ */ g("div", { className: S.section, children: [
|
|
458
458
|
/* @__PURE__ */ s("h3", { className: S.title, children: "Hex code" }),
|
|
459
459
|
/* @__PURE__ */ s(
|
|
460
|
-
|
|
460
|
+
qe,
|
|
461
461
|
{
|
|
462
462
|
color: c.color,
|
|
463
463
|
onChange: (_) => {
|
|
@@ -468,11 +468,11 @@ const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37
|
|
|
468
468
|
] })
|
|
469
469
|
] })
|
|
470
470
|
] });
|
|
471
|
-
},
|
|
472
|
-
pagination:
|
|
473
|
-
pages:
|
|
471
|
+
}, Ze = "_pagination_3kmd4_1", et = "_pages_3kmd4_13", $ = {
|
|
472
|
+
pagination: Ze,
|
|
473
|
+
pages: et
|
|
474
474
|
};
|
|
475
|
-
function
|
|
475
|
+
function tt({
|
|
476
476
|
boundaryCount: n,
|
|
477
477
|
currentPage: o,
|
|
478
478
|
siblingCount: t,
|
|
@@ -493,14 +493,14 @@ function et({
|
|
|
493
493
|
l.push(d);
|
|
494
494
|
return r < e - n && l.push("..."), l.push(...i), l;
|
|
495
495
|
}
|
|
496
|
-
const
|
|
496
|
+
const Xt = (n) => {
|
|
497
497
|
const {
|
|
498
498
|
boundaryCount: o = 2,
|
|
499
499
|
currentPage: t,
|
|
500
500
|
onPageChange: e,
|
|
501
501
|
siblingCount: a = 1,
|
|
502
502
|
totalPages: l
|
|
503
|
-
} = n, c =
|
|
503
|
+
} = n, c = tt({
|
|
504
504
|
boundaryCount: o,
|
|
505
505
|
currentPage: t,
|
|
506
506
|
siblingCount: a,
|
|
@@ -516,7 +516,7 @@ const Qt = (n) => {
|
|
|
516
516
|
{
|
|
517
517
|
onClick: i,
|
|
518
518
|
disabled: t === 1,
|
|
519
|
-
icon: /* @__PURE__ */ s(
|
|
519
|
+
icon: /* @__PURE__ */ s(Y, { size: 16 }),
|
|
520
520
|
variants: "transparent"
|
|
521
521
|
}
|
|
522
522
|
),
|
|
@@ -535,30 +535,30 @@ const Qt = (n) => {
|
|
|
535
535
|
onClick: h,
|
|
536
536
|
disabled: t === l,
|
|
537
537
|
className: $.nextButton,
|
|
538
|
-
icon: /* @__PURE__ */ s(
|
|
538
|
+
icon: /* @__PURE__ */ s(Z, { size: 16 }),
|
|
539
539
|
variants: "transparent"
|
|
540
540
|
}
|
|
541
541
|
)
|
|
542
542
|
] });
|
|
543
|
-
},
|
|
544
|
-
selectContainer:
|
|
545
|
-
selectButton:
|
|
546
|
-
selectIcon:
|
|
547
|
-
selectIconOpen:
|
|
548
|
-
selectMenu:
|
|
549
|
-
positionBottomRight:
|
|
550
|
-
positionBottomLeft:
|
|
551
|
-
positionTopRight:
|
|
552
|
-
positionTopLeft:
|
|
553
|
-
positionRight:
|
|
554
|
-
positionLeft:
|
|
555
|
-
positionBottom:
|
|
556
|
-
positionTop:
|
|
557
|
-
menuItem:
|
|
558
|
-
menuItemSelected:
|
|
559
|
-
menuItemHover:
|
|
560
|
-
menuItemHighlighted:
|
|
561
|
-
},
|
|
543
|
+
}, nt = "_selectContainer_1kdni_1", ot = "_selectButton_1kdni_5", st = "_selectIcon_1kdni_10", ct = "_selectIconOpen_1kdni_14", at = "_selectMenu_1kdni_18", lt = "_positionBottomRight_1kdni_44", it = "_positionBottomLeft_1kdni_50", rt = "_positionTopRight_1kdni_56", dt = "_positionTopLeft_1kdni_62", ht = "_positionRight_1kdni_68", _t = "_positionLeft_1kdni_74", ut = "_positionBottom_1kdni_44", mt = "_positionTop_1kdni_56", pt = "_menuItem_1kdni_92", gt = "_menuItemSelected_1kdni_102", ft = "_menuItemHover_1kdni_106", yt = "_menuItemHighlighted_1kdni_110", p = {
|
|
544
|
+
selectContainer: nt,
|
|
545
|
+
selectButton: ot,
|
|
546
|
+
selectIcon: st,
|
|
547
|
+
selectIconOpen: ct,
|
|
548
|
+
selectMenu: at,
|
|
549
|
+
positionBottomRight: lt,
|
|
550
|
+
positionBottomLeft: it,
|
|
551
|
+
positionTopRight: rt,
|
|
552
|
+
positionTopLeft: dt,
|
|
553
|
+
positionRight: ht,
|
|
554
|
+
positionLeft: _t,
|
|
555
|
+
positionBottom: ut,
|
|
556
|
+
positionTop: mt,
|
|
557
|
+
menuItem: pt,
|
|
558
|
+
menuItemSelected: gt,
|
|
559
|
+
menuItemHover: ft,
|
|
560
|
+
menuItemHighlighted: yt
|
|
561
|
+
}, Yt = ({
|
|
562
562
|
fullWidth: n = !0,
|
|
563
563
|
onSelect: o,
|
|
564
564
|
options: t,
|
|
@@ -578,7 +578,7 @@ const Qt = (n) => {
|
|
|
578
578
|
isOpen: y,
|
|
579
579
|
selectedItem: N,
|
|
580
580
|
setIsOpen: v
|
|
581
|
-
} =
|
|
581
|
+
} = Ie({ onSelect: o, options: t, selectedId: a });
|
|
582
582
|
K(() => {
|
|
583
583
|
const x = (z) => {
|
|
584
584
|
d.current && !d.current.contains(z.target) && f();
|
|
@@ -620,7 +620,7 @@ const Qt = (n) => {
|
|
|
620
620
|
children: [
|
|
621
621
|
/* @__PURE__ */ s("span", { children: N?.label || h }),
|
|
622
622
|
/* @__PURE__ */ s(
|
|
623
|
-
|
|
623
|
+
ee,
|
|
624
624
|
{
|
|
625
625
|
size: 20,
|
|
626
626
|
className: m(p.selectIcon, {
|
|
@@ -650,39 +650,39 @@ const Qt = (n) => {
|
|
|
650
650
|
]
|
|
651
651
|
}
|
|
652
652
|
);
|
|
653
|
-
},
|
|
654
|
-
groupTitle:
|
|
655
|
-
list:
|
|
656
|
-
item:
|
|
657
|
-
itemKeysVariants:
|
|
658
|
-
itemKeysSeparator:
|
|
659
|
-
itemDescription:
|
|
660
|
-
itemKey:
|
|
661
|
-
},
|
|
653
|
+
}, kt = "_groupTitle_eelpn_23", bt = "_list_eelpn_30", vt = "_item_eelpn_35", wt = "_itemKeysVariants_eelpn_45", Ct = "_itemKeysSeparator_eelpn_50", Nt = "_itemDescription_eelpn_54", xt = "_itemKey_eelpn_45", C = {
|
|
654
|
+
groupTitle: kt,
|
|
655
|
+
list: bt,
|
|
656
|
+
item: vt,
|
|
657
|
+
itemKeysVariants: wt,
|
|
658
|
+
itemKeysSeparator: Ct,
|
|
659
|
+
itemDescription: Nt,
|
|
660
|
+
itemKey: xt
|
|
661
|
+
}, Bt = (n) => {
|
|
662
662
|
const { children: o, className: t, title: e } = n;
|
|
663
663
|
return /* @__PURE__ */ g("div", { className: m(C.group, t), children: [
|
|
664
664
|
/* @__PURE__ */ s("h4", { className: C.groupTitle, children: e }),
|
|
665
665
|
o
|
|
666
666
|
] });
|
|
667
|
-
},
|
|
667
|
+
}, St = (n) => {
|
|
668
668
|
const { children: o, className: t } = n;
|
|
669
669
|
return /* @__PURE__ */ s("div", { className: m(C.list, t), children: o });
|
|
670
|
-
},
|
|
670
|
+
}, It = (n) => {
|
|
671
671
|
const { className: o, description: t, keysVariants: e } = n, a = (l) => l.map((c, i) => /* @__PURE__ */ s("span", { className: C.itemKey, children: c }, i));
|
|
672
672
|
return /* @__PURE__ */ g("div", { className: m(C.item, o), children: [
|
|
673
673
|
/* @__PURE__ */ s("div", { className: C.itemDescription, children: t }),
|
|
674
674
|
/* @__PURE__ */ s("div", { className: C.itemKeysVariants, children: e.map(
|
|
675
|
-
(l, c) => c === 0 ? a(l) : /* @__PURE__ */ g(
|
|
675
|
+
(l, c) => c === 0 ? a(l) : /* @__PURE__ */ g(Q, { children: [
|
|
676
676
|
/* @__PURE__ */ s("span", { className: C.itemKeysSeparator, children: "or" }),
|
|
677
677
|
a(l)
|
|
678
678
|
] })
|
|
679
679
|
) })
|
|
680
680
|
] });
|
|
681
|
-
},
|
|
681
|
+
}, Zt = { Group: Bt, Item: It, List: St }, Tt = "_slider_1b9o2_1", Lt = "_focused_1b9o2_37", A = {
|
|
682
682
|
"slider-container": "_slider-container_1b9o2_1",
|
|
683
|
-
slider:
|
|
684
|
-
focused:
|
|
685
|
-
},
|
|
683
|
+
slider: Tt,
|
|
684
|
+
focused: Lt
|
|
685
|
+
}, en = (n) => {
|
|
686
686
|
const { initialValue: o = 50, max: t = 100, min: e = 0, onChange: a, step: l = 1 } = n, [c, i] = k(o), [h, r] = k(!1), d = G(null), _ = (N) => {
|
|
687
687
|
const v = Number(N.target.value);
|
|
688
688
|
i(v), a && a(v);
|
|
@@ -711,16 +711,16 @@ const Qt = (n) => {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
) });
|
|
714
|
-
},
|
|
715
|
-
themeSwitcher:
|
|
716
|
-
themeButton:
|
|
717
|
-
background:
|
|
718
|
-
selectedButton:
|
|
719
|
-
},
|
|
720
|
-
const t = [
|
|
721
|
-
{ icon: /* @__PURE__ */ s(
|
|
722
|
-
{ icon: /* @__PURE__ */ s(
|
|
723
|
-
{ icon: /* @__PURE__ */ s(
|
|
714
|
+
}, Kt = "_themeSwitcher_11ggx_18", Rt = "_themeButton_11ggx_27", $t = "_background_11ggx_31", zt = "_selectedButton_11ggx_42", D = {
|
|
715
|
+
themeSwitcher: Kt,
|
|
716
|
+
themeButton: Rt,
|
|
717
|
+
background: $t,
|
|
718
|
+
selectedButton: zt
|
|
719
|
+
}, tn = () => {
|
|
720
|
+
const { setTheme: n, theme: o } = J(), t = [
|
|
721
|
+
{ icon: /* @__PURE__ */ s(te, {}), label: "Light", value: "light" },
|
|
722
|
+
{ icon: /* @__PURE__ */ s(ne, {}), label: "Dark", value: "dark" },
|
|
723
|
+
{ icon: /* @__PURE__ */ s(oe, {}), label: "System", value: "system" }
|
|
724
724
|
];
|
|
725
725
|
return /* @__PURE__ */ s("div", { className: D.themeSwitcher, children: t.map((e) => /* @__PURE__ */ s(
|
|
726
726
|
T,
|
|
@@ -737,11 +737,11 @@ const Qt = (n) => {
|
|
|
737
737
|
},
|
|
738
738
|
e.value
|
|
739
739
|
)) });
|
|
740
|
-
},
|
|
741
|
-
toggleSwitch:
|
|
742
|
-
button:
|
|
743
|
-
selected:
|
|
744
|
-
},
|
|
740
|
+
}, Ht = "_toggleSwitch_1w0s9_14", Mt = "_button_1w0s9_24", At = "_selected_1w0s9_41", L = {
|
|
741
|
+
toggleSwitch: Ht,
|
|
742
|
+
button: Mt,
|
|
743
|
+
selected: At
|
|
744
|
+
}, nn = (n) => {
|
|
745
745
|
const { defaultValue: o, options: t, ...e } = n, [a, l] = k(
|
|
746
746
|
o || t[0].value
|
|
747
747
|
), c = (i) => {
|
|
@@ -775,12 +775,12 @@ const Qt = (n) => {
|
|
|
775
775
|
..._
|
|
776
776
|
}
|
|
777
777
|
)) });
|
|
778
|
-
},
|
|
779
|
-
toolbar:
|
|
780
|
-
separator:
|
|
781
|
-
vertical:
|
|
782
|
-
horizontal:
|
|
783
|
-
},
|
|
778
|
+
}, Dt = "_toolbar_18q11_1", Vt = "_separator_18q11_11", Pt = "_vertical_18q11_16", jt = "_horizontal_18q11_28", V = {
|
|
779
|
+
toolbar: Dt,
|
|
780
|
+
separator: Vt,
|
|
781
|
+
vertical: Pt,
|
|
782
|
+
horizontal: jt
|
|
783
|
+
}, Et = (n) => {
|
|
784
784
|
const { children: o, className: t, direction: e = "horizontal" } = n;
|
|
785
785
|
return /* @__PURE__ */ s(
|
|
786
786
|
"div",
|
|
@@ -789,33 +789,33 @@ const Qt = (n) => {
|
|
|
789
789
|
children: o
|
|
790
790
|
}
|
|
791
791
|
);
|
|
792
|
-
},
|
|
792
|
+
}, Ft = ({}) => /* @__PURE__ */ s("div", { className: V.separator }), on = { Root: Et, Separator: Ft };
|
|
793
793
|
export {
|
|
794
794
|
F as Button,
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
795
|
+
an as ButtonRender,
|
|
796
|
+
Jt as ButtonsGroup,
|
|
797
|
+
ln as Card,
|
|
798
|
+
rn as CardContent,
|
|
799
|
+
dn as CardHeader,
|
|
800
|
+
hn as CardRoot,
|
|
801
801
|
P as ColorButton,
|
|
802
|
-
|
|
803
|
-
|
|
802
|
+
Qt as ColorPicker,
|
|
803
|
+
_n as Dialog,
|
|
804
804
|
H as DropDown,
|
|
805
805
|
T as IconButton,
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
806
|
+
Xt as Pagination,
|
|
807
|
+
Yt as Select,
|
|
808
|
+
Zt as Shortcut,
|
|
809
|
+
un as Sidebar,
|
|
810
|
+
mn as SidebarContext,
|
|
811
|
+
en as Slider,
|
|
812
|
+
pn as SwitcherButtons,
|
|
813
|
+
gn as Table,
|
|
814
|
+
fn as TextField,
|
|
815
|
+
tn as ThemeSwitcher,
|
|
816
|
+
nn as ToggleSwitch,
|
|
817
|
+
yn as ToolIconButton,
|
|
818
|
+
on as Toolbar,
|
|
819
|
+
kn as useSidebarContext
|
|
820
820
|
};
|
|
821
821
|
//# sourceMappingURL=index.js.map
|