@elliemae/ds-app-picker 2.3.0-alpha.8 → 2.3.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/AppPickerImpl.d.ts +3 -0
- package/dist/types/DSAppPicker.d.ts +11 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/propTypes.d.ts +61 -0
- package/dist/types/styles.d.ts +9 -0
- package/dist/types/tests/AppPicker.test.d.ts +1 -0
- package/dist/types/types/AppPickerTypes.d.ts +41 -0
- package/dist/types/utils.d.ts +12 -0
- package/package.json +8 -8
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { DSAppPickerType } from './types/AppPickerTypes';
|
|
4
|
+
declare const DSAppPicker: DSAppPickerType;
|
|
5
|
+
declare const AppPickerWithSchema: {
|
|
6
|
+
(props?: unknown): JSX.Element;
|
|
7
|
+
propTypes: unknown;
|
|
8
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
9
|
+
};
|
|
10
|
+
export { DSAppPicker, AppPickerWithSchema };
|
|
11
|
+
export default DSAppPicker;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const propTypes: {
|
|
3
|
+
apps: import("react-desc").PropTypesDescValue;
|
|
4
|
+
customApps: {
|
|
5
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
6
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
7
|
+
};
|
|
8
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
9
|
+
};
|
|
10
|
+
sectionTitle: {
|
|
11
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
12
|
+
};
|
|
13
|
+
customSectionTitle: {
|
|
14
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
15
|
+
};
|
|
16
|
+
icon: {
|
|
17
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
19
|
+
renderTrigger: {
|
|
20
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
21
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
23
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
24
|
+
};
|
|
25
|
+
actionRef: {
|
|
26
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
30
|
+
};
|
|
31
|
+
isOpen: {
|
|
32
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
33
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
36
|
+
};
|
|
37
|
+
onClose: {
|
|
38
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
42
|
+
};
|
|
43
|
+
onKeyDown: {
|
|
44
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
45
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
46
|
+
};
|
|
47
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
48
|
+
};
|
|
49
|
+
onClick: {
|
|
50
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
51
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
52
|
+
};
|
|
53
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
54
|
+
};
|
|
55
|
+
onClickOutside: {
|
|
56
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
57
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
58
|
+
};
|
|
59
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const StyledTitle: import("styled-components").StyledComponent<"h3", import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
2
|
+
export declare const StyledWrapper: import("styled-components").StyledComponent<"ul", import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
3
|
+
export declare const StyledGrid: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
4
|
+
export declare const StyledRow: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
5
|
+
export declare const StyledChipLabel: import("styled-components").StyledComponent<"p", import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
6
|
+
export declare const StyledChip: import("styled-components").StyledComponent<"button", import("@elliemae/ds-system/dist/types/styled/types").Theme, {
|
|
7
|
+
selected: boolean | undefined;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const StyledSeparator: import("styled-components").StyledComponent<"hr", import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SvgIconType } from '@elliemae/ds-icons';
|
|
3
|
+
export interface AppItemType {
|
|
4
|
+
label: string;
|
|
5
|
+
icon: React.ComponentType<{
|
|
6
|
+
className: string;
|
|
7
|
+
size: string;
|
|
8
|
+
}>;
|
|
9
|
+
onClick: () => void | null;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface AppPickerPropsType {
|
|
14
|
+
apps: AppItemType[];
|
|
15
|
+
customApps: AppItemType[];
|
|
16
|
+
sectionTitle: string;
|
|
17
|
+
customSectionTitle: string;
|
|
18
|
+
icon: SvgIconType;
|
|
19
|
+
onKeyDown?: (e: React.KeyboardEvent) => void;
|
|
20
|
+
actionRef?: React.RefObject<{
|
|
21
|
+
focusToIndex: (index: number) => void;
|
|
22
|
+
}>;
|
|
23
|
+
onClick?: (e: MouseEvent) => void;
|
|
24
|
+
onClickOutside?: (e: React.MouseEvent) => void;
|
|
25
|
+
renderTrigger?: React.ComponentType<any>;
|
|
26
|
+
isOpen?: boolean;
|
|
27
|
+
onClose?: () => void;
|
|
28
|
+
triggerRef?: React.RefObject<HTMLButtonElement>;
|
|
29
|
+
}
|
|
30
|
+
export interface AppPickerImplProps {
|
|
31
|
+
apps: AppItemType[];
|
|
32
|
+
customApps: AppItemType[];
|
|
33
|
+
sectionTitle: string;
|
|
34
|
+
customSectionTitle: string;
|
|
35
|
+
close?: () => void;
|
|
36
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
37
|
+
wrapperRef: React.RefObject<HTMLUListElement>;
|
|
38
|
+
triggerRef: React.RefObject<HTMLElement>;
|
|
39
|
+
}
|
|
40
|
+
export declare type DSAppPickerImplType = React.ComponentType<AppPickerImplProps>;
|
|
41
|
+
export declare type DSAppPickerType = React.ComponentType<AppPickerPropsType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-app-picker",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - App Picker",
|
|
6
6
|
"files": [
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
},
|
|
54
54
|
"author": "ICE MT",
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@elliemae/ds-button": "2.3.0-alpha.
|
|
57
|
-
"@elliemae/ds-icons": "2.3.0-alpha.
|
|
58
|
-
"@elliemae/ds-popover": "2.3.0-alpha.
|
|
59
|
-
"@elliemae/ds-props-helpers": "2.3.0-alpha.
|
|
60
|
-
"@elliemae/ds-system": "2.3.0-alpha.
|
|
61
|
-
"@elliemae/ds-truncated-tooltip-text": "2.3.0-alpha.
|
|
62
|
-
"@elliemae/ds-utilities": "2.3.0-alpha.
|
|
56
|
+
"@elliemae/ds-button": "2.3.0-alpha.9",
|
|
57
|
+
"@elliemae/ds-icons": "2.3.0-alpha.9",
|
|
58
|
+
"@elliemae/ds-popover": "2.3.0-alpha.9",
|
|
59
|
+
"@elliemae/ds-props-helpers": "2.3.0-alpha.9",
|
|
60
|
+
"@elliemae/ds-system": "2.3.0-alpha.9",
|
|
61
|
+
"@elliemae/ds-truncated-tooltip-text": "2.3.0-alpha.9",
|
|
62
|
+
"@elliemae/ds-utilities": "2.3.0-alpha.9",
|
|
63
63
|
"react-desc": "^4.1.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|