@adgytec/adgytec-web-ui-components 0.0.9 → 0.0.11
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/Avatar-BRt91J0i.js +35 -0
- package/dist/{Disclosure-VEgfonAa.js → Disclosure-BUNppuMs.js} +2 -2
- package/dist/{DisclousreGroup-DEhMBMtj.js → DisclousreGroup-3n2noZn8.js} +1 -1
- package/dist/{Error-y2dIWjyb.js → Error--Jbz8Uoy.js} +1 -1
- package/dist/{FieldError-a_f080R9.js → FieldError-CvUKcRtm.js} +5 -5
- package/dist/Form-B7w2oUTu.js +48 -0
- package/dist/{Input-CcFMJrOW.js → Input-fPkzWJI-.js} +9 -9
- package/dist/Link-DV_dPWbm.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-CG_70YMt.js} +1 -1
- package/dist/{NavigationMenu-DNsB0lr1.js → NavigationMenu-BJh51iq8.js} +4 -4
- package/dist/{NavigationResponsive-D6d2f-k_.js → NavigationResponsive-DijNGfH2.js} +2 -2
- package/dist/{NavigationSidebar-CZEPGghA.js → NavigationSidebar-QiavBbjq.js} +2 -2
- package/dist/{OutlinedButton-DaLKO8zx.js → OutlinedButton-BcGOfKx6.js} +2 -2
- package/dist/{OutlinedButtonLink-BvCiAZyQ.js → OutlinedButtonLink-B31MVQKz.js} +1 -1
- package/dist/Select-DIaQ_hk2.js +85 -0
- package/dist/{Success-Bh3pb5T7.js → Success-FBfAAtBv.js} +1 -1
- package/dist/{TextArea-sEBd2qe1.js → TextArea-BqYpfMqm.js} +10 -10
- package/dist/{TextButton-BJRez1un.js → TextButton-CmbDjZsQ.js} +1 -1
- package/dist/{ToggleButtonGroup-Hw3WdsOM.js → ToggleButtonGroup-B1eveh6s.js} +1 -1
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/Error.css +1 -1
- package/dist/assets/FieldError.css +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/Success.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/useSplash.css +1 -1
- package/dist/components/Avatar/index.js +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/Error/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/Success/index.js +1 -1
- package/dist/components/ToggleButtonGroup/index.js +1 -1
- package/dist/index.js +62 -61
- package/dist/styles/main.css +16 -3
- package/dist/useSplash-DOL9j-2c.js +49 -0
- package/package.json +1 -1
- package/dist/Avatar-vPRORJSz.js +0 -35
- 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,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-B31MVQKz.js";
|
|
2
|
+
import { L as r } from "../../Link-DV_dPWbm.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-DijNGfH2.js";
|
|
2
|
+
import { N as r } from "../../NavigationSidebar-QiavBbjq.js";
|
|
3
|
+
import { N } from "../../NavigationMenu-BJh51iq8.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-BRt91J0i.js";
|
|
3
|
+
import { a as i, B as n } from "./useSplash-DOL9j-2c.js";
|
|
4
|
+
import { F as u, O as l } from "./OutlinedButton-BcGOfKx6.js";
|
|
5
|
+
import { T as S } from "./TextButton-CmbDjZsQ.js";
|
|
6
|
+
import { D as M } from "./Disclosure-BUNppuMs.js";
|
|
7
|
+
import { D as b } from "./DisclousreGroup-3n2noZn8.js";
|
|
8
|
+
import { E as v } from "./Error--Jbz8Uoy.js";
|
|
9
|
+
import "zod";
|
|
10
|
+
import { F } from "./Form-B7w2oUTu.js";
|
|
11
|
+
import { I as g } from "./Input-fPkzWJI-.js";
|
|
12
|
+
import { T as D } from "./TextArea-BqYpfMqm.js";
|
|
13
|
+
import { F as P, O as k } from "./OutlinedButtonLink-B31MVQKz.js";
|
|
14
|
+
import { L as h } from "./Link-DV_dPWbm.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-CG_70YMt.js";
|
|
18
|
+
import { M as w } from "./ModalBase-DLaR_yid.js";
|
|
19
|
+
import { N as J } from "./NavigationResponsive-DijNGfH2.js";
|
|
20
|
+
import { S as Q, a as U, b as W } from "./Sidebar-LlVvowsG.js";
|
|
21
|
+
import { N as Y } from "./NavigationSidebar-QiavBbjq.js";
|
|
22
|
+
import { N as _ } from "./NavigationMenu-BJh51iq8.js";
|
|
23
|
+
import { P as oo } from "./Popover-D3iGWJwQ.js";
|
|
24
|
+
import { S as ao } from "./Select-DIaQ_hk2.js";
|
|
25
|
+
import { S as to } from "./Success-FBfAAtBv.js";
|
|
26
|
+
import { T as po } from "./ToggleButtonGroup-B1eveh6s.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
|
@@ -154,14 +154,18 @@
|
|
|
154
154
|
--form-input-gap: 0.5rem;
|
|
155
155
|
--form-gap: 1rem;
|
|
156
156
|
|
|
157
|
+
--font-weight-regular: 400;
|
|
158
|
+
--font-weight-medium: 600;
|
|
159
|
+
--font-weight-bold: 700;
|
|
160
|
+
|
|
157
161
|
caret-color: var(--color-primary);
|
|
158
162
|
accent-color: var(--color-primary);
|
|
159
163
|
}
|
|
160
164
|
|
|
161
165
|
/* lucide icon global config */
|
|
162
166
|
.lucide {
|
|
163
|
-
width:
|
|
164
|
-
|
|
167
|
+
width: 1.125rem;
|
|
168
|
+
height: 1.125rem;
|
|
165
169
|
stroke-width: 0.1875rem;
|
|
166
170
|
}
|
|
167
171
|
|
|
@@ -182,7 +186,7 @@ body {
|
|
|
182
186
|
|
|
183
187
|
[data-heading] {
|
|
184
188
|
font-family: var(--font-heading);
|
|
185
|
-
font-weight:
|
|
189
|
+
font-weight: var(--font-weight-bold);
|
|
186
190
|
}
|
|
187
191
|
|
|
188
192
|
em,
|
|
@@ -190,3 +194,12 @@ i {
|
|
|
190
194
|
font-family: var(--font-normal);
|
|
191
195
|
font-style: italic;
|
|
192
196
|
}
|
|
197
|
+
|
|
198
|
+
h1,
|
|
199
|
+
h2,
|
|
200
|
+
h3,
|
|
201
|
+
h4,
|
|
202
|
+
h5,
|
|
203
|
+
h6 {
|
|
204
|
+
font-weight: var(--font-weight-bold);
|
|
205
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useState as o, useRef as l, useEffect as i } from "react";
|
|
3
|
+
import './assets/useSplash.css';var u = /* @__PURE__ */ ((t) => (t.filled = "filled", t.outlined = "outlined", t.text = "text", t))(u || {}), x = /* @__PURE__ */ ((t) => (t.rectangle = "rectangle", t.square = "square", t.avatar = "avatar", t.shrink = "shrink", t))(x || {});
|
|
4
|
+
const b = "_button_c4lxb_1", d = "_square_c4lxb_115", y = "_avatar_c4lxb_131", f = "_rectangle_c4lxb_147", m = "_shrink_c4lxb_159", v = "_primary_c4lxb_171", p = "_secondary_c4lxb_191", h = "_tertiary_c4lxb_201", k = "_error_c4lxb_211", g = "_success_c4lxb_231", q = "_filled_c4lxb_243", S = "_outlined_c4lxb_253", T = "_text_c4lxb_263", z = {
|
|
5
|
+
button: b,
|
|
6
|
+
"button-link": "_button-link_c4lxb_83",
|
|
7
|
+
square: d,
|
|
8
|
+
avatar: y,
|
|
9
|
+
rectangle: f,
|
|
10
|
+
shrink: m,
|
|
11
|
+
primary: v,
|
|
12
|
+
"primary-variant": "_primary-variant_c4lxb_181",
|
|
13
|
+
secondary: p,
|
|
14
|
+
tertiary: h,
|
|
15
|
+
error: k,
|
|
16
|
+
"inverse-surface": "_inverse-surface_c4lxb_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__ */ _(
|
|
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] = o(null), a = l(0);
|
|
36
|
+
let c = l(void 0), n = (r) => {
|
|
37
|
+
s({ id: a.current++, x: r.x, y: r.y }), r.x !== -1 && r.y !== -1 && (clearTimeout(c.current), c.current = setTimeout(() => s(null), 500)), t?.(r);
|
|
38
|
+
};
|
|
39
|
+
return i(() => () => {
|
|
40
|
+
clearTimeout(c.current);
|
|
41
|
+
}, []), { coords: e, handlePress: n };
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
u as B,
|
|
45
|
+
C as S,
|
|
46
|
+
x as a,
|
|
47
|
+
z as s,
|
|
48
|
+
E as u
|
|
49
|
+
};
|
package/package.json
CHANGED
package/dist/Avatar-vPRORJSz.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { C as m } from "./types-C1YOMbh5.js";
|
|
3
|
-
import './assets/Avatar.css';var i = /* @__PURE__ */ ((r) => (r.small = "small", r.normal = "normal", r.large = "large", r))(i || {}), l = /* @__PURE__ */ ((r) => (r.image = "image", r.node = "node", r))(l || {});
|
|
4
|
-
const c = "_avatar_hl5i2_1", y = "_node_hl5i2_37", h = "_image_hl5i2_61", g = "_small_hl5i2_79", d = "_normal_hl5i2_89", p = "_large_hl5i2_99", u = "_primary_hl5i2_111", v = "_secondary_hl5i2_131", f = "_tertiary_hl5i2_141", $ = "_error_hl5i2_151", x = "_success_hl5i2_171", e = {
|
|
5
|
-
avatar: c,
|
|
6
|
-
node: y,
|
|
7
|
-
image: h,
|
|
8
|
-
small: g,
|
|
9
|
-
normal: d,
|
|
10
|
-
large: p,
|
|
11
|
-
primary: u,
|
|
12
|
-
"primary-variant": "_primary-variant_hl5i2_121",
|
|
13
|
-
secondary: v,
|
|
14
|
-
tertiary: f,
|
|
15
|
-
error: $,
|
|
16
|
-
"inverse-surface": "_inverse-surface_hl5i2_161",
|
|
17
|
-
success: x
|
|
18
|
-
}, t = ({ children: r, size: a, type: s, theme: _ }) => /* @__PURE__ */ o(
|
|
19
|
-
"div",
|
|
20
|
-
{
|
|
21
|
-
className: `${e.avatar} ${e[a]} ${e[s]} ${e[_]}`,
|
|
22
|
-
children: r
|
|
23
|
-
}
|
|
24
|
-
), j = ({
|
|
25
|
-
src: r,
|
|
26
|
-
children: a,
|
|
27
|
-
size: s = i.normal,
|
|
28
|
-
label: _,
|
|
29
|
-
theme: n = m.primary
|
|
30
|
-
}) => a ? /* @__PURE__ */ o(t, { type: l.node, size: s, theme: n, children: a }) : /* @__PURE__ */ o(t, { size: s, type: l.image, theme: n, children: /* @__PURE__ */ o("img", { src: r, alt: _ }) });
|
|
31
|
-
export {
|
|
32
|
-
j as A,
|
|
33
|
-
i as a,
|
|
34
|
-
l as b
|
|
35
|
-
};
|
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
|
-
};
|