@luscii-healthtech/web-ui 42.8.1 → 42.8.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.
@@ -3614,14 +3614,20 @@ const isPlainText = (node) => {
3614
3614
  return typeof node === "string" || typeof node === "number";
3615
3615
  };
3616
3616
  const TableRoot = React__namespace.default.forwardRef((_a, wrapperRef) => {
3617
- var { className, children, sticky, headerBackground = "none" } = _a, attrs = __rest(_a, ["className", "children", "sticky", "headerBackground"]);
3617
+ var { className, children, sticky, headerBackground = "none", variant = "fit-content" } = _a, attrs = __rest(_a, ["className", "children", "sticky", "headerBackground", "variant"]);
3618
3618
  const stickyHeader = sticky === "header" || sticky === "header-and-first-column";
3619
3619
  const stickyFirstColumn = sticky === "first-column" || sticky === "header-and-first-column";
3620
3620
  const firstColBg = headerBackground === "first-column" || headerBackground === "first-row-and-column" ? "#f8fafc" : "#ffffff";
3621
3621
  const firstRowBg = headerBackground === "first-row" || headerBackground === "first-row-and-column" ? "#f8fafc" : "#ffffff";
3622
3622
  const cornerCellBg = headerBackground !== "none" ? "#f8fafc" : "#ffffff";
3623
3623
  const hasTFoot = React__namespace.default.Children.toArray(children).some((child) => React__namespace.default.isValidElement(child) && child.type === TFoot);
3624
- return jsxRuntime.jsx("div", { className: classNames__default.default("ui:rounded-2xl ui:overflow-auto ui:border ui:border-neutral-border-high-contrast ui:w-fit", className), ref: wrapperRef, children: jsxRuntime.jsxs("table", Object.assign({ className: classNames__default.default("ui:table-auto ui:bg-white", "ui:border-separate ui:border-spacing-0", {
3624
+ return jsxRuntime.jsx("div", { className: classNames__default.default("ui:rounded-2xl ui:overflow-auto ui:border ui:border-neutral-border-high-contrast", {
3625
+ "ui:w-fit": variant === "fit-content",
3626
+ "ui:w-full": variant === "full-width"
3627
+ }, className), ref: wrapperRef, children: jsxRuntime.jsxs("table", Object.assign({ className: classNames__default.default({
3628
+ "ui:w-fit": variant === "fit-content",
3629
+ "ui:w-full": variant === "full-width"
3630
+ }, "ui:table-auto ui:bg-white", "ui:border-separate ui:border-spacing-0", {
3625
3631
  /**
3626
3632
  * Apply sticky positioning to first column cells in tbody (both th and td)
3627
3633
  * with proper z-index layering