@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.
- package/dist/components/PageShell/PageParts.js +28 -22
- package/dist/helpers/VersionInfo.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/version.js +2 -2
- package/dist/version.json +4 -4
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Icon as
|
|
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
|
|
5
|
-
import { Tooltip as
|
|
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(
|
|
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 }) =>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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(
|
|
62
|
+
children: [/* @__PURE__ */ l(d, {
|
|
57
63
|
name: n.icon,
|
|
58
64
|
size: "sm"
|
|
59
65
|
}), n.label]
|
|
60
|
-
}) : /* @__PURE__ */ l(
|
|
66
|
+
}) : /* @__PURE__ */ l(o, {
|
|
61
67
|
title: n.label,
|
|
62
|
-
children: /* @__PURE__ */ l(
|
|
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(
|
|
101
|
+
}), /* @__PURE__ */ l(o, {
|
|
96
102
|
title: a ? i.pageAscending : i.pageDescending,
|
|
97
|
-
children: /* @__PURE__ */ l(
|
|
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(
|
|
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(
|
|
266
|
+
/* @__PURE__ */ l(o, {
|
|
261
267
|
title: i.previous,
|
|
262
|
-
children: /* @__PURE__ */ l(
|
|
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(
|
|
280
|
+
/* @__PURE__ */ l(o, {
|
|
275
281
|
title: i.next,
|
|
276
|
-
children: /* @__PURE__ */ l(
|
|
282
|
+
children: /* @__PURE__ */ l(g, {
|
|
277
283
|
icon: "caret-right",
|
|
278
284
|
variant: "plain",
|
|
279
285
|
size: "small",
|
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.
|
|
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
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memobit/libs",
|
|
3
|
-
"version": "3.
|
|
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",
|