@elliemae/ds-chat 2.3.0-alpha.8 → 2.3.0-next.2

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 (489) hide show
  1. package/cjs/ChatDataTestids.js +28 -0
  2. package/cjs/index.d.js +2 -0
  3. package/cjs/index.js +44 -0
  4. package/cjs/parts/bubble/ChatBubble.js +74 -0
  5. package/cjs/parts/bubble/ChatBubbleArrow.js +80 -0
  6. package/cjs/parts/bubble/config/useValidateProps.js +31 -0
  7. package/cjs/parts/bubble/index.js +12 -0
  8. package/cjs/parts/bubble/props.js +57 -0
  9. package/cjs/parts/bubble/styled.js +53 -0
  10. package/cjs/parts/chat-card/ChatCard.js +46 -0
  11. package/cjs/parts/chat-card/config/useValidateProps.js +11 -0
  12. package/cjs/parts/chat-card/index.js +10 -0
  13. package/cjs/parts/chat-card/props.js +14 -0
  14. package/cjs/parts/chat-card/styled.js +36 -0
  15. package/cjs/parts/chat-composer/ChatContainerComposer.js +164 -0
  16. package/cjs/parts/chat-composer/config/useValidateProps.js +11 -0
  17. package/cjs/parts/chat-composer/index.js +10 -0
  18. package/cjs/parts/chat-composer/props.js +44 -0
  19. package/cjs/parts/chat-composer/styled.js +34 -0
  20. package/cjs/parts/chat-container/ChatContainer.js +175 -0
  21. package/cjs/parts/chat-container/config/useValidateProps.js +11 -0
  22. package/cjs/parts/chat-container/index.js +10 -0
  23. package/cjs/parts/chat-container/props.js +49 -0
  24. package/cjs/parts/chat-container/styled.js +29 -0
  25. package/cjs/parts/chat-container-header/ChatContainerHeader.js +39 -0
  26. package/cjs/parts/chat-container-header/helpers.js +31 -0
  27. package/cjs/parts/chat-container-header/styled.js +24 -0
  28. package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +369 -0
  29. package/cjs/parts/chat-container-messages-list/config/useValidateProps.js +11 -0
  30. package/cjs/parts/chat-container-messages-list/index.js +10 -0
  31. package/cjs/parts/chat-container-messages-list/props.js +30 -0
  32. package/cjs/parts/chat-container-messages-list/styled.js +38 -0
  33. package/cjs/parts/chat-empty-state/ChatEmptyState.js +54 -0
  34. package/cjs/parts/chat-empty-state/config/useValidateProps.js +11 -0
  35. package/cjs/parts/chat-empty-state/props.js +17 -0
  36. package/cjs/parts/chat-empty-state/styled.js +22 -0
  37. package/cjs/parts/chat-sidebar/SideBarChat.js +99 -0
  38. package/cjs/parts/chat-sidebar/config/useValidateProps.js +11 -0
  39. package/cjs/parts/chat-sidebar/index.js +10 -0
  40. package/cjs/parts/chat-sidebar/props.js +42 -0
  41. package/cjs/parts/chat-sidebar/styled.js +21 -0
  42. package/cjs/parts/floating-button/FloatingButton.js +35 -0
  43. package/cjs/parts/floating-button/index.js +9 -0
  44. package/cjs/parts/floating-button/props.js +20 -0
  45. package/cjs/parts/floating-button/styled.js +18 -0
  46. package/cjs/parts/floating-container/styled.js +17 -0
  47. package/cjs/parts/grid-influencer/InfluencerContainer.js +23 -0
  48. package/cjs/parts/grid-influencer/styled.js +21 -0
  49. package/cjs/parts/message-delimiter/MessageDelimiter.js +41 -0
  50. package/cjs/parts/message-delimiter/config/useValidateProps.js +11 -0
  51. package/cjs/parts/message-delimiter/index.js +10 -0
  52. package/cjs/parts/message-delimiter/props.js +23 -0
  53. package/cjs/parts/message-delimiter/styled.js +24 -0
  54. package/cjs/parts/sidebar-button/SidebarButton.js +56 -0
  55. package/cjs/parts/sidebar-button/index.js +2 -0
  56. package/cjs/parts/sidebar-button/props.js +30 -0
  57. package/cjs/parts/sidebar-button/styled.js +25 -0
  58. package/cjs/parts/system-message/SystemMessage.js +44 -0
  59. package/cjs/parts/system-message/config/useValidateProps.js +11 -0
  60. package/cjs/parts/system-message/index.js +10 -0
  61. package/cjs/parts/system-message/props.js +19 -0
  62. package/cjs/parts/system-message/style.js +32 -0
  63. package/cjs/parts/tile-button/TileButton.js +107 -0
  64. package/cjs/parts/tile-button/config/useValidateProps.js +11 -0
  65. package/cjs/parts/tile-button/index.js +10 -0
  66. package/cjs/parts/tile-button/props.js +55 -0
  67. package/cjs/parts/tile-button/styled.js +95 -0
  68. package/cjs/prop-types.js +33 -0
  69. package/cjs/styled.js +17 -0
  70. package/esm/ChatDataTestids.js +24 -0
  71. package/esm/index.d.js +1 -0
  72. package/esm/index.js +14 -0
  73. package/esm/parts/bubble/ChatBubble.js +64 -0
  74. package/esm/parts/bubble/ChatBubbleArrow.js +72 -0
  75. package/esm/parts/bubble/config/useValidateProps.js +27 -0
  76. package/esm/parts/bubble/index.js +2 -0
  77. package/esm/parts/bubble/props.js +46 -0
  78. package/esm/parts/bubble/styled.js +37 -0
  79. package/esm/parts/chat-card/ChatCard.js +37 -0
  80. package/esm/parts/chat-card/config/useValidateProps.js +7 -0
  81. package/esm/parts/chat-card/index.js +1 -0
  82. package/esm/parts/chat-card/props.js +10 -0
  83. package/esm/parts/chat-card/styled.js +23 -0
  84. package/esm/parts/chat-composer/ChatContainerComposer.js +153 -0
  85. package/esm/parts/chat-composer/config/useValidateProps.js +7 -0
  86. package/esm/parts/chat-composer/index.js +1 -0
  87. package/esm/parts/chat-composer/props.js +39 -0
  88. package/esm/parts/chat-composer/styled.js +22 -0
  89. package/esm/parts/chat-container/ChatContainer.js +162 -0
  90. package/esm/parts/chat-container/config/useValidateProps.js +7 -0
  91. package/esm/parts/chat-container/index.js +1 -0
  92. package/esm/parts/chat-container/props.js +44 -0
  93. package/esm/parts/chat-container/styled.js +18 -0
  94. package/esm/parts/chat-container-header/ChatContainerHeader.js +31 -0
  95. package/esm/parts/chat-container-header/helpers.js +23 -0
  96. package/esm/parts/chat-container-header/styled.js +14 -0
  97. package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +357 -0
  98. package/esm/parts/chat-container-messages-list/config/useValidateProps.js +7 -0
  99. package/esm/parts/chat-container-messages-list/index.js +1 -0
  100. package/esm/parts/chat-container-messages-list/props.js +25 -0
  101. package/esm/parts/chat-container-messages-list/styled.js +25 -0
  102. package/esm/parts/chat-empty-state/ChatEmptyState.js +45 -0
  103. package/esm/parts/chat-empty-state/config/useValidateProps.js +7 -0
  104. package/esm/parts/chat-empty-state/props.js +12 -0
  105. package/esm/parts/chat-empty-state/styled.js +12 -0
  106. package/esm/parts/chat-sidebar/SideBarChat.js +88 -0
  107. package/esm/parts/chat-sidebar/config/useValidateProps.js +7 -0
  108. package/esm/parts/chat-sidebar/index.js +1 -0
  109. package/esm/parts/chat-sidebar/props.js +37 -0
  110. package/esm/parts/chat-sidebar/styled.js +12 -0
  111. package/esm/parts/floating-button/FloatingButton.js +27 -0
  112. package/esm/parts/floating-button/index.js +1 -0
  113. package/esm/parts/floating-button/props.js +15 -0
  114. package/esm/parts/floating-button/styled.js +10 -0
  115. package/esm/parts/floating-container/styled.js +9 -0
  116. package/esm/parts/grid-influencer/InfluencerContainer.js +14 -0
  117. package/esm/parts/grid-influencer/styled.js +12 -0
  118. package/esm/parts/message-delimiter/MessageDelimiter.js +32 -0
  119. package/esm/parts/message-delimiter/config/useValidateProps.js +7 -0
  120. package/esm/parts/message-delimiter/index.js +1 -0
  121. package/esm/parts/message-delimiter/props.js +18 -0
  122. package/esm/parts/message-delimiter/styled.js +14 -0
  123. package/esm/parts/sidebar-button/SidebarButton.js +45 -0
  124. package/esm/parts/sidebar-button/index.js +1 -0
  125. package/esm/parts/sidebar-button/props.js +21 -0
  126. package/esm/parts/sidebar-button/styled.js +15 -0
  127. package/esm/parts/system-message/SystemMessage.js +35 -0
  128. package/esm/parts/system-message/config/useValidateProps.js +7 -0
  129. package/esm/parts/system-message/index.js +1 -0
  130. package/esm/parts/system-message/props.js +14 -0
  131. package/esm/parts/system-message/style.js +20 -0
  132. package/esm/parts/tile-button/TileButton.js +97 -0
  133. package/esm/parts/tile-button/config/useValidateProps.js +7 -0
  134. package/esm/parts/tile-button/index.js +1 -0
  135. package/esm/parts/tile-button/props.js +50 -0
  136. package/esm/parts/tile-button/styled.js +78 -0
  137. package/esm/prop-types.js +28 -0
  138. package/esm/styled.js +8 -0
  139. package/package.json +163 -165
  140. package/types/ChatDataTestids.d.ts +22 -0
  141. package/types/index.d.d.ts +37 -0
  142. package/types/index.d.ts +13 -0
  143. package/types/parts/bubble/ChatBubble.d.ts +30 -0
  144. package/types/parts/bubble/ChatBubbleArrow.d.ts +8 -0
  145. package/types/parts/bubble/config/useValidateProps.d.ts +2 -0
  146. package/types/parts/bubble/index.d.ts +2 -0
  147. package/types/parts/bubble/props.d.ts +52 -0
  148. package/types/parts/bubble/styled.d.ts +10 -0
  149. package/types/parts/bubble/tests/ChatBubble.test.d.ts +1 -0
  150. package/types/parts/chat-card/ChatCard.d.ts +33 -0
  151. package/types/parts/chat-card/config/useValidateProps.d.ts +2 -0
  152. package/types/parts/chat-card/index.d.ts +1 -0
  153. package/types/parts/chat-card/props.d.ts +29 -0
  154. package/types/parts/chat-card/styled.d.ts +7 -0
  155. package/types/parts/chat-composer/ChatContainerComposer.d.ts +60 -0
  156. package/types/parts/chat-composer/config/useValidateProps.d.ts +2 -0
  157. package/types/parts/chat-composer/index.d.ts +1 -0
  158. package/types/parts/chat-composer/styled.d.ts +5 -0
  159. package/types/parts/chat-composer/tests/ChatContainerComposer.test.d.ts +1 -0
  160. package/types/parts/chat-container/ChatContainer.d.ts +63 -0
  161. package/types/parts/chat-container/config/useValidateProps.d.ts +2 -0
  162. package/types/parts/chat-container/index.d.ts +1 -0
  163. package/types/parts/chat-container/styled.d.ts +8 -0
  164. package/types/parts/chat-container/tests/ChatContainer.test.d.ts +1 -0
  165. package/types/parts/chat-container-header/ChatContainerHeader.d.ts +2 -0
  166. package/types/parts/chat-container-header/helpers.d.ts +6 -0
  167. package/types/parts/chat-container-header/styled.d.ts +4 -0
  168. package/types/parts/chat-container-messages-list/ChatContainerMessagesList.d.ts +48 -0
  169. package/types/parts/chat-container-messages-list/config/useValidateProps.d.ts +2 -0
  170. package/types/parts/chat-container-messages-list/index.d.ts +1 -0
  171. package/types/parts/chat-container-messages-list/styled.d.ts +11 -0
  172. package/types/parts/chat-empty-state/ChatEmptyState.d.ts +21 -0
  173. package/types/parts/chat-empty-state/config/useValidateProps.d.ts +2 -0
  174. package/types/parts/chat-empty-state/props.d.ts +15 -0
  175. package/types/parts/chat-empty-state/styled.d.ts +4 -0
  176. package/types/parts/chat-sidebar/SideBarChat.d.ts +48 -0
  177. package/types/parts/chat-sidebar/config/useValidateProps.d.ts +2 -0
  178. package/types/parts/chat-sidebar/index.d.ts +1 -0
  179. package/types/parts/chat-sidebar/props.d.ts +52 -0
  180. package/types/parts/chat-sidebar/styled.d.ts +3 -0
  181. package/types/parts/floating-button/FloatingButton.d.ts +18 -0
  182. package/types/parts/floating-button/index.d.ts +1 -0
  183. package/types/parts/floating-button/props.d.ts +19 -0
  184. package/types/parts/floating-button/styled.d.ts +1 -0
  185. package/types/parts/floating-container/styled.d.ts +1 -0
  186. package/types/parts/grid-influencer/InfluencerContainer.d.ts +2 -0
  187. package/types/parts/grid-influencer/styled.d.ts +3 -0
  188. package/types/parts/message-delimiter/MessageDelimiter.d.ts +31 -0
  189. package/types/parts/message-delimiter/config/useValidateProps.d.ts +2 -0
  190. package/types/parts/message-delimiter/index.d.ts +1 -0
  191. package/types/parts/message-delimiter/props.d.ts +26 -0
  192. package/types/parts/message-delimiter/styled.d.ts +6 -0
  193. package/types/parts/sidebar-button/SidebarButton.d.ts +24 -0
  194. package/types/parts/sidebar-button/index.d.ts +0 -0
  195. package/types/parts/sidebar-button/props.d.ts +29 -0
  196. package/types/parts/sidebar-button/styled.d.ts +4 -0
  197. package/types/parts/system-message/SystemMessage.d.ts +23 -0
  198. package/types/parts/system-message/config/useValidateProps.d.ts +2 -0
  199. package/types/parts/system-message/index.d.ts +1 -0
  200. package/types/parts/system-message/props.d.ts +17 -0
  201. package/types/parts/system-message/style.d.ts +7 -0
  202. package/types/parts/tile-button/TileButton.d.ts +75 -0
  203. package/types/parts/tile-button/config/useValidateProps.d.ts +2 -0
  204. package/types/parts/tile-button/index.d.ts +1 -0
  205. package/types/parts/tile-button/props.d.ts +88 -0
  206. package/types/parts/tile-button/styled.d.ts +11 -0
  207. package/types/prop-types.d.ts +33 -0
  208. package/types/styled.d.ts +6 -0
  209. package/types/tests/utils.d.ts +1 -0
  210. package/dist/cjs/ChatDataTestids.js +0 -56
  211. package/dist/cjs/ChatDataTestids.js.map +0 -7
  212. package/dist/cjs/index.d.js +0 -27
  213. package/dist/cjs/index.d.js.map +0 -7
  214. package/dist/cjs/index.js +0 -69
  215. package/dist/cjs/index.js.map +0 -7
  216. package/dist/cjs/parts/bubble/ChatBubble.js +0 -84
  217. package/dist/cjs/parts/bubble/ChatBubble.js.map +0 -7
  218. package/dist/cjs/parts/bubble/ChatBubbleArrow.js +0 -97
  219. package/dist/cjs/parts/bubble/ChatBubbleArrow.js.map +0 -7
  220. package/dist/cjs/parts/bubble/config/useValidateProps.js +0 -54
  221. package/dist/cjs/parts/bubble/config/useValidateProps.js.map +0 -7
  222. package/dist/cjs/parts/bubble/index.js +0 -38
  223. package/dist/cjs/parts/bubble/index.js.map +0 -7
  224. package/dist/cjs/parts/bubble/props.js +0 -69
  225. package/dist/cjs/parts/bubble/props.js.map +0 -7
  226. package/dist/cjs/parts/bubble/styled.js +0 -146
  227. package/dist/cjs/parts/bubble/styled.js.map +0 -7
  228. package/dist/cjs/parts/chat-card/ChatCard.js +0 -62
  229. package/dist/cjs/parts/chat-card/ChatCard.js.map +0 -7
  230. package/dist/cjs/parts/chat-card/config/useValidateProps.js +0 -38
  231. package/dist/cjs/parts/chat-card/config/useValidateProps.js.map +0 -7
  232. package/dist/cjs/parts/chat-card/index.js +0 -36
  233. package/dist/cjs/parts/chat-card/index.js.map +0 -7
  234. package/dist/cjs/parts/chat-card/props.js +0 -41
  235. package/dist/cjs/parts/chat-card/props.js.map +0 -7
  236. package/dist/cjs/parts/chat-card/styled.js +0 -71
  237. package/dist/cjs/parts/chat-card/styled.js.map +0 -7
  238. package/dist/cjs/parts/chat-composer/ChatContainerComposer.js +0 -157
  239. package/dist/cjs/parts/chat-composer/ChatContainerComposer.js.map +0 -7
  240. package/dist/cjs/parts/chat-composer/config/useValidateProps.js +0 -38
  241. package/dist/cjs/parts/chat-composer/config/useValidateProps.js.map +0 -7
  242. package/dist/cjs/parts/chat-composer/index.js +0 -36
  243. package/dist/cjs/parts/chat-composer/index.js.map +0 -7
  244. package/dist/cjs/parts/chat-composer/props.js +0 -79
  245. package/dist/cjs/parts/chat-composer/props.js.map +0 -7
  246. package/dist/cjs/parts/chat-composer/styled.js +0 -102
  247. package/dist/cjs/parts/chat-composer/styled.js.map +0 -7
  248. package/dist/cjs/parts/chat-container/ChatContainer.js +0 -157
  249. package/dist/cjs/parts/chat-container/ChatContainer.js.map +0 -7
  250. package/dist/cjs/parts/chat-container/config/useValidateProps.js +0 -38
  251. package/dist/cjs/parts/chat-container/config/useValidateProps.js.map +0 -7
  252. package/dist/cjs/parts/chat-container/index.js +0 -36
  253. package/dist/cjs/parts/chat-container/index.js.map +0 -7
  254. package/dist/cjs/parts/chat-container/props.js +0 -92
  255. package/dist/cjs/parts/chat-container/props.js.map +0 -7
  256. package/dist/cjs/parts/chat-container/styled.js +0 -110
  257. package/dist/cjs/parts/chat-container/styled.js.map +0 -7
  258. package/dist/cjs/parts/chat-container-header/ChatContainerHeader.js +0 -57
  259. package/dist/cjs/parts/chat-container-header/ChatContainerHeader.js.map +0 -7
  260. package/dist/cjs/parts/chat-container-header/helpers.js +0 -44
  261. package/dist/cjs/parts/chat-container-header/helpers.js.map +0 -7
  262. package/dist/cjs/parts/chat-container-header/styled.js +0 -59
  263. package/dist/cjs/parts/chat-container-header/styled.js.map +0 -7
  264. package/dist/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +0 -307
  265. package/dist/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +0 -7
  266. package/dist/cjs/parts/chat-container-messages-list/config/useValidateProps.js +0 -38
  267. package/dist/cjs/parts/chat-container-messages-list/config/useValidateProps.js.map +0 -7
  268. package/dist/cjs/parts/chat-container-messages-list/index.js +0 -36
  269. package/dist/cjs/parts/chat-container-messages-list/index.js.map +0 -7
  270. package/dist/cjs/parts/chat-container-messages-list/props.js +0 -68
  271. package/dist/cjs/parts/chat-container-messages-list/props.js.map +0 -7
  272. package/dist/cjs/parts/chat-container-messages-list/styled.js +0 -100
  273. package/dist/cjs/parts/chat-container-messages-list/styled.js.map +0 -7
  274. package/dist/cjs/parts/chat-empty-state/ChatEmptyState.js +0 -70
  275. package/dist/cjs/parts/chat-empty-state/ChatEmptyState.js.map +0 -7
  276. package/dist/cjs/parts/chat-empty-state/config/useValidateProps.js +0 -38
  277. package/dist/cjs/parts/chat-empty-state/config/useValidateProps.js.map +0 -7
  278. package/dist/cjs/parts/chat-empty-state/props.js +0 -44
  279. package/dist/cjs/parts/chat-empty-state/props.js.map +0 -7
  280. package/dist/cjs/parts/chat-empty-state/styled.js +0 -48
  281. package/dist/cjs/parts/chat-empty-state/styled.js.map +0 -7
  282. package/dist/cjs/parts/chat-sidebar/SideBarChat.js +0 -100
  283. package/dist/cjs/parts/chat-sidebar/SideBarChat.js.map +0 -7
  284. package/dist/cjs/parts/chat-sidebar/config/useValidateProps.js +0 -38
  285. package/dist/cjs/parts/chat-sidebar/config/useValidateProps.js.map +0 -7
  286. package/dist/cjs/parts/chat-sidebar/index.js +0 -36
  287. package/dist/cjs/parts/chat-sidebar/index.js.map +0 -7
  288. package/dist/cjs/parts/chat-sidebar/props.js +0 -84
  289. package/dist/cjs/parts/chat-sidebar/props.js.map +0 -7
  290. package/dist/cjs/parts/chat-sidebar/styled.js +0 -57
  291. package/dist/cjs/parts/chat-sidebar/styled.js.map +0 -7
  292. package/dist/cjs/parts/floating-button/FloatingButton.js +0 -48
  293. package/dist/cjs/parts/floating-button/FloatingButton.js.map +0 -7
  294. package/dist/cjs/parts/floating-button/index.js +0 -28
  295. package/dist/cjs/parts/floating-button/index.js.map +0 -7
  296. package/dist/cjs/parts/floating-button/props.js +0 -47
  297. package/dist/cjs/parts/floating-button/props.js.map +0 -7
  298. package/dist/cjs/parts/floating-button/styled.js +0 -64
  299. package/dist/cjs/parts/floating-button/styled.js.map +0 -7
  300. package/dist/cjs/parts/floating-container/styled.js +0 -47
  301. package/dist/cjs/parts/floating-container/styled.js.map +0 -7
  302. package/dist/cjs/parts/grid-influencer/InfluencerContainer.js +0 -43
  303. package/dist/cjs/parts/grid-influencer/InfluencerContainer.js.map +0 -7
  304. package/dist/cjs/parts/grid-influencer/styled.js +0 -56
  305. package/dist/cjs/parts/grid-influencer/styled.js.map +0 -7
  306. package/dist/cjs/parts/message-delimiter/MessageDelimiter.js +0 -55
  307. package/dist/cjs/parts/message-delimiter/MessageDelimiter.js.map +0 -7
  308. package/dist/cjs/parts/message-delimiter/config/useValidateProps.js +0 -38
  309. package/dist/cjs/parts/message-delimiter/config/useValidateProps.js.map +0 -7
  310. package/dist/cjs/parts/message-delimiter/index.js +0 -36
  311. package/dist/cjs/parts/message-delimiter/index.js.map +0 -7
  312. package/dist/cjs/parts/message-delimiter/props.js +0 -48
  313. package/dist/cjs/parts/message-delimiter/props.js.map +0 -7
  314. package/dist/cjs/parts/message-delimiter/styled.js +0 -53
  315. package/dist/cjs/parts/message-delimiter/styled.js.map +0 -7
  316. package/dist/cjs/parts/sidebar-button/SidebarButton.js +0 -55
  317. package/dist/cjs/parts/sidebar-button/SidebarButton.js.map +0 -7
  318. package/dist/cjs/parts/sidebar-button/index.js +0 -20
  319. package/dist/cjs/parts/sidebar-button/index.js.map +0 -7
  320. package/dist/cjs/parts/sidebar-button/props.js +0 -53
  321. package/dist/cjs/parts/sidebar-button/props.js.map +0 -7
  322. package/dist/cjs/parts/sidebar-button/styled.js +0 -69
  323. package/dist/cjs/parts/sidebar-button/styled.js.map +0 -7
  324. package/dist/cjs/parts/system-message/SystemMessage.js +0 -59
  325. package/dist/cjs/parts/system-message/SystemMessage.js.map +0 -7
  326. package/dist/cjs/parts/system-message/config/useValidateProps.js +0 -38
  327. package/dist/cjs/parts/system-message/config/useValidateProps.js.map +0 -7
  328. package/dist/cjs/parts/system-message/index.js +0 -36
  329. package/dist/cjs/parts/system-message/index.js.map +0 -7
  330. package/dist/cjs/parts/system-message/props.js +0 -46
  331. package/dist/cjs/parts/system-message/props.js.map +0 -7
  332. package/dist/cjs/parts/system-message/style.js +0 -75
  333. package/dist/cjs/parts/system-message/style.js.map +0 -7
  334. package/dist/cjs/parts/tile-button/TileButton.js +0 -137
  335. package/dist/cjs/parts/tile-button/TileButton.js.map +0 -7
  336. package/dist/cjs/parts/tile-button/config/useValidateProps.js +0 -38
  337. package/dist/cjs/parts/tile-button/config/useValidateProps.js.map +0 -7
  338. package/dist/cjs/parts/tile-button/index.js +0 -36
  339. package/dist/cjs/parts/tile-button/index.js.map +0 -7
  340. package/dist/cjs/parts/tile-button/props.js +0 -93
  341. package/dist/cjs/parts/tile-button/props.js.map +0 -7
  342. package/dist/cjs/parts/tile-button/styled.js +0 -247
  343. package/dist/cjs/parts/tile-button/styled.js.map +0 -7
  344. package/dist/cjs/prop-types.js +0 -60
  345. package/dist/cjs/prop-types.js.map +0 -7
  346. package/dist/cjs/styled.js +0 -45
  347. package/dist/cjs/styled.js.map +0 -7
  348. package/dist/cjs/tests/utils.js +0 -66
  349. package/dist/cjs/tests/utils.js.map +0 -7
  350. package/dist/esm/ChatDataTestids.js +0 -27
  351. package/dist/esm/ChatDataTestids.js.map +0 -7
  352. package/dist/esm/index.d.js +0 -2
  353. package/dist/esm/index.d.js.map +0 -7
  354. package/dist/esm/index.js +0 -40
  355. package/dist/esm/index.js.map +0 -7
  356. package/dist/esm/parts/bubble/ChatBubble.js +0 -64
  357. package/dist/esm/parts/bubble/ChatBubble.js.map +0 -7
  358. package/dist/esm/parts/bubble/ChatBubbleArrow.js +0 -68
  359. package/dist/esm/parts/bubble/ChatBubbleArrow.js.map +0 -7
  360. package/dist/esm/parts/bubble/config/useValidateProps.js +0 -25
  361. package/dist/esm/parts/bubble/config/useValidateProps.js.map +0 -7
  362. package/dist/esm/parts/bubble/index.js +0 -9
  363. package/dist/esm/parts/bubble/index.js.map +0 -7
  364. package/dist/esm/parts/bubble/props.js +0 -40
  365. package/dist/esm/parts/bubble/props.js.map +0 -7
  366. package/dist/esm/parts/bubble/styled.js +0 -117
  367. package/dist/esm/parts/bubble/styled.js.map +0 -7
  368. package/dist/esm/parts/chat-card/ChatCard.js +0 -33
  369. package/dist/esm/parts/chat-card/ChatCard.js.map +0 -7
  370. package/dist/esm/parts/chat-card/config/useValidateProps.js +0 -9
  371. package/dist/esm/parts/chat-card/config/useValidateProps.js.map +0 -7
  372. package/dist/esm/parts/chat-card/index.js +0 -7
  373. package/dist/esm/parts/chat-card/index.js.map +0 -7
  374. package/dist/esm/parts/chat-card/props.js +0 -12
  375. package/dist/esm/parts/chat-card/props.js.map +0 -7
  376. package/dist/esm/parts/chat-card/styled.js +0 -42
  377. package/dist/esm/parts/chat-card/styled.js.map +0 -7
  378. package/dist/esm/parts/chat-composer/ChatContainerComposer.js +0 -134
  379. package/dist/esm/parts/chat-composer/ChatContainerComposer.js.map +0 -7
  380. package/dist/esm/parts/chat-composer/config/useValidateProps.js +0 -9
  381. package/dist/esm/parts/chat-composer/config/useValidateProps.js.map +0 -7
  382. package/dist/esm/parts/chat-composer/index.js +0 -7
  383. package/dist/esm/parts/chat-composer/index.js.map +0 -7
  384. package/dist/esm/parts/chat-composer/props.js +0 -50
  385. package/dist/esm/parts/chat-composer/props.js.map +0 -7
  386. package/dist/esm/parts/chat-composer/styled.js +0 -73
  387. package/dist/esm/parts/chat-composer/styled.js.map +0 -7
  388. package/dist/esm/parts/chat-container/ChatContainer.js +0 -128
  389. package/dist/esm/parts/chat-container/ChatContainer.js.map +0 -7
  390. package/dist/esm/parts/chat-container/config/useValidateProps.js +0 -9
  391. package/dist/esm/parts/chat-container/config/useValidateProps.js.map +0 -7
  392. package/dist/esm/parts/chat-container/index.js +0 -7
  393. package/dist/esm/parts/chat-container/index.js.map +0 -7
  394. package/dist/esm/parts/chat-container/props.js +0 -65
  395. package/dist/esm/parts/chat-container/props.js.map +0 -7
  396. package/dist/esm/parts/chat-container/styled.js +0 -81
  397. package/dist/esm/parts/chat-container/styled.js.map +0 -7
  398. package/dist/esm/parts/chat-container-header/ChatContainerHeader.js +0 -32
  399. package/dist/esm/parts/chat-container-header/ChatContainerHeader.js.map +0 -7
  400. package/dist/esm/parts/chat-container-header/helpers.js +0 -15
  401. package/dist/esm/parts/chat-container-header/helpers.js.map +0 -7
  402. package/dist/esm/parts/chat-container-header/styled.js +0 -30
  403. package/dist/esm/parts/chat-container-header/styled.js.map +0 -7
  404. package/dist/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +0 -285
  405. package/dist/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +0 -7
  406. package/dist/esm/parts/chat-container-messages-list/config/useValidateProps.js +0 -9
  407. package/dist/esm/parts/chat-container-messages-list/config/useValidateProps.js.map +0 -7
  408. package/dist/esm/parts/chat-container-messages-list/index.js +0 -10
  409. package/dist/esm/parts/chat-container-messages-list/index.js.map +0 -7
  410. package/dist/esm/parts/chat-container-messages-list/props.js +0 -39
  411. package/dist/esm/parts/chat-container-messages-list/props.js.map +0 -7
  412. package/dist/esm/parts/chat-container-messages-list/styled.js +0 -71
  413. package/dist/esm/parts/chat-container-messages-list/styled.js.map +0 -7
  414. package/dist/esm/parts/chat-empty-state/ChatEmptyState.js +0 -41
  415. package/dist/esm/parts/chat-empty-state/ChatEmptyState.js.map +0 -7
  416. package/dist/esm/parts/chat-empty-state/config/useValidateProps.js +0 -9
  417. package/dist/esm/parts/chat-empty-state/config/useValidateProps.js.map +0 -7
  418. package/dist/esm/parts/chat-empty-state/props.js +0 -15
  419. package/dist/esm/parts/chat-empty-state/props.js.map +0 -7
  420. package/dist/esm/parts/chat-empty-state/styled.js +0 -19
  421. package/dist/esm/parts/chat-empty-state/styled.js.map +0 -7
  422. package/dist/esm/parts/chat-sidebar/SideBarChat.js +0 -71
  423. package/dist/esm/parts/chat-sidebar/SideBarChat.js.map +0 -7
  424. package/dist/esm/parts/chat-sidebar/config/useValidateProps.js +0 -9
  425. package/dist/esm/parts/chat-sidebar/config/useValidateProps.js.map +0 -7
  426. package/dist/esm/parts/chat-sidebar/index.js +0 -7
  427. package/dist/esm/parts/chat-sidebar/index.js.map +0 -7
  428. package/dist/esm/parts/chat-sidebar/props.js +0 -55
  429. package/dist/esm/parts/chat-sidebar/props.js.map +0 -7
  430. package/dist/esm/parts/chat-sidebar/styled.js +0 -28
  431. package/dist/esm/parts/chat-sidebar/styled.js.map +0 -7
  432. package/dist/esm/parts/floating-button/FloatingButton.js +0 -19
  433. package/dist/esm/parts/floating-button/FloatingButton.js.map +0 -7
  434. package/dist/esm/parts/floating-button/index.js +0 -3
  435. package/dist/esm/parts/floating-button/index.js.map +0 -7
  436. package/dist/esm/parts/floating-button/props.js +0 -18
  437. package/dist/esm/parts/floating-button/props.js.map +0 -7
  438. package/dist/esm/parts/floating-button/styled.js +0 -35
  439. package/dist/esm/parts/floating-button/styled.js.map +0 -7
  440. package/dist/esm/parts/floating-container/styled.js +0 -18
  441. package/dist/esm/parts/floating-container/styled.js.map +0 -7
  442. package/dist/esm/parts/grid-influencer/InfluencerContainer.js +0 -14
  443. package/dist/esm/parts/grid-influencer/InfluencerContainer.js.map +0 -7
  444. package/dist/esm/parts/grid-influencer/styled.js +0 -27
  445. package/dist/esm/parts/grid-influencer/styled.js.map +0 -7
  446. package/dist/esm/parts/message-delimiter/MessageDelimiter.js +0 -26
  447. package/dist/esm/parts/message-delimiter/MessageDelimiter.js.map +0 -7
  448. package/dist/esm/parts/message-delimiter/config/useValidateProps.js +0 -9
  449. package/dist/esm/parts/message-delimiter/config/useValidateProps.js.map +0 -7
  450. package/dist/esm/parts/message-delimiter/index.js +0 -10
  451. package/dist/esm/parts/message-delimiter/index.js.map +0 -7
  452. package/dist/esm/parts/message-delimiter/props.js +0 -19
  453. package/dist/esm/parts/message-delimiter/props.js.map +0 -7
  454. package/dist/esm/parts/message-delimiter/styled.js +0 -24
  455. package/dist/esm/parts/message-delimiter/styled.js.map +0 -7
  456. package/dist/esm/parts/sidebar-button/SidebarButton.js +0 -26
  457. package/dist/esm/parts/sidebar-button/SidebarButton.js.map +0 -7
  458. package/dist/esm/parts/sidebar-button/index.js +0 -2
  459. package/dist/esm/parts/sidebar-button/index.js.map +0 -7
  460. package/dist/esm/parts/sidebar-button/props.js +0 -24
  461. package/dist/esm/parts/sidebar-button/props.js.map +0 -7
  462. package/dist/esm/parts/sidebar-button/styled.js +0 -40
  463. package/dist/esm/parts/sidebar-button/styled.js.map +0 -7
  464. package/dist/esm/parts/system-message/SystemMessage.js +0 -30
  465. package/dist/esm/parts/system-message/SystemMessage.js.map +0 -7
  466. package/dist/esm/parts/system-message/config/useValidateProps.js +0 -9
  467. package/dist/esm/parts/system-message/config/useValidateProps.js.map +0 -7
  468. package/dist/esm/parts/system-message/index.js +0 -7
  469. package/dist/esm/parts/system-message/index.js.map +0 -7
  470. package/dist/esm/parts/system-message/props.js +0 -17
  471. package/dist/esm/parts/system-message/props.js.map +0 -7
  472. package/dist/esm/parts/system-message/style.js +0 -46
  473. package/dist/esm/parts/system-message/style.js.map +0 -7
  474. package/dist/esm/parts/tile-button/TileButton.js +0 -118
  475. package/dist/esm/parts/tile-button/TileButton.js.map +0 -7
  476. package/dist/esm/parts/tile-button/config/useValidateProps.js +0 -9
  477. package/dist/esm/parts/tile-button/config/useValidateProps.js.map +0 -7
  478. package/dist/esm/parts/tile-button/index.js +0 -7
  479. package/dist/esm/parts/tile-button/index.js.map +0 -7
  480. package/dist/esm/parts/tile-button/props.js +0 -64
  481. package/dist/esm/parts/tile-button/props.js.map +0 -7
  482. package/dist/esm/parts/tile-button/styled.js +0 -218
  483. package/dist/esm/parts/tile-button/styled.js.map +0 -7
  484. package/dist/esm/prop-types.js +0 -31
  485. package/dist/esm/prop-types.js.map +0 -7
  486. package/dist/esm/styled.js +0 -16
  487. package/dist/esm/styled.js.map +0 -7
  488. package/dist/esm/tests/utils.js +0 -37
  489. package/dist/esm/tests/utils.js.map +0 -7
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/bubble/ChatBubble.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\nimport { WarningCircleFill } from '@elliemae/ds-icons';\nimport {\n StyledWrapper,\n StyledColoredBubble,\n StyledTitleBubble,\n StyledTitleLeftBubble,\n StyledTitleRightBubble,\n StyleBodyWrapper,\n StyleErrorMessage,\n StyleHelpMessage,\n} from './styled';\nimport { propsBubbles, BubbleProps } from './props';\nimport { useValidateProps } from './config/useValidateProps';\nimport { ChatBubbleArrow } from './ChatBubbleArrow';\n\nconst ChatBubble = (props: BubbleProps): JSX.Element => {\n useValidateProps(props, ChatBubbleWithSchema.toJSON());\n\n const { dsId, type, title, time, body, errorMessage, helpMessage } = props;\n const bodyParts = React.useMemo(() => (typeof body === 'string' ? body.split('\\n') : [body]), [body]);\n\n return (\n <StyledWrapper data-testid={`ds-chat-bubble-${dsId}`} type={type}>\n <StyledColoredBubble type={type}>\n <StyledTitleBubble cols={[1, 'auto']} gutter=\"xs\" alignItems=\"flex-end\" className=\"sr-only\">\n <StyledTitleLeftBubble alignItems=\"center\" data-testid={`chat-bubble-title-${dsId}`}>\n {title}\n </StyledTitleLeftBubble>\n <StyledTitleRightBubble alignItems=\"center\" type={type} data-testid={`chat-bubble-time-${dsId}`}>\n {time}\n </StyledTitleRightBubble>\n </StyledTitleBubble>\n <StyleBodyWrapper data-testid={`chat-bubble-body-${dsId}`}>\n {bodyParts.map((item, index) => (\n <React.Fragment key={`${item}-${index}`}>\n {item}\n {index < bodyParts.length - 1 ? <br /> : null}\n </React.Fragment>\n ))}\n </StyleBodyWrapper>\n <ChatBubbleArrow type={type} />\n </StyledColoredBubble>\n {errorMessage ? (\n <StyleErrorMessage data-testid={`chat-bubble-error-message-${dsId}`} p=\"xxs\" gutter=\"xxs\" cols={[1, 'auto']}>\n <span>{errorMessage}</span>\n <WarningCircleFill />\n </StyleErrorMessage>\n ) : null}\n {helpMessage ? (\n <StyleHelpMessage data-testid={`chat-bubble-help-message-${dsId}`} p=\"xxs\" gutter=\"xxs\" cols={[1, 'auto']}>\n <span>{helpMessage}</span>\n </StyleHelpMessage>\n ) : null}\n </StyledWrapper>\n );\n};\nChatBubble.propTypes = propsBubbles;\n\nconst ChatBubbleWithSchema = describe(ChatBubble);\nChatBubbleWithSchema.propTypes = propsBubbles;\n\nexport { ChatBubble, ChatBubbleWithSchema };\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA;AACA;AACA;AAEA,MAAM,aAAa,CAAC,UAAoC;AACtD,mBAAiB,OAAO,qBAAqB;AAE7C,QAAM,EAAE,MAAM,MAAM,OAAO,MAAM,MAAM,cAAc,gBAAgB;AACrE,QAAM,YAAY,OAAM,QAAQ,MAAO,OAAO,SAAS,WAAW,KAAK,MAAM,QAAQ,CAAC,OAAQ,CAAC;AAE/F,SACE,qCAAC,eAAD;AAAA,IAAe,eAAa,kBAAkB;AAAA,IAAQ;AAAA,KACpD,qCAAC,qBAAD;AAAA,IAAqB;AAAA,KACnB,qCAAC,mBAAD;AAAA,IAAmB,MAAM,CAAC,GAAG;AAAA,IAAS,QAAO;AAAA,IAAK,YAAW;AAAA,IAAW,WAAU;AAAA,KAChF,qCAAC,uBAAD;AAAA,IAAuB,YAAW;AAAA,IAAS,eAAa,qBAAqB;AAAA,KAC1E,QAEH,qCAAC,wBAAD;AAAA,IAAwB,YAAW;AAAA,IAAS;AAAA,IAAY,eAAa,oBAAoB;AAAA,KACtF,QAGL,qCAAC,kBAAD;AAAA,IAAkB,eAAa,oBAAoB;AAAA,KAChD,UAAU,IAAI,CAAC,MAAM,UACpB,qCAAC,OAAM,UAAP;AAAA,IAAgB,KAAK,GAAG,QAAQ;AAAA,KAC7B,MACA,QAAQ,UAAU,SAAS,IAAI,qCAAC,MAAD,QAAS,SAI/C,qCAAC,iBAAD;AAAA,IAAiB;AAAA,OAElB,eACC,qCAAC,mBAAD;AAAA,IAAmB,eAAa,6BAA6B;AAAA,IAAQ,GAAE;AAAA,IAAM,QAAO;AAAA,IAAM,MAAM,CAAC,GAAG;AAAA,KAClG,qCAAC,QAAD,MAAO,eACP,qCAAC,mBAAD,SAEA,MACH,cACC,qCAAC,kBAAD;AAAA,IAAkB,eAAa,4BAA4B;AAAA,IAAQ,GAAE;AAAA,IAAM,QAAO;AAAA,IAAM,MAAM,CAAC,GAAG;AAAA,KAChG,qCAAC,QAAD,MAAO,gBAEP;AAAA;AAIV,WAAW,YAAY;AAEvB,MAAM,uBAAuB,SAAS;AACtC,qBAAqB,YAAY;",
6
- "names": []
7
- }
@@ -1,68 +0,0 @@
1
- import * as React from "react";
2
- import React2 from "react";
3
- import { StyledBubbleArrow } from "./styled";
4
- import { BUBBLE_TYPES, propsArrowBubble } from "./props";
5
- const ChatBubbleArrow = ({ type }) => /* @__PURE__ */ React2.createElement(StyledBubbleArrow, null, type === BUBBLE_TYPES.RECIPIENT ? /* @__PURE__ */ React2.createElement("svg", {
6
- width: "15px",
7
- height: "14px",
8
- viewBox: "0 0 15 14"
9
- }, /* @__PURE__ */ React2.createElement("defs", null, /* @__PURE__ */ React2.createElement("path", {
10
- d: "M12,8.5 C12,7.9373169 11.6782751,7.4856453 11.2282104,7.196228 C11.2286673,7.1967363 3,2 3,2 L3,10 L10.5627441,10 L10.5658569,9.9933472 C11.3630371,9.9580688 12,9.3058472 12,8.5 Z",
11
- id: "path-chat-bubble"
12
- }), /* @__PURE__ */ React2.createElement("filter", {
13
- x: "-55.6%",
14
- y: "-50.0%",
15
- width: "211.1%",
16
- height: "225.0%",
17
- filterUnits: "objectBoundingBox",
18
- id: "filter-2"
19
- }, /* @__PURE__ */ React2.createElement("feOffset", {
20
- dx: "2.3",
21
- dy: "1.2",
22
- in: "SourceAlpha",
23
- result: "shadowOffsetOuter1"
24
- }), /* @__PURE__ */ React2.createElement("feGaussianBlur", {
25
- stdDeviation: "1.5",
26
- in: "shadowOffsetOuter1",
27
- result: "shadowBlurOuter1"
28
- }), /* @__PURE__ */ React2.createElement("feColorMatrix", {
29
- values: "0 0 0 0 0.207843137 \n 0 0 0 0 0.235294118 \n 0 0 0 0 0.274509804 \n 0 0 0 0.8 0",
30
- type: "matrix",
31
- in: "shadowBlurOuter1"
32
- }))), /* @__PURE__ */ React2.createElement("g", {
33
- id: "[DSK]-Visual-Design",
34
- stroke: "none",
35
- strokeWidth: "1",
36
- fill: "none",
37
- fillRule: "evenodd"
38
- }, /* @__PURE__ */ React2.createElement("g", {
39
- id: "Path-Copy",
40
- transform: "translate(7.500000, 6.000000) scale(-1, 1) translate(-7.500000, -6.000000) "
41
- }, /* @__PURE__ */ React2.createElement("use", {
42
- fill: "black",
43
- fillOpacity: "1",
44
- filter: "url(#filter-2)",
45
- xlinkHref: "#path-chat-bubble"
46
- }), /* @__PURE__ */ React2.createElement("use", {
47
- fill: "#FFFFFF",
48
- fillRule: "evenodd",
49
- xlinkHref: "#path-chat-bubble"
50
- })))) : /* @__PURE__ */ React2.createElement("svg", {
51
- width: "9px",
52
- height: "8px",
53
- viewBox: "0 0 9 8"
54
- }, /* @__PURE__ */ React2.createElement("g", {
55
- stroke: "none",
56
- strokeWidth: "1",
57
- fill: "none",
58
- fillRule: "evenodd"
59
- }, /* @__PURE__ */ React2.createElement("path", {
60
- d: "M9,6.5 C9,5.9373169 8.6782751,5.4856453 8.2282104,5.196228 C8.2286673,5.1967363 0,0 0,0 L0,8 L7.5627441,8 L7.5658569,7.9933472 C8.3630371,7.9580688 9,7.3058472 9,6.5 Z",
61
- id: "Path",
62
- fill: "#1E79C2"
63
- }))));
64
- ChatBubbleArrow.propTypes = propsArrowBubble;
65
- export {
66
- ChatBubbleArrow
67
- };
68
- //# sourceMappingURL=ChatBubbleArrow.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/bubble/ChatBubbleArrow.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { StyledBubbleArrow } from './styled';\nimport { BUBBLE_TYPES, BubbleProps, propsArrowBubble } from './props';\n\nexport const ChatBubbleArrow = ({ type }: Pick<BubbleProps, 'type'>): JSX.Element => (\n <StyledBubbleArrow>\n {type === BUBBLE_TYPES.RECIPIENT ? (\n <svg width=\"15px\" height=\"14px\" viewBox=\"0 0 15 14\">\n <defs>\n <path\n d=\"M12,8.5 C12,7.9373169 11.6782751,7.4856453 11.2282104,7.196228 C11.2286673,7.1967363 3,2 3,2 L3,10 L10.5627441,10 L10.5658569,9.9933472 C11.3630371,9.9580688 12,9.3058472 12,8.5 Z\"\n id=\"path-chat-bubble\"\n ></path>\n <filter x=\"-55.6%\" y=\"-50.0%\" width=\"211.1%\" height=\"225.0%\" filterUnits=\"objectBoundingBox\" id=\"filter-2\">\n <feOffset dx=\"2.3\" dy=\"1.2\" in=\"SourceAlpha\" result=\"shadowOffsetOuter1\"></feOffset>\n <feGaussianBlur stdDeviation=\"1.5\" in=\"shadowOffsetOuter1\" result=\"shadowBlurOuter1\"></feGaussianBlur>\n <feColorMatrix\n values=\"0 0 0 0 0.207843137 \n 0 0 0 0 0.235294118 \n 0 0 0 0 0.274509804 \n 0 0 0 0.8 0\"\n type=\"matrix\"\n in=\"shadowBlurOuter1\"\n ></feColorMatrix>\n </filter>\n </defs>\n <g id=\"[DSK]-Visual-Design\" stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <g id=\"Path-Copy\" transform=\"translate(7.500000, 6.000000) scale(-1, 1) translate(-7.500000, -6.000000) \">\n <use fill=\"black\" fillOpacity=\"1\" filter=\"url(#filter-2)\" xlinkHref=\"#path-chat-bubble\"></use>\n <use fill=\"#FFFFFF\" fillRule=\"evenodd\" xlinkHref=\"#path-chat-bubble\"></use>\n </g>\n </g>\n </svg>\n ) : (\n <svg width=\"9px\" height=\"8px\" viewBox=\"0 0 9 8\">\n <g stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <path\n d=\"M9,6.5 C9,5.9373169 8.6782751,5.4856453 8.2282104,5.196228 C8.2286673,5.1967363 0,0 0,0 L0,8 L7.5627441,8 L7.5658569,7.9933472 C8.3630371,7.9580688 9,7.3058472 9,6.5 Z\"\n id=\"Path\"\n fill=\"#1E79C2\"\n ></path>\n </g>\n </svg>\n )}\n </StyledBubbleArrow>\n);\n\nChatBubbleArrow.propTypes = propsArrowBubble;\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AAEO,MAAM,kBAAkB,CAAC,EAAE,WAChC,qCAAC,mBAAD,MACG,SAAS,aAAa,YACrB,qCAAC,OAAD;AAAA,EAAK,OAAM;AAAA,EAAO,QAAO;AAAA,EAAO,SAAQ;AAAA,GACtC,qCAAC,QAAD,MACE,qCAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,IAAG;AAAA,IAEL,qCAAC,UAAD;AAAA,EAAQ,GAAE;AAAA,EAAS,GAAE;AAAA,EAAS,OAAM;AAAA,EAAS,QAAO;AAAA,EAAS,aAAY;AAAA,EAAoB,IAAG;AAAA,GAC9F,qCAAC,YAAD;AAAA,EAAU,IAAG;AAAA,EAAM,IAAG;AAAA,EAAM,IAAG;AAAA,EAAc,QAAO;AAAA,IACpD,qCAAC,kBAAD;AAAA,EAAgB,cAAa;AAAA,EAAM,IAAG;AAAA,EAAqB,QAAO;AAAA,IAClE,qCAAC,iBAAD;AAAA,EACE,QAAO;AAAA,EAIP,MAAK;AAAA,EACL,IAAG;AAAA,MAIT,qCAAC,KAAD;AAAA,EAAG,IAAG;AAAA,EAAsB,QAAO;AAAA,EAAO,aAAY;AAAA,EAAI,MAAK;AAAA,EAAO,UAAS;AAAA,GAC7E,qCAAC,KAAD;AAAA,EAAG,IAAG;AAAA,EAAY,WAAU;AAAA,GAC1B,qCAAC,OAAD;AAAA,EAAK,MAAK;AAAA,EAAQ,aAAY;AAAA,EAAI,QAAO;AAAA,EAAiB,WAAU;AAAA,IACpE,qCAAC,OAAD;AAAA,EAAK,MAAK;AAAA,EAAU,UAAS;AAAA,EAAU,WAAU;AAAA,QAKvD,qCAAC,OAAD;AAAA,EAAK,OAAM;AAAA,EAAM,QAAO;AAAA,EAAM,SAAQ;AAAA,GACpC,qCAAC,KAAD;AAAA,EAAG,QAAO;AAAA,EAAO,aAAY;AAAA,EAAI,MAAK;AAAA,EAAO,UAAS;AAAA,GACpD,qCAAC,QAAD;AAAA,EACE,GAAE;AAAA,EACF,IAAG;AAAA,EACH,MAAK;AAAA;AAQjB,gBAAgB,YAAY;",
6
- "names": []
7
- }
@@ -1,25 +0,0 @@
1
- import * as React from "react";
2
- import { useValidatePropTypes } from "@elliemae/ds-props-helpers";
3
- const throwError = (message) => {
4
- throw new Error(`Bubble:: ${message}
5
- `);
6
- };
7
- const useValidateProps = (props, schema) => {
8
- useValidatePropTypes(props, schema);
9
- if (typeof props.title === "undefined") {
10
- throwError(`Please provide a title property to use this component.`);
11
- }
12
- if (typeof props.time === "undefined") {
13
- throwError(`Please provide a time property to use this component.`);
14
- }
15
- if (typeof props.body === "undefined") {
16
- throwError(`Please provide a body property to use this component.`);
17
- }
18
- if (typeof props.type === "undefined") {
19
- throwError(`Please provide a type property to use this component.`);
20
- }
21
- };
22
- export {
23
- useValidateProps
24
- };
25
- //# sourceMappingURL=useValidateProps.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/bubble/config/useValidateProps.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useValidatePropTypes } from '@elliemae/ds-props-helpers';\nimport { BubbleProps } from '../props';\n\nconst throwError = (message: string): void => {\n throw new Error(\n `Bubble:: ${message}\n `,\n );\n};\n\nexport const useValidateProps = (props: BubbleProps, schema: unknown): void => {\n useValidatePropTypes(props, schema);\n if (typeof props.title === 'undefined') {\n throwError(`Please provide a title property to use this component.`);\n }\n if (typeof props.time === 'undefined') {\n throwError(`Please provide a time property to use this component.`);\n }\n if (typeof props.body === 'undefined') {\n throwError(`Please provide a body property to use this component.`);\n }\n if (typeof props.type === 'undefined') {\n throwError(`Please provide a type property to use this component.`);\n }\n};\n"],
5
- "mappings": "AAAA;ACAA;AAGA,MAAM,aAAa,CAAC,YAA0B;AAC5C,QAAM,IAAI,MACR,YAAY;AAAA;AAAA;AAKT,MAAM,mBAAmB,CAAC,OAAoB,WAA0B;AAC7E,uBAAqB,OAAO;AAC5B,MAAI,OAAO,MAAM,UAAU,aAAa;AACtC,eAAW;AAAA;AAEb,MAAI,OAAO,MAAM,SAAS,aAAa;AACrC,eAAW;AAAA;AAEb,MAAI,OAAO,MAAM,SAAS,aAAa;AACrC,eAAW;AAAA;AAEb,MAAI,OAAO,MAAM,SAAS,aAAa;AACrC,eAAW;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- import { ChatBubble, ChatBubbleWithSchema } from "./ChatBubble";
3
- import { BUBBLE_TYPES } from "./props";
4
- export {
5
- BUBBLE_TYPES,
6
- ChatBubble,
7
- ChatBubbleWithSchema
8
- };
9
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/bubble/index.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { ChatBubble, ChatBubbleWithSchema } from './ChatBubble';\nexport { BUBBLE_TYPES } from './props';\n"],
5
- "mappings": "AAAA;ACAA;AACA;",
6
- "names": []
7
- }
@@ -1,40 +0,0 @@
1
- import * as React from "react";
2
- import propTypes from "prop-types";
3
- import { PropTypes } from "react-desc";
4
- import { noop } from "lodash";
5
- const BUBBLE_TYPES = {
6
- SENDER: "SENDER",
7
- RECIPIENT: "RECIPIENT",
8
- DELIMITER: "DELIMITER",
9
- SYSTEM: "SYSTEM"
10
- };
11
- const defaultBubbleProps = {
12
- dsId: void 0,
13
- type: BUBBLE_TYPES.SENDER,
14
- title: void 0,
15
- time: void 0,
16
- body: void 0,
17
- onClick: noop,
18
- errorMessage: void 0,
19
- helpMessage: void 0
20
- };
21
- const propsBubbles = {
22
- dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description("Unique id for bubble").defaultValue(defaultBubbleProps.dsId),
23
- type: PropTypes.oneOf([BUBBLE_TYPES.RECIPIENT, BUBBLE_TYPES.SENDER]).isRequired.description("Define bubble type ").defaultValue(defaultBubbleProps.type),
24
- title: PropTypes.string.isRequired.description("Title of the bubble").defaultValue(defaultBubbleProps.title),
25
- time: PropTypes.string.isRequired.description("Time of the bubble").defaultValue(defaultBubbleProps.title),
26
- body: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired.description("Bubble content").defaultValue(defaultBubbleProps.body),
27
- onClick: PropTypes.string.description("Callback when the bubble is tapped").defaultValue(defaultBubbleProps.onClick),
28
- errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description("Error message to display at bottom of the bubble").defaultValue(defaultBubbleProps.onClick),
29
- helpMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description("Help message to display at bottom of the bubble").defaultValue(defaultBubbleProps.onClick)
30
- };
31
- const propsArrowBubble = {
32
- type: propTypes.oneOf([BUBBLE_TYPES.RECIPIENT, BUBBLE_TYPES.SENDER])
33
- };
34
- export {
35
- BUBBLE_TYPES,
36
- defaultBubbleProps,
37
- propsArrowBubble,
38
- propsBubbles
39
- };
40
- //# sourceMappingURL=props.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/bubble/props.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import propTypes from 'prop-types';\nimport { PropTypes } from 'react-desc';\nimport { noop } from 'lodash';\nimport React from 'react';\n\n/**\n *\n * BUBBLE\n *\n */\nexport const BUBBLE_TYPES = {\n SENDER: 'SENDER',\n RECIPIENT: 'RECIPIENT',\n DELIMITER: 'DELIMITER',\n SYSTEM: 'SYSTEM',\n};\n\nexport type BubbleTypesKeys = keyof typeof BUBBLE_TYPES;\nexport type BubbleTypesValues = typeof BUBBLE_TYPES[BubbleTypesKeys];\n\nexport interface BubbleProps {\n dsId: string | number;\n type: BubbleTypesValues;\n title: string;\n body: string;\n time: string;\n errorMessage: string | React.ReactChild;\n helpMessage: string | React.ReactChild;\n onClick: (id: string | number) => void;\n}\n\nexport const defaultBubbleProps: BubbleProps = {\n dsId: undefined,\n type: BUBBLE_TYPES.SENDER,\n title: undefined,\n time: undefined,\n body: undefined,\n onClick: noop,\n errorMessage: undefined,\n helpMessage: undefined,\n};\n\nexport const propsBubbles = {\n dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n .description('Unique id for bubble')\n .defaultValue(defaultBubbleProps.dsId),\n type: PropTypes.oneOf([BUBBLE_TYPES.RECIPIENT, BUBBLE_TYPES.SENDER])\n .isRequired.description('Define bubble type ')\n .defaultValue(defaultBubbleProps.type),\n title: PropTypes.string.isRequired.description('Title of the bubble').defaultValue(defaultBubbleProps.title),\n time: PropTypes.string.isRequired.description('Time of the bubble').defaultValue(defaultBubbleProps.title),\n body: PropTypes.oneOfType([PropTypes.string, PropTypes.element])\n .isRequired.description('Bubble content')\n .defaultValue(defaultBubbleProps.body),\n onClick: PropTypes.string.description('Callback when the bubble is tapped').defaultValue(defaultBubbleProps.onClick),\n errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element])\n .description('Error message to display at bottom of the bubble')\n .defaultValue(defaultBubbleProps.onClick),\n helpMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element])\n .description('Help message to display at bottom of the bubble')\n .defaultValue(defaultBubbleProps.onClick),\n};\n\n/**\n *\n * BUBBLE ARROW\n *\n */\nexport const propsArrowBubble = {\n type: propTypes.oneOf([BUBBLE_TYPES.RECIPIENT, BUBBLE_TYPES.SENDER]),\n};\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AAQO,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AAAA;AAiBH,MAAM,qBAAkC;AAAA,EAC7C,MAAM;AAAA,EACN,MAAM,aAAa;AAAA,EACnB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAAA,EACT,cAAc;AAAA,EACd,aAAa;AAAA;AAGR,MAAM,eAAe;AAAA,EAC1B,MAAM,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,SACpD,YAAY,wBACZ,aAAa,mBAAmB;AAAA,EACnC,MAAM,UAAU,MAAM,CAAC,aAAa,WAAW,aAAa,SACzD,WAAW,YAAY,uBACvB,aAAa,mBAAmB;AAAA,EACnC,OAAO,UAAU,OAAO,WAAW,YAAY,uBAAuB,aAAa,mBAAmB;AAAA,EACtG,MAAM,UAAU,OAAO,WAAW,YAAY,sBAAsB,aAAa,mBAAmB;AAAA,EACpG,MAAM,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,UACpD,WAAW,YAAY,kBACvB,aAAa,mBAAmB;AAAA,EACnC,SAAS,UAAU,OAAO,YAAY,sCAAsC,aAAa,mBAAmB;AAAA,EAC5G,cAAc,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,UAC5D,YAAY,oDACZ,aAAa,mBAAmB;AAAA,EACnC,aAAa,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,UAC3D,YAAY,mDACZ,aAAa,mBAAmB;AAAA;AAQ9B,MAAM,mBAAmB;AAAA,EAC9B,MAAM,UAAU,MAAM,CAAC,aAAa,WAAW,aAAa;AAAA;",
6
- "names": []
7
- }
@@ -1,117 +0,0 @@
1
- import * as React from "react";
2
- import styled from "styled-components";
3
- import { Grid } from "@elliemae/ds-grid";
4
- import { BUBBLE_TYPES } from "./props";
5
- const StyledWrapper = styled.div`
6
- min-width: 224px;
7
- border-radius: 10px;
8
- `;
9
- const StyledTitleBubble = styled(Grid)`
10
- padding-top: 6px;
11
- padding-left: 10px;
12
- padding-right: 10px;
13
- padding-bottom: 4px;
14
- `;
15
- const StyledTitleLeftBubble = styled(Grid)`
16
- font-size: 13px;
17
- font-weight: 600;
18
- `;
19
- const StyledTitleRightBubble = styled(Grid)`
20
- font-size: 13px;
21
- font-weight: 400;
22
- color: ${(props) => props.type === BUBBLE_TYPES.SENDER ? "#FFF" : "#657489"};
23
- `;
24
- const StyleBodyWrapper = styled.div`
25
- font-size: 13px;
26
- font-weight: 400;
27
- line-height: 15px;
28
- min-height: 18px;
29
- padding: 0px 10px 8px 10px;
30
- `;
31
- const StyleErrorMessage = styled.div`
32
- font-size: 12px;
33
- font-weight: 400;
34
- padding-top: ${(props) => props.theme.space.xxxs};
35
- color: ${(props) => props.theme.colors.danger[900]};
36
- align-items: flex-end;
37
- justify-content: center;
38
- text-align: right;
39
- line-height: 15px;
40
- svg {
41
- fill: ${(props) => props.theme.colors.danger[900]};
42
- }
43
- a {
44
- font-size: 12px;
45
- color: ${(props) => props.theme.colors.danger[900]};
46
- }
47
- .em-ds-icon {
48
- margin-left: 8px;
49
- }
50
- `;
51
- const StyleHelpMessage = styled(StyleErrorMessage)`
52
- font-size: 12px;
53
- line-height: 15px;
54
- color: ${(props) => props.theme.colors.neutral[500]};
55
- svg {
56
- fill: ${(props) => props.theme.colors.danger[500]};
57
- }
58
- a {
59
- font-size: 12px;
60
- color: ${(props) => props.theme.colors.danger[500]};
61
- }
62
- `;
63
- const StyledBubbleArrow = styled.div`
64
- display: block;
65
- content: '';
66
- position: absolute;
67
- bottom: 10px;
68
- height: 15px;
69
- `;
70
- const StyledColoredBubble = styled.div`
71
- min-width: 224px;
72
- border-radius: 10px;
73
- position: relative;
74
-
75
- ${(props) => props.type === BUBBLE_TYPES.SENDER ? `
76
- border: 1px solid ${props.theme.colors.brand["700"]};
77
- background: ${props.theme.colors.brand[600]};
78
- color: ${props.theme.colors.neutral["000"]};
79
- ${StyledBubbleArrow}{
80
- right: -9px;
81
- bottom: 6px;
82
- svg{
83
- fill: ${props.theme.colors.brand[600]};
84
- }
85
- }
86
-
87
- a {
88
- color: #FFF;
89
- }
90
-
91
- ` : `
92
- box-shadow: 0 1px 3px 0 rgba(53,60,70,0.80);
93
- background: ${props.theme.colors.neutral["000"]};
94
- color: ${props.theme.colors.neutral[700]};
95
-
96
- ${StyledBubbleArrow}{
97
- left: -11px;
98
- bottom: 6px;
99
- svg{
100
- fill: ${props.theme.colors.neutral["000"]};
101
- }
102
- }
103
-
104
- `}
105
- `;
106
- export {
107
- StyleBodyWrapper,
108
- StyleErrorMessage,
109
- StyleHelpMessage,
110
- StyledBubbleArrow,
111
- StyledColoredBubble,
112
- StyledTitleBubble,
113
- StyledTitleLeftBubble,
114
- StyledTitleRightBubble,
115
- StyledWrapper
116
- };
117
- //# sourceMappingURL=styled.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/bubble/styled.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-grid';\nimport { BUBBLE_TYPES } from './props';\n\n// Bubble WRAPPER\nexport const StyledWrapper = styled.div<any>`\n min-width: 224px;\n border-radius: 10px;\n`;\n\n// Bubble HEADER\nexport const StyledTitleBubble = styled(Grid)`\n padding-top: 6px;\n padding-left: 10px;\n padding-right: 10px;\n padding-bottom: 4px;\n`;\n\nexport const StyledTitleLeftBubble = styled(Grid)`\n font-size: 13px;\n font-weight: 600;\n`;\nexport const StyledTitleRightBubble = styled(Grid)`\n font-size: 13px;\n font-weight: 400;\n color: ${(props) => (props.type === BUBBLE_TYPES.SENDER ? '#FFF' : '#657489')};\n`;\n\nexport const StyleBodyWrapper = styled.div<any>`\n font-size: 13px;\n font-weight: 400;\n line-height: 15px;\n min-height: 18px;\n padding: 0px 10px 8px 10px;\n`;\n\nexport const StyleErrorMessage = styled.div<any>`\n font-size: 12px;\n font-weight: 400;\n padding-top: ${(props) => props.theme.space.xxxs};\n color: ${(props) => props.theme.colors.danger[900]};\n align-items: flex-end;\n justify-content: center;\n text-align: right;\n line-height: 15px;\n svg {\n fill: ${(props) => props.theme.colors.danger[900]};\n }\n a {\n font-size: 12px;\n color: ${(props) => props.theme.colors.danger[900]};\n }\n .em-ds-icon {\n margin-left: 8px;\n }\n`;\n\nexport const StyleHelpMessage = styled(StyleErrorMessage)`\n font-size: 12px;\n line-height: 15px;\n color: ${(props) => props.theme.colors.neutral[500]};\n svg {\n fill: ${(props) => props.theme.colors.danger[500]};\n }\n a {\n font-size: 12px;\n color: ${(props) => props.theme.colors.danger[500]};\n }\n`;\n\n// bubble sender/ recipient\nexport const StyledBubbleArrow = styled.div<any>`\n display: block;\n content: '';\n position: absolute;\n bottom: 10px;\n height: 15px;\n`;\n\nexport const StyledColoredBubble = styled.div<any>`\n min-width: 224px;\n border-radius: 10px;\n position: relative;\n\n ${(props) =>\n props.type === BUBBLE_TYPES.SENDER\n ? `\n border: 1px solid ${props.theme.colors.brand['700']};\n background: ${props.theme.colors.brand[600]};\n color: ${props.theme.colors.neutral['000']};\n ${StyledBubbleArrow}{ \n right: -9px;\n bottom: 6px;\n svg{\n fill: ${props.theme.colors.brand[600]};\n }\n }\n\n a {\n color: #FFF;\n }\n\n `\n : `\n box-shadow: 0 1px 3px 0 rgba(53,60,70,0.80);\n background: ${props.theme.colors.neutral['000']};\n color: ${props.theme.colors.neutral[700]};\n\n ${StyledBubbleArrow}{ \n left: -11px;\n bottom: 6px;\n svg{\n fill: ${props.theme.colors.neutral['000']};\n }\n }\n\n `}\n`;\n"],
5
- "mappings": "AAAA;ACCA;AACA;AACA;AAGO,MAAM,gBAAgB,OAAO;AAAA;AAAA;AAAA;AAM7B,MAAM,oBAAoB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOjC,MAAM,wBAAwB,OAAO;AAAA;AAAA;AAAA;AAIrC,MAAM,yBAAyB,OAAO;AAAA;AAAA;AAAA,WAGlC,CAAC,UAAW,MAAM,SAAS,aAAa,SAAS,SAAS;AAAA;AAG9D,MAAM,mBAAmB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQhC,MAAM,oBAAoB,OAAO;AAAA;AAAA;AAAA,iBAGvB,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,WACnC,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAMpC,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,aAIpC,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAO3C,MAAM,mBAAmB,OAAO;AAAA;AAAA;AAAA,WAG5B,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,YAErC,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,aAIpC,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO;AAAA;AAAA;AAK3C,MAAM,oBAAoB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQjC,MAAM,sBAAsB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKtC,CAAC,UACD,MAAM,SAAS,aAAa,SACxB;AAAA,4BACoB,MAAM,MAAM,OAAO,MAAM;AAAA,sBAC/B,MAAM,MAAM,OAAO,MAAM;AAAA,iBAC9B,MAAM,MAAM,OAAO,QAAQ;AAAA,UAClC;AAAA;AAAA;AAAA;AAAA,wBAIc,MAAM,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QASzC;AAAA;AAAA,sBAEc,MAAM,MAAM,OAAO,QAAQ;AAAA,iBAChC,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA,UAElC;AAAA;AAAA;AAAA;AAAA,wBAIc,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,33 +0,0 @@
1
- import * as React from "react";
2
- import React2 from "react";
3
- import { describe } from "react-desc";
4
- import { SimpleTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
5
- import { propTypes } from "./props";
6
- import { useValidateProps } from "./config/useValidateProps";
7
- import { Wrapper, MainContent, Title, Content, Time, RightAddon } from "./styled";
8
- const ChatCard = (props) => {
9
- useValidateProps(props, ChatCardWithSchema.toJSON());
10
- const { title, content, time, rightAddon } = props;
11
- return /* @__PURE__ */ React2.createElement(Wrapper, {
12
- cols: ["1fr", "auto"],
13
- "data-testid": "chat-card-wrapper"
14
- }, /* @__PURE__ */ React2.createElement(MainContent, null, /* @__PURE__ */ React2.createElement(Title, {
15
- "data-testid": "chat-card-title"
16
- }, title), /* @__PURE__ */ React2.createElement(Content, {
17
- "data-testid": "chat-card-content"
18
- }, /* @__PURE__ */ React2.createElement(SimpleTruncatedTooltipText, {
19
- value: content
20
- })), time && /* @__PURE__ */ React2.createElement(Time, {
21
- "data-testid": "chat-card-time"
22
- }, time)), rightAddon && /* @__PURE__ */ React2.createElement(RightAddon, {
23
- "data-testid": "chat-card-right-addon"
24
- }, rightAddon));
25
- };
26
- ChatCard.propTypes = propTypes;
27
- const ChatCardWithSchema = describe(ChatCard);
28
- ChatCardWithSchema.propTypes = propTypes;
29
- export {
30
- ChatCard,
31
- ChatCardWithSchema
32
- };
33
- //# sourceMappingURL=ChatCard.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/chat-card/ChatCard.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from 'react-desc';\n\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { propTypes, CardPropTypes } from './props';\nimport { useValidateProps } from './config/useValidateProps';\nimport { Wrapper, MainContent, Title, Content, Time, RightAddon } from './styled';\n\nconst ChatCard = (props: CardPropTypes): JSX.Element => {\n useValidateProps(props, ChatCardWithSchema.toJSON());\n const { title, content, time, rightAddon } = props;\n return (\n <Wrapper cols={['1fr', 'auto']} data-testid=\"chat-card-wrapper\">\n <MainContent>\n <Title data-testid=\"chat-card-title\">{title}</Title>\n <Content data-testid=\"chat-card-content\">\n <SimpleTruncatedTooltipText value={content} />\n </Content>\n {time && <Time data-testid=\"chat-card-time\">{time}</Time>}\n </MainContent>\n {rightAddon && <RightAddon data-testid=\"chat-card-right-addon\">{rightAddon}</RightAddon>}\n </Wrapper>\n );\n};\n\nChatCard.propTypes = propTypes;\nconst ChatCardWithSchema = describe(ChatCard);\nChatCardWithSchema.propTypes = propTypes;\n\nexport { ChatCard, ChatCardWithSchema };\n"],
5
- "mappings": "AAAA;ACAA;AACA;AAEA;AACA;AACA;AACA;AAEA,MAAM,WAAW,CAAC,UAAsC;AACtD,mBAAiB,OAAO,mBAAmB;AAC3C,QAAM,EAAE,OAAO,SAAS,MAAM,eAAe;AAC7C,SACE,qCAAC,SAAD;AAAA,IAAS,MAAM,CAAC,OAAO;AAAA,IAAS,eAAY;AAAA,KAC1C,qCAAC,aAAD,MACE,qCAAC,OAAD;AAAA,IAAO,eAAY;AAAA,KAAmB,QACtC,qCAAC,SAAD;AAAA,IAAS,eAAY;AAAA,KACnB,qCAAC,4BAAD;AAAA,IAA4B,OAAO;AAAA,OAEpC,QAAQ,qCAAC,MAAD;AAAA,IAAM,eAAY;AAAA,KAAkB,QAE9C,cAAc,qCAAC,YAAD;AAAA,IAAY,eAAY;AAAA,KAAyB;AAAA;AAKtE,SAAS,YAAY;AACrB,MAAM,qBAAqB,SAAS;AACpC,mBAAmB,YAAY;",
6
- "names": []
7
- }
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- import { useValidatePropTypes } from "@elliemae/ds-props-helpers";
3
- const useValidateProps = (props, schema) => {
4
- useValidatePropTypes(props, schema);
5
- };
6
- export {
7
- useValidateProps
8
- };
9
- //# sourceMappingURL=useValidateProps.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../../src/parts/chat-card/config/useValidateProps.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useValidatePropTypes } from '@elliemae/ds-props-helpers';\nimport { CardPropTypes } from '../props';\n\nexport const useValidateProps = (props: CardPropTypes, schema: unknown): void => {\n useValidatePropTypes(props, schema);\n};\n"],
5
- "mappings": "AAAA;ACAA;AAGO,MAAM,mBAAmB,CAAC,OAAsB,WAA0B;AAC/E,uBAAqB,OAAO;AAAA;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import { ChatCard, ChatCardWithSchema } from "./ChatCard";
3
- export {
4
- ChatCard,
5
- ChatCardWithSchema
6
- };
7
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/chat-card/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { ChatCard, ChatCardWithSchema } from './ChatCard';\n"],
5
- "mappings": "AAAA;ACAA;",
6
- "names": []
7
- }
@@ -1,12 +0,0 @@
1
- import * as React from "react";
2
- import { PropTypes } from "react-desc";
3
- const propTypes = {
4
- title: PropTypes.string.isRequired.description(`Card's title`),
5
- content: PropTypes.string.description(`Card's content`),
6
- time: PropTypes.string.description("Time"),
7
- rightAddon: PropTypes.element.description("Right addon, badge or icon")
8
- };
9
- export {
10
- propTypes
11
- };
12
- //# sourceMappingURL=props.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/chat-card/props.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from 'react-desc';\n\nexport const propTypes = {\n title: PropTypes.string.isRequired.description(`Card's title`),\n content: PropTypes.string.description(`Card's content`),\n time: PropTypes.string.description('Time'),\n rightAddon: PropTypes.element.description('Right addon, badge or icon'),\n};\n\nexport interface CardPropTypes {\n title: string;\n content: string;\n time: string;\n rightAddon: JSX.Element;\n}\n"],
5
- "mappings": "AAAA;ACAA;AAEO,MAAM,YAAY;AAAA,EACvB,OAAO,UAAU,OAAO,WAAW,YAAY;AAAA,EAC/C,SAAS,UAAU,OAAO,YAAY;AAAA,EACtC,MAAM,UAAU,OAAO,YAAY;AAAA,EACnC,YAAY,UAAU,QAAQ,YAAY;AAAA;",
6
- "names": []
7
- }
@@ -1,42 +0,0 @@
1
- import * as React from "react";
2
- import styled from "styled-components";
3
- import { Grid } from "@elliemae/ds-grid";
4
- const Wrapper = styled(Grid)`
5
- min-width: 248px;
6
- border: 1px;
7
- border-bottom: 1px solid #ccc;
8
- padding: 12px 12px;
9
- `;
10
- const MainContent = styled.div``;
11
- const Title = styled.p`
12
- font-size: 16px;
13
- font-weight: 600;
14
- margin: 0;
15
- `;
16
- const Content = styled.p`
17
- font-size: 12px;
18
- font-weight: 400;
19
- line-height: 1;
20
- margin: 0;
21
- `;
22
- const Time = styled.p`
23
- font-size: 12px;
24
- font-weight: 100;
25
- margin: 0;
26
- margin-top: 8px;
27
- font-weight: ${(props) => props.theme.fontWeights.regular};
28
- color: ${(props) => props.theme.colors.neutral["500"]};
29
- `;
30
- const RightAddon = styled.div`
31
- height: fit-content;
32
- margin-left: 12px;
33
- `;
34
- export {
35
- Content,
36
- MainContent,
37
- RightAddon,
38
- Time,
39
- Title,
40
- Wrapper
41
- };
42
- //# sourceMappingURL=styled.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/chat-card/styled.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-grid';\n\nexport const Wrapper = styled(Grid)`\n min-width: 248px;\n border: 1px;\n border-bottom: 1px solid #ccc;\n padding: 12px 12px;\n`;\n\nexport const MainContent = styled.div``;\n\nexport const Title = styled.p`\n font-size: 16px;\n font-weight: 600;\n margin: 0;\n`;\n\nexport const Content = styled.p`\n font-size: 12px;\n font-weight: 400;\n line-height: 1;\n margin: 0;\n`;\n\nexport const Time = styled.p`\n font-size: 12px;\n font-weight: 100;\n margin: 0;\n margin-top: 8px;\n font-weight: ${(props) => props.theme.fontWeights.regular};\n color: ${(props) => props.theme.colors.neutral['500']};\n`;\n\nexport const RightAddon = styled.div`\n height: fit-content;\n margin-left: 12px;\n`;\n"],
5
- "mappings": "AAAA;ACAA;AACA;AAEO,MAAM,UAAU,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOvB,MAAM,cAAc,OAAO;AAE3B,MAAM,QAAQ,OAAO;AAAA;AAAA;AAAA;AAAA;AAMrB,MAAM,UAAU,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOvB,MAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,iBAKV,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,WACzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAG1C,MAAM,aAAa,OAAO;AAAA;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,134 +0,0 @@
1
- import * as React from "react";
2
- import React2 from "react";
3
- import { Grid } from "@elliemae/ds-grid";
4
- import { describe } from "react-desc";
5
- import { PaperAirplane } from "@elliemae/ds-icons";
6
- import {
7
- StyledChatContainerContentComposer,
8
- StyledComposerInput,
9
- StyledComposerButton,
10
- StyledCounterArea,
11
- StyledCounterErrorA11y
12
- } from "./styled";
13
- import { useValidateProps } from "./config/useValidateProps";
14
- import { defaultComposerPros, composerProps } from "./props";
15
- const ChatComposer = (props) => {
16
- useValidateProps(props, ChatComposerWithSchema.toJSON());
17
- const {
18
- inputValue,
19
- onChange,
20
- onResize,
21
- onSend,
22
- onFocus,
23
- onBlur,
24
- onKeyDown,
25
- maxHeight = 300,
26
- placeholder,
27
- inputMaxLength,
28
- maxLengthMessage,
29
- buttonDisabled,
30
- dataTestid,
31
- actionRef
32
- } = props;
33
- const COMPOSER_MIN_HEIGHT = 32;
34
- const input = React2.useRef();
35
- const inputSize = React2.useRef();
36
- const inputSend = React2.useRef();
37
- const [height, setHeight] = React2.useState(32);
38
- const internalMaxHeight = React2.useMemo(() => maxHeight - 24, [maxHeight]);
39
- const [showScroll, setShowScroll] = React2.useState(true);
40
- React2.useEffect(() => {
41
- const newHeight = inputSize.current?.scrollHeight > internalMaxHeight ? internalMaxHeight : inputSize.current?.scrollHeight;
42
- if (newHeight !== height && newHeight > COMPOSER_MIN_HEIGHT)
43
- onResize(newHeight);
44
- setHeight(newHeight);
45
- setShowScroll(inputSize.current?.scrollHeight - inputSize.current?.clientHeight > 5);
46
- }, [inputValue, internalMaxHeight, height, onResize]);
47
- React2.useEffect(() => {
48
- if (actionRef && actionRef.current) {
49
- actionRef.current.focusToComposer = () => {
50
- input.current.focus();
51
- };
52
- actionRef.current.focusToSend = () => {
53
- inputSend.current.focus();
54
- };
55
- }
56
- }, [actionRef]);
57
- const handleChange = React2.useCallback((e) => {
58
- onChange(e.target.value);
59
- }, [onChange]);
60
- const heightProps = { height, overflow: showScroll ? "auto" : "hidden" };
61
- const inputLength = String(inputValue || "").length;
62
- const hasError = React2.useMemo(() => inputLength > inputMaxLength, [inputLength, inputMaxLength]);
63
- return /* @__PURE__ */ React2.createElement(StyledChatContainerContentComposer, {
64
- rows: ["auto", "15px"],
65
- maxHeight: `${maxHeight}px`,
66
- "data-testid": dataTestid
67
- }, /* @__PURE__ */ React2.createElement(Grid, {
68
- cols: ["1fr", "24px"],
69
- style: { height: heightProps.height },
70
- justifyContent: "center",
71
- alignItems: "flex-end",
72
- gutter: "xxs"
73
- }, /* @__PURE__ */ React2.createElement(StyledComposerInput, {
74
- ref: input,
75
- onChange: handleChange,
76
- style: { ...heightProps },
77
- value: inputValue,
78
- onFocus,
79
- onBlur,
80
- onKeyDown,
81
- placeholder,
82
- "aria-label": "Message to send",
83
- "data-testid": "chat-composer-textarea",
84
- name: "chat-composer-textarea",
85
- id: "chat-composer-textarea"
86
- }), /* @__PURE__ */ React2.createElement(Grid, {
87
- height: "32px",
88
- alignItems: "center"
89
- }, /* @__PURE__ */ React2.createElement(StyledComposerButton, {
90
- buttonType: "text",
91
- icon: /* @__PURE__ */ React2.createElement(PaperAirplane, {
92
- width: 18,
93
- height: 18
94
- }),
95
- onClick: onSend,
96
- size: "s",
97
- disabled: !inputValue || buttonDisabled || hasError,
98
- "data-testid": "chat-composer-send-button",
99
- "aria-label": "Send",
100
- innerRef: inputSend
101
- }))), /* @__PURE__ */ React2.createElement(StyledComposerInput, {
102
- ref: inputSize,
103
- style: {
104
- height: 32,
105
- visibility: "hidden",
106
- pointerEvents: "none",
107
- position: "absolute",
108
- top: 0,
109
- width: input.current?.clientWidth
110
- },
111
- onChange: handleChange,
112
- value: inputValue
113
- }), /* @__PURE__ */ React2.createElement(Grid, {
114
- cols: ["1fr", "24px"],
115
- justifyContent: "flex-end",
116
- alignItems: "center",
117
- gutter: "xxs",
118
- pb: "xxs"
119
- }, /* @__PURE__ */ React2.createElement(StyledCounterArea, {
120
- hasError,
121
- "data-testid": "composer-counter-area"
122
- }, inputMaxLength && hasError ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(StyledCounterErrorA11y, {
123
- role: "alert"
124
- }, maxLengthMessage || `You have entered ${inputLength} characters and have exceeded the limit by ${inputLength - inputMaxLength}. Please limit to less than ${inputMaxLength} characters. `), maxLengthMessage || `Please limit to less than ${inputMaxLength} characters. `) : "", inputMaxLength && !maxLengthMessage ? ` ${inputLength} / ${inputMaxLength}` : ""), /* @__PURE__ */ React2.createElement(Grid, null)));
125
- };
126
- ChatComposer.propTypes = composerProps;
127
- ChatComposer.defaultProps = defaultComposerPros;
128
- const ChatComposerWithSchema = describe(ChatComposer);
129
- ChatComposerWithSchema.propTypes = composerProps;
130
- export {
131
- ChatComposer,
132
- ChatComposerWithSchema
133
- };
134
- //# sourceMappingURL=ChatContainerComposer.js.map