@elliemae/ds-banner 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/DSBanner.d.ts +59 -0
- package/dist/types/defaultProps.d.ts +14 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/propTypes.d.ts +33 -0
- package/dist/types/styles.d.ts +8 -0
- package/dist/types/tests/DSBanner.events.test.d.ts +1 -0
- package/dist/types/tests/DSBanner.test.d.ts +1 -0
- package/dist/types/utils/bannerTypes.d.ts +6 -0
- package/dist/types/utils/icons.d.ts +7 -0
- package/dist/types/utils/styleHelpers.d.ts +5 -0
- package/package.json +4 -4
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { BannerPropsT } from './index.d';
|
|
4
|
+
declare const DSBanner: {
|
|
5
|
+
({ type, isOpen, onClose, label, body, actionLink, showCloseButton, containerProps, actionRef, }: BannerPropsT): JSX.Element;
|
|
6
|
+
defaultProps: {
|
|
7
|
+
containerProps: {};
|
|
8
|
+
label: string;
|
|
9
|
+
body: string;
|
|
10
|
+
type: "info";
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onClose: () => null;
|
|
13
|
+
showCloseButton: boolean;
|
|
14
|
+
actionLink: {
|
|
15
|
+
label: string;
|
|
16
|
+
onClick: () => null;
|
|
17
|
+
href: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
propTypes: {
|
|
21
|
+
containerProps: {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
label: {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
body: {
|
|
28
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
30
|
+
type: {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
onClose: {
|
|
34
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
35
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
36
|
+
};
|
|
37
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
38
|
+
};
|
|
39
|
+
isOpen: {
|
|
40
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
+
};
|
|
42
|
+
showCloseButton: {
|
|
43
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
45
|
+
actionLink: {
|
|
46
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
actionRef: {
|
|
49
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
declare const DSBannerWithSchema: {
|
|
54
|
+
(props?: unknown): JSX.Element;
|
|
55
|
+
propTypes: unknown;
|
|
56
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
57
|
+
};
|
|
58
|
+
export default DSBanner;
|
|
59
|
+
export { DSBanner, DSBannerWithSchema };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const defaultProps: {
|
|
2
|
+
containerProps: {};
|
|
3
|
+
label: string;
|
|
4
|
+
body: string;
|
|
5
|
+
type: "info";
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => null;
|
|
8
|
+
showCloseButton: boolean;
|
|
9
|
+
actionLink: {
|
|
10
|
+
label: string;
|
|
11
|
+
onClick: () => null;
|
|
12
|
+
href: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const propTypes: {
|
|
3
|
+
containerProps: {
|
|
4
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
8
|
+
};
|
|
9
|
+
body: {
|
|
10
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
11
|
+
};
|
|
12
|
+
type: {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
onClose: {
|
|
16
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
17
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
+
};
|
|
19
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
20
|
+
};
|
|
21
|
+
isOpen: {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
showCloseButton: {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
actionLink: {
|
|
28
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
30
|
+
actionRef: {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StyledActionLinkT, StyledBannerContainerT, StyledInnerContainerT } from './index.d';
|
|
2
|
+
export declare const StyledBannerContainer: import("styled-components").StyledComponent<StyledBannerContainerT, import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
3
|
+
export declare const StyledInnerContainer: import("styled-components").StyledComponent<StyledInnerContainerT, import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
4
|
+
export declare const StyledIconContainer: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
5
|
+
export declare const StyledTitle: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
6
|
+
export declare const StyledSubTitle: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
7
|
+
export declare const StyledActionLink: import("styled-components").StyledComponent<StyledActionLinkT, import("@elliemae/ds-system/dist/types/styled/types").Theme, {}, never>;
|
|
8
|
+
export declare const StyledCloseButton: import("styled-components").StyledComponent<any, import("@elliemae/ds-system/dist/types/styled/types").Theme, any, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FlattenSimpleInterpolation } from 'styled-components';
|
|
2
|
+
export declare const handleBorderColor: (type: any, { colors }: {
|
|
3
|
+
colors: any;
|
|
4
|
+
}) => string;
|
|
5
|
+
export declare const handleAnimation: (isAnimating: boolean, isOpen: boolean, height?: number | null) => FlattenSimpleInterpolation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-banner",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Banner",
|
|
6
6
|
"files": [
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
},
|
|
58
58
|
"author": "ICE MT",
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@elliemae/ds-button": "2.3.0-alpha.
|
|
61
|
-
"@elliemae/ds-icons": "2.3.0-alpha.
|
|
62
|
-
"@elliemae/ds-system": "2.3.0-alpha.
|
|
60
|
+
"@elliemae/ds-button": "2.3.0-alpha.9",
|
|
61
|
+
"@elliemae/ds-icons": "2.3.0-alpha.9",
|
|
62
|
+
"@elliemae/ds-system": "2.3.0-alpha.9",
|
|
63
63
|
"react-desc": "~4.1.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|