@mycause/ui 0.0.0-cb0f30ed → 0.0.0-cb1c0172
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/index.d.ts +1 -0
- package/dist/components/input/InputDefault.d.ts +6 -4
- package/dist/components/input/input.stories.d.ts +6 -0
- package/dist/components/my-account-frp-closed/frp-closed-img.d.ts +2 -1
- package/dist/components/my-account-frp-closed/frp-information.d.ts +3 -2
- package/dist/components/my-account-frp-closed/index.d.ts +1 -1
- package/dist/components/my-account-frp-closed/my-account-frp-closed.d.ts +4 -2
- package/dist/components/my-account-frp-preview/frp-preview-img.d.ts +2 -1
- package/dist/components/my-account-frp-preview/my-account-frp-preview.d.ts +2 -1
- package/dist/components/my-account-sidebar/Icon.d.ts +2 -0
- package/dist/components/my-account-sidebar/my-account-sidebar.d.ts +2 -1
- package/dist/components/nav/index.d.ts +1 -0
- package/dist/components/nav/nav-expanded-charity.d.ts +2 -1
- package/dist/components/nav/nav-myaccount.d.ts +22 -0
- package/dist/components/nav/nav.d.ts +1 -0
- package/dist/components/nav/nav.stories.d.ts +6 -0
- package/dist/components/phone-number-input/phone-number-input-v2.d.ts +2 -1
- package/dist/components/table/partner-monthly-table.d.ts +2 -1
- package/dist/index.esm.js +5238 -217
- package/dist/index.js +5239 -216
- package/package.json +1 -1
- package/dist/components/choose-charity-card/choose-charity-card.d.ts +0 -10
- package/dist/components/choose-charity-card/choose-charity-card.stories.d.ts +0 -14
- package/dist/components/choose-charity-card/index.d.ts +0 -1
- package/dist/components/green-dashboard-sidebar/Icon.d.ts +0 -11
- package/dist/components/green-dashboard-sidebar/green-dashboard-sidebar.d.ts +0 -15
- package/dist/components/green-dashboard-sidebar/green-dashboard-sidebar.stories.d.ts +0 -12
- package/dist/components/green-dashboard-sidebar/index.d.ts +0 -1
- package/dist/components/line-chart/index.d.ts +0 -2
- package/dist/components/line-chart/partner-line-chart-block.d.ts +0 -10
- package/dist/components/line-chart/partner-line-chart-block.stories.d.ts +0 -12
- package/dist/components/line-chart/partner-line-chart.d.ts +0 -3
- package/dist/components/modal/modalImage.d.ts +0 -8
- package/dist/components/my-account-frp-archive/Icon.d.ts +0 -5
- package/dist/components/my-account-frp-archive/frp-archive-img.d.ts +0 -8
- package/dist/components/my-account-frp-archive/frp-information.d.ts +0 -12
- package/dist/components/my-account-frp-archive/index.d.ts +0 -1
- package/dist/components/my-account-frp-archive/my-account-frp-archive.d.ts +0 -15
- package/dist/components/my-account-frp-archive/my-account-frp-archive.stories.d.ts +0 -24
- package/dist/components/partner-dashboard-chart/chart.d.ts +0 -3
- package/dist/components/partner-dashboard-chart/chart.stories.d.ts +0 -14
- package/dist/components/partner-dashboard-chart/index.d.ts +0 -1
- package/dist/components/start-fundraise-card/index.d.ts +0 -1
- package/dist/components/start-fundraise-card/start-fundraise-card.d.ts +0 -10
- package/dist/components/start-fundraise-card/start-fundraise-card.stories.d.ts +0 -14
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface InputDefaltProps {
|
|
3
|
-
|
|
3
|
+
label?: string;
|
|
4
4
|
required?: boolean;
|
|
5
5
|
placeholder?: string;
|
|
6
|
-
onChange
|
|
7
|
-
value
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
value?: string | Array<string> | number;
|
|
8
8
|
error?: string | null | boolean;
|
|
9
|
+
disable?: boolean;
|
|
10
|
+
name?: string;
|
|
9
11
|
}
|
|
10
|
-
declare const Input: ({
|
|
12
|
+
declare const Input: ({ label, required, placeholder, value, onChange, error, disable, name, }: InputDefaltProps) => JSX.Element;
|
|
11
13
|
export default Input;
|
|
@@ -3,6 +3,7 @@ export interface FrpClosedImgProps {
|
|
|
3
3
|
img?: string;
|
|
4
4
|
link?: string;
|
|
5
5
|
title?: string;
|
|
6
|
+
frpColor?: string;
|
|
6
7
|
}
|
|
7
|
-
declare const FrpClosedImg: ({ img, link, title }: FrpClosedImgProps) => JSX.Element;
|
|
8
|
+
declare const FrpClosedImg: ({ img, link, title, frpColor }: FrpClosedImgProps) => JSX.Element;
|
|
8
9
|
export default FrpClosedImg;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
interface FrpInfomationProps {
|
|
3
3
|
donations: number;
|
|
4
4
|
amountRaised: number;
|
|
5
|
-
amountGoal: number;
|
|
5
|
+
amountGoal: number | null;
|
|
6
6
|
sqSize: number;
|
|
7
7
|
strokeWidth: number;
|
|
8
|
+
closedDate?: string | undefined;
|
|
8
9
|
}
|
|
9
|
-
declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, }: FrpInfomationProps) => JSX.Element;
|
|
10
|
+
declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, closedDate, }: FrpInfomationProps) => JSX.Element;
|
|
10
11
|
export default FrpInfomation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as MyAccountFrpClosed } from "./my-account-frp-closed";
|
|
@@ -5,9 +5,11 @@ export interface MyAccountFrpClosedProps {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
donations: number;
|
|
7
7
|
amountRaised: number;
|
|
8
|
-
amountGoal: number;
|
|
8
|
+
amountGoal: number | null;
|
|
9
9
|
sqSize: number;
|
|
10
10
|
strokeWidth: number;
|
|
11
|
+
frpColor?: string;
|
|
12
|
+
closedDate?: string;
|
|
11
13
|
}
|
|
12
|
-
declare const MyAccountFrpClosed: ({ img, link, title, amountGoal, amountRaised, donations, sqSize, strokeWidth, }: MyAccountFrpClosedProps) => JSX.Element;
|
|
14
|
+
declare const MyAccountFrpClosed: ({ img, link, title, amountGoal, amountRaised, donations, sqSize, strokeWidth, frpColor, closedDate, }: MyAccountFrpClosedProps) => JSX.Element;
|
|
13
15
|
export default MyAccountFrpClosed;
|
|
@@ -3,6 +3,7 @@ export interface FrpPreviewImgProps {
|
|
|
3
3
|
img?: string;
|
|
4
4
|
link?: string;
|
|
5
5
|
title?: string;
|
|
6
|
+
frpColor?: string;
|
|
6
7
|
}
|
|
7
|
-
declare const FrpPreviewImg: ({ img, link, title }: FrpPreviewImgProps) => JSX.Element;
|
|
8
|
+
declare const FrpPreviewImg: ({ img, link, title, frpColor }: FrpPreviewImgProps) => JSX.Element;
|
|
8
9
|
export default FrpPreviewImg;
|
|
@@ -11,6 +11,7 @@ export interface MyAccountFrpPreviewProps {
|
|
|
11
11
|
sqSize: number;
|
|
12
12
|
strokeWidth: number;
|
|
13
13
|
manageLink?: string;
|
|
14
|
+
frpColor?: string;
|
|
14
15
|
}
|
|
15
|
-
declare const MyAccountFrpPreview: ({ img, link, title, amountGoal, amountOfweek, amountRaised, donations, sqSize, strokeWidth, daysToGo, manageLink, }: MyAccountFrpPreviewProps) => JSX.Element;
|
|
16
|
+
declare const MyAccountFrpPreview: ({ img, link, title, amountGoal, amountOfweek, amountRaised, donations, sqSize, strokeWidth, daysToGo, manageLink, frpColor, }: MyAccountFrpPreviewProps) => JSX.Element;
|
|
16
17
|
export default MyAccountFrpPreview;
|
|
@@ -9,9 +9,10 @@ export interface MyAccountSidebarProps {
|
|
|
9
9
|
}
|
|
10
10
|
declare type ItemMenu = {
|
|
11
11
|
id: string;
|
|
12
|
-
icon
|
|
12
|
+
icon?: any;
|
|
13
13
|
label: string;
|
|
14
14
|
href?: string;
|
|
15
|
+
items?: Array<ItemMenu>;
|
|
15
16
|
};
|
|
16
17
|
declare const MyAccountSidebar: ({ listMenu, dashboard, account, contract, handleSetOverlay, activeMenu, }: MyAccountSidebarProps) => JSX.Element;
|
|
17
18
|
export default MyAccountSidebar;
|
|
@@ -8,6 +8,7 @@ export declare type NavigationExpandedCharityProps = {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
action: HybridNavigationLink | null;
|
|
10
10
|
actionRaised?: HybridNavigationLink | null;
|
|
11
|
+
loginRaised?: HybridNavigationLink | null;
|
|
11
12
|
};
|
|
12
|
-
declare function NavigationExpandedCharity({ children, onRequestClose, className, banner, action, actionRaised, }: NavigationExpandedCharityProps): JSX.Element;
|
|
13
|
+
declare function NavigationExpandedCharity({ children, onRequestClose, className, banner, action, actionRaised, loginRaised, }: NavigationExpandedCharityProps): JSX.Element;
|
|
13
14
|
export default NavigationExpandedCharity;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ColorSpecifier } from "../../theme/theme";
|
|
3
|
+
import { ButtonProps } from "../button/button";
|
|
4
|
+
import { UserData } from "./nav-user-menu";
|
|
5
|
+
import { UserMenuItemWithSubmenu } from "./nav-user-menu-items";
|
|
6
|
+
declare type LoginAction = {
|
|
7
|
+
analyticsId?: string;
|
|
8
|
+
onLogin: () => void;
|
|
9
|
+
color?: ColorSpecifier;
|
|
10
|
+
noIcon?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare type NavigationProps = {
|
|
13
|
+
logo?: React.ReactNode;
|
|
14
|
+
cta?: ButtonProps | null;
|
|
15
|
+
user?: UserData | null;
|
|
16
|
+
login?: LoginAction | null;
|
|
17
|
+
isSticky?: boolean;
|
|
18
|
+
menuReverse?: boolean;
|
|
19
|
+
userMenu?: Array<UserMenuItemWithSubmenu>;
|
|
20
|
+
};
|
|
21
|
+
declare function Navigation({ logo, cta, user, login, isSticky, userMenu, }: NavigationProps): JSX.Element;
|
|
22
|
+
export default Navigation;
|
|
@@ -13,6 +13,7 @@ declare type PhoneInputProps = {
|
|
|
13
13
|
defaultCountry?: CountryCode;
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
color?: string;
|
|
16
|
+
name?: string;
|
|
16
17
|
};
|
|
17
|
-
declare function PhoneInput({ values, onChange, defaultCountry, label, required, placeholder, error, }: PhoneInputProps): JSX.Element;
|
|
18
|
+
declare function PhoneInput({ values, onChange, defaultCountry, label, required, placeholder, error, name, }: PhoneInputProps): JSX.Element;
|
|
18
19
|
export default PhoneInput;
|
|
@@ -11,6 +11,7 @@ export interface PartnerMonthlyTableProps {
|
|
|
11
11
|
data: Array<object>;
|
|
12
12
|
title?: string;
|
|
13
13
|
tooltip?: string;
|
|
14
|
+
customBottomRow?: React.ReactNode;
|
|
14
15
|
}
|
|
15
|
-
declare const PartnerMonthlyTable: ({ columns, data, title, tooltip, }: PartnerMonthlyTableProps) => JSX.Element;
|
|
16
|
+
declare const PartnerMonthlyTable: ({ columns, data, title, tooltip, customBottomRow, }: PartnerMonthlyTableProps) => JSX.Element;
|
|
16
17
|
export default PartnerMonthlyTable;
|