react-better-html 1.1.136 → 1.1.138
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -323,6 +323,7 @@ type PageHolderComponentType = {
|
|
|
323
323
|
(props: ComponentPropWithRef<HTMLDivElement, PageHolderProps>): React.ReactElement;
|
|
324
324
|
center: (props: ComponentPropWithRef<HTMLDivElement, PageHolderProps & {
|
|
325
325
|
pageBackgroundColor?: string;
|
|
326
|
+
contentMaxWidth?: React.CSSProperties["maxWidth"];
|
|
326
327
|
sideImageSrc?: string;
|
|
327
328
|
sideImageName?: AssetName | AnyOtherString;
|
|
328
329
|
/** @default "right" */
|
|
@@ -758,6 +759,7 @@ type TooltipProps = {
|
|
|
758
759
|
contentMinWidth?: React.CSSProperties["minWidth"];
|
|
759
760
|
/** @default "fit-content" */
|
|
760
761
|
childrenWrapperWidth?: React.CSSProperties["width"];
|
|
762
|
+
childrenWrapperHeight?: React.CSSProperties["height"];
|
|
761
763
|
withArrow?: boolean;
|
|
762
764
|
isSmall?: boolean;
|
|
763
765
|
backgroundColor?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -323,6 +323,7 @@ type PageHolderComponentType = {
|
|
|
323
323
|
(props: ComponentPropWithRef<HTMLDivElement, PageHolderProps>): React.ReactElement;
|
|
324
324
|
center: (props: ComponentPropWithRef<HTMLDivElement, PageHolderProps & {
|
|
325
325
|
pageBackgroundColor?: string;
|
|
326
|
+
contentMaxWidth?: React.CSSProperties["maxWidth"];
|
|
326
327
|
sideImageSrc?: string;
|
|
327
328
|
sideImageName?: AssetName | AnyOtherString;
|
|
328
329
|
/** @default "right" */
|
|
@@ -758,6 +759,7 @@ type TooltipProps = {
|
|
|
758
759
|
contentMinWidth?: React.CSSProperties["minWidth"];
|
|
759
760
|
/** @default "fit-content" */
|
|
760
761
|
childrenWrapperWidth?: React.CSSProperties["width"];
|
|
762
|
+
childrenWrapperHeight?: React.CSSProperties["height"];
|
|
761
763
|
withArrow?: boolean;
|
|
762
764
|
isSmall?: boolean;
|
|
763
765
|
backgroundColor?: string;
|
package/dist/index.js
CHANGED
|
@@ -3589,6 +3589,7 @@ var PageHolderComponent = (0, import_react14.forwardRef)(function PageHolder({ n
|
|
|
3589
3589
|
});
|
|
3590
3590
|
PageHolderComponent.center = (0, import_react14.forwardRef)(function Center({
|
|
3591
3591
|
pageBackgroundColor,
|
|
3592
|
+
contentMaxWidth,
|
|
3592
3593
|
sideImageSrc,
|
|
3593
3594
|
sideImageName,
|
|
3594
3595
|
sideImagePosition = "right",
|
|
@@ -3617,7 +3618,7 @@ PageHolderComponent.center = (0, import_react14.forwardRef)(function Center({
|
|
|
3617
3618
|
Div_default.box,
|
|
3618
3619
|
{
|
|
3619
3620
|
width: `calc(100% - ${theme2.styles.space}px * 2)`,
|
|
3620
|
-
maxWidth: !noMaxContentWidth ? app.contentMaxWidth / 2 : void 0,
|
|
3621
|
+
maxWidth: !noMaxContentWidth ? contentMaxWidth ?? app.contentMaxWidth / 2 : void 0,
|
|
3621
3622
|
marginInline: theme2.styles.space,
|
|
3622
3623
|
marginBlock: theme2.styles.space,
|
|
3623
3624
|
...props,
|
|
@@ -8289,6 +8290,7 @@ var TooltipComponent = (0, import_react26.forwardRef)(function Tooltip({
|
|
|
8289
8290
|
contentWidth,
|
|
8290
8291
|
contentMinWidth,
|
|
8291
8292
|
childrenWrapperWidth = "fit-content",
|
|
8293
|
+
childrenWrapperHeight,
|
|
8292
8294
|
withArrow,
|
|
8293
8295
|
isSmall,
|
|
8294
8296
|
backgroundColor,
|
|
@@ -8387,11 +8389,21 @@ var TooltipComponent = (0, import_react26.forwardRef)(function Tooltip({
|
|
|
8387
8389
|
{
|
|
8388
8390
|
position: "relative",
|
|
8389
8391
|
width: childrenWrapperWidth,
|
|
8392
|
+
height: childrenWrapperHeight,
|
|
8390
8393
|
onClick: onClickHolder,
|
|
8391
8394
|
onMouseEnter,
|
|
8392
8395
|
onMouseLeave,
|
|
8393
8396
|
children: [
|
|
8394
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
8397
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
8398
|
+
Div_default,
|
|
8399
|
+
{
|
|
8400
|
+
width: childrenWrapperWidth,
|
|
8401
|
+
height: childrenWrapperHeight,
|
|
8402
|
+
isTabAccessed,
|
|
8403
|
+
ref: triggerHolderRef,
|
|
8404
|
+
children
|
|
8405
|
+
}
|
|
8406
|
+
),
|
|
8395
8407
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
8396
8408
|
TooltipContainer,
|
|
8397
8409
|
{
|