@elliemae/ds-chat 1.57.0-rc.2 → 1.57.0-rc.6
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.
- package/cjs/index.js +3 -10
- package/cjs/index.js.map +1 -1
- package/cjs/parts/bubble/ChatBubble.js +2 -3
- package/cjs/parts/bubble/ChatBubble.js.map +1 -1
- package/cjs/parts/bubble/index.js +1 -1
- package/cjs/parts/chat-composer/ChatContainerComposer.js +6 -6
- package/cjs/parts/chat-composer/ChatContainerComposer.js.map +1 -1
- package/cjs/parts/chat-composer/index.js +1 -1
- package/cjs/parts/chat-composer/props.js +2 -0
- package/cjs/parts/chat-composer/props.js.map +1 -1
- package/cjs/parts/chat-composer/styled.js +2 -2
- package/cjs/parts/chat-container/ChatContainer.js +2 -4
- package/cjs/parts/chat-container/ChatContainer.js.map +1 -1
- package/cjs/parts/chat-container/index.js +2 -4
- package/cjs/parts/chat-container/index.js.map +1 -1
- package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +2 -2
- package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +1 -1
- package/cjs/parts/chat-container-messages-list/index.js +2 -2
- package/cjs/parts/chat-container-messages-list/styled.js +1 -1
- package/cjs/parts/chat-empty-state/ChatEmptyState.js +2 -3
- package/cjs/parts/chat-empty-state/ChatEmptyState.js.map +1 -1
- package/cjs/parts/chat-sidebar/SideBarChat.js +2 -7
- package/cjs/parts/chat-sidebar/SideBarChat.js.map +1 -1
- package/cjs/parts/chat-sidebar/index.js +1 -4
- package/cjs/parts/chat-sidebar/index.js.map +1 -1
- package/cjs/parts/floating-button/FloatingButton.js +2 -3
- package/cjs/parts/floating-button/FloatingButton.js.map +1 -1
- package/cjs/parts/floating-button/index.js +1 -1
- package/cjs/parts/grid-influencer/InfluencerContainer.js +2 -8
- package/cjs/parts/grid-influencer/InfluencerContainer.js.map +1 -1
- package/cjs/parts/sidebar-button/SidebarButton.js +1 -1
- package/cjs/parts/sidebar-button/props.js +2 -3
- package/cjs/parts/sidebar-button/props.js.map +1 -1
- package/cjs/parts/tile-button/TileButton.js +2 -4
- package/cjs/parts/tile-button/TileButton.js.map +1 -1
- package/cjs/parts/tile-button/index.js +1 -2
- package/cjs/parts/tile-button/index.js.map +1 -1
- package/cjs/parts/tile-button/props.js +2 -6
- package/cjs/parts/tile-button/props.js.map +1 -1
- package/esm/index.js +3 -10
- package/esm/index.js.map +1 -1
- package/esm/parts/bubble/ChatBubble.js +2 -2
- package/esm/parts/bubble/ChatBubble.js.map +1 -1
- package/esm/parts/bubble/index.js +1 -1
- package/esm/parts/chat-composer/ChatContainerComposer.js +5 -4
- package/esm/parts/chat-composer/ChatContainerComposer.js.map +1 -1
- package/esm/parts/chat-composer/index.js +1 -1
- package/esm/parts/chat-composer/props.js +2 -0
- package/esm/parts/chat-composer/props.js.map +1 -1
- package/esm/parts/chat-container/ChatContainer.js +2 -4
- package/esm/parts/chat-container/ChatContainer.js.map +1 -1
- package/esm/parts/chat-container/index.js +2 -4
- package/esm/parts/chat-container/index.js.map +1 -1
- package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +2 -2
- package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +1 -1
- package/esm/parts/chat-container-messages-list/index.js +2 -2
- package/esm/parts/chat-container-messages-list/styled.js +1 -1
- package/esm/parts/chat-empty-state/ChatEmptyState.js +1 -1
- package/esm/parts/chat-empty-state/ChatEmptyState.js.map +1 -1
- package/esm/parts/chat-sidebar/SideBarChat.js +1 -4
- package/esm/parts/chat-sidebar/SideBarChat.js.map +1 -1
- package/esm/parts/chat-sidebar/index.js +1 -4
- package/esm/parts/chat-sidebar/index.js.map +1 -1
- package/esm/parts/floating-button/FloatingButton.js +1 -1
- package/esm/parts/floating-button/FloatingButton.js.map +1 -1
- package/esm/parts/floating-button/index.js +1 -1
- package/esm/parts/grid-influencer/InfluencerContainer.js +2 -8
- package/esm/parts/grid-influencer/InfluencerContainer.js.map +1 -1
- package/esm/parts/sidebar-button/SidebarButton.js +1 -1
- package/esm/parts/sidebar-button/props.js +1 -1
- package/esm/parts/sidebar-button/props.js.map +1 -1
- package/esm/parts/tile-button/TileButton.js +1 -2
- package/esm/parts/tile-button/TileButton.js.map +1 -1
- package/esm/parts/tile-button/index.js +1 -2
- package/esm/parts/tile-button/index.js.map +1 -1
- package/esm/parts/tile-button/props.js +1 -1
- package/esm/parts/tile-button/props.js.map +1 -1
- package/package.json +9 -9
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var reactDesc = require('react-desc');
|
|
8
|
-
var
|
|
9
|
-
var MenuCollapse = require('@elliemae/ds-icons/MenuCollapse');
|
|
8
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
10
9
|
var parts_chatSidebar_styled = require('./styled.js');
|
|
11
10
|
var parts_tileButton_TileButton = require('../tile-button/TileButton.js');
|
|
12
11
|
var parts_sidebarButton_SidebarButton = require('../sidebar-button/SidebarButton.js');
|
|
@@ -16,11 +15,9 @@ require('styled-components');
|
|
|
16
15
|
require('@elliemae/ds-grid');
|
|
17
16
|
require('../../styled.js');
|
|
18
17
|
require('@elliemae/ds-tooltip');
|
|
19
|
-
require('@elliemae/ds-icons/CloseXsmall');
|
|
20
18
|
require('../tile-button/styled.js');
|
|
21
19
|
require('../tile-button/props.js');
|
|
22
20
|
require('lodash');
|
|
23
|
-
require('@elliemae/ds-icons/Comments');
|
|
24
21
|
require('../tile-button/config/useValidateProps.js');
|
|
25
22
|
require('@elliemae/ds-props-helpers');
|
|
26
23
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -32,8 +29,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
32
29
|
|
|
33
30
|
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
34
31
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
35
|
-
var MenuExpand__default = /*#__PURE__*/_interopDefaultLegacy(MenuExpand);
|
|
36
|
-
var MenuCollapse__default = /*#__PURE__*/_interopDefaultLegacy(MenuCollapse);
|
|
37
32
|
|
|
38
33
|
var FooterChat = function FooterChat(_ref) {
|
|
39
34
|
var expanded = _ref.expanded,
|
|
@@ -43,7 +38,7 @@ var FooterChat = function FooterChat(_ref) {
|
|
|
43
38
|
return /*#__PURE__*/React__default['default'].createElement(parts_sidebarButton_SidebarButton.SidebarButton, {
|
|
44
39
|
dsId: "sidebar_footer",
|
|
45
40
|
label: null,
|
|
46
|
-
Icon: !expanded ?
|
|
41
|
+
Icon: !expanded ? dsIcons.MenuCollapse : dsIcons.MenuExpand,
|
|
47
42
|
onClick: expanded ? onFooterClose : onFooterExpand,
|
|
48
43
|
"aria-pressed": expanded,
|
|
49
44
|
"aria-label": footerButtonExtraProps['aria-label']
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideBarChat.js","sources":["../../../../src/parts/chat-sidebar/SideBarChat.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport
|
|
1
|
+
{"version":3,"file":"SideBarChat.js","sources":["../../../../src/parts/chat-sidebar/SideBarChat.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport { MenuCollapse, MenuExpand } from '@elliemae/ds-icons';\nimport { StyledSideBarContainer, StyledSideBarButtonsContainer } from './styled';\nimport { TileButton } from '../tile-button';\nimport { SidebarButton } from '../sidebar-button/SidebarButton';\nimport { CharSidebarProps, defaultProps, chatSidebarProps } from './props';\nimport { useValidateProps } from './config/useValidateProps';\n\nconst FooterChat = ({\n expanded,\n onFooterClose,\n onFooterExpand,\n footerButtonExtraProps,\n}: Pick<CharSidebarProps, 'expanded' | 'onFooterClose' | 'onFooterExpand' | 'footerButtonExtraProps'>) => (\n <SidebarButton\n dsId=\"sidebar_footer\"\n label={null}\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 = (props: CharSidebarProps): JSX.Element => {\n useValidateProps(props, SideBarChatWithSchema.toJSON());\n const {\n sidebarItems,\n expanded,\n onFooterClose,\n onFooterExpand,\n selectedItem,\n footerButtonExtraProps,\n tooltipPlacement,\n enableTooltipWhenIsClosed,\n } = props;\n return (\n <StyledSideBarContainer rows={[1, 'auto']}>\n <StyledSideBarButtonsContainer>\n {sidebarItems.map((p) => (\n <TileButton\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;\nSideBarChat.defaultProps = defaultProps;\nconst SideBarChatWithSchema = describe(SideBarChat);\nSideBarChatWithSchema.propTypes = chatSidebarProps;\n\nexport { SideBarChat, SideBarChatWithSchema };\n"],"names":["FooterChat","expanded","onFooterClose","onFooterExpand","footerButtonExtraProps","React","SidebarButton","MenuCollapse","MenuExpand","SideBarChat","props","useValidateProps","SideBarChatWithSchema","toJSON","sidebarItems","selectedItem","tooltipPlacement","enableTooltipWhenIsClosed","StyledSideBarContainer","StyledSideBarButtonsContainer","map","p","TileButton","dsId","propTypes","chatSidebarProps","defaultProps","describe"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,UAAU,GAAG,SAAbA,UAAa;AAAA,MACjBC,QADiB,QACjBA,QADiB;AAAA,MAEjBC,aAFiB,QAEjBA,aAFiB;AAAA,MAGjBC,cAHiB,QAGjBA,cAHiB;AAAA,MAIjBC,sBAJiB,QAIjBA,sBA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AA,aAAa,EAAEC,aAFjB;AAGE,IAAA,cAAc,EAAEC,cAHlB;AAIE,IAAA,sBAAsB,EAAEC;AAJ1B,IAXF,CADF;AAoBD;;AAEDK,WAAW,CAACe,SAAZ,GAAwBC,wCAAxB;AACAhB,WAAW,CAACiB,YAAZ,GAA2BA,oCAA3B;IACMd,qBAAqB,GAAGe,kBAAQ,CAAClB,WAAD;AACtCG,qBAAqB,CAACY,SAAtB,GAAkCC,wCAAlC;;;;;"}
|
|
@@ -6,19 +6,16 @@ var parts_chatSidebar_SideBarChat = require('./SideBarChat.js');
|
|
|
6
6
|
require('@babel/runtime/helpers/extends');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-desc');
|
|
9
|
-
require('@elliemae/ds-icons
|
|
10
|
-
require('@elliemae/ds-icons/MenuCollapse');
|
|
9
|
+
require('@elliemae/ds-icons');
|
|
11
10
|
require('./styled.js');
|
|
12
11
|
require('styled-components');
|
|
13
12
|
require('@elliemae/ds-grid');
|
|
14
13
|
require('../../styled.js');
|
|
15
14
|
require('../tile-button/TileButton.js');
|
|
16
15
|
require('@elliemae/ds-tooltip');
|
|
17
|
-
require('@elliemae/ds-icons/CloseXsmall');
|
|
18
16
|
require('../tile-button/styled.js');
|
|
19
17
|
require('../tile-button/props.js');
|
|
20
18
|
require('lodash');
|
|
21
|
-
require('@elliemae/ds-icons/Comments');
|
|
22
19
|
require('../tile-button/config/useValidateProps.js');
|
|
23
20
|
require('@elliemae/ds-props-helpers');
|
|
24
21
|
require('../sidebar-button/SidebarButton.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
6
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
7
7
|
var parts_floatingButton_styled = require('./styled.js');
|
|
8
8
|
var parts_floatingButton_props = require('./props.js');
|
|
9
9
|
require('styled-components');
|
|
@@ -13,14 +13,13 @@ require('lodash');
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
14
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
|
-
var Comments__default = /*#__PURE__*/_interopDefaultLegacy(Comments);
|
|
17
16
|
|
|
18
17
|
var FloatingButton = function FloatingButton(_ref) {
|
|
19
18
|
var onClick = _ref.onClick;
|
|
20
19
|
return /*#__PURE__*/React__default['default'].createElement(parts_floatingButton_styled.StyledFloatingButton, {
|
|
21
20
|
"data-testid": "chat-floating-button",
|
|
22
21
|
onClick: onClick
|
|
23
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
22
|
+
}, /*#__PURE__*/React__default['default'].createElement(dsIcons.Comments, {
|
|
24
23
|
size: "l"
|
|
25
24
|
}));
|
|
26
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingButton.js","sources":["../../../../src/parts/floating-button/FloatingButton.tsx"],"sourcesContent":["import React from 'react';\nimport Comments from '@elliemae/ds-icons
|
|
1
|
+
{"version":3,"file":"FloatingButton.js","sources":["../../../../src/parts/floating-button/FloatingButton.tsx"],"sourcesContent":["import React from 'react';\nimport { Comments } from '@elliemae/ds-icons';\nimport { StyledFloatingButton } from './styled';\nimport { defaultFloatingButton, propsFloatingButton, FloatingButtonProps } from './props';\n\nexport const FloatingButton = ({ onClick }: FloatingButtonProps): JSX.Element => (\n <StyledFloatingButton data-testid=\"chat-floating-button\" onClick={onClick}>\n <Comments size=\"l\" />\n </StyledFloatingButton>\n);\n\nFloatingButton.propTypes = propsFloatingButton;\nFloatingButton.defaultProps = defaultFloatingButton;\n"],"names":["FloatingButton","onClick","React","StyledFloatingButton","Comments","propTypes","propsFloatingButton","defaultProps","defaultFloatingButton"],"mappings":";;;;;;;;;;;;;;;;IAKaA,cAAc,GAAG,SAAjBA,cAAiB;AAAA,MAAGC,OAAH,QAAGA,OAAH;AAAA,sBAC5BC,wCAACC,gDAAD;AAAsB,mBAAY,sBAAlC;AAAyD,IAAA,OAAO,EAAEF;AAAlE,kBACEC,wCAACE,gBAAD;AAAU,IAAA,IAAI,EAAC;AAAf,IADF,CAD4B;AAAA;AAM9BJ,cAAc,CAACK,SAAf,GAA2BC,8CAA3B;AACAN,cAAc,CAACO,YAAf,GAA8BC,gDAA9B;;;;"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var parts_floatingButton_FloatingButton = require('./FloatingButton.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('@elliemae/ds-icons
|
|
7
|
+
require('@elliemae/ds-icons');
|
|
8
8
|
require('./styled.js');
|
|
9
9
|
require('styled-components');
|
|
10
10
|
require('./props.js');
|
|
@@ -12,12 +12,12 @@ require('../../styled.js');
|
|
|
12
12
|
require('@babel/runtime/helpers/extends');
|
|
13
13
|
require('lodash');
|
|
14
14
|
require('react-desc');
|
|
15
|
-
require('@elliemae/ds-
|
|
15
|
+
require('@elliemae/ds-indeterminate-progress-indicator');
|
|
16
16
|
require('@elliemae/ds-banner');
|
|
17
17
|
require('../chat-composer/ChatContainerComposer.js');
|
|
18
18
|
require('@babel/runtime/helpers/defineProperty');
|
|
19
19
|
require('@babel/runtime/helpers/slicedToArray');
|
|
20
|
-
require('@elliemae/ds-icons
|
|
20
|
+
require('@elliemae/ds-icons');
|
|
21
21
|
require('../chat-composer/styled.js');
|
|
22
22
|
require('@elliemae/ds-button');
|
|
23
23
|
require('../chat-composer/config/useValidateProps.js');
|
|
@@ -25,9 +25,7 @@ require('@elliemae/ds-props-helpers');
|
|
|
25
25
|
require('../chat-composer/props.js');
|
|
26
26
|
require('../chat-container-messages-list/ChatContainerMessagesList.js');
|
|
27
27
|
require('react-virtual');
|
|
28
|
-
require('@elliemae/ds-basic/Button');
|
|
29
28
|
require('../bubble/ChatBubble.js');
|
|
30
|
-
require('@elliemae/ds-icons/WarningCircleFill');
|
|
31
29
|
require('../bubble/styled.js');
|
|
32
30
|
require('../bubble/props.js');
|
|
33
31
|
require('prop-types');
|
|
@@ -47,15 +45,11 @@ require('../chat-container-messages-list/config/useValidateProps.js');
|
|
|
47
45
|
require('../chat-container/props.js');
|
|
48
46
|
require('../chat-container/styled.js');
|
|
49
47
|
require('../chat-container/config/useValidateProps.js');
|
|
50
|
-
require('@elliemae/ds-icons/MenuExpand');
|
|
51
|
-
require('@elliemae/ds-icons/MenuCollapse');
|
|
52
48
|
require('../chat-sidebar/styled.js');
|
|
53
49
|
require('../tile-button/TileButton.js');
|
|
54
50
|
require('@elliemae/ds-tooltip');
|
|
55
|
-
require('@elliemae/ds-icons/CloseXsmall');
|
|
56
51
|
require('../tile-button/styled.js');
|
|
57
52
|
require('../tile-button/props.js');
|
|
58
|
-
require('@elliemae/ds-icons/Comments');
|
|
59
53
|
require('../tile-button/config/useValidateProps.js');
|
|
60
54
|
require('../sidebar-button/SidebarButton.js');
|
|
61
55
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfluencerContainer.js","sources":["../../../../src/parts/grid-influencer/InfluencerContainer.tsx"],"sourcesContent":["/* eslint-disable react/prop-types */\nimport React from 'react';\nimport { StyledChatContainer } from './styled';\nimport { ChatContainer } from '../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"],"names":["InfluencerContainer","props","React","useMemo","floating","StyledChatContainer","expanded","expandedWidth","SideBarChat","ChatContainer"],"mappings":"
|
|
1
|
+
{"version":3,"file":"InfluencerContainer.js","sources":["../../../../src/parts/grid-influencer/InfluencerContainer.tsx"],"sourcesContent":["/* eslint-disable react/prop-types */\nimport React from 'react';\nimport { StyledChatContainer } from './styled';\nimport { ChatContainer } from '../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"],"names":["InfluencerContainer","props","React","useMemo","floating","StyledChatContainer","expanded","expandedWidth","SideBarChat","ChatContainer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;IAMaA,mBAA6C,GAAG,SAAhDA,mBAAgD,CAACC,KAAD;AAAA,SAC3DC,yBAAK,CAACC,OAAN,CACE;AAAA,WACEF,KAAK,CAACG,QAAN,GAAiB,IAAjB,gBACEF,wCAACG,+CAAD;AACE,MAAA,IAAI,EAAE,CAAC,MAAD,EAASJ,KAAK,CAACK,QAAN,GAAiB,CAAjB,GAAqB,KAA9B,CADR;AAEE,MAAA,QAAQ,EAAEL,KAAK,CAACK,QAFlB;AAGE,MAAA,aAAa,EAAEL,KAAK,CAACM;AAHvB,oBAKEL,wCAACM,yCAAD,OALF,EAMGP,KAAK,CAACK,QAAN,gBAAiBJ,wCAACO,+CAAD,OAAjB,gBAAqCP,oDANxC,CAFJ;AAAA,GADF,EAYE,CAACD,KAAK,CAACG,QAAP,EAAiBH,KAAK,CAACK,QAAvB,EAAiCL,KAAK,CAACM,aAAvC,CAZF,CAD2D;AAAA;;;;"}
|
|
@@ -13,7 +13,7 @@ require('../../styled.js');
|
|
|
13
13
|
require('prop-types');
|
|
14
14
|
require('react-desc');
|
|
15
15
|
require('lodash');
|
|
16
|
-
require('@elliemae/ds-icons
|
|
16
|
+
require('@elliemae/ds-icons');
|
|
17
17
|
|
|
18
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
19
|
|
|
@@ -5,15 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var propsTypes = require('prop-types');
|
|
6
6
|
var reactDesc = require('react-desc');
|
|
7
7
|
var lodash = require('lodash');
|
|
8
|
-
var
|
|
8
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
12
|
var propsTypes__default = /*#__PURE__*/_interopDefaultLegacy(propsTypes);
|
|
13
|
-
var Comments__default = /*#__PURE__*/_interopDefaultLegacy(Comments);
|
|
14
13
|
|
|
15
14
|
var defaultSidebarButton = {
|
|
16
|
-
Icon:
|
|
15
|
+
Icon: dsIcons.Comments,
|
|
17
16
|
dsId: undefined,
|
|
18
17
|
label: '',
|
|
19
18
|
onClick: lodash.noop,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sources":["../../../../src/parts/sidebar-button/props.ts"],"sourcesContent":["import React from 'react';\nimport propsTypes from 'prop-types';\nimport { PropTypes } from 'react-desc';\nimport { noop } from 'lodash';\nimport Comments from '@elliemae/ds-icons
|
|
1
|
+
{"version":3,"file":"props.js","sources":["../../../../src/parts/sidebar-button/props.ts"],"sourcesContent":["import React from 'react';\nimport propsTypes from 'prop-types';\nimport { PropTypes } from 'react-desc';\nimport { noop } from 'lodash';\nimport { Comments } from '@elliemae/ds-icons';\n\nexport interface SidebarButtonProps {\n Icon: React.FC<{ size: string }>;\n dsId: string | number;\n label: string;\n onClick?: (dsId: string | number) => void;\n title: string;\n}\n\nexport const defaultSidebarButton: SidebarButtonProps = {\n Icon: Comments,\n dsId: undefined,\n label: '',\n onClick: noop,\n title: '',\n};\n\nexport const propsSidebarButton = {\n Icon: PropTypes.element.description('Icon component').defaultValue(defaultSidebarButton.Icon),\n dsId: PropTypes.oneOfType([propsTypes.number, propsTypes.string])\n .description('Unique id for the button')\n .defaultValue(defaultSidebarButton.dsId),\n label: PropTypes.string.description('It will display under the icon').defaultValue(defaultSidebarButton.label),\n title: PropTypes.string.description('Tooltip').defaultValue(defaultSidebarButton.title),\n onClick: PropTypes.func\n .description('The function to call when the is clicked')\n .defaultValue(defaultSidebarButton.onClick),\n};\n"],"names":["defaultSidebarButton","Icon","Comments","dsId","undefined","label","onClick","noop","title","propsSidebarButton","PropTypes","element","description","defaultValue","oneOfType","propsTypes","number","string","func"],"mappings":";;;;;;;;;;;;;IAcaA,oBAAwC,GAAG;AACtDC,EAAAA,IAAI,EAAEC,gBADgD;AAEtDC,EAAAA,IAAI,EAAEC,SAFgD;AAGtDC,EAAAA,KAAK,EAAE,EAH+C;AAItDC,EAAAA,OAAO,EAAEC,WAJ6C;AAKtDC,EAAAA,KAAK,EAAE;AAL+C;IAQ3CC,kBAAkB,GAAG;AAChCR,EAAAA,IAAI,EAAES,mBAAS,CAACC,OAAV,CAAkBC,WAAlB,CAA8B,gBAA9B,EAAgDC,YAAhD,CAA6Db,oBAAoB,CAACC,IAAlF,CAD0B;AAEhCE,EAAAA,IAAI,EAAEO,mBAAS,CAACI,SAAV,CAAoB,CAACC,8BAAU,CAACC,MAAZ,EAAoBD,8BAAU,CAACE,MAA/B,CAApB,EACHL,WADG,CACS,0BADT,EAEHC,YAFG,CAEUb,oBAAoB,CAACG,IAF/B,CAF0B;AAKhCE,EAAAA,KAAK,EAAEK,mBAAS,CAACO,MAAV,CAAiBL,WAAjB,CAA6B,gCAA7B,EAA+DC,YAA/D,CAA4Eb,oBAAoB,CAACK,KAAjG,CALyB;AAMhCG,EAAAA,KAAK,EAAEE,mBAAS,CAACO,MAAV,CAAiBL,WAAjB,CAA6B,SAA7B,EAAwCC,YAAxC,CAAqDb,oBAAoB,CAACQ,KAA1E,CANyB;AAOhCF,EAAAA,OAAO,EAAEI,mBAAS,CAACQ,IAAV,CACNN,WADM,CACM,0CADN,EAENC,YAFM,CAEOb,oBAAoB,CAACM,OAF5B;AAPuB;;;;;"}
|
|
@@ -6,19 +6,17 @@ var React = require('react');
|
|
|
6
6
|
var reactDesc = require('react-desc');
|
|
7
7
|
var dsTooltip = require('@elliemae/ds-tooltip');
|
|
8
8
|
var dsGrid = require('@elliemae/ds-grid');
|
|
9
|
-
var
|
|
9
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
10
10
|
var parts_tileButton_styled = require('./styled.js');
|
|
11
11
|
var parts_tileButton_props = require('./props.js');
|
|
12
12
|
var parts_tileButton_config_useValidateProps = require('./config/useValidateProps.js');
|
|
13
13
|
require('styled-components');
|
|
14
14
|
require('lodash');
|
|
15
|
-
require('@elliemae/ds-icons/Comments');
|
|
16
15
|
require('@elliemae/ds-props-helpers');
|
|
17
16
|
|
|
18
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
18
|
|
|
20
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
21
|
-
var CloseXsmall__default = /*#__PURE__*/_interopDefaultLegacy(CloseXsmall);
|
|
22
20
|
|
|
23
21
|
var TileButton = function TileButton(props) {
|
|
24
22
|
parts_tileButton_config_useValidateProps.useValidateProps(props, TileButtonWithSchema.toJSON());
|
|
@@ -84,7 +82,7 @@ var TileButton = function TileButton(props) {
|
|
|
84
82
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, MainContent), /*#__PURE__*/React__default['default'].createElement(parts_tileButton_styled.StyledWrapperLeftBorder, null), showClose && !disabled ? /*#__PURE__*/React__default['default'].createElement(parts_tileButton_styled.CloseButton, {
|
|
85
83
|
onClick: onClose,
|
|
86
84
|
value: dsId
|
|
87
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
85
|
+
}, /*#__PURE__*/React__default['default'].createElement(dsIcons.CloseXsmall, null)) : null));
|
|
88
86
|
}, [MainContent, ariaLabel, badgeColor, badgePosition, disabled, dsId, handleClick, isHeader, onBlur, onClose, onFocus, selected, showClose]);
|
|
89
87
|
return title && !disableTooltip ? /*#__PURE__*/React__default['default'].createElement(dsTooltip.DSTooltipV3, {
|
|
90
88
|
id: "ds-chat-tile-tooltip-button-".concat(dsId),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileButton.js","sources":["../../../../src/parts/tile-button/TileButton.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport { DSTooltipV3 } from '@elliemae/ds-tooltip';\nimport { Grid } from '@elliemae/ds-grid';\nimport CloseXsmall from '@elliemae/ds-icons
|
|
1
|
+
{"version":3,"file":"TileButton.js","sources":["../../../../src/parts/tile-button/TileButton.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport { DSTooltipV3 } from '@elliemae/ds-tooltip';\nimport { Grid } from '@elliemae/ds-grid';\nimport { CloseXsmall } from '@elliemae/ds-icons';\nimport {\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';\nimport { useValidateProps } from './config/useValidateProps';\n\nconst TileButton = (props: TileButtonProps): JSX.Element => {\n useValidateProps(props, TileButtonWithSchema.toJSON());\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 } = props;\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 ? <StyledStatusBadge badgeColor={badgeColor} badgePosition={badgePosition} /> : 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, 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 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 >\n <StyledWrapper alignItems=\"center\" justifyContent=\"center\">\n <span>{MainContent}</span>\n <StyledWrapperLeftBorder />\n {showClose && !disabled ? (\n <CloseButton onClick={onClose} value={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 ],\n );\n\n return title && !disableTooltip ? (\n <DSTooltipV3 id={`ds-chat-tile-tooltip-button-${dsId}`} text={title} startPlacementPreference={tooltipPlacement}>\n {Btn}\n </DSTooltipV3>\n ) : (\n Btn\n );\n};\n\nTileButton.propTypes = propsTileButton;\nTileButton.defaultProps = defaultTileButton;\n\nconst TileButtonWithSchema = describe(TileButton);\nTileButtonWithSchema.propTypes = propsTileButton;\n\nexport { TileButton, TileButtonWithSchema };\n"],"names":["TileButton","props","useValidateProps","TileButtonWithSchema","toJSON","label","title","dsId","onClick","onFocus","onBlur","Icon","showClose","onClose","badge","badgeColor","badgePosition","disabled","selected","isHeader","ariaLabel","tooltipPlacement","disableTooltip","handleClick","React","useCallback","MainContent","useMemo","StyledWrapperCentralContent","undefined","Grid","StyledTileButtonIcon","StyledStatusBadge","StyledTileButtonLabel","Btn","StyledTileButton","StyledWrapper","StyledWrapperLeftBorder","CloseButton","CloseXsmall","DSTooltipV3","propTypes","propsTileButton","defaultProps","defaultTileButton","describe"],"mappings":";;;;;;;;;;;;;;;;;;;;IAkBMA,UAAU,GAAG,SAAbA,UAAa,CAACC,KAAD,EAAyC;AAC1DC,EAAAA,yDAAgB,CAACD,KAAD,EAAQE,oBAAoB,CAACC,MAArB,EAAR,CAAhB;AAEA,MACEC,KADF,GAmBIJ,KAnBJ,CACEI,KADF;AAAA,MAEEC,KAFF,GAmBIL,KAnBJ,CAEEK,KAFF;AAAA,MAGEC,IAHF,GAmBIN,KAnBJ,CAGEM,IAHF;AAAA,MAIEC,OAJF,GAmBIP,KAnBJ,CAIEO,OAJF;AAAA,MAKEC,OALF,GAmBIR,KAnBJ,CAKEQ,OALF;AAAA,MAMEC,MANF,GAmBIT,KAnBJ,CAMES,MANF;AAAA,MAOEC,IAPF,GAmBIV,KAnBJ,CAOEU,IAPF;AAAA,MAQEC,SARF,GAmBIX,KAnBJ,CAQEW,SARF;AAAA,MASEC,OATF,GAmBIZ,KAnBJ,CASEY,OATF;AAAA,MAUEC,KAVF,GAmBIb,KAnBJ,CAUEa,KAVF;AAAA,MAWEC,UAXF,GAmBId,KAnBJ,CAWEc,UAXF;AAAA,MAYEC,aAZF,GAmBIf,KAnBJ,CAYEe,aAZF;AAAA,MAaEC,QA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AA9D;AAAqE,IAAA,wBAAwB,EAAEe;AAA/F,KACGa,GADH,CADK,GAKLA,GALF;AAOD;;AAEDlC,UAAU,CAACyC,SAAX,GAAuBC,sCAAvB;AACA1C,UAAU,CAAC2C,YAAX,GAA0BC,wCAA1B;IAEMzC,oBAAoB,GAAG0C,kBAAQ,CAAC7C,UAAD;AACrCG,oBAAoB,CAACsC,SAArB,GAAiCC,sCAAjC;;;;;"}
|
|
@@ -7,12 +7,11 @@ require('react');
|
|
|
7
7
|
require('react-desc');
|
|
8
8
|
require('@elliemae/ds-tooltip');
|
|
9
9
|
require('@elliemae/ds-grid');
|
|
10
|
-
require('@elliemae/ds-icons
|
|
10
|
+
require('@elliemae/ds-icons');
|
|
11
11
|
require('./styled.js');
|
|
12
12
|
require('styled-components');
|
|
13
13
|
require('./props.js');
|
|
14
14
|
require('lodash');
|
|
15
|
-
require('@elliemae/ds-icons/Comments');
|
|
16
15
|
require('./config/useValidateProps.js');
|
|
17
16
|
require('@elliemae/ds-props-helpers');
|
|
18
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,14 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var reactDesc = require('react-desc');
|
|
6
6
|
var lodash = require('lodash');
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
-
|
|
11
|
-
var Comments__default = /*#__PURE__*/_interopDefaultLegacy(Comments);
|
|
7
|
+
var dsIcons = require('@elliemae/ds-icons');
|
|
12
8
|
|
|
13
9
|
var defaultTileButton = {
|
|
14
|
-
Icon:
|
|
10
|
+
Icon: dsIcons.Comments,
|
|
15
11
|
dsId: undefined,
|
|
16
12
|
label: '',
|
|
17
13
|
onClick: lodash.noop,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sources":["../../../../src/parts/tile-button/props.ts"],"sourcesContent":["import React from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"props.js","sources":["../../../../src/parts/tile-button/props.ts"],"sourcesContent":["import React from 'react';\nimport { PropTypes } from 'react-desc';\nimport { noop } from 'lodash';\nimport { Comments } from '@elliemae/ds-icons';\n\nexport interface TileButtonProps {\n Icon: React.FC<{ size: string }>;\n dsId: string | number;\n label: string;\n onClick?: (dsId: string | number, label: string) => void;\n onBlur?: (e) => void;\n onFocus?: (e) => void;\n title: string;\n showClose: boolean;\n onClose?: (dsId: string | number) => void;\n badge: boolean;\n badgeColor: 'blue' | 'green';\n badgePosition: 'left' | 'right';\n disabled: boolean;\n selected: boolean;\n isHeader: boolean;\n ariaLabel: string;\n tooltipPlacement:\n | 'top-start'\n | 'top'\n | 'top-end'\n | 'right-start'\n | 'right'\n | 'right-end'\n | 'bottom-end'\n | 'bottom'\n | 'bottom-start'\n | 'left-end'\n | 'left'\n | 'left-start';\n disableTooltip: boolean;\n}\n\nexport const defaultTileButton: TileButtonProps = {\n Icon: Comments,\n dsId: undefined,\n label: '',\n onClick: noop,\n onBlur: noop,\n onFocus: noop,\n title: '',\n onClose: noop,\n showClose: false,\n badge: false,\n badgeColor: 'blue',\n badgePosition: 'left',\n disabled: false,\n selected: false,\n isHeader: false,\n ariaLabel: 'Tile button',\n tooltipPlacement: 'right',\n disableTooltip: false,\n};\n\nexport const propsTileButton = {\n Icon: PropTypes.func.description('Icon component').defaultValue(defaultTileButton.Icon),\n dsId: PropTypes.oneOf(['number', 'string'])\n .description('Unique id for the button')\n .defaultValue(defaultTileButton.dsId),\n label: PropTypes.string.description('It will display under the icon').defaultValue(defaultTileButton.label),\n title: PropTypes.string.description('Tooltip').defaultValue(defaultTileButton.title),\n onClick: PropTypes.func.description('The function to call when is clicked').defaultValue(defaultTileButton.onClick),\n onFocus: PropTypes.func.description('The function to call when is focused').defaultValue(defaultTileButton.onFocus),\n onBlur: PropTypes.func.description('The function to call when is on blur').defaultValue(defaultTileButton.onBlur),\n onClose: PropTypes.func\n .description('The function to call when the X is Clicked')\n .defaultValue(defaultTileButton.onClose),\n showClose: PropTypes.bool.description('It will display the X').defaultValue(defaultTileButton.showClose),\n badge: PropTypes.bool.description('It will display the badge').defaultValue(defaultTileButton.badge),\n badgeColor: PropTypes.oneOf(['blue', 'green'])\n .description('Color badge: blue or green')\n .defaultValue(defaultTileButton.badgeColor),\n badgePosition: PropTypes.oneOf(['left', 'right'])\n .description('Color badge: blue or green')\n .defaultValue(defaultTileButton.badgePosition),\n disabled: PropTypes.bool.description('It will disabled the button').defaultValue(defaultTileButton.disabled),\n selected: PropTypes.bool.description('Indicate that the button is selected').defaultValue(defaultTileButton.disabled),\n isHeader: PropTypes.bool.description(\"It won't render the label\").defaultValue(defaultTileButton.disabled),\n ariaLabel: PropTypes.string.description('aria-label attribute').defaultValue(defaultTileButton.ariaLabel),\n tooltipPlacement: PropTypes.oneOf([\n 'top-start',\n 'top',\n 'top-end',\n 'right-start',\n 'right',\n 'right-end',\n 'bottom-end',\n 'bottom',\n 'bottom-start',\n 'left-end',\n 'left',\n 'left-start',\n ])\n .description('start placement preferences, as per popperjs placement option')\n .defaultValue(\"'right'\"),\n disableTooltip: PropTypes.bool.description('Disable tooltip option').defaultValue(defaultTileButton.disableTooltip),\n};\n"],"names":["defaultTileButton","Icon","Comments","dsId","undefined","label","onClick","noop","onBlur","onFocus","title","onClose","showClose","badge","badgeColor","badgePosition","disabled","selected","isHeader","ariaLabel","tooltipPlacement","disableTooltip","propsTileButton","PropTypes","func","description","defaultValue","oneOf","string","bool"],"mappings":";;;;;;;;IAsCaA,iBAAkC,GAAG;AAChDC,EAAAA,IAAI,EAAEC,gBAD0C;AAEhDC,EAAAA,IAAI,EAAEC,SAF0C;AAGhDC,EAAAA,KAAK,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AAiB,CAACgB,QAAlG,CAtBmB;AAuB7BE,EAAAA,QAAQ,EAAEK,mBAAS,CAACM,IAAV,CAAeJ,WAAf,CAA2B,2BAA3B,EAAwDC,YAAxD,CAAqE1B,iBAAiB,CAACgB,QAAvF,CAvBmB;AAwB7BG,EAAAA,SAAS,EAAEI,mBAAS,CAACK,MAAV,CAAiBH,WAAjB,CAA6B,sBAA7B,EAAqDC,YAArD,CAAkE1B,iBAAiB,CAACmB,SAApF,CAxBkB;AAyB7BC,EAAAA,gBAAgB,EAAEG,mBAAS,CAACI,KAAV,CAAgB,CAChC,WADgC,EAEhC,KAFgC,EAGhC,SAHgC,EAIhC,aAJgC,EAKhC,OALgC,EAMhC,WANgC,EAOhC,YAPgC,EAQhC,QARgC,EAShC,cATgC,EAUhC,UAVgC,EAWhC,MAXgC,EAYhC,YAZgC,CAAhB,EAcfF,WAde,CAcH,+DAdG,EAefC,YAfe,CAeF,SAfE,CAzBW;AAyC7BL,EAAAA,cAAc,EAAEE,mBAAS,CAACM,IAAV,CAAeJ,WAAf,CAA2B,wBAA3B,EAAqDC,YAArD,CAAkE1B,iBAAiB,CAACqB,cAApF;AAzCa;;;;;"}
|
package/esm/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export { SystemMessage, SystemMessageWithSchema } from './parts/system-message/S
|
|
|
14
14
|
export { ChatCard, ChatCardWithSchema } from './parts/chat-card/ChatCard.js';
|
|
15
15
|
import 'react';
|
|
16
16
|
import 'react-desc';
|
|
17
|
-
import '@elliemae/ds-icons
|
|
17
|
+
import '@elliemae/ds-icons';
|
|
18
18
|
import './parts/bubble/styled.js';
|
|
19
19
|
import 'styled-components';
|
|
20
20
|
import '@elliemae/ds-grid';
|
|
@@ -23,20 +23,18 @@ import 'lodash';
|
|
|
23
23
|
import './parts/bubble/config/useValidateProps.js';
|
|
24
24
|
import '@elliemae/ds-props-helpers';
|
|
25
25
|
import './parts/bubble/ChatBubbleArrow.js';
|
|
26
|
-
import '@elliemae/ds-icons/Comments';
|
|
27
26
|
import './parts/floating-button/styled.js';
|
|
28
27
|
import './parts/floating-button/props.js';
|
|
29
28
|
import './styled.js';
|
|
30
29
|
import '@elliemae/ds-truncated-tooltip-text';
|
|
31
30
|
import './parts/chat-container-header/styled.js';
|
|
32
|
-
import '@elliemae/ds-icons/Communications';
|
|
33
31
|
import './parts/chat-empty-state/props.js';
|
|
34
32
|
import './parts/chat-empty-state/styled.js';
|
|
35
33
|
import './parts/chat-empty-state/config/useValidateProps.js';
|
|
36
34
|
import '@babel/runtime/helpers/esm/extends';
|
|
37
35
|
import '@babel/runtime/helpers/esm/defineProperty';
|
|
38
36
|
import 'react-virtual';
|
|
39
|
-
import '@elliemae/ds-
|
|
37
|
+
import '@elliemae/ds-button';
|
|
40
38
|
import './parts/chat-container-messages-list/styled.js';
|
|
41
39
|
import './parts/chat-container-messages-list/props.js';
|
|
42
40
|
import './parts/chat-container-messages-list/config/useValidateProps.js';
|
|
@@ -47,13 +45,9 @@ import './parts/system-message/style.js';
|
|
|
47
45
|
import './parts/system-message/props.js';
|
|
48
46
|
import './parts/system-message/config/useValidateProps.js';
|
|
49
47
|
import '@babel/runtime/helpers/esm/slicedToArray';
|
|
50
|
-
import '@elliemae/ds-icons/PaperAirplane';
|
|
51
48
|
import './parts/chat-composer/styled.js';
|
|
52
|
-
import '@elliemae/ds-button';
|
|
53
49
|
import './parts/chat-composer/config/useValidateProps.js';
|
|
54
50
|
import './parts/chat-composer/props.js';
|
|
55
|
-
import '@elliemae/ds-icons/MenuExpand';
|
|
56
|
-
import '@elliemae/ds-icons/MenuCollapse';
|
|
57
51
|
import './parts/chat-sidebar/styled.js';
|
|
58
52
|
import './parts/sidebar-button/SidebarButton.js';
|
|
59
53
|
import '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
@@ -62,11 +56,10 @@ import './parts/sidebar-button/props.js';
|
|
|
62
56
|
import './parts/chat-sidebar/props.js';
|
|
63
57
|
import './parts/chat-sidebar/config/useValidateProps.js';
|
|
64
58
|
import '@elliemae/ds-tooltip';
|
|
65
|
-
import '@elliemae/ds-icons/CloseXsmall';
|
|
66
59
|
import './parts/tile-button/styled.js';
|
|
67
60
|
import './parts/tile-button/props.js';
|
|
68
61
|
import './parts/tile-button/config/useValidateProps.js';
|
|
69
|
-
import '@elliemae/ds-
|
|
62
|
+
import '@elliemae/ds-indeterminate-progress-indicator';
|
|
70
63
|
import '@elliemae/ds-banner';
|
|
71
64
|
import './parts/chat-container/props.js';
|
|
72
65
|
import './parts/chat-container/styled.js';
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { describe } from 'react-desc';
|
|
3
|
-
import
|
|
3
|
+
import { WarningCircleFill } from '@elliemae/ds-icons';
|
|
4
4
|
import { StyledWrapper, StyledColoredBubble, StyledTitleBubble, StyledTitleLeftBubble, StyledTitleRightBubble, StyleBodyWrapper, StyleErrorMessage, StyleHelpMessage } from './styled.js';
|
|
5
5
|
import { propsBubbles } from './props.js';
|
|
6
6
|
import { useValidateProps } from './config/useValidateProps.js';
|
|
@@ -53,7 +53,7 @@ var ChatBubble = function ChatBubble(props) {
|
|
|
53
53
|
p: "xxs",
|
|
54
54
|
gutter: "xxs",
|
|
55
55
|
cols: [1, 'auto']
|
|
56
|
-
}, /*#__PURE__*/React.createElement("span", null, errorMessage), /*#__PURE__*/React.createElement(
|
|
56
|
+
}, /*#__PURE__*/React.createElement("span", null, errorMessage), /*#__PURE__*/React.createElement(WarningCircleFill, null)) : null, helpMessage ? /*#__PURE__*/React.createElement(StyleHelpMessage, {
|
|
57
57
|
"data-testid": "chat-bubble-help-message-".concat(dsId),
|
|
58
58
|
p: "xxs",
|
|
59
59
|
gutter: "xxs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatBubble.js","sources":["../../../../src/parts/bubble/ChatBubble.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport
|
|
1
|
+
{"version":3,"file":"ChatBubble.js","sources":["../../../../src/parts/bubble/ChatBubble.tsx"],"sourcesContent":["import React from 'react';\nimport { describe } from 'react-desc';\nimport { WarningCircleFill } from '@elliemae/ds-icons';\nimport {\n StyledWrapper,\n StyledColoredBubble,\n StyledTitleBubble,\n StyledTitleLeftBubble,\n StyledTitleRightBubble,\n StyleBodyWrapper,\n StyleErrorMessage,\n StyleHelpMessage,\n} from './styled';\nimport { propsBubbles, BubbleProps } from './props';\nimport { useValidateProps } from './config/useValidateProps';\nimport { ChatBubbleArrow } from './ChatBubbleArrow';\n\nconst ChatBubble = (props: BubbleProps): JSX.Element => {\n useValidateProps(props, ChatBubbleWithSchema.toJSON());\n\n const { dsId, type, title, time, body, errorMessage, helpMessage } = props;\n const bodyParts = React.useMemo(() => body.split('\\n'), [body]);\n\n return (\n <StyledWrapper data-testid={`ds-chat-bubble-${dsId}`} type={type}>\n <StyledColoredBubble type={type}>\n <StyledTitleBubble cols={[1, 'auto']} gutter=\"xs\" alignItems=\"flex-end\" className=\"sr-only\">\n <StyledTitleLeftBubble alignItems=\"center\" data-testid={`chat-bubble-title-${dsId}`}>\n {title}\n </StyledTitleLeftBubble>\n <StyledTitleRightBubble alignItems=\"center\" type={type} data-testid={`chat-bubble-time-${dsId}`}>\n {time}\n </StyledTitleRightBubble>\n </StyledTitleBubble>\n <StyleBodyWrapper data-testid={`chat-bubble-body-${dsId}`}>\n {bodyParts.map((item, index) => (\n <React.Fragment key={item}>\n {item}\n {index < bodyParts.length - 1 ? <br /> : null}\n </React.Fragment>\n ))}\n </StyleBodyWrapper>\n <ChatBubbleArrow type={type} />\n </StyledColoredBubble>\n {errorMessage ? (\n <StyleErrorMessage data-testid={`chat-bubble-error-message-${dsId}`} p=\"xxs\" gutter=\"xxs\" cols={[1, 'auto']}>\n <span>{errorMessage}</span>\n <WarningCircleFill />\n </StyleErrorMessage>\n ) : null}\n {helpMessage ? (\n <StyleHelpMessage data-testid={`chat-bubble-help-message-${dsId}`} p=\"xxs\" gutter=\"xxs\" cols={[1, 'auto']}>\n <span>{helpMessage}</span>\n </StyleHelpMessage>\n ) : null}\n </StyledWrapper>\n );\n};\nChatBubble.propTypes = propsBubbles;\n\nconst ChatBubbleWithSchema = describe(ChatBubble);\nChatBubbleWithSchema.propTypes = propsBubbles;\n\nexport { ChatBubble, ChatBubbleWithSchema };\n"],"names":["ChatBubble","props","useValidateProps","ChatBubbleWithSchema","toJSON","dsId","type","title","time","body","errorMessage","helpMessage","bodyParts","React","useMemo","split","map","item","index","length","propTypes","propsBubbles","describe"],"mappings":";;;;;;;;;;;;;IAiBMA,UAAU,GAAG,SAAbA,UAAa,CAACC,KAAD,EAAqC;AACtDC,EAAAA,gBAAgB,CAACD,KAAD,EAAQE,oBAAoB,CAACC,MAArB,EAAR,CAAhB;AAEA,MAAQC,IAAR,GAAqEJ,KAArE,CAAQI,IAAR;AAAA,MAAcC,IAAd,GAAqEL,KAArE,CAAcK,IAAd;AAAA,MAAoBC,KAApB,GAAqEN,KAArE,CAAoBM,KAApB;AAAA,MAA2BC,IAA3B,GAAqEP,KAArE,CAA2BO,IAA3B;AAAA,MAAiCC,IAAjC,GAAqER,KAArE,CAAiCQ,IAAjC;AAAA,MAAuCC,YAAvC,GAAqET,KAArE,CAAuCS,YAAvC;AAAA,MAAqDC,WAArD,GAAqEV,KAArE,CAAqDU,WAArD;AACA,MAAMC,SAAS,GAAGC,KAAK,CAACC,OAAN,CAAc;AAAA,WAAML,IAAI,CAACM,KAAL,CAAW,IAAX,CAAN;AAAA,GAAd,EAAsC,CAACN,IAAD,CAAtC,CAAlB;AAEA,sBACE,oBAAC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IAAA,CAAC,EAAC,KAArE;AAA2E,IAAA,MAAM,EAAC,KAAlF;AAAwF,IAAA,IAAI,EAAE,CAAC,CAAD,EAAI,MAAJ;AAA9F,kBACE,kCAAOM,WAAP,CADF,CADU,GAIR,IA9BN,CADF;AAkCD;;AACDX,UAAU,CAACoB,SAAX,GAAuBC,YAAvB;IAEMlB,oBAAoB,GAAGmB,QAAQ,CAACtB,UAAD;AACrCG,oBAAoB,CAACiB,SAArB,GAAiCC,YAAjC;;;;"}
|
|
@@ -2,7 +2,7 @@ export { ChatBubble, ChatBubbleWithSchema } from './ChatBubble.js';
|
|
|
2
2
|
export { BUBBLE_TYPES } from './props.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react-desc';
|
|
5
|
-
import '@elliemae/ds-icons
|
|
5
|
+
import '@elliemae/ds-icons';
|
|
6
6
|
import './styled.js';
|
|
7
7
|
import 'styled-components';
|
|
8
8
|
import '@elliemae/ds-grid';
|
|
@@ -3,7 +3,7 @@ import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Grid } from '@elliemae/ds-grid';
|
|
5
5
|
import { describe } from 'react-desc';
|
|
6
|
-
import PaperAirplane from '@elliemae/ds-icons
|
|
6
|
+
import { PaperAirplane } from '@elliemae/ds-icons';
|
|
7
7
|
import { StyledChatContainerContentComposer, StyledComposerInput, StyledComposerButton, StyledCounterArea, StyledCounterErrorA11y } from './styled.js';
|
|
8
8
|
import { useValidateProps } from './config/useValidateProps.js';
|
|
9
9
|
import { composerProps, defaultComposerPros } from './props.js';
|
|
@@ -30,6 +30,7 @@ var ChatComposer = function ChatComposer(props) {
|
|
|
30
30
|
maxHeight = _props$maxHeight === void 0 ? 300 : _props$maxHeight,
|
|
31
31
|
placeholder = props.placeholder,
|
|
32
32
|
inputMaxLength = props.inputMaxLength,
|
|
33
|
+
maxLengthMessage = props.maxLengthMessage,
|
|
33
34
|
buttonDisabled = props.buttonDisabled,
|
|
34
35
|
dataTestid = props.dataTestid,
|
|
35
36
|
actionRef = props.actionRef;
|
|
@@ -58,7 +59,7 @@ var ChatComposer = function ChatComposer(props) {
|
|
|
58
59
|
onResize(newHeight);
|
|
59
60
|
setHeight(newHeight);
|
|
60
61
|
setShowScroll(((_inputSize$current3 = inputSize.current) === null || _inputSize$current3 === void 0 ? void 0 : _inputSize$current3.scrollHeight) - ((_inputSize$current4 = inputSize.current) === null || _inputSize$current4 === void 0 ? void 0 : _inputSize$current4.clientHeight) > 5);
|
|
61
|
-
}, [inputValue, internalMaxHeight]);
|
|
62
|
+
}, [inputValue, internalMaxHeight, onResize]);
|
|
62
63
|
React.useEffect(function () {
|
|
63
64
|
if (actionRef && actionRef.current) {
|
|
64
65
|
actionRef.current.focusToComposer = function () {
|
|
@@ -69,7 +70,7 @@ var ChatComposer = function ChatComposer(props) {
|
|
|
69
70
|
inputSend.current.focus();
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
|
-
}, [actionRef
|
|
73
|
+
}, [actionRef]);
|
|
73
74
|
var handleChange = React.useCallback(function (e) {
|
|
74
75
|
onChange(e.target.value);
|
|
75
76
|
}, [onChange]);
|
|
@@ -139,7 +140,7 @@ var ChatComposer = function ChatComposer(props) {
|
|
|
139
140
|
"data-testid": "composer-counter-area"
|
|
140
141
|
}, inputMaxLength && hasError ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledCounterErrorA11y, {
|
|
141
142
|
role: "alert"
|
|
142
|
-
}, "You have exceeded the character limit by "
|
|
143
|
+
}, maxLengthMessage || "You have exceeded the character limit by ".concat(inputLength - inputMaxLength)), maxLengthMessage || "Please limit to less than ".concat(inputMaxLength, " characters. ")) : '', inputMaxLength ? " ".concat(inputLength, " / ").concat(inputMaxLength) : ''), /*#__PURE__*/React.createElement(Grid, null)));
|
|
143
144
|
};
|
|
144
145
|
|
|
145
146
|
ChatComposer.propTypes = composerProps;
|