react-better-html 1.1.250 → 1.1.252
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.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2207,6 +2207,7 @@ var ButtonComponent = function Button(buttonProps) {
|
|
|
2207
2207
|
/* @__PURE__ */ jsxs5(
|
|
2208
2208
|
Div_default.row,
|
|
2209
2209
|
{
|
|
2210
|
+
height: href ? "100%" : void 0,
|
|
2210
2211
|
alignItems: "center",
|
|
2211
2212
|
justifyContent: "center",
|
|
2212
2213
|
gap: 10,
|
|
@@ -7134,6 +7135,8 @@ var TooltipComponent = forwardRef16(function Tooltip({
|
|
|
7134
7135
|
contentWidth,
|
|
7135
7136
|
contentMinWidth,
|
|
7136
7137
|
contentPointerEvents = "auto",
|
|
7138
|
+
contentPaddingBlock,
|
|
7139
|
+
contentPaddingInline,
|
|
7137
7140
|
childrenWrapperWidth = "fit-content",
|
|
7138
7141
|
childrenWrapperHeight,
|
|
7139
7142
|
disabled,
|
|
@@ -7273,8 +7276,8 @@ var TooltipComponent = forwardRef16(function Tooltip({
|
|
|
7273
7276
|
minWidth: contentMinWidth,
|
|
7274
7277
|
backgroundColor: backgroundColor ?? theme2.colors.backgroundContent,
|
|
7275
7278
|
boxShadow: "0px 10px 20px #00000020",
|
|
7276
|
-
paddingBlock: isSmall ? theme2.styles.gap / 2 : theme2.styles.gap,
|
|
7277
|
-
paddingInline: asContextMenu ? 0 : isSmall ? theme2.styles.space / 2 : theme2.styles.space,
|
|
7279
|
+
paddingBlock: contentPaddingBlock ?? (isSmall ? theme2.styles.gap / 2 : theme2.styles.gap),
|
|
7280
|
+
paddingInline: contentPaddingInline ?? (asContextMenu ? 0 : isSmall ? theme2.styles.space / 2 : theme2.styles.space),
|
|
7278
7281
|
overflow: asContextMenu ? "hidden" : void 0,
|
|
7279
7282
|
children: content
|
|
7280
7283
|
}
|
|
@@ -7986,6 +7989,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
7986
7989
|
gap,
|
|
7987
7990
|
paddingTop,
|
|
7988
7991
|
paddingBottom,
|
|
7992
|
+
mobileFoldToPosition = "left",
|
|
7989
7993
|
renderItemsHolder,
|
|
7990
7994
|
renderBottomItemsHolder
|
|
7991
7995
|
}) {
|
|
@@ -8066,7 +8070,7 @@ var SideMenuComponent = function SideMenu({
|
|
|
8066
8070
|
left: 0,
|
|
8067
8071
|
backgroundColor: readyBackgroundColor,
|
|
8068
8072
|
borderRight: `solid ${theme2.styles.borderWidth}px ${theme2.colors.border}`,
|
|
8069
|
-
transform: !mediaQuery.size1000 || sideMenuIsOpenMobile ? "translateX(0)" :
|
|
8073
|
+
transform: !mediaQuery.size1000 || sideMenuIsOpenMobile ? "translateX(0)" : `translateX(${mobileFoldToPosition === "left" ? "-" : ""}100%)`,
|
|
8070
8074
|
paddingTop: paddingTop ?? (logoAssetName || logoUrl ? theme2.styles.gap : theme2.styles.space),
|
|
8071
8075
|
paddingBottom,
|
|
8072
8076
|
transition: mediaQuery.size1000 ? !isCollapsed ? `transform ${theme2.styles.transition}` : "none" : theme2.styles.transition,
|