reykit 1.0.98 → 1.0.100
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.
- package/dist/components/Toggle.d.ts +11 -7
- package/dist/index.css +1 -1
- package/dist/index.js +21689 -16708
- package/dist/react.d.ts +4 -0
- package/package.json +1 -1
|
@@ -4,16 +4,20 @@ import { ReactNode, ComponentProps } from 'react';
|
|
|
4
4
|
*
|
|
5
5
|
* @param props.openIcon - Open icon.
|
|
6
6
|
* @param props.closeIcon - Close icon.
|
|
7
|
-
* @param props.
|
|
7
|
+
* @param props.tooltip - Tooltip text.
|
|
8
|
+
* @param props.tooltipSide - Tooltip text popup side.
|
|
9
|
+
* @param props.rotate - Whether to use rotating icon animation.
|
|
10
|
+
* @param props.open - Open state value.
|
|
11
|
+
* @param props.onChangeOpen - Open callback function.
|
|
8
12
|
* @param props.defaultOpen - Default open state.
|
|
9
|
-
* @param props.rotate - Whether rotate icon.
|
|
10
|
-
* @param props.listenOpen - Switch icon for listening status value.
|
|
11
13
|
*/
|
|
12
|
-
export declare function IconToggle({ openIcon, closeIcon,
|
|
14
|
+
export declare function IconToggle({ openIcon, closeIcon, tooltip, tooltipSide, rotate, open, onChangeOpen, defaultOpen, onClick, className, ...props }: {
|
|
13
15
|
openIcon: ReactNode;
|
|
14
16
|
closeIcon: ReactNode;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
tooltip?: string;
|
|
18
|
+
tooltipSide?: 'top' | 'bottom' | 'left' | 'right';
|
|
17
19
|
rotate?: boolean;
|
|
18
|
-
|
|
20
|
+
open?: boolean;
|
|
21
|
+
onChangeOpen?: (nextOpen: boolean) => any | Promise<any>;
|
|
22
|
+
defaultOpen?: boolean;
|
|
19
23
|
} & ComponentProps<'button'>): import("react/jsx-runtime").JSX.Element;
|