@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/index.js CHANGED
@@ -1,18 +1,18 @@
1
- import { D as H, B as F } from "./ToolIconButton-CH5GeW9N.js";
2
- import { a as cn, d as an, b as ln, c as rn, C as dn, e as hn, f as _n, S as un, g as mn, T as pn, h as gn, i as fn, u as yn } from "./ToolIconButton-CH5GeW9N.js";
3
- import { jsx as s, jsxs as g, Fragment as J } from "react/jsx-runtime";
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 Q, ChevronLeft as X, ChevronRight as Y, ChevronDown as Z, Sun as ee, Moon as te, Computer as ne } from "lucide-react";
7
- const oe = "_buttonGroup_ejhd6_1", se = "_button_ejhd6_1", ce = "_label_ejhd6_37", ae = "_single_ejhd6_42", le = "_first_ejhd6_46", ie = "_last_ejhd6_50", re = "_selected_ejhd6_54", B = {
8
- buttonGroup: oe,
9
- button: se,
10
- label: ce,
11
- single: ae,
12
- first: le,
13
- last: ie,
14
- selected: re
15
- }, Ut = ({ buttons: n, className: o }) => /* @__PURE__ */ s("div", { className: m(B.buttonGroup, o), children: n.map((t, e) => {
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
- }) }), de = (n, o, t, e) => [
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] = de(t, e, a, l);
44
- return he(c, i, h);
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
- }, he = (n, o, t) => "#" + [n, o, t].map((e) => {
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(""), _e = (n) => {
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
- }, ue = "_colorButton_wldf2_1", me = "_hotkey_wldf2_22", pe = "_selected_wldf2_26", ge = "_disabled_wldf2_33", fe = "_transparent_wldf2_41", ye = "_small_wldf2_46", ke = "_medium_wldf2_52", be = "_large_wldf2_58", I = {
57
- colorButton: ue,
58
- hotkey: me,
59
- selected: pe,
60
- disabled: ge,
61
- transparent: fe,
62
- small: ye,
63
- medium: ke,
64
- large: be
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: _e(t) }, children: a })
89
+ children: /* @__PURE__ */ s("p", { className: I.hotkey, style: { color: ue(t) }, children: a })
90
90
  }
91
91
  );
92
- }, ve = "_content_1ybrq_1", we = "_section_1ybrq_11", Ce = "_title_1ybrq_17", S = {
93
- content: ve,
94
- section: we,
95
- title: Ce
96
- }, Ne = [
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
- ], xe = ({
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(Be(u, i));
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)), Be = (n, 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
- }), Se = ({
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
- }, Ie = (n) => {
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
- }, Te = (n) => {
273
+ }, Le = (n) => {
274
274
  const { palette: o, setActiveColorHandler: t, setActiveShade: e } = n;
275
- Ie([(c) => {
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
- }, Le = "_iconButton_yk1r1_14", Ke = "_primary_yk1r1_34", Re = "_secondary_yk1r1_46", $e = "_transparent_yk1r1_54", ze = "_selected_yk1r1_65", He = "_disabled_yk1r1_74", R = {
287
- iconButton: Le,
288
- primary: Ke,
289
- secondary: Re,
290
- transparent: $e,
291
- selected: ze,
292
- disabled: He
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
- }, Me = "_hexInput_x3rtz_1", Ae = "_inputContainer_x3rtz_11", De = "_hash_x3rtz_18", Ve = "_input_x3rtz_11", Pe = "_error_x3rtz_39", je = "_copyButton_x3rtz_42", Ee = "_slot_x3rtz_48", Fe = "_copiedMessage_x3rtz_55", Ge = "_fadeInOut_x3rtz_1", w = {
318
- hexInput: Me,
319
- inputContainer: Ae,
320
- hash: De,
321
- input: Ve,
322
- error: Pe,
323
- copyButton: je,
324
- slot: Ee,
325
- copiedMessage: Fe,
326
- fadeInOut: Ge
327
- }, Oe = (n) => {
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(Q, {}),
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
- }, qe = "_colorsList_1brrj_1", We = {
379
- colorsList: qe
380
- }, Ue = ({
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: We.colorsList, children: o.map((e, a) => /* @__PURE__ */ s(
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
- )) }), Je = "_shadowList_1srdv_1", Qe = "_shadowText_1srdv_6", E = {
395
- shadowList: Je,
396
- shadowText: Qe
397
- }, Xe = ({
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
- }, Jt = (n) => {
418
- const { changeColor: o, colors: t, selectedColor: e, selectedShadeIndex: a = 5 } = n, l = Ne || t, {
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
- } = xe({ colors: l, selectedColor: e, selectedShadeIndex: a });
425
- return Te({
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
- Ue,
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
- Xe,
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
- Oe,
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
- }, Ye = "_pagination_3kmd4_1", Ze = "_pages_3kmd4_13", $ = {
472
- pagination: Ye,
473
- pages: Ze
471
+ }, Ze = "_pagination_3kmd4_1", et = "_pages_3kmd4_13", $ = {
472
+ pagination: Ze,
473
+ pages: et
474
474
  };
475
- function et({
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 Qt = (n) => {
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 = et({
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(X, { size: 16 }),
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(Y, { size: 16 }),
538
+ icon: /* @__PURE__ */ s(Z, { size: 16 }),
539
539
  variants: "transparent"
540
540
  }
541
541
  )
542
542
  ] });
543
- }, tt = "_selectContainer_1kdni_1", nt = "_selectButton_1kdni_5", ot = "_selectIcon_1kdni_10", st = "_selectIconOpen_1kdni_14", ct = "_selectMenu_1kdni_18", at = "_positionBottomRight_1kdni_44", lt = "_positionBottomLeft_1kdni_50", it = "_positionTopRight_1kdni_56", rt = "_positionTopLeft_1kdni_62", dt = "_positionRight_1kdni_68", ht = "_positionLeft_1kdni_74", _t = "_positionBottom_1kdni_44", ut = "_positionTop_1kdni_56", mt = "_menuItem_1kdni_92", pt = "_menuItemSelected_1kdni_102", gt = "_menuItemHover_1kdni_106", ft = "_menuItemHighlighted_1kdni_110", p = {
544
- selectContainer: tt,
545
- selectButton: nt,
546
- selectIcon: ot,
547
- selectIconOpen: st,
548
- selectMenu: ct,
549
- positionBottomRight: at,
550
- positionBottomLeft: lt,
551
- positionTopRight: it,
552
- positionTopLeft: rt,
553
- positionRight: dt,
554
- positionLeft: ht,
555
- positionBottom: _t,
556
- positionTop: ut,
557
- menuItem: mt,
558
- menuItemSelected: pt,
559
- menuItemHover: gt,
560
- menuItemHighlighted: ft
561
- }, Xt = ({
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
- } = Se({ onSelect: o, options: t, selectedId: a });
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
- Z,
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
- }, yt = "_groupTitle_eelpn_23", kt = "_list_eelpn_30", bt = "_item_eelpn_35", vt = "_itemKeysVariants_eelpn_45", wt = "_itemKeysSeparator_eelpn_50", Ct = "_itemDescription_eelpn_54", Nt = "_itemKey_eelpn_45", C = {
654
- groupTitle: yt,
655
- list: kt,
656
- item: bt,
657
- itemKeysVariants: vt,
658
- itemKeysSeparator: wt,
659
- itemDescription: Ct,
660
- itemKey: Nt
661
- }, xt = (n) => {
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
- }, Bt = (n) => {
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
- }, St = (n) => {
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(J, { children: [
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
- }, Yt = { Group: xt, Item: St, List: Bt }, It = "_slider_1b9o2_1", Tt = "_focused_1b9o2_37", A = {
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: It,
684
- focused: Tt
685
- }, Zt = (n) => {
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
- }, Lt = "_themeSwitcher_11ggx_18", Kt = "_themeButton_11ggx_27", Rt = "_background_11ggx_31", $t = "_selectedButton_11ggx_42", D = {
715
- themeSwitcher: Lt,
716
- themeButton: Kt,
717
- background: Rt,
718
- selectedButton: $t
719
- }, en = ({ setTheme: n, theme: o }) => {
720
- const t = [
721
- { icon: /* @__PURE__ */ s(ee, {}), label: "Light", value: "light" },
722
- { icon: /* @__PURE__ */ s(te, {}), label: "Dark", value: "dark" },
723
- { icon: /* @__PURE__ */ s(ne, {}), label: "System", value: "system" }
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
- }, zt = "_toggleSwitch_1w0s9_14", Ht = "_button_1w0s9_24", Mt = "_selected_1w0s9_41", L = {
741
- toggleSwitch: zt,
742
- button: Ht,
743
- selected: Mt
744
- }, tn = (n) => {
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
- }, At = "_toolbar_18q11_1", Dt = "_separator_18q11_11", Vt = "_vertical_18q11_16", Pt = "_horizontal_18q11_28", V = {
779
- toolbar: At,
780
- separator: Dt,
781
- vertical: Vt,
782
- horizontal: Pt
783
- }, jt = (n) => {
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
- }, Et = ({}) => /* @__PURE__ */ s("div", { className: V.separator }), nn = { Root: jt, Separator: Et };
792
+ }, Ft = ({}) => /* @__PURE__ */ s("div", { className: V.separator }), on = { Root: Et, Separator: Ft };
793
793
  export {
794
794
  F as Button,
795
- cn as ButtonRender,
796
- Ut as ButtonsGroup,
797
- an as Card,
798
- ln as CardContent,
799
- rn as CardHeader,
800
- dn as CardRoot,
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
- Jt as ColorPicker,
803
- hn as Dialog,
802
+ Qt as ColorPicker,
803
+ _n as Dialog,
804
804
  H as DropDown,
805
805
  T as IconButton,
806
- Qt as Pagination,
807
- Xt as Select,
808
- Yt as Shortcut,
809
- _n as Sidebar,
810
- un as SidebarContext,
811
- Zt as Slider,
812
- mn as SwitcherButtons,
813
- pn as Table,
814
- gn as TextField,
815
- en as ThemeSwitcher,
816
- tn as ToggleSwitch,
817
- fn as ToolIconButton,
818
- nn as Toolbar,
819
- yn as useSidebarContext
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