@layers-app/shared 0.3.5 → 0.3.6
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/components/ColorPicker/ColorPicker.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +63 -62
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +88 -71
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +12 -13
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +1 -0
- package/dist/components/EmojiPicker/IconsPanel.js +13 -13
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +36 -35
- package/dist/constants.js +1 -1
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +77 -129
- package/dist/helpers/showNotifications.module.css.js +12 -26
- package/dist/index.css +1 -1
- package/dist/lang/locales/ui_en.json.js +5 -5
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +5 -5
- package/package.json +1 -1
|
@@ -13,18 +13,18 @@ import { IconEntity as I, IconType as A } from "../ProjectIcon/ProjectIcon.js";
|
|
|
13
13
|
import { customIcons as D } from "./custom-icons/customIcons.js";
|
|
14
14
|
import { getIconsList as F, getRandomIcon as ae } from "./utils.js";
|
|
15
15
|
import h from "./EmojiPicker.module.css.js";
|
|
16
|
-
async function le(
|
|
17
|
-
const u = [], p =
|
|
16
|
+
async function le(a, c, l = 500) {
|
|
17
|
+
const u = [], p = a.length;
|
|
18
18
|
for (let r = 0; r < p; r += l) {
|
|
19
|
-
const w =
|
|
19
|
+
const w = a.slice(r, r + l).filter(c);
|
|
20
20
|
u.push(...w), await new Promise((f) => setTimeout(f, 0));
|
|
21
21
|
}
|
|
22
22
|
return u;
|
|
23
23
|
}
|
|
24
24
|
const Ce = M(
|
|
25
25
|
({
|
|
26
|
-
showColors:
|
|
27
|
-
locales:
|
|
26
|
+
showColors: a,
|
|
27
|
+
locales: c,
|
|
28
28
|
onChange: l,
|
|
29
29
|
value: u,
|
|
30
30
|
onClose: p,
|
|
@@ -65,7 +65,7 @@ const Ce = M(
|
|
|
65
65
|
color: i?.color,
|
|
66
66
|
type: i?.type || A.FILLED
|
|
67
67
|
})
|
|
68
|
-
),
|
|
68
|
+
), a || p());
|
|
69
69
|
}), n = J({
|
|
70
70
|
color: i?.color || ie.COLORS[0],
|
|
71
71
|
theme: w
|
|
@@ -77,11 +77,11 @@ const Ce = M(
|
|
|
77
77
|
"--icon-color-hover": K(n.value, 0.2)
|
|
78
78
|
}, [n]), q = async () => {
|
|
79
79
|
const o = await ae(r);
|
|
80
|
-
S([]), l?.(I.stringify({ icon: o, color: i?.color })), !
|
|
80
|
+
S([]), l?.(I.stringify({ icon: o, color: i?.color })), !a && !C && p();
|
|
81
81
|
};
|
|
82
82
|
return /* @__PURE__ */ m(y, { w: "100%", gap: "sm", pt: 12, pb: 8, h: "100%", children: [
|
|
83
|
-
|
|
84
|
-
/* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children:
|
|
83
|
+
a && /* @__PURE__ */ m(y, { gap: 4, px: 8, w: "100%", children: [
|
|
84
|
+
/* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children: c?.chooseColor || k("chooseColor") }),
|
|
85
85
|
/* @__PURE__ */ e(
|
|
86
86
|
ne,
|
|
87
87
|
{
|
|
@@ -117,7 +117,7 @@ const Ce = M(
|
|
|
117
117
|
{
|
|
118
118
|
leftSection: /* @__PURE__ */ e(L, { size: 16, icon: Q }),
|
|
119
119
|
value: f,
|
|
120
|
-
placeholder: `${
|
|
120
|
+
placeholder: `${c?.search}...`,
|
|
121
121
|
"data-autofocus": !0,
|
|
122
122
|
styles: {
|
|
123
123
|
input: {
|
|
@@ -130,7 +130,7 @@ const Ce = M(
|
|
|
130
130
|
radius: "var(--mantine-radius-default)"
|
|
131
131
|
}
|
|
132
132
|
) }),
|
|
133
|
-
/* @__PURE__ */ e(Z, { withArrow: !0, label: k("random"), children: /* @__PURE__ */ e(
|
|
133
|
+
/* @__PURE__ */ e(Z, { withArrow: !0, label: c?.random || k("random"), children: /* @__PURE__ */ e(
|
|
134
134
|
ee,
|
|
135
135
|
{
|
|
136
136
|
h: 36,
|
|
@@ -168,7 +168,7 @@ const Ce = M(
|
|
|
168
168
|
top: -1,
|
|
169
169
|
style: { zIndex: 1 },
|
|
170
170
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
171
|
-
children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children:
|
|
171
|
+
children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: c?.searchResults })
|
|
172
172
|
}
|
|
173
173
|
),
|
|
174
174
|
T.length ? /* @__PURE__ */ e(N, { cols: 8, spacing: 0, children: T.map((o) => {
|
|
@@ -203,7 +203,7 @@ const Ce = M(
|
|
|
203
203
|
ce,
|
|
204
204
|
{
|
|
205
205
|
size: 100,
|
|
206
|
-
description:
|
|
206
|
+
description: c?.searchNoResults,
|
|
207
207
|
descriptionProps: {
|
|
208
208
|
fz: "sm"
|
|
209
209
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"AA0BA,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAQD,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,cAAc,EAAE,WAElD;IACD,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,mDA6HA,CAAC"}
|
|
@@ -1,58 +1,59 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { File01Icon as
|
|
3
|
-
import { HugeiconsIcon as
|
|
4
|
-
import { Text as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
2
|
+
import { File01Icon as p, Folder02Icon as u, Folder01Icon as h } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as f } from "@hugeicons/react";
|
|
4
|
+
import { Text as a, Box as y, Avatar as g, useMantineTheme as I, parseThemeColor as C } from "@mantine/core";
|
|
5
|
+
import v from "../assets/enitityIcons/flow.svg.js";
|
|
6
|
+
import z from "../assets/enitityIcons/form.svg.js";
|
|
7
|
+
import F from "../assets/enitityIcons/page.svg.js";
|
|
8
|
+
import O from "../assets/enitityIcons/sprint.svg.js";
|
|
9
|
+
import { DEFAULT_VALUES as l } from "../constants.js";
|
|
10
|
+
import { IconEntity as i, ProjectIcon as c, renderIcon as E } from "./ProjectIcon/ProjectIcon.js";
|
|
11
|
+
const s = (o) => !!o && l.COLORS.includes(o), R = (o) => o.type === "FOLDER" || o.isFolder || o.type === "PROJECT" && o?.pathById?.findIndex((r) => r === o?.parentId) === 1, H = ({
|
|
11
12
|
item: o
|
|
12
13
|
}) => {
|
|
13
14
|
const r = o?.size || 16;
|
|
14
15
|
if (!o) return null;
|
|
15
|
-
if (
|
|
16
|
-
const e = i.parse(o.icon);
|
|
17
|
-
return /* @__PURE__ */ n(
|
|
16
|
+
if (R(o)) {
|
|
17
|
+
const e = i.parse(o.icon), t = s(e?.color) ? e.color : l.FOLDER_COLOR;
|
|
18
|
+
return /* @__PURE__ */ n(S, { color: t, size: r, opened: o.isOpen });
|
|
18
19
|
}
|
|
19
20
|
if (o.type === "ATTACHMENT")
|
|
20
|
-
return /* @__PURE__ */ n(
|
|
21
|
+
return /* @__PURE__ */ n(f, { icon: p, size: r });
|
|
21
22
|
if (o.type === "PAGE")
|
|
22
23
|
return /* @__PURE__ */ n(
|
|
23
|
-
|
|
24
|
+
c,
|
|
24
25
|
{
|
|
25
26
|
fallbackColor: o.icon ? void 0 : "var(--default-page-icon-color)",
|
|
26
27
|
name: o.title,
|
|
27
28
|
icon: o.icon,
|
|
28
|
-
fallback: /* @__PURE__ */ n(
|
|
29
|
+
fallback: /* @__PURE__ */ n(F, { width: r, height: r })
|
|
29
30
|
}
|
|
30
31
|
);
|
|
31
32
|
if (o.type === "FORM")
|
|
32
33
|
return /* @__PURE__ */ n(
|
|
33
|
-
|
|
34
|
+
c,
|
|
34
35
|
{
|
|
35
36
|
fallbackColor: "var(--default-form-icon-color)",
|
|
36
37
|
icon: o.icon,
|
|
37
|
-
fallback: /* @__PURE__ */ n(
|
|
38
|
+
fallback: /* @__PURE__ */ n(z, { width: r, height: r })
|
|
38
39
|
}
|
|
39
40
|
);
|
|
40
41
|
if (o.type === "FLOW")
|
|
41
42
|
return /* @__PURE__ */ n(
|
|
42
|
-
|
|
43
|
+
c,
|
|
43
44
|
{
|
|
44
45
|
icon: o.icon,
|
|
45
46
|
fallbackColor: "var(--default-flow-icon-color)",
|
|
46
|
-
fallback: /* @__PURE__ */ n(
|
|
47
|
+
fallback: /* @__PURE__ */ n(v, { width: r, height: r })
|
|
47
48
|
}
|
|
48
49
|
);
|
|
49
50
|
if (o.type === "SPRINT") {
|
|
50
|
-
const e = i.parse(o.icon);
|
|
51
|
+
const e = i.parse(o.icon), t = s(e?.color) ? e.color : l.SPRINT_COLOR;
|
|
51
52
|
return /* @__PURE__ */ n(
|
|
52
|
-
|
|
53
|
+
a,
|
|
53
54
|
{
|
|
54
55
|
fz: r,
|
|
55
|
-
c:
|
|
56
|
+
c: t,
|
|
56
57
|
style: {
|
|
57
58
|
display: "flex",
|
|
58
59
|
alignItems: "center",
|
|
@@ -60,14 +61,14 @@ const w = (o) => o.type === "FOLDER" || o.isFolder || o.type === "PROJECT" && o?
|
|
|
60
61
|
lineHeight: "normal",
|
|
61
62
|
width: r + 4
|
|
62
63
|
},
|
|
63
|
-
children: /* @__PURE__ */ n(
|
|
64
|
+
children: /* @__PURE__ */ n(O, {})
|
|
64
65
|
}
|
|
65
66
|
);
|
|
66
67
|
}
|
|
67
68
|
if (o.type === "PROJECT") {
|
|
68
69
|
const e = i.parse(o.icon);
|
|
69
70
|
return e?.emoji ? /* @__PURE__ */ n(
|
|
70
|
-
|
|
71
|
+
y,
|
|
71
72
|
{
|
|
72
73
|
bg: "gray.1",
|
|
73
74
|
style: {
|
|
@@ -79,7 +80,7 @@ const w = (o) => o.type === "FOLDER" || o.isFolder || o.type === "PROJECT" && o?
|
|
|
79
80
|
height: r
|
|
80
81
|
},
|
|
81
82
|
children: /* @__PURE__ */ n(
|
|
82
|
-
|
|
83
|
+
c,
|
|
83
84
|
{
|
|
84
85
|
p: 0,
|
|
85
86
|
icon: o.icon,
|
|
@@ -89,7 +90,7 @@ const w = (o) => o.type === "FOLDER" || o.isFolder || o.type === "PROJECT" && o?
|
|
|
89
90
|
)
|
|
90
91
|
}
|
|
91
92
|
) : /* @__PURE__ */ n(
|
|
92
|
-
|
|
93
|
+
g,
|
|
93
94
|
{
|
|
94
95
|
variant: "filled",
|
|
95
96
|
radius: 4,
|
|
@@ -97,7 +98,7 @@ const w = (o) => o.type === "FOLDER" || o.isFolder || o.type === "PROJECT" && o?
|
|
|
97
98
|
size: o.size ?? 16,
|
|
98
99
|
color: e?.color || "initials",
|
|
99
100
|
children: /* @__PURE__ */ n(
|
|
100
|
-
|
|
101
|
+
a,
|
|
101
102
|
{
|
|
102
103
|
fz: o.fz ?? 12,
|
|
103
104
|
fw: 500,
|
|
@@ -109,31 +110,31 @@ const w = (o) => o.type === "FOLDER" || o.isFolder || o.type === "PROJECT" && o?
|
|
|
109
110
|
justifyContent: "center",
|
|
110
111
|
lineHeight: "normal"
|
|
111
112
|
},
|
|
112
|
-
children:
|
|
113
|
+
children: E(e, void 0, !0, o.title)
|
|
113
114
|
}
|
|
114
115
|
)
|
|
115
116
|
}
|
|
116
117
|
);
|
|
117
118
|
}
|
|
118
119
|
return null;
|
|
119
|
-
},
|
|
120
|
+
}, S = ({
|
|
120
121
|
color: o,
|
|
121
122
|
size: r,
|
|
122
123
|
opened: e
|
|
123
124
|
}) => {
|
|
124
|
-
const
|
|
125
|
+
const t = I(), d = C({
|
|
125
126
|
color: o || "gray",
|
|
126
|
-
theme:
|
|
127
|
+
theme: t
|
|
127
128
|
});
|
|
128
129
|
return /* @__PURE__ */ n(
|
|
129
|
-
|
|
130
|
+
f,
|
|
130
131
|
{
|
|
131
|
-
color:
|
|
132
|
-
icon: e ?
|
|
132
|
+
color: d.value || void 0,
|
|
133
|
+
icon: e ? u : h,
|
|
133
134
|
size: r
|
|
134
135
|
}
|
|
135
136
|
);
|
|
136
137
|
};
|
|
137
138
|
export {
|
|
138
|
-
|
|
139
|
+
H as EntityIcon
|
|
139
140
|
};
|
package/dist/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showNotifications.d.ts","sourceRoot":"","sources":["../../src/helpers/showNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUlC,OAAO,
|
|
1
|
+
{"version":3,"file":"showNotifications.d.ts","sourceRoot":"","sources":["../../src/helpers/showNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUlC,OAAO,EAAE,gBAAgB,EAAiB,MAAM,wBAAwB,CAAC;AAKzE,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAetD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IACzE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AA4BF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,EACR,OAAO,SAAS,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,EAErD,SAAS,OAAO,EAChB,UAAS;IACP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,WAAW,CAAC,GAAG,WAAW,CAAC;IAC5D,QAAQ,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,WAAW,CAAC,GAAG,WAAW,CAAC;CACjD,iBA+BP,CAAC;AAkCF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAwBF,eAAO,MAAM,yBAAyB,GACpC,OAAO,wBAAwB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,SAMjD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,wBAAwB,SAKpE,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InformationCircleIcon as
|
|
3
|
-
import { HugeiconsIcon as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { isFunction as
|
|
7
|
-
import
|
|
8
|
-
let
|
|
9
|
-
const
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
1
|
+
import { jsxs as I, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { InformationCircleIcon as N, CheckmarkCircle02Icon as y, Alert01Icon as B, Alert02Icon as b } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as a } from "@hugeicons/react";
|
|
4
|
+
import { Box as u, Button as z } from "@mantine/core";
|
|
5
|
+
import { notifications as h } from "@mantine/notifications";
|
|
6
|
+
import { isFunction as f, isObject as d } from "lodash-es";
|
|
7
|
+
import l from "./showNotifications.module.css.js";
|
|
8
|
+
let M = 0;
|
|
9
|
+
const O = /* @__PURE__ */ e(a, { icon: y, size: 14, color: "white" }), k = /* @__PURE__ */ e(a, { icon: b, size: 14, color: "white" }), x = /* @__PURE__ */ e(a, { icon: B, size: 14, color: "white" }), w = /* @__PURE__ */ e(a, { icon: N, size: 14, color: "white" }), g = (o, t) => t?.length ? /* @__PURE__ */ I(u, { children: [
|
|
10
|
+
/* @__PURE__ */ e(u, { children: o }),
|
|
11
|
+
/* @__PURE__ */ e(u, { className: l.actions, children: t.map((i, s) => /* @__PURE__ */ e(
|
|
12
|
+
z,
|
|
13
13
|
{
|
|
14
14
|
size: "compact-sm",
|
|
15
15
|
variant: i.variant ?? "default",
|
|
@@ -17,150 +17,98 @@ const M = /* @__PURE__ */ t(d, { icon: b, size: 14, color: "white" }), O = /* @_
|
|
|
17
17
|
radius: "md",
|
|
18
18
|
children: i.label
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
s
|
|
21
21
|
)) })
|
|
22
|
-
] }) : o
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
title: n,
|
|
26
|
-
icon: i,
|
|
27
|
-
children: e
|
|
28
|
-
}) {
|
|
29
|
-
return /* @__PURE__ */ l("div", { className: c.root, children: [
|
|
30
|
-
/* @__PURE__ */ l("div", { className: n ? c.contentRow : c.contentRowCentered, children: [
|
|
31
|
-
/* @__PURE__ */ t("div", { className: c.icon, children: i }),
|
|
32
|
-
/* @__PURE__ */ l("div", { className: c.body, children: [
|
|
33
|
-
n && /* @__PURE__ */ t("div", { className: c.title, children: n }),
|
|
34
|
-
e && /* @__PURE__ */ t(
|
|
35
|
-
"div",
|
|
36
|
-
{
|
|
37
|
-
className: n ? c.description : c.descriptionWithoutTitle,
|
|
38
|
-
children: e
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
] })
|
|
42
|
-
] }),
|
|
43
|
-
/* @__PURE__ */ t("div", { className: c.closeButtonWrapper, children: /* @__PURE__ */ t(
|
|
44
|
-
k,
|
|
45
|
-
{
|
|
46
|
-
className: c.closeButton,
|
|
47
|
-
size: 24,
|
|
48
|
-
onClick: () => w.hide(o)
|
|
49
|
-
}
|
|
50
|
-
) })
|
|
51
|
-
] });
|
|
52
|
-
}
|
|
53
|
-
const D = (o, n = {}) => {
|
|
54
|
-
const { successMsg: i, errorMsg: e } = n;
|
|
55
|
-
return o.then((r) => {
|
|
22
|
+
] }) : o, R = (o, t = {}) => {
|
|
23
|
+
const { successMsg: i, errorMsg: s } = t;
|
|
24
|
+
return o.then((c) => {
|
|
56
25
|
if (i) {
|
|
57
|
-
const
|
|
58
|
-
id:
|
|
59
|
-
...
|
|
26
|
+
const n = f(i) ? i(c) : i, r = {
|
|
27
|
+
id: t.notifyId,
|
|
28
|
+
...d(n) ? n : { message: n }
|
|
60
29
|
};
|
|
61
|
-
j(
|
|
30
|
+
j(r);
|
|
62
31
|
}
|
|
63
|
-
return
|
|
64
|
-
}).catch((
|
|
65
|
-
if (
|
|
66
|
-
const
|
|
67
|
-
id:
|
|
68
|
-
...
|
|
32
|
+
return c;
|
|
33
|
+
}).catch((c) => {
|
|
34
|
+
if (s) {
|
|
35
|
+
const n = f(s) ? s(c) : s, r = {
|
|
36
|
+
id: t.notifyId,
|
|
37
|
+
...d(n) ? n : { message: n }
|
|
69
38
|
};
|
|
70
|
-
|
|
39
|
+
v(r);
|
|
71
40
|
}
|
|
72
|
-
return
|
|
41
|
+
return c;
|
|
73
42
|
});
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
43
|
+
}, p = {
|
|
44
|
+
root: l.root,
|
|
45
|
+
icon: l.icon,
|
|
46
|
+
title: l.title,
|
|
47
|
+
description: l.description
|
|
48
|
+
}, m = (o, t) => {
|
|
49
|
+
const { actions: i, message: s, onClose: c, ...n } = o, r = `ntf-${++M}`, C = n.id ?? r;
|
|
50
|
+
h.show({
|
|
51
|
+
color: t.color,
|
|
78
52
|
radius: 12,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
withCloseButton: !
|
|
84
|
-
withBorder: !
|
|
85
|
-
|
|
86
|
-
classNames: { root: c.mantineRoot },
|
|
87
|
-
styles: {
|
|
88
|
-
root: { background: "none", border: "none", boxShadow: "none" },
|
|
89
|
-
body: { margin: 0 }
|
|
90
|
-
},
|
|
53
|
+
p: "sm",
|
|
54
|
+
...n,
|
|
55
|
+
id: C,
|
|
56
|
+
icon: t.icon,
|
|
57
|
+
withCloseButton: !0,
|
|
58
|
+
withBorder: !0,
|
|
59
|
+
classNames: p,
|
|
91
60
|
onClose: () => {
|
|
92
|
-
|
|
61
|
+
c?.(o);
|
|
93
62
|
},
|
|
94
|
-
message:
|
|
95
|
-
C,
|
|
96
|
-
{
|
|
97
|
-
id: f,
|
|
98
|
-
title: e,
|
|
99
|
-
icon: n.icon,
|
|
100
|
-
children: v(r, i)
|
|
101
|
-
}
|
|
102
|
-
)
|
|
63
|
+
message: g(s, i)
|
|
103
64
|
});
|
|
104
|
-
},
|
|
65
|
+
}, $ = (o) => {
|
|
105
66
|
m(o, {
|
|
106
|
-
color: "
|
|
107
|
-
icon:
|
|
67
|
+
color: "blue",
|
|
68
|
+
icon: w
|
|
108
69
|
});
|
|
109
|
-
},
|
|
110
|
-
const { actions: i,
|
|
111
|
-
|
|
112
|
-
color:
|
|
70
|
+
}, S = (o, t) => {
|
|
71
|
+
const { actions: i, message: s, onClose: c, ...n } = o;
|
|
72
|
+
h.update({
|
|
73
|
+
color: t.color,
|
|
113
74
|
radius: 12,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
withCloseButton: !
|
|
118
|
-
withBorder: !
|
|
119
|
-
|
|
120
|
-
classNames: { root: c.mantineRoot },
|
|
121
|
-
styles: {
|
|
122
|
-
root: { background: "none", border: "none", boxShadow: "none" },
|
|
123
|
-
body: { margin: 0 }
|
|
124
|
-
},
|
|
75
|
+
p: "sm",
|
|
76
|
+
...n,
|
|
77
|
+
icon: t.icon,
|
|
78
|
+
withCloseButton: !0,
|
|
79
|
+
withBorder: !0,
|
|
80
|
+
classNames: p,
|
|
125
81
|
onClose: () => {
|
|
126
|
-
|
|
82
|
+
c?.(o);
|
|
127
83
|
},
|
|
128
|
-
message:
|
|
129
|
-
C,
|
|
130
|
-
{
|
|
131
|
-
id: o.id,
|
|
132
|
-
title: e,
|
|
133
|
-
icon: n.icon,
|
|
134
|
-
children: v(r, i)
|
|
135
|
-
}
|
|
136
|
-
)
|
|
84
|
+
message: g(s, i)
|
|
137
85
|
});
|
|
138
|
-
},
|
|
139
|
-
|
|
86
|
+
}, D = (o) => {
|
|
87
|
+
S(o, {
|
|
140
88
|
color: "var(--mantine-color-blue-outline)",
|
|
141
|
-
icon:
|
|
89
|
+
icon: w
|
|
142
90
|
});
|
|
143
91
|
}, j = (o) => {
|
|
144
92
|
m(o, {
|
|
145
|
-
color: "
|
|
146
|
-
icon:
|
|
93
|
+
color: "green",
|
|
94
|
+
icon: O
|
|
147
95
|
});
|
|
148
|
-
},
|
|
96
|
+
}, G = (o) => {
|
|
149
97
|
m(o, {
|
|
150
|
-
color: "
|
|
151
|
-
icon:
|
|
98
|
+
color: "yellow",
|
|
99
|
+
icon: x
|
|
152
100
|
});
|
|
153
|
-
},
|
|
101
|
+
}, v = (o) => {
|
|
154
102
|
m(o, {
|
|
155
|
-
color: "
|
|
156
|
-
icon:
|
|
103
|
+
color: "red",
|
|
104
|
+
icon: k
|
|
157
105
|
});
|
|
158
106
|
};
|
|
159
107
|
export {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
108
|
+
v as showErrorNotification,
|
|
109
|
+
$ as showMessageNotification,
|
|
110
|
+
R as showRequestNotifications,
|
|
163
111
|
j as showSuccessNotification,
|
|
164
|
-
|
|
165
|
-
|
|
112
|
+
G as showWarningNotification,
|
|
113
|
+
D as updateMessageNotification
|
|
166
114
|
};
|
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
const t = "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
body: _,
|
|
8
|
-
title: s,
|
|
9
|
-
description: i,
|
|
10
|
-
descriptionWithoutTitle: r,
|
|
11
|
-
closeButtonWrapper: m,
|
|
12
|
-
closeButton: l,
|
|
13
|
-
actions: d
|
|
1
|
+
const t = "_root_zr3bj_1", o = "_icon_zr3bj_15", c = "_title_zr3bj_49", s = "_description_zr3bj_65", i = "_actions_zr3bj_77", n = {
|
|
2
|
+
root: t,
|
|
3
|
+
icon: o,
|
|
4
|
+
title: c,
|
|
5
|
+
description: s,
|
|
6
|
+
actions: i
|
|
14
7
|
};
|
|
15
8
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
p as default,
|
|
23
|
-
i as description,
|
|
24
|
-
r as descriptionWithoutTitle,
|
|
25
|
-
c as icon,
|
|
26
|
-
t as mantineRoot,
|
|
27
|
-
o as root,
|
|
28
|
-
s as title
|
|
9
|
+
i as actions,
|
|
10
|
+
n as default,
|
|
11
|
+
s as description,
|
|
12
|
+
o as icon,
|
|
13
|
+
t as root,
|
|
14
|
+
c as title
|
|
29
15
|
};
|