react-better-html 1.1.111 → 1.1.112
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +55 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +55 -44
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3104,6 +3104,7 @@ var PageHolderComponent = forwardRef7(function PageHolder({ noMaxContentWidth, c
|
|
|
3104
3104
|
);
|
|
3105
3105
|
});
|
|
3106
3106
|
PageHolderComponent.center = forwardRef7(function Center({
|
|
3107
|
+
pageBackgroundColor,
|
|
3107
3108
|
sideImageSrc,
|
|
3108
3109
|
sideImageName,
|
|
3109
3110
|
sideImagePosition = "right",
|
|
@@ -3117,49 +3118,59 @@ PageHolderComponent.center = forwardRef7(function Center({
|
|
|
3117
3118
|
const mediaQuery = useMediaQuery();
|
|
3118
3119
|
const { app } = useBetterHtmlContextInternal();
|
|
3119
3120
|
const breakingPoint = mediaQuery.size1000;
|
|
3120
|
-
return /* @__PURE__ */ jsxs6(
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3121
|
+
return /* @__PURE__ */ jsxs6(
|
|
3122
|
+
Div_default.row,
|
|
3123
|
+
{
|
|
3124
|
+
width: "100%",
|
|
3125
|
+
minHeight: "100svh",
|
|
3126
|
+
alignItems: "center",
|
|
3127
|
+
justifyContent: "center",
|
|
3128
|
+
backgroundColor: pageBackgroundColor,
|
|
3129
|
+
children: [
|
|
3130
|
+
sideImagePosition === "left" && !breakingPoint && /* @__PURE__ */ jsx10(Div_default, { width: "50%" }),
|
|
3131
|
+
/* @__PURE__ */ jsx10(Div_default.column, { width: `${!breakingPoint && (sideImageSrc || sideImageName) ? 50 : 100}%`, alignItems: "center", children: /* @__PURE__ */ jsx10(
|
|
3132
|
+
Div_default.box,
|
|
3133
|
+
{
|
|
3134
|
+
width: `calc(100% - ${theme2.styles.space}px * 2)`,
|
|
3135
|
+
maxWidth: !noMaxContentWidth ? app.contentMaxWidth / 2 : void 0,
|
|
3136
|
+
marginInline: theme2.styles.space,
|
|
3137
|
+
marginBlock: theme2.styles.space,
|
|
3138
|
+
...props,
|
|
3139
|
+
ref,
|
|
3140
|
+
children
|
|
3141
|
+
}
|
|
3142
|
+
) }),
|
|
3143
|
+
sideImagePosition === "right" && !breakingPoint && /* @__PURE__ */ jsx10(Div_default, { width: "50%" }),
|
|
3144
|
+
(sideImageSrc || sideImageName) && !breakingPoint && /* @__PURE__ */ jsxs6(
|
|
3145
|
+
Div_default,
|
|
3146
|
+
{
|
|
3147
|
+
position: "fixed",
|
|
3148
|
+
width: "50%",
|
|
3149
|
+
height: "100svh",
|
|
3150
|
+
top: 0,
|
|
3151
|
+
left: sideImagePosition === "left" ? 0 : "auto",
|
|
3152
|
+
right: sideImagePosition === "right" ? 0 : "auto",
|
|
3153
|
+
children: [
|
|
3154
|
+
/* @__PURE__ */ jsx10(
|
|
3155
|
+
Div_default.row,
|
|
3156
|
+
{
|
|
3157
|
+
position: "absolute",
|
|
3158
|
+
width: "100%",
|
|
3159
|
+
height: "100%",
|
|
3160
|
+
top: 0,
|
|
3161
|
+
left: 0,
|
|
3162
|
+
justifyContent: sideImageAlignment === "left" ? "flex-start" : sideImageAlignment === "right" ? "flex-end" : "center",
|
|
3163
|
+
overflow: "hidden",
|
|
3164
|
+
children: /* @__PURE__ */ jsx10(Image_default, { name: sideImageName, height: "100%", src: sideImageSrc })
|
|
3165
|
+
}
|
|
3166
|
+
),
|
|
3167
|
+
/* @__PURE__ */ jsx10(Div_default, { position: "absolute", width: "100%", bottom: theme2.styles.space, children: sideImageFooter })
|
|
3168
|
+
]
|
|
3169
|
+
}
|
|
3170
|
+
)
|
|
3171
|
+
]
|
|
3172
|
+
}
|
|
3173
|
+
);
|
|
3163
3174
|
});
|
|
3164
3175
|
var PageHolder2 = memo10(PageHolderComponent);
|
|
3165
3176
|
PageHolder2.center = PageHolderComponent.center;
|
|
@@ -5224,7 +5235,7 @@ var DropdownComponent = forwardRef10(function Dropdown({
|
|
|
5224
5235
|
Div_default.row,
|
|
5225
5236
|
{
|
|
5226
5237
|
position: "absolute",
|
|
5227
|
-
top: 46 / 2 + (label ? 16 + theme2.styles.gap : 0),
|
|
5238
|
+
top: 46 / 2 + (label ? 16 + theme2.styles.gap / 2 : 0),
|
|
5228
5239
|
right: theme2.styles.space + 1,
|
|
5229
5240
|
alignItems: "center",
|
|
5230
5241
|
gap: theme2.styles.gap,
|