@pega/cosmos-react-work 10.0.0-build.2.0 → 10.0.0-build.2.10

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 (27) hide show
  1. package/lib/components/CaseView/CaseView.styles.d.ts.map +1 -1
  2. package/lib/components/CaseView/CaseView.styles.js +7 -3
  3. package/lib/components/CaseView/CaseView.styles.js.map +1 -1
  4. package/lib/components/GenAICoach/GenAICoach.d.ts.map +1 -1
  5. package/lib/components/GenAICoach/GenAICoach.js +168 -26
  6. package/lib/components/GenAICoach/GenAICoach.js.map +1 -1
  7. package/lib/components/GenAICoach/GenAICoach.styles.d.ts +216 -9
  8. package/lib/components/GenAICoach/GenAICoach.styles.d.ts.map +1 -1
  9. package/lib/components/GenAICoach/GenAICoach.styles.js +142 -57
  10. package/lib/components/GenAICoach/GenAICoach.styles.js.map +1 -1
  11. package/lib/components/GenAICoach/GenAICoach.types.d.ts +14 -2
  12. package/lib/components/GenAICoach/GenAICoach.types.d.ts.map +1 -1
  13. package/lib/components/GenAICoach/GenAICoach.types.js.map +1 -1
  14. package/lib/components/GenAICoach/GenAIMessage.d.ts.map +1 -1
  15. package/lib/components/GenAICoach/GenAIMessage.js +22 -17
  16. package/lib/components/GenAICoach/GenAIMessage.js.map +1 -1
  17. package/lib/components/Stages/Stages.styles.d.ts +43 -0
  18. package/lib/components/Stages/Stages.styles.d.ts.map +1 -1
  19. package/lib/components/Stages/Stages.styles.js +110 -30
  20. package/lib/components/Stages/Stages.styles.js.map +1 -1
  21. package/lib/components/Stakeholders/Stakeholders.d.ts.map +1 -1
  22. package/lib/components/Stakeholders/Stakeholders.js +2 -2
  23. package/lib/components/Stakeholders/Stakeholders.js.map +1 -1
  24. package/lib/components/Stakeholders/Stakeholders.types.d.ts +1 -1
  25. package/lib/components/Stakeholders/Stakeholders.types.d.ts.map +1 -1
  26. package/lib/components/Stakeholders/Stakeholders.types.js.map +1 -1
  27. 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;
@@ -167,7 +190,7 @@ export const StyledGenAICoachContainer = styled.div(({ theme: { base: { palette,
167
190
  `;
168
191
  });
169
192
  StyledGenAICoachContainer.defaultProps = defaultThemeProp;
170
- export const StyledGenAIOptionsMenu = styled(MenuButton)(({ theme: { base: { 'font-size': fontSize, 'font-scale': fontScale, 'font-weight': fontWeight, palette: { ai } } } }) => {
193
+ export const StyledGenAIOptionsMenu = styled(MenuButton)(({ theme: { base: { 'font-size': fontSize, 'font-scale': fontScale, 'font-weight': fontWeight }, components: { agent: { ai } } } }) => {
171
194
  const { l } = calculateFontSize(fontSize, fontScale);
172
195
  return css `
173
196
  color: inherit;
@@ -201,11 +224,17 @@ export const StyledDisclaimerText = styled(Text)(({ inFullPage, theme: { base: {
201
224
  `;
202
225
  });
203
226
  StyledDisclaimerText.defaultProps = defaultThemeProp;
204
- export const StyledFlexWrapper = styled.div `
205
- height: 100%;
206
- overflow-y: auto;
207
- position: relative;
208
- `;
227
+ export const StyledFlexWrapper = styled.div(({ isExpanded }) => css `
228
+ height: ${isExpanded ? 'auto' : '100%'};
229
+ overflow-y: auto;
230
+ position: relative;
231
+
232
+ ${isExpanded &&
233
+ css `
234
+ flex: 1 1 0;
235
+ min-height: 0;
236
+ `}
237
+ `);
209
238
  StyledFlexWrapper.defaultProps = defaultThemeProp;
210
239
  export const StyledGridContainer = styled.div(({ theme: { base }, conversationHistory }) => {
211
240
  return css `
@@ -223,11 +252,23 @@ export const StyledInitialMessageContainer = styled.div(() => {
223
252
  return css `
224
253
  ${StyledFormField} {
225
254
  width: 100%;
226
- max-width: ${maxWidthMessage};
255
+ max-width: var(--message-container-width);
227
256
  }
228
257
  `;
229
258
  });
230
259
  StyledInitialMessageContainer.defaultProps = defaultThemeProp;
260
+ export const StyledBannerSalutationBlock = styled.div(({ isExpanded }) => css `
261
+ transition:
262
+ opacity 0.45s ease,
263
+ transform 0.45s ease;
264
+ ${isExpanded &&
265
+ css `
266
+ opacity: 0;
267
+ transform: translateY(-1.5rem);
268
+ pointer-events: none;
269
+ `}
270
+ `);
271
+ StyledBannerSalutationBlock.defaultProps = defaultThemeProp;
231
272
  export const StyledInputContainer = styled(Flex)(({ theme: { base: { spacing } } }) => {
232
273
  return css `
233
274
  margin-block-end: ${spacing};
@@ -236,7 +277,7 @@ export const StyledInputContainer = styled(Flex)(({ theme: { base: { spacing } }
236
277
 
237
278
  ${StyledFormField}, ${StyledComposerSection} {
238
279
  width: 100%;
239
- max-width: ${maxWidthMessage};
280
+ max-width: var(--message-container-width);
240
281
  }
241
282
  `;
242
283
  });
@@ -281,13 +322,18 @@ export const StyledSuggestionsContainer = styled.div(({ theme: { base: { spacing
281
322
  `;
282
323
  });
283
324
  StyledSuggestionsContainer.defaultProps = defaultThemeProp;
284
- export const StyledMessage = styled.p(({ theme }) => {
325
+ export const StyledMessage = styled.p(({ theme, simplified }) => {
285
326
  return css `
286
327
  margin-block-start: calc(0.5 * ${theme.base.spacing});
287
328
  width: 100%;
288
329
  min-width: 0;
289
330
  overflow-wrap: break-word;
290
331
 
332
+ ${simplified &&
333
+ css `
334
+ padding-inline-start: calc(2.5rem + ${theme.base.spacing});
335
+ `}
336
+
291
337
  ${StyledEditorContainer} {
292
338
  padding: 0;
293
339
 
@@ -298,6 +344,14 @@ export const StyledMessage = styled.p(({ theme }) => {
298
344
  `;
299
345
  });
300
346
  StyledMessage.defaultProps = defaultThemeProp;
347
+ export const StyledMessageSender = styled(Text)(({ theme: { base: { 'font-size': fontSize, 'font-scale': fontScale, 'font-weight': fontWeight } } }) => {
348
+ return css `
349
+ font-size: ${calculateFontSize(fontSize, fontScale).xl};
350
+ font-weight: ${fontWeight['semi-bold']};
351
+ opacity: 0.7;
352
+ `;
353
+ });
354
+ StyledMessageSender.defaultProps = defaultThemeProp;
301
355
  export const StyledUserMessage = styled.li(({ theme: { base: { 'border-radius': borderRadius, spacing }, components: { agent: { 'user-message': { background: userMessageBackground, 'foreground-color': userMessageForegroundColor } } } } }) => {
302
356
  const foregroundColorForUserMessage = calculateForegroundColor(userMessageBackground, userMessageForegroundColor);
303
357
  return css `
@@ -314,15 +368,16 @@ export const StyledUserMessage = styled.li(({ theme: { base: { 'border-radius':
314
368
  `;
315
369
  });
316
370
  StyledUserMessage.defaultProps = defaultThemeProp;
317
- export const StyledSystemMessage = styled.li(({ stopped, theme: { base: { spacing, 'font-size': fontSize, 'font-scale': fontScale, 'font-weight': fontWeight, palette } } }) => {
371
+ 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
372
  const systemFontSize = calculateFontSize(fontSize, fontScale).xs;
373
+ const foregroundColorForSystemMessage = calculateForegroundColor(agentBackground, agentForegroundColor);
319
374
  return css `
320
375
  display: flex;
321
376
  align-items: center;
322
377
  gap: ${spacing};
323
378
  overflow-wrap: break-word;
324
379
  font-size: ${systemFontSize};
325
- color: ${palette['foreground-color']};
380
+ color: ${foregroundColorForSystemMessage};
326
381
  opacity: 0.7;
327
382
  margin-block: calc(2 * ${spacing});
328
383
  ${stopped &&
@@ -334,20 +389,20 @@ export const StyledSystemMessage = styled.li(({ stopped, theme: { base: { spacin
334
389
  &::after {
335
390
  content: '';
336
391
  flex: 1;
337
- border-block-start: 0.0625rem solid ${palette['foreground-color']};
392
+ border-block-start: 0.0625rem solid ${foregroundColorForSystemMessage};
338
393
  opacity: 0.7;
339
394
  }
340
395
  `;
341
396
  });
342
397
  StyledSystemMessage.defaultProps = defaultThemeProp;
343
- export const StyledMessagesList = styled.ul(({ theme: { base: { shadow, spacing } } }) => {
398
+ export const StyledMessagesList = styled.ul(({ theme: { base: { shadow, spacing } }, simplified }) => {
344
399
  return css `
345
- padding-block-start: ${spacing};
400
+ padding-block-start: ${simplified ? `calc(4 * ${spacing})` : spacing};
346
401
  list-style-type: none;
347
402
  align-self: center;
348
- max-width: ${maxWidthMessage};
403
+ max-width: var(--message-container-width);
349
404
  width: 100%;
350
- margin-block-start: auto;
405
+ margin-block-start: var(--messages-list-margin-start, auto);
351
406
  min-height: var(--stream-buffer, auto);
352
407
 
353
408
  & > li {
@@ -415,7 +470,7 @@ export const StyledInnerList = styled.ul(({ theme }) => css `
415
470
  `);
416
471
  StyledInnerList.defaultProps = defaultThemeProp;
417
472
  export const StyledHistorySummaryListItem = styled(SummaryItem)(({ theme }) => {
418
- const hoverColor = tryCatch(() => mix(0.95, theme.base.palette['primary-background'], theme.base.palette.interactive));
473
+ const hoverColor = tryCatch(() => mix(0.95, theme.components.agent.history.background, theme.base.palette.interactive));
419
474
  return css `
420
475
  padding-inline: calc(2 * ${theme.base.spacing});
421
476
  padding-block: ${theme.base.spacing};
@@ -468,7 +523,7 @@ export const StyledAttachmentsList = styled(FileList)(({ theme }) => {
468
523
  StyledAttachmentsList.defaultProps = defaultThemeProp;
469
524
  export const StyledGuidedSuggestions = styled(MenuButton) `
470
525
  width: 100%;
471
- max-width: ${maxWidthMessage};
526
+ max-width: var(--message-container-width);
472
527
  > span {
473
528
  justify-content: center;
474
529
  }
@@ -478,7 +533,7 @@ export const StyledAgentIcon = styled.svg `
478
533
  height: 3rem;
479
534
  `;
480
535
  StyledAgentIcon.defaultProps = defaultThemeProp;
481
- export const StyledGenAITextArea = styled(TextArea)(({ theme: { components } }) => {
536
+ export const StyledGenAITextArea = styled(TextArea)(({ theme: { components, base }, simplified }) => {
482
537
  return css `
483
538
  border: none;
484
539
  box-shadow: none;
@@ -486,6 +541,10 @@ export const StyledGenAITextArea = styled(TextArea)(({ theme: { components } })
486
541
  max-height: 6rem;
487
542
  overflow-y: auto;
488
543
  padding-block-end: 0;
544
+ ${simplified &&
545
+ css `
546
+ padding: calc(2 * ${base.spacing});
547
+ `}
489
548
  &:focus:not([disabled]) {
490
549
  border: none;
491
550
  box-shadow: none;
@@ -494,22 +553,24 @@ export const StyledGenAITextArea = styled(TextArea)(({ theme: { components } })
494
553
  `;
495
554
  });
496
555
  StyledGenAITextArea.defaultProps = defaultThemeProp;
497
- export const StyledSendButton = styled(Button)(({ theme: { base: { 'border-radius': baseBorderRadius }, components: { 'form-control': { 'border-radius': formControlBorderRadius } } } }) => {
556
+ export const StyledSendButton = styled(Button)(({ theme: { base: { 'border-radius': baseBorderRadius }, components: { 'form-control': { 'border-radius': formControlBorderRadius } } }, simplified }) => {
557
+ const radiusMultiplier = simplified ? 0.5 : 1;
498
558
  return css `
499
- border-radius: calc(${baseBorderRadius} * ${formControlBorderRadius});
559
+ border-radius: calc(${baseBorderRadius} * ${formControlBorderRadius} * ${radiusMultiplier});
500
560
  margin-inline-start: auto;
501
561
  `;
502
562
  });
503
563
  StyledSendButton.defaultProps = defaultThemeProp;
504
- export const StyledStopGeneratingButton = styled(Button)(({ theme: { base: { 'border-radius': baseBorderRadius }, components: { 'form-control': { 'border-radius': formControlBorderRadius } } } }) => {
564
+ export const StyledStopGeneratingButton = styled(Button)(({ theme: { base: { 'border-radius': baseBorderRadius }, components: { 'form-control': { 'border-radius': formControlBorderRadius } } }, simplified }) => {
565
+ const radiusMultiplier = simplified ? 0.5 : 1;
505
566
  return css `
506
- border-radius: calc(${baseBorderRadius} * ${formControlBorderRadius});
567
+ border-radius: calc(${baseBorderRadius} * ${formControlBorderRadius} * ${radiusMultiplier});
507
568
  margin-inline-start: auto;
508
569
  `;
509
570
  });
510
571
  StyledStopGeneratingButton.defaultProps = defaultThemeProp;
511
572
  export const StyledInitialMessageGrid = styled.div `
512
- max-width: ${maxWidthMessage};
573
+ max-width: var(--message-container-width);
513
574
  width: 100%;
514
575
  `;
515
576
  export const StyledInitialMessageButton = styled(Button)(({ theme: { base: { spacing } } }) => {
@@ -530,15 +591,16 @@ StyledInitialMessageButton.defaultProps = defaultThemeProp;
530
591
  export const StyledInitialMessageText = styled.span `
531
592
  ${lineClamp(3)};
532
593
  `;
533
- export const StyledGenAIAvatar = styled(Avatar)(({ theme: { components: { agent: { 'coach-message': { avatar: { background: avatarBackground } } } } } }) => {
594
+ export const StyledGenAIAvatar = styled(Avatar)(({ theme: { components: { agent: { 'coach-message': { avatar: { background: avatarBackground, 'foreground-color': avatarForegroundColor } } } } } }) => {
534
595
  return css `
535
596
  background: ${avatarBackground};
597
+ color: ${avatarForegroundColor};
536
598
  `;
537
599
  });
538
600
  StyledGenAIAvatar.defaultProps = defaultThemeProp;
539
601
  export const StyledGenAIFooter = styled.div `
540
602
  width: 100%;
541
- max-width: ${maxWidthMessage};
603
+ max-width: var(--message-container-width);
542
604
  `;
543
605
  export const StyledToolMessage = styled.p(({ theme: { base: { spacing, palette: { 'border-line': borderLine } } } }) => {
544
606
  return css `
@@ -581,41 +643,52 @@ export const StyledScrollButton = styled(Button)(({ theme }) => {
581
643
  });
582
644
  StyledScrollButton.defaultProps = defaultThemeProp;
583
645
  export const ProgressAngleStyle = createGlobalStyle `
584
- @property --angle {
646
+ @property --progress-border-angle {
585
647
  syntax: "<angle>";
586
- inherits: true;
648
+ inherits: false;
587
649
  initial-value: 0deg;
588
650
  }
589
651
  `;
652
+ const progressBorderSpin = keyframes `
653
+ to { --progress-border-angle: 360deg; }
654
+ `;
590
655
  export const StyledProgressContainer = styled.div(({ theme }) => {
591
- const aiColor = isSolidColor(theme.base.palette.ai)
592
- ? theme.base.palette.ai
656
+ const aiColor = isSolidColor(theme.components.agent.ai)
657
+ ? theme.components.agent.ai
593
658
  : theme.base.colors.purple.dark;
594
659
  const aiTransparent = transparentize(0.85, aiColor);
660
+ const borderWidth = '0.0625rem';
595
661
  return css `
596
662
  position: relative;
597
- isolation: isolate;
598
663
  border-radius: calc(2 * ${theme.base.spacing});
599
664
  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
665
  width: fit-content;
614
666
 
615
- @keyframes spin {
616
- to {
617
- --angle: 360deg;
618
- }
667
+ &::before {
668
+ content: '';
669
+ position: absolute;
670
+ inset: -${borderWidth};
671
+ border-radius: calc(1.875 * ${theme.base.spacing} + ${borderWidth});
672
+ border-start-start-radius: calc(0.375 * ${theme.base.spacing} + ${borderWidth});
673
+ padding: ${borderWidth};
674
+ background: conic-gradient(
675
+ from var(--progress-border-angle, 0deg) in oklab,
676
+ ${aiTransparent} 0%,
677
+ ${aiTransparent} 10%,
678
+ ${aiColor} 50%,
679
+ ${aiTransparent} 90%,
680
+ ${aiTransparent} 100%
681
+ );
682
+ -webkit-mask:
683
+ linear-gradient(#000000 0 0) content-box,
684
+ linear-gradient(#000000 0 0);
685
+ -webkit-mask-composite: xor;
686
+ mask:
687
+ linear-gradient(#000000 0 0) content-box,
688
+ linear-gradient(#000000 0 0);
689
+ mask-composite: exclude;
690
+ pointer-events: none;
691
+ animation: ${progressBorderSpin} 1.25s linear infinite;
619
692
  }
620
693
  `;
621
694
  });
@@ -635,7 +708,7 @@ export const StyledProgressContent = styled.div(({ theme }) => {
635
708
  StyledProgressContent.defaultProps = defaultThemeProp;
636
709
  export const StyledProgressText = styled(Text)(({ theme }) => {
637
710
  return css `
638
- color: ${theme.base.palette.ai};
711
+ color: ${theme.components.agent.ai};
639
712
  `;
640
713
  });
641
714
  StyledProgressText.defaultProps = defaultThemeProp;
@@ -1047,16 +1120,28 @@ export const StyledActiveCaseStages = styled.div(({ theme }) => {
1047
1120
  `;
1048
1121
  });
1049
1122
  StyledActiveCaseStages.defaultProps = defaultThemeProp;
1050
- export const StyledSalutation = styled(Text)(({ theme }) => {
1123
+ export const StyledSalutation = styled(Text)(({ theme, simplified }) => {
1051
1124
  return css `
1052
1125
  text-align: center;
1053
1126
  overflow-wrap: break-word;
1054
1127
  word-break: break-word;
1055
- font-size: clamp(1.5rem, 1.333rem + 0.052vw, 2rem);
1128
+ font-size: ${simplified
1129
+ ? 'clamp(2.5rem, 2rem + 1vw, 3.5rem)'
1130
+ : 'clamp(1.5rem, 1.333rem + 0.052vw, 2rem)'};
1056
1131
  font-weight: ${theme.base['font-weight'].bold};
1057
1132
  `;
1058
1133
  });
1059
1134
  StyledSalutation.defaultProps = defaultThemeProp;
1135
+ export const StyledSubHeading = styled(Text)(({ theme }) => {
1136
+ const { xxl } = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
1137
+ return css `
1138
+ text-align: center;
1139
+ overflow-wrap: break-word;
1140
+ word-break: break-word;
1141
+ font-size: ${xxl};
1142
+ `;
1143
+ });
1144
+ StyledSubHeading.defaultProps = defaultThemeProp;
1060
1145
  export const StyledQuestionnaireCard = styled.article(({ theme: { base: { spacing, palette: { 'border-line': borderLine } }, components: { agent: { questionnaire: { background, 'foreground-color': foregroundColor } } } } }) => {
1061
1146
  const foreground = calculateForegroundColor(background, foregroundColor);
1062
1147
  return css `