react-magma-dom 4.8.1-next.2 → 4.9.0-next.11
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/ComboboxInput.d.ts +2 -2
- package/dist/components/Combobox/index.d.ts +1 -1
- 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 -1
- package/dist/components/Dropdown/DropdownExpandableMenuPanel.d.ts +2 -3
- package/dist/components/Grid/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 +1 -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 +1 -1
- package/dist/components/Select/SelectContainer.d.ts +1 -1
- package/dist/components/Select/SelectTriggerButton.d.ts +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/SkipLink/index.d.ts +2 -2
- package/dist/components/Stepper/Step.d.ts +1 -1
- 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 +2 -0
- package/dist/components/TreeView/useTreeItem.d.ts +1 -0
- package/dist/components/TreeView/useTreeView.d.ts +11 -0
- package/dist/components/TreeView/utils.d.ts +8 -8
- package/dist/components/Typography/index.d.ts +2 -1
- package/dist/esm/index.js +10423 -17302
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/properties.json +862 -256
- package/dist/react-magma-dom.cjs.development.js +3305 -2692
- 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/package.json +29 -28
|
@@ -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[];
|
|
@@ -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
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Omit } from '../../utils';
|
|
3
2
|
import { DropdownMenuItemProps } from './DropdownMenuItem';
|
|
3
|
+
import { Omit } from '../../utils';
|
|
4
4
|
export interface DropdownExpandableMenuListItemProps extends Omit<DropdownMenuItemProps, 'icon'> {
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
testId?: string;
|
|
@@ -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';
|
|
@@ -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,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" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "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" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "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-dom';
|
|
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) => JSX.Element;
|
|
13
|
+
export declare const PopoverFooter: ({ children, style, ...other }: PopoverSectionProps) => 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>;
|
|
@@ -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>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SelectComponents } from '../Select/components';
|
|
3
2
|
import { ReferenceType } from '@floating-ui/react-dom';
|
|
3
|
+
import { SelectComponents } from '../Select/components';
|
|
4
4
|
interface SelectTriggerButtonInterface<T> {
|
|
5
5
|
ariaDescribedBy?: string;
|
|
6
6
|
children: React.ReactNode | React.ReactNode[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { ReferenceType } from '@floating-ui/react-dom/dist/floating-ui.react-dom';
|
|
2
3
|
import { UseMultipleSelectionProps, UseSelectProps } from 'downshift';
|
|
3
|
-
import * as React from 'react';
|
|
4
4
|
import { Omit, XOR } from '../../utils';
|
|
5
5
|
import { LabelPosition } from '../Label';
|
|
6
6
|
import { SelectComponents } from './components';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { HyperlinkProps } from '../Hyperlink';
|
|
3
2
|
import { Omit } from '../../utils';
|
|
3
|
+
import { HyperlinkProps } from '../Hyperlink';
|
|
4
4
|
export declare const TARGET_ID = "reactMagmaMainContent";
|
|
5
|
-
export interface SkipLinkProps extends Omit<HyperlinkProps, 'children'> {
|
|
5
|
+
export interface SkipLinkProps extends Omit<HyperlinkProps, 'children' | 'to'> {
|
|
6
6
|
/**
|
|
7
7
|
* The text in the skip link
|
|
8
8
|
* @default "Skip Navigation"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ThemeInterface } from '../../theme/magma';
|
|
3
2
|
import { StepperLayout, StepperOrientation } from './Stepper';
|
|
3
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
4
4
|
export interface StepProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Error state for each step.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TableCellAlign } from './Table';
|
|
3
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
3
4
|
export interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
4
5
|
/**
|
|
5
6
|
* Text alignment of the cell content. Right alignment should be used for numeric values
|
|
@@ -17,5 +18,5 @@ export interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElemen
|
|
|
17
18
|
width?: string | number;
|
|
18
19
|
}
|
|
19
20
|
export declare const baseTableCellStyle: (props: any) => import("@emotion/react").SerializedStyles;
|
|
20
|
-
export declare function buildCellPaddingStyle(density: any, theme:
|
|
21
|
+
export declare function buildCellPaddingStyle(density: any, theme: ThemeInterface): string;
|
|
21
22
|
export declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TabsIconPosition, TabsBorderPosition } from './Tabs';
|
|
3
2
|
import { TabsOrientation, TabsTextTransform } from './shared';
|
|
3
|
+
import { TabsIconPosition, TabsBorderPosition } from './Tabs';
|
|
4
4
|
import { ThemeInterface } from '../../theme/magma';
|
|
5
5
|
export interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
6
|
/**
|
|
@@ -20,7 +20,7 @@ export interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
20
20
|
/**
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
|
-
theme?:
|
|
23
|
+
theme?: ThemeInterface;
|
|
24
24
|
}
|
|
25
25
|
export declare const StyledTabsChild: import("@emotion/styled").StyledComponent<{
|
|
26
26
|
theme?: import("@emotion/react").Theme;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Omit } from '../../utils';
|
|
3
|
-
import { ThemeInterface } from '../../theme/magma';
|
|
4
2
|
import { TabsOrientation, TabsTextTransform } from './shared';
|
|
3
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
4
|
+
import { Omit } from '../../utils';
|
|
5
5
|
export declare enum TabsAlignment {
|
|
6
6
|
center = "center",
|
|
7
7
|
left = "left",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Tag';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FormFieldContainerBaseProps } from '../FormFieldContainer';
|
|
3
2
|
import { Omit } from '../../utils';
|
|
3
|
+
import { FormFieldContainerBaseProps } from '../FormFieldContainer';
|
|
4
4
|
export interface TextareaProps extends Omit<FormFieldContainerBaseProps, 'inputSize' | 'fieldId'>, React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Style properties for the component container element
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
2
3
|
export declare enum ToggleTextPosition {
|
|
3
4
|
left = "left",
|
|
4
5
|
right = "right"
|
|
@@ -52,7 +53,7 @@ export interface ToggleProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
52
53
|
/**
|
|
53
54
|
* @internal
|
|
54
55
|
*/
|
|
55
|
-
theme?:
|
|
56
|
+
theme?: ThemeInterface;
|
|
56
57
|
/**
|
|
57
58
|
* Style properties for the part of the component that slides back and forth on the track
|
|
58
59
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IconProps } from 'react-magma-icons';
|
|
3
3
|
import { ThemeInterface } from '../../theme/magma';
|
|
4
|
+
import { XOR } from '../../utils';
|
|
4
5
|
import { ButtonProps, ButtonSize } from '../Button';
|
|
5
|
-
import { IconProps } from 'react-magma-icons';
|
|
6
6
|
export interface ToggleButtonTextProps extends ButtonProps {
|
|
7
7
|
/**
|
|
8
8
|
* Sets a disabled state for a button.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
2
3
|
import { ButtonSize } from '../Button';
|
|
3
4
|
import { ButtonGroupProps } from '../ButtonGroup';
|
|
4
|
-
import { ThemeInterface } from '../../theme/magma';
|
|
5
5
|
/**
|
|
6
6
|
* @children required
|
|
7
7
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { UseTreeItemProps } from './useTreeItem';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
export declare const TreeItem: React.ForwardRefExoticComponent<TreeItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
3
|
+
export declare type TreeItemProps = UseTreeItemProps;
|
|
4
|
+
export declare const TreeItem: React.ForwardRefExoticComponent<UseTreeItemProps & React.RefAttributes<HTMLLIElement>>;
|