@carbon/ibm-products 2.79.0-rc.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
package/css/index.css CHANGED
@@ -326,7 +326,7 @@
326
326
  filter: var(--cds-popover-drop-shadow, drop-shadow(0 0.125rem 0.125rem rgba(0, 0, 0, 0.2)));
327
327
  }
328
328
 
329
- .cds--popover--border .cds--popover > .cds--popover-content {
329
+ .cds--popover--border > .cds--popover > .cds--popover-content {
330
330
  outline: 1px solid var(--cds-popover-border-color, var(--cds-border-subtle));
331
331
  outline-offset: -1px;
332
332
  }
@@ -390,7 +390,7 @@
390
390
  display: block;
391
391
  }
392
392
 
393
- .cds--popover--background-token__background .cds--popover-content {
393
+ .cds--popover--background-token__background > .cds--popover > .cds--popover-content {
394
394
  background-color: var(--cds-background, #ffffff);
395
395
  }
396
396
 
@@ -426,7 +426,7 @@
426
426
  content: "";
427
427
  }
428
428
 
429
- .cds--popover--background-token__background .cds--popover-caret::after {
429
+ .cds--popover--background-token__background > .cds--popover > .cds--popover-caret::after {
430
430
  background-color: var(--cds-background, #ffffff);
431
431
  }
432
432
 
@@ -2518,7 +2518,6 @@
2518
2518
  position: fixed;
2519
2519
  display: grid;
2520
2520
  background-color: var(--cds-layer);
2521
- block-size: 100%;
2522
2521
  grid-template-columns: 100%;
2523
2522
  grid-template-rows: auto 1fr auto;
2524
2523
  inline-size: 100%;
@@ -2531,7 +2530,6 @@
2531
2530
  @media (min-width: 42rem) {
2532
2531
  .cds--modal-container {
2533
2532
  position: relative;
2534
- block-size: auto;
2535
2533
  inline-size: 84%;
2536
2534
  max-block-size: 90%;
2537
2535
  }
@@ -8930,16 +8928,19 @@ a.cds--overflow-menu-options__btn::before {
8930
8928
  */
8931
8929
  .c4p--tearsheet__next .c4p--tearsheet__next__container {
8932
8930
  align-self: flex-end;
8931
+ border: 1px solid var(--cds-border-subtle-01, #c6c6c6);
8933
8932
  block-size: 100%;
8934
8933
  inset-block-start: auto;
8935
- max-block-size: calc(100% - 3rem);
8936
- transform: translate3d(0, min(95vh, 500px), 0);
8934
+ max-block-size: calc(100% - var(--tearsheet-vertical-gap, 3rem));
8937
8935
  }
8938
8936
  @media (max-width: 41.98rem) {
8939
- .c4p--tearsheet__next .c4p--tearsheet__next__container {
8937
+ .c4p--tearsheet__next:not(.c4p--tearsheet__next--stack-activated.is-visible) .c4p--tearsheet__next__container {
8940
8938
  max-block-size: none;
8941
8939
  }
8942
8940
  }
8941
+ .c4p--tearsheet__next:not(.is-visible).c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container {
8942
+ transform: translate3d(0, min(95vh, 500px), 0);
8943
+ }
8943
8944
  .c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next--has-ai-label .c4p--tearsheet__next__container {
8944
8945
  border: 1px solid transparent;
8945
8946
  /* override carbon ai removing background gradient */
@@ -8947,8 +8948,13 @@ a.cds--overflow-menu-options__btn::before {
8947
8948
  border-block-end: 0;
8948
8949
  box-shadow: 0 4px 10px 2px var(--cds-ai-drop-shadow, rgba(15, 98, 254, 0.1));
8949
8950
  }
8951
+ .c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next--has-ai-label .c4p--tearsheet__next__main-content {
8952
+ position: relative;
8953
+ 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;
8954
+ box-shadow: inset 0 -80px 70px -65px var(--cds-ai-inner-shadow, rgba(69, 137, 255, 0.1));
8955
+ }
8950
8956
  .c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container {
8951
- transition: transform 240ms cubic-bezier(0, 0, 0.3, 1), max-height 240ms cubic-bezier(0, 0, 0.3, 1);
8957
+ transition: transform 240ms cubic-bezier(0, 0, 0.3, 1), max-block-size 240ms cubic-bezier(0, 0, 0.3, 1);
8952
8958
  }
8953
8959
  @media (min-width: 42rem) {
8954
8960
  .c4p--tearsheet__next.c4p--tearsheet__next--wide .c4p--tearsheet__next__container {
@@ -8986,7 +8992,7 @@ a.cds--overflow-menu-options__btn::before {
8986
8992
  display: grid;
8987
8993
  flex-basis: unset;
8988
8994
  gap: 1rem;
8989
- grid-template-columns: auto minmax(var(--tearsheet-header-title-grid-width, 0), 1fr);
8995
+ grid-template-columns: minmax(auto, 40rem) minmax(var(--tearsheet-header-title-grid-width, 0), 1fr);
8990
8996
  inline-size: calc(100% - var(--tearsheet-header-action-offset));
8991
8997
  }
8992
8998
  @media (max-width: 41.98rem) {
@@ -9004,6 +9010,7 @@ a.cds--overflow-menu-options__btn::before {
9004
9010
  font-weight: var(--cds-label-01-font-weight, 400);
9005
9011
  line-height: var(--cds-label-01-line-height, 1.33333);
9006
9012
  letter-spacing: var(--cds-label-01-letter-spacing, 0.32px);
9013
+ color: var(--cds-text-secondary, #525252);
9007
9014
  margin-block-end: 0.25rem;
9008
9015
  }
9009
9016
  .c4p--tearsheet__next .c4p--tearsheet__next__header-title {
@@ -9028,17 +9035,10 @@ a.cds--overflow-menu-options__btn::before {
9028
9035
  .c4p--tearsheet__next .c4p--tearsheet__next__header-title svg {
9029
9036
  flex-shrink: 0;
9030
9037
  }
9031
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__leading-icon {
9032
- flex-direction: row;
9033
- }
9034
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__leading-icon svg {
9038
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-title .c4p--tearsheet__next__title-start {
9035
9039
  margin-inline-end: 1rem;
9036
9040
  }
9037
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__trailing-icon {
9038
- flex-direction: row-reverse;
9039
- justify-content: flex-end;
9040
- }
9041
- .c4p--tearsheet__next .c4p--tearsheet__next__header-title.c4p--tearsheet__next__trailing-icon svg {
9041
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-title .c4p--tearsheet__next__title-end {
9042
9042
  margin-inline-start: 1rem;
9043
9043
  }
9044
9044
  .c4p--tearsheet__next .c4p--tearsheet__next__header-description {
@@ -9050,9 +9050,6 @@ a.cds--overflow-menu-options__btn::before {
9050
9050
  .c4p--tearsheet__next .c4p--tearsheet__next__header--no-close-icon {
9051
9051
  display: none;
9052
9052
  }
9053
- .c4p--tearsheet__next .c4p--tearsheet__next__header-content {
9054
- max-inline-size: 40rem;
9055
- }
9056
9053
  .c4p--tearsheet__next .c4p--tearsheet__next__navigation-bar {
9057
9054
  position: relative;
9058
9055
  display: flex;
@@ -9064,8 +9061,8 @@ a.cds--overflow-menu-options__btn::before {
9064
9061
  }
9065
9062
  .c4p--tearsheet__next .c4p--tearsheet__next__navigation-bar .c4p--tearsheet__next__scroller-container {
9066
9063
  position: absolute;
9067
- inset-inline-end: -2rem;
9068
- margin-inline-end: 1px;
9064
+ inset-block-end: 0.125rem;
9065
+ inset-inline-end: calc(-2rem + 0.125rem);
9069
9066
  }
9070
9067
  @media (max-width: 41.98rem) {
9071
9068
  .c4p--tearsheet__next .c4p--tearsheet__next__navigation-bar .c4p--tearsheet__next__scroller-container {
@@ -9092,8 +9089,14 @@ a.cds--overflow-menu-options__btn::before {
9092
9089
  inline-size: 100%;
9093
9090
  margin-block-start: -14px;
9094
9091
  }
9095
- .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > *:not([hidden]) + *:not([hidden]) {
9096
- padding-inline-start: 0.5rem;
9092
+ .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > *.c4p--tearsheet__next__header-action-item:not([data-hidden=true]) {
9093
+ margin-inline-end: 0.5rem; /* space between visible items */
9094
+ }
9095
+ .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions {
9096
+ /* Remove margin on the last visible item */
9097
+ }
9098
+ .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > *.c4p--tearsheet__next__header-action-item:not([data-hidden=true]):nth-last-child(2) {
9099
+ margin-inline-end: 0;
9097
9100
  }
9098
9101
  .c4p--tearsheet__next .c4p--tearsheet__next__content__header-actions > * {
9099
9102
  flex-shrink: 0;
@@ -9104,43 +9107,121 @@ a.cds--overflow-menu-options__btn::before {
9104
9107
  margin-inline-end: 0;
9105
9108
  }
9106
9109
  }
9107
- .c4p--tearsheet__next .c4p--tearsheet__next__header {
9108
- opacity: 1;
9110
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header {
9111
+ padding-inline: 1rem;
9112
+ }
9113
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header.c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions {
9114
+ display: none;
9115
+ }
9116
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-content-wrapper {
9117
+ display: flex;
9118
+ flex-direction: column;
9119
+ }
9120
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-title {
9121
+ font-size: var(--cds-heading-03-font-size, 1.25rem);
9122
+ font-weight: var(--cds-heading-03-font-weight, 400);
9123
+ line-height: var(--cds-heading-03-line-height, 1.4);
9124
+ letter-spacing: var(--cds-heading-03-letter-spacing, 0);
9125
+ }
9126
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__content__header-actions {
9127
+ justify-content: flex-start;
9128
+ margin-inline-end: 0;
9129
+ }
9130
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__body {
9131
+ grid-template-columns: 1fr 0;
9132
+ }
9133
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),
9134
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),
9135
+ .c4p--tearsheet__next.c4p--tearsheet__next--narrow .c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush) {
9136
+ padding-inline: 1rem;
9109
9137
  }
9110
9138
  .c4p--tearsheet__next .c4p--tearsheet__next__header > *:not(.c4p--tearsheet__next__navigation-bar,
9111
9139
  .c4p--tearsheet__next__header-content-wrapper,
9112
- .cds--modal-close-button),
9113
- .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) {
9140
+ .cds--modal-close-button,
9141
+ .excludeFromCollapse) {
9114
9142
  overflow: hidden;
9115
9143
  max-block-size: 50vh;
9116
9144
  opacity: 1;
9117
- transition: all 240ms cubic-bezier(0, 0, 0.3, 1);
9145
+ 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);
9146
+ }
9147
+ .c4p--tearsheet__next .c4p--tearsheet__next__header .c4p--tearsheet__next__header-actions,
9148
+ .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,
9149
+ .c4p--tearsheet__next__header-label) {
9150
+ opacity: 1;
9151
+ transition: all 240ms cubic-bezier(0, 0, 0.3, 1), opacity 240ms cubic-bezier(0, 0, 0.3, 1);
9152
+ }
9153
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed {
9154
+ padding-block-start: 0.75rem;
9155
+ transition: padding 240ms cubic-bezier(0, 0, 0.3, 1);
9118
9156
  }
9119
9157
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed > *:not(.c4p--tearsheet__next__navigation-bar,
9120
9158
  .c4p--tearsheet__next__header-content-wrapper,
9121
9159
  .cds--modal-close-button,
9122
9160
  .excludeFromCollapse),
9123
9161
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions > *:not(.c4p--tearsheet__next__content__header-actions),
9124
- .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),
9162
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content > *:not(.c4p--tearsheet__next__content__title-wrapper),
9125
9163
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed > *:not(.c4p--tearsheet__next__navigation-bar,
9126
9164
  .c4p--tearsheet__next__header-content-wrapper,
9127
9165
  .cds--modal-close-button,
9128
- .excludeFromCollapse) * {
9166
+ .excludeFromCollapse) *,
9167
+ .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) * {
9129
9168
  overflow: hidden;
9130
9169
  padding: 0;
9131
9170
  margin: 0;
9132
9171
  max-block-size: 0;
9133
- min-block-size: 0;
9134
9172
  opacity: 0;
9135
- transition: all 240ms ease;
9136
- visibility: hidden;
9173
+ pointer-events: none;
9174
+ transition: all 240ms cubic-bezier(0, 0, 0.3, 1);
9175
+ }
9176
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title {
9177
+ font-size: var(--cds-label-02-font-size, 0.875rem);
9178
+ font-weight: var(--cds-label-02-font-weight, 400);
9179
+ line-height: var(--cds-label-02-line-height, 1.28572);
9180
+ letter-spacing: var(--cds-label-02-letter-spacing, 0.16px);
9181
+ align-items: center;
9182
+ margin-block-start: 0.25rem;
9183
+ transition: all 240ms cubic-bezier(0, 0, 0.3, 1);
9184
+ }
9185
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title > span {
9186
+ display: flex;
9187
+ align-items: center;
9188
+ block-size: 1.5rem;
9189
+ }
9190
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content {
9191
+ align-self: center;
9192
+ margin-block-end: 0;
9193
+ }
9194
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__content__header-actions {
9195
+ margin-block-start: -0.125rem;
9196
+ }
9197
+ @media (max-width: 41.98rem) {
9198
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions {
9199
+ display: none;
9200
+ }
9137
9201
  }
9138
9202
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper,
9139
9203
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content,
9140
9204
  .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__content__title-wrapper,
9141
- .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions .c4p--tearsheet__next__header-title {
9205
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions,
9206
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title {
9142
9207
  margin-block: 0;
9143
- transition: all 240ms ease;
9208
+ transition: margin-block 240ms ease;
9209
+ }
9210
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper {
9211
+ min-block-size: 2.5rem;
9212
+ padding-block-end: 0.75rem;
9213
+ }
9214
+ .c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__navigation-bar::before {
9215
+ position: absolute;
9216
+ z-index: 1;
9217
+ background: rgba(0, 0, 0, 0.12);
9218
+ block-size: 1px;
9219
+ content: "";
9220
+ inline-size: 100vw;
9221
+ inset-block-start: -0.25rem;
9222
+ inset-inline-start: 50%;
9223
+ pointer-events: none;
9224
+ transform: translateX(-50%);
9144
9225
  }
9145
9226
  .c4p--tearsheet__next .c4p--tearsheet__next__body-layout {
9146
9227
  display: grid;
@@ -9159,6 +9240,7 @@ a.cds--overflow-menu-options__btn::before {
9159
9240
  /* Assign components to their named grid areas */
9160
9241
  }
9161
9242
  .c4p--tearsheet__next .c4p--tearsheet__next__influencer {
9243
+ border-inline-end: 1px solid var(--cds-border-subtle-01, #c6c6c6);
9162
9244
  grid-area: influencer;
9163
9245
  }
9164
9246
  .c4p--tearsheet__next .c4p--tearsheet__next__body {
@@ -9184,19 +9266,21 @@ a.cds--overflow-menu-options__btn::before {
9184
9266
  .c4p--tearsheet__next .c4p--tearsheet__next__main-content,
9185
9267
  .c4p--tearsheet__next .c4p--tearsheet__next__summary-content {
9186
9268
  overflow: auto;
9269
+ }
9270
+ .c4p--tearsheet__next .c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),
9271
+ .c4p--tearsheet__next .c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),
9272
+ .c4p--tearsheet__next .c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush) {
9187
9273
  padding-inline: 2rem;
9188
9274
  }
9189
9275
  @media (max-width: 41.98rem) {
9190
- .c4p--tearsheet__next .c4p--tearsheet__next__influencer,
9191
- .c4p--tearsheet__next .c4p--tearsheet__next__main-content,
9192
- .c4p--tearsheet__next .c4p--tearsheet__next__summary-content {
9276
+ .c4p--tearsheet__next .c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),
9277
+ .c4p--tearsheet__next .c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),
9278
+ .c4p--tearsheet__next .c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush) {
9193
9279
  padding-inline: 1rem;
9194
9280
  }
9195
9281
  }
9196
9282
  .c4p--tearsheet__next .c4p--tearsheet__next__main-content {
9197
9283
  position: relative;
9198
- 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;
9199
- box-shadow: inset 0 -80px 70px -65px var(--cds-ai-inner-shadow, rgba(69, 137, 255, 0.1));
9200
9284
  }
9201
9285
  .c4p--tearsheet__next .c4p--side-panel {
9202
9286
  position: absolute;
@@ -9209,31 +9293,29 @@ a.cds--overflow-menu-options__btn::before {
9209
9293
  .c4p--tearsheet__next .c4p--side-panel .c4p--side-panel__header {
9210
9294
  min-block-size: 0;
9211
9295
  }
9212
-
9213
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__header {
9214
- padding-inline: 1rem;
9215
- }
9216
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-content-wrapper {
9217
- display: flex;
9218
- flex-direction: column;
9219
- }
9220
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-title {
9221
- font-size: var(--cds-heading-03-font-size, 1.25rem);
9222
- font-weight: var(--cds-heading-03-font-weight, 400);
9223
- line-height: var(--cds-heading-03-line-height, 1.4);
9224
- letter-spacing: var(--cds-heading-03-letter-spacing, 0);
9296
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible {
9297
+ --overlay-color: var(--cds-overlay, rgba(22, 22, 22, 0.5));
9298
+ --overlay-alpha: 0.5;
9299
+ z-index: calc(9000 - var(--stack-depth, 0));
9300
+ background-color: initial;
9225
9301
  }
9226
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__content__header-actions {
9227
- justify-content: flex-start;
9228
- margin-inline-end: 0;
9302
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible::before {
9303
+ position: absolute;
9304
+ display: block;
9305
+ background: var(--overlay-color);
9306
+ content: "";
9307
+ inset: 0;
9308
+ opacity: calc(var(--overlay-alpha) - var(--stack-depth) * 0.1);
9309
+ transition: background-color 240ms cubic-bezier(0.4, 0.14, 1, 1), opacity 240ms cubic-bezier(0.4, 0.14, 1, 1);
9229
9310
  }
9230
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__body {
9231
- grid-template-columns: 1fr 0;
9311
+ @media (prefers-reduced-motion: reduce) {
9312
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible::before {
9313
+ transition: none;
9314
+ }
9232
9315
  }
9233
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__influencer,
9234
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__main-content,
9235
- .c4p--tearsheet__next--narrow .c4p--tearsheet__next__summary-content {
9236
- padding-inline: 1rem;
9316
+ .c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible.is-visible .c4p--tearsheet__next__container {
9317
+ max-block-size: calc(100% - var(--tearsheet-vertical-gap, 3rem) + var(--block-size-change));
9318
+ transform: scaleX(var(--scale-factor));
9237
9319
  }
9238
9320
 
9239
9321
  .c4p--tearsheet.c4p--tearsheet {
@@ -9254,6 +9336,9 @@ a.cds--overflow-menu-options__btn::before {
9254
9336
  transition: none;
9255
9337
  }
9256
9338
  }
9339
+ .c4p--tearsheet.c4p--tearsheet:not(.is-visible).c4p--tearsheet.c4p--tearsheet .c4p--tearsheet__container {
9340
+ transform: translate3d(0, min(95vh, 500px), 0);
9341
+ }
9257
9342
  .c4p--tearsheet.c4p--tearsheet.c4p--tearsheet.c4p--tearsheet {
9258
9343
  /* tearsheet uses --overlay-color and --overlay-opacity in ::before */
9259
9344
  background: initial;
@@ -9295,7 +9380,6 @@ a.cds--overflow-menu-options__btn::before {
9295
9380
  block-size: 100%;
9296
9381
  inset-block-start: auto;
9297
9382
  max-block-size: calc(100% - 3rem);
9298
- transform: translate3d(0, min(95vh, 500px), 0);
9299
9383
  }
9300
9384
  .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 {
9301
9385
  border: 1px solid transparent;