@luscii-healthtech/web-ui 52.6.1 → 52.6.2
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 +18 -18
- 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 +6 -13
- package/dist/src/generated/components/TableNew/TableNew.d.ts +6 -13
- package/dist/stories/TableNew.stories.d.ts +6 -6
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -3722,9 +3722,9 @@ const TableRoot = React__namespace.default.forwardRef((_a, ref) => {
|
|
|
3722
3722
|
return child;
|
|
3723
3723
|
})] }));
|
|
3724
3724
|
});
|
|
3725
|
-
|
|
3725
|
+
const Thead = React__namespace.default.forwardRef((_a, ref) => {
|
|
3726
3726
|
var { className, children, stickyHeader } = _a, attrs = __rest(_a, ["className", "children", "stickyHeader"]);
|
|
3727
|
-
return jsxRuntime.jsx("thead", Object.assign({ className: classNames__default.default(
|
|
3727
|
+
return jsxRuntime.jsx("thead", Object.assign({ ref, className: classNames__default.default(
|
|
3728
3728
|
// Styles for all <th>
|
|
3729
3729
|
"ui:[&>tr>th]:border-neutral-border-high-contrast ui:[&>tr>th]:border-b",
|
|
3730
3730
|
// Styles for the first <th> in the header row
|
|
@@ -3739,10 +3739,10 @@ function Thead(_a) {
|
|
|
3739
3739
|
},
|
|
3740
3740
|
className
|
|
3741
3741
|
) }, attrs, { children }));
|
|
3742
|
-
}
|
|
3743
|
-
|
|
3742
|
+
});
|
|
3743
|
+
const Tbody = React__namespace.default.forwardRef((_a, ref) => {
|
|
3744
3744
|
var { className, children, hasTFoot } = _a, attrs = __rest(_a, ["className", "children", "hasTFoot"]);
|
|
3745
|
-
return jsxRuntime.jsx("tbody", Object.assign({ className: classNames__default.default(
|
|
3745
|
+
return jsxRuntime.jsx("tbody", Object.assign({ ref, className: classNames__default.default(
|
|
3746
3746
|
// setting border color across all cells
|
|
3747
3747
|
"ui:[&>tr>td]:border-neutral-border-high-contrast ui:[&>tr>th]:border-neutral-border-high-contrast",
|
|
3748
3748
|
// Top border for all rows except the first one
|
|
@@ -3754,30 +3754,30 @@ function Tbody(_a) {
|
|
|
3754
3754
|
},
|
|
3755
3755
|
className
|
|
3756
3756
|
) }, attrs, { children }));
|
|
3757
|
-
}
|
|
3758
|
-
|
|
3757
|
+
});
|
|
3758
|
+
const TFoot = React__namespace.default.forwardRef((_a, ref) => {
|
|
3759
3759
|
var { className, children } = _a, attrs = __rest(_a, ["className", "children"]);
|
|
3760
|
-
return jsxRuntime.jsx("tfoot", Object.assign({ className: classNames__default.default(className) }, attrs, { children }));
|
|
3761
|
-
}
|
|
3762
|
-
|
|
3760
|
+
return jsxRuntime.jsx("tfoot", Object.assign({ ref, className: classNames__default.default(className) }, attrs, { children }));
|
|
3761
|
+
});
|
|
3762
|
+
const Tr = React__namespace.default.forwardRef((_a, ref) => {
|
|
3763
3763
|
var { className, children } = _a, attrs = __rest(_a, ["className", "children"]);
|
|
3764
|
-
return jsxRuntime.jsx(Box, Object.assign({ as: "tr", className: classNames__default.default(className) }, attrs, { children }));
|
|
3765
|
-
}
|
|
3764
|
+
return jsxRuntime.jsx(Box, Object.assign({ as: "tr", ref, className: classNames__default.default(className) }, attrs, { children }));
|
|
3765
|
+
});
|
|
3766
3766
|
const getCellClasses = (options) => {
|
|
3767
3767
|
return classNames__default.default("ui:first:pl-l ui:last:pr-l ui:text-left", {
|
|
3768
3768
|
"ui:px-xxs ui:py-m": !options.omitPadding
|
|
3769
3769
|
}, options.className);
|
|
3770
3770
|
};
|
|
3771
|
-
|
|
3771
|
+
const Th = React__namespace.default.forwardRef((_a, ref) => {
|
|
3772
3772
|
var { className, children, omitPadding = false } = _a, attrs = __rest(_a, ["className", "children", "omitPadding"]);
|
|
3773
3773
|
const content = isPlainText(children) ? jsxRuntime.jsx(Text, { as: "span", variant: "strong", children }) : children;
|
|
3774
|
-
return jsxRuntime.jsx("th", Object.assign({ className: getCellClasses({ omitPadding, className }) }, attrs, { children: content }));
|
|
3775
|
-
}
|
|
3776
|
-
|
|
3774
|
+
return jsxRuntime.jsx("th", Object.assign({ ref, className: getCellClasses({ omitPadding, className }) }, attrs, { children: content }));
|
|
3775
|
+
});
|
|
3776
|
+
const Td = React__namespace.default.forwardRef((_a, ref) => {
|
|
3777
3777
|
var { className, children, omitPadding = false } = _a, attrs = __rest(_a, ["className", "children", "omitPadding"]);
|
|
3778
3778
|
const content = isPlainText(children) ? jsxRuntime.jsx(Text, { as: "span", children }) : children;
|
|
3779
|
-
return jsxRuntime.jsx("td", Object.assign({ className: getCellClasses({ omitPadding, className }) }, attrs, { children: content }));
|
|
3780
|
-
}
|
|
3779
|
+
return jsxRuntime.jsx("td", Object.assign({ ref, className: getCellClasses({ omitPadding, className }) }, attrs, { children: content }));
|
|
3780
|
+
});
|
|
3781
3781
|
const TableNew = Object.assign(TableRoot, {
|
|
3782
3782
|
Thead,
|
|
3783
3783
|
Tbody,
|