react-better-html 1.1.159 → 1.1.160
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 +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +12 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3252,11 +3252,11 @@ var Divider_default = {
|
|
|
3252
3252
|
})
|
|
3253
3253
|
),
|
|
3254
3254
|
horizontal: memo10(
|
|
3255
|
-
forwardRef5(function Divider2({ width = 1, backgroundColor, text, textColor, ...props }, ref) {
|
|
3255
|
+
forwardRef5(function Divider2({ width = 1, backgroundColor, text, textFontSize, textColor, ...props }, ref) {
|
|
3256
3256
|
const theme2 = useTheme();
|
|
3257
3257
|
return /* @__PURE__ */ jsxs5(Div_default.row, { width: "100%", alignItems: "center", gap: text ? theme2.styles.space : void 0, ...props, ref, children: [
|
|
3258
3258
|
/* @__PURE__ */ jsx10(Div_default, { flex: 1, height: width, flexShrink: 0, backgroundColor: backgroundColor ?? theme2.colors.border }),
|
|
3259
|
-
text && /* @__PURE__ */ jsx10(Text_default, { color: textColor ?? theme2.colors.textSecondary, children: text }),
|
|
3259
|
+
text && /* @__PURE__ */ jsx10(Text_default, { fontSize: textFontSize, color: textColor ?? theme2.colors.textSecondary, children: text }),
|
|
3260
3260
|
/* @__PURE__ */ jsx10(Div_default, { flex: 1, height: width, flexShrink: 0, backgroundColor: backgroundColor ?? theme2.colors.border })
|
|
3261
3261
|
] });
|
|
3262
3262
|
})
|
|
@@ -3567,11 +3567,8 @@ var PageHolderComponent = forwardRef7(function PageHolder({ noMaxContentWidth, c
|
|
|
3567
3567
|
PageHolderComponent.center = forwardRef7(function Center({
|
|
3568
3568
|
pageBackgroundColor,
|
|
3569
3569
|
contentMaxWidth,
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
sideImagePosition = "right",
|
|
3573
|
-
sideImageAlignment = "center",
|
|
3574
|
-
sideImageFooter,
|
|
3570
|
+
sideComponent,
|
|
3571
|
+
sideComponentPosition = "right",
|
|
3575
3572
|
noMaxContentWidth,
|
|
3576
3573
|
children,
|
|
3577
3574
|
...props
|
|
@@ -3580,7 +3577,7 @@ PageHolderComponent.center = forwardRef7(function Center({
|
|
|
3580
3577
|
const mediaQuery = useMediaQuery();
|
|
3581
3578
|
const { app } = useBetterHtmlContextInternal();
|
|
3582
3579
|
const breakingPoint = mediaQuery.size1000;
|
|
3583
|
-
const
|
|
3580
|
+
const withSideComponent = sideComponent && !breakingPoint;
|
|
3584
3581
|
return /* @__PURE__ */ jsxs7(
|
|
3585
3582
|
Div_default.row,
|
|
3586
3583
|
{
|
|
@@ -3590,8 +3587,8 @@ PageHolderComponent.center = forwardRef7(function Center({
|
|
|
3590
3587
|
justifyContent: "center",
|
|
3591
3588
|
backgroundColor: pageBackgroundColor,
|
|
3592
3589
|
children: [
|
|
3593
|
-
|
|
3594
|
-
/* @__PURE__ */ jsx12(Div_default.column, { width: `${
|
|
3590
|
+
sideComponentPosition === "left" && withSideComponent && /* @__PURE__ */ jsx12(Div_default, { width: "50%" }),
|
|
3591
|
+
/* @__PURE__ */ jsx12(Div_default.column, { width: `${withSideComponent ? 50 : 100}%`, alignItems: "center", children: /* @__PURE__ */ jsx12(
|
|
3595
3592
|
Div_default.box,
|
|
3596
3593
|
{
|
|
3597
3594
|
width: `calc(100% - ${theme2.styles.space}px * 2)`,
|
|
@@ -3603,32 +3600,17 @@ PageHolderComponent.center = forwardRef7(function Center({
|
|
|
3603
3600
|
children
|
|
3604
3601
|
}
|
|
3605
3602
|
) }),
|
|
3606
|
-
|
|
3607
|
-
|
|
3603
|
+
sideComponentPosition === "right" && withSideComponent && /* @__PURE__ */ jsx12(Div_default, { width: "50%" }),
|
|
3604
|
+
withSideComponent && /* @__PURE__ */ jsx12(
|
|
3608
3605
|
Div_default,
|
|
3609
3606
|
{
|
|
3610
3607
|
position: "fixed",
|
|
3611
3608
|
width: "50%",
|
|
3612
3609
|
height: "100svh",
|
|
3613
3610
|
top: 0,
|
|
3614
|
-
left:
|
|
3615
|
-
right:
|
|
3616
|
-
children:
|
|
3617
|
-
/* @__PURE__ */ jsx12(
|
|
3618
|
-
Div_default.row,
|
|
3619
|
-
{
|
|
3620
|
-
position: "absolute",
|
|
3621
|
-
width: "100%",
|
|
3622
|
-
height: "100%",
|
|
3623
|
-
top: 0,
|
|
3624
|
-
left: 0,
|
|
3625
|
-
justifyContent: sideImageAlignment === "left" ? "flex-start" : sideImageAlignment === "right" ? "flex-end" : "center",
|
|
3626
|
-
overflow: "hidden",
|
|
3627
|
-
children: /* @__PURE__ */ jsx12(Image_default, { name: sideImageName, height: "100%", src: sideImageSrc })
|
|
3628
|
-
}
|
|
3629
|
-
),
|
|
3630
|
-
/* @__PURE__ */ jsx12(Div_default, { position: "absolute", width: "100%", bottom: theme2.styles.space, children: sideImageFooter })
|
|
3631
|
-
]
|
|
3611
|
+
left: sideComponentPosition === "left" ? 0 : "auto",
|
|
3612
|
+
right: sideComponentPosition === "right" ? 0 : "auto",
|
|
3613
|
+
children: sideComponent
|
|
3632
3614
|
}
|
|
3633
3615
|
)
|
|
3634
3616
|
]
|