@adgytec/adgytec-web-ui-components 0.0.21 → 0.0.22
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-DrG8XXVz.js → BaseCard-DwISGHZS.js} +4 -4
- package/dist/{Button-C8yUSxx_.js → Button-Dzny6hTG.js} +4 -4
- package/dist/{ButtonLink-DNXUq90W.js → ButtonLink-CBN0G98a.js} +5 -5
- package/dist/ComponentShapeSwitcher-BjQDLIf4.js +46 -0
- package/dist/{Disclosure-sItjZ-jf.js → Disclosure-Dq8vN5eK.js} +8 -8
- package/dist/{FilledButton-LnYvKzE9.js → FilledButton-D7z5cN5n.js} +1 -1
- package/dist/{Link-Be6F1iXD.js → Link-CnRAx1uH.js} +2 -2
- package/dist/{Menu-DvZqs_yA.js → Menu-CfOITc2Q.js} +1 -1
- package/dist/{MenuLabel-B0FrGXKS.js → MenuLabel-DYMKz1XJ.js} +2 -2
- package/dist/{ModalBase-DOU0cBij.js → ModalBase-bdXf9IQh.js} +1 -1
- package/dist/{NavigationMenu-x2hSYr4B.js → NavigationMenu-12u9zep-.js} +4 -4
- package/dist/{NavigationSidebar-mEaAZE9d.js → NavigationSidebar-BG7cSZai.js} +7 -7
- package/dist/{OutlinedButton-BesEreKQ.js → OutlinedButton-DtPOxjfV.js} +1 -1
- package/dist/{Sidebar-BqNH6hIl.js → Sidebar-BDLl0HXv.js} +1 -1
- package/dist/{TextButton-Ct0ffSsq.js → TextButton-DAbG31wy.js} +1 -1
- package/dist/ThemeSwitcher-DWOWeXUU.js +48 -0
- package/dist/{ToggleButton-DPy_Urwc.js → ToggleButton-DejyVVCf.js} +2 -2
- package/dist/{Tooltip-D-jCnOvo.js → Tooltip-TbcvVNbx.js} +1 -1
- package/dist/assets/index12.css +1 -0
- package/dist/assets/index13.css +1 -0
- 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/index.js +10 -10
- 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.d.ts +2 -0
- package/dist/components/VisualSettings/ComponentShapeSwitcher/index.js +6 -0
- package/dist/components/VisualSettings/ThemeSwitcher/index.d.ts +2 -0
- package/dist/components/VisualSettings/ThemeSwitcher/index.js +4 -0
- package/dist/components/VisualSettings/VisualSettings/index.d.ts +2 -0
- package/dist/components/VisualSettings/VisualSettings/index.js +124 -0
- package/dist/index-CpZa0Xux.js +118 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +22 -3
- package/dist/types-a-x658UQ.js +5 -0
- package/package.json +13 -1
- /package/dist/components/{ComponentShapeSwitcher → VisualSettings/ComponentShapeSwitcher}/ComponentShapeSwitcher.d.ts +0 -0
- /package/dist/components/{ComponentShapeSwitcher → VisualSettings/ComponentShapeSwitcher}/types.d.ts +0 -0
- /package/dist/components/{ThemeSwitcher → VisualSettings/ThemeSwitcher}/ThemeSwitcher.d.ts +0 -0
- /package/dist/components/{ThemeSwitcher → VisualSettings/ThemeSwitcher}/types.d.ts +0 -0
- /package/dist/components/VisualSettings/{VisualSettings.d.ts → VisualSettings/VisualSettings.d.ts} +0 -0
- /package/dist/components/VisualSettings/{types.d.ts → VisualSettings/types.d.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as e } from "./types-a-x658UQ.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 a = "_card_c3d4l_1", c = "_glass_c3d4l_51", h = "_solid_c3d4l_61", r = "_gradient_c3d4l_101", l = {
|
|
5
|
+
card: a,
|
|
6
|
+
glass: c,
|
|
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-TbcvVNbx.js";
|
|
5
5
|
import { ButtonShape as a, ButtonVariant as S } from "./components/Button/ButtonBase/index.js";
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
6
|
+
import { C as g } from "./types-a-x658UQ.js";
|
|
7
|
+
const k = ({
|
|
8
8
|
variant: i,
|
|
9
9
|
theme: m = g.primary,
|
|
10
10
|
shape: r = a.rectangle,
|
|
@@ -30,5 +30,5 @@ const C = ({
|
|
|
30
30
|
) });
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
k as B
|
|
34
34
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as a, Fragment as i } 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-TbcvVNbx.js";
|
|
5
5
|
import { ButtonVariant as k, ButtonShape as x } from "./components/Button/ButtonBase/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { C as y } from "./types-a-x658UQ.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__ */ i
|
|
24
|
+
children: d ? (h) => /* @__PURE__ */ a(i, { children: [
|
|
25
25
|
t && /* @__PURE__ */ r(l, { ...t }),
|
|
26
26
|
s(h)
|
|
27
|
-
] }) : /* @__PURE__ */ i
|
|
27
|
+
] }) : /* @__PURE__ */ a(i, { 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-CpZa0Xux.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,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as e, 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-DAbG31wy.js";
|
|
5
|
+
import { C as m } from "./types-a-x658UQ.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", s = {
|
|
8
8
|
disclosure: h,
|
|
9
9
|
trigger: u,
|
|
10
10
|
panel: g
|
|
11
|
-
},
|
|
12
|
-
/* @__PURE__ */ r("h2", { className:
|
|
11
|
+
}, C = ({ heading: o, children: t, id: i }) => /* @__PURE__ */ e(c, { className: s.disclosure, id: i, children: [
|
|
12
|
+
/* @__PURE__ */ r("h2", { className: s.trigger, children: /* @__PURE__ */ e(
|
|
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: s.panel, children: /* @__PURE__ */ r("p", { children: t }) })
|
|
25
25
|
] });
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
C 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-Dzny6hTG.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 { C as _ } from "./types-a-x658UQ.js";
|
|
4
|
+
import { T as c } from "./Tooltip-TbcvVNbx.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-DwISGHZS.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-CfOITc2Q.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-TbcvVNbx.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-DwISGHZS.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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { M as u } from "./MenuLabel-
|
|
3
|
-
import { L as m } from "./Link-
|
|
4
|
-
import { T as i } from "./TextButton-
|
|
5
|
-
import {
|
|
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
6
|
import { ButtonShape as c } from "./components/Button/ButtonBase/index.js";
|
|
7
7
|
import { ChevronDown as p } from "lucide-react";
|
|
8
8
|
import './assets/NavigationMenu.css';const h = "_menu_sata7_1", d = {
|
|
@@ -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-DAbG31wy.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-BDLl0HXv.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 { C as p } from "./types-a-x658UQ.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: a,
|
|
13
|
+
...t
|
|
14
14
|
}) => /* @__PURE__ */ e(
|
|
15
15
|
m,
|
|
16
16
|
{
|
|
17
|
-
...
|
|
17
|
+
...t,
|
|
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: a })
|
|
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-Dzny6hTG.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-DwISGHZS.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-Dzny6hTG.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-CpZa0Xux.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
|
+
};
|
|
@@ -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 { C as g } from "./types-a-x658UQ.js";
|
|
5
|
+
import { T as h } from "./Tooltip-TbcvVNbx.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 { C as l } from "./types-a-x658UQ.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",
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { C as l } from "../../types-a-x658UQ.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
|
+
), B = ({
|
|
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
|
+
B 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-DwISGHZS.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-Dq8vN5eK.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-CBN0G98a.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-CBN0G98a.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-CfOITc2Q.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 a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { M as h } from "../../../ModalBase-bdXf9IQh.js";
|
|
3
|
+
import { T as p } from "../../../TextButton-DAbG31wy.js";
|
|
4
|
+
import { C as u } from "../../../types-a-x658UQ.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: n,
|
|
15
15
|
children: m,
|
|
16
16
|
actionPlacement: l = d.start,
|
|
17
|
-
modalAction:
|
|
17
|
+
modalAction: e,
|
|
18
18
|
closeText: i,
|
|
19
19
|
isDismissable: c,
|
|
20
20
|
isKeyboardDismissableDisabled: _
|
|
21
21
|
}) => {
|
|
22
|
-
const f = typeof
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
const f = typeof e == "function";
|
|
23
|
+
return /* @__PURE__ */ a(
|
|
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: s }) => /* @__PURE__ */ r("div", { className: `${t.modal}`, children: [
|
|
32
|
+
n && /* @__PURE__ */ a("h2", { className: `${t["modal-header"]}`, children: n }),
|
|
33
|
+
/* @__PURE__ */ a("div", { className: `${t["modal-content"]}`, children: m }),
|
|
34
|
+
/* @__PURE__ */ r(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
37
37
|
className: `${t["modal-action"]} ${t[l]}`,
|
|
38
38
|
children: [
|
|
39
|
-
f ?
|
|
40
|
-
/* @__PURE__ */
|
|
39
|
+
f ? e({ close: s }) : e,
|
|
40
|
+
/* @__PURE__ */ a(p, { onPress: s, 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-12u9zep-.js";
|
|
4
|
+
import { N as m } from "../../../NavigationSidebar-BG7cSZai.js";
|
|
5
5
|
const f = ({
|
|
6
6
|
items: o,
|
|
7
7
|
mediaQuery: a,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
2
|
-
import { F as m } from "../../FilledButton-
|
|
2
|
+
import { F as m } from "../../FilledButton-D7z5cN5n.js";
|
|
3
3
|
import { ButtonVariant as o } from "../Button/ButtonBase/index.js";
|
|
4
|
-
import { Select as
|
|
4
|
+
import { Select as b, SelectValue as d, ListBox as N, Text as p, ListBoxItem as T } from "react-aria-components";
|
|
5
5
|
import { P as S } from "../../Popover-CNBII_iI.js";
|
|
6
6
|
import { ChevronsUpDown as V, Check as y } from "lucide-react";
|
|
7
|
-
import { O as F } from "../../OutlinedButton-
|
|
8
|
-
import { T as $ } from "../../TextButton-
|
|
9
|
-
import {
|
|
10
|
-
import { T as L } from "../../Tooltip-
|
|
7
|
+
import { O as F } from "../../OutlinedButton-DtPOxjfV.js";
|
|
8
|
+
import { T as $ } from "../../TextButton-DAbG31wy.js";
|
|
9
|
+
import { C as h } from "../../types-a-x658UQ.js";
|
|
10
|
+
import { T as L } from "../../Tooltip-TbcvVNbx.js";
|
|
11
11
|
import { L as D, F as j } from "../../FieldError-CvUKcRtm.js";
|
|
12
|
-
import { B as I, C as O } from "../../BaseCard-
|
|
12
|
+
import { B as I, C as O } from "../../BaseCard-DwISGHZS.js";
|
|
13
13
|
import '../../assets/index3.css';const P = "_select_1tehw_1", E = "_trigger_1tehw_37", r = {
|
|
14
14
|
select: P,
|
|
15
15
|
"selected-value": "_selected-value_1tehw_11",
|
|
@@ -46,7 +46,7 @@ import '../../assets/index3.css';const P = "_select_1tehw_1", E = "_trigger_1teh
|
|
|
46
46
|
i = m;
|
|
47
47
|
}
|
|
48
48
|
return /* @__PURE__ */ s(
|
|
49
|
-
|
|
49
|
+
b,
|
|
50
50
|
{
|
|
51
51
|
className: r.select,
|
|
52
52
|
isDisabled: g,
|
|
@@ -73,9 +73,9 @@ import '../../assets/index3.css';const P = "_select_1tehw_1", E = "_trigger_1teh
|
|
|
73
73
|
id: t.key,
|
|
74
74
|
textValue: t.displayValue,
|
|
75
75
|
isDisabled: t.disabled,
|
|
76
|
-
children: ({ isSelected:
|
|
76
|
+
children: ({ isSelected: C }) => /* @__PURE__ */ s(n, { children: [
|
|
77
77
|
/* @__PURE__ */ e("div", { className: `${r["options-item"]}`, children: l }),
|
|
78
|
-
|
|
78
|
+
C && /* @__PURE__ */ e(y, {})
|
|
79
79
|
] })
|
|
80
80
|
},
|
|
81
81
|
t.key
|
|
@@ -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 s } from "react-aria-components";
|
|
3
|
+
import { T as l } from "../../ToggleButton-DejyVVCf.js";
|
|
4
|
+
import { C as u } from "../../types-a-x658UQ.js";
|
|
5
|
+
import '../../assets/index.css';const a = {
|
|
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
|
+
s,
|
|
13
13
|
{
|
|
14
14
|
...o,
|
|
15
|
-
className: o.className ??
|
|
15
|
+
className: o.className ?? a["toggle-button-group"],
|
|
16
16
|
children: g.map((t) => /* @__PURE__ */ r(
|
|
17
|
-
|
|
17
|
+
l,
|
|
18
18
|
{
|
|
19
19
|
...t,
|
|
20
20
|
theme: e,
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { jsx as s, jsxs as r, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { w as P, l as d, e as v, c as T, a as w, j as n, z as m, s as b } from "../../../index-CpZa0Xux.js";
|
|
3
|
+
import { Popover as k, DialogTrigger as C, Dialog as x, Button as y } from "react-aria-components";
|
|
4
|
+
import { C as _ } from "../../../ComponentShapeSwitcher-BjQDLIf4.js";
|
|
5
|
+
import { T as u } from "../../../ThemeSwitcher-DWOWeXUU.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
|
+
k,
|
|
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(C, { ...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 } = P(c.onPress), S = typeof a == "function";
|
|
32
|
+
return t === d.shrink && e !== v.text && (t = d.rectangle), /* @__PURE__ */ s(T, { 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 = b.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 $ } from "react-aria-components";
|
|
3
|
+
import { useState as f, useRef as u, useEffect as k } from "react";
|
|
4
|
+
import './assets/index12.css';var n = /* @__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))(n || {}), 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", _ = {
|
|
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] = f(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 = n.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 = n.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: `${_.button} ${_[s]} ${_[d.outlined]} ${_[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 = n.primary,
|
|
91
|
+
...e
|
|
92
|
+
}) => /* @__PURE__ */ i(
|
|
93
|
+
$,
|
|
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
|
+
n as a,
|
|
110
|
+
Y as b,
|
|
111
|
+
J as c,
|
|
112
|
+
d as e,
|
|
113
|
+
_ as j,
|
|
114
|
+
h as l,
|
|
115
|
+
b as s,
|
|
116
|
+
E as w,
|
|
117
|
+
M as z
|
|
118
|
+
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import { C as c, a as p } from "./types-a-x658UQ.js";
|
|
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
|
+
}
|
|
2
19
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
20
|
+
o as ApiError,
|
|
21
|
+
c as ColorTheme,
|
|
22
|
+
p as ComponentStyle,
|
|
23
|
+
s as getEnvVar
|
|
5
24
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
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/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": "0.0.22",
|
|
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",
|
|
File without changes
|
/package/dist/components/{ComponentShapeSwitcher → VisualSettings/ComponentShapeSwitcher}/types.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/VisualSettings/{VisualSettings.d.ts → VisualSettings/VisualSettings.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|