@loadsmart/miranda-react 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
import { Checkbox as WCCheckbox, type CheckboxProps as WCCheckboxProps } from '@loadsmart/miranda-wc';
|
|
4
|
+
export interface CheckboxProps extends Omit<HTMLAttributes<WCCheckbox>, 'onChange'>, WCCheckboxProps {
|
|
5
|
+
leading?: ReactNode;
|
|
6
|
+
onChange?: WCCheckboxProps['m-change'];
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
namespace JSX {
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
'm-checkbox': HTMLAttributes<HTMLElement> & CheckboxProps;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export declare type CheckboxChangeEventDetail = {
|
|
16
|
+
checked: boolean;
|
|
17
|
+
indeterminate: boolean;
|
|
18
|
+
};
|
|
19
|
+
declare function Checkbox(props: CheckboxProps): JSX.Element;
|
|
20
|
+
export default Checkbox;
|