@pinerohit11/testwidget 0.1.43 → 0.1.45

Sign up to get free protection for your applications and to get access to all the features.
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 PaginationPg = ({ totalPages, onPageChange, current }) => {
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 Pagination_default = (0, import_react11.memo)(PaginationPg);
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(Pagination_default, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
3402
+ /* @__PURE__ */ import_react12.default.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
3403
3403
  ))));
3404
3404
  }
3405
3405
 
package/dist/index.d.cts CHANGED
@@ -38,9 +38,9 @@ declare function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }:
38
38
 
39
39
  declare function Payment(): React.JSX.Element;
40
40
 
41
- type CompletedTransactionsProps = {
41
+ interface CompletedTransactionsProps {
42
42
  fractalpayClientKey: string;
43
- };
43
+ }
44
44
  declare function CompletedTransactions(props: CompletedTransactionsProps): React.JSX.Element;
45
45
 
46
46
  declare function TockenizPay(): React.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -38,9 +38,9 @@ declare function RqstPaymntInputField({ fractalpayClientKey, amount, orderID }:
38
38
 
39
39
  declare function Payment(): React.JSX.Element;
40
40
 
41
- type CompletedTransactionsProps = {
41
+ interface CompletedTransactionsProps {
42
42
  fractalpayClientKey: string;
43
- };
43
+ }
44
44
  declare function CompletedTransactions(props: CompletedTransactionsProps): React.JSX.Element;
45
45
 
46
46
  declare function TockenizPay(): React.JSX.Element;
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, { memo, useState as useState7, useEffect as useEffect2 } from "react";
3113
- var PaginationPg = ({ totalPages, onPageChange, current }) => {
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 Pagination_default = memo(PaginationPg);
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(Pagination_default, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
3367
+ /* @__PURE__ */ React12.createElement(PaginationPg, { totalPages: state.totalPage, onPageChange: handlePageChange, current: state.page })
3368
3368
  ))));
3369
3369
  }
3370
3370
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinerohit11/testwidget",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "next dev",