@carbon/ibm-products 2.18.1 → 2.19.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 (68) hide show
  1. package/css/index-full-carbon.css +458 -86
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +111 -15
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +139 -15
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +125 -16
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/APIKeyModal/APIKeyModal.js +1 -1
  18. package/es/components/Card/Card.js +11 -2
  19. package/es/components/Card/CardHeader.js +41 -3
  20. package/es/components/CreateSidePanel/CreateSidePanel.js +4 -0
  21. package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -1
  22. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +98 -47
  23. package/es/components/Datagrid/Datagrid/DatagridRow.js +14 -4
  24. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +0 -3
  25. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +2 -2
  26. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
  27. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +55 -30
  28. package/es/components/Datagrid/Extensions/Filtering/Filtering.docs-page.js +1 -1
  29. package/es/components/Datagrid/useFiltering.js +2 -1
  30. package/es/components/EditSidePanel/EditSidePanel.js +4 -0
  31. package/es/components/ExpressiveCard/ExpressiveCard.js +5 -0
  32. package/es/components/Guidebanner/Guidebanner.js +12 -3
  33. package/es/components/InlineTip/InlineTip.js +17 -6
  34. package/es/components/InlineTip/InlineTipButton.js +2 -0
  35. package/es/components/InlineTip/InlineTipLink.js +2 -0
  36. package/es/components/ProductiveCard/ProductiveCard.js +5 -0
  37. package/es/components/SidePanel/SidePanel.js +7 -6
  38. package/es/components/index.js +4 -1
  39. package/es/global/js/package-settings.js +2 -0
  40. package/lib/components/APIKeyModal/APIKeyModal.js +1 -1
  41. package/lib/components/Card/Card.js +13 -4
  42. package/lib/components/Card/CardHeader.js +40 -2
  43. package/lib/components/CreateSidePanel/CreateSidePanel.js +4 -0
  44. package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -1
  45. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +105 -53
  46. package/lib/components/Datagrid/Datagrid/DatagridRow.js +14 -4
  47. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +0 -3
  48. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +2 -2
  49. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
  50. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +55 -30
  51. package/lib/components/Datagrid/Extensions/Filtering/Filtering.docs-page.js +1 -1
  52. package/lib/components/Datagrid/useFiltering.js +2 -1
  53. package/lib/components/EditSidePanel/EditSidePanel.js +4 -0
  54. package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -0
  55. package/lib/components/Guidebanner/Guidebanner.js +12 -3
  56. package/lib/components/InlineTip/InlineTip.js +17 -6
  57. package/lib/components/InlineTip/InlineTipButton.js +2 -0
  58. package/lib/components/InlineTip/InlineTipLink.js +2 -0
  59. package/lib/components/ProductiveCard/ProductiveCard.js +5 -0
  60. package/lib/components/SidePanel/SidePanel.js +7 -6
  61. package/lib/components/index.js +52 -1
  62. package/lib/global/js/package-settings.js +2 -0
  63. package/package.json +5 -5
  64. package/scss/components/Card/_card.scss +89 -0
  65. package/scss/components/Guidebanner/_guidebanner.scss +25 -0
  66. package/scss/components/InlineTip/_inline-tip.scss +12 -0
  67. package/scss/components/ProductiveCard/_productive-card.scss +0 -5
  68. package/scss/components/SidePanel/_side-panel.scss +33 -15
@@ -246,3 +246,28 @@ $purple-3: #7433e3;
246
246
  fill: $purple-1;
247
247
  }
248
248
  }
249
+
250
+ // Exception handling.
251
+ // If "withLeftgutter", then:
252
+ // - insert 1 rem of more "space" on the left.
253
+ // - move icon 1 rem more to the right.
254
+ .#{$block-class}__with-left-gutter .#{$block-class}__icon-idea {
255
+ left: $spacing-07;
256
+ }
257
+ .#{$block-class}__with-left-gutter .#{$block-class}__title {
258
+ padding-left: calc($horizontal-margin + $spacing-05);
259
+ }
260
+ .#{$block-class}__with-left-gutter .#{$block-class}__navigation {
261
+ padding-left: $spacing-05;
262
+ }
263
+ // Override Carousel settings
264
+ // - insert 1 rem of more "space" on the left.
265
+ .#{$block-class}__with-left-gutter
266
+ .#{c4p-settings.$pkg-prefix}--carousel__elements-container {
267
+ padding-left: $spacing-05;
268
+ }
269
+ // - expand "fade" to cover more of the left side of the carousel.
270
+ .#{$block-class}__with-left-gutter
271
+ .#{c4p-settings.$pkg-prefix}--carousel__elements-container--scrolled {
272
+ width: $spacing-10;
273
+ }
@@ -227,3 +227,15 @@ $purple: #7f3ae7;
227
227
  flex-shrink: 0;
228
228
  }
229
229
  }
230
+
231
+ // Exception handling.
232
+ // If "withLeftgutter", then:
233
+ // - insert 1 rem of more "space" on the left.
234
+ // - move icon 1 rem more to the right.
235
+ .#{$block-class}__wide.#{$block-class}__with-left-gutter {
236
+ padding-left: $spacing-10;
237
+ }
238
+ .#{$block-class}__wide.#{$block-class}__with-left-gutter
239
+ .#{$block-class}__icon-idea {
240
+ left: $spacing-07;
241
+ }
@@ -16,10 +16,6 @@
16
16
  $block-class: #{c4p-settings.$pkg-prefix}--card;
17
17
 
18
18
  .#{$block-class}__productive {
19
- .#{$block-class}__header {
20
- padding-right: 0;
21
- }
22
-
23
19
  .#{$block-class}__title {
24
20
  @include type.type-style('heading-compact-02');
25
21
  }
@@ -49,7 +45,6 @@ $block-class: #{c4p-settings.$pkg-prefix}--card;
49
45
 
50
46
  .#{$block-class}__actions-header {
51
47
  margin-top: calc(-1 * #{$spacing-02});
52
- margin-right: $spacing-03;
53
48
  }
54
49
 
55
50
  .#{$block-class}__actions-header-ghost-button {
@@ -115,6 +115,16 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
115
115
  padding: $spacing-05 $spacing-05 $spacing-03 $spacing-05;
116
116
  background-color: $layer-01;
117
117
 
118
+ &:has(.#{$block-class}__navigation-back-button) {
119
+ padding-top: $spacing-07;
120
+ }
121
+
122
+ &:has(
123
+ .#{$block-class}__navigation-back-button.#{c4p-settings.$carbon-prefix}--btn--md
124
+ ) {
125
+ padding-top: $spacing-08;
126
+ }
127
+
118
128
  /* stylelint-disable-next-line max-nesting-depth */
119
129
  &::before {
120
130
  @include setDividerStyles();
@@ -129,8 +139,15 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
129
139
  margin-bottom: 0;
130
140
  }
131
141
  &.#{$block-class}__on-detail-step .#{$block-class}__collapsed-title-text {
132
- top: $spacing-09;
142
+ top: $spacing-07;
143
+ }
144
+
145
+ &.#{$block-class}__on-detail-step
146
+ .#{$block-class}__navigation-back-button.#{c4p-settings.$carbon-prefix}--btn--md
147
+ ~ .#{$block-class}__collapsed-title-text {
148
+ top: $spacing-08;
133
149
  }
150
+
134
151
  &.#{$block-class}__title-container-without-title {
135
152
  padding: 0;
136
153
  }
@@ -326,29 +343,30 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
326
343
  }
327
344
 
328
345
  .#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__navigation-back-button {
329
- position: relative;
346
+ position: fixed;
330
347
  z-index: 5;
331
- top: calc(-1 * #{$spacing-03});
332
- left: calc(-1 * #{$spacing-03});
348
+ top: 0;
349
+ left: 0;
333
350
  }
334
351
  .#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__navigation-back-button,
335
- .#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__close-button {
336
- min-width: 2rem;
337
- padding: 0;
338
- color: $text-primary;
339
- }
340
-
341
352
  .#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__close-button {
342
353
  display: flex;
354
+ width: $spacing-07;
355
+ height: $spacing-07;
343
356
  align-items: center;
344
357
  justify-content: center;
345
- margin: $spacing-03;
346
- margin-bottom: 0;
347
- }
358
+ padding: 0;
359
+ color: $text-primary;
348
360
 
349
- .#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__close-button
350
361
  .#{c4p-settings.$carbon-prefix}--btn__icon {
351
- margin: 0;
362
+ margin: 0;
363
+ }
364
+ }
365
+
366
+ .#{c4p-settings.$carbon-prefix}--btn--md.#{$block-class}__navigation-back-button,
367
+ .#{c4p-settings.$carbon-prefix}--btn--md.#{$block-class}__close-button {
368
+ width: $spacing-08;
369
+ height: $spacing-08;
352
370
  }
353
371
 
354
372
  .#{$block-class}__slug-and-close {