@alphakits/ui 2.4.4 → 2.4.5
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/calendar/component.js +32 -31
- package/dist/confirm-popup/component.js +71 -52
- package/dist/confirm-popup/index.css +1 -1
- package/dist/confirm-popup/index.module.css.js +14 -8
- package/dist/form/templates/rest-form/form.d.ts +1 -1
- package/dist/form/templates/rest-form/form.js +65 -66
- package/dist/form/templates/rest-form/index.d.ts +1 -0
- package/dist/index.js +45 -44
- package/dist/modal/components/modals/modal.js +19 -12
- package/dist/modal/hooks/use-modal.js +11 -11
- package/dist/modal/types.d.ts +2 -1
- package/dist/select/components/base-select/component.js +73 -73
- package/dist/select/utils.js +23 -23
- package/dist/toast-plate/component.js +47 -46
- package/dist/toast-plate/index.css +1 -1
- package/dist/toast-plate/index.module.css.js +26 -24
- package/dist/utils/index.js +26 -25
- package/dist/utils/show-toast/index.d.ts +1 -0
- package/dist/utils/show-toast/index.js +17 -9
- package/package.json +1 -1
package/dist/utils/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { add as
|
|
2
|
-
import { debounce as
|
|
3
|
-
import { AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as
|
|
1
|
+
import { add as t, addDays as r, addMonths as s, addYears as o, eachDayOfInterval as f, eachMonthOfInterval as n, eachYearOfInterval as i, endOfDay as O, endOfISOWeek as m, endOfWeek as h, endOfYear as d, format as p, isAfter as S, isBefore as c, isEqual as y, isLastDayOfMonth as M, isSameDay as l, isSameMonth as u, isSameYear as D, isThisMonth as x, isThisYear as I, isToday as A, isWithinInterval as T, lastDayOfMonth as Y, max as k, min as W, parse as b, parseISO as R, startOfDay as v, startOfISOWeek as w, startOfMonth as _, startOfWeek as E, startOfYear as N, subDays as P, subMonths as g, subWeeks as q, subYears as z, weekDaysShort as B } from "./date/index.js";
|
|
2
|
+
import { debounce as H } from "./debounce.js";
|
|
3
|
+
import { AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as L, THINSP as U, formatAmount as j } from "./format-amount/util.js";
|
|
4
4
|
import { formatDate as G, locales as K } from "./format-date/index.js";
|
|
5
5
|
import { safeStringify as V } from "./safe-stringify.js";
|
|
6
|
-
import {
|
|
7
|
-
import { splitAmount as
|
|
8
|
-
import { capitalize as
|
|
6
|
+
import { showCompactSuccess as Z, showError as $, showSuccess as ee } from "./show-toast/index.js";
|
|
7
|
+
import { splitAmount as te } from "./split-amount/util.js";
|
|
8
|
+
import { capitalize as se } from "./string.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
L as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,
|
|
11
|
+
U as THINSP,
|
|
12
|
+
t as add,
|
|
13
|
+
r as addDays,
|
|
14
14
|
s as addMonths,
|
|
15
15
|
o as addYears,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
se as capitalize,
|
|
17
|
+
H as debounce,
|
|
18
18
|
f as eachDayOfInterval,
|
|
19
19
|
n as eachMonthOfInterval,
|
|
20
20
|
i as eachYearOfInterval,
|
|
@@ -23,17 +23,17 @@ export {
|
|
|
23
23
|
h as endOfWeek,
|
|
24
24
|
d as endOfYear,
|
|
25
25
|
p as format,
|
|
26
|
-
|
|
26
|
+
j as formatAmount,
|
|
27
27
|
G as formatDate,
|
|
28
28
|
S as isAfter,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
c as isBefore,
|
|
30
|
+
y as isEqual,
|
|
31
|
+
M as isLastDayOfMonth,
|
|
32
|
+
l as isSameDay,
|
|
33
33
|
u as isSameMonth,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
D as isSameYear,
|
|
35
|
+
x as isThisMonth,
|
|
36
|
+
I as isThisYear,
|
|
37
37
|
A as isToday,
|
|
38
38
|
T as isWithinInterval,
|
|
39
39
|
Y as lastDayOfMonth,
|
|
@@ -43,12 +43,13 @@ export {
|
|
|
43
43
|
b as parse,
|
|
44
44
|
R as parseISO,
|
|
45
45
|
V as safeStringify,
|
|
46
|
-
Z as
|
|
47
|
-
$ as
|
|
48
|
-
|
|
46
|
+
Z as showCompactSuccess,
|
|
47
|
+
$ as showError,
|
|
48
|
+
ee as showSuccess,
|
|
49
|
+
te as splitAmount,
|
|
49
50
|
v as startOfDay,
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
w as startOfISOWeek,
|
|
52
|
+
_ as startOfMonth,
|
|
52
53
|
E as startOfWeek,
|
|
53
54
|
N as startOfYear,
|
|
54
55
|
P as subDays,
|
|
@@ -1,20 +1,28 @@
|
|
|
1
|
-
import { ToastNotifier as
|
|
2
|
-
const t = (o,
|
|
3
|
-
|
|
1
|
+
import { ToastNotifier as r } from "../../toast-notifier/component.js";
|
|
2
|
+
const t = (o, s = "Success", e = 30) => {
|
|
3
|
+
r({
|
|
4
4
|
view: "positive",
|
|
5
|
-
title:
|
|
5
|
+
title: s,
|
|
6
6
|
text: o,
|
|
7
|
+
offset: e
|
|
8
|
+
});
|
|
9
|
+
}, i = (o, s = 30) => {
|
|
10
|
+
r({
|
|
11
|
+
view: "black",
|
|
12
|
+
text: o,
|
|
13
|
+
hasCloser: !0,
|
|
7
14
|
offset: s
|
|
8
15
|
});
|
|
9
|
-
},
|
|
10
|
-
|
|
16
|
+
}, w = (o, s = "Error", e = 30) => {
|
|
17
|
+
r({
|
|
11
18
|
view: "negative",
|
|
12
|
-
title:
|
|
19
|
+
title: s,
|
|
13
20
|
text: o,
|
|
14
|
-
offset:
|
|
21
|
+
offset: e
|
|
15
22
|
});
|
|
16
23
|
};
|
|
17
24
|
export {
|
|
18
|
-
|
|
25
|
+
i as showCompactSuccess,
|
|
26
|
+
w as showError,
|
|
19
27
|
t as showSuccess
|
|
20
28
|
};
|