@dotss/tictoccroc 0.0.29 → 0.0.31
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/ChatKit/Message/Message.mjs +11 -12
- package/dist/shared/components/ChatKit/Message/Message.utils.mjs +17 -17
- package/dist/teacher/home/components/BannerAccount/BannerAccount.d.ts +4 -4
- package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +23 -23
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.d.ts +4 -4
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +12 -12
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.d.ts +4 -4
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +30 -30
- package/dist/teacher/home/components/TextAccount/TextAccount.d.ts +4 -4
- package/dist/teacher/home/components/TextAccount/TextAccount.mjs +16 -16
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +7 -6
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e, Fragment as q } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as x, useImperativeHandle as
|
|
3
|
-
import { Flexbox as d, Typography as v, Button as
|
|
4
|
-
import
|
|
5
|
-
import { useCheckHoverPossible as
|
|
6
|
-
import { MenuButton as
|
|
2
|
+
import { useRef as x, useImperativeHandle as J, useEffect as y } from "react";
|
|
3
|
+
import { Flexbox as d, Typography as v, Button as Q, Icon as I, Menu as X, MenuBlock as P, CircularProgressIndicator as Y } from "@dotss/ui";
|
|
4
|
+
import Z from "@dotss/ui/core/useTheme";
|
|
5
|
+
import { useCheckHoverPossible as _ } from "@dotss/ui/hooks";
|
|
6
|
+
import { MenuButton as A } from "@dotss/ui/Menu";
|
|
7
7
|
import V from "dayjs";
|
|
8
8
|
import U from "../../Image/Image.mjs";
|
|
9
9
|
import M from "../../../hooks/useInView/useInView.mjs";
|
|
@@ -32,8 +32,8 @@ function de({
|
|
|
32
32
|
const {
|
|
33
33
|
palette: { brand: k, grey: a, etc: H },
|
|
34
34
|
spacing: E
|
|
35
|
-
} =
|
|
36
|
-
|
|
35
|
+
} = Z(), { isHoverPossible: K } = _(), o = x(null), D = x(null), p = x(null);
|
|
36
|
+
J(R, () => o.current);
|
|
37
37
|
const F = M(o), L = 300, s = l === "FAILED", N = f.length > L, O = (r) => {
|
|
38
38
|
r === "resend" ? (t == null || t(), p.current = setTimeout(() => {
|
|
39
39
|
S == null || S();
|
|
@@ -119,7 +119,6 @@ function de({
|
|
|
119
119
|
{
|
|
120
120
|
tag: "p",
|
|
121
121
|
variant: "b3R",
|
|
122
|
-
textAlign: i ? "right" : "left",
|
|
123
122
|
inlineCSS: {
|
|
124
123
|
whiteSpace: "pre-wrap",
|
|
125
124
|
wordBreak: "break-all"
|
|
@@ -128,7 +127,7 @@ function de({
|
|
|
128
127
|
}
|
|
129
128
|
),
|
|
130
129
|
N && /* @__PURE__ */ e(
|
|
131
|
-
|
|
130
|
+
Q,
|
|
132
131
|
{
|
|
133
132
|
variant: "text",
|
|
134
133
|
size: "xSmall",
|
|
@@ -146,7 +145,7 @@ function de({
|
|
|
146
145
|
] }),
|
|
147
146
|
s && /* @__PURE__ */ n(q, { children: [
|
|
148
147
|
/* @__PURE__ */ n(
|
|
149
|
-
|
|
148
|
+
A,
|
|
150
149
|
{
|
|
151
150
|
ref: D,
|
|
152
151
|
isMenuOpen: !!g,
|
|
@@ -195,7 +194,7 @@ function de({
|
|
|
195
194
|
}
|
|
196
195
|
),
|
|
197
196
|
/* @__PURE__ */ n(
|
|
198
|
-
|
|
197
|
+
X,
|
|
199
198
|
{
|
|
200
199
|
id: `message-${C}-menu`,
|
|
201
200
|
anchorRef: D,
|
|
@@ -233,7 +232,7 @@ function de({
|
|
|
233
232
|
}
|
|
234
233
|
),
|
|
235
234
|
i && u > 0 && l === "PENDING" && /* @__PURE__ */ e(
|
|
236
|
-
|
|
235
|
+
Y,
|
|
237
236
|
{
|
|
238
237
|
size: "small",
|
|
239
238
|
loop: !0,
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
return a.map(([
|
|
4
|
-
const
|
|
1
|
+
import w from "dayjs";
|
|
2
|
+
function h(a) {
|
|
3
|
+
return a.map(([c, s]) => {
|
|
4
|
+
const r = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
|
|
5
5
|
for (let t = 0; t < s.length; t += 1) {
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const n = s[t], d = n.senderId, i = s[t - 1], o = s[t + 1];
|
|
7
|
+
d == null || n.status === "FAILED" || n.type !== "USER" || (i && (i == null ? void 0 : i.senderId) !== d && u.set(`${d}-${n.id}`, n.id), o && (o == null ? void 0 : o.senderId) !== d && I.set(`${d}-${n.id}`, n.id), r.has(d) || r.set(d, n.id), e.set(d, n.id));
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const f = new Set(r.values()), l = new Set(e.values()), p = new Set(I.values()), $ = new Set(u.values());
|
|
10
10
|
return [
|
|
11
|
-
|
|
11
|
+
c,
|
|
12
12
|
s.map((t) => ({
|
|
13
13
|
...t,
|
|
14
14
|
// 역방향 스크롤에 따른 역순 처리
|
|
15
|
-
isFirstInGroup:
|
|
16
|
-
isLastInGroup:
|
|
15
|
+
isFirstInGroup: l.has(t.id) || p.has(t.id),
|
|
16
|
+
isLastInGroup: f.has(t.id) || $.has(t.id)
|
|
17
17
|
}))
|
|
18
18
|
];
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function E({
|
|
22
22
|
mine: a,
|
|
23
|
-
status:
|
|
23
|
+
status: c,
|
|
24
24
|
unreadUserCount: s,
|
|
25
|
-
content:
|
|
26
|
-
regDatetime:
|
|
25
|
+
content: r,
|
|
26
|
+
regDatetime: e
|
|
27
27
|
}) {
|
|
28
|
-
return `${a ? "나" : "상대방"}, ${
|
|
28
|
+
return `${a ? "나" : "상대방"}, ${r}, ${s && s > 0 ? "읽지 않음" : "읽음"}, ${c === "SUCCEEDED" ? "전송됨" : "전송 실패"}, ${w(e).format("YYYY년 MM월 DD일 A h:mm")}`;
|
|
29
29
|
}
|
|
30
30
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
E as getMessageLabel,
|
|
32
|
+
h as markMessageGroupBoundaries
|
|
33
33
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SyntheticEvent } from 'react';
|
|
2
|
-
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
2
|
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
4
4
|
import { BannerProps } from '..';
|
|
5
|
-
export interface BannerAccountProps extends Omit<FlexboxProps, 'title'> {
|
|
6
|
-
id:
|
|
5
|
+
export interface BannerAccountProps extends Omit<FlexboxProps, 'title' | 'id'> {
|
|
6
|
+
id: number;
|
|
7
7
|
banners: Array<BannerProps & {
|
|
8
8
|
image?: string;
|
|
9
9
|
}>;
|
|
10
|
-
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
10
|
+
onClickBanner?: (url: string, bannerId: number, e: SyntheticEvent) => void;
|
|
11
11
|
imageProps?: Partial<ImageProps>;
|
|
12
12
|
}
|
|
13
13
|
declare function BannerAccount({ id, banners, onClickBanner, imageProps, ...props }: BannerAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import n from "@dotss/ui/Flexbox";
|
|
3
3
|
import b from "@dotss/ui/Typography";
|
|
4
4
|
import { useTheme as f } from "@emotion/react";
|
|
5
5
|
import g from "../../../../shared/components/Image/Image.mjs";
|
|
@@ -7,11 +7,11 @@ import "@dotss/ui";
|
|
|
7
7
|
import "@dotss/ui/core/useTheme";
|
|
8
8
|
import S from "../../../../shared/components/Swiper/Swiper.mjs";
|
|
9
9
|
import w from "../../../../shared/components/Swiper/SwiperBlock/SwiperBlock.mjs";
|
|
10
|
-
function I({ id:
|
|
11
|
-
const { palette:
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
|
|
10
|
+
function I({ id: a, banners: l, onClickBanner: o, imageProps: d, ...p }) {
|
|
11
|
+
const { palette: h } = f(), m = (e, r) => (t) => {
|
|
12
|
+
o && typeof o == "function" && (t.stopPropagation(), t.preventDefault(), o(e, r, t));
|
|
13
|
+
}, s = ({ page: e, totalPages: r }) => r <= 1 ? null : /* @__PURE__ */ i(
|
|
14
|
+
n,
|
|
15
15
|
{
|
|
16
16
|
alignItems: "center",
|
|
17
17
|
justifyContent: "center",
|
|
@@ -26,9 +26,9 @@ function I({ id: o, banners: c, onClickBanner: n, imageProps: l, ...d }) {
|
|
|
26
26
|
minWidth: 36,
|
|
27
27
|
minHeight: 20,
|
|
28
28
|
borderRadius: 24,
|
|
29
|
-
backgroundColor:
|
|
29
|
+
backgroundColor: h.etc.dimmed02
|
|
30
30
|
},
|
|
31
|
-
children: /* @__PURE__ */
|
|
31
|
+
children: /* @__PURE__ */ c(
|
|
32
32
|
b,
|
|
33
33
|
{
|
|
34
34
|
tag: "p",
|
|
@@ -39,9 +39,9 @@ function I({ id: o, banners: c, onClickBanner: n, imageProps: l, ...d }) {
|
|
|
39
39
|
fontWeight: 700
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
"aria-label": `${r} 중 ${
|
|
42
|
+
"aria-label": `${r} 중 ${e + 1}`,
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ i("span", { children: e + 1 }),
|
|
45
45
|
"/",
|
|
46
46
|
r
|
|
47
47
|
]
|
|
@@ -49,27 +49,27 @@ function I({ id: o, banners: c, onClickBanner: n, imageProps: l, ...d }) {
|
|
|
49
49
|
)
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ c(n, { inlineCSS: { width: "100%" }, ...p, children: [
|
|
53
|
+
/* @__PURE__ */ i(n, { id: `tictoccroc-banner-${a}`, visuallyHidden: !0, children: "배너" }),
|
|
54
|
+
/* @__PURE__ */ i(
|
|
55
55
|
S,
|
|
56
56
|
{
|
|
57
|
-
renderPagination:
|
|
57
|
+
renderPagination: s,
|
|
58
58
|
loop: !0,
|
|
59
59
|
inlineCSS: { borderRadius: 12, overflow: "hidden" },
|
|
60
|
-
"aria-describedby": `tictoccroc-banner-${
|
|
61
|
-
children:
|
|
62
|
-
|
|
60
|
+
"aria-describedby": `tictoccroc-banner-${a}`,
|
|
61
|
+
children: l.map(({ id: e, url: r, image: t }, u) => /* @__PURE__ */ i(w, { children: /* @__PURE__ */ i(
|
|
62
|
+
n,
|
|
63
63
|
{
|
|
64
64
|
tag: "a",
|
|
65
65
|
href: r,
|
|
66
66
|
draggable: !1,
|
|
67
|
-
onClick:
|
|
67
|
+
onClick: m(r, e),
|
|
68
68
|
inlineCSS: { width: "100%" },
|
|
69
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ i(
|
|
70
70
|
g,
|
|
71
71
|
{
|
|
72
|
-
src:
|
|
72
|
+
src: t || "",
|
|
73
73
|
alt: `배너 ${u + 1}`,
|
|
74
74
|
width: 328,
|
|
75
75
|
height: 100,
|
|
@@ -79,11 +79,11 @@ function I({ id: o, banners: c, onClickBanner: n, imageProps: l, ...d }) {
|
|
|
79
79
|
withIntrinsicRatio: !0,
|
|
80
80
|
wrapperProps: { inlineCSS: { width: "100%" } },
|
|
81
81
|
style: { width: "100%", objectFit: "cover" },
|
|
82
|
-
...
|
|
82
|
+
...d
|
|
83
83
|
}
|
|
84
84
|
)
|
|
85
85
|
}
|
|
86
|
-
) }, `tictoccroc-banner-account-${
|
|
86
|
+
) }, `tictoccroc-banner-account-${e}`))
|
|
87
87
|
}
|
|
88
88
|
)
|
|
89
89
|
] });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
2
|
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
4
4
|
import { BannerProps } from '..';
|
|
5
|
-
export interface Carousel1AccountProps extends Omit<FlexboxProps, 'title'> {
|
|
6
|
-
id:
|
|
5
|
+
export interface Carousel1AccountProps extends Omit<FlexboxProps, 'title' | 'id'> {
|
|
6
|
+
id: number;
|
|
7
7
|
title: ReactNode;
|
|
8
8
|
banners: Array<BannerProps & {
|
|
9
9
|
image?: string;
|
|
10
10
|
}>;
|
|
11
|
-
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
11
|
+
onClickBanner?: (url: string, bannerId: number, e: SyntheticEvent) => void;
|
|
12
12
|
imageProps?: Partial<ImageProps>;
|
|
13
13
|
}
|
|
14
14
|
declare function Carousel1Account({ id, title, banners, onClickBanner, imageProps, ...props }: Carousel1AccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -10,12 +10,12 @@ function D({
|
|
|
10
10
|
id: p,
|
|
11
11
|
title: d,
|
|
12
12
|
banners: m,
|
|
13
|
-
onClickBanner:
|
|
13
|
+
onClickBanner: i,
|
|
14
14
|
imageProps: s,
|
|
15
15
|
...h
|
|
16
16
|
}) {
|
|
17
|
-
const { spacing:
|
|
18
|
-
|
|
17
|
+
const { spacing: o } = b(), u = (t, a) => (e) => {
|
|
18
|
+
i && typeof i == "function" && (e.stopPropagation(), e.preventDefault(), i(t, a, e));
|
|
19
19
|
};
|
|
20
20
|
return /* @__PURE__ */ r(f, { children: /* @__PURE__ */ n(l, { flexDirection: "column", inlineCSS: { width: "100%" }, ...h, children: [
|
|
21
21
|
/* @__PURE__ */ r(
|
|
@@ -26,22 +26,22 @@ function D({
|
|
|
26
26
|
inlineCSS: {
|
|
27
27
|
whiteSpace: "pre-wrap",
|
|
28
28
|
wordBreak: "keep-all",
|
|
29
|
-
paddingLeft:
|
|
30
|
-
paddingRight:
|
|
31
|
-
marginBottom:
|
|
29
|
+
paddingLeft: o.content(4),
|
|
30
|
+
paddingRight: o.content(4),
|
|
31
|
+
marginBottom: o.content(3)
|
|
32
32
|
},
|
|
33
33
|
children: d
|
|
34
34
|
}
|
|
35
35
|
),
|
|
36
|
-
/* @__PURE__ */ r(C, { rowCount: 2, step: 1, spacing: 5, children: m.map(({ id:
|
|
36
|
+
/* @__PURE__ */ r(C, { rowCount: 2, step: 1, spacing: 5, children: m.map(({ id: t, title: a, url: e, image: g }) => /* @__PURE__ */ r(S, { children: /* @__PURE__ */ n(
|
|
37
37
|
l,
|
|
38
38
|
{
|
|
39
39
|
tag: "a",
|
|
40
|
-
href:
|
|
40
|
+
href: e,
|
|
41
41
|
alignItems: "center",
|
|
42
42
|
gap: 4,
|
|
43
43
|
draggable: !1,
|
|
44
|
-
onClick: u(
|
|
44
|
+
onClick: u(e, t),
|
|
45
45
|
inlineCSS: { width: 264 },
|
|
46
46
|
children: [
|
|
47
47
|
/* @__PURE__ */ r(
|
|
@@ -50,7 +50,7 @@ function D({
|
|
|
50
50
|
src: g || "",
|
|
51
51
|
width: 140,
|
|
52
52
|
height: 98,
|
|
53
|
-
alt: `${
|
|
53
|
+
alt: `${a} 이미지`,
|
|
54
54
|
"aria-hidden": !0,
|
|
55
55
|
draggable: !1,
|
|
56
56
|
borderRadius: 12,
|
|
@@ -60,10 +60,10 @@ function D({
|
|
|
60
60
|
...s
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */ r(c, { tag: "p", variant: "b2M", lineClamp: 2, children:
|
|
63
|
+
/* @__PURE__ */ r(c, { tag: "p", variant: "b2M", lineClamp: 2, children: a })
|
|
64
64
|
]
|
|
65
65
|
}
|
|
66
|
-
) }, `tictoccroc-carousel1-account-${
|
|
66
|
+
) }, `tictoccroc-carousel1-account-${t}`)) })
|
|
67
67
|
] }) });
|
|
68
68
|
}
|
|
69
69
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
2
|
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
4
4
|
import { BannerProps } from '..';
|
|
5
|
-
export interface Carousel2AccountProps extends Omit<FlexboxProps, 'title'> {
|
|
6
|
-
id:
|
|
5
|
+
export interface Carousel2AccountProps extends Omit<FlexboxProps, 'title' | 'id'> {
|
|
6
|
+
id: number;
|
|
7
7
|
title: ReactNode;
|
|
8
8
|
banners: Array<BannerProps & {
|
|
9
9
|
image?: string;
|
|
10
10
|
subTitle?: ReactNode;
|
|
11
11
|
}>;
|
|
12
|
-
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
12
|
+
onClickBanner?: (url: string, bannerId: number, e: SyntheticEvent) => void;
|
|
13
13
|
bannerWidth?: number;
|
|
14
14
|
imageProps?: Partial<ImageProps>;
|
|
15
15
|
}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import b from "@dotss/ui/core/useTheme";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import l from "@dotss/ui/Flexbox";
|
|
4
|
+
import c from "@dotss/ui/Typography";
|
|
5
5
|
import C from "../../../../shared/components/Carousel/Carousel.mjs";
|
|
6
6
|
import x from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
7
7
|
import S from "../../../../shared/components/Image/Image.mjs";
|
|
8
8
|
import "@dotss/ui";
|
|
9
9
|
function R({
|
|
10
|
-
id:
|
|
11
|
-
title:
|
|
12
|
-
banners:
|
|
13
|
-
onClickBanner:
|
|
14
|
-
imageProps:
|
|
15
|
-
...
|
|
10
|
+
id: d,
|
|
11
|
+
title: m,
|
|
12
|
+
banners: s,
|
|
13
|
+
onClickBanner: o,
|
|
14
|
+
imageProps: u,
|
|
15
|
+
...h
|
|
16
16
|
}) {
|
|
17
|
-
const { spacing:
|
|
18
|
-
|
|
17
|
+
const { spacing: a } = b(), g = (t, i) => (r) => {
|
|
18
|
+
o && typeof o == "function" && (r.stopPropagation(), r.preventDefault(), o(t, i, r));
|
|
19
19
|
};
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
20
|
+
return /* @__PURE__ */ n(l, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...h, children: [
|
|
21
|
+
/* @__PURE__ */ e(
|
|
22
|
+
c,
|
|
23
23
|
{
|
|
24
|
-
id: `banner-account-carousel2-${
|
|
24
|
+
id: `banner-account-carousel2-${d}`,
|
|
25
25
|
variant: "h2B",
|
|
26
26
|
inlineCSS: {
|
|
27
27
|
whiteSpace: "pre-wrap",
|
|
28
28
|
wordBreak: "keep-all",
|
|
29
|
-
paddingLeft:
|
|
30
|
-
paddingRight:
|
|
31
|
-
marginBottom:
|
|
29
|
+
paddingLeft: a.content(4),
|
|
30
|
+
paddingRight: a.content(4),
|
|
31
|
+
marginBottom: a.content(4)
|
|
32
32
|
},
|
|
33
|
-
children:
|
|
33
|
+
children: m
|
|
34
34
|
}
|
|
35
35
|
),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
36
|
+
/* @__PURE__ */ e(C, { rowCount: 1, step: 1, spacing: 3, children: s.map(({ id: t, title: i, subTitle: r, url: p, image: f }) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ n(
|
|
37
|
+
l,
|
|
38
38
|
{
|
|
39
39
|
tag: "a",
|
|
40
|
-
href:
|
|
40
|
+
href: p,
|
|
41
41
|
flexDirection: "column",
|
|
42
42
|
gap: 3,
|
|
43
43
|
draggable: !1,
|
|
44
|
-
onClick:
|
|
44
|
+
onClick: g(p, t),
|
|
45
45
|
inlineCSS: { width: 240 },
|
|
46
46
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
48
|
S,
|
|
49
49
|
{
|
|
50
50
|
src: f || "",
|
|
51
51
|
width: 240,
|
|
52
52
|
height: 168,
|
|
53
|
-
alt: `${
|
|
53
|
+
alt: `${i} 이미지`,
|
|
54
54
|
"aria-hidden": !0,
|
|
55
55
|
draggable: !1,
|
|
56
56
|
borderRadius: 12,
|
|
57
57
|
enableFallback: !0,
|
|
58
58
|
enableErrorFallback: !0,
|
|
59
59
|
style: { objectFit: "cover" },
|
|
60
|
-
...
|
|
60
|
+
...u
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ n(l, { flexDirection: "column", gap: 1, children: [
|
|
64
|
+
/* @__PURE__ */ e(c, { tag: "p", variant: "h4B", lineClamp: 1, children: i }),
|
|
65
|
+
/* @__PURE__ */ e(c, { tag: "p", variant: "b4R", lineClamp: 1, color: "grey.70", children: r })
|
|
66
66
|
] })
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
|
-
) }, `tictoccroc-carousel2-account-${
|
|
69
|
+
) }, `tictoccroc-carousel2-account-${t}`)) })
|
|
70
70
|
] });
|
|
71
71
|
}
|
|
72
72
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
2
|
import { ImageProps } from '../../../../shared/components/Image';
|
|
3
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
4
4
|
import { BannerProps } from '..';
|
|
5
|
-
export interface TextAccountProps extends Omit<FlexboxProps, 'title'> {
|
|
6
|
-
id:
|
|
5
|
+
export interface TextAccountProps extends Omit<FlexboxProps, 'title' | 'id'> {
|
|
6
|
+
id: number;
|
|
7
7
|
title: ReactNode;
|
|
8
8
|
banners: Array<BannerProps & {
|
|
9
9
|
image?: string;
|
|
10
10
|
}>;
|
|
11
|
-
onClickBanner?: (url: string, e: SyntheticEvent) => void;
|
|
11
|
+
onClickBanner?: (url: string, bannerId: number, e: SyntheticEvent) => void;
|
|
12
12
|
imageProps?: Partial<ImageProps>;
|
|
13
13
|
}
|
|
14
14
|
declare function TextAccount({ id, title, banners, onClickBanner, imageProps, ...props }: TextAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -7,37 +7,37 @@ import h from "@dotss/ui/Typography";
|
|
|
7
7
|
import C from "../../../../shared/components/Image/Image.mjs";
|
|
8
8
|
import "@dotss/ui";
|
|
9
9
|
function P({
|
|
10
|
-
id:
|
|
10
|
+
id: c,
|
|
11
11
|
title: s,
|
|
12
12
|
banners: m,
|
|
13
|
-
onClickBanner:
|
|
13
|
+
onClickBanner: l,
|
|
14
14
|
imageProps: g,
|
|
15
15
|
...f
|
|
16
16
|
}) {
|
|
17
|
-
const { spacing:
|
|
18
|
-
|
|
17
|
+
const { spacing: a, palette: p } = S(), { isHoverPossible: u } = x(), b = (o, i) => (t) => {
|
|
18
|
+
l && typeof l == "function" && (t.stopPropagation(), t.preventDefault(), l(o, i, t));
|
|
19
19
|
};
|
|
20
20
|
return /* @__PURE__ */ d(r, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...f, children: [
|
|
21
21
|
/* @__PURE__ */ e(
|
|
22
22
|
h,
|
|
23
23
|
{
|
|
24
|
-
id: `banner-account-text-${
|
|
24
|
+
id: `banner-account-text-${c}`,
|
|
25
25
|
variant: "h2B",
|
|
26
26
|
inlineCSS: {
|
|
27
27
|
whiteSpace: "pre-wrap",
|
|
28
28
|
wordBreak: "keep-all",
|
|
29
|
-
paddingLeft:
|
|
30
|
-
paddingRight:
|
|
31
|
-
marginBottom:
|
|
29
|
+
paddingLeft: a.content(4),
|
|
30
|
+
paddingRight: a.content(4),
|
|
31
|
+
marginBottom: a.content(2)
|
|
32
32
|
},
|
|
33
33
|
children: s
|
|
34
34
|
}
|
|
35
35
|
),
|
|
36
|
-
/* @__PURE__ */ e(r, { tag: "ul", flexDirection: "column", "aria-labelledby": `banner-account-text-${
|
|
36
|
+
/* @__PURE__ */ e(r, { tag: "ul", flexDirection: "column", "aria-labelledby": `banner-account-text-${c}`, children: m.map(({ id: o, title: i, url: t, image: n }) => /* @__PURE__ */ e(r, { tag: "li", alignItems: "center", children: /* @__PURE__ */ d(
|
|
37
37
|
r,
|
|
38
38
|
{
|
|
39
39
|
tag: "a",
|
|
40
|
-
href:
|
|
40
|
+
href: t,
|
|
41
41
|
pt: n ? 3 : 4,
|
|
42
42
|
pl: 4,
|
|
43
43
|
pb: n ? 3 : 4,
|
|
@@ -45,15 +45,15 @@ function P({
|
|
|
45
45
|
gap: 3,
|
|
46
46
|
alignItems: "center",
|
|
47
47
|
draggable: !1,
|
|
48
|
-
onClick: b(
|
|
48
|
+
onClick: b(t, o),
|
|
49
49
|
inlineCSS: {
|
|
50
50
|
width: "100%",
|
|
51
51
|
"&:focus-within": {
|
|
52
|
-
backgroundColor:
|
|
52
|
+
backgroundColor: p.grey[10]
|
|
53
53
|
},
|
|
54
54
|
...u ? {
|
|
55
55
|
"&:hover": {
|
|
56
|
-
backgroundColor:
|
|
56
|
+
backgroundColor: p.grey[10]
|
|
57
57
|
}
|
|
58
58
|
} : {}
|
|
59
59
|
},
|
|
@@ -72,7 +72,7 @@ function P({
|
|
|
72
72
|
width: 100,
|
|
73
73
|
height: 70,
|
|
74
74
|
src: n,
|
|
75
|
-
alt: `${
|
|
75
|
+
alt: `${i} 이미지`,
|
|
76
76
|
draggable: !1,
|
|
77
77
|
enableFallback: !0,
|
|
78
78
|
enableErrorFallback: !0,
|
|
@@ -90,7 +90,7 @@ function P({
|
|
|
90
90
|
inlineCSS: {
|
|
91
91
|
flexGrow: 1
|
|
92
92
|
},
|
|
93
|
-
children:
|
|
93
|
+
children: i
|
|
94
94
|
}
|
|
95
95
|
),
|
|
96
96
|
/* @__PURE__ */ e(
|
|
@@ -104,7 +104,7 @@ function P({
|
|
|
104
104
|
)
|
|
105
105
|
]
|
|
106
106
|
}
|
|
107
|
-
) }, `tictoccroc-story-${
|
|
107
|
+
) }, `tictoccroc-story-${o}`)) })
|
|
108
108
|
] });
|
|
109
109
|
}
|
|
110
110
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as e, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import { Flexbox as a, Label as
|
|
3
|
-
import
|
|
4
|
-
import { useCheckHoverPossible as
|
|
2
|
+
import { Flexbox as a, Label as p, Typography as f, Icon as b } from "@dotss/ui";
|
|
3
|
+
import w from "@dotss/ui/core/useTheme";
|
|
4
|
+
import { useCheckHoverPossible as E } from "@dotss/ui/hooks";
|
|
5
5
|
import c from "dayjs";
|
|
6
6
|
function T({
|
|
7
7
|
title: x,
|
|
@@ -12,10 +12,10 @@ function T({
|
|
|
12
12
|
id: S,
|
|
13
13
|
...n
|
|
14
14
|
}) {
|
|
15
|
-
const { isHoverPossible: I } =
|
|
15
|
+
const { isHoverPossible: I } = E(), {
|
|
16
16
|
palette: { grey: m },
|
|
17
17
|
spacing: g
|
|
18
|
-
} =
|
|
18
|
+
} = w(), l = typeof n.onClick == "function", r = c(Y), u = o ? c(o) : c(), h = u.diff(r, "month"), d = Math.floor(h / 12), C = r.isSame(u, "year") && h % 12 < 1 ? 1 : h % 12;
|
|
19
19
|
return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ e(
|
|
20
20
|
a,
|
|
21
21
|
{
|
|
@@ -53,12 +53,13 @@ function T({
|
|
|
53
53
|
/* @__PURE__ */ e(a, { flexDirection: "column", gap: 1, flexGrow: 1, children: [
|
|
54
54
|
/* @__PURE__ */ e(a, { alignItems: "center", gap: 1, children: [
|
|
55
55
|
k && /* @__PURE__ */ i(
|
|
56
|
-
|
|
56
|
+
p,
|
|
57
57
|
{
|
|
58
58
|
variant: "outlined",
|
|
59
59
|
size: "small",
|
|
60
60
|
color: "orange",
|
|
61
61
|
inlineCSS: {
|
|
62
|
+
whiteSpace: "nowrap",
|
|
62
63
|
marginRight: g.content(1)
|
|
63
64
|
},
|
|
64
65
|
children: "대표"
|
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.31",
|
|
5
5
|
"description": "Tictoccroc shared components, hooks, utils, and APIs for Dotss",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"@emotion/react": "^11.14.0",
|
|
107
107
|
"@emotion/styled": "^11.14.0",
|
|
108
108
|
"dayjs": "^1.11.13",
|
|
109
|
-
"react": "^18.0.0 || 19.0.0",
|
|
110
|
-
"react-dom": "^18.0.0 || 19.0.0",
|
|
109
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
110
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
111
111
|
"heic2any": "^0.0.4"
|
|
112
112
|
},
|
|
113
113
|
"publishConfig": {
|