@carbon/ibm-products 1.61.0 → 1.62.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 (144) hide show
  1. package/css/index-full-carbon.css +154 -79
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +3 -3
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +1753 -0
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +3 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +154 -79
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +3 -3
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +154 -79
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +3 -3
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/Coachmark/Coachmark.js +17 -5
  18. package/es/components/Coachmark/CoachmarkDragbar.js +12 -5
  19. package/es/components/Coachmark/CoachmarkHeader.js +2 -1
  20. package/es/components/Coachmark/CoachmarkOverlay.js +105 -9
  21. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +5 -2
  22. package/es/components/CoachmarkFixed/CoachmarkFixed.js +26 -6
  23. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +28 -3
  24. package/es/components/CoachmarkStack/CoachmarkStack.js +19 -4
  25. package/es/components/CoachmarkStack/CoachmarkStackHome.js +45 -11
  26. package/es/components/Datagrid/Datagrid/DatagridContent.js +12 -9
  27. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +4 -4
  28. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +45 -73
  29. package/es/components/Datagrid/Datagrid/DatagridRefBody.js +4 -1
  30. package/es/components/Datagrid/Datagrid/DatagridRow.js +5 -2
  31. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +12 -11
  32. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
  33. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +29 -23
  34. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
  35. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +73 -24
  36. package/es/components/Datagrid/Datagrid.stories/StickyActionsColumnStory.js +1 -1
  37. package/es/components/Datagrid/useActionsColumn.js +9 -9
  38. package/es/components/Datagrid/useColumnCenterAlign.js +6 -6
  39. package/es/components/Datagrid/useColumnRightAlign.js +6 -6
  40. package/es/components/Datagrid/useDatagrid.js +13 -1
  41. package/es/components/Datagrid/useFlexResize.js +19 -9
  42. package/es/components/Datagrid/useInfiniteScroll.js +10 -9
  43. package/es/components/Datagrid/useNestedRowExpander.js +10 -1
  44. package/es/components/Datagrid/useOnRowClick.js +6 -7
  45. package/es/components/Datagrid/useParentDimensions.js +6 -6
  46. package/es/components/Datagrid/useResizeTable.js +7 -7
  47. package/es/components/Datagrid/useRowExpander.js +11 -1
  48. package/es/components/Datagrid/useSelectAllToggle.js +2 -2
  49. package/es/components/Datagrid/useSelectRows.js +31 -21
  50. package/es/components/Datagrid/useSkeletonRows.js +6 -6
  51. package/es/components/Datagrid/useSortableColumns.js +5 -6
  52. package/es/components/Datagrid/useStickyColumn.js +13 -6
  53. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -0
  54. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -0
  55. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -0
  56. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -0
  57. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -0
  58. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -0
  59. package/es/components/EmptyStates/assets/ErrorIllustration.js +6 -4
  60. package/es/components/EmptyStates/assets/NoDataIllustration.js +6 -4
  61. package/es/components/EmptyStates/assets/NoTagsIllustration.js +6 -4
  62. package/es/components/EmptyStates/assets/NotFoundIllustration.js +6 -4
  63. package/es/components/EmptyStates/assets/NotificationsIllustration.js +6 -4
  64. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -4
  65. package/es/components/Guidebanner/Guidebanner.js +3 -3
  66. package/es/components/Guidebanner/GuidebannerElement.js +9 -3
  67. package/es/components/Guidebanner/GuidebannerElementButton.js +9 -4
  68. package/es/components/Guidebanner/GuidebannerElementLink.js +9 -3
  69. package/es/components/InlineTip/InlineTipButton.js +7 -0
  70. package/es/components/InlineTip/InlineTipLink.js +7 -0
  71. package/es/components/index.js +2 -2
  72. package/es/global/js/hooks/index.js +3 -2
  73. package/es/global/js/hooks/usePrefix.js +11 -0
  74. package/es/global/js/package-settings.js +6 -2
  75. package/lib/components/Coachmark/Coachmark.js +16 -4
  76. package/lib/components/Coachmark/CoachmarkDragbar.js +12 -5
  77. package/lib/components/Coachmark/CoachmarkHeader.js +2 -1
  78. package/lib/components/Coachmark/CoachmarkOverlay.js +105 -8
  79. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +5 -2
  80. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +25 -5
  81. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +28 -3
  82. package/lib/components/CoachmarkStack/CoachmarkStack.js +18 -3
  83. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +44 -10
  84. package/lib/components/Datagrid/Datagrid/DatagridContent.js +12 -9
  85. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +4 -4
  86. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +44 -80
  87. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +4 -1
  88. package/lib/components/Datagrid/Datagrid/DatagridRow.js +5 -2
  89. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -4
  90. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
  91. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +29 -23
  92. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +12 -12
  93. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +75 -33
  94. package/lib/components/Datagrid/Datagrid.stories/StickyActionsColumnStory.js +1 -1
  95. package/lib/components/Datagrid/useActionsColumn.js +9 -12
  96. package/lib/components/Datagrid/useDatagrid.js +13 -1
  97. package/lib/components/Datagrid/useFlexResize.js +19 -9
  98. package/lib/components/Datagrid/useInfiniteScroll.js +9 -9
  99. package/lib/components/Datagrid/useNestedRowExpander.js +10 -9
  100. package/lib/components/Datagrid/useOnRowClick.js +6 -7
  101. package/lib/components/Datagrid/useParentDimensions.js +5 -6
  102. package/lib/components/Datagrid/useResizeTable.js +6 -7
  103. package/lib/components/Datagrid/useRowExpander.js +11 -9
  104. package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
  105. package/lib/components/Datagrid/useSelectRows.js +31 -21
  106. package/lib/components/Datagrid/useSkeletonRows.js +6 -6
  107. package/lib/components/Datagrid/useSortableColumns.js +5 -6
  108. package/lib/components/Datagrid/useStickyColumn.js +8 -0
  109. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -0
  110. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -0
  111. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -0
  112. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -0
  113. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -0
  114. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -0
  115. package/lib/components/EmptyStates/assets/ErrorIllustration.js +6 -4
  116. package/lib/components/EmptyStates/assets/NoDataIllustration.js +6 -4
  117. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +6 -4
  118. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +6 -4
  119. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +6 -4
  120. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -4
  121. package/lib/components/Guidebanner/Guidebanner.js +3 -3
  122. package/lib/components/Guidebanner/GuidebannerElement.js +8 -1
  123. package/lib/components/Guidebanner/GuidebannerElementButton.js +8 -1
  124. package/lib/components/Guidebanner/GuidebannerElementLink.js +8 -1
  125. package/lib/components/InlineTip/InlineTipButton.js +8 -1
  126. package/lib/components/InlineTip/InlineTipLink.js +8 -1
  127. package/lib/components/index.js +30 -0
  128. package/lib/global/js/hooks/index.js +8 -1
  129. package/lib/global/js/hooks/usePrefix.js +19 -0
  130. package/lib/global/js/package-settings.js +6 -2
  131. package/package.json +2 -2
  132. package/scss/components/Checklist/_checklist.scss +13 -25
  133. package/scss/components/Coachmark/styles/_coachmark-dragbar.scss +1 -45
  134. package/scss/components/Coachmark/styles/_coachmark-header.scss +0 -33
  135. package/scss/components/Coachmark/styles/_coachmark-overlay.scss +113 -5
  136. package/scss/components/Coachmark/styles/_coachmark-tagline.scss +18 -0
  137. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +16 -13
  138. package/scss/components/CoachmarkOverlayElement/_coachmark-overlay-element.scss +2 -0
  139. package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +1 -0
  140. package/scss/components/CoachmarkStack/_coachmark-stack.scss +3 -0
  141. package/scss/components/Datagrid/_storybook-styles.scss +15 -0
  142. package/scss/components/Datagrid/styles/_datagrid.scss +31 -5
  143. package/scss/components/Datagrid/styles/_useNestedRows.scss +1 -1
  144. package/scss/components/_index-released-only.scss +1 -0
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.usePrefix = void 0;
8
+ var _packageSettings = _interopRequireDefault(require("../package-settings"));
9
+ /**
10
+ * Copyright IBM Corp. 2023, 2023
11
+ *
12
+ * This source code is licensed under the Apache-2.0 license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+
16
+ var usePrefix = function usePrefix() {
17
+ return _packageSettings.default.prefix;
18
+ };
19
+ exports.usePrefix = usePrefix;
@@ -25,6 +25,7 @@ var defaults = {
25
25
  CreateTearsheet: true,
26
26
  CreateTearsheetStep: true,
27
27
  CreateTearsheetDivider: true,
28
+ Datagrid: true,
28
29
  EditInPlace: true,
29
30
  EmptyState: true,
30
31
  ErrorEmptyState: true,
@@ -65,7 +66,6 @@ var defaults = {
65
66
  EditSidePanel: false,
66
67
  CancelableTextEdit: false,
67
68
  DataSpreadsheet: false,
68
- Datagrid: false,
69
69
  EditTearsheet: false,
70
70
  EditTearsheetNarrow: false,
71
71
  EditFullPage: false,
@@ -73,7 +73,12 @@ var defaults = {
73
73
  ButtonMenu: false,
74
74
  // Novice to pro components not yet reviewed and released:
75
75
  InlineTip: false,
76
+ InlineTipButton: false,
77
+ InlineTipLink: false,
76
78
  Guidebanner: false,
79
+ GuidebannerElement: false,
80
+ GuidebannerElementButton: false,
81
+ GuidebannerElementLink: false,
77
82
  NonLinearReading: false,
78
83
  Checklist: false,
79
84
  Coachmark: false,
@@ -93,7 +98,6 @@ var defaults = {
93
98
  'Datagrid.useExpandedRow': false,
94
99
  'Datagrid.useNestedRows': false,
95
100
  'Datagrid.useInlineEdit': false,
96
- 'Datagrid.useActionsColumn': false,
97
101
  'Datagrid.useFiltering': false,
98
102
  'Datagrid.useCustomizeColumns': false,
99
103
  'ExampleComponent.secondaryIcon': false,
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": "1.61.0",
4
+ "version": "1.62.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -97,5 +97,5 @@
97
97
  "react": "^16.8.6 || ^17.0.1",
98
98
  "react-dom": "^16.8.6 || ^17.0.1"
99
99
  },
100
- "gitHead": "3c7061f7f7907eeeddbbd25f723bb87e867a0073"
100
+ "gitHead": "89c6e18fc0a426f7a6835947561210242824fb07"
101
101
  }
@@ -11,18 +11,6 @@
11
11
  @import '../../global/styles/project-settings';
12
12
  @import '../../global/styles/mixins';
13
13
 
14
- // Other Carbon settings.
15
- // TODO: @import 'carbon-components/scss/globals/grid/grid'; if needed
16
-
17
- // Checklist uses the following Carbon components:
18
- // TODO: @import(s) of Carbon component styles used by Checklist
19
-
20
- // Checklist uses the following Carbon for IBM Products components:
21
- // TODO: @import(s) of IBM Products component styles used by Checklist
22
-
23
- // Define all component styles in a mixin which is then exported using
24
- // the Carbon import-once mechanism.
25
-
26
14
  @mixin ellipsis-2-lines {
27
15
  display: -webkit-box;
28
16
  overflow: hidden;
@@ -39,6 +27,7 @@
39
27
  &__header {
40
28
  display: flex;
41
29
  padding: $spacing-05;
30
+ border-top: 1px solid $ui-03;
42
31
  background-color: $ui-01;
43
32
  gap: $spacing-03;
44
33
  }
@@ -114,7 +103,9 @@
114
103
  transform: rotate(-180deg);
115
104
  }
116
105
 
117
- // Button to appear more like a link so it aligns better with the list text
106
+ // Button to appear more like a link so it aligns better with the list text.
107
+ // Override Primary button styling to appear more like a link.
108
+ // "Unset" some settings to allow an inner div to enable multiple lines and an ellipsis if req'd.
118
109
  &__button {
119
110
  max-width: none !important;
120
111
  min-height: auto !important;
@@ -126,8 +117,7 @@
126
117
  background-color: transparent !important;
127
118
  color: $link-01 !important;
128
119
 
129
- // The CSS for the Carbon button's label
130
- // is incompatible with two-line ellipsis,
120
+ // The CSS for the Carbon button's label is incompatible with two-line ellipsis,
131
121
  // but a div inside a Carbon button works.
132
122
  div {
133
123
  @include ellipsis-2-lines();
@@ -144,10 +134,6 @@
144
134
  color: $text-primary;
145
135
  text-decoration: underline;
146
136
  }
147
-
148
- &--error {
149
- color: $text-error !important;
150
- }
151
137
  }
152
138
 
153
139
  // container for animated content
@@ -195,14 +181,18 @@
195
181
  &__icon {
196
182
  /* stylelint-disable-next-line carbon/layout-token-use */
197
183
  margin: rem(1px) $spacing-03 0 0;
198
- color: $link-01;
184
+
185
+ &--checked,
186
+ &--indeterminate {
187
+ color: $link-01;
188
+ }
199
189
 
200
190
  &--error {
201
191
  color: $support-error;
202
192
  }
203
193
 
204
194
  &--disabled {
205
- color: $disabled-03;
195
+ color: $disabled-02;
206
196
  }
207
197
  }
208
198
 
@@ -210,10 +200,8 @@
210
200
  @include carbon--type-style('body-short-01');
211
201
  @include ellipsis-2-lines();
212
202
 
213
- &--checked,
214
- &--disabled,
215
- &--error {
216
- color: $disabled-03;
203
+ &--disabled {
204
+ color: $disabled-02;
217
205
  }
218
206
  }
219
207
 
@@ -5,8 +5,6 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- /* stylelint-disable declaration-no-important */
9
-
10
8
  // Standard imports.
11
9
  @import '../../../global/styles/project-settings';
12
10
  @import '../../../global/styles/mixins';
@@ -16,53 +14,11 @@
16
14
  @mixin coachmark-dragbar {
17
15
  // The block part of our conventional BEM class names (blockClass__E--M).
18
16
  $block-class: #{$pkg-prefix}--coachmark-dragbar;
17
+ $handle-class: #{$pkg-prefix}--coachmark-dragbar__handle;
19
18
 
20
19
  .#{$block-class} {
21
20
  display: flex;
22
21
 
23
- &__handle {
24
- flex-grow: 1;
25
- padding: $spacing-03 0 0 $spacing-03;
26
- border: 0;
27
- background-color: transparent;
28
- text-align: left;
29
-
30
- &:hover {
31
- cursor: move;
32
- }
33
- }
34
-
35
- &--close-btn {
36
- width: $spacing-07;
37
- height: $spacing-07;
38
- margin-left: auto !important;
39
-
40
- svg > path {
41
- margin: 0;
42
- fill: $inverse-01 !important;
43
- }
44
-
45
- &:hover {
46
- background-color: $inverse-hover-ui !important;
47
- }
48
- }
49
-
50
- &__light {
51
- #{$block-class}--close-btn {
52
- &:active {
53
- background-color: $active-secondary;
54
- }
55
- }
56
- }
57
-
58
- &__dark {
59
- #{$block-class}--close-btn {
60
- &:active {
61
- background-color: $button-tertiary-active;
62
- }
63
- }
64
- }
65
-
66
22
  svg {
67
23
  color: $inverse-01;
68
24
  }
@@ -5,8 +5,6 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- /* stylelint-disable declaration-no-important */
9
-
10
8
  // Standard imports.
11
9
  @import '../../../global/styles/project-settings';
12
10
  @import '../../../global/styles/mixins';
@@ -19,37 +17,6 @@
19
17
 
20
18
  .#{$block-class} {
21
19
  display: flex;
22
-
23
- &--close-btn {
24
- width: $spacing-07;
25
- height: $spacing-07;
26
- margin-left: auto !important;
27
-
28
- svg > path {
29
- margin: 0;
30
- fill: $inverse-01 !important;
31
- }
32
-
33
- &:hover {
34
- background-color: $inverse-hover-ui !important;
35
- }
36
- }
37
-
38
- &__light {
39
- #{$block-class}--close-btn {
40
- &:active {
41
- background-color: $active-secondary;
42
- }
43
- }
44
- }
45
-
46
- &__dark {
47
- #{$block-class}--close-btn {
48
- &:active {
49
- background-color: $button-tertiary-active;
50
- }
51
- }
52
- }
53
20
  }
54
21
  }
55
22
 
@@ -19,6 +19,8 @@
19
19
  // The block part of our conventional BEM class names (blockClass__E--M).
20
20
  $block-class: #{$pkg-prefix}--coachmark-overlay;
21
21
  $carousel-class: #{$pkg-prefix}--carousel;
22
+ $close-btn-class: #{$block-class}--close-btn;
23
+ $draghandle-btn-class: #{$block-class}__handle;
22
24
 
23
25
  .#{$block-class} {
24
26
  position: absolute;
@@ -33,6 +35,8 @@
33
35
  $caret-center: $caret-height; // use "center" for left-right calculations, and "height" for top-bottom calculations
34
36
  $distance-offset: $spacing-06; // see also ./utils/constants.js > distanceOffset
35
37
 
38
+ visibility: hidden;
39
+
36
40
  &--fixed {
37
41
  position: fixed;
38
42
  right: $spacing-05;
@@ -45,8 +49,15 @@
45
49
  }
46
50
  }
47
51
 
52
+ &--is-dragmode {
53
+ border-radius: 0;
54
+ box-shadow: 0 0 0 $spacing-02 $inverse-02;
55
+ outline: $spacing-01 solid $inverse-01;
56
+ }
57
+
48
58
  &--is-visible {
49
59
  transform: translateY(0);
60
+ visibility: visible;
50
61
  }
51
62
 
52
63
  // CARET STYLING
@@ -202,8 +213,6 @@
202
213
 
203
214
  // BODY
204
215
  &__body {
205
- padding: $spacing-01 $spacing-05 $spacing-05;
206
-
207
216
  .#{$carbon-prefix}--btn--ghost {
208
217
  color: $inverse-link;
209
218
 
@@ -234,13 +243,60 @@
234
243
  }
235
244
  }
236
245
 
246
+ // HEADER BUTTONS
247
+ &__handle {
248
+ position: relative;
249
+ flex-grow: 1;
250
+ padding: $spacing-02 0 0 $spacing-03;
251
+ border: 0;
252
+ background-color: transparent;
253
+ text-align: left;
254
+
255
+ &::before {
256
+ position: absolute;
257
+ top: $spacing-01;
258
+ left: $spacing-01;
259
+ width: calc($spacing-06 + $spacing-01);
260
+ height: calc($spacing-06 + $spacing-01);
261
+ content: '';
262
+ }
263
+
264
+ &:hover {
265
+ cursor: move;
266
+ }
267
+
268
+ &:focus {
269
+ border: none;
270
+ outline: none;
271
+
272
+ &::before {
273
+ border: 1px solid $inverse-01;
274
+ outline: 1px solid $blue-60;
275
+ }
276
+ }
277
+ }
278
+
279
+ &--close-btn {
280
+ width: $spacing-07;
281
+ height: $spacing-07;
282
+ margin-left: auto !important;
283
+
284
+ svg > path {
285
+ margin: 0;
286
+ fill: $inverse-01 !important;
287
+ }
288
+
289
+ &:hover {
290
+ background-color: $inverse-hover-ui !important;
291
+ }
292
+ }
293
+
237
294
  // FOOTER
238
295
  &__footer {
239
296
  display: flex;
240
297
  align-items: center;
241
298
  justify-content: flex-end;
242
299
  }
243
- /* ------------------ */
244
300
 
245
301
  // THEME
246
302
  &__light {
@@ -262,6 +318,10 @@
262
318
  }
263
319
 
264
320
  .#{$carbon-prefix}--btn--ghost {
321
+ border-color: transparent !important;
322
+ border-radius: 0;
323
+ outline: 1px solid transparent;
324
+
265
325
  &:hover {
266
326
  background-color: $inverse-hover-ui;
267
327
  }
@@ -269,6 +329,33 @@
269
329
  &:active {
270
330
  background-color: $active-secondary;
271
331
  }
332
+
333
+ &:focus {
334
+ box-shadow: inset 0 0 0 1px $inverse-02,
335
+ inset 0 0 0 $spacing-01 $white-0;
336
+ }
337
+ }
338
+ }
339
+ .#{$draghandle-btn-class} {
340
+ &:focus {
341
+ &::before {
342
+ border: 1px solid $white-0;
343
+ outline: 1px solid transparent;
344
+ }
345
+ }
346
+ }
347
+ .#{$close-btn-class} {
348
+ border-color: transparent !important;
349
+ border-radius: 0;
350
+ outline: 1px solid transparent;
351
+
352
+ &:active {
353
+ background-color: $active-secondary;
354
+ }
355
+
356
+ &:focus {
357
+ box-shadow: inset 0 0 0 1px $inverse-02,
358
+ inset 0 0 0 $spacing-01 $white-0;
272
359
  }
273
360
  }
274
361
  }
@@ -301,6 +388,8 @@
301
388
  }
302
389
 
303
390
  .#{$carbon-prefix}--btn--ghost {
391
+ border-color: transparent;
392
+
304
393
  &:hover {
305
394
  background-color: $inverse-hover-ui;
306
395
  }
@@ -310,11 +399,30 @@
310
399
  }
311
400
 
312
401
  &:focus {
313
- box-shadow: inset 0 0 0 $spacing-01 $interactive-01,
314
- inset 0 0 0 rem(3px) $interactive-03;
402
+ box-shadow: inset 0 0 0 1px $blue-60,
403
+ inset 0 0 0 $spacing-01 $white-0;
404
+ }
405
+ }
406
+ }
407
+ .#{$draghandle-btn-class} {
408
+ &:focus {
409
+ &::before {
410
+ border: 1px solid $white-0;
411
+ outline: 1px solid $blue-60;
315
412
  }
316
413
  }
317
414
  }
415
+ .#{$close-btn-class} {
416
+ border-color: transparent;
417
+
418
+ &:focus {
419
+ box-shadow: inset 0 0 0 1px $blue-60, inset 0 0 0 $spacing-01 $white-0;
420
+ }
421
+
422
+ &:active {
423
+ background-color: $button-tertiary-active;
424
+ }
425
+ }
318
426
  }
319
427
  .#{$carousel-class}__item {
320
428
  flex: 0 0 100% !important;
@@ -35,6 +35,7 @@
35
35
  // stylelint-disable-next-line carbon/motion-duration-use
36
36
  transition: opacity 240ms carbon--motion(exit, productive) 300ms;
37
37
  transition-delay: 240ms;
38
+
38
39
  @media (prefers-reduced-motion) {
39
40
  transition: none;
40
41
  }
@@ -86,6 +87,11 @@
86
87
  text-align: left;
87
88
  @include carbon--type-style('body-short-01');
88
89
 
90
+ &:focus {
91
+ box-shadow: inset 0 0 0 3px $purple-70, inset 0 0 0 $spacing-02 $white-0;
92
+ outline: 1px solid transparent;
93
+ }
94
+
89
95
  &:hover {
90
96
  cursor: pointer !important;
91
97
  }
@@ -98,8 +104,20 @@
98
104
  &--close-btn {
99
105
  width: $spacing-07;
100
106
  height: $spacing-07;
107
+ border-color: transparent !important;
108
+ border-radius: 0;
101
109
  margin-left: auto !important;
102
110
  color: $white-0;
111
+ outline: 1px solid transparent;
112
+
113
+ &:active {
114
+ background-color: $active-secondary;
115
+ }
116
+
117
+ &:focus {
118
+ box-shadow: inset 0 0 0 1px $inverse-02,
119
+ inset 0 0 0 $spacing-01 $white-0 !important;
120
+ }
103
121
 
104
122
  svg > path {
105
123
  margin: 0;
@@ -32,6 +32,9 @@
32
32
 
33
33
  &-default {
34
34
  .#{$block-class}__target {
35
+ &::before {
36
+ display: none;
37
+ }
35
38
  // the blue dot
36
39
  &::after {
37
40
  position: absolute;
@@ -43,24 +46,24 @@
43
46
  background-color: $blue-50;
44
47
  content: '';
45
48
  }
46
- }
47
- }
48
49
 
49
- &-ring {
50
- .#{$block-class}__center {
51
- -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='80px' height='80px' viewBox='008080'><pathfill='white' stroke='none' d='M0,0m37-2a404001010Zm128a1212011-10Z'/></svg>");
52
- mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='80px' height='80px' viewBox='008080'><pathfill='white' stroke='none' d='M0,0m37-2a404001010Zm128a1212011-10Z'/></svg>");
53
-
54
- circle {
55
- /* stylelint-disable-next-line carbon/motion-easing-use */
56
- animation: ring-ripple $beaconAnimationTime infinite;
57
- @media (prefers-reduced-motion) {
58
- animation: none;
50
+ &:focus {
51
+ outline: transparent;
52
+
53
+ &::before {
54
+ position: absolute;
55
+ top: 7px;
56
+ left: 7px;
57
+ display: block;
58
+ width: 18px;
59
+ height: 18px;
60
+ border-radius: 100%;
61
+ content: '';
62
+ outline: $spacing-01 $focus solid;
59
63
  }
60
64
  }
61
65
  }
62
66
  }
63
-
64
67
  .#{$block-class}__target {
65
68
  // the hit area
66
69
  position: absolute;
@@ -17,6 +17,8 @@
17
17
  $carousel-item-class: #{$pkg-prefix}--carousel__item;
18
18
 
19
19
  .#{$block-class} {
20
+ padding: $spacing-01 $spacing-05 0;
21
+
20
22
  &__content {
21
23
  padding-bottom: $spacing-05;
22
24
  }
@@ -25,6 +25,7 @@
25
25
  display: flex;
26
26
  align-items: center;
27
27
  justify-content: flex-end;
28
+ padding: 0 $spacing-05 $spacing-05;
28
29
  }
29
30
 
30
31
  &--controls-progress {
@@ -28,6 +28,7 @@
28
28
  bottom: -100%;
29
29
  //opacity: 0;
30
30
  transform: translateY(100%);
31
+ visibility: hidden;
31
32
 
32
33
  &--is-mounted {
33
34
  bottom: 0;
@@ -41,6 +42,7 @@
41
42
  &--is-visible {
42
43
  opacity: 1;
43
44
  transform: translateY(0);
45
+ visibility: visible;
44
46
  }
45
47
 
46
48
  // Stack the level-one item behind the level-two item.
@@ -51,6 +53,7 @@
51
53
  transform: perspective(carbon--mini-units(18))
52
54
  translate3d(0, calc($spacing-09 * -1), calc($spacing-05 * -1));
53
55
  transform-origin: top center;
56
+ visibility: visible;
54
57
 
55
58
  &__light {
56
59
  background-color: $gray-90;
@@ -147,3 +147,18 @@ $block-class: #{$pkg-prefix}--datagrid;
147
147
  width: 100vw;
148
148
  }
149
149
  }
150
+
151
+ .#{$carbon-prefix}--tooltip__trigger:hover
152
+ .#{$pkg-prefix}--status-icon--light.#{$pkg-prefix}--status-icon--light-minor-warning {
153
+ fill: $support-03;
154
+ }
155
+
156
+ .#{$carbon-prefix}--tooltip__trigger:hover
157
+ .#{$pkg-prefix}--status-icon--light.#{$pkg-prefix}--status-icon--light-normal {
158
+ fill: $support-02;
159
+ }
160
+
161
+ .#{$carbon-prefix}--tooltip__trigger:hover
162
+ .#{$pkg-prefix}--status-icon--light.#{$pkg-prefix}--status-icon--light-critical {
163
+ fill: $support-01;
164
+ }
@@ -80,7 +80,6 @@
80
80
  }
81
81
 
82
82
  &.#{$block-class}__variable-row-height {
83
- &.#{$carbon-prefix}--data-table--compact,
84
83
  &.#{$carbon-prefix}--data-table--xs {
85
84
  .#{$block-class}__cell {
86
85
  padding-top: $spacing-01;
@@ -88,7 +87,6 @@
88
87
  }
89
88
  }
90
89
 
91
- &.#{$carbon-prefix}--data-table--short,
92
90
  &.#{$carbon-prefix}--data-table--sm,
93
91
  &.#{$carbon-prefix}--data-table--md {
94
92
  .#{$block-class}__cell {
@@ -99,7 +97,6 @@
99
97
  }
100
98
  }
101
99
 
102
- &.#{$carbon-prefix}--data-table--tall,
103
100
  &.#{$carbon-prefix}--data-table--lg,
104
101
  &.#{$carbon-prefix}--data-table--xl {
105
102
  .#{$block-class}__cell {
@@ -111,7 +108,6 @@
111
108
  }
112
109
 
113
110
  &.#{$block-class}__vertical-align-top {
114
- &.#{$carbon-prefix}--data-table--tall,
115
111
  &.#{$carbon-prefix}--data-table--lg,
116
112
  &.#{$carbon-prefix}--data-table--xl {
117
113
  .#{$block-class}__cell {
@@ -129,7 +125,6 @@
129
125
  }
130
126
 
131
127
  &.#{$block-class}__variable-row-height {
132
- &.#{$carbon-prefix}--data-table--tall,
133
128
  &.#{$carbon-prefix}--data-table--lg,
134
129
  &.#{$carbon-prefix}--data-table--xl {
135
130
  .#{$block-class}__cell {
@@ -325,6 +320,11 @@
325
320
  background-color: $hover-selected-ui;
326
321
  }
327
322
 
323
+ .#{$block-class}__grid-container
324
+ table.#{$block-class}__table-simple.#{$carbon-prefix}--data-table.#{$block-class}__table-is-resizing {
325
+ overflow-y: hidden;
326
+ }
327
+
328
328
  .#{$block-class}__resizableColumn {
329
329
  &.#{$block-class}__isResizing {
330
330
  .#{$block-class}__resizer {
@@ -346,6 +346,32 @@
346
346
  }
347
347
  }
348
348
 
349
+ .#{$block-class}__header-actions-column:hover {
350
+ background-color: $layer-accent;
351
+ }
352
+
353
+ .#{$block-class}
354
+ .#{$block-class}__carbon-row
355
+ .#{$block-class}__actions-column-cell-non-sticky
356
+ .#{$carbon-prefix}--overflow-menu {
357
+ opacity: 0;
358
+ }
359
+
360
+ .#{$block-class}
361
+ .#{$block-class}__carbon-row:hover
362
+ .#{$block-class}__actions-column-cell-non-sticky
363
+ .#{$carbon-prefix}--overflow-menu,
364
+ .#{$block-class}
365
+ .#{$block-class}__carbon-row
366
+ .#{$block-class}__actions-column-cell-non-sticky
367
+ .#{$carbon-prefix}--overflow-menu:focus,
368
+ .#{$block-class}
369
+ .#{$block-class}__carbon-row
370
+ .#{$block-class}__actions-column-cell-non-sticky
371
+ .#{$carbon-prefix}--overflow-menu[aria-expanded='true'] {
372
+ opacity: 1;
373
+ }
374
+
349
375
  .#{$block-class}__head-hidden-select-all {
350
376
  padding-right: $spacing-09;
351
377