react-native-paper-dates 0.22.38 → 0.22.40

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 (221) hide show
  1. package/lib/commonjs/Date/AnimatedCrossView.js +1 -3
  2. package/lib/commonjs/Date/AnimatedCrossView.js.map +1 -1
  3. package/lib/commonjs/Date/AutoSizer.js +1 -3
  4. package/lib/commonjs/Date/AutoSizer.js.map +1 -1
  5. package/lib/commonjs/Date/Calendar.js +1 -3
  6. package/lib/commonjs/Date/Calendar.js.map +1 -1
  7. package/lib/commonjs/Date/CalendarEdit.js +1 -3
  8. package/lib/commonjs/Date/CalendarEdit.js.map +1 -1
  9. package/lib/commonjs/Date/CalendarHeader.js +1 -1
  10. package/lib/commonjs/Date/CalendarHeader.js.map +1 -1
  11. package/lib/commonjs/Date/DatePickerInput.js +1 -3
  12. package/lib/commonjs/Date/DatePickerInput.js.map +1 -1
  13. package/lib/commonjs/Date/DatePickerInputWithoutModal.js +1 -3
  14. package/lib/commonjs/Date/DatePickerInputWithoutModal.js.map +1 -1
  15. package/lib/commonjs/Date/DatePickerModal.js +1 -3
  16. package/lib/commonjs/Date/DatePickerModal.js.map +1 -1
  17. package/lib/commonjs/Date/DatePickerModalContent.js +1 -3
  18. package/lib/commonjs/Date/DatePickerModalContent.js.map +1 -1
  19. package/lib/commonjs/Date/DatePickerModalContentHeader.js +1 -3
  20. package/lib/commonjs/Date/DatePickerModalContentHeader.js.map +1 -1
  21. package/lib/commonjs/Date/DatePickerModalHeader.js +0 -2
  22. package/lib/commonjs/Date/DatePickerModalHeader.js.map +1 -1
  23. package/lib/commonjs/Date/DatePickerModalHeaderBackground.js +0 -2
  24. package/lib/commonjs/Date/DatePickerModalHeaderBackground.js.map +1 -1
  25. package/lib/commonjs/Date/DatePickerModalStatusBar.js +1 -3
  26. package/lib/commonjs/Date/DatePickerModalStatusBar.js.map +1 -1
  27. package/lib/commonjs/Date/Day.js +1 -3
  28. package/lib/commonjs/Date/Day.js.map +1 -1
  29. package/lib/commonjs/Date/DayName.js +1 -3
  30. package/lib/commonjs/Date/DayName.js.map +1 -1
  31. package/lib/commonjs/Date/DayNames.js +1 -3
  32. package/lib/commonjs/Date/DayNames.js.map +1 -1
  33. package/lib/commonjs/Date/DayRange.js +1 -3
  34. package/lib/commonjs/Date/DayRange.js.map +1 -1
  35. package/lib/commonjs/Date/Month.js +1 -1
  36. package/lib/commonjs/Date/Month.js.map +1 -1
  37. package/lib/commonjs/Date/Swiper.js +1 -3
  38. package/lib/commonjs/Date/Swiper.js.map +1 -1
  39. package/lib/commonjs/Date/Swiper.native.js +1 -3
  40. package/lib/commonjs/Date/Swiper.native.js.map +1 -1
  41. package/lib/commonjs/Date/YearPicker.js +1 -3
  42. package/lib/commonjs/Date/YearPicker.js.map +1 -1
  43. package/lib/commonjs/TextInputMask.js +1 -3
  44. package/lib/commonjs/TextInputMask.js.map +1 -1
  45. package/lib/commonjs/Time/AmPmSwitcher.js +1 -3
  46. package/lib/commonjs/Time/AmPmSwitcher.js.map +1 -1
  47. package/lib/commonjs/Time/AnalogClock.js +1 -3
  48. package/lib/commonjs/Time/AnalogClock.js.map +1 -1
  49. package/lib/commonjs/Time/AnalogClockHours.js +1 -3
  50. package/lib/commonjs/Time/AnalogClockHours.js.map +1 -1
  51. package/lib/commonjs/Time/AnalogClockMinutes.js +1 -3
  52. package/lib/commonjs/Time/AnalogClockMinutes.js.map +1 -1
  53. package/lib/commonjs/Time/AnimatedClockSwitcher.js +1 -3
  54. package/lib/commonjs/Time/AnimatedClockSwitcher.js.map +1 -1
  55. package/lib/commonjs/Time/TimeInput.js +7 -5
  56. package/lib/commonjs/Time/TimeInput.js.map +1 -1
  57. package/lib/commonjs/Time/TimeInputs.js +1 -3
  58. package/lib/commonjs/Time/TimeInputs.js.map +1 -1
  59. package/lib/commonjs/Time/TimePicker.js +1 -3
  60. package/lib/commonjs/Time/TimePicker.js.map +1 -1
  61. package/lib/commonjs/Time/TimePickerModal.js +2 -3
  62. package/lib/commonjs/Time/TimePickerModal.js.map +1 -1
  63. package/lib/module/Date/AnimatedCrossView.js +0 -1
  64. package/lib/module/Date/AnimatedCrossView.js.map +1 -1
  65. package/lib/module/Date/AutoSizer.js +0 -1
  66. package/lib/module/Date/AutoSizer.js.map +1 -1
  67. package/lib/module/Date/Calendar.js +1 -2
  68. package/lib/module/Date/Calendar.js.map +1 -1
  69. package/lib/module/Date/CalendarEdit.js +1 -2
  70. package/lib/module/Date/CalendarEdit.js.map +1 -1
  71. package/lib/module/Date/CalendarHeader.js +1 -1
  72. package/lib/module/Date/CalendarHeader.js.map +1 -1
  73. package/lib/module/Date/DatePickerInput.js +0 -1
  74. package/lib/module/Date/DatePickerInput.js.map +1 -1
  75. package/lib/module/Date/DatePickerInputWithoutModal.js +2 -2
  76. package/lib/module/Date/DatePickerInputWithoutModal.js.map +1 -1
  77. package/lib/module/Date/DatePickerModal.js +2 -2
  78. package/lib/module/Date/DatePickerModal.js.map +1 -1
  79. package/lib/module/Date/DatePickerModalContent.js +1 -1
  80. package/lib/module/Date/DatePickerModalContent.js.map +1 -1
  81. package/lib/module/Date/DatePickerModalContentHeader.js +2 -2
  82. package/lib/module/Date/DatePickerModalContentHeader.js.map +1 -1
  83. package/lib/module/Date/DatePickerModalHeader.js +0 -1
  84. package/lib/module/Date/DatePickerModalHeader.js.map +1 -1
  85. package/lib/module/Date/DatePickerModalHeaderBackground.js +0 -1
  86. package/lib/module/Date/DatePickerModalHeaderBackground.js.map +1 -1
  87. package/lib/module/Date/DatePickerModalStatusBar.js +1 -1
  88. package/lib/module/Date/DatePickerModalStatusBar.js.map +1 -1
  89. package/lib/module/Date/Day.js +0 -1
  90. package/lib/module/Date/Day.js.map +1 -1
  91. package/lib/module/Date/DayName.js +1 -1
  92. package/lib/module/Date/DayName.js.map +1 -1
  93. package/lib/module/Date/DayNames.js +1 -1
  94. package/lib/module/Date/DayNames.js.map +1 -1
  95. package/lib/module/Date/DayRange.js +1 -1
  96. package/lib/module/Date/DayRange.js.map +1 -1
  97. package/lib/module/Date/Month.js +2 -3
  98. package/lib/module/Date/Month.js.map +1 -1
  99. package/lib/module/Date/Swiper.js +1 -1
  100. package/lib/module/Date/Swiper.js.map +1 -1
  101. package/lib/module/Date/Swiper.native.js +0 -1
  102. package/lib/module/Date/Swiper.native.js.map +1 -1
  103. package/lib/module/Date/SwiperUtils.js.map +1 -1
  104. package/lib/module/Date/YearPicker.js +1 -2
  105. package/lib/module/Date/YearPicker.js.map +1 -1
  106. package/lib/module/TextInputMask.js +1 -2
  107. package/lib/module/TextInputMask.js.map +1 -1
  108. package/lib/module/Time/AmPmSwitcher.js +1 -2
  109. package/lib/module/Time/AmPmSwitcher.js.map +1 -1
  110. package/lib/module/Time/AnalogClock.js +0 -1
  111. package/lib/module/Time/AnalogClock.js.map +1 -1
  112. package/lib/module/Time/AnalogClockHours.js +2 -2
  113. package/lib/module/Time/AnalogClockHours.js.map +1 -1
  114. package/lib/module/Time/AnalogClockMinutes.js +2 -2
  115. package/lib/module/Time/AnalogClockMinutes.js.map +1 -1
  116. package/lib/module/Time/AnimatedClockSwitcher.js +1 -1
  117. package/lib/module/Time/AnimatedClockSwitcher.js.map +1 -1
  118. package/lib/module/Time/TimeInput.js +8 -5
  119. package/lib/module/Time/TimeInput.js.map +1 -1
  120. package/lib/module/Time/TimeInputs.js +1 -2
  121. package/lib/module/Time/TimeInputs.js.map +1 -1
  122. package/lib/module/Time/TimePicker.js +3 -5
  123. package/lib/module/Time/TimePicker.js.map +1 -1
  124. package/lib/module/Time/TimePickerModal.js +3 -2
  125. package/lib/module/Time/TimePickerModal.js.map +1 -1
  126. package/lib/typescript/Date/AnimatedCrossView.d.ts +1 -2
  127. package/lib/typescript/Date/AnimatedCrossView.d.ts.map +1 -1
  128. package/lib/typescript/Date/AutoSizer.d.ts +1 -2
  129. package/lib/typescript/Date/AutoSizer.d.ts.map +1 -1
  130. package/lib/typescript/Date/Calendar.d.ts +2 -3
  131. package/lib/typescript/Date/Calendar.d.ts.map +1 -1
  132. package/lib/typescript/Date/CalendarEdit.d.ts +2 -3
  133. package/lib/typescript/Date/CalendarEdit.d.ts.map +1 -1
  134. package/lib/typescript/Date/CalendarHeader.d.ts +2 -3
  135. package/lib/typescript/Date/CalendarHeader.d.ts.map +1 -1
  136. package/lib/typescript/Date/DatePickerInput.d.ts +1 -2
  137. package/lib/typescript/Date/DatePickerInput.d.ts.map +1 -1
  138. package/lib/typescript/Date/DatePickerInputWithoutModal.d.ts +9 -9
  139. package/lib/typescript/Date/DatePickerInputWithoutModal.d.ts.map +1 -1
  140. package/lib/typescript/Date/DatePickerModal.d.ts +2 -3
  141. package/lib/typescript/Date/DatePickerModal.d.ts.map +1 -1
  142. package/lib/typescript/Date/DatePickerModalContent.d.ts +2 -3
  143. package/lib/typescript/Date/DatePickerModalContent.d.ts.map +1 -1
  144. package/lib/typescript/Date/DatePickerModalContentHeader.d.ts +4 -5
  145. package/lib/typescript/Date/DatePickerModalContentHeader.d.ts.map +1 -1
  146. package/lib/typescript/Date/DatePickerModalHeader.d.ts +1 -2
  147. package/lib/typescript/Date/DatePickerModalHeader.d.ts.map +1 -1
  148. package/lib/typescript/Date/DatePickerModalHeaderBackground.d.ts +1 -2
  149. package/lib/typescript/Date/DatePickerModalHeaderBackground.d.ts.map +1 -1
  150. package/lib/typescript/Date/DatePickerModalStatusBar.d.ts +2 -3
  151. package/lib/typescript/Date/DatePickerModalStatusBar.d.ts.map +1 -1
  152. package/lib/typescript/Date/Day.d.ts +4 -5
  153. package/lib/typescript/Date/Day.d.ts.map +1 -1
  154. package/lib/typescript/Date/DayName.d.ts +2 -3
  155. package/lib/typescript/Date/DayName.d.ts.map +1 -1
  156. package/lib/typescript/Date/DayNames.d.ts +2 -3
  157. package/lib/typescript/Date/DayNames.d.ts.map +1 -1
  158. package/lib/typescript/Date/DayRange.d.ts +2 -3
  159. package/lib/typescript/Date/DayRange.d.ts.map +1 -1
  160. package/lib/typescript/Date/Month.d.ts +2 -3
  161. package/lib/typescript/Date/Month.d.ts.map +1 -1
  162. package/lib/typescript/Date/Swiper.d.ts +2 -3
  163. package/lib/typescript/Date/Swiper.d.ts.map +1 -1
  164. package/lib/typescript/Date/Swiper.native.d.ts +2 -3
  165. package/lib/typescript/Date/Swiper.native.d.ts.map +1 -1
  166. package/lib/typescript/Date/SwiperUtils.d.ts.map +1 -1
  167. package/lib/typescript/Date/YearPicker.d.ts +1 -2
  168. package/lib/typescript/Date/YearPicker.d.ts.map +1 -1
  169. package/lib/typescript/TextInputMask.d.ts +7 -7
  170. package/lib/typescript/TextInputMask.d.ts.map +1 -1
  171. package/lib/typescript/Time/AmPmSwitcher.d.ts +1 -2
  172. package/lib/typescript/Time/AmPmSwitcher.d.ts.map +1 -1
  173. package/lib/typescript/Time/AnalogClock.d.ts +2 -3
  174. package/lib/typescript/Time/AnalogClock.d.ts.map +1 -1
  175. package/lib/typescript/Time/AnalogClockHours.d.ts +2 -3
  176. package/lib/typescript/Time/AnalogClockHours.d.ts.map +1 -1
  177. package/lib/typescript/Time/AnalogClockMinutes.d.ts +2 -3
  178. package/lib/typescript/Time/AnalogClockMinutes.d.ts.map +1 -1
  179. package/lib/typescript/Time/AnimatedClockSwitcher.d.ts +2 -2
  180. package/lib/typescript/Time/AnimatedClockSwitcher.d.ts.map +1 -1
  181. package/lib/typescript/Time/TimeInput.d.ts +1 -2
  182. package/lib/typescript/Time/TimeInput.d.ts.map +1 -1
  183. package/lib/typescript/Time/TimeInputs.d.ts +2 -3
  184. package/lib/typescript/Time/TimeInputs.d.ts.map +1 -1
  185. package/lib/typescript/Time/TimePicker.d.ts +2 -3
  186. package/lib/typescript/Time/TimePicker.d.ts.map +1 -1
  187. package/lib/typescript/Time/TimePickerModal.d.ts +2 -3
  188. package/lib/typescript/Time/TimePickerModal.d.ts.map +1 -1
  189. package/package.json +1 -1
  190. package/src/Date/AnimatedCrossView.tsx +0 -1
  191. package/src/Date/AutoSizer.tsx +0 -1
  192. package/src/Date/Calendar.tsx +1 -2
  193. package/src/Date/CalendarEdit.tsx +2 -3
  194. package/src/Date/CalendarHeader.tsx +1 -1
  195. package/src/Date/DatePickerInput.tsx +0 -1
  196. package/src/Date/DatePickerInputWithoutModal.tsx +2 -2
  197. package/src/Date/DatePickerModal.tsx +2 -2
  198. package/src/Date/DatePickerModalContent.tsx +1 -1
  199. package/src/Date/DatePickerModalContentHeader.tsx +2 -2
  200. package/src/Date/DatePickerModalHeader.tsx +0 -1
  201. package/src/Date/DatePickerModalHeaderBackground.tsx +0 -1
  202. package/src/Date/DatePickerModalStatusBar.tsx +1 -1
  203. package/src/Date/Day.tsx +0 -1
  204. package/src/Date/DayName.tsx +1 -1
  205. package/src/Date/DayNames.tsx +1 -1
  206. package/src/Date/DayRange.tsx +1 -1
  207. package/src/Date/Month.tsx +7 -8
  208. package/src/Date/Swiper.native.tsx +0 -1
  209. package/src/Date/Swiper.tsx +2 -2
  210. package/src/Date/SwiperUtils.ts +1 -1
  211. package/src/Date/YearPicker.tsx +1 -2
  212. package/src/TextInputMask.tsx +7 -2
  213. package/src/Time/AmPmSwitcher.tsx +1 -2
  214. package/src/Time/AnalogClock.tsx +0 -1
  215. package/src/Time/AnalogClockHours.tsx +2 -2
  216. package/src/Time/AnalogClockMinutes.tsx +2 -2
  217. package/src/Time/AnimatedClockSwitcher.tsx +1 -1
  218. package/src/Time/TimeInput.tsx +9 -5
  219. package/src/Time/TimeInputs.tsx +2 -3
  220. package/src/Time/TimePicker.tsx +4 -4
  221. package/src/Time/TimePickerModal.tsx +10 -5
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../src/Time/TimePicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAe,MAAM,OAAO,CAAA;AACnC,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EAGnB,MAAM,aAAa,CAAA;AAQpB,KAAK,YAAY,GAAG,CAAC,EACnB,KAAK,EACL,OAAO,EACP,OAAO,GACR,EAAE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,kBAAkB,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,GAAG,CAAA;IAC/C,QAAQ,EAAE,YAAY,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,2CAuFA;;AAmBD,wBAA+B"}
@@ -1,5 +1,4 @@
1
1
  import { PossibleInputTypes } from './timeUtils';
2
- import React from 'react';
3
2
  export declare function TimePickerModal({ visible, onDismiss, onConfirm, hours, minutes, label, uppercase: _uppercase, cancelLabel, confirmLabel, animationType, locale, keyboardIcon, clockIcon, use24HourClock, inputFontSize, defaultInputType, }: {
4
3
  locale?: undefined | string;
5
4
  label?: string;
@@ -20,7 +19,7 @@ export declare function TimePickerModal({ visible, onDismiss, onConfirm, hours,
20
19
  use24HourClock?: boolean;
21
20
  inputFontSize?: number;
22
21
  defaultInputType?: PossibleInputTypes;
23
- }): React.JSX.Element;
24
- declare const _default: React.MemoExoticComponent<typeof TimePickerModal>;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare const _default: import("react").MemoExoticComponent<typeof TimePickerModal>;
25
24
  export default _default;
26
25
  //# sourceMappingURL=TimePickerModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimePickerModal.d.ts","sourceRoot":"","sources":["../../../src/Time/TimePickerModal.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAKL,kBAAkB,EAEnB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAiD,MAAM,OAAO,CAAA;AAIrE,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,SAAS,EACT,SAAS,EACT,KAAK,EACL,OAAO,EACP,KAAqB,EACrB,SAAS,EAAE,UAAU,EACrB,WAAsB,EACtB,YAAmB,EACnB,aAAsB,EACtB,MAAM,EACN,YAAiC,EACjC,SAA2B,EAC3B,cAAc,EACd,aAAa,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B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,SAAS,EAAE,MAAM,GAAG,CAAA;IACpB,SAAS,EAAE,CAAC,eAAe,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,GAAG,CAAA;IACvE,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;IACzC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,kBAAkB,CAAA;CACtC,2CAoKA;;AAwDD,wBAAoC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-paper-dates",
3
- "version": "0.22.38",
3
+ "version": "0.22.40",
4
4
  "description": "Performant Date Picker for React Native Paper",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import { useEffect, useRef } from 'react'
3
2
  import { Animated, StyleSheet, View } from 'react-native'
4
3
  import { useTheme } from 'react-native-paper'
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import { useCallback, useState } from 'react'
3
2
  import { LayoutChangeEvent, View } from 'react-native'
4
3
  import { sharedStyles } from '../shared/styles'
@@ -14,8 +14,7 @@ import { memo, useCallback, useMemo, useState } from 'react'
14
14
  import YearPicker from './YearPicker'
15
15
  import Color from 'color'
16
16
  import { useTheme } from 'react-native-paper'
17
- import { useLatest, lightenBy, darkenBy } from '../shared/utils'
18
- import React from 'react'
17
+ import { darkenBy, lightenBy, useLatest } from '../shared/utils'
19
18
  import { sharedStyles } from '../shared/styles'
20
19
 
21
20
  export type ModeType = 'single' | 'range' | 'multiple'
@@ -1,8 +1,8 @@
1
1
  import {
2
- View,
2
+ Keyboard,
3
3
  StyleSheet,
4
4
  TextInput as TextInputNative,
5
- Keyboard,
5
+ View,
6
6
  } from 'react-native'
7
7
 
8
8
  import type { ModeType, ValidRangeType } from './Calendar'
@@ -10,7 +10,6 @@ import type { LocalState } from './DatePickerModalContent'
10
10
 
11
11
  import DatePickerInputWithoutModal from './DatePickerInputWithoutModal'
12
12
  import { memo, useCallback, useEffect, useRef } from 'react'
13
- import React from 'react'
14
13
  import { sharedStyles } from '../shared/styles'
15
14
 
16
15
  function CalendarEdit({
@@ -4,7 +4,7 @@ import DayNames, { dayNamesHeight } from './DayNames'
4
4
  import type { DisableWeekDaysType } from './dateUtils'
5
5
  import { getTranslation } from '../translations/utils'
6
6
  import { sharedStyles } from '../shared/styles'
7
- import React, { memo } from 'react'
7
+ import { memo } from 'react'
8
8
 
9
9
  const buttonContainerHeight = 56
10
10
  const buttonContainerMarginTop = 4
@@ -5,7 +5,6 @@ import type { DatePickerInputProps } from './DatePickerInput.shared'
5
5
  import DatePickerInputWithoutModal from './DatePickerInputWithoutModal'
6
6
  import { Platform, StyleProp, ViewStyle } from 'react-native'
7
7
  import { forwardRef, useCallback, useState } from 'react'
8
- import React from 'react'
9
8
 
10
9
  function DatePickerInput(
11
10
  {
@@ -1,9 +1,9 @@
1
1
  import TextInputWithMask from '../TextInputMask'
2
2
  import { HelperText, useTheme } from 'react-native-paper'
3
- import { View, StyleSheet } from 'react-native'
3
+ import { StyleSheet, View } from 'react-native'
4
4
  import useDateInput from './inputUtils'
5
5
  import type { DatePickerInputProps } from './DatePickerInput.shared'
6
- import React, { forwardRef, ReactNode } from 'react'
6
+ import { forwardRef, ReactNode } from 'react'
7
7
 
8
8
  function DatePickerInputWithoutModal(
9
9
  {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Modal,
3
+ Platform,
3
4
  StyleSheet,
4
5
  TouchableWithoutFeedback,
5
6
  useWindowDimensions,
6
7
  View,
7
- Platform,
8
8
  } from 'react-native'
9
9
  import { useTheme } from 'react-native-paper'
10
10
  import DatePickerModalContent, {
@@ -12,7 +12,7 @@ import DatePickerModalContent, {
12
12
  DatePickerModalContentRangeProps,
13
13
  DatePickerModalContentSingleProps,
14
14
  } from './DatePickerModalContent'
15
- import React, { memo } from 'react'
15
+ import { memo } from 'react'
16
16
  import { sharedStyles } from '../shared/styles'
17
17
  import { supportedOrientations } from '../shared/utils'
18
18
 
@@ -17,7 +17,7 @@ import CalendarEdit from './CalendarEdit'
17
17
  import DatePickerModalHeaderBackground from './DatePickerModalHeaderBackground'
18
18
  import { useTheme } from 'react-native-paper'
19
19
  import DatePickerModalStatusBar from './DatePickerModalStatusBar'
20
- import React, { memo, useCallback, useEffect, useState } from 'react'
20
+ import { memo, useCallback, useEffect, useState } from 'react'
21
21
 
22
22
  export type LocalState = {
23
23
  startDate: CalendarDate
@@ -1,11 +1,11 @@
1
- import { View, StyleSheet } from 'react-native'
1
+ import { StyleSheet, View } from 'react-native'
2
2
  import { IconButton, MD2Theme, Text, useTheme } from 'react-native-paper'
3
3
  import type { ModeType } from './Calendar'
4
4
  import type { LocalState } from './DatePickerModalContent'
5
5
  import { useHeaderTextColor } from '../shared/utils'
6
6
  import Color from 'color'
7
7
  import { getTranslation } from '../translations/utils'
8
- import React, { useMemo } from 'react'
8
+ import { useMemo } from 'react'
9
9
  import { sharedStyles } from '../shared/styles'
10
10
 
11
11
  export interface HeaderPickProps {
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import { Animated, StyleSheet } from 'react-native'
3
2
  import { Appbar, Button, useTheme } from 'react-native-paper'
4
3
  import { useHeaderTextColor } from '../shared/utils'
@@ -1,4 +1,3 @@
1
- import React from 'react'
2
1
  import { Animated, StyleSheet } from 'react-native'
3
2
  import { useHeaderBackgroundColor } from '../shared/utils'
4
3
  import { useSafeAreaInsets } from 'react-native-safe-area-context'
@@ -1,4 +1,4 @@
1
- import React, { memo } from 'react'
1
+ import { memo } from 'react'
2
2
  import { useSafeAreaInsets } from 'react-native-safe-area-context'
3
3
  import { useHeaderBackgroundColor } from '../shared/utils'
4
4
  import Color from 'color'
package/src/Date/Day.tsx CHANGED
@@ -5,7 +5,6 @@ import { daySize } from './dateUtils'
5
5
 
6
6
  import type { PaperTheme } from '../shared/utils'
7
7
  import { memo, useCallback } from 'react'
8
- import React from 'react'
9
8
 
10
9
  function EmptyDayPure() {
11
10
  return <View style={styles.empty} />
@@ -1,4 +1,4 @@
1
- import React, { memo } from 'react'
1
+ import { memo } from 'react'
2
2
  import { StyleSheet, View } from 'react-native'
3
3
  import { MD2Theme, Text, useTheme } from 'react-native-paper'
4
4
 
@@ -2,7 +2,7 @@ import { StyleSheet, View } from 'react-native'
2
2
  import DayName from './DayName'
3
3
  import { useTheme } from 'react-native-paper'
4
4
  import { DisableWeekDaysType, showWeekDay } from './dateUtils'
5
- import React, { memo, useMemo } from 'react'
5
+ import { memo, useMemo } from 'react'
6
6
 
7
7
  export const dayNamesHeight = 44
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { StyleSheet, View } from 'react-native'
2
2
  import { daySize } from './dateUtils'
3
- import React, { memo } from 'react'
3
+ import { memo } from 'react'
4
4
  import { sharedStyles } from '../shared/styles'
5
5
 
6
6
  function DayRange({
@@ -1,28 +1,28 @@
1
1
  import { StyleSheet, View } from 'react-native'
2
2
  import {
3
+ Icon,
4
+ MD2Theme,
3
5
  Text,
4
- useTheme,
5
6
  TouchableRipple,
6
- MD2Theme,
7
- Icon,
7
+ useTheme,
8
8
  } from 'react-native-paper'
9
9
  import Day, { EmptyDay } from './Day'
10
10
 
11
11
  import {
12
12
  addMonths,
13
13
  areDatesOnSameDay,
14
+ beginOffset,
14
15
  daySize,
15
16
  DisableWeekDaysType,
17
+ estimatedMonthHeight,
16
18
  getDaysInMonth,
17
19
  getFirstDayOfMonth,
18
- getRealIndex,
19
20
  getGridCount,
20
- isDateBetween,
21
+ getRealIndex,
21
22
  gridCounts,
23
+ isDateBetween,
22
24
  showWeekDay,
23
25
  startAtIndex,
24
- beginOffset,
25
- estimatedMonthHeight,
26
26
  useRangeChecker,
27
27
  } from './dateUtils'
28
28
  import { getCalendarHeaderHeight } from './CalendarHeader'
@@ -35,7 +35,6 @@ import type {
35
35
  import { dayNamesHeight } from './DayNames'
36
36
  import { useTextColorOnPrimary } from '../shared/utils'
37
37
  import { memo, useMemo } from 'react'
38
- import React from 'react'
39
38
  import { sharedStyles } from '../shared/styles'
40
39
 
41
40
  interface BaseMonthProps {
@@ -17,7 +17,6 @@ import { SwiperProps, useYearChange } from './SwiperUtils'
17
17
  import { beginOffset, estimatedMonthHeight, totalMonths } from './dateUtils'
18
18
  import AutoSizer from './AutoSizer'
19
19
  import { memo, useCallback, useRef, useState } from 'react'
20
- import React from 'react'
21
20
  import { sharedStyles } from '../shared/styles'
22
21
 
23
22
  function getVisibleArray(
@@ -9,14 +9,14 @@ import { beginOffset, estimatedMonthHeight, totalMonths } from './dateUtils'
9
9
  import { useLatest } from '../shared/utils'
10
10
  import { RenderProps, SwiperProps, useYearChange } from './SwiperUtils'
11
11
  import AutoSizer from './AutoSizer'
12
- import React, {
12
+ import {
13
13
  memo,
14
+ UIEvent,
14
15
  useCallback,
15
16
  useEffect,
16
17
  useLayoutEffect,
17
18
  useRef,
18
19
  useState,
19
- UIEvent,
20
20
  } from 'react'
21
21
  import { sharedStyles } from '../shared/styles'
22
22
 
@@ -1,4 +1,4 @@
1
- import { useEffect, type MutableRefObject } from 'react'
1
+ import { type MutableRefObject, useEffect } from 'react'
2
2
  import { useLatest } from '../shared/utils'
3
3
  import {
4
4
  addMonths,
@@ -1,8 +1,7 @@
1
- import { FlatList, StyleSheet, View, ScrollView } from 'react-native'
1
+ import { FlatList, ScrollView, StyleSheet, View } from 'react-native'
2
2
  import { MD2Theme, Text, TouchableRipple, useTheme } from 'react-native-paper'
3
3
  import { range } from '../shared/utils'
4
4
  import { memo, useEffect, useRef } from 'react'
5
- import React from 'react'
6
5
  import { sharedStyles } from '../shared/styles'
7
6
 
8
7
  const ITEM_HEIGHT = 62
@@ -1,5 +1,10 @@
1
- import React, { ComponentProps, ReactNode, useEffect, useState } from 'react'
2
- import { forwardRef } from 'react'
1
+ import {
2
+ ComponentProps,
3
+ forwardRef,
4
+ ReactNode,
5
+ useEffect,
6
+ useState,
7
+ } from 'react'
3
8
  import { TextInput } from 'react-native-paper'
4
9
 
5
10
  const splitCharacters = ['-', '/', '.', '年', ' ']
@@ -1,10 +1,9 @@
1
- import { View, StyleSheet } from 'react-native'
1
+ import { StyleSheet, View } from 'react-native'
2
2
  import { MD2Theme, Text, TouchableRipple, useTheme } from 'react-native-paper'
3
3
  import { useContext, useMemo } from 'react'
4
4
  import Color from 'color'
5
5
  import { inputTypes, PossibleInputTypes, useSwitchColors } from './timeUtils'
6
6
  import { DisplayModeContext } from '../contexts/DisplayModeContext'
7
- import React from 'react'
8
7
  import { sharedStyles } from '../shared/styles'
9
8
 
10
9
  export default function AmPmSwitcher({
@@ -23,7 +23,6 @@ import AnimatedClockSwitcher from './AnimatedClockSwitcher'
23
23
  import AnalogClockMinutes from './AnalogClockMinutes'
24
24
  import { DisplayModeContext } from '../contexts/DisplayModeContext'
25
25
  import { memo, useCallback, useContext, useRef } from 'react'
26
- import React from 'react'
27
26
 
28
27
  function returnTrue() {
29
28
  return true
@@ -1,8 +1,8 @@
1
- import { View, StyleSheet } from 'react-native'
1
+ import { StyleSheet, View } from 'react-native'
2
2
  import { Text } from 'react-native-paper'
3
3
  import { circleSize } from './timeUtils'
4
4
  import { useTextColorOnPrimary } from '../shared/utils'
5
- import React, { memo } from 'react'
5
+ import { memo } from 'react'
6
6
 
7
7
  function AnalogClockHours({
8
8
  is24Hour,
@@ -1,8 +1,8 @@
1
- import { View, StyleSheet } from 'react-native'
1
+ import { StyleSheet, View } from 'react-native'
2
2
  import { Text } from 'react-native-paper'
3
3
  import { circleSize } from './timeUtils'
4
4
  import { useTextColorOnPrimary } from '../shared/utils'
5
- import React, { memo } from 'react'
5
+ import { memo } from 'react'
6
6
 
7
7
  function AnalogClockMinutes({ minutes }: { minutes: number }) {
8
8
  const range = getMinuteNumbers(circleSize, 12)
@@ -1,6 +1,6 @@
1
1
  import { Animated, StyleSheet, View } from 'react-native'
2
2
  import { clockTypes, PossibleClockTypes } from './timeUtils'
3
- import React, { ReactElement, useEffect, useRef } from 'react'
3
+ import { ReactElement, useEffect, useRef } from 'react'
4
4
  import AnalogClockHours from './AnalogClockHours'
5
5
  import AnalogClockMinutes from './AnalogClockMinutes'
6
6
 
@@ -1,11 +1,11 @@
1
1
  import {
2
- View,
2
+ Platform,
3
+ StyleSheet,
3
4
  TextInput,
4
5
  TextInputProps,
5
- StyleSheet,
6
- Platform,
6
+ View,
7
7
  } from 'react-native'
8
- import { useTheme, TouchableRipple, MD2Theme } from 'react-native-paper'
8
+ import { MD2Theme, TouchableRipple, useTheme } from 'react-native-paper'
9
9
 
10
10
  import Color from 'color'
11
11
  import {
@@ -15,7 +15,6 @@ import {
15
15
  useInputColors,
16
16
  } from './timeUtils'
17
17
  import { forwardRef, useEffect, useState } from 'react'
18
- import React from 'react'
19
18
  import { sharedStyles } from '../shared/styles'
20
19
 
21
20
  interface TimeInputProps
@@ -91,6 +90,7 @@ function TimeInput(
91
90
  ref={ref}
92
91
  textAlign="center"
93
92
  style={[
93
+ styles.input,
94
94
  // eslint-disable-next-line react-native/no-inline-styles
95
95
  {
96
96
  color,
@@ -104,6 +104,7 @@ function TimeInput(
104
104
  : undefined,
105
105
  paddingTop: Platform.OS === 'android' ? 10 : undefined,
106
106
  paddingBottom: Platform.OS === 'android' ? 0 : undefined,
107
+ textAlign: 'center',
107
108
  },
108
109
  ]}
109
110
  maxFontSizeMultiplier={1.5}
@@ -146,6 +147,9 @@ const styles = StyleSheet.create({
146
147
  justifyContent: 'center',
147
148
  width: 96,
148
149
  },
150
+ input: {
151
+ width: 96,
152
+ },
149
153
  })
150
154
 
151
155
  export default forwardRef(TimeInput)
@@ -1,8 +1,8 @@
1
1
  import {
2
- View,
3
2
  StyleSheet,
4
- useWindowDimensions,
5
3
  TextInput as TextInputNative,
4
+ useWindowDimensions,
5
+ View,
6
6
  } from 'react-native'
7
7
  import { MD2Theme, Text, useTheme } from 'react-native-paper'
8
8
 
@@ -19,7 +19,6 @@ import { useLatest } from '../shared/utils'
19
19
  import Color from 'color'
20
20
  import { getTranslation } from '../translations/utils'
21
21
  import { memo, useCallback, useRef } from 'react'
22
- import React from 'react'
23
22
  import { sharedStyles } from '../shared/styles'
24
23
 
25
24
  function TimeInputs({
@@ -1,6 +1,7 @@
1
- import { View, StyleSheet, useWindowDimensions } from 'react-native'
2
- import React, { memo } from 'react'
1
+ import { StyleSheet, useWindowDimensions, View } from 'react-native'
2
+
3
3
  import {
4
+ circleSize,
4
5
  inputTypes,
5
6
  PossibleClockTypes,
6
7
  PossibleInputTypes,
@@ -9,10 +10,9 @@ import {
9
10
  } from './timeUtils'
10
11
 
11
12
  import AnalogClock from './AnalogClock'
12
- import { circleSize } from './timeUtils'
13
13
  import TimeInputs from './TimeInputs'
14
14
  import { DisplayModeContext } from '../contexts/DisplayModeContext'
15
- import { useCallback, useEffect, useMemo, useState } from 'react'
15
+ import { memo, useCallback, useEffect, useMemo, useState } from 'react'
16
16
 
17
17
  type onChangeFunc = ({
18
18
  hours,
@@ -1,12 +1,12 @@
1
1
  import {
2
+ Animated,
3
+ Keyboard,
4
+ KeyboardAvoidingView,
2
5
  Modal,
3
6
  StyleSheet,
4
- View,
5
7
  Text,
6
- Animated,
7
8
  TouchableWithoutFeedback,
8
- KeyboardAvoidingView,
9
- Keyboard,
9
+ View,
10
10
  } from 'react-native'
11
11
 
12
12
  import {
@@ -26,7 +26,7 @@ import {
26
26
  PossibleInputTypes,
27
27
  reverseInputTypes,
28
28
  } from './timeUtils'
29
- import React, { memo, useCallback, useEffect, useState } from 'react'
29
+ import { memo, useCallback, useEffect, useState } from 'react'
30
30
  import { sharedStyles } from '../shared/styles'
31
31
  import { supportedOrientations } from '../shared/utils'
32
32
 
@@ -192,6 +192,11 @@ export function TimePickerModal({
192
192
  </View>
193
193
  <View style={styles.bottom}>
194
194
  <IconButton
195
+ iconColor={
196
+ theme?.isV3
197
+ ? theme.colors.onBackground
198
+ : (theme as any as MD2Theme).colors.text
199
+ }
195
200
  icon={getTimeInputTypeIcon(inputType, {
196
201
  keyboard: keyboardIcon,
197
202
  picker: clockIcon,