@mycause/ui 0.18.2 → 0.18.4
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 +7 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/components/date-picker/single-date-picker-custom-header.d.ts +0 -32
- package/dist/components/donate-card copy/donate-card.d.ts +0 -8
- package/dist/components/donate-card copy/donate-card.stories.d.ts +0 -14
- package/dist/components/donate-card copy/index.d.ts +0 -1
- package/dist/components/input/InputDefault.d.ts +0 -13
- package/dist/components/input/index.d.ts +0 -1
- package/dist/components/input/input.stories.d.ts +0 -24
- package/dist/components/phone-number-input/phone-number-input-v1.d.ts +0 -25
- package/dist/components/phone-number-input/phone-number-input-v2.d.ts +0 -19
- package/dist/components/select/select-enhanced.d.ts +0 -23
- package/dist/components/select/select-v2.d.ts +0 -26
- package/dist/components/transaction-card/Dot.d.ts +0 -6
- package/dist/components/transaction-card/donate-card.d.ts +0 -8
- package/dist/components/transaction-card/donate-card.stories.d.ts +0 -14
- package/dist/components/transaction-card/index.d.ts +0 -1
- package/dist/components/transaction-card/transaction-card.d.ts +0 -13
- package/dist/components/transaction-card/transaction-card.stories.d.ts +0 -14
- package/dist/components/transaction-card/transaction-cardstories.d.ts +0 -14
package/CHANGELOG.md
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -34934,9 +34934,9 @@ var MyAccountStatsRaised = function MyAccountStatsRaised(_ref) {
|
|
|
34934
34934
|
className: cls$t.number
|
|
34935
34935
|
}, formatterMoney.format(amount).replace("$", "$ ")), React.createElement("p", {
|
|
34936
34936
|
className: cls$t.text
|
|
34937
|
-
}, "
|
|
34937
|
+
}, "You have created ", React.createElement("br", null), " ", React.createElement("span", {
|
|
34938
34938
|
className: cls$t.num
|
|
34939
|
-
}, campaigns), " campaigns")));
|
|
34939
|
+
}, campaigns), " ", "campaigns")));
|
|
34940
34940
|
};
|
|
34941
34941
|
|
|
34942
34942
|
MyAccountStatsRaised.propTypes = {
|
package/dist/index.js
CHANGED
|
@@ -34948,9 +34948,9 @@ var MyAccountStatsRaised = function MyAccountStatsRaised(_ref) {
|
|
|
34948
34948
|
className: cls$t.number
|
|
34949
34949
|
}, formatterMoney.format(amount).replace("$", "$ ")), React__default.createElement("p", {
|
|
34950
34950
|
className: cls$t.text
|
|
34951
|
-
}, "
|
|
34951
|
+
}, "You have created ", React__default.createElement("br", null), " ", React__default.createElement("span", {
|
|
34952
34952
|
className: cls$t.num
|
|
34953
|
-
}, campaigns), " campaigns")));
|
|
34953
|
+
}, campaigns), " ", "campaigns")));
|
|
34954
34954
|
};
|
|
34955
34955
|
|
|
34956
34956
|
MyAccountStatsRaised.propTypes = {
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import moment from "moment";
|
|
3
|
-
export interface DatePickerProps {
|
|
4
|
-
id: string;
|
|
5
|
-
date: moment.Moment | null;
|
|
6
|
-
onDateChange: (date: moment.Moment | null) => void;
|
|
7
|
-
onFocusChange: (arg: boolean | null) => void;
|
|
8
|
-
focused: boolean | null;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
color?: string;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
numberOfMonths?: number;
|
|
14
|
-
inputIconPosition?: "before" | "after";
|
|
15
|
-
orientation?: "horizontal" | "vertical";
|
|
16
|
-
customInputIcon?: React.ReactElement<React.HTMLProps<HTMLOrSVGElement>>;
|
|
17
|
-
customCloseIcon?: React.ReactElement<React.HTMLProps<HTMLOrSVGElement>>;
|
|
18
|
-
displayFormat?: string;
|
|
19
|
-
error?: boolean;
|
|
20
|
-
label?: string;
|
|
21
|
-
width?: string;
|
|
22
|
-
isOutsideRange?: () => boolean;
|
|
23
|
-
renderCalendarInfo?: () => string | JSX.Element;
|
|
24
|
-
calendarInfoPosition?: "before" | "after" | "top" | "bottom";
|
|
25
|
-
navPrev?: string | JSX.Element;
|
|
26
|
-
navNext?: string | JSX.Element;
|
|
27
|
-
showDefaultInputIcon?: boolean;
|
|
28
|
-
startYear?: number;
|
|
29
|
-
endYear?: number;
|
|
30
|
-
}
|
|
31
|
-
declare const CustomHeaderSingleDatePicker: ({ width, color, onDateChange, onFocusChange, numberOfMonths, error, label, focused, startYear, endYear, ...rest }: DatePickerProps) => JSX.Element;
|
|
32
|
-
export default CustomHeaderSingleDatePicker;
|
|
@@ -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, description, }: import("./donate-card").DonateCardProps) => JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const donatecard: {
|
|
10
|
-
(): JSX.Element;
|
|
11
|
-
story: {
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as DonateCard } from "./donate-card";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface InputDefaltProps {
|
|
3
|
-
label?: string | React.ReactNode;
|
|
4
|
-
required?: boolean;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
onChange?: (value: string) => void;
|
|
7
|
-
value?: string | Array<string> | number;
|
|
8
|
-
error?: string | null | boolean;
|
|
9
|
-
disable?: boolean;
|
|
10
|
-
name?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const Input: ({ label, required, placeholder, value, onChange, error, disable, name, }: InputDefaltProps) => JSX.Element;
|
|
13
|
-
export default Input;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Input } from "./InputDefault";
|
|
@@ -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 InputExample: {
|
|
8
|
-
(): JSX.Element;
|
|
9
|
-
story: {
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare const InputV2: {
|
|
14
|
-
(): JSX.Element;
|
|
15
|
-
story: {
|
|
16
|
-
name: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export declare const InputV3: {
|
|
20
|
-
(): JSX.Element;
|
|
21
|
-
story: {
|
|
22
|
-
name: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CountryCode } from "libphonenumber-js";
|
|
3
|
-
declare type PhoneNumberInputProps = {
|
|
4
|
-
values: {
|
|
5
|
-
number: string;
|
|
6
|
-
countryCallingCode: string;
|
|
7
|
-
country: string;
|
|
8
|
-
};
|
|
9
|
-
names?: {
|
|
10
|
-
number: string;
|
|
11
|
-
countryCallingCode: string;
|
|
12
|
-
country: string;
|
|
13
|
-
};
|
|
14
|
-
onChange: (value: string, name: string) => void;
|
|
15
|
-
label?: React.ReactNode;
|
|
16
|
-
error?: string | null;
|
|
17
|
-
onBlur?: (e: React.FocusEvent) => void;
|
|
18
|
-
helperText?: React.ReactNode;
|
|
19
|
-
required?: boolean;
|
|
20
|
-
defaultCountry?: CountryCode;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
color?: string;
|
|
23
|
-
};
|
|
24
|
-
declare function PhoneNumberInputV1({ onChange, values, names, error, onBlur, helperText, label, required, defaultCountry, placeholder, color, }: PhoneNumberInputProps): JSX.Element;
|
|
25
|
-
export default PhoneNumberInputV1;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CountryCode } from "libphonenumber-js";
|
|
3
|
-
declare type PhoneInputProps = {
|
|
4
|
-
values: {
|
|
5
|
-
number: string;
|
|
6
|
-
countryCallingCode: string;
|
|
7
|
-
country: string;
|
|
8
|
-
};
|
|
9
|
-
onChange: (value: string, name: string) => void;
|
|
10
|
-
label?: React.ReactNode;
|
|
11
|
-
error?: string | null;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
defaultCountry?: CountryCode;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
color?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
};
|
|
18
|
-
declare function PhoneInput({ values, onChange, defaultCountry, label, required, placeholder, error, name, }: PhoneInputProps): JSX.Element;
|
|
19
|
-
export default PhoneInput;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { SelectProps as MDCSelectProps, SelectHelperTextProps } from "@material/react-select";
|
|
3
|
-
export declare type SelectOption = {
|
|
4
|
-
value: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export interface SelectProps extends Omit<MDCSelectProps, "onEnhancedChange" | "ref" | "children" | "options" | "outlined" | "helperText" | "dense"> {
|
|
9
|
-
label?: string;
|
|
10
|
-
value: string;
|
|
11
|
-
onChange: (value: any) => void;
|
|
12
|
-
externalLabel?: boolean;
|
|
13
|
-
large?: boolean;
|
|
14
|
-
options: Array<string> | Array<SelectOption>;
|
|
15
|
-
leadingIcon?: React.ReactElement;
|
|
16
|
-
helperText?: string | React.ReactElement<SelectHelperTextProps> | null;
|
|
17
|
-
isHelperTextPersistent?: boolean;
|
|
18
|
-
noArrow?: boolean;
|
|
19
|
-
color?: string;
|
|
20
|
-
error?: boolean | string;
|
|
21
|
-
}
|
|
22
|
-
declare const SelectV2: ({ label, value, onChange, helperText, isHelperTextPersistent, externalLabel, id, className, options, large, required, leadingIcon, noArrow, error, color, ...rest }: SelectProps) => JSX.Element;
|
|
23
|
-
export default SelectV2;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare type SelectOption = {
|
|
3
|
-
value: string;
|
|
4
|
-
label?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export interface SelectProps {
|
|
8
|
-
label?: string;
|
|
9
|
-
value: string | number;
|
|
10
|
-
onChange: (value: string) => void;
|
|
11
|
-
externalLabel?: boolean;
|
|
12
|
-
large?: boolean;
|
|
13
|
-
options: Array<SelectOption>;
|
|
14
|
-
leadingIcon?: React.ReactElement;
|
|
15
|
-
helperText?: string | null;
|
|
16
|
-
isHelperTextPersistent?: boolean;
|
|
17
|
-
noArrow?: boolean;
|
|
18
|
-
color?: string;
|
|
19
|
-
asteriskColor?: string;
|
|
20
|
-
itemHoverColor?: string;
|
|
21
|
-
error?: boolean | string;
|
|
22
|
-
trailingIcon?: React.ReactElement;
|
|
23
|
-
bgColor?: string;
|
|
24
|
-
}
|
|
25
|
-
declare const SelectV2: ({ options, value, onChange, color, itemHoverColor, noArrow, trailingIcon, bgColor, }: SelectProps) => JSX.Element;
|
|
26
|
-
export default SelectV2;
|
|
@@ -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, description, }: import("./transaction-card").DonateCardProps) => JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const donatecard: {
|
|
10
|
-
(): JSX.Element;
|
|
11
|
-
story: {
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TransactionCard } from "./transaction-card";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface TransactionCardProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
amount?: string;
|
|
5
|
-
recipient?: string;
|
|
6
|
-
receiptNo?: string;
|
|
7
|
-
details?: string;
|
|
8
|
-
tax?: string;
|
|
9
|
-
date?: string;
|
|
10
|
-
action?: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
declare const TransactionCard: ({ className, amount, recipient, receiptNo, details, tax, date, action, }: TransactionCardProps) => JSX.Element;
|
|
13
|
-
export default TransactionCard;
|
|
@@ -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, amount, recipient, receiptNo, details, tax, date, action, }: import("./transaction-card").TransactionCardProps) => JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const TransactionCardStory: {
|
|
10
|
-
(): JSX.Element;
|
|
11
|
-
story: {
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -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, description, }: import("./transaction-card").DonateCardProps) => JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const donatecard: {
|
|
10
|
-
(): JSX.Element;
|
|
11
|
-
story: {
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
};
|