@adgytec/adgytec-web-ui-components 1.1.0 → 1.1.2

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.
Files changed (101) hide show
  1. package/dist/assets/Avatar.css +1 -1
  2. package/dist/assets/BaseCard.css +1 -1
  3. package/dist/assets/ButtonChild.css +1 -1
  4. package/dist/assets/Container.css +1 -0
  5. package/dist/assets/Disclosure.css +1 -1
  6. package/dist/assets/DisclousreGroup.css +1 -1
  7. package/dist/assets/Error.css +1 -1
  8. package/dist/assets/FieldError.css +1 -1
  9. package/dist/assets/Form.css +1 -1
  10. package/dist/assets/Input.css +1 -1
  11. package/dist/assets/Link.css +1 -1
  12. package/dist/assets/Loader.css +1 -1
  13. package/dist/assets/Menu.css +1 -1
  14. package/dist/assets/MenuLabel.css +1 -1
  15. package/dist/assets/ModalAction.css +1 -1
  16. package/dist/assets/ModalBase.css +1 -1
  17. package/dist/assets/NavigationMenu.css +1 -1
  18. package/dist/assets/NavigationSidebar.css +1 -1
  19. package/dist/assets/Popover.css +1 -1
  20. package/dist/assets/Select.css +1 -1
  21. package/dist/assets/Sidebar.css +1 -1
  22. package/dist/assets/Success.css +1 -1
  23. package/dist/assets/TextArea.css +1 -1
  24. package/dist/assets/Toast.css +1 -0
  25. package/dist/assets/ToggleButtonGroup.css +1 -1
  26. package/dist/assets/Tooltip.css +1 -1
  27. package/dist/assets/Tree.css +1 -1
  28. package/dist/assets/useSplash.css +1 -1
  29. package/dist/chunks/Avatar +35 -24
  30. package/dist/chunks/BaseCard +26 -20
  31. package/dist/chunks/Button +26 -19
  32. package/dist/chunks/ButtonChild +22 -23
  33. package/dist/chunks/ButtonLink +26 -20
  34. package/dist/chunks/ComponentShapeSwitcher +25 -21
  35. package/dist/chunks/Container +21 -0
  36. package/dist/chunks/Disclosure +19 -12
  37. package/dist/chunks/DisclousreGroup +12 -3
  38. package/dist/chunks/Error +5 -4
  39. package/dist/chunks/FieldError +18 -10
  40. package/dist/chunks/Form +10 -6
  41. package/dist/chunks/Image +32 -0
  42. package/dist/chunks/Input +17 -16
  43. package/dist/chunks/Link +21 -20
  44. package/dist/chunks/Loader +5 -4
  45. package/dist/chunks/Menu +27 -26
  46. package/dist/chunks/MenuLabel +9 -8
  47. package/dist/chunks/ModalAction +34 -30
  48. package/dist/chunks/ModalBase +19 -15
  49. package/dist/chunks/NavigationMenu +14 -13
  50. package/dist/chunks/NavigationSidebar +20 -19
  51. package/dist/chunks/Popover +8 -7
  52. package/dist/chunks/Select +96 -64
  53. package/dist/chunks/Sidebar +39 -34
  54. package/dist/chunks/Success +5 -4
  55. package/dist/chunks/TextArea +18 -17
  56. package/dist/chunks/ThemeSwitcher +30 -25
  57. package/dist/chunks/Toast +49 -0
  58. package/dist/chunks/ToggleButton +19 -13
  59. package/dist/chunks/ToggleButtonGroup +14 -13
  60. package/dist/chunks/Tooltip +22 -21
  61. package/dist/chunks/Tree +19 -18
  62. package/dist/chunks/Viewport +16 -0
  63. package/dist/chunks/useSplash +30 -28
  64. package/dist/components/Avatar/Avatar.d.ts +1 -1
  65. package/dist/components/Avatar/types.d.ts +7 -5
  66. package/dist/components/Button/ButtonBase/ButtonLink.d.ts +1 -1
  67. package/dist/components/Button/ButtonBase/types.d.ts +3 -6
  68. package/dist/components/Button/ButtonChild/ButtonChild.d.ts +1 -1
  69. package/dist/components/Container/Container.d.ts +2 -0
  70. package/dist/components/Container/index.d.ts +2 -0
  71. package/dist/components/Container/index.js +4 -0
  72. package/dist/components/Container/types.d.ts +5 -0
  73. package/dist/components/Disclosure/Disclosure/Disclosure.d.ts +1 -1
  74. package/dist/components/Disclosure/Disclosure/types.d.ts +2 -0
  75. package/dist/components/Image/Image.d.ts +3 -0
  76. package/dist/components/Image/ImageSource.d.ts +3 -0
  77. package/dist/components/Image/ImageVariants.d.ts +3 -0
  78. package/dist/components/Image/index.d.ts +2 -0
  79. package/dist/components/Image/index.js +4 -0
  80. package/dist/components/Image/types.d.ts +17 -0
  81. package/dist/components/Toast/Toast.d.ts +2 -0
  82. package/dist/components/Toast/index.d.ts +2 -0
  83. package/dist/components/Toast/index.js +4 -0
  84. package/dist/components/Toast/types.d.ts +12 -0
  85. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  86. package/dist/components/Viewport/Viewport.d.ts +1 -0
  87. package/dist/components/Viewport/index.d.ts +1 -0
  88. package/dist/components/Viewport/index.js +4 -0
  89. package/dist/components/VisualSettings/ComponentShapeSwitcher/ComponentShapeSwitcher.d.ts +0 -1
  90. package/dist/components/VisualSettings/ComponentShapeSwitcher/types.d.ts +5 -0
  91. package/dist/components/VisualSettings/ThemeSwitcher/ThemeSwitcher.d.ts +0 -1
  92. package/dist/components/VisualSettings/ThemeSwitcher/types.d.ts +6 -0
  93. package/dist/index.d.ts +4 -1
  94. package/dist/index.js +62 -56
  95. package/package.json +81 -71
  96. package/dist/assets/VisualSettings.css +0 -1
  97. package/dist/chunks/VisualSettings +0 -55
  98. package/dist/components/VisualSettings/VisualSettings/VisualSettings.d.ts +0 -3
  99. package/dist/components/VisualSettings/VisualSettings/index.d.ts +0 -2
  100. package/dist/components/VisualSettings/VisualSettings/index.js +0 -4
  101. package/dist/components/VisualSettings/VisualSettings/types.d.ts +0 -3
@@ -1,33 +1,34 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import { T as r } from "./TextButton";
3
- import { S as i } from "./Sidebar";
4
- import { T as c } from "./Tree";
5
- import { X as m, Menu as l } from "lucide-react";
6
- import '../assets/NavigationSidebar.css';const h = "_nav_1fjh5_1", d = "_close_1fjh5_15", s = {
7
- nav: h,
8
- close: d
9
- }, j = ({
10
- items: o,
11
- ...a
3
+ import { S as c } from "./Sidebar";
4
+ import { T as m } from "./Tree";
5
+ import { X as l, Menu as d } from "lucide-react";
6
+ import s from "clsx";
7
+ import '../assets/NavigationSidebar.css';const p = "_nav_49xbu_1", u = "_close_49xbu_8", o = {
8
+ nav: p,
9
+ close: u
10
+ }, N = ({
11
+ items: a,
12
+ ...n
12
13
  }) => /* @__PURE__ */ e(
13
- i,
14
+ c,
14
15
  {
15
- ...a,
16
- trigger: /* @__PURE__ */ e(r, { shape: "square", children: /* @__PURE__ */ e(l, {}) }),
17
- children: ({ close: n }) => /* @__PURE__ */ t("div", { className: s.nav, children: [
18
- /* @__PURE__ */ e("div", { className: s.close, children: /* @__PURE__ */ e(
16
+ ...n,
17
+ trigger: /* @__PURE__ */ e(r, { shape: "square", children: /* @__PURE__ */ e(d, {}) }),
18
+ children: ({ close: t }) => /* @__PURE__ */ i("div", { className: s(o.nav), children: [
19
+ /* @__PURE__ */ e("div", { className: s(o.close), children: /* @__PURE__ */ e(
19
20
  r,
20
21
  {
21
- onPress: n,
22
+ onPress: t,
22
23
  shape: "square",
23
24
  theme: "inverse-surface",
24
- children: /* @__PURE__ */ e(m, {})
25
+ children: /* @__PURE__ */ e(l, {})
25
26
  }
26
27
  ) }),
27
- /* @__PURE__ */ e(c, { items: o })
28
+ /* @__PURE__ */ e(m, { items: a })
28
29
  ] })
29
30
  }
30
31
  );
31
32
  export {
32
- j as N
33
+ N
33
34
  };
@@ -1,14 +1,15 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { Popover as e } from "react-aria-components";
3
- import '../assets/Popover.css';const p = "_popover_cizdw_1", s = {
4
- popover: p
5
- }, a = (o) => /* @__PURE__ */ r(
6
- e,
2
+ import { Popover as p } from "react-aria-components";
3
+ import e from "clsx";
4
+ import '../assets/Popover.css';const s = "_popover_14mpx_1", m = {
5
+ popover: s
6
+ }, c = (o) => /* @__PURE__ */ r(
7
+ p,
7
8
  {
8
9
  ...o,
9
- className: o.className ?? s.popover
10
+ className: e(m.popover, o.className)
10
11
  }
11
12
  );
12
13
  export {
13
- a as P
14
+ c as P
14
15
  };
@@ -1,89 +1,121 @@
1
- import { jsxs as r, jsx as e, Fragment as n } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as e, Fragment as m } from "react/jsx-runtime";
2
2
  import { F as d } from "./FilledButton";
3
- import { Select as B, SelectValue as m, ListBox as N, Text as p, ListBoxItem as y } from "react-aria-components";
4
- import { P as C } from "./Popover";
5
- import { ChevronsUpDown as F, Check as S } from "lucide-react";
6
- import { O as T } from "./OutlinedButton";
7
- import { T as V } from "./TextButton";
8
- import { T as $ } from "./Tooltip";
9
- import { L, F as D } from "./FieldError";
10
- import { B as j } from "./BaseCard";
11
- import '../assets/Select.css';const I = "_select_1tehw_1", O = "_trigger_1tehw_37", i = {
12
- select: I,
13
- "selected-value": "_selected-value_1tehw_11",
14
- "option-description": "_option-description_1tehw_19",
15
- trigger: O,
16
- "options-list": "_options-list_1tehw_51",
17
- "options-item-group": "_options-item-group_1tehw_63",
18
- "options-item": "_options-item_1tehw_63"
19
- }, M = ({
20
- options: h,
21
- cardBackground: u = "gradient",
22
- triggerTheme: l = "inverse-surface",
23
- label: a,
24
- name: _,
3
+ import { Select as N, SelectValue as p, ListBox as y, Text as u, ListBoxItem as C } from "react-aria-components";
4
+ import { P as F } from "./Popover";
5
+ import { ChevronsUpDown as S, Check as T } from "lucide-react";
6
+ import { O as V } from "./OutlinedButton";
7
+ import { T as L } from "./TextButton";
8
+ import { T as D } from "./Tooltip";
9
+ import { L as j, F as I } from "./FieldError";
10
+ import { B as O } from "./BaseCard";
11
+ import { clsx as i } from "clsx";
12
+ import '../assets/Select.css';const P = "_select_kw554_1", E = "_trigger_kw554_19", s = {
13
+ select: P,
14
+ "selected-value": "_selected-value_kw554_6",
15
+ "option-description": "_option-description_kw554_10",
16
+ trigger: E,
17
+ "options-list": "_options-list_kw554_26",
18
+ "options-item-group": "_options-item-group_kw554_32",
19
+ "options-item": "_options-item_kw554_32"
20
+ }, R = ({
21
+ options: _,
22
+ cardBackground: h = "gradient",
23
+ triggerTheme: a = "inverse-surface",
24
+ label: c,
25
+ name: f,
25
26
  disabled: g,
26
- isRequired: f,
27
- triggerVariant: w = "filled",
28
- description: x,
29
- placeholder: c,
27
+ isRequired: k,
28
+ triggerVariant: x = "filled",
29
+ description: w,
30
+ placeholder: n,
30
31
  selectedKey: v,
31
32
  onSelectionChange: b
32
33
  }) => {
33
- let s;
34
- switch (w) {
34
+ let r;
35
+ switch (x) {
35
36
  case "filled":
36
- s = d;
37
+ r = d;
37
38
  break;
38
39
  case "outlined":
39
- s = T;
40
+ r = V;
40
41
  break;
41
42
  case "text":
42
- s = V;
43
+ r = L;
43
44
  break;
44
45
  default:
45
- s = d;
46
+ r = d;
46
47
  }
47
- return /* @__PURE__ */ r(
48
- B,
48
+ return /* @__PURE__ */ o(
49
+ N,
49
50
  {
50
- className: i.select,
51
+ className: i(s.select),
51
52
  isDisabled: g,
52
- isRequired: f,
53
- name: _,
53
+ isRequired: k,
54
+ name: f,
54
55
  value: v,
55
56
  onChange: b,
56
57
  children: [
57
- a && /* @__PURE__ */ e(L, { children: a }),
58
- /* @__PURE__ */ e($, { description: x, theme: l, children: /* @__PURE__ */ e(s, { theme: l, children: /* @__PURE__ */ r("span", { className: i.trigger, children: [
59
- c ? /* @__PURE__ */ e(m, { className: `${i["selected-value"]}`, children: ({ defaultChildren: t, isPlaceholder: o }) => o ? c : t }) : /* @__PURE__ */ e(m, {}),
60
- /* @__PURE__ */ e(F, {})
61
- ] }) }) }),
62
- /* @__PURE__ */ e(D, {}),
63
- /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(j, { background: u, children: /* @__PURE__ */ e(N, { className: `${i["options-list"]}`, items: h, children: (t) => {
64
- const o = /* @__PURE__ */ r(n, { children: [
65
- /* @__PURE__ */ e(p, { children: t.displayValue }),
66
- t.description && /* @__PURE__ */ e(p, { className: i["option-description"], children: t.description })
67
- ] });
68
- return /* @__PURE__ */ e(
69
- y,
58
+ c && /* @__PURE__ */ e(j, { children: c }),
59
+ /* @__PURE__ */ e(D, { description: w, theme: a, children: /* @__PURE__ */ e(r, { theme: a, children: /* @__PURE__ */ o("span", { className: i(s.trigger), children: [
60
+ n ? /* @__PURE__ */ e(
61
+ p,
70
62
  {
71
- className: `${i["options-item-group"]}`,
72
- id: t.key,
73
- textValue: t.displayValue,
74
- isDisabled: t.disabled,
75
- children: ({ isSelected: k }) => /* @__PURE__ */ r(n, { children: [
76
- /* @__PURE__ */ e("div", { className: `${i["options-item"]}`, children: o }),
77
- k && /* @__PURE__ */ e(S, {})
78
- ] })
79
- },
80
- t.key
81
- );
82
- } }) }) })
63
+ className: i(s["selected-value"]),
64
+ children: ({ defaultChildren: t, isPlaceholder: l }) => l ? n : t
65
+ }
66
+ ) : /* @__PURE__ */ e(p, {}),
67
+ /* @__PURE__ */ e(S, {})
68
+ ] }) }) }),
69
+ /* @__PURE__ */ e(I, {}),
70
+ /* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(O, { background: h, children: /* @__PURE__ */ e(
71
+ y,
72
+ {
73
+ className: i(s["options-list"]),
74
+ items: _,
75
+ children: (t) => {
76
+ const l = /* @__PURE__ */ o(m, { children: [
77
+ /* @__PURE__ */ e(u, { children: t.displayValue }),
78
+ t.description && /* @__PURE__ */ e(
79
+ u,
80
+ {
81
+ className: i(
82
+ s["option-description"]
83
+ ),
84
+ children: t.description
85
+ }
86
+ )
87
+ ] });
88
+ return /* @__PURE__ */ e(
89
+ C,
90
+ {
91
+ className: i(
92
+ s["options-item-group"]
93
+ ),
94
+ id: t.key,
95
+ textValue: t.displayValue,
96
+ isDisabled: t.disabled,
97
+ children: ({ isSelected: B }) => /* @__PURE__ */ o(m, { children: [
98
+ /* @__PURE__ */ e(
99
+ "div",
100
+ {
101
+ className: i(
102
+ s["options-item"]
103
+ ),
104
+ children: l
105
+ }
106
+ ),
107
+ B && /* @__PURE__ */ e(T, {})
108
+ ] })
109
+ },
110
+ t.key
111
+ );
112
+ }
113
+ }
114
+ ) }) })
83
115
  ]
84
116
  }
85
117
  );
86
118
  };
87
119
  export {
88
- M as S
120
+ R as S
89
121
  };
@@ -1,43 +1,48 @@
1
- import { jsxs as t, jsx as l } from "react/jsx-runtime";
2
- import { DialogTrigger as h, ModalOverlay as m, Modal as x, Dialog as f } from "react-aria-components";
3
- import { B as u } from "./BaseCard";
4
- import '../assets/Sidebar.css';const b = "_modal_1hdcx_1", k = "_full_1hdcx_275", y = "_half_1hdcx_297", g = "_quarter_1hdcx_305", e = {
5
- "modal-overlay": "_modal-overlay_1hdcx_1",
6
- "modal-fade": "_modal-fade_1hdcx_1",
7
- modal: b,
8
- "inline-start": "_inline-start_1hdcx_109",
9
- "inline-slide": "_inline-slide_1hdcx_1",
10
- "inline-end": "_inline-end_1hdcx_135",
11
- "block-start": "_block-start_1hdcx_161",
12
- "block-slide": "_block-slide_1hdcx_1",
13
- "block-end": "_block-end_1hdcx_187",
14
- full: k,
15
- "three-quarters": "_three-quarters_1hdcx_289",
16
- half: y,
17
- quarter: g
18
- }, D = ({
1
+ import { jsxs as m, jsx as l } from "react/jsx-runtime";
2
+ import { DialogTrigger as f, ModalOverlay as u, Modal as b, Dialog as h } from "react-aria-components";
3
+ import { B as k } from "./BaseCard";
4
+ import { clsx as d } from "clsx";
5
+ import '../assets/Sidebar.css';const y = "_modal_d8775_1", g = "_full_d8775_138", p = "_half_d8775_149", q = "_quarter_d8775_153", e = {
6
+ "modal-overlay": "_modal-overlay_d8775_1",
7
+ "modal-fade": "_modal-fade_d8775_1",
8
+ modal: y,
9
+ "inline-start": "_inline-start_d8775_55",
10
+ "inline-slide": "_inline-slide_d8775_1",
11
+ "inline-end": "_inline-end_d8775_68",
12
+ "block-start": "_block-start_d8775_81",
13
+ "block-slide": "_block-slide_d8775_1",
14
+ "block-end": "_block-end_d8775_94",
15
+ full: g,
16
+ "three-quarters": "_three-quarters_d8775_145",
17
+ half: p,
18
+ quarter: q
19
+ }, B = ({
19
20
  children: a,
20
- trigger: d,
21
- sidebarPosition: o = "inline-start",
22
- sidebarSize: r = "full",
23
- isDismissable: _,
24
- isKeyboardDismissableDisabled: i,
21
+ trigger: o,
22
+ sidebarPosition: r = "inline-start",
23
+ sidebarSize: _ = "full",
24
+ isDismissable: i,
25
+ isKeyboardDismissableDisabled: s,
25
26
  cardBackground: n = "gradient"
26
27
  }) => {
27
- const s = typeof a == "function";
28
- return /* @__PURE__ */ t(h, { children: [
29
- d,
28
+ const t = typeof a == "function";
29
+ return /* @__PURE__ */ m(f, { children: [
30
+ o,
30
31
  /* @__PURE__ */ l(
31
- m,
32
+ u,
32
33
  {
33
- className: `${e["modal-overlay"]}`,
34
- isDismissable: _,
35
- isKeyboardDismissDisabled: i,
34
+ className: d(e["modal-overlay"]),
35
+ isDismissable: i,
36
+ isKeyboardDismissDisabled: s,
36
37
  children: /* @__PURE__ */ l(
37
- x,
38
+ b,
38
39
  {
39
- className: `${e.modal} ${e[o]} ${e[r]}`,
40
- children: /* @__PURE__ */ l(u, { background: n, children: /* @__PURE__ */ l(f, { children: s ? (c) => a(c) : a }) })
40
+ className: d(
41
+ e.modal,
42
+ e[r],
43
+ e[_]
44
+ ),
45
+ children: /* @__PURE__ */ l(k, { background: n, children: /* @__PURE__ */ l(h, { children: t ? (c) => a(c) : a }) })
41
46
  }
42
47
  )
43
48
  }
@@ -45,5 +50,5 @@ import '../assets/Sidebar.css';const b = "_modal_1hdcx_1", k = "_full_1hdcx_275"
45
50
  ] });
46
51
  };
47
52
  export {
48
- D as S
53
+ B as S
49
54
  };
@@ -1,7 +1,8 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import '../assets/Success.css';const e = "_success_1r4la_1", t = {
3
- success: e
4
- }, r = ({ children: s }) => /* @__PURE__ */ c("p", { className: `${t.success}`, children: s });
2
+ import e from "clsx";
3
+ import '../assets/Success.css';const o = "_success_1bwy5_1", t = {
4
+ success: o
5
+ }, m = ({ children: s }) => /* @__PURE__ */ c("p", { className: e(t.success), children: s });
5
6
  export {
6
- r as S
7
+ m as S
7
8
  };
@@ -1,33 +1,34 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { TextField as m, TextArea as x } from "react-aria-components";
3
- import { L as d, F as l } from "./FieldError";
4
- import '../assets/TextArea.css';const n = "_textarea_3agtk_1", _ = "_editor_3agtk_11", s = {
5
- textarea: n,
6
- editor: _
7
- }, g = ({
8
- label: a,
2
+ import { TextField as x, TextArea as l } from "react-aria-components";
3
+ import { L as d, F as n } from "./FieldError";
4
+ import s from "clsx";
5
+ import '../assets/TextArea.css';const _ = "_textarea_1798z_1", T = "_editor_1798z_6", o = {
6
+ textarea: _,
7
+ editor: T
8
+ }, j = ({
9
+ label: r,
9
10
  textFieldProps: t,
10
- textAreaProps: r,
11
- labelProps: o,
11
+ textAreaProps: a,
12
+ labelProps: m,
12
13
  fieldErrorProps: c
13
14
  }) => /* @__PURE__ */ i(
14
- m,
15
+ x,
15
16
  {
16
17
  ...t,
17
- className: t?.className ?? s.textarea,
18
+ className: s(o.textarea, t?.className),
18
19
  children: [
19
- a && /* @__PURE__ */ e(d, { ...o, children: a }),
20
+ r && /* @__PURE__ */ e(d, { ...m, children: r }),
20
21
  /* @__PURE__ */ e(
21
- x,
22
+ l,
22
23
  {
23
- ...r,
24
- className: r?.className ?? s.editor
24
+ ...a,
25
+ className: s(o.editor, a?.className)
25
26
  }
26
27
  ),
27
- /* @__PURE__ */ e(l, { ...c })
28
+ /* @__PURE__ */ e(n, { ...c })
28
29
  ]
29
30
  }
30
31
  );
31
32
  export {
32
- g as T
33
+ j as T
33
34
  };
@@ -1,48 +1,53 @@
1
- import { jsx as r, Fragment as c } from "react/jsx-runtime";
2
- import { useTernaryDarkMode as h } from "usehooks-ts";
3
- import { useEffect as l } from "react";
1
+ import { jsx as o, Fragment as c } from "react/jsx-runtime";
2
+ import { useTernaryDarkMode as l } from "usehooks-ts";
3
+ import { useEffect as g } from "react";
4
4
  import { T as f } from "./ToggleButtonGroup";
5
- const k = ({
6
- ui: o = !0,
7
- theme: a = "primary"
5
+ const k = {
6
+ system: "System",
7
+ light: "Light",
8
+ dark: "Dark"
9
+ }, M = ({
10
+ ui: m = !0,
11
+ theme: s = "primary",
12
+ displayValue: e = k
8
13
  }) => {
9
- const { isDarkMode: e, ternaryDarkMode: m, setTernaryDarkMode: n } = h(), s = [
14
+ const { isDarkMode: t, ternaryDarkMode: n, setTernaryDarkMode: a } = l(), i = [
10
15
  {
11
16
  id: "system",
12
- value: "System"
17
+ value: e.system
13
18
  },
14
19
  {
15
20
  id: "light",
16
- value: "Light"
21
+ value: e.light
17
22
  },
18
23
  {
19
24
  id: "dark",
20
- value: "Dark"
25
+ value: e.dark
21
26
  }
22
- ], i = () => {
27
+ ], d = () => {
23
28
  document.documentElement.setAttribute(
24
29
  "data-theme",
25
- e ? "dark" : "light"
30
+ t ? "dark" : "light"
26
31
  );
27
32
  };
28
- l(() => {
29
- i();
30
- }, [e]);
31
- const d = (u) => {
32
- const t = Array.from(u)[0];
33
- t && n(t);
33
+ g(() => {
34
+ d();
35
+ }, [t]);
36
+ const h = (u) => {
37
+ const r = Array.from(u)[0];
38
+ r && a(r);
34
39
  };
35
- return o ? /* @__PURE__ */ r(
40
+ return m ? /* @__PURE__ */ o(
36
41
  f,
37
42
  {
38
- items: s,
43
+ items: i,
39
44
  selectionMode: "single",
40
- selectedKeys: [m],
41
- onSelectionChange: d,
42
- theme: a
45
+ selectedKeys: [n],
46
+ onSelectionChange: h,
47
+ theme: s
43
48
  }
44
- ) : /* @__PURE__ */ r(c, {});
49
+ ) : /* @__PURE__ */ o(c, {});
45
50
  };
46
51
  export {
47
- k as T
52
+ M as T
48
53
  };
@@ -0,0 +1,49 @@
1
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
+ import { T as h } from "./TextButton";
3
+ import { B as p } from "./BaseCard";
4
+ import { toast as c } from "sonner";
5
+ import { X as _ } from "lucide-react";
6
+ import { clsx as e } from "clsx";
7
+ import '../assets/Toast.css';const l = "_toast_1wt0k_1", f = "_heading_1wt0k_9", u = "_content_1wt0k_14", x = "_prefix_1wt0k_20", k = "_description_1wt0k_25", r = {
8
+ toast: l,
9
+ heading: f,
10
+ content: u,
11
+ prefix: x,
12
+ description: k
13
+ };
14
+ function j(s) {
15
+ return c.custom(
16
+ (o) => /* @__PURE__ */ t(w, { id: o, ...s }),
17
+ {
18
+ toasterId: s.toasterID,
19
+ dismissible: s.dismissable,
20
+ duration: s.duration
21
+ }
22
+ );
23
+ }
24
+ const w = ({
25
+ id: s,
26
+ heading: o,
27
+ background: m,
28
+ prefixIcon: n,
29
+ description: i,
30
+ closeButton: d = !0
31
+ }) => /* @__PURE__ */ a(p, { background: m, className: e(r.toast), children: [
32
+ n && /* @__PURE__ */ t("div", { className: e(r.prefix), children: n }),
33
+ /* @__PURE__ */ a("div", { className: e(r.content), children: [
34
+ /* @__PURE__ */ t("h3", { className: e(r.heading), children: o }),
35
+ i && /* @__PURE__ */ t("p", { className: e(r.description), children: i })
36
+ ] }),
37
+ d && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
38
+ h,
39
+ {
40
+ theme: "inverse-surface",
41
+ onPress: () => c.dismiss(s),
42
+ shape: "square-shrink",
43
+ children: /* @__PURE__ */ t(_, {})
44
+ }
45
+ ) })
46
+ ] });
47
+ export {
48
+ j as t
49
+ };
@@ -1,29 +1,35 @@
1
1
  import { jsx as s, jsxs as i } from "react/jsx-runtime";
2
- import { ToggleButton as p } from "react-aria-components";
3
- import { u as m, s as t, S as c } from "./useSplash";
4
- import { T as g } from "./Tooltip";
5
- const f = ({
6
- id: n,
7
- value: r,
2
+ import { ToggleButton as m } from "react-aria-components";
3
+ import { u as p, S as c, s as t } from "./useSplash";
4
+ import { T as h } from "./Tooltip";
5
+ import d from "clsx";
6
+ const j = ({
7
+ id: r,
8
+ value: n,
8
9
  description: a,
9
10
  isDisabled: e,
10
11
  theme: l = "primary"
11
12
  }) => {
12
- const { coords: o, handlePress: u } = m();
13
- return /* @__PURE__ */ s(g, { description: a, children: /* @__PURE__ */ i(
14
- p,
13
+ const { coords: o, handlePress: u } = p();
14
+ return /* @__PURE__ */ s(h, { description: a, children: /* @__PURE__ */ i(
15
+ m,
15
16
  {
16
- id: n,
17
+ id: r,
17
18
  onPress: u,
18
- className: `${t.button} ${t[l]} ${t["outlined"]} ${t["rectangle"]}`,
19
+ className: d(
20
+ t.button,
21
+ t[l],
22
+ t["outlined"],
23
+ t["default"]
24
+ ),
19
25
  isDisabled: e,
20
26
  children: [
21
27
  o && /* @__PURE__ */ s(c, { ...o }),
22
- r
28
+ n
23
29
  ]
24
30
  }
25
31
  ) });
26
32
  };
27
33
  export {
28
- f as T
34
+ j as T
29
35
  };
@@ -1,19 +1,20 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import { ToggleButtonGroup as e } from "react-aria-components";
3
- import { T as u } from "./ToggleButton";
4
- import '../assets/ToggleButtonGroup.css';const l = {
5
- "toggle-button-group": "_toggle-button-group_1tyg5_1"
6
- }, m = ({
7
- items: r,
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ToggleButtonGroup as l } from "react-aria-components";
3
+ import { T as e } from "./ToggleButton";
4
+ import u from "clsx";
5
+ import '../assets/ToggleButtonGroup.css';const a = {
6
+ "toggle-button-group": "_toggle-button-group_17ilm_1"
7
+ }, b = ({
8
+ items: g,
8
9
  theme: s = "primary",
9
10
  ...o
10
- }) => /* @__PURE__ */ g(
11
- e,
11
+ }) => /* @__PURE__ */ r(
12
+ l,
12
13
  {
13
14
  ...o,
14
- className: o.className ?? l["toggle-button-group"],
15
- children: r.map((t) => /* @__PURE__ */ g(
16
- u,
15
+ className: u(a["toggle-button-group"], o.className),
16
+ children: g.map((t) => /* @__PURE__ */ r(
17
+ e,
17
18
  {
18
19
  ...t,
19
20
  theme: s,
@@ -24,5 +25,5 @@ import '../assets/ToggleButtonGroup.css';const l = {
24
25
  }
25
26
  );
26
27
  export {
27
- m as T
28
+ b as T
28
29
  };