@destyler/switch 0.2.0-beta.5 → 0.2.1-beta.2
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
|
@@ -4,7 +4,7 @@ import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
|
|
|
4
4
|
import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
|
|
5
5
|
|
|
6
6
|
//#region src/anatomy.d.ts
|
|
7
|
-
declare const anatomy: _destyler_anatomy0.AnatomyInstance<"
|
|
7
|
+
declare const anatomy: _destyler_anatomy0.AnatomyInstance<"label" | "root" | "control" | "thumb">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/types.d.ts
|
|
10
10
|
interface CheckedChangeDetails {
|
|
@@ -141,7 +141,7 @@ declare function connect<T extends PropTypes>(state: State, send: Send, normaliz
|
|
|
141
141
|
declare function machine(userContext: UserDefinedContext): _destyler_xstate0.Machine<MachineContext, MachineState, _destyler_xstate0.AnyEventObject>;
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region src/props.d.ts
|
|
144
|
-
declare const props: ("
|
|
145
|
-
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "
|
|
144
|
+
declare const props: ("value" | "ids" | "label" | "disabled" | "invalid" | "required" | "readOnly" | "onCheckedChange" | "checked" | "name" | "form" | "dir" | "id" | "getRootNode")[];
|
|
145
|
+
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "value" | "ids" | "label" | "disabled" | "invalid" | "required" | "readOnly" | "onCheckedChange" | "checked" | "name" | "form" | "dir" | "id" | "getRootNode">];
|
|
146
146
|
//#endregion
|
|
147
147
|
export { type MachineApi as Api, type CheckedChangeDetails, type UserDefinedContext as Context, type ElementIds, type Service, anatomy, connect, machine, props, splitProps };
|
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.1-beta.2",
|
|
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/
|
|
26
|
-
"@destyler/
|
|
27
|
-
"@destyler/focus-visible": "0.2.
|
|
28
|
-
"@destyler/
|
|
29
|
-
"@destyler/
|
|
30
|
-
"@destyler/
|
|
25
|
+
"@destyler/anatomy": "0.2.1-beta.2",
|
|
26
|
+
"@destyler/dom": "0.2.1-beta.2",
|
|
27
|
+
"@destyler/focus-visible": "0.2.1-beta.2",
|
|
28
|
+
"@destyler/types": "0.2.1-beta.2",
|
|
29
|
+
"@destyler/utils": "0.2.1-beta.2",
|
|
30
|
+
"@destyler/xstate": "0.2.1-beta.2"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|