@mycause/ui 0.0.0-c1005b3e → 0.0.0-c10d3ebf
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/CHANGELOG.md +93 -0
- package/dist/components/credit-card-form/CreditCardForm.d.ts +13 -0
- package/dist/components/credit-card-form/Icons.d.ts +7 -0
- package/dist/components/{line-chart/partner-line-chart-block.stories.d.ts → credit-card-form/credit-card.stories.d.ts} +1 -1
- package/dist/components/credit-card-form/index.d.ts +1 -0
- package/dist/components/credit-card-form/toast.stories.d.ts +12 -0
- package/dist/components/date-picker/date-picker.stories.d.ts +7 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/date-picker/single-date-picker-custom-header.d.ts +32 -0
- package/dist/components/date-picker/single-date-picker.d.ts +2 -1
- package/dist/components/index.d.ts +4 -7
- package/dist/components/input/InputDefault.d.ts +7 -5
- package/dist/components/input/input.stories.d.ts +6 -0
- package/dist/components/{my-account-frp-archive/Icon.d.ts → input-social/Icons.d.ts} +1 -1
- package/dist/components/input-social/InputSocial.d.ts +12 -0
- package/dist/components/input-social/index.d.ts +1 -0
- package/dist/components/{green-dashboard-sidebar/green-dashboard-sidebar.stories.d.ts → input-social/input-social.stories.d.ts} +1 -1
- package/dist/components/modal/modal.stories.d.ts +2 -2
- 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 +6 -3
- package/dist/components/my-account-frp-closed/my-account-frp-closed.d.ts +7 -3
- 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 +5 -3
- package/dist/components/my-account-start-fundraise-card/my-account-start-fundraise-card.d.ts +5 -3
- package/dist/components/my-account-start-fundraise-card/my-account-start-fundraise-card.stories.d.ts +7 -1
- package/dist/components/my-account-stats-raised/my-account-stats-raised.d.ts +1 -2
- package/dist/components/nav/nav-expanded-charity.d.ts +2 -1
- package/dist/components/nav/nav-myaccount.d.ts +3 -1
- package/dist/components/nav/nav.d.ts +1 -0
- package/dist/components/phone-number-input/index.d.ts +1 -0
- package/dist/components/phone-number-input/phone-number-input-v1.d.ts +25 -0
- package/dist/components/phone-number-input/phone-number-input-v2.d.ts +2 -1
- package/dist/components/phone-number-input/phone-number-input.d.ts +2 -1
- package/dist/components/phone-number-input/phone-number-input.stories.d.ts +12 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select-enhanced.d.ts +24 -0
- package/dist/components/select/select-v2.d.ts +27 -0
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.stories.d.ts +12 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/switch-v2.d.ts +8 -0
- package/dist/components/switch/switch.stories.d.ts +6 -0
- package/dist/components/table/partner-monthly-table.d.ts +5 -2
- package/dist/components/text-field/text-field-search.d.ts +2 -1
- package/dist/components/text-field/text-field.d.ts +1 -0
- package/dist/components/toast/Icons.d.ts +7 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/toast.d.ts +8 -0
- package/dist/components/toast/toast.stories.d.ts +12 -0
- package/dist/components/transaction-card/Dot.d.ts +6 -0
- package/dist/components/transaction-card/index.d.ts +1 -0
- package/dist/components/transaction-card/transaction-card.d.ts +16 -0
- package/dist/components/transaction-card/transaction-card.stories.d.ts +20 -0
- package/dist/components/uploader/Icons.d.ts +6 -0
- package/dist/components/uploader/uploadAndCropper.d.ts +13 -0
- package/dist/index.esm.js +1669 -536
- package/dist/index.js +1675 -534
- package/package.json +9 -3
- package/styles/index.css +7 -6
- 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/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.d.ts +0 -3
- package/dist/components/modal/modalImage.d.ts +0 -8
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mycause/ui",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-c10d3ebf",
|
|
4
4
|
"author": "Marc Porciuncula <marc@mycause.com.au>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -104,11 +104,14 @@
|
|
|
104
104
|
"i18n-iso-countries": "^4.3.1",
|
|
105
105
|
"js-cookie": "^2.2.1",
|
|
106
106
|
"libphonenumber-js": "^1.7.29",
|
|
107
|
+
"moment": "2.29.1",
|
|
108
|
+
"moment-timezone": "^0.5.45",
|
|
107
109
|
"nanoid": "^2.1.6",
|
|
108
110
|
"ramda": "^0.26.1",
|
|
109
111
|
"react-cropper": "^1.3.0",
|
|
110
|
-
"react-dates": "^21.
|
|
112
|
+
"react-dates": "^21.8.0",
|
|
111
113
|
"react-dropzone-uploader": "^2.11.0",
|
|
114
|
+
"react-toastify": "8.1.0",
|
|
112
115
|
"styled-jsx": "^3.2.1",
|
|
113
116
|
"use-media": "^1.4.0"
|
|
114
117
|
},
|
|
@@ -121,5 +124,8 @@
|
|
|
121
124
|
"files": [
|
|
122
125
|
"dist",
|
|
123
126
|
"styles"
|
|
124
|
-
]
|
|
127
|
+
],
|
|
128
|
+
"resolutions": {
|
|
129
|
+
"moment": "2.29.1"
|
|
130
|
+
}
|
|
125
131
|
}
|
package/styles/index.css
CHANGED
|
@@ -1668,12 +1668,9 @@ svg.mdc-button__icon {
|
|
|
1668
1668
|
position: absolute;
|
|
1669
1669
|
left: 9px; }
|
|
1670
1670
|
|
|
1671
|
-
.CalendarMonthGrid__vertical
|
|
1672
|
-
margin: 0 auto; }
|
|
1673
|
-
|
|
1671
|
+
.CalendarMonthGrid__vertical,
|
|
1674
1672
|
.CalendarMonthGrid__vertical_scrollable {
|
|
1675
|
-
margin: 0 auto;
|
|
1676
|
-
overflow-y: scroll; }
|
|
1673
|
+
margin: 0 auto; }
|
|
1677
1674
|
|
|
1678
1675
|
.CalendarMonthGrid_month__horizontal {
|
|
1679
1676
|
display: inline-block;
|
|
@@ -1696,6 +1693,9 @@ svg.mdc-button__icon {
|
|
|
1696
1693
|
.DayPickerNavigation__horizontal {
|
|
1697
1694
|
height: 0; }
|
|
1698
1695
|
|
|
1696
|
+
.DayPickerNavigation__verticalScrollable_prevNav {
|
|
1697
|
+
z-index: 1; }
|
|
1698
|
+
|
|
1699
1699
|
.DayPickerNavigation__verticalDefault {
|
|
1700
1700
|
position: absolute;
|
|
1701
1701
|
width: 100%;
|
|
@@ -1778,7 +1778,8 @@ svg.mdc-button__icon {
|
|
|
1778
1778
|
.DayPickerNavigation_nextButton__verticalDefault {
|
|
1779
1779
|
border-left: 0; }
|
|
1780
1780
|
|
|
1781
|
-
.DayPickerNavigation_nextButton__verticalScrollableDefault
|
|
1781
|
+
.DayPickerNavigation_nextButton__verticalScrollableDefault,
|
|
1782
|
+
.DayPickerNavigation_prevButton__verticalScrollableDefault {
|
|
1782
1783
|
width: 100%; }
|
|
1783
1784
|
|
|
1784
1785
|
.DayPickerNavigation_svg__horizontal {
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface ChooseCharityCardProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
buttonText?: string;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const ChooseCharityCard: ({ className, title, buttonText, onClick, }: ChooseCharityCardProps) => JSX.Element;
|
|
10
|
-
export default ChooseCharityCard;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import CenterDecorator from "../../utils/center-decorator";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
decorators: (typeof CenterDecorator)[];
|
|
6
|
-
component: ({ className, title, buttonText, onClick, }: import("./choose-charity-card").ChooseCharityCardProps) => JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const chooseCharityStory: {
|
|
10
|
-
(): JSX.Element;
|
|
11
|
-
story: {
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ChooseCharityCard } from "./choose-charity-card";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const Icons: {
|
|
3
|
-
dashboard: (props?: {}) => JSX.Element;
|
|
4
|
-
collapse: (props?: {}) => JSX.Element;
|
|
5
|
-
expand: () => JSX.Element;
|
|
6
|
-
donations: () => JSX.Element;
|
|
7
|
-
account: () => JSX.Element;
|
|
8
|
-
support: () => JSX.Element;
|
|
9
|
-
additional: () => JSX.Element;
|
|
10
|
-
};
|
|
11
|
-
export default Icons;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface GreenDashboardSidebarProps {
|
|
3
|
-
listMenu: Array<ItemMenu>;
|
|
4
|
-
noDashboard?: boolean;
|
|
5
|
-
noAccount?: boolean;
|
|
6
|
-
noContract?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare type ItemMenu = {
|
|
9
|
-
id: string;
|
|
10
|
-
icon: any;
|
|
11
|
-
label: string;
|
|
12
|
-
href?: string;
|
|
13
|
-
};
|
|
14
|
-
declare const GreenDashboardSidebar: ({ listMenu, noDashboard, noAccount, noContract, }: GreenDashboardSidebarProps) => JSX.Element;
|
|
15
|
-
export default GreenDashboardSidebar;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as GreenDashboardSidebar } from "./green-dashboard-sidebar";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface PartnerLineChartBlockProps {
|
|
3
|
-
chartData: {
|
|
4
|
-
current_year: Array<number>;
|
|
5
|
-
months_label: Array<string>;
|
|
6
|
-
requested_year: Array<number>;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
declare const PartnerLineChartBlock: ({ chartData }: PartnerLineChartBlockProps) => JSX.Element;
|
|
10
|
-
export default PartnerLineChartBlock;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface ModalImasgeProps {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
modalImageSrc: string;
|
|
5
|
-
toggleModal: (arg: boolean) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const ModalImage: ({ isOpen, modalImageSrc, toggleModal, }: ModalImasgeProps) => JSX.Element;
|
|
8
|
-
export default ModalImage;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface FrpInfomationProps {
|
|
3
|
-
amountOfweek: number;
|
|
4
|
-
donations: number;
|
|
5
|
-
daysToGo: number;
|
|
6
|
-
amountRaised: number;
|
|
7
|
-
amountGoal: number;
|
|
8
|
-
sqSize: number;
|
|
9
|
-
strokeWidth: number;
|
|
10
|
-
}
|
|
11
|
-
declare const FrpInfomation: ({ amountOfweek, donations, daysToGo, amountRaised, amountGoal, sqSize, strokeWidth, }: FrpInfomationProps) => JSX.Element;
|
|
12
|
-
export default FrpInfomation;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as MyAccountFrpPreview } from "./my-account-frp-archive";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface MyAccountFrpArchiveProps {
|
|
3
|
-
img?: string;
|
|
4
|
-
link?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
amountOfweek: number;
|
|
7
|
-
donations: number;
|
|
8
|
-
daysToGo: number;
|
|
9
|
-
amountRaised: number;
|
|
10
|
-
amountGoal: number;
|
|
11
|
-
sqSize: number;
|
|
12
|
-
strokeWidth: number;
|
|
13
|
-
}
|
|
14
|
-
declare const MyAccountFrpArchive: ({ img, link, title, amountGoal, amountOfweek, amountRaised, donations, sqSize, strokeWidth, daysToGo, }: MyAccountFrpArchiveProps) => JSX.Element;
|
|
15
|
-
export default MyAccountFrpArchive;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
decorators: ((...args: any) => any)[];
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const MyAccountFrpArchiveStory: {
|
|
8
|
-
(): JSX.Element;
|
|
9
|
-
story: {
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare const MyAccountFrpArchiveStoryV3: {
|
|
14
|
-
(): JSX.Element;
|
|
15
|
-
story: {
|
|
16
|
-
name: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export declare const MyAccountFrpArchiveStoryV2: {
|
|
20
|
-
(): JSX.Element;
|
|
21
|
-
story: {
|
|
22
|
-
name: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import CenterDecorator from "../../utils/center-decorator";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
decorators: (typeof CenterDecorator)[];
|
|
6
|
-
component: () => JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const progressbar: {
|
|
10
|
-
(): JSX.Element;
|
|
11
|
-
story: {
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Chart } from "./chart";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as StartFundraiseCard } from "./start-fundraise-card";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface StartFundraiseCardProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
buttonText?: string;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const StartFundraiseCard: ({ className, title, buttonText, onClick, }: StartFundraiseCardProps) => JSX.Element;
|
|
10
|
-
export default StartFundraiseCard;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import CenterDecorator from "../../utils/center-decorator";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
decorators: (typeof CenterDecorator)[];
|
|
6
|
-
component: ({ className, title, buttonText, onClick, }: import("./start-fundraise-card").StartFundraiseCardProps) => JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const startFundraiseStory: {
|
|
10
|
-
(): JSX.Element;
|
|
11
|
-
story: {
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
};
|