@dotss/tictoccroc 0.0.12 → 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.mjs +102 -100
- 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/index.mjs +16 -14
- package/dist/teacher/home/components/BannerAccount/BannerAccount.d.ts +1 -1
- package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +27 -21
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +1 -1
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +28 -26
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +1 -1
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +30 -28
- package/dist/teacher/home/components/TextAccount/TextAccount.mjs +26 -25
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +3 -2
- package/package.json +9 -1
|
@@ -8,5 +8,5 @@ export interface BannerAccountProps extends Omit<FlexboxProps, 'title'> {
|
|
|
8
8
|
}>;
|
|
9
9
|
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
10
10
|
}
|
|
11
|
-
declare function BannerAccount({ id, banners, onClickBanner }: BannerAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function BannerAccount({ id, banners, onClickBanner, ...props }: BannerAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default BannerAccount;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
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) => {
|
|
10
12
|
n && typeof n == "function" && (r.stopPropagation(), r.preventDefault(), n(i, r));
|
|
11
|
-
},
|
|
13
|
+
}, h = ({ page: i, totalPages: r }) => r <= 1 ? null : /* @__PURE__ */ e(
|
|
12
14
|
t,
|
|
13
15
|
{
|
|
14
16
|
alignItems: "center",
|
|
@@ -24,10 +26,10 @@ function j({ id: o, banners: a, onClickBanner: n }) {
|
|
|
24
26
|
minWidth: 36,
|
|
25
27
|
minHeight: 20,
|
|
26
28
|
borderRadius: 24,
|
|
27
|
-
backgroundColor:
|
|
29
|
+
backgroundColor: d.etc.dimmed02
|
|
28
30
|
},
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
-
|
|
31
|
+
children: /* @__PURE__ */ a(
|
|
32
|
+
u,
|
|
31
33
|
{
|
|
32
34
|
tag: "p",
|
|
33
35
|
variant: "c5R",
|
|
@@ -47,30 +49,34 @@ function j({ id: o, banners: a, onClickBanner: n }) {
|
|
|
47
49
|
)
|
|
48
50
|
}
|
|
49
51
|
);
|
|
50
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ a(t, { inlineCSS: { width: "100%" }, ...l, children: [
|
|
51
53
|
/* @__PURE__ */ e(t, { id: `tictoccroc-banner-${o}`, visuallyHidden: !0, children: "배너" }),
|
|
52
54
|
/* @__PURE__ */ e(
|
|
53
|
-
|
|
55
|
+
g,
|
|
54
56
|
{
|
|
55
|
-
renderPagination:
|
|
57
|
+
renderPagination: h,
|
|
56
58
|
loop: !0,
|
|
57
59
|
inlineCSS: { borderRadius: 12, overflow: "hidden" },
|
|
58
60
|
"aria-describedby": `tictoccroc-banner-${o}`,
|
|
59
|
-
children:
|
|
61
|
+
children: c.map(({ id: i, url: r, image: m }, s) => /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
|
|
60
62
|
t,
|
|
61
63
|
{
|
|
62
64
|
tag: "a",
|
|
63
65
|
href: r,
|
|
64
66
|
draggable: !1,
|
|
65
|
-
onClick:
|
|
67
|
+
onClick: p(r),
|
|
66
68
|
inlineCSS: { width: "100%" },
|
|
67
69
|
children: /* @__PURE__ */ e(
|
|
68
|
-
|
|
70
|
+
f,
|
|
69
71
|
{
|
|
70
|
-
src:
|
|
71
|
-
alt: `배너 ${
|
|
72
|
+
src: m || "",
|
|
73
|
+
alt: `배너 ${s + 1}`,
|
|
74
|
+
width: 328,
|
|
72
75
|
height: 100,
|
|
73
76
|
draggable: !1,
|
|
77
|
+
enableFallback: !0,
|
|
78
|
+
enableErrorFallback: !0,
|
|
79
|
+
withIntrinsicRatio: !0,
|
|
74
80
|
wrapperProps: { inlineCSS: { width: "100%" } },
|
|
75
81
|
style: { width: "100%", objectFit: "cover" }
|
|
76
82
|
}
|
|
@@ -82,5 +88,5 @@ function j({ id: o, banners: a, onClickBanner: n }) {
|
|
|
82
88
|
] });
|
|
83
89
|
}
|
|
84
90
|
export {
|
|
85
|
-
|
|
91
|
+
R as default
|
|
86
92
|
};
|
|
@@ -1,38 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, Fragment as h, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import f from "@dotss/ui/core/useTheme";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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));
|
|
11
12
|
};
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
13
|
+
return /* @__PURE__ */ e(h, { children: /* @__PURE__ */ n(c, { flexDirection: "column", inlineCSS: { width: "100%" }, ...s, children: [
|
|
14
|
+
/* @__PURE__ */ e(
|
|
15
|
+
l,
|
|
15
16
|
{
|
|
16
|
-
id: `banner-account-carousel1-${
|
|
17
|
+
id: `banner-account-carousel1-${d}`,
|
|
17
18
|
variant: "h2B",
|
|
18
19
|
inlineCSS: {
|
|
19
20
|
paddingLeft: i.content(4),
|
|
20
21
|
paddingRight: i.content(4),
|
|
21
|
-
marginBottom: i.content(
|
|
22
|
+
marginBottom: i.content(3)
|
|
22
23
|
},
|
|
23
|
-
children:
|
|
24
|
+
children: m
|
|
24
25
|
}
|
|
25
26
|
),
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
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,
|
|
28
29
|
{
|
|
30
|
+
tag: "a",
|
|
31
|
+
href: a,
|
|
29
32
|
alignItems: "center",
|
|
30
33
|
gap: 4,
|
|
31
|
-
|
|
34
|
+
draggable: !1,
|
|
35
|
+
onClick: u(a),
|
|
32
36
|
inlineCSS: { width: 264 },
|
|
33
37
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
38
|
+
/* @__PURE__ */ e(
|
|
39
|
+
S,
|
|
36
40
|
{
|
|
37
41
|
src: g || "",
|
|
38
42
|
width: 140,
|
|
@@ -40,15 +44,13 @@ function D({ id: l, title: p, banners: d, onClickBanner: e, ...m }) {
|
|
|
40
44
|
alt: `${t} 이미지`,
|
|
41
45
|
"aria-hidden": !0,
|
|
42
46
|
draggable: !1,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
},
|
|
47
|
+
borderRadius: 12,
|
|
48
|
+
enableFallback: !0,
|
|
49
|
+
enableErrorFallback: !0,
|
|
48
50
|
style: { objectFit: "cover" }
|
|
49
51
|
}
|
|
50
52
|
),
|
|
51
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ e(l, { tag: "p", variant: "b2M", lineClamp: 2, children: t })
|
|
52
54
|
]
|
|
53
55
|
}
|
|
54
56
|
) }, `tictoccroc-carousel1-account-${o}`)) })
|
|
@@ -1,56 +1,58 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import f from "@dotss/ui/core/useTheme";
|
|
3
3
|
import a from "@dotss/ui/Flexbox";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
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) => {
|
|
10
11
|
r && typeof r == "function" && (t.stopPropagation(), t.preventDefault(), r(o, t));
|
|
11
12
|
};
|
|
12
|
-
return /* @__PURE__ */ n(a, { tag: "section", flexDirection: "column", ...
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
13
|
+
return /* @__PURE__ */ n(a, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...s, children: [
|
|
14
|
+
/* @__PURE__ */ e(
|
|
15
|
+
l,
|
|
15
16
|
{
|
|
16
|
-
id: `banner-account-carousel2-${
|
|
17
|
+
id: `banner-account-carousel2-${p}`,
|
|
17
18
|
variant: "h2B",
|
|
18
19
|
inlineCSS: {
|
|
19
|
-
paddingLeft:
|
|
20
|
-
paddingRight:
|
|
21
|
-
marginBottom:
|
|
20
|
+
paddingLeft: i.content(4),
|
|
21
|
+
paddingRight: i.content(4),
|
|
22
|
+
marginBottom: i.content(4)
|
|
22
23
|
},
|
|
23
|
-
children:
|
|
24
|
+
children: d
|
|
24
25
|
}
|
|
25
26
|
),
|
|
26
|
-
/* @__PURE__ */
|
|
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(
|
|
27
28
|
a,
|
|
28
29
|
{
|
|
30
|
+
tag: "a",
|
|
31
|
+
href: c,
|
|
29
32
|
flexDirection: "column",
|
|
30
33
|
gap: 3,
|
|
31
|
-
|
|
34
|
+
draggable: !1,
|
|
35
|
+
onClick: u(c),
|
|
32
36
|
inlineCSS: { width: 240 },
|
|
33
37
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
38
|
+
/* @__PURE__ */ e(
|
|
39
|
+
x,
|
|
36
40
|
{
|
|
37
|
-
src:
|
|
41
|
+
src: h || "",
|
|
38
42
|
width: 240,
|
|
39
43
|
height: 168,
|
|
40
44
|
alt: `${t} 이미지`,
|
|
41
45
|
"aria-hidden": !0,
|
|
42
46
|
draggable: !1,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
},
|
|
47
|
+
borderRadius: 12,
|
|
48
|
+
enableFallback: !0,
|
|
49
|
+
enableErrorFallback: !0,
|
|
48
50
|
style: { objectFit: "cover" }
|
|
49
51
|
}
|
|
50
52
|
),
|
|
51
53
|
/* @__PURE__ */ n(a, { flexDirection: "column", gap: 1, children: [
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
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 })
|
|
54
56
|
] })
|
|
55
57
|
]
|
|
56
58
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import b from "@dotss/ui/core/useTheme";
|
|
3
3
|
import i from "@dotss/ui/Flexbox";
|
|
4
|
-
import { useCheckHoverPossible as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import { useCheckHoverPossible as S } from "@dotss/ui/hooks";
|
|
5
|
+
import x from "@dotss/ui/Icon";
|
|
6
|
+
import d from "@dotss/ui/Typography";
|
|
7
|
+
import C from "../../../../shared/components/Image/Image.mjs";
|
|
8
|
+
import "@dotss/ui";
|
|
9
|
+
function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
|
|
10
|
+
const { spacing: o, palette: c } = b(), { isHoverPossible: f } = S(), u = (r) => (t) => {
|
|
10
11
|
n && typeof n == "function" && (t.stopPropagation(), t.preventDefault(), n(r, t));
|
|
11
12
|
};
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ m(i, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...g, children: [
|
|
13
14
|
/* @__PURE__ */ e(
|
|
14
|
-
|
|
15
|
+
d,
|
|
15
16
|
{
|
|
16
|
-
id: `banner-account-text-${
|
|
17
|
+
id: `banner-account-text-${a}`,
|
|
17
18
|
variant: "h2B",
|
|
18
19
|
inlineCSS: {
|
|
19
20
|
paddingLeft: o.content(4),
|
|
@@ -23,28 +24,28 @@ function D({ id: c, title: p, banners: s, onClickBanner: n, ...g }) {
|
|
|
23
24
|
children: p
|
|
24
25
|
}
|
|
25
26
|
),
|
|
26
|
-
/* @__PURE__ */ e(i, { tag: "ul", flexDirection: "column", "aria-labelledby": `banner-account-text-${
|
|
27
|
+
/* @__PURE__ */ e(i, { tag: "ul", flexDirection: "column", "aria-labelledby": `banner-account-text-${a}`, children: s.map(({ id: r, title: t, url: l, image: h }) => /* @__PURE__ */ e(i, { tag: "li", alignItems: "center", children: /* @__PURE__ */ m(
|
|
27
28
|
i,
|
|
28
29
|
{
|
|
29
30
|
tag: "a",
|
|
30
|
-
href:
|
|
31
|
+
href: l,
|
|
31
32
|
p: 4,
|
|
32
33
|
gap: 3,
|
|
33
34
|
alignItems: "center",
|
|
34
|
-
onClick: u(
|
|
35
|
+
onClick: u(l),
|
|
35
36
|
inlineCSS: {
|
|
36
37
|
width: "100%",
|
|
37
38
|
"&:focus-within": {
|
|
38
|
-
backgroundColor:
|
|
39
|
+
backgroundColor: c.grey[10]
|
|
39
40
|
},
|
|
40
41
|
...f ? {
|
|
41
42
|
"&:hover": {
|
|
42
|
-
backgroundColor:
|
|
43
|
+
backgroundColor: c.grey[10]
|
|
43
44
|
}
|
|
44
45
|
} : {}
|
|
45
46
|
},
|
|
46
47
|
children: [
|
|
47
|
-
|
|
48
|
+
h && /* @__PURE__ */ e(
|
|
48
49
|
i,
|
|
49
50
|
{
|
|
50
51
|
inlineCSS: {
|
|
@@ -53,24 +54,24 @@ function D({ id: c, title: p, banners: s, onClickBanner: n, ...g }) {
|
|
|
53
54
|
overflow: "hidden"
|
|
54
55
|
},
|
|
55
56
|
children: /* @__PURE__ */ e(
|
|
56
|
-
|
|
57
|
+
C,
|
|
57
58
|
{
|
|
58
59
|
width: 100,
|
|
59
60
|
height: 78,
|
|
60
|
-
src:
|
|
61
|
+
src: h,
|
|
61
62
|
alt: `${t} 이미지`,
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
enableFallback: !0,
|
|
64
|
+
enableErrorFallback: !0
|
|
64
65
|
}
|
|
65
66
|
)
|
|
66
67
|
}
|
|
67
68
|
),
|
|
68
69
|
/* @__PURE__ */ e(
|
|
69
|
-
|
|
70
|
+
d,
|
|
70
71
|
{
|
|
71
72
|
tag: "p",
|
|
72
73
|
variant: "b2R",
|
|
73
|
-
lineClamp:
|
|
74
|
+
lineClamp: l ? 2 : 1,
|
|
74
75
|
inlineCSS: {
|
|
75
76
|
flexGrow: 1
|
|
76
77
|
},
|
|
@@ -83,7 +84,7 @@ function D({ id: c, title: p, banners: s, onClickBanner: n, ...g }) {
|
|
|
83
84
|
inlineCSS: {
|
|
84
85
|
whiteSpace: "nowrap"
|
|
85
86
|
},
|
|
86
|
-
children: /* @__PURE__ */ e(
|
|
87
|
+
children: /* @__PURE__ */ e(x, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
|
|
87
88
|
}
|
|
88
89
|
)
|
|
89
90
|
]
|
|
@@ -92,5 +93,5 @@ function D({ id: c, title: p, banners: s, onClickBanner: n, ...g }) {
|
|
|
92
93
|
] });
|
|
93
94
|
}
|
|
94
95
|
export {
|
|
95
|
-
|
|
96
|
+
F as default
|
|
96
97
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Label as e } from "@dotss/ui";
|
|
3
3
|
import s from "../../../../../shared/components/Image/Image.mjs";
|
|
4
|
-
|
|
4
|
+
import "@dotss/ui/core/useTheme";
|
|
5
|
+
function g({ type: l, percent: t, ...r }) {
|
|
5
6
|
return l === "creativeArt" ? /* @__PURE__ */ i(
|
|
6
7
|
e,
|
|
7
8
|
{
|
|
@@ -101,5 +102,5 @@ function h({ type: l, percent: t, ...r }) {
|
|
|
101
102
|
);
|
|
102
103
|
}
|
|
103
104
|
export {
|
|
104
|
-
|
|
105
|
+
g as default
|
|
105
106
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotss/tictoccroc",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.13",
|
|
5
5
|
"description": "Tictoccroc shared components, hooks, utils, and APIs for Dotss",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -43,6 +43,14 @@
|
|
|
43
43
|
"import": "./dist/teacher/profile/utils/*/index.mjs",
|
|
44
44
|
"types": "./dist/teacher/profile/utils/*/index.d.ts"
|
|
45
45
|
},
|
|
46
|
+
"./teacher/home/components": {
|
|
47
|
+
"import": "./dist/teacher/home/components/index.mjs",
|
|
48
|
+
"types": "./dist/teacher/home/components/index.d.ts"
|
|
49
|
+
},
|
|
50
|
+
"./teacher/home/components/*": {
|
|
51
|
+
"import": "./dist/teacher/home/components/*/index.mjs",
|
|
52
|
+
"types": "./dist/teacher/home/components/*/index.d.ts"
|
|
53
|
+
},
|
|
46
54
|
"./shared/components": {
|
|
47
55
|
"import": "./dist/shared/components/index.mjs",
|
|
48
56
|
"types": "./dist/shared/components/index.d.ts"
|