@instructure/ui-modal 8.11.2-snapshot.5 → 8.11.2-snapshot.54
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.
|
@@ -68,12 +68,13 @@ let ModalHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
get usesCloseButton() {
|
|
71
|
+
let hasCloseButton = false;
|
|
71
72
|
React.Children.forEach(this.props.children, child => {
|
|
72
73
|
if (child && matchComponentTypes(child, [CloseButton])) {
|
|
73
|
-
|
|
74
|
+
hasCloseButton = true;
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
|
-
return
|
|
77
|
+
return hasCloseButton;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
render() {
|
package/es/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -64,13 +64,15 @@ let ModalHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
get usesCloseButton() {
|
|
67
|
+
let hasCloseButton = false;
|
|
68
|
+
|
|
67
69
|
_react.default.Children.forEach(this.props.children, child => {
|
|
68
70
|
if (child && (0, _matchComponentTypes.matchComponentTypes)(child, [_CloseButton.CloseButton])) {
|
|
69
|
-
|
|
71
|
+
hasCloseButton = true;
|
|
70
72
|
}
|
|
71
73
|
});
|
|
72
74
|
|
|
73
|
-
return
|
|
75
|
+
return hasCloseButton;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
render() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-modal",
|
|
3
|
-
"version": "8.11.2-snapshot.
|
|
3
|
+
"version": "8.11.2-snapshot.54+a6aaef205",
|
|
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.11.2-snapshot.
|
|
29
|
-
"@instructure/emotion": "8.11.2-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.11.2-snapshot.
|
|
31
|
-
"@instructure/ui-buttons": "8.11.2-snapshot.
|
|
32
|
-
"@instructure/ui-dialog": "8.11.2-snapshot.
|
|
33
|
-
"@instructure/ui-motion": "8.11.2-snapshot.
|
|
34
|
-
"@instructure/ui-overlays": "8.11.2-snapshot.
|
|
35
|
-
"@instructure/ui-portal": "8.11.2-snapshot.
|
|
36
|
-
"@instructure/ui-prop-types": "8.11.2-snapshot.
|
|
37
|
-
"@instructure/ui-react-utils": "8.11.2-snapshot.
|
|
38
|
-
"@instructure/ui-testable": "8.11.2-snapshot.
|
|
39
|
-
"@instructure/ui-utils": "8.11.2-snapshot.
|
|
40
|
-
"@instructure/ui-view": "8.11.2-snapshot.
|
|
28
|
+
"@instructure/console": "8.11.2-snapshot.54+a6aaef205",
|
|
29
|
+
"@instructure/emotion": "8.11.2-snapshot.54+a6aaef205",
|
|
30
|
+
"@instructure/shared-types": "8.11.2-snapshot.54+a6aaef205",
|
|
31
|
+
"@instructure/ui-buttons": "8.11.2-snapshot.54+a6aaef205",
|
|
32
|
+
"@instructure/ui-dialog": "8.11.2-snapshot.54+a6aaef205",
|
|
33
|
+
"@instructure/ui-motion": "8.11.2-snapshot.54+a6aaef205",
|
|
34
|
+
"@instructure/ui-overlays": "8.11.2-snapshot.54+a6aaef205",
|
|
35
|
+
"@instructure/ui-portal": "8.11.2-snapshot.54+a6aaef205",
|
|
36
|
+
"@instructure/ui-prop-types": "8.11.2-snapshot.54+a6aaef205",
|
|
37
|
+
"@instructure/ui-react-utils": "8.11.2-snapshot.54+a6aaef205",
|
|
38
|
+
"@instructure/ui-testable": "8.11.2-snapshot.54+a6aaef205",
|
|
39
|
+
"@instructure/ui-utils": "8.11.2-snapshot.54+a6aaef205",
|
|
40
|
+
"@instructure/ui-view": "8.11.2-snapshot.54+a6aaef205",
|
|
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.11.2-snapshot.
|
|
48
|
-
"@instructure/ui-color-utils": "8.11.2-snapshot.
|
|
49
|
-
"@instructure/ui-position": "8.11.2-snapshot.
|
|
50
|
-
"@instructure/ui-test-locator": "8.11.2-snapshot.
|
|
51
|
-
"@instructure/ui-test-utils": "8.11.2-snapshot.
|
|
52
|
-
"@instructure/ui-themes": "8.11.2-snapshot.
|
|
47
|
+
"@instructure/ui-babel-preset": "8.11.2-snapshot.54+a6aaef205",
|
|
48
|
+
"@instructure/ui-color-utils": "8.11.2-snapshot.54+a6aaef205",
|
|
49
|
+
"@instructure/ui-position": "8.11.2-snapshot.54+a6aaef205",
|
|
50
|
+
"@instructure/ui-test-locator": "8.11.2-snapshot.54+a6aaef205",
|
|
51
|
+
"@instructure/ui-test-utils": "8.11.2-snapshot.54+a6aaef205",
|
|
52
|
+
"@instructure/ui-themes": "8.11.2-snapshot.54+a6aaef205"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "a6aaef20508325ae9e5bfbbb29317174edebce9c"
|
|
59
59
|
}
|
|
@@ -82,13 +82,15 @@ class ModalHeader extends Component<ModalHeaderProps> {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
get usesCloseButton() {
|
|
85
|
-
|
|
85
|
+
let hasCloseButton = false
|
|
86
|
+
|
|
86
87
|
React.Children.forEach(this.props.children, (child) => {
|
|
87
88
|
if (child && matchComponentTypes(child, [CloseButton])) {
|
|
88
|
-
|
|
89
|
+
hasCloseButton = true
|
|
89
90
|
}
|
|
90
91
|
})
|
|
91
|
-
|
|
92
|
+
|
|
93
|
+
return hasCloseButton
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
render() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Modal/ModalHeader/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQxC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEtE;;;;;GAKG;AACH,cAEM,WAAY,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,SAAS;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;MAIlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,cAAc,QAAO,qBAAqB,CAIzC;IAED,IAAI,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Modal/ModalHeader/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQxC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEtE;;;;;GAKG;AACH,cAEM,WAAY,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,SAAS;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;MAIlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,QAAQ,KAAA;IAKjD,cAAc,QAAO,qBAAqB,CAIzC;IAED,IAAI,eAAe,YAUlB;IAED,MAAM;CAaP;AAED,eAAe,WAAW,CAAA;AAC1B,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
package/types/Modal/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ declare class Modal extends Component<ModalProps> {
|
|
|
31
31
|
mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
|
|
32
32
|
insertAt?: "bottom" | "top" | undefined;
|
|
33
33
|
liveRegion?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | ((...args: any[]) => any) | undefined;
|
|
34
|
-
transition?: import("@instructure/ui-motion/types/Transition/props").TransitionType | undefined;
|
|
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;
|
|
37
37
|
onEntered?: ((...args: any[]) => any) | undefined;
|
|
@@ -58,7 +58,7 @@ declare class Modal extends Component<ModalProps> {
|
|
|
58
58
|
mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
|
|
59
59
|
insertAt?: "bottom" | "top" | undefined;
|
|
60
60
|
liveRegion?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | ((...args: any[]) => any) | undefined;
|
|
61
|
-
transition?: import("@instructure/ui-motion/types/Transition/props").TransitionType | undefined;
|
|
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;
|
|
64
64
|
onEntered?: ((...args: any[]) => any) | undefined;
|