baseui 0.0.0-next-e0f9354 → 0.0.0-next-ac80337
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/accordion/types.d.ts +2 -2
- package/app-nav-bar/types.d.ts +2 -2
- package/aspect-ratio-box/aspect-ratio-box-body.d.ts +1 -1
- package/aspect-ratio-box/types.d.ts +1 -1
- package/badge/types.d.ts +2 -2
- package/banner/index.d.ts +1 -1
- package/banner/types.d.ts +3 -4
- package/block/types.d.ts +3 -4
- package/button/types.d.ts +4 -5
- package/button-group/types.d.ts +4 -5
- package/checkbox/types.d.ts +36 -37
- package/combobox/types.d.ts +4 -5
- package/data-table/types.d.ts +4 -5
- package/datepicker/types.d.ts +2 -2
- package/divider/types.d.ts +1 -1
- package/dnd-list/types.d.ts +2 -2
- package/drawer/types.d.ts +2 -2
- package/flex-grid/types.d.ts +1 -1
- package/form-control/types.d.ts +1 -1
- package/heading/types.d.ts +1 -1
- package/helpers/types.d.ts +1 -1
- package/icon/types.d.ts +1 -1
- package/input/types.d.ts +13 -14
- package/layer/types.d.ts +2 -2
- package/layout-grid/types.d.ts +2 -2
- package/list/types.d.ts +2 -2
- package/locale/en_US.d.ts +1 -1
- package/locale/es_AR.d.ts +1 -1
- package/locale/tr_TR.d.ts +1 -1
- package/map-marker/types.d.ts +2 -2
- package/menu/index.d.ts +1 -2
- package/menu/types.d.ts +12 -13
- package/message-card/types.d.ts +1 -1
- package/modal/types.d.ts +2 -2
- package/package.json +1 -1
- package/pagination/types.d.ts +2 -2
- package/phone-input/types.d.ts +5 -6
- package/pin-code/types.d.ts +2 -2
- package/popover/types.d.ts +2 -2
- package/progress-bar/types.d.ts +2 -2
- package/radio/types.d.ts +19 -20
- package/select/types.d.ts +5 -6
- package/side-navigation/types.d.ts +1 -1
- package/slider/types.d.ts +1 -1
- package/snackbar/types.d.ts +3 -4
- package/spinner/types.d.ts +1 -1
- package/styles/styled.d.ts +1 -1
- package/table/types.d.ts +2 -2
- package/table-semantic/types.d.ts +2 -2
- package/tabs/types.d.ts +2 -2
- package/tabs-motion/types.d.ts +2 -2
- package/tabs-motion/utils.d.ts +1 -1
- package/tag/types.d.ts +4 -5
- package/textarea/types.d.ts +3 -5
- package/toast/types.d.ts +2 -2
- package/tree-view/types.d.ts +3 -4
- package/utils/focusVisible.d.ts +1 -1
package/accordion/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { STATE_CHANGE_TYPE } from './constants';
|
|
3
|
+
import type { STATE_CHANGE_TYPE } from './constants';
|
|
4
4
|
export declare type AccordionState = {
|
|
5
5
|
expanded: Array<React.Key>;
|
|
6
6
|
};
|
package/app-nav-bar/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { POSITION } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { POSITION } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
4
|
export declare type AppNavBarOverrides = {
|
|
5
5
|
Root?: Override;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyledBlockProps, BlockProps } from '../block';
|
|
2
|
+
import type { StyledBlockProps, BlockProps } from '../block';
|
|
3
3
|
interface AspectRatioBoxBodyComponentType<D extends React.ElementType> {
|
|
4
4
|
<C extends React.ElementType = D>(props: BlockProps<C> & Omit<StyledBlockProps & React.ComponentProps<C>, keyof BlockProps>): JSX.Element;
|
|
5
5
|
displayName?: string;
|
package/badge/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { HIERARCHY, SHAPE, COLOR, PLACEMENT, ROLE } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { HIERARCHY, SHAPE, COLOR, PLACEMENT, ROLE } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
4
|
export declare type Hierarchy = typeof HIERARCHY[keyof typeof HIERARCHY];
|
|
5
5
|
export declare type Shape = typeof SHAPE[keyof typeof SHAPE];
|
package/banner/index.d.ts
CHANGED
package/banner/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { ACTION_POSITION, ARTWORK_TYPE, HIERARCHY, KIND } from './constants';
|
|
4
|
-
import type { SyntheticEvent } from 'react';
|
|
3
|
+
import type { ACTION_POSITION, ARTWORK_TYPE, HIERARCHY, KIND } from './constants';
|
|
5
4
|
export declare type ActionPosition = typeof ACTION_POSITION[keyof typeof ACTION_POSITION];
|
|
6
5
|
export declare type ArtworkType = typeof ARTWORK_TYPE[keyof typeof ARTWORK_TYPE];
|
|
7
6
|
export declare type Hierarchy = typeof HIERARCHY[keyof typeof HIERARCHY];
|
|
@@ -11,7 +10,7 @@ export declare type ActionContent = {
|
|
|
11
10
|
icon?: (a: {
|
|
12
11
|
size: string;
|
|
13
12
|
}) => React.ReactNode;
|
|
14
|
-
onClick: (a: SyntheticEvent<HTMLButtonElement>) => unknown;
|
|
13
|
+
onClick: (a: React.SyntheticEvent<HTMLButtonElement>) => unknown;
|
|
15
14
|
position?: ActionPosition;
|
|
16
15
|
};
|
|
17
16
|
export declare type ArtworkContent = {
|
package/block/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { StyleObject } from 'styletron-standard';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
|
-
import * as React from 'react';
|
|
5
4
|
export declare type BlockOverrides = {
|
|
6
5
|
Block?: Override;
|
|
7
6
|
};
|
|
@@ -20,8 +19,8 @@ declare type Position = 'static' | 'absolute' | 'relative' | 'fixed' | 'sticky';
|
|
|
20
19
|
declare type Overflow = 'visible' | 'hidden' | 'scroll' | 'scrollX' | 'scrollY' | 'auto' | 'inherit' | 'initial' | 'unset';
|
|
21
20
|
export declare type Scale = 0 | string;
|
|
22
21
|
export declare type WhiteSpace = 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line' | 'break-spaces' | 'inherit' | 'initial' | 'unset';
|
|
23
|
-
export declare type BlockProps<T extends ElementType = ElementType> = {
|
|
24
|
-
children?: ReactNode;
|
|
22
|
+
export declare type BlockProps<T extends React.ElementType = React.ElementType> = {
|
|
23
|
+
children?: React.ReactNode;
|
|
25
24
|
/** Modifies the base element used to render the block. */
|
|
26
25
|
as?: T;
|
|
27
26
|
overrides?: BlockOverrides;
|
package/button/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { KIND, SIZE, SHAPE } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { KIND, SIZE, SHAPE } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
|
-
import type { ReactNode, SyntheticEvent } from 'react';
|
|
5
4
|
export declare type ButtonOverrides = {
|
|
6
5
|
Root?: Override;
|
|
7
6
|
BaseButton?: Override;
|
|
@@ -15,7 +14,7 @@ export declare type CustomColors = {
|
|
|
15
14
|
color: string;
|
|
16
15
|
};
|
|
17
16
|
export declare type ButtonProps = {
|
|
18
|
-
children?: ReactNode;
|
|
17
|
+
children?: React.ReactNode;
|
|
19
18
|
colors?: CustomColors;
|
|
20
19
|
disabled?: boolean;
|
|
21
20
|
/** A helper rendered at the end of the button. */
|
|
@@ -26,7 +25,7 @@ export declare type ButtonProps = {
|
|
|
26
25
|
isSelected?: boolean;
|
|
27
26
|
/** Defines the kind (purpose) of a button */
|
|
28
27
|
kind?: keyof typeof KIND;
|
|
29
|
-
onClick?: (a: SyntheticEvent<HTMLButtonElement>) => unknown;
|
|
28
|
+
onClick?: (a: React.SyntheticEvent<HTMLButtonElement>) => unknown;
|
|
30
29
|
overrides?: ButtonOverrides;
|
|
31
30
|
/** Defines the shape of the button */
|
|
32
31
|
shape?: keyof typeof SHAPE;
|
package/button-group/types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SIZE, SHAPE, KIND } from '../button';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { SIZE, SHAPE, KIND } from '../button';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
|
-
import { MODE, STATE_CHANGE_TYPE } from './constants';
|
|
5
|
-
import type { SyntheticEvent } from 'react';
|
|
4
|
+
import type { MODE, STATE_CHANGE_TYPE } from './constants';
|
|
6
5
|
export declare type ButtonGroupProps = {
|
|
7
6
|
/** Accessible label. */
|
|
8
7
|
ariaLabel?: string;
|
|
@@ -55,5 +54,5 @@ export declare type State = {
|
|
|
55
54
|
selected: Array<number>;
|
|
56
55
|
};
|
|
57
56
|
export declare type StateReducer = (stateType: typeof STATE_CHANGE_TYPE[keyof typeof STATE_CHANGE_TYPE], nextState: State, currentState: State) => State;
|
|
58
|
-
declare type ClickHandler = (event: SyntheticEvent<HTMLButtonElement>, index: number) => unknown;
|
|
57
|
+
declare type ClickHandler = (event: React.SyntheticEvent<HTMLButtonElement>, index: number) => unknown;
|
|
59
58
|
export {};
|
package/checkbox/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { STYLE_TYPE } from './constants';
|
|
4
|
-
import type { ReactNode, ChangeEvent } from 'react';
|
|
3
|
+
import type { STYLE_TYPE } from './constants';
|
|
5
4
|
export declare type LabelPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
6
5
|
export declare type StyleType = keyof typeof STYLE_TYPE;
|
|
7
6
|
export declare type CheckboxOverrides = {
|
|
@@ -15,7 +14,7 @@ export declare type CheckboxOverrides = {
|
|
|
15
14
|
};
|
|
16
15
|
export declare type DefaultProps = {
|
|
17
16
|
overrides?: any;
|
|
18
|
-
children?: ReactNode;
|
|
17
|
+
children?: React.ReactNode;
|
|
19
18
|
checked: boolean;
|
|
20
19
|
disabled: boolean;
|
|
21
20
|
error: boolean;
|
|
@@ -24,13 +23,13 @@ export declare type DefaultProps = {
|
|
|
24
23
|
isIndeterminate: boolean;
|
|
25
24
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
26
25
|
checkmarkType: StyleType;
|
|
27
|
-
onChange: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
28
|
-
onMouseEnter: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
29
|
-
onMouseLeave: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
30
|
-
onMouseDown: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
31
|
-
onMouseUp: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
32
|
-
onFocus: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
33
|
-
onBlur: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
26
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
27
|
+
onMouseEnter: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
28
|
+
onMouseLeave: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
29
|
+
onMouseDown: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
30
|
+
onMouseUp: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
31
|
+
onFocus: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
32
|
+
onBlur: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
34
33
|
containsInteractiveElement?: boolean;
|
|
35
34
|
};
|
|
36
35
|
export declare type CheckboxProps = {
|
|
@@ -42,7 +41,7 @@ export declare type CheckboxProps = {
|
|
|
42
41
|
ariaLabel?: string;
|
|
43
42
|
'aria-label'?: string;
|
|
44
43
|
/** Component or String value for label of checkbox. */
|
|
45
|
-
children?: ReactNode;
|
|
44
|
+
children?: React.ReactNode;
|
|
46
45
|
/** Indicates if this checkbox children contain an interactive element (prevents the label from moving focus from the child element to the radio button) */
|
|
47
46
|
containsInteractiveElement?: boolean;
|
|
48
47
|
overrides?: CheckboxOverrides;
|
|
@@ -73,19 +72,19 @@ export declare type CheckboxProps = {
|
|
|
73
72
|
/** Text to display in native OS tooltip on long hover. */
|
|
74
73
|
title?: string | null;
|
|
75
74
|
/** Handler for change events on trigger element. */
|
|
76
|
-
onChange?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
75
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
77
76
|
/** Handler for mouseenter events on trigger element. */
|
|
78
|
-
onMouseEnter?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
77
|
+
onMouseEnter?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
79
78
|
/** Handler for mouseleave events on trigger element. */
|
|
80
|
-
onMouseLeave?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
79
|
+
onMouseLeave?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
81
80
|
/** Handler for mousedown events on trigger element. */
|
|
82
|
-
onMouseDown?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
81
|
+
onMouseDown?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
83
82
|
/** Handler for mouseup events on trigger element. */
|
|
84
|
-
onMouseUp?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
83
|
+
onMouseUp?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
85
84
|
/** handler for focus events on trigger element. */
|
|
86
|
-
onFocus?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
85
|
+
onFocus?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
87
86
|
/** handler for blur events on trigger element. */
|
|
88
|
-
onBlur?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
87
|
+
onBlur?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
89
88
|
};
|
|
90
89
|
export declare type CheckboxState = {
|
|
91
90
|
isFocused: boolean;
|
|
@@ -97,50 +96,50 @@ export declare type CheckboxReducerState = {
|
|
|
97
96
|
checked?: boolean;
|
|
98
97
|
isIndeterminate?: boolean;
|
|
99
98
|
};
|
|
100
|
-
export declare type StateReducer = (stateType: string, nextState: CheckboxReducerState, currentState: CheckboxReducerState, event: ChangeEvent<HTMLInputElement>) => CheckboxReducerState;
|
|
99
|
+
export declare type StateReducer = (stateType: string, nextState: CheckboxReducerState, currentState: CheckboxReducerState, event: React.ChangeEvent<HTMLInputElement>) => CheckboxReducerState;
|
|
101
100
|
export declare type StatefulContainerChildProps = {
|
|
102
101
|
overrides?: CheckboxOverrides;
|
|
103
102
|
/** Handler for change events on trigger element. */
|
|
104
|
-
onChange?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
103
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
105
104
|
/** Handler for mouseenter events on trigger element. */
|
|
106
|
-
onMouseEnter?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
105
|
+
onMouseEnter?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
107
106
|
/** Handler for mouseleave events on trigger element. */
|
|
108
|
-
onMouseLeave?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
107
|
+
onMouseLeave?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
109
108
|
/** Handler for focus events on trigger element. */
|
|
110
|
-
onFocus?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
109
|
+
onFocus?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
111
110
|
/** Handler for blur events on trigger element. */
|
|
112
|
-
onBlur?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
111
|
+
onBlur?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
113
112
|
/** Focus the checkbox on initial render. */
|
|
114
113
|
autoFocus?: boolean;
|
|
115
114
|
} & CheckboxReducerState;
|
|
116
115
|
export declare type DefaultStatefulProps = {
|
|
117
116
|
initialState: CheckboxReducerState;
|
|
118
|
-
children?: (a: StatefulContainerChildProps) => ReactNode;
|
|
117
|
+
children?: (a: StatefulContainerChildProps) => React.ReactNode;
|
|
119
118
|
stateReducer: StateReducer;
|
|
120
|
-
onChange: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
121
|
-
onMouseEnter: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
122
|
-
onMouseLeave: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
123
|
-
onFocus: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
124
|
-
onBlur: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
119
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
120
|
+
onMouseEnter: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
121
|
+
onMouseLeave: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
122
|
+
onFocus: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
123
|
+
onBlur: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
125
124
|
};
|
|
126
125
|
export declare type StatefulContainerProps = {
|
|
127
126
|
overrides?: CheckboxOverrides;
|
|
128
127
|
/** Component or String value for label of checkbox. */
|
|
129
|
-
children?: (a: StatefulContainerChildProps) => ReactNode;
|
|
128
|
+
children?: (a: StatefulContainerChildProps) => React.ReactNode;
|
|
130
129
|
/** Defines the components initial state value */
|
|
131
130
|
initialState?: CheckboxReducerState;
|
|
132
131
|
/** A state change handler. Used to override default state transitions. */
|
|
133
132
|
stateReducer: StateReducer;
|
|
134
133
|
/** Handler for change events on trigger element. */
|
|
135
|
-
onChange?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
134
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
136
135
|
/** Handler for mouseenter events on trigger element. */
|
|
137
|
-
onMouseEnter?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
136
|
+
onMouseEnter?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
138
137
|
/** Handler for mouseleave events on trigger element. */
|
|
139
|
-
onMouseLeave?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
138
|
+
onMouseLeave?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
140
139
|
/** Handler for focus events on trigger element. */
|
|
141
|
-
onFocus?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
140
|
+
onFocus?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
142
141
|
/** Handler for blur events on trigger element. */
|
|
143
|
-
onBlur?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
142
|
+
onBlur?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
144
143
|
/** Focus the checkbox on initial render. */
|
|
145
144
|
autoFocus?: boolean;
|
|
146
145
|
};
|
package/combobox/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { SIZE } from '../input';
|
|
4
|
-
import type { ChangeEvent } from 'react';
|
|
3
|
+
import type { SIZE } from '../input';
|
|
5
4
|
export declare type ComboboxOverrides = {
|
|
6
5
|
Root?: Override;
|
|
7
6
|
InputContainer?: Override;
|
|
@@ -23,9 +22,9 @@ export declare type ComboboxProps<Option = unknown> = {
|
|
|
23
22
|
id?: string;
|
|
24
23
|
name?: string;
|
|
25
24
|
inputRef?: React.Ref<HTMLElement>;
|
|
26
|
-
onBlur?: (a: ChangeEvent<HTMLInputElement>) => unknown;
|
|
25
|
+
onBlur?: (a: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
27
26
|
onChange: (b: string, a: Option | null) => unknown;
|
|
28
|
-
onFocus?: (a: ChangeEvent<HTMLInputElement>) => unknown;
|
|
27
|
+
onFocus?: (a: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
29
28
|
onSubmit?: (a: {
|
|
30
29
|
closeListbox: () => void;
|
|
31
30
|
value: string;
|
package/data-table/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { COLUMNS, SORT_DIRECTIONS } from './constants';
|
|
3
|
-
import type { SyntheticEvent } from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { COLUMNS, SORT_DIRECTIONS } from './constants';
|
|
4
3
|
export declare type SortDirections = typeof SORT_DIRECTIONS[keyof typeof SORT_DIRECTIONS];
|
|
5
4
|
export declare type Columns = typeof COLUMNS[keyof typeof COLUMNS];
|
|
6
5
|
export declare type SharedColumnOptions<Value> = {
|
|
@@ -45,7 +44,7 @@ export declare type BatchAction = {
|
|
|
45
44
|
label: string;
|
|
46
45
|
onClick: (a: {
|
|
47
46
|
clearSelection: () => unknown;
|
|
48
|
-
event: SyntheticEvent<HTMLButtonElement>;
|
|
47
|
+
event: React.SyntheticEvent<HTMLButtonElement>;
|
|
49
48
|
selection: Row[];
|
|
50
49
|
}) => unknown;
|
|
51
50
|
renderIcon?: React.ComponentType<{
|
|
@@ -55,7 +54,7 @@ export declare type BatchAction = {
|
|
|
55
54
|
export declare type RowAction = {
|
|
56
55
|
label: string;
|
|
57
56
|
onClick: (a: {
|
|
58
|
-
event: SyntheticEvent<HTMLButtonElement>;
|
|
57
|
+
event: React.SyntheticEvent<HTMLButtonElement>;
|
|
59
58
|
row: Row;
|
|
60
59
|
}) => unknown;
|
|
61
60
|
renderIcon: React.ComponentType<{
|
package/datepicker/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
3
|
import type { Size } from '../input';
|
|
4
|
-
import { INPUT_ROLE, ORIENTATION, RANGED_CALENDAR_BEHAVIOR, STATE_CHANGE_TYPE, DENSITY } from './constants';
|
|
4
|
+
import type { INPUT_ROLE, ORIENTATION, RANGED_CALENDAR_BEHAVIOR, STATE_CHANGE_TYPE, DENSITY } from './constants';
|
|
5
5
|
import type { DateIOAdapter } from './utils/types';
|
|
6
6
|
declare type Locale = any;
|
|
7
7
|
export declare type Density = keyof typeof DENSITY;
|
package/divider/types.d.ts
CHANGED
package/dnd-list/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { STATE_CHANGE_TYPE } from './constants';
|
|
3
|
+
import type { STATE_CHANGE_TYPE } from './constants';
|
|
4
4
|
export declare type State = {
|
|
5
5
|
items: Array<React.ReactNode>;
|
|
6
6
|
};
|
package/drawer/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { SIZE, CLOSE_SOURCE, ANCHOR } from './constants';
|
|
3
|
+
import type { SIZE, CLOSE_SOURCE, ANCHOR } from './constants';
|
|
4
4
|
export declare type Size = keyof typeof SIZE;
|
|
5
5
|
export declare type SizeProp = Size | string;
|
|
6
6
|
export declare type Anchor = keyof typeof ANCHOR;
|
package/flex-grid/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BlockProps, Responsive, Scale } from '../block';
|
|
2
|
-
import { ElementType } from 'react';
|
|
2
|
+
import type { ElementType } from 'react';
|
|
3
3
|
export declare type FlexGridProps<T extends ElementType = ElementType> = {
|
|
4
4
|
/** Number of equal-width columns to allow for */
|
|
5
5
|
flexGridColumnCount?: Responsive<number>;
|
package/form-control/types.d.ts
CHANGED
package/heading/types.d.ts
CHANGED
package/helpers/types.d.ts
CHANGED
package/icon/types.d.ts
CHANGED
package/input/types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Properties } from 'csstype';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
|
-
import { STATE_CHANGE_TYPE, ADJOINED, SIZE, ENHANCER_POSITION } from './constants';
|
|
5
|
-
import type { SyntheticEvent, ChangeEvent, FocusEvent, KeyboardEvent } from 'react';
|
|
4
|
+
import type { STATE_CHANGE_TYPE, ADJOINED, SIZE, ENHANCER_POSITION } from './constants';
|
|
6
5
|
export declare type Adjoined = keyof typeof ADJOINED;
|
|
7
6
|
export declare type Size = keyof typeof SIZE;
|
|
8
7
|
export declare type StateType = keyof typeof STATE_CHANGE_TYPE;
|
|
@@ -94,18 +93,18 @@ export declare type BaseInputProps<T> = {
|
|
|
94
93
|
/** A ref to access an input element. */
|
|
95
94
|
inputRef?: React.RefObject<T>;
|
|
96
95
|
name?: string;
|
|
97
|
-
onBlur?: (e: FocusEvent<T>) => void;
|
|
98
|
-
onChange?: (e: ChangeEvent<T>) => void;
|
|
99
|
-
onKeyDown?: (e: KeyboardEvent<T>) => void;
|
|
100
|
-
onKeyPress?: (e: KeyboardEvent<T>) => void;
|
|
101
|
-
onKeyUp?: (e: KeyboardEvent<T>) => void;
|
|
102
|
-
onFocus?: (e: FocusEvent<T>) => void;
|
|
96
|
+
onBlur?: (e: React.FocusEvent<T>) => void;
|
|
97
|
+
onChange?: (e: React.ChangeEvent<T>) => void;
|
|
98
|
+
onKeyDown?: (e: React.KeyboardEvent<T>) => void;
|
|
99
|
+
onKeyPress?: (e: React.KeyboardEvent<T>) => void;
|
|
100
|
+
onKeyUp?: (e: React.KeyboardEvent<T>) => void;
|
|
101
|
+
onFocus?: (e: React.FocusEvent<T>) => void;
|
|
103
102
|
/** If true, adds a clear value icon button to the end of the input container. */
|
|
104
103
|
clearable?: boolean;
|
|
105
104
|
/** If undefined or true, clears the input when the Escape button is pressed with the input focused. True by default. */
|
|
106
105
|
clearOnEscape?: boolean;
|
|
107
106
|
maxLength?: number;
|
|
108
|
-
onClear?: (e: SyntheticEvent<T>) => void;
|
|
107
|
+
onClear?: (e: React.SyntheticEvent<T>) => void;
|
|
109
108
|
overrides?: BaseInputOverrides;
|
|
110
109
|
placeholder?: string;
|
|
111
110
|
/** Renders component in 'required' state. */
|
|
@@ -136,9 +135,9 @@ export declare type InputProps = {
|
|
|
136
135
|
/** An input helper rendered after and attached to the input field. */
|
|
137
136
|
endEnhancer?: React.ReactNode | ((props: SharedProps) => React.ReactNode);
|
|
138
137
|
/** Handler for the `focus` event. */
|
|
139
|
-
onFocus?: (e: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
138
|
+
onFocus?: (e: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
140
139
|
/** Handler for the `blur` event. */
|
|
141
|
-
onBlur?: (e: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
140
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
142
141
|
} & BaseInputProps<HTMLInputElement | HTMLTextAreaElement>;
|
|
143
142
|
export declare type MaskedInputProps = Partial<{
|
|
144
143
|
/** See mask examples here: https://github.com/sanniassin/react-input-mask */
|
|
@@ -147,7 +146,7 @@ export declare type MaskedInputProps = Partial<{
|
|
|
147
146
|
maskChar?: string;
|
|
148
147
|
} & InputProps>;
|
|
149
148
|
export declare type StatefulContainerChildrenProps<T> = {
|
|
150
|
-
onChange: (e: ChangeEvent<T>) => void;
|
|
149
|
+
onChange: (e: React.ChangeEvent<T>) => void;
|
|
151
150
|
/** If true, adds a clear value icon button to the end of the input container. */
|
|
152
151
|
clearable?: boolean;
|
|
153
152
|
} & StatefulInputProps;
|
|
@@ -157,7 +156,7 @@ export declare type StatefulContainerProps<T> = {
|
|
|
157
156
|
initialState?: State;
|
|
158
157
|
/** A state change handler. Used to override default state transitions. */
|
|
159
158
|
stateReducer?: StateReducer;
|
|
160
|
-
onChange?: (e: ChangeEvent<T>) => void;
|
|
159
|
+
onChange?: (e: React.ChangeEvent<T>) => void;
|
|
161
160
|
/** If true, adds a clear value icon button to the end of the input container. */
|
|
162
161
|
clearable?: boolean;
|
|
163
162
|
} & {
|
package/layer/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TETHER_PLACEMENT } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { TETHER_PLACEMENT } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
4
|
/** LayersManager */
|
|
5
5
|
export declare type LayersManagerProps = {
|
package/layout-grid/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ALIGNMENT, BEHAVIOR, STYLE } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ALIGNMENT, BEHAVIOR, STYLE } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
4
|
export declare type Responsive<T> = T | Array<T>;
|
|
5
5
|
export declare type Alignment = typeof ALIGNMENT.start | typeof ALIGNMENT.center | typeof ALIGNMENT.end;
|
package/list/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
3
|
import type { IconProps } from '../icon';
|
|
4
|
-
import { ARTWORK_SIZES, SHAPE } from './constants';
|
|
4
|
+
import type { ARTWORK_SIZES, SHAPE } from './constants';
|
|
5
5
|
export declare type ArtworkSizes = typeof ARTWORK_SIZES.SMALL | typeof ARTWORK_SIZES.MEDIUM | typeof ARTWORK_SIZES.LARGE;
|
|
6
6
|
export declare type Shape = typeof SHAPE.DEFAULT | typeof SHAPE.ROUND;
|
|
7
7
|
export declare type StyledRootProps = {
|
package/locale/en_US.d.ts
CHANGED
package/locale/es_AR.d.ts
CHANGED
package/locale/tr_TR.d.ts
CHANGED
package/map-marker/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FLOATING_MARKER_ANCHOR_POSITIONS, NEEDLE_SIZES, PINHEAD_SIZES_SHAPES, FLOATING_MARKER_SIZES, PINHEAD_TYPES, FLOATING_MARKER_ANCHOR_TYPES, BADGE_ENHANCER_SIZES, LABEL_ENHANCER_POSITIONS, KIND, LOCATION_PUCK_SIZES, LOCATION_PUCK_TYPES } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { FLOATING_MARKER_ANCHOR_POSITIONS, NEEDLE_SIZES, PINHEAD_SIZES_SHAPES, FLOATING_MARKER_SIZES, PINHEAD_TYPES, FLOATING_MARKER_ANCHOR_TYPES, BADGE_ENHANCER_SIZES, LABEL_ENHANCER_POSITIONS, KIND, LOCATION_PUCK_SIZES, LOCATION_PUCK_TYPES } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
4
|
export declare type AnchorPositions = typeof FLOATING_MARKER_ANCHOR_POSITIONS[keyof typeof FLOATING_MARKER_ANCHOR_POSITIONS];
|
|
5
5
|
export declare type NeedleSize = typeof NEEDLE_SIZES[keyof typeof NEEDLE_SIZES];
|
package/menu/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Item, ArrayItems, GroupedItems, Items, MenuProps, StatefulContainerProps } from './types';
|
|
2
|
-
import { GetRequiredItemPropsFn, StateReducerFn } from './types';
|
|
1
|
+
import type { Item, ArrayItems, GroupedItems, GetRequiredItemPropsFn, Items, MenuProps, StatefulContainerProps, StateReducerFn } from './types';
|
|
3
2
|
export { default as StatefulMenu } from './stateful-menu';
|
|
4
3
|
export { default as StatefulContainer } from './stateful-container';
|
|
5
4
|
export { default as OptionList } from './option-list';
|
package/menu/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { STATE_CHANGE_TYPES, OPTION_LIST_SIZE } from './constants';
|
|
4
|
-
import type { SyntheticEvent, FocusEvent, MouseEvent } from 'react';
|
|
3
|
+
import type { STATE_CHANGE_TYPES, OPTION_LIST_SIZE } from './constants';
|
|
5
4
|
export declare type Item = any;
|
|
6
5
|
export declare type ArrayItems = ReadonlyArray<Item>;
|
|
7
6
|
export declare type GroupedItems = {
|
|
@@ -23,7 +22,7 @@ export declare type RootRef = {
|
|
|
23
22
|
};
|
|
24
23
|
export declare type OnItemSelectFn = (a: {
|
|
25
24
|
item: Item;
|
|
26
|
-
event?: SyntheticEvent<HTMLElement> | KeyboardEvent;
|
|
25
|
+
event?: React.SyntheticEvent<HTMLElement> | KeyboardEvent;
|
|
27
26
|
}) => unknown;
|
|
28
27
|
export declare type ProfileOverrides = {
|
|
29
28
|
List?: Override;
|
|
@@ -41,8 +40,8 @@ export declare type RenderItemProps = {
|
|
|
41
40
|
id?: string | null;
|
|
42
41
|
isFocused?: boolean;
|
|
43
42
|
isHighlighted?: boolean;
|
|
44
|
-
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
45
|
-
onMouseEnter?: (event: MouseEvent<HTMLElement>) => void;
|
|
43
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
44
|
+
onMouseEnter?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
46
45
|
resetMenu?: () => void;
|
|
47
46
|
};
|
|
48
47
|
export declare type GetRequiredItemPropsFn = (item: Item, index: number) => RenderItemProps;
|
|
@@ -144,18 +143,18 @@ export declare type SharedStatelessProps = {
|
|
|
144
143
|
'aria-label'?: string;
|
|
145
144
|
getRequiredItemProps?: GetRequiredItemPropsFn;
|
|
146
145
|
isFocused?: boolean;
|
|
147
|
-
handleMouseLeave?: (event: MouseEvent<HTMLElement>) => unknown;
|
|
146
|
+
handleMouseLeave?: (event: React.MouseEvent<HTMLElement>) => unknown;
|
|
148
147
|
/** Index of highlighted menu item. */
|
|
149
148
|
highlightedIndex?: number;
|
|
150
149
|
/** List of menu items. */
|
|
151
150
|
items: Items;
|
|
152
151
|
/** Message to be displayed if no menu items are passed in. */
|
|
153
152
|
noResultsMsg?: React.ReactNode;
|
|
154
|
-
onBlur?: (event: FocusEvent<HTMLElement>) => unknown;
|
|
155
|
-
onFocus?: (event: FocusEvent<HTMLElement>) => unknown;
|
|
153
|
+
onBlur?: (event: React.FocusEvent<HTMLElement>) => unknown;
|
|
154
|
+
onFocus?: (event: React.FocusEvent<HTMLElement>) => unknown;
|
|
156
155
|
/** Ref for the menu container element. Used to capture key events for navigation */
|
|
157
156
|
rootRef?: RootRef;
|
|
158
|
-
focusMenu?: (event: FocusEvent | MouseEvent | KeyboardEvent) => unknown;
|
|
157
|
+
focusMenu?: (event: React.FocusEvent | React.MouseEvent | KeyboardEvent) => unknown;
|
|
159
158
|
unfocusMenu?: () => unknown;
|
|
160
159
|
handleKeyDown?: (event: KeyboardEvent) => unknown;
|
|
161
160
|
};
|
|
@@ -210,11 +209,11 @@ export declare type OptionListProps = {
|
|
|
210
209
|
getItemLabel: GetItemLabelFn;
|
|
211
210
|
/** Used to render a sub menu at this menu item. You'll often render another menu from this function. */
|
|
212
211
|
getChildMenu?: (item: Item) => React.ReactNode;
|
|
213
|
-
onClick?: (event: MouseEvent) => unknown;
|
|
212
|
+
onClick?: (event: React.MouseEvent) => unknown;
|
|
214
213
|
/** Callback used to change highlighted index in stateful menu. */
|
|
215
|
-
onMouseDown?: (event: MouseEvent) => unknown;
|
|
214
|
+
onMouseDown?: (event: React.MouseEvent) => unknown;
|
|
216
215
|
/** Callback used to change highlighted index in stateful menu. */
|
|
217
|
-
onMouseEnter?: (event: MouseEvent) => unknown;
|
|
216
|
+
onMouseEnter?: (event: React.MouseEvent) => unknown;
|
|
218
217
|
/** Renders UI in defined scale. */
|
|
219
218
|
size?: keyof typeof OPTION_LIST_SIZE;
|
|
220
219
|
overrides?: {
|
package/message-card/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SyntheticEvent } from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { BACKGROUND_COLOR_TYPE, IMAGE_LAYOUT, BUTTON_KIND } from './constants';
|
|
3
|
+
import type { BACKGROUND_COLOR_TYPE, IMAGE_LAYOUT, BUTTON_KIND } from './constants';
|
|
4
4
|
export declare type MessageCardOverrides = {
|
|
5
5
|
Root?: Override;
|
|
6
6
|
ContentContainer?: Override;
|
package/modal/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { SIZE, ROLE, CLOSE_SOURCE } from './constants';
|
|
3
|
+
import type { SIZE, ROLE, CLOSE_SOURCE } from './constants';
|
|
4
4
|
export declare type Size = keyof typeof SIZE;
|
|
5
5
|
export declare type SizeProp = Size | number | string;
|
|
6
6
|
export declare type Role = keyof typeof ROLE;
|
package/package.json
CHANGED
package/pagination/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Override } from '../helpers/overrides';
|
|
2
|
-
import { STATE_CHANGE_TYPE } from './constants';
|
|
3
|
-
import { SIZE } from '../input';
|
|
2
|
+
import type { STATE_CHANGE_TYPE } from './constants';
|
|
3
|
+
import type { SIZE } from '../input';
|
|
4
4
|
export declare type Labels = {
|
|
5
5
|
prevButton?: string;
|
|
6
6
|
nextButton?: string;
|
package/phone-input/types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { STATE_CHANGE_TYPE, SIZE, COUNTRIES } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { STATE_CHANGE_TYPE, SIZE, COUNTRIES } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
4
|
import type { OnChangeParams } from '../select';
|
|
5
|
-
import type { ChangeEvent } from 'react';
|
|
6
5
|
export declare type Size = keyof typeof SIZE;
|
|
7
6
|
export declare type CountryIso = keyof typeof COUNTRIES;
|
|
8
7
|
export declare type Countries = Readonly<Country>;
|
|
@@ -101,7 +100,7 @@ export declare type PhoneInputProps = {
|
|
|
101
100
|
/** A handler for the country select's change events. */
|
|
102
101
|
onCountryChange: (event: OnChangeParams) => unknown;
|
|
103
102
|
/** A handler for the input element's change events. */
|
|
104
|
-
onTextChange: (event: ChangeEvent<HTMLInputElement>) => unknown;
|
|
103
|
+
onTextChange: (event: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
105
104
|
overrides: PhoneInputOverrides;
|
|
106
105
|
/** Sets the placeholder text for the input element. */
|
|
107
106
|
placeholder?: string;
|
|
@@ -125,12 +124,12 @@ export declare type StatefulPhoneInputContainerProps = {
|
|
|
125
124
|
children: (a: PhoneInputProps) => React.ReactNode;
|
|
126
125
|
initialState: State;
|
|
127
126
|
stateReducer: StateReducer;
|
|
128
|
-
onTextChange: (event: ChangeEvent<HTMLInputElement>) => unknown;
|
|
127
|
+
onTextChange: (event: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
129
128
|
onCountryChange: (event: OnChangeParams) => unknown;
|
|
130
129
|
} & PhoneInputProps;
|
|
131
130
|
export declare type StatefulPhoneInputProps = PhoneInputProps & {
|
|
132
131
|
initialState?: State;
|
|
133
132
|
stateReducer?: StateReducer;
|
|
134
|
-
onTextChange?: (event: ChangeEvent<HTMLInputElement>) => unknown;
|
|
133
|
+
onTextChange?: (event: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
135
134
|
onCountryChange?: (event: OnChangeParams) => unknown;
|
|
136
135
|
};
|
package/pin-code/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { SIZE, STATE_CHANGE_TYPE } from '../input';
|
|
3
|
+
import type { SIZE, STATE_CHANGE_TYPE } from '../input';
|
|
4
4
|
export declare type ChangeEvent = {
|
|
5
5
|
values: string[];
|
|
6
6
|
event: any;
|
package/popover/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
3
|
import type { TetherPlacement } from '../layer';
|
|
4
|
-
import { ACCESSIBILITY_TYPE, STATE_CHANGE_TYPE, TRIGGER_TYPE } from './constants';
|
|
4
|
+
import type { ACCESSIBILITY_TYPE, STATE_CHANGE_TYPE, TRIGGER_TYPE } from './constants';
|
|
5
5
|
export type { PopperDataObject, PopperOffset, PopperOptions } from '../layer';
|
|
6
6
|
export declare type PopoverPlacement = TetherPlacement;
|
|
7
7
|
export declare type TriggerType = keyof typeof TRIGGER_TYPE;
|
package/progress-bar/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { SIZE } from './constants';
|
|
3
|
+
import type { SIZE } from './constants';
|
|
4
4
|
export declare type Size = keyof typeof SIZE;
|
|
5
5
|
export declare type ProgressBarOverrides = {
|
|
6
6
|
Root?: Override;
|
package/radio/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { ALIGN } from './constants';
|
|
4
|
-
import type { ReactNode, ChangeEvent } from 'react';
|
|
3
|
+
import type { ALIGN } from './constants';
|
|
5
4
|
export declare type LabelPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
6
5
|
export declare type Align = keyof typeof ALIGN;
|
|
7
6
|
export declare type RadioOverrides = {
|
|
@@ -53,15 +52,15 @@ export declare type RadioGroupProps = {
|
|
|
53
52
|
/** Unique id for RadioGroup, help ARIA to identify element */
|
|
54
53
|
id?: string;
|
|
55
54
|
/** Handler for change events on trigger element. */
|
|
56
|
-
onChange?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
55
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
57
56
|
/** Handler for mouseenter events on trigger element. */
|
|
58
|
-
onMouseEnter?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
57
|
+
onMouseEnter?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
59
58
|
/** Handler for mouseleave events on trigger element. */
|
|
60
|
-
onMouseLeave?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
59
|
+
onMouseLeave?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
61
60
|
/** Handler for focus events on trigger element. */
|
|
62
|
-
onFocus?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
61
|
+
onFocus?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
63
62
|
/** Handler for blur events on trigger element. */
|
|
64
|
-
onBlur?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
63
|
+
onBlur?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
65
64
|
};
|
|
66
65
|
export declare type State = {
|
|
67
66
|
value?: string;
|
|
@@ -74,7 +73,7 @@ export declare type RadioProps = {
|
|
|
74
73
|
/** Check or uncheck the control. */
|
|
75
74
|
checked?: boolean;
|
|
76
75
|
/** Label of radio. */
|
|
77
|
-
children?: ReactNode;
|
|
76
|
+
children?: React.ReactNode;
|
|
78
77
|
/** Indicates if this radio children contain an interactive element (prevents the label from moving focus from the child element to the radio button) */
|
|
79
78
|
containsInteractiveElement?: boolean;
|
|
80
79
|
/** Add more detail about a radio element. */
|
|
@@ -94,19 +93,19 @@ export declare type RadioProps = {
|
|
|
94
93
|
/** Passed to the input element name attribute */
|
|
95
94
|
name?: string;
|
|
96
95
|
/** handler for blur events on trigger element. */
|
|
97
|
-
onBlur?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
96
|
+
onBlur?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
98
97
|
/** Handler for change events on trigger element. */
|
|
99
|
-
onChange?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
98
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
100
99
|
/** handler for focus events on trigger element. */
|
|
101
|
-
onFocus?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
100
|
+
onFocus?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
102
101
|
/** Handler for mouseenter events on trigger element. */
|
|
103
|
-
onMouseEnter?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
102
|
+
onMouseEnter?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
104
103
|
/** Handler for mouseleave events on trigger element. */
|
|
105
|
-
onMouseLeave?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
104
|
+
onMouseLeave?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
106
105
|
/** Handler for mousedown events on trigger element. */
|
|
107
|
-
onMouseDown?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
106
|
+
onMouseDown?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
108
107
|
/** Handler for mouseup events on trigger element. */
|
|
109
|
-
onMouseUp?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
108
|
+
onMouseUp?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
110
109
|
overrides?: RadioOverrides;
|
|
111
110
|
/** Marks the checkbox as required. */
|
|
112
111
|
required?: boolean;
|
|
@@ -119,7 +118,7 @@ export declare type RadioState = {
|
|
|
119
118
|
isActive: boolean;
|
|
120
119
|
isHovered: boolean;
|
|
121
120
|
};
|
|
122
|
-
export declare type StateReducer = (stateType: string, nextState: State, currentState: State, event: ChangeEvent<HTMLInputElement>) => State;
|
|
121
|
+
export declare type StateReducer = (stateType: string, nextState: State, currentState: State, event: React.ChangeEvent<HTMLInputElement>) => State;
|
|
123
122
|
export declare type StatelessState = {
|
|
124
123
|
isFocusVisible: boolean;
|
|
125
124
|
focusedRadioIndex: number;
|
|
@@ -128,7 +127,7 @@ export declare type DefaultStatefulProps = {
|
|
|
128
127
|
initialState: State;
|
|
129
128
|
children?: (props: RadioGroupProps) => React.ReactNode;
|
|
130
129
|
stateReducer: StateReducer;
|
|
131
|
-
onChange: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
130
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
132
131
|
};
|
|
133
132
|
export declare type StatefulContainerProps = {
|
|
134
133
|
overrides?: RadioGroupOverrides;
|
|
@@ -139,7 +138,7 @@ export declare type StatefulContainerProps = {
|
|
|
139
138
|
/** Reducer function to manipulate internal state updates. */
|
|
140
139
|
stateReducer: StateReducer;
|
|
141
140
|
/** Handler for change events on trigger element. */
|
|
142
|
-
onChange?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
141
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
143
142
|
/** Set to be focused (active) on selected\checked radio. */
|
|
144
143
|
autoFocus?: boolean;
|
|
145
144
|
};
|
|
@@ -152,7 +151,7 @@ export declare type StatefulRadioGroupProps = {
|
|
|
152
151
|
/** Set to be focused (active) on selected\checked radio. */
|
|
153
152
|
autoFocus?: boolean;
|
|
154
153
|
/** Handler for change events on trigger element. */
|
|
155
|
-
onChange?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
154
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
156
155
|
};
|
|
157
156
|
export declare type StyleProps = {
|
|
158
157
|
$align?: string;
|
package/select/types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { STATE_CHANGE_TYPE, SIZE, TYPE } from './constants';
|
|
3
|
+
import type { STATE_CHANGE_TYPE, SIZE, TYPE } from './constants';
|
|
4
4
|
import type { OnItemSelectFn } from '../menu';
|
|
5
|
-
import type { ReactNode, SyntheticEvent, ChangeEvent } from 'react';
|
|
6
5
|
export declare type ChangeAction = keyof typeof STATE_CHANGE_TYPE;
|
|
7
6
|
export declare type Size = keyof typeof SIZE;
|
|
8
7
|
export declare type Type = keyof typeof TYPE;
|
|
@@ -141,8 +140,8 @@ export declare type SelectProps = {
|
|
|
141
140
|
onBlurResetsInput?: boolean;
|
|
142
141
|
/** change handler of the select to be called when a value is changed. */
|
|
143
142
|
onChange?: (params: OnChangeParams) => unknown;
|
|
144
|
-
onFocus?: (e: SyntheticEvent<HTMLElement>) => unknown;
|
|
145
|
-
onInputChange?: (e: ChangeEvent<HTMLInputElement>) => unknown;
|
|
143
|
+
onFocus?: (e: React.SyntheticEvent<HTMLElement>) => unknown;
|
|
144
|
+
onInputChange?: (e: React.ChangeEvent<HTMLInputElement>) => unknown;
|
|
146
145
|
/** Defines if the input value is reset to an empty string when dropdown is closed. */
|
|
147
146
|
onCloseResetsInput?: boolean;
|
|
148
147
|
/** Defines if the input value is reset to an empty string when a selection is made. */
|
|
@@ -196,7 +195,7 @@ export declare type State = {
|
|
|
196
195
|
export declare type StateReducer = (stateType: string, nextState: State, currentState: State) => State;
|
|
197
196
|
export declare type StatefulContainerProps = {
|
|
198
197
|
overrides: SelectOverrides;
|
|
199
|
-
children: (a: SelectProps) => ReactNode;
|
|
198
|
+
children: (a: SelectProps) => React.ReactNode;
|
|
200
199
|
initialState: State;
|
|
201
200
|
stateReducer: StateReducer;
|
|
202
201
|
onChange: (params: OnChangeParams) => unknown;
|
package/slider/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Override } from '../helpers/overrides';
|
|
2
|
-
import { STATE_CHANGE_TYPE } from './constants';
|
|
2
|
+
import type { STATE_CHANGE_TYPE } from './constants';
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
4
|
export declare type ChangeAction = keyof typeof STATE_CHANGE_TYPE;
|
|
5
5
|
export declare type Params = {
|
package/snackbar/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { DURATION, PLACEMENT } from './constants';
|
|
4
|
-
import type { SyntheticEvent } from 'react';
|
|
3
|
+
import type { DURATION, PLACEMENT } from './constants';
|
|
5
4
|
export declare type Duration = typeof DURATION.infinite | typeof DURATION.short | typeof DURATION.medium | typeof DURATION.long;
|
|
6
5
|
export declare type Placement = typeof PLACEMENT.topLeft | typeof PLACEMENT.top | typeof PLACEMENT.topRight | typeof PLACEMENT.bottomLeft | typeof PLACEMENT.bottom | typeof PLACEMENT.bottomRight;
|
|
7
6
|
export declare type SnackbarElementOverrides = {
|
|
@@ -15,7 +14,7 @@ export declare type SnackbarElementOverrides = {
|
|
|
15
14
|
};
|
|
16
15
|
export declare type SnackbarElementProps = {
|
|
17
16
|
actionMessage?: string;
|
|
18
|
-
actionOnClick?: (a: SyntheticEvent<HTMLButtonElement>) => unknown;
|
|
17
|
+
actionOnClick?: (a: React.SyntheticEvent<HTMLButtonElement>) => unknown;
|
|
19
18
|
focus?: boolean;
|
|
20
19
|
message: React.ReactNode;
|
|
21
20
|
overrides?: SnackbarElementOverrides;
|
package/spinner/types.d.ts
CHANGED
package/styles/styled.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyletronComponent } from 'styletron-react';
|
|
2
|
+
import type { StyletronComponent } from 'styletron-react';
|
|
3
3
|
import type { StyleObject } from 'styletron-standard';
|
|
4
4
|
import type { Theme } from './types';
|
|
5
5
|
export type { StyletronComponent };
|
package/table/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SORT_DIRECTION } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { SORT_DIRECTION } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
4
|
export declare type SortDirection = keyof typeof SORT_DIRECTION | undefined | null;
|
|
5
5
|
export declare type HeadCellOverrides = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { SIZE, DIVIDER } from './constants';
|
|
3
|
+
import type { SIZE, DIVIDER } from './constants';
|
|
4
4
|
export declare type Size = keyof typeof SIZE;
|
|
5
5
|
export declare type Divider = keyof typeof DIVIDER;
|
|
6
6
|
export declare type TableOverrides = {
|
package/tabs/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { ORIENTATION, STATE_CHANGE_TYPE } from './constants';
|
|
3
|
+
import type { ORIENTATION, STATE_CHANGE_TYPE } from './constants';
|
|
4
4
|
export declare type SharedStylePropsArg = {
|
|
5
5
|
$disabled?: boolean;
|
|
6
6
|
$active?: boolean;
|
package/tabs-motion/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ORIENTATION, FILL, STATE_CHANGE_TYPE } from './constants';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ORIENTATION, FILL, STATE_CHANGE_TYPE } from './constants';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
4
|
import type { IconProps } from '../icon';
|
|
5
5
|
export declare type Orientation = typeof ORIENTATION[keyof typeof ORIENTATION];
|
package/tabs-motion/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Fill, Orientation } from './types';
|
|
3
3
|
export declare const getTabId: (uid: string, key: React.Key) => string;
|
|
4
4
|
export declare const getTabPanelId: (uid: string, key: React.Key) => string;
|
package/tag/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import type { ReactNode } from 'react';
|
|
4
3
|
export declare const TagKind: Readonly<{
|
|
5
4
|
readonly custom: "custom";
|
|
6
5
|
readonly neutral: "neutral";
|
|
@@ -53,15 +52,15 @@ export declare type TagProps = {
|
|
|
53
52
|
/** Defines tags look. Set it to one of VARIANT[key] values. Defaults to VARIANT.light */
|
|
54
53
|
variant?: TagVariant;
|
|
55
54
|
/** Component or String value for label of tag. Default is empty string. */
|
|
56
|
-
children?: ReactNode;
|
|
55
|
+
children?: React.ReactNode;
|
|
57
56
|
/** The color theme to be applied to a Tag. Default is `KIND.primary`. */
|
|
58
57
|
color?: string;
|
|
59
58
|
/** Text to display in native OS tooltip on long hover. */
|
|
60
59
|
title?: string;
|
|
61
60
|
/** onClick handler for the action button element. */
|
|
62
|
-
onActionClick?: (e: Event, children?: ReactNode) => unknown;
|
|
61
|
+
onActionClick?: (e: Event, children?: React.ReactNode) => unknown;
|
|
63
62
|
/** keydown handler for the action button element. */
|
|
64
|
-
onActionKeyDown?: (e: Event, children?: ReactNode) => unknown;
|
|
63
|
+
onActionKeyDown?: (e: Event, children?: React.ReactNode) => unknown;
|
|
65
64
|
/** onClick handler for the tag. Passing an onClick handler also makes the tag clickable. */
|
|
66
65
|
onClick?: null | ((event: Event) => unknown);
|
|
67
66
|
/** onkeydown handler for the tag. */
|
package/textarea/types.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Properties } from 'csstype';
|
|
3
3
|
import type { Override } from '../helpers/overrides';
|
|
4
|
-
import type { BaseInputProps, StateReducer, State } from '../input';
|
|
5
|
-
|
|
6
|
-
import type { SyntheticEvent } from 'react';
|
|
7
|
-
declare type SyntheticTextareaEvent = SyntheticEvent<HTMLTextAreaElement>;
|
|
4
|
+
import type { BaseInputProps, StateReducer, State, ADJOINED, SIZE } from '../input';
|
|
5
|
+
declare type SyntheticTextareaEvent = React.SyntheticEvent<HTMLTextAreaElement>;
|
|
8
6
|
export declare type Size = keyof typeof SIZE;
|
|
9
7
|
export declare type SharedStyleProps = {
|
|
10
8
|
$adjoined: keyof typeof ADJOINED;
|
package/toast/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import { KIND, PLACEMENT, TYPE } from './constants';
|
|
3
|
+
import type { KIND, PLACEMENT, TYPE } from './constants';
|
|
4
4
|
export declare type KindType = typeof KIND[keyof typeof KIND];
|
|
5
5
|
export declare type NotificationType = typeof TYPE[keyof typeof TYPE];
|
|
6
6
|
export declare type PlacementType = typeof PLACEMENT[keyof typeof PLACEMENT];
|
package/tree-view/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
import type { Override } from '../helpers/overrides';
|
|
3
|
-
import type { SyntheticEvent } from 'react';
|
|
4
3
|
export declare type TreeLabelOverrides = {
|
|
5
4
|
TreeItemContent?: Override;
|
|
6
5
|
IconContainer?: Override;
|
|
@@ -46,8 +45,8 @@ export declare type TreeNodeProps = {
|
|
|
46
45
|
overrides?: TreeViewOverrides;
|
|
47
46
|
renderAll?: boolean;
|
|
48
47
|
onKeyDown?: (e: KeyboardEvent, node: TreeNodeData) => unknown;
|
|
49
|
-
onFocus?: (event: SyntheticEvent) => unknown;
|
|
50
|
-
onBlur?: (event: SyntheticEvent) => unknown;
|
|
48
|
+
onFocus?: (event: React.SyntheticEvent) => unknown;
|
|
49
|
+
onBlur?: (event: React.SyntheticEvent) => unknown;
|
|
51
50
|
selectedNodeId?: TreeNodeId;
|
|
52
51
|
addRef: (id: TreeNodeId, ref: React.Ref<HTMLLIElement>) => unknown;
|
|
53
52
|
removeRef: (id: TreeNodeId) => unknown;
|
package/utils/focusVisible.d.ts
CHANGED