react-magma-dom 2.5.7-next.0 → 2.5.7-next.4
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/Dropdown/Dropdown.d.ts +4 -0
- package/dist/components/InputBase/index.d.ts +7 -0
- package/dist/components/Search/index.d.ts +3 -2
- package/dist/esm/index.js +18 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/properties.json +204 -77
- package/dist/react-magma-dom.cjs.development.js +18 -13
- 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/package.json +1 -1
|
@@ -39,6 +39,10 @@ export interface DropdownProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
39
39
|
* Function called when closing the dropdown menu
|
|
40
40
|
*/
|
|
41
41
|
onClose?: (event: React.SyntheticEvent) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Function called when opening the dropdown menu
|
|
44
|
+
*/
|
|
45
|
+
onOpen?: () => void;
|
|
42
46
|
testId?: string;
|
|
43
47
|
/**
|
|
44
48
|
* Width of menu
|
|
@@ -62,6 +62,10 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
62
62
|
*/
|
|
63
63
|
onClear?: () => void;
|
|
64
64
|
isInverse?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* For use in predictive search which moves the icon to the left
|
|
67
|
+
*/
|
|
68
|
+
isPredictive?: boolean;
|
|
65
69
|
/**
|
|
66
70
|
* Action that will fire when icon is clicked
|
|
67
71
|
*/
|
|
@@ -85,6 +89,7 @@ export interface InputWrapperStylesProps {
|
|
|
85
89
|
width?: string;
|
|
86
90
|
isInverse?: boolean;
|
|
87
91
|
isClearable?: boolean;
|
|
92
|
+
isPredictive?: boolean;
|
|
88
93
|
theme?: ThemeInterface;
|
|
89
94
|
hasError?: boolean;
|
|
90
95
|
disabled?: boolean;
|
|
@@ -94,8 +99,10 @@ export interface InputBaseStylesProps {
|
|
|
94
99
|
isInverse?: boolean;
|
|
95
100
|
iconPosition?: InputIconPosition;
|
|
96
101
|
inputSize?: InputSize;
|
|
102
|
+
isPredictive?: boolean;
|
|
97
103
|
theme?: ThemeInterface;
|
|
98
104
|
disabled?: boolean;
|
|
99
105
|
}
|
|
100
106
|
export declare const inputBaseStyles: (props: InputBaseStylesProps) => import("@emotion/utils").SerializedStyles;
|
|
107
|
+
export declare const InputWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InputWrapperStylesProps, ThemeInterface>;
|
|
101
108
|
export declare const InputBase: React.ForwardRefExoticComponent<InputBaseProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { InputSize } from '../InputBase';
|
|
3
|
-
export interface SearchProps extends
|
|
2
|
+
import { InputBaseProps, InputIconPosition, InputSize } from '../InputBase';
|
|
3
|
+
export interface SearchProps extends InputBaseProps {
|
|
4
4
|
/**
|
|
5
5
|
* Style properties for the component container element
|
|
6
6
|
*/
|
|
@@ -22,6 +22,7 @@ export interface SearchProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
|
22
22
|
/**
|
|
23
23
|
* Clear contents of input by clicking a clear button
|
|
24
24
|
*/
|
|
25
|
+
iconPosition?: InputIconPosition;
|
|
25
26
|
isClearable?: boolean;
|
|
26
27
|
/**
|
|
27
28
|
* If true, the component will show a loading animation instead of a search button
|