@carbon/ibm-products 2.66.0 → 2.67.0-rc.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 (63) hide show
  1. package/README.md +1 -1
  2. package/css/carbon.css +27142 -0
  3. package/css/carbon.css.map +1 -0
  4. package/css/index-full-carbon.css +11 -5
  5. package/css/index-full-carbon.css.map +1 -1
  6. package/css/index-full-carbon.min.css +1 -1
  7. package/css/index-full-carbon.min.css.map +1 -1
  8. package/css/index-without-carbon-released-only.css +11 -5
  9. package/css/index-without-carbon-released-only.css.map +1 -1
  10. package/css/index-without-carbon-released-only.min.css +1 -1
  11. package/css/index-without-carbon-released-only.min.css.map +1 -1
  12. package/css/index-without-carbon.css +11 -5
  13. package/css/index-without-carbon.css.map +1 -1
  14. package/css/index-without-carbon.min.css +1 -1
  15. package/css/index-without-carbon.min.css.map +1 -1
  16. package/css/index.css +11 -5
  17. package/css/index.css.map +1 -1
  18. package/css/index.min.css +1 -1
  19. package/css/index.min.css.map +1 -1
  20. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +14 -14
  21. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +0 -3
  22. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +5 -0
  23. package/es/components/Datagrid/useSelectRows.js +21 -23
  24. package/es/components/EmptyStates/EmptyState.d.ts +9 -8
  25. package/es/components/EmptyStates/EmptyState.js +4 -9
  26. package/es/components/EmptyStates/EmptyStateContent.d.ts +34 -20
  27. package/es/components/EmptyStates/EmptyStateContent.js +12 -14
  28. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -7
  29. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -7
  30. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -7
  31. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -7
  32. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -7
  33. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  34. package/es/components/ImportModal/ImportModal.js +1 -1
  35. package/es/components/OptionsTile/OptionsTile.d.ts +2 -2
  36. package/es/components/OptionsTile/OptionsTile.js +6 -2
  37. package/es/components/PageHeader/PageHeader.js +4 -6
  38. package/es/components/TagSet/TagSet.js +2 -0
  39. package/es/components/Tearsheet/Tearsheet.d.ts +1 -0
  40. package/es/components/Tearsheet/TearsheetNarrow.d.ts +2 -2
  41. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +12 -12
  42. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +0 -3
  43. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +5 -0
  44. package/lib/components/Datagrid/useSelectRows.js +20 -22
  45. package/lib/components/EmptyStates/EmptyState.d.ts +9 -8
  46. package/lib/components/EmptyStates/EmptyState.js +3 -8
  47. package/lib/components/EmptyStates/EmptyStateContent.d.ts +34 -20
  48. package/lib/components/EmptyStates/EmptyStateContent.js +11 -13
  49. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -6
  50. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -6
  51. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -6
  52. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -6
  53. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -6
  54. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  55. package/lib/components/ImportModal/ImportModal.js +1 -1
  56. package/lib/components/OptionsTile/OptionsTile.d.ts +2 -2
  57. package/lib/components/OptionsTile/OptionsTile.js +6 -2
  58. package/lib/components/PageHeader/PageHeader.js +4 -6
  59. package/lib/components/TagSet/TagSet.js +2 -0
  60. package/lib/components/Tearsheet/Tearsheet.d.ts +1 -0
  61. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +2 -2
  62. package/package.json +31 -6
  63. package/scss/components/PageHeader/_page-header.scss +15 -6
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.66.0",
4
+ "version": "2.67.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -43,13 +43,18 @@
43
43
  "scripts": {
44
44
  "build": "run-s clean build-all",
45
45
  "build-all": "run-p 'build:*'",
46
+ "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
47
  "build:css": "copyfiles '../ibm-products-styles/css/**/*.*' ./ -u 2",
47
48
  "build:scss": "copyfiles '../ibm-products-styles/scss/**/*.*' ./ -u 2",
49
+ "build:storybook": "yarn dlx cross-env \"NODE_OPTIONS=--max_old_space_size=8192\" && storybook build --quiet",
48
50
  "build:js-new": "node scripts/build",
49
51
  "ci-check": "node scripts/import",
50
52
  "clean": "rimraf es lib css scss",
51
53
  "generate": "cross-env FORCE_COLOR=1 node scripts/generate",
52
54
  "postinstall": "ibmtelemetry --config=telemetry.yml",
55
+ "start": "run-s build:carbon storybook:start",
56
+ "storybook:build": "run-s build:carbon build:storybook",
57
+ "storybook:start": "storybook dev ./public -p 3000",
53
58
  "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)",
54
59
  "test": "jest --colors",
55
60
  "//upgrade-dependencies": "# don't upgrade carbon (done globally), react/react-dom (explicit range peer dependency), chalk (issue #1596)",
@@ -66,13 +71,31 @@
66
71
  "@babel/preset-react": "^7.26.3",
67
72
  "@babel/preset-typescript": "^7.26.0",
68
73
  "@ibm/telemetry-js-config-generator": "^2.0.1",
74
+ "@percy/cli": "^1.30.7",
75
+ "@percy/storybook": "^6.0.3",
69
76
  "@rollup/plugin-babel": "^6.0.4",
70
77
  "@rollup/plugin-commonjs": "^28.0.3",
71
78
  "@rollup/plugin-node-resolve": "^16.0.1",
72
79
  "@rollup/plugin-typescript": "^12.1.2",
80
+ "@storybook/addon-a11y": "^8.6.12",
81
+ "@storybook/addon-actions": "^8.6.12",
82
+ "@storybook/addon-controls": "^8.6.12",
83
+ "@storybook/addon-docs": "^8.6.12",
84
+ "@storybook/addon-essentials": "^8.6.12",
85
+ "@storybook/addon-links": "^8.6.12",
86
+ "@storybook/addon-storysource": "^8.6.12",
87
+ "@storybook/addon-viewport": "^8.6.12",
88
+ "@storybook/components": "^8.6.12",
89
+ "@storybook/core-events": "^8.6.12",
90
+ "@storybook/csf": "^0.1.13",
91
+ "@storybook/manager-api": "^8.6.12",
92
+ "@storybook/react": "^8.6.12",
93
+ "@storybook/react-vite": "^8.6.12",
94
+ "@storybook/source-loader": "^8.6.12",
95
+ "@storybook/theming": "^8.6.12",
73
96
  "@types/react-table": "^7.7.20",
74
97
  "babel-plugin-dev-expression": "^0.2.3",
75
- "babel-preset-ibm-cloud-cognitive": "^0.24.0",
98
+ "babel-preset-ibm-cloud-cognitive": "^0.25.0-rc.0",
76
99
  "chalk": "^4.1.2",
77
100
  "change-case": "5.4.4",
78
101
  "classnames": "^2.5.1",
@@ -81,24 +104,26 @@
81
104
  "fs-extra": "^11.3.0",
82
105
  "glob": "^11.0.1",
83
106
  "jest": "^29.7.0",
84
- "jest-config-ibm-cloud-cognitive": "^1.25.0",
107
+ "jest-config-ibm-cloud-cognitive": "^1.26.0-rc.0",
85
108
  "jest-environment-jsdom": "^29.7.0",
86
109
  "namor": "^1.1.2",
87
- "npm-check-updates": "^17.1.15",
110
+ "npm-check-updates": "^18.0.0",
88
111
  "npm-run-all": "^4.1.5",
89
112
  "rimraf": "^6.0.1",
90
113
  "rollup": "^4.35.0",
91
114
  "rollup-plugin-strip-banner": "^3.1.0",
92
115
  "sass": "^1.85.1",
116
+ "storybook": "^8.6.12",
93
117
  "typescript-config-carbon": "^0.5.0",
94
118
  "yargs": "^17.7.2"
95
119
  },
96
120
  "dependencies": {
97
121
  "@babel/runtime": "^7.26.10",
98
122
  "@carbon/feature-flags": "^0.26.0",
99
- "@carbon/ibm-products-styles": "^2.62.0",
123
+ "@carbon/ibm-products-styles": "^2.63.0-rc.0",
100
124
  "@carbon/telemetry": "^0.1.0",
101
125
  "@carbon/utilities": "^0.5.0",
126
+ "@carbon/utilities-react": "0.7.0",
102
127
  "@dnd-kit/core": "^6.3.1",
103
128
  "@dnd-kit/modifiers": "^9.0.0",
104
129
  "@dnd-kit/sortable": "^10.0.0",
@@ -117,5 +142,5 @@
117
142
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0",
118
143
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0"
119
144
  },
120
- "gitHead": "3de1ea266ed33f09120ef615aa418790b7f3c35b"
145
+ "gitHead": "f131ccc59383f8b291880d6a9a420288c825c3a8"
121
146
  }
@@ -122,17 +122,12 @@ $duration: 1000ms;
122
122
  --#{$block-class}--background-opacity: 1;
123
123
  --#{$block-class}--breadcrumb-title-top: initial;
124
124
  --#{$block-class}--button-set-in-breadcrumb-width-px: initial;
125
- --#{$block-class}--navigation-buffer-top: $spacing-06;
126
125
  }
127
126
 
128
127
  &.#{$block-class}--without-background {
129
128
  border-block-end: none;
130
129
  }
131
130
 
132
- &.#{$block-class}--has-navigation-tags-only {
133
- --#{$block-class}--navigation-buffer-top: $spacing-04;
134
- }
135
-
136
131
  &::before {
137
132
  @include appearingBackground(true);
138
133
 
@@ -158,7 +153,7 @@ $duration: 1000ms;
158
153
  .#{$block-class}__breadcrumb-row--has-action-bar
159
154
  ) {
160
155
  // lifts up page title when there is no action bar
161
- min-block-size: $spacing-07;
156
+ min-block-size: $spacing-08;
162
157
  }
163
158
 
164
159
  .#{$block-class}__breadcrumb-row--container {
@@ -173,6 +168,10 @@ $duration: 1000ms;
173
168
  min-inline-size: calc(0.6 * (100% + 2 * #{$spacing-05}));
174
169
  }
175
170
 
171
+ .#{$block-class}__has-page-actions-with-title-collapsed {
172
+ max-inline-size: none;
173
+ }
174
+
176
175
  .#{$block-class}__has-page-actions-without-action-bar
177
176
  .#{$block-class}__has-page-actions-without-action-bar {
178
177
  min-inline-size: 100%;
@@ -211,6 +210,7 @@ $duration: 1000ms;
211
210
  .#{$block-class}__breadcrumb-row--next-to-tabs:not(
212
211
  .#{$block-class}__has-page-actions-without-action-bar
213
212
  )::after,
213
+ .#{$block-class}__has-page-actions-without-action-bar.#{$block-class}__has-page-actions-with-title-collapsed::after,
214
214
  .#{$block-class}__breadcrumb-row--has-action-bar::after {
215
215
  /* creates a full width box shadow without causing scroll */
216
216
  box-shadow:
@@ -615,6 +615,15 @@ $duration: 1000ms;
615
615
  display: none; /* need to figure out how to handle the tab content */
616
616
  }
617
617
 
618
+ .#{$block-class}__action-bar-column--has-page-actions {
619
+ display: block;
620
+ }
621
+
622
+ .#{$block-class}__has-page-actions-with-title-collapsed
623
+ .#{$block-class}__action-bar-column--has-page-actions {
624
+ display: block;
625
+ }
626
+
618
627
  .#{$block-class}__navigation-tabs {
619
628
  margin-inline-start: calc(-1 * #{$spacing-05});
620
629
  }