rn-grid-date-time-picker 0.0.0-stage → 1.0.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 (485) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/LICENSE +21 -0
  3. package/README.md +714 -2
  4. package/lib/commonjs/adapters/index.js +28 -0
  5. package/lib/commonjs/adapters/index.js.map +1 -0
  6. package/lib/commonjs/adapters/iso.js +40 -0
  7. package/lib/commonjs/adapters/iso.js.map +1 -0
  8. package/lib/commonjs/adapters/utcMidnight.js +116 -0
  9. package/lib/commonjs/adapters/utcMidnight.js.map +1 -0
  10. package/lib/commonjs/components/DateTimePicker.js +916 -0
  11. package/lib/commonjs/components/DateTimePicker.js.map +1 -0
  12. package/lib/commonjs/components/calendar/Calendar.js +395 -0
  13. package/lib/commonjs/components/calendar/Calendar.js.map +1 -0
  14. package/lib/commonjs/components/calendar/CalendarHeader.js +173 -0
  15. package/lib/commonjs/components/calendar/CalendarHeader.js.map +1 -0
  16. package/lib/commonjs/components/calendar/DayCell.js +72 -0
  17. package/lib/commonjs/components/calendar/DayCell.js.map +1 -0
  18. package/lib/commonjs/components/calendar/DayGrid.js +137 -0
  19. package/lib/commonjs/components/calendar/DayGrid.js.map +1 -0
  20. package/lib/commonjs/components/calendar/PeriodGrid.js +69 -0
  21. package/lib/commonjs/components/calendar/PeriodGrid.js.map +1 -0
  22. package/lib/commonjs/components/calendar/calendarStyles.js +227 -0
  23. package/lib/commonjs/components/calendar/calendarStyles.js.map +1 -0
  24. package/lib/commonjs/components/calendar/localeNames.js +65 -0
  25. package/lib/commonjs/components/calendar/localeNames.js.map +1 -0
  26. package/lib/commonjs/components/calendar/selection.js +88 -0
  27. package/lib/commonjs/components/calendar/selection.js.map +1 -0
  28. package/lib/commonjs/components/container/DefaultSheet.js +65 -0
  29. package/lib/commonjs/components/container/DefaultSheet.js.map +1 -0
  30. package/lib/commonjs/components/container/PickerContainer.js +63 -0
  31. package/lib/commonjs/components/container/PickerContainer.js.map +1 -0
  32. package/lib/commonjs/components/container/PickerLayout.js +106 -0
  33. package/lib/commonjs/components/container/PickerLayout.js.map +1 -0
  34. package/lib/commonjs/components/container/containerStyles.js +103 -0
  35. package/lib/commonjs/components/container/containerStyles.js.map +1 -0
  36. package/lib/commonjs/components/field/FieldMessages.js +48 -0
  37. package/lib/commonjs/components/field/FieldMessages.js.map +1 -0
  38. package/lib/commonjs/components/field/RangeFields.js +115 -0
  39. package/lib/commonjs/components/field/RangeFields.js.map +1 -0
  40. package/lib/commonjs/components/field/SegmentedInput.js +240 -0
  41. package/lib/commonjs/components/field/SegmentedInput.js.map +1 -0
  42. package/lib/commonjs/components/field/ValueField.js +245 -0
  43. package/lib/commonjs/components/field/ValueField.js.map +1 -0
  44. package/lib/commonjs/components/field/fieldStyles.js +137 -0
  45. package/lib/commonjs/components/field/fieldStyles.js.map +1 -0
  46. package/lib/commonjs/components/field/fieldText.js +78 -0
  47. package/lib/commonjs/components/field/fieldText.js.map +1 -0
  48. package/lib/commonjs/components/hooks/useKeyboardFold.js +34 -0
  49. package/lib/commonjs/components/hooks/useKeyboardFold.js.map +1 -0
  50. package/lib/commonjs/components/hooks/useOpenPicker.js +77 -0
  51. package/lib/commonjs/components/hooks/useOpenPicker.js.map +1 -0
  52. package/lib/commonjs/components/hooks/usePickerDraft.js +60 -0
  53. package/lib/commonjs/components/hooks/usePickerDraft.js.map +1 -0
  54. package/lib/commonjs/components/hooks/useReduceMotion.js +32 -0
  55. package/lib/commonjs/components/hooks/useReduceMotion.js.map +1 -0
  56. package/lib/commonjs/components/hooks/useTodayTick.js +31 -0
  57. package/lib/commonjs/components/hooks/useTodayTick.js.map +1 -0
  58. package/lib/commonjs/components/hooks/useTypedSegments.js +77 -0
  59. package/lib/commonjs/components/hooks/useTypedSegments.js.map +1 -0
  60. package/lib/commonjs/components/nativeTypes.js +6 -0
  61. package/lib/commonjs/components/nativeTypes.js.map +1 -0
  62. package/lib/commonjs/components/theme/a11y.js +15 -0
  63. package/lib/commonjs/components/theme/a11y.js.map +1 -0
  64. package/lib/commonjs/components/theme/defaultStrings.js +74 -0
  65. package/lib/commonjs/components/theme/defaultStrings.js.map +1 -0
  66. package/lib/commonjs/components/theme/styleKeys.js +35 -0
  67. package/lib/commonjs/components/theme/styleKeys.js.map +1 -0
  68. package/lib/commonjs/components/theme/tokens.js +104 -0
  69. package/lib/commonjs/components/theme/tokens.js.map +1 -0
  70. package/lib/commonjs/components/time/TimeRow.js +243 -0
  71. package/lib/commonjs/components/time/TimeRow.js.map +1 -0
  72. package/lib/commonjs/components/time/TimeRows.js +152 -0
  73. package/lib/commonjs/components/time/TimeRows.js.map +1 -0
  74. package/lib/commonjs/components/time/TypedTime.js +119 -0
  75. package/lib/commonjs/components/time/TypedTime.js.map +1 -0
  76. package/lib/commonjs/components/time/Wheel.js +296 -0
  77. package/lib/commonjs/components/time/Wheel.js.map +1 -0
  78. package/lib/commonjs/components/time/timeStyles.js +177 -0
  79. package/lib/commonjs/components/time/timeStyles.js.map +1 -0
  80. package/lib/commonjs/components/types.js +40 -0
  81. package/lib/commonjs/components/types.js.map +1 -0
  82. package/lib/commonjs/core/calendarDate.js +79 -0
  83. package/lib/commonjs/core/calendarDate.js.map +1 -0
  84. package/lib/commonjs/core/calendarSystem.js +242 -0
  85. package/lib/commonjs/core/calendarSystem.js.map +1 -0
  86. package/lib/commonjs/core/constraints.js +153 -0
  87. package/lib/commonjs/core/constraints.js.map +1 -0
  88. package/lib/commonjs/core/draft.js +423 -0
  89. package/lib/commonjs/core/draft.js.map +1 -0
  90. package/lib/commonjs/core/locale.js +118 -0
  91. package/lib/commonjs/core/locale.js.map +1 -0
  92. package/lib/commonjs/core/monthGrid.js +59 -0
  93. package/lib/commonjs/core/monthGrid.js.map +1 -0
  94. package/lib/commonjs/core/segmentEditor.js +139 -0
  95. package/lib/commonjs/core/segmentEditor.js.map +1 -0
  96. package/lib/commonjs/core/segments.js +235 -0
  97. package/lib/commonjs/core/segments.js.map +1 -0
  98. package/lib/commonjs/core/selectionRules.js +57 -0
  99. package/lib/commonjs/core/selectionRules.js.map +1 -0
  100. package/lib/commonjs/core/timeEntry.js +236 -0
  101. package/lib/commonjs/core/timeEntry.js.map +1 -0
  102. package/lib/commonjs/core/types.js +2 -0
  103. package/lib/commonjs/core/types.js.map +1 -0
  104. package/lib/commonjs/core/zoned.js +33 -0
  105. package/lib/commonjs/core/zoned.js.map +1 -0
  106. package/lib/commonjs/icons/index.js +186 -0
  107. package/lib/commonjs/icons/index.js.map +1 -0
  108. package/lib/commonjs/index.js +156 -0
  109. package/lib/commonjs/index.js.map +1 -0
  110. package/lib/commonjs/package.json +1 -0
  111. package/lib/module/adapters/index.js +13 -0
  112. package/lib/module/adapters/index.js.map +1 -0
  113. package/lib/module/adapters/iso.js +37 -0
  114. package/lib/module/adapters/iso.js.map +1 -0
  115. package/lib/module/adapters/utcMidnight.js +109 -0
  116. package/lib/module/adapters/utcMidnight.js.map +1 -0
  117. package/lib/module/components/DateTimePicker.js +911 -0
  118. package/lib/module/components/DateTimePicker.js.map +1 -0
  119. package/lib/module/components/calendar/Calendar.js +388 -0
  120. package/lib/module/components/calendar/Calendar.js.map +1 -0
  121. package/lib/module/components/calendar/CalendarHeader.js +165 -0
  122. package/lib/module/components/calendar/CalendarHeader.js.map +1 -0
  123. package/lib/module/components/calendar/DayCell.js +66 -0
  124. package/lib/module/components/calendar/DayCell.js.map +1 -0
  125. package/lib/module/components/calendar/DayGrid.js +128 -0
  126. package/lib/module/components/calendar/DayGrid.js.map +1 -0
  127. package/lib/module/components/calendar/PeriodGrid.js +64 -0
  128. package/lib/module/components/calendar/PeriodGrid.js.map +1 -0
  129. package/lib/module/components/calendar/calendarStyles.js +222 -0
  130. package/lib/module/components/calendar/calendarStyles.js.map +1 -0
  131. package/lib/module/components/calendar/localeNames.js +59 -0
  132. package/lib/module/components/calendar/localeNames.js.map +1 -0
  133. package/lib/module/components/calendar/selection.js +83 -0
  134. package/lib/module/components/calendar/selection.js.map +1 -0
  135. package/lib/module/components/container/DefaultSheet.js +60 -0
  136. package/lib/module/components/container/DefaultSheet.js.map +1 -0
  137. package/lib/module/components/container/PickerContainer.js +58 -0
  138. package/lib/module/components/container/PickerContainer.js.map +1 -0
  139. package/lib/module/components/container/PickerLayout.js +100 -0
  140. package/lib/module/components/container/PickerLayout.js.map +1 -0
  141. package/lib/module/components/container/containerStyles.js +98 -0
  142. package/lib/module/components/container/containerStyles.js.map +1 -0
  143. package/lib/module/components/field/FieldMessages.js +42 -0
  144. package/lib/module/components/field/FieldMessages.js.map +1 -0
  145. package/lib/module/components/field/RangeFields.js +110 -0
  146. package/lib/module/components/field/RangeFields.js.map +1 -0
  147. package/lib/module/components/field/SegmentedInput.js +233 -0
  148. package/lib/module/components/field/SegmentedInput.js.map +1 -0
  149. package/lib/module/components/field/ValueField.js +238 -0
  150. package/lib/module/components/field/ValueField.js.map +1 -0
  151. package/lib/module/components/field/fieldStyles.js +132 -0
  152. package/lib/module/components/field/fieldStyles.js.map +1 -0
  153. package/lib/module/components/field/fieldText.js +67 -0
  154. package/lib/module/components/field/fieldText.js.map +1 -0
  155. package/lib/module/components/hooks/useKeyboardFold.js +30 -0
  156. package/lib/module/components/hooks/useKeyboardFold.js.map +1 -0
  157. package/lib/module/components/hooks/useOpenPicker.js +73 -0
  158. package/lib/module/components/hooks/useOpenPicker.js.map +1 -0
  159. package/lib/module/components/hooks/usePickerDraft.js +55 -0
  160. package/lib/module/components/hooks/usePickerDraft.js.map +1 -0
  161. package/lib/module/components/hooks/useReduceMotion.js +28 -0
  162. package/lib/module/components/hooks/useReduceMotion.js.map +1 -0
  163. package/lib/module/components/hooks/useTodayTick.js +26 -0
  164. package/lib/module/components/hooks/useTodayTick.js.map +1 -0
  165. package/lib/module/components/hooks/useTypedSegments.js +72 -0
  166. package/lib/module/components/hooks/useTypedSegments.js.map +1 -0
  167. package/lib/module/components/nativeTypes.js +4 -0
  168. package/lib/module/components/nativeTypes.js.map +1 -0
  169. package/lib/module/components/theme/a11y.js +11 -0
  170. package/lib/module/components/theme/a11y.js.map +1 -0
  171. package/lib/module/components/theme/defaultStrings.js +69 -0
  172. package/lib/module/components/theme/defaultStrings.js.map +1 -0
  173. package/lib/module/components/theme/styleKeys.js +31 -0
  174. package/lib/module/components/theme/styleKeys.js.map +1 -0
  175. package/lib/module/components/theme/tokens.js +98 -0
  176. package/lib/module/components/theme/tokens.js.map +1 -0
  177. package/lib/module/components/time/TimeRow.js +236 -0
  178. package/lib/module/components/time/TimeRow.js.map +1 -0
  179. package/lib/module/components/time/TimeRows.js +145 -0
  180. package/lib/module/components/time/TimeRows.js.map +1 -0
  181. package/lib/module/components/time/TypedTime.js +114 -0
  182. package/lib/module/components/time/TypedTime.js.map +1 -0
  183. package/lib/module/components/time/Wheel.js +288 -0
  184. package/lib/module/components/time/Wheel.js.map +1 -0
  185. package/lib/module/components/time/timeStyles.js +172 -0
  186. package/lib/module/components/time/timeStyles.js.map +1 -0
  187. package/lib/module/components/types.js +36 -0
  188. package/lib/module/components/types.js.map +1 -0
  189. package/lib/module/core/calendarDate.js +63 -0
  190. package/lib/module/core/calendarDate.js.map +1 -0
  191. package/lib/module/core/calendarSystem.js +230 -0
  192. package/lib/module/core/calendarSystem.js.map +1 -0
  193. package/lib/module/core/constraints.js +149 -0
  194. package/lib/module/core/constraints.js.map +1 -0
  195. package/lib/module/core/draft.js +411 -0
  196. package/lib/module/core/draft.js.map +1 -0
  197. package/lib/module/core/locale.js +109 -0
  198. package/lib/module/core/locale.js.map +1 -0
  199. package/lib/module/core/monthGrid.js +54 -0
  200. package/lib/module/core/monthGrid.js.map +1 -0
  201. package/lib/module/core/segmentEditor.js +134 -0
  202. package/lib/module/core/segmentEditor.js.map +1 -0
  203. package/lib/module/core/segments.js +224 -0
  204. package/lib/module/core/segments.js.map +1 -0
  205. package/lib/module/core/selectionRules.js +52 -0
  206. package/lib/module/core/selectionRules.js.map +1 -0
  207. package/lib/module/core/timeEntry.js +224 -0
  208. package/lib/module/core/timeEntry.js.map +1 -0
  209. package/lib/module/core/types.js +2 -0
  210. package/lib/module/core/types.js.map +1 -0
  211. package/lib/module/core/zoned.js +27 -0
  212. package/lib/module/core/zoned.js.map +1 -0
  213. package/lib/module/icons/index.js +174 -0
  214. package/lib/module/icons/index.js.map +1 -0
  215. package/lib/module/index.js +17 -0
  216. package/lib/module/index.js.map +1 -0
  217. package/lib/module/package.json +1 -0
  218. package/lib/typescript/commonjs/package.json +1 -0
  219. package/lib/typescript/commonjs/src/adapters/index.d.ts +7 -0
  220. package/lib/typescript/commonjs/src/adapters/index.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/src/adapters/iso.d.ts +3 -0
  222. package/lib/typescript/commonjs/src/adapters/iso.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/src/adapters/utcMidnight.d.ts +15 -0
  224. package/lib/typescript/commonjs/src/adapters/utcMidnight.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/src/components/DateTimePicker.d.ts +16 -0
  226. package/lib/typescript/commonjs/src/components/DateTimePicker.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/src/components/calendar/Calendar.d.ts +64 -0
  228. package/lib/typescript/commonjs/src/components/calendar/Calendar.d.ts.map +1 -0
  229. package/lib/typescript/commonjs/src/components/calendar/CalendarHeader.d.ts +44 -0
  230. package/lib/typescript/commonjs/src/components/calendar/CalendarHeader.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/src/components/calendar/DayCell.d.ts +30 -0
  232. package/lib/typescript/commonjs/src/components/calendar/DayCell.d.ts.map +1 -0
  233. package/lib/typescript/commonjs/src/components/calendar/DayGrid.d.ts +46 -0
  234. package/lib/typescript/commonjs/src/components/calendar/DayGrid.d.ts.map +1 -0
  235. package/lib/typescript/commonjs/src/components/calendar/PeriodGrid.d.ts +25 -0
  236. package/lib/typescript/commonjs/src/components/calendar/PeriodGrid.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/src/components/calendar/calendarStyles.d.ts +297 -0
  238. package/lib/typescript/commonjs/src/components/calendar/calendarStyles.d.ts.map +1 -0
  239. package/lib/typescript/commonjs/src/components/calendar/localeNames.d.ts +18 -0
  240. package/lib/typescript/commonjs/src/components/calendar/localeNames.d.ts.map +1 -0
  241. package/lib/typescript/commonjs/src/components/calendar/selection.d.ts +23 -0
  242. package/lib/typescript/commonjs/src/components/calendar/selection.d.ts.map +1 -0
  243. package/lib/typescript/commonjs/src/components/container/DefaultSheet.d.ts +19 -0
  244. package/lib/typescript/commonjs/src/components/container/DefaultSheet.d.ts.map +1 -0
  245. package/lib/typescript/commonjs/src/components/container/PickerContainer.d.ts +22 -0
  246. package/lib/typescript/commonjs/src/components/container/PickerContainer.d.ts.map +1 -0
  247. package/lib/typescript/commonjs/src/components/container/PickerLayout.d.ts +38 -0
  248. package/lib/typescript/commonjs/src/components/container/PickerLayout.d.ts.map +1 -0
  249. package/lib/typescript/commonjs/src/components/container/containerStyles.d.ts +117 -0
  250. package/lib/typescript/commonjs/src/components/container/containerStyles.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/src/components/field/FieldMessages.d.ts +19 -0
  252. package/lib/typescript/commonjs/src/components/field/FieldMessages.d.ts.map +1 -0
  253. package/lib/typescript/commonjs/src/components/field/RangeFields.d.ts +50 -0
  254. package/lib/typescript/commonjs/src/components/field/RangeFields.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/src/components/field/SegmentedInput.d.ts +33 -0
  256. package/lib/typescript/commonjs/src/components/field/SegmentedInput.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/src/components/field/ValueField.d.ts +72 -0
  258. package/lib/typescript/commonjs/src/components/field/ValueField.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/src/components/field/fieldStyles.d.ts +183 -0
  260. package/lib/typescript/commonjs/src/components/field/fieldStyles.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/src/components/field/fieldText.d.ts +20 -0
  262. package/lib/typescript/commonjs/src/components/field/fieldText.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/src/components/hooks/useKeyboardFold.d.ts +8 -0
  264. package/lib/typescript/commonjs/src/components/hooks/useKeyboardFold.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/src/components/hooks/useOpenPicker.d.ts +26 -0
  266. package/lib/typescript/commonjs/src/components/hooks/useOpenPicker.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/src/components/hooks/usePickerDraft.d.ts +21 -0
  268. package/lib/typescript/commonjs/src/components/hooks/usePickerDraft.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/src/components/hooks/useReduceMotion.d.ts +3 -0
  270. package/lib/typescript/commonjs/src/components/hooks/useReduceMotion.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/src/components/hooks/useTodayTick.d.ts +7 -0
  272. package/lib/typescript/commonjs/src/components/hooks/useTodayTick.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/src/components/hooks/useTypedSegments.d.ts +15 -0
  274. package/lib/typescript/commonjs/src/components/hooks/useTypedSegments.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/src/components/nativeTypes.d.ts +11 -0
  276. package/lib/typescript/commonjs/src/components/nativeTypes.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/src/components/theme/a11y.d.ts +8 -0
  278. package/lib/typescript/commonjs/src/components/theme/a11y.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/src/components/theme/defaultStrings.d.ts +65 -0
  280. package/lib/typescript/commonjs/src/components/theme/defaultStrings.d.ts.map +1 -0
  281. package/lib/typescript/commonjs/src/components/theme/styleKeys.d.ts +11 -0
  282. package/lib/typescript/commonjs/src/components/theme/styleKeys.d.ts.map +1 -0
  283. package/lib/typescript/commonjs/src/components/theme/tokens.d.ts +76 -0
  284. package/lib/typescript/commonjs/src/components/theme/tokens.d.ts.map +1 -0
  285. package/lib/typescript/commonjs/src/components/time/TimeRow.d.ts +53 -0
  286. package/lib/typescript/commonjs/src/components/time/TimeRow.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/src/components/time/TimeRows.d.ts +49 -0
  288. package/lib/typescript/commonjs/src/components/time/TimeRows.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/src/components/time/TypedTime.d.ts +35 -0
  290. package/lib/typescript/commonjs/src/components/time/TypedTime.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/src/components/time/Wheel.d.ts +36 -0
  292. package/lib/typescript/commonjs/src/components/time/Wheel.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/src/components/time/timeStyles.d.ts +221 -0
  294. package/lib/typescript/commonjs/src/components/time/timeStyles.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/src/components/types.d.ts +298 -0
  296. package/lib/typescript/commonjs/src/components/types.d.ts.map +1 -0
  297. package/lib/typescript/commonjs/src/core/calendarDate.d.ts +25 -0
  298. package/lib/typescript/commonjs/src/core/calendarDate.d.ts.map +1 -0
  299. package/lib/typescript/commonjs/src/core/calendarSystem.d.ts +61 -0
  300. package/lib/typescript/commonjs/src/core/calendarSystem.d.ts.map +1 -0
  301. package/lib/typescript/commonjs/src/core/constraints.d.ts +71 -0
  302. package/lib/typescript/commonjs/src/core/constraints.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/src/core/draft.d.ts +91 -0
  304. package/lib/typescript/commonjs/src/core/draft.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/src/core/locale.d.ts +26 -0
  306. package/lib/typescript/commonjs/src/core/locale.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/src/core/monthGrid.d.ts +23 -0
  308. package/lib/typescript/commonjs/src/core/monthGrid.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/src/core/segmentEditor.d.ts +46 -0
  310. package/lib/typescript/commonjs/src/core/segmentEditor.d.ts.map +1 -0
  311. package/lib/typescript/commonjs/src/core/segments.d.ts +75 -0
  312. package/lib/typescript/commonjs/src/core/segments.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/src/core/selectionRules.d.ts +25 -0
  314. package/lib/typescript/commonjs/src/core/selectionRules.d.ts.map +1 -0
  315. package/lib/typescript/commonjs/src/core/timeEntry.d.ts +71 -0
  316. package/lib/typescript/commonjs/src/core/timeEntry.d.ts.map +1 -0
  317. package/lib/typescript/commonjs/src/core/types.d.ts +49 -0
  318. package/lib/typescript/commonjs/src/core/types.d.ts.map +1 -0
  319. package/lib/typescript/commonjs/src/core/zoned.d.ts +13 -0
  320. package/lib/typescript/commonjs/src/core/zoned.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/src/icons/index.d.ts +51 -0
  322. package/lib/typescript/commonjs/src/icons/index.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/src/index.d.ts +20 -0
  324. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  325. package/lib/typescript/module/package.json +1 -0
  326. package/lib/typescript/module/src/adapters/index.d.ts +7 -0
  327. package/lib/typescript/module/src/adapters/index.d.ts.map +1 -0
  328. package/lib/typescript/module/src/adapters/iso.d.ts +3 -0
  329. package/lib/typescript/module/src/adapters/iso.d.ts.map +1 -0
  330. package/lib/typescript/module/src/adapters/utcMidnight.d.ts +15 -0
  331. package/lib/typescript/module/src/adapters/utcMidnight.d.ts.map +1 -0
  332. package/lib/typescript/module/src/components/DateTimePicker.d.ts +16 -0
  333. package/lib/typescript/module/src/components/DateTimePicker.d.ts.map +1 -0
  334. package/lib/typescript/module/src/components/calendar/Calendar.d.ts +64 -0
  335. package/lib/typescript/module/src/components/calendar/Calendar.d.ts.map +1 -0
  336. package/lib/typescript/module/src/components/calendar/CalendarHeader.d.ts +44 -0
  337. package/lib/typescript/module/src/components/calendar/CalendarHeader.d.ts.map +1 -0
  338. package/lib/typescript/module/src/components/calendar/DayCell.d.ts +30 -0
  339. package/lib/typescript/module/src/components/calendar/DayCell.d.ts.map +1 -0
  340. package/lib/typescript/module/src/components/calendar/DayGrid.d.ts +46 -0
  341. package/lib/typescript/module/src/components/calendar/DayGrid.d.ts.map +1 -0
  342. package/lib/typescript/module/src/components/calendar/PeriodGrid.d.ts +25 -0
  343. package/lib/typescript/module/src/components/calendar/PeriodGrid.d.ts.map +1 -0
  344. package/lib/typescript/module/src/components/calendar/calendarStyles.d.ts +297 -0
  345. package/lib/typescript/module/src/components/calendar/calendarStyles.d.ts.map +1 -0
  346. package/lib/typescript/module/src/components/calendar/localeNames.d.ts +18 -0
  347. package/lib/typescript/module/src/components/calendar/localeNames.d.ts.map +1 -0
  348. package/lib/typescript/module/src/components/calendar/selection.d.ts +23 -0
  349. package/lib/typescript/module/src/components/calendar/selection.d.ts.map +1 -0
  350. package/lib/typescript/module/src/components/container/DefaultSheet.d.ts +19 -0
  351. package/lib/typescript/module/src/components/container/DefaultSheet.d.ts.map +1 -0
  352. package/lib/typescript/module/src/components/container/PickerContainer.d.ts +22 -0
  353. package/lib/typescript/module/src/components/container/PickerContainer.d.ts.map +1 -0
  354. package/lib/typescript/module/src/components/container/PickerLayout.d.ts +38 -0
  355. package/lib/typescript/module/src/components/container/PickerLayout.d.ts.map +1 -0
  356. package/lib/typescript/module/src/components/container/containerStyles.d.ts +117 -0
  357. package/lib/typescript/module/src/components/container/containerStyles.d.ts.map +1 -0
  358. package/lib/typescript/module/src/components/field/FieldMessages.d.ts +19 -0
  359. package/lib/typescript/module/src/components/field/FieldMessages.d.ts.map +1 -0
  360. package/lib/typescript/module/src/components/field/RangeFields.d.ts +50 -0
  361. package/lib/typescript/module/src/components/field/RangeFields.d.ts.map +1 -0
  362. package/lib/typescript/module/src/components/field/SegmentedInput.d.ts +33 -0
  363. package/lib/typescript/module/src/components/field/SegmentedInput.d.ts.map +1 -0
  364. package/lib/typescript/module/src/components/field/ValueField.d.ts +72 -0
  365. package/lib/typescript/module/src/components/field/ValueField.d.ts.map +1 -0
  366. package/lib/typescript/module/src/components/field/fieldStyles.d.ts +183 -0
  367. package/lib/typescript/module/src/components/field/fieldStyles.d.ts.map +1 -0
  368. package/lib/typescript/module/src/components/field/fieldText.d.ts +20 -0
  369. package/lib/typescript/module/src/components/field/fieldText.d.ts.map +1 -0
  370. package/lib/typescript/module/src/components/hooks/useKeyboardFold.d.ts +8 -0
  371. package/lib/typescript/module/src/components/hooks/useKeyboardFold.d.ts.map +1 -0
  372. package/lib/typescript/module/src/components/hooks/useOpenPicker.d.ts +26 -0
  373. package/lib/typescript/module/src/components/hooks/useOpenPicker.d.ts.map +1 -0
  374. package/lib/typescript/module/src/components/hooks/usePickerDraft.d.ts +21 -0
  375. package/lib/typescript/module/src/components/hooks/usePickerDraft.d.ts.map +1 -0
  376. package/lib/typescript/module/src/components/hooks/useReduceMotion.d.ts +3 -0
  377. package/lib/typescript/module/src/components/hooks/useReduceMotion.d.ts.map +1 -0
  378. package/lib/typescript/module/src/components/hooks/useTodayTick.d.ts +7 -0
  379. package/lib/typescript/module/src/components/hooks/useTodayTick.d.ts.map +1 -0
  380. package/lib/typescript/module/src/components/hooks/useTypedSegments.d.ts +15 -0
  381. package/lib/typescript/module/src/components/hooks/useTypedSegments.d.ts.map +1 -0
  382. package/lib/typescript/module/src/components/nativeTypes.d.ts +11 -0
  383. package/lib/typescript/module/src/components/nativeTypes.d.ts.map +1 -0
  384. package/lib/typescript/module/src/components/theme/a11y.d.ts +8 -0
  385. package/lib/typescript/module/src/components/theme/a11y.d.ts.map +1 -0
  386. package/lib/typescript/module/src/components/theme/defaultStrings.d.ts +65 -0
  387. package/lib/typescript/module/src/components/theme/defaultStrings.d.ts.map +1 -0
  388. package/lib/typescript/module/src/components/theme/styleKeys.d.ts +11 -0
  389. package/lib/typescript/module/src/components/theme/styleKeys.d.ts.map +1 -0
  390. package/lib/typescript/module/src/components/theme/tokens.d.ts +76 -0
  391. package/lib/typescript/module/src/components/theme/tokens.d.ts.map +1 -0
  392. package/lib/typescript/module/src/components/time/TimeRow.d.ts +53 -0
  393. package/lib/typescript/module/src/components/time/TimeRow.d.ts.map +1 -0
  394. package/lib/typescript/module/src/components/time/TimeRows.d.ts +49 -0
  395. package/lib/typescript/module/src/components/time/TimeRows.d.ts.map +1 -0
  396. package/lib/typescript/module/src/components/time/TypedTime.d.ts +35 -0
  397. package/lib/typescript/module/src/components/time/TypedTime.d.ts.map +1 -0
  398. package/lib/typescript/module/src/components/time/Wheel.d.ts +36 -0
  399. package/lib/typescript/module/src/components/time/Wheel.d.ts.map +1 -0
  400. package/lib/typescript/module/src/components/time/timeStyles.d.ts +221 -0
  401. package/lib/typescript/module/src/components/time/timeStyles.d.ts.map +1 -0
  402. package/lib/typescript/module/src/components/types.d.ts +298 -0
  403. package/lib/typescript/module/src/components/types.d.ts.map +1 -0
  404. package/lib/typescript/module/src/core/calendarDate.d.ts +25 -0
  405. package/lib/typescript/module/src/core/calendarDate.d.ts.map +1 -0
  406. package/lib/typescript/module/src/core/calendarSystem.d.ts +61 -0
  407. package/lib/typescript/module/src/core/calendarSystem.d.ts.map +1 -0
  408. package/lib/typescript/module/src/core/constraints.d.ts +71 -0
  409. package/lib/typescript/module/src/core/constraints.d.ts.map +1 -0
  410. package/lib/typescript/module/src/core/draft.d.ts +91 -0
  411. package/lib/typescript/module/src/core/draft.d.ts.map +1 -0
  412. package/lib/typescript/module/src/core/locale.d.ts +26 -0
  413. package/lib/typescript/module/src/core/locale.d.ts.map +1 -0
  414. package/lib/typescript/module/src/core/monthGrid.d.ts +23 -0
  415. package/lib/typescript/module/src/core/monthGrid.d.ts.map +1 -0
  416. package/lib/typescript/module/src/core/segmentEditor.d.ts +46 -0
  417. package/lib/typescript/module/src/core/segmentEditor.d.ts.map +1 -0
  418. package/lib/typescript/module/src/core/segments.d.ts +75 -0
  419. package/lib/typescript/module/src/core/segments.d.ts.map +1 -0
  420. package/lib/typescript/module/src/core/selectionRules.d.ts +25 -0
  421. package/lib/typescript/module/src/core/selectionRules.d.ts.map +1 -0
  422. package/lib/typescript/module/src/core/timeEntry.d.ts +71 -0
  423. package/lib/typescript/module/src/core/timeEntry.d.ts.map +1 -0
  424. package/lib/typescript/module/src/core/types.d.ts +49 -0
  425. package/lib/typescript/module/src/core/types.d.ts.map +1 -0
  426. package/lib/typescript/module/src/core/zoned.d.ts +13 -0
  427. package/lib/typescript/module/src/core/zoned.d.ts.map +1 -0
  428. package/lib/typescript/module/src/icons/index.d.ts +51 -0
  429. package/lib/typescript/module/src/icons/index.d.ts.map +1 -0
  430. package/lib/typescript/module/src/index.d.ts +20 -0
  431. package/lib/typescript/module/src/index.d.ts.map +1 -0
  432. package/package.json +161 -4
  433. package/src/adapters/index.ts +14 -0
  434. package/src/adapters/iso.ts +35 -0
  435. package/src/adapters/utcMidnight.ts +122 -0
  436. package/src/components/DateTimePicker.tsx +1242 -0
  437. package/src/components/calendar/Calendar.tsx +499 -0
  438. package/src/components/calendar/CalendarHeader.tsx +246 -0
  439. package/src/components/calendar/DayCell.tsx +127 -0
  440. package/src/components/calendar/DayGrid.tsx +183 -0
  441. package/src/components/calendar/PeriodGrid.tsx +114 -0
  442. package/src/components/calendar/calendarStyles.ts +155 -0
  443. package/src/components/calendar/localeNames.ts +93 -0
  444. package/src/components/calendar/selection.ts +67 -0
  445. package/src/components/container/DefaultSheet.tsx +77 -0
  446. package/src/components/container/PickerContainer.tsx +71 -0
  447. package/src/components/container/PickerLayout.tsx +152 -0
  448. package/src/components/container/containerStyles.ts +78 -0
  449. package/src/components/field/FieldMessages.tsx +62 -0
  450. package/src/components/field/RangeFields.tsx +163 -0
  451. package/src/components/field/SegmentedInput.tsx +300 -0
  452. package/src/components/field/ValueField.tsx +349 -0
  453. package/src/components/field/fieldStyles.ts +104 -0
  454. package/src/components/field/fieldText.ts +113 -0
  455. package/src/components/hooks/useKeyboardFold.ts +31 -0
  456. package/src/components/hooks/useOpenPicker.ts +84 -0
  457. package/src/components/hooks/usePickerDraft.ts +118 -0
  458. package/src/components/hooks/useReduceMotion.ts +30 -0
  459. package/src/components/hooks/useTodayTick.ts +30 -0
  460. package/src/components/hooks/useTypedSegments.ts +100 -0
  461. package/src/components/nativeTypes.ts +13 -0
  462. package/src/components/theme/a11y.ts +8 -0
  463. package/src/components/theme/defaultStrings.ts +117 -0
  464. package/src/components/theme/styleKeys.ts +126 -0
  465. package/src/components/theme/tokens.ts +141 -0
  466. package/src/components/time/TimeRow.tsx +300 -0
  467. package/src/components/time/TimeRows.tsx +238 -0
  468. package/src/components/time/TypedTime.tsx +178 -0
  469. package/src/components/time/Wheel.tsx +358 -0
  470. package/src/components/time/timeStyles.ts +138 -0
  471. package/src/components/types.ts +334 -0
  472. package/src/core/calendarDate.ts +87 -0
  473. package/src/core/calendarSystem.ts +262 -0
  474. package/src/core/constraints.ts +241 -0
  475. package/src/core/draft.ts +449 -0
  476. package/src/core/locale.ts +120 -0
  477. package/src/core/monthGrid.ts +73 -0
  478. package/src/core/segmentEditor.ts +190 -0
  479. package/src/core/segments.ts +261 -0
  480. package/src/core/selectionRules.ts +72 -0
  481. package/src/core/timeEntry.ts +236 -0
  482. package/src/core/types.ts +60 -0
  483. package/src/core/zoned.ts +32 -0
  484. package/src/icons/index.tsx +171 -0
  485. package/src/index.tsx +81 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,40 @@
1
+ # Changelog
2
+
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
+
5
+ ## [1.0.0] - 2026-10-27
6
+
7
+ Initial release.
8
+
9
+ ### Added
10
+
11
+ - `DateTimePicker` for dates and date-times, in `single`, `multiple` and `range` modes (one field or From / To), as a bottom sheet or inline. Range lengths (`minDays` / `maxDays`) count calendar days, both ends included.
12
+ - String values in `'iso'` (default) or `'utc-midnight'` format, or through your own `ValueAdapter`.
13
+ - Typed segments in the field, typed time boxes or a wheel, 12- / 24-hour, minute steps that divide the hour.
14
+ - Limits: `minDate` / `maxDate`, `disabledWeekdays`, `disabledDates` / `enabledDates`, `timeBounds`, `holidays` / `loadHolidays` / `disableHolidays`, and `getConstraints` for full control. `createConstraints` is exported.
15
+ - Gregorian, dual and Hijri (Umm al-Qura) calendars, with a Gregorian fallback.
16
+ - Locale-based defaults for the date order and the clock (through `Intl`) and for the first day of the week (from the locale's region).
17
+ - Theme tokens, `styles` keys for every part, `strings` for every text, and render props for the sheet, field, label, instruction, days, cells and time row.
18
+ - The system font by default, so there's nothing to load. `INTER_FONTS` switches to Inter (`Inter-Regular`, `Inter-Medium`, `Inter-SemiBold`, loaded by the app); `SYSTEM_FONTS` switches back.
19
+ - A `fontFamily` token that sets the font for all text, next to the per-weight `fontRegular` / `fontMedium` / `fontSemiBold`.
20
+ - `icons` replaces any icon with your own component or hides it, and `iconProps` sets each icon's colour, disabled colour, size, width and height.
21
+ - `renderField` receives `displayText` and `clear`, so your own input can show the value and clear it. `renderTimeRow` receives `time`, `rangeTimes` and `setTime`, so your own time row can change the time.
22
+ - `initialVisibleDate` opens an empty calendar on a chosen month (e.g. for a date of birth).
23
+ - `sheet` sets the sheet's `height` and `maxHeight`, whether the header and footer stay fixed or scroll with the body, and whether the field above the calendar shows (`showField`, `fieldPlaceholder`), and whether that field shows the calendar icon (`fieldIcon`).
24
+ - Placeholder strings for the typed segments and time boxes (`placeholderDay`, `placeholderMonth`, `placeholderYear`, `placeholderHour`, `placeholderHour24`, `placeholderMinute`).
25
+ - `precision: 'month' | 'year'` picks a whole month or year: the month or year grid is the last step, the saved value is the period's first day, the field shows "March 2026" / "2026", and a period can be picked when any day in it can. The current month or year is outlined (`monthCellCurrent`, `yearCellCurrent`).
26
+ - `strings.rangeSeparator` (default `' – '`) joins the two ends of a range in the field text.
27
+ - `fieldTextDisabled` style key for the value's text while the field is disabled.
28
+ - With `commitMode="instant"`, × in the field above the calendar clears the saved value (`onChange('')`), not just the selection.
29
+ - Text style keys for every text: `yearCellText`, `monthCellText`, `daySubLabel`, `timeBoxText`, `ampmOptionText`, `wheelText`, `todayButtonText`, `fieldPeriodText`.
30
+ - `validate` runs your own check before a value is saved (on Confirm, with `commitMode="instant"`, and when typing in the on-screen field) and shows its message (`styles.validationText`).
31
+ - Times are checked when Confirm is pressed, not while typing; `onError` reports the time problem.
32
+ - Typed segments handle fast input (hardware keyboards, autofill) without dropping or doubling digits, and a full last box can still be corrected.
33
+ - With `allowFieldTyping`, the on-screen field saves once typing pauses (focus leaves it or its last box fills), not on every complete value.
34
+ - A date typed into the field takes the time already entered in the time row, so Confirm works without retyping it.
35
+ - In 12-hour mode a typed time reads as AM until switched; segment boxes grow with the font size and system text size, and the time wraps to a second line instead of overlapping the icons.
36
+ - A bad `minuteStep`, an unknown `timeZone` or a throwing custom `parse` falls back with a development warning instead of crashing.
37
+ - `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
+ - 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
+
40
+ [1.0.0]: https://github.com/Bhairavi-ancy/rn-grid-date-time-picker/releases/tag/v1.0.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bhairavi M
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.