baseui 0.0.0-next-e0f9354 → 0.0.0-next-c90a221
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/es/menu/index.js +1 -1
- package/es/menu/menu.js +7 -1
- package/es/menu/styled-components.js +17 -1
- package/es/timezonepicker/tzdata.js +1 -1
- package/esm/menu/index.js +1 -1
- package/esm/menu/menu.js +10 -1
- package/esm/menu/styled-components.js +18 -1
- package/esm/timezonepicker/tzdata.js +1 -1
- 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 +2 -3
- package/menu/index.js +8 -1
- package/menu/index.js.flow +1 -0
- package/menu/menu.js +9 -0
- package/menu/menu.js.flow +11 -1
- package/menu/styled-components.d.ts +1 -0
- package/menu/styled-components.js +20 -2
- package/menu/styled-components.js.flow +13 -0
- package/menu/types.d.ts +13 -13
- package/menu/types.js.flow +1 -0
- 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/timezonepicker/tzdata.js +1 -1
- 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/es/menu/index.js
CHANGED
|
@@ -13,6 +13,6 @@ export { default as NestedMenus, NestedMenuContext } from './nested-menus'; // C
|
|
|
13
13
|
|
|
14
14
|
export { KEY_STRINGS, STATE_CHANGE_TYPES } from './constants'; // Styled elements
|
|
15
15
|
|
|
16
|
-
export { StyledEmptyState, StyledList, StyledListItem, StyledListItemProfile, StyledProfileImgContainer, StyledProfileImg, StyledProfileLabelsContainer, StyledProfileTitle, StyledProfileSubtitle, StyledProfileBody } from './styled-components'; // Flow
|
|
16
|
+
export { StyledEmptyState, StyledList, StyledListItem, StyledListItemProfile, StyledProfileImgContainer, StyledProfileImg, StyledProfileLabelsContainer, StyledProfileTitle, StyledProfileSubtitle, StyledProfileBody, StyledMenuDivider } from './styled-components'; // Flow
|
|
17
17
|
|
|
18
18
|
export * from './types';
|
package/es/menu/menu.js
CHANGED
|
@@ -9,7 +9,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { LocaleContext } from '../locale'; // Components
|
|
11
11
|
|
|
12
|
-
import { StyledList, StyledEmptyState, StyledOptgroupHeader } from './styled-components';
|
|
12
|
+
import { StyledList, StyledEmptyState, StyledOptgroupHeader, StyledMenuDivider } from './styled-components';
|
|
13
13
|
import OptionList from './option-list';
|
|
14
14
|
import { getOverrides } from '../helpers/overrides'; // Types
|
|
15
15
|
|
|
@@ -45,6 +45,7 @@ export default function Menu(props) {
|
|
|
45
45
|
const [Option, optionProps] = getOverrides(overrides.Option, OptionList);
|
|
46
46
|
const [EmptyState, emptyStateProps] = getOverrides(overrides.EmptyState, StyledEmptyState);
|
|
47
47
|
const [OptgroupHeader, optgroupHeaderProps] = getOverrides(overrides.OptgroupHeader, StyledOptgroupHeader);
|
|
48
|
+
const [MenuDivider, menuDividerProps] = getOverrides(overrides.MenuDivider, StyledMenuDivider);
|
|
48
49
|
const groupedItems = Array.isArray(props.items) ? {
|
|
49
50
|
__ungrouped: props.items
|
|
50
51
|
} : props.items;
|
|
@@ -63,6 +64,11 @@ export default function Menu(props) {
|
|
|
63
64
|
const {
|
|
64
65
|
getRequiredItemProps = (item, index) => ({})
|
|
65
66
|
} = props;
|
|
67
|
+
|
|
68
|
+
if (item.divider === true) {
|
|
69
|
+
return /*#__PURE__*/React.createElement(MenuDivider, menuDividerProps);
|
|
70
|
+
}
|
|
71
|
+
|
|
66
72
|
const {
|
|
67
73
|
disabled,
|
|
68
74
|
isFocused,
|
|
@@ -229,4 +229,20 @@ export const StyledProfileBody = styled('p', ({
|
|
|
229
229
|
marginRight: 0
|
|
230
230
|
}));
|
|
231
231
|
StyledProfileBody.displayName = "StyledProfileBody";
|
|
232
|
-
StyledProfileBody.displayName = 'StyledProfileBody';
|
|
232
|
+
StyledProfileBody.displayName = 'StyledProfileBody';
|
|
233
|
+
export const StyledMenuDivider = styled('li', ({
|
|
234
|
+
$theme
|
|
235
|
+
}) => ({
|
|
236
|
+
color: $theme.colors.contentPrimary,
|
|
237
|
+
borderBottomWidth: $theme.borders.border300.borderWidth,
|
|
238
|
+
borderBottomStyle: $theme.borders.border300.borderStyle,
|
|
239
|
+
borderBottomColor: $theme.borders.border300.borderColor,
|
|
240
|
+
marginTop: $theme.sizing.scale100,
|
|
241
|
+
marginBottom: $theme.sizing.scale100,
|
|
242
|
+
marginLeft: $theme.sizing.scale500,
|
|
243
|
+
marginRight: $theme.sizing.scale500,
|
|
244
|
+
listStyle: 'none',
|
|
245
|
+
height: 0
|
|
246
|
+
}));
|
|
247
|
+
StyledMenuDivider.displayName = "StyledMenuDivider";
|
|
248
|
+
StyledProfileBody.displayName = 'StyledMenuDivider';
|
|
@@ -4,4 +4,4 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
export const zones = ['Europe/Andorra', 'Asia/Dubai', 'Asia/Kabul', 'Europe/Tirane', 'Asia/Yerevan', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/Mawson', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Troll', '
|
|
7
|
+
export const zones = ['Europe/Andorra', 'Asia/Dubai', 'Asia/Kabul', 'Europe/Tirane', 'Asia/Yerevan', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/Mawson', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Troll', 'America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Salta', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/San_Luis', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuaia', 'Pacific/Pago_Pago', 'Europe/Vienna', 'Australia/Lord_Howe', 'Antarctica/Macquarie', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Sydney', 'Australia/Broken_Hill', 'Australia/Brisbane', 'Australia/Lindeman', 'Australia/Adelaide', 'Australia/Darwin', 'Australia/Perth', 'Australia/Eucla', 'Asia/Baku', 'America/Barbados', 'Asia/Dhaka', 'Europe/Brussels', 'Europe/Sofia', 'Atlantic/Bermuda', 'America/La_Paz', 'America/Noronha', 'America/Belem', 'America/Fortaleza', 'America/Recife', 'America/Araguaina', 'America/Maceio', 'America/Bahia', 'America/Sao_Paulo', 'America/Campo_Grande', 'America/Cuiaba', 'America/Santarem', 'America/Porto_Velho', 'America/Boa_Vista', 'America/Manaus', 'America/Eirunepe', 'America/Rio_Branco', 'Asia/Thimphu', 'Europe/Minsk', 'America/Belize', 'America/St_Johns', 'America/Halifax', 'America/Glace_Bay', 'America/Moncton', 'America/Goose_Bay', 'America/Toronto', 'America/Nipigon', 'America/Thunder_Bay', 'America/Iqaluit', 'America/Pangnirtung', 'America/Winnipeg', 'America/Rainy_River', 'America/Resolute', 'America/Rankin_Inlet', 'America/Regina', 'America/Swift_Current', 'America/Edmonton', 'America/Cambridge_Bay', 'America/Yellowknife', 'America/Inuvik', 'America/Dawson_Creek', 'America/Fort_Nelson', 'America/Whitehorse', 'America/Dawson', 'America/Vancouver', 'Europe/Zurich', 'Africa/Abidjan', 'Pacific/Rarotonga', 'America/Santiago', 'America/Punta_Arenas', 'Pacific/Easter', 'Asia/Shanghai', 'Asia/Urumqi', 'America/Bogota', 'America/Costa_Rica', 'America/Havana', 'Atlantic/Cape_Verde', 'Asia/Nicosia', 'Asia/Famagusta', 'Europe/Prague', 'Europe/Berlin', 'America/Santo_Domingo', 'Africa/Algiers', 'America/Guayaquil', 'Pacific/Galapagos', 'Europe/Tallinn', 'Africa/Cairo', 'Africa/El_Aaiun', 'Europe/Madrid', 'Africa/Ceuta', 'Atlantic/Canary', 'Europe/Helsinki', 'Pacific/Fiji', 'Atlantic/Stanley', 'Pacific/Kosrae', 'Atlantic/Faroe', 'Europe/Paris', 'Europe/London', 'Asia/Tbilisi', 'America/Cayenne', 'Europe/Gibraltar', 'America/Nuuk', 'America/Danmarkshavn', 'America/Scoresbysund', 'America/Thule', 'Europe/Athens', 'Atlantic/South_Georgia', 'America/Guatemala', 'Pacific/Guam', 'Africa/Bissau', 'America/Guyana', 'Asia/Hong_Kong', 'America/Tegucigalpa', 'America/Port-au-Prince', 'Europe/Budapest', 'Asia/Jakarta', 'Asia/Pontianak', 'Asia/Makassar', 'Asia/Jayapura', 'Europe/Dublin', 'Asia/Jerusalem', 'Asia/Kolkata', 'Indian/Chagos', 'Asia/Baghdad', 'Asia/Tehran', 'Europe/Rome', 'America/Jamaica', 'Asia/Amman', 'Asia/Tokyo', 'Africa/Nairobi', 'Asia/Bishkek', 'Pacific/Tarawa', 'Pacific/Kanton', 'Pacific/Kiritimati', 'Asia/Pyongyang', 'Asia/Seoul', 'Asia/Almaty', 'Asia/Qyzylorda', 'Asia/Qostanay', 'Asia/Aqtobe', 'Asia/Aqtau', 'Asia/Atyrau', 'Asia/Oral', 'Asia/Beirut', 'Asia/Colombo', 'Africa/Monrovia', 'Europe/Vilnius', 'Europe/Riga', 'Africa/Tripoli', 'Africa/Casablanca', 'Europe/Chisinau', 'Pacific/Kwajalein', 'Asia/Yangon', 'Asia/Ulaanbaatar', 'Asia/Hovd', 'Asia/Choibalsan', 'Asia/Macau', 'America/Martinique', 'Europe/Malta', 'Indian/Mauritius', 'Indian/Maldives', 'America/Mexico_City', 'America/Cancun', 'America/Merida', 'America/Monterrey', 'America/Matamoros', 'America/Mazatlan', 'America/Chihuahua', 'America/Ojinaga', 'America/Hermosillo', 'America/Tijuana', 'America/Bahia_Banderas', 'Asia/Kuching', 'Africa/Maputo', 'Africa/Windhoek', 'Pacific/Noumea', 'Pacific/Norfolk', 'Africa/Lagos', 'America/Managua', 'Asia/Kathmandu', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Auckland', 'Pacific/Chatham', 'America/Panama', 'America/Lima', 'Pacific/Tahiti', 'Pacific/Marquesas', 'Pacific/Gambier', 'Pacific/Port_Moresby', 'Pacific/Bougainville', 'Asia/Manila', 'Asia/Karachi', 'Europe/Warsaw', 'America/Miquelon', 'Pacific/Pitcairn', 'America/Puerto_Rico', 'Asia/Gaza', 'Asia/Hebron', 'Europe/Lisbon', 'Atlantic/Madeira', 'Atlantic/Azores', 'Pacific/Palau', 'America/Asuncion', 'Asia/Qatar', 'Europe/Bucharest', 'Europe/Belgrade', 'Europe/Kaliningrad', 'Europe/Moscow', 'Europe/Simferopol', 'Europe/Kirov', 'Europe/Volgograd', 'Europe/Astrakhan', 'Europe/Saratov', 'Europe/Ulyanovsk', 'Europe/Samara', 'Asia/Yekaterinburg', 'Asia/Omsk', 'Asia/Novosibirsk', 'Asia/Barnaul', 'Asia/Tomsk', 'Asia/Novokuznetsk', 'Asia/Krasnoyarsk', 'Asia/Irkutsk', 'Asia/Chita', 'Asia/Yakutsk', 'Asia/Khandyga', 'Asia/Vladivostok', 'Asia/Ust-Nera', 'Asia/Magadan', 'Asia/Sakhalin', 'Asia/Srednekolymsk', 'Asia/Kamchatka', 'Asia/Anadyr', 'Asia/Riyadh', 'Pacific/Guadalcanal', 'Africa/Khartoum', 'Asia/Singapore', 'America/Paramaribo', 'Africa/Juba', 'Africa/Sao_Tome', 'America/El_Salvador', 'Asia/Damascus', 'America/Grand_Turk', 'Africa/Ndjamena', 'Asia/Bangkok', 'Asia/Dushanbe', 'Pacific/Fakaofo', 'Asia/Dili', 'Asia/Ashgabat', 'Africa/Tunis', 'Pacific/Tongatapu', 'Europe/Istanbul', 'Asia/Taipei', 'Europe/Kyiv', 'Europe/Uzhgorod', 'Europe/Zaporozhye', 'America/New_York', 'America/Detroit', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Indiana/Indianapolis', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Vevay', 'America/Chicago', 'America/Indiana/Tell_City', 'America/Indiana/Knox', 'America/Menominee', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/North_Dakota/Beulah', 'America/Denver', 'America/Boise', 'America/Phoenix', 'America/Los_Angeles', 'America/Anchorage', 'America/Juneau', 'America/Sitka', 'America/Metlakatla', 'America/Yakutat', 'America/Nome', 'America/Adak', 'Pacific/Honolulu', 'America/Montevideo', 'Asia/Samarkand', 'Asia/Tashkent', 'America/Caracas', 'Asia/Ho_Chi_Minh', 'Pacific/Efate', 'Pacific/Apia', 'Africa/Johannesburg'];
|
package/esm/menu/index.js
CHANGED
|
@@ -13,6 +13,6 @@ export { default as NestedMenus, NestedMenuContext } from './nested-menus'; // C
|
|
|
13
13
|
|
|
14
14
|
export { KEY_STRINGS, STATE_CHANGE_TYPES } from './constants'; // Styled elements
|
|
15
15
|
|
|
16
|
-
export { StyledEmptyState, StyledList, StyledListItem, StyledListItemProfile, StyledProfileImgContainer, StyledProfileImg, StyledProfileLabelsContainer, StyledProfileTitle, StyledProfileSubtitle, StyledProfileBody } from './styled-components'; // Flow
|
|
16
|
+
export { StyledEmptyState, StyledList, StyledListItem, StyledListItemProfile, StyledProfileImgContainer, StyledProfileImg, StyledProfileLabelsContainer, StyledProfileTitle, StyledProfileSubtitle, StyledProfileBody, StyledMenuDivider } from './styled-components'; // Flow
|
|
17
17
|
|
|
18
18
|
export * from './types';
|
package/esm/menu/menu.js
CHANGED
|
@@ -27,7 +27,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
27
27
|
import * as React from 'react';
|
|
28
28
|
import { LocaleContext } from '../locale'; // Components
|
|
29
29
|
|
|
30
|
-
import { StyledList, StyledEmptyState, StyledOptgroupHeader } from './styled-components';
|
|
30
|
+
import { StyledList, StyledEmptyState, StyledOptgroupHeader, StyledMenuDivider } from './styled-components';
|
|
31
31
|
import OptionList from './option-list';
|
|
32
32
|
import { getOverrides } from '../helpers/overrides'; // Types
|
|
33
33
|
|
|
@@ -88,6 +88,11 @@ export default function Menu(props) {
|
|
|
88
88
|
OptgroupHeader = _getOverrides8[0],
|
|
89
89
|
optgroupHeaderProps = _getOverrides8[1];
|
|
90
90
|
|
|
91
|
+
var _getOverrides9 = getOverrides(overrides.MenuDivider, StyledMenuDivider),
|
|
92
|
+
_getOverrides10 = _slicedToArray(_getOverrides9, 2),
|
|
93
|
+
MenuDivider = _getOverrides10[0],
|
|
94
|
+
menuDividerProps = _getOverrides10[1];
|
|
95
|
+
|
|
91
96
|
var groupedItems = Array.isArray(props.items) ? {
|
|
92
97
|
__ungrouped: props.items
|
|
93
98
|
} : props.items;
|
|
@@ -113,6 +118,10 @@ export default function Menu(props) {
|
|
|
113
118
|
return {};
|
|
114
119
|
} : _props$getRequiredIte;
|
|
115
120
|
|
|
121
|
+
if (item.divider === true) {
|
|
122
|
+
return /*#__PURE__*/React.createElement(MenuDivider, menuDividerProps);
|
|
123
|
+
}
|
|
124
|
+
|
|
116
125
|
var _getRequiredItemProps = getRequiredItemProps(item, itemIndex),
|
|
117
126
|
disabled = _getRequiredItemProps.disabled,
|
|
118
127
|
isFocused = _getRequiredItemProps.isFocused,
|
|
@@ -242,4 +242,21 @@ export var StyledProfileBody = styled('p', function (_ref7) {
|
|
|
242
242
|
});
|
|
243
243
|
});
|
|
244
244
|
StyledProfileBody.displayName = "StyledProfileBody";
|
|
245
|
-
StyledProfileBody.displayName = 'StyledProfileBody';
|
|
245
|
+
StyledProfileBody.displayName = 'StyledProfileBody';
|
|
246
|
+
export var StyledMenuDivider = styled('li', function (_ref8) {
|
|
247
|
+
var $theme = _ref8.$theme;
|
|
248
|
+
return {
|
|
249
|
+
color: $theme.colors.contentPrimary,
|
|
250
|
+
borderBottomWidth: $theme.borders.border300.borderWidth,
|
|
251
|
+
borderBottomStyle: $theme.borders.border300.borderStyle,
|
|
252
|
+
borderBottomColor: $theme.borders.border300.borderColor,
|
|
253
|
+
marginTop: $theme.sizing.scale100,
|
|
254
|
+
marginBottom: $theme.sizing.scale100,
|
|
255
|
+
marginLeft: $theme.sizing.scale500,
|
|
256
|
+
marginRight: $theme.sizing.scale500,
|
|
257
|
+
listStyle: 'none',
|
|
258
|
+
height: 0
|
|
259
|
+
};
|
|
260
|
+
});
|
|
261
|
+
StyledMenuDivider.displayName = "StyledMenuDivider";
|
|
262
|
+
StyledProfileBody.displayName = 'StyledMenuDivider';
|
|
@@ -4,4 +4,4 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
export var zones = ['Europe/Andorra', 'Asia/Dubai', 'Asia/Kabul', 'Europe/Tirane', 'Asia/Yerevan', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/Mawson', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Troll', '
|
|
7
|
+
export var zones = ['Europe/Andorra', 'Asia/Dubai', 'Asia/Kabul', 'Europe/Tirane', 'Asia/Yerevan', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/Mawson', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/Troll', 'America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Salta', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/San_Luis', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuaia', 'Pacific/Pago_Pago', 'Europe/Vienna', 'Australia/Lord_Howe', 'Antarctica/Macquarie', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Sydney', 'Australia/Broken_Hill', 'Australia/Brisbane', 'Australia/Lindeman', 'Australia/Adelaide', 'Australia/Darwin', 'Australia/Perth', 'Australia/Eucla', 'Asia/Baku', 'America/Barbados', 'Asia/Dhaka', 'Europe/Brussels', 'Europe/Sofia', 'Atlantic/Bermuda', 'America/La_Paz', 'America/Noronha', 'America/Belem', 'America/Fortaleza', 'America/Recife', 'America/Araguaina', 'America/Maceio', 'America/Bahia', 'America/Sao_Paulo', 'America/Campo_Grande', 'America/Cuiaba', 'America/Santarem', 'America/Porto_Velho', 'America/Boa_Vista', 'America/Manaus', 'America/Eirunepe', 'America/Rio_Branco', 'Asia/Thimphu', 'Europe/Minsk', 'America/Belize', 'America/St_Johns', 'America/Halifax', 'America/Glace_Bay', 'America/Moncton', 'America/Goose_Bay', 'America/Toronto', 'America/Nipigon', 'America/Thunder_Bay', 'America/Iqaluit', 'America/Pangnirtung', 'America/Winnipeg', 'America/Rainy_River', 'America/Resolute', 'America/Rankin_Inlet', 'America/Regina', 'America/Swift_Current', 'America/Edmonton', 'America/Cambridge_Bay', 'America/Yellowknife', 'America/Inuvik', 'America/Dawson_Creek', 'America/Fort_Nelson', 'America/Whitehorse', 'America/Dawson', 'America/Vancouver', 'Europe/Zurich', 'Africa/Abidjan', 'Pacific/Rarotonga', 'America/Santiago', 'America/Punta_Arenas', 'Pacific/Easter', 'Asia/Shanghai', 'Asia/Urumqi', 'America/Bogota', 'America/Costa_Rica', 'America/Havana', 'Atlantic/Cape_Verde', 'Asia/Nicosia', 'Asia/Famagusta', 'Europe/Prague', 'Europe/Berlin', 'America/Santo_Domingo', 'Africa/Algiers', 'America/Guayaquil', 'Pacific/Galapagos', 'Europe/Tallinn', 'Africa/Cairo', 'Africa/El_Aaiun', 'Europe/Madrid', 'Africa/Ceuta', 'Atlantic/Canary', 'Europe/Helsinki', 'Pacific/Fiji', 'Atlantic/Stanley', 'Pacific/Kosrae', 'Atlantic/Faroe', 'Europe/Paris', 'Europe/London', 'Asia/Tbilisi', 'America/Cayenne', 'Europe/Gibraltar', 'America/Nuuk', 'America/Danmarkshavn', 'America/Scoresbysund', 'America/Thule', 'Europe/Athens', 'Atlantic/South_Georgia', 'America/Guatemala', 'Pacific/Guam', 'Africa/Bissau', 'America/Guyana', 'Asia/Hong_Kong', 'America/Tegucigalpa', 'America/Port-au-Prince', 'Europe/Budapest', 'Asia/Jakarta', 'Asia/Pontianak', 'Asia/Makassar', 'Asia/Jayapura', 'Europe/Dublin', 'Asia/Jerusalem', 'Asia/Kolkata', 'Indian/Chagos', 'Asia/Baghdad', 'Asia/Tehran', 'Europe/Rome', 'America/Jamaica', 'Asia/Amman', 'Asia/Tokyo', 'Africa/Nairobi', 'Asia/Bishkek', 'Pacific/Tarawa', 'Pacific/Kanton', 'Pacific/Kiritimati', 'Asia/Pyongyang', 'Asia/Seoul', 'Asia/Almaty', 'Asia/Qyzylorda', 'Asia/Qostanay', 'Asia/Aqtobe', 'Asia/Aqtau', 'Asia/Atyrau', 'Asia/Oral', 'Asia/Beirut', 'Asia/Colombo', 'Africa/Monrovia', 'Europe/Vilnius', 'Europe/Riga', 'Africa/Tripoli', 'Africa/Casablanca', 'Europe/Chisinau', 'Pacific/Kwajalein', 'Asia/Yangon', 'Asia/Ulaanbaatar', 'Asia/Hovd', 'Asia/Choibalsan', 'Asia/Macau', 'America/Martinique', 'Europe/Malta', 'Indian/Mauritius', 'Indian/Maldives', 'America/Mexico_City', 'America/Cancun', 'America/Merida', 'America/Monterrey', 'America/Matamoros', 'America/Mazatlan', 'America/Chihuahua', 'America/Ojinaga', 'America/Hermosillo', 'America/Tijuana', 'America/Bahia_Banderas', 'Asia/Kuching', 'Africa/Maputo', 'Africa/Windhoek', 'Pacific/Noumea', 'Pacific/Norfolk', 'Africa/Lagos', 'America/Managua', 'Asia/Kathmandu', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Auckland', 'Pacific/Chatham', 'America/Panama', 'America/Lima', 'Pacific/Tahiti', 'Pacific/Marquesas', 'Pacific/Gambier', 'Pacific/Port_Moresby', 'Pacific/Bougainville', 'Asia/Manila', 'Asia/Karachi', 'Europe/Warsaw', 'America/Miquelon', 'Pacific/Pitcairn', 'America/Puerto_Rico', 'Asia/Gaza', 'Asia/Hebron', 'Europe/Lisbon', 'Atlantic/Madeira', 'Atlantic/Azores', 'Pacific/Palau', 'America/Asuncion', 'Asia/Qatar', 'Europe/Bucharest', 'Europe/Belgrade', 'Europe/Kaliningrad', 'Europe/Moscow', 'Europe/Simferopol', 'Europe/Kirov', 'Europe/Volgograd', 'Europe/Astrakhan', 'Europe/Saratov', 'Europe/Ulyanovsk', 'Europe/Samara', 'Asia/Yekaterinburg', 'Asia/Omsk', 'Asia/Novosibirsk', 'Asia/Barnaul', 'Asia/Tomsk', 'Asia/Novokuznetsk', 'Asia/Krasnoyarsk', 'Asia/Irkutsk', 'Asia/Chita', 'Asia/Yakutsk', 'Asia/Khandyga', 'Asia/Vladivostok', 'Asia/Ust-Nera', 'Asia/Magadan', 'Asia/Sakhalin', 'Asia/Srednekolymsk', 'Asia/Kamchatka', 'Asia/Anadyr', 'Asia/Riyadh', 'Pacific/Guadalcanal', 'Africa/Khartoum', 'Asia/Singapore', 'America/Paramaribo', 'Africa/Juba', 'Africa/Sao_Tome', 'America/El_Salvador', 'Asia/Damascus', 'America/Grand_Turk', 'Africa/Ndjamena', 'Asia/Bangkok', 'Asia/Dushanbe', 'Pacific/Fakaofo', 'Asia/Dili', 'Asia/Ashgabat', 'Africa/Tunis', 'Pacific/Tongatapu', 'Europe/Istanbul', 'Asia/Taipei', 'Europe/Kyiv', 'Europe/Uzhgorod', 'Europe/Zaporozhye', 'America/New_York', 'America/Detroit', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Indiana/Indianapolis', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Vevay', 'America/Chicago', 'America/Indiana/Tell_City', 'America/Indiana/Knox', 'America/Menominee', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/North_Dakota/Beulah', 'America/Denver', 'America/Boise', 'America/Phoenix', 'America/Los_Angeles', 'America/Anchorage', 'America/Juneau', 'America/Sitka', 'America/Metlakatla', 'America/Yakutat', 'America/Nome', 'America/Adak', 'Pacific/Honolulu', 'America/Montevideo', 'Asia/Samarkand', 'Asia/Tashkent', 'America/Caracas', 'Asia/Ho_Chi_Minh', 'Pacific/Efate', 'Pacific/Apia', 'Africa/Johannesburg'];
|
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>;
|