@betterinternship/components 1.7.0 → 2.0.1

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 (393) hide show
  1. package/dist/components/ui/accordion.js.map +1 -1
  2. package/dist/components/ui/avatar.js.map +1 -1
  3. package/dist/components/ui/badge.js.map +1 -1
  4. package/dist/components/ui/button.js.map +1 -1
  5. package/dist/components/ui/card.js.map +1 -1
  6. package/dist/components/ui/checkbox.js.map +1 -1
  7. package/dist/components/ui/dialog.js.map +1 -1
  8. package/dist/components/ui/icons.js.map +1 -1
  9. package/dist/components/ui/input.js.map +1 -1
  10. package/dist/components/ui/label.js.map +1 -1
  11. package/dist/components/ui/popover.js.map +1 -1
  12. package/dist/components/ui/separator.js.map +1 -1
  13. package/dist/components/ui/skeleton.js.map +1 -1
  14. package/dist/components/ui/switch.js.map +1 -1
  15. package/dist/components/ui/table.js.map +1 -1
  16. package/dist/components/ui/textarea.js.map +1 -1
  17. package/dist/components/ui/tooltip.js.map +1 -1
  18. package/dist/config.js.map +1 -1
  19. package/dist/hooks/useClientProcess.js.map +1 -1
  20. package/dist/index.d.ts +19 -20
  21. package/dist/index.js +0 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/utils.js.map +1 -1
  24. package/package.json +228 -226
  25. package/theme.css +223 -0
  26. package/dist/components/Accordion.d.ts +0 -7
  27. package/dist/components/Avatar.d.ts +0 -6
  28. package/dist/components/Badge.d.ts +0 -21
  29. package/dist/components/Button.d.ts +0 -12
  30. package/dist/components/Button.js +0 -77
  31. package/dist/components/Button.js.map +0 -1
  32. package/dist/components/Calendar.d.ts +0 -7
  33. package/dist/components/Input.d.ts +0 -3
  34. package/dist/components/ui/calendar.js +0 -51
  35. package/dist/components/ui/calendar.js.map +0 -1
  36. package/dist/index.css.js +0 -7
  37. package/dist/index.css.js.map +0 -1
  38. package/dist/index.esm.js +0 -3761
  39. package/dist/index.esm.js.map +0 -1
  40. package/dist/node_modules/@date-fns/tz/date/index.js +0 -84
  41. package/dist/node_modules/@date-fns/tz/date/index.js.map +0 -1
  42. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -451
  43. package/dist/node_modules/@date-fns/tz/date/mini.js.map +0 -1
  44. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -40
  45. package/dist/node_modules/@date-fns/tz/tzName/index.js.map +0 -1
  46. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -57
  47. package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +0 -1
  48. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  49. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  50. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  51. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  52. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -776
  53. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  54. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -95
  55. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  56. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -67
  57. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  58. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -32
  59. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  60. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  61. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  62. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -9
  63. package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +0 -1
  64. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -26
  65. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  66. package/dist/node_modules/date-fns/addDays.js +0 -61
  67. package/dist/node_modules/date-fns/addDays.js.map +0 -1
  68. package/dist/node_modules/date-fns/addMonths.js +0 -76
  69. package/dist/node_modules/date-fns/addMonths.js.map +0 -1
  70. package/dist/node_modules/date-fns/addWeeks.js +0 -34
  71. package/dist/node_modules/date-fns/addWeeks.js.map +0 -1
  72. package/dist/node_modules/date-fns/addYears.js +0 -34
  73. package/dist/node_modules/date-fns/addYears.js.map +0 -1
  74. package/dist/node_modules/date-fns/constants.js +0 -47
  75. package/dist/node_modules/date-fns/constants.js.map +0 -1
  76. package/dist/node_modules/date-fns/constructFrom.js +0 -50
  77. package/dist/node_modules/date-fns/constructFrom.js.map +0 -1
  78. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -63
  79. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  80. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -43
  81. package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
  82. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -66
  83. package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +0 -1
  84. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -66
  85. package/dist/node_modules/date-fns/eachYearOfInterval.js.map +0 -1
  86. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -36
  87. package/dist/node_modules/date-fns/endOfISOWeek.js.map +0 -1
  88. package/dist/node_modules/date-fns/endOfMonth.js +0 -38
  89. package/dist/node_modules/date-fns/endOfMonth.js.map +0 -1
  90. package/dist/node_modules/date-fns/endOfWeek.js +0 -54
  91. package/dist/node_modules/date-fns/endOfWeek.js.map +0 -1
  92. package/dist/node_modules/date-fns/endOfYear.js +0 -38
  93. package/dist/node_modules/date-fns/endOfYear.js.map +0 -1
  94. package/dist/node_modules/date-fns/format.js +0 -424
  95. package/dist/node_modules/date-fns/format.js.map +0 -1
  96. package/dist/node_modules/date-fns/getDayOfYear.js +0 -35
  97. package/dist/node_modules/date-fns/getDayOfYear.js.map +0 -1
  98. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -37
  99. package/dist/node_modules/date-fns/getDaysInMonth.js.map +0 -1
  100. package/dist/node_modules/date-fns/getISOWeek.js +0 -41
  101. package/dist/node_modules/date-fns/getISOWeek.js.map +0 -1
  102. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -53
  103. package/dist/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  104. package/dist/node_modules/date-fns/getMonth.js +0 -30
  105. package/dist/node_modules/date-fns/getMonth.js.map +0 -1
  106. package/dist/node_modules/date-fns/getWeek.js +0 -55
  107. package/dist/node_modules/date-fns/getWeek.js.map +0 -1
  108. package/dist/node_modules/date-fns/getWeekYear.js +0 -76
  109. package/dist/node_modules/date-fns/getWeekYear.js.map +0 -1
  110. package/dist/node_modules/date-fns/getYear.js +0 -30
  111. package/dist/node_modules/date-fns/getYear.js.map +0 -1
  112. package/dist/node_modules/date-fns/isAfter.js +0 -26
  113. package/dist/node_modules/date-fns/isAfter.js.map +0 -1
  114. package/dist/node_modules/date-fns/isBefore.js +0 -26
  115. package/dist/node_modules/date-fns/isBefore.js.map +0 -1
  116. package/dist/node_modules/date-fns/isDate.js +0 -42
  117. package/dist/node_modules/date-fns/isDate.js.map +0 -1
  118. package/dist/node_modules/date-fns/isSameDay.js +0 -47
  119. package/dist/node_modules/date-fns/isSameDay.js.map +0 -1
  120. package/dist/node_modules/date-fns/isSameMonth.js +0 -44
  121. package/dist/node_modules/date-fns/isSameMonth.js.map +0 -1
  122. package/dist/node_modules/date-fns/isSameYear.js +0 -36
  123. package/dist/node_modules/date-fns/isSameYear.js.map +0 -1
  124. package/dist/node_modules/date-fns/isValid.js +0 -40
  125. package/dist/node_modules/date-fns/isValid.js.map +0 -1
  126. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -11
  127. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  128. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -65
  129. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  130. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -60
  131. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  132. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -23
  133. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  134. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -104
  135. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  136. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -42
  137. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  138. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -14
  139. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  140. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -190
  141. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  142. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -135
  143. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  144. package/dist/node_modules/date-fns/locale/en-US.js +0 -29
  145. package/dist/node_modules/date-fns/locale/en-US.js.map +0 -1
  146. package/dist/node_modules/date-fns/max.js +0 -50
  147. package/dist/node_modules/date-fns/max.js.map +0 -1
  148. package/dist/node_modules/date-fns/min.js +0 -50
  149. package/dist/node_modules/date-fns/min.js.map +0 -1
  150. package/dist/node_modules/date-fns/setMonth.js +0 -47
  151. package/dist/node_modules/date-fns/setMonth.js.map +0 -1
  152. package/dist/node_modules/date-fns/setYear.js +0 -41
  153. package/dist/node_modules/date-fns/setYear.js.map +0 -1
  154. package/dist/node_modules/date-fns/startOfDay.js +0 -36
  155. package/dist/node_modules/date-fns/startOfDay.js.map +0 -1
  156. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -36
  157. package/dist/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  158. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -43
  159. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  160. package/dist/node_modules/date-fns/startOfMonth.js +0 -38
  161. package/dist/node_modules/date-fns/startOfMonth.js.map +0 -1
  162. package/dist/node_modules/date-fns/startOfWeek.js +0 -54
  163. package/dist/node_modules/date-fns/startOfWeek.js.map +0 -1
  164. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -65
  165. package/dist/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  166. package/dist/node_modules/date-fns/startOfYear.js +0 -37
  167. package/dist/node_modules/date-fns/startOfYear.js.map +0 -1
  168. package/dist/node_modules/date-fns/toDate.js +0 -47
  169. package/dist/node_modules/date-fns/toDate.js.map +0 -1
  170. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -347
  171. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +0 -1
  172. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -123
  173. package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +0 -1
  174. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -34
  175. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +0 -1
  176. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -15
  177. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +0 -1
  178. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -14
  179. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +0 -1
  180. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -600
  181. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +0 -1
  182. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -14
  183. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +0 -1
  184. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -19
  185. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +0 -1
  186. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -19
  187. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +0 -1
  188. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -20
  189. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +0 -1
  190. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -24
  191. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +0 -1
  192. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -14
  193. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +0 -1
  194. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -14
  195. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +0 -1
  196. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -16
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +0 -1
  198. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -15
  199. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +0 -1
  200. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -14
  201. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +0 -1
  202. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -14
  203. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +0 -1
  204. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -16
  205. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +0 -1
  206. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -32
  207. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +0 -1
  208. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -14
  209. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +0 -1
  210. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -14
  211. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +0 -1
  212. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -14
  213. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +0 -1
  214. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -15
  215. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +0 -1
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -14
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +0 -1
  218. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -15
  219. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +0 -1
  220. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -15
  221. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +0 -1
  222. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -14
  223. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +0 -1
  224. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -14
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +0 -1
  226. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -15
  227. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +0 -1
  228. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -14
  229. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +0 -1
  230. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -16
  231. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +0 -1
  232. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
  233. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +0 -1
  234. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -21
  235. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +0 -1
  236. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -20
  237. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +0 -1
  238. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -19
  239. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +0 -1
  240. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -22
  241. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +0 -1
  242. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -14
  243. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +0 -1
  244. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -20
  245. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +0 -1
  246. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -18
  247. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +0 -1
  248. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -8
  249. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +0 -1
  250. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -74
  251. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +0 -1
  252. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -96
  253. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +0 -1
  254. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -23
  255. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +0 -1
  256. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -29
  257. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +0 -1
  258. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -34
  259. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +0 -1
  260. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -21
  261. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +0 -1
  262. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -28
  263. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +0 -1
  264. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -60
  265. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +0 -1
  266. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -20
  267. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +0 -1
  268. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -34
  269. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +0 -1
  270. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -25
  271. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +0 -1
  272. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -47
  273. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +0 -1
  274. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -18
  275. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +0 -1
  276. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -28
  277. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +0 -1
  278. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -54
  279. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +0 -1
  280. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -34
  281. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +0 -1
  282. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -70
  283. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +0 -1
  284. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -32
  285. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +0 -1
  286. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -41
  287. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +0 -1
  288. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -37
  289. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +0 -1
  290. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -38
  291. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +0 -1
  292. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -28
  293. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +0 -1
  294. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -27
  295. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +0 -1
  296. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -15
  297. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +0 -1
  298. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -37
  299. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +0 -1
  300. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -28
  301. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +0 -1
  302. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -32
  303. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +0 -1
  304. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -12
  305. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +0 -1
  306. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -28
  307. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +0 -1
  308. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -21
  309. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +0 -1
  310. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -23
  311. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +0 -1
  312. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -15
  313. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +0 -1
  314. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -14
  315. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +0 -1
  316. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -17
  317. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +0 -1
  318. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -16
  319. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +0 -1
  320. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -16
  321. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +0 -1
  322. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -15
  323. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +0 -1
  324. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -19
  325. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +0 -1
  326. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -15
  327. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +0 -1
  328. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -68
  329. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +0 -1
  330. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -164
  331. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +0 -1
  332. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -58
  333. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +0 -1
  334. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -64
  335. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +0 -1
  336. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -45
  337. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +0 -1
  338. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -174
  339. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +0 -1
  340. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -114
  341. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +0 -1
  342. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -26
  343. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +0 -1
  344. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -57
  345. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +0 -1
  346. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -32
  347. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +0 -1
  348. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -96
  349. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +0 -1
  350. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -62
  351. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +0 -1
  352. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -63
  353. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +0 -1
  354. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -31
  355. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +0 -1
  356. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -75
  357. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +0 -1
  358. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -36
  359. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +0 -1
  360. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -22
  361. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +0 -1
  362. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -17
  363. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +0 -1
  364. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -67
  365. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +0 -1
  366. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -29
  367. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
  368. package/dist/src/components/ui/accordion.d.ts +0 -7
  369. package/dist/src/components/ui/avatar.d.ts +0 -6
  370. package/dist/src/components/ui/badge.d.ts +0 -22
  371. package/dist/src/components/ui/button.d.ts +0 -13
  372. package/dist/src/components/ui/calendar.d.ts +0 -7
  373. package/dist/src/components/ui/card.d.ts +0 -9
  374. package/dist/src/components/ui/checkbox.d.ts +0 -4
  375. package/dist/src/components/ui/dialog.d.ts +0 -18
  376. package/dist/src/components/ui/icons.d.ts +0 -10
  377. package/dist/src/components/ui/input.d.ts +0 -3
  378. package/dist/src/components/ui/label.d.ts +0 -4
  379. package/dist/src/components/ui/popover.d.ts +0 -7
  380. package/dist/src/components/ui/separator.d.ts +0 -4
  381. package/dist/src/components/ui/skeleton.d.ts +0 -2
  382. package/dist/src/components/ui/switch.d.ts +0 -4
  383. package/dist/src/components/ui/table.d.ts +0 -10
  384. package/dist/src/components/ui/textarea.d.ts +0 -3
  385. package/dist/src/components/ui/tooltip.d.ts +0 -9
  386. package/dist/src/config.d.ts +0 -6
  387. package/dist/src/hooks/useClientProcess.d.ts +0 -69
  388. package/dist/src/index.d.ts +0 -21
  389. package/dist/src/utils.d.ts +0 -2
  390. package/dist/utilities/Icons.d.ts +0 -33
  391. package/dist/vitest.config.d.ts +0 -2
  392. package/dist/vitest.setup.d.ts +0 -1
  393. /package/dist/{src/components → components}/ui/button.test.d.ts +0 -0
@@ -1,84 +0,0 @@
1
- import { tzName } from '../tzName/index.js';
2
- import { TZDateMini } from './mini.js';
3
-
4
- class TZDate extends TZDateMini {
5
- //#region static
6
-
7
- static tz(tz, ...args) {
8
- return args.length ? new TZDate(...args, tz) : new TZDate(Date.now(), tz);
9
- }
10
-
11
- //#endregion
12
-
13
- //#region representation
14
-
15
- toISOString() {
16
- const [sign, hours, minutes] = this.tzComponents();
17
- const tz = `${sign}${hours}:${minutes}`;
18
- return this.internal.toISOString().slice(0, -1) + tz;
19
- }
20
- toString() {
21
- // "Tue Aug 13 2024 07:50:19 GMT+0800 (Singapore Standard Time)";
22
- return `${this.toDateString()} ${this.toTimeString()}`;
23
- }
24
- toDateString() {
25
- // toUTCString returns RFC 7231 ("Mon, 12 Aug 2024 23:36:08 GMT")
26
- const [day, date, month, year] = this.internal.toUTCString().split(" ");
27
- // "Tue Aug 13 2024"
28
- return `${day?.slice(0, -1) /* Remove "," */} ${month} ${date} ${year}`;
29
- }
30
- toTimeString() {
31
- // toUTCString returns RFC 7231 ("Mon, 12 Aug 2024 23:36:08 GMT")
32
- const time = this.internal.toUTCString().split(" ")[4];
33
- const [sign, hours, minutes] = this.tzComponents();
34
- // "07:42:23 GMT+0800 (Singapore Standard Time)"
35
- return `${time} GMT${sign}${hours}${minutes} (${tzName(this.timeZone, this)})`;
36
- }
37
- toLocaleString(locales, options) {
38
- return Date.prototype.toLocaleString.call(this, locales, {
39
- ...options,
40
- timeZone: options?.timeZone || this.timeZone
41
- });
42
- }
43
- toLocaleDateString(locales, options) {
44
- return Date.prototype.toLocaleDateString.call(this, locales, {
45
- ...options,
46
- timeZone: options?.timeZone || this.timeZone
47
- });
48
- }
49
- toLocaleTimeString(locales, options) {
50
- return Date.prototype.toLocaleTimeString.call(this, locales, {
51
- ...options,
52
- timeZone: options?.timeZone || this.timeZone
53
- });
54
- }
55
-
56
- //#endregion
57
-
58
- //#region private
59
-
60
- tzComponents() {
61
- const offset = this.getTimezoneOffset();
62
- const sign = offset > 0 ? "-" : "+";
63
- const hours = String(Math.floor(Math.abs(offset) / 60)).padStart(2, "0");
64
- const minutes = String(Math.abs(offset) % 60).padStart(2, "0");
65
- return [sign, hours, minutes];
66
- }
67
-
68
- //#endregion
69
-
70
- withTimeZone(timeZone) {
71
- return new TZDate(+this, timeZone);
72
- }
73
-
74
- //#region date-fns integration
75
-
76
- [Symbol.for("constructDateFrom")](date) {
77
- return new TZDate(+new Date(date), this.timeZone);
78
- }
79
-
80
- //#endregion
81
- }
82
-
83
- export { TZDate };
84
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/@date-fns/tz/date/index.js"],"sourcesContent":["import { tzName } from \"../tzName/index.js\";\nimport { TZDateMini } from \"./mini.js\";\nexport class TZDate extends TZDateMini {\n //#region static\n\n static tz(tz, ...args) {\n return args.length ? new TZDate(...args, tz) : new TZDate(Date.now(), tz);\n }\n\n //#endregion\n\n //#region representation\n\n toISOString() {\n const [sign, hours, minutes] = this.tzComponents();\n const tz = `${sign}${hours}:${minutes}`;\n return this.internal.toISOString().slice(0, -1) + tz;\n }\n toString() {\n // \"Tue Aug 13 2024 07:50:19 GMT+0800 (Singapore Standard Time)\";\n return `${this.toDateString()} ${this.toTimeString()}`;\n }\n toDateString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const [day, date, month, year] = this.internal.toUTCString().split(\" \");\n // \"Tue Aug 13 2024\"\n return `${day?.slice(0, -1) /* Remove \",\" */} ${month} ${date} ${year}`;\n }\n toTimeString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const time = this.internal.toUTCString().split(\" \")[4];\n const [sign, hours, minutes] = this.tzComponents();\n // \"07:42:23 GMT+0800 (Singapore Standard Time)\"\n return `${time} GMT${sign}${hours}${minutes} (${tzName(this.timeZone, this)})`;\n }\n toLocaleString(locales, options) {\n return Date.prototype.toLocaleString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleDateString(locales, options) {\n return Date.prototype.toLocaleDateString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleTimeString(locales, options) {\n return Date.prototype.toLocaleTimeString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n\n //#endregion\n\n //#region private\n\n tzComponents() {\n const offset = this.getTimezoneOffset();\n const sign = offset > 0 ? \"-\" : \"+\";\n const hours = String(Math.floor(Math.abs(offset) / 60)).padStart(2, \"0\");\n const minutes = String(Math.abs(offset) % 60).padStart(2, \"0\");\n return [sign, hours, minutes];\n }\n\n //#endregion\n\n withTimeZone(timeZone) {\n return new TZDate(+this, timeZone);\n }\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDate(+new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,CAAC,iBAAiB,EAAE;AAC3C,IAAI,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG;AACvC,IAAI,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AAC5E,IAAI,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AAClE,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC;AACjC,EAAE;;AAEF;;AAEA,EAAE,YAAY,CAAC,QAAQ,EAAE;AACzB,IAAI,OAAO,IAAI,MAAM,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC;AACtC,EAAE;;AAEF;;AAEA,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI,EAAE;AAC1C,IAAI,OAAO,IAAI,MAAM,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;AACrD,EAAE;;AAEF;AACA;;;;","x_google_ignoreList":[0]}
@@ -1,451 +0,0 @@
1
- import { tzOffset } from '../tzOffset/index.js';
2
-
3
- // TZDate stores time in two `Date` objects because native `Date` can only
4
- // expose local fields in the system time zone.
5
- //
6
- // The external date (`this`) stores the real timestamp. It is the value used by
7
- // `getTime()`, `valueOf()`, UTC getters/setters, comparisons, and arithmetic.
8
- // Its local getters are not used for target-zone fields because they would read
9
- // the timestamp through the system time zone.
10
- //
11
- // The internal date (`this.internal`) stores the target-zone wall-clock fields.
12
- // We read and write those fields through UTC getters/setters so the host system
13
- // time zone cannot reinterpret them. For example, `getHours()` returns
14
- // `internal.getUTCHours()`, and `setHours()` writes `internal.setUTCHours(...)`.
15
- //
16
- // Syncing moves data between the two representations:
17
- //
18
- // - `syncToInternal` starts from the external timestamp and rebuilds internal
19
- // wall-clock fields using `this.timeZone` offset.
20
- //
21
- // - `syncFromInternal` starts from internal wall-clock fields, writes them into
22
- // the external date, then adjusts that timestamp for the system/target offset
23
- // difference and DST edge cases.
24
- //
25
- // The public TZDate value is the combination of both: external is the instant,
26
- // internal is the wall-clock view of that instant in `this.timeZone`.
27
-
28
- class TZDateMini extends Date {
29
- //#region static
30
-
31
- constructor(...args) {
32
- super();
33
-
34
- // Time zone string is always the last string argument unless date string
35
- // is passed (as a single argument).
36
- if (args.length > 1 && typeof args[args.length - 1] === "string") {
37
- this.timeZone = args.pop();
38
- }
39
- this.internal = new Date();
40
-
41
- // Validate the time zone by checking its offset.
42
- if (isNaN(tzOffset(this.timeZone, this))) {
43
- this.setTime(NaN);
44
- } else {
45
- if (!args.length) {
46
- // No arguments passed: use current time
47
- this.setTime(Date.now());
48
- } else if (typeof args[0] === "number" && (args.length === 1 || args.length === 2 && typeof args[1] !== "number")) {
49
- // Timestamp passed: use it as is
50
- this.setTime(args[0]);
51
- } else if (typeof args[0] === "string") {
52
- // `Date` string passed: parse it as external date
53
- this.setTime(+new Date(args[0]));
54
- } else if (args[0] instanceof Date) {
55
- // `Date` passed: use its timestamp
56
- this.setTime(+args[0]);
57
- } else {
58
- // `Date` values passed:
59
-
60
- // Set it as external date.
61
- this.setTime(+new Date(...args));
62
-
63
- // Adjust internal and external dates considering that we might have
64
- // landed on the DST hour.
65
- adjustToSystemTZ(this, args);
66
- }
67
- }
68
- }
69
- static tz(tz, ...args) {
70
- return args.length ? new TZDateMini(...args, tz) : new TZDateMini(Date.now(), tz);
71
- }
72
-
73
- //#endregion
74
-
75
- //#region time zone
76
-
77
- withTimeZone(timeZone) {
78
- return new TZDateMini(+this, timeZone);
79
- }
80
- getTimezoneOffset() {
81
- const offset = -tzOffset(this.timeZone, this);
82
- // Remove the seconds offset using `Math.floor` for negative UTC time zones
83
- // and `Math.ceil` for positive UTC time zones.
84
- return offset > 0 ? Math.floor(offset) : Math.ceil(offset);
85
- }
86
-
87
- //#endregion
88
-
89
- //#region time
90
-
91
- setTime(_time) {
92
- // Use the native `setTime` to the external date time.
93
- Date.prototype.setTime.apply(this, arguments);
94
-
95
- // Then apply it to the internal date adjusting to the timezone offset.
96
- syncToInternal(this);
97
- return +this;
98
- }
99
-
100
- //#endregion
101
-
102
- //#region date-fns integration
103
-
104
- [Symbol.for("constructDateFrom")](date) {
105
- return new TZDateMini(+new Date(date), this.timeZone);
106
- }
107
-
108
- //#endregion
109
- }
110
-
111
- // Assign getters and setters
112
- const re = /^(get|set)(?!UTC)/;
113
- Object.getOwnPropertyNames(Date.prototype).forEach(method => {
114
- if (!re.test(method)) return;
115
- const utcMethod = method.replace(re, "$1UTC");
116
- // Filter out methods without UTC counterparts
117
- if (!TZDateMini.prototype[utcMethod]) return;
118
- if (method.startsWith("get")) {
119
- // Delegate to internal date's UTC method
120
- TZDateMini.prototype[method] = function () {
121
- return this.internal[utcMethod]();
122
- };
123
- } else {
124
- // Assign regular setter
125
- TZDateMini.prototype[method] = function () {
126
- Date.prototype[utcMethod].apply(this.internal, arguments);
127
- syncFromInternal(this);
128
- return +this;
129
- };
130
-
131
- // Assign UTC setter
132
- TZDateMini.prototype[utcMethod] = function () {
133
- Date.prototype[utcMethod].apply(this, arguments);
134
- syncToInternal(this);
135
- return +this;
136
- };
137
- }
138
- });
139
-
140
- /**
141
- * @internal
142
- * Function syncs time to internal date, applying the current time zone offset.
143
- *
144
- * @param {Date} date - `Date` to sync
145
- */
146
- function syncToInternal(date) {
147
- // Start internal from the same real timestamp as external.
148
- date.internal.setTime(+date);
149
-
150
- // Shift internal by the target offset so its UTC fields become the target-zone
151
- // wall-clock fields for the external timestamp.
152
- //
153
- // o internal UTC fields: 2024-02-11 00:00
154
- // |
155
- // | + Asia/Singapore offset (+08:00)
156
- // v
157
- // x internal UTC fields: 2024-02-11 08:00
158
- //
159
- date.internal.setUTCSeconds(date.internal.getUTCSeconds() -
160
- // Round after converting minutes to seconds to avoid fractional offset
161
- // precision errors from historical offsets.
162
- Math.round(-tzOffset(date.timeZone, date) * 60));
163
- }
164
-
165
- /**
166
- * @internal
167
- * Function syncs internal wall-clock fields into the external date.
168
- *
169
- * @param {Date} date - The date to sync
170
- */
171
- function syncFromInternal(date) {
172
- // Copy target-zone wall-clock fields from internal into external using native
173
- // local setters. At this point external holds the right field values but they
174
- // are interpreted in the system time zone; `adjustToSystemTZ` fixes that.
175
- Date.prototype.setFullYear.call(date, date.internal.getUTCFullYear(), date.internal.getUTCMonth(), date.internal.getUTCDate());
176
- Date.prototype.setHours.call(date, date.internal.getUTCHours(), date.internal.getUTCMinutes(), date.internal.getUTCSeconds(), date.internal.getUTCMilliseconds());
177
-
178
- // Now we have to adjust the date to the system time zone
179
- adjustToSystemTZ(date);
180
- }
181
-
182
- /**
183
- * @internal
184
- * Function adjusts the date to the system time zone. It uses the time zone
185
- * differences to calculate the offset and adjust the date.
186
- *
187
- * We use it when constructing `TZDate` and syncing the external date from
188
- * the internal one.
189
- *
190
- * @param {TZDate} date - `TZDate` to adjust.
191
- */
192
- function adjustToSystemTZ(date, constructorArgs) {
193
- // Keep the intended target-zone wall-clock value before native Date/system
194
- // time zone normalization can move it. Later corrections compare against this
195
- // value to distinguish intended DST normalization from accidental drift.
196
- const expectedInternalTime = Array.isArray(constructorArgs) ? constructorArgsToInternalTime(constructorArgs) : +date.internal;
197
- //#region Initial offset calculation
198
-
199
- // Current target time zone offset at the native timestamp. It may include
200
- // historical offset seconds, which we preserve for the seconds adjustment.
201
- const offsetWithSeconds = tzOffset(date.timeZone, date);
202
-
203
- // Minute-precision target offset used by minute-based timestamp adjustments.
204
- // Historical offsets can contain seconds, so we strip the fractional minute
205
- // here and handle remaining seconds in the seconds adjustment below.
206
- const offset = offsetWithSeconds > 0 ? Math.floor(offsetWithSeconds) : Math.ceil(offsetWithSeconds);
207
-
208
- //#endregion
209
-
210
- //#region System DST adjustment
211
-
212
- // Native `Date` may normalize the requested wall time when the system time
213
- // zone skips that hour for DST.
214
- //
215
- // We compare the system wall-clock hour represented by the external date with
216
- // the wall-clock hour stored in the internal date. If they differ, the next
217
- // offset-diff calculation may need the previous system offset, because the
218
- // current external timestamp is already after the system DST jump.
219
-
220
- // Previous-hour reference used to detect whether the system offset changed
221
- // immediately before the current native timestamp.
222
- const prevHour = new Date(+date);
223
-
224
- // Use UTC math so subtracting one hour cannot be normalized back into the
225
- // same missing local DST hour.
226
- prevHour.setUTCHours(prevHour.getUTCHours() - 1);
227
-
228
- // Current system offset at the native timestamp.
229
- const systemOffset = -new Date(+date).getTimezoneOffset();
230
-
231
- // System offset one real hour before the native timestamp.
232
- const prevHourSystemOffset = -new Date(+prevHour).getTimezoneOffset();
233
-
234
- // Non-zero when the system offset changed between `prevHour` and `date`.
235
- const systemDSTChange = systemOffset - prevHourSystemOffset;
236
-
237
- // System offset to use in the later system-target offset difference.
238
- // Defaults to the current system offset and switches to the previous offset
239
- // only when native `Date` normalized a missing system wall time.
240
- let systemOffsetForDiff = systemOffset;
241
- if (systemDSTChange && systemOffset !== offset) {
242
- // System wall-clock hour represented by the current external timestamp.
243
- const systemHour = Date.prototype.getHours.apply(date);
244
-
245
- // Target wall-clock hour currently stored in internal fields. Constructors
246
- // get it from arguments because internal may have already been synced from
247
- // the normalized external timestamp; setters get it directly from internal.
248
- const expectedHour = Array.isArray(constructorArgs) ? constructorArgs[3] || 0 : date.internal.getUTCHours();
249
- if (systemHour !== expectedHour) {
250
- // Check whether using the current system offset would keep the target
251
- // offset unchanged. If so, the only DST jump we crossed is the system
252
- // one, so the diff should use the pre-DST system offset.
253
- const testDate = new Date(+date);
254
-
255
- // Difference that the later offset-diff step would apply with the
256
- // current system offset.
257
- const testOffsetDiff = systemOffset - offset;
258
- if (testOffsetDiff) testDate.setUTCMinutes(testDate.getUTCMinutes() + testOffsetDiff);
259
-
260
- // Target offset after applying the current system offset difference.
261
- const testOffsetWithSeconds = tzOffset(date.timeZone, testDate);
262
-
263
- // Target offset without historical seconds, matching `offset`.
264
- const testOffset = testOffsetWithSeconds > 0 ? Math.floor(testOffsetWithSeconds) : Math.ceil(testOffsetWithSeconds);
265
- if (testOffset === offset) systemOffsetForDiff = prevHourSystemOffset;
266
- }
267
- }
268
-
269
- //#endregion
270
-
271
- //#region System diff adjustment
272
-
273
- // Move external from the system-zone interpretation of internal fields toward
274
- // the timestamp that represents those fields in the target time zone.
275
- //
276
- // At this point native `Date` has treated the internal wall-clock fields as if
277
- // they belonged to the system zone. The system-target offset difference moves
278
- // external by the distance between that system interpretation and the target
279
- // interpretation.
280
-
281
- // Difference between the system offset selected above and the minute-precision
282
- // target offset. Positive values move external forward; negative values move
283
- // it backward.
284
- const offsetDiff = systemOffsetForDiff - offset;
285
- if (offsetDiff)
286
- // Apply the system-target minute difference to external. Internal is
287
- // rebuilt from the final external timestamp after all adjustments are
288
- // complete.
289
- //
290
- // o external as target: 2023-01-31 23:00
291
- // |
292
- // | add `offsetDiff`
293
- // v
294
- // x external as target: 2023-02-01 12:00
295
- //
296
- Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetDiff);
297
-
298
- //#endregion
299
-
300
- //#region Seconds system diff adjustment
301
-
302
- // Historical time zone offsets can include seconds, but the minute-based
303
- // offset adjustment above intentionally used minute precision.
304
- //
305
- // This adjustment applies the remaining seconds difference to external. For
306
- // example, historical Singapore used UTC+06:55:25, while ISO formatting shows
307
- // only `+06:55`; without the seconds correction, setter paths keep the wrong
308
- // wall-clock seconds.
309
-
310
- // Clone external as a native `Date` so we can inspect how the system time zone
311
- // represents the same timestamp.
312
- const systemDate = new Date(+date);
313
-
314
- // Zero UTC seconds before reading system seconds. Any remaining local seconds
315
- // then come from the system time zone offset rather than from the timestamp's
316
- // own seconds value.
317
- systemDate.setUTCSeconds(0);
318
-
319
- // Seconds part contributed by the system time zone offset. Negative offsets
320
- // need wrapping because `Date#getSeconds()` returns values in the 0..59 range.
321
- const systemSecondsOffset = systemOffset > 0 ? systemDate.getSeconds() : (systemDate.getSeconds() - 60) % 60;
322
-
323
- // Seconds part contributed by the target time zone offset.
324
- const secondsOffset = Math.round(-(tzOffset(date.timeZone, date) * 60)) % 60;
325
- if (secondsOffset || systemSecondsOffset)
326
- // Apply the remaining second-level system-target difference to external.
327
- //
328
- // o external as Asia/Singapore: 1900-01-01 00:00:56
329
- // |
330
- // | + `secondsOffset`
331
- // | + `systemSecondsOffset`
332
- // v
333
- // x external as Asia/Singapore: 1900-01-01 00:00:31
334
- //
335
- Date.prototype.setUTCSeconds.call(date, Date.prototype.getUTCSeconds.call(date) + secondsOffset + systemSecondsOffset);
336
-
337
- //#endregion
338
-
339
- //#region Post-adjustment DST fix
340
-
341
- // The first system-target offset move can cross a target-zone DST boundary.
342
- //
343
- // When that happens, the target offset at the new external timestamp differs
344
- // from the target offset used for `offsetDiff`. We compare the original move
345
- // with the move that would be calculated at the new timestamp, then apply the
346
- // difference to external.
347
-
348
- // Target offset at the current external timestamp, including historical
349
- // seconds for the later seconds adjustment.
350
- const postOffsetWithSeconds = tzOffset(date.timeZone, date);
351
-
352
- // Minute-precision target offset at the current external timestamp.
353
- const postOffset = postOffsetWithSeconds > 0 ? Math.floor(postOffsetWithSeconds) : Math.ceil(postOffsetWithSeconds);
354
-
355
- // System offset at the current external timestamp.
356
- const postSystemOffset = -new Date(+date).getTimezoneOffset();
357
-
358
- // System-target offset difference at the current external timestamp.
359
- const postOffsetDiff = postSystemOffset - postOffset;
360
-
361
- // Whether the target offset changed after the first offset move.
362
- const offsetChanged = postOffset !== offset;
363
-
364
- // Difference between the current offset move and the move already applied.
365
- const postDiff = postOffsetDiff - offsetDiff;
366
-
367
- // If the first offset move already normalized a target DST gap forward, the
368
- // generic post-DST correction below would undo that valid normalization. This
369
- // happens, for example, with America/New_York 02:00 during spring-forward when
370
- // the system zone also changes offset around the same instant.
371
- const targetDSTShift = postOffset - offset;
372
-
373
- // Candidate timestamp that would represent the requested wall-clock time with
374
- // the post-transition target offset. If it still does not round-trip to the
375
- // requested wall-clock fields, the requested time is inside a target DST gap.
376
- const postOffsetCandidate = expectedInternalTime - postOffset * 60 * 1000;
377
-
378
- // Only positive target offset shifts are spring-forward gaps. Negative shifts
379
- // are fall-back overlaps and still need the regular post-adjustment path.
380
- const normalizedTargetDSTGap = targetDSTShift > 0 && targetInternalTime(date) - expectedInternalTime === targetDSTShift * 60 * 1000 && targetInternalTime(date, postOffsetCandidate) !== expectedInternalTime;
381
- if (offsetChanged && postDiff && !normalizedTargetDSTGap) {
382
- // Apply the target-DST correction to external. In the backward-crossing case
383
- // shown here, this lands on an intermediate value that needs `offsetChange`
384
- // below.
385
- //
386
- // o external as America/New_York: 2023-03-12 03:00 EDT
387
- // |
388
- // | + `postDiff`
389
- // v
390
- // x external as America/New_York: 2023-03-12 01:00 EST
391
- //
392
- Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + postDiff);
393
-
394
- // Target offset after applying `postDiff`. It may change again if the
395
- // correction itself crosses a target-zone DST boundary.
396
- const newOffsetWithSeconds = tzOffset(date.timeZone, date);
397
-
398
- // Minute-precision target offset after applying `postDiff`.
399
- const newOffset = newOffsetWithSeconds > 0 ? Math.floor(newOffsetWithSeconds) : Math.ceil(newOffsetWithSeconds);
400
-
401
- // Offset change caused by the `postDiff` move itself.
402
- const offsetChange = postOffset - newOffset;
403
-
404
- // If the correction moved external backward across the target DST boundary,
405
- // apply the boundary change so external lands on the valid target-zone
406
- // timestamp. Forward crossings are already normalized by native Date, and
407
- // applying this correction there would undo the valid post-DST result.
408
- if (offsetChange && postDiff < 0) {
409
- // Apply the second target-DST correction to external.
410
- //
411
- // o external as America/New_York: 2023-03-12 01:00 EST
412
- // |
413
- // | + `offsetChange`
414
- // v
415
- // x external as America/New_York: 2023-03-12 03:00 EDT
416
- //
417
- Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetChange);
418
- }
419
- }
420
-
421
- //#endregion
422
-
423
- // Rebuild internal wall-clock fields from the final external timestamp.
424
- syncToInternal(date);
425
-
426
- // Native Date can normalize historical system offsets with minute and second
427
- // precision before we adjust to the target time zone. Correct only small
428
- // historical drift so DST gap normalization (usually one hour) remains intact.
429
- const expectedTime = constructorArgs ? expectedInternalTime : expectedInternalTime + secondsOffset * 1000;
430
- const drift = expectedTime - +date.internal;
431
- if (drift && Math.abs(drift) < 30 * 60 * 1000) {
432
- Date.prototype.setTime.call(date, +date + drift);
433
- syncToInternal(date);
434
- }
435
- }
436
- function constructorArgsToInternalTime(args) {
437
- // Mirror Date's date-value constructor defaults while preserving explicit
438
- // `undefined` behavior. Missing month/day default, but passed `undefined`
439
- // should remain invalid just like `Date.UTC(year, undefined, ...)`.
440
- return Date.UTC(args[0], args.length > 1 ? args[1] : 0, args.length > 2 ? args[2] : 1, ...args.slice(3));
441
- }
442
- function targetInternalTime(date, time) {
443
- // Compute the target-zone wall-clock representation for a timestamp without
444
- // mutating the TZDate. This mirrors syncToInternal for temporary checks.
445
- const internal = new Date(time ?? +date);
446
- internal.setUTCSeconds(internal.getUTCSeconds() - Math.round(-tzOffset(date.timeZone, internal) * 60));
447
- return +internal;
448
- }
449
-
450
- export { TZDateMini };
451
- //# sourceMappingURL=mini.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mini.js","sources":["../../../../../node_modules/@date-fns/tz/date/mini.js"],"sourcesContent":["import { tzOffset } from \"../tzOffset/index.js\";\n\n// TZDate stores time in two `Date` objects because native `Date` can only\n// expose local fields in the system time zone.\n//\n// The external date (`this`) stores the real timestamp. It is the value used by\n// `getTime()`, `valueOf()`, UTC getters/setters, comparisons, and arithmetic.\n// Its local getters are not used for target-zone fields because they would read\n// the timestamp through the system time zone.\n//\n// The internal date (`this.internal`) stores the target-zone wall-clock fields.\n// We read and write those fields through UTC getters/setters so the host system\n// time zone cannot reinterpret them. For example, `getHours()` returns\n// `internal.getUTCHours()`, and `setHours()` writes `internal.setUTCHours(...)`.\n//\n// Syncing moves data between the two representations:\n//\n// - `syncToInternal` starts from the external timestamp and rebuilds internal\n// wall-clock fields using `this.timeZone` offset.\n//\n// - `syncFromInternal` starts from internal wall-clock fields, writes them into\n// the external date, then adjusts that timestamp for the system/target offset\n// difference and DST edge cases.\n//\n// The public TZDate value is the combination of both: external is the instant,\n// internal is the wall-clock view of that instant in `this.timeZone`.\n\nexport class TZDateMini extends Date {\n //#region static\n\n constructor(...args) {\n super();\n\n // Time zone string is always the last string argument unless date string\n // is passed (as a single argument).\n if (args.length > 1 && typeof args[args.length - 1] === \"string\") {\n this.timeZone = args.pop();\n }\n this.internal = new Date();\n\n // Validate the time zone by checking its offset.\n if (isNaN(tzOffset(this.timeZone, this))) {\n this.setTime(NaN);\n } else {\n if (!args.length) {\n // No arguments passed: use current time\n this.setTime(Date.now());\n } else if (typeof args[0] === \"number\" && (args.length === 1 || args.length === 2 && typeof args[1] !== \"number\")) {\n // Timestamp passed: use it as is\n this.setTime(args[0]);\n } else if (typeof args[0] === \"string\") {\n // `Date` string passed: parse it as external date\n this.setTime(+new Date(args[0]));\n } else if (args[0] instanceof Date) {\n // `Date` passed: use its timestamp\n this.setTime(+args[0]);\n } else {\n // `Date` values passed:\n\n // Set it as external date.\n this.setTime(+new Date(...args));\n\n // Adjust internal and external dates considering that we might have\n // landed on the DST hour.\n adjustToSystemTZ(this, args);\n }\n }\n }\n static tz(tz, ...args) {\n return args.length ? new TZDateMini(...args, tz) : new TZDateMini(Date.now(), tz);\n }\n\n //#endregion\n\n //#region time zone\n\n withTimeZone(timeZone) {\n return new TZDateMini(+this, timeZone);\n }\n getTimezoneOffset() {\n const offset = -tzOffset(this.timeZone, this);\n // Remove the seconds offset using `Math.floor` for negative UTC time zones\n // and `Math.ceil` for positive UTC time zones.\n return offset > 0 ? Math.floor(offset) : Math.ceil(offset);\n }\n\n //#endregion\n\n //#region time\n\n setTime(_time) {\n // Use the native `setTime` to the external date time.\n Date.prototype.setTime.apply(this, arguments);\n\n // Then apply it to the internal date adjusting to the timezone offset.\n syncToInternal(this);\n return +this;\n }\n\n //#endregion\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDateMini(+new Date(date), this.timeZone);\n }\n\n //#endregion\n}\n\n// Assign getters and setters\nconst re = /^(get|set)(?!UTC)/;\nObject.getOwnPropertyNames(Date.prototype).forEach(method => {\n if (!re.test(method)) return;\n const utcMethod = method.replace(re, \"$1UTC\");\n // Filter out methods without UTC counterparts\n if (!TZDateMini.prototype[utcMethod]) return;\n if (method.startsWith(\"get\")) {\n // Delegate to internal date's UTC method\n TZDateMini.prototype[method] = function () {\n return this.internal[utcMethod]();\n };\n } else {\n // Assign regular setter\n TZDateMini.prototype[method] = function () {\n Date.prototype[utcMethod].apply(this.internal, arguments);\n syncFromInternal(this);\n return +this;\n };\n\n // Assign UTC setter\n TZDateMini.prototype[utcMethod] = function () {\n Date.prototype[utcMethod].apply(this, arguments);\n syncToInternal(this);\n return +this;\n };\n }\n});\n\n/**\n * @internal\n * Function syncs time to internal date, applying the current time zone offset.\n *\n * @param {Date} date - `Date` to sync\n */\nfunction syncToInternal(date) {\n // Start internal from the same real timestamp as external.\n date.internal.setTime(+date);\n\n // Shift internal by the target offset so its UTC fields become the target-zone\n // wall-clock fields for the external timestamp.\n //\n // o internal UTC fields: 2024-02-11 00:00\n // |\n // | + Asia/Singapore offset (+08:00)\n // v\n // x internal UTC fields: 2024-02-11 08:00\n //\n date.internal.setUTCSeconds(date.internal.getUTCSeconds() -\n // Round after converting minutes to seconds to avoid fractional offset\n // precision errors from historical offsets.\n Math.round(-tzOffset(date.timeZone, date) * 60));\n}\n\n/**\n * @internal\n * Function syncs internal wall-clock fields into the external date.\n *\n * @param {Date} date - The date to sync\n */\nfunction syncFromInternal(date) {\n // Copy target-zone wall-clock fields from internal into external using native\n // local setters. At this point external holds the right field values but they\n // are interpreted in the system time zone; `adjustToSystemTZ` fixes that.\n Date.prototype.setFullYear.call(date, date.internal.getUTCFullYear(), date.internal.getUTCMonth(), date.internal.getUTCDate());\n Date.prototype.setHours.call(date, date.internal.getUTCHours(), date.internal.getUTCMinutes(), date.internal.getUTCSeconds(), date.internal.getUTCMilliseconds());\n\n // Now we have to adjust the date to the system time zone\n adjustToSystemTZ(date);\n}\n\n/**\n * @internal\n * Function adjusts the date to the system time zone. It uses the time zone\n * differences to calculate the offset and adjust the date.\n *\n * We use it when constructing `TZDate` and syncing the external date from\n * the internal one.\n *\n * @param {TZDate} date - `TZDate` to adjust.\n */\nfunction adjustToSystemTZ(date, constructorArgs) {\n // Keep the intended target-zone wall-clock value before native Date/system\n // time zone normalization can move it. Later corrections compare against this\n // value to distinguish intended DST normalization from accidental drift.\n const expectedInternalTime = Array.isArray(constructorArgs) ? constructorArgsToInternalTime(constructorArgs) : +date.internal;\n //#region Initial offset calculation\n\n // Current target time zone offset at the native timestamp. It may include\n // historical offset seconds, which we preserve for the seconds adjustment.\n const offsetWithSeconds = tzOffset(date.timeZone, date);\n\n // Minute-precision target offset used by minute-based timestamp adjustments.\n // Historical offsets can contain seconds, so we strip the fractional minute\n // here and handle remaining seconds in the seconds adjustment below.\n const offset = offsetWithSeconds > 0 ? Math.floor(offsetWithSeconds) : Math.ceil(offsetWithSeconds);\n\n //#endregion\n\n //#region System DST adjustment\n\n // Native `Date` may normalize the requested wall time when the system time\n // zone skips that hour for DST.\n //\n // We compare the system wall-clock hour represented by the external date with\n // the wall-clock hour stored in the internal date. If they differ, the next\n // offset-diff calculation may need the previous system offset, because the\n // current external timestamp is already after the system DST jump.\n\n // Previous-hour reference used to detect whether the system offset changed\n // immediately before the current native timestamp.\n const prevHour = new Date(+date);\n\n // Use UTC math so subtracting one hour cannot be normalized back into the\n // same missing local DST hour.\n prevHour.setUTCHours(prevHour.getUTCHours() - 1);\n\n // Current system offset at the native timestamp.\n const systemOffset = -new Date(+date).getTimezoneOffset();\n\n // System offset one real hour before the native timestamp.\n const prevHourSystemOffset = -new Date(+prevHour).getTimezoneOffset();\n\n // Non-zero when the system offset changed between `prevHour` and `date`.\n const systemDSTChange = systemOffset - prevHourSystemOffset;\n\n // System offset to use in the later system-target offset difference.\n // Defaults to the current system offset and switches to the previous offset\n // only when native `Date` normalized a missing system wall time.\n let systemOffsetForDiff = systemOffset;\n if (systemDSTChange && systemOffset !== offset) {\n // System wall-clock hour represented by the current external timestamp.\n const systemHour = Date.prototype.getHours.apply(date);\n\n // Target wall-clock hour currently stored in internal fields. Constructors\n // get it from arguments because internal may have already been synced from\n // the normalized external timestamp; setters get it directly from internal.\n const expectedHour = Array.isArray(constructorArgs) ? constructorArgs[3] || 0 : date.internal.getUTCHours();\n if (systemHour !== expectedHour) {\n // Check whether using the current system offset would keep the target\n // offset unchanged. If so, the only DST jump we crossed is the system\n // one, so the diff should use the pre-DST system offset.\n const testDate = new Date(+date);\n\n // Difference that the later offset-diff step would apply with the\n // current system offset.\n const testOffsetDiff = systemOffset - offset;\n if (testOffsetDiff) testDate.setUTCMinutes(testDate.getUTCMinutes() + testOffsetDiff);\n\n // Target offset after applying the current system offset difference.\n const testOffsetWithSeconds = tzOffset(date.timeZone, testDate);\n\n // Target offset without historical seconds, matching `offset`.\n const testOffset = testOffsetWithSeconds > 0 ? Math.floor(testOffsetWithSeconds) : Math.ceil(testOffsetWithSeconds);\n if (testOffset === offset) systemOffsetForDiff = prevHourSystemOffset;\n }\n }\n\n //#endregion\n\n //#region System diff adjustment\n\n // Move external from the system-zone interpretation of internal fields toward\n // the timestamp that represents those fields in the target time zone.\n //\n // At this point native `Date` has treated the internal wall-clock fields as if\n // they belonged to the system zone. The system-target offset difference moves\n // external by the distance between that system interpretation and the target\n // interpretation.\n\n // Difference between the system offset selected above and the minute-precision\n // target offset. Positive values move external forward; negative values move\n // it backward.\n const offsetDiff = systemOffsetForDiff - offset;\n if (offsetDiff)\n // Apply the system-target minute difference to external. Internal is\n // rebuilt from the final external timestamp after all adjustments are\n // complete.\n //\n // o external as target: 2023-01-31 23:00\n // |\n // | add `offsetDiff`\n // v\n // x external as target: 2023-02-01 12:00\n //\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetDiff);\n\n //#endregion\n\n //#region Seconds system diff adjustment\n\n // Historical time zone offsets can include seconds, but the minute-based\n // offset adjustment above intentionally used minute precision.\n //\n // This adjustment applies the remaining seconds difference to external. For\n // example, historical Singapore used UTC+06:55:25, while ISO formatting shows\n // only `+06:55`; without the seconds correction, setter paths keep the wrong\n // wall-clock seconds.\n\n // Clone external as a native `Date` so we can inspect how the system time zone\n // represents the same timestamp.\n const systemDate = new Date(+date);\n\n // Zero UTC seconds before reading system seconds. Any remaining local seconds\n // then come from the system time zone offset rather than from the timestamp's\n // own seconds value.\n systemDate.setUTCSeconds(0);\n\n // Seconds part contributed by the system time zone offset. Negative offsets\n // need wrapping because `Date#getSeconds()` returns values in the 0..59 range.\n const systemSecondsOffset = systemOffset > 0 ? systemDate.getSeconds() : (systemDate.getSeconds() - 60) % 60;\n\n // Seconds part contributed by the target time zone offset.\n const secondsOffset = Math.round(-(tzOffset(date.timeZone, date) * 60)) % 60;\n if (secondsOffset || systemSecondsOffset)\n // Apply the remaining second-level system-target difference to external.\n //\n // o external as Asia/Singapore: 1900-01-01 00:00:56\n // |\n // | + `secondsOffset`\n // | + `systemSecondsOffset`\n // v\n // x external as Asia/Singapore: 1900-01-01 00:00:31\n //\n Date.prototype.setUTCSeconds.call(date, Date.prototype.getUTCSeconds.call(date) + secondsOffset + systemSecondsOffset);\n\n //#endregion\n\n //#region Post-adjustment DST fix\n\n // The first system-target offset move can cross a target-zone DST boundary.\n //\n // When that happens, the target offset at the new external timestamp differs\n // from the target offset used for `offsetDiff`. We compare the original move\n // with the move that would be calculated at the new timestamp, then apply the\n // difference to external.\n\n // Target offset at the current external timestamp, including historical\n // seconds for the later seconds adjustment.\n const postOffsetWithSeconds = tzOffset(date.timeZone, date);\n\n // Minute-precision target offset at the current external timestamp.\n const postOffset = postOffsetWithSeconds > 0 ? Math.floor(postOffsetWithSeconds) : Math.ceil(postOffsetWithSeconds);\n\n // System offset at the current external timestamp.\n const postSystemOffset = -new Date(+date).getTimezoneOffset();\n\n // System-target offset difference at the current external timestamp.\n const postOffsetDiff = postSystemOffset - postOffset;\n\n // Whether the target offset changed after the first offset move.\n const offsetChanged = postOffset !== offset;\n\n // Difference between the current offset move and the move already applied.\n const postDiff = postOffsetDiff - offsetDiff;\n\n // If the first offset move already normalized a target DST gap forward, the\n // generic post-DST correction below would undo that valid normalization. This\n // happens, for example, with America/New_York 02:00 during spring-forward when\n // the system zone also changes offset around the same instant.\n const targetDSTShift = postOffset - offset;\n\n // Candidate timestamp that would represent the requested wall-clock time with\n // the post-transition target offset. If it still does not round-trip to the\n // requested wall-clock fields, the requested time is inside a target DST gap.\n const postOffsetCandidate = expectedInternalTime - postOffset * 60 * 1000;\n\n // Only positive target offset shifts are spring-forward gaps. Negative shifts\n // are fall-back overlaps and still need the regular post-adjustment path.\n const normalizedTargetDSTGap = targetDSTShift > 0 && targetInternalTime(date) - expectedInternalTime === targetDSTShift * 60 * 1000 && targetInternalTime(date, postOffsetCandidate) !== expectedInternalTime;\n if (offsetChanged && postDiff && !normalizedTargetDSTGap) {\n // Apply the target-DST correction to external. In the backward-crossing case\n // shown here, this lands on an intermediate value that needs `offsetChange`\n // below.\n //\n // o external as America/New_York: 2023-03-12 03:00 EDT\n // |\n // | + `postDiff`\n // v\n // x external as America/New_York: 2023-03-12 01:00 EST\n //\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + postDiff);\n\n // Target offset after applying `postDiff`. It may change again if the\n // correction itself crosses a target-zone DST boundary.\n const newOffsetWithSeconds = tzOffset(date.timeZone, date);\n\n // Minute-precision target offset after applying `postDiff`.\n const newOffset = newOffsetWithSeconds > 0 ? Math.floor(newOffsetWithSeconds) : Math.ceil(newOffsetWithSeconds);\n\n // Offset change caused by the `postDiff` move itself.\n const offsetChange = postOffset - newOffset;\n\n // If the correction moved external backward across the target DST boundary,\n // apply the boundary change so external lands on the valid target-zone\n // timestamp. Forward crossings are already normalized by native Date, and\n // applying this correction there would undo the valid post-DST result.\n if (offsetChange && postDiff < 0) {\n // Apply the second target-DST correction to external.\n //\n // o external as America/New_York: 2023-03-12 01:00 EST\n // |\n // | + `offsetChange`\n // v\n // x external as America/New_York: 2023-03-12 03:00 EDT\n //\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetChange);\n }\n }\n\n //#endregion\n\n // Rebuild internal wall-clock fields from the final external timestamp.\n syncToInternal(date);\n\n // Native Date can normalize historical system offsets with minute and second\n // precision before we adjust to the target time zone. Correct only small\n // historical drift so DST gap normalization (usually one hour) remains intact.\n const expectedTime = constructorArgs ? expectedInternalTime : expectedInternalTime + secondsOffset * 1000;\n const drift = expectedTime - +date.internal;\n if (drift && Math.abs(drift) < 30 * 60 * 1000) {\n Date.prototype.setTime.call(date, +date + drift);\n syncToInternal(date);\n }\n}\nfunction constructorArgsToInternalTime(args) {\n // Mirror Date's date-value constructor defaults while preserving explicit\n // `undefined` behavior. Missing month/day default, but passed `undefined`\n // should remain invalid just like `Date.UTC(year, undefined, ...)`.\n return Date.UTC(args[0], args.length > 1 ? args[1] : 0, args.length > 2 ? args[2] : 1, ...args.slice(3));\n}\nfunction targetInternalTime(date, time) {\n // Compute the target-zone wall-clock representation for a timestamp without\n // mutating the TZDate. This mirrors syncToInternal for temporary checks.\n const internal = new Date(time ?? +date);\n internal.setUTCSeconds(internal.getUTCSeconds() - Math.round(-tzOffset(date.timeZone, internal) * 60));\n return +internal;\n}"],"names":[],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAM,UAAU,SAAS,IAAI,CAAC;AACrC;;AAEA,EAAE,WAAW,CAAC,GAAG,IAAI,EAAE;AACvB,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,cAAc,CAAC,IAAI,CAAC;AACxB,EAAE;AACF;AACA,SAAS,6BAA6B,CAAC,IAAI,EAAE;AAC7C;AACA;AACA;AACA,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC1G;AACA,SAAS,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE;AACxC;AACA;AACA,EAAE,MAAM,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC;AAC1C,EAAE,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;AACxG,EAAE,OAAO,CAAC,QAAQ;AAClB;;;;","x_google_ignoreList":[0]}
@@ -1,40 +0,0 @@
1
- /**
2
- * Time zone name format.
3
- */
4
-
5
- /**
6
- * The function returns the time zone name for the given date in the specified
7
- * time zone.
8
- *
9
- * It uses the `Intl.DateTimeFormat` API and by default outputs the time zone
10
- * name in a long format, e.g. "Pacific Standard Time" or
11
- * "Singapore Standard Time".
12
- *
13
- * It is possible to specify the format as the third argument using one of the following options
14
- *
15
- * - "short": e.g. "EDT" or "GMT+8".
16
- * - "long": e.g. "Eastern Daylight Time".
17
- * - "shortGeneric": e.g. "ET" or "Singapore Time".
18
- * - "longGeneric": e.g. "Eastern Time" or "Singapore Standard Time".
19
- *
20
- * These options correspond to TR35 tokens `z..zzz`, `zzzz`, `v`, and `vvvv` respectively: https://www.unicode.org/reports/tr35/tr35-dates.html#dfst-zone
21
- *
22
- * @param timeZone - Time zone name (IANA or UTC offset)
23
- * @param date - Date object to get the time zone name for
24
- * @param format - Optional format of the time zone name. Defaults to "long". Can be "short", "long", "shortGeneric", or "longGeneric".
25
- *
26
- * @returns Time zone name (e.g. "Singapore Standard Time")
27
- */
28
- function tzName(timeZone, date, format = "long") {
29
- return new Intl.DateTimeFormat("en-US", {
30
- // Enforces engine to render the time. Without the option JavaScriptCore omits it.
31
- hour: "numeric",
32
- timeZone: timeZone,
33
- timeZoneName: format
34
- }).format(date).split(/\s/g) // Format.JS uses non-breaking spaces
35
- .slice(2) // Skip the hour and AM/PM parts
36
- .join(" ");
37
- }
38
-
39
- export { tzName };
40
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/@date-fns/tz/tzName/index.js"],"sourcesContent":["/**\n * Time zone name format.\n */\n\n/**\n * The function returns the time zone name for the given date in the specified\n * time zone.\n *\n * It uses the `Intl.DateTimeFormat` API and by default outputs the time zone\n * name in a long format, e.g. \"Pacific Standard Time\" or\n * \"Singapore Standard Time\".\n *\n * It is possible to specify the format as the third argument using one of the following options\n *\n * - \"short\": e.g. \"EDT\" or \"GMT+8\".\n * - \"long\": e.g. \"Eastern Daylight Time\".\n * - \"shortGeneric\": e.g. \"ET\" or \"Singapore Time\".\n * - \"longGeneric\": e.g. \"Eastern Time\" or \"Singapore Standard Time\".\n *\n * These options correspond to TR35 tokens `z..zzz`, `zzzz`, `v`, and `vvvv` respectively: https://www.unicode.org/reports/tr35/tr35-dates.html#dfst-zone\n *\n * @param timeZone - Time zone name (IANA or UTC offset)\n * @param date - Date object to get the time zone name for\n * @param format - Optional format of the time zone name. Defaults to \"long\". Can be \"short\", \"long\", \"shortGeneric\", or \"longGeneric\".\n *\n * @returns Time zone name (e.g. \"Singapore Standard Time\")\n */\nexport function tzName(timeZone, date, format = \"long\") {\n return new Intl.DateTimeFormat(\"en-US\", {\n // Enforces engine to render the time. Without the option JavaScriptCore omits it.\n hour: \"numeric\",\n timeZone: timeZone,\n timeZoneName: format\n }).format(date).split(/\\s/g) // Format.JS uses non-breaking spaces\n .slice(2) // Skip the hour and AM/PM parts\n .join(\" \");\n}"],"names":[],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,MAAM,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;AACxD,EAAE,OAAO,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;AAC1C;AACA,IAAI,IAAI,EAAE,SAAS;AACnB,IAAI,QAAQ,EAAE,QAAQ;AACtB,IAAI,YAAY,EAAE;AAClB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;AAC9B,GAAG,KAAK,CAAC,CAAC,CAAC;AACX,GAAG,IAAI,CAAC,GAAG,CAAC;AACZ;;;;","x_google_ignoreList":[0]}