@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/carbon.css CHANGED
@@ -4046,7 +4046,7 @@ li.cds--accordion__item--disabled:last-of-type {
4046
4046
  filter: var(--cds-popover-drop-shadow, drop-shadow(0 0.125rem 0.125rem rgba(0, 0, 0, 0.2)));
4047
4047
  }
4048
4048
 
4049
- .cds--popover--border .cds--popover > .cds--popover-content {
4049
+ .cds--popover--border > .cds--popover > .cds--popover-content {
4050
4050
  outline: 1px solid var(--cds-popover-border-color, var(--cds-border-subtle));
4051
4051
  outline-offset: -1px;
4052
4052
  }
@@ -4110,7 +4110,7 @@ li.cds--accordion__item--disabled:last-of-type {
4110
4110
  display: block;
4111
4111
  }
4112
4112
 
4113
- .cds--popover--background-token__background .cds--popover-content {
4113
+ .cds--popover--background-token__background > .cds--popover > .cds--popover-content {
4114
4114
  background-color: var(--cds-background, #ffffff);
4115
4115
  }
4116
4116
 
@@ -4146,7 +4146,7 @@ li.cds--accordion__item--disabled:last-of-type {
4146
4146
  content: "";
4147
4147
  }
4148
4148
 
4149
- .cds--popover--background-token__background .cds--popover-caret::after {
4149
+ .cds--popover--background-token__background > .cds--popover > .cds--popover-caret::after {
4150
4150
  background-color: var(--cds-background, #ffffff);
4151
4151
  }
4152
4152
 
@@ -5607,7 +5607,6 @@ li.cds--accordion__item--disabled:last-of-type {
5607
5607
  .cds--ai-label__text,
5608
5608
  .cds--slug__text {
5609
5609
  position: relative;
5610
- z-index: 1;
5611
5610
  }
5612
5611
 
5613
5612
  .cds--ai-label .cds--ai-label__button--inline,
@@ -10247,7 +10246,7 @@ fieldset[disabled] .cds--form__helper-text {
10247
10246
  }
10248
10247
 
10249
10248
  .cds--list-box__field .cds--text-input {
10250
- padding-inline-end: 5rem;
10249
+ padding-inline-end: 4.375rem;
10251
10250
  }
10252
10251
 
10253
10252
  .cds--list-box[data-invalid] .cds--list-box__field .cds--text-input,
@@ -10801,12 +10800,12 @@ fieldset[disabled] .cds--form__helper-text {
10801
10800
  transform: translateY(-50%);
10802
10801
  }
10803
10802
 
10803
+ .cds--list-box__wrapper--decorator:has(.cds--list-box__invalid-icon) .cds--list-box__inner-wrapper--decorator > *::before,
10804
+ .cds--list-box__wrapper--slug:has(.cds--list-box__invalid-icon) .cds--ai-label::before,
10805
+ .cds--list-box__wrapper--slug:has(.cds--list-box__invalid-icon) .cds--slug::before,
10804
10806
  .cds--list-box__wrapper--decorator .cds--list-box__inner-wrapper--decorator > *::after,
10805
- .cds--list-box__wrapper--decorator .cds--list-box__inner-wrapper--decorator > *::before,
10806
10807
  .cds--list-box__wrapper--slug .cds--ai-label::after,
10807
- .cds--list-box__wrapper--slug .cds--ai-label::before,
10808
- .cds--list-box__wrapper--slug .cds--slug::after,
10809
- .cds--list-box__wrapper--slug .cds--slug::before {
10808
+ .cds--list-box__wrapper--slug .cds--slug::after {
10810
10809
  position: absolute;
10811
10810
  background-color: var(--cds-border-subtle-01, #c6c6c6);
10812
10811
  block-size: 1rem;
@@ -10821,14 +10820,23 @@ fieldset[disabled] .cds--form__helper-text {
10821
10820
  inset-inline-start: -0.5625rem;
10822
10821
  }
10823
10822
 
10823
+ .cds--list-box__wrapper--decorator .cds--list-box__inner-wrapper--decorator > *::before,
10824
+ .cds--list-box__wrapper--slug .cds--ai-label::before,
10825
+ .cds--list-box__wrapper--slug .cds--slug::before,
10826
+ .cds--list-box__wrapper--decorator .cds--list-box__inner-wrapper--decorator .cds--ai-label--revert::before,
10827
+ .cds--list-box__wrapper--slug .cds--ai-label--revert::before,
10828
+ .cds--list-box__wrapper--slug .cds--slug--revert::before,
10824
10829
  .cds--list-box__wrapper--decorator .cds--list-box__inner-wrapper--decorator > *::after,
10825
10830
  .cds--list-box__wrapper--slug .cds--ai-label::after,
10826
10831
  .cds--list-box__wrapper--slug .cds--slug::after {
10827
10832
  display: block;
10828
- inset-block-start: 0;
10833
+ inset-block-start: 0.0625rem;
10829
10834
  inset-inline-end: -0.5625rem;
10830
10835
  }
10831
10836
 
10837
+ .cds--list-box__wrapper--decorator .cds--list-box__inner-wrapper--decorator .cds--ai-label--revert::before,
10838
+ .cds--list-box__wrapper--slug .cds--ai-label--revert::before,
10839
+ .cds--list-box__wrapper--slug .cds--slug--revert::before,
10832
10840
  .cds--list-box__wrapper--decorator .cds--list-box__inner-wrapper--decorator .cds--ai-label--revert::after,
10833
10841
  .cds--list-box__wrapper--slug .cds--ai-label--revert::after,
10834
10842
  .cds--list-box__wrapper--slug .cds--slug--revert::after {
@@ -10857,7 +10865,7 @@ fieldset[disabled] .cds--form__helper-text {
10857
10865
 
10858
10866
  .cds--list-box__wrapper--decorator .cds--text-input:not(.cds--text-input--empty),
10859
10867
  .cds--list-box__wrapper--slug .cds--text-input:not(.cds--text-input--empty) {
10860
- padding-inline-end: 6rem;
10868
+ padding-inline-end: 6.5625rem;
10861
10869
  }
10862
10870
 
10863
10871
  .cds--list-box__wrapper--decorator .cds--list-box--invalid[data-invalid] .cds--text-input--empty,
@@ -10875,7 +10883,7 @@ fieldset[disabled] .cds--form__helper-text {
10875
10883
  .cds--list-box__wrapper--decorator .cds--list-box--warning .cds--text-input:not(.cds--text-input--empty),
10876
10884
  .cds--list-box__wrapper--slug .cds--list-box--invalid[data-invalid] .cds--text-input:not(.cds--text-input--empty),
10877
10885
  .cds--list-box__wrapper--slug .cds--list-box--warning .cds--text-input:not(.cds--text-input--empty) {
10878
- padding-inline-end: 8.8125rem;
10886
+ padding-inline-end: 8.5625rem;
10879
10887
  }
10880
10888
 
10881
10889
  .cds--list-box__wrapper--decorator .cds--list-box--invalid[data-invalid] .cds--text-input--empty + .cds--list-box__invalid-icon,
@@ -10884,7 +10892,7 @@ fieldset[disabled] .cds--form__helper-text {
10884
10892
  .cds--list-box__wrapper--slug .cds--list-box--invalid[data-invalid] .cds--text-input--empty + .cds--list-box__invalid-icon,
10885
10893
  .cds--list-box__wrapper--slug .cds--list-box--invalid[data-invalid] .cds--list-box__invalid-icon,
10886
10894
  .cds--list-box__wrapper--slug .cds--list-box--warning .cds--list-box__invalid-icon.cds--list-box__invalid-icon--warning {
10887
- inset-inline-end: 5.1875rem;
10895
+ inset-inline-end: 5.0625rem;
10888
10896
  }
10889
10897
 
10890
10898
  .cds--list-box__wrapper--decorator .cds--list-box--invalid[data-invalid] > *::before,
@@ -10907,10 +10915,19 @@ fieldset[disabled] .cds--form__helper-text {
10907
10915
  inset-inline-end: calc(4rem + 18px);
10908
10916
  }
10909
10917
 
10918
+ .cds--list-box__wrapper--decorator .cds--list-box__field:has(.cds--list-box__selection) ~ .cds--list-box__inner-wrapper--decorator > * {
10919
+ inset-inline-end: calc(4rem + 18px);
10920
+ }
10921
+
10910
10922
  .cds--list-box__wrapper--decorator .cds--list-box--invalid .cds--list-box__field:has(.cds--list-box__selection) .cds--list-box__invalid-icon,
10911
10923
  .cds--list-box__wrapper--decorator .cds--list-box--warning .cds--list-box__field:has(.cds--list-box__selection) .cds--list-box__invalid-icon,
10912
10924
  .cds--list-box__wrapper--slug .cds--list-box--invalid .cds--list-box__field:has(.cds--list-box__selection) .cds--list-box__invalid-icon,
10913
10925
  .cds--list-box__wrapper--slug .cds--list-box--warning .cds--list-box__field:has(.cds--list-box__selection) .cds--list-box__invalid-icon {
10926
+ inset-inline-end: 7.125rem;
10927
+ }
10928
+
10929
+ .cds--list-box__wrapper--decorator .cds--list-box--invalid .cds--list-box__field:has(.cds--list-box__selection) ~ .cds--list-box__inner-wrapper--decorator > *,
10930
+ .cds--list-box__wrapper--decorator .cds--list-box--warning .cds--list-box__field:has(.cds--list-box__selection) ~ .cds--list-box__inner-wrapper--decorator > * {
10914
10931
  inset-inline-end: 7.25rem;
10915
10932
  }
10916
10933
 
@@ -11059,6 +11076,14 @@ fieldset[disabled] .cds--form__helper-text {
11059
11076
  visibility: hidden;
11060
11077
  }
11061
11078
 
11079
+ .cds--menu--border {
11080
+ outline: 1px solid var(--cds-border-subtle);
11081
+ }
11082
+
11083
+ .cds--menu--background-token__background {
11084
+ background-color: var(--cds-background, #ffffff);
11085
+ }
11086
+
11062
11087
  .cds--menu--with-icons {
11063
11088
  min-inline-size: 12rem;
11064
11089
  }
@@ -20838,7 +20863,6 @@ optgroup.cds--select-optgroup:disabled,
20838
20863
  position: fixed;
20839
20864
  display: grid;
20840
20865
  background-color: var(--cds-layer);
20841
- block-size: 100%;
20842
20866
  grid-template-columns: 100%;
20843
20867
  grid-template-rows: auto 1fr auto;
20844
20868
  inline-size: 100%;
@@ -20851,7 +20875,6 @@ optgroup.cds--select-optgroup:disabled,
20851
20875
  @media (min-width: 42rem) {
20852
20876
  .cds--modal-container {
20853
20877
  position: relative;
20854
- block-size: auto;
20855
20878
  inline-size: 84%;
20856
20879
  max-block-size: 90%;
20857
20880
  }
@@ -22470,6 +22493,7 @@ optgroup.cds--select-optgroup:disabled,
22470
22493
  line-height: var(--cds-body-compact-01-line-height, 1.28572);
22471
22494
  letter-spacing: var(--cds-body-compact-01-letter-spacing, 0.16px);
22472
22495
  display: flex;
22496
+ overflow: initial;
22473
22497
  align-items: center;
22474
22498
  justify-content: space-between;
22475
22499
  background-color: var(--cds-layer);
@@ -22478,12 +22502,8 @@ optgroup.cds--select-optgroup:disabled,
22478
22502
  container-type: inline-size;
22479
22503
  inline-size: calc(100% - 1px);
22480
22504
  min-block-size: 2.5rem;
22481
- overflow-x: auto;
22482
22505
  }
22483
22506
  @container pagination (min-width: 42rem) {
22484
- .cds--pagination {
22485
- overflow: initial;
22486
- }
22487
22507
  .cds--pagination .cds--pagination__control-buttons {
22488
22508
  display: flex;
22489
22509
  }