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,182 @@
1
+ "use strict";
2
+
3
+ import { isBSDateInSupportedRange, clampBSDateToSupportedRange, getDefaultSupportedBSDate, getSafeCalendarMonth, SUPPORTED_BS_START_YEAR, SUPPORTED_BS_END_YEAR, getSupportedBSRange } from './core';
4
+ describe('supported range helpers', () => {
5
+ it('exports start and end year constants', () => {
6
+ expect(SUPPORTED_BS_START_YEAR).toBe(2081);
7
+ expect(SUPPORTED_BS_END_YEAR).toBe(2081);
8
+ });
9
+ it('getSupportedBSRange returns correct range', () => {
10
+ const range = getSupportedBSRange();
11
+ expect(range).toEqual({
12
+ start: 2081,
13
+ end: 2081
14
+ });
15
+ });
16
+ });
17
+ describe('isBSDateInSupportedRange', () => {
18
+ it('returns true for dates inside supported range', () => {
19
+ expect(isBSDateInSupportedRange({
20
+ calendar: 'BS',
21
+ year: 2081,
22
+ month: 1,
23
+ day: 1
24
+ })).toBe(true);
25
+ expect(isBSDateInSupportedRange({
26
+ calendar: 'BS',
27
+ year: 2081,
28
+ month: 12,
29
+ day: 30
30
+ })).toBe(true);
31
+ });
32
+ it('returns false for dates outside supported range', () => {
33
+ expect(isBSDateInSupportedRange({
34
+ calendar: 'BS',
35
+ year: 2080,
36
+ month: 1,
37
+ day: 1
38
+ })).toBe(false);
39
+ expect(isBSDateInSupportedRange({
40
+ calendar: 'BS',
41
+ year: 2082,
42
+ month: 1,
43
+ day: 1
44
+ })).toBe(false);
45
+ });
46
+ it('returns false for invalid calendar', () => {
47
+ expect(isBSDateInSupportedRange({
48
+ calendar: 'AD',
49
+ year: 2081,
50
+ month: 1,
51
+ day: 1
52
+ })).toBe(false);
53
+ });
54
+ });
55
+ describe('clampBSDateToSupportedRange', () => {
56
+ it('returns same date when already in range', () => {
57
+ const date = {
58
+ calendar: 'BS',
59
+ year: 2081,
60
+ month: 6,
61
+ day: 15
62
+ };
63
+ expect(clampBSDateToSupportedRange(date)).toEqual(date);
64
+ });
65
+ it('clamps year below range to start year month 1 day 1', () => {
66
+ const result = clampBSDateToSupportedRange({
67
+ calendar: 'BS',
68
+ year: 2080,
69
+ month: 6,
70
+ day: 15
71
+ });
72
+ expect(result.year).toBe(2081);
73
+ expect(result.month).toBe(1);
74
+ expect(result.day).toBe(1);
75
+ });
76
+ it('clamps year above range to end year month 12 day 30', () => {
77
+ const result = clampBSDateToSupportedRange({
78
+ calendar: 'BS',
79
+ year: 2082,
80
+ month: 6,
81
+ day: 15
82
+ });
83
+ expect(result.year).toBe(2081);
84
+ expect(result.month).toBe(12);
85
+ expect(result.day).toBe(30);
86
+ });
87
+ it('clamps month to valid range', () => {
88
+ const result = clampBSDateToSupportedRange({
89
+ calendar: 'BS',
90
+ year: 2081,
91
+ month: 13,
92
+ day: 1
93
+ });
94
+ expect(result.month).toBe(12);
95
+ });
96
+ it('clamps day to valid month length', () => {
97
+ const result = clampBSDateToSupportedRange({
98
+ calendar: 'BS',
99
+ year: 2081,
100
+ month: 8,
101
+ day: 30
102
+ });
103
+ expect(result.day).toBe(29);
104
+ });
105
+ });
106
+ describe('getDefaultSupportedBSDate', () => {
107
+ it('returns first day of first supported year', () => {
108
+ const date = getDefaultSupportedBSDate();
109
+ expect(date).toEqual({
110
+ calendar: 'BS',
111
+ year: 2081,
112
+ month: 1,
113
+ day: 1
114
+ });
115
+ });
116
+ });
117
+ describe('getSafeCalendarMonth', () => {
118
+ it('uses value when in supported range', () => {
119
+ const result = getSafeCalendarMonth({
120
+ value: {
121
+ calendar: 'BS',
122
+ year: 2081,
123
+ month: 5,
124
+ day: 10
125
+ }
126
+ });
127
+ expect(result).toEqual({
128
+ year: 2081,
129
+ month: 5
130
+ });
131
+ });
132
+ it('uses defaultValue when value is null', () => {
133
+ const result = getSafeCalendarMonth({
134
+ value: null,
135
+ defaultValue: {
136
+ calendar: 'BS',
137
+ year: 2081,
138
+ month: 3,
139
+ day: 1
140
+ }
141
+ });
142
+ expect(result).toEqual({
143
+ year: 2081,
144
+ month: 3
145
+ });
146
+ });
147
+ it('uses year/month when in supported range', () => {
148
+ const result = getSafeCalendarMonth({
149
+ year: 2081,
150
+ month: 7
151
+ });
152
+ expect(result).toEqual({
153
+ year: 2081,
154
+ month: 7
155
+ });
156
+ });
157
+ it('falls back to supported range when year is out of range', () => {
158
+ const result = getSafeCalendarMonth({
159
+ year: 2082,
160
+ month: 1
161
+ });
162
+ expect(result).toEqual({
163
+ year: 2081,
164
+ month: 1
165
+ });
166
+ });
167
+ it('falls back to supported range when no valid input', () => {
168
+ const result = getSafeCalendarMonth({});
169
+ expect(result).toEqual({
170
+ year: 2081,
171
+ month: 1
172
+ });
173
+ });
174
+ it('falls back to supported range when input is undefined', () => {
175
+ const result = getSafeCalendarMonth();
176
+ expect(result).toEqual({
177
+ year: 2081,
178
+ month: 1
179
+ });
180
+ });
181
+ });
182
+ //# sourceMappingURL=range-helpers.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isBSDateInSupportedRange","clampBSDateToSupportedRange","getDefaultSupportedBSDate","getSafeCalendarMonth","SUPPORTED_BS_START_YEAR","SUPPORTED_BS_END_YEAR","getSupportedBSRange","describe","it","expect","toBe","range","toEqual","start","end","calendar","year","month","day","date","result","value","defaultValue"],"sourceRoot":"../../src","sources":["range-helpers.test.ts"],"mappings":";;AAAA,SACEA,wBAAwB,EACxBC,2BAA2B,EAC3BC,yBAAyB,EACzBC,oBAAoB,EACpBC,uBAAuB,EACvBC,qBAAqB,EACrBC,mBAAmB,QACd,QAAQ;AAEfC,QAAQ,CAAC,yBAAyB,EAAE,MAAM;EACxCC,EAAE,CAAC,sCAAsC,EAAE,MAAM;IAC/CC,MAAM,CAACL,uBAAuB,CAAC,CAACM,IAAI,CAAC,IAAI,CAAC;IAC1CD,MAAM,CAACJ,qBAAqB,CAAC,CAACK,IAAI,CAAC,IAAI,CAAC;EAC1C,CAAC,CAAC;EAEFF,EAAE,CAAC,2CAA2C,EAAE,MAAM;IACpD,MAAMG,KAAK,GAAGL,mBAAmB,CAAC,CAAC;IACnCG,MAAM,CAACE,KAAK,CAAC,CAACC,OAAO,CAAC;MAAEC,KAAK,EAAE,IAAI;MAAE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oBAAoB,CAAC,CAAC;IACrCM,MAAM,CAACW,MAAM,CAAC,CAACR,OAAO,CAAC;MAAEI,IAAI,EAAE,IAAI;MAAEC,KAAK,EAAE;IAAE,CAAC,CAAC;EAClD,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ import { useColorScheme } from 'react-native';
4
+ import { LIGHT_THEME, DARK_THEME } from './default-theme';
5
+ export function useCalendarTheme(options) {
6
+ const deviceScheme = useColorScheme();
7
+ const colorScheme = options?.colorScheme ?? 'system';
8
+ const resolved = colorScheme === 'system' ? deviceScheme : colorScheme;
9
+ const base = resolved === 'dark' ? DARK_THEME : LIGHT_THEME;
10
+ if (!options?.theme) return base;
11
+ return deepMergeThemes(base, options.theme);
12
+ }
13
+ function deepMergeThemes(base, override) {
14
+ return {
15
+ colors: {
16
+ ...base.colors,
17
+ ...(override.colors ?? {})
18
+ },
19
+ radius: {
20
+ ...base.radius,
21
+ ...(override.radius ?? {})
22
+ },
23
+ spacing: {
24
+ ...base.spacing,
25
+ ...(override.spacing ?? {})
26
+ },
27
+ typography: {
28
+ ...base.typography,
29
+ ...(override.typography ?? {})
30
+ }
31
+ };
32
+ }
33
+ //# sourceMappingURL=create-theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useColorScheme","LIGHT_THEME","DARK_THEME","useCalendarTheme","options","deviceScheme","colorScheme","resolved","base","theme","deepMergeThemes","override","colors","radius","spacing","typography"],"sourceRoot":"../../../src","sources":["theme/create-theme.ts"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,cAAc;AAE7C,SAASC,WAAW,EAAEC,UAAU,QAAQ,iBAAiB;AAEzD,OAAO,SAASC,gBAAgBA,CAACC,OAGhC,EAAiB;EAChB,MAAMC,YAAY,GAAGL,cAAc,CAAC,CAAC;EACrC,MAAMM,WAAW,GAAGF,OAAO,EAAEE,WAAW,IAAI,QAAQ;EACpD,MAAMC,QAAQ,GAAGD,WAAW,KAAK,QAAQ,GAAGD,YAAY,GAAGC,WAAW;EACtE,MAAME,IAAI,GAAGD,QAAQ,KAAK,MAAM,GAAGL,UAAU,GAAGD,WAAW;EAE3D,IAAI,CAACG,OAAO,EAAEK,KAAK,EAAE,OAAOD,IAAI;EAEhC,OAAOE,eAAe,CAACF,IAAI,EAAEJ,OAAO,CAACK,KAAK,CAAC;AAC7C;AAEA,SAASC,eAAeA,CACtBF,IAAmB,EACnBG,QAAgC,EACjB;EACf,OAAO;IACLC,MAAM,EAAE;MAAE,GAAGJ,IAAI,CAACI,MAAM;MAAE,IAAID,QAAQ,CAACC,MAAM,IAAI,CAAC,CAAC;IAAE,CAAC;IACtDC,MAAM,EAAE;MAAE,GAAGL,IAAI,CAACK,MAAM;MAAE,IAAIF,QAAQ,CAACE,MAAM,IAAI,CAAC,CAAC;IAAE,CAAC;IACtDC,OAAO,EAAE;MAAE,GAAGN,IAAI,CAACM,OAAO;MAAE,IAAIH,QAAQ,CAACG,OAAO,IAAI,CAAC,CAAC;IAAE,CAAC;IACzDC,UAAU,EAAE;MAAE,GAAGP,IAAI,CAACO,UAAU;MAAE,IAAIJ,QAAQ,CAACI,UAAU,IAAI,CAAC,CAAC;IAAE;EACnE,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ const headerStyle = {
4
+ fontSize: 18,
5
+ fontWeight: '600'
6
+ };
7
+ const weekdayStyle = {
8
+ fontSize: 12,
9
+ fontWeight: '500'
10
+ };
11
+ const dayStyle = {
12
+ fontSize: 15,
13
+ fontWeight: '400'
14
+ };
15
+ export const LIGHT_THEME = {
16
+ colors: {
17
+ background: '#ffffff',
18
+ surface: '#ffffff',
19
+ text: '#111827',
20
+ mutedText: '#6b7280',
21
+ primary: '#2563eb',
22
+ primaryText: '#ffffff',
23
+ todayBorder: '#2563eb',
24
+ disabledText: '#d1d5db',
25
+ outsideMonthText: '#d1d5db',
26
+ border: '#e5e7eb',
27
+ marker: '#2563eb',
28
+ overlay: 'rgba(0, 0, 0, 0.5)',
29
+ modalBackground: '#ffffff',
30
+ fieldBackground: '#ffffff',
31
+ fieldBorder: '#e5e7eb',
32
+ placeholderText: '#9ca3af',
33
+ rangeBackground: '#dbeafe',
34
+ rangeText: '#1e40af',
35
+ rangeStartBackground: '#2563eb',
36
+ rangeEndBackground: '#2563eb',
37
+ danger: '#ef4444'
38
+ },
39
+ radius: {
40
+ day: 20,
41
+ calendar: 12
42
+ },
43
+ spacing: {
44
+ xs: 4,
45
+ sm: 8,
46
+ md: 12,
47
+ lg: 16
48
+ },
49
+ typography: {
50
+ header: headerStyle,
51
+ weekday: weekdayStyle,
52
+ day: dayStyle
53
+ }
54
+ };
55
+ export const DARK_THEME = {
56
+ colors: {
57
+ background: '#111827',
58
+ surface: '#1f2937',
59
+ text: '#f9fafb',
60
+ mutedText: '#9ca3af',
61
+ primary: '#3b82f6',
62
+ primaryText: '#ffffff',
63
+ todayBorder: '#3b82f6',
64
+ disabledText: '#4b5563',
65
+ outsideMonthText: '#4b5563',
66
+ border: '#374151',
67
+ marker: '#3b82f6',
68
+ overlay: 'rgba(0, 0, 0, 0.6)',
69
+ modalBackground: '#1f2937',
70
+ fieldBackground: '#1f2937',
71
+ fieldBorder: '#374151',
72
+ placeholderText: '#6b7280',
73
+ rangeBackground: '#1e3a5f',
74
+ rangeText: '#93c5fd',
75
+ rangeStartBackground: '#3b82f6',
76
+ rangeEndBackground: '#3b82f6',
77
+ danger: '#f87171'
78
+ },
79
+ radius: {
80
+ day: 20,
81
+ calendar: 12
82
+ },
83
+ spacing: {
84
+ xs: 4,
85
+ sm: 8,
86
+ md: 12,
87
+ lg: 16
88
+ },
89
+ typography: {
90
+ header: headerStyle,
91
+ weekday: weekdayStyle,
92
+ day: dayStyle
93
+ }
94
+ };
95
+ //# sourceMappingURL=default-theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["headerStyle","fontSize","fontWeight","weekdayStyle","dayStyle","LIGHT_THEME","colors","background","surface","text","mutedText","primary","primaryText","todayBorder","disabledText","outsideMonthText","border","marker","overlay","modalBackground","fieldBackground","fieldBorder","placeholderText","rangeBackground","rangeText","rangeStartBackground","rangeEndBackground","danger","radius","day","calendar","spacing","xs","sm","md","lg","typography","header","weekday","DARK_THEME"],"sourceRoot":"../../../src","sources":["theme/default-theme.ts"],"mappings":";;AAGA,MAAMA,WAAsB,GAAG;EAC7BC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE;AACd,CAAC;AAED,MAAMC,YAAuB,GAAG;EAC9BF,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE;AACd,CAAC;AAED,MAAME,QAAmB,GAAG;EAC1BH,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE;AACd,CAAC;AAED,OAAO,MAAMG,WAA0B,GAAG;EACxCC,MAAM,EAAE;IACNC,UAAU,EAAE,SAAS;IACrBC,OAAO,EAAE,SAAS;IAClBC,IAAI,EAAE,SAAS;IACfC,SAAS,EAAE,SAAS;IACpBC,OAAO,EAAE,SAAS;IAClBC,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,SAAS;IACtBC,YAAY,EAAE,SAAS;IACvBC,gBAAgB,EAAE,SAAS;IAC3BC,MAAM,EAAE,SAAS;IACjBC,MAAM,EAAE,SAAS;IACjBC,OAAO,EAAE,oBAAoB;IAC7BC,eAAe,EAAE,SAAS;IAC1BC,eAAe,EAAE,SAAS;IAC1BC,WAAW,EAAE,SAAS;IACtBC,eAAe,EAAE,SAAS;IAC1BC,eAAe,EAAE,SAAS;IAC1BC,SAAS,EAAE,SAAS;IACpBC,oBAAoB,EAAE,SAAS;IAC/BC,kBAAkB,EAAE,SAAS;IAC7BC,MAAM,EAAE;EACV,CAAC;EACDC,MAAM,EAAE;IACNC,GAAG,EAAE,EAAE;IACPC,QAAQ,EAAE;EACZ,CAAC;EACDC,OAAO,EAAE;IACPC,EAAE,EAAE,CAAC;IACLC,EAAE,EAAE,CAAC;IACLC,EAAE,EAAE,EAAE;IACNC,EAAE,EAAE;EACN,CAAC;EACDC,UAAU,EAAE;IACVC,MAAM,EAAErC,WAAW;IACnBsC,OAAO,EAAEnC,YAAY;IACrB0B,GAAG,EAAEzB;EACP;AACF,CAAC;AAED,OAAO,MAAMmC,UAAyB,GAAG;EACvCjC,MAAM,EAAE;IACNC,UAAU,EAAE,SAAS;IACrBC,OAAO,EAAE,SAAS;IAClBC,IAAI,EAAE,SAAS;IACfC,SAAS,EAAE,SAAS;IACpBC,OAAO,EAAE,SAAS;IAClBC,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,SAAS;IACtBC,YAAY,EAAE,SAAS;IACvBC,gBAAgB,EAAE,SAAS;IAC3BC,MAAM,EAAE,SAAS;IACjBC,MAAM,EAAE,SAAS;IACjBC,OAAO,EAAE,oBAAoB;IAC7BC,eAAe,EAAE,SAAS;IAC1BC,eAAe,EAAE,SAAS;IAC1BC,WAAW,EAAE,SAAS;IACtBC,eAAe,EAAE,SAAS;IAC1BC,eAAe,EAAE,SAAS;IAC1BC,SAAS,EAAE,SAAS;IACpBC,oBAAoB,EAAE,SAAS;IAC/BC,kBAAkB,EAAE,SAAS;IAC7BC,MAAM,EAAE;EACV,CAAC;EACDC,MAAM,EAAE;IACNC,GAAG,EAAE,EAAE;IACPC,QAAQ,EAAE;EACZ,CAAC;EACDC,OAAO,EAAE;IACPC,EAAE,EAAE,CAAC;IACLC,EAAE,EAAE,CAAC;IACLC,EAAE,EAAE,EAAE;IACNC,EAAE,EAAE;EACN,CAAC;EACDC,UAAU,EAAE;IACVC,MAAM,EAAErC,WAAW;IACnBsC,OAAO,EAAEnC,YAAY;IACrB0B,GAAG,EAAEzB;EACP;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ export { LIGHT_THEME, DARK_THEME } from './default-theme';
4
+ export { useCalendarTheme } from './create-theme';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LIGHT_THEME","DARK_THEME","useCalendarTheme"],"sourceRoot":"../../../src","sources":["theme/index.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,UAAU,QAAQ,iBAAiB;AACzD,SAASC,gBAAgB,QAAQ,gBAAgB","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["theme/types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+
3
+ import { formatBS } from '../core/format';
4
+ import { isValidBSDate, isBSDateInSupportedRange, getDefaultSupportedBSDate } from '../core/validation';
5
+ export function safeFormatBSDate(date, pattern, locale, numerals) {
6
+ if (!date) return null;
7
+ if (!isValidBSDate(date)) return null;
8
+ if (!isBSDateInSupportedRange(date)) return null;
9
+ try {
10
+ return formatBS(date, pattern, {
11
+ locale,
12
+ numerals
13
+ });
14
+ } catch {
15
+ return null;
16
+ }
17
+ }
18
+ export function getSafeInitialBSDate(value, defaultValue) {
19
+ if (value && isValidBSDate(value) && isBSDateInSupportedRange(value)) {
20
+ return value;
21
+ }
22
+ if (defaultValue && isValidBSDate(defaultValue) && isBSDateInSupportedRange(defaultValue)) {
23
+ return defaultValue;
24
+ }
25
+ return getDefaultSupportedBSDate();
26
+ }
27
+ export function isDateDisabled(date, options) {
28
+ const {
29
+ minDate,
30
+ maxDate,
31
+ disabledDates,
32
+ dateKey
33
+ } = options;
34
+ if (minDate && compareBSDate(date, minDate) < 0) return true;
35
+ if (maxDate && compareBSDate(date, maxDate) > 0) return true;
36
+ if (Array.isArray(disabledDates)) {
37
+ return disabledDates.includes(dateKey);
38
+ }
39
+ if (typeof disabledDates === 'function') {
40
+ return disabledDates(date);
41
+ }
42
+ return false;
43
+ }
44
+ function compareBSDate(a, b) {
45
+ if (a.year !== b.year) return a.year - b.year;
46
+ if (a.month !== b.month) return a.month - b.month;
47
+ return a.day - b.day;
48
+ }
49
+ export function createDateAccessibilityLabel(date, locale, options) {
50
+ const {
51
+ selected,
52
+ today,
53
+ disabled,
54
+ outsideMonth,
55
+ rangeStart,
56
+ rangeEnd,
57
+ inRange,
58
+ markedLabel
59
+ } = options;
60
+ const parts = [];
61
+ try {
62
+ parts.push(formatBS(date, 'yyyy MMMM d', {
63
+ locale
64
+ }));
65
+ } catch {
66
+ parts.push(`${date.year}/${date.month}/${date.day}`);
67
+ }
68
+ if (rangeStart) parts.push('range start');
69
+ if (rangeEnd) parts.push('range end');
70
+ if (inRange && !rangeStart && !rangeEnd) parts.push('in selected range');
71
+ if (selected && !inRange) parts.push('selected');
72
+ if (today) parts.push('today');
73
+ if (disabled) parts.push('disabled');
74
+ if (outsideMonth) parts.push('outside month');
75
+ if (markedLabel) parts.push(markedLabel);
76
+ return parts.join(', ');
77
+ }
78
+ export function warnInvalidDateInDev(message, value) {
79
+ if (__DEV__) {
80
+ console.warn(`react-native-bikram-sambat: ${message}`, value);
81
+ }
82
+ }
83
+ export function warnOutOfRangeInDev(value, range) {
84
+ if (__DEV__) {
85
+ const dateStr = `${value.year}-${String(value.month).padStart(2, '0')}-${String(value.day).padStart(2, '0')}`;
86
+ console.warn(`react-native-bikram-sambat: value ${dateStr} is outside supported BS range ${range.min}–${range.max}. Falling back to ${range.min}-01-01.`);
87
+ }
88
+ }
89
+ export function warnMinMaxInDev(minDate, maxDate) {
90
+ if (__DEV__ && minDate && maxDate) {
91
+ if (compareBSDate(minDate, maxDate) > 0) {
92
+ console.warn('react-native-bikram-sambat: minDate is after maxDate. This may cause unexpected behavior.');
93
+ }
94
+ }
95
+ }
96
+ //# sourceMappingURL=date-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["formatBS","isValidBSDate","isBSDateInSupportedRange","getDefaultSupportedBSDate","safeFormatBSDate","date","pattern","locale","numerals","getSafeInitialBSDate","value","defaultValue","isDateDisabled","options","minDate","maxDate","disabledDates","dateKey","compareBSDate","Array","isArray","includes","a","b","year","month","day","createDateAccessibilityLabel","selected","today","disabled","outsideMonth","rangeStart","rangeEnd","inRange","markedLabel","parts","push","join","warnInvalidDateInDev","message","__DEV__","console","warn","warnOutOfRangeInDev","range","dateStr","String","padStart","min","max","warnMinMaxInDev"],"sourceRoot":"../../../src","sources":["utils/date-helpers.ts"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,aAAa,EAAEC,wBAAwB,EAAEC,yBAAyB,QAAQ,oBAAoB;AAGvG,OAAO,SAASC,gBAAgBA,CAC9BC,IAAoC,EACpCC,OAAe,EACfC,MAAoC,EACpCC,QAAwB,EACT;EACf,IAAI,CAACH,IAAI,EAAE,OAAO,IAAI;EACtB,IAAI,CAACJ,aAAa,CAACI,IAAI,CAAC,EAAE,OAAO,IAAI;EACrC,IAAI,CAACH,wBAAwB,CAACG,IAAI,CAAC,EAAE,OAAO,IAAI;EAEhD,IAAI;IACF,OAAOL,QAAQ,CAACK,IAAI,EAAEC,OAAO,EAAE;MAAEC,MAAM;MAAEC;IAAS,CAAC,CAAC;EACtD,CAAC,CAAC,MAAM;IACN,OAAO,IAAI;EACb;AACF;AAEA,OAAO,SAASC,oBAAoBA,CAClCC,KAAqC,EACrCC,YAAqC,EACxB;EACb,IAAID,KAAK,IAAIT,aAAa,CAACS,KAAK,CAAC,IAAIR,wBAAwB,CAACQ,KAAK,CAAC,EAAE;IACpE,OAAOA,KAAK;EACd;EAEA,IAAIC,YAAY,IAAIV,aAAa,CAACU,YAAY,CAAC,IAAIT,wBAAwB,CAACS,YAAY,CAAC,EAAE;IACzF,OAAOA,YAAY;EACrB;EAEA,OAAOR,yBAAyB,CAAC,CAAC;AACpC;AAEA,OAAO,SAASS,cAAcA,CAC5BP,IAAiB,EACjBQ,OAKC,EACQ;EACT,MAAM;IAAEC,OAAO;IAAEC,OAAO;IAAEC,aAAa;IAAEC;EAAQ,CAAC,GAAGJ,OAAO;EAE5D,IAAIC,OAAO,IAAII,aAAa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ACI,GAAG,SACpI,CAAC;EACH;AACF;AAEA,OAAO,SAASE,eAAeA,CAC7BrC,OAAgC,EAChCC,OAAgC,EAC1B;EACN,IAAI0B,OAAO,IAAI3B,OAAO,IAAIC,OAAO,EAAE;IACjC,IAAIG,aAAa,CAACJ,OAAO,EAAEC,OAAO,CAAC,GAAG,CAAC,EAAE;MACvC2B,OAAO,CAACC,IAAI,CACV,2FACF,CAAC;IACH;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export { safeFormatBSDate, getSafeInitialBSDate, isDateDisabled, createDateAccessibilityLabel, warnInvalidDateInDev, warnOutOfRangeInDev, warnMinMaxInDev } from './date-helpers';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["safeFormatBSDate","getSafeInitialBSDate","isDateDisabled","createDateAccessibilityLabel","warnInvalidDateInDev","warnOutOfRangeInDev","warnMinMaxInDev"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;AAAA,SACEA,gBAAgB,EAChBC,oBAAoB,EACpBC,cAAc,EACdC,4BAA4B,EAC5BC,oBAAoB,EACpBC,mBAAmB,EACnBC,eAAe,QACV,gBAAgB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export { getDayAccessibilityLabel, HEADER_PREV_MONTH_LABEL, HEADER_NEXT_MONTH_LABEL, } from './labels';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/accessibility/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { BSDateValue } from '../core/types';
2
+ import type { CalendarLocale } from '../core/locale';
3
+ export declare function getDayAccessibilityLabel(date: BSDateValue, locale: CalendarLocale, selected: boolean, today: boolean, disabled: boolean): string;
4
+ export declare const HEADER_PREV_MONTH_LABEL = "Previous month";
5
+ export declare const HEADER_NEXT_MONTH_LABEL = "Next month";
6
+ //# sourceMappingURL=labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../../src/accessibility/labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,OAAO,GAChB,MAAM,CAQR;AAED,eAAO,MAAM,uBAAuB,mBAAmB,CAAC;AACxD,eAAO,MAAM,uBAAuB,eAAe,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { BSDateValue } from '../core/types';
2
+ export type CalendarMonthGridOptions = {
3
+ year: number;
4
+ month: number;
5
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
6
+ minDate?: BSDateValue;
7
+ maxDate?: BSDateValue;
8
+ today?: BSDateValue;
9
+ };
10
+ export type CalendarMonthCell = {
11
+ key: string;
12
+ date: BSDateValue;
13
+ day: number;
14
+ inCurrentMonth: boolean;
15
+ isToday: boolean;
16
+ isDisabled: boolean;
17
+ };
18
+ export type CalendarMonthGrid = {
19
+ year: number;
20
+ month: number;
21
+ weeks: CalendarMonthCell[][];
22
+ };
23
+ //# sourceMappingURL=calendar-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-types.d.ts","sourceRoot":"","sources":["../../../../src/calendar/calendar-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,iBAAiB,EAAE,EAAE,CAAC;CAC9B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { CalendarMonthGrid, CalendarMonthGridOptions } from './calendar-types';
2
+ export declare function getCalendarMonthGrid(options: CalendarMonthGridOptions): CalendarMonthGrid;
3
+ //# sourceMappingURL=get-calendar-month-grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-calendar-month-grid.d.ts","sourceRoot":"","sources":["../../../../src/calendar/get-calendar-month-grid.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAqB,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAyDvG,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,wBAAwB,GAChC,iBAAiB,CA0DnB"}
@@ -0,0 +1,3 @@
1
+ export type { CalendarMonthGridOptions, CalendarMonthCell, CalendarMonthGrid } from './calendar-types';
2
+ export { getCalendarMonthGrid } from './get-calendar-month-grid';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import type { BSDateValue } from '../../core/types';
3
+ import type { CalendarTheme } from '../../theme/types';
4
+ import type { CalendarMarkedDate } from './types';
5
+ type CalendarDayProps = {
6
+ date: BSDateValue;
7
+ day: number;
8
+ selected: boolean;
9
+ today: boolean;
10
+ disabled: boolean;
11
+ inCurrentMonth: boolean;
12
+ marked?: CalendarMarkedDate;
13
+ numerals: 'latin' | 'devanagari';
14
+ theme: CalendarTheme;
15
+ onPress: () => void;
16
+ rangeStart?: boolean;
17
+ rangeEnd?: boolean;
18
+ inRange?: boolean;
19
+ locale?: import('../../core/locale').CalendarLocale;
20
+ };
21
+ export declare const CalendarDay: React.NamedExoticComponent<CalendarDayProps>;
22
+ export {};
23
+ //# sourceMappingURL=CalendarDay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarDay.d.ts","sourceRoot":"","sources":["../../../../../src/components/NepaliCalendar/CalendarDay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,QAAQ,EAAE,OAAO,GAAG,YAAY,CAAC;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,mBAAmB,EAAE,cAAc,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,WAAW,8CAwItB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import type { BSDateValue } from '../../core/types';
3
+ import type { CalendarMonthGrid } from '../../calendar';
4
+ import type { CalendarTheme } from '../../theme/types';
5
+ import type { CalendarLocale } from '../../core/locale';
6
+ import type { CalendarMarkedDate, CalendarDayRenderProps } from './types';
7
+ import type { DateRangeValue } from '../NepaliRangePicker/types';
8
+ type CalendarGridProps = {
9
+ grid: CalendarMonthGrid;
10
+ value: BSDateValue | null;
11
+ today: BSDateValue | null;
12
+ minDate: BSDateValue | undefined;
13
+ maxDate: BSDateValue | undefined;
14
+ numerals: 'latin' | 'devanagari';
15
+ theme: CalendarTheme;
16
+ markedDates: Record<string, CalendarMarkedDate> | undefined;
17
+ disabledDates: string[] | ((date: BSDateValue) => boolean) | undefined;
18
+ onChange: (date: BSDateValue) => void;
19
+ renderDay: ((props: CalendarDayRenderProps) => React.ReactNode) | undefined;
20
+ rangeValue?: DateRangeValue;
21
+ locale?: CalendarLocale;
22
+ };
23
+ export declare const CalendarGrid: React.NamedExoticComponent<CalendarGridProps>;
24
+ export {};
25
+ //# sourceMappingURL=CalendarGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarGrid.d.ts","sourceRoot":"","sources":["../../../../../src/components/NepaliCalendar/CalendarGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,OAAO,GAAG,YAAY,CAAC;IACjC,KAAK,EAAE,aAAa,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,SAAS,CAAC;IAC5D,aAAa,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;IACvE,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,sBAAsB,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IAC5E,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,YAAY,+CAmHvB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { NumeralSystem, CalendarLocale } from '../../core/locale';
3
+ import type { CalendarTheme } from '../../theme/types';
4
+ type CalendarHeaderProps = {
5
+ year: number;
6
+ month: number;
7
+ locale: CalendarLocale;
8
+ numerals: NumeralSystem;
9
+ theme: CalendarTheme;
10
+ onPrevMonth: () => void;
11
+ onNextMonth: () => void;
12
+ canGoPrev: boolean;
13
+ canGoNext: boolean;
14
+ };
15
+ export declare const CalendarHeader: React.NamedExoticComponent<CalendarHeaderProps>;
16
+ export {};
17
+ //# sourceMappingURL=CalendarHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/NepaliCalendar/CalendarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMvD,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,EAAE,aAAa,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AA2BF,eAAO,MAAM,cAAc,iDA8CzB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { CalendarLocale } from '../../core/locale';
3
+ import type { CalendarTheme } from '../../theme/types';
4
+ type CalendarWeekdaysProps = {
5
+ locale: CalendarLocale;
6
+ weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
7
+ theme: CalendarTheme;
8
+ };
9
+ export declare const CalendarWeekdays: React.NamedExoticComponent<CalendarWeekdaysProps>;
10
+ export {};
11
+ //# sourceMappingURL=CalendarWeekdays.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarWeekdays.d.ts","sourceRoot":"","sources":["../../../../../src/components/NepaliCalendar/CalendarWeekdays.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,KAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,cAAc,CAAC;IACvB,YAAY,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxC,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mDAsB3B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { NepaliCalendarProps } from './types';
3
+ export declare function NepaliCalendar({ value, defaultValue, onChange, year, month, defaultYear, defaultMonth, minDate, maxDate, locale, numerals, weekStartsOn, markedDates, theme, colorScheme, disabledDates, onMonthChange, renderDay, rangeValue, testID, }: NepaliCalendarProps): React.JSX.Element;
4
+ //# sourceMappingURL=NepaliCalendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NepaliCalendar.d.ts","sourceRoot":"","sources":["../../../../../src/components/NepaliCalendar/NepaliCalendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAgBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA+BnD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,WAAW,EACX,YAAY,EACZ,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAkB,EAClB,YAAgB,EAChB,WAAW,EACX,KAAK,EACL,WAAsB,EACtB,aAAa,EACb,aAAa,EACb,SAAS,EACT,UAAU,EACV,MAAM,GACP,EAAE,mBAAmB,qBA2MrB"}