aristid-ds 12.0.0-e651b01 → 12.0.0-eaca419
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 +16 -1
- package/dist/Kit/App/index.js +15 -15
- package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
- package/dist/Kit/DataDisplay/Empty/index.js +1 -1
- package/dist/Kit/DataDisplay/Error/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
- package/dist/Kit/DataDisplay/RedirectCard/index.js +10 -16
- package/dist/Kit/DataDisplay/Table/index.js +1 -1
- package/dist/Kit/DataDisplay/Tabs/index.js +10 -24
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataEntry/AutoComplete/index.js +1 -1
- package/dist/Kit/DataEntry/Checkbox/index.js +2 -2
- package/dist/Kit/DataEntry/ColorPicker/index.js +51 -49
- package/dist/Kit/DataEntry/DatePicker/index.js +2 -2
- package/dist/Kit/DataEntry/Input/index.js +2 -2
- package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/index.js +30 -30
- package/dist/Kit/DataEntry/Select/index.js +2 -2
- package/dist/Kit/DataEntry/Upload/index.js +1 -1
- package/dist/Kit/Feedback/Alert/index.js +1 -1
- package/dist/Kit/Feedback/Modal/index.js +1 -1
- package/dist/Kit/Feedback/Modal/types.d.ts +1 -1
- package/dist/Kit/Feedback/SnackBar/index.js +12 -12
- package/dist/Kit/General/Button/index.js +9 -9
- package/dist/Kit/General/Typography/index.js +1 -1
- package/dist/Kit/Layout/PageLayout/index.js +1 -1
- package/dist/Kit/Layout/Section/index.js +13 -10
- package/dist/Kit/Navigation/Breadcrumb/index.js +1 -1
- package/dist/Kit/Navigation/Header/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/index.js +1 -1
- package/dist/Kit/Navigation/Pagination/index.js +1 -1
- package/dist/Kit/Navigation/SideMenu/index.js +1 -1
- package/dist/Kit/Navigation/SidePanel/index.js +42 -42
- package/dist/Kit/Navigation/SidePanel/types.d.ts +1 -0
- package/dist/Kit/Navigation/Steps/index.js +1 -1
- package/dist/Kit/index.d.ts +55 -6
- package/dist/Kit/index.js +182 -177
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index49.css +1 -1
- package/dist/assets/index50.css +1 -1
- package/dist/assets/index51.css +1 -0
- package/dist/chunks/InputWrapper.DPygx2dQ.js +23 -0
- package/dist/chunks/{SnackBarProvider.nqDzpFo3.js → SnackBarProvider.T-xLQpTN.js} +10 -10
- package/dist/index.es.js +180 -177
- package/dist/index.umd.js +4 -4
- package/package.json +13 -2
- package/dist/Kit/DataDisplay/index.d.ts +0 -16
- package/dist/Kit/DataDisplay/index.js +0 -34
- package/dist/Kit/DataEntry/index.d.ts +0 -15
- package/dist/Kit/DataEntry/index.js +0 -32
- package/dist/Kit/Feedback/index.d.ts +0 -7
- package/dist/Kit/Feedback/index.js +0 -19
- package/dist/Kit/General/index.d.ts +0 -3
- package/dist/Kit/General/index.js +0 -8
- package/dist/Kit/Layout/index.d.ts +0 -5
- package/dist/Kit/Layout/index.js +0 -12
- package/dist/Kit/Navigation/index.d.ts +0 -8
- package/dist/Kit/Navigation/index.js +0 -18
- package/dist/assets/styles.css +0 -1
- package/dist/chunks/InputWrapper._05UBJgS.js +0 -23
- package/dist/chunks/styles.module.4eW8VunD.js +0 -8
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import "../../../assets/index9.css";
|
|
2
2
|
import { jsxs as v, jsx as d } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { K as
|
|
5
|
-
import { u as
|
|
3
|
+
import { forwardRef as A, useRef as D, useState as G, useEffect as w } from "react";
|
|
4
|
+
import { K as J } from "../../../chunks/InputWrapper.DPygx2dQ.js";
|
|
5
|
+
import { u as Q } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
6
|
import C from "classnames";
|
|
7
|
-
import { useEditor as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { KitMenuBar as
|
|
15
|
-
import { KitEditorContentCharacterCount as
|
|
16
|
-
import { uuid as
|
|
7
|
+
import { useEditor as V, EditorContent as X } from "@tiptap/react";
|
|
8
|
+
import Y from "@tiptap/starter-kit";
|
|
9
|
+
import Z from "@tiptap/extension-underline";
|
|
10
|
+
import $ from "@tiptap/extension-text-align";
|
|
11
|
+
import B from "@tiptap/extension-placeholder";
|
|
12
|
+
import tt from "@tiptap/extension-link";
|
|
13
|
+
import et from "@tiptap/extension-character-count";
|
|
14
|
+
import { KitMenuBar as rt } from "./MenuBar/index.js";
|
|
15
|
+
import { KitEditorContentCharacterCount as ot } from "./EditorContentCharacterCount/index.js";
|
|
16
|
+
import { uuid as it } from "../../../utils/functions/index.js";
|
|
17
17
|
const E = {
|
|
18
18
|
"kit-rich-text-wrapper": "_kit-rich-text-wrapper_1j8h5_2",
|
|
19
19
|
"kit-rich-text": "_kit-rich-text_1j8h5_2"
|
|
20
|
-
},
|
|
21
|
-
const { appId:
|
|
20
|
+
}, nt = A(({ label: _, helper: K, htmlFor: T, wrapperClassName: y, className: L, required: R, actions: M, extra: n, placeholder: N, disabled: c, readonly: f, status: o, defaultValue: W, value: i, onChange: u, onFocus: h, onBlur: s, maxLength: x, autoFocus: b = !1, showCount: j = !1, ...H }, S) => {
|
|
21
|
+
const { appId: F } = Q(), k = D(null), [a, g] = G(b), O = C(F, L, E["kit-rich-text"], {
|
|
22
22
|
"kit-rich-text-disabled": c,
|
|
23
23
|
"kit-rich-text-readonly": f,
|
|
24
24
|
"kit-rich-text-error": o === "error",
|
|
25
25
|
"kit-rich-text-warning": o === "warning",
|
|
26
26
|
"kit-rich-text-focused": a
|
|
27
|
-
}), t =
|
|
27
|
+
}), t = V({
|
|
28
28
|
editable: !c && !f,
|
|
29
29
|
content: W,
|
|
30
30
|
editorProps: {
|
|
@@ -33,46 +33,46 @@ const E = {
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
extensions: [
|
|
36
|
-
|
|
36
|
+
Y.configure({
|
|
37
37
|
heading: {
|
|
38
38
|
levels: [1, 2, 3, 4]
|
|
39
39
|
}
|
|
40
40
|
}),
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
Z,
|
|
42
|
+
$.configure({
|
|
43
43
|
types: ["heading", "paragraph"]
|
|
44
44
|
}),
|
|
45
|
-
|
|
45
|
+
tt.extend({ inclusive: !1 }).configure({
|
|
46
46
|
openOnClick: !1
|
|
47
47
|
}),
|
|
48
|
-
|
|
48
|
+
B.configure({
|
|
49
49
|
placeholder: N,
|
|
50
50
|
showOnlyWhenEditable: !1
|
|
51
51
|
}),
|
|
52
|
-
|
|
52
|
+
et.configure({
|
|
53
53
|
limit: x
|
|
54
54
|
})
|
|
55
55
|
],
|
|
56
56
|
onUpdate: ({ editor: e }) => {
|
|
57
57
|
u && u(e.getHTML());
|
|
58
58
|
}
|
|
59
|
-
}), l = "kit-rich-text-wrapper-" +
|
|
59
|
+
}), l = "kit-rich-text-wrapper-" + it(), U = C(y, l, E["kit-rich-text-wrapper"]);
|
|
60
60
|
return w(() => {
|
|
61
|
-
const e = (
|
|
61
|
+
const e = (q) => {
|
|
62
62
|
var m, p;
|
|
63
|
-
const r =
|
|
64
|
-
a && !(!((m = k.current) === null || m === void 0) && m.contains(r)) && !
|
|
63
|
+
const r = q.target, z = r.closest("." + l), I = r.closest(".select-font-size"), P = r.closest(".link-modal") || r.contains(document.querySelector(".link-modal"));
|
|
64
|
+
a && !(!((m = k.current) === null || m === void 0) && m.contains(r)) && !z && !I && !P && (s && s((p = t == null ? void 0 : t.getHTML()) !== null && p !== void 0 ? p : ""), g(!1));
|
|
65
65
|
};
|
|
66
66
|
return document.addEventListener("mousedown", e), document.addEventListener("focusin", e), () => {
|
|
67
67
|
document.removeEventListener("mousedown", e), document.removeEventListener("focusin", e);
|
|
68
68
|
};
|
|
69
69
|
}, [l, s, t, a]), w(() => {
|
|
70
70
|
t !== null && i !== void 0 && i !== t.getHTML() && t.commands.setContent(i);
|
|
71
|
-
}, [i, t]), t ? v(
|
|
71
|
+
}, [i, t]), t ? v(J, { className: U, label: _, helper: K, htmlFor: T, disabled: c, status: o, required: R, extra: n ?? M, children: [v("div", { ref: k, className: O, ...H, children: [d(rt, { editor: t }), d(X, { ref: S, editor: t, className: "ant-typography", onFocus: (e) => {
|
|
72
72
|
h && h(e), g(!0);
|
|
73
|
-
} })] }), j && d(
|
|
73
|
+
} })] }), j && d(ot, { editor: t, status: o, maxLength: x })] }) : null;
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
nt.displayName = "KitRichText";
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
nt as KitRichText
|
|
78
78
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../../assets/
|
|
1
|
+
import "../../../assets/index42.css";
|
|
2
2
|
import { jsx as s, jsxs as pe } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as ve, useState as j, useRef as q, useEffect as fe, useMemo as me } from "react";
|
|
4
4
|
import { Select as Ce } from "antd";
|
|
5
5
|
import W from "classnames";
|
|
6
6
|
import _e from "short-unique-id";
|
|
7
7
|
import { useDebouncedCallback as be } from "use-debounce";
|
|
8
|
-
import { K as we } from "../../../chunks/InputWrapper.
|
|
8
|
+
import { K as we } from "../../../chunks/InputWrapper.DPygx2dQ.js";
|
|
9
9
|
import { u as Ie } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
10
10
|
import { FontAwesomeIcon as I } from "@fortawesome/react-fontawesome";
|
|
11
11
|
import { faCircleXmark as ge, faCircleNotch as ke, faChevronDown as he, faCheck as De } from "@fortawesome/free-solid-svg-icons";
|
|
@@ -17,7 +17,7 @@ type propsToOmit =
|
|
|
17
17
|
//todo delete Omit<title role className style>
|
|
18
18
|
export interface IKitModal
|
|
19
19
|
extends Omit<ComponentProps<ReactModal>, propsToOmit>,
|
|
20
|
-
Omit<KitHTMLAttributes<HTMLDivElement>, 'title' | 'role' | '
|
|
20
|
+
Omit<KitHTMLAttributes<HTMLDivElement>, 'title' | 'role' | 'style'> {
|
|
21
21
|
width?: string;
|
|
22
22
|
showCloseIcon?: boolean;
|
|
23
23
|
fullscreen?: boolean;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import "../../../assets/
|
|
2
|
-
import {
|
|
3
|
-
import { jsxs as l, jsx as
|
|
1
|
+
import "../../../assets/index34.css";
|
|
2
|
+
import { K as _ } from "../../../chunks/SnackBarProvider.T-xLQpTN.js";
|
|
3
|
+
import { jsxs as l, jsx as a, Fragment as x } from "react/jsx-runtime";
|
|
4
4
|
import { toast as p } from "react-hot-toast";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as A } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
6
|
import { FontAwesomeIcon as m } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import { faXmark as
|
|
7
|
+
import { faXmark as C, faEllipsisV as D } from "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
import k from "classnames";
|
|
9
9
|
import d from "../../General/DynamicActions/index.js";
|
|
10
|
-
import { KitDivider as
|
|
10
|
+
import { KitDivider as I } from "../../Layout/Divider/index.js";
|
|
11
11
|
import { KitButton as T } from "../../General/Button/index.js";
|
|
12
12
|
import { KitTypography as g } from "../../General/Typography/index.js";
|
|
13
13
|
const w = {
|
|
14
14
|
"kit-snackbar": "_kit-snackbar_1bxje_2"
|
|
15
|
-
}, j = (
|
|
15
|
+
}, j = (i) => a(T, { type: "tertiary", size: "m", icon: i.icon, onClick: i.onClick, className: i.className, disabled: i.disabled, children: i.label }, i.key), E = ({ message: i, actions: s, closable: v, onClose: r, actionsInDropDown: b, className: f, style: h }) => {
|
|
16
16
|
var t;
|
|
17
|
-
const { appId: u } =
|
|
17
|
+
const { appId: u } = A(), y = s && s.length > 0, c = v !== void 0, N = k(u, w["kit-snackbar"], f), B = () => {
|
|
18
18
|
e(), r == null || r();
|
|
19
19
|
}, K = (t = s == null ? void 0 : s.map((n, S) => {
|
|
20
20
|
var o;
|
|
@@ -24,12 +24,12 @@ const w = {
|
|
|
24
24
|
className: k(n.className, "kit-snackbar-action")
|
|
25
25
|
};
|
|
26
26
|
})) !== null && t !== void 0 ? t : [];
|
|
27
|
-
return l("div", { style: { ...h }, className: N, children: [c &&
|
|
28
|
-
}, F = E, z = 4e3, P = ({ duration:
|
|
29
|
-
duration:
|
|
27
|
+
return l("div", { style: { ...h }, className: N, children: [c && a("div", { className: "kit-snackbar-close", children: a("div", { className: "kit-snackbar-close-button", onClick: B, children: a(m, { icon: C }) }) }), a("div", { className: "kit-snackbar-message", children: a(g.Text, { className: "kit-snackbar-title", children: i }) }), y && l(x, { children: [(i || c) && a(I, { type: "vertical", noMargin: !0, className: "kit-snackbar-divider" }), a("div", { className: "kit-snackbar-actions", children: a(d, { actions: K, actionsInDropdown: !!b, disabled: !1, actionRenderer: j, ellipsisButton: a(d.EllipsisButton, { type: "tertiary", size: "m", className: "kit-snackbar-action", icon: a(m, { icon: D }) }), threshold: 3 }) })] })] });
|
|
28
|
+
}, F = E, z = 4e3, P = ({ duration: i = z, ...s }) => (e(), p(a(F, { ...s }), {
|
|
29
|
+
duration: i === 0 ? 1 / 0 : i
|
|
30
30
|
})), e = () => {
|
|
31
31
|
p.dismiss();
|
|
32
|
-
}, Q = P, W = e, Y =
|
|
32
|
+
}, Q = P, W = e, Y = _;
|
|
33
33
|
export {
|
|
34
34
|
Y as KitSnackBarProvider,
|
|
35
35
|
W as closeKitSnackBar,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../../../assets/
|
|
1
|
+
import "../../../assets/index44.css";
|
|
2
2
|
import { jsxs as T, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as C, useState as
|
|
3
|
+
import { forwardRef as C, useState as w, useMemo as L, useEffect as q, cloneElement as G } from "react";
|
|
4
4
|
import H from "@ant-design/icons/LoadingOutlined";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as $ } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
6
|
import { FontAwesomeIcon as N } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { faArrowRight as J, faCircleCheck as Q, faChevronDown as U } from "@fortawesome/free-solid-svg-icons";
|
|
8
8
|
import V from "../../../hooks/useSecureClick/index.js";
|
|
9
9
|
import y from "classnames";
|
|
10
10
|
import { KitDropDown as W } from "../../Navigation/DropDown/index.js";
|
|
11
11
|
const X = {
|
|
12
|
-
"kit-btn": "_kit-
|
|
12
|
+
"kit-btn": "_kit-btn_9gvw4_2"
|
|
13
13
|
}, Y = (t) => {
|
|
14
14
|
var n;
|
|
15
15
|
if (!t)
|
|
@@ -31,7 +31,7 @@ const X = {
|
|
|
31
31
|
delay: 0
|
|
32
32
|
};
|
|
33
33
|
}, M = ["primary", "secondary", "tertiary"], z = ({ iconSize: t, dangerModal: n, checked: i, active: l, href: c, target: _, icon: u, danger: m, color: k, block: r, className: b, onClick: f, disableSecureClick: h, children: s, disabled: p, size: v = "l", type: o = "secondary", htmlType: x = "button", loading: a = !1, ...B }, D) => {
|
|
34
|
-
const { appId: j } =
|
|
34
|
+
const { appId: j } = $(), [E, O] = w(!1), g = L(() => Z(a), [a]), R = V(f), A = !s && u, P = y(j, X["kit-btn"], b, {
|
|
35
35
|
[`kit-btn-${o}`]: !n && o,
|
|
36
36
|
"kit-btn-secondary": n || o === "secondary",
|
|
37
37
|
"kit-btn-disabled": p,
|
|
@@ -44,15 +44,15 @@ const X = {
|
|
|
44
44
|
[`kit-btn-color-${k}`]: k,
|
|
45
45
|
[`kit-btn-size-${v}`]: !!v && (!o || M.includes(o))
|
|
46
46
|
}), S = Y(u);
|
|
47
|
-
return
|
|
47
|
+
return q(() => {
|
|
48
48
|
let d = null;
|
|
49
49
|
g.delay > 0 ? d = setTimeout(() => {
|
|
50
50
|
d = null, O(!0);
|
|
51
51
|
}, g.delay) : O(g.loading);
|
|
52
|
-
function
|
|
52
|
+
function F() {
|
|
53
53
|
d && (clearTimeout(d), d = null);
|
|
54
54
|
}
|
|
55
|
-
return
|
|
55
|
+
return F;
|
|
56
56
|
}, [a, g]), T(o === "link" || o === "redirect" ? "a" : "button", { onClick: h ? f : R, disabled: p, ...{
|
|
57
57
|
href: o === "link" || o === "redirect" ? c : void 0,
|
|
58
58
|
target: o === "link" || o === "redirect" ? _ : void 0,
|
|
@@ -62,7 +62,7 @@ const X = {
|
|
|
62
62
|
"kit-btn-split": "_kit-btn-split_x2kvu_2",
|
|
63
63
|
"kit-btn": "_kit-btn_x2kvu_2"
|
|
64
64
|
}, nt = ({ items: t, onClick: n, children: i, icon: l, className: c, id: _, style: u, open: m, block: k, splitClassName: r, ...b }, f) => {
|
|
65
|
-
const { appId: h } =
|
|
65
|
+
const { appId: h } = $(), [s, p] = w(m), v = y(h, tt["kit-btn-split"], {
|
|
66
66
|
"kit-btn-block": k
|
|
67
67
|
}, c), o = y("kit-btn-split-main", r == null ? void 0 : r.main), x = y("kit-btn-split-split", {
|
|
68
68
|
"kit-btn-split-open": s
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../assets/
|
|
1
|
+
import "../../../assets/index28.css";
|
|
2
2
|
import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { KitHeader as l } from "../../Navigation/Header/index.js";
|
|
4
4
|
import { KitSideMenu as s } from "../../Navigation/SideMenu/index.js";
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import "../../../assets/index18.css";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { isValidColor as c, getColor as s } from "../../../utils/functions/index.js";
|
|
4
|
+
import l from "classnames";
|
|
5
|
+
const m = "_borderSection_i0jwi_1", a = "_fullWidth_i0jwi_6", u = {
|
|
6
|
+
borderSection: m,
|
|
7
|
+
fullWidth: a
|
|
8
|
+
}, S = ({ className: i, style: r, borderColor: t = "primary", children: o }) => {
|
|
6
9
|
const e = () => {
|
|
7
|
-
if (
|
|
10
|
+
if (t === "primary")
|
|
8
11
|
return {
|
|
9
12
|
"--section-border-color": "var(--general-utilities-main-default)"
|
|
10
13
|
};
|
|
11
|
-
if (!(!
|
|
14
|
+
if (!(!t || !c(t)))
|
|
12
15
|
return {
|
|
13
|
-
"--section-border-color":
|
|
16
|
+
"--section-border-color": s(t)
|
|
14
17
|
};
|
|
15
18
|
};
|
|
16
|
-
return
|
|
19
|
+
return n("section", { className: l(i, u.borderSection), style: { ...e(), ...r }, children: o });
|
|
17
20
|
};
|
|
18
21
|
export {
|
|
19
|
-
|
|
22
|
+
S as KitSection
|
|
20
23
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../assets/
|
|
1
|
+
import "../../../assets/index36.css";
|
|
2
2
|
import { useState as y, useRef as T, useEffect as b, createElement as q } from "react";
|
|
3
3
|
import { jsx as e, jsxs as p, Fragment as G } from "react/jsx-runtime";
|
|
4
4
|
import { u as $ } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import "../../../assets/
|
|
2
|
-
import { jsx as c, jsxs as
|
|
3
|
-
import { useEffect as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import { KitIdCard as
|
|
7
|
-
import { KitButton as
|
|
8
|
-
import { FontAwesomeIcon as
|
|
9
|
-
import { faChevronLeft as
|
|
10
|
-
const
|
|
1
|
+
import "../../../assets/index45.css";
|
|
2
|
+
import { jsx as c, jsxs as u } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect as k, forwardRef as z, useState as H, useRef as R, useImperativeHandle as $ } from "react";
|
|
4
|
+
import { u as j } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
|
+
import D from "classnames";
|
|
6
|
+
import { KitIdCard as B } from "../../DataDisplay/IdCard/index.js";
|
|
7
|
+
import { KitButton as v } from "../../General/Button/index.js";
|
|
8
|
+
import { FontAwesomeIcon as y } from "@fortawesome/react-fontawesome";
|
|
9
|
+
import { faChevronLeft as F, faClose as T } from "@fortawesome/free-solid-svg-icons";
|
|
10
|
+
const q = "_floating_11y40_18", G = "_header_11y40_29", J = "_back_11y40_35", M = "_close_11y40_36", Q = "_card_11y40_48", U = "_content_11y40_51", a = {
|
|
11
11
|
"kit-side-panel": "_kit-side-panel_11y40_2",
|
|
12
|
-
floating:
|
|
12
|
+
floating: q,
|
|
13
13
|
"size-m": "_size-m_11y40_26",
|
|
14
|
-
header:
|
|
15
|
-
back:
|
|
16
|
-
close:
|
|
17
|
-
card:
|
|
18
|
-
content:
|
|
19
|
-
},
|
|
20
|
-
|
|
14
|
+
header: G,
|
|
15
|
+
back: J,
|
|
16
|
+
close: M,
|
|
17
|
+
card: Q,
|
|
18
|
+
content: U
|
|
19
|
+
}, V = ({ key: o, onKeyPressed: n, active: e = !1 }) => {
|
|
20
|
+
k(() => {
|
|
21
21
|
if (!e)
|
|
22
22
|
return;
|
|
23
|
-
const t = (
|
|
24
|
-
|
|
23
|
+
const t = (i) => {
|
|
24
|
+
i.key === o && (i.preventDefault(), n());
|
|
25
25
|
};
|
|
26
26
|
return document.addEventListener("keydown", t), () => {
|
|
27
27
|
document.removeEventListener("keydown", t);
|
|
28
28
|
};
|
|
29
29
|
}, [o, n, e]);
|
|
30
|
-
},
|
|
31
|
-
|
|
30
|
+
}, W = ({ ref: o, onClickOutside: n, active: e = !1 }) => {
|
|
31
|
+
k(() => {
|
|
32
32
|
if (!e)
|
|
33
33
|
return;
|
|
34
|
-
const t = (
|
|
35
|
-
o.current && !o.current.contains(
|
|
34
|
+
const t = (i) => {
|
|
35
|
+
o.current && !o.current.contains(i.target) && n();
|
|
36
36
|
};
|
|
37
37
|
return document.addEventListener("mousedown", t), () => {
|
|
38
38
|
document.removeEventListener("mousedown", t);
|
|
39
39
|
};
|
|
40
40
|
}, [e, n, o]);
|
|
41
|
-
},
|
|
42
|
-
var
|
|
43
|
-
const { appId:
|
|
44
|
-
|
|
41
|
+
}, X = z(({ floating: o, closable: n, leftActionProps: e, idCardProps: t, headerExtra: i, onClose: l, children: p, onOpenChanged: s, size: f = "s", initialOpen: N = !1, closeOnEsc: w = !1, closeOnOutsideClick: I = !1, ...K }, E) => {
|
|
42
|
+
var r;
|
|
43
|
+
const { appId: b } = j(), [L, d] = H(N), _ = R(null);
|
|
44
|
+
$(E, () => ({
|
|
45
45
|
open: () => {
|
|
46
|
-
|
|
46
|
+
d(!0), s == null || s(!0);
|
|
47
47
|
},
|
|
48
48
|
close: () => {
|
|
49
|
-
|
|
49
|
+
d(!1), s == null || s(!1);
|
|
50
50
|
}
|
|
51
51
|
}));
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const m = () => {
|
|
53
|
+
d(!1), s == null || s(!1), l == null || l();
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
}),
|
|
55
|
+
V({ key: "Escape", onKeyPressed: m, active: w }), W({ ref: _, onClickOutside: m, active: I });
|
|
56
|
+
const S = D(b, a["kit-side-panel"], {
|
|
57
|
+
[a.floating]: o,
|
|
58
|
+
[a["size-" + f]]: f
|
|
59
|
+
}), h = e || t || n, x = {
|
|
60
60
|
...e,
|
|
61
|
-
icon: (
|
|
61
|
+
icon: (r = e == null ? void 0 : e.icon) !== null && r !== void 0 ? r : c(y, { icon: F })
|
|
62
62
|
};
|
|
63
|
-
return
|
|
64
|
-
}),
|
|
65
|
-
|
|
63
|
+
return L ? u("section", { ref: _, className: S, "aria-label": "side-panel", ...K, children: [h && u("div", { className: a.header, children: [e && c(v, { type: "secondary", ...x, className: `${a.back} ${e.className}` }), u("div", { className: a.card, children: [i, t && c(B, { ...t, size: "large" })] }), n && c(v, { className: a.close, onClick: m, icon: c(y, { icon: T }) })] }), c("div", { className: a.content, children: p })] }) : null;
|
|
64
|
+
}), Y = X;
|
|
65
|
+
Y.displayName = "KitSidePanel";
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
Y as KitSidePanel
|
|
68
68
|
};
|
|
@@ -18,6 +18,7 @@ export interface IKitSidePanel extends KitHTMLAttributes<HTMLDivElement> {
|
|
|
18
18
|
leftActionProps?: KitPanelLeftActionProps;
|
|
19
19
|
closable?: boolean;
|
|
20
20
|
idCardProps?: KitPaneIdCardProps;
|
|
21
|
+
headerExtra?: ReactNode;
|
|
21
22
|
onClose?: () => void;
|
|
22
23
|
onOpenChanged?: (open: boolean) => void;
|
|
23
24
|
children?: ReactNode;
|
package/dist/Kit/index.d.ts
CHANGED
|
@@ -1,7 +1,56 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
1
|
+
export { KitApp } from './App';
|
|
2
|
+
export { KitAvatar } from './DataDisplay/Avatar';
|
|
3
|
+
export { KitBadge } from './DataDisplay/Badge';
|
|
4
|
+
export { KitItemCard } from './DataDisplay/ItemCard';
|
|
5
|
+
export { KitCollapse } from './DataDisplay/Collapse';
|
|
6
|
+
export { KitEmpty } from './DataDisplay/Empty';
|
|
7
|
+
export { KitError } from './DataDisplay/Error';
|
|
8
|
+
export { KitIdCard } from './DataDisplay/IdCard';
|
|
9
|
+
export { KitImage } from './DataDisplay/Image';
|
|
10
|
+
export { KitItemList } from './DataDisplay/ItemList';
|
|
11
|
+
export { KitTable } from './DataDisplay/Table';
|
|
12
|
+
export { KitTag } from './DataDisplay/Tag';
|
|
13
|
+
export { KitTabs } from './DataDisplay/Tabs';
|
|
14
|
+
export { KitTree } from './DataDisplay/Tree';
|
|
15
|
+
export { KitTooltip } from './DataDisplay/Tooltip';
|
|
16
|
+
export { KitTour } from './DataDisplay/Tour';
|
|
17
|
+
export { KitRedirectCard } from './DataDisplay/RedirectCard';
|
|
18
|
+
export { KitCheckbox } from './DataEntry/Checkbox';
|
|
19
|
+
export { KitInput } from './DataEntry/Input';
|
|
20
|
+
export { KitInputNumber } from './DataEntry/InputNumber';
|
|
21
|
+
export { KitInputWrapper } from './DataEntry/InputWrapper';
|
|
22
|
+
export { KitRadio } from './DataEntry/Radio';
|
|
23
|
+
export { KitRate } from './DataEntry/Rate';
|
|
24
|
+
export { KitRichText } from './DataEntry/RichText';
|
|
25
|
+
export { KitSelect } from './DataEntry/Select';
|
|
26
|
+
export { KitSwitch } from './DataEntry/Switch';
|
|
27
|
+
export { KitDatePicker } from './DataEntry/DatePicker';
|
|
28
|
+
export { KitAutoComplete } from './DataEntry/AutoComplete';
|
|
29
|
+
export { KitUpload } from './DataEntry/Upload';
|
|
30
|
+
export { KitSlider } from './DataEntry/Slider';
|
|
31
|
+
export { KitColorPicker } from './DataEntry/ColorPicker';
|
|
32
|
+
export { KitFilter } from './DataEntry/Filter';
|
|
33
|
+
export { KitAlert } from './Feedback/Alert';
|
|
34
|
+
export { KitModal } from './Feedback/Modal';
|
|
35
|
+
export { KitProgress } from './Feedback/Progress';
|
|
36
|
+
export { KitLoader } from './Feedback/Loader';
|
|
37
|
+
export { KitSnackBarProvider, openKitSnackBar, closeKitSnackBar } from './Feedback/SnackBar';
|
|
38
|
+
export { useKitNotification, KitNotification } from './Feedback/Notification';
|
|
39
|
+
export { KitSkeleton } from './Feedback/Skeleton';
|
|
40
|
+
export { KitButton } from './General/Button';
|
|
41
|
+
export { KitTypography } from './General/Typography';
|
|
42
|
+
export { KitIcon } from './General/Icon';
|
|
43
|
+
export { KitDivider } from './Layout/Divider';
|
|
44
|
+
export { KitSpace } from './Layout/Space';
|
|
45
|
+
export { KitSection } from './Layout/Section';
|
|
46
|
+
export { KitGrid } from './Layout/Grid';
|
|
47
|
+
export { KitPageLayout } from './Layout/PageLayout';
|
|
48
|
+
export { KitBreadcrumb } from './Navigation/Breadcrumb';
|
|
49
|
+
export { KitDropDown } from './Navigation/DropDown';
|
|
50
|
+
export { KitPageHeader } from './Navigation/PageHeader';
|
|
51
|
+
export { KitHeader } from './Navigation/Header';
|
|
52
|
+
export { KitSteps } from './Navigation/Steps';
|
|
53
|
+
export { KitPagination } from './Navigation/Pagination';
|
|
54
|
+
export { KitSideMenu } from './Navigation/SideMenu';
|
|
55
|
+
export { KitSidePanel } from './Navigation/SidePanel';
|
|
7
56
|
export * from './Ant';
|