@amateescu/portal-ui-components 0.0.35-beta0 → 0.0.37-beta0

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