@dotss/tictoccroc 0.4.1 → 0.5.0

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 (205) hide show
  1. package/dist/Calendar-BOLCHnjh.js +97 -0
  2. package/dist/TimePicker-BwACyeBR.js +120 -0
  3. package/dist/convertMdToHtml-Bmk0brLK.js +1431 -0
  4. package/dist/index.mjs +105 -200
  5. package/dist/parent/b2b/components/ActionButtons/ActionButtons.mjs +26 -29
  6. package/dist/parent/b2b/components/ActionButtons/index.mjs +5 -4
  7. package/dist/parent/b2b/components/BottomNotes/BottomNotes.mjs +37 -35
  8. package/dist/parent/b2b/components/BottomNotes/index.mjs +5 -4
  9. package/dist/parent/b2b/components/EmployeeNumberField/EmployeeNumberField.mjs +12 -15
  10. package/dist/parent/b2b/components/EmployeeNumberField/index.mjs +5 -4
  11. package/dist/parent/b2b/components/NameField/NameField.mjs +12 -7
  12. package/dist/parent/b2b/components/NameField/index.mjs +5 -4
  13. package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.mjs +27 -30
  14. package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.utils.mjs +7 -8
  15. package/dist/parent/b2b/components/PhoneNumberField/index.mjs +6 -7
  16. package/dist/parent/b2b/components/Title/Title.mjs +22 -16
  17. package/dist/parent/b2b/components/Title/index.mjs +4 -3
  18. package/dist/parent/b2b/components/TopLogo/TopLogo.mjs +55 -93
  19. package/dist/parent/b2b/components/TopLogo/index.mjs +5 -4
  20. package/dist/parent/b2b/components/index.mjs +9 -19
  21. package/dist/parent/b2b/utils/convertMdToHtml/convertMdToHtml.mjs +2 -1143
  22. package/dist/parent/b2b/utils/index.mjs +2 -4
  23. package/dist/parent/notification/components/NotificationCard/NotificationCard.d.ts +3 -1
  24. package/dist/parent/notification/components/NotificationCard/NotificationCard.mjs +90 -105
  25. package/dist/parent/notification/components/NotificationCard/index.mjs +5 -4
  26. package/dist/parent/notification/components/index.mjs +2 -4
  27. package/dist/parent/notification/utils/index.mjs +2 -4
  28. package/dist/parent/notification/utils/sanitize/sanitize.mjs +6 -6
  29. package/dist/purify.es-D3W4zDrg.js +549 -0
  30. package/dist/shared/components/Calendar/Calendar.mjs +2 -80
  31. package/dist/shared/components/Calendar/index.mjs +5 -4
  32. package/dist/shared/components/Carousel/Carousel.mjs +184 -210
  33. package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +10 -7
  34. package/dist/shared/components/Carousel/CarouselSlide/index.mjs +5 -4
  35. package/dist/shared/components/Carousel/index.mjs +6 -6
  36. package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +151 -183
  37. package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +30 -50
  38. package/dist/shared/components/ChatKit/BotMessage/index.mjs +6 -8
  39. package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +64 -84
  40. package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +105 -130
  41. package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -6
  42. package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +50 -66
  43. package/dist/shared/components/ChatKit/Message/Message.mjs +178 -276
  44. package/dist/shared/components/ChatKit/Message/Message.utils.mjs +20 -31
  45. package/dist/shared/components/ChatKit/Message/index.mjs +7 -9
  46. package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +31 -27
  47. package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -3
  48. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +183 -153
  49. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +83 -108
  50. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +5 -5
  51. package/dist/shared/components/ChatKit/SystemMessage/index.mjs +7 -8
  52. package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +49 -54
  53. package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +5 -4
  54. package/dist/shared/components/ChatKit/index.mjs +13 -29
  55. package/dist/shared/components/Image/Image.d.ts +2 -0
  56. package/dist/shared/components/Image/Image.error.mjs +34 -40
  57. package/dist/shared/components/Image/Image.mjs +247 -289
  58. package/dist/shared/components/Image/index.mjs +6 -6
  59. package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -18
  60. package/dist/shared/components/LoadingAnnouncer/index.mjs +5 -4
  61. package/dist/shared/components/Masonry/Masonry.mjs +240 -276
  62. package/dist/shared/components/Masonry/Masonry.utils.mjs +62 -81
  63. package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +111 -144
  64. package/dist/shared/components/Masonry/MasonryBlock/index.mjs +5 -4
  65. package/dist/shared/components/Masonry/index.mjs +6 -6
  66. package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +54 -69
  67. package/dist/shared/components/MediaDialog/MediaBlock/index.mjs +5 -4
  68. package/dist/shared/components/MediaDialog/MediaDialog.mjs +216 -330
  69. package/dist/shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs +18 -21
  70. package/dist/shared/components/MediaDialog/MediaDialogContent/index.mjs +5 -4
  71. package/dist/shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs +22 -27
  72. package/dist/shared/components/MediaDialog/MediaDialogFooter/index.mjs +5 -4
  73. package/dist/shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs +15 -21
  74. package/dist/shared/components/MediaDialog/MediaDialogToolbar/index.mjs +5 -4
  75. package/dist/shared/components/MediaDialog/index.mjs +9 -12
  76. package/dist/shared/components/Roller/Roller.mjs +99 -132
  77. package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +9 -6
  78. package/dist/shared/components/Roller/RollerBlock/index.mjs +5 -4
  79. package/dist/shared/components/Roller/index.mjs +6 -6
  80. package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +22 -30
  81. package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +5 -4
  82. package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +25 -35
  83. package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +5 -4
  84. package/dist/shared/components/Scheduler/Scheduler.mjs +472 -567
  85. package/dist/shared/components/Scheduler/Scheduler.utils.mjs +78 -101
  86. package/dist/shared/components/Scheduler/index.mjs +8 -10
  87. package/dist/shared/components/Swiper/Swiper.mjs +238 -283
  88. package/dist/shared/components/Swiper/Swiper.utils.mjs +19 -24
  89. package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +14 -17
  90. package/dist/shared/components/Swiper/SwiperBlock/index.mjs +5 -4
  91. package/dist/shared/components/Swiper/index.mjs +6 -6
  92. package/dist/shared/components/TextField/TextField.mjs +44 -55
  93. package/dist/shared/components/TextField/index.mjs +5 -4
  94. package/dist/shared/components/TimePicker/TimePicker.mjs +2 -120
  95. package/dist/shared/components/TimePicker/index.mjs +5 -4
  96. package/dist/shared/components/index.mjs +36 -75
  97. package/dist/shared/hooks/index.mjs +4 -8
  98. package/dist/shared/hooks/useCombineRef/index.mjs +5 -4
  99. package/dist/shared/hooks/useCombineRef/useCombineRef.mjs +7 -7
  100. package/dist/shared/hooks/useInView/index.mjs +5 -4
  101. package/dist/shared/hooks/useInView/useInView.d.ts +2 -1
  102. package/dist/shared/hooks/useInView/useInView.mjs +37 -47
  103. package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +5 -4
  104. package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -6
  105. package/dist/shared/typings/common.mjs +6 -4
  106. package/dist/shared/typings/index.mjs +2 -4
  107. package/dist/shared/utils/ageToBirthDate/ageToBirthDate.mjs +17 -9
  108. package/dist/shared/utils/ageToBirthDate/index.mjs +5 -4
  109. package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +9 -10
  110. package/dist/shared/utils/birthDateToAge/index.mjs +4 -3
  111. package/dist/shared/utils/combineRef/combineRef.mjs +20 -23
  112. package/dist/shared/utils/combineRef/index.mjs +5 -4
  113. package/dist/shared/utils/dayFlagToDay/dayFlagToDay.mjs +15 -23
  114. package/dist/shared/utils/dayFlagToDay/index.mjs +5 -4
  115. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +13 -20
  116. package/dist/shared/utils/getCareTypeLabel/index.mjs +5 -4
  117. package/dist/shared/utils/getDateRange/getDateRange.mjs +15 -20
  118. package/dist/shared/utils/getDateRange/index.mjs +5 -4
  119. package/dist/shared/utils/getImageUrl/getImageUrl.mjs +7 -17
  120. package/dist/shared/utils/getImageUrl/index.mjs +5 -6
  121. package/dist/shared/utils/getTimeRange/getTimeRange.mjs +19 -21
  122. package/dist/shared/utils/getTimeRange/index.mjs +5 -4
  123. package/dist/shared/utils/getVimeoId/getVimeoId.mjs +11 -11
  124. package/dist/shared/utils/getVimeoId/index.mjs +5 -4
  125. package/dist/shared/utils/index.mjs +18 -36
  126. package/dist/shared/utils/isAndroid/index.mjs +5 -4
  127. package/dist/shared/utils/isAndroid/isAndroid.mjs +5 -5
  128. package/dist/shared/utils/isApp/index.mjs +5 -4
  129. package/dist/shared/utils/isApp/isApp.mjs +4 -4
  130. package/dist/shared/utils/isDesktop/index.mjs +5 -4
  131. package/dist/shared/utils/isDesktop/isDesktop.mjs +15 -15
  132. package/dist/shared/utils/isIos/index.mjs +5 -4
  133. package/dist/shared/utils/isIos/isIos.mjs +5 -5
  134. package/dist/shared/utils/isServer/index.mjs +4 -3
  135. package/dist/shared/utils/isServer/isServer.mjs +4 -4
  136. package/dist/shared/utils/objectToQueryString/index.mjs +5 -4
  137. package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +7 -8
  138. package/dist/shared/utils/parseQueryString/index.mjs +4 -3
  139. package/dist/shared/utils/parseQueryString/parseQueryString.mjs +5 -5
  140. package/dist/shared/utils/share/index.mjs +5 -4
  141. package/dist/shared/utils/share/share.mjs +12 -14
  142. package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +19 -11
  143. package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +83 -99
  144. package/dist/teacher/home/components/BannerAccount/index.mjs +6 -7
  145. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +127 -67
  146. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +68 -82
  147. package/dist/teacher/home/components/Carousel1Account/index.mjs +6 -7
  148. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +112 -94
  149. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +79 -85
  150. package/dist/teacher/home/components/Carousel2Account/index.mjs +6 -7
  151. package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +119 -108
  152. package/dist/teacher/home/components/TextAccount/TextAccount.mjs +91 -111
  153. package/dist/teacher/home/components/TextAccount/index.mjs +6 -7
  154. package/dist/teacher/home/components/index.mjs +9 -18
  155. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +345 -442
  156. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -5
  157. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +106 -109
  158. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +54 -58
  159. package/dist/teacher/profile/components/AbilityCollection/index.mjs +7 -8
  160. package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +73 -104
  161. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +81 -95
  162. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -3
  163. package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -6
  164. package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +148 -194
  165. package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +5 -4
  166. package/dist/teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs +61 -53
  167. package/dist/teacher/profile/components/CareNoteSection/CareNote/index.mjs +5 -4
  168. package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.mjs +72 -81
  169. package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.utils.mjs +17 -12
  170. package/dist/teacher/profile/components/CareNoteSection/index.mjs +6 -6
  171. package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +108 -134
  172. package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +5 -4
  173. package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +133 -176
  174. package/dist/teacher/profile/components/CareerSection/index.mjs +6 -6
  175. package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs +82 -88
  176. package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.mjs +4 -3
  177. package/dist/teacher/profile/components/CertificateSection/CertificateSection.mjs +112 -141
  178. package/dist/teacher/profile/components/CertificateSection/index.mjs +6 -6
  179. package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +96 -111
  180. package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +5 -4
  181. package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +112 -141
  182. package/dist/teacher/profile/components/EducationSection/index.mjs +6 -6
  183. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +107 -102
  184. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +5 -4
  185. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +85 -81
  186. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +17 -12
  187. package/dist/teacher/profile/components/ParentReviewSection/index.mjs +7 -8
  188. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +43 -36
  189. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -3
  190. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +44 -31
  191. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +11 -12
  192. package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +5 -5
  193. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +348 -433
  194. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.utils.mjs +7 -7
  195. package/dist/teacher/profile/components/ProfileSummary/index.mjs +5 -4
  196. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +80 -105
  197. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +5 -4
  198. package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +34 -27
  199. package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -6
  200. package/dist/teacher/profile/components/index.mjs +24 -48
  201. package/dist/teacher/profile/utils/index.mjs +2 -4
  202. package/dist/teacher/profile/utils/sortItems/index.mjs +5 -4
  203. package/dist/teacher/profile/utils/sortItems/sortItems.mjs +48 -48
  204. package/package.json +1 -1
  205. package/dist/purify.es-BGaRrCfO.js +0 -553
@@ -1,131 +1,106 @@
1
- import { jsx as n, jsxs as C } from "react/jsx-runtime";
2
- import { useState as S, useRef as h, useImperativeHandle as y, useEffect as k } from "react";
3
- import { Flexbox as l, IconButton as I } from "@dotss/ui";
4
- import $ from "@dotss/ui/core/useTheme";
5
- const e = 24;
6
- function E({ wrapperProps: i, inlineCSS: g, onSend: a, value: t, ref: u, ...c }) {
7
- const {
8
- palette: { background: b, grey: s },
9
- spacing: o
10
- } = $(), [m, x] = S(e), r = h(null), d = h(null);
11
- y(u, () => d.current);
12
- const f = () => {
13
- !t || c.disabled || a == null || a();
14
- };
15
- return k(() => {
16
- if (r.current) {
17
- r.current.style.height = `${e}px`;
18
- const p = r.current.scrollHeight, H = e * 3;
19
- x(Math.min(p, H));
20
- }
21
- }, [t]), /* @__PURE__ */ n(
22
- l,
23
- {
24
- pt: 2,
25
- pb: 2,
26
- pl: 4,
27
- pr: 4,
28
- gap: 1,
29
- alignItems: "center",
30
- ...i,
31
- inlineCSS: {
32
- borderTop: `1px solid ${s[10]}`,
33
- backgroundColor: s.white,
34
- ...i == null ? void 0 : i.inlineCSS
35
- },
36
- children: /* @__PURE__ */ C(
37
- l,
38
- {
39
- alignItems: "center",
40
- pt: 2,
41
- pb: 2,
42
- pl: 4,
43
- flexGrow: 1,
44
- inlineCSS: {
45
- position: "relative",
46
- maxWidth: "100%",
47
- paddingRight: o.content(12),
48
- border: `1px solid ${s[10]}`,
49
- borderRadius: 20,
50
- backgroundColor: b.primary
51
- },
52
- children: [
53
- /* @__PURE__ */ n(
54
- l,
55
- {
56
- ref: r,
57
- tag: "textarea",
58
- value: t,
59
- maxLength: c.maxLength,
60
- readOnly: !0,
61
- "aria-hidden": !0,
62
- inlineCSS: {
63
- width: `calc(100% - ${o.content(16)}px)`,
64
- minHeight: e,
65
- maxHeight: e,
66
- lineHeight: `${e}px`,
67
- border: "none",
68
- outline: "none",
69
- position: "absolute",
70
- top: o.content(2),
71
- left: o.content(4),
72
- visibility: "hidden"
73
- }
74
- }
75
- ),
76
- /* @__PURE__ */ n(
77
- l,
78
- {
79
- ref: d,
80
- tag: "textarea",
81
- flexGrow: 1,
82
- value: t,
83
- "aria-label": "메시지 입력",
84
- ...c,
85
- inlineCSS: {
86
- height: m,
87
- lineHeight: `${e}px`,
88
- border: "none",
89
- outline: "none",
90
- backgroundColor: "transparent",
91
- resize: "none",
92
- scrollbarWidth: "none",
93
- "&::-webkit-scrollbar": {
94
- display: "none"
95
- },
96
- ...g
97
- }
98
- }
99
- ),
100
- /* @__PURE__ */ n(
101
- "div",
102
- {
103
- onClick: f,
104
- style: {
105
- position: "absolute",
106
- right: 0,
107
- bottom: 0
108
- },
109
- children: /* @__PURE__ */ n(
110
- I,
111
- {
112
- name: "ArrowUpwardLine",
113
- variant: "filled",
114
- disabled: !t,
115
- "aria-label": "전송",
116
- inlineCSS: {
117
- pointerEvents: "none"
118
- }
119
- }
120
- )
121
- }
122
- )
123
- ]
124
- }
125
- )
126
- }
127
- );
1
+ import { useEffect as e, useImperativeHandle as t, useRef as n, useState as r } from "react";
2
+ import { Flexbox as i, IconButton as a } from "@dotss/ui";
3
+ import o from "@dotss/ui/core/useTheme";
4
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
+ //#region shared/components/ChatKit/InputBar/InputBar.tsx
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?.();
12
+ };
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));
18
+ }
19
+ }, [p]), /* @__PURE__ */ s(i, {
20
+ pt: 2,
21
+ pb: 2,
22
+ pl: 4,
23
+ pr: 4,
24
+ gap: 1,
25
+ alignItems: "center",
26
+ ...u,
27
+ inlineCSS: {
28
+ borderTop: `1px solid ${_[10]}`,
29
+ backgroundColor: _.white,
30
+ ...u?.inlineCSS
31
+ },
32
+ children: /* @__PURE__ */ c(i, {
33
+ alignItems: "center",
34
+ pt: 2,
35
+ pb: 2,
36
+ pl: 4,
37
+ flexGrow: 1,
38
+ inlineCSS: {
39
+ position: "relative",
40
+ maxWidth: "100%",
41
+ paddingRight: v.content(12),
42
+ border: `1px solid ${_[10]}`,
43
+ borderRadius: 20,
44
+ backgroundColor: g.primary
45
+ },
46
+ children: [
47
+ /* @__PURE__ */ s(i, {
48
+ ref: x,
49
+ tag: "textarea",
50
+ value: p,
51
+ maxLength: h.maxLength,
52
+ readOnly: !0,
53
+ "aria-hidden": !0,
54
+ inlineCSS: {
55
+ width: `calc(100% - ${v.content(16)}px)`,
56
+ minHeight: l,
57
+ maxHeight: l,
58
+ lineHeight: `${l}px`,
59
+ border: "none",
60
+ outline: "none",
61
+ position: "absolute",
62
+ top: v.content(2),
63
+ left: v.content(4),
64
+ visibility: "hidden"
65
+ }
66
+ }),
67
+ /* @__PURE__ */ s(i, {
68
+ ref: S,
69
+ tag: "textarea",
70
+ flexGrow: 1,
71
+ value: p,
72
+ "aria-label": "메시지 입력",
73
+ ...h,
74
+ inlineCSS: {
75
+ height: y,
76
+ lineHeight: `${l}px`,
77
+ border: "none",
78
+ outline: "none",
79
+ backgroundColor: "transparent",
80
+ resize: "none",
81
+ scrollbarWidth: "none",
82
+ "&::-webkit-scrollbar": { display: "none" },
83
+ ...d
84
+ }
85
+ }),
86
+ /* @__PURE__ */ s("div", {
87
+ onClick: C,
88
+ style: {
89
+ position: "absolute",
90
+ right: 0,
91
+ bottom: 0
92
+ },
93
+ children: /* @__PURE__ */ s(a, {
94
+ name: "ArrowUpwardLine",
95
+ variant: "filled",
96
+ disabled: !p,
97
+ "aria-label": "전송",
98
+ inlineCSS: { pointerEvents: "none" }
99
+ })
100
+ })
101
+ ]
102
+ })
103
+ });
128
104
  }
129
- export {
130
- E as default
131
- };
105
+ //#endregion
106
+ export { u as default };
@@ -1,6 +1,6 @@
1
- import r from "./InputBar.mjs";
2
- import { default as p } from "./InputBar.fallback.mjs";
3
- export {
4
- p as InputBarFallback,
5
- r as default
6
- };
1
+ import e from "./InputBar.mjs";
2
+ import t from "./InputBar.fallback.mjs";
3
+ //#region shared/components/ChatKit/InputBar/index.ts
4
+ var n = e;
5
+ //#endregion
6
+ export { t as InputBarFallback, n as default };
@@ -1,67 +1,51 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { Flexbox as n, Skeleton as l } from "@dotss/ui";
3
- import f from "@dotss/ui/core/useTheme";
4
- function x({
5
- mine: i = !1,
6
- showAvatar: t = !1,
7
- showTime: o = !1,
8
- width: a = 200,
9
- inlineCSS: s,
10
- ...d
11
- }) {
12
- const { spacing: h } = f();
13
- return /* @__PURE__ */ r(
14
- n,
15
- {
16
- alignItems: "flex-end",
17
- flexDirection: i ? "row-reverse" : "row",
18
- pl: 4,
19
- pr: 4,
20
- gap: 1,
21
- ...d,
22
- inlineCSS: {
23
- overflowAnchor: "none",
24
- ...s
25
- },
26
- children: [
27
- /* @__PURE__ */ r(n, { alignItems: "flex-start", gap: 2.5, children: [
28
- !i && t && /* @__PURE__ */ e(l, { width: 32, height: 32, borderRadius: 200 }),
29
- /* @__PURE__ */ e(
30
- l,
31
- {
32
- width: a,
33
- height: 38,
34
- borderRadius: 12,
35
- inlineCSS: {
36
- marginLeft: !i && t ? h.content(10.5) : void 0
37
- }
38
- }
39
- )
40
- ] }),
41
- /* @__PURE__ */ e(
42
- n,
43
- {
44
- flexDirection: "column",
45
- inlineCSS: {
46
- whiteSpace: "nowrap"
47
- },
48
- children: /* @__PURE__ */ r(n, { flexDirection: "column", alignItems: i ? "flex-end" : "flex-start", gap: 1, children: [
49
- /* @__PURE__ */ e(l, { width: 4.49, height: 12 }),
50
- /* @__PURE__ */ e(
51
- l,
52
- {
53
- width: 38,
54
- height: 12,
55
- inlineCSS: { display: o ? "visible" : "hidden" }
56
- }
57
- )
58
- ] })
59
- }
60
- )
61
- ]
62
- }
63
- );
1
+ import { Flexbox as e, Skeleton as t } from "@dotss/ui";
2
+ import n from "@dotss/ui/core/useTheme";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ //#region shared/components/ChatKit/Message/Message.fallback.tsx
5
+ function a({ mine: a = !1, showAvatar: o = !1, showTime: s = !1, width: c = 200, inlineCSS: l, ...u }) {
6
+ let { spacing: d } = n();
7
+ return /* @__PURE__ */ i(e, {
8
+ alignItems: "flex-end",
9
+ flexDirection: a ? "row-reverse" : "row",
10
+ pl: 4,
11
+ pr: 4,
12
+ gap: 1,
13
+ ...u,
14
+ inlineCSS: {
15
+ overflowAnchor: "none",
16
+ ...l
17
+ },
18
+ children: [/* @__PURE__ */ i(e, {
19
+ alignItems: "flex-start",
20
+ gap: 2.5,
21
+ children: [!a && o && /* @__PURE__ */ r(t, {
22
+ width: 32,
23
+ height: 32,
24
+ borderRadius: 200
25
+ }), /* @__PURE__ */ r(t, {
26
+ width: c,
27
+ height: 38,
28
+ borderRadius: 12,
29
+ inlineCSS: { marginLeft: !a && o ? d.content(10.5) : void 0 }
30
+ })]
31
+ }), /* @__PURE__ */ r(e, {
32
+ flexDirection: "column",
33
+ inlineCSS: { whiteSpace: "nowrap" },
34
+ children: /* @__PURE__ */ i(e, {
35
+ flexDirection: "column",
36
+ alignItems: a ? "flex-end" : "flex-start",
37
+ gap: 1,
38
+ children: [/* @__PURE__ */ r(t, {
39
+ width: 4.49,
40
+ height: 12
41
+ }), /* @__PURE__ */ r(t, {
42
+ width: 38,
43
+ height: 12,
44
+ inlineCSS: { display: s ? "visible" : "hidden" }
45
+ })]
46
+ })
47
+ })]
48
+ });
64
49
  }
65
- export {
66
- x as default
67
- };
50
+ //#endregion
51
+ export { a as default };