@instructure/ui-drawer-layout 11.7.3 → 11.7.4-pr-snapshot-1781695314229

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/LICENSE.md +1 -0
  3. package/{lib/DrawerLayout/v2/props.js → babel.config.cjs} +12 -7
  4. package/es/DrawerLayout/v1/DrawerContent/index.js +4 -4
  5. package/es/DrawerLayout/v1/DrawerTray/index.js +5 -5
  6. package/es/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.js +2 -2
  7. package/es/DrawerLayout/v1/index.js +5 -5
  8. package/es/DrawerLayout/v2/DrawerContent/index.js +3 -6
  9. package/es/DrawerLayout/v2/DrawerTray/index.js +4 -7
  10. package/es/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.js +2 -2
  11. package/es/DrawerLayout/v2/index.js +5 -5
  12. package/es/exports/a.js +2 -1
  13. package/es/exports/b.js +2 -1
  14. package/package.json +20 -25
  15. package/src/DrawerLayout/v1/DrawerContent/index.tsx +4 -3
  16. package/src/DrawerLayout/v1/DrawerTray/index.tsx +5 -4
  17. package/src/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.tsx +2 -1
  18. package/src/DrawerLayout/v1/index.tsx +5 -4
  19. package/src/DrawerLayout/v2/DrawerContent/index.tsx +3 -10
  20. package/src/DrawerLayout/v2/DrawerTray/index.tsx +4 -11
  21. package/src/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.tsx +2 -1
  22. package/src/DrawerLayout/v2/index.tsx +5 -4
  23. package/src/exports/a.ts +1 -1
  24. package/src/exports/b.ts +1 -1
  25. package/tsconfig.build.tsbuildinfo +1 -1
  26. package/types/DrawerLayout/v1/DrawerContent/index.d.ts +2 -1
  27. package/types/DrawerLayout/v1/DrawerContent/index.d.ts.map +1 -1
  28. package/types/DrawerLayout/v1/DrawerTray/index.d.ts +1 -0
  29. package/types/DrawerLayout/v1/DrawerTray/index.d.ts.map +1 -1
  30. package/types/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.d.ts +1 -0
  31. package/types/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.d.ts.map +1 -1
  32. package/types/DrawerLayout/v1/index.d.ts +3 -2
  33. package/types/DrawerLayout/v1/index.d.ts.map +1 -1
  34. package/types/DrawerLayout/v2/DrawerContent/index.d.ts +2 -2
  35. package/types/DrawerLayout/v2/DrawerContent/index.d.ts.map +1 -1
  36. package/types/DrawerLayout/v2/DrawerTray/index.d.ts +1 -1
  37. package/types/DrawerLayout/v2/DrawerTray/index.d.ts.map +1 -1
  38. package/types/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.d.ts +1 -0
  39. package/types/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.d.ts.map +1 -1
  40. package/types/DrawerLayout/v2/index.d.ts +3 -2
  41. package/types/DrawerLayout/v2/index.d.ts.map +1 -1
  42. package/types/exports/a.d.ts +1 -1
  43. package/types/exports/a.d.ts.map +1 -1
  44. package/types/exports/b.d.ts +1 -1
  45. package/types/exports/b.d.ts.map +1 -1
  46. package/lib/DrawerLayout/v1/DrawerContent/index.js +0 -128
  47. package/lib/DrawerLayout/v1/DrawerContent/props.js +0 -31
  48. package/lib/DrawerLayout/v1/DrawerContent/styles.js +0 -58
  49. package/lib/DrawerLayout/v1/DrawerContent/theme.js +0 -45
  50. package/lib/DrawerLayout/v1/DrawerTray/index.js +0 -238
  51. package/lib/DrawerLayout/v1/DrawerTray/props.js +0 -31
  52. package/lib/DrawerLayout/v1/DrawerTray/styles.js +0 -103
  53. package/lib/DrawerLayout/v1/DrawerTray/theme.js +0 -58
  54. package/lib/DrawerLayout/v1/__fixtures__/DrawerLayout.fixture.js +0 -80
  55. package/lib/DrawerLayout/v1/index.js +0 -253
  56. package/lib/DrawerLayout/v1/props.js +0 -31
  57. package/lib/DrawerLayout/v1/styles.js +0 -50
  58. package/lib/DrawerLayout/v2/DrawerContent/index.js +0 -127
  59. package/lib/DrawerLayout/v2/DrawerContent/props.js +0 -31
  60. package/lib/DrawerLayout/v2/DrawerContent/styles.js +0 -59
  61. package/lib/DrawerLayout/v2/DrawerTray/index.js +0 -237
  62. package/lib/DrawerLayout/v2/DrawerTray/props.js +0 -31
  63. package/lib/DrawerLayout/v2/DrawerTray/styles.js +0 -104
  64. package/lib/DrawerLayout/v2/__fixtures__/DrawerLayout.fixture.js +0 -80
  65. package/lib/DrawerLayout/v2/index.js +0 -253
  66. package/lib/DrawerLayout/v2/styles.js +0 -47
  67. package/lib/exports/a.js +0 -24
  68. package/lib/exports/b.js +0 -24
  69. package/lib/package.json +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,50 @@
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-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
7
+
8
+
9
+ ### Features
10
+
11
+ * **many:** remove deprecated v2 items ([eaf8876](https://github.com/instructure/instructure-ui/commit/eaf88767c9beb95c4e09ee5705c387dfd79e4cb7))
12
+
13
+
14
+ ### BREAKING CHANGES
15
+
16
+ * **many:** Removed FormFieldLabel component
17
+
18
+ Removed _content prop from DrawerLayout.Tray and DrawerLayout.Content
19
+
20
+ Removed _link prop from Link
21
+
22
+ Removed _node prop from Menu.Item
23
+
24
+ Removed _root prop from Pagination, TreeBrowser
25
+
26
+ Removed _select prop from SimpleSelect and TimeSelect
27
+
28
+ Removed _ref prop from TruncateText
29
+
30
+ Removed _element prop from View
31
+
32
+ Removed color="ai" from Heading
33
+
34
+ Removed variant="inline-small" and variant="standalone-small" from Link
35
+
36
+ Removed title prop from Tag
37
+
38
+ Removed focusRingBorderRadius prop from View
39
+
40
+ Removed hideActionsUserSeparator prop from TopNavBar.Layout
41
+
42
+ Removed handleFocusOutlineColor, handleFocusOutlineWidth, handleShadowColor from RangeInput
43
+
44
+ INSTUI-5025
45
+
46
+
47
+
48
+
49
+
6
50
  ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
51
 
8
52
 
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -1,9 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.allowedProps = void 0;
7
1
  /*
8
2
  * The MIT License (MIT)
9
3
  *
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['children', 'minWidth', 'onOverlayTrayChange', 'dir'];
25
+ module.exports = {
26
+ presets: [
27
+ [
28
+ require('@instructure/ui-babel-preset'),
29
+ {
30
+ esModules: Boolean(process.env.ES_MODULES),
31
+ removeConsole: process.env.NODE_ENV === 'production',
32
+ transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
33
+ }
34
+ ]
35
+ ]
36
+ }
@@ -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 "./styles.js";
32
- import generateComponentTheme from "./theme.js";
33
- import { allowedProps } from "./props.js";
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 = "DrawerContent";
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 "./styles.js";
36
- import generateComponentTheme from "./theme.js";
37
- import { DrawerLayoutContext } from "../index.js";
38
- import { allowedProps } from "./props.js";
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 = "DrawerTray";
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 "../index.js";
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 = "DrawerLayoutFixture";
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 "./DrawerContent/index.js";
34
- import { DrawerTray } from "./DrawerTray/index.js";
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 "./styles.js";
37
- import { allowedProps } from "./props.js";
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 = "DrawerLayout";
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 "./styles.js";
32
- import { allowedProps } from "./props.js";
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 = "DrawerContent";
41
+ static displayName = 'DrawerContent';
42
42
  static componentId = 'DrawerLayout.Content';
43
43
  static locatorAttribute = 'data-drawer-content';
44
44
  static allowedProps = allowedProps;
@@ -46,9 +46,6 @@ let DrawerContent = (_dec = withStyleNew(generateStyle), _dec(_class = class Dra
46
46
  role: 'region'
47
47
  };
48
48
  ref = null;
49
- get _content() {
50
- return this.ref;
51
- }
52
49
  _resizeListener;
53
50
  _debounced;
54
51
  componentDidMount() {
@@ -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 "./styles.js";
36
- import { DrawerLayoutContext } from "../index.js";
37
- import { allowedProps } from "./props.js";
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 = "DrawerTray";
46
+ static displayName = 'DrawerTray';
47
47
  static componentId = 'DrawerLayout.Tray';
48
48
  static locatorAttribute = 'data-drawer-tray';
49
49
  static allowedProps = allowedProps;
@@ -59,9 +59,6 @@ let DrawerTray = (_dec = withStyleNew(generateStyle), _dec2 = textDirectionConte
59
59
  };
60
60
  ref = null;
61
61
  _DOMNode = null;
62
- get _content() {
63
- return this.ref;
64
- }
65
62
  constructor(props) {
66
63
  super(props);
67
64
  this.state = {
@@ -23,10 +23,10 @@
23
23
  */
24
24
 
25
25
  import { Component } from 'react';
26
- import { DrawerLayout } from "../index.js";
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 = "DrawerLayoutFixture";
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 "./DrawerContent/index.js";
34
- import { DrawerTray } from "./DrawerTray/index.js";
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 "./styles.js";
37
- import { allowedProps } from "./props.js";
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 = "DrawerLayout";
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
- export { DrawerLayout, DrawerContent, DrawerTray } from "../DrawerLayout/v1/index.js";
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
- export { DrawerLayout, DrawerContent, DrawerTray } from "../DrawerLayout/v2/index.js";
24
+
25
+ export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-drawer-layout",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "A main-content-plus-tray layout component",
5
6
  "author": "Instructure, Inc. Engineering and Product Design",
6
7
  "module": "./es/index.js",
7
- "main": "./lib/index.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "repository": {
10
10
  "type": "git",
@@ -15,28 +15,28 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/console": "11.7.3",
19
- "@instructure/emotion": "11.7.3",
20
- "@instructure/debounce": "11.7.3",
21
- "@instructure/shared-types": "11.7.3",
22
- "@instructure/ui-dialog": "11.7.3",
23
- "@instructure/ui-dom-utils": "11.7.3",
24
- "@instructure/ui-i18n": "11.7.3",
25
- "@instructure/ui-portal": "11.7.3",
26
- "@instructure/ui-position": "11.7.3",
27
- "@instructure/ui-motion": "11.7.3",
28
- "@instructure/ui-themes": "11.7.3",
29
- "@instructure/ui-react-utils": "11.7.3",
30
- "@instructure/ui-view": "11.7.3",
31
- "@instructure/uid": "11.7.3",
32
- "@instructure/ui-utils": "11.7.3"
18
+ "@instructure/debounce": "11.7.4-pr-snapshot-1781695314229",
19
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/console": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-dialog": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-motion": "11.7.4-pr-snapshot-1781695314229",
25
+ "@instructure/ui-i18n": "11.7.4-pr-snapshot-1781695314229",
26
+ "@instructure/ui-portal": "11.7.4-pr-snapshot-1781695314229",
27
+ "@instructure/ui-position": "11.7.4-pr-snapshot-1781695314229",
28
+ "@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229",
29
+ "@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229",
30
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
31
+ "@instructure/uid": "11.7.4-pr-snapshot-1781695314229",
32
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229"
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-buttons": "11.7.3",
39
- "@instructure/ui-babel-preset": "11.7.3"
38
+ "@instructure/ui-buttons": "11.7.4-pr-snapshot-1781695314229",
39
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": ">=18 <=19"
@@ -46,7 +46,6 @@
46
46
  },
47
47
  "sideEffects": false,
48
48
  "exports": {
49
- "./lib/*": "./lib/*",
50
49
  "./es/*": "./es/*",
51
50
  "./types/*": "./types/*",
52
51
  "./package.json": "./package.json",
@@ -55,28 +54,24 @@
55
54
  "src": "./src/exports/a.ts",
56
55
  "types": "./types/exports/a.d.ts",
57
56
  "import": "./es/exports/a.js",
58
- "require": "./lib/exports/a.js",
59
57
  "default": "./es/exports/a.js"
60
58
  },
61
59
  "./v11_6": {
62
60
  "src": "./src/exports/a.ts",
63
61
  "types": "./types/exports/a.d.ts",
64
62
  "import": "./es/exports/a.js",
65
- "require": "./lib/exports/a.js",
66
63
  "default": "./es/exports/a.js"
67
64
  },
68
65
  "./v11_7": {
69
66
  "src": "./src/exports/b.ts",
70
67
  "types": "./types/exports/b.d.ts",
71
68
  "import": "./es/exports/b.js",
72
- "require": "./lib/exports/b.js",
73
69
  "default": "./es/exports/b.js"
74
70
  },
75
71
  "./latest": {
76
72
  "src": "./src/exports/b.ts",
77
73
  "types": "./types/exports/b.d.ts",
78
74
  "import": "./es/exports/b.js",
79
- "require": "./lib/exports/b.js",
80
75
  "default": "./es/exports/b.js"
81
76
  }
82
77
  },
@@ -84,7 +79,7 @@
84
79
  "lint": "ui-scripts lint",
85
80
  "lint:fix": "ui-scripts lint --fix",
86
81
  "clean": "ui-scripts clean",
87
- "build": "ui-scripts build --modules es,cjs",
82
+ "build": "ui-scripts build",
88
83
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
89
84
  "build:types": "tsc -p tsconfig.build.json",
90
85
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -30,10 +30,10 @@ import { getBoundingClientRect } from '@instructure/ui-dom-utils'
30
30
  import { omitProps } from '@instructure/ui-react-utils'
31
31
  import { withStyle } from '@instructure/emotion'
32
32
 
33
- import generateStyle from './styles'
34
- import generateComponentTheme from './theme'
33
+ import generateStyle from './styles.js'
34
+ import generateComponentTheme from './theme.js'
35
35
 
36
- import { allowedProps } from './props'
36
+ import { allowedProps } from './props.js'
37
37
  import type {
38
38
  DrawerLayoutContentProps,
39
39
  DrawerLayoutContentStyleProps
@@ -47,6 +47,7 @@ id: DrawerLayout.Content
47
47
  **/
48
48
  @withStyle(generateStyle, generateComponentTheme)
49
49
  class DrawerContent extends Component<DrawerLayoutContentProps> {
50
+ static displayName = 'DrawerContent'
50
51
  static readonly componentId = 'DrawerLayout.Content'
51
52
 
52
53
  static locatorAttribute = 'data-drawer-content'
@@ -35,11 +35,11 @@ import { Portal } from '@instructure/ui-portal'
35
35
  import type { PortalNode } from '@instructure/ui-portal'
36
36
  import { mirrorHorizontalPlacement } from '@instructure/ui-position'
37
37
 
38
- import generateStyle from './styles'
39
- import generateComponentTheme from './theme'
40
- import { DrawerLayoutContext } from '../index'
38
+ import generateStyle from './styles.js'
39
+ import generateComponentTheme from './theme.js'
40
+ import { DrawerLayoutContext } from '../index.js'
41
41
 
42
- import { allowedProps } from './props'
42
+ import { allowedProps } from './props.js'
43
43
  import type {
44
44
  DrawerLayoutTrayProps,
45
45
  DrawerLayoutTrayState,
@@ -59,6 +59,7 @@ class DrawerTray extends Component<
59
59
  DrawerLayoutTrayProps,
60
60
  DrawerLayoutTrayState
61
61
  > {
62
+ static displayName = 'DrawerTray'
62
63
  static readonly componentId = 'DrawerLayout.Tray' as const
63
64
 
64
65
  static locatorAttribute = 'data-drawer-tray'
@@ -24,7 +24,7 @@
24
24
 
25
25
  import { Component } from 'react'
26
26
 
27
- import { DrawerLayout } from '../index'
27
+ import { DrawerLayout } from '../index.js'
28
28
  import type { DrawerLayoutProps } from '../props'
29
29
  import type { DrawerLayoutTrayProps } from '../DrawerTray/props'
30
30
 
@@ -37,6 +37,7 @@ type DrawerLayoutFixtureProps = {
37
37
  }
38
38
 
39
39
  export default class DrawerLayoutFixture extends Component<DrawerLayoutFixtureProps> {
40
+ static displayName = 'DrawerLayoutFixture'
40
41
  static defaultProps = {
41
42
  layoutWidth: '600px',
42
43
  trayWidth: '200px',
@@ -37,18 +37,18 @@ import { logError as error } from '@instructure/console'
37
37
  import { mirrorHorizontalPlacement } from '@instructure/ui-position'
38
38
  import type { PlacementPropValues } from '@instructure/ui-position'
39
39
 
40
- import { DrawerContent } from './DrawerContent'
40
+ import { DrawerContent } from './DrawerContent/index.js'
41
41
  import type {
42
42
  DrawerLayoutContentProps,
43
43
  DrawerContentSize
44
44
  } from './DrawerContent/props'
45
- import { DrawerTray } from './DrawerTray'
45
+ import { DrawerTray } from './DrawerTray/index.js'
46
46
  import type { DrawerLayoutTrayProps } from './DrawerTray/props'
47
47
 
48
48
  import { withStyle } from '@instructure/emotion'
49
- import generateStyle from './styles'
49
+ import generateStyle from './styles.js'
50
50
 
51
- import { allowedProps } from './props'
51
+ import { allowedProps } from './props.js'
52
52
  import type { DrawerLayoutProps, DrawerLayoutState } from './props'
53
53
 
54
54
  type TrayChild = ComponentElement<
@@ -70,6 +70,7 @@ category: components
70
70
  @withStyle(generateStyle, null)
71
71
  @textDirectionContextConsumer()
72
72
  class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutState> {
73
+ static displayName = 'DrawerLayout'
73
74
  static readonly componentId = 'DrawerLayout'
74
75
 
75
76
  static locatorAttribute = 'data-drawer-layout'
@@ -30,9 +30,9 @@ import { getBoundingClientRect } from '@instructure/ui-dom-utils'
30
30
  import { omitProps } from '@instructure/ui-react-utils'
31
31
  import { withStyleNew } from '@instructure/emotion'
32
32
 
33
- import generateStyle from './styles'
33
+ import generateStyle from './styles.js'
34
34
 
35
- import { allowedProps } from './props'
35
+ import { allowedProps } from './props.js'
36
36
  import type {
37
37
  DrawerLayoutContentProps,
38
38
  DrawerLayoutContentStyleProps
@@ -46,6 +46,7 @@ id: DrawerLayout.Content
46
46
  **/
47
47
  @withStyleNew(generateStyle)
48
48
  class DrawerContent extends Component<DrawerLayoutContentProps> {
49
+ static displayName = 'DrawerContent'
49
50
  static readonly componentId = 'DrawerLayout.Content'
50
51
 
51
52
  static locatorAttribute = 'data-drawer-content'
@@ -56,14 +57,6 @@ class DrawerContent extends Component<DrawerLayoutContentProps> {
56
57
 
57
58
  ref: HTMLDivElement | null = null
58
59
 
59
- get _content() {
60
- console.warn(
61
- '_content property is deprecated and will be removed in v9, please use ref instead'
62
- )
63
-
64
- return this.ref
65
- }
66
-
67
60
  private _resizeListener?: ResizeObserver
68
61
 
69
62
  private _debounced?: Debounced<NonNullable<typeof this.props.onSizeChange>>
@@ -35,10 +35,10 @@ import { Portal } from '@instructure/ui-portal'
35
35
  import type { PortalNode } from '@instructure/ui-portal'
36
36
  import { mirrorHorizontalPlacement } from '@instructure/ui-position'
37
37
 
38
- import generateStyle from './styles'
39
- import { DrawerLayoutContext } from '../index'
38
+ import generateStyle from './styles.js'
39
+ import { DrawerLayoutContext } from '../index.js'
40
40
 
41
- import { allowedProps } from './props'
41
+ import { allowedProps } from './props.js'
42
42
  import type {
43
43
  DrawerLayoutTrayProps,
44
44
  DrawerLayoutTrayState,
@@ -58,6 +58,7 @@ class DrawerTray extends Component<
58
58
  DrawerLayoutTrayProps,
59
59
  DrawerLayoutTrayState
60
60
  > {
61
+ static displayName = 'DrawerTray'
61
62
  static readonly componentId = 'DrawerLayout.Tray' as const
62
63
 
63
64
  static locatorAttribute = 'data-drawer-tray'
@@ -78,14 +79,6 @@ class DrawerTray extends Component<
78
79
 
79
80
  private _DOMNode: PortalNode = null
80
81
 
81
- get _content() {
82
- console.warn(
83
- '_content property is deprecated and will be removed in v9, please use ref instead'
84
- )
85
-
86
- return this.ref
87
- }
88
-
89
82
  constructor(props: DrawerLayoutTrayProps) {
90
83
  super(props)
91
84
 
@@ -24,7 +24,7 @@
24
24
 
25
25
  import { Component } from 'react'
26
26
 
27
- import { DrawerLayout } from '../index'
27
+ import { DrawerLayout } from '../index.js'
28
28
  import type { DrawerLayoutProps } from '../props'
29
29
  import type { DrawerLayoutTrayProps } from '../DrawerTray/props'
30
30
 
@@ -37,6 +37,7 @@ type DrawerLayoutFixtureProps = {
37
37
  }
38
38
 
39
39
  export default class DrawerLayoutFixture extends Component<DrawerLayoutFixtureProps> {
40
+ static displayName = 'DrawerLayoutFixture'
40
41
  static defaultProps = {
41
42
  layoutWidth: '600px',
42
43
  trayWidth: '200px',
@@ -37,18 +37,18 @@ import { logError as error } from '@instructure/console'
37
37
  import { mirrorHorizontalPlacement } from '@instructure/ui-position'
38
38
  import type { PlacementPropValues } from '@instructure/ui-position'
39
39
 
40
- import { DrawerContent } from './DrawerContent'
40
+ import { DrawerContent } from './DrawerContent/index.js'
41
41
  import type {
42
42
  DrawerLayoutContentProps,
43
43
  DrawerContentSize
44
44
  } from './DrawerContent/props'
45
- import { DrawerTray } from './DrawerTray'
45
+ import { DrawerTray } from './DrawerTray/index.js'
46
46
  import type { DrawerLayoutTrayProps } from './DrawerTray/props'
47
47
 
48
48
  import { withStyleNew } from '@instructure/emotion'
49
- import generateStyle from './styles'
49
+ import generateStyle from './styles.js'
50
50
 
51
- import { allowedProps } from './props'
51
+ import { allowedProps } from './props.js'
52
52
  import type { DrawerLayoutProps, DrawerLayoutState } from './props'
53
53
 
54
54
  type TrayChild = ComponentElement<
@@ -70,6 +70,7 @@ category: components
70
70
  @withStyleNew(generateStyle)
71
71
  @textDirectionContextConsumer()
72
72
  class DrawerLayout extends Component<DrawerLayoutProps, DrawerLayoutState> {
73
+ static displayName = 'DrawerLayout'
73
74
  static readonly componentId = 'DrawerLayout'
74
75
 
75
76
  static locatorAttribute = 'data-drawer-layout'
package/src/exports/a.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v1'
25
+ export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v1/index.js'
26
26
 
27
27
  export type { DrawerLayoutProps } from '../DrawerLayout/v1/props'
28
28
  export type { DrawerLayoutContentProps } from '../DrawerLayout/v1/DrawerContent/props'
package/src/exports/b.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v2'
25
+ export { DrawerLayout, DrawerContent, DrawerTray } from '../DrawerLayout/v2/index.js'
26
26
 
27
27
  export type { DrawerLayoutProps } from '../DrawerLayout/v2/props'
28
28
  export type { DrawerLayoutContentProps } from '../DrawerLayout/v2/DrawerContent/props'