@adgytec/adgytec-web-ui-components 0.0.9 → 0.0.10
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/{Disclosure-VEgfonAa.js → Disclosure-BWhHg23-.js} +2 -2
- package/dist/{DisclousreGroup-DEhMBMtj.js → DisclousreGroup-BaPxc0kO.js} +1 -1
- package/dist/Form-B7w2oUTu.js +48 -0
- package/dist/{Input-CcFMJrOW.js → Input-BCN_oTYG.js} +11 -11
- package/dist/Link-DAkzJToe.js +31 -0
- package/dist/{MenuButton-CAzQcvOm.js → MenuButton-BikS-I_v.js} +1 -1
- package/dist/{MenuLabel-B7jC7YwF.js → MenuLabel-CqOBBOhO.js} +14 -14
- package/dist/{ModalAction-DjHBeAOr.js → ModalAction-BkwdZJBK.js} +1 -1
- package/dist/{NavigationMenu-DNsB0lr1.js → NavigationMenu-CFVzC6tr.js} +4 -4
- package/dist/{NavigationResponsive-D6d2f-k_.js → NavigationResponsive-C4PFfTvv.js} +2 -2
- package/dist/{NavigationSidebar-CZEPGghA.js → NavigationSidebar-V4M6KqcW.js} +2 -2
- package/dist/{OutlinedButton-DaLKO8zx.js → OutlinedButton-Cpxp5Ylo.js} +2 -2
- package/dist/{OutlinedButtonLink-BvCiAZyQ.js → OutlinedButtonLink-C2IiFMcg.js} +1 -1
- package/dist/Select-0-tGNeL9.js +85 -0
- package/dist/{TextArea-sEBd2qe1.js → TextArea-DhRiN153.js} +7 -7
- package/dist/{TextButton-BJRez1un.js → TextButton-_N9wgIF3.js} +1 -1
- package/dist/{ToggleButtonGroup-Hw3WdsOM.js → ToggleButtonGroup-B6KyntY6.js} +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Link.css +1 -1
- package/dist/assets/MenuLabel.css +1 -1
- package/dist/assets/Select.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/useSplash.css +1 -1
- package/dist/components/Button/index.js +3 -3
- package/dist/components/Disclosure/Disclosure/index.js +1 -1
- package/dist/components/Disclosure/DisclousureGroup/index.js +1 -1
- package/dist/components/Form/Form/index.js +3 -2
- package/dist/components/Form/Input/index.js +1 -1
- package/dist/components/Form/TextArea/index.js +1 -1
- package/dist/components/Link/index.js +2 -2
- package/dist/components/Menu/index.js +2 -2
- package/dist/components/Modal/ModalAction/index.js +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Navigation/NavigationMenu/index.js +1 -1
- package/dist/components/Navigation/NavigationResponsive/index.js +1 -1
- package/dist/components/Navigation/NavigationSidebar/index.js +1 -1
- package/dist/components/Navigation/index.js +3 -3
- package/dist/components/Select/index.js +1 -1
- package/dist/components/ToggleButtonGroup/index.js +1 -1
- package/dist/index.js +62 -61
- package/dist/styles/main.css +2 -2
- package/dist/useSplash-BeCk_XMh.js +49 -0
- package/package.json +1 -1
- package/dist/Form-BrgsgT93.js +0 -53
- package/dist/Link-CbLEp2fF.js +0 -31
- package/dist/Select-uiw8JPDT.js +0 -85
- package/dist/useSplash-7h6ni4l2.js +0 -49
|
@@ -1,9 +1,9 @@
|
|
|
1
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 a } from "lucide-react";
|
|
4
|
-
import { T as n } from "./TextButton-
|
|
4
|
+
import { T as n } from "./TextButton-_N9wgIF3.js";
|
|
5
5
|
import { C as m } from "./types-C1YOMbh5.js";
|
|
6
|
-
import { a as p } from "./useSplash-
|
|
6
|
+
import { a as p } from "./useSplash-BeCk_XMh.js";
|
|
7
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,
|
|
@@ -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-BWhHg23-.js";
|
|
3
3
|
import { DisclosureGroup as u } from "react-aria-components";
|
|
4
4
|
import './assets/DisclousreGroup.css';const e = {
|
|
5
5
|
"disclosure-group": "_disclosure-group_vh6v0_1"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "zod";
|
|
3
|
+
import { Form as l } from "react-aria-components";
|
|
4
|
+
import { useState as d } from "react";
|
|
5
|
+
import './assets/Form.css';const F = "_form_1k1fe_1", E = {
|
|
6
|
+
form: F
|
|
7
|
+
}, b = (s, t) => {
|
|
8
|
+
const e = Object.fromEntries(new FormData(s)), r = t.safeParse(e);
|
|
9
|
+
return r.success ? {
|
|
10
|
+
success: !0,
|
|
11
|
+
data: r.data
|
|
12
|
+
} : {
|
|
13
|
+
success: !1,
|
|
14
|
+
errors: i.flattenError(r.error).fieldErrors
|
|
15
|
+
};
|
|
16
|
+
}, _ = ({
|
|
17
|
+
schema: s,
|
|
18
|
+
onSubmit: t,
|
|
19
|
+
children: e,
|
|
20
|
+
...r
|
|
21
|
+
}) => {
|
|
22
|
+
const [u, o] = d({});
|
|
23
|
+
return /* @__PURE__ */ f(
|
|
24
|
+
l,
|
|
25
|
+
{
|
|
26
|
+
...r,
|
|
27
|
+
validationErrors: u,
|
|
28
|
+
onSubmit: async (m) => {
|
|
29
|
+
m.preventDefault(), o({});
|
|
30
|
+
const n = m.currentTarget, a = b(n, s);
|
|
31
|
+
if (!a.success) {
|
|
32
|
+
o(a.errors);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const c = await t(a.data, () => n.reset());
|
|
36
|
+
if (c) {
|
|
37
|
+
o(c);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
className: r.className ?? E.form,
|
|
42
|
+
children: e
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
_ as F
|
|
48
|
+
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
2
|
-
import { TextField as
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { TextField as c, Input as m } from "react-aria-components";
|
|
3
3
|
import { L as p, F as d } from "./FieldError-a_f080R9.js";
|
|
4
|
-
import './assets/Input.css';const l = "
|
|
4
|
+
import './assets/Input.css';const l = "_input_1bztj_1", u = "_editor_1bztj_11", o = {
|
|
5
5
|
input: l,
|
|
6
6
|
editor: u
|
|
7
|
-
},
|
|
8
|
-
label:
|
|
7
|
+
}, N = ({
|
|
8
|
+
label: s,
|
|
9
9
|
textFieldProps: r,
|
|
10
10
|
inputProps: e,
|
|
11
11
|
labelProps: i,
|
|
12
12
|
fieldErrorProps: n
|
|
13
13
|
}) => /* @__PURE__ */ a(
|
|
14
|
-
|
|
14
|
+
c,
|
|
15
15
|
{
|
|
16
16
|
...r,
|
|
17
17
|
className: r?.className ?? o.input,
|
|
18
18
|
children: [
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
19
|
+
s && /* @__PURE__ */ t(p, { ...i, children: s }),
|
|
20
|
+
/* @__PURE__ */ t(
|
|
21
|
+
m,
|
|
22
22
|
{
|
|
23
23
|
...e,
|
|
24
24
|
className: e?.className ?? o.editor
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ t(d, { ...n })
|
|
28
28
|
]
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
export {
|
|
32
|
-
I
|
|
32
|
+
N as I
|
|
33
33
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Link as t } from "react-aria-components";
|
|
3
|
+
import { C as _ } from "./types-C1YOMbh5.js";
|
|
4
|
+
import { T as c } from "./Tooltip-DAYtebkl.js";
|
|
5
|
+
import './assets/Link.css';const m = "_link_k7ie2_1", k = "_primary_k7ie2_65", y = "_secondary_k7ie2_81", l = "_tertiary_k7ie2_89", p = "_error_k7ie2_97", u = "_success_k7ie2_113", s = {
|
|
6
|
+
link: m,
|
|
7
|
+
primary: k,
|
|
8
|
+
"primary-variant": "_primary-variant_k7ie2_73",
|
|
9
|
+
secondary: y,
|
|
10
|
+
tertiary: l,
|
|
11
|
+
error: p,
|
|
12
|
+
"inverse-surface": "_inverse-surface_k7ie2_105",
|
|
13
|
+
success: u
|
|
14
|
+
}, T = ({
|
|
15
|
+
theme: r = _.primary,
|
|
16
|
+
description: a,
|
|
17
|
+
underline: n = !0,
|
|
18
|
+
children: o,
|
|
19
|
+
...e
|
|
20
|
+
}) => /* @__PURE__ */ i(c, { description: a, theme: r, children: /* @__PURE__ */ i(
|
|
21
|
+
t,
|
|
22
|
+
{
|
|
23
|
+
...e,
|
|
24
|
+
className: e.className ?? `${s.link} ${s[r]}`,
|
|
25
|
+
...n && { "data-underline": !0 },
|
|
26
|
+
children: o
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
29
|
+
export {
|
|
30
|
+
T as L
|
|
31
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { MenuTrigger as
|
|
3
|
-
import { P as
|
|
2
|
+
import { MenuTrigger as l, Menu as i, Separator as p, MenuItem as u, SubmenuTrigger as d, Pressable as h } from "react-aria-components";
|
|
3
|
+
import { P as m } from "./Popover-D3iGWJwQ.js";
|
|
4
4
|
import { ChevronRight as _ } from "lucide-react";
|
|
5
5
|
import { T as b } from "./Tooltip-DAYtebkl.js";
|
|
6
|
-
import './assets/MenuLabel.css';const f = "
|
|
6
|
+
import './assets/MenuLabel.css';const f = "_menu_vx3e4_1", g = "_separator_vx3e4_85", x = "_pressable_vx3e4_99", t = {
|
|
7
7
|
menu: f,
|
|
8
|
-
"menu-item": "_menu-
|
|
9
|
-
"item-node": "_item-
|
|
8
|
+
"menu-item": "_menu-item_vx3e4_13",
|
|
9
|
+
"item-node": "_item-node_vx3e4_23",
|
|
10
10
|
separator: g,
|
|
11
|
-
pressable:
|
|
12
|
-
},
|
|
11
|
+
pressable: x
|
|
12
|
+
}, c = ({ menuItem: e }) => {
|
|
13
13
|
if (e.type === "separator")
|
|
14
|
-
return /* @__PURE__ */ r(
|
|
14
|
+
return /* @__PURE__ */ r(p, { className: `${t.separator}` });
|
|
15
15
|
const n = !!e.subItems?.length, s = /* @__PURE__ */ a(
|
|
16
|
-
|
|
16
|
+
u,
|
|
17
17
|
{
|
|
18
18
|
className: `${t["menu-item"]} ${t[e.type]}`,
|
|
19
19
|
onAction: e.onPress,
|
|
@@ -27,17 +27,17 @@ import './assets/MenuLabel.css';const f = "_menu_c70ku_1", g = "_separator_c70ku
|
|
|
27
27
|
);
|
|
28
28
|
return n ? /* @__PURE__ */ a(d, { children: [
|
|
29
29
|
s,
|
|
30
|
-
/* @__PURE__ */ r(
|
|
30
|
+
/* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(i, { className: `${t.menu}`, children: e.subItems.map((o) => /* @__PURE__ */ r(c, { menuItem: o }, o.id)) }) })
|
|
31
31
|
] }) : s;
|
|
32
|
-
},
|
|
32
|
+
}, v = ({ children: e, menuItems: n }) => /* @__PURE__ */ a(l, { children: [
|
|
33
33
|
e,
|
|
34
|
-
/* @__PURE__ */ r(
|
|
34
|
+
/* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(i, { className: `${t.menu}`, children: n.map((s) => /* @__PURE__ */ r(c, { menuItem: s }, s.id)) }) })
|
|
35
35
|
] }), y = ({
|
|
36
36
|
children: e,
|
|
37
37
|
menuItems: n,
|
|
38
38
|
description: s
|
|
39
|
-
}) => /* @__PURE__ */ r(
|
|
39
|
+
}) => /* @__PURE__ */ r(v, { menuItems: n, children: /* @__PURE__ */ r(b, { description: s, children: /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r("span", { role: "button", className: t.pressable, children: e }) }) }) });
|
|
40
40
|
export {
|
|
41
41
|
y as M,
|
|
42
|
-
|
|
42
|
+
v as a
|
|
43
43
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { M as u } from "./ModalBase-DLaR_yid.js";
|
|
3
|
-
import { T as p } from "./TextButton-
|
|
3
|
+
import { T as p } from "./TextButton-_N9wgIF3.js";
|
|
4
4
|
import { C as v } from "./types-C1YOMbh5.js";
|
|
5
5
|
import './assets/ModalAction.css';var d = /* @__PURE__ */ ((n) => (n.start = "start", n.end = "end", n))(d || {}), c = /* @__PURE__ */ ((n) => (n.close = "Close", n.cancel = "Cancel", n))(c || {});
|
|
6
6
|
const q = "_modal_fqn0t_1", $ = "_end_fqn0t_39", a = {
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
2
|
+
import { M as u } from "./MenuLabel-CqOBBOhO.js";
|
|
3
|
+
import { L as m } from "./Link-DAkzJToe.js";
|
|
4
|
+
import { T as i } from "./TextButton-_N9wgIF3.js";
|
|
5
5
|
import { C as n } from "./types-C1YOMbh5.js";
|
|
6
|
-
import { a as c } from "./useSplash-
|
|
6
|
+
import { a as c } from "./useSplash-BeCk_XMh.js";
|
|
7
7
|
import { ChevronDown as p } from "lucide-react";
|
|
8
8
|
import './assets/NavigationMenu.css';const h = "_menu_sata7_1", d = {
|
|
9
9
|
menu: h
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useMediaQuery as t } from "usehooks-ts";
|
|
3
|
-
import { N as e } from "./NavigationMenu-
|
|
4
|
-
import { N as s } from "./NavigationSidebar-
|
|
3
|
+
import { N as e } from "./NavigationMenu-CFVzC6tr.js";
|
|
4
|
+
import { N as s } from "./NavigationSidebar-V4M6KqcW.js";
|
|
5
5
|
const f = ({
|
|
6
6
|
items: o,
|
|
7
7
|
mediaQuery: r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { T as r } from "./TextButton-
|
|
3
|
-
import { a as s } from "./useSplash-
|
|
2
|
+
import { T as r } from "./TextButton-_N9wgIF3.js";
|
|
3
|
+
import { a as s } from "./useSplash-BeCk_XMh.js";
|
|
4
4
|
import { S as m } from "./Sidebar-LlVvowsG.js";
|
|
5
5
|
import { T as c } from "./Tree-DwJPCnFr.js";
|
|
6
6
|
import { X as l, Menu as h } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { B as r } from "./TextButton-
|
|
3
|
-
import { B as i } from "./useSplash-
|
|
2
|
+
import { B as r } from "./TextButton-_N9wgIF3.js";
|
|
3
|
+
import { B as i } from "./useSplash-BeCk_XMh.js";
|
|
4
4
|
const u = (t) => {
|
|
5
5
|
const { children: n } = t;
|
|
6
6
|
return /* @__PURE__ */ o(r, { ...t, variant: i.filled, children: n });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l, Fragment as u } from "react/jsx-runtime";
|
|
2
|
-
import { u as $, s as o, S as m, B as a, a as F } from "./useSplash-
|
|
2
|
+
import { u as $, s as o, S as m, B as a, a as F } from "./useSplash-BeCk_XMh.js";
|
|
3
3
|
import { Link as L } from "react-aria-components";
|
|
4
4
|
import { T as S } from "./Tooltip-DAYtebkl.js";
|
|
5
5
|
import { C as x } from "./types-C1YOMbh5.js";
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
2
|
+
import { O as S, F as T } from "./OutlinedButton-Cpxp5Ylo.js";
|
|
3
|
+
import { B as o } from "./useSplash-BeCk_XMh.js";
|
|
4
|
+
import { Select as b, SelectValue as m, ListBox as k, Text as d, ListBoxItem as V } from "react-aria-components";
|
|
5
|
+
import { P as y } from "./Popover-D3iGWJwQ.js";
|
|
6
|
+
import { ChevronsUpDown as C, Check as F } from "lucide-react";
|
|
7
|
+
import { T as $ } from "./TextButton-_N9wgIF3.js";
|
|
8
|
+
import { C as p } from "./types-C1YOMbh5.js";
|
|
9
|
+
import { T as L } from "./Tooltip-DAYtebkl.js";
|
|
10
|
+
import { L as D, F as j } from "./FieldError-a_f080R9.js";
|
|
11
|
+
import './assets/Select.css';const w = "_select_1auhe_1", I = "_trigger_1auhe_37", i = {
|
|
12
|
+
select: w,
|
|
13
|
+
"selected-value": "_selected-value_1auhe_11",
|
|
14
|
+
"option-description": "_option-description_1auhe_19",
|
|
15
|
+
trigger: I,
|
|
16
|
+
"options-list": "_options-list_1auhe_51",
|
|
17
|
+
"options-item-group": "_options-item-group_1auhe_63",
|
|
18
|
+
"options-item": "_options-item_1auhe_63"
|
|
19
|
+
}, K = ({
|
|
20
|
+
options: u,
|
|
21
|
+
label: l,
|
|
22
|
+
name: h,
|
|
23
|
+
disabled: _,
|
|
24
|
+
isRequired: f,
|
|
25
|
+
triggerVariant: g = o.filled,
|
|
26
|
+
description: x,
|
|
27
|
+
placeholder: c,
|
|
28
|
+
selectedKey: v,
|
|
29
|
+
onSelectionChange: B
|
|
30
|
+
}) => {
|
|
31
|
+
let s;
|
|
32
|
+
switch (g) {
|
|
33
|
+
case o.filled:
|
|
34
|
+
s = T;
|
|
35
|
+
break;
|
|
36
|
+
case o.outlined:
|
|
37
|
+
s = S;
|
|
38
|
+
break;
|
|
39
|
+
case o.text:
|
|
40
|
+
s = $;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ r(
|
|
44
|
+
b,
|
|
45
|
+
{
|
|
46
|
+
className: i.select,
|
|
47
|
+
isDisabled: _,
|
|
48
|
+
isRequired: f,
|
|
49
|
+
name: h,
|
|
50
|
+
selectedKey: v,
|
|
51
|
+
onSelectionChange: B,
|
|
52
|
+
children: [
|
|
53
|
+
l && /* @__PURE__ */ e(D, { children: l }),
|
|
54
|
+
/* @__PURE__ */ e(L, { description: x, theme: p.inverseSurface, children: /* @__PURE__ */ e(s, { theme: p.inverseSurface, children: /* @__PURE__ */ r("span", { className: i.trigger, children: [
|
|
55
|
+
c ? /* @__PURE__ */ e(m, { className: `${i["selected-value"]}`, children: ({ defaultChildren: t, isPlaceholder: a }) => a ? c : t }) : /* @__PURE__ */ e(m, {}),
|
|
56
|
+
/* @__PURE__ */ e(C, {})
|
|
57
|
+
] }) }) }),
|
|
58
|
+
/* @__PURE__ */ e(j, {}),
|
|
59
|
+
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(k, { className: `${i["options-list"]}`, items: u, children: (t) => {
|
|
60
|
+
const a = /* @__PURE__ */ r(n, { children: [
|
|
61
|
+
/* @__PURE__ */ e(d, { children: t.displayValue }),
|
|
62
|
+
t.description && /* @__PURE__ */ e(d, { className: i["option-description"], children: t.description })
|
|
63
|
+
] });
|
|
64
|
+
return /* @__PURE__ */ e(
|
|
65
|
+
V,
|
|
66
|
+
{
|
|
67
|
+
className: `${i["options-item-group"]}`,
|
|
68
|
+
id: t.key,
|
|
69
|
+
textValue: t.displayValue,
|
|
70
|
+
isDisabled: t.disabled,
|
|
71
|
+
children: ({ isSelected: N }) => /* @__PURE__ */ r(n, { children: [
|
|
72
|
+
/* @__PURE__ */ e("div", { className: `${i["options-item"]}`, children: a }),
|
|
73
|
+
N && /* @__PURE__ */ e(F, {})
|
|
74
|
+
] })
|
|
75
|
+
},
|
|
76
|
+
t.key
|
|
77
|
+
);
|
|
78
|
+
} }) })
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
K as S
|
|
85
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { TextField as m, TextArea as x } from "react-aria-components";
|
|
3
3
|
import { L as d, F as l } from "./FieldError-a_f080R9.js";
|
|
4
|
-
import './assets/TextArea.css';const n = "
|
|
4
|
+
import './assets/TextArea.css';const n = "_textarea_1ifyv_1", _ = "_editor_1ifyv_11", s = {
|
|
5
5
|
textarea: n,
|
|
6
6
|
editor: _
|
|
7
|
-
},
|
|
7
|
+
}, y = ({
|
|
8
8
|
label: a,
|
|
9
9
|
textFieldProps: r,
|
|
10
10
|
textAreaProps: t,
|
|
11
11
|
labelProps: o,
|
|
12
|
-
fieldErrorProps:
|
|
13
|
-
}) => /* @__PURE__ */
|
|
12
|
+
fieldErrorProps: i
|
|
13
|
+
}) => /* @__PURE__ */ c(
|
|
14
14
|
m,
|
|
15
15
|
{
|
|
16
16
|
...r,
|
|
@@ -24,10 +24,10 @@ import './assets/TextArea.css';const n = "_textarea_1o47z_1", _ = "_editor_1o47z
|
|
|
24
24
|
className: t?.className ?? s.editor
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
|
-
/* @__PURE__ */ e(l, { ...
|
|
27
|
+
/* @__PURE__ */ e(l, { ...i })
|
|
28
28
|
]
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
y as T
|
|
33
33
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l, Fragment as m } from "react/jsx-runtime";
|
|
2
|
-
import { u as $, a as c, B as f, s, S as u } from "./useSplash-
|
|
2
|
+
import { u as $, a as c, B as f, s, S as u } from "./useSplash-BeCk_XMh.js";
|
|
3
3
|
import { Button as T } from "react-aria-components";
|
|
4
4
|
import { T as p } from "./Tooltip-DAYtebkl.js";
|
|
5
5
|
import { C as S } from "./types-C1YOMbh5.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { ToggleButton as m, ToggleButtonGroup as p } from "react-aria-components";
|
|
3
|
-
import { u as c, s, S as d, B as T, a as B } from "./useSplash-
|
|
3
|
+
import { u as c, s, S as d, B as T, a as B } from "./useSplash-BeCk_XMh.js";
|
|
4
4
|
import { T as h } from "./Tooltip-DAYtebkl.js";
|
|
5
5
|
import { C as n } from "./types-C1YOMbh5.js";
|
|
6
6
|
import './assets/ToggleButtonGroup.css';const b = {
|
package/dist/assets/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._input_1bztj_1{display:grid;gap:var(--form-input-gap, .25rem)}._editor_1bztj_11{outline:none;font-weight:500;border-radius:var(--radius);padding-inline:.625em;padding-block:.625em;max-inline-size:100%;border:.125rem solid var(--color-outline);background-color:inherit;color:inherit;font-size:var(--form-input-text);transition:border-color .25s}._editor_1bztj_11[data-focused]{border-color:var(--color-primary)}._editor_1bztj_11[data-invalid]{border-color:var(--color-error)}
|
package/dist/assets/Link.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._link_k7ie2_1{--_link-text: transparent;--_color: var(--_link-text);cursor:pointer;font-weight:500;text-underline-offset:.125em;text-decoration-thickness:.075em;text-decoration-color:transparent;color:var(--_color);transition:color .25s,text-decoration-color .25s}._link_k7ie2_1[data-hovered=true],._link_k7ie2_1[data-focus-visible=true]{--_color: hsl(from var(--_link-text) h s calc(l + 10) );text-decoration-color:currentColor}._link_k7ie2_1[data-pressed=true]{--_color: hsl(from var(--_link-text) h s calc(l - 5) )}._link_k7ie2_1[data-underline]{text-decoration-color:currentColor}._primary_k7ie2_65{--_link-text: var(--color-primary)}._primary-variant_k7ie2_73{--_link-text: var(--color-primary-variant)}._secondary_k7ie2_81{--_link-text: var(--color-secondary)}._tertiary_k7ie2_89{--_link-text: var(--color-tertiary)}._error_k7ie2_97{--_link-text: var(--color-error)}._inverse-surface_k7ie2_105{--_link-text: var(--color-inverse-surface)}._success_k7ie2_113{--_link-text: var(--color-success)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._menu_vx3e4_1{display:grid;gap:.5rem;border-radius:inherit}._menu-item_vx3e4_13{inline-size:100%;display:grid;border-radius:inherit}._menu-item_vx3e4_13:not(._item-node_vx3e4_23){padding-block:.375rem;padding-inline:.5rem;color:var(--_item-text);background-color:var(--_item-color);text-decoration:none;cursor:pointer}._menu-item_vx3e4_13:not(._item-node_vx3e4_23)[data-has-submenu]{display:flex;gap:.25rem;align-items:center;justify-content:space-between}._menu-item_vx3e4_13:not(._item-node_vx3e4_23)[data-hovered],._menu-item_vx3e4_13:not(._item-node_vx3e4_23)[data-focus-visible],._menu-item_vx3e4_13:not(._item-node_vx3e4_23)[data-open]{--_item-color: hsl(from var(--_popover-bg) h s calc(l + 10) );--_item-text: hsl(from var(--_popover-text) h s calc(l + 10) )}._menu-item_vx3e4_13:not(._item-node_vx3e4_23)[data-selected]{--_item-color: hsl(from var(--_popover-bg) h s calc(l - 10) );--_item-text: hsl(from var(--_popover-text) h s calc(l - 10) )}._separator_vx3e4_85{background-color:var(--color-outline);block-size:.075rem;margin-block:.25rem}._pressable_vx3e4_99{display:flex;align-items:center;gap:.25rem;cursor:pointer}._pressable_vx3e4_99 svg{width:.875em}
|
package/dist/assets/Select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._select_1auhe_1{display:grid;gap:var(--form-input-gap)}._selected-value_1auhe_11{font-size:var(--form-input-text);font-weight:600}._selected-value_1auhe_11 ._option-description_1auhe_19{display:none}._selected-value_1auhe_11[data-placeholder]{font-style:italic}._trigger_1auhe_37{display:flex;align-items:center;gap:.75rem;justify-content:space-between}._options-list_1auhe_51{display:grid;gap:var(--form-gap);border-radius:inherit}._options-item-group_1auhe_63{display:flex;gap:.5rem;align-items:center;justify-content:space-between;cursor:pointer;border-radius:inherit;padding-inline:.75rem;padding-block:.5rem;color:var(--_item-text);background-color:var(--_item-color);transition:background-color .25s,color .25s}._options-item-group_1auhe_63[data-hovered],._options-item-group_1auhe_63[data-focus-visible]{--_item-color: hsl(from var(--_popover-bg) h s calc(l + 10) );--_item-text: hsl(from var(--_popover-text) h s calc(l + 10) )}._options-item-group_1auhe_63[data-selected]{--_item-color: hsl(from var(--_popover-bg) h s calc(l - 10) );--_item-text: hsl(from var(--_popover-text) h s calc(l - 10) )}._options-item_1auhe_63{font-size:var(--form-input-text);display:grid;gap:.25rem}._options-item_1auhe_63 ._option-description_1auhe_19{font-size:.875em;font-style:italic}
|
package/dist/assets/TextArea.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._textarea_1ifyv_1{display:grid;gap:var(--form-input-gap, .25rem)}._editor_1ifyv_11{outline:none;font-weight:500;border-radius:var(--radius);padding-inline:.625em;padding-block:.625em;max-inline-size:100%;border:.125rem solid var(--color-outline);background-color:inherit;color:inherit;resize:vertical;max-height:15rem;font-size:var(--form-input-text)}._editor_1ifyv_11[data-focused]{border-color:var(--color-primary)}._editor_1ifyv_11[data-invalid]{border-color:var(--color-error)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_1tdr1_1{--_button-color: transparent;--_button-text: transparent;--_border-color: var(--_button-color);border-radius:var(--_radius);cursor:pointer;border:var(--button-border-width) solid var(--_border-color);font-weight:500;text-align:center;padding-inline:var(--_pi);padding-block:var(--_pb);background-color:var(--_bg);color:var(--_color);position:relative;overflow:hidden;transition:background-color .25s,color .25s}._button_1tdr1_1[data-hovered],._button_1tdr1_1[data-focus-visible]{--_bg: hsl(from var(--_button-color) h s calc(l + 10) );--_color: hsl(from var(--_button-text) h s calc(l + 10) )}._button_1tdr1_1[data-pressed]{--_bg: hsl(from var(--_button-color) h s calc(l - 5) );--_color: hsl(from var(--_button-text) h s calc(l - 5) )}._button_1tdr1_1[data-selected]{--_bg: var(--_button-color);--_color: var(--_button-text)}._button-link_1tdr1_83{text-underline-offset:.125em;text-decoration-thickness:.075em;text-decoration-color:transparent}._button-link_1tdr1_83[data-hovered],._button-link_1tdr1_83[data-focus-visible],._button-link_1tdr1_83[data-underline]{text-decoration-color:currentColor}._square_1tdr1_115{--_pi: .625em;--_pb: .625em;aspect-ratio:1/1;--_radius: var(--radius-circular)}._avatar_1tdr1_131{--_pi: .125em;--_pb: .125em;aspect-ratio:1/1;--_radius: var(--radius-circular)}._rectangle_1tdr1_147{--_pi: 1.125em;--_pb: .625em;--_radius: var(--radius-button)}._shrink_1tdr1_159{--_pi: 0;--_pb: 0}._primary_1tdr1_171{--_button-color: var(--color-primary);--_button-text: var(--color-on-primary)}._primary-variant_1tdr1_181{--_button-color: var(--color-primary-variant);--_button-text: var(--color-on-primary-variant)}._secondary_1tdr1_191{--_button-color: var(--color-secondary);--_button-text: var(--color-on-secondary)}._tertiary_1tdr1_201{--_button-color: var(--color-tertiary);--_button-text: var(--color-on-tertiary)}._error_1tdr1_211{--_button-color: var(--color-error);--_button-text: var(--color-on-error)}._inverse-surface_1tdr1_221{--_button-color: var(--color-inverse-surface);--_button-text: var(--color-inverse-on-surface)}._success_1tdr1_231{--_button-color: var(--color-success);--_button-text: var(--color-on-success)}._filled_1tdr1_243{--_bg: var(--_button-color);--_color: var(--_button-text)}._outlined_1tdr1_253{--_bg: transparent;--_color: var(--_button-color)}._text_1tdr1_263{--_bg: transparent;--_border-color: transparent;--_color: var(--_button-color)}._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}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a, B as e } from "../../useSplash-
|
|
2
|
-
import { F as r, O as u } from "../../OutlinedButton-
|
|
3
|
-
import { T as s } from "../../TextButton-
|
|
1
|
+
import { a, B as e } from "../../useSplash-BeCk_XMh.js";
|
|
2
|
+
import { F as r, O as u } from "../../OutlinedButton-Cpxp5Ylo.js";
|
|
3
|
+
import { T as s } from "../../TextButton-_N9wgIF3.js";
|
|
4
4
|
export {
|
|
5
5
|
a as ButtonShape,
|
|
6
6
|
e as ButtonVariant,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as o, O as i } from "../../OutlinedButtonLink-
|
|
2
|
-
import { L as r } from "../../Link-
|
|
1
|
+
import { F as o, O as i } from "../../OutlinedButtonLink-C2IiFMcg.js";
|
|
2
|
+
import { L as r } from "../../Link-DAkzJToe.js";
|
|
3
3
|
export {
|
|
4
4
|
o as FilledButtonLink,
|
|
5
5
|
r as Link,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as i } from "../../NavigationResponsive-
|
|
2
|
-
import { N as r } from "../../NavigationSidebar-
|
|
3
|
-
import { N } from "../../NavigationMenu-
|
|
1
|
+
import { N as i } from "../../NavigationResponsive-C4PFfTvv.js";
|
|
2
|
+
import { N as r } from "../../NavigationSidebar-V4M6KqcW.js";
|
|
3
|
+
import { N } from "../../NavigationMenu-CFVzC6tr.js";
|
|
4
4
|
export {
|
|
5
5
|
N as NavigationMenu,
|
|
6
6
|
i as NavigationResponsive,
|
package/dist/index.js
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { A as
|
|
3
|
-
import { a as
|
|
4
|
-
import { F as
|
|
5
|
-
import { T as
|
|
6
|
-
import { D as
|
|
7
|
-
import { D as
|
|
8
|
-
import { E as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { M as
|
|
16
|
-
import { M as
|
|
17
|
-
import { M as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { N as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { S as
|
|
25
|
-
import {
|
|
26
|
-
import { T as
|
|
1
|
+
import { C as e } from "./types-C1YOMbh5.js";
|
|
2
|
+
import { A as s, a as p, b as m } from "./Avatar-vPRORJSz.js";
|
|
3
|
+
import { a as i, B as n } from "./useSplash-BeCk_XMh.js";
|
|
4
|
+
import { F as u, O as l } from "./OutlinedButton-Cpxp5Ylo.js";
|
|
5
|
+
import { T as S } from "./TextButton-_N9wgIF3.js";
|
|
6
|
+
import { D as M } from "./Disclosure-BWhHg23-.js";
|
|
7
|
+
import { D as b } from "./DisclousreGroup-BaPxc0kO.js";
|
|
8
|
+
import { E as v } from "./Error-y2dIWjyb.js";
|
|
9
|
+
import "zod";
|
|
10
|
+
import { F } from "./Form-B7w2oUTu.js";
|
|
11
|
+
import { I as g } from "./Input-BCN_oTYG.js";
|
|
12
|
+
import { T as D } from "./TextArea-DhRiN153.js";
|
|
13
|
+
import { F as P, O as k } from "./OutlinedButtonLink-C2IiFMcg.js";
|
|
14
|
+
import { L as h } from "./Link-DAkzJToe.js";
|
|
15
|
+
import { M as E } from "./MenuButton-BikS-I_v.js";
|
|
16
|
+
import { M as I } from "./MenuLabel-CqOBBOhO.js";
|
|
17
|
+
import { M as R, a as V, b as j } from "./ModalAction-BkwdZJBK.js";
|
|
18
|
+
import { M as w } from "./ModalBase-DLaR_yid.js";
|
|
19
|
+
import { N as J } from "./NavigationResponsive-C4PFfTvv.js";
|
|
20
|
+
import { S as Q, a as U, b as W } from "./Sidebar-LlVvowsG.js";
|
|
21
|
+
import { N as Y } from "./NavigationSidebar-V4M6KqcW.js";
|
|
22
|
+
import { N as _ } from "./NavigationMenu-CFVzC6tr.js";
|
|
23
|
+
import { P as oo } from "./Popover-D3iGWJwQ.js";
|
|
24
|
+
import { S as ao } from "./Select-0-tGNeL9.js";
|
|
25
|
+
import { S as to } from "./Success-Bh3pb5T7.js";
|
|
26
|
+
import { T as po } from "./ToggleButtonGroup-B6KyntY6.js";
|
|
27
|
+
import { T as xo } from "./Tree-DwJPCnFr.js";
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
29
|
+
s as Avatar,
|
|
30
|
+
p as AvatarSize,
|
|
31
|
+
m as AvatarType,
|
|
32
|
+
i as ButtonShape,
|
|
33
|
+
n as ButtonVariant,
|
|
34
|
+
e as ColorTheme,
|
|
35
|
+
M as Disclosure,
|
|
36
|
+
b as DisclosureGroup,
|
|
37
|
+
v as Error,
|
|
38
|
+
u as FilledButton,
|
|
39
|
+
P as FilledButtonLink,
|
|
40
|
+
F as Form,
|
|
41
|
+
g as Input,
|
|
42
|
+
h as Link,
|
|
43
|
+
E as MenuButton,
|
|
44
|
+
I as MenuLabel,
|
|
45
|
+
R as ModalAction,
|
|
46
|
+
V as ModalActionPlacement,
|
|
47
|
+
w as ModalBase,
|
|
48
|
+
j as ModalCloseText,
|
|
49
|
+
_ as NavigationMenu,
|
|
50
|
+
J as NavigationResponsive,
|
|
51
|
+
Y as NavigationSidebar,
|
|
52
|
+
l as OutlinedButton,
|
|
53
|
+
k as OutlinedButtonLink,
|
|
54
|
+
oo as Popover,
|
|
55
|
+
ao as Select,
|
|
56
|
+
Q as Sidebar,
|
|
57
|
+
U as SidebarPosition,
|
|
58
|
+
W as SidebarSize,
|
|
59
|
+
to as Success,
|
|
60
|
+
D as TextArea,
|
|
61
|
+
S as TextButton,
|
|
62
|
+
po as ToggleButtonGroup,
|
|
63
|
+
xo as Tree
|
|
63
64
|
};
|
package/dist/styles/main.css
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l, useRef as n, useEffect as i } from "react";
|
|
3
|
+
import './assets/useSplash.css';var d = /* @__PURE__ */ ((t) => (t.filled = "filled", t.outlined = "outlined", t.text = "text", t))(d || {}), u = /* @__PURE__ */ ((t) => (t.rectangle = "rectangle", t.square = "square", t.avatar = "avatar", t.shrink = "shrink", t))(u || {});
|
|
4
|
+
const y = "_button_1tdr1_1", f = "_square_1tdr1_115", m = "_avatar_1tdr1_131", v = "_rectangle_1tdr1_147", p = "_shrink_1tdr1_159", h = "_primary_1tdr1_171", x = "_secondary_1tdr1_191", k = "_tertiary_1tdr1_201", b = "_error_1tdr1_211", g = "_success_1tdr1_231", q = "_filled_1tdr1_243", S = "_outlined_1tdr1_253", T = "_text_1tdr1_263", z = {
|
|
5
|
+
button: y,
|
|
6
|
+
"button-link": "_button-link_1tdr1_83",
|
|
7
|
+
square: f,
|
|
8
|
+
avatar: m,
|
|
9
|
+
rectangle: v,
|
|
10
|
+
shrink: p,
|
|
11
|
+
primary: h,
|
|
12
|
+
"primary-variant": "_primary-variant_1tdr1_181",
|
|
13
|
+
secondary: x,
|
|
14
|
+
tertiary: k,
|
|
15
|
+
error: b,
|
|
16
|
+
"inverse-surface": "_inverse-surface_1tdr1_221",
|
|
17
|
+
success: g,
|
|
18
|
+
filled: q,
|
|
19
|
+
outlined: S,
|
|
20
|
+
text: T
|
|
21
|
+
}, $ = "_splash_zhwi0_1", R = {
|
|
22
|
+
splash: $
|
|
23
|
+
}, C = ({ id: t, x: e, y: s }) => /* @__PURE__ */ o(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: `${R.splash}`,
|
|
27
|
+
style: {
|
|
28
|
+
insetInlineStart: e,
|
|
29
|
+
insetBlockStart: s,
|
|
30
|
+
translate: "-50% -50%"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
`${t}`
|
|
34
|
+
), E = (t) => {
|
|
35
|
+
const [e, s] = l(null), _ = n(0);
|
|
36
|
+
let a = n(void 0), c = (r) => {
|
|
37
|
+
s({ id: _.current++, x: r.x, y: r.y }), r.x !== -1 && r.y !== -1 && (clearTimeout(a.current), a.current = setTimeout(() => s(null), 500)), t?.(r);
|
|
38
|
+
};
|
|
39
|
+
return i(() => () => {
|
|
40
|
+
clearTimeout(a.current);
|
|
41
|
+
}, []), { coords: e, handlePress: c };
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
d as B,
|
|
45
|
+
C as S,
|
|
46
|
+
u as a,
|
|
47
|
+
z as s,
|
|
48
|
+
E as u
|
|
49
|
+
};
|
package/package.json
CHANGED
package/dist/Form-BrgsgT93.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import { Form as i } from "react-aria-components";
|
|
3
|
-
import { useState as l } from "react";
|
|
4
|
-
import './assets/Form.css';function d(o, e = (r) => r.message) {
|
|
5
|
-
const r = {}, s = [];
|
|
6
|
-
for (const t of o.issues)
|
|
7
|
-
t.path.length > 0 ? (r[t.path[0]] = r[t.path[0]] || [], r[t.path[0]].push(e(t))) : s.push(e(t));
|
|
8
|
-
return { formErrors: s, fieldErrors: r };
|
|
9
|
-
}
|
|
10
|
-
const h = "_form_1k1fe_1", E = {
|
|
11
|
-
form: h
|
|
12
|
-
}, F = (o, e) => {
|
|
13
|
-
const r = Object.fromEntries(new FormData(o)), s = e.safeParse(r);
|
|
14
|
-
return s.success ? {
|
|
15
|
-
success: !0,
|
|
16
|
-
data: s.data
|
|
17
|
-
} : {
|
|
18
|
-
success: !1,
|
|
19
|
-
errors: d(s.error).fieldErrors
|
|
20
|
-
};
|
|
21
|
-
}, g = ({
|
|
22
|
-
schema: o,
|
|
23
|
-
onSubmit: e,
|
|
24
|
-
children: r,
|
|
25
|
-
...s
|
|
26
|
-
}) => {
|
|
27
|
-
const [t, a] = l({});
|
|
28
|
-
return /* @__PURE__ */ f(
|
|
29
|
-
i,
|
|
30
|
-
{
|
|
31
|
-
...s,
|
|
32
|
-
validationErrors: t,
|
|
33
|
-
onSubmit: async (c) => {
|
|
34
|
-
c.preventDefault(), a({});
|
|
35
|
-
const m = c.currentTarget, n = F(m, o);
|
|
36
|
-
if (!n.success) {
|
|
37
|
-
a(n.errors);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
const u = await e(n.data, () => m.reset());
|
|
41
|
-
if (u) {
|
|
42
|
-
a(u);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
className: s.className ?? E.form,
|
|
47
|
-
children: r
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
export {
|
|
52
|
-
g as F
|
|
53
|
-
};
|
package/dist/Link-CbLEp2fF.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { Link as t } from "react-aria-components";
|
|
3
|
-
import { C as m } from "./types-C1YOMbh5.js";
|
|
4
|
-
import { T as _ } from "./Tooltip-DAYtebkl.js";
|
|
5
|
-
import './assets/Link.css';const c = "_link_1nmvo_1", y = "_primary_1nmvo_65", v = "_secondary_1nmvo_81", l = "_tertiary_1nmvo_89", p = "_error_1nmvo_97", u = "_success_1nmvo_113", s = {
|
|
6
|
-
link: c,
|
|
7
|
-
primary: y,
|
|
8
|
-
"primary-variant": "_primary-variant_1nmvo_73",
|
|
9
|
-
secondary: v,
|
|
10
|
-
tertiary: l,
|
|
11
|
-
error: p,
|
|
12
|
-
"inverse-surface": "_inverse-surface_1nmvo_105",
|
|
13
|
-
success: u
|
|
14
|
-
}, T = ({
|
|
15
|
-
theme: r = m.primary,
|
|
16
|
-
description: a,
|
|
17
|
-
underline: e = !0,
|
|
18
|
-
children: i,
|
|
19
|
-
...n
|
|
20
|
-
}) => /* @__PURE__ */ o(_, { description: a, theme: r, children: /* @__PURE__ */ o(
|
|
21
|
-
t,
|
|
22
|
-
{
|
|
23
|
-
...n,
|
|
24
|
-
className: n.className ?? `${s.link} ${s[r]}`,
|
|
25
|
-
...e && { "data-underline": !0 },
|
|
26
|
-
children: i
|
|
27
|
-
}
|
|
28
|
-
) });
|
|
29
|
-
export {
|
|
30
|
-
T as L
|
|
31
|
-
};
|
package/dist/Select-uiw8JPDT.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
2
|
-
import { O as S, F as T } from "./OutlinedButton-DaLKO8zx.js";
|
|
3
|
-
import { B as o } from "./useSplash-7h6ni4l2.js";
|
|
4
|
-
import { Select as b, SelectValue as m, ListBox as k, Text as d, ListBoxItem as V } from "react-aria-components";
|
|
5
|
-
import { P as y } from "./Popover-D3iGWJwQ.js";
|
|
6
|
-
import { ChevronsUpDown as C, Check as F } from "lucide-react";
|
|
7
|
-
import { T as $ } from "./TextButton-BJRez1un.js";
|
|
8
|
-
import { C as p } from "./types-C1YOMbh5.js";
|
|
9
|
-
import { T as L } from "./Tooltip-DAYtebkl.js";
|
|
10
|
-
import { L as D, F as j } from "./FieldError-a_f080R9.js";
|
|
11
|
-
import './assets/Select.css';const w = "_select_17r3s_1", I = "_trigger_17r3s_37", t = {
|
|
12
|
-
select: w,
|
|
13
|
-
"selected-value": "_selected-value_17r3s_11",
|
|
14
|
-
"option-description": "_option-description_17r3s_19",
|
|
15
|
-
trigger: I,
|
|
16
|
-
"options-list": "_options-list_17r3s_51",
|
|
17
|
-
"options-item-group": "_options-item-group_17r3s_63",
|
|
18
|
-
"options-item": "_options-item_17r3s_63"
|
|
19
|
-
}, K = ({
|
|
20
|
-
options: u,
|
|
21
|
-
label: a,
|
|
22
|
-
name: _,
|
|
23
|
-
disabled: h,
|
|
24
|
-
isRequired: f,
|
|
25
|
-
triggerVariant: g = o.filled,
|
|
26
|
-
description: x,
|
|
27
|
-
placeholder: c,
|
|
28
|
-
selectedKey: v,
|
|
29
|
-
onSelectionChange: B
|
|
30
|
-
}) => {
|
|
31
|
-
let r;
|
|
32
|
-
switch (g) {
|
|
33
|
-
case o.filled:
|
|
34
|
-
r = T;
|
|
35
|
-
break;
|
|
36
|
-
case o.outlined:
|
|
37
|
-
r = S;
|
|
38
|
-
break;
|
|
39
|
-
case o.text:
|
|
40
|
-
r = $;
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
return /* @__PURE__ */ i(
|
|
44
|
-
b,
|
|
45
|
-
{
|
|
46
|
-
className: t.select,
|
|
47
|
-
isDisabled: h,
|
|
48
|
-
isRequired: f,
|
|
49
|
-
name: _,
|
|
50
|
-
selectedKey: v,
|
|
51
|
-
onSelectionChange: B,
|
|
52
|
-
children: [
|
|
53
|
-
a && /* @__PURE__ */ e(D, { children: a }),
|
|
54
|
-
/* @__PURE__ */ e(L, { description: x, theme: p.inverseSurface, children: /* @__PURE__ */ e(r, { theme: p.inverseSurface, children: /* @__PURE__ */ i("span", { className: t.trigger, children: [
|
|
55
|
-
c ? /* @__PURE__ */ e(m, { className: `${t["selected-value"]}`, children: ({ defaultChildren: s, isPlaceholder: l }) => l ? c : s }) : /* @__PURE__ */ e(m, {}),
|
|
56
|
-
/* @__PURE__ */ e(C, {})
|
|
57
|
-
] }) }) }),
|
|
58
|
-
/* @__PURE__ */ e(j, {}),
|
|
59
|
-
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(k, { className: `${t["options-list"]}`, items: u, children: (s) => {
|
|
60
|
-
const l = /* @__PURE__ */ i(n, { children: [
|
|
61
|
-
/* @__PURE__ */ e(d, { children: s.displayValue }),
|
|
62
|
-
s.description && /* @__PURE__ */ e(d, { className: t["option-description"], children: s.description })
|
|
63
|
-
] });
|
|
64
|
-
return /* @__PURE__ */ e(
|
|
65
|
-
V,
|
|
66
|
-
{
|
|
67
|
-
className: `${t["options-item-group"]}`,
|
|
68
|
-
id: s.key,
|
|
69
|
-
textValue: s.displayValue,
|
|
70
|
-
isDisabled: s.disabled,
|
|
71
|
-
children: ({ isSelected: N }) => /* @__PURE__ */ i(n, { children: [
|
|
72
|
-
/* @__PURE__ */ e("div", { className: `${t["options-item"]}`, children: l }),
|
|
73
|
-
N && /* @__PURE__ */ e(F, {})
|
|
74
|
-
] })
|
|
75
|
-
},
|
|
76
|
-
s.key
|
|
77
|
-
);
|
|
78
|
-
} }) })
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
export {
|
|
84
|
-
K as S
|
|
85
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as l, useRef as a, useEffect as i } from "react";
|
|
3
|
-
import './assets/useSplash.css';var u = /* @__PURE__ */ ((s) => (s.filled = "filled", s.outlined = "outlined", s.text = "text", s))(u || {}), f = /* @__PURE__ */ ((s) => (s.rectangle = "rectangle", s.square = "square", s.avatar = "avatar", s.shrink = "shrink", s))(f || {});
|
|
4
|
-
const k = "_button_kf7sn_1", d = "_square_kf7sn_115", y = "_avatar_kf7sn_131", m = "_rectangle_kf7sn_147", v = "_shrink_kf7sn_159", p = "_primary_kf7sn_171", h = "_secondary_kf7sn_191", x = "_tertiary_kf7sn_201", b = "_error_kf7sn_211", g = "_success_kf7sn_231", q = "_filled_kf7sn_243", S = "_outlined_kf7sn_253", T = "_text_kf7sn_263", z = {
|
|
5
|
-
button: k,
|
|
6
|
-
"button-link": "_button-link_kf7sn_83",
|
|
7
|
-
square: d,
|
|
8
|
-
avatar: y,
|
|
9
|
-
rectangle: m,
|
|
10
|
-
shrink: v,
|
|
11
|
-
primary: p,
|
|
12
|
-
"primary-variant": "_primary-variant_kf7sn_181",
|
|
13
|
-
secondary: h,
|
|
14
|
-
tertiary: x,
|
|
15
|
-
error: b,
|
|
16
|
-
"inverse-surface": "_inverse-surface_kf7sn_221",
|
|
17
|
-
success: g,
|
|
18
|
-
filled: q,
|
|
19
|
-
outlined: S,
|
|
20
|
-
text: T
|
|
21
|
-
}, $ = "_splash_zhwi0_1", R = {
|
|
22
|
-
splash: $
|
|
23
|
-
}, C = ({ id: s, x: e, y: r }) => /* @__PURE__ */ o(
|
|
24
|
-
"div",
|
|
25
|
-
{
|
|
26
|
-
className: `${R.splash}`,
|
|
27
|
-
style: {
|
|
28
|
-
insetInlineStart: e,
|
|
29
|
-
insetBlockStart: r,
|
|
30
|
-
translate: "-50% -50%"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
`${s}`
|
|
34
|
-
), E = (s) => {
|
|
35
|
-
const [e, r] = l(null), _ = a(0);
|
|
36
|
-
let n = a(void 0), c = (t) => {
|
|
37
|
-
r({ id: _.current++, x: t.x, y: t.y }), t.x !== -1 && t.y !== -1 && (clearTimeout(n.current), n.current = setTimeout(() => r(null), 500)), s?.(t);
|
|
38
|
-
};
|
|
39
|
-
return i(() => () => {
|
|
40
|
-
clearTimeout(n.current);
|
|
41
|
-
}, []), { coords: e, handlePress: c };
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
u as B,
|
|
45
|
-
C as S,
|
|
46
|
-
f as a,
|
|
47
|
-
z as s,
|
|
48
|
-
E as u
|
|
49
|
-
};
|