@dotss/tictoccroc 0.3.1 → 0.3.3

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.
@@ -2,9 +2,9 @@ import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
2
2
  import { ImageProps } from '../../../../shared/components';
3
3
  export interface TopLogoProps extends FlexboxProps {
4
4
  leftLogoUrl?: string;
5
- leftLogoProps?: ImageProps;
6
- rightLogoUrl?: string;
7
- rightLogoProps?: ImageProps;
5
+ leftLogoProps?: Omit<ImageProps, 'alt'>;
6
+ rightLogoUrl: string;
7
+ rightLogoProps?: Omit<ImageProps, 'alt'>;
8
8
  collaborated?: boolean;
9
9
  }
10
10
  declare function TopLogo({ leftLogoUrl, rightLogoUrl, leftLogoProps, rightLogoProps, collaborated, ...props }: TopLogoProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -18,8 +18,8 @@ import "@dotss/ui/Typography";
18
18
  function v({
19
19
  leftLogoUrl: e,
20
20
  rightLogoUrl: s,
21
- leftLogoProps: a,
22
- rightLogoProps: r,
21
+ leftLogoProps: r,
22
+ rightLogoProps: a,
23
23
  collaborated: o = !0,
24
24
  ...c
25
25
  }) {
@@ -40,7 +40,7 @@ function v({
40
40
  width: 100,
41
41
  height: 100,
42
42
  disabledResizing: !0,
43
- ...a
43
+ ...r
44
44
  }
45
45
  ),
46
46
  !e && o && /* @__PURE__ */ t(
@@ -82,7 +82,7 @@ function v({
82
82
  height: 100
83
83
  }
84
84
  },
85
- ...r
85
+ ...a
86
86
  }
87
87
  )
88
88
  ]
@@ -2,11 +2,11 @@ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
2
  import { useRef as F, useEffect as L } from "react";
3
3
  import { Flexbox as n, Typography as e, Button as $ } from "@dotss/ui";
4
4
  import q from "@dotss/ui/core/useTheme";
5
- import { getClassInfo as z, getCtaButtonText as G } from "./BotMessage.utils.mjs";
6
- import J from "../../Image/Image.mjs";
7
- import K from "../../../hooks/useInView/useInView.mjs";
5
+ import z from "dayjs";
6
+ import { getClassInfo as G, getCtaButtonText as J } from "./BotMessage.utils.mjs";
7
+ import K from "../../Image/Image.mjs";
8
+ import N from "../../../hooks/useInView/useInView.mjs";
8
9
  import S from "../../../utils/getCareTypeLabel/getCareTypeLabel.mjs";
9
- import N from "dayjs";
10
10
  function V({
11
11
  id: P,
12
12
  botMessageType: y,
@@ -30,10 +30,10 @@ function V({
30
30
  const {
31
31
  palette: { brand: D, grey: m, background: k },
32
32
  spacing: d
33
- } = q(), f = F(null), { isInView: u } = K(f), x = G(s), i = w, H = [
33
+ } = q(), f = F(null), { isInView: u } = N(f), x = J(s), i = w, H = [
34
34
  S(i == null ? void 0 : i.firstCareType),
35
35
  S(i == null ? void 0 : i.secondCareType)
36
- ].filter(Boolean).filter((E) => E !== "-").join("+"), c = z(i), M = () => o == null ? void 0 : o({
36
+ ].filter(Boolean).filter((E) => E !== "-").join("+"), c = G(i), M = () => o == null ? void 0 : o({
37
37
  botMessageType: y,
38
38
  ctaType: s,
39
39
  ctaTargetId: C,
@@ -91,7 +91,7 @@ function V({
91
91
  inlineCSS: {
92
92
  whiteSpace: "nowrap"
93
93
  },
94
- children: N(I).format("A h:mm")
94
+ children: z(I).format("A h:mm")
95
95
  }
96
96
  )
97
97
  ]
@@ -112,7 +112,7 @@ function V({
112
112
  },
113
113
  children: [
114
114
  g && /* @__PURE__ */ r(
115
- J,
115
+ K,
116
116
  {
117
117
  src: g,
118
118
  width: 32,
@@ -1,5 +1,5 @@
1
- import o from "../../../utils/getCareTypeLabel/getCareTypeLabel.mjs";
2
1
  import n from "dayjs";
2
+ import o from "../../../utils/getCareTypeLabel/getCareTypeLabel.mjs";
3
3
  function u(r) {
4
4
  switch (r) {
5
5
  case "MY_CLASS_CHECK":
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, jsx as e, Fragment as q } from "react/jsx-runtime";
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";
2
+ import { useRef as y, useImperativeHandle as J, useEffect as v } from "react";
3
+ import { Flexbox as d, Typography as I, Button as Q, Icon as C, Menu as X, MenuBlock as T, CircularProgressIndicator as Y } from "@dotss/ui";
4
4
  import Z from "@dotss/ui/core/useTheme";
5
5
  import { useCheckHoverPossible as _ } from "@dotss/ui/hooks";
6
6
  import { MenuButton as A } from "@dotss/ui/Menu";
@@ -8,48 +8,48 @@ import V from "dayjs";
8
8
  import U from "../../Image/Image.mjs";
9
9
  import M from "../../../hooks/useInView/useInView.mjs";
10
10
  function de({
11
- id: C,
12
- content: f = "",
11
+ id: k,
12
+ content: u = "",
13
13
  mine: i = !1,
14
14
  avatarUrl: h = "",
15
- unreadUserCount: u = 0,
16
- regDatetime: T,
15
+ unreadUserCount: g = 0,
16
+ regDatetime: $,
17
17
  status: l,
18
18
  onView: m,
19
- openMenu: g,
20
- onClickAvatar: c,
19
+ openMenu: S,
20
+ onClickAvatar: a,
21
21
  onCloseMenu: t,
22
- onClickMenu: $,
23
- onResend: S,
24
- onDelete: b,
25
- onViewAll: z,
22
+ onClickMenu: z,
23
+ onResend: b,
24
+ onDelete: x,
25
+ onViewAll: B,
26
26
  showAvatar: w,
27
- showTime: B,
28
- ref: R,
29
- inlineCSS: j,
30
- ...G
27
+ showTime: R,
28
+ ref: j,
29
+ inlineCSS: G,
30
+ ...H
31
31
  }) {
32
32
  const {
33
- palette: { brand: k, grey: a, etc: H },
33
+ palette: { brand: p, grey: c, etc: K },
34
34
  spacing: E
35
- } = Z(), { isHoverPossible: K } = _(), o = x(null), D = x(null), p = x(null);
36
- J(R, () => o.current);
37
- const F = M(o), L = 300, s = l === "FAILED", N = f.length > L, O = (r) => {
38
- r === "resend" ? (t == null || t(), p.current = setTimeout(() => {
39
- S == null || S();
40
- }, 200)) : r === "delete" && (t == null || t(), p.current = setTimeout(() => {
35
+ } = Z(), { isHoverPossible: D } = _(), o = y(null), F = y(null), s = y(null);
36
+ J(j, () => o.current);
37
+ const L = M(o), N = 300, f = l === "FAILED", P = u.length > N, O = (r) => {
38
+ r === "resend" ? (t == null || t(), s.current = setTimeout(() => {
41
39
  b == null || b();
40
+ }, 200)) : r === "delete" && (t == null || t(), s.current = setTimeout(() => {
41
+ x == null || x();
42
42
  }, 200));
43
43
  }, W = (r) => {
44
44
  (r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.currentTarget.click());
45
45
  };
46
- return y(() => {
47
- F && (m == null || m());
48
- }, [F, m]), y(() => {
46
+ return v(() => {
47
+ L && (m == null || m());
48
+ }, [L, m]), v(() => {
49
49
  var r;
50
- s && ((r = o == null ? void 0 : o.current) == null || r.scrollIntoView());
51
- }, [s]), y(() => () => {
52
- p.current && clearTimeout(p.current);
50
+ f && ((r = o == null ? void 0 : o.current) == null || r.scrollIntoView());
51
+ }, [f]), v(() => () => {
52
+ s.current && clearTimeout(s.current);
53
53
  }, []), /* @__PURE__ */ n(
54
54
  d,
55
55
  {
@@ -60,27 +60,27 @@ function de({
60
60
  pr: 4,
61
61
  gap: 1,
62
62
  "aria-busy": l === "PENDING",
63
- ...G,
63
+ ...H,
64
64
  inlineCSS: {
65
65
  cursor: l === "PENDING" ? "wait" : "default",
66
66
  overflowAnchor: "none",
67
- ...j
67
+ ...G
68
68
  },
69
69
  children: [
70
70
  /* @__PURE__ */ n(d, { alignItems: "flex-start", gap: 2.5, children: [
71
71
  !i && w && h && /* @__PURE__ */ e(
72
72
  d,
73
73
  {
74
- role: typeof c == "function" ? "button" : void 0,
75
- tabIndex: typeof c == "function" ? 0 : -1,
76
- onClick: c,
74
+ role: typeof a == "function" ? "button" : void 0,
75
+ tabIndex: typeof a == "function" ? 0 : -1,
76
+ onClick: a,
77
77
  onKeyDown: W,
78
- "aria-label": typeof c == "function" ? "선생님 프로필 보기" : void 0,
78
+ "aria-label": typeof a == "function" ? "선생님 프로필 보기" : void 0,
79
79
  inlineCSS: {
80
80
  position: "relative",
81
81
  overflow: "hidden",
82
82
  minWidth: 32,
83
- cursor: typeof c == "function" ? "pointer" : void 0
83
+ cursor: typeof a == "function" ? "pointer" : void 0
84
84
  },
85
85
  children: /* @__PURE__ */ e(
86
86
  U,
@@ -111,30 +111,42 @@ function de({
111
111
  gap: 2.5,
112
112
  inlineCSS: {
113
113
  borderRadius: 12,
114
- backgroundColor: i ? k.primary.pageControl : a[10]
114
+ backgroundColor: i ? p.primary.pageControl : c[10]
115
115
  },
116
116
  children: [
117
117
  /* @__PURE__ */ e(
118
- v,
118
+ I,
119
119
  {
120
120
  tag: "p",
121
121
  variant: "b3R",
122
122
  inlineCSS: {
123
123
  whiteSpace: "pre-wrap",
124
- wordBreak: "break-all"
124
+ wordBreak: "break-all",
125
+ userSelect: "text",
126
+ "& *": {
127
+ userSelect: "text"
128
+ }
125
129
  },
126
- children: N ? f.slice(0, L) + "..." : f
130
+ children: P ? u.slice(0, N) + "..." : u
127
131
  }
128
132
  ),
129
- N && /* @__PURE__ */ e(
133
+ P && /* @__PURE__ */ e(
130
134
  Q,
131
135
  {
132
136
  variant: "text",
133
137
  size: "xSmall",
134
- endAdornment: /* @__PURE__ */ e(I, { name: "ChevronRightLine" }),
135
- onClick: z,
138
+ endAdornment: /* @__PURE__ */ e(C, { name: "ChevronRightLine" }),
139
+ onClick: B,
136
140
  inlineCSS: {
137
- marginLeft: "auto"
141
+ marginLeft: "auto",
142
+ '&:active:not([aria-disabled="true"])': {
143
+ backgroundColor: p.primary.main
144
+ },
145
+ ...D && {
146
+ '&:hover:not([aria-disabled="true"])': {
147
+ backgroundColor: p.primary.main
148
+ }
149
+ }
138
150
  },
139
151
  children: "전체보기"
140
152
  }
@@ -143,50 +155,50 @@ function de({
143
155
  }
144
156
  )
145
157
  ] }),
146
- s && /* @__PURE__ */ n(q, { children: [
158
+ f && /* @__PURE__ */ n(q, { children: [
147
159
  /* @__PURE__ */ n(
148
160
  A,
149
161
  {
150
- ref: D,
151
- isMenuOpen: !!g,
152
- menuId: `message-${C}-menu`,
153
- onClick: $,
162
+ ref: F,
163
+ isMenuOpen: !!S,
164
+ menuId: `message-${k}-menu`,
165
+ onClick: z,
154
166
  size: "xSmall",
155
167
  inlineCSS: {
156
168
  padding: E.content(0.5),
157
169
  gap: E.content(0.5),
158
170
  borderRadius: 200,
159
- backgroundColor: g ? a[10] : "transparent",
171
+ backgroundColor: S ? c[10] : "transparent",
160
172
  cursor: "pointer",
161
- ...K && {
173
+ ...D && {
162
174
  "&:hover": {
163
- backgroundColor: `${a[10]} !important`
175
+ backgroundColor: `${c[10]} !important`
164
176
  }
165
177
  },
166
178
  "&:active": {
167
- backgroundColor: `${a[10]} !important`
179
+ backgroundColor: `${c[10]} !important`
168
180
  }
169
181
  },
170
182
  children: [
171
183
  /* @__PURE__ */ e(
172
- I,
184
+ C,
173
185
  {
174
186
  name: "ResetLine",
175
187
  size: "xSmall",
176
188
  color: "grey.70",
177
189
  inlineCSS: {
178
- color: `${a[70]} !important`
190
+ color: `${c[70]} !important`
179
191
  }
180
192
  }
181
193
  ),
182
194
  /* @__PURE__ */ e(
183
- I,
195
+ C,
184
196
  {
185
197
  name: "CloseLine",
186
198
  size: "xSmall",
187
199
  color: "etc.red",
188
200
  inlineCSS: {
189
- color: `${H.red} !important`
201
+ color: `${K.red} !important`
190
202
  }
191
203
  }
192
204
  )
@@ -196,21 +208,21 @@ function de({
196
208
  /* @__PURE__ */ n(
197
209
  X,
198
210
  {
199
- id: `message-${C}-menu`,
200
- anchorRef: D,
201
- open: g,
211
+ id: `message-${k}-menu`,
212
+ anchorRef: F,
213
+ open: S,
202
214
  onClose: t,
203
215
  onChange: O,
204
216
  width: 160,
205
217
  placement: "bottom-left",
206
218
  children: [
207
- /* @__PURE__ */ e(P, { value: "resend", children: "재전송" }),
208
- /* @__PURE__ */ e(P, { value: "delete", children: "삭제" })
219
+ /* @__PURE__ */ e(T, { value: "resend", children: "재전송" }),
220
+ /* @__PURE__ */ e(T, { value: "delete", children: "삭제" })
209
221
  ]
210
222
  }
211
223
  )
212
224
  ] }),
213
- !s && /* @__PURE__ */ n(
225
+ !f && /* @__PURE__ */ n(
214
226
  d,
215
227
  {
216
228
  flexDirection: "column",
@@ -219,19 +231,19 @@ function de({
219
231
  whiteSpace: "nowrap"
220
232
  },
221
233
  children: [
222
- i && u > 0 && l === "SUCCEEDED" && /* @__PURE__ */ e(
223
- v,
234
+ i && g > 0 && l === "SUCCEEDED" && /* @__PURE__ */ e(
235
+ I,
224
236
  {
225
237
  tag: "span",
226
238
  variant: "c5B",
227
239
  "aria-hidden": !0,
228
240
  inlineCSS: {
229
- color: k.primary.text
241
+ color: p.primary.text
230
242
  },
231
- children: u
243
+ children: g
232
244
  }
233
245
  ),
234
- i && u > 0 && l === "PENDING" && /* @__PURE__ */ e(
246
+ i && g > 0 && l === "PENDING" && /* @__PURE__ */ e(
235
247
  Y,
236
248
  {
237
249
  size: "small",
@@ -243,15 +255,15 @@ function de({
243
255
  }
244
256
  ),
245
257
  /* @__PURE__ */ e(
246
- v,
258
+ I,
247
259
  {
248
260
  tag: "span",
249
261
  variant: "c5R",
250
262
  color: "etc.dimmed01",
251
263
  inlineCSS: {
252
- display: B ? void 0 : "none"
264
+ display: R ? void 0 : "none"
253
265
  },
254
- children: V(T).format("A h:mm")
266
+ children: V($).format("A h:mm")
255
267
  }
256
268
  )
257
269
  ]
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, SyntheticEvent } from 'react';
2
- import { ImageProps } from '../../../../shared/components/Image';
3
2
  import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
3
+ import { ImageProps } from '../../../../shared/components/Image';
4
4
  import { BannerProps } from '..';
5
5
  export interface Carousel1AccountProps extends Omit<FlexboxProps, 'title' | 'id'> {
6
6
  id: number;
@@ -1,71 +1,83 @@
1
- import { jsx as r, Fragment as f, jsxs as n } from "react/jsx-runtime";
2
- import b from "@dotss/ui/core/useTheme";
3
- import l from "@dotss/ui/Flexbox";
4
- import c from "@dotss/ui/Typography";
5
- import C from "../../../../shared/components/Carousel/Carousel.mjs";
6
- import S from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
7
- import w from "../../../../shared/components/Image/Image.mjs";
1
+ import { jsx as e, Fragment as C, jsxs as l } from "react/jsx-runtime";
2
+ import k from "@dotss/ui/core/useTheme";
3
+ import c from "@dotss/ui/Flexbox";
4
+ import v from "@dotss/ui/hooks/useCheckHoverPossible/useCheckHoverPossible";
5
+ import d from "@dotss/ui/Typography";
6
+ import S from "../../../../shared/components/Carousel/Carousel.mjs";
7
+ import w from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
8
+ import x from "../../../../shared/components/Image/Image.mjs";
8
9
  import "@dotss/ui";
9
- function D({
10
+ function I({
10
11
  id: p,
11
- title: d,
12
+ title: s,
12
13
  banners: m,
13
- onClickBanner: i,
14
- imageProps: s,
15
- ...h
14
+ onClickBanner: a,
15
+ imageProps: u,
16
+ ...g
16
17
  }) {
17
- const { spacing: o } = b(), u = (t, a) => (e) => {
18
- i && typeof i == "function" && (e.stopPropagation(), e.preventDefault(), i(t, a, e));
18
+ const { spacing: i, palette: n } = k(), { isHoverPossible: h } = v(), b = (o, t) => (r) => {
19
+ a && typeof a == "function" && (r.stopPropagation(), r.preventDefault(), a(o, t, r));
19
20
  };
20
- return /* @__PURE__ */ r(f, { children: /* @__PURE__ */ n(l, { flexDirection: "column", inlineCSS: { width: "100%" }, ...h, children: [
21
- /* @__PURE__ */ r(
22
- c,
21
+ return /* @__PURE__ */ e(C, { children: /* @__PURE__ */ l(c, { flexDirection: "column", inlineCSS: { width: "100%" }, ...g, children: [
22
+ /* @__PURE__ */ e(
23
+ d,
23
24
  {
24
25
  id: `banner-account-carousel1-${p}`,
25
26
  variant: "h2B",
26
27
  inlineCSS: {
27
28
  whiteSpace: "pre-wrap",
28
29
  wordBreak: "keep-all",
29
- paddingLeft: o.content(4),
30
- paddingRight: o.content(4),
31
- marginBottom: o.content(3)
30
+ paddingLeft: i.content(4),
31
+ paddingRight: i.content(4),
32
+ marginBottom: i.content(3)
32
33
  },
33
- children: d
34
+ children: s
34
35
  }
35
36
  ),
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
- l,
37
+ /* @__PURE__ */ e(S, { rowCount: 2, step: 1, spacing: 5, children: m.map(({ id: o, title: t, url: r, image: f }) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ l(
38
+ c,
38
39
  {
39
40
  tag: "a",
40
- href: e,
41
+ href: r,
41
42
  alignItems: "center",
42
43
  gap: 4,
43
44
  draggable: !1,
44
- onClick: u(e, t),
45
- inlineCSS: { width: 264 },
45
+ onClick: b(r, o),
46
+ inlineCSS: {
47
+ width: 264,
48
+ borderRadius: 12,
49
+ '&:active:not([aria-disabled="true"])': {
50
+ backgroundColor: n.background.primary
51
+ },
52
+ ...h && {
53
+ '&:hover:not([aria-disabled="true"])': {
54
+ backgroundColor: n.background.primary
55
+ }
56
+ }
57
+ },
46
58
  children: [
47
- /* @__PURE__ */ r(
48
- w,
59
+ /* @__PURE__ */ e(
60
+ x,
49
61
  {
50
- src: g || "",
62
+ src: f || "",
51
63
  width: 140,
52
64
  height: 98,
53
- alt: `${a} 이미지`,
65
+ alt: `${t} 이미지`,
54
66
  "aria-hidden": !0,
55
67
  draggable: !1,
56
68
  borderRadius: 12,
57
69
  enableFallback: !0,
58
70
  enableErrorFallback: !0,
59
71
  style: { objectFit: "cover" },
60
- ...s
72
+ ...u
61
73
  }
62
74
  ),
63
- /* @__PURE__ */ r(c, { tag: "p", variant: "b2M", lineClamp: 2, children: a })
75
+ /* @__PURE__ */ e(d, { tag: "p", variant: "b2M", lineClamp: 2, children: t })
64
76
  ]
65
77
  }
66
- ) }, `tictoccroc-carousel1-account-${t}`)) })
78
+ ) }, `tictoccroc-carousel1-account-${o}`)) })
67
79
  ] }) });
68
80
  }
69
81
  export {
70
- D as default
82
+ I as default
71
83
  };
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, SyntheticEvent } from 'react';
2
- import { ImageProps } from '../../../../shared/components/Image';
3
2
  import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
3
+ import { ImageProps } from '../../../../shared/components/Image';
4
4
  import { BannerProps } from '..';
5
5
  export interface Carousel2AccountProps extends Omit<FlexboxProps, 'title' | 'id'> {
6
6
  id: number;
@@ -1,39 +1,40 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import b from "@dotss/ui/core/useTheme";
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import k from "@dotss/ui/core/useTheme";
3
3
  import l from "@dotss/ui/Flexbox";
4
+ import v from "@dotss/ui/hooks/useCheckHoverPossible/useCheckHoverPossible";
4
5
  import c from "@dotss/ui/Typography";
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";
6
+ import x from "../../../../shared/components/Carousel/Carousel.mjs";
7
+ import S from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
8
+ import w from "../../../../shared/components/Image/Image.mjs";
8
9
  import "@dotss/ui";
9
- function R({
10
- id: d,
11
- title: m,
12
- banners: s,
13
- onClickBanner: o,
14
- imageProps: u,
10
+ function T({
11
+ id: s,
12
+ title: u,
13
+ banners: m,
14
+ onClickBanner: a,
15
+ imageProps: g,
15
16
  ...h
16
17
  }) {
17
- const { spacing: a } = b(), g = (t, i) => (r) => {
18
- o && typeof o == "function" && (r.stopPropagation(), r.preventDefault(), o(t, i, r));
18
+ const { spacing: i, palette: d } = k(), { isHoverPossible: f } = v(), b = (o, t) => (e) => {
19
+ a && typeof a == "function" && (e.stopPropagation(), e.preventDefault(), a(o, t, e));
19
20
  };
20
21
  return /* @__PURE__ */ n(l, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...h, children: [
21
- /* @__PURE__ */ e(
22
+ /* @__PURE__ */ r(
22
23
  c,
23
24
  {
24
- id: `banner-account-carousel2-${d}`,
25
+ id: `banner-account-carousel2-${s}`,
25
26
  variant: "h2B",
26
27
  inlineCSS: {
27
28
  whiteSpace: "pre-wrap",
28
29
  wordBreak: "keep-all",
29
- paddingLeft: a.content(4),
30
- paddingRight: a.content(4),
31
- marginBottom: a.content(4)
30
+ paddingLeft: i.content(4),
31
+ paddingRight: i.content(4),
32
+ marginBottom: i.content(4)
32
33
  },
33
- children: m
34
+ children: u
34
35
  }
35
36
  ),
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
+ /* @__PURE__ */ r(x, { rowCount: 1, step: 1, spacing: 3, children: m.map(({ id: o, title: t, subTitle: e, url: p, image: C }) => /* @__PURE__ */ r(S, { children: /* @__PURE__ */ n(
37
38
  l,
38
39
  {
39
40
  tag: "a",
@@ -41,34 +42,45 @@ function R({
41
42
  flexDirection: "column",
42
43
  gap: 3,
43
44
  draggable: !1,
44
- onClick: g(p, t),
45
- inlineCSS: { width: 240 },
45
+ onClick: b(p, o),
46
+ inlineCSS: {
47
+ width: 240,
48
+ borderRadius: 12,
49
+ '&:active:not([aria-disabled="true"])': {
50
+ backgroundColor: d.background.primary
51
+ },
52
+ ...f && {
53
+ '&:hover:not([aria-disabled="true"])': {
54
+ backgroundColor: d.background.primary
55
+ }
56
+ }
57
+ },
46
58
  children: [
47
- /* @__PURE__ */ e(
48
- S,
59
+ /* @__PURE__ */ r(
60
+ w,
49
61
  {
50
- src: f || "",
62
+ src: C || "",
51
63
  width: 240,
52
64
  height: 168,
53
- alt: `${i} 이미지`,
65
+ alt: `${t} 이미지`,
54
66
  "aria-hidden": !0,
55
67
  draggable: !1,
56
68
  borderRadius: 12,
57
69
  enableFallback: !0,
58
70
  enableErrorFallback: !0,
59
71
  style: { objectFit: "cover" },
60
- ...u
72
+ ...g
61
73
  }
62
74
  ),
63
75
  /* @__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 })
76
+ /* @__PURE__ */ r(c, { tag: "p", variant: "h4B", lineClamp: 1, children: t }),
77
+ /* @__PURE__ */ r(c, { tag: "p", variant: "b4R", lineClamp: 1, color: "grey.70", children: e })
66
78
  ] })
67
79
  ]
68
80
  }
69
- ) }, `tictoccroc-carousel2-account-${t}`)) })
81
+ ) }, `tictoccroc-carousel2-account-${o}`)) })
70
82
  ] });
71
83
  }
72
84
  export {
73
- R as default
85
+ T as default
74
86
  };
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, SyntheticEvent } from 'react';
2
- import { ImageProps } from '../../../../shared/components/Image';
3
2
  import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
3
+ import { ImageProps } from '../../../../shared/components/Image';
4
4
  import { BannerProps } from '..';
5
5
  export interface TextAccountProps extends Omit<FlexboxProps, 'title' | 'id'> {
6
6
  id: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dotss/tictoccroc",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "0.3.3",
5
5
  "description": "Tictoccroc shared components, hooks, utils, and APIs for Dotss",
6
6
  "main": "./dist/index.mjs",
7
7
  "module": "./dist/index.mjs",