@eqtylab/equality 1.9.0 → 1.9.1
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.cjs +29 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +29 -7
- package/dist/index.js.map +1 -1
- package/dist/table-components.module.module.css.module.css +34 -14
- package/dist/theme.module.module.css.module.css +11 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3107,14 +3107,36 @@ var TableBody = React16__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
3107
3107
|
TableBody.displayName = "TableBody";
|
|
3108
3108
|
var TableFooter = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(styles52__default.default["table-footer"], className), ...props }));
|
|
3109
3109
|
TableFooter.displayName = "TableFooter";
|
|
3110
|
-
var TableRow = React16__namespace.forwardRef(
|
|
3111
|
-
"
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3110
|
+
var TableRow = React16__namespace.forwardRef(
|
|
3111
|
+
({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
|
|
3112
|
+
const isClickable = clickable || !!href;
|
|
3113
|
+
const handleClick = (e) => {
|
|
3114
|
+
const target = e.target;
|
|
3115
|
+
if (target.closest("button, a:not([data-table-row-link])")) {
|
|
3116
|
+
return;
|
|
3117
|
+
}
|
|
3118
|
+
onClick?.(e);
|
|
3119
|
+
};
|
|
3120
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3121
|
+
"tr",
|
|
3122
|
+
{
|
|
3123
|
+
ref,
|
|
3124
|
+
className: cn(
|
|
3125
|
+
styles52__default.default["table-row"],
|
|
3126
|
+
isClickable && styles52__default.default["table-row--clickable"],
|
|
3127
|
+
href && styles52__default.default["table-row--linked"],
|
|
3128
|
+
className
|
|
3129
|
+
),
|
|
3130
|
+
onClick: onClick ? handleClick : void 0,
|
|
3131
|
+
...props,
|
|
3132
|
+
children: [
|
|
3133
|
+
href && /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: styles52__default.default["table-row-link"], "data-table-row-link": true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: hrefLabel }) }),
|
|
3134
|
+
children
|
|
3135
|
+
]
|
|
3136
|
+
}
|
|
3137
|
+
);
|
|
3116
3138
|
}
|
|
3117
|
-
)
|
|
3139
|
+
);
|
|
3118
3140
|
TableRow.displayName = "TableRow";
|
|
3119
3141
|
var TableHead = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(styles52__default.default["table-head"], className), ...props }));
|
|
3120
3142
|
TableHead.displayName = "TableHead";
|