@adgytec/adgytec-web-ui-components 0.0.22 → 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.
- package/dist/{BaseCard-DwISGHZS.js → BaseCard-DrG8XXVz.js} +4 -4
- package/dist/{Button-Dzny6hTG.js → Button-Dtvxu-co.js} +6 -6
- package/dist/{ButtonLink-CBN0G98a.js → ButtonLink-fUZZI7JR.js} +5 -5
- package/dist/{ComponentShapeSwitcher-BjQDLIf4.js → ComponentShapeSwitcher-CY_93STw.js} +1 -1
- package/dist/{Disclosure-Dq8vN5eK.js → Disclosure-BGdAnqQv.js} +8 -8
- package/dist/{FilledButton-D7z5cN5n.js → FilledButton-SpEu55ES.js} +1 -1
- package/dist/{Link-CnRAx1uH.js → Link-Be6F1iXD.js} +2 -2
- package/dist/{Menu-CfOITc2Q.js → Menu-DvZqs_yA.js} +1 -1
- package/dist/{MenuLabel-DYMKz1XJ.js → MenuLabel-B0FrGXKS.js} +2 -2
- package/dist/{ModalBase-bdXf9IQh.js → ModalBase-DOU0cBij.js} +1 -1
- package/dist/NavigationMenu-DqDfWOnJ.js +49 -0
- package/dist/{NavigationSidebar-BG7cSZai.js → NavigationSidebar-Dx2ww8hp.js} +7 -7
- package/dist/{OutlinedButton-DtPOxjfV.js → OutlinedButton-QAeXI3Dj.js} +1 -1
- package/dist/{Sidebar-BDLl0HXv.js → Sidebar-BqNH6hIl.js} +1 -1
- package/dist/{TextButton-DAbG31wy.js → TextButton-CWDZaF0c.js} +1 -1
- package/dist/{ThemeSwitcher-DWOWeXUU.js → ThemeSwitcher-Nf1-Z_ql.js} +1 -1
- package/dist/{ToggleButton-DejyVVCf.js → ToggleButton-DPy_Urwc.js} +2 -2
- package/dist/{Tooltip-TbcvVNbx.js → Tooltip-D-jCnOvo.js} +1 -1
- package/dist/components/Avatar/index.js +3 -3
- package/dist/components/Button/FilledButton/index.js +1 -1
- package/dist/components/Button/OutlinedButton/index.js +1 -1
- package/dist/components/Button/TextButton/index.js +1 -1
- package/dist/components/Button/ToggleButton/index.js +1 -1
- package/dist/components/Card/BaseCard/index.js +1 -1
- package/dist/components/Card/GradientCard/index.js +1 -1
- package/dist/components/Card/SolidCard/index.js +1 -1
- package/dist/components/Disclosure/Disclosure/index.js +1 -1
- package/dist/components/Disclosure/DisclousureGroup/index.js +1 -1
- package/dist/components/Link/FilledButtonLink/index.js +1 -1
- package/dist/components/Link/LinkBase/index.js +1 -1
- package/dist/components/Link/OutlinedButtonLink/index.js +1 -1
- package/dist/components/Menu/MenuButton/index.js +1 -1
- package/dist/components/Menu/MenuLabel/index.js +1 -1
- package/dist/components/Modal/ModalAction/index.js +14 -14
- package/dist/components/Modal/ModalBase/index.js +1 -1
- package/dist/components/Navigation/NavigationMenu/index.js +1 -1
- package/dist/components/Navigation/NavigationResponsive/index.js +2 -2
- package/dist/components/Navigation/NavigationSidebar/index.js +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/index.js +40 -39
- package/dist/components/Select/types.d.ts +2 -0
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/ToggleButtonGroup/index.js +7 -7
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/VisualSettings/ComponentShapeSwitcher/index.js +1 -1
- package/dist/components/VisualSettings/ThemeSwitcher/index.js +1 -1
- package/dist/components/VisualSettings/VisualSettings/index.js +11 -11
- package/dist/{index-CpZa0Xux.js → index-BG6gd3OK.js} +12 -12
- package/dist/index.d.ts +0 -2
- package/dist/index.js +3 -22
- package/package.json +22 -22
- package/dist/NavigationMenu-12u9zep-.js +0 -47
- package/dist/types-a-x658UQ.js +0 -5
- package/dist/utils/apiError.d.ts +0 -9
- package/dist/utils/env.d.ts +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentStyle as e } from "./index.js";
|
|
3
3
|
import './assets/BaseCard.css';var o = /* @__PURE__ */ ((s) => (s.solid = "solid", s.solidLow = "solid-low", s.solidLowest = "solid-lowest", s.solidHigh = "solid-high", s.solidHighest = "solid-highest", s.gradient = "gradient", s))(o || {});
|
|
4
|
-
const
|
|
5
|
-
card:
|
|
6
|
-
glass:
|
|
4
|
+
const c = "_card_c3d4l_1", a = "_glass_c3d4l_51", h = "_solid_c3d4l_61", r = "_gradient_c3d4l_101", l = {
|
|
5
|
+
card: c,
|
|
6
|
+
glass: a,
|
|
7
7
|
solid: h,
|
|
8
8
|
"solid-low": "_solid-low_c3d4l_69",
|
|
9
9
|
"solid-lowest": "_solid-lowest_c3d4l_77",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as s, jsxs as l, Fragment as c } from "react/jsx-runtime";
|
|
2
2
|
import { u as $, s as t, S as u } from "./Splash-neeaI9j6.js";
|
|
3
3
|
import { Button as d } from "react-aria-components";
|
|
4
|
-
import { T as x } from "./Tooltip-
|
|
4
|
+
import { T as x } from "./Tooltip-D-jCnOvo.js";
|
|
5
5
|
import { ButtonShape as a, ButtonVariant as S } from "./components/Button/ButtonBase/index.js";
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
6
|
+
import { ColorTheme as g } from "./index.js";
|
|
7
|
+
const C = ({
|
|
8
8
|
variant: i,
|
|
9
9
|
theme: m = g.primary,
|
|
10
10
|
shape: r = a.rectangle,
|
|
@@ -19,10 +19,10 @@ const k = ({
|
|
|
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
|
] })
|
|
@@ -30,5 +30,5 @@ const k = ({
|
|
|
30
30
|
) });
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
C as B
|
|
34
34
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as i, Fragment as a } from "react/jsx-runtime";
|
|
2
2
|
import { u as $, s as o, S as l } from "./Splash-neeaI9j6.js";
|
|
3
3
|
import { Link as B } from "react-aria-components";
|
|
4
|
-
import { T as S } from "./Tooltip-
|
|
4
|
+
import { T as S } from "./Tooltip-D-jCnOvo.js";
|
|
5
5
|
import { ButtonVariant as k, ButtonShape as x } from "./components/Button/ButtonBase/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ColorTheme as y } from "./index.js";
|
|
7
7
|
const F = ({
|
|
8
8
|
variant: m = k.filled,
|
|
9
9
|
theme: n = y.primary,
|
|
@@ -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__ */ a
|
|
24
|
+
children: d ? ((h) => /* @__PURE__ */ i(a, { children: [
|
|
25
25
|
t && /* @__PURE__ */ r(l, { ...t }),
|
|
26
26
|
s(h)
|
|
27
|
-
] }) : /* @__PURE__ */ a
|
|
27
|
+
] })) : /* @__PURE__ */ i(a, { children: [
|
|
28
28
|
t && /* @__PURE__ */ r(l, { ...t }),
|
|
29
29
|
s
|
|
30
30
|
] })
|
|
@@ -2,7 +2,7 @@ import { jsx as a, Fragment as h } from "react/jsx-runtime";
|
|
|
2
2
|
import { useLocalStorage as i } from "usehooks-ts";
|
|
3
3
|
import { useEffect as u } from "react";
|
|
4
4
|
import "react-aria-components";
|
|
5
|
-
import { b as d, a as f } from "./index-
|
|
5
|
+
import { b as d, a as f } from "./index-BG6gd3OK.js";
|
|
6
6
|
var r = /* @__PURE__ */ ((e) => (e.sharp = "sharp", e.round = "round", e))(r || {});
|
|
7
7
|
const l = "component-shape-preference", x = ({
|
|
8
8
|
ui: e = !0,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
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-
|
|
5
|
-
import {
|
|
4
|
+
import { T as a } from "./TextButton-CWDZaF0c.js";
|
|
5
|
+
import { ColorTheme as m } from "./index.js";
|
|
6
6
|
import { ButtonShape as p } from "./components/Button/ButtonBase/index.js";
|
|
7
|
-
import './assets/Disclosure.css';const h = "_disclosure_1cz7p_1", u = "_trigger_1cz7p_23", g = "_panel_1cz7p_55",
|
|
7
|
+
import './assets/Disclosure.css';const h = "_disclosure_1cz7p_1", u = "_trigger_1cz7p_23", g = "_panel_1cz7p_55", e = {
|
|
8
8
|
disclosure: h,
|
|
9
9
|
trigger: u,
|
|
10
10
|
panel: g
|
|
11
|
-
},
|
|
12
|
-
/* @__PURE__ */ r("h2", { className:
|
|
11
|
+
}, N = ({ heading: o, children: t, id: i }) => /* @__PURE__ */ s(c, { className: e.disclosure, id: i, children: [
|
|
12
|
+
/* @__PURE__ */ r("h2", { className: e.trigger, children: /* @__PURE__ */ s(
|
|
13
13
|
a,
|
|
14
14
|
{
|
|
15
15
|
slot: "trigger",
|
|
@@ -21,8 +21,8 @@ import './assets/Disclosure.css';const h = "_disclosure_1cz7p_1", u = "_trigger_
|
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
) }),
|
|
24
|
-
/* @__PURE__ */ r(l, { className:
|
|
24
|
+
/* @__PURE__ */ r(l, { className: e.panel, children: /* @__PURE__ */ r("p", { children: t }) })
|
|
25
25
|
] });
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
N as D
|
|
28
28
|
};
|
|
@@ -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-
|
|
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 });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Link as t } from "react-aria-components";
|
|
3
|
-
import {
|
|
4
|
-
import { T as c } from "./Tooltip-
|
|
3
|
+
import { ColorTheme as _ } from "./index.js";
|
|
4
|
+
import { T as c } from "./Tooltip-D-jCnOvo.js";
|
|
5
5
|
import './assets/Link.css';const m = "_link_e0vn4_1", y = "_primary_e0vn4_65", v = "_secondary_e0vn4_81", l = "_tertiary_e0vn4_89", p = "_error_e0vn4_97", u = "_success_e0vn4_113", s = {
|
|
6
6
|
link: m,
|
|
7
7
|
primary: y,
|
|
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { MenuTrigger as d, Menu as m, Separator as h, MenuItem as l, SubmenuTrigger as _ } from "react-aria-components";
|
|
3
3
|
import { P as u } from "./Popover-CNBII_iI.js";
|
|
4
4
|
import { ChevronRight as g } from "lucide-react";
|
|
5
|
-
import { B as c, C as f } from "./BaseCard-
|
|
5
|
+
import { B as c, C as f } from "./BaseCard-DrG8XXVz.js";
|
|
6
6
|
import './assets/Menu.css';const x = "_menu_18vtx_1", v = "_separator_18vtx_85", s = {
|
|
7
7
|
menu: x,
|
|
8
8
|
"menu-item": "_menu-item_18vtx_13",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { M as l } from "./Menu-
|
|
2
|
+
import { M as l } from "./Menu-DvZqs_yA.js";
|
|
3
3
|
import { Pressable as t } from "react-aria-components";
|
|
4
|
-
import { T as a } from "./Tooltip-
|
|
4
|
+
import { T as a } from "./Tooltip-D-jCnOvo.js";
|
|
5
5
|
import './assets/MenuLabel.css';const p = "_pressable_13cip_1", n = {
|
|
6
6
|
pressable: p
|
|
7
7
|
}, f = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { DialogTrigger as i, ModalOverlay as n, Modal as t, Dialog as g } from "react-aria-components";
|
|
3
|
-
import { B as _, C as h } from "./BaseCard-
|
|
3
|
+
import { B as _, C as h } from "./BaseCard-DrG8XXVz.js";
|
|
4
4
|
import './assets/ModalBase.css';const y = "_modal_e27rd_1", r = {
|
|
5
5
|
"modal-overlay": "_modal-overlay_e27rd_1",
|
|
6
6
|
modal: y
|
|
@@ -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,20 +1,20 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { T as r } from "./TextButton-
|
|
2
|
+
import { T as r } from "./TextButton-CWDZaF0c.js";
|
|
3
3
|
import { ButtonShape as o } from "./components/Button/ButtonBase/index.js";
|
|
4
|
-
import { S as m } from "./Sidebar-
|
|
4
|
+
import { S as m } from "./Sidebar-BqNH6hIl.js";
|
|
5
5
|
import { T as c } from "./Tree-DwJPCnFr.js";
|
|
6
6
|
import { X as l, Menu as h } from "lucide-react";
|
|
7
|
-
import {
|
|
7
|
+
import { ColorTheme as p } from "./index.js";
|
|
8
8
|
import './assets/NavigationSidebar.css';const f = "_nav_1fjh5_1", d = "_close_1fjh5_15", s = {
|
|
9
9
|
nav: f,
|
|
10
10
|
close: d
|
|
11
11
|
}, N = ({
|
|
12
|
-
items:
|
|
13
|
-
...
|
|
12
|
+
items: t,
|
|
13
|
+
...a
|
|
14
14
|
}) => /* @__PURE__ */ e(
|
|
15
15
|
m,
|
|
16
16
|
{
|
|
17
|
-
...
|
|
17
|
+
...a,
|
|
18
18
|
trigger: /* @__PURE__ */ e(r, { shape: o.square, children: /* @__PURE__ */ e(h, {}) }),
|
|
19
19
|
children: ({ close: n }) => /* @__PURE__ */ i("div", { className: s.nav, children: [
|
|
20
20
|
/* @__PURE__ */ e("div", { className: s.close, children: /* @__PURE__ */ e(
|
|
@@ -26,7 +26,7 @@ import './assets/NavigationSidebar.css';const f = "_nav_1fjh5_1", d = "_close_1f
|
|
|
26
26
|
children: /* @__PURE__ */ e(l, {})
|
|
27
27
|
}
|
|
28
28
|
) }),
|
|
29
|
-
/* @__PURE__ */ e(c, { items:
|
|
29
|
+
/* @__PURE__ */ e(c, { items: t })
|
|
30
30
|
] })
|
|
31
31
|
}
|
|
32
32
|
);
|
|
@@ -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-
|
|
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 { jsxs as u, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { DialogTrigger as f, ModalOverlay as m, Modal as x, Dialog as k } from "react-aria-components";
|
|
3
|
-
import { B as b, C as q } from "./BaseCard-
|
|
3
|
+
import { B as b, C as q } from "./BaseCard-DrG8XXVz.js";
|
|
4
4
|
import './assets/Sidebar.css';var e = /* @__PURE__ */ ((l) => (l.inlineStart = "inline-start", l.inlineEnd = "inline-end", l.blockStart = "block-start", l.blockEnd = "block-end", l))(e || {}), n = /* @__PURE__ */ ((l) => (l.full = "full", l.threeQuarters = "three-quarters", l.half = "half", l.quarter = "quarter", l))(n || {});
|
|
5
5
|
const g = "_modal_1hdcx_1", y = "_full_1hdcx_275", v = "_half_1hdcx_297", p = "_quarter_1hdcx_305", r = {
|
|
6
6
|
"modal-overlay": "_modal-overlay_1hdcx_1",
|
|
@@ -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-
|
|
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 });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import { useTernaryDarkMode as u } from "usehooks-ts";
|
|
3
3
|
import { useEffect as l } from "react";
|
|
4
|
-
import { b as f, a as y } from "./index-
|
|
4
|
+
import { b as f, a as y } from "./index-BG6gd3OK.js";
|
|
5
5
|
const D = ({
|
|
6
6
|
ui: o = !0,
|
|
7
7
|
theme: a = y.primary
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { ToggleButton as p } from "react-aria-components";
|
|
3
3
|
import { u, s as o, S as c } from "./Splash-neeaI9j6.js";
|
|
4
|
-
import {
|
|
5
|
-
import { T as h } from "./Tooltip-
|
|
4
|
+
import { ColorTheme as g } from "./index.js";
|
|
5
|
+
import { T as h } from "./Tooltip-D-jCnOvo.js";
|
|
6
6
|
import { ButtonVariant as T, ButtonShape as f } from "./components/Button/ButtonBase/index.js";
|
|
7
7
|
const y = ({
|
|
8
8
|
id: s,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { TooltipTrigger as c, Tooltip as n, OverlayArrow as p } from "react-aria-components";
|
|
3
|
-
import {
|
|
3
|
+
import { ColorTheme as l } from "./index.js";
|
|
4
4
|
import './assets/Tooltip.css';const v = "_tooltip_5kv1r_1", m = "_primary_5kv1r_133", y = "_secondary_5kv1r_153", k = "_tertiary_5kv1r_163", u = "_error_5kv1r_173", f = "_success_5kv1r_193", o = {
|
|
5
5
|
tooltip: v,
|
|
6
6
|
"tooltip-arrow": "_tooltip-arrow_5kv1r_53",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { ColorTheme as l } from "../../index.js";
|
|
3
3
|
import '../../assets/index11.css';var c = /* @__PURE__ */ ((r) => (r.small = "small", r.normal = "normal", r.large = "large", r))(c || {}), n = /* @__PURE__ */ ((r) => (r.image = "image", r.node = "node", r))(n || {});
|
|
4
4
|
const i = "_avatar_1ex1w_1", x = "_node_1ex1w_37", y = "_image_1ex1w_61", w = "_small_1ex1w_79", g = "_normal_1ex1w_89", d = "_large_1ex1w_99", p = "_primary_1ex1w_111", u = "_secondary_1ex1w_131", v = "_tertiary_1ex1w_141", f = "_error_1ex1w_151", $ = "_success_1ex1w_171", s = {
|
|
5
5
|
avatar: i,
|
|
@@ -21,7 +21,7 @@ const i = "_avatar_1ex1w_1", x = "_node_1ex1w_37", y = "_image_1ex1w_61", w = "_
|
|
|
21
21
|
className: `${s.avatar} ${s[a]} ${s[e]} ${s[_]}`,
|
|
22
22
|
children: r
|
|
23
23
|
}
|
|
24
|
-
),
|
|
24
|
+
), C = ({
|
|
25
25
|
src: r,
|
|
26
26
|
children: a,
|
|
27
27
|
size: e = c.normal,
|
|
@@ -29,7 +29,7 @@ const i = "_avatar_1ex1w_1", x = "_node_1ex1w_37", y = "_image_1ex1w_61", w = "_
|
|
|
29
29
|
theme: t = l.primary
|
|
30
30
|
}) => a ? /* @__PURE__ */ o(m, { type: n.node, size: e, theme: t, children: a }) : /* @__PURE__ */ o(m, { size: e, type: n.image, theme: t, children: /* @__PURE__ */ o("img", { src: r, alt: _ }) });
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
C as Avatar,
|
|
33
33
|
c as AvatarSize,
|
|
34
34
|
n as AvatarType
|
|
35
35
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { B as o, C as d } from "../../../BaseCard-
|
|
2
|
+
import { B as o, C as d } from "../../../BaseCard-DrG8XXVz.js";
|
|
3
3
|
const e = ({ ...r }) => /* @__PURE__ */ a(o, { ...r, background: d.gradient });
|
|
4
4
|
export {
|
|
5
5
|
e as GradientCard
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { D as i } from "../../../Disclosure-
|
|
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-
|
|
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-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { M as n } from "../../../Menu-
|
|
2
|
+
import { M as n } from "../../../Menu-DvZqs_yA.js";
|
|
3
3
|
const u = ({ children: o, menuItems: r }) => /* @__PURE__ */ t(n, { menuItems: r, children: o });
|
|
4
4
|
export {
|
|
5
5
|
u as MenuButton
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { M as h } from "../../../ModalBase-
|
|
3
|
-
import { T as p } from "../../../TextButton-
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { M as h } from "../../../ModalBase-DOU0cBij.js";
|
|
3
|
+
import { T as p } from "../../../TextButton-CWDZaF0c.js";
|
|
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 = {
|
|
7
7
|
modal: v,
|
|
@@ -11,16 +11,16 @@ const v = "_modal_fqn0t_1", q = "_end_fqn0t_39", t = {
|
|
|
11
11
|
end: q
|
|
12
12
|
}, T = ({
|
|
13
13
|
trigger: o,
|
|
14
|
-
header:
|
|
14
|
+
header: a,
|
|
15
15
|
children: m,
|
|
16
16
|
actionPlacement: l = d.start,
|
|
17
|
-
modalAction:
|
|
17
|
+
modalAction: n,
|
|
18
18
|
closeText: i,
|
|
19
19
|
isDismissable: c,
|
|
20
20
|
isKeyboardDismissableDisabled: _
|
|
21
21
|
}) => {
|
|
22
|
-
const f = typeof
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
const f = typeof n == "function";
|
|
23
|
+
return /* @__PURE__ */ e(
|
|
24
24
|
h,
|
|
25
25
|
{
|
|
26
26
|
trigger: o,
|
|
@@ -28,16 +28,16 @@ const v = "_modal_fqn0t_1", q = "_end_fqn0t_39", t = {
|
|
|
28
28
|
isDismissable: c,
|
|
29
29
|
isKeyboardDismissDisabled: _
|
|
30
30
|
},
|
|
31
|
-
children: ({ close:
|
|
32
|
-
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
31
|
+
children: ({ close: r }) => /* @__PURE__ */ s("div", { className: `${t.modal}`, children: [
|
|
32
|
+
a && /* @__PURE__ */ e("h2", { className: `${t["modal-header"]}`, children: a }),
|
|
33
|
+
/* @__PURE__ */ e("div", { className: `${t["modal-content"]}`, children: m }),
|
|
34
|
+
/* @__PURE__ */ s(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
37
37
|
className: `${t["modal-action"]} ${t[l]}`,
|
|
38
38
|
children: [
|
|
39
|
-
f ?
|
|
40
|
-
/* @__PURE__ */
|
|
39
|
+
f ? n({ close: r }) : n,
|
|
40
|
+
/* @__PURE__ */ e(p, { onPress: r, theme: u.inverseSurface, children: i })
|
|
41
41
|
]
|
|
42
42
|
}
|
|
43
43
|
)
|
|
@@ -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-
|
|
4
|
-
import { N as m } from "../../../NavigationSidebar-
|
|
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,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
|
|
2
|
-
import { F as
|
|
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 b, SelectValue as
|
|
5
|
-
import { P as
|
|
6
|
-
import { ChevronsUpDown as
|
|
7
|
-
import { O as
|
|
8
|
-
import { T as $ } from "../../TextButton-
|
|
9
|
-
import {
|
|
10
|
-
import { T as
|
|
11
|
-
import { L as
|
|
12
|
-
import { B as
|
|
13
|
-
import '../../assets/index3.css';const
|
|
14
|
-
select:
|
|
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:
|
|
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
|
-
},
|
|
21
|
+
}, Y = ({
|
|
22
22
|
options: u,
|
|
23
|
-
cardBackground: _ =
|
|
24
|
-
|
|
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
|
|
35
|
+
let r;
|
|
35
36
|
switch (x) {
|
|
36
37
|
case o.filled:
|
|
37
|
-
|
|
38
|
+
r = d;
|
|
38
39
|
break;
|
|
39
40
|
case o.outlined:
|
|
40
|
-
|
|
41
|
+
r = S;
|
|
41
42
|
break;
|
|
42
43
|
case o.text:
|
|
43
|
-
|
|
44
|
+
r = $;
|
|
44
45
|
break;
|
|
45
46
|
default:
|
|
46
|
-
|
|
47
|
+
r = d;
|
|
47
48
|
}
|
|
48
49
|
return /* @__PURE__ */ s(
|
|
49
50
|
b,
|
|
50
51
|
{
|
|
51
|
-
className:
|
|
52
|
+
className: i.select,
|
|
52
53
|
isDisabled: g,
|
|
53
54
|
isRequired: w,
|
|
54
55
|
name: f,
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
value: k,
|
|
57
|
+
onChange: v,
|
|
57
58
|
children: [
|
|
58
|
-
|
|
59
|
-
/* @__PURE__ */ e(
|
|
60
|
-
c ? /* @__PURE__ */ e(
|
|
61
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
const l = /* @__PURE__ */ s(
|
|
66
|
-
/* @__PURE__ */ e(
|
|
67
|
-
t.description && /* @__PURE__ */ e(
|
|
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: `${
|
|
73
|
+
className: `${i["options-item-group"]}`,
|
|
73
74
|
id: t.key,
|
|
74
75
|
textValue: t.displayValue,
|
|
75
76
|
isDisabled: t.disabled,
|
|
76
|
-
children: ({ isSelected: C }) => /* @__PURE__ */ s(
|
|
77
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
78
|
-
C && /* @__PURE__ */ e(
|
|
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
|
-
|
|
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;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { ToggleButtonGroup as
|
|
3
|
-
import { T as
|
|
4
|
-
import {
|
|
5
|
-
import '../../assets/index.css';const
|
|
2
|
+
import { ToggleButtonGroup as l } from "react-aria-components";
|
|
3
|
+
import { T as s } from "../../ToggleButton-DPy_Urwc.js";
|
|
4
|
+
import { ColorTheme as u } from "../../index.js";
|
|
5
|
+
import '../../assets/index.css';const n = {
|
|
6
6
|
"toggle-button-group": "_toggle-button-group_1tyg5_1"
|
|
7
7
|
}, b = ({
|
|
8
8
|
items: g,
|
|
9
9
|
theme: e = u.primary,
|
|
10
10
|
...o
|
|
11
11
|
}) => /* @__PURE__ */ r(
|
|
12
|
-
|
|
12
|
+
l,
|
|
13
13
|
{
|
|
14
14
|
...o,
|
|
15
|
-
className: o.className ??
|
|
15
|
+
className: o.className ?? n["toggle-button-group"],
|
|
16
16
|
children: g.map((t) => /* @__PURE__ */ r(
|
|
17
|
-
|
|
17
|
+
s,
|
|
18
18
|
{
|
|
19
19
|
...t,
|
|
20
20
|
theme: e,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as s, jsxs as r, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import { w as
|
|
3
|
-
import { Popover as
|
|
4
|
-
import { C as _ } from "../../../ComponentShapeSwitcher-
|
|
5
|
-
import { T as u } from "../../../ThemeSwitcher-
|
|
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
6
|
import { Settings as j } from "lucide-react";
|
|
7
7
|
import '../../../assets/index13.css';const z = "_popover_cizdw_1", D = {
|
|
8
8
|
popover: z
|
|
9
9
|
}, H = (e) => /* @__PURE__ */ s(
|
|
10
|
-
|
|
10
|
+
b,
|
|
11
11
|
{
|
|
12
12
|
...e,
|
|
13
13
|
className: e.className ?? D.popover
|
|
@@ -17,7 +17,7 @@ import '../../../assets/index13.css';const z = "_popover_cizdw_1", D = {
|
|
|
17
17
|
popoverProps: i,
|
|
18
18
|
dialogTriggerProps: t,
|
|
19
19
|
...o
|
|
20
|
-
}) => /* @__PURE__ */ r(
|
|
20
|
+
}) => /* @__PURE__ */ r(k, { ...t, children: [
|
|
21
21
|
e,
|
|
22
22
|
/* @__PURE__ */ s(H, { ...i, children: /* @__PURE__ */ s(x, { ...o }) })
|
|
23
23
|
] }), V = ({
|
|
@@ -28,17 +28,17 @@ import '../../../assets/index13.css';const z = "_popover_cizdw_1", D = {
|
|
|
28
28
|
children: a,
|
|
29
29
|
...c
|
|
30
30
|
}) => {
|
|
31
|
-
const { coords: l, handlePress: f } =
|
|
32
|
-
return t === d.shrink && e !== v.text && (t = d.rectangle), /* @__PURE__ */ s(
|
|
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
33
|
y,
|
|
34
34
|
{
|
|
35
35
|
...c,
|
|
36
36
|
className: c.className ?? `${n.button} ${n["button-link"]} ${n[e]} ${n[i]} ${n[t]}`,
|
|
37
37
|
onPress: f,
|
|
38
|
-
children: S ? (N) => /* @__PURE__ */ r(g, { children: [
|
|
38
|
+
children: S ? ((N) => /* @__PURE__ */ r(g, { children: [
|
|
39
39
|
l && /* @__PURE__ */ s(m, { ...l }),
|
|
40
40
|
a(N)
|
|
41
|
-
] }) : /* @__PURE__ */ r(g, { children: [
|
|
41
|
+
] })) : /* @__PURE__ */ r(g, { children: [
|
|
42
42
|
l && /* @__PURE__ */ s(m, { ...l }),
|
|
43
43
|
a
|
|
44
44
|
] })
|
|
@@ -63,7 +63,7 @@ const A = "_card_c3d4l_1", B = "_glass_c3d4l_51", E = "_solid_c3d4l_61", F = "_g
|
|
|
63
63
|
gradient: F
|
|
64
64
|
}, G = ({
|
|
65
65
|
background: e = p.solid,
|
|
66
|
-
componentStyle: i =
|
|
66
|
+
componentStyle: i = T.normal,
|
|
67
67
|
children: t,
|
|
68
68
|
...o
|
|
69
69
|
}) => /* @__PURE__ */ s(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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
|
|
3
|
-
import { useState as
|
|
4
|
-
import './assets/index12.css';var
|
|
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",
|
|
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
6
|
button: x,
|
|
7
7
|
"button-link": "_button-link_iyh6t_91",
|
|
8
8
|
square: w,
|
|
@@ -20,7 +20,7 @@ const x = "_button_iyh6t_1", w = "_square_iyh6t_123", T = "_avatar_iyh6t_139", D
|
|
|
20
20
|
outlined: L,
|
|
21
21
|
text: A
|
|
22
22
|
}, E = (r) => {
|
|
23
|
-
const [t, e] =
|
|
23
|
+
const [t, e] = $(null), a = u(0);
|
|
24
24
|
let s = u(void 0), l = (o) => {
|
|
25
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
26
|
};
|
|
@@ -53,7 +53,7 @@ const x = "_button_iyh6t_1", w = "_square_iyh6t_123", T = "_avatar_iyh6t_139", D
|
|
|
53
53
|
}, J = ({
|
|
54
54
|
children: r,
|
|
55
55
|
description: t,
|
|
56
|
-
theme: e =
|
|
56
|
+
theme: e = _.inverseSurface,
|
|
57
57
|
delay: a = 250,
|
|
58
58
|
closeDelay: s = 150
|
|
59
59
|
}) => t ? /* @__PURE__ */ y(m, { delay: a, closeDelay: s, children: [
|
|
@@ -67,7 +67,7 @@ const x = "_button_iyh6t_1", w = "_square_iyh6t_123", T = "_avatar_iyh6t_139", D
|
|
|
67
67
|
value: t,
|
|
68
68
|
description: e,
|
|
69
69
|
isDisabled: a,
|
|
70
|
-
theme: s =
|
|
70
|
+
theme: s = _.primary
|
|
71
71
|
}) => {
|
|
72
72
|
const { coords: l, handlePress: o } = E();
|
|
73
73
|
return /* @__PURE__ */ i(J, { description: e, children: /* @__PURE__ */ y(
|
|
@@ -75,7 +75,7 @@ const x = "_button_iyh6t_1", w = "_square_iyh6t_123", T = "_avatar_iyh6t_139", D
|
|
|
75
75
|
{
|
|
76
76
|
id: r,
|
|
77
77
|
onPress: o,
|
|
78
|
-
className: `${
|
|
78
|
+
className: `${n.button} ${n[s]} ${n[d.outlined]} ${n[h.rectangle]}`,
|
|
79
79
|
isDisabled: a,
|
|
80
80
|
children: [
|
|
81
81
|
l && /* @__PURE__ */ i(M, { ...l }),
|
|
@@ -87,10 +87,10 @@ const x = "_button_iyh6t_1", w = "_square_iyh6t_123", T = "_avatar_iyh6t_139", D
|
|
|
87
87
|
"toggle-button-group": "_toggle-button-group_1tyg5_1"
|
|
88
88
|
}, Y = ({
|
|
89
89
|
items: r,
|
|
90
|
-
theme: t =
|
|
90
|
+
theme: t = _.primary,
|
|
91
91
|
...e
|
|
92
92
|
}) => /* @__PURE__ */ i(
|
|
93
|
-
|
|
93
|
+
f,
|
|
94
94
|
{
|
|
95
95
|
...e,
|
|
96
96
|
className: e.className ?? Q["toggle-button-group"],
|
|
@@ -106,11 +106,11 @@ const x = "_button_iyh6t_1", w = "_square_iyh6t_123", T = "_avatar_iyh6t_139", D
|
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
export {
|
|
109
|
-
|
|
109
|
+
_ as a,
|
|
110
110
|
Y as b,
|
|
111
111
|
J as c,
|
|
112
112
|
d as e,
|
|
113
|
-
|
|
113
|
+
n as j,
|
|
114
114
|
h as l,
|
|
115
115
|
b as s,
|
|
116
116
|
E as w,
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
const n = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
|
|
3
|
-
function s(t, r) {
|
|
4
|
-
const e = n[t];
|
|
5
|
-
if (!e) {
|
|
6
|
-
if (!r)
|
|
7
|
-
throw new Error(`Missing required environment variable: ${t}`);
|
|
8
|
-
return r;
|
|
9
|
-
}
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
class o extends Error {
|
|
13
|
-
data;
|
|
14
|
-
response;
|
|
15
|
-
constructor(r, e) {
|
|
16
|
-
super(), this.name = "ApiError", this.data = e, this.response = r, Error.captureStackTrace && Error.captureStackTrace(this, o);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
var a = /* @__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))(a || {}), s = /* @__PURE__ */ ((r) => (r.normal = "normal", r.glass = "glass", r))(s || {});
|
|
19
2
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
p as ComponentStyle,
|
|
23
|
-
s as getEnvVar
|
|
3
|
+
a as ColorTheme,
|
|
4
|
+
s as ComponentStyle
|
|
24
5
|
};
|
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
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -186,33 +186,33 @@
|
|
|
186
186
|
"release": "npm run build && npm publish --public"
|
|
187
187
|
},
|
|
188
188
|
"dependencies": {
|
|
189
|
-
"lucide-react": "^0.
|
|
190
|
-
"react": "^19.
|
|
191
|
-
"react-aria-components": "^1.
|
|
192
|
-
"react-dom": "^19.
|
|
189
|
+
"lucide-react": "^0.562.0",
|
|
190
|
+
"react": "^19.2.3",
|
|
191
|
+
"react-aria-components": "^1.14.0",
|
|
192
|
+
"react-dom": "^19.2.3",
|
|
193
193
|
"usehooks-ts": "^3.1.1",
|
|
194
|
-
"zod": "^4.
|
|
194
|
+
"zod": "^4.3.5"
|
|
195
195
|
},
|
|
196
196
|
"devDependencies": {
|
|
197
|
-
"@eslint/js": "^9.
|
|
197
|
+
"@eslint/js": "^9.39.2",
|
|
198
198
|
"@react-aria/optimize-locales-plugin": "^1.1.5",
|
|
199
|
-
"@types/node": "^
|
|
200
|
-
"@types/react": "^19.
|
|
201
|
-
"@types/react-dom": "^19.
|
|
202
|
-
"@vitejs/plugin-react-swc": "^
|
|
203
|
-
"autoprefixer": "^10.4.
|
|
204
|
-
"eslint": "^9.
|
|
205
|
-
"eslint-plugin-react-hooks": "^
|
|
206
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
207
|
-
"glob": "^
|
|
208
|
-
"globals": "^
|
|
209
|
-
"prettier": "^3.
|
|
210
|
-
"typescript": "~5.
|
|
211
|
-
"typescript-eslint": "^8.
|
|
212
|
-
"vite": "^7.
|
|
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",
|
|
213
213
|
"vite-plugin-dts": "^4.5.4",
|
|
214
214
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
215
|
-
"vite-plugin-static-copy": "^3.1.
|
|
215
|
+
"vite-plugin-static-copy": "^3.1.4"
|
|
216
216
|
},
|
|
217
217
|
"author": {
|
|
218
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-DYMKz1XJ.js";
|
|
3
|
-
import { L as m } from "./Link-CnRAx1uH.js";
|
|
4
|
-
import { T as i } from "./TextButton-DAbG31wy.js";
|
|
5
|
-
import { C as n } from "./types-a-x658UQ.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
|
-
};
|
package/dist/types-a-x658UQ.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var a = /* @__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))(a || {}), s = /* @__PURE__ */ ((r) => (r.normal = "normal", r.glass = "glass", r))(s || {});
|
|
2
|
-
export {
|
|
3
|
-
a as C,
|
|
4
|
-
s as a
|
|
5
|
-
};
|
package/dist/utils/apiError.d.ts
DELETED
|
@@ -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
|
-
}
|
package/dist/utils/env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getEnvVar(key: string, defaultValue?: string): string;
|