|
1 | 1 | <script lang="ts">
|
2 |
| - import type { SwitchProps } from './switch' |
| 2 | + import type { SvelteSwitchProps } from './switch' |
3 | 3 |
|
4 | 4 | import styles from './switch.module.scss'
|
5 | 5 | import { classNames } from '../../utils/classNames'
|
6 | 6 |
|
7 |
| - export let label: SwitchProps['label'] = '' |
8 |
| - export let toggled: SwitchProps['toggled'] = false |
9 |
| - export let offColor: SwitchProps['offColor'] = '' |
10 |
| - export let onColor: SwitchProps['onColor'] = '' |
11 |
| - export let reverse: SwitchProps['reverse'] = false |
12 |
| - export let small: SwitchProps['small'] = false |
13 |
| - export let square: SwitchProps['square'] = false |
14 |
| - export let disabled: SwitchProps['disabled'] = false |
15 |
| - export let className: SwitchProps['className'] = '' |
16 |
| - export let onClick: () => any = () => {} |
| 7 | + export let label: SvelteSwitchProps['label'] = '' |
| 8 | + export let toggled: SvelteSwitchProps['toggled'] = false |
| 9 | + export let offColor: SvelteSwitchProps['offColor'] = '' |
| 10 | + export let onColor: SvelteSwitchProps['onColor'] = '' |
| 11 | + export let reverse: SvelteSwitchProps['reverse'] = false |
| 12 | + export let small: SvelteSwitchProps['small'] = false |
| 13 | + export let square: SvelteSwitchProps['square'] = false |
| 14 | + export let disabled: SvelteSwitchProps['disabled'] = false |
| 15 | + export let className: SvelteSwitchProps['className'] = '' |
| 16 | + export let onClick: SvelteSwitchProps['onClick'] = () => {} |
17 | 17 |
|
18 | 18 | const classes = classNames([
|
19 | 19 | styles.switch,
|
|
0 commit comments