@harpercollins/harpercollins-design-system 1.18.0 → 1.19.1
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/cjs/index.cjs +4 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/global/AppBar/AppBar.d.ts +3 -1
- package/dist/cjs/types/src/components/global/Footer/Footer.d.ts +2 -1
- package/dist/cjs/types/src/components/global/Layout/Layout.d.ts +2 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/global/AppBar/AppBar.d.ts +3 -1
- package/dist/esm/types/src/components/global/Footer/Footer.d.ts +2 -1
- package/dist/esm/types/src/components/global/Layout/Layout.d.ts +2 -1
- package/dist/index.d.ts +5 -2
- package/package.json +1 -1
|
@@ -26,6 +26,8 @@ interface AppBarProps {
|
|
|
26
26
|
avatarUrl: string;
|
|
27
27
|
} | null;
|
|
28
28
|
logoUrl?: string;
|
|
29
|
+
logo?: JSX.Element;
|
|
30
|
+
logoMini?: JSX.Element;
|
|
29
31
|
}
|
|
30
|
-
declare function AppBar({ currentApp, isNavigating, navigatingProgressDelay, leftSide, rightSide, myAccountMenu, workspaces, workspacesMenu, currentWorkspace, helpButton, mobileMenuPrimaryContent, mobileMenuSecondaryContent, user, logoUrl, }: AppBarProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function AppBar({ currentApp, isNavigating, navigatingProgressDelay, leftSide, rightSide, myAccountMenu, workspaces, workspacesMenu, currentWorkspace, helpButton, mobileMenuPrimaryContent, mobileMenuSecondaryContent, user, logoUrl, logo, logoMini, }: AppBarProps): import("react/jsx-runtime").JSX.Element;
|
|
31
33
|
export default AppBar;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface FooterProps {
|
|
2
2
|
copyright?: string;
|
|
3
|
+
releaseName?: string;
|
|
3
4
|
children?: React.ReactNode;
|
|
4
5
|
}
|
|
5
|
-
declare function Footer({ copyright, children }: FooterProps): React.ReactElement;
|
|
6
|
+
declare function Footer({ copyright, releaseName, children, }: FooterProps): React.ReactElement;
|
|
6
7
|
export default Footer;
|
|
@@ -10,6 +10,7 @@ interface LayoutProps {
|
|
|
10
10
|
sidebarWidth?: number;
|
|
11
11
|
collapsedSidebarWidth?: number;
|
|
12
12
|
sidebarHeaderContent?: React.ReactNode;
|
|
13
|
+
footerReleaseName?: string;
|
|
13
14
|
}
|
|
14
|
-
declare function Layout({ children, header, theme, showSidebar, sidebarContent, sidebarWidth, collapsedSidebarWidth, sidebarHeaderContent, }: React.PropsWithChildren<LayoutProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function Layout({ children, header, theme, showSidebar, sidebarContent, sidebarWidth, collapsedSidebarWidth, sidebarHeaderContent, footerReleaseName, }: React.PropsWithChildren<LayoutProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export default Layout;
|
package/dist/esm/index.js
CHANGED
|
@@ -281,7 +281,7 @@ function Jt(e,t){const n=Pt(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
281
281
|
svg {
|
|
282
282
|
width: 1rem;
|
|
283
283
|
}
|
|
284
|
-
`;function MO({currentApp:a,isNavigating:i,navigatingProgressDelay:l,leftSide:s,rightSide:c,myAccountMenu:d,workspaces:u,workspacesMenu:p,currentWorkspace:f,helpButton:m,mobileMenuPrimaryContent:h,mobileMenuSecondaryContent:g,user:v,logoUrl:b}){const[
|
|
284
|
+
`;function MO({currentApp:a,isNavigating:i,navigatingProgressDelay:l,leftSide:s,rightSide:c,myAccountMenu:d,workspaces:u,workspacesMenu:p,currentWorkspace:f,helpButton:m,mobileMenuPrimaryContent:h,mobileMenuSecondaryContent:g,user:v,logoUrl:b,logo:y,logoMini:w}){const[k,S]=o.useState([{isOpen:!1,id:"primary"},{isOpen:!1,id:"secondary"}]),C=(e,t)=>{S(k?.map(n=>n.id===e?{...n,isOpen:t}:n))},O=e=>k.find(t=>t.id===e)?.isOpen,D=h?t(n,{children:[e(RO,{onClick:()=>C("primary",!0),children:e(QC,{icon:Jw,size:"md"})}),t(eg,{open:O("primary"),onClose:()=>{C("primary",!1)},anchor:"left",size:"lg",children:[e(Gg,{}),e(Ah,{children:"Main menu"}),e(km,{role:"presentation",children:h})]})]}):null,_=Array.isArray(u)&&u.length>0?e(km,{sx:{display:{xs:"none",sm:"flex"},pointerEvents:u.length<=1?"none":void 0},children:t(cO,{children:[e(TO,{size:"sm",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:f}),t(dO,{placement:"bottom-start",children:[e(uO,{sticky:!0,children:"Workspaces"}),p]})]})}):null,T=t(DO,{children:[c,_,m?t(NO,{as:m.as,href:m.href,to:m.href,"aria-label":m.text,children:[e(QC,{icon:iO,size:"sm"}),e(km,{sx:{padding:0,display:{xs:"none",md:"flex"}},children:m.text||"Help"})]}):null,v&&d?t(cO,{children:[e(TO,{size:"sm",slots:{root:$p},slotProps:{root:{variant:"outlined",color:"neutral"}},startDecorator:e(QC,{icon:aO,size:"sm"}),children:e(km,{sx:{padding:0,display:{xs:"none",md:"flex"},textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",maxWidth:"100px"},children:v?.displayName?v.displayName:"My Account"})}),d]}):null]}),P=t(km,{sx:{display:{xs:"flex",md:"none"}},children:[e(RO,{onClick:()=>C("secondary",!0),color:"neutral",children:e(QC,{icon:nx,size:"md"})}),t(eg,{open:O("secondary"),onClose:()=>{C("secondary",!1)},anchor:"right",size:"lg",children:[" ",e(Gg,{}),e(km,{role:"presentation",onClick:()=>C("secondary",!1),onKeyDown:()=>C("secondary",!1),children:g})]})]}),I=(()=>{const e=ur(ei);return"production"!==process.env.NODE_ENV&&r.useDebugValue(e),e[x]||e})(),{logoFillColour:E}=I.palette.appbar;return t(n,{children:[e(SO,{isNavigating:i,delay:l}),t(CO,{children:[t(km,{sx:{display:"flex",alignItems:"center",gap:"1rem"},children:[e(km,{sx:{display:{xs:"flex",md:"none"}},children:D}),e(km,{sx:{display:{xs:"none",md:"flex"}},children:e(OO,{href:b||"/","aria-label":"Home",children:y||e(fO,{fillColour:E})})}),e(km,{sx:{display:{xs:"none",sm:"flex",md:"none"}},children:e(OO,{href:b||"/","aria-label":"Home",children:w||e(hO,{fillColour:E})})}),e(EO,{currentApp:a})]}),t(km,{sx:{display:"flex"},children:[e(PO,{children:s}),e(km,{children:T}),g&&P]})]})]})}function zO({id:r,options:a,onChange:i,name:l,...s}){const[c,d]=o.useState(s.defaultValue),[u,p]=o.useState(s.defaultValue?.value);return t(n,{children:[e(nm,{...s,sx:{"--Input-minHeight":"2.6rem"},id:r,options:a,onChange:(e,t,n)=>{d(t),p(t?t?.value:""),i&&i(e,t,n)},getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.value===t.value,value:c,renderOption:s.renderOption,name:""}),e(hf,{name:l,value:u,type:"hidden",sx:{display:"none"}})]})}function $O(t){return e(Du,{...t})}const AO=jw.button`
|
|
285
285
|
float: right;
|
|
286
286
|
border: none;
|
|
287
287
|
background: none;
|
|
@@ -720,7 +720,7 @@ function Jt(e,t){const n=Pt(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
720
720
|
}
|
|
721
721
|
`,XE=jw.div`
|
|
722
722
|
position: relative;
|
|
723
|
-
`;let QE=1;const ZE=a(({children:n,side:r,size:a="md",open:i=!1,closeBlocked:l,onClose:s=()=>{},onCloseCompleted:c=()=>{},closeRequested:u=!1,showCloseButton:f=!1,...m},h)=>{const g=d(null);g.current||(g.current=`overlay-${QE}`,QE+=1);const v=d(null),[b,y]=o.useState(!1);o.useEffect(()=>{if(b){const e=setTimeout(c,200);return()=>{clearTimeout(e)}}return()=>{}}),p(()=>{u&&y(!0)},[u]),g.current||(g.current=`modal-${QE}`,QE+=1),p(()=>{document.body.style.overflow=i?"hidden":"auto"},[i]),p(()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),s())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[s]);return e(eg,{open:i&&!b,anchor:r,className:`${r} ${i?"open":"closing"}`,size:a,...m,children:e(GE,{children:t(qE,{ref:v,children:[l&&t(UE,{role:"alert","aria-live":"assertive",children:[e(QC,{icon:dx}),t("p",{children:[e("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e(XE,{ref:h,children:t(FE,{children:[f&&e(km,{sx:{display:"flex",justifyContent:"flex-end",padding:"1rem"},children:e($p,{onClick:()=>s(),color:"neutral",children:e(QC,{icon:ix,size:"lg"})})}),n]})})]})})})});function eR(t){return e(lg,{...t})}function tR(t){return e(pg,{...t})}const nR={light_internal:Za({cssVarPrefix:"",colorSchemes:{light:{color:{"":{primary:"var(--palette-primary-500)"}},palette:{mode:"light",primary:{50:"#
|
|
723
|
+
`;let QE=1;const ZE=a(({children:n,side:r,size:a="md",open:i=!1,closeBlocked:l,onClose:s=()=>{},onCloseCompleted:c=()=>{},closeRequested:u=!1,showCloseButton:f=!1,...m},h)=>{const g=d(null);g.current||(g.current=`overlay-${QE}`,QE+=1);const v=d(null),[b,y]=o.useState(!1);o.useEffect(()=>{if(b){const e=setTimeout(c,200);return()=>{clearTimeout(e)}}return()=>{}}),p(()=>{u&&y(!0)},[u]),g.current||(g.current=`modal-${QE}`,QE+=1),p(()=>{document.body.style.overflow=i?"hidden":"auto"},[i]),p(()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),s())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[s]);return e(eg,{open:i&&!b,anchor:r,className:`${r} ${i?"open":"closing"}`,size:a,...m,children:e(GE,{children:t(qE,{ref:v,children:[l&&t(UE,{role:"alert","aria-live":"assertive",children:[e(QC,{icon:dx}),t("p",{children:[e("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e(XE,{ref:h,children:t(FE,{children:[f&&e(km,{sx:{display:"flex",justifyContent:"flex-end",padding:"1rem"},children:e($p,{onClick:()=>s(),color:"neutral",children:e(QC,{icon:ix,size:"lg"})})}),n]})})]})})})});function eR(t){return e(lg,{...t})}function tR(t){return e(pg,{...t})}const nR={light_internal:Za({cssVarPrefix:"",colorSchemes:{light:{color:{"":{primary:"var(--palette-primary-500)"}},palette:{mode:"light",primary:{50:"#e8f0f6",100:"#d2e1ed",200:"#a6c3db",300:"#7aa5ca",400:"#4e87b8",500:"#2269a7",600:"#1b5485",700:"#143f64",800:"#0d2a42",900:"#061521"},neutral:{50:"#fafbfd",100:"#f4f7fb",200:"#dbdde1",300:"#ced2d7",400:"#929496",500:"#7a7b7d",600:"#616264",700:"#494a4b",800:"#313132",900:"#181919"},background:{body:"var(--color--white)",surface:"var(--palette-primary-50)"},appbar:{background:"var(--color--primary)",text:"var(--color--white)",logoFillColour:"var(--color--white)"}}}}}),light_external:Za({cssVarPrefix:"",colorSchemes:{light:{color:{"":{primary:"var(--palette-primary-500)"}},palette:{mode:"light",primary:{50:"#eaf1f7",100:"#c2d5e7",200:"#9ab9d8",300:"#719dc8",400:"#4981b8",500:"#3573B1",600:"#2f679f",700:"#25507b",800:"#1a3958",900:"#0f2235"},neutral:{50:"#fafbfd",100:"#f4f7fb",200:"#dbdde1",300:"#ced2d7",400:"#929496",500:"#7a7b7d",600:"#616264",700:"#494a4b",800:"#313132",900:"#181919"},appbar:{background:"var(--color--white)",text:"var(--color--grey)",logoFillColour:void 0}}}}})};function rR({children:t,theme:n="light_internal"}){return e(ii,{theme:nR[n],children:t})}const oR=jw.div`
|
|
724
724
|
background: var(--color--grey-lightest);
|
|
725
725
|
text-align: center;
|
|
726
726
|
display: flex;
|
|
@@ -746,18 +746,18 @@ function Jt(e,t){const n=Pt(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
746
746
|
max-width: 600px;
|
|
747
747
|
`;function iR(){return e(rR,{children:e(oR,{children:t(aR,{children:[e(QC,{icon:dx,size:"xl",colour:"danger"}),e(px,{as:"h1",children:"Something went wrong"}),e("p",{children:"There was a problem with that request. Please try again, if the problem persists, please contact support."}),e(iD,{type:"link",href:"/",children:"Back to homepage"})]})})})}function lR(t){return e(fg,{...t})}_E('/* http://meyerweb.com/eric/tools/css/reset/\n v2.0 | 20110126\n License: none (public domain)\n*/\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\n/* HTML5 display-role reset for older browsers */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\nsection {\n display: block;\n}\nbody {\n line-height: 1;\n}\nol,\nul {\n list-style: none;\n}\nblockquote,\nq {\n quotes: none;\n}\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: "";\n content: none;\n}\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n');function sR(t){return e(Rm,{sx:{"--Input-minHeight":"2.6rem","--joy-fontSize-xl4":"2rem"},...t})}_E(':root {\n --color--black: #000000;\n --color--grey-dark: #262626;\n --color--grey: #5c5c5c;\n --color--grey-light: #a8aab7;\n --color--grey-lighter: #f5f5f5;\n --color--grey-lightest: #f3f6fa;\n --color--grey-borders: #d7d7d7;\n --color--grey-line: #e0e0e0;\n --color--grey-hover: #f9f9f9;\n --color--white: #fff;\n\n --color--teal: #007d7e;\n --color--teal-light: #00b0b1;\n --color--teal-tint: #f2fcfc;\n\n --color--red: #d9303e;\n --color--red-dark: #c02330;\n --color--red-light: #f7dbdd;\n --color--red-tint: #ffdddf;\n\n --color--amber: #e9b04d;\n --color--amber-tint: #faecd5;\n --color--orange: #f5a623;\n --color--orange-dark: #eb6f00;\n --color--orange-light: #f2c06f;\n\n --color--green: #29c889;\n --color--green-dark: #1c874c;\n --color--green-light: #afe7d0;\n --color--indigo: #2e1f5e;\n --color--lemon: #ffe60b;\n --color--focus-outline: #fcc726;\n\n --color--danger: var(--color--red);\n --color--danger-light: var(--color--red-light);\n --color--warning: var(--color--orange);\n --color--warning-light: var(--color--orange-light);\n --color--success: var(--color--green);\n\n --color--dark-blue: #192a3c;\n --color--blue-light: #d6e3fa;\n\n --color--debug: #663399;\n --color--debug-light: #663399db;\n --color--debug-very-light: #6633991a;\n\n /* Fonts */\n --font-family--sans-serif:\n system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,\n "Helvetica Neue", Oxygen, Cantarell, sans-serif;\n\n --font-family--monospace:\n source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;\n\n /* Spacing */\n --spacing--xxxsmall: 0.1rem;\n --spacing--xxsmall: 0.2rem;\n --spacing--xsmall: 0.3rem;\n --spacing--small: 0.5rem;\n --spacing--medium: 1rem;\n --spacing--large: 2rem;\n --spacing--xlarge: 4rem;\n\n /* Font sizes */\n --font-size--xxsmall: 0.6rem;\n --font-size--xsmall: 0.75rem;\n --font-size--small: 0.875rem;\n --font-size--medium: 1rem;\n --font-size--large: 1.25rem;\n --font-size--xlarge: 1.5rem;\n --font-size--xxlarge: 2rem;\n --font-size--xxxlarge: 3rem;\n\n /* Line heights */\n --line-height--small: 1.2rem;\n --line-height--medium: 1.4rem;\n --line-height--large: 1.4rem;\n\n /* Font weights */\n --font-weight--thin: 200;\n --font-weight--light: 300;\n --font-weight--regular: 400;\n --font-weight--medium: 500;\n --font-weight--bold: 700;\n\n /* Border radius */\n --border-radius--small: 0.25rem;\n --border-radius--medium: 0.5rem;\n --border-radius--large: 1rem;\n --border-radius--xlarge: 2rem;\n\n /* Box shadows */\n --box-shadow--medium: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);\n\n /* Breakpoints */\n --breakpoint--small: 480px;\n --breakpoint--medium: 768px;\n --breakpoint--large: 1024px;\n --breakpoint--xlarge: 1200px;\n --breakpoint--xxlarge: 1440px;\n --breakpoint--xxxlarge: 1920px;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n* {\n margin: 0;\n}\n\na {\n color: var(--color--primary);\n text-decoration: none;\n\n &:hover,\n &:focus {\n text-decoration: underline;\n }\n}\n\nbody,\nbutton {\n font-family: var(--font-family--sans-serif);\n font-weight: var(--font-weight--regular);\n font-style: normal;\n}\n\nbody {\n background-color: var(--color--grey-lightest);\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n color: var(--color--grey-dark);\n -webkit-print-color-adjust: exact !important;\n print-color-adjust: exact !important;\n}\n\nb {\n font-weight: var(--font-weight--bold);\n}\n\n*:focus-visible {\n outline: 3px solid var(--color--focus-outline);\n}\n\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\ntextarea {\n border: 1px solid var(--color--grey-borders);\n border-radius: var(--border-radius--small);\n background-color: var(--color--grey-lighter);\n padding: var(--spacing--medium);\n}\n\np,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n overflow-wrap: break-word;\n}\n\np {\n font-size: var(--font-size--medium);\n margin-bottom: var(--spacing--medium);\n}\n\nul {\n list-style-type: disc;\n}\n\nol {\n list-style-type: decimal;\n}\n\n#root,\n#__next {\n isolation: isolate;\n}\n\nsmall {\n font-size: 80%;\n color: var(--color--grey);\n}\n');const cR=jw.footer`
|
|
748
748
|
flex-shrink: 0;
|
|
749
|
-
padding:
|
|
749
|
+
padding: 1rem;
|
|
750
750
|
height: 64px;
|
|
751
751
|
display: flex;
|
|
752
752
|
align-items: center;
|
|
753
753
|
justify-content: center;
|
|
754
754
|
margin-top: auto;
|
|
755
|
-
`;function dR({copyright:n,children:
|
|
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`
|
|
756
756
|
display: flex;
|
|
757
757
|
flex-direction: column;
|
|
758
758
|
height: 100vh;
|
|
759
759
|
width: 100%;
|
|
760
|
-
`;function fR({children:n,header:o,theme:a="light_internal",showSidebar:i,sidebarContent:l,sidebarWidth:s=
|
|
760
|
+
`;function fR({children:n,header:o,theme:a="light_internal",showSidebar:i,sidebarContent:l,sidebarWidth:s=240,collapsedSidebarWidth:c=60,sidebarHeaderContent:d,footerReleaseName:u}){const[p,f]=r.useState(!0);return e(rR,{theme:a,children:t(pR,{children:[o,t("div",{style:{display:"flex",flex:1},children:[i?e(uR,{sidebarOpen:p,onSidebarToggle:()=>{f(!p)},sidebarContent:l,sidebarWidth:s,collapsedSidebarWidth:c,headerContent:d}):null,t(uv,{component:"main",id:"main",sx:{transition:"margin-left 0.3s ease",display:"flex",flexDirection:"column",padding:"1.4rem 1rem",flex:"1 1 auto",width:{xs:"100%",md:`calc(100% - ${p?s:c}px)`,xl:`calc(100% - ${p?1.25*s:c}px)`}},children:[n,e(dR,{releaseName:u})]})]})]})})}const mR=jw(Bg)`
|
|
761
761
|
a,
|
|
762
762
|
button {
|
|
763
763
|
color: initial;
|