@carbon/react 1.77.0-rc.0 → 1.78.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 (134) hide show
  1. package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +945 -858
  2. package/es/components/Accordion/AccordionItem.js +1 -1
  3. package/es/components/BadgeIndicator/index.d.ts +23 -0
  4. package/es/components/BadgeIndicator/index.js +45 -0
  5. package/es/components/Breadcrumb/Breadcrumb.d.ts +5 -0
  6. package/es/components/Breadcrumb/Breadcrumb.js +8 -2
  7. package/es/components/Button/Button.d.ts +9 -0
  8. package/es/components/Button/Button.js +13 -0
  9. package/es/components/ComboBox/ComboBox.js +13 -9
  10. package/es/components/Dropdown/Dropdown.d.ts +1 -1
  11. package/es/components/Dropdown/Dropdown.js +3 -2
  12. package/es/components/FileUploader/FileUploader.js +1 -1
  13. package/es/components/FileUploader/FileUploaderItem.js +1 -1
  14. package/es/components/IconButton/index.d.ts +7 -1
  15. package/es/components/IconButton/index.js +18 -2
  16. package/es/components/IconIndicator/index.d.ts +1 -1
  17. package/es/components/InlineLoading/InlineLoading.js +2 -5
  18. package/es/components/Menu/MenuItem.js +1 -1
  19. package/es/components/Modal/Modal.d.ts +3 -3
  20. package/es/components/Modal/Modal.js +9 -3
  21. package/es/components/Modal/next/index.d.ts +1 -5
  22. package/es/components/MultiSelect/FilterableMultiSelect.d.ts +1 -1
  23. package/es/components/MultiSelect/FilterableMultiSelect.js +11 -3
  24. package/es/components/MultiSelect/MultiSelect.js +3 -2
  25. package/es/components/MultiSelect/MultiSelectPropTypes.d.ts +5 -2
  26. package/es/components/MultiSelect/tools/sorting.js +8 -7
  27. package/es/components/Notification/Notification.js +1 -1
  28. package/es/components/NumberInput/NumberInput.js +12 -12
  29. package/es/components/OverflowMenu/OverflowMenu.d.ts +8 -20
  30. package/es/components/OverflowMenu/OverflowMenu.js +7 -9
  31. package/es/components/OverflowMenuItem/OverflowMenuItem.js +1 -1
  32. package/es/components/Pagination/Pagination.js +2 -2
  33. package/es/components/ProgressIndicator/ProgressIndicator.js +1 -1
  34. package/es/components/RadioTile/RadioTile.js +1 -1
  35. package/es/components/Select/Select.js +11 -2
  36. package/es/components/ShapeIndicator/index.d.ts +29 -0
  37. package/es/components/ShapeIndicator/index.js +92 -0
  38. package/es/components/Tabs/Tabs.d.ts +6 -4
  39. package/es/components/Tabs/Tabs.js +27 -8
  40. package/es/components/Tag/OperationalTag.d.ts +1 -36
  41. package/es/components/Tag/OperationalTag.js +7 -5
  42. package/es/components/Text/Text.d.ts +11 -9
  43. package/es/components/Text/Text.js +6 -6
  44. package/es/components/Text/TextDirection.d.ts +7 -9
  45. package/es/components/Text/TextDirection.js +5 -2
  46. package/es/components/Text/TextDirectionContext.d.ts +14 -0
  47. package/es/components/Text/TextDirectionContext.js +6 -2
  48. package/es/components/Text/createTextComponent.d.ts +5 -5
  49. package/es/components/Text/createTextComponent.js +5 -4
  50. package/es/components/Text/index.d.ts +6 -7
  51. package/es/components/Text/index.js +3 -2
  52. package/es/components/Tile/Tile.d.ts +6 -0
  53. package/es/components/Tile/Tile.js +5 -9
  54. package/es/components/Toggletip/index.d.ts +3 -2
  55. package/es/components/Tooltip/DefinitionTooltip.d.ts +4 -0
  56. package/es/components/Tooltip/DefinitionTooltip.js +7 -1
  57. package/es/components/Tooltip/Tooltip.d.ts +5 -66
  58. package/es/components/Tooltip/Tooltip.js +26 -26
  59. package/es/components/UIShell/HeaderGlobalAction.d.ts +9 -0
  60. package/es/components/UIShell/HeaderGlobalAction.js +16 -1
  61. package/es/index.d.ts +4 -1
  62. package/es/index.js +2 -1
  63. package/es/internal/FloatingMenu.d.ts +83 -0
  64. package/es/internal/FloatingMenu.js +216 -408
  65. package/es/internal/wrapFocus.js +1 -1
  66. package/lib/components/Accordion/AccordionItem.js +1 -1
  67. package/lib/components/BadgeIndicator/index.d.ts +23 -0
  68. package/lib/components/BadgeIndicator/index.js +56 -0
  69. package/lib/components/Breadcrumb/Breadcrumb.d.ts +5 -0
  70. package/lib/components/Breadcrumb/Breadcrumb.js +8 -2
  71. package/lib/components/Button/Button.d.ts +9 -0
  72. package/lib/components/Button/Button.js +13 -0
  73. package/lib/components/ComboBox/ComboBox.js +13 -9
  74. package/lib/components/Dropdown/Dropdown.d.ts +1 -1
  75. package/lib/components/Dropdown/Dropdown.js +2 -1
  76. package/lib/components/FileUploader/FileUploader.js +1 -1
  77. package/lib/components/FileUploader/FileUploaderItem.js +1 -1
  78. package/lib/components/IconButton/index.d.ts +7 -1
  79. package/lib/components/IconButton/index.js +18 -2
  80. package/lib/components/IconIndicator/index.d.ts +1 -1
  81. package/lib/components/InlineLoading/InlineLoading.js +2 -5
  82. package/lib/components/Menu/MenuItem.js +1 -1
  83. package/lib/components/Modal/Modal.d.ts +3 -3
  84. package/lib/components/Modal/Modal.js +9 -3
  85. package/lib/components/Modal/next/index.d.ts +1 -5
  86. package/lib/components/MultiSelect/FilterableMultiSelect.d.ts +1 -1
  87. package/lib/components/MultiSelect/FilterableMultiSelect.js +10 -2
  88. package/lib/components/MultiSelect/MultiSelect.js +2 -1
  89. package/lib/components/MultiSelect/MultiSelectPropTypes.d.ts +5 -2
  90. package/lib/components/MultiSelect/tools/sorting.js +8 -7
  91. package/lib/components/Notification/Notification.js +1 -1
  92. package/lib/components/NumberInput/NumberInput.js +12 -12
  93. package/lib/components/OverflowMenu/OverflowMenu.d.ts +8 -20
  94. package/lib/components/OverflowMenu/OverflowMenu.js +7 -9
  95. package/lib/components/OverflowMenuItem/OverflowMenuItem.js +1 -1
  96. package/lib/components/Pagination/Pagination.js +3 -2
  97. package/lib/components/ProgressIndicator/ProgressIndicator.js +1 -1
  98. package/lib/components/RadioTile/RadioTile.js +1 -1
  99. package/lib/components/Select/Select.js +11 -2
  100. package/lib/components/ShapeIndicator/index.d.ts +29 -0
  101. package/lib/components/ShapeIndicator/index.js +104 -0
  102. package/lib/components/Tabs/Tabs.d.ts +6 -4
  103. package/lib/components/Tabs/Tabs.js +42 -23
  104. package/lib/components/Tag/OperationalTag.d.ts +1 -36
  105. package/lib/components/Tag/OperationalTag.js +6 -4
  106. package/lib/components/Text/Text.d.ts +11 -9
  107. package/lib/components/Text/Text.js +5 -5
  108. package/lib/components/Text/TextDirection.d.ts +7 -9
  109. package/lib/components/Text/TextDirection.js +5 -2
  110. package/lib/components/Text/TextDirectionContext.d.ts +14 -0
  111. package/lib/components/Text/TextDirectionContext.js +6 -2
  112. package/lib/components/Text/createTextComponent.d.ts +5 -5
  113. package/lib/components/Text/createTextComponent.js +5 -4
  114. package/lib/components/Text/index.d.ts +6 -7
  115. package/lib/components/Text/index.js +4 -3
  116. package/lib/components/Tile/Tile.d.ts +6 -0
  117. package/lib/components/Tile/Tile.js +5 -9
  118. package/lib/components/Toggletip/index.d.ts +3 -2
  119. package/lib/components/Tooltip/DefinitionTooltip.d.ts +4 -0
  120. package/lib/components/Tooltip/DefinitionTooltip.js +7 -1
  121. package/lib/components/Tooltip/Tooltip.d.ts +5 -66
  122. package/lib/components/Tooltip/Tooltip.js +26 -26
  123. package/lib/components/UIShell/HeaderGlobalAction.d.ts +9 -0
  124. package/lib/components/UIShell/HeaderGlobalAction.js +16 -1
  125. package/lib/index.d.ts +4 -1
  126. package/lib/index.js +42 -40
  127. package/lib/internal/FloatingMenu.d.ts +83 -0
  128. package/lib/internal/FloatingMenu.js +216 -409
  129. package/lib/internal/wrapFocus.js +1 -1
  130. package/package.json +7 -7
  131. package/scss/components/badge-indicator/_badge-indicator.scss +9 -0
  132. package/scss/components/badge-indicator/_index.scss +9 -0
  133. package/es/tools/array.js +0 -29
  134. package/lib/tools/array.js +0 -33
@@ -71,7 +71,7 @@ function wrapFocus(_ref) {
71
71
  * @param {object} options The options.
72
72
  * @param {Node|null} options.containerNode
73
73
  * @param {EventTarget} options.currentActiveNode The DOM node that has focus.
74
- * @param {KeyboardEvent} options.event The DOM event
74
+ * @param {React.KeyboardEvent} options.event The DOM event
75
75
  */
76
76
  function wrapFocusWithoutSentinels(_ref2) {
77
77
  let {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/react",
3
3
  "description": "React components for the Carbon Design System",
4
- "version": "1.77.0-rc.0",
4
+ "version": "1.78.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -52,9 +52,9 @@
52
52
  "dependencies": {
53
53
  "@babel/runtime": "^7.24.7",
54
54
  "@carbon/feature-flags": "^0.24.0",
55
- "@carbon/icons-react": "^11.56.0-rc.0",
56
- "@carbon/layout": "^11.30.0-rc.0",
57
- "@carbon/styles": "^1.76.0-rc.0",
55
+ "@carbon/icons-react": "^11.57.0-rc.0",
56
+ "@carbon/layout": "^11.30.0",
57
+ "@carbon/styles": "^1.77.0-rc.0",
58
58
  "@floating-ui/react": "^0.27.4",
59
59
  "@ibm/telemetry-js": "^1.5.0",
60
60
  "classnames": "2.5.1",
@@ -79,7 +79,7 @@
79
79
  "@babel/preset-react": "^7.24.7",
80
80
  "@babel/preset-typescript": "^7.24.7",
81
81
  "@carbon/test-utils": "^10.35.0",
82
- "@carbon/themes": "^11.47.0-rc.0",
82
+ "@carbon/themes": "^11.48.0-rc.0",
83
83
  "@figma/code-connect": "^1.2.4",
84
84
  "@rollup/plugin-babel": "^6.0.0",
85
85
  "@rollup/plugin-commonjs": "^28.0.0",
@@ -131,7 +131,7 @@
131
131
  "storybook-addon-accessibility-checker": "^3.1.61-rc.3",
132
132
  "stream-browserify": "^3.0.0",
133
133
  "style-loader": "^4.0.0",
134
- "typescript-config-carbon": "^0.5.0-rc.0",
134
+ "typescript-config-carbon": "^0.5.0",
135
135
  "webpack": "^5.65.0",
136
136
  "webpack-dev-server": "^5.0.0"
137
137
  },
@@ -146,5 +146,5 @@
146
146
  "**/*.scss",
147
147
  "**/*.css"
148
148
  ],
149
- "gitHead": "faf649817d3be3e8e258aba866e14e9378b5c68e"
149
+ "gitHead": "9134345acdba15a2406b4a7df9781bccf0a32ab6"
150
150
  }
@@ -0,0 +1,9 @@
1
+ // Code generated by @carbon/react. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2023
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+ //
8
+
9
+ @forward '@carbon/styles/scss/components/badge-indicator/badge-indicator';
@@ -0,0 +1,9 @@
1
+ // Code generated by @carbon/react. DO NOT EDIT.
2
+ //
3
+ // Copyright IBM Corp. 2018, 2023
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+ //
8
+
9
+ @forward '@carbon/styles/scss/components/badge-indicator';
package/es/tools/array.js DELETED
@@ -1,29 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2016, 2023
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
- /**
9
- * Shallow compare two arrays for equality
10
- * @param {Array} arr1 the first array
11
- * @param {Array} arr2 the second array
12
- * @returns {boolean} true if both arrays have the same contents, otherwise false
13
- */
14
- function equals(arr1, arr2) {
15
- if (!Array.isArray(arr1) || !Array.isArray(arr2) || arr1.length !== arr2.length) {
16
- return false;
17
- }
18
- if (arr1 === arr2) {
19
- return true;
20
- }
21
- for (let i = 0; i < arr1.length; i++) {
22
- if (arr1[i] !== arr2[i]) {
23
- return false;
24
- }
25
- }
26
- return true;
27
- }
28
-
29
- export { equals };
@@ -1,33 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2016, 2023
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
- 'use strict';
9
-
10
- Object.defineProperty(exports, '__esModule', { value: true });
11
-
12
- /**
13
- * Shallow compare two arrays for equality
14
- * @param {Array} arr1 the first array
15
- * @param {Array} arr2 the second array
16
- * @returns {boolean} true if both arrays have the same contents, otherwise false
17
- */
18
- function equals(arr1, arr2) {
19
- if (!Array.isArray(arr1) || !Array.isArray(arr2) || arr1.length !== arr2.length) {
20
- return false;
21
- }
22
- if (arr1 === arr2) {
23
- return true;
24
- }
25
- for (let i = 0; i < arr1.length; i++) {
26
- if (arr1[i] !== arr2[i]) {
27
- return false;
28
- }
29
- }
30
- return true;
31
- }
32
-
33
- exports.equals = equals;