@carbon/ibm-products 2.18.0 → 2.19.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +458 -86
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +111 -15
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +139 -15
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +125 -16
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +1 -1
- package/es/components/Card/Card.js +11 -2
- package/es/components/Card/CardHeader.js +41 -3
- package/es/components/CreateSidePanel/CreateSidePanel.js +4 -0
- package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +98 -47
- package/es/components/Datagrid/Datagrid/DatagridRow.js +14 -4
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +0 -3
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +6 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +55 -30
- package/es/components/Datagrid/Extensions/Filtering/Filtering.docs-page.js +1 -1
- package/es/components/Datagrid/useFiltering.js +2 -1
- package/es/components/EditSidePanel/EditSidePanel.js +4 -0
- package/es/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/es/components/Guidebanner/Guidebanner.js +12 -3
- package/es/components/InlineTip/InlineTip.js +17 -6
- package/es/components/InlineTip/InlineTipButton.js +2 -0
- package/es/components/InlineTip/InlineTipLink.js +2 -0
- package/es/components/ProductiveCard/ProductiveCard.js +5 -0
- package/es/components/SidePanel/SidePanel.js +7 -6
- package/es/components/index.js +4 -1
- package/es/global/js/package-settings.js +2 -0
- package/lib/components/APIKeyModal/APIKeyModal.js +1 -1
- package/lib/components/Card/Card.js +13 -4
- package/lib/components/Card/CardHeader.js +40 -2
- package/lib/components/CreateSidePanel/CreateSidePanel.js +4 -0
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +105 -53
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +14 -4
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +0 -3
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +6 -4
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +55 -30
- package/lib/components/Datagrid/Extensions/Filtering/Filtering.docs-page.js +1 -1
- package/lib/components/Datagrid/useFiltering.js +2 -1
- package/lib/components/EditSidePanel/EditSidePanel.js +4 -0
- package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/lib/components/Guidebanner/Guidebanner.js +12 -3
- package/lib/components/InlineTip/InlineTip.js +17 -6
- package/lib/components/InlineTip/InlineTipButton.js +2 -0
- package/lib/components/InlineTip/InlineTipLink.js +2 -0
- package/lib/components/ProductiveCard/ProductiveCard.js +5 -0
- package/lib/components/SidePanel/SidePanel.js +7 -6
- package/lib/components/index.js +52 -1
- package/lib/global/js/package-settings.js +2 -0
- package/package.json +7 -6
- package/scss/components/Card/_card.scss +89 -0
- package/scss/components/Checklist/_carbon-imports.scss +11 -0
- package/scss/components/Checklist/_checklist.scss +0 -1
- package/scss/components/Checklist/_index-with-carbon.scss +9 -0
- package/scss/components/Guidebanner/_guidebanner.scss +25 -0
- package/scss/components/InlineTip/_inline-tip.scss +12 -0
- package/scss/components/ProductiveCard/_productive-card.scss +0 -5
- package/scss/components/SidePanel/_side-panel.scss +33 -15
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": "2.
|
4
|
+
"version": "2.19.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -34,7 +34,8 @@
|
|
34
34
|
"carbon for ibm products"
|
35
35
|
],
|
36
36
|
"publishConfig": {
|
37
|
-
"access": "public"
|
37
|
+
"access": "public",
|
38
|
+
"provenance": true
|
38
39
|
},
|
39
40
|
"scripts": {
|
40
41
|
"build": "run-s clean build-all",
|
@@ -63,7 +64,7 @@
|
|
63
64
|
"fs-extra": "^11.1.1",
|
64
65
|
"glob": "^10.3.3",
|
65
66
|
"jest": "^29.6.2",
|
66
|
-
"jest-config-ibm-cloud-cognitive": "^1.1.
|
67
|
+
"jest-config-ibm-cloud-cognitive": "^1.1.2",
|
67
68
|
"jest-environment-jsdom": "^29.6.2",
|
68
69
|
"namor": "^1.1.2",
|
69
70
|
"npm-check-updates": "^16.11.1",
|
@@ -74,7 +75,7 @@
|
|
74
75
|
},
|
75
76
|
"dependencies": {
|
76
77
|
"@babel/runtime": "^7.22.10",
|
77
|
-
"@carbon/ibm-products-styles": "^2.
|
78
|
+
"@carbon/ibm-products-styles": "^2.19.0",
|
78
79
|
"@carbon/telemetry": "^0.1.0",
|
79
80
|
"@dnd-kit/core": "^6.0.8",
|
80
81
|
"@dnd-kit/sortable": "^7.0.2",
|
@@ -89,11 +90,11 @@
|
|
89
90
|
"@carbon/grid": "^11.21.1",
|
90
91
|
"@carbon/layout": "^11.20.1",
|
91
92
|
"@carbon/motion": "^11.16.1",
|
92
|
-
"@carbon/react": "^1.
|
93
|
+
"@carbon/react": "^1.45.0",
|
93
94
|
"@carbon/themes": "^11.28.0",
|
94
95
|
"@carbon/type": "^11.25.1",
|
95
96
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
96
97
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
97
98
|
},
|
98
|
-
"gitHead": "
|
99
|
+
"gitHead": "f6ae5df043ae6ddd25d75daefccaa7c0d8ed426b"
|
99
100
|
}
|
@@ -11,6 +11,7 @@
|
|
11
11
|
@use '@carbon/styles/scss/type' as *;
|
12
12
|
@use '@carbon/styles/scss/motion' as *;
|
13
13
|
@use '../../global/styles/project-settings' as c4p-settings;
|
14
|
+
@use '@carbon/styles/scss/utilities';
|
14
15
|
|
15
16
|
$block-class: #{c4p-settings.$pkg-prefix}--card;
|
16
17
|
|
@@ -25,6 +26,10 @@ $block-class: #{c4p-settings.$pkg-prefix}--card;
|
|
25
26
|
transition: background-color $duration-fast-02;
|
26
27
|
}
|
27
28
|
|
29
|
+
.#{$block-class}__clickable:focus {
|
30
|
+
@include utilities.focus-outline('outline');
|
31
|
+
}
|
32
|
+
|
28
33
|
.#{$block-class}__clickable:hover {
|
29
34
|
background-color: $layer-hover-01;
|
30
35
|
}
|
@@ -52,6 +57,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--card;
|
|
52
57
|
|
53
58
|
.#{$block-class}__header {
|
54
59
|
padding: $spacing-05;
|
60
|
+
padding-right: 0; // makes for consistent slug position across productive and expressive
|
55
61
|
}
|
56
62
|
|
57
63
|
.#{$block-class}__header-label-only {
|
@@ -121,3 +127,86 @@ $block-class: #{c4p-settings.$pkg-prefix}--card;
|
|
121
127
|
padding-top: $spacing-05;
|
122
128
|
padding-left: $spacing-05;
|
123
129
|
}
|
130
|
+
|
131
|
+
.#{$block-class}__header-container--has-actions {
|
132
|
+
padding-right: $spacing-03;
|
133
|
+
}
|
134
|
+
|
135
|
+
// +++ adjustments for slug
|
136
|
+
.#{$block-class} {
|
137
|
+
position: relative;
|
138
|
+
}
|
139
|
+
|
140
|
+
.#{$block-class}__media + .#{$block-class}__content-container {
|
141
|
+
/* display relative to container when media displayed */
|
142
|
+
position: relative;
|
143
|
+
}
|
144
|
+
|
145
|
+
.#{$block-class} .#{c4p-settings.$carbon-prefix}--slug {
|
146
|
+
@include utilities.callout-gradient();
|
147
|
+
|
148
|
+
position: absolute;
|
149
|
+
top: $spacing-05;
|
150
|
+
right: $spacing-05;
|
151
|
+
}
|
152
|
+
|
153
|
+
.#{$block-class}__header-container--has-slug {
|
154
|
+
width: 100%;
|
155
|
+
padding-right: $spacing-07;
|
156
|
+
}
|
157
|
+
|
158
|
+
.#{$block-class}__header-container--has-slug.#{$block-class}__header-container--has-actions {
|
159
|
+
padding-right: $spacing-08;
|
160
|
+
}
|
161
|
+
|
162
|
+
.#{$block-class}__header-container--has-slug.#{$block-class}__header-container--large-tile-or-label {
|
163
|
+
padding-right: $spacing-09;
|
164
|
+
}
|
165
|
+
|
166
|
+
.#{$block-class}__clickable {
|
167
|
+
position: relative;
|
168
|
+
}
|
169
|
+
|
170
|
+
.#{$block-class}__clickable .#{c4p-settings.$carbon-prefix}--slug,
|
171
|
+
.#{$block-class}__clickable .#{c4p-settings.$carbon-prefix}--slug-icon {
|
172
|
+
pointer-events: none;
|
173
|
+
}
|
174
|
+
|
175
|
+
.#{$block-class}--has-slug {
|
176
|
+
@include utilities.callout-gradient();
|
177
|
+
|
178
|
+
border: 1px solid $border-tile;
|
179
|
+
}
|
180
|
+
|
181
|
+
.#{$block-class}__clickable.#{$block-class}--has-slug::before {
|
182
|
+
@include utilities.callout-gradient('hover');
|
183
|
+
|
184
|
+
position: absolute;
|
185
|
+
display: block;
|
186
|
+
block-size: 100%;
|
187
|
+
content: '';
|
188
|
+
inline-size: 100%;
|
189
|
+
inset-block-start: 0;
|
190
|
+
inset-inline-start: 0;
|
191
|
+
opacity: 0;
|
192
|
+
transition: opacity $duration-fast-02 motion(standard, productive);
|
193
|
+
}
|
194
|
+
|
195
|
+
.#{$block-class}__clickable.#{$block-class}--has-slug:hover::before {
|
196
|
+
opacity: 1;
|
197
|
+
}
|
198
|
+
|
199
|
+
.#{$block-class}__clickable .#{$block-class}__content-container {
|
200
|
+
position: relative;
|
201
|
+
z-index: 1;
|
202
|
+
}
|
203
|
+
|
204
|
+
.#{$block-class} .#{c4p-settings.$carbon-prefix}--slug-icon rect {
|
205
|
+
stroke: $icon-primary;
|
206
|
+
}
|
207
|
+
|
208
|
+
.#{$block-class} .#{c4p-settings.$carbon-prefix}--slug-icon path {
|
209
|
+
fill: $icon-primary;
|
210
|
+
}
|
211
|
+
|
212
|
+
// --- adjustments for slug
|
@@ -0,0 +1,11 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2020, 2021
|
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
|
+
// AboutModal uses the following Carbon components:
|
9
|
+
// Button, IconButton
|
10
|
+
|
11
|
+
@use '@carbon/react/scss/components/button';
|
@@ -246,3 +246,28 @@ $purple-3: #7433e3;
|
|
246
246
|
fill: $purple-1;
|
247
247
|
}
|
248
248
|
}
|
249
|
+
|
250
|
+
// Exception handling.
|
251
|
+
// If "withLeftgutter", then:
|
252
|
+
// - insert 1 rem of more "space" on the left.
|
253
|
+
// - move icon 1 rem more to the right.
|
254
|
+
.#{$block-class}__with-left-gutter .#{$block-class}__icon-idea {
|
255
|
+
left: $spacing-07;
|
256
|
+
}
|
257
|
+
.#{$block-class}__with-left-gutter .#{$block-class}__title {
|
258
|
+
padding-left: calc($horizontal-margin + $spacing-05);
|
259
|
+
}
|
260
|
+
.#{$block-class}__with-left-gutter .#{$block-class}__navigation {
|
261
|
+
padding-left: $spacing-05;
|
262
|
+
}
|
263
|
+
// Override Carousel settings
|
264
|
+
// - insert 1 rem of more "space" on the left.
|
265
|
+
.#{$block-class}__with-left-gutter
|
266
|
+
.#{c4p-settings.$pkg-prefix}--carousel__elements-container {
|
267
|
+
padding-left: $spacing-05;
|
268
|
+
}
|
269
|
+
// - expand "fade" to cover more of the left side of the carousel.
|
270
|
+
.#{$block-class}__with-left-gutter
|
271
|
+
.#{c4p-settings.$pkg-prefix}--carousel__elements-container--scrolled {
|
272
|
+
width: $spacing-10;
|
273
|
+
}
|
@@ -227,3 +227,15 @@ $purple: #7f3ae7;
|
|
227
227
|
flex-shrink: 0;
|
228
228
|
}
|
229
229
|
}
|
230
|
+
|
231
|
+
// Exception handling.
|
232
|
+
// If "withLeftgutter", then:
|
233
|
+
// - insert 1 rem of more "space" on the left.
|
234
|
+
// - move icon 1 rem more to the right.
|
235
|
+
.#{$block-class}__wide.#{$block-class}__with-left-gutter {
|
236
|
+
padding-left: $spacing-10;
|
237
|
+
}
|
238
|
+
.#{$block-class}__wide.#{$block-class}__with-left-gutter
|
239
|
+
.#{$block-class}__icon-idea {
|
240
|
+
left: $spacing-07;
|
241
|
+
}
|
@@ -16,10 +16,6 @@
|
|
16
16
|
$block-class: #{c4p-settings.$pkg-prefix}--card;
|
17
17
|
|
18
18
|
.#{$block-class}__productive {
|
19
|
-
.#{$block-class}__header {
|
20
|
-
padding-right: 0;
|
21
|
-
}
|
22
|
-
|
23
19
|
.#{$block-class}__title {
|
24
20
|
@include type.type-style('heading-compact-02');
|
25
21
|
}
|
@@ -49,7 +45,6 @@ $block-class: #{c4p-settings.$pkg-prefix}--card;
|
|
49
45
|
|
50
46
|
.#{$block-class}__actions-header {
|
51
47
|
margin-top: calc(-1 * #{$spacing-02});
|
52
|
-
margin-right: $spacing-03;
|
53
48
|
}
|
54
49
|
|
55
50
|
.#{$block-class}__actions-header-ghost-button {
|
@@ -115,6 +115,16 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
115
115
|
padding: $spacing-05 $spacing-05 $spacing-03 $spacing-05;
|
116
116
|
background-color: $layer-01;
|
117
117
|
|
118
|
+
&:has(.#{$block-class}__navigation-back-button) {
|
119
|
+
padding-top: $spacing-07;
|
120
|
+
}
|
121
|
+
|
122
|
+
&:has(
|
123
|
+
.#{$block-class}__navigation-back-button.#{c4p-settings.$carbon-prefix}--btn--md
|
124
|
+
) {
|
125
|
+
padding-top: $spacing-08;
|
126
|
+
}
|
127
|
+
|
118
128
|
/* stylelint-disable-next-line max-nesting-depth */
|
119
129
|
&::before {
|
120
130
|
@include setDividerStyles();
|
@@ -129,8 +139,15 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
129
139
|
margin-bottom: 0;
|
130
140
|
}
|
131
141
|
&.#{$block-class}__on-detail-step .#{$block-class}__collapsed-title-text {
|
132
|
-
top: $spacing-
|
142
|
+
top: $spacing-07;
|
143
|
+
}
|
144
|
+
|
145
|
+
&.#{$block-class}__on-detail-step
|
146
|
+
.#{$block-class}__navigation-back-button.#{c4p-settings.$carbon-prefix}--btn--md
|
147
|
+
~ .#{$block-class}__collapsed-title-text {
|
148
|
+
top: $spacing-08;
|
133
149
|
}
|
150
|
+
|
134
151
|
&.#{$block-class}__title-container-without-title {
|
135
152
|
padding: 0;
|
136
153
|
}
|
@@ -326,29 +343,30 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
326
343
|
}
|
327
344
|
|
328
345
|
.#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__navigation-back-button {
|
329
|
-
position:
|
346
|
+
position: fixed;
|
330
347
|
z-index: 5;
|
331
|
-
top:
|
332
|
-
left:
|
348
|
+
top: 0;
|
349
|
+
left: 0;
|
333
350
|
}
|
334
351
|
.#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__navigation-back-button,
|
335
|
-
.#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__close-button {
|
336
|
-
min-width: 2rem;
|
337
|
-
padding: 0;
|
338
|
-
color: $text-primary;
|
339
|
-
}
|
340
|
-
|
341
352
|
.#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__close-button {
|
342
353
|
display: flex;
|
354
|
+
width: $spacing-07;
|
355
|
+
height: $spacing-07;
|
343
356
|
align-items: center;
|
344
357
|
justify-content: center;
|
345
|
-
|
346
|
-
|
347
|
-
}
|
358
|
+
padding: 0;
|
359
|
+
color: $text-primary;
|
348
360
|
|
349
|
-
.#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__close-button
|
350
361
|
.#{c4p-settings.$carbon-prefix}--btn__icon {
|
351
|
-
|
362
|
+
margin: 0;
|
363
|
+
}
|
364
|
+
}
|
365
|
+
|
366
|
+
.#{c4p-settings.$carbon-prefix}--btn--md.#{$block-class}__navigation-back-button,
|
367
|
+
.#{c4p-settings.$carbon-prefix}--btn--md.#{$block-class}__close-button {
|
368
|
+
width: $spacing-08;
|
369
|
+
height: $spacing-08;
|
352
370
|
}
|
353
371
|
|
354
372
|
.#{$block-class}__slug-and-close {
|