react-magma-dom 4.9.0-next.3 → 4.9.0-next.30
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/BlockQuote/BlockQuoteItem.d.ts +1 -1
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Checkbox/index.d.ts +2 -1
- package/dist/components/Combobox/Combobox.d.ts +2 -1
- package/dist/components/Combobox/ComboboxInput.d.ts +3 -3
- package/dist/components/Combobox/MultiCombobox.d.ts +2 -1
- package/dist/components/Combobox/index.d.ts +2 -2
- 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/Drawer/index.d.ts +1 -1
- package/dist/components/Dropdown/DropdownButton.d.ts +1 -1
- package/dist/components/Dropdown/DropdownExpandableMenuButton.d.ts +1 -1
- package/dist/components/Dropdown/DropdownExpandableMenuListItem.d.ts +1 -2
- package/dist/components/Dropdown/DropdownExpandableMenuPanel.d.ts +2 -3
- package/dist/components/Grid/index.d.ts +1 -1
- package/dist/components/Heading/index.d.ts +1 -1
- package/dist/components/Hyperlink/index.d.ts +2 -2
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/IndeterminateCheckbox/index.d.ts +1 -1
- package/dist/components/InputBase/index.d.ts +5 -3
- package/dist/components/Label/index.d.ts +2 -1
- package/dist/components/List/ListItem.d.ts +3 -1
- package/dist/components/NavTabs/NavTab.d.ts +3 -2
- package/dist/components/NavTabs/NavTabs.d.ts +3 -4
- package/dist/components/Paragraph/index.d.ts +2 -1
- package/dist/components/PasswordInput/index.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +102 -0
- package/dist/components/Popover/PopoverContent.d.ts +12 -0
- package/dist/components/Popover/PopoverSection.d.ts +13 -0
- package/dist/components/Popover/PopoverTrigger.d.ts +37 -0
- package/dist/components/Popover/index.d.ts +4 -0
- package/dist/components/Select/ItemsList.d.ts +2 -2
- 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 +2 -2
- package/dist/components/Select/SelectTriggerButton.d.ts +2 -2
- package/dist/components/Select/components.d.ts +7 -7
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/SkipLink/index.d.ts +7 -2
- package/dist/components/Stepper/Step.d.ts +1 -1
- package/dist/components/StyledButton/index.d.ts +7 -0
- package/dist/components/Table/TableCell.d.ts +2 -1
- package/dist/components/Table/TableRow.d.ts +1 -1
- package/dist/components/Tabs/Tab.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts +1 -1
- package/dist/components/Toggle/index.d.ts +2 -1
- package/dist/components/ToggleButton/ToggleButton.d.ts +2 -2
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/components/TreeView/TreeItem.d.ts +2 -3
- package/dist/components/TreeView/TreeViewContext.d.ts +1 -2
- package/dist/components/TreeView/useTreeItem.d.ts +2 -1
- package/dist/components/TreeView/useTreeView.d.ts +10 -3
- package/dist/components/TreeView/utils.d.ts +8 -8
- package/dist/components/Typography/index.d.ts +5 -4
- package/dist/esm/index.js +10969 -19528
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/properties.json +945 -272
- package/dist/react-magma-dom.cjs.development.js +3748 -3144
- 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/theme/styled.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +30 -31
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
2
3
|
export declare enum ButtonVariant {
|
|
3
4
|
solid = "solid",
|
|
4
5
|
link = "link"
|
|
@@ -80,7 +81,7 @@ interface BaseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
80
81
|
/**
|
|
81
82
|
* @internal
|
|
82
83
|
*/
|
|
83
|
-
theme?:
|
|
84
|
+
theme?: ThemeInterface;
|
|
84
85
|
/**
|
|
85
86
|
* The type attribute of the button
|
|
86
87
|
* ButtonType.button
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
2
3
|
export declare enum CheckboxTextPosition {
|
|
3
4
|
left = "left",
|
|
4
5
|
right = "right"
|
|
@@ -88,6 +89,6 @@ export declare const StyledFakeInput: import("@emotion/styled").StyledComponent<
|
|
|
88
89
|
hasError?: boolean;
|
|
89
90
|
hideFocus?: boolean;
|
|
90
91
|
textPosition?: CheckboxTextPosition;
|
|
91
|
-
theme?:
|
|
92
|
+
theme?: ThemeInterface;
|
|
92
93
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
93
94
|
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UseComboboxGetComboboxPropsOptions, UseComboboxGetInputPropsOptions, UseComboboxGetToggleButtonPropsOptions } from 'downshift';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { SelectComponents } from '../Select/components';
|
|
4
2
|
import { ReferenceType } from '@floating-ui/react-dom';
|
|
3
|
+
import { UseComboboxGetComboboxPropsOptions, UseComboboxGetInputPropsOptions, UseComboboxGetToggleButtonPropsOptions } from 'downshift';
|
|
4
|
+
import { SelectComponents } from '../Select/components';
|
|
5
5
|
interface ComboboxInputProps<T> {
|
|
6
6
|
ariaDescribedBy?: string;
|
|
7
7
|
children?: React.ReactNode | React.ReactNode[];
|
|
@@ -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 {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ReferenceType } from '@floating-ui/react-dom';
|
|
2
3
|
import { UseComboboxProps, UseComboboxState, UseMultipleSelectionProps } from 'downshift';
|
|
3
4
|
import { InternalMultiProps, InternalSelectProps, SelectOptions } from '../Select';
|
|
4
5
|
import { Omit, XOR } from '../../utils';
|
|
5
6
|
import { LabelPosition } from '../Label';
|
|
6
|
-
import { ReferenceType } from '@floating-ui/react-dom';
|
|
7
7
|
export interface ComboboxProps<T extends SelectOptions> extends Omit<UseComboboxProps<T>, 'items'>, InternalSelectProps<T> {
|
|
8
8
|
/**
|
|
9
9
|
* Id of the element that describes the combobox input
|
|
@@ -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 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Drawer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ButtonIconPosition } from '../IconButton';
|
|
3
2
|
import { IconProps } from 'react-magma-icons';
|
|
3
|
+
import { ButtonIconPosition } from '../IconButton';
|
|
4
4
|
import { Omit, XOR } from '../../utils';
|
|
5
5
|
import { ButtonProps } from '../Button';
|
|
6
6
|
export interface IconOnlyDropdownButtonProps extends Omit<ButtonProps, 'children'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { AccordionButtonProps } from '../Accordion';
|
|
3
2
|
import { IconProps } from 'react-magma-icons';
|
|
3
|
+
import { AccordionButtonProps } from '../Accordion';
|
|
4
4
|
export interface DropdownExpandableMenuButtonProps extends AccordionButtonProps {
|
|
5
5
|
icon?: React.ReactElement<IconProps>;
|
|
6
6
|
testId?: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Omit } from '../../utils';
|
|
3
2
|
import { DropdownMenuItemProps } from './DropdownMenuItem';
|
|
4
|
-
export interface DropdownExpandableMenuListItemProps extends
|
|
3
|
+
export interface DropdownExpandableMenuListItemProps extends DropdownMenuItemProps {
|
|
5
4
|
disabled?: boolean;
|
|
6
5
|
testId?: string;
|
|
7
6
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AccordionPanelProps } from '../Accordion';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
export declare const DropdownExpandableMenuPanel: React.ForwardRefExoticComponent<DropdownExpandableMenuPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare type DropdownExpandableMenuPanelProps = AccordionPanelProps;
|
|
4
|
+
export declare const DropdownExpandableMenuPanel: React.ForwardRefExoticComponent<AccordionPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Grid';
|
|
@@ -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>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ButtonStyles } from '../Button';
|
|
3
|
-
import { Omit } from '../../utils';
|
|
4
2
|
import { IconProps } from 'react-magma-icons';
|
|
3
|
+
import { Omit } from '../../utils';
|
|
4
|
+
import { ButtonStyles } from '../Button';
|
|
5
5
|
export declare enum HyperlinkIconPosition {
|
|
6
6
|
left = "left",
|
|
7
7
|
right = "right",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ButtonProps, ButtonSize } from '../Button';
|
|
3
2
|
import { IconProps } from 'react-magma-icons';
|
|
4
3
|
import { Omit, XOR } from '../../utils';
|
|
4
|
+
import { ButtonProps, ButtonSize } from '../Button';
|
|
5
5
|
export declare enum ButtonIconPosition {
|
|
6
6
|
left = "left",
|
|
7
7
|
right = "right"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { CheckboxProps } from '../Checkbox';
|
|
3
2
|
import { Omit } from '../../utils';
|
|
3
|
+
import { CheckboxProps } from '../Checkbox';
|
|
4
4
|
export interface IndeterminateCheckboxProps extends Omit<CheckboxProps, 'checked'> {
|
|
5
5
|
/**
|
|
6
6
|
* Status of the indeterminate, three-state checkbox, which includes and indeterminate (e.g. mixed) option.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReferenceType } from '@floating-ui/react-dom/dist/floating-ui.react-dom';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import { ReferenceType } from '@floating-ui/react-dom/dist/floating-ui.react-dom';
|
|
3
3
|
import { IconProps } from 'react-magma-icons';
|
|
4
4
|
import { ThemeInterface } from '../../theme/magma';
|
|
5
5
|
import { LabelPosition } from '../Label';
|
|
@@ -13,7 +13,9 @@ export declare enum InputType {
|
|
|
13
13
|
number = "number",
|
|
14
14
|
password = "password",
|
|
15
15
|
search = "search",
|
|
16
|
-
text = "text"
|
|
16
|
+
text = "text",
|
|
17
|
+
url = "url",
|
|
18
|
+
tel = "tel"
|
|
17
19
|
}
|
|
18
20
|
export declare enum InputIconPosition {
|
|
19
21
|
top = "top",
|
|
@@ -129,7 +131,7 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
129
131
|
/**
|
|
130
132
|
* @internal
|
|
131
133
|
*/
|
|
132
|
-
theme?:
|
|
134
|
+
theme?: ThemeInterface;
|
|
133
135
|
/**
|
|
134
136
|
* The type attribute of the form field
|
|
135
137
|
* @default InputType.text
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
2
3
|
import { InputIconPosition, InputSize } from '../InputBase';
|
|
3
4
|
export declare enum LabelPosition {
|
|
4
5
|
left = "left",
|
|
@@ -16,7 +17,7 @@ export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>
|
|
|
16
17
|
* @default InputSize.medium
|
|
17
18
|
*/
|
|
18
19
|
size?: InputSize;
|
|
19
|
-
theme?:
|
|
20
|
+
theme?: ThemeInterface;
|
|
20
21
|
/**
|
|
21
22
|
* @internal
|
|
22
23
|
*/
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ListProps } from './';
|
|
3
2
|
import { Colors } from '../../theme/magma';
|
|
3
|
+
import { ListProps } from './';
|
|
4
4
|
/**
|
|
5
5
|
* @children required
|
|
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;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
3
|
+
import { XOR } from '../../utils';
|
|
2
4
|
import { TabsIconPosition } from '../Tabs';
|
|
3
5
|
import { TabsOrientation, TabsTextTransform } from '../Tabs/shared';
|
|
4
|
-
import { XOR } from '../../utils';
|
|
5
6
|
export interface BaseNavTabProps extends React.HTMLAttributes<HTMLAnchorElement> {
|
|
6
7
|
/**
|
|
7
8
|
* @internal
|
|
@@ -38,7 +39,7 @@ export interface BaseNavTabProps extends React.HTMLAttributes<HTMLAnchorElement>
|
|
|
38
39
|
/**
|
|
39
40
|
* @internal
|
|
40
41
|
*/
|
|
41
|
-
theme?:
|
|
42
|
+
theme?: ThemeInterface;
|
|
42
43
|
}
|
|
43
44
|
export interface NavTabChildrenProps extends BaseNavTabProps {
|
|
44
45
|
children?: JSX.Element | string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TabsBorderPosition, TabsIconPosition, TabsProps } from '../Tabs';
|
|
3
|
-
import { TabsOrientation, TabsTextTransform } from '../Tabs/shared';
|
|
4
3
|
import { Omit } from '../../utils';
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { TabsOrientation, TabsTextTransform } from '../Tabs/shared';
|
|
5
|
+
export declare type NavTabsProps = Omit<TabsProps, 'onChange'>;
|
|
7
6
|
interface NavTabsContextInterface {
|
|
8
7
|
borderPosition?: TabsBorderPosition;
|
|
9
8
|
iconPosition?: TabsIconPosition;
|
|
@@ -13,5 +12,5 @@ interface NavTabsContextInterface {
|
|
|
13
12
|
textTransform?: TabsTextTransform;
|
|
14
13
|
}
|
|
15
14
|
export declare const NavTabsContext: React.Context<NavTabsContextInterface>;
|
|
16
|
-
export declare const NavTabs: React.ForwardRefExoticComponent<(
|
|
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>)>;
|
|
17
16
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
2
3
|
import { TypographyVisualStyle, TypographyColor, TypographyContextVariant } from '../Typography';
|
|
3
4
|
/**
|
|
4
5
|
* @children required
|
|
@@ -37,7 +38,7 @@ export interface ParagraphProps extends React.HTMLAttributes<HTMLParagraphElemen
|
|
|
37
38
|
/**
|
|
38
39
|
* @internal
|
|
39
40
|
*/
|
|
40
|
-
theme?:
|
|
41
|
+
theme?: ThemeInterface;
|
|
41
42
|
/**
|
|
42
43
|
* Applies visual styles including font-size, font-weight, line-height and margins
|
|
43
44
|
* @default TypographyVisualStyle.bodyMedium
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { InputSize } from '../InputBase';
|
|
3
2
|
import { FormFieldContainerBaseProps } from '../FormFieldContainer';
|
|
3
|
+
import { InputSize } from '../InputBase';
|
|
4
4
|
export interface PasswordInputProps extends Omit<FormFieldContainerBaseProps, 'fieldId'>, React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
5
|
hiddenPasswordAnnounceText?: string;
|
|
6
6
|
/**
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ReferenceType } from '@floating-ui/react';
|
|
3
|
+
export declare enum PopoverPosition {
|
|
4
|
+
bottom = "bottom",
|
|
5
|
+
top = "top"
|
|
6
|
+
}
|
|
7
|
+
export interface PopoverApi {
|
|
8
|
+
closePopoverManually(event: any): void;
|
|
9
|
+
}
|
|
10
|
+
export interface PopoverProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
/**
|
|
12
|
+
* Function called when closing the popover menu
|
|
13
|
+
*/
|
|
14
|
+
onClose?: (event: React.SyntheticEvent) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Function called when opening the popover menu
|
|
17
|
+
*/
|
|
18
|
+
onOpen?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
testId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Determines the position of the popover relative to its trigger.
|
|
25
|
+
* @default PopoverPosition.bottom
|
|
26
|
+
*/
|
|
27
|
+
position?: PopoverPosition;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the maximum height of the popover content.
|
|
30
|
+
* @default 100%
|
|
31
|
+
*/
|
|
32
|
+
maxHeight?: string | number;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the width of the popover.
|
|
35
|
+
* @default Width of longest menu item
|
|
36
|
+
*/
|
|
37
|
+
width?: string | number;
|
|
38
|
+
/**
|
|
39
|
+
* If true, the popover will remain open when hovered over.
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
hoverable?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* If true, the component will have inverse styling to better appear on a dark background
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
isInverse?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* If true, the popover will be disabled and cannot be opened.
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
isDisabled?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* If true, a pointer (arrow) is displayed pointing towards the trigger element.
|
|
55
|
+
* @default true
|
|
56
|
+
*/
|
|
57
|
+
hasPointer?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* If true, the popover is open by default when the component is first rendered.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
openByDefault?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The ref object that allows Popover manipulation.
|
|
65
|
+
* Actions available:
|
|
66
|
+
* closePopoverManually(event): void - Closes the popover manually.
|
|
67
|
+
*/
|
|
68
|
+
apiRef?: React.MutableRefObject<PopoverApi | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* If true, the focus will be trapped within the popover, preventing focus from moving outside.
|
|
71
|
+
* This is recommended when using interactive elements inside the popover to improve accessibility.
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
focusTrap?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export interface PopoverContextInterface {
|
|
77
|
+
floatingStyles?: React.CSSProperties;
|
|
78
|
+
position?: PopoverPosition;
|
|
79
|
+
closePopover?: (event: React.SyntheticEvent | React.KeyboardEvent) => void;
|
|
80
|
+
popoverTriggerId?: React.MutableRefObject<string>;
|
|
81
|
+
popoverContentId?: React.MutableRefObject<string>;
|
|
82
|
+
openPopover?: () => void;
|
|
83
|
+
isInverse?: boolean;
|
|
84
|
+
isOpen: boolean;
|
|
85
|
+
maxHeight?: string;
|
|
86
|
+
width?: string;
|
|
87
|
+
contentRef?: any;
|
|
88
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
89
|
+
setFloating?: (node: ReferenceType) => void;
|
|
90
|
+
setReference?: (node: ReferenceType) => void;
|
|
91
|
+
arrowRef?: React.MutableRefObject<any>;
|
|
92
|
+
arrowContext?: any;
|
|
93
|
+
toggleRef?: any;
|
|
94
|
+
isDisabled?: boolean;
|
|
95
|
+
hoverable?: boolean;
|
|
96
|
+
hasPointer?: boolean;
|
|
97
|
+
focusTrap?: boolean;
|
|
98
|
+
hasActiveElements?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export declare const PopoverContext: React.Context<PopoverContextInterface>;
|
|
101
|
+
export declare function hasActiveElementsChecker(ref: any): boolean;
|
|
102
|
+
export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface PopoverContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
testId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @children required
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactChild | React.ReactChild[];
|
|
11
|
+
}
|
|
12
|
+
export declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PopoverSectionProps {
|
|
3
|
+
/**
|
|
4
|
+
* @children required
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactChild | React.ReactChild[];
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
export declare const PopoverHeader: ({ children, style, ...other }: PopoverSectionProps) => React.JSX.Element;
|
|
13
|
+
export declare const PopoverFooter: ({ children, style, ...other }: PopoverSectionProps) => React.JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IconProps } from 'react-magma-icons';
|
|
3
|
+
import { Omit, XOR } from '../../utils';
|
|
4
|
+
import { ButtonProps } from '../Button';
|
|
5
|
+
interface IconOnlyPopoverTriggerProps extends Omit<ButtonProps, 'children'> {
|
|
6
|
+
/**
|
|
7
|
+
* Icon to display within the component
|
|
8
|
+
*/
|
|
9
|
+
icon?: React.ReactElement<IconProps>;
|
|
10
|
+
/**
|
|
11
|
+
* The text the screen reader will announce. Required for icon-only buttons
|
|
12
|
+
*/
|
|
13
|
+
'aria-label': string;
|
|
14
|
+
/**
|
|
15
|
+
* The tab order of the component when navigating with a keyboard
|
|
16
|
+
*/
|
|
17
|
+
tabIndex?: number;
|
|
18
|
+
}
|
|
19
|
+
interface IconTextPopoverTriggerProps extends ButtonProps {
|
|
20
|
+
/**
|
|
21
|
+
* Icon to display within the component
|
|
22
|
+
*/
|
|
23
|
+
icon?: React.ReactElement<IconProps>;
|
|
24
|
+
/**
|
|
25
|
+
* The content of the component
|
|
26
|
+
*/
|
|
27
|
+
children: React.ReactChild | React.ReactChild[] | string;
|
|
28
|
+
/**
|
|
29
|
+
* The tab order of the component when navigating with a keyboard
|
|
30
|
+
*/
|
|
31
|
+
tabIndex?: number;
|
|
32
|
+
}
|
|
33
|
+
export declare type PopoverTriggerProps = XOR<IconOnlyPopoverTriggerProps, IconTextPopoverTriggerProps>;
|
|
34
|
+
export declare const PopoverTrigger: React.ForwardRefExoticComponent<({} & IconTextPopoverTriggerProps & React.RefAttributes<HTMLButtonElement>) | ({
|
|
35
|
+
children?: never;
|
|
36
|
+
} & IconOnlyPopoverTriggerProps & React.RefAttributes<HTMLButtonElement>)>;
|
|
37
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ReferenceType } from '@floating-ui/react-dom';
|
|
2
3
|
import { UseSelectGetItemPropsOptions, UseSelectGetMenuPropsOptions } from 'downshift';
|
|
3
|
-
import React from 'react';
|
|
4
4
|
import { SelectComponents } from './components';
|
|
5
5
|
interface ItemsListProps<T> {
|
|
6
6
|
customComponents?: SelectComponents<T>;
|
|
@@ -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 {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LabelPosition } from '../Label';
|
|
3
2
|
import { UseSelectGetLabelPropsOptions } from 'downshift';
|
|
3
|
+
import { LabelPosition } from '../Label';
|
|
4
4
|
export declare const SelectContainerElement: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
6
|
as?: React.ElementType<any>;
|
|
@@ -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 {};
|