@harpercollins/harpercollins-design-system 1.29.4 → 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.
@@ -1,17 +1,17 @@
1
- "use strict";const t=require("react/jsx-runtime"),d=require("react"),i=require("styled-components"),x=require("../Typography/Typography.cjs"),a=require("./ExportToExcelButton.cjs"),p=require("./FilterChipsSection.cjs"),o=require("../../../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.cjs"),u=i(o)`
1
+ "use strict";const t=require("react/jsx-runtime"),d=require("react"),o=require("styled-components"),x=require("../Typography/Typography.cjs"),a=require("./ExportToExcelButton.cjs"),p=require("./FilterChipsSection.cjs"),n=require("../../../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.cjs"),u=o(n)`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 8px;
5
5
  padding: 0.5rem;
6
- background: var(--palette-background-body);
6
+ background: var(--palette-background-surface);
7
7
  border-bottom: 1px solid var(--palette-divider);
8
8
  min-height: 48px;
9
9
  position: sticky;
10
10
  top: 0;
11
11
  z-index: 1;
12
- `,g=i(o)`
12
+ `,g=o(n)`
13
13
  display: flex;
14
14
  align-items: center;
15
15
  justify-content: space-between;
16
16
  width: 100%;
17
- `;function h({toolbar:e,columnFilters:s,table:n},l){const r=n.getFilteredRowModel().rows.length,c=s.length>0;return t.jsx(u,{ref:l,children:t.jsxs(g,{children:[t.jsxs(o,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.exportToExcel?.enabled&&t.jsx(a,{onExport:e.exportToExcel.onExport,disabled:e.exportToExcel.disabled}),e.showFilterChips?t.jsx(p,{columnFilters:s,table:n}):null]}),t.jsxs(o,{sx:{display:"flex",alignItems:"center",gap:2},children:[e.totalResults!==void 0&&t.jsx(x,{level:"body-sm",sx:{fontWeight:500},children:c?`Showing ${r.toLocaleString()} of ${e.totalResults.toLocaleString()} results`:`Total Results: ${e.totalResults.toLocaleString()}`}),e.customContent]})]})})}const T=d.forwardRef(h);module.exports=T;
17
+ `;function h({toolbar:e,columnFilters:s,table:i},r){const l=i.getFilteredRowModel().rows.length,c=s.length>0;return t.jsx(u,{ref:r,children:t.jsxs(g,{children:[t.jsxs(n,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.rightContent?e.rightContent:null,e.exportToExcel?.enabled&&t.jsx(a,{onExport:e.exportToExcel.onExport,disabled:e.exportToExcel.disabled}),e.showFilterChips?t.jsx(p,{columnFilters:s,table:i}):null]}),t.jsx(n,{sx:{display:"flex",alignItems:"center",gap:2},children:e.totalResults!==void 0&&t.jsx(x,{level:"body-sm",sx:{fontWeight:500},children:c?`Showing ${l.toLocaleString()} of ${e.totalResults.toLocaleString()} results`:`Total Results: ${e.totalResults.toLocaleString()}`})}),e.rightContent?e.rightContent:null]})})}const f=d.forwardRef(h);module.exports=f;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("react/jsx-runtime"),n=require("react"),u=require("../../../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.cjs"),c=require("../../../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.cjs"),d=require("../../../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.cjs"),R=require("../../../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.cjs");function f({children:g,defaultValue:p,value:r,onChange:C,updateUrl:e=!0,sx:m,tabStyle:h="default",storageKey:o,...v}){const S=n.useCallback(()=>{if(!o)return null;try{return localStorage.getItem(o)}catch{return null}},[o]),s=n.useCallback(()=>e?new URLSearchParams(window.location.search).get("tab"):null,[e]),x=s(),k=S(),T=r??x??k??p,[l,i]=n.useState(T??null),w=r??l,q=(t,a)=>{if(r===void 0&&i(a),e&&a!==null){const b=new URL(window.location.href);b.searchParams.set("tab",String(a)),window.history.replaceState({},"",b.toString())}if(o&&a!==null)try{localStorage.setItem(o,String(a))}catch{}C?.(t,a)};n.useEffect(()=>{if(e&&r===void 0){const t=s();t&&t!==l&&i(t)}},[e,r,l,s]);const $={[`& .${c.default.root}`]:{marginBottom:2,borderBottom:"1px solid var(--palette-neutral-200)"},[`& .${u.default.root}`]:{backgroundColor:"transparent",'&[aria-selected="true"]':{backgroundColor:"transparent","&::after":{backgroundColor:"var(--palette-primary-500)",bottom:"calc(-2px - var(--unstable_TabList-underlineBottom, 0px))"}},"&:hover":{backgroundColor:"transparent"}}},y={[`& .${c.default.root}`]:{flexWrap:"wrap",boxShadow:"none",padding:0,margin:0,gap:"1px"},[`& .${u.default.root}`]:{backgroundColor:"var(--palette-neutral-200)",borderColor:"var(--palette-neutral-200)",border:"none",borderRadius:"4px 4px 0 0","&::after":{backgroundColor:"transparent",paddingBottom:0,boxShadow:"none"},'&[aria-selected="true"]':{backgroundColor:"var(--palette-background-body)"},"&:hover":{backgroundColor:"var(--palette-neutral-100)"}},[`& .${d.default.root}`]:{backgroundColor:"var(--palette-background-body)"}},L={bgcolor:"transparent",flexWrap:"wrap",...h==="attached"?{...y}:{...$},...m};return P.jsx(R,{value:w,onChange:q,sx:L,...v,children:g})}exports.tabClasses=u.default;exports.tabListClasses=c.default;exports.tabPanelClasses=d.default;exports.Tabs=f;exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("react/jsx-runtime"),n=require("react"),u=require("../../../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.cjs"),c=require("../../../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.cjs"),d=require("../../../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.cjs"),R=require("../../../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.cjs");function f({children:g,defaultValue:p,value:r,onChange:C,updateUrl:e=!0,sx:h,tabStyle:m="default",storageKey:o,...v}){const S=n.useCallback(()=>{if(!o)return null;try{return localStorage.getItem(o)}catch{return null}},[o]),s=n.useCallback(()=>e?new URLSearchParams(window.location.search).get("tab"):null,[e]),x=s(),k=S(),T=r??x??k??p,[l,i]=n.useState(T??null),w=r??l,q=(t,a)=>{if(r===void 0&&i(a),e&&a!==null){const b=new URL(window.location.href);b.searchParams.set("tab",String(a)),window.history.replaceState({},"",b.toString())}if(o&&a!==null)try{localStorage.setItem(o,String(a))}catch{}C?.(t,a)};n.useEffect(()=>{if(e&&r===void 0){const t=s();t&&t!==l&&i(t)}},[e,r,l,s]);const $={[`& .${c.default.root}`]:{marginBottom:2,borderBottom:"2px solid var(--palette-neutral-200)","--Tab-indicatorThickness":"3px"},[`& .${u.default.root}`]:{backgroundColor:"transparent",'&[aria-selected="true"]':{backgroundColor:"transparent",fontWeight:"bold","&::after":{backgroundColor:"var(--palette-primary-500)",bottom:"calc(-3px - var(--unstable_TabList-underlineBottom, 0px))"}},"&:hover":{backgroundColor:"transparent"}}},y={[`& .${c.default.root}`]:{flexWrap:"wrap",boxShadow:"none",padding:0,margin:0,gap:"1px"},[`& .${u.default.root}`]:{backgroundColor:"var(--palette-neutral-200)",borderColor:"var(--palette-neutral-200)",border:"none",borderRadius:"4px 4px 0 0","&::after":{backgroundColor:"transparent",paddingBottom:0,boxShadow:"none"},'&[aria-selected="true"]':{backgroundColor:"var(--palette-background-body)"},"&:hover":{backgroundColor:"var(--palette-neutral-100)"}},[`& .${d.default.root}`]:{backgroundColor:"var(--palette-background-body)"}},L={bgcolor:"transparent",flexWrap:"wrap",...m==="attached"?{...y}:{...$},...h};return P.jsx(R,{value:w,onChange:q,sx:L,...v,children:g})}exports.tabClasses=u.default;exports.tabListClasses=c.default;exports.tabPanelClasses=d.default;exports.Tabs=f;exports.default=f;
@@ -18,4 +18,4 @@
18
18
  &:focus {
19
19
  top: 0;
20
20
  }
21
- `;function k({children:i,header:s,theme:c="light_internal",showSidebar:a,sidebarContent:l,sidebarWidth:o=240,collapsedSidebarWidth:n=60,sidebarHeaderContent:u,footerReleaseName:x,footerCopyright:d}){const[r,p]=g.useLocalStorage("sidebarOpen",!0),f=()=>{p(!r)};return e.jsx(b,{theme:c,children:e.jsxs(j,{children:[e.jsx(S,{href:"#main",children:"Skip to content"}),s,e.jsxs(q,{sx:{display:"flex",flex:1},children:[a?e.jsx(m,{sidebarOpen:r,onSidebarToggle:f,sidebarContent:l,sidebarWidth:o,collapsedSidebarWidth:n,headerContent:u}):null,e.jsxs(y.default,{component:"main",id:"main",tabIndex:-1,sx:{bgcolor:"background.body",transition:"margin-left 0.3s ease",display:"flex",flexDirection:"column",flex:"1 1 auto",width:{xs:"100%",md:`calc(100% - ${r?o:n}px)`,xl:`calc(100% - ${r?o*1.25:n}px)`}},children:[i,e.jsx(h,{releaseName:x,copyright:d})]})]})]})})}module.exports=k;
21
+ `;function k({children:i,header:s,theme:c="light_internal",showSidebar:a,sidebarContent:l,sidebarWidth:n=240,collapsedSidebarWidth:o=60,sidebarHeaderContent:u,footerReleaseName:x,footerCopyright:d}){const[r,p]=g.useLocalStorage("sidebarOpen",!0),f=()=>{p(!r)};return e.jsx(b,{theme:c,children:e.jsxs(j,{children:[e.jsx(S,{href:"#main",children:"Skip to content"}),s,e.jsxs(q,{sx:{display:"flex",flex:1},children:[a?e.jsx(m,{sidebarOpen:r,onSidebarToggle:f,sidebarContent:l,sidebarWidth:n,collapsedSidebarWidth:o,headerContent:u}):null,e.jsxs(y.default,{component:"main",id:"main",tabIndex:-1,sx:{bgcolor:"background.body",transition:"margin-left 0.3s ease",display:"flex",flexDirection:"column",flex:"1 1 auto",minWidth:0,width:{xs:"100%",md:`calc(100% - ${r?n:o}px)`,xl:`calc(100% - ${r?n*1.25:o}px)`}},children:[i,e.jsx(h,{releaseName:x,copyright:d})]})]})]})})}module.exports=k;
@@ -1,31 +1,32 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import p from "react";
3
- import n from "styled-components";
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 m from "./FilterChipsSection.js";
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 = n(o)`
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-body);
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
- `, g = n(o)`
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 h({ toolbar: e, columnFilters: i, table: r }, s) {
26
- const d = r.getFilteredRowModel().rows.length, a = i.length > 0;
27
- return /* @__PURE__ */ t(f, { ref: s, children: /* @__PURE__ */ l(g, { children: [
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(m, { columnFilters: i, table: r }) : null
37
+ e.showFilterChips ? /* @__PURE__ */ t(g, { columnFilters: i, table: n }) : null
37
38
  ] }),
38
- /* @__PURE__ */ l(o, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
39
- e.totalResults !== void 0 && /* @__PURE__ */ t(c, { level: "body-sm", sx: { fontWeight: 500 }, children: a ? `Showing ${d.toLocaleString()} of ${e.totalResults.toLocaleString()} results` : `Total Results: ${e.totalResults.toLocaleString()}` }),
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 = p.forwardRef(h);
43
+ const v = a.forwardRef(m);
45
44
  export {
46
45
  v as default
47
46
  };
@@ -1,59 +1,61 @@
1
1
  import { jsx as y } from "react/jsx-runtime";
2
- import { useCallback as i, useState as B, useEffect as I } from "react";
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 u 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";
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: d,
8
+ children: u,
9
9
  defaultValue: p,
10
- value: a,
10
+ value: r,
11
11
  onChange: m,
12
12
  updateUrl: o = !0,
13
13
  sx: f,
14
14
  tabStyle: g = "default",
15
- storageKey: e,
15
+ storageKey: n,
16
16
  ...C
17
17
  }) {
18
- const h = i(() => {
19
- if (!e) return null;
18
+ const h = c(() => {
19
+ if (!n) return null;
20
20
  try {
21
- return localStorage.getItem(e);
21
+ return localStorage.getItem(n);
22
22
  } catch {
23
23
  return null;
24
24
  }
25
- }, [e]), n = i(() => o ? new URLSearchParams(window.location.search).get("tab") : null, [o]), v = n(), x = h(), S = a ?? v ?? x ?? p, [s, l] = B(
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 = a ?? s, T = (t, r) => {
28
- if (a === void 0 && l(r), o && r !== null) {
29
- const c = new URL(window.location.href);
30
- c.searchParams.set("tab", String(r)), window.history.replaceState({}, "", c.toString());
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 (e && r !== null)
32
+ if (n && a !== null)
33
33
  try {
34
- localStorage.setItem(e, String(r));
34
+ localStorage.setItem(n, String(a));
35
35
  } catch {
36
36
  }
37
- m?.(t, r);
37
+ m?.(t, a);
38
38
  };
39
39
  I(() => {
40
- if (o && a === void 0) {
41
- const t = n();
40
+ if (o && r === void 0) {
41
+ const t = e();
42
42
  t && t !== s && l(t);
43
43
  }
44
- }, [o, a, s, n]);
44
+ }, [o, r, s, e]);
45
45
  const w = {
46
- [`& .${u.root}`]: {
46
+ [`& .${d.root}`]: {
47
47
  marginBottom: 2,
48
- borderBottom: "1px solid var(--palette-neutral-200)"
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(-2px - var(--unstable_TabList-underlineBottom, 0px))"
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
- [`& .${u.root}`]: {
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: d
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
- u as tabListClasses,
114
+ d as tabListClasses,
113
115
  P as tabPanelClasses
114
116
  };
@@ -1,18 +1,18 @@
1
- import { jsx as o, jsxs as n } from "react/jsx-runtime";
2
- import i from "styled-components";
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 u from "../Footer/Footer.js";
6
- import h from "../Sidebar/Sidebar.js";
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 = i.div`
10
+ const k = n.div`
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  height: 100vh;
14
14
  width: 100%;
15
- `, v = i.a`
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: c,
36
+ sidebarContent: d,
37
37
  sidebarWidth: r = 240,
38
38
  collapsedSidebarWidth: t = 60,
39
- sidebarHeaderContent: d,
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__ */ n(k, { children: [
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__ */ n(y, { sx: { display: "flex", flex: 1 }, children: [
50
+ /* @__PURE__ */ i(y, { sx: { display: "flex", flex: 1 }, children: [
51
51
  p ? /* @__PURE__ */ o(
52
- h,
52
+ u,
53
53
  {
54
54
  sidebarOpen: e,
55
55
  onSidebarToggle: () => {
56
56
  x(!e);
57
57
  },
58
- sidebarContent: c,
58
+ sidebarContent: d,
59
59
  sidebarWidth: r,
60
60
  collapsedSidebarWidth: t,
61
- headerContent: d
61
+ headerContent: c
62
62
  }
63
63
  ) : null,
64
- /* @__PURE__ */ n(
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
- u,
86
+ h,
86
87
  {
87
88
  releaseName: f,
88
89
  copyright: s
package/dist/index.d.ts CHANGED
@@ -522,7 +522,8 @@ export declare interface TableProps<TData = unknown> {
522
522
  export declare interface TableToolbarOptions {
523
523
  enabled: boolean;
524
524
  totalResults?: number;
525
- customContent?: default_2.ReactNode;
525
+ leftContent?: default_2.ReactNode;
526
+ rightContent?: default_2.ReactNode;
526
527
  showFilterChips?: boolean;
527
528
  exportToExcel?: {
528
529
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.29.4",
3
+ "version": "1.29.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"