@mycause/ui 0.18.5 → 0.18.7

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## 0.18.7
2
+
3
+ ###### Tus, 4 Feb 2024
4
+
5
+ - Phone number input, Enhanced Select
6
+ - create new component
7
+
8
+ ## 0.18.6
9
+
10
+ ###### Tus, 4 Feb 2024
11
+
12
+ - Phone number input
13
+ - add disabled prop
14
+
1
15
  ## 0.18.5
2
16
 
3
17
  ###### Mon, 26 Feb 2024
@@ -30,9 +30,3 @@ export declare const SingleDatePickerStory: {
30
30
  name: string;
31
31
  };
32
32
  };
33
- export declare const SingleDatePickerCustomHeaderStory: {
34
- (): JSX.Element;
35
- story: {
36
- name: string;
37
- };
38
- };
@@ -1,3 +1,2 @@
1
1
  export { default as DatePicker } from "./date-picker";
2
2
  export { default as SingleDatePicker } from "./single-date-picker";
3
- export { default as CustomHeaderSingleDatePicker, } from "./single-date-picker-custom-header";
@@ -47,6 +47,12 @@ export * from "./partner-chart-stats";
47
47
  export * from "./this-month-card";
48
48
  export * from "./partner-toggle-button";
49
49
  export * from "./footerV2";
50
+ export * from "./partner-monthly-donations";
51
+ export * from "./partner-monthly-stats";
52
+ export * from "./table";
53
+ export * from "./partner-chart-stats";
54
+ export * from "./this-month-card";
55
+ export * from "./partner-toggle-button";
50
56
  export * from "./my-account-start-fundraise-card";
51
57
  export * from "./my-account-choose-charity-card";
52
58
  export * from "./favorite-charity-item";
@@ -56,5 +62,3 @@ export * from "./my-account-stats-donated";
56
62
  export * from "./my-account-stats-raised";
57
63
  export * from "./input";
58
64
  export * from "./my-account-frp-closed";
59
- export * from "./transaction-card";
60
- export * from "./toast";
@@ -1,6 +1,6 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  interface InputDefaltProps {
3
- label?: string | React.ReactNode;
3
+ label?: string;
4
4
  required?: boolean;
5
5
  placeholder?: string;
6
6
  onChange?: (value: string) => void;
@@ -7,7 +7,6 @@ interface FrpInfomationProps {
7
7
  strokeWidth: number;
8
8
  closedDate?: string | undefined;
9
9
  customRow?: React.ReactNode;
10
- manageLink?: string;
11
10
  }
12
- declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, closedDate, customRow, manageLink, }: FrpInfomationProps) => JSX.Element;
11
+ declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, closedDate, customRow, }: FrpInfomationProps) => JSX.Element;
13
12
  export default FrpInfomation;
@@ -11,7 +11,6 @@ export interface MyAccountFrpClosedProps {
11
11
  frpColor?: string;
12
12
  closedDate?: string;
13
13
  customRow?: React.ReactNode;
14
- manageLink?: string;
15
14
  }
16
- declare const MyAccountFrpClosed: ({ img, link, title, amountGoal, amountRaised, donations, sqSize, strokeWidth, frpColor, closedDate, customRow, manageLink, }: MyAccountFrpClosedProps) => JSX.Element;
15
+ declare const MyAccountFrpClosed: ({ img, link, title, amountGoal, amountRaised, donations, sqSize, strokeWidth, frpColor, closedDate, customRow, }: MyAccountFrpClosedProps) => JSX.Element;
17
16
  export default MyAccountFrpClosed;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export interface MyAccountStatsRaisedProps {
3
3
  amount: number;
4
+ donations: number;
4
5
  campaigns: number;
5
6
  }
6
- declare const MyAccountStatsRaised: ({ amount, campaigns, }: MyAccountStatsRaisedProps) => JSX.Element;
7
+ declare const MyAccountStatsRaised: ({ amount, donations, campaigns, }: MyAccountStatsRaisedProps) => JSX.Element;
7
8
  export default MyAccountStatsRaised;
@@ -1,4 +1,3 @@
1
1
  export { default as Select } from "./select";
2
2
  export { default as SelectEnhanced } from "./select-enhanced";
3
3
  export { default as SelectHelperText } from "./select-helper-text";
4
- export { default as SelectV2 } from "./select-v2";
@@ -1,26 +1,23 @@
1
1
  import React from "react";
2
+ import { SelectProps as MDCSelectProps, SelectHelperTextProps } from "@material/react-select";
2
3
  export declare type SelectOption = {
3
4
  value: string;
4
5
  label?: string;
5
6
  disabled?: boolean;
6
7
  };
7
- export interface SelectProps {
8
+ export interface SelectProps extends Omit<MDCSelectProps, "onEnhancedChange" | "ref" | "children" | "options" | "outlined" | "helperText" | "dense"> {
8
9
  label?: string;
9
- value: string | number;
10
- onChange: (value: string) => void;
10
+ value: string;
11
+ onChange: (value: any) => void;
11
12
  externalLabel?: boolean;
12
13
  large?: boolean;
13
- options: Array<SelectOption>;
14
+ options: Array<string> | Array<SelectOption>;
14
15
  leadingIcon?: React.ReactElement;
15
- helperText?: string | null;
16
+ helperText?: string | React.ReactElement<SelectHelperTextProps> | null;
16
17
  isHelperTextPersistent?: boolean;
17
18
  noArrow?: boolean;
18
19
  color?: string;
19
- asteriskColor?: string;
20
- itemHoverColor?: string;
21
20
  error?: boolean | string;
22
- trailingIcon?: React.ReactElement;
23
- bgColor?: string;
24
21
  }
25
- declare const SelectV2: ({ options, value, onChange, color, itemHoverColor, noArrow, trailingIcon, bgColor, }: SelectProps) => JSX.Element;
22
+ declare const SelectV2: ({ label, value, onChange, helperText, isHelperTextPersistent, externalLabel, id, className, options, large, required, leadingIcon, noArrow, error, color, ...rest }: SelectProps) => JSX.Element;
26
23
  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, "ref" | "children" | "options" | "outlined" | "helperText" | "dense"> {
8
+ export interface SelectProps extends Omit<MDCSelectProps, "onEnhancedChange" | "ref" | "children" | "options" | "outlined" | "helperText" | "dense"> {
9
9
  label?: string;
10
10
  value: string;
11
11
  onChange: (e: React.FormEvent) => void;
@@ -16,9 +16,3 @@ export declare const SelectEnhancedStory: {
16
16
  name: string;
17
17
  };
18
18
  };
19
- export declare const SelectStoryV2: {
20
- (): JSX.Element;
21
- story: {
22
- name: string;
23
- };
24
- };