@wavelengthusaf/components 2.2.5 → 2.3.0

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/README.md CHANGED
@@ -14,9 +14,17 @@ npm install @wavelengthusaf/components
14
14
 
15
15
  ## Release Notes
16
16
 
17
+ ### 2.3.0
18
+
19
+ - Added `DefaultPagination` component to package for numbered pagination navigation, and modified PagePagination for testbed.
20
+
21
+ ### 2.2.5
22
+
23
+ - Readded `DefaultIcon` component to package.
24
+
17
25
  ### 2.2.2 - 2.2.4
18
26
 
19
- - Updated the Footer component to include the text? and textColor? props; slightly changed the appearance of the full Wavelength Logo in the footer.
27
+ - Updated the `Footer` component to include the `text?` and `textColor?` props; slightly changed the appearance of the full Wavelength Logo in the footer.
20
28
 
21
29
  ### 2.2.1
22
30
 
@@ -0,0 +1,11 @@
1
+ interface PaginationProps {
2
+ totalPages: number;
3
+ current: number;
4
+ handleChangePage: (value: number | string) => void;
5
+ itemList: (string | number)[];
6
+ firstEllipseList: number[];
7
+ secondEllipseList: number[];
8
+ }
9
+ export declare function ButtonPagination({ totalPages, current, handleChangePage, itemList, firstEllipseList, secondEllipseList }: PaginationProps): import("react/jsx-runtime").JSX.Element;
10
+ export default ButtonPagination;
11
+ //# sourceMappingURL=ButtonPagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonPagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/ButtonPagination.tsx"],"names":[],"mappings":"AAQA,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IACnD,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC9B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAcD,wBAAgB,gBAAgB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,EAAE,eAAe,2CA4HzI;AAED,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,12 @@
1
+ interface PaginationProps {
2
+ totalPages: number;
3
+ current: number;
4
+ variant?: "text" | "contained" | "outlined";
5
+ handleChangePage: (value: number | string) => void;
6
+ itemList: (string | number)[];
7
+ firstEllipseList: number[];
8
+ secondEllipseList: number[];
9
+ }
10
+ export declare function VariationPagination({ totalPages, current, variant, handleChangePage, itemList, firstEllipseList, secondEllipseList }: PaginationProps): import("react/jsx-runtime").JSX.Element;
11
+ export default VariationPagination;
12
+ //# sourceMappingURL=VariationPagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VariationPagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/VariationPagination.tsx"],"names":[],"mappings":"AAUA,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,UAAU,CAAC;IAC5C,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IACnD,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC9B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED,wBAAgB,mBAAmB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,EAAE,eAAe,2CAmHrJ;AAED,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,13 @@
1
+ interface PaginationProps {
2
+ totalPages: number;
3
+ boundaryCount?: number;
4
+ siblingCount?: number;
5
+ currentPageNumber: number;
6
+ style?: "text" | "contained" | "outlined" | "circular";
7
+ onPageChange: (page: number) => void;
8
+ }
9
+ export declare const range: (start: number, end: number) => number[];
10
+ export declare function ascendingRange(start: number, end: number): number[];
11
+ export declare function DefaultPagination({ totalPages, currentPageNumber, siblingCount, boundaryCount, style, onPageChange }: PaginationProps): import("react/jsx-runtime").JSX.Element;
12
+ export default DefaultPagination;
13
+ //# sourceMappingURL=WavelengthPagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WavelengthPagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/WavelengthPagination.tsx"],"names":[],"mappings":"AAIA,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;IACvD,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,KAAK,UAAW,MAAM,OAAO,MAAM,KAAG,MAAM,EAGxD,CAAC;AAGF,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAUnE;AAED,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,iBAAiB,EAAE,YAAgB,EAAE,aAAiB,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,eAAe,2CA6E7I;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SearchTextField.d.ts","sourceRoot":"","sources":["../../../src/components/search/SearchTextField.tsx"],"names":[],"mappings":"AAMA,wBAAgB,eAAe,4CAqB9B;AAED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"SearchTextField.d.ts","sourceRoot":"","sources":["../../../src/components/search/SearchTextField.tsx"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,4CAqB9B;AAED,eAAe,eAAe,CAAC"}
package/dist/index.d.ts CHANGED
@@ -35,4 +35,5 @@ export * from "./components/snackbars/TestSnackbar";
35
35
  export * from "./components/sliders/WavelengthSlider";
36
36
  export * from "./components/carousels/WavelengthDefaultCarousel";
37
37
  export * from "./components/carousels/sliderCarousel";
38
+ export * from "./components/pagination/WavelengthPagination";
38
39
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,wDAAwD,CAAC;AACvE,cAAc,wEAAwE,CAAC;AACvF,cAAc,sEAAsE,CAAC;AACrF,cAAc,+CAA+C,CAAC;AAG9D,cAAc,qDAAqD,CAAC;AACpE,cAAc,mFAAmF,CAAC;AAGlG,cAAc,iDAAiD,CAAC;AAGhE,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAG5E,cAAc,wDAAwD,CAAC;AAGvE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,0DAA0D,CAAC;AAGzE,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC;AAG1D,cAAc,mEAAmE,CAAC;AAGlF,cAAc,6BAA6B,CAAC;AAG5C,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AAGvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,qCAAqC,CAAC;AAGpD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,uCAAuC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,wDAAwD,CAAC;AACvE,cAAc,wEAAwE,CAAC;AACvF,cAAc,sEAAsE,CAAC;AACrF,cAAc,+CAA+C,CAAC;AAG9D,cAAc,qDAAqD,CAAC;AACpE,cAAc,mFAAmF,CAAC;AAGlG,cAAc,iDAAiD,CAAC;AAGhE,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAG5E,cAAc,wDAAwD,CAAC;AAGvE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,0DAA0D,CAAC;AAGzE,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC;AAG1D,cAAc,mEAAmE,CAAC;AAGlF,cAAc,6BAA6B,CAAC;AAG5C,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AAGvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,qCAAqC,CAAC;AAGpD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,uCAAuC,CAAC;AAEtD,cAAc,8CAA8C,CAAC"}
package/dist/index.js CHANGED
@@ -5007,12 +5007,312 @@ var SliderCardCarousel = ({ items, cardHeight, cardWidth, contHeight, contWidth
5007
5007
  }
5008
5008
  ) }) });
5009
5009
  };
5010
+
5011
+ // src/components/pagination/WavelengthPagination.tsx
5012
+ import { useState as useState7, useMemo } from "react";
5013
+
5014
+ // src/components/pagination/ButtonPagination.tsx
5015
+ import { useState as useState5 } from "react";
5016
+ import Button6 from "@mui/material/Button";
5017
+ import ArrowBackIosNewIcon from "@mui/icons-material/ArrowBackIosNew";
5018
+ import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
5019
+ import styled6 from "styled-components";
5020
+ import { jsx as jsx31, jsxs as jsxs23 } from "react/jsx-runtime";
5021
+ var MyDroplistItems = styled6("li")`
5022
+ background-color: white;
5023
+ color: #000000;
5024
+ padding: 10px 30px;
5025
+ textdecoration: none;
5026
+ display: block;
5027
+ width: 80px;
5028
+
5029
+ &:hover {
5030
+ background-color: lightgray;
5031
+ }
5032
+ `;
5033
+ function ButtonPagination({ totalPages, current, handleChangePage, itemList, firstEllipseList, secondEllipseList }) {
5034
+ const [isOpen, setIsOpen] = useState5(false);
5035
+ const [isSecOpen, setIsSecOpen] = useState5(false);
5036
+ const toggleDropdown = (index) => {
5037
+ if (index === 1) {
5038
+ setIsOpen(!isOpen);
5039
+ } else {
5040
+ setIsSecOpen(!isSecOpen);
5041
+ }
5042
+ };
5043
+ const dropstyles = {
5044
+ dropcenter: {
5045
+ position: "relative",
5046
+ left: "-40px",
5047
+ top: "-20px"
5048
+ },
5049
+ mydrop: {
5050
+ position: "absolute",
5051
+ zIndex: "3",
5052
+ maxHeight: "200px",
5053
+ overflow: "scroll"
5054
+ },
5055
+ rangenumbers: {
5056
+ display: "flex"
5057
+ },
5058
+ butPagCompDivStyle: {
5059
+ display: "flex"
5060
+ }
5061
+ };
5062
+ const WLButtonPagStyle = {
5063
+ background: "white",
5064
+ color: "black",
5065
+ border: "none",
5066
+ padding: "1px",
5067
+ fontSize: "16px",
5068
+ height: "55px",
5069
+ width: "40px",
5070
+ boxshadow: "4px 2px 4px darkslategray",
5071
+ borderRadius: "50%",
5072
+ margin: "3px",
5073
+ "&:hover": {
5074
+ background: "#49baf7"
5075
+ },
5076
+ "&:disabled": {
5077
+ background: "rgb(226, 223, 223)"
5078
+ },
5079
+ "&.active": {
5080
+ background: "#8FD8FF"
5081
+ }
5082
+ };
5083
+ return /* @__PURE__ */ jsxs23("div", { style: dropstyles.butPagCompDivStyle, children: [
5084
+ /* @__PURE__ */ jsx31(Button6, { onClick: () => handleChangePage(current - 1), disabled: current === 1, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx31(ArrowBackIosNewIcon, {}) }),
5085
+ /* @__PURE__ */ jsx31("section", { style: dropstyles.rangenumbers, children: itemList.map(
5086
+ (item, index) => item === "..." && index === 1 ? (
5087
+ //first half ellipse with first half dropdown
5088
+ // dropdown
5089
+ // eslint-disable-next-line react/jsx-key
5090
+ /* @__PURE__ */ jsxs23("div", { children: [
5091
+ /* @__PURE__ */ jsx31(Button6, { onClick: () => toggleDropdown(1), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
5092
+ isOpen && /* @__PURE__ */ jsx31("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx31("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx31(
5093
+ MyDroplistItems,
5094
+ {
5095
+ onClick: () => {
5096
+ handleChangePage(item2), setIsOpen(false);
5097
+ },
5098
+ children: item2
5099
+ },
5100
+ item2
5101
+ )) }) })
5102
+ ] })
5103
+ ) : item === "..." && index === 5 ? (
5104
+ //second half ellipse with second half dropdown
5105
+ /* @__PURE__ */ jsxs23("div", { children: [
5106
+ /* @__PURE__ */ jsx31(Button6, { onClick: () => toggleDropdown(5), className: current === index ? "active" : "", sx: WLButtonPagStyle, children: item }, index),
5107
+ isSecOpen && /* @__PURE__ */ jsx31("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx31("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx31(
5108
+ MyDroplistItems,
5109
+ {
5110
+ onClick: () => {
5111
+ handleChangePage(item2), setIsOpen(false);
5112
+ },
5113
+ children: item2
5114
+ },
5115
+ item2
5116
+ )) }) })
5117
+ ] })
5118
+ ) : /* @__PURE__ */ jsx31(Button6, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", sx: WLButtonPagStyle, children: item }, index)
5119
+ ) }),
5120
+ /* @__PURE__ */ jsx31(Button6, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, sx: WLButtonPagStyle, children: /* @__PURE__ */ jsx31(ArrowForwardIosIcon, {}) })
5121
+ ] });
5122
+ }
5123
+ var ButtonPagination_default = ButtonPagination;
5124
+
5125
+ // src/components/pagination/VariationPagination.tsx
5126
+ import { useState as useState6 } from "react";
5127
+ import Button7 from "@mui/material/Button";
5128
+ import ArrowBackIosNewIcon2 from "@mui/icons-material/ArrowBackIosNew";
5129
+ import ArrowForwardIosIcon2 from "@mui/icons-material/ArrowForwardIos";
5130
+ import styled7 from "styled-components";
5131
+ import { jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
5132
+ function VariationPagination({ totalPages, current, variant, handleChangePage, itemList, firstEllipseList, secondEllipseList }) {
5133
+ const [isOpen, setIsOpen] = useState6(false);
5134
+ const [isSecOpen, setIsSecOpen] = useState6(false);
5135
+ const MyDroplistItems2 = styled7("li")`
5136
+ background-color: white;
5137
+ color: #000000;
5138
+ padding: 10px 30px;
5139
+ textdecoration: none;
5140
+ display: block;
5141
+ width: 80px;
5142
+
5143
+ &:hover {
5144
+ background-color: lightgray;
5145
+ }
5146
+ `;
5147
+ const dropstyles = {
5148
+ pagination: {
5149
+ display: "flex"
5150
+ },
5151
+ dropcenter: {
5152
+ position: "relative",
5153
+ left: "-40px",
5154
+ top: "-20px"
5155
+ },
5156
+ mydrop: {
5157
+ position: "absolute",
5158
+ zIndex: "3",
5159
+ maxHeight: "200px",
5160
+ overflow: "scroll"
5161
+ },
5162
+ rangenumbers: {
5163
+ display: "flex"
5164
+ }
5165
+ };
5166
+ const toggleDropdown = (index) => {
5167
+ if (index === 1) {
5168
+ setIsOpen(!isOpen);
5169
+ } else {
5170
+ setIsSecOpen(!isSecOpen);
5171
+ }
5172
+ };
5173
+ return /* @__PURE__ */ jsxs24("div", { style: dropstyles.pagination, children: [
5174
+ /* @__PURE__ */ jsx32(Button7, { onClick: () => handleChangePage(current - 1), variant, disabled: current === 1, children: /* @__PURE__ */ jsx32(ArrowBackIosNewIcon2, {}) }),
5175
+ /* @__PURE__ */ jsx32("section", { style: dropstyles.rangenumbers, children: itemList.map(
5176
+ (item, index) => item === "..." && index === 1 ? (
5177
+ //first half ellipse with first half dropdown
5178
+ // eslint-disable-next-line react/jsx-key
5179
+ /* @__PURE__ */ jsxs24("div", { children: [
5180
+ /* @__PURE__ */ jsx32(Button7, { onClick: () => toggleDropdown(1), variant, className: current === index ? "active" : "", children: item }, index),
5181
+ isOpen && /* @__PURE__ */ jsx32("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx32("ul", { style: dropstyles.mydrop, children: firstEllipseList.map((item2) => /* @__PURE__ */ jsx32(
5182
+ MyDroplistItems2,
5183
+ {
5184
+ style: dropstyles.mydroplist,
5185
+ onClick: () => {
5186
+ handleChangePage(item2), setIsOpen(false);
5187
+ },
5188
+ children: item2
5189
+ },
5190
+ item2
5191
+ )) }) })
5192
+ ] })
5193
+ ) : item === "..." && index === 5 ? (
5194
+ //second half ellipse with second half dropdown
5195
+ /* @__PURE__ */ jsxs24("div", { children: [
5196
+ /* @__PURE__ */ jsx32(Button7, { onClick: () => toggleDropdown(5), variant, className: current === index ? "active" : "", children: item }, index),
5197
+ isSecOpen && /* @__PURE__ */ jsx32("div", { style: dropstyles.dropcenter, children: /* @__PURE__ */ jsx32("ul", { style: dropstyles.mydrop, children: secondEllipseList.map((item2) => /* @__PURE__ */ jsx32(
5198
+ MyDroplistItems2,
5199
+ {
5200
+ style: dropstyles.mydroplist,
5201
+ onClick: () => {
5202
+ handleChangePage(item2), setIsOpen(false);
5203
+ },
5204
+ children: item2
5205
+ },
5206
+ item2
5207
+ )) }) })
5208
+ ] })
5209
+ ) : /* @__PURE__ */ jsx32(Button7, { onClick: () => handleChangePage(item), className: current === item ? "active" : "", variant, children: item }, index)
5210
+ ) }),
5211
+ /* @__PURE__ */ jsx32(Button7, { onClick: () => handleChangePage(current + 1), disabled: current === totalPages, variant, children: /* @__PURE__ */ jsx32(ArrowForwardIosIcon2, {}) })
5212
+ ] });
5213
+ }
5214
+ var VariationPagination_default = VariationPagination;
5215
+
5216
+ // src/components/pagination/WavelengthPagination.tsx
5217
+ import { jsx as jsx33 } from "react/jsx-runtime";
5218
+ var range = (start, end) => {
5219
+ const length = end - start + 1;
5220
+ return Array.from({ length }, (_, i) => start + i);
5221
+ };
5222
+ function ascendingRange(start, end) {
5223
+ const result = [];
5224
+ for (let i = start; i < end; i++) {
5225
+ if (i !== start) {
5226
+ result.push(i);
5227
+ }
5228
+ }
5229
+ return result;
5230
+ }
5231
+ function DefaultPagination({ totalPages, currentPageNumber, siblingCount = 1, boundaryCount = 1, style: style3, onPageChange }) {
5232
+ const [current, setCurrent] = useState7(currentPageNumber);
5233
+ const startPages = range(1, Math.min(boundaryCount, totalPages));
5234
+ const endPages = range(Math.max(totalPages - boundaryCount + 1, boundaryCount + 1), totalPages);
5235
+ const siblingsStart = Math.max(Math.min(current - siblingCount, totalPages - boundaryCount - siblingCount * 2 - 1), boundaryCount + 2);
5236
+ const siblingsEnd = Math.min(Math.max(current + siblingCount, boundaryCount + siblingCount * 2 + 2), endPages.length > 0 ? endPages[0] - 2 : totalPages - 1);
5237
+ const firstEllipseList = ascendingRange(1, siblingsStart);
5238
+ const secondEllipseList = ascendingRange(siblingsEnd, totalPages);
5239
+ const itemList = useMemo(() => {
5240
+ return [
5241
+ ...startPages,
5242
+ ...siblingsStart > boundaryCount + 2 ? ["..."] : boundaryCount + 1 < totalPages - boundaryCount ? [boundaryCount + 1] : [],
5243
+ ...range(siblingsStart, siblingsEnd),
5244
+ ...siblingsEnd < totalPages - boundaryCount - 1 ? ["..."] : totalPages - boundaryCount > boundaryCount ? [totalPages - boundaryCount] : [],
5245
+ ...endPages
5246
+ ];
5247
+ }, [current, totalPages, boundaryCount, siblingCount]);
5248
+ const handleChangePage = (value) => {
5249
+ if (typeof value === "number") {
5250
+ setCurrent(value);
5251
+ onPageChange(value);
5252
+ }
5253
+ };
5254
+ if (style3 === "circular") {
5255
+ return /* @__PURE__ */ jsx33(ButtonPagination_default, { totalPages, current, handleChangePage, itemList, firstEllipseList, secondEllipseList });
5256
+ } else if (style3 === "text") {
5257
+ return /* @__PURE__ */ jsx33(
5258
+ VariationPagination_default,
5259
+ {
5260
+ totalPages,
5261
+ current,
5262
+ variant: "text",
5263
+ handleChangePage,
5264
+ itemList,
5265
+ firstEllipseList,
5266
+ secondEllipseList
5267
+ }
5268
+ );
5269
+ } else if (style3 === "outlined") {
5270
+ return /* @__PURE__ */ jsx33(
5271
+ VariationPagination_default,
5272
+ {
5273
+ totalPages,
5274
+ current,
5275
+ variant: "outlined",
5276
+ handleChangePage,
5277
+ itemList,
5278
+ firstEllipseList,
5279
+ secondEllipseList
5280
+ }
5281
+ );
5282
+ } else if (style3 === "contained") {
5283
+ return /* @__PURE__ */ jsx33(
5284
+ VariationPagination_default,
5285
+ {
5286
+ totalPages,
5287
+ current,
5288
+ variant: "contained",
5289
+ handleChangePage,
5290
+ itemList,
5291
+ firstEllipseList,
5292
+ secondEllipseList
5293
+ }
5294
+ );
5295
+ } else {
5296
+ return /* @__PURE__ */ jsx33(
5297
+ VariationPagination_default,
5298
+ {
5299
+ totalPages,
5300
+ current,
5301
+ handleChangePage,
5302
+ itemList,
5303
+ firstEllipseList,
5304
+ secondEllipseList
5305
+ }
5306
+ );
5307
+ }
5308
+ }
5010
5309
  export {
5011
5310
  AppLogo,
5012
5311
  ButtonIcon,
5013
5312
  ButtonMenu,
5014
5313
  DefaultCarousel,
5015
5314
  DefaultIcon,
5315
+ DefaultPagination,
5016
5316
  ManyPlanesComponent,
5017
5317
  NotAvailablePage,
5018
5318
  SearchTextField,
@@ -5042,8 +5342,10 @@ export {
5042
5342
  WavelengthStandardSnackbar,
5043
5343
  WavelengthTitleBar,
5044
5344
  add,
5345
+ ascendingRange,
5045
5346
  concat,
5046
5347
  findBestStringMatch,
5348
+ range,
5047
5349
  useOutsideClick,
5048
5350
  useThemeContext
5049
5351
  };