@destyler/switch 0.2.12 → 0.2.13
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/index.d.mts +3 -3
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
|
|
2
2
|
import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
|
|
3
3
|
//#region src/anatomy.d.ts
|
|
4
|
-
export declare const anatomy: import("@destyler/anatomy").AnatomyInstance<"
|
|
4
|
+
export declare const anatomy: import("@destyler/anatomy").AnatomyInstance<"label" | "root" | "control" | "thumb">;
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/types.d.ts
|
|
7
7
|
interface CheckedChangeDetails {
|
|
@@ -143,7 +143,7 @@ export declare function connect<T extends PropTypes>(state: State, send: Send, n
|
|
|
143
143
|
export declare function machine(userContext: UserDefinedContext): import("@destyler/xstate").Machine<MachineContext, MachineState, import("@destyler/xstate").AnyEventObject>;
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region src/props.d.ts
|
|
146
|
-
export declare const props: ("
|
|
147
|
-
export declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "
|
|
146
|
+
export declare const props: ("value" | "ids" | "label" | "disabled" | "invalid" | "required" | "readOnly" | "onCheckedChange" | "checked" | "defaultChecked" | "name" | "form" | "dir" | "id" | "getRootNode")[];
|
|
147
|
+
export declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "value" | "ids" | "label" | "disabled" | "invalid" | "required" | "readOnly" | "onCheckedChange" | "checked" | "defaultChecked" | "name" | "form" | "dir" | "id" | "getRootNode">];
|
|
148
148
|
//#endregion
|
|
149
149
|
export type { MachineApi as Api, CheckedChangeDetails, UserDefinedContext as Context, ElementIds, Service };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/switch",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.13",
|
|
5
5
|
"description": "A control that allows the user to toggle between checked and not checked.",
|
|
6
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@destyler/anatomy": "0.2.
|
|
26
|
-
"@destyler/dom": "0.2.
|
|
27
|
-
"@destyler/focus-visible": "0.2.
|
|
28
|
-
"@destyler/types": "0.2.
|
|
29
|
-
"@destyler/utils": "0.2.
|
|
30
|
-
"@destyler/xstate": "0.2.
|
|
25
|
+
"@destyler/anatomy": "0.2.13",
|
|
26
|
+
"@destyler/dom": "0.2.13",
|
|
27
|
+
"@destyler/focus-visible": "0.2.13",
|
|
28
|
+
"@destyler/types": "0.2.13",
|
|
29
|
+
"@destyler/utils": "0.2.13",
|
|
30
|
+
"@destyler/xstate": "0.2.13"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|