@react-typed-forms/schemas-html 4.1.1 → 4.2.0

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/lib/index.js CHANGED
@@ -899,7 +899,8 @@ function renderWizard(props, isChildVisible) {
899
899
  const defaultDialogOptions = {
900
900
  classes: {
901
901
  className: "",
902
- titleClass: "text-2xl font-bold"
902
+ titleClass: "text-2xl font-bold",
903
+ containerClass: "relative m-4 p-4 min-w-[400px] max-w-[80%] rounded-lg bg-white shadow-sm"
903
904
  }
904
905
  };
905
906
  function createDialogRenderer(options) {
@@ -923,7 +924,8 @@ function DefaultDialogRenderer({
923
924
  const {
924
925
  classes: {
925
926
  titleClass,
926
- className
927
+ className,
928
+ containerClass
927
929
  }
928
930
  } = deepMerge(options, defaultDialogOptions);
929
931
  const open = useControl(false);
@@ -951,6 +953,7 @@ function DefaultDialogRenderer({
951
953
  })), props.designMode ? designContent() : open.value && /*#__PURE__*/jsx(Modal, {
952
954
  state: overlayState,
953
955
  isDismissable: true,
956
+ containerClass: containerClass,
954
957
  children: dialogContent
955
958
  })]
956
959
  });
@@ -1904,7 +1907,7 @@ function createButtonActionRenderer(actionId, options = {}) {
1904
1907
  const iconElement = icon && /*#__PURE__*/jsx(I, {
1905
1908
  iconName: icon.name,
1906
1909
  iconLibrary: icon.library,
1907
- className: iconPlacement == IconPlacement.BeforeText ? options.iconBeforeClass : options.iconAfterClass
1910
+ className: rendererClass(textClass, iconPlacement == IconPlacement.BeforeText ? options.iconBeforeClass : options.iconAfterClass)
1908
1911
  });
1909
1912
  const textClassNames = rendererClass(textClass, isLink ? options.linkTextClass : rendererClass(options.textClass, actionStyle == ActionStyle.Secondary ? options.secondaryTextClass : options.primaryTextClass));
1910
1913
  const textElement = actionContent != null ? actionContent : actionText && /*#__PURE__*/jsx(Span, {
@@ -2272,8 +2275,11 @@ function DefaultHtmlIconRenderer({
2272
2275
  switch (iconLibrary) {
2273
2276
  case IconLibrary.FontAwesome:
2274
2277
  return "fa fa-" + iconName;
2275
- default:
2278
+ case IconLibrary.Material:
2279
+ case IconLibrary.CssClass:
2276
2280
  return iconName;
2281
+ default:
2282
+ return iconLibrary + " fa-" + iconName;
2277
2283
  }
2278
2284
  }
2279
2285
  } finally {