@elliemae/ds-chat 3.5.0-rc.9 → 3.5.1-rc.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 (69) hide show
  1. package/dist/cjs/exported-related/bubble/ChatBubble.js +63 -33
  2. package/dist/cjs/exported-related/bubble/ChatBubble.js.map +1 -1
  3. package/dist/cjs/exported-related/bubble/ChatBubbleArrow.js +83 -60
  4. package/dist/cjs/exported-related/bubble/ChatBubbleArrow.js.map +2 -2
  5. package/dist/cjs/exported-related/chat-card/ChatCard.js +28 -14
  6. package/dist/cjs/exported-related/chat-card/ChatCard.js.map +2 -2
  7. package/dist/cjs/exported-related/chat-card/props.js +2 -1
  8. package/dist/cjs/exported-related/chat-card/props.js.map +1 -1
  9. package/dist/cjs/exported-related/chat-container-header/ChatContainerHeader.js +20 -13
  10. package/dist/cjs/exported-related/chat-container-header/ChatContainerHeader.js.map +1 -1
  11. package/dist/cjs/exported-related/chat-empty-state/ChatEmptyState.js +31 -19
  12. package/dist/cjs/exported-related/chat-empty-state/ChatEmptyState.js.map +2 -2
  13. package/dist/cjs/exported-related/chat-empty-state/props.js +2 -1
  14. package/dist/cjs/exported-related/chat-empty-state/props.js.map +1 -1
  15. package/dist/cjs/exported-related/chat-sidebar/SideBarChat.js +22 -16
  16. package/dist/cjs/exported-related/chat-sidebar/SideBarChat.js.map +1 -1
  17. package/dist/cjs/exported-related/chat-sidebar/sidebar-button/SidebarButton.js +16 -9
  18. package/dist/cjs/exported-related/chat-sidebar/sidebar-button/SidebarButton.js.map +1 -1
  19. package/dist/cjs/exported-related/floating-button/FloatingButton.js +7 -6
  20. package/dist/cjs/exported-related/floating-button/FloatingButton.js.map +2 -2
  21. package/dist/cjs/exported-related/grid-influencer/InfluencerContainer.js +8 -3
  22. package/dist/cjs/exported-related/grid-influencer/InfluencerContainer.js.map +1 -1
  23. package/dist/cjs/exported-related/message-delimiter/MessageDelimiter.js +14 -8
  24. package/dist/cjs/exported-related/message-delimiter/MessageDelimiter.js.map +2 -2
  25. package/dist/cjs/exported-related/system-message/SystemMessage.js +24 -12
  26. package/dist/cjs/exported-related/system-message/SystemMessage.js.map +2 -2
  27. package/dist/cjs/exported-related/tile-button/TileButton.js +59 -35
  28. package/dist/cjs/exported-related/tile-button/TileButton.js.map +1 -1
  29. package/dist/cjs/parts/chat-composer/ChatContainerComposer.js +85 -60
  30. package/dist/cjs/parts/chat-composer/ChatContainerComposer.js.map +1 -1
  31. package/dist/cjs/parts/chat-container/ChatContainer.js +64 -50
  32. package/dist/cjs/parts/chat-container/ChatContainer.js.map +1 -1
  33. package/dist/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +64 -37
  34. package/dist/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +1 -1
  35. package/dist/esm/exported-related/bubble/ChatBubble.js +63 -33
  36. package/dist/esm/exported-related/bubble/ChatBubble.js.map +1 -1
  37. package/dist/esm/exported-related/bubble/ChatBubbleArrow.js +83 -60
  38. package/dist/esm/exported-related/bubble/ChatBubbleArrow.js.map +2 -2
  39. package/dist/esm/exported-related/chat-card/ChatCard.js +28 -14
  40. package/dist/esm/exported-related/chat-card/ChatCard.js.map +2 -2
  41. package/dist/esm/exported-related/chat-card/props.js +2 -1
  42. package/dist/esm/exported-related/chat-card/props.js.map +1 -1
  43. package/dist/esm/exported-related/chat-container-header/ChatContainerHeader.js +20 -13
  44. package/dist/esm/exported-related/chat-container-header/ChatContainerHeader.js.map +1 -1
  45. package/dist/esm/exported-related/chat-empty-state/ChatEmptyState.js +31 -19
  46. package/dist/esm/exported-related/chat-empty-state/ChatEmptyState.js.map +2 -2
  47. package/dist/esm/exported-related/chat-empty-state/props.js +2 -1
  48. package/dist/esm/exported-related/chat-empty-state/props.js.map +1 -1
  49. package/dist/esm/exported-related/chat-sidebar/SideBarChat.js +22 -16
  50. package/dist/esm/exported-related/chat-sidebar/SideBarChat.js.map +1 -1
  51. package/dist/esm/exported-related/chat-sidebar/sidebar-button/SidebarButton.js +16 -9
  52. package/dist/esm/exported-related/chat-sidebar/sidebar-button/SidebarButton.js.map +1 -1
  53. package/dist/esm/exported-related/floating-button/FloatingButton.js +7 -6
  54. package/dist/esm/exported-related/floating-button/FloatingButton.js.map +2 -2
  55. package/dist/esm/exported-related/grid-influencer/InfluencerContainer.js +8 -3
  56. package/dist/esm/exported-related/grid-influencer/InfluencerContainer.js.map +1 -1
  57. package/dist/esm/exported-related/message-delimiter/MessageDelimiter.js +14 -8
  58. package/dist/esm/exported-related/message-delimiter/MessageDelimiter.js.map +2 -2
  59. package/dist/esm/exported-related/system-message/SystemMessage.js +24 -12
  60. package/dist/esm/exported-related/system-message/SystemMessage.js.map +2 -2
  61. package/dist/esm/exported-related/tile-button/TileButton.js +59 -35
  62. package/dist/esm/exported-related/tile-button/TileButton.js.map +1 -1
  63. package/dist/esm/parts/chat-composer/ChatContainerComposer.js +85 -60
  64. package/dist/esm/parts/chat-composer/ChatContainerComposer.js.map +1 -1
  65. package/dist/esm/parts/chat-container/ChatContainer.js +64 -50
  66. package/dist/esm/parts/chat-container/ChatContainer.js.map +1 -1
  67. package/dist/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +64 -37
  68. package/dist/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +1 -1
  69. package/package.json +10 -10
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
2
3
  import React2 from "react";
3
4
  import { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from "@elliemae/ds-utilities";
4
5
  import { WarningCircleFill } from "@elliemae/ds-icons";
@@ -19,39 +20,68 @@ const ChatBubble = (props) => {
19
20
  useValidateTypescriptPropTypes(propsWithDefault, BubblesPropTypes);
20
21
  const { dsId, type, title, time, body, errorMessage, helpMessage } = propsWithDefault;
21
22
  const bodyParts = React2.useMemo(() => typeof body === "string" ? body.split("\n") : [body], [body]);
22
- return /* @__PURE__ */ React2.createElement(StyledWrapper, {
23
- "data-testid": `ds-chat-bubble-${dsId}`
24
- }, /* @__PURE__ */ React2.createElement(StyledColoredBubble, {
25
- type
26
- }, /* @__PURE__ */ React2.createElement(StyledTitleBubble, {
27
- cols: [1, "auto"],
28
- gutter: "xs",
29
- alignItems: "flex-end",
30
- className: "sr-only"
31
- }, /* @__PURE__ */ React2.createElement(StyledTitleLeftBubble, {
32
- alignItems: "center",
33
- "data-testid": `chat-bubble-title-${dsId}`
34
- }, title), /* @__PURE__ */ React2.createElement(StyledTitleRightBubble, {
35
- alignItems: "center",
36
- type,
37
- "data-testid": `chat-bubble-time-${dsId}`
38
- }, time)), /* @__PURE__ */ React2.createElement(StyleBodyWrapper, {
39
- "data-testid": `chat-bubble-body-${dsId}`
40
- }, bodyParts.map((item, index) => /* @__PURE__ */ React2.createElement(React2.Fragment, {
41
- key: `${item}-${dsId}`
42
- }, item, index < bodyParts.length - 1 ? /* @__PURE__ */ React2.createElement("br", null) : null))), /* @__PURE__ */ React2.createElement(ChatBubbleArrow, {
43
- type
44
- })), errorMessage ? /* @__PURE__ */ React2.createElement(StyleErrorMessage, {
45
- "data-testid": `chat-bubble-error-message-${dsId}`,
46
- p: "xxs",
47
- gutter: "xxs",
48
- cols: [1, "auto"]
49
- }, /* @__PURE__ */ React2.createElement("span", null, errorMessage), /* @__PURE__ */ React2.createElement(WarningCircleFill, null)) : null, helpMessage ? /* @__PURE__ */ React2.createElement(StyleHelpMessage, {
50
- "data-testid": `chat-bubble-help-message-${dsId}`,
51
- p: "xxs",
52
- gutter: "xxs",
53
- cols: [1, "auto"]
54
- }, /* @__PURE__ */ React2.createElement("span", null, helpMessage)) : null);
23
+ return /* @__PURE__ */ jsxs(StyledWrapper, {
24
+ "data-testid": `ds-chat-bubble-${dsId}`,
25
+ children: [
26
+ /* @__PURE__ */ jsxs(StyledColoredBubble, {
27
+ type,
28
+ children: [
29
+ /* @__PURE__ */ jsxs(StyledTitleBubble, {
30
+ cols: [1, "auto"],
31
+ gutter: "xs",
32
+ alignItems: "flex-end",
33
+ className: "sr-only",
34
+ children: [
35
+ /* @__PURE__ */ jsx(StyledTitleLeftBubble, {
36
+ alignItems: "center",
37
+ "data-testid": `chat-bubble-title-${dsId}`,
38
+ children: title
39
+ }),
40
+ /* @__PURE__ */ jsx(StyledTitleRightBubble, {
41
+ alignItems: "center",
42
+ type,
43
+ "data-testid": `chat-bubble-time-${dsId}`,
44
+ children: time
45
+ })
46
+ ]
47
+ }),
48
+ /* @__PURE__ */ jsx(StyleBodyWrapper, {
49
+ "data-testid": `chat-bubble-body-${dsId}`,
50
+ children: bodyParts.map((item, index) => /* @__PURE__ */ jsxs(React2.Fragment, {
51
+ children: [
52
+ item,
53
+ index < bodyParts.length - 1 ? /* @__PURE__ */ jsx("br", {}) : null
54
+ ]
55
+ }, `${item}-${dsId}`))
56
+ }),
57
+ /* @__PURE__ */ jsx(ChatBubbleArrow, {
58
+ type
59
+ })
60
+ ]
61
+ }),
62
+ errorMessage ? /* @__PURE__ */ jsxs(StyleErrorMessage, {
63
+ "data-testid": `chat-bubble-error-message-${dsId}`,
64
+ p: "xxs",
65
+ gutter: "xxs",
66
+ cols: [1, "auto"],
67
+ children: [
68
+ /* @__PURE__ */ jsx("span", {
69
+ children: errorMessage
70
+ }),
71
+ /* @__PURE__ */ jsx(WarningCircleFill, {})
72
+ ]
73
+ }) : null,
74
+ helpMessage ? /* @__PURE__ */ jsx(StyleHelpMessage, {
75
+ "data-testid": `chat-bubble-help-message-${dsId}`,
76
+ p: "xxs",
77
+ gutter: "xxs",
78
+ cols: [1, "auto"],
79
+ children: /* @__PURE__ */ jsx("span", {
80
+ children: helpMessage
81
+ })
82
+ }) : null
83
+ ]
84
+ });
55
85
  };
56
86
  ChatBubble.propTypes = BubblesPropTypes;
57
87
  ChatBubble.displayName = "ChatBubble";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/exported-related/bubble/ChatBubble.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\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 { BubblesPropTypes, BubblePropsT, defaultBubbleProps } from './props';\nimport { ChatBubbleArrow } from './ChatBubbleArrow';\n\nconst ChatBubble: React.ComponentType<BubblePropsT> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultBubbleProps);\n useValidateTypescriptPropTypes(propsWithDefault, BubblesPropTypes);\n\n const { dsId, type, title, time, body, errorMessage, helpMessage } = propsWithDefault;\n const bodyParts = React.useMemo(() => (typeof body === 'string' ? body.split('\\n') : [body]), [body]);\n return (\n <StyledWrapper data-testid={`ds-chat-bubble-${dsId}`}>\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}-${dsId}`}>\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};\n\nChatBubble.propTypes = BubblesPropTypes as WeakValidationMap<unknown>;\nChatBubble.displayName = 'ChatBubble';\nconst ChatBubbleWithSchema = describe(ChatBubble);\nChatBubbleWithSchema.propTypes = BubblesPropTypes as WeakValidationMap<unknown>;\n\nexport { ChatBubble, ChatBubbleWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAkC;AACzC,SAAS,UAAU,gCAAgC,oCAAoC;AACvF,SAAS,yBAAyB;AAClC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,kBAAgC,0BAA0B;AACnE,SAAS,uBAAuB;AAEhC,MAAM,aAAgD,CAAC,UAAU;AAC/D,QAAM,mBAAmB,6BAA6B,OAAO,kBAAkB;AAC/E,iCAA+B,kBAAkB,gBAAgB;AAEjE,QAAM,EAAE,MAAM,MAAM,OAAO,MAAM,MAAM,cAAc,YAAY,IAAI;AACrE,QAAM,YAAYA,OAAM,QAAQ,MAAO,OAAO,SAAS,WAAW,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,GAAI,CAAC,IAAI,CAAC;AACpG,SACE,gBAAAA,OAAA,cAAC;AAAA,IAAc,eAAa,kBAAkB;AAAA,KAC5C,gBAAAA,OAAA,cAAC;AAAA,IAAoB;AAAA,KACnB,gBAAAA,OAAA,cAAC;AAAA,IAAkB,MAAM,CAAC,GAAG,MAAM;AAAA,IAAG,QAAO;AAAA,IAAK,YAAW;AAAA,IAAW,WAAU;AAAA,KAChF,gBAAAA,OAAA,cAAC;AAAA,I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A;AAAA,OACrB,IACE;AAAA,MACH,cACC,oBAAC;AAAA,QAAiB,eAAa,4BAA4B;AAAA,QAAQ,GAAE;AAAA,QAAM,QAAO;AAAA,QAAM,MAAM,CAAC,GAAG,MAAM;AAAA,QACtG,8BAAC;AAAA,UAAM;AAAA,SAAY;AAAA,OACrB,IACE;AAAA;AAAA,GACN;AAEJ;AAEA,WAAW,YAAY;AACvB,WAAW,cAAc;AACzB,MAAM,uBAAuB,SAAS,UAAU;AAChD,qBAAqB,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,66 +1,89 @@
1
1
  import * as React from "react";
2
- import React2 from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { StyledBubbleArrow } from "./styled";
4
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
- }))));
5
+ const ChatBubbleArrow = ({ type }) => /* @__PURE__ */ jsx(StyledBubbleArrow, {
6
+ children: type === BUBBLE_TYPES.RECIPIENT ? /* @__PURE__ */ jsxs("svg", {
7
+ width: "15px",
8
+ height: "14px",
9
+ viewBox: "0 0 15 14",
10
+ children: [
11
+ /* @__PURE__ */ jsxs("defs", {
12
+ children: [
13
+ /* @__PURE__ */ jsx("path", {
14
+ 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",
15
+ id: "path-chat-bubble"
16
+ }),
17
+ /* @__PURE__ */ jsxs("filter", {
18
+ x: "-55.6%",
19
+ y: "-50.0%",
20
+ width: "211.1%",
21
+ height: "225.0%",
22
+ filterUnits: "objectBoundingBox",
23
+ id: "filter-2",
24
+ children: [
25
+ /* @__PURE__ */ jsx("feOffset", {
26
+ dx: "2.3",
27
+ dy: "1.2",
28
+ in: "SourceAlpha",
29
+ result: "shadowOffsetOuter1"
30
+ }),
31
+ /* @__PURE__ */ jsx("feGaussianBlur", {
32
+ stdDeviation: "1.5",
33
+ in: "shadowOffsetOuter1",
34
+ result: "shadowBlurOuter1"
35
+ }),
36
+ /* @__PURE__ */ jsx("feColorMatrix", {
37
+ 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",
38
+ type: "matrix",
39
+ in: "shadowBlurOuter1"
40
+ })
41
+ ]
42
+ })
43
+ ]
44
+ }),
45
+ /* @__PURE__ */ jsx("g", {
46
+ id: "[DSK]-Visual-Design",
47
+ stroke: "none",
48
+ strokeWidth: "1",
49
+ fill: "none",
50
+ fillRule: "evenodd",
51
+ children: /* @__PURE__ */ jsxs("g", {
52
+ id: "Path-Copy",
53
+ transform: "translate(7.500000, 6.000000) scale(-1, 1) translate(-7.500000, -6.000000) ",
54
+ children: [
55
+ /* @__PURE__ */ jsx("use", {
56
+ fill: "black",
57
+ fillOpacity: "1",
58
+ filter: "url(#filter-2)",
59
+ xlinkHref: "#path-chat-bubble"
60
+ }),
61
+ /* @__PURE__ */ jsx("use", {
62
+ fill: "#FFFFFF",
63
+ fillRule: "evenodd",
64
+ xlinkHref: "#path-chat-bubble"
65
+ })
66
+ ]
67
+ })
68
+ })
69
+ ]
70
+ }) : /* @__PURE__ */ jsx("svg", {
71
+ width: "9px",
72
+ height: "8px",
73
+ viewBox: "0 0 9 8",
74
+ children: /* @__PURE__ */ jsx("g", {
75
+ stroke: "none",
76
+ strokeWidth: "1",
77
+ fill: "none",
78
+ fillRule: "evenodd",
79
+ children: /* @__PURE__ */ jsx("path", {
80
+ 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",
81
+ id: "Path",
82
+ fill: "#1E79C2"
83
+ })
84
+ })
85
+ })
86
+ });
64
87
  ChatBubbleArrow.propTypes = propsArrowBubble;
65
88
  export {
66
89
  ChatBubbleArrow
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/exported-related/bubble/ChatBubbleArrow.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { WeakValidationMap } from 'react';\nimport { StyledBubbleArrow } from './styled';\nimport { BUBBLE_TYPES, BubblePropsT, propsArrowBubble } from './props';\n\nexport const ChatBubbleArrow: React.ComponentType<Pick<BubblePropsT, 'type'>> = ({ type }) => (\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 as WeakValidationMap<unknown>;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAkC;AACzC,SAAS,yBAAyB;AAClC,SAAS,cAA4B,wBAAwB;AAEtD,MAAM,kBAAmE,CAAC,EAAE,KAAK,MACtF,gBAAAA,OAAA,cAAC,yBACE,SAAS,aAAa,YACrB,gBAAAA,OAAA,cAAC;AAAA,EAAI,OAAM;AAAA,EAAO,QAAO;AAAA,EAAO,SAAQ;AAAA,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AAAA,OACF;AAAA;AAAA,GACF,IAEA,oBAAC;AAAA,IAAI,OAAM;AAAA,IAAM,QAAO;AAAA,IAAM,SAAQ;AAAA,IACpC,8BAAC;AAAA,MAAE,QAAO;AAAA,MAAO,aAAY;AAAA,MAAI,MAAK;AAAA,MAAO,UAAS;AAAA,MACpD,8BAAC;AAAA,QACC,GAAE;AAAA,QACF,IAAG;AAAA,QACH,MAAK;AAAA,OACN;AAAA,KACH;AAAA,GACF;AAAA,CAEJ;AAGF,gBAAgB,YAAY;",
6
+ "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React2 from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from "@elliemae/ds-utilities";
4
4
  import { SimpleTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
5
5
  import { propTypes, defaultProps } from "./props";
@@ -8,20 +8,34 @@ const ChatCard = (props) => {
8
8
  const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
9
9
  useValidateTypescriptPropTypes(propsWithDefault, propTypes);
10
10
  const { title, content, time, rightAddon } = props;
11
- return /* @__PURE__ */ React2.createElement(Wrapper, {
11
+ return /* @__PURE__ */ jsxs(Wrapper, {
12
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));
13
+ "data-testid": "chat-card-wrapper",
14
+ children: [
15
+ /* @__PURE__ */ jsxs(MainContent, {
16
+ children: [
17
+ /* @__PURE__ */ jsx(Title, {
18
+ "data-testid": "chat-card-title",
19
+ children: title
20
+ }),
21
+ /* @__PURE__ */ jsx(Content, {
22
+ "data-testid": "chat-card-content",
23
+ children: /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
24
+ value: content
25
+ })
26
+ }),
27
+ time && /* @__PURE__ */ jsx(Time, {
28
+ "data-testid": "chat-card-time",
29
+ children: time
30
+ })
31
+ ]
32
+ }),
33
+ rightAddon && /* @__PURE__ */ jsx(RightAddon, {
34
+ "data-testid": "chat-card-right-addon",
35
+ children: rightAddon
36
+ })
37
+ ]
38
+ });
25
39
  };
26
40
  ChatCard.propTypes = propTypes;
27
41
  ChatCard.displayName = "ChatCard";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/exported-related/chat-card/ChatCard.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\n\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { propTypes, CardPropTypes, defaultProps } from './props';\nimport { Wrapper, MainContent, Title, Content, Time, RightAddon } from './styled';\n\nconst ChatCard: React.ComponentType<CardPropTypes> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, propTypes);\n\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 as WeakValidationMap<unknown>;\nChatCard.displayName = 'ChatCard';\nconst ChatCardWithSchema = describe(ChatCard);\nChatCardWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { ChatCard, ChatCardWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAkC;AACzC,SAAS,UAAU,gCAAgC,oCAAoC;AAEvF,SAAS,kCAAkC;AAC3C,SAAS,WAA0B,oBAAoB;AACvD,SAAS,SAAS,aAAa,OAAO,SAAS,MAAM,kBAAkB;AAEvE,MAAM,WAA+C,CAAC,UAAU;AAC9D,QAAM,mBAAmB,6BAA6B,OAAO,YAAY;AACzE,iCAA+B,kBAAkB,SAAS;AAE1D,QAAM,EAAE,OAAO,SAAS,MAAM,WAAW,IAAI;AAC7C,SACE,gBAAAA,OAAA,cAAC;AAAA,IAAQ,MAAM,CAAC,OAAO,MAAM;AAAA,IAAG,eAAY;AAAA,KAC1C,gBAAAA,OAAA,cAAC,mBACC,gBAAAA,OAAA,cAAC;AAAA,IAAM,eAAY;AAAA,KAAmB,KAAM,GAC5C,gBAAAA,OAAA,cAAC;AAAA,IAAQ,eAAY;AAAA,KACnB,gBAAAA,OAAA,cAAC;AAAA,IAA2B,OAAO;AAAA,GAAS,CAC9C,GACC,QAAQ,gBAAAA,OAAA,cAAC;AAAA,IAAK,eAAY;AAAA,KAAkB,IAAK,CACpD,GACC,cAAc,gBAAAA,OAAA,cAAC;AAAA,IAAW,eAAY;AAAA,KAAyB,UAAW,CAC7E;AAEJ;AAEA,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,MAAM,qBAAqB,SAAS,QAAQ;AAC5C,mBAAmB,YAAY;",
6
- "names": ["React"]
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AACA,SAAS,UAAU,gCAAgC,oCAAoC;AAEvF,SAAS,kCAAkC;AAC3C,SAAS,WAA0B,oBAAoB;AACvD,SAAS,SAAS,aAAa,OAAO,SAAS,MAAM,kBAAkB;AAEvE,MAAM,WAA+C,CAAC,UAAU;AAC9D,QAAM,mBAAmB,6BAA6B,OAAO,YAAY;AACzE,iCAA+B,kBAAkB,SAAS;AAE1D,QAAM,EAAE,OAAO,SAAS,MAAM,WAAW,IAAI;AAC7C,SACE,qBAAC;AAAA,IAAQ,MAAM,CAAC,OAAO,MAAM;AAAA,IAAG,eAAY;AAAA,IAC1C;AAAA,2BAAC;AAAA,QACC;AAAA,8BAAC;AAAA,YAAM,eAAY;AAAA,YAAmB;AAAA,WAAM;AAAA,UAC5C,oBAAC;AAAA,YAAQ,eAAY;AAAA,YACnB,8BAAC;AAAA,cAA2B,OAAO;AAAA,aAAS;AAAA,WAC9C;AAAA,UACC,QAAQ,oBAAC;AAAA,YAAK,eAAY;AAAA,YAAkB;AAAA,WAAK;AAAA;AAAA,OACpD;AAAA,MACC,cAAc,oBAAC;AAAA,QAAW,eAAY;AAAA,QAAyB;AAAA,OAAW;AAAA;AAAA,GAC7E;AAEJ;AAEA,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,MAAM,qBAAqB,SAAS,QAAQ;AAC5C,mBAAmB,YAAY;",
6
+ "names": []
7
7
  }
@@ -1,10 +1,11 @@
1
1
  import * as React from "react";
2
+ import { Fragment, jsx } from "react/jsx-runtime";
2
3
  import { PropTypes } from "@elliemae/ds-utilities";
3
4
  const defaultProps = {
4
5
  title: "",
5
6
  content: "",
6
7
  time: "",
7
- rightAddon: /* @__PURE__ */ React.createElement(React.Fragment, null)
8
+ rightAddon: /* @__PURE__ */ jsx(Fragment, {})
8
9
  };
9
10
  const propTypes = {
10
11
  title: PropTypes.string.isRequired.description(`Card's title`),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/exported-related/chat-card/props.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-utilities';\n\nexport const defaultProps: CardPropTypes = {\n title: '',\n content: '',\n time: '',\n rightAddon: <></>,\n};\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,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAEnB,MAAM,eAA8B;AAAA,EACzC,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,YAAY,wDAAE;AAChB;AAEO,MAAM,YAAY;AAAA,EACvB,OAAO,UAAU,OAAO,WAAW,YAAY,cAAc;AAAA,EAC7D,SAAS,UAAU,OAAO,YAAY,gBAAgB;AAAA,EACtD,MAAM,UAAU,OAAO,YAAY,MAAM;AAAA,EACzC,YAAY,UAAU,QAAQ,YAAY,4BAA4B;AACxE;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,SAAS,iBAAiB;AAEnB,MAAM,eAA8B;AAAA,EACzC,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,YAAY,gCAAE;AAChB;AAEO,MAAM,YAAY;AAAA,EACvB,OAAO,UAAU,OAAO,WAAW,YAAY,cAAc;AAAA,EAC7D,SAAS,UAAU,OAAO,YAAY,gBAAgB;AAAA,EACtD,MAAM,UAAU,OAAO,YAAY,MAAM;AAAA,EACzC,YAAY,UAAU,QAAQ,YAAY,4BAA4B;AACxE;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
2
3
  import React2 from "react";
3
4
  import {
4
5
  describe,
@@ -18,22 +19,28 @@ const ChatContainerHeader = (props) => {
18
19
  useValidateTypescriptPropTypes(propsWithDefault, propTypes);
19
20
  const globalsAttr = useGetGlobalAttributes(propsWithDefault);
20
21
  const { title, children } = propsWithDefault;
21
- return /* @__PURE__ */ React2.createElement(StyledChatContainerContentHeader, {
22
+ return /* @__PURE__ */ jsxs(StyledChatContainerContentHeader, {
22
23
  alignItems: "center",
23
24
  cols: ["minmax(calc(100% - 64px), 1fr)", children ? "auto" : "0px"],
24
25
  role: "heading",
25
- ...globalsAttr
26
- }, /* @__PURE__ */ React2.createElement(StyledChatContainerContentHeaderLabel, {
27
- "data-testid": "chat-container-header-title",
28
- pl: "xxs",
29
- pr: "xxs"
30
- }, /* @__PURE__ */ React2.createElement(SimpleTruncatedTooltipText, {
31
- value: title
32
- })), /* @__PURE__ */ React2.createElement(StyledChatContainerContentHeaderActions, {
33
- cols: React2.Children.toArray(children).filter(Boolean).map(() => "32px"),
34
- justifyContent: "flex-end",
35
- "data-testid": "chat-container-header-children"
36
- }, children));
26
+ ...globalsAttr,
27
+ children: [
28
+ /* @__PURE__ */ jsx(StyledChatContainerContentHeaderLabel, {
29
+ "data-testid": "chat-container-header-title",
30
+ pl: "xxs",
31
+ pr: "xxs",
32
+ children: /* @__PURE__ */ jsx(SimpleTruncatedTooltipText, {
33
+ value: title
34
+ })
35
+ }),
36
+ /* @__PURE__ */ jsx(StyledChatContainerContentHeaderActions, {
37
+ cols: React2.Children.toArray(children).filter(Boolean).map(() => "32px"),
38
+ justifyContent: "flex-end",
39
+ "data-testid": "chat-container-header-children",
40
+ children
41
+ })
42
+ ]
43
+ });
37
44
  };
38
45
  ChatContainerHeader.propTypes = propTypes;
39
46
  ChatContainerHeader.displayName = "ChatContainerHeader";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/exported-related/chat-container-header/ChatContainerHeader.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { WeakValidationMap } from 'react';\nimport {\n describe,\n useValidateTypescriptPropTypes,\n useMemoMergePropsWithDefault,\n useGetGlobalAttributes,\n} from '@elliemae/ds-utilities';\n\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport {\n StyledChatContainerContentHeader,\n StyledChatContainerContentHeaderLabel,\n StyledChatContainerContentHeaderActions,\n} from './styled';\nimport { defaultProps, propTypes, HeaderProps } from './props';\n\nconst ChatContainerHeader: React.ComponentType<HeaderProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, propTypes);\n\n const globalsAttr = useGetGlobalAttributes(propsWithDefault);\n\n const { title, children } = propsWithDefault;\n\n return (\n <StyledChatContainerContentHeader\n alignItems=\"center\"\n cols={['minmax(calc(100% - 64px), 1fr)', children ? 'auto' : '0px']}\n role=\"heading\"\n {...globalsAttr}\n >\n <StyledChatContainerContentHeaderLabel data-testid=\"chat-container-header-title\" pl=\"xxs\" pr=\"xxs\">\n <SimpleTruncatedTooltipText value={title} />\n </StyledChatContainerContentHeaderLabel>\n <StyledChatContainerContentHeaderActions\n cols={React.Children.toArray(children)\n .filter(Boolean)\n .map(() => '32px')}\n justifyContent=\"flex-end\"\n data-testid=\"chat-container-header-children\"\n >\n {children}\n </StyledChatContainerContentHeaderActions>\n </StyledChatContainerContentHeader>\n );\n};\n\nChatContainerHeader.propTypes = propTypes as WeakValidationMap<unknown>;\nChatContainerHeader.displayName = 'ChatContainerHeader';\nconst ChatContainerHeaderWithSchema = describe(ChatContainerHeader);\nChatContainerHeaderWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { ChatContainerHeader, ChatContainerHeaderWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAkC;AACzC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,kCAAkC;AAC3C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAAc,iBAA8B;AAErD,MAA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AAA,IACJ,GAAG;AAAA,IAEJ;AAAA,0BAAC;AAAA,QAAsC,eAAY;AAAA,QAA8B,IAAG;AAAA,QAAM,IAAG;AAAA,QAC3F,8BAAC;AAAA,UAA2B,OAAO;AAAA,SAAO;AAAA,OAC5C;AAAA,MACA,oBAAC;AAAA,QACC,MAAMA,OAAM,SAAS,QAAQ,QAAQ,EAClC,OAAO,OAAO,EACd,IAAI,MAAM,MAAM;AAAA,QACnB,gBAAe;AAAA,QACf,eAAY;AAAA,QAEX;AAAA,OACH;AAAA;AAAA,GACF;AAEJ;AAEA,oBAAoB,YAAY;AAChC,oBAAoB,cAAc;AAClC,MAAM,gCAAgC,SAAS,mBAAmB;AAClE,8BAA8B,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
- import React2, { useMemo } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useMemo } from "react";
3
4
  import { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from "@elliemae/ds-utilities";
4
5
  import { Grid } from "@elliemae/ds-grid";
5
6
  import { Communications } from "@elliemae/ds-icons";
@@ -10,28 +11,39 @@ const ChatEmptyState = (props) => {
10
11
  useValidateTypescriptPropTypes(propsWithDefault, emptyStateProps);
11
12
  const { label, action } = propsWithDefault;
12
13
  const MainContent = useMemo(
13
- () => /* @__PURE__ */ React2.createElement(Grid, {
14
+ () => /* @__PURE__ */ jsxs(Grid, {
14
15
  alignItems: "center",
15
- justifyContent: "center"
16
- }, /* @__PURE__ */ React2.createElement(Grid, {
17
- alignItems: "center",
18
- justifyContent: "center"
19
- }, /* @__PURE__ */ React2.createElement(Communications, {
20
- size: "xxl",
21
- color: ["neutral", 400]
22
- })), /* @__PURE__ */ React2.createElement(Grid, {
23
- alignItems: "center",
24
- justifyContent: "center"
25
- }, /* @__PURE__ */ React2.createElement(MessageWrapper, null, label)), /* @__PURE__ */ React2.createElement(Grid, {
26
- alignItems: "center",
27
- justifyContent: "center"
28
- }, action)),
16
+ justifyContent: "center",
17
+ children: [
18
+ /* @__PURE__ */ jsx(Grid, {
19
+ alignItems: "center",
20
+ justifyContent: "center",
21
+ children: /* @__PURE__ */ jsx(Communications, {
22
+ size: "xxl",
23
+ color: ["neutral", 400]
24
+ })
25
+ }),
26
+ /* @__PURE__ */ jsx(Grid, {
27
+ alignItems: "center",
28
+ justifyContent: "center",
29
+ children: /* @__PURE__ */ jsx(MessageWrapper, {
30
+ children: label
31
+ })
32
+ }),
33
+ /* @__PURE__ */ jsx(Grid, {
34
+ alignItems: "center",
35
+ justifyContent: "center",
36
+ children: action
37
+ })
38
+ ]
39
+ }),
29
40
  [label, action]
30
41
  );
31
- return /* @__PURE__ */ React2.createElement(ChatEmptyStateWrapper, {
42
+ return /* @__PURE__ */ jsx(ChatEmptyStateWrapper, {
32
43
  alignItems: "center",
33
- justifyContent: "center"
34
- }, MainContent);
44
+ justifyContent: "center",
45
+ children: MainContent
46
+ });
35
47
  };
36
48
  ChatEmptyState.propTypes = emptyStateProps;
37
49
  ChatEmptyState.displayName = "ChatEmptyState";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/exported-related/chat-empty-state/ChatEmptyState.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useMemo, WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { Grid } from '@elliemae/ds-grid';\nimport { Communications } from '@elliemae/ds-icons';\nimport { ChatEmptyStateProps, emptyStateProps, defaultProps } from './props';\nimport { ChatEmptyStateWrapper, MessageWrapper } from './styled';\n\nconst ChatEmptyState: React.ComponentType<ChatEmptyStateProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, emptyStateProps);\n\n const { label, action } = propsWithDefault;\n const MainContent = useMemo(\n () => (\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <Communications size=\"xxl\" color={['neutral', 400]} />\n </Grid>\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <MessageWrapper>{label}</MessageWrapper>\n </Grid>\n <Grid alignItems=\"center\" justifyContent=\"center\">\n {action}\n </Grid>\n </Grid>\n ),\n [label, action],\n );\n return (\n <ChatEmptyStateWrapper alignItems=\"center\" justifyContent=\"center\">\n {MainContent}\n </ChatEmptyStateWrapper>\n );\n};\n\nChatEmptyState.propTypes = emptyStateProps as WeakValidationMap<unknown>;\nChatEmptyState.displayName = 'ChatEmptyState';\nconst ChatEmptyStateWithSchema = describe(ChatEmptyState);\nChatEmptyStateWithSchema.propTypes = emptyStateProps as WeakValidationMap<unknown>;\n\nexport { ChatEmptyState, ChatEmptyStateWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,UAAS,eAAkC;AAClD,SAAS,UAAU,gCAAgC,oCAAoC;AACvF,SAAS,YAAY;AACrB,SAAS,sBAAsB;AAC/B,SAA8B,iBAAiB,oBAAoB;AACnE,SAAS,uBAAuB,sBAAsB;AAEtD,MAAM,iBAA2D,CAAC,UAAU;AAC1E,QAAM,mBAAmB,6BAA6B,OAAO,YAAY;AACzE,iCAA+B,kBAAkB,eAAe;AAEhE,QAAM,EAAE,OAAO,OAAO,IAAI;AAC1B,QAAM,cAAc;AAAA,IAClB,MACE,gBAAAA,OAAA,cAAC;AAAA,MAAK,YAAW;AAAA,MAAS,gBAAe;AAAA,OACvC,gBAAAA,OAAA,cAAC;AAAA,MAAK,YAAW;AAAA,MAAS,gBAAe;AAAA,OACvC,gBAAAA,OAAA,cAAC;AAAA,MAAe,MAAK;AAAA,MAAM,OAAO,CAAC,WAAW,GAAG;AAAA,KAAG,CACtD,GACA,gBAAAA,OAAA,cAAC;AAAA,MAAK,YAAW;AAAA,MAAS,gBAAe;AAAA,OACvC,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,IAAS,gBAAe;AAAA,IACvD;AAAA,GACH;AAEJ;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,2BAA2B,SAAS,cAAc;AACxD,yBAAyB,YAAY;",
6
+ "names": []
7
7
  }
@@ -1,8 +1,9 @@
1
1
  import * as React from "react";
2
+ import { Fragment, jsx } from "react/jsx-runtime";
2
3
  import { PropTypes } from "@elliemae/ds-utilities";
3
4
  const defaultProps = {
4
5
  label: "No Messages Yet",
5
- action: /* @__PURE__ */ React.createElement(React.Fragment, null)
6
+ action: /* @__PURE__ */ jsx(Fragment, {})
6
7
  };
7
8
  const emptyStateProps = {
8
9
  label: PropTypes.string.description("No Message to show text helper").defaultValue(defaultProps.label),
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/exported-related/chat-empty-state/props.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-utilities';\n\nexport interface ChatEmptyStateProps {\n label: string;\n action: JSX.Element;\n}\n\nexport const defaultProps: ChatEmptyStateProps = {\n label: 'No Messages Yet',\n action: <></>,\n};\n\nexport const emptyStateProps = {\n label: PropTypes.string.description('No Message to show text helper').defaultValue(defaultProps.label),\n action: PropTypes.node.description('action element').defaultValue(defaultProps.action),\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAOnB,MAAM,eAAoC;AAAA,EAC/C,OAAO;AAAA,EACP,QAAQ,wDAAE;AACZ;AAEO,MAAM,kBAAkB;AAAA,EAC7B,OAAO,UAAU,OAAO,YAAY,gCAAgC,EAAE,aAAa,aAAa,KAAK;AAAA,EACrG,QAAQ,UAAU,KAAK,YAAY,gBAAgB,EAAE,aAAa,aAAa,MAAM;AACvF;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,SAAS,iBAAiB;AAOnB,MAAM,eAAoC;AAAA,EAC/C,OAAO;AAAA,EACP,QAAQ,gCAAE;AACZ;AAEO,MAAM,kBAAkB;AAAA,EAC7B,OAAO,UAAU,OAAO,YAAY,gCAAgC,EAAE,aAAa,aAAa,KAAK;AAAA,EACrG,QAAQ,UAAU,KAAK,YAAY,gBAAgB,EAAE,aAAa,aAAa,MAAM;AACvF;",
6
6
  "names": []
7
7
  }