@carbon/ibm-products 1.37.0 → 1.38.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 (64) hide show
  1. package/css/index-full-carbon.css +11036 -10803
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +2 -2
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +59 -0
  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 +148 -23
  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 +3655 -1828
  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/AddSelect/AddSelect.js +5 -2
  18. package/es/components/AddSelect/AddSelectBody.js +41 -22
  19. package/es/components/AddSelect/AddSelectColumn.js +2 -2
  20. package/es/components/AddSelect/AddSelectFilter.js +4 -2
  21. package/es/components/AddSelect/AddSelectList.js +7 -5
  22. package/es/components/AddSelect/AddSelectMetaPanel.js +7 -0
  23. package/es/components/AddSelect/AddSelectSidebar.js +4 -1
  24. package/es/components/AddSelect/add-select-utils.js +7 -0
  25. package/es/components/AddSelect/hooks/useItemSort.js +7 -0
  26. package/es/components/AddSelect/hooks/useParentSelect.js +7 -0
  27. package/es/components/AddSelect/hooks/usePath.js +15 -1
  28. package/es/components/AddSelect/index.js +1 -1
  29. package/es/components/InlineEditV1/InlineEditV1.js +0 -3
  30. package/es/components/InlineEditV2/InlineEditV2.js +0 -1
  31. package/es/components/MultiAddSelect/MultiAddSelect.js +14 -6
  32. package/es/components/MultiAddSelect/index.js +7 -0
  33. package/es/components/SingleAddSelect/SingleAddSelect.js +13 -2
  34. package/es/components/SingleAddSelect/index.js +7 -0
  35. package/es/components/index.js +1 -2
  36. package/es/global/js/package-settings.js +1 -3
  37. package/lib/components/AddSelect/AddSelect.js +5 -2
  38. package/lib/components/AddSelect/AddSelectBody.js +40 -21
  39. package/lib/components/AddSelect/AddSelectColumn.js +2 -2
  40. package/lib/components/AddSelect/AddSelectFilter.js +4 -2
  41. package/lib/components/AddSelect/AddSelectList.js +6 -4
  42. package/lib/components/AddSelect/AddSelectMetaPanel.js +7 -0
  43. package/lib/components/AddSelect/AddSelectSidebar.js +4 -1
  44. package/lib/components/AddSelect/add-select-utils.js +7 -0
  45. package/lib/components/AddSelect/hooks/useItemSort.js +7 -0
  46. package/lib/components/AddSelect/hooks/useParentSelect.js +7 -0
  47. package/lib/components/AddSelect/hooks/usePath.js +8 -1
  48. package/lib/components/InlineEditV1/InlineEditV1.js +1 -4
  49. package/lib/components/InlineEditV2/InlineEditV2.js +0 -1
  50. package/lib/components/MultiAddSelect/MultiAddSelect.js +14 -6
  51. package/lib/components/SingleAddSelect/SingleAddSelect.js +13 -2
  52. package/lib/components/index.js +1 -8
  53. package/lib/global/js/package-settings.js +1 -3
  54. package/package.json +2 -2
  55. package/scss/components/AddSelect/_add-select.scss +37 -29
  56. package/scss/components/AddSelect/_index.scss +1 -1
  57. package/scss/components/AddSelect/_storybook-styles.scss +1 -1
  58. package/scss/components/MultiAddSelect/_index.scss +7 -0
  59. package/scss/components/MultiAddSelect/_multi-add-select.scss +7 -0
  60. package/scss/components/MultiAddSelect/_storybook-styles.scss +1 -1
  61. package/scss/components/SingleAddSelect/_index.scss +7 -0
  62. package/scss/components/SingleAddSelect/_single-add-select.scss +7 -0
  63. package/scss/components/SingleAddSelect/_storybook-styles.scss +1 -1
  64. package/scss/components/_index-released-only.scss +1 -0
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021
2
+ // Copyright IBM Corp. 2022
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -8,7 +8,19 @@
8
8
  // Standard imports.
9
9
  @import '../../global/styles/project-settings';
10
10
 
11
+ @import '../Tearsheet/index';
12
+ @import '../CreateInfluencer/index';
13
+
14
+ @import 'carbon-components/scss/components/accordion/accordion';
15
+ @import 'carbon-components/scss/components/breadcrumb/breadcrumb';
16
+ @import 'carbon-components/scss/components/button/button';
17
+ @import 'carbon-components/scss/components/checkbox/checkbox';
18
+ @import 'carbon-components/scss/components/dropdown/dropdown';
19
+ @import 'carbon-components/scss/components/overflow-menu/overflow-menu';
20
+ @import 'carbon-components/scss/components/radio-button/radio-button';
21
+ @import 'carbon-components/scss/components/search/search';
11
22
  @import 'carbon-components/scss/components/structured-list/structured-list';
23
+ @import 'carbon-components/scss/components/tag/tag';
12
24
 
13
25
  @mixin add-select {
14
26
  $block-class: #{$pkg-prefix}--add-select;
@@ -60,7 +72,9 @@
60
72
  justify-content: center;
61
73
  }
62
74
 
63
- &-cell:hover .#{$block-class}__selections-hidden-hover {
75
+ &-cell:hover .#{$block-class}__selections-hidden-hover,
76
+ .#{$carbon-prefix}--structured-list-row:focus-within
77
+ .#{$block-class}__selections-hidden-hover {
64
78
  visibility: visible;
65
79
  }
66
80
 
@@ -68,7 +82,7 @@
68
82
  visibility: hidden;
69
83
  }
70
84
 
71
- &-row-selected#{$carbon-prefix}--structured-list-row {
85
+ &-row--selected.#{$carbon-prefix}--structured-list-row {
72
86
  border-bottom: 1px solid $selected-ui;
73
87
  background-color: $selected-ui;
74
88
  }
@@ -108,7 +122,7 @@
108
122
  border-left: 0.125rem solid transparent;
109
123
  }
110
124
 
111
- &-row-meta-selected {
125
+ &-row-meta--selected {
112
126
  border-left: 0.125rem solid $interactive-04;
113
127
  background-color: $hover-row;
114
128
  }
@@ -130,13 +144,6 @@
130
144
  }
131
145
  }
132
146
 
133
- .#{$block-class}
134
- #{$carbon-prefix}--structured-list--selection
135
- .#{$block-class}__selections-row-selected#{$carbon-prefix}--structured-list-row:hover:not(#{$carbon-prefix}--structured-list-row--header-row):not(#{$carbon-prefix}--structured-list-row--selected) {
136
- border-bottom: 1px solid $hover-selected-ui;
137
- background-color: $hover-selected-ui;
138
- }
139
-
140
147
  .#{$block-class}__sub-header {
141
148
  display: flex;
142
149
  align-items: flex-end;
@@ -147,13 +154,10 @@
147
154
  }
148
155
  }
149
156
 
150
- .#{$block-class} #{$carbon-prefix}--structured-list-row {
151
- border-bottom: 0;
152
- }
153
-
157
+ .#{$block-class} .#{$carbon-prefix}--structured-list-row,
154
158
  .#{$block-class}
155
- #{$carbon-prefix}--structured-list--selection
156
- #{$carbon-prefix}--structured-list-row:hover:not(#{$carbon-prefix}--structured-list-row--header-row):not(#{$carbon-prefix}--structured-list-row--selected) {
159
+ .#{$block-class}__selections.#{$carbon-prefix}--structured-list--selection
160
+ .#{$carbon-prefix}--structured-list-row:hover:not(.#{$carbon-prefix}--structured-list-row--header-row):not(.#{$carbon-prefix}--structured-list-row--selected) {
157
161
  border-bottom: 0;
158
162
  }
159
163
 
@@ -224,7 +228,7 @@
224
228
  margin-left: $spacing-03;
225
229
  }
226
230
 
227
- .#{$block-class}__selections-row#{$carbon-prefix}--structured-list-row {
231
+ .#{$block-class}__selections-row.#{$carbon-prefix}--structured-list-row {
228
232
  border-left: 0;
229
233
  }
230
234
 
@@ -237,7 +241,7 @@
237
241
  padding: 0 $spacing-03;
238
242
  }
239
243
 
240
- .#{$block-class}__tag-container {
244
+ .#{$block-class}__tags {
241
245
  padding: 0 $spacing-03;
242
246
  margin-bottom: 0;
243
247
  }
@@ -246,7 +250,7 @@
246
250
  padding: 0;
247
251
  }
248
252
 
249
- .#{$block-class}__selections#{$carbon-prefix}--structured-list {
253
+ .#{$block-class}__selections.#{$carbon-prefix}--structured-list {
250
254
  border-top: 0;
251
255
  }
252
256
  }
@@ -284,7 +288,7 @@
284
288
  }
285
289
  }
286
290
 
287
- .#{$block-class}__tag-container {
291
+ .#{$block-class}__tags {
288
292
  display: flex;
289
293
  align-items: center;
290
294
  margin-top: $spacing-05;
@@ -375,7 +379,11 @@
375
379
 
376
380
  // overrides
377
381
 
378
- .#{$block-class}__tag-container .#{$carbon-prefix}--tag {
382
+ .#{$block-class}__selections .#{$carbon-prefix}--list-box__menu {
383
+ left: auto;
384
+ }
385
+
386
+ .#{$block-class}__tags .#{$carbon-prefix}--tag {
379
387
  margin: 0;
380
388
  }
381
389
 
@@ -440,7 +448,7 @@
440
448
 
441
449
  .#{$block-class}__multi .#{$pkg-prefix}--empty-state {
442
450
  max-width: 16rem;
443
- margin-top: $layout-04;
451
+ margin-top: $spacing-09;
444
452
  }
445
453
 
446
454
  .#{$block-class} .#{$carbon-prefix}--accordion__arrow {
@@ -454,20 +462,20 @@
454
462
  }
455
463
 
456
464
  .#{$block-class}
457
- #{$carbon-prefix}--accordion--start
458
- #{$carbon-prefix}--accordion__arrow {
465
+ .#{$carbon-prefix}--accordion--start
466
+ .#{$carbon-prefix}--accordion__arrow {
459
467
  margin: 0 0 0 $spacing-05;
460
468
  }
461
469
 
462
470
  .#{$block-class}
463
- #{$carbon-prefix}--accordion--start
464
- #{$carbon-prefix}--accordion__title {
471
+ .#{$carbon-prefix}--accordion--start
472
+ .#{$carbon-prefix}--accordion__title {
465
473
  margin: 0 $spacing-05 0 $spacing-03;
466
474
  }
467
475
 
468
476
  .#{$block-class}
469
- #{$carbon-prefix}--accordion__item--active
470
- #{$carbon-prefix}--accordion__content {
477
+ .#{$carbon-prefix}--accordion__item--active
478
+ .#{$carbon-prefix}--accordion__content {
471
479
  padding-top: 0;
472
480
  padding-bottom: 0;
473
481
  margin-top: $spacing-03;
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021
2
+ // Copyright IBM Corp. 2022
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021
2
+ // Copyright IBM Corp. 2022
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -1 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
1
8
  @import './multi-add-select';
@@ -1 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
1
8
  @import '../AddSelect/add-select';
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021
2
+ // Copyright IBM Corp. 2022
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -1 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
1
8
  @import './single-add-select';
@@ -1 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
1
8
  @import '../AddSelect/add-select';
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021
2
+ // Copyright IBM Corp. 2022
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -23,6 +23,7 @@
23
23
  @import './HTTPErrors/index';
24
24
  @import './ImportModal/index';
25
25
  @import './InlineEditV1/index';
26
+ @import './InlineEditV2/index';
26
27
  @import './NotificationsPanel/index';
27
28
  @import './PageHeader/index';
28
29
  @import './ProductiveCard/index';