@eqtylab/equality 1.1.9 → 1.2.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/dialog.module.module.css.module.css +0 -10
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/sheet.module.module.css.module.css +0 -10
- package/dist/table.module.module.css.module.css +5 -0
- package/package.json +1 -1
|
@@ -101,11 +101,6 @@
|
|
|
101
101
|
min-width: calc(0.25rem * 0);
|
|
102
102
|
flex: 1;
|
|
103
103
|
flex-direction: column;
|
|
104
|
-
:where(& > :not(:last-child)) {
|
|
105
|
-
--tw-space-y-reverse: 0;
|
|
106
|
-
margin-block-start: calc(calc(0.25rem * 0.5) * var(--tw-space-y-reverse));
|
|
107
|
-
margin-block-end: calc(calc(0.25rem * 0.5) * calc(1 - var(--tw-space-y-reverse)));
|
|
108
|
-
}
|
|
109
104
|
}
|
|
110
105
|
.dialog-title {
|
|
111
106
|
font-size: 1.125rem;
|
|
@@ -277,11 +272,6 @@
|
|
|
277
272
|
inherits: false;
|
|
278
273
|
initial-value: 0;
|
|
279
274
|
}
|
|
280
|
-
@property --tw-space-y-reverse {
|
|
281
|
-
syntax: "*";
|
|
282
|
-
inherits: false;
|
|
283
|
-
initial-value: 0;
|
|
284
|
-
}
|
|
285
275
|
@property --tw-leading {
|
|
286
276
|
syntax: "*";
|
|
287
277
|
inherits: false;
|
package/dist/index.cjs
CHANGED
|
@@ -2810,8 +2810,10 @@ var Table = ({
|
|
|
2810
2810
|
rows,
|
|
2811
2811
|
className,
|
|
2812
2812
|
border = false,
|
|
2813
|
-
elevation = ELEVATION.BASE
|
|
2813
|
+
elevation = ELEVATION.BASE,
|
|
2814
|
+
emptyState
|
|
2814
2815
|
}) => {
|
|
2816
|
+
const isEmpty = rows.length === 0;
|
|
2815
2817
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2816
2818
|
"div",
|
|
2817
2819
|
{
|
|
@@ -2823,7 +2825,7 @@ var Table = ({
|
|
|
2823
2825
|
),
|
|
2824
2826
|
children: /* @__PURE__ */ jsxRuntime.jsxs(TableContainer, { elevation, children: [
|
|
2825
2827
|
/* @__PURE__ */ jsxRuntime.jsx(TableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(TableHead, { className: column.className, children: column.content }, column.key)) }) }),
|
|
2826
|
-
/* @__PURE__ */ jsxRuntime.jsx(TableBody, { children: rows.map((row) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2828
|
+
isEmpty && emptyState ? /* @__PURE__ */ jsxRuntime.jsx(TableBody, { children: /* @__PURE__ */ jsxRuntime.jsx(TableRow, { children: /* @__PURE__ */ jsxRuntime.jsx(TableCell, { colSpan: columns.length, className: styles51__default.default["table-empty-state"], children: emptyState }) }) }) : /* @__PURE__ */ jsxRuntime.jsx(TableBody, { children: rows.map((row) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2827
2829
|
TableRow,
|
|
2828
2830
|
{
|
|
2829
2831
|
className: cn(row.className, row.onClick && styles51__default.default["table-row-clickable"]),
|