@carbon/react 1.58.0-rc.0 → 1.58.1
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 +983 -920
- package/es/components/Accordion/Accordion.d.ts +1 -1
- package/es/components/Accordion/index.d.ts +2 -2
- package/es/components/Button/index.d.ts +2 -1
- package/es/components/Dropdown/Dropdown.d.ts +1 -1
- package/es/components/Dropdown/index.d.ts +2 -2
- package/es/components/FormLabel/index.d.ts +2 -2
- package/es/components/Grid/Column.d.ts +2 -2
- package/es/components/Grid/GridTypes.d.ts +1 -2
- package/es/components/Grid/index.d.ts +3 -1
- package/es/components/InlineLoading/index.d.ts +2 -2
- package/es/components/Loading/index.d.ts +2 -2
- package/es/components/Modal/index.d.ts +2 -2
- package/es/components/NumberInput/NumberInput.d.ts +11 -0
- package/es/components/NumberInput/NumberInput.js +2 -2
- package/es/components/NumberInput/index.d.ts +1 -1
- package/es/components/OverflowMenu/OverflowMenu.d.ts +10 -6
- package/es/components/OverflowMenu/index.d.ts +13 -0
- package/es/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/es/components/ProgressBar/index.d.ts +2 -2
- package/es/components/ProgressIndicator/ProgressIndicator.d.ts +2 -2
- package/es/components/ProgressIndicator/index.d.ts +2 -0
- package/es/components/StructuredList/index.d.ts +2 -0
- package/es/components/Switch/Switch.d.ts +1 -1
- package/es/components/Switch/index.d.ts +2 -2
- package/es/components/Tab/index.d.ts +2 -1
- package/es/components/Tag/DismissibleTag.d.ts +9 -9
- package/es/components/Tag/DismissibleTag.js +32 -9
- package/es/components/Tag/OperationalTag.d.ts +9 -9
- package/es/components/Tag/OperationalTag.js +44 -9
- package/es/components/Tag/SelectableTag.d.ts +9 -9
- package/es/components/Tag/SelectableTag.js +45 -10
- package/es/components/Tag/Tag.d.ts +4 -60
- package/es/components/Tag/Tag.js +36 -10
- package/es/components/Tag/isEllipsisActive.d.ts +7 -0
- package/es/components/Tag/isEllipsisActive.js +15 -0
- package/es/components/TextArea/index.d.ts +2 -2
- package/es/components/TextInput/index.d.ts +4 -2
- package/es/components/TileGroup/index.d.ts +2 -2
- package/es/components/Tooltip/Tooltip.js +16 -5
- package/es/components/Tooltip/index.d.ts +2 -2
- package/es/components/UnorderedList/UnorderedList.d.ts +1 -1
- package/es/components/UnorderedList/index.d.ts +1 -0
- package/lib/components/Accordion/Accordion.d.ts +1 -1
- package/lib/components/Accordion/index.d.ts +2 -2
- package/lib/components/Button/index.d.ts +2 -1
- package/lib/components/Dropdown/Dropdown.d.ts +1 -1
- package/lib/components/Dropdown/index.d.ts +2 -2
- package/lib/components/FormLabel/index.d.ts +2 -2
- package/lib/components/Grid/Column.d.ts +2 -2
- package/lib/components/Grid/GridTypes.d.ts +1 -2
- package/lib/components/Grid/index.d.ts +3 -1
- package/lib/components/InlineLoading/index.d.ts +2 -2
- package/lib/components/Loading/index.d.ts +2 -2
- package/lib/components/Modal/index.d.ts +2 -2
- package/lib/components/NumberInput/NumberInput.d.ts +11 -0
- package/lib/components/NumberInput/NumberInput.js +2 -2
- package/lib/components/NumberInput/index.d.ts +1 -1
- package/lib/components/OverflowMenu/OverflowMenu.d.ts +10 -6
- package/lib/components/OverflowMenu/index.d.ts +13 -0
- package/lib/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/components/ProgressBar/index.d.ts +2 -2
- package/lib/components/ProgressIndicator/ProgressIndicator.d.ts +2 -2
- package/lib/components/ProgressIndicator/index.d.ts +2 -0
- package/lib/components/StructuredList/index.d.ts +2 -0
- package/lib/components/Switch/Switch.d.ts +1 -1
- package/lib/components/Switch/index.d.ts +2 -2
- package/lib/components/Tab/index.d.ts +2 -1
- package/lib/components/Tag/DismissibleTag.d.ts +9 -9
- package/lib/components/Tag/DismissibleTag.js +31 -8
- package/lib/components/Tag/OperationalTag.d.ts +9 -9
- package/lib/components/Tag/OperationalTag.js +43 -8
- package/lib/components/Tag/SelectableTag.d.ts +9 -9
- package/lib/components/Tag/SelectableTag.js +44 -9
- package/lib/components/Tag/Tag.d.ts +4 -60
- package/lib/components/Tag/Tag.js +35 -9
- package/lib/components/Tag/isEllipsisActive.d.ts +7 -0
- package/lib/components/Tag/isEllipsisActive.js +19 -0
- package/lib/components/TextArea/index.d.ts +2 -2
- package/lib/components/TextInput/index.d.ts +4 -2
- package/lib/components/TileGroup/index.d.ts +2 -2
- package/lib/components/Tooltip/Tooltip.js +16 -5
- package/lib/components/Tooltip/index.d.ts +2 -2
- package/lib/components/UnorderedList/UnorderedList.d.ts +1 -1
- package/lib/components/UnorderedList/index.d.ts +1 -0
- package/package.json +5 -5
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
7
|
import React, { ReactNode } from 'react';
|
|
9
8
|
import { PolymorphicProps } from '../../types/common';
|
|
10
9
|
export declare const TYPES: {
|
|
@@ -40,7 +39,7 @@ export interface TagBaseProps {
|
|
|
40
39
|
*/
|
|
41
40
|
disabled?: boolean;
|
|
42
41
|
/**
|
|
43
|
-
* @deprecated
|
|
42
|
+
* @deprecated The `filter` prop has been deprecated and will be removed in the next major version. Use DismissibleTag instead.
|
|
44
43
|
*/
|
|
45
44
|
filter?: boolean;
|
|
46
45
|
/**
|
|
@@ -48,7 +47,7 @@ export interface TagBaseProps {
|
|
|
48
47
|
*/
|
|
49
48
|
id?: string;
|
|
50
49
|
/**
|
|
51
|
-
* @deprecated
|
|
50
|
+
* @deprecated The `onClose` prop has been deprecated and will be removed in the next major version. Use DismissibleTag instead.
|
|
52
51
|
*/
|
|
53
52
|
onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
54
53
|
/**
|
|
@@ -66,7 +65,7 @@ export interface TagBaseProps {
|
|
|
66
65
|
*/
|
|
67
66
|
slug?: ReactNode;
|
|
68
67
|
/**
|
|
69
|
-
* @deprecated
|
|
68
|
+
* @deprecated The `title` prop has been deprecated and will be removed in the next major version. Use DismissibleTag instead.
|
|
70
69
|
*/
|
|
71
70
|
title?: string;
|
|
72
71
|
/**
|
|
@@ -75,61 +74,6 @@ export interface TagBaseProps {
|
|
|
75
74
|
type?: keyof typeof TYPES;
|
|
76
75
|
}
|
|
77
76
|
export type TagProps<T extends React.ElementType> = PolymorphicProps<T, TagBaseProps>;
|
|
78
|
-
declare const Tag:
|
|
79
|
-
<T extends React.ElementType<any>>({ children, className, id, type, filter, renderIcon: CustomIconElement, title, disabled, onClose, size, as: BaseComponent, slug, ...other }: TagProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
80
|
-
propTypes: {
|
|
81
|
-
/**
|
|
82
|
-
* Provide an alternative tag or component to use instead of the default
|
|
83
|
-
* wrapping element
|
|
84
|
-
*/
|
|
85
|
-
as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
86
|
-
/**
|
|
87
|
-
* Provide content to be rendered inside of a `Tag`
|
|
88
|
-
*/
|
|
89
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
90
|
-
/**
|
|
91
|
-
* Provide a custom className that is applied to the containing <span>
|
|
92
|
-
*/
|
|
93
|
-
className: PropTypes.Requireable<string>;
|
|
94
|
-
/**
|
|
95
|
-
* Specify if the `Tag` is disabled
|
|
96
|
-
*/
|
|
97
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
98
|
-
/**
|
|
99
|
-
* Determine if `Tag` is a filter/chip
|
|
100
|
-
*/
|
|
101
|
-
filter: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
102
|
-
/**
|
|
103
|
-
* Specify the id for the tag.
|
|
104
|
-
*/
|
|
105
|
-
id: PropTypes.Requireable<string>;
|
|
106
|
-
/**
|
|
107
|
-
* Click handler for filter tag close button.
|
|
108
|
-
*/
|
|
109
|
-
onClose: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
110
|
-
/**
|
|
111
|
-
* Optional prop to render a custom icon.
|
|
112
|
-
* Can be a React component class
|
|
113
|
-
*/
|
|
114
|
-
renderIcon: PropTypes.Requireable<object>;
|
|
115
|
-
/**
|
|
116
|
-
* Specify the size of the Tag. Currently supports either `sm`,
|
|
117
|
-
* `md` (default) or `lg` sizes.
|
|
118
|
-
*/
|
|
119
|
-
size: PropTypes.Requireable<string>;
|
|
120
|
-
/**
|
|
121
|
-
* **Experimental:** Provide a `Slug` component to be rendered inside the `Tag` component
|
|
122
|
-
*/
|
|
123
|
-
slug: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
124
|
-
/**
|
|
125
|
-
* Text to show on clear filters
|
|
126
|
-
*/
|
|
127
|
-
title: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
128
|
-
/**
|
|
129
|
-
* Specify the type of the `Tag`
|
|
130
|
-
*/
|
|
131
|
-
type: PropTypes.Requireable<string>;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
77
|
+
declare const Tag: React.ForwardRefExoticComponent<Omit<TagProps<React.ElementType<any>>, "ref"> & React.RefAttributes<HTMLElement | undefined>>;
|
|
134
78
|
export declare const types: string[];
|
|
135
79
|
export default Tag;
|
|
@@ -18,6 +18,10 @@ var setupGetInstanceId = require('../../tools/setupGetInstanceId.js');
|
|
|
18
18
|
var usePrefix = require('../../internal/usePrefix.js');
|
|
19
19
|
require('../Text/index.js');
|
|
20
20
|
var deprecate = require('../../prop-types/deprecate.js');
|
|
21
|
+
var DefinitionTooltip = require('../Tooltip/DefinitionTooltip.js');
|
|
22
|
+
require('../Tooltip/Tooltip.js');
|
|
23
|
+
var isEllipsisActive = require('./isEllipsisActive.js');
|
|
24
|
+
var react = require('@floating-ui/react');
|
|
21
25
|
var Text = require('../Text/Text.js');
|
|
22
26
|
|
|
23
27
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -47,7 +51,7 @@ const SIZES = {
|
|
|
47
51
|
md: 'md',
|
|
48
52
|
lg: 'lg'
|
|
49
53
|
};
|
|
50
|
-
const Tag = _ref
|
|
54
|
+
const Tag = /*#__PURE__*/React__default["default"].forwardRef(function Tag(_ref, forwardRef) {
|
|
51
55
|
let {
|
|
52
56
|
children,
|
|
53
57
|
className,
|
|
@@ -67,7 +71,14 @@ const Tag = _ref => {
|
|
|
67
71
|
...other
|
|
68
72
|
} = _ref;
|
|
69
73
|
const prefix = usePrefix.usePrefix();
|
|
74
|
+
const tagRef = React.useRef();
|
|
75
|
+
const ref = react.useMergeRefs([forwardRef, tagRef]);
|
|
70
76
|
const tagId = id || `tag-${getInstanceId()}`;
|
|
77
|
+
const [isEllipsisApplied, setIsEllipsisApplied] = React.useState(false);
|
|
78
|
+
React.useLayoutEffect(() => {
|
|
79
|
+
const newElement = tagRef.current?.getElementsByClassName(`${prefix}--tag__label`)[0];
|
|
80
|
+
setIsEllipsisApplied(isEllipsisActive.isEllipsisActive(newElement));
|
|
81
|
+
}, [prefix, tagRef]);
|
|
71
82
|
const conditions = [`${prefix}--tag--selectable`, `${prefix}--tag--filter`, `${prefix}--tag--operational`];
|
|
72
83
|
const isInteractiveTag = conditions.some(el => className?.includes(el));
|
|
73
84
|
const tagClasses = cx__default["default"](`${prefix}--tag`, className, {
|
|
@@ -77,7 +88,7 @@ const Tag = _ref => {
|
|
|
77
88
|
// TODO: V12 - Remove this class
|
|
78
89
|
[`${prefix}--layout--size-${size}`]: size,
|
|
79
90
|
[`${prefix}--tag--${type}`]: type,
|
|
80
|
-
[`${prefix}--tag--interactive`]: other.onClick && !isInteractiveTag
|
|
91
|
+
[`${prefix}--tag--interactive`]: other.onClick && !isInteractiveTag && isEllipsisApplied
|
|
81
92
|
});
|
|
82
93
|
const typeText = type !== undefined && type in Object.keys(TYPES) ? TYPES[type] : '';
|
|
83
94
|
const handleClose = event => {
|
|
@@ -103,8 +114,8 @@ const Tag = _ref => {
|
|
|
103
114
|
}, other), CustomIconElement && size !== 'sm' ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
104
115
|
className: `${prefix}--tag__custom-icon`
|
|
105
116
|
}, /*#__PURE__*/React__default["default"].createElement(CustomIconElement, null)) : '', /*#__PURE__*/React__default["default"].createElement(Text.Text, {
|
|
106
|
-
|
|
107
|
-
|
|
117
|
+
title: typeof children === 'string' ? children : undefined,
|
|
118
|
+
className: `${prefix}--tag__label`
|
|
108
119
|
}, children !== null && children !== undefined ? children : typeText), normalizedSlug, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
109
120
|
type: "button",
|
|
110
121
|
className: `${prefix}--tag__close-icon`,
|
|
@@ -115,14 +126,29 @@ const Tag = _ref => {
|
|
|
115
126
|
}, _Close || (_Close = /*#__PURE__*/React__default["default"].createElement(iconsReact.Close, null))));
|
|
116
127
|
}
|
|
117
128
|
const ComponentTag = BaseComponent ?? (other.onClick || className?.includes(`${prefix}--tag--operational`) ? 'button' : 'div');
|
|
129
|
+
const labelClasses = cx__default["default"]({
|
|
130
|
+
[`${prefix}--tag__label`]: !isInteractiveTag,
|
|
131
|
+
[`${prefix}--tag--${type}`]: type && !isInteractiveTag
|
|
132
|
+
});
|
|
118
133
|
return /*#__PURE__*/React__default["default"].createElement(ComponentTag, _rollupPluginBabelHelpers["extends"]({
|
|
134
|
+
ref: ref,
|
|
119
135
|
disabled: disabled,
|
|
120
136
|
className: tagClasses,
|
|
121
137
|
id: tagId
|
|
122
138
|
}, other), CustomIconElement && size !== 'sm' ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
123
139
|
className: `${prefix}--tag__custom-icon`
|
|
124
|
-
}, /*#__PURE__*/React__default["default"].createElement(CustomIconElement, null)) : '', /*#__PURE__*/React__default["default"].createElement(
|
|
125
|
-
|
|
140
|
+
}, /*#__PURE__*/React__default["default"].createElement(CustomIconElement, null)) : '', isEllipsisApplied && !isInteractiveTag ? /*#__PURE__*/React__default["default"].createElement(DefinitionTooltip.DefinitionTooltip, {
|
|
141
|
+
openOnHover: false,
|
|
142
|
+
definition: children !== null && children !== undefined ? children : typeText,
|
|
143
|
+
className: `${prefix}--definition--tooltip--tag`
|
|
144
|
+
}, /*#__PURE__*/React__default["default"].createElement(Text.Text, {
|
|
145
|
+
title: children !== null && children !== undefined ? children : typeText,
|
|
146
|
+
className: labelClasses
|
|
147
|
+
}, children !== null && children !== undefined ? children : typeText)) : /*#__PURE__*/React__default["default"].createElement(Text.Text, {
|
|
148
|
+
title: children !== null && children !== undefined ? children : typeText,
|
|
149
|
+
className: labelClasses
|
|
150
|
+
}, children !== null && children !== undefined ? children : typeText), normalizedSlug);
|
|
151
|
+
});
|
|
126
152
|
Tag.propTypes = {
|
|
127
153
|
/**
|
|
128
154
|
* Provide an alternative tag or component to use instead of the default
|
|
@@ -144,7 +170,7 @@ Tag.propTypes = {
|
|
|
144
170
|
/**
|
|
145
171
|
* Determine if `Tag` is a filter/chip
|
|
146
172
|
*/
|
|
147
|
-
filter: deprecate["default"](PropTypes__default["default"].bool, '
|
|
173
|
+
filter: deprecate["default"](PropTypes__default["default"].bool, 'The `filter` prop has been deprecated and will be removed in the next major version. Use DismissibleTag instead.'),
|
|
148
174
|
/**
|
|
149
175
|
* Specify the id for the tag.
|
|
150
176
|
*/
|
|
@@ -152,7 +178,7 @@ Tag.propTypes = {
|
|
|
152
178
|
/**
|
|
153
179
|
* Click handler for filter tag close button.
|
|
154
180
|
*/
|
|
155
|
-
onClose: deprecate["default"](PropTypes__default["default"].func, '
|
|
181
|
+
onClose: deprecate["default"](PropTypes__default["default"].func, 'The `onClose` prop has been deprecated and will be removed in the next major version. Use DismissibleTag instead.'),
|
|
156
182
|
/**
|
|
157
183
|
* Optional prop to render a custom icon.
|
|
158
184
|
* Can be a React component class
|
|
@@ -170,7 +196,7 @@ Tag.propTypes = {
|
|
|
170
196
|
/**
|
|
171
197
|
* Text to show on clear filters
|
|
172
198
|
*/
|
|
173
|
-
title: deprecate["default"](PropTypes__default["default"].string, '
|
|
199
|
+
title: deprecate["default"](PropTypes__default["default"].string, 'The `title` prop has been deprecated and will be removed in the next major version. Use DismissibleTag instead.'),
|
|
174
200
|
/**
|
|
175
201
|
* Specify the type of the `Tag`
|
|
176
202
|
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
const isEllipsisActive = element => {
|
|
13
|
+
if (element) {
|
|
14
|
+
return element?.offsetWidth < element?.scrollWidth;
|
|
15
|
+
}
|
|
16
|
+
return false;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.isEllipsisActive = isEllipsisActive;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import TextArea from './TextArea';
|
|
7
|
+
import TextArea, { type TextAreaProps } from './TextArea';
|
|
8
8
|
export { default as TextAreaSkeleton } from './TextArea.Skeleton';
|
|
9
9
|
export default TextArea;
|
|
10
|
-
export { TextArea };
|
|
10
|
+
export { TextArea, type TextAreaProps };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import TextInput from './TextInput';
|
|
1
|
+
import TextInput, { type TextInputProps } from './TextInput';
|
|
2
|
+
import { type TextInputSkeletonProps } from './TextInput.Skeleton';
|
|
2
3
|
export { default as TextInputSkeleton } from './TextInput.Skeleton';
|
|
3
4
|
export default TextInput;
|
|
4
|
-
export {
|
|
5
|
+
export { type TextInputSkeletonProps };
|
|
6
|
+
export { TextInput, type TextInputProps };
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import TileGroup from './TileGroup';
|
|
7
|
+
import TileGroup, { type TileGroupProps } from './TileGroup';
|
|
8
8
|
export default TileGroup;
|
|
9
|
-
export { TileGroup };
|
|
9
|
+
export { TileGroup, type TileGroupProps };
|
|
@@ -47,18 +47,22 @@ function Tooltip(_ref) {
|
|
|
47
47
|
const tooltipRef = React.useRef(null);
|
|
48
48
|
const [open, setOpen] = useDelayedState.useDelayedState(defaultOpen);
|
|
49
49
|
const [isDragging, setIsDragging] = React.useState(false);
|
|
50
|
+
const [focusByMouse, setFocusByMouse] = React.useState(false);
|
|
50
51
|
const [isPointerIntersecting, setIsPointerIntersecting] = React.useState(false);
|
|
51
52
|
const id = useId.useId('tooltip');
|
|
52
53
|
const prefix = usePrefix.usePrefix();
|
|
53
54
|
const child = React__default["default"].Children.only(children);
|
|
54
55
|
const triggerProps = {
|
|
55
|
-
onFocus: () => setOpen(true),
|
|
56
|
-
onBlur: () =>
|
|
56
|
+
onFocus: () => !focusByMouse && setOpen(true),
|
|
57
|
+
onBlur: () => {
|
|
58
|
+
setOpen(false);
|
|
59
|
+
setFocusByMouse(false);
|
|
60
|
+
},
|
|
57
61
|
onClick: () => closeOnActivation && setOpen(false),
|
|
58
62
|
// This should be placed on the trigger in case the element is disabled
|
|
59
63
|
onMouseEnter,
|
|
60
64
|
onMouseLeave,
|
|
61
|
-
onMouseDown
|
|
65
|
+
onMouseDown,
|
|
62
66
|
onMouseMove: onMouseMove,
|
|
63
67
|
onTouchStart: onDragStart
|
|
64
68
|
};
|
|
@@ -90,8 +94,15 @@ function Tooltip(_ref) {
|
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
96
|
function onMouseEnter() {
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
// Interactive Tags should not support onMouseEnter
|
|
98
|
+
if (!rest?.onMouseEnter) {
|
|
99
|
+
setIsPointerIntersecting(true);
|
|
100
|
+
setOpen(true, enterDelayMs);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function onMouseDown() {
|
|
104
|
+
setFocusByMouse(true);
|
|
105
|
+
onDragStart();
|
|
95
106
|
}
|
|
96
107
|
function onMouseLeave() {
|
|
97
108
|
setIsPointerIntersecting(false);
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { DefinitionTooltip } from './DefinitionTooltip';
|
|
8
|
-
import { Tooltip } from './Tooltip';
|
|
9
|
-
export { DefinitionTooltip, Tooltip };
|
|
8
|
+
import { Tooltip, type TooltipProps } from './Tooltip';
|
|
9
|
+
export { DefinitionTooltip, Tooltip, type TooltipProps };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { type ComponentProps } from 'react';
|
|
9
|
-
interface UnorderedListProps extends ComponentProps<'ul'> {
|
|
9
|
+
export interface UnorderedListProps extends ComponentProps<'ul'> {
|
|
10
10
|
nested?: boolean | undefined;
|
|
11
11
|
isExpressive?: boolean | undefined;
|
|
12
12
|
}
|
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.58.
|
|
4
|
+
"version": "1.58.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@babel/runtime": "^7.18.3",
|
|
51
51
|
"@carbon/feature-flags": "^0.20.0",
|
|
52
|
-
"@carbon/icons-react": "^11.42.0
|
|
52
|
+
"@carbon/icons-react": "^11.42.0",
|
|
53
53
|
"@carbon/layout": "^11.22.0",
|
|
54
|
-
"@carbon/styles": "^1.58.0
|
|
54
|
+
"@carbon/styles": "^1.58.0",
|
|
55
55
|
"@floating-ui/react": "^0.26.0",
|
|
56
56
|
"@ibm/telemetry-js": "^1.5.0",
|
|
57
57
|
"classnames": "2.5.1",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@babel/preset-react": "^7.22.3",
|
|
82
82
|
"@babel/preset-typescript": "^7.21.5",
|
|
83
83
|
"@carbon/test-utils": "^10.30.0",
|
|
84
|
-
"@carbon/themes": "^11.
|
|
84
|
+
"@carbon/themes": "^11.36.0",
|
|
85
85
|
"@rollup/plugin-babel": "^6.0.0",
|
|
86
86
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
87
87
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
"**/*.scss",
|
|
142
142
|
"**/*.css"
|
|
143
143
|
],
|
|
144
|
-
"gitHead": "
|
|
144
|
+
"gitHead": "08968165fe61174317b023555b812528d21bab39"
|
|
145
145
|
}
|