@foris/avocado-suite 0.15.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 +3329 -3271
- package/dist/avocado-suite.umd.js +111 -105
- package/dist/components/switch/Switch.d.ts +15 -0
- package/dist/components/switch/Switch.test.d.ts +0 -0
- package/dist/index.d.ts +2 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
@@ -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
@@ -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
|
*/
|