@pega/cosmos-react-work 9.5.4 → 9.5.5-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts +2 -0
  2. package/lib/components/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
  3. package/lib/components/AppAnnouncement/AppAnnouncement.js +8 -3
  4. package/lib/components/AppAnnouncement/AppAnnouncement.js.map +1 -1
  5. package/lib/components/GenAICoach/GenAICoach.d.ts.map +1 -1
  6. package/lib/components/GenAICoach/GenAICoach.js +183 -34
  7. package/lib/components/GenAICoach/GenAICoach.js.map +1 -1
  8. package/lib/components/GenAICoach/GenAICoach.styles.d.ts +216 -9
  9. package/lib/components/GenAICoach/GenAICoach.styles.d.ts.map +1 -1
  10. package/lib/components/GenAICoach/GenAICoach.styles.js +148 -57
  11. package/lib/components/GenAICoach/GenAICoach.styles.js.map +1 -1
  12. package/lib/components/GenAICoach/GenAICoach.types.d.ts +19 -3
  13. package/lib/components/GenAICoach/GenAICoach.types.d.ts.map +1 -1
  14. package/lib/components/GenAICoach/GenAICoach.types.js.map +1 -1
  15. package/lib/components/GenAICoach/GenAICoach.utils.d.ts +2 -1
  16. package/lib/components/GenAICoach/GenAICoach.utils.d.ts.map +1 -1
  17. package/lib/components/GenAICoach/GenAICoach.utils.js +1 -0
  18. package/lib/components/GenAICoach/GenAICoach.utils.js.map +1 -1
  19. package/lib/components/GenAICoach/GenAIMessage.d.ts.map +1 -1
  20. package/lib/components/GenAICoach/GenAIMessage.js +35 -17
  21. package/lib/components/GenAICoach/GenAIMessage.js.map +1 -1
  22. package/lib/components/GenAICoach/Questionnaire.d.ts.map +1 -1
  23. package/lib/components/GenAICoach/Questionnaire.js +20 -21
  24. package/lib/components/GenAICoach/Questionnaire.js.map +1 -1
  25. package/lib/components/Shortcuts/Shortcuts.d.ts.map +1 -1
  26. package/lib/components/Shortcuts/Shortcuts.js +20 -10
  27. package/lib/components/Shortcuts/Shortcuts.js.map +1 -1
  28. package/lib/components/Shortcuts/Shortcuts.styles.d.ts +1 -0
  29. package/lib/components/Shortcuts/Shortcuts.styles.d.ts.map +1 -1
  30. package/lib/components/Shortcuts/Shortcuts.styles.js +6 -1
  31. package/lib/components/Shortcuts/Shortcuts.styles.js.map +1 -1
  32. package/lib/components/Tasks/TaskCard.js +1 -1
  33. package/lib/components/Tasks/TaskCard.js.map +1 -1
  34. package/lib/components/Tasks/TaskList.d.ts +2 -1
  35. package/lib/components/Tasks/TaskList.d.ts.map +1 -1
  36. package/lib/components/Tasks/TaskList.js +25 -17
  37. package/lib/components/Tasks/TaskList.js.map +1 -1
  38. package/lib/components/Tasks/Tasks.d.ts +5 -0
  39. package/lib/components/Tasks/Tasks.d.ts.map +1 -1
  40. package/lib/components/Tasks/Tasks.js +7 -5
  41. package/lib/components/Tasks/Tasks.js.map +1 -1
  42. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import styled, { createGlobalStyle, css } from 'styled-components';
1
+ import styled, { createGlobalStyle, css, keyframes } from 'styled-components';
2
2
  import { useContext } from 'react';
3
3
  import { mix, darken, meetsContrastGuidelines, transparentize } from 'polished';
4
4
  import { AppShellContext, Button, FileList, Flex, FormControl, Icon, Image, MenuButton, InfoDialog, StyledEmptyState, StyledErrorState, StyledIcon, StyledText, SummaryItem, Text, TextArea, calculateFontSize, calculateForegroundColor, defaultThemeProp, isSolidColor, tryCatch, Avatar, Fullscreen, animations, Modal, StyledIconShape } from '@pega/cosmos-react-core';
@@ -18,7 +18,6 @@ import { StepMarker, StyledStepText } from '@pega/cosmos-react-core/lib/componen
18
18
  import { StyledResizeHandle } from '@pega/cosmos-react-core/lib/components/Drawer/ResizeHandle';
19
19
  import { StyledStages } from '../Stages/Stages.styles';
20
20
  import { isInUtilities } from './GenAICoach.utils';
21
- const maxWidthMessage = '62.5rem';
22
21
  export const StyledComposerSection = styled.div ``;
23
22
  export const StyledGenAIFormControl = styled(FormControl)(({ theme, focused }) => {
24
23
  return css `
@@ -84,7 +83,14 @@ StyledMessagesContainer.defaultProps = defaultThemeProp;
84
83
  export const StyledFullscreenWrapper = styled(Fullscreen) `
85
84
  height: 100%;
86
85
  `;
87
- export const StyledGenAICoachContainer = styled.div(({ theme: { base: { palette, 'z-index': zIndex, spacing, breakpoints, animation, 'border-radius': baseBorderRadius }, components: { card: { 'border-radius': cardBorderRadius }, agent: { background: agentBackground, 'foreground-color': agentForegroundColor }, 'form-control': { 'border-radius': formControlBorderRadius } } }, variant, fullScreen, isCompact, isPortalAgent }) => {
86
+ export const StyledHeaderContainer = styled(Flex)(({ theme }) => {
87
+ return css `
88
+ border-block-end: 0.0625rem solid
89
+ ${transparentize(0.88, theme.components.agent['foreground-color'])};
90
+ `;
91
+ });
92
+ StyledHeaderContainer.defaultProps = defaultThemeProp;
93
+ export const StyledGenAICoachContainer = styled.div(({ theme: { base: { palette, 'z-index': zIndex, spacing, breakpoints, animation, 'border-radius': baseBorderRadius }, components: { card: { 'border-radius': cardBorderRadius }, agent: { background: agentBackground, 'foreground-color': agentForegroundColor }, 'form-control': { 'border-radius': formControlBorderRadius } } }, variant, fullScreen, isCompact, isPortalAgent, simplifiedAgent }) => {
88
94
  const { previewActive } = useContext(AppShellContext);
89
95
  const foregroundColorForAgent = calculateForegroundColor(agentBackground, agentForegroundColor);
90
96
  return css `
@@ -93,6 +99,14 @@ export const StyledGenAICoachContainer = styled.div(({ theme: { base: { palette,
93
99
  min-width: var(--utilities-drawer-min-width);
94
100
  border-radius: ${cardBorderRadius};
95
101
  transition: height ${animation.speed} ${animation.timing.ease};
102
+ ${simplifiedAgent
103
+ ? css `
104
+ --message-container-width: 40rem;
105
+ --messages-list-margin-start: 0;
106
+ `
107
+ : css `
108
+ --message-container-width: 62.5rem;
109
+ `}
96
110
 
97
111
  ${variant.placement === 'dialog' &&
98
112
  css `
@@ -140,13 +154,22 @@ export const StyledGenAICoachContainer = styled.div(({ theme: { base: { palette,
140
154
 
141
155
  ${variant.placement === 'fullpage' &&
142
156
  css `
143
- height: var(--content-height-in-view, 100vh);
157
+ ${simplifiedAgent
158
+ ? css `
159
+ transition: height 0.6s cubic-bezier(0.4, 0, 0.6, 1);
160
+ height: var(--content-height-in-agent, var(--content-height-in-view, 100vh));
161
+ `
162
+ : css `
163
+ height: var(--content-height-in-view, 100vh);
164
+ `}
144
165
  `}
145
166
 
146
167
  ${isCompact &&
147
168
  css `
148
- height: 100%;
149
- max-height: var(--content-height-in-view, 100vh);
169
+ height: ${simplifiedAgent ? 'var(--compact-height, auto)' : '100%'};
170
+ max-height: ${simplifiedAgent
171
+ ? 'var(--content-height-in-agent, var(--content-height-in-view, 100vh))'
172
+ : 'var(--content-height-in-view, 100vh)'};
150
173
 
151
174
  ${StyledMessagesContainer} {
152
175
  margin-block-end: 0;
@@ -164,10 +187,16 @@ export const StyledGenAICoachContainer = styled.div(({ theme: { base: { palette,
164
187
  height: calc(100vh - var(--appshell-offset, 0vh));
165
188
  border-radius: 0;
166
189
  `}
190
+
191
+ ${StyledErrorState} {
192
+ ${StyledText} {
193
+ color: ${agentForegroundColor};
194
+ }
195
+ }
167
196
  `;
168
197
  });
169
198
  StyledGenAICoachContainer.defaultProps = defaultThemeProp;
170
- export const StyledGenAIOptionsMenu = styled(MenuButton)(({ theme: { base: { 'font-size': fontSize, 'font-scale': fontScale, 'font-weight': fontWeight, palette: { ai } } } }) => {
199
+ export const StyledGenAIOptionsMenu = styled(MenuButton)(({ theme: { base: { 'font-size': fontSize, 'font-scale': fontScale, 'font-weight': fontWeight }, components: { agent: { ai } } } }) => {
171
200
  const { l } = calculateFontSize(fontSize, fontScale);
172
201
  return css `
173
202
  color: inherit;
@@ -201,11 +230,17 @@ export const StyledDisclaimerText = styled(Text)(({ inFullPage, theme: { base: {
201
230
  `;
202
231
  });
203
232
  StyledDisclaimerText.defaultProps = defaultThemeProp;
204
- export const StyledFlexWrapper = styled.div `
205
- height: 100%;
206
- overflow-y: auto;
207
- position: relative;
208
- `;
233
+ export const StyledFlexWrapper = styled.div(({ isExpanded }) => css `
234
+ height: ${isExpanded ? 'auto' : '100%'};
235
+ overflow-y: auto;
236
+ position: relative;
237
+
238
+ ${isExpanded &&
239
+ css `
240
+ flex: 1 1 0;
241
+ min-height: 0;
242
+ `}
243
+ `);
209
244
  StyledFlexWrapper.defaultProps = defaultThemeProp;
210
245
  export const StyledGridContainer = styled.div(({ theme: { base }, conversationHistory }) => {
211
246
  return css `
@@ -223,11 +258,23 @@ export const StyledInitialMessageContainer = styled.div(() => {
223
258
  return css `
224
259
  ${StyledFormField} {
225
260
  width: 100%;
226
- max-width: ${maxWidthMessage};
261
+ max-width: var(--message-container-width);
227
262
  }
228
263
  `;
229
264
  });
230
265
  StyledInitialMessageContainer.defaultProps = defaultThemeProp;
266
+ export const StyledBannerSalutationBlock = styled.div(({ isExpanded }) => css `
267
+ transition:
268
+ opacity 0.45s ease,
269
+ transform 0.45s ease;
270
+ ${isExpanded &&
271
+ css `
272
+ opacity: 0;
273
+ transform: translateY(-1.5rem);
274
+ pointer-events: none;
275
+ `}
276
+ `);
277
+ StyledBannerSalutationBlock.defaultProps = defaultThemeProp;
231
278
  export const StyledInputContainer = styled(Flex)(({ theme: { base: { spacing } } }) => {
232
279
  return css `
233
280
  margin-block-end: ${spacing};
@@ -236,7 +283,7 @@ export const StyledInputContainer = styled(Flex)(({ theme: { base: { spacing } }
236
283
 
237
284
  ${StyledFormField}, ${StyledComposerSection} {
238
285
  width: 100%;
239
- max-width: ${maxWidthMessage};
286
+ max-width: var(--message-container-width);
240
287
  }
241
288
  `;
242
289
  });
@@ -281,13 +328,18 @@ export const StyledSuggestionsContainer = styled.div(({ theme: { base: { spacing
281
328
  `;
282
329
  });
283
330
  StyledSuggestionsContainer.defaultProps = defaultThemeProp;
284
- export const StyledMessage = styled.p(({ theme }) => {
331
+ export const StyledMessage = styled.p(({ theme, simplified }) => {
285
332
  return css `
286
333
  margin-block-start: calc(0.5 * ${theme.base.spacing});
287
334
  width: 100%;
288
335
  min-width: 0;
289
336
  overflow-wrap: break-word;
290
337
 
338
+ ${simplified &&
339
+ css `
340
+ padding-inline-start: calc(2.5rem + ${theme.base.spacing});
341
+ `}
342
+
291
343
  ${StyledEditorContainer} {
292
344
  padding: 0;
293
345
 
@@ -298,6 +350,14 @@ export const StyledMessage = styled.p(({ theme }) => {
298
350
  `;
299
351
  });
300
352
  StyledMessage.defaultProps = defaultThemeProp;
353
+ export const StyledMessageSender = styled(Text)(({ theme: { base: { 'font-size': fontSize, 'font-scale': fontScale, 'font-weight': fontWeight } } }) => {
354
+ return css `
355
+ font-size: ${calculateFontSize(fontSize, fontScale).xl};
356
+ font-weight: ${fontWeight['semi-bold']};
357
+ opacity: 0.7;
358
+ `;
359
+ });
360
+ StyledMessageSender.defaultProps = defaultThemeProp;
301
361
  export const StyledUserMessage = styled.li(({ theme: { base: { 'border-radius': borderRadius, spacing }, components: { agent: { 'user-message': { background: userMessageBackground, 'foreground-color': userMessageForegroundColor } } } } }) => {
302
362
  const foregroundColorForUserMessage = calculateForegroundColor(userMessageBackground, userMessageForegroundColor);
303
363
  return css `
@@ -314,15 +374,16 @@ export const StyledUserMessage = styled.li(({ theme: { base: { 'border-radius':
314
374
  `;
315
375
  });
316
376
  StyledUserMessage.defaultProps = defaultThemeProp;
317
- export const StyledSystemMessage = styled.li(({ stopped, theme: { base: { spacing, 'font-size': fontSize, 'font-scale': fontScale, 'font-weight': fontWeight, palette } } }) => {
377
+ export const StyledSystemMessage = styled.li(({ stopped, theme: { base: { spacing, 'font-size': fontSize, 'font-scale': fontScale, 'font-weight': fontWeight }, components: { agent: { 'foreground-color': agentForegroundColor, background: agentBackground } } } }) => {
318
378
  const systemFontSize = calculateFontSize(fontSize, fontScale).xs;
379
+ const foregroundColorForSystemMessage = calculateForegroundColor(agentBackground, agentForegroundColor);
319
380
  return css `
320
381
  display: flex;
321
382
  align-items: center;
322
383
  gap: ${spacing};
323
384
  overflow-wrap: break-word;
324
385
  font-size: ${systemFontSize};
325
- color: ${palette['foreground-color']};
386
+ color: ${foregroundColorForSystemMessage};
326
387
  opacity: 0.7;
327
388
  margin-block: calc(2 * ${spacing});
328
389
  ${stopped &&
@@ -334,20 +395,20 @@ export const StyledSystemMessage = styled.li(({ stopped, theme: { base: { spacin
334
395
  &::after {
335
396
  content: '';
336
397
  flex: 1;
337
- border-block-start: 0.0625rem solid ${palette['foreground-color']};
398
+ border-block-start: 0.0625rem solid ${foregroundColorForSystemMessage};
338
399
  opacity: 0.7;
339
400
  }
340
401
  `;
341
402
  });
342
403
  StyledSystemMessage.defaultProps = defaultThemeProp;
343
- export const StyledMessagesList = styled.ul(({ theme: { base: { shadow, spacing } } }) => {
404
+ export const StyledMessagesList = styled.ul(({ theme: { base: { shadow, spacing } }, simplified }) => {
344
405
  return css `
345
- padding-block-start: ${spacing};
406
+ padding-block-start: ${simplified ? `calc(4 * ${spacing})` : spacing};
346
407
  list-style-type: none;
347
408
  align-self: center;
348
- max-width: ${maxWidthMessage};
409
+ max-width: var(--message-container-width);
349
410
  width: 100%;
350
- margin-block-start: auto;
411
+ margin-block-start: var(--messages-list-margin-start, auto);
351
412
  min-height: var(--stream-buffer, auto);
352
413
 
353
414
  & > li {
@@ -415,7 +476,7 @@ export const StyledInnerList = styled.ul(({ theme }) => css `
415
476
  `);
416
477
  StyledInnerList.defaultProps = defaultThemeProp;
417
478
  export const StyledHistorySummaryListItem = styled(SummaryItem)(({ theme }) => {
418
- const hoverColor = tryCatch(() => mix(0.95, theme.base.palette['primary-background'], theme.base.palette.interactive));
479
+ const hoverColor = tryCatch(() => mix(0.95, theme.components.agent.history.background, theme.base.palette.interactive));
419
480
  return css `
420
481
  padding-inline: calc(2 * ${theme.base.spacing});
421
482
  padding-block: ${theme.base.spacing};
@@ -468,7 +529,7 @@ export const StyledAttachmentsList = styled(FileList)(({ theme }) => {
468
529
  StyledAttachmentsList.defaultProps = defaultThemeProp;
469
530
  export const StyledGuidedSuggestions = styled(MenuButton) `
470
531
  width: 100%;
471
- max-width: ${maxWidthMessage};
532
+ max-width: var(--message-container-width);
472
533
  > span {
473
534
  justify-content: center;
474
535
  }
@@ -478,7 +539,7 @@ export const StyledAgentIcon = styled.svg `
478
539
  height: 3rem;
479
540
  `;
480
541
  StyledAgentIcon.defaultProps = defaultThemeProp;
481
- export const StyledGenAITextArea = styled(TextArea)(({ theme: { components } }) => {
542
+ export const StyledGenAITextArea = styled(TextArea)(({ theme: { components, base }, simplified }) => {
482
543
  return css `
483
544
  border: none;
484
545
  box-shadow: none;
@@ -486,6 +547,10 @@ export const StyledGenAITextArea = styled(TextArea)(({ theme: { components } })
486
547
  max-height: 6rem;
487
548
  overflow-y: auto;
488
549
  padding-block-end: 0;
550
+ ${simplified &&
551
+ css `
552
+ padding: calc(2 * ${base.spacing});
553
+ `}
489
554
  &:focus:not([disabled]) {
490
555
  border: none;
491
556
  box-shadow: none;
@@ -494,22 +559,24 @@ export const StyledGenAITextArea = styled(TextArea)(({ theme: { components } })
494
559
  `;
495
560
  });
496
561
  StyledGenAITextArea.defaultProps = defaultThemeProp;
497
- export const StyledSendButton = styled(Button)(({ theme: { base: { 'border-radius': baseBorderRadius }, components: { 'form-control': { 'border-radius': formControlBorderRadius } } } }) => {
562
+ export const StyledSendButton = styled(Button)(({ theme: { base: { 'border-radius': baseBorderRadius }, components: { 'form-control': { 'border-radius': formControlBorderRadius } } }, simplified }) => {
563
+ const radiusMultiplier = simplified ? 0.5 : 1;
498
564
  return css `
499
- border-radius: calc(${baseBorderRadius} * ${formControlBorderRadius});
565
+ border-radius: calc(${baseBorderRadius} * ${formControlBorderRadius} * ${radiusMultiplier});
500
566
  margin-inline-start: auto;
501
567
  `;
502
568
  });
503
569
  StyledSendButton.defaultProps = defaultThemeProp;
504
- export const StyledStopGeneratingButton = styled(Button)(({ theme: { base: { 'border-radius': baseBorderRadius }, components: { 'form-control': { 'border-radius': formControlBorderRadius } } } }) => {
570
+ export const StyledStopGeneratingButton = styled(Button)(({ theme: { base: { 'border-radius': baseBorderRadius }, components: { 'form-control': { 'border-radius': formControlBorderRadius } } }, simplified }) => {
571
+ const radiusMultiplier = simplified ? 0.5 : 1;
505
572
  return css `
506
- border-radius: calc(${baseBorderRadius} * ${formControlBorderRadius});
573
+ border-radius: calc(${baseBorderRadius} * ${formControlBorderRadius} * ${radiusMultiplier});
507
574
  margin-inline-start: auto;
508
575
  `;
509
576
  });
510
577
  StyledStopGeneratingButton.defaultProps = defaultThemeProp;
511
578
  export const StyledInitialMessageGrid = styled.div `
512
- max-width: ${maxWidthMessage};
579
+ max-width: var(--message-container-width);
513
580
  width: 100%;
514
581
  `;
515
582
  export const StyledInitialMessageButton = styled(Button)(({ theme: { base: { spacing } } }) => {
@@ -530,15 +597,16 @@ StyledInitialMessageButton.defaultProps = defaultThemeProp;
530
597
  export const StyledInitialMessageText = styled.span `
531
598
  ${lineClamp(3)};
532
599
  `;
533
- export const StyledGenAIAvatar = styled(Avatar)(({ theme: { components: { agent: { 'coach-message': { avatar: { background: avatarBackground } } } } } }) => {
600
+ export const StyledGenAIAvatar = styled(Avatar)(({ theme: { components: { agent: { 'coach-message': { avatar: { background: avatarBackground, 'foreground-color': avatarForegroundColor } } } } } }) => {
534
601
  return css `
535
602
  background: ${avatarBackground};
603
+ color: ${avatarForegroundColor};
536
604
  `;
537
605
  });
538
606
  StyledGenAIAvatar.defaultProps = defaultThemeProp;
539
607
  export const StyledGenAIFooter = styled.div `
540
608
  width: 100%;
541
- max-width: ${maxWidthMessage};
609
+ max-width: var(--message-container-width);
542
610
  `;
543
611
  export const StyledToolMessage = styled.p(({ theme: { base: { spacing, palette: { 'border-line': borderLine } } } }) => {
544
612
  return css `
@@ -581,41 +649,52 @@ export const StyledScrollButton = styled(Button)(({ theme }) => {
581
649
  });
582
650
  StyledScrollButton.defaultProps = defaultThemeProp;
583
651
  export const ProgressAngleStyle = createGlobalStyle `
584
- @property --angle {
652
+ @property --progress-border-angle {
585
653
  syntax: "<angle>";
586
- inherits: true;
654
+ inherits: false;
587
655
  initial-value: 0deg;
588
656
  }
589
657
  `;
658
+ const progressBorderSpin = keyframes `
659
+ to { --progress-border-angle: 360deg; }
660
+ `;
590
661
  export const StyledProgressContainer = styled.div(({ theme }) => {
591
- const aiColor = isSolidColor(theme.base.palette.ai)
592
- ? theme.base.palette.ai
662
+ const aiColor = isSolidColor(theme.components.agent.ai)
663
+ ? theme.components.agent.ai
593
664
  : theme.base.colors.purple.dark;
594
665
  const aiTransparent = transparentize(0.85, aiColor);
666
+ const borderWidth = '0.0625rem';
595
667
  return css `
596
668
  position: relative;
597
- isolation: isolate;
598
669
  border-radius: calc(2 * ${theme.base.spacing});
599
670
  border-start-start-radius: calc(0.5 * ${theme.base.spacing});
600
- border: calc(0.125 * ${theme.base.spacing}) solid transparent;
601
- background:
602
- linear-gradient(${aiTransparent} 0 0) padding-box,
603
- conic-gradient(
604
- from var(--angle) in oklab,
605
- ${aiTransparent} 0%,
606
- ${aiTransparent} 10%,
607
- ${aiColor} 50%,
608
- ${aiTransparent} 90%,
609
- ${aiTransparent} 100%
610
- )
611
- border-box;
612
- animation: spin 1s ease-in-out infinite;
613
671
  width: fit-content;
614
672
 
615
- @keyframes spin {
616
- to {
617
- --angle: 360deg;
618
- }
673
+ &::before {
674
+ content: '';
675
+ position: absolute;
676
+ inset: -${borderWidth};
677
+ border-radius: calc(1.875 * ${theme.base.spacing} + ${borderWidth});
678
+ border-start-start-radius: calc(0.375 * ${theme.base.spacing} + ${borderWidth});
679
+ padding: ${borderWidth};
680
+ background: conic-gradient(
681
+ from var(--progress-border-angle, 0deg) in oklab,
682
+ ${aiTransparent} 0%,
683
+ ${aiTransparent} 10%,
684
+ ${aiColor} 50%,
685
+ ${aiTransparent} 90%,
686
+ ${aiTransparent} 100%
687
+ );
688
+ -webkit-mask:
689
+ linear-gradient(#000000 0 0) content-box,
690
+ linear-gradient(#000000 0 0);
691
+ -webkit-mask-composite: xor;
692
+ mask:
693
+ linear-gradient(#000000 0 0) content-box,
694
+ linear-gradient(#000000 0 0);
695
+ mask-composite: exclude;
696
+ pointer-events: none;
697
+ animation: ${progressBorderSpin} 1.25s linear infinite;
619
698
  }
620
699
  `;
621
700
  });
@@ -635,7 +714,7 @@ export const StyledProgressContent = styled.div(({ theme }) => {
635
714
  StyledProgressContent.defaultProps = defaultThemeProp;
636
715
  export const StyledProgressText = styled(Text)(({ theme }) => {
637
716
  return css `
638
- color: ${theme.base.palette.ai};
717
+ color: ${theme.components.agent.ai};
639
718
  `;
640
719
  });
641
720
  StyledProgressText.defaultProps = defaultThemeProp;
@@ -1048,16 +1127,28 @@ export const StyledActiveCaseStages = styled.div(({ theme }) => {
1048
1127
  `;
1049
1128
  });
1050
1129
  StyledActiveCaseStages.defaultProps = defaultThemeProp;
1051
- export const StyledSalutation = styled(Text)(({ theme }) => {
1130
+ export const StyledSalutation = styled(Text)(({ theme, simplified }) => {
1052
1131
  return css `
1053
1132
  text-align: center;
1054
1133
  overflow-wrap: break-word;
1055
1134
  word-break: break-word;
1056
- font-size: clamp(1.5rem, 1.333rem + 0.052vw, 2rem);
1135
+ font-size: ${simplified
1136
+ ? 'clamp(2.5rem, 2rem + 1vw, 3.5rem)'
1137
+ : 'clamp(1.5rem, 1.333rem + 0.052vw, 2rem)'};
1057
1138
  font-weight: ${theme.base['font-weight'].bold};
1058
1139
  `;
1059
1140
  });
1060
1141
  StyledSalutation.defaultProps = defaultThemeProp;
1142
+ export const StyledSubHeading = styled(Text)(({ theme }) => {
1143
+ const { xxl } = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
1144
+ return css `
1145
+ text-align: center;
1146
+ overflow-wrap: break-word;
1147
+ word-break: break-word;
1148
+ font-size: ${xxl};
1149
+ `;
1150
+ });
1151
+ StyledSubHeading.defaultProps = defaultThemeProp;
1061
1152
  export const StyledQuestionnaireCard = styled.article(({ theme: { base: { spacing, palette: { 'border-line': borderLine } }, components: { agent: { questionnaire: { background, 'foreground-color': foregroundColor } } } } }) => {
1062
1153
  const foreground = calculateForegroundColor(background, foregroundColor);
1063
1154
  return css `