@carbon/react 1.66.0-rc.0 → 1.67.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 +1031 -1047
- package/es/components/AILabel/index.d.ts +37 -0
- package/es/components/AILabel/index.js +38 -14
- package/es/components/Accordion/Accordion.d.ts +5 -1
- package/es/components/Breadcrumb/BreadcrumbItem.js +1 -1
- package/es/components/Button/Button.d.ts +2 -1
- package/es/components/Button/Button.js +14 -3
- package/es/components/CodeSnippet/CodeSnippet.d.ts +9 -1
- package/es/components/CodeSnippet/CodeSnippet.js +7 -0
- package/es/components/ComboBox/ComboBox.js +37 -14
- package/es/components/ComboButton/index.js +1 -1
- package/es/components/Copy/Copy.d.ts +9 -1
- package/es/components/Copy/Copy.js +6 -0
- package/es/components/CopyButton/CopyButton.d.ts +9 -1
- package/es/components/CopyButton/CopyButton.js +6 -0
- package/es/components/DataTable/TableExpandHeader.d.ts +2 -2
- package/es/components/DataTable/TableExpandHeader.js +1 -1
- package/es/components/DatePicker/DatePicker.js +1 -0
- package/es/components/Dropdown/Dropdown.js +2 -2
- package/es/components/FeatureFlags/index.js +27 -7
- package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.d.ts +15 -0
- package/es/components/FluidNumberInput/FluidNumberInput.d.ts +95 -0
- package/es/components/FluidNumberInput/index.d.ts +11 -0
- package/es/components/FluidSearch/FluidSearch.Skeleton.d.ts +15 -0
- package/es/components/FluidSearch/FluidSearch.Skeleton.js +2 -2
- package/es/components/FluidSearch/FluidSearch.d.ts +73 -0
- package/es/components/FluidSearch/FluidSearch.js +1 -2
- package/es/components/FluidSearch/index.d.ts +11 -0
- package/es/components/FluidSelect/FluidSelect.Skeleton.d.ts +15 -0
- package/es/components/FluidSelect/FluidSelect.Skeleton.js +1 -2
- package/es/components/FluidSelect/FluidSelect.d.ts +57 -0
- package/es/components/FluidSelect/FluidSelect.js +1 -2
- package/es/components/FluidSelect/index.d.ts +13 -0
- package/es/components/FluidSelect/index.js +1 -0
- package/es/components/FluidTextArea/FluidTextArea.Skeleton.d.ts +20 -0
- package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +3 -20
- package/es/components/FluidTextArea/FluidTextArea.d.ts +96 -0
- package/es/components/FluidTextArea/FluidTextArea.js +2 -2
- package/es/components/FluidTextArea/index.d.ts +12 -0
- package/es/components/FluidTextInput/FluidPasswordInput.d.ts +83 -0
- package/es/components/FluidTextInput/FluidPasswordInput.js +87 -0
- package/es/components/FluidTextInput/FluidTextInput.Skeleton.d.ts +15 -0
- package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +2 -2
- package/es/components/FluidTextInput/FluidTextInput.d.ts +70 -0
- package/es/components/FluidTextInput/FluidTextInput.js +6 -4
- package/es/components/FluidTextInput/index.d.ts +15 -0
- package/es/components/FluidTextInput/index.js +2 -0
- package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.d.ts +35 -0
- package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +4 -2
- package/es/components/FluidTimePicker/FluidTimePicker.d.ts +45 -0
- package/es/components/FluidTimePicker/FluidTimePicker.js +5 -5
- package/es/components/FluidTimePicker/index.d.ts +13 -0
- package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.d.ts +41 -0
- package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +2 -2
- package/es/components/FluidTimePickerSelect/index.d.ts +11 -0
- package/es/components/IconButton/index.d.ts +4 -0
- package/es/components/IconButton/index.js +6 -0
- package/es/components/Menu/Menu.js +2 -1
- package/es/components/MultiSelect/FilterableMultiSelect.js +6 -5
- package/es/components/MultiSelect/MultiSelect.js +2 -1
- package/es/components/Notification/Notification.js +4 -2
- package/es/components/OverflowMenu/next/index.js +3 -1
- package/es/components/OverflowMenuV2/index.js +1 -3
- package/es/components/Pagination/Pagination.js +1 -1
- package/es/components/Popover/index.js +2 -2
- package/es/components/Tabs/Tabs.js +1 -1
- package/es/components/Tag/DismissibleTag.d.ts +9 -1
- package/es/components/Tag/DismissibleTag.js +7 -3
- package/es/components/Tag/Tag.js +2 -2
- package/es/components/Toggletip/index.js +2 -1
- package/es/components/UIShell/HeaderPanel.js +1 -1
- package/es/index.js +12 -11
- package/es/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +757 -4
- package/es/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +76 -0
- package/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +106 -6
- package/lib/components/AILabel/index.d.ts +37 -0
- package/lib/components/AILabel/index.js +38 -14
- package/lib/components/Accordion/Accordion.d.ts +5 -1
- package/lib/components/Breadcrumb/BreadcrumbItem.js +1 -1
- package/lib/components/Button/Button.d.ts +2 -1
- package/lib/components/Button/Button.js +13 -2
- package/lib/components/CodeSnippet/CodeSnippet.d.ts +9 -1
- package/lib/components/CodeSnippet/CodeSnippet.js +7 -0
- package/lib/components/ComboBox/ComboBox.js +38 -15
- package/lib/components/ComboButton/index.js +2 -2
- package/lib/components/Copy/Copy.d.ts +9 -1
- package/lib/components/Copy/Copy.js +6 -0
- package/lib/components/CopyButton/CopyButton.d.ts +9 -1
- package/lib/components/CopyButton/CopyButton.js +6 -0
- package/lib/components/DataTable/TableExpandHeader.d.ts +2 -2
- package/lib/components/DataTable/TableExpandHeader.js +1 -1
- package/lib/components/DatePicker/DatePicker.js +1 -0
- package/lib/components/Dropdown/Dropdown.js +3 -3
- package/lib/components/FeatureFlags/index.js +27 -7
- package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.d.ts +15 -0
- package/lib/components/FluidNumberInput/FluidNumberInput.d.ts +95 -0
- package/lib/components/FluidNumberInput/index.d.ts +11 -0
- package/lib/components/FluidSearch/FluidSearch.Skeleton.d.ts +15 -0
- package/lib/components/FluidSearch/FluidSearch.Skeleton.js +2 -2
- package/lib/components/FluidSearch/FluidSearch.d.ts +73 -0
- package/lib/components/FluidSearch/FluidSearch.js +1 -2
- package/lib/components/FluidSearch/index.d.ts +11 -0
- package/lib/components/FluidSelect/FluidSelect.Skeleton.d.ts +15 -0
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +1 -2
- package/lib/components/FluidSelect/FluidSelect.d.ts +57 -0
- package/lib/components/FluidSelect/FluidSelect.js +1 -2
- package/lib/components/FluidSelect/index.d.ts +13 -0
- package/lib/components/FluidSelect/index.js +2 -0
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.d.ts +20 -0
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +3 -22
- package/lib/components/FluidTextArea/FluidTextArea.d.ts +96 -0
- package/lib/components/FluidTextArea/FluidTextArea.js +2 -2
- package/lib/components/FluidTextArea/index.d.ts +12 -0
- package/lib/components/FluidTextInput/FluidPasswordInput.d.ts +83 -0
- package/lib/components/FluidTextInput/FluidPasswordInput.js +93 -0
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.d.ts +15 -0
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +2 -2
- package/lib/components/FluidTextInput/FluidTextInput.d.ts +70 -0
- package/lib/components/FluidTextInput/FluidTextInput.js +6 -4
- package/lib/components/FluidTextInput/index.d.ts +15 -0
- package/lib/components/FluidTextInput/index.js +3 -0
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.d.ts +35 -0
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +4 -2
- package/lib/components/FluidTimePicker/FluidTimePicker.d.ts +45 -0
- package/lib/components/FluidTimePicker/FluidTimePicker.js +6 -6
- package/lib/components/FluidTimePicker/index.d.ts +13 -0
- package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.d.ts +41 -0
- package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +2 -2
- package/lib/components/FluidTimePickerSelect/index.d.ts +11 -0
- package/lib/components/IconButton/index.d.ts +4 -0
- package/lib/components/IconButton/index.js +6 -0
- package/lib/components/Menu/Menu.js +2 -1
- package/lib/components/MultiSelect/FilterableMultiSelect.js +7 -6
- package/lib/components/MultiSelect/MultiSelect.js +3 -2
- package/lib/components/Notification/Notification.js +4 -2
- package/lib/components/OverflowMenu/next/index.js +3 -1
- package/lib/components/OverflowMenuV2/index.js +1 -3
- package/lib/components/Pagination/Pagination.js +1 -1
- package/lib/components/Popover/index.js +3 -3
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tag/DismissibleTag.d.ts +9 -1
- package/lib/components/Tag/DismissibleTag.js +7 -3
- package/lib/components/Tag/Tag.js +2 -2
- package/lib/components/Toggletip/index.js +2 -1
- package/lib/components/UIShell/HeaderPanel.js +1 -1
- package/lib/index.js +23 -22
- package/lib/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +763 -2
- package/lib/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +80 -0
- package/lib/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +121 -5
- package/package.json +10 -10
|
@@ -43,6 +43,10 @@ export interface DismissibleTagBaseProps {
|
|
|
43
43
|
* Provide text to be rendered inside of a the tag.
|
|
44
44
|
*/
|
|
45
45
|
text?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Provide a custom `title` to be inserted in the tag.
|
|
48
|
+
*/
|
|
49
|
+
tagTitle?: string;
|
|
46
50
|
/**
|
|
47
51
|
* Text to show on clear filters
|
|
48
52
|
*/
|
|
@@ -54,7 +58,7 @@ export interface DismissibleTagBaseProps {
|
|
|
54
58
|
}
|
|
55
59
|
export type DismissibleTagProps<T extends React.ElementType> = PolymorphicProps<T, DismissibleTagBaseProps>;
|
|
56
60
|
declare const DismissibleTag: {
|
|
57
|
-
<T extends React.ElementType<any, keyof React.JSX.IntrinsicElements>>({ className, disabled, id, renderIcon, title, onClose, slug, size, text, type, ...other }: DismissibleTagProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
<T extends React.ElementType<any, keyof React.JSX.IntrinsicElements>>({ className, disabled, id, renderIcon, title, onClose, slug, size, text, tagTitle, type, ...other }: DismissibleTagProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
58
62
|
propTypes: {
|
|
59
63
|
/**
|
|
60
64
|
* Provide a custom className that is applied to the containing <span>
|
|
@@ -90,6 +94,10 @@ declare const DismissibleTag: {
|
|
|
90
94
|
* Provide text to be rendered inside of a the tag.
|
|
91
95
|
*/
|
|
92
96
|
text: PropTypes.Requireable<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Provide a custom `title` to be inserted in the tag.
|
|
99
|
+
*/
|
|
100
|
+
tagTitle: PropTypes.Requireable<string>;
|
|
93
101
|
/**
|
|
94
102
|
* Text to show on clear filters
|
|
95
103
|
*/
|
|
@@ -31,6 +31,7 @@ const DismissibleTag = _ref => {
|
|
|
31
31
|
slug,
|
|
32
32
|
size,
|
|
33
33
|
text,
|
|
34
|
+
tagTitle,
|
|
34
35
|
type,
|
|
35
36
|
...other
|
|
36
37
|
} = _ref;
|
|
@@ -76,7 +77,7 @@ const DismissibleTag = _ref => {
|
|
|
76
77
|
}, otherProps), /*#__PURE__*/React__default.createElement("div", {
|
|
77
78
|
className: `${prefix}--interactive--tag-children`
|
|
78
79
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
79
|
-
title: text,
|
|
80
|
+
title: tagTitle ? tagTitle : text,
|
|
80
81
|
className: `${prefix}--tag__label`
|
|
81
82
|
}, text), /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
82
83
|
label: isEllipsisApplied ? dismissLabel : title,
|
|
@@ -89,8 +90,7 @@ const DismissibleTag = _ref => {
|
|
|
89
90
|
className: `${prefix}--tag__close-icon`,
|
|
90
91
|
onClick: handleClose,
|
|
91
92
|
disabled: disabled,
|
|
92
|
-
"aria-label": title
|
|
93
|
-
title: title
|
|
93
|
+
"aria-label": title
|
|
94
94
|
}, _Close || (_Close = /*#__PURE__*/React__default.createElement(Close, null)))), normalizedSlug));
|
|
95
95
|
};
|
|
96
96
|
DismissibleTag.propTypes = {
|
|
@@ -128,6 +128,10 @@ DismissibleTag.propTypes = {
|
|
|
128
128
|
* Provide text to be rendered inside of a the tag.
|
|
129
129
|
*/
|
|
130
130
|
text: PropTypes.string,
|
|
131
|
+
/**
|
|
132
|
+
* Provide a custom `title` to be inserted in the tag.
|
|
133
|
+
*/
|
|
134
|
+
tagTitle: PropTypes.string,
|
|
131
135
|
/**
|
|
132
136
|
* Text to show on clear filters
|
|
133
137
|
*/
|
package/es/components/Tag/Tag.js
CHANGED
|
@@ -131,10 +131,10 @@ const Tag = /*#__PURE__*/React__default.forwardRef(function Tag(_ref, forwardRef
|
|
|
131
131
|
definition: children !== null && children !== undefined ? children : typeText,
|
|
132
132
|
className: `${prefix}--definition--tooltip--tag`
|
|
133
133
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
134
|
-
title: children !== null && children !== undefined ? children : typeText,
|
|
134
|
+
title: children !== null && children !== undefined && typeof children === 'string' ? children : typeText,
|
|
135
135
|
className: labelClasses
|
|
136
136
|
}, children !== null && children !== undefined ? children : typeText)) : /*#__PURE__*/React__default.createElement(Text, {
|
|
137
|
-
title: children !== null && children !== undefined ? children : typeText,
|
|
137
|
+
title: children !== null && children !== undefined && typeof children === 'string' ? children : typeText,
|
|
138
138
|
className: labelClasses
|
|
139
139
|
}, children !== null && children !== undefined ? children : typeText), normalizedSlug);
|
|
140
140
|
});
|
|
@@ -74,7 +74,8 @@ function Toggletip(_ref2) {
|
|
|
74
74
|
const prefix = usePrefix();
|
|
75
75
|
const id = useId();
|
|
76
76
|
const className = cx(`${prefix}--toggletip`, customClassName, {
|
|
77
|
-
[`${prefix}--toggletip--open`]: open
|
|
77
|
+
[`${prefix}--toggletip--open`]: open,
|
|
78
|
+
[`${prefix}--autoalign`]: autoAlign
|
|
78
79
|
});
|
|
79
80
|
const actions = {
|
|
80
81
|
toggle: () => {
|
|
@@ -40,7 +40,7 @@ const HeaderPanel = /*#__PURE__*/React__default.forwardRef(function HeaderPanel(
|
|
|
40
40
|
const eventHandlers = {};
|
|
41
41
|
if (addFocusListeners) {
|
|
42
42
|
eventHandlers.onBlur = event => {
|
|
43
|
-
if (!event.currentTarget.contains(event.relatedTarget) && !lastClickedElement?.classList?.contains(
|
|
43
|
+
if (!event.currentTarget.contains(event.relatedTarget) && !lastClickedElement?.classList?.contains(`${prefix}--switcher__item-link`)) {
|
|
44
44
|
setExpandedState(false);
|
|
45
45
|
setLastClickedElement(null);
|
|
46
46
|
if (expanded) {
|
package/es/index.js
CHANGED
|
@@ -159,6 +159,18 @@ export { default as SideNavMenuItem } from './components/UIShell/SideNavMenuItem
|
|
|
159
159
|
export { default as SideNavSwitcher } from './components/UIShell/SideNavSwitcher.js';
|
|
160
160
|
export { default as UnorderedList } from './components/UnorderedList/UnorderedList.js';
|
|
161
161
|
export { FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags } from './components/FeatureFlags/index.js';
|
|
162
|
+
export { default as unstable__FluidSelect } from './components/FluidSelect/FluidSelect.js';
|
|
163
|
+
export { default as unstable__FluidSelectSkeleton } from './components/FluidSelect/FluidSelect.Skeleton.js';
|
|
164
|
+
export { default as unstable__FluidSearch } from './components/FluidSearch/FluidSearch.js';
|
|
165
|
+
export { default as unstable__FluidSearchSkeleton } from './components/FluidSearch/FluidSearch.Skeleton.js';
|
|
166
|
+
export { default as unstable__FluidTextArea } from './components/FluidTextArea/FluidTextArea.js';
|
|
167
|
+
export { default as unstable__FluidTextAreaSkeleton } from './components/FluidTextArea/FluidTextArea.Skeleton.js';
|
|
168
|
+
export { default as unstable__FluidTextInput } from './components/FluidTextInput/FluidTextInput.js';
|
|
169
|
+
import './components/FluidTextInput/FluidPasswordInput.js';
|
|
170
|
+
export { default as unstable__FluidTextInputSkeleton } from './components/FluidTextInput/FluidTextInput.Skeleton.js';
|
|
171
|
+
export { default as unstable__FluidTimePicker } from './components/FluidTimePicker/FluidTimePicker.js';
|
|
172
|
+
export { default as unstable__FluidTimePickerSkeleton } from './components/FluidTimePicker/FluidTimePicker.Skeleton.js';
|
|
173
|
+
export { default as unstable__FluidTimePickerSelect } from './components/FluidTimePickerSelect/FluidTimePickerSelect.js';
|
|
162
174
|
export { Heading, Section } from './components/Heading/index.js';
|
|
163
175
|
export { IconButton, IconButtonKinds } from './components/IconButton/index.js';
|
|
164
176
|
export { Layer, useLayer } from './components/Layer/index.js';
|
|
@@ -179,11 +191,6 @@ export { GlobalTheme, Theme, ThemeContext, usePrefersDarkScheme, useTheme } from
|
|
|
179
191
|
export { PrefixContext, usePrefix } from './internal/usePrefix.js';
|
|
180
192
|
export { useIdPrefix } from './internal/useIdPrefix.js';
|
|
181
193
|
export { default as unstable__FluidDatePickerSkeleton } from './components/FluidDatePicker/FluidDatePicker.Skeleton.js';
|
|
182
|
-
export { default as unstable__FluidSearchSkeleton } from './components/FluidSearch/FluidSearch.Skeleton.js';
|
|
183
|
-
export { default as unstable__FluidTextArea } from './components/FluidTextArea/FluidTextArea.js';
|
|
184
|
-
export { default as unstable__FluidTextAreaSkeleton } from './components/FluidTextArea/FluidTextArea.Skeleton.js';
|
|
185
|
-
export { default as unstable__FluidTextInput } from './components/FluidTextInput/FluidTextInput.js';
|
|
186
|
-
export { default as unstable__FluidTextInputSkeleton } from './components/FluidTextInput/FluidTextInput.Skeleton.js';
|
|
187
194
|
export { default as unstable_PageSelector } from './components/Pagination/experimental/PageSelector.js';
|
|
188
195
|
export { default as unstable_Pagination } from './components/Pagination/experimental/Pagination.js';
|
|
189
196
|
export { default as ContainedListItem } from './components/ContainedList/ContainedListItem/ContainedListItem.js';
|
|
@@ -200,12 +207,6 @@ export { default as unstable__FluidDropdown } from './components/FluidDropdown/F
|
|
|
200
207
|
export { default as unstable__FluidDropdownSkeleton } from './components/FluidDropdown/FluidDropdown.Skeleton.js';
|
|
201
208
|
export { default as unstable__FluidMultiSelect } from './components/FluidMultiSelect/FluidMultiSelect.js';
|
|
202
209
|
export { default as unstable__FluidMultiSelectSkeleton } from './components/FluidMultiSelect/FluidMultiSelect.Skeleton.js';
|
|
203
|
-
export { default as unstable__FluidSelect } from './components/FluidSelect/FluidSelect.js';
|
|
204
|
-
export { default as unstable__FluidSelectSkeleton } from './components/FluidSelect/FluidSelect.Skeleton.js';
|
|
205
|
-
export { default as unstable__FluidSearch } from './components/FluidSearch/FluidSearch.js';
|
|
206
|
-
export { default as unstable__FluidTimePicker } from './components/FluidTimePicker/FluidTimePicker.js';
|
|
207
|
-
export { default as unstable__FluidTimePickerSkeleton } from './components/FluidTimePicker/FluidTimePicker.Skeleton.js';
|
|
208
|
-
export { default as unstable__FluidTimePickerSelect } from './components/FluidTimePickerSelect/FluidTimePickerSelect.js';
|
|
209
210
|
export { LayoutDirection as unstable_LayoutDirection } from './components/LayoutDirection/LayoutDirection.js';
|
|
210
211
|
export { useLayoutDirection as unstable_useLayoutDirection } from './components/LayoutDirection/useLayoutDirection.js';
|
|
211
212
|
export { Text as unstable_Text } from './components/Text/Text.js';
|