@mycause/ui 0.0.0-cbcfc0a9 → 0.0.0-cbdca24c
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/README.md +5 -0
- package/dist/components/button/button.d.ts +1 -4
- package/dist/components/button-select/button-select-exhanced.d.ts +23 -0
- package/dist/components/button-select/button-select.stories.d.ts +6 -0
- package/dist/components/button-select/index.d.ts +1 -0
- 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 +36 -0
- package/dist/components/{start-campaign-card/start-campaign-card.stories.d.ts → charity-tags-filter-button/charity-tags-filter-button.stories.d.ts} +1 -2
- package/dist/components/charity-tags-filter-button/index.d.ts +1 -0
- package/dist/components/collapse/collapse.d.ts +21 -0
- package/dist/components/collapse/collapse.stories.d.ts +19 -0
- package/dist/components/collapse/icons.d.ts +4 -0
- package/dist/components/collapse/index.d.ts +1 -0
- package/dist/components/cropper/cropper.stories.d.ts +2 -1
- package/dist/components/date-picker/date-picker.stories.d.ts +0 -1
- package/dist/components/date-picker/single-date-picker-custom-header.d.ts +4 -4
- package/dist/components/date-picker/single-date-picker.d.ts +3 -3
- package/dist/components/donation-form/donation-form.stories.d.ts +33 -7
- package/dist/components/donation.d.ts +18 -0
- package/dist/components/featured-campaign-card/featured-campaign-card.d.ts +2 -2
- package/dist/components/icon/heart-toggle.d.ts +0 -2
- package/dist/components/icon/icon-button.d.ts +0 -2
- package/dist/components/icon/material-icon.d.ts +0 -5
- package/dist/components/index.d.ts +2 -1
- package/dist/components/info-represent-campaign/info-represent-campaign.stories.d.ts +2 -1
- package/dist/components/input/input.stories.d.ts +2 -1
- package/dist/components/input-social/Icons.d.ts +4 -1
- package/dist/components/input-social/input-social.stories.d.ts +2 -1
- package/dist/components/layout/box.d.ts +0 -1
- package/dist/components/layout/flex.d.ts +0 -9
- package/dist/components/layout/flex.stories.d.ts +36 -8
- package/dist/components/layout/stack.d.ts +1 -8
- package/dist/components/list/list.d.ts +1 -3
- package/dist/components/login/login.d.ts +4 -1
- package/dist/components/my-account-frp-closed/frp-closed-img.d.ts +1 -2
- package/dist/components/my-account-frp-closed/frp-information.d.ts +4 -1
- package/dist/components/my-account-frp-closed/my-account-frp-closed.d.ts +4 -1
- package/dist/components/my-account-frp-closed/my-account-frp-closed.stories.d.ts +2 -1
- package/dist/components/my-account-frp-preview/Icon.d.ts +1 -1
- package/dist/components/my-account-frp-preview/frp-preview-img.d.ts +1 -1
- package/dist/components/my-account-frp-preview/my-account-frp-preview.stories.d.ts +2 -1
- package/dist/components/my-account-sidebar/Icon.d.ts +11 -11
- package/dist/components/my-account-sidebar/my-account-sidebar.d.ts +1 -1
- package/dist/components/my-account-sidebar/my-account-sidebar.stories.d.ts +1 -1
- package/dist/components/my-account-stats-donated/my-account-stats-donated.stories.d.ts +2 -1
- package/dist/components/my-account-stats-raised/my-account-stats-raised.stories.d.ts +2 -1
- package/dist/components/nav/nav-charity.d.ts +7 -0
- package/dist/components/nav/nav-expanded-charity-v2.d.ts +12 -0
- package/dist/components/nav/nav-myaccount.d.ts +2 -1
- package/dist/components/nav/nav.d.ts +8 -3
- package/dist/components/partner-chart-stats/partner-chart-stats.stories.d.ts +2 -1
- package/dist/components/partner-monthly-donations/partner-monthly-donations.stories.d.ts +2 -1
- package/dist/components/partner-monthly-stats/partner-monthly-stats.stories.d.ts +2 -1
- package/dist/components/partner-toggle-button/partner-toggle-button-block.stories.d.ts +2 -1
- package/dist/components/phone-number-input/phone-number-input-v1.d.ts +4 -2
- package/dist/components/phone-number-input/phone-number-input.stories.d.ts +22 -18
- package/dist/components/radio/radio.d.ts +1 -3
- package/dist/components/select/select.stories.d.ts +93 -13
- package/dist/components/spinner/spinner.d.ts +3 -2
- package/dist/components/spinner/spinner.stories.d.ts +6 -0
- package/dist/components/switch/switch.d.ts +4 -1
- package/dist/components/table/partner-monthly-table.stories.d.ts +2 -1
- package/dist/components/text/text.stories.d.ts +55 -8
- package/dist/components/text-field/text-field.stories.d.ts +6 -14
- package/dist/components/this-month-card/this-month-card.stories.d.ts +2 -1
- package/dist/components/toast/Icons.d.ts +3 -3
- package/dist/components/toast/toast.stories.d.ts +2 -1
- package/dist/donation.css +2 -0
- package/dist/donation.css.map +1 -0
- package/dist/donation.d.ts +3 -0
- package/dist/donation.esm.css +2 -0
- package/dist/donation.esm.css.map +1 -0
- package/dist/donation.esm.js +25294 -0
- package/dist/donation.js +25349 -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 +26438 -25826
- package/dist/index.js +26351 -25738
- package/package.json +30 -22
- package/dist/components/start-campaign-card/index.d.ts +0 -1
- package/dist/components/start-campaign-card/start-campaign-card.d.ts +0 -8
package/README.md
CHANGED
|
@@ -5,6 +5,11 @@ Design system and UI components for mycause.
|
|
|
5
5
|
- [Documentation](https://mycause.atlassian.net/wiki/spaces/MU/overview)
|
|
6
6
|
- [Storybook](https://ui-test.mycause.com.au)
|
|
7
7
|
|
|
8
|
+
## Prerequisites
|
|
9
|
+
|
|
10
|
+
- Node.js (>= 22.x)
|
|
11
|
+
- Yarn (>= 1.22.22)
|
|
12
|
+
|
|
8
13
|
## Setup
|
|
9
14
|
|
|
10
15
|
Install the package:
|
|
@@ -12,9 +12,6 @@ export interface ButtonProps extends Omit<MDCButtonProps<ButtonTypes>, "color" |
|
|
|
12
12
|
icon?: React.ReactElement<IconProps>;
|
|
13
13
|
trailingIcon?: React.ReactElement<IconProps>;
|
|
14
14
|
analyticsId?: string;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
onPointerEnterCapture?: React.PointerEventHandler;
|
|
17
|
-
onPointerLeaveCapture?: React.PointerEventHandler;
|
|
18
15
|
}
|
|
19
16
|
/**
|
|
20
17
|
* Button
|
|
@@ -24,5 +21,5 @@ export interface ButtonProps extends Omit<MDCButtonProps<ButtonTypes>, "color" |
|
|
|
24
21
|
*
|
|
25
22
|
* When using this button you must also include the accompanying `button.scss`.
|
|
26
23
|
*/
|
|
27
|
-
declare function Button({ control, display, large, color, invert, raised, unelevated, outlined, className, icon, trailingIcon, onMouseOver, onMouseOut, analyticsId, id,
|
|
24
|
+
declare function Button({ control, display, large, color, invert, raised, unelevated, outlined, className, icon, trailingIcon, onMouseOver, onMouseOut, analyticsId, id, ...rest }: ButtonProps): React.JSX.Element;
|
|
28
25
|
export default Button;
|
|
@@ -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;
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
id: number | string;
|
|
11
|
+
name: 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
|
+
buttonColor?: string;
|
|
23
|
+
classNameFilterLayout?: string;
|
|
24
|
+
checkBoxStyle?: {
|
|
25
|
+
foreground: string;
|
|
26
|
+
background: string;
|
|
27
|
+
};
|
|
28
|
+
activeColor?: string;
|
|
29
|
+
maxStatesSelected?: number;
|
|
30
|
+
maxCategoriesSelected?: number;
|
|
31
|
+
tagsSelected: CharityTagsSelected;
|
|
32
|
+
heightButton?: string;
|
|
33
|
+
isSurface?: boolean;
|
|
34
|
+
}
|
|
35
|
+
declare const CharityTagsFilterButton: ({ btnIcon, btnText, states, categories, onChange, className, classNameBtn, buttonStyle, activeButtonColor, buttonColor, classNameFilterLayout, checkBoxStyle, activeColor, maxStatesSelected, maxCategoriesSelected, tagsSelected, heightButton, isSurface, }: CharityTagsFilterButtonProps) => React.JSX.Element;
|
|
36
|
+
export default CharityTagsFilterButton;
|
|
@@ -3,10 +3,9 @@ import CenterDecorator from "../../utils/center-decorator";
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
decorators: (typeof CenterDecorator)[];
|
|
6
|
-
component: ({ className, title, description, }: import("./start-campaign-card").StartCampaignCardProps) => React.JSX.Element;
|
|
7
6
|
};
|
|
8
7
|
export default _default;
|
|
9
|
-
export declare const
|
|
8
|
+
export declare const CharityTagsFilterButtonStories: {
|
|
10
9
|
(): React.JSX.Element;
|
|
11
10
|
story: {
|
|
12
11
|
name: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CharityTagsFilterButton } from "./charity-tags-filter-button";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ActionCollapse {
|
|
3
|
+
completeText?: string;
|
|
4
|
+
deleteText?: string;
|
|
5
|
+
onComplete?: () => void;
|
|
6
|
+
onDelete?: () => void;
|
|
7
|
+
noCompleteButton?: boolean;
|
|
8
|
+
noDeleteButton?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CollapseProps {
|
|
11
|
+
hideCollapse?: boolean;
|
|
12
|
+
buttonAlign?: "center" | "left" | "right";
|
|
13
|
+
collapseText?: React.ReactNode;
|
|
14
|
+
expandedText?: React.ReactNode;
|
|
15
|
+
listActions?: Array<ActionCollapse>;
|
|
16
|
+
setWidth?: string;
|
|
17
|
+
isTimeoutEnabled?: boolean;
|
|
18
|
+
timeoutDuration?: number;
|
|
19
|
+
}
|
|
20
|
+
declare const Collapse: ({ hideCollapse, buttonAlign, collapseText, expandedText, listActions, setWidth, isTimeoutEnabled, timeoutDuration, }: CollapseProps) => React.JSX.Element;
|
|
21
|
+
export default Collapse;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import CenterDecorator from "../../utils/center-decorator";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
decorators: (typeof CenterDecorator)[];
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const CollapseStoriesDefault: {
|
|
9
|
+
(): React.JSX.Element;
|
|
10
|
+
story: {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const CollapseStoriesHideButton: {
|
|
15
|
+
(): React.JSX.Element;
|
|
16
|
+
story: {
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Collapse } from "./collapse";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import CenterDecorator from "../../utils/center-decorator";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
decorators: (
|
|
5
|
+
decorators: (typeof CenterDecorator)[];
|
|
5
6
|
};
|
|
6
7
|
export default _default;
|
|
7
8
|
export declare const CropperStory: {
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
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;
|
|
@@ -19,7 +19,7 @@ export interface DatePickerProps {
|
|
|
19
19
|
error?: boolean;
|
|
20
20
|
label?: string;
|
|
21
21
|
width?: string;
|
|
22
|
-
isOutsideRange?: (day:
|
|
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,8 +19,8 @@ export interface DatePickerProps {
|
|
|
19
19
|
error?: boolean;
|
|
20
20
|
label?: string;
|
|
21
21
|
width?: string;
|
|
22
|
-
isOutsideRange?: (day:
|
|
22
|
+
isOutsideRange?: (day: Moment) => boolean;
|
|
23
23
|
showDefaultInputIcon?: boolean;
|
|
24
24
|
}
|
|
25
|
-
declare const CustomSingleDatePicker: ({ width, color, onDateChange, onFocusChange, numberOfMonths, error, label, focused, ...rest }: DatePickerProps) => React.JSX.Element;
|
|
25
|
+
declare const CustomSingleDatePicker: ({ width, color, onDateChange, onFocusChange, numberOfMonths, error, label, focused, required, id, ...rest }: DatePickerProps) => React.JSX.Element;
|
|
26
26
|
export default CustomSingleDatePicker;
|
|
@@ -1,15 +1,41 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import CenterDecorator from "../../utils/center-decorator";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
decorators: (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
decorators: (typeof CenterDecorator)[];
|
|
6
|
+
argTypes: {
|
|
7
|
+
prefix: {
|
|
8
|
+
control: string;
|
|
9
|
+
defaultValue: string;
|
|
10
|
+
};
|
|
11
|
+
currency: {
|
|
12
|
+
control: string;
|
|
13
|
+
defaultValue: string;
|
|
14
|
+
};
|
|
15
|
+
control: {
|
|
16
|
+
control: string;
|
|
17
|
+
defaultValue: boolean;
|
|
18
|
+
};
|
|
19
|
+
hasCard: {
|
|
20
|
+
control: string;
|
|
21
|
+
defaultValue: boolean;
|
|
22
|
+
};
|
|
23
|
+
hasError: {
|
|
24
|
+
control: string;
|
|
25
|
+
defaultValue: boolean;
|
|
26
|
+
};
|
|
27
|
+
noContianer: {
|
|
28
|
+
control: string;
|
|
29
|
+
defaultValue: boolean;
|
|
30
|
+
};
|
|
31
|
+
maxWidth: {
|
|
32
|
+
control: string;
|
|
33
|
+
defaultValue: string;
|
|
34
|
+
};
|
|
11
35
|
};
|
|
12
36
|
};
|
|
37
|
+
export default _default;
|
|
38
|
+
export declare const DonationFormStories: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
|
|
13
39
|
export declare const DonationCampaignFormStories: {
|
|
14
40
|
(): React.JSX.Element;
|
|
15
41
|
story: {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./button";
|
|
2
|
+
export * from "./button-select";
|
|
3
|
+
export * from "./checkbox";
|
|
4
|
+
export * from "./combo-field";
|
|
5
|
+
export * from "./date-picker";
|
|
6
|
+
export * from "./elevation";
|
|
7
|
+
export * from "./field-helpers";
|
|
8
|
+
export * from "./layout";
|
|
9
|
+
export * from "./modal";
|
|
10
|
+
export * from "./navigation";
|
|
11
|
+
export * from "./phone-number-input";
|
|
12
|
+
export * from "./radio";
|
|
13
|
+
export * from "./select";
|
|
14
|
+
export * from "./spinner";
|
|
15
|
+
export * from "./switch";
|
|
16
|
+
export * from "./text-field";
|
|
17
|
+
export * from "./text";
|
|
18
|
+
export * from "./input";
|
|
@@ -7,8 +7,8 @@ export interface FeaturedCampaignCardProps {
|
|
|
7
7
|
completed?: number;
|
|
8
8
|
maxWidth?: number;
|
|
9
9
|
donation?: number;
|
|
10
|
-
raised?: number;
|
|
11
|
-
goal?: number;
|
|
10
|
+
raised?: number | string;
|
|
11
|
+
goal?: number | string;
|
|
12
12
|
onClick: () => void;
|
|
13
13
|
fundraisingText: string;
|
|
14
14
|
handleImageError?: () => void;
|
|
@@ -6,8 +6,6 @@ export interface HeartToggleProps extends Omit<MDCIconButtonProps<IconButtonType
|
|
|
6
6
|
inactive: React.ReactNode;
|
|
7
7
|
onChange?: (value: boolean) => void;
|
|
8
8
|
value: boolean;
|
|
9
|
-
onPointerEnterCapture?: React.PointerEventHandler;
|
|
10
|
-
onPointerLeaveCapture?: React.PointerEventHandler;
|
|
11
9
|
}
|
|
12
10
|
declare const HeartToggle: React.ForwardRefExoticComponent<HeartToggleProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
13
11
|
export default HeartToggle;
|
|
@@ -6,8 +6,6 @@ export interface IconButtonProps extends Omit<MDCIconButtonProps<IconButtonTypes
|
|
|
6
6
|
children: React.ReactElement<IconProps>;
|
|
7
7
|
pressed?: boolean;
|
|
8
8
|
size?: string;
|
|
9
|
-
onPointerEnterCapture?: React.PointerEventHandler;
|
|
10
|
-
onPointerLeaveCapture?: React.PointerEventHandler;
|
|
11
9
|
}
|
|
12
10
|
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
13
11
|
export default IconButton;
|
|
@@ -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;
|
|
@@ -37,7 +37,6 @@ export * from "./fundraising-section";
|
|
|
37
37
|
export * from "./hero-banner";
|
|
38
38
|
export * from "./horizontalbar";
|
|
39
39
|
export * from "./progressbar";
|
|
40
|
-
export * from "./start-campaign-card";
|
|
41
40
|
export * from "./nav";
|
|
42
41
|
export * from "./popup";
|
|
43
42
|
export * from "./partner-monthly-donations";
|
|
@@ -59,3 +58,5 @@ export * from "./my-account-stats-raised";
|
|
|
59
58
|
export * from "./my-account-frp-closed";
|
|
60
59
|
export * from "./transaction-card";
|
|
61
60
|
export * from "./input-social";
|
|
61
|
+
export * from "./charity-tags-filter-button";
|
|
62
|
+
export * from "./collapse";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import CenterDecorator from "../../utils/center-decorator";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
decorators: (
|
|
5
|
+
decorators: (typeof CenterDecorator)[];
|
|
5
6
|
};
|
|
6
7
|
export default _default;
|
|
7
8
|
export declare const InforRepresentCampaignStories: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import CenterDecorator from "../../utils/center-decorator";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
decorators: (
|
|
5
|
+
decorators: (typeof CenterDecorator)[];
|
|
5
6
|
};
|
|
6
7
|
export default _default;
|
|
7
8
|
export declare const InputExample: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import CenterDecorator from "../../utils/center-decorator";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
decorators: (
|
|
5
|
+
decorators: (typeof CenterDecorator)[];
|
|
5
6
|
};
|
|
6
7
|
export default _default;
|
|
7
8
|
export declare const InputExample: {
|
|
@@ -382,7 +382,6 @@ declare function Box({ as, ma, mv, mh, mt, mr, mb, ml, pa, pv, ph, pt, pb, pl, p
|
|
|
382
382
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
|
|
383
383
|
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
384
384
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
385
|
-
css?: import("@emotion/core").InterpolationWithTheme<any>;
|
|
386
385
|
ref?: React.LegacyRef<HTMLElement> | undefined;
|
|
387
386
|
key?: React.Key | null | undefined;
|
|
388
387
|
className: string;
|
|
@@ -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;
|
|
@@ -1,14 +1,42 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import CenterDecorator from "../../utils/center-decorator";
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
5
4
|
decorators: (typeof CenterDecorator)[];
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
argTypes: {
|
|
6
|
+
number: {
|
|
7
|
+
control: string;
|
|
8
|
+
defaultValue: number;
|
|
9
|
+
};
|
|
10
|
+
reverse: {
|
|
11
|
+
control: string;
|
|
12
|
+
defaultValue: boolean;
|
|
13
|
+
};
|
|
14
|
+
wrap: {
|
|
15
|
+
control: string;
|
|
16
|
+
defaultValue: boolean;
|
|
17
|
+
};
|
|
18
|
+
align: {
|
|
19
|
+
control: {
|
|
20
|
+
type: string;
|
|
21
|
+
options: string[];
|
|
22
|
+
};
|
|
23
|
+
defaultValue: string;
|
|
24
|
+
};
|
|
25
|
+
direction: {
|
|
26
|
+
control: {
|
|
27
|
+
type: string;
|
|
28
|
+
options: string[];
|
|
29
|
+
};
|
|
30
|
+
defaultValue: string;
|
|
31
|
+
};
|
|
32
|
+
justify: {
|
|
33
|
+
control: {
|
|
34
|
+
type: string;
|
|
35
|
+
options: string[];
|
|
36
|
+
};
|
|
37
|
+
defaultValue: string;
|
|
38
|
+
};
|
|
13
39
|
};
|
|
14
40
|
};
|
|
41
|
+
export default _default;
|
|
42
|
+
export declare const FlexStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
|
|
@@ -3,14 +3,7 @@ import { FlexProps } from "./flex";
|
|
|
3
3
|
interface StackProps extends FlexProps {
|
|
4
4
|
horizontal?: boolean;
|
|
5
5
|
vertical?: boolean;
|
|
6
|
-
gap
|
|
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;
|
|
@@ -37,8 +37,6 @@ export type ListProps = {
|
|
|
37
37
|
setItems?: (e: Array<ItemType>) => void;
|
|
38
38
|
items: Array<ItemType>;
|
|
39
39
|
tooltipArrow?: number;
|
|
40
|
-
onPointerEnterCapture?: React.PointerEventHandler;
|
|
41
|
-
onPointerLeaveCapture?: React.PointerEventHandler;
|
|
42
40
|
};
|
|
43
|
-
declare const List: ({ items, divider, fullWidth, iconWidth, centerText, itemHeight, overflowHidden, breakspaces, iconsNotRounded, style, textGap, setItems, showToggleMeta, tooltipArrow,
|
|
41
|
+
declare const List: ({ items, divider, fullWidth, iconWidth, centerText, itemHeight, overflowHidden, breakspaces, iconsNotRounded, style, textGap, setItems, showToggleMeta, tooltipArrow, }: ListProps) => React.JSX.Element;
|
|
44
42
|
export default List;
|
|
@@ -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?:
|
|
13
|
+
params?: Param;
|
|
11
14
|
env?: string;
|
|
12
15
|
loggedInCallBack?: () => void;
|
|
13
16
|
}
|
|
@@ -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,
|
|
7
|
+
declare const FrpClosedImg: ({ img, title, frpColor }: FrpClosedImgProps) => React.JSX.Element;
|
|
9
8
|
export default FrpClosedImg;
|
|
@@ -8,6 +8,9 @@ interface FrpInfomationProps {
|
|
|
8
8
|
closedDate?: string | undefined;
|
|
9
9
|
customRow?: React.ReactNode;
|
|
10
10
|
manageLink?: string;
|
|
11
|
+
thankLink?: string;
|
|
12
|
+
handleCertificateMemento?: () => void;
|
|
13
|
+
handleDeleteFrp?: () => void;
|
|
11
14
|
}
|
|
12
|
-
declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, closedDate, customRow,
|
|
15
|
+
declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, closedDate, customRow, thankLink, handleCertificateMemento, handleDeleteFrp, }: FrpInfomationProps) => React.JSX.Element;
|
|
13
16
|
export default FrpInfomation;
|
|
@@ -12,6 +12,9 @@ export interface MyAccountFrpClosedProps {
|
|
|
12
12
|
closedDate?: string;
|
|
13
13
|
customRow?: React.ReactNode;
|
|
14
14
|
manageLink?: string;
|
|
15
|
+
thankLink?: string;
|
|
16
|
+
handleCertificateMemento?: () => void;
|
|
17
|
+
handleDeleteFrp?: () => void;
|
|
15
18
|
}
|
|
16
|
-
declare const MyAccountFrpClosed: ({ img, link, title, amountGoal, amountRaised, donations, sqSize, strokeWidth, frpColor, closedDate, customRow, manageLink, }: MyAccountFrpClosedProps) => React.JSX.Element;
|
|
19
|
+
declare const MyAccountFrpClosed: ({ img, link, title, amountGoal, amountRaised, donations, sqSize, strokeWidth, frpColor, closedDate, customRow, manageLink, thankLink, handleCertificateMemento, handleDeleteFrp, }: MyAccountFrpClosedProps) => React.JSX.Element;
|
|
17
20
|
export default MyAccountFrpClosed;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import CenterDecorator from "../../utils/center-decorator";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
decorators: (
|
|
5
|
+
decorators: (typeof CenterDecorator)[];
|
|
5
6
|
};
|
|
6
7
|
export default _default;
|
|
7
8
|
export declare const MyAccountFrpCloseStory: {
|
|
@@ -5,5 +5,5 @@ export interface FrpPreviewImgProps {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
frpColor?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const FrpPreviewImg: ({ img,
|
|
8
|
+
declare const FrpPreviewImg: ({ img, title, frpColor }: FrpPreviewImgProps) => React.JSX.Element;
|
|
9
9
|
export default FrpPreviewImg;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import CenterDecorator from "../../utils/center-decorator";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
decorators: (
|
|
5
|
+
decorators: (typeof CenterDecorator)[];
|
|
5
6
|
};
|
|
6
7
|
export default _default;
|
|
7
8
|
export declare const MyAccountFrpPreviewStory: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const Icons: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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;
|