@dotss/tictoccroc 0.0.13 → 0.0.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.
- package/dist/shared/components/Image/Image.mjs +59 -57
- package/dist/teacher/home/components/BannerAccount/BannerAccount.d.ts +3 -1
- package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +21 -20
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.d.ts +3 -1
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +22 -14
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.d.ts +3 -1
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +22 -14
- package/dist/teacher/home/components/TextAccount/TextAccount.d.ts +3 -1
- package/dist/teacher/home/components/TextAccount/TextAccount.mjs +21 -13
- package/package.json +1 -1
|
@@ -1,69 +1,71 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Flexbox as
|
|
1
|
+
import { jsxs as L, jsx as d, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Z, useRef as h, useImperativeHandle as w, useState as C, useEffect as R } from "react";
|
|
3
|
+
import { Flexbox as M, Skeleton as U } from "@dotss/ui";
|
|
4
4
|
import F from "../../hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
|
|
5
5
|
import b from "../../utils/getImageUrl/getImageUrl.mjs";
|
|
6
|
-
import
|
|
7
|
-
const k = 100, ot =
|
|
6
|
+
import V from "./Image.error.mjs";
|
|
7
|
+
const k = 100, ot = Z(
|
|
8
8
|
({
|
|
9
|
-
src:
|
|
9
|
+
src: _,
|
|
10
10
|
width: n,
|
|
11
11
|
height: o,
|
|
12
|
-
fit:
|
|
13
|
-
position:
|
|
14
|
-
alt:
|
|
15
|
-
scale:
|
|
12
|
+
fit: q = "cover",
|
|
13
|
+
position: A = "center",
|
|
14
|
+
alt: r,
|
|
15
|
+
scale: D = 2,
|
|
16
16
|
onLoad: E,
|
|
17
|
-
onLazyLoad:
|
|
17
|
+
onLazyLoad: g,
|
|
18
18
|
lazy: I = !1,
|
|
19
19
|
borderRadius: l,
|
|
20
|
-
disabledResizing:
|
|
20
|
+
disabledResizing: G = !1,
|
|
21
21
|
withIntrinsicRatio: x = !1,
|
|
22
22
|
enableFallback: T = !1,
|
|
23
|
-
enableErrorFallback:
|
|
23
|
+
enableErrorFallback: W = !0,
|
|
24
24
|
renderErrorFallback: c,
|
|
25
25
|
wrapperProps: e = {},
|
|
26
|
-
onError:
|
|
27
|
-
...
|
|
28
|
-
},
|
|
29
|
-
const
|
|
30
|
-
w(
|
|
31
|
-
const [y,
|
|
32
|
-
v(!0),
|
|
33
|
-
},
|
|
34
|
-
|
|
26
|
+
onError: H,
|
|
27
|
+
...u
|
|
28
|
+
}, J) => {
|
|
29
|
+
const a = h(null), $ = h(!1), m = h(null);
|
|
30
|
+
w(J, () => m.current);
|
|
31
|
+
const [y, K] = C(!1), [O, v] = C(!1), [f, S] = C(!1), j = b({ src: _, width: n, height: o, fit: q, position: A, scale: D, disabledResizing: G }), z = (t) => {
|
|
32
|
+
v(!0), S(!1), typeof E == "function" && E(t);
|
|
33
|
+
}, B = (t) => {
|
|
34
|
+
S(!0), v(!1), typeof H == "function" && H(t.nativeEvent);
|
|
35
35
|
};
|
|
36
|
-
return
|
|
37
|
-
if (I &&
|
|
38
|
-
const t =
|
|
36
|
+
return R(() => {
|
|
37
|
+
if (I && a.current) {
|
|
38
|
+
const t = a.current, N = () => {
|
|
39
39
|
if (!t) return !1;
|
|
40
40
|
const i = t.getBoundingClientRect();
|
|
41
41
|
return i.bottom >= 0 && i.top <= (window.innerHeight || document.documentElement.clientHeight) + k;
|
|
42
42
|
}, s = () => {
|
|
43
|
-
|
|
44
|
-
},
|
|
43
|
+
N() && K(!0);
|
|
44
|
+
}, Q = () => {
|
|
45
45
|
var i;
|
|
46
46
|
(i = window.appScreenContent) == null || i.addEventListener("scroll", s), window.addEventListener("resize", s), window.addEventListener("orientationchange", s);
|
|
47
|
-
},
|
|
47
|
+
}, X = () => {
|
|
48
48
|
var i;
|
|
49
49
|
(i = window.appScreenContent) == null || i.removeEventListener("scroll", s), window.removeEventListener("resize", s), window.removeEventListener("orientationchange", s);
|
|
50
50
|
};
|
|
51
|
-
return s(),
|
|
51
|
+
return s(), Q(), X;
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
54
|
-
typeof
|
|
55
|
-
}, [
|
|
53
|
+
}), R(() => {
|
|
54
|
+
typeof g == "function" && y && !$.current && ($.current = !0, g());
|
|
55
|
+
}, [g, y]), F(() => {
|
|
56
56
|
const t = m.current;
|
|
57
|
-
return t != null && t.complete ? (t.style.transition = "none", t.style.opacity = "1", v(!0)) : t && (t.style.transition = "opacity 0.3s", t.style.opacity = "0", t.onload = () => {
|
|
57
|
+
return t != null && t.complete ? t.naturalWidth > 0 ? (t.style.transition = "none", t.style.opacity = "1", v(!0)) : (t.style.opacity = "0", S(!0)) : t && (t.style.transition = "opacity 0.3s", t.style.opacity = "0", t.onload = () => {
|
|
58
58
|
t.style.opacity = "1", v(!0), t.onload = null;
|
|
59
|
+
}, t.onerror = () => {
|
|
60
|
+
S(!0), t.onerror = null;
|
|
59
61
|
}), () => {
|
|
60
|
-
t && (t.onload = null);
|
|
62
|
+
t && (t.onload = null, t.onerror = null);
|
|
61
63
|
};
|
|
62
|
-
}, [y]), I ? /* @__PURE__ */
|
|
63
|
-
|
|
64
|
+
}, [y]), I ? /* @__PURE__ */ L(
|
|
65
|
+
M,
|
|
64
66
|
{
|
|
65
67
|
...e,
|
|
66
|
-
ref:
|
|
68
|
+
ref: a,
|
|
67
69
|
inlineCSS: x ? {
|
|
68
70
|
position: "relative",
|
|
69
71
|
paddingTop: `calc(100% / ${n} * ${o})`,
|
|
@@ -82,7 +84,7 @@ const k = 100, ot = r(
|
|
|
82
84
|
},
|
|
83
85
|
children: [
|
|
84
86
|
T && /* @__PURE__ */ d(
|
|
85
|
-
|
|
87
|
+
U,
|
|
86
88
|
{
|
|
87
89
|
width: "100%",
|
|
88
90
|
height: "100%",
|
|
@@ -96,19 +98,19 @@ const k = 100, ot = r(
|
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
100
|
),
|
|
99
|
-
y && /* @__PURE__ */
|
|
101
|
+
y && /* @__PURE__ */ L(Y, { children: [
|
|
100
102
|
/* @__PURE__ */ d(
|
|
101
103
|
"img",
|
|
102
104
|
{
|
|
103
105
|
ref: m,
|
|
104
|
-
src:
|
|
105
|
-
alt:
|
|
106
|
+
src: j,
|
|
107
|
+
alt: r,
|
|
106
108
|
width: n,
|
|
107
109
|
height: o,
|
|
108
|
-
onLoad:
|
|
109
|
-
onError:
|
|
110
|
+
onLoad: z,
|
|
111
|
+
onError: B,
|
|
110
112
|
"aria-hidden": f,
|
|
111
|
-
...
|
|
113
|
+
...u,
|
|
112
114
|
style: {
|
|
113
115
|
position: "absolute",
|
|
114
116
|
top: 0,
|
|
@@ -116,19 +118,19 @@ const k = 100, ot = r(
|
|
|
116
118
|
width: "100%",
|
|
117
119
|
height: "100%",
|
|
118
120
|
transition: "opacity 0.3s",
|
|
119
|
-
...
|
|
121
|
+
...u.style
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
),
|
|
123
|
-
|
|
125
|
+
W && ((c == null ? void 0 : c(f)) || /* @__PURE__ */ d(V, { style: { opacity: f ? 1 : 0, transition: "opacity 0.3s" } }))
|
|
124
126
|
] })
|
|
125
127
|
]
|
|
126
128
|
}
|
|
127
|
-
) : /* @__PURE__ */
|
|
128
|
-
|
|
129
|
+
) : /* @__PURE__ */ L(
|
|
130
|
+
M,
|
|
129
131
|
{
|
|
130
132
|
...e,
|
|
131
|
-
ref:
|
|
133
|
+
ref: a,
|
|
132
134
|
inlineCSS: x ? {
|
|
133
135
|
position: "relative",
|
|
134
136
|
paddingTop: `calc(100% / ${n} * ${o})`,
|
|
@@ -148,7 +150,7 @@ const k = 100, ot = r(
|
|
|
148
150
|
},
|
|
149
151
|
children: [
|
|
150
152
|
T && /* @__PURE__ */ d(
|
|
151
|
-
|
|
153
|
+
U,
|
|
152
154
|
{
|
|
153
155
|
width: "100%",
|
|
154
156
|
height: "100%",
|
|
@@ -166,14 +168,14 @@ const k = 100, ot = r(
|
|
|
166
168
|
"img",
|
|
167
169
|
{
|
|
168
170
|
ref: m,
|
|
169
|
-
src:
|
|
170
|
-
alt:
|
|
171
|
+
src: j,
|
|
172
|
+
alt: r,
|
|
171
173
|
width: n,
|
|
172
174
|
height: o,
|
|
173
|
-
onLoad:
|
|
174
|
-
onError:
|
|
175
|
+
onLoad: z,
|
|
176
|
+
onError: B,
|
|
175
177
|
"aria-hidden": f,
|
|
176
|
-
...
|
|
178
|
+
...u,
|
|
177
179
|
style: {
|
|
178
180
|
position: "absolute",
|
|
179
181
|
top: 0,
|
|
@@ -181,11 +183,11 @@ const k = 100, ot = r(
|
|
|
181
183
|
width: "100%",
|
|
182
184
|
height: "100%",
|
|
183
185
|
transition: "opacity 0.3s",
|
|
184
|
-
...
|
|
186
|
+
...u.style
|
|
185
187
|
}
|
|
186
188
|
}
|
|
187
189
|
),
|
|
188
|
-
|
|
190
|
+
W && ((c == null ? void 0 : c(f)) || /* @__PURE__ */ d(V, { style: { opacity: f ? 1 : 0, transition: "opacity 0.3s" } }))
|
|
189
191
|
]
|
|
190
192
|
}
|
|
191
193
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SyntheticEvent } from 'react';
|
|
2
2
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
4
|
import { BannerProps } from '..';
|
|
4
5
|
export interface BannerAccountProps extends Omit<FlexboxProps, 'title'> {
|
|
5
6
|
id: string;
|
|
@@ -7,6 +8,7 @@ export interface BannerAccountProps extends Omit<FlexboxProps, 'title'> {
|
|
|
7
8
|
image?: string;
|
|
8
9
|
}>;
|
|
9
10
|
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
11
|
+
imageProps?: Partial<ImageProps>;
|
|
10
12
|
}
|
|
11
|
-
declare function BannerAccount({ id, banners, onClickBanner, ...props }: BannerAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function BannerAccount({ id, banners, onClickBanner, imageProps, ...props }: BannerAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
14
|
export default BannerAccount;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import t from "@dotss/ui/Flexbox";
|
|
3
|
-
import
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import
|
|
3
|
+
import b from "@dotss/ui/Typography";
|
|
4
|
+
import { useTheme as f } from "@emotion/react";
|
|
5
|
+
import g from "../../../../shared/components/Image/Image.mjs";
|
|
6
6
|
import "@dotss/ui";
|
|
7
7
|
import "@dotss/ui/core/useTheme";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
function
|
|
11
|
-
const { palette:
|
|
8
|
+
import S from "../../../../shared/components/Swiper/Swiper.mjs";
|
|
9
|
+
import w from "../../../../shared/components/Swiper/SwiperBlock/SwiperBlock.mjs";
|
|
10
|
+
function I({ id: o, banners: c, onClickBanner: n, imageProps: l, ...d }) {
|
|
11
|
+
const { palette: p } = f(), h = (i) => (r) => {
|
|
12
12
|
n && typeof n == "function" && (r.stopPropagation(), r.preventDefault(), n(i, r));
|
|
13
|
-
},
|
|
13
|
+
}, m = ({ page: i, totalPages: r }) => r <= 1 ? null : /* @__PURE__ */ e(
|
|
14
14
|
t,
|
|
15
15
|
{
|
|
16
16
|
alignItems: "center",
|
|
@@ -26,10 +26,10 @@ function R({ id: o, banners: c, onClickBanner: n, ...l }) {
|
|
|
26
26
|
minWidth: 36,
|
|
27
27
|
minHeight: 20,
|
|
28
28
|
borderRadius: 24,
|
|
29
|
-
backgroundColor:
|
|
29
|
+
backgroundColor: p.etc.dimmed02
|
|
30
30
|
},
|
|
31
31
|
children: /* @__PURE__ */ a(
|
|
32
|
-
|
|
32
|
+
b,
|
|
33
33
|
{
|
|
34
34
|
tag: "p",
|
|
35
35
|
variant: "c5R",
|
|
@@ -49,28 +49,28 @@ function R({ id: o, banners: c, onClickBanner: n, ...l }) {
|
|
|
49
49
|
)
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
|
-
return /* @__PURE__ */ a(t, { inlineCSS: { width: "100%" }, ...
|
|
52
|
+
return /* @__PURE__ */ a(t, { inlineCSS: { width: "100%" }, ...d, children: [
|
|
53
53
|
/* @__PURE__ */ e(t, { id: `tictoccroc-banner-${o}`, visuallyHidden: !0, children: "배너" }),
|
|
54
54
|
/* @__PURE__ */ e(
|
|
55
|
-
|
|
55
|
+
S,
|
|
56
56
|
{
|
|
57
|
-
renderPagination:
|
|
57
|
+
renderPagination: m,
|
|
58
58
|
loop: !0,
|
|
59
59
|
inlineCSS: { borderRadius: 12, overflow: "hidden" },
|
|
60
60
|
"aria-describedby": `tictoccroc-banner-${o}`,
|
|
61
|
-
children: c.map(({ id: i, url: r, image:
|
|
61
|
+
children: c.map(({ id: i, url: r, image: s }, u) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(
|
|
62
62
|
t,
|
|
63
63
|
{
|
|
64
64
|
tag: "a",
|
|
65
65
|
href: r,
|
|
66
66
|
draggable: !1,
|
|
67
|
-
onClick:
|
|
67
|
+
onClick: h(r),
|
|
68
68
|
inlineCSS: { width: "100%" },
|
|
69
69
|
children: /* @__PURE__ */ e(
|
|
70
|
-
|
|
70
|
+
g,
|
|
71
71
|
{
|
|
72
|
-
src:
|
|
73
|
-
alt: `배너 ${
|
|
72
|
+
src: s || "",
|
|
73
|
+
alt: `배너 ${u + 1}`,
|
|
74
74
|
width: 328,
|
|
75
75
|
height: 100,
|
|
76
76
|
draggable: !1,
|
|
@@ -78,7 +78,8 @@ function R({ id: o, banners: c, onClickBanner: n, ...l }) {
|
|
|
78
78
|
enableErrorFallback: !0,
|
|
79
79
|
withIntrinsicRatio: !0,
|
|
80
80
|
wrapperProps: { inlineCSS: { width: "100%" } },
|
|
81
|
-
style: { width: "100%", objectFit: "cover" }
|
|
81
|
+
style: { width: "100%", objectFit: "cover" },
|
|
82
|
+
...l
|
|
82
83
|
}
|
|
83
84
|
)
|
|
84
85
|
}
|
|
@@ -88,5 +89,5 @@ function R({ id: o, banners: c, onClickBanner: n, ...l }) {
|
|
|
88
89
|
] });
|
|
89
90
|
}
|
|
90
91
|
export {
|
|
91
|
-
|
|
92
|
+
I as default
|
|
92
93
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
4
|
import { BannerProps } from '..';
|
|
4
5
|
export interface Carousel1AccountProps extends Omit<FlexboxProps, 'title'> {
|
|
5
6
|
id: string;
|
|
@@ -8,6 +9,7 @@ export interface Carousel1AccountProps extends Omit<FlexboxProps, 'title'> {
|
|
|
8
9
|
image?: string;
|
|
9
10
|
}>;
|
|
10
11
|
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
12
|
+
imageProps?: Partial<ImageProps>;
|
|
11
13
|
}
|
|
12
|
-
declare function Carousel1Account({ id, title, banners, onClickBanner, ...props }: Carousel1AccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function Carousel1Account({ id, title, banners, onClickBanner, imageProps, ...props }: Carousel1AccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
15
|
export default Carousel1Account;
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e, Fragment as f, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import b from "@dotss/ui/core/useTheme";
|
|
3
3
|
import c from "@dotss/ui/Flexbox";
|
|
4
4
|
import l from "@dotss/ui/Typography";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import C from "../../../../shared/components/Carousel/Carousel.mjs";
|
|
6
|
+
import S from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
7
|
+
import x from "../../../../shared/components/Image/Image.mjs";
|
|
8
8
|
import "@dotss/ui";
|
|
9
|
-
function
|
|
10
|
-
|
|
9
|
+
function I({
|
|
10
|
+
id: d,
|
|
11
|
+
title: m,
|
|
12
|
+
banners: p,
|
|
13
|
+
onClickBanner: r,
|
|
14
|
+
imageProps: s,
|
|
15
|
+
...u
|
|
16
|
+
}) {
|
|
17
|
+
const { spacing: i } = b(), g = (o) => (t) => {
|
|
11
18
|
r && typeof r == "function" && (t.stopPropagation(), t.preventDefault(), r(o, t));
|
|
12
19
|
};
|
|
13
|
-
return /* @__PURE__ */ e(
|
|
20
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ n(c, { flexDirection: "column", inlineCSS: { width: "100%" }, ...u, children: [
|
|
14
21
|
/* @__PURE__ */ e(
|
|
15
22
|
l,
|
|
16
23
|
{
|
|
@@ -24,7 +31,7 @@ function D({ id: d, title: m, banners: p, onClickBanner: r, ...s }) {
|
|
|
24
31
|
children: m
|
|
25
32
|
}
|
|
26
33
|
),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
34
|
+
/* @__PURE__ */ e(C, { rowCount: 2, step: 1, spacing: 5, children: p.map(({ id: o, title: t, url: a, image: h }) => /* @__PURE__ */ e(S, { children: /* @__PURE__ */ n(
|
|
28
35
|
c,
|
|
29
36
|
{
|
|
30
37
|
tag: "a",
|
|
@@ -32,13 +39,13 @@ function D({ id: d, title: m, banners: p, onClickBanner: r, ...s }) {
|
|
|
32
39
|
alignItems: "center",
|
|
33
40
|
gap: 4,
|
|
34
41
|
draggable: !1,
|
|
35
|
-
onClick:
|
|
42
|
+
onClick: g(a),
|
|
36
43
|
inlineCSS: { width: 264 },
|
|
37
44
|
children: [
|
|
38
45
|
/* @__PURE__ */ e(
|
|
39
|
-
|
|
46
|
+
x,
|
|
40
47
|
{
|
|
41
|
-
src:
|
|
48
|
+
src: h || "",
|
|
42
49
|
width: 140,
|
|
43
50
|
height: 98,
|
|
44
51
|
alt: `${t} 이미지`,
|
|
@@ -47,7 +54,8 @@ function D({ id: d, title: m, banners: p, onClickBanner: r, ...s }) {
|
|
|
47
54
|
borderRadius: 12,
|
|
48
55
|
enableFallback: !0,
|
|
49
56
|
enableErrorFallback: !0,
|
|
50
|
-
style: { objectFit: "cover" }
|
|
57
|
+
style: { objectFit: "cover" },
|
|
58
|
+
...s
|
|
51
59
|
}
|
|
52
60
|
),
|
|
53
61
|
/* @__PURE__ */ e(l, { tag: "p", variant: "b2M", lineClamp: 2, children: t })
|
|
@@ -57,5 +65,5 @@ function D({ id: d, title: m, banners: p, onClickBanner: r, ...s }) {
|
|
|
57
65
|
] }) });
|
|
58
66
|
}
|
|
59
67
|
export {
|
|
60
|
-
|
|
68
|
+
I as default
|
|
61
69
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
4
|
import { BannerProps } from '..';
|
|
4
5
|
export interface Carousel2AccountProps extends Omit<FlexboxProps, 'title'> {
|
|
5
6
|
id: string;
|
|
@@ -10,6 +11,7 @@ export interface Carousel2AccountProps extends Omit<FlexboxProps, 'title'> {
|
|
|
10
11
|
}>;
|
|
11
12
|
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
12
13
|
bannerWidth?: number;
|
|
14
|
+
imageProps?: Partial<ImageProps>;
|
|
13
15
|
}
|
|
14
|
-
declare function Carousel2Account({ id, title, banners, onClickBanner, ...props }: Carousel2AccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function Carousel2Account({ id, title, banners, onClickBanner, imageProps, ...props }: Carousel2AccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
17
|
export default Carousel2Account;
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import b from "@dotss/ui/core/useTheme";
|
|
3
3
|
import a from "@dotss/ui/Flexbox";
|
|
4
4
|
import l from "@dotss/ui/Typography";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import C from "../../../../shared/components/Carousel/Carousel.mjs";
|
|
6
|
+
import x from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
7
|
+
import S from "../../../../shared/components/Image/Image.mjs";
|
|
8
8
|
import "@dotss/ui";
|
|
9
|
-
function
|
|
10
|
-
|
|
9
|
+
function k({
|
|
10
|
+
id: p,
|
|
11
|
+
title: d,
|
|
12
|
+
banners: m,
|
|
13
|
+
onClickBanner: r,
|
|
14
|
+
imageProps: s,
|
|
15
|
+
...u
|
|
16
|
+
}) {
|
|
17
|
+
const { spacing: i } = b(), g = (o) => (t) => {
|
|
11
18
|
r && typeof r == "function" && (t.stopPropagation(), t.preventDefault(), r(o, t));
|
|
12
19
|
};
|
|
13
|
-
return /* @__PURE__ */ n(a, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...
|
|
20
|
+
return /* @__PURE__ */ n(a, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...u, children: [
|
|
14
21
|
/* @__PURE__ */ e(
|
|
15
22
|
l,
|
|
16
23
|
{
|
|
@@ -24,7 +31,7 @@ function $({ id: p, title: d, banners: m, onClickBanner: r, ...s }) {
|
|
|
24
31
|
children: d
|
|
25
32
|
}
|
|
26
33
|
),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
34
|
+
/* @__PURE__ */ e(C, { rowCount: 1, step: 1, spacing: 3, children: m.map(({ id: o, title: t, subtitle: h, url: c, image: f }) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ n(
|
|
28
35
|
a,
|
|
29
36
|
{
|
|
30
37
|
tag: "a",
|
|
@@ -32,13 +39,13 @@ function $({ id: p, title: d, banners: m, onClickBanner: r, ...s }) {
|
|
|
32
39
|
flexDirection: "column",
|
|
33
40
|
gap: 3,
|
|
34
41
|
draggable: !1,
|
|
35
|
-
onClick:
|
|
42
|
+
onClick: g(c),
|
|
36
43
|
inlineCSS: { width: 240 },
|
|
37
44
|
children: [
|
|
38
45
|
/* @__PURE__ */ e(
|
|
39
|
-
|
|
46
|
+
S,
|
|
40
47
|
{
|
|
41
|
-
src:
|
|
48
|
+
src: f || "",
|
|
42
49
|
width: 240,
|
|
43
50
|
height: 168,
|
|
44
51
|
alt: `${t} 이미지`,
|
|
@@ -47,12 +54,13 @@ function $({ id: p, title: d, banners: m, onClickBanner: r, ...s }) {
|
|
|
47
54
|
borderRadius: 12,
|
|
48
55
|
enableFallback: !0,
|
|
49
56
|
enableErrorFallback: !0,
|
|
50
|
-
style: { objectFit: "cover" }
|
|
57
|
+
style: { objectFit: "cover" },
|
|
58
|
+
...s
|
|
51
59
|
}
|
|
52
60
|
),
|
|
53
61
|
/* @__PURE__ */ n(a, { flexDirection: "column", gap: 1, children: [
|
|
54
62
|
/* @__PURE__ */ e(l, { tag: "p", variant: "h4B", lineClamp: 1, children: t }),
|
|
55
|
-
/* @__PURE__ */ e(l, { tag: "p", variant: "b4R", lineClamp: 1, color: "grey.70", children:
|
|
63
|
+
/* @__PURE__ */ e(l, { tag: "p", variant: "b4R", lineClamp: 1, color: "grey.70", children: h })
|
|
56
64
|
] })
|
|
57
65
|
]
|
|
58
66
|
}
|
|
@@ -60,5 +68,5 @@ function $({ id: p, title: d, banners: m, onClickBanner: r, ...s }) {
|
|
|
60
68
|
] });
|
|
61
69
|
}
|
|
62
70
|
export {
|
|
63
|
-
|
|
71
|
+
k as default
|
|
64
72
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
4
|
import { BannerProps } from '..';
|
|
4
5
|
export interface TextAccountProps extends Omit<FlexboxProps, 'title'> {
|
|
5
6
|
id: string;
|
|
@@ -8,6 +9,7 @@ export interface TextAccountProps extends Omit<FlexboxProps, 'title'> {
|
|
|
8
9
|
image?: string;
|
|
9
10
|
}>;
|
|
10
11
|
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
12
|
+
imageProps?: Partial<ImageProps>;
|
|
11
13
|
}
|
|
12
|
-
declare function TextAccount({ id, title, banners, onClickBanner, ...props }: TextAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function TextAccount({ id, title, banners, onClickBanner, imageProps, ...props }: TextAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
15
|
export default TextAccount;
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import S from "@dotss/ui/core/useTheme";
|
|
3
3
|
import i from "@dotss/ui/Flexbox";
|
|
4
|
-
import { useCheckHoverPossible as
|
|
5
|
-
import
|
|
4
|
+
import { useCheckHoverPossible as x } from "@dotss/ui/hooks";
|
|
5
|
+
import C from "@dotss/ui/Icon";
|
|
6
6
|
import d from "@dotss/ui/Typography";
|
|
7
|
-
import
|
|
7
|
+
import v from "../../../../shared/components/Image/Image.mjs";
|
|
8
8
|
import "@dotss/ui";
|
|
9
|
-
function
|
|
10
|
-
|
|
9
|
+
function P({
|
|
10
|
+
id: a,
|
|
11
|
+
title: p,
|
|
12
|
+
banners: s,
|
|
13
|
+
onClickBanner: n,
|
|
14
|
+
imageProps: g,
|
|
15
|
+
...f
|
|
16
|
+
}) {
|
|
17
|
+
const { spacing: o, palette: c } = S(), { isHoverPossible: u } = x(), b = (r) => (t) => {
|
|
11
18
|
n && typeof n == "function" && (t.stopPropagation(), t.preventDefault(), n(r, t));
|
|
12
19
|
};
|
|
13
|
-
return /* @__PURE__ */ m(i, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...
|
|
20
|
+
return /* @__PURE__ */ m(i, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...f, children: [
|
|
14
21
|
/* @__PURE__ */ e(
|
|
15
22
|
d,
|
|
16
23
|
{
|
|
@@ -32,13 +39,13 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
|
|
|
32
39
|
p: 4,
|
|
33
40
|
gap: 3,
|
|
34
41
|
alignItems: "center",
|
|
35
|
-
onClick:
|
|
42
|
+
onClick: b(l),
|
|
36
43
|
inlineCSS: {
|
|
37
44
|
width: "100%",
|
|
38
45
|
"&:focus-within": {
|
|
39
46
|
backgroundColor: c.grey[10]
|
|
40
47
|
},
|
|
41
|
-
...
|
|
48
|
+
...u ? {
|
|
42
49
|
"&:hover": {
|
|
43
50
|
backgroundColor: c.grey[10]
|
|
44
51
|
}
|
|
@@ -54,14 +61,15 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
|
|
|
54
61
|
overflow: "hidden"
|
|
55
62
|
},
|
|
56
63
|
children: /* @__PURE__ */ e(
|
|
57
|
-
|
|
64
|
+
v,
|
|
58
65
|
{
|
|
59
66
|
width: 100,
|
|
60
67
|
height: 78,
|
|
61
68
|
src: h,
|
|
62
69
|
alt: `${t} 이미지`,
|
|
63
70
|
enableFallback: !0,
|
|
64
|
-
enableErrorFallback: !0
|
|
71
|
+
enableErrorFallback: !0,
|
|
72
|
+
...g
|
|
65
73
|
}
|
|
66
74
|
)
|
|
67
75
|
}
|
|
@@ -84,7 +92,7 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
|
|
|
84
92
|
inlineCSS: {
|
|
85
93
|
whiteSpace: "nowrap"
|
|
86
94
|
},
|
|
87
|
-
children: /* @__PURE__ */ e(
|
|
95
|
+
children: /* @__PURE__ */ e(C, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
|
|
88
96
|
}
|
|
89
97
|
)
|
|
90
98
|
]
|
|
@@ -93,5 +101,5 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
|
|
|
93
101
|
] });
|
|
94
102
|
}
|
|
95
103
|
export {
|
|
96
|
-
|
|
104
|
+
P as default
|
|
97
105
|
};
|
package/package.json
CHANGED