@instructure/ui-drawer-layout 9.0.2-snapshot-3 → 9.0.2-snapshot-5
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/CHANGELOG.md +1 -1
- package/es/DrawerLayout/DrawerTray/DrawerTrayLocator.js +1 -1
- package/lib/DrawerLayout/DrawerTray/DrawerTrayLocator.js +1 -1
- package/package.json +21 -21
- package/src/DrawerLayout/DrawerTray/DrawerTrayLocator.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/DrawerLayout/DrawerContent/DrawerContentLocator.d.ts +36 -36
- package/types/DrawerLayout/DrawerContent/index.d.ts +1 -1
- package/types/DrawerLayout/DrawerLayoutLocator.d.ts +126 -126
- package/types/DrawerLayout/DrawerTray/DrawerTrayLocator.d.ts +36 -36
- package/types/DrawerLayout/DrawerTray/index.d.ts +3 -3
- package/types/DrawerLayout/index.d.ts +15 -15
- package/types/DrawerLayout/index.d.ts.map +1 -1
|
@@ -13,7 +13,7 @@ id: DrawerLayout.Tray
|
|
|
13
13
|
declare class DrawerTray extends Component<DrawerLayoutTrayProps, DrawerLayoutTrayState> {
|
|
14
14
|
static readonly componentId: "DrawerLayout.Tray";
|
|
15
15
|
static locatorAttribute: string;
|
|
16
|
-
static propTypes: import("@instructure/shared-types
|
|
16
|
+
static propTypes: import("@instructure/shared-types").PropValidators<"label" | "children" | "contentRef" | "dir" | "open" | "border" | "render" | "placement" | "onOpen" | "onClose" | "shadow" | "mountNode" | keyof {
|
|
17
17
|
defaultFocusElement?: import("@instructure/shared-types").UIElement | undefined;
|
|
18
18
|
liveRegion?: import("@instructure/shared-types").LiveRegion | undefined;
|
|
19
19
|
onDismiss?: ((event: import("react").UIEvent<Element, UIEvent> | import("react").FocusEvent<Element, Element>, documentClick?: boolean | undefined) => void) | undefined;
|
|
@@ -22,7 +22,7 @@ declare class DrawerTray extends Component<DrawerLayoutTrayProps, DrawerLayoutTr
|
|
|
22
22
|
shouldCloseOnDocumentClick?: boolean | undefined;
|
|
23
23
|
shouldCloseOnEscape?: boolean | undefined;
|
|
24
24
|
} | keyof {
|
|
25
|
-
onTransition?: ((toState: import("@instructure/ui-motion
|
|
25
|
+
onTransition?: ((toState: import("@instructure/ui-motion").BaseTransitionStatesType, fromState: import("@instructure/ui-motion").BaseTransitionStatesType) => void) | undefined;
|
|
26
26
|
onEnter?: (() => void) | undefined;
|
|
27
27
|
onEntering?: (() => void) | undefined;
|
|
28
28
|
onEntered?: ((type?: TransitionType | undefined) => void) | undefined;
|
|
@@ -39,7 +39,7 @@ declare class DrawerTray extends Component<DrawerLayoutTrayProps, DrawerLayoutTr
|
|
|
39
39
|
shouldCloseOnDocumentClick?: boolean | undefined;
|
|
40
40
|
shouldCloseOnEscape?: boolean | undefined;
|
|
41
41
|
} | keyof {
|
|
42
|
-
onTransition?: ((toState: import("@instructure/ui-motion
|
|
42
|
+
onTransition?: ((toState: import("@instructure/ui-motion").BaseTransitionStatesType, fromState: import("@instructure/ui-motion").BaseTransitionStatesType) => void) | undefined;
|
|
43
43
|
onEnter?: (() => void) | undefined;
|
|
44
44
|
onEntering?: (() => void) | undefined;
|
|
45
45
|
onEntered?: ((type?: TransitionType | undefined) => void) | undefined;
|
|
@@ -17,7 +17,7 @@ category: components
|
|
|
17
17
|
declare class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutState> {
|
|
18
18
|
static readonly componentId = "DrawerLayout";
|
|
19
19
|
static locatorAttribute: string;
|
|
20
|
-
static propTypes: import("@instructure/shared-types
|
|
20
|
+
static propTypes: import("@instructure/shared-types").PropValidators<"children" | "dir" | "minWidth" | "onOverlayTrayChange">;
|
|
21
21
|
static allowedProps: readonly ("children" | "dir" | "minWidth" | "onOverlayTrayChange")[];
|
|
22
22
|
static defaultProps: {
|
|
23
23
|
minWidth: string;
|
|
@@ -38,8 +38,8 @@ declare class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutStat
|
|
|
38
38
|
render?: (() => React.ReactNode) | undefined;
|
|
39
39
|
placement?: import("./DrawerTray/props").DrawerTrayPlacement | undefined;
|
|
40
40
|
open?: boolean | undefined;
|
|
41
|
-
onOpen?: ((transitionType?: import("@instructure/ui-motion
|
|
42
|
-
onClose?: ((transitionType?: import("@instructure/ui-motion
|
|
41
|
+
onOpen?: ((transitionType?: import("@instructure/ui-motion").TransitionType | undefined) => void) | undefined;
|
|
42
|
+
onClose?: ((transitionType?: import("@instructure/ui-motion").TransitionType | undefined) => void) | undefined;
|
|
43
43
|
border?: boolean | undefined;
|
|
44
44
|
shadow?: boolean | undefined;
|
|
45
45
|
contentRef?: ((element: HTMLDivElement | null) => void) | undefined;
|
|
@@ -53,13 +53,13 @@ declare class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutStat
|
|
|
53
53
|
shouldCloseOnDocumentClick?: boolean | undefined;
|
|
54
54
|
shouldCloseOnEscape?: boolean | undefined;
|
|
55
55
|
} & {
|
|
56
|
-
onTransition?: ((toState: import("@instructure/ui-motion
|
|
56
|
+
onTransition?: ((toState: import("@instructure/ui-motion").BaseTransitionStatesType, fromState: import("@instructure/ui-motion").BaseTransitionStatesType) => void) | undefined;
|
|
57
57
|
onEnter?: (() => void) | undefined;
|
|
58
58
|
onEntering?: (() => void) | undefined;
|
|
59
|
-
onEntered?: ((type?: import("@instructure/ui-motion
|
|
59
|
+
onEntered?: ((type?: import("@instructure/ui-motion").TransitionType | undefined) => void) | undefined;
|
|
60
60
|
onExit?: (() => void) | undefined;
|
|
61
61
|
onExiting?: (() => void) | undefined;
|
|
62
|
-
onExited?: ((type?: import("@instructure/ui-motion
|
|
62
|
+
onExited?: ((type?: import("@instructure/ui-motion").TransitionType | undefined) => void) | undefined;
|
|
63
63
|
} & {
|
|
64
64
|
dir?: "ltr" | "rtl" | undefined;
|
|
65
65
|
} & {
|
|
@@ -68,15 +68,15 @@ declare class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutStat
|
|
|
68
68
|
styles?: import("./DrawerTray/props").DrawerLayoutTrayStyle | undefined;
|
|
69
69
|
makeStyles?: ((extraArgs?: Record<string, unknown> | undefined) => void) | undefined;
|
|
70
70
|
} & {
|
|
71
|
-
themeOverride?: Partial<import("@instructure/shared-types").DrawerLayoutTrayTheme> | ((componentTheme: import("@instructure/shared-types").DrawerLayoutTrayTheme, currentTheme: import("@instructure/shared-types
|
|
71
|
+
themeOverride?: Partial<import("@instructure/shared-types").DrawerLayoutTrayTheme> | ((componentTheme: import("@instructure/shared-types").DrawerLayoutTrayTheme, currentTheme: import("@instructure/shared-types").BaseTheme) => Partial<import("@instructure/shared-types").DrawerLayoutTrayTheme>) | undefined;
|
|
72
72
|
} & Omit<React.AllHTMLAttributes<{
|
|
73
73
|
label: string;
|
|
74
74
|
children?: React.ReactNode | (() => React.ReactNode);
|
|
75
75
|
render?: (() => React.ReactNode) | undefined;
|
|
76
76
|
placement?: import("./DrawerTray/props").DrawerTrayPlacement | undefined;
|
|
77
77
|
open?: boolean | undefined;
|
|
78
|
-
onOpen?: ((transitionType?: import("@instructure/ui-motion
|
|
79
|
-
onClose?: ((transitionType?: import("@instructure/ui-motion
|
|
78
|
+
onOpen?: ((transitionType?: import("@instructure/ui-motion").TransitionType | undefined) => void) | undefined;
|
|
79
|
+
onClose?: ((transitionType?: import("@instructure/ui-motion").TransitionType | undefined) => void) | undefined;
|
|
80
80
|
border?: boolean | undefined;
|
|
81
81
|
shadow?: boolean | undefined;
|
|
82
82
|
contentRef?: ((element: HTMLDivElement | null) => void) | undefined;
|
|
@@ -90,13 +90,13 @@ declare class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutStat
|
|
|
90
90
|
shouldCloseOnDocumentClick?: boolean | undefined;
|
|
91
91
|
shouldCloseOnEscape?: boolean | undefined;
|
|
92
92
|
} & {
|
|
93
|
-
onTransition?: ((toState: import("@instructure/ui-motion
|
|
93
|
+
onTransition?: ((toState: import("@instructure/ui-motion").BaseTransitionStatesType, fromState: import("@instructure/ui-motion").BaseTransitionStatesType) => void) | undefined;
|
|
94
94
|
onEnter?: (() => void) | undefined;
|
|
95
95
|
onEntering?: (() => void) | undefined;
|
|
96
|
-
onEntered?: ((type?: import("@instructure/ui-motion
|
|
96
|
+
onEntered?: ((type?: import("@instructure/ui-motion").TransitionType | undefined) => void) | undefined;
|
|
97
97
|
onExit?: (() => void) | undefined;
|
|
98
98
|
onExiting?: (() => void) | undefined;
|
|
99
|
-
onExited?: ((type?: import("@instructure/ui-motion
|
|
99
|
+
onExited?: ((type?: import("@instructure/ui-motion").TransitionType | undefined) => void) | undefined;
|
|
100
100
|
} & {
|
|
101
101
|
dir?: "ltr" | "rtl" | undefined;
|
|
102
102
|
} & {
|
|
@@ -110,13 +110,13 @@ declare class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutStat
|
|
|
110
110
|
shouldCloseOnDocumentClick?: boolean | undefined;
|
|
111
111
|
shouldCloseOnEscape?: boolean | undefined;
|
|
112
112
|
} | keyof {
|
|
113
|
-
onTransition?: ((toState: import("@instructure/ui-motion
|
|
113
|
+
onTransition?: ((toState: import("@instructure/ui-motion").BaseTransitionStatesType, fromState: import("@instructure/ui-motion").BaseTransitionStatesType) => void) | undefined;
|
|
114
114
|
onEnter?: (() => void) | undefined;
|
|
115
115
|
onEntering?: (() => void) | undefined;
|
|
116
|
-
onEntered?: ((type?: import("@instructure/ui-motion
|
|
116
|
+
onEntered?: ((type?: import("@instructure/ui-motion").TransitionType | undefined) => void) | undefined;
|
|
117
117
|
onExit?: (() => void) | undefined;
|
|
118
118
|
onExiting?: (() => void) | undefined;
|
|
119
|
-
onExited?: ((type?: import("@instructure/ui-motion
|
|
119
|
+
onExited?: ((type?: import("@instructure/ui-motion").TransitionType | undefined) => void) | undefined;
|
|
120
120
|
}> & {
|
|
121
121
|
dir?: "ltr" | "rtl" | undefined;
|
|
122
122
|
} & React.Attributes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Drawer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