@sikka/hawa 0.17.9-next → 0.17.10-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/index.js +9 -5
- package/dist/index.mjs +9 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5860,7 +5860,7 @@ var DataTable = ({
|
|
|
5860
5860
|
/* @__PURE__ */ React45.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
|
|
5861
5861
|
" ",
|
|
5862
5862
|
/* @__PURE__ */ React45.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
|
|
5863
|
-
),
|
|
5863
|
+
), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React45.createElement(
|
|
5864
5864
|
"input",
|
|
5865
5865
|
{
|
|
5866
5866
|
max: table.getPageCount(),
|
|
@@ -5901,7 +5901,7 @@ var DataTable = ({
|
|
|
5901
5901
|
),
|
|
5902
5902
|
onItemSelect: (e) => table.setPageSize(Number(e))
|
|
5903
5903
|
}
|
|
5904
|
-
), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React45.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React45.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React45.createElement(
|
|
5904
|
+
), table.getPageCount() > 1 && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React45.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React45.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React45.createElement(
|
|
5905
5905
|
Button,
|
|
5906
5906
|
{
|
|
5907
5907
|
"aria-label": "Previous Table Page",
|
|
@@ -5909,7 +5909,9 @@ var DataTable = ({
|
|
|
5909
5909
|
size: "smallIcon",
|
|
5910
5910
|
onClick: () => table.previousPage(),
|
|
5911
5911
|
disabled: !table.getCanPreviousPage(),
|
|
5912
|
-
className: cn(
|
|
5912
|
+
className: cn(
|
|
5913
|
+
props.direction === "ltr" && "hawa-rotate-180"
|
|
5914
|
+
)
|
|
5913
5915
|
},
|
|
5914
5916
|
/* @__PURE__ */ React45.createElement(
|
|
5915
5917
|
"svg",
|
|
@@ -5938,7 +5940,9 @@ var DataTable = ({
|
|
|
5938
5940
|
size: "smallIcon",
|
|
5939
5941
|
onClick: () => table.nextPage(),
|
|
5940
5942
|
disabled: !table.getCanNextPage(),
|
|
5941
|
-
className: cn(
|
|
5943
|
+
className: cn(
|
|
5944
|
+
props.direction === "rtl" && "hawa-rotate-180"
|
|
5945
|
+
)
|
|
5942
5946
|
},
|
|
5943
5947
|
/* @__PURE__ */ React45.createElement(
|
|
5944
5948
|
"svg",
|
|
@@ -5959,7 +5963,7 @@ var DataTable = ({
|
|
|
5959
5963
|
}
|
|
5960
5964
|
)
|
|
5961
5965
|
)
|
|
5962
|
-
)))
|
|
5966
|
+
))))
|
|
5963
5967
|
));
|
|
5964
5968
|
};
|
|
5965
5969
|
|
package/dist/index.mjs
CHANGED
|
@@ -5649,7 +5649,7 @@ var DataTable = ({
|
|
|
5649
5649
|
/* @__PURE__ */ React45.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
|
|
5650
5650
|
" ",
|
|
5651
5651
|
/* @__PURE__ */ React45.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
|
|
5652
|
-
),
|
|
5652
|
+
), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React45.createElement(
|
|
5653
5653
|
"input",
|
|
5654
5654
|
{
|
|
5655
5655
|
max: table.getPageCount(),
|
|
@@ -5690,7 +5690,7 @@ var DataTable = ({
|
|
|
5690
5690
|
),
|
|
5691
5691
|
onItemSelect: (e) => table.setPageSize(Number(e))
|
|
5692
5692
|
}
|
|
5693
|
-
), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React45.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React45.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React45.createElement(
|
|
5693
|
+
), table.getPageCount() > 1 && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React45.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React45.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React45.createElement(
|
|
5694
5694
|
Button,
|
|
5695
5695
|
{
|
|
5696
5696
|
"aria-label": "Previous Table Page",
|
|
@@ -5698,7 +5698,9 @@ var DataTable = ({
|
|
|
5698
5698
|
size: "smallIcon",
|
|
5699
5699
|
onClick: () => table.previousPage(),
|
|
5700
5700
|
disabled: !table.getCanPreviousPage(),
|
|
5701
|
-
className: cn(
|
|
5701
|
+
className: cn(
|
|
5702
|
+
props.direction === "ltr" && "hawa-rotate-180"
|
|
5703
|
+
)
|
|
5702
5704
|
},
|
|
5703
5705
|
/* @__PURE__ */ React45.createElement(
|
|
5704
5706
|
"svg",
|
|
@@ -5727,7 +5729,9 @@ var DataTable = ({
|
|
|
5727
5729
|
size: "smallIcon",
|
|
5728
5730
|
onClick: () => table.nextPage(),
|
|
5729
5731
|
disabled: !table.getCanNextPage(),
|
|
5730
|
-
className: cn(
|
|
5732
|
+
className: cn(
|
|
5733
|
+
props.direction === "rtl" && "hawa-rotate-180"
|
|
5734
|
+
)
|
|
5731
5735
|
},
|
|
5732
5736
|
/* @__PURE__ */ React45.createElement(
|
|
5733
5737
|
"svg",
|
|
@@ -5748,7 +5752,7 @@ var DataTable = ({
|
|
|
5748
5752
|
}
|
|
5749
5753
|
)
|
|
5750
5754
|
)
|
|
5751
|
-
)))
|
|
5755
|
+
))))
|
|
5752
5756
|
));
|
|
5753
5757
|
};
|
|
5754
5758
|
|