@foris/avocado-suite 0.15.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -0,0 +1,8 @@
1
+ interface UseCloseSelectProps {
2
+ id?: string;
3
+ }
4
+ export declare const useCloseSelect: ({ id }: UseCloseSelectProps) => {
5
+ uniqueId: string;
6
+ handleCloseSelect: () => void;
7
+ };
8
+ export {};
package/dist/index.d.ts CHANGED
@@ -29,6 +29,7 @@ import SelectPagination from './components/select-pagination/SelectPagination';
29
29
  import SkeletonBase from './components/skeleton-base/SkeletonBase';
30
30
  import SkeletonCircle from './components/skeleton-circle/SkeletonCircle';
31
31
  import Stepper from './components/stepper/Stepper';
32
+ import Switch from './components/switch/Switch';
32
33
  import Tabs from './components/tabs/Tabs';
33
34
  import Tag from './components/tag/Tag';
34
35
  import Text from './components/text/Text';
@@ -36,7 +37,7 @@ import TextField from './components/text-field/TextField';
36
37
  import Timer from './components/timer/Timer';
37
38
  import Toaster from './components/toaster/Toaster';
38
39
  import Tooltip from './components/tooltip/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
+ 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, };
40
41
  /**
41
42
  * Types
42
43
  */