@instructure/ui-drawer-layout 11.7.4-snapshot-14 → 11.7.4-snapshot-50
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/LICENSE.md +1 -0
- package/es/DrawerLayout/v1/DrawerContent/index.js +4 -4
- package/es/DrawerLayout/v1/DrawerTray/index.js +5 -5
- package/es/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.js +2 -2
- package/es/DrawerLayout/v1/index.js +5 -5
- package/es/DrawerLayout/v2/DrawerContent/index.js +3 -3
- package/es/DrawerLayout/v2/DrawerTray/index.js +4 -4
- package/es/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.js +2 -2
- package/es/DrawerLayout/v2/index.js +5 -5
- package/es/exports/a.js +2 -1
- package/es/exports/b.js +2 -1
- package/lib/DrawerLayout/v1/DrawerContent/index.js +4 -4
- package/lib/DrawerLayout/v1/DrawerTray/index.js +5 -5
- package/lib/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.js +2 -2
- package/lib/DrawerLayout/v1/index.js +14 -14
- package/lib/DrawerLayout/v2/DrawerContent/index.js +3 -3
- package/lib/DrawerLayout/v2/DrawerTray/index.js +4 -4
- package/lib/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.js +2 -2
- package/lib/DrawerLayout/v2/index.js +14 -14
- package/lib/exports/a.js +4 -4
- package/lib/exports/b.js +4 -4
- package/package.json +18 -18
- package/src/DrawerLayout/v1/DrawerContent/index.tsx +4 -3
- package/src/DrawerLayout/v1/DrawerTray/index.tsx +5 -4
- package/src/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.tsx +2 -1
- package/src/DrawerLayout/v1/index.tsx +5 -4
- package/src/DrawerLayout/v2/DrawerContent/index.tsx +3 -2
- package/src/DrawerLayout/v2/DrawerTray/index.tsx +4 -3
- package/src/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.tsx +2 -1
- package/src/DrawerLayout/v2/index.tsx +5 -4
- package/src/exports/a.ts +1 -1
- package/src/exports/b.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/DrawerLayout/v1/DrawerContent/index.d.ts +2 -1
- package/types/DrawerLayout/v1/DrawerContent/index.d.ts.map +1 -1
- package/types/DrawerLayout/v1/DrawerTray/index.d.ts +1 -0
- package/types/DrawerLayout/v1/DrawerTray/index.d.ts.map +1 -1
- package/types/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.d.ts +1 -0
- package/types/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.d.ts.map +1 -1
- package/types/DrawerLayout/v1/index.d.ts +3 -2
- package/types/DrawerLayout/v1/index.d.ts.map +1 -1
- package/types/DrawerLayout/v2/DrawerContent/index.d.ts +2 -1
- package/types/DrawerLayout/v2/DrawerContent/index.d.ts.map +1 -1
- package/types/DrawerLayout/v2/DrawerTray/index.d.ts +1 -0
- package/types/DrawerLayout/v2/DrawerTray/index.d.ts.map +1 -1
- package/types/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.d.ts +1 -0
- package/types/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.d.ts.map +1 -1
- package/types/DrawerLayout/v2/index.d.ts +3 -2
- package/types/DrawerLayout/v2/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +1 -1
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +1 -1
- package/types/exports/b.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
|
-
## [11.7.4-snapshot-
|
|
6
|
+
## [11.7.4-snapshot-50](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-50) (2026-06-18)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
package/LICENSE.md
CHANGED
|
@@ -28,9 +28,9 @@ import { debounce } from '@instructure/debounce';
|
|
|
28
28
|
import { getBoundingClientRect } from '@instructure/ui-dom-utils';
|
|
29
29
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
30
30
|
import { withStyle } from '@instructure/emotion';
|
|
31
|
-
import generateStyle from
|
|
32
|
-
import generateComponentTheme from
|
|
33
|
-
import { allowedProps } from
|
|
31
|
+
import generateStyle from './styles.js';
|
|
32
|
+
import generateComponentTheme from './theme.js';
|
|
33
|
+
import { allowedProps } from './props.js';
|
|
34
34
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
35
35
|
/**
|
|
36
36
|
---
|
|
@@ -39,7 +39,7 @@ id: DrawerLayout.Content
|
|
|
39
39
|
---
|
|
40
40
|
**/
|
|
41
41
|
let DrawerContent = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class DrawerContent extends Component {
|
|
42
|
-
static displayName =
|
|
42
|
+
static displayName = 'DrawerContent';
|
|
43
43
|
static componentId = 'DrawerLayout.Content';
|
|
44
44
|
static locatorAttribute = 'data-drawer-content';
|
|
45
45
|
static allowedProps = allowedProps;
|
|
@@ -32,10 +32,10 @@ import { createChainedFunction } from '@instructure/ui-utils';
|
|
|
32
32
|
import { Dialog } from '@instructure/ui-dialog';
|
|
33
33
|
import { Portal } from '@instructure/ui-portal';
|
|
34
34
|
import { mirrorHorizontalPlacement } from '@instructure/ui-position';
|
|
35
|
-
import generateStyle from
|
|
36
|
-
import generateComponentTheme from
|
|
37
|
-
import { DrawerLayoutContext } from
|
|
38
|
-
import { allowedProps } from
|
|
35
|
+
import generateStyle from './styles.js';
|
|
36
|
+
import generateComponentTheme from './theme.js';
|
|
37
|
+
import { DrawerLayoutContext } from '../index.js';
|
|
38
|
+
import { allowedProps } from './props.js';
|
|
39
39
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
40
40
|
/**
|
|
41
41
|
---
|
|
@@ -44,7 +44,7 @@ id: DrawerLayout.Tray
|
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
46
|
let DrawerTray = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = textDirectionContextConsumer(), _dec(_class = _dec2(_class = class DrawerTray extends Component {
|
|
47
|
-
static displayName =
|
|
47
|
+
static displayName = 'DrawerTray';
|
|
48
48
|
static componentId = 'DrawerLayout.Tray';
|
|
49
49
|
static locatorAttribute = 'data-drawer-tray';
|
|
50
50
|
static allowedProps = allowedProps;
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react';
|
|
26
|
-
import { DrawerLayout } from
|
|
26
|
+
import { DrawerLayout } from '../index.js';
|
|
27
27
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
28
28
|
export default class DrawerLayoutFixture extends Component {
|
|
29
|
-
static displayName =
|
|
29
|
+
static displayName = 'DrawerLayoutFixture';
|
|
30
30
|
static defaultProps = {
|
|
31
31
|
layoutWidth: '600px',
|
|
32
32
|
trayWidth: '200px',
|
|
@@ -30,11 +30,11 @@ import { getBoundingClientRect } from '@instructure/ui-dom-utils';
|
|
|
30
30
|
import { createChainedFunction, px } from '@instructure/ui-utils';
|
|
31
31
|
import { logError as error } from '@instructure/console';
|
|
32
32
|
import { mirrorHorizontalPlacement } from '@instructure/ui-position';
|
|
33
|
-
import { DrawerContent } from
|
|
34
|
-
import { DrawerTray } from
|
|
33
|
+
import { DrawerContent } from './DrawerContent/index.js';
|
|
34
|
+
import { DrawerTray } from './DrawerTray/index.js';
|
|
35
35
|
import { withStyle } from '@instructure/emotion';
|
|
36
|
-
import generateStyle from
|
|
37
|
-
import { allowedProps } from
|
|
36
|
+
import generateStyle from './styles.js';
|
|
37
|
+
import { allowedProps } from './props.js';
|
|
38
38
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
39
39
|
/**
|
|
40
40
|
---
|
|
@@ -42,7 +42,7 @@ category: components
|
|
|
42
42
|
---
|
|
43
43
|
**/
|
|
44
44
|
let DrawerLayout = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, null), _dec3 = textDirectionContextConsumer(), _dec(_class = _dec2(_class = _dec3(_class = class DrawerLayout extends Component {
|
|
45
|
-
static displayName =
|
|
45
|
+
static displayName = 'DrawerLayout';
|
|
46
46
|
static componentId = 'DrawerLayout';
|
|
47
47
|
static locatorAttribute = 'data-drawer-layout';
|
|
48
48
|
static allowedProps = allowedProps;
|
|
@@ -28,8 +28,8 @@ import { debounce } from '@instructure/debounce';
|
|
|
28
28
|
import { getBoundingClientRect } from '@instructure/ui-dom-utils';
|
|
29
29
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
30
30
|
import { withStyleNew } from '@instructure/emotion';
|
|
31
|
-
import generateStyle from
|
|
32
|
-
import { allowedProps } from
|
|
31
|
+
import generateStyle from './styles.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
33
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
34
34
|
/**
|
|
35
35
|
---
|
|
@@ -38,7 +38,7 @@ id: DrawerLayout.Content
|
|
|
38
38
|
---
|
|
39
39
|
**/
|
|
40
40
|
let DrawerContent = (_dec = withStyleNew(generateStyle), _dec(_class = class DrawerContent extends Component {
|
|
41
|
-
static displayName =
|
|
41
|
+
static displayName = 'DrawerContent';
|
|
42
42
|
static componentId = 'DrawerLayout.Content';
|
|
43
43
|
static locatorAttribute = 'data-drawer-content';
|
|
44
44
|
static allowedProps = allowedProps;
|
|
@@ -32,9 +32,9 @@ import { createChainedFunction } from '@instructure/ui-utils';
|
|
|
32
32
|
import { Dialog } from '@instructure/ui-dialog';
|
|
33
33
|
import { Portal } from '@instructure/ui-portal';
|
|
34
34
|
import { mirrorHorizontalPlacement } from '@instructure/ui-position';
|
|
35
|
-
import generateStyle from
|
|
36
|
-
import { DrawerLayoutContext } from
|
|
37
|
-
import { allowedProps } from
|
|
35
|
+
import generateStyle from './styles.js';
|
|
36
|
+
import { DrawerLayoutContext } from '../index.js';
|
|
37
|
+
import { allowedProps } from './props.js';
|
|
38
38
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
39
39
|
/**
|
|
40
40
|
---
|
|
@@ -43,7 +43,7 @@ id: DrawerLayout.Tray
|
|
|
43
43
|
---
|
|
44
44
|
**/
|
|
45
45
|
let DrawerTray = (_dec = withStyleNew(generateStyle), _dec2 = textDirectionContextConsumer(), _dec(_class = _dec2(_class = class DrawerTray extends Component {
|
|
46
|
-
static displayName =
|
|
46
|
+
static displayName = 'DrawerTray';
|
|
47
47
|
static componentId = 'DrawerLayout.Tray';
|
|
48
48
|
static locatorAttribute = 'data-drawer-tray';
|
|
49
49
|
static allowedProps = allowedProps;
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react';
|
|
26
|
-
import { DrawerLayout } from
|
|
26
|
+
import { DrawerLayout } from '../index.js';
|
|
27
27
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
28
28
|
export default class DrawerLayoutFixture extends Component {
|
|
29
|
-
static displayName =
|
|
29
|
+
static displayName = 'DrawerLayoutFixture';
|
|
30
30
|
static defaultProps = {
|
|
31
31
|
layoutWidth: '600px',
|
|
32
32
|
trayWidth: '200px',
|
|
@@ -30,11 +30,11 @@ import { getBoundingClientRect } from '@instructure/ui-dom-utils';
|
|
|
30
30
|
import { createChainedFunction, px } from '@instructure/ui-utils';
|
|
31
31
|
import { logError as error } from '@instructure/console';
|
|
32
32
|
import { mirrorHorizontalPlacement } from '@instructure/ui-position';
|
|
33
|
-
import { DrawerContent } from
|
|
34
|
-
import { DrawerTray } from
|
|
33
|
+
import { DrawerContent } from './DrawerContent/index.js';
|
|
34
|
+
import { DrawerTray } from './DrawerTray/index.js';
|
|
35
35
|
import { withStyleNew } from '@instructure/emotion';
|
|
36
|
-
import generateStyle from
|
|
37
|
-
import { allowedProps } from
|
|
36
|
+
import generateStyle from './styles.js';
|
|
37
|
+
import { allowedProps } from './props.js';
|
|
38
38
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
39
39
|
/**
|
|
40
40
|
---
|
|
@@ -42,7 +42,7 @@ category: components
|
|
|
42
42
|
---
|
|
43
43
|
**/
|
|
44
44
|
let DrawerLayout = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle), _dec3 = textDirectionContextConsumer(), _dec(_class = _dec2(_class = _dec3(_class = class DrawerLayout extends Component {
|
|
45
|
-
static displayName =
|
|
45
|
+
static displayName = 'DrawerLayout';
|
|
46
46
|
static componentId = 'DrawerLayout';
|
|
47
47
|
static locatorAttribute = 'data-drawer-layout';
|
|
48
48
|
static allowedProps = allowedProps;
|
package/es/exports/a.js
CHANGED
|
@@ -21,4 +21,5 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v1/index.js';
|
package/es/exports/b.js
CHANGED
|
@@ -21,4 +21,5 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v2/index.js';
|
|
@@ -10,9 +10,9 @@ var _debounce = require("@instructure/debounce");
|
|
|
10
10
|
var _getBoundingClientRect = require("@instructure/ui-dom-utils/lib/getBoundingClientRect.js");
|
|
11
11
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
12
12
|
var _emotion = require("@instructure/emotion");
|
|
13
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
14
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
15
|
-
var _props = require("./props");
|
|
13
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
14
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
15
|
+
var _props = require("./props.js");
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
17
|
var _dec, _class;
|
|
18
18
|
/*
|
|
@@ -45,7 +45,7 @@ id: DrawerLayout.Content
|
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
47
|
let DrawerContent = exports.DrawerContent = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class DrawerContent extends _react.Component {
|
|
48
|
-
static displayName =
|
|
48
|
+
static displayName = 'DrawerContent';
|
|
49
49
|
static componentId = 'DrawerLayout.Content';
|
|
50
50
|
static locatorAttribute = 'data-drawer-content';
|
|
51
51
|
static allowedProps = _props.allowedProps;
|
|
@@ -14,10 +14,10 @@ var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFun
|
|
|
14
14
|
var _Dialog = require("@instructure/ui-dialog/lib/Dialog");
|
|
15
15
|
var _Portal = require("@instructure/ui-portal/lib/Portal");
|
|
16
16
|
var _mirrorHorizontalPlacement = require("@instructure/ui-position/lib/mirrorHorizontalPlacement.js");
|
|
17
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
18
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
19
|
-
var _index = require("../index");
|
|
20
|
-
var _props = require("./props");
|
|
17
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
18
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
19
|
+
var _index = require("../index.js");
|
|
20
|
+
var _props = require("./props.js");
|
|
21
21
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
22
22
|
var _dec, _dec2, _class;
|
|
23
23
|
/*
|
|
@@ -50,7 +50,7 @@ id: DrawerLayout.Tray
|
|
|
50
50
|
---
|
|
51
51
|
**/
|
|
52
52
|
let DrawerTray = exports.DrawerTray = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _textDirectionContextConsumer.textDirectionContextConsumer)(), _dec(_class = _dec2(_class = class DrawerTray extends _react.Component {
|
|
53
|
-
static displayName =
|
|
53
|
+
static displayName = 'DrawerTray';
|
|
54
54
|
static componentId = 'DrawerLayout.Tray';
|
|
55
55
|
static locatorAttribute = 'data-drawer-tray';
|
|
56
56
|
static allowedProps = _props.allowedProps;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _index = require("../index");
|
|
8
|
+
var _index = require("../index.js");
|
|
9
9
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
10
10
|
/*
|
|
11
11
|
* The MIT License (MIT)
|
|
@@ -32,7 +32,7 @@ var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
class DrawerLayoutFixture extends _react.Component {
|
|
35
|
-
static displayName =
|
|
35
|
+
static displayName = 'DrawerLayoutFixture';
|
|
36
36
|
static defaultProps = {
|
|
37
37
|
layoutWidth: '600px',
|
|
38
38
|
trayWidth: '200px',
|
|
@@ -7,14 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "DrawerContent", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function () {
|
|
10
|
-
return
|
|
10
|
+
return _index2.DrawerContent;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
exports.DrawerLayoutContext = exports.DrawerLayout = void 0;
|
|
14
14
|
Object.defineProperty(exports, "DrawerTray", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function () {
|
|
17
|
-
return
|
|
17
|
+
return _index3.DrawerTray;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
exports.default = void 0;
|
|
@@ -28,11 +28,11 @@ var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFun
|
|
|
28
28
|
var _px = require("@instructure/ui-utils/lib/px.js");
|
|
29
29
|
var _console = require("@instructure/console");
|
|
30
30
|
var _mirrorHorizontalPlacement = require("@instructure/ui-position/lib/mirrorHorizontalPlacement.js");
|
|
31
|
-
var
|
|
32
|
-
var
|
|
31
|
+
var _index2 = require("./DrawerContent/index.js");
|
|
32
|
+
var _index3 = require("./DrawerTray/index.js");
|
|
33
33
|
var _emotion = require("@instructure/emotion");
|
|
34
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
35
|
-
var _props = require("./props");
|
|
34
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
35
|
+
var _props = require("./props.js");
|
|
36
36
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
37
37
|
var _dec, _dec2, _dec3, _class;
|
|
38
38
|
/*
|
|
@@ -64,15 +64,15 @@ category: components
|
|
|
64
64
|
---
|
|
65
65
|
**/
|
|
66
66
|
let DrawerLayout = exports.DrawerLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, null), _dec3 = (0, _textDirectionContextConsumer.textDirectionContextConsumer)(), _dec(_class = _dec2(_class = _dec3(_class = class DrawerLayout extends _react.Component {
|
|
67
|
-
static displayName =
|
|
67
|
+
static displayName = 'DrawerLayout';
|
|
68
68
|
static componentId = 'DrawerLayout';
|
|
69
69
|
static locatorAttribute = 'data-drawer-layout';
|
|
70
70
|
static allowedProps = _props.allowedProps;
|
|
71
71
|
static defaultProps = {
|
|
72
72
|
minWidth: '30rem'
|
|
73
73
|
};
|
|
74
|
-
static Content =
|
|
75
|
-
static Tray =
|
|
74
|
+
static Content = _index2.DrawerContent;
|
|
75
|
+
static Tray = _index3.DrawerTray;
|
|
76
76
|
constructor(props) {
|
|
77
77
|
super(props);
|
|
78
78
|
this.state = {
|
|
@@ -96,7 +96,7 @@ let DrawerLayout = exports.DrawerLayout = (_dec = (0, _withDeterministicId.withD
|
|
|
96
96
|
this.props.makeStyles?.();
|
|
97
97
|
}
|
|
98
98
|
get trayProps() {
|
|
99
|
-
const tray = _react.Children.toArray(this.props.children).filter(child => (0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
99
|
+
const tray = _react.Children.toArray(this.props.children).filter(child => (0, _matchComponentTypes.matchComponentTypes)(child, [_index3.DrawerTray]))[0];
|
|
100
100
|
return tray.props;
|
|
101
101
|
}
|
|
102
102
|
get trayPlacement() {
|
|
@@ -196,17 +196,17 @@ let DrawerLayout = exports.DrawerLayout = (_dec = (0, _withDeterministicId.withD
|
|
|
196
196
|
let trayCount = 0;
|
|
197
197
|
let contentCount = 0;
|
|
198
198
|
const children = _react.Children.map(this.props.children, (child, _index) => {
|
|
199
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
199
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index3.DrawerTray])) {
|
|
200
200
|
trayCount++;
|
|
201
201
|
return (0, _safeCloneElement.safeCloneElement)(child, {
|
|
202
202
|
label: child.props.label,
|
|
203
203
|
key: child.props.label,
|
|
204
|
-
[
|
|
204
|
+
[_index3.DrawerTray.locatorAttribute]: this._id,
|
|
205
205
|
contentRef: this.handleTrayContentRef,
|
|
206
206
|
onEnter: this.handleTrayTransitionEnter,
|
|
207
207
|
onExit: this.handleTrayTransitionExit
|
|
208
208
|
});
|
|
209
|
-
} else if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
209
|
+
} else if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index2.DrawerContent])) {
|
|
210
210
|
contentCount++;
|
|
211
211
|
const handleContentRef = el => {
|
|
212
212
|
const {
|
|
@@ -220,7 +220,7 @@ let DrawerLayout = exports.DrawerLayout = (_dec = (0, _withDeterministicId.withD
|
|
|
220
220
|
return this.state.trayWidth !== null ? (0, _safeCloneElement.safeCloneElement)(child, {
|
|
221
221
|
label: child.props.label,
|
|
222
222
|
key: child.props.label,
|
|
223
|
-
[
|
|
223
|
+
[_index2.DrawerContent.locatorAttribute]: this._id,
|
|
224
224
|
style: this.contentStyle,
|
|
225
225
|
onSizeChange: (0, _createChainedFunction.createChainedFunction)(this.handleContentSizeChange, child.props.onSizeChange),
|
|
226
226
|
contentRef: handleContentRef
|
|
@@ -10,8 +10,8 @@ var _debounce = require("@instructure/debounce");
|
|
|
10
10
|
var _getBoundingClientRect = require("@instructure/ui-dom-utils/lib/getBoundingClientRect.js");
|
|
11
11
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
12
12
|
var _emotion = require("@instructure/emotion");
|
|
13
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
14
|
-
var _props = require("./props");
|
|
13
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
14
|
+
var _props = require("./props.js");
|
|
15
15
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
16
16
|
var _dec, _class;
|
|
17
17
|
/*
|
|
@@ -44,7 +44,7 @@ id: DrawerLayout.Content
|
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
46
|
let DrawerContent = exports.DrawerContent = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class DrawerContent extends _react.Component {
|
|
47
|
-
static displayName =
|
|
47
|
+
static displayName = 'DrawerContent';
|
|
48
48
|
static componentId = 'DrawerLayout.Content';
|
|
49
49
|
static locatorAttribute = 'data-drawer-content';
|
|
50
50
|
static allowedProps = _props.allowedProps;
|
|
@@ -14,9 +14,9 @@ var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFun
|
|
|
14
14
|
var _Dialog = require("@instructure/ui-dialog/lib/Dialog");
|
|
15
15
|
var _Portal = require("@instructure/ui-portal/lib/Portal");
|
|
16
16
|
var _mirrorHorizontalPlacement = require("@instructure/ui-position/lib/mirrorHorizontalPlacement.js");
|
|
17
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
18
|
-
var _index = require("../index");
|
|
19
|
-
var _props = require("./props");
|
|
17
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
18
|
+
var _index = require("../index.js");
|
|
19
|
+
var _props = require("./props.js");
|
|
20
20
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
21
21
|
var _dec, _dec2, _class;
|
|
22
22
|
/*
|
|
@@ -49,7 +49,7 @@ id: DrawerLayout.Tray
|
|
|
49
49
|
---
|
|
50
50
|
**/
|
|
51
51
|
let DrawerTray = exports.DrawerTray = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec2 = (0, _textDirectionContextConsumer.textDirectionContextConsumer)(), _dec(_class = _dec2(_class = class DrawerTray extends _react.Component {
|
|
52
|
-
static displayName =
|
|
52
|
+
static displayName = 'DrawerTray';
|
|
53
53
|
static componentId = 'DrawerLayout.Tray';
|
|
54
54
|
static locatorAttribute = 'data-drawer-tray';
|
|
55
55
|
static allowedProps = _props.allowedProps;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _index = require("../index");
|
|
8
|
+
var _index = require("../index.js");
|
|
9
9
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
10
10
|
/*
|
|
11
11
|
* The MIT License (MIT)
|
|
@@ -32,7 +32,7 @@ var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
class DrawerLayoutFixture extends _react.Component {
|
|
35
|
-
static displayName =
|
|
35
|
+
static displayName = 'DrawerLayoutFixture';
|
|
36
36
|
static defaultProps = {
|
|
37
37
|
layoutWidth: '600px',
|
|
38
38
|
trayWidth: '200px',
|
|
@@ -7,14 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "DrawerContent", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function () {
|
|
10
|
-
return
|
|
10
|
+
return _index2.DrawerContent;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
exports.DrawerLayoutContext = exports.DrawerLayout = void 0;
|
|
14
14
|
Object.defineProperty(exports, "DrawerTray", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function () {
|
|
17
|
-
return
|
|
17
|
+
return _index3.DrawerTray;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
exports.default = void 0;
|
|
@@ -28,11 +28,11 @@ var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFun
|
|
|
28
28
|
var _px = require("@instructure/ui-utils/lib/px.js");
|
|
29
29
|
var _console = require("@instructure/console");
|
|
30
30
|
var _mirrorHorizontalPlacement = require("@instructure/ui-position/lib/mirrorHorizontalPlacement.js");
|
|
31
|
-
var
|
|
32
|
-
var
|
|
31
|
+
var _index2 = require("./DrawerContent/index.js");
|
|
32
|
+
var _index3 = require("./DrawerTray/index.js");
|
|
33
33
|
var _emotion = require("@instructure/emotion");
|
|
34
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
35
|
-
var _props = require("./props");
|
|
34
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
35
|
+
var _props = require("./props.js");
|
|
36
36
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
37
37
|
var _dec, _dec2, _dec3, _class;
|
|
38
38
|
/*
|
|
@@ -64,15 +64,15 @@ category: components
|
|
|
64
64
|
---
|
|
65
65
|
**/
|
|
66
66
|
let DrawerLayout = exports.DrawerLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleNew)(_styles.default), _dec3 = (0, _textDirectionContextConsumer.textDirectionContextConsumer)(), _dec(_class = _dec2(_class = _dec3(_class = class DrawerLayout extends _react.Component {
|
|
67
|
-
static displayName =
|
|
67
|
+
static displayName = 'DrawerLayout';
|
|
68
68
|
static componentId = 'DrawerLayout';
|
|
69
69
|
static locatorAttribute = 'data-drawer-layout';
|
|
70
70
|
static allowedProps = _props.allowedProps;
|
|
71
71
|
static defaultProps = {
|
|
72
72
|
minWidth: '30rem'
|
|
73
73
|
};
|
|
74
|
-
static Content =
|
|
75
|
-
static Tray =
|
|
74
|
+
static Content = _index2.DrawerContent;
|
|
75
|
+
static Tray = _index3.DrawerTray;
|
|
76
76
|
constructor(props) {
|
|
77
77
|
super(props);
|
|
78
78
|
this.state = {
|
|
@@ -96,7 +96,7 @@ let DrawerLayout = exports.DrawerLayout = (_dec = (0, _withDeterministicId.withD
|
|
|
96
96
|
this.props.makeStyles?.();
|
|
97
97
|
}
|
|
98
98
|
get trayProps() {
|
|
99
|
-
const tray = _react.Children.toArray(this.props.children).filter(child => (0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
99
|
+
const tray = _react.Children.toArray(this.props.children).filter(child => (0, _matchComponentTypes.matchComponentTypes)(child, [_index3.DrawerTray]))[0];
|
|
100
100
|
return tray.props;
|
|
101
101
|
}
|
|
102
102
|
get trayPlacement() {
|
|
@@ -196,17 +196,17 @@ let DrawerLayout = exports.DrawerLayout = (_dec = (0, _withDeterministicId.withD
|
|
|
196
196
|
let trayCount = 0;
|
|
197
197
|
let contentCount = 0;
|
|
198
198
|
const children = _react.Children.map(this.props.children, (child, _index) => {
|
|
199
|
-
if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
199
|
+
if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index3.DrawerTray])) {
|
|
200
200
|
trayCount++;
|
|
201
201
|
return (0, _safeCloneElement.safeCloneElement)(child, {
|
|
202
202
|
label: child.props.label,
|
|
203
203
|
key: child.props.label,
|
|
204
|
-
[
|
|
204
|
+
[_index3.DrawerTray.locatorAttribute]: this._id,
|
|
205
205
|
contentRef: this.handleTrayContentRef,
|
|
206
206
|
onEnter: this.handleTrayTransitionEnter,
|
|
207
207
|
onExit: this.handleTrayTransitionExit
|
|
208
208
|
});
|
|
209
|
-
} else if ((0, _matchComponentTypes.matchComponentTypes)(child, [
|
|
209
|
+
} else if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index2.DrawerContent])) {
|
|
210
210
|
contentCount++;
|
|
211
211
|
const handleContentRef = el => {
|
|
212
212
|
const {
|
|
@@ -220,7 +220,7 @@ let DrawerLayout = exports.DrawerLayout = (_dec = (0, _withDeterministicId.withD
|
|
|
220
220
|
return this.state.trayWidth !== null ? (0, _safeCloneElement.safeCloneElement)(child, {
|
|
221
221
|
label: child.props.label,
|
|
222
222
|
key: child.props.label,
|
|
223
|
-
[
|
|
223
|
+
[_index2.DrawerContent.locatorAttribute]: this._id,
|
|
224
224
|
style: this.contentStyle,
|
|
225
225
|
onSizeChange: (0, _createChainedFunction.createChainedFunction)(this.handleContentSizeChange, child.props.onSizeChange),
|
|
226
226
|
contentRef: handleContentRef
|
package/lib/exports/a.js
CHANGED
|
@@ -6,19 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "DrawerContent", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.DrawerContent;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "DrawerLayout", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _index.DrawerLayout;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "DrawerTray", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _index.DrawerTray;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
var
|
|
24
|
+
var _index = require("../DrawerLayout/v1/index.js");
|
package/lib/exports/b.js
CHANGED
|
@@ -6,19 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "DrawerContent", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _index.DrawerContent;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "DrawerLayout", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _index.DrawerLayout;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "DrawerTray", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _index.DrawerTray;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
var
|
|
24
|
+
var _index = require("../DrawerLayout/v2/index.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-drawer-layout",
|
|
3
|
-
"version": "11.7.4-snapshot-
|
|
3
|
+
"version": "11.7.4-snapshot-50",
|
|
4
4
|
"description": "A main-content-plus-tray layout component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,28 +15,28 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/
|
|
23
|
-
"@instructure/ui-dom-utils": "11.7.4-snapshot-
|
|
24
|
-
"@instructure/ui-i18n": "11.7.4-snapshot-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-position": "11.7.4-snapshot-
|
|
28
|
-
"@instructure/ui-
|
|
29
|
-
"@instructure/ui-
|
|
30
|
-
"@instructure/ui-
|
|
31
|
-
"@instructure/ui-
|
|
32
|
-
"@instructure/uid": "11.7.4-snapshot-
|
|
18
|
+
"@instructure/debounce": "11.7.4-snapshot-50",
|
|
19
|
+
"@instructure/console": "11.7.4-snapshot-50",
|
|
20
|
+
"@instructure/shared-types": "11.7.4-snapshot-50",
|
|
21
|
+
"@instructure/emotion": "11.7.4-snapshot-50",
|
|
22
|
+
"@instructure/ui-dialog": "11.7.4-snapshot-50",
|
|
23
|
+
"@instructure/ui-dom-utils": "11.7.4-snapshot-50",
|
|
24
|
+
"@instructure/ui-i18n": "11.7.4-snapshot-50",
|
|
25
|
+
"@instructure/ui-motion": "11.7.4-snapshot-50",
|
|
26
|
+
"@instructure/ui-portal": "11.7.4-snapshot-50",
|
|
27
|
+
"@instructure/ui-position": "11.7.4-snapshot-50",
|
|
28
|
+
"@instructure/ui-themes": "11.7.4-snapshot-50",
|
|
29
|
+
"@instructure/ui-react-utils": "11.7.4-snapshot-50",
|
|
30
|
+
"@instructure/ui-utils": "11.7.4-snapshot-50",
|
|
31
|
+
"@instructure/ui-view": "11.7.4-snapshot-50",
|
|
32
|
+
"@instructure/uid": "11.7.4-snapshot-50"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@testing-library/jest-dom": "^6.6.3",
|
|
36
36
|
"@testing-library/react": "15.0.7",
|
|
37
37
|
"vitest": "^3.2.2",
|
|
38
|
-
"@instructure/ui-
|
|
39
|
-
"@instructure/ui-
|
|
38
|
+
"@instructure/ui-buttons": "11.7.4-snapshot-50",
|
|
39
|
+
"@instructure/ui-babel-preset": "11.7.4-snapshot-50"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=18 <=19"
|