-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathstatic-time-picker.json
177 lines (177 loc) · 6.14 KB
/
static-time-picker.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"props": {
"ampm": { "type": { "name": "bool" }, "default": "utils.is12HourCycleInCurrentLocale()" },
"ampmInClock": { "type": { "name": "bool" }, "default": "true on desktop, false on mobile" },
"autoFocus": { "type": { "name": "bool" } },
"defaultValue": { "type": { "name": "object" } },
"disabled": { "type": { "name": "bool" }, "default": "false" },
"disableFuture": { "type": { "name": "bool" }, "default": "false" },
"disableIgnoringDatePartForTimeValidation": { "type": { "name": "bool" }, "default": "false" },
"disablePast": { "type": { "name": "bool" }, "default": "false" },
"displayStaticWrapperAs": {
"type": { "name": "enum", "description": "'desktop'<br>| 'mobile'" },
"default": "\"mobile\""
},
"localeText": { "type": { "name": "object" } },
"maxTime": { "type": { "name": "object" } },
"minTime": { "type": { "name": "object" } },
"minutesStep": { "type": { "name": "number" }, "default": "1" },
"onAccept": {
"type": { "name": "func" },
"signature": {
"type": "function(value: TValue, context: FieldChangeHandlerContext<TError>) => void",
"describedArgs": ["value", "context"]
}
},
"onChange": {
"type": { "name": "func" },
"signature": {
"type": "function(value: TValue, context: FieldChangeHandlerContext<TError>) => void",
"describedArgs": ["value", "context"]
}
},
"onClose": {
"type": { "name": "func" },
"deprecated": true,
"deprecationInfo": "Please avoid using as it will be removed in next major version."
},
"onError": {
"type": { "name": "func" },
"signature": {
"type": "function(error: TError, value: TValue) => void",
"describedArgs": ["error", "value"]
}
},
"onViewChange": {
"type": { "name": "func" },
"signature": { "type": "function(view: TView) => void", "describedArgs": ["view"] }
},
"openTo": {
"type": {
"name": "enum",
"description": "'hours'<br>| 'minutes'<br>| 'seconds'"
}
},
"orientation": {
"type": { "name": "enum", "description": "'landscape'<br>| 'portrait'" }
},
"readOnly": { "type": { "name": "bool" }, "default": "false" },
"reduceAnimations": {
"type": { "name": "bool" },
"default": "`@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13"
},
"referenceDate": {
"type": { "name": "object" },
"default": "The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`."
},
"shouldDisableTime": {
"type": { "name": "func" },
"signature": {
"type": "function(value: PickerValidDate, view: TimeView) => boolean",
"describedArgs": ["value", "view"],
"returned": "boolean"
}
},
"slotProps": { "type": { "name": "object" }, "default": "{}" },
"slots": {
"type": { "name": "object" },
"default": "{}",
"additionalInfo": { "slotsApi": true }
},
"sx": {
"type": {
"name": "union",
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object"
},
"additionalInfo": { "sx": true }
},
"timezone": {
"type": { "name": "string" },
"default": "The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.",
"seeMoreLink": {
"url": "https://mui.com/x/react-date-pickers/timezone/",
"text": "timezones documentation"
}
},
"value": { "type": { "name": "object" } },
"view": {
"type": {
"name": "enum",
"description": "'hours'<br>| 'minutes'<br>| 'seconds'"
}
},
"viewRenderers": {
"type": { "name": "shape", "description": "{ hours?: func, minutes?: func, seconds?: func }" }
},
"views": {
"type": {
"name": "arrayOf",
"description": "Array<'hours'<br>| 'minutes'<br>| 'seconds'>"
}
}
},
"name": "StaticTimePicker",
"imports": [
"import { StaticTimePicker } from '@mui/x-date-pickers/StaticTimePicker';",
"import { StaticTimePicker } from '@mui/x-date-pickers';",
"import { StaticTimePicker } from '@mui/x-date-pickers-pro';"
],
"slots": [
{
"name": "actionBar",
"description": "Custom component for the action bar, it is placed below the picker views.",
"default": "PickersActionBar",
"class": null
},
{
"name": "layout",
"description": "Custom component for wrapping the layout.\nIt wraps the toolbar, views, action bar, and shortcuts.",
"class": null
},
{
"name": "leftArrowIcon",
"description": "Icon displayed in the left view switch button.",
"default": "ArrowLeft",
"class": null
},
{
"name": "nextIconButton",
"description": "Button allowing to switch to the right view.",
"default": "IconButton",
"class": null
},
{
"name": "previousIconButton",
"description": "Button allowing to switch to the left view.",
"default": "IconButton",
"class": null
},
{
"name": "rightArrowIcon",
"description": "Icon displayed in the right view switch button.",
"default": "ArrowRight",
"class": null
},
{
"name": "shortcuts",
"description": "Custom component for the shortcuts.",
"default": "PickersShortcuts",
"class": null
},
{
"name": "toolbar",
"description": "Custom component for the toolbar rendered above the views.",
"default": "TimePickerToolbar",
"class": null
}
],
"classes": [],
"spread": false,
"themeDefaultProps": false,
"muiName": "MuiStaticTimePicker",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/x-date-pickers/src/StaticTimePicker/StaticTimePicker.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/x/react-date-pickers/time-picker/\">Time Picker</a></li>\n<li><a href=\"/x/react-date-pickers/validation/\">Date and Time Pickers - Validation</a></li></ul>",
"cssComponent": false
}