@foris/avocado-suite 0.14.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/avocado-suite.es.js +13017 -5963
- package/dist/avocado-suite.umd.js +116 -106
- package/dist/components/date-picker/DatePicker.d.ts +42 -0
- package/dist/components/switch/Switch.d.ts +15 -0
- package/dist/components/switch/Switch.test.d.ts +0 -0
- package/dist/index.d.ts +4 -2
- package/dist/style.css +1 -1
- package/package.json +4 -3
@@ -0,0 +1,42 @@
|
|
1
|
+
import { type FC } from 'react';
|
2
|
+
/**
|
3
|
+
* Documentation props https://reactdatepicker.com/
|
4
|
+
*/
|
5
|
+
export interface DatePickerProps {
|
6
|
+
/** Overwrite className */
|
7
|
+
className?: string;
|
8
|
+
/** Label calendar */
|
9
|
+
label?: string;
|
10
|
+
/** Disabled state */
|
11
|
+
disabled?: boolean;
|
12
|
+
/** Placeholder calendar */
|
13
|
+
placeholder?: string;
|
14
|
+
/** Error calendar */
|
15
|
+
error?: string;
|
16
|
+
/** Clear inputDate*/
|
17
|
+
isClearable?: boolean;
|
18
|
+
/** MinDate state*/
|
19
|
+
minDate?: any;
|
20
|
+
/** MaxDate state*/
|
21
|
+
maxDate?: any;
|
22
|
+
/** SelectedDate state*/
|
23
|
+
selectedDate?: Date;
|
24
|
+
/** DisabledNavigation for past days*/
|
25
|
+
disabledNavigation?: boolean;
|
26
|
+
/** AutoCloseOnSelect state -> for always opened calendar cases*/
|
27
|
+
autoCloseOnSelect?: boolean;
|
28
|
+
/** ExcludeDates state */
|
29
|
+
excludeDates?: any;
|
30
|
+
/** IncludeDates state */
|
31
|
+
includeDates?: any;
|
32
|
+
/** Locale state */
|
33
|
+
locale?: string;
|
34
|
+
/** OnChange function callback */
|
35
|
+
onChange?: (date: Date) => void;
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* Calendar component
|
39
|
+
* Documentation props https://reactdatepicker.com/
|
40
|
+
*/
|
41
|
+
declare const DatePicker: FC<DatePickerProps>;
|
42
|
+
export default DatePicker;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { FC } from 'react';
|
2
|
+
export interface SwitchProps {
|
3
|
+
/** Indicates if the switch is on */
|
4
|
+
checked: boolean;
|
5
|
+
/** overwrite className */
|
6
|
+
className?: string;
|
7
|
+
/** Disables the switch if true */
|
8
|
+
disabled?: boolean;
|
9
|
+
/** Optional label displayed next to the switch */
|
10
|
+
label?: string;
|
11
|
+
/** Callback fired when the switch state changes */
|
12
|
+
onChange: (checked: boolean) => void;
|
13
|
+
}
|
14
|
+
declare const Switch: FC<SwitchProps>;
|
15
|
+
export default Switch;
|
File without changes
|
package/dist/index.d.ts
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
* Components
|
3
3
|
*/
|
4
4
|
import { ThemeProvider } from './contexts/theme/ThemeProvider';
|
5
|
+
import * as ThemeStore from './store/useThemeStore';
|
5
6
|
import Box from './components/box/Box';
|
6
7
|
import Breadcrumbs from './components/breadcrumbs/Breadcrumbs';
|
7
8
|
import Button from './components/button/Button';
|
@@ -9,6 +10,7 @@ import Card from './components/card/Card';
|
|
9
10
|
import CardNotification from './components/card-notification/CardNotification';
|
10
11
|
import Checkbox from './components/checkbox/Checkbox';
|
11
12
|
import DataTable from './components/DataTable/DataTable';
|
13
|
+
import DatePicker from './components/date-picker/DatePicker';
|
12
14
|
import Divider from './components/divider/Divider';
|
13
15
|
import Donut from './components/donut/Donut';
|
14
16
|
import DonutLabels from './components/donut/donut-labels/DonutLabels';
|
@@ -27,6 +29,7 @@ import SelectPagination from './components/select-pagination/SelectPagination';
|
|
27
29
|
import SkeletonBase from './components/skeleton-base/SkeletonBase';
|
28
30
|
import SkeletonCircle from './components/skeleton-circle/SkeletonCircle';
|
29
31
|
import Stepper from './components/stepper/Stepper';
|
32
|
+
import Switch from './components/switch/Switch';
|
30
33
|
import Tabs from './components/tabs/Tabs';
|
31
34
|
import Tag from './components/tag/Tag';
|
32
35
|
import Text from './components/text/Text';
|
@@ -34,8 +37,7 @@ import TextField from './components/text-field/TextField';
|
|
34
37
|
import Timer from './components/timer/Timer';
|
35
38
|
import Toaster from './components/toaster/Toaster';
|
36
39
|
import Tooltip from './components/tooltip/Tooltip';
|
37
|
-
|
38
|
-
export { ThemeProvider, ThemeStore, Box, Breadcrumbs, Button, Card, CardNotification, Checkbox, DataTable, Divider, Donut, DonutLabels, DonutLegend, Heading, Link, Menu, Pager, Pill, Processing, ProgressBar, RadioButton, RoundButton, Select, SelectPagination, SkeletonBase, SkeletonCircle, Stepper, Tabs, Tag, Text, TextField, Timer, Toaster, Tooltip, };
|
40
|
+
export { Box, Breadcrumbs, Button, Card, CardNotification, Checkbox, DataTable, DatePicker, Divider, Donut, DonutLabels, DonutLegend, Heading, Link, Menu, Pager, Pill, Processing, ProgressBar, RadioButton, RoundButton, Select, SelectPagination, SkeletonBase, SkeletonCircle, Stepper, Switch, Tabs, Tag, Text, TextField, ThemeProvider, ThemeStore, Timer, Toaster, Tooltip, };
|
39
41
|
/**
|
40
42
|
* Types
|
41
43
|
*/
|