@instructure/ui-drawer-layout 8.8.1-snapshot.8 → 8.9.1
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 +10 -0
- package/es/DrawerLayout/DrawerContent/index.js +5 -17
- package/{src/DrawerLayout/DrawerContent/types.ts → es/DrawerLayout/DrawerContent/props.js} +13 -12
- package/es/DrawerLayout/DrawerTray/index.js +7 -114
- package/es/DrawerLayout/DrawerTray/props.js +126 -0
- package/es/DrawerLayout/index.js +5 -27
- package/es/DrawerLayout/props.js +49 -0
- package/lib/DrawerLayout/DrawerContent/index.js +6 -18
- package/{src/DrawerLayout/types.ts → lib/DrawerLayout/DrawerContent/props.js} +24 -10
- package/lib/DrawerLayout/DrawerTray/index.js +8 -116
- package/lib/DrawerLayout/DrawerTray/props.js +139 -0
- package/lib/DrawerLayout/index.js +6 -29
- package/lib/DrawerLayout/props.js +64 -0
- package/package.json +22 -23
- package/src/DrawerLayout/DrawerContent/index.tsx +9 -19
- package/src/DrawerLayout/DrawerContent/props.ts +69 -0
- package/src/DrawerLayout/DrawerContent/styles.ts +1 -1
- package/src/DrawerLayout/DrawerTray/index.tsx +33 -108
- package/src/DrawerLayout/DrawerTray/props.ts +205 -0
- package/src/DrawerLayout/DrawerTray/styles.ts +1 -1
- package/src/DrawerLayout/index.tsx +6 -27
- package/src/DrawerLayout/props.ts +75 -0
- package/src/index.ts +3 -3
- package/types/DrawerLayout/DrawerContent/index.d.ts +15 -14
- package/types/DrawerLayout/DrawerContent/index.d.ts.map +1 -1
- package/types/DrawerLayout/DrawerContent/props.d.ts +21 -0
- package/types/DrawerLayout/DrawerContent/props.d.ts.map +1 -0
- package/types/DrawerLayout/DrawerContent/styles.d.ts +1 -1
- package/types/DrawerLayout/DrawerTray/index.d.ts +3 -91
- package/types/DrawerLayout/DrawerTray/index.d.ts.map +1 -1
- package/types/DrawerLayout/DrawerTray/{types.d.ts → props.d.ts} +17 -10
- package/types/DrawerLayout/DrawerTray/props.d.ts.map +1 -0
- package/types/DrawerLayout/DrawerTray/styles.d.ts +1 -1
- package/types/DrawerLayout/index.d.ts +3 -21
- package/types/DrawerLayout/index.d.ts.map +1 -1
- package/types/DrawerLayout/props.d.ts +17 -0
- package/types/DrawerLayout/props.d.ts.map +1 -0
- package/types/index.d.ts +3 -3
- package/LICENSE.md +0 -27
- package/es/DrawerLayout/DrawerContent/types.js +0 -1
- package/es/DrawerLayout/DrawerTray/types.js +0 -1
- package/es/DrawerLayout/types.js +0 -1
- package/lib/DrawerLayout/DrawerContent/types.js +0 -1
- package/lib/DrawerLayout/DrawerTray/types.js +0 -1
- package/lib/DrawerLayout/types.js +0 -1
- package/src/DrawerLayout/DrawerTray/types.ts +0 -72
- package/types/DrawerLayout/DrawerContent/types.d.ts +0 -12
- package/types/DrawerLayout/DrawerContent/types.d.ts.map +0 -1
- package/types/DrawerLayout/DrawerTray/types.d.ts.map +0 -1
- package/types/DrawerLayout/types.d.ts +0 -9
- package/types/DrawerLayout/types.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAQxD,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,SAAS,CAAA;AAEhB;;;;;GAKG;AACH,cAGM,UAAW,SAAQ,SAAS,CAChC,qBAAqB,EACrB,qBAAqB,CACtB;IACC,MAAM,CAAC,QAAQ,CAAC,WAAW,sBAA+B;IAE1D,MAAM,CAAC,gBAAgB,SAAqB;IAE5C,MAAM,CAAC,SAAS,2cAAY;IAC5B,MAAM,CAAC,YAAY,iZAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;2BAmBE,GAAG;MACvB;IAED,KAAK,EAAE,qBAAqB,CAG3B;IAED,QAAQ,CAAC,EAAE,UAAU,CAAO;IAE5B,iBAAiB;IAKjB,kBAAkB,CAAC,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG;IAShE,cAAc,QAAO,0BAA0B,CAI9C;IAED,IAAI,SAAS,wBAMZ;IAED,IAAI,SAAS,qBAEZ;IAED,IAAI,UAAU,WAEb;IAED,gBAAgB,SAAU,GAAG,UAM5B;IAED,uBAAuB,aAEtB;IAED,sBAAsB,aAIrB;IAED,gBAAgB,aAAc,UAAU,UAKvC;IAED,IAAI,OAAO,IAIK,UAAU,CAFzB;IAED,IAAI,OAAO,CAAC,EAAE,EAAE,UAAU,EAEzB;IAED,aAAa;IAYb,MAAM;CAkHP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { PositionMountNode } from '@instructure/ui-position';
|
|
3
3
|
import type { BidirectionalProps } from '@instructure/ui-i18n';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import type { WithStyleProps } from '@instructure/emotion';
|
|
5
|
+
import type { PropValidators } from '@instructure/shared-types';
|
|
6
|
+
declare type DrawerTrayPlacement = 'start' | 'end';
|
|
7
|
+
declare type DrawerLayoutTrayOwnProps = {
|
|
6
8
|
label: string;
|
|
9
|
+
children?: React.ReactNode | ((...args: any[]) => React.ReactNode);
|
|
7
10
|
render?: (...args: any[]) => any;
|
|
8
11
|
placement?: DrawerTrayPlacement;
|
|
9
12
|
open?: boolean;
|
|
@@ -27,15 +30,19 @@ export declare type DrawerLayoutTrayOwnProps = {
|
|
|
27
30
|
shouldReturnFocus?: boolean;
|
|
28
31
|
shouldCloseOnDocumentClick?: boolean;
|
|
29
32
|
shouldCloseOnEscape?: boolean;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
export declare type DrawerLayoutTrayProps = DrawerLayoutTrayOwnProps & BidirectionalProps;
|
|
34
|
-
export declare type DrawerLayoutTrayState = {
|
|
33
|
+
} & BidirectionalProps;
|
|
34
|
+
declare type DrawerLayoutTrayState = {
|
|
35
35
|
transitioning: boolean;
|
|
36
36
|
portalOpen: boolean;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
declare type DrawerLayoutTrayStyleProps = {
|
|
39
39
|
placement: DrawerTrayPlacement;
|
|
40
40
|
};
|
|
41
|
-
|
|
41
|
+
declare type PropKeys = keyof DrawerLayoutTrayOwnProps;
|
|
42
|
+
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
43
|
+
declare type DrawerLayoutTrayProps = DrawerLayoutTrayOwnProps & WithStyleProps;
|
|
44
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
45
|
+
declare const allowedProps: AllowedPropKeys;
|
|
46
|
+
export type { DrawerLayoutTrayProps, DrawerLayoutTrayState, DrawerLayoutTrayStyleProps, DrawerTrayPlacement };
|
|
47
|
+
export { propTypes, allowedProps };
|
|
48
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAA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EACpB,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
import { DrawerContent } from './DrawerContent';
|
|
5
4
|
import { DrawerTray } from './DrawerTray';
|
|
6
5
|
import { jsx } from '@instructure/emotion';
|
|
7
|
-
import { DrawerLayoutProps } from './
|
|
6
|
+
import type { DrawerLayoutProps } from './props';
|
|
8
7
|
/**
|
|
9
8
|
---
|
|
10
9
|
category: components
|
|
@@ -13,25 +12,8 @@ category: components
|
|
|
13
12
|
declare class DrawerLayout extends Component<DrawerLayoutProps> {
|
|
14
13
|
static readonly componentId = "DrawerLayout";
|
|
15
14
|
static locatorAttribute: string;
|
|
16
|
-
static propTypes:
|
|
17
|
-
|
|
18
|
-
* Exactly one of each of the following child types: `DrawerLayout.Content`, `DrawerLayout.Tray`
|
|
19
|
-
*/
|
|
20
|
-
children: (props: Record<string, any>, propName: string, componentName: string) => Error | null;
|
|
21
|
-
/**
|
|
22
|
-
* Min width for the `<DrawerLayout.Content />`
|
|
23
|
-
*/
|
|
24
|
-
minWidth: PropTypes.Requireable<string>;
|
|
25
|
-
/**
|
|
26
|
-
* Function called when the `<DrawerLayout.Content />` is resized and hits the `minWidth` breakpoint
|
|
27
|
-
* Called with a boolean value, `true` if the tray is now overlaying the content or `false` if
|
|
28
|
-
* it is side by side
|
|
29
|
-
*/
|
|
30
|
-
onOverlayTrayChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
-
makeStyles: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
-
styles: PropTypes.Requireable<object>;
|
|
33
|
-
dir: PropTypes.Requireable<string>;
|
|
34
|
-
};
|
|
15
|
+
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<"children" | "dir" | "minWidth" | "onOverlayTrayChange">;
|
|
16
|
+
static allowedProps: readonly ("children" | "dir" | "minWidth" | "onOverlayTrayChange")[];
|
|
35
17
|
static defaultProps: {
|
|
36
18
|
children: null;
|
|
37
19
|
minWidth: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAY,SAAS,EAAiB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAY,SAAS,EAAiB,MAAM,OAAO,CAAA;AAc1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;;GAIG;AACH,cAGM,YAAa,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACrD,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,gBAAgB,SAAuB;IAC9C,MAAM,CAAC,SAAS,iIAAY;IAC5B,MAAM,CAAC,YAAY,uEAAe;IAClC,MAAM,CAAC,YAAY;;;;MAKlB;IAED,MAAM,CAAC,OAAO,uBAAgB;IAC9B,MAAM,CAAC,IAAI,oBAAa;gBAGZ,KAAK,KAAA;IAajB,QAAQ,OAAO;IAEf,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,IAAI,SAAS,QAMZ;IAED,IAAI,aAAa,QAIhB;IAED,IAAI,aAAa,QAKhB;IAED,IAAI,YAAY;;;MA2Bf;IAGD,oBAAoB,oBAGnB;IAGD,iBAAiB,CAAC,QAAQ,KAAA,EAAE,SAAS,KAAA,EAAE,YAAY,KAAA,EAAE,eAAe,KAAA;IAapE,YAAY,CAAC,QAAQ,KAAA,EAAE,SAAS,KAAA,EAAE,YAAY,KAAA,EAAE,eAAe,KAAA;;;;;IAgB/D,uBAAuB,CAAC,iBAAiB,KAAA;IAQzC,uBAAuB;;eAiBtB;IAGD,oBAAoB;;eAiBnB;IAED,yBAAyB,aAUxB;IAED,wBAAwB,aAEvB;IAED,cAAc;IAyEd,MAAM;CAYP;AACD,eAAe,YAAY,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,CAAA;AAClD,eAAO,MAAM,mBAAmB,kCAAuB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BidirectionalProps } from '@instructure/ui-i18n';
|
|
3
|
+
import type { WithStyleProps } from '@instructure/emotion';
|
|
4
|
+
import type { PropValidators } from '@instructure/shared-types';
|
|
5
|
+
declare type DrawerLayoutOwnProps = {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
minWidth?: string;
|
|
8
|
+
onOverlayTrayChange?: (...args: any[]) => any;
|
|
9
|
+
} & BidirectionalProps;
|
|
10
|
+
declare type PropKeys = keyof DrawerLayoutOwnProps;
|
|
11
|
+
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
12
|
+
declare type DrawerLayoutProps = DrawerLayoutOwnProps & WithStyleProps;
|
|
13
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
14
|
+
declare const allowedProps: AllowedPropKeys;
|
|
15
|
+
export type { DrawerLayoutProps };
|
|
16
|
+
export { propTypes, allowedProps };
|
|
17
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/props.ts"],"names":[],"mappings":";AAgCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mBAAmB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;CAC9C,GAAG,kBAAkB,CAAA;AAEtB,aAAK,QAAQ,GAAG,MAAM,oBAAoB,CAAA;AAE1C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,iBAAiB,GAAG,oBAAoB,GAAG,cAAc,CAAA;AAE9D,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAgBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAKnB,CAAA;AAED,YAAY,EAAE,iBAAiB,EAAE,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DrawerLayout, DrawerContent } from './DrawerLayout';
|
|
2
|
-
export type { DrawerLayoutProps } from './DrawerLayout/
|
|
3
|
-
export type { DrawerLayoutContentProps } from './DrawerLayout/DrawerContent/
|
|
4
|
-
export type { DrawerLayoutTrayProps } from './DrawerLayout/DrawerTray/
|
|
2
|
+
export type { DrawerLayoutProps } from './DrawerLayout/props';
|
|
3
|
+
export type { DrawerLayoutContentProps } from './DrawerLayout/DrawerContent/props';
|
|
4
|
+
export type { DrawerLayoutTrayProps } from './DrawerLayout/DrawerTray/props';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/LICENSE.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: The MIT License (MIT)
|
|
3
|
-
category: Getting Started
|
|
4
|
-
order: 9
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# The MIT License (MIT)
|
|
8
|
-
|
|
9
|
-
Copyright (c) 2015 Instructure, Inc.
|
|
10
|
-
|
|
11
|
-
**Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions.**
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in all
|
|
19
|
-
copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
-
SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/DrawerLayout/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* The MIT License (MIT)
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2015 - present Instructure, Inc.
|
|
5
|
-
*
|
|
6
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
* in the Software without restriction, including without limitation the rights
|
|
9
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
12
|
-
*
|
|
13
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
* copies or substantial portions of the Software.
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
import type { PositionMountNode } from '@instructure/ui-position'
|
|
26
|
-
import type { BidirectionalProps } from '@instructure/ui-i18n'
|
|
27
|
-
|
|
28
|
-
export type DrawerTrayPlacement = 'start' | 'end'
|
|
29
|
-
|
|
30
|
-
export type DrawerLayoutTrayOwnProps = {
|
|
31
|
-
label: string
|
|
32
|
-
render?: (...args: any[]) => any
|
|
33
|
-
placement?: DrawerTrayPlacement
|
|
34
|
-
open?: boolean
|
|
35
|
-
onOpen?: (...args: any[]) => any
|
|
36
|
-
onClose?: (...args: any[]) => any
|
|
37
|
-
border?: boolean
|
|
38
|
-
shadow?: boolean
|
|
39
|
-
onTransition?: (...args: any[]) => any
|
|
40
|
-
onEnter?: (...args: any[]) => any
|
|
41
|
-
onEntering?: (...args: any[]) => any
|
|
42
|
-
onEntered?: (...args: any[]) => any
|
|
43
|
-
onExit?: (...args: any[]) => any
|
|
44
|
-
onExiting?: (...args: any[]) => any
|
|
45
|
-
onExited?: (...args: any[]) => any
|
|
46
|
-
contentRef?: (...args: any[]) => any
|
|
47
|
-
mountNode?: PositionMountNode
|
|
48
|
-
defaultFocusElement?: React.ReactElement | ((...args: any[]) => any)
|
|
49
|
-
liveRegion?:
|
|
50
|
-
| React.ReactElement[]
|
|
51
|
-
| React.ReactElement
|
|
52
|
-
| ((...args: any[]) => any)
|
|
53
|
-
onDismiss?: (...args: any[]) => any
|
|
54
|
-
shouldContainFocus?: boolean
|
|
55
|
-
shouldReturnFocus?: boolean
|
|
56
|
-
shouldCloseOnDocumentClick?: boolean
|
|
57
|
-
shouldCloseOnEscape?: boolean
|
|
58
|
-
makeStyles?: (...args: any[]) => any
|
|
59
|
-
styles?: any
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export type DrawerLayoutTrayProps = DrawerLayoutTrayOwnProps &
|
|
63
|
-
BidirectionalProps
|
|
64
|
-
|
|
65
|
-
export type DrawerLayoutTrayState = {
|
|
66
|
-
transitioning: boolean
|
|
67
|
-
portalOpen: boolean
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export type DrawerLayoutTrayStyleProps = {
|
|
71
|
-
placement: DrawerTrayPlacement
|
|
72
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare type DrawerLayoutContentProps = {
|
|
2
|
-
label: string;
|
|
3
|
-
contentRef?: (...args: any[]) => any;
|
|
4
|
-
onSizeChange?: (...args: any[]) => any;
|
|
5
|
-
role?: string;
|
|
6
|
-
makeStyles?: (...args: any[]) => any;
|
|
7
|
-
styles?: any;
|
|
8
|
-
};
|
|
9
|
-
export declare type DrawerLayoutContentState = {
|
|
10
|
-
shouldTransition: boolean;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerContent/types.ts"],"names":[],"mappings":"AAwBA,oBAAY,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,YAAY,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,MAAM,CAAC,EAAE,GAAG,CAAA;CACb,CAAA;AAED,oBAAY,wBAAwB,GAAG;IACrC,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/types.ts"],"names":[],"mappings":";AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,oBAAY,mBAAmB,GAAG,OAAO,GAAG,KAAK,CAAA;AAEjD,oBAAY,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IAChC,SAAS,CAAC,EAAE,mBAAmB,CAAA;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I,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACnC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,MAAM,CAAC,EAAE,GAAG,CAAA;CACb,CAAA;AAED,oBAAY,qBAAqB,GAAG,wBAAwB,GAC1D,kBAAkB,CAAA;AAEpB,oBAAY,qBAAqB,GAAG;IAClC,aAAa,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,oBAAY,0BAA0B,GAAG;IACvC,SAAS,EAAE,mBAAmB,CAAA;CAC/B,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { BidirectionalProps } from '@instructure/ui-i18n';
|
|
2
|
-
export declare type DrawerLayoutOwnProps = {
|
|
3
|
-
minWidth?: string;
|
|
4
|
-
onOverlayTrayChange?: (...args: any[]) => any;
|
|
5
|
-
makeStyles?: (...args: any[]) => any;
|
|
6
|
-
styles?: any;
|
|
7
|
-
};
|
|
8
|
-
export declare type DrawerLayoutProps = DrawerLayoutOwnProps & BidirectionalProps;
|
|
9
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/types.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,oBAAY,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mBAAmB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IAC7C,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,MAAM,CAAC,EAAE,GAAG,CAAA;CACb,CAAA;AAED,oBAAY,iBAAiB,GAAG,oBAAoB,GAAG,kBAAkB,CAAA"}
|