@dotss/tictoccroc 0.0.13 → 0.0.15
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 +143 -112
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.d.ts +29 -0
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +174 -0
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.d.ts +8 -0
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +51 -0
- package/dist/shared/components/ChatKit/BotMessage/index.d.ts +4 -0
- package/dist/shared/components/ChatKit/BotMessage/index.mjs +8 -0
- package/dist/shared/components/ChatKit/InputBar/InputBar.d.ts +9 -0
- package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.d.ts +2 -0
- package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +85 -0
- package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +130 -0
- package/dist/shared/components/ChatKit/InputBar/index.d.ts +4 -0
- package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -0
- package/dist/shared/components/ChatKit/Message/Message.d.ts +40 -0
- package/dist/shared/components/ChatKit/Message/Message.fallback.d.ts +9 -0
- package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +59 -0
- package/dist/shared/components/ChatKit/Message/Message.mjs +237 -0
- package/dist/shared/components/ChatKit/Message/Message.utils.d.ts +16 -0
- package/dist/shared/components/ChatKit/Message/Message.utils.mjs +34 -0
- package/dist/shared/components/ChatKit/Message/index.d.ts +5 -0
- package/dist/shared/components/ChatKit/Message/index.mjs +9 -0
- package/dist/shared/components/ChatKit/Seperator/Seperator.d.ts +6 -0
- package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +29 -0
- package/dist/shared/components/ChatKit/Seperator/index.d.ts +3 -0
- package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -0
- package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.d.ts +7 -0
- package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +120 -0
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.d.ts +15 -0
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +107 -0
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.d.ts +2 -0
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +6 -0
- package/dist/shared/components/ChatKit/SystemMessage/index.d.ts +5 -0
- package/dist/shared/components/ChatKit/SystemMessage/index.mjs +8 -0
- package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.d.ts +7 -0
- package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +55 -0
- package/dist/shared/components/ChatKit/UnreadMessagePill/index.d.ts +3 -0
- package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +4 -0
- package/dist/shared/components/ChatKit/index.d.ts +12 -0
- package/dist/shared/components/ChatKit/index.mjs +29 -0
- package/dist/shared/components/Image/Image.mjs +59 -57
- package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +13 -14
- package/dist/shared/components/index.d.ts +2 -0
- package/dist/shared/components/index.mjs +65 -38
- package/dist/shared/hooks/index.d.ts +1 -0
- package/dist/shared/hooks/index.mjs +2 -0
- package/dist/shared/hooks/useInView/index.d.ts +2 -0
- package/dist/shared/hooks/useInView/index.mjs +4 -0
- package/dist/shared/hooks/useInView/useInView.d.ts +4 -0
- package/dist/shared/hooks/useInView/useInView.mjs +30 -0
- package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.d.ts +1 -0
- package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +21 -0
- package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.test.d.ts +1 -0
- package/dist/shared/utils/getCareTypeLabel/index.d.ts +2 -0
- package/dist/shared/utils/getCareTypeLabel/index.mjs +4 -0
- package/dist/shared/utils/index.d.ts +1 -0
- package/dist/shared/utils/index.mjs +12 -10
- 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
|
@@ -8,6 +8,7 @@ export { default as Image } from './Image';
|
|
|
8
8
|
export { default as Calendar } from './Calendar';
|
|
9
9
|
export { default as Masonry } from './Masonry';
|
|
10
10
|
export { default as LoadingAnnouncer } from './LoadingAnnouncer';
|
|
11
|
+
export { Message, SystemMessage, BotMessage, InputBar, Seperator, UnreadMessagePill } from './ChatKit';
|
|
11
12
|
export * from './Scheduler';
|
|
12
13
|
export * from './MediaDialog';
|
|
13
14
|
export * from './Swiper';
|
|
@@ -18,3 +19,4 @@ export * from './Image';
|
|
|
18
19
|
export * from './Calendar';
|
|
19
20
|
export * from './Masonry';
|
|
20
21
|
export * from './LoadingAnnouncer';
|
|
22
|
+
export * from './ChatKit';
|
|
@@ -1,46 +1,73 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as o } from "./Scheduler/Scheduler.mjs";
|
|
2
2
|
import { default as t } from "./Scheduler/ScheduleEvent/ScheduleEvent.mjs";
|
|
3
|
-
import { default as
|
|
4
|
-
import { getAvailableDateRange as
|
|
5
|
-
import { default as
|
|
3
|
+
import { default as l } from "./Scheduler/ScheduleBlock/ScheduleBlock.mjs";
|
|
4
|
+
import { getAvailableDateRange as d } from "./Scheduler/Scheduler.utils.mjs";
|
|
5
|
+
import { default as u } from "./MediaDialog/MediaDialog.mjs";
|
|
6
6
|
import { default as x } from "./MediaDialog/MediaBlock/MediaBlock.mjs";
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
7
|
+
import { default as i } from "./MediaDialog/MediaDialogContent/MediaDialogContent.mjs";
|
|
8
|
+
import { default as M } from "./MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs";
|
|
9
|
+
import { default as B } from "./MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs";
|
|
10
|
+
import { default as S } from "./Swiper/Swiper.mjs";
|
|
11
11
|
import { default as C } from "./Swiper/SwiperBlock/SwiperBlock.mjs";
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
12
|
+
import { default as I } from "./Carousel/Carousel.mjs";
|
|
13
|
+
import { default as y } from "./Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
14
|
+
import { default as R } from "./TimePicker/TimePicker.mjs";
|
|
15
|
+
import { default as F } from "./Roller/Roller.mjs";
|
|
16
|
+
import { default as w } from "./Roller/RollerBlock/RollerBlock.mjs";
|
|
17
|
+
import { default as E } from "./Image/Image.mjs";
|
|
18
|
+
import { default as G } from "./Image/Image.error.mjs";
|
|
19
|
+
import { default as j } from "./Calendar/Calendar.mjs";
|
|
20
|
+
import { default as z } from "./Masonry/Masonry.mjs";
|
|
21
|
+
import { default as J } from "./Masonry/MasonryBlock/MasonryBlock.mjs";
|
|
22
|
+
import { default as N } from "./LoadingAnnouncer/LoadingAnnouncer.mjs";
|
|
23
|
+
import { default as Q } from "./ChatKit/Message/Message.mjs";
|
|
24
|
+
import { default as W } from "./ChatKit/Message/Message.fallback.mjs";
|
|
25
|
+
import { getMessageLabel as Y, markMessageGroupBoundaries as Z } from "./ChatKit/Message/Message.utils.mjs";
|
|
26
|
+
import { default as $ } from "./ChatKit/SystemMessage/SystemMessage.mjs";
|
|
27
|
+
import { default as ae } from "./ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs";
|
|
28
|
+
import { getSystemMessageLabel as re } from "./ChatKit/SystemMessage/SystemMessage.utils.mjs";
|
|
29
|
+
import { default as fe } from "./ChatKit/BotMessage/BotMessage.mjs";
|
|
30
|
+
import { getBotMessageLabel as se, getClassInfo as de, getCtaButtonText as me } from "./ChatKit/BotMessage/BotMessage.utils.mjs";
|
|
31
|
+
import { default as pe } from "./ChatKit/InputBar/InputBar.mjs";
|
|
32
|
+
import { default as ge } from "./ChatKit/InputBar/InputBar.fallback.mjs";
|
|
33
|
+
import { default as ne } from "./ChatKit/Seperator/Seperator.mjs";
|
|
34
|
+
import { default as ce } from "./ChatKit/UnreadMessagePill/UnreadMessagePill.mjs";
|
|
23
35
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
fe as BotMessage,
|
|
37
|
+
j as Calendar,
|
|
38
|
+
I as Carousel,
|
|
39
|
+
y as CarouselSlide,
|
|
40
|
+
ae as DirectTradeRiskInfoBottomSheet,
|
|
41
|
+
E as Image,
|
|
42
|
+
G as ImageError,
|
|
43
|
+
pe as InputBar,
|
|
44
|
+
ge as InputBarFallback,
|
|
45
|
+
N as LoadingAnnouncer,
|
|
46
|
+
z as Masonry,
|
|
47
|
+
J as MasonryBlock,
|
|
32
48
|
x as MediaBlock,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
u as MediaDialog,
|
|
50
|
+
i as MediaDialogContent,
|
|
51
|
+
M as MediaDialogFooter,
|
|
52
|
+
B as MediaDialogToolbar,
|
|
53
|
+
Q as Message,
|
|
54
|
+
W as MessageFallback,
|
|
55
|
+
F as Roller,
|
|
56
|
+
w as RollerBlock,
|
|
57
|
+
l as ScheduleBlock,
|
|
40
58
|
t as ScheduleEvent,
|
|
41
|
-
|
|
42
|
-
|
|
59
|
+
o as Scheduler,
|
|
60
|
+
ne as Seperator,
|
|
61
|
+
S as Swiper,
|
|
43
62
|
C as SwiperBlock,
|
|
44
|
-
|
|
45
|
-
|
|
63
|
+
$ as SystemMessage,
|
|
64
|
+
R as TimePicker,
|
|
65
|
+
ce as UnreadMessagePill,
|
|
66
|
+
d as getAvailableDateRange,
|
|
67
|
+
se as getBotMessageLabel,
|
|
68
|
+
de as getClassInfo,
|
|
69
|
+
me as getCtaButtonText,
|
|
70
|
+
Y as getMessageLabel,
|
|
71
|
+
re as getSystemMessageLabel,
|
|
72
|
+
Z as markMessageGroupBoundaries
|
|
46
73
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useState as d, useRef as o, useEffect as s } from "react";
|
|
2
|
+
function a(n, t) {
|
|
3
|
+
const [r, c] = d(!1), i = o(!1);
|
|
4
|
+
return s(() => {
|
|
5
|
+
let e;
|
|
6
|
+
return n.current && (e = new IntersectionObserver(
|
|
7
|
+
([u]) => {
|
|
8
|
+
c(u.isIntersecting && !i.current);
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
threshold: 0.7,
|
|
12
|
+
...t
|
|
13
|
+
}
|
|
14
|
+
), e.observe(n.current)), () => {
|
|
15
|
+
e == null || e.disconnect();
|
|
16
|
+
};
|
|
17
|
+
}, [n, t]), s(() => {
|
|
18
|
+
const e = () => {
|
|
19
|
+
i.current = document.hidden;
|
|
20
|
+
};
|
|
21
|
+
return document.addEventListener("visibilitychange", e), () => {
|
|
22
|
+
document.removeEventListener("visibilitychange", e);
|
|
23
|
+
};
|
|
24
|
+
}, []), {
|
|
25
|
+
isInView: r
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
a as default
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getCareTypeLabel(careType?: string | null): "" | "놀이" | "등하원∙이동" | "학습" | "창의미술" | "영어" | "패키지";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function r(e) {
|
|
2
|
+
switch (e) {
|
|
3
|
+
case "1":
|
|
4
|
+
return "놀이";
|
|
5
|
+
case "2":
|
|
6
|
+
return "등하원∙이동";
|
|
7
|
+
case "3":
|
|
8
|
+
return "학습";
|
|
9
|
+
case "4":
|
|
10
|
+
return "창의미술";
|
|
11
|
+
case "5":
|
|
12
|
+
return "영어";
|
|
13
|
+
case "6":
|
|
14
|
+
return "패키지";
|
|
15
|
+
default:
|
|
16
|
+
return "";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
r as default
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,3 +11,4 @@ export { default as getVimeoId } from './getVimeoId';
|
|
|
11
11
|
export { default as parseQueryString } from './parseQueryString';
|
|
12
12
|
export { default as share } from './share';
|
|
13
13
|
export { default as dayFlagToDay } from './dayFlagToDay';
|
|
14
|
+
export { default as getCareTypeLabel } from './getCareTypeLabel';
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as r } from "./getImageUrl/getImageUrl.mjs";
|
|
2
2
|
import { default as o } from "./isServer/isServer.mjs";
|
|
3
3
|
import { default as s } from "./getTimeRange/getTimeRange.mjs";
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
4
|
+
import { default as d } from "./getDateRange/getDateRange.mjs";
|
|
5
|
+
import { default as m } from "./isAndroid/isAndroid.mjs";
|
|
6
6
|
import { default as x } from "./isApp/isApp.mjs";
|
|
7
7
|
import { default as i } from "./isDesktop/isDesktop.mjs";
|
|
8
8
|
import { default as y } from "./birthDateToAge/birthDateToAge.mjs";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
9
|
+
import { default as D } from "./objectToQueryString/objectToQueryString.mjs";
|
|
10
|
+
import { default as A } from "./getVimeoId/getVimeoId.mjs";
|
|
11
11
|
import { default as h } from "./parseQueryString/parseQueryString.mjs";
|
|
12
12
|
import { default as Q } from "./share/share.mjs";
|
|
13
13
|
import { default as c } from "./dayFlagToDay/dayFlagToDay.mjs";
|
|
14
|
+
import { default as k } from "./getCareTypeLabel/getCareTypeLabel.mjs";
|
|
14
15
|
export {
|
|
15
16
|
y as birthDateToAge,
|
|
16
17
|
c as dayFlagToDay,
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
k as getCareTypeLabel,
|
|
19
|
+
d as getDateRange,
|
|
20
|
+
r as getImageUrl,
|
|
19
21
|
s as getTimeRange,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
A as getVimeoId,
|
|
23
|
+
m as isAndroid,
|
|
22
24
|
x as isApp,
|
|
23
25
|
i as isDesktop,
|
|
24
26
|
o as isServer,
|
|
25
|
-
|
|
27
|
+
D as objectToQueryString,
|
|
26
28
|
h as parseQueryString,
|
|
27
29
|
Q as share
|
|
28
30
|
};
|
|
@@ -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;
|