@gridui/modal 1.1.6 → 1.1.8

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,99 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ModalAction
3
+
4
+ Compose ModalAction with Modal inside the same @gridui/modal component family.
5
+
6
+ Import from ``@gridui/modal`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ModalAction } from "@gridui/modal";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/modal/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLButtonElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLButtonElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLButtonElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLButtonElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLButtonElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### size
59
+
60
+ ``"small" | "standard" | "large" | "extra-large" | null | undefined`` · Optional
61
+
62
+ Component size preset.
63
+
64
+ ### iconMotion
65
+
66
+ ``"none" | "outward" | null | undefined`` · Optional
67
+
68
+ ### variant
69
+
70
+ ``"text" | "primary" | "secondary" | "quiet" | "highlight" | "underlined" | null | undefined`` · Optional
71
+
72
+ Visual variant.
73
+
74
+ ### layout
75
+
76
+ ``"cell" | "standard" | "icon" | "entry" | "rail" | "divided" | null | undefined`` · Optional
77
+
78
+ Layout within the containing region.
79
+
80
+ ### startIcon
81
+
82
+ ``ReactNode`` · Optional
83
+
84
+ ### startIconLayout
85
+
86
+ ``"divided" | "inline" | undefined`` · Optional
87
+
88
+ ### startIconSize
89
+
90
+ ``"standard" | "large" | "extra-large" | undefined`` · Optional
91
+
92
+ ### endIcon
93
+
94
+ ``ReactNode`` · Optional
95
+
96
+ ### loading
97
+
98
+ ``boolean | undefined`` · Optional
99
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ModalActions
3
+
4
+ Compose ModalActions with Modal inside the same @gridui/modal component family.
5
+
6
+ Import from ``@gridui/modal`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ModalActions } from "@gridui/modal";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/modal/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
@@ -0,0 +1,63 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ModalBody
3
+
4
+ Compose ModalBody with Modal inside the same @gridui/modal component family.
5
+
6
+ Import from ``@gridui/modal`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ModalBody } from "@gridui/modal";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/modal/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### tabIndex
23
+
24
+ ``number | undefined`` · Optional
25
+
26
+ Default: ``0``
27
+
28
+ ### children
29
+
30
+ ``ReactNode`` · Optional
31
+
32
+ Content rendered inside the component.
33
+
34
+ ### onFocus
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onBlur
41
+
42
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onChange
47
+
48
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onSubmit
53
+
54
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### onClick
59
+
60
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
61
+
62
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
63
+
@@ -0,0 +1,61 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ModalClose
3
+
4
+ Compose ModalClose with Modal inside the same @gridui/modal component family.
5
+
6
+ Import from ``@gridui/modal`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ModalClose } from "@gridui/modal";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/modal/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLButtonElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLButtonElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLButtonElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLButtonElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLButtonElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### asChild
59
+
60
+ ``boolean | undefined`` · Optional
61
+
@@ -0,0 +1,61 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ModalDescription
3
+
4
+ Compose ModalDescription with Modal inside the same @gridui/modal component family.
5
+
6
+ Import from ``@gridui/modal`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ModalDescription } from "@gridui/modal";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/modal/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLParagraphElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLParagraphElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLParagraphElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLParagraphElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLParagraphElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### asChild
59
+
60
+ ``boolean | undefined`` · Optional
61
+
@@ -0,0 +1,55 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ModalFooterNote
3
+
4
+ Public ModalFooterNote component from @gridui/modal. See the package guide for its composition contract.
5
+
6
+ Import from ``@gridui/modal`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ModalFooterNote } from "@gridui/modal";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/modal/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ ## API
17
+
18
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
19
+
20
+ ### children
21
+
22
+ ``ReactNode`` · Optional
23
+
24
+ Content rendered inside the component.
25
+
26
+ ### onFocus
27
+
28
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
29
+
30
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
31
+
32
+ ### onBlur
33
+
34
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
35
+
36
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
37
+
38
+ ### onChange
39
+
40
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
41
+
42
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
43
+
44
+ ### onSubmit
45
+
46
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
47
+
48
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
49
+
50
+ ### onClick
51
+
52
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
53
+
54
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
55
+
@@ -0,0 +1,63 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ModalFooter
3
+
4
+ Compose ModalFooter with Modal inside the same @gridui/modal component family.
5
+
6
+ Import from ``@gridui/modal`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ModalFooter } from "@gridui/modal";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/modal/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### paddingBlock
59
+
60
+ ``ModalSpacing | undefined`` · Optional
61
+
62
+ Default: ``24``
63
+
@@ -0,0 +1,67 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ModalHeader
3
+
4
+ Compose ModalHeader with Modal inside the same @gridui/modal component family.
5
+
6
+ Import from ``@gridui/modal`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ModalHeader } from "@gridui/modal";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/modal/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### paddingBlock
59
+
60
+ ``ModalSpacing | undefined`` · Optional
61
+
62
+ Default: ``24``
63
+
64
+ ### closeLabel
65
+
66
+ ``string`` · Required
67
+
@@ -0,0 +1,119 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ModalPanel
3
+
4
+ Compose ModalPanel with Modal inside the same @gridui/modal component family.
5
+
6
+ Import from ``@gridui/modal`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ModalPanel } from "@gridui/modal";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/modal/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/modal/stories/modal.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### forceMount
23
+
24
+ ``true | undefined`` · Optional
25
+
26
+ Used to force mounting when more control is needed. Useful when
27
+ controlling animation with React animation libraries.
28
+
29
+ ### children
30
+
31
+ ``ReactNode`` · Optional
32
+
33
+ Content rendered inside the component.
34
+
35
+ ### onFocus
36
+
37
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
38
+
39
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
40
+
41
+ ### onBlur
42
+
43
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
44
+
45
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
46
+
47
+ ### onChange
48
+
49
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
50
+
51
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
52
+
53
+ ### onSubmit
54
+
55
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
56
+
57
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
58
+
59
+ ### onClick
60
+
61
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
62
+
63
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
64
+
65
+ ### asChild
66
+
67
+ ``boolean | undefined`` · Optional
68
+
69
+ ### deferPointerDownOutside
70
+
71
+ ``boolean | undefined`` · Optional
72
+
73
+ When `true`, a `'pointerdown'` event outside of the layered element will
74
+ wait for the interaction's click event before dispatching, allowing
75
+ third-party code to stop propagation of later events and cancel dismissal.
76
+
77
+ ### onEscapeKeyDown
78
+
79
+ ``(event: KeyboardEvent): void`` · Optional
80
+
81
+ Event handler called when the escape key is down.
82
+ Can be prevented.
83
+
84
+ ### onPointerDownOutside
85
+
86
+ ``(event: CustomEvent<{ originalEvent: PointerEvent; }>): void`` · Optional
87
+
88
+ Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
89
+ Can be prevented.
90
+
91
+ ### onFocusOutside
92
+
93
+ ``(event: CustomEvent<{ originalEvent: FocusEvent; }>): void`` · Optional
94
+
95
+ Event handler called when the focus moves outside of the `DismissableLayer`.
96
+ Can be prevented.
97
+
98
+ ### onInteractOutside
99
+
100
+ ``(event: CustomEvent<{ originalEvent: PointerEvent; }> | CustomEvent<{ originalEvent: FocusEvent; }>): void`` · Optional
101
+
102
+ Event handler called when an interaction happens outside the `DismissableLayer`.
103
+ Specifically, when a `pointerdown` event happens outside or focus moves outside of it.
104
+ Can be prevented.
105
+
106
+ ### onOpenAutoFocus
107
+
108
+ ``(event: Event): void`` · Optional
109
+
110
+ Event handler called when auto-focusing on open.
111
+ Can be prevented.
112
+
113
+ ### onCloseAutoFocus
114
+
115
+ ``(event: Event): void`` · Optional
116
+
117
+ Event handler called when auto-focusing on close.
118
+ Can be prevented.
119
+