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.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(Div_default.row, { width: "100%", minHeight: "100svh", alignItems: "center", justifyContent: "center", children: [
3121
- sideImagePosition === "left" && !breakingPoint && /* @__PURE__ */ jsx10(Div_default, { width: "50%" }),
3122
- /* @__PURE__ */ jsx10(Div_default.column, { width: `${!breakingPoint && (sideImageSrc || sideImageName) ? 50 : 100}%`, alignItems: "center", children: /* @__PURE__ */ jsx10(
3123
- Div_default.box,
3124
- {
3125
- width: `calc(100% - ${theme2.styles.space}px * 2)`,
3126
- maxWidth: !noMaxContentWidth ? app.contentMaxWidth / 2 : void 0,
3127
- marginInline: theme2.styles.space,
3128
- marginBlock: theme2.styles.space,
3129
- ...props,
3130
- ref,
3131
- children
3132
- }
3133
- ) }),
3134
- sideImagePosition === "right" && !breakingPoint && /* @__PURE__ */ jsx10(Div_default, { width: "50%" }),
3135
- (sideImageSrc || sideImageName) && !breakingPoint && /* @__PURE__ */ jsxs6(
3136
- Div_default,
3137
- {
3138
- position: "fixed",
3139
- width: "50%",
3140
- height: "100svh",
3141
- top: 0,
3142
- left: sideImagePosition === "left" ? 0 : "auto",
3143
- right: sideImagePosition === "right" ? 0 : "auto",
3144
- children: [
3145
- /* @__PURE__ */ jsx10(
3146
- Div_default.row,
3147
- {
3148
- position: "absolute",
3149
- width: "100%",
3150
- height: "100%",
3151
- top: 0,
3152
- left: 0,
3153
- justifyContent: sideImageAlignment === "left" ? "flex-start" : sideImageAlignment === "right" ? "flex-end" : "center",
3154
- overflow: "hidden",
3155
- children: /* @__PURE__ */ jsx10(Image_default, { name: sideImageName, height: "100%", src: sideImageSrc })
3156
- }
3157
- ),
3158
- /* @__PURE__ */ jsx10(Div_default, { position: "absolute", width: "100%", bottom: theme2.styles.space, children: sideImageFooter })
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,