@mirror-physics/fractal-ui 0.2.0-next.64 → 0.2.0-next.65
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 +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1444,6 +1444,7 @@ var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
|
1444
1444
|
function SortableTable({
|
|
1445
1445
|
columns,
|
|
1446
1446
|
data,
|
|
1447
|
+
"aria-label": ariaLabel,
|
|
1447
1448
|
emptyMessage,
|
|
1448
1449
|
header,
|
|
1449
1450
|
size = "md",
|
|
@@ -1534,7 +1535,7 @@ function SortableTable({
|
|
|
1534
1535
|
};
|
|
1535
1536
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: cn("fractal-sortable-table", `fractal-sortable-table--${size}`, embedded && "fractal-sortable-table--embedded", className), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "fractal-sortable-table-surface", children: [
|
|
1536
1537
|
header && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "fractal-sortable-table-header", children: header }),
|
|
1537
|
-
visibleRows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "fractal-sortable-table-empty", children: emptyMessage || "No data" }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("table", { className: "fractal-sortable-table-table", children: [
|
|
1538
|
+
visibleRows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "fractal-sortable-table-empty", children: emptyMessage || "No data" }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("table", { "aria-label": ariaLabel, className: "fractal-sortable-table-table", children: [
|
|
1538
1539
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("tr", { className: "fractal-sortable-table-thead-row", children: [
|
|
1539
1540
|
selection && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1540
1541
|
"th",
|
|
@@ -1566,6 +1567,7 @@ function SortableTable({
|
|
|
1566
1567
|
"th",
|
|
1567
1568
|
{
|
|
1568
1569
|
className: "fractal-sortable-table-th",
|
|
1570
|
+
scope: "col",
|
|
1569
1571
|
style: { width: col.width },
|
|
1570
1572
|
children: col.header
|
|
1571
1573
|
},
|
|
@@ -1576,6 +1578,7 @@ function SortableTable({
|
|
|
1576
1578
|
"th",
|
|
1577
1579
|
{
|
|
1578
1580
|
className: "fractal-sortable-table-th fractal-sortable-table-th--sortable",
|
|
1581
|
+
scope: "col",
|
|
1579
1582
|
style: { width: col.width },
|
|
1580
1583
|
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1581
1584
|
"button",
|