@dotss/tictoccroc 0.8.1 → 0.9.1

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 (26) hide show
  1. package/dist/index.mjs +23 -21
  2. package/dist/shared/components/ChatKit/ImageMessage/ImageMessage.d.ts +30 -0
  3. package/dist/shared/components/ChatKit/ImageMessage/ImageMessage.mjs +145 -0
  4. package/dist/shared/components/ChatKit/ImageMessage/ImageMessage.utils.d.ts +12 -0
  5. package/dist/shared/components/ChatKit/ImageMessage/ImageMessage.utils.mjs +21 -0
  6. package/dist/shared/components/ChatKit/ImageMessage/ImageMessage.utils.test.d.ts +1 -0
  7. package/dist/shared/components/ChatKit/ImageMessage/index.d.ts +4 -0
  8. package/dist/shared/components/ChatKit/ImageMessage/index.mjs +6 -0
  9. package/dist/shared/components/ChatKit/InputBar/InputBar.d.ts +3 -2
  10. package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +30 -30
  11. package/dist/shared/components/ChatKit/Message/Message.mjs +60 -102
  12. package/dist/shared/components/ChatKit/Message/Message.utils.mjs +15 -3
  13. package/dist/shared/components/ChatKit/Message/Message.utils.test.d.ts +1 -0
  14. package/dist/shared/components/ChatKit/MessageFailedActions/MessageFailedActions.d.ts +10 -0
  15. package/dist/shared/components/ChatKit/MessageFailedActions/MessageFailedActions.mjs +65 -0
  16. package/dist/shared/components/ChatKit/MessageFailedActions/index.d.ts +3 -0
  17. package/dist/shared/components/ChatKit/MessageFailedActions/index.mjs +5 -0
  18. package/dist/shared/components/ChatKit/index.d.ts +2 -0
  19. package/dist/shared/components/ChatKit/index.mjs +12 -10
  20. package/dist/shared/components/Image/Image.mjs +113 -111
  21. package/dist/shared/components/Image/Image.utils.d.ts +7 -0
  22. package/dist/shared/components/Image/Image.utils.mjs +21 -0
  23. package/dist/shared/components/Image/Image.utils.test.d.ts +1 -0
  24. package/dist/shared/components/index.d.ts +1 -1
  25. package/dist/shared/components/index.mjs +12 -10
  26. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -80,26 +80,28 @@ import be from "./shared/components/Calendar/index.mjs";
80
80
  import xe from "./shared/components/ChatKit/Message/Message.fallback.mjs";
81
81
  import { getMessageLabel as Se, markMessageGroupBoundaries as Ce } from "./shared/components/ChatKit/Message/Message.utils.mjs";
82
82
  import we from "./shared/components/ChatKit/Message/index.mjs";
83
- import Te from "./shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs";
84
- import { getSystemMessageLabel as Ee } from "./shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs";
85
- import De from "./shared/components/ChatKit/SystemMessage/index.mjs";
86
- import { getBotMessageLabel as Oe, getCtaButtonText as ke } from "./shared/components/ChatKit/BotMessage/BotMessage.utils.mjs";
87
- import Ae from "./shared/components/ChatKit/BotMessage/index.mjs";
88
- import je from "./shared/components/ChatKit/InputBar/InputBar.fallback.mjs";
89
- import Me from "./shared/components/ChatKit/InputBar/index.mjs";
90
- import Ne from "./shared/components/ChatKit/Seperator/index.mjs";
91
- import Pe from "./shared/components/ChatKit/UnreadMessagePill/index.mjs";
92
- import Fe from "./parent/b2b/components/TopLogo/index.mjs";
83
+ import { getImageMessageLabel as Te, getPhotoAssetMessage as Ee } from "./shared/components/ChatKit/ImageMessage/ImageMessage.utils.mjs";
84
+ import De from "./shared/components/ChatKit/ImageMessage/index.mjs";
85
+ import Oe from "./shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs";
86
+ import { getSystemMessageLabel as ke } from "./shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs";
87
+ import Ae from "./shared/components/ChatKit/SystemMessage/index.mjs";
88
+ import { getBotMessageLabel as je, getCtaButtonText as Me } from "./shared/components/ChatKit/BotMessage/BotMessage.utils.mjs";
89
+ import Ne from "./shared/components/ChatKit/BotMessage/index.mjs";
90
+ import Pe from "./shared/components/ChatKit/InputBar/InputBar.fallback.mjs";
91
+ import Fe from "./shared/components/ChatKit/InputBar/index.mjs";
92
+ import Ie from "./shared/components/ChatKit/Seperator/index.mjs";
93
+ import Le from "./shared/components/ChatKit/UnreadMessagePill/index.mjs";
94
+ import Re from "./parent/b2b/components/TopLogo/index.mjs";
93
95
  import "./parent/b2b/components/index.mjs";
94
- import Ie from "./shared/utils/isAndroid/index.mjs";
95
- import Le from "./shared/utils/isIos/index.mjs";
96
- import Re from "./shared/utils/isApp/index.mjs";
97
- import ze from "./shared/utils/isDesktop/index.mjs";
98
- import Be from "./shared/utils/ageToBirthDate/index.mjs";
99
- import Ve from "./shared/utils/objectToQueryString/index.mjs";
100
- import He from "./shared/utils/getVimeoId/index.mjs";
101
- import Ue from "./shared/utils/parseQueryString/index.mjs";
102
- import We from "./shared/utils/share/index.mjs";
103
- import Ge from "./shared/utils/getCareTypeLabel/index.mjs";
96
+ import ze from "./shared/utils/isAndroid/index.mjs";
97
+ import Be from "./shared/utils/isIos/index.mjs";
98
+ import Ve from "./shared/utils/isApp/index.mjs";
99
+ import He from "./shared/utils/isDesktop/index.mjs";
100
+ import Ue from "./shared/utils/ageToBirthDate/index.mjs";
101
+ import We from "./shared/utils/objectToQueryString/index.mjs";
102
+ import Ge from "./shared/utils/getVimeoId/index.mjs";
103
+ import Ke from "./shared/utils/parseQueryString/index.mjs";
104
+ import qe from "./shared/utils/share/index.mjs";
105
+ import Je from "./shared/utils/getCareTypeLabel/index.mjs";
104
106
  import "./shared/utils/index.mjs";
105
- export { T as AbilityBadge, E as AbilityCollection, oe as ActionButtons, m as ActivityGallery, f as ActivityGalleryItem, P as AvailableScheduleSection, ne as BannerAccount, te as BannerAccountFallback, Ae as BotMessage, se as BottomNotes, be as Calendar, L as CareNote, z as CareNoteSection, _ as CareerItem, v as CareerSection, q as Carousel, Y as Carousel1Account, J as Carousel1AccountFallback, Z as Carousel2Account, X as Carousel2AccountFallback, K as CarouselSlide, h as CertificateItem, g as CertificateSection, Te as DirectTradeRiskInfoBottomSheet, y as EducationItem, b as EducationSection, le as EmployeeNumberField, a as Image, i as ImageError, Me as InputBar, je as InputBarFallback, U as LoadingAnnouncer, p as Masonry, l as MasonryBlock, $ as MediaBlock, ve as MediaDialog, he as MediaDialogContent, ge as MediaDialogFooter, _e as MediaDialogToolbar, we as Message, xe as MessageFallback, ue as NameField, ie as NotificationCard, V as ParentReviewCard, H as ParentReviewSection, pe as PhoneNumberField, x as PreferredActivityKeywordGroup, C as PreferredAgeGroup, o as ProfileSummary, R as Roller, F as RollerBlock, M as ScheduleBlock, D as ScheduleEvent, N as Scheduler, Ne as Seperator, s as StatBadge, c as StatBadgeCollection, ee as Swiper, Q as SwiperBlock, De as SystemMessage, G as TextAccount, W as TextAccountFallback, ce as TextField, ye as TimePicker, me as Title, Fe as TopLogo, Pe as UnreadMessagePill, Be as ageToBirthDate, I as birthDateToAge, u as combineRef, ae as convertMdToHtml, O as dayFlagToDay, w as getAbilityCollection, j as getAvailableDateRange, Oe as getBotMessageLabel, Ge as getCareTypeLabel, B as getChildLabel, ke as getCtaButtonText, k as getDateRange, r as getImageUrl, Se as getMessageLabel, S as getPreferredAgeKeywords, Ee as getSystemMessageLabel, A as getTimeRange, He as getVimeoId, Ie as isAndroid, Re as isApp, ze as isDesktop, Le as isIos, t as isServer, de as isSuccess, fe as isValid, Ce as markMessageGroupBoundaries, Ve as objectToQueryString, Ue as parseQueryString, re as sanitize, We as share, d as useCombineRef, e as useInView, n as useIsomorphicLayoutEffect };
107
+ export { T as AbilityBadge, E as AbilityCollection, oe as ActionButtons, m as ActivityGallery, f as ActivityGalleryItem, P as AvailableScheduleSection, ne as BannerAccount, te as BannerAccountFallback, Ne as BotMessage, se as BottomNotes, be as Calendar, L as CareNote, z as CareNoteSection, _ as CareerItem, v as CareerSection, q as Carousel, Y as Carousel1Account, J as Carousel1AccountFallback, Z as Carousel2Account, X as Carousel2AccountFallback, K as CarouselSlide, h as CertificateItem, g as CertificateSection, Oe as DirectTradeRiskInfoBottomSheet, y as EducationItem, b as EducationSection, le as EmployeeNumberField, a as Image, i as ImageError, De as ImageMessage, Fe as InputBar, Pe as InputBarFallback, U as LoadingAnnouncer, p as Masonry, l as MasonryBlock, $ as MediaBlock, ve as MediaDialog, he as MediaDialogContent, ge as MediaDialogFooter, _e as MediaDialogToolbar, we as Message, xe as MessageFallback, ue as NameField, ie as NotificationCard, V as ParentReviewCard, H as ParentReviewSection, pe as PhoneNumberField, x as PreferredActivityKeywordGroup, C as PreferredAgeGroup, o as ProfileSummary, R as Roller, F as RollerBlock, M as ScheduleBlock, D as ScheduleEvent, N as Scheduler, Ie as Seperator, s as StatBadge, c as StatBadgeCollection, ee as Swiper, Q as SwiperBlock, Ae as SystemMessage, G as TextAccount, W as TextAccountFallback, ce as TextField, ye as TimePicker, me as Title, Re as TopLogo, Le as UnreadMessagePill, Ue as ageToBirthDate, I as birthDateToAge, u as combineRef, ae as convertMdToHtml, O as dayFlagToDay, w as getAbilityCollection, j as getAvailableDateRange, je as getBotMessageLabel, Je as getCareTypeLabel, B as getChildLabel, Me as getCtaButtonText, k as getDateRange, Te as getImageMessageLabel, r as getImageUrl, Se as getMessageLabel, Ee as getPhotoAssetMessage, S as getPreferredAgeKeywords, ke as getSystemMessageLabel, A as getTimeRange, Ge as getVimeoId, ze as isAndroid, Ve as isApp, He as isDesktop, Be as isIos, t as isServer, de as isSuccess, fe as isValid, Ce as markMessageGroupBoundaries, We as objectToQueryString, Ke as parseQueryString, re as sanitize, qe as share, d as useCombineRef, e as useInView, n as useIsomorphicLayoutEffect };
@@ -0,0 +1,30 @@
1
+ import { MessageStatus } from '../Message';
2
+ export type ImageMessageAssetState = 'NORMAL' | 'DELETED' | 'ERROR';
3
+ export interface ImageMessageAsset {
4
+ id: number;
5
+ type: 'IMAGE';
6
+ source: string;
7
+ state?: ImageMessageAssetState;
8
+ }
9
+ export interface ImageMessageProps {
10
+ id: string | number;
11
+ assets: ImageMessageAsset[];
12
+ mine: boolean;
13
+ status: MessageStatus;
14
+ regDatetime?: string;
15
+ unreadUserCount?: number;
16
+ avatarUrl?: string;
17
+ showAvatar?: boolean;
18
+ showTime?: boolean;
19
+ openMenu?: boolean;
20
+ onClickAsset?: (index: number) => void;
21
+ onErrorAsset?: (index: number) => void;
22
+ onClickAvatar?: () => void;
23
+ onClickMenu?: () => void;
24
+ onCloseMenu?: () => void;
25
+ onResend?: () => void;
26
+ onDelete?: () => void;
27
+ onView?: () => void;
28
+ }
29
+ declare function ImageMessage({ id, assets, mine, status, regDatetime, unreadUserCount, avatarUrl, showAvatar, showTime, openMenu, onClickAsset, onErrorAsset, onClickAvatar, onClickMenu, onCloseMenu, onResend, onDelete, onView }: ImageMessageProps): import("@emotion/react/jsx-runtime").JSX.Element;
30
+ export default ImageMessage;
@@ -0,0 +1,145 @@
1
+ import e from "../../../hooks/useInView/index.mjs";
2
+ import t from "../../Image/index.mjs";
3
+ import n from "../MessageFailedActions/index.mjs";
4
+ import { getPhotoAssetMessage as r } from "./ImageMessage.utils.mjs";
5
+ import { useEffect as i, useRef as a } from "react";
6
+ import { CircularProgressIndicator as o, Flexbox as s, Icon as c, Typography as l } from "@dotss/ui";
7
+ import u from "@dotss/ui/core/useTheme";
8
+ import d from "dayjs";
9
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
10
+ //#region shared/components/ChatKit/ImageMessage/ImageMessage.tsx
11
+ var h = 2, g = 190, _ = 2, v = (g - _) / h, y = 190, b = 130, x = 32, S = (e) => e === 1 ? y : e === h ? b : v;
12
+ function C({ id: y, assets: b, mine: C, status: w, regDatetime: T, unreadUserCount: E = 0, avatarUrl: D = "", showAvatar: O = !1, showTime: k = !1, openMenu: A, onClickAsset: j, onErrorAsset: M, onClickAvatar: N, onClickMenu: P, onCloseMenu: F, onResend: I, onDelete: L, onView: R }) {
13
+ let { palette: { grey: z, brand: B, etc: V }, spacing: H } = u(), U = a(null), { isInView: W } = e(U), G = w === "FAILED", K = S(b.length);
14
+ return i(() => {
15
+ W && R?.();
16
+ }, [W, R]), /* @__PURE__ */ m(s, {
17
+ ref: U,
18
+ gap: 1,
19
+ pl: 4,
20
+ pr: 4,
21
+ alignItems: "flex-end",
22
+ flexDirection: C ? "row-reverse" : "row",
23
+ "aria-busy": w === "PENDING",
24
+ inlineCSS: {
25
+ paddingTop: H.content(1),
26
+ overflowAnchor: "none"
27
+ },
28
+ children: [
29
+ !C && /* @__PURE__ */ p(s, {
30
+ tag: "button",
31
+ type: "button",
32
+ onClick: N,
33
+ "aria-label": "프로필 보기",
34
+ inlineCSS: {
35
+ width: x,
36
+ height: x,
37
+ padding: 0,
38
+ border: "none",
39
+ borderRadius: "50%",
40
+ overflow: "hidden",
41
+ background: "transparent",
42
+ visibility: O ? "visible" : "hidden",
43
+ flexShrink: 0
44
+ },
45
+ children: O && D && /* @__PURE__ */ p(t, {
46
+ src: D,
47
+ alt: "",
48
+ width: x,
49
+ height: x,
50
+ borderRadius: "50%",
51
+ enableFallback: !0
52
+ })
53
+ }),
54
+ /* @__PURE__ */ p(s, {
55
+ inlineCSS: {
56
+ display: "grid",
57
+ gridTemplateColumns: `repeat(${h}, 1fr)`,
58
+ gridAutoRows: K,
59
+ gap: _,
60
+ width: g,
61
+ borderRadius: 12,
62
+ overflow: "hidden"
63
+ },
64
+ children: b.map((e, n) => {
65
+ let i = b.length % h === 1 && n === b.length - 1, a = i ? g : v, o = e.state ?? "NORMAL", u = o === "NORMAL" ? void 0 : r(o), d = !!j, _ = o === "NORMAL" ? `${n + 1}번째 사진` : `${n + 1}번째 사진, ${u}`;
66
+ return /* @__PURE__ */ p(s, {
67
+ tag: d ? "button" : "div",
68
+ type: d ? "button" : void 0,
69
+ role: d ? void 0 : "img",
70
+ flexDirection: "column",
71
+ justifyContent: "center",
72
+ alignItems: "center",
73
+ gap: 1,
74
+ onClick: d ? () => j(n) : void 0,
75
+ "aria-label": d && o === "NORMAL" ? `${_} 보기` : _,
76
+ inlineCSS: {
77
+ gridColumn: i ? "1 / -1" : void 0,
78
+ padding: 0,
79
+ border: "none",
80
+ background: z[20],
81
+ cursor: d ? "pointer" : "default"
82
+ },
83
+ children: o === "NORMAL" ? /* @__PURE__ */ p(t, {
84
+ src: e.source,
85
+ alt: "",
86
+ width: a,
87
+ height: K,
88
+ lazy: !0,
89
+ style: { objectFit: "cover" },
90
+ enableErrorFallback: !1,
91
+ onError: () => M?.(n)
92
+ }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(c, {
93
+ name: "InfoFill",
94
+ size: "small",
95
+ color: "etc.red"
96
+ }), b.length === 1 && /* @__PURE__ */ p(l, {
97
+ variant: "b5M",
98
+ inlineCSS: { color: V.red },
99
+ children: u
100
+ })] })
101
+ }, e.id);
102
+ })
103
+ }),
104
+ G && C && /* @__PURE__ */ p(n, {
105
+ id: y,
106
+ openMenu: A,
107
+ onClickMenu: P,
108
+ onCloseMenu: F,
109
+ onResend: I,
110
+ onDelete: L
111
+ }),
112
+ !G && /* @__PURE__ */ m(s, {
113
+ flexDirection: "column",
114
+ alignItems: C ? "flex-end" : "flex-start",
115
+ inlineCSS: { whiteSpace: "nowrap" },
116
+ children: [
117
+ C && E > 0 && w === "SUCCEEDED" && /* @__PURE__ */ p(l, {
118
+ tag: "span",
119
+ variant: "c5B",
120
+ "aria-hidden": !0,
121
+ inlineCSS: { color: B.primary.text },
122
+ children: E
123
+ }),
124
+ C && E > 0 && w === "PENDING" && /* @__PURE__ */ p(o, {
125
+ size: "small",
126
+ loop: !0,
127
+ inlineCSS: {
128
+ width: 12,
129
+ height: 12
130
+ }
131
+ }),
132
+ k && T && /* @__PURE__ */ p(l, {
133
+ tag: "span",
134
+ variant: "c5R",
135
+ color: "etc.dimmed01",
136
+ "aria-hidden": !0,
137
+ children: d(T).format("A h:mm")
138
+ })
139
+ ]
140
+ })
141
+ ]
142
+ });
143
+ }
144
+ //#endregion
145
+ export { C as default };
@@ -0,0 +1,12 @@
1
+ import { ImageMessageAssetState } from '.';
2
+ import { MessageStatus } from '../Message';
3
+ interface ImageMessageLabelParams {
4
+ mine: boolean;
5
+ status: MessageStatus;
6
+ count: number;
7
+ unreadUserCount?: number;
8
+ regDatetime?: string;
9
+ }
10
+ export declare function getPhotoAssetMessage(state: Exclude<ImageMessageAssetState, 'NORMAL'>): "더 이상 볼 수 없는 사진이에요" | "사진을 불러올 수 없어요";
11
+ export declare function getImageMessageLabel({ mine, status, count, unreadUserCount, regDatetime }: ImageMessageLabelParams): string;
12
+ export {};
@@ -0,0 +1,21 @@
1
+ import { getMessageLabel as e } from "../Message/Message.utils.mjs";
2
+ //#region shared/components/ChatKit/ImageMessage/ImageMessage.utils.ts
3
+ var t = {
4
+ deleted: "더 이상 볼 수 없는 사진이에요",
5
+ error: "사진을 불러올 수 없어요"
6
+ };
7
+ function n(e) {
8
+ return e === "DELETED" ? t.deleted : t.error;
9
+ }
10
+ function r({ mine: t, status: n, count: r, unreadUserCount: i, regDatetime: a }) {
11
+ let o = `사진 ${r}장`;
12
+ return n === "FAILED" ? `${t ? "나" : "상대방"}, ${o}, 전송 실패` : e({
13
+ mine: t,
14
+ status: n,
15
+ unreadUserCount: i,
16
+ content: o,
17
+ regDatetime: a
18
+ });
19
+ }
20
+ //#endregion
21
+ export { r as getImageMessageLabel, n as getPhotoAssetMessage };
@@ -0,0 +1,4 @@
1
+ import { default as ImageMessage, ImageMessageAsset, ImageMessageAssetState, ImageMessageProps } from './ImageMessage';
2
+ export { getImageMessageLabel, getPhotoAssetMessage } from './ImageMessage.utils';
3
+ export type { ImageMessageAsset, ImageMessageAssetState, ImageMessageProps };
4
+ export default ImageMessage;
@@ -0,0 +1,6 @@
1
+ import { getImageMessageLabel as e, getPhotoAssetMessage as t } from "./ImageMessage.utils.mjs";
2
+ import n from "./ImageMessage.mjs";
3
+ //#region shared/components/ChatKit/ImageMessage/index.ts
4
+ var r = n;
5
+ //#endregion
6
+ export { r as default, e as getImageMessageLabel, t as getPhotoAssetMessage };
@@ -1,9 +1,10 @@
1
- import { ComponentPropsWithRef } from 'react';
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  import { InlineCSS } from '@dotss/ui/typings/component';
3
3
  import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
4
4
  export interface InputBarProps extends ComponentPropsWithRef<'textarea'>, InlineCSS {
5
5
  wrapperProps?: FlexboxProps;
6
+ startAdornment?: ReactNode;
6
7
  onSend?: () => void;
7
8
  }
8
- declare function InputBar({ wrapperProps, inlineCSS, onSend, value, ref, ...props }: InputBarProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
+ declare function InputBar({ wrapperProps, startAdornment, inlineCSS, onSend, value, ref, ...props }: InputBarProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
10
  export default InputBar;
@@ -4,19 +4,19 @@ import o from "@dotss/ui/core/useTheme";
4
4
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
5
  //#region shared/components/ChatKit/InputBar/InputBar.tsx
6
6
  var l = 24;
7
- function u({ wrapperProps: u, inlineCSS: d, onSend: f, value: p, ref: m, ...h }) {
8
- let { palette: { background: g, grey: _ }, spacing: v } = o(), [y, b] = r(l), x = n(null), S = n(null);
9
- t(m, () => S.current);
10
- let C = () => {
11
- !p || h.disabled || f?.();
7
+ function u({ wrapperProps: u, startAdornment: d, inlineCSS: f, onSend: p, value: m, ref: h, ...g }) {
8
+ let { palette: { background: _, grey: v }, spacing: y } = o(), [b, x] = r(l), S = n(null), C = n(null);
9
+ t(h, () => C.current);
10
+ let w = () => {
11
+ !m || g.disabled || p?.();
12
12
  };
13
13
  return e(() => {
14
- if (x.current) {
15
- x.current.style.height = `${l}px`;
16
- let e = x.current.scrollHeight;
17
- b(Math.min(e, l * 3));
14
+ if (S.current) {
15
+ S.current.style.height = `${l}px`;
16
+ let e = S.current.scrollHeight;
17
+ x(Math.min(e, l * 3));
18
18
  }
19
- }, [p]), /* @__PURE__ */ s(i, {
19
+ }, [m]), /* @__PURE__ */ c(i, {
20
20
  pt: 2,
21
21
  pb: 2,
22
22
  pl: 4,
@@ -25,11 +25,11 @@ function u({ wrapperProps: u, inlineCSS: d, onSend: f, value: p, ref: m, ...h })
25
25
  alignItems: "center",
26
26
  ...u,
27
27
  inlineCSS: {
28
- borderTop: `1px solid ${_[10]}`,
29
- backgroundColor: _.white,
28
+ borderTop: `1px solid ${v[10]}`,
29
+ backgroundColor: v.white,
30
30
  ...u?.inlineCSS
31
31
  },
32
- children: /* @__PURE__ */ c(i, {
32
+ children: [d, /* @__PURE__ */ c(i, {
33
33
  alignItems: "center",
34
34
  pt: 2,
35
35
  pb: 2,
@@ -38,41 +38,41 @@ function u({ wrapperProps: u, inlineCSS: d, onSend: f, value: p, ref: m, ...h })
38
38
  inlineCSS: {
39
39
  position: "relative",
40
40
  maxWidth: "100%",
41
- paddingRight: v.content(12),
42
- border: `1px solid ${_[10]}`,
41
+ paddingRight: y.content(12),
42
+ border: `1px solid ${v[10]}`,
43
43
  borderRadius: 20,
44
- backgroundColor: g.primary
44
+ backgroundColor: _.primary
45
45
  },
46
46
  children: [
47
47
  /* @__PURE__ */ s(i, {
48
- ref: x,
48
+ ref: S,
49
49
  tag: "textarea",
50
- value: p,
51
- maxLength: h.maxLength,
50
+ value: m,
51
+ maxLength: g.maxLength,
52
52
  readOnly: !0,
53
53
  "aria-hidden": !0,
54
54
  inlineCSS: {
55
- width: `calc(100% - ${v.content(16)}px)`,
55
+ width: `calc(100% - ${y.content(16)}px)`,
56
56
  minHeight: l,
57
57
  maxHeight: l,
58
58
  lineHeight: `${l}px`,
59
59
  border: "none",
60
60
  outline: "none",
61
61
  position: "absolute",
62
- top: v.content(2),
63
- left: v.content(4),
62
+ top: y.content(2),
63
+ left: y.content(4),
64
64
  visibility: "hidden"
65
65
  }
66
66
  }),
67
67
  /* @__PURE__ */ s(i, {
68
- ref: S,
68
+ ref: C,
69
69
  tag: "textarea",
70
70
  flexGrow: 1,
71
- value: p,
71
+ value: m,
72
72
  "aria-label": "메시지 입력",
73
- ...h,
73
+ ...g,
74
74
  inlineCSS: {
75
- height: y,
75
+ height: b,
76
76
  lineHeight: `${l}px`,
77
77
  border: "none",
78
78
  outline: "none",
@@ -80,11 +80,11 @@ function u({ wrapperProps: u, inlineCSS: d, onSend: f, value: p, ref: m, ...h })
80
80
  resize: "none",
81
81
  scrollbarWidth: "none",
82
82
  "&::-webkit-scrollbar": { display: "none" },
83
- ...d
83
+ ...f
84
84
  }
85
85
  }),
86
86
  /* @__PURE__ */ s("div", {
87
- onClick: C,
87
+ onClick: w,
88
88
  style: {
89
89
  position: "absolute",
90
90
  right: 0,
@@ -93,13 +93,13 @@ function u({ wrapperProps: u, inlineCSS: d, onSend: f, value: p, ref: m, ...h })
93
93
  children: /* @__PURE__ */ s(a, {
94
94
  name: "ArrowUpwardLine",
95
95
  variant: "filled",
96
- disabled: !p,
96
+ disabled: !m,
97
97
  "aria-label": "전송",
98
98
  inlineCSS: { pointerEvents: "none" }
99
99
  })
100
100
  })
101
101
  ]
102
- })
102
+ })]
103
103
  });
104
104
  }
105
105
  //#endregion