rn-grid-date-time-picker 1.0.0 → 1.1.0

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 (353) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +100 -638
  3. package/lib/commonjs/adapters/utcMidnight.js +15 -6
  4. package/lib/commonjs/adapters/utcMidnight.js.map +1 -1
  5. package/lib/commonjs/components/DateTimePicker.js +444 -82
  6. package/lib/commonjs/components/DateTimePicker.js.map +1 -1
  7. package/lib/commonjs/components/calendar/Calendar.js +21 -7
  8. package/lib/commonjs/components/calendar/Calendar.js.map +1 -1
  9. package/lib/commonjs/components/calendar/CalendarHeader.js +43 -5
  10. package/lib/commonjs/components/calendar/CalendarHeader.js.map +1 -1
  11. package/lib/commonjs/components/calendar/CalendarSwitch.js +150 -0
  12. package/lib/commonjs/components/calendar/CalendarSwitch.js.map +1 -0
  13. package/lib/commonjs/components/calendar/DayCell.js +8 -3
  14. package/lib/commonjs/components/calendar/DayCell.js.map +1 -1
  15. package/lib/commonjs/components/calendar/DayGrid.js +9 -1
  16. package/lib/commonjs/components/calendar/DayGrid.js.map +1 -1
  17. package/lib/commonjs/components/calendar/PeriodGrid.js +3 -1
  18. package/lib/commonjs/components/calendar/PeriodGrid.js.map +1 -1
  19. package/lib/commonjs/components/calendar/calendarStyles.js +1 -1
  20. package/lib/commonjs/components/calendar/calendarStyles.js.map +1 -1
  21. package/lib/commonjs/components/calendar/localeNames.js +46 -24
  22. package/lib/commonjs/components/calendar/localeNames.js.map +1 -1
  23. package/lib/commonjs/components/calendar/selection.js +9 -1
  24. package/lib/commonjs/components/calendar/selection.js.map +1 -1
  25. package/lib/commonjs/components/container/DefaultSheet.js +42 -11
  26. package/lib/commonjs/components/container/DefaultSheet.js.map +1 -1
  27. package/lib/commonjs/components/container/PickerContainer.js +4 -0
  28. package/lib/commonjs/components/container/PickerContainer.js.map +1 -1
  29. package/lib/commonjs/components/container/PickerLayout.js +1 -1
  30. package/lib/commonjs/components/container/PickerLayout.js.map +1 -1
  31. package/lib/commonjs/components/container/containerStyles.js +12 -4
  32. package/lib/commonjs/components/container/containerStyles.js.map +1 -1
  33. package/lib/commonjs/components/field/RangeFields.js +3 -1
  34. package/lib/commonjs/components/field/RangeFields.js.map +1 -1
  35. package/lib/commonjs/components/field/SegmentedInput.js +7 -2
  36. package/lib/commonjs/components/field/SegmentedInput.js.map +1 -1
  37. package/lib/commonjs/components/field/ValueField.js +8 -4
  38. package/lib/commonjs/components/field/ValueField.js.map +1 -1
  39. package/lib/commonjs/components/field/fieldText.js +19 -12
  40. package/lib/commonjs/components/field/fieldText.js.map +1 -1
  41. package/lib/commonjs/components/hooks/useBottomInset.js +32 -0
  42. package/lib/commonjs/components/hooks/useBottomInset.js.map +1 -0
  43. package/lib/commonjs/components/hooks/useKeyboardFold.js +36 -13
  44. package/lib/commonjs/components/hooks/useKeyboardFold.js.map +1 -1
  45. package/lib/commonjs/components/hooks/useOpenPicker.js +39 -17
  46. package/lib/commonjs/components/hooks/useOpenPicker.js.map +1 -1
  47. package/lib/commonjs/components/hooks/useTypedSegments.js +6 -2
  48. package/lib/commonjs/components/hooks/useTypedSegments.js.map +1 -1
  49. package/lib/commonjs/components/theme/defaultStrings.js +7 -1
  50. package/lib/commonjs/components/theme/defaultStrings.js.map +1 -1
  51. package/lib/commonjs/components/theme/numerals.js +16 -0
  52. package/lib/commonjs/components/theme/numerals.js.map +1 -0
  53. package/lib/commonjs/components/theme/styleKeys.js +4 -1
  54. package/lib/commonjs/components/theme/styleKeys.js.map +1 -1
  55. package/lib/commonjs/components/theme/tokens.js +4 -0
  56. package/lib/commonjs/components/theme/tokens.js.map +1 -1
  57. package/lib/commonjs/components/time/TimeRow.js +10 -2
  58. package/lib/commonjs/components/time/TimeRow.js.map +1 -1
  59. package/lib/commonjs/components/time/TypedTime.js +3 -1
  60. package/lib/commonjs/components/time/TypedTime.js.map +1 -1
  61. package/lib/commonjs/components/time/Wheel.js +20 -3
  62. package/lib/commonjs/components/time/Wheel.js.map +1 -1
  63. package/lib/commonjs/components/types.js +10 -0
  64. package/lib/commonjs/components/types.js.map +1 -1
  65. package/lib/commonjs/core/calendarSystem.js +85 -22
  66. package/lib/commonjs/core/calendarSystem.js.map +1 -1
  67. package/lib/commonjs/core/digits.js +25 -0
  68. package/lib/commonjs/core/digits.js.map +1 -0
  69. package/lib/commonjs/core/draft.js +31 -10
  70. package/lib/commonjs/core/draft.js.map +1 -1
  71. package/lib/commonjs/core/locale.js +20 -4
  72. package/lib/commonjs/core/locale.js.map +1 -1
  73. package/lib/commonjs/core/numerals.js +46 -0
  74. package/lib/commonjs/core/numerals.js.map +1 -0
  75. package/lib/commonjs/core/segmentEditor.js +9 -0
  76. package/lib/commonjs/core/segmentEditor.js.map +1 -1
  77. package/lib/commonjs/core/segments.js +2 -11
  78. package/lib/commonjs/core/segments.js.map +1 -1
  79. package/lib/commonjs/core/selectionRules.js +2 -1
  80. package/lib/commonjs/core/selectionRules.js.map +1 -1
  81. package/lib/commonjs/core/timeEntry.js +7 -91
  82. package/lib/commonjs/core/timeEntry.js.map +1 -1
  83. package/lib/commonjs/icons/index.js +5 -1
  84. package/lib/commonjs/icons/index.js.map +1 -1
  85. package/lib/commonjs/index.js +14 -0
  86. package/lib/commonjs/index.js.map +1 -1
  87. package/lib/module/adapters/utcMidnight.js +14 -5
  88. package/lib/module/adapters/utcMidnight.js.map +1 -1
  89. package/lib/module/components/DateTimePicker.js +450 -88
  90. package/lib/module/components/DateTimePicker.js.map +1 -1
  91. package/lib/module/components/calendar/Calendar.js +25 -11
  92. package/lib/module/components/calendar/Calendar.js.map +1 -1
  93. package/lib/module/components/calendar/CalendarHeader.js +43 -5
  94. package/lib/module/components/calendar/CalendarHeader.js.map +1 -1
  95. package/lib/module/components/calendar/CalendarSwitch.js +145 -0
  96. package/lib/module/components/calendar/CalendarSwitch.js.map +1 -0
  97. package/lib/module/components/calendar/DayCell.js +8 -3
  98. package/lib/module/components/calendar/DayCell.js.map +1 -1
  99. package/lib/module/components/calendar/DayGrid.js +9 -1
  100. package/lib/module/components/calendar/DayGrid.js.map +1 -1
  101. package/lib/module/components/calendar/PeriodGrid.js +3 -1
  102. package/lib/module/components/calendar/PeriodGrid.js.map +1 -1
  103. package/lib/module/components/calendar/calendarStyles.js +1 -1
  104. package/lib/module/components/calendar/calendarStyles.js.map +1 -1
  105. package/lib/module/components/calendar/localeNames.js +46 -24
  106. package/lib/module/components/calendar/localeNames.js.map +1 -1
  107. package/lib/module/components/calendar/selection.js +7 -0
  108. package/lib/module/components/calendar/selection.js.map +1 -1
  109. package/lib/module/components/container/DefaultSheet.js +42 -12
  110. package/lib/module/components/container/DefaultSheet.js.map +1 -1
  111. package/lib/module/components/container/PickerContainer.js +4 -0
  112. package/lib/module/components/container/PickerContainer.js.map +1 -1
  113. package/lib/module/components/container/PickerLayout.js +1 -1
  114. package/lib/module/components/container/PickerLayout.js.map +1 -1
  115. package/lib/module/components/container/containerStyles.js +11 -3
  116. package/lib/module/components/container/containerStyles.js.map +1 -1
  117. package/lib/module/components/field/RangeFields.js +3 -1
  118. package/lib/module/components/field/RangeFields.js.map +1 -1
  119. package/lib/module/components/field/SegmentedInput.js +7 -2
  120. package/lib/module/components/field/SegmentedInput.js.map +1 -1
  121. package/lib/module/components/field/ValueField.js +8 -4
  122. package/lib/module/components/field/ValueField.js.map +1 -1
  123. package/lib/module/components/field/fieldText.js +20 -11
  124. package/lib/module/components/field/fieldText.js.map +1 -1
  125. package/lib/module/components/hooks/useBottomInset.js +27 -0
  126. package/lib/module/components/hooks/useBottomInset.js.map +1 -0
  127. package/lib/module/components/hooks/useKeyboardFold.js +33 -12
  128. package/lib/module/components/hooks/useKeyboardFold.js.map +1 -1
  129. package/lib/module/components/hooks/useOpenPicker.js +39 -17
  130. package/lib/module/components/hooks/useOpenPicker.js.map +1 -1
  131. package/lib/module/components/hooks/useTypedSegments.js +6 -2
  132. package/lib/module/components/hooks/useTypedSegments.js.map +1 -1
  133. package/lib/module/components/theme/defaultStrings.js +7 -1
  134. package/lib/module/components/theme/defaultStrings.js.map +1 -1
  135. package/lib/module/components/theme/numerals.js +12 -0
  136. package/lib/module/components/theme/numerals.js.map +1 -0
  137. package/lib/module/components/theme/styleKeys.js +4 -1
  138. package/lib/module/components/theme/styleKeys.js.map +1 -1
  139. package/lib/module/components/theme/tokens.js +4 -0
  140. package/lib/module/components/theme/tokens.js.map +1 -1
  141. package/lib/module/components/time/TimeRow.js +11 -3
  142. package/lib/module/components/time/TimeRow.js.map +1 -1
  143. package/lib/module/components/time/TypedTime.js +3 -1
  144. package/lib/module/components/time/TypedTime.js.map +1 -1
  145. package/lib/module/components/time/Wheel.js +18 -2
  146. package/lib/module/components/time/Wheel.js.map +1 -1
  147. package/lib/module/components/types.js +10 -0
  148. package/lib/module/components/types.js.map +1 -1
  149. package/lib/module/core/calendarSystem.js +81 -19
  150. package/lib/module/core/calendarSystem.js.map +1 -1
  151. package/lib/module/core/digits.js +20 -0
  152. package/lib/module/core/digits.js.map +1 -0
  153. package/lib/module/core/draft.js +29 -9
  154. package/lib/module/core/draft.js.map +1 -1
  155. package/lib/module/core/locale.js +18 -3
  156. package/lib/module/core/locale.js.map +1 -1
  157. package/lib/module/core/numerals.js +39 -0
  158. package/lib/module/core/numerals.js.map +1 -0
  159. package/lib/module/core/segmentEditor.js +9 -0
  160. package/lib/module/core/segmentEditor.js.map +1 -1
  161. package/lib/module/core/segments.js +0 -8
  162. package/lib/module/core/segments.js.map +1 -1
  163. package/lib/module/core/selectionRules.js +2 -1
  164. package/lib/module/core/selectionRules.js.map +1 -1
  165. package/lib/module/core/timeEntry.js +7 -89
  166. package/lib/module/core/timeEntry.js.map +1 -1
  167. package/lib/module/icons/index.js +5 -1
  168. package/lib/module/icons/index.js.map +1 -1
  169. package/lib/module/index.js +2 -0
  170. package/lib/module/index.js.map +1 -1
  171. package/lib/typescript/commonjs/src/adapters/utcMidnight.d.ts.map +1 -1
  172. package/lib/typescript/commonjs/src/components/DateTimePicker.d.ts.map +1 -1
  173. package/lib/typescript/commonjs/src/components/calendar/Calendar.d.ts +8 -4
  174. package/lib/typescript/commonjs/src/components/calendar/Calendar.d.ts.map +1 -1
  175. package/lib/typescript/commonjs/src/components/calendar/CalendarHeader.d.ts.map +1 -1
  176. package/lib/typescript/commonjs/src/components/calendar/CalendarSwitch.d.ts +26 -0
  177. package/lib/typescript/commonjs/src/components/calendar/CalendarSwitch.d.ts.map +1 -0
  178. package/lib/typescript/commonjs/src/components/calendar/DayCell.d.ts +1 -1
  179. package/lib/typescript/commonjs/src/components/calendar/DayCell.d.ts.map +1 -1
  180. package/lib/typescript/commonjs/src/components/calendar/DayGrid.d.ts +2 -0
  181. package/lib/typescript/commonjs/src/components/calendar/DayGrid.d.ts.map +1 -1
  182. package/lib/typescript/commonjs/src/components/calendar/PeriodGrid.d.ts.map +1 -1
  183. package/lib/typescript/commonjs/src/components/calendar/localeNames.d.ts +8 -3
  184. package/lib/typescript/commonjs/src/components/calendar/localeNames.d.ts.map +1 -1
  185. package/lib/typescript/commonjs/src/components/calendar/selection.d.ts +2 -0
  186. package/lib/typescript/commonjs/src/components/calendar/selection.d.ts.map +1 -1
  187. package/lib/typescript/commonjs/src/components/container/DefaultSheet.d.ts +10 -2
  188. package/lib/typescript/commonjs/src/components/container/DefaultSheet.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/src/components/container/PickerContainer.d.ts.map +1 -1
  190. package/lib/typescript/commonjs/src/components/container/containerStyles.d.ts +6 -0
  191. package/lib/typescript/commonjs/src/components/container/containerStyles.d.ts.map +1 -1
  192. package/lib/typescript/commonjs/src/components/field/RangeFields.d.ts +3 -0
  193. package/lib/typescript/commonjs/src/components/field/RangeFields.d.ts.map +1 -1
  194. package/lib/typescript/commonjs/src/components/field/SegmentedInput.d.ts.map +1 -1
  195. package/lib/typescript/commonjs/src/components/field/ValueField.d.ts +3 -0
  196. package/lib/typescript/commonjs/src/components/field/ValueField.d.ts.map +1 -1
  197. package/lib/typescript/commonjs/src/components/field/fieldText.d.ts +9 -5
  198. package/lib/typescript/commonjs/src/components/field/fieldText.d.ts.map +1 -1
  199. package/lib/typescript/commonjs/src/components/hooks/useBottomInset.d.ts +8 -0
  200. package/lib/typescript/commonjs/src/components/hooks/useBottomInset.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/src/components/hooks/useKeyboardFold.d.ts +10 -2
  202. package/lib/typescript/commonjs/src/components/hooks/useKeyboardFold.d.ts.map +1 -1
  203. package/lib/typescript/commonjs/src/components/hooks/useOpenPicker.d.ts +2 -1
  204. package/lib/typescript/commonjs/src/components/hooks/useOpenPicker.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/src/components/hooks/useTypedSegments.d.ts +3 -2
  206. package/lib/typescript/commonjs/src/components/hooks/useTypedSegments.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/src/components/theme/defaultStrings.d.ts +11 -2
  208. package/lib/typescript/commonjs/src/components/theme/defaultStrings.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/src/components/theme/numerals.d.ts +7 -0
  210. package/lib/typescript/commonjs/src/components/theme/numerals.d.ts.map +1 -0
  211. package/lib/typescript/commonjs/src/components/theme/styleKeys.d.ts +1 -1
  212. package/lib/typescript/commonjs/src/components/theme/styleKeys.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/src/components/theme/tokens.d.ts +3 -1
  214. package/lib/typescript/commonjs/src/components/theme/tokens.d.ts.map +1 -1
  215. package/lib/typescript/commonjs/src/components/time/TimeRow.d.ts.map +1 -1
  216. package/lib/typescript/commonjs/src/components/time/TypedTime.d.ts.map +1 -1
  217. package/lib/typescript/commonjs/src/components/time/Wheel.d.ts +5 -0
  218. package/lib/typescript/commonjs/src/components/time/Wheel.d.ts.map +1 -1
  219. package/lib/typescript/commonjs/src/components/types.d.ts +77 -4
  220. package/lib/typescript/commonjs/src/components/types.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/src/core/calendarSystem.d.ts +10 -5
  222. package/lib/typescript/commonjs/src/core/calendarSystem.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/src/core/digits.d.ts +3 -0
  224. package/lib/typescript/commonjs/src/core/digits.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/src/core/draft.d.ts +12 -1
  226. package/lib/typescript/commonjs/src/core/draft.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/src/core/locale.d.ts +6 -0
  228. package/lib/typescript/commonjs/src/core/locale.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/src/core/numerals.d.ts +15 -0
  230. package/lib/typescript/commonjs/src/core/numerals.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/src/core/segmentEditor.d.ts.map +1 -1
  232. package/lib/typescript/commonjs/src/core/segments.d.ts +0 -2
  233. package/lib/typescript/commonjs/src/core/segments.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/src/core/selectionRules.d.ts +3 -2
  235. package/lib/typescript/commonjs/src/core/selectionRules.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/src/core/timeEntry.d.ts +4 -24
  237. package/lib/typescript/commonjs/src/core/timeEntry.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/src/icons/index.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/src/index.d.ts +7 -3
  240. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  241. package/lib/typescript/module/src/adapters/utcMidnight.d.ts.map +1 -1
  242. package/lib/typescript/module/src/components/DateTimePicker.d.ts.map +1 -1
  243. package/lib/typescript/module/src/components/calendar/Calendar.d.ts +8 -4
  244. package/lib/typescript/module/src/components/calendar/Calendar.d.ts.map +1 -1
  245. package/lib/typescript/module/src/components/calendar/CalendarHeader.d.ts.map +1 -1
  246. package/lib/typescript/module/src/components/calendar/CalendarSwitch.d.ts +26 -0
  247. package/lib/typescript/module/src/components/calendar/CalendarSwitch.d.ts.map +1 -0
  248. package/lib/typescript/module/src/components/calendar/DayCell.d.ts +1 -1
  249. package/lib/typescript/module/src/components/calendar/DayCell.d.ts.map +1 -1
  250. package/lib/typescript/module/src/components/calendar/DayGrid.d.ts +2 -0
  251. package/lib/typescript/module/src/components/calendar/DayGrid.d.ts.map +1 -1
  252. package/lib/typescript/module/src/components/calendar/PeriodGrid.d.ts.map +1 -1
  253. package/lib/typescript/module/src/components/calendar/localeNames.d.ts +8 -3
  254. package/lib/typescript/module/src/components/calendar/localeNames.d.ts.map +1 -1
  255. package/lib/typescript/module/src/components/calendar/selection.d.ts +2 -0
  256. package/lib/typescript/module/src/components/calendar/selection.d.ts.map +1 -1
  257. package/lib/typescript/module/src/components/container/DefaultSheet.d.ts +10 -2
  258. package/lib/typescript/module/src/components/container/DefaultSheet.d.ts.map +1 -1
  259. package/lib/typescript/module/src/components/container/PickerContainer.d.ts.map +1 -1
  260. package/lib/typescript/module/src/components/container/containerStyles.d.ts +6 -0
  261. package/lib/typescript/module/src/components/container/containerStyles.d.ts.map +1 -1
  262. package/lib/typescript/module/src/components/field/RangeFields.d.ts +3 -0
  263. package/lib/typescript/module/src/components/field/RangeFields.d.ts.map +1 -1
  264. package/lib/typescript/module/src/components/field/SegmentedInput.d.ts.map +1 -1
  265. package/lib/typescript/module/src/components/field/ValueField.d.ts +3 -0
  266. package/lib/typescript/module/src/components/field/ValueField.d.ts.map +1 -1
  267. package/lib/typescript/module/src/components/field/fieldText.d.ts +9 -5
  268. package/lib/typescript/module/src/components/field/fieldText.d.ts.map +1 -1
  269. package/lib/typescript/module/src/components/hooks/useBottomInset.d.ts +8 -0
  270. package/lib/typescript/module/src/components/hooks/useBottomInset.d.ts.map +1 -0
  271. package/lib/typescript/module/src/components/hooks/useKeyboardFold.d.ts +10 -2
  272. package/lib/typescript/module/src/components/hooks/useKeyboardFold.d.ts.map +1 -1
  273. package/lib/typescript/module/src/components/hooks/useOpenPicker.d.ts +2 -1
  274. package/lib/typescript/module/src/components/hooks/useOpenPicker.d.ts.map +1 -1
  275. package/lib/typescript/module/src/components/hooks/useTypedSegments.d.ts +3 -2
  276. package/lib/typescript/module/src/components/hooks/useTypedSegments.d.ts.map +1 -1
  277. package/lib/typescript/module/src/components/theme/defaultStrings.d.ts +11 -2
  278. package/lib/typescript/module/src/components/theme/defaultStrings.d.ts.map +1 -1
  279. package/lib/typescript/module/src/components/theme/numerals.d.ts +7 -0
  280. package/lib/typescript/module/src/components/theme/numerals.d.ts.map +1 -0
  281. package/lib/typescript/module/src/components/theme/styleKeys.d.ts +1 -1
  282. package/lib/typescript/module/src/components/theme/styleKeys.d.ts.map +1 -1
  283. package/lib/typescript/module/src/components/theme/tokens.d.ts +3 -1
  284. package/lib/typescript/module/src/components/theme/tokens.d.ts.map +1 -1
  285. package/lib/typescript/module/src/components/time/TimeRow.d.ts.map +1 -1
  286. package/lib/typescript/module/src/components/time/TypedTime.d.ts.map +1 -1
  287. package/lib/typescript/module/src/components/time/Wheel.d.ts +5 -0
  288. package/lib/typescript/module/src/components/time/Wheel.d.ts.map +1 -1
  289. package/lib/typescript/module/src/components/types.d.ts +77 -4
  290. package/lib/typescript/module/src/components/types.d.ts.map +1 -1
  291. package/lib/typescript/module/src/core/calendarSystem.d.ts +10 -5
  292. package/lib/typescript/module/src/core/calendarSystem.d.ts.map +1 -1
  293. package/lib/typescript/module/src/core/digits.d.ts +3 -0
  294. package/lib/typescript/module/src/core/digits.d.ts.map +1 -0
  295. package/lib/typescript/module/src/core/draft.d.ts +12 -1
  296. package/lib/typescript/module/src/core/draft.d.ts.map +1 -1
  297. package/lib/typescript/module/src/core/locale.d.ts +6 -0
  298. package/lib/typescript/module/src/core/locale.d.ts.map +1 -1
  299. package/lib/typescript/module/src/core/numerals.d.ts +15 -0
  300. package/lib/typescript/module/src/core/numerals.d.ts.map +1 -0
  301. package/lib/typescript/module/src/core/segmentEditor.d.ts.map +1 -1
  302. package/lib/typescript/module/src/core/segments.d.ts +0 -2
  303. package/lib/typescript/module/src/core/segments.d.ts.map +1 -1
  304. package/lib/typescript/module/src/core/selectionRules.d.ts +3 -2
  305. package/lib/typescript/module/src/core/selectionRules.d.ts.map +1 -1
  306. package/lib/typescript/module/src/core/timeEntry.d.ts +4 -24
  307. package/lib/typescript/module/src/core/timeEntry.d.ts.map +1 -1
  308. package/lib/typescript/module/src/icons/index.d.ts.map +1 -1
  309. package/lib/typescript/module/src/index.d.ts +7 -3
  310. package/lib/typescript/module/src/index.d.ts.map +1 -1
  311. package/package.json +22 -7
  312. package/src/adapters/utcMidnight.ts +14 -5
  313. package/src/components/DateTimePicker.tsx +556 -102
  314. package/src/components/calendar/Calendar.tsx +54 -16
  315. package/src/components/calendar/CalendarHeader.tsx +38 -7
  316. package/src/components/calendar/CalendarSwitch.tsx +170 -0
  317. package/src/components/calendar/DayCell.tsx +16 -4
  318. package/src/components/calendar/DayGrid.tsx +13 -1
  319. package/src/components/calendar/PeriodGrid.tsx +3 -1
  320. package/src/components/calendar/calendarStyles.ts +1 -1
  321. package/src/components/calendar/localeNames.ts +52 -22
  322. package/src/components/calendar/selection.ts +8 -0
  323. package/src/components/container/DefaultSheet.tsx +60 -14
  324. package/src/components/container/PickerContainer.tsx +4 -0
  325. package/src/components/container/PickerLayout.tsx +1 -1
  326. package/src/components/container/containerStyles.ts +12 -3
  327. package/src/components/field/RangeFields.tsx +8 -2
  328. package/src/components/field/SegmentedInput.tsx +7 -2
  329. package/src/components/field/ValueField.tsx +12 -4
  330. package/src/components/field/fieldText.ts +45 -13
  331. package/src/components/hooks/useBottomInset.ts +33 -0
  332. package/src/components/hooks/useKeyboardFold.ts +41 -13
  333. package/src/components/hooks/useOpenPicker.ts +41 -18
  334. package/src/components/hooks/useTypedSegments.ts +7 -3
  335. package/src/components/theme/defaultStrings.ts +18 -3
  336. package/src/components/theme/numerals.ts +11 -0
  337. package/src/components/theme/styleKeys.ts +13 -1
  338. package/src/components/theme/tokens.ts +5 -1
  339. package/src/components/time/TimeRow.tsx +23 -3
  340. package/src/components/time/TypedTime.tsx +3 -1
  341. package/src/components/time/Wheel.tsx +19 -5
  342. package/src/components/types.ts +79 -4
  343. package/src/core/calendarSystem.ts +103 -21
  344. package/src/core/digits.ts +21 -0
  345. package/src/core/draft.ts +41 -13
  346. package/src/core/locale.ts +20 -3
  347. package/src/core/numerals.ts +35 -0
  348. package/src/core/segmentEditor.ts +13 -0
  349. package/src/core/segments.ts +0 -8
  350. package/src/core/selectionRules.ts +3 -2
  351. package/src/core/timeEntry.ts +6 -96
  352. package/src/icons/index.tsx +3 -1
  353. package/src/index.tsx +12 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,66 @@
2
2
 
3
3
  All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses [Semantic Versioning](https://semver.org/).
4
4
 
5
+ ## [1.1.0] - 2026-10-30
6
+
7
+ 1.1.0 reworks the Hijri calendar (Gregorian / Hijri tabs, a calendar switch, Arabic by default) and fixes issues found in real-device testing. It changes some 1.0.0 behaviour, listed below: most apps need no changes, but check this list if you use the Hijri or dual calendar, full `PickerStrings` / `ThemeTokens` objects, or tests that match `onChange` calls exactly.
8
+
9
+ ### Changes from 1.0.0 to check
10
+
11
+ - **`calendarSystem="dual"`** shows Gregorian and Hijri as two tabs, one calendar at a time; it no longer writes the Hijri day under each Gregorian day. `styles.daySubLabel` is no longer drawn, and `renderDay` gets `subLabel: null`. Use `dualDefaultTab` to choose the tab it opens on. A date shows selected only in the tab it was picked in, and a tap in the other tab starts the selection over.
12
+ - **A folded calendar stays mounted but hidden** while the keyboard is up, so it comes back on the month it showed. A test that checks `dp-calendar` is gone while folded should check that it's hidden instead.
13
+ - **`calendarSystem="hijri"` is written in Arabic** (month and weekday names, Arabic digits), whatever the app's `locale`, and **the field shows the Hijri date** (e.g. "١٥ جمادى الأولى ١٤٤٨ هـ") instead of the Gregorian date in `dateFormat`. `hijriLocale={locale}` and `numerals="latin"` bring back 1.0.0's language and digits; the field still writes the date in Hijri. Values passed to `onChange` stay Gregorian.
14
+ - **`onChange` gets a second argument**, `{ calendarSystem }`, when a Hijri calendar can show. Tests asserting `toHaveBeenCalledWith(value)` need `expect.anything()` added.
15
+ - **Stored values must start with a full `YYYY-MM-DD` day.** Strings such as `'2026-10'`, `'2026'` or `'10:30'` now read as empty instead of being guessed, and so do a leading space, a lowercase `t` and six-digit years (`+002026-…`).
16
+ - **Days outside `yearRange` are greyed**, like days outside `minDate` / `maxDate`.
17
+ - **Outside days** (from the months before and after) use the new `outsideText` token, which follows `mutedText`, instead of `placeholder`.
18
+ - **The built-in sheet's padding** is 8 at the bottom (was 24) and 24 above the title (was 8), plus the bottom safe-area inset, which the sheet now adds itself (see Added). If you added `insets.bottom` to `styles.sheet.paddingBottom` yourself, that still wins; you can drop it.
19
+ - **From / To ranges:** a tap on a full range starts a new range (or moves the nearer end with `reselect: 'moveNearestEnd'`), instead of replacing To.
20
+ - **`strings.errorRangeOrder`** now defaults to "The end date must be greater than the start date".
21
+
22
+ ### Added
23
+
24
+ - `sheet.bottomInset`: the built-in sheet keeps the bottom safe-area inset (home indicator, Android's navigation bar) free below Confirm. By default it's read from `react-native-safe-area-context` when the app has a `SafeAreaProvider` (an optional peer dependency).
25
+ - `calendarSwitch`: a Gregorian / Hijri / Dual switch above the calendar, with `onCalendarSystemChange`, `renderCalendarSwitch` and style keys for each part.
26
+ - `dualDefaultTab`, `hijriLocale` and `numerals` (`'latin'`, `'arabic'` or `'locale'` digits; values stay 0–9).
27
+ - `info.calendarSystem` in `onChange`: the calendar a date was picked in.
28
+ - `hideCalendarOnKeyboard` (on by default, as the calendar folded in 1.0.0; `false` keeps it in view) and `sheet.keyboardMaxHeight`.
29
+ - `strings.a11yClose` for the sheet backdrop's screen-reader label, which was always English.
30
+ - `strings.dateTimeSeparator` (default `' '`): what goes between the date and the time in the field text and its placeholder.
31
+ - `hijriDateText` and `arabicDigits`, the helpers the field uses to write a Hijri date and Arabic digits, so an app's own text (filter chips, summaries) matches the field.
32
+ - New optional keys: `ThemeTokens.outsideText` and the `PickerStrings` keys `calendarGregorian`, `calendarHijri`, `calendarDual`, `a11yCalendarSystem` and `a11yClose`. A full 1.0.0 `ThemeTokens` or `PickerStrings` object still compiles.
33
+ - Exported types: `ChangeInfo`, `CalendarSwitchRenderProps`, `CalendarSystem`, `Numerals`, `RangeRole`, `StyleKey`, `PickerStyleValue`.
34
+
35
+ ### Changed
36
+
37
+ - A range end picked on the start's day starts an hour after the start (within the day's `timeBounds`), so a same-day date-time range isn't out of order before the user touches the time.
38
+ - With `commitMode="instant"`, each value is saved once, and typing in the sheet's field saves when focus leaves it or its last box fills.
39
+ - A controlled `visible` waits for the keyboard to close before opening, like the built-in open.
40
+ - The sheet's body scrolls without a scroll bar, and day cells are read out from the platform's own month and weekday names.
41
+ - `getConstraints` gets `yearRange` in `ctx.limits.minDate` / `maxDate`.
42
+ - Time boxes and wheel columns are read out with their row's label ("Start time, Hour"), and a custom `renderMonthChip` keeps the chip's role, name and state.
43
+ - A date typed in another month brings the calendar to that month; browsing without picking leaves it on the month you browsed to, folded or not.
44
+
45
+ ### Fixed
46
+
47
+ - Android, edge-to-edge apps (the default from Android 15 / recent Expo): the sheet now sits above the keyboard instead of behind it, and Confirm no longer sits under the navigation bar's Back / Home buttons.
48
+ - A date typed or pasted with separators and no padding (`1/12/2025`) reads as 1 December, not 11 February.
49
+ - The field writes AM / PM with `strings.am` / `strings.pm`, like the time row.
50
+ - A minute off the wheel's step shows at the nearest row, not 00.
51
+ - Multiple dates saved with different times keep them on Confirm; before, every date took the first date's time. A day listed twice counts once.
52
+ - Instant mode no longer saves twice on a tap, again on parent re-renders while `value` catches up, or values half-way through typing; a date still being typed is saved when the sheet closes.
53
+ - A controlled `calendarSystem` fed from `onCalendarSystemChange` keeps each selection in one calendar, and typing in the on-screen field keeps the saved date's calendar.
54
+ - Limits built with `dependsOnNow` refresh every minute while the picker is open.
55
+ - Holidays load for the next or previous year when the grid shows its days (a Hijri month running into January, December's outside days).
56
+ - From / To: tapping the start again deselects it instead of leaving the range stuck.
57
+ - A folded calendar comes back on the month and view it showed.
58
+ - The sheet keeps some room under a keyboard as tall as the window, knows a keyboard that's already up, and reads it as down once it has hidden on iOS.
59
+ - RTL chevrons and the selected month chip, digits typed in Arabic and Persian, the date order on Hermes for Android and iOS `ar-SA`, iOS month and weekday names, and scrolling the sheet from the calendar grid.
60
+
61
+ ### Performance
62
+
63
+ - A tap redraws only the day cells that changed, not all 42, and Hijri dates are worked out once.
64
+
5
65
  ## [1.0.0] - 2026-10-27
6
66
 
7
67
  Initial release.
@@ -37,4 +97,5 @@ Initial release.
37
97
  - `dateFormat` in any case (`'dd/mm/yyyy'`). A format the picker can't use warns in development and falls back to the locale order.
38
98
  - Accessibility labels and states, reduce-motion support, a font-scale cap and RTL mirroring. On iOS every typed box gets a Done button above the number pad, and errors are announced to VoiceOver.
39
99
 
100
+ [1.1.0]: https://github.com/Bhairavi-ancy/rn-grid-date-time-picker/compare/v1.0.0...v1.1.0
40
101
  [1.0.0]: https://github.com/Bhairavi-ancy/rn-grid-date-time-picker/releases/tag/v1.0.0