@carbon/react 1.67.0 → 1.68.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 +881 -881
- package/es/components/ComboBox/ComboBox.js +12 -0
- package/es/components/ComposedModal/ModalHeader.js +1 -1
- package/es/components/Dropdown/Dropdown.js +3 -2
- package/es/components/FeatureFlags/index.d.ts +56 -0
- package/es/components/FeatureFlags/index.js +2 -2
- package/es/components/FluidMultiSelect/FluidFilterableMultiSelect.d.ts +144 -0
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.d.ts +15 -0
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +1 -2
- package/es/components/FluidMultiSelect/FluidMultiSelect.d.ts +149 -0
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +5 -3
- package/es/components/FluidMultiSelect/index.d.ts +13 -0
- package/es/components/FluidNumberInput/index.d.ts +2 -2
- package/es/components/FluidSearch/index.d.ts +2 -2
- package/es/components/FluidSelect/index.d.ts +2 -2
- package/es/components/FluidTimePicker/index.d.ts +2 -2
- package/es/components/Modal/Modal.js +1 -1
- package/es/components/MultiSelect/FilterableMultiSelect.d.ts +2 -2
- package/es/components/Notification/Notification.d.ts +14 -9
- package/es/components/Notification/Notification.js +26 -7
- package/es/components/Notification/index.d.ts +1 -1
- package/es/components/Popover/index.js +1 -1
- package/es/components/Toggletip/index.d.ts +2 -15
- package/es/components/Toggletip/index.js +6 -3
- package/es/components/Tooltip/DefinitionTooltip.js +4 -2
- package/es/index.js +3 -3
- package/lib/components/ComboBox/ComboBox.js +12 -0
- package/lib/components/ComposedModal/ModalHeader.js +1 -1
- package/lib/components/Dropdown/Dropdown.js +3 -2
- package/lib/components/FeatureFlags/index.d.ts +56 -0
- package/lib/components/FluidMultiSelect/FluidFilterableMultiSelect.d.ts +144 -0
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.d.ts +15 -0
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +1 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.d.ts +149 -0
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +5 -3
- package/lib/components/FluidMultiSelect/index.d.ts +13 -0
- package/lib/components/FluidNumberInput/index.d.ts +2 -2
- package/lib/components/FluidSearch/index.d.ts +2 -2
- package/lib/components/FluidSelect/index.d.ts +2 -2
- package/lib/components/FluidTimePicker/index.d.ts +2 -2
- package/lib/components/Modal/Modal.js +1 -1
- package/lib/components/MultiSelect/FilterableMultiSelect.d.ts +2 -2
- package/lib/components/Notification/Notification.d.ts +14 -9
- package/lib/components/Notification/Notification.js +26 -6
- package/lib/components/Notification/index.d.ts +1 -1
- package/lib/components/Popover/index.js +1 -1
- package/lib/components/Toggletip/index.d.ts +2 -15
- package/lib/components/Toggletip/index.js +6 -3
- package/lib/components/Tooltip/DefinitionTooltip.js +4 -2
- package/lib/index.js +5 -4
- package/package.json +6 -6
|
@@ -4,8 +4,8 @@
|
|
|
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 { FluidNumberInputProps } from './FluidNumberInput';
|
|
8
|
-
import { FluidNumberInputSkeletonProps } from './FluidNumberInput.Skeleton';
|
|
7
|
+
import type { FluidNumberInputProps } from './FluidNumberInput';
|
|
8
|
+
import type { FluidNumberInputSkeletonProps } from './FluidNumberInput.Skeleton';
|
|
9
9
|
export { type FluidNumberInputProps, type FluidNumberInputSkeletonProps };
|
|
10
10
|
export { default, default as FluidNumberInput } from './FluidNumberInput';
|
|
11
11
|
export { default as FluidNumberInputSkeleton } from './FluidNumberInput.Skeleton';
|
|
@@ -4,8 +4,8 @@
|
|
|
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 { FluidSearchProps } from './FluidSearch';
|
|
8
|
-
import { FluidSearchSkeletonProps } from './FluidSearch.Skeleton';
|
|
7
|
+
import type { FluidSearchProps } from './FluidSearch';
|
|
8
|
+
import type { FluidSearchSkeletonProps } from './FluidSearch.Skeleton';
|
|
9
9
|
export { default, default as FluidSearch } from './FluidSearch';
|
|
10
10
|
export { type FluidSearchProps, type FluidSearchSkeletonProps };
|
|
11
11
|
export { default as FluidSearchSkeleton } from './FluidSearch.Skeleton';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import FluidSelect from './FluidSelect';
|
|
8
|
-
import FluidSelectSkeletonProps from './FluidSelect.Skeleton';
|
|
9
|
-
import FluidSelectProps from './FluidSelect.Skeleton';
|
|
8
|
+
import type FluidSelectSkeletonProps from './FluidSelect.Skeleton';
|
|
9
|
+
import type FluidSelectProps from './FluidSelect.Skeleton';
|
|
10
10
|
export type { FluidSelectSkeletonProps, FluidSelectProps };
|
|
11
11
|
export default FluidSelect;
|
|
12
12
|
export { FluidSelect };
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import FluidTimePicker from './FluidTimePicker';
|
|
8
|
-
import { FluidTimePickerProps } from './FluidTimePicker';
|
|
9
|
-
import { FluidTimePickerSkeletonProps } from './FluidTimePicker.Skeleton';
|
|
8
|
+
import { type FluidTimePickerProps } from './FluidTimePicker';
|
|
9
|
+
import { type FluidTimePickerSkeletonProps } from './FluidTimePicker.Skeleton';
|
|
10
10
|
export { default as FluidTimePickerSkeleton } from './FluidTimePicker.Skeleton';
|
|
11
11
|
export type { FluidTimePickerProps, FluidTimePickerSkeletonProps };
|
|
12
12
|
export default FluidTimePicker;
|
|
@@ -275,7 +275,7 @@ const Modal = /*#__PURE__*/React__default["default"].forwardRef(function Modal(_
|
|
|
275
275
|
id: modalLabelId,
|
|
276
276
|
className: `${prefix}--modal-header__label`
|
|
277
277
|
}, modalLabel), /*#__PURE__*/React__default["default"].createElement(Text.Text, {
|
|
278
|
-
as: "
|
|
278
|
+
as: "h2",
|
|
279
279
|
id: modalHeadingId,
|
|
280
280
|
className: `${prefix}--modal-header__heading`
|
|
281
281
|
}, modalHeading), normalizedSlug, !passiveModal && modalButton), /*#__PURE__*/React__default["default"].createElement(index$1.Layer, _rollupPluginBabelHelpers["extends"]({
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { type UseComboboxProps, type UseMultipleSelectionProps } from 'downshift';
|
|
8
|
-
import { ReactNode, FunctionComponent, ReactElement } from 'react';
|
|
8
|
+
import React, { ReactNode, FunctionComponent, ReactElement } from 'react';
|
|
9
9
|
import { type MultiSelectSortingProps } from './MultiSelectPropTypes';
|
|
10
10
|
import { TranslateWithId } from '../../types/common';
|
|
11
11
|
/**
|
|
@@ -16,7 +16,7 @@ import { TranslateWithId } from '../../types/common';
|
|
|
16
16
|
* ends up just being defined as "string".)
|
|
17
17
|
*/
|
|
18
18
|
type TranslationKey = 'close.menu' | 'open.menu' | 'clear.all' | 'clear.selection';
|
|
19
|
-
export interface FilterableMultiSelectProps<ItemType> extends MultiSelectSortingProps<ItemType>, TranslateWithId<TranslationKey> {
|
|
19
|
+
export interface FilterableMultiSelectProps<ItemType> extends MultiSelectSortingProps<ItemType>, React.RefAttributes<HTMLDivElement>, TranslateWithId<TranslationKey> {
|
|
20
20
|
/**
|
|
21
21
|
* Specify a label to be read by screen readers on the container node
|
|
22
22
|
* @deprecated
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import { type ReactNode, type MouseEvent, type ComponentType, type FunctionComponent, type ButtonHTMLAttributes, type HTMLAttributes } from 'react';
|
|
8
|
+
import React, { type ReactNode, type MouseEvent, type ComponentType, type FunctionComponent, type ButtonHTMLAttributes, type HTMLAttributes } from 'react';
|
|
9
9
|
import { type ButtonProps } from '../Button';
|
|
10
10
|
export interface NotificationActionButtonProps extends ButtonProps<'button'> {
|
|
11
11
|
/**
|
|
@@ -389,7 +389,7 @@ export interface ActionableNotificationProps extends HTMLAttributes<HTMLDivEleme
|
|
|
389
389
|
closeOnEscape?: boolean;
|
|
390
390
|
/**
|
|
391
391
|
* @deprecated This prop will be removed in the next major version, v12.
|
|
392
|
-
* Specify if focus should be moved to the component on render. To meet the spec for alertdialog, this must always be true. If you're setting this to false, explore using
|
|
392
|
+
* Specify if focus should be moved to the component on render. To meet the spec for alertdialog, this must always be true. If you're setting this to false, explore using Callout instead. https://github.com/carbon-design-system/carbon/pull/15532
|
|
393
393
|
*/
|
|
394
394
|
hasFocus?: boolean;
|
|
395
395
|
/**
|
|
@@ -465,7 +465,6 @@ export declare namespace ActionableNotification {
|
|
|
465
465
|
*/
|
|
466
466
|
closeOnEscape: PropTypes.Requireable<boolean>;
|
|
467
467
|
/**
|
|
468
|
-
* Deprecated, please use StaticNotification once it's available. Issue #15532
|
|
469
468
|
* Specify if focus should be moved to the component when the notification contains actions
|
|
470
469
|
*/
|
|
471
470
|
hasFocus: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
@@ -514,10 +513,10 @@ export declare namespace ActionableNotification {
|
|
|
514
513
|
};
|
|
515
514
|
}
|
|
516
515
|
/**
|
|
517
|
-
*
|
|
516
|
+
* Callout
|
|
518
517
|
* ==================
|
|
519
518
|
*/
|
|
520
|
-
export interface
|
|
519
|
+
export interface CalloutProps extends HTMLAttributes<HTMLDivElement> {
|
|
521
520
|
/**
|
|
522
521
|
* Pass in the action button label that will be rendered within the ActionableNotification.
|
|
523
522
|
*/
|
|
@@ -535,7 +534,7 @@ export interface StaticNotificationProps extends HTMLAttributes<HTMLDivElement>
|
|
|
535
534
|
*/
|
|
536
535
|
kind?: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
|
|
537
536
|
/**
|
|
538
|
-
* Specify whether you are using the low contrast variant of the
|
|
537
|
+
* Specify whether you are using the low contrast variant of the Callout.
|
|
539
538
|
*/
|
|
540
539
|
lowContrast?: boolean;
|
|
541
540
|
/**
|
|
@@ -559,8 +558,8 @@ export interface StaticNotificationProps extends HTMLAttributes<HTMLDivElement>
|
|
|
559
558
|
*/
|
|
560
559
|
titleId?: string;
|
|
561
560
|
}
|
|
562
|
-
export declare function
|
|
563
|
-
export declare namespace
|
|
561
|
+
export declare function Callout({ actionButtonLabel, children, onActionButtonClick, title, titleId, subtitle, statusIconDescription, className, kind, lowContrast, ...rest }: CalloutProps): import("react/jsx-runtime").JSX.Element;
|
|
562
|
+
export declare namespace Callout {
|
|
564
563
|
var propTypes: {
|
|
565
564
|
/**
|
|
566
565
|
* Pass in the action button label that will be rendered within the ActionableNotification.
|
|
@@ -579,7 +578,7 @@ export declare namespace StaticNotification {
|
|
|
579
578
|
*/
|
|
580
579
|
kind: PropTypes.Requireable<string>;
|
|
581
580
|
/**
|
|
582
|
-
* Specify whether you are using the low contrast variant of the
|
|
581
|
+
* Specify whether you are using the low contrast variant of the Callout.
|
|
583
582
|
*/
|
|
584
583
|
lowContrast: PropTypes.Requireable<boolean>;
|
|
585
584
|
/**
|
|
@@ -604,3 +603,9 @@ export declare namespace StaticNotification {
|
|
|
604
603
|
titleId: PropTypes.Requireable<string>;
|
|
605
604
|
};
|
|
606
605
|
}
|
|
606
|
+
/**
|
|
607
|
+
* @deprecated Use `CalloutProps` instead.
|
|
608
|
+
*/
|
|
609
|
+
export interface StaticNotificationProps extends CalloutProps {
|
|
610
|
+
}
|
|
611
|
+
export declare const StaticNotification: React.FC<StaticNotificationProps>;
|
|
@@ -25,6 +25,7 @@ var useId = require('../../internal/useId.js');
|
|
|
25
25
|
var noopFn = require('../../internal/noopFn.js');
|
|
26
26
|
var wrapFocus = require('../../internal/wrapFocus.js');
|
|
27
27
|
var index = require('../FeatureFlags/index.js');
|
|
28
|
+
var warning = require('../../internal/warning.js');
|
|
28
29
|
var Text = require('../Text/Text.js');
|
|
29
30
|
var match = require('../../internal/keyboard/match.js');
|
|
30
31
|
var keys = require('../../internal/keyboard/keys.js');
|
|
@@ -651,10 +652,9 @@ ActionableNotification.propTypes = {
|
|
|
651
652
|
*/
|
|
652
653
|
closeOnEscape: PropTypes__default["default"].bool,
|
|
653
654
|
/**
|
|
654
|
-
* Deprecated, please use StaticNotification once it's available. Issue #15532
|
|
655
655
|
* Specify if focus should be moved to the component when the notification contains actions
|
|
656
656
|
*/
|
|
657
|
-
hasFocus: deprecate["default"](PropTypes__default["default"].bool),
|
|
657
|
+
hasFocus: deprecate["default"](PropTypes__default["default"].bool, 'hasFocus is deprecated. To conform to accessibility requirements hasFocus ' + 'should always be `true` for ActionableNotification. If you were ' + 'setting this prop to `false`, consider using the Callout component instead.'),
|
|
658
658
|
/**
|
|
659
659
|
* Specify the close button should be disabled, or not
|
|
660
660
|
*/
|
|
@@ -703,11 +703,11 @@ ActionableNotification.propTypes = {
|
|
|
703
703
|
};
|
|
704
704
|
|
|
705
705
|
/**
|
|
706
|
-
*
|
|
706
|
+
* Callout
|
|
707
707
|
* ==================
|
|
708
708
|
*/
|
|
709
709
|
|
|
710
|
-
function
|
|
710
|
+
function Callout(_ref8) {
|
|
711
711
|
let {
|
|
712
712
|
actionButtonLabel,
|
|
713
713
|
children,
|
|
@@ -757,7 +757,7 @@ function StaticNotification(_ref8) {
|
|
|
757
757
|
inline: true
|
|
758
758
|
}, actionButtonLabel)));
|
|
759
759
|
}
|
|
760
|
-
|
|
760
|
+
Callout.propTypes = {
|
|
761
761
|
/**
|
|
762
762
|
* Pass in the action button label that will be rendered within the ActionableNotification.
|
|
763
763
|
*/
|
|
@@ -775,7 +775,7 @@ StaticNotification.propTypes = {
|
|
|
775
775
|
*/
|
|
776
776
|
kind: PropTypes__default["default"].oneOf(['error', 'info', 'info-square', 'success', 'warning', 'warning-alt']),
|
|
777
777
|
/**
|
|
778
|
-
* Specify whether you are using the low contrast variant of the
|
|
778
|
+
* Specify whether you are using the low contrast variant of the Callout.
|
|
779
779
|
*/
|
|
780
780
|
lowContrast: PropTypes__default["default"].bool,
|
|
781
781
|
/**
|
|
@@ -800,7 +800,27 @@ StaticNotification.propTypes = {
|
|
|
800
800
|
titleId: PropTypes__default["default"].string
|
|
801
801
|
};
|
|
802
802
|
|
|
803
|
+
// In renaming StaticNotification to Callout, the legacy StaticNotification
|
|
804
|
+
// export and it's types should remain usable until Callout is moved to stable.
|
|
805
|
+
// The StaticNotification component below forwards props to Callout and inherits
|
|
806
|
+
// CalloutProps to ensure consumer usage is not impacted, while providing them
|
|
807
|
+
// a deprecation warning.
|
|
808
|
+
// TODO: remove this when Callout moves to stable OR in v12, whichever is first
|
|
809
|
+
/**
|
|
810
|
+
* @deprecated Use `CalloutProps` instead.
|
|
811
|
+
*/
|
|
812
|
+
|
|
813
|
+
let didWarnAboutDeprecation = false;
|
|
814
|
+
const StaticNotification = props => {
|
|
815
|
+
if (process.env.NODE_ENV !== "production") {
|
|
816
|
+
process.env.NODE_ENV !== "production" ? warning.warning(didWarnAboutDeprecation, '`StaticNotification` has been renamed to `Callout`.' + 'Run the following codemod to automatically update usages in your' + 'project: `npx @carbon/upgrade migrate refactor-to-callout --write`') : void 0;
|
|
817
|
+
didWarnAboutDeprecation = true;
|
|
818
|
+
}
|
|
819
|
+
return /*#__PURE__*/React__default["default"].createElement(Callout, props);
|
|
820
|
+
};
|
|
821
|
+
|
|
803
822
|
exports.ActionableNotification = ActionableNotification;
|
|
823
|
+
exports.Callout = Callout;
|
|
804
824
|
exports.InlineNotification = InlineNotification;
|
|
805
825
|
exports.NotificationActionButton = NotificationActionButton;
|
|
806
826
|
exports.NotificationButton = NotificationButton;
|
|
@@ -4,4 +4,4 @@
|
|
|
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
|
-
export { NotificationActionButton, type NotificationActionButtonProps, NotificationButton, type NotificationButtonProps, ToastNotification, type ToastNotificationProps, InlineNotification, type InlineNotificationProps, ActionableNotification, type ActionableNotificationProps, StaticNotification, type StaticNotificationProps, } from './Notification';
|
|
7
|
+
export { NotificationActionButton, type NotificationActionButtonProps, NotificationButton, type NotificationButtonProps, ToastNotification, type ToastNotificationProps, InlineNotification, type InlineNotificationProps, ActionableNotification, type ActionableNotificationProps, StaticNotification, type StaticNotificationProps, Callout, type CalloutProps, } from './Notification';
|
|
@@ -216,7 +216,7 @@ const Popover = /*#__PURE__*/React__default["default"].forwardRef(function Popov
|
|
|
216
216
|
*/
|
|
217
217
|
const isTriggerElement = item?.type === 'button';
|
|
218
218
|
const isTriggerComponent = autoAlign && displayName && ['ToggletipButton'].includes(displayName);
|
|
219
|
-
const isAllowedTriggerComponent = autoAlign &&
|
|
219
|
+
const isAllowedTriggerComponent = autoAlign && !['ToggletipContent', 'PopoverContent'].includes(displayName);
|
|
220
220
|
if ( /*#__PURE__*/React__default["default"].isValidElement(item) && (isTriggerElement || isTriggerComponent || isAllowedTriggerComponent)) {
|
|
221
221
|
const className = item?.props?.className;
|
|
222
222
|
const ref = (item?.props).ref;
|
|
@@ -99,20 +99,8 @@ interface ToggletipContentProps {
|
|
|
99
99
|
* `children` passed in as a prop inside of `PopoverContent` so that they will
|
|
100
100
|
* be rendered inside of the popover for this component.
|
|
101
101
|
*/
|
|
102
|
-
|
|
103
|
-
export
|
|
104
|
-
var propTypes: {
|
|
105
|
-
/**
|
|
106
|
-
* Custom children to be rendered as the content of the label
|
|
107
|
-
*/
|
|
108
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
109
|
-
/**
|
|
110
|
-
* Provide a custom class name to be added to the outermost node in the
|
|
111
|
-
* component
|
|
112
|
-
*/
|
|
113
|
-
className: PropTypes.Requireable<string>;
|
|
114
|
-
};
|
|
115
|
-
}
|
|
102
|
+
declare const ToggletipContent: React.ForwardRefExoticComponent<ToggletipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
103
|
+
export { ToggletipContent };
|
|
116
104
|
interface ToggleTipActionsProps {
|
|
117
105
|
children?: ReactNode;
|
|
118
106
|
className?: string | undefined;
|
|
@@ -135,4 +123,3 @@ export declare namespace ToggletipActions {
|
|
|
135
123
|
className: PropTypes.Requireable<string>;
|
|
136
124
|
};
|
|
137
125
|
}
|
|
138
|
-
export {};
|
|
@@ -255,7 +255,7 @@ ToggletipButton.displayName = 'ToggletipButton';
|
|
|
255
255
|
* `children` passed in as a prop inside of `PopoverContent` so that they will
|
|
256
256
|
* be rendered inside of the popover for this component.
|
|
257
257
|
*/
|
|
258
|
-
function ToggletipContent(_ref4) {
|
|
258
|
+
const ToggletipContent = /*#__PURE__*/React__default["default"].forwardRef(function ToggletipContent(_ref4, ref) {
|
|
259
259
|
let {
|
|
260
260
|
children,
|
|
261
261
|
className: customClassName
|
|
@@ -264,10 +264,12 @@ function ToggletipContent(_ref4) {
|
|
|
264
264
|
const prefix = usePrefix.usePrefix();
|
|
265
265
|
return /*#__PURE__*/React__default["default"].createElement(index.PopoverContent, _rollupPluginBabelHelpers["extends"]({
|
|
266
266
|
className: customClassName
|
|
267
|
-
}, toggletip?.contentProps
|
|
267
|
+
}, toggletip?.contentProps, {
|
|
268
|
+
ref: ref
|
|
269
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
268
270
|
className: `${prefix}--toggletip-content`
|
|
269
271
|
}, children));
|
|
270
|
-
}
|
|
272
|
+
});
|
|
271
273
|
ToggletipContent.propTypes = {
|
|
272
274
|
/**
|
|
273
275
|
* Custom children to be rendered as the content of the label
|
|
@@ -279,6 +281,7 @@ ToggletipContent.propTypes = {
|
|
|
279
281
|
*/
|
|
280
282
|
className: PropTypes__default["default"].string
|
|
281
283
|
};
|
|
284
|
+
ToggletipContent.displayName = 'ToggletipContent';
|
|
282
285
|
/**
|
|
283
286
|
* `ToggletipActions` is a container for one or two actions present at the base
|
|
284
287
|
* of a toggletip. It is used for layout of these items.
|
|
@@ -70,8 +70,10 @@ const DefinitionTooltip = _ref => {
|
|
|
70
70
|
onBlur: () => {
|
|
71
71
|
setOpen(false);
|
|
72
72
|
},
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
onMouseDown: event => {
|
|
74
|
+
// We use onMouseDown rather than onClick to make sure this triggers
|
|
75
|
+
// before onFocus.
|
|
76
|
+
if (event.button === 0) setOpen(!isOpen);
|
|
75
77
|
},
|
|
76
78
|
onKeyDown: onKeyDown,
|
|
77
79
|
type: "button"
|
package/lib/index.js
CHANGED
|
@@ -163,6 +163,8 @@ var SideNavMenuItem = require('./components/UIShell/SideNavMenuItem.js');
|
|
|
163
163
|
var SideNavSwitcher = require('./components/UIShell/SideNavSwitcher.js');
|
|
164
164
|
var UnorderedList = require('./components/UnorderedList/UnorderedList.js');
|
|
165
165
|
var index = require('./components/FeatureFlags/index.js');
|
|
166
|
+
var FluidMultiSelect = require('./components/FluidMultiSelect/FluidMultiSelect.js');
|
|
167
|
+
var FluidMultiSelect_Skeleton = require('./components/FluidMultiSelect/FluidMultiSelect.Skeleton.js');
|
|
166
168
|
var FluidSelect = require('./components/FluidSelect/FluidSelect.js');
|
|
167
169
|
var FluidSelect_Skeleton = require('./components/FluidSelect/FluidSelect.Skeleton.js');
|
|
168
170
|
var FluidSearch = require('./components/FluidSearch/FluidSearch.js');
|
|
@@ -209,8 +211,6 @@ var FluidDatePicker = require('./components/FluidDatePicker/FluidDatePicker.js')
|
|
|
209
211
|
var FluidDatePickerInput = require('./components/FluidDatePickerInput/FluidDatePickerInput.js');
|
|
210
212
|
var FluidDropdown = require('./components/FluidDropdown/FluidDropdown.js');
|
|
211
213
|
var FluidDropdown_Skeleton = require('./components/FluidDropdown/FluidDropdown.Skeleton.js');
|
|
212
|
-
var FluidMultiSelect = require('./components/FluidMultiSelect/FluidMultiSelect.js');
|
|
213
|
-
var FluidMultiSelect_Skeleton = require('./components/FluidMultiSelect/FluidMultiSelect.Skeleton.js');
|
|
214
214
|
var LayoutDirection = require('./components/LayoutDirection/LayoutDirection.js');
|
|
215
215
|
var useLayoutDirection = require('./components/LayoutDirection/useLayoutDirection.js');
|
|
216
216
|
var Text = require('./components/Text/Text.js');
|
|
@@ -315,6 +315,7 @@ exports.MenuButton = index$8.MenuButton;
|
|
|
315
315
|
exports.Modal = Modal["default"];
|
|
316
316
|
exports.ModalWrapper = ModalWrapper["default"];
|
|
317
317
|
exports.ActionableNotification = Notification.ActionableNotification;
|
|
318
|
+
exports.Callout = Notification.Callout;
|
|
318
319
|
exports.InlineNotification = Notification.InlineNotification;
|
|
319
320
|
exports.NotificationActionButton = Notification.NotificationActionButton;
|
|
320
321
|
exports.NotificationButton = Notification.NotificationButton;
|
|
@@ -430,6 +431,8 @@ exports.UnorderedList = UnorderedList["default"];
|
|
|
430
431
|
exports.unstable_FeatureFlags = index.FeatureFlags;
|
|
431
432
|
exports.unstable_useFeatureFlag = index.useFeatureFlag;
|
|
432
433
|
exports.unstable_useFeatureFlags = index.useFeatureFlags;
|
|
434
|
+
exports.unstable__FluidMultiSelect = FluidMultiSelect["default"];
|
|
435
|
+
exports.unstable__FluidMultiSelectSkeleton = FluidMultiSelect_Skeleton["default"];
|
|
433
436
|
exports.unstable__FluidSelect = FluidSelect["default"];
|
|
434
437
|
exports.unstable__FluidSelectSkeleton = FluidSelect_Skeleton["default"];
|
|
435
438
|
exports.unstable__FluidSearch = FluidSearch["default"];
|
|
@@ -491,8 +494,6 @@ exports.unstable__FluidDatePicker = FluidDatePicker["default"];
|
|
|
491
494
|
exports.unstable__FluidDatePickerInput = FluidDatePickerInput["default"];
|
|
492
495
|
exports.unstable__FluidDropdown = FluidDropdown["default"];
|
|
493
496
|
exports.unstable__FluidDropdownSkeleton = FluidDropdown_Skeleton["default"];
|
|
494
|
-
exports.unstable__FluidMultiSelect = FluidMultiSelect["default"];
|
|
495
|
-
exports.unstable__FluidMultiSelectSkeleton = FluidMultiSelect_Skeleton["default"];
|
|
496
497
|
exports.unstable_LayoutDirection = LayoutDirection.LayoutDirection;
|
|
497
498
|
exports.unstable_useLayoutDirection = useLayoutDirection.useLayoutDirection;
|
|
498
499
|
exports.unstable_Text = Text.Text;
|
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.68.0-rc.0",
|
|
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.24.7",
|
|
51
51
|
"@carbon/feature-flags": "^0.23.0",
|
|
52
|
-
"@carbon/icons-react": "^11.
|
|
52
|
+
"@carbon/icons-react": "^11.51.0-rc.0",
|
|
53
53
|
"@carbon/layout": "^11.27.0",
|
|
54
|
-
"@carbon/styles": "^1.
|
|
54
|
+
"@carbon/styles": "^1.67.0-rc.0",
|
|
55
55
|
"@floating-ui/react": "^0.26.0",
|
|
56
56
|
"@ibm/telemetry-js": "^1.5.0",
|
|
57
57
|
"classnames": "2.5.1",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"@babel/preset-react": "^7.24.7",
|
|
81
81
|
"@babel/preset-typescript": "^7.24.7",
|
|
82
82
|
"@carbon/test-utils": "^10.33.0",
|
|
83
|
-
"@carbon/themes": "^11.
|
|
84
|
-
"@figma/code-connect": "^1.
|
|
83
|
+
"@carbon/themes": "^11.42.0-rc.0",
|
|
84
|
+
"@figma/code-connect": "^1.1.4",
|
|
85
85
|
"@rollup/plugin-babel": "^6.0.0",
|
|
86
86
|
"@rollup/plugin-commonjs": "^26.0.0",
|
|
87
87
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
@@ -144,5 +144,5 @@
|
|
|
144
144
|
"**/*.scss",
|
|
145
145
|
"**/*.css"
|
|
146
146
|
],
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "99debcc48ebc5f9a5ee5848fef06af4ee6448c30"
|
|
148
148
|
}
|