@carbon/react 1.80.1 → 1.81.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 +781 -781
- package/es/components/Accordion/AccordionItem.d.ts +2 -2
- package/es/components/AspectRatio/AspectRatio.d.ts +2 -2
- package/es/components/Button/Button.js +3 -0
- package/es/components/Button/ButtonBase.d.ts +2 -2
- package/es/components/ChatButton/ChatButton.js +5 -3
- package/es/components/CodeSnippet/CodeSnippet.js +2 -0
- package/es/components/ComboBox/ComboBox.d.ts +1 -1
- package/es/components/ComposedModal/ComposedModal.d.ts +1 -1
- package/es/components/ComposedModal/ComposedModal.js +1 -2
- package/es/components/ComposedModal/ModalFooter.js +0 -1
- package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +0 -1
- package/es/components/ContentSwitcher/ContentSwitcher.d.ts +1 -1
- package/es/components/ContextMenu/useContextMenu.d.ts +1 -1
- package/es/components/DataTable/DataTable.d.ts +5 -5
- package/es/components/DataTable/DataTable.js +1 -1
- package/es/components/DataTable/TableActionList.d.ts +1 -1
- package/es/components/DataTable/TableExpandHeader.d.ts +1 -1
- package/es/components/DataTable/TableHead.d.ts +1 -1
- package/es/components/DataTable/TableToolbarContent.d.ts +1 -1
- package/es/components/DataTable/TableToolbarSearch.d.ts +1 -1
- package/es/components/DatePickerInput/DatePickerInput.d.ts +2 -2
- package/es/components/Dropdown/Dropdown.d.ts +1 -1
- package/es/components/FeatureFlags/index.d.ts +1 -1
- package/es/components/FileUploader/FileUploader.d.ts +6 -1
- package/es/components/FileUploader/FileUploader.js +3 -1
- package/es/components/FileUploader/FileUploaderButton.d.ts +1 -1
- package/es/components/FileUploader/FileUploaderDropContainer.d.ts +1 -1
- package/es/components/FluidMultiSelect/FluidFilterableMultiSelect.d.ts +3 -3
- package/es/components/FluidMultiSelect/FluidMultiSelect.d.ts +2 -2
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +6 -4
- package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +40 -0
- package/es/components/FluidNumberInput/FluidNumberInput.js +123 -0
- package/es/components/FluidTextInput/FluidTextInput.js +2 -2
- package/es/components/Grid/Column.js +1 -1
- package/es/components/Grid/GridTypes.d.ts +6 -1
- package/es/components/Layer/LayerLevel.d.ts +3 -3
- package/es/components/Layer/LayerLevel.js +4 -3
- package/es/components/Layer/index.d.ts +4 -2
- package/es/components/Layer/index.js +3 -2
- package/es/components/Link/Link.js +3 -1
- package/es/components/Menu/Menu.d.ts +1 -1
- package/es/components/Menu/MenuContext.d.ts +1 -1
- package/es/components/Modal/Modal.js +5 -2
- package/es/components/ModalWrapper/ModalWrapper.d.ts +2 -2
- package/es/components/MultiSelect/FilterableMultiSelect.d.ts +3 -3
- package/es/components/MultiSelect/FilterableMultiSelect.js +4 -3
- package/es/components/MultiSelect/MultiSelect.d.ts +2 -6
- package/es/components/MultiSelect/MultiSelect.js +18 -3
- package/es/components/MultiSelect/index.d.ts +2 -4
- package/es/components/NumberInput/NumberInput.js +2 -1
- package/es/components/OverflowMenu/OverflowMenu.d.ts +7 -1
- package/es/components/OverflowMenu/OverflowMenu.js +69 -17
- package/es/components/OverflowMenu/index.d.ts +3 -5
- package/es/components/OverflowMenu/index.js +9 -4
- package/es/components/OverflowMenu/next/index.js +0 -1
- package/es/components/OverflowMenuItem/OverflowMenuItem.d.ts +4 -0
- package/es/components/PageHeader/PageHeader.js +1 -1
- package/es/components/PaginationNav/PaginationNav.d.ts +1 -1
- package/es/components/PaginationNav/PaginationNav.js +2 -1
- package/es/components/Popover/index.d.ts +3 -2
- package/es/components/Popover/index.js +10 -5
- package/es/components/Portal/index.d.ts +1 -1
- package/es/components/Search/Search.js +0 -1
- package/es/components/SkeletonText/SkeletonText.js +3 -1
- package/es/components/Slider/Slider.d.ts +3 -13
- package/es/components/Slider/Slider.js +2 -14
- package/es/components/Tabs/Tabs.d.ts +2 -2
- package/es/components/Tabs/Tabs.js +8 -6
- package/es/components/Tabs/usePressable.js +1 -1
- package/es/components/Tag/Tag.js +9 -2
- package/es/components/Text/Text.js +3 -2
- package/es/components/TextInput/ControlledPasswordInput.d.ts +1 -1
- package/es/components/TextInput/ControlledPasswordInput.js +0 -6
- package/es/components/TextInput/TextInput.d.ts +1 -1
- package/es/components/TextInput/TextInput.js +0 -4
- package/es/components/TextInput/index.d.ts +6 -0
- package/es/components/TextInput/index.js +0 -8
- package/es/components/Tile/Tile.js +0 -1
- package/es/components/Toggle/Toggle.d.ts +1 -1
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.d.ts +9 -14
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +37 -41
- package/es/components/Toggletip/index.js +11 -8
- package/es/components/Tooltip/Tooltip.d.ts +1 -1
- package/es/components/TreeView/TreeView.d.ts +1 -1
- package/es/components/UIShell/Content.d.ts +14 -1
- package/es/components/UIShell/HeaderGlobalBar.d.ts +1 -1
- package/es/components/UIShell/HeaderMenu.d.ts +2 -99
- package/es/components/UIShell/HeaderMenu.js +10 -3
- package/es/components/UIShell/HeaderMenuButton.d.ts +1 -98
- package/es/components/UIShell/HeaderMenuItem.d.ts +3 -4
- package/es/components/UIShell/HeaderMenuItem.js +3 -3
- package/es/components/UIShell/HeaderName.js +1 -1
- package/es/components/UIShell/HeaderNavigation.d.ts +0 -97
- package/es/components/UIShell/Link.d.ts +8 -8
- package/es/components/UIShell/Link.js +8 -5
- package/es/components/UIShell/SideNav.d.ts +3 -3
- package/es/components/UIShell/SideNav.js +1 -1
- package/es/components/UIShell/SideNavHeader.js +0 -1
- package/es/components/UIShell/SideNavLink.d.ts +3 -4
- package/es/components/UIShell/SideNavLink.js +8 -3
- package/es/components/UIShell/SideNavMenu.js +0 -1
- package/es/components/UIShell/SideNavMenuItem.d.ts +1 -49
- package/es/components/UIShell/SideNavMenuItem.js +1 -1
- package/es/components/UIShell/SideNavSwitcher.js +0 -1
- package/es/components/UIShell/SwitcherItem.d.ts +2 -2
- package/es/components/UIShell/SwitcherItem.js +1 -1
- package/es/index.d.ts +2 -2
- package/es/index.js +7 -7
- package/es/internal/FloatingMenu.js +2 -1
- package/es/internal/clamp.d.ts +10 -0
- package/es/internal/clamp.js +13 -0
- package/es/internal/useEvent.d.ts +9 -0
- package/es/internal/useEvent.js +8 -49
- package/es/internal/useId.js +1 -1
- package/es/internal/useMatchMedia.d.ts +7 -2
- package/es/internal/useMatchMedia.js +9 -10
- package/es/internal/useNoInteractiveChildren.js +4 -2
- package/es/internal/useOutsideClick.d.ts +1 -1
- package/es/prop-types/AriaPropTypes.js +1 -1
- package/es/prop-types/isRequiredOneOf.d.ts +16 -0
- package/es/prop-types/isRequiredOneOf.js +11 -9
- package/es/tools/setupGetInstanceId.d.ts +12 -0
- package/es/tools/setupGetInstanceId.js +7 -8
- package/es/tools/toggleClass.d.ts +14 -0
- package/es/tools/toggleClass.js +9 -10
- package/es/tools/wrapComponent.d.ts +1 -1
- package/es/types/common.d.ts +1 -6
- package/lib/components/Accordion/AccordionItem.d.ts +2 -2
- package/lib/components/AspectRatio/AspectRatio.d.ts +2 -2
- package/lib/components/Button/Button.js +3 -0
- package/lib/components/Button/ButtonBase.d.ts +2 -2
- package/lib/components/ChatButton/ChatButton.js +5 -3
- package/lib/components/CodeSnippet/CodeSnippet.js +2 -0
- package/lib/components/ComboBox/ComboBox.d.ts +1 -1
- package/lib/components/ComposedModal/ComposedModal.d.ts +1 -1
- package/lib/components/ComposedModal/ComposedModal.js +2 -3
- package/lib/components/ComposedModal/ModalFooter.js +0 -1
- package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +0 -1
- package/lib/components/ContentSwitcher/ContentSwitcher.d.ts +1 -1
- package/lib/components/ContextMenu/useContextMenu.d.ts +1 -1
- package/lib/components/DataTable/DataTable.d.ts +5 -5
- package/lib/components/DataTable/DataTable.js +1 -1
- package/lib/components/DataTable/TableActionList.d.ts +1 -1
- package/lib/components/DataTable/TableExpandHeader.d.ts +1 -1
- package/lib/components/DataTable/TableHead.d.ts +1 -1
- package/lib/components/DataTable/TableToolbarContent.d.ts +1 -1
- package/lib/components/DataTable/TableToolbarSearch.d.ts +1 -1
- package/lib/components/DatePickerInput/DatePickerInput.d.ts +2 -2
- package/lib/components/Dropdown/Dropdown.d.ts +1 -1
- package/lib/components/FeatureFlags/index.d.ts +1 -1
- package/lib/components/FileUploader/FileUploader.d.ts +6 -1
- package/lib/components/FileUploader/FileUploader.js +3 -1
- package/lib/components/FileUploader/FileUploaderButton.d.ts +1 -1
- package/lib/components/FileUploader/FileUploaderDropContainer.d.ts +1 -1
- package/lib/components/FluidMultiSelect/FluidFilterableMultiSelect.d.ts +3 -3
- package/lib/components/FluidMultiSelect/FluidMultiSelect.d.ts +2 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +7 -5
- package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +50 -0
- package/lib/components/FluidNumberInput/FluidNumberInput.js +133 -0
- package/lib/components/FluidTextInput/FluidTextInput.js +2 -2
- package/lib/components/Grid/Column.js +1 -1
- package/lib/components/Grid/GridTypes.d.ts +6 -1
- package/lib/components/Layer/LayerLevel.d.ts +3 -3
- package/lib/components/Layer/LayerLevel.js +4 -2
- package/lib/components/Layer/index.d.ts +4 -2
- package/lib/components/Layer/index.js +2 -1
- package/lib/components/Link/Link.js +3 -1
- package/lib/components/Menu/Menu.d.ts +1 -1
- package/lib/components/Menu/MenuContext.d.ts +1 -1
- package/lib/components/Modal/Modal.js +6 -3
- package/lib/components/ModalWrapper/ModalWrapper.d.ts +2 -2
- package/lib/components/MultiSelect/FilterableMultiSelect.d.ts +3 -3
- package/lib/components/MultiSelect/FilterableMultiSelect.js +3 -2
- package/lib/components/MultiSelect/MultiSelect.d.ts +2 -6
- package/lib/components/MultiSelect/MultiSelect.js +17 -2
- package/lib/components/MultiSelect/index.d.ts +2 -4
- package/lib/components/NumberInput/NumberInput.js +2 -1
- package/lib/components/OverflowMenu/OverflowMenu.d.ts +7 -1
- package/lib/components/OverflowMenu/OverflowMenu.js +69 -17
- package/lib/components/OverflowMenu/index.d.ts +3 -5
- package/lib/components/OverflowMenu/index.js +8 -3
- package/lib/components/OverflowMenu/next/index.js +0 -1
- package/lib/components/OverflowMenuItem/OverflowMenuItem.d.ts +4 -0
- package/lib/components/PageHeader/PageHeader.js +1 -1
- package/lib/components/PaginationNav/PaginationNav.d.ts +1 -1
- package/lib/components/PaginationNav/PaginationNav.js +2 -1
- package/lib/components/Popover/index.d.ts +3 -2
- package/lib/components/Popover/index.js +10 -5
- package/lib/components/Portal/index.d.ts +1 -1
- package/lib/components/Search/Search.js +0 -1
- package/lib/components/SkeletonText/SkeletonText.js +3 -1
- package/lib/components/Slider/Slider.d.ts +3 -13
- package/lib/components/Slider/Slider.js +2 -14
- package/lib/components/Tabs/Tabs.d.ts +2 -2
- package/lib/components/Tabs/Tabs.js +7 -5
- package/lib/components/Tabs/usePressable.js +1 -1
- package/lib/components/Tag/Tag.js +9 -2
- package/lib/components/Text/Text.js +2 -1
- package/lib/components/TextInput/ControlledPasswordInput.d.ts +1 -1
- package/lib/components/TextInput/ControlledPasswordInput.js +0 -6
- package/lib/components/TextInput/TextInput.d.ts +1 -1
- package/lib/components/TextInput/TextInput.js +0 -4
- package/lib/components/TextInput/index.d.ts +6 -0
- package/lib/components/TextInput/index.js +1 -7
- package/lib/components/Tile/Tile.js +0 -1
- package/lib/components/Toggle/Toggle.d.ts +1 -1
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.d.ts +9 -14
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +34 -39
- package/lib/components/Toggletip/index.js +11 -8
- package/lib/components/Tooltip/Tooltip.d.ts +1 -1
- package/lib/components/TreeView/TreeView.d.ts +1 -1
- package/lib/components/UIShell/Content.d.ts +14 -1
- package/lib/components/UIShell/HeaderGlobalBar.d.ts +1 -1
- package/lib/components/UIShell/HeaderMenu.d.ts +2 -99
- package/lib/components/UIShell/HeaderMenu.js +10 -3
- package/lib/components/UIShell/HeaderMenuButton.d.ts +1 -98
- package/lib/components/UIShell/HeaderMenuItem.d.ts +3 -4
- package/lib/components/UIShell/HeaderMenuItem.js +3 -3
- package/lib/components/UIShell/HeaderName.js +1 -1
- package/lib/components/UIShell/HeaderNavigation.d.ts +0 -97
- package/lib/components/UIShell/Link.d.ts +8 -8
- package/lib/components/UIShell/Link.js +7 -5
- package/lib/components/UIShell/SideNav.d.ts +3 -3
- package/lib/components/UIShell/SideNav.js +1 -1
- package/lib/components/UIShell/SideNavHeader.js +0 -1
- package/lib/components/UIShell/SideNavLink.d.ts +3 -4
- package/lib/components/UIShell/SideNavLink.js +8 -3
- package/lib/components/UIShell/SideNavMenu.js +0 -1
- package/lib/components/UIShell/SideNavMenuItem.d.ts +1 -49
- package/lib/components/UIShell/SideNavMenuItem.js +1 -1
- package/lib/components/UIShell/SideNavSwitcher.js +0 -1
- package/lib/components/UIShell/SwitcherItem.d.ts +2 -2
- package/lib/components/UIShell/SwitcherItem.js +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +13 -11
- package/lib/internal/FloatingMenu.js +2 -1
- package/lib/internal/clamp.d.ts +10 -0
- package/lib/internal/clamp.js +17 -0
- package/lib/internal/useEvent.d.ts +9 -0
- package/lib/internal/useEvent.js +8 -49
- package/lib/internal/useId.js +1 -1
- package/lib/internal/useMatchMedia.d.ts +7 -2
- package/lib/internal/useMatchMedia.js +9 -10
- package/lib/internal/useNoInteractiveChildren.js +4 -2
- package/lib/internal/useOutsideClick.d.ts +1 -1
- package/lib/prop-types/AriaPropTypes.js +1 -1
- package/lib/prop-types/isRequiredOneOf.d.ts +16 -0
- package/lib/prop-types/isRequiredOneOf.js +11 -9
- package/lib/tools/setupGetInstanceId.d.ts +12 -0
- package/lib/tools/setupGetInstanceId.js +7 -8
- package/lib/tools/toggleClass.d.ts +14 -0
- package/lib/tools/toggleClass.js +9 -10
- package/lib/tools/wrapComponent.d.ts +1 -1
- package/lib/types/common.d.ts +1 -6
- package/package.json +14 -14
- package/telemetry.yml +11 -12
- package/es/components/MultiSelect/index.js +0 -13
- package/es/internal/ClickListener.d.ts +0 -13
- package/es/internal/ClickListener.js +0 -47
- package/lib/components/MultiSelect/index.js +0 -19
- package/lib/internal/ClickListener.d.ts +0 -13
- package/lib/internal/ClickListener.js +0 -51
|
@@ -319,9 +319,9 @@ declare class Slider extends PureComponent<SliderProps> {
|
|
|
319
319
|
correctedPosition: null;
|
|
320
320
|
isRtl: boolean;
|
|
321
321
|
};
|
|
322
|
-
thumbRef: React.RefObject<HTMLDivElement>;
|
|
323
|
-
thumbRefUpper: React.RefObject<HTMLDivElement>;
|
|
324
|
-
filledTrackRef: React.RefObject<HTMLDivElement>;
|
|
322
|
+
thumbRef: React.RefObject<HTMLDivElement | null>;
|
|
323
|
+
thumbRefUpper: React.RefObject<HTMLDivElement | null>;
|
|
324
|
+
filledTrackRef: React.RefObject<HTMLDivElement | null>;
|
|
325
325
|
element: HTMLDivElement | null;
|
|
326
326
|
inputId: string;
|
|
327
327
|
track: HTMLDivElement | null | undefined;
|
|
@@ -339,16 +339,6 @@ declare class Slider extends PureComponent<SliderProps> {
|
|
|
339
339
|
* should be called.
|
|
340
340
|
*/
|
|
341
341
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
342
|
-
/**
|
|
343
|
-
* Synonymous to ECMA2017+ `Math.clamp`.
|
|
344
|
-
*
|
|
345
|
-
* @param {number} val
|
|
346
|
-
* @param {number} min
|
|
347
|
-
* @param {number} max
|
|
348
|
-
*
|
|
349
|
-
* @returns `val` if `max>=val>=min`; `min` if `val<min`; `max` if `val>max`.
|
|
350
|
-
*/
|
|
351
|
-
clamp(val: any, min: any, max: any): number;
|
|
352
342
|
/**
|
|
353
343
|
* Rounds a given value to the nearest step defined by the slider's `step`
|
|
354
344
|
* prop.
|
|
@@ -19,6 +19,7 @@ import '../Text/index.js';
|
|
|
19
19
|
import '../Tooltip/DefinitionTooltip.js';
|
|
20
20
|
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
21
21
|
import { LowerHandle, LowerHandleFocus, UpperHandle, UpperHandleFocus } from './SliderHandles.js';
|
|
22
|
+
import { clamp } from '../../internal/clamp.js';
|
|
22
23
|
import { throttle } from '../../node_modules/es-toolkit/dist/compat/function/throttle.mjs.js';
|
|
23
24
|
import { Text } from '../Text/Text.js';
|
|
24
25
|
|
|
@@ -564,7 +565,7 @@ class Slider extends PureComponent {
|
|
|
564
565
|
range
|
|
565
566
|
});
|
|
566
567
|
/** `leftPercentRaw` clamped between 0 and 1. */
|
|
567
|
-
const leftPercent =
|
|
568
|
+
const leftPercent = clamp(leftPercentRaw, 0, 1);
|
|
568
569
|
if (useRawValue) {
|
|
569
570
|
return {
|
|
570
571
|
value,
|
|
@@ -855,19 +856,6 @@ class Slider extends PureComponent {
|
|
|
855
856
|
}
|
|
856
857
|
}
|
|
857
858
|
|
|
858
|
-
/**
|
|
859
|
-
* Synonymous to ECMA2017+ `Math.clamp`.
|
|
860
|
-
*
|
|
861
|
-
* @param {number} val
|
|
862
|
-
* @param {number} min
|
|
863
|
-
* @param {number} max
|
|
864
|
-
*
|
|
865
|
-
* @returns `val` if `max>=val>=min`; `min` if `val<min`; `max` if `val>max`.
|
|
866
|
-
*/
|
|
867
|
-
clamp(val, min, max) {
|
|
868
|
-
return Math.max(min, Math.min(val, max));
|
|
869
|
-
}
|
|
870
|
-
|
|
871
859
|
/**
|
|
872
860
|
* Rounds a given value to the nearest step defined by the slider's `step`
|
|
873
861
|
* prop.
|
|
@@ -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 React, { type ReactNode, type MouseEvent, type KeyboardEvent, type HTMLAttributes, type ComponentType, type
|
|
8
|
+
import React, { type ReactNode, type MouseEvent, type KeyboardEvent, type HTMLAttributes, type ComponentType, type HTMLElementType } from 'react';
|
|
9
9
|
type DivAttributes = HTMLAttributes<HTMLDivElement>;
|
|
10
10
|
/**
|
|
11
11
|
* Tabs
|
|
@@ -312,7 +312,7 @@ export interface TabProps extends HTMLAttributes<HTMLElement> {
|
|
|
312
312
|
/**
|
|
313
313
|
* Provide a custom element to render instead of the default button
|
|
314
314
|
*/
|
|
315
|
-
as?:
|
|
315
|
+
as?: HTMLElementType | ComponentType;
|
|
316
316
|
/**
|
|
317
317
|
* Provide child elements to be rendered inside `Tab`.
|
|
318
318
|
*/
|
|
@@ -10,7 +10,7 @@ import { ChevronLeft, ChevronRight, Close } from '@carbon/icons-react';
|
|
|
10
10
|
import { breakpoints } from '@carbon/layout';
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import PropTypes from 'prop-types';
|
|
13
|
-
import React__default, { useState, useRef, useCallback, useEffect, forwardRef, createContext, useMemo } from 'react';
|
|
13
|
+
import React__default, { useState, useRef, useCallback, useEffect, forwardRef, createContext, useMemo, isValidElement } from 'react';
|
|
14
14
|
import '../Grid/FlexGrid.js';
|
|
15
15
|
import { Grid as GridAsGridComponent } from '../Grid/Grid.js';
|
|
16
16
|
import '../Grid/Row.js';
|
|
@@ -78,6 +78,9 @@ function Tabs(_ref) {
|
|
|
78
78
|
onTabCloseRequest
|
|
79
79
|
} = _ref;
|
|
80
80
|
const baseId = useId('ccs');
|
|
81
|
+
if (dismissable && !onTabCloseRequest) {
|
|
82
|
+
console.error('dismissable property specified without also providing an onTabCloseRequest property.');
|
|
83
|
+
}
|
|
81
84
|
// The active index is used to track the element which has focus in our tablist
|
|
82
85
|
const [activeIndex, setActiveIndex] = useState(defaultSelectedIndex);
|
|
83
86
|
// The selected index is used for the tab/panel pairing which is "visible"
|
|
@@ -279,7 +282,8 @@ function TabList(_ref4) {
|
|
|
279
282
|
let hasSecondaryLabelTabs = false;
|
|
280
283
|
if (contained) {
|
|
281
284
|
hasSecondaryLabelTabs = React__default.Children.toArray(children).some(child => {
|
|
282
|
-
|
|
285
|
+
const _child = child;
|
|
286
|
+
return /*#__PURE__*/React__default.isValidElement(child) && !!_child.props.secondaryLabel;
|
|
283
287
|
});
|
|
284
288
|
}
|
|
285
289
|
const isLg = useMatchMedia(lgMediaQuery);
|
|
@@ -643,7 +647,7 @@ function TabListVertical(_ref8) {
|
|
|
643
647
|
if (containerTop && containerHeight) {
|
|
644
648
|
// scrolls so selected tab is in view
|
|
645
649
|
if (selectedPositionTop - halfTabHeight < containerTop || selectedPositionTop - containerTop + verticalTabHeight + halfTabHeight > containerHeight) {
|
|
646
|
-
ref.current.scrollTo({
|
|
650
|
+
ref.current && ref.current.scrollTo({
|
|
647
651
|
top: (selectedIndex - 1) * verticalTabHeight,
|
|
648
652
|
behavior: 'smooth'
|
|
649
653
|
});
|
|
@@ -984,7 +988,6 @@ Tab.propTypes = {
|
|
|
984
988
|
/**
|
|
985
989
|
* Provide a custom element to render instead of the default button
|
|
986
990
|
*/
|
|
987
|
-
// @ts-expect-error: Invalid prop type derivation
|
|
988
991
|
as: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
|
|
989
992
|
/**
|
|
990
993
|
* Provide child elements to be rendered inside `Tab`.
|
|
@@ -1015,7 +1018,6 @@ Tab.propTypes = {
|
|
|
1015
1018
|
/**
|
|
1016
1019
|
* A component used to render an icon.
|
|
1017
1020
|
*/
|
|
1018
|
-
// @ts-expect-error: Invalid prop type derivation
|
|
1019
1021
|
renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
1020
1022
|
/**
|
|
1021
1023
|
* An optional label to render under the primary tab label.
|
|
@@ -1044,7 +1046,7 @@ const IconTab = /*#__PURE__*/React__default.forwardRef(function IconTab(_ref11,
|
|
|
1044
1046
|
const value = useMemo(() => ({
|
|
1045
1047
|
badgeIndicator
|
|
1046
1048
|
}), [badgeIndicator]);
|
|
1047
|
-
const hasSize20 = /*#__PURE__*/
|
|
1049
|
+
const hasSize20 = /*#__PURE__*/isValidElement(children) && children.props.size === 20;
|
|
1048
1050
|
const classNames = cx(`${prefix}--tabs__nav-item--icon-only`, customClassName, {
|
|
1049
1051
|
[`${prefix}--tabs__nav-item--icon-only__20`]: hasSize20
|
|
1050
1052
|
});
|
|
@@ -10,7 +10,7 @@ import { useRef, useState, useEffect } from 'react';
|
|
|
10
10
|
/* istanbul ignore file */
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* @param {React.RefObject<HTMLElement>} ref
|
|
13
|
+
* @param {React.RefObject<HTMLElement | null>} ref
|
|
14
14
|
*
|
|
15
15
|
* @param {{
|
|
16
16
|
* onPress?(state: { longPress: boolean }): void,
|
package/es/components/Tag/Tag.js
CHANGED
|
@@ -40,7 +40,7 @@ const SIZES = {
|
|
|
40
40
|
md: 'md',
|
|
41
41
|
lg: 'lg'
|
|
42
42
|
};
|
|
43
|
-
const
|
|
43
|
+
const TagBase = /*#__PURE__*/React__default.forwardRef((_ref, forwardRef) => {
|
|
44
44
|
let {
|
|
45
45
|
children,
|
|
46
46
|
className,
|
|
@@ -61,7 +61,13 @@ const Tag = /*#__PURE__*/React__default.forwardRef((_ref, forwardRef) => {
|
|
|
61
61
|
...other
|
|
62
62
|
} = _ref;
|
|
63
63
|
const prefix = usePrefix();
|
|
64
|
-
const tagRef = useRef();
|
|
64
|
+
const tagRef = useRef(null);
|
|
65
|
+
if (filter) {
|
|
66
|
+
console.warn('The `filter` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead.');
|
|
67
|
+
}
|
|
68
|
+
if (onClose) {
|
|
69
|
+
console.warn('The `onClose` prop for Tag has been deprecated and will be removed in the next major version. Use DismissibleTag instead.');
|
|
70
|
+
}
|
|
65
71
|
const ref = useMergedRefs([forwardRef, tagRef]);
|
|
66
72
|
const tagId = id || `tag-${useId()}`;
|
|
67
73
|
const [isEllipsisApplied, setIsEllipsisApplied] = useState(false);
|
|
@@ -141,6 +147,7 @@ const Tag = /*#__PURE__*/React__default.forwardRef((_ref, forwardRef) => {
|
|
|
141
147
|
className: `${prefix}--tag__decorator`
|
|
142
148
|
}, normalizedDecorator) : '');
|
|
143
149
|
});
|
|
150
|
+
const Tag = TagBase;
|
|
144
151
|
Tag.propTypes = {
|
|
145
152
|
/**
|
|
146
153
|
* Provide an alternative tag or component to use instead of the default
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import React__default, {
|
|
10
|
+
import React__default, { useContext, Children } from 'react';
|
|
11
11
|
import './index.js';
|
|
12
12
|
import { TextDirectionContext } from './TextDirectionContext.js';
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const TextBase = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
15
15
|
let {
|
|
16
16
|
as,
|
|
17
17
|
children,
|
|
@@ -54,6 +54,7 @@ const Text = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
54
54
|
ref: ref
|
|
55
55
|
}, rest, textProps), children));
|
|
56
56
|
});
|
|
57
|
+
const Text = TextBase;
|
|
57
58
|
Text.propTypes = {
|
|
58
59
|
/**
|
|
59
60
|
* Provide a custom element type used to render the outermost node
|
|
@@ -11,13 +11,11 @@ import cx from 'classnames';
|
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import { WarningFilled, ViewOff, View } from '@carbon/icons-react';
|
|
13
13
|
import { textInputProps } from './util.js';
|
|
14
|
-
import { warning } from '../../internal/warning.js';
|
|
15
14
|
import deprecate from '../../prop-types/deprecate.js';
|
|
16
15
|
import { usePrefix } from '../../internal/usePrefix.js';
|
|
17
16
|
import { useId } from '../../internal/useId.js';
|
|
18
17
|
import { noopFn } from '../../internal/noopFn.js';
|
|
19
18
|
|
|
20
|
-
let didWarnAboutDeprecation = false;
|
|
21
19
|
const ControlledPasswordInput = /*#__PURE__*/React__default.forwardRef(function ControlledPasswordInput(_ref, ref) {
|
|
22
20
|
let {
|
|
23
21
|
labelText,
|
|
@@ -45,10 +43,6 @@ const ControlledPasswordInput = /*#__PURE__*/React__default.forwardRef(function
|
|
|
45
43
|
} = _ref;
|
|
46
44
|
const prefix = usePrefix();
|
|
47
45
|
const controlledPasswordInstanceId = useId();
|
|
48
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
49
|
-
process.env.NODE_ENV !== "production" ? warning(didWarnAboutDeprecation, '`<TextInput.ControlledPasswordInput>` has been deprecated in favor of `<TextInput.PasswordInput />` and will be removed in the next major release of `carbon-components-react`') : void 0;
|
|
50
|
-
didWarnAboutDeprecation = true;
|
|
51
|
-
}
|
|
52
46
|
const errorId = id + '-error-msg';
|
|
53
47
|
const textInputClasses = cx(`${prefix}--text-input`, `${prefix}--password-input`, className, {
|
|
54
48
|
[`${prefix}--text-input--light`]: light,
|
|
@@ -9,8 +9,6 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import React__default, { useState, useContext, useRef, useEffect } from 'react';
|
|
10
10
|
import cx from 'classnames';
|
|
11
11
|
import { useNormalizedInputProps } from '../../internal/useNormalizedInputProps.js';
|
|
12
|
-
import PasswordInput from './PasswordInput.js';
|
|
13
|
-
import ControlledPasswordInput from './ControlledPasswordInput.js';
|
|
14
12
|
import deprecate from '../../prop-types/deprecate.js';
|
|
15
13
|
import { textInputProps } from './util.js';
|
|
16
14
|
import '../FluidForm/FluidForm.js';
|
|
@@ -212,8 +210,6 @@ const TextInput = /*#__PURE__*/React__default.forwardRef(function TextInput(_ref
|
|
|
212
210
|
}), isFluid && !inline && normalizedProps.validation), !isFluid && !inline && (normalizedProps.validation || helper)));
|
|
213
211
|
});
|
|
214
212
|
TextInput.displayName = 'TextInput';
|
|
215
|
-
TextInput.PasswordInput = PasswordInput;
|
|
216
|
-
TextInput.ControlledPasswordInput = ControlledPasswordInput;
|
|
217
213
|
TextInput.propTypes = {
|
|
218
214
|
/**
|
|
219
215
|
* Specify an optional className to be applied to the `<input>` node
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2025
|
|
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
|
+
*/
|
|
1
7
|
import TextInput, { type TextInputProps } from './TextInput';
|
|
2
8
|
import { type TextInputSkeletonProps } from './TextInput.Skeleton';
|
|
3
9
|
export { default as TextInputSkeleton } from './TextInput.Skeleton';
|
|
@@ -5,14 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { deprecateFieldOnObject } from '../../internal/deprecateFieldOnObject.js';
|
|
9
|
-
import ControlledPasswordInput from './ControlledPasswordInput.js';
|
|
10
|
-
import PasswordInput from './PasswordInput.js';
|
|
11
8
|
import TextInput from './TextInput.js';
|
|
12
9
|
export { default as TextInput, default } from './TextInput.js';
|
|
13
10
|
export { default as TextInputSkeleton } from './TextInput.Skeleton.js';
|
|
14
|
-
|
|
15
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16
|
-
deprecateFieldOnObject(TextInput, 'ControlledPasswordInput', ControlledPasswordInput);
|
|
17
|
-
deprecateFieldOnObject(TextInput, 'PasswordInput', PasswordInput);
|
|
18
|
-
}
|
|
@@ -203,7 +203,6 @@ ClickableTile.propTypes = {
|
|
|
203
203
|
/**
|
|
204
204
|
* A component used to render an icon.
|
|
205
205
|
*/
|
|
206
|
-
// @ts-expect-error: Invalid derived prop type, seemingly no real solution.
|
|
207
206
|
renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
208
207
|
};
|
|
209
208
|
const SelectableTile = /*#__PURE__*/React__default.forwardRef(function SelectableTile(_ref3, ref) {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React, { type KeyboardEventHandler, type MouseEventHandler } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
-
type ExcludedAttributes = 'aria-labelledby' | 'aria-checked' | 'type' | 'role' | 'id' | 'size' | 'onClick';
|
|
9
|
+
type ExcludedAttributes = 'aria-labelledby' | 'aria-checked' | 'type' | 'role' | 'id' | 'size' | 'onClick' | 'onToggle';
|
|
10
10
|
export interface ToggleProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, ExcludedAttributes> {
|
|
11
11
|
/**
|
|
12
12
|
* Specify another element's id to be used as the label for this toggle
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2016,
|
|
2
|
+
* Copyright IBM Corp. 2016, 2025
|
|
3
3
|
*
|
|
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
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import React from 'react';
|
|
9
8
|
export interface ToggleSmallSkeletonProps {
|
|
10
9
|
['aria-label']: string;
|
|
11
10
|
/**
|
|
@@ -18,14 +17,14 @@ export interface ToggleSmallSkeletonProps {
|
|
|
18
17
|
id?: string;
|
|
19
18
|
/**
|
|
20
19
|
* Provide the text that will be read by a screen reader when visiting this
|
|
21
|
-
* control
|
|
22
|
-
*
|
|
23
|
-
* provided
|
|
20
|
+
* control. `aria-label` is always required but will be `null` if `labelText`
|
|
21
|
+
* is also provided.
|
|
24
22
|
*/
|
|
25
23
|
labelText?: string;
|
|
26
24
|
}
|
|
27
|
-
declare
|
|
28
|
-
|
|
25
|
+
export declare const ToggleSmallSkeleton: {
|
|
26
|
+
({ id, labelText, className, ...rest }: ToggleSmallSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
propTypes: {
|
|
29
28
|
"aria-label": PropTypes.Validator<string>;
|
|
30
29
|
/**
|
|
31
30
|
* Specify an optional className to add to the form item wrapper.
|
|
@@ -37,13 +36,9 @@ declare class ToggleSmallSkeleton extends React.Component<ToggleSmallSkeletonPro
|
|
|
37
36
|
id: PropTypes.Requireable<string>;
|
|
38
37
|
/**
|
|
39
38
|
* Provide the text that will be read by a screen reader when visiting this
|
|
40
|
-
* control
|
|
41
|
-
*
|
|
42
|
-
* provided
|
|
39
|
+
* control. `aria-label` is always required but will be `null` if `labelText`
|
|
40
|
+
* is also provided.
|
|
43
41
|
*/
|
|
44
42
|
labelText: PropTypes.Requireable<string>;
|
|
45
43
|
};
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
export default ToggleSmallSkeleton;
|
|
49
|
-
export { ToggleSmallSkeleton };
|
|
44
|
+
};
|
|
@@ -5,47 +5,44 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { extends as _extends
|
|
8
|
+
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import React__default from 'react';
|
|
10
|
+
import React__default, { useContext } from 'react';
|
|
11
11
|
import cx from 'classnames';
|
|
12
12
|
import { PrefixContext } from '../../internal/usePrefix.js';
|
|
13
13
|
|
|
14
14
|
var _path;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
_defineProperty(ToggleSmallSkeleton, "propTypes", {
|
|
15
|
+
const ToggleSmallSkeleton = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
id,
|
|
18
|
+
labelText,
|
|
19
|
+
className,
|
|
20
|
+
...rest
|
|
21
|
+
} = _ref;
|
|
22
|
+
const prefix = useContext(PrefixContext);
|
|
23
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
24
|
+
className: cx(`${prefix}--form-item`, className)
|
|
25
|
+
}, rest), /*#__PURE__*/React__default.createElement("input", {
|
|
26
|
+
type: "checkbox",
|
|
27
|
+
id: id,
|
|
28
|
+
className: `${prefix}--toggle ${prefix}--toggle--small ${prefix}--skeleton`
|
|
29
|
+
}), /*#__PURE__*/React__default.createElement("label", {
|
|
30
|
+
className: `${prefix}--toggle__label ${prefix}--skeleton`,
|
|
31
|
+
htmlFor: id
|
|
32
|
+
}, labelText && /*#__PURE__*/React__default.createElement("span", {
|
|
33
|
+
className: `${prefix}--toggle__label-text`
|
|
34
|
+
}, labelText), /*#__PURE__*/React__default.createElement("span", {
|
|
35
|
+
className: `${prefix}--toggle__appearance`
|
|
36
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
37
|
+
className: `${prefix}--toggle__check`,
|
|
38
|
+
width: "6px",
|
|
39
|
+
height: "5px",
|
|
40
|
+
viewBox: "0 0 6 5"
|
|
41
|
+
}, _path || (_path = /*#__PURE__*/React__default.createElement("path", {
|
|
42
|
+
d: "M2.2403 2.7299L4.9245 0 6 1.1117 2.2384 5 0 2.6863 1.0612 1.511z"
|
|
43
|
+
}))))));
|
|
44
|
+
};
|
|
45
|
+
ToggleSmallSkeleton.propTypes = {
|
|
49
46
|
['aria-label']: PropTypes.string.isRequired,
|
|
50
47
|
/**
|
|
51
48
|
* Specify an optional className to add to the form item wrapper.
|
|
@@ -57,11 +54,10 @@ _defineProperty(ToggleSmallSkeleton, "propTypes", {
|
|
|
57
54
|
id: PropTypes.string,
|
|
58
55
|
/**
|
|
59
56
|
* Provide the text that will be read by a screen reader when visiting this
|
|
60
|
-
* control
|
|
61
|
-
*
|
|
62
|
-
* provided
|
|
57
|
+
* control. `aria-label` is always required but will be `null` if `labelText`
|
|
58
|
+
* is also provided.
|
|
63
59
|
*/
|
|
64
60
|
labelText: PropTypes.string
|
|
65
|
-
}
|
|
61
|
+
};
|
|
66
62
|
|
|
67
|
-
export { ToggleSmallSkeleton
|
|
63
|
+
export { ToggleSmallSkeleton };
|
|
@@ -127,8 +127,11 @@ function Toggletip(_ref2) {
|
|
|
127
127
|
actions.close();
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
-
useWindowEvent('click',
|
|
131
|
-
|
|
130
|
+
useWindowEvent('click', _ref3 => {
|
|
131
|
+
let {
|
|
132
|
+
target
|
|
133
|
+
} = _ref3;
|
|
134
|
+
if (open && target instanceof Node && !ref.current?.contains(target)) {
|
|
132
135
|
actions.close();
|
|
133
136
|
}
|
|
134
137
|
});
|
|
@@ -206,14 +209,14 @@ Toggletip.propTypes = {
|
|
|
206
209
|
* clicks and keyboard interactions.
|
|
207
210
|
*/
|
|
208
211
|
|
|
209
|
-
const ToggletipButton = /*#__PURE__*/React__default.forwardRef(function ToggletipButton(
|
|
212
|
+
const ToggletipButton = /*#__PURE__*/React__default.forwardRef(function ToggletipButton(_ref4, ref) {
|
|
210
213
|
let {
|
|
211
214
|
children,
|
|
212
215
|
className: customClassName,
|
|
213
216
|
label = 'Show information',
|
|
214
217
|
as: BaseComponent,
|
|
215
218
|
...rest
|
|
216
|
-
} =
|
|
219
|
+
} = _ref4;
|
|
217
220
|
const toggletip = useToggletip();
|
|
218
221
|
const prefix = usePrefix();
|
|
219
222
|
const className = cx(`${prefix}--toggletip-button`, customClassName);
|
|
@@ -251,11 +254,11 @@ ToggletipButton.displayName = 'ToggletipButton';
|
|
|
251
254
|
* `children` passed in as a prop inside of `PopoverContent` so that they will
|
|
252
255
|
* be rendered inside of the popover for this component.
|
|
253
256
|
*/
|
|
254
|
-
const ToggletipContent = /*#__PURE__*/React__default.forwardRef(function ToggletipContent(
|
|
257
|
+
const ToggletipContent = /*#__PURE__*/React__default.forwardRef(function ToggletipContent(_ref5, ref) {
|
|
255
258
|
let {
|
|
256
259
|
children,
|
|
257
260
|
className: customClassName
|
|
258
|
-
} =
|
|
261
|
+
} = _ref5;
|
|
259
262
|
const toggletip = useToggletip();
|
|
260
263
|
const prefix = usePrefix();
|
|
261
264
|
return /*#__PURE__*/React__default.createElement(PopoverContent, _extends({
|
|
@@ -283,11 +286,11 @@ ToggletipContent.displayName = 'ToggletipContent';
|
|
|
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.
|
|
285
288
|
*/
|
|
286
|
-
function ToggletipActions(
|
|
289
|
+
function ToggletipActions(_ref6) {
|
|
287
290
|
let {
|
|
288
291
|
children,
|
|
289
292
|
className: customClassName
|
|
290
|
-
} =
|
|
293
|
+
} = _ref6;
|
|
291
294
|
const prefix = usePrefix();
|
|
292
295
|
const className = cx(`${prefix}--toggletip-actions`, customClassName);
|
|
293
296
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -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 React from 'react';
|
|
7
|
+
import React, { type JSX } from 'react';
|
|
8
8
|
import TreeNode, { TreeNodeProps } from './TreeNode';
|
|
9
9
|
export type TreeViewProps = {
|
|
10
10
|
/**
|
|
@@ -28,11 +28,13 @@ declare const Content: {
|
|
|
28
28
|
suppressContentEditableWarning?: boolean | undefined;
|
|
29
29
|
suppressHydrationWarning?: boolean | undefined;
|
|
30
30
|
accessKey?: string | undefined;
|
|
31
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
31
32
|
autoFocus?: boolean | undefined;
|
|
32
33
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
33
34
|
contextMenu?: string | undefined;
|
|
34
35
|
dir?: string | undefined;
|
|
35
36
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
37
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
36
38
|
hidden?: boolean | undefined;
|
|
37
39
|
id?: string | undefined;
|
|
38
40
|
lang?: string | undefined;
|
|
@@ -56,7 +58,6 @@ declare const Content: {
|
|
|
56
58
|
rev?: string | undefined;
|
|
57
59
|
typeof?: string | undefined;
|
|
58
60
|
vocab?: string | undefined;
|
|
59
|
-
autoCapitalize?: string | undefined;
|
|
60
61
|
autoCorrect?: string | undefined;
|
|
61
62
|
autoSave?: string | undefined;
|
|
62
63
|
color?: string | undefined;
|
|
@@ -68,6 +69,10 @@ declare const Content: {
|
|
|
68
69
|
results?: number | undefined;
|
|
69
70
|
security?: string | undefined;
|
|
70
71
|
unselectable?: "on" | "off" | undefined;
|
|
72
|
+
popover?: "" | "auto" | "manual" | undefined;
|
|
73
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
74
|
+
popoverTarget?: string | undefined;
|
|
75
|
+
inert?: boolean | undefined;
|
|
71
76
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
72
77
|
is?: string | undefined;
|
|
73
78
|
"aria-activedescendant"?: string | undefined;
|
|
@@ -284,8 +289,16 @@ declare const Content: {
|
|
|
284
289
|
onAnimationEndCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
285
290
|
onAnimationIteration?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
286
291
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
292
|
+
onToggle?: React.ToggleEventHandler<HTMLElement> | undefined;
|
|
293
|
+
onBeforeToggle?: React.ToggleEventHandler<HTMLElement> | undefined;
|
|
294
|
+
onTransitionCancel?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
295
|
+
onTransitionCancelCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
287
296
|
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
288
297
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
298
|
+
onTransitionRun?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
299
|
+
onTransitionRunCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
300
|
+
onTransitionStart?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
301
|
+
onTransitionStartCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
289
302
|
}, Element>;
|
|
290
303
|
propTypes: {
|
|
291
304
|
/**
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* Generic container for `HeaderGlobalAction` components
|
|
9
9
|
*/
|
|
10
|
-
declare const HeaderGlobalBar: (props: import("../../types/common").ReactAttr<"div">) => React.ReactElement
|
|
10
|
+
declare const HeaderGlobalBar: (props: import("../../types/common").ReactAttr<"div">) => React.ReactElement<any>;
|
|
11
11
|
export default HeaderGlobalBar;
|