react-magma-dom 4.9.0-next.9 → 4.9.1-next.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/dist/components/Combobox/Combobox.d.ts +2 -1
- package/dist/components/Combobox/ComboboxInput.d.ts +1 -1
- package/dist/components/Combobox/MultiCombobox.d.ts +2 -1
- package/dist/components/Combobox/index.d.ts +1 -1
- package/dist/components/Datagrid/components.d.ts +2 -2
- package/dist/components/DefinitionList/DefinitionList.d.ts +8 -0
- package/dist/components/DefinitionList/DefinitionListItem.d.ts +23 -0
- package/dist/components/DefinitionList/index.d.ts +2 -0
- package/dist/components/Dropdown/DropdownExpandableMenuListItem.d.ts +1 -2
- package/dist/components/Heading/index.d.ts +1 -1
- package/dist/components/InputBase/index.d.ts +3 -1
- package/dist/components/List/ListItem.d.ts +2 -0
- package/dist/components/NavTabs/NavTabs.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/PopoverSection.d.ts +2 -2
- package/dist/components/Select/ItemsList.d.ts +1 -1
- package/dist/components/Select/MultiSelect.d.ts +2 -1
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/SelectContainer.d.ts +1 -1
- package/dist/components/Select/SelectTriggerButton.d.ts +1 -1
- package/dist/components/Select/components.d.ts +7 -7
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/SkipLink/index.d.ts +5 -0
- package/dist/components/StyledButton/index.d.ts +7 -0
- package/dist/components/TreeView/TreeViewContext.d.ts +0 -2
- package/dist/components/TreeView/useTreeItem.d.ts +1 -1
- package/dist/components/TreeView/useTreeView.d.ts +1 -3
- package/dist/components/Typography/index.d.ts +3 -3
- package/dist/esm/index.js +1288 -2935
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/properties.json +212 -131
- package/dist/react-magma-dom.cjs.development.js +454 -430
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/package.json +2 -4
|
@@ -26,5 +26,5 @@ interface ComboboxInputProps<T> {
|
|
|
26
26
|
setReference?: (node: ReferenceType) => void;
|
|
27
27
|
toggleButtonRef?: React.Ref<HTMLButtonElement>;
|
|
28
28
|
}
|
|
29
|
-
export declare function ComboboxInput<T>(props: ComboboxInputProps<T>): JSX.Element;
|
|
29
|
+
export declare function ComboboxInput<T>(props: ComboboxInputProps<T>): React.JSX.Element;
|
|
30
30
|
export {};
|
|
@@ -150,4 +150,4 @@ export declare const ComboboxStateChangeTypes: {
|
|
|
150
150
|
FunctionReset: import("downshift").UseComboboxStateChangeTypes.FunctionReset;
|
|
151
151
|
ControlledPropUpdatedSelectedItem: import("downshift").UseComboboxStateChangeTypes.ControlledPropUpdatedSelectedItem;
|
|
152
152
|
};
|
|
153
|
-
export declare function Combobox<T>(props: XORComboboxProps<T>): JSX.Element;
|
|
153
|
+
export declare function Combobox<T>(props: XORComboboxProps<T>): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DatagridComponents } from './Datagrid';
|
|
3
|
-
export declare const DefaultPagination: (props: any) => JSX.Element;
|
|
3
|
+
export declare const DefaultPagination: (props: any) => React.JSX.Element;
|
|
4
4
|
export declare function defaultComponents<T>(components: DatagridComponents): {
|
|
5
|
-
Pagination: ((props: any) => JSX.Element) | React.FunctionComponent<import("../Table").TablePaginationProps>;
|
|
5
|
+
Pagination: ((props: any) => React.JSX.Element) | React.FunctionComponent<import("../Table").TablePaginationProps>;
|
|
6
6
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ListProps } from '../List';
|
|
3
|
+
/**
|
|
4
|
+
* @children required
|
|
5
|
+
*/
|
|
6
|
+
export interface DefinitionListProps extends Pick<ListProps, 'isInverse' | 'testId' | 'theme' | 'visualStyle'>, React.HTMLAttributes<HTMLDListElement> {
|
|
7
|
+
}
|
|
8
|
+
export declare const DefinitionList: React.ForwardRefExoticComponent<DefinitionListProps & React.RefAttributes<HTMLDListElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DefinitionListProps } from './DefinitionList';
|
|
3
|
+
export declare enum DefinitionListType {
|
|
4
|
+
/**
|
|
5
|
+
* Represents the term in a definition list.
|
|
6
|
+
* Will be wrapped in a <dt> (definition term) tag.
|
|
7
|
+
*/
|
|
8
|
+
term = "term",
|
|
9
|
+
/**
|
|
10
|
+
* Represents the description of a term.
|
|
11
|
+
* Will be wrapped in a <dd> (definition description) tag.
|
|
12
|
+
*/
|
|
13
|
+
description = "description"
|
|
14
|
+
}
|
|
15
|
+
export interface DefinitionListItemProps extends DefinitionListProps, React.HTMLAttributes<HTMLDListElement> {
|
|
16
|
+
/**
|
|
17
|
+
* Types of definition list element.
|
|
18
|
+
* term: uses a <dt> (definition term) tag
|
|
19
|
+
* description: uses a <dd> (definition description) tag
|
|
20
|
+
*/
|
|
21
|
+
type: DefinitionListType;
|
|
22
|
+
}
|
|
23
|
+
export declare const DefinitionListItem: React.ForwardRefExoticComponent<DefinitionListItemProps & React.RefAttributes<HTMLDListElement>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DropdownMenuItemProps } from './DropdownMenuItem';
|
|
3
|
-
|
|
4
|
-
export interface DropdownExpandableMenuListItemProps extends Omit<DropdownMenuItemProps, 'icon'> {
|
|
3
|
+
export interface DropdownExpandableMenuListItemProps extends DropdownMenuItemProps {
|
|
5
4
|
disabled?: boolean;
|
|
6
5
|
testId?: string;
|
|
7
6
|
}
|
|
@@ -32,4 +32,4 @@ export interface HeadingProps extends TypographyProps<HTMLHeadingElement> {
|
|
|
32
32
|
*/
|
|
33
33
|
visualStyle?: TypographyVisualStyle;
|
|
34
34
|
}
|
|
35
|
-
export declare const Heading: React.ForwardRefExoticComponent<Pick<HeadingProps, "
|
|
35
|
+
export declare const Heading: React.ForwardRefExoticComponent<Pick<HeadingProps, "color" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "contextVariant" | "isInverse" | "level" | "testId" | "visualStyle" | "as" | "element" | "noMargins" | "noBottomMargin" | "noTopMargin" | "theme"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -6,6 +6,8 @@ import { ListProps } from './';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface ListItemProps extends ListProps, React.HTMLAttributes<HTMLDivElement> {
|
|
8
8
|
/**
|
|
9
|
+
* @deprecated = true
|
|
10
|
+
* Please use DefinitionList instead
|
|
9
11
|
* Boolean which changes a list item into a styled paragraph.
|
|
10
12
|
*/
|
|
11
13
|
description?: boolean;
|
|
@@ -12,5 +12,5 @@ interface NavTabsContextInterface {
|
|
|
12
12
|
textTransform?: TabsTextTransform;
|
|
13
13
|
}
|
|
14
14
|
export declare const NavTabsContext: React.Context<NavTabsContextInterface>;
|
|
15
|
-
export declare const NavTabs: React.ForwardRefExoticComponent<(Pick<TabsProps, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "
|
|
15
|
+
export declare const NavTabs: React.ForwardRefExoticComponent<(Pick<TabsProps, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "alignment" | "backgroundColor" | "iconPosition" | "isFullWidth" | "isInverse" | "orientation" | "textTransform" | "testId"> & import("../Tabs").HorizontalTabsProps & React.RefAttributes<HTMLDivElement>) | (Pick<TabsProps, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "alignment" | "backgroundColor" | "iconPosition" | "isFullWidth" | "isInverse" | "orientation" | "textTransform" | "testId"> & import("../Tabs").VerticalTabsProps & React.RefAttributes<HTMLDivElement>)>;
|
|
16
16
|
export {};
|
|
@@ -9,5 +9,5 @@ export interface PopoverSectionProps {
|
|
|
9
9
|
*/
|
|
10
10
|
style?: React.CSSProperties;
|
|
11
11
|
}
|
|
12
|
-
export declare const PopoverHeader: ({ children, style, ...other }: PopoverSectionProps) => JSX.Element;
|
|
13
|
-
export declare const PopoverFooter: ({ children, style, ...other }: PopoverSectionProps) => JSX.Element;
|
|
12
|
+
export declare const PopoverHeader: ({ children, style, ...other }: PopoverSectionProps) => React.JSX.Element;
|
|
13
|
+
export declare const PopoverFooter: ({ children, style, ...other }: PopoverSectionProps) => React.JSX.Element;
|
|
@@ -18,5 +18,5 @@ interface ItemsListProps<T> {
|
|
|
18
18
|
setFloating?: (node: ReferenceType) => void;
|
|
19
19
|
setHighlightedIndex?: (index: number) => void;
|
|
20
20
|
}
|
|
21
|
-
export declare function ItemsList<T>(props: ItemsListProps<T>): JSX.Element;
|
|
21
|
+
export declare function ItemsList<T>(props: ItemsListProps<T>): React.JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -26,5 +26,5 @@ interface SelectContainerInterface<T> {
|
|
|
26
26
|
labelWidth?: number;
|
|
27
27
|
messageStyle?: React.CSSProperties;
|
|
28
28
|
}
|
|
29
|
-
export declare function SelectContainer<T>(props: SelectContainerInterface<T>): JSX.Element;
|
|
29
|
+
export declare function SelectContainer<T>(props: SelectContainerInterface<T>): React.JSX.Element;
|
|
30
30
|
export {};
|
|
@@ -13,5 +13,5 @@ interface SelectTriggerButtonInterface<T> {
|
|
|
13
13
|
toggleButtonProps: any;
|
|
14
14
|
tabindex?: number;
|
|
15
15
|
}
|
|
16
|
-
export declare function SelectTriggerButton<T>(props: SelectTriggerButtonInterface<T>): JSX.Element;
|
|
16
|
+
export declare function SelectTriggerButton<T>(props: SelectTriggerButtonInterface<T>): React.JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -19,16 +19,16 @@ export declare type SelectComponents<T> = {
|
|
|
19
19
|
LoadingIndicator?: React.FunctionComponent<SpinnerProps>;
|
|
20
20
|
Item?: React.FunctionComponent<ItemRenderOptions<T>>;
|
|
21
21
|
};
|
|
22
|
-
export declare const DefaultClearIndicator: (props: any) => JSX.Element;
|
|
23
|
-
export declare const DefaultDropdownIndicator: (props: any) => JSX.Element;
|
|
24
|
-
export declare const DefaultLoadingIndicator: (props: any) => JSX.Element;
|
|
25
|
-
export declare function DefaultItem<T>({ itemRef, itemString, isInverse, isDisabled, ...props }: ItemRenderOptions<T>): JSX.Element;
|
|
22
|
+
export declare const DefaultClearIndicator: (props: any) => React.JSX.Element;
|
|
23
|
+
export declare const DefaultDropdownIndicator: (props: any) => React.JSX.Element;
|
|
24
|
+
export declare const DefaultLoadingIndicator: (props: any) => React.JSX.Element;
|
|
25
|
+
export declare function DefaultItem<T>({ itemRef, itemString, isInverse, isDisabled, ...props }: ItemRenderOptions<T>): React.JSX.Element;
|
|
26
26
|
export declare function defaultComponents<T>(props: SelectComponents<T>): {
|
|
27
27
|
ClearIndicator: React.FunctionComponent<({} & import("../IconButton").IconTextButtonProps) | ({
|
|
28
28
|
children?: never;
|
|
29
29
|
iconPosition?: never;
|
|
30
|
-
} & import("../IconButton").IconOnlyButtonProps)> | ((props: any) => JSX.Element);
|
|
31
|
-
DropdownIndicator: React.FunctionComponent<Partial<IconProps>> | ((props: any) => JSX.Element);
|
|
32
|
-
LoadingIndicator: React.FunctionComponent<SpinnerProps> | ((props: any) => JSX.Element);
|
|
30
|
+
} & import("../IconButton").IconOnlyButtonProps)> | ((props: any) => React.JSX.Element);
|
|
31
|
+
DropdownIndicator: React.FunctionComponent<Partial<IconProps>> | ((props: any) => React.JSX.Element);
|
|
32
|
+
LoadingIndicator: React.FunctionComponent<SpinnerProps> | ((props: any) => React.JSX.Element);
|
|
33
33
|
Item: typeof DefaultItem | React.FunctionComponent<ItemRenderOptions<T>>;
|
|
34
34
|
};
|
|
@@ -228,4 +228,4 @@ export declare const MultipleSelectionStateChangeTypes: {
|
|
|
228
228
|
FunctionSetActiveIndex: import("downshift").UseMultipleSelectionStateChangeTypes.FunctionSetActiveIndex;
|
|
229
229
|
FunctionReset: import("downshift").UseMultipleSelectionStateChangeTypes.FunctionReset;
|
|
230
230
|
};
|
|
231
|
-
export declare function Select<T>(props: XORSelectProps<T>): JSX.Element;
|
|
231
|
+
export declare function Select<T>(props: XORSelectProps<T>): React.JSX.Element;
|
|
@@ -22,5 +22,10 @@ export interface SkipLinkProps extends Omit<HyperlinkProps, 'children' | 'to'> {
|
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
24
|
testId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The `to` prop will be removed from the SkipLink component in the next major release.
|
|
27
|
+
* @deprecated = true
|
|
28
|
+
*/
|
|
29
|
+
to?: string;
|
|
25
30
|
}
|
|
26
31
|
export declare const SkipLink: React.FunctionComponent<SkipLinkProps>;
|
|
@@ -9,4 +9,11 @@ export declare const BaseStyledButton: import("@emotion/styled").StyledComponent
|
|
|
9
9
|
theme?: import("@emotion/react").Theme;
|
|
10
10
|
as?: React.ElementType<any>;
|
|
11
11
|
}, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
12
|
+
export declare const ChildrenWrapper: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme;
|
|
14
|
+
as?: React.ElementType<any>;
|
|
15
|
+
} & {
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
testId?: string;
|
|
18
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
12
19
|
export declare const StyledButton: React.ForwardRefExoticComponent<StyledButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -18,13 +18,11 @@ export interface TreeViewContextInterface {
|
|
|
18
18
|
children?: React.ReactNode[];
|
|
19
19
|
hasIcons: boolean;
|
|
20
20
|
initialExpandedItems: Array<string>;
|
|
21
|
-
initialExpandedItemsNeedUpdate: boolean;
|
|
22
21
|
onExpandedChange?: (event: React.SyntheticEvent, expandedItems: Array<string>) => void;
|
|
23
22
|
onSelectedItemChange?: (selectedItems: Array<TreeItemSelectedInterface>) => void;
|
|
24
23
|
registerTreeItem: (itemRefArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, itemRef: React.MutableRefObject<Element>) => void;
|
|
25
24
|
selectable: TreeViewSelectable;
|
|
26
25
|
selectedItems: Array<TreeItemSelectedInterface>;
|
|
27
|
-
setInitialExpandedItemsNeedUpdate: React.Dispatch<React.SetStateAction<any>>;
|
|
28
26
|
treeItemRefArray?: React.MutableRefObject<React.MutableRefObject<Element>[]>;
|
|
29
27
|
itemToFocus?: string;
|
|
30
28
|
checkParents: boolean;
|
|
@@ -63,7 +63,7 @@ export declare function useTreeItem(props: UseTreeItemProps, forwardedRef: any):
|
|
|
63
63
|
ref: (node: any) => void;
|
|
64
64
|
selectedItems: import("./TreeViewContext").TreeItemSelectedInterface[];
|
|
65
65
|
setExpanded: React.Dispatch<React.SetStateAction<boolean>>;
|
|
66
|
-
treeItemChildren: (string | number | {} | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | React.
|
|
66
|
+
treeItemChildren: (string | number | {} | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | Iterable<React.ReactNode> | React.ReactPortal)[];
|
|
67
67
|
isDisabled: boolean;
|
|
68
68
|
};
|
|
69
69
|
handleClick: (event: any, itemId: any) => void;
|
|
@@ -106,13 +106,11 @@ export declare function useTreeView(props: UseTreeViewProps): {
|
|
|
106
106
|
initialExpandedItems: any[];
|
|
107
107
|
treeItemRefArray: React.MutableRefObject<React.MutableRefObject<Element>[]>;
|
|
108
108
|
registerTreeItem: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
|
|
109
|
-
initialExpandedItemsNeedUpdate: boolean;
|
|
110
|
-
setInitialExpandedItemsNeedUpdate: React.Dispatch<React.SetStateAction<boolean>>;
|
|
111
109
|
checkChildren: boolean;
|
|
112
110
|
checkParents: boolean;
|
|
113
111
|
items: any;
|
|
114
112
|
selectItem: ({ itemId, checkedStatus, }: Pick<TreeViewItemInterface, 'itemId'> & Partial<Pick<TreeViewItemInterface, 'checkedStatus'>>) => void;
|
|
115
|
-
handleExpandedChange: (event: React.SyntheticEvent, itemId: string) => void;
|
|
113
|
+
handleExpandedChange: (event: React.SyntheticEvent, itemId: string | string[]) => void;
|
|
116
114
|
expandedSet: Set<string>;
|
|
117
115
|
isTopLevelSelectable: boolean;
|
|
118
116
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ThemeInterface } from '../../theme/magma';
|
|
3
|
-
export interface TypographyProps<T = HTMLParagraphElement> extends React.HTMLAttributes<T> {
|
|
4
|
-
as?:
|
|
5
|
-
children?:
|
|
3
|
+
export interface TypographyProps<T = HTMLParagraphElement> extends Omit<React.HTMLAttributes<T>, 'color'> {
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
6
|
color?: TypographyColor;
|
|
7
7
|
contextVariant?: TypographyContextVariant;
|
|
8
8
|
element?: string;
|