@adgytec/adgytec-web-ui-components 0.0.21 → 1.0.0

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 (43) hide show
  1. package/dist/{Button-C8yUSxx_.js → Button-Dtvxu-co.js} +2 -2
  2. package/dist/{ButtonLink-DNXUq90W.js → ButtonLink-fUZZI7JR.js} +2 -2
  3. package/dist/ComponentShapeSwitcher-CY_93STw.js +46 -0
  4. package/dist/{Disclosure-sItjZ-jf.js → Disclosure-BGdAnqQv.js} +1 -1
  5. package/dist/{FilledButton-LnYvKzE9.js → FilledButton-SpEu55ES.js} +1 -1
  6. package/dist/NavigationMenu-DqDfWOnJ.js +49 -0
  7. package/dist/{NavigationSidebar-mEaAZE9d.js → NavigationSidebar-Dx2ww8hp.js} +1 -1
  8. package/dist/{OutlinedButton-BesEreKQ.js → OutlinedButton-QAeXI3Dj.js} +1 -1
  9. package/dist/{TextButton-Ct0ffSsq.js → TextButton-CWDZaF0c.js} +1 -1
  10. package/dist/ThemeSwitcher-Nf1-Z_ql.js +48 -0
  11. package/dist/assets/index12.css +1 -0
  12. package/dist/assets/index13.css +1 -0
  13. package/dist/components/Button/FilledButton/index.js +1 -1
  14. package/dist/components/Button/OutlinedButton/index.js +1 -1
  15. package/dist/components/Button/TextButton/index.js +1 -1
  16. package/dist/components/Disclosure/Disclosure/index.js +1 -1
  17. package/dist/components/Disclosure/DisclousureGroup/index.js +1 -1
  18. package/dist/components/Link/FilledButtonLink/index.js +1 -1
  19. package/dist/components/Link/OutlinedButtonLink/index.js +1 -1
  20. package/dist/components/Modal/ModalAction/index.js +1 -1
  21. package/dist/components/Navigation/NavigationMenu/index.js +1 -1
  22. package/dist/components/Navigation/NavigationResponsive/index.js +2 -2
  23. package/dist/components/Navigation/NavigationSidebar/index.js +1 -1
  24. package/dist/components/Select/Select.d.ts +1 -1
  25. package/dist/components/Select/index.js +41 -40
  26. package/dist/components/Select/types.d.ts +2 -0
  27. package/dist/components/VisualSettings/ComponentShapeSwitcher/index.d.ts +2 -0
  28. package/dist/components/VisualSettings/ComponentShapeSwitcher/index.js +6 -0
  29. package/dist/components/VisualSettings/ThemeSwitcher/index.d.ts +2 -0
  30. package/dist/components/VisualSettings/ThemeSwitcher/index.js +4 -0
  31. package/dist/components/VisualSettings/VisualSettings/index.d.ts +2 -0
  32. package/dist/components/VisualSettings/VisualSettings/index.js +124 -0
  33. package/dist/index-BG6gd3OK.js +118 -0
  34. package/package.json +34 -22
  35. package/dist/NavigationMenu-x2hSYr4B.js +0 -47
  36. package/dist/utils/apiError.d.ts +0 -9
  37. package/dist/utils/env.d.ts +0 -1
  38. /package/dist/components/{ComponentShapeSwitcher → VisualSettings/ComponentShapeSwitcher}/ComponentShapeSwitcher.d.ts +0 -0
  39. /package/dist/components/{ComponentShapeSwitcher → VisualSettings/ComponentShapeSwitcher}/types.d.ts +0 -0
  40. /package/dist/components/{ThemeSwitcher → VisualSettings/ThemeSwitcher}/ThemeSwitcher.d.ts +0 -0
  41. /package/dist/components/{ThemeSwitcher → VisualSettings/ThemeSwitcher}/types.d.ts +0 -0
  42. /package/dist/components/VisualSettings/{VisualSettings.d.ts → VisualSettings/VisualSettings.d.ts} +0 -0
  43. /package/dist/components/VisualSettings/{types.d.ts → VisualSettings/types.d.ts} +0 -0
@@ -19,10 +19,10 @@ const C = ({
19
19
  ...e,
20
20
  className: e.className ?? `${t.button} ${t["button-link"]} ${t[i]} ${t[m]} ${t[r]}`,
21
21
  onPress: p,
22
- children: h ? (B) => /* @__PURE__ */ l(c, { children: [
22
+ children: h ? ((B) => /* @__PURE__ */ l(c, { children: [
23
23
  o && /* @__PURE__ */ s(u, { ...o }),
24
24
  n(B)
25
- ] }) : /* @__PURE__ */ l(c, { children: [
25
+ ] })) : /* @__PURE__ */ l(c, { children: [
26
26
  o && /* @__PURE__ */ s(u, { ...o }),
27
27
  n
28
28
  ] })
@@ -21,10 +21,10 @@ const F = ({
21
21
  ...c && { "data-underline": !0 },
22
22
  onPress: f,
23
23
  className: `${o.button} ${o["button-link"]} ${o[m]} ${o[n]} ${o[u]}`,
24
- children: d ? (h) => /* @__PURE__ */ i(a, { children: [
24
+ children: d ? ((h) => /* @__PURE__ */ i(a, { children: [
25
25
  t && /* @__PURE__ */ r(l, { ...t }),
26
26
  s(h)
27
- ] }) : /* @__PURE__ */ i(a, { children: [
27
+ ] })) : /* @__PURE__ */ i(a, { children: [
28
28
  t && /* @__PURE__ */ r(l, { ...t }),
29
29
  s
30
30
  ] })
@@ -0,0 +1,46 @@
1
+ import { jsx as a, Fragment as h } from "react/jsx-runtime";
2
+ import { useLocalStorage as i } from "usehooks-ts";
3
+ import { useEffect as u } from "react";
4
+ import "react-aria-components";
5
+ import { b as d, a as f } from "./index-BG6gd3OK.js";
6
+ var r = /* @__PURE__ */ ((e) => (e.sharp = "sharp", e.round = "round", e))(r || {});
7
+ const l = "component-shape-preference", x = ({
8
+ ui: e = !0,
9
+ theme: n = f.primary
10
+ }) => {
11
+ const [t, s, S] = i(
12
+ l,
13
+ r.sharp
14
+ ), p = [
15
+ {
16
+ id: r.sharp,
17
+ value: "Sharp"
18
+ },
19
+ {
20
+ id: r.round,
21
+ value: "Round"
22
+ }
23
+ ];
24
+ u(() => {
25
+ document.documentElement.setAttribute("data-shape", t);
26
+ }, [t]);
27
+ const m = (c) => {
28
+ const o = Array.from(c)[0];
29
+ o && s(o);
30
+ };
31
+ return e ? /* @__PURE__ */ a(
32
+ d,
33
+ {
34
+ items: p,
35
+ selectionMode: "single",
36
+ selectedKeys: [t],
37
+ onSelectionChange: m,
38
+ theme: n
39
+ }
40
+ ) : /* @__PURE__ */ a(h, {});
41
+ };
42
+ export {
43
+ x as C,
44
+ r as a,
45
+ l as b
46
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
2
  import { Disclosure as c, DisclosurePanel as l } from "react-aria-components";
3
3
  import { ChevronRight as n } from "lucide-react";
4
- import { T as a } from "./TextButton-Ct0ffSsq.js";
4
+ import { T as a } from "./TextButton-CWDZaF0c.js";
5
5
  import { ColorTheme as m } from "./index.js";
6
6
  import { ButtonShape as p } from "./components/Button/ButtonBase/index.js";
7
7
  import './assets/Disclosure.css';const h = "_disclosure_1cz7p_1", u = "_trigger_1cz7p_23", g = "_panel_1cz7p_55", e = {
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { ButtonVariant as n } from "./components/Button/ButtonBase/index.js";
3
- import { B as i } from "./Button-C8yUSxx_.js";
3
+ import { B as i } from "./Button-Dtvxu-co.js";
4
4
  const l = (t) => {
5
5
  const { children: o } = t;
6
6
  return /* @__PURE__ */ r(i, { ...t, variant: n.filled, children: o });
@@ -0,0 +1,49 @@
1
+ import { jsx as r, Fragment as a, jsxs as u } from "react/jsx-runtime";
2
+ import { M as i } from "./MenuLabel-B0FrGXKS.js";
3
+ import { L as c } from "./Link-Be6F1iXD.js";
4
+ import { T as d } from "./TextButton-CWDZaF0c.js";
5
+ import { ColorTheme as n } from "./index.js";
6
+ import { ButtonShape as m } from "./components/Button/ButtonBase/index.js";
7
+ import { ChevronDown as h } from "lucide-react";
8
+ import './assets/NavigationMenu.css';const p = "_menu_sata7_1", f = {
9
+ menu: p
10
+ }, I = ({ items: s, className: o }) => {
11
+ const t = s.filter((e) => e.type !== "separator");
12
+ return /* @__PURE__ */ r("div", { className: o || f.menu, children: t.map((e) => {
13
+ switch (e.type) {
14
+ case "sub-items":
15
+ return /* @__PURE__ */ u(i, { menuItems: e.subItems, children: [
16
+ e.node,
17
+ /* @__PURE__ */ r(h, {})
18
+ ] }, e.id);
19
+ case "item-node":
20
+ return /* @__PURE__ */ r(a, { children: e.node }, e.id);
21
+ case "link":
22
+ return /* @__PURE__ */ r(
23
+ c,
24
+ {
25
+ href: e.href,
26
+ target: e.target,
27
+ underline: e.active,
28
+ theme: e.active ? n.primary : n.inverseSurface,
29
+ children: e.node
30
+ },
31
+ e.id
32
+ );
33
+ case "button":
34
+ return /* @__PURE__ */ r(
35
+ d,
36
+ {
37
+ onPress: e.onPress,
38
+ theme: n.inverseSurface,
39
+ shape: m.shrink,
40
+ children: e.node
41
+ },
42
+ e.id
43
+ );
44
+ }
45
+ }) });
46
+ };
47
+ export {
48
+ I as N
49
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { T as r } from "./TextButton-Ct0ffSsq.js";
2
+ import { T as r } from "./TextButton-CWDZaF0c.js";
3
3
  import { ButtonShape as o } from "./components/Button/ButtonBase/index.js";
4
4
  import { S as m } from "./Sidebar-BqNH6hIl.js";
5
5
  import { T as c } from "./Tree-DwJPCnFr.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { ButtonVariant as r } from "./components/Button/ButtonBase/index.js";
3
- import { B as i } from "./Button-C8yUSxx_.js";
3
+ import { B as i } from "./Button-Dtvxu-co.js";
4
4
  const e = (t) => {
5
5
  const { children: o } = t;
6
6
  return /* @__PURE__ */ n(i, { ...t, variant: r.outlined, children: o });
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { ButtonVariant as n } from "./components/Button/ButtonBase/index.js";
3
- import { B as a } from "./Button-C8yUSxx_.js";
3
+ import { B as a } from "./Button-Dtvxu-co.js";
4
4
  const s = (t) => {
5
5
  const { children: o } = t;
6
6
  return /* @__PURE__ */ r(a, { ...t, variant: n.text, children: o });
@@ -0,0 +1,48 @@
1
+ import { jsx as r, Fragment as h } from "react/jsx-runtime";
2
+ import { useTernaryDarkMode as u } from "usehooks-ts";
3
+ import { useEffect as l } from "react";
4
+ import { b as f, a as y } from "./index-BG6gd3OK.js";
5
+ const D = ({
6
+ ui: o = !0,
7
+ theme: a = y.primary
8
+ }) => {
9
+ const { isDarkMode: e, ternaryDarkMode: m, setTernaryDarkMode: n } = u(), s = [
10
+ {
11
+ id: "system",
12
+ value: "System"
13
+ },
14
+ {
15
+ id: "light",
16
+ value: "Light"
17
+ },
18
+ {
19
+ id: "dark",
20
+ value: "Dark"
21
+ }
22
+ ], i = () => {
23
+ document.documentElement.setAttribute(
24
+ "data-theme",
25
+ e ? "dark" : "light"
26
+ );
27
+ };
28
+ l(() => {
29
+ i();
30
+ }, [e]);
31
+ const d = (c) => {
32
+ const t = Array.from(c)[0];
33
+ t && n(t);
34
+ };
35
+ return o ? /* @__PURE__ */ r(
36
+ f,
37
+ {
38
+ items: s,
39
+ selectionMode: "single",
40
+ selectedKeys: [m],
41
+ onSelectionChange: d,
42
+ theme: a
43
+ }
44
+ ) : /* @__PURE__ */ r(h, {});
45
+ };
46
+ export {
47
+ D as T
48
+ };
@@ -0,0 +1 @@
1
+ ._button_iyh6t_1{--_button-theme-background: transparent;--_button-theme-color: transparent;--_button-border-color: var(--_button-theme-background);border-radius:var(--_button-radius);cursor:pointer;border:var(--button-border-width) solid var(--_button-border-color);font-weight:var(--font-weight-medium);text-align:center;padding-inline:var(--_button-padding-inline);padding-block:var(--_button-padding-block);background-color:var(--_button-background);color:var(--_button-color);position:relative;overflow:hidden;transition:background-color .25s,color .25s}._button_iyh6t_1[data-hovered],._button_iyh6t_1[data-focus-visible]{--_button-background: hsl( from var(--_button-theme-background) h s calc(l + 10) );--_button-color: hsl(from var(--_button-theme-color) h s calc(l + 10) )}._button_iyh6t_1[data-pressed]{--_button-background: hsl( from var(--_button-theme-background) h s calc(l - 5) );--_button-color: hsl(from var(--_button-theme-color) h s calc(l - 5) )}._button_iyh6t_1[data-selected]{--_button-background: var(--_button-theme-background);--_button-color: var(--_button-theme-color)}._button-link_iyh6t_91{text-underline-offset:.125em;text-decoration-thickness:.075em;text-decoration-color:transparent}._button-link_iyh6t_91[data-hovered],._button-link_iyh6t_91[data-focus-visible],._button-link_iyh6t_91[data-underline]{text-decoration-color:currentColor}._square_iyh6t_123{--_button-padding-inline: .625em;--_button-padding-block: .625em;aspect-ratio:1/1;--_button-radius: var(--radius-circular)}._avatar_iyh6t_139{--_button-padding-inline: .125em;--_button-padding-block: .125em;aspect-ratio:1/1;--_button-radius: var(--radius-circular)}._rectangle_iyh6t_155{--_button-padding-inline: 1.125em;--_button-padding-block: .625em;--_button-radius: var(--radius-button)}._shrink_iyh6t_167{--_button-padding-inline: 0;--_button-padding-block: 0}._primary_iyh6t_179{--_button-theme-background: var(--color-primary);--_button-theme-color: var(--color-on-primary)}._primary-variant_iyh6t_189{--_button-theme-background: var(--color-primary-variant);--_button-theme-color: var(--color-on-primary-variant)}._secondary_iyh6t_199{--_button-theme-background: var(--color-secondary);--_button-theme-color: var(--color-on-secondary)}._tertiary_iyh6t_209{--_button-theme-background: var(--color-tertiary);--_button-theme-color: var(--color-on-tertiary)}._error_iyh6t_219{--_button-theme-background: var(--color-error);--_button-theme-color: var(--color-on-error)}._inverse-surface_iyh6t_229{--_button-theme-background: var(--color-inverse-surface);--_button-theme-color: var(--color-inverse-on-surface)}._success_iyh6t_239{--_button-theme-background: var(--color-success);--_button-theme-color: var(--color-on-success)}._filled_iyh6t_251{--_button-background: var(--_button-theme-background);--_button-color: var(--_button-theme-color)}._outlined_iyh6t_261{--_button-background: transparent;--_button-color: var(--_button-theme-background)}._text_iyh6t_271{--_button-background: transparent;--_button-border-color: transparent;--_button-color: var(--_button-theme-background)}._splash_zhwi0_1{position:absolute;inline-size:25%;aspect-ratio:1/1;border-radius:50%;background-color:hsl(from var(--color-surface-variant) h s l / .5);animation:_ripple_zhwi0_1 .5s linear;opacity:0}@keyframes _ripple_zhwi0_1{0%{scale:0;opacity:1}to{scale:8;opacity:0}}._tooltip_5kv1r_1{font-size:.875rem;text-align:center;background-color:var(--_tooltip-background);color:var(--_tooltip-color);padding-inline:.75em;padding-block:.5em;outline:none;max-width:15rem;margin:.625rem;border-radius:var(--radius);box-shadow:var(--elevation-1);transition:transform .25s,opacity .25s;transform:translateZ(0)}._tooltip_5kv1r_1[data-placement=bottom]{--_origin: translateY(-.25rem)}._tooltip_5kv1r_1[data-placement=bottom] ._tooltip-arrow_5kv1r_53 svg{rotate:180deg}._tooltip_5kv1r_1[data-placement=top]{--_origin: translateY(.25rem)}._tooltip_5kv1r_1[data-placement=right]{--_origin: translateX(-.25rem)}._tooltip_5kv1r_1[data-placement=right] ._tooltip-arrow_5kv1r_53 svg{rotate:90deg}._tooltip_5kv1r_1[data-placement=left]{--_origin: translateX(.25rem)}._tooltip_5kv1r_1[data-placement=left] ._tooltip-arrow_5kv1r_53 svg{rotate:-90deg}._tooltip_5kv1r_1[data-entering],._tooltip_5kv1r_1[data-exiting]{transform:var(--_origin);opacity:0}._tooltip-arrow_5kv1r_53 svg{display:block;fill:var(--_tooltip-background);inline-size:.625rem;aspect-ratio:1/1}._primary_5kv1r_133{--_tooltip-background: var(--color-primary-container);--_tooltip-color: var(--color-on-primary-container)}._primary-variant_5kv1r_143{--_tooltip-background: var(--color-primary-variant-container);--_tooltip-color: var(--color-on-primary-variant-container)}._secondary_5kv1r_153{--_tooltip-background: var(--color-secondary-container);--_tooltip-color: var(--color-on-secondary-container)}._tertiary_5kv1r_163{--_tooltip-background: var(--color-tertiary-container);--_tooltip-color: var(--color-on-tertiary-container)}._error_5kv1r_173{--_tooltip-background: var(--color-error-container);--_tooltip-color: var(--color-on-error-container)}._inverse-surface_5kv1r_183{--_tooltip-background: var(--color-surface-container);--_tooltip-color: var(--color-on-surface)}._success_5kv1r_193{--_tooltip-background: var(--color-success-container);--_tooltip-color: var(--color-on-success-container)}._toggle-button-group_1tyg5_1{--_flex-direction: row;display:flex;flex-direction:var(--_flex-direction)}._toggle-button-group_1tyg5_1>button{border-radius:0}._toggle-button-group_1tyg5_1[data-orientation=vertical]{--_flex-direction: column;--radius-button: var(--radius)}._toggle-button-group_1tyg5_1[data-orientation=vertical]>button{margin-block-start:calc(-1 * var(--button-border-width))}._toggle-button-group_1tyg5_1[data-orientation=vertical]>button:first-child{border-radius:var(--radius-button) var(--radius-button) 0 0;margin-block-start:0}._toggle-button-group_1tyg5_1[data-orientation=vertical]>button:last-child{border-radius:0 0 var(--radius-button) var(--radius-button)}._toggle-button-group_1tyg5_1[data-orientation=horizontal]>button{margin-inline-start:calc(-1 * var(--button-border-width))}._toggle-button-group_1tyg5_1[data-orientation=horizontal]>button:first-child{margin-inline-start:0;border-radius:var(--radius-button) 0 0 var(--radius-button)}._toggle-button-group_1tyg5_1[data-orientation=horizontal]>button:last-child{border-radius:0 var(--radius-button) var(--radius-button) 0}
@@ -0,0 +1 @@
1
+ ._popover_cizdw_1{box-shadow:var(--elevation-2);border-radius:var(--radius);overflow:auto;max-inline-size:min(90vi,50rem);min-inline-size:min(25vi,10rem);transition:transform .25s,opacity .25s;transform:translateZ(0)}._popover_cizdw_1 [data-card=true]{--_card-padding-inline: .5em;--_card-padding-block: .5em;--_card-elevation: none}._popover_cizdw_1[data-placement=bottom]{--_origin: translateY(-.25rem)}._popover_cizdw_1[data-placement=top]{--_origin: translateY(.25rem)}._popover_cizdw_1[data-placement=right]{--_origin: translateX(-.25rem)}._popover_cizdw_1[data-placement=left]{--_origin: translateX(.25rem)}._popover_cizdw_1[data-entering],._popover_cizdw_1[data-exiting]{transform:var(--_origin);opacity:0}._visual-settings_hg2g0_1{display:grid;gap:1.5rem}._visual-settings_hg2g0_1[data-card=true]{--_card-padding-inline: 1rem;--_card-padding-block: 1rem}._settings-item_hg2g0_21{display:grid;gap:.5rem}._card_c3d4l_1{--_card-color: var(--color-on-surface);--_card-background: var(--color-surface);--_card-elevation: var(--elevation-1);--_card-radius: var(--radius);--_card-padding-inline: 1rem;--_card-padding-block: 1rem;--_card-opacity: 1;padding-inline:var(--_card-padding-inline);padding-block:var(--_card-padding-block);border-radius:var(--_card-radius);box-shadow:var(--_card-elevation);background-color:hsl(from var(--_card-background) h s l / var(--_card-opacity));color:var(--_card-color)}._glass_c3d4l_51{--_card-opacity: var(--glassmorphism-opacity);-webkit-backdrop-filter:var(--glassmorphism-filter);backdrop-filter:var(--glassmorphism-filter)}._solid_c3d4l_61{--_card-background: var(--color-surface-container)}._solid-low_c3d4l_69{--_card-background: var(--color-surface-container-low)}._solid-lowest_c3d4l_77{--_card-background: var(--color-surface-container-lowest)}._solid-high_c3d4l_85{--_card-background: var(--color-surface-container-high)}._solid-highest_c3d4l_93{--_card-background: var(--color-surface-container-highest)}._gradient_c3d4l_101{background-image:radial-gradient(ellipse at top,hsl(from var(--color-surface-container-low) h s l / var(--_card-opacity)),transparent),radial-gradient(ellipse at bottom,hsl(from var(--color-surface-container-high) h s l / var(--_card-opacity)),transparent);background-repeat:no-repeat}
@@ -1,4 +1,4 @@
1
- import { F as e } from "../../../FilledButton-LnYvKzE9.js";
1
+ import { F as e } from "../../../FilledButton-SpEu55ES.js";
2
2
  export {
3
3
  e as FilledButton
4
4
  };
@@ -1,4 +1,4 @@
1
- import { O as e } from "../../../OutlinedButton-BesEreKQ.js";
1
+ import { O as e } from "../../../OutlinedButton-QAeXI3Dj.js";
2
2
  export {
3
3
  e as OutlinedButton
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as e } from "../../../TextButton-Ct0ffSsq.js";
1
+ import { T as e } from "../../../TextButton-CWDZaF0c.js";
2
2
  export {
3
3
  e as TextButton
4
4
  };
@@ -1,4 +1,4 @@
1
- import { D as s } from "../../../Disclosure-sItjZ-jf.js";
1
+ import { D as s } from "../../../Disclosure-BGdAnqQv.js";
2
2
  export {
3
3
  s as Disclosure
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { D as i } from "../../../Disclosure-sItjZ-jf.js";
2
+ import { D as i } from "../../../Disclosure-BGdAnqQv.js";
3
3
  import { DisclosureGroup as u } from "react-aria-components";
4
4
  import '../../../assets/index7.css';const e = {
5
5
  "disclosure-group": "_disclosure-group_vh6v0_1"
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { B as r } from "../../../ButtonLink-DNXUq90W.js";
2
+ import { B as r } from "../../../ButtonLink-fUZZI7JR.js";
3
3
  import { ButtonVariant as i } from "../../Button/ButtonBase/index.js";
4
4
  const e = (t) => /* @__PURE__ */ o(r, { ...t, variant: i.filled });
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { B as n } from "../../../ButtonLink-DNXUq90W.js";
2
+ import { B as n } from "../../../ButtonLink-fUZZI7JR.js";
3
3
  import { ButtonVariant as r } from "../../Button/ButtonBase/index.js";
4
4
  const a = (t) => /* @__PURE__ */ o(n, { ...t, variant: r.outlined });
5
5
  export {
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
2
  import { M as h } from "../../../ModalBase-DOU0cBij.js";
3
- import { T as p } from "../../../TextButton-Ct0ffSsq.js";
3
+ import { T as p } from "../../../TextButton-CWDZaF0c.js";
4
4
  import { ColorTheme as u } from "../../../index.js";
5
5
  import '../../../assets/index8.css';var d = /* @__PURE__ */ ((o) => (o.start = "start", o.end = "end", o))(d || {});
6
6
  const v = "_modal_fqn0t_1", q = "_end_fqn0t_39", t = {
@@ -1,4 +1,4 @@
1
- import { N as e } from "../../../NavigationMenu-x2hSYr4B.js";
1
+ import { N as e } from "../../../NavigationMenu-DqDfWOnJ.js";
2
2
  export {
3
3
  e as NavigationMenu
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { useMediaQuery as t } from "usehooks-ts";
3
- import { N as e } from "../../../NavigationMenu-x2hSYr4B.js";
4
- import { N as m } from "../../../NavigationSidebar-mEaAZE9d.js";
3
+ import { N as e } from "../../../NavigationMenu-DqDfWOnJ.js";
4
+ import { N as m } from "../../../NavigationSidebar-Dx2ww8hp.js";
5
5
  const f = ({
6
6
  items: o,
7
7
  mediaQuery: a,
@@ -1,4 +1,4 @@
1
- import { N as o } from "../../../NavigationSidebar-mEaAZE9d.js";
1
+ import { N as o } from "../../../NavigationSidebar-Dx2ww8hp.js";
2
2
  export {
3
3
  o as NavigationSidebar
4
4
  };
@@ -1,2 +1,2 @@
1
1
  import { SelectProps } from './types';
2
- export declare const Select: ({ options, cardBackground, label, name, disabled, isRequired, triggerVariant, description, placeholder, selectedKey, onSelectionChange, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Select: ({ options, cardBackground, triggerTheme, label, name, disabled, isRequired, triggerVariant, description, placeholder, selectedKey, onSelectionChange, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,27 +1,28 @@
1
- import { jsxs as s, jsx as e, Fragment as n } from "react/jsx-runtime";
2
- import { F as m } from "../../FilledButton-LnYvKzE9.js";
1
+ import { jsxs as s, jsx as e, Fragment as m } from "react/jsx-runtime";
2
+ import { F as d } from "../../FilledButton-SpEu55ES.js";
3
3
  import { ButtonVariant as o } from "../Button/ButtonBase/index.js";
4
- import { Select as C, SelectValue as d, ListBox as N, Text as p, ListBoxItem as T } from "react-aria-components";
5
- import { P as S } from "../../Popover-CNBII_iI.js";
6
- import { ChevronsUpDown as V, Check as y } from "lucide-react";
7
- import { O as F } from "../../OutlinedButton-BesEreKQ.js";
8
- import { T as $ } from "../../TextButton-Ct0ffSsq.js";
9
- import { ColorTheme as h } from "../../index.js";
10
- import { T as L } from "../../Tooltip-D-jCnOvo.js";
11
- import { L as D, F as j } from "../../FieldError-CvUKcRtm.js";
12
- import { B as I, C as O } from "../../BaseCard-DrG8XXVz.js";
13
- import '../../assets/index3.css';const P = "_select_1tehw_1", E = "_trigger_1tehw_37", r = {
14
- select: P,
4
+ import { Select as b, SelectValue as p, ListBox as N, Text as h, ListBoxItem as T } from "react-aria-components";
5
+ import { P as V } from "../../Popover-CNBII_iI.js";
6
+ import { ChevronsUpDown as y, Check as F } from "lucide-react";
7
+ import { O as S } from "../../OutlinedButton-QAeXI3Dj.js";
8
+ import { T as $ } from "../../TextButton-CWDZaF0c.js";
9
+ import { ColorTheme as L } from "../../index.js";
10
+ import { T as D } from "../../Tooltip-D-jCnOvo.js";
11
+ import { L as j, F as I } from "../../FieldError-CvUKcRtm.js";
12
+ import { B as O, C as P } from "../../BaseCard-DrG8XXVz.js";
13
+ import '../../assets/index3.css';const E = "_select_1tehw_1", U = "_trigger_1tehw_37", i = {
14
+ select: E,
15
15
  "selected-value": "_selected-value_1tehw_11",
16
16
  "option-description": "_option-description_1tehw_19",
17
- trigger: E,
17
+ trigger: U,
18
18
  "options-list": "_options-list_1tehw_51",
19
19
  "options-item-group": "_options-item-group_1tehw_63",
20
20
  "options-item": "_options-item_1tehw_63"
21
- }, X = ({
21
+ }, Y = ({
22
22
  options: u,
23
- cardBackground: _ = O.gradient,
24
- label: a,
23
+ cardBackground: _ = P.gradient,
24
+ triggerTheme: a = L.inverseSurface,
25
+ label: n,
25
26
  name: f,
26
27
  disabled: g,
27
28
  isRequired: w,
@@ -31,51 +32,51 @@ import '../../assets/index3.css';const P = "_select_1tehw_1", E = "_trigger_1teh
31
32
  selectedKey: k,
32
33
  onSelectionChange: v
33
34
  }) => {
34
- let i;
35
+ let r;
35
36
  switch (x) {
36
37
  case o.filled:
37
- i = m;
38
+ r = d;
38
39
  break;
39
40
  case o.outlined:
40
- i = F;
41
+ r = S;
41
42
  break;
42
43
  case o.text:
43
- i = $;
44
+ r = $;
44
45
  break;
45
46
  default:
46
- i = m;
47
+ r = d;
47
48
  }
48
49
  return /* @__PURE__ */ s(
49
- C,
50
+ b,
50
51
  {
51
- className: r.select,
52
+ className: i.select,
52
53
  isDisabled: g,
53
54
  isRequired: w,
54
55
  name: f,
55
- selectedKey: k,
56
- onSelectionChange: v,
56
+ value: k,
57
+ onChange: v,
57
58
  children: [
58
- a && /* @__PURE__ */ e(D, { children: a }),
59
- /* @__PURE__ */ e(L, { description: B, theme: h.inverseSurface, children: /* @__PURE__ */ e(i, { theme: h.inverseSurface, children: /* @__PURE__ */ s("span", { className: r.trigger, children: [
60
- c ? /* @__PURE__ */ e(d, { className: `${r["selected-value"]}`, children: ({ defaultChildren: t, isPlaceholder: l }) => l ? c : t }) : /* @__PURE__ */ e(d, {}),
61
- /* @__PURE__ */ e(V, {})
59
+ n && /* @__PURE__ */ e(j, { children: n }),
60
+ /* @__PURE__ */ e(D, { description: B, theme: a, children: /* @__PURE__ */ e(r, { theme: a, children: /* @__PURE__ */ s("span", { className: i.trigger, children: [
61
+ c ? /* @__PURE__ */ e(p, { className: `${i["selected-value"]}`, children: ({ defaultChildren: t, isPlaceholder: l }) => l ? c : t }) : /* @__PURE__ */ e(p, {}),
62
+ /* @__PURE__ */ e(y, {})
62
63
  ] }) }) }),
63
- /* @__PURE__ */ e(j, {}),
64
- /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(I, { background: _, children: /* @__PURE__ */ e(N, { className: `${r["options-list"]}`, items: u, children: (t) => {
65
- const l = /* @__PURE__ */ s(n, { children: [
66
- /* @__PURE__ */ e(p, { children: t.displayValue }),
67
- t.description && /* @__PURE__ */ e(p, { className: r["option-description"], children: t.description })
64
+ /* @__PURE__ */ e(I, {}),
65
+ /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(O, { background: _, children: /* @__PURE__ */ e(N, { className: `${i["options-list"]}`, items: u, children: (t) => {
66
+ const l = /* @__PURE__ */ s(m, { children: [
67
+ /* @__PURE__ */ e(h, { children: t.displayValue }),
68
+ t.description && /* @__PURE__ */ e(h, { className: i["option-description"], children: t.description })
68
69
  ] });
69
70
  return /* @__PURE__ */ e(
70
71
  T,
71
72
  {
72
- className: `${r["options-item-group"]}`,
73
+ className: `${i["options-item-group"]}`,
73
74
  id: t.key,
74
75
  textValue: t.displayValue,
75
76
  isDisabled: t.disabled,
76
- children: ({ isSelected: b }) => /* @__PURE__ */ s(n, { children: [
77
- /* @__PURE__ */ e("div", { className: `${r["options-item"]}`, children: l }),
78
- b && /* @__PURE__ */ e(y, {})
77
+ children: ({ isSelected: C }) => /* @__PURE__ */ s(m, { children: [
78
+ /* @__PURE__ */ e("div", { className: `${i["options-item"]}`, children: l }),
79
+ C && /* @__PURE__ */ e(F, {})
79
80
  ] })
80
81
  },
81
82
  t.key
@@ -86,5 +87,5 @@ import '../../assets/index3.css';const P = "_select_1tehw_1", E = "_trigger_1teh
86
87
  );
87
88
  };
88
89
  export {
89
- X as Select
90
+ Y as Select
90
91
  };
@@ -1,6 +1,7 @@
1
1
  import { Key } from 'react-aria-components';
2
2
  import { ButtonVariant } from '../Button/ButtonBase/types';
3
3
  import { CardBackground } from '../Card/BaseCard';
4
+ import { ColorTheme } from '../../utils/types';
4
5
  export type SelectOptions = {
5
6
  key: string;
6
7
  displayValue: string;
@@ -10,6 +11,7 @@ export type SelectOptions = {
10
11
  export interface SelectProps {
11
12
  options: SelectOptions[];
12
13
  cardBackground?: CardBackground;
14
+ triggerTheme?: ColorTheme;
13
15
  isRequired?: boolean;
14
16
  label?: string;
15
17
  name?: string;
@@ -0,0 +1,2 @@
1
+ export * from './ComponentShapeSwitcher';
2
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ import { b as a, C as p, a as n } from "../../../ComponentShapeSwitcher-CY_93STw.js";
2
+ export {
3
+ a as ComponentShapeKey,
4
+ p as ComponentShapeSwitcher,
5
+ n as ComponentShapes
6
+ };
@@ -0,0 +1,2 @@
1
+ export * from './ThemeSwitcher';
2
+ export * from './types';
@@ -0,0 +1,4 @@
1
+ import { T as h } from "../../../ThemeSwitcher-Nf1-Z_ql.js";
2
+ export {
3
+ h as ThemeSwitcher
4
+ };
@@ -0,0 +1,2 @@
1
+ export * from './VisualSettings';
2
+ export * from './types';
@@ -0,0 +1,124 @@
1
+ import { jsx as s, jsxs as r, Fragment as g } from "react/jsx-runtime";
2
+ import { w as C, l as d, e as v, c as P, a as w, j as n, z as m, s as T } from "../../../index-BG6gd3OK.js";
3
+ import { Popover as b, DialogTrigger as k, Dialog as x, Button as y } from "react-aria-components";
4
+ import { C as _ } from "../../../ComponentShapeSwitcher-CY_93STw.js";
5
+ import { T as u } from "../../../ThemeSwitcher-Nf1-Z_ql.js";
6
+ import { Settings as j } from "lucide-react";
7
+ import '../../../assets/index13.css';const z = "_popover_cizdw_1", D = {
8
+ popover: z
9
+ }, H = (e) => /* @__PURE__ */ s(
10
+ b,
11
+ {
12
+ ...e,
13
+ className: e.className ?? D.popover
14
+ }
15
+ ), L = ({
16
+ trigger: e,
17
+ popoverProps: i,
18
+ dialogTriggerProps: t,
19
+ ...o
20
+ }) => /* @__PURE__ */ r(k, { ...t, children: [
21
+ e,
22
+ /* @__PURE__ */ s(H, { ...i, children: /* @__PURE__ */ s(x, { ...o }) })
23
+ ] }), V = ({
24
+ variant: e,
25
+ theme: i = w.primary,
26
+ shape: t = d.rectangle,
27
+ description: o,
28
+ children: a,
29
+ ...c
30
+ }) => {
31
+ const { coords: l, handlePress: f } = C(c.onPress), S = typeof a == "function";
32
+ return t === d.shrink && e !== v.text && (t = d.rectangle), /* @__PURE__ */ s(P, { theme: i, description: o, children: /* @__PURE__ */ s(
33
+ y,
34
+ {
35
+ ...c,
36
+ className: c.className ?? `${n.button} ${n["button-link"]} ${n[e]} ${n[i]} ${n[t]}`,
37
+ onPress: f,
38
+ children: S ? ((N) => /* @__PURE__ */ r(g, { children: [
39
+ l && /* @__PURE__ */ s(m, { ...l }),
40
+ a(N)
41
+ ] })) : /* @__PURE__ */ r(g, { children: [
42
+ l && /* @__PURE__ */ s(m, { ...l }),
43
+ a
44
+ ] })
45
+ }
46
+ ) });
47
+ }, q = (e) => {
48
+ const { children: i } = e;
49
+ return /* @__PURE__ */ s(V, { ...e, variant: v.text, children: i });
50
+ }, $ = {
51
+ "visual-settings": "_visual-settings_hg2g0_1",
52
+ "settings-item": "_settings-item_hg2g0_21"
53
+ };
54
+ var p = /* @__PURE__ */ ((e) => (e.solid = "solid", e.solidLow = "solid-low", e.solidLowest = "solid-lowest", e.solidHigh = "solid-high", e.solidHighest = "solid-highest", e.gradient = "gradient", e))(p || {});
55
+ const A = "_card_c3d4l_1", B = "_glass_c3d4l_51", E = "_solid_c3d4l_61", F = "_gradient_c3d4l_101", h = {
56
+ card: A,
57
+ glass: B,
58
+ solid: E,
59
+ "solid-low": "_solid-low_c3d4l_69",
60
+ "solid-lowest": "_solid-lowest_c3d4l_77",
61
+ "solid-high": "_solid-high_c3d4l_85",
62
+ "solid-highest": "_solid-highest_c3d4l_93",
63
+ gradient: F
64
+ }, G = ({
65
+ background: e = p.solid,
66
+ componentStyle: i = T.normal,
67
+ children: t,
68
+ ...o
69
+ }) => /* @__PURE__ */ s(
70
+ "div",
71
+ {
72
+ ...o,
73
+ className: `${o.className ?? ""} ${h[i]} ${h.card} ${h[e]}`,
74
+ "data-card": "true",
75
+ children: t
76
+ }
77
+ ), J = ({
78
+ background: e = p.solid,
79
+ ...i
80
+ }) => /* @__PURE__ */ s(G, { ...i, background: e }), W = ({
81
+ ui: e = !0
82
+ }) => {
83
+ if (!e)
84
+ return /* @__PURE__ */ r(g, { children: [
85
+ /* @__PURE__ */ s(u, { ui: !1 }),
86
+ /* @__PURE__ */ s(_, { ui: !1 })
87
+ ] });
88
+ const i = [
89
+ {
90
+ Component: u,
91
+ heading: "Personalize Color Theme",
92
+ description: "Adjust the app's overall color scheme."
93
+ },
94
+ {
95
+ Component: _,
96
+ heading: "Edge Style",
97
+ description: "Toggle between rounded and sharp component edges."
98
+ }
99
+ ], t = w.inverseSurface;
100
+ return /* @__PURE__ */ s(
101
+ L,
102
+ {
103
+ trigger: /* @__PURE__ */ s(
104
+ q,
105
+ {
106
+ shape: d.square,
107
+ description: "Visual Settings",
108
+ theme: t,
109
+ children: /* @__PURE__ */ s(j, {})
110
+ }
111
+ ),
112
+ children: /* @__PURE__ */ s(J, { className: $["visual-settings"], children: i.map((o) => /* @__PURE__ */ r("div", { className: $["settings-item"], children: [
113
+ /* @__PURE__ */ r("div", { children: [
114
+ /* @__PURE__ */ s("h3", { "data-heading": "true", children: o.heading }),
115
+ /* @__PURE__ */ s("p", { children: o.description })
116
+ ] }),
117
+ /* @__PURE__ */ s(o.Component, { theme: t })
118
+ ] }, o.heading)) })
119
+ }
120
+ );
121
+ };
122
+ export {
123
+ W as VisualSettings
124
+ };
@@ -0,0 +1,118 @@
1
+ import { jsx as i, jsxs as y } from "react/jsx-runtime";
2
+ import { TooltipTrigger as m, Tooltip as p, OverlayArrow as v, ToggleButton as g, ToggleButtonGroup as f } from "react-aria-components";
3
+ import { useState as $, useRef as u, useEffect as k } from "react";
4
+ import './assets/index12.css';var _ = /* @__PURE__ */ ((r) => (r.primary = "primary", r.primaryVariant = "primary-variant", r.secondary = "secondary", r.tertiary = "tertiary", r.error = "error", r.inverseSurface = "inverse-surface", r.success = "success", r))(_ || {}), b = /* @__PURE__ */ ((r) => (r.normal = "normal", r.glass = "glass", r))(b || {}), d = /* @__PURE__ */ ((r) => (r.filled = "filled", r.outlined = "outlined", r.text = "text", r))(d || {}), h = /* @__PURE__ */ ((r) => (r.rectangle = "rectangle", r.square = "square", r.avatar = "avatar", r.shrink = "shrink", r))(h || {});
5
+ const x = "_button_iyh6t_1", w = "_square_iyh6t_123", T = "_avatar_iyh6t_139", D = "_rectangle_iyh6t_155", N = "_shrink_iyh6t_167", S = "_primary_iyh6t_179", q = "_secondary_iyh6t_199", B = "_tertiary_iyh6t_209", j = "_error_iyh6t_219", P = "_success_iyh6t_239", z = "_filled_iyh6t_251", L = "_outlined_iyh6t_261", A = "_text_iyh6t_271", n = {
6
+ button: x,
7
+ "button-link": "_button-link_iyh6t_91",
8
+ square: w,
9
+ avatar: T,
10
+ rectangle: D,
11
+ shrink: N,
12
+ primary: S,
13
+ "primary-variant": "_primary-variant_iyh6t_189",
14
+ secondary: q,
15
+ tertiary: B,
16
+ error: j,
17
+ "inverse-surface": "_inverse-surface_iyh6t_229",
18
+ success: P,
19
+ filled: z,
20
+ outlined: L,
21
+ text: A
22
+ }, E = (r) => {
23
+ const [t, e] = $(null), a = u(0);
24
+ let s = u(void 0), l = (o) => {
25
+ e({ id: a.current++, x: o.x, y: o.y }), o.x !== -1 && o.y !== -1 && (clearTimeout(s.current), s.current = setTimeout(() => e(null), 500)), r?.(o);
26
+ };
27
+ return k(() => () => {
28
+ clearTimeout(s.current);
29
+ }, []), { coords: t, handlePress: l };
30
+ }, G = "_splash_zhwi0_1", I = {
31
+ splash: G
32
+ }, M = ({ id: r, x: t, y: e }) => /* @__PURE__ */ i(
33
+ "div",
34
+ {
35
+ className: `${I.splash}`,
36
+ style: {
37
+ insetInlineStart: t,
38
+ insetBlockStart: e,
39
+ translate: "-50% -50%"
40
+ }
41
+ },
42
+ `${r}`
43
+ ), O = "_tooltip_5kv1r_1", R = "_primary_5kv1r_133", V = "_secondary_5kv1r_153", C = "_tertiary_5kv1r_163", F = "_error_5kv1r_173", H = "_success_5kv1r_193", c = {
44
+ tooltip: O,
45
+ "tooltip-arrow": "_tooltip-arrow_5kv1r_53",
46
+ primary: R,
47
+ "primary-variant": "_primary-variant_5kv1r_143",
48
+ secondary: V,
49
+ tertiary: C,
50
+ error: F,
51
+ "inverse-surface": "_inverse-surface_5kv1r_183",
52
+ success: H
53
+ }, J = ({
54
+ children: r,
55
+ description: t,
56
+ theme: e = _.inverseSurface,
57
+ delay: a = 250,
58
+ closeDelay: s = 150
59
+ }) => t ? /* @__PURE__ */ y(m, { delay: a, closeDelay: s, children: [
60
+ r,
61
+ /* @__PURE__ */ y(p, { className: `${c.tooltip} ${c[e]}`, children: [
62
+ /* @__PURE__ */ i(v, { className: `${c["tooltip-arrow"]}`, children: /* @__PURE__ */ i("svg", { viewBox: "0 0 8 8", children: /* @__PURE__ */ i("path", { d: "M0 0 L4 4 L8 0" }) }) }),
63
+ t
64
+ ] })
65
+ ] }) : r, K = ({
66
+ id: r,
67
+ value: t,
68
+ description: e,
69
+ isDisabled: a,
70
+ theme: s = _.primary
71
+ }) => {
72
+ const { coords: l, handlePress: o } = E();
73
+ return /* @__PURE__ */ i(J, { description: e, children: /* @__PURE__ */ y(
74
+ g,
75
+ {
76
+ id: r,
77
+ onPress: o,
78
+ className: `${n.button} ${n[s]} ${n[d.outlined]} ${n[h.rectangle]}`,
79
+ isDisabled: a,
80
+ children: [
81
+ l && /* @__PURE__ */ i(M, { ...l }),
82
+ t
83
+ ]
84
+ }
85
+ ) });
86
+ }, Q = {
87
+ "toggle-button-group": "_toggle-button-group_1tyg5_1"
88
+ }, Y = ({
89
+ items: r,
90
+ theme: t = _.primary,
91
+ ...e
92
+ }) => /* @__PURE__ */ i(
93
+ f,
94
+ {
95
+ ...e,
96
+ className: e.className ?? Q["toggle-button-group"],
97
+ children: r.map((a) => /* @__PURE__ */ i(
98
+ K,
99
+ {
100
+ ...a,
101
+ theme: t,
102
+ isDisabled: e.isDisabled || a.isDisabled
103
+ },
104
+ a.id
105
+ ))
106
+ }
107
+ );
108
+ export {
109
+ _ as a,
110
+ Y as b,
111
+ J as c,
112
+ d as e,
113
+ n as j,
114
+ h as l,
115
+ b as s,
116
+ E as w,
117
+ M as z
118
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adgytec/adgytec-web-ui-components",
3
3
  "private": false,
4
- "version": "0.0.21",
4
+ "version": "1.0.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -157,6 +157,18 @@
157
157
  "./Tree": {
158
158
  "import": "./dist/components/Tree/index.js",
159
159
  "types": "./dist/components/Tree/index.d.ts"
160
+ },
161
+ "./VisualSettings/ComponentShapeSwitcher": {
162
+ "import": "./dist/components/VisualSettings/ComponentShapeSwitcher/index.js",
163
+ "types": "./dist/components/VisualSettings/ComponentShapeSwitcher/index.d.ts"
164
+ },
165
+ "./VisualSettings/ThemeSwitcher": {
166
+ "import": "./dist/components/VisualSettings/ThemeSwitcher/index.js",
167
+ "types": "./dist/components/VisualSettings/ThemeSwitcher/index.d.ts"
168
+ },
169
+ "./VisualSettings/VisualSettings": {
170
+ "import": "./dist/components/VisualSettings/VisualSettings/index.js",
171
+ "types": "./dist/components/VisualSettings/VisualSettings/index.d.ts"
160
172
  }
161
173
  },
162
174
  "module": "./dist/index.js",
@@ -174,33 +186,33 @@
174
186
  "release": "npm run build && npm publish --public"
175
187
  },
176
188
  "dependencies": {
177
- "lucide-react": "^0.525.0",
178
- "react": "^19.1.0",
179
- "react-aria-components": "^1.10.1",
180
- "react-dom": "^19.1.0",
189
+ "lucide-react": "^0.562.0",
190
+ "react": "^19.2.3",
191
+ "react-aria-components": "^1.14.0",
192
+ "react-dom": "^19.2.3",
181
193
  "usehooks-ts": "^3.1.1",
182
- "zod": "^4.0.5"
194
+ "zod": "^4.3.5"
183
195
  },
184
196
  "devDependencies": {
185
- "@eslint/js": "^9.29.0",
197
+ "@eslint/js": "^9.39.2",
186
198
  "@react-aria/optimize-locales-plugin": "^1.1.5",
187
- "@types/node": "^24.0.14",
188
- "@types/react": "^19.1.8",
189
- "@types/react-dom": "^19.1.6",
190
- "@vitejs/plugin-react-swc": "^3.10.2",
191
- "autoprefixer": "^10.4.21",
192
- "eslint": "^9.29.0",
193
- "eslint-plugin-react-hooks": "^5.2.0",
194
- "eslint-plugin-react-refresh": "^0.4.20",
195
- "glob": "^11.0.3",
196
- "globals": "^16.2.0",
197
- "prettier": "^3.6.2",
198
- "typescript": "~5.8.3",
199
- "typescript-eslint": "^8.34.1",
200
- "vite": "^7.0.0",
199
+ "@types/node": "^25.0.8",
200
+ "@types/react": "^19.2.8",
201
+ "@types/react-dom": "^19.2.3",
202
+ "@vitejs/plugin-react-swc": "^4.2.2",
203
+ "autoprefixer": "^10.4.23",
204
+ "eslint": "^9.39.2",
205
+ "eslint-plugin-react-hooks": "^7.0.1",
206
+ "eslint-plugin-react-refresh": "^0.4.26",
207
+ "glob": "^13.0.0",
208
+ "globals": "^17.0.0",
209
+ "prettier": "^3.7.4",
210
+ "typescript": "~5.9.3",
211
+ "typescript-eslint": "^8.53.0",
212
+ "vite": "^7.3.1",
201
213
  "vite-plugin-dts": "^4.5.4",
202
214
  "vite-plugin-lib-inject-css": "^2.2.2",
203
- "vite-plugin-static-copy": "^3.1.1"
215
+ "vite-plugin-static-copy": "^3.1.4"
204
216
  },
205
217
  "author": {
206
218
  "name": "Adgytec",
@@ -1,47 +0,0 @@
1
- import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
- import { M as u } from "./MenuLabel-B0FrGXKS.js";
3
- import { L as m } from "./Link-Be6F1iXD.js";
4
- import { T as i } from "./TextButton-Ct0ffSsq.js";
5
- import { ColorTheme as n } from "./index.js";
6
- import { ButtonShape as c } from "./components/Button/ButtonBase/index.js";
7
- import { ChevronDown as p } from "lucide-react";
8
- import './assets/NavigationMenu.css';const h = "_menu_sata7_1", d = {
9
- menu: h
10
- }, k = ({ items: s, className: o }) => {
11
- const t = s.filter((e) => e.type !== "separator");
12
- return /* @__PURE__ */ r("div", { className: o || d.menu, children: t.map((e) => {
13
- switch (e.type) {
14
- case "sub-items":
15
- return /* @__PURE__ */ a(u, { menuItems: e.subItems, children: [
16
- e.node,
17
- /* @__PURE__ */ r(p, {})
18
- ] }, e.id);
19
- case "item-node":
20
- return e.node;
21
- case "link":
22
- return /* @__PURE__ */ r(
23
- m,
24
- {
25
- href: e.href,
26
- target: e.target,
27
- underline: e.active,
28
- theme: e.active ? n.primary : n.inverseSurface,
29
- children: e.node
30
- }
31
- );
32
- case "button":
33
- return /* @__PURE__ */ r(
34
- i,
35
- {
36
- onPress: e.onPress,
37
- theme: n.inverseSurface,
38
- shape: c.shrink,
39
- children: e.node
40
- }
41
- );
42
- }
43
- }) });
44
- };
45
- export {
46
- k as N
47
- };
@@ -1,9 +0,0 @@
1
- export interface ApiErrorResponse {
2
- message?: string;
3
- fieldErrors?: Record<string, string | string[]>;
4
- }
5
- export declare class ApiError extends Error {
6
- data: ApiErrorResponse;
7
- response: Response;
8
- constructor(response: Response, data: ApiErrorResponse);
9
- }
@@ -1 +0,0 @@
1
- export declare function getEnvVar(key: string, defaultValue?: string): string;