@dotss/tictoccroc 0.0.13 → 0.0.14

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.
@@ -1,69 +1,71 @@
1
- import { jsxs as g, jsx as d, Fragment as Z } from "react/jsx-runtime";
2
- import { forwardRef as r, useRef as L, useImperativeHandle as w, useState as h, useEffect as M } from "react";
3
- import { Flexbox as U, Skeleton as V } from "@dotss/ui";
1
+ import { jsxs as L, jsx as d, Fragment as Y } from "react/jsx-runtime";
2
+ import { forwardRef as Z, useRef as h, useImperativeHandle as w, useState as C, useEffect as R } from "react";
3
+ import { Flexbox as M, Skeleton as U } from "@dotss/ui";
4
4
  import F from "../../hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
5
5
  import b from "../../utils/getImageUrl/getImageUrl.mjs";
6
- import _ from "./Image.error.mjs";
7
- const k = 100, ot = r(
6
+ import V from "./Image.error.mjs";
7
+ const k = 100, ot = Z(
8
8
  ({
9
- src: q,
9
+ src: _,
10
10
  width: n,
11
11
  height: o,
12
- fit: A = "cover",
13
- position: D = "center",
14
- alt: C,
15
- scale: G = 2,
12
+ fit: q = "cover",
13
+ position: A = "center",
14
+ alt: r,
15
+ scale: D = 2,
16
16
  onLoad: E,
17
- onLazyLoad: S,
17
+ onLazyLoad: g,
18
18
  lazy: I = !1,
19
19
  borderRadius: l,
20
- disabledResizing: J = !1,
20
+ disabledResizing: G = !1,
21
21
  withIntrinsicRatio: x = !1,
22
22
  enableFallback: T = !1,
23
- enableErrorFallback: H = !0,
23
+ enableErrorFallback: W = !0,
24
24
  renderErrorFallback: c,
25
25
  wrapperProps: e = {},
26
- onError: W,
27
- ...a
28
- }, K) => {
29
- const u = L(null), $ = L(!1), m = L(null);
30
- w(K, () => m.current);
31
- const [y, N] = h(!1), [O, v] = h(!1), [f, j] = h(!1), z = b({ src: q, width: n, height: o, fit: A, position: D, scale: G, disabledResizing: J }), B = (t) => {
32
- v(!0), j(!1), typeof E == "function" && E(t);
33
- }, R = (t) => {
34
- j(!0), v(!1), typeof W == "function" && W(t.nativeEvent);
26
+ onError: H,
27
+ ...u
28
+ }, J) => {
29
+ const a = h(null), $ = h(!1), m = h(null);
30
+ w(J, () => m.current);
31
+ const [y, K] = C(!1), [O, v] = C(!1), [f, S] = C(!1), j = b({ src: _, width: n, height: o, fit: q, position: A, scale: D, disabledResizing: G }), z = (t) => {
32
+ v(!0), S(!1), typeof E == "function" && E(t);
33
+ }, B = (t) => {
34
+ S(!0), v(!1), typeof H == "function" && H(t.nativeEvent);
35
35
  };
36
- return M(() => {
37
- if (I && u.current) {
38
- const t = u.current, Q = () => {
36
+ return R(() => {
37
+ if (I && a.current) {
38
+ const t = a.current, N = () => {
39
39
  if (!t) return !1;
40
40
  const i = t.getBoundingClientRect();
41
41
  return i.bottom >= 0 && i.top <= (window.innerHeight || document.documentElement.clientHeight) + k;
42
42
  }, s = () => {
43
- Q() && N(!0);
44
- }, X = () => {
43
+ N() && K(!0);
44
+ }, Q = () => {
45
45
  var i;
46
46
  (i = window.appScreenContent) == null || i.addEventListener("scroll", s), window.addEventListener("resize", s), window.addEventListener("orientationchange", s);
47
- }, Y = () => {
47
+ }, X = () => {
48
48
  var i;
49
49
  (i = window.appScreenContent) == null || i.removeEventListener("scroll", s), window.removeEventListener("resize", s), window.removeEventListener("orientationchange", s);
50
50
  };
51
- return s(), X(), Y;
51
+ return s(), Q(), X;
52
52
  }
53
- }), M(() => {
54
- typeof S == "function" && y && !$.current && ($.current = !0, S());
55
- }, [S, y]), F(() => {
53
+ }), R(() => {
54
+ typeof g == "function" && y && !$.current && ($.current = !0, g());
55
+ }, [g, y]), F(() => {
56
56
  const t = m.current;
57
- return t != null && t.complete ? (t.style.transition = "none", t.style.opacity = "1", v(!0)) : t && (t.style.transition = "opacity 0.3s", t.style.opacity = "0", t.onload = () => {
57
+ return t != null && t.complete ? t.naturalWidth > 0 ? (t.style.transition = "none", t.style.opacity = "1", v(!0)) : (t.style.opacity = "0", S(!0)) : t && (t.style.transition = "opacity 0.3s", t.style.opacity = "0", t.onload = () => {
58
58
  t.style.opacity = "1", v(!0), t.onload = null;
59
+ }, t.onerror = () => {
60
+ S(!0), t.onerror = null;
59
61
  }), () => {
60
- t && (t.onload = null);
62
+ t && (t.onload = null, t.onerror = null);
61
63
  };
62
- }, [y]), I ? /* @__PURE__ */ g(
63
- U,
64
+ }, [y]), I ? /* @__PURE__ */ L(
65
+ M,
64
66
  {
65
67
  ...e,
66
- ref: u,
68
+ ref: a,
67
69
  inlineCSS: x ? {
68
70
  position: "relative",
69
71
  paddingTop: `calc(100% / ${n} * ${o})`,
@@ -82,7 +84,7 @@ const k = 100, ot = r(
82
84
  },
83
85
  children: [
84
86
  T && /* @__PURE__ */ d(
85
- V,
87
+ U,
86
88
  {
87
89
  width: "100%",
88
90
  height: "100%",
@@ -96,19 +98,19 @@ const k = 100, ot = r(
96
98
  }
97
99
  }
98
100
  ),
99
- y && /* @__PURE__ */ g(Z, { children: [
101
+ y && /* @__PURE__ */ L(Y, { children: [
100
102
  /* @__PURE__ */ d(
101
103
  "img",
102
104
  {
103
105
  ref: m,
104
- src: z,
105
- alt: C,
106
+ src: j,
107
+ alt: r,
106
108
  width: n,
107
109
  height: o,
108
- onLoad: B,
109
- onError: R,
110
+ onLoad: z,
111
+ onError: B,
110
112
  "aria-hidden": f,
111
- ...a,
113
+ ...u,
112
114
  style: {
113
115
  position: "absolute",
114
116
  top: 0,
@@ -116,19 +118,19 @@ const k = 100, ot = r(
116
118
  width: "100%",
117
119
  height: "100%",
118
120
  transition: "opacity 0.3s",
119
- ...a.style
121
+ ...u.style
120
122
  }
121
123
  }
122
124
  ),
123
- H && ((c == null ? void 0 : c(f)) || /* @__PURE__ */ d(_, { style: { opacity: f ? 1 : 0, transition: "opacity 0.3s" } }))
125
+ W && ((c == null ? void 0 : c(f)) || /* @__PURE__ */ d(V, { style: { opacity: f ? 1 : 0, transition: "opacity 0.3s" } }))
124
126
  ] })
125
127
  ]
126
128
  }
127
- ) : /* @__PURE__ */ g(
128
- U,
129
+ ) : /* @__PURE__ */ L(
130
+ M,
129
131
  {
130
132
  ...e,
131
- ref: u,
133
+ ref: a,
132
134
  inlineCSS: x ? {
133
135
  position: "relative",
134
136
  paddingTop: `calc(100% / ${n} * ${o})`,
@@ -148,7 +150,7 @@ const k = 100, ot = r(
148
150
  },
149
151
  children: [
150
152
  T && /* @__PURE__ */ d(
151
- V,
153
+ U,
152
154
  {
153
155
  width: "100%",
154
156
  height: "100%",
@@ -166,14 +168,14 @@ const k = 100, ot = r(
166
168
  "img",
167
169
  {
168
170
  ref: m,
169
- src: z,
170
- alt: C,
171
+ src: j,
172
+ alt: r,
171
173
  width: n,
172
174
  height: o,
173
- onLoad: B,
174
- onError: R,
175
+ onLoad: z,
176
+ onError: B,
175
177
  "aria-hidden": f,
176
- ...a,
178
+ ...u,
177
179
  style: {
178
180
  position: "absolute",
179
181
  top: 0,
@@ -181,11 +183,11 @@ const k = 100, ot = r(
181
183
  width: "100%",
182
184
  height: "100%",
183
185
  transition: "opacity 0.3s",
184
- ...a.style
186
+ ...u.style
185
187
  }
186
188
  }
187
189
  ),
188
- H && ((c == null ? void 0 : c(f)) || /* @__PURE__ */ d(_, { style: { opacity: f ? 1 : 0, transition: "opacity 0.3s" } }))
190
+ W && ((c == null ? void 0 : c(f)) || /* @__PURE__ */ d(V, { style: { opacity: f ? 1 : 0, transition: "opacity 0.3s" } }))
189
191
  ]
190
192
  }
191
193
  );
@@ -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;
@@ -1,16 +1,23 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import b from "@dotss/ui/core/useTheme";
2
+ import S from "@dotss/ui/core/useTheme";
3
3
  import i from "@dotss/ui/Flexbox";
4
- import { useCheckHoverPossible as S } from "@dotss/ui/hooks";
5
- import x from "@dotss/ui/Icon";
4
+ import { useCheckHoverPossible as x } from "@dotss/ui/hooks";
5
+ import C from "@dotss/ui/Icon";
6
6
  import d from "@dotss/ui/Typography";
7
- import C from "../../../../shared/components/Image/Image.mjs";
7
+ import v from "../../../../shared/components/Image/Image.mjs";
8
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) => {
9
+ function P({
10
+ id: a,
11
+ title: p,
12
+ banners: s,
13
+ onClickBanner: n,
14
+ imageProps: g,
15
+ ...f
16
+ }) {
17
+ const { spacing: o, palette: c } = S(), { isHoverPossible: u } = x(), b = (r) => (t) => {
11
18
  n && typeof n == "function" && (t.stopPropagation(), t.preventDefault(), n(r, t));
12
19
  };
13
- return /* @__PURE__ */ m(i, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...g, children: [
20
+ return /* @__PURE__ */ m(i, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...f, children: [
14
21
  /* @__PURE__ */ e(
15
22
  d,
16
23
  {
@@ -32,13 +39,13 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
32
39
  p: 4,
33
40
  gap: 3,
34
41
  alignItems: "center",
35
- onClick: u(l),
42
+ onClick: b(l),
36
43
  inlineCSS: {
37
44
  width: "100%",
38
45
  "&:focus-within": {
39
46
  backgroundColor: c.grey[10]
40
47
  },
41
- ...f ? {
48
+ ...u ? {
42
49
  "&:hover": {
43
50
  backgroundColor: c.grey[10]
44
51
  }
@@ -54,14 +61,15 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
54
61
  overflow: "hidden"
55
62
  },
56
63
  children: /* @__PURE__ */ e(
57
- C,
64
+ v,
58
65
  {
59
66
  width: 100,
60
67
  height: 78,
61
68
  src: h,
62
69
  alt: `${t} 이미지`,
63
70
  enableFallback: !0,
64
- enableErrorFallback: !0
71
+ enableErrorFallback: !0,
72
+ ...g
65
73
  }
66
74
  )
67
75
  }
@@ -84,7 +92,7 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
84
92
  inlineCSS: {
85
93
  whiteSpace: "nowrap"
86
94
  },
87
- children: /* @__PURE__ */ e(x, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
95
+ children: /* @__PURE__ */ e(C, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
88
96
  }
89
97
  )
90
98
  ]
@@ -93,5 +101,5 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
93
101
  ] });
94
102
  }
95
103
  export {
96
- F as default
104
+ P as default
97
105
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dotss/tictoccroc",
3
3
  "type": "module",
4
- "version": "0.0.13",
4
+ "version": "0.0.14",
5
5
  "description": "Tictoccroc shared components, hooks, utils, and APIs for Dotss",
6
6
  "main": "./dist/index.mjs",
7
7
  "module": "./dist/index.mjs",