@pisell/date-picker 1.0.143 → 1.0.144

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 (275) hide show
  1. package/README.md +2 -2
  2. package/es/ActionBar/index.d.ts +19 -20
  3. package/es/ActionBar/index.less +70 -70
  4. package/es/AdapterDateFns/index.d.ts +1 -1
  5. package/es/AdapterDateFnsJalali/index.d.ts +1 -1
  6. package/es/AdapterDayjs/index.d.ts +1 -1
  7. package/es/AdapterLuxon/index.d.ts +1 -1
  8. package/es/AdapterMoment/index.d.ts +1 -1
  9. package/es/AdapterMomentHijri/index.d.ts +1 -1
  10. package/es/AdapterMomentJalaali/index.d.ts +1 -1
  11. package/es/CustomCalendarHeader/index.d.ts +2 -3
  12. package/es/DatePickerLocales/index.d.ts +1 -1
  13. package/es/DateRangeCalendar/DateRangeCalendar.d.ts +7 -7
  14. package/es/DateRangeCalendar/DateRangeCalendar.js +122 -122
  15. package/es/DateRangeCalendar/DateRangeCalendar.types.d.ts +123 -123
  16. package/es/DateRangeCalendar/dateRangeCalendarClasses.d.ts +11 -11
  17. package/es/DateRangeCalendar/index.d.ts +4 -4
  18. package/es/DateRangeCalendar/useDragRange.d.ts +33 -33
  19. package/es/DateRangePicker/DateRangePicker.d.ts +7 -7
  20. package/es/DateRangePicker/DateRangePicker.js +184 -184
  21. package/es/DateRangePicker/DateRangePicker.types.d.ts +37 -37
  22. package/es/DateRangePicker/DateRangePickerToolbar.d.ts +12 -12
  23. package/es/DateRangePicker/DateRangePickerToolbar.js +10 -10
  24. package/es/DateRangePicker/dateRangePickerToolbarClasses.d.ts +9 -9
  25. package/es/DateRangePicker/index.d.ts +6 -6
  26. package/es/DateRangePicker/shared.d.ts +51 -51
  27. package/es/DateRangePickerDay/DateRangePickerDay.d.ts +50 -50
  28. package/es/DateRangePickerDay/DateRangePickerDay.js +96 -96
  29. package/es/DateRangePickerDay/dateRangePickerDayClasses.d.ts +41 -41
  30. package/es/DateRangePickerDay/index.d.ts +4 -4
  31. package/es/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +7 -7
  32. package/es/DesktopDateRangePicker/DesktopDateRangePicker.js +180 -180
  33. package/es/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +36 -36
  34. package/es/DesktopDateRangePicker/index.d.ts +2 -2
  35. package/es/Dialog/index.d.ts +2 -3
  36. package/es/Drawer/index.d.ts +11 -11
  37. package/es/Drawer/index.less +39 -39
  38. package/es/MobileDateRangePicker/MobileDateRangePicker.d.ts +7 -7
  39. package/es/MobileDateRangePicker/MobileDateRangePicker.js +180 -180
  40. package/es/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +36 -36
  41. package/es/MobileDateRangePicker/index.d.ts +2 -2
  42. package/es/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +7 -7
  43. package/es/MultiInputDateRangeField/MultiInputDateRangeField.js +113 -113
  44. package/es/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +69 -69
  45. package/es/MultiInputDateRangeField/index.d.ts +3 -3
  46. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +7 -7
  47. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +144 -144
  48. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +70 -70
  49. package/es/MultiInputDateTimeRangeField/index.d.ts +3 -3
  50. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +7 -7
  51. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.js +130 -130
  52. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +70 -70
  53. package/es/MultiInputTimeRangeField/index.d.ts +3 -3
  54. package/es/OldActionBar/index.d.ts +18 -19
  55. package/es/OldActionBar/index.less +17 -17
  56. package/es/OldPisellDateRangePicker/index.d.ts +79 -79
  57. package/es/OldPisellDateRangePicker/index.less +102 -102
  58. package/es/PisellDateRangePicker/LocaleContext.d.ts +7 -7
  59. package/es/PisellDateRangePicker/index.d.ts +83 -83
  60. package/es/PisellDateRangePicker/index.less +183 -183
  61. package/es/PisellDateRangePicker/useCssVariables.d.ts +8 -8
  62. package/es/Shortcuts/index.d.ts +15 -16
  63. package/es/Shortcuts/index.less +17 -17
  64. package/es/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +8 -8
  65. package/es/SingleInputDateRangeField/SingleInputDateRangeField.js +152 -152
  66. package/es/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +49 -49
  67. package/es/SingleInputDateRangeField/index.d.ts +3 -3
  68. package/es/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +3 -3
  69. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +8 -8
  70. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +183 -183
  71. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +50 -50
  72. package/es/SingleInputDateTimeRangeField/index.d.ts +3 -3
  73. package/es/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +3 -3
  74. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +8 -8
  75. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.js +169 -169
  76. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +50 -50
  77. package/es/SingleInputTimeRangeField/index.d.ts +3 -3
  78. package/es/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +3 -3
  79. package/es/StaticDateRangePicker/StaticDateRangePicker.d.ts +7 -7
  80. package/es/StaticDateRangePicker/StaticDateRangePicker.js +148 -148
  81. package/es/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +31 -31
  82. package/es/StaticDateRangePicker/index.d.ts +2 -2
  83. package/es/Toolbar/index.d.ts +3 -4
  84. package/es/Toolbar/index.less +34 -34
  85. package/es/browserSelect/index.d.ts +15 -15
  86. package/es/browserSelect/index.js +7 -7
  87. package/es/browserSelect/index.less +17 -17
  88. package/es/constants.d.ts +58 -58
  89. package/es/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +12 -13
  90. package/es/dateRangeViewRenderers/dateRangeViewRenderers.js +3 -3
  91. package/es/dateRangeViewRenderers/index.d.ts +2 -2
  92. package/es/hooks/useDocumentVisibility.d.ts +2 -2
  93. package/es/hooks/useNextDay.d.ts +2 -2
  94. package/es/hooks/useUpdateEffect.d.ts +2 -2
  95. package/es/icon/ChevronLeft.d.ts +5 -6
  96. package/es/icon/ChevronLeftDouble.d.ts +5 -6
  97. package/es/icon/ChevronRight.d.ts +5 -6
  98. package/es/icon/ChevronRightDouble.d.ts +5 -6
  99. package/es/icon/CloseCircle.d.ts +5 -6
  100. package/es/index.d.ts +26 -26
  101. package/es/internals/hooks/useDesktopRangePicker/index.d.ts +2 -2
  102. package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +5 -6
  103. package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +34 -34
  104. package/es/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +54 -54
  105. package/es/internals/hooks/useMobileRangePicker/index.d.ts +2 -2
  106. package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +5 -6
  107. package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +30 -30
  108. package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +3 -3
  109. package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +4 -4
  110. package/es/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +17 -17
  111. package/es/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +4 -4
  112. package/es/internals/hooks/useRangePosition.d.ts +28 -28
  113. package/es/internals/hooks/useStaticRangePicker/index.d.ts +2 -2
  114. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +9 -10
  115. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +3 -3
  116. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +33 -33
  117. package/es/internals/models/dateRange.d.ts +30 -30
  118. package/es/internals/models/dateTimeRange.d.ts +13 -13
  119. package/es/internals/models/fields.d.ts +43 -43
  120. package/es/internals/models/index.d.ts +6 -6
  121. package/es/internals/models/range.d.ts +3 -3
  122. package/es/internals/models/rangePickerProps.d.ts +17 -17
  123. package/es/internals/models/timeRange.d.ts +13 -13
  124. package/es/internals/utils/date-fields-utils.d.ts +25 -25
  125. package/es/internals/utils/date-range-manager.d.ts +21 -21
  126. package/es/internals/utils/date-utils.d.ts +6 -6
  127. package/es/internals/utils/releaseInfo.d.ts +1 -1
  128. package/es/internals/utils/validation/validateDateRange.d.ts +7 -7
  129. package/es/internals/utils/validation/validateDateTimeRange.d.ts +8 -8
  130. package/es/internals/utils/validation/validateTimeRange.d.ts +7 -7
  131. package/es/internals/utils/valueManagers.d.ts +7 -7
  132. package/es/locales/en-US.d.ts +26 -26
  133. package/es/locales/index.d.ts +2 -2
  134. package/es/locales/ja.d.ts +26 -26
  135. package/es/locales/pt.d.ts +26 -26
  136. package/es/locales/zh-CN.d.ts +26 -26
  137. package/es/locales/zh-TW.d.ts +26 -26
  138. package/es/models/index.d.ts +1 -1
  139. package/es/models/validation.d.ts +9 -9
  140. package/es/themeAugmentation/components.d.ts +66 -66
  141. package/es/themeAugmentation/index.d.ts +3 -3
  142. package/es/themeAugmentation/overrides.d.ts +33 -33
  143. package/es/themeAugmentation/props.d.ts +42 -42
  144. package/es/typings.d.ts +4 -4
  145. package/es/utils/index.d.ts +42 -42
  146. package/es/utils/index.js +19 -19
  147. package/lib/ActionBar/index.d.ts +19 -20
  148. package/lib/ActionBar/index.less +70 -70
  149. package/lib/AdapterDateFns/index.d.ts +1 -1
  150. package/lib/AdapterDateFnsJalali/index.d.ts +1 -1
  151. package/lib/AdapterDayjs/index.d.ts +1 -1
  152. package/lib/AdapterLuxon/index.d.ts +1 -1
  153. package/lib/AdapterMoment/index.d.ts +1 -1
  154. package/lib/AdapterMomentHijri/index.d.ts +1 -1
  155. package/lib/AdapterMomentJalaali/index.d.ts +1 -1
  156. package/lib/CustomCalendarHeader/index.d.ts +2 -3
  157. package/lib/DatePickerLocales/index.d.ts +1 -1
  158. package/lib/DateRangeCalendar/DateRangeCalendar.d.ts +7 -7
  159. package/lib/DateRangeCalendar/DateRangeCalendar.types.d.ts +123 -123
  160. package/lib/DateRangeCalendar/dateRangeCalendarClasses.d.ts +11 -11
  161. package/lib/DateRangeCalendar/index.d.ts +4 -4
  162. package/lib/DateRangeCalendar/useDragRange.d.ts +33 -33
  163. package/lib/DateRangePicker/DateRangePicker.d.ts +7 -7
  164. package/lib/DateRangePicker/DateRangePicker.types.d.ts +37 -37
  165. package/lib/DateRangePicker/DateRangePickerToolbar.d.ts +12 -12
  166. package/lib/DateRangePicker/dateRangePickerToolbarClasses.d.ts +9 -9
  167. package/lib/DateRangePicker/index.d.ts +6 -6
  168. package/lib/DateRangePicker/shared.d.ts +51 -51
  169. package/lib/DateRangePickerDay/DateRangePickerDay.d.ts +50 -50
  170. package/lib/DateRangePickerDay/dateRangePickerDayClasses.d.ts +41 -41
  171. package/lib/DateRangePickerDay/index.d.ts +4 -4
  172. package/lib/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +7 -7
  173. package/lib/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +36 -36
  174. package/lib/DesktopDateRangePicker/index.d.ts +2 -2
  175. package/lib/Dialog/index.d.ts +2 -3
  176. package/lib/Drawer/index.d.ts +11 -11
  177. package/lib/Drawer/index.less +39 -39
  178. package/lib/MobileDateRangePicker/MobileDateRangePicker.d.ts +7 -7
  179. package/lib/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +36 -36
  180. package/lib/MobileDateRangePicker/index.d.ts +2 -2
  181. package/lib/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +7 -7
  182. package/lib/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +69 -69
  183. package/lib/MultiInputDateRangeField/index.d.ts +3 -3
  184. package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +7 -7
  185. package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +70 -70
  186. package/lib/MultiInputDateTimeRangeField/index.d.ts +3 -3
  187. package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +7 -7
  188. package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +70 -70
  189. package/lib/MultiInputTimeRangeField/index.d.ts +3 -3
  190. package/lib/OldActionBar/index.d.ts +18 -19
  191. package/lib/OldActionBar/index.less +17 -17
  192. package/lib/OldPisellDateRangePicker/index.d.ts +79 -79
  193. package/lib/OldPisellDateRangePicker/index.less +102 -102
  194. package/lib/PisellDateRangePicker/LocaleContext.d.ts +7 -7
  195. package/lib/PisellDateRangePicker/index.d.ts +83 -83
  196. package/lib/PisellDateRangePicker/index.less +183 -183
  197. package/lib/PisellDateRangePicker/useCssVariables.d.ts +8 -8
  198. package/lib/Shortcuts/index.d.ts +15 -16
  199. package/lib/Shortcuts/index.less +17 -17
  200. package/lib/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +8 -8
  201. package/lib/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +49 -49
  202. package/lib/SingleInputDateRangeField/index.d.ts +3 -3
  203. package/lib/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +3 -3
  204. package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +8 -8
  205. package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +50 -50
  206. package/lib/SingleInputDateTimeRangeField/index.d.ts +3 -3
  207. package/lib/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +3 -3
  208. package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +8 -8
  209. package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +50 -50
  210. package/lib/SingleInputTimeRangeField/index.d.ts +3 -3
  211. package/lib/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +3 -3
  212. package/lib/StaticDateRangePicker/StaticDateRangePicker.d.ts +7 -7
  213. package/lib/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +31 -31
  214. package/lib/StaticDateRangePicker/index.d.ts +2 -2
  215. package/lib/Toolbar/index.d.ts +3 -4
  216. package/lib/Toolbar/index.less +34 -34
  217. package/lib/browserSelect/index.d.ts +15 -15
  218. package/lib/browserSelect/index.less +17 -17
  219. package/lib/constants.d.ts +58 -58
  220. package/lib/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +12 -13
  221. package/lib/dateRangeViewRenderers/index.d.ts +2 -2
  222. package/lib/hooks/useDocumentVisibility.d.ts +2 -2
  223. package/lib/hooks/useNextDay.d.ts +2 -2
  224. package/lib/hooks/useUpdateEffect.d.ts +2 -2
  225. package/lib/icon/ChevronLeft.d.ts +5 -6
  226. package/lib/icon/ChevronLeftDouble.d.ts +5 -6
  227. package/lib/icon/ChevronRight.d.ts +5 -6
  228. package/lib/icon/ChevronRightDouble.d.ts +5 -6
  229. package/lib/icon/CloseCircle.d.ts +5 -6
  230. package/lib/index.d.ts +26 -26
  231. package/lib/internals/hooks/useDesktopRangePicker/index.d.ts +2 -2
  232. package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +5 -6
  233. package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +34 -34
  234. package/lib/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +54 -54
  235. package/lib/internals/hooks/useMobileRangePicker/index.d.ts +2 -2
  236. package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +5 -6
  237. package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +30 -30
  238. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +3 -3
  239. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +4 -4
  240. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +17 -17
  241. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +4 -4
  242. package/lib/internals/hooks/useRangePosition.d.ts +28 -28
  243. package/lib/internals/hooks/useStaticRangePicker/index.d.ts +2 -2
  244. package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +9 -10
  245. package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +33 -33
  246. package/lib/internals/models/dateRange.d.ts +30 -30
  247. package/lib/internals/models/dateTimeRange.d.ts +13 -13
  248. package/lib/internals/models/fields.d.ts +43 -43
  249. package/lib/internals/models/index.d.ts +6 -6
  250. package/lib/internals/models/range.d.ts +3 -3
  251. package/lib/internals/models/rangePickerProps.d.ts +17 -17
  252. package/lib/internals/models/timeRange.d.ts +13 -13
  253. package/lib/internals/utils/date-fields-utils.d.ts +25 -25
  254. package/lib/internals/utils/date-range-manager.d.ts +21 -21
  255. package/lib/internals/utils/date-utils.d.ts +6 -6
  256. package/lib/internals/utils/releaseInfo.d.ts +1 -1
  257. package/lib/internals/utils/validation/validateDateRange.d.ts +7 -7
  258. package/lib/internals/utils/validation/validateDateTimeRange.d.ts +8 -8
  259. package/lib/internals/utils/validation/validateTimeRange.d.ts +7 -7
  260. package/lib/internals/utils/valueManagers.d.ts +7 -7
  261. package/lib/locales/en-US.d.ts +26 -26
  262. package/lib/locales/index.d.ts +2 -2
  263. package/lib/locales/ja.d.ts +26 -26
  264. package/lib/locales/pt.d.ts +26 -26
  265. package/lib/locales/zh-CN.d.ts +26 -26
  266. package/lib/locales/zh-TW.d.ts +26 -26
  267. package/lib/models/index.d.ts +1 -1
  268. package/lib/models/validation.d.ts +9 -9
  269. package/lib/themeAugmentation/components.d.ts +66 -66
  270. package/lib/themeAugmentation/index.d.ts +3 -3
  271. package/lib/themeAugmentation/overrides.d.ts +33 -33
  272. package/lib/themeAugmentation/props.d.ts +42 -42
  273. package/lib/typings.d.ts +4 -4
  274. package/lib/utils/index.d.ts +42 -42
  275. package/package.json +2 -2
@@ -47,233 +47,233 @@ StaticDateRangePicker.propTypes = {
47
47
  // | These PropTypes are generated from the TypeScript type definitions |
48
48
  // | To update them edit the TypeScript types and run "yarn proptypes" |
49
49
  // ----------------------------------------------------------------------
50
- /**
51
- * If `true`, the main element is focused during the first mount.
52
- * This main element is:
53
- * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).
54
- * - the `input` element if there is a field rendered.
50
+ /**
51
+ * If `true`, the main element is focused during the first mount.
52
+ * This main element is:
53
+ * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).
54
+ * - the `input` element if there is a field rendered.
55
55
  */
56
56
  autoFocus: PropTypes.bool,
57
- /**
58
- * The number of calendars to render.
59
- * @default 2
57
+ /**
58
+ * The number of calendars to render.
59
+ * @default 2
60
60
  */
61
61
  calendars: PropTypes.oneOf([1, 2, 3]),
62
- /**
63
- * Class name applied to the root element.
62
+ /**
63
+ * Class name applied to the root element.
64
64
  */
65
65
  className: PropTypes.string,
66
- /**
67
- * Overridable components.
68
- * @default {}
69
- * @deprecated Please use `slots`.
66
+ /**
67
+ * Overridable components.
68
+ * @default {}
69
+ * @deprecated Please use `slots`.
70
70
  */
71
71
  components: PropTypes.object,
72
- /**
73
- * The props used for each component slot.
74
- * @default {}
75
- * @deprecated Please use `slotProps`.
72
+ /**
73
+ * The props used for each component slot.
74
+ * @default {}
75
+ * @deprecated Please use `slotProps`.
76
76
  */
77
77
  componentsProps: PropTypes.object,
78
- /**
79
- * Position the current month is rendered in.
80
- * @default 1
78
+ /**
79
+ * Position the current month is rendered in.
80
+ * @default 1
81
81
  */
82
82
  currentMonthCalendarPosition: PropTypes.oneOf([1, 2, 3]),
83
- /**
84
- * Formats the day of week displayed in the calendar header.
85
- * @param {string} day The day of week provided by the adapter's method `getWeekdays`.
86
- * @returns {string} The name to display.
87
- * @default (day) => day.charAt(0).toUpperCase()
83
+ /**
84
+ * Formats the day of week displayed in the calendar header.
85
+ * @param {string} day The day of week provided by the adapter's method `getWeekdays`.
86
+ * @returns {string} The name to display.
87
+ * @default (day) => day.charAt(0).toUpperCase()
88
88
  */
89
89
  dayOfWeekFormatter: PropTypes.func,
90
- /**
91
- * Default calendar month displayed when `value={[null, null]}`.
90
+ /**
91
+ * Default calendar month displayed when `value={[null, null]}`.
92
92
  */
93
93
  defaultCalendarMonth: PropTypes.any,
94
- /**
95
- * The initial position in the edited date range.
96
- * Used when the component is not controlled.
97
- * @default 'start'
94
+ /**
95
+ * The initial position in the edited date range.
96
+ * Used when the component is not controlled.
97
+ * @default 'start'
98
98
  */
99
99
  defaultRangePosition: PropTypes.oneOf(['end', 'start']),
100
- /**
101
- * The default value.
102
- * Used when the component is not controlled.
100
+ /**
101
+ * The default value.
102
+ * Used when the component is not controlled.
103
103
  */
104
104
  defaultValue: PropTypes.arrayOf(PropTypes.any),
105
- /**
106
- * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.
107
- * @default false
105
+ /**
106
+ * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.
107
+ * @default false
108
108
  */
109
109
  disableAutoMonthSwitching: PropTypes.bool,
110
- /**
111
- * If `true`, the picker and text field are disabled.
112
- * @default false
110
+ /**
111
+ * If `true`, the picker and text field are disabled.
112
+ * @default false
113
113
  */
114
114
  disabled: PropTypes.bool,
115
- /**
116
- * If `true`, editing dates by dragging is disabled.
117
- * @default false
115
+ /**
116
+ * If `true`, editing dates by dragging is disabled.
117
+ * @default false
118
118
  */
119
119
  disableDragEditing: PropTypes.bool,
120
- /**
121
- * If `true`, disable values after the current date for date components, time for time components and both for date time components.
122
- * @default false
120
+ /**
121
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
122
+ * @default false
123
123
  */
124
124
  disableFuture: PropTypes.bool,
125
- /**
126
- * If `true`, today's date is rendering without highlighting with circle.
127
- * @default false
125
+ /**
126
+ * If `true`, today's date is rendering without highlighting with circle.
127
+ * @default false
128
128
  */
129
129
  disableHighlightToday: PropTypes.bool,
130
- /**
131
- * If `true`, disable values before the current date for date components, time for time components and both for date time components.
132
- * @default false
130
+ /**
131
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
132
+ * @default false
133
133
  */
134
134
  disablePast: PropTypes.bool,
135
- /**
136
- * Force static wrapper inner components to be rendered in mobile or desktop mode.
137
- * @default "mobile"
135
+ /**
136
+ * Force static wrapper inner components to be rendered in mobile or desktop mode.
137
+ * @default "mobile"
138
138
  */
139
139
  displayStaticWrapperAs: PropTypes.oneOf(['desktop', 'mobile']),
140
- /**
141
- * If `true`, the week number will be display in the calendar.
140
+ /**
141
+ * If `true`, the week number will be display in the calendar.
142
142
  */
143
143
  displayWeekNumber: PropTypes.bool,
144
- /**
145
- * Calendar will show more weeks in order to match this value.
146
- * Put it to 6 for having fix number of week in Gregorian calendars
147
- * @default undefined
144
+ /**
145
+ * Calendar will show more weeks in order to match this value.
146
+ * Put it to 6 for having fix number of week in Gregorian calendars
147
+ * @default undefined
148
148
  */
149
149
  fixedWeekNumber: PropTypes.number,
150
- /**
151
- * If `true`, calls `renderLoading` instead of rendering the day calendar.
152
- * Can be used to preload information and show it in calendar.
153
- * @default false
150
+ /**
151
+ * If `true`, calls `renderLoading` instead of rendering the day calendar.
152
+ * Can be used to preload information and show it in calendar.
153
+ * @default false
154
154
  */
155
155
  loading: PropTypes.bool,
156
- /**
157
- * Locale for components texts.
158
- * Allows overriding texts coming from `LocalizationProvider` and `theme`.
156
+ /**
157
+ * Locale for components texts.
158
+ * Allows overriding texts coming from `LocalizationProvider` and `theme`.
159
159
  */
160
160
  localeText: PropTypes.object,
161
- /**
162
- * Maximal selectable date.
161
+ /**
162
+ * Maximal selectable date.
163
163
  */
164
164
  maxDate: PropTypes.any,
165
- /**
166
- * Minimal selectable date.
165
+ /**
166
+ * Minimal selectable date.
167
167
  */
168
168
  minDate: PropTypes.any,
169
- /**
170
- * Callback fired when the value is accepted.
171
- * @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.
172
- * @param {TValue} value The value that was just accepted.
169
+ /**
170
+ * Callback fired when the value is accepted.
171
+ * @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.
172
+ * @param {TValue} value The value that was just accepted.
173
173
  */
174
174
  onAccept: PropTypes.func,
175
- /**
176
- * Callback fired when the value changes.
177
- * @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.
178
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
179
- * @param {TValue} value The new value.
180
- * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
175
+ /**
176
+ * Callback fired when the value changes.
177
+ * @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.
178
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
179
+ * @param {TValue} value The new value.
180
+ * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
181
181
  */
182
182
  onChange: PropTypes.func,
183
- /**
184
- * Callback fired when component requests to be closed.
185
- * Can be fired when selecting (by default on `desktop` mode) or clearing a value.
186
- * @deprecated Please avoid using as it will be removed in next major version.
183
+ /**
184
+ * Callback fired when component requests to be closed.
185
+ * Can be fired when selecting (by default on `desktop` mode) or clearing a value.
186
+ * @deprecated Please avoid using as it will be removed in next major version.
187
187
  */
188
188
  onClose: PropTypes.func,
189
- /**
190
- * Callback fired when the error associated to the current value changes.
191
- * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
192
- *
193
- * @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.
194
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
195
- * @param {TError} error The new error describing why the current value is not valid.
196
- * @param {TValue} value The value associated to the error.
189
+ /**
190
+ * Callback fired when the error associated to the current value changes.
191
+ * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
192
+ *
193
+ * @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.
194
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
195
+ * @param {TError} error The new error describing why the current value is not valid.
196
+ * @param {TValue} value The value associated to the error.
197
197
  */
198
198
  onError: PropTypes.func,
199
- /**
200
- * Callback fired on month change.
201
- * @template TDate
202
- * @param {TDate} month The new month.
199
+ /**
200
+ * Callback fired on month change.
201
+ * @template TDate
202
+ * @param {TDate} month The new month.
203
203
  */
204
204
  onMonthChange: PropTypes.func,
205
- /**
206
- * Callback fired when the range position changes.
207
- * @param {RangePosition} rangePosition The new range position.
205
+ /**
206
+ * Callback fired when the range position changes.
207
+ * @param {RangePosition} rangePosition The new range position.
208
208
  */
209
209
  onRangePositionChange: PropTypes.func,
210
- /**
211
- * The position in the currently edited date range.
212
- * Used when the component position is controlled.
210
+ /**
211
+ * The position in the currently edited date range.
212
+ * Used when the component position is controlled.
213
213
  */
214
214
  rangePosition: PropTypes.oneOf(['end', 'start']),
215
215
  readOnly: PropTypes.bool,
216
- /**
217
- * Disable heavy animations.
218
- * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
216
+ /**
217
+ * Disable heavy animations.
218
+ * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
219
219
  */
220
220
  reduceAnimations: PropTypes.bool,
221
- /**
222
- * Component displaying when passed `loading` true.
223
- * @returns {React.ReactNode} The node to render when loading.
224
- * @default () => "..."
221
+ /**
222
+ * Component displaying when passed `loading` true.
223
+ * @returns {React.ReactNode} The node to render when loading.
224
+ * @default () => "..."
225
225
  */
226
226
  renderLoading: PropTypes.func,
227
- /**
228
- * Disable specific date.
229
- * @template TDate
230
- * @param {TDate} day The date to test.
231
- * @param {string} position The date to test, 'start' or 'end'.
232
- * @returns {boolean} Returns `true` if the date should be disabled.
227
+ /**
228
+ * Disable specific date.
229
+ * @template TDate
230
+ * @param {TDate} day The date to test.
231
+ * @param {string} position The date to test, 'start' or 'end'.
232
+ * @returns {boolean} Returns `true` if the date should be disabled.
233
233
  */
234
234
  shouldDisableDate: PropTypes.func,
235
- /**
236
- * If `true`, days outside the current month are rendered:
237
- *
238
- * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.
239
- *
240
- * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.
241
- *
242
- * - ignored if `calendars` equals more than `1` on range pickers.
243
- * @default false
235
+ /**
236
+ * If `true`, days outside the current month are rendered:
237
+ *
238
+ * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.
239
+ *
240
+ * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.
241
+ *
242
+ * - ignored if `calendars` equals more than `1` on range pickers.
243
+ * @default false
244
244
  */
245
245
  showDaysOutsideCurrentMonth: PropTypes.bool,
246
- /**
247
- * The props used for each component slot.
248
- * @default {}
246
+ /**
247
+ * The props used for each component slot.
248
+ * @default {}
249
249
  */
250
250
  slotProps: PropTypes.object,
251
- /**
252
- * Overridable component slots.
253
- * @default {}
251
+ /**
252
+ * Overridable component slots.
253
+ * @default {}
254
254
  */
255
255
  slots: PropTypes.object,
256
- /**
257
- * The system prop that allows defining system overrides as well as additional CSS styles.
256
+ /**
257
+ * The system prop that allows defining system overrides as well as additional CSS styles.
258
258
  */
259
259
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
260
- /**
261
- * Choose which timezone to use for the value.
262
- * Example: "default", "system", "UTC", "America/New_York".
263
- * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
264
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
265
- * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
260
+ /**
261
+ * Choose which timezone to use for the value.
262
+ * Example: "default", "system", "UTC", "America/New_York".
263
+ * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
264
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
265
+ * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
266
266
  */
267
267
  timezone: PropTypes.string,
268
- /**
269
- * The selected value.
270
- * Used when the component is controlled.
268
+ /**
269
+ * The selected value.
270
+ * Used when the component is controlled.
271
271
  */
272
272
  value: PropTypes.arrayOf(PropTypes.any),
273
- /**
274
- * Define custom view renderers for each section.
275
- * If `null`, the section will only have field editing.
276
- * If `undefined`, internally defined view will be the used.
273
+ /**
274
+ * Define custom view renderers for each section.
275
+ * If `null`, the section will only have field editing.
276
+ * If `undefined`, internally defined view will be the used.
277
277
  */
278
278
  viewRenderers: PropTypes.shape({
279
279
  day: PropTypes.func
@@ -1,31 +1,31 @@
1
- import { MakeOptional, UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
2
- import { StaticRangeOnlyPickerProps, UseStaticRangePickerSlotsComponent, UseStaticRangePickerSlotsComponentsProps } from '../internals/hooks/useStaticRangePicker';
3
- import { BaseDateRangePickerProps, BaseDateRangePickerSlotsComponent, BaseDateRangePickerSlotsComponentsProps } from '../DateRangePicker/shared';
4
- export interface StaticDateRangePickerSlotsComponent<TDate> extends BaseDateRangePickerSlotsComponent<TDate>, UseStaticRangePickerSlotsComponent<TDate, 'day'> {
5
- }
6
- export interface StaticDateRangePickerSlotsComponentsProps<TDate> extends BaseDateRangePickerSlotsComponentsProps<TDate>, UseStaticRangePickerSlotsComponentsProps<TDate, 'day'> {
7
- }
8
- export interface StaticDateRangePickerProps<TDate> extends BaseDateRangePickerProps<TDate>, MakeOptional<StaticRangeOnlyPickerProps, 'displayStaticWrapperAs'> {
9
- /**
10
- * Overridable components.
11
- * @default {}
12
- * @deprecated Please use `slots`.
13
- */
14
- components?: StaticDateRangePickerSlotsComponent<TDate>;
15
- /**
16
- * The props used for each component slot.
17
- * @default {}
18
- * @deprecated Please use `slotProps`.
19
- */
20
- componentsProps?: StaticDateRangePickerSlotsComponentsProps<TDate>;
21
- /**
22
- * Overridable component slots.
23
- * @default {}
24
- */
25
- slots?: UncapitalizeObjectKeys<StaticDateRangePickerSlotsComponent<TDate>>;
26
- /**
27
- * The props used for each component slot.
28
- * @default {}
29
- */
30
- slotProps?: StaticDateRangePickerSlotsComponentsProps<TDate>;
31
- }
1
+ import { MakeOptional, UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
2
+ import { StaticRangeOnlyPickerProps, UseStaticRangePickerSlotsComponent, UseStaticRangePickerSlotsComponentsProps } from '../internals/hooks/useStaticRangePicker';
3
+ import { BaseDateRangePickerProps, BaseDateRangePickerSlotsComponent, BaseDateRangePickerSlotsComponentsProps } from '../DateRangePicker/shared';
4
+ export interface StaticDateRangePickerSlotsComponent<TDate> extends BaseDateRangePickerSlotsComponent<TDate>, UseStaticRangePickerSlotsComponent<TDate, 'day'> {
5
+ }
6
+ export interface StaticDateRangePickerSlotsComponentsProps<TDate> extends BaseDateRangePickerSlotsComponentsProps<TDate>, UseStaticRangePickerSlotsComponentsProps<TDate, 'day'> {
7
+ }
8
+ export interface StaticDateRangePickerProps<TDate> extends BaseDateRangePickerProps<TDate>, MakeOptional<StaticRangeOnlyPickerProps, 'displayStaticWrapperAs'> {
9
+ /**
10
+ * Overridable components.
11
+ * @default {}
12
+ * @deprecated Please use `slots`.
13
+ */
14
+ components?: StaticDateRangePickerSlotsComponent<TDate>;
15
+ /**
16
+ * The props used for each component slot.
17
+ * @default {}
18
+ * @deprecated Please use `slotProps`.
19
+ */
20
+ componentsProps?: StaticDateRangePickerSlotsComponentsProps<TDate>;
21
+ /**
22
+ * Overridable component slots.
23
+ * @default {}
24
+ */
25
+ slots?: UncapitalizeObjectKeys<StaticDateRangePickerSlotsComponent<TDate>>;
26
+ /**
27
+ * The props used for each component slot.
28
+ * @default {}
29
+ */
30
+ slotProps?: StaticDateRangePickerSlotsComponentsProps<TDate>;
31
+ }
@@ -1,2 +1,2 @@
1
- export { StaticDateRangePicker } from './StaticDateRangePicker';
2
- export type { StaticDateRangePickerProps, StaticDateRangePickerSlotsComponent, StaticDateRangePickerSlotsComponentsProps, } from './StaticDateRangePicker.types';
1
+ export { StaticDateRangePicker } from './StaticDateRangePicker';
2
+ export type { StaticDateRangePickerProps, StaticDateRangePickerSlotsComponent, StaticDateRangePickerSlotsComponentsProps, } from './StaticDateRangePicker.types';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const Toolbar: (props: any) => React.JSX.Element | null;
4
- export default Toolbar;
1
+ import './index.less';
2
+ declare const Toolbar: (props: any) => JSX.Element | null;
3
+ export default Toolbar;
@@ -1,35 +1,35 @@
1
- .date-picker-toolbar {
2
- padding: 20px 20px 0;
3
- color: var(--Gray-700, #344054);
4
- font-size: 14px;
5
- font-style: normal;
6
- font-weight: 600;
7
- line-height: 20px; /* 142.857% */
8
- display: flex;
9
- flex-direction: column;
10
- gap: 12px;
11
- .date-picker-content-top {
12
- display: flex;
13
- flex-direction: column;
14
- gap: 8px;
15
- }
16
- .date-picker-content-bottom {
17
- display: flex;
18
- gap: 16px;
19
- }
20
- .date-picker-toolbar-start-wrap {
21
- display: flex;
22
- flex-direction: column;
23
- gap: 8px;
24
- flex: 1;
25
- }
26
- .date-picker-toolbar-end-wrap {
27
- display: flex;
28
- flex-direction: column;
29
- gap: 8px;
30
- flex: 1;
31
- }
32
- .date-picker-error {
33
- color: #d4163a;
34
- }
1
+ .date-picker-toolbar {
2
+ padding: 20px 20px 0;
3
+ color: var(--Gray-700, #344054);
4
+ font-size: 14px;
5
+ font-style: normal;
6
+ font-weight: 600;
7
+ line-height: 20px; /* 142.857% */
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 12px;
11
+ .date-picker-content-top {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: 8px;
15
+ }
16
+ .date-picker-content-bottom {
17
+ display: flex;
18
+ gap: 16px;
19
+ }
20
+ .date-picker-toolbar-start-wrap {
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: 8px;
24
+ flex: 1;
25
+ }
26
+ .date-picker-toolbar-end-wrap {
27
+ display: flex;
28
+ flex-direction: column;
29
+ gap: 8px;
30
+ flex: 1;
31
+ }
32
+ .date-picker-error {
33
+ color: #d4163a;
34
+ }
35
35
  }
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- import "./index.less";
3
- interface BrowserSelectProps extends React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> {
4
- options: any[];
5
- }
6
- /**
7
- * @title: 系统级别的下拉框
8
- * @description:
9
- * @param {BrowserSelectProps} props
10
- * @return {*}
11
- * @Author: zhiwei.Wang
12
- * @Date: 2024-01-30 16:43
13
- */
14
- declare const BrowserSelect: (props: BrowserSelectProps) => React.JSX.Element;
15
- export default BrowserSelect;
1
+ import React from "react";
2
+ import "./index.less";
3
+ interface BrowserSelectProps extends React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> {
4
+ options: any[];
5
+ }
6
+ /**
7
+ * @title: 系统级别的下拉框
8
+ * @description:
9
+ * @param {BrowserSelectProps} props
10
+ * @return {*}
11
+ * @Author: zhiwei.Wang
12
+ * @Date: 2024-01-30 16:43
13
+ */
14
+ declare const BrowserSelect: (props: BrowserSelectProps) => JSX.Element;
15
+ export default BrowserSelect;
@@ -5,13 +5,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
5
5
  import React, { useMemo } from "react";
6
6
  import classNames from "classnames";
7
7
  import "./index.less";
8
- /**
9
- * @title: 系统级别的下拉框
10
- * @description:
11
- * @param {BrowserSelectProps} props
12
- * @return {*}
13
- * @Author: zhiwei.Wang
14
- * @Date: 2024-01-30 16:43
8
+ /**
9
+ * @title: 系统级别的下拉框
10
+ * @description:
11
+ * @param {BrowserSelectProps} props
12
+ * @return {*}
13
+ * @Author: zhiwei.Wang
14
+ * @Date: 2024-01-30 16:43
15
15
  */
16
16
  var BrowserSelect = function BrowserSelect(props) {
17
17
  var options = props.options,
@@ -1,18 +1,18 @@
1
- .date-picker-pisell-browser-select {
2
- padding: 9px 16px;
3
- border-radius: 8px;
4
- background-color: #fff;
5
- background-image: url('./chevron-down.png');
6
- color: var(--Gray-true-900, #141414);
7
- font-size: 16px;
8
- font-style: normal;
9
- font-weight: 600;
10
- border: 1px solid var(--Gray-300, #D0D5DD);
11
- cursor: pointer;
12
- appearance: none;
13
- -webkit-appearance: none;
14
- -moz-appearance: none;
15
- background-position: right 10px center;
16
- background-size: 12px;
17
- background-repeat: no-repeat;
1
+ .date-picker-pisell-browser-select {
2
+ padding: 9px 16px;
3
+ border-radius: 8px;
4
+ background-color: #fff;
5
+ background-image: url('./chevron-down.png');
6
+ color: var(--Gray-true-900, #141414);
7
+ font-size: 16px;
8
+ font-style: normal;
9
+ font-weight: 600;
10
+ border: 1px solid var(--Gray-300, #D0D5DD);
11
+ cursor: pointer;
12
+ appearance: none;
13
+ -webkit-appearance: none;
14
+ -moz-appearance: none;
15
+ background-position: right 10px center;
16
+ background-size: 12px;
17
+ background-repeat: no-repeat;
18
18
  }