@luscii-healthtech/web-ui 42.10.3 → 42.10.4

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.
@@ -3625,7 +3625,7 @@ const isPlainText = (node) => {
3625
3625
  return typeof node === "string" || typeof node === "number";
3626
3626
  };
3627
3627
  const TableRoot = React__namespace.default.forwardRef((_a, wrapperRef) => {
3628
- var { className, children, sticky, headerBackground = "none", variant = "fit-content" } = _a, attrs = __rest(_a, ["className", "children", "sticky", "headerBackground", "variant"]);
3628
+ var { className, children, sticky, headerBackground = "none", variant = "fit-content", layout = "auto" } = _a, attrs = __rest(_a, ["className", "children", "sticky", "headerBackground", "variant", "layout"]);
3629
3629
  const stickyHeader = sticky === "header" || sticky === "header-and-first-column";
3630
3630
  const stickyFirstColumn = sticky === "first-column" || sticky === "header-and-first-column";
3631
3631
  const firstColBg = headerBackground === "first-column" || headerBackground === "first-row-and-column" ? "#f8fafc" : "#ffffff";
@@ -3637,7 +3637,9 @@ const TableRoot = React__namespace.default.forwardRef((_a, wrapperRef) => {
3637
3637
  "ui:w-full": variant === "full-width"
3638
3638
  }, className), ref: wrapperRef, children: jsxRuntime.jsxs("table", Object.assign({ className: classNames__default.default({
3639
3639
  "ui:w-fit": variant === "fit-content",
3640
- "ui:w-full": variant === "full-width"
3640
+ "ui:w-full": variant === "full-width",
3641
+ "ui:table-auto": layout === "auto",
3642
+ "ui:table-fixed": layout === "fixed"
3641
3643
  }, "ui:table-auto ui:bg-white", "ui:border-separate ui:border-spacing-0", {
3642
3644
  /**
3643
3645
  * Apply sticky positioning to first column cells in tbody (both th and td)