@carbon/ibm-products 1.7.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. package/css/index-full-carbon.css +227 -5762
  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 +46 -3426
  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 +195 -4028
  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 +195 -4029
  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/APIKeyModal/APIKeyModal.js +10 -13
  18. package/es/components/ActionBar/ActionBar.js +0 -3
  19. package/es/components/ActionBar/ActionBarItem.js +2 -6
  20. package/es/components/ActionSet/ActionSet.js +10 -12
  21. package/es/components/AddSelect/AddSelect.js +120 -25
  22. package/es/components/AddSelect/AddSelectBreadcrumbs.js +4 -4
  23. package/es/components/AddSelect/AddSelectColumn.js +58 -0
  24. package/es/components/AddSelect/AddSelectList.js +67 -8
  25. package/es/components/AddSelect/AddSelectSidebar.js +7 -1
  26. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +0 -3
  27. package/es/components/ButtonMenu/ButtonMenu.js +7 -5
  28. package/es/components/ButtonMenu/ButtonMenuItem.js +1 -2
  29. package/es/components/Card/Card.js +31 -21
  30. package/es/components/Card/CardFooter.js +14 -10
  31. package/es/components/Card/CardHeader.js +8 -6
  32. package/es/components/Cascade/Cascade.js +5 -4
  33. package/es/components/ComboButton/ComboButton.js +0 -4
  34. package/es/components/ComboButton/ComboButtonItem/index.js +0 -5
  35. package/es/components/CreateFullPage/CreateFullPageStep.js +15 -8
  36. package/es/components/CreateModal/CreateModal.js +1 -4
  37. package/es/components/CreateTearsheet/CreateTearsheet.js +10 -11
  38. package/es/components/CreateTearsheet/CreateTearsheetStep.js +18 -14
  39. package/es/components/DataSpreadsheet/DataSpreadsheet.js +563 -80
  40. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +366 -0
  41. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +81 -0
  42. package/es/components/DataSpreadsheet/checkActiveHeaderCell.js +34 -0
  43. package/es/components/DataSpreadsheet/createActiveCellFn.js +47 -0
  44. package/es/components/DataSpreadsheet/createCellSelectionArea.js +45 -0
  45. package/es/components/DataSpreadsheet/getCellSize.js +30 -0
  46. package/es/components/EditSidePanel/EditSidePanel.js +9 -10
  47. package/es/components/EmptyStates/EmptyState.js +7 -6
  48. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +4 -8
  49. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +4 -8
  50. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +4 -8
  51. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +4 -8
  52. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +4 -8
  53. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +4 -8
  54. package/es/components/ExampleComponent/ExampleComponent.js +12 -13
  55. package/es/components/ExportModal/ExportModal.js +13 -9
  56. package/es/components/ExpressiveCard/ExpressiveCard.js +0 -8
  57. package/es/components/ImportModal/ImportModal.js +7 -5
  58. package/es/components/InlineEdit/InlineEdit.js +44 -46
  59. package/es/components/LoadingBar/LoadingBar.js +13 -17
  60. package/es/components/ModifiedTabs/ModifiedTabLabelNew.js +0 -4
  61. package/es/components/ModifiedTabs/ModifiedTabLabelWithClose.js +0 -5
  62. package/es/components/ModifiedTabs/ModifiedTabs.js +24 -18
  63. package/es/components/NotificationsPanel/NotificationsPanel.js +109 -86
  64. package/es/components/OptionsTile/OptionsTile.js +17 -10
  65. package/es/components/PageHeader/PageHeader.js +58 -47
  66. package/es/components/PageHeader/PageHeaderUtils.js +3 -7
  67. package/es/components/ProductiveCard/ProductiveCard.js +23 -12
  68. package/es/components/RemoveModal/RemoveModal.js +0 -3
  69. package/es/components/SidePanel/SidePanel.js +22 -17
  70. package/es/components/TagSet/TagSet.js +25 -12
  71. package/es/components/TagSet/TagSetModal.js +16 -12
  72. package/es/components/TagSet/TagSetOverflow.js +21 -13
  73. package/es/components/Tearsheet/Tearsheet.js +27 -18
  74. package/es/components/Tearsheet/TearsheetNarrow.js +18 -15
  75. package/es/components/Toolbar/ToolbarButton.js +0 -3
  76. package/es/components/UserProfileImage/UserProfileImage.js +2 -1
  77. package/es/components/WebTerminal/WebTerminal.js +17 -18
  78. package/es/components/index.js +0 -1
  79. package/es/global/js/hooks/index.js +1 -0
  80. package/es/global/js/hooks/useActiveElement.js +27 -0
  81. package/es/global/js/utils/DisplayBox.js +31 -0
  82. package/es/global/js/utils/Wrap.js +7 -5
  83. package/es/global/js/utils/deepCloneObject.js +26 -0
  84. package/lib/components/APIKeyModal/APIKeyModal.js +10 -13
  85. package/lib/components/ActionBar/ActionBar.js +0 -3
  86. package/lib/components/ActionBar/ActionBarItem.js +2 -6
  87. package/lib/components/ActionSet/ActionSet.js +10 -12
  88. package/lib/components/AddSelect/AddSelect.js +118 -24
  89. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +2 -3
  90. package/lib/components/AddSelect/AddSelectColumn.js +79 -0
  91. package/lib/components/AddSelect/AddSelectList.js +65 -8
  92. package/lib/components/AddSelect/AddSelectSidebar.js +7 -1
  93. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +0 -3
  94. package/lib/components/ButtonMenu/ButtonMenu.js +7 -5
  95. package/lib/components/ButtonMenu/ButtonMenuItem.js +1 -2
  96. package/lib/components/Card/Card.js +31 -21
  97. package/lib/components/Card/CardFooter.js +14 -10
  98. package/lib/components/Card/CardHeader.js +8 -6
  99. package/lib/components/Cascade/Cascade.js +5 -4
  100. package/lib/components/ComboButton/ComboButton.js +0 -4
  101. package/lib/components/ComboButton/ComboButtonItem/index.js +0 -5
  102. package/lib/components/CreateFullPage/CreateFullPageStep.js +17 -14
  103. package/lib/components/CreateModal/CreateModal.js +1 -4
  104. package/lib/components/CreateTearsheet/CreateTearsheet.js +10 -11
  105. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +20 -20
  106. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +567 -77
  107. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +391 -0
  108. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +99 -0
  109. package/lib/components/DataSpreadsheet/checkActiveHeaderCell.js +45 -0
  110. package/lib/components/DataSpreadsheet/createActiveCellFn.js +58 -0
  111. package/lib/components/DataSpreadsheet/createCellSelectionArea.js +56 -0
  112. package/lib/components/DataSpreadsheet/getCellSize.js +39 -0
  113. package/lib/components/EditSidePanel/EditSidePanel.js +9 -10
  114. package/lib/components/EmptyStates/EmptyState.js +9 -8
  115. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -7
  116. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -7
  117. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -7
  118. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -7
  119. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -7
  120. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -7
  121. package/lib/components/ExampleComponent/ExampleComponent.js +12 -13
  122. package/lib/components/ExportModal/ExportModal.js +13 -9
  123. package/lib/components/ExpressiveCard/ExpressiveCard.js +0 -8
  124. package/lib/components/ImportModal/ImportModal.js +7 -5
  125. package/lib/components/InlineEdit/InlineEdit.js +43 -45
  126. package/lib/components/LoadingBar/LoadingBar.js +13 -17
  127. package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +0 -4
  128. package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +0 -5
  129. package/lib/components/ModifiedTabs/ModifiedTabs.js +24 -18
  130. package/lib/components/NotificationsPanel/NotificationsPanel.js +109 -86
  131. package/lib/components/OptionsTile/OptionsTile.js +17 -10
  132. package/lib/components/PageHeader/PageHeader.js +56 -46
  133. package/lib/components/PageHeader/PageHeaderUtils.js +3 -7
  134. package/lib/components/ProductiveCard/ProductiveCard.js +24 -18
  135. package/lib/components/RemoveModal/RemoveModal.js +0 -3
  136. package/lib/components/SidePanel/SidePanel.js +22 -17
  137. package/lib/components/TagSet/TagSet.js +26 -12
  138. package/lib/components/TagSet/TagSetModal.js +17 -13
  139. package/lib/components/TagSet/TagSetOverflow.js +24 -19
  140. package/lib/components/Tearsheet/Tearsheet.js +26 -17
  141. package/lib/components/Tearsheet/TearsheetNarrow.js +18 -15
  142. package/lib/components/Toolbar/ToolbarButton.js +0 -3
  143. package/lib/components/UserProfileImage/UserProfileImage.js +2 -1
  144. package/lib/components/WebTerminal/WebTerminal.js +17 -18
  145. package/lib/components/index.js +0 -8
  146. package/lib/global/js/hooks/index.js +8 -0
  147. package/lib/global/js/hooks/useActiveElement.js +39 -0
  148. package/lib/global/js/utils/DisplayBox.js +46 -0
  149. package/lib/global/js/utils/Wrap.js +7 -5
  150. package/lib/global/js/utils/deepCloneObject.js +37 -0
  151. package/package.json +18 -18
  152. package/scss/components/{CancelableTextEdit/_index.scss → ActionBar/_storybook-styles.scss} +2 -2
  153. package/scss/components/ActionSet/_storybook-styles.scss +1 -3
  154. package/scss/components/AddSelect/_add-select.scss +83 -14
  155. package/scss/components/{CancelableTextEdit → BreadcrumbWithOverflow}/_storybook-styles.scss +2 -2
  156. package/scss/components/ButtonSetWithOverflow/_storybook-styles.scss +8 -0
  157. package/scss/components/CreateInfluencer/_create-influencer.scss +2 -0
  158. package/scss/components/CreateModal/_create-modal.scss +1 -0
  159. package/scss/components/CreateTearsheet/_create-tearsheet.scss +1 -0
  160. package/scss/components/CreateTearsheetNarrow/_create-tearsheet-narrow.scss +1 -0
  161. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +53 -7
  162. package/scss/components/InlineEdit/_inline-edit.scss +36 -15
  163. package/scss/components/InlineEdit/_storybook-styles.scss +2 -0
  164. package/scss/components/LoadingBar/_loading-bar.scss +13 -0
  165. package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -0
  166. package/scss/components/PageHeader/_page-header.scss +2 -0
  167. package/scss/components/SidePanel/_side-panel.scss +11 -4
  168. package/scss/components/StatusIcon/_status-icon.scss +1 -0
  169. package/scss/components/TagSet/_storybook-styles.scss +8 -0
  170. package/scss/components/Tearsheet/_tearsheet.scss +1 -2
  171. package/scss/components/UserProfileImage/_user-profile-image.scss +9 -0
  172. package/scss/components/WebTerminal/_web-terminal.scss +2 -0
  173. package/scss/components/_index.scss +0 -1
  174. package/scss/global/styles/_display-box.scss +62 -0
  175. package/es/components/CancelableTextEdit/CancelableTextEdit.js +0 -245
  176. package/es/components/CancelableTextEdit/index.js +0 -7
  177. package/lib/components/CancelableTextEdit/CancelableTextEdit.js +0 -265
  178. package/lib/components/CancelableTextEdit/index.js +0 -13
  179. package/scss/components/CancelableTextEdit/_cancelable-text-edit.scss +0 -212
@@ -26,15 +26,18 @@
26
26
  .#{$block-class} {
27
27
  display: inline-block;
28
28
  border-spacing: 0;
29
- // border: 1px solid black;
30
29
 
31
- button.#{$block-class}__td {
32
- margin: 0;
33
- background-color: transparent;
30
+ &.#{$block-class}__container-has-focus {
31
+ outline: 2px solid $inverse-link;
34
32
  }
33
+
34
+ .#{$block-class}__header--container {
35
+ position: relative;
36
+ }
37
+
35
38
  .#{$block-class}__tr {
36
39
  :last-child {
37
- .td {
40
+ .#{$block-class}__td {
38
41
  border-bottom: 0;
39
42
  }
40
43
  }
@@ -42,7 +45,7 @@
42
45
 
43
46
  .#{$block-class}__th,
44
47
  .#{$block-class}__td {
45
- height: 2.25rem; // update to be controlled by cellSize prop later
48
+ // height: 2.25rem; // update to be controlled by cellSize prop later
46
49
  padding: 0 $spacing-03;
47
50
  border: 0;
48
51
  margin: 0;
@@ -53,15 +56,25 @@
53
56
  border-right: 1px solid $text-03;
54
57
  }
55
58
  .#{$block-class}__th,
56
- button.#{$block-class}__td-th {
59
+ .#{$block-class}__td-th.#{$block-class}__td {
57
60
  @include set-header-borders();
58
61
 
59
62
  background-color: $ui-01;
60
63
  cursor: pointer;
61
64
  }
65
+ .#{$block-class}__td-th.#{$block-class}__td {
66
+ @include carbon--font-weight('semibold');
67
+
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: flex-end;
71
+ }
72
+
62
73
  .#{$block-class}__td {
63
74
  @include set-body-borders();
64
75
 
76
+ margin: 0;
77
+ background-color: transparent;
65
78
  cursor: cell;
66
79
  text-align: left;
67
80
  }
@@ -71,6 +84,39 @@
71
84
  color: $text-01;
72
85
  text-align: left;
73
86
  }
87
+ .#{$block-class}__active-cell--highlight {
88
+ position: absolute;
89
+ z-index: 3;
90
+ border: $spacing-01 solid $interactive-01;
91
+ background-color: transparent;
92
+
93
+ &:focus {
94
+ border: $spacing-01 solid $interactive-01;
95
+ outline: 0;
96
+ }
97
+ }
98
+ .#{$block-class}__selection-area--element {
99
+ position: absolute;
100
+ z-index: 2;
101
+ border: 1px solid $interactive-01;
102
+ pointer-events: none;
103
+
104
+ &::before {
105
+ position: absolute;
106
+ top: 0;
107
+ left: 0;
108
+ display: block;
109
+ width: 100%;
110
+ height: 100%;
111
+ background-color: $interactive-01;
112
+ content: '';
113
+ opacity: 0.25;
114
+ }
115
+ }
116
+ .#{$block-class}__th--active-header,
117
+ .#{$block-class}__td-th--active-header.#{$block-class}__td {
118
+ background-color: $ui-03;
119
+ }
74
120
  }
75
121
  }
76
122
 
@@ -81,7 +81,9 @@
81
81
 
82
82
  position: relative;
83
83
  display: inline-block;
84
- // min-width: 250px; // similar to min input box with room for toolbar
84
+ // A standard input box is based on size (often around 150px)
85
+ // In our case there are potentially 2 * size buttons which we double
86
+ min-width: calc(4 * var(--#{$block-class}--size));
85
87
  max-width: 100%;
86
88
  height: var(--#{$block-class}--size);
87
89
  background-color: var(--#{$block-class}--background-color);
@@ -119,11 +121,11 @@
119
121
  overflow: hidden;
120
122
  // positions text and placeholder including when showing placeholder
121
123
  // 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);
124
+ width: calc(100% - 2 * var(--#{$block-class}--size) - $spacing-05);
125
+ max-width: calc(100% - 2 * var(--#{$block-class}--size) - $spacing-05);
124
126
  min-height: var(--#{$block-class}--size);
125
127
  // stylelint-disable-next-line carbon/layout-token-use
126
- margin-right: calc(3 * var(--#{$block-class}--size));
128
+ margin-right: calc(2 * var(--#{$block-class}--size));
127
129
  // room for toolbar
128
130
  margin-left: $spacing-05;
129
131
  // stylelint-disable-next-line carbon/type-token-use
@@ -134,15 +136,26 @@
134
136
  }
135
137
  }
136
138
 
139
+ &.#{$block-class}--invalid .#{$block-class}__input {
140
+ // add space for validation
141
+ width: calc(100% - 3 * var(--#{$block-class}--size) - $spacing-05);
142
+ max-width: calc(100% - 3 * var(--#{$block-class}--size) - $spacing-05);
143
+ // stylelint-disable-next-line carbon/layout-token-use
144
+ margin-right: calc(3 * var(--#{$block-class}--size));
145
+ }
146
+
137
147
  .#{$block-class}__input::after {
138
148
  position: absolute;
139
149
  top: 0;
140
150
  left: 0;
141
151
  display: block;
152
+ overflow: hidden;
153
+ width: 0;
142
154
  margin-left: $spacing-05;
143
155
  color: $text-05;
144
156
  content: attr(data-placeholder);
145
157
  opacity: 0;
158
+ visibility: hidden;
146
159
  }
147
160
 
148
161
  .#{$block-class}__ellipsis {
@@ -181,9 +194,11 @@
181
194
  }
182
195
 
183
196
  .#{$block-class}__input--empty::after {
197
+ width: initial;
184
198
  opacity: 1;
185
199
  // only transition fade in
186
200
  transition: opacity $duration--moderate-02 motion(standard, productive);
201
+ visibility: visible;
187
202
  }
188
203
 
189
204
  .#{$block-class}__after-input-elements {
@@ -193,12 +208,17 @@
193
208
  right: 0;
194
209
  display: flex;
195
210
  // width: room for validation, and two buttons
196
- width: calc(3 * var(--#{$block-class}--size));
211
+ width: calc(2 * var(--#{$block-class}--size));
197
212
  height: 100%;
198
213
  justify-content: space-between;
199
214
  cursor: text;
200
215
  }
201
216
 
217
+ &.#{$block-class}--invalid .#{$block-class}__after-input-elements {
218
+ // width: room for validation, and two buttons
219
+ width: calc(3 * var(--#{$block-class}--size));
220
+ }
221
+
202
222
  .#{$block-class}__toolbar--animation {
203
223
  // makes room for the top clip text but hides the side overflow
204
224
  clip-path: --tooltip-top-bottom-safe-clip();
@@ -271,9 +291,7 @@
271
291
 
272
292
  &.#{$block-class}.#{$block-class} .#{$block-class}__edit {
273
293
  @include input-button-defaults($block-class);
274
-
275
294
  // pointer-events: none;
276
-
277
295
  &:hover,
278
296
  &:active,
279
297
  &:focus {
@@ -284,12 +302,19 @@
284
302
  }
285
303
  }
286
304
 
287
- .#{$block-class}__edit--hover-visible {
288
- opacity: 0;
289
- transition: opacity $duration--fast-01 motion(entrance, productive);
305
+ @media (hover: hover) {
306
+ // if hover is the primary input mechanism hide edit button
307
+ .#{$block-class}__edit {
308
+ opacity: 0;
309
+ transition: opacity $duration--fast-01 motion(entrance, productive);
310
+ }
311
+
312
+ &:hover .#{$block-class}__edit {
313
+ opacity: 1;
314
+ }
290
315
  }
291
316
 
292
- &:hover .#{$block-class}__edit--hover-visible {
317
+ .#{$block-class}__edit--always-visible {
293
318
  opacity: 1;
294
319
  }
295
320
 
@@ -297,10 +322,6 @@
297
322
  @include input-button-defaults($block-class);
298
323
  }
299
324
 
300
- &.#{$block-class}--warn .#{$block-class}__validation-icon {
301
- color: $support-warning;
302
- }
303
-
304
325
  &.#{$block-class}--invalid .#{$block-class}__validation-icon {
305
326
  color: $support-error;
306
327
  }
@@ -6,6 +6,7 @@
6
6
  //
7
7
 
8
8
  @import '../../global/styles/project-settings';
9
+ @import '../../global/styles/display-box';
9
10
 
10
11
  .inline-edit-stories__viewport {
11
12
  // width: 300px; // larger than standard size needed by text input at standard font size (html input attribute size)
@@ -14,6 +15,7 @@
14
15
  }
15
16
 
16
17
  $block-class: #{$pkg-prefix}--inline-edit;
18
+
17
19
  .component-full-width {
18
20
  .#{$block-class} {
19
21
  width: 100%;
@@ -23,41 +23,49 @@ $loading-bar__small-height: 4px;
23
23
  left: 0;
24
24
  width: 0%;
25
25
  }
26
+
26
27
  20% {
27
28
  right: auto;
28
29
  left: 0;
29
30
  width: 100%;
30
31
  }
32
+
31
33
  28% {
32
34
  right: 0;
33
35
  left: auto;
34
36
  width: 100%;
35
37
  }
38
+
36
39
  51% {
37
40
  right: 0;
38
41
  left: auto;
39
42
  width: 0%;
40
43
  }
44
+
41
45
  58% {
42
46
  right: 0;
43
47
  left: auto;
44
48
  width: 0%;
45
49
  }
50
+
46
51
  82% {
47
52
  right: 0;
48
53
  left: auto;
49
54
  width: 100%;
50
55
  }
56
+
51
57
  83% {
52
58
  right: auto;
53
59
  left: 0;
54
60
  width: 100%;
55
61
  }
62
+
56
63
  96% {
57
64
  right: auto;
58
65
  left: 0;
59
66
  width: 0%;
60
67
  }
68
+
61
69
  100% {
62
70
  right: auto;
63
71
  left: 0;
@@ -71,6 +79,7 @@ $loading-bar__small-height: 4px;
71
79
  left: 0;
72
80
  width: 0%;
73
81
  }
82
+
74
83
  100% {
75
84
  right: auto;
76
85
  left: 0;
@@ -84,11 +93,13 @@ $loading-bar__small-height: 4px;
84
93
  left: 0;
85
94
  width: 0%;
86
95
  }
96
+
87
97
  92% {
88
98
  right: auto;
89
99
  left: 0;
90
100
  width: 100%;
91
101
  }
102
+
92
103
  100% {
93
104
  right: auto;
94
105
  left: 0;
@@ -100,9 +111,11 @@ $loading-bar__small-height: 4px;
100
111
  0% {
101
112
  opacity: 1;
102
113
  }
114
+
103
115
  92% {
104
116
  opacity: 1;
105
117
  }
118
+
106
119
  100% {
107
120
  display: none;
108
121
  opacity: 0;
@@ -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
@@ -204,6 +206,7 @@
204
206
  padding: 0;
205
207
  color: $text-01;
206
208
  opacity: 0;
209
+
207
210
  &:hover,
208
211
  &:focus {
209
212
  opacity: 1;
@@ -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);
@@ -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
  }
@@ -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
  }
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2022, 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
+
8
+ @import '../../global/styles/display-box';
@@ -152,8 +152,7 @@
152
152
  }
153
153
 
154
154
  &.#{$block-class}--wide .#{$block-class}__header--with-close-icon {
155
- padding-right: $spacing-05;
156
- margin-right: $spacing-09;
155
+ padding-right: $spacing-10;
157
156
  }
158
157
 
159
158
  .#{$block-class}__header-content {
@@ -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
@@ -43,6 +43,5 @@
43
43
  @import './UserProfileImage/index';
44
44
  @import './EditSidePanel/index';
45
45
  @import './OptionsTile/index';
46
- @import './CancelableTextEdit/index';
47
46
  @import './InlineEdit/index';
48
47
  @import './DataSpreadsheet/index';
@@ -0,0 +1,62 @@
1
+ //
2
+ // Copyright IBM Corp. 2022, 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
+ @import '../../global/styles/project-settings';
8
+
9
+ $block-class: 'ccs-sb--display-box';
10
+
11
+ $indicator-width: $spacing-02;
12
+ $indicator-height: $spacing-04;
13
+
14
+ /**
15
+ Adds a box indicating the extent of the available space to the displayed component
16
+ */
17
+ .#{$block-class} {
18
+ position: relative;
19
+ display: inline-block;
20
+ padding-top: $spacing-05; // space for the indicators
21
+ color: $text-05;
22
+ }
23
+
24
+ .#{$block-class}__indicator {
25
+ position: absolute;
26
+ top: 0;
27
+ width: 100%;
28
+ border-bottom: 1px solid $text-05;
29
+ white-space: nowrap;
30
+ @include carbon--type-style('helper-text-01');
31
+ }
32
+
33
+ .#{$block-class}__message {
34
+ position: absolute;
35
+ bottom: $spacing-02;
36
+ }
37
+
38
+ .sb-main-centered .#{$block-class}__message {
39
+ left: 50%;
40
+ min-width: 100vh;
41
+ text-align: center;
42
+ transform: translateX(-50%);
43
+ }
44
+
45
+ .#{$block-class}__indicator--left,
46
+ .#{$block-class}__indicator--right {
47
+ position: absolute;
48
+ bottom: calc(-1 * $indicator-height);
49
+ width: 0;
50
+ height: 0;
51
+ border-top: $indicator-height solid $text-05;
52
+ border-right: $indicator-width solid transparent;
53
+ border-left: $indicator-width solid transparent;
54
+ }
55
+
56
+ .#{$block-class}__indicator--left {
57
+ left: calc(-1 * $indicator-width);
58
+ }
59
+
60
+ .#{$block-class}__indicator--right {
61
+ right: calc(-1 * $indicator-width);
62
+ }