@memobit/libs 3.32.0 → 3.33.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.
@@ -1,8 +1,8 @@
1
- import { Icon as o } from "../Icon/Icon2.js";
1
+ import { Icon as d } from "../Icon/Icon2.js";
2
2
  import { libMessages as t } from "../../contexts/LanguageContext/libMessages.js";
3
3
  import { useMessages as c } from "../../hooks/useLanguage.js";
4
- import { Button as d } from "../Button/Button2.js";
5
- import { Tooltip as g } from "../Tooltip/Tooltip2.js";
4
+ import { Button as g } from "../Button/Button2.js";
5
+ import { Tooltip as o } from "../Tooltip/Tooltip2.js";
6
6
  import { Dropdown as b } from "../Dropdown/Dropdown2.js";
7
7
  import { ToggleSwitch as C } from "../ToggleSwitch/ToggleSwitch2.js";
8
8
  import { MenuHamburger as N } from "../MenuHamburger/MenuHamburger2.js";
@@ -14,7 +14,7 @@ var H = ({ app: e, logoOnly: i = !1 }) => {
14
14
  const a = typeof e.logo == "string" ? /* @__PURE__ */ l("img", {
15
15
  src: e.logo,
16
16
  alt: e.name
17
- }) : e.logo ?? (e.icon ? /* @__PURE__ */ l(o, {
17
+ }) : e.logo ?? (e.icon ? /* @__PURE__ */ l(d, {
18
18
  name: e.icon,
19
19
  size: "lg"
20
20
  }) : null), n = /* @__PURE__ */ r(m, { children: [a && /* @__PURE__ */ l("span", {
@@ -33,14 +33,20 @@ var H = ({ app: e, logoOnly: i = !1 }) => {
33
33
  className: "page-shell__app",
34
34
  children: n
35
35
  });
36
- }, L = ({ action: e, fullWidth: i = !1 }) => /* @__PURE__ */ l(d, {
37
- icon: e.icon,
38
- variant: e.variant ?? "default",
39
- disabled: e.disabled,
40
- fullWidth: i,
41
- onClick: e.onClick,
42
- children: e.label
43
- }), R = ({ items: e }) => e.length > 0 ? /* @__PURE__ */ l(N, {
36
+ }, L = ({ action: e, fullWidth: i = !1 }) => {
37
+ const a = /* @__PURE__ */ l(g, {
38
+ icon: e.icon,
39
+ variant: e.variant ?? "default",
40
+ disabled: e.disabled,
41
+ fullWidth: i,
42
+ onClick: e.onClick,
43
+ children: e.label
44
+ });
45
+ return e.tooltip ? /* @__PURE__ */ l(o, {
46
+ title: e.tooltip,
47
+ children: a
48
+ }) : a;
49
+ }, R = ({ items: e }) => e.length > 0 ? /* @__PURE__ */ l(N, {
44
50
  items: e,
45
51
  disableResponsive: !0,
46
52
  showLabel: !1
@@ -53,13 +59,13 @@ var H = ({ app: e, logoOnly: i = !1 }) => {
53
59
  value: n.value,
54
60
  label: i ? /* @__PURE__ */ r("span", {
55
61
  className: "page-shell__view-option",
56
- children: [/* @__PURE__ */ l(o, {
62
+ children: [/* @__PURE__ */ l(d, {
57
63
  name: n.icon,
58
64
  size: "sm"
59
65
  }), n.label]
60
- }) : /* @__PURE__ */ l(g, {
66
+ }) : /* @__PURE__ */ l(o, {
61
67
  title: n.label,
62
- children: /* @__PURE__ */ l(o, {
68
+ children: /* @__PURE__ */ l(d, {
63
69
  name: n.icon,
64
70
  size: "sm"
65
71
  })
@@ -92,9 +98,9 @@ var H = ({ app: e, logoOnly: i = !1 }) => {
92
98
  });
93
99
  }
94
100
  })
95
- }), /* @__PURE__ */ l(g, {
101
+ }), /* @__PURE__ */ l(o, {
96
102
  title: a ? i.pageAscending : i.pageDescending,
97
- children: /* @__PURE__ */ l(d, {
103
+ children: /* @__PURE__ */ l(g, {
98
104
  icon: a ? "arrow-up" : "arrow-down",
99
105
  variant: "default",
100
106
  onClick: () => e.onChange({
@@ -171,7 +177,7 @@ var H = ({ app: e, logoOnly: i = !1 }) => {
171
177
  className: "page-filters__summary",
172
178
  children: i
173
179
  }),
174
- /* @__PURE__ */ l(o, {
180
+ /* @__PURE__ */ l(d, {
175
181
  name: s ? "caret-down" : "caret-right",
176
182
  size: "sm"
177
183
  })
@@ -257,9 +263,9 @@ var H = ({ app: e, logoOnly: i = !1 }) => {
257
263
  return /* @__PURE__ */ r("div", {
258
264
  className: "page-shell__pager",
259
265
  children: [
260
- /* @__PURE__ */ l(g, {
266
+ /* @__PURE__ */ l(o, {
261
267
  title: i.previous,
262
- children: /* @__PURE__ */ l(d, {
268
+ children: /* @__PURE__ */ l(g, {
263
269
  icon: "caret-left",
264
270
  variant: "plain",
265
271
  size: "small",
@@ -271,9 +277,9 @@ var H = ({ app: e, logoOnly: i = !1 }) => {
271
277
  className: "page-shell__pager-label",
272
278
  children: i.pageOf(a, n)
273
279
  }),
274
- /* @__PURE__ */ l(g, {
280
+ /* @__PURE__ */ l(o, {
275
281
  title: i.next,
276
- children: /* @__PURE__ */ l(d, {
282
+ children: /* @__PURE__ */ l(g, {
277
283
  icon: "caret-right",
278
284
  variant: "plain",
279
285
  size: "small",
@@ -23,7 +23,7 @@ var r = (i) => {
23
23
  const o = {
24
24
  ...i,
25
25
  lib: d,
26
- libBuildNumber: 659,
26
+ libBuildNumber: 661,
27
27
  libCommit: n,
28
28
  libBuildDate: t
29
29
  };
package/dist/index.d.ts CHANGED
@@ -2983,6 +2983,8 @@ export declare interface PageAction {
2983
2983
  icon?: IconName;
2984
2984
  variant?: ButtonVariant;
2985
2985
  disabled?: boolean;
2986
+ /** A hover hint on the button, e.g. why it is disabled ("Run a scan first"). */
2987
+ tooltip?: string;
2986
2988
  /** Always listed in the page menu, never as a button: for occasional actions such as "Manage locations". */
2987
2989
  menu?: boolean;
2988
2990
  /** In the menu, draws a divider above this action to start a new group. */
package/dist/version.js CHANGED
@@ -1,7 +1,7 @@
1
- var I = "3.32.0", B = 659, L = "2664552", _ = "2026-11-07T19:52:13.281Z", r = "659";
1
+ var I = "3.33.0", B = 661, L = "0bba3ab", _ = "2026-11-07T19:56:02.045Z", a = "661";
2
2
  export {
3
3
  _ as LIB_BUILD_DATE,
4
- r as LIB_BUILD_ID,
4
+ a as LIB_BUILD_ID,
5
5
  B as LIB_BUILD_NUMBER,
6
6
  L as LIB_COMMIT,
7
7
  I as LIB_VERSION
package/dist/version.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "3.32.0",
3
- "buildNumber": 659,
4
- "commit": "2664552",
5
- "buildDate": "2026-11-07T19:52:13.281Z"
2
+ "version": "3.33.0",
3
+ "buildNumber": 661,
4
+ "commit": "0bba3ab",
5
+ "buildDate": "2026-11-07T19:56:02.045Z"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memobit/libs",
3
- "version": "3.32.0",
3
+ "version": "3.33.0",
4
4
  "description": "React component library powering the Memobit apps — 100+ components, helpers and hooks. Icons ship as @memobit/icons and themes as @memobit/themes. TypeScript-first, ESM-only, React 19.",
5
5
  "keywords": [
6
6
  "react",