@dreamtree-org/twreact-ui 1.0.73 → 1.0.74
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.esm.js +67 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +67 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -256,6 +256,26 @@ const ChevronUp = createLucideIcon$1("ChevronUp", [
|
|
|
256
256
|
*/
|
|
257
257
|
|
|
258
258
|
|
|
259
|
+
const ChevronsLeft = createLucideIcon$1("ChevronsLeft", [
|
|
260
|
+
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
|
261
|
+
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
|
262
|
+
]);
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* lucide-react v0.0.1 - ISC
|
|
266
|
+
*/
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
const ChevronsRight = createLucideIcon$1("ChevronsRight", [
|
|
270
|
+
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
|
271
|
+
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
|
272
|
+
]);
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* lucide-react v0.0.1 - ISC
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
|
|
259
279
|
const EyeOff = createLucideIcon$1("EyeOff", [
|
|
260
280
|
["path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24", key: "1jxqfv" }],
|
|
261
281
|
[
|
|
@@ -4721,12 +4741,23 @@ var Table = function Table(_ref) {
|
|
|
4721
4741
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4722
4742
|
className: "flex gap-1"
|
|
4723
4743
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
4744
|
+
className: "rounded-lg md:rounded-md border border-gray-300 p-2 disabled:opacity-50 hover:bg-gray-50",
|
|
4745
|
+
disabled: currentPage === 1,
|
|
4746
|
+
onClick: function onClick() {
|
|
4747
|
+
return handlePageChange(1);
|
|
4748
|
+
},
|
|
4749
|
+
"aria-label": "First page",
|
|
4750
|
+
title: "First page"
|
|
4751
|
+
}, /*#__PURE__*/React__default.createElement(ChevronsLeft, {
|
|
4752
|
+
className: "size-4 md:size-5 text-gray-800"
|
|
4753
|
+
})), /*#__PURE__*/React__default.createElement("button", {
|
|
4724
4754
|
className: "rounded-lg md:rounded-md border border-gray-300 p-2 disabled:opacity-50 hover:bg-gray-50",
|
|
4725
4755
|
disabled: currentPage === 1,
|
|
4726
4756
|
onClick: function onClick() {
|
|
4727
4757
|
return handlePageChange(Math.max(1, currentPage - 1));
|
|
4728
4758
|
},
|
|
4729
|
-
"aria-label": "Previous page"
|
|
4759
|
+
"aria-label": "Previous page",
|
|
4760
|
+
title: "Previous page"
|
|
4730
4761
|
}, /*#__PURE__*/React__default.createElement(ChevronLeft, {
|
|
4731
4762
|
className: "size-4 md:size-5 text-gray-800"
|
|
4732
4763
|
})), /*#__PURE__*/React__default.createElement("button", {
|
|
@@ -4735,9 +4766,20 @@ var Table = function Table(_ref) {
|
|
|
4735
4766
|
onClick: function onClick() {
|
|
4736
4767
|
return handlePageChange(Math.min(totalPages, currentPage + 1));
|
|
4737
4768
|
},
|
|
4738
|
-
"aria-label": "Next page"
|
|
4769
|
+
"aria-label": "Next page",
|
|
4770
|
+
title: "Next page"
|
|
4739
4771
|
}, /*#__PURE__*/React__default.createElement(ChevronRight, {
|
|
4740
4772
|
className: "size-4 md:size-5 text-gray-800"
|
|
4773
|
+
})), /*#__PURE__*/React__default.createElement("button", {
|
|
4774
|
+
className: "rounded-lg md:rounded-md border border-gray-300 p-2 disabled:opacity-50 hover:bg-gray-50",
|
|
4775
|
+
disabled: currentPage === totalPages,
|
|
4776
|
+
onClick: function onClick() {
|
|
4777
|
+
return handlePageChange(totalPages);
|
|
4778
|
+
},
|
|
4779
|
+
"aria-label": "Last page",
|
|
4780
|
+
title: "Last page"
|
|
4781
|
+
}, /*#__PURE__*/React__default.createElement(ChevronsRight, {
|
|
4782
|
+
className: "size-4 md:size-5 text-gray-800"
|
|
4741
4783
|
})))))), globalSearch && /*#__PURE__*/React__default.createElement("div", {
|
|
4742
4784
|
className: "p-4 border-b"
|
|
4743
4785
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -4987,6 +5029,17 @@ var Table = function Table(_ref) {
|
|
|
4987
5029
|
}, "Page ", currentPage, " of ", totalPages), /*#__PURE__*/React__default.createElement("div", {
|
|
4988
5030
|
className: "flex items-center gap-2"
|
|
4989
5031
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
5032
|
+
className: "rounded-lg md:rounded-md border border-gray-300 px-3 py-2 text-sm disabled:opacity-50 hover:bg-gray-50 flex items-center gap-1",
|
|
5033
|
+
disabled: currentPage === 1,
|
|
5034
|
+
onClick: function onClick() {
|
|
5035
|
+
return handlePageChange(1);
|
|
5036
|
+
},
|
|
5037
|
+
title: "First page"
|
|
5038
|
+
}, /*#__PURE__*/React__default.createElement(ChevronsLeft, {
|
|
5039
|
+
className: "size-4"
|
|
5040
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
5041
|
+
className: "hidden sm:inline"
|
|
5042
|
+
}, "First")), /*#__PURE__*/React__default.createElement("button", {
|
|
4990
5043
|
className: "rounded-lg md:rounded-md border border-gray-300 px-4 py-2 text-sm disabled:opacity-50 hover:bg-gray-50",
|
|
4991
5044
|
disabled: currentPage === 1,
|
|
4992
5045
|
onClick: function onClick() {
|
|
@@ -5011,7 +5064,18 @@ var Table = function Table(_ref) {
|
|
|
5011
5064
|
onClick: function onClick() {
|
|
5012
5065
|
return handlePageChange(Math.min(totalPages, currentPage + 1));
|
|
5013
5066
|
}
|
|
5014
|
-
}, "Next")
|
|
5067
|
+
}, "Next"), /*#__PURE__*/React__default.createElement("button", {
|
|
5068
|
+
className: "rounded-lg md:rounded-md border border-gray-300 px-3 py-2 text-sm disabled:opacity-50 hover:bg-gray-50 flex items-center gap-1",
|
|
5069
|
+
disabled: currentPage === totalPages,
|
|
5070
|
+
onClick: function onClick() {
|
|
5071
|
+
return handlePageChange(totalPages);
|
|
5072
|
+
},
|
|
5073
|
+
title: "Last page"
|
|
5074
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
5075
|
+
className: "hidden sm:inline"
|
|
5076
|
+
}, "Last"), /*#__PURE__*/React__default.createElement(ChevronsRight, {
|
|
5077
|
+
className: "size-4"
|
|
5078
|
+
}))))));
|
|
5015
5079
|
};
|
|
5016
5080
|
|
|
5017
5081
|
// ActionMenuPortal constants
|