@foris/avocado-suite 0.9.0 → 0.10.0
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/package.json +3 -3
- package/dist/avocado-suite/src/components/box/Box.d.ts +0 -9
- package/dist/avocado-suite/src/components/box/Box.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/breadcrumbs/Breadcrumbs.d.ts +0 -19
- package/dist/avocado-suite/src/components/breadcrumbs/Breadcrumbs.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/button/Button.d.ts +0 -19
- package/dist/avocado-suite/src/components/button/Button.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/card/Card.d.ts +0 -15
- package/dist/avocado-suite/src/components/card/Card.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/checkbox/Checkbox.d.ts +0 -16
- package/dist/avocado-suite/src/components/checkbox/Checkbox.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/divider/Divider.d.ts +0 -11
- package/dist/avocado-suite/src/components/divider/Divider.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/heading/Heading.d.ts +0 -13
- package/dist/avocado-suite/src/components/heading/Heading.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/link/Link.d.ts +0 -22
- package/dist/avocado-suite/src/components/link/Link.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/menu/Menu.d.ts +0 -13
- package/dist/avocado-suite/src/components/menu/Menu.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/pager/Page.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/pager/Pager.d.ts +0 -49
- package/dist/avocado-suite/src/components/pager/components/ArrowPager.d.ts +0 -9
- package/dist/avocado-suite/src/components/pager/components/ButtonPager.d.ts +0 -11
- package/dist/avocado-suite/src/components/pager/utils/generateArrayOfPages.d.ts +0 -2
- package/dist/avocado-suite/src/components/processing/Processing.d.ts +0 -2
- package/dist/avocado-suite/src/components/radio-button/RadioButton.d.ts +0 -17
- package/dist/avocado-suite/src/components/radio-button/RadioButton.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/round-button/RoundButton.d.ts +0 -16
- package/dist/avocado-suite/src/components/round-button/RoundButton.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/select/Select.d.ts +0 -24
- package/dist/avocado-suite/src/components/select/Select.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/select/components/SelectIndicators.d.ts +0 -8
- package/dist/avocado-suite/src/components/select-pagination/SelectPagination.d.ts +0 -26
- package/dist/avocado-suite/src/components/select-pagination/SelectPagination.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/skeleton-base/SkeletonBase.d.ts +0 -15
- package/dist/avocado-suite/src/components/skeleton-circle/SkeletonCircle.d.ts +0 -9
- package/dist/avocado-suite/src/components/stepper/Stepper.d.ts +0 -13
- package/dist/avocado-suite/src/components/stepper/Stepper.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/tag/Tag.d.ts +0 -26
- package/dist/avocado-suite/src/components/tag/Tag.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/text/Text.d.ts +0 -15
- package/dist/avocado-suite/src/components/text/Text.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/text-field/TextField.d.ts +0 -17
- package/dist/avocado-suite/src/components/text-field/TextField.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/text-field/components/StatusIcon.d.ts +0 -7
- package/dist/avocado-suite/src/components/timer/Timer.d.ts +0 -48
- package/dist/avocado-suite/src/components/timer/Timer.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/timer/timer.util.d.ts +0 -8
- package/dist/avocado-suite/src/components/tooltip/Tooltip.d.ts +0 -23
- package/dist/avocado-suite/src/components/tooltip/Tooltip.test.d.ts +0 -0
- package/dist/avocado-suite/src/constants/theme.constants.d.ts +0 -3
- package/dist/avocado-suite/src/contexts/theme/ThemeProvider.d.ts +0 -13
- package/dist/avocado-suite/src/hooks/useClickOutside.d.ts +0 -7
- package/dist/avocado-suite/src/hooks/useTheme.d.ts +0 -3
- package/dist/avocado-suite/src/index.d.ts +0 -25
- package/dist/avocado-suite/src/types/menu.types.d.ts +0 -7
- package/dist/avocado-suite/src/types/theme.types.d.ts +0 -4
- package/dist/avocado-suite.es.js +0 -7380
- package/dist/avocado-suite.umd.js +0 -493
- package/dist/index.d.ts +0 -1
- package/dist/style.css +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foris/avocado-suite",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"react-dom": "18.2.0",
|
|
23
23
|
"react-select": "5.8.0",
|
|
24
24
|
"react-select-async-paginate": "0.7.3",
|
|
25
|
-
"@foris/avocado-
|
|
26
|
-
"@foris/avocado-
|
|
25
|
+
"@foris/avocado-core": "0.4.0",
|
|
26
|
+
"@foris/avocado-icons": "1.3.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@testing-library/jest-dom": "6.4.0",
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface BreadcrumbItem {
|
|
3
|
-
/** To integrate with react-router component */
|
|
4
|
-
component?: React.ReactElement;
|
|
5
|
-
/** Path working with `href` attribute */
|
|
6
|
-
path?: string;
|
|
7
|
-
/** Navigation item name */
|
|
8
|
-
title: string;
|
|
9
|
-
}
|
|
10
|
-
interface BreadcrumbsProps {
|
|
11
|
-
/** Overwrite className */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** Use dark colors palette*/
|
|
14
|
-
darkMode?: boolean;
|
|
15
|
-
/** The navigation stack */
|
|
16
|
-
items: BreadcrumbItem[];
|
|
17
|
-
}
|
|
18
|
-
declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
19
|
-
export default Breadcrumbs;
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { IconTypes } from '../../../../avocado-icons/src/types/icons.type.ts';
|
|
3
|
-
export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
4
|
-
export interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
5
|
-
/** Render content button */
|
|
6
|
-
children: React.ReactNode | string;
|
|
7
|
-
/** Overwrite className */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Loading state */
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
/** Show icon on the left */
|
|
12
|
-
leftIcon?: IconTypes;
|
|
13
|
-
/** Show icon on the right */
|
|
14
|
-
rightIcon?: IconTypes;
|
|
15
|
-
/** Use the variant prop to change the visual style of the Button */
|
|
16
|
-
variant?: ButtonVariant;
|
|
17
|
-
}
|
|
18
|
-
declare const Button: FC<ButtonProps>;
|
|
19
|
-
export default Button;
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
interface CardProps {
|
|
3
|
-
/** Content card */
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
/** Overwrite className */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Overwrite content className */
|
|
8
|
-
classNameContent?: string;
|
|
9
|
-
/** Disabled state */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** OnClick event */
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
}
|
|
14
|
-
declare const Card: FC<CardProps>;
|
|
15
|
-
export default Card;
|
|
File without changes
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface CheckboxProps extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
3
|
-
/** Overwrite className */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Overwrite className in checkbox */
|
|
6
|
-
classNameCheckbox?: string;
|
|
7
|
-
/** label Left side checkbox */
|
|
8
|
-
labelLeft?: ReactNode | string;
|
|
9
|
-
/** label Right side checkbox */
|
|
10
|
-
labelRight?: ReactNode | string;
|
|
11
|
-
/** disabled state */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
ref?: any;
|
|
14
|
-
}
|
|
15
|
-
declare const Checkbox: FC<CheckboxProps>;
|
|
16
|
-
export default Checkbox;
|
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
interface DividerProps {
|
|
3
|
-
/** Overwrite className */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Disabled state */
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
/** Set the position vertical */
|
|
8
|
-
vertical?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const Divider: FC<DividerProps>;
|
|
11
|
-
export default Divider;
|
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactNode, FC } from 'react';
|
|
2
|
-
export interface HeadingProps {
|
|
3
|
-
/** Render content */
|
|
4
|
-
children: ReactNode | string;
|
|
5
|
-
/** Overwrite className */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Use dark colors palette*/
|
|
8
|
-
darkMode?: boolean;
|
|
9
|
-
/** Set importance. Match with h1, h2, h3 and h4 */
|
|
10
|
-
type: 'h1' | 'h2' | 'h3' | 'h4';
|
|
11
|
-
}
|
|
12
|
-
declare const Heading: FC<HeadingProps>;
|
|
13
|
-
export default Heading;
|
|
File without changes
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IconTypes } from '../../../../avocado-icons/src/types/icons.type';
|
|
3
|
-
export interface LinkProps extends React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
|
|
4
|
-
/** Render content link */
|
|
5
|
-
children: React.ReactNode | string;
|
|
6
|
-
/** Overwrite className */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Set disabled value */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
/** Set icon left */
|
|
11
|
-
iconLeft?: IconTypes;
|
|
12
|
-
/** Set icon right */
|
|
13
|
-
iconRight?: IconTypes;
|
|
14
|
-
/** Use when the background is dark */
|
|
15
|
-
inverse?: boolean;
|
|
16
|
-
/** Use size 'sm' or 'md'. Default 'md' */
|
|
17
|
-
size?: 'sm' | 'md';
|
|
18
|
-
/** Handle onClock event */
|
|
19
|
-
onClick?: () => void;
|
|
20
|
-
}
|
|
21
|
-
declare const Link: FC<LinkProps>;
|
|
22
|
-
export default Link;
|
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MenuItem } from '../../types/menu.types.ts';
|
|
2
|
-
interface MenuProps {
|
|
3
|
-
/** Control if you want to close the list after clicking one of the options or not */
|
|
4
|
-
closeOnClick?: boolean;
|
|
5
|
-
/** From where to start to render the list */
|
|
6
|
-
listOrigin?: 'left' | 'right';
|
|
7
|
-
/** List of the items to render when the menu is open */
|
|
8
|
-
items: MenuItem[];
|
|
9
|
-
/** Overwrite className */
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const Menu: (props: MenuProps) => JSX.Element;
|
|
13
|
-
export default Menu;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export type PagerProps = {
|
|
3
|
-
/** Overwrite children classNames */
|
|
4
|
-
classname?: {
|
|
5
|
-
global?: string;
|
|
6
|
-
nav?: string;
|
|
7
|
-
arrow?: string;
|
|
8
|
-
button?: string;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Current page
|
|
12
|
-
*/
|
|
13
|
-
page: number;
|
|
14
|
-
/**
|
|
15
|
-
* Size per page
|
|
16
|
-
*/
|
|
17
|
-
size: number;
|
|
18
|
-
/**
|
|
19
|
-
* Total number of items
|
|
20
|
-
*/
|
|
21
|
-
total: number;
|
|
22
|
-
/**
|
|
23
|
-
* Total number of pages
|
|
24
|
-
*/
|
|
25
|
-
totalPages?: number;
|
|
26
|
-
/**
|
|
27
|
-
* Callback: Action `onClick` on page
|
|
28
|
-
* @param page number of page
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
onChange?: (page: number) => void;
|
|
32
|
-
/**
|
|
33
|
-
* Deprecated use "onChange" prop.
|
|
34
|
-
* @deprecated use "onChange" prop.
|
|
35
|
-
*/
|
|
36
|
-
onPageChange?: (page: number) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Deprecated is not used in the component
|
|
39
|
-
* @deprecated is not used in the component
|
|
40
|
-
*/
|
|
41
|
-
hasPreviousPage?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Deprecated is not used in the component
|
|
44
|
-
* @deprecated is not used in the component
|
|
45
|
-
*/
|
|
46
|
-
hasNextPage?: boolean;
|
|
47
|
-
};
|
|
48
|
-
declare const Pager: FC<PagerProps>;
|
|
49
|
-
export default Pager;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
interface ArrowProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
onClick: () => void;
|
|
5
|
-
icon: 'chevron-left' | 'chevron-right' | 'chevrons-left' | 'chevrons-right';
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const Arrow: FC<ArrowProps>;
|
|
9
|
-
export default Arrow;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
interface ButtonPagerProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
onClick: () => void;
|
|
5
|
-
page: number;
|
|
6
|
-
currentPage: number;
|
|
7
|
-
ellipsisAsNumber: number;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const ButtonPager: FC<ButtonPagerProps>;
|
|
11
|
-
export default ButtonPager;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode, DetailedHTMLProps, InputHTMLAttributes } from 'react';
|
|
2
|
-
export interface RadioButtonProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
3
|
-
/** overwrite className */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** overwrite className in RadioButton */
|
|
6
|
-
classNameRadioButton?: string;
|
|
7
|
-
/** Text or ReactNode to be displayed at the left of the radio input */
|
|
8
|
-
labelLeft?: ReactNode | string;
|
|
9
|
-
/** Label Right side RadioButton*/
|
|
10
|
-
labelRight?: ReactNode | string;
|
|
11
|
-
/** disabled state */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** Reference used on the input component */
|
|
14
|
-
ref?: any;
|
|
15
|
-
}
|
|
16
|
-
declare const RadioButton: FC<RadioButtonProps>;
|
|
17
|
-
export default RadioButton;
|
|
File without changes
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ButtonVariant } from '../button/Button';
|
|
2
|
-
import { IconTypes } from '../../../../../../../../avocado-icons/src/types/icons.type.ts';
|
|
3
|
-
interface RoundButtonProps extends Partial<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>> {
|
|
4
|
-
/** Icon name */
|
|
5
|
-
icon: IconTypes;
|
|
6
|
-
/** Variant of the button */
|
|
7
|
-
variant?: ButtonVariant;
|
|
8
|
-
/** Overwrite className */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** Loading state */
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
/** Disabled state */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const RoundButton: (props: RoundButtonProps) => JSX.Element;
|
|
16
|
-
export default RoundButton;
|
|
File without changes
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Props } from 'react-select';
|
|
3
|
-
export interface SelectProps extends Props {
|
|
4
|
-
/** Overwrite className */
|
|
5
|
-
className?: string;
|
|
6
|
-
/** Disabled state */
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
/** Error option */
|
|
9
|
-
error?: string | boolean;
|
|
10
|
-
/** Text to be displayed representing the option */
|
|
11
|
-
label?: string;
|
|
12
|
-
/** [react-select] Array of options that populate the select menu */
|
|
13
|
-
options?: any[];
|
|
14
|
-
/** [react-select] Placeholder for the select value */
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
/** [react-select] The value of the select; reflected by the selected option */
|
|
17
|
-
value?: any;
|
|
18
|
-
/** [react-select] Handle change events on the select */
|
|
19
|
-
onChange?: (e: any) => void;
|
|
20
|
-
/** [react-select] Handle change events on the input */
|
|
21
|
-
onInputChange?: (e: any) => void;
|
|
22
|
-
}
|
|
23
|
-
declare const Select: React.FC<SelectProps>;
|
|
24
|
-
export default Select;
|
|
File without changes
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ClearIndicatorProps, DropdownIndicatorProps } from 'react-select';
|
|
2
|
-
export declare const ClearIndicator: (props: ClearIndicatorProps) => JSX.Element;
|
|
3
|
-
export declare const DropdownIndicator: (props: DropdownIndicatorProps) => JSX.Element;
|
|
4
|
-
interface ErrorIndicator {
|
|
5
|
-
message: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const ErrorIndicator: (props: ErrorIndicator) => JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Props } from 'react-select';
|
|
3
|
-
export interface SelectPaginationProps extends Props {
|
|
4
|
-
/** Overwrite className */
|
|
5
|
-
className?: string;
|
|
6
|
-
/** Disabled state */
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
/** Error option */
|
|
9
|
-
error?: string | boolean;
|
|
10
|
-
/** Text to be displayed representing the option */
|
|
11
|
-
label?: string;
|
|
12
|
-
/** [react-select] Default additional for first request for every search. */
|
|
13
|
-
additional?: any;
|
|
14
|
-
/** [react-select] Debounce timeout for loadOptions calls. 0 by default. */
|
|
15
|
-
debounceTimeout?: any;
|
|
16
|
-
/** [react-select] Function. Async function that take next arguments. */
|
|
17
|
-
loadOptions: any;
|
|
18
|
-
/** [react-select] Placeholder for the select value */
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
/** [react-select] The value of the select; reflected by the selected option */
|
|
21
|
-
value?: any;
|
|
22
|
-
/** [react-select] Function. */
|
|
23
|
-
onChange?: any;
|
|
24
|
-
}
|
|
25
|
-
declare const SelectPagination: React.FC<SelectPaginationProps>;
|
|
26
|
-
export default SelectPagination;
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
interface SkeletonBaseProps {
|
|
3
|
-
/** Overwrite className */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Set the height of skeleton */
|
|
6
|
-
height?: string | number;
|
|
7
|
-
/** Set a max-width */
|
|
8
|
-
maxWidth?: string | number;
|
|
9
|
-
/** Set radius to skeleton */
|
|
10
|
-
radius?: string | number;
|
|
11
|
-
/** Set the width of skeleton */
|
|
12
|
-
width?: string | number;
|
|
13
|
-
}
|
|
14
|
-
declare const SkeletonBase: FC<SkeletonBaseProps>;
|
|
15
|
-
export default SkeletonBase;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
interface StepperProps {
|
|
3
|
-
/** overwrite className */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Use dark colors palette*/
|
|
6
|
-
darkMode?: boolean;
|
|
7
|
-
/** the steps you will have */
|
|
8
|
-
items: string[];
|
|
9
|
-
/** index of the active item */
|
|
10
|
-
itemActive: number;
|
|
11
|
-
}
|
|
12
|
-
declare const Stepper: FC<StepperProps>;
|
|
13
|
-
export default Stepper;
|
|
File without changes
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IconTypes } from '../../../../avocado-icons/src/types/icons.type';
|
|
3
|
-
declare const variants: {
|
|
4
|
-
readonly Outlined: "outlined";
|
|
5
|
-
readonly Filled: "filled";
|
|
6
|
-
};
|
|
7
|
-
export type TagType = typeof variants[keyof typeof variants];
|
|
8
|
-
export type TagSize = 'sm' | 'lg';
|
|
9
|
-
export interface ITag {
|
|
10
|
-
/** Content of the component tag */
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
/** Overwrite className */
|
|
13
|
-
className?: string;
|
|
14
|
-
/** Disabled state */
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
/** Tag variant type */
|
|
17
|
-
type?: TagType;
|
|
18
|
-
/** Icon name */
|
|
19
|
-
icon?: IconTypes;
|
|
20
|
-
/** Action when clicking on the component */
|
|
21
|
-
onClick?: () => void;
|
|
22
|
-
/** Action when clicking on the icon of the component */
|
|
23
|
-
onIconClick?: () => void;
|
|
24
|
-
}
|
|
25
|
-
declare const Tag: React.FC<ITag>;
|
|
26
|
-
export default Tag;
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface TextProps {
|
|
3
|
-
/** Render content */
|
|
4
|
-
children: React.ReactNode | string;
|
|
5
|
-
/** Overwrite className */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Use dark colors palette*/
|
|
8
|
-
darkMode?: boolean;
|
|
9
|
-
/** Type can be */
|
|
10
|
-
type?: 'lg' | 'md' | 'sm' | 'xs';
|
|
11
|
-
/** Weight can be */
|
|
12
|
-
weight?: 'regular' | 'medium';
|
|
13
|
-
}
|
|
14
|
-
declare const Text: FC<TextProps>;
|
|
15
|
-
export default Text;
|
|
File without changes
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DetailedHTMLProps, InputHTMLAttributes, FC } from 'react';
|
|
2
|
-
export interface TextFieldProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
3
|
-
/** Overwrite className */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** If allow to remove input content with clear icon */
|
|
6
|
-
allowClear?: boolean;
|
|
7
|
-
/** Set top label */
|
|
8
|
-
label?: string;
|
|
9
|
-
/** Set validation status */
|
|
10
|
-
status?: 'error' | 'warning' | 'blocked' | 'unsaved';
|
|
11
|
-
/** Set display for validation status */
|
|
12
|
-
statusDisplay?: 'inline' | 'icon';
|
|
13
|
-
/** Set helper text for validation status */
|
|
14
|
-
statusText?: string;
|
|
15
|
-
}
|
|
16
|
-
declare const TextField: FC<TextFieldProps>;
|
|
17
|
-
export default TextField;
|
|
File without changes
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface TimeHTML {
|
|
3
|
-
days0: string;
|
|
4
|
-
days1: string;
|
|
5
|
-
daysBack0: string;
|
|
6
|
-
daysBack1: string;
|
|
7
|
-
hours0: string;
|
|
8
|
-
hours1: string;
|
|
9
|
-
hoursBack0: string;
|
|
10
|
-
hoursBack1: string;
|
|
11
|
-
minutes0: string;
|
|
12
|
-
minutes1: string;
|
|
13
|
-
minutesBack0: string;
|
|
14
|
-
minutesBack1: string;
|
|
15
|
-
}
|
|
16
|
-
export interface TimeValues {
|
|
17
|
-
days: number;
|
|
18
|
-
hours: number;
|
|
19
|
-
minutes: number;
|
|
20
|
-
}
|
|
21
|
-
export interface TimeObject {
|
|
22
|
-
/** set label */
|
|
23
|
-
label: string;
|
|
24
|
-
/** set value */
|
|
25
|
-
value: number;
|
|
26
|
-
}
|
|
27
|
-
export interface Time {
|
|
28
|
-
/** set remaining days */
|
|
29
|
-
days: TimeObject;
|
|
30
|
-
/** set remaining hours between 0 and 23*/
|
|
31
|
-
hours: TimeObject;
|
|
32
|
-
/** set remaining minutes between 0 and 59 */
|
|
33
|
-
minutes: TimeObject;
|
|
34
|
-
}
|
|
35
|
-
export interface TimerProps {
|
|
36
|
-
/** overwrite className */
|
|
37
|
-
className?: string;
|
|
38
|
-
/** set milliSeconds interval */
|
|
39
|
-
milliSecondsInterval?: number;
|
|
40
|
-
/** set startCountDown */
|
|
41
|
-
startCountDown?: boolean;
|
|
42
|
-
/** set remaining time */
|
|
43
|
-
time: Time;
|
|
44
|
-
/** event when finish */
|
|
45
|
-
onFinish?: () => void;
|
|
46
|
-
}
|
|
47
|
-
declare const Timer: FC<TimerProps>;
|
|
48
|
-
export default Timer;
|
|
File without changes
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Time, TimeHTML } from './Timer';
|
|
2
|
-
export declare const getTimeValues: (time: Time) => {
|
|
3
|
-
days: number;
|
|
4
|
-
hours: number;
|
|
5
|
-
minutes: number;
|
|
6
|
-
};
|
|
7
|
-
export declare const getTotalTime: (data: Time) => number;
|
|
8
|
-
export declare const defaultTimerHTML: (data: Time) => TimeHTML;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
declare enum PlacementEnum {
|
|
3
|
-
bottom = "bottom",
|
|
4
|
-
bottomLeft = "bottomLeft",
|
|
5
|
-
bottomRight = "bottomRight",
|
|
6
|
-
top = "top",
|
|
7
|
-
topLeft = "topLeft",
|
|
8
|
-
topRight = "topRight",
|
|
9
|
-
left = "left",
|
|
10
|
-
right = "right"
|
|
11
|
-
}
|
|
12
|
-
export interface TooltipProps {
|
|
13
|
-
/** Children component */
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
/** Overwrite className */
|
|
16
|
-
className?: string;
|
|
17
|
-
/** The label of the tooltip */
|
|
18
|
-
label: string;
|
|
19
|
-
/** The placement of the popper relative to its reference */
|
|
20
|
-
placement?: keyof typeof PlacementEnum;
|
|
21
|
-
}
|
|
22
|
-
declare const Tooltip: FC<TooltipProps>;
|
|
23
|
-
export default Tooltip;
|
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { AVOCADO_LIGHT_THEME, AVOCADO_DARK_THEME } from '../../constants/theme.constants';
|
|
3
|
-
import { Theme } from '../../types/theme.types';
|
|
4
|
-
type ThemeContextType = {
|
|
5
|
-
theme: Theme;
|
|
6
|
-
};
|
|
7
|
-
declare const ThemeContext: React.Context<ThemeContextType | undefined>;
|
|
8
|
-
type ThemeProviderProps = {
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
theme?: Theme;
|
|
11
|
-
};
|
|
12
|
-
declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
13
|
-
export { ThemeContext, ThemeProvider, AVOCADO_LIGHT_THEME, AVOCADO_DARK_THEME };
|