react-better-html 1.1.178 → 1.1.179

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 CHANGED
@@ -300,10 +300,11 @@ type ModalProps = {
300
300
  * */
301
301
  maxWidth?: number;
302
302
  title?: string;
303
- titleColor?: string;
303
+ titleColor?: React.CSSProperties["color"];
304
304
  description?: string;
305
- descriptionColor?: string;
306
- headerBackgroundColor?: string;
305
+ descriptionColor?: React.CSSProperties["color"];
306
+ headerBackgroundColor?: React.CSSProperties["backgroundColor"];
307
+ backgroundColor?: React.CSSProperties["backgroundColor"];
307
308
  /** @requires ReactRouterDomPlugin */
308
309
  name?: string;
309
310
  overflow?: React.CSSProperties["overflow"];
package/dist/index.d.ts CHANGED
@@ -300,10 +300,11 @@ type ModalProps = {
300
300
  * */
301
301
  maxWidth?: number;
302
302
  title?: string;
303
- titleColor?: string;
303
+ titleColor?: React.CSSProperties["color"];
304
304
  description?: string;
305
- descriptionColor?: string;
306
- headerBackgroundColor?: string;
305
+ descriptionColor?: React.CSSProperties["color"];
306
+ headerBackgroundColor?: React.CSSProperties["backgroundColor"];
307
+ backgroundColor?: React.CSSProperties["backgroundColor"];
307
308
  /** @requires ReactRouterDomPlugin */
308
309
  name?: string;
309
310
  overflow?: React.CSSProperties["overflow"];
package/dist/index.js CHANGED
@@ -3566,6 +3566,7 @@ var ModalComponent = (0, import_react14.forwardRef)(function Modal({
3566
3566
  description,
3567
3567
  descriptionColor,
3568
3568
  headerBackgroundColor,
3569
+ backgroundColor,
3569
3570
  name,
3570
3571
  overflow,
3571
3572
  withoutCloseButton,
@@ -3653,7 +3654,7 @@ var ModalComponent = (0, import_react14.forwardRef)(function Modal({
3653
3654
  position: "relative",
3654
3655
  width: "100%",
3655
3656
  minHeight: 32 + theme2.styles.space * 2,
3656
- backgroundColor: theme2.colors.backgroundBase,
3657
+ backgroundColor: backgroundColor ?? theme2.colors.backgroundBase,
3657
3658
  borderRadius: theme2.styles.borderRadius * 2,
3658
3659
  padding: !title ? theme2.styles.space : void 0,
3659
3660
  overflow,
@@ -3705,7 +3706,7 @@ var ModalComponent = (0, import_react14.forwardRef)(function Modal({
3705
3706
  }
3706
3707
  ),
3707
3708
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Divider_default.horizontal, {})
3708
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, { children: !withoutCloseButton && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Div_default, { position: "absolute", top: theme2.styles.space, right: theme2.styles.space, zIndex: 10, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Button_default.icon, { icon: "XMark", onClick: onClickClose }) }) }),
3709
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, { children: !withoutCloseButton && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Div_default, { position: "absolute", top: theme2.styles.space, right: theme2.styles.space, zIndex: 10, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Button_default.icon, { icon: "XMark", iconColor: titleColor, onClick: onClickClose }) }) }),
3709
3710
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Div_default, { padding: title ? theme2.styles.space : void 0, children })
3710
3711
  ]
3711
3712
  }