@dotss/tictoccroc 0.3.1 → 0.3.3
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/parent/b2b/components/TopLogo/TopLogo.d.ts +3 -3
- package/dist/parent/b2b/components/TopLogo/TopLogo.mjs +4 -4
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +8 -8
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +1 -1
- package/dist/shared/components/ChatKit/Message/Message.mjs +83 -71
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.d.ts +1 -1
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +46 -34
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.d.ts +1 -1
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +43 -31
- package/dist/teacher/home/components/TextAccount/TextAccount.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@ import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
|
2
2
|
import { ImageProps } from '../../../../shared/components';
|
|
3
3
|
export interface TopLogoProps extends FlexboxProps {
|
|
4
4
|
leftLogoUrl?: string;
|
|
5
|
-
leftLogoProps?: ImageProps
|
|
6
|
-
rightLogoUrl
|
|
7
|
-
rightLogoProps?: ImageProps
|
|
5
|
+
leftLogoProps?: Omit<ImageProps, 'alt'>;
|
|
6
|
+
rightLogoUrl: string;
|
|
7
|
+
rightLogoProps?: Omit<ImageProps, 'alt'>;
|
|
8
8
|
collaborated?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare function TopLogo({ leftLogoUrl, rightLogoUrl, leftLogoProps, rightLogoProps, collaborated, ...props }: TopLogoProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -18,8 +18,8 @@ import "@dotss/ui/Typography";
|
|
|
18
18
|
function v({
|
|
19
19
|
leftLogoUrl: e,
|
|
20
20
|
rightLogoUrl: s,
|
|
21
|
-
leftLogoProps:
|
|
22
|
-
rightLogoProps:
|
|
21
|
+
leftLogoProps: r,
|
|
22
|
+
rightLogoProps: a,
|
|
23
23
|
collaborated: o = !0,
|
|
24
24
|
...c
|
|
25
25
|
}) {
|
|
@@ -40,7 +40,7 @@ function v({
|
|
|
40
40
|
width: 100,
|
|
41
41
|
height: 100,
|
|
42
42
|
disabledResizing: !0,
|
|
43
|
-
...
|
|
43
|
+
...r
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
46
|
!e && o && /* @__PURE__ */ t(
|
|
@@ -82,7 +82,7 @@ function v({
|
|
|
82
82
|
height: 100
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
...
|
|
85
|
+
...a
|
|
86
86
|
}
|
|
87
87
|
)
|
|
88
88
|
]
|
|
@@ -2,11 +2,11 @@ import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as F, useEffect as L } from "react";
|
|
3
3
|
import { Flexbox as n, Typography as e, Button as $ } from "@dotss/ui";
|
|
4
4
|
import q from "@dotss/ui/core/useTheme";
|
|
5
|
-
import
|
|
6
|
-
import J from "
|
|
7
|
-
import K from "
|
|
5
|
+
import z from "dayjs";
|
|
6
|
+
import { getClassInfo as G, getCtaButtonText as J } from "./BotMessage.utils.mjs";
|
|
7
|
+
import K from "../../Image/Image.mjs";
|
|
8
|
+
import N from "../../../hooks/useInView/useInView.mjs";
|
|
8
9
|
import S from "../../../utils/getCareTypeLabel/getCareTypeLabel.mjs";
|
|
9
|
-
import N from "dayjs";
|
|
10
10
|
function V({
|
|
11
11
|
id: P,
|
|
12
12
|
botMessageType: y,
|
|
@@ -30,10 +30,10 @@ function V({
|
|
|
30
30
|
const {
|
|
31
31
|
palette: { brand: D, grey: m, background: k },
|
|
32
32
|
spacing: d
|
|
33
|
-
} = q(), f = F(null), { isInView: u } =
|
|
33
|
+
} = q(), f = F(null), { isInView: u } = N(f), x = J(s), i = w, H = [
|
|
34
34
|
S(i == null ? void 0 : i.firstCareType),
|
|
35
35
|
S(i == null ? void 0 : i.secondCareType)
|
|
36
|
-
].filter(Boolean).filter((E) => E !== "-").join("+"), c =
|
|
36
|
+
].filter(Boolean).filter((E) => E !== "-").join("+"), c = G(i), M = () => o == null ? void 0 : o({
|
|
37
37
|
botMessageType: y,
|
|
38
38
|
ctaType: s,
|
|
39
39
|
ctaTargetId: C,
|
|
@@ -91,7 +91,7 @@ function V({
|
|
|
91
91
|
inlineCSS: {
|
|
92
92
|
whiteSpace: "nowrap"
|
|
93
93
|
},
|
|
94
|
-
children:
|
|
94
|
+
children: z(I).format("A h:mm")
|
|
95
95
|
}
|
|
96
96
|
)
|
|
97
97
|
]
|
|
@@ -112,7 +112,7 @@ function V({
|
|
|
112
112
|
},
|
|
113
113
|
children: [
|
|
114
114
|
g && /* @__PURE__ */ r(
|
|
115
|
-
|
|
115
|
+
K,
|
|
116
116
|
{
|
|
117
117
|
src: g,
|
|
118
118
|
width: 32,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e, Fragment as q } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Flexbox as d, Typography as
|
|
2
|
+
import { useRef as y, useImperativeHandle as J, useEffect as v } from "react";
|
|
3
|
+
import { Flexbox as d, Typography as I, Button as Q, Icon as C, Menu as X, MenuBlock as T, CircularProgressIndicator as Y } from "@dotss/ui";
|
|
4
4
|
import Z from "@dotss/ui/core/useTheme";
|
|
5
5
|
import { useCheckHoverPossible as _ } from "@dotss/ui/hooks";
|
|
6
6
|
import { MenuButton as A } from "@dotss/ui/Menu";
|
|
@@ -8,48 +8,48 @@ import V from "dayjs";
|
|
|
8
8
|
import U from "../../Image/Image.mjs";
|
|
9
9
|
import M from "../../../hooks/useInView/useInView.mjs";
|
|
10
10
|
function de({
|
|
11
|
-
id:
|
|
12
|
-
content:
|
|
11
|
+
id: k,
|
|
12
|
+
content: u = "",
|
|
13
13
|
mine: i = !1,
|
|
14
14
|
avatarUrl: h = "",
|
|
15
|
-
unreadUserCount:
|
|
16
|
-
regDatetime:
|
|
15
|
+
unreadUserCount: g = 0,
|
|
16
|
+
regDatetime: $,
|
|
17
17
|
status: l,
|
|
18
18
|
onView: m,
|
|
19
|
-
openMenu:
|
|
20
|
-
onClickAvatar:
|
|
19
|
+
openMenu: S,
|
|
20
|
+
onClickAvatar: a,
|
|
21
21
|
onCloseMenu: t,
|
|
22
|
-
onClickMenu:
|
|
23
|
-
onResend:
|
|
24
|
-
onDelete:
|
|
25
|
-
onViewAll:
|
|
22
|
+
onClickMenu: z,
|
|
23
|
+
onResend: b,
|
|
24
|
+
onDelete: x,
|
|
25
|
+
onViewAll: B,
|
|
26
26
|
showAvatar: w,
|
|
27
|
-
showTime:
|
|
28
|
-
ref:
|
|
29
|
-
inlineCSS:
|
|
30
|
-
...
|
|
27
|
+
showTime: R,
|
|
28
|
+
ref: j,
|
|
29
|
+
inlineCSS: G,
|
|
30
|
+
...H
|
|
31
31
|
}) {
|
|
32
32
|
const {
|
|
33
|
-
palette: { brand:
|
|
33
|
+
palette: { brand: p, grey: c, etc: K },
|
|
34
34
|
spacing: E
|
|
35
|
-
} = Z(), { isHoverPossible:
|
|
36
|
-
J(
|
|
37
|
-
const
|
|
38
|
-
r === "resend" ? (t == null || t(),
|
|
39
|
-
S == null || S();
|
|
40
|
-
}, 200)) : r === "delete" && (t == null || t(), p.current = setTimeout(() => {
|
|
35
|
+
} = Z(), { isHoverPossible: D } = _(), o = y(null), F = y(null), s = y(null);
|
|
36
|
+
J(j, () => o.current);
|
|
37
|
+
const L = M(o), N = 300, f = l === "FAILED", P = u.length > N, O = (r) => {
|
|
38
|
+
r === "resend" ? (t == null || t(), s.current = setTimeout(() => {
|
|
41
39
|
b == null || b();
|
|
40
|
+
}, 200)) : r === "delete" && (t == null || t(), s.current = setTimeout(() => {
|
|
41
|
+
x == null || x();
|
|
42
42
|
}, 200));
|
|
43
43
|
}, W = (r) => {
|
|
44
44
|
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.currentTarget.click());
|
|
45
45
|
};
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
}, [
|
|
46
|
+
return v(() => {
|
|
47
|
+
L && (m == null || m());
|
|
48
|
+
}, [L, m]), v(() => {
|
|
49
49
|
var r;
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
|
|
50
|
+
f && ((r = o == null ? void 0 : o.current) == null || r.scrollIntoView());
|
|
51
|
+
}, [f]), v(() => () => {
|
|
52
|
+
s.current && clearTimeout(s.current);
|
|
53
53
|
}, []), /* @__PURE__ */ n(
|
|
54
54
|
d,
|
|
55
55
|
{
|
|
@@ -60,27 +60,27 @@ function de({
|
|
|
60
60
|
pr: 4,
|
|
61
61
|
gap: 1,
|
|
62
62
|
"aria-busy": l === "PENDING",
|
|
63
|
-
...
|
|
63
|
+
...H,
|
|
64
64
|
inlineCSS: {
|
|
65
65
|
cursor: l === "PENDING" ? "wait" : "default",
|
|
66
66
|
overflowAnchor: "none",
|
|
67
|
-
...
|
|
67
|
+
...G
|
|
68
68
|
},
|
|
69
69
|
children: [
|
|
70
70
|
/* @__PURE__ */ n(d, { alignItems: "flex-start", gap: 2.5, children: [
|
|
71
71
|
!i && w && h && /* @__PURE__ */ e(
|
|
72
72
|
d,
|
|
73
73
|
{
|
|
74
|
-
role: typeof
|
|
75
|
-
tabIndex: typeof
|
|
76
|
-
onClick:
|
|
74
|
+
role: typeof a == "function" ? "button" : void 0,
|
|
75
|
+
tabIndex: typeof a == "function" ? 0 : -1,
|
|
76
|
+
onClick: a,
|
|
77
77
|
onKeyDown: W,
|
|
78
|
-
"aria-label": typeof
|
|
78
|
+
"aria-label": typeof a == "function" ? "선생님 프로필 보기" : void 0,
|
|
79
79
|
inlineCSS: {
|
|
80
80
|
position: "relative",
|
|
81
81
|
overflow: "hidden",
|
|
82
82
|
minWidth: 32,
|
|
83
|
-
cursor: typeof
|
|
83
|
+
cursor: typeof a == "function" ? "pointer" : void 0
|
|
84
84
|
},
|
|
85
85
|
children: /* @__PURE__ */ e(
|
|
86
86
|
U,
|
|
@@ -111,30 +111,42 @@ function de({
|
|
|
111
111
|
gap: 2.5,
|
|
112
112
|
inlineCSS: {
|
|
113
113
|
borderRadius: 12,
|
|
114
|
-
backgroundColor: i ?
|
|
114
|
+
backgroundColor: i ? p.primary.pageControl : c[10]
|
|
115
115
|
},
|
|
116
116
|
children: [
|
|
117
117
|
/* @__PURE__ */ e(
|
|
118
|
-
|
|
118
|
+
I,
|
|
119
119
|
{
|
|
120
120
|
tag: "p",
|
|
121
121
|
variant: "b3R",
|
|
122
122
|
inlineCSS: {
|
|
123
123
|
whiteSpace: "pre-wrap",
|
|
124
|
-
wordBreak: "break-all"
|
|
124
|
+
wordBreak: "break-all",
|
|
125
|
+
userSelect: "text",
|
|
126
|
+
"& *": {
|
|
127
|
+
userSelect: "text"
|
|
128
|
+
}
|
|
125
129
|
},
|
|
126
|
-
children:
|
|
130
|
+
children: P ? u.slice(0, N) + "..." : u
|
|
127
131
|
}
|
|
128
132
|
),
|
|
129
|
-
|
|
133
|
+
P && /* @__PURE__ */ e(
|
|
130
134
|
Q,
|
|
131
135
|
{
|
|
132
136
|
variant: "text",
|
|
133
137
|
size: "xSmall",
|
|
134
|
-
endAdornment: /* @__PURE__ */ e(
|
|
135
|
-
onClick:
|
|
138
|
+
endAdornment: /* @__PURE__ */ e(C, { name: "ChevronRightLine" }),
|
|
139
|
+
onClick: B,
|
|
136
140
|
inlineCSS: {
|
|
137
|
-
marginLeft: "auto"
|
|
141
|
+
marginLeft: "auto",
|
|
142
|
+
'&:active:not([aria-disabled="true"])': {
|
|
143
|
+
backgroundColor: p.primary.main
|
|
144
|
+
},
|
|
145
|
+
...D && {
|
|
146
|
+
'&:hover:not([aria-disabled="true"])': {
|
|
147
|
+
backgroundColor: p.primary.main
|
|
148
|
+
}
|
|
149
|
+
}
|
|
138
150
|
},
|
|
139
151
|
children: "전체보기"
|
|
140
152
|
}
|
|
@@ -143,50 +155,50 @@ function de({
|
|
|
143
155
|
}
|
|
144
156
|
)
|
|
145
157
|
] }),
|
|
146
|
-
|
|
158
|
+
f && /* @__PURE__ */ n(q, { children: [
|
|
147
159
|
/* @__PURE__ */ n(
|
|
148
160
|
A,
|
|
149
161
|
{
|
|
150
|
-
ref:
|
|
151
|
-
isMenuOpen: !!
|
|
152
|
-
menuId: `message-${
|
|
153
|
-
onClick:
|
|
162
|
+
ref: F,
|
|
163
|
+
isMenuOpen: !!S,
|
|
164
|
+
menuId: `message-${k}-menu`,
|
|
165
|
+
onClick: z,
|
|
154
166
|
size: "xSmall",
|
|
155
167
|
inlineCSS: {
|
|
156
168
|
padding: E.content(0.5),
|
|
157
169
|
gap: E.content(0.5),
|
|
158
170
|
borderRadius: 200,
|
|
159
|
-
backgroundColor:
|
|
171
|
+
backgroundColor: S ? c[10] : "transparent",
|
|
160
172
|
cursor: "pointer",
|
|
161
|
-
...
|
|
173
|
+
...D && {
|
|
162
174
|
"&:hover": {
|
|
163
|
-
backgroundColor: `${
|
|
175
|
+
backgroundColor: `${c[10]} !important`
|
|
164
176
|
}
|
|
165
177
|
},
|
|
166
178
|
"&:active": {
|
|
167
|
-
backgroundColor: `${
|
|
179
|
+
backgroundColor: `${c[10]} !important`
|
|
168
180
|
}
|
|
169
181
|
},
|
|
170
182
|
children: [
|
|
171
183
|
/* @__PURE__ */ e(
|
|
172
|
-
|
|
184
|
+
C,
|
|
173
185
|
{
|
|
174
186
|
name: "ResetLine",
|
|
175
187
|
size: "xSmall",
|
|
176
188
|
color: "grey.70",
|
|
177
189
|
inlineCSS: {
|
|
178
|
-
color: `${
|
|
190
|
+
color: `${c[70]} !important`
|
|
179
191
|
}
|
|
180
192
|
}
|
|
181
193
|
),
|
|
182
194
|
/* @__PURE__ */ e(
|
|
183
|
-
|
|
195
|
+
C,
|
|
184
196
|
{
|
|
185
197
|
name: "CloseLine",
|
|
186
198
|
size: "xSmall",
|
|
187
199
|
color: "etc.red",
|
|
188
200
|
inlineCSS: {
|
|
189
|
-
color: `${
|
|
201
|
+
color: `${K.red} !important`
|
|
190
202
|
}
|
|
191
203
|
}
|
|
192
204
|
)
|
|
@@ -196,21 +208,21 @@ function de({
|
|
|
196
208
|
/* @__PURE__ */ n(
|
|
197
209
|
X,
|
|
198
210
|
{
|
|
199
|
-
id: `message-${
|
|
200
|
-
anchorRef:
|
|
201
|
-
open:
|
|
211
|
+
id: `message-${k}-menu`,
|
|
212
|
+
anchorRef: F,
|
|
213
|
+
open: S,
|
|
202
214
|
onClose: t,
|
|
203
215
|
onChange: O,
|
|
204
216
|
width: 160,
|
|
205
217
|
placement: "bottom-left",
|
|
206
218
|
children: [
|
|
207
|
-
/* @__PURE__ */ e(
|
|
208
|
-
/* @__PURE__ */ e(
|
|
219
|
+
/* @__PURE__ */ e(T, { value: "resend", children: "재전송" }),
|
|
220
|
+
/* @__PURE__ */ e(T, { value: "delete", children: "삭제" })
|
|
209
221
|
]
|
|
210
222
|
}
|
|
211
223
|
)
|
|
212
224
|
] }),
|
|
213
|
-
!
|
|
225
|
+
!f && /* @__PURE__ */ n(
|
|
214
226
|
d,
|
|
215
227
|
{
|
|
216
228
|
flexDirection: "column",
|
|
@@ -219,19 +231,19 @@ function de({
|
|
|
219
231
|
whiteSpace: "nowrap"
|
|
220
232
|
},
|
|
221
233
|
children: [
|
|
222
|
-
i &&
|
|
223
|
-
|
|
234
|
+
i && g > 0 && l === "SUCCEEDED" && /* @__PURE__ */ e(
|
|
235
|
+
I,
|
|
224
236
|
{
|
|
225
237
|
tag: "span",
|
|
226
238
|
variant: "c5B",
|
|
227
239
|
"aria-hidden": !0,
|
|
228
240
|
inlineCSS: {
|
|
229
|
-
color:
|
|
241
|
+
color: p.primary.text
|
|
230
242
|
},
|
|
231
|
-
children:
|
|
243
|
+
children: g
|
|
232
244
|
}
|
|
233
245
|
),
|
|
234
|
-
i &&
|
|
246
|
+
i && g > 0 && l === "PENDING" && /* @__PURE__ */ e(
|
|
235
247
|
Y,
|
|
236
248
|
{
|
|
237
249
|
size: "small",
|
|
@@ -243,15 +255,15 @@ function de({
|
|
|
243
255
|
}
|
|
244
256
|
),
|
|
245
257
|
/* @__PURE__ */ e(
|
|
246
|
-
|
|
258
|
+
I,
|
|
247
259
|
{
|
|
248
260
|
tag: "span",
|
|
249
261
|
variant: "c5R",
|
|
250
262
|
color: "etc.dimmed01",
|
|
251
263
|
inlineCSS: {
|
|
252
|
-
display:
|
|
264
|
+
display: R ? void 0 : "none"
|
|
253
265
|
},
|
|
254
|
-
children: V(
|
|
266
|
+
children: V($).format("A h:mm")
|
|
255
267
|
}
|
|
256
268
|
)
|
|
257
269
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
2
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { ImageProps } from '../../../../shared/components/Image';
|
|
4
4
|
import { BannerProps } from '..';
|
|
5
5
|
export interface Carousel1AccountProps extends Omit<FlexboxProps, 'title' | 'id'> {
|
|
6
6
|
id: number;
|
|
@@ -1,71 +1,83 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import S from "../../../../shared/components/Carousel/
|
|
7
|
-
import w from "../../../../shared/components/
|
|
1
|
+
import { jsx as e, Fragment as C, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import k from "@dotss/ui/core/useTheme";
|
|
3
|
+
import c from "@dotss/ui/Flexbox";
|
|
4
|
+
import v from "@dotss/ui/hooks/useCheckHoverPossible/useCheckHoverPossible";
|
|
5
|
+
import d from "@dotss/ui/Typography";
|
|
6
|
+
import S from "../../../../shared/components/Carousel/Carousel.mjs";
|
|
7
|
+
import w from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
8
|
+
import x from "../../../../shared/components/Image/Image.mjs";
|
|
8
9
|
import "@dotss/ui";
|
|
9
|
-
function
|
|
10
|
+
function I({
|
|
10
11
|
id: p,
|
|
11
|
-
title:
|
|
12
|
+
title: s,
|
|
12
13
|
banners: m,
|
|
13
|
-
onClickBanner:
|
|
14
|
-
imageProps:
|
|
15
|
-
...
|
|
14
|
+
onClickBanner: a,
|
|
15
|
+
imageProps: u,
|
|
16
|
+
...g
|
|
16
17
|
}) {
|
|
17
|
-
const { spacing:
|
|
18
|
-
|
|
18
|
+
const { spacing: i, palette: n } = k(), { isHoverPossible: h } = v(), b = (o, t) => (r) => {
|
|
19
|
+
a && typeof a == "function" && (r.stopPropagation(), r.preventDefault(), a(o, t, r));
|
|
19
20
|
};
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
21
|
+
return /* @__PURE__ */ e(C, { children: /* @__PURE__ */ l(c, { flexDirection: "column", inlineCSS: { width: "100%" }, ...g, children: [
|
|
22
|
+
/* @__PURE__ */ e(
|
|
23
|
+
d,
|
|
23
24
|
{
|
|
24
25
|
id: `banner-account-carousel1-${p}`,
|
|
25
26
|
variant: "h2B",
|
|
26
27
|
inlineCSS: {
|
|
27
28
|
whiteSpace: "pre-wrap",
|
|
28
29
|
wordBreak: "keep-all",
|
|
29
|
-
paddingLeft:
|
|
30
|
-
paddingRight:
|
|
31
|
-
marginBottom:
|
|
30
|
+
paddingLeft: i.content(4),
|
|
31
|
+
paddingRight: i.content(4),
|
|
32
|
+
marginBottom: i.content(3)
|
|
32
33
|
},
|
|
33
|
-
children:
|
|
34
|
+
children: s
|
|
34
35
|
}
|
|
35
36
|
),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
37
|
+
/* @__PURE__ */ e(S, { rowCount: 2, step: 1, spacing: 5, children: m.map(({ id: o, title: t, url: r, image: f }) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ l(
|
|
38
|
+
c,
|
|
38
39
|
{
|
|
39
40
|
tag: "a",
|
|
40
|
-
href:
|
|
41
|
+
href: r,
|
|
41
42
|
alignItems: "center",
|
|
42
43
|
gap: 4,
|
|
43
44
|
draggable: !1,
|
|
44
|
-
onClick:
|
|
45
|
-
inlineCSS: {
|
|
45
|
+
onClick: b(r, o),
|
|
46
|
+
inlineCSS: {
|
|
47
|
+
width: 264,
|
|
48
|
+
borderRadius: 12,
|
|
49
|
+
'&:active:not([aria-disabled="true"])': {
|
|
50
|
+
backgroundColor: n.background.primary
|
|
51
|
+
},
|
|
52
|
+
...h && {
|
|
53
|
+
'&:hover:not([aria-disabled="true"])': {
|
|
54
|
+
backgroundColor: n.background.primary
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
46
58
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
59
|
+
/* @__PURE__ */ e(
|
|
60
|
+
x,
|
|
49
61
|
{
|
|
50
|
-
src:
|
|
62
|
+
src: f || "",
|
|
51
63
|
width: 140,
|
|
52
64
|
height: 98,
|
|
53
|
-
alt: `${
|
|
65
|
+
alt: `${t} 이미지`,
|
|
54
66
|
"aria-hidden": !0,
|
|
55
67
|
draggable: !1,
|
|
56
68
|
borderRadius: 12,
|
|
57
69
|
enableFallback: !0,
|
|
58
70
|
enableErrorFallback: !0,
|
|
59
71
|
style: { objectFit: "cover" },
|
|
60
|
-
...
|
|
72
|
+
...u
|
|
61
73
|
}
|
|
62
74
|
),
|
|
63
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ e(d, { tag: "p", variant: "b2M", lineClamp: 2, children: t })
|
|
64
76
|
]
|
|
65
77
|
}
|
|
66
|
-
) }, `tictoccroc-carousel1-account-${
|
|
78
|
+
) }, `tictoccroc-carousel1-account-${o}`)) })
|
|
67
79
|
] }) });
|
|
68
80
|
}
|
|
69
81
|
export {
|
|
70
|
-
|
|
82
|
+
I as default
|
|
71
83
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
2
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { ImageProps } from '../../../../shared/components/Image';
|
|
4
4
|
import { BannerProps } from '..';
|
|
5
5
|
export interface Carousel2AccountProps extends Omit<FlexboxProps, 'title' | 'id'> {
|
|
6
6
|
id: number;
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import k from "@dotss/ui/core/useTheme";
|
|
3
3
|
import l from "@dotss/ui/Flexbox";
|
|
4
|
+
import v from "@dotss/ui/hooks/useCheckHoverPossible/useCheckHoverPossible";
|
|
4
5
|
import c from "@dotss/ui/Typography";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import x from "../../../../shared/components/Carousel/Carousel.mjs";
|
|
7
|
+
import S from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
8
|
+
import w from "../../../../shared/components/Image/Image.mjs";
|
|
8
9
|
import "@dotss/ui";
|
|
9
|
-
function
|
|
10
|
-
id:
|
|
11
|
-
title:
|
|
12
|
-
banners:
|
|
13
|
-
onClickBanner:
|
|
14
|
-
imageProps:
|
|
10
|
+
function T({
|
|
11
|
+
id: s,
|
|
12
|
+
title: u,
|
|
13
|
+
banners: m,
|
|
14
|
+
onClickBanner: a,
|
|
15
|
+
imageProps: g,
|
|
15
16
|
...h
|
|
16
17
|
}) {
|
|
17
|
-
const { spacing:
|
|
18
|
-
|
|
18
|
+
const { spacing: i, palette: d } = k(), { isHoverPossible: f } = v(), b = (o, t) => (e) => {
|
|
19
|
+
a && typeof a == "function" && (e.stopPropagation(), e.preventDefault(), a(o, t, e));
|
|
19
20
|
};
|
|
20
21
|
return /* @__PURE__ */ n(l, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...h, children: [
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ r(
|
|
22
23
|
c,
|
|
23
24
|
{
|
|
24
|
-
id: `banner-account-carousel2-${
|
|
25
|
+
id: `banner-account-carousel2-${s}`,
|
|
25
26
|
variant: "h2B",
|
|
26
27
|
inlineCSS: {
|
|
27
28
|
whiteSpace: "pre-wrap",
|
|
28
29
|
wordBreak: "keep-all",
|
|
29
|
-
paddingLeft:
|
|
30
|
-
paddingRight:
|
|
31
|
-
marginBottom:
|
|
30
|
+
paddingLeft: i.content(4),
|
|
31
|
+
paddingRight: i.content(4),
|
|
32
|
+
marginBottom: i.content(4)
|
|
32
33
|
},
|
|
33
|
-
children:
|
|
34
|
+
children: u
|
|
34
35
|
}
|
|
35
36
|
),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ r(x, { rowCount: 1, step: 1, spacing: 3, children: m.map(({ id: o, title: t, subTitle: e, url: p, image: C }) => /* @__PURE__ */ r(S, { children: /* @__PURE__ */ n(
|
|
37
38
|
l,
|
|
38
39
|
{
|
|
39
40
|
tag: "a",
|
|
@@ -41,34 +42,45 @@ function R({
|
|
|
41
42
|
flexDirection: "column",
|
|
42
43
|
gap: 3,
|
|
43
44
|
draggable: !1,
|
|
44
|
-
onClick:
|
|
45
|
-
inlineCSS: {
|
|
45
|
+
onClick: b(p, o),
|
|
46
|
+
inlineCSS: {
|
|
47
|
+
width: 240,
|
|
48
|
+
borderRadius: 12,
|
|
49
|
+
'&:active:not([aria-disabled="true"])': {
|
|
50
|
+
backgroundColor: d.background.primary
|
|
51
|
+
},
|
|
52
|
+
...f && {
|
|
53
|
+
'&:hover:not([aria-disabled="true"])': {
|
|
54
|
+
backgroundColor: d.background.primary
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
46
58
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
59
|
+
/* @__PURE__ */ r(
|
|
60
|
+
w,
|
|
49
61
|
{
|
|
50
|
-
src:
|
|
62
|
+
src: C || "",
|
|
51
63
|
width: 240,
|
|
52
64
|
height: 168,
|
|
53
|
-
alt: `${
|
|
65
|
+
alt: `${t} 이미지`,
|
|
54
66
|
"aria-hidden": !0,
|
|
55
67
|
draggable: !1,
|
|
56
68
|
borderRadius: 12,
|
|
57
69
|
enableFallback: !0,
|
|
58
70
|
enableErrorFallback: !0,
|
|
59
71
|
style: { objectFit: "cover" },
|
|
60
|
-
...
|
|
72
|
+
...g
|
|
61
73
|
}
|
|
62
74
|
),
|
|
63
75
|
/* @__PURE__ */ n(l, { flexDirection: "column", gap: 1, children: [
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ r(c, { tag: "p", variant: "h4B", lineClamp: 1, children: t }),
|
|
77
|
+
/* @__PURE__ */ r(c, { tag: "p", variant: "b4R", lineClamp: 1, color: "grey.70", children: e })
|
|
66
78
|
] })
|
|
67
79
|
]
|
|
68
80
|
}
|
|
69
|
-
) }, `tictoccroc-carousel2-account-${
|
|
81
|
+
) }, `tictoccroc-carousel2-account-${o}`)) })
|
|
70
82
|
] });
|
|
71
83
|
}
|
|
72
84
|
export {
|
|
73
|
-
|
|
85
|
+
T as default
|
|
74
86
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
2
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { ImageProps } from '../../../../shared/components/Image';
|
|
4
4
|
import { BannerProps } from '..';
|
|
5
5
|
export interface TextAccountProps extends Omit<FlexboxProps, 'title' | 'id'> {
|
|
6
6
|
id: number;
|
package/package.json
CHANGED