@luscii-healthtech/web-ui 42.5.2 → 42.6.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/dist/index.development.js +3 -3
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/TableNew/TableNew.d.ts +2 -2
- package/dist/stories/TableNew.stories.d.ts +1 -1
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -3685,14 +3685,14 @@ function Table(_a) {
|
|
|
3685
3685
|
const isPlainText = (node) => {
|
|
3686
3686
|
return typeof node === "string" || typeof node === "number";
|
|
3687
3687
|
};
|
|
3688
|
-
|
|
3688
|
+
const TableRoot = React__namespace.default.forwardRef((_a, wrapperRef) => {
|
|
3689
3689
|
var { className, children, sticky, headerBackground = "none" } = _a, attrs = __rest(_a, ["className", "children", "sticky", "headerBackground"]);
|
|
3690
3690
|
const stickyHeader = sticky === "header" || sticky === "header-and-first-column";
|
|
3691
3691
|
const stickyFirstColumn = sticky === "first-column" || sticky === "header-and-first-column";
|
|
3692
3692
|
const firstColBg = headerBackground === "first-column" || headerBackground === "first-row-and-column" ? "#f8fafc" : "#ffffff";
|
|
3693
3693
|
const firstRowBg = headerBackground === "first-row" || headerBackground === "first-row-and-column" ? "#f8fafc" : "#ffffff";
|
|
3694
3694
|
const cornerCellBg = headerBackground !== "none" ? "#f8fafc" : "#ffffff";
|
|
3695
|
-
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), children: jsxRuntime.jsxs("table", Object.assign({ className: classNames__default.default("ui:table-auto ui:bg-white", "ui:border-separate ui:border-spacing-0", {
|
|
3695
|
+
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", {
|
|
3696
3696
|
/**
|
|
3697
3697
|
* Apply sticky positioning to first column cells in tbody (both th and td)
|
|
3698
3698
|
* with proper z-index layering
|
|
@@ -3727,7 +3727,7 @@ function TableRoot(_a) {
|
|
|
3727
3727
|
}
|
|
3728
3728
|
return child;
|
|
3729
3729
|
})] })) });
|
|
3730
|
-
}
|
|
3730
|
+
});
|
|
3731
3731
|
function Thead(_a) {
|
|
3732
3732
|
var { className, children, stickyHeader } = _a, attrs = __rest(_a, ["className", "children", "stickyHeader"]);
|
|
3733
3733
|
return jsxRuntime.jsx("thead", Object.assign({ className: classNames__default.default(
|