@destyler/dialog 0.2.0 → 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 +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
|
|
|
5
5
|
import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
|
|
6
6
|
|
|
7
7
|
//#region src/anatomy.d.ts
|
|
8
|
-
declare const anatomy: _destyler_anatomy0.AnatomyInstance<"trigger" | "
|
|
8
|
+
declare const anatomy: _destyler_anatomy0.AnatomyInstance<"trigger" | "positioner" | "backdrop" | "content" | "closeTrigger" | "title" | "description">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|
|
@@ -128,7 +128,7 @@ declare function connect<T extends PropTypes>(state: State, send: Send, normaliz
|
|
|
128
128
|
declare function machine(userContext: UserDefinedContext): _destyler_xstate0.Machine<MachineContext, MachineState, _destyler_xstate0.AnyEventObject>;
|
|
129
129
|
//#endregion
|
|
130
130
|
//#region src/props.d.ts
|
|
131
|
-
declare const props: ("id" | "ids" | "trapFocus" | "preventScroll" | "modal" | "initialFocusEl" | "finalFocusEl" | "restoreFocus" | "onOpenChange" | "closeOnInteractOutside" | "closeOnEscape" | "aria-label" | "role" | "open
|
|
132
|
-
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "id" | "ids" | "trapFocus" | "preventScroll" | "modal" | "initialFocusEl" | "finalFocusEl" | "restoreFocus" | "onOpenChange" | "closeOnInteractOutside" | "closeOnEscape" | "aria-label" | "role" | "open
|
|
131
|
+
declare const props: ("open" | "id" | "ids" | "trapFocus" | "preventScroll" | "modal" | "initialFocusEl" | "finalFocusEl" | "restoreFocus" | "onOpenChange" | "closeOnInteractOutside" | "closeOnEscape" | "aria-label" | "role" | "open.controlled" | "dir" | "getRootNode" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "persistentElements")[];
|
|
132
|
+
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "open" | "id" | "ids" | "trapFocus" | "preventScroll" | "modal" | "initialFocusEl" | "finalFocusEl" | "restoreFocus" | "onOpenChange" | "closeOnInteractOutside" | "closeOnEscape" | "aria-label" | "role" | "open.controlled" | "dir" | "getRootNode" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "persistentElements">];
|
|
133
133
|
//#endregion
|
|
134
134
|
export { type MachineApi as Api, type UserDefinedContext as Context, type ElementIds, type FocusOutsideEvent, type InteractOutsideEvent, type OpenChangeDetails, type PointerDownOutsideEvent, type Service, anatomy, connect, machine, props, splitProps };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/dialog",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1-beta.2",
|
|
5
5
|
"description": "before taking action, please confirm.",
|
|
6
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@destyler/
|
|
26
|
-
"@destyler/
|
|
27
|
-
"@destyler/
|
|
28
|
-
"@destyler/
|
|
29
|
-
"@destyler/
|
|
30
|
-
"@destyler/remove-scroll": "0.2.
|
|
31
|
-
"@destyler/types": "0.2.
|
|
32
|
-
"@destyler/xstate": "0.2.
|
|
33
|
-
"@destyler/utils": "0.2.
|
|
25
|
+
"@destyler/aria-hidden": "0.2.1-beta.2",
|
|
26
|
+
"@destyler/dismissable": "0.2.1-beta.2",
|
|
27
|
+
"@destyler/dom": "0.2.1-beta.2",
|
|
28
|
+
"@destyler/focus-trap": "0.2.1-beta.2",
|
|
29
|
+
"@destyler/anatomy": "0.2.1-beta.2",
|
|
30
|
+
"@destyler/remove-scroll": "0.2.1-beta.2",
|
|
31
|
+
"@destyler/types": "0.2.1-beta.2",
|
|
32
|
+
"@destyler/xstate": "0.2.1-beta.2",
|
|
33
|
+
"@destyler/utils": "0.2.1-beta.2"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|