tc-dazzle-ui 1.10.3 → 1.10.4

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/index.esm.js CHANGED
@@ -611,10 +611,6 @@ const Layout = ({ header, sidebar, main, footer, actions, rightPanel, showSideba
611
611
  classes.push('tc-layout--sidebar-right');
612
612
  return classes.join(' ');
613
613
  };
614
- const sidebarStyle = {
615
- width: typeof sidebarWidth === 'number' ? `${sidebarWidth}px` : sidebarWidth,
616
- minWidth: typeof sidebarWidth === 'number' ? `${sidebarWidth}px` : sidebarWidth,
617
- };
618
614
  const rightPanelStyle = {
619
615
  width: typeof rightPanelWidth === 'number' ? `${rightPanelWidth}px` : rightPanelWidth,
620
616
  minWidth: typeof rightPanelWidth === 'number' ? `${rightPanelWidth}px` : rightPanelWidth,
@@ -627,11 +623,7 @@ const Layout = ({ header, sidebar, main, footer, actions, rightPanel, showSideba
627
623
  const mainContentStyle = {
628
624
  maxWidth: typeof maxContentWidth === 'number' ? `${maxContentWidth}px` : maxContentWidth,
629
625
  };
630
- return (jsxs("div", { className: getLayoutClasses(), children: [header && (jsx("header", { ref: headerRef, className: "tc-layout__header", children: header })), jsxs("div", { className: "tc-layout__body", children: [sidebar && showSidebar && (jsx("aside", { className: "tc-layout__sidebar", style: {
631
- ...sidebarStyle,
632
- height: `calc(100vh - ${headerHeight}px)`,
633
- top: `${headerHeight}px`
634
- }, children: jsx("div", { className: "tc-layout__sidebar-content", children: sidebar }) })), jsx("div", { className: "tc-layout__main-wrapper", style: { height: `calc(100vh - ${headerHeight}px)` }, children: jsxs("main", { className: "tc-layout__main", style: mainContentStyle, children: [actions && (jsx("div", { className: "tc-layout__actions", children: actions })), jsx("div", { className: "tc-layout__content", children: main })] }) }), rightPanel && (jsx("aside", { className: "tc-layout__right-panel", style: rightPanelStyle, children: rightPanel }))] }), footer && (jsx("footer", { className: "tc-layout__footer", children: footer }))] }));
626
+ return (jsxs("div", { className: getLayoutClasses(), children: [header && (jsx("header", { ref: headerRef, className: "tc-layout__header", children: header })), jsxs("div", { className: "tc-layout__body", children: [sidebar && showSidebar && sidebar, jsx("div", { className: "tc-layout__main-wrapper", style: { height: `calc(100vh - ${headerHeight}px)` }, children: jsxs("main", { className: "tc-layout__main", style: mainContentStyle, children: [actions && (jsx("div", { className: "tc-layout__actions", children: actions })), jsx("div", { className: "tc-layout__content", children: main })] }) }), rightPanel && (jsx("aside", { className: "tc-layout__right-panel", style: rightPanelStyle, children: rightPanel }))] }), footer && (jsx("footer", { className: "tc-layout__footer", children: footer }))] }));
635
627
  };
636
628
 
637
629
  var x = Object.defineProperty;