@adgytec/adgytec-web-ui-components 1.0.0 → 1.1.1
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/assets/Avatar.css +1 -0
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/ButtonChild.css +1 -0
- package/dist/assets/Container.css +1 -0
- package/dist/assets/Disclosure.css +1 -1
- package/dist/assets/DisclousreGroup.css +1 -0
- package/dist/assets/Error.css +1 -0
- package/dist/assets/FieldError.css +1 -1
- package/dist/assets/Form.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/Link.css +1 -1
- package/dist/assets/Loader.css +1 -1
- package/dist/assets/Menu.css +1 -1
- package/dist/assets/MenuLabel.css +1 -1
- package/dist/assets/ModalAction.css +1 -0
- package/dist/assets/ModalBase.css +1 -1
- package/dist/assets/NavigationMenu.css +1 -1
- package/dist/assets/NavigationSidebar.css +1 -1
- package/dist/assets/Popover.css +1 -1
- package/dist/assets/Select.css +1 -0
- package/dist/assets/Sidebar.css +1 -1
- package/dist/assets/Success.css +1 -0
- package/dist/assets/TextArea.css +1 -0
- package/dist/assets/Toast.css +1 -0
- package/dist/assets/ToggleButtonGroup.css +1 -0
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/Tree.css +1 -1
- package/dist/assets/useSplash.css +1 -0
- package/dist/chunks/Avatar +42 -0
- package/dist/chunks/BaseCard +33 -0
- package/dist/chunks/Button +39 -0
- package/dist/chunks/ButtonChild +47 -0
- package/dist/chunks/ButtonLink +40 -0
- package/dist/chunks/ComponentShapeSwitcher +47 -0
- package/dist/chunks/Container +21 -0
- package/dist/chunks/Disclosure +25 -0
- package/dist/chunks/DisclousreGroup +18 -0
- package/dist/chunks/Error +8 -0
- package/dist/chunks/FieldError +25 -0
- package/dist/chunks/FilledButton +9 -0
- package/dist/chunks/FilledButtonLink +6 -0
- package/dist/chunks/Form +52 -0
- package/dist/chunks/GradientCard +6 -0
- package/dist/chunks/Image +32 -0
- package/dist/chunks/Input +34 -0
- package/dist/chunks/Link +31 -0
- package/dist/chunks/Loader +9 -0
- package/dist/chunks/Menu +56 -0
- package/dist/chunks/MenuButton +6 -0
- package/dist/chunks/MenuLabel +15 -0
- package/dist/chunks/ModalAction +52 -0
- package/dist/chunks/ModalBase +31 -0
- package/dist/chunks/NavigationMenu +48 -0
- package/dist/chunks/NavigationResponsive +12 -0
- package/dist/chunks/NavigationSidebar +34 -0
- package/dist/chunks/OutlinedButton +9 -0
- package/dist/chunks/OutlinedButtonLink +6 -0
- package/dist/chunks/Popover +15 -0
- package/dist/chunks/PopoverDialog +15 -0
- package/dist/chunks/Select +121 -0
- package/dist/chunks/Sidebar +54 -0
- package/dist/chunks/SolidCard +9 -0
- package/dist/chunks/Success +8 -0
- package/dist/chunks/TextArea +34 -0
- package/dist/chunks/TextButton +9 -0
- package/dist/chunks/ThemeSwitcher +53 -0
- package/dist/chunks/Toast +49 -0
- package/dist/chunks/ToggleButton +35 -0
- package/dist/chunks/ToggleButtonGroup +29 -0
- package/dist/chunks/Tooltip +29 -0
- package/dist/chunks/Tree +36 -0
- package/dist/chunks/Viewport +16 -0
- package/dist/chunks/useSplash +48 -0
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Avatar/index.js +2 -33
- package/dist/components/Avatar/types.d.ts +9 -14
- package/dist/components/Button/ButtonBase/ButtonLink.d.ts +1 -1
- package/dist/components/Button/ButtonBase/index.d.ts +1 -1
- package/dist/components/Button/ButtonBase/index.js +1 -5
- package/dist/components/Button/ButtonBase/types.d.ts +4 -16
- package/dist/components/Button/ButtonChild/ButtonChild.d.ts +1 -1
- package/dist/components/Button/ButtonChild/index.d.ts +1 -1
- package/dist/components/Button/ButtonChild/index.js +2 -48
- package/dist/components/Button/ButtonChild/types.d.ts +1 -7
- 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.d.ts +1 -1
- package/dist/components/Card/BaseCard/index.js +2 -3
- package/dist/components/Card/BaseCard/types.d.ts +2 -9
- package/dist/components/Card/GradientCard/index.js +2 -4
- package/dist/components/Card/SolidCard/index.js +2 -7
- package/dist/components/Container/Container.d.ts +2 -0
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/Container/index.js +4 -0
- package/dist/components/Container/types.d.ts +5 -0
- package/dist/components/Disclosure/Disclosure/Disclosure.d.ts +1 -1
- package/dist/components/Disclosure/Disclosure/index.d.ts +1 -1
- package/dist/components/Disclosure/Disclosure/index.js +1 -1
- package/dist/components/Disclosure/Disclosure/types.d.ts +2 -0
- package/dist/components/Disclosure/DisclousureGroup/index.d.ts +1 -1
- package/dist/components/Disclosure/DisclousureGroup/index.js +2 -7
- package/dist/components/Error/index.d.ts +1 -1
- package/dist/components/Error/index.js +2 -5
- package/dist/components/Form/Form/index.d.ts +1 -1
- package/dist/components/Form/Form/index.js +2 -46
- package/dist/components/Form/Input/index.d.ts +1 -1
- package/dist/components/Form/Input/index.js +2 -31
- package/dist/components/Form/TextArea/index.d.ts +1 -1
- package/dist/components/Form/TextArea/index.js +2 -31
- package/dist/components/Image/Image.d.ts +3 -0
- package/dist/components/Image/ImageSource.d.ts +3 -0
- package/dist/components/Image/ImageVariants.d.ts +3 -0
- package/dist/components/Image/index.d.ts +2 -0
- package/dist/components/Image/index.js +4 -0
- package/dist/components/Image/types.d.ts +17 -0
- package/dist/components/Link/FilledButtonLink/index.js +1 -4
- package/dist/components/Link/LinkBase/index.d.ts +1 -1
- package/dist/components/Link/LinkBase/index.js +1 -1
- package/dist/components/Link/OutlinedButtonLink/index.js +2 -5
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/MenuBase/index.d.ts +1 -1
- package/dist/components/Menu/MenuButton/index.js +2 -4
- package/dist/components/Menu/MenuLabel/index.js +1 -1
- package/dist/components/Modal/ModalAction/index.d.ts +1 -1
- package/dist/components/Modal/ModalAction/index.js +2 -49
- package/dist/components/Modal/ModalAction/types.d.ts +1 -4
- package/dist/components/Modal/ModalBase/index.d.ts +1 -1
- package/dist/components/Modal/ModalBase/index.js +1 -1
- package/dist/components/Navigation/NavigationMenu/index.d.ts +1 -1
- package/dist/components/Navigation/NavigationMenu/index.js +1 -1
- package/dist/components/Navigation/NavigationResponsive/index.d.ts +1 -1
- package/dist/components/Navigation/NavigationResponsive/index.js +2 -10
- package/dist/components/Navigation/NavigationSidebar/index.d.ts +1 -1
- package/dist/components/Navigation/NavigationSidebar/index.js +1 -1
- package/dist/components/Popover/PopoverBase/index.d.ts +1 -1
- package/dist/components/Popover/PopoverBase/index.js +1 -1
- package/dist/components/Popover/PopoverDialog/index.js +2 -13
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.js +2 -89
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.js +2 -4
- package/dist/components/Sidebar/types.d.ts +2 -12
- package/dist/components/Success/index.d.ts +1 -1
- package/dist/components/Success/index.js +2 -5
- package/dist/components/Toast/Toast.d.ts +2 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +4 -0
- package/dist/components/Toast/types.d.ts +12 -0
- package/dist/components/ToggleButtonGroup/index.d.ts +1 -1
- package/dist/components/ToggleButtonGroup/index.js +2 -27
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tree/index.d.ts +1 -1
- package/dist/components/Tree/index.js +1 -1
- package/dist/components/Viewport/Viewport.d.ts +1 -0
- package/dist/components/Viewport/index.d.ts +1 -0
- package/dist/components/Viewport/index.js +4 -0
- package/dist/components/VisualSettings/ComponentShapeSwitcher/ComponentShapeSwitcher.d.ts +0 -1
- package/dist/components/VisualSettings/ComponentShapeSwitcher/index.d.ts +1 -1
- package/dist/components/VisualSettings/ComponentShapeSwitcher/index.js +2 -4
- package/dist/components/VisualSettings/ComponentShapeSwitcher/types.d.ts +7 -5
- package/dist/components/VisualSettings/ThemeSwitcher/ThemeSwitcher.d.ts +0 -1
- package/dist/components/VisualSettings/ThemeSwitcher/index.d.ts +1 -1
- package/dist/components/VisualSettings/ThemeSwitcher/index.js +1 -1
- package/dist/components/VisualSettings/ThemeSwitcher/types.d.ts +7 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +80 -3
- package/dist/utils/types.d.ts +2 -13
- package/package.json +73 -226
- package/dist/BaseCard-DrG8XXVz.js +0 -30
- package/dist/Button-Dtvxu-co.js +0 -34
- package/dist/ButtonLink-fUZZI7JR.js +0 -36
- package/dist/ComponentShapeSwitcher-CY_93STw.js +0 -46
- package/dist/Disclosure-BGdAnqQv.js +0 -28
- package/dist/FieldError-CvUKcRtm.js +0 -17
- package/dist/FilledButton-SpEu55ES.js +0 -10
- package/dist/Link-Be6F1iXD.js +0 -31
- package/dist/Loader-CLMHp6L7.js +0 -8
- package/dist/Menu-DvZqs_yA.js +0 -55
- package/dist/MenuLabel-B0FrGXKS.js +0 -14
- package/dist/ModalBase-DOU0cBij.js +0 -27
- package/dist/NavigationMenu-DqDfWOnJ.js +0 -49
- package/dist/NavigationSidebar-Dx2ww8hp.js +0 -35
- package/dist/OutlinedButton-QAeXI3Dj.js +0 -10
- package/dist/Popover-CNBII_iI.js +0 -14
- package/dist/Sidebar-BqNH6hIl.js +0 -52
- package/dist/Splash-neeaI9j6.js +0 -46
- package/dist/TextButton-CWDZaF0c.js +0 -10
- package/dist/ThemeSwitcher-Nf1-Z_ql.js +0 -48
- package/dist/ToggleButton-DPy_Urwc.js +0 -31
- package/dist/Tooltip-D-jCnOvo.js +0 -29
- package/dist/Tree-DwJPCnFr.js +0 -35
- package/dist/assets/Splash.css +0 -1
- package/dist/assets/index.css +0 -1
- package/dist/assets/index10.css +0 -1
- package/dist/assets/index11.css +0 -1
- package/dist/assets/index12.css +0 -1
- package/dist/assets/index13.css +0 -1
- package/dist/assets/index2.css +0 -1
- package/dist/assets/index3.css +0 -1
- package/dist/assets/index4.css +0 -1
- package/dist/assets/index5.css +0 -1
- package/dist/assets/index6.css +0 -1
- package/dist/assets/index7.css +0 -1
- package/dist/assets/index8.css +0 -1
- package/dist/assets/index9.css +0 -1
- package/dist/components/VisualSettings/VisualSettings/VisualSettings.d.ts +0 -3
- package/dist/components/VisualSettings/VisualSettings/index.d.ts +0 -2
- package/dist/components/VisualSettings/VisualSettings/index.js +0 -124
- package/dist/components/VisualSettings/VisualSettings/types.d.ts +0 -3
- package/dist/index-BG6gd3OK.js +0 -118
- package/dist/styles/main.css +0 -208
- package/dist/vite.svg +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './DisclousreGroup';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as i } from "../../../Disclosure-BGdAnqQv.js";
|
|
3
|
-
import { DisclosureGroup as u } from "react-aria-components";
|
|
4
|
-
import '../../../assets/index7.css';const e = {
|
|
5
|
-
"disclosure-group": "_disclosure-group_vh6v0_1"
|
|
6
|
-
}, p = ({ items: o }) => /* @__PURE__ */ s(u, { className: e["disclosure-group"], children: o.map((r) => /* @__PURE__ */ s(i, { heading: r.heading, id: r.id, children: r.children }, r.id)) });
|
|
1
|
+
import { D as s } from "../../../chunks/DisclousreGroup";
|
|
7
2
|
export {
|
|
8
|
-
|
|
3
|
+
s as DisclosureGroup
|
|
9
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Error';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../../assets/index6.css';const s = "_error_imsl6_1", e = {
|
|
3
|
-
error: s
|
|
4
|
-
}, c = ({ children: r }) => /* @__PURE__ */ o("p", { className: `${e.error}`, children: r });
|
|
1
|
+
import { E } from "../../chunks/Error";
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
E as Error
|
|
7
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export type * from './types';
|
|
2
2
|
export * from './Form';
|
|
@@ -1,48 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
-
import { Form as l } from "react-aria-components";
|
|
4
|
-
import { useState as d } from "react";
|
|
5
|
-
import '../../../assets/index9.css';const E = "_form_1k1fe_1", F = {
|
|
6
|
-
form: E
|
|
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: f.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__ */ i(
|
|
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 ?? F.form,
|
|
42
|
-
children: e
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
};
|
|
1
|
+
import { F as m } from "../../../chunks/Form";
|
|
46
2
|
export {
|
|
47
|
-
|
|
3
|
+
m as Form
|
|
48
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Input';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,33 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TextField as c, Input as m } from "react-aria-components";
|
|
3
|
-
import { L as u, F as p } from "../../../FieldError-CvUKcRtm.js";
|
|
4
|
-
import '../../../assets/index5.css';const d = "_input_1ksju_1", l = "_editor_1ksju_11", o = {
|
|
5
|
-
input: d,
|
|
6
|
-
editor: l
|
|
7
|
-
}, f = ({
|
|
8
|
-
label: t,
|
|
9
|
-
textFieldProps: r,
|
|
10
|
-
inputProps: e,
|
|
11
|
-
labelProps: i,
|
|
12
|
-
fieldErrorProps: n
|
|
13
|
-
}) => /* @__PURE__ */ a(
|
|
14
|
-
c,
|
|
15
|
-
{
|
|
16
|
-
...r,
|
|
17
|
-
className: r?.className ?? o.input,
|
|
18
|
-
children: [
|
|
19
|
-
t && /* @__PURE__ */ s(u, { ...i, children: t }),
|
|
20
|
-
/* @__PURE__ */ s(
|
|
21
|
-
m,
|
|
22
|
-
{
|
|
23
|
-
...e,
|
|
24
|
-
className: e?.className ?? o.editor
|
|
25
|
-
}
|
|
26
|
-
),
|
|
27
|
-
/* @__PURE__ */ s(p, { ...n })
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
);
|
|
1
|
+
import { I as r } from "../../../chunks/Input";
|
|
31
2
|
export {
|
|
32
|
-
|
|
3
|
+
r as Input
|
|
33
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './TextArea';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,33 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TextField as m, TextArea as x } from "react-aria-components";
|
|
3
|
-
import { L as d, F as l } from "../../../FieldError-CvUKcRtm.js";
|
|
4
|
-
import '../../../assets/index4.css';const n = "_textarea_3agtk_1", _ = "_editor_3agtk_11", s = {
|
|
5
|
-
textarea: n,
|
|
6
|
-
editor: _
|
|
7
|
-
}, g = ({
|
|
8
|
-
label: t,
|
|
9
|
-
textFieldProps: a,
|
|
10
|
-
textAreaProps: r,
|
|
11
|
-
labelProps: o,
|
|
12
|
-
fieldErrorProps: c
|
|
13
|
-
}) => /* @__PURE__ */ i(
|
|
14
|
-
m,
|
|
15
|
-
{
|
|
16
|
-
...a,
|
|
17
|
-
className: a?.className ?? s.textarea,
|
|
18
|
-
children: [
|
|
19
|
-
t && /* @__PURE__ */ e(d, { ...o, children: t }),
|
|
20
|
-
/* @__PURE__ */ e(
|
|
21
|
-
x,
|
|
22
|
-
{
|
|
23
|
-
...r,
|
|
24
|
-
className: r?.className ?? s.editor
|
|
25
|
-
}
|
|
26
|
-
),
|
|
27
|
-
/* @__PURE__ */ e(l, { ...c })
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
);
|
|
1
|
+
import { T as a } from "../../../chunks/TextArea";
|
|
31
2
|
export {
|
|
32
|
-
|
|
3
|
+
a as TextArea
|
|
33
4
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type ImageVariant = "thumbnail" | "small" | "medium" | "large" | "extraLarge";
|
|
2
|
+
export type ImageVariants = Record<ImageVariant, string>;
|
|
3
|
+
type NativeImageProps = Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src" | "srcSet">;
|
|
4
|
+
export type ImageSourceProps = NativeImageProps & {
|
|
5
|
+
type: "source";
|
|
6
|
+
src: string;
|
|
7
|
+
original?: never;
|
|
8
|
+
variants?: never;
|
|
9
|
+
};
|
|
10
|
+
export type ImageVariantProps = NativeImageProps & {
|
|
11
|
+
type: "variants";
|
|
12
|
+
src?: never;
|
|
13
|
+
original: string;
|
|
14
|
+
variants: ImageVariants;
|
|
15
|
+
};
|
|
16
|
+
export type ImageProps = ImageSourceProps | ImageVariantProps;
|
|
17
|
+
export {};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as r } from "../../../ButtonLink-fUZZI7JR.js";
|
|
3
|
-
import { ButtonVariant as i } from "../../Button/ButtonBase/index.js";
|
|
4
|
-
const e = (t) => /* @__PURE__ */ o(r, { ...t, variant: i.filled });
|
|
1
|
+
import { F as e } from "../../../chunks/FilledButtonLink";
|
|
5
2
|
export {
|
|
6
3
|
e as FilledButtonLink
|
|
7
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Link';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as n } from "../../../ButtonLink-fUZZI7JR.js";
|
|
3
|
-
import { ButtonVariant as r } from "../../Button/ButtonBase/index.js";
|
|
4
|
-
const a = (t) => /* @__PURE__ */ o(n, { ...t, variant: r.outlined });
|
|
1
|
+
import { O as o } from "../../../chunks/OutlinedButtonLink";
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
o as OutlinedButtonLink
|
|
7
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export type * from './types';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as n } from "../../../Menu-DvZqs_yA.js";
|
|
3
|
-
const u = ({ children: o, menuItems: r }) => /* @__PURE__ */ t(n, { menuItems: r, children: o });
|
|
1
|
+
import { M as e } from "../../../chunks/MenuButton";
|
|
4
2
|
export {
|
|
5
|
-
|
|
3
|
+
e as MenuButton
|
|
6
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './ModalAction';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,51 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as h } from "../../../ModalBase-DOU0cBij.js";
|
|
3
|
-
import { T as p } from "../../../TextButton-CWDZaF0c.js";
|
|
4
|
-
import { ColorTheme as u } from "../../../index.js";
|
|
5
|
-
import '../../../assets/index8.css';var d = /* @__PURE__ */ ((o) => (o.start = "start", o.end = "end", o))(d || {});
|
|
6
|
-
const v = "_modal_fqn0t_1", q = "_end_fqn0t_39", t = {
|
|
7
|
-
modal: v,
|
|
8
|
-
"modal-header": "_modal-header_fqn0t_11",
|
|
9
|
-
"modal-content": "_modal-content_fqn0t_19",
|
|
10
|
-
"modal-action": "_modal-action_fqn0t_29",
|
|
11
|
-
end: q
|
|
12
|
-
}, T = ({
|
|
13
|
-
trigger: o,
|
|
14
|
-
header: a,
|
|
15
|
-
children: m,
|
|
16
|
-
actionPlacement: l = d.start,
|
|
17
|
-
modalAction: n,
|
|
18
|
-
closeText: i,
|
|
19
|
-
isDismissable: c,
|
|
20
|
-
isKeyboardDismissableDisabled: _
|
|
21
|
-
}) => {
|
|
22
|
-
const f = typeof n == "function";
|
|
23
|
-
return /* @__PURE__ */ e(
|
|
24
|
-
h,
|
|
25
|
-
{
|
|
26
|
-
trigger: o,
|
|
27
|
-
modalOverlayProps: {
|
|
28
|
-
isDismissable: c,
|
|
29
|
-
isKeyboardDismissDisabled: _
|
|
30
|
-
},
|
|
31
|
-
children: ({ close: r }) => /* @__PURE__ */ s("div", { className: `${t.modal}`, children: [
|
|
32
|
-
a && /* @__PURE__ */ e("h2", { className: `${t["modal-header"]}`, children: a }),
|
|
33
|
-
/* @__PURE__ */ e("div", { className: `${t["modal-content"]}`, children: m }),
|
|
34
|
-
/* @__PURE__ */ s(
|
|
35
|
-
"div",
|
|
36
|
-
{
|
|
37
|
-
className: `${t["modal-action"]} ${t[l]}`,
|
|
38
|
-
children: [
|
|
39
|
-
f ? n({ close: r }) : n,
|
|
40
|
-
/* @__PURE__ */ e(p, { onPress: r, theme: u.inverseSurface, children: i })
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
] })
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
};
|
|
1
|
+
import { M as r } from "../../../chunks/ModalAction";
|
|
48
2
|
export {
|
|
49
|
-
|
|
50
|
-
d as ModalActionPlacement
|
|
3
|
+
r as ModalAction
|
|
51
4
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { ButtonVariantProps } from '../../Button/ButtonBase/types';
|
|
3
3
|
import { DialogRenderProps } from 'react-aria-components';
|
|
4
|
-
export
|
|
5
|
-
start = "start",
|
|
6
|
-
end = "end"
|
|
7
|
-
}
|
|
4
|
+
export type ModalActionPlacement = "start" | "end";
|
|
8
5
|
export interface ModalActionProps {
|
|
9
6
|
trigger: ReactElement<ButtonVariantProps>;
|
|
10
7
|
header?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './ModalBase';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './NavigationMenu';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './NavigationResponsive';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useMediaQuery as t } from "usehooks-ts";
|
|
3
|
-
import { N as e } from "../../../NavigationMenu-DqDfWOnJ.js";
|
|
4
|
-
import { N as m } from "../../../NavigationSidebar-Dx2ww8hp.js";
|
|
5
|
-
const f = ({
|
|
6
|
-
items: o,
|
|
7
|
-
mediaQuery: a,
|
|
8
|
-
...i
|
|
9
|
-
}) => t(`(${a})`) ? /* @__PURE__ */ r(e, { items: o }) : /* @__PURE__ */ r(m, { items: o, ...i });
|
|
1
|
+
import { N as e } from "../../../chunks/NavigationResponsive";
|
|
10
2
|
export {
|
|
11
|
-
|
|
3
|
+
e as NavigationResponsive
|
|
12
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './NavigationSidebar';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Popover';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DialogTrigger as t, Dialog as g } from "react-aria-components";
|
|
3
|
-
import { P as l } from "../../../Popover-CNBII_iI.js";
|
|
4
|
-
const c = ({
|
|
5
|
-
trigger: r,
|
|
6
|
-
popoverProps: i,
|
|
7
|
-
dialogTriggerProps: e,
|
|
8
|
-
...m
|
|
9
|
-
}) => /* @__PURE__ */ p(t, { ...e, children: [
|
|
10
|
-
r,
|
|
11
|
-
/* @__PURE__ */ o(l, { ...i, children: /* @__PURE__ */ o(g, { ...m }) })
|
|
12
|
-
] });
|
|
1
|
+
import { P as a } from "../../../chunks/PopoverDialog";
|
|
13
2
|
export {
|
|
14
|
-
|
|
3
|
+
a as PopoverDialog
|
|
15
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Select';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,91 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { F as d } from "../../FilledButton-SpEu55ES.js";
|
|
3
|
-
import { ButtonVariant as o } from "../Button/ButtonBase/index.js";
|
|
4
|
-
import { Select as b, SelectValue as p, ListBox as N, Text as h, ListBoxItem as T } from "react-aria-components";
|
|
5
|
-
import { P as V } from "../../Popover-CNBII_iI.js";
|
|
6
|
-
import { ChevronsUpDown as y, Check as F } from "lucide-react";
|
|
7
|
-
import { O as S } from "../../OutlinedButton-QAeXI3Dj.js";
|
|
8
|
-
import { T as $ } from "../../TextButton-CWDZaF0c.js";
|
|
9
|
-
import { ColorTheme as L } from "../../index.js";
|
|
10
|
-
import { T as D } from "../../Tooltip-D-jCnOvo.js";
|
|
11
|
-
import { L as j, F as I } from "../../FieldError-CvUKcRtm.js";
|
|
12
|
-
import { B as O, C as P } from "../../BaseCard-DrG8XXVz.js";
|
|
13
|
-
import '../../assets/index3.css';const E = "_select_1tehw_1", U = "_trigger_1tehw_37", i = {
|
|
14
|
-
select: E,
|
|
15
|
-
"selected-value": "_selected-value_1tehw_11",
|
|
16
|
-
"option-description": "_option-description_1tehw_19",
|
|
17
|
-
trigger: U,
|
|
18
|
-
"options-list": "_options-list_1tehw_51",
|
|
19
|
-
"options-item-group": "_options-item-group_1tehw_63",
|
|
20
|
-
"options-item": "_options-item_1tehw_63"
|
|
21
|
-
}, Y = ({
|
|
22
|
-
options: u,
|
|
23
|
-
cardBackground: _ = P.gradient,
|
|
24
|
-
triggerTheme: a = L.inverseSurface,
|
|
25
|
-
label: n,
|
|
26
|
-
name: f,
|
|
27
|
-
disabled: g,
|
|
28
|
-
isRequired: w,
|
|
29
|
-
triggerVariant: x = o.filled,
|
|
30
|
-
description: B,
|
|
31
|
-
placeholder: c,
|
|
32
|
-
selectedKey: k,
|
|
33
|
-
onSelectionChange: v
|
|
34
|
-
}) => {
|
|
35
|
-
let r;
|
|
36
|
-
switch (x) {
|
|
37
|
-
case o.filled:
|
|
38
|
-
r = d;
|
|
39
|
-
break;
|
|
40
|
-
case o.outlined:
|
|
41
|
-
r = S;
|
|
42
|
-
break;
|
|
43
|
-
case o.text:
|
|
44
|
-
r = $;
|
|
45
|
-
break;
|
|
46
|
-
default:
|
|
47
|
-
r = d;
|
|
48
|
-
}
|
|
49
|
-
return /* @__PURE__ */ s(
|
|
50
|
-
b,
|
|
51
|
-
{
|
|
52
|
-
className: i.select,
|
|
53
|
-
isDisabled: g,
|
|
54
|
-
isRequired: w,
|
|
55
|
-
name: f,
|
|
56
|
-
value: k,
|
|
57
|
-
onChange: v,
|
|
58
|
-
children: [
|
|
59
|
-
n && /* @__PURE__ */ e(j, { children: n }),
|
|
60
|
-
/* @__PURE__ */ e(D, { description: B, theme: a, children: /* @__PURE__ */ e(r, { theme: a, children: /* @__PURE__ */ s("span", { className: i.trigger, children: [
|
|
61
|
-
c ? /* @__PURE__ */ e(p, { className: `${i["selected-value"]}`, children: ({ defaultChildren: t, isPlaceholder: l }) => l ? c : t }) : /* @__PURE__ */ e(p, {}),
|
|
62
|
-
/* @__PURE__ */ e(y, {})
|
|
63
|
-
] }) }) }),
|
|
64
|
-
/* @__PURE__ */ e(I, {}),
|
|
65
|
-
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(O, { background: _, children: /* @__PURE__ */ e(N, { className: `${i["options-list"]}`, items: u, children: (t) => {
|
|
66
|
-
const l = /* @__PURE__ */ s(m, { children: [
|
|
67
|
-
/* @__PURE__ */ e(h, { children: t.displayValue }),
|
|
68
|
-
t.description && /* @__PURE__ */ e(h, { className: i["option-description"], children: t.description })
|
|
69
|
-
] });
|
|
70
|
-
return /* @__PURE__ */ e(
|
|
71
|
-
T,
|
|
72
|
-
{
|
|
73
|
-
className: `${i["options-item-group"]}`,
|
|
74
|
-
id: t.key,
|
|
75
|
-
textValue: t.displayValue,
|
|
76
|
-
isDisabled: t.disabled,
|
|
77
|
-
children: ({ isSelected: C }) => /* @__PURE__ */ s(m, { children: [
|
|
78
|
-
/* @__PURE__ */ e("div", { className: `${i["options-item"]}`, children: l }),
|
|
79
|
-
C && /* @__PURE__ */ e(F, {})
|
|
80
|
-
] })
|
|
81
|
-
},
|
|
82
|
-
t.key
|
|
83
|
-
);
|
|
84
|
-
} }) }) })
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
};
|
|
1
|
+
import { S as r } from "../../chunks/Select";
|
|
89
2
|
export {
|
|
90
|
-
|
|
3
|
+
r as Select
|
|
91
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Sidebar';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -2,18 +2,8 @@ import { ReactNode, ReactElement } from 'react';
|
|
|
2
2
|
import { DialogRenderProps } from 'react-aria-components';
|
|
3
3
|
import { ButtonVariantProps } from '../Button/ButtonBase';
|
|
4
4
|
import { CardBackground } from '../Card/BaseCard';
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
inlineEnd = "inline-end",
|
|
8
|
-
blockStart = "block-start",
|
|
9
|
-
blockEnd = "block-end"
|
|
10
|
-
}
|
|
11
|
-
export declare enum SidebarSize {
|
|
12
|
-
full = "full",
|
|
13
|
-
threeQuarters = "three-quarters",
|
|
14
|
-
half = "half",
|
|
15
|
-
quarter = "quarter"
|
|
16
|
-
}
|
|
5
|
+
export type SidebarPosition = "inline-start" | "inline-end" | "block-start" | "block-end";
|
|
6
|
+
export type SidebarSize = "full" | "three-quarters" | "half" | "quarter";
|
|
17
7
|
export interface SidebarProps {
|
|
18
8
|
trigger: ReactElement<ButtonVariantProps>;
|
|
19
9
|
children: ReactNode | ((opts: DialogRenderProps) => ReactNode);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Success';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../../assets/index2.css';const e = "_success_1r4la_1", t = {
|
|
3
|
-
success: e
|
|
4
|
-
}, r = ({ children: s }) => /* @__PURE__ */ c("p", { className: `${t.success}`, children: s });
|
|
1
|
+
import { S as e } from "../../chunks/Success";
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
e as Success
|
|
7
4
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CardBackground } from '../Card/BaseCard';
|
|
3
|
+
export type ToastProps = {
|
|
4
|
+
background?: CardBackground;
|
|
5
|
+
dismissable?: boolean;
|
|
6
|
+
closeButton?: boolean;
|
|
7
|
+
duration?: number;
|
|
8
|
+
toasterID?: string;
|
|
9
|
+
heading: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
prefixIcon?: ReactNode;
|
|
12
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './ToggleButtonGroup';
|
|
2
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|