@instructure/ui-drawer-layout 8.9.2-snapshot.4 → 8.10.1-snapshot.4
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 +4 -0
- package/es/DrawerLayout/DrawerContent/index.js +1 -1
- package/es/DrawerLayout/DrawerTray/index.js +1 -1
- package/lib/DrawerLayout/DrawerContent/index.js +1 -1
- package/lib/DrawerLayout/DrawerTray/index.js +1 -1
- package/package.json +22 -22
- package/src/DrawerLayout/DrawerContent/index.tsx +1 -1
- package/src/DrawerLayout/DrawerContent/props.ts +14 -4
- package/src/DrawerLayout/DrawerContent/styles.ts +7 -3
- package/src/DrawerLayout/DrawerTray/index.tsx +1 -1
- package/src/DrawerLayout/DrawerTray/props.ts +13 -4
- package/src/DrawerLayout/DrawerTray/styles.ts +7 -3
- package/src/DrawerLayout/__examples__/DrawerLayout.examples.tsx +0 -1
- package/src/DrawerLayout/props.ts +6 -3
- package/src/DrawerLayout/styles.ts +3 -1
- package/types/DrawerLayout/DrawerContent/props.d.ts +5 -4
- package/types/DrawerLayout/DrawerContent/props.d.ts.map +1 -1
- package/types/DrawerLayout/DrawerContent/styles.d.ts +3 -17
- package/types/DrawerLayout/DrawerContent/styles.d.ts.map +1 -1
- package/types/DrawerLayout/DrawerTray/props.d.ts +5 -4
- package/types/DrawerLayout/DrawerTray/props.d.ts.map +1 -1
- package/types/DrawerLayout/DrawerTray/styles.d.ts +3 -182
- package/types/DrawerLayout/DrawerTray/styles.d.ts.map +1 -1
- package/types/DrawerLayout/__examples__/DrawerLayout.examples.d.ts.map +1 -1
- package/types/DrawerLayout/props.d.ts +4 -3
- package/types/DrawerLayout/props.d.ts.map +1 -1
- package/types/DrawerLayout/styles.d.ts +2 -7
- package/types/DrawerLayout/styles.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-drawer-layout
|
|
9
|
+
|
|
6
10
|
## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @instructure/ui-drawer-layout
|
|
@@ -121,7 +121,7 @@ let DrawerContent = (_dec = withStyle(generateStyle, generateComponentTheme), _d
|
|
|
121
121
|
style = _this$props.style,
|
|
122
122
|
label = _this$props.label,
|
|
123
123
|
role = _this$props.role;
|
|
124
|
-
return jsx("div", Object.assign({}, omitProps(this.props, DrawerContent.
|
|
124
|
+
return jsx("div", Object.assign({}, omitProps(this.props, DrawerContent.allowedProps, ['shouldTransition']), {
|
|
125
125
|
role: role,
|
|
126
126
|
style: style,
|
|
127
127
|
ref: this.handleContentRef,
|
|
@@ -203,7 +203,7 @@ let DrawerTray = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
|
|
|
203
203
|
onExiting: onExiting,
|
|
204
204
|
onExited: createChainedFunction(this.handleTransitionExited, onExited, onClose),
|
|
205
205
|
unmountOnExit: true
|
|
206
|
-
}, jsx("div", Object.assign({}, omitProps(props, DrawerTray.
|
|
206
|
+
}, jsx("div", Object.assign({}, omitProps(props, DrawerTray.allowedProps), {
|
|
207
207
|
ref: this.handleContentRef,
|
|
208
208
|
css: trayStyles
|
|
209
209
|
}), this.state.transitioning ? this.renderContent() : jsx(Dialog, {
|
|
@@ -113,7 +113,7 @@ let DrawerContent = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defa
|
|
|
113
113
|
style = _this$props.style,
|
|
114
114
|
label = _this$props.label,
|
|
115
115
|
role = _this$props.role;
|
|
116
|
-
return (0, _emotion.jsx)("div", Object.assign({}, (0, _omitProps.omitProps)(this.props, DrawerContent.
|
|
116
|
+
return (0, _emotion.jsx)("div", Object.assign({}, (0, _omitProps.omitProps)(this.props, DrawerContent.allowedProps, ['shouldTransition']), {
|
|
117
117
|
role: role,
|
|
118
118
|
style: style,
|
|
119
119
|
ref: this.handleContentRef,
|
|
@@ -200,7 +200,7 @@ let DrawerTray = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default
|
|
|
200
200
|
onExiting: onExiting,
|
|
201
201
|
onExited: (0, _createChainedFunction.createChainedFunction)(this.handleTransitionExited, onExited, onClose),
|
|
202
202
|
unmountOnExit: true
|
|
203
|
-
}, (0, _emotion.jsx)("div", Object.assign({}, (0, _omitProps.omitProps)(props, DrawerTray.
|
|
203
|
+
}, (0, _emotion.jsx)("div", Object.assign({}, (0, _omitProps.omitProps)(props, DrawerTray.allowedProps), {
|
|
204
204
|
ref: this.handleContentRef,
|
|
205
205
|
css: trayStyles
|
|
206
206
|
}), this.state.transitioning ? this.renderContent() : (0, _emotion.jsx)(_Dialog.Dialog, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-drawer-layout",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.10.1-snapshot.4+6c5c9e653",
|
|
4
4
|
"description": "A main-content-plus-tray layout component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,29 +25,29 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.
|
|
29
|
-
"@instructure/debounce": "8.
|
|
30
|
-
"@instructure/emotion": "8.
|
|
31
|
-
"@instructure/shared-types": "8.
|
|
32
|
-
"@instructure/ui-dialog": "8.
|
|
33
|
-
"@instructure/ui-dom-utils": "8.
|
|
34
|
-
"@instructure/ui-i18n": "8.
|
|
35
|
-
"@instructure/ui-motion": "8.
|
|
36
|
-
"@instructure/ui-portal": "8.
|
|
37
|
-
"@instructure/ui-position": "8.
|
|
38
|
-
"@instructure/ui-prop-types": "8.
|
|
39
|
-
"@instructure/ui-react-utils": "8.
|
|
40
|
-
"@instructure/ui-test-utils": "8.
|
|
41
|
-
"@instructure/ui-testable": "8.
|
|
42
|
-
"@instructure/ui-utils": "8.
|
|
43
|
-
"@instructure/ui-view": "8.
|
|
44
|
-
"@instructure/uid": "8.
|
|
28
|
+
"@instructure/console": "8.10.1-snapshot.4+6c5c9e653",
|
|
29
|
+
"@instructure/debounce": "8.10.1-snapshot.4+6c5c9e653",
|
|
30
|
+
"@instructure/emotion": "8.10.1-snapshot.4+6c5c9e653",
|
|
31
|
+
"@instructure/shared-types": "8.10.1-snapshot.4+6c5c9e653",
|
|
32
|
+
"@instructure/ui-dialog": "8.10.1-snapshot.4+6c5c9e653",
|
|
33
|
+
"@instructure/ui-dom-utils": "8.10.1-snapshot.4+6c5c9e653",
|
|
34
|
+
"@instructure/ui-i18n": "8.10.1-snapshot.4+6c5c9e653",
|
|
35
|
+
"@instructure/ui-motion": "8.10.1-snapshot.4+6c5c9e653",
|
|
36
|
+
"@instructure/ui-portal": "8.10.1-snapshot.4+6c5c9e653",
|
|
37
|
+
"@instructure/ui-position": "8.10.1-snapshot.4+6c5c9e653",
|
|
38
|
+
"@instructure/ui-prop-types": "8.10.1-snapshot.4+6c5c9e653",
|
|
39
|
+
"@instructure/ui-react-utils": "8.10.1-snapshot.4+6c5c9e653",
|
|
40
|
+
"@instructure/ui-test-utils": "8.10.1-snapshot.4+6c5c9e653",
|
|
41
|
+
"@instructure/ui-testable": "8.10.1-snapshot.4+6c5c9e653",
|
|
42
|
+
"@instructure/ui-utils": "8.10.1-snapshot.4+6c5c9e653",
|
|
43
|
+
"@instructure/ui-view": "8.10.1-snapshot.4+6c5c9e653",
|
|
44
|
+
"@instructure/uid": "8.10.1-snapshot.4+6c5c9e653",
|
|
45
45
|
"prop-types": "^15"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@instructure/ui-babel-preset": "8.
|
|
49
|
-
"@instructure/ui-test-locator": "8.
|
|
50
|
-
"@instructure/ui-themes": "8.
|
|
48
|
+
"@instructure/ui-babel-preset": "8.10.1-snapshot.4+6c5c9e653",
|
|
49
|
+
"@instructure/ui-test-locator": "8.10.1-snapshot.4+6c5c9e653",
|
|
50
|
+
"@instructure/ui-themes": "8.10.1-snapshot.4+6c5c9e653"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=16.8 <=17"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"sideEffects": false,
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "6c5c9e653f7ce3d239296f4ed19c5679fdddcd5b"
|
|
60
60
|
}
|
|
@@ -25,8 +25,11 @@
|
|
|
25
25
|
import React from 'react'
|
|
26
26
|
import PropTypes from 'prop-types'
|
|
27
27
|
|
|
28
|
-
import type {
|
|
29
|
-
|
|
28
|
+
import type {
|
|
29
|
+
PropValidators,
|
|
30
|
+
DrawerLayoutContentTheme
|
|
31
|
+
} from '@instructure/shared-types'
|
|
32
|
+
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
30
33
|
|
|
31
34
|
type DrawerLayoutContentOwnProps = {
|
|
32
35
|
label: string
|
|
@@ -44,7 +47,10 @@ type PropKeys = keyof DrawerLayoutContentOwnProps
|
|
|
44
47
|
|
|
45
48
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
46
49
|
|
|
47
|
-
type DrawerLayoutContentProps = DrawerLayoutContentOwnProps &
|
|
50
|
+
type DrawerLayoutContentProps = DrawerLayoutContentOwnProps &
|
|
51
|
+
WithStyleProps<DrawerLayoutContentTheme, DrawerLayoutContentStyle>
|
|
52
|
+
|
|
53
|
+
type DrawerLayoutContentStyle = ComponentStyle<'drawerContent'>
|
|
48
54
|
|
|
49
55
|
const propTypes: PropValidators<PropKeys> = {
|
|
50
56
|
label: PropTypes.string.isRequired,
|
|
@@ -65,5 +71,9 @@ const allowedProps: AllowedPropKeys = [
|
|
|
65
71
|
'role'
|
|
66
72
|
]
|
|
67
73
|
|
|
68
|
-
export type {
|
|
74
|
+
export type {
|
|
75
|
+
DrawerLayoutContentProps,
|
|
76
|
+
DrawerLayoutContentState,
|
|
77
|
+
DrawerLayoutContentStyle
|
|
78
|
+
}
|
|
69
79
|
export { propTypes, allowedProps }
|
|
@@ -22,8 +22,12 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { DrawerLayoutContentTheme } from '@instructure/shared-types'
|
|
26
|
-
import {
|
|
25
|
+
import type { DrawerLayoutContentTheme } from '@instructure/shared-types'
|
|
26
|
+
import type {
|
|
27
|
+
DrawerLayoutContentProps,
|
|
28
|
+
DrawerLayoutContentState,
|
|
29
|
+
DrawerLayoutContentStyle
|
|
30
|
+
} from './props'
|
|
27
31
|
|
|
28
32
|
/**
|
|
29
33
|
* ---
|
|
@@ -40,7 +44,7 @@ const generateStyle = (
|
|
|
40
44
|
// @ts-expect-error no props used here
|
|
41
45
|
props: DrawerLayoutContentProps,
|
|
42
46
|
state: DrawerLayoutContentState
|
|
43
|
-
) => {
|
|
47
|
+
): DrawerLayoutContentStyle => {
|
|
44
48
|
const { shouldTransition } = state
|
|
45
49
|
|
|
46
50
|
const transitionState = shouldTransition
|
|
@@ -30,8 +30,11 @@ import { bidirectional } from '@instructure/ui-i18n'
|
|
|
30
30
|
|
|
31
31
|
import type { PositionMountNode } from '@instructure/ui-position'
|
|
32
32
|
import type { BidirectionalProps } from '@instructure/ui-i18n'
|
|
33
|
-
import type { WithStyleProps } from '@instructure/emotion'
|
|
34
|
-
import type {
|
|
33
|
+
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
34
|
+
import type {
|
|
35
|
+
PropValidators,
|
|
36
|
+
DrawerLayoutTrayTheme
|
|
37
|
+
} from '@instructure/shared-types'
|
|
35
38
|
|
|
36
39
|
type DrawerTrayPlacement = 'start' | 'end'
|
|
37
40
|
|
|
@@ -79,7 +82,12 @@ type PropKeys = keyof DrawerLayoutTrayOwnProps
|
|
|
79
82
|
|
|
80
83
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
81
84
|
|
|
82
|
-
type DrawerLayoutTrayProps = DrawerLayoutTrayOwnProps &
|
|
85
|
+
type DrawerLayoutTrayProps = DrawerLayoutTrayOwnProps &
|
|
86
|
+
WithStyleProps<DrawerLayoutTrayTheme, DrawerLayoutTrayStyle>
|
|
87
|
+
|
|
88
|
+
type DrawerLayoutTrayStyle = ComponentStyle<
|
|
89
|
+
'drawerTray' | 'drawerTrayWithShadow' | 'drawerTrayContent'
|
|
90
|
+
>
|
|
83
91
|
|
|
84
92
|
const propTypes: PropValidators<PropKeys> = {
|
|
85
93
|
label: PropTypes.string.isRequired,
|
|
@@ -200,6 +208,7 @@ export type {
|
|
|
200
208
|
DrawerLayoutTrayProps,
|
|
201
209
|
DrawerLayoutTrayState,
|
|
202
210
|
DrawerLayoutTrayStyleProps,
|
|
203
|
-
DrawerTrayPlacement
|
|
211
|
+
DrawerTrayPlacement,
|
|
212
|
+
DrawerLayoutTrayStyle
|
|
204
213
|
}
|
|
205
214
|
export { propTypes, allowedProps }
|
|
@@ -22,8 +22,12 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { DrawerLayoutTrayTheme } from '@instructure/shared-types'
|
|
26
|
-
import {
|
|
25
|
+
import type { DrawerLayoutTrayTheme } from '@instructure/shared-types'
|
|
26
|
+
import type {
|
|
27
|
+
DrawerLayoutTrayProps,
|
|
28
|
+
DrawerLayoutTrayStyleProps,
|
|
29
|
+
DrawerLayoutTrayStyle
|
|
30
|
+
} from './props'
|
|
27
31
|
|
|
28
32
|
/**
|
|
29
33
|
* ---
|
|
@@ -39,7 +43,7 @@ const generateStyle = (
|
|
|
39
43
|
componentTheme: DrawerLayoutTrayTheme,
|
|
40
44
|
props: DrawerLayoutTrayProps,
|
|
41
45
|
state: DrawerLayoutTrayStyleProps
|
|
42
|
-
) => {
|
|
46
|
+
): DrawerLayoutTrayStyle => {
|
|
43
47
|
const { border } = props
|
|
44
48
|
const { placement } = state
|
|
45
49
|
|
|
@@ -55,7 +55,6 @@ export default {
|
|
|
55
55
|
<DrawerLayout.Content
|
|
56
56
|
key="1"
|
|
57
57
|
label="Drawer content example"
|
|
58
|
-
// @ts-expect-error ts-migrate(6133) FIXME: themeOverride is missing from type
|
|
59
58
|
themeOverride={{ duration: 0 }}
|
|
60
59
|
>
|
|
61
60
|
<div style={{ background: 'white', height: '100%' }}>
|
|
@@ -31,7 +31,7 @@ import { DrawerContent } from './DrawerContent'
|
|
|
31
31
|
import { DrawerTray } from './DrawerTray'
|
|
32
32
|
|
|
33
33
|
import type { BidirectionalProps } from '@instructure/ui-i18n'
|
|
34
|
-
import type { WithStyleProps } from '@instructure/emotion'
|
|
34
|
+
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
35
35
|
import type { PropValidators } from '@instructure/shared-types'
|
|
36
36
|
|
|
37
37
|
type DrawerLayoutOwnProps = {
|
|
@@ -44,7 +44,10 @@ type PropKeys = keyof DrawerLayoutOwnProps
|
|
|
44
44
|
|
|
45
45
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
46
46
|
|
|
47
|
-
type DrawerLayoutProps = DrawerLayoutOwnProps &
|
|
47
|
+
type DrawerLayoutProps = DrawerLayoutOwnProps &
|
|
48
|
+
WithStyleProps<null, DrawerLayoutStyle>
|
|
49
|
+
|
|
50
|
+
type DrawerLayoutStyle = ComponentStyle<'drawerLayout'>
|
|
48
51
|
|
|
49
52
|
const propTypes: PropValidators<PropKeys> = {
|
|
50
53
|
/**
|
|
@@ -71,5 +74,5 @@ const allowedProps: AllowedPropKeys = [
|
|
|
71
74
|
'dir'
|
|
72
75
|
]
|
|
73
76
|
|
|
74
|
-
export type { DrawerLayoutProps }
|
|
77
|
+
export type { DrawerLayoutProps, DrawerLayoutStyle }
|
|
75
78
|
export { propTypes, allowedProps }
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
+
import type { DrawerLayoutStyle } from './props'
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* ---
|
|
27
29
|
* private: true
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
* @param {Object} state the state of the component, the style is applied to
|
|
33
35
|
* @return {Object} The final style object, which will be used in the component
|
|
34
36
|
*/
|
|
35
|
-
const generateStyle = () => {
|
|
37
|
+
const generateStyle = (): DrawerLayoutStyle => {
|
|
36
38
|
return {
|
|
37
39
|
drawerLayout: {
|
|
38
40
|
label: 'drawerLayout',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PropValidators } from '@instructure/shared-types';
|
|
3
|
-
import type { WithStyleProps } from '@instructure/emotion';
|
|
2
|
+
import type { PropValidators, DrawerLayoutContentTheme } from '@instructure/shared-types';
|
|
3
|
+
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
declare type DrawerLayoutContentOwnProps = {
|
|
5
5
|
label: string;
|
|
6
6
|
children?: React.ReactNode;
|
|
@@ -13,9 +13,10 @@ declare type DrawerLayoutContentState = {
|
|
|
13
13
|
};
|
|
14
14
|
declare type PropKeys = keyof DrawerLayoutContentOwnProps;
|
|
15
15
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
16
|
-
declare type DrawerLayoutContentProps = DrawerLayoutContentOwnProps & WithStyleProps
|
|
16
|
+
declare type DrawerLayoutContentProps = DrawerLayoutContentOwnProps & WithStyleProps<DrawerLayoutContentTheme, DrawerLayoutContentStyle>;
|
|
17
|
+
declare type DrawerLayoutContentStyle = ComponentStyle<'drawerContent'>;
|
|
17
18
|
declare const propTypes: PropValidators<PropKeys>;
|
|
18
19
|
declare const allowedProps: AllowedPropKeys;
|
|
19
|
-
export type { DrawerLayoutContentProps, DrawerLayoutContentState };
|
|
20
|
+
export type { DrawerLayoutContentProps, DrawerLayoutContentState, DrawerLayoutContentStyle };
|
|
20
21
|
export { propTypes, allowedProps };
|
|
21
22
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerContent/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerContent/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EACzB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,2BAA2B,GAAG;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,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;CACd,CAAA;AAED,aAAK,wBAAwB,GAAG;IAC9B,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,2BAA2B,CAAA;AAEjD,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,wBAAwB,GAAG,2BAA2B,GACzD,cAAc,CAAC,wBAAwB,EAAE,wBAAwB,CAAC,CAAA;AAEpE,aAAK,wBAAwB,GAAG,cAAc,CAAC,eAAe,CAAC,CAAA;AAE/D,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CASvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAMnB,CAAA;AAED,YAAY,EACV,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACzB,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DrawerLayoutContentTheme } from '@instructure/shared-types';
|
|
2
|
-
import { DrawerLayoutContentProps, DrawerLayoutContentState } from './props';
|
|
1
|
+
import type { DrawerLayoutContentTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { DrawerLayoutContentProps, DrawerLayoutContentState, DrawerLayoutContentStyle } from './props';
|
|
3
3
|
/**
|
|
4
4
|
* ---
|
|
5
5
|
* private: true
|
|
@@ -10,20 +10,6 @@ import { DrawerLayoutContentProps, DrawerLayoutContentState } from './props';
|
|
|
10
10
|
* @param {Object} state the state of the component, the style is applied to
|
|
11
11
|
* @return {Object} The final style object, which will be used in the component
|
|
12
12
|
*/
|
|
13
|
-
declare const generateStyle: (componentTheme: DrawerLayoutContentTheme, props: DrawerLayoutContentProps, state: DrawerLayoutContentState) =>
|
|
14
|
-
drawerContent: {
|
|
15
|
-
transition: string;
|
|
16
|
-
label: string;
|
|
17
|
-
overflowY: string;
|
|
18
|
-
height: string;
|
|
19
|
-
boxSizing: string;
|
|
20
|
-
} | {
|
|
21
|
-
transition?: undefined;
|
|
22
|
-
label: string;
|
|
23
|
-
overflowY: string;
|
|
24
|
-
height: string;
|
|
25
|
-
boxSizing: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
13
|
+
declare const generateStyle: (componentTheme: DrawerLayoutContentTheme, props: DrawerLayoutContentProps, state: DrawerLayoutContentState) => DrawerLayoutContentStyle;
|
|
28
14
|
export default generateStyle;
|
|
29
15
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerContent/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerContent/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,wBAAwB,SAEjC,wBAAwB,SACxB,wBAAwB,KAC9B,wBAkBF,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
-
import type { WithStyleProps } from '@instructure/emotion';
|
|
5
|
-
import type { PropValidators } from '@instructure/shared-types';
|
|
4
|
+
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
5
|
+
import type { PropValidators, DrawerLayoutTrayTheme } from '@instructure/shared-types';
|
|
6
6
|
declare type DrawerTrayPlacement = 'start' | 'end';
|
|
7
7
|
declare type DrawerLayoutTrayOwnProps = {
|
|
8
8
|
label: string;
|
|
@@ -40,9 +40,10 @@ declare type DrawerLayoutTrayStyleProps = {
|
|
|
40
40
|
};
|
|
41
41
|
declare type PropKeys = keyof DrawerLayoutTrayOwnProps;
|
|
42
42
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
43
|
-
declare type DrawerLayoutTrayProps = DrawerLayoutTrayOwnProps & WithStyleProps
|
|
43
|
+
declare type DrawerLayoutTrayProps = DrawerLayoutTrayOwnProps & WithStyleProps<DrawerLayoutTrayTheme, DrawerLayoutTrayStyle>;
|
|
44
|
+
declare type DrawerLayoutTrayStyle = ComponentStyle<'drawerTray' | 'drawerTrayWithShadow' | 'drawerTrayContent'>;
|
|
44
45
|
declare const propTypes: PropValidators<PropKeys>;
|
|
45
46
|
declare const allowedProps: AllowedPropKeys;
|
|
46
|
-
export type { DrawerLayoutTrayProps, DrawerLayoutTrayState, DrawerLayoutTrayStyleProps, DrawerTrayPlacement };
|
|
47
|
+
export type { DrawerLayoutTrayProps, DrawerLayoutTrayState, DrawerLayoutTrayStyleProps, DrawerTrayPlacement, DrawerLayoutTrayStyle };
|
|
47
48
|
export { propTypes, allowedProps };
|
|
48
49
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +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,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/props.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DrawerLayoutTrayTheme } from '@instructure/shared-types';
|
|
2
|
-
import { DrawerLayoutTrayProps, DrawerLayoutTrayStyleProps } from './props';
|
|
1
|
+
import type { DrawerLayoutTrayTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { DrawerLayoutTrayProps, DrawerLayoutTrayStyleProps, DrawerLayoutTrayStyle } from './props';
|
|
3
3
|
/**
|
|
4
4
|
* ---
|
|
5
5
|
* private: true
|
|
@@ -10,185 +10,6 @@ import { DrawerLayoutTrayProps, DrawerLayoutTrayStyleProps } from './props';
|
|
|
10
10
|
* @param {Object} state the state of the component, the style is applied to
|
|
11
11
|
* @return {Object} The final style object, which will be used in the component
|
|
12
12
|
*/
|
|
13
|
-
declare const generateStyle: (componentTheme: DrawerLayoutTrayTheme, props: DrawerLayoutTrayProps, state: DrawerLayoutTrayStyleProps) =>
|
|
14
|
-
drawerTray: {
|
|
15
|
-
left: number;
|
|
16
|
-
top: number;
|
|
17
|
-
bottom: number;
|
|
18
|
-
borderRightWidth: string | 0;
|
|
19
|
-
borderWidth: number;
|
|
20
|
-
borderColor: string;
|
|
21
|
-
borderStyle: string;
|
|
22
|
-
boxSizing: string;
|
|
23
|
-
position: string;
|
|
24
|
-
backgroundColor: string;
|
|
25
|
-
zIndex: number;
|
|
26
|
-
overflowY: string;
|
|
27
|
-
overflowX: string;
|
|
28
|
-
label: string;
|
|
29
|
-
} | {
|
|
30
|
-
right: number;
|
|
31
|
-
top: number;
|
|
32
|
-
bottom: number;
|
|
33
|
-
borderRightWidth: string | 0;
|
|
34
|
-
borderWidth: number;
|
|
35
|
-
borderColor: string;
|
|
36
|
-
borderStyle: string;
|
|
37
|
-
boxSizing: string;
|
|
38
|
-
position: string;
|
|
39
|
-
backgroundColor: string;
|
|
40
|
-
zIndex: number;
|
|
41
|
-
overflowY: string;
|
|
42
|
-
overflowX: string;
|
|
43
|
-
label: string;
|
|
44
|
-
} | {
|
|
45
|
-
left: number;
|
|
46
|
-
top: number;
|
|
47
|
-
bottom: number;
|
|
48
|
-
borderLeftWidth: string | 0;
|
|
49
|
-
borderWidth: number;
|
|
50
|
-
borderColor: string;
|
|
51
|
-
borderStyle: string;
|
|
52
|
-
boxSizing: string;
|
|
53
|
-
position: string;
|
|
54
|
-
backgroundColor: string;
|
|
55
|
-
zIndex: number;
|
|
56
|
-
overflowY: string;
|
|
57
|
-
overflowX: string;
|
|
58
|
-
label: string;
|
|
59
|
-
} | {
|
|
60
|
-
right: number;
|
|
61
|
-
top: number;
|
|
62
|
-
bottom: number;
|
|
63
|
-
borderLeftWidth: string | 0;
|
|
64
|
-
borderWidth: number;
|
|
65
|
-
borderColor: string;
|
|
66
|
-
borderStyle: string;
|
|
67
|
-
boxSizing: string;
|
|
68
|
-
position: string;
|
|
69
|
-
backgroundColor: string;
|
|
70
|
-
zIndex: number;
|
|
71
|
-
overflowY: string;
|
|
72
|
-
overflowX: string;
|
|
73
|
-
label: string;
|
|
74
|
-
} | {
|
|
75
|
-
left: number;
|
|
76
|
-
top: number;
|
|
77
|
-
bottom: number;
|
|
78
|
-
boxSizing: string;
|
|
79
|
-
position: string;
|
|
80
|
-
backgroundColor: string;
|
|
81
|
-
zIndex: number;
|
|
82
|
-
overflowY: string;
|
|
83
|
-
overflowX: string;
|
|
84
|
-
label: string;
|
|
85
|
-
} | {
|
|
86
|
-
right: number;
|
|
87
|
-
top: number;
|
|
88
|
-
bottom: number;
|
|
89
|
-
boxSizing: string;
|
|
90
|
-
position: string;
|
|
91
|
-
backgroundColor: string;
|
|
92
|
-
zIndex: number;
|
|
93
|
-
overflowY: string;
|
|
94
|
-
overflowX: string;
|
|
95
|
-
label: string;
|
|
96
|
-
};
|
|
97
|
-
drawerTrayWithShadow: {
|
|
98
|
-
boxShadow: string;
|
|
99
|
-
left: number;
|
|
100
|
-
top: number;
|
|
101
|
-
bottom: number;
|
|
102
|
-
borderRightWidth: string | 0;
|
|
103
|
-
borderWidth: number;
|
|
104
|
-
borderColor: string;
|
|
105
|
-
borderStyle: string;
|
|
106
|
-
boxSizing: string;
|
|
107
|
-
position: string;
|
|
108
|
-
backgroundColor: string;
|
|
109
|
-
zIndex: number;
|
|
110
|
-
overflowY: string;
|
|
111
|
-
overflowX: string;
|
|
112
|
-
label: string;
|
|
113
|
-
} | {
|
|
114
|
-
boxShadow: string;
|
|
115
|
-
right: number;
|
|
116
|
-
top: number;
|
|
117
|
-
bottom: number;
|
|
118
|
-
borderRightWidth: string | 0;
|
|
119
|
-
borderWidth: number;
|
|
120
|
-
borderColor: string;
|
|
121
|
-
borderStyle: string;
|
|
122
|
-
boxSizing: string;
|
|
123
|
-
position: string;
|
|
124
|
-
backgroundColor: string;
|
|
125
|
-
zIndex: number;
|
|
126
|
-
overflowY: string;
|
|
127
|
-
overflowX: string;
|
|
128
|
-
label: string;
|
|
129
|
-
} | {
|
|
130
|
-
boxShadow: string;
|
|
131
|
-
left: number;
|
|
132
|
-
top: number;
|
|
133
|
-
bottom: number;
|
|
134
|
-
borderLeftWidth: string | 0;
|
|
135
|
-
borderWidth: number;
|
|
136
|
-
borderColor: string;
|
|
137
|
-
borderStyle: string;
|
|
138
|
-
boxSizing: string;
|
|
139
|
-
position: string;
|
|
140
|
-
backgroundColor: string;
|
|
141
|
-
zIndex: number;
|
|
142
|
-
overflowY: string;
|
|
143
|
-
overflowX: string;
|
|
144
|
-
label: string;
|
|
145
|
-
} | {
|
|
146
|
-
boxShadow: string;
|
|
147
|
-
right: number;
|
|
148
|
-
top: number;
|
|
149
|
-
bottom: number;
|
|
150
|
-
borderLeftWidth: string | 0;
|
|
151
|
-
borderWidth: number;
|
|
152
|
-
borderColor: string;
|
|
153
|
-
borderStyle: string;
|
|
154
|
-
boxSizing: string;
|
|
155
|
-
position: string;
|
|
156
|
-
backgroundColor: string;
|
|
157
|
-
zIndex: number;
|
|
158
|
-
overflowY: string;
|
|
159
|
-
overflowX: string;
|
|
160
|
-
label: string;
|
|
161
|
-
} | {
|
|
162
|
-
boxShadow: string;
|
|
163
|
-
left: number;
|
|
164
|
-
top: number;
|
|
165
|
-
bottom: number;
|
|
166
|
-
boxSizing: string;
|
|
167
|
-
position: string;
|
|
168
|
-
backgroundColor: string;
|
|
169
|
-
zIndex: number;
|
|
170
|
-
overflowY: string;
|
|
171
|
-
overflowX: string;
|
|
172
|
-
label: string;
|
|
173
|
-
} | {
|
|
174
|
-
boxShadow: string;
|
|
175
|
-
right: number;
|
|
176
|
-
top: number;
|
|
177
|
-
bottom: number;
|
|
178
|
-
boxSizing: string;
|
|
179
|
-
position: string;
|
|
180
|
-
backgroundColor: string;
|
|
181
|
-
zIndex: number;
|
|
182
|
-
overflowY: string;
|
|
183
|
-
overflowX: string;
|
|
184
|
-
label: string;
|
|
185
|
-
};
|
|
186
|
-
drawerTrayContent: {
|
|
187
|
-
label: string;
|
|
188
|
-
overflowY: string;
|
|
189
|
-
height: string;
|
|
190
|
-
boxSizing: string;
|
|
191
|
-
};
|
|
192
|
-
};
|
|
13
|
+
declare const generateStyle: (componentTheme: DrawerLayoutTrayTheme, props: DrawerLayoutTrayProps, state: DrawerLayoutTrayStyleProps) => DrawerLayoutTrayStyle;
|
|
193
14
|
export default generateStyle;
|
|
194
15
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/DrawerTray/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACtE,OAAO,KAAK,EACV,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,qBAAqB,SAC9B,qBAAqB,SACrB,0BAA0B,KAChC,qBAuDF,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerLayout.examples.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/__examples__/DrawerLayout.examples.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA4BA,
|
|
1
|
+
{"version":3,"file":"DrawerLayout.examples.d.ts","sourceRoot":"","sources":["../../../src/DrawerLayout/__examples__/DrawerLayout.examples.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA4BA,wBAsDC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { BidirectionalProps } from '@instructure/ui-i18n';
|
|
3
|
-
import type { WithStyleProps } from '@instructure/emotion';
|
|
3
|
+
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
import type { PropValidators } from '@instructure/shared-types';
|
|
5
5
|
declare type DrawerLayoutOwnProps = {
|
|
6
6
|
children?: React.ReactNode;
|
|
@@ -9,9 +9,10 @@ declare type DrawerLayoutOwnProps = {
|
|
|
9
9
|
} & BidirectionalProps;
|
|
10
10
|
declare type PropKeys = keyof DrawerLayoutOwnProps;
|
|
11
11
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
12
|
-
declare type DrawerLayoutProps = DrawerLayoutOwnProps & WithStyleProps
|
|
12
|
+
declare type DrawerLayoutProps = DrawerLayoutOwnProps & WithStyleProps<null, DrawerLayoutStyle>;
|
|
13
|
+
declare type DrawerLayoutStyle = ComponentStyle<'drawerLayout'>;
|
|
13
14
|
declare const propTypes: PropValidators<PropKeys>;
|
|
14
15
|
declare const allowedProps: AllowedPropKeys;
|
|
15
|
-
export type { DrawerLayoutProps };
|
|
16
|
+
export type { DrawerLayoutProps, DrawerLayoutStyle };
|
|
16
17
|
export { propTypes, allowedProps };
|
|
17
18
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +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;
|
|
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,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,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,GAC3C,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAA;AAEzC,aAAK,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAEvD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAgBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAKnB,CAAA;AAED,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DrawerLayoutStyle } from './props';
|
|
1
2
|
/**
|
|
2
3
|
* ---
|
|
3
4
|
* private: true
|
|
@@ -8,12 +9,6 @@
|
|
|
8
9
|
* @param {Object} state the state of the component, the style is applied to
|
|
9
10
|
* @return {Object} The final style object, which will be used in the component
|
|
10
11
|
*/
|
|
11
|
-
declare const generateStyle: () =>
|
|
12
|
-
drawerLayout: {
|
|
13
|
-
label: string;
|
|
14
|
-
position: string;
|
|
15
|
-
height: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
12
|
+
declare const generateStyle: () => DrawerLayoutStyle;
|
|
18
13
|
export default generateStyle;
|
|
19
14
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/styles.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/DrawerLayout/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,QAAO,iBAQzB,CAAA;AAED,eAAe,aAAa,CAAA"}
|