@carbon/ibm-products 1.9.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. package/css/index-full-carbon.css +364 -5838
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +5 -5
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +68 -3430
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +3 -3
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +185 -4098
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +5 -5
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +302 -4099
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +5 -5
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/AddSelect/AddSelect.js +98 -92
  18. package/es/components/AddSelect/AddSelectColumn.js +219 -8
  19. package/es/components/AddSelect/AddSelectList.js +5 -5
  20. package/es/components/AddSelect/AddSelectSidebar.js +3 -15
  21. package/es/components/AddSelect/add-select-utils.js +64 -0
  22. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +2 -1
  23. package/es/components/ButtonMenu/ButtonMenu.js +12 -4
  24. package/es/components/DataSpreadsheet/DataSpreadsheet.js +480 -182
  25. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +124 -81
  26. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +74 -8
  27. package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +27 -0
  28. package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +28 -0
  29. package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +41 -0
  30. package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +34 -0
  31. package/es/components/DataSpreadsheet/{createActiveCellFn.js → utils/createActiveCellFn.js} +21 -8
  32. package/es/components/DataSpreadsheet/{createCellSelectionArea.js → utils/createCellSelectionArea.js} +8 -4
  33. package/es/components/DataSpreadsheet/{generateData.js → utils/generateData.js} +6 -0
  34. package/es/components/DataSpreadsheet/{getCellSize.js → utils/getCellSize.js} +0 -0
  35. package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +46 -0
  36. package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +82 -0
  37. package/es/components/DataSpreadsheet/utils/removeCellSelections.js +30 -0
  38. package/es/components/InlineEdit/InlineEdit.js +58 -27
  39. package/es/components/OptionsTile/OptionsTile.js +31 -21
  40. package/es/components/OptionsTile/index.js +1 -1
  41. package/es/components/PageHeader/PageHeader.js +26 -15
  42. package/es/components/PageHeader/PageHeaderTitle.js +2 -1
  43. package/es/components/PageHeader/PageHeaderUtils.js +24 -29
  44. package/es/components/TagSet/TagSet.js +12 -3
  45. package/es/components/UserProfileImage/UserProfileImage.js +2 -1
  46. package/es/components/index.js +0 -1
  47. package/es/global/js/package-settings.js +1 -2
  48. package/lib/components/AddSelect/AddSelect.js +101 -92
  49. package/lib/components/AddSelect/AddSelectColumn.js +232 -13
  50. package/lib/components/AddSelect/AddSelectList.js +5 -5
  51. package/lib/components/AddSelect/AddSelectSidebar.js +9 -15
  52. package/lib/components/AddSelect/add-select-utils.js +78 -0
  53. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +2 -1
  54. package/lib/components/ButtonMenu/ButtonMenu.js +12 -4
  55. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +490 -186
  56. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +127 -82
  57. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +82 -9
  58. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +37 -0
  59. package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +39 -0
  60. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +52 -0
  61. package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +45 -0
  62. package/lib/components/DataSpreadsheet/{createActiveCellFn.js → utils/createActiveCellFn.js} +21 -8
  63. package/lib/components/DataSpreadsheet/{createCellSelectionArea.js → utils/createCellSelectionArea.js} +8 -4
  64. package/lib/components/DataSpreadsheet/{generateData.js → utils/generateData.js} +6 -0
  65. package/lib/components/DataSpreadsheet/{getCellSize.js → utils/getCellSize.js} +0 -0
  66. package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +59 -0
  67. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +92 -0
  68. package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +41 -0
  69. package/lib/components/InlineEdit/InlineEdit.js +60 -28
  70. package/lib/components/OptionsTile/OptionsTile.js +30 -20
  71. package/lib/components/PageHeader/PageHeader.js +25 -15
  72. package/lib/components/PageHeader/PageHeaderTitle.js +2 -1
  73. package/lib/components/PageHeader/PageHeaderUtils.js +24 -29
  74. package/lib/components/TagSet/TagSet.js +13 -3
  75. package/lib/components/UserProfileImage/UserProfileImage.js +2 -1
  76. package/lib/components/index.js +0 -8
  77. package/lib/global/js/package-settings.js +1 -2
  78. package/package.json +17 -17
  79. package/scss/components/AddSelect/_add-select.scss +47 -14
  80. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +7 -3
  81. package/scss/components/CreateInfluencer/_create-influencer.scss +2 -0
  82. package/scss/components/CreateModal/_create-modal.scss +1 -0
  83. package/scss/components/CreateSidePanel/_create-side-panel.scss +1 -1
  84. package/scss/components/CreateSidePanel/_storybook-styles.scss +1 -1
  85. package/scss/components/CreateTearsheet/_create-tearsheet.scss +1 -0
  86. package/scss/components/CreateTearsheetNarrow/_create-tearsheet-narrow.scss +1 -0
  87. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +25 -7
  88. package/scss/components/EditSidePanel/_edit-side-panel.scss +9 -0
  89. package/scss/components/EditSidePanel/_storybook-styles.scss +1 -1
  90. package/scss/components/InlineEdit/_inline-edit.scss +46 -39
  91. package/scss/components/InlineEdit/_storybook-styles.scss +1 -0
  92. package/scss/components/ModifiedTabs/_modified-tabs.scss +5 -0
  93. package/scss/components/NotificationsPanel/_notifications-panel.scss +10 -3
  94. package/scss/components/OptionsTile/_index.scss +1 -1
  95. package/scss/components/OptionsTile/_options-tile.scss +17 -17
  96. package/scss/components/OptionsTile/_storybook-styles.scss +4 -4
  97. package/scss/components/PageHeader/_page-header.scss +5 -2
  98. package/scss/components/SidePanel/_side-panel.scss +19 -12
  99. package/scss/components/StatusIcon/_status-icon.scss +1 -0
  100. package/scss/components/Tearsheet/_tearsheet.scss +4 -0
  101. package/scss/components/UserProfileImage/_user-profile-image.scss +9 -0
  102. package/scss/components/WebTerminal/_web-terminal.scss +2 -0
  103. package/scss/components/_index.scss +0 -1
  104. package/es/components/LoadingBar/LoadingBar.js +0 -156
  105. package/es/components/LoadingBar/index.js +0 -7
  106. package/lib/components/LoadingBar/LoadingBar.js +0 -170
  107. package/lib/components/LoadingBar/index.js +0 -13
  108. package/scss/components/LoadingBar/_index.scss +0 -8
  109. package/scss/components/LoadingBar/_loading-bar.scss +0 -211
  110. package/scss/components/LoadingBar/_storybook-styles.scss +0 -14
@@ -35,10 +35,6 @@
35
35
  position: relative;
36
36
  }
37
37
 
38
- button.#{$block-class}__td {
39
- margin: 0;
40
- background-color: transparent;
41
- }
42
38
  .#{$block-class}__tr {
43
39
  :last-child {
44
40
  .#{$block-class}__td {
@@ -60,22 +56,25 @@
60
56
  border-right: 1px solid $text-03;
61
57
  }
62
58
  .#{$block-class}__th,
63
- button.#{$block-class}__td-th {
59
+ .#{$block-class}__td-th.#{$block-class}__td {
64
60
  @include set-header-borders();
65
61
 
66
62
  background-color: $ui-01;
67
63
  cursor: pointer;
68
64
  }
69
- .#{$block-class}__td-th {
65
+ .#{$block-class}__td-th.#{$block-class}__td {
70
66
  @include carbon--font-weight('semibold');
71
67
 
72
68
  display: flex;
73
69
  align-items: center;
74
70
  justify-content: flex-end;
75
71
  }
72
+
76
73
  .#{$block-class}__td {
77
74
  @include set-body-borders();
78
75
 
76
+ margin: 0;
77
+ background-color: $ui-background;
79
78
  cursor: cell;
80
79
  text-align: left;
81
80
  }
@@ -85,11 +84,25 @@
85
84
  color: $text-01;
86
85
  text-align: left;
87
86
  }
87
+ .#{$block-class}__cell-editor {
88
+ position: absolute;
89
+ z-index: 4;
90
+ display: none;
91
+ padding: 0 $spacing-03;
92
+ background-color: $ui-background;
93
+ resize: none;
94
+ &.#{$carbon-prefix}--text-area {
95
+ min-width: initial;
96
+ min-height: initial;
97
+ }
98
+ }
88
99
  .#{$block-class}__active-cell--highlight {
89
100
  position: absolute;
90
- z-index: 2;
101
+ z-index: 3;
102
+ display: none;
91
103
  border: $spacing-01 solid $interactive-01;
92
104
  background-color: transparent;
105
+
93
106
  &:focus {
94
107
  border: $spacing-01 solid $interactive-01;
95
108
  outline: 0;
@@ -100,6 +113,7 @@
100
113
  z-index: 2;
101
114
  border: 1px solid $interactive-01;
102
115
  pointer-events: none;
116
+
103
117
  &::before {
104
118
  position: absolute;
105
119
  top: 0;
@@ -112,6 +126,10 @@
112
126
  opacity: 0.25;
113
127
  }
114
128
  }
129
+ .#{$block-class}__th--active-header,
130
+ .#{$block-class}__td-th--active-header.#{$block-class}__td {
131
+ background-color: $ui-03;
132
+ }
115
133
  }
116
134
  }
117
135
 
@@ -58,6 +58,15 @@
58
58
  width: 100%;
59
59
  margin-bottom: 0;
60
60
  }
61
+
62
+ .#{$block-class}__actions-container {
63
+ position: absolute;
64
+ z-index: 4;
65
+ right: 0;
66
+ bottom: 0;
67
+ width: 100%;
68
+ margin-bottom: 0;
69
+ }
61
70
  }
62
71
  }
63
72
 
@@ -17,7 +17,7 @@ $story-prefix: edit-side-panel-stories__;
17
17
  grid-template-columns: 1fr 1fr;
18
18
  }
19
19
 
20
- .#{$story-prefix}example-form-group .bx--label {
20
+ .#{$story-prefix}example-form-group .#{$carbon-prefix}--label {
21
21
  margin-bottom: 0;
22
22
  }
23
23
 
@@ -28,23 +28,6 @@
28
28
  }
29
29
  }
30
30
 
31
- @function --tooltip-top-bottom-safe-clip() {
32
- @return polygon(
33
- 0 0,
34
- -100vw 0,
35
- -100vw -100vh,
36
- 100vw -100vh,
37
- 100vw 0,
38
- 100% 0,
39
- 100% 100%,
40
- 100vw 100%,
41
- 100vw 100vh,
42
- -100vw 100vh,
43
- -100vw 100%,
44
- 0 100%
45
- );
46
- }
47
-
48
31
  @mixin input-button-defaults($block-class) {
49
32
  display: inline-flex;
50
33
  width: var(--#{$block-class}--size);
@@ -69,6 +52,7 @@
69
52
  --#{$block-class}--size: #{$spacing-08};
70
53
  --#{$block-class}--icon-size: #{$spacing-05};
71
54
  --#{$block-class}--background-color: #{$ui-01};
55
+ --#{$block-class}--toolbar-width: calc(2 * var(--#{$block-class}--size));
72
56
 
73
57
  &.#{$block-class}--light {
74
58
  --#{$block-class}--background-color: transparent;
@@ -81,7 +65,9 @@
81
65
 
82
66
  position: relative;
83
67
  display: inline-block;
84
- // min-width: 250px; // similar to min input box with room for toolbar
68
+ // A standard input box is based on size (often around 150px)
69
+ // In our case there are potentially 2 * size buttons which we double
70
+ min-width: calc(4 * var(--#{$block-class}--size));
85
71
  max-width: 100%;
86
72
  height: var(--#{$block-class}--size);
87
73
  background-color: var(--#{$block-class}--background-color);
@@ -119,11 +105,12 @@
119
105
  overflow: hidden;
120
106
  // positions text and placeholder including when showing placeholder
121
107
  // NOTE: Using flex does strange things to a caret in content editable
122
- min-width: calc(100% - 3 * var(--#{$block-class}--size) - $spacing-05);
123
- max-width: calc(100% - 3 * var(--#{$block-class}--size) - $spacing-05);
108
+ width: calc(100% - var(--#{$block-class}--toolbar-width) - $spacing-05);
109
+ max-width: calc(
110
+ 100% - var(--#{$block-class}--toolbar-width) - $spacing-05
111
+ );
124
112
  min-height: var(--#{$block-class}--size);
125
- // stylelint-disable-next-line carbon/layout-token-use
126
- margin-right: calc(3 * var(--#{$block-class}--size));
113
+ margin-right: var(--#{$block-class}--toolbar-width);
127
114
  // room for toolbar
128
115
  margin-left: $spacing-05;
129
116
  // stylelint-disable-next-line carbon/type-token-use
@@ -134,6 +121,11 @@
134
121
  }
135
122
  }
136
123
 
124
+ &.#{$block-class}--invalid .#{$block-class}__input {
125
+ // add space for validation
126
+ --#{$block-class}--toolbar-width: calc(3 * var(--#{$block-class}--size));
127
+ }
128
+
137
129
  .#{$block-class}__input::after {
138
130
  position: absolute;
139
131
  top: 0;
@@ -192,23 +184,27 @@
192
184
  }
193
185
 
194
186
  .#{$block-class}__after-input-elements {
187
+ --#{$block-class}--toolbar-width: calc(2 * var(--#{$block-class}--size));
188
+
195
189
  // not simply flexed in as this causes flexbox to mis-measure the size of the input
196
190
  position: absolute;
197
191
  top: 0;
198
192
  right: 0;
199
193
  display: flex;
200
194
  // width: room for validation, and two buttons
201
- width: calc(3 * var(--#{$block-class}--size));
195
+ width: var(--#{$block-class}--toolbar-width);
202
196
  height: 100%;
203
197
  justify-content: space-between;
204
198
  cursor: text;
205
199
  }
206
200
 
201
+ &.#{$block-class}--invalid .#{$block-class}__after-input-elements {
202
+ // width: room for validation, and two buttons
203
+ --#{$block-class}--toolbar-width: calc(3 * var(--#{$block-class}--size));
204
+ }
205
+
207
206
  .#{$block-class}__toolbar--animation {
208
- // makes room for the top clip text but hides the side overflow
209
- clip-path: --tooltip-top-bottom-safe-clip();
210
- // NOTE: The above allows the tooltip to show through when overflowX: hidden would not when at right edge.
211
- // It is used with margin animation of contained buttons
207
+ // width: ;
212
208
  }
213
209
 
214
210
  &.#{$block-class}--editing .#{$block-class}__toolbar::after {
@@ -262,23 +258,38 @@
262
258
  &.#{$block-class}--editing
263
259
  .#{$block-class}__toolbar--animation
264
260
  .#{$block-class}__save {
265
- // stylelint-disable-next-line carbon/layout-token-use
266
- margin-right: calc(-1 * var(--#{$block-class}--size));
267
- transition: margin-right $duration--moderate-02
268
- motion(standard, productive);
261
+ margin-right: 0;
262
+ transition: all $duration--moderate-02 motion(standard, productive);
263
+ transition-property: margin, padding;
264
+
265
+ svg {
266
+ transition: width $duration--moderate-02 motion(standard, productive);
267
+ @media (prefers-reduced-motion: reduce) {
268
+ // stylelint-disable-next-line carbon/motion-token-use
269
+ transition: none;
270
+ }
271
+ }
269
272
  }
270
273
 
271
274
  &.#{$block-class}--editing
272
- .#{$block-class}__toolbar--saveable
275
+ .#{$block-class}__toolbar--animation:not(.#{$block-class}__toolbar--saveable)
273
276
  .#{$block-class}__save {
274
- margin-right: 0;
277
+ padding-right: 0;
278
+ padding-left: 0;
279
+ border-right: 0;
280
+ border-left: 0;
281
+ // stylelint-disable-next-line carbon/layout-token-use
282
+ margin-right: calc(-1 * var(--#{$block-class}--size));
283
+
284
+ svg {
285
+ overflow: hidden;
286
+ width: 0;
287
+ }
275
288
  }
276
289
 
277
290
  &.#{$block-class}.#{$block-class} .#{$block-class}__edit {
278
291
  @include input-button-defaults($block-class);
279
-
280
292
  // pointer-events: none;
281
-
282
293
  &:hover,
283
294
  &:active,
284
295
  &:focus {
@@ -309,10 +320,6 @@
309
320
  @include input-button-defaults($block-class);
310
321
  }
311
322
 
312
- &.#{$block-class}--warn .#{$block-class}__validation-icon {
313
- color: $support-warning;
314
- }
315
-
316
323
  &.#{$block-class}--invalid .#{$block-class}__validation-icon {
317
324
  color: $support-error;
318
325
  }
@@ -15,6 +15,7 @@
15
15
  }
16
16
 
17
17
  $block-class: #{$pkg-prefix}--inline-edit;
18
+
18
19
  .component-full-width {
19
20
  .#{$block-class} {
20
21
  width: 100%;
@@ -45,6 +45,11 @@
45
45
  border-radius: 0;
46
46
  cursor: pointer;
47
47
  transition: background-color $duration--fast-02 motion(standard, productive);
48
+ // stylelint-disable-next-line max-nesting-depth
49
+ @media (prefers-reduced-motion: reduce) {
50
+ // stylelint-disable-next-line carbon/motion-token-use
51
+ transition: none;
52
+ }
48
53
  }
49
54
 
50
55
  .modified-tabs__tab-new-icon {
@@ -26,6 +26,7 @@
26
26
  // stylelint-disable-next-line carbon/layout-token-use
27
27
  transform: translateY(-38.5rem); // the height of the notification panel
28
28
  }
29
+
29
30
  100% {
30
31
  opacity: 1;
31
32
  transform: translateY(0);
@@ -37,6 +38,7 @@
37
38
  opacity: 1;
38
39
  transform: translateY(0);
39
40
  }
41
+
40
42
  100% {
41
43
  opacity: 0;
42
44
  // stylelint-disable-next-line carbon/layout-token-use
@@ -181,16 +183,20 @@
181
183
  min-width: 5.5rem;
182
184
  padding: 0;
183
185
 
184
- .bx--btn__icon {
186
+ .#{$carbon-prefix}--btn__icon {
185
187
  transition: transform $duration--moderate-02 ease;
188
+ @media (prefers-reduced-motion: reduce) {
189
+ // stylelint-disable-next-line carbon/motion-token-use
190
+ transition: none;
191
+ }
186
192
  }
187
193
  &.#{$block-class}__notification-read-more-button {
188
- .bx--btn__icon {
194
+ .#{$carbon-prefix}--btn__icon {
189
195
  transform: rotate(0deg);
190
196
  }
191
197
  }
192
198
  &.#{$block-class}__notification-read-less-button {
193
- .bx--btn__icon {
199
+ .#{$carbon-prefix}--btn__icon {
194
200
  transform: rotate(180deg);
195
201
  }
196
202
  }
@@ -204,6 +210,7 @@
204
210
  padding: 0;
205
211
  color: $text-01;
206
212
  opacity: 0;
213
+
207
214
  &:hover,
208
215
  &:focus {
209
216
  opacity: 1;
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021, 2021
2
+ // Copyright IBM Corp. 2021, 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, 2021
2
+ // Copyright IBM Corp. 2021, 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.
@@ -12,6 +12,10 @@
12
12
  // Other Carbon settings.
13
13
  @import 'carbon-components/scss/globals/scss/helper-mixins';
14
14
 
15
+ // PageHeader uses the following Carbon components:
16
+ // Toggle
17
+ @import 'carbon-components/scss/components/toggle/toggle';
18
+
15
19
  // Define all component styles in a mixin which is then exported using
16
20
  // the Carbon import-once mechanism.
17
21
  @mixin options-tile {
@@ -44,7 +48,7 @@
44
48
  box-sizing: border-box;
45
49
  align-items: center;
46
50
  padding-right: $spacing-05;
47
- grid-template-columns: 3rem 1fr 1rem;
51
+ grid-template-columns: 3rem 1fr 2rem; // chevron container, heading, toggle width
48
52
  }
49
53
 
50
54
  .#{$block-class}__header {
@@ -53,6 +57,10 @@
53
57
  transition: background-color $duration--fast-01 motion(entrance, productive);
54
58
  }
55
59
 
60
+ .#{$block-class}__header::-webkit-details-marker {
61
+ display: none;
62
+ }
63
+
56
64
  .#{$block-class}__header:hover {
57
65
  background-color: $hover-ui;
58
66
  }
@@ -61,11 +69,11 @@
61
69
  @include focus-outline('outline');
62
70
  }
63
71
 
64
- .#{$block-class}__title {
72
+ .#{$block-class}__heading {
65
73
  grid-column: 2;
66
74
  }
67
75
 
68
- .#{$block-class}__heading {
76
+ .#{$block-class}__title {
69
77
  @include carbon--type-style('productive-heading-01');
70
78
 
71
79
  color: $text-01;
@@ -88,7 +96,7 @@
88
96
  .#{$block-class}__summary--warn,
89
97
  .#{$block-class}__summary--locked {
90
98
  column-gap: $spacing-02;
91
- grid-template-columns: 1rem 1fr;
99
+ grid-template-columns: 1rem 1fr; // icon, text
92
100
  }
93
101
 
94
102
  .#{$block-class}__summary--invalid {
@@ -110,11 +118,15 @@
110
118
  .#{$block-class}__summary-text {
111
119
  overflow: hidden;
112
120
  height: max-content;
121
+ // spacing-05 + toggle width
122
+ // stylelint-disable-next-line carbon/layout-token-use
123
+ padding-right: calc(#{$spacing-05} + 2rem);
113
124
  text-overflow: ellipsis;
114
125
  white-space: nowrap;
115
126
  }
116
127
 
117
128
  .#{$block-class}__chevron {
129
+ display: block;
118
130
  justify-self: center;
119
131
  transition: transform $duration--fast-02 motion(standard, productive);
120
132
  }
@@ -195,18 +207,6 @@
195
207
  margin-top: $spacing-01;
196
208
  }
197
209
 
198
- .#{$block-class}--lg .#{$block-class}__summary-text {
199
- // spacing-05 + toggle width
200
- // stylelint-disable-next-line carbon/layout-token-use
201
- padding-right: calc(#{$spacing-05} + 1rem);
202
- }
203
-
204
- .#{$block-class}--xl .#{$block-class}__summary-text {
205
- // spacing-05 + toggle width
206
- // stylelint-disable-next-line carbon/layout-token-use
207
- padding-right: calc(#{$spacing-05} + 2rem);
208
- }
209
-
210
210
  @media (prefers-reduced-motion: reduce) {
211
211
  .#{$block-class}__summary,
212
212
  .#{$block-class}__chevron {
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021, 2021
2
+ // Copyright IBM Corp. 2021, 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.
@@ -10,9 +10,9 @@
10
10
  $block-class: #{$pkg-prefix}--options-tile;
11
11
 
12
12
  .#{$block-class} {
13
- width: 70vw;
14
- min-width: 32rem;
15
- max-width: 64rem;
13
+ width: 80vw;
14
+ min-width: 16rem;
15
+ max-width: 48rem;
16
16
  }
17
17
 
18
18
  .#{$block-class}__content p {
@@ -41,6 +41,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
41
41
  from {
42
42
  background-color: var(--from-color);
43
43
  }
44
+
44
45
  to {
45
46
  background-color: var(--to-color);
46
47
  }
@@ -50,6 +51,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
50
51
  background-color: var(--from-color);
51
52
  box-shadow: 0 1px 0 var(--from-color);
52
53
  }
54
+
53
55
  to {
54
56
  background-color: var(--to-color);
55
57
  box-shadow: 0 1px 0 var(--to-color-shadow);
@@ -207,8 +209,8 @@ $right-section-alt-width: 100% - $left-section-alt-width;
207
209
  .#{$block-class}__breadcrumb-row--has-breadcrumbs
208
210
  .#{$block-class}__action-bar-column {
209
211
  // back button displayed only
210
- max-width: $left-section-alt-width;
211
- flex: 0 1 $left-section-alt-width;
212
+ max-width: $right-section-alt-width;
213
+ flex: 0 1 $right-section-alt-width;
212
214
 
213
215
  @include carbon--breakpoint(md) {
214
216
  max-width: $right-section-std-width;
@@ -251,6 +253,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
251
253
  }
252
254
 
253
255
  .#{$block-class}__breadcrumb-column {
256
+ overflow: hidden; /* required for ellipsis in title, title not visible in breadcrumb with back arrow */
254
257
  max-width: 100%;
255
258
  flex: 0 0 100%;
256
259
 
@@ -31,6 +31,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
31
31
  // stylelint-disable-next-line carbon/layout-token-use
32
32
  transform: translateX(#{$size}); // the size width of the side panel
33
33
  }
34
+
34
35
  100% {
35
36
  opacity: 1;
36
37
  transform: translateX(0);
@@ -45,6 +46,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
45
46
  // stylelint-disable-next-line carbon/layout-token-use
46
47
  transform: translateX(-#{$size}); // the size width of the side panel
47
48
  }
49
+
48
50
  100% {
49
51
  opacity: 1;
50
52
  transform: translateX(0);
@@ -56,8 +58,8 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
56
58
  $placement: 'right',
57
59
  $size: map-get($side-panel-sizes, md)
58
60
  ) {
59
- min-width: $size;
60
- max-width: $size;
61
+ width: $size;
62
+ max-width: 100%;
61
63
  @if $placement == right {
62
64
  @include sidePanelEntranceRight($size);
63
65
  } @else {
@@ -66,8 +68,8 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
66
68
  }
67
69
 
68
70
  @mixin setPanelSize($size: map-get($side-panel-sizes, md)) {
69
- min-width: $size;
70
- max-width: $size;
71
+ width: $size;
72
+ max-width: 100%;
71
73
  }
72
74
 
73
75
  @mixin setDividerStyles() {
@@ -95,6 +97,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
95
97
  opacity: 1;
96
98
  transform: translateX(0);
97
99
  }
100
+
98
101
  100% {
99
102
  opacity: 0;
100
103
  // stylelint-disable-next-line carbon/layout-token-use
@@ -107,6 +110,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
107
110
  opacity: 1;
108
111
  transform: translateX(0);
109
112
  }
113
+
110
114
  100% {
111
115
  opacity: 0;
112
116
  // stylelint-disable-next-line carbon/layout-token-use
@@ -183,6 +187,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
183
187
  );
184
188
  padding: $spacing-05 $spacing-05 $spacing-03 $spacing-05;
185
189
  background-color: $ui-01;
190
+
186
191
  &::before {
187
192
  @include setDividerStyles();
188
193
  }
@@ -442,14 +447,14 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
442
447
  }
443
448
 
444
449
  // form fields should receive correct background color
445
- .#{$block-class}__container .bx--text-input,
446
- .#{$block-class}__container .bx--text-area,
447
- .#{$block-class}__container .bx--search-input,
448
- .#{$block-class}__container .bx--select-input,
449
- .#{$block-class}__container .bx--dropdown,
450
- .#{$block-class}__container .bx--dropdown-list,
451
- .#{$block-class}__container .bx--number input[type='number'],
452
- .#{$block-class}__container .bx--date-picker__input {
450
+ .#{$block-class}__container .#{$carbon-prefix}--text-input,
451
+ .#{$block-class}__container .#{$carbon-prefix}--text-area,
452
+ .#{$block-class}__container .#{$carbon-prefix}--search-input,
453
+ .#{$block-class}__container .#{$carbon-prefix}--select-input,
454
+ .#{$block-class}__container .#{$carbon-prefix}--dropdown,
455
+ .#{$block-class}__container .#{$carbon-prefix}--dropdown-list,
456
+ .#{$block-class}__container .#{$carbon-prefix}--number input[type='number'],
457
+ .#{$block-class}__container .#{$carbon-prefix}--date-picker__input {
453
458
  background-color: $field-02;
454
459
  }
455
460
 
@@ -457,6 +462,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
457
462
  0% {
458
463
  opacity: 0;
459
464
  }
465
+
460
466
  100% {
461
467
  opacity: 1;
462
468
  }
@@ -466,6 +472,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
466
472
  0% {
467
473
  opacity: 1;
468
474
  }
475
+
469
476
  100% {
470
477
  opacity: 0;
471
478
  }
@@ -82,6 +82,7 @@ $block-class: #{$pkg-prefix}--status-icon;
82
82
  0% {
83
83
  transform: scaleY(-1) rotate(360deg);
84
84
  }
85
+
85
86
  100% {
86
87
  transform: scaleY(-1) rotate(0deg);
87
88
  }
@@ -47,6 +47,10 @@
47
47
  transition: visibility 0s linear,
48
48
  background-color $motion-duration motion(entrance, expressive),
49
49
  opacity $motion-duration motion(entrance, expressive);
50
+ @media (prefers-reduced-motion: reduce) {
51
+ // stylelint-disable-next-line carbon/motion-token-use
52
+ transition: none;
53
+ }
50
54
  }
51
55
 
52
56
  &.#{$block-class}--stacked-1-of-2 {
@@ -66,6 +66,15 @@ $theme-keys: map-keys($themes);
66
66
  }
67
67
  }
68
68
 
69
+ .#{$carbon-prefix}--tooltip__trigger.#{$block-class}__tooltip {
70
+ &:hover,
71
+ &:focus {
72
+ svg {
73
+ fill: $ui-01;
74
+ }
75
+ }
76
+ }
77
+
69
78
  .#{$block-class} {
70
79
  display: flex;
71
80
  flex-direction: column;
@@ -10,6 +10,7 @@ $block-class: #{$pkg-prefix}--web-terminal;
10
10
  // stylelint-disable-next-line carbon/layout-token-use
11
11
  transform: translateX(#{$web-terminal-width});
12
12
  }
13
+
13
14
  100% {
14
15
  opacity: 1;
15
16
  transform: translateX(0);
@@ -21,6 +22,7 @@ $block-class: #{$pkg-prefix}--web-terminal;
21
22
  opacity: 1;
22
23
  transform: translateX(0);
23
24
  }
25
+
24
26
  100% {
25
27
  opacity: 0;
26
28
  // stylelint-disable-next-line carbon/layout-token-use
@@ -25,7 +25,6 @@
25
25
  @import './ExpressiveCard/index';
26
26
  @import './HTTPErrors/index';
27
27
  @import './ImportModal/index';
28
- @import './LoadingBar/index';
29
28
  @import './ModifiedTabs/index';
30
29
  @import './MultiAddSelect/index';
31
30
  @import './NotificationsPanel/index';