aristid-ds 14.0.0-e1a6d31 → 14.0.0-e56c945
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/CHANGELOG.md +2 -0
- package/dist/Kit/App/index.js +14 -14
- package/dist/Kit/Feedback/SnackBar/index.js +5 -5
- package/dist/Kit/Navigation/SidePanel/index.d.ts +2 -0
- package/dist/Kit/Navigation/SidePanel/index.js +33 -27
- package/dist/Kit/index.d.ts +2 -0
- package/dist/Kit/index.js +82 -80
- package/dist/chunks/{SnackBarProvider.hc5vyNRJ.js → SnackBarProvider.wBpPNyLk.js} +6 -6
- package/dist/index.es.js +94 -92
- package/dist/index.umd.js +4 -4
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -69,6 +69,8 @@
|
|
|
69
69
|
- Fix double toggle issue when clicking the trigger after closing via blur (@philippechevieux)
|
|
70
70
|
- **Upload:**
|
|
71
71
|
- Fix upload dragger height unexpectedly growing in some cases (@evoiron)
|
|
72
|
+
- **SidePanel**:
|
|
73
|
+
- Export `KitSidePanelHeader` and `KitSidePanelContent` components from the main package entry point (@philippechevieux)
|
|
72
74
|
|
|
73
75
|
### 📚 Documentation
|
|
74
76
|
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -2,20 +2,20 @@ import "../../assets/index29.css";
|
|
|
2
2
|
import { jsx as n, jsxs as f, Fragment as h } from "react/jsx-runtime";
|
|
3
3
|
import { useState as u, useLayoutEffect as L, useRef as S, useEffect as P } from "react";
|
|
4
4
|
import { ConfigProvider as C } from "antd";
|
|
5
|
-
import {
|
|
5
|
+
import { K as b } from "../../chunks/SnackBarProvider.wBpPNyLk.js";
|
|
6
6
|
import { toCssVariables as g, uuid as y } from "../../utils/functions/index.js";
|
|
7
7
|
import a from "lodash/merge";
|
|
8
8
|
import { Style as m } from "react-style-tag";
|
|
9
9
|
import { K as E } from "../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
10
10
|
import { KitAristidThemeGeneral as l } from "../../theme/aristid/general/index.js";
|
|
11
|
-
import { antdThemeConfig as
|
|
11
|
+
import { antdThemeConfig as T } from "../../theme/utils/tokens-mapper/index.js";
|
|
12
12
|
import { frFR as d } from "../../translation/fr-FR/index.js";
|
|
13
|
-
import { enUS as
|
|
14
|
-
import { K as
|
|
15
|
-
import { mapKitLocaleToAntdLocale as
|
|
16
|
-
import { d as
|
|
13
|
+
import { enUS as $ } from "../../translation/en-US/index.js";
|
|
14
|
+
import { K as j, u as k } from "../../chunks/useKitLocale.96CdK3og.js";
|
|
15
|
+
import { mapKitLocaleToAntdLocale as x } from "../../translation/utils/index.js";
|
|
16
|
+
import { d as A } from "../../chunks/notification-provider.9msrEKBe.js";
|
|
17
17
|
import { KitEmpty as p } from "../DataDisplay/Empty/index.js";
|
|
18
|
-
const
|
|
18
|
+
const F = "aristid-ds-global", I = (t, e) => {
|
|
19
19
|
const o = g(t);
|
|
20
20
|
return `
|
|
21
21
|
.${e} {
|
|
@@ -27,11 +27,11 @@ const A = "aristid-ds-global", F = (t, e) => {
|
|
|
27
27
|
return L(() => {
|
|
28
28
|
const s = g(l, "--general");
|
|
29
29
|
i(s);
|
|
30
|
-
}, []), n(E.Provider, { value: { theme: v, appId: c, spacing: K }, children: r !== null && f(h, { children: [n(m, { id:
|
|
30
|
+
}, []), n(E.Provider, { value: { theme: v, appId: c, spacing: K }, children: r !== null && f(h, { children: [n(m, { id: F, hasSourceMap: !1, children: `
|
|
31
31
|
:root {
|
|
32
32
|
${Object.keys(r).map((s) => `${s}: ${r[s]}`).join(";")}
|
|
33
33
|
}
|
|
34
|
-
` }), e && n(m, { hasSourceMap: !1, children:
|
|
34
|
+
` }), e && n(m, { hasSourceMap: !1, children: I(a({ general: { utilities: l.utilities } }, e), c) }), t] }) });
|
|
35
35
|
}, _ = (t, e) => {
|
|
36
36
|
var o;
|
|
37
37
|
const r = S(t || "ds-" + y().substring(0, 8)), i = a(l.spacing, (o = e == null ? void 0 : e.general) === null || o === void 0 ? void 0 : o.spacing);
|
|
@@ -42,7 +42,7 @@ const A = "aristid-ds-global", F = (t, e) => {
|
|
|
42
42
|
};
|
|
43
43
|
}, M = ({ children: t }) => {
|
|
44
44
|
const e = N();
|
|
45
|
-
return n(
|
|
45
|
+
return n(j.Provider, { value: e, children: t });
|
|
46
46
|
}, N = () => {
|
|
47
47
|
const [t, e] = u(d);
|
|
48
48
|
return { locale: t, setKitLocale: (r) => {
|
|
@@ -50,18 +50,18 @@ const A = "aristid-ds-global", F = (t, e) => {
|
|
|
50
50
|
const i = a(d, r);
|
|
51
51
|
e(i);
|
|
52
52
|
} else {
|
|
53
|
-
const i = a(
|
|
53
|
+
const i = a($, r);
|
|
54
54
|
e(i);
|
|
55
55
|
}
|
|
56
56
|
} };
|
|
57
57
|
}, te = ({ children: t, locale: e, customTheme: o, id: r }) => n(R, { customTheme: o, id: r, children: n(M, { children: n(O, { locale: e, children: t }) }) }), O = ({ children: t, locale: e }) => {
|
|
58
|
-
const { locale: o, setKitLocale: r } =
|
|
58
|
+
const { locale: o, setKitLocale: r } = k();
|
|
59
59
|
return P(() => {
|
|
60
60
|
e !== void 0 && r(e);
|
|
61
|
-
}, [e, r]), n(C, { theme:
|
|
61
|
+
}, [e, r]), n(C, { theme: T, locale: x(e), renderEmpty: () => {
|
|
62
62
|
var i;
|
|
63
63
|
return n(p, { className: "default-render", image: p.ASSET_LIST, description: (i = o.Empty) === null || i === void 0 ? void 0 : i.noData });
|
|
64
|
-
}, children: f(
|
|
64
|
+
}, children: f(A, { children: [n(b, {}), t] }) });
|
|
65
65
|
};
|
|
66
66
|
export {
|
|
67
67
|
te as KitApp
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../assets/index33.css";
|
|
2
|
-
import {
|
|
2
|
+
import { K as _ } from "../../../chunks/SnackBarProvider.wBpPNyLk.js";
|
|
3
3
|
import { jsxs as m, jsx as n, Fragment as x } from "react/jsx-runtime";
|
|
4
4
|
import { toast as v } from "react-hot-toast";
|
|
5
5
|
import { u as A } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
@@ -31,9 +31,9 @@ const j = {
|
|
|
31
31
|
id: s ?? void 0
|
|
32
32
|
})), c = (i, a) => {
|
|
33
33
|
v.dismiss(a, i ?? "default");
|
|
34
|
-
},
|
|
34
|
+
}, W = R, Y = c, Z = _;
|
|
35
35
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
Z as KitSnackBarProvider,
|
|
37
|
+
Y as closeKitSnackBar,
|
|
38
|
+
W as openKitSnackBar
|
|
39
39
|
};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const KitSidePanel: import("react").ForwardRefExoticComponent<import("./types").IKitSidePanel & import("react").RefAttributes<import("./types").KitSidePanelRef>>;
|
|
3
|
+
export declare const KitSidePanelContent: import("react").FunctionComponent<import("./types").KitSidePanelContent>;
|
|
4
|
+
export declare const KitSidePanelHeader: import("react").FunctionComponent<import("./types").KitSidePanelHeader>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useEffect as I, forwardRef as
|
|
1
|
+
import { jsx as l, jsxs as m, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as I, forwardRef as B, useState as T, useRef as W, useImperativeHandle as q } from "react";
|
|
3
3
|
import { u as w } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
4
|
-
import
|
|
5
|
-
import { s as
|
|
4
|
+
import K from "classnames";
|
|
5
|
+
import { s as o } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
6
6
|
import { KitButton as N } from "../../General/Button/index.js";
|
|
7
7
|
import { FontAwesomeIcon as x } from "@fortawesome/react-fontawesome";
|
|
8
|
-
import { faChevronLeft as
|
|
9
|
-
import { KitIdCard as
|
|
10
|
-
import { KitSpace as
|
|
11
|
-
const
|
|
8
|
+
import { faChevronLeft as z, faClose as G } from "@fortawesome/free-solid-svg-icons";
|
|
9
|
+
import { KitIdCard as J } from "../../DataDisplay/IdCard/index.js";
|
|
10
|
+
import { KitSpace as M } from "../../Layout/Space/index.js";
|
|
11
|
+
const Q = ({ key: t, onKeyPressed: e, active: i = !1 }) => {
|
|
12
12
|
I(() => {
|
|
13
13
|
if (!i)
|
|
14
14
|
return;
|
|
@@ -19,7 +19,7 @@ const M = ({ key: t, onKeyPressed: e, active: i = !1 }) => {
|
|
|
19
19
|
document.removeEventListener("keydown", a);
|
|
20
20
|
};
|
|
21
21
|
}, [t, e, i]);
|
|
22
|
-
},
|
|
22
|
+
}, U = ({ ref: t, onClickOutside: e, active: i = !1 }) => {
|
|
23
23
|
I(() => {
|
|
24
24
|
if (!i)
|
|
25
25
|
return;
|
|
@@ -30,18 +30,18 @@ const M = ({ key: t, onKeyPressed: e, active: i = !1 }) => {
|
|
|
30
30
|
document.removeEventListener("click", a);
|
|
31
31
|
};
|
|
32
32
|
}, [i, e, t]);
|
|
33
|
-
},
|
|
34
|
-
var
|
|
35
|
-
const { appId: d } = w(), s =
|
|
33
|
+
}, E = ({ showSeparator: t, leftActionProps: e, headerExtra: i, headerExtraButtons: a, idCardProps: n, closable: u, onClose: f }) => {
|
|
34
|
+
var r;
|
|
35
|
+
const { appId: d } = w(), s = K(d, o.header, {
|
|
36
36
|
"show-separator": t
|
|
37
37
|
}), c = {
|
|
38
38
|
...e,
|
|
39
|
-
icon: (
|
|
39
|
+
icon: (r = e == null ? void 0 : e.icon) !== null && r !== void 0 ? r : l(x, { icon: z })
|
|
40
40
|
};
|
|
41
|
-
return m("div", { className: s, children: [e &&
|
|
42
|
-
},
|
|
43
|
-
const { appId:
|
|
44
|
-
|
|
41
|
+
return m("div", { className: s, children: [e && l(N, { type: "secondary", ...c, className: `${o.back} ${e.className}` }), m("div", { className: o.card, children: [i, n && l(J, { ...n })] }), m(M, { size: "xxs", align: "start", children: [a, u && l(N, { className: o.close, onClick: f, icon: l(x, { icon: G }) })] })] });
|
|
42
|
+
}, H = ({ children: t }) => l("div", { className: o.content, children: t }), V = B(({ className: t, floating: e, closable: i, leftActionProps: a, idCardProps: n, headerExtra: u, headerExtraButtons: f, onClose: r, children: d, onOpenChanged: s, size: c = "s", initialOpen: L = !1, closeOnEsc: $ = !1, closeOnOutsideClick: h = !1, showSeparator: R = !1, useChildrenOnly: b = !1, ...j }, D) => {
|
|
43
|
+
const { appId: k } = w(), [S, v] = T(L), y = W(null);
|
|
44
|
+
q(D, () => ({
|
|
45
45
|
open: () => {
|
|
46
46
|
v(!0), s == null || s(!0);
|
|
47
47
|
},
|
|
@@ -50,28 +50,34 @@ const M = ({ key: t, onKeyPressed: e, active: i = !1 }) => {
|
|
|
50
50
|
}
|
|
51
51
|
}));
|
|
52
52
|
const p = () => {
|
|
53
|
-
v(!1), s == null || s(!1),
|
|
53
|
+
v(!1), s == null || s(!1), r == null || r();
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
const
|
|
55
|
+
Q({ key: "Escape", onKeyPressed: p, active: $ }), U({ ref: y, onClickOutside: p, active: h });
|
|
56
|
+
const F = K(k, t, o["kit-side-panel-wrapper"], {
|
|
57
57
|
floating: e,
|
|
58
58
|
["size-" + c]: c,
|
|
59
59
|
closed: !S
|
|
60
|
-
}),
|
|
60
|
+
}), P = K(k, o["kit-side-panel"], {
|
|
61
61
|
["size-" + c]: c,
|
|
62
62
|
closed: !S
|
|
63
63
|
});
|
|
64
|
-
return
|
|
65
|
-
showSeparator:
|
|
64
|
+
return l("div", { className: F, children: l("section", { ref: y, className: P, "aria-label": "side-panel", ...j, children: b ? d : m(_, { children: [(a || n || i) && l(E, {
|
|
65
|
+
showSeparator: R,
|
|
66
66
|
leftActionProps: a,
|
|
67
67
|
headerExtra: u,
|
|
68
68
|
headerExtraButtons: f,
|
|
69
69
|
idCardProps: n,
|
|
70
70
|
closable: i,
|
|
71
71
|
onClose: p
|
|
72
|
-
}),
|
|
73
|
-
}),
|
|
74
|
-
|
|
72
|
+
}), l(H, { children: d })] }) }) });
|
|
73
|
+
}), X = V;
|
|
74
|
+
X.displayName = "KitSidePanel";
|
|
75
|
+
const Y = H;
|
|
76
|
+
Y.displayName = "KitSidePanelContent";
|
|
77
|
+
const Z = E;
|
|
78
|
+
Z.displayName = "KitSidePanelHeader";
|
|
75
79
|
export {
|
|
76
|
-
|
|
80
|
+
X as KitSidePanel,
|
|
81
|
+
Y as KitSidePanelContent,
|
|
82
|
+
Z as KitSidePanelHeader
|
|
77
83
|
};
|
package/dist/Kit/index.d.ts
CHANGED
|
@@ -54,4 +54,6 @@ export { KitSteps } from './Navigation/Steps';
|
|
|
54
54
|
export { KitPagination } from './Navigation/Pagination';
|
|
55
55
|
export { KitSideMenu } from './Navigation/SideMenu';
|
|
56
56
|
export { KitSidePanel } from './Navigation/SidePanel';
|
|
57
|
+
export { KitSidePanelContent } from './Navigation/SidePanel';
|
|
58
|
+
export { KitSidePanelHeader } from './Navigation/SidePanel';
|
|
57
59
|
export * from './Ant';
|
package/dist/Kit/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { KitError as l } from "./DataDisplay/Error/index.js";
|
|
|
8
8
|
import { KitIdCard as c } from "./DataDisplay/IdCard/index.js";
|
|
9
9
|
import { KitImage as S } from "./DataDisplay/Image/index.js";
|
|
10
10
|
import { KitItemList as C } from "./DataDisplay/ItemList/index.js";
|
|
11
|
-
import { KitTable as
|
|
11
|
+
import { KitTable as g } from "./DataDisplay/Table/index.js";
|
|
12
12
|
import { KitTag as B } from "./DataDisplay/Tag/index.js";
|
|
13
13
|
import { KitTabs as D } from "./DataDisplay/Tabs/index.js";
|
|
14
14
|
import { KitTree as R } from "./DataDisplay/Tree/index.js";
|
|
@@ -17,7 +17,7 @@ import { KitTour as w } from "./DataDisplay/Tour/index.js";
|
|
|
17
17
|
import { KitRedirectCard as F } from "./DataDisplay/RedirectCard/index.js";
|
|
18
18
|
import { KitCheckbox as N } from "./DataEntry/Checkbox/index.js";
|
|
19
19
|
import { KitInput as G } from "./DataEntry/Input/index.js";
|
|
20
|
-
import { KitInputNumber as
|
|
20
|
+
import { KitInputNumber as U } from "./DataEntry/InputNumber/index.js";
|
|
21
21
|
import { K as Q } from "../chunks/InputWrapper.hIFFr5AB.js";
|
|
22
22
|
import { KitRadio as q } from "./DataEntry/Radio/index.js";
|
|
23
23
|
import { KitRate as J } from "./DataEntry/Rate/index.js";
|
|
@@ -35,15 +35,15 @@ import { KitAlert as lt } from "./Feedback/Alert/index.js";
|
|
|
35
35
|
import { KitModal as ct } from "./Feedback/Modal/index.js";
|
|
36
36
|
import { KitProgress as St } from "./Feedback/Progress/index.js";
|
|
37
37
|
import { KitLoader as Ct } from "./Feedback/Loader/index.js";
|
|
38
|
-
import { KitSnackBarProvider as
|
|
38
|
+
import { KitSnackBarProvider as gt, closeKitSnackBar as kt, openKitSnackBar as Bt } from "./Feedback/SnackBar/index.js";
|
|
39
39
|
import { K as Dt, u as It } from "../chunks/KitNotification.DzpYf5_j.js";
|
|
40
40
|
import { KitSkeleton as ht } from "./Feedback/Skeleton/index.js";
|
|
41
41
|
import { KitButton as vt } from "./General/Button/index.js";
|
|
42
42
|
import { KitTypography as Mt } from "./General/Typography/index.js";
|
|
43
43
|
import { KitIcon as Lt } from "./General/Icon/index.js";
|
|
44
44
|
import { KitDivider as Et } from "./Layout/Divider/index.js";
|
|
45
|
-
import { KitSpace as
|
|
46
|
-
import { KitSection as
|
|
45
|
+
import { KitSpace as Ht } from "./Layout/Space/index.js";
|
|
46
|
+
import { KitSection as Wt } from "./Layout/Section/index.js";
|
|
47
47
|
import { KitGrid as jt } from "./Layout/Grid/index.js";
|
|
48
48
|
import { KitPageLayout as zt } from "./Layout/PageLayout/index.js";
|
|
49
49
|
import { KitBreadcrumb as Ot } from "./Navigation/Breadcrumb/index.js";
|
|
@@ -53,77 +53,77 @@ import { KitHeader as $t } from "./Navigation/Header/index.js";
|
|
|
53
53
|
import { KitSteps as rr } from "./Navigation/Steps/index.js";
|
|
54
54
|
import { KitPagination as er } from "./Navigation/Pagination/index.js";
|
|
55
55
|
import { KitSideMenu as ir } from "./Navigation/SideMenu/index.js";
|
|
56
|
-
import { KitSidePanel as pr } from "./Navigation/SidePanel/index.js";
|
|
57
|
-
import { Affix as
|
|
56
|
+
import { KitSidePanel as pr, KitSidePanelContent as sr, KitSidePanelHeader as mr } from "./Navigation/SidePanel/index.js";
|
|
57
|
+
import { Affix as fr, Alert as xr, Anchor as Kr, App as lr, AutoComplete as dr, Avatar as cr, BackTop as ur, Badge as Sr, Breadcrumb as Tr, Button as Cr, Calendar as Pr, Card as gr, Carousel as kr, Cascader as Br, Checkbox as br, Col as Dr, Collapse as Ir, ColorPicker as Rr, ConfigProvider as hr, DatePicker as yr, Descriptions as vr, Divider as wr, Drawer as Mr, Dropdown as Fr, Empty as Lr, Flex as Nr, FloatButton as Er, Form as Gr, Grid as Hr, Image as Ur, Input as Wr, InputNumber as Qr, Layout as jr, List as qr, Mentions as zr, Menu as Jr, Modal as Or, Pagination as Vr, Popconfirm as Xr, Popover as Yr, Progress as Zr, QRCode as _r, Radio as $r, Rate as to, Result as ro, Row as oo, Segmented as eo, Select as ao, Skeleton as io, Slider as no, Space as po, Spin as so, Statistic as mo, Steps as Ao, Switch as fo, Table as xo, Tabs as Ko, Tag as lo, TimePicker as co, Timeline as uo, Tooltip as So, Tour as To, Transfer as Co, Tree as Po, TreeSelect as go, Typography as ko, Upload as Bo, Watermark as bo } from "antd";
|
|
58
58
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
59
|
+
fr as AntAffix,
|
|
60
|
+
xr as AntAlert,
|
|
61
|
+
Kr as AntAnchor,
|
|
62
|
+
lr as AntApp,
|
|
63
|
+
dr as AntAutoComplete,
|
|
64
|
+
cr as AntAvatar,
|
|
65
|
+
ur as AntBackTop,
|
|
66
|
+
Sr as AntBadge,
|
|
67
|
+
Tr as AntBreadcrumb,
|
|
68
|
+
Cr as AntButton,
|
|
69
|
+
Pr as AntCalendar,
|
|
70
|
+
gr as AntCard,
|
|
71
|
+
kr as AntCarousel,
|
|
72
|
+
Br as AntCascader,
|
|
73
|
+
br as AntCheckbox,
|
|
74
|
+
Dr as AntCol,
|
|
75
|
+
Ir as AntCollapse,
|
|
76
|
+
Rr as AntColorPicker,
|
|
77
|
+
hr as AntConfigProvider,
|
|
78
|
+
yr as AntDatePicker,
|
|
79
|
+
vr as AntDescriptions,
|
|
80
|
+
wr as AntDivider,
|
|
81
|
+
Mr as AntDrawer,
|
|
82
|
+
Fr as AntDropdown,
|
|
83
|
+
Lr as AntEmpty,
|
|
84
|
+
Nr as AntFlex,
|
|
85
|
+
Er as AntFloatButton,
|
|
86
|
+
Gr as AntForm,
|
|
87
|
+
Hr as AntGrid,
|
|
88
|
+
Ur as AntImage,
|
|
89
|
+
Wr as AntInput,
|
|
90
|
+
Qr as AntInputNumber,
|
|
91
|
+
jr as AntLayout,
|
|
92
|
+
qr as AntList,
|
|
93
|
+
zr as AntMentions,
|
|
94
|
+
Jr as AntMenu,
|
|
95
|
+
Or as AntModal,
|
|
96
|
+
Vr as AntPagination,
|
|
97
|
+
Xr as AntPopconfirm,
|
|
98
|
+
Yr as AntPopover,
|
|
99
|
+
Zr as AntProgress,
|
|
100
|
+
_r as AntQRCode,
|
|
101
|
+
$r as AntRadio,
|
|
102
|
+
to as AntRate,
|
|
103
|
+
ro as AntResult,
|
|
104
|
+
oo as AntRow,
|
|
105
|
+
eo as AntSegmented,
|
|
106
|
+
ao as AntSelect,
|
|
107
|
+
io as AntSkeleton,
|
|
108
|
+
no as AntSlider,
|
|
109
|
+
po as AntSpace,
|
|
110
|
+
so as AntSpin,
|
|
111
|
+
mo as AntStatistic,
|
|
112
|
+
Ao as AntSteps,
|
|
113
|
+
fo as AntSwitch,
|
|
114
|
+
xo as AntTable,
|
|
115
|
+
Ko as AntTabs,
|
|
116
|
+
lo as AntTag,
|
|
117
|
+
co as AntTimePicker,
|
|
118
|
+
uo as AntTimeline,
|
|
119
|
+
So as AntTooltip,
|
|
120
|
+
To as AntTour,
|
|
121
|
+
Co as AntTransfer,
|
|
122
|
+
Po as AntTree,
|
|
123
|
+
go as AntTreeSelect,
|
|
124
|
+
ko as AntTypography,
|
|
125
|
+
Bo as AntUpload,
|
|
126
|
+
bo as AntWatermark,
|
|
127
127
|
lt as KitAlert,
|
|
128
128
|
o as KitApp,
|
|
129
129
|
ot as KitAutoComplete,
|
|
@@ -146,7 +146,7 @@ export {
|
|
|
146
146
|
c as KitIdCard,
|
|
147
147
|
S as KitImage,
|
|
148
148
|
G as KitInput,
|
|
149
|
-
|
|
149
|
+
U as KitInputNumber,
|
|
150
150
|
Q as KitInputWrapper,
|
|
151
151
|
s as KitItemCard,
|
|
152
152
|
C as KitItemList,
|
|
@@ -161,17 +161,19 @@ export {
|
|
|
161
161
|
J as KitRate,
|
|
162
162
|
F as KitRedirectCard,
|
|
163
163
|
V as KitRichText,
|
|
164
|
-
|
|
164
|
+
Wt as KitSection,
|
|
165
165
|
Y as KitSelect,
|
|
166
166
|
ir as KitSideMenu,
|
|
167
167
|
pr as KitSidePanel,
|
|
168
|
+
sr as KitSidePanelContent,
|
|
169
|
+
mr as KitSidePanelHeader,
|
|
168
170
|
ht as KitSkeleton,
|
|
169
171
|
nt as KitSlider,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
gt as KitSnackBarProvider,
|
|
173
|
+
Ht as KitSpace,
|
|
172
174
|
rr as KitSteps,
|
|
173
175
|
_ as KitSwitch,
|
|
174
|
-
|
|
176
|
+
g as KitTable,
|
|
175
177
|
D as KitTabs,
|
|
176
178
|
B as KitTag,
|
|
177
179
|
y as KitTooltip,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as s, useEffect as n } from "react";
|
|
3
3
|
import { Toaster as l } from "react-hot-toast";
|
|
4
4
|
const c = {
|
|
5
5
|
background: "initial",
|
|
@@ -11,13 +11,13 @@ const c = {
|
|
|
11
11
|
alignItems: "initial",
|
|
12
12
|
borderRadius: "initial",
|
|
13
13
|
maxWidth: "800px"
|
|
14
|
-
}, d = "aristid-ds-toaster",
|
|
15
|
-
const [o, e] =
|
|
16
|
-
return
|
|
14
|
+
}, d = "aristid-ds-toaster", S = ({ id: t }) => {
|
|
15
|
+
const [o, e] = s(!0), i = t ?? d;
|
|
16
|
+
return n(() => {
|
|
17
17
|
const a = document.querySelector(`.${i}`);
|
|
18
18
|
e(!!a);
|
|
19
19
|
}, [i]), o ? null : r(l, { containerClassName: i, toasterId: t, position: "bottom-center", toastOptions: { style: c }, containerStyle: t ? { position: "absolute" } : {} });
|
|
20
|
-
}
|
|
20
|
+
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
S as K
|
|
23
23
|
};
|