@jigowatts/jigowatts-ui 0.0.1-12

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.
Files changed (199) hide show
  1. package/README.md +50 -0
  2. package/dist/AccordionSummary-B4zooGpd.js +831 -0
  3. package/dist/ButtonBase-pxtIu13Q.js +866 -0
  4. package/dist/DateTimePicker-DJSOr5wM.js +4653 -0
  5. package/dist/ListContext-DOVwHqy-.js +180 -0
  6. package/dist/MenuItem-yBaT3_db.js +470 -0
  7. package/dist/Paper-COvYqxZa.js +522 -0
  8. package/dist/Tabs-D3lJRumZ.js +1085 -0
  9. package/dist/_commonjsHelpers-CT_km90n.js +30 -0
  10. package/dist/assets/index.css +1 -0
  11. package/dist/assets/index10.css +1 -0
  12. package/dist/assets/index11.css +1 -0
  13. package/dist/assets/index12.css +1 -0
  14. package/dist/assets/index13.css +1 -0
  15. package/dist/assets/index14.css +1 -0
  16. package/dist/assets/index15.css +1 -0
  17. package/dist/assets/index16.css +1 -0
  18. package/dist/assets/index17.css +1 -0
  19. package/dist/assets/index18.css +1 -0
  20. package/dist/assets/index19.css +1 -0
  21. package/dist/assets/index2.css +1 -0
  22. package/dist/assets/index20.css +1 -0
  23. package/dist/assets/index21.css +1 -0
  24. package/dist/assets/index22.css +1 -0
  25. package/dist/assets/index23.css +1 -0
  26. package/dist/assets/index24.css +1 -0
  27. package/dist/assets/index25.css +1 -0
  28. package/dist/assets/index26.css +1 -0
  29. package/dist/assets/index27.css +1 -0
  30. package/dist/assets/index3.css +1 -0
  31. package/dist/assets/index4.css +1 -0
  32. package/dist/assets/index5.css +1 -0
  33. package/dist/assets/index6.css +1 -0
  34. package/dist/assets/index7.css +1 -0
  35. package/dist/assets/index8.css +1 -0
  36. package/dist/assets/index9.css +1 -0
  37. package/dist/browser-DxfwT6rn.js +656 -0
  38. package/dist/components/Button/index.d.ts +28 -0
  39. package/dist/components/Button/index.js +18 -0
  40. package/dist/components/Button/index.test.d.ts +1 -0
  41. package/dist/components/Button/index.test.js +23 -0
  42. package/dist/components/Card/index.d.ts +16 -0
  43. package/dist/components/Card/index.js +37 -0
  44. package/dist/components/Card/index.test.d.ts +1 -0
  45. package/dist/components/Card/index.test.js +35 -0
  46. package/dist/components/CustomLink/index.d.ts +11 -0
  47. package/dist/components/CustomLink/index.js +1670 -0
  48. package/dist/components/CustomLink/index.test.d.ts +1 -0
  49. package/dist/components/CustomLink/index.test.js +40 -0
  50. package/dist/components/DataTable/index.d.ts +28 -0
  51. package/dist/components/DataTable/index.js +137 -0
  52. package/dist/components/DataTable/index.test.d.ts +1 -0
  53. package/dist/components/DataTable/index.test.js +3010 -0
  54. package/dist/components/DatePickerController/index.d.ts +16 -0
  55. package/dist/components/DatePickerController/index.js +83 -0
  56. package/dist/components/DatePickerController/index.test.d.ts +1 -0
  57. package/dist/components/DatePickerController/index.test.js +24 -0
  58. package/dist/components/ErrorMessage/index.d.ts +5 -0
  59. package/dist/components/ErrorMessage/index.js +11 -0
  60. package/dist/components/ErrorMessage/index.test.d.ts +1 -0
  61. package/dist/components/ErrorMessage/index.test.js +17 -0
  62. package/dist/components/EvseStateLabel/index.d.ts +5 -0
  63. package/dist/components/EvseStateLabel/index.js +36 -0
  64. package/dist/components/FlexButtons/index.d.ts +9 -0
  65. package/dist/components/FlexButtons/index.js +13 -0
  66. package/dist/components/Form/index.d.ts +8 -0
  67. package/dist/components/Form/index.js +11 -0
  68. package/dist/components/Form/index.test.d.ts +1 -0
  69. package/dist/components/Form/index.test.js +25 -0
  70. package/dist/components/FormItem/index.d.ts +9 -0
  71. package/dist/components/FormItem/index.js +19 -0
  72. package/dist/components/FormItem/index.test.d.ts +1 -0
  73. package/dist/components/FormItem/index.test.js +15 -0
  74. package/dist/components/FormTitle/index.d.ts +5 -0
  75. package/dist/components/FormTitle/index.js +11 -0
  76. package/dist/components/FormTitle/index.test.d.ts +1 -0
  77. package/dist/components/FormTitle/index.test.js +15 -0
  78. package/dist/components/Input/index.d.ts +15 -0
  79. package/dist/components/Input/index.js +39 -0
  80. package/dist/components/Input/index.test.d.ts +1 -0
  81. package/dist/components/Input/index.test.js +39 -0
  82. package/dist/components/InputController/index.d.ts +20 -0
  83. package/dist/components/InputController/index.js +81 -0
  84. package/dist/components/InputController/index.test.d.ts +1 -0
  85. package/dist/components/InputController/index.test.js +56 -0
  86. package/dist/components/InputGroup/index.d.ts +7 -0
  87. package/dist/components/InputGroup/index.js +11 -0
  88. package/dist/components/InputGroup/index.test.d.ts +1 -0
  89. package/dist/components/InputGroup/index.test.js +15 -0
  90. package/dist/components/Label/index.d.ts +7 -0
  91. package/dist/components/Label/index.js +14 -0
  92. package/dist/components/Label/index.test.d.ts +1 -0
  93. package/dist/components/Label/index.test.js +25 -0
  94. package/dist/components/LabeledContent/index.d.ts +15 -0
  95. package/dist/components/LabeledContent/index.js +28 -0
  96. package/dist/components/LabeledContent/index.test.d.ts +1 -0
  97. package/dist/components/LabeledContent/index.test.js +19 -0
  98. package/dist/components/LoadingOverlay/index.d.ts +2 -0
  99. package/dist/components/LoadingOverlay/index.js +134 -0
  100. package/dist/components/LoadingOverlay/index.test.d.ts +1 -0
  101. package/dist/components/LoadingOverlay/index.test.js +12 -0
  102. package/dist/components/Map/index.d.ts +8 -0
  103. package/dist/components/Map/index.js +6575 -0
  104. package/dist/components/MaxWidthContainer/index.d.ts +13 -0
  105. package/dist/components/MaxWidthContainer/index.js +15 -0
  106. package/dist/components/MaxWidthContainer/index.test.d.ts +1 -0
  107. package/dist/components/MaxWidthContainer/index.test.js +24 -0
  108. package/dist/components/NumericFieldController/index.d.ts +53 -0
  109. package/dist/components/NumericFieldController/index.js +620 -0
  110. package/dist/components/NumericFieldController/index.test.d.ts +1 -0
  111. package/dist/components/NumericFieldController/index.test.js +24 -0
  112. package/dist/components/OfflineLabel/index.d.ts +5 -0
  113. package/dist/components/OfflineLabel/index.js +34 -0
  114. package/dist/components/PageSizeSelector/index.d.ts +15 -0
  115. package/dist/components/PageSizeSelector/index.js +43 -0
  116. package/dist/components/Pagination/index.d.ts +9 -0
  117. package/dist/components/Pagination/index.js +7 -0
  118. package/dist/components/Pagination/index.test.d.ts +1 -0
  119. package/dist/components/Pagination/index.test.js +34 -0
  120. package/dist/components/PasswordInputController/index.d.ts +17 -0
  121. package/dist/components/PasswordInputController/index.js +78 -0
  122. package/dist/components/PasswordInputController/index.test.d.ts +1 -0
  123. package/dist/components/PasswordInputController/index.test.js +37 -0
  124. package/dist/components/RadioButton/index.d.ts +13 -0
  125. package/dist/components/RadioButton/index.js +7 -0
  126. package/dist/components/RadioButton/index.test.d.ts +1 -0
  127. package/dist/components/RadioButton/index.test.js +38 -0
  128. package/dist/components/RadioGroupController/index.d.ts +15 -0
  129. package/dist/components/RadioGroupController/index.js +48 -0
  130. package/dist/components/RadioGroupController/index.test.d.ts +1 -0
  131. package/dist/components/RadioGroupController/index.test.js +48 -0
  132. package/dist/components/RangeDatePicker/index.d.ts +14 -0
  133. package/dist/components/RangeDatePicker/index.js +1594 -0
  134. package/dist/components/RangeDatePickerController/index.d.ts +21 -0
  135. package/dist/components/RangeDatePickerController/index.js +123 -0
  136. package/dist/components/RangeDatePickerController/index.test.d.ts +1 -0
  137. package/dist/components/RangeDatePickerController/index.test.js +24 -0
  138. package/dist/components/ReportCard/index.d.ts +12 -0
  139. package/dist/components/ReportCard/index.js +18 -0
  140. package/dist/components/ReportCard/index.test.d.ts +1 -0
  141. package/dist/components/ReportCard/index.test.js +27 -0
  142. package/dist/components/ReportChart/index.d.ts +22 -0
  143. package/dist/components/ReportChart/index.js +23101 -0
  144. package/dist/components/ScrollableDialog/index.d.ts +19 -0
  145. package/dist/components/ScrollableDialog/index.js +42 -0
  146. package/dist/components/ScrollableDialog/index.test.d.ts +1 -0
  147. package/dist/components/ScrollableDialog/index.test.js +59 -0
  148. package/dist/components/SearchForm/index.d.ts +13 -0
  149. package/dist/components/SearchForm/index.js +86 -0
  150. package/dist/components/SelectBox/index.d.ts +18 -0
  151. package/dist/components/SelectBox/index.js +7 -0
  152. package/dist/components/SelectBox/index.test.d.ts +1 -0
  153. package/dist/components/SelectBox/index.test.js +34 -0
  154. package/dist/components/SelectBoxController/index.d.ts +20 -0
  155. package/dist/components/SelectBoxController/index.js +87 -0
  156. package/dist/components/SelectBoxController/index.test.d.ts +1 -0
  157. package/dist/components/SelectBoxController/index.test.js +52 -0
  158. package/dist/components/SubMenu/index.d.ts +22 -0
  159. package/dist/components/SubMenu/index.js +278 -0
  160. package/dist/components/SubMenu/index.test.d.ts +1 -0
  161. package/dist/components/SubMenu/index.test.js +41 -0
  162. package/dist/components/Tabs/index.d.ts +21 -0
  163. package/dist/components/Tabs/index.js +100 -0
  164. package/dist/components/Tabs/index.test.d.ts +1 -0
  165. package/dist/components/Tabs/index.test.js +24 -0
  166. package/dist/components/Textarea/index.d.ts +18 -0
  167. package/dist/components/Textarea/index.js +34 -0
  168. package/dist/components/Textarea/index.test.d.ts +1 -0
  169. package/dist/components/Textarea/index.test.js +25 -0
  170. package/dist/components/ToggleButton/index.d.ts +16 -0
  171. package/dist/components/ToggleButton/index.js +39 -0
  172. package/dist/components/ToggleButton/index.test.d.ts +1 -0
  173. package/dist/components/ToggleButton/index.test.js +49 -0
  174. package/dist/constants/datetime.d.ts +2 -0
  175. package/dist/constants/datetime.js +5 -0
  176. package/dist/createSvgIcon-B53UOwxg.js +183 -0
  177. package/dist/createSvgIcon-Dj8zNxRS.js +72 -0
  178. package/dist/index-BLPOOjNr.js +184 -0
  179. package/dist/index-BOjtnFU5.js +34 -0
  180. package/dist/index-Bs3JCwgu.js +689 -0
  181. package/dist/index-CICI7n5Y.js +19688 -0
  182. package/dist/index-CQDJfJT1.js +50 -0
  183. package/dist/index-C_i0-R5C.js +393 -0
  184. package/dist/index-DWRHnq8_.js +42 -0
  185. package/dist/index-Di2gTfPF.js +25175 -0
  186. package/dist/index-VF82hRp0.js +2522 -0
  187. package/dist/index-kvi6aotO.js +39 -0
  188. package/dist/index.d.ts +38 -0
  189. package/dist/index.esm-ChwJSgnF.js +1052 -0
  190. package/dist/index.js +77 -0
  191. package/dist/isEqual-BBhdD79C.js +667 -0
  192. package/dist/mergeSlotProps-J197zKan.js +63 -0
  193. package/dist/react.esm-C8amP77L.js +11182 -0
  194. package/dist/styled-CWju4EfZ.js +2702 -0
  195. package/dist/unsupportedProp-DZaWZqWQ.js +30 -0
  196. package/dist/useControlled-BQCJRJNJ.js +64 -0
  197. package/dist/useIsFocusVisible-BxB-Hdhb.js +124 -0
  198. package/dist/useSlotProps-Bh7akxXV.js +33 -0
  199. package/package.json +360 -0
@@ -0,0 +1,1594 @@
1
+ import { jsx as m, jsxs as ee } from "react/jsx-runtime";
2
+ import { b as oe, u as ae, c as O, d as N, e as k, f as C, g as ne, v as j, M as te, h as se, P as re, i as _, k as I, l as le, m as ie, n as h, o as V, q as ue, w as ce, x as de, D as pe, L as fe, A as be, j as me } from "../../index-CICI7n5Y.js";
3
+ import { a as s, u as w, _ as g, g as ye, b as Pe, s as q, c as De } from "../../styled-CWju4EfZ.js";
4
+ import * as P from "react";
5
+ import { P as e, c as he } from "../../index-Bs3JCwgu.js";
6
+ import { T as Te } from "../../ListContext-DOVwHqy-.js";
7
+ import { a as ge } from "../../index-kvi6aotO.js";
8
+ import { u as Oe } from "../../useSlotProps-Bh7akxXV.js";
9
+ import { r as R } from "../../ButtonBase-pxtIu13Q.js";
10
+ import { r as L } from "../../mergeSlotProps-J197zKan.js";
11
+ import '../../assets/index19.css';const xe = (n) => {
12
+ var t, l, a;
13
+ const r = O(), i = N();
14
+ return s({}, n, {
15
+ disablePast: (t = n.disablePast) != null ? t : !1,
16
+ disableFuture: (l = n.disableFuture) != null ? l : !1,
17
+ format: (a = n.format) != null ? a : r.formats.keyboardDate,
18
+ minDate: k(r, n.minDate, i.minDate),
19
+ maxDate: k(r, n.maxDate, i.maxDate)
20
+ });
21
+ }, ve = ({
22
+ props: n,
23
+ inputRef: t
24
+ }) => {
25
+ const l = xe(n), {
26
+ forwardedProps: a,
27
+ internalProps: r
28
+ } = oe(l, "date");
29
+ return ae({
30
+ inputRef: t,
31
+ forwardedProps: a,
32
+ internalProps: r,
33
+ valueManager: C,
34
+ fieldValueManager: ne,
35
+ validator: j,
36
+ valueType: "date"
37
+ });
38
+ }, ke = ["components", "componentsProps", "slots", "slotProps", "InputProps", "inputProps"], we = ["inputRef"], Re = ["ref", "onPaste", "onKeyDown", "inputMode", "readOnly", "clearable", "onClear"], S = /* @__PURE__ */ P.forwardRef(function(t, l) {
39
+ var a, r, i;
40
+ const c = w({
41
+ props: t,
42
+ name: "MuiDateField"
43
+ }), {
44
+ components: d,
45
+ componentsProps: o,
46
+ slots: u,
47
+ slotProps: f,
48
+ InputProps: p,
49
+ inputProps: y
50
+ } = c, b = g(c, ke), D = c, x = (a = (r = u == null ? void 0 : u.textField) != null ? r : d == null ? void 0 : d.TextField) != null ? a : te, v = Oe({
51
+ elementType: x,
52
+ externalSlotProps: (i = f == null ? void 0 : f.textField) != null ? i : o == null ? void 0 : o.textField,
53
+ externalForwardedProps: b,
54
+ ownerState: D
55
+ }), {
56
+ inputRef: Y
57
+ } = v, T = g(v, we);
58
+ T.inputProps = s({}, y, T.inputProps), T.InputProps = s({}, p, T.InputProps);
59
+ const $ = ve({
60
+ props: T,
61
+ inputRef: Y
62
+ }), {
63
+ ref: U,
64
+ onPaste: Q,
65
+ onKeyDown: H,
66
+ inputMode: K,
67
+ readOnly: B,
68
+ clearable: Z,
69
+ onClear: G
70
+ } = $, F = g($, Re), {
71
+ InputProps: J,
72
+ fieldProps: X
73
+ } = se({
74
+ onClear: G,
75
+ clearable: Z,
76
+ fieldProps: F,
77
+ InputProps: F.InputProps,
78
+ slots: u,
79
+ slotProps: f,
80
+ components: d,
81
+ componentsProps: o
82
+ });
83
+ return /* @__PURE__ */ m(x, s({
84
+ ref: l
85
+ }, X, {
86
+ InputProps: s({}, J, {
87
+ readOnly: B
88
+ }),
89
+ inputProps: s({}, F.inputProps, {
90
+ inputMode: K,
91
+ onPaste: Q,
92
+ onKeyDown: H,
93
+ ref: U
94
+ })
95
+ }));
96
+ });
97
+ process.env.NODE_ENV !== "production" && (S.propTypes = {
98
+ // ----------------------------- Warning --------------------------------
99
+ // | These PropTypes are generated from the TypeScript type definitions |
100
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
101
+ // ----------------------------------------------------------------------
102
+ /**
103
+ * If `true`, the `input` element is focused during the first mount.
104
+ * @default false
105
+ */
106
+ autoFocus: e.bool,
107
+ className: e.string,
108
+ /**
109
+ * If `true`, a clear button will be shown in the field allowing value clearing.
110
+ * @default false
111
+ */
112
+ clearable: e.bool,
113
+ /**
114
+ * The color of the component.
115
+ * It supports both default and custom theme colors, which can be added as shown in the
116
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
117
+ * @default 'primary'
118
+ */
119
+ color: e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]),
120
+ component: e.elementType,
121
+ /**
122
+ * Overridable components.
123
+ * @default {}
124
+ * @deprecated Please use `slots`.
125
+ */
126
+ components: e.object,
127
+ /**
128
+ * The props used for each component slot.
129
+ * @default {}
130
+ * @deprecated Please use `slotProps`.
131
+ */
132
+ componentsProps: e.object,
133
+ /**
134
+ * The default value. Use when the component is not controlled.
135
+ */
136
+ defaultValue: e.any,
137
+ /**
138
+ * If `true`, the component is disabled.
139
+ * @default false
140
+ */
141
+ disabled: e.bool,
142
+ /**
143
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
144
+ * @default false
145
+ */
146
+ disableFuture: e.bool,
147
+ /**
148
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
149
+ * @default false
150
+ */
151
+ disablePast: e.bool,
152
+ /**
153
+ * If `true`, the component is displayed in focused state.
154
+ */
155
+ focused: e.bool,
156
+ /**
157
+ * Format of the date when rendered in the input(s).
158
+ */
159
+ format: e.string,
160
+ /**
161
+ * Density of the format when rendered in the input.
162
+ * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
163
+ * @default "dense"
164
+ */
165
+ formatDensity: e.oneOf(["dense", "spacious"]),
166
+ /**
167
+ * Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
168
+ */
169
+ FormHelperTextProps: e.object,
170
+ /**
171
+ * If `true`, the input will take up the full width of its container.
172
+ * @default false
173
+ */
174
+ fullWidth: e.bool,
175
+ /**
176
+ * The helper text content.
177
+ */
178
+ helperText: e.node,
179
+ /**
180
+ * If `true`, the label is hidden.
181
+ * This is used to increase density for a `FilledInput`.
182
+ * Be sure to add `aria-label` to the `input` element.
183
+ * @default false
184
+ */
185
+ hiddenLabel: e.bool,
186
+ /**
187
+ * The id of the `input` element.
188
+ * Use this prop to make `label` and `helperText` accessible for screen readers.
189
+ */
190
+ id: e.string,
191
+ /**
192
+ * Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
193
+ * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
194
+ */
195
+ InputLabelProps: e.object,
196
+ /**
197
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
198
+ */
199
+ inputProps: e.object,
200
+ /**
201
+ * Props applied to the Input element.
202
+ * It will be a [`FilledInput`](/material-ui/api/filled-input/),
203
+ * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
204
+ * component depending on the `variant` prop value.
205
+ */
206
+ InputProps: e.object,
207
+ /**
208
+ * Pass a ref to the `input` element.
209
+ */
210
+ inputRef: R,
211
+ /**
212
+ * The label content.
213
+ */
214
+ label: e.node,
215
+ /**
216
+ * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
217
+ * @default 'none'
218
+ */
219
+ margin: e.oneOf(["dense", "none", "normal"]),
220
+ /**
221
+ * Maximal selectable date.
222
+ */
223
+ maxDate: e.any,
224
+ /**
225
+ * Minimal selectable date.
226
+ */
227
+ minDate: e.any,
228
+ /**
229
+ * Name attribute of the `input` element.
230
+ */
231
+ name: e.string,
232
+ onBlur: e.func,
233
+ /**
234
+ * Callback fired when the value changes.
235
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
236
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
237
+ * @param {TValue} value The new value.
238
+ * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
239
+ */
240
+ onChange: e.func,
241
+ /**
242
+ * Callback fired when the clear button is clicked.
243
+ */
244
+ onClear: e.func,
245
+ /**
246
+ * Callback fired when the error associated to the current value changes.
247
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
248
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
249
+ * @param {TError} error The new error.
250
+ * @param {TValue} value The value associated to the error.
251
+ */
252
+ onError: e.func,
253
+ onFocus: e.func,
254
+ /**
255
+ * Callback fired when the selected sections change.
256
+ * @param {FieldSelectedSections} newValue The new selected sections.
257
+ */
258
+ onSelectedSectionsChange: e.func,
259
+ /**
260
+ * It prevents the user from changing the value of the field
261
+ * (not from interacting with the field).
262
+ * @default false
263
+ */
264
+ readOnly: e.bool,
265
+ /**
266
+ * The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.
267
+ * For example, on time fields it will be used to determine the date to set.
268
+ * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.
269
+ */
270
+ referenceDate: e.any,
271
+ /**
272
+ * If `true`, the label is displayed as required and the `input` element is required.
273
+ * @default false
274
+ */
275
+ required: e.bool,
276
+ /**
277
+ * The currently selected sections.
278
+ * This prop accept four formats:
279
+ * 1. If a number is provided, the section at this index will be selected.
280
+ * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
281
+ * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
282
+ * 4. If `null` is provided, no section will be selected
283
+ * If not provided, the selected sections will be handled internally.
284
+ */
285
+ selectedSections: e.oneOfType([e.oneOf(["all", "day", "hours", "meridiem", "minutes", "month", "seconds", "weekDay", "year"]), e.number, e.shape({
286
+ endIndex: e.number.isRequired,
287
+ startIndex: e.number.isRequired
288
+ })]),
289
+ /**
290
+ * Disable specific date.
291
+ *
292
+ * Warning: This function can be called multiple times (e.g. when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.
293
+ *
294
+ * @template TDate
295
+ * @param {TDate} day The date to test.
296
+ * @returns {boolean} If `true` the date will be disabled.
297
+ */
298
+ shouldDisableDate: e.func,
299
+ /**
300
+ * Disable specific month.
301
+ * @template TDate
302
+ * @param {TDate} month The month to test.
303
+ * @returns {boolean} If `true`, the month will be disabled.
304
+ */
305
+ shouldDisableMonth: e.func,
306
+ /**
307
+ * Disable specific year.
308
+ * @template TDate
309
+ * @param {TDate} year The year to test.
310
+ * @returns {boolean} If `true`, the year will be disabled.
311
+ */
312
+ shouldDisableYear: e.func,
313
+ /**
314
+ * If `true`, the format will respect the leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `8/16/2018`)
315
+ * If `false`, the format will always add leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `08/16/2018`)
316
+ *
317
+ * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (e.g: "DD"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.
318
+ *
319
+ * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.
320
+ * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\u200e/g, '')`.
321
+ *
322
+ * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
323
+ * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
324
+ *
325
+ * @default `false`
326
+ */
327
+ shouldRespectLeadingZeros: e.bool,
328
+ /**
329
+ * The size of the component.
330
+ */
331
+ size: e.oneOf(["medium", "small"]),
332
+ /**
333
+ * The props used for each component slot.
334
+ * @default {}
335
+ */
336
+ slotProps: e.object,
337
+ /**
338
+ * Overridable component slots.
339
+ * @default {}
340
+ */
341
+ slots: e.object,
342
+ style: e.object,
343
+ /**
344
+ * The system prop that allows defining system overrides as well as additional CSS styles.
345
+ */
346
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
347
+ /**
348
+ * Choose which timezone to use for the value.
349
+ * Example: "default", "system", "UTC", "America/New_York".
350
+ * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
351
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
352
+ * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
353
+ */
354
+ timezone: e.string,
355
+ /**
356
+ * The ref object used to imperatively interact with the field.
357
+ */
358
+ unstableFieldRef: e.oneOfType([e.func, e.object]),
359
+ /**
360
+ * The selected value.
361
+ * Used when the component is controlled.
362
+ */
363
+ value: e.any,
364
+ /**
365
+ * The variant to use.
366
+ * @default 'outlined'
367
+ */
368
+ variant: e.oneOf(["filled", "outlined", "standard"])
369
+ });
370
+ function Fe(n) {
371
+ return ye("MuiDatePickerToolbar", n);
372
+ }
373
+ Pe("MuiDatePickerToolbar", ["root", "title"]);
374
+ const Me = ["value", "isLandscape", "onChange", "toolbarFormat", "toolbarPlaceholder", "views", "className"], Ce = (n) => {
375
+ const {
376
+ classes: t
377
+ } = n;
378
+ return De({
379
+ root: ["root"],
380
+ title: ["title"]
381
+ }, Fe, t);
382
+ }, je = q(re, {
383
+ name: "MuiDatePickerToolbar",
384
+ slot: "Root",
385
+ overridesResolver: (n, t) => t.root
386
+ })({}), _e = q(Te, {
387
+ name: "MuiDatePickerToolbar",
388
+ slot: "Title",
389
+ overridesResolver: (n, t) => t.title
390
+ })(({
391
+ ownerState: n
392
+ }) => s({}, n.isLandscape && {
393
+ margin: "auto 16px auto auto"
394
+ })), z = /* @__PURE__ */ P.forwardRef(function(t, l) {
395
+ const a = w({
396
+ props: t,
397
+ name: "MuiDatePickerToolbar"
398
+ }), {
399
+ value: r,
400
+ isLandscape: i,
401
+ toolbarFormat: c,
402
+ toolbarPlaceholder: d = "––",
403
+ views: o,
404
+ className: u
405
+ } = a, f = g(a, Me), p = O(), y = _(), b = Ce(a), D = P.useMemo(() => {
406
+ if (!r)
407
+ return d;
408
+ const v = I(p, {
409
+ format: c,
410
+ views: o
411
+ }, !0);
412
+ return p.formatByString(r, v);
413
+ }, [r, c, d, p, o]), x = a;
414
+ return /* @__PURE__ */ m(je, s({
415
+ ref: l,
416
+ toolbarTitle: y.datePickerToolbarTitle,
417
+ isLandscape: i,
418
+ className: he(b.root, u)
419
+ }, f, {
420
+ children: /* @__PURE__ */ m(_e, {
421
+ variant: "h4",
422
+ align: i ? "left" : "center",
423
+ ownerState: x,
424
+ className: b.title,
425
+ children: D
426
+ })
427
+ }));
428
+ });
429
+ process.env.NODE_ENV !== "production" && (z.propTypes = {
430
+ // ----------------------------- Warning --------------------------------
431
+ // | These PropTypes are generated from the TypeScript type definitions |
432
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
433
+ // ----------------------------------------------------------------------
434
+ /**
435
+ * Override or extend the styles applied to the component.
436
+ */
437
+ classes: e.object,
438
+ /**
439
+ * className applied to the root component.
440
+ */
441
+ className: e.string,
442
+ disabled: e.bool,
443
+ /**
444
+ * If `true`, show the toolbar even in desktop mode.
445
+ * @default `true` for Desktop, `false` for Mobile.
446
+ */
447
+ hidden: e.bool,
448
+ isLandscape: e.bool.isRequired,
449
+ onChange: e.func.isRequired,
450
+ /**
451
+ * Callback called when a toolbar is clicked
452
+ * @template TView
453
+ * @param {TView} view The view to open
454
+ */
455
+ onViewChange: e.func.isRequired,
456
+ readOnly: e.bool,
457
+ /**
458
+ * The system prop that allows defining system overrides as well as additional CSS styles.
459
+ */
460
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
461
+ titleId: e.string,
462
+ /**
463
+ * Toolbar date format.
464
+ */
465
+ toolbarFormat: e.string,
466
+ /**
467
+ * Toolbar value placeholder—it is displayed when the value is empty.
468
+ * @default "––"
469
+ */
470
+ toolbarPlaceholder: e.node,
471
+ value: e.any,
472
+ /**
473
+ * Currently visible picker view.
474
+ */
475
+ view: e.oneOf(["day", "month", "year"]).isRequired,
476
+ views: e.arrayOf(e.oneOf(["day", "month", "year"]).isRequired).isRequired
477
+ });
478
+ function E(n, t) {
479
+ var l, a, r, i;
480
+ const c = O(), d = N(), o = w({
481
+ props: n,
482
+ name: t
483
+ }), u = P.useMemo(() => {
484
+ var p;
485
+ return ((p = o.localeText) == null ? void 0 : p.toolbarTitle) == null ? o.localeText : s({}, o.localeText, {
486
+ datePickerToolbarTitle: o.localeText.toolbarTitle
487
+ });
488
+ }, [o.localeText]), f = (l = o.slots) != null ? l : le(o.components);
489
+ return s({}, o, {
490
+ localeText: u
491
+ }, ie({
492
+ views: o.views,
493
+ openTo: o.openTo,
494
+ defaultViews: ["year", "day"],
495
+ defaultOpenTo: "day"
496
+ }), {
497
+ disableFuture: (a = o.disableFuture) != null ? a : !1,
498
+ disablePast: (r = o.disablePast) != null ? r : !1,
499
+ minDate: k(c, o.minDate, d.minDate),
500
+ maxDate: k(c, o.maxDate, d.maxDate),
501
+ slots: s({
502
+ toolbar: z
503
+ }, f),
504
+ slotProps: (i = o.slotProps) != null ? i : o.componentsProps
505
+ });
506
+ }
507
+ const A = /* @__PURE__ */ P.forwardRef(function(t, l) {
508
+ var a, r, i, c;
509
+ const d = _(), o = O(), u = E(t, "MuiDesktopDatePicker"), f = s({
510
+ day: h,
511
+ month: h,
512
+ year: h
513
+ }, u.viewRenderers), p = s({}, u, {
514
+ viewRenderers: f,
515
+ format: I(o, u, !1),
516
+ yearsPerRow: (a = u.yearsPerRow) != null ? a : 4,
517
+ slots: s({
518
+ openPickerIcon: ge,
519
+ field: S
520
+ }, u.slots),
521
+ slotProps: s({}, u.slotProps, {
522
+ field: (b) => {
523
+ var D;
524
+ return s({}, L((D = u.slotProps) == null ? void 0 : D.field, b), V(u), {
525
+ ref: l
526
+ });
527
+ },
528
+ toolbar: s({
529
+ hidden: !0
530
+ }, (r = u.slotProps) == null ? void 0 : r.toolbar)
531
+ })
532
+ }), {
533
+ renderPicker: y
534
+ } = ue({
535
+ props: p,
536
+ valueManager: C,
537
+ valueType: "date",
538
+ getOpenDialogAriaText: (i = (c = p.localeText) == null ? void 0 : c.openDatePickerDialogue) != null ? i : d.openDatePickerDialogue,
539
+ validator: j
540
+ });
541
+ return y();
542
+ });
543
+ A.propTypes = {
544
+ // ----------------------------- Warning --------------------------------
545
+ // | These PropTypes are generated from the TypeScript type definitions |
546
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
547
+ // ----------------------------------------------------------------------
548
+ /**
549
+ * If `true`, the main element is focused during the first mount.
550
+ * This main element is:
551
+ * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).
552
+ * - the `input` element if there is a field rendered.
553
+ */
554
+ autoFocus: e.bool,
555
+ /**
556
+ * Class name applied to the root element.
557
+ */
558
+ className: e.string,
559
+ /**
560
+ * If `true`, the popover or modal will close after submitting the full date.
561
+ * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
562
+ */
563
+ closeOnSelect: e.bool,
564
+ /**
565
+ * Overridable components.
566
+ * @default {}
567
+ * @deprecated Please use `slots`.
568
+ */
569
+ components: e.object,
570
+ /**
571
+ * The props used for each component slot.
572
+ * @default {}
573
+ * @deprecated Please use `slotProps`.
574
+ */
575
+ componentsProps: e.object,
576
+ /**
577
+ * Formats the day of week displayed in the calendar header.
578
+ * @param {string} day The day of week provided by the adapter. Deprecated, will be removed in v7: Use `date` instead.
579
+ * @param {TDate} date The date of the day of week provided by the adapter.
580
+ * @returns {string} The name to display.
581
+ * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
582
+ */
583
+ dayOfWeekFormatter: e.func,
584
+ /**
585
+ * Default calendar month displayed when `value` and `defaultValue` are empty.
586
+ * @deprecated Consider using `referenceDate` instead.
587
+ */
588
+ defaultCalendarMonth: e.any,
589
+ /**
590
+ * The default value.
591
+ * Used when the component is not controlled.
592
+ */
593
+ defaultValue: e.any,
594
+ /**
595
+ * If `true`, the picker and text field are disabled.
596
+ * @default false
597
+ */
598
+ disabled: e.bool,
599
+ /**
600
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
601
+ * @default false
602
+ */
603
+ disableFuture: e.bool,
604
+ /**
605
+ * If `true`, today's date is rendering without highlighting with circle.
606
+ * @default false
607
+ */
608
+ disableHighlightToday: e.bool,
609
+ /**
610
+ * If `true`, the open picker button will not be rendered (renders only the field).
611
+ * @default false
612
+ */
613
+ disableOpenPicker: e.bool,
614
+ /**
615
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
616
+ * @default false
617
+ */
618
+ disablePast: e.bool,
619
+ /**
620
+ * If `true`, the week number will be display in the calendar.
621
+ */
622
+ displayWeekNumber: e.bool,
623
+ /**
624
+ * Calendar will show more weeks in order to match this value.
625
+ * Put it to 6 for having fix number of week in Gregorian calendars
626
+ * @default undefined
627
+ */
628
+ fixedWeekNumber: e.number,
629
+ /**
630
+ * Format of the date when rendered in the input(s).
631
+ * Defaults to localized format based on the used `views`.
632
+ */
633
+ format: e.string,
634
+ /**
635
+ * Density of the format when rendered in the input.
636
+ * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
637
+ * @default "dense"
638
+ */
639
+ formatDensity: e.oneOf(["dense", "spacious"]),
640
+ /**
641
+ * Pass a ref to the `input` element.
642
+ */
643
+ inputRef: R,
644
+ /**
645
+ * The label content.
646
+ */
647
+ label: e.node,
648
+ /**
649
+ * If `true`, calls `renderLoading` instead of rendering the day calendar.
650
+ * Can be used to preload information and show it in calendar.
651
+ * @default false
652
+ */
653
+ loading: e.bool,
654
+ /**
655
+ * Locale for components texts.
656
+ * Allows overriding texts coming from `LocalizationProvider` and `theme`.
657
+ */
658
+ localeText: e.object,
659
+ /**
660
+ * Maximal selectable date.
661
+ */
662
+ maxDate: e.any,
663
+ /**
664
+ * Minimal selectable date.
665
+ */
666
+ minDate: e.any,
667
+ /**
668
+ * Months rendered per row.
669
+ * @default 3
670
+ */
671
+ monthsPerRow: e.oneOf([3, 4]),
672
+ /**
673
+ * Name attribute used by the `input` element in the Field.
674
+ */
675
+ name: e.string,
676
+ /**
677
+ * Callback fired when the value is accepted.
678
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
679
+ * @param {TValue} value The value that was just accepted.
680
+ */
681
+ onAccept: e.func,
682
+ /**
683
+ * Callback fired when the value changes.
684
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
685
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
686
+ * @param {TValue} value The new value.
687
+ * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
688
+ */
689
+ onChange: e.func,
690
+ /**
691
+ * Callback fired when the popup requests to be closed.
692
+ * Use in controlled mode (see `open`).
693
+ */
694
+ onClose: e.func,
695
+ /**
696
+ * Callback fired when the error associated to the current value changes.
697
+ * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
698
+ *
699
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
700
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
701
+ * @param {TError} error The new error describing why the current value is not valid.
702
+ * @param {TValue} value The value associated to the error.
703
+ */
704
+ onError: e.func,
705
+ /**
706
+ * Callback fired on month change.
707
+ * @template TDate
708
+ * @param {TDate} month The new month.
709
+ */
710
+ onMonthChange: e.func,
711
+ /**
712
+ * Callback fired when the popup requests to be opened.
713
+ * Use in controlled mode (see `open`).
714
+ */
715
+ onOpen: e.func,
716
+ /**
717
+ * Callback fired when the selected sections change.
718
+ * @param {FieldSelectedSections} newValue The new selected sections.
719
+ */
720
+ onSelectedSectionsChange: e.func,
721
+ /**
722
+ * Callback fired on view change.
723
+ * @template TView
724
+ * @param {TView} view The new view.
725
+ */
726
+ onViewChange: e.func,
727
+ /**
728
+ * Callback fired on year change.
729
+ * @template TDate
730
+ * @param {TDate} year The new year.
731
+ */
732
+ onYearChange: e.func,
733
+ /**
734
+ * Control the popup or dialog open state.
735
+ * @default false
736
+ */
737
+ open: e.bool,
738
+ /**
739
+ * The default visible view.
740
+ * Used when the component view is not controlled.
741
+ * Must be a valid option from `views` list.
742
+ */
743
+ openTo: e.oneOf(["day", "month", "year"]),
744
+ /**
745
+ * Force rendering in particular orientation.
746
+ */
747
+ orientation: e.oneOf(["landscape", "portrait"]),
748
+ readOnly: e.bool,
749
+ /**
750
+ * If `true`, disable heavy animations.
751
+ * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
752
+ */
753
+ reduceAnimations: e.bool,
754
+ /**
755
+ * The date used to generate the new value when both `value` and `defaultValue` are empty.
756
+ * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
757
+ */
758
+ referenceDate: e.any,
759
+ /**
760
+ * Component displaying when passed `loading` true.
761
+ * @returns {React.ReactNode} The node to render when loading.
762
+ * @default () => <span data-mui-test="loading-progress">...</span>
763
+ */
764
+ renderLoading: e.func,
765
+ /**
766
+ * The currently selected sections.
767
+ * This prop accept four formats:
768
+ * 1. If a number is provided, the section at this index will be selected.
769
+ * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
770
+ * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
771
+ * 4. If `null` is provided, no section will be selected
772
+ * If not provided, the selected sections will be handled internally.
773
+ */
774
+ selectedSections: e.oneOfType([e.oneOf(["all", "day", "hours", "meridiem", "minutes", "month", "seconds", "weekDay", "year"]), e.number, e.shape({
775
+ endIndex: e.number.isRequired,
776
+ startIndex: e.number.isRequired
777
+ })]),
778
+ /**
779
+ * Disable specific date.
780
+ *
781
+ * Warning: This function can be called multiple times (e.g. when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.
782
+ *
783
+ * @template TDate
784
+ * @param {TDate} day The date to test.
785
+ * @returns {boolean} If `true` the date will be disabled.
786
+ */
787
+ shouldDisableDate: e.func,
788
+ /**
789
+ * Disable specific month.
790
+ * @template TDate
791
+ * @param {TDate} month The month to test.
792
+ * @returns {boolean} If `true`, the month will be disabled.
793
+ */
794
+ shouldDisableMonth: e.func,
795
+ /**
796
+ * Disable specific year.
797
+ * @template TDate
798
+ * @param {TDate} year The year to test.
799
+ * @returns {boolean} If `true`, the year will be disabled.
800
+ */
801
+ shouldDisableYear: e.func,
802
+ /**
803
+ * If `true`, days outside the current month are rendered:
804
+ *
805
+ * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.
806
+ *
807
+ * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.
808
+ *
809
+ * - ignored if `calendars` equals more than `1` on range pickers.
810
+ * @default false
811
+ */
812
+ showDaysOutsideCurrentMonth: e.bool,
813
+ /**
814
+ * The props used for each component slot.
815
+ * @default {}
816
+ */
817
+ slotProps: e.object,
818
+ /**
819
+ * Overridable component slots.
820
+ * @default {}
821
+ */
822
+ slots: e.object,
823
+ /**
824
+ * The system prop that allows defining system overrides as well as additional CSS styles.
825
+ */
826
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
827
+ /**
828
+ * Choose which timezone to use for the value.
829
+ * Example: "default", "system", "UTC", "America/New_York".
830
+ * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
831
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
832
+ * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
833
+ */
834
+ timezone: e.string,
835
+ /**
836
+ * The selected value.
837
+ * Used when the component is controlled.
838
+ */
839
+ value: e.any,
840
+ /**
841
+ * The visible view.
842
+ * Used when the component view is controlled.
843
+ * Must be a valid option from `views` list.
844
+ */
845
+ view: e.oneOf(["day", "month", "year"]),
846
+ /**
847
+ * Define custom view renderers for each section.
848
+ * If `null`, the section will only have field editing.
849
+ * If `undefined`, internally defined view will be the used.
850
+ */
851
+ viewRenderers: e.shape({
852
+ day: e.func,
853
+ month: e.func,
854
+ year: e.func
855
+ }),
856
+ /**
857
+ * Available views.
858
+ */
859
+ views: e.arrayOf(e.oneOf(["day", "month", "year"]).isRequired),
860
+ /**
861
+ * Years rendered per row.
862
+ * @default 4
863
+ */
864
+ yearsPerRow: e.oneOf([3, 4])
865
+ };
866
+ const W = /* @__PURE__ */ P.forwardRef(function(t, l) {
867
+ var a, r, i;
868
+ const c = _(), d = O(), o = E(t, "MuiMobileDatePicker"), u = s({
869
+ day: h,
870
+ month: h,
871
+ year: h
872
+ }, o.viewRenderers), f = s({}, o, {
873
+ viewRenderers: u,
874
+ format: I(d, o, !1),
875
+ slots: s({
876
+ field: S
877
+ }, o.slots),
878
+ slotProps: s({}, o.slotProps, {
879
+ field: (y) => {
880
+ var b;
881
+ return s({}, L((b = o.slotProps) == null ? void 0 : b.field, y), V(o), {
882
+ ref: l
883
+ });
884
+ },
885
+ toolbar: s({
886
+ hidden: !1
887
+ }, (a = o.slotProps) == null ? void 0 : a.toolbar)
888
+ })
889
+ }), {
890
+ renderPicker: p
891
+ } = ce({
892
+ props: f,
893
+ valueManager: C,
894
+ valueType: "date",
895
+ getOpenDialogAriaText: (r = (i = f.localeText) == null ? void 0 : i.openDatePickerDialogue) != null ? r : c.openDatePickerDialogue,
896
+ validator: j
897
+ });
898
+ return p();
899
+ });
900
+ W.propTypes = {
901
+ // ----------------------------- Warning --------------------------------
902
+ // | These PropTypes are generated from the TypeScript type definitions |
903
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
904
+ // ----------------------------------------------------------------------
905
+ /**
906
+ * If `true`, the main element is focused during the first mount.
907
+ * This main element is:
908
+ * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).
909
+ * - the `input` element if there is a field rendered.
910
+ */
911
+ autoFocus: e.bool,
912
+ /**
913
+ * Class name applied to the root element.
914
+ */
915
+ className: e.string,
916
+ /**
917
+ * If `true`, the popover or modal will close after submitting the full date.
918
+ * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
919
+ */
920
+ closeOnSelect: e.bool,
921
+ /**
922
+ * Overridable components.
923
+ * @default {}
924
+ * @deprecated Please use `slots`.
925
+ */
926
+ components: e.object,
927
+ /**
928
+ * The props used for each component slot.
929
+ * @default {}
930
+ * @deprecated Please use `slotProps`.
931
+ */
932
+ componentsProps: e.object,
933
+ /**
934
+ * Formats the day of week displayed in the calendar header.
935
+ * @param {string} day The day of week provided by the adapter. Deprecated, will be removed in v7: Use `date` instead.
936
+ * @param {TDate} date The date of the day of week provided by the adapter.
937
+ * @returns {string} The name to display.
938
+ * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
939
+ */
940
+ dayOfWeekFormatter: e.func,
941
+ /**
942
+ * Default calendar month displayed when `value` and `defaultValue` are empty.
943
+ * @deprecated Consider using `referenceDate` instead.
944
+ */
945
+ defaultCalendarMonth: e.any,
946
+ /**
947
+ * The default value.
948
+ * Used when the component is not controlled.
949
+ */
950
+ defaultValue: e.any,
951
+ /**
952
+ * If `true`, the picker and text field are disabled.
953
+ * @default false
954
+ */
955
+ disabled: e.bool,
956
+ /**
957
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
958
+ * @default false
959
+ */
960
+ disableFuture: e.bool,
961
+ /**
962
+ * If `true`, today's date is rendering without highlighting with circle.
963
+ * @default false
964
+ */
965
+ disableHighlightToday: e.bool,
966
+ /**
967
+ * If `true`, the open picker button will not be rendered (renders only the field).
968
+ * @default false
969
+ */
970
+ disableOpenPicker: e.bool,
971
+ /**
972
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
973
+ * @default false
974
+ */
975
+ disablePast: e.bool,
976
+ /**
977
+ * If `true`, the week number will be display in the calendar.
978
+ */
979
+ displayWeekNumber: e.bool,
980
+ /**
981
+ * Calendar will show more weeks in order to match this value.
982
+ * Put it to 6 for having fix number of week in Gregorian calendars
983
+ * @default undefined
984
+ */
985
+ fixedWeekNumber: e.number,
986
+ /**
987
+ * Format of the date when rendered in the input(s).
988
+ * Defaults to localized format based on the used `views`.
989
+ */
990
+ format: e.string,
991
+ /**
992
+ * Density of the format when rendered in the input.
993
+ * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
994
+ * @default "dense"
995
+ */
996
+ formatDensity: e.oneOf(["dense", "spacious"]),
997
+ /**
998
+ * Pass a ref to the `input` element.
999
+ */
1000
+ inputRef: R,
1001
+ /**
1002
+ * The label content.
1003
+ */
1004
+ label: e.node,
1005
+ /**
1006
+ * If `true`, calls `renderLoading` instead of rendering the day calendar.
1007
+ * Can be used to preload information and show it in calendar.
1008
+ * @default false
1009
+ */
1010
+ loading: e.bool,
1011
+ /**
1012
+ * Locale for components texts.
1013
+ * Allows overriding texts coming from `LocalizationProvider` and `theme`.
1014
+ */
1015
+ localeText: e.object,
1016
+ /**
1017
+ * Maximal selectable date.
1018
+ */
1019
+ maxDate: e.any,
1020
+ /**
1021
+ * Minimal selectable date.
1022
+ */
1023
+ minDate: e.any,
1024
+ /**
1025
+ * Months rendered per row.
1026
+ * @default 3
1027
+ */
1028
+ monthsPerRow: e.oneOf([3, 4]),
1029
+ /**
1030
+ * Name attribute used by the `input` element in the Field.
1031
+ */
1032
+ name: e.string,
1033
+ /**
1034
+ * Callback fired when the value is accepted.
1035
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1036
+ * @param {TValue} value The value that was just accepted.
1037
+ */
1038
+ onAccept: e.func,
1039
+ /**
1040
+ * Callback fired when the value changes.
1041
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1042
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
1043
+ * @param {TValue} value The new value.
1044
+ * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
1045
+ */
1046
+ onChange: e.func,
1047
+ /**
1048
+ * Callback fired when the popup requests to be closed.
1049
+ * Use in controlled mode (see `open`).
1050
+ */
1051
+ onClose: e.func,
1052
+ /**
1053
+ * Callback fired when the error associated to the current value changes.
1054
+ * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
1055
+ *
1056
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1057
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
1058
+ * @param {TError} error The new error describing why the current value is not valid.
1059
+ * @param {TValue} value The value associated to the error.
1060
+ */
1061
+ onError: e.func,
1062
+ /**
1063
+ * Callback fired on month change.
1064
+ * @template TDate
1065
+ * @param {TDate} month The new month.
1066
+ */
1067
+ onMonthChange: e.func,
1068
+ /**
1069
+ * Callback fired when the popup requests to be opened.
1070
+ * Use in controlled mode (see `open`).
1071
+ */
1072
+ onOpen: e.func,
1073
+ /**
1074
+ * Callback fired when the selected sections change.
1075
+ * @param {FieldSelectedSections} newValue The new selected sections.
1076
+ */
1077
+ onSelectedSectionsChange: e.func,
1078
+ /**
1079
+ * Callback fired on view change.
1080
+ * @template TView
1081
+ * @param {TView} view The new view.
1082
+ */
1083
+ onViewChange: e.func,
1084
+ /**
1085
+ * Callback fired on year change.
1086
+ * @template TDate
1087
+ * @param {TDate} year The new year.
1088
+ */
1089
+ onYearChange: e.func,
1090
+ /**
1091
+ * Control the popup or dialog open state.
1092
+ * @default false
1093
+ */
1094
+ open: e.bool,
1095
+ /**
1096
+ * The default visible view.
1097
+ * Used when the component view is not controlled.
1098
+ * Must be a valid option from `views` list.
1099
+ */
1100
+ openTo: e.oneOf(["day", "month", "year"]),
1101
+ /**
1102
+ * Force rendering in particular orientation.
1103
+ */
1104
+ orientation: e.oneOf(["landscape", "portrait"]),
1105
+ readOnly: e.bool,
1106
+ /**
1107
+ * If `true`, disable heavy animations.
1108
+ * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
1109
+ */
1110
+ reduceAnimations: e.bool,
1111
+ /**
1112
+ * The date used to generate the new value when both `value` and `defaultValue` are empty.
1113
+ * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
1114
+ */
1115
+ referenceDate: e.any,
1116
+ /**
1117
+ * Component displaying when passed `loading` true.
1118
+ * @returns {React.ReactNode} The node to render when loading.
1119
+ * @default () => <span data-mui-test="loading-progress">...</span>
1120
+ */
1121
+ renderLoading: e.func,
1122
+ /**
1123
+ * The currently selected sections.
1124
+ * This prop accept four formats:
1125
+ * 1. If a number is provided, the section at this index will be selected.
1126
+ * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
1127
+ * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
1128
+ * 4. If `null` is provided, no section will be selected
1129
+ * If not provided, the selected sections will be handled internally.
1130
+ */
1131
+ selectedSections: e.oneOfType([e.oneOf(["all", "day", "hours", "meridiem", "minutes", "month", "seconds", "weekDay", "year"]), e.number, e.shape({
1132
+ endIndex: e.number.isRequired,
1133
+ startIndex: e.number.isRequired
1134
+ })]),
1135
+ /**
1136
+ * Disable specific date.
1137
+ *
1138
+ * Warning: This function can be called multiple times (e.g. when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.
1139
+ *
1140
+ * @template TDate
1141
+ * @param {TDate} day The date to test.
1142
+ * @returns {boolean} If `true` the date will be disabled.
1143
+ */
1144
+ shouldDisableDate: e.func,
1145
+ /**
1146
+ * Disable specific month.
1147
+ * @template TDate
1148
+ * @param {TDate} month The month to test.
1149
+ * @returns {boolean} If `true`, the month will be disabled.
1150
+ */
1151
+ shouldDisableMonth: e.func,
1152
+ /**
1153
+ * Disable specific year.
1154
+ * @template TDate
1155
+ * @param {TDate} year The year to test.
1156
+ * @returns {boolean} If `true`, the year will be disabled.
1157
+ */
1158
+ shouldDisableYear: e.func,
1159
+ /**
1160
+ * If `true`, days outside the current month are rendered:
1161
+ *
1162
+ * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.
1163
+ *
1164
+ * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.
1165
+ *
1166
+ * - ignored if `calendars` equals more than `1` on range pickers.
1167
+ * @default false
1168
+ */
1169
+ showDaysOutsideCurrentMonth: e.bool,
1170
+ /**
1171
+ * The props used for each component slot.
1172
+ * @default {}
1173
+ */
1174
+ slotProps: e.object,
1175
+ /**
1176
+ * Overridable component slots.
1177
+ * @default {}
1178
+ */
1179
+ slots: e.object,
1180
+ /**
1181
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1182
+ */
1183
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1184
+ /**
1185
+ * Choose which timezone to use for the value.
1186
+ * Example: "default", "system", "UTC", "America/New_York".
1187
+ * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
1188
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
1189
+ * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
1190
+ */
1191
+ timezone: e.string,
1192
+ /**
1193
+ * The selected value.
1194
+ * Used when the component is controlled.
1195
+ */
1196
+ value: e.any,
1197
+ /**
1198
+ * The visible view.
1199
+ * Used when the component view is controlled.
1200
+ * Must be a valid option from `views` list.
1201
+ */
1202
+ view: e.oneOf(["day", "month", "year"]),
1203
+ /**
1204
+ * Define custom view renderers for each section.
1205
+ * If `null`, the section will only have field editing.
1206
+ * If `undefined`, internally defined view will be the used.
1207
+ */
1208
+ viewRenderers: e.shape({
1209
+ day: e.func,
1210
+ month: e.func,
1211
+ year: e.func
1212
+ }),
1213
+ /**
1214
+ * Available views.
1215
+ */
1216
+ views: e.arrayOf(e.oneOf(["day", "month", "year"]).isRequired),
1217
+ /**
1218
+ * Years rendered per row.
1219
+ * @default 3
1220
+ */
1221
+ yearsPerRow: e.oneOf([3, 4])
1222
+ };
1223
+ const Ie = ["desktopModeMediaQuery"], M = /* @__PURE__ */ P.forwardRef(function(t, l) {
1224
+ const a = w({
1225
+ props: t,
1226
+ name: "MuiDatePicker"
1227
+ }), {
1228
+ desktopModeMediaQuery: r = pe
1229
+ } = a, i = g(a, Ie);
1230
+ return de(r, {
1231
+ defaultMatches: !0
1232
+ }) ? /* @__PURE__ */ m(A, s({
1233
+ ref: l
1234
+ }, i)) : /* @__PURE__ */ m(W, s({
1235
+ ref: l
1236
+ }, i));
1237
+ });
1238
+ process.env.NODE_ENV !== "production" && (M.propTypes = {
1239
+ // ----------------------------- Warning --------------------------------
1240
+ // | These PropTypes are generated from the TypeScript type definitions |
1241
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
1242
+ // ----------------------------------------------------------------------
1243
+ /**
1244
+ * If `true`, the main element is focused during the first mount.
1245
+ * This main element is:
1246
+ * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).
1247
+ * - the `input` element if there is a field rendered.
1248
+ */
1249
+ autoFocus: e.bool,
1250
+ /**
1251
+ * Class name applied to the root element.
1252
+ */
1253
+ className: e.string,
1254
+ /**
1255
+ * If `true`, the popover or modal will close after submitting the full date.
1256
+ * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
1257
+ */
1258
+ closeOnSelect: e.bool,
1259
+ /**
1260
+ * Overridable components.
1261
+ * @default {}
1262
+ * @deprecated Please use `slots`.
1263
+ */
1264
+ components: e.object,
1265
+ /**
1266
+ * The props used for each component slot.
1267
+ * @default {}
1268
+ * @deprecated Please use `slotProps`.
1269
+ */
1270
+ componentsProps: e.object,
1271
+ /**
1272
+ * Formats the day of week displayed in the calendar header.
1273
+ * @param {string} day The day of week provided by the adapter. Deprecated, will be removed in v7: Use `date` instead.
1274
+ * @param {TDate} date The date of the day of week provided by the adapter.
1275
+ * @returns {string} The name to display.
1276
+ * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
1277
+ */
1278
+ dayOfWeekFormatter: e.func,
1279
+ /**
1280
+ * Default calendar month displayed when `value` and `defaultValue` are empty.
1281
+ * @deprecated Consider using `referenceDate` instead.
1282
+ */
1283
+ defaultCalendarMonth: e.any,
1284
+ /**
1285
+ * The default value.
1286
+ * Used when the component is not controlled.
1287
+ */
1288
+ defaultValue: e.any,
1289
+ /**
1290
+ * CSS media query when `Mobile` mode will be changed to `Desktop`.
1291
+ * @default '@media (pointer: fine)'
1292
+ * @example '@media (min-width: 720px)' or theme.breakpoints.up("sm")
1293
+ */
1294
+ desktopModeMediaQuery: e.string,
1295
+ /**
1296
+ * If `true`, the picker and text field are disabled.
1297
+ * @default false
1298
+ */
1299
+ disabled: e.bool,
1300
+ /**
1301
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
1302
+ * @default false
1303
+ */
1304
+ disableFuture: e.bool,
1305
+ /**
1306
+ * If `true`, today's date is rendering without highlighting with circle.
1307
+ * @default false
1308
+ */
1309
+ disableHighlightToday: e.bool,
1310
+ /**
1311
+ * If `true`, the open picker button will not be rendered (renders only the field).
1312
+ * @default false
1313
+ */
1314
+ disableOpenPicker: e.bool,
1315
+ /**
1316
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
1317
+ * @default false
1318
+ */
1319
+ disablePast: e.bool,
1320
+ /**
1321
+ * If `true`, the week number will be display in the calendar.
1322
+ */
1323
+ displayWeekNumber: e.bool,
1324
+ /**
1325
+ * Calendar will show more weeks in order to match this value.
1326
+ * Put it to 6 for having fix number of week in Gregorian calendars
1327
+ * @default undefined
1328
+ */
1329
+ fixedWeekNumber: e.number,
1330
+ /**
1331
+ * Format of the date when rendered in the input(s).
1332
+ * Defaults to localized format based on the used `views`.
1333
+ */
1334
+ format: e.string,
1335
+ /**
1336
+ * Density of the format when rendered in the input.
1337
+ * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
1338
+ * @default "dense"
1339
+ */
1340
+ formatDensity: e.oneOf(["dense", "spacious"]),
1341
+ /**
1342
+ * Pass a ref to the `input` element.
1343
+ */
1344
+ inputRef: R,
1345
+ /**
1346
+ * The label content.
1347
+ */
1348
+ label: e.node,
1349
+ /**
1350
+ * If `true`, calls `renderLoading` instead of rendering the day calendar.
1351
+ * Can be used to preload information and show it in calendar.
1352
+ * @default false
1353
+ */
1354
+ loading: e.bool,
1355
+ /**
1356
+ * Locale for components texts.
1357
+ * Allows overriding texts coming from `LocalizationProvider` and `theme`.
1358
+ */
1359
+ localeText: e.object,
1360
+ /**
1361
+ * Maximal selectable date.
1362
+ */
1363
+ maxDate: e.any,
1364
+ /**
1365
+ * Minimal selectable date.
1366
+ */
1367
+ minDate: e.any,
1368
+ /**
1369
+ * Months rendered per row.
1370
+ * @default 3
1371
+ */
1372
+ monthsPerRow: e.oneOf([3, 4]),
1373
+ /**
1374
+ * Name attribute used by the `input` element in the Field.
1375
+ */
1376
+ name: e.string,
1377
+ /**
1378
+ * Callback fired when the value is accepted.
1379
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1380
+ * @param {TValue} value The value that was just accepted.
1381
+ */
1382
+ onAccept: e.func,
1383
+ /**
1384
+ * Callback fired when the value changes.
1385
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1386
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
1387
+ * @param {TValue} value The new value.
1388
+ * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
1389
+ */
1390
+ onChange: e.func,
1391
+ /**
1392
+ * Callback fired when the popup requests to be closed.
1393
+ * Use in controlled mode (see `open`).
1394
+ */
1395
+ onClose: e.func,
1396
+ /**
1397
+ * Callback fired when the error associated to the current value changes.
1398
+ * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
1399
+ *
1400
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1401
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
1402
+ * @param {TError} error The new error describing why the current value is not valid.
1403
+ * @param {TValue} value The value associated to the error.
1404
+ */
1405
+ onError: e.func,
1406
+ /**
1407
+ * Callback fired on month change.
1408
+ * @template TDate
1409
+ * @param {TDate} month The new month.
1410
+ */
1411
+ onMonthChange: e.func,
1412
+ /**
1413
+ * Callback fired when the popup requests to be opened.
1414
+ * Use in controlled mode (see `open`).
1415
+ */
1416
+ onOpen: e.func,
1417
+ /**
1418
+ * Callback fired when the selected sections change.
1419
+ * @param {FieldSelectedSections} newValue The new selected sections.
1420
+ */
1421
+ onSelectedSectionsChange: e.func,
1422
+ /**
1423
+ * Callback fired on view change.
1424
+ * @template TView
1425
+ * @param {TView} view The new view.
1426
+ */
1427
+ onViewChange: e.func,
1428
+ /**
1429
+ * Callback fired on year change.
1430
+ * @template TDate
1431
+ * @param {TDate} year The new year.
1432
+ */
1433
+ onYearChange: e.func,
1434
+ /**
1435
+ * Control the popup or dialog open state.
1436
+ * @default false
1437
+ */
1438
+ open: e.bool,
1439
+ /**
1440
+ * The default visible view.
1441
+ * Used when the component view is not controlled.
1442
+ * Must be a valid option from `views` list.
1443
+ */
1444
+ openTo: e.oneOf(["day", "month", "year"]),
1445
+ /**
1446
+ * Force rendering in particular orientation.
1447
+ */
1448
+ orientation: e.oneOf(["landscape", "portrait"]),
1449
+ readOnly: e.bool,
1450
+ /**
1451
+ * If `true`, disable heavy animations.
1452
+ * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
1453
+ */
1454
+ reduceAnimations: e.bool,
1455
+ /**
1456
+ * The date used to generate the new value when both `value` and `defaultValue` are empty.
1457
+ * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
1458
+ */
1459
+ referenceDate: e.any,
1460
+ /**
1461
+ * Component displaying when passed `loading` true.
1462
+ * @returns {React.ReactNode} The node to render when loading.
1463
+ * @default () => <span data-mui-test="loading-progress">...</span>
1464
+ */
1465
+ renderLoading: e.func,
1466
+ /**
1467
+ * The currently selected sections.
1468
+ * This prop accept four formats:
1469
+ * 1. If a number is provided, the section at this index will be selected.
1470
+ * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
1471
+ * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
1472
+ * 4. If `null` is provided, no section will be selected
1473
+ * If not provided, the selected sections will be handled internally.
1474
+ */
1475
+ selectedSections: e.oneOfType([e.oneOf(["all", "day", "hours", "meridiem", "minutes", "month", "seconds", "weekDay", "year"]), e.number, e.shape({
1476
+ endIndex: e.number.isRequired,
1477
+ startIndex: e.number.isRequired
1478
+ })]),
1479
+ /**
1480
+ * Disable specific date.
1481
+ *
1482
+ * Warning: This function can be called multiple times (e.g. when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.
1483
+ *
1484
+ * @template TDate
1485
+ * @param {TDate} day The date to test.
1486
+ * @returns {boolean} If `true` the date will be disabled.
1487
+ */
1488
+ shouldDisableDate: e.func,
1489
+ /**
1490
+ * Disable specific month.
1491
+ * @template TDate
1492
+ * @param {TDate} month The month to test.
1493
+ * @returns {boolean} If `true`, the month will be disabled.
1494
+ */
1495
+ shouldDisableMonth: e.func,
1496
+ /**
1497
+ * Disable specific year.
1498
+ * @template TDate
1499
+ * @param {TDate} year The year to test.
1500
+ * @returns {boolean} If `true`, the year will be disabled.
1501
+ */
1502
+ shouldDisableYear: e.func,
1503
+ /**
1504
+ * If `true`, days outside the current month are rendered:
1505
+ *
1506
+ * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.
1507
+ *
1508
+ * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.
1509
+ *
1510
+ * - ignored if `calendars` equals more than `1` on range pickers.
1511
+ * @default false
1512
+ */
1513
+ showDaysOutsideCurrentMonth: e.bool,
1514
+ /**
1515
+ * The props used for each component slot.
1516
+ * @default {}
1517
+ */
1518
+ slotProps: e.object,
1519
+ /**
1520
+ * Overridable component slots.
1521
+ * @default {}
1522
+ */
1523
+ slots: e.object,
1524
+ /**
1525
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1526
+ */
1527
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1528
+ /**
1529
+ * Choose which timezone to use for the value.
1530
+ * Example: "default", "system", "UTC", "America/New_York".
1531
+ * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
1532
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
1533
+ * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
1534
+ */
1535
+ timezone: e.string,
1536
+ /**
1537
+ * The selected value.
1538
+ * Used when the component is controlled.
1539
+ */
1540
+ value: e.any,
1541
+ /**
1542
+ * The visible view.
1543
+ * Used when the component view is controlled.
1544
+ * Must be a valid option from `views` list.
1545
+ */
1546
+ view: e.oneOf(["day", "month", "year"]),
1547
+ /**
1548
+ * Define custom view renderers for each section.
1549
+ * If `null`, the section will only have field editing.
1550
+ * If `undefined`, internally defined view will be the used.
1551
+ */
1552
+ viewRenderers: e.shape({
1553
+ day: e.func,
1554
+ month: e.func,
1555
+ year: e.func
1556
+ }),
1557
+ /**
1558
+ * Available views.
1559
+ */
1560
+ views: e.arrayOf(e.oneOf(["day", "month", "year"]).isRequired),
1561
+ /**
1562
+ * Years rendered per row.
1563
+ * @default 4 on desktop, 3 on mobile
1564
+ */
1565
+ yearsPerRow: e.oneOf([3, 4])
1566
+ });
1567
+ const Se = "_rangeContainer_17n2w_1", $e = {
1568
+ rangeContainer: Se
1569
+ }, Ue = (n) => {
1570
+ const { fromDateInfo: t, toDateInfo: l } = n;
1571
+ return /* @__PURE__ */ m(fe, { dateAdapter: be, adapterLocale: me, children: /* @__PURE__ */ ee("div", { className: $e.rangeContainer, children: [
1572
+ /* @__PURE__ */ m(
1573
+ M,
1574
+ {
1575
+ maxDate: /* @__PURE__ */ new Date(),
1576
+ value: t.valueState,
1577
+ onChange: (a) => t.setValue(a)
1578
+ }
1579
+ ),
1580
+ "~",
1581
+ /* @__PURE__ */ m(
1582
+ M,
1583
+ {
1584
+ maxDate: /* @__PURE__ */ new Date(),
1585
+ value: l.valueState,
1586
+ onChange: (a) => l.setValue(a)
1587
+ }
1588
+ )
1589
+ ] }) });
1590
+ };
1591
+ export {
1592
+ Ue as RangeDatePicker,
1593
+ Ue as default
1594
+ };