@carbon/ibm-products 2.79.0 → 2.80.0-rc.0

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 (142) hide show
  1. package/css/carbon.css +39 -19
  2. package/css/carbon.css.map +1 -1
  3. package/css/index-full-carbon.css +186 -80
  4. package/css/index-full-carbon.css.map +1 -1
  5. package/css/index-full-carbon.min.css +1 -1
  6. package/css/index-full-carbon.min.css.map +1 -1
  7. package/css/index-without-carbon-released-only.css +147 -61
  8. package/css/index-without-carbon-released-only.css.map +1 -1
  9. package/css/index-without-carbon-released-only.min.css +1 -1
  10. package/css/index-without-carbon-released-only.min.css.map +1 -1
  11. package/css/index-without-carbon.css +147 -61
  12. package/css/index-without-carbon.css.map +1 -1
  13. package/css/index-without-carbon.min.css +1 -1
  14. package/css/index-without-carbon.min.css.map +1 -1
  15. package/css/index.css +150 -66
  16. package/css/index.css.map +1 -1
  17. package/css/index.min.css +1 -1
  18. package/css/index.min.css.map +1 -1
  19. package/es/components/Coachmark/Coachmark.d.ts +2 -1
  20. package/es/components/Coachmark/Coachmark.js +6 -0
  21. package/es/components/Coachmark/CoachmarkDragbar.d.ts +2 -1
  22. package/es/components/Coachmark/CoachmarkDragbar.js +7 -0
  23. package/es/components/Coachmark/CoachmarkHeader.d.ts +2 -1
  24. package/es/components/Coachmark/CoachmarkHeader.js +7 -0
  25. package/es/components/Coachmark/CoachmarkOverlay.d.ts +2 -1
  26. package/es/components/Coachmark/CoachmarkOverlay.js +1 -0
  27. package/es/components/Coachmark/CoachmarkTagline.d.ts +2 -1
  28. package/es/components/Coachmark/CoachmarkTagline.js +7 -0
  29. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.js +3 -2
  30. package/es/components/Coachmark/utils/hooks.js +4 -3
  31. package/es/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +2 -1
  32. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +7 -0
  33. package/es/components/CoachmarkButton/CoachmarkButton.d.ts +2 -1
  34. package/es/components/CoachmarkButton/CoachmarkButton.js +1 -0
  35. package/es/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -0
  36. package/es/components/CoachmarkFixed/CoachmarkFixed.js +7 -0
  37. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +2 -1
  38. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +1 -0
  39. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +2 -1
  40. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -0
  41. package/es/components/CoachmarkStack/CoachmarkStack.d.ts +2 -1
  42. package/es/components/CoachmarkStack/CoachmarkStack.js +7 -0
  43. package/es/components/CreateFullPage/CreateFullPage.js +1 -1
  44. package/es/components/CreateTearsheet/CreateTearsheet.js +2 -2
  45. package/es/components/CreateTearsheet/CreateTearsheetStep.js +2 -21
  46. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +3 -2
  47. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
  48. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +4 -0
  49. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +2 -1
  50. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +2 -1
  51. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.d.ts +1 -1
  52. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +6 -1
  53. package/es/components/Datagrid/useResizeTable.js +2 -2
  54. package/es/components/Datagrid/useSelectRows.js +3 -2
  55. package/es/components/Datagrid/useStickyColumn.js +3 -2
  56. package/es/components/PageHeader/next/PageHeader.js +4 -3
  57. package/es/components/ScrollGradient/constants.js +3 -2
  58. package/es/components/Tearsheet/TearsheetShell.js +4 -6
  59. package/es/components/Tearsheet/next/StackContext.d.ts +21 -0
  60. package/es/components/Tearsheet/next/StackContext.js +94 -0
  61. package/es/components/Tearsheet/next/Tearsheet.d.ts +13 -2
  62. package/es/components/Tearsheet/next/Tearsheet.js +46 -10
  63. package/es/components/Tearsheet/next/TearsheetBody.d.ts +6 -0
  64. package/es/components/Tearsheet/next/TearsheetBody.js +19 -7
  65. package/es/components/Tearsheet/next/TearsheetHeaderActions.js +9 -4
  66. package/es/components/Tearsheet/next/TearsheetHeaderContent.d.ts +22 -8
  67. package/es/components/Tearsheet/next/TearsheetHeaderContent.js +14 -27
  68. package/es/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts +3 -2
  69. package/es/components/Tearsheet/next/index.d.ts +2 -0
  70. package/es/components/index.d.ts +2 -1
  71. package/es/global/js/hooks/useCreateComponentFocus.js +34 -4
  72. package/es/global/js/hooks/useIsomorphicEffect.d.ts +7 -1
  73. package/es/global/js/hooks/useIsomorphicEffect.js +1 -2
  74. package/es/global/js/hooks/useResizeObserver.js +4 -3
  75. package/es/global/js/hooks/useWindowResize.js +3 -2
  76. package/es/global/js/hooks/useWindowScroll.js +3 -2
  77. package/es/index.js +2 -2
  78. package/lib/components/Coachmark/Coachmark.d.ts +2 -1
  79. package/lib/components/Coachmark/Coachmark.js +6 -0
  80. package/lib/components/Coachmark/CoachmarkDragbar.d.ts +2 -1
  81. package/lib/components/Coachmark/CoachmarkDragbar.js +7 -0
  82. package/lib/components/Coachmark/CoachmarkHeader.d.ts +2 -1
  83. package/lib/components/Coachmark/CoachmarkHeader.js +7 -0
  84. package/lib/components/Coachmark/CoachmarkOverlay.d.ts +2 -1
  85. package/lib/components/Coachmark/CoachmarkOverlay.js +1 -0
  86. package/lib/components/Coachmark/CoachmarkTagline.d.ts +2 -1
  87. package/lib/components/Coachmark/CoachmarkTagline.js +7 -0
  88. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.js +2 -1
  89. package/lib/components/Coachmark/utils/hooks.js +3 -2
  90. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +2 -1
  91. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +7 -0
  92. package/lib/components/CoachmarkButton/CoachmarkButton.d.ts +2 -1
  93. package/lib/components/CoachmarkButton/CoachmarkButton.js +1 -0
  94. package/lib/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -0
  95. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +7 -0
  96. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +2 -1
  97. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +1 -0
  98. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +2 -1
  99. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -0
  100. package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +2 -1
  101. package/lib/components/CoachmarkStack/CoachmarkStack.js +7 -0
  102. package/lib/components/CreateFullPage/CreateFullPage.js +1 -1
  103. package/lib/components/CreateTearsheet/CreateTearsheet.js +2 -2
  104. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +2 -21
  105. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +2 -1
  106. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +2 -1
  107. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +4 -0
  108. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +2 -1
  109. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +2 -1
  110. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.d.ts +1 -1
  111. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +6 -1
  112. package/lib/components/Datagrid/useResizeTable.js +2 -2
  113. package/lib/components/Datagrid/useSelectRows.js +2 -1
  114. package/lib/components/Datagrid/useStickyColumn.js +2 -1
  115. package/lib/components/PageHeader/next/PageHeader.js +3 -2
  116. package/lib/components/ScrollGradient/constants.js +2 -1
  117. package/lib/components/Tearsheet/TearsheetShell.js +3 -5
  118. package/lib/components/Tearsheet/next/StackContext.d.ts +21 -0
  119. package/lib/components/Tearsheet/next/StackContext.js +97 -0
  120. package/lib/components/Tearsheet/next/Tearsheet.d.ts +13 -2
  121. package/lib/components/Tearsheet/next/Tearsheet.js +44 -8
  122. package/lib/components/Tearsheet/next/TearsheetBody.d.ts +6 -0
  123. package/lib/components/Tearsheet/next/TearsheetBody.js +19 -7
  124. package/lib/components/Tearsheet/next/TearsheetHeaderActions.js +8 -3
  125. package/lib/components/Tearsheet/next/TearsheetHeaderContent.d.ts +22 -8
  126. package/lib/components/Tearsheet/next/TearsheetHeaderContent.js +12 -25
  127. package/lib/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts +3 -2
  128. package/lib/components/Tearsheet/next/index.d.ts +2 -0
  129. package/lib/components/index.d.ts +2 -1
  130. package/lib/global/js/hooks/useCreateComponentFocus.js +34 -4
  131. package/lib/global/js/hooks/useIsomorphicEffect.d.ts +7 -1
  132. package/lib/global/js/hooks/useIsomorphicEffect.js +1 -2
  133. package/lib/global/js/hooks/useResizeObserver.js +3 -2
  134. package/lib/global/js/hooks/useWindowResize.js +2 -1
  135. package/lib/global/js/hooks/useWindowScroll.js +2 -1
  136. package/lib/index.js +15 -13
  137. package/package.json +14 -14
  138. package/scss/components/Tearsheet/_tearsheet.scss +11 -6
  139. package/scss/components/Tearsheet/_tearsheet_next.scss +218 -96
  140. package/telemetry.yml +11 -7
  141. package/es/components/Tearsheet/next/index.js +0 -8
  142. package/lib/components/Tearsheet/next/index.js +0 -14
@@ -3182,16 +3182,19 @@ p.c4p--about-modal__copyright-text:first-child {
3182
3182
  */
3183
3183
  .c4p--tearsheet__next .c4p--tearsheet__next__container {
3184
3184
  align-self: flex-end;
3185
+ border: 1px solid var(--cds-border-subtle-01, #c6c6c6);
3185
3186
  block-size: 100%;
3186
3187
  inset-block-start: auto;
3187
- max-block-size: calc(100% - 3rem);
3188
- transform: translate3d(0, min(95vh, 500px), 0);
3188
+ max-block-size: calc(100% - var(--tearsheet-vertical-gap, 3rem));
3189
3189
  }
3190
3190
  @media (max-width: 41.98rem) {
3191
- .c4p--tearsheet__next .c4p--tearsheet__next__container {
3191
+ .c4p--tearsheet__next:not(.c4p--tearsheet__next--stack-activated.is-visible) .c4p--tearsheet__next__container {
3192
3192
  max-block-size: none;
3193
3193
  }
3194
3194
  }
3195
+ .c4p--tearsheet__next:not(.is-visible).c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container {
3196
+ transform: translate3d(0, min(95vh, 500px), 0);
3197
+ }
3195
3198
  .c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next--has-ai-label .c4p--tearsheet__next__container {
3196
3199
  border: 1px solid transparent;
3197
3200
  /* override carbon ai removing background gradient */
@@ -3199,8 +3202,13 @@ p.c4p--about-modal__copyright-text:first-child {
3199
3202
  border-block-end: 0;
3200
3203
  box-shadow: 0 4px 10px 2px var(--cds-ai-drop-shadow, rgba(15, 98, 254, 0.1));
3201
3204
  }
3205
+ .c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next--has-ai-label .c4p--tearsheet__next__main-content {
3206
+ position: relative;
3207
+ background: linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)) 0%, var(--cds-ai-aura-start, rgba(69, 137, 255, 0.1)) 0%, 15%, var(--cds-ai-aura-end, rgba(255, 255, 255, 0)) 50%) padding-box, linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)), var(--cds-background, var(--cds-ai-popover-background, #ffffff))) padding-box, linear-gradient(to bottom, var(--cds-ai-border-start, rgba(166, 200, 255, 0.64)), var(--cds-ai-border-end, #78a9ff)) border-box, linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)), var(--cds-background, var(--cds-ai-popover-background, #ffffff))) border-box;
3208
+ box-shadow: inset 0 -80px 70px -65px var(--cds-ai-inner-shadow, rgba(69, 137, 255, 0.1));
3209
+ }
3202
3210
  .c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container {
3203
- transition: transform 240ms cubic-bezier(0, 0, 0.3, 1), max-height 240ms cubic-bezier(0, 0, 0.3, 1);
3211
+ transition: transform 240ms cubic-bezier(0, 0, 0.3, 1), max-block-size 240ms cubic-bezier(0, 0, 0.3, 1);
3204
3212
  }
3205
3213
  @media (min-width: 42rem) {
3206
3214
  .c4p--tearsheet__next.c4p--tearsheet__next--wide .c4p--tearsheet__next__container {
@@ -3238,7 +3246,7 @@ p.c4p--about-modal__copyright-text:first-child {
3238
3246
  display: grid;
3239
3247
  flex-basis: unset;
3240
3248
  gap: 1rem;
3241
- grid-template-columns: auto minmax(var(--tearsheet-header-title-grid-width, 0), 1fr);
3249
+ grid-template-columns: minmax(auto, 40rem) minmax(var(--tearsheet-header-title-grid-width, 0), 1fr);
3242
3250
  inline-size: calc(100% - var(--tearsheet-header-action-offset));
3243
3251
  }
3244
3252
  @media (max-width: 41.98rem) {
@@ -3256,6 +3264,7 @@ p.c4p--about-modal__copyright-text:first-child {
3256
3264
  font-weight: var(--cds-label-01-font-weight, 400);
3257
3265
  line-height: var(--cds-label-01-line-height, 1.33333);
3258
3266
  letter-spacing: var(--cds-label-01-letter-spacing, 0.32px);
3267
+ color: var(--cds-text-secondary, #525252);
3259
3268
  margin-block-end: 0.25rem;
3260
3269
  }
3261
3270
  .c4p--tearsheet__next .c4p--tearsheet__next__header-title {
@@ -3280,17 +3289,10 @@ p.c4p--about-modal__copyright-text:first-child {
3280
3289
  .c4p--tearsheet__next .c4p--tearsheet__next__header-title svg {
3281
3290
  flex-shrink: 0;
3282
3291
  }
3283
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__leading-icon {
3284
- flex-direction: row;
3285
- }
3286
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__leading-icon svg {
3292
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-title .c4p--tearsheet__next__title-start {
3287
3293
  margin-inline-end: 1rem;
3288
3294
  }
3289
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__trailing-icon {
3290
- flex-direction: row-reverse;
3291
- justify-content: flex-end;
3292
- }
3293
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__trailing-icon svg {
3295
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-title .c4p--tearsheet__next__title-end {
3294
3296
  margin-inline-start: 1rem;
3295
3297
  }
3296
3298
  .c4p--tearsheet__next .c4p--tearsheet__next__header-description {
@@ -3302,9 +3304,6 @@ p.c4p--about-modal__copyright-text:first-child {
3302
3304
  .c4p--tearsheet__next .c4p--tearsheet__next__header--no-close-icon {
3303
3305
  display: none;
3304
3306
  }
3305
- .c4p--tearsheet__next .c4p--tearsheet__next__header-content {
3306
- max-inline-size: 40rem;
3307
- }
3308
3307
  .c4p--tearsheet__next .c4p--tearsheet__next__navigation-bar {
3309
3308
  position: relative;
3310
3309
  display: flex;
@@ -3316,8 +3315,8 @@ p.c4p--about-modal__copyright-text:first-child {
3316
3315
  }
3317
3316
  .c4p--tearsheet__next .c4p--tearsheet__next__navigation-bar .c4p--tearsheet__next__scroller-container {
3318
3317
  position: absolute;
3319
- inset-inline-end: -2rem;
3320
- margin-inline-end: 1px;
3318
+ inset-block-end: 0.125rem;
3319
+ inset-inline-end: calc(-2rem + 0.125rem);
3321
3320
  }
3322
3321
  @media (max-width: 41.98rem) {
3323
3322
  .c4p--tearsheet__next .c4p--tearsheet__next__navigation-bar .c4p--tearsheet__next__scroller-container {
@@ -3344,8 +3343,14 @@ p.c4p--about-modal__copyright-text:first-child {
3344
3343
  inline-size: 100%;
3345
3344
  margin-block-start: -14px;
3346
3345
  }
3347
- .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > *:not([hidden]) + *:not([hidden]) {
3348
- padding-inline-start: 0.5rem;
3346
+ .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > *.c4p--tearsheet__next__header-action-item:not([data-hidden=true]) {
3347
+ margin-inline-end: 0.5rem; /* space between visible items */
3348
+ }
3349
+ .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions {
3350
+ /* Remove margin on the last visible item */
3351
+ }
3352
+ .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > *.c4p--tearsheet__next__header-action-item:not([data-hidden=true]):nth-last-child(2) {
3353
+ margin-inline-end: 0;
3349
3354
  }
3350
3355
  .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > * {
3351
3356
  flex-shrink: 0;
@@ -3356,43 +3361,121 @@ p.c4p--about-modal__copyright-text:first-child {
3356
3361
  margin-inline-end: 0;
3357
3362
  }
3358
3363
  }
3359
- .c4p--tearsheet__next .c4p--tearsheet__next__header {
3360
- opacity: 1;
3364
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header {
3365
+ padding-inline: 1rem;
3366
+ }
3367
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header.c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions {
3368
+ display: none;
3369
+ }
3370
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-content-wrapper {
3371
+ display: flex;
3372
+ flex-direction: column;
3373
+ }
3374
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-title {
3375
+ font-size: var(--cds-heading-03-font-size, 1.25rem);
3376
+ font-weight: var(--cds-heading-03-font-weight, 400);
3377
+ line-height: var(--cds-heading-03-line-height, 1.4);
3378
+ letter-spacing: var(--cds-heading-03-letter-spacing, 0);
3379
+ }
3380
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__content__header-actions {
3381
+ justify-content: flex-start;
3382
+ margin-inline-end: 0;
3383
+ }
3384
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__body {
3385
+ grid-template-columns: 1fr 0;
3386
+ }
3387
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),
3388
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),
3389
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush) {
3390
+ padding-inline: 1rem;
3361
3391
  }
3362
3392
  .c4p--tearsheet__next .c4p--tearsheet__next__header > *:not(.c4p--tearsheet__next__navigation-bar,
3363
3393
  .c4p--tearsheet__next__header-content-wrapper,
3364
- .cds--modal-close-button),
3365
- .c4p--tearsheet__next .c4p--tearsheet__next__header .c4p--tearsheet__next__header-content-wrapper .c4p--tearsheet__next__header-content > *:not(.c4p--tearsheet__next__content__title-wrapper) {
3394
+ .cds--modal-close-button,
3395
+ .excludeFromCollapse) {
3366
3396
  overflow: hidden;
3367
3397
  max-block-size: 50vh;
3368
3398
  opacity: 1;
3369
- transition: all 240ms cubic-bezier(0, 0, 0.3, 1);
3399
+ transition: max-block-size 240ms cubic-bezier(0, 0, 0.3, 1), opacity 240ms cubic-bezier(0, 0, 0.3, 1), margin 240ms cubic-bezier(0, 0, 0.3, 1), padding 240ms cubic-bezier(0, 0, 0.3, 1);
3400
+ }
3401
+ .c4p--tearsheet__next .c4p--tearsheet__next__header .c4p--tearsheet__next__header-actions,
3402
+ .c4p--tearsheet__next .c4p--tearsheet__next__header .c4p--tearsheet__next__header-content-wrapper .c4p--tearsheet__next__header-content *:not(.c4p--tearsheet__next__content__title-wrapper,
3403
+ .c4p--tearsheet__next__header-label) {
3404
+ opacity: 1;
3405
+ transition: all 240ms cubic-bezier(0, 0, 0.3, 1), opacity 240ms cubic-bezier(0, 0, 0.3, 1);
3406
+ }
3407
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed {
3408
+ padding-block-start: 0.75rem;
3409
+ transition: padding 240ms cubic-bezier(0, 0, 0.3, 1);
3370
3410
  }
3371
3411
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed > *:not(.c4p--tearsheet__next__navigation-bar,
3372
3412
  .c4p--tearsheet__next__header-content-wrapper,
3373
3413
  .cds--modal-close-button,
3374
3414
  .excludeFromCollapse),
3375
3415
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions > *:not(.c4p--tearsheet__next__content__header-actions),
3376
- .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper .c4p--tearsheet__next__header-content > *:not(.c4p--tearsheet__next__content__title-wrapper),
3416
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content > *:not(.c4p--tearsheet__next__content__title-wrapper),
3377
3417
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed > *:not(.c4p--tearsheet__next__navigation-bar,
3378
3418
  .c4p--tearsheet__next__header-content-wrapper,
3379
3419
  .cds--modal-close-button,
3380
- .excludeFromCollapse) * {
3420
+ .excludeFromCollapse) *,
3421
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper .c4p--tearsheet__next__header-content > *:not(.c4p--tearsheet__next__content__title-wrapper) * {
3381
3422
  overflow: hidden;
3382
3423
  padding: 0;
3383
3424
  margin: 0;
3384
3425
  max-block-size: 0;
3385
- min-block-size: 0;
3386
3426
  opacity: 0;
3387
- transition: all 240ms ease;
3388
- visibility: hidden;
3427
+ pointer-events: none;
3428
+ transition: all 240ms cubic-bezier(0, 0, 0.3, 1);
3429
+ }
3430
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title {
3431
+ font-size: var(--cds-label-02-font-size, 0.875rem);
3432
+ font-weight: var(--cds-label-02-font-weight, 400);
3433
+ line-height: var(--cds-label-02-line-height, 1.28572);
3434
+ letter-spacing: var(--cds-label-02-letter-spacing, 0.16px);
3435
+ align-items: center;
3436
+ margin-block-start: 0.25rem;
3437
+ transition: all 240ms cubic-bezier(0, 0, 0.3, 1);
3438
+ }
3439
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title > span {
3440
+ display: flex;
3441
+ align-items: center;
3442
+ block-size: 1.5rem;
3443
+ }
3444
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content {
3445
+ align-self: center;
3446
+ margin-block-end: 0;
3447
+ }
3448
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__content__header-actions {
3449
+ margin-block-start: -0.125rem;
3450
+ }
3451
+ @media (max-width: 41.98rem) {
3452
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions {
3453
+ display: none;
3454
+ }
3389
3455
  }
3390
3456
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper,
3391
3457
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content,
3392
3458
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__content__title-wrapper,
3393
- .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions .c4p--tearsheet__next__header-title {
3459
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions,
3460
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title {
3394
3461
  margin-block: 0;
3395
- transition: all 240ms ease;
3462
+ transition: margin-block 240ms ease;
3463
+ }
3464
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper {
3465
+ min-block-size: 2.5rem;
3466
+ padding-block-end: 0.75rem;
3467
+ }
3468
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__navigation-bar::before {
3469
+ position: absolute;
3470
+ z-index: 1;
3471
+ background: rgba(0, 0, 0, 0.12);
3472
+ block-size: 1px;
3473
+ content: "";
3474
+ inline-size: 100vw;
3475
+ inset-block-start: -0.25rem;
3476
+ inset-inline-start: 50%;
3477
+ pointer-events: none;
3478
+ transform: translateX(-50%);
3396
3479
  }
3397
3480
  .c4p--tearsheet__next .c4p--tearsheet__next__body-layout {
3398
3481
  display: grid;
@@ -3411,6 +3494,7 @@ p.c4p--about-modal__copyright-text:first-child {
3411
3494
  /* Assign components to their named grid areas */
3412
3495
  }
3413
3496
  .c4p--tearsheet__next .c4p--tearsheet__next__influencer {
3497
+ border-inline-end: 1px solid var(--cds-border-subtle-01, #c6c6c6);
3414
3498
  grid-area: influencer;
3415
3499
  }
3416
3500
  .c4p--tearsheet__next .c4p--tearsheet__next__body {
@@ -3436,19 +3520,21 @@ p.c4p--about-modal__copyright-text:first-child {
3436
3520
  .c4p--tearsheet__next .c4p--tearsheet__next__main-content,
3437
3521
  .c4p--tearsheet__next .c4p--tearsheet__next__summary-content {
3438
3522
  overflow: auto;
3523
+ }
3524
+ .c4p--tearsheet__next .c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),
3525
+ .c4p--tearsheet__next .c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),
3526
+ .c4p--tearsheet__next .c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush) {
3439
3527
  padding-inline: 2rem;
3440
3528
  }
3441
3529
  @media (max-width: 41.98rem) {
3442
- .c4p--tearsheet__next .c4p--tearsheet__next__influencer,
3443
- .c4p--tearsheet__next .c4p--tearsheet__next__main-content,
3444
- .c4p--tearsheet__next .c4p--tearsheet__next__summary-content {
3530
+ .c4p--tearsheet__next .c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),
3531
+ .c4p--tearsheet__next .c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),
3532
+ .c4p--tearsheet__next .c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush) {
3445
3533
  padding-inline: 1rem;
3446
3534
  }
3447
3535
  }
3448
3536
  .c4p--tearsheet__next .c4p--tearsheet__next__main-content {
3449
3537
  position: relative;
3450
- background: linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)) 0%, var(--cds-ai-aura-start, rgba(69, 137, 255, 0.1)) 0%, 15%, var(--cds-ai-aura-end, rgba(255, 255, 255, 0)) 50%) padding-box, linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)), var(--cds-background, var(--cds-ai-popover-background, #ffffff))) padding-box, linear-gradient(to bottom, var(--cds-ai-border-start, rgba(166, 200, 255, 0.64)), var(--cds-ai-border-end, #78a9ff)) border-box, linear-gradient(to top, var(--cds-background, var(--cds-ai-popover-background, #ffffff)), var(--cds-background, var(--cds-ai-popover-background, #ffffff))) border-box;
3451
- box-shadow: inset 0 -80px 70px -65px var(--cds-ai-inner-shadow, rgba(69, 137, 255, 0.1));
3452
3538
  }
3453
3539
  .c4p--tearsheet__next .c4p--side-panel {
3454
3540
  position: absolute;
@@ -3461,31 +3547,29 @@ p.c4p--about-modal__copyright-text:first-child {
3461
3547
  .c4p--tearsheet__next .c4p--side-panel .c4p--side-panel__header {
3462
3548
  min-block-size: 0;
3463
3549
  }
3464
-
3465
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__header {
3466
- padding-inline: 1rem;
3467
- }
3468
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-content-wrapper {
3469
- display: flex;
3470
- flex-direction: column;
3471
- }
3472
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-title {
3473
- font-size: var(--cds-heading-03-font-size, 1.25rem);
3474
- font-weight: var(--cds-heading-03-font-weight, 400);
3475
- line-height: var(--cds-heading-03-line-height, 1.4);
3476
- letter-spacing: var(--cds-heading-03-letter-spacing, 0);
3550
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible {
3551
+ --overlay-color: var(--cds-overlay, rgba(22, 22, 22, 0.5));
3552
+ --overlay-alpha: 0.5;
3553
+ z-index: calc(9000 - var(--stack-depth, 0));
3554
+ background-color: initial;
3477
3555
  }
3478
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__content__header-actions {
3479
- justify-content: flex-start;
3480
- margin-inline-end: 0;
3556
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible::before {
3557
+ position: absolute;
3558
+ display: block;
3559
+ background: var(--overlay-color);
3560
+ content: "";
3561
+ inset: 0;
3562
+ opacity: calc(var(--overlay-alpha) - var(--stack-depth) * 0.1);
3563
+ transition: background-color 240ms cubic-bezier(0.4, 0.14, 1, 1), opacity 240ms cubic-bezier(0.4, 0.14, 1, 1);
3481
3564
  }
3482
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__body {
3483
- grid-template-columns: 1fr 0;
3565
+ @media (prefers-reduced-motion: reduce) {
3566
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible::before {
3567
+ transition: none;
3568
+ }
3484
3569
  }
3485
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__influencer,
3486
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__main-content,
3487
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__summary-content {
3488
- padding-inline: 1rem;
3570
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible.is-visible .c4p--tearsheet__next__container {
3571
+ max-block-size: calc(100% - var(--tearsheet-vertical-gap, 3rem) + var(--block-size-change));
3572
+ transform: scaleX(var(--scale-factor));
3489
3573
  }
3490
3574
 
3491
3575
  .c4p--tearsheet.c4p--tearsheet {
@@ -3506,6 +3590,9 @@ p.c4p--about-modal__copyright-text:first-child {
3506
3590
  transition: none;
3507
3591
  }
3508
3592
  }
3593
+ .c4p--tearsheet.c4p--tearsheet:not(.is-visible).c4p--tearsheet.c4p--tearsheet .c4p--tearsheet__container {
3594
+ transform: translate3d(0, min(95vh, 500px), 0);
3595
+ }
3509
3596
  .c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet {
3510
3597
  /* tearsheet uses --overlay-color and --overlay-opacity in ::before */
3511
3598
  background: initial;
@@ -3547,7 +3634,6 @@ p.c4p--about-modal__copyright-text:first-child {
3547
3634
  block-size: 100%;
3548
3635
  inset-block-start: auto;
3549
3636
  max-block-size: calc(100% - 3rem);
3550
- transform: translate3d(0, min(95vh, 500px), 0);
3551
3637
  }
3552
3638
  .c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet--has-slug .c4p--tearsheet__container, .c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet--has-ai-label .c4p--tearsheet__container {
3553
3639
  border: 1px solid transparent;