@carbon/ibm-products 2.78.0 → 2.79.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 (99) hide show
  1. package/css/carbon.css +1762 -1036
  2. package/css/carbon.css.map +1 -1
  3. package/css/index-full-carbon.css +2342 -1239
  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 +450 -98
  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 +624 -247
  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 +1759 -873
  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/ConditionBuilder/ConditionBlock/ConditionBlock.js +111 -108
  20. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +1 -1
  21. package/es/components/InterstitialScreen/InterstitialScreenBody.js +15 -8
  22. package/es/components/InterstitialScreen/InterstitialScreenFooter.js +6 -1
  23. package/es/components/InterstitialScreen/InterstitialScreenHeader.d.ts +1 -1
  24. package/es/components/InterstitialScreen/InterstitialScreenHeader.js +1 -1
  25. package/es/components/InterstitialScreen/{_story-assets/InterstitialScreenView/InterstitialScreenView.d.ts → InterstitialScreenView.d.ts} +2 -3
  26. package/es/components/InterstitialScreen/InterstitialScreenView.js +60 -0
  27. package/es/components/InterstitialScreen/index.d.ts +1 -0
  28. package/es/components/Tearsheet/next/Tearsheet.d.ts +85 -0
  29. package/es/components/Tearsheet/next/Tearsheet.js +129 -0
  30. package/es/components/Tearsheet/next/TearsheetBody.d.ts +67 -0
  31. package/es/components/Tearsheet/next/TearsheetBody.js +121 -0
  32. package/es/components/Tearsheet/next/TearsheetHeader.d.ts +65 -0
  33. package/es/components/Tearsheet/next/TearsheetHeader.js +121 -0
  34. package/es/components/Tearsheet/next/TearsheetHeaderActions.d.ts +54 -0
  35. package/es/components/Tearsheet/next/TearsheetHeaderActions.js +101 -0
  36. package/es/components/Tearsheet/next/TearsheetHeaderContent.d.ts +28 -0
  37. package/es/components/Tearsheet/next/TearsheetHeaderContent.js +67 -0
  38. package/es/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts +22 -0
  39. package/es/components/Tearsheet/next/context.d.ts +26 -0
  40. package/es/components/Tearsheet/next/context.js +26 -0
  41. package/es/components/Tearsheet/next/index.d.ts +12 -0
  42. package/es/components/Tearsheet/next/index.js +8 -0
  43. package/es/components/Toolbar/Toolbar.js +1 -5
  44. package/es/components/TruncatedText/TruncatedText.d.ts +2 -3
  45. package/es/components/TruncatedText/TruncatedText.js +1 -2
  46. package/es/components/TruncatedText/index.d.ts +1 -0
  47. package/es/components/index.d.ts +2 -1
  48. package/es/global/js/hooks/useCollapsible.d.ts +19 -0
  49. package/es/global/js/hooks/useCollapsible.js +68 -0
  50. package/es/global/js/hooks/useMatchMedia.d.ts +13 -0
  51. package/es/global/js/hooks/useMatchMedia.js +33 -0
  52. package/es/index.js +4 -1
  53. package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +845 -805
  54. package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +476 -476
  55. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +111 -108
  56. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +1 -1
  57. package/lib/components/InterstitialScreen/InterstitialScreenBody.js +15 -8
  58. package/lib/components/InterstitialScreen/InterstitialScreenFooter.js +6 -1
  59. package/lib/components/InterstitialScreen/InterstitialScreenHeader.d.ts +1 -1
  60. package/lib/components/InterstitialScreen/InterstitialScreenHeader.js +1 -1
  61. package/lib/components/InterstitialScreen/{_story-assets/InterstitialScreenView/InterstitialScreenView.d.ts → InterstitialScreenView.d.ts} +2 -3
  62. package/lib/components/InterstitialScreen/InterstitialScreenView.js +62 -0
  63. package/lib/components/InterstitialScreen/index.d.ts +1 -0
  64. package/lib/components/Tearsheet/next/Tearsheet.d.ts +85 -0
  65. package/lib/components/Tearsheet/next/Tearsheet.js +131 -0
  66. package/lib/components/Tearsheet/next/TearsheetBody.d.ts +67 -0
  67. package/lib/components/Tearsheet/next/TearsheetBody.js +128 -0
  68. package/lib/components/Tearsheet/next/TearsheetHeader.d.ts +65 -0
  69. package/lib/components/Tearsheet/next/TearsheetHeader.js +127 -0
  70. package/lib/components/Tearsheet/next/TearsheetHeaderActions.d.ts +54 -0
  71. package/lib/components/Tearsheet/next/TearsheetHeaderActions.js +104 -0
  72. package/lib/components/Tearsheet/next/TearsheetHeaderContent.d.ts +28 -0
  73. package/lib/components/Tearsheet/next/TearsheetHeaderContent.js +71 -0
  74. package/lib/components/Tearsheet/next/_story-assets/StepTearsheet.d.ts +22 -0
  75. package/lib/components/Tearsheet/next/context.d.ts +26 -0
  76. package/lib/components/Tearsheet/next/context.js +29 -0
  77. package/lib/components/Tearsheet/next/index.d.ts +12 -0
  78. package/lib/components/Tearsheet/next/index.js +14 -0
  79. package/lib/components/Toolbar/Toolbar.js +1 -5
  80. package/lib/components/TruncatedText/TruncatedText.d.ts +2 -3
  81. package/lib/components/TruncatedText/TruncatedText.js +4 -3
  82. package/lib/components/TruncatedText/index.d.ts +1 -0
  83. package/lib/components/index.d.ts +2 -1
  84. package/lib/global/js/hooks/useCollapsible.d.ts +19 -0
  85. package/lib/global/js/hooks/useCollapsible.js +70 -0
  86. package/lib/global/js/hooks/useMatchMedia.d.ts +13 -0
  87. package/lib/global/js/hooks/useMatchMedia.js +35 -0
  88. package/lib/index.js +15 -14
  89. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +863 -823
  90. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +477 -477
  91. package/package.json +16 -15
  92. package/scss/components/FilterSummary/_filter-summary.scss +1 -1
  93. package/scss/components/PageHeader/_page-header.scss +4 -0
  94. package/scss/components/SidePanel/_side-panel.scss +5 -5
  95. package/scss/components/TagOverflow/_tag-overflow.scss +38 -38
  96. package/scss/components/TagSet/_tag-set.scss +28 -12
  97. package/scss/components/Tearsheet/_tearsheet.scss +8 -1
  98. package/scss/components/Tearsheet/_tearsheet_next.scss +408 -0
  99. package/telemetry.yml +32 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.78.0",
4
+ "version": "2.79.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -67,6 +67,7 @@
67
67
  "@babel/preset-env": "^7.26.9",
68
68
  "@babel/preset-react": "^7.26.3",
69
69
  "@babel/preset-typescript": "^7.26.0",
70
+ "@carbon/styles": "^1.93.1",
70
71
  "@figma/code-connect": "^1.3.5",
71
72
  "@ibm/telemetry-js-config-generator": "^2.0.1",
72
73
  "@percy/cli": "^1.31.0",
@@ -81,7 +82,7 @@
81
82
  "@storybook/react-vite": "^9.0.13",
82
83
  "@types/react-table": "^7.7.20",
83
84
  "babel-plugin-dev-expression": "^0.2.3",
84
- "babel-preset-ibm-cloud-cognitive": "^0.36.0",
85
+ "babel-preset-ibm-cloud-cognitive": "^0.37.0-rc.0",
85
86
  "change-case": "5.4.4",
86
87
  "classnames": "^2.5.1",
87
88
  "copyfiles": "^2.4.1",
@@ -89,7 +90,7 @@
89
90
  "fs-extra": "^11.3.0",
90
91
  "glob": "^11.0.1",
91
92
  "jest": "^29.7.0",
92
- "jest-config-ibm-cloud-cognitive": "^1.37.0",
93
+ "jest-config-ibm-cloud-cognitive": "^1.38.0-rc.0",
93
94
  "jest-environment-jsdom": "^29.7.0",
94
95
  "namor": "^1.1.2",
95
96
  "npm-run-all2": "^8.0.0",
@@ -99,7 +100,7 @@
99
100
  "rollup": "^4.35.0",
100
101
  "rollup-plugin-preserve-directives": "^0.4.0",
101
102
  "rollup-plugin-strip-banner": "^3.1.0",
102
- "sass": "^1.85.1",
103
+ "sass": "^1.93.2",
103
104
  "storybook": "^9.0.8",
104
105
  "typescript-config-carbon": "^0.8.0",
105
106
  "vite": "^7.0.0",
@@ -108,11 +109,11 @@
108
109
  "dependencies": {
109
110
  "@babel/runtime": "^7.26.10",
110
111
  "@carbon-labs/react-resizer": "^0.10.0",
111
- "@carbon/feature-flags": "^0.30.0",
112
- "@carbon/ibm-products-styles": "^2.74.0",
112
+ "@carbon/feature-flags": "^0.32.0",
113
+ "@carbon/ibm-products-styles": "^2.75.0-rc.0",
113
114
  "@carbon/telemetry": "^0.1.0",
114
- "@carbon/utilities": "^0.9.0",
115
- "@carbon/utilities-react": "0.12.0",
115
+ "@carbon/utilities": "^0.10.0",
116
+ "@carbon/utilities-react": "0.13.0",
116
117
  "@dnd-kit/core": "^6.3.1",
117
118
  "@dnd-kit/modifiers": "^9.0.0",
118
119
  "@dnd-kit/sortable": "^10.0.0",
@@ -122,14 +123,14 @@
122
123
  "react-window": "^1.8.11"
123
124
  },
124
125
  "peerDependencies": {
125
- "@carbon/grid": "^11.42.0",
126
- "@carbon/layout": "^11.40.0",
127
- "@carbon/motion": "^11.34.0",
128
- "@carbon/react": "^1.90.0",
129
- "@carbon/themes": "^11.59.0",
130
- "@carbon/type": "^11.46.0",
126
+ "@carbon/grid": "^11.44.0",
127
+ "@carbon/layout": "^11.42.0",
128
+ "@carbon/motion": "^11.36.0",
129
+ "@carbon/react": "^1.92.1",
130
+ "@carbon/themes": "^11.61.0",
131
+ "@carbon/type": "^11.48.0",
131
132
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0",
132
133
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0"
133
134
  },
134
- "gitHead": "44b9182ef8d8018c9e3e6914e24e2259502e2f49"
135
+ "gitHead": "5d7a0eb6f0a6d4d7f0b909f3541aa46c856d54df"
135
136
  }
@@ -20,7 +20,7 @@ $block-class: #{$pkg-prefix}--filter-summary;
20
20
 
21
21
  .#{$block-class} {
22
22
  display: flex;
23
- align-items: flex-start;
23
+ align-items: center;
24
24
  padding: $spacing-03;
25
25
  background: $layer-01;
26
26
  /* stylelint-disable-next-line -- to-rem carbon replacement for rem */
@@ -997,6 +997,10 @@ $duration: 1000ms;
997
997
  @include breakpoint(lg) {
998
998
  transform: translateX($spacing-08);
999
999
  }
1000
+
1001
+ .#{$carbon-prefix}--tag {
1002
+ margin-inline-end: $spacing-03;
1003
+ }
1000
1004
  }
1001
1005
 
1002
1006
  .#{$block-class}--tag-overflow-popover__hidden {
@@ -45,7 +45,7 @@ $clabs-prefix: 'clabs';
45
45
 
46
46
  @mixin setDividerStyles() {
47
47
  position: absolute;
48
- background-color: $border-subtle-02;
48
+ background-color: $border-subtle-01;
49
49
  block-size: 1px;
50
50
  content: '';
51
51
  inline-size: 100%;
@@ -198,7 +198,7 @@ $clabs-prefix: 'clabs';
198
198
  inline-size: 100%;
199
199
  }
200
200
  &.#{$block-class}--right-placement {
201
- border-inline-start: 1px solid $border-subtle-02;
201
+ border-inline-start: 1px solid $border-subtle-01;
202
202
  inset-inline-end: 0;
203
203
  }
204
204
  &.#{$block-class}--left-placement {
@@ -221,7 +221,7 @@ $clabs-prefix: 'clabs';
221
221
  }
222
222
  }
223
223
 
224
- border-inline-end: 1px solid $border-subtle-02;
224
+ border-inline-end: 1px solid $border-subtle-01;
225
225
  inset-inline-start: 0;
226
226
  }
227
227
  &.#{$block-class}.#{$block-class}--has-slug,
@@ -325,7 +325,7 @@ $clabs-prefix: 'clabs';
325
325
 
326
326
  &.#{$block-class}__header--reduced-motion {
327
327
  z-index: 5;
328
- border-block-end: 1px solid $border-subtle-02;
328
+ border-block-end: 1px solid $border-subtle-01;
329
329
  margin-block-end: $spacing-05;
330
330
  }
331
331
 
@@ -542,7 +542,7 @@ $clabs-prefix: 'clabs';
542
542
  .#{$block-class}__actions-container {
543
543
  position: sticky; // stick to bottom
544
544
  background-color: $layer-01;
545
- border-block-start: 1px solid $border-subtle-02;
545
+ border-block-start: 1px solid $border-subtle-01;
546
546
  inset-block-end: 0;
547
547
 
548
548
  &.#{$action-set-block-class}--2xl {
@@ -6,7 +6,7 @@
6
6
  //
7
7
 
8
8
  // Standard imports.
9
- @use '../../global/styles/project-settings' as c4p-settings;
9
+ @use '../../global/styles/project-settings' as *;
10
10
  @use '../../global/styles/mixins';
11
11
  @use '@carbon/styles/scss/spacing' as *;
12
12
  @use '@carbon/styles/scss/breakpoint' as *;
@@ -22,8 +22,8 @@
22
22
  // TODO: @use(s) of IBM Products component styles used by TagOverflow
23
23
 
24
24
  // The block part of our conventional BEM class names (blockClass__E--M).
25
- $block-class: #{c4p-settings.$pkg-prefix}--tag-overflow;
26
- $block-class-overflow: #{$block-class}-popover;
25
+ $block-class: #{$pkg-prefix}--tag-overflow;
26
+ $block-class-popover: #{$block-class}-popover;
27
27
  $block-class-modal: #{$block-class}-modal;
28
28
 
29
29
  .#{$block-class}__visible-tags {
@@ -42,12 +42,10 @@ $block-class-modal: #{$block-class}-modal;
42
42
  flex-wrap: wrap;
43
43
  }
44
44
 
45
- .#{$block-class}__item {
46
- margin: $spacing-01;
47
- }
48
-
49
45
  .#{$block-class}__item--tag {
50
46
  border: none;
47
+ margin-block-end: $spacing-03;
48
+ margin-inline-end: $spacing-03;
51
49
  }
52
50
 
53
51
  .#{$block-class}__item--tag span {
@@ -63,59 +61,58 @@ $block-class-modal: #{$block-class}-modal;
63
61
  max-inline-size: $spacing-09;
64
62
  }
65
63
 
66
- .#{c4p-settings.$carbon-prefix}--popover
67
- .#{c4p-settings.$carbon-prefix}--popover-content {
64
+ .#{$carbon-prefix}--popover .#{$carbon-prefix}--popover-content {
68
65
  white-space: normal;
69
66
  }
70
67
 
71
- .#{$block-class-overflow} {
68
+ .#{$block-class-popover} {
72
69
  display: inline-block;
73
70
  vertical-align: bottom;
74
- .#{c4p-settings.$carbon-prefix}--tag.#{c4p-settings.$carbon-prefix}--tag--interactive {
71
+
72
+ .#{$carbon-prefix}--tag.#{$carbon-prefix}--tag--interactive {
75
73
  border: 0;
76
74
  }
77
75
 
78
- .#{c4p-settings.$carbon-prefix}--popover
79
- .#{c4p-settings.$carbon-prefix}--popover-content {
76
+ .#{$carbon-prefix}--popover .#{$carbon-prefix}--popover-content {
80
77
  padding: $spacing-05;
81
78
  }
82
79
  }
83
80
 
84
- .#{$block-class-overflow}--hidden {
81
+ .#{$block-class-popover}--hidden {
85
82
  overflow: hidden;
86
83
  max-inline-size: 0;
87
84
  visibility: hidden;
88
85
  }
89
86
 
90
- @include mixins.block-wrap('#{$block-class-overflow}__el') {
91
- &.#{$block-class-overflow}__el {
87
+ @include mixins.block-wrap('#{$block-class-popover}__el') {
88
+ &.#{$block-class-popover}__el {
92
89
  // removes the min width in Carbon
93
90
  min-inline-size: initial;
94
91
  text-align: start;
95
92
  }
96
93
 
97
- .#{$block-class-overflow}__trigger {
94
+ .#{$block-class-popover}__trigger {
98
95
  /* stylelint-disable-next-line declaration-no-important */
99
96
  border: none !important;
100
97
  font-family: inherit;
101
98
  }
102
99
 
103
- .#{c4p-settings.$carbon-prefix}--link:active,
104
- .#{c4p-settings.$carbon-prefix}--link:active:visited,
105
- .#{c4p-settings.$carbon-prefix}--link:active:visited:hover {
100
+ .#{$carbon-prefix}--link:active,
101
+ .#{$carbon-prefix}--link:active:visited,
102
+ .#{$carbon-prefix}--link:active:visited:hover {
106
103
  color: $text-inverse;
107
104
  }
108
105
 
109
- .#{$block-class-overflow}__tag-list {
106
+ .#{$block-class-popover}__tag-list {
110
107
  display: flex;
111
108
  flex-direction: column;
112
109
  }
113
110
 
114
- .#{$block-class-overflow}__show-all-tags-link {
111
+ .#{$block-class-popover}__show-all-tags-link {
115
112
  color: $link-inverse;
116
- margin-block-start: $spacing-03;
117
113
 
118
- &:hover {
114
+ &:hover,
115
+ &:visited:hover {
119
116
  color: $link-inverse-hover;
120
117
  }
121
118
 
@@ -128,14 +125,14 @@ $block-class-modal: #{$block-class}-modal;
128
125
  }
129
126
  }
130
127
 
131
- .#{$block-class-overflow}__tag-item.#{$block-class-overflow}__tag-item--tag
132
- .#{c4p-settings.$carbon-prefix}--tag {
128
+ .#{$block-class-popover}__tag-item.#{$block-class-popover}__tag-item--tag
129
+ .#{$carbon-prefix}--tag {
133
130
  background-color: $background-inverse-hover;
134
131
  }
135
132
 
136
- .#{$block-class-overflow}__tag-item.#{$block-class-overflow}__tag-item--default,
137
- .#{$block-class-overflow}__tag-item.#{$block-class-overflow}__tag-item--default
138
- .#{c4p-settings.$carbon-prefix}--tag {
133
+ .#{$block-class-popover}__tag-item.#{$block-class-popover}__tag-item--default,
134
+ .#{$block-class-popover}__tag-item.#{$block-class-popover}__tag-item--default
135
+ .#{$carbon-prefix}--tag {
139
136
  @include type.type-style('body-compact-01');
140
137
 
141
138
  display: block;
@@ -149,25 +146,21 @@ $block-class-modal: #{$block-class}-modal;
149
146
  min-inline-size: initial;
150
147
  }
151
148
 
152
- .#{$block-class-overflow}__tag
153
- .#{c4p-settings.$carbon-prefix}--tag__close-icon {
154
- // undo override by .#{c4p-settings.$carbon-prefix}--tooltip button
149
+ .#{$block-class-popover}__tag .#{$carbon-prefix}--tag__close-icon {
150
+ // undo override by .#{$carbon-prefix}--tooltip button
155
151
  padding: 0;
156
152
  }
157
153
 
158
- .#{$block-class-overflow}__tag
159
- .#{c4p-settings.$carbon-prefix}--tag--high-contrast {
154
+ .#{$block-class-popover}__tag .#{$carbon-prefix}--tag--high-contrast {
160
155
  background-color: $background;
161
156
  color: $text-primary;
162
157
  }
163
158
 
164
- .#{$block-class-overflow}__tag
165
- .#{c4p-settings.$carbon-prefix}--tag__close-icon:hover {
159
+ .#{$block-class-popover}__tag .#{$carbon-prefix}--tag__close-icon:hover {
166
160
  background-color: $background-hover;
167
161
  }
168
162
 
169
- .#{$block-class-overflow}__tag
170
- .#{c4p-settings.$carbon-prefix}--tag__close-icon:focus {
163
+ .#{$block-class-popover}__tag .#{$carbon-prefix}--tag__close-icon:focus {
171
164
  box-shadow: inset 0 0 0 $spacing-01 $focus;
172
165
  }
173
166
  }
@@ -194,4 +187,11 @@ $block-class-modal: #{$block-class}-modal;
194
187
  margin-inline-end: $spacing-05;
195
188
  padding-inline-end: 0;
196
189
  }
190
+
191
+ .#{$block-class-modal}__body {
192
+ .#{$carbon-prefix}--tag {
193
+ margin-block-end: $spacing-03;
194
+ margin-inline-end: $spacing-03;
195
+ }
196
+ }
197
197
  }
@@ -13,41 +13,41 @@
13
13
  @use '../../global/styles/project-settings' as *;
14
14
  @use '../../global/styles/mixins' as *;
15
15
 
16
- $_block-class: #{$pkg-prefix}--tag-set;
17
- $block-class-overflow: #{$_block-class}-overflow;
18
- $block-class-modal: #{$_block-class}-modal;
16
+ $block-class: #{$pkg-prefix}--tag-set;
17
+ $block-class-overflow: #{$block-class}-overflow;
18
+ $block-class-modal: #{$block-class}-modal;
19
19
 
20
- @include block-wrap($_block-class) {
21
- &.#{$_block-class} {
20
+ @include block-wrap($block-class) {
21
+ &.#{$block-class} {
22
22
  display: block;
23
23
  inline-size: 100%;
24
24
  }
25
25
 
26
- .#{$_block-class}__space {
26
+ .#{$block-class}__space {
27
27
  position: relative;
28
28
  display: block;
29
29
  inline-size: 100%;
30
30
  white-space: nowrap;
31
31
  }
32
32
 
33
- .#{$_block-class}__space--align-end {
33
+ .#{$block-class}__space--align-end {
34
34
  text-align: end;
35
35
  }
36
36
 
37
- .#{$_block-class}__space--align-center {
37
+ .#{$block-class}__space--align-center {
38
38
  text-align: center;
39
39
  }
40
40
 
41
- .#{$_block-class}__tag-container {
41
+ .#{$block-class}__tag-container {
42
42
  display: inline-flex; // needed to register a width
43
43
  white-space: nowrap;
44
44
  }
45
45
 
46
- .#{$_block-class}__tag-container--multiline {
46
+ .#{$block-class}__tag-container--multiline {
47
47
  flex-wrap: wrap;
48
48
  }
49
49
 
50
- .#{$_block-class}__tag-container--hidden {
50
+ .#{$block-class}__tag-container--hidden {
51
51
  // This tag container is used to measure the width of all displayable tags
52
52
  @include measuring-container;
53
53
  }
@@ -69,6 +69,11 @@ $block-class-modal: #{$_block-class}-modal;
69
69
  max-inline-size: 0;
70
70
  visibility: hidden;
71
71
  }
72
+
73
+ .#{$carbon-prefix}--tag {
74
+ margin-block-end: $spacing-03;
75
+ margin-inline-end: $spacing-03;
76
+ }
72
77
  }
73
78
 
74
79
  @include block-wrap('#{$block-class-modal}') {
@@ -93,6 +98,13 @@ $block-class-modal: #{$_block-class}-modal;
93
98
  margin-inline-end: $spacing-05;
94
99
  padding-inline-end: 0;
95
100
  }
101
+
102
+ .#{$block-class-modal}__body {
103
+ .#{$carbon-prefix}--tag {
104
+ margin-block-end: $spacing-03;
105
+ margin-inline-end: $spacing-03;
106
+ }
107
+ }
96
108
  }
97
109
 
98
110
  @include block-wrap('#{$block-class-overflow}__tagset-popover') {
@@ -117,7 +129,8 @@ $block-class-modal: #{$_block-class}-modal;
117
129
  color: $link-inverse;
118
130
  margin-block-start: $spacing-03;
119
131
 
120
- &:hover {
132
+ &:hover,
133
+ &:visited:hover {
121
134
  color: $link-inverse-hover;
122
135
  }
123
136
 
@@ -133,6 +146,9 @@ $block-class-modal: #{$_block-class}-modal;
133
146
  .#{$block-class-overflow}__tag-item.#{$block-class-overflow}__tag-item--tag
134
147
  .#{$carbon-prefix}--tag {
135
148
  background-color: $background-inverse-hover;
149
+ // This adds spacing only for the overflow menu
150
+ // listing "tags" as opposed to just "labels".
151
+ margin-block-end: $spacing-01;
136
152
  }
137
153
 
138
154
  .#{$block-class-overflow}__tag-item.#{$block-class-overflow}__tag-item--default,
@@ -22,6 +22,8 @@
22
22
  // ActionSet
23
23
  @use '../ActionSet/action-set';
24
24
 
25
+ @use './tearsheet_next';
26
+
25
27
  $block-class: #{$pkg-prefix}--tearsheet;
26
28
 
27
29
  // stylelint-disable-next-line carbon/theme-use
@@ -208,8 +210,11 @@ $motion-duration: $duration-moderate-02;
208
210
  transform: scale(var(--#{$block-class}--stacking-scale-factor-double));
209
211
  }
210
212
 
213
+ .#{$block-class}__header {
214
+ min-block-size: fit-content;
215
+ }
216
+
211
217
  &.#{$block-class}--wide .#{$block-class}__header {
212
- overflow: visible;
213
218
  padding: $spacing-06 $spacing-07;
214
219
  margin: 0;
215
220
  background-color: $layer;
@@ -311,6 +316,7 @@ $motion-duration: $duration-moderate-02;
311
316
 
312
317
  &.#{$block-class} .#{$block-class}__body {
313
318
  display: flex;
319
+ overflow: hidden;
314
320
  flex-direction: row;
315
321
  padding: 0;
316
322
  margin: 0;
@@ -418,6 +424,7 @@ $motion-duration: $duration-moderate-02;
418
424
  .#{$block-class}__button-container {
419
425
  grid-column: 1 / -1;
420
426
  grid-row: -1 / -1;
427
+ min-block-size: fit-content;
421
428
  overflow-x: auto;
422
429
  @supports (overflow-inline: auto) {
423
430
  /* stylelint-disable-next-line declaration-property-value-disallowed-list */