@tipp/ui 2.3.9 → 2.3.11
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 +4 -3
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +20 -20
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +1 -1
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +1 -1
- package/dist/app/platform/edit-coaching-time.cjs +4 -3
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +17 -17
- package/dist/app/platform/edit-service-type.cjs +4 -3
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +17 -17
- package/dist/app/platform/goal-manage-card-edit.cjs +4 -3
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +17 -17
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +1 -1
- package/dist/app/platform/on-offline-radio-card.cjs +77 -76
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +17 -17
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +1 -1
- package/dist/app/platform/reservation-card.cjs +4 -3
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +17 -17
- package/dist/app/platform/session-card.cjs +4 -3
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +17 -17
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +1 -1
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +1 -1
- package/dist/atoms/index.cjs +1 -1
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/pagination.cjs +1 -1
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +1 -1
- package/dist/chunk-26O2ATMO.js +196 -0
- package/dist/chunk-26O2ATMO.js.map +1 -0
- package/dist/chunk-2HNIO3ZS.js +174 -0
- package/dist/chunk-2HNIO3ZS.js.map +1 -0
- package/dist/chunk-3IH2QVBB.js +37 -0
- package/dist/chunk-3IH2QVBB.js.map +1 -0
- package/dist/chunk-3PE6JQJD.js +199 -0
- package/dist/chunk-3PE6JQJD.js.map +1 -0
- package/dist/chunk-3ZWQBI3C.js +228 -0
- package/dist/chunk-3ZWQBI3C.js.map +1 -0
- package/dist/chunk-565LGGCZ.js +198 -0
- package/dist/chunk-565LGGCZ.js.map +1 -0
- package/dist/chunk-5ALF4QOO.js +51 -0
- package/dist/chunk-5ALF4QOO.js.map +1 -0
- package/dist/chunk-5I2YBHKM.js +209 -0
- package/dist/chunk-5I2YBHKM.js.map +1 -0
- package/dist/chunk-5OTWI6C5.js +124 -0
- package/dist/chunk-5OTWI6C5.js.map +1 -0
- package/dist/chunk-5QWMYOYQ.js +101 -0
- package/dist/chunk-5QWMYOYQ.js.map +1 -0
- package/dist/chunk-6MXZLFKB.js +215 -0
- package/dist/chunk-6MXZLFKB.js.map +1 -0
- package/dist/chunk-7EDFQO6G.js +145 -0
- package/dist/chunk-7EDFQO6G.js.map +1 -0
- package/dist/chunk-AE37PV3K.js +64 -0
- package/dist/chunk-AE37PV3K.js.map +1 -0
- package/dist/chunk-AWLRACTU.js +217 -0
- package/dist/chunk-AWLRACTU.js.map +1 -0
- package/dist/chunk-BAS5S6ZI.js +144 -0
- package/dist/chunk-BAS5S6ZI.js.map +1 -0
- package/dist/chunk-BBEGVL2S.js +69 -0
- package/dist/chunk-BBEGVL2S.js.map +1 -0
- package/dist/chunk-C2KPQPFR.js +209 -0
- package/dist/chunk-C2KPQPFR.js.map +1 -0
- package/dist/chunk-C3GC2Y34.js +209 -0
- package/dist/chunk-C3GC2Y34.js.map +1 -0
- package/dist/chunk-CRPH7YI5.js +221 -0
- package/dist/chunk-CRPH7YI5.js.map +1 -0
- package/dist/chunk-D7DI7CJ5.js +63 -0
- package/dist/chunk-D7DI7CJ5.js.map +1 -0
- package/dist/chunk-DG5A2RUZ.js +215 -0
- package/dist/chunk-DG5A2RUZ.js.map +1 -0
- package/dist/chunk-DLFBF5KJ.js +217 -0
- package/dist/chunk-DLFBF5KJ.js.map +1 -0
- package/dist/chunk-E2ISFADW.js +196 -0
- package/dist/chunk-E2ISFADW.js.map +1 -0
- package/dist/chunk-E3E6FV2T.js +64 -0
- package/dist/chunk-E3E6FV2T.js.map +1 -0
- package/dist/chunk-EBMQ6DIV.js +89 -0
- package/dist/chunk-EBMQ6DIV.js.map +1 -0
- package/dist/chunk-EWIRNKMR.js +49 -0
- package/dist/chunk-EWIRNKMR.js.map +1 -0
- package/dist/chunk-FG3WT6OL.js +125 -0
- package/dist/chunk-FG3WT6OL.js.map +1 -0
- package/dist/chunk-FRKPPLQP.js +223 -0
- package/dist/chunk-FRKPPLQP.js.map +1 -0
- package/dist/chunk-G6ZWPY57.js +99 -0
- package/dist/chunk-G6ZWPY57.js.map +1 -0
- package/dist/chunk-GCDGKRQQ.js +117 -0
- package/dist/chunk-GCDGKRQQ.js.map +1 -0
- package/dist/chunk-GROWIYD2.js +169 -0
- package/dist/chunk-GROWIYD2.js.map +1 -0
- package/dist/chunk-HHZ4HLP6.js +221 -0
- package/dist/chunk-HHZ4HLP6.js.map +1 -0
- package/dist/chunk-HPG6F7VM.js +165 -0
- package/dist/chunk-HPG6F7VM.js.map +1 -0
- package/dist/chunk-HQPSFOVV.js +43 -0
- package/dist/chunk-HQPSFOVV.js.map +1 -0
- package/dist/chunk-I7M6TY5G.js +64 -0
- package/dist/chunk-I7M6TY5G.js.map +1 -0
- package/dist/chunk-IFY3MMGL.js +144 -0
- package/dist/chunk-IFY3MMGL.js.map +1 -0
- package/dist/chunk-JWT2CPYX.js +221 -0
- package/dist/chunk-JWT2CPYX.js.map +1 -0
- package/dist/chunk-KTXRU3WQ.js +196 -0
- package/dist/chunk-KTXRU3WQ.js.map +1 -0
- package/dist/chunk-LVPXFDRY.js +145 -0
- package/dist/chunk-LVPXFDRY.js.map +1 -0
- package/dist/chunk-LWM3GQX2.js +89 -0
- package/dist/chunk-LWM3GQX2.js.map +1 -0
- package/dist/chunk-MCI6Y2QP.js +61 -0
- package/dist/chunk-MCI6Y2QP.js.map +1 -0
- package/dist/chunk-NMRNR5OA.js +221 -0
- package/dist/chunk-NMRNR5OA.js.map +1 -0
- package/dist/chunk-NQLHTDVA.js +209 -0
- package/dist/chunk-NQLHTDVA.js.map +1 -0
- package/dist/chunk-ODYLHCQD.js +87 -0
- package/dist/chunk-ODYLHCQD.js.map +1 -0
- package/dist/chunk-OJOTDNKG.js +69 -0
- package/dist/chunk-OJOTDNKG.js.map +1 -0
- package/dist/chunk-OVYSIME4.js +63 -0
- package/dist/chunk-OVYSIME4.js.map +1 -0
- package/dist/chunk-PNXD4FUW.js +199 -0
- package/dist/chunk-PNXD4FUW.js.map +1 -0
- package/dist/chunk-PQ7EVMOK.js +209 -0
- package/dist/chunk-PQ7EVMOK.js.map +1 -0
- package/dist/chunk-PT5BQZPO.js +124 -0
- package/dist/chunk-PT5BQZPO.js.map +1 -0
- package/dist/chunk-PV45TKNY.js +217 -0
- package/dist/chunk-PV45TKNY.js.map +1 -0
- package/dist/chunk-QMPSKZJ2.js +221 -0
- package/dist/chunk-QMPSKZJ2.js.map +1 -0
- package/dist/chunk-RDCEN45M.js +89 -0
- package/dist/chunk-RDCEN45M.js.map +1 -0
- package/dist/chunk-RYBQ4OMI.js +199 -0
- package/dist/chunk-RYBQ4OMI.js.map +1 -0
- package/dist/chunk-SBJOKO35.js +125 -0
- package/dist/chunk-SBJOKO35.js.map +1 -0
- package/dist/chunk-SPB56SRF.js +199 -0
- package/dist/chunk-SPB56SRF.js.map +1 -0
- package/dist/chunk-VGDK7BHK.js +198 -0
- package/dist/chunk-VGDK7BHK.js.map +1 -0
- package/dist/chunk-WGQGVPGZ.js +222 -0
- package/dist/chunk-WGQGVPGZ.js.map +1 -0
- package/dist/chunk-WQEMCAKF.js +198 -0
- package/dist/chunk-WQEMCAKF.js.map +1 -0
- package/dist/chunk-XK3725XB.js +87 -0
- package/dist/chunk-XK3725XB.js.map +1 -0
- package/dist/chunk-XQUM7KZW.js +29 -0
- package/dist/chunk-XQUM7KZW.js.map +1 -0
- package/dist/chunk-XXSZHE7S.js +217 -0
- package/dist/chunk-XXSZHE7S.js.map +1 -0
- package/dist/chunk-XYJ6JLAZ.js +124 -0
- package/dist/chunk-XYJ6JLAZ.js.map +1 -0
- package/dist/chunk-YEGT662X.js +221 -0
- package/dist/chunk-YEGT662X.js.map +1 -0
- package/dist/chunk-YLFGGCST.js +68 -0
- package/dist/chunk-YLFGGCST.js.map +1 -0
- package/dist/chunk-YXPMFEO5.js +151 -0
- package/dist/chunk-YXPMFEO5.js.map +1 -0
- package/dist/chunk-ZBN7YZEV.js +215 -0
- package/dist/chunk-ZBN7YZEV.js.map +1 -0
- package/dist/chunk-ZBZ7IGBT.js +222 -0
- package/dist/chunk-ZBZ7IGBT.js.map +1 -0
- package/dist/chunk-ZS44RD54.js +363 -0
- package/dist/chunk-ZS44RD54.js.map +1 -0
- package/dist/index.cjs +43 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +77 -38
- package/dist/index.js +34 -34
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +2 -2
- package/dist/molecules/curriculumV2/index.js +13 -13
- package/dist/molecules/expand-table/index.cjs +35 -11
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.d.cts +2 -0
- package/dist/molecules/expand-table/index.d.ts +2 -0
- package/dist/molecules/expand-table/index.js +2 -2
- package/dist/molecules/index.cjs +172 -148
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +26 -26
- package/dist/molecules/time-select.js +1 -1
- package/dist/utils/index.js +3 -3
- package/package.json +1 -1
- package/src/atoms/pagination.tsx +1 -1
- package/src/molecules/expand-table/index.tsx +108 -85
package/dist/molecules/index.js
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import "../chunk-QDXZVPRR.js";
|
|
2
|
-
import {
|
|
3
|
-
ExpandTable,
|
|
4
|
-
createColumnHelper
|
|
5
|
-
} from "../chunk-LAZUFZRZ.js";
|
|
6
|
-
import "../chunk-JCG2AUFJ.js";
|
|
7
2
|
import "../chunk-AS7ID74X.js";
|
|
8
3
|
import {
|
|
9
4
|
CurriculumBody
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
} from "../chunk-EDDPJB52.js";
|
|
14
|
-
import "../chunk-SZA3RAKD.js";
|
|
15
|
-
import "../chunk-WS7IOHVK.js";
|
|
16
|
-
import "../chunk-6L4OTKID.js";
|
|
17
|
-
import "../chunk-SDEDXT7A.js";
|
|
18
|
-
import "../chunk-4TST4UK5.js";
|
|
19
|
-
import "../chunk-LHKGSKKG.js";
|
|
20
|
-
import "../chunk-43FK4CS3.js";
|
|
21
|
-
import "../chunk-ZDMAVBNK.js";
|
|
22
|
-
import "../chunk-JNYTH4BZ.js";
|
|
5
|
+
} from "../chunk-6V47NXW5.js";
|
|
6
|
+
import "../chunk-GFBHPXDF.js";
|
|
7
|
+
import "../chunk-OX3N37YY.js";
|
|
23
8
|
import "../chunk-W3TY3SYU.js";
|
|
24
9
|
import "../chunk-QIRUYN3K.js";
|
|
25
10
|
import "../chunk-BUZDDAS6.js";
|
|
@@ -31,8 +16,29 @@ import "../chunk-AQVIQODP.js";
|
|
|
31
16
|
import "../chunk-WHZZKXOD.js";
|
|
32
17
|
import "../chunk-YT4LGWIY.js";
|
|
33
18
|
import "../chunk-PYGTM7ML.js";
|
|
19
|
+
import "../chunk-JNYTH4BZ.js";
|
|
34
20
|
import "../chunk-GMKRNFH5.js";
|
|
35
21
|
import "../chunk-QGKQ3IX7.js";
|
|
22
|
+
import {
|
|
23
|
+
CurriculumSidebar
|
|
24
|
+
} from "../chunk-Y724ZBAT.js";
|
|
25
|
+
import "../chunk-KTUCYAG7.js";
|
|
26
|
+
import "../chunk-4TST4UK5.js";
|
|
27
|
+
import "../chunk-WS7IOHVK.js";
|
|
28
|
+
import "../chunk-6L4OTKID.js";
|
|
29
|
+
import "../chunk-SDEDXT7A.js";
|
|
30
|
+
import {
|
|
31
|
+
ExpandTable,
|
|
32
|
+
createColumnHelper
|
|
33
|
+
} from "../chunk-ZBZ7IGBT.js";
|
|
34
|
+
import "../chunk-JCG2AUFJ.js";
|
|
35
|
+
import "../chunk-LHKGSKKG.js";
|
|
36
|
+
import {
|
|
37
|
+
DatePickerButton
|
|
38
|
+
} from "../chunk-I46J2XHG.js";
|
|
39
|
+
import {
|
|
40
|
+
DatePicker
|
|
41
|
+
} from "../chunk-FVTBDVT4.js";
|
|
36
42
|
import {
|
|
37
43
|
CurriculumSubNav
|
|
38
44
|
} from "../chunk-OUJ7TDIH.js";
|
|
@@ -43,12 +49,6 @@ import {
|
|
|
43
49
|
import {
|
|
44
50
|
CurriculumV2Layout
|
|
45
51
|
} from "../chunk-CQSM6JCO.js";
|
|
46
|
-
import {
|
|
47
|
-
DatePickerButton
|
|
48
|
-
} from "../chunk-I46J2XHG.js";
|
|
49
|
-
import {
|
|
50
|
-
DatePicker
|
|
51
|
-
} from "../chunk-FVTBDVT4.js";
|
|
52
52
|
import "../chunk-JF7JAMOQ.js";
|
|
53
53
|
import {
|
|
54
54
|
RadioButtonCard
|
|
@@ -63,10 +63,10 @@ import {
|
|
|
63
63
|
TimeSelect
|
|
64
64
|
} from "../chunk-7PF6I4RN.js";
|
|
65
65
|
import "../chunk-V2DF2GUE.js";
|
|
66
|
-
import "../chunk-BXX3B3E4.js";
|
|
67
66
|
import "../chunk-NRPDVI76.js";
|
|
68
67
|
import "../chunk-2BPFXK4L.js";
|
|
69
68
|
import "../chunk-NWJSLIQ3.js";
|
|
69
|
+
import "../chunk-BXX3B3E4.js";
|
|
70
70
|
import {
|
|
71
71
|
DynamicFormResponseItem
|
|
72
72
|
} from "../chunk-QTQKJ4A2.js";
|
|
@@ -113,7 +113,7 @@ import "../chunk-HYITAA4J.js";
|
|
|
113
113
|
import "../chunk-TULWX7D6.js";
|
|
114
114
|
import "../chunk-DHZVOXFM.js";
|
|
115
115
|
import "../chunk-WV2HN6H4.js";
|
|
116
|
-
import "../chunk-
|
|
116
|
+
import "../chunk-SBJOKO35.js";
|
|
117
117
|
import "../chunk-5AVBYDPB.js";
|
|
118
118
|
import "../chunk-365QMK4D.js";
|
|
119
119
|
import "../chunk-EGEQY3KT.js";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
TimeSelect
|
|
3
3
|
} from "../chunk-7PF6I4RN.js";
|
|
4
4
|
import "../chunk-V2DF2GUE.js";
|
|
5
|
-
import "../chunk-BXX3B3E4.js";
|
|
6
5
|
import "../chunk-NRPDVI76.js";
|
|
7
6
|
import "../chunk-2BPFXK4L.js";
|
|
8
7
|
import "../chunk-NWJSLIQ3.js";
|
|
8
|
+
import "../chunk-BXX3B3E4.js";
|
|
9
9
|
import "../chunk-X2GMDZ7M.js";
|
|
10
10
|
import "../chunk-25HMMI7R.js";
|
|
11
11
|
import "../chunk-CRTRMMJ7.js";
|
package/dist/utils/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-V2DF2GUE.js";
|
|
2
|
-
import {
|
|
3
|
-
scrollTo
|
|
4
|
-
} from "../chunk-BXX3B3E4.js";
|
|
5
2
|
import {
|
|
6
3
|
getColumnMeta
|
|
7
4
|
} from "../chunk-NRPDVI76.js";
|
|
@@ -13,6 +10,9 @@ import {
|
|
|
13
10
|
getTimeOptions,
|
|
14
11
|
parseTimeOption
|
|
15
12
|
} from "../chunk-NWJSLIQ3.js";
|
|
13
|
+
import {
|
|
14
|
+
scrollTo
|
|
15
|
+
} from "../chunk-BXX3B3E4.js";
|
|
16
16
|
import "../chunk-CRTRMMJ7.js";
|
|
17
17
|
export {
|
|
18
18
|
getCellAlign,
|
package/package.json
CHANGED
package/src/atoms/pagination.tsx
CHANGED
|
@@ -100,7 +100,7 @@ export function Pagination(props: PaginationProps): React.ReactNode {
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
return (
|
|
103
|
-
<Flex align="center" className="tipp-pagination"
|
|
103
|
+
<Flex align="center" className="tipp-pagination">
|
|
104
104
|
<IconButton
|
|
105
105
|
disabled={!doublePrev}
|
|
106
106
|
onClick={onClickDoublePrev}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
createColumnHelper,
|
|
15
15
|
getPaginationRowModel,
|
|
16
16
|
} from '@tanstack/react-table';
|
|
17
|
-
import React, { useCallback, useMemo, useState } from 'react';
|
|
17
|
+
import React, { useCallback, useMemo, useState } from 'react';
|
|
18
18
|
import { Flex } from '@/atoms/flex';
|
|
19
19
|
import { Pagination } from '@/atoms/pagination';
|
|
20
20
|
import { Spinner } from '@/atoms/spinner';
|
|
@@ -22,10 +22,32 @@ import { Typo } from '@/atoms/typo';
|
|
|
22
22
|
import { TriangleArrowDownIcon } from '../../icons/down';
|
|
23
23
|
import { TriangleArrowUpIcon } from '../../icons/up';
|
|
24
24
|
import { Row, type ExpandComp, type OnRowClick } from './row';
|
|
25
|
+
import { ScrollArea } from '@radix-ui/themes';
|
|
25
26
|
|
|
26
27
|
export type { ExpandComp, OnRowClick, ColumnDef, RowType as Row };
|
|
27
28
|
export { createColumnHelper };
|
|
28
29
|
|
|
30
|
+
type Variant = 'card' | 'sprite' | 'sprite-border';
|
|
31
|
+
const sortButtonColorMapper: Record<
|
|
32
|
+
Variant,
|
|
33
|
+
{ selected: string; unselected: string }
|
|
34
|
+
> = {
|
|
35
|
+
card: {
|
|
36
|
+
selected: 'var(--iris-10)',
|
|
37
|
+
unselected: 'var(--iris-6)',
|
|
38
|
+
},
|
|
39
|
+
sprite: {
|
|
40
|
+
// selected: 'var(--gray-a12)',
|
|
41
|
+
// unselected: 'var(--gray-a6)',
|
|
42
|
+
selected: 'var(--iris-10)',
|
|
43
|
+
unselected: 'var(--iris-6)',
|
|
44
|
+
},
|
|
45
|
+
'sprite-border': {
|
|
46
|
+
selected: 'var(--iris-10)',
|
|
47
|
+
unselected: 'var(--iris-6)',
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
|
|
29
51
|
export interface ExpandTableProps<Datum extends RowData> {
|
|
30
52
|
/** 렌더할 데이터 배열 */
|
|
31
53
|
data?: Datum[];
|
|
@@ -50,6 +72,7 @@ export interface ExpandTableProps<Datum extends RowData> {
|
|
|
50
72
|
pageSize?: number;
|
|
51
73
|
/** pagination - */
|
|
52
74
|
siblingCount?: number;
|
|
75
|
+
variant?: Variant;
|
|
53
76
|
}
|
|
54
77
|
|
|
55
78
|
export function ExpandTable<Datum extends RowData>(
|
|
@@ -69,6 +92,7 @@ export function ExpandTable<Datum extends RowData>(
|
|
|
69
92
|
siblingCount = 2,
|
|
70
93
|
getRowStyle,
|
|
71
94
|
getCellStyle,
|
|
95
|
+
variant = 'card',
|
|
72
96
|
} = props;
|
|
73
97
|
const defaultAlign = 'left';
|
|
74
98
|
const [pagination, setPagination] = useState<PaginationState>({
|
|
@@ -148,62 +172,62 @@ export function ExpandTable<Datum extends RowData>(
|
|
|
148
172
|
}, [data, pageSize]);
|
|
149
173
|
|
|
150
174
|
return (
|
|
151
|
-
<div className=
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
175
|
+
<div className={`expand-table-wrapper ${variant}`}>
|
|
176
|
+
<div className="expand-table" style={tableStyle}>
|
|
177
|
+
<div className="thead">
|
|
178
|
+
{getHeaderGroups().map((headerGroup) => (
|
|
179
|
+
<div
|
|
180
|
+
className="tr"
|
|
181
|
+
key={headerGroup.id}
|
|
182
|
+
style={{ gridTemplateColumns }}
|
|
183
|
+
>
|
|
184
|
+
{headerGroup.headers.map((header) => {
|
|
185
|
+
const sortable = header.column.getCanSort();
|
|
186
|
+
const sortedState = header.column.getIsSorted();
|
|
187
|
+
const justifyContent =
|
|
188
|
+
header.column.columnDef.meta?.align || defaultAlign;
|
|
165
189
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
>
|
|
174
|
-
<Typo as="div" variant="body">
|
|
175
|
-
{flexRender(
|
|
176
|
-
header.column.columnDef.header,
|
|
177
|
-
header.getContext()
|
|
178
|
-
)}
|
|
179
|
-
</Typo>
|
|
180
|
-
<Flex
|
|
181
|
-
direction="column"
|
|
182
|
-
style={{ marginLeft: 'var(--space-2)' }}
|
|
190
|
+
if (sortable) {
|
|
191
|
+
return (
|
|
192
|
+
<div className={`${justifyContent} th`} key={header.id}>
|
|
193
|
+
<button
|
|
194
|
+
onClick={header.column.getToggleSortingHandler()}
|
|
195
|
+
style={{ cursor: 'pointer' }}
|
|
196
|
+
type="button"
|
|
183
197
|
>
|
|
184
|
-
<
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
198
|
+
<Typo as="div" variant="body">
|
|
199
|
+
{flexRender(
|
|
200
|
+
header.column.columnDef.header,
|
|
201
|
+
header.getContext()
|
|
202
|
+
)}
|
|
203
|
+
</Typo>
|
|
204
|
+
<Flex
|
|
205
|
+
direction="column"
|
|
206
|
+
style={{ marginLeft: 'var(--space-2)' }}
|
|
207
|
+
>
|
|
208
|
+
{sortedState === false && (
|
|
209
|
+
<TriangleArrowDownIcon
|
|
210
|
+
color={sortButtonColorMapper[variant].unselected}
|
|
211
|
+
/>
|
|
212
|
+
)}
|
|
213
|
+
{sortedState === 'asc' && (
|
|
214
|
+
<TriangleArrowUpIcon
|
|
215
|
+
color={sortButtonColorMapper[variant].selected}
|
|
216
|
+
/>
|
|
217
|
+
)}
|
|
218
|
+
{sortedState === 'desc' && (
|
|
219
|
+
<TriangleArrowDownIcon
|
|
220
|
+
color={sortButtonColorMapper[variant].selected}
|
|
221
|
+
/>
|
|
222
|
+
)}
|
|
223
|
+
</Flex>
|
|
224
|
+
</button>
|
|
225
|
+
</div>
|
|
226
|
+
);
|
|
227
|
+
}
|
|
203
228
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
<div style={{ cursor: 'default' }}>
|
|
229
|
+
return (
|
|
230
|
+
<div className={`${justifyContent} th`} key={header.id}>
|
|
207
231
|
<Typo as="div" variant="body">
|
|
208
232
|
{flexRender(
|
|
209
233
|
header.column.columnDef.header,
|
|
@@ -211,41 +235,40 @@ export function ExpandTable<Datum extends RowData>(
|
|
|
211
235
|
)}
|
|
212
236
|
</Typo>
|
|
213
237
|
</div>
|
|
214
|
-
|
|
238
|
+
);
|
|
239
|
+
})}
|
|
240
|
+
</div>
|
|
241
|
+
))}
|
|
242
|
+
</div>
|
|
243
|
+
<ScrollArea className="tbody">
|
|
244
|
+
{/* 조건에 따라 placeholder 또는 loading 렌더*/}
|
|
245
|
+
{helpCompRender(rowModels.rows.length) ||
|
|
246
|
+
rowModels.rows.map((row) => {
|
|
247
|
+
return (
|
|
248
|
+
<Row
|
|
249
|
+
ExpandComp={ExpandComp}
|
|
250
|
+
defaultAlign={defaultAlign}
|
|
251
|
+
getCellStyle={getCellStyle}
|
|
252
|
+
getRowStyle={getRowStyle}
|
|
253
|
+
gridTemplateColumns={gridTemplateColumns}
|
|
254
|
+
key={`row_${row.id}`}
|
|
255
|
+
onRowClick={onRowClick}
|
|
256
|
+
row={row}
|
|
257
|
+
/>
|
|
215
258
|
);
|
|
216
259
|
})}
|
|
217
|
-
|
|
218
|
-
))}
|
|
260
|
+
</ScrollArea>
|
|
219
261
|
</div>
|
|
220
|
-
<div className="tbody">
|
|
221
|
-
{/* 조건에 따라 placeholder 또는 loading 렌더*/}
|
|
222
|
-
{helpCompRender(rowModels.rows.length) ||
|
|
223
|
-
rowModels.rows.map((row) => {
|
|
224
|
-
return (
|
|
225
|
-
<Row
|
|
226
|
-
ExpandComp={ExpandComp}
|
|
227
|
-
defaultAlign={defaultAlign}
|
|
228
|
-
getCellStyle={getCellStyle}
|
|
229
|
-
getRowStyle={getRowStyle}
|
|
230
|
-
gridTemplateColumns={gridTemplateColumns}
|
|
231
|
-
key={`row_${row.id}`}
|
|
232
|
-
onRowClick={onRowClick}
|
|
233
|
-
row={row}
|
|
234
|
-
/>
|
|
235
|
-
);
|
|
236
|
-
})}
|
|
237
|
-
</div>
|
|
238
|
-
</div>
|
|
239
262
|
{showPagination ? (
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
263
|
+
<Flex justify="end" pt="4" width="100%">
|
|
264
|
+
<Pagination
|
|
265
|
+
count={pageCount}
|
|
266
|
+
onChange={onChangePagination}
|
|
267
|
+
page={pagination.pageIndex + 1}
|
|
268
|
+
siblingCount={siblingCount}
|
|
269
|
+
/>
|
|
270
|
+
</Flex>
|
|
271
|
+
) : null}
|
|
249
272
|
</div>
|
|
250
273
|
);
|
|
251
274
|
}
|