@instructure/ui-modal 11.7.11-snapshot-25 → 11.7.11-snapshot-27
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/es/Modal/v1/ModalBody/index.js +3 -3
- package/es/Modal/v1/ModalFooter/index.js +3 -3
- package/es/Modal/v1/ModalHeader/index.js +3 -3
- package/es/Modal/v1/index.js +3 -3
- package/es/Modal/v2/ModalBody/index.js +3 -3
- package/es/Modal/v2/ModalFooter/index.js +3 -3
- package/es/Modal/v2/ModalHeader/index.js +3 -3
- package/es/Modal/v2/index.js +3 -3
- package/lib/Modal/v1/ModalBody/index.js +6 -4
- package/lib/Modal/v1/ModalFooter/index.js +6 -4
- package/lib/Modal/v1/ModalHeader/index.js +6 -4
- package/lib/Modal/v1/index.js +6 -4
- package/lib/Modal/v2/ModalBody/index.js +6 -4
- package/lib/Modal/v2/ModalFooter/index.js +6 -4
- package/lib/Modal/v2/ModalHeader/index.js +6 -4
- package/lib/Modal/v2/index.js +6 -4
- package/package.json +18 -18
- package/src/Modal/v1/ModalBody/index.tsx +7 -2
- package/src/Modal/v1/ModalFooter/index.tsx +7 -2
- package/src/Modal/v1/ModalHeader/index.tsx +7 -2
- package/src/Modal/v1/index.tsx +4 -2
- package/src/Modal/v2/ModalBody/index.tsx +4 -2
- package/src/Modal/v2/ModalFooter/index.tsx +4 -2
- package/src/Modal/v2/ModalHeader/index.tsx +4 -2
- package/src/Modal/v2/index.tsx +4 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Modal/v1/ModalBody/index.d.ts +3 -1
- package/types/Modal/v1/ModalBody/index.d.ts.map +1 -1
- package/types/Modal/v1/ModalFooter/index.d.ts +3 -1
- package/types/Modal/v1/ModalFooter/index.d.ts.map +1 -1
- package/types/Modal/v1/ModalHeader/index.d.ts +3 -1
- package/types/Modal/v1/ModalHeader/index.d.ts.map +1 -1
- package/types/Modal/v1/index.d.ts +6 -4
- package/types/Modal/v1/index.d.ts.map +1 -1
- package/types/Modal/v2/ModalBody/index.d.ts +3 -1
- package/types/Modal/v2/ModalBody/index.d.ts.map +1 -1
- package/types/Modal/v2/ModalFooter/index.d.ts +3 -1
- package/types/Modal/v2/ModalFooter/index.d.ts.map +1 -1
- package/types/Modal/v2/ModalHeader/index.d.ts +3 -1
- package/types/Modal/v2/ModalHeader/index.d.ts.map +1 -1
- package/types/Modal/v2/index.d.ts +6 -4
- package/types/Modal/v2/index.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.11-snapshot-
|
|
6
|
+
## [11.7.11-snapshot-27](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-27) (2026-11-24)
|
|
7
7
|
|
|
8
8
|
### Bug Fixes
|
|
9
9
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var _dec, _class;
|
|
2
1
|
/*
|
|
3
2
|
* The MIT License (MIT)
|
|
4
3
|
*
|
|
@@ -40,7 +39,7 @@ id: Modal.Body
|
|
|
40
39
|
---
|
|
41
40
|
**/
|
|
42
41
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
43
|
-
|
|
42
|
+
export class ModalBodyBase extends Component {
|
|
44
43
|
static displayName = 'ModalBody';
|
|
45
44
|
static componentId = 'Modal.Body';
|
|
46
45
|
static allowedProps = allowedProps;
|
|
@@ -173,6 +172,7 @@ let ModalBody = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
|
|
|
173
172
|
})
|
|
174
173
|
});
|
|
175
174
|
}
|
|
176
|
-
}
|
|
175
|
+
}
|
|
176
|
+
const ModalBody = withStyle(generateStyle, generateComponentTheme)(ModalBodyBase);
|
|
177
177
|
export default ModalBody;
|
|
178
178
|
export { ModalBody };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var _dec, _class;
|
|
2
1
|
/*
|
|
3
2
|
* The MIT License (MIT)
|
|
4
3
|
*
|
|
@@ -36,7 +35,7 @@ parent: Modal
|
|
|
36
35
|
id: Modal.Footer
|
|
37
36
|
---
|
|
38
37
|
**/
|
|
39
|
-
|
|
38
|
+
export class ModalFooterBase extends Component {
|
|
40
39
|
static displayName = 'ModalFooter';
|
|
41
40
|
static componentId = 'Modal.Footer';
|
|
42
41
|
static allowedProps = allowedProps;
|
|
@@ -66,6 +65,7 @@ let ModalFooter = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
66
65
|
children: children
|
|
67
66
|
});
|
|
68
67
|
}
|
|
69
|
-
}
|
|
68
|
+
}
|
|
69
|
+
const ModalFooter = withStyle(generateStyle, generateComponentTheme)(ModalFooterBase);
|
|
70
70
|
export default ModalFooter;
|
|
71
71
|
export { ModalFooter };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var _dec, _class;
|
|
2
1
|
/*
|
|
3
2
|
* The MIT License (MIT)
|
|
4
3
|
*
|
|
@@ -38,7 +37,7 @@ parent: Modal
|
|
|
38
37
|
id: Modal.Header
|
|
39
38
|
---
|
|
40
39
|
**/
|
|
41
|
-
|
|
40
|
+
export class ModalHeaderBase extends Component {
|
|
42
41
|
static displayName = 'ModalHeader';
|
|
43
42
|
static componentId = 'Modal.Header';
|
|
44
43
|
static allowedProps = allowedProps;
|
|
@@ -105,6 +104,7 @@ let ModalHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
105
104
|
children: children
|
|
106
105
|
});
|
|
107
106
|
}
|
|
108
|
-
}
|
|
107
|
+
}
|
|
108
|
+
const ModalHeader = withStyle(generateStyle, generateComponentTheme)(ModalHeaderBase);
|
|
109
109
|
export default ModalHeader;
|
|
110
110
|
export { ModalHeader };
|
package/es/Modal/v1/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var _dec, _class;
|
|
2
1
|
/*
|
|
3
2
|
* The MIT License (MIT)
|
|
4
3
|
*
|
|
@@ -46,7 +45,7 @@ tags: overlay, portal, dialog
|
|
|
46
45
|
---
|
|
47
46
|
**/
|
|
48
47
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
49
|
-
|
|
48
|
+
export class ModalBase extends Component {
|
|
50
49
|
static displayName = 'Modal';
|
|
51
50
|
static componentId = 'Modal';
|
|
52
51
|
static allowedProps = allowedProps;
|
|
@@ -268,6 +267,7 @@ let Modal = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_clas
|
|
|
268
267
|
})
|
|
269
268
|
});
|
|
270
269
|
}
|
|
271
|
-
}
|
|
270
|
+
}
|
|
271
|
+
const Modal = withStyle(generateStyle, generateComponentTheme)(ModalBase);
|
|
272
272
|
export default Modal;
|
|
273
273
|
export { Modal, ModalHeader, ModalBody, ModalFooter };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var _dec, _class;
|
|
2
1
|
/*
|
|
3
2
|
* The MIT License (MIT)
|
|
4
3
|
*
|
|
@@ -39,7 +38,7 @@ id: Modal.Body
|
|
|
39
38
|
---
|
|
40
39
|
**/
|
|
41
40
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
42
|
-
|
|
41
|
+
export class ModalBodyBase extends Component {
|
|
43
42
|
static displayName = 'ModalBody';
|
|
44
43
|
static componentId = 'Modal.Body';
|
|
45
44
|
static themeId = 'ModalBody';
|
|
@@ -174,6 +173,7 @@ let ModalBody = (_dec = withStyleNew(generateStyle, 'ModalBody'), _dec(_class =
|
|
|
174
173
|
})
|
|
175
174
|
});
|
|
176
175
|
}
|
|
177
|
-
}
|
|
176
|
+
}
|
|
177
|
+
const ModalBody = withStyleNew(generateStyle, 'ModalBody')(ModalBodyBase);
|
|
178
178
|
export default ModalBody;
|
|
179
179
|
export { ModalBody };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var _dec, _class;
|
|
2
1
|
/*
|
|
3
2
|
* The MIT License (MIT)
|
|
4
3
|
*
|
|
@@ -35,7 +34,7 @@ parent: Modal
|
|
|
35
34
|
id: Modal.Footer
|
|
36
35
|
---
|
|
37
36
|
**/
|
|
38
|
-
|
|
37
|
+
export class ModalFooterBase extends Component {
|
|
39
38
|
static displayName = 'ModalFooter';
|
|
40
39
|
static componentId = 'Modal.Footer';
|
|
41
40
|
static themeId = 'ModalFooter';
|
|
@@ -66,6 +65,7 @@ let ModalFooter = (_dec = withStyleNew(generateStyle, 'ModalFooter'), _dec(_clas
|
|
|
66
65
|
children: children
|
|
67
66
|
});
|
|
68
67
|
}
|
|
69
|
-
}
|
|
68
|
+
}
|
|
69
|
+
const ModalFooter = withStyleNew(generateStyle, 'ModalFooter')(ModalFooterBase);
|
|
70
70
|
export default ModalFooter;
|
|
71
71
|
export { ModalFooter };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var _dec, _class;
|
|
2
1
|
/*
|
|
3
2
|
* The MIT License (MIT)
|
|
4
3
|
*
|
|
@@ -37,7 +36,7 @@ parent: Modal
|
|
|
37
36
|
id: Modal.Header
|
|
38
37
|
---
|
|
39
38
|
**/
|
|
40
|
-
|
|
39
|
+
export class ModalHeaderBase extends Component {
|
|
41
40
|
static displayName = 'ModalHeader';
|
|
42
41
|
static componentId = 'Modal.Header';
|
|
43
42
|
static themeId = 'ModalHeader';
|
|
@@ -112,6 +111,7 @@ let ModalHeader = (_dec = withStyleNew(generateStyle, 'ModalHeader'), _dec(_clas
|
|
|
112
111
|
children: children
|
|
113
112
|
});
|
|
114
113
|
}
|
|
115
|
-
}
|
|
114
|
+
}
|
|
115
|
+
const ModalHeader = withStyleNew(generateStyle, 'ModalHeader')(ModalHeaderBase);
|
|
116
116
|
export default ModalHeader;
|
|
117
117
|
export { ModalHeader };
|
package/es/Modal/v2/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var _dec, _class;
|
|
2
1
|
/*
|
|
3
2
|
* The MIT License (MIT)
|
|
4
3
|
*
|
|
@@ -45,7 +44,7 @@ tags: overlay, portal, dialog
|
|
|
45
44
|
---
|
|
46
45
|
**/
|
|
47
46
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
48
|
-
|
|
47
|
+
export class ModalBase extends Component {
|
|
49
48
|
static displayName = 'Modal';
|
|
50
49
|
static componentId = 'Modal';
|
|
51
50
|
static allowedProps = allowedProps;
|
|
@@ -261,6 +260,7 @@ let Modal = (_dec = withStyleNew(generateStyle), _dec(_class = class Modal exten
|
|
|
261
260
|
})
|
|
262
261
|
});
|
|
263
262
|
}
|
|
264
|
-
}
|
|
263
|
+
}
|
|
264
|
+
const Modal = withStyleNew(generateStyle)(ModalBase);
|
|
265
265
|
export default Modal;
|
|
266
266
|
export { Modal, ModalHeader, ModalBody, ModalFooter };
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = exports.ModalBody = void 0;
|
|
7
|
+
exports.default = exports.ModalBodyBase = exports.ModalBody = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _v11_ = require("@instructure/ui-view/v11_6");
|
|
10
10
|
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
@@ -15,7 +15,6 @@ var _theme = _interopRequireDefault(require("./theme.js"));
|
|
|
15
15
|
var _props = require("./props.js");
|
|
16
16
|
var _ModalContext = _interopRequireDefault(require("../ModalContext.js"));
|
|
17
17
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
18
|
-
var _dec, _class;
|
|
19
18
|
/*
|
|
20
19
|
* The MIT License (MIT)
|
|
21
20
|
*
|
|
@@ -39,13 +38,14 @@ var _dec, _class;
|
|
|
39
38
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
40
39
|
* SOFTWARE.
|
|
41
40
|
*/
|
|
41
|
+
|
|
42
42
|
/**
|
|
43
43
|
---
|
|
44
44
|
parent: Modal
|
|
45
45
|
id: Modal.Body
|
|
46
46
|
---
|
|
47
47
|
**/
|
|
48
|
-
|
|
48
|
+
class ModalBodyBase extends _react.Component {
|
|
49
49
|
static displayName = 'ModalBody';
|
|
50
50
|
static componentId = 'Modal.Body';
|
|
51
51
|
static allowedProps = _props.allowedProps;
|
|
@@ -178,5 +178,7 @@ let ModalBody = exports.ModalBody = (_dec = (0, _emotion.withStyle)(_styles.defa
|
|
|
178
178
|
})
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
}
|
|
181
|
+
}
|
|
182
|
+
exports.ModalBodyBase = ModalBodyBase;
|
|
183
|
+
const ModalBody = exports.ModalBody = (0, _emotion.withStyle)(_styles.default, _theme.default)(ModalBodyBase);
|
|
182
184
|
var _default = exports.default = ModalBody;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = exports.ModalFooter = void 0;
|
|
7
|
+
exports.default = exports.ModalFooterBase = exports.ModalFooter = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
10
10
|
var _emotion = require("@instructure/emotion");
|
|
@@ -12,7 +12,6 @@ var _styles = _interopRequireDefault(require("./styles.js"));
|
|
|
12
12
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
13
13
|
var _props = require("./props.js");
|
|
14
14
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
|
-
var _dec, _class;
|
|
16
15
|
/*
|
|
17
16
|
* The MIT License (MIT)
|
|
18
17
|
*
|
|
@@ -36,13 +35,14 @@ var _dec, _class;
|
|
|
36
35
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
37
36
|
* SOFTWARE.
|
|
38
37
|
*/
|
|
38
|
+
|
|
39
39
|
/**
|
|
40
40
|
---
|
|
41
41
|
parent: Modal
|
|
42
42
|
id: Modal.Footer
|
|
43
43
|
---
|
|
44
44
|
**/
|
|
45
|
-
|
|
45
|
+
class ModalFooterBase extends _react.Component {
|
|
46
46
|
static displayName = 'ModalFooter';
|
|
47
47
|
static componentId = 'Modal.Footer';
|
|
48
48
|
static allowedProps = _props.allowedProps;
|
|
@@ -72,5 +72,7 @@ let ModalFooter = exports.ModalFooter = (_dec = (0, _emotion.withStyle)(_styles.
|
|
|
72
72
|
children: children
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
}
|
|
75
|
+
}
|
|
76
|
+
exports.ModalFooterBase = ModalFooterBase;
|
|
77
|
+
const ModalFooter = exports.ModalFooter = (0, _emotion.withStyle)(_styles.default, _theme.default)(ModalFooterBase);
|
|
76
78
|
var _default = exports.default = ModalFooter;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = exports.ModalHeader = void 0;
|
|
7
|
+
exports.default = exports.ModalHeaderBase = exports.ModalHeader = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
10
10
|
var _emotion = require("@instructure/emotion");
|
|
@@ -14,7 +14,6 @@ var _theme = _interopRequireDefault(require("./theme.js"));
|
|
|
14
14
|
var _props = require("./props.js");
|
|
15
15
|
var _ModalContext = _interopRequireDefault(require("../ModalContext.js"));
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
|
-
var _dec, _class;
|
|
18
17
|
/*
|
|
19
18
|
* The MIT License (MIT)
|
|
20
19
|
*
|
|
@@ -38,13 +37,14 @@ var _dec, _class;
|
|
|
38
37
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
39
38
|
* SOFTWARE.
|
|
40
39
|
*/
|
|
40
|
+
|
|
41
41
|
/**
|
|
42
42
|
---
|
|
43
43
|
parent: Modal
|
|
44
44
|
id: Modal.Header
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
|
-
|
|
47
|
+
class ModalHeaderBase extends _react.Component {
|
|
48
48
|
static displayName = 'ModalHeader';
|
|
49
49
|
static componentId = 'Modal.Header';
|
|
50
50
|
static allowedProps = _props.allowedProps;
|
|
@@ -111,5 +111,7 @@ let ModalHeader = exports.ModalHeader = (_dec = (0, _emotion.withStyle)(_styles.
|
|
|
111
111
|
children: children
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
}
|
|
114
|
+
}
|
|
115
|
+
exports.ModalHeaderBase = ModalHeaderBase;
|
|
116
|
+
const ModalHeader = exports.ModalHeader = (0, _emotion.withStyle)(_styles.default, _theme.default)(ModalHeaderBase);
|
|
115
117
|
var _default = exports.default = ModalHeader;
|
package/lib/Modal/v1/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Modal = void 0;
|
|
7
|
+
exports.ModalBase = exports.Modal = void 0;
|
|
8
8
|
Object.defineProperty(exports, "ModalBody", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function () {
|
|
@@ -40,7 +40,6 @@ var _theme = _interopRequireDefault(require("./theme.js"));
|
|
|
40
40
|
var _props = require("./props.js");
|
|
41
41
|
var _ModalContext = _interopRequireDefault(require("./ModalContext.js"));
|
|
42
42
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
43
|
-
var _dec, _class;
|
|
44
43
|
/*
|
|
45
44
|
* The MIT License (MIT)
|
|
46
45
|
*
|
|
@@ -64,13 +63,14 @@ var _dec, _class;
|
|
|
64
63
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
65
64
|
* SOFTWARE.
|
|
66
65
|
*/
|
|
66
|
+
|
|
67
67
|
/**
|
|
68
68
|
---
|
|
69
69
|
category: components
|
|
70
70
|
tags: overlay, portal, dialog
|
|
71
71
|
---
|
|
72
72
|
**/
|
|
73
|
-
|
|
73
|
+
class ModalBase extends _react.Component {
|
|
74
74
|
static displayName = 'Modal';
|
|
75
75
|
static componentId = 'Modal';
|
|
76
76
|
static allowedProps = _props.allowedProps;
|
|
@@ -292,5 +292,7 @@ let Modal = exports.Modal = (_dec = (0, _emotion.withStyle)(_styles.default, _th
|
|
|
292
292
|
})
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
-
}
|
|
295
|
+
}
|
|
296
|
+
exports.ModalBase = ModalBase;
|
|
297
|
+
const Modal = exports.Modal = (0, _emotion.withStyle)(_styles.default, _theme.default)(ModalBase);
|
|
296
298
|
var _default = exports.default = Modal;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = exports.ModalBody = void 0;
|
|
7
|
+
exports.default = exports.ModalBodyBase = exports.ModalBody = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _latest = require("@instructure/ui-view/latest");
|
|
10
10
|
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
@@ -14,7 +14,6 @@ var _styles = _interopRequireDefault(require("./styles.js"));
|
|
|
14
14
|
var _props = require("./props.js");
|
|
15
15
|
var _ModalContext = _interopRequireDefault(require("../ModalContext.js"));
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
|
-
var _dec, _class;
|
|
18
17
|
/*
|
|
19
18
|
* The MIT License (MIT)
|
|
20
19
|
*
|
|
@@ -38,13 +37,14 @@ var _dec, _class;
|
|
|
38
37
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
39
38
|
* SOFTWARE.
|
|
40
39
|
*/
|
|
40
|
+
|
|
41
41
|
/**
|
|
42
42
|
---
|
|
43
43
|
parent: Modal
|
|
44
44
|
id: Modal.Body
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
|
-
|
|
47
|
+
class ModalBodyBase extends _react.Component {
|
|
48
48
|
static displayName = 'ModalBody';
|
|
49
49
|
static componentId = 'Modal.Body';
|
|
50
50
|
static themeId = 'ModalBody';
|
|
@@ -179,5 +179,7 @@ let ModalBody = exports.ModalBody = (_dec = (0, _emotion.withStyleNew)(_styles.d
|
|
|
179
179
|
})
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
}
|
|
182
|
+
}
|
|
183
|
+
exports.ModalBodyBase = ModalBodyBase;
|
|
184
|
+
const ModalBody = exports.ModalBody = (0, _emotion.withStyleNew)(_styles.default, 'ModalBody')(ModalBodyBase);
|
|
183
185
|
var _default = exports.default = ModalBody;
|
|
@@ -4,14 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = exports.ModalFooter = void 0;
|
|
7
|
+
exports.default = exports.ModalFooterBase = exports.ModalFooter = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
10
10
|
var _emotion = require("@instructure/emotion");
|
|
11
11
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
12
12
|
var _props = require("./props.js");
|
|
13
13
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
14
|
-
var _dec, _class;
|
|
15
14
|
/*
|
|
16
15
|
* The MIT License (MIT)
|
|
17
16
|
*
|
|
@@ -35,13 +34,14 @@ var _dec, _class;
|
|
|
35
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
36
35
|
* SOFTWARE.
|
|
37
36
|
*/
|
|
37
|
+
|
|
38
38
|
/**
|
|
39
39
|
---
|
|
40
40
|
parent: Modal
|
|
41
41
|
id: Modal.Footer
|
|
42
42
|
---
|
|
43
43
|
**/
|
|
44
|
-
|
|
44
|
+
class ModalFooterBase extends _react.Component {
|
|
45
45
|
static displayName = 'ModalFooter';
|
|
46
46
|
static componentId = 'Modal.Footer';
|
|
47
47
|
static themeId = 'ModalFooter';
|
|
@@ -72,5 +72,7 @@ let ModalFooter = exports.ModalFooter = (_dec = (0, _emotion.withStyleNew)(_styl
|
|
|
72
72
|
children: children
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
}
|
|
75
|
+
}
|
|
76
|
+
exports.ModalFooterBase = ModalFooterBase;
|
|
77
|
+
const ModalFooter = exports.ModalFooter = (0, _emotion.withStyleNew)(_styles.default, 'ModalFooter')(ModalFooterBase);
|
|
76
78
|
var _default = exports.default = ModalFooter;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = exports.ModalHeader = void 0;
|
|
7
|
+
exports.default = exports.ModalHeaderBase = exports.ModalHeader = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
10
10
|
var _emotion = require("@instructure/emotion");
|
|
@@ -13,7 +13,6 @@ var _styles = _interopRequireDefault(require("./styles.js"));
|
|
|
13
13
|
var _props = require("./props.js");
|
|
14
14
|
var _ModalContext = _interopRequireDefault(require("../ModalContext.js"));
|
|
15
15
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
16
|
-
var _dec, _class;
|
|
17
16
|
/*
|
|
18
17
|
* The MIT License (MIT)
|
|
19
18
|
*
|
|
@@ -37,13 +36,14 @@ var _dec, _class;
|
|
|
37
36
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
38
37
|
* SOFTWARE.
|
|
39
38
|
*/
|
|
39
|
+
|
|
40
40
|
/**
|
|
41
41
|
---
|
|
42
42
|
parent: Modal
|
|
43
43
|
id: Modal.Header
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
|
-
|
|
46
|
+
class ModalHeaderBase extends _react.Component {
|
|
47
47
|
static displayName = 'ModalHeader';
|
|
48
48
|
static componentId = 'Modal.Header';
|
|
49
49
|
static themeId = 'ModalHeader';
|
|
@@ -118,5 +118,7 @@ let ModalHeader = exports.ModalHeader = (_dec = (0, _emotion.withStyleNew)(_styl
|
|
|
118
118
|
children: children
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
}
|
|
121
|
+
}
|
|
122
|
+
exports.ModalHeaderBase = ModalHeaderBase;
|
|
123
|
+
const ModalHeader = exports.ModalHeader = (0, _emotion.withStyleNew)(_styles.default, 'ModalHeader')(ModalHeaderBase);
|
|
122
124
|
var _default = exports.default = ModalHeader;
|
package/lib/Modal/v2/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Modal = void 0;
|
|
7
|
+
exports.ModalBase = exports.Modal = void 0;
|
|
8
8
|
Object.defineProperty(exports, "ModalBody", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function () {
|
|
@@ -39,7 +39,6 @@ var _styles = _interopRequireDefault(require("./styles.js"));
|
|
|
39
39
|
var _props = require("./props.js");
|
|
40
40
|
var _ModalContext = _interopRequireDefault(require("./ModalContext.js"));
|
|
41
41
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
42
|
-
var _dec, _class;
|
|
43
42
|
/*
|
|
44
43
|
* The MIT License (MIT)
|
|
45
44
|
*
|
|
@@ -63,13 +62,14 @@ var _dec, _class;
|
|
|
63
62
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
64
63
|
* SOFTWARE.
|
|
65
64
|
*/
|
|
65
|
+
|
|
66
66
|
/**
|
|
67
67
|
---
|
|
68
68
|
category: components
|
|
69
69
|
tags: overlay, portal, dialog
|
|
70
70
|
---
|
|
71
71
|
**/
|
|
72
|
-
|
|
72
|
+
class ModalBase extends _react.Component {
|
|
73
73
|
static displayName = 'Modal';
|
|
74
74
|
static componentId = 'Modal';
|
|
75
75
|
static allowedProps = _props.allowedProps;
|
|
@@ -285,5 +285,7 @@ let Modal = exports.Modal = (_dec = (0, _emotion.withStyleNew)(_styles.default),
|
|
|
285
285
|
})
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
|
-
}
|
|
288
|
+
}
|
|
289
|
+
exports.ModalBase = ModalBase;
|
|
290
|
+
const Modal = exports.Modal = (0, _emotion.withStyleNew)(_styles.default)(ModalBase);
|
|
289
291
|
var _default = exports.default = Modal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-modal",
|
|
3
|
-
"version": "11.7.11-snapshot-
|
|
3
|
+
"version": "11.7.11-snapshot-27",
|
|
4
4
|
"description": "A component for displaying content in a dialog overlay",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.7",
|
|
18
|
-
"@instructure/console": "11.7.11-snapshot-
|
|
19
|
-
"@instructure/emotion": "11.7.11-snapshot-
|
|
20
|
-
"@instructure/shared-types": "11.7.11-snapshot-
|
|
21
|
-
"@instructure/ui-buttons": "11.7.11-snapshot-
|
|
22
|
-
"@instructure/ui-dialog": "11.7.11-snapshot-
|
|
23
|
-
"@instructure/ui-dom-utils": "11.7.11-snapshot-
|
|
24
|
-
"@instructure/ui-motion": "11.7.11-snapshot-
|
|
25
|
-
"@instructure/ui-overlays": "11.7.11-snapshot-
|
|
26
|
-
"@instructure/ui-portal": "11.7.11-snapshot-
|
|
27
|
-
"@instructure/ui-react-utils": "11.7.11-snapshot-
|
|
28
|
-
"@instructure/ui-themes": "11.7.11-snapshot-
|
|
29
|
-
"@instructure/ui-utils": "11.7.11-snapshot-
|
|
30
|
-
"@instructure/ui-view": "11.7.11-snapshot-
|
|
18
|
+
"@instructure/console": "11.7.11-snapshot-27",
|
|
19
|
+
"@instructure/emotion": "11.7.11-snapshot-27",
|
|
20
|
+
"@instructure/shared-types": "11.7.11-snapshot-27",
|
|
21
|
+
"@instructure/ui-buttons": "11.7.11-snapshot-27",
|
|
22
|
+
"@instructure/ui-dialog": "11.7.11-snapshot-27",
|
|
23
|
+
"@instructure/ui-dom-utils": "11.7.11-snapshot-27",
|
|
24
|
+
"@instructure/ui-motion": "11.7.11-snapshot-27",
|
|
25
|
+
"@instructure/ui-overlays": "11.7.11-snapshot-27",
|
|
26
|
+
"@instructure/ui-portal": "11.7.11-snapshot-27",
|
|
27
|
+
"@instructure/ui-react-utils": "11.7.11-snapshot-27",
|
|
28
|
+
"@instructure/ui-themes": "11.7.11-snapshot-27",
|
|
29
|
+
"@instructure/ui-utils": "11.7.11-snapshot-27",
|
|
30
|
+
"@instructure/ui-view": "11.7.11-snapshot-27"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@instructure/ui-babel-preset": "11.7.11-snapshot-
|
|
34
|
-
"@instructure/ui-color-utils": "11.7.11-snapshot-
|
|
35
|
-
"@instructure/ui-position": "11.7.11-snapshot-
|
|
36
|
-
"@instructure/ui-tooltip": "11.7.11-snapshot-
|
|
33
|
+
"@instructure/ui-babel-preset": "11.7.11-snapshot-27",
|
|
34
|
+
"@instructure/ui-color-utils": "11.7.11-snapshot-27",
|
|
35
|
+
"@instructure/ui-position": "11.7.11-snapshot-27",
|
|
36
|
+
"@instructure/ui-tooltip": "11.7.11-snapshot-27",
|
|
37
37
|
"vitest": "^5.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -43,8 +43,7 @@ parent: Modal
|
|
|
43
43
|
id: Modal.Body
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
|
-
|
|
47
|
-
class ModalBody extends Component<ModalBodyProps, ModalBodyState> {
|
|
46
|
+
export class ModalBodyBase extends Component<ModalBodyProps, ModalBodyState> {
|
|
48
47
|
static displayName = 'ModalBody'
|
|
49
48
|
static readonly componentId = 'Modal.Body'
|
|
50
49
|
|
|
@@ -205,5 +204,11 @@ class ModalBody extends Component<ModalBodyProps, ModalBodyState> {
|
|
|
205
204
|
}
|
|
206
205
|
}
|
|
207
206
|
|
|
207
|
+
const ModalBody = withStyle(
|
|
208
|
+
generateStyle,
|
|
209
|
+
generateComponentTheme
|
|
210
|
+
)(ModalBodyBase)
|
|
211
|
+
type ModalBody = ModalBodyBase
|
|
212
|
+
|
|
208
213
|
export default ModalBody
|
|
209
214
|
export { ModalBody }
|
|
@@ -38,8 +38,7 @@ parent: Modal
|
|
|
38
38
|
id: Modal.Footer
|
|
39
39
|
---
|
|
40
40
|
**/
|
|
41
|
-
|
|
42
|
-
class ModalFooter extends Component<ModalFooterProps> {
|
|
41
|
+
export class ModalFooterBase extends Component<ModalFooterProps> {
|
|
43
42
|
static displayName = 'ModalFooter'
|
|
44
43
|
static readonly componentId = 'Modal.Footer'
|
|
45
44
|
|
|
@@ -78,5 +77,11 @@ class ModalFooter extends Component<ModalFooterProps> {
|
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
|
|
80
|
+
const ModalFooter = withStyle(
|
|
81
|
+
generateStyle,
|
|
82
|
+
generateComponentTheme
|
|
83
|
+
)(ModalFooterBase)
|
|
84
|
+
type ModalFooter = ModalFooterBase
|
|
85
|
+
|
|
81
86
|
export default ModalFooter
|
|
82
87
|
export { ModalFooter }
|
|
@@ -49,8 +49,7 @@ parent: Modal
|
|
|
49
49
|
id: Modal.Header
|
|
50
50
|
---
|
|
51
51
|
**/
|
|
52
|
-
|
|
53
|
-
class ModalHeader extends Component<ModalHeaderProps> {
|
|
52
|
+
export class ModalHeaderBase extends Component<ModalHeaderProps> {
|
|
54
53
|
static displayName = 'ModalHeader'
|
|
55
54
|
static readonly componentId = 'Modal.Header'
|
|
56
55
|
|
|
@@ -136,5 +135,11 @@ class ModalHeader extends Component<ModalHeaderProps> {
|
|
|
136
135
|
}
|
|
137
136
|
}
|
|
138
137
|
|
|
138
|
+
const ModalHeader = withStyle(
|
|
139
|
+
generateStyle,
|
|
140
|
+
generateComponentTheme
|
|
141
|
+
)(ModalHeaderBase)
|
|
142
|
+
type ModalHeader = ModalHeaderBase
|
|
143
|
+
|
|
139
144
|
export default ModalHeader
|
|
140
145
|
export { ModalHeader }
|
package/src/Modal/v1/index.tsx
CHANGED
|
@@ -57,8 +57,7 @@ category: components
|
|
|
57
57
|
tags: overlay, portal, dialog
|
|
58
58
|
---
|
|
59
59
|
**/
|
|
60
|
-
|
|
61
|
-
class Modal extends Component<ModalProps, ModalState> {
|
|
60
|
+
export class ModalBase extends Component<ModalProps, ModalState> {
|
|
62
61
|
static displayName = 'Modal'
|
|
63
62
|
static readonly componentId = 'Modal'
|
|
64
63
|
|
|
@@ -332,5 +331,8 @@ class Modal extends Component<ModalProps, ModalState> {
|
|
|
332
331
|
}
|
|
333
332
|
}
|
|
334
333
|
|
|
334
|
+
const Modal = withStyle(generateStyle, generateComponentTheme)(ModalBase)
|
|
335
|
+
type Modal = ModalBase
|
|
336
|
+
|
|
335
337
|
export default Modal
|
|
336
338
|
export { Modal, ModalHeader, ModalBody, ModalFooter }
|