react-better-html 1.1.94 → 1.1.95

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
@@ -6482,7 +6482,7 @@ var ToggleInput_default = {
6482
6482
  };
6483
6483
 
6484
6484
  // src/components/Form.tsx
6485
- import { memo as memo17, useMemo as useMemo6 } from "react";
6485
+ import { Children, Fragment as Fragment4, memo as memo17, useMemo as useMemo6 } from "react";
6486
6486
  import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
6487
6487
  function Form({
6488
6488
  form,
@@ -6494,6 +6494,7 @@ function Form({
6494
6494
  gap,
6495
6495
  isSubmitting,
6496
6496
  isDestructive,
6497
+ withDividers,
6497
6498
  onClickCancel,
6498
6499
  onSubmit,
6499
6500
  children,
@@ -6509,7 +6510,10 @@ function Form({
6509
6510
  const SubmitButtonTag = isDestructive ? Button_default.destructive : Button_default;
6510
6511
  const submitButtonIsDisabledFinal = submitButtonIsDisabled || submitButtonIsDisabledInternal;
6511
6512
  return /* @__PURE__ */ jsx17(Div_default, { width: "100%", ...props, children: /* @__PURE__ */ jsxs12("form", { onSubmit: onSubmit ?? form?.onSubmit, children: [
6512
- gap !== void 0 ? /* @__PURE__ */ jsx17(Div_default.column, { gap, children }) : children,
6513
+ gap !== void 0 || withDividers ? /* @__PURE__ */ jsx17(Div_default.column, { gap: gap ?? (withDividers ? theme2.styles.space : theme2.styles.gap), children: withDividers ? Children.toArray(children).map((child, index) => /* @__PURE__ */ jsxs12(Fragment4, { children: [
6514
+ child,
6515
+ index < Children.toArray(children).length - 1 && /* @__PURE__ */ jsx17(Divider_default.horizontal, {})
6516
+ ] }, index)) : children }) : children,
6513
6517
  submitButtonText && /* @__PURE__ */ jsxs12(
6514
6518
  Div_default.row,
6515
6519
  {
@@ -6656,7 +6660,7 @@ var ColorThemeSwitch_default = ColorThemeSwitch2;
6656
6660
  // src/components/Table.tsx
6657
6661
  import { forwardRef as forwardRef11, memo as memo20, useCallback as useCallback10, useMemo as useMemo7, useState as useState8 } from "react";
6658
6662
  import styled10, { css as css2 } from "styled-components";
6659
- import { Fragment as Fragment4, jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
6663
+ import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
6660
6664
  var defaultImageWidth = 120;
6661
6665
  var TableStyledComponent = styled10.table.withConfig({
6662
6666
  shouldForwardProp: (prop) => !["isStriped", "withHover", "withStickyHeader", "colorTheme", "theme"].includes(prop)
@@ -6743,7 +6747,7 @@ var TableComponent = forwardRef11(function Table({
6743
6747
  return column.format ? column.format(item, index) : String(value ?? "");
6744
6748
  }
6745
6749
  case "element": {
6746
- return column.render?.(item, index) ?? /* @__PURE__ */ jsx20(Fragment4, {});
6750
+ return column.render?.(item, index) ?? /* @__PURE__ */ jsx20(Fragment5, {});
6747
6751
  }
6748
6752
  case "image": {
6749
6753
  const { type, keyName, ...props2 } = column;
@@ -6768,7 +6772,7 @@ var TableComponent = forwardRef11(function Table({
6768
6772
  );
6769
6773
  }
6770
6774
  default: {
6771
- return /* @__PURE__ */ jsx20(Fragment4, {});
6775
+ return /* @__PURE__ */ jsx20(Fragment5, {});
6772
6776
  }
6773
6777
  }
6774
6778
  },