@alxgrn/telefrag-ui 0.0.3 → 0.0.7
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/Button.css +1 -1
- package/dist/assets/Content.css +1 -0
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/Fieldset.css +1 -1
- package/dist/assets/Footer.css +1 -0
- package/dist/assets/Header.css +1 -0
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Label.css +1 -1
- package/dist/assets/Menu.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/Overlay.css +1 -0
- package/dist/assets/Page.css +1 -0
- package/dist/assets/Popup.css +1 -1
- package/dist/assets/RadioLabel.css +1 -1
- package/dist/assets/RequiredMark.css +1 -0
- package/dist/assets/Sidebar.css +1 -0
- package/dist/components/{button → form/button}/Button.d.ts +1 -1
- package/dist/components/form/button/Button.js +16 -0
- package/dist/components/{date → form/date}/Date.js +1 -1
- package/dist/components/form/date/DatePicker.js +61 -0
- package/dist/components/form/fieldset/Fieldset.js +26 -0
- package/dist/components/{files → form/files}/Files.js +4 -3
- package/dist/components/form/{Form.js → form/Form.js} +36 -29
- package/dist/components/form/{FormCol.js → form/FormCol.js} +1 -1
- package/dist/components/form/{FormRow.js → form/FormRow.js} +1 -1
- package/dist/components/{input → form/input}/Input.js +14 -13
- package/dist/components/{fieldset/Fieldset.js → form/label/Label.js} +11 -10
- package/dist/components/form/radio/RadioLabel.js +28 -0
- package/dist/components/form/required/RequiredMark.js +8 -0
- package/dist/components/{select → form/select}/Select.js +9 -8
- package/dist/components/{time → form/time}/Time.js +10 -9
- package/dist/components/icons/Asterisk.d.ts +2 -0
- package/dist/components/icons/Asterisk.js +23 -0
- package/dist/components/icons/ChevronLeft.d.ts +2 -0
- package/dist/components/icons/ChevronLeft.js +19 -0
- package/dist/components/icons/ChevronRight.d.ts +2 -0
- package/dist/components/icons/ChevronRight.js +19 -0
- package/dist/components/icons/Menu.d.ts +2 -0
- package/dist/components/icons/Menu.js +23 -0
- package/dist/components/icons/Plus.d.ts +2 -0
- package/dist/components/icons/Plus.js +22 -0
- package/dist/components/icons/TelefragLogo.d.ts +6 -0
- package/dist/components/icons/TelefragLogo.js +49 -0
- package/dist/components/icons/index.d.ts +7 -0
- package/dist/components/icons/index.js +14 -0
- package/dist/components/layout/Content.d.ts +6 -0
- package/dist/components/layout/Content.js +9 -0
- package/dist/components/layout/Footer.d.ts +2 -0
- package/dist/components/layout/Footer.js +9 -0
- package/dist/components/layout/Header.d.ts +7 -0
- package/dist/components/layout/Header.js +12 -0
- package/dist/components/layout/Layout.d.ts +7 -0
- package/dist/components/layout/Layout.js +55 -0
- package/dist/components/layout/Page.d.ts +9 -0
- package/dist/components/layout/Page.js +51 -0
- package/dist/components/ui/alert/Alert.d.ts +1 -1
- package/dist/components/ui/alert/Alert.js +2 -2
- package/dist/components/ui/block/Block.js +4 -3
- package/dist/components/ui/confirm/Confirm.d.ts +1 -1
- package/dist/components/ui/confirm/Confirm.js +2 -2
- package/dist/components/ui/menu/Menu.js +9 -8
- package/dist/components/ui/modal/Modal.d.ts +1 -1
- package/dist/components/ui/modal/Modal.js +25 -35
- package/dist/components/ui/overlay/Overlay.d.ts +9 -0
- package/dist/components/ui/overlay/Overlay.js +26 -0
- package/dist/components/ui/popup/Popup.js +24 -22
- package/dist/components/ui/prompt/Prompt.d.ts +1 -1
- package/dist/components/ui/prompt/Prompt.js +3 -3
- package/dist/components/ui/sidebar/Sidebar.d.ts +8 -0
- package/dist/components/ui/sidebar/Sidebar.js +24 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.js +4 -0
- package/dist/main.d.ts +23 -19
- package/dist/main.js +62 -53
- package/package.json +1 -1
- package/dist/assets/Form.css +0 -1
- package/dist/components/button/Button.js +0 -14
- package/dist/components/date/DatePicker.js +0 -58
- package/dist/components/label/Label.js +0 -25
- package/dist/components/radio/RadioLabel.js +0 -27
- package/dist/components/required/RequiredMark.js +0 -5
- /package/dist/components/{checkbox → form/checkbox}/Checkbox.d.ts +0 -0
- /package/dist/components/{checkbox → form/checkbox}/Checkbox.js +0 -0
- /package/dist/components/{checkbox → form/checkbox}/CheckboxList.d.ts +0 -0
- /package/dist/components/{checkbox → form/checkbox}/CheckboxList.js +0 -0
- /package/dist/components/{date → form/date}/Date.d.ts +0 -0
- /package/dist/components/{date → form/date}/DatePicker.d.ts +0 -0
- /package/dist/components/{fieldset → form/fieldset}/Fieldset.d.ts +0 -0
- /package/dist/components/{files → form/files}/Files.d.ts +0 -0
- /package/dist/components/form/{Form.d.ts → form/Form.d.ts} +0 -0
- /package/dist/components/form/{FormCol.d.ts → form/FormCol.d.ts} +0 -0
- /package/dist/components/form/{FormRow.d.ts → form/FormRow.d.ts} +0 -0
- /package/dist/components/{hidden → form/hidden}/Hidden.d.ts +0 -0
- /package/dist/components/{hidden → form/hidden}/Hidden.js +0 -0
- /package/dist/components/{input → form/input}/Input.d.ts +0 -0
- /package/dist/components/{label → form/label}/Label.d.ts +0 -0
- /package/dist/components/{radio → form/radio}/Radio.d.ts +0 -0
- /package/dist/components/{radio → form/radio}/Radio.js +0 -0
- /package/dist/components/{radio → form/radio}/RadioLabel.d.ts +0 -0
- /package/dist/components/{radio → form/radio}/RadioList.d.ts +0 -0
- /package/dist/components/{radio → form/radio}/RadioList.js +0 -0
- /package/dist/components/{required → form/required}/RequiredMark.d.ts +0 -0
- /package/dist/components/{select → form/select}/Select.d.ts +0 -0
- /package/dist/components/{time → form/time}/Time.d.ts +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import '
|
|
1
|
+
import { jsx as e, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import b from "../label/Label.js";
|
|
3
|
+
import '../../../assets/Select.css';/* empty css */
|
|
4
|
+
const S = ({
|
|
4
5
|
id: d,
|
|
5
6
|
value: o,
|
|
6
7
|
onChange: c,
|
|
@@ -17,12 +18,12 @@ import '../../assets/Select.css';const y = ({
|
|
|
17
18
|
borderColor: "var(--alxgrn-input-border-error)",
|
|
18
19
|
backgroundColor: "var(--alxgrn-input-bg-error)"
|
|
19
20
|
};
|
|
20
|
-
},
|
|
21
|
+
}, m = () => {
|
|
21
22
|
let r = "SelectWrap";
|
|
22
23
|
return t && (r += " Disabled"), l() && (r += " Error"), r;
|
|
23
24
|
};
|
|
24
25
|
return /* @__PURE__ */ e("div", { className: "FormItem", children: /* @__PURE__ */ e(
|
|
25
|
-
|
|
26
|
+
b,
|
|
26
27
|
{
|
|
27
28
|
top: u,
|
|
28
29
|
bottom: p,
|
|
@@ -30,7 +31,7 @@ import '../../assets/Select.css';const y = ({
|
|
|
30
31
|
required: i,
|
|
31
32
|
disabled: t,
|
|
32
33
|
error: l(),
|
|
33
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
34
|
+
children: /* @__PURE__ */ e("div", { className: m(), children: /* @__PURE__ */ x(
|
|
34
35
|
"select",
|
|
35
36
|
{
|
|
36
37
|
id: d,
|
|
@@ -56,6 +57,6 @@ import '../../assets/Select.css';const y = ({
|
|
|
56
57
|
) });
|
|
57
58
|
};
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
S as Select,
|
|
61
|
+
S as default
|
|
61
62
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsxs as H, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as O, useState as n, useEffect as k } from "react";
|
|
3
3
|
import L from "../label/Label.js";
|
|
4
|
-
import { Menu as y } from "
|
|
5
|
-
import '
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { Menu as y } from "../../ui/menu/Menu.js";
|
|
5
|
+
import '../../../assets/Time.css';/* empty css */
|
|
6
|
+
const J = ({
|
|
7
|
+
id: m,
|
|
8
|
+
value: u,
|
|
8
9
|
step: p = 1,
|
|
9
10
|
onChange: t,
|
|
10
11
|
label: M,
|
|
@@ -15,9 +16,9 @@ import '../../assets/Time.css';const G = ({
|
|
|
15
16
|
}) => {
|
|
16
17
|
const x = O(null), $ = O(null), [l, N] = n(""), [a, C] = n(""), [I, j] = n([]), [w, z] = n([]), [E, c] = n(!1), [S, f] = n(!1);
|
|
17
18
|
k(() => {
|
|
18
|
-
let [e, r] =
|
|
19
|
+
let [e, r] = u.split(":");
|
|
19
20
|
e = parseInt(e), r = parseInt(r), (isNaN(e) || e < 0 || e > 23) && (e = 0), (isNaN(r) || r < 0 || r > 59) && (r = 0), e = `0${e}`.slice(-2), r = `0${r}`.slice(-2), N(e), C(r), t && t(`${e}:${r}`);
|
|
20
|
-
}, [
|
|
21
|
+
}, [u, t]), k(() => {
|
|
21
22
|
const e = [], r = [];
|
|
22
23
|
for (let s = 0; s < 24; s++)
|
|
23
24
|
e.push(`0${s}`.slice(-2));
|
|
@@ -50,7 +51,7 @@ import '../../assets/Time.css';const G = ({
|
|
|
50
51
|
/* @__PURE__ */ i(
|
|
51
52
|
"input",
|
|
52
53
|
{
|
|
53
|
-
id: `${
|
|
54
|
+
id: `${m}-hor`,
|
|
54
55
|
ref: x,
|
|
55
56
|
type: "text",
|
|
56
57
|
value: l,
|
|
@@ -64,7 +65,7 @@ import '../../assets/Time.css';const G = ({
|
|
|
64
65
|
/* @__PURE__ */ i(
|
|
65
66
|
"input",
|
|
66
67
|
{
|
|
67
|
-
id: `${
|
|
68
|
+
id: `${m}-min`,
|
|
68
69
|
ref: $,
|
|
69
70
|
type: "text",
|
|
70
71
|
value: a,
|
|
@@ -108,5 +109,5 @@ import '../../assets/Time.css';const G = ({
|
|
|
108
109
|
] });
|
|
109
110
|
};
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
+
J as default
|
|
112
113
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
const r = () => /* @__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: [
|
|
15
|
+
/* @__PURE__ */ t("path", { d: "M12 6v12" }),
|
|
16
|
+
/* @__PURE__ */ t("path", { d: "M17.196 9 6.804 15" }),
|
|
17
|
+
/* @__PURE__ */ t("path", { d: "m6.804 9 10.392 6" })
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
r as default
|
|
23
|
+
};
|
|
@@ -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: "m15 18-6-6 6-6" })
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
t as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as o } 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: /* @__PURE__ */ o("path", { d: "m9 18 6-6-6-6" })
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
t as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } 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: [
|
|
15
|
+
/* @__PURE__ */ e("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
|
16
|
+
/* @__PURE__ */ e("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
|
17
|
+
/* @__PURE__ */ e("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
r as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
const r = () => /* @__PURE__ */ t(
|
|
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__ */ o("path", { d: "M5 12h14" }),
|
|
16
|
+
/* @__PURE__ */ o("path", { d: "M12 5v14" })
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
export {
|
|
21
|
+
r as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs as z, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useEffect as a } from "react";
|
|
3
|
+
const e = {
|
|
4
|
+
dark: {
|
|
5
|
+
back: "#287BBF",
|
|
6
|
+
fore: "#ccc",
|
|
7
|
+
text: "#999"
|
|
8
|
+
},
|
|
9
|
+
light: {
|
|
10
|
+
back: "#287BBF",
|
|
11
|
+
fore: "white",
|
|
12
|
+
text: "#333"
|
|
13
|
+
}
|
|
14
|
+
}, u = ({ theme: m }) => {
|
|
15
|
+
const [t, c] = i("light");
|
|
16
|
+
return a(() => {
|
|
17
|
+
if (m) {
|
|
18
|
+
c(m);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const o = document.documentElement.getAttribute("data-theme");
|
|
22
|
+
c(o === "dark" ? "dark" : "light");
|
|
23
|
+
let r = new MutationObserver(() => {
|
|
24
|
+
const n = document.documentElement.getAttribute("data-theme");
|
|
25
|
+
c(n === "dark" ? "dark" : "light");
|
|
26
|
+
});
|
|
27
|
+
return r.observe(document.documentElement, {
|
|
28
|
+
attributes: !0
|
|
29
|
+
// наблюдать за изменением атрибутов
|
|
30
|
+
}), () => r.disconnect();
|
|
31
|
+
}, [m]), /* @__PURE__ */ z(
|
|
32
|
+
"svg",
|
|
33
|
+
{
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: "156.748mm",
|
|
36
|
+
height: "21.7468mm",
|
|
37
|
+
viewBox: "0 0 15503.88 2150.97",
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ l("path", { fill: e[t].back, d: "M7990.87 2137.37c809.18,0 1467.66,-479.95 1467.66,-1071.46 0,-586 -658.48,-1065.91 -1467.66,-1065.91 -809.16,0 -1467.64,479.91 -1467.64,1065.91 0,591.51 658.48,1071.46 1467.64,1071.46z" }),
|
|
40
|
+
/* @__PURE__ */ l("path", { fill: e[t].fore, d: "M8095.54 173.7c649.88,38.52 1162.11,457.13 1162.11,892.25 0,429.58 -380.01,743.54 -908.79,853.7 407.6,-104.67 699.52,-391.06 699.52,-699.48 0,-313.93 -264.38,-567.31 -638.9,-682.98l-60.62 286.42c331.79,120.61 672.43,399.28 253.36,666.43 11.06,-16.19 38.54,-40.29 38.54,-115.68 0,-101.9 -154.17,-203.75 -357.94,-264.35l-187.27 853.67 0 -1663.33 0 -126.66zm-209.34 126.66l0 1663.33 -313.93 -1431.99c-380.01,115.65 -644.39,379.99 -644.39,688.46 0,302.91 258.89,567.29 633.42,682.96 -484.68,-126.7 -837.17,-457.16 -837.17,-837.18 0,-468.16 512.2,-853.73 1162.07,-892.25l0 126.66z" }),
|
|
41
|
+
/* @__PURE__ */ l("path", { fill: e[t].text, d: "M12822.53 694.56c0,-55.27 15.52,-90.65 46.41,-126.02 67.53,-77.3 166.98,-48.99 225.51,-30.94l66.31 -174.67c-158.22,-52.42 -328.93,-58.97 -453.18,75.17 -66.99,72.34 -101.71,159.21 -108.36,278.57l-141.48 0 0 190.1 141.48 0 0 800.26 227.73 0 0 -800.26 198.97 0 0 -190.1 -201.18 0c-2.22,-6.65 -2.22,-15.47 -2.22,-22.11zm1759.42 513.87c0,-148.24 42.71,-268.93 128.13,-362.08 85.41,-93.15 198.37,-139.89 338.56,-139.89 117.29,0 213.57,28.44 289.18,85.17 46.5,-49.6 103.19,-74.79 166.07,-85.17l0 998.16c0,139.22 -64.13,290.4 -197.73,378.03 -140.51,92.16 -371.92,81.14 -550.45,25.52l62.14 -208.11c92.6,25.77 242.22,61.15 343.11,9.58 109.17,-55.8 116.41,-127.36 116.41,-201.63l0 -43.8c-65,33.65 -141.22,50.5 -228.72,50.5 -147.61,0 -262.12,-46.11 -343.82,-138.34 -82.02,-92.22 -122.87,-215.08 -122.87,-367.96zm695.41 173.53l0 -350.65c-23.3,-50.52 -73.21,-138.97 -216.74,-138.97 -70.87,0 -138.86,27.66 -180.32,83.05 -41.78,55.71 -62.52,133.38 -62.52,233.03 0,213.85 86.86,320.46 240.67,320.46 116.1,0 197.65,-65.71 218.92,-146.93zm-3864.59 -1080.91l-227.69 55.27 0 1136.28c0,141.52 123.8,214.44 225.47,214.44l120.59 0 0 -198.94c-66.61,2.81 -118.39,-36.92 -118.38,-94.64l0 -1112.41zm3099.18 889.52c0.3,-187.89 -33.15,-316.13 -101.7,-382.43 -85.82,-83.02 -212.57,-101.68 -327.17,-101.68 -43.1,0 -83.67,3.52 -121.99,9.7 -56,9.04 -107.2,23.82 -154.35,41.72l49.75 189.89c58.77,-22.06 140.35,-42.37 226.58,-42.37 116.54,0 201.16,28.14 201.16,161.41 -68.7,-11.23 -106.65,-15.13 -174.64,-11.08 -117.48,7.02 -210.01,42.02 -278.53,92.86 -86.18,65.63 -126.03,156 -126.03,263.06 0,202.93 137.46,305.59 336.04,305.59 90.33,0 222.68,-42.36 267.49,-110.61 24.41,45.87 83.97,103.13 187.99,100.4l14.58 0 0.81 -516.47zm-225.47 127.32c0,136.27 -66.69,212.07 -203.4,215.35 -101.67,2.43 -150.32,-44.19 -150.32,-130.4 0,-95.07 57.6,-151.87 176.85,-170.24 65.04,-10.03 113.18,-8.33 176.87,6.62l0 78.68zm-2294.54 -609.04c-301.22,2.54 -481.95,229.89 -481.95,512.87 0,268.03 211.72,488.58 481.95,493.01 134.45,2.21 270.23,-17.77 384.65,-95.07l-83.95 -170.07c-57.04,46.2 -187.18,83.39 -300.7,72.82 -118.27,-11.02 -238.86,-126.76 -245.42,-241.01l701.79 0c52.02,-325.51 -120.19,-575.38 -456.37,-572.54zm-238.77 402.33c20.59,-129.42 105.2,-213.33 243.18,-212.25 139.27,1.09 230.31,71.86 239.24,212.25l-482.42 0zm-1109.76 -402.33c-301.22,2.54 -481.95,229.89 -481.95,512.87 0,268.03 211.72,488.58 481.95,493.01 134.45,2.21 270.23,-17.77 384.65,-95.07l-83.95 -170.07c-57.04,46.2 -187.18,83.39 -300.7,72.82 -118.27,-11.02 -238.86,-126.76 -245.42,-241.01l701.79 0c52.02,-325.51 -120.19,-575.38 -456.37,-572.54zm-238.77 402.33c20.59,-129.42 105.2,-213.33 243.18,-212.25 139.27,1.09 230.31,71.86 239.24,212.25l-482.42 0zm3290.99 -178.22l93.8 -187.56c-135.84,-67.86 -333.64,-43 -435.51,72.96l0 -101.68 -227.69 0 0 990.36 227.69 0 0 -557.1c0,-70.74 19.91,-128.24 61.91,-176.85 29.24,-33.84 159.31,-110.97 279.81,-40.13zm-3273.01 -353.38l64.16 0 0 -212.25 -64.16 0 -123.8 0 -921.85 0 0 212.25 426.66 0 0 1127.45 238.77 0 0 -1127.45 256.42 0 123.8 0z" }),
|
|
42
|
+
/* @__PURE__ */ l("path", { fill: e[t].text, d: "M2337.88 708.85c-301.22,2.54 -481.95,229.89 -481.95,512.87 0,268.03 211.72,488.58 481.95,493.01 134.45,2.21 270.23,-17.77 384.65,-95.07l-83.95 -170.07c-57.04,46.2 -187.18,83.39 -300.7,72.82 -118.27,-11.02 -238.86,-126.76 -245.42,-241.01l701.79 0c52.02,-325.51 -120.19,-575.38 -456.37,-572.54zm-1174.7 -341.52c-369.93,0 -793.25,0 -1163.18,0l0 212.25 426.66 0 0 1127.45 238.77 0 0 -1127.45 267.83 0 0 1127.45 229.93 0 0 -696.33c38.7,-58.2 127.81,-99.5 196.75,-99.5 120.28,0 201.17,78.06 201.17,198.97l0 596.86 227.7 0 0 -596.86c0,-246.43 -132.79,-391.29 -382.45,-391.29 -103.9,0 -183.5,26.51 -243.17,79.56 0,-143.71 0,-287.41 0,-431.12zm5122.47 349.34l-236.54 672.03 -265.32 -672.03 -236.44 -0.14 397.83 970.6c-41.98,123.8 -91.45,143.26 -252.02,139.3l0 207.83c172.65,0 330.31,-0.33 402.37,-190.14l426.66 -1127.45 -236.52 0zm-2343.31 274.1c0,-70.73 -8.84,-134.83 -24.31,-196.71 -26.55,-97.29 -75.17,-183.53 -145.91,-254.24 -95.05,-95.07 -218.85,-143.7 -371.41,-154.77 -28.72,-2.22 -57.47,-4.39 -88.43,-4.39l-446.56 0 0 1326.38 386.88 0c53.08,0 101.7,-2.18 148.11,-8.85 285.2,-37.56 457.64,-192.29 517.32,-462 15.47,-72.99 24.31,-154.76 24.31,-245.42zm-344.88 378.07c-50.84,66.31 -117.15,101.64 -196.75,114.93 -26.51,4.4 -55.25,8.86 -83.99,8.86l-214.44 0 2.2 -906.41 196.77 0c35.37,0 68.52,2.22 99.46,6.62 196.75,33.18 296.24,165.81 296.24,413.43 0,154.73 -33.16,276.35 -99.48,362.56zm1198.42 -652.17l0 185.71 108.53 0 0 804.65 229.93 0 0 -990.36 -338.46 0zm-45.82 474.44c0.29,-187.89 -33.15,-316.13 -101.7,-382.43 -85.82,-83.02 -212.57,-101.68 -327.17,-101.68 -106.09,0 -196.93,21.28 -276.33,51.42l49.75 189.89c58.77,-22.06 140.35,-42.37 226.58,-42.37 116.54,0 201.16,28.14 201.16,161.41 -68.7,-11.23 -106.65,-15.13 -174.64,-11.08 -117.48,7.02 -210.01,42.02 -278.53,92.86 -86.18,65.63 -126.03,156 -126.03,263.06 0,202.93 137.46,304.5 336.04,304.5 90.33,0 222.68,-41.28 267.49,-109.52 30.95,52.41 83.99,102.59 188.01,99.86l14.58 0 0.79 -515.92zm-225.47 127.32c0,136.27 -66.69,212.07 -203.4,215.35 -101.67,2.43 -150.32,-44.19 -150.32,-130.4 0,-95.07 57.6,-151.87 176.85,-170.24 65.04,-10.03 113.18,-8.33 176.87,6.62l0 78.68zm497 -977.58c-35.37,0 -68.54,13.22 -92.86,39.8 -26.53,24.29 -39.78,55.24 -39.78,92.86 0,35.33 13.25,66.28 39.78,92.82 24.31,24.3 57.49,37.59 92.86,37.59 35.37,0 66.33,-13.28 92.86,-37.59 26.51,-26.54 37.55,-57.49 37.55,-92.82 0,-37.62 -11.04,-68.56 -37.55,-92.86 -26.53,-26.58 -57.49,-39.8 -92.86,-39.8zm493.63 -39.8l-227.69 55.27 0 1136.28c0,141.52 123.8,214.44 225.47,214.44l120.59 0 0 -198.94c-66.61,2.81 -118.39,-36.91 -118.38,-94.63l0 -1112.42zm-3416.1 810.12c20.59,-129.42 105.2,-213.33 243.18,-212.25 139.27,1.09 230.31,71.86 239.24,212.25l-482.42 0z" })
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
u as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as Asterisk } from './Asterisk';
|
|
2
|
+
import { default as ChevronLeft } from './ChevronLeft';
|
|
3
|
+
import { default as ChevronRight } from './ChevronRight';
|
|
4
|
+
import { default as Menu } from './Menu';
|
|
5
|
+
import { default as Plus } from './Plus';
|
|
6
|
+
import { default as TelefragLogo } from './TelefragLogo';
|
|
7
|
+
export { Asterisk, ChevronLeft, ChevronRight, Menu, Plus, TelefragLogo, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as r } from "./Asterisk.js";
|
|
2
|
+
import { default as f } from "./ChevronLeft.js";
|
|
3
|
+
import { default as s } from "./ChevronRight.js";
|
|
4
|
+
import { default as u } from "./Menu.js";
|
|
5
|
+
import { default as m } from "./Plus.js";
|
|
6
|
+
import { default as x } from "./TelefragLogo.js";
|
|
7
|
+
export {
|
|
8
|
+
r as Asterisk,
|
|
9
|
+
f as ChevronLeft,
|
|
10
|
+
s as ChevronRight,
|
|
11
|
+
u as Menu,
|
|
12
|
+
m as Plus,
|
|
13
|
+
x as TelefragLogo
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Content.css';/* empty css */
|
|
3
|
+
const o = ({ children: t, menu: e }) => /* @__PURE__ */ s("main", { className: "Content", children: [
|
|
4
|
+
e && /* @__PURE__ */ n("div", { className: "ContentMenu", children: /* @__PURE__ */ n("div", { className: "ContentMenuInner", children: e }) }),
|
|
5
|
+
/* @__PURE__ */ n("div", { className: "ContentMain", children: t })
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
o as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Footer.css';/* empty css */
|
|
3
|
+
const s = () => /* @__PURE__ */ r("footer", { className: "Footer", children: /* @__PURE__ */ e("div", { children: [
|
|
4
|
+
"Copyright © ",
|
|
5
|
+
/* @__PURE__ */ r("a", { href: "/user/1", children: "Alexander Fedorov" })
|
|
6
|
+
] }) });
|
|
7
|
+
export {
|
|
8
|
+
s as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import i from "../icons/Menu.js";
|
|
3
|
+
import s from "../icons/TelefragLogo.js";
|
|
4
|
+
import '../../assets/Header.css';/* empty css */
|
|
5
|
+
const o = ({ userMenu: r, onMenuSwitch: a }) => /* @__PURE__ */ e("header", { className: "HeaderWrapper", children: /* @__PURE__ */ d("div", { className: "Header", children: [
|
|
6
|
+
/* @__PURE__ */ e("div", { className: "HeaderLeft", children: /* @__PURE__ */ e("span", { onClick: a, children: /* @__PURE__ */ e(i, {}) }) }),
|
|
7
|
+
/* @__PURE__ */ e("div", { className: "HeaderCenter", children: /* @__PURE__ */ e(s, {}) }),
|
|
8
|
+
/* @__PURE__ */ e("div", { className: "HeaderRight", children: r })
|
|
9
|
+
] }) });
|
|
10
|
+
export {
|
|
11
|
+
o as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as n } from "react";
|
|
3
|
+
import a from "./Header.js";
|
|
4
|
+
import f from "./Footer.js";
|
|
5
|
+
import l from "./Content.js";
|
|
6
|
+
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/Select.css';import '../../assets/RadioLabel.css';import '../../assets/Input.css';import '../../assets/Files.css';import '../../assets/Fieldset.css';import '../../assets/Time.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
|
+
import "react-children-utilities";
|
|
8
|
+
import "react-transition-group";
|
|
9
|
+
import "react-dom";
|
|
10
|
+
/* empty css */
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
/* empty css */
|
|
18
|
+
/* empty css */
|
|
19
|
+
/* empty css */
|
|
20
|
+
/* empty css */
|
|
21
|
+
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
|
+
/* empty css */
|
|
27
|
+
/* empty css */
|
|
28
|
+
/* empty css */
|
|
29
|
+
import { Sidebar as u } from "../ui/sidebar/Sidebar.js";
|
|
30
|
+
/* empty css */
|
|
31
|
+
const P = ({ children: i, mainMenu: r, userMenu: m }) => {
|
|
32
|
+
const [p, t] = n(!1);
|
|
33
|
+
return /* @__PURE__ */ s("div", { className: "Layout", children: [
|
|
34
|
+
/* @__PURE__ */ o(
|
|
35
|
+
a,
|
|
36
|
+
{
|
|
37
|
+
userMenu: m,
|
|
38
|
+
onMenuSwitch: () => t((e) => !e)
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ o(l, { menu: r, children: i }),
|
|
42
|
+
/* @__PURE__ */ o(f, {}),
|
|
43
|
+
/* @__PURE__ */ o(
|
|
44
|
+
u,
|
|
45
|
+
{
|
|
46
|
+
isOpen: p,
|
|
47
|
+
onClose: () => t(!1),
|
|
48
|
+
children: r
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] });
|
|
52
|
+
};
|
|
53
|
+
export {
|
|
54
|
+
P as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React, FC, PropsWithChildren } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
header?: React.ReactNode;
|
|
4
|
+
sidebar?: React.ReactNode;
|
|
5
|
+
isSidebarVisible?: boolean;
|
|
6
|
+
onSidebarClose?: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const Page: FC<PropsWithChildren<Props>>;
|
|
9
|
+
export default Page;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Content.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/Select.css';import '../../assets/RadioLabel.css';import '../../assets/Input.css';import '../../assets/Files.css';import '../../assets/Fieldset.css';import '../../assets/Time.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
|
+
import "react";
|
|
4
|
+
import "react-children-utilities";
|
|
5
|
+
import "react-transition-group";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
/* empty css */
|
|
18
|
+
/* empty css */
|
|
19
|
+
/* empty css */
|
|
20
|
+
/* empty css */
|
|
21
|
+
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
|
+
import { Sidebar as a } from "../ui/sidebar/Sidebar.js";
|
|
27
|
+
/* empty css */
|
|
28
|
+
/* empty css */
|
|
29
|
+
/* empty css */
|
|
30
|
+
/* empty css */
|
|
31
|
+
const G = ({ header: m, children: p, sidebar: r, isSidebarVisible: e = !1, onSidebarClose: o }) => /* @__PURE__ */ t("div", { className: "Page", children: [
|
|
32
|
+
m && /* @__PURE__ */ i("div", { className: "PageHeader", children: m }),
|
|
33
|
+
/* @__PURE__ */ t("div", { className: "PageBody", children: [
|
|
34
|
+
/* @__PURE__ */ i("div", { className: "PageContent", children: p }),
|
|
35
|
+
r && /* @__PURE__ */ i("div", { className: "PageSidebar", children: /* @__PURE__ */ i("div", { className: "PageSidebarInner", children: r }) })
|
|
36
|
+
] }),
|
|
37
|
+
r && /* @__PURE__ */ i(
|
|
38
|
+
a,
|
|
39
|
+
{
|
|
40
|
+
isOpen: e,
|
|
41
|
+
onClose: () => {
|
|
42
|
+
o && o();
|
|
43
|
+
},
|
|
44
|
+
position: "Right",
|
|
45
|
+
children: r
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] });
|
|
49
|
+
export {
|
|
50
|
+
G as default
|
|
51
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MessageIconType } from '../message/Message';
|
|
3
|
-
import { ButtonType } from '../../button/Button';
|
|
3
|
+
import { ButtonType } from '../../form/button/Button';
|
|
4
4
|
export interface AlertProps {
|
|
5
5
|
icon?: string | null;
|
|
6
6
|
type?: MessageIconType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import a from "../message/Message.js";
|
|
3
|
-
import n from "../modal/Modal.js";
|
|
4
|
-
import { Form as b } from "../../form/Form.js";
|
|
3
|
+
import { Modal as n } from "../modal/Modal.js";
|
|
4
|
+
import { Form as b } from "../../form/form/Form.js";
|
|
5
5
|
const c = "Ok", M = ({ icon: m, type: o, title: s, message: i, close: e, closeType: p, isOpen: f, onClose: r }) => /* @__PURE__ */ u(n, { isOpen: f, onClose: r, children: [
|
|
6
6
|
/* @__PURE__ */ t(
|
|
7
7
|
a,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../../assets/Block.css'
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import '../../../assets/Block.css';/* empty css */
|
|
3
|
+
const e = ({ children: t, type: o = "Default", className: r }) => /* @__PURE__ */ l("div", { className: r ? `Block ${o} ${r}` : `Block ${o}`, children: t });
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
+
e as default
|
|
5
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MessageIconType } from '../message/Message';
|
|
3
|
-
import { ButtonType } from '../../button/Button';
|
|
3
|
+
import { ButtonType } from '../../form/button/Button';
|
|
4
4
|
export interface ModalConfirmProps {
|
|
5
5
|
icon?: string | null;
|
|
6
6
|
type?: MessageIconType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import l from "../message/Message.js";
|
|
3
|
-
import u from "../modal/Modal.js";
|
|
4
|
-
import { Form as b } from "../../form/Form.js";
|
|
3
|
+
import { Modal as u } from "../modal/Modal.js";
|
|
4
|
+
import { Form as b } from "../../form/form/Form.js";
|
|
5
5
|
const d = "Cancel", x = "Confirm", g = ({
|
|
6
6
|
icon: m,
|
|
7
7
|
type: t,
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { Popup as i } from "../popup/Popup.js";
|
|
3
|
-
import '../../../assets/Menu.css'
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import '../../../assets/Menu.css';/* empty css */
|
|
4
|
+
const x = (s) => {
|
|
5
|
+
const { items: o, onClick: l, ...n } = s;
|
|
6
|
+
return /* @__PURE__ */ r(i, { ...n, children: /* @__PURE__ */ r("div", { className: "Menu Scrollbar", children: /* @__PURE__ */ r("ul", { children: o.map((a, c) => /* @__PURE__ */ r(
|
|
6
7
|
"li",
|
|
7
8
|
{
|
|
8
9
|
className: `${a.separator ? "Separator" : ""} ${a.disabled ? "Disabled" : ""}`,
|
|
9
|
-
onClick: (
|
|
10
|
-
|
|
10
|
+
onClick: (e) => {
|
|
11
|
+
e.stopPropagation(), !a.disabled && !a.separator && l(a);
|
|
11
12
|
},
|
|
12
13
|
children: !a.separator && /* @__PURE__ */ p(d, { children: [
|
|
13
14
|
a.icon && /* @__PURE__ */ r("span", { className: "Icon", children: a.icon }),
|
|
14
15
|
a.text && /* @__PURE__ */ r("span", { className: "Text", children: a.text })
|
|
15
16
|
] })
|
|
16
17
|
},
|
|
17
|
-
|
|
18
|
+
c
|
|
18
19
|
)) }) }) });
|
|
19
20
|
};
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
x as Menu,
|
|
23
|
+
x as default
|
|
23
24
|
};
|