@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.
- package/dist/components/charity-tags-filter-button/FilterIcon.d.ts +6 -0
- package/dist/components/charity-tags-filter-button/charity-tags-filter-button.d.ts +33 -0
- package/dist/components/charity-tags-filter-button/charity-tags-filter-button.stories.d.ts +12 -0
- package/dist/components/charity-tags-filter-button/index.d.ts +1 -0
- package/dist/components/date-picker/date-picker.stories.d.ts +0 -1
- package/dist/components/date-picker/single-date-picker-custom-header.d.ts +3 -3
- package/dist/components/index.d.ts +3 -2
- package/dist/components/modal/modal.stories.d.ts +2 -2
- package/dist/components/phone-number-input/phone-number-input-v1.d.ts +2 -1
- package/dist/components/phone-number-input/phone-number-input.stories.d.ts +6 -0
- package/dist/components/spinner/spinner.d.ts +2 -1
- package/dist/components/spinner/spinner.stories.d.ts +6 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.css.map +1 -1
- package/dist/index.esm.js +499 -311
- package/dist/index.js +499 -310
- package/package.json +3 -3
|
@@ -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,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
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
|
|
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
|
|
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;
|
|
@@ -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;
|