@tipp/ui 2.3.35 → 2.3.37
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/app/index.cjs.map +1 -1
- package/dist/app/index.js +59 -59
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +26 -26
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +26 -26
- package/dist/app/platform/curriculum-card.js +2 -2
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +47 -47
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +47 -47
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +48 -48
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +26 -26
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +47 -47
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +26 -26
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +48 -48
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +48 -48
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +26 -26
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +28 -28
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +26 -26
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +26 -26
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +25 -25
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +25 -25
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +25 -25
- package/dist/atoms/index.cjs +21 -28
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +60 -60
- package/dist/atoms/pagination.cjs +21 -28
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.d.cts +1 -1
- package/dist/atoms/pagination.d.ts +1 -1
- package/dist/atoms/pagination.js +1 -1
- package/dist/{chunk-P5GENHKO.js → chunk-2XNWJT3U.js} +9 -9
- package/dist/{chunk-WH6QD4SY.js → chunk-3DEAIJBF.js} +10 -10
- package/dist/{chunk-RM5CQ77X.js → chunk-3JRHAKLV.js} +7 -7
- package/dist/{chunk-QKZTZUWP.js → chunk-3Z2XZ4ZG.js} +4 -4
- package/dist/{chunk-CIQ7ELE6.js → chunk-4QHXYLE4.js} +4 -4
- package/dist/{chunk-7R65MUL6.js → chunk-6UXCNYVO.js} +4 -4
- package/dist/{chunk-QEDJOAP6.js → chunk-BFRNEBJN.js} +4 -4
- package/dist/{chunk-YPEB36YK.js → chunk-BKYPABII.js} +5 -5
- package/dist/{chunk-AYWPBD4T.js → chunk-CI2XFT7Y.js} +4 -4
- package/dist/{chunk-LATTGN7W.js → chunk-E5ZJDDZH.js} +4 -4
- package/dist/{chunk-V3F7KAR6.js → chunk-GFRYS4IN.js} +2 -2
- package/dist/{chunk-OILH5J7Q.js → chunk-GXG26SHU.js} +4 -4
- package/dist/{chunk-5WX7CODZ.js → chunk-GXPEADVY.js} +7 -7
- package/dist/{chunk-2U7C7J5P.js → chunk-GXWE3QNN.js} +4 -4
- package/dist/{chunk-ESM3HX57.js → chunk-HIMIOODO.js} +3 -3
- package/dist/{chunk-U3FBMFRL.js → chunk-I5RQ5T4B.js} +10 -10
- package/dist/{chunk-NTJLECYY.js → chunk-JFJ3N4V5.js} +4 -4
- package/dist/{chunk-ZA4NYPSW.js → chunk-JRSZNGFD.js} +5 -5
- package/dist/{chunk-GTO7GG2K.js → chunk-KCAOUZCT.js} +2 -2
- package/dist/{chunk-62HSZXVT.js → chunk-KD6EXWP7.js} +4 -4
- package/dist/{chunk-AA6OYHCE.js → chunk-MIATMZDP.js} +4 -4
- package/dist/{chunk-SLJLEPD2.js → chunk-MLAQDU6U.js} +14 -1
- package/dist/chunk-MLAQDU6U.js.map +1 -0
- package/dist/{chunk-HTNDVNLQ.js → chunk-MPZJH3PI.js} +4 -4
- package/dist/{chunk-F7LTJOOC.js → chunk-OXZ25J7F.js} +23 -36
- package/dist/chunk-OXZ25J7F.js.map +1 -0
- package/dist/{chunk-2TNZVHXZ.js → chunk-QANVXCYU.js} +2 -2
- package/dist/{chunk-64XYTE54.js → chunk-RFXVHZAN.js} +4 -4
- package/dist/{chunk-F7JSPN5P.js → chunk-SACH3XVV.js} +4 -4
- package/dist/{chunk-DWBYAHIR.js → chunk-SNPAB3HJ.js} +4 -4
- package/dist/{chunk-5TZNUXBT.js → chunk-SSSGPTRM.js} +4 -4
- package/dist/{chunk-6MQMVYEP.js → chunk-TTVJOFG5.js} +3 -3
- package/dist/{chunk-SRZK4OC5.js → chunk-V7MD4RRM.js} +2 -2
- package/dist/{chunk-PGUDVR3V.js → chunk-XWNFR24N.js} +2 -2
- package/dist/{chunk-TCFXG4AX.js → chunk-XXMZLXDE.js} +7 -7
- package/dist/{chunk-7R5KG7SJ.js → chunk-ZKS3IW7D.js} +4 -4
- package/dist/{chunk-5OLJJUMC.js → chunk-ZVSATS4O.js} +7 -7
- package/dist/context/index.js +1 -1
- package/dist/index.cjs +34 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +104 -104
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +7 -7
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +6 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +10 -10
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +11 -11
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +12 -12
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +1 -1
- package/dist/molecules/curriculumV2/index.js +13 -13
- package/dist/molecules/description-json-render.js +2 -2
- package/dist/molecules/dynamic-field.js +3 -3
- package/dist/molecules/dynamic-form-editor-field-editor-panel.js +3 -3
- package/dist/molecules/dynamic-form-editor-field-list-panel.js +2 -2
- package/dist/molecules/dynamic-form-editor-issues-panel.js +2 -2
- package/dist/molecules/dynamic-form-editor-preview-panel.js +6 -6
- package/dist/molecules/dynamic-form-editor.js +11 -11
- package/dist/molecules/dynamic-form.js +4 -4
- package/dist/molecules/expand-table/index.cjs +21 -28
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +3 -3
- package/dist/molecules/index.cjs +34 -28
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +38 -38
- package/dist/molecules/learning-post.js +2 -2
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.js +3 -3
- package/dist/molecules/training-info-guideline.cjs +13 -0
- package/dist/molecules/training-info-guideline.cjs.map +1 -1
- package/dist/molecules/training-info-guideline.js +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/training-info-guideline-schema-generated.cjs.map +1 -1
- package/dist/types/training-info-guideline-schema-generated.d.cts +7 -2
- package/dist/types/training-info-guideline-schema-generated.d.ts +7 -2
- package/package.json +1 -1
- package/src/atoms/pagination.tsx +24 -40
- package/src/constrant/training-info-guideline.schema.json +12 -1
- package/src/molecules/training-info-guideline.tsx +13 -0
- package/src/types/training-info-guideline-schema-generated.ts +10 -1
- package/dist/chunk-F7LTJOOC.js.map +0 -1
- package/dist/chunk-SLJLEPD2.js.map +0 -1
- /package/dist/{chunk-P5GENHKO.js.map → chunk-2XNWJT3U.js.map} +0 -0
- /package/dist/{chunk-WH6QD4SY.js.map → chunk-3DEAIJBF.js.map} +0 -0
- /package/dist/{chunk-RM5CQ77X.js.map → chunk-3JRHAKLV.js.map} +0 -0
- /package/dist/{chunk-QKZTZUWP.js.map → chunk-3Z2XZ4ZG.js.map} +0 -0
- /package/dist/{chunk-CIQ7ELE6.js.map → chunk-4QHXYLE4.js.map} +0 -0
- /package/dist/{chunk-7R65MUL6.js.map → chunk-6UXCNYVO.js.map} +0 -0
- /package/dist/{chunk-QEDJOAP6.js.map → chunk-BFRNEBJN.js.map} +0 -0
- /package/dist/{chunk-YPEB36YK.js.map → chunk-BKYPABII.js.map} +0 -0
- /package/dist/{chunk-AYWPBD4T.js.map → chunk-CI2XFT7Y.js.map} +0 -0
- /package/dist/{chunk-LATTGN7W.js.map → chunk-E5ZJDDZH.js.map} +0 -0
- /package/dist/{chunk-V3F7KAR6.js.map → chunk-GFRYS4IN.js.map} +0 -0
- /package/dist/{chunk-OILH5J7Q.js.map → chunk-GXG26SHU.js.map} +0 -0
- /package/dist/{chunk-5WX7CODZ.js.map → chunk-GXPEADVY.js.map} +0 -0
- /package/dist/{chunk-2U7C7J5P.js.map → chunk-GXWE3QNN.js.map} +0 -0
- /package/dist/{chunk-ESM3HX57.js.map → chunk-HIMIOODO.js.map} +0 -0
- /package/dist/{chunk-U3FBMFRL.js.map → chunk-I5RQ5T4B.js.map} +0 -0
- /package/dist/{chunk-NTJLECYY.js.map → chunk-JFJ3N4V5.js.map} +0 -0
- /package/dist/{chunk-ZA4NYPSW.js.map → chunk-JRSZNGFD.js.map} +0 -0
- /package/dist/{chunk-GTO7GG2K.js.map → chunk-KCAOUZCT.js.map} +0 -0
- /package/dist/{chunk-62HSZXVT.js.map → chunk-KD6EXWP7.js.map} +0 -0
- /package/dist/{chunk-AA6OYHCE.js.map → chunk-MIATMZDP.js.map} +0 -0
- /package/dist/{chunk-HTNDVNLQ.js.map → chunk-MPZJH3PI.js.map} +0 -0
- /package/dist/{chunk-2TNZVHXZ.js.map → chunk-QANVXCYU.js.map} +0 -0
- /package/dist/{chunk-64XYTE54.js.map → chunk-RFXVHZAN.js.map} +0 -0
- /package/dist/{chunk-F7JSPN5P.js.map → chunk-SACH3XVV.js.map} +0 -0
- /package/dist/{chunk-DWBYAHIR.js.map → chunk-SNPAB3HJ.js.map} +0 -0
- /package/dist/{chunk-5TZNUXBT.js.map → chunk-SSSGPTRM.js.map} +0 -0
- /package/dist/{chunk-6MQMVYEP.js.map → chunk-TTVJOFG5.js.map} +0 -0
- /package/dist/{chunk-SRZK4OC5.js.map → chunk-V7MD4RRM.js.map} +0 -0
- /package/dist/{chunk-PGUDVR3V.js.map → chunk-XWNFR24N.js.map} +0 -0
- /package/dist/{chunk-TCFXG4AX.js.map → chunk-XXMZLXDE.js.map} +0 -0
- /package/dist/{chunk-7R5KG7SJ.js.map → chunk-ZKS3IW7D.js.map} +0 -0
- /package/dist/{chunk-5OLJJUMC.js.map → chunk-ZVSATS4O.js.map} +0 -0
|
@@ -7,58 +7,52 @@ import {
|
|
|
7
7
|
} from "../../../chunk-JWAQUXGB.js";
|
|
8
8
|
import "../../../chunk-HBF6IIVZ.js";
|
|
9
9
|
import "../../../chunk-QDC3LFHS.js";
|
|
10
|
-
import "../../../chunk-OYM4XCHQ.js";
|
|
11
|
-
import "../../../chunk-YJ7ZFOYL.js";
|
|
12
|
-
import "../../../chunk-5ZITU5L7.js";
|
|
13
10
|
import "../../../chunk-5XYPLDI5.js";
|
|
14
11
|
import "../../../chunk-6NPTJBFE.js";
|
|
15
12
|
import "../../../chunk-LNPFV5BJ.js";
|
|
16
|
-
import "../../../chunk-MUPK4L3U.js";
|
|
17
|
-
import "../../../chunk-MUNMDHRF.js";
|
|
18
|
-
import "../../../chunk-TVDKGMBI.js";
|
|
19
13
|
import "../../../chunk-X2GMDZ7M.js";
|
|
20
14
|
import "../../../chunk-HYITAA4J.js";
|
|
21
15
|
import "../../../chunk-5H3YPCZK.js";
|
|
22
16
|
import "../../../chunk-FR2GDOU2.js";
|
|
23
17
|
import "../../../chunk-74DX4CU7.js";
|
|
24
|
-
import "../../../chunk-
|
|
25
|
-
import "../../../chunk-
|
|
26
|
-
import "../../../chunk-
|
|
18
|
+
import "../../../chunk-OYM4XCHQ.js";
|
|
19
|
+
import "../../../chunk-YJ7ZFOYL.js";
|
|
20
|
+
import "../../../chunk-5ZITU5L7.js";
|
|
27
21
|
import "../../../chunk-365QMK4D.js";
|
|
28
22
|
import "../../../chunk-YO3BQW6S.js";
|
|
29
23
|
import "../../../chunk-6IVCARWS.js";
|
|
30
24
|
import "../../../chunk-6DJOIRMF.js";
|
|
31
25
|
import "../../../chunk-FPD73OHW.js";
|
|
32
|
-
import "../../../chunk-
|
|
33
|
-
import "../../../chunk-
|
|
26
|
+
import "../../../chunk-MUPK4L3U.js";
|
|
27
|
+
import "../../../chunk-MUNMDHRF.js";
|
|
28
|
+
import "../../../chunk-TVDKGMBI.js";
|
|
34
29
|
import "../../../chunk-XQOL7UBI.js";
|
|
35
30
|
import "../../../chunk-TULWX7D6.js";
|
|
36
31
|
import "../../../chunk-DHZVOXFM.js";
|
|
37
|
-
import "../../../chunk-
|
|
38
|
-
import "../../../chunk-
|
|
39
|
-
import "../../../chunk-
|
|
40
|
-
import "../../../chunk-EEAHZCIK.js";
|
|
41
|
-
import "../../../chunk-645GPOW2.js";
|
|
42
|
-
import "../../../chunk-U7N2PWMO.js";
|
|
43
|
-
import "../../../chunk-XK6VEVOK.js";
|
|
44
|
-
import "../../../chunk-HF6GNDPV.js";
|
|
32
|
+
import "../../../chunk-JIJLOKVN.js";
|
|
33
|
+
import "../../../chunk-OXZ25J7F.js";
|
|
34
|
+
import "../../../chunk-5AVBYDPB.js";
|
|
45
35
|
import "../../../chunk-SMLC2O3V.js";
|
|
46
36
|
import "../../../chunk-Y4U24VXI.js";
|
|
47
37
|
import "../../../chunk-3NUQAVE6.js";
|
|
48
38
|
import "../../../chunk-PT57HCAI.js";
|
|
49
39
|
import "../../../chunk-2DZ2Y3JI.js";
|
|
50
40
|
import "../../../chunk-ZOPYFDLO.js";
|
|
51
|
-
import "../../../chunk-
|
|
52
|
-
import "../../../chunk-
|
|
53
|
-
import "../../../chunk-MIMJ7LON.js";
|
|
41
|
+
import "../../../chunk-EGEQY3KT.js";
|
|
42
|
+
import "../../../chunk-O3T3TM3V.js";
|
|
54
43
|
import "../../../chunk-W7X7KSJP.js";
|
|
55
44
|
import "../../../chunk-VYCYVN3L.js";
|
|
56
45
|
import "../../../chunk-OHMOP5PV.js";
|
|
57
46
|
import "../../../chunk-NFDQJVFA.js";
|
|
58
47
|
import "../../../chunk-Q37G2GS6.js";
|
|
59
|
-
import "../../../chunk-
|
|
60
|
-
import "../../../chunk-
|
|
61
|
-
import "../../../chunk-
|
|
48
|
+
import "../../../chunk-VTJZMOSP.js";
|
|
49
|
+
import "../../../chunk-B5CKZFDM.js";
|
|
50
|
+
import "../../../chunk-BESTU2AY.js";
|
|
51
|
+
import "../../../chunk-EEAHZCIK.js";
|
|
52
|
+
import "../../../chunk-645GPOW2.js";
|
|
53
|
+
import "../../../chunk-U7N2PWMO.js";
|
|
54
|
+
import "../../../chunk-XK6VEVOK.js";
|
|
55
|
+
import "../../../chunk-HF6GNDPV.js";
|
|
62
56
|
import "../../../chunk-YGL6SWKN.js";
|
|
63
57
|
import "../../../chunk-4Y5BEXVN.js";
|
|
64
58
|
import "../../../chunk-Z34HR7RE.js";
|
|
@@ -68,6 +62,9 @@ import "../../../chunk-25HMMI7R.js";
|
|
|
68
62
|
import "../../../chunk-ZVDAEY5Q.js";
|
|
69
63
|
import "../../../chunk-LQY4RKWI.js";
|
|
70
64
|
import "../../../chunk-ZD7MNMED.js";
|
|
65
|
+
import "../../../chunk-B6XJN6EC.js";
|
|
66
|
+
import "../../../chunk-RP2RGCAW.js";
|
|
67
|
+
import "../../../chunk-MIMJ7LON.js";
|
|
71
68
|
import "../../../chunk-DLP4UUNG.js";
|
|
72
69
|
import "../../../chunk-VD7AQ7HK.js";
|
|
73
70
|
import "../../../chunk-ZQE7SP6P.js";
|
|
@@ -86,6 +83,9 @@ import "../../../chunk-ZUYCXCPW.js";
|
|
|
86
83
|
import "../../../chunk-YVFNJE4E.js";
|
|
87
84
|
import "../../../chunk-J242TTFH.js";
|
|
88
85
|
import "../../../chunk-EAXUQEO5.js";
|
|
86
|
+
import "../../../chunk-6SYFG6YY.js";
|
|
87
|
+
import "../../../chunk-K36TPMKL.js";
|
|
88
|
+
import "../../../chunk-U3BQT7ZO.js";
|
|
89
89
|
import "../../../chunk-CRTRMMJ7.js";
|
|
90
90
|
export {
|
|
91
91
|
CopyButton,
|
package/dist/atoms/index.cjs
CHANGED
|
@@ -1501,7 +1501,18 @@ CircleFileIcon.displayName = "CircleFileIcon";
|
|
|
1501
1501
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1502
1502
|
function Pagination(props) {
|
|
1503
1503
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
1504
|
-
const
|
|
1504
|
+
const isControlled = props.page !== void 0;
|
|
1505
|
+
const [internalPage, setInternalPage] = (0, import_react20.useState)(props.defaultPage || 1);
|
|
1506
|
+
const page = isControlled ? props.page : internalPage;
|
|
1507
|
+
const goToPage = (0, import_react20.useCallback)(
|
|
1508
|
+
(next2) => {
|
|
1509
|
+
if (!isControlled) {
|
|
1510
|
+
setInternalPage(next2);
|
|
1511
|
+
}
|
|
1512
|
+
onChange == null ? void 0 : onChange(next2);
|
|
1513
|
+
},
|
|
1514
|
+
[isControlled, onChange]
|
|
1515
|
+
);
|
|
1505
1516
|
const visibleItems = (0, import_react20.useMemo)(() => {
|
|
1506
1517
|
let start = Math.max(1, page - siblingCount);
|
|
1507
1518
|
let end = Math.min(count, page + siblingCount);
|
|
@@ -1512,24 +1523,6 @@ function Pagination(props) {
|
|
|
1512
1523
|
}
|
|
1513
1524
|
return Array.from({ length: end - start + 1 }, (_, i) => i + start);
|
|
1514
1525
|
}, [count, page, siblingCount]);
|
|
1515
|
-
const onChangeRef = (0, import_react20.useRef)(onChange);
|
|
1516
|
-
(0, import_react20.useEffect)(() => {
|
|
1517
|
-
onChangeRef.current = onChange;
|
|
1518
|
-
});
|
|
1519
|
-
const isFirstRender = (0, import_react20.useRef)(true);
|
|
1520
|
-
(0, import_react20.useEffect)(() => {
|
|
1521
|
-
var _a;
|
|
1522
|
-
if (isFirstRender.current) {
|
|
1523
|
-
isFirstRender.current = false;
|
|
1524
|
-
return;
|
|
1525
|
-
}
|
|
1526
|
-
(_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, page);
|
|
1527
|
-
}, [page]);
|
|
1528
|
-
(0, import_react20.useEffect)(() => {
|
|
1529
|
-
if (props.page && props.page !== page) {
|
|
1530
|
-
setPage(props.page);
|
|
1531
|
-
}
|
|
1532
|
-
}, [props.page, page]);
|
|
1533
1526
|
const prev = (0, import_react20.useMemo)(() => {
|
|
1534
1527
|
const p = page - 1;
|
|
1535
1528
|
return p < 1 ? void 0 : p;
|
|
@@ -1539,18 +1532,18 @@ function Pagination(props) {
|
|
|
1539
1532
|
return n > count ? void 0 : n;
|
|
1540
1533
|
}, [count, page]);
|
|
1541
1534
|
const onClickPrev = (0, import_react20.useCallback)(() => {
|
|
1542
|
-
prev
|
|
1543
|
-
}, [prev]);
|
|
1535
|
+
if (prev) goToPage(prev);
|
|
1536
|
+
}, [prev, goToPage]);
|
|
1544
1537
|
const onClickNext = (0, import_react20.useCallback)(() => {
|
|
1545
|
-
next
|
|
1546
|
-
}, [next]);
|
|
1538
|
+
if (next) goToPage(next);
|
|
1539
|
+
}, [next, goToPage]);
|
|
1547
1540
|
const doublePrev = (0, import_react20.useMemo)(() => {
|
|
1548
1541
|
if (!visibleItems.length) return;
|
|
1549
1542
|
return Math.max(0, visibleItems[0] - 1);
|
|
1550
1543
|
}, [visibleItems]);
|
|
1551
1544
|
const onClickDoublePrev = (0, import_react20.useCallback)(() => {
|
|
1552
|
-
doublePrev
|
|
1553
|
-
}, [doublePrev]);
|
|
1545
|
+
if (doublePrev) goToPage(doublePrev);
|
|
1546
|
+
}, [doublePrev, goToPage]);
|
|
1554
1547
|
const doubleNext = (0, import_react20.useMemo)(() => {
|
|
1555
1548
|
if (!visibleItems.length) return;
|
|
1556
1549
|
const n = visibleItems[visibleItems.length - 1] + 1;
|
|
@@ -1558,8 +1551,8 @@ function Pagination(props) {
|
|
|
1558
1551
|
return Math.min(count, n);
|
|
1559
1552
|
}, [count, visibleItems]);
|
|
1560
1553
|
const onClickDoubleNext = (0, import_react20.useCallback)(() => {
|
|
1561
|
-
doubleNext
|
|
1562
|
-
}, [doubleNext]);
|
|
1554
|
+
if (doubleNext) goToPage(doubleNext);
|
|
1555
|
+
}, [doubleNext, goToPage]);
|
|
1563
1556
|
const iconSize = {
|
|
1564
1557
|
height: 24,
|
|
1565
1558
|
width: 24
|
|
@@ -1586,7 +1579,7 @@ function Pagination(props) {
|
|
|
1586
1579
|
{
|
|
1587
1580
|
className: `page-button ${item === page ? "active" : ""}`,
|
|
1588
1581
|
onClick: () => {
|
|
1589
|
-
|
|
1582
|
+
goToPage(item);
|
|
1590
1583
|
},
|
|
1591
1584
|
type: "button",
|
|
1592
1585
|
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typo, { variant: "body", children: item })
|