@foris/avocado-suite 0.13.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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;
@@ -1,3 +1,3 @@
1
1
  export declare const useTheme: () => {
2
- theme: import("../types/theme.types").Theme;
2
+ theme: import("..").Theme;
3
3
  };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,8 @@
1
+ /**
2
+ * Components
3
+ */
1
4
  import { ThemeProvider } from './contexts/theme/ThemeProvider';
5
+ import * as ThemeStore from './store/useThemeStore';
2
6
  import Box from './components/box/Box';
3
7
  import Breadcrumbs from './components/breadcrumbs/Breadcrumbs';
4
8
  import Button from './components/button/Button';
@@ -6,6 +10,7 @@ import Card from './components/card/Card';
6
10
  import CardNotification from './components/card-notification/CardNotification';
7
11
  import Checkbox from './components/checkbox/Checkbox';
8
12
  import DataTable from './components/DataTable/DataTable';
13
+ import DatePicker from './components/date-picker/DatePicker';
9
14
  import Divider from './components/divider/Divider';
10
15
  import Donut from './components/donut/Donut';
11
16
  import DonutLabels from './components/donut/donut-labels/DonutLabels';
@@ -31,4 +36,10 @@ import TextField from './components/text-field/TextField';
31
36
  import Timer from './components/timer/Timer';
32
37
  import Toaster from './components/toaster/Toaster';
33
38
  import Tooltip from './components/tooltip/Tooltip';
34
- export { ThemeProvider, 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, };
39
+ 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, Tabs, Tag, Text, TextField, ThemeProvider, ThemeStore, Timer, Toaster, Tooltip, };
40
+ /**
41
+ * Types
42
+ */
43
+ export type { ThemeMode, Theme } from './types/theme.types';
44
+ export type { MenuItem } from './types/menu.types';
45
+ export type { BreadcrumbItem } from './components/breadcrumbs/Breadcrumbs';
@@ -0,0 +1,8 @@
1
+ import type { Theme, ThemeMode } from '../types/theme.types';
2
+ type State = {
3
+ theme: Theme;
4
+ };
5
+ export declare const useThemeStore: import("zustand").UseBoundStore<import("zustand").StoreApi<State>>;
6
+ export declare const toggleBodyTheme: (themeMode?: ThemeMode) => void;
7
+ export declare const setThemeMode: (themeMode: ThemeMode, useLocalStorage?: boolean) => void;
8
+ export {};