@tipp/ui 2.3.13 → 2.3.14

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.
Files changed (130) hide show
  1. package/dist/app/index.cjs +1 -1
  2. package/dist/app/index.cjs.map +1 -1
  3. package/dist/app/index.js +89 -89
  4. package/dist/app/platform/coach-question-list.js +31 -31
  5. package/dist/app/platform/contents-card.js +31 -31
  6. package/dist/app/platform/curriculum-card.js +5 -5
  7. package/dist/app/platform/edit-coaching-time.cjs +1 -1
  8. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  9. package/dist/app/platform/edit-coaching-time.js +71 -71
  10. package/dist/app/platform/edit-service-type.cjs +1 -1
  11. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  12. package/dist/app/platform/edit-service-type.js +72 -72
  13. package/dist/app/platform/goal-manage-card-edit.cjs +1 -1
  14. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  15. package/dist/app/platform/goal-manage-card-edit.js +71 -71
  16. package/dist/app/platform/goal-manage-card-read.js +31 -31
  17. package/dist/app/platform/on-offline-radio-card.cjs +1 -1
  18. package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
  19. package/dist/app/platform/on-offline-radio-card.js +71 -71
  20. package/dist/app/platform/report-card.js +31 -31
  21. package/dist/app/platform/reservation-card.cjs +1 -1
  22. package/dist/app/platform/reservation-card.cjs.map +1 -1
  23. package/dist/app/platform/reservation-card.js +72 -72
  24. package/dist/app/platform/session-card.cjs +1 -1
  25. package/dist/app/platform/session-card.cjs.map +1 -1
  26. package/dist/app/platform/session-card.js +74 -74
  27. package/dist/app/platform/session-review-simple-read.js +31 -31
  28. package/dist/app/platform/userInfos/coaching-customer-info/index.js +36 -36
  29. package/dist/app/platform/userInfos/coaching-customer-info/large.js +31 -31
  30. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +31 -31
  31. package/dist/app/platform/userInfos/coaching-customer-info/small.js +31 -31
  32. package/dist/app/platform/userInfos/session-user-info-detail.js +31 -31
  33. package/dist/app/platform/userInfos/utils.js +30 -30
  34. package/dist/atoms/bullet-text.js +2 -2
  35. package/dist/atoms/dialog.js +2 -2
  36. package/dist/atoms/field-error-wrapper.js +2 -2
  37. package/dist/atoms/index.js +62 -62
  38. package/dist/atoms/list.js +2 -2
  39. package/dist/atoms/pagination.js +3 -3
  40. package/dist/chunk-3RTIQ36S.js +222 -0
  41. package/dist/chunk-3RTIQ36S.js.map +1 -0
  42. package/dist/chunk-4CAKGS6P.js +196 -0
  43. package/dist/chunk-4CAKGS6P.js.map +1 -0
  44. package/dist/chunk-6IMCKSQD.js +69 -0
  45. package/dist/chunk-6IMCKSQD.js.map +1 -0
  46. package/dist/chunk-BN24NIPU.js +64 -0
  47. package/dist/chunk-BN24NIPU.js.map +1 -0
  48. package/dist/chunk-EEJ2JXHV.js +139 -0
  49. package/dist/chunk-EEJ2JXHV.js.map +1 -0
  50. package/dist/chunk-GAXILFF4.js +63 -0
  51. package/dist/chunk-GAXILFF4.js.map +1 -0
  52. package/dist/chunk-GWJU4LIN.js +222 -0
  53. package/dist/chunk-GWJU4LIN.js.map +1 -0
  54. package/dist/chunk-GZTKJMEK.js +218 -0
  55. package/dist/chunk-GZTKJMEK.js.map +1 -0
  56. package/dist/chunk-JMYWVT4X.js +98 -0
  57. package/dist/chunk-JMYWVT4X.js.map +1 -0
  58. package/dist/chunk-NCSMSA3X.js +50 -0
  59. package/dist/chunk-NCSMSA3X.js.map +1 -0
  60. package/dist/chunk-NJMRRUNJ.js +218 -0
  61. package/dist/chunk-NJMRRUNJ.js.map +1 -0
  62. package/dist/chunk-T4XIMI4Y.js +64 -0
  63. package/dist/chunk-T4XIMI4Y.js.map +1 -0
  64. package/dist/chunk-TXMVRPAL.js +139 -0
  65. package/dist/chunk-TXMVRPAL.js.map +1 -0
  66. package/dist/chunk-USNFN36O.js +89 -0
  67. package/dist/chunk-USNFN36O.js.map +1 -0
  68. package/dist/chunk-YIDE5VOF.js +196 -0
  69. package/dist/chunk-YIDE5VOF.js.map +1 -0
  70. package/dist/context/dynamic-form-context.cjs +3 -2
  71. package/dist/context/dynamic-form-context.cjs.map +1 -1
  72. package/dist/context/dynamic-form-context.d.cts +2 -1
  73. package/dist/context/dynamic-form-context.d.ts +2 -1
  74. package/dist/context/dynamic-form-context.js +1 -1
  75. package/dist/context/index.cjs +3 -2
  76. package/dist/context/index.cjs.map +1 -1
  77. package/dist/context/index.js +6 -6
  78. package/dist/index.cjs +7 -5
  79. package/dist/index.cjs.map +1 -1
  80. package/dist/index.js +145 -145
  81. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +18 -18
  82. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +4 -4
  83. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +11 -11
  84. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -2
  85. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +3 -3
  86. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
  87. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +6 -6
  88. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +5 -5
  89. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +5 -5
  90. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +5 -5
  91. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +4 -4
  92. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +21 -21
  93. package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +6 -6
  94. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +3 -3
  95. package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +23 -23
  96. package/dist/molecules/curriculumV2/CurriculumContents/index.js +27 -27
  97. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
  98. package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +4 -4
  99. package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +7 -7
  100. package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +5 -5
  101. package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -4
  102. package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
  103. package/dist/molecules/curriculumV2/index.js +34 -34
  104. package/dist/molecules/date-picker/date-picker-button.js +6 -6
  105. package/dist/molecules/date-picker/index.js +5 -5
  106. package/dist/molecules/download-card.js +2 -2
  107. package/dist/molecules/dynamic-field.cjs.map +1 -1
  108. package/dist/molecules/dynamic-field.js +5 -5
  109. package/dist/molecules/dynamic-form.cjs +6 -4
  110. package/dist/molecules/dynamic-form.cjs.map +1 -1
  111. package/dist/molecules/dynamic-form.d.cts +2 -1
  112. package/dist/molecules/dynamic-form.d.ts +2 -1
  113. package/dist/molecules/dynamic-form.js +6 -6
  114. package/dist/molecules/expand-table/index.cjs +1 -1
  115. package/dist/molecules/expand-table/index.cjs.map +1 -1
  116. package/dist/molecules/expand-table/index.js +5 -5
  117. package/dist/molecules/force-refresh.js +2 -2
  118. package/dist/molecules/ghost-post.js +4 -4
  119. package/dist/molecules/index.cjs +7 -5
  120. package/dist/molecules/index.cjs.map +1 -1
  121. package/dist/molecules/index.js +76 -76
  122. package/dist/molecules/learning-post.js +6 -6
  123. package/dist/molecules/navigation.js +3 -3
  124. package/dist/molecules/one-on-one-guide-list.js +3 -3
  125. package/dist/molecules/stepper.js +4 -4
  126. package/dist/molecules/tag-selector.js +5 -5
  127. package/package.json +3 -3
  128. package/src/context/dynamic-form-context.tsx +3 -1
  129. package/src/molecules/dynamic-form.tsx +3 -1
  130. package/src/molecules/expand-table/index.tsx +1 -1
@@ -1,8 +1,17 @@
1
1
  import "../chunk-HBF6IIVZ.js";
2
2
  import {
3
- Form,
4
- FormItem
5
- } from "../chunk-2OMSNCRH.js";
3
+ ToastContainer,
4
+ toast
5
+ } from "../chunk-EEKOTWBE.js";
6
+ import {
7
+ Skeleton
8
+ } from "../chunk-5H3YPCZK.js";
9
+ import {
10
+ Spinner
11
+ } from "../chunk-FR2GDOU2.js";
12
+ import {
13
+ Strong
14
+ } from "../chunk-74DX4CU7.js";
6
15
  import {
7
16
  Switch
8
17
  } from "../chunk-OYM4XCHQ.js";
@@ -19,9 +28,14 @@ import {
19
28
  TextField
20
29
  } from "../chunk-6NPTJBFE.js";
21
30
  import {
22
- ToastContainer,
23
- toast
24
- } from "../chunk-EEKOTWBE.js";
31
+ RadioCards
32
+ } from "../chunk-6IVCARWS.js";
33
+ import {
34
+ RadioGroup
35
+ } from "../chunk-6DJOIRMF.js";
36
+ import {
37
+ Radio
38
+ } from "../chunk-FPD73OHW.js";
25
39
  import {
26
40
  ScrollArea
27
41
  } from "../chunk-MUPK4L3U.js";
@@ -38,21 +52,21 @@ import {
38
52
  Separator
39
53
  } from "../chunk-HYITAA4J.js";
40
54
  import {
41
- Skeleton
42
- } from "../chunk-5H3YPCZK.js";
55
+ Inset
56
+ } from "../chunk-XQOL7UBI.js";
43
57
  import {
44
- Spinner
45
- } from "../chunk-FR2GDOU2.js";
58
+ Kbd
59
+ } from "../chunk-TULWX7D6.js";
46
60
  import {
47
- Strong
48
- } from "../chunk-74DX4CU7.js";
61
+ Link
62
+ } from "../chunk-DHZVOXFM.js";
49
63
  import {
50
64
  List,
51
65
  useList
52
- } from "../chunk-JIJLOKVN.js";
66
+ } from "../chunk-WV2HN6H4.js";
53
67
  import {
54
68
  Pagination
55
- } from "../chunk-FG3WT6OL.js";
69
+ } from "../chunk-SBJOKO35.js";
56
70
  import {
57
71
  Popover
58
72
  } from "../chunk-5AVBYDPB.js";
@@ -63,14 +77,11 @@ import {
63
77
  Quote
64
78
  } from "../chunk-YO3BQW6S.js";
65
79
  import {
66
- RadioCards
67
- } from "../chunk-6IVCARWS.js";
68
- import {
69
- RadioGroup
70
- } from "../chunk-6DJOIRMF.js";
80
+ Em
81
+ } from "../chunk-2DZ2Y3JI.js";
71
82
  import {
72
- Radio
73
- } from "../chunk-FPD73OHW.js";
83
+ FieldErrorWrapper
84
+ } from "../chunk-VRJR534I.js";
74
85
  import {
75
86
  Grid
76
87
  } from "../chunk-EGEQY3KT.js";
@@ -78,23 +89,20 @@ import {
78
89
  HoverCard
79
90
  } from "../chunk-O3T3TM3V.js";
80
91
  import {
81
- Inset
82
- } from "../chunk-XQOL7UBI.js";
92
+ Code
93
+ } from "../chunk-OHMOP5PV.js";
83
94
  import {
84
- Kbd
85
- } from "../chunk-TULWX7D6.js";
95
+ Collapse
96
+ } from "../chunk-NFDQJVFA.js";
86
97
  import {
87
- Link
88
- } from "../chunk-DHZVOXFM.js";
98
+ Container
99
+ } from "../chunk-Q37G2GS6.js";
89
100
  import {
90
101
  DataList
91
102
  } from "../chunk-VTJZMOSP.js";
92
103
  import {
93
104
  Dialog
94
- } from "../chunk-AH4A53SZ.js";
95
- import {
96
- Heading
97
- } from "../chunk-BESTU2AY.js";
105
+ } from "../chunk-JQ7VQ5SB.js";
98
106
  import {
99
107
  Content,
100
108
  Drawer,
@@ -116,13 +124,17 @@ import {
116
124
  import {
117
125
  Tooltip
118
126
  } from "../chunk-3NUQAVE6.js";
119
- import "../chunk-PT57HCAI.js";
120
127
  import {
121
- Em
122
- } from "../chunk-2DZ2Y3JI.js";
128
+ BulletText
129
+ } from "../chunk-QRI6ARS6.js";
123
130
  import {
124
- FieldErrorWrapper
125
- } from "../chunk-ZOPYFDLO.js";
131
+ Flex
132
+ } from "../chunk-25HMMI7R.js";
133
+ import {
134
+ Button
135
+ } from "../chunk-ZVDAEY5Q.js";
136
+ import "../chunk-LQY4RKWI.js";
137
+ import "../chunk-ZD7MNMED.js";
126
138
  import {
127
139
  Callout
128
140
  } from "../chunk-B6XJN6EC.js";
@@ -139,14 +151,11 @@ import {
139
151
  Checkbox
140
152
  } from "../chunk-VYCYVN3L.js";
141
153
  import {
142
- Code
143
- } from "../chunk-OHMOP5PV.js";
144
- import {
145
- Collapse
146
- } from "../chunk-NFDQJVFA.js";
154
+ AlertDialog
155
+ } from "../chunk-J242TTFH.js";
147
156
  import {
148
- Container
149
- } from "../chunk-Q37G2GS6.js";
157
+ AspectRatio
158
+ } from "../chunk-EAXUQEO5.js";
150
159
  import {
151
160
  AutoSizingInput
152
161
  } from "../chunk-6SYFG6YY.js";
@@ -162,21 +171,6 @@ import {
162
171
  import {
163
172
  Box
164
173
  } from "../chunk-4Y5BEXVN.js";
165
- import {
166
- BulletText
167
- } from "../chunk-Z34HR7RE.js";
168
- import {
169
- Typo
170
- } from "../chunk-PMJIFLDT.js";
171
- import "../chunk-LDBWASUA.js";
172
- import {
173
- Flex
174
- } from "../chunk-25HMMI7R.js";
175
- import {
176
- Button
177
- } from "../chunk-ZVDAEY5Q.js";
178
- import "../chunk-LQY4RKWI.js";
179
- import "../chunk-ZD7MNMED.js";
180
174
  import "../chunk-W5TPOFOO.js";
181
175
  import "../chunk-WJ34ZHTU.js";
182
176
  import "../chunk-ZQE7SP6P.js";
@@ -192,12 +186,18 @@ import "../chunk-YSYJCYHY.js";
192
186
  import "../chunk-5OM2H6RI.js";
193
187
  import "../chunk-ZUYCXCPW.js";
194
188
  import "../chunk-YVFNJE4E.js";
189
+ import "../chunk-PT57HCAI.js";
195
190
  import {
196
- AlertDialog
197
- } from "../chunk-J242TTFH.js";
191
+ Form,
192
+ FormItem
193
+ } from "../chunk-2OMSNCRH.js";
198
194
  import {
199
- AspectRatio
200
- } from "../chunk-EAXUQEO5.js";
195
+ Heading
196
+ } from "../chunk-BESTU2AY.js";
197
+ import {
198
+ Typo
199
+ } from "../chunk-PMJIFLDT.js";
200
+ import "../chunk-LDBWASUA.js";
201
201
  import "../chunk-CRTRMMJ7.js";
202
202
  export {
203
203
  AlertDialog,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  List,
3
3
  useList
4
- } from "../chunk-JIJLOKVN.js";
4
+ } from "../chunk-WV2HN6H4.js";
5
+ import "../chunk-25HMMI7R.js";
5
6
  import "../chunk-PMJIFLDT.js";
6
7
  import "../chunk-LDBWASUA.js";
7
- import "../chunk-25HMMI7R.js";
8
8
  import "../chunk-CRTRMMJ7.js";
9
9
  export {
10
10
  List,
@@ -1,10 +1,8 @@
1
1
  import {
2
2
  Pagination
3
- } from "../chunk-FG3WT6OL.js";
3
+ } from "../chunk-SBJOKO35.js";
4
4
  import "../chunk-XK6VEVOK.js";
5
5
  import "../chunk-HF6GNDPV.js";
6
- import "../chunk-PMJIFLDT.js";
7
- import "../chunk-LDBWASUA.js";
8
6
  import "../chunk-25HMMI7R.js";
9
7
  import "../chunk-W5TPOFOO.js";
10
8
  import "../chunk-WJ34ZHTU.js";
@@ -21,6 +19,8 @@ import "../chunk-YSYJCYHY.js";
21
19
  import "../chunk-5OM2H6RI.js";
22
20
  import "../chunk-ZUYCXCPW.js";
23
21
  import "../chunk-YVFNJE4E.js";
22
+ import "../chunk-PMJIFLDT.js";
23
+ import "../chunk-LDBWASUA.js";
24
24
  import "../chunk-CRTRMMJ7.js";
25
25
  export {
26
26
  Pagination
@@ -0,0 +1,222 @@
1
+ import {
2
+ Row
3
+ } from "./chunk-JCG2AUFJ.js";
4
+ import {
5
+ Spinner
6
+ } from "./chunk-FR2GDOU2.js";
7
+ import {
8
+ Pagination
9
+ } from "./chunk-SBJOKO35.js";
10
+ import {
11
+ Flex
12
+ } from "./chunk-25HMMI7R.js";
13
+ import {
14
+ TriangleArrowUpIcon
15
+ } from "./chunk-2O45FRFQ.js";
16
+ import {
17
+ TriangleArrowDownIcon
18
+ } from "./chunk-776WBOKL.js";
19
+ import {
20
+ Typo
21
+ } from "./chunk-PMJIFLDT.js";
22
+
23
+ // src/molecules/expand-table/index.tsx
24
+ import {
25
+ flexRender,
26
+ getCoreRowModel,
27
+ useReactTable,
28
+ getSortedRowModel,
29
+ createColumnHelper,
30
+ getPaginationRowModel
31
+ } from "@tanstack/react-table";
32
+ import { useCallback, useMemo, useState } from "react";
33
+ import { ScrollArea } from "@radix-ui/themes";
34
+ import { jsx, jsxs } from "react/jsx-runtime";
35
+ var sortButtonColorMapper = {
36
+ card: {
37
+ selected: "var(--iris-10)",
38
+ unselected: "var(--iris-6)"
39
+ },
40
+ sprite: {
41
+ // selected: 'var(--gray-a12)',
42
+ // unselected: 'var(--gray-a6)',
43
+ selected: "var(--iris-10)",
44
+ unselected: "var(--iris-6)"
45
+ },
46
+ "sprite-border": {
47
+ selected: "var(--iris-10)",
48
+ unselected: "var(--iris-6)"
49
+ }
50
+ };
51
+ function ExpandTable(props) {
52
+ const {
53
+ data,
54
+ columns,
55
+ ExpandComp,
56
+ placeholder,
57
+ onRowClick,
58
+ tableStyle,
59
+ showPagination = true,
60
+ isLoading,
61
+ pageIndex = 0,
62
+ pageSize = 10,
63
+ siblingCount = 2,
64
+ getRowStyle,
65
+ getCellStyle,
66
+ variant = "card"
67
+ } = props;
68
+ const defaultAlign = "left";
69
+ const [pagination, setPagination] = useState({
70
+ pageIndex: pageIndex || 0,
71
+ pageSize: pageSize || 9999
72
+ });
73
+ const [sorting, setSorting] = useState([]);
74
+ const { getRowModel, getHeaderGroups, setPageIndex } = useReactTable({
75
+ data: data || [],
76
+ columns,
77
+ getCoreRowModel: getCoreRowModel(),
78
+ getSortedRowModel: getSortedRowModel(),
79
+ state: {
80
+ sorting,
81
+ pagination
82
+ },
83
+ onSortingChange: setSorting,
84
+ getPaginationRowModel: getPaginationRowModel(),
85
+ onPaginationChange: setPagination
86
+ });
87
+ const gridTemplateColumns = useMemo(() => {
88
+ return columns.map((col) => {
89
+ var _a;
90
+ if ((_a = col.meta) == null ? void 0 : _a.autoSize) return `minmax(${col.size || 50}px, 1fr)`;
91
+ return `${col.size || 150}px`;
92
+ }).join(" ");
93
+ }, [columns]);
94
+ const rowModels = getRowModel();
95
+ const onChangePagination = useCallback(
96
+ (page) => {
97
+ setPageIndex(page - 1);
98
+ },
99
+ [setPageIndex]
100
+ );
101
+ const helpCompRender = useCallback(
102
+ (rowLength) => {
103
+ if (isLoading) {
104
+ return /* @__PURE__ */ jsx(
105
+ Flex,
106
+ {
107
+ align: "center",
108
+ height: "100%",
109
+ justify: "center",
110
+ p: "5",
111
+ width: "100%",
112
+ children: /* @__PURE__ */ jsx(Spinner, {})
113
+ }
114
+ );
115
+ }
116
+ if (rowLength === 0) {
117
+ return /* @__PURE__ */ jsx("div", { className: "tr", children: /* @__PURE__ */ jsx(Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ jsx(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
118
+ }
119
+ return null;
120
+ },
121
+ [isLoading, placeholder]
122
+ );
123
+ const pageCount = useMemo(() => {
124
+ if (!data) return 0;
125
+ return Math.ceil(data.length / pageSize);
126
+ }, [data, pageSize]);
127
+ return /* @__PURE__ */ jsxs("div", { className: `expand-table-wrapper ${variant}`, children: [
128
+ /* @__PURE__ */ jsxs("div", { className: "expand-table", style: tableStyle, children: [
129
+ /* @__PURE__ */ jsx("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx(
130
+ "div",
131
+ {
132
+ className: "tr",
133
+ style: { gridTemplateColumns },
134
+ children: headerGroup.headers.map((header) => {
135
+ var _a;
136
+ const sortable = header.column.getCanSort();
137
+ const sortedState = header.column.getIsSorted();
138
+ const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
139
+ if (sortable) {
140
+ return /* @__PURE__ */ jsx("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ jsxs(
141
+ "button",
142
+ {
143
+ onClick: header.column.getToggleSortingHandler(),
144
+ style: { cursor: "pointer" },
145
+ type: "button",
146
+ children: [
147
+ /* @__PURE__ */ jsx(Typo, { as: "div", variant: "body", children: flexRender(
148
+ header.column.columnDef.header,
149
+ header.getContext()
150
+ ) }),
151
+ /* @__PURE__ */ jsxs(
152
+ Flex,
153
+ {
154
+ direction: "column",
155
+ style: { marginLeft: "var(--space-2)" },
156
+ children: [
157
+ sortedState === false && /* @__PURE__ */ jsx(
158
+ TriangleArrowDownIcon,
159
+ {
160
+ color: sortButtonColorMapper[variant].unselected
161
+ }
162
+ ),
163
+ sortedState === "asc" && /* @__PURE__ */ jsx(
164
+ TriangleArrowUpIcon,
165
+ {
166
+ color: sortButtonColorMapper[variant].selected
167
+ }
168
+ ),
169
+ sortedState === "desc" && /* @__PURE__ */ jsx(
170
+ TriangleArrowDownIcon,
171
+ {
172
+ color: sortButtonColorMapper[variant].selected
173
+ }
174
+ )
175
+ ]
176
+ }
177
+ )
178
+ ]
179
+ }
180
+ ) }, header.id);
181
+ }
182
+ return /* @__PURE__ */ jsx("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ jsx(Typo, { as: "div", variant: "body", children: flexRender(
183
+ header.column.columnDef.header,
184
+ header.getContext()
185
+ ) }) }, header.id);
186
+ })
187
+ },
188
+ headerGroup.id
189
+ )) }),
190
+ /* @__PURE__ */ jsx(ScrollArea, { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
191
+ return /* @__PURE__ */ jsx(
192
+ Row,
193
+ {
194
+ ExpandComp,
195
+ defaultAlign,
196
+ getCellStyle,
197
+ getRowStyle,
198
+ gridTemplateColumns,
199
+ onRowClick,
200
+ row
201
+ },
202
+ `row_${row.id}`
203
+ );
204
+ }) })
205
+ ] }),
206
+ showPagination ? /* @__PURE__ */ jsx(Flex, { justify: "end", pt: "4", width: "100%", children: /* @__PURE__ */ jsx(
207
+ Pagination,
208
+ {
209
+ count: pageCount,
210
+ onChange: onChangePagination,
211
+ page: pagination.pageIndex + 1,
212
+ siblingCount
213
+ }
214
+ ) }) : null
215
+ ] });
216
+ }
217
+
218
+ export {
219
+ createColumnHelper,
220
+ ExpandTable
221
+ };
222
+ //# sourceMappingURL=chunk-3RTIQ36S.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/expand-table/index.tsx"],"sourcesContent":["import type {\n ColumnDef,\n SortingState,\n RowData,\n Row as RowType,\n PaginationState,\n} from '@tanstack/react-table';\nimport type { CSSProperties } from 'react';\nimport {\n flexRender,\n getCoreRowModel,\n useReactTable,\n getSortedRowModel,\n createColumnHelper,\n getPaginationRowModel,\n} from '@tanstack/react-table';\nimport React, { useCallback, useMemo, useState } from 'react';\nimport { ScrollArea } from '@radix-ui/themes';\nimport { Flex } from '@/atoms/flex';\nimport { Pagination } from '@/atoms/pagination';\nimport { Spinner } from '@/atoms/spinner';\nimport { Typo } from '@/atoms/typo';\nimport { TriangleArrowDownIcon } from '../../icons/down';\nimport { TriangleArrowUpIcon } from '../../icons/up';\nimport { Row, type ExpandComp, type OnRowClick } from './row';\n\nexport type { ExpandComp, OnRowClick, ColumnDef, RowType as Row };\nexport { createColumnHelper };\n\ntype Variant = 'card' | 'sprite' | 'sprite-border';\nconst sortButtonColorMapper: Record<\n Variant,\n { selected: string; unselected: string }\n> = {\n card: {\n selected: 'var(--iris-10)',\n unselected: 'var(--iris-6)',\n },\n sprite: {\n // selected: 'var(--gray-a12)',\n // unselected: 'var(--gray-a6)',\n selected: 'var(--iris-10)',\n unselected: 'var(--iris-6)',\n },\n 'sprite-border': {\n selected: 'var(--iris-10)',\n unselected: 'var(--iris-6)',\n },\n};\n\nexport interface ExpandTableProps<Datum extends RowData> {\n /** 렌더할 데이터 배열 */\n data?: Datum[];\n /** 테이블 컬럼의 메타 데이터 */\n columns: ColumnDef<Datum>[];\n /** Row의 open이 true인 경우 하단의 collapse에 렌더할 컴포넌트 */\n ExpandComp?: ExpandComp<Datum>;\n /** 데이테가 없을 시 화면에 표시할 컴포넌트 */\n placeholder?: React.ReactNode;\n /** 행 클릭 시 실행할 콜백 */\n onRowClick?: OnRowClick<Datum>;\n getRowStyle?: (data: Datum) => CSSProperties;\n getCellStyle?: (data: Datum) => CSSProperties;\n tableStyle?: CSSProperties;\n isLoading?: boolean;\n\n /** pagination - 표시 유무, 기본값 true */\n showPagination?: boolean;\n /** pagination - 현재 선택된 페이지, 0부터 시작 */\n pageIndex?: number;\n /** pagination - 한 페이지에 표시될 컬럼 개수, 기본값 10 */\n pageSize?: number;\n /** pagination - */\n siblingCount?: number;\n variant?: Variant;\n}\n\nexport function ExpandTable<Datum extends RowData>(\n props: ExpandTableProps<Datum>\n): React.ReactNode {\n const {\n data,\n columns,\n ExpandComp,\n placeholder,\n onRowClick,\n tableStyle,\n showPagination = true,\n isLoading,\n pageIndex = 0,\n pageSize = 10,\n siblingCount = 2,\n getRowStyle,\n getCellStyle,\n variant = 'card',\n } = props;\n const defaultAlign = 'left';\n const [pagination, setPagination] = useState<PaginationState>({\n pageIndex: pageIndex || 0,\n pageSize: pageSize || 9999,\n });\n\n const [sorting, setSorting] = useState<SortingState>([]);\n const { getRowModel, getHeaderGroups, setPageIndex } = useReactTable({\n data: data || [],\n columns,\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n state: {\n sorting,\n pagination,\n },\n onSortingChange: setSorting,\n getPaginationRowModel: getPaginationRowModel(),\n onPaginationChange: setPagination,\n });\n\n const gridTemplateColumns = useMemo<string>(() => {\n return columns\n .map((col) => {\n if (col.meta?.autoSize) return `minmax(${col.size || 50}px, 1fr)`;\n return `${col.size || 150}px`;\n })\n .join(' ');\n }, [columns]);\n\n const rowModels = getRowModel();\n\n const onChangePagination = useCallback(\n (page: number) => {\n setPageIndex(page - 1);\n },\n [setPageIndex]\n );\n\n const helpCompRender = useCallback(\n (rowLength: number) => {\n if (isLoading) {\n return (\n <Flex\n align=\"center\"\n height=\"100%\"\n justify=\"center\"\n p=\"5\"\n width=\"100%\"\n >\n <Spinner />\n </Flex>\n );\n }\n if (rowLength === 0) {\n return (\n <div className=\"tr\" key=\"expand_placeholder\">\n <Flex align=\"center\" justify=\"center\">\n {placeholder || (\n <Typo color=\"gray\" mb=\"6\" mt=\"6\" variant=\"body\">\n 데이터가 없습니다\n </Typo>\n )}\n </Flex>\n </div>\n );\n }\n return null;\n },\n [isLoading, placeholder]\n );\n\n const pageCount = useMemo(() => {\n if (!data) return 0;\n return Math.ceil(data.length / pageSize);\n }, [data, pageSize]);\n\n return (\n <div className={`expand-table-wrapper ${variant}`}>\n <div className=\"expand-table\" style={tableStyle}>\n <div className=\"thead\">\n {getHeaderGroups().map((headerGroup) => (\n <div\n className=\"tr\"\n key={headerGroup.id}\n style={{ gridTemplateColumns }}\n >\n {headerGroup.headers.map((header) => {\n const sortable = header.column.getCanSort();\n const sortedState = header.column.getIsSorted();\n const justifyContent =\n header.column.columnDef.meta?.align || defaultAlign;\n\n if (sortable) {\n return (\n <div className={`${justifyContent} th`} key={header.id}>\n <button\n onClick={header.column.getToggleSortingHandler()}\n style={{ cursor: 'pointer' }}\n type=\"button\"\n >\n <Typo as=\"div\" variant=\"body\">\n {flexRender(\n header.column.columnDef.header,\n header.getContext()\n )}\n </Typo>\n <Flex\n direction=\"column\"\n style={{ marginLeft: 'var(--space-2)' }}\n >\n {sortedState === false && (\n <TriangleArrowDownIcon\n color={sortButtonColorMapper[variant].unselected}\n />\n )}\n {sortedState === 'asc' && (\n <TriangleArrowUpIcon\n color={sortButtonColorMapper[variant].selected}\n />\n )}\n {sortedState === 'desc' && (\n <TriangleArrowDownIcon\n color={sortButtonColorMapper[variant].selected}\n />\n )}\n </Flex>\n </button>\n </div>\n );\n }\n\n return (\n <div className={`${justifyContent} th`} key={header.id}>\n <Typo as=\"div\" variant=\"body\">\n {flexRender(\n header.column.columnDef.header,\n header.getContext()\n )}\n </Typo>\n </div>\n );\n })}\n </div>\n ))}\n </div>\n <ScrollArea className=\"tbody\">\n {/* 조건에 따라 placeholder 또는 loading 렌더*/}\n {helpCompRender(rowModels.rows.length) ||\n rowModels.rows.map((row) => {\n return (\n <Row\n ExpandComp={ExpandComp}\n defaultAlign={defaultAlign}\n getCellStyle={getCellStyle}\n getRowStyle={getRowStyle}\n gridTemplateColumns={gridTemplateColumns}\n key={`row_${row.id}`}\n onRowClick={onRowClick}\n row={row}\n />\n );\n })}\n </ScrollArea>\n </div>\n {showPagination ? (\n <Flex justify=\"end\" pt=\"4\" width=\"100%\">\n <Pagination\n count={pageCount}\n onChange={onChangePagination}\n page={pagination.pageIndex + 1}\n siblingCount={siblingCount}\n />\n </Flex>\n ) : null}\n </div>\n );\n}\n"],"mappings":"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","names":[]}
@@ -0,0 +1,196 @@
1
+ import {
2
+ CurriculumReviewSteps_default
3
+ } from "./chunk-USNFN36O.js";
4
+ import {
5
+ useCurriculumContext
6
+ } from "./chunk-ZFWZAZPG.js";
7
+ import {
8
+ Dialog
9
+ } from "./chunk-AH4A53SZ.js";
10
+ import {
11
+ IconButton
12
+ } from "./chunk-XK6VEVOK.js";
13
+ import {
14
+ Box
15
+ } from "./chunk-4Y5BEXVN.js";
16
+ import {
17
+ Typo
18
+ } from "./chunk-PMJIFLDT.js";
19
+ import {
20
+ Flex
21
+ } from "./chunk-25HMMI7R.js";
22
+ import {
23
+ Button
24
+ } from "./chunk-ZVDAEY5Q.js";
25
+ import {
26
+ __spreadValues
27
+ } from "./chunk-CRTRMMJ7.js";
28
+
29
+ // src/molecules/curriculumV2/CurriculumContents/curriculum-review.tsx
30
+ import { useCallback, useMemo, useState } from "react";
31
+ import { Cross1Icon } from "@radix-ui/react-icons";
32
+ import { jsx, jsxs } from "react/jsx-runtime";
33
+ function CurriculumReview(props) {
34
+ const { item, sectionTitle } = props;
35
+ const { description, buttonTitle } = item;
36
+ const {
37
+ curriculum,
38
+ onReviewSubmit: _onReviewSubmit,
39
+ onReviewValueChange: _onReviewValueChange,
40
+ curriculumReviewAnswers,
41
+ tempCurriculumReviewAnswers,
42
+ curriculumCompleteMap
43
+ } = useCurriculumContext();
44
+ const [open, setOpen] = useState(false);
45
+ const [isChanged, setIsChanged] = useState(false);
46
+ const [closeDialogOpen, setCloseDialogOpen] = useState(false);
47
+ const onReviewValueChange = useCallback(
48
+ ({
49
+ reviewId,
50
+ answer
51
+ }) => {
52
+ if (curriculumReviewAnswers[reviewId] === answer[reviewId]) {
53
+ return;
54
+ }
55
+ setIsChanged(true);
56
+ _onReviewValueChange({ reviewId, answer });
57
+ },
58
+ [_onReviewValueChange, curriculumReviewAnswers]
59
+ );
60
+ const onReviewSubmit = useCallback(
61
+ (values) => {
62
+ return _onReviewSubmit({ reviewId: item.uuid, answer: values }).then(
63
+ (result) => {
64
+ setIsChanged(false);
65
+ return result;
66
+ }
67
+ );
68
+ },
69
+ [item.uuid, _onReviewSubmit]
70
+ );
71
+ const onClickEndReview = useCallback(() => {
72
+ setOpen(false);
73
+ }, []);
74
+ const onClickCloseDrawer = useCallback(() => {
75
+ if (isChanged) {
76
+ setCloseDialogOpen(true);
77
+ } else {
78
+ setOpen(false);
79
+ }
80
+ }, [isChanged]);
81
+ const mode = useMemo(() => {
82
+ return item.questions.every(
83
+ (question) => curriculumReviewAnswers[question.uuid] && curriculumReviewAnswers[question.uuid] !== ""
84
+ ) ? "edit" : "create";
85
+ }, [curriculumReviewAnswers, item.questions]);
86
+ const defaultValues = useMemo(() => {
87
+ const allAnswers = __spreadValues(__spreadValues({}, tempCurriculumReviewAnswers), curriculumReviewAnswers);
88
+ return item.questions.reduce((acc, question) => {
89
+ acc[question.uuid] = allAnswers[question.uuid] || "";
90
+ return acc;
91
+ }, {});
92
+ }, [curriculumReviewAnswers, item.questions, tempCurriculumReviewAnswers]);
93
+ const done = useMemo(() => {
94
+ return Boolean(curriculumCompleteMap[item.uuid]);
95
+ }, [curriculumCompleteMap, item.uuid]);
96
+ const bgColor = done ? "var(--color-panel-solid)" : void 0;
97
+ return /* @__PURE__ */ jsxs(Dialog.Root, { onOpenChange: setOpen, open, children: [
98
+ /* @__PURE__ */ jsxs(
99
+ Flex,
100
+ {
101
+ align: "center",
102
+ direction: "column",
103
+ height: "100%",
104
+ justify: "center",
105
+ px: "3",
106
+ py: "3",
107
+ style: {
108
+ backgroundImage: `url(https://tipp-coaching-live.s3.ap-northeast-2.amazonaws.com/images/curriculum_review_bg.png)`,
109
+ backgroundPosition: "center",
110
+ backgroundSize: "cover",
111
+ backgroundRepeat: "no-repeat"
112
+ },
113
+ width: "100%",
114
+ children: [
115
+ /* @__PURE__ */ jsx(Typo, { color: "gray", weight: "bold", children: curriculum.title }),
116
+ /* @__PURE__ */ jsx(Typo, { align: "center", as: "p", color: "gray", children: description }),
117
+ /* @__PURE__ */ jsx(Dialog.Trigger, { children: /* @__PURE__ */ jsx(
118
+ Button,
119
+ {
120
+ mt: "3",
121
+ style: { minWidth: 232, backgroundColor: bgColor },
122
+ variant: done ? "outline" : "solid",
123
+ children: /* @__PURE__ */ jsx(Typo, { truncate: true, children: done ? "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC\uBCF4\uAE30" : buttonTitle })
124
+ }
125
+ ) })
126
+ ]
127
+ }
128
+ ),
129
+ /* @__PURE__ */ jsx(
130
+ Dialog.Content,
131
+ {
132
+ height: "100%",
133
+ hideCloseButton: true,
134
+ style: { borderRadius: 0, padding: 0 },
135
+ title: "",
136
+ width: "100%",
137
+ children: /* @__PURE__ */ jsxs(
138
+ Flex,
139
+ {
140
+ align: "center",
141
+ height: "100%",
142
+ justify: "center",
143
+ pb: "3",
144
+ position: "relative",
145
+ width: "100%",
146
+ children: [
147
+ /* @__PURE__ */ jsx(
148
+ CurriculumReviewSteps_default,
149
+ {
150
+ contents: item,
151
+ curriculum,
152
+ defaultValues,
153
+ done,
154
+ mode,
155
+ onClickEndReview,
156
+ onReviewValueChange,
157
+ onSubmit: onReviewSubmit,
158
+ title: sectionTitle
159
+ }
160
+ ),
161
+ /* @__PURE__ */ jsx(Box, { position: "absolute", right: "16px", top: "16px", children: /* @__PURE__ */ jsxs(
162
+ IconButton,
163
+ {
164
+ color: "gray",
165
+ onClick: onClickCloseDrawer,
166
+ variant: "ghost",
167
+ children: [
168
+ /* @__PURE__ */ jsx(Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ jsx(Cross1Icon, { height: 20, width: 20 }) }),
169
+ /* @__PURE__ */ jsx(Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ jsx(Cross1Icon, { height: 16, width: 16 }) })
170
+ ]
171
+ }
172
+ ) }),
173
+ /* @__PURE__ */ jsx(Dialog.Root, { onOpenChange: setCloseDialogOpen, open: closeDialogOpen, children: /* @__PURE__ */ jsx(
174
+ Dialog.Content,
175
+ {
176
+ buttons: /* @__PURE__ */ jsxs(Flex, { gap: "3", justify: "end", children: [
177
+ /* @__PURE__ */ jsx(Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { color: "gray", variant: "outline", children: "\uB3CC\uC544\uAC00\uAE30" }) }),
178
+ /* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { color: "red", onClick: onClickEndReview, children: "\uB098\uAC00\uAE30" }) })
179
+ ] }),
180
+ title: "\uC791\uC131\uC744 \uC911\uB2E8\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",
181
+ children: /* @__PURE__ */ jsx(Typo, { children: "\uD398\uC774\uC9C0\uC5D0\uC11C \uBC97\uC5B4\uB098\uBA74 \uC791\uC131\uD55C \uB0B4\uC6A9\uC774 \uC800\uC7A5\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4." })
182
+ }
183
+ ) })
184
+ ]
185
+ }
186
+ )
187
+ }
188
+ )
189
+ ] });
190
+ }
191
+ var curriculum_review_default = CurriculumReview;
192
+
193
+ export {
194
+ curriculum_review_default
195
+ };
196
+ //# sourceMappingURL=chunk-4CAKGS6P.js.map