@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.
Files changed (65) hide show
  1. package/dist/index.mjs +143 -112
  2. package/dist/shared/components/ChatKit/BotMessage/BotMessage.d.ts +29 -0
  3. package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +174 -0
  4. package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.d.ts +8 -0
  5. package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +51 -0
  6. package/dist/shared/components/ChatKit/BotMessage/index.d.ts +4 -0
  7. package/dist/shared/components/ChatKit/BotMessage/index.mjs +8 -0
  8. package/dist/shared/components/ChatKit/InputBar/InputBar.d.ts +9 -0
  9. package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.d.ts +2 -0
  10. package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +85 -0
  11. package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +130 -0
  12. package/dist/shared/components/ChatKit/InputBar/index.d.ts +4 -0
  13. package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -0
  14. package/dist/shared/components/ChatKit/Message/Message.d.ts +40 -0
  15. package/dist/shared/components/ChatKit/Message/Message.fallback.d.ts +9 -0
  16. package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +59 -0
  17. package/dist/shared/components/ChatKit/Message/Message.mjs +237 -0
  18. package/dist/shared/components/ChatKit/Message/Message.utils.d.ts +16 -0
  19. package/dist/shared/components/ChatKit/Message/Message.utils.mjs +34 -0
  20. package/dist/shared/components/ChatKit/Message/index.d.ts +5 -0
  21. package/dist/shared/components/ChatKit/Message/index.mjs +9 -0
  22. package/dist/shared/components/ChatKit/Seperator/Seperator.d.ts +6 -0
  23. package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +29 -0
  24. package/dist/shared/components/ChatKit/Seperator/index.d.ts +3 -0
  25. package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -0
  26. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.d.ts +7 -0
  27. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +120 -0
  28. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.d.ts +15 -0
  29. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +107 -0
  30. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.d.ts +2 -0
  31. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +6 -0
  32. package/dist/shared/components/ChatKit/SystemMessage/index.d.ts +5 -0
  33. package/dist/shared/components/ChatKit/SystemMessage/index.mjs +8 -0
  34. package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.d.ts +7 -0
  35. package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +55 -0
  36. package/dist/shared/components/ChatKit/UnreadMessagePill/index.d.ts +3 -0
  37. package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +4 -0
  38. package/dist/shared/components/ChatKit/index.d.ts +12 -0
  39. package/dist/shared/components/ChatKit/index.mjs +29 -0
  40. package/dist/shared/components/Image/Image.mjs +59 -57
  41. package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +13 -14
  42. package/dist/shared/components/index.d.ts +2 -0
  43. package/dist/shared/components/index.mjs +65 -38
  44. package/dist/shared/hooks/index.d.ts +1 -0
  45. package/dist/shared/hooks/index.mjs +2 -0
  46. package/dist/shared/hooks/useInView/index.d.ts +2 -0
  47. package/dist/shared/hooks/useInView/index.mjs +4 -0
  48. package/dist/shared/hooks/useInView/useInView.d.ts +4 -0
  49. package/dist/shared/hooks/useInView/useInView.mjs +30 -0
  50. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.d.ts +1 -0
  51. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +21 -0
  52. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.test.d.ts +1 -0
  53. package/dist/shared/utils/getCareTypeLabel/index.d.ts +2 -0
  54. package/dist/shared/utils/getCareTypeLabel/index.mjs +4 -0
  55. package/dist/shared/utils/index.d.ts +1 -0
  56. package/dist/shared/utils/index.mjs +12 -10
  57. package/dist/teacher/home/components/BannerAccount/BannerAccount.d.ts +3 -1
  58. package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +21 -20
  59. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.d.ts +3 -1
  60. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +22 -14
  61. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.d.ts +3 -1
  62. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +22 -14
  63. package/dist/teacher/home/components/TextAccount/TextAccount.d.ts +3 -1
  64. package/dist/teacher/home/components/TextAccount/TextAccount.mjs +21 -13
  65. 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 a } from "./Scheduler/Scheduler.mjs";
1
+ import { default as o } from "./Scheduler/Scheduler.mjs";
2
2
  import { default as t } from "./Scheduler/ScheduleEvent/ScheduleEvent.mjs";
3
- import { default as f } from "./Scheduler/ScheduleBlock/ScheduleBlock.mjs";
4
- import { getAvailableDateRange as u } from "./Scheduler/Scheduler.utils.mjs";
5
- import { default as s } from "./MediaDialog/MediaDialog.mjs";
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 n } from "./MediaDialog/MediaDialogContent/MediaDialogContent.mjs";
8
- import { default as g } from "./MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs";
9
- import { default as k } from "./MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs";
10
- import { default as B } from "./Swiper/Swiper.mjs";
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 R } from "./Carousel/Carousel.mjs";
13
- import { default as v } from "./Carousel/CarouselSlide/CarouselSlide.mjs";
14
- import { default as y } from "./TimePicker/TimePicker.mjs";
15
- import { default as E } from "./Roller/Roller.mjs";
16
- import { default as T } from "./Roller/RollerBlock/RollerBlock.mjs";
17
- import { default as L } from "./Image/Image.mjs";
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";
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
- z as Calendar,
25
- R as Carousel,
26
- v as CarouselSlide,
27
- L as Image,
28
- j as ImageError,
29
- O as LoadingAnnouncer,
30
- H as Masonry,
31
- K as MasonryBlock,
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
- s as MediaDialog,
34
- n as MediaDialogContent,
35
- g as MediaDialogFooter,
36
- k as MediaDialogToolbar,
37
- E as Roller,
38
- T as RollerBlock,
39
- f as ScheduleBlock,
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
- a as Scheduler,
42
- B as Swiper,
59
+ o as Scheduler,
60
+ ne as Seperator,
61
+ S as Swiper,
43
62
  C as SwiperBlock,
44
- y as TimePicker,
45
- u as getAvailableDateRange
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
  };
@@ -1 +1,2 @@
1
1
  export { default as useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect/useIsomorphicLayoutEffect';
2
+ export { default as useInView } from './useInView/useInView';
@@ -1,4 +1,6 @@
1
1
  import { default as f } from "./useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
2
+ import { default as a } from "./useInView/useInView.mjs";
2
3
  export {
4
+ a as useInView,
3
5
  f as useIsomorphicLayoutEffect
4
6
  };
@@ -0,0 +1,2 @@
1
+ import { default as useInView } from './useInView';
2
+ export default useInView;
@@ -0,0 +1,4 @@
1
+ import o from "./useInView.mjs";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { RefObject } from 'react';
2
+ export default function useInView(targetRef: RefObject<HTMLElement | null>, options?: IntersectionObserverInit): {
3
+ isInView: boolean;
4
+ };
@@ -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,2 @@
1
+ import { default as getCareTypeLabel } from './getCareTypeLabel';
2
+ export default getCareTypeLabel;
@@ -0,0 +1,4 @@
1
+ import a from "./getCareTypeLabel.mjs";
2
+ export {
3
+ a as default
4
+ };
@@ -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 t } from "./getImageUrl/getImageUrl.mjs";
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 p } from "./getDateRange/getDateRange.mjs";
5
- import { default as l } from "./isAndroid/isAndroid.mjs";
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 T } from "./objectToQueryString/objectToQueryString.mjs";
10
- import { default as S } from "./getVimeoId/getVimeoId.mjs";
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
- p as getDateRange,
18
- t as getImageUrl,
18
+ k as getCareTypeLabel,
19
+ d as getDateRange,
20
+ r as getImageUrl,
19
21
  s as getTimeRange,
20
- S as getVimeoId,
21
- l as isAndroid,
22
+ A as getVimeoId,
23
+ m as isAndroid,
22
24
  x as isApp,
23
25
  i as isDesktop,
24
26
  o as isServer,
25
- T as objectToQueryString,
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 u from "@dotss/ui/Typography";
4
- import { useTheme as b } from "@emotion/react";
5
- import f from "../../../../shared/components/Image/Image.mjs";
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 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) => {
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
- }, h = ({ page: i, totalPages: r }) => r <= 1 ? null : /* @__PURE__ */ e(
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: d.etc.dimmed02
29
+ backgroundColor: p.etc.dimmed02
30
30
  },
31
31
  children: /* @__PURE__ */ a(
32
- u,
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%" }, ...l, children: [
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
- g,
55
+ S,
56
56
  {
57
- renderPagination: h,
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: m }, s) => /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
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: p(r),
67
+ onClick: h(r),
68
68
  inlineCSS: { width: "100%" },
69
69
  children: /* @__PURE__ */ e(
70
- f,
70
+ g,
71
71
  {
72
- src: m || "",
73
- alt: `배너 ${s + 1}`,
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
- R as default
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 h, jsxs as n } from "react/jsx-runtime";
2
- import f from "@dotss/ui/core/useTheme";
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 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";
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 D({ id: d, title: m, banners: p, onClickBanner: r, ...s }) {
10
- const { spacing: i } = f(), u = (o) => (t) => {
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(h, { children: /* @__PURE__ */ n(c, { flexDirection: "column", inlineCSS: { width: "100%" }, ...s, children: [
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(b, { rowCount: 2, step: 1, spacing: 5, children: p.map(({ id: o, title: t, url: a, image: g }) => /* @__PURE__ */ e(C, { children: /* @__PURE__ */ n(
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: u(a),
42
+ onClick: g(a),
36
43
  inlineCSS: { width: 264 },
37
44
  children: [
38
45
  /* @__PURE__ */ e(
39
- S,
46
+ x,
40
47
  {
41
- src: g || "",
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
- D as default
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 f from "@dotss/ui/core/useTheme";
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 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";
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 $({ id: p, title: d, banners: m, onClickBanner: r, ...s }) {
10
- const { spacing: i } = f(), u = (o) => (t) => {
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%" }, ...s, children: [
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(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(
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: u(c),
42
+ onClick: g(c),
36
43
  inlineCSS: { width: 240 },
37
44
  children: [
38
45
  /* @__PURE__ */ e(
39
- x,
46
+ S,
40
47
  {
41
- src: h || "",
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: g })
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
- $ as default
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;