aristid-ds 14.0.0-d129b0e → 14.0.0-e6e2929
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 +9 -0
- package/dist/Kit/App/index.js +14 -14
- package/dist/Kit/DataDisplay/Avatar/index.js +1 -1
- package/dist/Kit/DataDisplay/Avatar/types.d.ts +1 -0
- package/dist/Kit/DataDisplay/IdCard/index.js +56 -24
- package/dist/Kit/DataDisplay/IdCard/types.d.ts +1 -1
- package/dist/Kit/DataDisplay/Tag/index.js +10 -10
- package/dist/Kit/DataEntry/AutoComplete/index.js +1 -1
- package/dist/Kit/DataEntry/ColorPicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/index.js +1 -1
- package/dist/Kit/Feedback/SnackBar/index.js +15 -15
- package/dist/Kit/Navigation/DropDown/index.js +1 -1
- package/dist/Kit/Navigation/Header/index.js +8 -8
- package/dist/Kit/Navigation/SidePanel/index.js +1 -1
- package/dist/Kit/Navigation/SidePanel/types.d.ts +1 -1
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/useGetPopupContainer.css +1 -1
- package/dist/chunks/Avatar.BvI60jet.js +47 -0
- package/dist/chunks/{SnackBarProvider.nqDzpFo3.js → SnackBarProvider.T-xLQpTN.js} +10 -10
- package/dist/chunks/useGetPopupContainer.efPkxYe1.js +18 -0
- package/dist/index.umd.js +2 -2
- package/dist/theme/types/components/Navigation/SidePanel/index.d.ts +6 -1
- package/package.json +1 -1
- package/dist/chunks/Avatar.N2w2jq_C.js +0 -30
- package/dist/chunks/useGetPopupContainer.1ha3p9Qd.js +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
- **AutoComplete**:
|
|
7
7
|
- Add `size` property to enable `small`, `middle` and `large` sizes (@fatb38)
|
|
8
8
|
|
|
9
|
+
- **Avatar**:
|
|
10
|
+
- Add new `size` options : `xs`, `s`, `m`, `l`, `xl` (@fatb38)
|
|
11
|
+
|
|
9
12
|
- **ColorPicker**:
|
|
10
13
|
- Add `size` property to enable `small`, `middle` and `large` sizes (@fatb38)
|
|
11
14
|
|
|
@@ -23,6 +26,7 @@
|
|
|
23
26
|
|
|
24
27
|
- **SidePanel**:
|
|
25
28
|
- Add opening and closing animations (@philippechevieux)
|
|
29
|
+
- Add `l` size (@7Remy)
|
|
26
30
|
|
|
27
31
|
- **SidePanel:**
|
|
28
32
|
- Add `useChildrenOnly` property to display the side panel as a container for other components or not. Also export two new components `KitSidePanelHeader` and `KitSidePanelContent` for layout purpose (@philippechevieux)
|
|
@@ -37,6 +41,11 @@
|
|
|
37
41
|
- **All components with a DropDown:**
|
|
38
42
|
- All components using a dropdown inside a `SidePanel` component, will render the dropdown inside the `SidePanel`, to avoid issues with the `closeOnOutsideClick` property of `SidePanel` (@evoiron)
|
|
39
43
|
|
|
44
|
+
- **⚠️ Breaking change - IdCard**:
|
|
45
|
+
- Replacing `size` options (@fatb38)
|
|
46
|
+
- removing `medium` and `large`
|
|
47
|
+
- adding `xs-medium`, `xs-bold`, `s`, `m`, `l`, `xl`
|
|
48
|
+
|
|
40
49
|
### 🐛 Bug Fixes
|
|
41
50
|
|
|
42
51
|
- **Modal:**
|
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.T-xLQpTN.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,4 +1,4 @@
|
|
|
1
|
-
import { s as t, K as n } from "../../../chunks/Avatar.
|
|
1
|
+
import { s as t, K as n } from "../../../chunks/Avatar.BvI60jet.js";
|
|
2
2
|
import { jsx as u } from "react/jsx-runtime";
|
|
3
3
|
import { Avatar as c } from "antd";
|
|
4
4
|
import { u as d } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
@@ -1,37 +1,69 @@
|
|
|
1
1
|
import "../../../assets/index2.css";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as y, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import n from "classnames";
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { K as
|
|
7
|
-
import { KitTooltip as
|
|
8
|
-
import { T as
|
|
9
|
-
const
|
|
10
|
-
"kit-id-card": "_kit-id-
|
|
11
|
-
},
|
|
12
|
-
|
|
4
|
+
import { t as S } from "../../../chunks/styles.module.shsViPAW.js";
|
|
5
|
+
import { u as T } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
+
import { K as v } from "../../../chunks/Avatar.BvI60jet.js";
|
|
7
|
+
import { KitTooltip as d } from "../Tooltip/index.js";
|
|
8
|
+
import { T as h } from "../../../chunks/constants.DINGxt3I.js";
|
|
9
|
+
const D = {
|
|
10
|
+
"kit-id-card": "_kit-id-card_1vabr_2"
|
|
11
|
+
}, m = [
|
|
12
|
+
S["kit-typography-text"],
|
|
13
13
|
"ant-typography",
|
|
14
14
|
"ant-typography-text",
|
|
15
15
|
"ant-typography-ellipsis",
|
|
16
16
|
"ant-typography-ellipsis-single-line"
|
|
17
|
-
],
|
|
18
|
-
|
|
19
|
-
"
|
|
17
|
+
], z = (t) => {
|
|
18
|
+
switch (t) {
|
|
19
|
+
case "xl":
|
|
20
|
+
return "kit-typography-fontSize5";
|
|
21
|
+
case "l":
|
|
22
|
+
return "kit-typography-fontSize6";
|
|
23
|
+
default:
|
|
24
|
+
return "kit-typography-fontSize7";
|
|
25
|
+
}
|
|
26
|
+
}, N = (t) => {
|
|
27
|
+
switch (t) {
|
|
28
|
+
case "xl":
|
|
29
|
+
return "kit-typography-fontSize1";
|
|
30
|
+
case "l":
|
|
31
|
+
return "kit-typography-fontSize2";
|
|
32
|
+
case "m":
|
|
33
|
+
return "kit-typography-fontSize3";
|
|
34
|
+
case "s":
|
|
35
|
+
return "kit-typography-fontSize4";
|
|
36
|
+
case "xs-bold":
|
|
37
|
+
case "xs-medium":
|
|
38
|
+
return "kit-typography-fontSize5";
|
|
39
|
+
}
|
|
40
|
+
}, _ = (t) => {
|
|
41
|
+
switch (t) {
|
|
42
|
+
case "xl":
|
|
43
|
+
case "l":
|
|
44
|
+
return "xl";
|
|
45
|
+
case "m":
|
|
46
|
+
case "s":
|
|
47
|
+
return "l";
|
|
48
|
+
default:
|
|
49
|
+
return "m";
|
|
50
|
+
}
|
|
51
|
+
}, E = (t, r, a, i) => {
|
|
52
|
+
const s = n("kit-id-card-title", ...m, N(r), {
|
|
53
|
+
"ant-typography-bold": r !== "xs-medium",
|
|
20
54
|
"ant-typography-disabled": a
|
|
21
55
|
});
|
|
22
|
-
return
|
|
23
|
-
},
|
|
24
|
-
const s = n("kit-id-card-description", ...
|
|
25
|
-
"kit-typography-fontSize5": t !== "medium",
|
|
26
|
-
"kit-typography-fontSize7": t === "medium",
|
|
56
|
+
return e("span", { className: s, children: e(d, { title: i ? "" : t, mouseEnterDelay: h, children: e("span", { children: t }) }) });
|
|
57
|
+
}, K = (t, r, a, i) => {
|
|
58
|
+
const s = n("kit-id-card-description", ...m, "ant-typography-regular", z(r), {
|
|
27
59
|
"ant-typography-disabled": a
|
|
28
60
|
});
|
|
29
|
-
return
|
|
30
|
-
},
|
|
31
|
-
const { appId:
|
|
32
|
-
return
|
|
61
|
+
return e("span", { className: s, children: e(d, { title: i ? "" : t, mouseEnterDelay: h, children: e("span", { children: t }) }) });
|
|
62
|
+
}, I = ({ className: t, title: r, description: a, avatarProps: i, size: s = "xs-bold", disabled: o = !1, disableTooltip: p = !1, ...g }) => {
|
|
63
|
+
const { appId: u } = T(), f = n(u, D["kit-id-card"], t), x = i !== void 0, c = r !== void 0, l = a !== void 0, k = c || l;
|
|
64
|
+
return y("div", { className: `${f} id-card-grid`, ...g, children: [x && e("div", { className: "card-avatar", children: e(v, { ...i, size: _(s), disabled: o }) }), k && y("div", { className: "card-info", children: [c && typeof r == "string" ? E(r, s, o, p) : r, l && typeof a == "string" ? K(a, s, o, p) : a] })] });
|
|
33
65
|
};
|
|
34
|
-
|
|
66
|
+
I.displayName = "KitIdCard";
|
|
35
67
|
export {
|
|
36
|
-
|
|
68
|
+
I as KitIdCard
|
|
37
69
|
};
|
|
@@ -4,7 +4,7 @@ import {IKitAvatar} from '../Avatar/types';
|
|
|
4
4
|
|
|
5
5
|
export interface IKitIdCard extends KitHTMLAttributes<HTMLDivElement> {
|
|
6
6
|
avatarProps?: IKitAvatar;
|
|
7
|
-
size?: 'medium' | '
|
|
7
|
+
size?: 'xs-medium' | 'xs-bold' | 's' | 'm' | 'l' | 'xl';
|
|
8
8
|
title?: ReactNode;
|
|
9
9
|
description?: ReactNode;
|
|
10
10
|
disabled?: boolean;
|
|
@@ -16,20 +16,20 @@ const I = {
|
|
|
16
16
|
"kit-tag-group": "_kit-tag-group_6ocqb_111",
|
|
17
17
|
"kit-tag-group-measure": "_kit-tag-group-measure_6ocqb_117",
|
|
18
18
|
"kit-tag-group-container": "_kit-tag-group-container_6ocqb_124"
|
|
19
|
-
}, h = D(({ className: r, closeIcon: s, type:
|
|
19
|
+
}, h = D(({ className: r, closeIcon: s, type: c = "neutral", disabled: i, disableTooltip: a = !1, onClick: p, idCardProps: o, ...d }, u) => {
|
|
20
20
|
const { appId: b } = x(), _ = $(b, I["kit-tag"], r, {
|
|
21
|
-
[`kit-tag-${
|
|
21
|
+
[`kit-tag-${c}`]: c,
|
|
22
22
|
"kit-tag-disabled": i,
|
|
23
23
|
"kit-tag-clickable": p
|
|
24
24
|
});
|
|
25
|
-
return t(z, { tabIndex: i ? M : R, ref: u, ...d, className: _, closeIcon: s ?? t(P, { icon: X }), onClick: p, closable: !!d.onClose, children: t(j, { disabled: i, disableTooltip:
|
|
26
|
-
}), H = ({ tags: r, containerRef: s, measureRef:
|
|
27
|
-
var
|
|
25
|
+
return t(z, { tabIndex: i ? M : R, ref: u, ...d, className: _, closeIcon: s ?? t(P, { icon: X }), onClick: p, closable: !!d.onClose, children: t(j, { disabled: i, disableTooltip: a, avatarProps: o != null && o.avatarProps ? { ...o == null ? void 0 : o.avatarProps, size: "s" } : void 0, description: o == null ? void 0 : o.description }) });
|
|
26
|
+
}), H = ({ tags: r, containerRef: s, measureRef: c, handleCloseTag: i }) => {
|
|
27
|
+
var a;
|
|
28
28
|
const [p, o] = G([]), [d, u] = G(0), [b, _] = G(t(E, {})), v = O(null), { locale: T } = F();
|
|
29
29
|
return L(() => {
|
|
30
30
|
const K = () => {
|
|
31
31
|
var k, g, e;
|
|
32
|
-
const l = s.current, f =
|
|
32
|
+
const l = s.current, f = c.current;
|
|
33
33
|
if (!l || !f)
|
|
34
34
|
return;
|
|
35
35
|
_(W(E, { children: [r.map((n, y) => t(h, { type: n == null ? void 0 : n.type, disabled: n == null ? void 0 : n.disabled, idCardProps: n.idCardProps, onClose: () => {
|
|
@@ -53,20 +53,20 @@ const I = {
|
|
|
53
53
|
return K(), v.current = new ResizeObserver(N), s.current && v.current.observe(s.current), () => {
|
|
54
54
|
v.current && v.current.disconnect(), clearTimeout(m);
|
|
55
55
|
};
|
|
56
|
-
}, [s, i, d, (
|
|
56
|
+
}, [s, i, d, (a = T.General) === null || a === void 0 ? void 0 : a.others, c, r]), {
|
|
57
57
|
measureTags: b,
|
|
58
58
|
visibleTags: p,
|
|
59
59
|
hiddenCount: d
|
|
60
60
|
};
|
|
61
|
-
}, J = ({ tags: r, style: s, className:
|
|
61
|
+
}, J = ({ tags: r, style: s, className: c, handleCloseTag: i, othersTagType: a = "neutral", othersTagDisabled: p }) => {
|
|
62
62
|
var o;
|
|
63
63
|
const d = O(null), u = O(null), { locale: b } = F(), { appId: _ } = x(), [v, T] = G(!1), { measureTags: K, visibleTags: m, hiddenCount: N } = H({ tags: r, containerRef: d, measureRef: u, handleCloseTag: i }), k = () => r.slice(m.length).map((e, l) => {
|
|
64
64
|
var f;
|
|
65
65
|
return t("div", { children: (f = e.idCardProps) === null || f === void 0 ? void 0 : f.description }, l);
|
|
66
|
-
}), g = $(_, I["kit-tag-group"],
|
|
66
|
+
}), g = $(_, I["kit-tag-group"], c);
|
|
67
67
|
return W("div", { className: I["kit-tag-group-container"], children: [W("div", { ref: d, style: s, className: g, children: [m.map((e, l) => t(h, { type: e == null ? void 0 : e.type, disabled: e == null ? void 0 : e.disabled, idCardProps: e.idCardProps, onClose: i ? () => {
|
|
68
68
|
i(l);
|
|
69
|
-
} : void 0 }, l)), N > 0 && t(V, { overlay: k(), children: t(h, { type:
|
|
69
|
+
} : void 0 }, l)), N > 0 && t(V, { overlay: k(), children: t(h, { type: a, disabled: p, disableTooltip: !0, idCardProps: { description: `+${N} ${(o = b.General) === null || o === void 0 ? void 0 : o.others}` }, onClick: () => T(!0) }) }), t(U, { isOpen: v, close: () => T(!1), showCloseIcon: !0, title: "Tags", appElement: document.body, children: t("div", { style: { display: "flex", flexWrap: "wrap", rowGap: "8px" }, children: r.map((e, l) => t(h, { id: `tag-${l}`, type: e == null ? void 0 : e.type, disabled: e == null ? void 0 : e.disabled, idCardProps: e.idCardProps, onClose: i ? () => {
|
|
70
70
|
i(l);
|
|
71
71
|
} : void 0 }, l)) }) })] }), t("div", { ref: u, className: I["kit-tag-group-measure"], "aria-hidden": "true", children: K })] });
|
|
72
72
|
}, Q = J, S = h;
|
|
@@ -7,7 +7,7 @@ import { K as S } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
|
7
7
|
import { FontAwesomeIcon as W } from "@fortawesome/react-fontawesome";
|
|
8
8
|
import { faMagnifyingGlass as q } from "@fortawesome/free-solid-svg-icons";
|
|
9
9
|
import z from "classnames";
|
|
10
|
-
import { u as D } from "../../../chunks/useGetPopupContainer.
|
|
10
|
+
import { u as D } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
11
11
|
const E = {
|
|
12
12
|
"kit-autocomplete": "_kit-autocomplete_kox09_2"
|
|
13
13
|
}, H = (t, r, o) => z(t, "ant-select-dropdown", "kit-select-dropdown-bottom", {
|
|
@@ -8,7 +8,7 @@ import N from "classnames";
|
|
|
8
8
|
import { FontAwesomeIcon as io } from "@fortawesome/react-fontawesome";
|
|
9
9
|
import { faCircleXmark as no } from "@fortawesome/free-solid-svg-icons";
|
|
10
10
|
import { u as co } from "../../../chunks/useKitLocale.96CdK3og.js";
|
|
11
|
-
import { u as lo } from "../../../chunks/useGetPopupContainer.
|
|
11
|
+
import { u as lo } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
12
12
|
const u = {
|
|
13
13
|
"kit-colorpicker": "_kit-colorpicker_7zhkg_2",
|
|
14
14
|
"kit-color-picker-clear": "_kit-color-picker-clear_7zhkg_37",
|
|
@@ -7,7 +7,7 @@ import { FontAwesomeIcon as o } from "@fortawesome/react-fontawesome";
|
|
|
7
7
|
import { faChevronLeft as _, faChevronRight as k, faClock as T, faCalendar as X, faCircleXmark as $, faArrowRight as Q } from "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
import { K as y } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
9
9
|
import { u as z } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
10
|
-
import { u as B } from "../../../chunks/useGetPopupContainer.
|
|
10
|
+
import { u as B } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
11
11
|
const E = {
|
|
12
12
|
"kit-datepicker": "_kit-datepicker_1a8o2_2",
|
|
13
13
|
"kit-rangepicker": "_kit-rangepicker_1a8o2_154"
|
|
@@ -12,7 +12,7 @@ import { faCircleXmark as Ee, faCircleNotch as Pe, faChevronDown as Le, faCheck
|
|
|
12
12
|
import { KitIcon as K } from "../../General/Icon/index.js";
|
|
13
13
|
import { KitIdCard as Oe } from "../../DataDisplay/IdCard/index.js";
|
|
14
14
|
import { KitTag as G } from "../../DataDisplay/Tag/index.js";
|
|
15
|
-
import { u as ye } from "../../../chunks/useGetPopupContainer.
|
|
15
|
+
import { u as ye } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
16
16
|
function Ae({ allowClear: e = !0, loading: o = !1 }) {
|
|
17
17
|
const n = e ? s(g, { "aria-label": "clear", icon: Ee }) : null, r = o ? s(g, { icon: Pe, spin: !0 }) : s(g, { icon: Le }), l = s(K, { icon: s(g, { icon: Ne }), on: !0 });
|
|
18
18
|
return {
|
|
@@ -5,7 +5,7 @@ import B from "classnames";
|
|
|
5
5
|
import te from "short-unique-id";
|
|
6
6
|
import { K as ne } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
7
7
|
import { u as re } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
8
|
-
import { u as se } from "../../../chunks/useGetPopupContainer.
|
|
8
|
+
import { u as se } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
9
9
|
import { s as le } from "../../../chunks/styles.module.iV2bcv-5.js";
|
|
10
10
|
import { KitTag as ce } from "../../DataDisplay/Tag/index.js";
|
|
11
11
|
import { useDebouncedCallback as ie } from "use-debounce";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import "../../../assets/index33.css";
|
|
2
|
-
import {
|
|
3
|
-
import { jsxs as m, jsx as
|
|
2
|
+
import { K as _ } from "../../../chunks/SnackBarProvider.T-xLQpTN.js";
|
|
3
|
+
import { jsxs as m, jsx as s, 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";
|
|
6
6
|
import { FontAwesomeIcon as d } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { faXmark as C, faEllipsisV as D } from "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
import k from "classnames";
|
|
9
9
|
import p from "../../General/DynamicActions/index.js";
|
|
10
|
-
import { KitDivider as
|
|
11
|
-
import { KitButton as
|
|
12
|
-
import { KitTypography as
|
|
13
|
-
const
|
|
10
|
+
import { KitDivider as T } from "../../Layout/Divider/index.js";
|
|
11
|
+
import { KitButton as g } from "../../General/Button/index.js";
|
|
12
|
+
import { KitTypography as w } from "../../General/Typography/index.js";
|
|
13
|
+
const j = {
|
|
14
14
|
"kit-snackbar": "_kit-snackbar_1bxje_2"
|
|
15
|
-
},
|
|
16
|
-
var
|
|
17
|
-
const { appId: h } = A(), y =
|
|
18
|
-
c(),
|
|
19
|
-
}, K = (
|
|
15
|
+
}, E = (i) => s(g, { type: "tertiary", size: "m", icon: i.icon, onClick: i.onClick, className: i.className, disabled: i.disabled, children: i.label }, i.key), F = ({ message: i, actions: t, closable: a, onClose: r, actionsInDropDown: b, className: u, style: f }) => {
|
|
16
|
+
var n;
|
|
17
|
+
const { appId: h } = A(), y = t && t.length > 0, l = a !== void 0, N = k(h, j["kit-snackbar"], u), B = () => {
|
|
18
|
+
c(), r == null || r();
|
|
19
|
+
}, K = (n = t == null ? void 0 : t.map((o, S) => {
|
|
20
20
|
var e;
|
|
21
21
|
return {
|
|
22
22
|
...o,
|
|
23
23
|
key: (e = o.key) !== null && e !== void 0 ? e : S,
|
|
24
24
|
className: k(o.className, "kit-snackbar-action")
|
|
25
25
|
};
|
|
26
|
-
})) !== null &&
|
|
27
|
-
return m("div", { style: { ...f }, className: N, children: [l &&
|
|
28
|
-
},
|
|
26
|
+
})) !== null && n !== void 0 ? n : [];
|
|
27
|
+
return m("div", { style: { ...f }, className: N, children: [l && s("div", { className: "kit-snackbar-close", children: s("div", { className: "kit-snackbar-close-button", onClick: B, children: s(d, { icon: C }) }) }), s("div", { className: "kit-snackbar-message", children: s(w.Text, { className: "kit-snackbar-title", children: i }) }), y && m(x, { children: [(i || l) && s(T, { type: "vertical", noMargin: !0, className: "kit-snackbar-divider" }), s("div", { className: "kit-snackbar-actions", children: s(p, { actions: K, actionsInDropdown: !!b, disabled: !1, actionRenderer: E, ellipsisButton: s(p.EllipsisButton, { type: "tertiary", size: "m", className: "kit-snackbar-action", icon: s(d, { icon: D }) }), threshold: 3 }) })] })] });
|
|
28
|
+
}, I = F, z = 4e3, P = ({ duration: i = z, snackbarId: t = null, ...a }) => (c(), v(s(I, { ...a }), {
|
|
29
29
|
duration: i === 0 ? 1 / 0 : i,
|
|
30
|
-
id:
|
|
30
|
+
id: t ?? void 0
|
|
31
31
|
})), c = (i) => {
|
|
32
32
|
v.dismiss(i);
|
|
33
33
|
}, Q = P, W = c, Y = _;
|
|
@@ -7,7 +7,7 @@ import m from "classnames";
|
|
|
7
7
|
import { FontAwesomeIcon as B } from "@fortawesome/react-fontawesome";
|
|
8
8
|
import { faCheck as P } from "@fortawesome/free-solid-svg-icons";
|
|
9
9
|
import { N as R } from "../../../chunks/constants.DINGxt3I.js";
|
|
10
|
-
import { u as g } from "../../../chunks/useGetPopupContainer.
|
|
10
|
+
import { u as g } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
11
11
|
const j = {
|
|
12
12
|
"kit-dropdown-hidden-input": "_kit-dropdown-hidden-input_k5jvv_1"
|
|
13
13
|
}, A = (o) => o.type === "divider", F = (o) => o.type === "group", I = (o) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../assets/index34.css";
|
|
2
2
|
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { u } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
4
|
-
import
|
|
4
|
+
import _ from "classnames";
|
|
5
5
|
import { KitDropDown as x } from "../DropDown/index.js";
|
|
6
6
|
import { FontAwesomeIcon as O } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { faGrip as q } from "@fortawesome/free-solid-svg-icons";
|
|
@@ -9,13 +9,13 @@ import { getContrastColor as F } from "../../../utils/functions/index.js";
|
|
|
9
9
|
import { F as I } from "../../../chunks/constants.DINGxt3I.js";
|
|
10
10
|
import { useState as H } from "react";
|
|
11
11
|
import { KitTag as P } from "../../DataDisplay/Tag/index.js";
|
|
12
|
-
import { KitIdCard as
|
|
12
|
+
import { KitIdCard as g } from "../../DataDisplay/IdCard/index.js";
|
|
13
13
|
const R = {
|
|
14
14
|
"kit-header": "_kit-header_4hqaz_2"
|
|
15
15
|
}, T = (a) => ({
|
|
16
16
|
"--kit-header-invert-color": F(a)
|
|
17
17
|
}), j = ({ className: a, children: l, menu: s, logo: e, langSwitcher: o, profile: m, ...i }) => {
|
|
18
|
-
const { appId: p, theme: v } = u(), d =
|
|
18
|
+
const { appId: p, theme: v } = u(), d = _(p, R["kit-header"], {
|
|
19
19
|
"with-menu": s,
|
|
20
20
|
"with-logo": e,
|
|
21
21
|
"with-profile": m,
|
|
@@ -24,10 +24,10 @@ const R = {
|
|
|
24
24
|
return h("div", { style: k, ...i, className: d, children: [s && t(x, { dropdownRender: f, children: t("div", { className: "kit-header-menu", tabIndex: I, children: t(O, { icon: q }) }) }), e && t("div", { className: "kit-header-logo", children: e }), t("div", { className: "kit-header-content", children: l }), h("div", { className: "kit-header-right-items", children: [m, o && t("div", { className: "kit-header-lang", children: o })] })] });
|
|
25
25
|
}, z = ({ logo: a, tagProps: l, profileCardProps: s, profileMenuCardProps: e, complement: o, className: m, menu: i = null, alt: p = "", ...v }) => {
|
|
26
26
|
var d;
|
|
27
|
-
const { appId: f } = u(), [k, K] = H(!1), b =
|
|
27
|
+
const { appId: f } = u(), [k, K] = H(!1), b = _(f, "kit-header-profile", {
|
|
28
28
|
"with-menu": i,
|
|
29
29
|
open: k
|
|
30
|
-
}, m), y =
|
|
30
|
+
}, m), y = _("kit-header-profile-menu-card", {
|
|
31
31
|
clickable: e == null ? void 0 : e.onClick
|
|
32
32
|
}, e == null ? void 0 : e.className), n = s;
|
|
33
33
|
n && n.avatarProps && (n.avatarProps.shape = "square");
|
|
@@ -35,8 +35,8 @@ const R = {
|
|
|
35
35
|
...e,
|
|
36
36
|
className: y
|
|
37
37
|
};
|
|
38
|
-
c && c.avatarProps && (c.avatarProps.shape = "square", c.avatarProps.size = "
|
|
39
|
-
const N = i && i.items, A = (r) => h("div", { className: "kit-header-menu-wrapper", children: [e && t(
|
|
38
|
+
c && c.avatarProps && (c.avatarProps.shape = "square", c.avatarProps.size = "l");
|
|
39
|
+
const N = i && i.items, A = (r) => h("div", { className: "kit-header-menu-wrapper", children: [e && t(g, { ...c }), i && !N && t("div", { role: "separator", className: "ant-dropdown-menu-item-divider" }), N ? r : i] }), w = {
|
|
40
40
|
disabled: !i,
|
|
41
41
|
placement: "bottomRight",
|
|
42
42
|
onOpenChange: (r) => {
|
|
@@ -52,7 +52,7 @@ const R = {
|
|
|
52
52
|
...(d = r.items) !== null && d !== void 0 ? d : []
|
|
53
53
|
]), w.menu = r;
|
|
54
54
|
}
|
|
55
|
-
return t(x, { ...w, children: h("div", { className: b, tabIndex: I, ...v, children: [a && t("img", { className: "kit-header-profile-logo", src: a, alt: p }), l && t(P, { className: "kit-header-profile-tag", ...l }), n && t(
|
|
55
|
+
return t(x, { ...w, children: h("div", { className: b, tabIndex: I, ...v, children: [a && t("img", { className: "kit-header-profile-logo", src: a, alt: p }), l && t(P, { className: "kit-header-profile-tag", ...l }), n && t(g, { ...n }), o && t("div", { className: "kit-header-profile-complement", children: o })] }) });
|
|
56
56
|
}, B = z, D = j;
|
|
57
57
|
D.Profile = B;
|
|
58
58
|
D.displayName = "KitHeader";
|
|
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as m, Fragment as F } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect as I, forwardRef as _, useState as B, useRef as T, useImperativeHandle as W } from "react";
|
|
3
3
|
import { u as w } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
4
4
|
import k from "classnames";
|
|
5
|
-
import { s as l } from "../../../chunks/useGetPopupContainer.
|
|
5
|
+
import { s as l } 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
8
|
import { faChevronLeft as q, faClose as z } from "@fortawesome/free-solid-svg-icons";
|
|
@@ -21,7 +21,7 @@ export interface IKitSidePanel extends KitHTMLAttributes<HTMLDivElement> {
|
|
|
21
21
|
onClose?: () => void;
|
|
22
22
|
onOpenChanged?: (open: boolean) => void;
|
|
23
23
|
children?: ReactNode;
|
|
24
|
-
size?: 's' | 'm';
|
|
24
|
+
size?: 's' | 'm' | 'l';
|
|
25
25
|
closeOnEsc?: boolean;
|
|
26
26
|
closeOnOutsideClick?: boolean;
|
|
27
27
|
showSeparator?: boolean;
|
package/dist/assets/Avatar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! Sass Fairy v1 | (c) roydukkey | https://sass-fairy.com/license */._kit-
|
|
1
|
+
/*! Sass Fairy v1 | (c) roydukkey | https://sass-fairy.com/license */._kit-avatar_22tfj_2{background:var(--general-utilities-main-light)}._kit-avatar_22tfj_2:not(.ant-avatar-image){background:var(--components-Avatar-colors-background-default, var(--general-utilities-main-light));color:var(--components-Avatar-colors-typography-default, var(--general-utilities-main-medium))}._kit-avatar_22tfj_2.kit-avatar-image-fit-cover img{object-fit:cover}._kit-avatar_22tfj_2.kit-avatar-image-fit-contain img{object-fit:contain}._kit-avatar_22tfj_2.kit-avatar-image-fit-fill img{object-fit:fill}._kit-avatar_22tfj_2.ant-avatar-square:not(.kit-avatar-size-xs){border-radius:calc(var(--general-border-radius-s) * 1px)}._kit-avatar-disabled_22tfj_22{--mask-color: #8db1c880}._kit-avatar-disabled_22tfj_22.ant-avatar-icon,._kit-avatar-disabled_22tfj_22.kit-avatar-image-fit-cover,._kit-avatar-disabled_22tfj_22{color:var(--general-utilities-disabled);background-color:var(--general-utilities-neutral-medium)}._kit-avatar-disabled_22tfj_22.ant-avatar-image:after{content:"";z-index:0;position:absolute;top:0;right:0;bottom:0;left:0;background:var(--mask-color)}._kit-avatar-group_22tfj_44.override-last>span:last-child{background:var(--components-AvatarGroup-colors-background-default, var(--general-utilities-main-light));color:var(--components-AvatarGroup-colors-typography-default, var(--components-AvatarGroup-colors-background-default, var(--general-utilities-main-medium)))}._kit-avatar-group_22tfj_44 .ant-avatar{box-shadow:var(--general-utilities-shadow-light)}._kit-avatar-group-disabled_22tfj_52.override-last>span:last-child{color:var(--general-utilities-disabled);background-color:var(--general-utilities-neutral-medium)}
|
package/dist/assets/index2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! Sass Fairy v1 | (c) roydukkey | https://sass-fairy.com/license */._kit-id-
|
|
1
|
+
/*! Sass Fairy v1 | (c) roydukkey | https://sass-fairy.com/license */._kit-id-card_1vabr_2.id-card-grid{display:grid;grid-template-columns:min-content auto;grid-template-areas:"avatar info"}._kit-id-card_1vabr_2.id-card-grid:has(.card-avatar):has(.card-info){column-gap:calc(var(--general-spacing-xs) * 1px)}._kit-id-card_1vabr_2.id-card-grid .card-avatar{grid-area:avatar;align-self:center}._kit-id-card_1vabr_2.id-card-grid .card-info{grid-area:info;gap:2px;display:flex;flex-direction:column;align-self:center;overflow:hidden}._kit-id-card_1vabr_2.id-card-grid .card-info .kit-id-card-title,._kit-id-card_1vabr_2.id-card-grid .card-info .kit-id-card-description,._kit-id-card_1vabr_2.id-card-grid .card-info .kit-id-card-title span,._kit-id-card_1vabr_2.id-card-grid .card-info .kit-id-card-description span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! Sass Fairy v1 | (c) roydukkey | https://sass-fairy.com/license */._kit-side-panel-
|
|
1
|
+
/*! Sass Fairy v1 | (c) roydukkey | https://sass-fairy.com/license */._kit-side-panel-wrapper_uvhbg_2{--sidePanel-colors-text: var(--components-SidePanel-colors-text, var(--general-utilities-text-primary));--sidePanel-shadow: var(--components-SidePanel-shadow, -5px 8px 14px -5px rgba(0, 0, 0, .3));--sidePanel-default-width-open-s: 352;--sidePanel-default-width-open-m: 456;--sidePanel-default-width-open-l: 576;--sidePanel-default-right-close-s: -352;--sidePanel-default-right-close-m: -456;--sidePanel-default-right-close-l: -576;--sidePanel-transition: .3s ease-in}._kit-side-panel-wrapper_uvhbg_2:not(.floating){position:relative;height:100%;width:calc(var(--components-SidePanel-width-s, var(--sidePanel-default-width-open-s)) * 1px);transition:width var(--sidePanel-transition)}._kit-side-panel-wrapper_uvhbg_2:not(.floating).size-m{width:calc(var(--components-SidePanel-width-m, var(--sidePanel-default-width-open-m)) * 1px)}._kit-side-panel-wrapper_uvhbg_2:not(.floating).size-l{width:calc(var(--components-SidePanel-width-l, var(--sidePanel-default-width-open-l)) * 1px)}._kit-side-panel-wrapper_uvhbg_2:not(.floating).closed{width:0}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2{display:flex;flex-direction:column;box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;z-index:1000;background:var(--components-SidePanel-colors-background, var(--general-utilities-light));width:calc(var(--components-SidePanel-width-s, var(--sidePanel-default-width-open-s)) * 1px);transition:right var(--sidePanel-transition)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2.closed{right:calc(var(--sidePanel-default-right-close-s) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2.closed.size-m{right:calc(var(--sidePanel-default-right-close-m) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2.closed.size-l{right:calc(var(--sidePanel-default-right-close-l) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2.size-m{width:calc(var(--components-SidePanel-width-m, var(--sidePanel-default-width-open-m)) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2.size-l{width:calc(var(--components-SidePanel-width-l, var(--sidePanel-default-width-open-l)) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2:not(.closed){box-shadow:var(--sidePanel-shadow)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._header_uvhbg_59{flex:0 1 auto;display:flex;gap:calc(var(--components-SidePanel-spacing-headerItems, var(--general-spacing-xs)) * 1px);padding:calc(var(--components-SidePanel-padding-vertical, var(--general-spacing-s)) * 1px) calc(var(--components-SidePanel-padding-horizontal, var(--general-spacing-s)) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._header_uvhbg_59.show-separator{border-bottom:1px solid var(--general-utilities-border)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._back_uvhbg_68,._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._close_uvhbg_25{flex:0 0 auto;width:calc(var(--general-spacing-l) * 1px);min-width:calc(var(--general-spacing-l) * 1px);height:calc(var(--general-spacing-l) * 1px);padding:calc(var(--general-spacing-none) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._back_uvhbg_68{color:var(--sidePanel-colors-text)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._back_uvhbg_68 .fa-chevron-left{width:8px;height:8px}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._card_uvhbg_83{flex:1 1 auto}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._content_uvhbg_86{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:calc(var(--components-SidePanel-padding-vertical, var(--general-spacing-s)) * 1px) calc(var(--components-SidePanel-padding-horizontal, var(--general-spacing-s)) * 1px) 0 calc(var(--components-SidePanel-padding-horizontal, var(--general-spacing-s)) * 1px);margin-bottom:calc(var(--components-SidePanel-padding-vertical, var(--general-spacing-s)) * 1px)}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "../assets/Avatar.css";
|
|
2
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as _ } from "react";
|
|
4
|
+
import { Avatar as C } from "antd";
|
|
5
|
+
import { u as x } from "./useKitTheme.KSAU-Pdv.js";
|
|
6
|
+
import { getInitials as y, isValidColor as b, getColor as h, isPrimaryColor as j, isSecondaryColor as A, isTertiaryColor as K, getLighterColor as S, getContrastColor as T } from "../utils/functions/index.js";
|
|
7
|
+
import { kitAvatarCssTokens as n } from "../theme/aristid/components/DataDisplay/Avatar/index.js";
|
|
8
|
+
import z from "classnames";
|
|
9
|
+
const m = {
|
|
10
|
+
"kit-avatar": "_kit-avatar_22tfj_2",
|
|
11
|
+
"kit-avatar-disabled": "_kit-avatar-disabled_22tfj_22",
|
|
12
|
+
"kit-avatar-group": "_kit-avatar-group_22tfj_44",
|
|
13
|
+
"kit-avatar-group-disabled": "_kit-avatar-group-disabled_22tfj_52"
|
|
14
|
+
}, N = (t, a) => !t || !b(t) ? null : {
|
|
15
|
+
[n.colors.background.default]: h(t, a),
|
|
16
|
+
[n.colors.typography.default]: j(t) || A(t) || K(t) ? S(t, a) : T(t)
|
|
17
|
+
}, w = (t) => {
|
|
18
|
+
switch (t) {
|
|
19
|
+
case "xl":
|
|
20
|
+
return 48;
|
|
21
|
+
case "l":
|
|
22
|
+
return 40;
|
|
23
|
+
case "m":
|
|
24
|
+
case void 0:
|
|
25
|
+
return 32;
|
|
26
|
+
case "s":
|
|
27
|
+
return 24;
|
|
28
|
+
case "xs":
|
|
29
|
+
return 16;
|
|
30
|
+
default:
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
}, L = ({ label: t, initialsMaxChars: a, color: i, className: l, style: s, secondaryColorInvert: e = !1, children: u, disabled: v, imageFit: r = "cover", size: o, ...f }) => {
|
|
34
|
+
const { appId: c } = x(), d = w(o), p = _(() => ({ ...s, ...N(i, e) }), [i, e, s]), k = z(c, m["kit-avatar"], l, {
|
|
35
|
+
"kit-avatar-size-xs": o === "xs",
|
|
36
|
+
"kit-avatar-image-fit-cover": r === "cover",
|
|
37
|
+
"kit-avatar-image-fit-contain": r === "contain",
|
|
38
|
+
"kit-avatar-image-fit-fill": r === "fill",
|
|
39
|
+
[m["kit-avatar-disabled"]]: v
|
|
40
|
+
});
|
|
41
|
+
return g(C, { style: p, className: k, ...f, size: d, children: t !== void 0 ? y(t, a) : u });
|
|
42
|
+
};
|
|
43
|
+
L.displayName = "KitAvatar";
|
|
44
|
+
export {
|
|
45
|
+
L as K,
|
|
46
|
+
m as s
|
|
47
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as a, useEffect as
|
|
3
|
-
import { Toaster as
|
|
2
|
+
import { useState as a, useEffect as s } from "react";
|
|
3
|
+
import { Toaster as n } from "react-hot-toast";
|
|
4
4
|
const l = {
|
|
5
5
|
background: "initial",
|
|
6
6
|
padding: "initial",
|
|
@@ -11,13 +11,13 @@ const l = {
|
|
|
11
11
|
alignItems: "initial",
|
|
12
12
|
borderRadius: "initial",
|
|
13
13
|
maxWidth: "800px"
|
|
14
|
-
}, i = "aristid-ds-toaster",
|
|
15
|
-
const [o,
|
|
16
|
-
return
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
}, []), o ? t("div", {}) : t(
|
|
20
|
-
}
|
|
14
|
+
}, i = "aristid-ds-toaster", p = () => {
|
|
15
|
+
const [o, e] = a(!0);
|
|
16
|
+
return s(() => {
|
|
17
|
+
const r = document.querySelector(`.${i}`);
|
|
18
|
+
e(!!r);
|
|
19
|
+
}, []), o ? t("div", {}) : t(n, { containerClassName: i, position: "bottom-center", toastOptions: { style: l } });
|
|
20
|
+
};
|
|
21
21
|
export {
|
|
22
|
-
p as
|
|
22
|
+
p as K
|
|
23
23
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../assets/useGetPopupContainer.css";
|
|
2
|
+
const o = "_header_uvhbg_59", a = "_back_uvhbg_68", r = "_close_uvhbg_25", s = "_card_uvhbg_83", _ = "_content_uvhbg_86", i = {
|
|
3
|
+
"kit-side-panel-wrapper": "_kit-side-panel-wrapper_uvhbg_2",
|
|
4
|
+
"kit-side-panel": "_kit-side-panel_uvhbg_2",
|
|
5
|
+
header: o,
|
|
6
|
+
back: a,
|
|
7
|
+
close: r,
|
|
8
|
+
card: s,
|
|
9
|
+
content: _
|
|
10
|
+
}, d = (e, n) => n ?? (() => {
|
|
11
|
+
var t;
|
|
12
|
+
const c = e.current && "nativeElement" in e.current ? e.current.nativeElement : e.current;
|
|
13
|
+
return (t = c == null ? void 0 : c.closest(`.${i["kit-side-panel"]}`)) !== null && t !== void 0 ? t : document.body;
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
i as s,
|
|
17
|
+
d as u
|
|
18
|
+
};
|