@mycause/ui 0.0.0-cfc1c766 → 0.0.0-cfc36711
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 +0 -15
- package/dist/components/campaign-of-month/campaign-of-month.d.ts +1 -2
- package/dist/components/campaign-of-month/campaign-of-month.stories.d.ts +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/line-chart/index.d.ts +2 -0
- package/dist/components/line-chart/partner-line-chart-block.d.ts +12 -0
- package/dist/components/line-chart/partner-line-chart-block.stories.d.ts +12 -0
- package/dist/components/line-chart/partner-line-chart.d.ts +3 -0
- package/dist/components/partner-monthly-donations/index.d.ts +1 -0
- package/dist/components/partner-monthly-donations/partner-monthly-donations.d.ts +8 -0
- package/dist/components/partner-monthly-donations/partner-monthly-donations.stories.d.ts +12 -0
- package/dist/components/partner-monthly-stats/index.d.ts +1 -0
- package/dist/components/partner-monthly-stats/partner-monthly-stats.d.ts +7 -0
- package/dist/components/partner-monthly-stats/partner-monthly-stats.stories.d.ts +12 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/partner-monthly-table.d.ts +15 -0
- package/dist/components/table/partner-monthly-table.stories.d.ts +18 -0
- package/dist/index.esm.js +323 -17314
- package/dist/index.js +327 -17314
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,7 +9,6 @@ export interface CampaignOfMonthProps {
|
|
|
9
9
|
goal?: number;
|
|
10
10
|
btnText?: string;
|
|
11
11
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
-
idBtn?: string;
|
|
13
12
|
}
|
|
14
|
-
declare const CampaignOfMonth: ({ className, title, text, imageUrl, rised, donation, goal, btnText, onClick,
|
|
13
|
+
declare const CampaignOfMonth: ({ className, title, text, imageUrl, rised, donation, goal, btnText, onClick, }: CampaignOfMonthProps) => JSX.Element;
|
|
15
14
|
export default CampaignOfMonth;
|
|
@@ -3,7 +3,7 @@ import CenterDecorator from "../../utils/center-decorator";
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
decorators: (typeof CenterDecorator)[];
|
|
6
|
-
component: ({ className, title, text, imageUrl, rised, donation, goal, btnText, onClick,
|
|
6
|
+
component: ({ className, title, text, imageUrl, rised, donation, goal, btnText, onClick, }: import("./campaign-of-month").CampaignOfMonthProps) => JSX.Element;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const campaignofmonth: {
|
|
@@ -40,4 +40,7 @@ export * from "./progressbar";
|
|
|
40
40
|
export * from "./start-campaign-card";
|
|
41
41
|
export * from "./nav";
|
|
42
42
|
export * from "./popup";
|
|
43
|
-
export * from "./
|
|
43
|
+
export * from "./line-chart";
|
|
44
|
+
export * from "./partner-monthly-donations";
|
|
45
|
+
export * from "./partner-monthly-stats";
|
|
46
|
+
export * from "./table";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface PartnerLineChartBlockProps {
|
|
3
|
+
currentYearData: Array<number>;
|
|
4
|
+
totalDonation: number;
|
|
5
|
+
chartData: {
|
|
6
|
+
current_year: Array<number>;
|
|
7
|
+
months_label: Array<string>;
|
|
8
|
+
requested_year: Array<number>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
declare const PartnerLineChartBlock: ({ currentYearData, totalDonation, chartData, }: PartnerLineChartBlockProps) => JSX.Element;
|
|
12
|
+
export default PartnerLineChartBlock;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 PartnertLineChartStories: {
|
|
8
|
+
(): JSX.Element;
|
|
9
|
+
story: {
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PartnerMonthlyDonations, } from "./partner-monthly-donations";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface PartnerMonthlyDonationsProps {
|
|
3
|
+
totalAmount?: number;
|
|
4
|
+
numberOfDonations?: number;
|
|
5
|
+
donationsLink?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const PartnerMonthlyDonations: ({ totalAmount, numberOfDonations, donationsLink, }: PartnerMonthlyDonationsProps) => JSX.Element;
|
|
8
|
+
export default PartnerMonthlyDonations;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 PartnerMonthlyStatsStories: {
|
|
8
|
+
(): JSX.Element;
|
|
9
|
+
story: {
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PartnerMonthlyStart } from "./partner-monthly-stats";
|
|
@@ -0,0 +1,12 @@
|
|
|
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 PartnerMonthlyStatsStories: {
|
|
8
|
+
(): JSX.Element;
|
|
9
|
+
story: {
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PartnerMonthlyTable } from "./partner-monthly-table";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type ColumnTableProps = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
align: "center" | "left" | "right";
|
|
6
|
+
rowPrefixIcon?: string;
|
|
7
|
+
renderCell: (item: any) => React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export interface PartnerMonthlyTableProps {
|
|
10
|
+
label?: string;
|
|
11
|
+
columns: Array<ColumnTableProps>;
|
|
12
|
+
data: Array<object>;
|
|
13
|
+
}
|
|
14
|
+
declare const PartnerMonthlyTable: ({ columns, label, data, }: PartnerMonthlyTableProps) => JSX.Element;
|
|
15
|
+
export default PartnerMonthlyTable;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 PartnerMonthlyTableStories: {
|
|
8
|
+
(): JSX.Element;
|
|
9
|
+
story: {
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const PartnerMonthlyTableStories2: {
|
|
14
|
+
(): JSX.Element;
|
|
15
|
+
story: {
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
};
|