@mycause/ui 1.0.0 → 1.0.2

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.
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface FilterIconProps {
3
+ color?: string;
4
+ }
5
+ export declare function FilterIcon(props: FilterIconProps): React.JSX.Element;
6
+ export {};
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ export type CharityTagsSelected = {
3
+ locations: Array<string>;
4
+ categories: Array<number>;
5
+ };
6
+ export interface CharityTagsFilterButtonProps {
7
+ btnIcon?: React.ReactNode;
8
+ btnText?: React.ReactNode;
9
+ states: Array<{
10
+ value: string | number;
11
+ label: string;
12
+ }>;
13
+ categories: Array<{
14
+ id: number | string;
15
+ name: string;
16
+ }>;
17
+ onChange: (tagSelected: CharityTagsSelected) => void;
18
+ className?: string;
19
+ classNameBtn?: string;
20
+ buttonStyle?: object;
21
+ activeButtonColor?: string;
22
+ classNameFilterLayout?: string;
23
+ checkBoxStyle?: {
24
+ foreground: string;
25
+ background: string;
26
+ };
27
+ activeColor?: string;
28
+ maxStatesSelected?: number;
29
+ maxCategoriesSelected?: number;
30
+ tagsSelected: CharityTagsSelected;
31
+ }
32
+ declare const CharityTagsFilterButton: ({ btnIcon, btnText, states, categories, onChange, className, classNameBtn, buttonStyle, activeButtonColor, classNameFilterLayout, checkBoxStyle, activeColor, maxStatesSelected, maxCategoriesSelected, tagsSelected, }: CharityTagsFilterButtonProps) => React.JSX.Element;
33
+ export default CharityTagsFilterButton;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ decorators: ((...args: any) => any)[];
5
+ };
6
+ export default _default;
7
+ export declare const CharityTagsFilterButtonStories: {
8
+ (): React.JSX.Element;
9
+ story: {
10
+ name: string;
11
+ };
12
+ };
@@ -0,0 +1 @@
1
+ export { default as CharityTagsFilterButton } from "./charity-tags-filter-button";
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import "react-dates/initialize";
3
3
  import CenterDecorator from "../../utils/center-decorator";
4
- import "moment-timezone";
5
4
  declare const _default: {
6
5
  title: string;
7
6
  decorators: (typeof CenterDecorator)[];
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
- import { Moment } from "moment";
2
+ import moment from "moment";
3
3
  export interface DatePickerProps {
4
4
  id: string;
5
- date: Moment | null;
6
- onDateChange: (date: Moment | null) => void;
5
+ date: moment.Moment | null;
6
+ onDateChange: (date: moment.Moment | null) => void;
7
7
  onFocusChange: (arg: boolean | null) => void;
8
8
  focused: boolean | null;
9
9
  placeholder?: string;
@@ -47,8 +47,6 @@ 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 "./input";
51
- export * from "./toast";
52
50
  export * from "./my-account-start-fundraise-card";
53
51
  export * from "./my-account-choose-charity-card";
54
52
  export * from "./favorite-charity-item";
@@ -56,6 +54,9 @@ export * from "./my-account-sidebar";
56
54
  export * from "./my-account-frp-preview";
57
55
  export * from "./my-account-stats-donated";
58
56
  export * from "./my-account-stats-raised";
57
+ export * from "./input";
59
58
  export * from "./my-account-frp-closed";
60
59
  export * from "./transaction-card";
60
+ export * from "./toast";
61
61
  export * from "./input-social";
62
+ export * from "./charity-tags-filter-button";
@@ -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;
@@ -20,6 +20,7 @@ type PhoneNumberInputProps = {
20
20
  defaultCountry?: CountryCode;
21
21
  placeholder?: string;
22
22
  color?: string;
23
+ isDisableCountries?: boolean;
23
24
  };
24
- declare function PhoneNumberInputV1({ onChange, values, names, error, onBlur, helperText, label, required, defaultCountry, placeholder, color, }: PhoneNumberInputProps): React.JSX.Element;
25
+ declare function PhoneNumberInputV1({ onChange, values, names, error, onBlur, helperText, label, required, defaultCountry, placeholder, color, isDisableCountries, }: PhoneNumberInputProps): React.JSX.Element;
25
26
  export default PhoneNumberInputV1;
@@ -35,3 +35,9 @@ export declare const PhoneNumberInputStoryV1: {
35
35
  name: string;
36
36
  };
37
37
  };
38
+ export declare const PhoneNumberInputIsDisableCountriesStoryV1: {
39
+ (): React.JSX.Element;
40
+ story: {
41
+ name: string;
42
+ };
43
+ };
@@ -3,6 +3,7 @@ export interface SpinnerProps {
3
3
  id?: string;
4
4
  className?: string;
5
5
  style?: any;
6
+ type?: "default" | "orange";
6
7
  }
7
- declare const Spinner: ({ id, className, style, ...rest }: SpinnerProps) => React.JSX.Element;
8
+ declare const Spinner: ({ id, className, style, type, ...rest }: SpinnerProps) => React.JSX.Element;
8
9
  export default Spinner;
@@ -11,3 +11,9 @@ export declare const SpinnerStoriesDefault: {
11
11
  name: string;
12
12
  };
13
13
  };
14
+ export declare const SpinnerOrangeStories: {
15
+ (): React.JSX.Element;
16
+ story: {
17
+ name: string;
18
+ };
19
+ };