aristid-ds 13.0.0-4e097fb → 13.0.0-6d5e16d

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 (90) hide show
  1. package/CHANGELOG.md +36 -4
  2. package/dist/Kit/Ant/index.d.ts +1 -0
  3. package/dist/Kit/App/index.js +14 -14
  4. package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
  5. package/dist/Kit/DataDisplay/RedirectCard/index.js +1 -1
  6. package/dist/Kit/DataDisplay/Table/index.js +1 -1
  7. package/dist/Kit/DataDisplay/Tag/index.js +1 -1
  8. package/dist/Kit/DataDisplay/Tree/index.js +5 -5
  9. package/dist/Kit/DataEntry/AutoComplete/index.js +1 -1
  10. package/dist/Kit/DataEntry/Checkbox/index.js +1 -1
  11. package/dist/Kit/DataEntry/ColorPicker/index.js +2 -2
  12. package/dist/Kit/DataEntry/DatePicker/index.js +19 -19
  13. package/dist/Kit/DataEntry/Input/index.js +2 -2
  14. package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
  15. package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
  16. package/dist/Kit/DataEntry/Radio/index.js +2 -2
  17. package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +1 -1
  18. package/dist/Kit/DataEntry/RichText/MenuBar/ButtonTooltip/index.js +4 -4
  19. package/dist/Kit/DataEntry/RichText/MenuBar/ButtonTooltip/types.d.ts +1 -0
  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/MenuActionList/index.d.ts +3 -0
  23. package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js +11 -0
  24. package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/types.d.ts +5 -0
  25. package/dist/Kit/DataEntry/RichText/MenuBar/index.js +38 -18
  26. package/dist/Kit/DataEntry/RichText/MenuBar/miniLayout.d.ts +3 -0
  27. package/dist/Kit/DataEntry/RichText/MenuBar/types.d.ts +7 -0
  28. package/dist/Kit/DataEntry/RichText/index.js +52 -47
  29. package/dist/Kit/DataEntry/RichText/types.d.ts +1 -0
  30. package/dist/Kit/DataEntry/Select/index.js +2 -2
  31. package/dist/Kit/DataEntry/Upload/UploadedItem.d.ts +4 -0
  32. package/dist/Kit/DataEntry/Upload/convertBytes.d.ts +2 -0
  33. package/dist/Kit/DataEntry/Upload/getBase64.d.ts +2 -0
  34. package/dist/Kit/DataEntry/Upload/index.d.ts +2 -8
  35. package/dist/Kit/DataEntry/Upload/index.js +81 -26
  36. package/dist/Kit/DataEntry/Upload/types.d.ts +30 -12
  37. package/dist/Kit/Feedback/Alert/index.js +1 -1
  38. package/dist/Kit/Feedback/Modal/index.js +1 -1
  39. package/dist/Kit/Feedback/SnackBar/index.js +16 -16
  40. package/dist/Kit/General/Button/index.js +1 -1
  41. package/dist/Kit/Layout/PageLayout/index.js +1 -1
  42. package/dist/Kit/Navigation/Header/index.js +1 -1
  43. package/dist/Kit/Navigation/SideMenu/index.js +1 -1
  44. package/dist/Kit/Navigation/SidePanel/index.js +50 -47
  45. package/dist/Kit/index.js +1 -1
  46. package/dist/assets/InputWrapper.css +1 -1
  47. package/dist/assets/index22.css +1 -1
  48. package/dist/assets/index23.css +1 -1
  49. package/dist/assets/index24.css +1 -1
  50. package/dist/assets/index25.css +1 -1
  51. package/dist/assets/index26.css +1 -1
  52. package/dist/assets/index27.css +1 -1
  53. package/dist/assets/index31.css +1 -1
  54. package/dist/assets/index32.css +1 -1
  55. package/dist/assets/index33.css +1 -1
  56. package/dist/assets/index34.css +1 -1
  57. package/dist/assets/index35.css +1 -1
  58. package/dist/assets/index36.css +1 -1
  59. package/dist/assets/index37.css +1 -1
  60. package/dist/assets/index38.css +1 -1
  61. package/dist/assets/index39.css +1 -1
  62. package/dist/assets/index40.css +1 -1
  63. package/dist/assets/index41.css +1 -1
  64. package/dist/assets/index42.css +1 -1
  65. package/dist/assets/index43.css +1 -1
  66. package/dist/assets/index44.css +1 -1
  67. package/dist/assets/index45.css +1 -1
  68. package/dist/assets/index46.css +1 -1
  69. package/dist/assets/index6.css +1 -1
  70. package/dist/assets/index9.css +1 -1
  71. package/dist/chunks/{InputWrapper.DPygx2dQ.js → InputWrapper.l5p7rU3g.js} +7 -7
  72. package/dist/chunks/{SnackBarProvider.nqDzpFo3.js → SnackBarProvider.T-xLQpTN.js} +10 -10
  73. package/dist/index.es.js +1 -1
  74. package/dist/index.umd.js +4 -4
  75. package/dist/theme/types/index.d.ts +0 -2
  76. package/dist/translation/en-US/components/DataEntry/RichText/index.js +2 -1
  77. package/dist/translation/en-US/components/DataEntry/Upload/index.d.ts +2 -0
  78. package/dist/translation/en-US/components/DataEntry/Upload/index.js +11 -0
  79. package/dist/translation/en-US/index.js +6 -4
  80. package/dist/translation/fr-FR/components/DataEntry/RichText/index.js +2 -1
  81. package/dist/translation/fr-FR/components/DataEntry/Upload/index.d.ts +2 -0
  82. package/dist/translation/fr-FR/components/DataEntry/Upload/index.js +11 -0
  83. package/dist/translation/fr-FR/index.js +8 -6
  84. package/dist/translation/types/components/DataEntry/RichText/index.d.ts +1 -0
  85. package/dist/translation/types/components/DataEntry/Upload/index.d.ts +8 -0
  86. package/dist/translation/types/index.d.ts +2 -0
  87. package/package.json +1 -1
  88. package/dist/theme/aristid/components/DataEntry/Upload/index.d.ts +0 -3
  89. package/dist/theme/aristid/components/DataEntry/Upload/index.js +0 -55
  90. package/dist/theme/types/components/DataEntry/Upload/index.d.ts +0 -178
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Changelog
2
2
 
3
+ ## [X.X.X](https://www.npmjs.com/package/aristid-ds/v/X.X.X) (2025-XX-XX)
4
+
5
+ ### ✨ Features
6
+
7
+ - **⚠️ Breaking change - Upload**:
8
+ - Remove the following properties: (@philippechevieux)
9
+ - `listType`
10
+ - `itemRender`
11
+ - `openFileDialogOnClick`
12
+ - `loading`
13
+ - `isImageUrl`
14
+ - `imageUrl`
15
+ - `progress`
16
+ - `previewFile`
17
+ - `showUploadList`
18
+ - Update component render (@philippechevieux)
19
+ - **RichText**:
20
+ - Add `mini` property to display a minified version of the component (@renaudamsellem)
21
+ - **SidePanel**:
22
+ - Add opening and closing animations (@philippechevieux)
23
+
24
+ ### 🐛 Bug Fixes
25
+
26
+ - **DatePicker/RangePicker**
27
+ - Fix color of prefix icon when component is `disabled`, in `warning` or `error` status (@philippechevieux)
28
+
29
+ ### 📚 Documentation
30
+
31
+ - **Tree**:
32
+ - Add exemple of a long title with ellipsis (@philippechevieux)
33
+
3
34
  ## [13.0.0](https://www.npmjs.com/package/aristid-ds/v/13.0.0) (2025-02-17)
4
35
 
5
36
  ### ✨ CI
@@ -60,10 +91,6 @@ The following points are the impact of this version upgrade:
60
91
 
61
92
  ### ✨ Features
62
93
 
63
- - **Snackbar**:
64
- - Add `snackbarId` property to allow to update a snackbar (@evoiron)
65
- - **Button**:
66
- - Add `action` type button (@evoiron)
67
94
  - **⚠️ Breaking change - Tree**:
68
95
  - Remove `showLine` and `switcherIcon` properties (@philippechevieux)
69
96
  - Update component render (@philippechevieux)
@@ -72,12 +99,17 @@ The following points are the impact of this version upgrade:
72
99
  - Complete rewriting of the `Progress` component without Ant (@philippechevieux)
73
100
  - Remove all Ant props (@philippechevieux)
74
101
  - `circle` and `dashboard` type are no longer available (@philippechevieux)
102
+ - **Snackbar**:
103
+ - Add `snackbarId` property to allow to update a snackbar (@evoiron)
104
+ - **Button**:
105
+ - Add `action` type button (@evoiron)
75
106
  - **Tabs**:
76
107
  - Add controlled state to handle navigation within tabs (@renaudamsellem)
77
108
  - **SidePanel**:
78
109
  - Add `headerExtra` prop to display extra content above header title (@philippechevieux)
79
110
 
80
111
  ### 🐛 Bug Fixes
112
+
81
113
  - **SidePanel**
82
114
  - Fix `closeOnOutsideClick` behavior to listen to `click` event instead on `mousedeown` (@evoiron)
83
115
  - **ColorPicker**
@@ -66,3 +66,4 @@ export { TreeSelect as AntTreeSelect } from 'antd';
66
66
  export { Typography as AntTypography } from 'antd';
67
67
  export { Upload as AntUpload } from 'antd';
68
68
  export { Watermark as AntWatermark } from 'antd';
69
+ export type { UploadFile } from 'antd/lib';
@@ -2,20 +2,20 @@ import "../../assets/index28.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 { I as b } from "../../chunks/SnackBarProvider.nqDzpFo3.js";
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 I } from "../../theme/utils/tokens-mapper/index.js";
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 T } from "../../translation/en-US/index.js";
14
- import { K as $, u as j } from "../../chunks/useKitLocale.96CdK3og.js";
15
- import { mapKitLocaleToAntdLocale as k } from "../../translation/utils/index.js";
16
- import { d as x } from "../../chunks/notification-provider.9msrEKBe.js";
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 A = "aristid-ds-global", F = (t, e) => {
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: A, hasSourceMap: !1, children: `
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: F(a({ general: { utilities: l.utilities } }, e), c) }), t] }) });
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($.Provider, { value: e, children: t });
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(T, r);
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 } = j();
58
+ const { locale: o, setKitLocale: r } = k();
59
59
  return P(() => {
60
60
  e !== void 0 && r(e);
61
- }, [e, r]), n(C, { theme: I, locale: k(e), renderEmpty: () => {
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(x, { children: [n(b, {}), t] }) });
64
+ }, children: f(A, { children: [n(b, {}), t] }) });
65
65
  };
66
66
  export {
67
67
  te as KitApp
@@ -1,4 +1,4 @@
1
- import "../../../assets/index37.css";
1
+ import "../../../assets/index36.css";
2
2
  import { jsx as t, jsxs as f } from "react/jsx-runtime";
3
3
  import { cloneElement as C, useState as N } from "react";
4
4
  import { Collapse as E } from "antd";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index25.css";
1
+ import "../../../assets/index24.css";
2
2
  import { jsx as i, jsxs as d, Fragment as x } from "react/jsx-runtime";
3
3
  import T from "classnames";
4
4
  import { forwardRef as _ } from "react";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index45.css";
1
+ import "../../../assets/index44.css";
2
2
  import { jsx as o } from "react/jsx-runtime";
3
3
  import { forwardRef as z, useMemo as k } from "react";
4
4
  import { Table as w } from "antd";
@@ -1,4 +1,4 @@
1
- import "../../../assets/index38.css";
1
+ import "../../../assets/index37.css";
2
2
  import { jsx as i, Fragment as C, jsxs as x } from "react/jsx-runtime";
3
3
  import { forwardRef as D, useState as W, useRef as N, useLayoutEffect as E } from "react";
4
4
  import O from "classnames";
@@ -1,19 +1,19 @@
1
1
  import "../../../assets/index6.css";
2
2
  import { jsx as o } from "react/jsx-runtime";
3
- import { Tree as s } from "antd";
3
+ import { Tree as c } from "antd";
4
4
  import { u as p } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
5
5
  import v from "classnames";
6
6
  import { FontAwesomeIcon as n } from "@fortawesome/react-fontawesome";
7
7
  import { faCircleNotch as u, faCaretRight as f } from "@fortawesome/free-solid-svg-icons";
8
8
  import { u as g } from "../../../chunks/useKitLocale.96CdK3og.js";
9
9
  const D = {
10
- "kit-tree": "_kit-tree_1hac1_2"
10
+ "kit-tree": "_kit-tree_gh8v4_2"
11
11
  }, h = ({ className: l, switcherLoadingIcon: e, ...d }) => {
12
- const { appId: m } = p(), { locale: i } = g(), c = v(m, D["kit-tree"], l);
13
- return o(s, { ...d, switcherLoadingIcon: e ?? o(n, { icon: u, spin: !0 }), switcherIcon: (a) => {
12
+ const { appId: m } = p(), { locale: i } = g(), s = v(m, D["kit-tree"], l);
13
+ return o(c, { ...d, switcherLoadingIcon: e ?? o(n, { icon: u, spin: !0 }), switcherIcon: (a) => {
14
14
  var r, t;
15
15
  return o("span", { role: "img", "aria-label": a.expanded ? (r = i.General) === null || r === void 0 ? void 0 : r.close : (t = i.General) === null || t === void 0 ? void 0 : t.open, children: o(n, { icon: f, rotation: a.expanded ? 90 : void 0 }) });
16
- }, className: c, blockNode: !0, draggable: !1, onDragEnd: void 0, onDragEnter: void 0, onDragLeave: void 0, onDragOver: void 0, onDragStart: void 0, onDrop: void 0 });
16
+ }, className: s, blockNode: !0, draggable: !1, onDragEnd: void 0, onDragEnter: void 0, onDragLeave: void 0, onDragOver: void 0, onDragStart: void 0, onDrop: void 0 });
17
17
  };
18
18
  h.displayName = "KitTree";
19
19
  export {
@@ -3,7 +3,7 @@ import { jsx as t } from "react/jsx-runtime";
3
3
  import { forwardRef as x, useState as y } from "react";
4
4
  import { AutoComplete as F } from "antd";
5
5
  import { KitInput as O } from "../Input/index.js";
6
- import { K as P } from "../../../chunks/InputWrapper.DPygx2dQ.js";
6
+ import { K as P } from "../../../chunks/InputWrapper.l5p7rU3g.js";
7
7
  import { FontAwesomeIcon as j } from "@fortawesome/react-fontawesome";
8
8
  import { faMagnifyingGlass as B } from "@fortawesome/free-solid-svg-icons";
9
9
  import G from "classnames";
@@ -7,7 +7,7 @@ import { u as ae } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
7
  import ne from "rc-util/es/omit";
8
8
  import { ConfigContext as ie } from "antd/es/config-provider/";
9
9
  import ce from "antd/es/checkbox/style";
10
- import { K as ue } from "../../../chunks/InputWrapper.DPygx2dQ.js";
10
+ import { K as ue } from "../../../chunks/InputWrapper.l5p7rU3g.js";
11
11
  const j = P(null), te = ({ defaultValue: b, children: v, options: a = [], prefixCls: f, className: e, wrapperClassName: x, status: g, rootClassName: t, style: i, onChange: d, label: h, helper: o, required: r, actions: B, extra: k, ...n }, D) => {
12
12
  const { getPrefixCls: E, direction: T } = R(ie), [m, K] = w(n.value || b || []), [W, S] = w([]);
13
13
  I(() => {
@@ -1,7 +1,7 @@
1
- import "../../../assets/index26.css";
1
+ import "../../../assets/index25.css";
2
2
  import { forwardRef as Y, useRef as q, useState as m, useEffect as b, useImperativeHandle as z, createElement as J } from "react";
3
3
  import { jsxs as Q, jsx as s } from "react/jsx-runtime";
4
- import { K as Z } from "../../../chunks/InputWrapper.DPygx2dQ.js";
4
+ import { K as Z } from "../../../chunks/InputWrapper.l5p7rU3g.js";
5
5
  import { u as V } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
6
6
  import { ColorPicker as oo } from "antd";
7
7
  import E from "classnames";
@@ -1,30 +1,30 @@
1
- import "../../../assets/index46.css";
1
+ import "../../../assets/index45.css";
2
2
  import { jsxs as R, jsx as e } from "react/jsx-runtime";
3
3
  import { forwardRef as C } from "react";
4
4
  import { DatePicker as K } from "antd";
5
5
  import D from "classnames";
6
6
  import { FontAwesomeIcon as o } from "@fortawesome/react-fontawesome";
7
- import { faChevronLeft as p, faChevronRight as h, faClock as j, faCalendar as g, faCircleXmark as w, faArrowRight as z } from "@fortawesome/free-solid-svg-icons";
8
- import { K as A } from "../../../chunks/InputWrapper.DPygx2dQ.js";
9
- import { u as L } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
10
- const W = {
11
- "kit-datepicker": "_kit-datepicker_1nfj8_2",
12
- "kit-rangepicker": "_kit-rangepicker_1nfj8_134"
13
- }, T = () => R("div", { className: "double-chevron", children: [e(o, { className: "chevron-icon double-chevron-left-icon", icon: p }), e(o, { className: "chevron-icon", icon: p })] }), X = () => R("div", { className: "double-chevron", children: [e(o, { className: "chevron-icon", icon: h }), e(o, { className: "chevron-icon double-chevron-right-icon", icon: h })] }), B = C(({ label: I, helper: b, htmlFor: d, suffixIcon: v, className: N, wrapperClassName: m, picker: a = "date", prefix: t, allowClear: s = !0, required: f, actions: r, extra: c, readonly: i = !1, disabled: u, ...n }, k) => {
7
+ import { faChevronLeft as p, faChevronRight as h, faClock as g, faCalendar as w, faCircleXmark as j, faArrowRight as y } from "@fortawesome/free-solid-svg-icons";
8
+ import { K as q } from "../../../chunks/InputWrapper.l5p7rU3g.js";
9
+ import { u as A } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
10
+ const L = {
11
+ "kit-datepicker": "_kit-datepicker_3mnqq_2",
12
+ "kit-rangepicker": "_kit-rangepicker_3mnqq_138"
13
+ }, W = () => R("div", { className: "double-chevron", children: [e(o, { className: "chevron-icon double-chevron-left-icon", icon: p }), e(o, { className: "chevron-icon", icon: p })] }), T = () => R("div", { className: "double-chevron", children: [e(o, { className: "chevron-icon", icon: h }), e(o, { className: "chevron-icon double-chevron-right-icon", icon: h })] }), z = C(({ label: I, helper: b, htmlFor: d, suffixIcon: v, className: N, wrapperClassName: m, picker: a = "date", prefix: t, allowClear: s = !0, required: f, actions: r, extra: c, readonly: i = !1, disabled: u, ...n }, k) => {
14
14
  var l;
15
- const { appId: _ } = L(), x = D(_, W["kit-datepicker"], N, {
15
+ const { appId: _ } = A(), x = D(_, L["kit-datepicker"], N, {
16
16
  "kit-picker-readonly": i
17
- }), y = t ?? (a === "time" ? e(o, { icon: j }) : e(o, { icon: g }));
18
- return e(A, { label: I, helper: b, htmlFor: d, disabled: u, status: n.status, className: m, required: f, extra: c ?? r, children: e(K, { ...n, id: (l = n.id) !== null && l !== void 0 ? l : d, required: f, picker: a, disabled: i || u, variant: i ? "borderless" : void 0, ref: k, allowClear: !i && s && { clearIcon: e(o, { "aria-label": "clear", icon: w }) }, prefix: y, suffixIcon: s ? void 0 : v, className: x, prevIcon: e(o, { className: "chevron-icon", icon: p }), nextIcon: e(o, { className: "chevron-icon", icon: h }), superPrevIcon: e(T, {}), superNextIcon: e(X, {}) }) });
19
- }), E = C(({ label: I, className: b, helper: d, htmlFor: v, suffixIcon: N, picker: m, prefix: a, allowClear: t = !0, required: s, actions: f, extra: r, readonly: c = !1, ...i }, u) => {
17
+ }), $ = t ?? (a === "time" ? e(o, { icon: g }) : e(o, { icon: w }));
18
+ return e(q, { label: I, helper: b, htmlFor: d, disabled: u, status: n.status, className: m, required: f, extra: c ?? r, children: e(K, { ...n, id: (l = n.id) !== null && l !== void 0 ? l : d, required: f, picker: a, disabled: i || u, variant: i ? "borderless" : void 0, ref: k, allowClear: !i && s && { clearIcon: e(o, { "aria-label": "clear", icon: j }) }, prefix: $, suffixIcon: s ? void 0 : v, className: x, prevIcon: e(o, { className: "chevron-icon", icon: p }), nextIcon: e(o, { className: "chevron-icon", icon: h }), superPrevIcon: e(W, {}), superNextIcon: e(T, {}) }) });
19
+ }), B = C(({ label: I, className: b, helper: d, htmlFor: v, suffixIcon: N, picker: m, prefix: a, allowClear: t = !0, required: s, actions: f, extra: r, readonly: c = !1, ...i }, u) => {
20
20
  var n;
21
- const { appId: k } = L(), l = () => i.disabled === void 0 ? !1 : typeof i.disabled == "boolean" ? i.disabled : i.disabled[0] && i.disabled[1], _ = D(k, W["kit-rangepicker"], b, {
21
+ const { appId: k } = A(), l = () => i.disabled === void 0 ? !1 : typeof i.disabled == "boolean" ? i.disabled : i.disabled[0] && i.disabled[1], _ = D(k, L["kit-rangepicker"], b, {
22
22
  "kit-picker-readonly": c
23
- }), x = a ?? (m === "time" ? e(o, { icon: j }) : e(o, { icon: g }));
24
- return e(A, { label: I, helper: d, htmlFor: v, disabled: l(), status: i.status, required: s, extra: r ?? f, children: e(K.RangePicker, { ...i, id: (n = i.id) !== null && n !== void 0 ? n : v, picker: m, ref: u, required: s, disabled: c || i.disabled, variant: c ? "borderless" : void 0, suffixIcon: t ? void 0 : N, allowClear: t && { clearIcon: e(o, { "aria-label": "clear", icon: w }) }, className: _, prefix: x, separator: e(o, { icon: z }), prevIcon: e(o, { className: "chevron-icon", icon: p }), nextIcon: e(o, { className: "chevron-icon", icon: h }), superPrevIcon: e(T, {}), superNextIcon: e(X, {}) }) });
25
- }), G = E, $ = B;
26
- $.displayName = "KitDatePicker";
27
- $.RangePicker = G;
23
+ }), x = a ?? (m === "time" ? e(o, { icon: g }) : e(o, { icon: w }));
24
+ return e(q, { label: I, helper: d, htmlFor: v, disabled: l(), status: i.status, required: s, extra: r ?? f, children: e(K.RangePicker, { ...i, id: (n = i.id) !== null && n !== void 0 ? n : v, picker: m, ref: u, required: s, disabled: c || i.disabled, variant: c ? "borderless" : void 0, suffixIcon: t ? void 0 : N, allowClear: t && { clearIcon: e(o, { "aria-label": "clear", icon: j }) }, className: _, prefix: x, separator: e(o, { icon: y }), prevIcon: e(o, { className: "chevron-icon", icon: p }), nextIcon: e(o, { className: "chevron-icon", icon: h }), superPrevIcon: e(W, {}), superNextIcon: e(T, {}) }) });
25
+ }), E = B, X = z;
26
+ X.displayName = "KitDatePicker";
27
+ X.RangePicker = E;
28
28
  export {
29
- $ as KitDatePicker
29
+ X as KitDatePicker
30
30
  };
@@ -1,10 +1,10 @@
1
- import "../../../assets/index39.css";
1
+ import "../../../assets/index38.css";
2
2
  import { jsx as l } from "react/jsx-runtime";
3
3
  import { forwardRef as p } from "react";
4
4
  import { Input as w } from "antd";
5
5
  import { faCircleXmark as k, faEye as z, faEyeSlash as C } from "@fortawesome/free-solid-svg-icons";
6
6
  import { FontAwesomeIcon as b } from "@fortawesome/react-fontawesome";
7
- import { K as h } from "../../../chunks/InputWrapper.DPygx2dQ.js";
7
+ import { K as h } from "../../../chunks/InputWrapper.l5p7rU3g.js";
8
8
  import { u as K } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
9
9
  import x from "classnames";
10
10
  import { KitTypography as y } from "../../General/Typography/index.js";
@@ -2,7 +2,7 @@ import "../../../assets/index7.css";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  import { forwardRef as k, useState as x } from "react";
4
4
  import { InputNumber as _ } from "antd";
5
- import { K as N } from "../../../chunks/InputWrapper.DPygx2dQ.js";
5
+ import { K as N } from "../../../chunks/InputWrapper.l5p7rU3g.js";
6
6
  import { u as h } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
7
7
  import w from "classnames";
8
8
  const y = {
@@ -1,4 +1,4 @@
1
- import { K as t } from "../../../chunks/InputWrapper.DPygx2dQ.js";
1
+ import { K as t } from "../../../chunks/InputWrapper.l5p7rU3g.js";
2
2
  export {
3
3
  t as KitInputWrapper
4
4
  };
@@ -1,4 +1,4 @@
1
- import "../../../assets/index40.css";
1
+ import "../../../assets/index39.css";
2
2
  import { jsx as i } from "react/jsx-runtime";
3
3
  import k from "classnames";
4
4
  import J from "rc-util/es/hooks/useMergedState";
@@ -8,7 +8,7 @@ import X from "antd/es/config-provider/SizeContext";
8
8
  import Y from "rc-util/es/pickAttrs";
9
9
  import { Radio as Z } from "antd";
10
10
  import { u as ee } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
11
- import { K as ae } from "../../../chunks/InputWrapper.DPygx2dQ.js";
11
+ import { K as ae } from "../../../chunks/InputWrapper.l5p7rU3g.js";
12
12
  import te from "antd/es/radio/style";
13
13
  const K = O(null), re = K.Provider, oe = {
14
14
  "kit-radio": "_kit-radio_lmqef_2"
@@ -1,4 +1,4 @@
1
- import "../../../../assets/index23.css";
1
+ import "../../../../assets/index22.css";
2
2
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
3
3
  import h from "classnames";
4
4
  import { u as s } from "../../../../chunks/useKitTheme.KSAU-Pdv.js";
@@ -1,6 +1,6 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { KitTooltip as e } from "../../../../DataDisplay/Tooltip/index.js";
3
- const r = ({ title: o, children: t }) => p(e, { title: o, placement: "top", mouseEnterDelay: 0.8, children: t });
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { KitTooltip as i } from "../../../../DataDisplay/Tooltip/index.js";
3
+ const l = ({ title: o, open: t, children: p }) => e(i, { title: o, placement: "top", mouseEnterDelay: 0.8, open: t, children: p });
4
4
  export {
5
- r as KitButtonTooltip
5
+ l as KitButtonTooltip
6
6
  };
@@ -1,3 +1,4 @@
1
1
  export type IKitButtonTooltip = {
2
2
  title?: string;
3
+ open?: boolean;
3
4
  };
@@ -1,4 +1,4 @@
1
- import "../../../../../assets/index24.css";
1
+ import "../../../../../assets/index23.css";
2
2
  import { jsx as i, Fragment as z, jsxs as _ } from "react/jsx-runtime";
3
3
  import { KitTypography as m } from "../../../../General/Typography/index.js";
4
4
  import { KitDropDown as w } from "../../../../Navigation/DropDown/index.js";
@@ -1,4 +1,4 @@
1
- import "../../../../../assets/index36.css";
1
+ import "../../../../../assets/index35.css";
2
2
  import { jsx as t, jsxs as y, Fragment as S } from "react/jsx-runtime";
3
3
  import { faClose as q, faCheck as w, faLink as N } from "@fortawesome/free-solid-svg-icons";
4
4
  import { FontAwesomeIcon as _ } from "@fortawesome/react-fontawesome";
@@ -0,0 +1,3 @@
1
+ import { FunctionComponent, PropsWithChildren } from 'react';
2
+ import { IKitMenuActionList } from './types';
3
+ export declare const KitMenuActionList: FunctionComponent<PropsWithChildren<IKitMenuActionList>>;
@@ -0,0 +1,11 @@
1
+ import { jsxs as r, Fragment as m, jsx as t } from "react/jsx-runtime";
2
+ import { KitFontStylesButtons as n } from "../FontStylesButtons/index.js";
3
+ import { KitDivider as o } from "../../../../Layout/Divider/index.js";
4
+ import { KitTextAlignButtons as e } from "../TextAlignButtons/index.js";
5
+ import { KitLinkButton as p } from "../LinkButton/index.js";
6
+ import { KitListButtons as s } from "../ListButtons/index.js";
7
+ import { KitIndentListButtons as c } from "../IndentListButtons/index.js";
8
+ const B = ({ editor: i }) => r(m, { children: [t(n, { editor: i }), t(o, { type: "vertical" }), t(e, { editor: i }), t(o, { type: "vertical" }), t(p, { editor: i }), t(o, { type: "vertical" }), t(s, { editor: i }), t(o, { type: "vertical" }), t(c, { editor: i })] });
9
+ export {
10
+ B as KitMenuActionList
11
+ };
@@ -0,0 +1,5 @@
1
+ import {type Editor} from '@tiptap/core';
2
+
3
+ export type IKitMenuActionList = {
4
+ editor: Editor;
5
+ };
@@ -1,21 +1,41 @@
1
- import "../../../../assets/index22.css";
2
- import { jsxs as m, jsx as t } from "react/jsx-runtime";
3
- import n from "classnames";
4
- import { u as p } from "../../../../chunks/useKitTheme.KSAU-Pdv.js";
5
- import { KitDivider as r } from "../../../Layout/Divider/index.js";
6
- import { KitUndoRedoButtons as s } from "./UndoRedoButtons/index.js";
7
- import { KitFontSizeSelect as c } from "./FontSizeSelect/index.js";
8
- import { KitFontStylesButtons as a } from "./FontStylesButtons/index.js";
9
- import { KitTextAlignButtons as u } from "./TextAlignButtons/index.js";
10
- import { KitLinkButton as l } from "./LinkButton/index.js";
11
- import { KitListButtons as f } from "./ListButtons/index.js";
12
- import { KitIndentListButtons as K } from "./IndentListButtons/index.js";
13
- const v = {
14
- "kit-rich-text-menu-bar": "_kit-rich-text-menu-bar_tb1dq_2"
15
- }, I = ({ editor: i }) => {
16
- const { appId: o } = p(), e = n(o, v["kit-rich-text-menu-bar"], "menu-bar");
17
- return m("div", { className: e, children: [t(s, { editor: i }), t(r, { type: "vertical" }), t(c, { editor: i }), t(r, { type: "vertical" }), t(a, { editor: i }), t(r, { type: "vertical" }), t(u, { editor: i }), t(r, { type: "vertical" }), t(l, { editor: i }), t(r, { type: "vertical" }), t(f, { editor: i }), t(r, { type: "vertical" }), t(K, { editor: i })] });
1
+ import "../../../../assets/index27.css";
2
+ import { jsxs as f, Fragment as _, jsx as t } from "react/jsx-runtime";
3
+ import a from "classnames";
4
+ import { u as b } from "../../../../chunks/useKitTheme.KSAU-Pdv.js";
5
+ import { KitDivider as d } from "../../../Layout/Divider/index.js";
6
+ import { KitUndoRedoButtons as K } from "./UndoRedoButtons/index.js";
7
+ import { KitFontSizeSelect as O } from "./FontSizeSelect/index.js";
8
+ import { faEllipsisVertical as M } from "@fortawesome/free-solid-svg-icons";
9
+ import { FontAwesomeIcon as g } from "@fortawesome/react-fontawesome";
10
+ import { useState as L, useRef as R, useEffect as v } from "react";
11
+ import { u as S } from "../../../../chunks/useKitLocale.96CdK3og.js";
12
+ import { KitButtonTooltip as w } from "./ButtonTooltip/index.js";
13
+ import { Popover as B } from "antd";
14
+ import { KitMenuActionList as h } from "./MenuActionList/index.js";
15
+ const x = {
16
+ "kit-rich-text-menu-bar": "_kit-rich-text-menu-bar_1xmym_2",
17
+ "kit-rich-text-menu-popover": "_kit-rich-text-menu-popover_1xmym_3"
18
+ }, E = ({ editor: o, blurMenu: e }) => {
19
+ var i, r;
20
+ const { locale: c } = S(), [p, s] = L(!1), u = R(null);
21
+ return v(() => {
22
+ e && s(!1);
23
+ }, [e]), v(() => {
24
+ const m = (k) => {
25
+ var l;
26
+ const n = k.target, y = n.closest(".ant-popover") || n.contains(document.querySelector(".ant-popover"));
27
+ !(n.closest(".link-modal") || n.contains(document.querySelector(".link-modal"))) && !y && !(!((l = u.current) === null || l === void 0) && l.contains(n)) && s(!1);
28
+ };
29
+ return document.addEventListener("mousedown", m), () => {
30
+ document.removeEventListener("mousedown", m);
31
+ };
32
+ }, []), f(_, { children: [t(w, { title: (i = c.RichText) === null || i === void 0 ? void 0 : i.moreOptions, children: t("button", { ref: u, onClick: () => s((m) => !m), className: a({ "is-active": p }), "aria-label": (r = c.RichText) === null || r === void 0 ? void 0 : r.bold, children: t(g, { icon: M }) }) }), t(B, { trigger: "click", placement: "bottom", arrow: !1, open: p, overlayClassName: a(x["kit-rich-text-menu-popover"]), content: t("div", { className: "kit-rich-text-menu-popover-options", children: t(h, { editor: o }) }) })] });
33
+ }, J = ({ editor: o, mini: e, blurMenu: i }) => {
34
+ const { appId: r } = b(), c = a(r, x["kit-rich-text-menu-bar"], "menu-bar", {
35
+ "kit-rich-text-mini-layout": e
36
+ });
37
+ return f("div", { className: c, children: [t(K, { editor: o }), t(d, { type: "vertical" }), t(O, { editor: o }), t(d, { type: "vertical" }), e ? t(E, { editor: o, blurMenu: i }) : t(h, { editor: o })] });
18
38
  };
19
39
  export {
20
- I as KitMenuBar
40
+ J as KitMenuBar
21
41
  };
@@ -0,0 +1,3 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { IKitMiniLayout } from './types';
3
+ export declare const MiniLayout: FunctionComponent<IKitMiniLayout>;
@@ -2,4 +2,11 @@ import {type Editor} from '@tiptap/core';
2
2
 
3
3
  export type IKitMenuBar = {
4
4
  editor: Editor;
5
+ mini: boolean;
6
+ blurMenu: boolean;
7
+ };
8
+
9
+ export type IKitMiniLayout = {
10
+ editor: Editor;
11
+ blurMenu: boolean;
5
12
  };