@instructure/ui-modal 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 (77) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE.md +1 -0
  3. package/{lib/Modal/v2/ModalBody/props.js → babel.config.cjs} +12 -7
  4. package/es/Modal/v1/ModalBody/index.js +6 -5
  5. package/es/Modal/v1/ModalFooter/index.js +4 -4
  6. package/es/Modal/v1/ModalHeader/index.js +5 -5
  7. package/es/Modal/v1/index.js +9 -8
  8. package/es/Modal/v2/ModalBody/index.js +5 -4
  9. package/es/Modal/v2/ModalFooter/index.js +3 -3
  10. package/es/Modal/v2/ModalHeader/index.js +4 -4
  11. package/es/Modal/v2/index.js +8 -7
  12. package/es/exports/a.js +1 -1
  13. package/es/exports/b.js +1 -1
  14. package/package.json +19 -24
  15. package/src/Modal/v1/ModalBody/index.tsx +5 -4
  16. package/src/Modal/v1/ModalFooter/index.tsx +4 -3
  17. package/src/Modal/v1/ModalHeader/index.tsx +5 -4
  18. package/src/Modal/v1/index.tsx +8 -7
  19. package/src/Modal/v2/ModalBody/index.tsx +4 -3
  20. package/src/Modal/v2/ModalFooter/index.tsx +3 -2
  21. package/src/Modal/v2/ModalHeader/index.tsx +4 -3
  22. package/src/Modal/v2/index.tsx +7 -6
  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/Modal/v1/ModalBody/index.d.ts +1 -0
  27. package/types/Modal/v1/ModalBody/index.d.ts.map +1 -1
  28. package/types/Modal/v1/ModalFooter/index.d.ts +1 -0
  29. package/types/Modal/v1/ModalFooter/index.d.ts.map +1 -1
  30. package/types/Modal/v1/ModalHeader/index.d.ts +3 -2
  31. package/types/Modal/v1/ModalHeader/index.d.ts.map +1 -1
  32. package/types/Modal/v1/index.d.ts +5 -4
  33. package/types/Modal/v1/index.d.ts.map +1 -1
  34. package/types/Modal/v2/ModalBody/index.d.ts +1 -0
  35. package/types/Modal/v2/ModalBody/index.d.ts.map +1 -1
  36. package/types/Modal/v2/ModalFooter/index.d.ts +1 -0
  37. package/types/Modal/v2/ModalFooter/index.d.ts.map +1 -1
  38. package/types/Modal/v2/ModalHeader/index.d.ts +3 -2
  39. package/types/Modal/v2/ModalHeader/index.d.ts.map +1 -1
  40. package/types/Modal/v2/index.d.ts +5 -4
  41. package/types/Modal/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/Modal/v1/ModalBody/index.js +0 -136
  47. package/lib/Modal/v1/ModalBody/props.js +0 -31
  48. package/lib/Modal/v1/ModalBody/styles.js +0 -64
  49. package/lib/Modal/v1/ModalBody/theme.js +0 -44
  50. package/lib/Modal/v1/ModalContext.js +0 -39
  51. package/lib/Modal/v1/ModalFooter/index.js +0 -76
  52. package/lib/Modal/v1/ModalFooter/props.js +0 -31
  53. package/lib/Modal/v1/ModalFooter/styles.js +0 -66
  54. package/lib/Modal/v1/ModalFooter/theme.js +0 -55
  55. package/lib/Modal/v1/ModalHeader/index.js +0 -116
  56. package/lib/Modal/v1/ModalHeader/props.js +0 -31
  57. package/lib/Modal/v1/ModalHeader/styles.js +0 -85
  58. package/lib/Modal/v1/ModalHeader/theme.js +0 -53
  59. package/lib/Modal/v1/index.js +0 -289
  60. package/lib/Modal/v1/props.js +0 -31
  61. package/lib/Modal/v1/styles.js +0 -124
  62. package/lib/Modal/v1/theme.js +0 -62
  63. package/lib/Modal/v2/ModalBody/index.js +0 -136
  64. package/lib/Modal/v2/ModalBody/styles.js +0 -76
  65. package/lib/Modal/v2/ModalContext.js +0 -39
  66. package/lib/Modal/v2/ModalFooter/index.js +0 -75
  67. package/lib/Modal/v2/ModalFooter/props.js +0 -31
  68. package/lib/Modal/v2/ModalFooter/styles.js +0 -68
  69. package/lib/Modal/v2/ModalHeader/index.js +0 -115
  70. package/lib/Modal/v2/ModalHeader/props.js +0 -31
  71. package/lib/Modal/v2/ModalHeader/styles.js +0 -86
  72. package/lib/Modal/v2/index.js +0 -288
  73. package/lib/Modal/v2/props.js +0 -31
  74. package/lib/Modal/v2/styles.js +0 -127
  75. package/lib/exports/a.js +0 -30
  76. package/lib/exports/b.js +0 -30
  77. package/lib/package.json +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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
+ **Note:** Version bump only for package @instructure/ui-modal
9
+
10
+
11
+
12
+
13
+
6
14
  ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
15
 
8
16
 
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', 'padding', 'elementRef', 'as', 'variant', 'overflow', 'spacing'];
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,10 +28,11 @@ import { View } from '@instructure/ui-view/v11_6';
28
28
  import { omitProps } from '@instructure/ui-react-utils';
29
29
  import { getCSSStyleDeclaration } from '@instructure/ui-dom-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";
34
- import ModalContext from "../ModalContext.js";
31
+ import generateStyle from './styles.js';
32
+ import generateComponentTheme from './theme.js';
33
+ import { allowedProps } from './props.js';
34
+ import ModalContext from '../ModalContext.js';
35
+
35
36
  /**
36
37
  ---
37
38
  parent: Modal
@@ -40,7 +41,7 @@ id: Modal.Body
40
41
  **/
41
42
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
42
43
  let ModalBody = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class ModalBody extends Component {
43
- static displayName = "ModalBody";
44
+ static displayName = 'ModalBody';
44
45
  static componentId = 'Modal.Body';
45
46
  static allowedProps = allowedProps;
46
47
  static defaultProps = {
@@ -26,9 +26,9 @@ var _dec, _class;
26
26
  import { Component } from 'react';
27
27
  import { passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { withStyle } from '@instructure/emotion';
29
- import generateStyle from "./styles.js";
30
- import generateComponentTheme from "./theme.js";
31
- import { allowedProps } from "./props.js";
29
+ import generateStyle from './styles.js';
30
+ import generateComponentTheme from './theme.js';
31
+ import { allowedProps } from './props.js';
32
32
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
33
33
  /**
34
34
  ---
@@ -37,7 +37,7 @@ id: Modal.Footer
37
37
  ---
38
38
  **/
39
39
  let ModalFooter = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class ModalFooter extends Component {
40
- static displayName = "ModalFooter";
40
+ static displayName = 'ModalFooter';
41
41
  static componentId = 'Modal.Footer';
42
42
  static allowedProps = allowedProps;
43
43
  static defaultProps = {
@@ -27,10 +27,10 @@ import { Children, Component } from 'react';
27
27
  import { matchComponentTypes, passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { withStyle } from '@instructure/emotion';
29
29
  import { CloseButton } from '@instructure/ui-buttons/v11_6';
30
- import generateStyle from "./styles.js";
31
- import generateComponentTheme from "./theme.js";
32
- import { allowedProps } from "./props.js";
33
- import ModalContext from "../ModalContext.js";
30
+ import generateStyle from './styles.js';
31
+ import generateComponentTheme from './theme.js';
32
+ import { allowedProps } from './props.js';
33
+ import ModalContext from '../ModalContext.js';
34
34
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
35
35
  /**
36
36
  ---
@@ -39,7 +39,7 @@ id: Modal.Header
39
39
  ---
40
40
  **/
41
41
  let ModalHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class ModalHeader extends Component {
42
- static displayName = "ModalHeader";
42
+ static displayName = 'ModalHeader';
43
43
  static componentId = 'Modal.Header';
44
44
  static allowedProps = allowedProps;
45
45
  static defaultProps = {
@@ -30,14 +30,15 @@ import { Transition } from '@instructure/ui-motion';
30
30
  import { Portal } from '@instructure/ui-portal';
31
31
  import { Dialog } from '@instructure/ui-dialog';
32
32
  import { Mask } from '@instructure/ui-overlays/v11_6';
33
- import { ModalHeader } from "./ModalHeader/index.js";
34
- import { ModalBody } from "./ModalBody/index.js";
35
- import { ModalFooter } from "./ModalFooter/index.js";
33
+ import { ModalHeader } from './ModalHeader/index.js';
34
+ import { ModalBody } from './ModalBody/index.js';
35
+ import { ModalFooter } from './ModalFooter/index.js';
36
36
  import { withStyle } from '@instructure/emotion';
37
- import generateStyle from "./styles.js";
38
- import generateComponentTheme from "./theme.js";
39
- import { allowedProps } from "./props.js";
40
- import ModalContext from "./ModalContext.js";
37
+ import generateStyle from './styles.js';
38
+ import generateComponentTheme from './theme.js';
39
+ import { allowedProps } from './props.js';
40
+ import ModalContext from './ModalContext.js';
41
+
41
42
  /**
42
43
  ---
43
44
  category: components
@@ -46,7 +47,7 @@ tags: overlay, portal, dialog
46
47
  **/
47
48
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
48
49
  let Modal = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Modal extends Component {
49
- static displayName = "Modal";
50
+ static displayName = 'Modal';
50
51
  static componentId = 'Modal';
51
52
  static allowedProps = allowedProps;
52
53
  static defaultProps = {
@@ -28,9 +28,10 @@ import { View } from '@instructure/ui-view/latest';
28
28
  import { omitProps } from '@instructure/ui-react-utils';
29
29
  import { getCSSStyleDeclaration } from '@instructure/ui-dom-utils';
30
30
  import { withStyleNew } from '@instructure/emotion';
31
- import generateStyle from "./styles.js";
32
- import { allowedProps } from "./props.js";
33
- import ModalContext from "../ModalContext.js";
31
+ import generateStyle from './styles.js';
32
+ import { allowedProps } from './props.js';
33
+ import ModalContext from '../ModalContext.js';
34
+
34
35
  /**
35
36
  ---
36
37
  parent: Modal
@@ -39,7 +40,7 @@ id: Modal.Body
39
40
  **/
40
41
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
41
42
  let ModalBody = (_dec = withStyleNew(generateStyle, 'ModalBody'), _dec(_class = class ModalBody extends Component {
42
- static displayName = "ModalBody";
43
+ static displayName = 'ModalBody';
43
44
  static componentId = 'Modal.Body';
44
45
  static allowedProps = allowedProps;
45
46
  static defaultProps = {
@@ -26,8 +26,8 @@ var _dec, _class;
26
26
  import { Component } from 'react';
27
27
  import { passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { withStyleNew } from '@instructure/emotion';
29
- import generateStyle from "./styles.js";
30
- import { allowedProps } from "./props.js";
29
+ import generateStyle from './styles.js';
30
+ import { allowedProps } from './props.js';
31
31
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
32
32
  /**
33
33
  ---
@@ -36,7 +36,7 @@ id: Modal.Footer
36
36
  ---
37
37
  **/
38
38
  let ModalFooter = (_dec = withStyleNew(generateStyle, 'ModalFooter'), _dec(_class = class ModalFooter extends Component {
39
- static displayName = "ModalFooter";
39
+ static displayName = 'ModalFooter';
40
40
  static componentId = 'Modal.Footer';
41
41
  static allowedProps = allowedProps;
42
42
  static defaultProps = {
@@ -27,9 +27,9 @@ import { Children, Component } from 'react';
27
27
  import { matchComponentTypes, passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { withStyleNew } from '@instructure/emotion';
29
29
  import { CloseButton } from '@instructure/ui-buttons/latest';
30
- import generateStyle from "./styles.js";
31
- import { allowedProps } from "./props.js";
32
- import ModalContext from "../ModalContext.js";
30
+ import generateStyle from './styles.js';
31
+ import { allowedProps } from './props.js';
32
+ import ModalContext from '../ModalContext.js';
33
33
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
34
34
  /**
35
35
  ---
@@ -38,7 +38,7 @@ id: Modal.Header
38
38
  ---
39
39
  **/
40
40
  let ModalHeader = (_dec = withStyleNew(generateStyle, 'ModalHeader'), _dec(_class = class ModalHeader extends Component {
41
- static displayName = "ModalHeader";
41
+ static displayName = 'ModalHeader';
42
42
  static componentId = 'Modal.Header';
43
43
  static allowedProps = allowedProps;
44
44
  static defaultProps = {
@@ -30,13 +30,14 @@ import { Transition } from '@instructure/ui-motion';
30
30
  import { Portal } from '@instructure/ui-portal';
31
31
  import { Dialog } from '@instructure/ui-dialog';
32
32
  import { Mask } from '@instructure/ui-overlays/latest';
33
- import { ModalHeader } from "./ModalHeader/index.js";
34
- import { ModalBody } from "./ModalBody/index.js";
35
- import { ModalFooter } from "./ModalFooter/index.js";
33
+ import { ModalHeader } from './ModalHeader/index.js';
34
+ import { ModalBody } from './ModalBody/index.js';
35
+ import { ModalFooter } from './ModalFooter/index.js';
36
36
  import { withStyleNew } from '@instructure/emotion';
37
- import generateStyle from "./styles.js";
38
- import { allowedProps } from "./props.js";
39
- import ModalContext from "./ModalContext.js";
37
+ import generateStyle from './styles.js';
38
+ import { allowedProps } from './props.js';
39
+ import ModalContext from './ModalContext.js';
40
+
40
41
  /**
41
42
  ---
42
43
  category: components
@@ -45,7 +46,7 @@ tags: overlay, portal, dialog
45
46
  **/
46
47
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
47
48
  let Modal = (_dec = withStyleNew(generateStyle), _dec(_class = class Modal extends Component {
48
- static displayName = "Modal";
49
+ static displayName = 'Modal';
49
50
  static componentId = 'Modal';
50
51
  static allowedProps = allowedProps;
51
52
  static defaultProps = {
package/es/exports/a.js CHANGED
@@ -21,4 +21,4 @@
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 { Modal, ModalBody, ModalFooter, ModalHeader } from "../Modal/v1/index.js";
24
+ export { Modal, ModalBody, ModalFooter, ModalHeader } from '../Modal/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,4 +21,4 @@
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 { Modal, ModalBody, ModalFooter, ModalHeader } from "../Modal/v2/index.js";
24
+ export { Modal, ModalBody, ModalFooter, ModalHeader } from '../Modal/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-modal",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "A component for displaying content in a dialog overlay",
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/ui-dialog": "11.7.3",
20
- "@instructure/shared-types": "11.7.3",
21
- "@instructure/ui-dom-utils": "11.7.3",
22
- "@instructure/ui-buttons": "11.7.3",
23
- "@instructure/emotion": "11.7.3",
24
- "@instructure/ui-portal": "11.7.3",
25
- "@instructure/ui-motion": "11.7.3",
26
- "@instructure/ui-overlays": "11.7.3",
27
- "@instructure/ui-react-utils": "11.7.3",
28
- "@instructure/ui-themes": "11.7.3",
29
- "@instructure/ui-utils": "11.7.3",
30
- "@instructure/ui-view": "11.7.3"
18
+ "@instructure/console": "11.7.4-pr-snapshot-1781695314229",
19
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/ui-buttons": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-dialog": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/ui-motion": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-portal": "11.7.4-pr-snapshot-1781695314229",
25
+ "@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
26
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
27
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
28
+ "@instructure/ui-overlays": "11.7.4-pr-snapshot-1781695314229",
29
+ "@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229",
30
+ "@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.6.3",
34
34
  "@testing-library/react": "15.0.7",
35
35
  "@testing-library/user-event": "^14.6.1",
36
36
  "vitest": "^3.2.2",
37
- "@instructure/ui-babel-preset": "11.7.3",
38
- "@instructure/ui-position": "11.7.3",
39
- "@instructure/ui-color-utils": "11.7.3"
37
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
38
+ "@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229",
39
+ "@instructure/ui-position": "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"
@@ -29,13 +29,13 @@ import { omitProps } from '@instructure/ui-react-utils'
29
29
  import { getCSSStyleDeclaration } from '@instructure/ui-dom-utils'
30
30
 
31
31
  import { withStyle } from '@instructure/emotion'
32
- import generateStyle from './styles'
33
- import generateComponentTheme from './theme'
32
+ import generateStyle from './styles.js'
33
+ import generateComponentTheme from './theme.js'
34
34
 
35
- import { allowedProps } from './props'
35
+ import { allowedProps } from './props.js'
36
36
  import type { ModalBodyProps } from './props'
37
37
  import { UIElement } from '@instructure/shared-types'
38
- import ModalContext from '../ModalContext'
38
+ import ModalContext from '../ModalContext.js'
39
39
 
40
40
  /**
41
41
  ---
@@ -45,6 +45,7 @@ id: Modal.Body
45
45
  **/
46
46
  @withStyle(generateStyle, generateComponentTheme)
47
47
  class ModalBody extends Component<ModalBodyProps> {
48
+ static displayName = 'ModalBody'
48
49
  static readonly componentId = 'Modal.Body'
49
50
 
50
51
  static allowedProps = allowedProps
@@ -26,10 +26,10 @@ import { Component } from 'react'
26
26
 
27
27
  import { passthroughProps } from '@instructure/ui-react-utils'
28
28
  import { withStyle } from '@instructure/emotion'
29
- import generateStyle from './styles'
30
- import generateComponentTheme from './theme'
29
+ import generateStyle from './styles.js'
30
+ import generateComponentTheme from './theme.js'
31
31
 
32
- import { allowedProps } from './props'
32
+ import { allowedProps } from './props.js'
33
33
  import type { ModalFooterProps } from './props'
34
34
 
35
35
  /**
@@ -40,6 +40,7 @@ id: Modal.Footer
40
40
  **/
41
41
  @withStyle(generateStyle, generateComponentTheme)
42
42
  class ModalFooter extends Component<ModalFooterProps> {
43
+ static displayName = 'ModalFooter'
43
44
  static readonly componentId = 'Modal.Footer'
44
45
 
45
46
  static allowedProps = allowedProps
@@ -34,12 +34,12 @@ import { withStyle } from '@instructure/emotion'
34
34
  import { CloseButton } from '@instructure/ui-buttons/v11_6'
35
35
  import type { CloseButtonProps } from '@instructure/ui-buttons/v11_6'
36
36
 
37
- import generateStyle from './styles'
38
- import generateComponentTheme from './theme'
37
+ import generateStyle from './styles.js'
38
+ import generateComponentTheme from './theme.js'
39
39
 
40
- import { allowedProps } from './props'
40
+ import { allowedProps } from './props.js'
41
41
  import type { ModalHeaderProps, ModalHeaderStyleProps } from './props'
42
- import ModalContext from '../ModalContext'
42
+ import ModalContext from '../ModalContext.js'
43
43
 
44
44
  type CloseButtonChild = ComponentElement<CloseButtonProps, CloseButton>
45
45
 
@@ -51,6 +51,7 @@ id: Modal.Header
51
51
  **/
52
52
  @withStyle(generateStyle, generateComponentTheme)
53
53
  class ModalHeader extends Component<ModalHeaderProps> {
54
+ static displayName = 'ModalHeader'
54
55
  static readonly componentId = 'Modal.Header'
55
56
 
56
57
  static allowedProps = allowedProps
@@ -33,23 +33,23 @@ import type { PortalNode } from '@instructure/ui-portal'
33
33
  import { Dialog } from '@instructure/ui-dialog'
34
34
  import { Mask } from '@instructure/ui-overlays/v11_6'
35
35
 
36
- import { ModalHeader } from './ModalHeader'
37
- import { ModalBody } from './ModalBody'
38
- import { ModalFooter } from './ModalFooter'
36
+ import { ModalHeader } from './ModalHeader/index.js'
37
+ import { ModalBody } from './ModalBody/index.js'
38
+ import { ModalFooter } from './ModalFooter/index.js'
39
39
 
40
40
  import { withStyle } from '@instructure/emotion'
41
41
 
42
- import generateStyle from './styles'
43
- import generateComponentTheme from './theme'
42
+ import generateStyle from './styles.js'
43
+ import generateComponentTheme from './theme.js'
44
44
 
45
- import { allowedProps } from './props'
45
+ import { allowedProps } from './props.js'
46
46
  import type {
47
47
  ModalProps,
48
48
  ModalState,
49
49
  ModalPropsForPortal,
50
50
  ModalPropsForTransition
51
51
  } from './props'
52
- import ModalContext from './ModalContext'
52
+ import ModalContext from './ModalContext.js'
53
53
 
54
54
  /**
55
55
  ---
@@ -59,6 +59,7 @@ tags: overlay, portal, dialog
59
59
  **/
60
60
  @withStyle(generateStyle, generateComponentTheme)
61
61
  class Modal extends Component<ModalProps, ModalState> {
62
+ static displayName = 'Modal'
62
63
  static readonly componentId = 'Modal'
63
64
 
64
65
  static allowedProps = allowedProps
@@ -29,12 +29,12 @@ import { omitProps } from '@instructure/ui-react-utils'
29
29
  import { getCSSStyleDeclaration } from '@instructure/ui-dom-utils'
30
30
 
31
31
  import { withStyleNew } from '@instructure/emotion'
32
- import generateStyle from './styles'
32
+ import generateStyle from './styles.js'
33
33
 
34
- import { allowedProps } from './props'
34
+ import { allowedProps } from './props.js'
35
35
  import type { ModalBodyProps } from './props'
36
36
  import { UIElement } from '@instructure/shared-types'
37
- import ModalContext from '../ModalContext'
37
+ import ModalContext from '../ModalContext.js'
38
38
 
39
39
  /**
40
40
  ---
@@ -44,6 +44,7 @@ id: Modal.Body
44
44
  **/
45
45
  @withStyleNew(generateStyle, 'ModalBody')
46
46
  class ModalBody extends Component<ModalBodyProps> {
47
+ static displayName = 'ModalBody'
47
48
  static readonly componentId = 'Modal.Body'
48
49
 
49
50
  static allowedProps = allowedProps
@@ -26,9 +26,9 @@ import { Component } from 'react'
26
26
 
27
27
  import { passthroughProps } from '@instructure/ui-react-utils'
28
28
  import { withStyleNew } from '@instructure/emotion'
29
- import generateStyle from './styles'
29
+ import generateStyle from './styles.js'
30
30
 
31
- import { allowedProps } from './props'
31
+ import { allowedProps } from './props.js'
32
32
  import type { ModalFooterProps } from './props'
33
33
 
34
34
  /**
@@ -39,6 +39,7 @@ id: Modal.Footer
39
39
  **/
40
40
  @withStyleNew(generateStyle, 'ModalFooter')
41
41
  class ModalFooter extends Component<ModalFooterProps> {
42
+ static displayName = 'ModalFooter'
42
43
  static readonly componentId = 'Modal.Footer'
43
44
 
44
45
  static allowedProps = allowedProps
@@ -34,11 +34,11 @@ import { withStyleNew } from '@instructure/emotion'
34
34
  import { CloseButton } from '@instructure/ui-buttons/latest'
35
35
  import type { CloseButtonProps } from '@instructure/ui-buttons/latest'
36
36
 
37
- import generateStyle from './styles'
37
+ import generateStyle from './styles.js'
38
38
 
39
- import { allowedProps } from './props'
39
+ import { allowedProps } from './props.js'
40
40
  import type { ModalHeaderProps, ModalHeaderStyleProps } from './props'
41
- import ModalContext from '../ModalContext'
41
+ import ModalContext from '../ModalContext.js'
42
42
 
43
43
  type CloseButtonChild = ComponentElement<CloseButtonProps, CloseButton>
44
44
 
@@ -50,6 +50,7 @@ id: Modal.Header
50
50
  **/
51
51
  @withStyleNew(generateStyle, 'ModalHeader')
52
52
  class ModalHeader extends Component<ModalHeaderProps> {
53
+ static displayName = 'ModalHeader'
53
54
  static readonly componentId = 'Modal.Header'
54
55
 
55
56
  static allowedProps = allowedProps
@@ -33,22 +33,22 @@ import type { PortalNode } from '@instructure/ui-portal'
33
33
  import { Dialog } from '@instructure/ui-dialog'
34
34
  import { Mask } from '@instructure/ui-overlays/latest'
35
35
 
36
- import { ModalHeader } from './ModalHeader'
37
- import { ModalBody } from './ModalBody'
38
- import { ModalFooter } from './ModalFooter'
36
+ import { ModalHeader } from './ModalHeader/index.js'
37
+ import { ModalBody } from './ModalBody/index.js'
38
+ import { ModalFooter } from './ModalFooter/index.js'
39
39
 
40
40
  import { withStyleNew } from '@instructure/emotion'
41
41
 
42
- import generateStyle from './styles'
42
+ import generateStyle from './styles.js'
43
43
 
44
- import { allowedProps } from './props'
44
+ import { allowedProps } from './props.js'
45
45
  import type {
46
46
  ModalProps,
47
47
  ModalState,
48
48
  ModalPropsForPortal,
49
49
  ModalPropsForTransition
50
50
  } from './props'
51
- import ModalContext from './ModalContext'
51
+ import ModalContext from './ModalContext.js'
52
52
 
53
53
  /**
54
54
  ---
@@ -58,6 +58,7 @@ tags: overlay, portal, dialog
58
58
  **/
59
59
  @withStyleNew(generateStyle)
60
60
  class Modal extends Component<ModalProps, ModalState> {
61
+ static displayName = 'Modal'
61
62
  static readonly componentId = 'Modal'
62
63
 
63
64
  static allowedProps = allowedProps
package/src/exports/a.ts CHANGED
@@ -21,7 +21,7 @@
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 { Modal, ModalBody, ModalFooter, ModalHeader } from '../Modal/v1'
24
+ export { Modal, ModalBody, ModalFooter, ModalHeader } from '../Modal/v1/index.js'
25
25
 
26
26
  export type { ModalProps } from '../Modal/v1/props'
27
27
  export type { ModalBodyProps } from '../Modal/v1/ModalBody/props'
package/src/exports/b.ts CHANGED
@@ -21,7 +21,7 @@
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 { Modal, ModalBody, ModalFooter, ModalHeader } from '../Modal/v2'
24
+ export { Modal, ModalBody, ModalFooter, ModalHeader } from '../Modal/v2/index.js'
25
25
 
26
26
  export type { ModalProps } from '../Modal/v2/props'
27
27
  export type { ModalBodyProps } from '../Modal/v2/ModalBody/props'