@mycause/ui 0.0.0-c18e2c1a → 0.0.0-c1c55cec

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.
Files changed (33) hide show
  1. package/dist/components/button-select/button-select-exhanced.d.ts +23 -0
  2. package/dist/components/button-select/button-select.stories.d.ts +6 -0
  3. package/dist/components/button-select/index.d.ts +1 -0
  4. package/dist/components/chips/chip.d.ts +0 -3
  5. package/dist/components/collapse/icons.d.ts +3 -4
  6. package/dist/components/date-picker/single-date-picker-custom-header.d.ts +2 -2
  7. package/dist/components/date-picker/single-date-picker.d.ts +2 -2
  8. package/dist/components/icon/material-icon.d.ts +0 -5
  9. package/dist/components/index.d.ts +2 -2
  10. package/dist/components/input-social/Icons.d.ts +4 -1
  11. package/dist/components/layout/flex.d.ts +0 -9
  12. package/dist/components/layout/stack.d.ts +1 -8
  13. package/dist/components/login/login.d.ts +4 -1
  14. package/dist/components/modal/modal.stories.d.ts +2 -2
  15. package/dist/components/my-account-frp-closed/frp-closed-img.d.ts +1 -2
  16. package/dist/components/my-account-frp-closed/frp-information.d.ts +1 -1
  17. package/dist/components/my-account-frp-preview/Icon.d.ts +1 -1
  18. package/dist/components/my-account-frp-preview/frp-preview-img.d.ts +1 -1
  19. package/dist/components/my-account-sidebar/Icon.d.ts +11 -11
  20. package/dist/components/my-account-sidebar/my-account-sidebar.d.ts +1 -1
  21. package/dist/components/select/select.stories.d.ts +0 -6
  22. package/dist/components/spinner/spinner.d.ts +1 -1
  23. package/dist/components/toast/Icons.d.ts +3 -3
  24. package/dist/donation.esm.js +616 -411
  25. package/dist/donation.js +615 -409
  26. package/dist/index.css +1 -1
  27. package/dist/index.css.map +1 -1
  28. package/dist/index.esm.css +1 -1
  29. package/dist/index.esm.css.map +1 -1
  30. package/dist/index.esm.js +937 -738
  31. package/dist/index.js +937 -737
  32. package/package.json +3 -3
  33. package/dist/components/select/select-orange.d.ts +0 -14
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ export interface SelectItem {
3
+ icon?: JSX.Element;
4
+ label: string;
5
+ condition?: boolean;
6
+ active?: boolean;
7
+ handleClick?: () => void;
8
+ }
9
+ export interface SelectOrangeProps {
10
+ classname?: string;
11
+ title?: string;
12
+ selectItems: Array<SelectItem>;
13
+ width?: string;
14
+ buttonWidth?: string;
15
+ isScroll?: boolean;
16
+ align?: string;
17
+ noArrow?: boolean;
18
+ buttonColor?: string;
19
+ color?: string;
20
+ autoOpen?: boolean;
21
+ }
22
+ declare const ButtonSelectOrange: ({ classname, title, selectItems, width, buttonWidth, isScroll, align, noArrow, buttonColor, color, autoOpen, }: SelectOrangeProps) => React.JSX.Element;
23
+ export default ButtonSelectOrange;
@@ -11,3 +11,9 @@ export declare const ButtonSelectStories: {
11
11
  name: string;
12
12
  };
13
13
  };
14
+ export declare const SelectOrangeStory: {
15
+ (): React.JSX.Element;
16
+ story: {
17
+ name: string;
18
+ };
19
+ };
@@ -1 +1,2 @@
1
1
  export { default as ButtonSelect } from "./button-select";
2
+ export { default as ButtonSelectExhanced } from "./button-select-exhanced";
@@ -6,7 +6,4 @@ export interface ChipProps extends Omit<MDCChipProps, "ref" | "initRipple" | "le
6
6
  trailingIcon?: React.ReactElement<IconProps>;
7
7
  }
8
8
  declare function Chip({ className, leadingIcon, trailingIcon, ...props }: ChipProps): React.JSX.Element;
9
- declare namespace Chip {
10
- var defaultProps: Partial<Pick<MDCChipProps, "label" | "selected" | "id" | "onClick" | "onTransitionEnd" | "trailingIcon" | "handleSelect" | "leadingIcon" | "handleRemove" | "handleInteraction" | "handleTrailingIconInteraction" | "chipCheckmark" | "shouldRemoveOnTrailingIconClick"> & import("@material/react-ripple").RippledComponentProps<HTMLDivElement>> | undefined;
11
- }
12
9
  export default Chip;
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- export declare const TrashCanIcon: (props: any) => React.JSX.Element;
3
- export declare const ChevronDownIcon: (props: any) => React.JSX.Element;
4
- export declare const ChevronUpIcon: (props: any) => React.JSX.Element;
5
- export declare const CloseIcon: (props: any) => React.JSX.Element;
2
+ export declare const TrashCanIcon: (props: Record<string, unknown>) => React.JSX.Element;
3
+ export declare const ChevronDownIcon: () => React.JSX.Element;
4
+ export declare const ChevronUpIcon: () => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import moment from "moment";
2
+ import moment, { Moment } from "moment";
3
3
  export interface DatePickerProps {
4
4
  id: string;
5
5
  date: moment.Moment | null;
@@ -19,7 +19,7 @@ export interface DatePickerProps {
19
19
  error?: boolean;
20
20
  label?: string;
21
21
  width?: string;
22
- isOutsideRange?: (day: any) => boolean;
22
+ isOutsideRange?: (day: Moment) => boolean;
23
23
  renderCalendarInfo?: () => string | JSX.Element;
24
24
  calendarInfoPosition?: "before" | "after" | "top" | "bottom";
25
25
  navPrev?: string | JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import moment from "moment";
2
+ import moment, { Moment } from "moment";
3
3
  export interface DatePickerProps {
4
4
  id: string;
5
5
  date: moment.Moment | null;
@@ -19,7 +19,7 @@ export interface DatePickerProps {
19
19
  error?: boolean;
20
20
  label?: string;
21
21
  width?: string;
22
- isOutsideRange?: (day: any) => boolean;
22
+ isOutsideRange?: (day: Moment) => boolean;
23
23
  showDefaultInputIcon?: boolean;
24
24
  }
25
25
  declare const CustomSingleDatePicker: ({ width, color, onDateChange, onFocusChange, numberOfMonths, error, label, focused, required, id, ...rest }: DatePickerProps) => React.JSX.Element;
@@ -6,9 +6,4 @@ export interface MaterialIconProps extends Omit<React.HTMLProps<HTMLOrSVGElement
6
6
  size?: string;
7
7
  }
8
8
  declare function MaterialIcon({ icon, iconSet, className, size, ...rest }: MaterialIconProps): React.JSX.Element;
9
- declare namespace MaterialIcon {
10
- var defaultProps: {
11
- iconSet: string;
12
- };
13
- }
14
9
  export default MaterialIcon;
@@ -46,8 +46,6 @@ export * from "./partner-chart-stats";
46
46
  export * from "./this-month-card";
47
47
  export * from "./partner-toggle-button";
48
48
  export * from "./footerV2";
49
- export * from "./input";
50
- export * from "./toast";
51
49
  export * from "./my-account-start-fundraise-card";
52
50
  export * from "./my-account-choose-charity-card";
53
51
  export * from "./favorite-charity-item";
@@ -55,8 +53,10 @@ export * from "./my-account-sidebar";
55
53
  export * from "./my-account-frp-preview";
56
54
  export * from "./my-account-stats-donated";
57
55
  export * from "./my-account-stats-raised";
56
+ export * from "./input";
58
57
  export * from "./my-account-frp-closed";
59
58
  export * from "./transaction-card";
59
+ export * from "./toast";
60
60
  export * from "./input-social";
61
61
  export * from "./charity-tags-filter-button";
62
62
  export * from "./collapse";
@@ -1,5 +1,8 @@
1
1
  import React from "react";
2
+ export interface PropHTML {
3
+ [key: string]: string;
4
+ }
2
5
  declare const Icons: {
3
- facebook: (props: any) => React.JSX.Element;
6
+ Facebook: (props: PropHTML) => React.JSX.Element;
4
7
  };
5
8
  export default Icons;
@@ -13,13 +13,4 @@ export interface FlexProps extends Omit<BoxProps, "wrap"> {
13
13
  children?: React.ReactNode;
14
14
  }
15
15
  declare function Flex({ direction, justify, align, reverse, wrap, center, className, children, ...rest }: FlexProps): React.JSX.Element;
16
- declare namespace Flex {
17
- var defaultProps: {
18
- direction: string;
19
- justify: string;
20
- align: string;
21
- reverse: boolean;
22
- wrap: boolean;
23
- };
24
- }
25
16
  export default Flex;
@@ -3,14 +3,7 @@ import { FlexProps } from "./flex";
3
3
  interface StackProps extends FlexProps {
4
4
  horizontal?: boolean;
5
5
  vertical?: boolean;
6
- gap: string;
6
+ gap?: string;
7
7
  }
8
8
  declare function Stack({ gap, direction, reverse, className, children, ...rest }: StackProps): React.JSX.Element;
9
- declare namespace Stack {
10
- var defaultProps: {
11
- gap: string;
12
- direction: string;
13
- reverse: boolean;
14
- };
15
- }
16
9
  export default Stack;
@@ -4,10 +4,13 @@ export declare const ENV_TEST = "test";
4
4
  export declare const ENV_DEV = "dev";
5
5
  export declare const getAccountLink: (env: string) => "https://account-dev.mycause.com.au" | "https://account-test.mycause.com.au" | "https://account.mycause.com.au";
6
6
  export declare const getMycauseLink: (env: string) => "https://dev.mycause.com.au" | "https://aws-test.mycause.com.au" | "https://www.mycause.com.au";
7
+ export interface Param {
8
+ [key: string]: string | number | boolean;
9
+ }
7
10
  export interface LoginProps {
8
11
  id?: string;
9
12
  className?: string;
10
- params?: any;
13
+ params?: Param;
11
14
  env?: string;
12
15
  loggedInCallBack?: () => void;
13
16
  }
@@ -29,13 +29,13 @@ export declare const ModalStoriesMinimal: {
29
29
  name: string;
30
30
  };
31
31
  };
32
- export declare const ModalConfirmation: {
32
+ export declare const ModalStoriesImage: {
33
33
  (): React.JSX.Element;
34
34
  story: {
35
35
  name: string;
36
36
  };
37
37
  };
38
- export declare const ModalStoriesImage: {
38
+ export declare const ModalConfirmation: {
39
39
  (): React.JSX.Element;
40
40
  story: {
41
41
  name: string;
@@ -1,9 +1,8 @@
1
1
  import React from "react";
2
2
  export interface FrpClosedImgProps {
3
3
  img?: string;
4
- link?: string;
5
4
  title?: string;
6
5
  frpColor?: string;
7
6
  }
8
- declare const FrpClosedImg: ({ img, link, title, frpColor }: FrpClosedImgProps) => React.JSX.Element;
7
+ declare const FrpClosedImg: ({ img, title, frpColor }: FrpClosedImgProps) => React.JSX.Element;
9
8
  export default FrpClosedImg;
@@ -11,5 +11,5 @@ interface FrpInfomationProps {
11
11
  thankLink?: string;
12
12
  handleCertificateMemento?: () => void;
13
13
  }
14
- declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, closedDate, customRow, manageLink, thankLink, handleCertificateMemento, }: FrpInfomationProps) => React.JSX.Element;
14
+ declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, closedDate, customRow, thankLink, handleCertificateMemento, }: FrpInfomationProps) => React.JSX.Element;
15
15
  export default FrpInfomation;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  declare const Icons: {
3
- arrowNext: () => React.JSX.Element;
3
+ ArrowNext: () => React.JSX.Element;
4
4
  };
5
5
  export default Icons;
@@ -5,5 +5,5 @@ export interface FrpPreviewImgProps {
5
5
  title?: string;
6
6
  frpColor?: string;
7
7
  }
8
- declare const FrpPreviewImg: ({ img, link, title, frpColor }: FrpPreviewImgProps) => React.JSX.Element;
8
+ declare const FrpPreviewImg: ({ img, title, frpColor }: FrpPreviewImgProps) => React.JSX.Element;
9
9
  export default FrpPreviewImg;
@@ -1,15 +1,15 @@
1
1
  import React from "react";
2
2
  declare const Icons: {
3
- dashboard: (props?: {}) => React.JSX.Element;
4
- collapse: (props?: {}) => React.JSX.Element;
5
- expand: () => React.JSX.Element;
6
- donations: () => React.JSX.Element;
7
- account: () => React.JSX.Element;
8
- support: () => React.JSX.Element;
9
- additional: () => React.JSX.Element;
10
- minus: () => React.JSX.Element;
11
- dot: () => React.JSX.Element;
12
- menu: () => React.JSX.Element;
13
- close: () => React.JSX.Element;
3
+ Dashboard: () => React.JSX.Element;
4
+ Collapse: () => React.JSX.Element;
5
+ Expand: () => React.JSX.Element;
6
+ Donations: () => React.JSX.Element;
7
+ Account: () => React.JSX.Element;
8
+ Support: () => React.JSX.Element;
9
+ Additional: () => React.JSX.Element;
10
+ Minus: () => React.JSX.Element;
11
+ Dot: () => React.JSX.Element;
12
+ Menu: () => React.JSX.Element;
13
+ Close: () => React.JSX.Element;
14
14
  };
15
15
  export default Icons;
@@ -10,7 +10,7 @@ export interface MyAccountSidebarProps {
10
10
  }
11
11
  type ItemMenu = {
12
12
  id: string;
13
- icon?: any;
13
+ icon?: JSX.Element;
14
14
  label: string;
15
15
  href?: string;
16
16
  items?: Array<ItemMenu>;
@@ -22,9 +22,3 @@ export declare const SelectEnhancedStory: {
22
22
  name: string;
23
23
  };
24
24
  };
25
- export declare const SelectOrangeStory: {
26
- (): React.JSX.Element;
27
- story: {
28
- name: string;
29
- };
30
- };
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export interface SpinnerProps {
3
3
  id?: string;
4
4
  className?: string;
5
- style?: any;
5
+ style?: object;
6
6
  type?: "default" | "orange";
7
7
  }
8
8
  declare const Spinner: ({ id, className, style, type, ...rest }: SpinnerProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const Icons: {
3
- close: (props: any) => React.JSX.Element;
4
- error: (props: any) => React.JSX.Element;
5
- warning: () => React.JSX.Element;
3
+ Close: () => React.JSX.Element;
4
+ Error: () => React.JSX.Element;
5
+ Warning: () => React.JSX.Element;
6
6
  };
7
7
  export default Icons;