@@ -58,7 +58,7 @@ export default function FullscreenDialog (props, { muiTheme }) {
58
58
style = { { ...styles . appBar , ...appBarStyle } }
59
59
iconElementLeft = { (
60
60
< IconButton onClick = { onRequestClose } >
61
- { closeIcon || < NavigationCloseIcon /> }
61
+ { closeIcon }
62
62
</ IconButton >
63
63
) }
64
64
iconElementRight = { actionButton }
@@ -73,23 +73,60 @@ export default function FullscreenDialog (props, { muiTheme }) {
73
73
}
74
74
75
75
FullscreenDialog . propTypes = {
76
+ /**
77
+ * A `FlatButton` or `IconButton` that is used as affirmative action button.
78
+ */
76
79
actionButton : PropTypes . node ,
80
+ /**
81
+ * Overrides the inline-styles of the app bar.
82
+ */
77
83
appBarStyle : PropTypes . object ,
84
+ /**
85
+ * Overrides the z-depth of the app bar, will affect its shadow. This is ignored if immersive is set to `true`.
86
+ */
78
87
appBarZDepth : PropTypes . oneOf ( [ 0 , 1 , 2 , 3 , 4 , 5 ] ) ,
88
+ /**
89
+ * Children elements.
90
+ */
79
91
children : PropTypes . node ,
92
+ /**
93
+ * Icon element used for the dismissive action. This is hidden if `onRequestClose` is not set.
94
+ */
80
95
closeIcon : PropTypes . node ,
96
+ /**
97
+ * Overrides the inline-styles of the dialog's children container.
98
+ */
81
99
containerStyle : PropTypes . object ,
100
+ /**
101
+ * Toggles the immersive mode. If set to `true`, the app bar has a semi-transparent gradient and overlays the content.
102
+ */
82
103
immersive : PropTypes . bool ,
104
+ /**
105
+ * Callback that is invoked when the dismissive action button is touched.
106
+ */
83
107
onRequestClose : PropTypes . func ,
108
+ /**
109
+ * Controls whether the dialog is opened or not.
110
+ */
84
111
open : PropTypes . bool . isRequired ,
112
+ /**
113
+ * Overrides the inline-styles of the dialog's root element.
114
+ */
85
115
style : PropTypes . object ,
116
+ /**
117
+ * The title of the dialog.
118
+ */
86
119
title : PropTypes . string ,
120
+ /**
121
+ * Overrides the inline-styles of the app bar's title element.
122
+ */
87
123
titleStyle : PropTypes . object
88
124
}
89
125
90
126
FullscreenDialog . defaultProps = {
91
- immersive : false ,
92
- appBarZDepth : 1
127
+ appBarZDepth : 1 ,
128
+ closeIcon : < NavigationCloseIcon /> ,
129
+ immersive : false
93
130
}
94
131
95
132
FullscreenDialog . contextTypes = {
0 commit comments