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.
Files changed (96) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/Kit/App/index.js +15 -15
  3. package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
  4. package/dist/Kit/DataDisplay/Empty/index.js +1 -1
  5. package/dist/Kit/DataDisplay/Error/index.js +1 -1
  6. package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
  7. package/dist/Kit/DataDisplay/RedirectCard/index.js +10 -16
  8. package/dist/Kit/DataDisplay/Table/index.js +1 -1
  9. package/dist/Kit/DataDisplay/Tabs/index.js +10 -24
  10. package/dist/Kit/DataDisplay/Tag/index.js +1 -1
  11. package/dist/Kit/DataEntry/AutoComplete/index.js +1 -1
  12. package/dist/Kit/DataEntry/Checkbox/index.js +2 -2
  13. package/dist/Kit/DataEntry/ColorPicker/index.js +51 -49
  14. package/dist/Kit/DataEntry/DatePicker/index.js +2 -2
  15. package/dist/Kit/DataEntry/Input/index.js +2 -2
  16. package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
  17. package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
  18. package/dist/Kit/DataEntry/Radio/index.js +2 -2
  19. package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +1 -1
  20. package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +1 -1
  21. package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
  22. package/dist/Kit/DataEntry/RichText/MenuBar/index.js +1 -1
  23. package/dist/Kit/DataEntry/RichText/index.js +30 -30
  24. package/dist/Kit/DataEntry/Select/index.js +2 -2
  25. package/dist/Kit/DataEntry/Upload/index.js +1 -1
  26. package/dist/Kit/Feedback/Alert/index.js +1 -1
  27. package/dist/Kit/Feedback/Modal/index.js +1 -1
  28. package/dist/Kit/Feedback/Modal/types.d.ts +1 -1
  29. package/dist/Kit/Feedback/SnackBar/index.js +12 -12
  30. package/dist/Kit/General/Button/index.js +9 -9
  31. package/dist/Kit/General/Typography/index.js +1 -1
  32. package/dist/Kit/Layout/PageLayout/index.js +1 -1
  33. package/dist/Kit/Layout/Section/index.js +13 -10
  34. package/dist/Kit/Navigation/Breadcrumb/index.js +1 -1
  35. package/dist/Kit/Navigation/Header/index.js +1 -1
  36. package/dist/Kit/Navigation/PageHeader/index.js +1 -1
  37. package/dist/Kit/Navigation/Pagination/index.js +1 -1
  38. package/dist/Kit/Navigation/SideMenu/index.js +1 -1
  39. package/dist/Kit/Navigation/SidePanel/index.js +42 -42
  40. package/dist/Kit/Navigation/SidePanel/types.d.ts +1 -0
  41. package/dist/Kit/Navigation/Steps/index.js +1 -1
  42. package/dist/Kit/index.d.ts +55 -6
  43. package/dist/Kit/index.js +182 -177
  44. package/dist/assets/index18.css +1 -1
  45. package/dist/assets/index19.css +1 -1
  46. package/dist/assets/index20.css +1 -1
  47. package/dist/assets/index21.css +1 -1
  48. package/dist/assets/index22.css +1 -1
  49. package/dist/assets/index23.css +1 -1
  50. package/dist/assets/index24.css +1 -1
  51. package/dist/assets/index25.css +1 -1
  52. package/dist/assets/index26.css +1 -1
  53. package/dist/assets/index27.css +1 -1
  54. package/dist/assets/index28.css +1 -1
  55. package/dist/assets/index29.css +1 -1
  56. package/dist/assets/index30.css +1 -1
  57. package/dist/assets/index31.css +1 -1
  58. package/dist/assets/index32.css +1 -1
  59. package/dist/assets/index33.css +1 -1
  60. package/dist/assets/index34.css +1 -1
  61. package/dist/assets/index35.css +1 -1
  62. package/dist/assets/index36.css +1 -1
  63. package/dist/assets/index37.css +1 -1
  64. package/dist/assets/index38.css +1 -1
  65. package/dist/assets/index39.css +1 -1
  66. package/dist/assets/index40.css +1 -1
  67. package/dist/assets/index41.css +1 -1
  68. package/dist/assets/index42.css +1 -1
  69. package/dist/assets/index43.css +1 -1
  70. package/dist/assets/index44.css +1 -1
  71. package/dist/assets/index45.css +1 -1
  72. package/dist/assets/index46.css +1 -1
  73. package/dist/assets/index47.css +1 -1
  74. package/dist/assets/index49.css +1 -1
  75. package/dist/assets/index50.css +1 -1
  76. package/dist/assets/index51.css +1 -0
  77. package/dist/chunks/InputWrapper.DPygx2dQ.js +23 -0
  78. package/dist/chunks/{SnackBarProvider.nqDzpFo3.js → SnackBarProvider.T-xLQpTN.js} +10 -10
  79. package/dist/index.es.js +180 -177
  80. package/dist/index.umd.js +4 -4
  81. package/package.json +13 -2
  82. package/dist/Kit/DataDisplay/index.d.ts +0 -16
  83. package/dist/Kit/DataDisplay/index.js +0 -34
  84. package/dist/Kit/DataEntry/index.d.ts +0 -15
  85. package/dist/Kit/DataEntry/index.js +0 -32
  86. package/dist/Kit/Feedback/index.d.ts +0 -7
  87. package/dist/Kit/Feedback/index.js +0 -19
  88. package/dist/Kit/General/index.d.ts +0 -3
  89. package/dist/Kit/General/index.js +0 -8
  90. package/dist/Kit/Layout/index.d.ts +0 -5
  91. package/dist/Kit/Layout/index.js +0 -12
  92. package/dist/Kit/Navigation/index.d.ts +0 -8
  93. package/dist/Kit/Navigation/index.js +0 -18
  94. package/dist/assets/styles.css +0 -1
  95. package/dist/chunks/InputWrapper._05UBJgS.js +0 -23
  96. 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 P, useRef as A, useState as D, useEffect as w } from "react";
4
- import { K as G } from "../../../chunks/InputWrapper._05UBJgS.js";
5
- import { u as J } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
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 Q, EditorContent as V } from "@tiptap/react";
8
- import X from "@tiptap/starter-kit";
9
- import Y from "@tiptap/extension-underline";
10
- import Z from "@tiptap/extension-text-align";
11
- import $ from "@tiptap/extension-placeholder";
12
- import B from "@tiptap/extension-link";
13
- import tt from "@tiptap/extension-character-count";
14
- import { KitMenuBar as et } from "./MenuBar/index.js";
15
- import { KitEditorContentCharacterCount as rt } from "./EditorContentCharacterCount/index.js";
16
- import { uuid as ot } from "../../../utils/functions/index.js";
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
- }, it = P(({ 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) => {
21
- const { appId: S } = J(), k = A(null), [a, g] = D(b), F = C(S, L, E["kit-rich-text"], {
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 = Q({
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
- X.configure({
36
+ Y.configure({
37
37
  heading: {
38
38
  levels: [1, 2, 3, 4]
39
39
  }
40
40
  }),
41
- Y,
42
- Z.configure({
41
+ Z,
42
+ $.configure({
43
43
  types: ["heading", "paragraph"]
44
44
  }),
45
- B.extend({ inclusive: !1 }).configure({
45
+ tt.extend({ inclusive: !1 }).configure({
46
46
  openOnClick: !1
47
47
  }),
48
- $.configure({
48
+ B.configure({
49
49
  placeholder: N,
50
50
  showOnlyWhenEditable: !1
51
51
  }),
52
- tt.configure({
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-" + ot(), O = C(y, l, E["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 = (U) => {
61
+ const e = (q) => {
62
62
  var m, p;
63
- const r = U.target, q = r.closest("." + l), z = r.closest(".select-font-size"), I = r.closest(".link-modal") || r.contains(document.querySelector(".link-modal"));
64
- a && !(!((m = k.current) === null || m === void 0) && m.contains(r)) && !q && !z && !I && (s && s((p = t == null ? void 0 : t.getHTML()) !== null && p !== void 0 ? p : ""), g(!1));
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(G, { className: O, label: _, helper: K, htmlFor: T, disabled: c, status: o, required: R, extra: n ?? M, children: [v("div", { ref: k, className: F, children: [d(et, { editor: t }), d(V, { ref: H, editor: t, className: "ant-typography", onFocus: (e) => {
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(rt, { editor: t, status: o, maxLength: x })] }) : null;
73
+ } })] }), j && d(ot, { editor: t, status: o, maxLength: x })] }) : null;
74
74
  });
75
- it.displayName = "KitRichText";
75
+ nt.displayName = "KitRichText";
76
76
  export {
77
- it as KitRichText
77
+ nt as KitRichText
78
78
  };
@@ -1,11 +1,11 @@
1
- import "../../../assets/index41.css";
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._05UBJgS.js";
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";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index31.css";
1
+ import "../../../assets/index32.css";
2
2
  import { Upload as s } from "antd";
3
3
  import { jsxs as n, jsx as r, Fragment as k } from "react/jsx-runtime";
4
4
  import { forwardRef as K } from "react";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index32.css";
1
+ import "../../../assets/index33.css";
2
2
  import { jsxs as n, Fragment as K, jsx as s } from "react/jsx-runtime";
3
3
  import v from "react-hot-toast";
4
4
  import b from "classnames";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index42.css";
1
+ import "../../../assets/index43.css";
2
2
  import { jsx as o, jsxs as y, Fragment as z } from "react/jsx-runtime";
3
3
  import B from "react-modal";
4
4
  import { KitSpace as D } from "../../Layout/Space/index.js";
@@ -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' | 'className' | 'style'> {
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/index33.css";
2
- import { I } from "../../../chunks/SnackBarProvider.nqDzpFo3.js";
3
- import { jsxs as l, jsx as i, Fragment as _ } from "react/jsx-runtime";
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 x } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
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 A, faEllipsisV as C } from "@fortawesome/free-solid-svg-icons";
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 D } from "../../Layout/Divider/index.js";
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 = (a) => i(T, { type: "tertiary", size: "m", icon: a.icon, onClick: a.onClick, className: a.className, disabled: a.disabled, children: a.label }, a.key), E = ({ message: a, actions: s, closable: v, onClose: r, actionsInDropDown: b, className: f, style: h }) => {
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 } = x(), y = s && s.length > 0, c = v !== void 0, N = k(u, w["kit-snackbar"], f), B = () => {
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 && i("div", { className: "kit-snackbar-close", children: i("div", { className: "kit-snackbar-close-button", onClick: B, children: i(m, { icon: A }) }) }), i("div", { className: "kit-snackbar-message", children: i(g.Text, { className: "kit-snackbar-title", children: a }) }), y && l(_, { children: [(a || c) && i(D, { type: "vertical", noMargin: !0, className: "kit-snackbar-divider" }), i("div", { className: "kit-snackbar-actions", children: i(d, { actions: K, actionsInDropdown: !!b, disabled: !1, actionRenderer: j, ellipsisButton: i(d.EllipsisButton, { type: "tertiary", size: "m", className: "kit-snackbar-action", icon: i(m, { icon: C }) }), threshold: 3 }) })] })] });
28
- }, F = E, z = 4e3, P = ({ duration: a = z, ...s }) => (e(), p(i(F, { ...s }), {
29
- duration: a === 0 ? 1 / 0 : a
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 = I;
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/index43.css";
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 $, useMemo as F, useEffect as L, cloneElement as G } from "react";
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 w } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
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-btn_1bsfq_2"
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 } = w(), [E, O] = $(!1), g = F(() => Z(a), [a]), R = V(f), A = !s && u, P = y(j, X["kit-btn"], b, {
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 L(() => {
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 q() {
52
+ function F() {
53
53
  d && (clearTimeout(d), d = null);
54
54
  }
55
- return q;
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 } = w(), [s, p] = $(m), v = y(h, tt["kit-btn-split"], {
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/index47.css";
1
+ import "../../../assets/index49.css";
2
2
  import { jsx as y } from "react/jsx-runtime";
3
3
  import { forwardRef as c, useMemo as m } from "react";
4
4
  import K from "antd/es/typography/Base";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index27.css";
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 { jsx as s } from "react/jsx-runtime";
2
- import { isValidColor as n, getColor as c } from "../../../utils/functions/index.js";
3
- import m from "classnames";
4
- import { c as a } from "../../../chunks/styles.module.4eW8VunD.js";
5
- const g = ({ className: t, style: o, borderColor: r = "primary", children: i }) => {
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 (r === "primary")
10
+ if (t === "primary")
8
11
  return {
9
12
  "--section-border-color": "var(--general-utilities-main-default)"
10
13
  };
11
- if (!(!r || !n(r)))
14
+ if (!(!t || !c(t)))
12
15
  return {
13
- "--section-border-color": c(r)
16
+ "--section-border-color": s(t)
14
17
  };
15
18
  };
16
- return s("section", { className: m(t, a.borderSection), style: { ...e(), ...o }, children: i });
19
+ return n("section", { className: l(i, u.borderSection), style: { ...e(), ...r }, children: o });
17
20
  };
18
21
  export {
19
- g as KitSection
22
+ S as KitSection
20
23
  };
@@ -1,4 +1,4 @@
1
- import "../../../assets/index18.css";
1
+ import "../../../assets/index19.css";
2
2
  import { jsx as o, jsxs as s, Fragment as a } from "react/jsx-runtime";
3
3
  import { useMemo as c } from "react";
4
4
  import { Breadcrumb as d } from "antd";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index34.css";
1
+ import "../../../assets/index35.css";
2
2
  import { jsxs as h, jsx as t } from "react/jsx-runtime";
3
3
  import { u as x } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
4
4
  import g from "classnames";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index19.css";
1
+ import "../../../assets/index20.css";
2
2
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
3
3
  import { cloneElement as s, useMemo as f } from "react";
4
4
  import { KitTypography as g } from "../../General/Typography/index.js";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index21.css";
1
+ import "../../../assets/index22.css";
2
2
  import { jsx as s } from "react/jsx-runtime";
3
3
  import { Pagination as p } from "antd";
4
4
  import { u as c } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index35.css";
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/index44.css";
2
- import { jsx as c, jsxs as f } from "react/jsx-runtime";
3
- import { useEffect as y, forwardRef as x, useState as z, useRef as H, useImperativeHandle as R } from "react";
4
- import { u as $ } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
- import j from "classnames";
6
- import { KitIdCard as D } from "../../DataDisplay/IdCard/index.js";
7
- import { KitButton as _ } from "../../General/Button/index.js";
8
- import { FontAwesomeIcon as v } from "@fortawesome/react-fontawesome";
9
- import { faChevronLeft as B, faClose as F } from "@fortawesome/free-solid-svg-icons";
10
- const T = "_floating_11y40_18", q = "_header_11y40_29", G = "_back_11y40_35", J = "_close_11y40_36", M = "_card_11y40_48", Q = "_content_11y40_51", i = {
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: T,
12
+ floating: q,
13
13
  "size-m": "_size-m_11y40_26",
14
- header: q,
15
- back: G,
16
- close: J,
17
- card: M,
18
- content: Q
19
- }, U = ({ key: o, onKeyPressed: n, active: e = !1 }) => {
20
- y(() => {
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 = (a) => {
24
- a.key === o && (a.preventDefault(), n());
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
- }, V = ({ ref: o, onClickOutside: n, active: e = !1 }) => {
31
- y(() => {
30
+ }, W = ({ ref: o, onClickOutside: n, active: e = !1 }) => {
31
+ k(() => {
32
32
  if (!e)
33
33
  return;
34
- const t = (a) => {
35
- o.current && !o.current.contains(a.target) && n();
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
- }, W = x(({ floating: o, closable: n, leftActionProps: e, idCardProps: t, onClose: a, children: k, onOpenChanged: s, size: m = "s", initialOpen: p = !1, closeOnEsc: N = !1, closeOnOutsideClick: w = !1, ...I }, K) => {
42
- var l;
43
- const { appId: E } = $(), [b, r] = z(p), u = H(null);
44
- R(K, () => ({
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
- r(!0), s == null || s(!0);
46
+ d(!0), s == null || s(!0);
47
47
  },
48
48
  close: () => {
49
- r(!1), s == null || s(!1);
49
+ d(!1), s == null || s(!1);
50
50
  }
51
51
  }));
52
- const d = () => {
53
- r(!1), s == null || s(!1), a == null || a();
52
+ const m = () => {
53
+ d(!1), s == null || s(!1), l == null || l();
54
54
  };
55
- U({ key: "Escape", onKeyPressed: d, active: N }), V({ ref: u, onClickOutside: d, active: w });
56
- const L = j(E, i["kit-side-panel"], {
57
- [i.floating]: o,
58
- [i["size-" + m]]: m
59
- }), S = e || t || n, h = {
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: (l = e == null ? void 0 : e.icon) !== null && l !== void 0 ? l : c(v, { icon: B })
61
+ icon: (r = e == null ? void 0 : e.icon) !== null && r !== void 0 ? r : c(y, { icon: F })
62
62
  };
63
- return b ? f("section", { ref: u, className: L, "aria-label": "side-panel", ...I, children: [S && f("div", { className: i.header, children: [e && c(_, { type: "secondary", ...h, className: `${i.back} ${e.className}` }), c("div", { className: i.card, children: t && c(D, { ...t, size: "large" }) }), n && c(_, { className: i.close, onClick: d, icon: c(v, { icon: F }) })] }), c("div", { className: i.content, children: k })] }) : null;
64
- }), X = W;
65
- X.displayName = "KitSidePanel";
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
- X as KitSidePanel
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;
@@ -1,4 +1,4 @@
1
- import "../../../assets/index20.css";
1
+ import "../../../assets/index21.css";
2
2
  import { jsx as i } from "react/jsx-runtime";
3
3
  import { Steps as r } from "antd";
4
4
  import { u as m } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,7 +1,56 @@
1
- export { KitAvatar, KitBadge, KitItemCard, KitCollapse, KitEmpty, KitError, KitIdCard, KitImage, KitItemList, KitRedirectCard, KitTable, KitTooltip, KitTree, KitTabs, KitTag, KitTour } from './DataDisplay';
2
- export { KitCheckbox, KitInputWrapper, KitInput, KitInputNumber, KitRadio, KitRate, KitRichText, KitSelect, KitSwitch, KitDatePicker, KitAutoComplete, KitUpload, KitSlider, KitColorPicker, KitFilter } from './DataEntry';
3
- export { KitAlert, KitModal, KitProgress, KitSnackBarProvider, openKitSnackBar, closeKitSnackBar, useKitNotification, KitNotification, KitLoader } from './Feedback';
4
- export { KitButton, KitTypography, KitIcon } from './General';
5
- export { KitDivider, KitGrid, KitSpace, KitSection } from './Layout';
6
- export { KitBreadcrumb, KitDropDown, KitPageHeader, KitHeader, KitSteps, KitPagination, KitSideMenu, KitSidePanel } from './Navigation';
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';