react-native-bikram-sambat 0.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 (367) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +340 -0
  3. package/lib/commonjs/accessibility/index.js +25 -0
  4. package/lib/commonjs/accessibility/index.js.map +1 -0
  5. package/lib/commonjs/accessibility/labels.js +20 -0
  6. package/lib/commonjs/accessibility/labels.js.map +1 -0
  7. package/lib/commonjs/calendar/calendar-types.js +6 -0
  8. package/lib/commonjs/calendar/calendar-types.js.map +1 -0
  9. package/lib/commonjs/calendar/get-calendar-month-grid.js +114 -0
  10. package/lib/commonjs/calendar/get-calendar-month-grid.js.map +1 -0
  11. package/lib/commonjs/calendar/index.js +13 -0
  12. package/lib/commonjs/calendar/index.js.map +1 -0
  13. package/lib/commonjs/components/NepaliCalendar/CalendarDay.js +137 -0
  14. package/lib/commonjs/components/NepaliCalendar/CalendarDay.js.map +1 -0
  15. package/lib/commonjs/components/NepaliCalendar/CalendarGrid.js +116 -0
  16. package/lib/commonjs/components/NepaliCalendar/CalendarGrid.js.map +1 -0
  17. package/lib/commonjs/components/NepaliCalendar/CalendarHeader.js +114 -0
  18. package/lib/commonjs/components/NepaliCalendar/CalendarHeader.js.map +1 -0
  19. package/lib/commonjs/components/NepaliCalendar/CalendarWeekdays.js +44 -0
  20. package/lib/commonjs/components/NepaliCalendar/CalendarWeekdays.js.map +1 -0
  21. package/lib/commonjs/components/NepaliCalendar/NepaliCalendar.js +288 -0
  22. package/lib/commonjs/components/NepaliCalendar/NepaliCalendar.js.map +1 -0
  23. package/lib/commonjs/components/NepaliCalendar/index.js +13 -0
  24. package/lib/commonjs/components/NepaliCalendar/index.js.map +1 -0
  25. package/lib/commonjs/components/NepaliCalendar/types.js +6 -0
  26. package/lib/commonjs/components/NepaliCalendar/types.js.map +1 -0
  27. package/lib/commonjs/components/NepaliDatePicker/DatePickerModal.js +185 -0
  28. package/lib/commonjs/components/NepaliDatePicker/DatePickerModal.js.map +1 -0
  29. package/lib/commonjs/components/NepaliDatePicker/NepaliDatePicker.js +148 -0
  30. package/lib/commonjs/components/NepaliDatePicker/NepaliDatePicker.js.map +1 -0
  31. package/lib/commonjs/components/NepaliDatePicker/index.js +20 -0
  32. package/lib/commonjs/components/NepaliDatePicker/index.js.map +1 -0
  33. package/lib/commonjs/components/NepaliDatePicker/types.js +6 -0
  34. package/lib/commonjs/components/NepaliDatePicker/types.js.map +1 -0
  35. package/lib/commonjs/components/NepaliRangePicker/NepaliRangePicker.js +187 -0
  36. package/lib/commonjs/components/NepaliRangePicker/NepaliRangePicker.js.map +1 -0
  37. package/lib/commonjs/components/NepaliRangePicker/RangePickerModal.js +275 -0
  38. package/lib/commonjs/components/NepaliRangePicker/RangePickerModal.js.map +1 -0
  39. package/lib/commonjs/components/NepaliRangePicker/index.js +57 -0
  40. package/lib/commonjs/components/NepaliRangePicker/index.js.map +1 -0
  41. package/lib/commonjs/components/NepaliRangePicker/range-utils.js +70 -0
  42. package/lib/commonjs/components/NepaliRangePicker/range-utils.js.map +1 -0
  43. package/lib/commonjs/components/NepaliRangePicker/types.js +6 -0
  44. package/lib/commonjs/components/NepaliRangePicker/types.js.map +1 -0
  45. package/lib/commonjs/core/arithmetic.js +36 -0
  46. package/lib/commonjs/core/arithmetic.js.map +1 -0
  47. package/lib/commonjs/core/bsData.js +89 -0
  48. package/lib/commonjs/core/bsData.js.map +1 -0
  49. package/lib/commonjs/core/conversion.js +53 -0
  50. package/lib/commonjs/core/conversion.js.map +1 -0
  51. package/lib/commonjs/core/dateKey.js +31 -0
  52. package/lib/commonjs/core/dateKey.js.map +1 -0
  53. package/lib/commonjs/core/epochDay.js +47 -0
  54. package/lib/commonjs/core/epochDay.js.map +1 -0
  55. package/lib/commonjs/core/format/format.js +86 -0
  56. package/lib/commonjs/core/format/format.js.map +1 -0
  57. package/lib/commonjs/core/format/index.js +20 -0
  58. package/lib/commonjs/core/format/index.js.map +1 -0
  59. package/lib/commonjs/core/format/parse.js +41 -0
  60. package/lib/commonjs/core/format/parse.js.map +1 -0
  61. package/lib/commonjs/core/format/tokens.js +9 -0
  62. package/lib/commonjs/core/format/tokens.js.map +1 -0
  63. package/lib/commonjs/core/index.js +116 -0
  64. package/lib/commonjs/core/index.js.map +1 -0
  65. package/lib/commonjs/core/locale/en.js +15 -0
  66. package/lib/commonjs/core/locale/en.js.map +1 -0
  67. package/lib/commonjs/core/locale/index.js +20 -0
  68. package/lib/commonjs/core/locale/index.js.map +1 -0
  69. package/lib/commonjs/core/locale/ne.js +15 -0
  70. package/lib/commonjs/core/locale/ne.js.map +1 -0
  71. package/lib/commonjs/core/locale/types.js +2 -0
  72. package/lib/commonjs/core/locale/types.js.map +1 -0
  73. package/lib/commonjs/core/numerals/index.js +19 -0
  74. package/lib/commonjs/core/numerals/index.js.map +1 -0
  75. package/lib/commonjs/core/numerals/nepali-numerals.js +28 -0
  76. package/lib/commonjs/core/numerals/nepali-numerals.js.map +1 -0
  77. package/lib/commonjs/core/types.js +2 -0
  78. package/lib/commonjs/core/types.js.map +1 -0
  79. package/lib/commonjs/core/validation.js +125 -0
  80. package/lib/commonjs/core/validation.js.map +1 -0
  81. package/lib/commonjs/core/validation.test.js +248 -0
  82. package/lib/commonjs/core/validation.test.js.map +1 -0
  83. package/lib/commonjs/exports.test.js +133 -0
  84. package/lib/commonjs/exports.test.js.map +1 -0
  85. package/lib/commonjs/index.js +94 -0
  86. package/lib/commonjs/index.js.map +1 -0
  87. package/lib/commonjs/package.json +1 -0
  88. package/lib/commonjs/phase2.test.js +446 -0
  89. package/lib/commonjs/phase2.test.js.map +1 -0
  90. package/lib/commonjs/phase3.test.js +91 -0
  91. package/lib/commonjs/phase3.test.js.map +1 -0
  92. package/lib/commonjs/phase4.test.js +89 -0
  93. package/lib/commonjs/phase4.test.js.map +1 -0
  94. package/lib/commonjs/phase5.test.js +246 -0
  95. package/lib/commonjs/phase5.test.js.map +1 -0
  96. package/lib/commonjs/phase7.test.js +284 -0
  97. package/lib/commonjs/phase7.test.js.map +1 -0
  98. package/lib/commonjs/range-helpers.test.js +182 -0
  99. package/lib/commonjs/range-helpers.test.js.map +1 -0
  100. package/lib/commonjs/theme/create-theme.js +37 -0
  101. package/lib/commonjs/theme/create-theme.js.map +1 -0
  102. package/lib/commonjs/theme/default-theme.js +99 -0
  103. package/lib/commonjs/theme/default-theme.js.map +1 -0
  104. package/lib/commonjs/theme/index.js +26 -0
  105. package/lib/commonjs/theme/index.js.map +1 -0
  106. package/lib/commonjs/theme/types.js +6 -0
  107. package/lib/commonjs/theme/types.js.map +1 -0
  108. package/lib/commonjs/utils/date-helpers.js +106 -0
  109. package/lib/commonjs/utils/date-helpers.js.map +1 -0
  110. package/lib/commonjs/utils/index.js +49 -0
  111. package/lib/commonjs/utils/index.js.map +1 -0
  112. package/lib/module/accessibility/index.js +4 -0
  113. package/lib/module/accessibility/index.js.map +1 -0
  114. package/lib/module/accessibility/labels.js +15 -0
  115. package/lib/module/accessibility/labels.js.map +1 -0
  116. package/lib/module/calendar/calendar-types.js +4 -0
  117. package/lib/module/calendar/calendar-types.js.map +1 -0
  118. package/lib/module/calendar/get-calendar-month-grid.js +111 -0
  119. package/lib/module/calendar/get-calendar-month-grid.js.map +1 -0
  120. package/lib/module/calendar/index.js +4 -0
  121. package/lib/module/calendar/index.js.map +1 -0
  122. package/lib/module/components/NepaliCalendar/CalendarDay.js +132 -0
  123. package/lib/module/components/NepaliCalendar/CalendarDay.js.map +1 -0
  124. package/lib/module/components/NepaliCalendar/CalendarGrid.js +111 -0
  125. package/lib/module/components/NepaliCalendar/CalendarGrid.js.map +1 -0
  126. package/lib/module/components/NepaliCalendar/CalendarHeader.js +109 -0
  127. package/lib/module/components/NepaliCalendar/CalendarHeader.js.map +1 -0
  128. package/lib/module/components/NepaliCalendar/CalendarWeekdays.js +39 -0
  129. package/lib/module/components/NepaliCalendar/CalendarWeekdays.js.map +1 -0
  130. package/lib/module/components/NepaliCalendar/NepaliCalendar.js +283 -0
  131. package/lib/module/components/NepaliCalendar/NepaliCalendar.js.map +1 -0
  132. package/lib/module/components/NepaliCalendar/index.js +4 -0
  133. package/lib/module/components/NepaliCalendar/index.js.map +1 -0
  134. package/lib/module/components/NepaliCalendar/types.js +4 -0
  135. package/lib/module/components/NepaliCalendar/types.js.map +1 -0
  136. package/lib/module/components/NepaliDatePicker/DatePickerModal.js +180 -0
  137. package/lib/module/components/NepaliDatePicker/DatePickerModal.js.map +1 -0
  138. package/lib/module/components/NepaliDatePicker/NepaliDatePicker.js +143 -0
  139. package/lib/module/components/NepaliDatePicker/NepaliDatePicker.js.map +1 -0
  140. package/lib/module/components/NepaliDatePicker/index.js +5 -0
  141. package/lib/module/components/NepaliDatePicker/index.js.map +1 -0
  142. package/lib/module/components/NepaliDatePicker/types.js +4 -0
  143. package/lib/module/components/NepaliDatePicker/types.js.map +1 -0
  144. package/lib/module/components/NepaliRangePicker/NepaliRangePicker.js +182 -0
  145. package/lib/module/components/NepaliRangePicker/NepaliRangePicker.js.map +1 -0
  146. package/lib/module/components/NepaliRangePicker/RangePickerModal.js +270 -0
  147. package/lib/module/components/NepaliRangePicker/RangePickerModal.js.map +1 -0
  148. package/lib/module/components/NepaliRangePicker/index.js +6 -0
  149. package/lib/module/components/NepaliRangePicker/index.js.map +1 -0
  150. package/lib/module/components/NepaliRangePicker/range-utils.js +61 -0
  151. package/lib/module/components/NepaliRangePicker/range-utils.js.map +1 -0
  152. package/lib/module/components/NepaliRangePicker/types.js +4 -0
  153. package/lib/module/components/NepaliRangePicker/types.js.map +1 -0
  154. package/lib/module/core/arithmetic.js +29 -0
  155. package/lib/module/core/arithmetic.js.map +1 -0
  156. package/lib/module/core/bsData.js +82 -0
  157. package/lib/module/core/bsData.js.map +1 -0
  158. package/lib/module/core/conversion.js +48 -0
  159. package/lib/module/core/conversion.js.map +1 -0
  160. package/lib/module/core/dateKey.js +26 -0
  161. package/lib/module/core/dateKey.js.map +1 -0
  162. package/lib/module/core/epochDay.js +39 -0
  163. package/lib/module/core/epochDay.js.map +1 -0
  164. package/lib/module/core/format/format.js +82 -0
  165. package/lib/module/core/format/format.js.map +1 -0
  166. package/lib/module/core/format/index.js +5 -0
  167. package/lib/module/core/format/index.js.map +1 -0
  168. package/lib/module/core/format/parse.js +37 -0
  169. package/lib/module/core/format/parse.js.map +1 -0
  170. package/lib/module/core/format/tokens.js +5 -0
  171. package/lib/module/core/format/tokens.js.map +1 -0
  172. package/lib/module/core/index.js +13 -0
  173. package/lib/module/core/index.js.map +1 -0
  174. package/lib/module/core/locale/en.js +11 -0
  175. package/lib/module/core/locale/en.js.map +1 -0
  176. package/lib/module/core/locale/index.js +5 -0
  177. package/lib/module/core/locale/index.js.map +1 -0
  178. package/lib/module/core/locale/ne.js +11 -0
  179. package/lib/module/core/locale/ne.js.map +1 -0
  180. package/lib/module/core/locale/types.js +2 -0
  181. package/lib/module/core/locale/types.js.map +1 -0
  182. package/lib/module/core/numerals/index.js +4 -0
  183. package/lib/module/core/numerals/index.js.map +1 -0
  184. package/lib/module/core/numerals/nepali-numerals.js +23 -0
  185. package/lib/module/core/numerals/nepali-numerals.js.map +1 -0
  186. package/lib/module/core/types.js +2 -0
  187. package/lib/module/core/types.js.map +1 -0
  188. package/lib/module/core/validation.js +115 -0
  189. package/lib/module/core/validation.js.map +1 -0
  190. package/lib/module/core/validation.test.js +248 -0
  191. package/lib/module/core/validation.test.js.map +1 -0
  192. package/lib/module/exports.test.js +133 -0
  193. package/lib/module/exports.test.js.map +1 -0
  194. package/lib/module/index.js +11 -0
  195. package/lib/module/index.js.map +1 -0
  196. package/lib/module/package.json +1 -0
  197. package/lib/module/phase2.test.js +446 -0
  198. package/lib/module/phase2.test.js.map +1 -0
  199. package/lib/module/phase3.test.js +91 -0
  200. package/lib/module/phase3.test.js.map +1 -0
  201. package/lib/module/phase4.test.js +89 -0
  202. package/lib/module/phase4.test.js.map +1 -0
  203. package/lib/module/phase5.test.js +246 -0
  204. package/lib/module/phase5.test.js.map +1 -0
  205. package/lib/module/phase7.test.js +284 -0
  206. package/lib/module/phase7.test.js.map +1 -0
  207. package/lib/module/range-helpers.test.js +182 -0
  208. package/lib/module/range-helpers.test.js.map +1 -0
  209. package/lib/module/theme/create-theme.js +33 -0
  210. package/lib/module/theme/create-theme.js.map +1 -0
  211. package/lib/module/theme/default-theme.js +95 -0
  212. package/lib/module/theme/default-theme.js.map +1 -0
  213. package/lib/module/theme/index.js +5 -0
  214. package/lib/module/theme/index.js.map +1 -0
  215. package/lib/module/theme/types.js +4 -0
  216. package/lib/module/theme/types.js.map +1 -0
  217. package/lib/module/utils/date-helpers.js +96 -0
  218. package/lib/module/utils/date-helpers.js.map +1 -0
  219. package/lib/module/utils/index.js +4 -0
  220. package/lib/module/utils/index.js.map +1 -0
  221. package/lib/typescript/src/accessibility/index.d.ts +2 -0
  222. package/lib/typescript/src/accessibility/index.d.ts.map +1 -0
  223. package/lib/typescript/src/accessibility/labels.d.ts +6 -0
  224. package/lib/typescript/src/accessibility/labels.d.ts.map +1 -0
  225. package/lib/typescript/src/calendar/calendar-types.d.ts +23 -0
  226. package/lib/typescript/src/calendar/calendar-types.d.ts.map +1 -0
  227. package/lib/typescript/src/calendar/get-calendar-month-grid.d.ts +3 -0
  228. package/lib/typescript/src/calendar/get-calendar-month-grid.d.ts.map +1 -0
  229. package/lib/typescript/src/calendar/index.d.ts +3 -0
  230. package/lib/typescript/src/calendar/index.d.ts.map +1 -0
  231. package/lib/typescript/src/components/NepaliCalendar/CalendarDay.d.ts +23 -0
  232. package/lib/typescript/src/components/NepaliCalendar/CalendarDay.d.ts.map +1 -0
  233. package/lib/typescript/src/components/NepaliCalendar/CalendarGrid.d.ts +25 -0
  234. package/lib/typescript/src/components/NepaliCalendar/CalendarGrid.d.ts.map +1 -0
  235. package/lib/typescript/src/components/NepaliCalendar/CalendarHeader.d.ts +17 -0
  236. package/lib/typescript/src/components/NepaliCalendar/CalendarHeader.d.ts.map +1 -0
  237. package/lib/typescript/src/components/NepaliCalendar/CalendarWeekdays.d.ts +11 -0
  238. package/lib/typescript/src/components/NepaliCalendar/CalendarWeekdays.d.ts.map +1 -0
  239. package/lib/typescript/src/components/NepaliCalendar/NepaliCalendar.d.ts +4 -0
  240. package/lib/typescript/src/components/NepaliCalendar/NepaliCalendar.d.ts.map +1 -0
  241. package/lib/typescript/src/components/NepaliCalendar/index.d.ts +3 -0
  242. package/lib/typescript/src/components/NepaliCalendar/index.d.ts.map +1 -0
  243. package/lib/typescript/src/components/NepaliCalendar/types.d.ts +52 -0
  244. package/lib/typescript/src/components/NepaliCalendar/types.d.ts.map +1 -0
  245. package/lib/typescript/src/components/NepaliDatePicker/DatePickerModal.d.ts +4 -0
  246. package/lib/typescript/src/components/NepaliDatePicker/DatePickerModal.d.ts.map +1 -0
  247. package/lib/typescript/src/components/NepaliDatePicker/NepaliDatePicker.d.ts +4 -0
  248. package/lib/typescript/src/components/NepaliDatePicker/NepaliDatePicker.d.ts.map +1 -0
  249. package/lib/typescript/src/components/NepaliDatePicker/index.d.ts +4 -0
  250. package/lib/typescript/src/components/NepaliDatePicker/index.d.ts.map +1 -0
  251. package/lib/typescript/src/components/NepaliDatePicker/types.d.ts +50 -0
  252. package/lib/typescript/src/components/NepaliDatePicker/types.d.ts.map +1 -0
  253. package/lib/typescript/src/components/NepaliRangePicker/NepaliRangePicker.d.ts +4 -0
  254. package/lib/typescript/src/components/NepaliRangePicker/NepaliRangePicker.d.ts.map +1 -0
  255. package/lib/typescript/src/components/NepaliRangePicker/RangePickerModal.d.ts +4 -0
  256. package/lib/typescript/src/components/NepaliRangePicker/RangePickerModal.d.ts.map +1 -0
  257. package/lib/typescript/src/components/NepaliRangePicker/index.d.ts +5 -0
  258. package/lib/typescript/src/components/NepaliRangePicker/index.d.ts.map +1 -0
  259. package/lib/typescript/src/components/NepaliRangePicker/range-utils.d.ts +13 -0
  260. package/lib/typescript/src/components/NepaliRangePicker/range-utils.d.ts.map +1 -0
  261. package/lib/typescript/src/components/NepaliRangePicker/types.d.ts +61 -0
  262. package/lib/typescript/src/components/NepaliRangePicker/types.d.ts.map +1 -0
  263. package/lib/typescript/src/core/arithmetic.d.ts +6 -0
  264. package/lib/typescript/src/core/arithmetic.d.ts.map +1 -0
  265. package/lib/typescript/src/core/bsData.d.ts +39 -0
  266. package/lib/typescript/src/core/bsData.d.ts.map +1 -0
  267. package/lib/typescript/src/core/conversion.d.ts +4 -0
  268. package/lib/typescript/src/core/conversion.d.ts.map +1 -0
  269. package/lib/typescript/src/core/dateKey.d.ts +4 -0
  270. package/lib/typescript/src/core/dateKey.d.ts.map +1 -0
  271. package/lib/typescript/src/core/epochDay.d.ts +7 -0
  272. package/lib/typescript/src/core/epochDay.d.ts.map +1 -0
  273. package/lib/typescript/src/core/format/format.d.ts +8 -0
  274. package/lib/typescript/src/core/format/format.d.ts.map +1 -0
  275. package/lib/typescript/src/core/format/index.d.ts +5 -0
  276. package/lib/typescript/src/core/format/index.d.ts.map +1 -0
  277. package/lib/typescript/src/core/format/parse.d.ts +7 -0
  278. package/lib/typescript/src/core/format/parse.d.ts.map +1 -0
  279. package/lib/typescript/src/core/format/tokens.d.ts +4 -0
  280. package/lib/typescript/src/core/format/tokens.d.ts.map +1 -0
  281. package/lib/typescript/src/core/index.d.ts +11 -0
  282. package/lib/typescript/src/core/index.d.ts.map +1 -0
  283. package/lib/typescript/src/core/locale/en.d.ts +3 -0
  284. package/lib/typescript/src/core/locale/en.d.ts.map +1 -0
  285. package/lib/typescript/src/core/locale/index.d.ts +4 -0
  286. package/lib/typescript/src/core/locale/index.d.ts.map +1 -0
  287. package/lib/typescript/src/core/locale/ne.d.ts +3 -0
  288. package/lib/typescript/src/core/locale/ne.d.ts.map +1 -0
  289. package/lib/typescript/src/core/locale/types.d.ts +11 -0
  290. package/lib/typescript/src/core/locale/types.d.ts.map +1 -0
  291. package/lib/typescript/src/core/numerals/index.d.ts +2 -0
  292. package/lib/typescript/src/core/numerals/index.d.ts.map +1 -0
  293. package/lib/typescript/src/core/numerals/nepali-numerals.d.ts +3 -0
  294. package/lib/typescript/src/core/numerals/nepali-numerals.d.ts.map +1 -0
  295. package/lib/typescript/src/core/types.d.ts +14 -0
  296. package/lib/typescript/src/core/types.d.ts.map +1 -0
  297. package/lib/typescript/src/core/validation.d.ts +17 -0
  298. package/lib/typescript/src/core/validation.d.ts.map +1 -0
  299. package/lib/typescript/src/index.d.ts +9 -0
  300. package/lib/typescript/src/index.d.ts.map +1 -0
  301. package/lib/typescript/src/theme/create-theme.d.ts +6 -0
  302. package/lib/typescript/src/theme/create-theme.d.ts.map +1 -0
  303. package/lib/typescript/src/theme/default-theme.d.ts +4 -0
  304. package/lib/typescript/src/theme/default-theme.d.ts.map +1 -0
  305. package/lib/typescript/src/theme/index.d.ts +4 -0
  306. package/lib/typescript/src/theme/index.d.ts.map +1 -0
  307. package/lib/typescript/src/theme/types.d.ts +43 -0
  308. package/lib/typescript/src/theme/types.d.ts.map +1 -0
  309. package/lib/typescript/src/utils/date-helpers.d.ts +27 -0
  310. package/lib/typescript/src/utils/date-helpers.d.ts.map +1 -0
  311. package/lib/typescript/src/utils/index.d.ts +2 -0
  312. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  313. package/package.json +85 -0
  314. package/src/accessibility/index.ts +5 -0
  315. package/src/accessibility/labels.ts +22 -0
  316. package/src/calendar/calendar-types.ts +25 -0
  317. package/src/calendar/get-calendar-month-grid.ts +125 -0
  318. package/src/calendar/index.ts +2 -0
  319. package/src/components/NepaliCalendar/CalendarDay.tsx +198 -0
  320. package/src/components/NepaliCalendar/CalendarGrid.tsx +159 -0
  321. package/src/components/NepaliCalendar/CalendarHeader.tsx +126 -0
  322. package/src/components/NepaliCalendar/CalendarWeekdays.tsx +49 -0
  323. package/src/components/NepaliCalendar/NepaliCalendar.tsx +279 -0
  324. package/src/components/NepaliCalendar/index.ts +6 -0
  325. package/src/components/NepaliCalendar/types.ts +62 -0
  326. package/src/components/NepaliDatePicker/DatePickerModal.tsx +220 -0
  327. package/src/components/NepaliDatePicker/NepaliDatePicker.tsx +171 -0
  328. package/src/components/NepaliDatePicker/index.ts +3 -0
  329. package/src/components/NepaliDatePicker/types.ts +70 -0
  330. package/src/components/NepaliRangePicker/NepaliRangePicker.tsx +206 -0
  331. package/src/components/NepaliRangePicker/RangePickerModal.tsx +336 -0
  332. package/src/components/NepaliRangePicker/index.ts +11 -0
  333. package/src/components/NepaliRangePicker/range-utils.ts +75 -0
  334. package/src/components/NepaliRangePicker/types.ts +84 -0
  335. package/src/core/arithmetic.ts +34 -0
  336. package/src/core/bsData.ts +115 -0
  337. package/src/core/conversion.ts +73 -0
  338. package/src/core/dateKey.ts +31 -0
  339. package/src/core/epochDay.ts +49 -0
  340. package/src/core/format/format.ts +108 -0
  341. package/src/core/format/index.ts +4 -0
  342. package/src/core/format/parse.ts +68 -0
  343. package/src/core/format/tokens.ts +35 -0
  344. package/src/core/index.ts +10 -0
  345. package/src/core/locale/en.ts +23 -0
  346. package/src/core/locale/index.ts +3 -0
  347. package/src/core/locale/ne.ts +31 -0
  348. package/src/core/locale/types.ts +12 -0
  349. package/src/core/numerals/index.ts +1 -0
  350. package/src/core/numerals/nepali-numerals.ts +27 -0
  351. package/src/core/types.ts +15 -0
  352. package/src/core/validation.test.ts +207 -0
  353. package/src/core/validation.ts +141 -0
  354. package/src/exports.test.ts +135 -0
  355. package/src/index.ts +8 -0
  356. package/src/phase2.test.ts +424 -0
  357. package/src/phase3.test.ts +83 -0
  358. package/src/phase4.test.ts +86 -0
  359. package/src/phase5.test.ts +257 -0
  360. package/src/phase7.test.ts +307 -0
  361. package/src/range-helpers.test.ts +153 -0
  362. package/src/theme/create-theme.ts +29 -0
  363. package/src/theme/default-theme.ts +99 -0
  364. package/src/theme/index.ts +3 -0
  365. package/src/theme/types.ts +44 -0
  366. package/src/utils/date-helpers.ts +146 -0
  367. package/src/utils/index.ts +9 -0
@@ -0,0 +1,288 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.NepaliCalendar = NepaliCalendar;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _core = require("../../core");
10
+ var _calendar = require("../../calendar");
11
+ var _locale = require("../../core/locale");
12
+ var _theme = require("../../theme");
13
+ var _utils = require("../../utils");
14
+ var _CalendarHeader = require("./CalendarHeader");
15
+ var _CalendarWeekdays = require("./CalendarWeekdays");
16
+ var _CalendarGrid = require("./CalendarGrid");
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
19
+ function getPreviousBSMonth(year, month) {
20
+ if (month === 1) return {
21
+ year: year - 1,
22
+ month: 12
23
+ };
24
+ return {
25
+ year,
26
+ month: month - 1
27
+ };
28
+ }
29
+ function getNextBSMonth(year, month) {
30
+ if (month === 12) return {
31
+ year: year + 1,
32
+ month: 1
33
+ };
34
+ return {
35
+ year,
36
+ month: month + 1
37
+ };
38
+ }
39
+ function resolveLocale(locale) {
40
+ if (!locale) return _locale.EN_LOCALE;
41
+ if (typeof locale === 'string') {
42
+ return locale === 'ne' ? _locale.NE_LOCALE : _locale.EN_LOCALE;
43
+ }
44
+ return locale;
45
+ }
46
+ function NepaliCalendar({
47
+ value,
48
+ defaultValue,
49
+ onChange,
50
+ year,
51
+ month,
52
+ defaultYear,
53
+ defaultMonth,
54
+ minDate,
55
+ maxDate,
56
+ locale,
57
+ numerals = 'latin',
58
+ weekStartsOn = 0,
59
+ markedDates,
60
+ theme,
61
+ colorScheme = 'system',
62
+ disabledDates,
63
+ onMonthChange,
64
+ renderDay,
65
+ rangeValue,
66
+ testID
67
+ }) {
68
+ const resolvedLocale = (0, _react.useMemo)(() => resolveLocale(locale), [locale]);
69
+ const calendarTheme = (0, _theme.useCalendarTheme)({
70
+ colorScheme,
71
+ theme
72
+ });
73
+ (0, _react.useEffect)(() => {
74
+ if (value && !(0, _core.isBSDateInSupportedRange)(value)) {
75
+ (0, _utils.warnOutOfRangeInDev)(value, {
76
+ min: 2000,
77
+ max: 2090
78
+ });
79
+ }
80
+ if (defaultValue && !(0, _core.isBSDateInSupportedRange)(defaultValue)) {
81
+ (0, _utils.warnOutOfRangeInDev)(defaultValue, {
82
+ min: 2000,
83
+ max: 2090
84
+ });
85
+ }
86
+ }, [value, defaultValue]);
87
+ (0, _react.useEffect)(() => {
88
+ (0, _utils.warnMinMaxInDev)(minDate, maxDate);
89
+ }, [minDate, maxDate]);
90
+ const safeDisplay = (0, _react.useMemo)(() => {
91
+ const fallback = (0, _core.getDefaultSupportedBSDate)();
92
+ if (value && (0, _core.isBSDateInSupportedRange)(value)) {
93
+ return {
94
+ year: value.year,
95
+ month: value.month
96
+ };
97
+ }
98
+ if (defaultValue && (0, _core.isBSDateInSupportedRange)(defaultValue)) {
99
+ return {
100
+ year: defaultValue.year,
101
+ month: defaultValue.month
102
+ };
103
+ }
104
+ if (year != null && month != null) {
105
+ const safe = (0, _core.getSafeCalendarMonth)({
106
+ year,
107
+ month
108
+ });
109
+ return safe;
110
+ }
111
+ if (defaultYear != null && defaultMonth != null) {
112
+ return (0, _core.getSafeCalendarMonth)({
113
+ year: defaultYear,
114
+ month: defaultMonth
115
+ });
116
+ }
117
+ try {
118
+ const today = (0, _core.todayBS)();
119
+ if ((0, _core.isBSDateInSupportedRange)(today)) {
120
+ return {
121
+ year: today.year,
122
+ month: today.month
123
+ };
124
+ }
125
+ } catch {
126
+ // fall through
127
+ }
128
+ return {
129
+ year: fallback.year,
130
+ month: fallback.month
131
+ };
132
+ }, [value, defaultValue, year, month, defaultYear, defaultMonth]);
133
+ const [internalYear, setInternalYear] = (0, _react.useState)(safeDisplay.year);
134
+ const [internalMonth, setInternalMonth] = (0, _react.useState)(safeDisplay.month);
135
+ const wasControlledRef = (0, _react.useRef)(year !== undefined && month !== undefined);
136
+ (0, _react.useEffect)(() => {
137
+ const isControlled = year !== undefined && month !== undefined;
138
+ if (isControlled) {
139
+ wasControlledRef.current = true;
140
+ const safe = (0, _core.getSafeCalendarMonth)({
141
+ year,
142
+ month
143
+ });
144
+ setInternalYear(safe.year);
145
+ setInternalMonth(safe.month);
146
+ } else if (wasControlledRef.current) {
147
+ wasControlledRef.current = false;
148
+ const safe = (0, _core.getSafeCalendarMonth)({
149
+ year: defaultYear,
150
+ month: defaultMonth,
151
+ value,
152
+ defaultValue
153
+ });
154
+ setInternalYear(safe.year);
155
+ setInternalMonth(safe.month);
156
+ }
157
+ }, [year, month, defaultYear, defaultMonth, value, defaultValue]);
158
+ const controlledYear = year !== undefined ? (0, _core.getSafeCalendarMonth)({
159
+ year,
160
+ month: month ?? 1
161
+ }).year : internalYear;
162
+ const controlledMonth = year !== undefined ? (0, _core.getSafeCalendarMonth)({
163
+ year,
164
+ month: month ?? 1
165
+ }).month : internalMonth;
166
+ const handlePrevMonth = (0, _react.useCallback)(() => {
167
+ const prev = getPreviousBSMonth(controlledYear, controlledMonth);
168
+ if (year === undefined) {
169
+ const safe = (0, _core.getSafeCalendarMonth)({
170
+ year: prev.year,
171
+ month: prev.month
172
+ });
173
+ setInternalYear(safe.year);
174
+ setInternalMonth(safe.month);
175
+ }
176
+ onMonthChange?.(prev);
177
+ }, [controlledYear, controlledMonth, year, onMonthChange]);
178
+ const handleNextMonth = (0, _react.useCallback)(() => {
179
+ const next = getNextBSMonth(controlledYear, controlledMonth);
180
+ if (year === undefined) {
181
+ const safe = (0, _core.getSafeCalendarMonth)({
182
+ year: next.year,
183
+ month: next.month
184
+ });
185
+ setInternalYear(safe.year);
186
+ setInternalMonth(safe.month);
187
+ }
188
+ onMonthChange?.(next);
189
+ }, [controlledYear, controlledMonth, year, onMonthChange]);
190
+ const today = (0, _react.useMemo)(() => {
191
+ try {
192
+ const t = (0, _core.todayBS)();
193
+ return (0, _core.isBSDateInSupportedRange)(t) ? t : null;
194
+ } catch {
195
+ return null;
196
+ }
197
+ }, []);
198
+ const grid = (0, _react.useMemo)(() => {
199
+ try {
200
+ return (0, _calendar.getCalendarMonthGrid)({
201
+ year: controlledYear,
202
+ month: controlledMonth,
203
+ weekStartsOn,
204
+ minDate,
205
+ maxDate,
206
+ today: today ?? undefined
207
+ });
208
+ } catch {
209
+ return {
210
+ year: controlledYear,
211
+ month: controlledMonth,
212
+ weeks: []
213
+ };
214
+ }
215
+ }, [controlledYear, controlledMonth, weekStartsOn, minDate, maxDate, today]);
216
+ const canGoPrev = (0, _react.useMemo)(() => {
217
+ const prev = getPreviousBSMonth(controlledYear, controlledMonth);
218
+ try {
219
+ (0, _core.getBSMonthLength)(prev.year, prev.month);
220
+ return true;
221
+ } catch {
222
+ return false;
223
+ }
224
+ }, [controlledYear, controlledMonth]);
225
+ const canGoNext = (0, _react.useMemo)(() => {
226
+ const next = getNextBSMonth(controlledYear, controlledMonth);
227
+ try {
228
+ (0, _core.getBSMonthLength)(next.year, next.month);
229
+ return true;
230
+ } catch {
231
+ return false;
232
+ }
233
+ }, [controlledYear, controlledMonth]);
234
+ const resolvedValue = value && (0, _core.isBSDateInSupportedRange)(value) ? value : null;
235
+ const handleDayPress = (0, _react.useCallback)(date => {
236
+ onChange?.(date);
237
+ }, [onChange]);
238
+ const accessibilityLabel = (0, _react.useMemo)(() => {
239
+ if (!resolvedValue) return undefined;
240
+ return (0, _utils.createDateAccessibilityLabel)(resolvedValue, resolvedLocale, {
241
+ selected: true,
242
+ today: today !== null && (0, _core.compareBS)(resolvedValue, today) === 0
243
+ });
244
+ }, [resolvedValue, resolvedLocale, today]);
245
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
246
+ style: [styles.container, {
247
+ backgroundColor: calendarTheme.colors.background
248
+ }],
249
+ testID: testID,
250
+ accessibilityLabel: accessibilityLabel,
251
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CalendarHeader.CalendarHeader, {
252
+ year: controlledYear,
253
+ month: controlledMonth,
254
+ locale: resolvedLocale,
255
+ numerals: numerals,
256
+ theme: calendarTheme,
257
+ onPrevMonth: handlePrevMonth,
258
+ onNextMonth: handleNextMonth,
259
+ canGoPrev: canGoPrev,
260
+ canGoNext: canGoNext
261
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CalendarWeekdays.CalendarWeekdays, {
262
+ locale: resolvedLocale,
263
+ weekStartsOn: weekStartsOn,
264
+ theme: calendarTheme
265
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CalendarGrid.CalendarGrid, {
266
+ grid: grid,
267
+ value: resolvedValue,
268
+ today: today,
269
+ minDate: minDate,
270
+ maxDate: maxDate,
271
+ numerals: numerals,
272
+ theme: calendarTheme,
273
+ markedDates: markedDates,
274
+ disabledDates: disabledDates,
275
+ onChange: handleDayPress,
276
+ renderDay: renderDay,
277
+ rangeValue: rangeValue,
278
+ locale: resolvedLocale
279
+ })]
280
+ });
281
+ }
282
+ const styles = _reactNative.StyleSheet.create({
283
+ container: {
284
+ borderRadius: 12,
285
+ overflow: 'hidden'
286
+ }
287
+ });
288
+ //# sourceMappingURL=NepaliCalendar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_core","_calendar","_locale","_theme","_utils","_CalendarHeader","_CalendarWeekdays","_CalendarGrid","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","getPreviousBSMonth","year","month","getNextBSMonth","resolveLocale","locale","EN_LOCALE","NE_LOCALE","NepaliCalendar","value","defaultValue","onChange","defaultYear","defaultMonth","minDate","maxDate","numerals","weekStartsOn","markedDates","theme","colorScheme","disabledDates","onMonthChange","renderDay","rangeValue","testID","resolvedLocale","useMemo","calendarTheme","useCalendarTheme","useEffect","isBSDateInSupportedRange","warnOutOfRangeInDev","min","max","warnMinMaxInDev","safeDisplay","fallback","getDefaultSupportedBSDate","safe","getSafeCalendarMonth","today","todayBS","internalYear","setInternalYear","useState","internalMonth","setInternalMonth","wasControlledRef","useRef","undefined","isControlled","current","controlledYear","controlledMonth","handlePrevMonth","useCallback","prev","handleNextMonth","next","grid","getCalendarMonthGrid","weeks","canGoPrev","getBSMonthLength","canGoNext","resolvedValue","handleDayPress","date","accessibilityLabel","createDateAccessibilityLabel","selected","compareBS","jsxs","View","style","styles","container","backgroundColor","colors","background","children","jsx","CalendarHeader","onPrevMonth","onNextMonth","CalendarWeekdays","CalendarGrid","StyleSheet","create","borderRadius","overflow"],"sourceRoot":"../../../../src","sources":["components/NepaliCalendar/NepaliCalendar.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AAQA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAEA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AAA8C,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAD,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAY,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,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A,EAACzG,eAAA,CAAA0G,cAAc;MACblF,IAAI,EAAEoD,cAAe;MACrBnD,KAAK,EAAEoD,eAAgB;MACvBjD,MAAM,EAAEqB,cAAe;MACvBV,QAAQ,EAAEA,QAAS;MACnBG,KAAK,EAAES,aAAc;MACrBwD,WAAW,EAAE7B,eAAgB;MAC7B8B,WAAW,EAAE3B,eAAgB;MAC7BK,SAAS,EAAEA,SAAU;MACrBE,SAAS,EAAEA;IAAU,CACtB,CAAC,eAEF,IAAArF,WAAA,CAAAsG,GAAA,EAACxG,iBAAA,CAAA4G,gBAAgB;MACfjF,MAAM,EAAEqB,cAAe;MACvBT,YAAY,EAAEA,YAAa;MAC3BE,KAAK,EAAES;IAAc,CACtB,CAAC,eAEF,IAAAhD,WAAA,CAAAsG,GAAA,EAACvG,aAAA,CAAA4G,YAAY;MACX3B,IAAI,EAAEA,IAAK;MACXnD,KAAK,EAAEyD,aAAc;MACrBzB,KAAK,EAAEA,KAAM;MACb3B,OAAO,EAAEA,OAAQ;MACjBC,OAAO,EAAEA,OAAQ;MACjBC,QAAQ,EAAEA,QAAS;MACnBG,KAAK,EAAES,aAAc;MACrBV,WAAW,EAAEA,WAAY;MACzBG,aAAa,EAAEA,aAAc;MAC7BV,QAAQ,EAAEwD,cAAe;MACzB5C,SAAS,EAAEA,SAAU;MACrBC,UAAU,EAAEA,UAAW;MACvBnB,MAAM,EAAEqB;IAAe,CACxB,CAAC;EAAA,CACE,CAAC;AAEX;AAEA,MAAMkD,MAAM,GAAGY,uBAAU,CAACC,MAAM,CAAC;EAC/BZ,SAAS,EAAE;IACTa,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "NepaliCalendar", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _NepaliCalendar.NepaliCalendar;
10
+ }
11
+ });
12
+ var _NepaliCalendar = require("./NepaliCalendar");
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_NepaliCalendar","require"],"sourceRoot":"../../../../src","sources":["components/NepaliCalendar/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/NepaliCalendar/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DatePickerModal = DatePickerModal;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _theme = require("../../theme");
10
+ var _utils = require("../../utils");
11
+ var _NepaliCalendar = require("../NepaliCalendar");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
+ function DatePickerModal({
15
+ visible,
16
+ value,
17
+ defaultValue,
18
+ onChange,
19
+ onConfirm,
20
+ onCancel,
21
+ onClose,
22
+ locale,
23
+ numerals,
24
+ minDate,
25
+ maxDate,
26
+ markedDates,
27
+ disabledDates,
28
+ weekStartsOn,
29
+ theme,
30
+ colorScheme,
31
+ title = 'Select Date',
32
+ confirmText = 'Confirm',
33
+ cancelText = 'Cancel',
34
+ testID
35
+ }) {
36
+ const calendarTheme = (0, _theme.useCalendarTheme)({
37
+ colorScheme,
38
+ theme
39
+ });
40
+ const [tempDate, setTempDate] = (0, _react.useState)(() => (0, _utils.getSafeInitialBSDate)(value, defaultValue));
41
+ (0, _react.useEffect)(() => {
42
+ if (visible) {
43
+ setTempDate((0, _utils.getSafeInitialBSDate)(value, defaultValue));
44
+ }
45
+ }, [visible, value, defaultValue]);
46
+ const handleConfirm = (0, _react.useCallback)(() => {
47
+ onConfirm?.(tempDate);
48
+ onChange?.(tempDate);
49
+ onClose?.();
50
+ }, [tempDate, onConfirm, onChange, onClose]);
51
+ const handleCancel = (0, _react.useCallback)(() => {
52
+ onCancel?.();
53
+ onClose?.();
54
+ }, [onCancel, onClose]);
55
+ const handleBackdropPress = (0, _react.useCallback)(() => {
56
+ onCancel?.();
57
+ onClose?.();
58
+ }, [onCancel, onClose]);
59
+ const modalContent = (0, _react.useMemo)(() => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
60
+ style: [styles.modalContent, {
61
+ backgroundColor: calendarTheme.colors.modalBackground
62
+ }],
63
+ testID: testID,
64
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
65
+ style: [styles.title, {
66
+ color: calendarTheme.colors.text,
67
+ borderBottomColor: calendarTheme.colors.border
68
+ }],
69
+ children: title
70
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
71
+ style: styles.calendarWrapper,
72
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NepaliCalendar.NepaliCalendar, {
73
+ value: tempDate,
74
+ onChange: setTempDate,
75
+ locale: locale,
76
+ numerals: numerals,
77
+ minDate: minDate,
78
+ maxDate: maxDate,
79
+ markedDates: markedDates,
80
+ disabledDates: disabledDates,
81
+ weekStartsOn: weekStartsOn,
82
+ theme: theme,
83
+ colorScheme: colorScheme
84
+ })
85
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
86
+ style: [styles.buttonRow, {
87
+ borderTopColor: calendarTheme.colors.border
88
+ }],
89
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
90
+ style: [styles.button, styles.cancelButton],
91
+ onPress: handleCancel,
92
+ accessibilityRole: "button",
93
+ accessibilityLabel: cancelText,
94
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
95
+ style: [styles.cancelText, {
96
+ color: calendarTheme.colors.mutedText
97
+ }],
98
+ children: cancelText
99
+ })
100
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
101
+ style: [styles.button, {
102
+ backgroundColor: calendarTheme.colors.primary
103
+ }],
104
+ onPress: handleConfirm,
105
+ accessibilityRole: "button",
106
+ accessibilityLabel: "Confirm selected date",
107
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
108
+ style: [styles.confirmText, {
109
+ color: calendarTheme.colors.primaryText
110
+ }],
111
+ children: confirmText
112
+ })
113
+ })]
114
+ })]
115
+ }), [tempDate, title, locale, numerals, minDate, maxDate, markedDates, disabledDates, weekStartsOn, theme, colorScheme, testID, cancelText, confirmText, calendarTheme, handleCancel, handleConfirm]);
116
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
117
+ visible: visible,
118
+ transparent: true,
119
+ animationType: "fade",
120
+ onRequestClose: handleCancel,
121
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
122
+ onPress: handleBackdropPress,
123
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
124
+ style: [styles.backdrop, {
125
+ backgroundColor: calendarTheme.colors.overlay
126
+ }],
127
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
128
+ children: modalContent
129
+ })
130
+ })
131
+ })
132
+ });
133
+ }
134
+ const styles = _reactNative.StyleSheet.create({
135
+ backdrop: {
136
+ flex: 1,
137
+ justifyContent: 'center',
138
+ alignItems: 'center',
139
+ paddingHorizontal: 20
140
+ },
141
+ modalContent: {
142
+ borderRadius: 16,
143
+ overflow: 'hidden',
144
+ width: '100%',
145
+ maxWidth: 400
146
+ },
147
+ title: {
148
+ fontSize: 18,
149
+ fontWeight: '600',
150
+ textAlign: 'center',
151
+ paddingVertical: 16,
152
+ paddingHorizontal: 16,
153
+ borderBottomWidth: _reactNative.StyleSheet.hairlineWidth
154
+ },
155
+ calendarWrapper: {
156
+ padding: 8
157
+ },
158
+ buttonRow: {
159
+ flexDirection: 'row',
160
+ justifyContent: 'flex-end',
161
+ paddingHorizontal: 16,
162
+ paddingVertical: 12,
163
+ gap: 12,
164
+ borderTopWidth: _reactNative.StyleSheet.hairlineWidth
165
+ },
166
+ button: {
167
+ paddingVertical: 10,
168
+ paddingHorizontal: 20,
169
+ borderRadius: 8,
170
+ minWidth: 80,
171
+ alignItems: 'center'
172
+ },
173
+ cancelButton: {
174
+ backgroundColor: 'transparent'
175
+ },
176
+ cancelText: {
177
+ fontSize: 16,
178
+ fontWeight: '600'
179
+ },
180
+ confirmText: {
181
+ fontSize: 16,
182
+ fontWeight: '600'
183
+ }
184
+ });
185
+ //# sourceMappingURL=DatePickerModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_theme","_utils","_NepaliCalendar","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DatePickerModal","visible","value","defaultValue","onChange","onConfirm","onCancel","onClose","locale","numerals","minDate","maxDate","markedDates","disabledDates","weekStartsOn","theme","colorScheme","title","confirmText","cancelText","testID","calendarTheme","useCalendarTheme","tempDate","setTempDate","useState","getSafeInitialBSDate","useEffect","handleConfirm","useCallback","handleCancel","handleBackdropPress","modalContent","useMemo","jsxs","View","style","styles","backgroundColor","colors","modalBackground","children","jsx","Text","color","text","borderBottomColor","border","calendarWrapper","NepaliCalendar","buttonRow","borderTopColor","Pressable","button","cancelButton","onPress","accessibilityRole","accessibilityLabel","mutedText","primary","primaryText","Modal","transparent","animationType","onRequestClose","TouchableWithoutFeedback","backdrop","overlay","StyleSheet","create","flex","justifyContent","alignItems","paddingHorizontal","borderRadius","overflow","width","maxWidth","fontSize","fontWeight","textAlign","paddingVertical","borderBottomWidth","hairlineWidth","padding","flexDirection","gap","borderTopWidth","minWidth"],"sourceRoot":"../../../../src","sources":["components/NepaliDatePicker/DatePickerModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AAAmD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,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