@carbon/react 1.41.2 → 1.42.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/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +2194 -1863
- package/es/components/Breadcrumb/Breadcrumb.Skeleton.d.ts +25 -0
- package/es/components/Breadcrumb/Breadcrumb.d.ts +24 -0
- package/es/components/Breadcrumb/Breadcrumb.js +1 -2
- package/es/components/Breadcrumb/BreadcrumbItem.d.ts +25 -0
- package/es/components/Breadcrumb/BreadcrumbItem.js +8 -7
- package/es/components/ComboBox/ComboBox.d.ts +7 -1
- package/es/components/ComboBox/ComboBox.js +30 -2
- package/es/components/ContentSwitcher/ContentSwitcher.d.ts +1 -1
- package/es/components/DataTable/TableBatchAction.d.ts +46 -0
- package/es/components/DataTable/TableBatchAction.js +1 -2
- package/es/components/DataTable/TableExpandRow.d.ts +2 -46
- package/es/components/DataTable/TableExpandRow.js +6 -2
- package/es/components/Dropdown/Dropdown.d.ts +1 -1
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +72 -9
- package/es/components/Notification/Notification.js +48 -6
- package/es/components/Tabs/Tabs.js +1 -2
- package/es/components/TreeView/TreeNode.js +7 -4
- package/es/components/UIShell/HeaderMenu.js +2 -2
- package/es/components/UIShell/SideNav.d.ts +1 -1
- package/es/components/UIShell/SideNavFooter.d.ts +52 -0
- package/es/components/UIShell/SideNavFooter.js +0 -1
- package/es/components/UIShell/SideNavItem.d.ts +24 -0
- package/es/components/UIShell/SideNavItem.js +2 -2
- package/es/components/UIShell/SideNavItems.d.ts +25 -0
- package/es/components/UIShell/SideNavItems.js +9 -7
- package/es/components/UIShell/SideNavMenu.js +4 -5
- package/es/components/UIShell/SideNavMenuItem.d.ts +25 -0
- package/es/components/UIShell/SideNavMenuItem.js +1 -2
- package/es/index.js +1 -1
- package/icons/index.d.ts +7 -0
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.d.ts +25 -0
- package/lib/components/Breadcrumb/Breadcrumb.d.ts +24 -0
- package/lib/components/Breadcrumb/Breadcrumb.js +1 -2
- package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +25 -0
- package/lib/components/Breadcrumb/BreadcrumbItem.js +8 -7
- package/lib/components/ComboBox/ComboBox.d.ts +7 -1
- package/lib/components/ComboBox/ComboBox.js +30 -2
- package/lib/components/ContentSwitcher/ContentSwitcher.d.ts +1 -1
- package/lib/components/DataTable/TableBatchAction.d.ts +46 -0
- package/lib/components/DataTable/TableBatchAction.js +1 -2
- package/lib/components/DataTable/TableExpandRow.d.ts +2 -46
- package/lib/components/DataTable/TableExpandRow.js +6 -2
- package/lib/components/Dropdown/Dropdown.d.ts +1 -1
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +72 -9
- package/lib/components/Notification/Notification.js +48 -6
- package/lib/components/Tabs/Tabs.js +1 -2
- package/lib/components/TreeView/TreeNode.js +7 -4
- package/lib/components/UIShell/HeaderMenu.js +2 -2
- package/lib/components/UIShell/SideNav.d.ts +1 -1
- package/lib/components/UIShell/SideNavFooter.d.ts +52 -0
- package/lib/components/UIShell/SideNavFooter.js +0 -1
- package/lib/components/UIShell/SideNavItem.d.ts +24 -0
- package/lib/components/UIShell/SideNavItem.js +2 -2
- package/lib/components/UIShell/SideNavItems.d.ts +25 -0
- package/lib/components/UIShell/SideNavItems.js +9 -7
- package/lib/components/UIShell/SideNavMenu.js +4 -5
- package/lib/components/UIShell/SideNavMenuItem.d.ts +25 -0
- package/lib/components/UIShell/SideNavMenuItem.js +1 -2
- package/lib/index.js +2 -2
- package/package.json +8 -7
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import React, { HTMLAttributes } from 'react';
|
|
8
|
+
interface SideNavMenuItemProps extends HTMLAttributes<HTMLElement> {
|
|
9
|
+
/**
|
|
10
|
+
* Specify the children to be rendered inside of the `SideNavMenuItem`
|
|
11
|
+
*/
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Provide an optional class to be applied to the containing node
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optionally specify whether the link is "active". An active link is one that
|
|
19
|
+
* has an href that is the same as the current page. Can also pass in
|
|
20
|
+
* `aria-current="page"`, as well.
|
|
21
|
+
*/
|
|
22
|
+
isActive?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const SideNavMenuItem: React.ForwardRefExoticComponent<SideNavMenuItemProps & React.RefAttributes<HTMLElement>>;
|
|
25
|
+
export default SideNavMenuItem;
|
package/lib/index.js
CHANGED
|
@@ -165,7 +165,6 @@ var ModalWrapper = require('./components/ModalWrapper/ModalWrapper.js');
|
|
|
165
165
|
var ProgressIndicator_Skeleton = require('./components/ProgressIndicator/ProgressIndicator.Skeleton.js');
|
|
166
166
|
var TextInput_Skeleton = require('./components/TextInput/TextInput.Skeleton.js');
|
|
167
167
|
var TextInput = require('./components/TextInput/TextInput.js');
|
|
168
|
-
var TreeNode = require('./components/TreeView/TreeNode.js');
|
|
169
168
|
var TreeView = require('./components/TreeView/TreeView.js');
|
|
170
169
|
var ProgressBar = require('./components/ProgressBar/ProgressBar.js');
|
|
171
170
|
var FluidComboBox = require('./components/FluidComboBox/FluidComboBox.js');
|
|
@@ -223,6 +222,7 @@ var SkeletonIcon = require('./components/SkeletonIcon/SkeletonIcon.js');
|
|
|
223
222
|
var Slider_Skeleton = require('./components/Slider/Slider.Skeleton.js');
|
|
224
223
|
var Switch = require('./components/Switch/Switch.js');
|
|
225
224
|
var IconSwitch = require('./components/Switch/IconSwitch.js');
|
|
225
|
+
var TreeNode = require('./components/TreeView/TreeNode.js');
|
|
226
226
|
var Stack = require('./components/Stack/Stack.js');
|
|
227
227
|
|
|
228
228
|
|
|
@@ -418,7 +418,6 @@ exports.ModalWrapper = ModalWrapper["default"];
|
|
|
418
418
|
exports.ProgressIndicatorSkeleton = ProgressIndicator_Skeleton["default"];
|
|
419
419
|
exports.TextInputSkeleton = TextInput_Skeleton["default"];
|
|
420
420
|
exports.TextInput = TextInput["default"];
|
|
421
|
-
exports.TreeNode = TreeNode["default"];
|
|
422
421
|
exports.TreeView = TreeView["default"];
|
|
423
422
|
exports.ProgressBar = ProgressBar["default"];
|
|
424
423
|
exports.unstable__FluidComboBox = FluidComboBox["default"];
|
|
@@ -481,4 +480,5 @@ exports.SkeletonIcon = SkeletonIcon["default"];
|
|
|
481
480
|
exports.SliderSkeleton = Slider_Skeleton["default"];
|
|
482
481
|
exports.Switch = Switch["default"];
|
|
483
482
|
exports.IconSwitch = IconSwitch["default"];
|
|
483
|
+
exports.TreeNode = TreeNode["default"];
|
|
484
484
|
exports.Stack = Stack.Stack;
|
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.
|
|
4
|
+
"version": "1.42.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"index.scss",
|
|
19
19
|
"icons/index.js",
|
|
20
20
|
"icons/index.esm.js",
|
|
21
|
+
"icons/index.d.ts",
|
|
21
22
|
"icons/package.json",
|
|
22
23
|
".playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json"
|
|
23
24
|
],
|
|
@@ -47,9 +48,9 @@
|
|
|
47
48
|
"dependencies": {
|
|
48
49
|
"@babel/runtime": "^7.18.3",
|
|
49
50
|
"@carbon/feature-flags": "^0.16.0",
|
|
50
|
-
"@carbon/icons-react": "^11.
|
|
51
|
-
"@carbon/layout": "^11.20.
|
|
52
|
-
"@carbon/styles": "^1.
|
|
51
|
+
"@carbon/icons-react": "^11.30.0",
|
|
52
|
+
"@carbon/layout": "^11.20.0",
|
|
53
|
+
"@carbon/styles": "^1.42.0",
|
|
53
54
|
"@carbon/telemetry": "0.1.0",
|
|
54
55
|
"classnames": "2.3.2",
|
|
55
56
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"@babel/preset-react": "^7.22.3",
|
|
78
79
|
"@babel/preset-typescript": "^7.21.5",
|
|
79
80
|
"@carbon/test-utils": "^10.30.0",
|
|
80
|
-
"@carbon/themes": "^11.
|
|
81
|
+
"@carbon/themes": "^11.27.0",
|
|
81
82
|
"@rollup/plugin-babel": "^6.0.0",
|
|
82
83
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
83
84
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
"storybook-readme": "^5.0.9",
|
|
125
126
|
"stream-browserify": "^3.0.0",
|
|
126
127
|
"style-loader": "^3.3.1",
|
|
127
|
-
"typescript-config-carbon": "^0.2.
|
|
128
|
+
"typescript-config-carbon": "^0.2.0",
|
|
128
129
|
"webpack": "^5.65.0",
|
|
129
130
|
"webpack-dev-server": "^4.7.4"
|
|
130
131
|
},
|
|
@@ -139,5 +140,5 @@
|
|
|
139
140
|
"**/*.scss",
|
|
140
141
|
"**/*.css"
|
|
141
142
|
],
|
|
142
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "7e1982e232895b6223b88bca246f754ecd2609ac"
|
|
143
144
|
}
|