@instructure/ui-modal 8.11.2-snapshot.71 → 8.12.1-snapshot.16
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 +6 -0
- package/package.json +21 -21
- package/src/Modal/README.md +2 -2
- package/src/Modal/props.ts +3 -5
- package/types/Modal/index.d.ts +2 -2
- package/types/Modal/props.d.ts +2 -2
- package/types/Modal/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **ui-modal:** fix Modal.Header padding when it has CloseButton ([82b8314](https://github.com/instructure/instructure-ui/commit/82b8314a5ce13ef30c3f03125b1e2104ba81c889))
|
|
11
|
+
|
|
6
12
|
## [8.11.1](https://github.com/instructure/instructure-ui/compare/v8.11.0...v8.11.1) (2021-10-19)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @instructure/ui-modal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-modal",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.12.1-snapshot.16+1160d54f5",
|
|
4
4
|
"description": "A component for displaying content in a dialog overlay",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,35 +25,35 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.
|
|
29
|
-
"@instructure/emotion": "8.
|
|
30
|
-
"@instructure/shared-types": "8.
|
|
31
|
-
"@instructure/ui-buttons": "8.
|
|
32
|
-
"@instructure/ui-dialog": "8.
|
|
33
|
-
"@instructure/ui-motion": "8.
|
|
34
|
-
"@instructure/ui-overlays": "8.
|
|
35
|
-
"@instructure/ui-portal": "8.
|
|
36
|
-
"@instructure/ui-prop-types": "8.
|
|
37
|
-
"@instructure/ui-react-utils": "8.
|
|
38
|
-
"@instructure/ui-testable": "8.
|
|
39
|
-
"@instructure/ui-utils": "8.
|
|
40
|
-
"@instructure/ui-view": "8.
|
|
28
|
+
"@instructure/console": "8.12.1-snapshot.16+1160d54f5",
|
|
29
|
+
"@instructure/emotion": "8.12.1-snapshot.16+1160d54f5",
|
|
30
|
+
"@instructure/shared-types": "8.12.1-snapshot.16+1160d54f5",
|
|
31
|
+
"@instructure/ui-buttons": "8.12.1-snapshot.16+1160d54f5",
|
|
32
|
+
"@instructure/ui-dialog": "8.12.1-snapshot.16+1160d54f5",
|
|
33
|
+
"@instructure/ui-motion": "8.12.1-snapshot.16+1160d54f5",
|
|
34
|
+
"@instructure/ui-overlays": "8.12.1-snapshot.16+1160d54f5",
|
|
35
|
+
"@instructure/ui-portal": "8.12.1-snapshot.16+1160d54f5",
|
|
36
|
+
"@instructure/ui-prop-types": "8.12.1-snapshot.16+1160d54f5",
|
|
37
|
+
"@instructure/ui-react-utils": "8.12.1-snapshot.16+1160d54f5",
|
|
38
|
+
"@instructure/ui-testable": "8.12.1-snapshot.16+1160d54f5",
|
|
39
|
+
"@instructure/ui-utils": "8.12.1-snapshot.16+1160d54f5",
|
|
40
|
+
"@instructure/ui-view": "8.12.1-snapshot.16+1160d54f5",
|
|
41
41
|
"prop-types": "^15"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16.8 <=17"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@instructure/ui-babel-preset": "8.
|
|
48
|
-
"@instructure/ui-color-utils": "8.
|
|
49
|
-
"@instructure/ui-position": "8.
|
|
50
|
-
"@instructure/ui-test-locator": "8.
|
|
51
|
-
"@instructure/ui-test-utils": "8.
|
|
52
|
-
"@instructure/ui-themes": "8.
|
|
47
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.16+1160d54f5",
|
|
48
|
+
"@instructure/ui-color-utils": "8.12.1-snapshot.16+1160d54f5",
|
|
49
|
+
"@instructure/ui-position": "8.12.1-snapshot.16+1160d54f5",
|
|
50
|
+
"@instructure/ui-test-locator": "8.12.1-snapshot.16+1160d54f5",
|
|
51
|
+
"@instructure/ui-test-utils": "8.12.1-snapshot.16+1160d54f5",
|
|
52
|
+
"@instructure/ui-themes": "8.12.1-snapshot.16+1160d54f5"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "1160d54f5e25365b0204d2c0fcf72537eefd9017"
|
|
59
59
|
}
|
package/src/Modal/README.md
CHANGED
|
@@ -483,8 +483,8 @@ class Example extends React.Component {
|
|
|
483
483
|
<Modal.Header spacing={this.state.smallViewport ? 'compact' : 'default'}>
|
|
484
484
|
{this.renderCloseButton()}
|
|
485
485
|
{this.state.smallViewport
|
|
486
|
-
? <
|
|
487
|
-
: <Heading>This is a deafult size Modal</Heading>
|
|
486
|
+
? <Heading as="h2" level="h3" themeOverride={{ h3FontWeight: 400 }}>This Modal is optimized for small viewport</Heading>
|
|
487
|
+
: <Heading as="h2">This is a deafult size Modal</Heading>
|
|
488
488
|
}
|
|
489
489
|
</Modal.Header>
|
|
490
490
|
<Modal.Body>
|
package/src/Modal/props.ts
CHANGED
|
@@ -38,7 +38,8 @@ import type {
|
|
|
38
38
|
AsElementType,
|
|
39
39
|
PropValidators,
|
|
40
40
|
ModalTheme,
|
|
41
|
-
OtherHTMLAttributes
|
|
41
|
+
OtherHTMLAttributes,
|
|
42
|
+
LiveRegion
|
|
42
43
|
} from '@instructure/shared-types'
|
|
43
44
|
import type { PortalNode } from '@instructure/ui-portal'
|
|
44
45
|
import type { PositionMountNode } from '@instructure/ui-position'
|
|
@@ -61,10 +62,7 @@ type ModalOwnProps = {
|
|
|
61
62
|
contentRef?: (...args: any[]) => any
|
|
62
63
|
mountNode?: PositionMountNode
|
|
63
64
|
insertAt?: 'bottom' | 'top'
|
|
64
|
-
liveRegion?:
|
|
65
|
-
| React.ReactElement[]
|
|
66
|
-
| React.ReactElement
|
|
67
|
-
| ((...args: any[]) => any)
|
|
65
|
+
liveRegion?: LiveRegion
|
|
68
66
|
transition?: TransitionType
|
|
69
67
|
onEnter?: (...args: any[]) => any
|
|
70
68
|
onEntering?: (...args: any[]) => any
|
package/types/Modal/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ declare class Modal extends Component<ModalProps> {
|
|
|
30
30
|
contentRef?: ((...args: any[]) => any) | undefined;
|
|
31
31
|
mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
|
|
32
32
|
insertAt?: "bottom" | "top" | undefined;
|
|
33
|
-
liveRegion?:
|
|
33
|
+
liveRegion?: import("@instructure/shared-types").LiveRegion | undefined;
|
|
34
34
|
transition?: import("@instructure/ui-motion/types/Transition/BaseTransition/props").TransitionType | undefined;
|
|
35
35
|
onEnter?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
onEntering?: ((...args: any[]) => any) | undefined;
|
|
@@ -57,7 +57,7 @@ declare class Modal extends Component<ModalProps> {
|
|
|
57
57
|
contentRef?: ((...args: any[]) => any) | undefined;
|
|
58
58
|
mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
|
|
59
59
|
insertAt?: "bottom" | "top" | undefined;
|
|
60
|
-
liveRegion?:
|
|
60
|
+
liveRegion?: import("@instructure/shared-types").LiveRegion | undefined;
|
|
61
61
|
transition?: import("@instructure/ui-motion/types/Transition/BaseTransition/props").TransitionType | undefined;
|
|
62
62
|
onEnter?: ((...args: any[]) => any) | undefined;
|
|
63
63
|
onEntering?: ((...args: any[]) => any) | undefined;
|
package/types/Modal/props.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AsElementType, PropValidators, ModalTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
2
|
+
import type { AsElementType, PropValidators, ModalTheme, OtherHTMLAttributes, LiveRegion } from '@instructure/shared-types';
|
|
3
3
|
import type { PortalNode } from '@instructure/ui-portal';
|
|
4
4
|
import type { PositionMountNode } from '@instructure/ui-position';
|
|
5
5
|
import type { TransitionType } from '@instructure/ui-motion';
|
|
@@ -20,7 +20,7 @@ declare type ModalOwnProps = {
|
|
|
20
20
|
contentRef?: (...args: any[]) => any;
|
|
21
21
|
mountNode?: PositionMountNode;
|
|
22
22
|
insertAt?: 'bottom' | 'top';
|
|
23
|
-
liveRegion?:
|
|
23
|
+
liveRegion?: LiveRegion;
|
|
24
24
|
transition?: TransitionType;
|
|
25
25
|
onEnter?: (...args: any[]) => any;
|
|
26
26
|
onEntering?: (...args: any[]) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Modal/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,UAAU,EACV,mBAAmB,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Modal/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,UAAU,EACX,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAA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