@mycause/ui 0.18.2 → 0.18.5
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 +16 -1
- package/dist/components/date-picker/date-picker.stories.d.ts +6 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/field-helpers/field-label.d.ts +2 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/modal/modal.stories.d.ts +2 -2
- package/dist/components/phone-number-input/index.d.ts +2 -0
- package/dist/components/phone-number-input/phone-number-input.stories.d.ts +18 -0
- package/dist/components/select/SelectV2.d.ts +24 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.d.ts +4 -2
- package/dist/components/select/select.stories.d.ts +12 -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/transaction-card.d.ts +2 -1
- package/dist/components/transaction-card/transaction-card.stories.d.ts +1 -1
- package/dist/index.esm.js +25337 -24382
- package/dist/index.js +25340 -24377
- package/package.json +2 -1
- 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/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/transaction-cardstories.d.ts +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
## 0.18.
|
|
1
|
+
## 0.18.5
|
|
2
|
+
|
|
3
|
+
###### Mon, 26 Feb 2024
|
|
4
|
+
|
|
5
|
+
- Input, Toast, Phone number input V2
|
|
6
|
+
- create new component
|
|
7
|
+
- Select
|
|
8
|
+
- Add asteriskColor, customTrailingIcon and onEnhancedChange props
|
|
9
|
+
|
|
10
|
+
## 0.18.3
|
|
11
|
+
|
|
12
|
+
###### Tues, 23 Jan 2024
|
|
13
|
+
|
|
14
|
+
- Update stats block
|
|
15
|
+
|
|
16
|
+
## 0.18.2
|
|
2
17
|
|
|
3
18
|
###### Mon, 22 Jan 2024
|
|
4
19
|
|
|
@@ -3,6 +3,7 @@ interface FieldLabelProps extends React.HTMLProps<HTMLLabelElement> {
|
|
|
3
3
|
large?: boolean;
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
required?: boolean;
|
|
6
|
+
asteriskColor?: string;
|
|
6
7
|
}
|
|
7
|
-
declare function FieldLabel({ large, className, children, required, ...rest }: FieldLabelProps): JSX.Element;
|
|
8
|
+
declare function FieldLabel({ large, className, children, required, asteriskColor, ...rest }: FieldLabelProps): JSX.Element;
|
|
8
9
|
export default FieldLabel;
|
|
@@ -54,4 +54,7 @@ export * from "./my-account-sidebar";
|
|
|
54
54
|
export * from "./my-account-frp-preview";
|
|
55
55
|
export * from "./my-account-stats-donated";
|
|
56
56
|
export * from "./my-account-stats-raised";
|
|
57
|
+
export * from "./input";
|
|
57
58
|
export * from "./my-account-frp-closed";
|
|
59
|
+
export * from "./transaction-card";
|
|
60
|
+
export * from "./toast";
|
|
@@ -29,13 +29,13 @@ export declare const ModalStoriesMinimal: {
|
|
|
29
29
|
name: string;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
export declare const
|
|
32
|
+
export declare const ModalStoriesImage: {
|
|
33
33
|
(): JSX.Element;
|
|
34
34
|
story: {
|
|
35
35
|
name: string;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
export declare const
|
|
38
|
+
export declare const ModalConfirmation: {
|
|
39
39
|
(): JSX.Element;
|
|
40
40
|
story: {
|
|
41
41
|
name: string;
|
|
@@ -11,3 +11,21 @@ export declare const PhoneNumberInputStory: {
|
|
|
11
11
|
name: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
export declare const PhoneInputStory: {
|
|
15
|
+
(): JSX.Element;
|
|
16
|
+
story: {
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const PhoneNumberInputV2: {
|
|
21
|
+
(): JSX.Element;
|
|
22
|
+
story: {
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const PhoneNumberInputStoryV1: {
|
|
27
|
+
(): JSX.Element;
|
|
28
|
+
story: {
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
10
|
+
onChange: (e: React.FormEvent) => 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
|
+
}
|
|
23
|
+
declare const SelectV2: ({ options, value, onChange, color, itemHoverColor, noArrow, }: SelectProps) => JSX.Element;
|
|
24
|
+
export default SelectV2;
|
|
@@ -5,7 +5,7 @@ export declare type SelectOption = {
|
|
|
5
5
|
label?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export interface SelectProps extends Omit<MDCSelectProps, "
|
|
8
|
+
export interface SelectProps extends Omit<MDCSelectProps, "ref" | "children" | "options" | "outlined" | "helperText" | "dense"> {
|
|
9
9
|
label?: string;
|
|
10
10
|
value: string;
|
|
11
11
|
onChange: (e: React.FormEvent) => void;
|
|
@@ -17,7 +17,9 @@ export interface SelectProps extends Omit<MDCSelectProps, "onEnhancedChange" | "
|
|
|
17
17
|
isHelperTextPersistent?: boolean;
|
|
18
18
|
noArrow?: boolean;
|
|
19
19
|
color?: string;
|
|
20
|
+
asteriskColor?: string;
|
|
20
21
|
error?: boolean | string;
|
|
22
|
+
customTrailingIcon?: boolean;
|
|
21
23
|
}
|
|
22
|
-
declare const Select: ({ label, value, onChange, helperText, isHelperTextPersistent, externalLabel, id, className, options, large, required, leadingIcon, noArrow, error, color, ...rest }: SelectProps) => JSX.Element;
|
|
24
|
+
declare const Select: ({ label, value, onChange, helperText, isHelperTextPersistent, externalLabel, id, className, options, large, required, leadingIcon, noArrow, error, color, asteriskColor, customTrailingIcon, ...rest }: SelectProps) => JSX.Element;
|
|
23
25
|
export default Select;
|
|
@@ -10,3 +10,15 @@ export declare const SelectStory: {
|
|
|
10
10
|
name: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
+
export declare const SelectEnhancedStory: {
|
|
14
|
+
(): JSX.Element;
|
|
15
|
+
story: {
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const SelectStoryV2: {
|
|
20
|
+
(): JSX.Element;
|
|
21
|
+
story: {
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toast } from "./toast";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ToastContainerProps } from "react-toastify";
|
|
3
|
+
import "react-toastify/dist/ReactToastify.css";
|
|
4
|
+
export interface ToastProps extends ToastContainerProps {
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function Toast({ ...props }: ToastProps): JSX.Element;
|
|
8
|
+
export default Toast;
|
|
@@ -8,6 +8,7 @@ export interface TransactionCardProps {
|
|
|
8
8
|
tax?: string;
|
|
9
9
|
date?: string;
|
|
10
10
|
action?: React.ReactNode;
|
|
11
|
+
onClick?: () => void;
|
|
11
12
|
}
|
|
12
|
-
declare const TransactionCard: ({ className, amount, recipient, receiptNo, details, tax, date, action, }: TransactionCardProps) => JSX.Element;
|
|
13
|
+
declare const TransactionCard: ({ className, amount, recipient, receiptNo, details, tax, date, action, onClick, }: TransactionCardProps) => JSX.Element;
|
|
13
14
|
export default TransactionCard;
|
|
@@ -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, amount, recipient, receiptNo, details, tax, date, action, }: import("./transaction-card").TransactionCardProps) => JSX.Element;
|
|
6
|
+
component: ({ className, amount, recipient, receiptNo, details, tax, date, action, onClick, }: import("./transaction-card").TransactionCardProps) => JSX.Element;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
9
9
|
export declare const TransactionCardStory: {
|