@pega/cosmos-react-social 5.0.0-dev.4.7 → 5.0.0-dev.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/lib/components/Autopilot/Autopilot.d.ts +0 -15
- package/lib/components/Autopilot/Autopilot.d.ts.map +0 -1
- package/lib/components/Autopilot/Autopilot.js +0 -50
- package/lib/components/Autopilot/Autopilot.js.map +0 -1
- package/lib/components/Autopilot/AutopilotAvatar.d.ts +0 -8
- package/lib/components/Autopilot/AutopilotAvatar.d.ts.map +0 -1
- package/lib/components/Autopilot/AutopilotAvatar.js +0 -11
- package/lib/components/Autopilot/AutopilotAvatar.js.map +0 -1
- package/lib/components/Autopilot/AutopilotGlimpse.d.ts +0 -9
- package/lib/components/Autopilot/AutopilotGlimpse.d.ts.map +0 -1
- package/lib/components/Autopilot/AutopilotGlimpse.js +0 -24
- package/lib/components/Autopilot/AutopilotGlimpse.js.map +0 -1
- package/lib/components/Autopilot/index.d.ts +0 -4
- package/lib/components/Autopilot/index.d.ts.map +0 -1
- package/lib/components/Autopilot/index.js +0 -3
- package/lib/components/Autopilot/index.js.map +0 -1
- package/lib/components/Chat/Chat.d.ts +0 -29
- package/lib/components/Chat/Chat.d.ts.map +0 -1
- package/lib/components/Chat/Chat.js +0 -64
- package/lib/components/Chat/Chat.js.map +0 -1
- package/lib/components/Chat/Chat.types.d.ts +0 -136
- package/lib/components/Chat/Chat.types.d.ts.map +0 -1
- package/lib/components/Chat/Chat.types.js +0 -10
- package/lib/components/Chat/Chat.types.js.map +0 -1
- package/lib/components/Chat/ChatBody.d.ts +0 -7
- package/lib/components/Chat/ChatBody.d.ts.map +0 -1
- package/lib/components/Chat/ChatBody.js +0 -292
- package/lib/components/Chat/ChatBody.js.map +0 -1
- package/lib/components/Chat/ChatComposer.d.ts +0 -50
- package/lib/components/Chat/ChatComposer.d.ts.map +0 -1
- package/lib/components/Chat/ChatComposer.js +0 -221
- package/lib/components/Chat/ChatComposer.js.map +0 -1
- package/lib/components/Chat/ChatHeader.d.ts +0 -29
- package/lib/components/Chat/ChatHeader.d.ts.map +0 -1
- package/lib/components/Chat/ChatHeader.js +0 -44
- package/lib/components/Chat/ChatHeader.js.map +0 -1
- package/lib/components/Chat/ChatSettingsPanel.d.ts +0 -7
- package/lib/components/Chat/ChatSettingsPanel.d.ts.map +0 -1
- package/lib/components/Chat/ChatSettingsPanel.js +0 -15
- package/lib/components/Chat/ChatSettingsPanel.js.map +0 -1
- package/lib/components/Chat/ChatSettingsPanel.styles.d.ts +0 -16
- package/lib/components/Chat/ChatSettingsPanel.styles.d.ts.map +0 -1
- package/lib/components/Chat/ChatSettingsPanel.styles.js +0 -47
- package/lib/components/Chat/ChatSettingsPanel.styles.js.map +0 -1
- package/lib/components/Chat/Message.d.ts +0 -6
- package/lib/components/Chat/Message.d.ts.map +0 -1
- package/lib/components/Chat/Message.js +0 -98
- package/lib/components/Chat/Message.js.map +0 -1
- package/lib/components/Chat/Message.styles.d.ts +0 -43
- package/lib/components/Chat/Message.styles.d.ts.map +0 -1
- package/lib/components/Chat/Message.styles.js +0 -270
- package/lib/components/Chat/Message.styles.js.map +0 -1
- package/lib/components/Chat/SuggestedReplyPicker.d.ts +0 -42
- package/lib/components/Chat/SuggestedReplyPicker.d.ts.map +0 -1
- package/lib/components/Chat/SuggestedReplyPicker.js +0 -143
- package/lib/components/Chat/SuggestedReplyPicker.js.map +0 -1
- package/lib/components/Chat/SystemMessage.d.ts +0 -8
- package/lib/components/Chat/SystemMessage.d.ts.map +0 -1
- package/lib/components/Chat/SystemMessage.js +0 -50
- package/lib/components/Chat/SystemMessage.js.map +0 -1
- package/lib/components/Chat/TypeIndicator.d.ts +0 -6
- package/lib/components/Chat/TypeIndicator.d.ts.map +0 -1
- package/lib/components/Chat/TypeIndicator.js +0 -12
- package/lib/components/Chat/TypeIndicator.js.map +0 -1
- package/lib/components/Chat/index.d.ts +0 -15
- package/lib/components/Chat/index.d.ts.map +0 -1
- package/lib/components/Chat/index.js +0 -10
- package/lib/components/Chat/index.js.map +0 -1
- package/lib/components/Email/ContextMenuPopover.d.ts +0 -5
- package/lib/components/Email/ContextMenuPopover.d.ts.map +0 -1
- package/lib/components/Email/ContextMenuPopover.js +0 -53
- package/lib/components/Email/ContextMenuPopover.js.map +0 -1
- package/lib/components/Email/Email.d.ts +0 -7
- package/lib/components/Email/Email.d.ts.map +0 -1
- package/lib/components/Email/Email.js +0 -244
- package/lib/components/Email/Email.js.map +0 -1
- package/lib/components/Email/Email.styles.d.ts +0 -67
- package/lib/components/Email/Email.styles.d.ts.map +0 -1
- package/lib/components/Email/Email.styles.js +0 -392
- package/lib/components/Email/Email.styles.js.map +0 -1
- package/lib/components/Email/Email.types.d.ts +0 -394
- package/lib/components/Email/Email.types.d.ts.map +0 -1
- package/lib/components/Email/Email.types.js +0 -2
- package/lib/components/Email/Email.types.js.map +0 -1
- package/lib/components/Email/EmailCaseView.d.ts +0 -6
- package/lib/components/Email/EmailCaseView.d.ts.map +0 -1
- package/lib/components/Email/EmailCaseView.js +0 -36
- package/lib/components/Email/EmailCaseView.js.map +0 -1
- package/lib/components/Email/EmailComposer.d.ts +0 -10
- package/lib/components/Email/EmailComposer.d.ts.map +0 -1
- package/lib/components/Email/EmailComposer.js +0 -255
- package/lib/components/Email/EmailComposer.js.map +0 -1
- package/lib/components/Email/EmailConversation.d.ts +0 -17
- package/lib/components/Email/EmailConversation.d.ts.map +0 -1
- package/lib/components/Email/EmailConversation.js +0 -174
- package/lib/components/Email/EmailConversation.js.map +0 -1
- package/lib/components/Email/EmailEntity.d.ts +0 -11
- package/lib/components/Email/EmailEntity.d.ts.map +0 -1
- package/lib/components/Email/EmailEntity.js +0 -51
- package/lib/components/Email/EmailEntity.js.map +0 -1
- package/lib/components/Email/EmailManager.d.ts +0 -6
- package/lib/components/Email/EmailManager.d.ts.map +0 -1
- package/lib/components/Email/EmailManager.js +0 -21
- package/lib/components/Email/EmailManager.js.map +0 -1
- package/lib/components/Email/EmailNotificationPanel.d.ts +0 -7
- package/lib/components/Email/EmailNotificationPanel.d.ts.map +0 -1
- package/lib/components/Email/EmailNotificationPanel.js +0 -15
- package/lib/components/Email/EmailNotificationPanel.js.map +0 -1
- package/lib/components/Email/EmailSelector.d.ts +0 -22
- package/lib/components/Email/EmailSelector.d.ts.map +0 -1
- package/lib/components/Email/EmailSelector.js +0 -121
- package/lib/components/Email/EmailSelector.js.map +0 -1
- package/lib/components/Email/EmailShell.d.ts +0 -6
- package/lib/components/Email/EmailShell.d.ts.map +0 -1
- package/lib/components/Email/EmailShell.js +0 -46
- package/lib/components/Email/EmailShell.js.map +0 -1
- package/lib/components/Email/EmailSummaryItem.d.ts +0 -11
- package/lib/components/Email/EmailSummaryItem.d.ts.map +0 -1
- package/lib/components/Email/EmailSummaryItem.js +0 -118
- package/lib/components/Email/EmailSummaryItem.js.map +0 -1
- package/lib/components/Email/EmailSummaryList.d.ts +0 -6
- package/lib/components/Email/EmailSummaryList.d.ts.map +0 -1
- package/lib/components/Email/EmailSummaryList.js +0 -95
- package/lib/components/Email/EmailSummaryList.js.map +0 -1
- package/lib/components/Email/EntityList.d.ts +0 -6
- package/lib/components/Email/EntityList.d.ts.map +0 -1
- package/lib/components/Email/EntityList.js +0 -74
- package/lib/components/Email/EntityList.js.map +0 -1
- package/lib/components/Email/index.d.ts +0 -13
- package/lib/components/Email/index.d.ts.map +0 -1
- package/lib/components/Email/index.js +0 -12
- package/lib/components/Email/index.js.map +0 -1
- package/lib/components/Email/utils/EntityHighlighter.d.ts +0 -10
- package/lib/components/Email/utils/EntityHighlighter.d.ts.map +0 -1
- package/lib/components/Email/utils/EntityHighlighter.js +0 -260
- package/lib/components/Email/utils/EntityHighlighter.js.map +0 -1
- package/lib/components/Feed/Feed.context.d.ts +0 -51
- package/lib/components/Feed/Feed.context.d.ts.map +0 -1
- package/lib/components/Feed/Feed.context.js +0 -10
- package/lib/components/Feed/Feed.context.js.map +0 -1
- package/lib/components/Feed/Feed.d.ts +0 -6
- package/lib/components/Feed/Feed.d.ts.map +0 -1
- package/lib/components/Feed/Feed.js +0 -149
- package/lib/components/Feed/Feed.js.map +0 -1
- package/lib/components/Feed/Feed.types.d.ts +0 -334
- package/lib/components/Feed/Feed.types.d.ts.map +0 -1
- package/lib/components/Feed/Feed.types.js +0 -2
- package/lib/components/Feed/Feed.types.js.map +0 -1
- package/lib/components/Feed/FeedAnnouncer.d.ts +0 -6
- package/lib/components/Feed/FeedAnnouncer.d.ts.map +0 -1
- package/lib/components/Feed/FeedAnnouncer.js +0 -11
- package/lib/components/Feed/FeedAnnouncer.js.map +0 -1
- package/lib/components/Feed/FeedAttachments.d.ts +0 -8
- package/lib/components/Feed/FeedAttachments.d.ts.map +0 -1
- package/lib/components/Feed/FeedAttachments.js +0 -97
- package/lib/components/Feed/FeedAttachments.js.map +0 -1
- package/lib/components/Feed/FeedButton.d.ts +0 -5
- package/lib/components/Feed/FeedButton.d.ts.map +0 -1
- package/lib/components/Feed/FeedButton.js +0 -15
- package/lib/components/Feed/FeedButton.js.map +0 -1
- package/lib/components/Feed/FeedContent.d.ts +0 -6
- package/lib/components/Feed/FeedContent.d.ts.map +0 -1
- package/lib/components/Feed/FeedContent.js +0 -46
- package/lib/components/Feed/FeedContent.js.map +0 -1
- package/lib/components/Feed/FeedContentFooter.d.ts +0 -5
- package/lib/components/Feed/FeedContentFooter.d.ts.map +0 -1
- package/lib/components/Feed/FeedContentFooter.js +0 -34
- package/lib/components/Feed/FeedContentFooter.js.map +0 -1
- package/lib/components/Feed/FeedContentHeader.d.ts +0 -5
- package/lib/components/Feed/FeedContentHeader.d.ts.map +0 -1
- package/lib/components/Feed/FeedContentHeader.js +0 -107
- package/lib/components/Feed/FeedContentHeader.js.map +0 -1
- package/lib/components/Feed/FeedEditRegion.d.ts +0 -6
- package/lib/components/Feed/FeedEditRegion.d.ts.map +0 -1
- package/lib/components/Feed/FeedEditRegion.js +0 -57
- package/lib/components/Feed/FeedEditRegion.js.map +0 -1
- package/lib/components/Feed/FeedInputRegion.d.ts +0 -8
- package/lib/components/Feed/FeedInputRegion.d.ts.map +0 -1
- package/lib/components/Feed/FeedInputRegion.js +0 -86
- package/lib/components/Feed/FeedInputRegion.js.map +0 -1
- package/lib/components/Feed/FeedLikeButton.d.ts +0 -7
- package/lib/components/Feed/FeedLikeButton.d.ts.map +0 -1
- package/lib/components/Feed/FeedLikeButton.js +0 -102
- package/lib/components/Feed/FeedLikeButton.js.map +0 -1
- package/lib/components/Feed/FeedModalList.d.ts +0 -5
- package/lib/components/Feed/FeedModalList.d.ts.map +0 -1
- package/lib/components/Feed/FeedModalList.js +0 -39
- package/lib/components/Feed/FeedModalList.js.map +0 -1
- package/lib/components/Feed/FeedNewPost.d.ts +0 -7
- package/lib/components/Feed/FeedNewPost.d.ts.map +0 -1
- package/lib/components/Feed/FeedNewPost.js +0 -30
- package/lib/components/Feed/FeedNewPost.js.map +0 -1
- package/lib/components/Feed/FeedNewPostTypeMenu.d.ts +0 -6
- package/lib/components/Feed/FeedNewPostTypeMenu.d.ts.map +0 -1
- package/lib/components/Feed/FeedNewPostTypeMenu.js +0 -375
- package/lib/components/Feed/FeedNewPostTypeMenu.js.map +0 -1
- package/lib/components/Feed/FeedPost.d.ts +0 -8
- package/lib/components/Feed/FeedPost.d.ts.map +0 -1
- package/lib/components/Feed/FeedPost.js +0 -85
- package/lib/components/Feed/FeedPost.js.map +0 -1
- package/lib/components/Feed/FeedReply.d.ts +0 -7
- package/lib/components/Feed/FeedReply.d.ts.map +0 -1
- package/lib/components/Feed/FeedReply.js +0 -36
- package/lib/components/Feed/FeedReply.js.map +0 -1
- package/lib/components/Feed/FeedReplyInput.d.ts +0 -7
- package/lib/components/Feed/FeedReplyInput.d.ts.map +0 -1
- package/lib/components/Feed/FeedReplyInput.js +0 -21
- package/lib/components/Feed/FeedReplyInput.js.map +0 -1
- package/lib/components/Feed/FeedRichText.d.ts +0 -6
- package/lib/components/Feed/FeedRichText.d.ts.map +0 -1
- package/lib/components/Feed/FeedRichText.js +0 -163
- package/lib/components/Feed/FeedRichText.js.map +0 -1
- package/lib/components/Feed/index.d.ts +0 -7
- package/lib/components/Feed/index.d.ts.map +0 -1
- package/lib/components/Feed/index.js +0 -6
- package/lib/components/Feed/index.js.map +0 -1
- package/lib/components/HashtagButton/HashtagButton.d.ts +0 -23
- package/lib/components/HashtagButton/HashtagButton.d.ts.map +0 -1
- package/lib/components/HashtagButton/HashtagButton.js +0 -44
- package/lib/components/HashtagButton/HashtagButton.js.map +0 -1
- package/lib/components/HashtagButton/index.d.ts +0 -3
- package/lib/components/HashtagButton/index.d.ts.map +0 -1
- package/lib/components/HashtagButton/index.js +0 -3
- package/lib/components/HashtagButton/index.js.map +0 -1
- package/lib/components/MentionButton/MentionButton.d.ts +0 -35
- package/lib/components/MentionButton/MentionButton.d.ts.map +0 -1
- package/lib/components/MentionButton/MentionButton.js +0 -94
- package/lib/components/MentionButton/MentionButton.js.map +0 -1
- package/lib/components/MentionButton/index.d.ts +0 -3
- package/lib/components/MentionButton/index.d.ts.map +0 -1
- package/lib/components/MentionButton/index.js +0 -3
- package/lib/components/MentionButton/index.js.map +0 -1
- package/lib/index.d.ts +0 -12
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -13
- package/lib/index.js.map +0 -1
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
|
-
import { mix, readableColor } from 'polished';
|
|
3
|
-
import { Button, calculateFontSize, defaultThemeProp, EmailDisplay, FieldValueList, MenuButton, StyledFieldName, StyledFieldValue, StyledSecondary, StyledSummaryItemActions, StyledVisual, tryCatch, readableHue, nlpColors, StyledPopover, StyledButton, StyledEmptyState, Count } from '@pega/cosmos-react-core';
|
|
4
|
-
import { StyledBanner } from '@pega/cosmos-react-core/lib/components/Banner/Banner';
|
|
5
|
-
import { StyledEmailSummaryItem, StyledMessageAndDate } from './EmailSummaryItem';
|
|
6
|
-
export const StyledEmailMoreInfoButton = styled.button `
|
|
7
|
-
min-height: 0.5rem;
|
|
8
|
-
min-width: 0.5rem;
|
|
9
|
-
flex-shrink: 0;
|
|
10
|
-
`;
|
|
11
|
-
export const StyledEmailHeader = styled.div(({ theme }) => {
|
|
12
|
-
return css `
|
|
13
|
-
grid-column-gap: ${theme.base.spacing};
|
|
14
|
-
padding: 0 0 calc(2 * ${theme.base.spacing}) calc(2 * ${theme.base.spacing});
|
|
15
|
-
${StyledVisual},${StyledSummaryItemActions} {
|
|
16
|
-
align-self: flex-start;
|
|
17
|
-
}
|
|
18
|
-
${StyledSecondary} {
|
|
19
|
-
margin-top: calc(0.5 * ${theme.base.spacing});
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
});
|
|
23
|
-
StyledEmailHeader.defaultProps = defaultThemeProp;
|
|
24
|
-
export const StyledSuggestedRepliesButton = styled(Button)(({ theme }) => {
|
|
25
|
-
return css `
|
|
26
|
-
& + & {
|
|
27
|
-
margin-inline-start: 0;
|
|
28
|
-
}
|
|
29
|
-
margin-block-start: ${theme.base.spacing};
|
|
30
|
-
:not(:last-child) {
|
|
31
|
-
margin-inline-end: ${theme.base.spacing};
|
|
32
|
-
}
|
|
33
|
-
`;
|
|
34
|
-
});
|
|
35
|
-
StyledSuggestedRepliesButton.defaultProps = defaultThemeProp;
|
|
36
|
-
export const StyledSuggestedRepliesMenuButton = styled(MenuButton)(({ theme }) => {
|
|
37
|
-
return css `
|
|
38
|
-
&&& {
|
|
39
|
-
margin-inline-start: 0;
|
|
40
|
-
}
|
|
41
|
-
margin-block-start: ${theme.base.spacing};
|
|
42
|
-
:not(:last-child) {
|
|
43
|
-
margin-inline-end: ${theme.base.spacing};
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
});
|
|
47
|
-
StyledSuggestedRepliesMenuButton.defaultProps = defaultThemeProp;
|
|
48
|
-
export const StyledEmailBody = styled.div ``;
|
|
49
|
-
export const StyledFromEmailDisplay = styled(EmailDisplay)(({ theme }) => {
|
|
50
|
-
const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
|
|
51
|
-
return css `
|
|
52
|
-
font-weight: ${theme.base['font-weight']['semi-bold']};
|
|
53
|
-
font-size: ${fontSize.m};
|
|
54
|
-
`;
|
|
55
|
-
});
|
|
56
|
-
StyledFromEmailDisplay.defaultProps = defaultThemeProp;
|
|
57
|
-
export const StyledEmailDisplay = styled.span `
|
|
58
|
-
font-size: inherit;
|
|
59
|
-
`;
|
|
60
|
-
export const StyledEmailPrimaryFieldValueList = styled(FieldValueList) `
|
|
61
|
-
grid-template-columns: auto 1fr;
|
|
62
|
-
`;
|
|
63
|
-
export const StyledEmailSecondaryFieldValueList = styled(FieldValueList)(({ theme }) => {
|
|
64
|
-
return css `
|
|
65
|
-
grid-template-columns: 1fr;
|
|
66
|
-
gap: 0;
|
|
67
|
-
padding: ${theme.base.spacing} 0;
|
|
68
|
-
${StyledFieldValue}:not(:last-child) {
|
|
69
|
-
margin-bottom: calc(2 * ${theme.base.spacing});
|
|
70
|
-
}
|
|
71
|
-
${StyledFieldName} {
|
|
72
|
-
margin-bottom: calc(0.25 * ${theme.base.spacing});
|
|
73
|
-
}
|
|
74
|
-
`;
|
|
75
|
-
});
|
|
76
|
-
StyledEmailSecondaryFieldValueList.defaultProps = defaultThemeProp;
|
|
77
|
-
export const StyledEmailMoreInfoPopover = styled.div `
|
|
78
|
-
max-width: 30rem;
|
|
79
|
-
`;
|
|
80
|
-
StyledEmailMoreInfoPopover.defaultProps = defaultThemeProp;
|
|
81
|
-
export const StyledSecondarySeparator = styled.div(({ theme }) => {
|
|
82
|
-
return css `
|
|
83
|
-
margin: 0 calc(${theme.base.spacing} / 2);
|
|
84
|
-
`;
|
|
85
|
-
});
|
|
86
|
-
StyledSecondarySeparator.defaultProps = defaultThemeProp;
|
|
87
|
-
export const StyledEmail = styled.div(({ theme }) => {
|
|
88
|
-
const { base: { spacing } } = theme;
|
|
89
|
-
return css `
|
|
90
|
-
${StyledBanner} {
|
|
91
|
-
padding: 0 calc(2 * ${spacing}) calc(2 * ${spacing});
|
|
92
|
-
}
|
|
93
|
-
`;
|
|
94
|
-
});
|
|
95
|
-
StyledEmail.defaultProps = defaultThemeProp;
|
|
96
|
-
export const StyledEmailEntity = styled.mark(({ entity, theme }) => {
|
|
97
|
-
const variant = entity.variant;
|
|
98
|
-
const backgroundColor = readableHue(nlpColors[variant % nlpColors.length], theme.base.palette['primary-background']);
|
|
99
|
-
const textColor = tryCatch(() => readableColor(backgroundColor));
|
|
100
|
-
return css `
|
|
101
|
-
border-radius: calc(${theme.base['border-radius']} / 3);
|
|
102
|
-
padding: 0 calc(0.5 * ${theme.base.spacing});
|
|
103
|
-
background-color: ${backgroundColor};
|
|
104
|
-
color: ${textColor};
|
|
105
|
-
display: inline-block;
|
|
106
|
-
`;
|
|
107
|
-
});
|
|
108
|
-
StyledEmailEntity.defaultProps = defaultThemeProp;
|
|
109
|
-
export const StyledEntityList = styled(FieldValueList)(({ theme }) => {
|
|
110
|
-
const textColor = tryCatch(() => readableColor(theme.base.palette['primary-background']));
|
|
111
|
-
return css `
|
|
112
|
-
${StyledFieldName} {
|
|
113
|
-
color: ${textColor};
|
|
114
|
-
}
|
|
115
|
-
${StyledEmailEntity} {
|
|
116
|
-
padding: 0 calc(0.5 * ${theme.base.spacing});
|
|
117
|
-
}
|
|
118
|
-
`;
|
|
119
|
-
});
|
|
120
|
-
StyledEntityList.defaultProps = defaultThemeProp;
|
|
121
|
-
export const StyledForwardedContentToggle = styled(Button) `
|
|
122
|
-
align-self: flex-start;
|
|
123
|
-
`;
|
|
124
|
-
export const StyledLoadMore = styled.div(({ theme }) => {
|
|
125
|
-
return css `
|
|
126
|
-
margin: ${theme.base.spacing} 0;
|
|
127
|
-
min-height: 2rem;
|
|
128
|
-
min-width: 2rem;
|
|
129
|
-
`;
|
|
130
|
-
});
|
|
131
|
-
StyledLoadMore.defaultProps = defaultThemeProp;
|
|
132
|
-
export const StyledContextMenuFieldSelector = styled.div(({ theme, selected }) => {
|
|
133
|
-
const background = selected
|
|
134
|
-
? theme.base.colors.green.medium
|
|
135
|
-
: theme.base.palette['primary-background'];
|
|
136
|
-
const borderColor = selected
|
|
137
|
-
? theme.base.colors.green['extra-light']
|
|
138
|
-
: theme.base.palette['primary-background'];
|
|
139
|
-
return css `
|
|
140
|
-
background-color: ${background};
|
|
141
|
-
border: 0.0625rem solid ${borderColor};
|
|
142
|
-
border-radius: 100%;
|
|
143
|
-
display: inline-block;
|
|
144
|
-
height: 0.625rem;
|
|
145
|
-
width: 0.625rem;
|
|
146
|
-
background-clip: content-box;
|
|
147
|
-
padding: 0.0625rem;
|
|
148
|
-
`;
|
|
149
|
-
});
|
|
150
|
-
StyledContextMenuFieldSelector.defaultProps = defaultThemeProp;
|
|
151
|
-
export const StyledEmailShellHeader = styled.header ``;
|
|
152
|
-
export const StyledEmailConversationList = styled.ul ``;
|
|
153
|
-
export const StyledEmailShell = styled.div(props => {
|
|
154
|
-
const { theme: { base }, singleConversation } = props;
|
|
155
|
-
return css `
|
|
156
|
-
min-width: 30rem;
|
|
157
|
-
height: 100%;
|
|
158
|
-
border-radius: ${base['border-radius']};
|
|
159
|
-
> ${StyledEmailShellHeader} {
|
|
160
|
-
padding-inline: calc(2 * ${base.spacing}) ${base.spacing};
|
|
161
|
-
padding-block: ${base.spacing};
|
|
162
|
-
background: ${base.palette['primary-background']};
|
|
163
|
-
border-radius: ${base['border-radius']};
|
|
164
|
-
|
|
165
|
-
${singleConversation &&
|
|
166
|
-
`
|
|
167
|
-
border-radius: ${base['border-radius']} ${base['border-radius']} 0 0;
|
|
168
|
-
border-bottom: 0.0625rem solid ${base.palette['border-line']};
|
|
169
|
-
`}
|
|
170
|
-
}
|
|
171
|
-
> ${StyledEmailConversationList} {
|
|
172
|
-
height: 100%;
|
|
173
|
-
overflow-y: auto;
|
|
174
|
-
list-style-type: none;
|
|
175
|
-
}
|
|
176
|
-
`;
|
|
177
|
-
});
|
|
178
|
-
StyledEmailShell.defaultProps = defaultThemeProp;
|
|
179
|
-
export const StyledContextMenu = styled.div(({ theme }) => {
|
|
180
|
-
return css `
|
|
181
|
-
header {
|
|
182
|
-
background-color: ${theme.base.palette['secondary-background']};
|
|
183
|
-
}
|
|
184
|
-
`;
|
|
185
|
-
});
|
|
186
|
-
StyledContextMenu.defaultProps = defaultThemeProp;
|
|
187
|
-
export const StyledList = styled.div(() => {
|
|
188
|
-
return css `
|
|
189
|
-
position: sticky;
|
|
190
|
-
`;
|
|
191
|
-
});
|
|
192
|
-
StyledList.defaultProps = defaultThemeProp;
|
|
193
|
-
export const StyledHeader = styled.header(() => {
|
|
194
|
-
return css `
|
|
195
|
-
position: sticky;
|
|
196
|
-
top: var(--appshell-offset);
|
|
197
|
-
height: 4rem;
|
|
198
|
-
padding-inline-start: 0;
|
|
199
|
-
`;
|
|
200
|
-
});
|
|
201
|
-
export const StyledEmailCaseViewHeader = styled.header(() => {
|
|
202
|
-
return css `
|
|
203
|
-
top: var(--appshell-offset);
|
|
204
|
-
height: 4rem;
|
|
205
|
-
padding-inline-start: 0;
|
|
206
|
-
`;
|
|
207
|
-
});
|
|
208
|
-
export const StyledUtilitiesContainer = styled.div(({ showExpandedUtilities }) => {
|
|
209
|
-
return css `
|
|
210
|
-
${showExpandedUtilities
|
|
211
|
-
? css `
|
|
212
|
-
flex-shrink: 0;
|
|
213
|
-
max-width: 23rem;
|
|
214
|
-
`
|
|
215
|
-
: css `
|
|
216
|
-
position: sticky;
|
|
217
|
-
top: calc(var(--appshell-offset));
|
|
218
|
-
height: fit-content;
|
|
219
|
-
`}
|
|
220
|
-
`;
|
|
221
|
-
});
|
|
222
|
-
export const StyledGridContainer = styled.div(({ theme, showExpandedUtilities, hasHeader }) => {
|
|
223
|
-
return css `
|
|
224
|
-
min-height: calc(100vh - var(--appshell-offset, 0rem));
|
|
225
|
-
background-color: ${theme.base.palette['app-background']};
|
|
226
|
-
${hasHeader &&
|
|
227
|
-
css `
|
|
228
|
-
top: calc(var(--appshell-offset) + var(--headerOffsetHeight));
|
|
229
|
-
`}
|
|
230
|
-
${!showExpandedUtilities &&
|
|
231
|
-
css `
|
|
232
|
-
width: auto;
|
|
233
|
-
`}
|
|
234
|
-
|
|
235
|
-
${StyledList} {
|
|
236
|
-
${hasHeader
|
|
237
|
-
? css `
|
|
238
|
-
top: calc(var(--appshell-offset) + var(--headerOffsetHeight));
|
|
239
|
-
height: calc(100vh - var(--appshell-offset) - var(--headerOffsetHeight));
|
|
240
|
-
`
|
|
241
|
-
: css `
|
|
242
|
-
top: calc(var(--appshell-offset));
|
|
243
|
-
height: calc(100vh - var(--appshell-offset));
|
|
244
|
-
`}
|
|
245
|
-
}
|
|
246
|
-
${StyledUtilitiesContainer} {
|
|
247
|
-
${hasHeader &&
|
|
248
|
-
css `
|
|
249
|
-
top: calc(var(--appshell-offset) + 4rem);
|
|
250
|
-
`}
|
|
251
|
-
}
|
|
252
|
-
`;
|
|
253
|
-
});
|
|
254
|
-
StyledGridContainer.defaultProps = defaultThemeProp;
|
|
255
|
-
export const StyledCollapsedUtilitiesToggle = styled.button(({ theme }) => {
|
|
256
|
-
return css `
|
|
257
|
-
color: ${theme.base.palette['foreground-color']};
|
|
258
|
-
align-self: center;
|
|
259
|
-
`;
|
|
260
|
-
});
|
|
261
|
-
StyledCollapsedUtilitiesToggle.defaultProps = defaultThemeProp;
|
|
262
|
-
export const StyledExpandedUtilitiesToggle = styled.button(({ theme }) => {
|
|
263
|
-
return css `
|
|
264
|
-
color: ${theme.base.palette['foreground-color']};
|
|
265
|
-
align-self: flex-end;
|
|
266
|
-
margin-inline-end: 0.375rem;
|
|
267
|
-
`;
|
|
268
|
-
});
|
|
269
|
-
StyledExpandedUtilitiesToggle.defaultProps = defaultThemeProp;
|
|
270
|
-
export const StyledDrawerUtilitiesToggle = styled.button(({ theme }) => {
|
|
271
|
-
return css `
|
|
272
|
-
color: ${theme.base.palette['foreground-color']};
|
|
273
|
-
align-self: end;
|
|
274
|
-
margin-block-start: 3rem;
|
|
275
|
-
`;
|
|
276
|
-
});
|
|
277
|
-
StyledDrawerUtilitiesToggle.defaultProps = defaultThemeProp;
|
|
278
|
-
export const StyledExpandedUtilities = styled.div(({ showExpandedUtilities }) => {
|
|
279
|
-
return css `
|
|
280
|
-
width: inherit;
|
|
281
|
-
${!showExpandedUtilities &&
|
|
282
|
-
css `
|
|
283
|
-
display: none;
|
|
284
|
-
`}
|
|
285
|
-
`;
|
|
286
|
-
});
|
|
287
|
-
export const StyledEmailActions = styled.div(() => {
|
|
288
|
-
return css `
|
|
289
|
-
${StyledButton} + ${StyledButton} {
|
|
290
|
-
margin-inline-start: 0;
|
|
291
|
-
}
|
|
292
|
-
${StyledButton} + ${StyledPopover} + ${StyledButton} {
|
|
293
|
-
margin-inline-start: 0;
|
|
294
|
-
}
|
|
295
|
-
`;
|
|
296
|
-
});
|
|
297
|
-
export const StyledUtilities = styled.div(({ showExpandedUtilities, theme }) => {
|
|
298
|
-
return css `
|
|
299
|
-
${showExpandedUtilities &&
|
|
300
|
-
css `
|
|
301
|
-
width: 25rem;
|
|
302
|
-
`}
|
|
303
|
-
margin-inline-end: calc(2 * ${theme.base.spacing});
|
|
304
|
-
`;
|
|
305
|
-
});
|
|
306
|
-
StyledUtilities.defaultProps = defaultThemeProp;
|
|
307
|
-
export const StyledEmailCaseViewColumns = styled.div(({ hasHeader }) => {
|
|
308
|
-
return css `
|
|
309
|
-
${StyledEmptyState} {
|
|
310
|
-
flex-grow: 1;
|
|
311
|
-
}
|
|
312
|
-
${StyledEmailShell} {
|
|
313
|
-
min-width: 0;
|
|
314
|
-
}
|
|
315
|
-
${StyledUtilitiesContainer} {
|
|
316
|
-
${hasHeader &&
|
|
317
|
-
css `
|
|
318
|
-
top: calc(var(--appshell-offset) + 4rem);
|
|
319
|
-
`}
|
|
320
|
-
}
|
|
321
|
-
`;
|
|
322
|
-
});
|
|
323
|
-
export const StyledEmailCaseViewDrawer = styled.div(({ theme }) => {
|
|
324
|
-
return css `
|
|
325
|
-
min-width: 21.875rem;
|
|
326
|
-
max-width: 31.25rem;
|
|
327
|
-
width: calc((100vw - 31.25rem) / 10 + 21.875rem);
|
|
328
|
-
background-color: ${theme.base.palette['primary-background']};
|
|
329
|
-
height: calc(100vh - 3rem);
|
|
330
|
-
z-index: ${theme.base['z-index'].drawer - 1};
|
|
331
|
-
top: 3rem;
|
|
332
|
-
`;
|
|
333
|
-
});
|
|
334
|
-
StyledEmailCaseViewDrawer.defaultProps = defaultThemeProp;
|
|
335
|
-
export const StyledEmailCaseViewContainer = styled.div(({ theme }) => {
|
|
336
|
-
return css `
|
|
337
|
-
padding-inline: calc(2 * ${theme.base.spacing});
|
|
338
|
-
`;
|
|
339
|
-
});
|
|
340
|
-
StyledEmailCaseViewContainer.defaultProps = defaultThemeProp;
|
|
341
|
-
export const StyledEmailManagerContainer = styled.div(({ theme }) => {
|
|
342
|
-
return css `
|
|
343
|
-
padding-inline: calc(2 * ${theme.base.spacing});
|
|
344
|
-
${StyledEmailCaseViewContainer} {
|
|
345
|
-
padding-inline: 0;
|
|
346
|
-
}
|
|
347
|
-
`;
|
|
348
|
-
});
|
|
349
|
-
StyledEmailManagerContainer.defaultProps = defaultThemeProp;
|
|
350
|
-
export const StyledEmailCountIcon = styled(Count)(({ theme }) => {
|
|
351
|
-
return css `
|
|
352
|
-
position: absolute;
|
|
353
|
-
inset-inline-start: calc(2.5 * ${theme.base.spacing});
|
|
354
|
-
inset-block-start: calc(-0.5 * ${theme.base.spacing});
|
|
355
|
-
padding-inline: calc(0.5 * ${theme.base.spacing});
|
|
356
|
-
`;
|
|
357
|
-
});
|
|
358
|
-
StyledEmailCountIcon.defaultProps = defaultThemeProp;
|
|
359
|
-
export const StyledEmailSummaryList = styled.ol(({ theme }) => {
|
|
360
|
-
return css `
|
|
361
|
-
height: 100%;
|
|
362
|
-
overflow-y: auto;
|
|
363
|
-
|
|
364
|
-
&:focus-visible {
|
|
365
|
-
outline: none;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
&:focus {
|
|
369
|
-
${StyledEmailSummaryItem}[data-current='true'] {
|
|
370
|
-
box-shadow: ${theme.base.shadow['focus-inset']};
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
`;
|
|
374
|
-
});
|
|
375
|
-
StyledEmailSummaryList.defaultProps = defaultThemeProp;
|
|
376
|
-
export const StyledEmailNotificationList = styled(StyledEmailSummaryList)(({ theme }) => {
|
|
377
|
-
const hoverColor = tryCatch(() => mix(0.85, theme.base.palette['primary-background'], theme.base.palette.interactive));
|
|
378
|
-
return css `
|
|
379
|
-
${StyledEmailSummaryItem} {
|
|
380
|
-
background-color: ${theme.components['app-shell'].nav['background-color']};
|
|
381
|
-
&:hover,
|
|
382
|
-
&:focus-within {
|
|
383
|
-
background-color: ${hoverColor};
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
${StyledMessageAndDate} {
|
|
387
|
-
flex-wrap: wrap;
|
|
388
|
-
}
|
|
389
|
-
`;
|
|
390
|
-
});
|
|
391
|
-
StyledEmailNotificationList.defaultProps = defaultThemeProp;
|
|
392
|
-
//# sourceMappingURL=Email.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Email.styles.js","sourceRoot":"","sources":["../../../src/components/Email/Email.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,KAAK,EACN,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,E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KAAK,CAAC,IAAI,CAAC,OAAO;qCAClB,KAAK,CAAC,IAAI,CAAC,OAAO;iCACtB,KAAK,CAAC,IAAI,CAAC,OAAO;GAChD,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,oBAAoB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAC5D,OAAO,GAAG,CAAA;;;;;;;;;QASJ,sBAAsB;sBACR,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC;;;GAGnD,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,sBAAsB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEvD,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACtF,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC/B,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CACpF,CAAC;IAEF,OAAO,GAAG,CAAA;MACN,sBAAsB;0BACF,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC;;;4BAGnD,UAAU;;;MAGhC,oBAAoB;;;GAGvB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,2BAA2B,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { mix, readableColor } from 'polished';\n\nimport {\n Button,\n calculateFontSize,\n defaultThemeProp,\n EmailDisplay,\n FieldValueList,\n MenuButton,\n StyledFieldName,\n StyledFieldValue,\n StyledSecondary,\n StyledSummaryItemActions,\n StyledVisual,\n tryCatch,\n readableHue,\n nlpColors,\n StyledPopover,\n StyledButton,\n StyledEmptyState,\n Count\n} from '@pega/cosmos-react-core';\nimport { StyledBanner } from '@pega/cosmos-react-core/lib/components/Banner/Banner';\n\nimport { EmailEntityProps, EmailShellProps } from './Email.types';\nimport { StyledEmailSummaryItem, StyledMessageAndDate } from './EmailSummaryItem';\n\nexport const StyledEmailMoreInfoButton = styled.button`\n min-height: 0.5rem;\n min-width: 0.5rem;\n flex-shrink: 0;\n`;\n\nexport const StyledEmailHeader = styled.div(({ theme }) => {\n return css`\n grid-column-gap: ${theme.base.spacing};\n padding: 0 0 calc(2 * ${theme.base.spacing}) calc(2 * ${theme.base.spacing});\n ${StyledVisual},${StyledSummaryItemActions} {\n align-self: flex-start;\n }\n ${StyledSecondary} {\n margin-top: calc(0.5 * ${theme.base.spacing});\n }\n `;\n});\n\nStyledEmailHeader.defaultProps = defaultThemeProp;\n\nexport const StyledSuggestedRepliesButton = styled(Button)(({ theme }) => {\n return css`\n & + & {\n margin-inline-start: 0;\n }\n margin-block-start: ${theme.base.spacing};\n :not(:last-child) {\n margin-inline-end: ${theme.base.spacing};\n }\n `;\n});\n\nStyledSuggestedRepliesButton.defaultProps = defaultThemeProp;\n\nexport const StyledSuggestedRepliesMenuButton = styled(MenuButton)(({ theme }) => {\n return css`\n &&& {\n margin-inline-start: 0;\n }\n margin-block-start: ${theme.base.spacing};\n :not(:last-child) {\n margin-inline-end: ${theme.base.spacing};\n }\n `;\n});\n\nStyledSuggestedRepliesMenuButton.defaultProps = defaultThemeProp;\n\nexport const StyledEmailBody = styled.div``;\n\nexport const StyledFromEmailDisplay = styled(EmailDisplay)(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n return css`\n font-weight: ${theme.base['font-weight']['semi-bold']};\n font-size: ${fontSize.m};\n `;\n});\n\nStyledFromEmailDisplay.defaultProps = defaultThemeProp;\n\nexport const StyledEmailDisplay = styled.span`\n font-size: inherit;\n`;\n\nexport const StyledEmailPrimaryFieldValueList = styled(FieldValueList)`\n grid-template-columns: auto 1fr;\n`;\n\nexport const StyledEmailSecondaryFieldValueList = styled(FieldValueList)(({ theme }) => {\n return css`\n grid-template-columns: 1fr;\n gap: 0;\n padding: ${theme.base.spacing} 0;\n ${StyledFieldValue}:not(:last-child) {\n margin-bottom: calc(2 * ${theme.base.spacing});\n }\n ${StyledFieldName} {\n margin-bottom: calc(0.25 * ${theme.base.spacing});\n }\n `;\n});\n\nStyledEmailSecondaryFieldValueList.defaultProps = defaultThemeProp;\n\nexport const StyledEmailMoreInfoPopover = styled.div`\n max-width: 30rem;\n`;\n\nStyledEmailMoreInfoPopover.defaultProps = defaultThemeProp;\n\nexport const StyledSecondarySeparator = styled.div(({ theme }) => {\n return css`\n margin: 0 calc(${theme.base.spacing} / 2);\n `;\n});\n\nStyledSecondarySeparator.defaultProps = defaultThemeProp;\n\nexport const StyledEmail = styled.div(({ theme }) => {\n const {\n base: { spacing }\n } = theme;\n return css`\n ${StyledBanner} {\n padding: 0 calc(2 * ${spacing}) calc(2 * ${spacing});\n }\n `;\n});\n\nStyledEmail.defaultProps = defaultThemeProp;\n\nexport const StyledEmailEntity = styled.mark<EmailEntityProps>(({ entity, theme }) => {\n const variant = entity.variant;\n const backgroundColor = readableHue(\n nlpColors[variant % nlpColors.length],\n theme.base.palette['primary-background']\n );\n const textColor = tryCatch(() => readableColor(backgroundColor));\n return css`\n border-radius: calc(${theme.base['border-radius']} / 3);\n padding: 0 calc(0.5 * ${theme.base.spacing});\n background-color: ${backgroundColor};\n color: ${textColor};\n display: inline-block;\n `;\n});\n\nStyledEmailEntity.defaultProps = defaultThemeProp;\n\nexport const StyledEntityList = styled(FieldValueList)(({ theme }) => {\n const textColor = tryCatch(() => readableColor(theme.base.palette['primary-background']));\n return css`\n ${StyledFieldName} {\n color: ${textColor};\n }\n ${StyledEmailEntity} {\n padding: 0 calc(0.5 * ${theme.base.spacing});\n }\n `;\n});\n\nStyledEntityList.defaultProps = defaultThemeProp;\n\nexport const StyledForwardedContentToggle = styled(Button)`\n align-self: flex-start;\n`;\n\nexport const StyledLoadMore = styled.div(({ theme }) => {\n return css`\n margin: ${theme.base.spacing} 0;\n min-height: 2rem;\n min-width: 2rem;\n `;\n});\n\nStyledLoadMore.defaultProps = defaultThemeProp;\n\nexport const StyledContextMenuFieldSelector = styled.div<{\n selected?: boolean;\n}>(({ theme, selected }) => {\n const background = selected\n ? theme.base.colors.green.medium\n : theme.base.palette['primary-background'];\n const borderColor = selected\n ? theme.base.colors.green['extra-light']\n : theme.base.palette['primary-background'];\n return css`\n background-color: ${background};\n border: 0.0625rem solid ${borderColor};\n border-radius: 100%;\n display: inline-block;\n height: 0.625rem;\n width: 0.625rem;\n background-clip: content-box;\n padding: 0.0625rem;\n `;\n});\n\nStyledContextMenuFieldSelector.defaultProps = defaultThemeProp;\n\nexport const StyledEmailShellHeader = styled.header``;\nexport const StyledEmailConversationList = styled.ul``;\nexport const StyledEmailShell = styled.div<EmailShellProps & { singleConversation?: boolean }>(\n props => {\n const {\n theme: { base },\n singleConversation\n } = props;\n return css`\n min-width: 30rem;\n height: 100%;\n border-radius: ${base['border-radius']};\n > ${StyledEmailShellHeader} {\n padding-inline: calc(2 * ${base.spacing}) ${base.spacing};\n padding-block: ${base.spacing};\n background: ${base.palette['primary-background']};\n border-radius: ${base['border-radius']};\n\n ${singleConversation &&\n `\n border-radius: ${base['border-radius']} ${base['border-radius']} 0 0;\n border-bottom: 0.0625rem solid ${base.palette['border-line']};\n `}\n }\n > ${StyledEmailConversationList} {\n height: 100%;\n overflow-y: auto;\n list-style-type: none;\n }\n `;\n }\n);\n\nStyledEmailShell.defaultProps = defaultThemeProp;\n\nexport const StyledContextMenu = styled.div(({ theme }) => {\n return css`\n header {\n background-color: ${theme.base.palette['secondary-background']};\n }\n `;\n});\n\nStyledContextMenu.defaultProps = defaultThemeProp;\n\nexport const StyledList = styled.div(() => {\n return css`\n position: sticky;\n `;\n});\n\nStyledList.defaultProps = defaultThemeProp;\n\nexport const StyledHeader = styled.header(() => {\n return css`\n position: sticky;\n top: var(--appshell-offset);\n height: 4rem;\n padding-inline-start: 0;\n `;\n});\n\nexport const StyledEmailCaseViewHeader = styled.header(() => {\n return css`\n top: var(--appshell-offset);\n height: 4rem;\n padding-inline-start: 0;\n `;\n});\n\nexport const StyledUtilitiesContainer = styled.div<{ showExpandedUtilities: boolean }>(\n ({ showExpandedUtilities }) => {\n return css`\n ${showExpandedUtilities\n ? css`\n flex-shrink: 0;\n max-width: 23rem;\n `\n : css`\n position: sticky;\n top: calc(var(--appshell-offset));\n height: fit-content;\n `}\n `;\n }\n);\n\nexport const StyledGridContainer = styled.div<{\n showExpandedUtilities?: boolean;\n hasHeader: boolean;\n}>(({ theme, showExpandedUtilities, hasHeader }) => {\n return css`\n min-height: calc(100vh - var(--appshell-offset, 0rem));\n background-color: ${theme.base.palette['app-background']};\n ${hasHeader &&\n css`\n top: calc(var(--appshell-offset) + var(--headerOffsetHeight));\n `}\n ${!showExpandedUtilities &&\n css`\n width: auto;\n `}\n\n ${StyledList} {\n ${hasHeader\n ? css`\n top: calc(var(--appshell-offset) + var(--headerOffsetHeight));\n height: calc(100vh - var(--appshell-offset) - var(--headerOffsetHeight));\n `\n : css`\n top: calc(var(--appshell-offset));\n height: calc(100vh - var(--appshell-offset));\n `}\n }\n ${StyledUtilitiesContainer} {\n ${hasHeader &&\n css`\n top: calc(var(--appshell-offset) + 4rem);\n `}\n }\n `;\n});\n\nStyledGridContainer.defaultProps = defaultThemeProp;\n\nexport const StyledCollapsedUtilitiesToggle = styled.button(({ theme }) => {\n return css`\n color: ${theme.base.palette['foreground-color']};\n align-self: center;\n `;\n});\n\nStyledCollapsedUtilitiesToggle.defaultProps = defaultThemeProp;\n\nexport const StyledExpandedUtilitiesToggle = styled.button(({ theme }) => {\n return css`\n color: ${theme.base.palette['foreground-color']};\n align-self: flex-end;\n margin-inline-end: 0.375rem;\n `;\n});\n\nStyledExpandedUtilitiesToggle.defaultProps = defaultThemeProp;\n\nexport const StyledDrawerUtilitiesToggle = styled.button(({ theme }) => {\n return css`\n color: ${theme.base.palette['foreground-color']};\n align-self: end;\n margin-block-start: 3rem;\n `;\n});\n\nStyledDrawerUtilitiesToggle.defaultProps = defaultThemeProp;\n\nexport const StyledExpandedUtilities = styled.div<{ showExpandedUtilities: boolean }>(\n ({ showExpandedUtilities }) => {\n return css`\n width: inherit;\n ${!showExpandedUtilities &&\n css`\n display: none;\n `}\n `;\n }\n);\n\nexport const StyledEmailActions = styled.div(() => {\n return css`\n ${StyledButton} + ${StyledButton} {\n margin-inline-start: 0;\n }\n ${StyledButton} + ${StyledPopover} + ${StyledButton} {\n margin-inline-start: 0;\n }\n `;\n});\n\nexport const StyledUtilities = styled.div<{ showExpandedUtilities: boolean }>(\n ({ showExpandedUtilities, theme }) => {\n return css`\n ${showExpandedUtilities &&\n css`\n width: 25rem;\n `}\n margin-inline-end: calc(2 * ${theme.base.spacing});\n `;\n }\n);\n\nStyledUtilities.defaultProps = defaultThemeProp;\n\nexport const StyledEmailCaseViewColumns = styled.div<{ hasHeader?: boolean }>(({ hasHeader }) => {\n return css`\n ${StyledEmptyState} {\n flex-grow: 1;\n }\n ${StyledEmailShell} {\n min-width: 0;\n }\n ${StyledUtilitiesContainer} {\n ${hasHeader &&\n css`\n top: calc(var(--appshell-offset) + 4rem);\n `}\n }\n `;\n});\n\nexport const StyledEmailCaseViewDrawer = styled.div(({ theme }) => {\n return css`\n min-width: 21.875rem;\n max-width: 31.25rem;\n width: calc((100vw - 31.25rem) / 10 + 21.875rem);\n background-color: ${theme.base.palette['primary-background']};\n height: calc(100vh - 3rem);\n z-index: ${theme.base['z-index'].drawer - 1};\n top: 3rem;\n `;\n});\n\nStyledEmailCaseViewDrawer.defaultProps = defaultThemeProp;\n\nexport const StyledEmailCaseViewContainer = styled.div(({ theme }) => {\n return css`\n padding-inline: calc(2 * ${theme.base.spacing});\n `;\n});\n\nStyledEmailCaseViewContainer.defaultProps = defaultThemeProp;\n\nexport const StyledEmailManagerContainer = styled.div(({ theme }) => {\n return css`\n padding-inline: calc(2 * ${theme.base.spacing});\n ${StyledEmailCaseViewContainer} {\n padding-inline: 0;\n }\n `;\n});\n\nStyledEmailManagerContainer.defaultProps = defaultThemeProp;\n\nexport const StyledEmailCountIcon = styled(Count)(({ theme }) => {\n return css`\n position: absolute;\n inset-inline-start: calc(2.5 * ${theme.base.spacing});\n inset-block-start: calc(-0.5 * ${theme.base.spacing});\n padding-inline: calc(0.5 * ${theme.base.spacing});\n `;\n});\n\nStyledEmailCountIcon.defaultProps = defaultThemeProp;\n\nexport const StyledEmailSummaryList = styled.ol(({ theme }) => {\n return css`\n height: 100%;\n overflow-y: auto;\n\n &:focus-visible {\n outline: none;\n }\n\n &:focus {\n ${StyledEmailSummaryItem}[data-current='true'] {\n box-shadow: ${theme.base.shadow['focus-inset']};\n }\n }\n `;\n});\nStyledEmailSummaryList.defaultProps = defaultThemeProp;\n\nexport const StyledEmailNotificationList = styled(StyledEmailSummaryList)(({ theme }) => {\n const hoverColor = tryCatch(() =>\n mix(0.85, theme.base.palette['primary-background'], theme.base.palette.interactive)\n );\n\n return css`\n ${StyledEmailSummaryItem} {\n background-color: ${theme.components['app-shell'].nav['background-color']};\n &:hover,\n &:focus-within {\n background-color: ${hoverColor};\n }\n }\n ${StyledMessageAndDate} {\n flex-wrap: wrap;\n }\n `;\n});\n\nStyledEmailNotificationList.defaultProps = defaultThemeProp;\n"]}
|