@carbon/ibm-products 1.11.1 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/README.md +0 -3
  2. package/css/index-full-carbon.css +1445 -369
  3. package/css/index-full-carbon.css.map +1 -1
  4. package/css/index-full-carbon.min.css +6 -6
  5. package/css/index-full-carbon.min.css.map +1 -1
  6. package/css/index-without-carbon-released-only.css +15 -6
  7. package/css/index-without-carbon-released-only.css.map +1 -1
  8. package/css/index-without-carbon-released-only.min.css +2 -2
  9. package/css/index-without-carbon-released-only.min.css.map +1 -1
  10. package/css/index-without-carbon.css +109 -16
  11. package/css/index-without-carbon.css.map +1 -1
  12. package/css/index-without-carbon.min.css +5 -5
  13. package/css/index-without-carbon.min.css.map +1 -1
  14. package/css/index.css +109 -16
  15. package/css/index.css.map +1 -1
  16. package/css/index.min.css +6 -6
  17. package/css/index.min.css.map +1 -1
  18. package/es/components/ActionBar/ActionBar.js +3 -1
  19. package/es/components/ActionBar/ActionBarOverflowItems.js +5 -3
  20. package/es/components/AddSelect/AddSelect.js +63 -12
  21. package/es/components/AddSelect/AddSelectColumn.js +0 -1
  22. package/es/components/AddSelect/AddSelectList.js +59 -13
  23. package/es/components/AddSelect/AddSelectSidebar.js +15 -5
  24. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +2 -0
  25. package/es/components/CreateFullPage/CreateFullPageStep.js +4 -4
  26. package/es/components/CreateTearsheet/CreateTearsheetStep.js +4 -4
  27. package/es/components/DataSpreadsheet/DataSpreadsheet.js +193 -119
  28. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +178 -51
  29. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +50 -2
  30. package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +6 -4
  31. package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +3 -1
  32. package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +2 -3
  33. package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +2 -3
  34. package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +2 -3
  35. package/es/components/ImportModal/ImportModal.js +2 -2
  36. package/es/components/TagSet/TagSet.js +12 -3
  37. package/es/components/UserProfileImage/UserProfileImage.js +38 -10
  38. package/lib/components/ActionBar/ActionBar.js +3 -1
  39. package/lib/components/ActionBar/ActionBarOverflowItems.js +5 -3
  40. package/lib/components/AddSelect/AddSelect.js +63 -12
  41. package/lib/components/AddSelect/AddSelectColumn.js +0 -1
  42. package/lib/components/AddSelect/AddSelectList.js +61 -12
  43. package/lib/components/AddSelect/AddSelectSidebar.js +15 -11
  44. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +2 -0
  45. package/lib/components/CreateFullPage/CreateFullPageStep.js +4 -4
  46. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +4 -4
  47. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +196 -120
  48. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +178 -51
  49. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +52 -7
  50. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +6 -3
  51. package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +3 -1
  52. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +2 -3
  53. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +2 -3
  54. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +2 -3
  55. package/lib/components/ImportModal/ImportModal.js +1 -1
  56. package/lib/components/TagSet/TagSet.js +12 -3
  57. package/lib/components/UserProfileImage/UserProfileImage.js +38 -10
  58. package/package.json +15 -15
  59. package/scss/components/AboutModal/_about-modal.scss +2 -2
  60. package/scss/components/ActionSet/_action-set.scss +3 -1
  61. package/scss/components/AddSelect/_add-select.scss +50 -3
  62. package/scss/components/CreateModal/_create-modal.scss +7 -5
  63. package/scss/components/CreateModal/_storybook-styles.scss +8 -7
  64. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +57 -7
  65. package/scss/components/ExportModal/_export-modal.scss +3 -3
  66. package/scss/components/HTTPErrors/_http-errors.scss +16 -16
  67. package/scss/components/InlineEdit/_inline-edit.scss +0 -1
  68. package/scss/components/ModifiedTabs/_modified-tabs.scss +0 -10
  69. package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -3
  70. package/scss/components/OptionsTile/_options-tile.scss +0 -1
  71. package/scss/components/PageHeader/_page-header.scss +4 -0
  72. package/scss/components/RemoveModal/_remove-modal.scss +3 -3
  73. package/scss/components/TagSet/_tag-set.scss +2 -1
  74. package/scss/components/Tearsheet/_tearsheet.scss +1 -2
@@ -27,7 +27,7 @@ var _iconsReact = require("@carbon/icons-react");
27
27
 
28
28
  var _carbonComponentsReact = require("carbon-components-react");
29
29
 
30
- var _excluded = ["backgroundColor", "className", "kind", "initials", "image", "imageDescription", "size", "theme", "tooltipText"];
30
+ var _excluded = ["backgroundColor", "className", "kind", "icon", "initials", "image", "imageDescription", "size", "theme", "tooltipText"];
31
31
  // The block part of our conventional BEM class names (blockClass__E--M).
32
32
  var blockClass = "".concat(_settings.pkg.prefix, "--user-profile-image");
33
33
  var componentName = 'UserProfileImage'; // NOTE: the component SCSS is not imported here: it is rolled up separately.
@@ -40,6 +40,7 @@ var UserProfileImage = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
40
40
  var backgroundColor = _ref.backgroundColor,
41
41
  className = _ref.className,
42
42
  kind = _ref.kind,
43
+ icon = _ref.icon,
43
44
  initials = _ref.initials,
44
45
  image = _ref.image,
45
46
  imageDescription = _ref.imageDescription,
@@ -70,18 +71,40 @@ var UserProfileImage = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
70
71
  return initials.match(/(^\S\S?|\b\S)?/g).join('').match(/(^\S|\S$)?/g).join('').toUpperCase();
71
72
  };
72
73
 
73
- var FillItem = image ? function () {
74
- return /*#__PURE__*/_react.default.createElement("img", {
75
- alt: imageDescription,
76
- src: image,
77
- className: "".concat(blockClass, "__photo ").concat(blockClass, "__photo--").concat(size)
78
- });
79
- } : initials ? formatInitials : kind && size && icons[kind][size];
74
+ var getFillItem = function getFillItem() {
75
+ if (image) {
76
+ return function () {
77
+ return /*#__PURE__*/_react.default.createElement("img", {
78
+ alt: imageDescription,
79
+ src: image,
80
+ className: "".concat(blockClass, "__photo ").concat(blockClass, "__photo--").concat(size)
81
+ });
82
+ };
83
+ }
84
+
85
+ if (initials) {
86
+ return formatInitials;
87
+ }
88
+
89
+ if (kind && size) {
90
+ return icons[kind][size];
91
+ }
92
+
93
+ return icon;
94
+ }; // if user doesn't provide a color just generate a random one
95
+
96
+
97
+ var getRandomColor = function getRandomColor() {
98
+ var colors = ['light-cyan', 'dark-cyan', 'light-gray', 'dark-gray', 'light-green', 'dark-green', 'light-magenta', 'dark-magenta', 'light-purple', 'dark-purple', 'light-teal', 'dark-teal'];
99
+ return colors[Math.floor(Math.random() * colors.length)];
100
+ };
101
+
102
+ var FillItem = getFillItem();
80
103
 
81
104
  var renderUserProfileImage = function renderUserProfileImage() {
82
105
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
83
106
  ref: ref,
84
- className: (0, _classnames.default)([blockClass, className, "".concat(blockClass, "--").concat(size), "".concat(blockClass, "--").concat(theme), "".concat(blockClass, "--").concat(backgroundColor)])
107
+ className: (0, _classnames.default)([blockClass, className, "".concat(blockClass, "--").concat(size), "".concat(blockClass, "--").concat(theme), "".concat(blockClass, "--").concat(backgroundColor || getRandomColor())])
85
108
  }, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(FillItem, null));
86
109
  };
87
110
 
@@ -107,6 +130,11 @@ UserProfileImage.propTypes = {
107
130
  */
108
131
  className: _propTypes.default.string,
109
132
 
133
+ /**
134
+ * Provide a custom icon to use if you need to use an icon other than the included ones
135
+ */
136
+ icon: _propTypes.default.object,
137
+
110
138
  /**
111
139
  * When passing the image prop, supply a full path to the image to be displayed.
112
140
  */
@@ -117,7 +145,7 @@ UserProfileImage.propTypes = {
117
145
  */
118
146
  imageDescription: _propTypes.default.string.isRequired.if(function (_ref2) {
119
147
  var image = _ref2.image;
120
- return image;
148
+ return !!image;
121
149
  }),
122
150
 
123
151
  /**
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.11.1",
4
+ "version": "1.13.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -51,8 +51,8 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@babel/cli": "^7.17.6",
54
- "@babel/core": "^7.17.7",
55
- "babel-preset-ibm-cloud-cognitive": "^0.14.11",
54
+ "@babel/core": "^7.17.8",
55
+ "babel-preset-ibm-cloud-cognitive": "^0.14.12",
56
56
  "chalk": "^4.1.2",
57
57
  "change-case": "^4.1.2",
58
58
  "copyfiles": "^2.4.1",
@@ -60,33 +60,33 @@
60
60
  "fs-extra": "^10.0.1",
61
61
  "glob": "^7.2.0",
62
62
  "jest": "^27.5.1",
63
- "jest-config-ibm-cloud-cognitive": "^0.23.12",
63
+ "jest-config-ibm-cloud-cognitive": "^0.23.14",
64
64
  "npm-check-updates": "^12.5.4",
65
65
  "npm-run-all": "^4.1.5",
66
66
  "rimraf": "^3.0.2",
67
- "sass": "^1.49.9",
68
- "yargs": "^17.3.1"
67
+ "sass": "^1.49.10",
68
+ "yargs": "^17.4.0"
69
69
  },
70
70
  "dependencies": {
71
- "@babel/runtime": "^7.17.7",
71
+ "@babel/runtime": "^7.17.8",
72
72
  "@carbon/telemetry": "^0.1.0",
73
73
  "react-resize-detector": "^7.0.0",
74
74
  "react-table": "^7.7.0",
75
75
  "react-window": "^1.8.6"
76
76
  },
77
77
  "peerDependencies": {
78
- "@carbon/colors": "^10.37.0",
79
- "@carbon/icons-react": "^10.48.0",
78
+ "@carbon/colors": "^10.37.1",
79
+ "@carbon/icons-react": "^10.49.0",
80
80
  "@carbon/import-once": "^10.7.0",
81
- "@carbon/layout": "^10.37.0",
81
+ "@carbon/layout": "^10.37.1",
82
82
  "@carbon/motion": "^10.29.0",
83
- "@carbon/themes": "^10.53.1",
84
- "@carbon/type": "^10.43.1",
85
- "carbon-components": "^10.55.1",
86
- "carbon-components-react": "^7.55.1",
83
+ "@carbon/themes": "^10.54.0",
84
+ "@carbon/type": "^10.44.0",
85
+ "carbon-components": "^10.56.0",
86
+ "carbon-components-react": "^7.56.0",
87
87
  "carbon-icons": "^7.0.7",
88
88
  "react": "^16.8.6 || ^17.0.1",
89
89
  "react-dom": "^16.8.6 || ^17.0.1"
90
90
  },
91
- "gitHead": "dd67992eea35e2e7b27032bade757b9e7037fb23"
91
+ "gitHead": "553ac70187737c4946fc4ffd98fdfcafcc258ab2"
92
92
  }
@@ -19,7 +19,7 @@
19
19
  // The block part of our conventional BEM class names (blockClass__E--M).
20
20
  $block-class: #{$pkg-prefix}--about-modal;
21
21
 
22
- .#{$block-class} .bx--modal-container {
22
+ .#{$block-class} .#{$carbon-prefix}--modal-container {
23
23
  grid-template-rows: auto auto 1fr auto;
24
24
  }
25
25
 
@@ -56,7 +56,7 @@
56
56
  }
57
57
 
58
58
  .#{$block-class}.#{$block-class}--with-tabs
59
- .bx--modal-content--overflow-indicator {
59
+ .#{$carbon-prefix}--modal-content--overflow-indicator {
60
60
  // stylelint-disable-next-line carbon/layout-token-use
61
61
  bottom: calc(#{$spacing-09} + #{$spacing-08});
62
62
  }
@@ -101,7 +101,9 @@
101
101
  flex: 1 1 25%;
102
102
  }
103
103
 
104
- .#{$block-class} .#{$block-class}__action-button .bx--inline-loading {
104
+ .#{$block-class}
105
+ .#{$block-class}__action-button
106
+ .#{$carbon-prefix}--inline-loading {
105
107
  position: absolute;
106
108
  top: 0;
107
109
  right: 0;
@@ -51,6 +51,53 @@
51
51
  display: block;
52
52
  color: $text-02;
53
53
  }
54
+
55
+ &-cell:hover .#{$block-class}__selections-dropdown {
56
+ visibility: visible;
57
+ }
58
+
59
+ &-dropdown {
60
+ visibility: hidden;
61
+ }
62
+
63
+ &-row-selected {
64
+ background: #e5e5e5;
65
+ }
66
+
67
+ &-row-selected .#{$block-class}__selections-dropdown {
68
+ visibility: visible;
69
+ }
70
+
71
+ &-checkbox {
72
+ display: flex;
73
+ align-items: center;
74
+ }
75
+
76
+ &-checkbox-label-wrapper {
77
+ display: flex;
78
+ margin-left: $spacing-03;
79
+ }
80
+
81
+ &-checkbox-label-text {
82
+ display: flex;
83
+ flex-direction: column;
84
+ }
85
+
86
+ &-checkbox-wrapper.#{$carbon-prefix}--form-item {
87
+ flex: 0;
88
+ }
89
+
90
+ &-checkbox-wrapper .#{$carbon-prefix}--checkbox-label-text {
91
+ display: none;
92
+ }
93
+
94
+ &-cell-avatar {
95
+ margin-right: $spacing-03;
96
+ }
97
+
98
+ &-cell-icon {
99
+ margin-right: $spacing-03;
100
+ }
54
101
  }
55
102
 
56
103
  // sidebar
@@ -141,7 +188,7 @@
141
188
  display: flex;
142
189
  }
143
190
 
144
- .bx--overflow-menu {
191
+ .#{$carbon-prefix}--overflow-menu {
145
192
  border-bottom: 1px solid $ui-04;
146
193
  }
147
194
  }
@@ -184,7 +231,7 @@
184
231
 
185
232
  .#{$block-class}
186
233
  .#{$carbon-prefix}--modal-container--sm
187
- .bx--modal-content
234
+ .#{$carbon-prefix}--modal-content
188
235
  p {
189
236
  padding-right: 0;
190
237
  }
@@ -218,7 +265,7 @@
218
265
  }
219
266
 
220
267
  .#{$block-class} .#{$carbon-prefix}--checkbox-label-text {
221
- padding-left: $spacing-05;
268
+ padding-left: $spacing-03;
222
269
  }
223
270
  }
224
271
 
@@ -19,11 +19,11 @@
19
19
  background-color: $ui-background;
20
20
  }
21
21
 
22
- .#{$pkg-prefix}--create-modal .bx--modal-close {
22
+ .#{$pkg-prefix}--create-modal .#{$carbon-prefix}--modal-close {
23
23
  display: none;
24
24
  }
25
25
 
26
- .#{$pkg-prefix}--create-modal .bx--modal-container {
26
+ .#{$pkg-prefix}--create-modal .#{$carbon-prefix}--modal-container {
27
27
  @include carbon--breakpoint(md) {
28
28
  max-height: 95%;
29
29
  }
@@ -32,14 +32,16 @@
32
32
  }
33
33
  }
34
34
 
35
- .#{$pkg-prefix}--create-modal .bx--modal-header {
35
+ .#{$pkg-prefix}--create-modal .#{$carbon-prefix}--modal-header {
36
36
  padding-right: 20%;
37
37
  padding-bottom: $spacing-03;
38
38
  border-bottom: 1px solid $ui-03;
39
39
  margin-bottom: 0;
40
40
  }
41
41
 
42
- .#{$pkg-prefix}--create-modal .bx--modal-footer .bx--btn {
42
+ .#{$pkg-prefix}--create-modal
43
+ .#{$carbon-prefix}--modal-footer
44
+ .#{$carbon-prefix}--btn {
43
45
  max-width: none;
44
46
  }
45
47
 
@@ -63,7 +65,7 @@
63
65
  margin: $spacing-03 0 $spacing-05 0;
64
66
  }
65
67
 
66
- .#{$pkg-prefix}--create-modal__form .bx--fieldset {
68
+ .#{$pkg-prefix}--create-modal__form .#{$carbon-prefix}--fieldset {
67
69
  min-width: 100%;
68
70
  margin-bottom: 0;
69
71
  }
@@ -15,31 +15,32 @@
15
15
  @import 'carbon-components/scss/components/tooltip/tooltip';
16
16
  @import 'carbon-components/scss/components/modal/modal';
17
17
 
18
- .bx--number {
18
+ .#{$carbon-prefix}--number {
19
19
  min-width: 100%;
20
20
  }
21
21
 
22
- .bx--number__control-btn::before {
22
+ .#{$carbon-prefix}--number__control-btn::before {
23
23
  background-color: transparent;
24
24
  }
25
25
 
26
- .bx--number__control-btn::after {
26
+ .#{$carbon-prefix}--number__control-btn::after {
27
27
  background-color: transparent;
28
28
  }
29
29
 
30
- .bx--date-picker {
30
+ .#{$carbon-prefix}--date-picker {
31
31
  min-width: 100%;
32
32
  }
33
33
 
34
- .bx--date-picker-container {
34
+ .#{$carbon-prefix}--date-picker-container {
35
35
  min-width: 100%;
36
36
  }
37
37
 
38
- .bx--date-picker.bx--date-picker--single .bx--date-picker__input {
38
+ .#{$carbon-prefix}--date-picker.#{$carbon-prefix}--date-picker--single
39
+ .#{$carbon-prefix}--date-picker__input {
39
40
  min-width: 100%;
40
41
  }
41
42
 
42
- .bx--list-box__menu-icon {
43
+ .#{$carbon-prefix}--list-box__menu-icon {
43
44
  top: $spacing-03;
44
45
  }
45
46
 
@@ -22,8 +22,12 @@
22
22
  @mixin data-spreadsheet {
23
23
  // The block part of our conventional BEM class names (blockClass__E--M).
24
24
  $block-class: #{$pkg-prefix}--data-spreadsheet;
25
+ $body-cell-background: $field-01;
26
+ $header-cell-background: $ui-03;
25
27
 
26
28
  .#{$block-class} {
29
+ --#{$block-class}--total-width: 0;
30
+
27
31
  display: inline-block;
28
32
  border-spacing: 0;
29
33
 
@@ -45,7 +49,8 @@
45
49
 
46
50
  .#{$block-class}__th,
47
51
  .#{$block-class}__td {
48
- // height: 2.25rem; // update to be controlled by cellSize prop later
52
+ @include carbon--type-style('body-short-01');
53
+
49
54
  padding: 0 $spacing-03;
50
55
  border: 0;
51
56
  margin: 0;
@@ -59,8 +64,13 @@
59
64
  .#{$block-class}__td-th.#{$block-class}__td {
60
65
  @include set-header-borders();
61
66
 
62
- background-color: $ui-01;
67
+ background-color: $header-cell-background;
63
68
  cursor: pointer;
69
+
70
+ &:hover,
71
+ &:focus {
72
+ background-color: $hover-selected-ui;
73
+ }
64
74
  }
65
75
  .#{$block-class}__td-th.#{$block-class}__td {
66
76
  @include carbon--font-weight('semibold');
@@ -73,8 +83,9 @@
73
83
  .#{$block-class}__td {
74
84
  @include set-body-borders();
75
85
 
86
+ overflow: hidden;
76
87
  margin: 0;
77
- background-color: $ui-background;
88
+ background-color: $body-cell-background;
78
89
  cursor: cell;
79
90
  text-align: left;
80
91
  }
@@ -85,23 +96,62 @@
85
96
  text-align: left;
86
97
  }
87
98
  .#{$block-class}__cell-editor {
99
+ @include carbon--type-style('body-short-01');
100
+
88
101
  position: absolute;
89
102
  z-index: 4;
90
103
  display: none;
91
- padding: 0 $spacing-03;
92
- background-color: $ui-background;
104
+ overflow: hidden;
105
+ /* stylelint-disable-next-line carbon/layout-token-use */
106
+ padding: 0 calc(#{$spacing-03} + 1px) 0 $spacing-03;
107
+ background-color: $body-cell-background;
93
108
  resize: none;
94
109
  &.#{$carbon-prefix}--text-area {
95
110
  min-width: initial;
96
111
  min-height: initial;
97
112
  }
113
+ &.#{$block-class}__cell-editor--active {
114
+ outline: $spacing-01 solid $interactive-01;
115
+ outline-offset: -2px;
116
+ }
117
+ }
118
+ .#{$block-class}__cell-editor-ruler {
119
+ @include carbon--type-style('body-short-01');
120
+
121
+ position: absolute;
122
+ overflow: hidden;
123
+ width: fit-content;
124
+ max-width: var(--#{$block-class}--total-width);
125
+ /* stylelint-disable-next-line carbon/layout-token-use */
126
+ padding: 0 calc(#{$spacing-03} + 1px) 0 $spacing-03;
127
+ visibility: hidden;
128
+
129
+ &:focus {
130
+ outline: $spacing-01 solid $interactive-01;
131
+ }
98
132
  }
99
133
  .#{$block-class}__active-cell--highlight {
134
+ @include carbon--type-style('body-short-01');
135
+ @include set-body-borders();
136
+
100
137
  position: absolute;
101
138
  z-index: 3;
102
139
  display: none;
140
+ overflow: hidden;
141
+ // Could be fixed by using border-right but the fact that
142
+ // this element is positioned absolute prevents that from working
143
+ /* stylelint-disable-next-line carbon/layout-token-use */
144
+ padding-right: calc(#{$spacing-03} - 1px);
145
+ padding-bottom: $spacing-01;
103
146
  border: $spacing-01 solid $interactive-01;
104
- background-color: transparent;
147
+ background-color: $body-cell-background;
148
+ color: $text-01;
149
+ text-align: left;
150
+
151
+ &[data-active-row-index='header'],
152
+ &[data-active-column-index='header'] {
153
+ background-color: transparent;
154
+ }
105
155
 
106
156
  &:focus {
107
157
  border: $spacing-01 solid $interactive-01;
@@ -128,7 +178,7 @@
128
178
  }
129
179
  .#{$block-class}__th--active-header,
130
180
  .#{$block-class}__td-th--active-header.#{$block-class}__td {
131
- background-color: $ui-03;
181
+ background-color: $hover-selected-ui;
132
182
  }
133
183
  }
134
184
  }
@@ -21,15 +21,15 @@
21
21
  @mixin export-modal {
22
22
  $block-class: #{$pkg-prefix}--export-modal;
23
23
 
24
- .#{$block-class} .bx--modal-footer .bx--btn {
24
+ .#{$block-class} .#{$carbon-prefix}--modal-footer .#{$carbon-prefix}--btn {
25
25
  max-width: none;
26
26
  }
27
27
 
28
- .#{$block-class}.#{$carbon-prefix}--modal .bx--modal-content {
28
+ .#{$block-class}.#{$carbon-prefix}--modal .#{$carbon-prefix}--modal-content {
29
29
  padding-right: $spacing-05;
30
30
  }
31
31
 
32
- .#{$block-class} .bx--modal-close {
32
+ .#{$block-class} .#{$carbon-prefix}--modal-close {
33
33
  display: none;
34
34
  }
35
35
 
@@ -18,14 +18,15 @@
18
18
  $block-class: #{$pkg-prefix}--http-errors;
19
19
 
20
20
  .#{$block-class} .#{$block-class}__content {
21
- @include carbon--breakpoint(sm) {
22
- position: fixed;
23
- z-index: 2;
24
- top: 50%;
25
- left: 50%;
26
- transform: translate(-50%, -150%);
27
- }
21
+ position: fixed;
22
+ z-index: 2;
23
+ top: 50%;
24
+ left: 50%;
25
+ transform: translate(-50%, -75%);
28
26
  @include carbon--breakpoint(md) {
27
+ transform: translate(-50%, -100%);
28
+ }
29
+ @include carbon--breakpoint(lg) {
29
30
  transform: translate(-50%, -50%);
30
31
  }
31
32
  }
@@ -54,15 +55,14 @@
54
55
  margin-bottom: $spacing-02;
55
56
  }
56
57
  .#{$block-class} .#{$block-class}__image {
57
- @include carbon--breakpoint(sm) {
58
- position: fixed;
59
- top: 50%;
60
- left: 50%;
61
- width: 100%;
62
- transform: translate(-50%, -40%);
63
- }
64
- @include carbon--breakpoint(md) {
65
- transform: translate(-50%, -50%);
58
+ position: fixed;
59
+ bottom: 0;
60
+ left: 0;
61
+ width: 100%;
62
+ max-height: 100%;
63
+ @include carbon--breakpoint-down(md) {
64
+ left: 10%;
65
+ transform: scale(1.5);
66
66
  }
67
67
  }
68
68
  }
@@ -265,7 +265,6 @@
265
265
  svg {
266
266
  transition: width $duration--moderate-02 motion(standard, productive);
267
267
  @media (prefers-reduced-motion: reduce) {
268
- // stylelint-disable-next-line carbon/motion-token-use
269
268
  transition: none;
270
269
  }
271
270
  }
@@ -13,15 +13,6 @@
13
13
  justify-content: space-between;
14
14
  }
15
15
 
16
- .modified-tabs .modified-tabs__tab .bx--btn {
17
- // transform: translateY(8px);
18
- }
19
-
20
- .modified-tabs .bx--tabs__nav {
21
- /* overflow cannot be tweaked to fix tooltip */
22
- // overflow: visible;
23
- }
24
-
25
16
  .modified-tabs__tab-new,
26
17
  .modified-tabs__tab {
27
18
  position: relative;
@@ -47,7 +38,6 @@
47
38
  transition: background-color $duration--fast-02 motion(standard, productive);
48
39
  // stylelint-disable-next-line max-nesting-depth
49
40
  @media (prefers-reduced-motion: reduce) {
50
- // stylelint-disable-next-line carbon/motion-token-use
51
41
  transition: none;
52
42
  }
53
43
  }
@@ -75,7 +75,8 @@
75
75
  align-items: center;
76
76
  justify-content: space-between;
77
77
  }
78
- .#{$block-class}__do-not-disturb-toggle .bx--toggle__switch {
78
+ .#{$block-class}__do-not-disturb-toggle
79
+ .#{$carbon-prefix}--toggle__switch {
79
80
  margin-top: $spacing-02;
80
81
  }
81
82
  .#{$block-class}__dismiss-button {
@@ -186,7 +187,6 @@
186
187
  .#{$carbon-prefix}--btn__icon {
187
188
  transition: transform $duration--moderate-02 ease;
188
189
  @media (prefers-reduced-motion: reduce) {
189
- // stylelint-disable-next-line carbon/motion-token-use
190
190
  transition: none;
191
191
  }
192
192
  }
@@ -280,7 +280,7 @@
280
280
  padding: 0;
281
281
  color: $text-01;
282
282
  }
283
- .#{$block-class}__settings-button .bx--btn__icon {
283
+ .#{$block-class}__settings-button .#{$carbon-prefix}--btn__icon {
284
284
  margin: 0;
285
285
  }
286
286
  }
@@ -210,7 +210,6 @@
210
210
  @media (prefers-reduced-motion: reduce) {
211
211
  .#{$block-class}__summary,
212
212
  .#{$block-class}__chevron {
213
- // stylelint-disable-next-line carbon/motion-token-use
214
213
  transition: none;
215
214
  }
216
215
  }
@@ -356,6 +356,9 @@ $right-section-alt-width: 100% - $left-section-alt-width;
356
356
  .#{$block-class}__title-row {
357
357
  margin-top: 0;
358
358
  margin-bottom: 0;
359
+ transform: translateY(
360
+ $spacing-01
361
+ ); // position adjusted for editable title focus outline
359
362
 
360
363
  @include carbon--breakpoint-up('md') {
361
364
  flex-wrap: nowrap; /* assume enough space */
@@ -363,6 +366,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
363
366
 
364
367
  &.#{$block-class}__title-row--under-action-bar {
365
368
  margin-top: $spacing-05;
369
+ transform: translateY(0); // Not needed under action bar
366
370
  }
367
371
 
368
372
  + .#{$block-class}__last-row-buffer--active {
@@ -17,15 +17,15 @@
17
17
  @mixin remove-modal {
18
18
  $block-class: #{$pkg-prefix}--remove-modal;
19
19
 
20
- .#{$block-class} .bx--modal-footer .bx--btn {
20
+ .#{$block-class} .#{$carbon-prefix}--modal-footer .#{$carbon-prefix}--btn {
21
21
  max-width: none;
22
22
  }
23
23
 
24
- .#{$block-class} .bx--modal-content {
24
+ .#{$block-class} .#{$carbon-prefix}--modal-content {
25
25
  padding-right: $spacing-05;
26
26
  }
27
27
 
28
- .#{$block-class} .bx--modal-close {
28
+ .#{$block-class} .#{$carbon-prefix}--modal-close {
29
29
  display: none;
30
30
  }
31
31
 
@@ -114,6 +114,7 @@ $block-class-modal: #{$block-class}-modal;
114
114
  &.#{$block-class-overflow}__tooltip {
115
115
  // removes the min width in Carbon
116
116
  min-width: initial;
117
+ text-align: left;
117
118
  }
118
119
 
119
120
  .#{$block-class-overflow}__show-all-tags-link {
@@ -138,7 +139,7 @@ $block-class-modal: #{$block-class}-modal;
138
139
  }
139
140
 
140
141
  .#{$block-class-overflow}__tag .#{$carbon-prefix}--tag__close-icon {
141
- // undo override by .bx--tooltip button
142
+ // undo override by .#{$carbon-prefix}--tooltip button
142
143
  padding: 0;
143
144
  }
144
145
 
@@ -48,7 +48,6 @@
48
48
  background-color $motion-duration motion(entrance, expressive),
49
49
  opacity $motion-duration motion(entrance, expressive);
50
50
  @media (prefers-reduced-motion: reduce) {
51
- // stylelint-disable-next-line carbon/motion-token-use
52
51
  transition: none;
53
52
  }
54
53
  }
@@ -267,7 +266,7 @@
267
266
  &.#{$block-class}--wide .#{$block-class}__content {
268
267
  background: $ui-background;
269
268
 
270
- // revert the background colour overridden by bx--modal styles
269
+ // revert the background color overridden by #{$carbon-prefix}--modal styles
271
270
  .#{$prefix}--pagination,
272
271
  .#{$prefix}--pagination__control-buttons,
273
272
  .#{$prefix}--text-input,