@elliemae/ds-chat 1.57.1 → 2.0.0-alpha.11
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.d.js +0 -1
- package/cjs/index.js +37 -94
- package/cjs/parts/bubble/ChatBubble.js +35 -42
- package/cjs/parts/bubble/ChatBubbleArrow.js +67 -73
- package/cjs/parts/bubble/config/useValidateProps.js +2 -3
- package/cjs/parts/bubble/index.js +5 -17
- package/cjs/parts/bubble/props.js +5 -6
- package/cjs/parts/bubble/styled.js +14 -38
- package/cjs/parts/chat-card/ChatCard.js +24 -25
- package/cjs/parts/chat-card/config/useValidateProps.js +1 -2
- package/cjs/parts/chat-card/index.js +3 -13
- package/cjs/parts/chat-card/props.js +1 -2
- package/cjs/parts/chat-card/styled.js +7 -12
- package/cjs/parts/chat-composer/ChatContainerComposer.js +65 -77
- package/cjs/parts/chat-composer/config/useValidateProps.js +1 -2
- package/cjs/parts/chat-composer/index.js +3 -17
- package/cjs/parts/chat-composer/props.js +2 -5
- package/cjs/parts/chat-composer/styled.js +10 -31
- package/cjs/parts/chat-container/ChatContainer.js +89 -106
- package/cjs/parts/chat-container/config/useValidateProps.js +1 -2
- package/cjs/parts/chat-container/index.js +3 -43
- package/cjs/parts/chat-container/props.js +6 -7
- package/cjs/parts/chat-container/styled.js +10 -32
- package/cjs/parts/chat-container-header/ChatContainerHeader.js +15 -15
- package/cjs/parts/chat-container-header/styled.js +6 -13
- package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js +114 -125
- package/cjs/parts/chat-container-messages-list/config/useValidateProps.js +1 -2
- package/cjs/parts/chat-container-messages-list/index.js +3 -32
- package/cjs/parts/chat-container-messages-list/props.js +3 -6
- package/cjs/parts/chat-container-messages-list/styled.js +12 -47
- package/cjs/parts/chat-empty-state/ChatEmptyState.js +38 -37
- package/cjs/parts/chat-empty-state/config/useValidateProps.js +1 -2
- package/cjs/parts/chat-empty-state/props.js +2 -3
- package/cjs/parts/chat-empty-state/styled.js +4 -7
- package/cjs/parts/chat-sidebar/SideBarChat.js +50 -60
- package/cjs/parts/chat-sidebar/config/useValidateProps.js +1 -2
- package/cjs/parts/chat-sidebar/index.js +3 -26
- package/cjs/parts/chat-sidebar/props.js +3 -8
- package/cjs/parts/chat-sidebar/styled.js +4 -9
- package/cjs/parts/floating-button/FloatingButton.js +17 -20
- package/cjs/parts/floating-button/index.js +2 -10
- package/cjs/parts/floating-button/props.js +2 -3
- package/cjs/parts/floating-button/styled.js +5 -18
- package/cjs/parts/floating-container/styled.js +2 -5
- package/cjs/parts/grid-influencer/InfluencerContainer.js +11 -65
- package/cjs/parts/grid-influencer/styled.js +4 -17
- package/cjs/parts/message-delimiter/MessageDelimiter.js +23 -22
- package/cjs/parts/message-delimiter/config/useValidateProps.js +1 -2
- package/cjs/parts/message-delimiter/index.js +3 -12
- package/cjs/parts/message-delimiter/props.js +2 -3
- package/cjs/parts/message-delimiter/styled.js +5 -16
- package/cjs/parts/sidebar-button/SidebarButton.js +31 -30
- package/cjs/parts/sidebar-button/index.js +0 -1
- package/cjs/parts/sidebar-button/props.js +6 -6
- package/cjs/parts/sidebar-button/styled.js +4 -11
- package/cjs/parts/system-message/SystemMessage.js +25 -24
- package/cjs/parts/system-message/config/useValidateProps.js +1 -2
- package/cjs/parts/system-message/index.js +3 -12
- package/cjs/parts/system-message/props.js +2 -3
- package/cjs/parts/system-message/style.js +9 -26
- package/cjs/parts/tile-button/TileButton.js +85 -82
- package/cjs/parts/tile-button/config/useValidateProps.js +1 -2
- package/cjs/parts/tile-button/index.js +3 -15
- package/cjs/parts/tile-button/props.js +10 -11
- package/cjs/parts/tile-button/styled.js +18 -67
- package/cjs/prop-types.js +2 -3
- package/cjs/styled.js +6 -7
- package/esm/index.d.js +0 -1
- package/esm/index.js +0 -57
- package/esm/parts/bubble/ChatBubble.js +27 -35
- package/esm/parts/bubble/ChatBubbleArrow.js +65 -71
- package/esm/parts/bubble/config/useValidateProps.js +2 -3
- package/esm/parts/bubble/index.js +0 -12
- package/esm/parts/bubble/props.js +4 -5
- package/esm/parts/bubble/styled.js +13 -37
- package/esm/parts/chat-card/ChatCard.js +18 -19
- package/esm/parts/chat-card/config/useValidateProps.js +1 -2
- package/esm/parts/chat-card/index.js +0 -10
- package/esm/parts/chat-card/props.js +1 -2
- package/esm/parts/chat-card/styled.js +7 -12
- package/esm/parts/chat-composer/ChatContainerComposer.js +56 -69
- package/esm/parts/chat-composer/config/useValidateProps.js +1 -2
- package/esm/parts/chat-composer/index.js +0 -14
- package/esm/parts/chat-composer/props.js +2 -5
- package/esm/parts/chat-composer/styled.js +9 -30
- package/esm/parts/chat-container/ChatContainer.js +79 -97
- package/esm/parts/chat-container/config/useValidateProps.js +1 -2
- package/esm/parts/chat-container/index.js +0 -40
- package/esm/parts/chat-container/props.js +2 -3
- package/esm/parts/chat-container/styled.js +6 -28
- package/esm/parts/chat-container-header/ChatContainerHeader.js +13 -14
- package/esm/parts/chat-container-header/styled.js +6 -13
- package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js +102 -113
- package/esm/parts/chat-container-messages-list/config/useValidateProps.js +1 -2
- package/esm/parts/chat-container-messages-list/index.js +0 -29
- package/esm/parts/chat-container-messages-list/props.js +3 -6
- package/esm/parts/chat-container-messages-list/styled.js +11 -46
- package/esm/parts/chat-empty-state/ChatEmptyState.js +30 -30
- package/esm/parts/chat-empty-state/config/useValidateProps.js +1 -2
- package/esm/parts/chat-empty-state/props.js +2 -3
- package/esm/parts/chat-empty-state/styled.js +4 -7
- package/esm/parts/chat-sidebar/SideBarChat.js +38 -50
- package/esm/parts/chat-sidebar/config/useValidateProps.js +1 -2
- package/esm/parts/chat-sidebar/index.js +0 -23
- package/esm/parts/chat-sidebar/props.js +3 -8
- package/esm/parts/chat-sidebar/styled.js +4 -9
- package/esm/parts/floating-button/FloatingButton.js +13 -17
- package/esm/parts/floating-button/index.js +0 -8
- package/esm/parts/floating-button/props.js +2 -3
- package/esm/parts/floating-button/styled.js +5 -18
- package/esm/parts/floating-container/styled.js +2 -5
- package/esm/parts/grid-influencer/InfluencerContainer.js +7 -62
- package/esm/parts/grid-influencer/styled.js +4 -17
- package/esm/parts/message-delimiter/MessageDelimiter.js +16 -15
- package/esm/parts/message-delimiter/config/useValidateProps.js +1 -2
- package/esm/parts/message-delimiter/index.js +0 -9
- package/esm/parts/message-delimiter/props.js +2 -3
- package/esm/parts/message-delimiter/styled.js +5 -16
- package/esm/parts/sidebar-button/SidebarButton.js +26 -26
- package/esm/parts/sidebar-button/index.js +0 -1
- package/esm/parts/sidebar-button/props.js +3 -4
- package/esm/parts/sidebar-button/styled.js +4 -11
- package/esm/parts/system-message/SystemMessage.js +18 -17
- package/esm/parts/system-message/config/useValidateProps.js +1 -2
- package/esm/parts/system-message/index.js +0 -9
- package/esm/parts/system-message/props.js +2 -3
- package/esm/parts/system-message/style.js +9 -26
- package/esm/parts/tile-button/TileButton.js +76 -76
- package/esm/parts/tile-button/config/useValidateProps.js +1 -2
- package/esm/parts/tile-button/index.js +0 -12
- package/esm/parts/tile-button/props.js +5 -10
- package/esm/parts/tile-button/styled.js +18 -67
- package/esm/prop-types.js +2 -3
- package/esm/styled.js +6 -7
- package/package.json +289 -18
- package/types/index.d.d.ts +37 -0
- package/types/index.d.ts +13 -0
- package/types/parts/bubble/ChatBubble.d.ts +17 -0
- package/types/parts/bubble/ChatBubbleArrow.d.ts +8 -0
- package/types/parts/bubble/config/useValidateProps.d.ts +2 -0
- package/types/parts/bubble/index.d.ts +2 -0
- package/types/parts/bubble/props.d.ts +43 -0
- package/types/parts/bubble/styled.d.ts +10 -0
- package/types/parts/chat-card/ChatCard.d.ts +13 -0
- package/types/parts/chat-card/config/useValidateProps.d.ts +2 -0
- package/types/parts/chat-card/index.d.ts +1 -0
- package/types/parts/chat-card/props.d.ts +13 -0
- package/types/parts/chat-card/styled.d.ts +7 -0
- package/types/parts/chat-composer/ChatContainerComposer.d.ts +22 -0
- package/types/parts/chat-composer/config/useValidateProps.d.ts +2 -0
- package/types/parts/chat-composer/index.d.ts +1 -0
- package/types/parts/chat-composer/props.d.ts +35 -0
- package/types/parts/chat-composer/styled.d.ts +64 -0
- package/types/parts/chat-container/ChatContainer.d.ts +22 -0
- package/types/parts/chat-container/config/useValidateProps.d.ts +2 -0
- package/types/parts/chat-container/index.d.ts +1 -0
- package/types/parts/chat-container/props.d.ts +39 -0
- package/types/parts/chat-container/styled.d.ts +8 -0
- package/types/parts/chat-container-header/ChatContainerHeader.d.ts +2 -0
- package/types/parts/chat-container-header/styled.d.ts +4 -0
- package/types/parts/chat-container-messages-list/ChatContainerMessagesList.d.ts +18 -0
- package/types/parts/chat-container-messages-list/config/useValidateProps.d.ts +2 -0
- package/types/parts/chat-container-messages-list/index.d.ts +1 -0
- package/types/parts/chat-container-messages-list/props.d.ts +23 -0
- package/types/parts/chat-container-messages-list/styled.d.ts +11 -0
- package/types/parts/chat-empty-state/ChatEmptyState.d.ts +12 -0
- package/types/parts/chat-empty-state/config/useValidateProps.d.ts +2 -0
- package/types/parts/chat-empty-state/props.d.ts +10 -0
- package/types/parts/chat-empty-state/styled.d.ts +4 -0
- package/types/parts/chat-sidebar/SideBarChat.d.ts +18 -0
- package/types/parts/chat-sidebar/config/useValidateProps.d.ts +2 -0
- package/types/parts/chat-sidebar/index.d.ts +1 -0
- package/types/parts/chat-sidebar/props.d.ts +22 -0
- package/types/parts/chat-sidebar/styled.d.ts +3 -0
- package/types/parts/floating-button/FloatingButton.d.ts +9 -0
- package/types/parts/floating-button/index.d.ts +1 -0
- package/types/parts/floating-button/props.d.ts +7 -0
- package/types/parts/floating-button/styled.d.ts +1 -0
- package/types/parts/floating-container/styled.d.ts +2 -0
- package/types/parts/grid-influencer/InfluencerContainer.d.ts +2 -0
- package/types/parts/grid-influencer/styled.d.ts +3 -0
- package/types/parts/message-delimiter/MessageDelimiter.d.ts +14 -0
- package/types/parts/message-delimiter/config/useValidateProps.d.ts +2 -0
- package/types/parts/message-delimiter/index.d.ts +1 -0
- package/types/parts/message-delimiter/props.d.ts +13 -0
- package/types/parts/message-delimiter/styled.d.ts +6 -0
- package/types/parts/sidebar-button/SidebarButton.d.ts +13 -0
- package/types/parts/sidebar-button/index.d.ts +0 -0
- package/types/parts/sidebar-button/props.d.ts +18 -0
- package/types/parts/sidebar-button/styled.d.ts +4 -0
- package/types/parts/system-message/SystemMessage.d.ts +13 -0
- package/types/parts/system-message/config/useValidateProps.d.ts +2 -0
- package/types/parts/system-message/index.d.ts +1 -0
- package/types/parts/system-message/props.d.ts +11 -0
- package/types/parts/system-message/style.d.ts +7 -0
- package/types/parts/tile-button/TileButton.d.ts +26 -0
- package/types/parts/tile-button/config/useValidateProps.d.ts +2 -0
- package/types/parts/tile-button/index.d.ts +1 -0
- package/types/parts/tile-button/props.d.ts +40 -0
- package/types/parts/tile-button/styled.d.ts +10 -0
- package/types/prop-types.d.ts +14 -0
- package/types/styled.d.ts +6 -0
- package/cjs/index.d.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/parts/bubble/ChatBubble.js.map +0 -1
- package/cjs/parts/bubble/ChatBubbleArrow.js.map +0 -1
- package/cjs/parts/bubble/config/useValidateProps.js.map +0 -1
- package/cjs/parts/bubble/index.js.map +0 -1
- package/cjs/parts/bubble/props.js.map +0 -1
- package/cjs/parts/bubble/styled.js.map +0 -1
- package/cjs/parts/chat-card/ChatCard.js.map +0 -1
- package/cjs/parts/chat-card/config/useValidateProps.js.map +0 -1
- package/cjs/parts/chat-card/index.js.map +0 -1
- package/cjs/parts/chat-card/props.js.map +0 -1
- package/cjs/parts/chat-card/styled.js.map +0 -1
- package/cjs/parts/chat-composer/ChatContainerComposer.js.map +0 -1
- package/cjs/parts/chat-composer/config/useValidateProps.js.map +0 -1
- package/cjs/parts/chat-composer/index.js.map +0 -1
- package/cjs/parts/chat-composer/props.js.map +0 -1
- package/cjs/parts/chat-composer/styled.js.map +0 -1
- package/cjs/parts/chat-container/ChatContainer.js.map +0 -1
- package/cjs/parts/chat-container/config/useValidateProps.js.map +0 -1
- package/cjs/parts/chat-container/index.js.map +0 -1
- package/cjs/parts/chat-container/props.js.map +0 -1
- package/cjs/parts/chat-container/styled.js.map +0 -1
- package/cjs/parts/chat-container-header/ChatContainerHeader.js.map +0 -1
- package/cjs/parts/chat-container-header/helpers.js +0 -28
- package/cjs/parts/chat-container-header/helpers.js.map +0 -1
- package/cjs/parts/chat-container-header/styled.js.map +0 -1
- package/cjs/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +0 -1
- package/cjs/parts/chat-container-messages-list/config/useValidateProps.js.map +0 -1
- package/cjs/parts/chat-container-messages-list/index.js.map +0 -1
- package/cjs/parts/chat-container-messages-list/props.js.map +0 -1
- package/cjs/parts/chat-container-messages-list/styled.js.map +0 -1
- package/cjs/parts/chat-empty-state/ChatEmptyState.js.map +0 -1
- package/cjs/parts/chat-empty-state/config/useValidateProps.js.map +0 -1
- package/cjs/parts/chat-empty-state/props.js.map +0 -1
- package/cjs/parts/chat-empty-state/styled.js.map +0 -1
- package/cjs/parts/chat-sidebar/SideBarChat.js.map +0 -1
- package/cjs/parts/chat-sidebar/config/useValidateProps.js.map +0 -1
- package/cjs/parts/chat-sidebar/index.js.map +0 -1
- package/cjs/parts/chat-sidebar/props.js.map +0 -1
- package/cjs/parts/chat-sidebar/styled.js.map +0 -1
- package/cjs/parts/floating-button/FloatingButton.js.map +0 -1
- package/cjs/parts/floating-button/index.js.map +0 -1
- package/cjs/parts/floating-button/props.js.map +0 -1
- package/cjs/parts/floating-button/styled.js.map +0 -1
- package/cjs/parts/floating-container/styled.js.map +0 -1
- package/cjs/parts/grid-influencer/InfluencerContainer.js.map +0 -1
- package/cjs/parts/grid-influencer/styled.js.map +0 -1
- package/cjs/parts/message-delimiter/MessageDelimiter.js.map +0 -1
- package/cjs/parts/message-delimiter/config/useValidateProps.js.map +0 -1
- package/cjs/parts/message-delimiter/index.js.map +0 -1
- package/cjs/parts/message-delimiter/props.js.map +0 -1
- package/cjs/parts/message-delimiter/styled.js.map +0 -1
- package/cjs/parts/sidebar-button/SidebarButton.js.map +0 -1
- package/cjs/parts/sidebar-button/index.js.map +0 -1
- package/cjs/parts/sidebar-button/props.js.map +0 -1
- package/cjs/parts/sidebar-button/styled.js.map +0 -1
- package/cjs/parts/system-message/SystemMessage.js.map +0 -1
- package/cjs/parts/system-message/config/useValidateProps.js.map +0 -1
- package/cjs/parts/system-message/index.js.map +0 -1
- package/cjs/parts/system-message/props.js.map +0 -1
- package/cjs/parts/system-message/style.js.map +0 -1
- package/cjs/parts/tile-button/TileButton.js.map +0 -1
- package/cjs/parts/tile-button/config/useValidateProps.js.map +0 -1
- package/cjs/parts/tile-button/index.js.map +0 -1
- package/cjs/parts/tile-button/props.js.map +0 -1
- package/cjs/parts/tile-button/styled.js.map +0 -1
- package/cjs/prop-types.js.map +0 -1
- package/cjs/styled.js.map +0 -1
- package/esm/index.d.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/parts/bubble/ChatBubble.js.map +0 -1
- package/esm/parts/bubble/ChatBubbleArrow.js.map +0 -1
- package/esm/parts/bubble/config/useValidateProps.js.map +0 -1
- package/esm/parts/bubble/index.js.map +0 -1
- package/esm/parts/bubble/props.js.map +0 -1
- package/esm/parts/bubble/styled.js.map +0 -1
- package/esm/parts/chat-card/ChatCard.js.map +0 -1
- package/esm/parts/chat-card/config/useValidateProps.js.map +0 -1
- package/esm/parts/chat-card/index.js.map +0 -1
- package/esm/parts/chat-card/props.js.map +0 -1
- package/esm/parts/chat-card/styled.js.map +0 -1
- package/esm/parts/chat-composer/ChatContainerComposer.js.map +0 -1
- package/esm/parts/chat-composer/config/useValidateProps.js.map +0 -1
- package/esm/parts/chat-composer/index.js.map +0 -1
- package/esm/parts/chat-composer/props.js.map +0 -1
- package/esm/parts/chat-composer/styled.js.map +0 -1
- package/esm/parts/chat-container/ChatContainer.js.map +0 -1
- package/esm/parts/chat-container/config/useValidateProps.js.map +0 -1
- package/esm/parts/chat-container/index.js.map +0 -1
- package/esm/parts/chat-container/props.js.map +0 -1
- package/esm/parts/chat-container/styled.js.map +0 -1
- package/esm/parts/chat-container-header/ChatContainerHeader.js.map +0 -1
- package/esm/parts/chat-container-header/helpers.js +0 -20
- package/esm/parts/chat-container-header/helpers.js.map +0 -1
- package/esm/parts/chat-container-header/styled.js.map +0 -1
- package/esm/parts/chat-container-messages-list/ChatContainerMessagesList.js.map +0 -1
- package/esm/parts/chat-container-messages-list/config/useValidateProps.js.map +0 -1
- package/esm/parts/chat-container-messages-list/index.js.map +0 -1
- package/esm/parts/chat-container-messages-list/props.js.map +0 -1
- package/esm/parts/chat-container-messages-list/styled.js.map +0 -1
- package/esm/parts/chat-empty-state/ChatEmptyState.js.map +0 -1
- package/esm/parts/chat-empty-state/config/useValidateProps.js.map +0 -1
- package/esm/parts/chat-empty-state/props.js.map +0 -1
- package/esm/parts/chat-empty-state/styled.js.map +0 -1
- package/esm/parts/chat-sidebar/SideBarChat.js.map +0 -1
- package/esm/parts/chat-sidebar/config/useValidateProps.js.map +0 -1
- package/esm/parts/chat-sidebar/index.js.map +0 -1
- package/esm/parts/chat-sidebar/props.js.map +0 -1
- package/esm/parts/chat-sidebar/styled.js.map +0 -1
- package/esm/parts/floating-button/FloatingButton.js.map +0 -1
- package/esm/parts/floating-button/index.js.map +0 -1
- package/esm/parts/floating-button/props.js.map +0 -1
- package/esm/parts/floating-button/styled.js.map +0 -1
- package/esm/parts/floating-container/styled.js.map +0 -1
- package/esm/parts/grid-influencer/InfluencerContainer.js.map +0 -1
- package/esm/parts/grid-influencer/styled.js.map +0 -1
- package/esm/parts/message-delimiter/MessageDelimiter.js.map +0 -1
- package/esm/parts/message-delimiter/config/useValidateProps.js.map +0 -1
- package/esm/parts/message-delimiter/index.js.map +0 -1
- package/esm/parts/message-delimiter/props.js.map +0 -1
- package/esm/parts/message-delimiter/styled.js.map +0 -1
- package/esm/parts/sidebar-button/SidebarButton.js.map +0 -1
- package/esm/parts/sidebar-button/index.js.map +0 -1
- package/esm/parts/sidebar-button/props.js.map +0 -1
- package/esm/parts/sidebar-button/styled.js.map +0 -1
- package/esm/parts/system-message/SystemMessage.js.map +0 -1
- package/esm/parts/system-message/config/useValidateProps.js.map +0 -1
- package/esm/parts/system-message/index.js.map +0 -1
- package/esm/parts/system-message/props.js.map +0 -1
- package/esm/parts/system-message/style.js.map +0 -1
- package/esm/parts/tile-button/TileButton.js.map +0 -1
- package/esm/parts/tile-button/config/useValidateProps.js.map +0 -1
- package/esm/parts/tile-button/index.js.map +0 -1
- package/esm/parts/tile-button/props.js.map +0 -1
- package/esm/parts/tile-button/styled.js.map +0 -1
- package/esm/prop-types.js.map +0 -1
- package/esm/styled.js.map +0 -1
- package/parts/bubble/ChatBubble/package.json +0 -10
- package/parts/bubble/ChatBubbleArrow/package.json +0 -10
- package/parts/bubble/config/useValidateProps/package.json +0 -10
- package/parts/bubble/package.json +0 -10
- package/parts/bubble/props/package.json +0 -10
- package/parts/bubble/styled/package.json +0 -10
- package/parts/chat-card/ChatCard/package.json +0 -10
- package/parts/chat-card/config/useValidateProps/package.json +0 -10
- package/parts/chat-card/package.json +0 -10
- package/parts/chat-card/props/package.json +0 -10
- package/parts/chat-card/styled/package.json +0 -10
- package/parts/chat-composer/ChatContainerComposer/package.json +0 -10
- package/parts/chat-composer/config/useValidateProps/package.json +0 -10
- package/parts/chat-composer/package.json +0 -10
- package/parts/chat-composer/props/package.json +0 -10
- package/parts/chat-composer/styled/package.json +0 -10
- package/parts/chat-container/ChatContainer/package.json +0 -10
- package/parts/chat-container/config/useValidateProps/package.json +0 -10
- package/parts/chat-container/package.json +0 -10
- package/parts/chat-container/props/package.json +0 -10
- package/parts/chat-container/styled/package.json +0 -10
- package/parts/chat-container-header/ChatContainerHeader/package.json +0 -10
- package/parts/chat-container-header/helpers/package.json +0 -10
- package/parts/chat-container-header/styled/package.json +0 -10
- package/parts/chat-container-messages-list/ChatContainerMessagesList/package.json +0 -10
- package/parts/chat-container-messages-list/config/useValidateProps/package.json +0 -10
- package/parts/chat-container-messages-list/package.json +0 -10
- package/parts/chat-container-messages-list/props/package.json +0 -10
- package/parts/chat-container-messages-list/styled/package.json +0 -10
- package/parts/chat-empty-state/ChatEmptyState/package.json +0 -10
- package/parts/chat-empty-state/config/useValidateProps/package.json +0 -10
- package/parts/chat-empty-state/props/package.json +0 -10
- package/parts/chat-empty-state/styled/package.json +0 -10
- package/parts/chat-sidebar/SideBarChat/package.json +0 -10
- package/parts/chat-sidebar/config/useValidateProps/package.json +0 -10
- package/parts/chat-sidebar/package.json +0 -10
- package/parts/chat-sidebar/props/package.json +0 -10
- package/parts/chat-sidebar/styled/package.json +0 -10
- package/parts/floating-button/FloatingButton/package.json +0 -10
- package/parts/floating-button/package.json +0 -10
- package/parts/floating-button/props/package.json +0 -10
- package/parts/floating-button/styled/package.json +0 -10
- package/parts/floating-container/styled/package.json +0 -10
- package/parts/grid-influencer/InfluencerContainer/package.json +0 -10
- package/parts/grid-influencer/styled/package.json +0 -10
- package/parts/message-delimiter/MessageDelimiter/package.json +0 -10
- package/parts/message-delimiter/config/useValidateProps/package.json +0 -10
- package/parts/message-delimiter/package.json +0 -10
- package/parts/message-delimiter/props/package.json +0 -10
- package/parts/message-delimiter/styled/package.json +0 -10
- package/parts/sidebar-button/SidebarButton/package.json +0 -10
- package/parts/sidebar-button/package.json +0 -10
- package/parts/sidebar-button/props/package.json +0 -10
- package/parts/sidebar-button/styled/package.json +0 -10
- package/parts/system-message/SystemMessage/package.json +0 -10
- package/parts/system-message/config/useValidateProps/package.json +0 -10
- package/parts/system-message/package.json +0 -10
- package/parts/system-message/props/package.json +0 -10
- package/parts/system-message/style/package.json +0 -10
- package/parts/tile-button/TileButton/package.json +0 -10
- package/parts/tile-button/config/useValidateProps/package.json +0 -10
- package/parts/tile-button/package.json +0 -10
- package/parts/tile-button/props/package.json +0 -10
- package/parts/tile-button/styled/package.json +0 -10
- package/prop-types/package.json +0 -10
- package/styled/package.json +0 -10
|
@@ -1,65 +1,49 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { noop } from 'lodash';
|
|
4
5
|
import { describe } from 'react-desc';
|
|
5
|
-
import DSIndeterminateProgressIndicator from '@elliemae/ds-
|
|
6
|
+
import DSIndeterminateProgressIndicator from '@elliemae/ds-basic/IndeterminateProgressIndicator';
|
|
6
7
|
import DSBanner, { BANNER_TYPES } from '@elliemae/ds-banner';
|
|
7
8
|
import { ChatComposer } from '../chat-composer/ChatContainerComposer.js';
|
|
8
9
|
import { ChatContainerMessagesList } from '../chat-container-messages-list/ChatContainerMessagesList.js';
|
|
9
10
|
import { containerProps, defaultProps } from './props.js';
|
|
10
11
|
import { StyledIndicatorContainer, StyledChatContainerContent, MobileStyledChatContainerContent } from './styled.js';
|
|
11
12
|
import { useValidateProps } from './config/useValidateProps.js';
|
|
12
|
-
import '
|
|
13
|
-
import '@babel/runtime/helpers/esm/slicedToArray';
|
|
14
|
-
import '@elliemae/ds-grid';
|
|
15
|
-
import '@elliemae/ds-icons';
|
|
16
|
-
import '../chat-composer/styled.js';
|
|
17
|
-
import 'styled-components';
|
|
18
|
-
import '@elliemae/ds-button';
|
|
19
|
-
import '../chat-composer/config/useValidateProps.js';
|
|
20
|
-
import '@elliemae/ds-props-helpers';
|
|
21
|
-
import '../chat-composer/props.js';
|
|
22
|
-
import 'react-virtual';
|
|
23
|
-
import '../bubble/ChatBubble.js';
|
|
24
|
-
import '../bubble/styled.js';
|
|
25
|
-
import '../bubble/props.js';
|
|
26
|
-
import 'prop-types';
|
|
27
|
-
import '../bubble/config/useValidateProps.js';
|
|
28
|
-
import '../bubble/ChatBubbleArrow.js';
|
|
29
|
-
import '../message-delimiter/MessageDelimiter.js';
|
|
30
|
-
import '../message-delimiter/styled.js';
|
|
31
|
-
import '../message-delimiter/props.js';
|
|
32
|
-
import '../message-delimiter/config/useValidateProps.js';
|
|
33
|
-
import '../system-message/SystemMessage.js';
|
|
34
|
-
import '../system-message/style.js';
|
|
35
|
-
import '../system-message/props.js';
|
|
36
|
-
import '../system-message/config/useValidateProps.js';
|
|
37
|
-
import '../chat-container-messages-list/styled.js';
|
|
38
|
-
import '../chat-container-messages-list/props.js';
|
|
39
|
-
import '../chat-container-messages-list/config/useValidateProps.js';
|
|
13
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
40
14
|
|
|
41
|
-
var
|
|
15
|
+
var _DSIndeterminateProgr, _StyledIndicatorConta;
|
|
16
|
+
|
|
17
|
+
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; }
|
|
18
|
+
|
|
19
|
+
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(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; }
|
|
20
|
+
|
|
21
|
+
const ChatContainer = props => {
|
|
42
22
|
var _containerRef$current;
|
|
43
23
|
|
|
44
24
|
useValidateProps(props, ChatContainerWithSchema.toTypescript());
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
25
|
+
const {
|
|
26
|
+
sendingText,
|
|
27
|
+
sendingMessages,
|
|
28
|
+
bannerPosition,
|
|
29
|
+
bannerProps,
|
|
30
|
+
messagesListProps,
|
|
31
|
+
composerProps,
|
|
32
|
+
composerProps: {
|
|
33
|
+
onResize: onComposerResize
|
|
34
|
+
},
|
|
35
|
+
actionRef,
|
|
36
|
+
autoScroll,
|
|
37
|
+
device,
|
|
38
|
+
isLoading,
|
|
39
|
+
hasMoreItems,
|
|
40
|
+
getMoreMessages
|
|
41
|
+
} = props;
|
|
42
|
+
const containerRef = React.useRef();
|
|
43
|
+
const listRef = React.useRef({
|
|
60
44
|
scrollToIndex: noop
|
|
61
45
|
});
|
|
62
|
-
|
|
46
|
+
const onResize = React.useCallback(height => {
|
|
63
47
|
if (onComposerResize) onComposerResize(height);
|
|
64
48
|
|
|
65
49
|
if (autoScroll) {
|
|
@@ -68,62 +52,60 @@ var ChatContainer = function ChatContainer(props) {
|
|
|
68
52
|
});
|
|
69
53
|
}
|
|
70
54
|
}, [onComposerResize, messagesListProps.messages, autoScroll]);
|
|
71
|
-
|
|
72
|
-
return /*#__PURE__*/
|
|
55
|
+
const Container = device === 'desktop' ? StyledChatContainerContent : MobileStyledChatContainerContent;
|
|
56
|
+
return /*#__PURE__*/jsxs(Container, {
|
|
73
57
|
rows: ['minmax(0, 1fr)', 'auto'],
|
|
74
58
|
ref: containerRef,
|
|
75
59
|
role: "region",
|
|
76
|
-
"aria-label": "chat window"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
})
|
|
60
|
+
"aria-label": "chat window",
|
|
61
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
62
|
+
style: {
|
|
63
|
+
position: 'relative'
|
|
64
|
+
}
|
|
65
|
+
}, void 0, /*#__PURE__*/jsx(ChatContainerMessagesList, _objectSpread(_objectSpread({}, messagesListProps), {}, {
|
|
66
|
+
actionRef: actionRef || listRef,
|
|
67
|
+
isLoading: isLoading,
|
|
68
|
+
hasMoreItems: hasMoreItems,
|
|
69
|
+
getMoreMessages: getMoreMessages,
|
|
70
|
+
sendingMessages: sendingMessages,
|
|
71
|
+
sendingText: sendingText
|
|
72
|
+
})), ['top', 'bottom'].includes(isLoading) ? /*#__PURE__*/_jsx(StyledIndicatorContainer, {
|
|
73
|
+
isLoading: isLoading
|
|
74
|
+
}, void 0, _DSIndeterminateProgr || (_DSIndeterminateProgr = /*#__PURE__*/_jsx(DSIndeterminateProgressIndicator, {
|
|
75
|
+
processing: true,
|
|
76
|
+
title: "Loading"
|
|
77
|
+
}))) : null, ['top', 'bottom'].includes(bannerPosition) ? /*#__PURE__*/_jsx(StyledIndicatorContainer, {
|
|
78
|
+
isLoading: bannerPosition
|
|
79
|
+
}, void 0, /*#__PURE__*/_jsx(DSBanner, {
|
|
80
|
+
showCloseButton: true,
|
|
81
|
+
label: bannerProps.label || 'Unread messages',
|
|
82
|
+
containerProps: {
|
|
83
|
+
id: 'ds-chat-banner'
|
|
84
|
+
},
|
|
85
|
+
actionLink: {
|
|
86
|
+
label: bannerProps.viewLabel || 'View',
|
|
87
|
+
onClick: bannerProps.onView
|
|
88
|
+
},
|
|
89
|
+
onClose: bannerProps.onClose,
|
|
90
|
+
isOpen: true,
|
|
91
|
+
type: BANNER_TYPES.INFO
|
|
92
|
+
})) : null, sendingMessages && sendingMessages.length > 0 ? _StyledIndicatorConta || (_StyledIndicatorConta = /*#__PURE__*/_jsx(StyledIndicatorContainer, {
|
|
93
|
+
isLoading: "bottom",
|
|
94
|
+
linear: true
|
|
95
|
+
}, void 0, /*#__PURE__*/_jsx(DSIndeterminateProgressIndicator, {
|
|
96
|
+
processing: true,
|
|
97
|
+
title: "Loading",
|
|
98
|
+
lineOnly: true
|
|
99
|
+
}))) : null), /*#__PURE__*/jsx(ChatComposer, _objectSpread(_objectSpread({}, composerProps), {}, {
|
|
100
|
+
onResize: onResize,
|
|
101
|
+
maxHeight: (((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.clientHeight) || 0) / 2,
|
|
102
|
+
actionRef: actionRef || listRef
|
|
103
|
+
}))]
|
|
104
|
+
});
|
|
121
105
|
};
|
|
122
106
|
|
|
123
|
-
ChatContainer.propTypes = containerProps;
|
|
124
107
|
ChatContainer.defaultProps = defaultProps;
|
|
125
|
-
|
|
108
|
+
const ChatContainerWithSchema = describe(ChatContainer);
|
|
126
109
|
ChatContainerWithSchema.propTypes = containerProps;
|
|
127
110
|
|
|
128
111
|
export { ChatContainer, ChatContainerWithSchema };
|
|
129
|
-
//# sourceMappingURL=ChatContainer.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const useValidateProps = (props, schema) => {
|
|
4
4
|
useValidateTypescriptPropTypes(props, schema);
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
export { useValidateProps };
|
|
8
|
-
//# sourceMappingURL=useValidateProps.js.map
|
|
@@ -1,41 +1 @@
|
|
|
1
1
|
export { ChatContainer, ChatContainerWithSchema } from './ChatContainer.js';
|
|
2
|
-
import '@babel/runtime/helpers/esm/extends';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'lodash';
|
|
5
|
-
import 'react-desc';
|
|
6
|
-
import '@elliemae/ds-indeterminate-progress-indicator';
|
|
7
|
-
import '@elliemae/ds-banner';
|
|
8
|
-
import '../chat-composer/ChatContainerComposer.js';
|
|
9
|
-
import '@babel/runtime/helpers/esm/defineProperty';
|
|
10
|
-
import '@babel/runtime/helpers/esm/slicedToArray';
|
|
11
|
-
import '@elliemae/ds-grid';
|
|
12
|
-
import '@elliemae/ds-icons';
|
|
13
|
-
import '../chat-composer/styled.js';
|
|
14
|
-
import 'styled-components';
|
|
15
|
-
import '@elliemae/ds-button';
|
|
16
|
-
import '../chat-composer/config/useValidateProps.js';
|
|
17
|
-
import '@elliemae/ds-props-helpers';
|
|
18
|
-
import '../chat-composer/props.js';
|
|
19
|
-
import '../chat-container-messages-list/ChatContainerMessagesList.js';
|
|
20
|
-
import 'react-virtual';
|
|
21
|
-
import '../bubble/ChatBubble.js';
|
|
22
|
-
import '../bubble/styled.js';
|
|
23
|
-
import '../bubble/props.js';
|
|
24
|
-
import 'prop-types';
|
|
25
|
-
import '../bubble/config/useValidateProps.js';
|
|
26
|
-
import '../bubble/ChatBubbleArrow.js';
|
|
27
|
-
import '../message-delimiter/MessageDelimiter.js';
|
|
28
|
-
import '../message-delimiter/styled.js';
|
|
29
|
-
import '../message-delimiter/props.js';
|
|
30
|
-
import '../message-delimiter/config/useValidateProps.js';
|
|
31
|
-
import '../system-message/SystemMessage.js';
|
|
32
|
-
import '../system-message/style.js';
|
|
33
|
-
import '../system-message/props.js';
|
|
34
|
-
import '../system-message/config/useValidateProps.js';
|
|
35
|
-
import '../chat-container-messages-list/styled.js';
|
|
36
|
-
import '../chat-container-messages-list/props.js';
|
|
37
|
-
import '../chat-container-messages-list/config/useValidateProps.js';
|
|
38
|
-
import './props.js';
|
|
39
|
-
import './styled.js';
|
|
40
|
-
import './config/useValidateProps.js';
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@ import { noop } from 'lodash';
|
|
|
3
3
|
import { defaultProps as defaultProps$1 } from '../chat-container-messages-list/props.js';
|
|
4
4
|
import { defaultComposerPros } from '../chat-composer/props.js';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const defaultProps = {
|
|
7
7
|
messagesListProps: defaultProps$1,
|
|
8
8
|
composerProps: defaultComposerPros,
|
|
9
9
|
actionRef: undefined,
|
|
@@ -22,7 +22,7 @@ var defaultProps = {
|
|
|
22
22
|
sendingMessages: undefined,
|
|
23
23
|
sendingText: 'Sending'
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
const containerProps = {
|
|
26
26
|
messagesListProps: PropTypes.object.description('ChatMessageList props "messages" / "onScrollEnds"').defaultValue(defaultProps.messagesListProps),
|
|
27
27
|
composerProps: PropTypes.object.description('Composer configuration').defaultValue(defaultProps.composerProps),
|
|
28
28
|
autoScroll: PropTypes.bool.description('Auto scroll to bottom on resize').defaultValue(defaultProps.autoScroll),
|
|
@@ -38,4 +38,3 @@ var containerProps = {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export { containerProps, defaultProps };
|
|
41
|
-
//# sourceMappingURL=props.js.map
|
|
@@ -3,38 +3,16 @@ import { Grid } from '@elliemae/ds-grid';
|
|
|
3
3
|
import { StyledTitleLeftBubble, StyleBodyWrapper, StyledTitleRightBubble } from '../bubble/styled.js';
|
|
4
4
|
import { StyledComposerInput } from '../chat-composer/styled.js';
|
|
5
5
|
import { Wrapper, Title, Message, Time } from '../system-message/style.js';
|
|
6
|
-
import '../bubble/props.js';
|
|
7
|
-
import 'prop-types';
|
|
8
|
-
import 'react-desc';
|
|
9
|
-
import 'lodash';
|
|
10
|
-
import '@elliemae/ds-button';
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
const CONTAINER_WIDTH = 300;
|
|
8
|
+
const StyledChatContainerContent = /*#__PURE__*/styled(Grid).withConfig({
|
|
14
9
|
componentId: "sc-d732wo-0"
|
|
15
|
-
})(["height:100%;min-width:", "px;overflow:hidden;background:", ";position:relative;"], CONTAINER_WIDTH,
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
var StyledIndicatorContainer = /*#__PURE__*/styled.div.withConfig({
|
|
10
|
+
})(["height:100%;min-width:", "px;overflow:hidden;background:", ";position:relative;"], CONTAINER_WIDTH, props => props.theme.colors.neutral['050']);
|
|
11
|
+
const StyledIndicatorContainer = /*#__PURE__*/styled.div.withConfig({
|
|
19
12
|
componentId: "sc-d732wo-1"
|
|
20
|
-
})(["
|
|
21
|
-
|
|
22
|
-
}, function (props) {
|
|
23
|
-
return !props.linear ? props.theme.space.xxs : 0;
|
|
24
|
-
}, function (props) {
|
|
25
|
-
return props.theme.space.xxs;
|
|
26
|
-
}, function (props) {
|
|
27
|
-
return props.theme.space.xxs;
|
|
28
|
-
}, function (props) {
|
|
29
|
-
return props.theme.colors.neutral['000'];
|
|
30
|
-
}, function (props) {
|
|
31
|
-
return props.isLoading === 'top' ? "\n top: -41px;\n transform: translate(0, 41px);\n visibility: visible;\n pointer-events: auto\n " : '';
|
|
32
|
-
}, function (props) {
|
|
33
|
-
return props.isLoading === 'bottom' ? "\n bottom: -41px;\n transform: translate(0, -41px);\n visibility: visible;\n pointer-events: auto;\n " : '';
|
|
34
|
-
});
|
|
35
|
-
var MobileStyledChatContainerContent = /*#__PURE__*/styled(StyledChatContainerContent).withConfig({
|
|
13
|
+
})(["position:absolute;width:calc(100% + ", ");padding:", ";left:-", ";right:-", ";background:", ";", " ", ""], props => props.theme.space.xxs, props => !props.linear ? props.theme.space.xxs : 0, props => props.theme.space.xxs, props => props.theme.space.xxs, props => props.theme.colors.neutral['000'], props => props.isLoading === 'top' ? 'top: 0;' : '', props => props.isLoading === 'bottom' ? 'bottom: 0;' : '');
|
|
14
|
+
const MobileStyledChatContainerContent = /*#__PURE__*/styled(StyledChatContainerContent).withConfig({
|
|
36
15
|
componentId: "sc-d732wo-2"
|
|
37
16
|
})(["", ",", "{font-size:16px;}", "{font-size:13px;}", "{background-color:#fff;box-shadow:-0 1px 3px rgba(53,60,70,0.8);}", ",", "{font-size:16px;text-align:left;}", "{font-size:13px;}", "{font-size:16px;}"], StyledTitleLeftBubble, StyleBodyWrapper, StyledTitleRightBubble, Wrapper, Title, Message, Time, StyledComposerInput);
|
|
38
17
|
|
|
39
18
|
export { CONTAINER_WIDTH, MobileStyledChatContainerContent, StyledChatContainerContent, StyledIndicatorContainer };
|
|
40
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';
|
|
3
4
|
import { StyledChatContainerContentHeader, StyledChatContainerContentHeaderLabel, StyledChatContainerContentHeaderActions } from './styled.js';
|
|
4
|
-
import { validHeaderChilds } from './helpers.js';
|
|
5
|
-
import 'styled-components';
|
|
6
|
-
import '@elliemae/ds-grid';
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
const ChatContainerHeader = props => {
|
|
7
|
+
const {
|
|
8
|
+
title,
|
|
9
|
+
floating,
|
|
10
|
+
children
|
|
11
|
+
} = props;
|
|
12
|
+
return /*#__PURE__*/_jsx(StyledChatContainerContentHeader, {
|
|
13
13
|
alignItems: "center",
|
|
14
14
|
cols: ['minmax(calc(100% - 64px), 1fr)', children ? 'auto' : '0px'],
|
|
15
15
|
floating: floating,
|
|
16
16
|
role: "heading"
|
|
17
|
-
}, /*#__PURE__*/
|
|
17
|
+
}, void 0, /*#__PURE__*/_jsx(StyledChatContainerContentHeaderLabel, {
|
|
18
18
|
"data-testid": "chat-container-header-title",
|
|
19
19
|
pl: "xxs",
|
|
20
20
|
pr: "xxs"
|
|
21
|
-
}, /*#__PURE__*/
|
|
21
|
+
}, void 0, /*#__PURE__*/_jsx(SimpleTruncatedTooltipText, {
|
|
22
22
|
value: title
|
|
23
|
-
})), /*#__PURE__*/
|
|
24
|
-
cols:
|
|
23
|
+
})), /*#__PURE__*/_jsx(StyledChatContainerContentHeaderActions, {
|
|
24
|
+
cols: React.Children.toArray(children).filter(e => e).map(() => '32px'),
|
|
25
25
|
justifyContent: "flex-end",
|
|
26
26
|
"data-testid": "chat-container-header-children"
|
|
27
|
-
}, children));
|
|
27
|
+
}, void 0, children));
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
export { ChatContainerHeader };
|
|
31
|
-
//# sourceMappingURL=ChatContainerHeader.js.map
|
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { Grid } from '@elliemae/ds-grid';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const StyledChatContainerContentHeader = /*#__PURE__*/styled(Grid).withConfig({
|
|
5
5
|
componentId: "sc-jmynvr-0"
|
|
6
|
-
})(["
|
|
7
|
-
|
|
6
|
+
})(["width:100%;min-height:48px;border-bottom:1px solid ", ";background:", ";"], props => props.theme.colors.neutral['200'], props => props.theme.colors.neutral['050']);
|
|
7
|
+
const StyledChatContainerContentHeaderLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
8
8
|
componentId: "sc-jmynvr-1"
|
|
9
|
-
})(["
|
|
10
|
-
|
|
11
|
-
}, function (props) {
|
|
12
|
-
return props.theme.colors.neutral['050'];
|
|
13
|
-
}, StyledChatContainerContentHeaderActions);
|
|
14
|
-
var StyledChatContainerContentHeaderLabel = /*#__PURE__*/styled(Grid).withConfig({
|
|
9
|
+
})(["justify-content:center;align-items:center;font-weight:bold;font-size:18px;color:", ";"], props => props.theme.colors.neutral['700']);
|
|
10
|
+
const StyledChatContainerContentHeaderActions = /*#__PURE__*/styled(Grid).withConfig({
|
|
15
11
|
componentId: "sc-jmynvr-2"
|
|
16
|
-
})(["
|
|
17
|
-
return props.theme.colors.neutral['700'];
|
|
18
|
-
});
|
|
12
|
+
})(["max-width:80px;"]);
|
|
19
13
|
|
|
20
14
|
export { StyledChatContainerContentHeader, StyledChatContainerContentHeaderActions, StyledChatContainerContentHeaderLabel };
|
|
21
|
-
//# sourceMappingURL=styled.js.map
|