@elliemae/ds-chat 2.0.0-alpha.4 → 2.0.0-alpha.8

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 (45) hide show
  1. package/cjs/parts/bubble/ChatBubble.js +10 -10
  2. package/cjs/parts/bubble/ChatBubbleArrow.js +13 -13
  3. package/cjs/parts/bubble/props.js +1 -1
  4. package/cjs/parts/bubble/styled.js +10 -10
  5. package/cjs/parts/chat-card/ChatCard.js +6 -6
  6. package/cjs/parts/chat-card/styled.js +6 -6
  7. package/cjs/parts/chat-composer/ChatContainerComposer.js +20 -20
  8. package/cjs/parts/chat-composer/styled.js +5 -5
  9. package/cjs/parts/chat-container/ChatContainer.js +12 -13
  10. package/cjs/parts/chat-container/config/useValidateProps.js +1 -1
  11. package/cjs/parts/chat-container/props.js +4 -4
  12. package/cjs/parts/chat-container/styled.js +3 -3
  13. package/cjs/parts/chat-container-header/ChatContainerHeader.js +5 -5
  14. package/cjs/parts/chat-container-header/styled.js +3 -3
  15. package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +15 -16
  16. package/cjs/parts/chat-container-messages-list/config/useValidateProps.js +1 -1
  17. package/cjs/parts/chat-container-messages-list/props.js +1 -1
  18. package/cjs/parts/chat-container-messages-list/styled.js +6 -6
  19. package/cjs/parts/chat-empty-state/ChatEmptyState.js +6 -6
  20. package/cjs/parts/chat-empty-state/styled.js +2 -2
  21. package/cjs/parts/chat-sidebar/SideBarChat.js +6 -6
  22. package/cjs/parts/chat-sidebar/styled.js +2 -2
  23. package/cjs/parts/floating-button/FloatingButton.js +2 -2
  24. package/cjs/parts/floating-button/styled.js +1 -1
  25. package/cjs/parts/floating-container/styled.js +1 -1
  26. package/cjs/parts/grid-influencer/InfluencerContainer.js +2 -2
  27. package/cjs/parts/grid-influencer/styled.js +2 -2
  28. package/cjs/parts/message-delimiter/MessageDelimiter.js +3 -3
  29. package/cjs/parts/message-delimiter/styled.js +3 -3
  30. package/cjs/parts/sidebar-button/SidebarButton.js +6 -6
  31. package/cjs/parts/sidebar-button/props.js +2 -2
  32. package/cjs/parts/sidebar-button/styled.js +3 -3
  33. package/cjs/parts/system-message/SystemMessage.js +5 -5
  34. package/cjs/parts/system-message/style.js +5 -5
  35. package/cjs/parts/tile-button/TileButton.js +14 -14
  36. package/cjs/parts/tile-button/props.js +1 -1
  37. package/cjs/parts/tile-button/styled.js +8 -8
  38. package/esm/parts/bubble/styled.js +1 -1
  39. package/esm/parts/chat-container/ChatContainer.js +1 -2
  40. package/esm/parts/chat-container/config/useValidateProps.js +2 -2
  41. package/esm/parts/chat-container/props.js +4 -4
  42. package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +1 -2
  43. package/esm/parts/chat-container-messages-list/config/useValidateProps.js +2 -2
  44. package/esm/parts/chat-container-messages-list/props.js +1 -1
  45. package/package.json +4 -4
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
- require('core-js/modules/web.url.to-json.js');
8
7
  var React = require('react');
9
8
  var reactDesc = require('react-desc');
10
9
  var reactVirtual = require('react-virtual');
@@ -27,7 +26,7 @@ var DSButton__default = /*#__PURE__*/_interopDefaultLegacy(DSButton);
27
26
 
28
27
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
29
28
 
30
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
29
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31
30
 
32
31
  const getPadding = hasMoreItems => {
33
32
  const padding = {
@@ -39,7 +38,7 @@ const getPadding = hasMoreItems => {
39
38
  };
40
39
 
41
40
  const ChatContainerMessagesList = props => {
42
- useValidateProps.useValidateProps(props, ChatContainerMessagesListWithSchema.toJSON());
41
+ useValidateProps.useValidateProps(props, ChatContainerMessagesListWithSchema.toTypescript());
43
42
  const {
44
43
  sendingText,
45
44
  sendingMessages,
@@ -50,7 +49,7 @@ const ChatContainerMessagesList = props => {
50
49
  hasMoreItems,
51
50
  isLoading
52
51
  } = props;
53
- const virtualListRef = React__default['default'].useRef(); // estimateSize should not be really required given what was stated on
52
+ const virtualListRef = React__default["default"].useRef(); // estimateSize should not be really required given what was stated on
54
53
  // https://github.com/tannerlinsley/react-virtual/issues/23
55
54
 
56
55
  const {
@@ -62,9 +61,9 @@ const ChatContainerMessagesList = props => {
62
61
  parentRef: virtualListRef,
63
62
  overscan: 15
64
63
  }, getPadding(hasMoreItems)), {}, {
65
- estimateSize: React__default['default'].useCallback(() => 80, [])
64
+ estimateSize: React__default["default"].useCallback(() => 80, [])
66
65
  }));
67
- const onScrollStop = React__default['default'].useCallback(() => {
66
+ const onScrollStop = React__default["default"].useCallback(() => {
68
67
  const {
69
68
  bottom,
70
69
  top
@@ -80,7 +79,7 @@ const ChatContainerMessagesList = props => {
80
79
  if (onScrollEnds) onScrollEnds(indexList);
81
80
  return indexList;
82
81
  }, [onScrollEnds]);
83
- const scrollAndFocus = React__default['default'].useCallback(index => {
82
+ const scrollAndFocus = React__default["default"].useCallback(index => {
84
83
  vScroll(index, {
85
84
  align: 'center'
86
85
  });
@@ -88,7 +87,7 @@ const ChatContainerMessagesList = props => {
88
87
  virtualListRef.current.querySelector(`[data-index="${index}"]`).focus();
89
88
  }, 300);
90
89
  }, [vScroll]);
91
- React__default['default'].useEffect(() => {
90
+ React__default["default"].useEffect(() => {
92
91
  if (actionRef && actionRef.current) {
93
92
  actionRef.current.scrollToIndex = (a, b = {
94
93
  align: 'center'
@@ -113,7 +112,7 @@ const ChatContainerMessagesList = props => {
113
112
  };
114
113
  }
115
114
  }, [actionRef, onScrollStop, scrollAndFocus, vScroll]);
116
- const handleKey = React__default['default'].useCallback(e => {
115
+ const handleKey = React__default["default"].useCallback(e => {
117
116
  e.preventDefault();
118
117
  const {
119
118
  key
@@ -145,7 +144,7 @@ const ChatContainerMessagesList = props => {
145
144
  break;
146
145
  }
147
146
  }, [actionRef, messages.length, scrollAndFocus]);
148
- React__default['default'].useEffect(() => {
147
+ React__default["default"].useEffect(() => {
149
148
  let handlerCallback = null;
150
149
  const localVirtualRef = virtualListRef.current;
151
150
 
@@ -163,7 +162,7 @@ const ChatContainerMessagesList = props => {
163
162
  if (onScrollEnds) localVirtualRef.removeEventListener('scroll', onScroll);
164
163
  };
165
164
  }, [onScrollStop, onScrollEnds]);
166
- const render = React__default['default'].useMemo(() => virtualItems.map(virtualItem => {
165
+ const render = React__default["default"].useMemo(() => virtualItems.map(virtualItem => {
167
166
  const {
168
167
  index,
169
168
  measureRef,
@@ -186,7 +185,7 @@ const ChatContainerMessagesList = props => {
186
185
  tabIndex: 0,
187
186
  onKeyDown: handleKey,
188
187
  role: "listitem",
189
- children: /*#__PURE__*/_jsx__default['default'](styled.StyledWrapperListItem, {
188
+ children: /*#__PURE__*/_jsx__default["default"](styled.StyledWrapperListItem, {
190
189
  type: row.type
191
190
  }, void 0, row.type === props$1.BUBBLE_TYPES.SENDER || row.type === props$1.BUBBLE_TYPES.RECIPIENT ?
192
191
  /*#__PURE__*/
@@ -196,18 +195,18 @@ const ChatContainerMessagesList = props => {
196
195
  })) : null, row.type === props$1.BUBBLE_TYPES.DELIMITER ? /*#__PURE__*/jsxRuntime.jsx(MessageDelimiter.MessageDelimiter, _objectSpread({}, row)) : null, row.type === props$1.BUBBLE_TYPES.SYSTEM ? /*#__PURE__*/jsxRuntime.jsx(SystemMessage.SystemMessage, _objectSpread({}, row)) : null)
197
196
  }, `ds-chat-bubble-${index}`);
198
197
  }), [virtualItems, messages, sendingMessages, handleKey, sendingText]);
199
- return /*#__PURE__*/_jsx__default['default'](styled.StyledWrapper, {}, void 0, /*#__PURE__*/jsxRuntime.jsx(styled.StyledChatContainerContentList, {
198
+ return /*#__PURE__*/_jsx__default["default"](styled.StyledWrapper, {}, void 0, /*#__PURE__*/jsxRuntime.jsx(styled.StyledChatContainerContentList, {
200
199
  "data-testid": "chat-thread-container",
201
200
  tabIndex: 0,
202
201
  "aria-live": "polite",
203
202
  ref: virtualListRef,
204
203
  role: "list",
205
204
  onKeyDown: handleKey,
206
- children: /*#__PURE__*/_jsx__default['default'](styled.StyledChatContainerContentListScroll, {
205
+ children: /*#__PURE__*/_jsx__default["default"](styled.StyledChatContainerContentListScroll, {
207
206
  height: `${totalSize}px`
208
- }, void 0, render, !isLoading && hasMoreItems ? /*#__PURE__*/_jsx__default['default'](styled.StyledLoadMoreContainer, {
207
+ }, void 0, render, !isLoading && hasMoreItems ? /*#__PURE__*/_jsx__default["default"](styled.StyledLoadMoreContainer, {
209
208
  hasMoreItems: hasMoreItems
210
- }, void 0, /*#__PURE__*/_jsx__default['default'](DSButton__default['default'], {
209
+ }, void 0, /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
211
210
  labelText: "Load More",
212
211
  buttonType: "secondary",
213
212
  onClick: getMoreMessages
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var dsPropsHelpers = require('@elliemae/ds-props-helpers');
6
6
 
7
7
  const useValidateProps = (props, schema) => {
8
- dsPropsHelpers.useValidatePropTypes(props, schema);
8
+ dsPropsHelpers.useValidateTypescriptPropTypes(props, schema);
9
9
  };
10
10
 
11
11
  exports.useValidateProps = useValidateProps;
@@ -30,7 +30,7 @@ const listProps = {
30
30
  isLoading: reactDesc.PropTypes.oneOf(['top', 'bottom', undefined]).description('Keeps the load more space while the loading is in progress'),
31
31
  hasMoreItems: reactDesc.PropTypes.oneOf(['top', 'bottom', undefined]).description('Show Load More button at the `top` or `bottom` of the container'),
32
32
  getMoreMessages: reactDesc.PropTypes.func.description('Called when the user clicks on load more').defaultValue(defaultProps.getMoreMessages),
33
- sendingMessages: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.number])).description('Array of ids of sending messages').defaultValue(defaultProps.sendingMessages),
33
+ sendingMessages: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.string), reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.number)]).description('Array of ids of sending messages').defaultValue(defaultProps.sendingMessages),
34
34
  sendingText: reactDesc.PropTypes.string.description('Label description for messages in sending status').defaultValue(defaultProps.sendingText)
35
35
  };
36
36
 
@@ -10,27 +10,27 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
12
 
13
- const StyledWrapper = /*#__PURE__*/styled__default['default'].div.withConfig({
13
+ const StyledWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
14
14
  componentId: "sc-1jhprzr-0"
15
15
  })(["width:100%;height:100%;"]); // list
16
16
 
17
- const StyledWrapperListItem = /*#__PURE__*/styled__default['default'].div.withConfig({
17
+ const StyledWrapperListItem = /*#__PURE__*/styled__default["default"].div.withConfig({
18
18
  componentId: "sc-1jhprzr-1"
19
19
  })(["min-width:100%;", ";", ";", ";"], props$1 => props$1.type === props.BUBBLE_TYPES.SENDER && `padding: ${props$1.theme.space.xxs} ${props$1.theme.space.xxs} 0px 13%
20
20
  `, props$1 => props$1.type === props.BUBBLE_TYPES.RECIPIENT && `padding: ${props$1.theme.space.xxs} 13% ${props$1.theme.space.xxs}
21
21
  ${props$1.theme.space.xxs}
22
22
  `, props$1 => props$1.type === props.BUBBLE_TYPES.SYSTEM && `padding: ${props$1.theme.space.xxs} 0px
23
23
  `);
24
- const StyledChatContainerContentList = /*#__PURE__*/styled__default['default'].div.withConfig({
24
+ const StyledChatContainerContentList = /*#__PURE__*/styled__default["default"].div.withConfig({
25
25
  componentId: "sc-1jhprzr-2"
26
26
  })(["width:100%;height:100%;padding:", ";padding-bottom:0;overflow-y:auto;overflow-x:hidden;"], props => props.theme.space.xs);
27
- const StyledChatContainerContentListScroll = /*#__PURE__*/styled__default['default'].div.withConfig({
27
+ const StyledChatContainerContentListScroll = /*#__PURE__*/styled__default["default"].div.withConfig({
28
28
  componentId: "sc-1jhprzr-3"
29
29
  })(["width:100%;height:", ";position:relative;"], props => props.height);
30
- const StyledLoadMoreContainer = /*#__PURE__*/styled__default['default'].div.withConfig({
30
+ const StyledLoadMoreContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
31
31
  componentId: "sc-1jhprzr-4"
32
32
  })(["position:absolute;width:calc(100% + ", ");padding:", ";left:-", ";right:-", ";display:grid;justify-content:center;align-items:center;", " ", ""], props => props.theme.space.xxs, props => props.theme.space.xxs, props => props.theme.space.xxs, props => props.theme.space.xxs, props => props.hasMoreItems === 'top' ? 'top: 0;' : '', props => props.hasMoreItems === 'bottom' ? 'bottom: 0;' : '');
33
- const ListItem = /*#__PURE__*/styled__default['default'].div.withConfig({
33
+ const ListItem = /*#__PURE__*/styled__default["default"].div.withConfig({
34
34
  componentId: "sc-1jhprzr-5"
35
35
  })(["&:focus,&:focus-visible{outline:none;&:after{content:'';display:block;position:absolute;pointer-events:none;background:rgba(255,255,255,0.5);width:calc(100% + ", ");height:100%;}}"], props => props.theme.space.xxs);
36
36
 
@@ -25,23 +25,23 @@ const ChatEmptyState = props => {
25
25
  label,
26
26
  action
27
27
  } = props;
28
- const MainContent = React.useMemo(() => /*#__PURE__*/_jsx__default['default'](dsGrid.Grid, {
28
+ const MainContent = React.useMemo(() => /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
29
29
  alignItems: "center",
30
30
  justifyContent: "center"
31
- }, void 0, /*#__PURE__*/_jsx__default['default'](dsGrid.Grid, {
31
+ }, void 0, /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
32
32
  alignItems: "center",
33
33
  justifyContent: "center"
34
- }, void 0, /*#__PURE__*/_jsx__default['default'](Communications__default['default'], {
34
+ }, void 0, /*#__PURE__*/_jsx__default["default"](Communications__default["default"], {
35
35
  size: "xxl",
36
36
  color: ['neutral', 400]
37
- })), _Grid || (_Grid = /*#__PURE__*/_jsx__default['default'](dsGrid.Grid, {
37
+ })), _Grid || (_Grid = /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
38
38
  alignItems: "center",
39
39
  justifyContent: "center"
40
- }, void 0, /*#__PURE__*/_jsx__default['default'](styled.MessageWrapper, {}, void 0, label))), _Grid2 || (_Grid2 = /*#__PURE__*/_jsx__default['default'](dsGrid.Grid, {
40
+ }, void 0, /*#__PURE__*/_jsx__default["default"](styled.MessageWrapper, {}, void 0, label))), _Grid2 || (_Grid2 = /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
41
41
  alignItems: "center",
42
42
  justifyContent: "center"
43
43
  }, void 0, action))), [label, action]);
44
- return /*#__PURE__*/_jsx__default['default'](styled.ChatEmptyStateWrapper, {
44
+ return /*#__PURE__*/_jsx__default["default"](styled.ChatEmptyStateWrapper, {
45
45
  alignItems: "center",
46
46
  justifyContent: "center"
47
47
  }, void 0, MainContent);
@@ -10,10 +10,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
12
  const CONTAINER_WIDTH = 300;
13
- const ChatEmptyStateWrapper = /*#__PURE__*/styled__default['default'](dsGrid.Grid).withConfig({
13
+ const ChatEmptyStateWrapper = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
14
14
  componentId: "sc-1tutmen-0"
15
15
  })(["height:100%;min-width:", "px;overflow:hidden;background:", ";"], CONTAINER_WIDTH, props => props.theme.colors.neutral['050']);
16
- const MessageWrapper = /*#__PURE__*/styled__default['default'].p.withConfig({
16
+ const MessageWrapper = /*#__PURE__*/styled__default["default"].p.withConfig({
17
17
  componentId: "sc-1tutmen-1"
18
18
  })(["font-size:18px;"]);
19
19
 
@@ -25,17 +25,17 @@ var MenuCollapse__default = /*#__PURE__*/_interopDefaultLegacy(MenuCollapse);
25
25
 
26
26
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
27
27
 
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
28
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
29
29
 
30
30
  const FooterChat = ({
31
31
  expanded,
32
32
  onFooterClose,
33
33
  onFooterExpand,
34
34
  footerButtonExtraProps
35
- }) => /*#__PURE__*/_jsx__default['default'](SidebarButton.SidebarButton, {
35
+ }) => /*#__PURE__*/_jsx__default["default"](SidebarButton.SidebarButton, {
36
36
  dsId: "sidebar_footer",
37
37
  label: null,
38
- Icon: !expanded ? MenuCollapse__default['default'] : MenuExpand__default['default'],
38
+ Icon: !expanded ? MenuCollapse__default["default"] : MenuExpand__default["default"],
39
39
  onClick: expanded ? onFooterClose : onFooterExpand,
40
40
  "aria-pressed": expanded,
41
41
  "aria-label": footerButtonExtraProps['aria-label']
@@ -51,11 +51,11 @@ const SideBarChat = props => {
51
51
  selectedItem,
52
52
  footerButtonExtraProps
53
53
  } = props;
54
- return /*#__PURE__*/_jsx__default['default'](styled.StyledSideBarContainer, {
54
+ return /*#__PURE__*/_jsx__default["default"](styled.StyledSideBarContainer, {
55
55
  rows: [1, 'auto']
56
- }, void 0, /*#__PURE__*/_jsx__default['default'](styled.StyledSideBarButtonsContainer, {}, void 0, sidebarItems.map(p => /*#__PURE__*/jsxRuntime.jsx(TileButton.TileButton, _objectSpread(_objectSpread({}, p), {}, {
56
+ }, void 0, /*#__PURE__*/_jsx__default["default"](styled.StyledSideBarButtonsContainer, {}, void 0, sidebarItems.map(p => /*#__PURE__*/jsxRuntime.jsx(TileButton.TileButton, _objectSpread(_objectSpread({}, p), {}, {
57
57
  selected: selectedItem === p.dsId
58
- })))), /*#__PURE__*/_jsx__default['default'](FooterChat, {
58
+ })))), /*#__PURE__*/_jsx__default["default"](FooterChat, {
59
59
  expanded: expanded,
60
60
  onFooterClose: onFooterClose,
61
61
  onFooterExpand: onFooterExpand,
@@ -10,10 +10,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
12
 
13
- const StyledSideBarContainer = /*#__PURE__*/styled__default['default'](dsGrid.Grid).withConfig({
13
+ const StyledSideBarContainer = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
14
14
  componentId: "sc-16uijso-0"
15
15
  })(["height:100%;width:", "px;background:", ";border-right:1px solid ", ";"], styled$1.MIN_WIDTH_SIDEBAR, props => props.theme.colors.neutral['050'], props => props.theme.colors.neutral['100']);
16
- const StyledSideBarButtonsContainer = /*#__PURE__*/styled__default['default'](dsGrid.Grid).withConfig({
16
+ const StyledSideBarButtonsContainer = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
17
17
  componentId: "sc-16uijso-1"
18
18
  })(["overflow-y:auto;align-items:flex-start;justify-content:flex-start;grid-template-rows:repeat(auto-fill,", "px);"], styled$1.BUTTON_SIDEBAR_HEIGHT);
19
19
 
@@ -16,10 +16,10 @@ var Comments__default = /*#__PURE__*/_interopDefaultLegacy(Comments);
16
16
  var _Comments;
17
17
  const FloatingButton = ({
18
18
  onClick
19
- }) => /*#__PURE__*/_jsx__default['default'](styled.StyledFloatingButton, {
19
+ }) => /*#__PURE__*/_jsx__default["default"](styled.StyledFloatingButton, {
20
20
  "data-testid": "chat-floating-button",
21
21
  onClick: onClick
22
- }, void 0, _Comments || (_Comments = /*#__PURE__*/_jsx__default['default'](Comments__default['default'], {
22
+ }, void 0, _Comments || (_Comments = /*#__PURE__*/_jsx__default["default"](Comments__default["default"], {
23
23
  size: "l"
24
24
  })));
25
25
  FloatingButton.defaultProps = props.defaultFloatingButton;
@@ -11,7 +11,7 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
  const BUTTON_FLOATING = 56;
12
12
  const BOX_SHADOW = '0 5px 8px 0 rgba(53,60,70,0.55)';
13
13
  const BOX_SHADOW_FLOATING = '0 5px 8px 0 rgba(53,60,70,0.35)';
14
- const StyledFloatingButton = /*#__PURE__*/styled__default['default'].button.withConfig({
14
+ const StyledFloatingButton = /*#__PURE__*/styled__default["default"].button.withConfig({
15
15
  componentId: "sc-vlozhu-0"
16
16
  })(["outline:none;cursor:pointer;height:", "px;width:", "px;border:none;background:", ";border-radius:50%;box-shadow:", ";&:hover{background:", ";}&:focus{border:2px solid ", ";box-shadow:inset 0 0 0 2px ", ",", ";}&:active{background:", ";box-shadow:inset 0 0 0 0,", ";}svg{fill:", ";}"], BUTTON_FLOATING, BUTTON_FLOATING, props => props.theme.colors.brand[600], BOX_SHADOW_FLOATING, props => props.theme.colors.brand[700], props => props.theme.colors.brand[700], props => props.theme.colors.neutral['000'], BOX_SHADOW, props => props.theme.colors.brand[800], BOX_SHADOW_FLOATING, props => props.theme.colors.neutral['000']);
17
17
 
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
12
 
13
- const StyledFloatingContainer = /*#__PURE__*/styled__default['default'](dsGrid.Grid).withConfig({
13
+ const StyledFloatingContainer = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
14
14
  componentId: "sc-nqvrts-0"
15
15
  })(["position:fixed;bottom:24px;right:24px;border-radius:4px;z-index:1;box-shadow:", ";background:", ";width:348px;"], styled$1.BOX_SHADOW, nestedProps => nestedProps.theme.colors.neutral['050']);
16
16
 
@@ -14,10 +14,10 @@ var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
14
14
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
15
 
16
16
  var _SideBarChat, _ChatContainer, _div;
17
- const InfluencerContainer = props => React__default['default'].useMemo(() => props.floating ? null : /*#__PURE__*/_jsx__default['default'](styled.StyledChatContainer, {
17
+ const InfluencerContainer = props => React__default["default"].useMemo(() => props.floating ? null : /*#__PURE__*/_jsx__default["default"](styled.StyledChatContainer, {
18
18
  cols: ['auto', props.expanded ? 1 : '0px'],
19
19
  expanded: props.expanded,
20
20
  expandedWidth: props.expandedWidth
21
- }, void 0, _SideBarChat || (_SideBarChat = /*#__PURE__*/_jsx__default['default'](SideBarChat.SideBarChat, {})), props.expanded ? _ChatContainer || (_ChatContainer = /*#__PURE__*/_jsx__default['default'](ChatContainer.ChatContainer, {})) : _div || (_div = /*#__PURE__*/_jsx__default['default']("div", {}))), [props.floating, props.expanded, props.expandedWidth]);
21
+ }, void 0, _SideBarChat || (_SideBarChat = /*#__PURE__*/_jsx__default["default"](SideBarChat.SideBarChat, {})), props.expanded ? _ChatContainer || (_ChatContainer = /*#__PURE__*/_jsx__default["default"](ChatContainer.ChatContainer, {})) : _div || (_div = /*#__PURE__*/_jsx__default["default"]("div", {}))), [props.floating, props.expanded, props.expandedWidth]);
22
22
 
23
23
  exports.InfluencerContainer = InfluencerContainer;
@@ -10,10 +10,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
12
 
13
- const StyledChatContainer = /*#__PURE__*/styled__default['default'](dsGrid.Grid).withConfig({
13
+ const StyledChatContainer = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
14
14
  componentId: "sc-b6t5vk-0"
15
15
  })(["height:100%;width:", ";background:", ";box-shadow:-1px 0 0 0 ", ";transition:width ", " 350ms;"], props => props.expanded ? `${props.expandedWidth}px` : `${styled$1.MIN_WIDTH_SIDEBAR}px`, props => props.theme.colors.neutral['050'], props => props.theme.colors.neutral[100], props => props.expanded ? 'ease-out' : 'ease-in');
16
- const StyledChatContainerContent = /*#__PURE__*/styled__default['default'](dsGrid.Grid).withConfig({
16
+ const StyledChatContainerContent = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
17
17
  componentId: "sc-b6t5vk-1"
18
18
  })(["height:100%;overflow:hidden;background:", ";", ""], props => props.theme.colors.neutral['050'], props => props.floating ? `
19
19
  width: ${props.expandedWidth}px;
@@ -24,13 +24,13 @@ const MessageDelimiter = props => {
24
24
  extraProps,
25
25
  verticalMargin
26
26
  } = props;
27
- return /*#__PURE__*/_jsx__default['default'](styled.Wrapper, {
27
+ return /*#__PURE__*/_jsx__default["default"](styled.Wrapper, {
28
28
  cols: ['1fr', 'auto', '1fr']
29
- }, void 0, _Line || (_Line = /*#__PURE__*/_jsx__default['default'](styled.Line, {})), /*#__PURE__*/_jsx__default['default'](styled.Text, {
29
+ }, void 0, _Line || (_Line = /*#__PURE__*/_jsx__default["default"](styled.Line, {})), /*#__PURE__*/_jsx__default["default"](styled.Text, {
30
30
  size: size,
31
31
  verticalMargin: verticalMargin,
32
32
  "data-testid": extraProps['data-testid']
33
- }, void 0, title), _Line2 || (_Line2 = /*#__PURE__*/_jsx__default['default'](styled.Line, {})));
33
+ }, void 0, title), _Line2 || (_Line2 = /*#__PURE__*/_jsx__default["default"](styled.Line, {})));
34
34
  };
35
35
 
36
36
  MessageDelimiter.defaultProps = props.defaultProps;
@@ -9,13 +9,13 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
 
10
10
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
- const Wrapper = /*#__PURE__*/styled__default['default'](dsGrid.Grid).withConfig({
12
+ const Wrapper = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
13
13
  componentId: "sc-upz0rt-0"
14
14
  })(["align-items:center;justify-content:center;width:100%;min-height:8px;"]);
15
- const Line = /*#__PURE__*/styled__default['default'].span.withConfig({
15
+ const Line = /*#__PURE__*/styled__default["default"].span.withConfig({
16
16
  componentId: "sc-upz0rt-1"
17
17
  })(["border-top:1px solid ", ";"], props => props.theme.colors.neutral['400']);
18
- const Text = /*#__PURE__*/styled__default['default'].p.withConfig({
18
+ const Text = /*#__PURE__*/styled__default["default"].p.withConfig({
19
19
  componentId: "sc-upz0rt-2"
20
20
  })(["color:", ";font-size:", ";font-weight:", ";margin:", ";"], props => props.theme.colors.neutral['600'], props => props.size === 's' ? '12px' : '14px', props => props.theme.fontWeights.semibold, props => typeof props.verticalMargin === 'number' ? `${props.verticalMargin}px 8px` : `${props.verticalMargin} 8px`);
21
21
 
@@ -21,7 +21,7 @@ const _excluded = ["label", "dsId", "onClick", "Icon"];
21
21
 
22
22
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
23
23
 
24
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
24
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
25
25
  const SidebarButton = _ref => {
26
26
  let {
27
27
  label,
@@ -29,21 +29,21 @@ const SidebarButton = _ref => {
29
29
  onClick,
30
30
  Icon
31
31
  } = _ref,
32
- rest = _objectWithoutProperties__default['default'](_ref, _excluded);
32
+ rest = _objectWithoutProperties__default["default"](_ref, _excluded);
33
33
 
34
- const handleClick = React__default['default'].useCallback(() => {
34
+ const handleClick = React__default["default"].useCallback(() => {
35
35
  onClick(dsId);
36
36
  }, [onClick, dsId]);
37
37
  return /*#__PURE__*/jsxRuntime.jsxs(styled.StyledSidebarButton, _objectSpread(_objectSpread({
38
38
  "data-testid": `sidebar-button-${dsId}`,
39
39
  onClick: handleClick
40
40
  }, rest), {}, {
41
- children: [/*#__PURE__*/_jsx__default['default'](styled.StyledSidebarButtonIcon, {
41
+ children: [/*#__PURE__*/_jsx__default["default"](styled.StyledSidebarButtonIcon, {
42
42
  alignItems: "center",
43
43
  justifyContent: "center"
44
- }, void 0, /*#__PURE__*/_jsx__default['default'](Icon, {
44
+ }, void 0, /*#__PURE__*/_jsx__default["default"](Icon, {
45
45
  size: "m"
46
- })), label && /*#__PURE__*/_jsx__default['default'](styled.StyledSidebarButtonLabel, {}, void 0, label)]
46
+ })), label && /*#__PURE__*/_jsx__default["default"](styled.StyledSidebarButtonLabel, {}, void 0, label)]
47
47
  }), dsId);
48
48
  };
49
49
  SidebarButton.defaultProps = props.defaultSidebarButton;
@@ -13,7 +13,7 @@ var propsTypes__default = /*#__PURE__*/_interopDefaultLegacy(propsTypes);
13
13
  var Comments__default = /*#__PURE__*/_interopDefaultLegacy(Comments);
14
14
 
15
15
  const defaultSidebarButton = {
16
- Icon: Comments__default['default'],
16
+ Icon: Comments__default["default"],
17
17
  dsId: undefined,
18
18
  label: '',
19
19
  onClick: lodash.noop,
@@ -21,7 +21,7 @@ const defaultSidebarButton = {
21
21
  };
22
22
  const propsSidebarButton = {
23
23
  Icon: reactDesc.PropTypes.element.description('Icon component').defaultValue(defaultSidebarButton.Icon),
24
- dsId: reactDesc.PropTypes.oneOfType([propsTypes__default['default'].number, propsTypes__default['default'].string]).description('Unique id for the button').defaultValue(defaultSidebarButton.dsId),
24
+ dsId: reactDesc.PropTypes.oneOfType([propsTypes__default["default"].number, propsTypes__default["default"].string]).description('Unique id for the button').defaultValue(defaultSidebarButton.dsId),
25
25
  label: reactDesc.PropTypes.string.description('It will display under the icon').defaultValue(defaultSidebarButton.label),
26
26
  title: reactDesc.PropTypes.string.description('Tooltip').defaultValue(defaultSidebarButton.title),
27
27
  onClick: reactDesc.PropTypes.func.description('The function to call when the is clicked').defaultValue(defaultSidebarButton.onClick)
@@ -10,13 +10,13 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
12
 
13
- const StyledSidebarButton = /*#__PURE__*/styled__default['default'].button.withConfig({
13
+ const StyledSidebarButton = /*#__PURE__*/styled__default["default"].button.withConfig({
14
14
  componentId: "sc-6ygly3-0"
15
15
  })(["display:flex;align-items:center;justify-content:center;outline:none;height:", "px;width:", "px;position:relative;border:0;background:transparent;&:focus,&:hover{background:", ";}cursor:pointer;border-bottom:1px solid ", ";svg{fill:", ";}"], styled$1.BUTTON_SIDEBAR_HEIGHT, styled$1.MIN_WIDTH_SIDEBAR, props => props.theme.colors.neutral['080'], props => props.theme.colors.neutral['200'], props => props.theme.colors.neutral[500]);
16
- const StyledSidebarButtonIcon = /*#__PURE__*/styled__default['default'](dsGrid.Grid).withConfig({
16
+ const StyledSidebarButtonIcon = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
17
17
  componentId: "sc-6ygly3-1"
18
18
  })(["position:relative;"]);
19
- const StyledSidebarButtonLabel = /*#__PURE__*/styled__default['default'].div.withConfig({
19
+ const StyledSidebarButtonLabel = /*#__PURE__*/styled__default["default"].div.withConfig({
20
20
  componentId: "sc-6ygly3-2"
21
21
  })(["width:30px;text-transform:uppercase;overflow:hidden;text-align:center;"]);
22
22
 
@@ -23,15 +23,15 @@ const SystemMessage = props => {
23
23
  time,
24
24
  body
25
25
  } = props;
26
- return /*#__PURE__*/_jsx__default['default'](style.Wrapper, {
26
+ return /*#__PURE__*/_jsx__default["default"](style.Wrapper, {
27
27
  rows: ['auto', 'auto']
28
- }, void 0, /*#__PURE__*/_jsx__default['default'](style.Header, {
28
+ }, void 0, /*#__PURE__*/_jsx__default["default"](style.Header, {
29
29
  cols: ['1fr', 'auto', '1fr']
30
- }, void 0, _span || (_span = /*#__PURE__*/_jsx__default['default']("span", {})), /*#__PURE__*/_jsx__default['default'](style.Title, {
30
+ }, void 0, _span || (_span = /*#__PURE__*/_jsx__default["default"]("span", {})), /*#__PURE__*/_jsx__default["default"](style.Title, {
31
31
  "data-testid": "chat-system-message-title"
32
- }, void 0, title), /*#__PURE__*/_jsx__default['default'](style.Time, {
32
+ }, void 0, title), /*#__PURE__*/_jsx__default["default"](style.Time, {
33
33
  "data-testid": "chat-system-message-time"
34
- }, void 0, time)), /*#__PURE__*/_jsx__default['default'](style.Message, {
34
+ }, void 0, time)), /*#__PURE__*/_jsx__default["default"](style.Message, {
35
35
  "data-testid": "chat-system-message-body"
36
36
  }, void 0, body));
37
37
  };
@@ -9,19 +9,19 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
 
10
10
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
11
 
12
- const Wrapper = /*#__PURE__*/styled__default['default'](dsGrid.Grid).withConfig({
12
+ const Wrapper = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
13
13
  componentId: "sc-80w41d-0"
14
14
  })(["align-items:center;justify-content:center;min-width:268px;max-width:100%;padding:0 8px 8px;border:1px solid ", ";border-radius:10px;background-color:", ";box-shadow:none;"], props => props.theme.colors.neutral['100'], props => props.theme.colors.neutral['080']);
15
- const Header = /*#__PURE__*/styled__default['default'](dsGrid.Grid).withConfig({
15
+ const Header = /*#__PURE__*/styled__default["default"](dsGrid.Grid).withConfig({
16
16
  componentId: "sc-80w41d-1"
17
17
  })(["align-items:center;height:36px;"]);
18
- const Title = /*#__PURE__*/styled__default['default'].p.withConfig({
18
+ const Title = /*#__PURE__*/styled__default["default"].p.withConfig({
19
19
  componentId: "sc-80w41d-2"
20
20
  })(["font-size:14px;font-weight:", ";color:", ";margin:0;"], props => props.theme.fontWeights.semibold, props => props.theme.colors.neutral['700']);
21
- const Time = /*#__PURE__*/styled__default['default'].p.withConfig({
21
+ const Time = /*#__PURE__*/styled__default["default"].p.withConfig({
22
22
  componentId: "sc-80w41d-3"
23
23
  })(["font-size:12px;font-weight:", ";color:", ";margin:0;text-align:right;"], props => props.theme.fontWeights.regular, props => props.theme.colors.neutral['700']);
24
- const Message = /*#__PURE__*/styled__default['default'].p.withConfig({
24
+ const Message = /*#__PURE__*/styled__default["default"].p.withConfig({
25
25
  componentId: "sc-80w41d-4"
26
26
  })(["font-size:13px;font-weight:", ";color:", ";min-height:32px;text-align:center;margin:0;"], props => props.theme.fontWeights.regular, props => props.theme.colors.neutral['700']);
27
27
 
@@ -44,28 +44,28 @@ const TileButton = props => {
44
44
  isHeader,
45
45
  ariaLabel
46
46
  } = props;
47
- const handleClick = React__default['default'].useCallback(() => {
47
+ const handleClick = React__default["default"].useCallback(() => {
48
48
  onClick(dsId, title);
49
49
  }, [dsId, onClick, title]);
50
- const MainContent = React__default['default'].useMemo(() => /*#__PURE__*/_jsx__default['default'](styled.StyledWrapperCentralContent, {
50
+ const MainContent = React__default["default"].useMemo(() => /*#__PURE__*/_jsx__default["default"](styled.StyledWrapperCentralContent, {
51
51
  alignItems: isHeader ? 'center' : undefined
52
- }, void 0, /*#__PURE__*/_jsx__default['default'](dsGrid.Grid, {
52
+ }, void 0, /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
53
53
  width: "100%",
54
54
  alignItems: "center",
55
55
  justifyContent: "center"
56
- }, void 0, /*#__PURE__*/_jsx__default['default'](styled.StyledTileButtonIcon, {
56
+ }, void 0, /*#__PURE__*/_jsx__default["default"](styled.StyledTileButtonIcon, {
57
57
  alignItems: "center",
58
58
  justifyContent: "center"
59
- }, void 0, _Icon || (_Icon = /*#__PURE__*/_jsx__default['default'](Icon, {
59
+ }, void 0, _Icon || (_Icon = /*#__PURE__*/_jsx__default["default"](Icon, {
60
60
  size: "m"
61
- })), badge ? _StyledStatusBadge || (_StyledStatusBadge = /*#__PURE__*/_jsx__default['default'](styled.StyledStatusBadge, {
61
+ })), badge ? _StyledStatusBadge || (_StyledStatusBadge = /*#__PURE__*/_jsx__default["default"](styled.StyledStatusBadge, {
62
62
  badgeColor: badgeColor,
63
63
  badgePosition: badgePosition
64
- })) : null)), !isHeader ? /*#__PURE__*/_jsx__default['default'](dsGrid.Grid, {
64
+ })) : null)), !isHeader ? /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
65
65
  width: "100%",
66
66
  justifyContent: "center"
67
- }, void 0, label ? _StyledTileButtonLabe || (_StyledTileButtonLabe = /*#__PURE__*/_jsx__default['default'](styled.StyledTileButtonLabel, {}, void 0, label)) : null) : null), [isHeader, Icon, badge, badgeColor, badgePosition, label]);
68
- return /*#__PURE__*/_jsx__default['default'](styled.StyledTileButton, {
67
+ }, void 0, label ? _StyledTileButtonLabe || (_StyledTileButtonLabe = /*#__PURE__*/_jsx__default["default"](styled.StyledTileButtonLabel, {}, void 0, label)) : null) : null), [isHeader, Icon, badge, badgeColor, badgePosition, label]);
68
+ return /*#__PURE__*/_jsx__default["default"](styled.StyledTileButton, {
69
69
  isHeader: isHeader,
70
70
  value: dsId,
71
71
  "data-testid": `tile-button-${dsId}`,
@@ -78,22 +78,22 @@ const TileButton = props => {
78
78
  badgePosition: badgePosition,
79
79
  "aria-pressed": selected,
80
80
  "aria-label": ariaLabel
81
- }, dsId, /*#__PURE__*/_jsx__default['default'](styled.StyledWrapper, {
81
+ }, dsId, /*#__PURE__*/_jsx__default["default"](styled.StyledWrapper, {
82
82
  alignItems: "center",
83
83
  justifyContent: "center"
84
- }, void 0, title ? /*#__PURE__*/_jsx__default['default'](DSTooltip__default['default'], {
84
+ }, void 0, title ? /*#__PURE__*/_jsx__default["default"](DSTooltip__default["default"], {
85
85
  containerProps: {
86
86
  id: `ds-chat-tile-tooltip-button-${dsId}`,
87
87
  'data-testid': `ds-chat-tile-tooltip-button-${dsId}`
88
88
  },
89
89
  interactionType: "hover",
90
90
  title: title,
91
- triggerComponent: /*#__PURE__*/_jsx__default['default']("span", {}, void 0, MainContent),
91
+ triggerComponent: /*#__PURE__*/_jsx__default["default"]("span", {}, void 0, MainContent),
92
92
  placement: "bottom"
93
- }) : MainContent, _StyledWrapperLeftBor || (_StyledWrapperLeftBor = /*#__PURE__*/_jsx__default['default'](styled.StyledWrapperLeftBorder, {})), showClose && !disabled ? /*#__PURE__*/_jsx__default['default'](styled.CloseButton, {
93
+ }) : MainContent, _StyledWrapperLeftBor || (_StyledWrapperLeftBor = /*#__PURE__*/_jsx__default["default"](styled.StyledWrapperLeftBorder, {})), showClose && !disabled ? /*#__PURE__*/_jsx__default["default"](styled.CloseButton, {
94
94
  onClick: onClose,
95
95
  value: dsId
96
- }, void 0, _CloseXsmall || (_CloseXsmall = /*#__PURE__*/_jsx__default['default'](CloseXsmall__default['default'], {}))) : null));
96
+ }, void 0, _CloseXsmall || (_CloseXsmall = /*#__PURE__*/_jsx__default["default"](CloseXsmall__default["default"], {}))) : null));
97
97
  };
98
98
 
99
99
  TileButton.defaultProps = props.defaultTileButton;
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
11
11
  var Comments__default = /*#__PURE__*/_interopDefaultLegacy(Comments);
12
12
 
13
13
  const defaultTileButton = {
14
- Icon: Comments__default['default'],
14
+ Icon: Comments__default["default"],
15
15
  dsId: undefined,
16
16
  label: '',
17
17
  onClick: lodash.noop,