@mycause/ui 0.0.0-c5c24c92 → 0.0.0-c6157afe
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 +4 -1
- package/dist/components/line-chart/index.d.ts +1 -0
- package/dist/components/line-chart/partner-line-chart-block.d.ts +9 -5
- package/dist/components/partner-monthly-stats/index.d.ts +1 -1
- package/dist/components/partner-monthly-stats/partner-monthly-stats.d.ts +1 -1
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/partner-monthly-table.d.ts +16 -0
- package/dist/components/table/partner-monthly-table.stories.d.ts +18 -0
- package/dist/components/text-field/text-field-search.d.ts +9 -0
- package/dist/index.esm.js +331 -17291
- package/dist/index.js +335 -17291
- package/package.json +2 -1
|
@@ -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";
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
interface PartnerLineChartBlockProps {
|
|
3
|
+
currentYearData: Array<number>;
|
|
4
|
+
totalDonation: string;
|
|
5
|
+
chartData: {
|
|
6
|
+
current_year: Array<number>;
|
|
7
|
+
months_label: Array<string>;
|
|
8
|
+
requested_year: Array<number>;
|
|
9
|
+
};
|
|
6
10
|
}
|
|
7
|
-
declare const PartnerLineChartBlock: ({ currentYearData, totalDonation, chartData, }:
|
|
11
|
+
declare const PartnerLineChartBlock: ({ currentYearData, totalDonation, chartData, }: PartnerLineChartBlockProps) => JSX.Element;
|
|
8
12
|
export default PartnerLineChartBlock;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as PartnerMonthlyStats } from "./partner-monthly-stats";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PartnerMonthlyTable } from "./partner-monthly-table";
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
columns: Array<ColumnTableProps>;
|
|
11
|
+
data: Array<object>;
|
|
12
|
+
title?: string;
|
|
13
|
+
tooltip?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const PartnerMonthlyTable: ({ columns, data, title, tooltip, }: PartnerMonthlyTableProps) => JSX.Element;
|
|
16
|
+
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface TextFieldSearchProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
onSubmit: () => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function TextFieldSearch({ value, onChange, onSubmit, placeholder, }: TextFieldSearchProps): JSX.Element;
|
|
9
|
+
export default TextFieldSearch;
|