react-better-html 1.1.283 → 1.1.284
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.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8346,9 +8346,10 @@ var SideMenuComponent = function SideMenu({
|
|
|
8346
8346
|
setActiveItem,
|
|
8347
8347
|
items: itemsState,
|
|
8348
8348
|
bottomItems: bottomItemsState,
|
|
8349
|
-
position
|
|
8349
|
+
position,
|
|
8350
|
+
withSideBar: sideBar !== void 0
|
|
8350
8351
|
}),
|
|
8351
|
-
[activeItem, itemsState, bottomItemsState, position]
|
|
8352
|
+
[activeItem, itemsState, bottomItemsState, position, sideBar]
|
|
8352
8353
|
);
|
|
8353
8354
|
const isCollapsable = collapsable && !mediaQuery.size1000;
|
|
8354
8355
|
const isCollapsed = sideMenuIsCollapsed && !mediaQuery.size1000;
|
|
@@ -8395,8 +8396,8 @@ var SideMenuComponent = function SideMenu({
|
|
|
8395
8396
|
gap: theme2.styles.gap / 2,
|
|
8396
8397
|
marginTop: "auto",
|
|
8397
8398
|
paddingTop: mediaQuery.size1000 ? theme2.styles.space : void 0,
|
|
8398
|
-
paddingInline: !
|
|
8399
|
-
paddingBottom: !
|
|
8399
|
+
paddingInline: !renderBottomItemsHolder ? theme2.styles.space : void 0,
|
|
8400
|
+
paddingBottom: !renderBottomItemsHolder ? !isCollapsable ? mediaQuery.size1000 && bottomItemsAdditionalComponent ? 0 : theme2.styles.space : void 0 : void 0,
|
|
8400
8401
|
children: readyBottomItems?.map((item) => /* @__PURE__ */ jsx28(
|
|
8401
8402
|
MenuItemComponent,
|
|
8402
8403
|
{
|
|
@@ -8443,7 +8444,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
8443
8444
|
/* @__PURE__ */ jsxs24(
|
|
8444
8445
|
Div_default.column,
|
|
8445
8446
|
{
|
|
8446
|
-
width: mediaQuery.size1000 ?
|
|
8447
|
+
width: mediaQuery.size1000 ? `calc(100% - ${sideBar ? sideBarWidth : 0}px)` : isCollapsed ? sideMenuCollapsedWidth : sideMenuWidth,
|
|
8447
8448
|
height: "100%",
|
|
8448
8449
|
borderRight: position === "left" ? readyBorder : void 0,
|
|
8449
8450
|
borderLeft: position === "right" ? border ?? `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}` : void 0,
|
|
@@ -8582,10 +8583,11 @@ SideMenuComponent.pageHolder = function SideMenuPageHolder({
|
|
|
8582
8583
|
const theme2 = useTheme29();
|
|
8583
8584
|
const mediaQuery = useMediaQuery();
|
|
8584
8585
|
const { components, sideMenuIsCollapsed } = useBetterHtmlContextInternal();
|
|
8585
|
-
const { position } = useSideMenuContext();
|
|
8586
|
+
const { position, withSideBar } = useSideMenuContext();
|
|
8586
8587
|
const sideMenuWidth = components.sideMenu?.width ?? defaultSideMenuWidth;
|
|
8587
8588
|
const sideMenuCollapsedWidth = theme2.styles.space + theme2.styles.space * 2 + 16 + theme2.styles.space;
|
|
8588
|
-
const
|
|
8589
|
+
const sideBarWidth = components.sideMenu?.width ?? defaultSideBarWidth;
|
|
8590
|
+
const sideSpace = !mediaQuery.size1000 ? (!sideMenuIsCollapsed ? sideMenuWidth : sideMenuCollapsedWidth) + (withSideBar ? sideBarWidth : 0) : void 0;
|
|
8589
8591
|
return /* @__PURE__ */ jsxs24(
|
|
8590
8592
|
Div_default,
|
|
8591
8593
|
{
|