@pinerohit11/testwidget 0.1.44 → 0.1.45
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 +3 -3
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3145,7 +3145,7 @@ var import_react_toastify4 = require("react-toastify");
|
|
|
3145
3145
|
|
|
3146
3146
|
// src/app/components/Pagination/Pagination.tsx
|
|
3147
3147
|
var import_react11 = __toESM(require("react"), 1);
|
|
3148
|
-
var
|
|
3148
|
+
var PaginationPgComp = ({ totalPages, onPageChange, current }) => {
|
|
3149
3149
|
const [currentPage, setCurrentPage] = (0, import_react11.useState)(current);
|
|
3150
3150
|
const [showPages, setShowPages] = (0, import_react11.useState)(false);
|
|
3151
3151
|
(0, import_react11.useEffect)(() => {
|
|
@@ -3207,7 +3207,7 @@ var PaginationPg = ({ totalPages, onPageChange, current }) => {
|
|
|
3207
3207
|
const renderPageNumber = (pageNumber) => /* @__PURE__ */ import_react11.default.createElement("li", { key: pageNumber, className: `page-item ${currentPage === pageNumber ? "active" : ""}` }, /* @__PURE__ */ import_react11.default.createElement("a", { className: "page-link cursor-pointer", onClick: (e) => handlePageClick(e, pageNumber) }, pageNumber));
|
|
3208
3208
|
return /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("nav", { className: "app-pagination py-2" }, /* @__PURE__ */ import_react11.default.createElement("ul", { className: "pagination justify-content-center" }, /* @__PURE__ */ import_react11.default.createElement("li", { className: `page-item ${currentPage === 1 ? "disabled" : ""}` }, /* @__PURE__ */ import_react11.default.createElement("a", { className: "page-link cursor-pointer", onClick: handlePrevious }, /* @__PURE__ */ import_react11.default.createElement("span", null, "\u2B9C"))), showPages && getPageNumbers(), /* @__PURE__ */ import_react11.default.createElement("li", { className: `page-item ${currentPage === totalPages ? "disabled" : ""}` }, /* @__PURE__ */ import_react11.default.createElement("a", { className: "page-link cursor-pointer", onClick: handleNext }, /* @__PURE__ */ import_react11.default.createElement("span", null, "\u2B9E"))))));
|
|
3209
3209
|
};
|
|
3210
|
-
var
|
|
3210
|
+
var PaginationPg = import_react11.default.memo(PaginationPgComp);
|
|
3211
3211
|
|
|
3212
3212
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
|
3213
3213
|
var STORY_HEADERS = [
|
|
@@ -3399,7 +3399,7 @@ function CompletedTransactions(props) {
|
|
|
3399
3399
|
},
|
|
3400
3400
|
/* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap7.Row, { className: "mb-4 p-2" }, /* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap7.Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-lg-start align-items-center justify-content-sm-start mb-2 mb-sm-0" }, /* @__PURE__ */ import_react12.default.createElement(import_react_bs_datatable.PaginationOptions, null)), /* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap7.Col, { xs: 12, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }), /* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap7.Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }, /* @__PURE__ */ import_react12.default.createElement(import_react_bs_datatable.Filter, null))),
|
|
3401
3401
|
/* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap7.Row, null, /* @__PURE__ */ import_react12.default.createElement("div", { className: "responsive-tbl" }, /* @__PURE__ */ import_react12.default.createElement(import_react_bootstrap7.Table, null, /* @__PURE__ */ import_react12.default.createElement(import_react_bs_datatable.TableHeader, null), /* @__PURE__ */ import_react12.default.createElement(import_react_bs_datatable.TableBody, null)))),
|
|
3402
|
-
/* @__PURE__ */ import_react12.default.createElement(
|
|
3402
|
+
/* @__PURE__ */ import_react12.default.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
|
|
3403
3403
|
))));
|
|
3404
3404
|
}
|
|
3405
3405
|
|
package/dist/index.js
CHANGED
|
@@ -3109,8 +3109,8 @@ import "react-datepicker/dist/react-datepicker.css";
|
|
|
3109
3109
|
import { toast as toast4 } from "react-toastify";
|
|
3110
3110
|
|
|
3111
3111
|
// src/app/components/Pagination/Pagination.tsx
|
|
3112
|
-
import React11, {
|
|
3113
|
-
var
|
|
3112
|
+
import React11, { useState as useState7, useEffect as useEffect2 } from "react";
|
|
3113
|
+
var PaginationPgComp = ({ totalPages, onPageChange, current }) => {
|
|
3114
3114
|
const [currentPage, setCurrentPage] = useState7(current);
|
|
3115
3115
|
const [showPages, setShowPages] = useState7(false);
|
|
3116
3116
|
useEffect2(() => {
|
|
@@ -3172,7 +3172,7 @@ var PaginationPg = ({ totalPages, onPageChange, current }) => {
|
|
|
3172
3172
|
const renderPageNumber = (pageNumber) => /* @__PURE__ */ React11.createElement("li", { key: pageNumber, className: `page-item ${currentPage === pageNumber ? "active" : ""}` }, /* @__PURE__ */ React11.createElement("a", { className: "page-link cursor-pointer", onClick: (e) => handlePageClick(e, pageNumber) }, pageNumber));
|
|
3173
3173
|
return /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("nav", { className: "app-pagination py-2" }, /* @__PURE__ */ React11.createElement("ul", { className: "pagination justify-content-center" }, /* @__PURE__ */ React11.createElement("li", { className: `page-item ${currentPage === 1 ? "disabled" : ""}` }, /* @__PURE__ */ React11.createElement("a", { className: "page-link cursor-pointer", onClick: handlePrevious }, /* @__PURE__ */ React11.createElement("span", null, "\u2B9C"))), showPages && getPageNumbers(), /* @__PURE__ */ React11.createElement("li", { className: `page-item ${currentPage === totalPages ? "disabled" : ""}` }, /* @__PURE__ */ React11.createElement("a", { className: "page-link cursor-pointer", onClick: handleNext }, /* @__PURE__ */ React11.createElement("span", null, "\u2B9E"))))));
|
|
3174
3174
|
};
|
|
3175
|
-
var
|
|
3175
|
+
var PaginationPg = React11.memo(PaginationPgComp);
|
|
3176
3176
|
|
|
3177
3177
|
// src/app/components/Transaction/CompletedTransactions.tsx
|
|
3178
3178
|
var STORY_HEADERS = [
|
|
@@ -3364,7 +3364,7 @@ function CompletedTransactions(props) {
|
|
|
3364
3364
|
},
|
|
3365
3365
|
/* @__PURE__ */ React12.createElement(Row, { className: "mb-4 p-2" }, /* @__PURE__ */ React12.createElement(Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-lg-start align-items-center justify-content-sm-start mb-2 mb-sm-0" }, /* @__PURE__ */ React12.createElement(PaginationOptions, null)), /* @__PURE__ */ React12.createElement(Col, { xs: 12, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }), /* @__PURE__ */ React12.createElement(Col, { xs: 12, sm: 6, lg: 4, className: "d-flex flex-col justify-content-end align-items-end" }, /* @__PURE__ */ React12.createElement(Filter, null))),
|
|
3366
3366
|
/* @__PURE__ */ React12.createElement(Row, null, /* @__PURE__ */ React12.createElement("div", { className: "responsive-tbl" }, /* @__PURE__ */ React12.createElement(Table, null, /* @__PURE__ */ React12.createElement(TableHeader, null), /* @__PURE__ */ React12.createElement(TableBody, null)))),
|
|
3367
|
-
/* @__PURE__ */ React12.createElement(
|
|
3367
|
+
/* @__PURE__ */ React12.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
|
|
3368
3368
|
))));
|
|
3369
3369
|
}
|
|
3370
3370
|
|