@foris/avocado-suite 0.5.0 → 0.5.1-beta.1
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/avocado-suite/src/components/button/Button.d.ts +2 -0
- package/dist/avocado-suite/src/components/card/Card.d.ts +6 -4
- package/dist/avocado-suite/src/components/divider/Divider.d.ts +9 -0
- package/dist/avocado-suite/src/components/divider/Divider.test.d.ts +0 -0
- package/dist/avocado-suite/src/components/text-field/TextField.d.ts +17 -0
- 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 +7 -0
- package/dist/avocado-suite/src/index.d.ts +3 -2
- package/dist/avocado-suite.es.js +2330 -2368
- package/dist/avocado-suite.umd.js +63 -22
- package/dist/style.css +1 -1
- package/package.json +3 -3
@@ -6,6 +6,8 @@ export interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAtt
|
|
6
6
|
children: React.ReactNode | string;
|
7
7
|
/** Overwrite className */
|
8
8
|
className?: string;
|
9
|
+
/** Loading state */
|
10
|
+
loading?: boolean;
|
9
11
|
/** Show icon on the left */
|
10
12
|
leftIcon?: IconTypes;
|
11
13
|
/** Show icon on the right */
|
@@ -4,10 +4,12 @@ interface CardProps {
|
|
4
4
|
children: ReactNode;
|
5
5
|
/** Overwrite className */
|
6
6
|
className?: string;
|
7
|
-
/**
|
8
|
-
|
9
|
-
/**
|
10
|
-
|
7
|
+
/** Overwrite content className */
|
8
|
+
classNameContent?: string;
|
9
|
+
/** Disabled state */
|
10
|
+
disabled?: boolean;
|
11
|
+
/** OnClick event */
|
12
|
+
onClick?: () => void;
|
11
13
|
}
|
12
14
|
declare const Card: FC<CardProps>;
|
13
15
|
export default Card;
|
File without changes
|
@@ -0,0 +1,17 @@
|
|
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
|
@@ -5,9 +5,10 @@ import Card from './components/card/Card';
|
|
5
5
|
import Heading from './components/heading/Heading';
|
6
6
|
import Text from './components/text/Text';
|
7
7
|
import Checkbox from './components/checkbox/Checkbox';
|
8
|
-
import Pager from './components/pager/Pager';
|
9
8
|
import RadioButton from './components/radio-button/RadioButton';
|
10
9
|
import Select from './components/select/Select';
|
11
10
|
import SelectPagination from './components/select-pagination/SelectPagination';
|
11
|
+
import Divider from './components/divider/Divider';
|
12
|
+
import TextField from './components/text-field/TextField';
|
12
13
|
import { ThemeProvider } from './contexts/theme/ThemeProvider';
|
13
|
-
export { Box, Breadcrumbs, Button, Card, Checkbox, Heading, Text,
|
14
|
+
export { Box, Breadcrumbs, Button, Card, Checkbox, Heading, Text, RadioButton, Select, SelectPagination, Divider, TextField, ThemeProvider, };
|