@elliemae/ds-chat 3.5.0-rc.9 → 3.5.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -29,6 +29,7 @@ __export(SideBarChat_exports, {
29
29
  });
30
30
  module.exports = __toCommonJS(SideBarChat_exports);
31
31
  var React = __toESM(require("react"));
32
+ var import_jsx_runtime = require("react/jsx-runtime");
32
33
  var import_react = __toESM(require("react"));
33
34
  var import_ds_utilities = require("@elliemae/ds-utilities");
34
35
  var import_ds_icons = require("@elliemae/ds-icons");
@@ -41,7 +42,7 @@ const FooterChat = ({
41
42
  onFooterClose,
42
43
  onFooterExpand,
43
44
  footerButtonExtraProps
44
- }) => /* @__PURE__ */ import_react.default.createElement(import_SidebarButton.SidebarButton, {
45
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SidebarButton.SidebarButton, {
45
46
  dsId: "sidebar_footer",
46
47
  Icon: !expanded ? import_ds_icons.MenuCollapse : import_ds_icons.MenuExpand,
47
48
  onClick: expanded ? onFooterClose : onFooterExpand,
@@ -75,22 +76,27 @@ const SideBarChat = (props) => {
75
76
  actionRef.current.listRef = listRef;
76
77
  }
77
78
  }, [sidebarItems, expanded, actionRef, listRef]);
78
- return /* @__PURE__ */ import_react.default.createElement(import_styled.StyledSideBarContainer, {
79
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledSideBarContainer, {
79
80
  rows: [1, "auto"],
80
- ref: listRef
81
- }, /* @__PURE__ */ import_react.default.createElement(import_styled.StyledSideBarButtonsContainer, null, sidebarItems.map((p) => /* @__PURE__ */ import_react.default.createElement(import_tile_button.TileButton, {
82
- key: p.dsId,
83
- innerRef: registerReference,
84
- ...p,
85
- selected: selectedItem === p.dsId,
86
- tooltipPlacement,
87
- disableTooltip: enableTooltipWhenIsClosed ? false : !expanded
88
- }))), /* @__PURE__ */ import_react.default.createElement(FooterChat, {
89
- expanded,
90
- onFooterClose,
91
- onFooterExpand,
92
- footerButtonExtraProps
93
- }));
81
+ ref: listRef,
82
+ children: [
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledSideBarButtonsContainer, {
84
+ children: sidebarItems.map((p) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tile_button.TileButton, {
85
+ innerRef: registerReference,
86
+ ...p,
87
+ selected: selectedItem === p.dsId,
88
+ tooltipPlacement,
89
+ disableTooltip: enableTooltipWhenIsClosed ? false : !expanded
90
+ }, p.dsId))
91
+ }),
92
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FooterChat, {
93
+ expanded,
94
+ onFooterClose,
95
+ onFooterExpand,
96
+ footerButtonExtraProps
97
+ })
98
+ ]
99
+ });
94
100
  };
95
101
  SideBarChat.propTypes = import_props.chatSidebarProps;
96
102
  SideBarChat.displayName = "SideBarChat";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/exported-related/chat-sidebar/SideBarChat.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { MenuCollapse, MenuExpand } from '@elliemae/ds-icons';\nimport { StyledSideBarContainer, StyledSideBarButtonsContainer } from './styled';\nimport { TileButton } from '../tile-button';\nimport { SidebarButton } from './sidebar-button/SidebarButton';\nimport { ChatSidebarProps, defaultProps, chatSidebarProps } from './props';\n\nconst FooterChat = ({\n expanded,\n onFooterClose,\n onFooterExpand,\n footerButtonExtraProps,\n}: Pick<ChatSidebarProps, 'expanded' | 'onFooterClose' | 'onFooterExpand' | 'footerButtonExtraProps'>) => (\n <SidebarButton\n dsId=\"sidebar_footer\"\n Icon={!expanded ? MenuCollapse : MenuExpand}\n onClick={expanded ? onFooterClose : onFooterExpand}\n aria-pressed={expanded}\n aria-label={footerButtonExtraProps['aria-label']}\n />\n);\n\nconst SideBarChat: React.ComponentType<ChatSidebarProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, chatSidebarProps);\n\n const {\n sidebarItems,\n expanded,\n onFooterClose,\n onFooterExpand,\n selectedItem,\n footerButtonExtraProps,\n tooltipPlacement,\n enableTooltipWhenIsClosed,\n actionRef,\n } = propsWithDefault;\n const { current: listRef } = React.useRef({});\n const registerReference = React.useCallback(\n (ref: HTMLElement) => {\n if (ref) listRef[ref.dataset.key] = ref;\n },\n [listRef],\n );\n React.useEffect(() => {\n if (actionRef.current?.listRef) {\n actionRef.current.listRef = listRef;\n }\n }, [sidebarItems, expanded, actionRef, listRef]);\n\n return (\n <StyledSideBarContainer rows={[1, 'auto']} ref={listRef}>\n <StyledSideBarButtonsContainer>\n {sidebarItems.map((p) => (\n <TileButton\n key={p.dsId}\n innerRef={registerReference}\n {...p}\n selected={selectedItem === p.dsId}\n tooltipPlacement={tooltipPlacement}\n disableTooltip={enableTooltipWhenIsClosed ? false : !expanded}\n />\n ))}\n </StyledSideBarButtonsContainer>\n <FooterChat\n expanded={expanded}\n onFooterClose={onFooterClose}\n onFooterExpand={onFooterExpand}\n footerButtonExtraProps={footerButtonExtraProps}\n />\n </StyledSideBarContainer>\n );\n};\n\nSideBarChat.propTypes = chatSidebarProps as WeakValidationMap<unknown>;\nSideBarChat.displayName = 'SideBarChat';\nconst SideBarChatWithSchema = describe(SideBarChat);\nSideBarChatWithSchema.propTypes = chatSidebarProps as WeakValidationMap<unknown>;\n\nexport { SideBarChat, SideBarChatWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAyC;AACzC,0BAAuF;AACvF,sBAAyC;AACzC,oBAAsE;AACtE,yBAA2B;AAC3B,2BAA8B;AAC9B,mBAAiE;AAEjE,MAAM,aAAa,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MACE,6BAAAA,QAAA,cAAC;AAAA,EACC,MAAK;AAAA,EACL,MAAM,CAAC,WAAW,+BAAe;AAAA,EACjC,SAAS,WAAW,gBAAgB;AAAA,EACpC,gBAAc;AAAA,EACd,cAAY,uBAAuB;AAAA,CACrC;AAGF,MAAM,cAAqD,CAAC,UAAU;AACpE,QAAM,uBAAmB,kDAA6B,OAAO,yBAAY;AACzE,0DAA+B,kBAAkB,6BAAgB;AAEjE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,EAAE,SAAS,QAAQ,IAAI,aAAAA,QAAM,OAAO,CAAC,CAAC;AAC5C,Q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AAuB;AAAA,CACrC;AAGF,MAAM,cAAqD,CAAC,UAAU;AACpE,QAAM,uBAAmB,kDAA6B,OAAO,yBAAY;AACzE,0DAA+B,kBAAkB,6BAAgB;AAEjE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,EAAE,SAAS,QAAQ,IAAI,aAAAA,QAAM,OAAO,CAAC,CAAC;AAC5C,QAAM,oBAAoB,aAAAA,QAAM;AAAA,IAC9B,CAAC,QAAqB;AACpB,UAAI;AAAK,gBAAQ,IAAI,QAAQ,OAAO;AAAA,IACtC;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AACA,eAAAA,QAAM,UAAU,MAAM;AACpB,QAAI,UAAU,SAAS,SAAS;AAC9B,gBAAU,QAAQ,UAAU;AAAA,IAC9B;AAAA,EACF,GAAG,CAAC,cAAc,UAAU,WAAW,OAAO,CAAC;AAE/C,SACE,6CAAC;AAAA,IAAuB,MAAM,CAAC,GAAG,MAAM;AAAA,IAAG,KAAK;AAAA,IAC9C;AAAA,kDAAC;AAAA,QACE,uBAAa,IAAI,CAAC,MACjB,4CAAC;AAAA,UAEC,UAAU;AAAA,UACT,GAAG;AAAA,UACJ,UAAU,iBAAiB,EAAE;AAAA,UAC7B;AAAA,UACA,gBAAgB,4BAA4B,QAAQ,CAAC;AAAA,WALhD,EAAE,IAMT,CACD;AAAA,OACH;AAAA,MACA,4CAAC;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,OACF;AAAA;AAAA,GACF;AAEJ;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,4BAAwB,8BAAS,WAAW;AAClD,sBAAsB,YAAY;",
6
6
  "names": ["React"]
7
7
  }
@@ -28,6 +28,7 @@ __export(SidebarButton_exports, {
28
28
  });
29
29
  module.exports = __toCommonJS(SidebarButton_exports);
30
30
  var React = __toESM(require("react"));
31
+ var import_jsx_runtime = require("react/jsx-runtime");
31
32
  var import_react = __toESM(require("react"));
32
33
  var import_styled = require("./styled");
33
34
  var import_props = require("./props");
@@ -36,17 +37,23 @@ const SidebarButton = ({ label, dsId, onClick, Icon, ...rest }) => {
36
37
  if (dsId)
37
38
  onClick(dsId);
38
39
  }, [onClick, dsId]);
39
- return /* @__PURE__ */ import_react.default.createElement(import_styled.StyledSidebarButton, {
40
- key: dsId,
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledSidebarButton, {
41
41
  "data-testid": `sidebar-button-${dsId}`,
42
42
  onClick: handleClick,
43
- ...rest
44
- }, /* @__PURE__ */ import_react.default.createElement(import_styled.StyledSidebarButtonIcon, {
45
- alignItems: "center",
46
- justifyContent: "center"
47
- }, /* @__PURE__ */ import_react.default.createElement(Icon, {
48
- size: "m"
49
- })), label && /* @__PURE__ */ import_react.default.createElement(import_styled.StyledSidebarButtonLabel, null, label));
43
+ ...rest,
44
+ children: [
45
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledSidebarButtonIcon, {
46
+ alignItems: "center",
47
+ justifyContent: "center",
48
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, {
49
+ size: "m"
50
+ })
51
+ }),
52
+ label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledSidebarButtonLabel, {
53
+ children: label
54
+ })
55
+ ]
56
+ }, dsId);
50
57
  };
51
58
  SidebarButton.propTypes = import_props.propsSidebarButton;
52
59
  SidebarButton.defaultProps = import_props.defaultSidebarButton;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/exported-related/chat-sidebar/sidebar-button/SidebarButton.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { StyledSidebarButton, StyledSidebarButtonLabel, StyledSidebarButtonIcon } from './styled';\nimport { propsSidebarButton, defaultSidebarButton, SidebarButtonProps } from './props';\n\nexport const SidebarButton = ({ label, dsId, onClick, Icon, ...rest }: SidebarButtonProps): JSX.Element => {\n const handleClick = React.useCallback(() => {\n if (dsId) onClick(dsId);\n }, [onClick, dsId]);\n\n return (\n <StyledSidebarButton key={dsId} data-testid={`sidebar-button-${dsId}`} onClick={handleClick} {...rest}>\n <StyledSidebarButtonIcon alignItems=\"center\" justifyContent=\"center\">\n <Icon size=\"m\" />\n </StyledSidebarButtonIcon>\n {label && <StyledSidebarButtonLabel>{label}</StyledSidebarButtonLabel>}\n </StyledSidebarButton>\n );\n};\n\nSidebarButton.propTypes = propsSidebarButton;\nSidebarButton.defaultProps = defaultSidebarButton;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,oBAAuF;AACvF,mBAA6E;AAEtE,MAAM,gBAAgB,CAAC,EAAE,OAAO,MAAM,SAAS,SAAS,KAAK,MAAuC;AACzG,QAAM,cAAc,aAAAA,QAAM,YAAY,MAAM;AAC1C,QAAI;AAAM,cAAQ,IAAI;AAAA,EACxB,GAAG,CAAC,SAAS,IAAI,CAAC;AAElB,SACE,6BAAAA,QAAA,cAAC;AAAA,IAAoB,KAAK;AAAA,IAAM,eAAa,kBAAkB;AAAA,IAAQ,SAAS;AAAA,IAAc,GAAG;AAAA,KAC/F,6BAAAA,QAAA,cAAC;AAAA,IAAwB,YAAW;AAAA,IAAS,gBAAe;AAAA,KAC1D,6BAAAA,QAAA,cAAC;AAAA,IAAK,MAAK;AAAA,GAAI,CACjB,GACC,SAAS,6BAAAA,QAAA,cAAC,8CAA0B,KAAM,CAC7C;AAEJ;AAEA,cAAc,YAAY;AAC1B,cAAc,eAAe;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AAAA,mBAAkB;AAClB,oBAAuF;AACvF,mBAA6E;AAEtE,MAAM,gBAAgB,CAAC,EAAE,OAAO,MAAM,SAAS,SAAS,KAAK,MAAuC;AACzG,QAAM,cAAc,aAAAA,QAAM,YAAY,MAAM;AAC1C,QAAI;AAAM,cAAQ,IAAI;AAAA,EACxB,GAAG,CAAC,SAAS,IAAI,CAAC;AAElB,SACE,6CAAC;AAAA,IAA+B,eAAa,kBAAkB;AAAA,IAAQ,SAAS;AAAA,IAAc,GAAG;AAAA,IAC/F;AAAA,kDAAC;AAAA,QAAwB,YAAW;AAAA,QAAS,gBAAe;AAAA,QAC1D,sDAAC;AAAA,UAAK,MAAK;AAAA,SAAI;AAAA,OACjB;AAAA,MACC,SAAS,4CAAC;AAAA,QAA0B;AAAA,OAAM;AAAA;AAAA,KAJnB,IAK1B;AAEJ;AAEA,cAAc,YAAY;AAC1B,cAAc,eAAe;",
6
6
  "names": ["React"]
7
7
  }
@@ -29,7 +29,7 @@ __export(FloatingButton_exports, {
29
29
  });
30
30
  module.exports = __toCommonJS(FloatingButton_exports);
31
31
  var React = __toESM(require("react"));
32
- var import_react = __toESM(require("react"));
32
+ var import_jsx_runtime = require("react/jsx-runtime");
33
33
  var import_ds_utilities = require("@elliemae/ds-utilities");
34
34
  var import_ds_icons = require("@elliemae/ds-icons");
35
35
  var import_styled = require("./styled");
@@ -38,14 +38,15 @@ const FloatingButton = (props) => {
38
38
  const propsWithDefault = (0, import_ds_utilities.useMemoMergePropsWithDefault)(props, import_props.defaultFloatingButton);
39
39
  (0, import_ds_utilities.useValidateTypescriptPropTypes)(propsWithDefault, import_props.propsFloatingButton);
40
40
  const { onFocus, innerRef, onClick } = propsWithDefault;
41
- return /* @__PURE__ */ import_react.default.createElement(import_styled.StyledFloatingButton, {
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledFloatingButton, {
42
42
  onFocus,
43
43
  ref: innerRef,
44
44
  "data-testid": "chat-floating-button",
45
- onClick
46
- }, /* @__PURE__ */ import_react.default.createElement(import_ds_icons.Comments, {
47
- size: "l"
48
- }));
45
+ onClick,
46
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Comments, {
47
+ size: "l"
48
+ })
49
+ });
49
50
  };
50
51
  FloatingButton.propTypes = import_props.propsFloatingButton;
51
52
  FloatingButton.displayName = "FloatingButton";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/exported-related/floating-button/FloatingButton.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\n\nimport { Comments } from '@elliemae/ds-icons';\nimport { StyledFloatingButton } from './styled';\nimport { defaultFloatingButton, propsFloatingButton, FloatingButtonProps } from './props';\n\nconst FloatingButton: React.ComponentType<FloatingButtonProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultFloatingButton);\n useValidateTypescriptPropTypes(propsWithDefault, propsFloatingButton);\n const { onFocus, innerRef, onClick } = propsWithDefault;\n return (\n <StyledFloatingButton onFocus={onFocus} ref={innerRef} data-testid=\"chat-floating-button\" onClick={onClick}>\n <Comments size=\"l\" />\n </StyledFloatingButton>\n );\n};\n\nFloatingButton.propTypes = propsFloatingButton as WeakValidationMap<unknown>;\nFloatingButton.displayName = 'FloatingButton';\nconst FloatingButtonWithSchema = describe(FloatingButton);\nFloatingButtonWithSchema.propTypes = propsFloatingButton as WeakValidationMap<unknown>;\n\nexport { FloatingButton, FloatingButtonWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAyC;AACzC,0BAAuF;AAEvF,sBAAyB;AACzB,oBAAqC;AACrC,mBAAgF;AAEhF,MAAM,iBAA2D,CAAC,UAAU;AAC1E,QAAM,uBAAmB,kDAA6B,OAAO,kCAAqB;AAClF,0DAA+B,kBAAkB,gCAAmB;AACpE,QAAM,EAAE,SAAS,UAAU,QAAQ,IAAI;AACvC,SACE,6BAAAA,QAAA,cAAC;AAAA,IAAqB;AAAA,IAAkB,KAAK;AAAA,IAAU,eAAY;AAAA,IAAuB;AAAA,KACxF,6BAAAA,QAAA,cAAC;AAAA,IAAS,MAAK;AAAA,GAAI,CACrB;AAEJ;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,+BAA2B,8BAAS,cAAc;AACxD,yBAAyB,YAAY;",
6
- "names": ["React"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AACA,0BAAuF;AAEvF,sBAAyB;AACzB,oBAAqC;AACrC,mBAAgF;AAEhF,MAAM,iBAA2D,CAAC,UAAU;AAC1E,QAAM,uBAAmB,kDAA6B,OAAO,kCAAqB;AAClF,0DAA+B,kBAAkB,gCAAmB;AACpE,QAAM,EAAE,SAAS,UAAU,QAAQ,IAAI;AACvC,SACE,4CAAC;AAAA,IAAqB;AAAA,IAAkB,KAAK;AAAA,IAAU,eAAY;AAAA,IAAuB;AAAA,IACxF,sDAAC;AAAA,MAAS,MAAK;AAAA,KAAI;AAAA,GACrB;AAEJ;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,+BAA2B,8BAAS,cAAc;AACxD,yBAAyB,YAAY;",
6
+ "names": []
7
7
  }
@@ -28,16 +28,21 @@ __export(InfluencerContainer_exports, {
28
28
  });
29
29
  module.exports = __toCommonJS(InfluencerContainer_exports);
30
30
  var React = __toESM(require("react"));
31
+ var import_jsx_runtime = require("react/jsx-runtime");
31
32
  var import_react = __toESM(require("react"));
32
33
  var import_styled = require("./styled");
33
34
  var import_ChatContainer = require("../../parts/chat-container/ChatContainer");
34
35
  var import_SideBarChat = require("../chat-sidebar/SideBarChat");
35
36
  const InfluencerContainer = (props) => import_react.default.useMemo(
36
- () => props.floating ? null : /* @__PURE__ */ import_react.default.createElement(import_styled.StyledChatContainer, {
37
+ () => props.floating ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledChatContainer, {
37
38
  cols: ["auto", props.expanded ? 1 : "0px"],
38
39
  expanded: props.expanded,
39
- expandedWidth: props.expandedWidth
40
- }, /* @__PURE__ */ import_react.default.createElement(import_SideBarChat.SideBarChat, null), props.expanded ? /* @__PURE__ */ import_react.default.createElement(import_ChatContainer.ChatContainer, null) : /* @__PURE__ */ import_react.default.createElement("div", null)),
40
+ expandedWidth: props.expandedWidth,
41
+ children: [
42
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SideBarChat.SideBarChat, {}),
43
+ props.expanded ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ChatContainer.ChatContainer, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {})
44
+ ]
45
+ }),
41
46
  [props.floating, props.expanded, props.expandedWidth]
42
47
  );
43
48
  //# sourceMappingURL=InfluencerContainer.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/exported-related/grid-influencer/InfluencerContainer.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable react/prop-types */\nimport React from 'react';\nimport { StyledChatContainer } from './styled';\nimport { ChatContainer } from '../../parts/chat-container/ChatContainer';\nimport { SideBarChat } from '../chat-sidebar/SideBarChat';\n\nexport const InfluencerContainer: React.ComponentType<any> = (props) =>\n React.useMemo(\n () =>\n props.floating ? null : (\n <StyledChatContainer\n cols={['auto', props.expanded ? 1 : '0px']}\n expanded={props.expanded}\n expandedWidth={props.expandedWidth}\n >\n <SideBarChat />\n {props.expanded ? <ChatContainer /> : <div />}\n </StyledChatContainer>\n ),\n [props.floating, props.expanded, props.expandedWidth],\n );\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAkB;AAClB,oBAAoC;AACpC,2BAA8B;AAC9B,yBAA4B;AAErB,MAAM,sBAAgD,CAAC,UAC5D,aAAAA,QAAM;AAAA,EACJ,MACE,MAAM,WAAW,OACf,6BAAAA,QAAA,cAAC;AAAA,IACC,MAAM,CAAC,QAAQ,MAAM,WAAW,IAAI,KAAK;AAAA,IACzC,UAAU,MAAM;AAAA,IAChB,eAAe,MAAM;AAAA,KAErB,6BAAAA,QAAA,cAAC,oCAAY,GACZ,MAAM,WAAW,6BAAAA,QAAA,cAAC,wCAAc,IAAK,6BAAAA,QAAA,cAAC,WAAI,CAC7C;AAAA,EAEJ,CAAC,MAAM,UAAU,MAAM,UAAU,MAAM,aAAa;AACtD;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AACA,mBAAkB;AAClB,oBAAoC;AACpC,2BAA8B;AAC9B,yBAA4B;AAErB,MAAM,sBAAgD,CAAC,UAC5D,aAAAA,QAAM;AAAA,EACJ,MACE,MAAM,WAAW,OACf,6CAAC;AAAA,IACC,MAAM,CAAC,QAAQ,MAAM,WAAW,IAAI,KAAK;AAAA,IACzC,UAAU,MAAM;AAAA,IAChB,eAAe,MAAM;AAAA,IAErB;AAAA,kDAAC,kCAAY;AAAA,MACZ,MAAM,WAAW,4CAAC,sCAAc,IAAK,4CAAC,SAAI;AAAA;AAAA,GAC7C;AAAA,EAEJ,CAAC,MAAM,UAAU,MAAM,UAAU,MAAM,aAAa;AACtD;",
6
6
  "names": ["React"]
7
7
  }
@@ -29,7 +29,7 @@ __export(MessageDelimiter_exports, {
29
29
  });
30
30
  module.exports = __toCommonJS(MessageDelimiter_exports);
31
31
  var React = __toESM(require("react"));
32
- var import_react = __toESM(require("react"));
32
+ var import_jsx_runtime = require("react/jsx-runtime");
33
33
  var import_ds_utilities = require("@elliemae/ds-utilities");
34
34
  var import_styled = require("./styled");
35
35
  var import_props = require("./props");
@@ -38,14 +38,20 @@ const MessageDelimiter = (props) => {
38
38
  (0, import_ds_utilities.useValidateTypescriptPropTypes)(propsWithDefault, import_props.messageDelimiterProps);
39
39
  const globalAttrs = (0, import_ds_utilities.useGetGlobalAttributes)(propsWithDefault);
40
40
  const { title, size, verticalMargin } = propsWithDefault;
41
- return /* @__PURE__ */ import_react.default.createElement(import_styled.Wrapper, {
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.Wrapper, {
42
42
  cols: ["1fr", "auto", "1fr"],
43
- ...globalAttrs
44
- }, /* @__PURE__ */ import_react.default.createElement(import_styled.Line, null), /* @__PURE__ */ import_react.default.createElement(import_styled.Text, {
45
- size,
46
- verticalMargin,
47
- "data-testid": "chat-message-delimiter-title"
48
- }, title), /* @__PURE__ */ import_react.default.createElement(import_styled.Line, null));
43
+ ...globalAttrs,
44
+ children: [
45
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Line, {}),
46
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Text, {
47
+ size,
48
+ verticalMargin,
49
+ "data-testid": "chat-message-delimiter-title",
50
+ children: title
51
+ }),
52
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Line, {})
53
+ ]
54
+ });
49
55
  };
50
56
  MessageDelimiter.propTypes = import_props.messageDelimiterProps;
51
57
  MessageDelimiter.displayName = "MessageDelimiter";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/exported-related/message-delimiter/MessageDelimiter.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { WeakValidationMap } from 'react';\nimport {\n describe,\n useGetGlobalAttributes,\n useValidateTypescriptPropTypes,\n useMemoMergePropsWithDefault,\n} from '@elliemae/ds-utilities';\nimport { Wrapper, Line, Text } from './styled';\nimport { defaultProps, messageDelimiterProps, MessageDelimiterProps } from './props';\n\nconst MessageDelimiter: React.ComponentType<MessageDelimiterProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, messageDelimiterProps);\n const globalAttrs = useGetGlobalAttributes(propsWithDefault);\n const { title, size, verticalMargin } = propsWithDefault;\n return (\n <Wrapper cols={['1fr', 'auto', '1fr']} {...globalAttrs}>\n <Line />\n <Text size={size} verticalMargin={verticalMargin} data-testid=\"chat-message-delimiter-title\">\n {title}\n </Text>\n <Line />\n </Wrapper>\n );\n};\n\nMessageDelimiter.propTypes = messageDelimiterProps as WeakValidationMap<unknown>;\nMessageDelimiter.displayName = 'MessageDelimiter';\nconst MessageDelimiterWithSchema = describe(MessageDelimiter);\nMessageDelimiterWithSchema.propTypes = messageDelimiterProps as WeakValidationMap<unknown>;\n\nexport { MessageDelimiter, MessageDelimiterWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAyC;AACzC,0BAKO;AACP,oBAAoC;AACpC,mBAA2E;AAE3E,MAAM,mBAA+D,CAAC,UAAU;AAC9E,QAAM,uBAAmB,kDAA6B,OAAO,yBAAY;AACzE,0DAA+B,kBAAkB,kCAAqB;AACtE,QAAM,kBAAc,4CAAuB,gBAAgB;AAC3D,QAAM,EAAE,OAAO,MAAM,eAAe,IAAI;AACxC,SACE,6BAAAA,QAAA,cAAC;AAAA,IAAQ,MAAM,CAAC,OAAO,QAAQ,KAAK;AAAA,IAAI,GAAG;AAAA,KACzC,6BAAAA,QAAA,cAAC,wBAAK,GACN,6BAAAA,QAAA,cAAC;AAAA,IAAK;AAAA,IAAY;AAAA,IAAgC,eAAY;AAAA,KAC3D,KACH,GACA,6BAAAA,QAAA,cAAC,wBAAK,CACR;AAEJ;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,cAAc;AAC/B,MAAM,iCAA6B,8BAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
6
- "names": ["React"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AACA,0BAKO;AACP,oBAAoC;AACpC,mBAA2E;AAE3E,MAAM,mBAA+D,CAAC,UAAU;AAC9E,QAAM,uBAAmB,kDAA6B,OAAO,yBAAY;AACzE,0DAA+B,kBAAkB,kCAAqB;AACtE,QAAM,kBAAc,4CAAuB,gBAAgB;AAC3D,QAAM,EAAE,OAAO,MAAM,eAAe,IAAI;AACxC,SACE,6CAAC;AAAA,IAAQ,MAAM,CAAC,OAAO,QAAQ,KAAK;AAAA,IAAI,GAAG;AAAA,IACzC;AAAA,kDAAC,sBAAK;AAAA,MACN,4CAAC;AAAA,QAAK;AAAA,QAAY;AAAA,QAAgC,eAAY;AAAA,QAC3D;AAAA,OACH;AAAA,MACA,4CAAC,sBAAK;AAAA;AAAA,GACR;AAEJ;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,cAAc;AAC/B,MAAM,iCAA6B,8BAAS,gBAAgB;AAC5D,2BAA2B,YAAY;",
6
+ "names": []
7
7
  }
@@ -29,7 +29,7 @@ __export(SystemMessage_exports, {
29
29
  });
30
30
  module.exports = __toCommonJS(SystemMessage_exports);
31
31
  var React = __toESM(require("react"));
32
- var import_react = __toESM(require("react"));
32
+ var import_jsx_runtime = require("react/jsx-runtime");
33
33
  var import_ds_utilities = require("@elliemae/ds-utilities");
34
34
  var import_style = require("./style");
35
35
  var import_props = require("./props");
@@ -37,17 +37,29 @@ const SystemMessage = (props) => {
37
37
  const propsWithDefault = (0, import_ds_utilities.useMemoMergePropsWithDefault)(props, import_props.defaultProps);
38
38
  (0, import_ds_utilities.useValidateTypescriptPropTypes)(propsWithDefault, import_props.systemMessageProps);
39
39
  const { title, time, body } = propsWithDefault;
40
- return /* @__PURE__ */ import_react.default.createElement(import_style.Wrapper, {
41
- rows: ["auto", "auto"]
42
- }, /* @__PURE__ */ import_react.default.createElement(import_style.Header, {
43
- cols: ["1fr", "auto", "1fr"]
44
- }, /* @__PURE__ */ import_react.default.createElement("span", null), /* @__PURE__ */ import_react.default.createElement(import_style.Title, {
45
- "data-testid": "chat-system-message-title"
46
- }, title), /* @__PURE__ */ import_react.default.createElement(import_style.Time, {
47
- "data-testid": "chat-system-message-time"
48
- }, time)), /* @__PURE__ */ import_react.default.createElement(import_style.Message, {
49
- "data-testid": "chat-system-message-body"
50
- }, body));
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_style.Wrapper, {
41
+ rows: ["auto", "auto"],
42
+ children: [
43
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_style.Header, {
44
+ cols: ["1fr", "auto", "1fr"],
45
+ children: [
46
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {}),
47
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.Title, {
48
+ "data-testid": "chat-system-message-title",
49
+ children: title
50
+ }),
51
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.Time, {
52
+ "data-testid": "chat-system-message-time",
53
+ children: time
54
+ })
55
+ ]
56
+ }),
57
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_style.Message, {
58
+ "data-testid": "chat-system-message-body",
59
+ children: body
60
+ })
61
+ ]
62
+ });
51
63
  };
52
64
  SystemMessage.propTypes = import_props.systemMessageProps;
53
65
  SystemMessage.displayName = "SystemMessage";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/exported-related/system-message/SystemMessage.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { Wrapper, Header, Title, Time, Message } from './style';\nimport { SystemMessageProps, systemMessageProps, defaultProps } from './props';\n\nconst SystemMessage: React.ComponentType<SystemMessageProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, systemMessageProps);\n\n const { title, time, body } = propsWithDefault;\n return (\n <Wrapper rows={['auto', 'auto']}>\n <Header cols={['1fr', 'auto', '1fr']}>\n <span />\n <Title data-testid=\"chat-system-message-title\">{title}</Title>\n <Time data-testid=\"chat-system-message-time\">{time}</Time>\n </Header>\n <Message data-testid=\"chat-system-message-body\">{body}</Message>\n </Wrapper>\n );\n};\n\nSystemMessage.propTypes = systemMessageProps as WeakValidationMap<unknown>;\nSystemMessage.displayName = 'SystemMessage';\nconst SystemMessageWithSchema = describe(SystemMessage);\nSystemMessageWithSchema.propTypes = systemMessageProps as WeakValidationMap<unknown>;\n\nexport { SystemMessage, SystemMessageWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAyC;AACzC,0BAAuF;AACvF,mBAAsD;AACtD,mBAAqE;AAErE,MAAM,gBAAyD,CAAC,UAAU;AACxE,QAAM,uBAAmB,kDAA6B,OAAO,yBAAY;AACzE,0DAA+B,kBAAkB,+BAAkB;AAEnE,QAAM,EAAE,OAAO,MAAM,KAAK,IAAI;AAC9B,SACE,6BAAAA,QAAA,cAAC;AAAA,IAAQ,MAAM,CAAC,QAAQ,MAAM;AAAA,KAC5B,6BAAAA,QAAA,cAAC;AAAA,IAAO,MAAM,CAAC,OAAO,QAAQ,KAAK;AAAA,KACjC,6BAAAA,QAAA,cAAC,YAAK,GACN,6BAAAA,QAAA,cAAC;AAAA,IAAM,eAAY;AAAA,KAA6B,KAAM,GACtD,6BAAAA,QAAA,cAAC;AAAA,IAAK,eAAY;AAAA,KAA4B,IAAK,CACrD,GACA,6BAAAA,QAAA,cAAC;AAAA,IAAQ,eAAY;AAAA,KAA4B,IAAK,CACxD;AAEJ;AAEA,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,MAAM,8BAA0B,8BAAS,aAAa;AACtD,wBAAwB,YAAY;",
6
- "names": ["React"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB;AACA,0BAAuF;AACvF,mBAAsD;AACtD,mBAAqE;AAErE,MAAM,gBAAyD,CAAC,UAAU;AACxE,QAAM,uBAAmB,kDAA6B,OAAO,yBAAY;AACzE,0DAA+B,kBAAkB,+BAAkB;AAEnE,QAAM,EAAE,OAAO,MAAM,KAAK,IAAI;AAC9B,SACE,6CAAC;AAAA,IAAQ,MAAM,CAAC,QAAQ,MAAM;AAAA,IAC5B;AAAA,mDAAC;AAAA,QAAO,MAAM,CAAC,OAAO,QAAQ,KAAK;AAAA,QACjC;AAAA,sDAAC,UAAK;AAAA,UACN,4CAAC;AAAA,YAAM,eAAY;AAAA,YAA6B;AAAA,WAAM;AAAA,UACtD,4CAAC;AAAA,YAAK,eAAY;AAAA,YAA4B;AAAA,WAAK;AAAA;AAAA,OACrD;AAAA,MACA,4CAAC;AAAA,QAAQ,eAAY;AAAA,QAA4B;AAAA,OAAK;AAAA;AAAA,GACxD;AAEJ;AAEA,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,MAAM,8BAA0B,8BAAS,aAAa;AACtD,wBAAwB,YAAY;",
6
+ "names": []
7
7
  }
@@ -29,6 +29,7 @@ __export(TileButton_exports, {
29
29
  });
30
30
  module.exports = __toCommonJS(TileButton_exports);
31
31
  var React = __toESM(require("react"));
32
+ var import_jsx_runtime = require("react/jsx-runtime");
32
33
  var import_react = __toESM(require("react"));
33
34
  var import_ds_utilities = require("@elliemae/ds-utilities");
34
35
  var import_ds_tooltip = require("@elliemae/ds-tooltip");
@@ -64,30 +65,41 @@ const TileButton = (props) => {
64
65
  onClick(dsId, title);
65
66
  }, [dsId, onClick, title]);
66
67
  const MainContent = import_react.default.useMemo(
67
- () => /* @__PURE__ */ import_react.default.createElement(import_styled.StyledWrapperCentralContent, {
68
- alignItems: isHeader ? "center" : void 0
69
- }, /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, {
70
- width: "100%",
71
- alignItems: "center",
72
- justifyContent: "center"
73
- }, /* @__PURE__ */ import_react.default.createElement(import_styled.StyledTileButtonIcon, {
74
- alignItems: "center",
75
- justifyContent: "center"
76
- }, /* @__PURE__ */ import_react.default.createElement(Icon, {
77
- size: "m"
78
- }), badge ? /* @__PURE__ */ import_react.default.createElement(import_styled.StyledStatusBadge, {
79
- badgeColor,
80
- badgePosition,
81
- "data-testid": `tile-badge-${dsId}`
82
- }) : null)), !isHeader ? /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, {
83
- width: "100%",
84
- justifyContent: "center"
85
- }, label ? /* @__PURE__ */ import_react.default.createElement(import_styled.StyledTileButtonLabel, null, label) : null) : null),
68
+ () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledWrapperCentralContent, {
69
+ alignItems: isHeader ? "center" : void 0,
70
+ children: [
71
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, {
72
+ width: "100%",
73
+ alignItems: "center",
74
+ justifyContent: "center",
75
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledTileButtonIcon, {
76
+ alignItems: "center",
77
+ justifyContent: "center",
78
+ children: [
79
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, {
80
+ size: "m"
81
+ }),
82
+ badge ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledStatusBadge, {
83
+ badgeColor,
84
+ badgePosition,
85
+ "data-testid": `tile-badge-${dsId}`
86
+ }) : null
87
+ ]
88
+ })
89
+ }),
90
+ !isHeader ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, {
91
+ width: "100%",
92
+ justifyContent: "center",
93
+ children: label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledTileButtonLabel, {
94
+ children: label
95
+ }) : null
96
+ }) : null
97
+ ]
98
+ }),
86
99
  [isHeader, Icon, badge, dsId, badgeColor, badgePosition, label]
87
100
  );
88
101
  const Btn = import_react.default.useMemo(
89
- () => /* @__PURE__ */ import_react.default.createElement(import_styled.StyledTileButton, {
90
- key: dsId,
102
+ () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledTileButton, {
91
103
  isHeader,
92
104
  value: dsId,
93
105
  "data-testid": `tile-button-${dsId}`,
@@ -101,15 +113,24 @@ const TileButton = (props) => {
101
113
  badgePosition,
102
114
  "aria-pressed": selected,
103
115
  "aria-label": ariaLabel,
104
- ref: innerRef
105
- }, /* @__PURE__ */ import_react.default.createElement(import_styled.StyledWrapper, {
106
- alignItems: "center",
107
- justifyContent: "center"
108
- }, /* @__PURE__ */ import_react.default.createElement("span", null, MainContent), /* @__PURE__ */ import_react.default.createElement(import_styled.StyledWrapperLeftBorder, null), showClose && !disabled ? /* @__PURE__ */ import_react.default.createElement(import_styled.CloseButton, {
109
- onClick: onClose,
110
- value: dsId,
111
- "data-testid": `tile-close-btn-${dsId}`
112
- }, /* @__PURE__ */ import_react.default.createElement(import_ds_icons.CloseXsmall, null)) : null)),
116
+ ref: innerRef,
117
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.StyledWrapper, {
118
+ alignItems: "center",
119
+ justifyContent: "center",
120
+ children: [
121
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
122
+ children: MainContent
123
+ }),
124
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledWrapperLeftBorder, {}),
125
+ showClose && !disabled ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.CloseButton, {
126
+ onClick: onClose,
127
+ value: dsId,
128
+ "data-testid": `tile-close-btn-${dsId}`,
129
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.CloseXsmall, {})
130
+ }) : null
131
+ ]
132
+ })
133
+ }, dsId),
113
134
  [
114
135
  MainContent,
115
136
  ariaLabel,
@@ -127,11 +148,14 @@ const TileButton = (props) => {
127
148
  innerRef
128
149
  ]
129
150
  );
130
- return title && !disableTooltip ? /* @__PURE__ */ import_react.default.createElement(import_styled.StyledTooltipV3ButtonWrapper, null, /* @__PURE__ */ import_react.default.createElement(import_ds_tooltip.DSTooltipV3, {
131
- id: `ds-chat-tile-tooltip-button-${dsId}`,
132
- text: title,
133
- startPlacementPreference: tooltipPlacement
134
- }, Btn)) : Btn;
151
+ return title && !disableTooltip ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledTooltipV3ButtonWrapper, {
152
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_tooltip.DSTooltipV3, {
153
+ id: `ds-chat-tile-tooltip-button-${dsId}`,
154
+ text: title,
155
+ startPlacementPreference: tooltipPlacement,
156
+ children: Btn
157
+ })
158
+ }) : Btn;
135
159
  };
136
160
  TileButton.propTypes = import_props.propsTileButton;
137
161
  TileButton.displayName = "TileButton";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/exported-related/tile-button/TileButton.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable max-lines */\nimport React, { WeakValidationMap } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { DSTooltipV3 } from '@elliemae/ds-tooltip';\nimport { Grid } from '@elliemae/ds-grid';\nimport { CloseXsmall } from '@elliemae/ds-icons';\nimport {\n StyledTooltipV3ButtonWrapper,\n StyledTileButton,\n StyledTileButtonIcon,\n StyledTileButtonLabel,\n StyledWrapper,\n StyledWrapperLeftBorder,\n StyledStatusBadge,\n StyledWrapperCentralContent,\n CloseButton,\n} from './styled';\nimport { propsTileButton, defaultTileButton, TileButtonProps } from './props';\n\nconst TileButton: React.ComponentType<TileButtonProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultTileButton);\n useValidateTypescriptPropTypes(propsWithDefault, propsTileButton);\n\n const {\n label,\n title,\n dsId,\n onClick,\n onFocus,\n onBlur,\n Icon,\n showClose,\n onClose,\n badge,\n badgeColor,\n badgePosition,\n disabled,\n selected,\n isHeader,\n ariaLabel,\n tooltipPlacement,\n disableTooltip,\n innerRef,\n } = propsWithDefault;\n const handleClick = React.useCallback(() => {\n onClick(dsId, title);\n }, [dsId, onClick, title]);\n\n const MainContent = React.useMemo(\n () => (\n <StyledWrapperCentralContent alignItems={isHeader ? 'center' : undefined}>\n <Grid width=\"100%\" alignItems=\"center\" justifyContent=\"center\">\n <StyledTileButtonIcon alignItems=\"center\" justifyContent=\"center\">\n <Icon size=\"m\" />\n {badge ? (\n <StyledStatusBadge\n badgeColor={badgeColor}\n badgePosition={badgePosition}\n data-testid={`tile-badge-${dsId}`}\n />\n ) : null}\n </StyledTileButtonIcon>\n </Grid>\n {!isHeader ? (\n <Grid width=\"100%\" justifyContent=\"center\">\n {label ? <StyledTileButtonLabel>{label}</StyledTileButtonLabel> : null}\n </Grid>\n ) : null}\n </StyledWrapperCentralContent>\n ),\n [isHeader, Icon, badge, dsId, badgeColor, badgePosition, label],\n );\n\n const Btn = React.useMemo(\n () => (\n <StyledTileButton\n key={dsId}\n isHeader={isHeader}\n value={dsId}\n data-testid={`tile-button-${dsId}`}\n data-key={dsId}\n onClick={handleClick}\n onFocus={onFocus}\n onBlur={onBlur}\n disabled={disabled}\n selected={selected}\n badgeColor={badgeColor}\n badgePosition={badgePosition}\n aria-pressed={selected}\n aria-label={ariaLabel}\n ref={innerRef}\n >\n <StyledWrapper alignItems=\"center\" justifyContent=\"center\">\n <span>{MainContent}</span>\n <StyledWrapperLeftBorder />\n {showClose && !disabled ? (\n <CloseButton onClick={onClose} value={dsId} data-testid={`tile-close-btn-${dsId}`}>\n <CloseXsmall />\n </CloseButton>\n ) : null}\n </StyledWrapper>\n </StyledTileButton>\n ),\n [\n MainContent,\n ariaLabel,\n badgeColor,\n badgePosition,\n disabled,\n dsId,\n handleClick,\n isHeader,\n onBlur,\n onClose,\n onFocus,\n selected,\n showClose,\n innerRef,\n ],\n );\n\n return title && !disableTooltip ? (\n <StyledTooltipV3ButtonWrapper>\n <DSTooltipV3 id={`ds-chat-tile-tooltip-button-${dsId}`} text={title} startPlacementPreference={tooltipPlacement}>\n {Btn}\n </DSTooltipV3>\n </StyledTooltipV3ButtonWrapper>\n ) : (\n Btn\n );\n};\n\nTileButton.propTypes = propsTileButton as WeakValidationMap<unknown>;\nTileButton.displayName = 'TileButton';\nconst TileButtonWithSchema = describe(TileButton);\nTileButtonWithSchema.propTypes = propsTileButton as WeakValidationMap<unknown>;\n\nexport { TileButton, TileButtonWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAyC;AACzC,0BAAuF;AACvF,wBAA4B;AAC5B,qBAAqB;AACrB,sBAA4B;AAC5B,oBAUO;AACP,mBAAoE;AAEpE,MAAM,aAAmD,CAAC,UAAU;AAClE,QAAM,uBAAmB,kDAA6B,OAAO,8BAAiB;AAC9E,0DAA+B,kBAAkB,4BAAe;AAEhE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,cAAc,aAAAA,QAAM,YAAY,MAAM;AAC1C,YAAQ,MAAM,KAA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