@harpercollins/harpercollins-design-system 1.29.3 → 1.29.5
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/cjs/components/data-display/Table/FilterChipsSection.cjs +1 -1
- package/dist/cjs/components/data-display/Table/Table.cjs +1 -1
- package/dist/cjs/components/data-display/Table/TableToolbar.cjs +4 -4
- package/dist/cjs/components/data-display/Table/filters/FilterComponents.cjs +2 -2
- package/dist/cjs/components/data-display/Tabs/Tabs.cjs +1 -1
- package/dist/cjs/components/global/AppBar/AppBar.cjs +3 -3
- package/dist/cjs/components/global/Layout/Layout.cjs +1 -1
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/node_modules/.pnpm/@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useSlider/useSlider.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItemButton/ListItemButton.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Modal/Modal.cjs +1 -1
- package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/className/index.cjs +1 -1
- package/dist/esm/components/data-display/Table/FilterChipsSection.js +1 -1
- package/dist/esm/components/data-display/Table/Table.js +4 -4
- package/dist/esm/components/data-display/Table/TableBody.js +1 -1
- package/dist/esm/components/data-display/Table/TableToolbar.js +14 -15
- package/dist/esm/components/data-display/Table/filters/FilterComponents.js +10 -10
- package/dist/esm/components/data-display/Tabs/Tabs.js +27 -25
- package/dist/esm/components/global/AppBar/AppBar.js +7 -7
- package/dist/esm/components/global/Layout/Layout.js +16 -15
- package/dist/esm/contexts/NavigationProgressContext.js +5 -5
- package/dist/esm/index.js +196 -195
- package/dist/esm/node_modules/.pnpm/@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useSlider/useSlider.js +4 -4
- package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Accordion/accordionClasses.js +3 -3
- package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/AccordionDetails/accordionDetailsClasses.js +3 -3
- package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Autocomplete/Autocomplete.js +1 -1
- package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItem/listItemClasses.js +3 -3
- package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItemButton/ListItemButton.js +1 -1
- package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItemButton/listItemButtonClasses.js +3 -3
- package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Modal/Modal.js +1 -1
- package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Switch/switchClasses.js +3 -3
- package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/className/index.js +3 -3
- package/dist/index.d.ts +2 -1
- package/package.json +5 -1
- package/dist/cjs/assets/harpercollins-design-system.css +0 -1
- package/dist/esm/assets/harpercollins-design-system.css +0 -1
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import a from "react";
|
|
3
|
+
import r from "styled-components";
|
|
4
4
|
import c from "../Typography/Typography.js";
|
|
5
5
|
import x from "./ExportToExcelButton.js";
|
|
6
|
-
import
|
|
6
|
+
import g from "./FilterChipsSection.js";
|
|
7
7
|
import o from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Box/Box.js";
|
|
8
|
-
const f =
|
|
8
|
+
const f = r(o)`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
gap: 8px;
|
|
12
12
|
padding: 0.5rem;
|
|
13
|
-
background: var(--palette-background-
|
|
13
|
+
background: var(--palette-background-surface);
|
|
14
14
|
border-bottom: 1px solid var(--palette-divider);
|
|
15
15
|
min-height: 48px;
|
|
16
16
|
position: sticky;
|
|
17
17
|
top: 0;
|
|
18
18
|
z-index: 1;
|
|
19
|
-
`,
|
|
19
|
+
`, h = r(o)`
|
|
20
20
|
display: flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
justify-content: space-between;
|
|
23
23
|
width: 100%;
|
|
24
24
|
`;
|
|
25
|
-
function
|
|
26
|
-
const d =
|
|
27
|
-
return /* @__PURE__ */ t(f, { ref: s, children: /* @__PURE__ */ l(
|
|
25
|
+
function m({ toolbar: e, columnFilters: i, table: n }, s) {
|
|
26
|
+
const d = n.getFilteredRowModel().rows.length, p = i.length > 0;
|
|
27
|
+
return /* @__PURE__ */ t(f, { ref: s, children: /* @__PURE__ */ l(h, { children: [
|
|
28
28
|
/* @__PURE__ */ l(o, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
29
|
+
e.rightContent ? e.rightContent : null,
|
|
29
30
|
e.exportToExcel?.enabled && /* @__PURE__ */ t(
|
|
30
31
|
x,
|
|
31
32
|
{
|
|
@@ -33,15 +34,13 @@ function h({ toolbar: e, columnFilters: i, table: r }, s) {
|
|
|
33
34
|
disabled: e.exportToExcel.disabled
|
|
34
35
|
}
|
|
35
36
|
),
|
|
36
|
-
e.showFilterChips ? /* @__PURE__ */ t(
|
|
37
|
+
e.showFilterChips ? /* @__PURE__ */ t(g, { columnFilters: i, table: n }) : null
|
|
37
38
|
] }),
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
40
|
-
e.customContent
|
|
41
|
-
] })
|
|
39
|
+
/* @__PURE__ */ t(o, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: e.totalResults !== void 0 && /* @__PURE__ */ t(c, { level: "body-sm", sx: { fontWeight: 500 }, children: p ? `Showing ${d.toLocaleString()} of ${e.totalResults.toLocaleString()} results` : `Total Results: ${e.totalResults.toLocaleString()}` }) }),
|
|
40
|
+
e.rightContent ? e.rightContent : null
|
|
42
41
|
] }) });
|
|
43
42
|
}
|
|
44
|
-
const v =
|
|
43
|
+
const v = a.forwardRef(m);
|
|
45
44
|
export {
|
|
46
45
|
v as default
|
|
47
46
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as h, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { faFilter as V } from "../../../../node_modules/.pnpm/@fortawesome_free-solid-svg-icons@6.7.2/node_modules/@fortawesome/free-solid-svg-icons/index.js";
|
|
3
3
|
import o from "react";
|
|
4
4
|
import v from "styled-components";
|
|
@@ -6,15 +6,15 @@ import w from "../../../inputs/RadioButton/RadioButton.js";
|
|
|
6
6
|
import D from "../../../navigation/Dropdown/Dropdown.js";
|
|
7
7
|
import I from "../../../navigation/Menu/Menu.js";
|
|
8
8
|
import z from "../../Icon/Icon.js";
|
|
9
|
-
import
|
|
9
|
+
import A from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Badge/Badge.js";
|
|
10
|
+
import R from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/MenuButton/MenuButton.js";
|
|
11
|
+
import E from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/IconButton/IconButton.js";
|
|
10
12
|
import C from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/List/List.js";
|
|
11
13
|
import S from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ListItem/ListItem.js";
|
|
12
|
-
import
|
|
14
|
+
import k from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Checkbox/Checkbox.js";
|
|
15
|
+
import x from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Box/Box.js";
|
|
13
16
|
import m from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Input/Input.js";
|
|
14
17
|
import F from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Button/Button.js";
|
|
15
|
-
import R from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Badge/Badge.js";
|
|
16
|
-
import E from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/MenuButton/MenuButton.js";
|
|
17
|
-
import k from "../../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/IconButton/IconButton.js";
|
|
18
18
|
function b(e) {
|
|
19
19
|
const { header: l } = e.columnDef;
|
|
20
20
|
return String(typeof l == "function" ? l({ column: e }) : l);
|
|
@@ -326,7 +326,7 @@ function O({
|
|
|
326
326
|
component: "li",
|
|
327
327
|
sx: { paddingLeft: 0, paddingTop: 0 },
|
|
328
328
|
children: /* @__PURE__ */ t(
|
|
329
|
-
|
|
329
|
+
k,
|
|
330
330
|
{
|
|
331
331
|
label: s,
|
|
332
332
|
checked: n.includes(s),
|
|
@@ -361,7 +361,7 @@ function ie({
|
|
|
361
361
|
}, c = P[l];
|
|
362
362
|
return /* @__PURE__ */ h(D, { open: n, onOpenChange: (f, u) => i(u), children: [
|
|
363
363
|
/* @__PURE__ */ t(
|
|
364
|
-
|
|
364
|
+
A,
|
|
365
365
|
{
|
|
366
366
|
badgeContent: "",
|
|
367
367
|
invisible: !e.getIsFiltered(),
|
|
@@ -377,12 +377,12 @@ function ie({
|
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
379
|
children: /* @__PURE__ */ t(
|
|
380
|
-
|
|
380
|
+
R,
|
|
381
381
|
{
|
|
382
382
|
"aria-label": `${e.getIsFiltered() ? "Filtered" : "Filter"} by ${b(
|
|
383
383
|
e
|
|
384
384
|
)}`,
|
|
385
|
-
slots: { root:
|
|
385
|
+
slots: { root: E },
|
|
386
386
|
slotProps: {
|
|
387
387
|
root: {
|
|
388
388
|
size: "sm",
|
|
@@ -1,59 +1,61 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback as
|
|
2
|
+
import { useCallback as c, useState as B, useEffect as I } from "react";
|
|
3
3
|
import b from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Tab/tabClasses.js";
|
|
4
|
-
import
|
|
4
|
+
import d from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/TabList/tabListClasses.js";
|
|
5
5
|
import P from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/TabPanel/tabPanelClasses.js";
|
|
6
6
|
import R from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Tabs/Tabs.js";
|
|
7
7
|
function z({
|
|
8
|
-
children:
|
|
8
|
+
children: u,
|
|
9
9
|
defaultValue: p,
|
|
10
|
-
value:
|
|
10
|
+
value: r,
|
|
11
11
|
onChange: m,
|
|
12
12
|
updateUrl: o = !0,
|
|
13
13
|
sx: f,
|
|
14
14
|
tabStyle: g = "default",
|
|
15
|
-
storageKey:
|
|
15
|
+
storageKey: n,
|
|
16
16
|
...C
|
|
17
17
|
}) {
|
|
18
|
-
const h =
|
|
19
|
-
if (!
|
|
18
|
+
const h = c(() => {
|
|
19
|
+
if (!n) return null;
|
|
20
20
|
try {
|
|
21
|
-
return localStorage.getItem(
|
|
21
|
+
return localStorage.getItem(n);
|
|
22
22
|
} catch {
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
|
-
}, [
|
|
25
|
+
}, [n]), e = c(() => o ? new URLSearchParams(window.location.search).get("tab") : null, [o]), x = e(), v = h(), S = r ?? x ?? v ?? p, [s, l] = B(
|
|
26
26
|
S ?? null
|
|
27
|
-
), k =
|
|
28
|
-
if (
|
|
29
|
-
const
|
|
30
|
-
|
|
27
|
+
), k = r ?? s, T = (t, a) => {
|
|
28
|
+
if (r === void 0 && l(a), o && a !== null) {
|
|
29
|
+
const i = new URL(window.location.href);
|
|
30
|
+
i.searchParams.set("tab", String(a)), window.history.replaceState({}, "", i.toString());
|
|
31
31
|
}
|
|
32
|
-
if (
|
|
32
|
+
if (n && a !== null)
|
|
33
33
|
try {
|
|
34
|
-
localStorage.setItem(
|
|
34
|
+
localStorage.setItem(n, String(a));
|
|
35
35
|
} catch {
|
|
36
36
|
}
|
|
37
|
-
m?.(t,
|
|
37
|
+
m?.(t, a);
|
|
38
38
|
};
|
|
39
39
|
I(() => {
|
|
40
|
-
if (o &&
|
|
41
|
-
const t =
|
|
40
|
+
if (o && r === void 0) {
|
|
41
|
+
const t = e();
|
|
42
42
|
t && t !== s && l(t);
|
|
43
43
|
}
|
|
44
|
-
}, [o,
|
|
44
|
+
}, [o, r, s, e]);
|
|
45
45
|
const w = {
|
|
46
|
-
[`& .${
|
|
46
|
+
[`& .${d.root}`]: {
|
|
47
47
|
marginBottom: 2,
|
|
48
|
-
borderBottom: "
|
|
48
|
+
borderBottom: "2px solid var(--palette-neutral-200)",
|
|
49
|
+
"--Tab-indicatorThickness": "3px"
|
|
49
50
|
},
|
|
50
51
|
[`& .${b.root}`]: {
|
|
51
52
|
backgroundColor: "transparent",
|
|
52
53
|
'&[aria-selected="true"]': {
|
|
53
54
|
backgroundColor: "transparent",
|
|
55
|
+
fontWeight: "bold",
|
|
54
56
|
"&::after": {
|
|
55
57
|
backgroundColor: "var(--palette-primary-500)",
|
|
56
|
-
bottom: "calc(-
|
|
58
|
+
bottom: "calc(-3px - var(--unstable_TabList-underlineBottom, 0px))"
|
|
57
59
|
}
|
|
58
60
|
},
|
|
59
61
|
"&:hover": {
|
|
@@ -61,7 +63,7 @@ function z({
|
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
65
|
}, $ = {
|
|
64
|
-
[`& .${
|
|
66
|
+
[`& .${d.root}`]: {
|
|
65
67
|
flexWrap: "wrap",
|
|
66
68
|
boxShadow: "none",
|
|
67
69
|
padding: 0,
|
|
@@ -101,7 +103,7 @@ function z({
|
|
|
101
103
|
onChange: T,
|
|
102
104
|
sx: L,
|
|
103
105
|
...C,
|
|
104
|
-
children:
|
|
106
|
+
children: u
|
|
105
107
|
}
|
|
106
108
|
);
|
|
107
109
|
}
|
|
@@ -109,6 +111,6 @@ export {
|
|
|
109
111
|
z as Tabs,
|
|
110
112
|
z as default,
|
|
111
113
|
b as tabClasses,
|
|
112
|
-
|
|
114
|
+
d as tabListClasses,
|
|
113
115
|
P as tabPanelClasses
|
|
114
116
|
};
|
|
@@ -11,13 +11,13 @@ import X from "../../navigation/Menu/MenuHeading.js";
|
|
|
11
11
|
import Y from "../Logo/Logo.js";
|
|
12
12
|
import Z from "../Logo/LogoMini.js";
|
|
13
13
|
import ee from "./NavigationProgress.js";
|
|
14
|
-
import re from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/MenuButton/MenuButton.js";
|
|
15
|
-
import D from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/IconButton/IconButton.js";
|
|
16
14
|
import k from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Drawer/Drawer.js";
|
|
17
15
|
import S from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/ModalClose/ModalClose.js";
|
|
18
|
-
import
|
|
16
|
+
import re from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/DialogTitle/DialogTitle.js";
|
|
19
17
|
import o from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Box/Box.js";
|
|
20
|
-
import
|
|
18
|
+
import D from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/IconButton/IconButton.js";
|
|
19
|
+
import { useTheme as oe } from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/styles/ThemeProvider.js";
|
|
20
|
+
import ie from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/MenuButton/MenuButton.js";
|
|
21
21
|
const ne = i.header`
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-flow: row;
|
|
@@ -67,7 +67,7 @@ const ne = i.header`
|
|
|
67
67
|
text-decoration: none;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
`, C = i(
|
|
70
|
+
`, C = i(ie)`
|
|
71
71
|
${L}
|
|
72
72
|
svg {
|
|
73
73
|
width: 1rem;
|
|
@@ -134,7 +134,7 @@ function Be({
|
|
|
134
134
|
size: "lg",
|
|
135
135
|
children: [
|
|
136
136
|
/* @__PURE__ */ e(S, {}),
|
|
137
|
-
/* @__PURE__ */ e(
|
|
137
|
+
/* @__PURE__ */ e(re, { children: "Main menu" }),
|
|
138
138
|
/* @__PURE__ */ e(o, { role: "presentation", children: h })
|
|
139
139
|
]
|
|
140
140
|
}
|
|
@@ -237,7 +237,7 @@ function Be({
|
|
|
237
237
|
]
|
|
238
238
|
}
|
|
239
239
|
)
|
|
240
|
-
] }), V =
|
|
240
|
+
] }), V = oe(), { logoFillColour: v } = V.palette.appbar;
|
|
241
241
|
return /* @__PURE__ */ r(w, { children: [
|
|
242
242
|
/* @__PURE__ */ e(
|
|
243
243
|
ee,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import n from "styled-components";
|
|
3
3
|
import { useLocalStorage as g } from "../../../hooks/useLocalStorage.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import h from "../Footer/Footer.js";
|
|
6
|
+
import u from "../Sidebar/Sidebar.js";
|
|
7
7
|
import b from "../ThemeProvider/ThemeProvider.js";
|
|
8
8
|
import y from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Box/Box.js";
|
|
9
9
|
import S from "../../../node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Sheet/Sheet.js";
|
|
10
|
-
const k =
|
|
10
|
+
const k = n.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
height: 100vh;
|
|
14
14
|
width: 100%;
|
|
15
|
-
`, v =
|
|
15
|
+
`, v = n.a`
|
|
16
16
|
position: absolute;
|
|
17
17
|
top: -100%;
|
|
18
18
|
left: 0;
|
|
@@ -33,10 +33,10 @@ function F({
|
|
|
33
33
|
header: l,
|
|
34
34
|
theme: m = "light_internal",
|
|
35
35
|
showSidebar: p,
|
|
36
|
-
sidebarContent:
|
|
36
|
+
sidebarContent: d,
|
|
37
37
|
sidebarWidth: r = 240,
|
|
38
38
|
collapsedSidebarWidth: t = 60,
|
|
39
|
-
sidebarHeaderContent:
|
|
39
|
+
sidebarHeaderContent: c,
|
|
40
40
|
footerReleaseName: f,
|
|
41
41
|
footerCopyright: s
|
|
42
42
|
}) {
|
|
@@ -44,24 +44,24 @@ function F({
|
|
|
44
44
|
"sidebarOpen",
|
|
45
45
|
!0
|
|
46
46
|
);
|
|
47
|
-
return /* @__PURE__ */ o(b, { theme: m, children: /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ o(b, { theme: m, children: /* @__PURE__ */ i(k, { children: [
|
|
48
48
|
/* @__PURE__ */ o(v, { href: "#main", children: "Skip to content" }),
|
|
49
49
|
l,
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ i(y, { sx: { display: "flex", flex: 1 }, children: [
|
|
51
51
|
p ? /* @__PURE__ */ o(
|
|
52
|
-
|
|
52
|
+
u,
|
|
53
53
|
{
|
|
54
54
|
sidebarOpen: e,
|
|
55
55
|
onSidebarToggle: () => {
|
|
56
56
|
x(!e);
|
|
57
57
|
},
|
|
58
|
-
sidebarContent:
|
|
58
|
+
sidebarContent: d,
|
|
59
59
|
sidebarWidth: r,
|
|
60
60
|
collapsedSidebarWidth: t,
|
|
61
|
-
headerContent:
|
|
61
|
+
headerContent: c
|
|
62
62
|
}
|
|
63
63
|
) : null,
|
|
64
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ i(
|
|
65
65
|
S,
|
|
66
66
|
{
|
|
67
67
|
component: "main",
|
|
@@ -73,6 +73,7 @@ function F({
|
|
|
73
73
|
display: "flex",
|
|
74
74
|
flexDirection: "column",
|
|
75
75
|
flex: "1 1 auto",
|
|
76
|
+
minWidth: 0,
|
|
76
77
|
width: {
|
|
77
78
|
xs: "100%",
|
|
78
79
|
md: `calc(100% - ${e ? r : t}px)`,
|
|
@@ -82,7 +83,7 @@ function F({
|
|
|
82
83
|
children: [
|
|
83
84
|
a,
|
|
84
85
|
/* @__PURE__ */ o(
|
|
85
|
-
|
|
86
|
+
h,
|
|
86
87
|
{
|
|
87
88
|
releaseName: f,
|
|
88
89
|
copyright: s
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import x, {
|
|
2
|
+
import x, { useState as N, useRef as f, useCallback as s, useEffect as T, useContext as S, createContext as C } from "react";
|
|
3
3
|
const d = {
|
|
4
4
|
showProgress: !1,
|
|
5
5
|
completing: !1,
|
|
6
6
|
width: 0
|
|
7
|
-
}, h =
|
|
7
|
+
}, h = C(void 0);
|
|
8
8
|
function M({
|
|
9
9
|
children: i
|
|
10
10
|
}) {
|
|
11
|
-
const [r, c] =
|
|
11
|
+
const [r, c] = N(d), t = f({}), a = f(!1), o = s(() => {
|
|
12
12
|
Object.values(t.current).forEach((e) => {
|
|
13
13
|
e && clearTimeout(e);
|
|
14
14
|
}), t.current = {};
|
|
@@ -43,7 +43,7 @@ function M({
|
|
|
43
43
|
l
|
|
44
44
|
]
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
T(() => o, [o]);
|
|
47
47
|
const w = x.useMemo(
|
|
48
48
|
() => ({ progressState: r, setNavigating: m }),
|
|
49
49
|
[r, m]
|
|
@@ -51,7 +51,7 @@ function M({
|
|
|
51
51
|
return /* @__PURE__ */ p(h.Provider, { value: w, children: i });
|
|
52
52
|
}
|
|
53
53
|
const j = () => {
|
|
54
|
-
const i =
|
|
54
|
+
const i = S(h);
|
|
55
55
|
if (!i)
|
|
56
56
|
throw new Error(
|
|
57
57
|
"useNavigationProgress must be used within a NavigationProgressProvider"
|