@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,60 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
|
+
import 'core-js/modules/web.url.to-json.js';
|
|
4
|
+
import 'react';
|
|
3
5
|
import { describe } from 'react-desc';
|
|
4
|
-
import
|
|
6
|
+
import MenuExpand from '@elliemae/ds-icons/MenuExpand';
|
|
7
|
+
import MenuCollapse from '@elliemae/ds-icons/MenuCollapse';
|
|
5
8
|
import { StyledSideBarContainer, StyledSideBarButtonsContainer } from './styled.js';
|
|
6
9
|
import { TileButton } from '../tile-button/TileButton.js';
|
|
7
10
|
import { SidebarButton } from '../sidebar-button/SidebarButton.js';
|
|
8
11
|
import { chatSidebarProps, defaultProps } from './props.js';
|
|
9
12
|
import { useValidateProps } from './config/useValidateProps.js';
|
|
10
|
-
import '
|
|
11
|
-
import '@elliemae/ds-grid';
|
|
12
|
-
import '../../styled.js';
|
|
13
|
-
import '@elliemae/ds-tooltip';
|
|
14
|
-
import '../tile-button/styled.js';
|
|
15
|
-
import '../tile-button/props.js';
|
|
16
|
-
import 'lodash';
|
|
17
|
-
import '../tile-button/config/useValidateProps.js';
|
|
18
|
-
import '@elliemae/ds-props-helpers';
|
|
19
|
-
import '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
20
|
-
import '../sidebar-button/styled.js';
|
|
21
|
-
import '../sidebar-button/props.js';
|
|
22
|
-
import 'prop-types';
|
|
13
|
+
import { jsx } from 'react/jsx-runtime';
|
|
23
14
|
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
15
|
+
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; }
|
|
16
|
+
|
|
17
|
+
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; }
|
|
18
|
+
|
|
19
|
+
const FooterChat = ({
|
|
20
|
+
expanded,
|
|
21
|
+
onFooterClose,
|
|
22
|
+
onFooterExpand,
|
|
23
|
+
footerButtonExtraProps
|
|
24
|
+
}) => /*#__PURE__*/_jsx(SidebarButton, {
|
|
25
|
+
dsId: "sidebar_footer",
|
|
26
|
+
label: null,
|
|
27
|
+
Icon: !expanded ? MenuCollapse : MenuExpand,
|
|
28
|
+
onClick: expanded ? onFooterClose : onFooterExpand,
|
|
29
|
+
"aria-pressed": expanded,
|
|
30
|
+
"aria-label": footerButtonExtraProps['aria-label']
|
|
31
|
+
});
|
|
38
32
|
|
|
39
|
-
|
|
33
|
+
const SideBarChat = props => {
|
|
40
34
|
useValidateProps(props, SideBarChatWithSchema.toJSON());
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return /*#__PURE__*/
|
|
35
|
+
const {
|
|
36
|
+
sidebarItems,
|
|
37
|
+
expanded,
|
|
38
|
+
onFooterClose,
|
|
39
|
+
onFooterExpand,
|
|
40
|
+
selectedItem,
|
|
41
|
+
footerButtonExtraProps
|
|
42
|
+
} = props;
|
|
43
|
+
return /*#__PURE__*/_jsx(StyledSideBarContainer, {
|
|
50
44
|
rows: [1, 'auto']
|
|
51
|
-
}, /*#__PURE__*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
tooltipPlacement: tooltipPlacement,
|
|
55
|
-
disableTooltip: enableTooltipWhenIsClosed ? false : !expanded
|
|
56
|
-
}));
|
|
57
|
-
})), /*#__PURE__*/React.createElement(FooterChat, {
|
|
45
|
+
}, void 0, /*#__PURE__*/_jsx(StyledSideBarButtonsContainer, {}, void 0, sidebarItems.map(p => /*#__PURE__*/jsx(TileButton, _objectSpread(_objectSpread({}, p), {}, {
|
|
46
|
+
selected: selectedItem === p.dsId
|
|
47
|
+
})))), /*#__PURE__*/_jsx(FooterChat, {
|
|
58
48
|
expanded: expanded,
|
|
59
49
|
onFooterClose: onFooterClose,
|
|
60
50
|
onFooterExpand: onFooterExpand,
|
|
@@ -62,10 +52,8 @@ var SideBarChat = function SideBarChat(props) {
|
|
|
62
52
|
}));
|
|
63
53
|
};
|
|
64
54
|
|
|
65
|
-
SideBarChat.propTypes = chatSidebarProps;
|
|
66
55
|
SideBarChat.defaultProps = defaultProps;
|
|
67
|
-
|
|
56
|
+
const SideBarChatWithSchema = describe(SideBarChat);
|
|
68
57
|
SideBarChatWithSchema.propTypes = chatSidebarProps;
|
|
69
58
|
|
|
70
59
|
export { SideBarChat, SideBarChatWithSchema };
|
|
71
|
-
//# sourceMappingURL=SideBarChat.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { useValidatePropTypes } from '@elliemae/ds-props-helpers';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const useValidateProps = (props, schema) => {
|
|
4
4
|
useValidatePropTypes(props, schema);
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
export { useValidateProps };
|
|
8
|
-
//# sourceMappingURL=useValidateProps.js.map
|
|
@@ -1,24 +1 @@
|
|
|
1
1
|
export { SideBarChat, SideBarChatWithSchema } from './SideBarChat.js';
|
|
2
|
-
import '@babel/runtime/helpers/esm/extends';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-desc';
|
|
5
|
-
import '@elliemae/ds-icons';
|
|
6
|
-
import './styled.js';
|
|
7
|
-
import 'styled-components';
|
|
8
|
-
import '@elliemae/ds-grid';
|
|
9
|
-
import '../../styled.js';
|
|
10
|
-
import '../tile-button/TileButton.js';
|
|
11
|
-
import '@elliemae/ds-tooltip';
|
|
12
|
-
import '../tile-button/styled.js';
|
|
13
|
-
import '../tile-button/props.js';
|
|
14
|
-
import 'lodash';
|
|
15
|
-
import '../tile-button/config/useValidateProps.js';
|
|
16
|
-
import '@elliemae/ds-props-helpers';
|
|
17
|
-
import '../sidebar-button/SidebarButton.js';
|
|
18
|
-
import '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
19
|
-
import '../sidebar-button/styled.js';
|
|
20
|
-
import '../sidebar-button/props.js';
|
|
21
|
-
import 'prop-types';
|
|
22
|
-
import './props.js';
|
|
23
|
-
import './config/useValidateProps.js';
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropTypes } from 'react-desc';
|
|
2
2
|
import { noop } from 'lodash';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const defaultProps = {
|
|
5
5
|
expanded: false,
|
|
6
6
|
selectedItem: undefined,
|
|
7
7
|
sidebarItems: [],
|
|
@@ -11,16 +11,12 @@ var defaultProps = {
|
|
|
11
11
|
onHeaderClose: noop,
|
|
12
12
|
footerButtonExtraProps: {
|
|
13
13
|
'aria-label': 'expand or collapse button'
|
|
14
|
-
}
|
|
15
|
-
tooltipPlacement: 'right',
|
|
16
|
-
enableTooltipWhenIsClosed: false
|
|
14
|
+
}
|
|
17
15
|
};
|
|
18
|
-
|
|
16
|
+
const chatSidebarProps = {
|
|
19
17
|
sidebarItems: PropTypes.arrayOf(PropTypes.object).description('The array of out-of-the-box items you want to render inside the sidebar nav of the chat').defaultValue(defaultProps.sidebarItems),
|
|
20
18
|
expanded: PropTypes.bool.description('Whether to show the chat expanded or collapsed').defaultValue(defaultProps.expanded),
|
|
21
19
|
selectedItem: PropTypes.string.description('The id of the chat item you want to be opened').defaultValue(defaultProps.selectedItem),
|
|
22
|
-
tooltipPlacement: PropTypes.oneOf(['top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']).description('start placement preferences, as per popperjs placement option').defaultValue("'right'"),
|
|
23
|
-
enableTooltipWhenIsClosed: PropTypes.bool.description('Enable tooltip when is closed').defaultValue(defaultProps.onFooterExpand),
|
|
24
20
|
onFooterExpand: PropTypes.func.description('The function to call when the chat is opened via the footer').defaultValue(defaultProps.onFooterExpand),
|
|
25
21
|
onFooterClose: PropTypes.func.description('The function to call when the chat is closed via the footer').defaultValue(defaultProps.onFooterClose),
|
|
26
22
|
onHeaderExpand: PropTypes.func.description('The function to call when the chat is opened via the header').defaultValue(defaultProps.onHeaderExpand),
|
|
@@ -29,4 +25,3 @@ var chatSidebarProps = {
|
|
|
29
25
|
};
|
|
30
26
|
|
|
31
27
|
export { chatSidebarProps, defaultProps };
|
|
32
|
-
//# sourceMappingURL=props.js.map
|
|
@@ -2,16 +2,11 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { Grid } from '@elliemae/ds-grid';
|
|
3
3
|
import { MIN_WIDTH_SIDEBAR, BUTTON_SIDEBAR_HEIGHT } from '../../styled.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const StyledSideBarContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
6
6
|
componentId: "sc-16uijso-0"
|
|
7
|
-
})(["height:100%;width:", "px;background:", ";border-right:1px solid ", ";
|
|
8
|
-
|
|
9
|
-
}, function (props) {
|
|
10
|
-
return props.theme.colors.neutral['100'];
|
|
11
|
-
});
|
|
12
|
-
var StyledSideBarButtonsContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
7
|
+
})(["height:100%;width:", "px;background:", ";border-right:1px solid ", ";"], MIN_WIDTH_SIDEBAR, props => props.theme.colors.neutral['050'], props => props.theme.colors.neutral['100']);
|
|
8
|
+
const StyledSideBarButtonsContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
13
9
|
componentId: "sc-16uijso-1"
|
|
14
|
-
})(["overflow-y:auto;align-items:flex-start;justify-content:flex-start;grid-template-rows:repeat(auto-fill,", "px);
|
|
10
|
+
})(["overflow-y:auto;align-items:flex-start;justify-content:flex-start;grid-template-rows:repeat(auto-fill,", "px);"], BUTTON_SIDEBAR_HEIGHT);
|
|
15
11
|
|
|
16
12
|
export { StyledSideBarButtonsContainer, StyledSideBarContainer };
|
|
17
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'react';
|
|
3
|
+
import Comments from '@elliemae/ds-icons/Comments';
|
|
3
4
|
import { StyledFloatingButton } from './styled.js';
|
|
4
|
-
import {
|
|
5
|
-
import 'styled-components';
|
|
6
|
-
import 'react-desc';
|
|
7
|
-
import 'lodash';
|
|
5
|
+
import { defaultFloatingButton } from './props.js';
|
|
8
6
|
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
FloatingButton.propTypes = propsFloatingButton;
|
|
7
|
+
var _Comments;
|
|
8
|
+
const FloatingButton = ({
|
|
9
|
+
onClick
|
|
10
|
+
}) => /*#__PURE__*/_jsx(StyledFloatingButton, {
|
|
11
|
+
"data-testid": "chat-floating-button",
|
|
12
|
+
onClick: onClick
|
|
13
|
+
}, void 0, _Comments || (_Comments = /*#__PURE__*/_jsx(Comments, {
|
|
14
|
+
size: "l"
|
|
15
|
+
})));
|
|
19
16
|
FloatingButton.defaultProps = defaultFloatingButton;
|
|
20
17
|
|
|
21
18
|
export { FloatingButton };
|
|
22
|
-
//# sourceMappingURL=FloatingButton.js.map
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { PropTypes } from 'react-desc';
|
|
2
2
|
import { noop } from 'lodash';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const defaultFloatingButton = {
|
|
5
5
|
onClick: noop
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
const propsFloatingButton = {
|
|
8
8
|
onClick: PropTypes.func.description('The function to call when the chat is opened via the footer').defaultValue(defaultFloatingButton.onClick)
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defaultFloatingButton, propsFloatingButton };
|
|
12
|
-
//# sourceMappingURL=props.js.map
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
const BUTTON_FLOATING = 56;
|
|
4
|
+
const BOX_SHADOW = '0 5px 8px 0 rgba(53,60,70,0.55)';
|
|
5
|
+
const BOX_SHADOW_FLOATING = '0 5px 8px 0 rgba(53,60,70,0.35)';
|
|
6
|
+
const StyledFloatingButton = /*#__PURE__*/styled.button.withConfig({
|
|
7
7
|
componentId: "sc-vlozhu-0"
|
|
8
|
-
})(["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,
|
|
9
|
-
return props.theme.colors.brand[600];
|
|
10
|
-
}, BOX_SHADOW_FLOATING, function (props) {
|
|
11
|
-
return props.theme.colors.brand[700];
|
|
12
|
-
}, function (props) {
|
|
13
|
-
return props.theme.colors.brand[700];
|
|
14
|
-
}, function (props) {
|
|
15
|
-
return props.theme.colors.neutral['000'];
|
|
16
|
-
}, BOX_SHADOW, function (props) {
|
|
17
|
-
return props.theme.colors.brand[800];
|
|
18
|
-
}, BOX_SHADOW_FLOATING, function (props) {
|
|
19
|
-
return props.theme.colors.neutral['000'];
|
|
20
|
-
});
|
|
8
|
+
})(["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']);
|
|
21
9
|
|
|
22
10
|
export { StyledFloatingButton };
|
|
23
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -2,11 +2,8 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { Grid } from '@elliemae/ds-grid';
|
|
3
3
|
import { BOX_SHADOW } from '../../styled.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const StyledFloatingContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
6
6
|
componentId: "sc-nqvrts-0"
|
|
7
|
-
})(["position:fixed;bottom:24px;right:24px;border-radius:4px;z-index:1;box-shadow:", ";background:", ";width:348px;"], BOX_SHADOW,
|
|
8
|
-
return nestedProps.theme.colors.neutral['050'];
|
|
9
|
-
});
|
|
7
|
+
})(["position:fixed;bottom:24px;right:24px;border-radius:4px;z-index:1;box-shadow:", ";background:", ";width:348px;"], BOX_SHADOW, nestedProps => nestedProps.theme.colors.neutral['050']);
|
|
10
8
|
|
|
11
9
|
export { StyledFloatingContainer };
|
|
12
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -1,69 +1,14 @@
|
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { StyledChatContainer } from './styled.js';
|
|
3
4
|
import { ChatContainer } from '../chat-container/ChatContainer.js';
|
|
4
5
|
import { SideBarChat } from '../chat-sidebar/SideBarChat.js';
|
|
5
|
-
import 'styled-components';
|
|
6
|
-
import '@elliemae/ds-grid';
|
|
7
|
-
import '../../styled.js';
|
|
8
|
-
import '@babel/runtime/helpers/esm/extends';
|
|
9
|
-
import 'lodash';
|
|
10
|
-
import 'react-desc';
|
|
11
|
-
import '@elliemae/ds-indeterminate-progress-indicator';
|
|
12
|
-
import '@elliemae/ds-banner';
|
|
13
|
-
import '../chat-composer/ChatContainerComposer.js';
|
|
14
|
-
import '@babel/runtime/helpers/esm/defineProperty';
|
|
15
|
-
import '@babel/runtime/helpers/esm/slicedToArray';
|
|
16
|
-
import '@elliemae/ds-icons';
|
|
17
|
-
import '../chat-composer/styled.js';
|
|
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 '../chat-container-messages-list/ChatContainerMessagesList.js';
|
|
23
|
-
import 'react-virtual';
|
|
24
|
-
import '../bubble/ChatBubble.js';
|
|
25
|
-
import '../bubble/styled.js';
|
|
26
|
-
import '../bubble/props.js';
|
|
27
|
-
import 'prop-types';
|
|
28
|
-
import '../bubble/config/useValidateProps.js';
|
|
29
|
-
import '../bubble/ChatBubbleArrow.js';
|
|
30
|
-
import '../message-delimiter/MessageDelimiter.js';
|
|
31
|
-
import '../message-delimiter/styled.js';
|
|
32
|
-
import '../message-delimiter/props.js';
|
|
33
|
-
import '../message-delimiter/config/useValidateProps.js';
|
|
34
|
-
import '../system-message/SystemMessage.js';
|
|
35
|
-
import '../system-message/style.js';
|
|
36
|
-
import '../system-message/props.js';
|
|
37
|
-
import '../system-message/config/useValidateProps.js';
|
|
38
|
-
import '../chat-container-messages-list/styled.js';
|
|
39
|
-
import '../chat-container-messages-list/props.js';
|
|
40
|
-
import '../chat-container-messages-list/config/useValidateProps.js';
|
|
41
|
-
import '../chat-container/props.js';
|
|
42
|
-
import '../chat-container/styled.js';
|
|
43
|
-
import '../chat-container/config/useValidateProps.js';
|
|
44
|
-
import '../chat-sidebar/styled.js';
|
|
45
|
-
import '../tile-button/TileButton.js';
|
|
46
|
-
import '@elliemae/ds-tooltip';
|
|
47
|
-
import '../tile-button/styled.js';
|
|
48
|
-
import '../tile-button/props.js';
|
|
49
|
-
import '../tile-button/config/useValidateProps.js';
|
|
50
|
-
import '../sidebar-button/SidebarButton.js';
|
|
51
|
-
import '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
52
|
-
import '../sidebar-button/styled.js';
|
|
53
|
-
import '../sidebar-button/props.js';
|
|
54
|
-
import '../chat-sidebar/props.js';
|
|
55
|
-
import '../chat-sidebar/config/useValidateProps.js';
|
|
56
6
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
expandedWidth: props.expandedWidth
|
|
64
|
-
}, /*#__PURE__*/React.createElement(SideBarChat, null), props.expanded ? /*#__PURE__*/React.createElement(ChatContainer, null) : /*#__PURE__*/React.createElement("div", null));
|
|
65
|
-
}, [props.floating, props.expanded, props.expandedWidth]);
|
|
66
|
-
};
|
|
7
|
+
var _SideBarChat, _ChatContainer, _div;
|
|
8
|
+
const InfluencerContainer = props => React.useMemo(() => props.floating ? null : /*#__PURE__*/_jsx(StyledChatContainer, {
|
|
9
|
+
cols: ['auto', props.expanded ? 1 : '0px'],
|
|
10
|
+
expanded: props.expanded,
|
|
11
|
+
expandedWidth: props.expandedWidth
|
|
12
|
+
}, void 0, _SideBarChat || (_SideBarChat = /*#__PURE__*/_jsx(SideBarChat, {})), props.expanded ? _ChatContainer || (_ChatContainer = /*#__PURE__*/_jsx(ChatContainer, {})) : _div || (_div = /*#__PURE__*/_jsx("div", {}))), [props.floating, props.expanded, props.expandedWidth]);
|
|
67
13
|
|
|
68
14
|
export { InfluencerContainer };
|
|
69
|
-
//# sourceMappingURL=InfluencerContainer.js.map
|
|
@@ -2,24 +2,11 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { Grid } from '@elliemae/ds-grid';
|
|
3
3
|
import { MIN_WIDTH_SIDEBAR } from '../../styled.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const StyledChatContainer = /*#__PURE__*/styled(Grid).withConfig({
|
|
6
6
|
componentId: "sc-b6t5vk-0"
|
|
7
|
-
})(["height:100%;width:", ";background:", ";box-shadow:-1px 0 0 0 ", ";transition:width ", " 350ms;"],
|
|
8
|
-
|
|
9
|
-
}, function (props) {
|
|
10
|
-
return props.theme.colors.neutral['050'];
|
|
11
|
-
}, function (props) {
|
|
12
|
-
return props.theme.colors.neutral[100];
|
|
13
|
-
}, function (props) {
|
|
14
|
-
return props.expanded ? 'ease-out' : 'ease-in';
|
|
15
|
-
});
|
|
16
|
-
var StyledChatContainerContent = /*#__PURE__*/styled(Grid).withConfig({
|
|
7
|
+
})(["height:100%;width:", ";background:", ";box-shadow:-1px 0 0 0 ", ";transition:width ", " 350ms;"], props => props.expanded ? "".concat(props.expandedWidth, "px") : "".concat(MIN_WIDTH_SIDEBAR, "px"), props => props.theme.colors.neutral['050'], props => props.theme.colors.neutral[100], props => props.expanded ? 'ease-out' : 'ease-in');
|
|
8
|
+
const StyledChatContainerContent = /*#__PURE__*/styled(Grid).withConfig({
|
|
17
9
|
componentId: "sc-b6t5vk-1"
|
|
18
|
-
})(["height:100%;overflow:hidden;background:", ";", ""],
|
|
19
|
-
return props.theme.colors.neutral['050'];
|
|
20
|
-
}, function (props) {
|
|
21
|
-
return props.floating ? "\n width: ".concat(props.expandedWidth, "px;\n") : "\n width: ".concat(props.expandedWidth - MIN_WIDTH_SIDEBAR, "px;\n");
|
|
22
|
-
});
|
|
10
|
+
})(["height:100%;overflow:hidden;background:", ";", ""], props => props.theme.colors.neutral['050'], props => props.floating ? "\n width: ".concat(props.expandedWidth, "px;\n") : "\n width: ".concat(props.expandedWidth - MIN_WIDTH_SIDEBAR, "px;\n"));
|
|
23
11
|
|
|
24
12
|
export { StyledChatContainer, StyledChatContainerContent };
|
|
25
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'core-js/modules/web.url.to-json.js';
|
|
3
|
+
import 'react';
|
|
2
4
|
import { describe } from 'react-desc';
|
|
3
5
|
import { Wrapper, Line, Text } from './styled.js';
|
|
4
6
|
import { messageDelimiterProps, defaultProps } from './props.js';
|
|
5
7
|
import { useValidateProps } from './config/useValidateProps.js';
|
|
6
|
-
import '@elliemae/ds-grid';
|
|
7
|
-
import 'styled-components';
|
|
8
|
-
import '@elliemae/ds-props-helpers';
|
|
9
8
|
|
|
10
|
-
var
|
|
9
|
+
var _Line, _Line2;
|
|
10
|
+
|
|
11
|
+
const MessageDelimiter = props => {
|
|
11
12
|
useValidateProps(props, MessageDelimiterWithSchema.toJSON());
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const {
|
|
14
|
+
title,
|
|
15
|
+
size,
|
|
16
|
+
extraProps,
|
|
17
|
+
verticalMargin
|
|
18
|
+
} = props;
|
|
19
|
+
return /*#__PURE__*/_jsx(Wrapper, {
|
|
17
20
|
cols: ['1fr', 'auto', '1fr']
|
|
18
|
-
}, /*#__PURE__*/
|
|
21
|
+
}, void 0, _Line || (_Line = /*#__PURE__*/_jsx(Line, {})), /*#__PURE__*/_jsx(Text, {
|
|
19
22
|
size: size,
|
|
20
23
|
verticalMargin: verticalMargin,
|
|
21
24
|
"data-testid": extraProps['data-testid']
|
|
22
|
-
}, title), /*#__PURE__*/
|
|
25
|
+
}, void 0, title), _Line2 || (_Line2 = /*#__PURE__*/_jsx(Line, {})));
|
|
23
26
|
};
|
|
24
27
|
|
|
25
28
|
MessageDelimiter.defaultProps = defaultProps;
|
|
26
|
-
|
|
27
|
-
var MessageDelimiterWithSchema = describe(MessageDelimiter);
|
|
29
|
+
const MessageDelimiterWithSchema = describe(MessageDelimiter);
|
|
28
30
|
MessageDelimiterWithSchema.propTypes = messageDelimiterProps;
|
|
29
31
|
|
|
30
32
|
export { MessageDelimiter, MessageDelimiterWithSchema };
|
|
31
|
-
//# sourceMappingURL=MessageDelimiter.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { useValidatePropTypes } from '@elliemae/ds-props-helpers';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const useValidateProps = (props, schema) => {
|
|
4
4
|
useValidatePropTypes(props, schema);
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
export { useValidateProps };
|
|
8
|
-
//# sourceMappingURL=useValidateProps.js.map
|
|
@@ -1,10 +1 @@
|
|
|
1
1
|
export { MessageDelimiter, MessageDelimiterWithSchema } from './MessageDelimiter.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'react-desc';
|
|
4
|
-
import './styled.js';
|
|
5
|
-
import '@elliemae/ds-grid';
|
|
6
|
-
import 'styled-components';
|
|
7
|
-
import './props.js';
|
|
8
|
-
import './config/useValidateProps.js';
|
|
9
|
-
import '@elliemae/ds-props-helpers';
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropTypes } from 'react-desc';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const defaultProps = {
|
|
4
4
|
title: '',
|
|
5
5
|
size: 's',
|
|
6
6
|
verticalMargin: '0px',
|
|
@@ -8,7 +8,7 @@ var defaultProps = {
|
|
|
8
8
|
'data-testid': 'chat-message-delimiter-title'
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
const messageDelimiterProps = {
|
|
12
12
|
title: PropTypes.string.isRequired.description('Text to display in the delimiter'),
|
|
13
13
|
size: PropTypes.oneOf(['s', 'l']).description('size of the delimiter').defaultValue('s'),
|
|
14
14
|
extraProps: PropTypes.object.description('extra props for delimiter'),
|
|
@@ -16,4 +16,3 @@ var messageDelimiterProps = {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export { defaultProps, messageDelimiterProps };
|
|
19
|
-
//# sourceMappingURL=props.js.map
|
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
import { Grid } from '@elliemae/ds-grid';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const Wrapper = /*#__PURE__*/styled(Grid).withConfig({
|
|
5
5
|
componentId: "sc-upz0rt-0"
|
|
6
6
|
})(["align-items:center;justify-content:center;width:100%;min-height:8px;"]);
|
|
7
|
-
|
|
7
|
+
const Line = /*#__PURE__*/styled.span.withConfig({
|
|
8
8
|
componentId: "sc-upz0rt-1"
|
|
9
|
-
})(["border-top:1px solid ", ";"],
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
var Text = /*#__PURE__*/styled.p.withConfig({
|
|
9
|
+
})(["border-top:1px solid ", ";"], props => props.theme.colors.neutral['400']);
|
|
10
|
+
const Text = /*#__PURE__*/styled.p.withConfig({
|
|
13
11
|
componentId: "sc-upz0rt-2"
|
|
14
|
-
})(["color:", ";font-size:", ";font-weight:", ";margin:", ";"],
|
|
15
|
-
return props.theme.colors.neutral['600'];
|
|
16
|
-
}, function (props) {
|
|
17
|
-
return props.size === 's' ? '12px' : '14px';
|
|
18
|
-
}, function (props) {
|
|
19
|
-
return props.theme.fontWeights.semibold;
|
|
20
|
-
}, function (props) {
|
|
21
|
-
return typeof props.verticalMargin === 'number' ? "".concat(props.verticalMargin, "px 8px") : "".concat(props.verticalMargin, " 8px");
|
|
22
|
-
});
|
|
12
|
+
})(["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' ? "".concat(props.verticalMargin, "px 8px") : "".concat(props.verticalMargin, " 8px"));
|
|
23
13
|
|
|
24
14
|
export { Line, Text, Wrapper };
|
|
25
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { StyledSidebarButton, StyledSidebarButtonIcon, StyledSidebarButtonLabel } from './styled.js';
|
|
5
|
-
import {
|
|
6
|
-
import '
|
|
7
|
-
import '@elliemae/ds-grid';
|
|
8
|
-
import '../../styled.js';
|
|
9
|
-
import 'prop-types';
|
|
10
|
-
import 'react-desc';
|
|
11
|
-
import 'lodash';
|
|
12
|
-
import '@elliemae/ds-icons';
|
|
6
|
+
import { defaultSidebarButton } from './props.js';
|
|
7
|
+
import { jsxs } from 'react/jsx-runtime';
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
const _excluded = ["label", "dsId", "onClick", "Icon"];
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
13
|
+
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; }
|
|
14
|
+
const SidebarButton = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
label,
|
|
17
|
+
dsId,
|
|
18
|
+
onClick,
|
|
19
|
+
Icon
|
|
20
|
+
} = _ref,
|
|
20
21
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
const handleClick = React.useCallback(() => {
|
|
23
24
|
onClick(dsId);
|
|
24
25
|
}, [onClick, dsId]);
|
|
25
|
-
return /*#__PURE__*/
|
|
26
|
-
key: dsId,
|
|
26
|
+
return /*#__PURE__*/jsxs(StyledSidebarButton, _objectSpread(_objectSpread({
|
|
27
27
|
"data-testid": "sidebar-button-".concat(dsId),
|
|
28
28
|
onClick: handleClick
|
|
29
|
-
}, rest),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
}, rest), {}, {
|
|
30
|
+
children: [/*#__PURE__*/_jsx(StyledSidebarButtonIcon, {
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
justifyContent: "center"
|
|
33
|
+
}, void 0, /*#__PURE__*/_jsx(Icon, {
|
|
34
|
+
size: "m"
|
|
35
|
+
})), label && /*#__PURE__*/_jsx(StyledSidebarButtonLabel, {}, void 0, label)]
|
|
36
|
+
}), dsId);
|
|
35
37
|
};
|
|
36
|
-
SidebarButton.propTypes = propsSidebarButton;
|
|
37
38
|
SidebarButton.defaultProps = defaultSidebarButton;
|
|
38
39
|
|
|
39
40
|
export { SidebarButton };
|
|
40
|
-
//# sourceMappingURL=SidebarButton.js.map
|