@harpercollins/harpercollins-design-system 1.29.5 → 1.29.7

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 (29) hide show
  1. package/dist/cjs/components/data-display/Table/FilterChipsSection.cjs +1 -1
  2. package/dist/cjs/components/data-display/Table/Table.cjs +1 -1
  3. package/dist/cjs/components/data-display/Table/TableToolbar.cjs +3 -3
  4. package/dist/cjs/components/data-display/Table/filters/FilterComponents.cjs +2 -2
  5. package/dist/cjs/components/global/AppBar/AppBar.cjs +3 -3
  6. package/dist/cjs/index.cjs +1 -1
  7. 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
  8. 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
  9. 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
  10. 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
  11. package/dist/esm/components/data-display/Table/FilterChipsSection.js +1 -1
  12. package/dist/esm/components/data-display/Table/Table.js +4 -4
  13. package/dist/esm/components/data-display/Table/TableBody.js +1 -1
  14. package/dist/esm/components/data-display/Table/TableToolbar.js +11 -11
  15. package/dist/esm/components/data-display/Table/filters/FilterComponents.js +10 -10
  16. package/dist/esm/components/global/AppBar/AppBar.js +7 -7
  17. package/dist/esm/contexts/NavigationProgressContext.js +5 -5
  18. package/dist/esm/index.js +194 -195
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. package/package.json +6 -10
@@ -1,4 +1,4 @@
1
- import { jsxs as h, jsx as t } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as h } 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 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";
9
+ 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";
12
10
  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";
13
11
  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";
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";
12
+ 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/Checkbox/Checkbox.js";
16
13
  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";
17
14
  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
- k,
329
+ A,
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
- A,
364
+ R,
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
- R,
380
+ E,
381
381
  {
382
382
  "aria-label": `${e.getIsFiltered() ? "Filtered" : "Filter"} by ${b(
383
383
  e
384
384
  )}`,
385
- slots: { root: E },
385
+ slots: { root: k },
386
386
  slotProps: {
387
387
  root: {
388
388
  size: "sm",
@@ -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";
14
16
  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";
15
17
  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";
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";
18
+ import 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/DialogTitle/DialogTitle.js";
17
19
  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";
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";
20
+ import { useTheme as 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/styles/ThemeProvider.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(ie)`
70
+ `, C = i(re)`
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(re, { children: "Main menu" }),
137
+ /* @__PURE__ */ e(oe, { 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 = oe(), { logoFillColour: v } = V.palette.appbar;
240
+ ] }), V = ie(), { logoFillColour: v } = V.palette.appbar;
241
241
  return /* @__PURE__ */ r(w, { children: [
242
242
  /* @__PURE__ */ e(
243
243
  ee,
@@ -1,14 +1,14 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import x, { useState as N, useRef as f, useCallback as s, useEffect as T, useContext as S, createContext as C } from "react";
2
+ import x, { createContext as N, useState as T, useRef as f, useCallback as s, useEffect as S, useContext as C } from "react";
3
3
  const d = {
4
4
  showProgress: !1,
5
5
  completing: !1,
6
6
  width: 0
7
- }, h = C(void 0);
7
+ }, h = N(void 0);
8
8
  function M({
9
9
  children: i
10
10
  }) {
11
- const [r, c] = N(d), t = f({}), a = f(!1), o = s(() => {
11
+ const [r, c] = T(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
- T(() => o, [o]);
46
+ S(() => 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 = S(h);
54
+ const i = C(h);
55
55
  if (!i)
56
56
  throw new Error(
57
57
  "useNavigationProgress must be used within a NavigationProgressProvider"