@carbon/ibm-products 2.85.0 → 2.86.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.
- package/css/carbon.css +55 -2
- package/css/carbon.css.map +1 -1
- package/css/index-full-carbon.css +615 -410
- 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 +3225 -3081
- 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 +2958 -2806
- 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 +2202 -2011
- 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/ActionSet/ActionSet.d.ts +6 -0
- package/es/components/ActionSet/ActionSet.js +20 -10
- package/es/components/Coachmark/next/Coachmark/ContentBody.js +1 -1
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +2 -2
- package/es/components/EditInPlace/EditInPlace.d.ts +2 -3
- package/es/components/OptionsTile/OptionsTile.js +35 -12
- package/es/components/PageHeader/next/context.js +1 -1
- package/es/components/PageHeader/next/index.js +3 -3
- package/es/components/StringFormatter/StringFormatter.js +1 -1
- package/es/components/TagSet/TagSet.js +1 -1
- package/es/components/Tearsheet/next/StackContext.d.ts +1 -1
- package/es/components/Tearsheet/next/Tearsheet.d.ts +19 -5
- package/es/components/Tearsheet/next/Tearsheet.js +90 -31
- package/es/components/Tearsheet/next/TearsheetBody.js +2 -2
- package/es/components/Tearsheet/next/TearsheetFooter.d.ts +31 -0
- package/es/components/Tearsheet/next/TearsheetFooter.js +39 -0
- package/es/components/Tearsheet/next/TearsheetHeader.d.ts +1 -1
- package/es/components/Tearsheet/next/index.d.ts +2 -1
- package/es/components/index.d.ts +1 -1
- package/es/global/js/hooks/index.d.ts +1 -0
- package/es/global/js/utils/devtools.js +1 -1
- package/es/index.js +8 -8
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +1184 -1110
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +1337 -1334
- package/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +2 -2
- package/lib/components/ActionSet/ActionSet.d.ts +6 -0
- package/lib/components/ActionSet/ActionSet.js +20 -10
- package/lib/components/Coachmark/next/Coachmark/ContentBody.js +0 -3
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +2 -2
- package/lib/components/EditInPlace/EditInPlace.d.ts +2 -3
- package/lib/components/OptionsTile/OptionsTile.js +35 -12
- package/lib/components/PageHeader/next/index.js +6 -6
- package/lib/components/TagSet/TagSet.js +0 -3
- package/lib/components/Tearsheet/next/StackContext.d.ts +1 -1
- package/lib/components/Tearsheet/next/Tearsheet.d.ts +19 -5
- package/lib/components/Tearsheet/next/Tearsheet.js +90 -31
- package/lib/components/Tearsheet/next/TearsheetBody.js +2 -2
- package/lib/components/Tearsheet/next/TearsheetFooter.d.ts +31 -0
- package/lib/components/Tearsheet/next/TearsheetFooter.js +43 -0
- package/lib/components/Tearsheet/next/TearsheetHeader.d.ts +1 -1
- package/lib/components/Tearsheet/next/index.d.ts +2 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/global/js/hooks/index.d.ts +1 -0
- package/lib/index.js +50 -50
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +1204 -1130
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +1351 -1348
- package/package.json +14 -18
- package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -0
- package/scss/components/OptionsTile/_options-tile.scss +28 -7
- package/scss/components/PageHeader/_page-header.scss +14 -4
- package/scss/components/SidePanel/_side-panel.scss +0 -2
- package/scss/components/Tearsheet/_index-with-carbon.scss +2 -1
- package/scss/components/Tearsheet/_index.scss +1 -0
- package/scss/components/Tearsheet/_tearsheet.scss +0 -2
- package/scss/components/Tearsheet/_tearsheet_next.scss +351 -229
- package/telemetry.yml +4 -1
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.86.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -45,17 +45,15 @@
|
|
|
45
45
|
"build:carbon": "sass -q --quiet-deps --style=expanded --load-path ./node_modules --load-path ../../node_modules --load-path node_modules .storybook/carbon.scss:css/carbon.css",
|
|
46
46
|
"build:css": "copyfiles '../ibm-products-styles/css/**/*.*' ./ -u 2",
|
|
47
47
|
"build:scss": "copyfiles '../ibm-products-styles/scss/**/*.*' ./ -u 2",
|
|
48
|
-
"build:storybook": "yarn dlx cross-env \"NODE_OPTIONS=--max_old_space_size=8192\" && storybook build --quiet",
|
|
49
48
|
"build:js-new": "node scripts/build",
|
|
50
49
|
"clean": "rimraf es lib css scss",
|
|
51
50
|
"generate": "cross-env FORCE_COLOR=1 node scripts/generate/index.mjs",
|
|
52
51
|
"postinstall": "ibmtelemetry --config=telemetry.yml",
|
|
53
52
|
"start": "run-s build:carbon storybook:start",
|
|
54
|
-
"storybook:build": "
|
|
53
|
+
"storybook:build": "yarn build:carbon && cross-env NODE_OPTIONS=--max_old_space_size=8192 storybook build --quiet",
|
|
55
54
|
"storybook:start": "storybook dev ./public -p 3000",
|
|
56
55
|
"telemetry-config": "ibmtelemetry-config generate --id 495342db-5046-4ecf-85ea-9ffceb6f8cdf --endpoint https://www-api.ibm.com/ibm-telemetry/v1/metrics --files ./src/components/**/*.(tsx|js|jsx)",
|
|
57
|
-
"test": "jest --colors"
|
|
58
|
-
"vrt": "percy storybook --verbose ./storybook-static"
|
|
56
|
+
"test": "jest --colors"
|
|
59
57
|
},
|
|
60
58
|
"devDependencies": {
|
|
61
59
|
"@babel/cli": "^7.26.4",
|
|
@@ -67,11 +65,9 @@
|
|
|
67
65
|
"@babel/preset-env": "^7.26.9",
|
|
68
66
|
"@babel/preset-react": "^7.26.3",
|
|
69
67
|
"@babel/preset-typescript": "^7.26.0",
|
|
70
|
-
"@carbon/styles": "^1.
|
|
68
|
+
"@carbon/styles": "^1.101.0",
|
|
71
69
|
"@figma/code-connect": "^1.4.0",
|
|
72
70
|
"@ibm/telemetry-js-config-generator": "^2.0.1",
|
|
73
|
-
"@percy/cli": "^1.31.0",
|
|
74
|
-
"@percy/storybook": "^10.0.0",
|
|
75
71
|
"@rollup/plugin-babel": "^6.0.4",
|
|
76
72
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
77
73
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
@@ -84,7 +80,7 @@
|
|
|
84
80
|
"@types/react-table": "^7.7.20",
|
|
85
81
|
"@vitejs/plugin-react": "^5.0.0",
|
|
86
82
|
"babel-plugin-dev-expression": "^0.2.3",
|
|
87
|
-
"babel-preset-ibm-cloud-cognitive": "^0.
|
|
83
|
+
"babel-preset-ibm-cloud-cognitive": "^0.44.0",
|
|
88
84
|
"change-case": "5.4.4",
|
|
89
85
|
"classnames": "^2.5.1",
|
|
90
86
|
"copyfiles": "^2.4.1",
|
|
@@ -92,7 +88,7 @@
|
|
|
92
88
|
"fs-extra": "^11.3.0",
|
|
93
89
|
"glob": "^11.0.1",
|
|
94
90
|
"jest": "^29.7.0",
|
|
95
|
-
"jest-config-ibm-cloud-cognitive": "^1.
|
|
91
|
+
"jest-config-ibm-cloud-cognitive": "^1.45.0",
|
|
96
92
|
"jest-environment-jsdom": "^29.7.0",
|
|
97
93
|
"namor": "^1.1.2",
|
|
98
94
|
"npm-run-all2": "^8.0.0",
|
|
@@ -113,7 +109,7 @@
|
|
|
113
109
|
"@babel/runtime": "^7.26.10",
|
|
114
110
|
"@carbon-labs/react-resizer": "^0.10.0",
|
|
115
111
|
"@carbon/feature-flags": "^1.0.0",
|
|
116
|
-
"@carbon/ibm-products-styles": "^2.
|
|
112
|
+
"@carbon/ibm-products-styles": "^2.82.0",
|
|
117
113
|
"@carbon/telemetry": "^0.1.0",
|
|
118
114
|
"@carbon/utilities": "^0.16.0",
|
|
119
115
|
"@carbon/utilities-react": "0.19.0",
|
|
@@ -126,14 +122,14 @@
|
|
|
126
122
|
"react-window": "^1.8.11"
|
|
127
123
|
},
|
|
128
124
|
"peerDependencies": {
|
|
129
|
-
"@carbon/grid": "^11.
|
|
130
|
-
"@carbon/layout": "^11.
|
|
131
|
-
"@carbon/motion": "^11.
|
|
132
|
-
"@carbon/react": "^1.
|
|
133
|
-
"@carbon/themes": "^11.
|
|
134
|
-
"@carbon/type": "^11.
|
|
125
|
+
"@carbon/grid": "^11.51.0",
|
|
126
|
+
"@carbon/layout": "^11.49.0",
|
|
127
|
+
"@carbon/motion": "^11.42.0",
|
|
128
|
+
"@carbon/react": "^1.102.0",
|
|
129
|
+
"@carbon/themes": "^11.69.0",
|
|
130
|
+
"@carbon/type": "^11.55.0",
|
|
135
131
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0",
|
|
136
132
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0"
|
|
137
133
|
},
|
|
138
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "b850469558c82e297e176a9ac502e9445b9b29c7"
|
|
139
135
|
}
|
|
@@ -284,6 +284,9 @@ $block-size: 38.5rem;
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
+
.#{$block-class}__notification:focus:before {
|
|
288
|
+
display: none;
|
|
289
|
+
}
|
|
287
290
|
.#{$block-class}__notification-today:not(:first-of-type):before,
|
|
288
291
|
.#{$block-class}__notification-yesterday:not(:first-of-type):before,
|
|
289
292
|
.#{$block-class}__notification-previous:not(:first-of-type):before {
|
|
@@ -24,23 +24,29 @@ $block-class: #{c4p-settings.$pkg-prefix}--options-tile;
|
|
|
24
24
|
|
|
25
25
|
.#{$block-class} {
|
|
26
26
|
position: relative;
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: space-between;
|
|
27
29
|
background-color: $layer;
|
|
28
30
|
border-block-end: 1px solid $border-subtle;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
.#{$block-class}__toggle-container {
|
|
32
34
|
position: absolute;
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
33
38
|
inline-size: calc(
|
|
34
39
|
#{$spacing-05} + 2rem + #{$spacing-05}
|
|
35
40
|
); // spacing + toggle width + spacing
|
|
36
41
|
|
|
37
42
|
inset-block: 0;
|
|
38
43
|
inset-inline-end: 0;
|
|
44
|
+
padding-inline-end: $spacing-05;
|
|
45
|
+
padding-inline-start: $spacing-05;
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
.#{$block-class}__toggle {
|
|
42
49
|
position: absolute;
|
|
43
|
-
inset-inline-end: $spacing-05;
|
|
44
50
|
}
|
|
45
51
|
|
|
46
52
|
.#{$block-class}__toggle
|
|
@@ -53,19 +59,34 @@ $block-class: #{c4p-settings.$pkg-prefix}--options-tile;
|
|
|
53
59
|
@include visually-hidden;
|
|
54
60
|
}
|
|
55
61
|
|
|
62
|
+
.#{$block-class}__details {
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
flex-grow: 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
56
68
|
.#{$block-class}__header,
|
|
57
69
|
.#{$block-class}__static-content {
|
|
58
70
|
display: grid;
|
|
59
71
|
box-sizing: border-box;
|
|
60
72
|
align-items: center;
|
|
61
|
-
grid-template-columns: 3rem 1fr
|
|
73
|
+
grid-template-columns: 3rem 1fr 0; // chevron container, heading, toggle width
|
|
62
74
|
padding-inline-end: $spacing-05;
|
|
63
75
|
}
|
|
64
76
|
|
|
65
77
|
.#{$block-class}__header {
|
|
78
|
+
flex-grow: 1;
|
|
66
79
|
background-color: transparent;
|
|
67
80
|
cursor: pointer;
|
|
81
|
+
inline-size: 100%;
|
|
82
|
+
|
|
68
83
|
transition: background-color $duration-fast-01 motion(entrance, productive);
|
|
84
|
+
|
|
85
|
+
&--has-toggle {
|
|
86
|
+
inline-size: calc(
|
|
87
|
+
100% - (#{$spacing-05} + 2rem + #{$spacing-05})
|
|
88
|
+
); // total width - toggle container width
|
|
89
|
+
}
|
|
69
90
|
}
|
|
70
91
|
|
|
71
92
|
.#{$block-class}__header::-webkit-details-marker {
|
|
@@ -76,6 +97,10 @@ $block-class: #{c4p-settings.$pkg-prefix}--options-tile;
|
|
|
76
97
|
background-color: $background-hover;
|
|
77
98
|
}
|
|
78
99
|
|
|
100
|
+
.#{$block-class}__header:has(.#{$block-class}__toggle-container:hover) {
|
|
101
|
+
background-color: transparent;
|
|
102
|
+
}
|
|
103
|
+
|
|
79
104
|
.#{$block-class}__header:focus {
|
|
80
105
|
@include focus-outline('outline');
|
|
81
106
|
}
|
|
@@ -135,9 +160,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--options-tile;
|
|
|
135
160
|
.#{$block-class}__summary-text {
|
|
136
161
|
overflow: hidden;
|
|
137
162
|
block-size: max-content;
|
|
138
|
-
|
|
139
|
-
// stylelint-disable-next-line carbon/layout-use
|
|
140
|
-
padding-inline-end: calc(#{$spacing-05} + 2rem);
|
|
163
|
+
padding-inline-end: $spacing-05;
|
|
141
164
|
text-overflow: ellipsis;
|
|
142
165
|
white-space: nowrap;
|
|
143
166
|
}
|
|
@@ -150,8 +173,6 @@ $block-class: #{c4p-settings.$pkg-prefix}--options-tile;
|
|
|
150
173
|
|
|
151
174
|
.#{$block-class}__content {
|
|
152
175
|
padding-inline: $spacing-09 $spacing-05;
|
|
153
|
-
// spacing-05 + chevron size + spacing-05
|
|
154
|
-
// stylelint-disable-next-line carbon/layout-use
|
|
155
176
|
}
|
|
156
177
|
|
|
157
178
|
.#{$block-class}__content
|
|
@@ -787,22 +787,32 @@ $duration: 1000ms;
|
|
|
787
787
|
|
|
788
788
|
.#{$block-class}__breadcrumb__actions {
|
|
789
789
|
display: inline-flex;
|
|
790
|
+
flex: 1 1 0%;
|
|
790
791
|
justify-content: flex-end;
|
|
791
|
-
inline-size:
|
|
792
|
+
min-inline-size: 75%;
|
|
793
|
+
|
|
794
|
+
@include breakpoint(md) {
|
|
795
|
+
min-inline-size: 40%;
|
|
796
|
+
}
|
|
792
797
|
}
|
|
793
798
|
|
|
794
799
|
.#{$block-class}__breadcrumb__content-actions {
|
|
795
|
-
inline-size: 100%;
|
|
796
800
|
margin-inline-end: $spacing-04;
|
|
797
801
|
}
|
|
798
802
|
|
|
799
803
|
.#{$block-class}__breadcrumb-wrapper {
|
|
800
804
|
display: inline-flex;
|
|
801
|
-
|
|
805
|
+
flex: 1 1 auto;
|
|
806
|
+
min-inline-size: 0;
|
|
807
|
+
|
|
808
|
+
@include breakpoint(md) {
|
|
809
|
+
min-inline-size: 60%;
|
|
810
|
+
}
|
|
802
811
|
}
|
|
803
812
|
|
|
804
813
|
.#{$block-class}__breadcrumb-wrapper .#{$block-class}-breadcrumb-overflow {
|
|
805
|
-
|
|
814
|
+
flex: 1 1 0%;
|
|
815
|
+
min-inline-size: 0;
|
|
806
816
|
.#{$carbon-prefix}--breadcrumb {
|
|
807
817
|
display: flex;
|
|
808
818
|
}
|