@dotss/tictoccroc 0.0.11 → 0.0.13
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/index.d.ts +1 -0
- package/dist/index.mjs +122 -104
- package/dist/shared/components/Carousel/Carousel.mjs +68 -67
- package/dist/shared/components/Image/Image.d.ts +5 -2
- package/dist/shared/components/Image/Image.error.d.ts +5 -0
- package/dist/shared/components/Image/Image.error.mjs +41 -0
- package/dist/shared/components/Image/Image.mjs +114 -100
- package/dist/shared/components/Image/index.d.ts +2 -0
- package/dist/shared/components/Image/index.mjs +4 -2
- package/dist/shared/components/Masonry/Masonry.utils.mjs +19 -16
- package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +10 -9
- package/dist/shared/components/Swiper/Swiper.mjs +16 -16
- package/dist/shared/components/index.mjs +16 -14
- package/dist/teacher/home/components/BannerAccount/BannerAccount.d.ts +12 -0
- package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.d.ts +2 -0
- package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +12 -0
- package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +92 -0
- package/dist/teacher/home/components/BannerAccount/index.d.ts +4 -0
- package/dist/teacher/home/components/BannerAccount/index.mjs +7 -0
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.d.ts +13 -0
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.d.ts +2 -0
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +67 -0
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +61 -0
- package/dist/teacher/home/components/Carousel1Account/index.d.ts +4 -0
- package/dist/teacher/home/components/Carousel1Account/index.mjs +7 -0
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.d.ts +15 -0
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.d.ts +2 -0
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +94 -0
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +64 -0
- package/dist/teacher/home/components/Carousel2Account/index.d.ts +4 -0
- package/dist/teacher/home/components/Carousel2Account/index.mjs +7 -0
- package/dist/teacher/home/components/TextAccount/TextAccount.d.ts +13 -0
- package/dist/teacher/home/components/TextAccount/TextAccount.fallback.d.ts +2 -0
- package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +98 -0
- package/dist/teacher/home/components/TextAccount/TextAccount.mjs +97 -0
- package/dist/teacher/home/components/TextAccount/index.d.ts +4 -0
- package/dist/teacher/home/components/TextAccount/index.mjs +7 -0
- package/dist/teacher/home/components/index.d.ts +14 -0
- package/dist/teacher/home/components/index.mjs +18 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +3 -2
- package/package.json +9 -1
|
@@ -4,9 +4,9 @@ import { Flexbox as K } from "@dotss/ui";
|
|
|
4
4
|
import I from "../MediaDialog/MediaBlock/MediaBlock.mjs";
|
|
5
5
|
import { createSwipeEvent as b } from "./Swiper.utils.mjs";
|
|
6
6
|
import U from "./SwiperBlock/SwiperBlock.mjs";
|
|
7
|
-
function
|
|
7
|
+
function vr({
|
|
8
8
|
children: j,
|
|
9
|
-
initialPage:
|
|
9
|
+
initialPage: E = 0,
|
|
10
10
|
onSwipe: u,
|
|
11
11
|
onSwiping: T,
|
|
12
12
|
loop: y = !1,
|
|
@@ -15,7 +15,7 @@ function hr({
|
|
|
15
15
|
inlineCSS: S,
|
|
16
16
|
...w
|
|
17
17
|
}) {
|
|
18
|
-
const [P, R] = _(
|
|
18
|
+
const [P, R] = _(E), [s, rr] = _(0), t = f(null), X = f(0), W = f(0), q = f(0), Y = f(0), o = f(!1), d = f(!0), N = f(""), n = f(E), H = f(!1), l = f(null), p = x.count(j), m = x.toArray(j).filter(G).filter((r) => r.type === U || r.type === I), D = p > 1 && !O, tr = x.toArray(m == null ? void 0 : m[0]).filter(G).filter((r) => r.type === U || r.type === I), er = x.toArray(m == null ? void 0 : m[(m == null ? void 0 : m.length) - 1]).filter(G).filter((r) => r.type === U || r.type === I), J = (r, e, i) => {
|
|
19
19
|
!t.current || !D || (N.current = t.current.style.transform, W.current = r, X.current = r + t.current.offsetWidth * (i + 1), q.current = e);
|
|
20
20
|
}, C = (r, e, i) => {
|
|
21
21
|
if (!t.current || !D || !o.current || !d.current)
|
|
@@ -38,10 +38,10 @@ function hr({
|
|
|
38
38
|
n.current = s - 1, u == null || u(
|
|
39
39
|
b({ realPage: n.current, totalPages: s, lastPage: 0, isLoop: !0 })
|
|
40
40
|
), t.current.style.transform = "translate3d(0, 0, 0)", l.current = (M) => {
|
|
41
|
-
var
|
|
41
|
+
var v, h, L;
|
|
42
42
|
if (M.propertyName === "transform") {
|
|
43
43
|
if (!t.current) return;
|
|
44
|
-
t.current.style.transition = "none", t.current.style.transform = `translate3d(calc(-100% * ${s}), 0, 0)`, R(s - 1), o.current = !1, d.current = !0, (L = (
|
|
44
|
+
t.current.style.transition = "none", t.current.style.transform = `translate3d(calc(-100% * ${s}), 0, 0)`, R(s - 1), o.current = !1, d.current = !0, (L = (h = (v = t.current) == null ? void 0 : v.children) == null ? void 0 : h[s]) == null || L.focus();
|
|
45
45
|
}
|
|
46
46
|
}, t.current.addEventListener("transitionend", l.current);
|
|
47
47
|
return;
|
|
@@ -54,10 +54,10 @@ function hr({
|
|
|
54
54
|
isLoop: !0
|
|
55
55
|
})
|
|
56
56
|
), t.current.style.transform = `translate3d(calc(-100% * ${a + 2}), 0, 0)`, l.current = (M) => {
|
|
57
|
-
var
|
|
57
|
+
var v, h, L;
|
|
58
58
|
if (M.propertyName === "transform") {
|
|
59
59
|
if (!t.current) return;
|
|
60
|
-
t.current.style.transition = "none", t.current.style.transform = "translate3d(-100%, 0, 0)", R(0), o.current = !1, d.current = !0, (L = (
|
|
60
|
+
t.current.style.transition = "none", t.current.style.transform = "translate3d(-100%, 0, 0)", R(0), o.current = !1, d.current = !0, (L = (h = (v = t.current) == null ? void 0 : v.children) == null ? void 0 : h[1]) == null || L.focus();
|
|
61
61
|
}
|
|
62
62
|
}, t.current.addEventListener("transitionend", l.current);
|
|
63
63
|
return;
|
|
@@ -84,13 +84,13 @@ function hr({
|
|
|
84
84
|
isLoop: !1
|
|
85
85
|
})
|
|
86
86
|
), t.current.style.transform = N.current), l.current = (M) => {
|
|
87
|
-
var
|
|
87
|
+
var v;
|
|
88
88
|
if (M.propertyName === "transform") {
|
|
89
89
|
o.current = !1, d.current = !0;
|
|
90
|
-
const
|
|
90
|
+
const h = Array.from(((v = t.current) == null ? void 0 : v.children) ?? []).find(
|
|
91
91
|
(L) => L.getAttribute("aria-current") === "page"
|
|
92
92
|
);
|
|
93
|
-
|
|
93
|
+
h && h.focus();
|
|
94
94
|
}
|
|
95
95
|
}, t.current.addEventListener("transitionend", l.current);
|
|
96
96
|
}, nr = (r) => {
|
|
@@ -163,7 +163,7 @@ function hr({
|
|
|
163
163
|
};
|
|
164
164
|
}, [D, T, y, s]), k(() => {
|
|
165
165
|
const r = t.current, e = (i) => {
|
|
166
|
-
d.current || i.stopPropagation();
|
|
166
|
+
d.current || (i.stopPropagation(), i.preventDefault());
|
|
167
167
|
};
|
|
168
168
|
return r == null || r.addEventListener("click", e), () => {
|
|
169
169
|
r == null || r.removeEventListener("click", e);
|
|
@@ -174,10 +174,10 @@ function hr({
|
|
|
174
174
|
l.current && r && (r.removeEventListener("transitionend", l.current), l.current = null);
|
|
175
175
|
};
|
|
176
176
|
}, []), k(() => {
|
|
177
|
-
rr(
|
|
178
|
-
}, [
|
|
179
|
-
t.current && !H.current && (H.current = !0, t.current.style.transition = "none", t.current.style.transform = `translate3d(calc(-100% * ${
|
|
180
|
-
}, [
|
|
177
|
+
rr(p);
|
|
178
|
+
}, [p]), k(() => {
|
|
179
|
+
t.current && !H.current && (H.current = !0, t.current.style.transition = "none", t.current.style.transform = `translate3d(calc(-100% * ${p < E + 1 ? p : E + 1}), 0, 0)`);
|
|
180
|
+
}, [E, p]), /* @__PURE__ */ Z(
|
|
181
181
|
K,
|
|
182
182
|
{
|
|
183
183
|
flexGrow: 1,
|
|
@@ -241,5 +241,5 @@ function hr({
|
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
243
|
export {
|
|
244
|
-
|
|
244
|
+
vr as default
|
|
245
245
|
};
|
|
@@ -2,7 +2,7 @@ import { default as a } from "./Scheduler/Scheduler.mjs";
|
|
|
2
2
|
import { default as t } from "./Scheduler/ScheduleEvent/ScheduleEvent.mjs";
|
|
3
3
|
import { default as f } from "./Scheduler/ScheduleBlock/ScheduleBlock.mjs";
|
|
4
4
|
import { getAvailableDateRange as u } from "./Scheduler/Scheduler.utils.mjs";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as s } from "./MediaDialog/MediaDialog.mjs";
|
|
6
6
|
import { default as x } from "./MediaDialog/MediaBlock/MediaBlock.mjs";
|
|
7
7
|
import { default as n } from "./MediaDialog/MediaDialogContent/MediaDialogContent.mjs";
|
|
8
8
|
import { default as g } from "./MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs";
|
|
@@ -12,28 +12,30 @@ import { default as C } from "./Swiper/SwiperBlock/SwiperBlock.mjs";
|
|
|
12
12
|
import { default as R } from "./Carousel/Carousel.mjs";
|
|
13
13
|
import { default as v } from "./Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
14
14
|
import { default as y } from "./TimePicker/TimePicker.mjs";
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
15
|
+
import { default as E } from "./Roller/Roller.mjs";
|
|
16
|
+
import { default as T } from "./Roller/RollerBlock/RollerBlock.mjs";
|
|
17
17
|
import { default as L } from "./Image/Image.mjs";
|
|
18
|
-
import { default as j } from "./
|
|
19
|
-
import { default as z } from "./
|
|
20
|
-
import { default as H } from "./Masonry/
|
|
21
|
-
import { default as K } from "./
|
|
18
|
+
import { default as j } from "./Image/Image.error.mjs";
|
|
19
|
+
import { default as z } from "./Calendar/Calendar.mjs";
|
|
20
|
+
import { default as H } from "./Masonry/Masonry.mjs";
|
|
21
|
+
import { default as K } from "./Masonry/MasonryBlock/MasonryBlock.mjs";
|
|
22
|
+
import { default as O } from "./LoadingAnnouncer/LoadingAnnouncer.mjs";
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
+
z as Calendar,
|
|
24
25
|
R as Carousel,
|
|
25
26
|
v as CarouselSlide,
|
|
26
27
|
L as Image,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
H as
|
|
28
|
+
j as ImageError,
|
|
29
|
+
O as LoadingAnnouncer,
|
|
30
|
+
H as Masonry,
|
|
31
|
+
K as MasonryBlock,
|
|
30
32
|
x as MediaBlock,
|
|
31
|
-
|
|
33
|
+
s as MediaDialog,
|
|
32
34
|
n as MediaDialogContent,
|
|
33
35
|
g as MediaDialogFooter,
|
|
34
36
|
k as MediaDialogToolbar,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
E as Roller,
|
|
38
|
+
T as RollerBlock,
|
|
37
39
|
f as ScheduleBlock,
|
|
38
40
|
t as ScheduleEvent,
|
|
39
41
|
a as Scheduler,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { BannerProps } from '..';
|
|
4
|
+
export interface BannerAccountProps extends Omit<FlexboxProps, 'title'> {
|
|
5
|
+
id: string;
|
|
6
|
+
banners: Array<BannerProps & {
|
|
7
|
+
image?: string;
|
|
8
|
+
}>;
|
|
9
|
+
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
10
|
+
}
|
|
11
|
+
declare function BannerAccount({ id, banners, onClickBanner, ...props }: BannerAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default BannerAccount;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs as r, Fragment as e, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Flexbox as i, Skeleton as o } from "@dotss/ui";
|
|
3
|
+
import t from "../../../../shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs";
|
|
4
|
+
function c() {
|
|
5
|
+
return /* @__PURE__ */ r(e, { children: [
|
|
6
|
+
/* @__PURE__ */ n(t, {}),
|
|
7
|
+
/* @__PURE__ */ n(i, { inlineCSS: { width: "100%" }, children: /* @__PURE__ */ n(o, { height: 100, borderRadius: 12, inlineCSS: { width: "100%" } }) })
|
|
8
|
+
] });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
c as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import t from "@dotss/ui/Flexbox";
|
|
3
|
+
import u from "@dotss/ui/Typography";
|
|
4
|
+
import { useTheme as b } from "@emotion/react";
|
|
5
|
+
import f from "../../../../shared/components/Image/Image.mjs";
|
|
6
|
+
import "@dotss/ui";
|
|
7
|
+
import "@dotss/ui/core/useTheme";
|
|
8
|
+
import g from "../../../../shared/components/Swiper/Swiper.mjs";
|
|
9
|
+
import S from "../../../../shared/components/Swiper/SwiperBlock/SwiperBlock.mjs";
|
|
10
|
+
function R({ id: o, banners: c, onClickBanner: n, ...l }) {
|
|
11
|
+
const { palette: d } = b(), p = (i) => (r) => {
|
|
12
|
+
n && typeof n == "function" && (r.stopPropagation(), r.preventDefault(), n(i, r));
|
|
13
|
+
}, h = ({ page: i, totalPages: r }) => r <= 1 ? null : /* @__PURE__ */ e(
|
|
14
|
+
t,
|
|
15
|
+
{
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
justifyContent: "center",
|
|
18
|
+
pt: 1,
|
|
19
|
+
pb: 1,
|
|
20
|
+
pl: 2,
|
|
21
|
+
pr: 2,
|
|
22
|
+
inlineCSS: {
|
|
23
|
+
position: "absolute",
|
|
24
|
+
right: 8,
|
|
25
|
+
bottom: 8,
|
|
26
|
+
minWidth: 36,
|
|
27
|
+
minHeight: 20,
|
|
28
|
+
borderRadius: 24,
|
|
29
|
+
backgroundColor: d.etc.dimmed02
|
|
30
|
+
},
|
|
31
|
+
children: /* @__PURE__ */ a(
|
|
32
|
+
u,
|
|
33
|
+
{
|
|
34
|
+
tag: "p",
|
|
35
|
+
variant: "c5R",
|
|
36
|
+
color: "grey.white",
|
|
37
|
+
inlineCSS: {
|
|
38
|
+
"& > span": {
|
|
39
|
+
fontWeight: 700
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"aria-label": `${r} 중 ${i + 1}`,
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ e("span", { children: i + 1 }),
|
|
45
|
+
"/",
|
|
46
|
+
r
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
return /* @__PURE__ */ a(t, { inlineCSS: { width: "100%" }, ...l, children: [
|
|
53
|
+
/* @__PURE__ */ e(t, { id: `tictoccroc-banner-${o}`, visuallyHidden: !0, children: "배너" }),
|
|
54
|
+
/* @__PURE__ */ e(
|
|
55
|
+
g,
|
|
56
|
+
{
|
|
57
|
+
renderPagination: h,
|
|
58
|
+
loop: !0,
|
|
59
|
+
inlineCSS: { borderRadius: 12, overflow: "hidden" },
|
|
60
|
+
"aria-describedby": `tictoccroc-banner-${o}`,
|
|
61
|
+
children: c.map(({ id: i, url: r, image: m }, s) => /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
|
|
62
|
+
t,
|
|
63
|
+
{
|
|
64
|
+
tag: "a",
|
|
65
|
+
href: r,
|
|
66
|
+
draggable: !1,
|
|
67
|
+
onClick: p(r),
|
|
68
|
+
inlineCSS: { width: "100%" },
|
|
69
|
+
children: /* @__PURE__ */ e(
|
|
70
|
+
f,
|
|
71
|
+
{
|
|
72
|
+
src: m || "",
|
|
73
|
+
alt: `배너 ${s + 1}`,
|
|
74
|
+
width: 328,
|
|
75
|
+
height: 100,
|
|
76
|
+
draggable: !1,
|
|
77
|
+
enableFallback: !0,
|
|
78
|
+
enableErrorFallback: !0,
|
|
79
|
+
withIntrinsicRatio: !0,
|
|
80
|
+
wrapperProps: { inlineCSS: { width: "100%" } },
|
|
81
|
+
style: { width: "100%", objectFit: "cover" }
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
}
|
|
85
|
+
) }, `tictoccroc-banner-account-${i}`))
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
] });
|
|
89
|
+
}
|
|
90
|
+
export {
|
|
91
|
+
R as default
|
|
92
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { BannerProps } from '..';
|
|
4
|
+
export interface Carousel1AccountProps extends Omit<FlexboxProps, 'title'> {
|
|
5
|
+
id: string;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
banners: Array<BannerProps & {
|
|
8
|
+
image?: string;
|
|
9
|
+
}>;
|
|
10
|
+
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
11
|
+
}
|
|
12
|
+
declare function Carousel1Account({ id, title, banners, onClickBanner, ...props }: Carousel1AccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default Carousel1Account;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsxs as n, Fragment as l, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import d from "@dotss/ui/core/useTheme";
|
|
3
|
+
import r from "@dotss/ui/Flexbox";
|
|
4
|
+
import e from "@dotss/ui/Skeleton";
|
|
5
|
+
import h from "../../../../shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs";
|
|
6
|
+
function s() {
|
|
7
|
+
const { spacing: t } = d();
|
|
8
|
+
return /* @__PURE__ */ n(l, { children: [
|
|
9
|
+
/* @__PURE__ */ i(h, {}),
|
|
10
|
+
/* @__PURE__ */ n(
|
|
11
|
+
r,
|
|
12
|
+
{
|
|
13
|
+
tag: "section",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
inlineCSS: { width: "100%", overflow: "hidden" },
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ i(
|
|
18
|
+
e,
|
|
19
|
+
{
|
|
20
|
+
height: 30,
|
|
21
|
+
inlineCSS: {
|
|
22
|
+
width: "50%",
|
|
23
|
+
marginBottom: t.content(3),
|
|
24
|
+
marginLeft: t.content(4)
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ n(r, { flexDirection: "row", gap: 5, ml: 4, children: [
|
|
29
|
+
/* @__PURE__ */ n(r, { flexDirection: "column", gap: 5, children: [
|
|
30
|
+
/* @__PURE__ */ n(r, { gap: 4, alignItems: "center", inlineCSS: { width: 264 }, children: [
|
|
31
|
+
/* @__PURE__ */ i(e, { width: 140, height: 98, borderRadius: 12 }),
|
|
32
|
+
/* @__PURE__ */ i(e, { height: 48, borderRadius: 12, inlineCSS: { flex: 1 } })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ n(r, { gap: 4, alignItems: "center", inlineCSS: { width: 264 }, children: [
|
|
35
|
+
/* @__PURE__ */ i(e, { width: 140, height: 98, borderRadius: 12 }),
|
|
36
|
+
/* @__PURE__ */ i(e, { height: 48, borderRadius: 12, inlineCSS: { flex: 1 } })
|
|
37
|
+
] })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ n(r, { flexDirection: "column", gap: 5, children: [
|
|
40
|
+
/* @__PURE__ */ n(r, { gap: 4, alignItems: "center", inlineCSS: { width: 264 }, children: [
|
|
41
|
+
/* @__PURE__ */ i(e, { width: 140, height: 98, borderRadius: 12 }),
|
|
42
|
+
/* @__PURE__ */ i(e, { height: 48, borderRadius: 12, inlineCSS: { flex: 1 } })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ n(r, { gap: 4, alignItems: "center", inlineCSS: { width: 264 }, children: [
|
|
45
|
+
/* @__PURE__ */ i(e, { width: 140, height: 98, borderRadius: 12 }),
|
|
46
|
+
/* @__PURE__ */ i(e, { height: 48, borderRadius: 12, inlineCSS: { flex: 1 } })
|
|
47
|
+
] })
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ n(r, { flexDirection: "column", gap: 5, children: [
|
|
50
|
+
/* @__PURE__ */ n(r, { gap: 4, alignItems: "center", inlineCSS: { width: 264 }, children: [
|
|
51
|
+
/* @__PURE__ */ i(e, { width: 140, height: 98, borderRadius: 12 }),
|
|
52
|
+
/* @__PURE__ */ i(e, { height: 48, borderRadius: 12, inlineCSS: { flex: 1 } })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ n(r, { gap: 4, alignItems: "center", inlineCSS: { width: 264 }, children: [
|
|
55
|
+
/* @__PURE__ */ i(e, { width: 140, height: 98, borderRadius: 12 }),
|
|
56
|
+
/* @__PURE__ */ i(e, { height: 48, borderRadius: 12, inlineCSS: { flex: 1 } })
|
|
57
|
+
] })
|
|
58
|
+
] })
|
|
59
|
+
] })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
] });
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
s as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx as e, Fragment as h, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import f from "@dotss/ui/core/useTheme";
|
|
3
|
+
import c from "@dotss/ui/Flexbox";
|
|
4
|
+
import l from "@dotss/ui/Typography";
|
|
5
|
+
import b from "../../../../shared/components/Carousel/Carousel.mjs";
|
|
6
|
+
import C from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
7
|
+
import S from "../../../../shared/components/Image/Image.mjs";
|
|
8
|
+
import "@dotss/ui";
|
|
9
|
+
function D({ id: d, title: m, banners: p, onClickBanner: r, ...s }) {
|
|
10
|
+
const { spacing: i } = f(), u = (o) => (t) => {
|
|
11
|
+
r && typeof r == "function" && (t.stopPropagation(), t.preventDefault(), r(o, t));
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ e(h, { children: /* @__PURE__ */ n(c, { flexDirection: "column", inlineCSS: { width: "100%" }, ...s, children: [
|
|
14
|
+
/* @__PURE__ */ e(
|
|
15
|
+
l,
|
|
16
|
+
{
|
|
17
|
+
id: `banner-account-carousel1-${d}`,
|
|
18
|
+
variant: "h2B",
|
|
19
|
+
inlineCSS: {
|
|
20
|
+
paddingLeft: i.content(4),
|
|
21
|
+
paddingRight: i.content(4),
|
|
22
|
+
marginBottom: i.content(3)
|
|
23
|
+
},
|
|
24
|
+
children: m
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ e(b, { rowCount: 2, step: 1, spacing: 5, children: p.map(({ id: o, title: t, url: a, image: g }) => /* @__PURE__ */ e(C, { children: /* @__PURE__ */ n(
|
|
28
|
+
c,
|
|
29
|
+
{
|
|
30
|
+
tag: "a",
|
|
31
|
+
href: a,
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
gap: 4,
|
|
34
|
+
draggable: !1,
|
|
35
|
+
onClick: u(a),
|
|
36
|
+
inlineCSS: { width: 264 },
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ e(
|
|
39
|
+
S,
|
|
40
|
+
{
|
|
41
|
+
src: g || "",
|
|
42
|
+
width: 140,
|
|
43
|
+
height: 98,
|
|
44
|
+
alt: `${t} 이미지`,
|
|
45
|
+
"aria-hidden": !0,
|
|
46
|
+
draggable: !1,
|
|
47
|
+
borderRadius: 12,
|
|
48
|
+
enableFallback: !0,
|
|
49
|
+
enableErrorFallback: !0,
|
|
50
|
+
style: { objectFit: "cover" }
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ e(l, { tag: "p", variant: "b2M", lineClamp: 2, children: t })
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
) }, `tictoccroc-carousel1-account-${o}`)) })
|
|
57
|
+
] }) });
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
D as default
|
|
61
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as Carousel1Account, Carousel1AccountProps } from './Carousel1Account';
|
|
2
|
+
import { default as Carousel1AccountFallback } from './Carousel1Account.fallback';
|
|
3
|
+
export { Carousel1Account, Carousel1AccountFallback, type Carousel1AccountProps };
|
|
4
|
+
export default Carousel1Account;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { BannerProps } from '..';
|
|
4
|
+
export interface Carousel2AccountProps extends Omit<FlexboxProps, 'title'> {
|
|
5
|
+
id: string;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
banners: Array<BannerProps & {
|
|
8
|
+
image?: string;
|
|
9
|
+
subtitle?: ReactNode;
|
|
10
|
+
}>;
|
|
11
|
+
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
12
|
+
bannerWidth?: number;
|
|
13
|
+
}
|
|
14
|
+
declare function Carousel2Account({ id, title, banners, onClickBanner, ...props }: Carousel2AccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default Carousel2Account;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import d from "@dotss/ui/core/useTheme";
|
|
3
|
+
import o from "@dotss/ui/Flexbox";
|
|
4
|
+
import n from "@dotss/ui/Skeleton";
|
|
5
|
+
import h from "../../../../shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs";
|
|
6
|
+
function u() {
|
|
7
|
+
const { spacing: e } = d();
|
|
8
|
+
return /* @__PURE__ */ t(r, { children: [
|
|
9
|
+
/* @__PURE__ */ i(h, {}),
|
|
10
|
+
/* @__PURE__ */ t(
|
|
11
|
+
o,
|
|
12
|
+
{
|
|
13
|
+
tag: "section",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
inlineCSS: { width: "100%", overflow: "hidden" },
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ i(
|
|
18
|
+
n,
|
|
19
|
+
{
|
|
20
|
+
height: 30,
|
|
21
|
+
inlineCSS: {
|
|
22
|
+
width: "50%",
|
|
23
|
+
marginBottom: e.content(4),
|
|
24
|
+
marginLeft: e.content(4)
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ t(o, { flexDirection: "row", gap: 3, ml: 4, children: [
|
|
29
|
+
/* @__PURE__ */ t(o, { flexDirection: "column", children: [
|
|
30
|
+
/* @__PURE__ */ i(n, { width: 240, height: 168, borderRadius: 12 }),
|
|
31
|
+
/* @__PURE__ */ i(
|
|
32
|
+
n,
|
|
33
|
+
{
|
|
34
|
+
height: 24,
|
|
35
|
+
borderRadius: 12,
|
|
36
|
+
inlineCSS: { width: "100%", marginTop: e.content(3) }
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ i(
|
|
40
|
+
n,
|
|
41
|
+
{
|
|
42
|
+
height: 20,
|
|
43
|
+
borderRadius: 12,
|
|
44
|
+
inlineCSS: { width: "80%", marginTop: e.content(1) }
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ t(o, { flexDirection: "column", children: [
|
|
49
|
+
/* @__PURE__ */ i(n, { width: 240, height: 168, borderRadius: 12 }),
|
|
50
|
+
/* @__PURE__ */ i(
|
|
51
|
+
n,
|
|
52
|
+
{
|
|
53
|
+
height: 24,
|
|
54
|
+
borderRadius: 12,
|
|
55
|
+
inlineCSS: { width: "100%", marginTop: e.content(3) }
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ i(
|
|
59
|
+
n,
|
|
60
|
+
{
|
|
61
|
+
height: 20,
|
|
62
|
+
borderRadius: 12,
|
|
63
|
+
inlineCSS: { width: "80%", marginTop: e.content(1) }
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ t(o, { flexDirection: "column", children: [
|
|
68
|
+
/* @__PURE__ */ i(n, { width: 240, height: 168, borderRadius: 12 }),
|
|
69
|
+
/* @__PURE__ */ i(
|
|
70
|
+
n,
|
|
71
|
+
{
|
|
72
|
+
height: 24,
|
|
73
|
+
borderRadius: 12,
|
|
74
|
+
inlineCSS: { width: "100%", marginTop: e.content(3) }
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ i(
|
|
78
|
+
n,
|
|
79
|
+
{
|
|
80
|
+
height: 20,
|
|
81
|
+
borderRadius: 12,
|
|
82
|
+
inlineCSS: { width: "80%", marginTop: e.content(1) }
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] })
|
|
86
|
+
] })
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] });
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
u as default
|
|
94
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import f from "@dotss/ui/core/useTheme";
|
|
3
|
+
import a from "@dotss/ui/Flexbox";
|
|
4
|
+
import l from "@dotss/ui/Typography";
|
|
5
|
+
import b from "../../../../shared/components/Carousel/Carousel.mjs";
|
|
6
|
+
import C from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
7
|
+
import x from "../../../../shared/components/Image/Image.mjs";
|
|
8
|
+
import "@dotss/ui";
|
|
9
|
+
function $({ id: p, title: d, banners: m, onClickBanner: r, ...s }) {
|
|
10
|
+
const { spacing: i } = f(), u = (o) => (t) => {
|
|
11
|
+
r && typeof r == "function" && (t.stopPropagation(), t.preventDefault(), r(o, t));
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ n(a, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...s, children: [
|
|
14
|
+
/* @__PURE__ */ e(
|
|
15
|
+
l,
|
|
16
|
+
{
|
|
17
|
+
id: `banner-account-carousel2-${p}`,
|
|
18
|
+
variant: "h2B",
|
|
19
|
+
inlineCSS: {
|
|
20
|
+
paddingLeft: i.content(4),
|
|
21
|
+
paddingRight: i.content(4),
|
|
22
|
+
marginBottom: i.content(4)
|
|
23
|
+
},
|
|
24
|
+
children: d
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ e(b, { rowCount: 1, step: 1, spacing: 3, children: m.map(({ id: o, title: t, subtitle: g, url: c, image: h }) => /* @__PURE__ */ e(C, { children: /* @__PURE__ */ n(
|
|
28
|
+
a,
|
|
29
|
+
{
|
|
30
|
+
tag: "a",
|
|
31
|
+
href: c,
|
|
32
|
+
flexDirection: "column",
|
|
33
|
+
gap: 3,
|
|
34
|
+
draggable: !1,
|
|
35
|
+
onClick: u(c),
|
|
36
|
+
inlineCSS: { width: 240 },
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ e(
|
|
39
|
+
x,
|
|
40
|
+
{
|
|
41
|
+
src: h || "",
|
|
42
|
+
width: 240,
|
|
43
|
+
height: 168,
|
|
44
|
+
alt: `${t} 이미지`,
|
|
45
|
+
"aria-hidden": !0,
|
|
46
|
+
draggable: !1,
|
|
47
|
+
borderRadius: 12,
|
|
48
|
+
enableFallback: !0,
|
|
49
|
+
enableErrorFallback: !0,
|
|
50
|
+
style: { objectFit: "cover" }
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ n(a, { flexDirection: "column", gap: 1, children: [
|
|
54
|
+
/* @__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: g })
|
|
56
|
+
] })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
) }, `tictoccroc-carousel2-account-${o}`)) })
|
|
60
|
+
] });
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
$ as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as Carousel2Account, Carousel2AccountProps } from './Carousel2Account';
|
|
2
|
+
import { default as Carousel2AccountFallback } from './Carousel2Account.fallback';
|
|
3
|
+
export { Carousel2Account, Carousel2AccountFallback, type Carousel2AccountProps };
|
|
4
|
+
export default Carousel2Account;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { BannerProps } from '..';
|
|
4
|
+
export interface TextAccountProps extends Omit<FlexboxProps, 'title'> {
|
|
5
|
+
id: string;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
banners: Array<BannerProps & {
|
|
8
|
+
image?: string;
|
|
9
|
+
}>;
|
|
10
|
+
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
11
|
+
}
|
|
12
|
+
declare function TextAccount({ id, title, banners, onClickBanner, ...props }: TextAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default TextAccount;
|