@harpercollins/harpercollins-design-system 1.29.5 → 1.29.6

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,4 +1,4 @@
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)`
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"),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=i(n)`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 8px;
@@ -9,9 +9,9 @@
9
9
  position: sticky;
10
10
  top: 0;
11
11
  z-index: 1;
12
- `,g=o(n)`
12
+ `,g=i(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: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;
17
+ `;function h({toolbar:e,columnFilters:s,table:o},l){const r=o.getFilteredRowModel().rows.length,c=s.length>0;return t.jsx(u,{ref:l,children:t.jsxs(g,{children:[t.jsxs(n,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.leftContent?e.leftContent:null,e.exportToExcel?.enabled&&t.jsx(a,{onExport:e.exportToExcel.onExport,disabled:e.exportToExcel.disabled}),e.showFilterChips?t.jsx(p,{columnFilters:s,table:o}):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 ${r.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,11 +1,11 @@
1
- import { jsx as t, jsxs as l } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
2
  import a from "react";
3
3
  import r from "styled-components";
4
4
  import c from "../Typography/Typography.js";
5
5
  import x from "./ExportToExcelButton.js";
6
- import g from "./FilterChipsSection.js";
6
+ import f 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 = r(o)`
8
+ const g = r(o)`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  gap: 8px;
@@ -16,17 +16,17 @@ const f = r(o)`
16
16
  position: sticky;
17
17
  top: 0;
18
18
  z-index: 1;
19
- `, h = r(o)`
19
+ `, m = 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 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
- /* @__PURE__ */ l(o, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
29
- e.rightContent ? e.rightContent : null,
25
+ function h({ toolbar: e, columnFilters: l, table: n }, s) {
26
+ const d = n.getFilteredRowModel().rows.length, p = l.length > 0;
27
+ return /* @__PURE__ */ t(g, { ref: s, children: /* @__PURE__ */ i(m, { children: [
28
+ /* @__PURE__ */ i(o, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
29
+ e.leftContent ? e.leftContent : null,
30
30
  e.exportToExcel?.enabled && /* @__PURE__ */ t(
31
31
  x,
32
32
  {
@@ -34,13 +34,13 @@ function m({ toolbar: e, columnFilters: i, table: n }, s) {
34
34
  disabled: e.exportToExcel.disabled
35
35
  }
36
36
  ),
37
- e.showFilterChips ? /* @__PURE__ */ t(g, { columnFilters: i, table: n }) : null
37
+ e.showFilterChips ? /* @__PURE__ */ t(f, { columnFilters: l, table: n }) : null
38
38
  ] }),
39
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
40
  e.rightContent ? e.rightContent : null
41
41
  ] }) });
42
42
  }
43
- const v = a.forwardRef(m);
43
+ const v = a.forwardRef(h);
44
44
  export {
45
45
  v as default
46
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.29.5",
3
+ "version": "1.29.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"