@alxgrn/telefrag-ui 0.0.47 → 0.0.50
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/Menu.css +1 -1
- package/dist/assets/Page.css +1 -1
- package/dist/components/form/form/Form.js +20 -21
- package/dist/components/form/image/Image.js +17 -20
- package/dist/components/form/select/Select.js +101 -52
- package/dist/components/form/time/Time.js +85 -59
- package/dist/components/icons/Check.d.ts +2 -0
- package/dist/components/icons/Check.js +19 -0
- package/dist/components/icons/ChevronDown.d.ts +2 -0
- package/dist/components/icons/ChevronDown.js +19 -0
- package/dist/components/icons/Eye.d.ts +2 -0
- package/dist/components/icons/Eye.js +22 -0
- package/dist/components/icons/index.d.ts +4 -1
- package/dist/components/icons/index.js +110 -104
- package/dist/components/layout/Layout.js +3 -6
- package/dist/components/layout/Page.js +3 -6
- package/dist/components/ui/popup/Popup.js +29 -29
- package/dist/index-fzAcu0Dr.js +136 -0
- package/dist/main.d.ts +1 -2
- package/dist/main.js +24 -26
- package/package.json +1 -2
- package/dist/assets/Select.css +0 -1
- package/dist/assets/Time.css +0 -1
- package/dist/components/ui/infinitescroll/InfiniteScroll.d.ts +0 -13
- package/dist/components/ui/infinitescroll/InfiniteScroll.js +0 -30
- package/dist/index-2Dtbwxm_.js +0 -130
- package/dist/index.es-CZnvHQxj.js +0 -176
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const t = () => /* @__PURE__ */ e(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
stroke: "currentColor",
|
|
6
|
+
fill: "none",
|
|
7
|
+
strokeWidth: "2",
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
strokeLinecap: "round",
|
|
10
|
+
strokeLinejoin: "round",
|
|
11
|
+
height: "1em",
|
|
12
|
+
width: "1em",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
children: /* @__PURE__ */ e("path", { d: "M20 6 9 17l-5-5" })
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
t as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
const r = () => /* @__PURE__ */ o(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
stroke: "currentColor",
|
|
6
|
+
fill: "none",
|
|
7
|
+
strokeWidth: "2",
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
strokeLinecap: "round",
|
|
10
|
+
strokeLinejoin: "round",
|
|
11
|
+
height: "1em",
|
|
12
|
+
width: "1em",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
children: /* @__PURE__ */ o("path", { d: "m6 9 6 6 6-6" })
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
r as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const t = () => /* @__PURE__ */ o(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
stroke: "currentColor",
|
|
6
|
+
fill: "none",
|
|
7
|
+
strokeWidth: "2",
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
strokeLinecap: "round",
|
|
10
|
+
strokeLinejoin: "round",
|
|
11
|
+
height: "1em",
|
|
12
|
+
width: "1em",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ e("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }),
|
|
16
|
+
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "3" })
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
export {
|
|
21
|
+
t as default
|
|
22
|
+
};
|
|
@@ -11,6 +11,8 @@ import { default as Book } from './Book';
|
|
|
11
11
|
import { default as Calendar } from './Calendar';
|
|
12
12
|
import { default as CellsMerge } from './CellsMerge';
|
|
13
13
|
import { default as CellsSplit } from './CellsSplit';
|
|
14
|
+
import { default as Check } from './Check';
|
|
15
|
+
import { default as ChevronDown } from './ChevronDown';
|
|
14
16
|
import { default as ChevronLeft } from './ChevronLeft';
|
|
15
17
|
import { default as ChevronRight } from './ChevronRight';
|
|
16
18
|
import { default as Clock } from './Clock';
|
|
@@ -19,6 +21,7 @@ import { default as CodeXml } from './CodeXml';
|
|
|
19
21
|
import { default as ColumnInsertAfter } from './ColumnInsertAfter';
|
|
20
22
|
import { default as ColumnInsertBefore } from './ColumnInsertBefore';
|
|
21
23
|
import { default as Expand } from './Expand';
|
|
24
|
+
import { default as Eye } from './Eye';
|
|
22
25
|
import { default as Feather } from './Feather';
|
|
23
26
|
import { default as Files } from './Files';
|
|
24
27
|
import { default as Film } from './Film';
|
|
@@ -60,4 +63,4 @@ import { default as Type } from './Type';
|
|
|
60
63
|
import { default as Underline } from './Underline';
|
|
61
64
|
import { default as Undo } from './Undo';
|
|
62
65
|
import { default as Users } from './Users';
|
|
63
|
-
export { AlignBottom, AlignCenter, AlignJustify, AlignLeft, AlignMiddle, AlignRight, AlignTop, Asterisk, Bold, Book, Calendar, CellsMerge, CellsSplit, ChevronLeft, ChevronRight, Clock, Code, CodeXml, ColumnInsertAfter, ColumnInsertBefore, Expand, Feather, Files, Film, FlipVertical, Forum, Gamepad, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Image, IndentDecrease, Italic, JoinUp, Link, List, ListOrdered, Maximize, Menu, Minimize, Pilcrow, Plus, Quote, Redo, Rocket, RowInsertAfter, RowInsertBefore, ShowSidebar, Shrink, SquareDashed, Strikethrough, Table, TelefragLogo, Trash, Type, Underline, Undo, Users, };
|
|
66
|
+
export { AlignBottom, AlignCenter, AlignJustify, AlignLeft, AlignMiddle, AlignRight, AlignTop, Asterisk, Bold, Book, Calendar, CellsMerge, CellsSplit, Check, ChevronDown, ChevronLeft, ChevronRight, Clock, Code, CodeXml, ColumnInsertAfter, ColumnInsertBefore, Expand, Eye, Feather, Files, Film, FlipVertical, Forum, Gamepad, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Image, IndentDecrease, Italic, JoinUp, Link, List, ListOrdered, Maximize, Menu, Minimize, Pilcrow, Plus, Quote, Redo, Rocket, RowInsertAfter, RowInsertBefore, ShowSidebar, Shrink, SquareDashed, Strikethrough, Table, TelefragLogo, Trash, Type, Underline, Undo, Users, };
|
|
@@ -7,59 +7,62 @@ import { default as x } from "./AlignRight.js";
|
|
|
7
7
|
import { default as n } from "./AlignTop.js";
|
|
8
8
|
import { default as h } from "./Asterisk.js";
|
|
9
9
|
import { default as A } from "./Bold.js";
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
10
|
+
import { default as c } from "./Book.js";
|
|
11
|
+
import { default as I } from "./Calendar.js";
|
|
12
12
|
import { default as R } from "./CellsMerge.js";
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as O } from "./
|
|
22
|
-
import { default as V } from "./
|
|
23
|
-
import { default as j } from "./
|
|
24
|
-
import { default as N } from "./
|
|
25
|
-
import { default as Y } from "./
|
|
26
|
-
import { default as _ } from "./
|
|
27
|
-
import { default as ee } from "./
|
|
28
|
-
import { default as oe } from "./
|
|
29
|
-
import { default as ae } from "./
|
|
30
|
-
import { default as le } from "./
|
|
31
|
-
import { default as se } from "./
|
|
32
|
-
import { default as ue } from "./
|
|
33
|
-
import { default as xe } from "./
|
|
34
|
-
import { default as ne } from "./
|
|
35
|
-
import { default as he } from "./
|
|
36
|
-
import { default as Ae } from "./
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as Re } from "./
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as Oe } from "./
|
|
49
|
-
import { default as Ve } from "./
|
|
50
|
-
import { default as je } from "./
|
|
51
|
-
import { default as Ne } from "./
|
|
52
|
-
import { default as Ye } from "./
|
|
53
|
-
import { default as _e } from "./
|
|
54
|
-
import { default as er } from "./
|
|
55
|
-
import { default as or } from "./
|
|
56
|
-
import { default as ar } from "./
|
|
57
|
-
import { default as lr } from "./
|
|
58
|
-
import { default as sr } from "./
|
|
59
|
-
import { default as ur } from "./
|
|
60
|
-
import { default as xr } from "./
|
|
61
|
-
import { default as nr } from "./
|
|
62
|
-
import { default as hr } from "./
|
|
13
|
+
import { default as w } from "./CellsSplit.js";
|
|
14
|
+
import { default as F } from "./Check.js";
|
|
15
|
+
import { default as T } from "./ChevronDown.js";
|
|
16
|
+
import { default as v } from "./ChevronLeft.js";
|
|
17
|
+
import { default as D } from "./ChevronRight.js";
|
|
18
|
+
import { default as z } from "./Clock.js";
|
|
19
|
+
import { default as J } from "./Code.js";
|
|
20
|
+
import { default as q } from "./CodeXml.js";
|
|
21
|
+
import { default as O } from "./ColumnInsertAfter.js";
|
|
22
|
+
import { default as V } from "./ColumnInsertBefore.js";
|
|
23
|
+
import { default as j } from "./Expand.js";
|
|
24
|
+
import { default as N } from "./Eye.js";
|
|
25
|
+
import { default as Y } from "./Feather.js";
|
|
26
|
+
import { default as _ } from "./Files.js";
|
|
27
|
+
import { default as ee } from "./Film.js";
|
|
28
|
+
import { default as oe } from "./FlipVertical.js";
|
|
29
|
+
import { default as ae } from "./Forum.js";
|
|
30
|
+
import { default as le } from "./Gamepad.js";
|
|
31
|
+
import { default as se } from "./Heading.js";
|
|
32
|
+
import { default as ue } from "./Heading1.js";
|
|
33
|
+
import { default as xe } from "./Heading2.js";
|
|
34
|
+
import { default as ne } from "./Heading3.js";
|
|
35
|
+
import { default as he } from "./Heading4.js";
|
|
36
|
+
import { default as Ae } from "./Heading5.js";
|
|
37
|
+
import { default as ce } from "./Heading6.js";
|
|
38
|
+
import { default as Ie } from "./Image.js";
|
|
39
|
+
import { default as Re } from "./IndentDecrease.js";
|
|
40
|
+
import { default as we } from "./Italic.js";
|
|
41
|
+
import { default as Fe } from "./JoinUp.js";
|
|
42
|
+
import { default as Te } from "./Link.js";
|
|
43
|
+
import { default as ve } from "./List.js";
|
|
44
|
+
import { default as De } from "./ListOrdered.js";
|
|
45
|
+
import { default as ze } from "./Maximize.js";
|
|
46
|
+
import { default as Je } from "./Menu.js";
|
|
47
|
+
import { default as qe } from "./Minimize.js";
|
|
48
|
+
import { default as Oe } from "./Pilcrow.js";
|
|
49
|
+
import { default as Ve } from "./Plus.js";
|
|
50
|
+
import { default as je } from "./Quote.js";
|
|
51
|
+
import { default as Ne } from "./Redo.js";
|
|
52
|
+
import { default as Ye } from "./Rocket.js";
|
|
53
|
+
import { default as _e } from "./RowInsertAfter.js";
|
|
54
|
+
import { default as er } from "./RowInsertBefore.js";
|
|
55
|
+
import { default as or } from "./ShowSidebar.js";
|
|
56
|
+
import { default as ar } from "./Shrink.js";
|
|
57
|
+
import { default as lr } from "./SquareDashed.js";
|
|
58
|
+
import { default as sr } from "./Strikethrough.js";
|
|
59
|
+
import { default as ur } from "./Table.js";
|
|
60
|
+
import { default as xr } from "./TelefragLogo.js";
|
|
61
|
+
import { default as nr } from "./Trash.js";
|
|
62
|
+
import { default as hr } from "./Type.js";
|
|
63
|
+
import { default as Ar } from "./Underline.js";
|
|
64
|
+
import { default as cr } from "./Undo.js";
|
|
65
|
+
import { default as Ir } from "./Users.js";
|
|
63
66
|
export {
|
|
64
67
|
o as AlignBottom,
|
|
65
68
|
a as AlignCenter,
|
|
@@ -70,57 +73,60 @@ export {
|
|
|
70
73
|
n as AlignTop,
|
|
71
74
|
h as Asterisk,
|
|
72
75
|
A as Bold,
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
c as Book,
|
|
77
|
+
I as Calendar,
|
|
75
78
|
R as CellsMerge,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
O as
|
|
85
|
-
V as
|
|
86
|
-
j as
|
|
87
|
-
N as
|
|
88
|
-
Y as
|
|
89
|
-
_ as
|
|
90
|
-
ee as
|
|
91
|
-
oe as
|
|
92
|
-
ae as
|
|
93
|
-
le as
|
|
94
|
-
se as
|
|
95
|
-
ue as
|
|
96
|
-
xe as
|
|
97
|
-
ne as
|
|
98
|
-
he as
|
|
99
|
-
Ae as
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
Re as
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Oe as
|
|
112
|
-
Ve as
|
|
113
|
-
je as
|
|
114
|
-
Ne as
|
|
115
|
-
Ye as
|
|
116
|
-
_e as
|
|
117
|
-
er as
|
|
118
|
-
or as
|
|
119
|
-
ar as
|
|
120
|
-
lr as
|
|
121
|
-
sr as
|
|
122
|
-
ur as
|
|
123
|
-
xr as
|
|
124
|
-
nr as
|
|
125
|
-
hr as
|
|
79
|
+
w as CellsSplit,
|
|
80
|
+
F as Check,
|
|
81
|
+
T as ChevronDown,
|
|
82
|
+
v as ChevronLeft,
|
|
83
|
+
D as ChevronRight,
|
|
84
|
+
z as Clock,
|
|
85
|
+
J as Code,
|
|
86
|
+
q as CodeXml,
|
|
87
|
+
O as ColumnInsertAfter,
|
|
88
|
+
V as ColumnInsertBefore,
|
|
89
|
+
j as Expand,
|
|
90
|
+
N as Eye,
|
|
91
|
+
Y as Feather,
|
|
92
|
+
_ as Files,
|
|
93
|
+
ee as Film,
|
|
94
|
+
oe as FlipVertical,
|
|
95
|
+
ae as Forum,
|
|
96
|
+
le as Gamepad,
|
|
97
|
+
se as Heading,
|
|
98
|
+
ue as Heading1,
|
|
99
|
+
xe as Heading2,
|
|
100
|
+
ne as Heading3,
|
|
101
|
+
he as Heading4,
|
|
102
|
+
Ae as Heading5,
|
|
103
|
+
ce as Heading6,
|
|
104
|
+
Ie as Image,
|
|
105
|
+
Re as IndentDecrease,
|
|
106
|
+
we as Italic,
|
|
107
|
+
Fe as JoinUp,
|
|
108
|
+
Te as Link,
|
|
109
|
+
ve as List,
|
|
110
|
+
De as ListOrdered,
|
|
111
|
+
ze as Maximize,
|
|
112
|
+
Je as Menu,
|
|
113
|
+
qe as Minimize,
|
|
114
|
+
Oe as Pilcrow,
|
|
115
|
+
Ve as Plus,
|
|
116
|
+
je as Quote,
|
|
117
|
+
Ne as Redo,
|
|
118
|
+
Ye as Rocket,
|
|
119
|
+
_e as RowInsertAfter,
|
|
120
|
+
er as RowInsertBefore,
|
|
121
|
+
or as ShowSidebar,
|
|
122
|
+
ar as Shrink,
|
|
123
|
+
lr as SquareDashed,
|
|
124
|
+
sr as Strikethrough,
|
|
125
|
+
ur as Table,
|
|
126
|
+
xr as TelefragLogo,
|
|
127
|
+
nr as Trash,
|
|
128
|
+
hr as Type,
|
|
129
|
+
Ar as Underline,
|
|
130
|
+
cr as Undo,
|
|
131
|
+
Ir as Users
|
|
126
132
|
};
|
|
@@ -3,7 +3,7 @@ import { useState as n } from "react";
|
|
|
3
3
|
import l from "./Header.js";
|
|
4
4
|
import u from "./Footer.js";
|
|
5
5
|
import d from "./Content.js";
|
|
6
|
-
import '../../assets/PageHeader.css';import '../../assets/Editable.css';import '../../assets/Message.css';import '../../assets/Modal.css';import '../../assets/Overlay.css';import '../../assets/Panel.css';import '../../assets/Block.css';import '../../assets/
|
|
6
|
+
import '../../assets/PageHeader.css';import '../../assets/Editable.css';import '../../assets/Message.css';import '../../assets/Modal.css';import '../../assets/Overlay.css';import '../../assets/Panel.css';import '../../assets/Block.css';import '../../assets/RadioLabel.css';import '../../assets/Input.css';import '../../assets/Files.css';import '../../assets/Fieldset.css';import '../../assets/Menu.css';import '../../assets/FormCol.css';import '../../assets/FormRow.css';import '../../assets/Button.css';import '../../assets/DatePicker.css';import '../../assets/Label.css';import '../../assets/RequiredMark.css';import '../../assets/Popup.css';import '../../assets/Page.css';/* empty css */
|
|
7
7
|
import "react-children-utilities";
|
|
8
8
|
import "react-transition-group";
|
|
9
9
|
import "react-dom";
|
|
@@ -15,12 +15,10 @@ import "react-dom";
|
|
|
15
15
|
/* empty css */
|
|
16
16
|
/* empty css */
|
|
17
17
|
/* empty css */
|
|
18
|
-
/* empty css */
|
|
19
18
|
/* empty css */
|
|
20
19
|
/* empty css */
|
|
21
20
|
/* empty css */
|
|
22
21
|
/* empty css */
|
|
23
|
-
/* empty css */
|
|
24
22
|
/* empty css */
|
|
25
23
|
/* empty css */
|
|
26
24
|
/* empty css */
|
|
@@ -29,9 +27,8 @@ import "react-dom";
|
|
|
29
27
|
import { Sidebar as c } from "../ui/sidebar/Sidebar.js";
|
|
30
28
|
/* empty css */
|
|
31
29
|
/* empty css */
|
|
32
|
-
import "../../index.es-CZnvHQxj.js";
|
|
33
30
|
import b from "./MainMenu.js";
|
|
34
|
-
const
|
|
31
|
+
const U = ({ children: p, mainMenu: m, userMenu: e, onLogoClick: s, onMenuClick: r }) => {
|
|
35
32
|
const [a, t] = n(!1);
|
|
36
33
|
return /* @__PURE__ */ f("div", { className: "Layout", children: [
|
|
37
34
|
/* @__PURE__ */ o(
|
|
@@ -63,5 +60,5 @@ const Y = ({ children: p, mainMenu: m, userMenu: e, onLogoClick: s, onMenuClick:
|
|
|
63
60
|
] });
|
|
64
61
|
};
|
|
65
62
|
export {
|
|
66
|
-
|
|
63
|
+
U as default
|
|
67
64
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as o, jsx as i, Fragment as a } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/PageHeader.css';import '../../assets/Content.css';import '../../assets/MainMenu.css';import '../../assets/Footer.css';import '../../assets/Header.css';import '../../assets/Editable.css';import '../../assets/Message.css';import '../../assets/Modal.css';import '../../assets/Overlay.css';import '../../assets/Panel.css';import '../../assets/Block.css';import '../../assets/
|
|
2
|
+
import '../../assets/PageHeader.css';import '../../assets/Content.css';import '../../assets/MainMenu.css';import '../../assets/Footer.css';import '../../assets/Header.css';import '../../assets/Editable.css';import '../../assets/Message.css';import '../../assets/Modal.css';import '../../assets/Overlay.css';import '../../assets/Panel.css';import '../../assets/Block.css';import '../../assets/RadioLabel.css';import '../../assets/Input.css';import '../../assets/Files.css';import '../../assets/Fieldset.css';import '../../assets/Menu.css';import '../../assets/FormCol.css';import '../../assets/FormRow.css';import '../../assets/Button.css';import '../../assets/DatePicker.css';import '../../assets/Label.css';import '../../assets/RequiredMark.css';import '../../assets/Popup.css';import '../../assets/Page.css';/* empty css */
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-children-utilities";
|
|
5
5
|
import "react-transition-group";
|
|
@@ -12,12 +12,10 @@ import "react-dom";
|
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
|
-
/* empty css */
|
|
16
15
|
/* empty css */
|
|
17
16
|
/* empty css */
|
|
18
17
|
/* empty css */
|
|
19
18
|
/* empty css */
|
|
20
|
-
/* empty css */
|
|
21
19
|
/* empty css */
|
|
22
20
|
/* empty css */
|
|
23
21
|
/* empty css */
|
|
@@ -30,8 +28,7 @@ import { Sidebar as n } from "../ui/sidebar/Sidebar.js";
|
|
|
30
28
|
/* empty css */
|
|
31
29
|
/* empty css */
|
|
32
30
|
/* empty css */
|
|
33
|
-
|
|
34
|
-
const M = ({ header: t, children: p, sidebar: r, isSidebarVisible: e = !1, onSidebarClose: m }) => /* @__PURE__ */ o("div", { className: "Page", children: [
|
|
31
|
+
const J = ({ header: t, children: p, sidebar: r, isSidebarVisible: e = !1, onSidebarClose: m }) => /* @__PURE__ */ o("div", { className: "Page", children: [
|
|
35
32
|
t && /* @__PURE__ */ i(a, { children: t }),
|
|
36
33
|
/* @__PURE__ */ o("div", { className: "PageBody", children: [
|
|
37
34
|
/* @__PURE__ */ i("div", { className: "PageContent", children: p }),
|
|
@@ -50,5 +47,5 @@ const M = ({ header: t, children: p, sidebar: r, isSidebarVisible: e = !1, onSid
|
|
|
50
47
|
)
|
|
51
48
|
] });
|
|
52
49
|
export {
|
|
53
|
-
|
|
50
|
+
J as default
|
|
54
51
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as S, useState as g, useEffect as m } from "react";
|
|
3
3
|
import { CSSTransition as T } from "react-transition-group";
|
|
4
|
-
import
|
|
5
|
-
import { ANIMATION_LENGTH as
|
|
4
|
+
import I from "../portal/Portal.js";
|
|
5
|
+
import { ANIMATION_LENGTH as N } from "../../../config.js";
|
|
6
6
|
import '../../../assets/Popup.css';/* empty css */
|
|
7
|
-
const
|
|
7
|
+
const P = N, $ = ({
|
|
8
8
|
x: k,
|
|
9
9
|
y,
|
|
10
|
-
parent:
|
|
11
|
-
isOpen:
|
|
12
|
-
onClose:
|
|
13
|
-
vertical:
|
|
14
|
-
horizontal:
|
|
10
|
+
parent: l,
|
|
11
|
+
isOpen: u,
|
|
12
|
+
onClose: a,
|
|
13
|
+
vertical: f = "auto",
|
|
14
|
+
horizontal: p = "auto",
|
|
15
15
|
margin: o = "0",
|
|
16
16
|
maxHeight: h = "none",
|
|
17
17
|
width: b = "auto",
|
|
18
|
-
position:
|
|
18
|
+
position: c = "absolute",
|
|
19
19
|
children: w
|
|
20
20
|
}) => {
|
|
21
|
-
const
|
|
21
|
+
const s = S(null), [E, x] = g({}), [v, L] = g({});
|
|
22
22
|
return m(() => {
|
|
23
|
-
if (!
|
|
23
|
+
if (!u) return;
|
|
24
24
|
const r = document.documentElement.clientWidth, n = document.documentElement.clientHeight;
|
|
25
25
|
let t = {};
|
|
26
|
-
|
|
27
|
-
position:
|
|
28
|
-
top:
|
|
29
|
-
left:
|
|
26
|
+
l ? (t = l.getBoundingClientRect(), l.closest("ModalInner") && (c = "fixed")) : (t.y = t.top = t.bottom = y, t.x = t.left = t.right = k, t.width = t.height = 0), L({
|
|
27
|
+
position: c,
|
|
28
|
+
top: c === "fixed" ? t.top : t.top + window.scrollY,
|
|
29
|
+
left: c === "fixed" ? t.left : t.left + window.scrollX,
|
|
30
30
|
width: t.width,
|
|
31
31
|
height: t.height
|
|
32
32
|
});
|
|
@@ -34,7 +34,7 @@ const I = P, W = ({
|
|
|
34
34
|
width: b === "parent" ? t.width : "auto"
|
|
35
35
|
};
|
|
36
36
|
let i = 0;
|
|
37
|
-
switch (
|
|
37
|
+
switch (f) {
|
|
38
38
|
case "top":
|
|
39
39
|
e.bottom = "100%", e.marginBottom = o, i = t.top;
|
|
40
40
|
break;
|
|
@@ -51,7 +51,7 @@ const I = P, W = ({
|
|
|
51
51
|
t.top < n - t.bottom ? (e.top = "100%", e.marginTop = o, i = n - t.bottom) : (e.bottom = "100%", e.marginBottom = o, i = t.top);
|
|
52
52
|
break;
|
|
53
53
|
}
|
|
54
|
-
switch (h === "auto" && (e.maxHeight = `calc(${i}px - 2 * ${o})`),
|
|
54
|
+
switch (h === "auto" && (e.maxHeight = `calc(${i}px - 2 * ${o})`), p) {
|
|
55
55
|
case "left":
|
|
56
56
|
e.right = "100%", e.marginRight = o;
|
|
57
57
|
break;
|
|
@@ -69,33 +69,33 @@ const I = P, W = ({
|
|
|
69
69
|
break;
|
|
70
70
|
}
|
|
71
71
|
x(e);
|
|
72
|
-
}, [
|
|
72
|
+
}, [l, u, o, f, p, h, b, c]), m(() => {
|
|
73
73
|
const r = (n) => {
|
|
74
|
-
|
|
74
|
+
s.current && !s.current.contains(n.target) && a();
|
|
75
75
|
};
|
|
76
76
|
return document.addEventListener("click", r, !0), () => {
|
|
77
77
|
document.removeEventListener("click", r, !0);
|
|
78
78
|
};
|
|
79
|
-
}, [
|
|
79
|
+
}, [a]), m(() => {
|
|
80
80
|
const r = (n) => {
|
|
81
|
-
n.key === "Escape" &&
|
|
81
|
+
n.key === "Escape" && a();
|
|
82
82
|
};
|
|
83
83
|
return document.body.addEventListener("keydown", r), () => {
|
|
84
84
|
document.body.removeEventListener("keydown", r);
|
|
85
85
|
};
|
|
86
|
-
}, [
|
|
86
|
+
}, [a]), /* @__PURE__ */ d(I, { id: "alxgrn-popup", children: /* @__PURE__ */ d(
|
|
87
87
|
T,
|
|
88
88
|
{
|
|
89
|
-
in:
|
|
90
|
-
timeout:
|
|
89
|
+
in: u,
|
|
90
|
+
timeout: P,
|
|
91
91
|
unmountOnExit: !0,
|
|
92
92
|
classNames: "Popup",
|
|
93
|
-
nodeRef:
|
|
94
|
-
children: /* @__PURE__ */
|
|
93
|
+
nodeRef: s,
|
|
94
|
+
children: /* @__PURE__ */ d("div", { className: "Popup", style: v, children: /* @__PURE__ */ d("div", { className: "PopupInner", ref: s, style: E, children: w }) })
|
|
95
95
|
}
|
|
96
96
|
) });
|
|
97
97
|
};
|
|
98
98
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
$ as Popup,
|
|
100
|
+
$ as default
|
|
101
101
|
};
|