@mycause/ui 0.18.2 → 0.18.4

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,4 +1,10 @@
1
- ## 0.18.1
1
+ ## 0.18.3
2
+
3
+ ###### Tues, 23 Jan 2024
4
+
5
+ - Update stats block
6
+
7
+ ## 0.18.2
2
8
 
3
9
  ###### Mon, 22 Jan 2024
4
10
 
package/dist/index.esm.js CHANGED
@@ -34934,9 +34934,9 @@ var MyAccountStatsRaised = function MyAccountStatsRaised(_ref) {
34934
34934
  className: cls$t.number
34935
34935
  }, formatterMoney.format(amount).replace("$", "$ ")), React.createElement("p", {
34936
34936
  className: cls$t.text
34937
- }, "raised ", React.createElement("br", null), " You have created ", React.createElement("br", null), " ", React.createElement("span", {
34937
+ }, "You have created ", React.createElement("br", null), " ", React.createElement("span", {
34938
34938
  className: cls$t.num
34939
- }, campaigns), " campaigns")));
34939
+ }, campaigns), " ", "campaigns")));
34940
34940
  };
34941
34941
 
34942
34942
  MyAccountStatsRaised.propTypes = {
package/dist/index.js CHANGED
@@ -34948,9 +34948,9 @@ var MyAccountStatsRaised = function MyAccountStatsRaised(_ref) {
34948
34948
  className: cls$t.number
34949
34949
  }, formatterMoney.format(amount).replace("$", "$ ")), React__default.createElement("p", {
34950
34950
  className: cls$t.text
34951
- }, "raised ", React__default.createElement("br", null), " You have created ", React__default.createElement("br", null), " ", React__default.createElement("span", {
34951
+ }, "You have created ", React__default.createElement("br", null), " ", React__default.createElement("span", {
34952
34952
  className: cls$t.num
34953
- }, campaigns), " campaigns")));
34953
+ }, campaigns), " ", "campaigns")));
34954
34954
  };
34955
34955
 
34956
34956
  MyAccountStatsRaised.propTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycause/ui",
3
- "version": "0.18.2",
3
+ "version": "0.18.4",
4
4
  "author": "Marc Porciuncula <marc@mycause.com.au>",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,32 +0,0 @@
1
- import React from "react";
2
- import moment from "moment";
3
- export interface DatePickerProps {
4
- id: string;
5
- date: moment.Moment | null;
6
- onDateChange: (date: moment.Moment | null) => void;
7
- onFocusChange: (arg: boolean | null) => void;
8
- focused: boolean | null;
9
- placeholder?: string;
10
- disabled?: boolean;
11
- color?: string;
12
- required?: boolean;
13
- numberOfMonths?: number;
14
- inputIconPosition?: "before" | "after";
15
- orientation?: "horizontal" | "vertical";
16
- customInputIcon?: React.ReactElement<React.HTMLProps<HTMLOrSVGElement>>;
17
- customCloseIcon?: React.ReactElement<React.HTMLProps<HTMLOrSVGElement>>;
18
- displayFormat?: string;
19
- error?: boolean;
20
- label?: string;
21
- width?: string;
22
- isOutsideRange?: () => boolean;
23
- renderCalendarInfo?: () => string | JSX.Element;
24
- calendarInfoPosition?: "before" | "after" | "top" | "bottom";
25
- navPrev?: string | JSX.Element;
26
- navNext?: string | JSX.Element;
27
- showDefaultInputIcon?: boolean;
28
- startYear?: number;
29
- endYear?: number;
30
- }
31
- declare const CustomHeaderSingleDatePicker: ({ width, color, onDateChange, onFocusChange, numberOfMonths, error, label, focused, startYear, endYear, ...rest }: DatePickerProps) => JSX.Element;
32
- export default CustomHeaderSingleDatePicker;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export interface DonateCardProps {
3
- className?: string;
4
- title?: string;
5
- description?: string;
6
- }
7
- declare const DonateCard: ({ className, title, description, }: DonateCardProps) => JSX.Element;
8
- export default DonateCard;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import CenterDecorator from "../../utils/center-decorator";
3
- declare const _default: {
4
- title: string;
5
- decorators: (typeof CenterDecorator)[];
6
- component: ({ className, title, description, }: import("./donate-card").DonateCardProps) => JSX.Element;
7
- };
8
- export default _default;
9
- export declare const donatecard: {
10
- (): JSX.Element;
11
- story: {
12
- name: string;
13
- };
14
- };
@@ -1 +0,0 @@
1
- export { default as DonateCard } from "./donate-card";
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- interface InputDefaltProps {
3
- label?: string | React.ReactNode;
4
- required?: boolean;
5
- placeholder?: string;
6
- onChange?: (value: string) => void;
7
- value?: string | Array<string> | number;
8
- error?: string | null | boolean;
9
- disable?: boolean;
10
- name?: string;
11
- }
12
- declare const Input: ({ label, required, placeholder, value, onChange, error, disable, name, }: InputDefaltProps) => JSX.Element;
13
- export default Input;
@@ -1 +0,0 @@
1
- export { default as Input } from "./InputDefault";
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- decorators: ((...args: any) => any)[];
5
- };
6
- export default _default;
7
- export declare const InputExample: {
8
- (): JSX.Element;
9
- story: {
10
- name: string;
11
- };
12
- };
13
- export declare const InputV2: {
14
- (): JSX.Element;
15
- story: {
16
- name: string;
17
- };
18
- };
19
- export declare const InputV3: {
20
- (): JSX.Element;
21
- story: {
22
- name: string;
23
- };
24
- };
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- import { CountryCode } from "libphonenumber-js";
3
- declare type PhoneNumberInputProps = {
4
- values: {
5
- number: string;
6
- countryCallingCode: string;
7
- country: string;
8
- };
9
- names?: {
10
- number: string;
11
- countryCallingCode: string;
12
- country: string;
13
- };
14
- onChange: (value: string, name: string) => void;
15
- label?: React.ReactNode;
16
- error?: string | null;
17
- onBlur?: (e: React.FocusEvent) => void;
18
- helperText?: React.ReactNode;
19
- required?: boolean;
20
- defaultCountry?: CountryCode;
21
- placeholder?: string;
22
- color?: string;
23
- };
24
- declare function PhoneNumberInputV1({ onChange, values, names, error, onBlur, helperText, label, required, defaultCountry, placeholder, color, }: PhoneNumberInputProps): JSX.Element;
25
- export default PhoneNumberInputV1;
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import { CountryCode } from "libphonenumber-js";
3
- declare type PhoneInputProps = {
4
- values: {
5
- number: string;
6
- countryCallingCode: string;
7
- country: string;
8
- };
9
- onChange: (value: string, name: string) => void;
10
- label?: React.ReactNode;
11
- error?: string | null;
12
- required?: boolean;
13
- defaultCountry?: CountryCode;
14
- placeholder?: string;
15
- color?: string;
16
- name?: string;
17
- };
18
- declare function PhoneInput({ values, onChange, defaultCountry, label, required, placeholder, error, name, }: PhoneInputProps): JSX.Element;
19
- export default PhoneInput;
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- import { SelectProps as MDCSelectProps, SelectHelperTextProps } from "@material/react-select";
3
- export declare type SelectOption = {
4
- value: string;
5
- label?: string;
6
- disabled?: boolean;
7
- };
8
- export interface SelectProps extends Omit<MDCSelectProps, "onEnhancedChange" | "ref" | "children" | "options" | "outlined" | "helperText" | "dense"> {
9
- label?: string;
10
- value: string;
11
- onChange: (value: any) => void;
12
- externalLabel?: boolean;
13
- large?: boolean;
14
- options: Array<string> | Array<SelectOption>;
15
- leadingIcon?: React.ReactElement;
16
- helperText?: string | React.ReactElement<SelectHelperTextProps> | null;
17
- isHelperTextPersistent?: boolean;
18
- noArrow?: boolean;
19
- color?: string;
20
- error?: boolean | string;
21
- }
22
- declare const SelectV2: ({ label, value, onChange, helperText, isHelperTextPersistent, externalLabel, id, className, options, large, required, leadingIcon, noArrow, error, color, ...rest }: SelectProps) => JSX.Element;
23
- export default SelectV2;
@@ -1,26 +0,0 @@
1
- import React from "react";
2
- export declare type SelectOption = {
3
- value: string;
4
- label?: string;
5
- disabled?: boolean;
6
- };
7
- export interface SelectProps {
8
- label?: string;
9
- value: string | number;
10
- onChange: (value: string) => void;
11
- externalLabel?: boolean;
12
- large?: boolean;
13
- options: Array<SelectOption>;
14
- leadingIcon?: React.ReactElement;
15
- helperText?: string | null;
16
- isHelperTextPersistent?: boolean;
17
- noArrow?: boolean;
18
- color?: string;
19
- asteriskColor?: string;
20
- itemHoverColor?: string;
21
- error?: boolean | string;
22
- trailingIcon?: React.ReactElement;
23
- bgColor?: string;
24
- }
25
- declare const SelectV2: ({ options, value, onChange, color, itemHoverColor, noArrow, trailingIcon, bgColor, }: SelectProps) => JSX.Element;
26
- export default SelectV2;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- interface DotProps {
3
- color: string;
4
- }
5
- export declare function Dot(props: DotProps): JSX.Element;
6
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export interface DonateCardProps {
3
- className?: string;
4
- title?: string;
5
- description?: string;
6
- }
7
- declare const DonateCard: ({ className, title, description, }: DonateCardProps) => JSX.Element;
8
- export default DonateCard;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import CenterDecorator from "../../utils/center-decorator";
3
- declare const _default: {
4
- title: string;
5
- decorators: (typeof CenterDecorator)[];
6
- component: ({ className, title, description, }: import("./transaction-card").DonateCardProps) => JSX.Element;
7
- };
8
- export default _default;
9
- export declare const donatecard: {
10
- (): JSX.Element;
11
- story: {
12
- name: string;
13
- };
14
- };
@@ -1 +0,0 @@
1
- export { default as TransactionCard } from "./transaction-card";
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- export interface TransactionCardProps {
3
- className?: string;
4
- amount?: string;
5
- recipient?: string;
6
- receiptNo?: string;
7
- details?: string;
8
- tax?: string;
9
- date?: string;
10
- action?: React.ReactNode;
11
- }
12
- declare const TransactionCard: ({ className, amount, recipient, receiptNo, details, tax, date, action, }: TransactionCardProps) => JSX.Element;
13
- export default TransactionCard;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import CenterDecorator from "../../utils/center-decorator";
3
- declare const _default: {
4
- title: string;
5
- decorators: (typeof CenterDecorator)[];
6
- component: ({ className, amount, recipient, receiptNo, details, tax, date, action, }: import("./transaction-card").TransactionCardProps) => JSX.Element;
7
- };
8
- export default _default;
9
- export declare const TransactionCardStory: {
10
- (): JSX.Element;
11
- story: {
12
- name: string;
13
- };
14
- };
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import CenterDecorator from "../../utils/center-decorator";
3
- declare const _default: {
4
- title: string;
5
- decorators: (typeof CenterDecorator)[];
6
- component: ({ className, title, description, }: import("./transaction-card").DonateCardProps) => JSX.Element;
7
- };
8
- export default _default;
9
- export declare const donatecard: {
10
- (): JSX.Element;
11
- story: {
12
- name: string;
13
- };
14
- };