@memobit/libs 3.17.0 → 3.19.0

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 (31) hide show
  1. package/README.md +1 -1
  2. package/dist/components/AnalogClock/AnalogClock.css +1 -1
  3. package/dist/components/Calendar/Calendar.css +1 -1
  4. package/dist/components/DataView/DataView.CardView.js +58 -55
  5. package/dist/components/DataView/DataView.TableView.js +171 -0
  6. package/dist/components/DataView/DataView.css +1 -1
  7. package/dist/components/DataView/DataView.helpers.js +17 -15
  8. package/dist/components/DataView/DataView2.js +251 -358
  9. package/dist/components/DatePicker/DatePicker.css +1 -1
  10. package/dist/components/MiniStatsCard/MiniStatsCard2.js +28 -21
  11. package/dist/components/NotificationPanel/NotificationPanel.css +1 -1
  12. package/dist/components/NotificationPanel/NotificationPanel2.js +1 -1
  13. package/dist/components/RollingNumber/RollingNumber.css +1 -1
  14. package/dist/components/RollingNumber/RollingNumber.helpers.js +7 -0
  15. package/dist/components/RollingNumber/RollingNumber2.js +34 -35
  16. package/dist/components/Stats/Stats2.js +23 -16
  17. package/dist/components/TimePicker/TimePicker.css +1 -1
  18. package/dist/components/Toolbar/Toolbar.css +1 -1
  19. package/dist/components/Toolbar/Toolbar2.js +69 -65
  20. package/dist/components/Tooltip/Tooltip2.js +67 -57
  21. package/dist/helpers/VersionInfo.js +1 -1
  22. package/dist/hooks/useListMotion/ListMotion.css +1 -0
  23. package/dist/hooks/useListMotion/useHighlight.js +11 -0
  24. package/dist/hooks/useListMotion/useListMotion.js +228 -0
  25. package/dist/index.d.ts +60 -1
  26. package/dist/index.js +303 -298
  27. package/dist/styles/effects.scss +4 -4
  28. package/dist/styles/variables.scss +20 -0
  29. package/dist/version.js +1 -1
  30. package/dist/version.json +4 -4
  31. package/package.json +1 -1
@@ -1,98 +1,108 @@
1
1
  import './Tooltip.css';
2
2
  /* empty css */
3
- import { useCallback as S, useEffect as b, useRef as h, useState as B } from "react";
4
- import { Fragment as V, jsx as N, jsxs as k } from "react/jsx-runtime";
5
- import { createPortal as O } from "react-dom";
6
- var Q = ({ title: L, position: p = "top", delay: D = 200, children: _, disabled: $ = !1, className: F = "", maxWidth: g, maxHeight: a }) => {
7
- const [f, s] = B(!1), [M, I] = B({
3
+ import { createContext as U, useCallback as F, useContext as W, useEffect as C, useRef as d, useState as M } from "react";
4
+ import { Fragment as X, jsx as $, jsxs as I } from "react/jsx-runtime";
5
+ import { createPortal as Y } from "react-dom";
6
+ var j = U(null), re = ({ title: y, position: h = "top", delay: z = 200, children: V, disabled: E = !1, className: O = "", maxWidth: p, maxHeight: a }) => {
7
+ const [g, u] = M(!1), [D, q] = M(0), w = W(j), [x, A] = M({
8
8
  top: 0,
9
9
  left: 0
10
- }), c = h(null), r = h(null), l = h(null), d = h(null), w = h(!1), m = a !== void 0, R = m ? 150 : 0, T = S(() => {
11
- if (!l.current || !d.current) return;
10
+ }), c = d(null), n = d(null), l = d(null), f = d(null), m = d(!1), v = a !== void 0, b = v ? 150 : 0, B = !!y && !E, L = g && B && D === 0, N = g && B || D > 0, G = F((t) => {
11
+ q((e) => Math.max(0, e + (t ? 1 : -1)));
12
+ }, []);
13
+ C(() => {
14
+ if (!(!w || !N))
15
+ return w(!0), () => w(!1);
16
+ }, [N, w]);
17
+ const T = F(() => {
18
+ if (!l.current || !f.current) return;
12
19
  const t = l.current.firstElementChild?.getBoundingClientRect();
13
20
  let e = t && t.width > 0 ? t : l.current.getBoundingClientRect();
14
21
  if (e.width === 0 && e.height === 0) {
15
- const C = document.createRange();
16
- C.selectNodeContents(l.current);
17
- const E = C.getBoundingClientRect();
18
- (E.width > 0 || E.height > 0) && (e = E);
22
+ const _ = document.createRange();
23
+ _.selectNodeContents(l.current);
24
+ const P = _.getBoundingClientRect();
25
+ (P.width > 0 || P.height > 0) && (e = P);
19
26
  }
20
- const n = d.current.getBoundingClientRect(), v = 8;
27
+ const r = f.current.getBoundingClientRect(), R = 8;
21
28
  let o = 0, i = 0;
22
- switch (p) {
29
+ switch (h) {
23
30
  case "top":
24
- o = e.top - n.height - v, i = e.left + e.width / 2 - n.width / 2;
31
+ o = e.top - r.height - R, i = e.left + e.width / 2 - r.width / 2;
25
32
  break;
26
33
  case "bottom":
27
- o = e.bottom + v, i = e.left + e.width / 2 - n.width / 2;
34
+ o = e.bottom + R, i = e.left + e.width / 2 - r.width / 2;
28
35
  break;
29
36
  case "left":
30
- o = e.top + e.height / 2 - n.height / 2, i = e.left - n.width - v;
37
+ o = e.top + e.height / 2 - r.height / 2, i = e.left - r.width - R;
31
38
  break;
32
39
  case "right":
33
- o = e.top + e.height / 2 - n.height / 2, i = e.right + v;
40
+ o = e.top + e.height / 2 - r.height / 2, i = e.right + R;
34
41
  }
35
- const u = 8;
36
- i < u && (i = u), i + n.width > window.innerWidth - u && (i = window.innerWidth - n.width - u), o < u && (o = u), o + n.height > window.innerHeight - u && (o = window.innerHeight - n.height - u), I({
42
+ const s = 8;
43
+ i < s && (i = s), i + r.width > window.innerWidth - s && (i = window.innerWidth - r.width - s), o < s && (o = s), o + r.height > window.innerHeight - s && (o = window.innerHeight - r.height - s), A({
37
44
  top: o,
38
45
  left: i
39
46
  });
40
- }, [p]), P = () => {
41
- $ || w.current || (r.current && (clearTimeout(r.current), r.current = null), c.current = setTimeout(() => {
42
- s(!0);
43
- }, D));
44
- }, y = () => {
45
- w.current || (c.current && clearTimeout(c.current), R > 0 ? r.current = setTimeout(() => s(!1), R) : s(!1));
46
- }, j = (t) => {
47
- t.pointerType !== "touch" && t.pointerType !== "pen" || $ || (w.current = !0, c.current && (clearTimeout(c.current), c.current = null), t.stopPropagation(), s((e) => !e));
47
+ }, [h]), S = () => {
48
+ E || m.current || (n.current && (clearTimeout(n.current), n.current = null), c.current = setTimeout(() => {
49
+ u(!0);
50
+ }, z));
51
+ }, k = () => {
52
+ m.current || (c.current && clearTimeout(c.current), b > 0 ? n.current = setTimeout(() => u(!1), b) : u(!1));
53
+ }, J = (t) => {
54
+ t.pointerType !== "touch" && t.pointerType !== "pen" || E || (m.current = !0, c.current && (clearTimeout(c.current), c.current = null), t.stopPropagation(), u((e) => !e));
48
55
  };
49
- b(() => {
50
- if (!f) return;
56
+ C(() => {
57
+ if (!L) return;
51
58
  const t = (e) => {
52
- e.target instanceof Node && d.current?.contains(e.target) || s(!1);
59
+ e.target instanceof Node && f.current?.contains(e.target) || u(!1);
53
60
  };
54
61
  return T(), window.addEventListener("scroll", t, !0), window.addEventListener("resize", T), () => {
55
62
  window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", T);
56
63
  };
57
- }, [f, T]), b(() => {
58
- if (!f) return;
64
+ }, [L, T]), C(() => {
65
+ if (!g) return;
59
66
  const t = (e) => {
60
- l.current?.contains(e.target) || d.current?.contains(e.target) || s(!1);
67
+ l.current?.contains(e.target) || f.current?.contains(e.target) || u(!1);
61
68
  };
62
69
  return document.addEventListener("pointerdown", t), () => {
63
- document.removeEventListener("pointerdown", t), w.current = !1;
70
+ document.removeEventListener("pointerdown", t), m.current = !1;
64
71
  };
65
- }, [f]), b(() => () => {
66
- c.current && clearTimeout(c.current), r.current && clearTimeout(r.current);
72
+ }, [g]), C(() => () => {
73
+ c.current && clearTimeout(c.current), n.current && clearTimeout(n.current);
67
74
  }, []);
68
- const x = () => {
69
- m && r.current && (clearTimeout(r.current), r.current = null);
70
- }, z = () => {
71
- m && (r.current = setTimeout(() => s(!1), R));
75
+ const K = () => {
76
+ v && n.current && (clearTimeout(n.current), n.current = null);
77
+ }, Q = () => {
78
+ v && (n.current = setTimeout(() => u(!1), b));
72
79
  };
73
- return /* @__PURE__ */ k(V, { children: [/* @__PURE__ */ N("span", {
80
+ return /* @__PURE__ */ I(X, { children: [/* @__PURE__ */ $("span", {
74
81
  ref: l,
75
82
  className: "tooltip-trigger",
76
- onMouseEnter: P,
77
- onMouseLeave: y,
78
- onFocus: P,
79
- onBlur: y,
80
- onPointerDown: j,
81
- children: _
82
- }), f && L && O(/* @__PURE__ */ k("div", {
83
- ref: d,
84
- className: `tooltip tooltip--${p} ${m ? "tooltip--scrollable" : ""} ${F}`,
83
+ onMouseEnter: S,
84
+ onMouseLeave: k,
85
+ onFocus: S,
86
+ onBlur: k,
87
+ onPointerDown: J,
88
+ children: /* @__PURE__ */ $(j.Provider, {
89
+ value: G,
90
+ children: V
91
+ })
92
+ }), L && Y(/* @__PURE__ */ I("div", {
93
+ ref: f,
94
+ className: `tooltip tooltip--${h} ${v ? "tooltip--scrollable" : ""} ${O}`,
85
95
  style: {
86
- top: `${M.top}px`,
87
- left: `${M.left}px`,
88
- ...g !== void 0 && { maxWidth: typeof g == "number" ? `${g}px` : g },
96
+ top: `${x.top}px`,
97
+ left: `${x.left}px`,
98
+ ...p !== void 0 && { maxWidth: typeof p == "number" ? `${p}px` : p },
89
99
  ...a !== void 0 && { maxHeight: typeof a == "number" ? `${a}px` : a }
90
100
  },
91
- onMouseEnter: x,
92
- onMouseLeave: z,
93
- children: [L, /* @__PURE__ */ N("div", { className: `tooltip__arrow tooltip__arrow--${p}` })]
101
+ onMouseEnter: K,
102
+ onMouseLeave: Q,
103
+ children: [y, /* @__PURE__ */ $("div", { className: `tooltip__arrow tooltip__arrow--${h}` })]
94
104
  }), document.body)] });
95
105
  };
96
106
  export {
97
- Q as Tooltip
107
+ re as Tooltip
98
108
  };
@@ -23,7 +23,7 @@ var r = (i) => {
23
23
  const o = {
24
24
  ...i,
25
25
  lib: d,
26
- libBuildNumber: 571,
26
+ libBuildNumber: 579,
27
27
  libCommit: n,
28
28
  libBuildDate: t
29
29
  };
@@ -0,0 +1 @@
1
+ [data-motion-key]{scroll-margin-block:var(--spacing-80)}.list-motion-ghost{z-index:0;pointer-events:none}.list-motion-flash:not(tr),tr.list-motion-flash>td{--_list-motion-flash-color:var(--motion-flash-color,color-mix(in srgb, var(--body-accent-color) 22%, transparent));animation:list-motion-flash var(--motion-duration-flash) var(--motion-easing)}@keyframes list-motion-flash{0%,35%{box-shadow:inset 0 0 0 100vmax var(--_list-motion-flash-color)}to{box-shadow:inset 0 0 0 100vmax #0000}}
@@ -0,0 +1,11 @@
1
+ import { useCallback as g, useState as e } from "react";
2
+ var l = () => {
3
+ const [t, h] = e([]);
4
+ return {
5
+ highlightIds: t,
6
+ highlight: g((...i) => h(i), [])
7
+ };
8
+ };
9
+ export {
10
+ l as useHighlight
11
+ };
@@ -0,0 +1,228 @@
1
+ import './ListMotion.css';
2
+ /* empty css */
3
+ import { useCallback as E, useLayoutEffect as B, useMemo as re, useRef as T } from "react";
4
+ var Q = "data-motion-key", z = "data-motion-root", Z = "list-motion-ghost", k = "list-motion-flash", q = "scale(0.97)", ne = 5e3, oe = 3, Y = 300, _ = (t, o, a) => {
5
+ const u = t.getPropertyValue(o).trim(), c = parseFloat(u);
6
+ return Number.isNaN(c) ? a : u.endsWith("ms") ? c : u.endsWith("s") ? c * 1e3 : c;
7
+ }, se = (t) => {
8
+ const o = getComputedStyle(t), a = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
9
+ return {
10
+ easing: o.getPropertyValue("--motion-easing").trim() || "cubic-bezier(0.2, 0, 0, 1)",
11
+ easingExit: o.getPropertyValue("--motion-easing-exit").trim() || "cubic-bezier(0, 0, 0.2, 1)",
12
+ enter: a ? 0 : _(o, "--motion-duration-enter", 220),
13
+ exit: a ? 0 : _(o, "--motion-duration-exit", 180),
14
+ move: a ? 0 : _(o, "--motion-duration-move", 280)
15
+ };
16
+ }, ie = (t) => _(getComputedStyle(t), "--motion-duration-flash", 1600), J = (t) => Array.from(t.querySelectorAll(`[${Q}]`)).filter((o) => o.closest(`[${z}]`) === t && !o.closest(`.${Z}`)), G = (t) => t.getAttribute("data-motion-key") ?? "", D = (t, o) => {
17
+ const a = t.getBoundingClientRect(), u = a.top - t.scrollTop, c = a.left - t.scrollLeft, y = /* @__PURE__ */ new Map(), p = [];
18
+ return o.forEach((h) => {
19
+ const b = G(h), v = h.getBoundingClientRect();
20
+ p.push(b), y.set(b, {
21
+ box: {
22
+ height: v.height,
23
+ left: v.left - c,
24
+ top: v.top - u,
25
+ width: v.width
26
+ },
27
+ element: h,
28
+ parent: h.parentElement
29
+ });
30
+ }), {
31
+ items: y,
32
+ order: p
33
+ };
34
+ }, H = (t, o) => {
35
+ const a = t.getBoundingClientRect();
36
+ return {
37
+ ...o,
38
+ left: a.left - t.scrollLeft + o.left,
39
+ top: a.top - t.scrollTop + o.top
40
+ };
41
+ }, L = (t) => t.top + t.height > 0 && t.top < window.innerHeight, ae = (t, o) => t.length === o.length && t.every((a, u) => a === o[u]), ce = (t, o) => {
42
+ const a = o?.closest("table"), u = a?.parentElement;
43
+ if (!a || !a.isConnected || !u) return null;
44
+ const c = document.createElement("table"), y = document.createElement("tbody"), p = a.tHead?.rows[0]?.cells;
45
+ return c.className = a.className, c.style.tableLayout = "fixed", p && p.length === t.cells.length && Array.from(t.cells).forEach((h, b) => {
46
+ h.style.boxSizing = "border-box", h.style.width = `${p[b].getBoundingClientRect().width}px`;
47
+ }), y.append(t), c.append(y), {
48
+ ghost: c,
49
+ host: u
50
+ };
51
+ }, fe = (t, o = {}) => {
52
+ const { enabled: a = !0, flashEntering: u = !0, highlightKeys: c, maxMembershipChanges: y = 10, maxReorderMoves: p = 40 } = o, h = T(null), b = T("normal"), v = T(/* @__PURE__ */ new Set()), S = T(/* @__PURE__ */ new Set()), I = T(/* @__PURE__ */ new Map()), w = T(null), V = T(c), N = t.current;
53
+ if (N?.hasAttribute(z)) {
54
+ const e = J(N);
55
+ h.current = e.length > Y ? null : D(N, e);
56
+ }
57
+ const F = E(() => {
58
+ b.current = "force";
59
+ }, []), K = E(() => {
60
+ b.current = "skip";
61
+ }, []), R = E((e, s) => {
62
+ v.current.add(e);
63
+ const i = () => {
64
+ v.current.delete(e), s?.();
65
+ };
66
+ e.addEventListener("finish", i), e.addEventListener("cancel", i);
67
+ }, []), C = E(() => {
68
+ v.current.forEach((e) => e.cancel()), v.current.clear(), S.current.forEach((e) => e.remove()), S.current.clear();
69
+ }, []), M = E((e) => {
70
+ const s = I.current, i = s.get(e);
71
+ i !== void 0 && clearTimeout(i), e.classList.remove(k), e.offsetWidth, e.classList.add(k), s.set(e, setTimeout(() => {
72
+ e.classList.remove(k), s.delete(e);
73
+ }, ie(e)));
74
+ }, []), ee = E((e, s, i, x) => {
75
+ const n = se(e);
76
+ if (s.order.length === 0) {
77
+ if (n.enter === 0) return;
78
+ i.order.forEach((l) => {
79
+ const r = i.items.get(l);
80
+ !r || !L(H(e, r.box)) || R(r.element.animate([{ opacity: 0 }, { opacity: 1 }], {
81
+ duration: n.enter,
82
+ easing: n.easing
83
+ }));
84
+ });
85
+ return;
86
+ }
87
+ const $ = i.order.filter((l) => !s.items.has(l)), A = s.order.filter((l) => !i.items.has(l)), P = $.length + A.length;
88
+ if (!x && P > y) return;
89
+ const O = [];
90
+ if (i.order.forEach((l) => {
91
+ const r = s.items.get(l), f = i.items.get(l);
92
+ if (!r || !f) return;
93
+ const d = r.box.left - f.box.left, g = r.box.top - f.box.top;
94
+ (Math.abs(d) > 0.5 || Math.abs(g) > 0.5) && O.push({
95
+ dx: d,
96
+ dy: g,
97
+ item: f
98
+ });
99
+ }), !(!x && P === 0 && O.length > p)) {
100
+ if (n.move > 0) {
101
+ const l = A.length > 0 ? n.exit / 2 : 0;
102
+ O.forEach(({ dx: r, dy: f, item: d }) => {
103
+ const g = H(e, d.box), m = {
104
+ ...g,
105
+ left: g.left + r,
106
+ top: g.top + f
107
+ };
108
+ !L(m) && !L(g) || R(d.element.animate([{ transform: `translate(${r}px, ${f}px)` }, { transform: "translate(0, 0)" }], {
109
+ delay: l,
110
+ duration: n.move,
111
+ easing: n.easing,
112
+ fill: "backwards"
113
+ }));
114
+ });
115
+ }
116
+ if (n.exit > 0) {
117
+ const l = A.map((r) => s.items.get(r)).filter((r) => r !== void 0);
118
+ l.forEach((r) => {
119
+ if (l.some((j) => j !== r && j.element.contains(r.element)) || r.element.isConnected) return;
120
+ const f = H(e, r.box);
121
+ if (!L(f)) return;
122
+ const d = r.element.cloneNode(!0);
123
+ if (!(d instanceof HTMLElement)) return;
124
+ d.removeAttribute(Q), d.classList.remove(k);
125
+ const g = d instanceof HTMLTableRowElement ? ce(d, r.parent) : {
126
+ ghost: d,
127
+ host: r.parent?.isConnected ? r.parent : e
128
+ };
129
+ if (!g) return;
130
+ const { ghost: m, host: te } = g;
131
+ m.classList.add(Z), Object.assign(m.style, {
132
+ boxSizing: "border-box",
133
+ height: `${f.height}px`,
134
+ left: "0px",
135
+ margin: "0px",
136
+ position: "absolute",
137
+ top: "0px",
138
+ width: `${f.width}px`
139
+ }), te.append(m);
140
+ const U = m.getBoundingClientRect();
141
+ m.style.left = `${f.left - U.left}px`, m.style.top = `${f.top - U.top}px`, S.current.add(m);
142
+ const X = () => {
143
+ m.remove(), S.current.delete(m);
144
+ };
145
+ setTimeout(X, n.exit + 100), R(m.animate([{
146
+ opacity: 1,
147
+ transform: "none"
148
+ }, {
149
+ opacity: 0,
150
+ transform: q
151
+ }], {
152
+ duration: n.exit,
153
+ easing: n.easingExit,
154
+ fill: "forwards"
155
+ }), X);
156
+ });
157
+ }
158
+ $.forEach((l) => {
159
+ const r = i.items.get(l);
160
+ !r || !L(H(e, r.box)) || (n.enter > 0 && R(r.element.animate([{
161
+ opacity: 0,
162
+ transform: q
163
+ }, {
164
+ opacity: 1,
165
+ transform: "none"
166
+ }], {
167
+ delay: A.length > 0 ? n.exit / 2 : 0,
168
+ duration: n.enter,
169
+ easing: n.easing,
170
+ fill: "backwards"
171
+ })), u && $.length <= oe && M(r.element));
172
+ });
173
+ }
174
+ }, [
175
+ M,
176
+ u,
177
+ y,
178
+ p,
179
+ R
180
+ ]), W = E((e) => {
181
+ const s = w.current;
182
+ if (!s) return;
183
+ if (Date.now() > s.until) {
184
+ w.current = null;
185
+ return;
186
+ }
187
+ const i = [...s.keys].map((n) => e.items.get(n)).filter((n) => n !== void 0);
188
+ if (i.length === 0) return;
189
+ const x = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
190
+ i[0].element.scrollIntoView({
191
+ behavior: x ? "auto" : "smooth",
192
+ block: "nearest"
193
+ }), i.forEach((n) => {
194
+ M(n.element), s.keys.delete(G(n.element));
195
+ }), s.keys.size === 0 && (w.current = null);
196
+ }, [M]);
197
+ return B(() => {
198
+ c !== V.current && (V.current = c, c && c.length > 0 && (w.current = {
199
+ keys: new Set(c.map(String)),
200
+ until: Date.now() + ne
201
+ }));
202
+ }, [c]), B(() => {
203
+ const e = t.current, s = h.current;
204
+ if (h.current = null, !e) return;
205
+ e.setAttribute(z, "");
206
+ const i = J(e);
207
+ if (i.length > Y) {
208
+ C();
209
+ return;
210
+ }
211
+ if (s && ae(s.order, i.map(G))) {
212
+ w.current && W(D(e, i));
213
+ return;
214
+ }
215
+ C();
216
+ const x = D(e, i), n = b.current;
217
+ b.current = "normal", W(x), s && a && n !== "skip" && ee(e, s, x, n === "force");
218
+ }), B(() => () => {
219
+ C(), I.current.forEach((e) => clearTimeout(e)), I.current.clear();
220
+ }, [C]), re(() => ({
221
+ forceNext: F,
222
+ skipNext: K
223
+ }), [F, K]);
224
+ };
225
+ export {
226
+ Q as LIST_MOTION_KEY_ATTRIBUTE,
227
+ fe as useListMotion
228
+ };
package/dist/index.d.ts CHANGED
@@ -17,6 +17,7 @@ import { ReactElement } from 'react';
17
17
  import { ReactNode } from 'react';
18
18
  import { ReactPortal } from 'react';
19
19
  import { RefAttributes } from 'react';
20
+ import { RefObject } from 'react';
20
21
  import { SyntheticEvent } from 'react';
21
22
  import { THEME_CONFIGS } from '@memobit/themes';
22
23
  import { ThemeConfig } from '@memobit/themes';
@@ -1061,7 +1062,7 @@ export declare const CSRF_HEADER = "X-CSRF-Token";
1061
1062
 
1062
1063
  export declare const DATA_FILES_PATH = "/data-files";
1063
1064
 
1064
- declare function DataView_2<T>({ columns, data, rowKey, pinnedIds, selectable, onSelectionChange, selectedIds: controlledSelectedIds, pageSizeOptions, initialPageSize, showPageSize, card, actions, actionsWidth, timeline, onRowClick, rowHref, rowClassName, rowDetail, empty, initialSortKey, initialSortDirection, sortKey: controlledSortKey, sortDirection: controlledSortDirection, onSortChange, miniSort, showCardSortControls, desktopView, cardMaxWidth, className, onPageChange, onPageSizeChange, currentPage: controlledCurrentPage, totalItems: controlledTotalItems, group, showResultsCount, totalCount, itemNoun, columnSelector, }: DataViewProps<T>): default_2.JSX.Element;
1065
+ declare function DataView_2<T>({ columns, data, rowKey, pinnedIds, selectable, onSelectionChange, selectedIds: controlledSelectedIds, pageSizeOptions, initialPageSize, showPageSize, card, actions, actionsWidth, timeline, onRowClick, rowHref, rowClassName, rowDetail, empty, initialSortKey, initialSortDirection, sortKey: controlledSortKey, sortDirection: controlledSortDirection, onSortChange, miniSort, showCardSortControls, desktopView, cardMaxWidth, className, onPageChange, onPageSizeChange, currentPage: controlledCurrentPage, totalItems: controlledTotalItems, group, showResultsCount, totalCount, itemNoun, columnSelector, animateChanges, highlightIds, }: DataViewProps<T>): default_2.JSX.Element;
1065
1066
  export { DataView_2 as DataView }
1066
1067
 
1067
1068
  export declare interface DataViewCardConfig<T> {
@@ -1219,6 +1220,11 @@ export declare interface DataViewProps<T> {
1219
1220
  itemNoun?: string;
1220
1221
  /** Optional column-visibility selector rendered in the top controls. Hidden when `options` is empty. */
1221
1222
  columnSelector?: DataViewColumnSelectorConfig;
1223
+ /** Animate rows and cards joining, leaving and moving. Needs `rowKey`; index keys cannot be tracked. Default: true. */
1224
+ animateChanges?: boolean;
1225
+ /** Row keys to scroll into view and flash, e.g. after an add or edit. A new array replays the
1226
+ * highlight; `useHighlight` manages it. A row on another page is paged to first. */
1227
+ highlightIds?: ReadonlyArray<string | number>;
1222
1228
  }
1223
1229
 
1224
1230
  export declare interface DataViewTimelineConfig<T> {
@@ -2463,12 +2469,17 @@ export declare const LIB_VERSION: string;
2463
2469
 
2464
2470
  export declare const List: default_2.FC<ListProps>;
2465
2471
 
2472
+ /** Set on each element the hook should animate; the value is the item's stable id. */
2473
+ export declare const LIST_MOTION_KEY_ATTRIBUTE = "data-motion-key";
2474
+
2466
2475
  declare interface ListItem {
2467
2476
  id: string | number;
2468
2477
  label: default_2.ReactNode;
2469
2478
  disabled?: boolean;
2470
2479
  }
2471
2480
 
2481
+ export declare type ListMotionKey = string | number;
2482
+
2472
2483
  declare interface ListProps {
2473
2484
  items: ListItem[];
2474
2485
  direction?: 'vertical' | 'horizontal';
@@ -2642,6 +2653,8 @@ export declare interface MiniStatsCardProps {
2642
2653
  footer?: default_2.ReactNode;
2643
2654
  /** Tint the whole card with a soft background matching the variant. */
2644
2655
  filled?: boolean;
2656
+ /** Roll numeric values to their new figure when they change. Default: true. */
2657
+ animated?: boolean;
2645
2658
  /** Additional CSS class */
2646
2659
  className?: string;
2647
2660
  }
@@ -2987,6 +3000,8 @@ export declare interface RollingNumberProps {
2987
3000
  decimalSeparator?: string;
2988
3001
  /** Roll duration in milliseconds. */
2989
3002
  duration?: number;
3003
+ /** Take font size, weight and colour from the surrounding text instead of `size` and `variant`. */
3004
+ inheritStyle?: boolean;
2990
3005
  /** Thousands separator. Pass an empty string to switch grouping off. */
2991
3006
  groupSeparator?: string;
2992
3007
  prefix?: string;
@@ -3265,6 +3280,8 @@ export declare interface StatsProps {
3265
3280
  align?: StatsAlign;
3266
3281
  /** Visual size. Default: 'medium'. */
3267
3282
  size?: StatsSize;
3283
+ /** Roll numeric values to their new figure when they change. Default: true. */
3284
+ animated?: boolean;
3268
3285
  className?: string;
3269
3286
  }
3270
3287
 
@@ -3576,6 +3593,9 @@ export declare interface ToolbarNotificationsConfig {
3576
3593
  }
3577
3594
 
3578
3595
  export declare interface ToolbarProps {
3596
+ /** Buttons or status shown beside the menu: at the right on desktop, in the top row on mobile. */
3597
+ actions?: ReactNode;
3598
+ /** Extra filters or controls, laid out with the search. */
3579
3599
  children?: ReactNode;
3580
3600
  className?: string;
3581
3601
  controlPanelToggle?: boolean | ToolbarControlPanelToggleConfig;
@@ -3788,6 +3808,45 @@ export declare const useControlPanel: () => ControlPanelContextValue;
3788
3808
 
3789
3809
  export declare const useControlPanelContext: () => ControlPanelContextValue | null;
3790
3810
 
3811
+ /** Points the user at items after an add, edit or undo, so they can see where the change landed. */
3812
+ export declare const useHighlight: () => UseHighlightReturn;
3813
+
3814
+ export declare interface UseHighlightReturn {
3815
+ /** Pass to DataView `highlightIds` (or useListMotion `highlightKeys`). */
3816
+ highlightIds: ListMotionKey[];
3817
+ /** Scroll to and flash these items. Safe to call before they are in the list: it waits for them. */
3818
+ highlight: (...ids: ListMotionKey[]) => void;
3819
+ }
3820
+
3821
+ /**
3822
+ * Animates a keyed list as it changes: items that join fade and grow in, items that leave fade
3823
+ * out where they stood, and the rest slide to their new places instead of jumping (FLIP).
3824
+ *
3825
+ * Put `data-motion-key={id}` on every item element inside the container. Changes larger than
3826
+ * the limits (a new filter, another page) are left unanimated, as is the first fill of the list.
3827
+ */
3828
+ export declare const useListMotion: (containerRef: RefObject<HTMLElement | null>, options?: UseListMotionOptions) => UseListMotionReturn;
3829
+
3830
+ export declare interface UseListMotionOptions {
3831
+ /** Switch the animations off without changing the markup. Default: true. */
3832
+ enabled?: boolean;
3833
+ /** Flash items that join the list. Default: true. */
3834
+ flashEntering?: boolean;
3835
+ /** Ids to scroll into view and flash. Passing a new array replays the highlight. */
3836
+ highlightKeys?: ReadonlyArray<ListMotionKey>;
3837
+ /** Most items that may join or leave in one change and still animate. A bigger change (a filter, a page) just updates. Default: 10. */
3838
+ maxMembershipChanges?: number;
3839
+ /** Most items that may move in a pure reorder and still animate. A bigger one (a sort) just updates. Default: 40. */
3840
+ maxReorderMoves?: number;
3841
+ }
3842
+
3843
+ export declare interface UseListMotionReturn {
3844
+ /** Animate the next change even when it is over the limits, e.g. a group the user opened or closed. */
3845
+ forceNext: () => void;
3846
+ /** Let the next change through without animating, e.g. a page switch. */
3847
+ skipNext: () => void;
3848
+ }
3849
+
3791
3850
  /**
3792
3851
  * Hook pentru multiple popover-uri cu ID-uri
3793
3852
  * Util când ai multe popover-uri și vrei să le controlezi individual