@sikka/hawa 0.42.2-next → 0.42.3-next
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/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +11 -11
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +11 -11
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/elements/index.js +11 -11
- package/dist/elements/index.mjs +11 -11
- package/dist/index.js +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +1 -1
package/dist/dataTable/index.mjs
CHANGED
@@ -1314,7 +1314,7 @@ var DataTable = ({
|
|
1314
1314
|
enableGoTo,
|
1315
1315
|
...props
|
1316
1316
|
}) => {
|
1317
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
1317
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
1318
1318
|
const [sorting, setSorting] = React11.useState(
|
1319
1319
|
props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
|
1320
1320
|
);
|
@@ -1504,7 +1504,7 @@ var DataTable = ({
|
|
1504
1504
|
) : column.id
|
1505
1505
|
);
|
1506
1506
|
})
|
1507
|
-
))), enableFiltering && /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (
|
1507
|
+
))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
|
1508
1508
|
return /* @__PURE__ */ React11.createElement(
|
1509
1509
|
Button,
|
1510
1510
|
{
|
@@ -1559,7 +1559,7 @@ var DataTable = ({
|
|
1559
1559
|
header.getContext()
|
1560
1560
|
)
|
1561
1561
|
);
|
1562
|
-
})))), /* @__PURE__ */ React11.createElement(TableBody, null, ((
|
1562
|
+
})))), /* @__PURE__ */ React11.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React11.createElement(
|
1563
1563
|
TableRow,
|
1564
1564
|
{
|
1565
1565
|
key: row.id,
|
@@ -1591,7 +1591,7 @@ var DataTable = ({
|
|
1591
1591
|
colSpan: columns.length,
|
1592
1592
|
className: "hawa-h-24 hawa-text-center"
|
1593
1593
|
},
|
1594
|
-
(
|
1594
|
+
(_h = props.texts) == null ? void 0 : _h.noData
|
1595
1595
|
))))),
|
1596
1596
|
/* @__PURE__ */ React11.createElement(
|
1597
1597
|
"div",
|
@@ -1608,7 +1608,7 @@ var DataTable = ({
|
|
1608
1608
|
className: "hawa-text-muted-foreground hawa-text-sm",
|
1609
1609
|
dir: props.direction
|
1610
1610
|
},
|
1611
|
-
/* @__PURE__ */ React11.createElement("span", null, (
|
1611
|
+
/* @__PURE__ */ React11.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total),
|
1612
1612
|
" ",
|
1613
1613
|
/* @__PURE__ */ React11.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
|
1614
1614
|
), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React11.createElement("div", { className: "hawa-w-[0.5px] hawa-mx-2 hawa-bg-red-500 hawa-h-full" }), table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React11.createElement(
|
@@ -1619,11 +1619,11 @@ var DataTable = ({
|
|
1619
1619
|
},
|
1620
1620
|
table.getFilteredSelectedRowModel().rows.length,
|
1621
1621
|
" ",
|
1622
|
-
(
|
1622
|
+
(_j = props.texts) == null ? void 0 : _j.of,
|
1623
1623
|
" ",
|
1624
1624
|
table.getFilteredRowModel().rows.length,
|
1625
1625
|
" ",
|
1626
|
-
(
|
1626
|
+
(_k = props.texts) == null ? void 0 : _k.selectedRows
|
1627
1627
|
)), table.getFilteredSelectedRowModel().rows.length > 0 && /* @__PURE__ */ React11.createElement("div", { className: "" }, /* @__PURE__ */ React11.createElement(
|
1628
1628
|
DropdownMenu,
|
1629
1629
|
{
|
@@ -1636,10 +1636,10 @@ var DataTable = ({
|
|
1636
1636
|
table.getFilteredSelectedRowModel().rows
|
1637
1637
|
)
|
1638
1638
|
})),
|
1639
|
-
trigger: /* @__PURE__ */ React11.createElement(Button, { size: "xs" }, ((
|
1639
|
+
trigger: /* @__PURE__ */ React11.createElement(Button, { size: "xs" }, ((_l = props.texts) == null ? void 0 : _l.bulkAction) || "Bulk Action")
|
1640
1640
|
}
|
1641
1641
|
))) : null,
|
1642
|
-
/* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-items-center hawa-gap-2 hawa-bg--500 tablet:hawa-w-fit hawa-justify-between" }, enableGoTo && /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React11.createElement("span", { className: "hawa-text-sm" }, (
|
1642
|
+
/* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-items-center hawa-gap-2 hawa-bg--500 tablet:hawa-w-fit hawa-justify-between" }, enableGoTo && /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2" }, /* @__PURE__ */ React11.createElement("span", { className: "hawa-text-sm" }, (_m = props.texts) == null ? void 0 : _m.goTo), /* @__PURE__ */ React11.createElement(
|
1643
1643
|
"input",
|
1644
1644
|
{
|
1645
1645
|
max: table.getPageCount(),
|
@@ -1676,11 +1676,11 @@ var DataTable = ({
|
|
1676
1676
|
size: "icon",
|
1677
1677
|
className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 hawa-whitespace-nowrap"
|
1678
1678
|
},
|
1679
|
-
`${table.getState().pagination.pageSize} / ${(
|
1679
|
+
`${table.getState().pagination.pageSize} / ${(_n = props.texts) == null ? void 0 : _n.page}`
|
1680
1680
|
),
|
1681
1681
|
onItemSelect: (e) => table.setPageSize(Number(e))
|
1682
1682
|
}
|
1683
|
-
), table.getPageCount() > 1 && /* @__PURE__ */ React11.createElement("div", { className: "hawa-bg--500 hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-bg--500 hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, /* @__PURE__ */ React11.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React11.createElement("div", null, (
|
1683
|
+
), table.getPageCount() > 1 && /* @__PURE__ */ React11.createElement("div", { className: "hawa-bg--500 hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-bg--500 hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm" }, /* @__PURE__ */ React11.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React11.createElement("div", null, (_o = props.texts) == null ? void 0 : _o.page), /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React11.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React11.createElement("span", null, (_p = props.texts) == null ? void 0 : _p.of), /* @__PURE__ */ React11.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-center hawa-bg--500" }, /* @__PURE__ */ React11.createElement(
|
1684
1684
|
Button,
|
1685
1685
|
{
|
1686
1686
|
"aria-label": "Next Table Page",
|