@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/dist/esm/index.js CHANGED
@@ -752,7 +752,7 @@ function Jt(e,t){const n=Pt(e,t);return"production"!==process.env.NODE_ENV?(...t
752
752
  align-items: center;
753
753
  justify-content: center;
754
754
  margin-top: auto;
755
- `;function dR({copyright:n,releaseName:r,children:o}){return e(cR,{children:t(km,{children:[o,e(sR,{sx:{fontSize:"xs",my:.5,textAlign:"center"},children:n||"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"}),r?e(sR,{sx:{fontSize:"xs",my:.5,textAlign:"center"},children:r}):null]})})}function uR({sidebarOpen:n=!0,onSidebarToggle:o,headerContent:a,footerContent:i,sidebarContent:l,sidebarWidth:s,collapsedSidebarWidth:c}){const d=r.isValidElement(l)?r.cloneElement(l,{sidebarOpen:n,onSidebarToggle:o}):l,u=r.isValidElement(a)?r.cloneElement(a,{sidebarOpen:n,onSidebarToggle:o}):a;return t(uv,{component:"aside",sx:{backgroundColor:"background.body",width:{xs:0,md:n?`${s}px`:`${c}px`,xl:n&&s?1.25*s+"px":`${c}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:[a?e(km,{sx:{height:64,display:"flex",alignItems:"center",justifyContent:"flex-start",px:1,borderBottom:"1px solid",borderColor:"divider",flexShrink:0},children:u}):null,e(km,{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:d}),i?e(km,{sx:{height:64,display:"flex",alignItems:"center",justifyContent:n?"flex-start":"center",px:1,borderTop:"1px solid",borderColor:"divider",flexShrink:0,position:"fixed",bottom:0},children:i}):null,e($p,{variant:"plain",onClick:o,sx:{backgroundColor:"background.surface",height:50,display:"flex",alignItems:"center",justifyContent:n?"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(QC,{icon:n?tx:Zw})})]})}const pR=jw.div`
755
+ `;function dR({copyright:n,releaseName:r,children:o}){return e(cR,{children:t(km,{children:[o,e(sR,{sx:{fontSize:"xs",my:.5,textAlign:"center"},children:n||"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"}),r?e(sR,{sx:{fontSize:"xs",my:.5,textAlign:"center"},children:r}):null]})})}function uR({sidebarOpen:n=!0,onSidebarToggle:o,headerContent:a,footerContent:i,sidebarContent:l,sidebarWidth:s,collapsedSidebarWidth:c}){const d=r.isValidElement(l)?r.cloneElement(l,{sidebarOpen:n,onSidebarToggle:o}):l,u=r.isValidElement(a)?r.cloneElement(a,{sidebarOpen:n,onSidebarToggle:o}):a;return t(uv,{component:"aside",sx:{backgroundColor:"background.body",width:{xs:0,md:n?`${s}px`:`${c}px`,xl:n&&s?1.25*s+"px":`${c}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:[a?e(km,{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:u}):null,e(km,{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:d}),i?e(km,{sx:{height:64,display:"flex",alignItems:"center",justifyContent:n?"flex-start":"center",px:1,borderTop:"1px solid",borderColor:"divider",flexShrink:0,position:"fixed",bottom:0},children:i}):null,e($p,{variant:"plain",onClick:o,sx:{backgroundColor:"background.surface",height:50,display:"flex",alignItems:"center",justifyContent:n?"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(QC,{icon:n?tx:Zw})})]})}const pR=jw.div`
756
756
  display: flex;
757
757
  flex-direction: column;
758
758
  height: 100vh;