@mycause/ui 1.1.1 → 1.1.2
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/components/collapse/icons.d.ts +3 -4
- package/dist/components/date-picker/single-date-picker-custom-header.d.ts +2 -2
- package/dist/components/date-picker/single-date-picker.d.ts +2 -2
- package/dist/components/input-social/Icons.d.ts +4 -1
- package/dist/components/login/login.d.ts +4 -1
- package/dist/components/my-account-frp-closed/frp-closed-img.d.ts +1 -2
- package/dist/components/my-account-frp-closed/frp-information.d.ts +1 -1
- package/dist/components/my-account-frp-preview/Icon.d.ts +1 -1
- package/dist/components/my-account-frp-preview/frp-preview-img.d.ts +1 -1
- package/dist/components/my-account-sidebar/Icon.d.ts +11 -11
- package/dist/components/my-account-sidebar/my-account-sidebar.d.ts +1 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/toast/Icons.d.ts +3 -3
- package/dist/donation.esm.js +32 -23
- package/dist/donation.js +32 -23
- package/dist/index.esm.js +140 -135
- package/dist/index.js +140 -135
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const TrashCanIcon: (props:
|
|
3
|
-
export declare const ChevronDownIcon: (
|
|
4
|
-
export declare const ChevronUpIcon: (
|
|
5
|
-
export declare const CloseIcon: (props: any) => React.JSX.Element;
|
|
2
|
+
export declare const TrashCanIcon: (props: Record<string, unknown>) => React.JSX.Element;
|
|
3
|
+
export declare const ChevronDownIcon: () => React.JSX.Element;
|
|
4
|
+
export declare const ChevronUpIcon: () => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import moment from "moment";
|
|
2
|
+
import moment, { Moment } from "moment";
|
|
3
3
|
export interface DatePickerProps {
|
|
4
4
|
id: string;
|
|
5
5
|
date: moment.Moment | null;
|
|
@@ -19,7 +19,7 @@ export interface DatePickerProps {
|
|
|
19
19
|
error?: boolean;
|
|
20
20
|
label?: string;
|
|
21
21
|
width?: string;
|
|
22
|
-
isOutsideRange?: (day:
|
|
22
|
+
isOutsideRange?: (day: Moment) => boolean;
|
|
23
23
|
renderCalendarInfo?: () => string | JSX.Element;
|
|
24
24
|
calendarInfoPosition?: "before" | "after" | "top" | "bottom";
|
|
25
25
|
navPrev?: string | JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import moment from "moment";
|
|
2
|
+
import moment, { Moment } from "moment";
|
|
3
3
|
export interface DatePickerProps {
|
|
4
4
|
id: string;
|
|
5
5
|
date: moment.Moment | null;
|
|
@@ -19,7 +19,7 @@ export interface DatePickerProps {
|
|
|
19
19
|
error?: boolean;
|
|
20
20
|
label?: string;
|
|
21
21
|
width?: string;
|
|
22
|
-
isOutsideRange?: (day:
|
|
22
|
+
isOutsideRange?: (day: Moment) => boolean;
|
|
23
23
|
showDefaultInputIcon?: boolean;
|
|
24
24
|
}
|
|
25
25
|
declare const CustomSingleDatePicker: ({ width, color, onDateChange, onFocusChange, numberOfMonths, error, label, focused, required, id, ...rest }: DatePickerProps) => React.JSX.Element;
|
|
@@ -4,10 +4,13 @@ export declare const ENV_TEST = "test";
|
|
|
4
4
|
export declare const ENV_DEV = "dev";
|
|
5
5
|
export declare const getAccountLink: (env: string) => "https://account-dev.mycause.com.au" | "https://account-test.mycause.com.au" | "https://account.mycause.com.au";
|
|
6
6
|
export declare const getMycauseLink: (env: string) => "https://dev.mycause.com.au" | "https://aws-test.mycause.com.au" | "https://www.mycause.com.au";
|
|
7
|
+
export interface Param {
|
|
8
|
+
[key: string]: string | number | boolean;
|
|
9
|
+
}
|
|
7
10
|
export interface LoginProps {
|
|
8
11
|
id?: string;
|
|
9
12
|
className?: string;
|
|
10
|
-
params?:
|
|
13
|
+
params?: Param;
|
|
11
14
|
env?: string;
|
|
12
15
|
loggedInCallBack?: () => void;
|
|
13
16
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface FrpClosedImgProps {
|
|
3
3
|
img?: string;
|
|
4
|
-
link?: string;
|
|
5
4
|
title?: string;
|
|
6
5
|
frpColor?: string;
|
|
7
6
|
}
|
|
8
|
-
declare const FrpClosedImg: ({ img,
|
|
7
|
+
declare const FrpClosedImg: ({ img, title, frpColor }: FrpClosedImgProps) => React.JSX.Element;
|
|
9
8
|
export default FrpClosedImg;
|
|
@@ -11,5 +11,5 @@ interface FrpInfomationProps {
|
|
|
11
11
|
thankLink?: string;
|
|
12
12
|
handleCertificateMemento?: () => void;
|
|
13
13
|
}
|
|
14
|
-
declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, closedDate, customRow,
|
|
14
|
+
declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, closedDate, customRow, thankLink, handleCertificateMemento, }: FrpInfomationProps) => React.JSX.Element;
|
|
15
15
|
export default FrpInfomation;
|
|
@@ -5,5 +5,5 @@ export interface FrpPreviewImgProps {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
frpColor?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const FrpPreviewImg: ({ img,
|
|
8
|
+
declare const FrpPreviewImg: ({ img, title, frpColor }: FrpPreviewImgProps) => React.JSX.Element;
|
|
9
9
|
export default FrpPreviewImg;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const Icons: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
Dashboard: () => React.JSX.Element;
|
|
4
|
+
Collapse: () => React.JSX.Element;
|
|
5
|
+
Expand: () => React.JSX.Element;
|
|
6
|
+
Donations: () => React.JSX.Element;
|
|
7
|
+
Account: () => React.JSX.Element;
|
|
8
|
+
Support: () => React.JSX.Element;
|
|
9
|
+
Additional: () => React.JSX.Element;
|
|
10
|
+
Minus: () => React.JSX.Element;
|
|
11
|
+
Dot: () => React.JSX.Element;
|
|
12
|
+
Menu: () => React.JSX.Element;
|
|
13
|
+
Close: () => React.JSX.Element;
|
|
14
14
|
};
|
|
15
15
|
export default Icons;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
export interface SpinnerProps {
|
|
3
3
|
id?: string;
|
|
4
4
|
className?: string;
|
|
5
|
-
style?:
|
|
5
|
+
style?: object;
|
|
6
6
|
type?: "default" | "orange";
|
|
7
7
|
}
|
|
8
8
|
declare const Spinner: ({ id, className, style, type, ...rest }: SpinnerProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const Icons: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Close: () => React.JSX.Element;
|
|
4
|
+
Error: () => React.JSX.Element;
|
|
5
|
+
Warning: () => React.JSX.Element;
|
|
6
6
|
};
|
|
7
7
|
export default Icons;
|