@elliemae/ds-mobile 2.0.0-rc.7 → 2.0.0-rc.8
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/package.json +6 -6
- package/types/CategoryBox/CategoryBox.d.ts +36 -5
- package/types/CollectionBox/CollectionBox.d.ts +36 -5
- package/types/GlobalHeader/MobileGlobalHeader.d.ts +43 -6
- package/types/GroupBox/GroupBox.d.ts +43 -6
- package/types/InfiniteLoader/Infiniteloader.d.ts +29 -4
- package/types/InfiniteLoader/VirtualizedInfiniteLoader.d.ts +56 -8
- package/types/MobileActionToolbar/MobileActionToolbar.d.ts +15 -3
- package/types/MobileActionToolbar/MobileActionToolbarItem.d.ts +15 -2
- package/types/MobileBanner/MobileBanner.d.ts +72 -12
- package/types/MobileBanner/propTypes.d.ts +67 -11
- package/types/MobileBanner/styles.d.ts +1 -60
- package/types/MobileCard/Card.d.ts +22 -12
- package/types/MobileCard/Group.d.ts +17 -7
- package/types/MobileCard/index.d.ts +3 -11
- package/types/MobileContextMenu/MobileContextMenu.d.ts +12 -1
- package/types/MobileContextMenu/MobileContextMenuGroup.d.ts +37 -5
- package/types/MobileContextMenu/MobileContextMenuItem.d.ts +54 -9
- package/types/MobileDatePicker/MobileDatePicker.d.ts +42 -6
- package/types/MobileDropdownMenu/MobileDropdownMenu.d.ts +24 -4
- package/types/MobileEmtpyState/MobileEmptyState.d.ts +14 -2
- package/types/MobileFilterbar/Filterbar.d.ts +9 -2
- package/types/MobileFilterbar/FilterbarItem.d.ts +15 -2
- package/types/MobileFilterbar/FilterbarSort.d.ts +9 -2
- package/types/MobileFooter/Action.d.ts +19 -3
- package/types/MobileFooter/Footer.d.ts +8 -1
- package/types/MobileFooter/Text.d.ts +8 -1
- package/types/MobileListItem/MobileListItem.d.ts +16 -6
- package/types/MobilePageHeader/MobilePageHeader.d.ts +20 -10
- package/types/MobileSeparator/Separator.d.ts +23 -5
- package/types/MobileTimePicker/MobileTimePicker.d.ts +31 -5
- package/types/Modal/Modal.d.ts +50 -9
- package/types/SideNav/SideNav.d.ts +25 -4
- package/types/SwipeToRefresh/SwipeToRefresh.d.ts +22 -3
|
@@ -1,15 +1,25 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
import React from 'react';
|
|
2
|
-
declare const PageHeaderWithSchema:
|
|
3
|
+
declare const PageHeaderWithSchema: {
|
|
4
|
+
(props?: {
|
|
5
|
+
pageTitle?: null | undefined;
|
|
6
|
+
contextMenu?: null | undefined;
|
|
7
|
+
firstAction?: null | undefined;
|
|
8
|
+
secondAction?: null | undefined;
|
|
9
|
+
backArrow?: null | undefined;
|
|
10
|
+
breadCrumb?: null | undefined;
|
|
11
|
+
onOpenContextMenu?: (() => null) | undefined;
|
|
12
|
+
value: any;
|
|
13
|
+
label: any;
|
|
14
|
+
theme: any;
|
|
15
|
+
} | undefined): JSX.Element;
|
|
16
|
+
propTypes: unknown;
|
|
17
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
18
|
+
};
|
|
3
19
|
declare const DSMobilePageHeader: React.ForwardRefExoticComponent<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
contextMenu?: null | undefined;
|
|
8
|
-
value: any;
|
|
9
|
-
firstAction?: null | undefined;
|
|
10
|
-
secondAction?: null | undefined;
|
|
11
|
-
backArrow?: null | undefined;
|
|
12
|
-
onOpenContextMenu?: (() => null) | undefined;
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
[x: number]: any;
|
|
22
|
+
[x: symbol]: any;
|
|
13
23
|
} & {
|
|
14
24
|
theme?: import("styled-components").DefaultTheme | undefined;
|
|
15
25
|
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const MobileSeparator: {
|
|
3
4
|
({ color, direction, type, margin }: {
|
|
@@ -7,12 +8,29 @@ declare const MobileSeparator: {
|
|
|
7
8
|
margin?: string | undefined;
|
|
8
9
|
}): JSX.Element;
|
|
9
10
|
propTypes: {
|
|
10
|
-
type:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
type: {
|
|
12
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
13
|
+
};
|
|
14
|
+
direction: {
|
|
15
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
color: {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
margin: {
|
|
21
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
14
23
|
};
|
|
15
24
|
};
|
|
16
|
-
declare const MobileSeparatorWithSchema:
|
|
25
|
+
declare const MobileSeparatorWithSchema: {
|
|
26
|
+
(props?: {
|
|
27
|
+
color?: string[] | undefined;
|
|
28
|
+
direction?: string | undefined;
|
|
29
|
+
type?: string | undefined;
|
|
30
|
+
margin?: string | undefined;
|
|
31
|
+
} | undefined): JSX.Element;
|
|
32
|
+
propTypes: unknown;
|
|
33
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
34
|
+
};
|
|
17
35
|
export { MobileSeparatorWithSchema };
|
|
18
36
|
export default MobileSeparator;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const DSMobileTimePicker: {
|
|
3
4
|
({ disabled, value, tabIndex, placeholder, onChange }: {
|
|
@@ -17,23 +18,48 @@ declare const DSMobileTimePicker: {
|
|
|
17
18
|
/**
|
|
18
19
|
* defaults to false
|
|
19
20
|
*/
|
|
20
|
-
disabled:
|
|
21
|
+
disabled: {
|
|
22
|
+
defaultValue<T = unknown>(arg: T): {
|
|
23
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
|
+
};
|
|
25
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
21
27
|
/**
|
|
22
28
|
* 0 as default
|
|
23
29
|
*/
|
|
24
|
-
tabIndex:
|
|
30
|
+
tabIndex: {
|
|
31
|
+
defaultValue<T = unknown>(arg: T): {
|
|
32
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
33
|
+
};
|
|
34
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
25
36
|
/**
|
|
26
37
|
* HH : MM am as default
|
|
27
38
|
*/
|
|
28
|
-
placeholder:
|
|
39
|
+
placeholder: {
|
|
40
|
+
defaultValue<T = unknown>(arg: T): {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
29
45
|
/**
|
|
30
46
|
* onChange handler, receives change event as first argument
|
|
31
47
|
*/
|
|
32
|
-
onChange:
|
|
48
|
+
onChange: {
|
|
49
|
+
defaultValue<T = unknown>(arg: T): {
|
|
50
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
53
|
+
};
|
|
33
54
|
/**
|
|
34
55
|
* HH:MM string representing the time or empty string
|
|
35
56
|
*/
|
|
36
|
-
value:
|
|
57
|
+
value: {
|
|
58
|
+
defaultValue<T = unknown>(arg: T): {
|
|
59
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
61
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
62
|
+
};
|
|
37
63
|
};
|
|
38
64
|
};
|
|
39
65
|
declare const DSMobileTimePickerWithSchema: any;
|
package/types/Modal/Modal.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const Modal: {
|
|
3
4
|
({ zIndex, title, description, onClose, showSecondaryAction, secondaryActionProps, primaryActionProps, isOpen, }: {
|
|
@@ -17,15 +18,55 @@ declare const Modal: {
|
|
|
17
18
|
isOpen?: boolean | undefined;
|
|
18
19
|
}): JSX.Element | null;
|
|
19
20
|
propTypes: {
|
|
20
|
-
isOpen:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
isOpen: {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
zIndex: {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
title: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
description: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
onClose: {
|
|
30
|
+
defaultValue<T = unknown>(arg: T): {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
showSecondaryAction: {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
secondaryActionProps: {
|
|
39
|
+
defaultValue<T = unknown>(arg: T): {
|
|
40
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
+
};
|
|
42
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
44
|
+
primaryActionProps: {
|
|
45
|
+
defaultValue<T = unknown>(arg: T): {
|
|
46
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
28
50
|
};
|
|
29
51
|
};
|
|
30
|
-
declare const ModalWithSchema:
|
|
52
|
+
declare const ModalWithSchema: {
|
|
53
|
+
(props?: {
|
|
54
|
+
zIndex?: number | undefined;
|
|
55
|
+
title?: string | undefined;
|
|
56
|
+
description?: string | undefined;
|
|
57
|
+
onClose?: ((...args: any[]) => void) | undefined;
|
|
58
|
+
showSecondaryAction?: boolean | undefined;
|
|
59
|
+
secondaryActionProps?: {
|
|
60
|
+
onClick: (...args: any[]) => void;
|
|
61
|
+
labelText: string;
|
|
62
|
+
} | undefined;
|
|
63
|
+
primaryActionProps?: {
|
|
64
|
+
onClick: (...args: any[]) => void;
|
|
65
|
+
labelText: string;
|
|
66
|
+
} | undefined;
|
|
67
|
+
isOpen?: boolean | undefined;
|
|
68
|
+
} | undefined): JSX.Element;
|
|
69
|
+
propTypes: unknown;
|
|
70
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
71
|
+
};
|
|
31
72
|
export { Modal, ModalWithSchema };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const DSSideNav: {
|
|
3
4
|
({ containerProps, title, onClose, menuItems, bottomMenuItems }: {
|
|
@@ -9,7 +10,12 @@ declare const DSSideNav: {
|
|
|
9
10
|
}): JSX.Element;
|
|
10
11
|
propTypes: {
|
|
11
12
|
/** inject props to wrapper element of side nav */
|
|
12
|
-
containerProps:
|
|
13
|
+
containerProps: {
|
|
14
|
+
defaultValue<T = unknown>(arg: T): {
|
|
15
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
13
19
|
/**
|
|
14
20
|
* Heading Title
|
|
15
21
|
*/
|
|
@@ -17,15 +23,30 @@ declare const DSSideNav: {
|
|
|
17
23
|
/**
|
|
18
24
|
* Callback function when close is menu is triggered
|
|
19
25
|
*/
|
|
20
|
-
onClose:
|
|
26
|
+
onClose: {
|
|
27
|
+
defaultValue<T = unknown>(arg: T): {
|
|
28
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
30
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
21
32
|
/**
|
|
22
33
|
* Top Menu items array
|
|
23
34
|
*/
|
|
24
|
-
menuItems:
|
|
35
|
+
menuItems: {
|
|
36
|
+
defaultValue<T = unknown>(arg: T): {
|
|
37
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
|
+
};
|
|
39
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
25
41
|
/**
|
|
26
42
|
* Bottom Menu items array
|
|
27
43
|
*/
|
|
28
|
-
bottomMenuItems:
|
|
44
|
+
bottomMenuItems: {
|
|
45
|
+
defaultValue<T = unknown>(arg: T): {
|
|
46
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
29
50
|
};
|
|
30
51
|
};
|
|
31
52
|
declare const DSSideNavWithSchema: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const SwipeToRefresh: {
|
|
3
4
|
({ children, loading, onRefresh }: {
|
|
@@ -9,10 +10,28 @@ declare const SwipeToRefresh: {
|
|
|
9
10
|
/** component inside swipe to refresh container */
|
|
10
11
|
children: any;
|
|
11
12
|
/** toggle loading state for swipe */
|
|
12
|
-
loading:
|
|
13
|
+
loading: {
|
|
14
|
+
defaultValue<T = unknown>(arg: T): {
|
|
15
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
13
19
|
/** callback on refresh swipe */
|
|
14
|
-
onRefresh:
|
|
20
|
+
onRefresh: {
|
|
21
|
+
defaultValue<T = unknown>(arg: T): {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
15
26
|
};
|
|
16
27
|
};
|
|
17
|
-
declare const SwipeToRefreshWithSchema:
|
|
28
|
+
declare const SwipeToRefreshWithSchema: {
|
|
29
|
+
(props?: {
|
|
30
|
+
children: any;
|
|
31
|
+
loading: any;
|
|
32
|
+
onRefresh: any;
|
|
33
|
+
} | undefined): JSX.Element;
|
|
34
|
+
propTypes: unknown;
|
|
35
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
36
|
+
};
|
|
18
37
|
export { SwipeToRefresh, SwipeToRefreshWithSchema };
|