@tipp/ui 1.6.25 → 1.6.27
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 +2 -2
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +47 -47
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +30 -30
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +30 -30
- package/dist/app/platform/curriculum-card.js +5 -5
- package/dist/app/platform/edit-coaching-time.cjs +2 -2
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +34 -34
- package/dist/app/platform/edit-service-type.cjs +2 -2
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +34 -34
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +34 -34
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +30 -30
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +33 -33
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +30 -30
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +34 -34
- package/dist/app/platform/session-card.cjs +2 -2
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +36 -36
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +30 -30
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +32 -32
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +30 -30
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +30 -30
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +29 -29
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +29 -29
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +29 -29
- package/dist/atoms/dialog.cjs +2 -2
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +1 -1
- package/dist/atoms/index.cjs +2 -2
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +65 -65
- package/dist/atoms/pagination.js +3 -3
- package/dist/charts/index.js +3 -3
- package/dist/chunk-2YJ3EG6A.js +164 -0
- package/dist/chunk-2YJ3EG6A.js.map +1 -0
- package/dist/chunk-3IOLG7AJ.js +145 -0
- package/dist/chunk-3IOLG7AJ.js.map +1 -0
- package/dist/chunk-4DTD3FXF.js +47 -0
- package/dist/chunk-4DTD3FXF.js.map +1 -0
- package/dist/chunk-4Z5NYYOE.js +145 -0
- package/dist/chunk-4Z5NYYOE.js.map +1 -0
- package/dist/chunk-4ZLXDFP3.js +145 -0
- package/dist/chunk-4ZLXDFP3.js.map +1 -0
- package/dist/chunk-5VDTWYNQ.js +357 -0
- package/dist/chunk-5VDTWYNQ.js.map +1 -0
- package/dist/chunk-7KMPLHBV.js +357 -0
- package/dist/chunk-7KMPLHBV.js.map +1 -0
- package/dist/chunk-7QGUMO7V.js +54 -0
- package/dist/chunk-7QGUMO7V.js.map +1 -0
- package/dist/chunk-AFQMLTCH.js +54 -0
- package/dist/chunk-AFQMLTCH.js.map +1 -0
- package/dist/chunk-AQG6J4WX.js +357 -0
- package/dist/chunk-AQG6J4WX.js.map +1 -0
- package/dist/chunk-AW7YHNJD.js +174 -0
- package/dist/chunk-AW7YHNJD.js.map +1 -0
- package/dist/chunk-CIO2WR2Q.js +145 -0
- package/dist/chunk-CIO2WR2Q.js.map +1 -0
- package/dist/chunk-ED3ABG7K.js +54 -0
- package/dist/chunk-ED3ABG7K.js.map +1 -0
- package/dist/chunk-ERDNB5SX.js +30 -0
- package/dist/chunk-ERDNB5SX.js.map +1 -0
- package/dist/chunk-EREBMLDQ.js +58 -0
- package/dist/chunk-EREBMLDQ.js.map +1 -0
- package/dist/chunk-HN2C35F6.js +70 -0
- package/dist/chunk-HN2C35F6.js.map +1 -0
- package/dist/chunk-J5RZURAR.js +106 -0
- package/dist/chunk-J5RZURAR.js.map +1 -0
- package/dist/chunk-JRPA2S7O.js +54 -0
- package/dist/chunk-JRPA2S7O.js.map +1 -0
- package/dist/chunk-KT4BIOJJ.js +54 -0
- package/dist/chunk-KT4BIOJJ.js.map +1 -0
- package/dist/chunk-KWVNYSQW.js +10 -0
- package/dist/chunk-KWVNYSQW.js.map +1 -0
- package/dist/chunk-L75KKLZS.js +106 -0
- package/dist/chunk-L75KKLZS.js.map +1 -0
- package/dist/chunk-OT4OMHJV.js +58 -0
- package/dist/chunk-OT4OMHJV.js.map +1 -0
- package/dist/chunk-OYYJEZVP.js +84 -0
- package/dist/chunk-OYYJEZVP.js.map +1 -0
- package/dist/chunk-P442X52N.js +284 -0
- package/dist/chunk-P442X52N.js.map +1 -0
- package/dist/chunk-RYORYWPY.js +164 -0
- package/dist/chunk-RYORYWPY.js.map +1 -0
- package/dist/chunk-TBEOWECF.js +47 -0
- package/dist/chunk-TBEOWECF.js.map +1 -0
- package/dist/chunk-UAUXUQWQ.js +174 -0
- package/dist/chunk-UAUXUQWQ.js.map +1 -0
- package/dist/chunk-VJ7EA7ZF.js +54 -0
- package/dist/chunk-VJ7EA7ZF.js.map +1 -0
- package/dist/chunk-WKQZJK7O.js +357 -0
- package/dist/chunk-WKQZJK7O.js.map +1 -0
- package/dist/chunk-X5L3SBB7.js +174 -0
- package/dist/chunk-X5L3SBB7.js.map +1 -0
- package/dist/icon.js +9 -9
- package/dist/icons/index.js +9 -9
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +97 -97
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +29 -29
- package/dist/molecules/date-picker/index.js +3 -3
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +30 -30
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +29 -29
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +33 -33
- package/dist/molecules/learning-post.js +2 -2
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +29 -29
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +29 -29
- package/dist/molecules/stepper.js +5 -5
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +30 -30
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +29 -29
- package/package.json +5 -3
- package/src/atoms/dialog.tsx +2 -2
package/dist/atoms/index.js
CHANGED
|
@@ -3,15 +3,6 @@ import {
|
|
|
3
3
|
Form,
|
|
4
4
|
FormItem
|
|
5
5
|
} from "../chunk-4JBL5FRI.js";
|
|
6
|
-
import {
|
|
7
|
-
TabNav
|
|
8
|
-
} from "../chunk-YJ7ZFOYL.js";
|
|
9
|
-
import {
|
|
10
|
-
Tabs
|
|
11
|
-
} from "../chunk-5ZITU5L7.js";
|
|
12
|
-
import {
|
|
13
|
-
TextArea
|
|
14
|
-
} from "../chunk-EW6OPYEW.js";
|
|
15
6
|
import {
|
|
16
7
|
TextField
|
|
17
8
|
} from "../chunk-VOQU7ZOV.js";
|
|
@@ -19,15 +10,6 @@ import {
|
|
|
19
10
|
ToastContainer,
|
|
20
11
|
toast
|
|
21
12
|
} from "../chunk-CYYWMYE7.js";
|
|
22
|
-
import {
|
|
23
|
-
Section
|
|
24
|
-
} from "../chunk-MUNMDHRF.js";
|
|
25
|
-
import {
|
|
26
|
-
SegmentedControl
|
|
27
|
-
} from "../chunk-TVDKGMBI.js";
|
|
28
|
-
import {
|
|
29
|
-
Select
|
|
30
|
-
} from "../chunk-ZZYFULUQ.js";
|
|
31
13
|
import {
|
|
32
14
|
Skeleton
|
|
33
15
|
} from "../chunk-5H3YPCZK.js";
|
|
@@ -41,14 +23,14 @@ import {
|
|
|
41
23
|
Switch
|
|
42
24
|
} from "../chunk-OYM4XCHQ.js";
|
|
43
25
|
import {
|
|
44
|
-
|
|
45
|
-
} from "../chunk-
|
|
26
|
+
TabNav
|
|
27
|
+
} from "../chunk-YJ7ZFOYL.js";
|
|
46
28
|
import {
|
|
47
|
-
|
|
48
|
-
} from "../chunk-
|
|
29
|
+
Tabs
|
|
30
|
+
} from "../chunk-5ZITU5L7.js";
|
|
49
31
|
import {
|
|
50
|
-
|
|
51
|
-
} from "../chunk-
|
|
32
|
+
TextArea
|
|
33
|
+
} from "../chunk-EW6OPYEW.js";
|
|
52
34
|
import {
|
|
53
35
|
Quote
|
|
54
36
|
} from "../chunk-YO3BQW6S.js";
|
|
@@ -65,11 +47,14 @@ import {
|
|
|
65
47
|
ScrollArea
|
|
66
48
|
} from "../chunk-MUPK4L3U.js";
|
|
67
49
|
import {
|
|
68
|
-
|
|
69
|
-
} from "../chunk-
|
|
50
|
+
Section
|
|
51
|
+
} from "../chunk-MUNMDHRF.js";
|
|
70
52
|
import {
|
|
71
|
-
|
|
72
|
-
} from "../chunk-
|
|
53
|
+
SegmentedControl
|
|
54
|
+
} from "../chunk-TVDKGMBI.js";
|
|
55
|
+
import {
|
|
56
|
+
Select
|
|
57
|
+
} from "../chunk-ZZYFULUQ.js";
|
|
73
58
|
import {
|
|
74
59
|
Inset
|
|
75
60
|
} from "../chunk-XQOL7UBI.js";
|
|
@@ -80,29 +65,14 @@ import {
|
|
|
80
65
|
Link
|
|
81
66
|
} from "../chunk-SIM6HKVI.js";
|
|
82
67
|
import {
|
|
83
|
-
|
|
84
|
-
} from "../chunk-
|
|
85
|
-
import {
|
|
86
|
-
Dialog
|
|
87
|
-
} from "../chunk-3X6SIK3W.js";
|
|
88
|
-
import {
|
|
89
|
-
Heading
|
|
90
|
-
} from "../chunk-HJB3AASV.js";
|
|
91
|
-
import "../chunk-LDBWASUA.js";
|
|
92
|
-
import {
|
|
93
|
-
Content,
|
|
94
|
-
Drawer,
|
|
95
|
-
Root,
|
|
96
|
-
Trigger
|
|
97
|
-
} from "../chunk-57F5B7FE.js";
|
|
98
|
-
import "../chunk-UNTA4JJU.js";
|
|
68
|
+
Pagination
|
|
69
|
+
} from "../chunk-DONK6DLV.js";
|
|
99
70
|
import {
|
|
100
|
-
|
|
101
|
-
} from "../chunk-
|
|
102
|
-
import "../chunk-TD45ZF7D.js";
|
|
71
|
+
Popover
|
|
72
|
+
} from "../chunk-5AVBYDPB.js";
|
|
103
73
|
import {
|
|
104
|
-
|
|
105
|
-
} from "../chunk-
|
|
74
|
+
Progress
|
|
75
|
+
} from "../chunk-365QMK4D.js";
|
|
106
76
|
import {
|
|
107
77
|
DropdownMenu
|
|
108
78
|
} from "../chunk-4WFMOFN2.js";
|
|
@@ -119,14 +89,11 @@ import {
|
|
|
119
89
|
FieldErrorWrapper
|
|
120
90
|
} from "../chunk-QDZS4B6A.js";
|
|
121
91
|
import {
|
|
122
|
-
|
|
123
|
-
} from "../chunk-
|
|
124
|
-
import {
|
|
125
|
-
Card
|
|
126
|
-
} from "../chunk-2ZQK7NTN.js";
|
|
92
|
+
Grid
|
|
93
|
+
} from "../chunk-EGEQY3KT.js";
|
|
127
94
|
import {
|
|
128
|
-
|
|
129
|
-
} from "../chunk-
|
|
95
|
+
HoverCard
|
|
96
|
+
} from "../chunk-O3T3TM3V.js";
|
|
130
97
|
import {
|
|
131
98
|
CheckboxGroup
|
|
132
99
|
} from "../chunk-JBD6YTS2.js";
|
|
@@ -143,14 +110,29 @@ import {
|
|
|
143
110
|
Container
|
|
144
111
|
} from "../chunk-Q37G2GS6.js";
|
|
145
112
|
import {
|
|
146
|
-
|
|
147
|
-
} from "../chunk-
|
|
113
|
+
DataList
|
|
114
|
+
} from "../chunk-VTJZMOSP.js";
|
|
148
115
|
import {
|
|
149
|
-
|
|
150
|
-
} from "../chunk-
|
|
116
|
+
Dialog
|
|
117
|
+
} from "../chunk-L75KKLZS.js";
|
|
151
118
|
import {
|
|
152
|
-
|
|
153
|
-
} from "../chunk-
|
|
119
|
+
Heading
|
|
120
|
+
} from "../chunk-HJB3AASV.js";
|
|
121
|
+
import "../chunk-LDBWASUA.js";
|
|
122
|
+
import {
|
|
123
|
+
Content,
|
|
124
|
+
Drawer,
|
|
125
|
+
Root,
|
|
126
|
+
Trigger
|
|
127
|
+
} from "../chunk-57F5B7FE.js";
|
|
128
|
+
import "../chunk-UNTA4JJU.js";
|
|
129
|
+
import {
|
|
130
|
+
Separator
|
|
131
|
+
} from "../chunk-HYITAA4J.js";
|
|
132
|
+
import "../chunk-TD45ZF7D.js";
|
|
133
|
+
import {
|
|
134
|
+
IconButton
|
|
135
|
+
} from "../chunk-O3DNDMV3.js";
|
|
154
136
|
import {
|
|
155
137
|
Blockquote
|
|
156
138
|
} from "../chunk-YGL6SWKN.js";
|
|
@@ -171,21 +153,39 @@ import {
|
|
|
171
153
|
} from "../chunk-Q5AFRGVP.js";
|
|
172
154
|
import "../chunk-LQY4RKWI.js";
|
|
173
155
|
import "../chunk-ZD7MNMED.js";
|
|
156
|
+
import {
|
|
157
|
+
Callout
|
|
158
|
+
} from "../chunk-B6XJN6EC.js";
|
|
159
|
+
import {
|
|
160
|
+
Card
|
|
161
|
+
} from "../chunk-2ZQK7NTN.js";
|
|
162
|
+
import {
|
|
163
|
+
CheckboxCards
|
|
164
|
+
} from "../chunk-MIMJ7LON.js";
|
|
174
165
|
import "../chunk-HLFG5ZTU.js";
|
|
175
166
|
import "../chunk-7WVKYXIG.js";
|
|
176
|
-
import "../chunk-NDUKDKGB.js";
|
|
177
|
-
import "../chunk-T6CF4F7J.js";
|
|
178
|
-
import "../chunk-A75U32HT.js";
|
|
179
167
|
import "../chunk-BSTJBBEX.js";
|
|
180
168
|
import "../chunk-3WSZRTAF.js";
|
|
181
169
|
import "../chunk-UZMOWHC3.js";
|
|
182
170
|
import "../chunk-UFYNSPJQ.js";
|
|
171
|
+
import "../chunk-NDUKDKGB.js";
|
|
172
|
+
import "../chunk-T6CF4F7J.js";
|
|
173
|
+
import "../chunk-A75U32HT.js";
|
|
183
174
|
import {
|
|
184
175
|
AlertDialog
|
|
185
176
|
} from "../chunk-J242TTFH.js";
|
|
186
177
|
import {
|
|
187
178
|
AspectRatio
|
|
188
179
|
} from "../chunk-EAXUQEO5.js";
|
|
180
|
+
import {
|
|
181
|
+
AutoSizingInput
|
|
182
|
+
} from "../chunk-YJCCE5WP.js";
|
|
183
|
+
import {
|
|
184
|
+
Avatar
|
|
185
|
+
} from "../chunk-JYJA2PMG.js";
|
|
186
|
+
import {
|
|
187
|
+
Badge
|
|
188
|
+
} from "../chunk-EWD4AO5N.js";
|
|
189
189
|
import "../chunk-N552FDTV.js";
|
|
190
190
|
export {
|
|
191
191
|
AlertDialog,
|
package/dist/atoms/pagination.js
CHANGED
|
@@ -6,13 +6,13 @@ import "../chunk-52MVZ6AN.js";
|
|
|
6
6
|
import "../chunk-25HMMI7R.js";
|
|
7
7
|
import "../chunk-HLFG5ZTU.js";
|
|
8
8
|
import "../chunk-7WVKYXIG.js";
|
|
9
|
-
import "../chunk-NDUKDKGB.js";
|
|
10
|
-
import "../chunk-T6CF4F7J.js";
|
|
11
|
-
import "../chunk-A75U32HT.js";
|
|
12
9
|
import "../chunk-BSTJBBEX.js";
|
|
13
10
|
import "../chunk-3WSZRTAF.js";
|
|
14
11
|
import "../chunk-UZMOWHC3.js";
|
|
15
12
|
import "../chunk-UFYNSPJQ.js";
|
|
13
|
+
import "../chunk-NDUKDKGB.js";
|
|
14
|
+
import "../chunk-T6CF4F7J.js";
|
|
15
|
+
import "../chunk-A75U32HT.js";
|
|
16
16
|
import "../chunk-N552FDTV.js";
|
|
17
17
|
export {
|
|
18
18
|
Pagination
|
package/dist/charts/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-PSINRHYW.js";
|
|
2
|
-
import {
|
|
3
|
-
EchartDefaultProps
|
|
4
|
-
} from "../chunk-2QFSCWES.js";
|
|
5
2
|
import {
|
|
6
3
|
HorizontalBarChart
|
|
7
4
|
} from "../chunk-SGMO4KBC.js";
|
|
5
|
+
import {
|
|
6
|
+
EchartDefaultProps
|
|
7
|
+
} from "../chunk-2QFSCWES.js";
|
|
8
8
|
import "../chunk-N552FDTV.js";
|
|
9
9
|
export {
|
|
10
10
|
EchartDefaultProps,
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ThemeProvider
|
|
3
|
+
} from "./chunk-FX7FMZ2U.js";
|
|
4
|
+
import {
|
|
5
|
+
Grid
|
|
6
|
+
} from "./chunk-EGEQY3KT.js";
|
|
7
|
+
import {
|
|
8
|
+
Heading
|
|
9
|
+
} from "./chunk-HJB3AASV.js";
|
|
10
|
+
import {
|
|
11
|
+
Box
|
|
12
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
13
|
+
import {
|
|
14
|
+
Typo
|
|
15
|
+
} from "./chunk-52MVZ6AN.js";
|
|
16
|
+
import {
|
|
17
|
+
Flex
|
|
18
|
+
} from "./chunk-25HMMI7R.js";
|
|
19
|
+
import {
|
|
20
|
+
Button
|
|
21
|
+
} from "./chunk-Q5AFRGVP.js";
|
|
22
|
+
import {
|
|
23
|
+
AspectRatio
|
|
24
|
+
} from "./chunk-EAXUQEO5.js";
|
|
25
|
+
import {
|
|
26
|
+
Badge
|
|
27
|
+
} from "./chunk-EWD4AO5N.js";
|
|
28
|
+
import {
|
|
29
|
+
__spreadProps,
|
|
30
|
+
__spreadValues
|
|
31
|
+
} from "./chunk-N552FDTV.js";
|
|
32
|
+
|
|
33
|
+
// src/molecules/learning-post.tsx
|
|
34
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
35
|
+
function LearningPost(props) {
|
|
36
|
+
const {
|
|
37
|
+
defaultThemeProps,
|
|
38
|
+
html,
|
|
39
|
+
tags,
|
|
40
|
+
title,
|
|
41
|
+
metaDescription,
|
|
42
|
+
imageComp,
|
|
43
|
+
onPageBack,
|
|
44
|
+
children
|
|
45
|
+
} = props;
|
|
46
|
+
return /* @__PURE__ */ jsx(
|
|
47
|
+
ThemeProvider,
|
|
48
|
+
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
49
|
+
accentColor: "iris",
|
|
50
|
+
scaling: "110%",
|
|
51
|
+
style: {},
|
|
52
|
+
children: html ? /* @__PURE__ */ jsxs(
|
|
53
|
+
Grid,
|
|
54
|
+
{
|
|
55
|
+
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
56
|
+
gap: { initial: "2", md: "5" },
|
|
57
|
+
height: "100%",
|
|
58
|
+
justify: "center",
|
|
59
|
+
pb: "160px",
|
|
60
|
+
position: "relative",
|
|
61
|
+
px: "4",
|
|
62
|
+
width: "100%",
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ jsx("div", {}),
|
|
65
|
+
/* @__PURE__ */ jsxs(
|
|
66
|
+
Flex,
|
|
67
|
+
{
|
|
68
|
+
align: "center",
|
|
69
|
+
direction: "column",
|
|
70
|
+
maxWidth: "880px",
|
|
71
|
+
mt: { initial: "3", md: "8" },
|
|
72
|
+
overflow: "hidden",
|
|
73
|
+
width: "100%",
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ jsxs(Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
76
|
+
/* @__PURE__ */ jsxs(
|
|
77
|
+
Grid,
|
|
78
|
+
{
|
|
79
|
+
gap: "3",
|
|
80
|
+
mb: { initial: "4", sm: "0" },
|
|
81
|
+
style: { alignSelf: "flex-start" },
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ jsx(
|
|
84
|
+
Heading,
|
|
85
|
+
{
|
|
86
|
+
style: {
|
|
87
|
+
fontSize: "2.4rem",
|
|
88
|
+
lineHeight: 1.25,
|
|
89
|
+
wordBreak: "keep-all"
|
|
90
|
+
},
|
|
91
|
+
variant: "heading1",
|
|
92
|
+
children: title
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ jsx(Typo, { children: metaDescription }),
|
|
96
|
+
/* @__PURE__ */ jsx(Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
97
|
+
var _a;
|
|
98
|
+
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter"))
|
|
99
|
+
return;
|
|
100
|
+
return /* @__PURE__ */ jsx(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
101
|
+
}) })
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ jsx(
|
|
106
|
+
AspectRatio,
|
|
107
|
+
{
|
|
108
|
+
ratio: 5 / 3,
|
|
109
|
+
style: {
|
|
110
|
+
overflow: "hidden",
|
|
111
|
+
borderRadius: "var(--radius-4)",
|
|
112
|
+
objectFit: "cover"
|
|
113
|
+
},
|
|
114
|
+
children: imageComp
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
] }),
|
|
118
|
+
/* @__PURE__ */ jsx(Box, { mt: "5", width: "100%", children: /* @__PURE__ */ jsx(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
className: "gh-content",
|
|
122
|
+
dangerouslySetInnerHTML: { __html: html }
|
|
123
|
+
}
|
|
124
|
+
) })
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
children
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
) : /* @__PURE__ */ jsxs(
|
|
132
|
+
Flex,
|
|
133
|
+
{
|
|
134
|
+
align: "center",
|
|
135
|
+
direction: "column",
|
|
136
|
+
gap: "6",
|
|
137
|
+
height: "100%",
|
|
138
|
+
justify: "center",
|
|
139
|
+
width: "100%",
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
142
|
+
/* @__PURE__ */ jsx(
|
|
143
|
+
Heading,
|
|
144
|
+
{
|
|
145
|
+
align: "center",
|
|
146
|
+
color: "gray",
|
|
147
|
+
variant: "heading4",
|
|
148
|
+
weight: "regular",
|
|
149
|
+
children: `\uC694\uCCAD\uD558\uC2E0 \uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
|
150
|
+
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ jsx(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
})
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export {
|
|
162
|
+
LearningPost
|
|
163
|
+
};
|
|
164
|
+
//# sourceMappingURL=chunk-2YJ3EG6A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/learning-post.tsx"],"sourcesContent":["import React from 'react';\nimport type { ThemeProviderProps } from '../theme/theme-provider';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { Grid } from '../atoms/grid';\nimport { Flex } from '../atoms/flex';\nimport { Heading } from '../atoms/heading';\nimport { Typo } from '../atoms/typo';\nimport { AspectRatio } from '../atoms/aspect-ratio';\nimport { Badge } from '../atoms/badge';\nimport { Box } from '../atoms/box';\nimport { Button } from '../atoms/button';\n\ninterface Tag {\n name?: string;\n id: string;\n}\nexport interface LearningPostProps {\n defaultThemeProps?: Partial<ThemeProviderProps>;\n html?: string;\n title?: string;\n metaDescription?: string;\n /** 섬네일에 해당하는 이미지 컴포넌트 */\n imageComp?: React.ReactElement;\n tags?: Tag[];\n children?: React.ReactElement;\n onPageBack?: () => void;\n}\n\nexport function LearningPost(props: LearningPostProps): React.ReactElement {\n const {\n defaultThemeProps,\n html,\n tags,\n title,\n metaDescription,\n imageComp,\n onPageBack,\n children,\n } = props;\n return (\n <ThemeProvider\n {...defaultThemeProps}\n accentColor=\"iris\"\n scaling=\"110%\"\n style={{}}\n >\n {html ? (\n <Grid\n columns={{ initial: '1', md: '130px 1fr 130px' }}\n gap={{ initial: '2', md: '5' }}\n height=\"100%\"\n justify=\"center\"\n pb=\"160px\"\n position=\"relative\"\n px=\"4\"\n width=\"100%\"\n >\n <div />\n <Flex\n align=\"center\"\n direction=\"column\"\n maxWidth=\"880px\"\n mt={{ initial: '3', md: '8' }}\n overflow=\"hidden\"\n width=\"100%\"\n >\n <Grid align=\"start\" columns={{ initial: '1', sm: '2' }} gap=\"2\">\n <Grid\n gap=\"3\"\n mb={{ initial: '4', sm: '0' }}\n style={{ alignSelf: 'flex-start' }}\n >\n <Heading\n style={{\n fontSize: '2.4rem',\n lineHeight: 1.25,\n wordBreak: 'keep-all',\n }}\n variant=\"heading1\"\n >\n {title}\n </Heading>\n <Typo>{metaDescription}</Typo>\n <Flex gap=\"1\" wrap=\"wrap\">\n {tags?.map((el) => {\n if (el.name?.startsWith('filter')) return;\n return (\n <Badge key={el.id} size=\"large\" variant=\"solid\">\n {el.name}\n </Badge>\n );\n })}\n </Flex>\n </Grid>\n\n <AspectRatio\n ratio={5 / 3}\n style={{\n overflow: 'hidden',\n borderRadius: 'var(--radius-4)',\n objectFit: 'cover',\n }}\n >\n {imageComp}\n </AspectRatio>\n </Grid>\n\n <Box mt=\"5\" width=\"100%\">\n <div\n className=\"gh-content\"\n dangerouslySetInnerHTML={{ __html: html }}\n />\n </Box>\n </Flex>\n {children}\n </Grid>\n ) : (\n <Flex\n align=\"center\"\n direction=\"column\"\n gap=\"6\"\n height=\"100%\"\n justify=\"center\"\n width=\"100%\"\n >\n <Heading variant=\"heading1\">콘텐츠를 찾을 수 없습니다.</Heading>\n <Heading\n align=\"center\"\n color=\"gray\"\n variant=\"heading4\"\n weight=\"regular\"\n >\n {`요청하신 콘텐츠를 찾을 수 없습니다.\n 잠시 후 다시 시도해주세요.`}\n </Heading>\n <Button onClick={onPageBack} size=\"large\">\n 뒤로가기\n </Button>\n </Flex>\n )}\n </ThemeProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDU,cAUI,YAVJ;AA7BH,SAAS,aAAa,OAA8C;AACzE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,SACE;AAAA,IAAC;AAAA,qCACK,oBADL;AAAA,MAEC,aAAY;AAAA,MACZ,SAAQ;AAAA,MACR,OAAO,CAAC;AAAA,MAEP,iBACC;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,EAAE,SAAS,KAAK,IAAI,kBAAkB;AAAA,UAC/C,KAAK,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,UAC7B,QAAO;AAAA,UACP,SAAQ;AAAA,UACR,IAAG;AAAA,UACH,UAAS;AAAA,UACT,IAAG;AAAA,UACH,OAAM;AAAA,UAEN;AAAA,gCAAC,SAAI;AAAA,YACL;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBACN,WAAU;AAAA,gBACV,UAAS;AAAA,gBACT,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,gBAC5B,UAAS;AAAA,gBACT,OAAM;AAAA,gBAEN;AAAA,uCAAC,QAAK,OAAM,SAAQ,SAAS,EAAE,SAAS,KAAK,IAAI,IAAI,GAAG,KAAI,KAC1D;AAAA;AAAA,sBAAC;AAAA;AAAA,wBACC,KAAI;AAAA,wBACJ,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,wBAC5B,OAAO,EAAE,WAAW,aAAa;AAAA,wBAEjC;AAAA;AAAA,4BAAC;AAAA;AAAA,8BACC,OAAO;AAAA,gCACL,UAAU;AAAA,gCACV,YAAY;AAAA,gCACZ,WAAW;AAAA,8BACb;AAAA,8BACA,SAAQ;AAAA,8BAEP;AAAA;AAAA,0BACH;AAAA,0BACA,oBAAC,QAAM,2BAAgB;AAAA,0BACvB,oBAAC,QAAK,KAAI,KAAI,MAAK,QAChB,uCAAM,IAAI,CAAC,OAAO;AApFrC;AAqFoB,iCAAI,QAAG,SAAH,mBAAS,WAAW;AAAW;AACnC,mCACE,oBAAC,SAAkB,MAAK,SAAQ,SAAQ,SACrC,aAAG,QADM,GAAG,EAEf;AAAA,0BAEJ,IACF;AAAA;AAAA;AAAA,oBACF;AAAA,oBAEA;AAAA,sBAAC;AAAA;AAAA,wBACC,OAAO,IAAI;AAAA,wBACX,OAAO;AAAA,0BACL,UAAU;AAAA,0BACV,cAAc;AAAA,0BACd,WAAW;AAAA,wBACb;AAAA,wBAEC;AAAA;AAAA,oBACH;AAAA,qBACF;AAAA,kBAEA,oBAAC,OAAI,IAAG,KAAI,OAAM,QAChB;AAAA,oBAAC;AAAA;AAAA,sBACC,WAAU;AAAA,sBACV,yBAAyB,EAAE,QAAQ,KAAK;AAAA;AAAA,kBAC1C,GACF;AAAA;AAAA;AAAA,YACF;AAAA,YACC;AAAA;AAAA;AAAA,MACH,IAEA;AAAA,QAAC;AAAA;AAAA,UACC,OAAM;AAAA,UACN,WAAU;AAAA,UACV,KAAI;AAAA,UACJ,QAAO;AAAA,UACP,SAAQ;AAAA,UACR,OAAM;AAAA,UAEN;AAAA,gCAAC,WAAQ,SAAQ,YAAW,oFAAe;AAAA,YAC3C;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBACN,OAAM;AAAA,gBACN,SAAQ;AAAA,gBACR,QAAO;AAAA,gBAEN;AAAA;AAAA;AAAA,YAEH;AAAA,YACA,oBAAC,UAAO,SAAS,YAAY,MAAK,SAAQ,sCAE1C;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EAEJ;AAEJ;","names":[]}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EditCoachingTime
|
|
3
|
+
} from "./chunk-6X3CZMIC.js";
|
|
4
|
+
import {
|
|
5
|
+
EditServiceType
|
|
6
|
+
} from "./chunk-4TI72EQY.js";
|
|
7
|
+
import {
|
|
8
|
+
Grid
|
|
9
|
+
} from "./chunk-EGEQY3KT.js";
|
|
10
|
+
import {
|
|
11
|
+
DataList
|
|
12
|
+
} from "./chunk-VTJZMOSP.js";
|
|
13
|
+
import {
|
|
14
|
+
Dialog
|
|
15
|
+
} from "./chunk-3X6SIK3W.js";
|
|
16
|
+
import {
|
|
17
|
+
Heading
|
|
18
|
+
} from "./chunk-HJB3AASV.js";
|
|
19
|
+
import {
|
|
20
|
+
BulletText
|
|
21
|
+
} from "./chunk-NAL2USH5.js";
|
|
22
|
+
import {
|
|
23
|
+
Flex
|
|
24
|
+
} from "./chunk-25HMMI7R.js";
|
|
25
|
+
import {
|
|
26
|
+
Button
|
|
27
|
+
} from "./chunk-Q5AFRGVP.js";
|
|
28
|
+
import {
|
|
29
|
+
Card
|
|
30
|
+
} from "./chunk-2ZQK7NTN.js";
|
|
31
|
+
import {
|
|
32
|
+
Pencil1Icon
|
|
33
|
+
} from "./chunk-HLFG5ZTU.js";
|
|
34
|
+
import {
|
|
35
|
+
__objRest,
|
|
36
|
+
__spreadProps,
|
|
37
|
+
__spreadValues
|
|
38
|
+
} from "./chunk-N552FDTV.js";
|
|
39
|
+
|
|
40
|
+
// src/app/platform/session-card.tsx
|
|
41
|
+
import { useCallback, useMemo } from "react";
|
|
42
|
+
import { format } from "date-fns";
|
|
43
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
44
|
+
var preventDefault = (e) => {
|
|
45
|
+
e.preventDefault();
|
|
46
|
+
};
|
|
47
|
+
function SessionCard(props) {
|
|
48
|
+
const _a = props, {
|
|
49
|
+
sessionNumber,
|
|
50
|
+
userName,
|
|
51
|
+
error,
|
|
52
|
+
ExtraButtons,
|
|
53
|
+
TitleExtra,
|
|
54
|
+
editable,
|
|
55
|
+
onSaveDate,
|
|
56
|
+
onSaveSessionType,
|
|
57
|
+
startAt,
|
|
58
|
+
endAt,
|
|
59
|
+
sessionType
|
|
60
|
+
} = _a, rest = __objRest(_a, [
|
|
61
|
+
"sessionNumber",
|
|
62
|
+
"userName",
|
|
63
|
+
"error",
|
|
64
|
+
"ExtraButtons",
|
|
65
|
+
"TitleExtra",
|
|
66
|
+
"editable",
|
|
67
|
+
"onSaveDate",
|
|
68
|
+
"onSaveSessionType",
|
|
69
|
+
"startAt",
|
|
70
|
+
"endAt",
|
|
71
|
+
"sessionType"
|
|
72
|
+
]);
|
|
73
|
+
const renderEditButton = useCallback(() => {
|
|
74
|
+
return /* @__PURE__ */ jsx(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ jsx(Pencil1Icon, {}) });
|
|
75
|
+
}, []);
|
|
76
|
+
const sessionTimeStr = useMemo(() => {
|
|
77
|
+
if (!startAt || !endAt)
|
|
78
|
+
return "\uC54C \uC218 \uC5C6\uC74C";
|
|
79
|
+
return `${format(startAt, "yyyy\uB144 MM\uC6D4 dd\uC77C HH\uC2DC mm\uBD84")} ~ ${format(endAt, "HH\uC2DC mm\uBD84")}`;
|
|
80
|
+
}, [startAt, endAt]);
|
|
81
|
+
return /* @__PURE__ */ jsx(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "3", children: [
|
|
82
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", width: "100%", children: [
|
|
83
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
84
|
+
TitleExtra,
|
|
85
|
+
error ? /* @__PURE__ */ jsx(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ jsxs(DataList.Root, { children: [
|
|
88
|
+
/* @__PURE__ */ jsxs(DataList.Item, { children: [
|
|
89
|
+
/* @__PURE__ */ jsx(DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
90
|
+
/* @__PURE__ */ jsxs(DataList.Value, { children: [
|
|
91
|
+
sessionTimeStr,
|
|
92
|
+
editable ? /* @__PURE__ */ jsxs(Dialog.Root, { children: [
|
|
93
|
+
/* @__PURE__ */ jsx(Dialog.Trigger, { children: renderEditButton() }),
|
|
94
|
+
/* @__PURE__ */ jsx(
|
|
95
|
+
Dialog.Content,
|
|
96
|
+
{
|
|
97
|
+
onOpenAutoFocus: preventDefault,
|
|
98
|
+
style: { overflow: "visible" },
|
|
99
|
+
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
100
|
+
children: /* @__PURE__ */ jsx(
|
|
101
|
+
EditCoachingTime,
|
|
102
|
+
{
|
|
103
|
+
defaultEndAt: endAt,
|
|
104
|
+
defaultStartAt: startAt,
|
|
105
|
+
onClickSave: onSaveDate
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
] }) : null
|
|
111
|
+
] })
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ jsxs(Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
114
|
+
/* @__PURE__ */ jsxs(DataList.Item, { children: [
|
|
115
|
+
/* @__PURE__ */ jsx(DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
116
|
+
/* @__PURE__ */ jsxs(DataList.Value, { children: [
|
|
117
|
+
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
118
|
+
editable ? /* @__PURE__ */ jsxs(Dialog.Root, { children: [
|
|
119
|
+
/* @__PURE__ */ jsx(Dialog.Trigger, { children: renderEditButton() }),
|
|
120
|
+
/* @__PURE__ */ jsx(
|
|
121
|
+
Dialog.Content,
|
|
122
|
+
{
|
|
123
|
+
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
124
|
+
children: /* @__PURE__ */ jsx(
|
|
125
|
+
EditServiceType,
|
|
126
|
+
{
|
|
127
|
+
defaultServiceType: sessionType,
|
|
128
|
+
onClickSave: onSaveSessionType
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
] }) : null
|
|
134
|
+
] })
|
|
135
|
+
] }),
|
|
136
|
+
/* @__PURE__ */ jsx(Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
137
|
+
] })
|
|
138
|
+
] })
|
|
139
|
+
] }) }));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export {
|
|
143
|
+
SessionCard
|
|
144
|
+
};
|
|
145
|
+
//# sourceMappingURL=chunk-3IOLG7AJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/session-card.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from 'react';\nimport { format } from 'date-fns';\nimport type { ServiceType } from '@/types/biz.type';\nimport type { CardProps } from '../../atoms';\nimport {\n BulletText,\n Button,\n Card,\n DataList,\n Dialog,\n Flex,\n Grid,\n Heading,\n} from '../../atoms';\nimport { Pencil1Icon } from '../../icon';\nimport { EditCoachingTime } from './edit-coaching-time';\nimport { EditServiceType } from './edit-service-type';\n\nconst preventDefault = (e: Event): void => {\n e.preventDefault();\n};\nexport type SessionCardProps = Omit<CardProps, 'error'> & {\n error?: string;\n startAt?: Date;\n endAt?: Date;\n sessionType?: ServiceType;\n userName?: string;\n sessionNumber?: number;\n ExtraButtons?: React.ReactNode;\n editable?: boolean;\n TitleExtra?: React.ReactNode;\n onSaveDate?: (startTime: Date, endTime: Date) => void;\n onSaveSessionType?: (sessionType: string) => void;\n};\n\nexport function SessionCard(props: SessionCardProps): React.ReactElement {\n const {\n sessionNumber,\n userName,\n error,\n ExtraButtons,\n TitleExtra,\n editable,\n onSaveDate,\n onSaveSessionType,\n startAt,\n endAt,\n sessionType,\n ...rest\n } = props;\n\n const renderEditButton = useCallback((): JSX.Element => {\n return (\n <Button color=\"gray\" ml=\"2\" variant=\"transparent\">\n <Pencil1Icon />\n </Button>\n );\n }, []);\n\n const sessionTimeStr = useMemo(() => {\n if (!startAt || !endAt) return '알 수 없음';\n\n return `${format(startAt, 'yyyy년 MM월 dd일 HH시 mm분')} ~ ${format(endAt, 'HH시 mm분')}`;\n }, [startAt, endAt]);\n\n return (\n <Card error={Boolean(error)} {...rest}>\n <Flex direction=\"column\" gap=\"3\">\n <Flex align=\"center\" width=\"100%\">\n <Heading variant=\"heading4\">\n {`${userName || '알 수 없음'}님 ${sessionNumber || '-'}회차`}\n </Heading>\n {TitleExtra}\n {error ? (\n <BulletText as=\"p\" color=\"red\" variant=\"caption\">\n {error}\n </BulletText>\n ) : null}\n </Flex>\n <DataList.Root>\n <DataList.Item>\n <DataList.Label>코칭 일시</DataList.Label>\n <DataList.Value>\n {sessionTimeStr}\n {editable ? (\n <Dialog.Root>\n <Dialog.Trigger>{renderEditButton()}</Dialog.Trigger>\n <Dialog.Content\n onOpenAutoFocus={preventDefault}\n style={{ overflow: 'visible' }}\n title={`${sessionNumber}회차 세션 일시 변경하기`}\n >\n <EditCoachingTime\n defaultEndAt={endAt}\n defaultStartAt={startAt}\n onClickSave={onSaveDate}\n />\n </Dialog.Content>\n </Dialog.Root>\n ) : null}\n </DataList.Value>\n </DataList.Item>\n <Grid columns={{ initial: '1', xs: '2' }} style={{ gap: 'inherit' }}>\n <DataList.Item>\n <DataList.Label>세션 참여 방식</DataList.Label>\n <DataList.Value>\n {sessionType === 'offlineCoaching' ? '오프라인' : '온라인'}\n {editable ? (\n <Dialog.Root>\n <Dialog.Trigger>{renderEditButton()}</Dialog.Trigger>\n <Dialog.Content\n title={`${sessionNumber}회차 세션 진행 방식 변경하기`}\n >\n <EditServiceType\n defaultServiceType={sessionType}\n onClickSave={onSaveSessionType}\n />\n </Dialog.Content>\n </Dialog.Root>\n ) : null}\n </DataList.Value>\n </DataList.Item>\n\n <Flex gap=\"2\" justify=\"end\">\n {ExtraButtons}\n </Flex>\n </Grid>\n </DataList.Root>\n </Flex>\n </Card>\n );\n}\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Tooltip,
|
|
3
|
+
TooltipContent,
|
|
4
|
+
TooltipProvider,
|
|
5
|
+
TooltipTrigger
|
|
6
|
+
} from "./chunk-JRPA2S7O.js";
|
|
7
|
+
import {
|
|
8
|
+
Button
|
|
9
|
+
} from "./chunk-Q5AFRGVP.js";
|
|
10
|
+
import {
|
|
11
|
+
__objRest
|
|
12
|
+
} from "./chunk-N552FDTV.js";
|
|
13
|
+
|
|
14
|
+
// src/atoms/ellipsis-tooltip.tsx
|
|
15
|
+
import { useEffect, useRef, useState } from "react";
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
function EllipsisTooltip(props) {
|
|
18
|
+
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
19
|
+
const ref = useRef(null);
|
|
20
|
+
const [tooltipDisplay, setTooltipDisplay] = useState(
|
|
21
|
+
"none"
|
|
22
|
+
);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (ref.current) {
|
|
25
|
+
const typo = ref.current;
|
|
26
|
+
const mouseOver = () => {
|
|
27
|
+
if (typo.clientHeight < typo.scrollHeight) {
|
|
28
|
+
setTooltipDisplay("block");
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const mouseOut = () => {
|
|
32
|
+
setTooltipDisplay("none");
|
|
33
|
+
};
|
|
34
|
+
ref.current.addEventListener("mouseenter", mouseOver);
|
|
35
|
+
ref.current.addEventListener("mouseleave", mouseOut);
|
|
36
|
+
}
|
|
37
|
+
}, [children]);
|
|
38
|
+
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
39
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { children: "?" }) }),
|
|
40
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "\uD234\uD301 \uB0B4\uC6A9" }) })
|
|
41
|
+
] }) });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export {
|
|
45
|
+
EllipsisTooltip
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=chunk-4DTD3FXF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/atoms/ellipsis-tooltip.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from './tooltip';\nimport { Typo, type TypoProps } from './typo';\nimport { Button } from './button';\n\nexport type EllipsisTooltipProps = TypoProps & {\n lineClamp?: number;\n children?: string;\n};\n\nexport function EllipsisTooltip(\n props: EllipsisTooltipProps\n): React.ReactElement {\n const { children, style, lineClamp = 2, ...rest } = props;\n const ref = useRef<HTMLSpanElement>(null);\n\n const [tooltipDisplay, setTooltipDisplay] = useState<'none' | 'block'>(\n 'none'\n );\n\n useEffect(() => {\n if (ref.current) {\n const typo = ref.current;\n const mouseOver = (): void => {\n if (typo.clientHeight < typo.scrollHeight) {\n setTooltipDisplay('block');\n }\n };\n\n const mouseOut = (): void => {\n setTooltipDisplay('none');\n };\n\n ref.current.addEventListener('mouseenter', mouseOver);\n ref.current.addEventListener('mouseleave', mouseOut);\n }\n }, [children]);\n\n return (\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger asChild>\n <Button>?</Button>\n </TooltipTrigger>\n <TooltipContent>\n <p>툴팁 내용</p>\n </TooltipContent>\n </Tooltip>\n </TooltipProvider>\n );\n\n // return (\n // // <Tooltip content={children} style={{ display: tooltipDisplay }}>\n // // <Typo\n // // {...rest}\n // // ref={ref}\n // // style={{\n // // width: '100%',\n // // textOverflow: 'ellipsis',\n // // overflow: 'hidden',\n // // WebkitLineClamp: lineClamp,\n\n // // display: '-webkit-box',\n // // WebkitBoxOrient: 'vertical',\n // // wordBreak: 'break-word',\n // // ...style,\n // // }}\n // // >\n // // {children}\n // // </Typo>\n // // </Tooltip>\n // );\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAgB,WAAW,QAAQ,gBAAgB;AA6C7C,SAEI,KAFJ;AA9BC,SAAS,gBACd,OACoB;AACpB,QAAoD,YAA5C,YAAU,OAAO,YAAY,EAlBvC,IAkBsD,IAAT,iBAAS,IAAT,CAAnC,YAAU,SAAO;AACzB,QAAM,MAAM,OAAwB,IAAI;AAExC,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AACd,QAAI,IAAI,SAAS;AACf,YAAM,OAAO,IAAI;AACjB,YAAM,YAAY,MAAY;AAC5B,YAAI,KAAK,eAAe,KAAK,cAAc;AACzC,4BAAkB,OAAO;AAAA,QAC3B;AAAA,MACF;AAEA,YAAM,WAAW,MAAY;AAC3B,0BAAkB,MAAM;AAAA,MAC1B;AAEA,UAAI,QAAQ,iBAAiB,cAAc,SAAS;AACpD,UAAI,QAAQ,iBAAiB,cAAc,QAAQ;AAAA,IACrD;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,SACE,oBAAC,mBACC,+BAAC,WACC;AAAA,wBAAC,kBAAe,SAAO,MACrB,8BAAC,UAAO,eAAC,GACX;AAAA,IACA,oBAAC,kBACC,8BAAC,OAAE,uCAAK,GACV;AAAA,KACF,GACF;AAwBJ;","names":[]}
|