@adgytec/adgytec-web-ui-components 1.1.0 → 1.1.2
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 -1
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/ButtonChild.css +1 -1
- package/dist/assets/Container.css +1 -0
- package/dist/assets/Disclosure.css +1 -1
- package/dist/assets/DisclousreGroup.css +1 -1
- package/dist/assets/Error.css +1 -1
- package/dist/assets/FieldError.css +1 -1
- package/dist/assets/Form.css +1 -1
- package/dist/assets/Input.css +1 -1
- 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 -1
- 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 -1
- package/dist/assets/Sidebar.css +1 -1
- package/dist/assets/Success.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/Toast.css +1 -0
- package/dist/assets/ToggleButtonGroup.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/Tree.css +1 -1
- package/dist/assets/useSplash.css +1 -1
- package/dist/chunks/Avatar +35 -24
- package/dist/chunks/BaseCard +26 -20
- package/dist/chunks/Button +26 -19
- package/dist/chunks/ButtonChild +22 -23
- package/dist/chunks/ButtonLink +26 -20
- package/dist/chunks/ComponentShapeSwitcher +25 -21
- package/dist/chunks/Container +21 -0
- package/dist/chunks/Disclosure +19 -12
- package/dist/chunks/DisclousreGroup +12 -3
- package/dist/chunks/Error +5 -4
- package/dist/chunks/FieldError +18 -10
- package/dist/chunks/Form +10 -6
- package/dist/chunks/Image +32 -0
- package/dist/chunks/Input +17 -16
- package/dist/chunks/Link +21 -20
- package/dist/chunks/Loader +5 -4
- package/dist/chunks/Menu +27 -26
- package/dist/chunks/MenuLabel +9 -8
- package/dist/chunks/ModalAction +34 -30
- package/dist/chunks/ModalBase +19 -15
- package/dist/chunks/NavigationMenu +14 -13
- package/dist/chunks/NavigationSidebar +20 -19
- package/dist/chunks/Popover +8 -7
- package/dist/chunks/Select +96 -64
- package/dist/chunks/Sidebar +39 -34
- package/dist/chunks/Success +5 -4
- package/dist/chunks/TextArea +18 -17
- package/dist/chunks/ThemeSwitcher +30 -25
- package/dist/chunks/Toast +49 -0
- package/dist/chunks/ToggleButton +19 -13
- package/dist/chunks/ToggleButtonGroup +14 -13
- package/dist/chunks/Tooltip +22 -21
- package/dist/chunks/Tree +19 -18
- package/dist/chunks/Viewport +16 -0
- package/dist/chunks/useSplash +30 -28
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/types.d.ts +7 -5
- package/dist/components/Button/ButtonBase/ButtonLink.d.ts +1 -1
- package/dist/components/Button/ButtonBase/types.d.ts +3 -6
- package/dist/components/Button/ButtonChild/ButtonChild.d.ts +1 -1
- 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/types.d.ts +2 -0
- 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/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/Tooltip/Tooltip.d.ts +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/types.d.ts +5 -0
- package/dist/components/VisualSettings/ThemeSwitcher/ThemeSwitcher.d.ts +0 -1
- package/dist/components/VisualSettings/ThemeSwitcher/types.d.ts +6 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +62 -56
- package/package.json +81 -71
- package/dist/assets/VisualSettings.css +0 -1
- package/dist/chunks/VisualSettings +0 -55
- 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 -4
- package/dist/components/VisualSettings/VisualSettings/types.d.ts +0 -3
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { T as r } from "./TextButton";
|
|
3
|
-
import { S as
|
|
4
|
-
import { T as
|
|
5
|
-
import { X as
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import { S as c } from "./Sidebar";
|
|
4
|
+
import { T as m } from "./Tree";
|
|
5
|
+
import { X as l, Menu as d } from "lucide-react";
|
|
6
|
+
import s from "clsx";
|
|
7
|
+
import '../assets/NavigationSidebar.css';const p = "_nav_49xbu_1", u = "_close_49xbu_8", o = {
|
|
8
|
+
nav: p,
|
|
9
|
+
close: u
|
|
10
|
+
}, N = ({
|
|
11
|
+
items: a,
|
|
12
|
+
...n
|
|
12
13
|
}) => /* @__PURE__ */ e(
|
|
13
|
-
|
|
14
|
+
c,
|
|
14
15
|
{
|
|
15
|
-
...
|
|
16
|
-
trigger: /* @__PURE__ */ e(r, { shape: "square", children: /* @__PURE__ */ e(
|
|
17
|
-
children: ({ close:
|
|
18
|
-
/* @__PURE__ */ e("div", { className: s.close, children: /* @__PURE__ */ e(
|
|
16
|
+
...n,
|
|
17
|
+
trigger: /* @__PURE__ */ e(r, { shape: "square", children: /* @__PURE__ */ e(d, {}) }),
|
|
18
|
+
children: ({ close: t }) => /* @__PURE__ */ i("div", { className: s(o.nav), children: [
|
|
19
|
+
/* @__PURE__ */ e("div", { className: s(o.close), children: /* @__PURE__ */ e(
|
|
19
20
|
r,
|
|
20
21
|
{
|
|
21
|
-
onPress:
|
|
22
|
+
onPress: t,
|
|
22
23
|
shape: "square",
|
|
23
24
|
theme: "inverse-surface",
|
|
24
|
-
children: /* @__PURE__ */ e(
|
|
25
|
+
children: /* @__PURE__ */ e(l, {})
|
|
25
26
|
}
|
|
26
27
|
) }),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
+
/* @__PURE__ */ e(m, { items: a })
|
|
28
29
|
] })
|
|
29
30
|
}
|
|
30
31
|
);
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
N
|
|
33
34
|
};
|
package/dist/chunks/Popover
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Popover as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { Popover as p } from "react-aria-components";
|
|
3
|
+
import e from "clsx";
|
|
4
|
+
import '../assets/Popover.css';const s = "_popover_14mpx_1", m = {
|
|
5
|
+
popover: s
|
|
6
|
+
}, c = (o) => /* @__PURE__ */ r(
|
|
7
|
+
p,
|
|
7
8
|
{
|
|
8
9
|
...o,
|
|
9
|
-
className: o.className
|
|
10
|
+
className: e(m.popover, o.className)
|
|
10
11
|
}
|
|
11
12
|
);
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
c as P
|
|
14
15
|
};
|
package/dist/chunks/Select
CHANGED
|
@@ -1,89 +1,121 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { F as d } from "./FilledButton";
|
|
3
|
-
import { Select as
|
|
4
|
-
import { P as
|
|
5
|
-
import { ChevronsUpDown as
|
|
6
|
-
import { O as
|
|
7
|
-
import { T as
|
|
8
|
-
import { T as
|
|
9
|
-
import { L, F as
|
|
10
|
-
import { B as
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"options-
|
|
18
|
-
"options-item": "_options-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
3
|
+
import { Select as N, SelectValue as p, ListBox as y, Text as u, ListBoxItem as C } from "react-aria-components";
|
|
4
|
+
import { P as F } from "./Popover";
|
|
5
|
+
import { ChevronsUpDown as S, Check as T } from "lucide-react";
|
|
6
|
+
import { O as V } from "./OutlinedButton";
|
|
7
|
+
import { T as L } from "./TextButton";
|
|
8
|
+
import { T as D } from "./Tooltip";
|
|
9
|
+
import { L as j, F as I } from "./FieldError";
|
|
10
|
+
import { B as O } from "./BaseCard";
|
|
11
|
+
import { clsx as i } from "clsx";
|
|
12
|
+
import '../assets/Select.css';const P = "_select_kw554_1", E = "_trigger_kw554_19", s = {
|
|
13
|
+
select: P,
|
|
14
|
+
"selected-value": "_selected-value_kw554_6",
|
|
15
|
+
"option-description": "_option-description_kw554_10",
|
|
16
|
+
trigger: E,
|
|
17
|
+
"options-list": "_options-list_kw554_26",
|
|
18
|
+
"options-item-group": "_options-item-group_kw554_32",
|
|
19
|
+
"options-item": "_options-item_kw554_32"
|
|
20
|
+
}, R = ({
|
|
21
|
+
options: _,
|
|
22
|
+
cardBackground: h = "gradient",
|
|
23
|
+
triggerTheme: a = "inverse-surface",
|
|
24
|
+
label: c,
|
|
25
|
+
name: f,
|
|
25
26
|
disabled: g,
|
|
26
|
-
isRequired:
|
|
27
|
-
triggerVariant:
|
|
28
|
-
description:
|
|
29
|
-
placeholder:
|
|
27
|
+
isRequired: k,
|
|
28
|
+
triggerVariant: x = "filled",
|
|
29
|
+
description: w,
|
|
30
|
+
placeholder: n,
|
|
30
31
|
selectedKey: v,
|
|
31
32
|
onSelectionChange: b
|
|
32
33
|
}) => {
|
|
33
|
-
let
|
|
34
|
-
switch (
|
|
34
|
+
let r;
|
|
35
|
+
switch (x) {
|
|
35
36
|
case "filled":
|
|
36
|
-
|
|
37
|
+
r = d;
|
|
37
38
|
break;
|
|
38
39
|
case "outlined":
|
|
39
|
-
|
|
40
|
+
r = V;
|
|
40
41
|
break;
|
|
41
42
|
case "text":
|
|
42
|
-
|
|
43
|
+
r = L;
|
|
43
44
|
break;
|
|
44
45
|
default:
|
|
45
|
-
|
|
46
|
+
r = d;
|
|
46
47
|
}
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
|
|
48
|
+
return /* @__PURE__ */ o(
|
|
49
|
+
N,
|
|
49
50
|
{
|
|
50
|
-
className: i.select,
|
|
51
|
+
className: i(s.select),
|
|
51
52
|
isDisabled: g,
|
|
52
|
-
isRequired:
|
|
53
|
-
name:
|
|
53
|
+
isRequired: k,
|
|
54
|
+
name: f,
|
|
54
55
|
value: v,
|
|
55
56
|
onChange: b,
|
|
56
57
|
children: [
|
|
57
|
-
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
] }) }) }),
|
|
62
|
-
/* @__PURE__ */ e(D, {}),
|
|
63
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(j, { background: u, children: /* @__PURE__ */ e(N, { className: `${i["options-list"]}`, items: h, children: (t) => {
|
|
64
|
-
const o = /* @__PURE__ */ r(n, { children: [
|
|
65
|
-
/* @__PURE__ */ e(p, { children: t.displayValue }),
|
|
66
|
-
t.description && /* @__PURE__ */ e(p, { className: i["option-description"], children: t.description })
|
|
67
|
-
] });
|
|
68
|
-
return /* @__PURE__ */ e(
|
|
69
|
-
y,
|
|
58
|
+
c && /* @__PURE__ */ e(j, { children: c }),
|
|
59
|
+
/* @__PURE__ */ e(D, { description: w, theme: a, children: /* @__PURE__ */ e(r, { theme: a, children: /* @__PURE__ */ o("span", { className: i(s.trigger), children: [
|
|
60
|
+
n ? /* @__PURE__ */ e(
|
|
61
|
+
p,
|
|
70
62
|
{
|
|
71
|
-
className:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
63
|
+
className: i(s["selected-value"]),
|
|
64
|
+
children: ({ defaultChildren: t, isPlaceholder: l }) => l ? n : t
|
|
65
|
+
}
|
|
66
|
+
) : /* @__PURE__ */ e(p, {}),
|
|
67
|
+
/* @__PURE__ */ e(S, {})
|
|
68
|
+
] }) }) }),
|
|
69
|
+
/* @__PURE__ */ e(I, {}),
|
|
70
|
+
/* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(O, { background: h, children: /* @__PURE__ */ e(
|
|
71
|
+
y,
|
|
72
|
+
{
|
|
73
|
+
className: i(s["options-list"]),
|
|
74
|
+
items: _,
|
|
75
|
+
children: (t) => {
|
|
76
|
+
const l = /* @__PURE__ */ o(m, { children: [
|
|
77
|
+
/* @__PURE__ */ e(u, { children: t.displayValue }),
|
|
78
|
+
t.description && /* @__PURE__ */ e(
|
|
79
|
+
u,
|
|
80
|
+
{
|
|
81
|
+
className: i(
|
|
82
|
+
s["option-description"]
|
|
83
|
+
),
|
|
84
|
+
children: t.description
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
] });
|
|
88
|
+
return /* @__PURE__ */ e(
|
|
89
|
+
C,
|
|
90
|
+
{
|
|
91
|
+
className: i(
|
|
92
|
+
s["options-item-group"]
|
|
93
|
+
),
|
|
94
|
+
id: t.key,
|
|
95
|
+
textValue: t.displayValue,
|
|
96
|
+
isDisabled: t.disabled,
|
|
97
|
+
children: ({ isSelected: B }) => /* @__PURE__ */ o(m, { children: [
|
|
98
|
+
/* @__PURE__ */ e(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
className: i(
|
|
102
|
+
s["options-item"]
|
|
103
|
+
),
|
|
104
|
+
children: l
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
B && /* @__PURE__ */ e(T, {})
|
|
108
|
+
] })
|
|
109
|
+
},
|
|
110
|
+
t.key
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
) }) })
|
|
83
115
|
]
|
|
84
116
|
}
|
|
85
117
|
);
|
|
86
118
|
};
|
|
87
119
|
export {
|
|
88
|
-
|
|
120
|
+
R as S
|
|
89
121
|
};
|
package/dist/chunks/Sidebar
CHANGED
|
@@ -1,43 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { DialogTrigger as
|
|
3
|
-
import { B as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
"modal-
|
|
7
|
-
modal:
|
|
8
|
-
|
|
9
|
-
"inline-
|
|
10
|
-
"inline-
|
|
11
|
-
"
|
|
12
|
-
"block-
|
|
13
|
-
"block-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsxs as m, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { DialogTrigger as f, ModalOverlay as u, Modal as b, Dialog as h } from "react-aria-components";
|
|
3
|
+
import { B as k } from "./BaseCard";
|
|
4
|
+
import { clsx as d } from "clsx";
|
|
5
|
+
import '../assets/Sidebar.css';const y = "_modal_d8775_1", g = "_full_d8775_138", p = "_half_d8775_149", q = "_quarter_d8775_153", e = {
|
|
6
|
+
"modal-overlay": "_modal-overlay_d8775_1",
|
|
7
|
+
"modal-fade": "_modal-fade_d8775_1",
|
|
8
|
+
modal: y,
|
|
9
|
+
"inline-start": "_inline-start_d8775_55",
|
|
10
|
+
"inline-slide": "_inline-slide_d8775_1",
|
|
11
|
+
"inline-end": "_inline-end_d8775_68",
|
|
12
|
+
"block-start": "_block-start_d8775_81",
|
|
13
|
+
"block-slide": "_block-slide_d8775_1",
|
|
14
|
+
"block-end": "_block-end_d8775_94",
|
|
15
|
+
full: g,
|
|
16
|
+
"three-quarters": "_three-quarters_d8775_145",
|
|
17
|
+
half: p,
|
|
18
|
+
quarter: q
|
|
19
|
+
}, B = ({
|
|
19
20
|
children: a,
|
|
20
|
-
trigger:
|
|
21
|
-
sidebarPosition:
|
|
22
|
-
sidebarSize:
|
|
23
|
-
isDismissable:
|
|
24
|
-
isKeyboardDismissableDisabled:
|
|
21
|
+
trigger: o,
|
|
22
|
+
sidebarPosition: r = "inline-start",
|
|
23
|
+
sidebarSize: _ = "full",
|
|
24
|
+
isDismissable: i,
|
|
25
|
+
isKeyboardDismissableDisabled: s,
|
|
25
26
|
cardBackground: n = "gradient"
|
|
26
27
|
}) => {
|
|
27
|
-
const
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
|
|
28
|
+
const t = typeof a == "function";
|
|
29
|
+
return /* @__PURE__ */ m(f, { children: [
|
|
30
|
+
o,
|
|
30
31
|
/* @__PURE__ */ l(
|
|
31
|
-
|
|
32
|
+
u,
|
|
32
33
|
{
|
|
33
|
-
className:
|
|
34
|
-
isDismissable:
|
|
35
|
-
isKeyboardDismissDisabled:
|
|
34
|
+
className: d(e["modal-overlay"]),
|
|
35
|
+
isDismissable: i,
|
|
36
|
+
isKeyboardDismissDisabled: s,
|
|
36
37
|
children: /* @__PURE__ */ l(
|
|
37
|
-
|
|
38
|
+
b,
|
|
38
39
|
{
|
|
39
|
-
className:
|
|
40
|
-
|
|
40
|
+
className: d(
|
|
41
|
+
e.modal,
|
|
42
|
+
e[r],
|
|
43
|
+
e[_]
|
|
44
|
+
),
|
|
45
|
+
children: /* @__PURE__ */ l(k, { background: n, children: /* @__PURE__ */ l(h, { children: t ? (c) => a(c) : a }) })
|
|
41
46
|
}
|
|
42
47
|
)
|
|
43
48
|
}
|
|
@@ -45,5 +50,5 @@ import '../assets/Sidebar.css';const b = "_modal_1hdcx_1", k = "_full_1hdcx_275"
|
|
|
45
50
|
] });
|
|
46
51
|
};
|
|
47
52
|
export {
|
|
48
|
-
|
|
53
|
+
B as S
|
|
49
54
|
};
|
package/dist/chunks/Success
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import e from "clsx";
|
|
3
|
+
import '../assets/Success.css';const o = "_success_1bwy5_1", t = {
|
|
4
|
+
success: o
|
|
5
|
+
}, m = ({ children: s }) => /* @__PURE__ */ c("p", { className: e(t.success), children: s });
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
m as S
|
|
7
8
|
};
|
package/dist/chunks/TextArea
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { TextField as
|
|
3
|
-
import { L as d, F as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { TextField as x, TextArea as l } from "react-aria-components";
|
|
3
|
+
import { L as d, F as n } from "./FieldError";
|
|
4
|
+
import s from "clsx";
|
|
5
|
+
import '../assets/TextArea.css';const _ = "_textarea_1798z_1", T = "_editor_1798z_6", o = {
|
|
6
|
+
textarea: _,
|
|
7
|
+
editor: T
|
|
8
|
+
}, j = ({
|
|
9
|
+
label: r,
|
|
9
10
|
textFieldProps: t,
|
|
10
|
-
textAreaProps:
|
|
11
|
-
labelProps:
|
|
11
|
+
textAreaProps: a,
|
|
12
|
+
labelProps: m,
|
|
12
13
|
fieldErrorProps: c
|
|
13
14
|
}) => /* @__PURE__ */ i(
|
|
14
|
-
|
|
15
|
+
x,
|
|
15
16
|
{
|
|
16
17
|
...t,
|
|
17
|
-
className:
|
|
18
|
+
className: s(o.textarea, t?.className),
|
|
18
19
|
children: [
|
|
19
|
-
|
|
20
|
+
r && /* @__PURE__ */ e(d, { ...m, children: r }),
|
|
20
21
|
/* @__PURE__ */ e(
|
|
21
|
-
|
|
22
|
+
l,
|
|
22
23
|
{
|
|
23
|
-
...
|
|
24
|
-
className:
|
|
24
|
+
...a,
|
|
25
|
+
className: s(o.editor, a?.className)
|
|
25
26
|
}
|
|
26
27
|
),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
+
/* @__PURE__ */ e(n, { ...c })
|
|
28
29
|
]
|
|
29
30
|
}
|
|
30
31
|
);
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
j as T
|
|
33
34
|
};
|
|
@@ -1,48 +1,53 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useTernaryDarkMode as
|
|
3
|
-
import { useEffect as
|
|
1
|
+
import { jsx as o, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { useTernaryDarkMode as l } from "usehooks-ts";
|
|
3
|
+
import { useEffect as g } from "react";
|
|
4
4
|
import { T as f } from "./ToggleButtonGroup";
|
|
5
|
-
const k =
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const k = {
|
|
6
|
+
system: "System",
|
|
7
|
+
light: "Light",
|
|
8
|
+
dark: "Dark"
|
|
9
|
+
}, M = ({
|
|
10
|
+
ui: m = !0,
|
|
11
|
+
theme: s = "primary",
|
|
12
|
+
displayValue: e = k
|
|
8
13
|
}) => {
|
|
9
|
-
const { isDarkMode:
|
|
14
|
+
const { isDarkMode: t, ternaryDarkMode: n, setTernaryDarkMode: a } = l(), i = [
|
|
10
15
|
{
|
|
11
16
|
id: "system",
|
|
12
|
-
value:
|
|
17
|
+
value: e.system
|
|
13
18
|
},
|
|
14
19
|
{
|
|
15
20
|
id: "light",
|
|
16
|
-
value:
|
|
21
|
+
value: e.light
|
|
17
22
|
},
|
|
18
23
|
{
|
|
19
24
|
id: "dark",
|
|
20
|
-
value:
|
|
25
|
+
value: e.dark
|
|
21
26
|
}
|
|
22
|
-
],
|
|
27
|
+
], d = () => {
|
|
23
28
|
document.documentElement.setAttribute(
|
|
24
29
|
"data-theme",
|
|
25
|
-
|
|
30
|
+
t ? "dark" : "light"
|
|
26
31
|
);
|
|
27
32
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
|
|
33
|
+
g(() => {
|
|
34
|
+
d();
|
|
35
|
+
}, [t]);
|
|
36
|
+
const h = (u) => {
|
|
37
|
+
const r = Array.from(u)[0];
|
|
38
|
+
r && a(r);
|
|
34
39
|
};
|
|
35
|
-
return
|
|
40
|
+
return m ? /* @__PURE__ */ o(
|
|
36
41
|
f,
|
|
37
42
|
{
|
|
38
|
-
items:
|
|
43
|
+
items: i,
|
|
39
44
|
selectionMode: "single",
|
|
40
|
-
selectedKeys: [
|
|
41
|
-
onSelectionChange:
|
|
42
|
-
theme:
|
|
45
|
+
selectedKeys: [n],
|
|
46
|
+
onSelectionChange: h,
|
|
47
|
+
theme: s
|
|
43
48
|
}
|
|
44
|
-
) : /* @__PURE__ */
|
|
49
|
+
) : /* @__PURE__ */ o(c, {});
|
|
45
50
|
};
|
|
46
51
|
export {
|
|
47
|
-
|
|
52
|
+
M as T
|
|
48
53
|
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { T as h } from "./TextButton";
|
|
3
|
+
import { B as p } from "./BaseCard";
|
|
4
|
+
import { toast as c } from "sonner";
|
|
5
|
+
import { X as _ } from "lucide-react";
|
|
6
|
+
import { clsx as e } from "clsx";
|
|
7
|
+
import '../assets/Toast.css';const l = "_toast_1wt0k_1", f = "_heading_1wt0k_9", u = "_content_1wt0k_14", x = "_prefix_1wt0k_20", k = "_description_1wt0k_25", r = {
|
|
8
|
+
toast: l,
|
|
9
|
+
heading: f,
|
|
10
|
+
content: u,
|
|
11
|
+
prefix: x,
|
|
12
|
+
description: k
|
|
13
|
+
};
|
|
14
|
+
function j(s) {
|
|
15
|
+
return c.custom(
|
|
16
|
+
(o) => /* @__PURE__ */ t(w, { id: o, ...s }),
|
|
17
|
+
{
|
|
18
|
+
toasterId: s.toasterID,
|
|
19
|
+
dismissible: s.dismissable,
|
|
20
|
+
duration: s.duration
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
const w = ({
|
|
25
|
+
id: s,
|
|
26
|
+
heading: o,
|
|
27
|
+
background: m,
|
|
28
|
+
prefixIcon: n,
|
|
29
|
+
description: i,
|
|
30
|
+
closeButton: d = !0
|
|
31
|
+
}) => /* @__PURE__ */ a(p, { background: m, className: e(r.toast), children: [
|
|
32
|
+
n && /* @__PURE__ */ t("div", { className: e(r.prefix), children: n }),
|
|
33
|
+
/* @__PURE__ */ a("div", { className: e(r.content), children: [
|
|
34
|
+
/* @__PURE__ */ t("h3", { className: e(r.heading), children: o }),
|
|
35
|
+
i && /* @__PURE__ */ t("p", { className: e(r.description), children: i })
|
|
36
|
+
] }),
|
|
37
|
+
d && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
38
|
+
h,
|
|
39
|
+
{
|
|
40
|
+
theme: "inverse-surface",
|
|
41
|
+
onPress: () => c.dismiss(s),
|
|
42
|
+
shape: "square-shrink",
|
|
43
|
+
children: /* @__PURE__ */ t(_, {})
|
|
44
|
+
}
|
|
45
|
+
) })
|
|
46
|
+
] });
|
|
47
|
+
export {
|
|
48
|
+
j as t
|
|
49
|
+
};
|
package/dist/chunks/ToggleButton
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
import { jsx as s, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { ToggleButton as
|
|
3
|
-
import { u as
|
|
4
|
-
import { T as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { ToggleButton as m } from "react-aria-components";
|
|
3
|
+
import { u as p, S as c, s as t } from "./useSplash";
|
|
4
|
+
import { T as h } from "./Tooltip";
|
|
5
|
+
import d from "clsx";
|
|
6
|
+
const j = ({
|
|
7
|
+
id: r,
|
|
8
|
+
value: n,
|
|
8
9
|
description: a,
|
|
9
10
|
isDisabled: e,
|
|
10
11
|
theme: l = "primary"
|
|
11
12
|
}) => {
|
|
12
|
-
const { coords: o, handlePress: u } =
|
|
13
|
-
return /* @__PURE__ */ s(
|
|
14
|
-
|
|
13
|
+
const { coords: o, handlePress: u } = p();
|
|
14
|
+
return /* @__PURE__ */ s(h, { description: a, children: /* @__PURE__ */ i(
|
|
15
|
+
m,
|
|
15
16
|
{
|
|
16
|
-
id:
|
|
17
|
+
id: r,
|
|
17
18
|
onPress: u,
|
|
18
|
-
className:
|
|
19
|
+
className: d(
|
|
20
|
+
t.button,
|
|
21
|
+
t[l],
|
|
22
|
+
t["outlined"],
|
|
23
|
+
t["default"]
|
|
24
|
+
),
|
|
19
25
|
isDisabled: e,
|
|
20
26
|
children: [
|
|
21
27
|
o && /* @__PURE__ */ s(c, { ...o }),
|
|
22
|
-
|
|
28
|
+
n
|
|
23
29
|
]
|
|
24
30
|
}
|
|
25
31
|
) });
|
|
26
32
|
};
|
|
27
33
|
export {
|
|
28
|
-
|
|
34
|
+
j as T
|
|
29
35
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ToggleButtonGroup as
|
|
3
|
-
import { T as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { ToggleButtonGroup as l } from "react-aria-components";
|
|
3
|
+
import { T as e } from "./ToggleButton";
|
|
4
|
+
import u from "clsx";
|
|
5
|
+
import '../assets/ToggleButtonGroup.css';const a = {
|
|
6
|
+
"toggle-button-group": "_toggle-button-group_17ilm_1"
|
|
7
|
+
}, b = ({
|
|
8
|
+
items: g,
|
|
8
9
|
theme: s = "primary",
|
|
9
10
|
...o
|
|
10
|
-
}) => /* @__PURE__ */
|
|
11
|
-
|
|
11
|
+
}) => /* @__PURE__ */ r(
|
|
12
|
+
l,
|
|
12
13
|
{
|
|
13
14
|
...o,
|
|
14
|
-
className:
|
|
15
|
-
children:
|
|
16
|
-
|
|
15
|
+
className: u(a["toggle-button-group"], o.className),
|
|
16
|
+
children: g.map((t) => /* @__PURE__ */ r(
|
|
17
|
+
e,
|
|
17
18
|
{
|
|
18
19
|
...t,
|
|
19
20
|
theme: s,
|
|
@@ -24,5 +25,5 @@ import '../assets/ToggleButtonGroup.css';const l = {
|
|
|
24
25
|
}
|
|
25
26
|
);
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
+
b as T
|
|
28
29
|
};
|