@carbon/react 1.73.0 → 1.74.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.
- package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +915 -903
- package/es/components/Breadcrumb/BreadcrumbItem.js +1 -0
- package/es/components/ComposedModal/ComposedModal.js +8 -1
- package/es/components/IconButton/index.d.ts +4 -0
- package/es/components/IconButton/index.js +4 -0
- package/es/components/IconIndicator/index.d.ts +29 -0
- package/es/components/IconIndicator/index.js +72 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/lib/components/Breadcrumb/BreadcrumbItem.js +1 -0
- package/lib/components/ComposedModal/ComposedModal.js +8 -1
- package/lib/components/IconButton/index.d.ts +4 -0
- package/lib/components/IconButton/index.js +4 -0
- package/lib/components/IconIndicator/index.d.ts +29 -0
- package/lib/components/IconIndicator/index.js +84 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +40 -38
- package/package.json +17 -16
- package/scss/components/icon-indicator/_icon-indicator.scss +9 -0
- package/scss/components/icon-indicator/_index.scss +9 -0
|
@@ -56,6 +56,7 @@ const BreadcrumbItem = /*#__PURE__*/React__default.forwardRef(function Breadcrum
|
|
|
56
56
|
href: href,
|
|
57
57
|
"aria-current": ariaCurrent || isCurrentPage
|
|
58
58
|
}, children) : /*#__PURE__*/React__default.createElement(Text, {
|
|
59
|
+
"aria-current": ariaCurrent || isCurrentPage,
|
|
59
60
|
className: `${prefix}--link`
|
|
60
61
|
}, children));
|
|
61
62
|
}
|
|
@@ -119,6 +119,7 @@ const ComposedModal = /*#__PURE__*/React__default.forwardRef(function ComposedMo
|
|
|
119
119
|
const button = useRef(null);
|
|
120
120
|
const startSentinel = useRef(null);
|
|
121
121
|
const endSentinel = useRef(null);
|
|
122
|
+
const onMouseDownTarget = useRef(null);
|
|
122
123
|
const focusTrapWithoutSentinels = useFeatureFlag('enable-experimental-focus-wrap-without-sentinels');
|
|
123
124
|
|
|
124
125
|
// Keep track of modal open/close state
|
|
@@ -151,10 +152,15 @@ const ComposedModal = /*#__PURE__*/React__default.forwardRef(function ComposedMo
|
|
|
151
152
|
}
|
|
152
153
|
onKeyDown?.(event);
|
|
153
154
|
}
|
|
155
|
+
function handleOnMouseDown(evt) {
|
|
156
|
+
const target = evt.target;
|
|
157
|
+
onMouseDownTarget.current = target;
|
|
158
|
+
}
|
|
154
159
|
function handleOnClick(evt) {
|
|
155
160
|
const target = evt.target;
|
|
161
|
+
const mouseDownTarget = onMouseDownTarget.current;
|
|
156
162
|
evt.stopPropagation();
|
|
157
|
-
if (!preventCloseOnClickOutside && !elementOrParentIsFloatingMenu(target, selectorsFloatingMenus) && innerModal.current && !innerModal.current.contains(target)) {
|
|
163
|
+
if (!preventCloseOnClickOutside && !elementOrParentIsFloatingMenu(target, selectorsFloatingMenus) && innerModal.current && !innerModal.current.contains(target) && !innerModal.current.contains(mouseDownTarget)) {
|
|
158
164
|
closeModal(evt);
|
|
159
165
|
}
|
|
160
166
|
}
|
|
@@ -265,6 +271,7 @@ const ComposedModal = /*#__PURE__*/React__default.forwardRef(function ComposedMo
|
|
|
265
271
|
"aria-hidden": !open,
|
|
266
272
|
onBlur: !focusTrapWithoutSentinels ? handleBlur : () => {},
|
|
267
273
|
onClick: composeEventHandlers([rest?.onClick, handleOnClick]),
|
|
274
|
+
onMouseDown: composeEventHandlers([rest?.onMouseDown, handleOnMouseDown]),
|
|
268
275
|
onKeyDown: handleKeyDown,
|
|
269
276
|
className: modalClass
|
|
270
277
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -20,6 +20,10 @@ interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
20
20
|
* **Experimental**: Will attempt to automatically align the tooltip
|
|
21
21
|
*/
|
|
22
22
|
autoAlign?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Optionally specify an href for your IconButton to become an `<a>` element
|
|
25
|
+
*/
|
|
26
|
+
href?: string;
|
|
23
27
|
/**
|
|
24
28
|
* Provide an icon or asset to be rendered inside of the IconButton
|
|
25
29
|
*/
|
|
@@ -104,6 +104,10 @@ IconButton.propTypes = {
|
|
|
104
104
|
* **Experimental**: Will attempt to automatically align the tooltip
|
|
105
105
|
*/
|
|
106
106
|
autoAlign: PropTypes.bool,
|
|
107
|
+
/**
|
|
108
|
+
* Optionally specify an href for your IconButton to become an `<a>` element
|
|
109
|
+
*/
|
|
110
|
+
href: PropTypes.string,
|
|
107
111
|
/**
|
|
108
112
|
* Provide an icon or asset to be rendered inside of the IconButton
|
|
109
113
|
*/
|
|
@@ -0,0 +1,29 @@
|
|
|
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 from 'react';
|
|
8
|
+
export declare const IconIndicatorKinds: string[];
|
|
9
|
+
export type IconIndicatorKind = (typeof IconIndicatorKinds)[number];
|
|
10
|
+
interface IconIndicatorProps {
|
|
11
|
+
/**
|
|
12
|
+
* Specify an optional className to add.
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Specify the kind of icon to be used
|
|
17
|
+
*/
|
|
18
|
+
kind: IconIndicatorKind;
|
|
19
|
+
/**
|
|
20
|
+
* Label next to the icon
|
|
21
|
+
*/
|
|
22
|
+
label: string;
|
|
23
|
+
/**
|
|
24
|
+
* Specify the size of the Icon Indicator. Defaults to 16.
|
|
25
|
+
*/
|
|
26
|
+
size?: 16 | 20;
|
|
27
|
+
}
|
|
28
|
+
export declare const IconIndicator: React.ForwardRefExoticComponent<IconIndicatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export default IconIndicator;
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import React__default from 'react';
|
|
10
|
+
import cx from 'classnames';
|
|
11
|
+
import { usePrefix } from '../../internal/usePrefix.js';
|
|
12
|
+
import { ErrorFilled, WarningAltInvertedFilled, WarningAltFilled, UndefinedFilled, CheckmarkFilled, CheckmarkOutline, InProgress, Incomplete, CircleDash, PendingFilled, UnknownFilled, WarningSquareFilled } from '@carbon/icons-react';
|
|
13
|
+
|
|
14
|
+
const IconIndicatorKinds = ['failed', 'caution-major', 'caution-minor', 'undefined', 'succeeded', 'normal', 'in-progress', 'incomplete', 'not-started', 'pending', 'unknown', 'informative'];
|
|
15
|
+
const iconTypes = {
|
|
16
|
+
failed: ErrorFilled,
|
|
17
|
+
['caution-major']: WarningAltInvertedFilled,
|
|
18
|
+
['caution-minor']: WarningAltFilled,
|
|
19
|
+
undefined: UndefinedFilled,
|
|
20
|
+
succeeded: CheckmarkFilled,
|
|
21
|
+
normal: CheckmarkOutline,
|
|
22
|
+
['in-progress']: InProgress,
|
|
23
|
+
incomplete: Incomplete,
|
|
24
|
+
['not-started']: CircleDash,
|
|
25
|
+
pending: PendingFilled,
|
|
26
|
+
unknown: UnknownFilled,
|
|
27
|
+
informative: WarningSquareFilled
|
|
28
|
+
};
|
|
29
|
+
const IconIndicator = /*#__PURE__*/React__default.forwardRef(function IconIndicatorContent(_ref, ref) {
|
|
30
|
+
let {
|
|
31
|
+
className: customClassName,
|
|
32
|
+
kind,
|
|
33
|
+
label,
|
|
34
|
+
size = 16,
|
|
35
|
+
...rest
|
|
36
|
+
} = _ref;
|
|
37
|
+
const prefix = usePrefix();
|
|
38
|
+
const classNames = cx(`${prefix}--icon-indicator`, customClassName, {
|
|
39
|
+
[`${prefix}--icon-indicator--20`]: size == 20
|
|
40
|
+
});
|
|
41
|
+
const IconForKind = iconTypes[kind];
|
|
42
|
+
if (!IconForKind) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
46
|
+
className: classNames,
|
|
47
|
+
ref: ref
|
|
48
|
+
}, /*#__PURE__*/React__default.createElement(IconForKind, {
|
|
49
|
+
size: size,
|
|
50
|
+
className: `${prefix}--icon-indicator--${kind}`
|
|
51
|
+
}), label);
|
|
52
|
+
});
|
|
53
|
+
IconIndicator.propTypes = {
|
|
54
|
+
/**
|
|
55
|
+
* Specify an optional className to add.
|
|
56
|
+
*/
|
|
57
|
+
className: PropTypes.string,
|
|
58
|
+
/**
|
|
59
|
+
* Specify the kind of the Icon Indicator
|
|
60
|
+
*/
|
|
61
|
+
kind: PropTypes.oneOf(IconIndicatorKinds).isRequired,
|
|
62
|
+
/**
|
|
63
|
+
* Label next to the icon.
|
|
64
|
+
*/
|
|
65
|
+
label: PropTypes.string.isRequired,
|
|
66
|
+
/**
|
|
67
|
+
* Specify the size of the Icon Indicator. Defaults to 16.
|
|
68
|
+
*/
|
|
69
|
+
size: PropTypes.oneOf([16, 20])
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export { IconIndicator, IconIndicatorKinds, IconIndicator as default };
|
package/es/index.d.ts
CHANGED
|
@@ -128,3 +128,4 @@ export * from './components/Tooltip/DefinitionTooltip';
|
|
|
128
128
|
export * from './components/Theme';
|
|
129
129
|
export * from './internal/usePrefix';
|
|
130
130
|
export { useIdPrefix } from './internal/useIdPrefix';
|
|
131
|
+
export { IconIndicator as unstable__IconIndicator } from './components/IconIndicator';
|
package/es/index.js
CHANGED
|
@@ -201,6 +201,7 @@ import './components/Text/index.js';
|
|
|
201
201
|
export { GlobalTheme, Theme, ThemeContext, usePrefersDarkScheme, useTheme } from './components/Theme/index.js';
|
|
202
202
|
export { PrefixContext, usePrefix } from './internal/usePrefix.js';
|
|
203
203
|
export { useIdPrefix } from './internal/useIdPrefix.js';
|
|
204
|
+
export { IconIndicator as unstable__IconIndicator } from './components/IconIndicator/index.js';
|
|
204
205
|
export { default as unstable_PageSelector } from './components/Pagination/experimental/PageSelector.js';
|
|
205
206
|
export { default as unstable_Pagination } from './components/Pagination/experimental/Pagination.js';
|
|
206
207
|
export { default as ContainedListItem } from './components/ContainedList/ContainedListItem/ContainedListItem.js';
|
|
@@ -66,6 +66,7 @@ const BreadcrumbItem = /*#__PURE__*/React__default["default"].forwardRef(functio
|
|
|
66
66
|
href: href,
|
|
67
67
|
"aria-current": ariaCurrent || isCurrentPage
|
|
68
68
|
}, children) : /*#__PURE__*/React__default["default"].createElement(Text.Text, {
|
|
69
|
+
"aria-current": ariaCurrent || isCurrentPage,
|
|
69
70
|
className: `${prefix}--link`
|
|
70
71
|
}, children));
|
|
71
72
|
}
|
|
@@ -129,6 +129,7 @@ const ComposedModal = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
129
129
|
const button = React.useRef(null);
|
|
130
130
|
const startSentinel = React.useRef(null);
|
|
131
131
|
const endSentinel = React.useRef(null);
|
|
132
|
+
const onMouseDownTarget = React.useRef(null);
|
|
132
133
|
const focusTrapWithoutSentinels = index$1.useFeatureFlag('enable-experimental-focus-wrap-without-sentinels');
|
|
133
134
|
|
|
134
135
|
// Keep track of modal open/close state
|
|
@@ -161,10 +162,15 @@ const ComposedModal = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
161
162
|
}
|
|
162
163
|
onKeyDown?.(event);
|
|
163
164
|
}
|
|
165
|
+
function handleOnMouseDown(evt) {
|
|
166
|
+
const target = evt.target;
|
|
167
|
+
onMouseDownTarget.current = target;
|
|
168
|
+
}
|
|
164
169
|
function handleOnClick(evt) {
|
|
165
170
|
const target = evt.target;
|
|
171
|
+
const mouseDownTarget = onMouseDownTarget.current;
|
|
166
172
|
evt.stopPropagation();
|
|
167
|
-
if (!preventCloseOnClickOutside && !wrapFocus.elementOrParentIsFloatingMenu(target, selectorsFloatingMenus) && innerModal.current && !innerModal.current.contains(target)) {
|
|
173
|
+
if (!preventCloseOnClickOutside && !wrapFocus.elementOrParentIsFloatingMenu(target, selectorsFloatingMenus) && innerModal.current && !innerModal.current.contains(target) && !innerModal.current.contains(mouseDownTarget)) {
|
|
168
174
|
closeModal(evt);
|
|
169
175
|
}
|
|
170
176
|
}
|
|
@@ -275,6 +281,7 @@ const ComposedModal = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
275
281
|
"aria-hidden": !open,
|
|
276
282
|
onBlur: !focusTrapWithoutSentinels ? handleBlur : () => {},
|
|
277
283
|
onClick: events.composeEventHandlers([rest?.onClick, handleOnClick]),
|
|
284
|
+
onMouseDown: events.composeEventHandlers([rest?.onMouseDown, handleOnMouseDown]),
|
|
278
285
|
onKeyDown: handleKeyDown,
|
|
279
286
|
className: modalClass
|
|
280
287
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -20,6 +20,10 @@ interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
20
20
|
* **Experimental**: Will attempt to automatically align the tooltip
|
|
21
21
|
*/
|
|
22
22
|
autoAlign?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Optionally specify an href for your IconButton to become an `<a>` element
|
|
25
|
+
*/
|
|
26
|
+
href?: string;
|
|
23
27
|
/**
|
|
24
28
|
* Provide an icon or asset to be rendered inside of the IconButton
|
|
25
29
|
*/
|
|
@@ -114,6 +114,10 @@ IconButton.propTypes = {
|
|
|
114
114
|
* **Experimental**: Will attempt to automatically align the tooltip
|
|
115
115
|
*/
|
|
116
116
|
autoAlign: PropTypes__default["default"].bool,
|
|
117
|
+
/**
|
|
118
|
+
* Optionally specify an href for your IconButton to become an `<a>` element
|
|
119
|
+
*/
|
|
120
|
+
href: PropTypes__default["default"].string,
|
|
117
121
|
/**
|
|
118
122
|
* Provide an icon or asset to be rendered inside of the IconButton
|
|
119
123
|
*/
|
|
@@ -0,0 +1,29 @@
|
|
|
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 from 'react';
|
|
8
|
+
export declare const IconIndicatorKinds: string[];
|
|
9
|
+
export type IconIndicatorKind = (typeof IconIndicatorKinds)[number];
|
|
10
|
+
interface IconIndicatorProps {
|
|
11
|
+
/**
|
|
12
|
+
* Specify an optional className to add.
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Specify the kind of icon to be used
|
|
17
|
+
*/
|
|
18
|
+
kind: IconIndicatorKind;
|
|
19
|
+
/**
|
|
20
|
+
* Label next to the icon
|
|
21
|
+
*/
|
|
22
|
+
label: string;
|
|
23
|
+
/**
|
|
24
|
+
* Specify the size of the Icon Indicator. Defaults to 16.
|
|
25
|
+
*/
|
|
26
|
+
size?: 16 | 20;
|
|
27
|
+
}
|
|
28
|
+
export declare const IconIndicator: React.ForwardRefExoticComponent<IconIndicatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export default IconIndicator;
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
var PropTypes = require('prop-types');
|
|
13
|
+
var React = require('react');
|
|
14
|
+
var cx = require('classnames');
|
|
15
|
+
var usePrefix = require('../../internal/usePrefix.js');
|
|
16
|
+
var iconsReact = require('@carbon/icons-react');
|
|
17
|
+
|
|
18
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
+
|
|
20
|
+
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
21
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
23
|
+
|
|
24
|
+
const IconIndicatorKinds = ['failed', 'caution-major', 'caution-minor', 'undefined', 'succeeded', 'normal', 'in-progress', 'incomplete', 'not-started', 'pending', 'unknown', 'informative'];
|
|
25
|
+
const iconTypes = {
|
|
26
|
+
failed: iconsReact.ErrorFilled,
|
|
27
|
+
['caution-major']: iconsReact.WarningAltInvertedFilled,
|
|
28
|
+
['caution-minor']: iconsReact.WarningAltFilled,
|
|
29
|
+
undefined: iconsReact.UndefinedFilled,
|
|
30
|
+
succeeded: iconsReact.CheckmarkFilled,
|
|
31
|
+
normal: iconsReact.CheckmarkOutline,
|
|
32
|
+
['in-progress']: iconsReact.InProgress,
|
|
33
|
+
incomplete: iconsReact.Incomplete,
|
|
34
|
+
['not-started']: iconsReact.CircleDash,
|
|
35
|
+
pending: iconsReact.PendingFilled,
|
|
36
|
+
unknown: iconsReact.UnknownFilled,
|
|
37
|
+
informative: iconsReact.WarningSquareFilled
|
|
38
|
+
};
|
|
39
|
+
const IconIndicator = /*#__PURE__*/React__default["default"].forwardRef(function IconIndicatorContent(_ref, ref) {
|
|
40
|
+
let {
|
|
41
|
+
className: customClassName,
|
|
42
|
+
kind,
|
|
43
|
+
label,
|
|
44
|
+
size = 16,
|
|
45
|
+
...rest
|
|
46
|
+
} = _ref;
|
|
47
|
+
const prefix = usePrefix.usePrefix();
|
|
48
|
+
const classNames = cx__default["default"](`${prefix}--icon-indicator`, customClassName, {
|
|
49
|
+
[`${prefix}--icon-indicator--20`]: size == 20
|
|
50
|
+
});
|
|
51
|
+
const IconForKind = iconTypes[kind];
|
|
52
|
+
if (!IconForKind) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
56
|
+
className: classNames,
|
|
57
|
+
ref: ref
|
|
58
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconForKind, {
|
|
59
|
+
size: size,
|
|
60
|
+
className: `${prefix}--icon-indicator--${kind}`
|
|
61
|
+
}), label);
|
|
62
|
+
});
|
|
63
|
+
IconIndicator.propTypes = {
|
|
64
|
+
/**
|
|
65
|
+
* Specify an optional className to add.
|
|
66
|
+
*/
|
|
67
|
+
className: PropTypes__default["default"].string,
|
|
68
|
+
/**
|
|
69
|
+
* Specify the kind of the Icon Indicator
|
|
70
|
+
*/
|
|
71
|
+
kind: PropTypes__default["default"].oneOf(IconIndicatorKinds).isRequired,
|
|
72
|
+
/**
|
|
73
|
+
* Label next to the icon.
|
|
74
|
+
*/
|
|
75
|
+
label: PropTypes__default["default"].string.isRequired,
|
|
76
|
+
/**
|
|
77
|
+
* Specify the size of the Icon Indicator. Defaults to 16.
|
|
78
|
+
*/
|
|
79
|
+
size: PropTypes__default["default"].oneOf([16, 20])
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
exports.IconIndicator = IconIndicator;
|
|
83
|
+
exports.IconIndicatorKinds = IconIndicatorKinds;
|
|
84
|
+
exports["default"] = IconIndicator;
|
package/lib/index.d.ts
CHANGED
|
@@ -128,3 +128,4 @@ export * from './components/Tooltip/DefinitionTooltip';
|
|
|
128
128
|
export * from './components/Theme';
|
|
129
129
|
export * from './internal/usePrefix';
|
|
130
130
|
export { useIdPrefix } from './internal/useIdPrefix';
|
|
131
|
+
export { IconIndicator as unstable__IconIndicator } from './components/IconIndicator';
|
package/lib/index.js
CHANGED
|
@@ -23,16 +23,16 @@ var ButtonSet = require('./components/ButtonSet/ButtonSet.js');
|
|
|
23
23
|
var Checkbox = require('./components/Checkbox/Checkbox.js');
|
|
24
24
|
var Checkbox_Skeleton = require('./components/Checkbox/Checkbox.Skeleton.js');
|
|
25
25
|
var CheckboxGroup = require('./components/CheckboxGroup/CheckboxGroup.js');
|
|
26
|
-
var index$
|
|
26
|
+
var index$5 = require('./components/ClassPrefix/index.js');
|
|
27
27
|
var CodeSnippet = require('./components/CodeSnippet/CodeSnippet.js');
|
|
28
28
|
var CodeSnippet_Skeleton = require('./components/CodeSnippet/CodeSnippet.Skeleton.js');
|
|
29
29
|
var ComboBox = require('./components/ComboBox/ComboBox.js');
|
|
30
|
-
var index$
|
|
30
|
+
var index$6 = require('./components/ComboButton/index.js');
|
|
31
31
|
var ComposedModal = require('./components/ComposedModal/ComposedModal.js');
|
|
32
32
|
var ModalHeader = require('./components/ComposedModal/ModalHeader.js');
|
|
33
33
|
var ModalFooter = require('./components/ComposedModal/ModalFooter.js');
|
|
34
34
|
require('./components/ContainedList/index.js');
|
|
35
|
-
var index$
|
|
35
|
+
var index$7 = require('./components/ContentSwitcher/index.js');
|
|
36
36
|
var useContextMenu = require('./components/ContextMenu/useContextMenu.js');
|
|
37
37
|
var Copy = require('./components/Copy/Copy.js');
|
|
38
38
|
var CopyButton = require('./components/CopyButton/CopyButton.js');
|
|
@@ -66,14 +66,14 @@ var Column = require('./components/Grid/Column.js');
|
|
|
66
66
|
var ColumnHang = require('./components/Grid/ColumnHang.js');
|
|
67
67
|
var GridContext = require('./components/Grid/GridContext.js');
|
|
68
68
|
var Icon_Skeleton = require('./components/Icon/Icon.Skeleton.js');
|
|
69
|
-
var index$
|
|
69
|
+
var index$8 = require('./components/IdPrefix/index.js');
|
|
70
70
|
var InlineLoading = require('./components/InlineLoading/InlineLoading.js');
|
|
71
71
|
var Link = require('./components/Link/Link.js');
|
|
72
72
|
var ListItem = require('./components/ListItem/ListItem.js');
|
|
73
73
|
var Loading = require('./components/Loading/Loading.js');
|
|
74
74
|
var Menu = require('./components/Menu/Menu.js');
|
|
75
75
|
var MenuItem = require('./components/Menu/MenuItem.js');
|
|
76
|
-
var index$
|
|
76
|
+
var index$9 = require('./components/MenuButton/index.js');
|
|
77
77
|
var Modal = require('./components/Modal/Modal.js');
|
|
78
78
|
var ModalWrapper = require('./components/ModalWrapper/ModalWrapper.js');
|
|
79
79
|
require('./components/MultiSelect/index.js');
|
|
@@ -81,7 +81,7 @@ var Notification = require('./components/Notification/Notification.js');
|
|
|
81
81
|
var NumberInput_Skeleton = require('./components/NumberInput/NumberInput.Skeleton.js');
|
|
82
82
|
var NumberInput = require('./components/NumberInput/NumberInput.js');
|
|
83
83
|
var OrderedList = require('./components/OrderedList/OrderedList.js');
|
|
84
|
-
var index$
|
|
84
|
+
var index$a = require('./components/OverflowMenu/index.js');
|
|
85
85
|
var OverflowMenuItem = require('./components/OverflowMenuItem/OverflowMenuItem.js');
|
|
86
86
|
var Pagination$1 = require('./components/Pagination/Pagination.js');
|
|
87
87
|
var Pagination_Skeleton = require('./components/Pagination/Pagination.Skeleton.js');
|
|
@@ -105,7 +105,7 @@ var SelectItemGroup = require('./components/SelectItemGroup/SelectItemGroup.js')
|
|
|
105
105
|
var SkeletonIcon = require('./components/SkeletonIcon/SkeletonIcon.js');
|
|
106
106
|
var SkeletonPlaceholder = require('./components/SkeletonPlaceholder/SkeletonPlaceholder.js');
|
|
107
107
|
var SkeletonText = require('./components/SkeletonText/SkeletonText.js');
|
|
108
|
-
var index$
|
|
108
|
+
var index$b = require('./components/Slider/index.js');
|
|
109
109
|
var HStack = require('./components/Stack/HStack.js');
|
|
110
110
|
var VStack = require('./components/Stack/VStack.js');
|
|
111
111
|
var Stack = require('./components/Stack/Stack.js');
|
|
@@ -131,7 +131,7 @@ var TimePickerSelect = require('./components/TimePickerSelect/TimePickerSelect.j
|
|
|
131
131
|
var Toggle = require('./components/Toggle/Toggle.js');
|
|
132
132
|
var Toggle_Skeleton = require('./components/Toggle/Toggle.Skeleton.js');
|
|
133
133
|
var ToggleSmall_Skeleton = require('./components/ToggleSmall/ToggleSmall.Skeleton.js');
|
|
134
|
-
var index$
|
|
134
|
+
var index$c = require('./components/Toggletip/index.js');
|
|
135
135
|
var TreeNode = require('./components/TreeView/TreeNode.js');
|
|
136
136
|
var TreeView = require('./components/TreeView/TreeView.js');
|
|
137
137
|
var Content = require('./components/UIShell/Content.js');
|
|
@@ -186,12 +186,12 @@ var FluidTextInput_Skeleton = require('./components/FluidTextInput/FluidTextInpu
|
|
|
186
186
|
var FluidTimePicker = require('./components/FluidTimePicker/FluidTimePicker.js');
|
|
187
187
|
var FluidTimePicker_Skeleton = require('./components/FluidTimePicker/FluidTimePicker.Skeleton.js');
|
|
188
188
|
var FluidTimePickerSelect = require('./components/FluidTimePickerSelect/FluidTimePickerSelect.js');
|
|
189
|
-
var index$
|
|
190
|
-
var index$
|
|
191
|
-
var index$
|
|
189
|
+
var index$d = require('./components/Heading/index.js');
|
|
190
|
+
var index$e = require('./components/IconButton/index.js');
|
|
191
|
+
var index$f = require('./components/Layer/index.js');
|
|
192
192
|
var index$1 = require('./components/Layout/index.js');
|
|
193
193
|
var index$2 = require('./components/OverflowMenuV2/index.js');
|
|
194
|
-
var index$
|
|
194
|
+
var index$g = require('./components/Popover/index.js');
|
|
195
195
|
var ProgressBar = require('./components/ProgressBar/ProgressBar.js');
|
|
196
196
|
var index$3 = require('./components/AILabel/index.js');
|
|
197
197
|
var ChatButton = require('./components/ChatButton/ChatButton.js');
|
|
@@ -202,9 +202,10 @@ var AISkeletonText = require('./components/AISkeleton/AISkeletonText.js');
|
|
|
202
202
|
var DefinitionTooltip = require('./components/Tooltip/DefinitionTooltip.js');
|
|
203
203
|
var Tooltip = require('./components/Tooltip/Tooltip.js');
|
|
204
204
|
require('./components/Text/index.js');
|
|
205
|
-
var index$
|
|
205
|
+
var index$h = require('./components/Theme/index.js');
|
|
206
206
|
var usePrefix = require('./internal/usePrefix.js');
|
|
207
207
|
var useIdPrefix = require('./internal/useIdPrefix.js');
|
|
208
|
+
var index$4 = require('./components/IconIndicator/index.js');
|
|
208
209
|
var PageSelector = require('./components/Pagination/experimental/PageSelector.js');
|
|
209
210
|
var Pagination = require('./components/Pagination/experimental/Pagination.js');
|
|
210
211
|
var ContainedListItem = require('./components/ContainedList/ContainedListItem/ContainedListItem.js');
|
|
@@ -261,16 +262,16 @@ exports.ButtonSet = ButtonSet["default"];
|
|
|
261
262
|
exports.Checkbox = Checkbox["default"];
|
|
262
263
|
exports.CheckboxSkeleton = Checkbox_Skeleton["default"];
|
|
263
264
|
exports.CheckboxGroup = CheckboxGroup["default"];
|
|
264
|
-
exports.ClassPrefix = index$
|
|
265
|
+
exports.ClassPrefix = index$5.ClassPrefix;
|
|
265
266
|
exports.CodeSnippet = CodeSnippet["default"];
|
|
266
267
|
exports.CodeSnippetSkeleton = CodeSnippet_Skeleton["default"];
|
|
267
268
|
exports.ComboBox = ComboBox["default"];
|
|
268
|
-
exports.ComboButton = index$
|
|
269
|
+
exports.ComboButton = index$6.ComboButton;
|
|
269
270
|
exports.ComposedModal = ComposedModal["default"];
|
|
270
271
|
exports.ModalBody = ComposedModal.ModalBody;
|
|
271
272
|
exports.ModalHeader = ModalHeader.ModalHeader;
|
|
272
273
|
exports.ModalFooter = ModalFooter.ModalFooter;
|
|
273
|
-
exports.ContentSwitcher = index$
|
|
274
|
+
exports.ContentSwitcher = index$7["default"];
|
|
274
275
|
exports.useContextMenu = useContextMenu["default"];
|
|
275
276
|
exports.Copy = Copy["default"];
|
|
276
277
|
exports.CopyButton = CopyButton["default"];
|
|
@@ -303,7 +304,7 @@ exports.Column = Column["default"];
|
|
|
303
304
|
exports.ColumnHang = ColumnHang.ColumnHang;
|
|
304
305
|
exports.GridSettings = GridContext.GridSettings;
|
|
305
306
|
exports.IconSkeleton = Icon_Skeleton["default"];
|
|
306
|
-
exports.IdPrefix = index$
|
|
307
|
+
exports.IdPrefix = index$8.IdPrefix;
|
|
307
308
|
exports.InlineLoading = InlineLoading["default"];
|
|
308
309
|
exports.Link = Link["default"];
|
|
309
310
|
exports.ListItem = ListItem["default"];
|
|
@@ -314,7 +315,7 @@ exports.MenuItemDivider = MenuItem.MenuItemDivider;
|
|
|
314
315
|
exports.MenuItemGroup = MenuItem.MenuItemGroup;
|
|
315
316
|
exports.MenuItemRadioGroup = MenuItem.MenuItemRadioGroup;
|
|
316
317
|
exports.MenuItemSelectable = MenuItem.MenuItemSelectable;
|
|
317
|
-
exports.MenuButton = index$
|
|
318
|
+
exports.MenuButton = index$9.MenuButton;
|
|
318
319
|
exports.Modal = Modal["default"];
|
|
319
320
|
exports.ModalWrapper = ModalWrapper["default"];
|
|
320
321
|
exports.ActionableNotification = Notification.ActionableNotification;
|
|
@@ -327,7 +328,7 @@ exports.ToastNotification = Notification.ToastNotification;
|
|
|
327
328
|
exports.NumberInputSkeleton = NumberInput_Skeleton["default"];
|
|
328
329
|
exports.NumberInput = NumberInput.NumberInput;
|
|
329
330
|
exports.OrderedList = OrderedList["default"];
|
|
330
|
-
exports.OverflowMenu = index$
|
|
331
|
+
exports.OverflowMenu = index$a["default"];
|
|
331
332
|
exports.OverflowMenuItem = OverflowMenuItem["default"];
|
|
332
333
|
exports.Pagination = Pagination$1["default"];
|
|
333
334
|
exports.PaginationSkeleton = Pagination_Skeleton["default"];
|
|
@@ -352,7 +353,7 @@ exports.SelectItemGroup = SelectItemGroup["default"];
|
|
|
352
353
|
exports.SkeletonIcon = SkeletonIcon["default"];
|
|
353
354
|
exports.SkeletonPlaceholder = SkeletonPlaceholder["default"];
|
|
354
355
|
exports.SkeletonText = SkeletonText["default"];
|
|
355
|
-
exports.Slider = index$
|
|
356
|
+
exports.Slider = index$b["default"];
|
|
356
357
|
exports.HStack = HStack.HStack;
|
|
357
358
|
exports.VStack = VStack.VStack;
|
|
358
359
|
exports.Stack = Stack.Stack;
|
|
@@ -394,11 +395,11 @@ exports.TimePickerSelect = TimePickerSelect["default"];
|
|
|
394
395
|
exports.Toggle = Toggle.Toggle;
|
|
395
396
|
exports.ToggleSkeleton = Toggle_Skeleton["default"];
|
|
396
397
|
exports.ToggleSmallSkeleton = ToggleSmall_Skeleton["default"];
|
|
397
|
-
exports.Toggletip = index$
|
|
398
|
-
exports.ToggletipActions = index$
|
|
399
|
-
exports.ToggletipButton = index$
|
|
400
|
-
exports.ToggletipContent = index$
|
|
401
|
-
exports.ToggletipLabel = index$
|
|
398
|
+
exports.Toggletip = index$c.Toggletip;
|
|
399
|
+
exports.ToggletipActions = index$c.ToggletipActions;
|
|
400
|
+
exports.ToggletipButton = index$c.ToggletipButton;
|
|
401
|
+
exports.ToggletipContent = index$c.ToggletipContent;
|
|
402
|
+
exports.ToggletipLabel = index$c.ToggletipLabel;
|
|
402
403
|
exports.TreeNode = TreeNode["default"];
|
|
403
404
|
exports.TreeView = TreeView["default"];
|
|
404
405
|
exports.Content = Content["default"];
|
|
@@ -454,16 +455,16 @@ exports.unstable__FluidTextInputSkeleton = FluidTextInput_Skeleton["default"];
|
|
|
454
455
|
exports.unstable__FluidTimePicker = FluidTimePicker["default"];
|
|
455
456
|
exports.unstable__FluidTimePickerSkeleton = FluidTimePicker_Skeleton["default"];
|
|
456
457
|
exports.unstable__FluidTimePickerSelect = FluidTimePickerSelect["default"];
|
|
457
|
-
exports.Heading = index$
|
|
458
|
-
exports.Section = index$
|
|
459
|
-
exports.IconButton = index$
|
|
460
|
-
exports.IconButtonKinds = index$
|
|
461
|
-
exports.Layer = index$
|
|
462
|
-
exports.useLayer = index$
|
|
458
|
+
exports.Heading = index$d.Heading;
|
|
459
|
+
exports.Section = index$d.Section;
|
|
460
|
+
exports.IconButton = index$e.IconButton;
|
|
461
|
+
exports.IconButtonKinds = index$e.IconButtonKinds;
|
|
462
|
+
exports.Layer = index$f.Layer;
|
|
463
|
+
exports.useLayer = index$f.useLayer;
|
|
463
464
|
exports.unstable_Layout = index$1.Layout;
|
|
464
465
|
exports.unstable_OverflowMenuV2 = index$2.OverflowMenuV2;
|
|
465
|
-
exports.Popover = index$
|
|
466
|
-
exports.PopoverContent = index$
|
|
466
|
+
exports.Popover = index$g.Popover;
|
|
467
|
+
exports.PopoverContent = index$g.PopoverContent;
|
|
467
468
|
exports.ProgressBar = ProgressBar["default"];
|
|
468
469
|
exports.AILabel = index$3.AILabel;
|
|
469
470
|
exports.AILabelActions = index$3.AILabelActions;
|
|
@@ -481,14 +482,15 @@ exports.AISkeletonText = AISkeletonText["default"];
|
|
|
481
482
|
exports.unstable__AiSkeletonText = AISkeletonText["default"];
|
|
482
483
|
exports.DefinitionTooltip = DefinitionTooltip.DefinitionTooltip;
|
|
483
484
|
exports.Tooltip = Tooltip.Tooltip;
|
|
484
|
-
exports.GlobalTheme = index$
|
|
485
|
-
exports.Theme = index$
|
|
486
|
-
exports.ThemeContext = index$
|
|
487
|
-
exports.usePrefersDarkScheme = index$
|
|
488
|
-
exports.useTheme = index$
|
|
485
|
+
exports.GlobalTheme = index$h.GlobalTheme;
|
|
486
|
+
exports.Theme = index$h.Theme;
|
|
487
|
+
exports.ThemeContext = index$h.ThemeContext;
|
|
488
|
+
exports.usePrefersDarkScheme = index$h.usePrefersDarkScheme;
|
|
489
|
+
exports.useTheme = index$h.useTheme;
|
|
489
490
|
exports.PrefixContext = usePrefix.PrefixContext;
|
|
490
491
|
exports.usePrefix = usePrefix.usePrefix;
|
|
491
492
|
exports.useIdPrefix = useIdPrefix.useIdPrefix;
|
|
493
|
+
exports.unstable__IconIndicator = index$4.IconIndicator;
|
|
492
494
|
exports.unstable_PageSelector = PageSelector["default"];
|
|
493
495
|
exports.unstable_Pagination = Pagination["default"];
|
|
494
496
|
exports.ContainedListItem = ContainedListItem["default"];
|
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.74.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@carbon/feature-flags": "^0.24.0",
|
|
53
53
|
"@carbon/icons-react": "^11.53.0",
|
|
54
54
|
"@carbon/layout": "^11.28.0",
|
|
55
|
-
"@carbon/styles": "^1.
|
|
55
|
+
"@carbon/styles": "^1.73.0-rc.0",
|
|
56
56
|
"@floating-ui/react": "^0.26.0",
|
|
57
57
|
"@ibm/telemetry-js": "^1.5.0",
|
|
58
58
|
"classnames": "2.5.1",
|
|
@@ -78,24 +78,25 @@
|
|
|
78
78
|
"@babel/preset-react": "^7.24.7",
|
|
79
79
|
"@babel/preset-typescript": "^7.24.7",
|
|
80
80
|
"@carbon/test-utils": "^10.34.0",
|
|
81
|
-
"@carbon/themes": "^11.
|
|
81
|
+
"@carbon/themes": "^11.45.0-rc.0",
|
|
82
82
|
"@figma/code-connect": "^1.2.4",
|
|
83
83
|
"@rollup/plugin-babel": "^6.0.0",
|
|
84
84
|
"@rollup/plugin-commonjs": "^28.0.0",
|
|
85
85
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
86
86
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
87
|
-
"@
|
|
88
|
-
"@storybook/addon-
|
|
89
|
-
"@storybook/addon-
|
|
90
|
-
"@storybook/addon-
|
|
91
|
-
"@storybook/addon-
|
|
92
|
-
"@storybook/addon-
|
|
87
|
+
"@stackblitz/sdk": "^1.11.0",
|
|
88
|
+
"@storybook/addon-a11y": "^8.4.7",
|
|
89
|
+
"@storybook/addon-actions": "^8.4.7",
|
|
90
|
+
"@storybook/addon-docs": "^8.4.7",
|
|
91
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
92
|
+
"@storybook/addon-links": "^8.4.7",
|
|
93
|
+
"@storybook/addon-storysource": "^8.4.7",
|
|
93
94
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
94
|
-
"@storybook/blocks": "^8.4.
|
|
95
|
-
"@storybook/manager-api": "^8.4.
|
|
96
|
-
"@storybook/react": "^8.4.
|
|
97
|
-
"@storybook/react-webpack5": "^8.4.
|
|
98
|
-
"@storybook/theming": "^8.4.
|
|
95
|
+
"@storybook/blocks": "^8.4.7",
|
|
96
|
+
"@storybook/manager-api": "^8.4.7",
|
|
97
|
+
"@storybook/react": "^8.4.7",
|
|
98
|
+
"@storybook/react-webpack5": "^8.4.7",
|
|
99
|
+
"@storybook/theming": "^8.4.7",
|
|
99
100
|
"@types/react-is": "~18.3.0",
|
|
100
101
|
"autoprefixer": "^10.4.0",
|
|
101
102
|
"babel-loader": "^9.0.0",
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
"rollup-plugin-strip-banner": "^3.0.0",
|
|
125
126
|
"sass": "^1.77.7",
|
|
126
127
|
"sass-loader": "^16.0.0",
|
|
127
|
-
"storybook": "^8.4.
|
|
128
|
+
"storybook": "^8.4.7",
|
|
128
129
|
"storybook-addon-accessibility-checker": "^3.1.61-rc.3",
|
|
129
130
|
"stream-browserify": "^3.0.0",
|
|
130
131
|
"style-loader": "^4.0.0",
|
|
@@ -143,5 +144,5 @@
|
|
|
143
144
|
"**/*.scss",
|
|
144
145
|
"**/*.css"
|
|
145
146
|
],
|
|
146
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "e14e6577efb2a0231c1a9ba1d4cf5a6a544bd2f9"
|
|
147
148
|
}
|