@harpercollins/harpercollins-design-system 1.19.1 → 1.19.2
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/README.md +4 -4
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,12 +17,12 @@ If you are developing a production application, we recommend updating the config
|
|
|
17
17
|
export default {
|
|
18
18
|
// other rules...
|
|
19
19
|
parserOptions: {
|
|
20
|
-
ecmaVersion:
|
|
21
|
-
sourceType:
|
|
22
|
-
project: [
|
|
20
|
+
ecmaVersion: "latest",
|
|
21
|
+
sourceType: "module",
|
|
22
|
+
project: ["./tsconfig.json", "./tsconfig.node.json"],
|
|
23
23
|
tsconfigRootDir: __dirname,
|
|
24
24
|
},
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -754,7 +754,7 @@ const AC={prefix:"far",iconName:"user",icon:[448,512,[128100,62144],"f007","M304
|
|
|
754
754
|
align-items: center;
|
|
755
755
|
justify-content: center;
|
|
756
756
|
margin-top: auto;
|
|
757
|
-
`;function _E({copyright:t,releaseName:n,children:r}){return e.jsx(DE,{children:e.jsxs(lm,{children:[r,e.jsx(OE,{sx:{fontSize:"xs",my:.5,textAlign:"center"},children:t||"Copyright © 2025 HarperCollins Publishers Ltd. All rights\n reserved. HarperCollins Publishers Ltd, Registered in Scotland, Company\n No. 27389 Registered Address: 1 Robroyston Gate, Robroyston, Glasgow, G33 1JN"}),n?e.jsx(OE,{sx:{fontSize:"xs",my:.5,textAlign:"center"},children:n}):null]})})}function TE({sidebarOpen:t=!0,onSidebarToggle:n,headerContent:r,footerContent:a,sidebarContent:i,sidebarWidth:s,collapsedSidebarWidth:l}){const c=o.isValidElement(i)?o.cloneElement(i,{sidebarOpen:t,onSidebarToggle:n}):i,d=o.isValidElement(r)?o.cloneElement(r,{sidebarOpen:t,onSidebarToggle:n}):r;return e.jsxs(Xg,{component:"aside",sx:{backgroundColor:"background.body",width:{xs:0,md:t?`${s}px`:`${l}px`,xl:t&&s?1.25*s+"px":`${l}px`},transition:"width 0.3s ease",flex:"0 0 auto",borderRight:"1px solid",borderColor:"divider",overflow:"hidden",flexDirection:"column",height:"100vh",position:"sticky",top:0,display:{xs:"none",md:"flex"}},children:[r?e.jsx(lm,{sx:{
|
|
757
|
+
`;function _E({copyright:t,releaseName:n,children:r}){return e.jsx(DE,{children:e.jsxs(lm,{children:[r,e.jsx(OE,{sx:{fontSize:"xs",my:.5,textAlign:"center"},children:t||"Copyright © 2025 HarperCollins Publishers Ltd. All rights\n reserved. HarperCollins Publishers Ltd, Registered in Scotland, Company\n No. 27389 Registered Address: 1 Robroyston Gate, Robroyston, Glasgow, G33 1JN"}),n?e.jsx(OE,{sx:{fontSize:"xs",my:.5,textAlign:"center"},children:n}):null]})})}function TE({sidebarOpen:t=!0,onSidebarToggle:n,headerContent:r,footerContent:a,sidebarContent:i,sidebarWidth:s,collapsedSidebarWidth:l}){const c=o.isValidElement(i)?o.cloneElement(i,{sidebarOpen:t,onSidebarToggle:n}):i,d=o.isValidElement(r)?o.cloneElement(r,{sidebarOpen:t,onSidebarToggle:n}):r;return e.jsxs(Xg,{component:"aside",sx:{backgroundColor:"background.body",width:{xs:0,md:t?`${s}px`:`${l}px`,xl:t&&s?1.25*s+"px":`${l}px`},transition:"width 0.3s ease",flex:"0 0 auto",borderRight:"1px solid",borderColor:"divider",overflow:"hidden",flexDirection:"column",height:"100vh",position:"sticky",top:0,display:{xs:"none",md:"flex"}},children:[r?e.jsx(lm,{sx:{backgroundColor:"var(--palette-primary-800)",color:"var(--palette-common-white)",display:"flex",alignItems:"center",justifyContent:"center",p:1,borderBottom:"1px solid",borderColor:"divider",flexShrink:0},children:d}):null,e.jsx(lm,{sx:{flexGrow:1,display:"flex",flexDirection:"column",overflowY:"auto",overflowX:"hidden",minHeight:0,paddingBottom:"110px","&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"neutral.300",borderRadius:"3px","&:hover":{backgroundColor:"neutral.400"}}},children:c}),a?e.jsx(lm,{sx:{height:64,display:"flex",alignItems:"center",justifyContent:t?"flex-start":"center",px:1,borderTop:"1px solid",borderColor:"divider",flexShrink:0,position:"fixed",bottom:0},children:a}):null,e.jsx(kp,{variant:"plain",onClick:n,sx:{backgroundColor:"background.surface",height:50,display:"flex",alignItems:"center",justifyContent:t?"flex-end":"center",px:2,borderTop:"1px solid",borderRight:"1px solid",borderColor:"divider",flexShrink:0,borderRadius:0,position:"fixed",bottom:0,width:"inherit"},children:e.jsx(NC,{icon:t?jx:Mx})})]})}const PE=Ox.div`
|
|
758
758
|
display: flex;
|
|
759
759
|
flex-direction: column;
|
|
760
760
|
height: 100vh;
|