@easyops-cn/a2ui-react 0.0.3 → 0.0.4

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 (365) hide show
  1. package/dist/0.8/components/display/AudioPlayerComponent.js +2 -2
  2. package/dist/0.8/components/display/DividerComponent.js +1 -1
  3. package/dist/0.8/components/display/IconComponent.js +55 -101
  4. package/dist/0.8/components/display/ImageComponent.js +2 -2
  5. package/dist/0.8/components/display/TextComponent.js +2 -2
  6. package/dist/0.8/components/display/VideoComponent.js +2 -2
  7. package/dist/0.8/components/interactive/ButtonComponent.js +2 -2
  8. package/dist/0.8/components/interactive/CheckBoxComponent.js +4 -4
  9. package/dist/0.8/components/interactive/DateTimeInputComponent.js +36 -38
  10. package/dist/0.8/components/interactive/MultipleChoiceComponent.js +5 -5
  11. package/dist/0.8/components/interactive/SliderComponent.js +3 -3
  12. package/dist/0.8/components/interactive/TextFieldComponent.js +5 -5
  13. package/dist/0.8/components/layout/CardComponent.js +1 -1
  14. package/dist/0.8/components/layout/ColumnComponent.js +3 -3
  15. package/dist/0.8/components/layout/ListComponent.js +3 -3
  16. package/dist/0.8/components/layout/ModalComponent.js +1 -1
  17. package/dist/0.8/components/layout/RowComponent.js +3 -3
  18. package/dist/0.8/components/layout/TabsComponent.js +2 -2
  19. package/dist/0.8/hooks/useDataBinding.js +12 -17
  20. package/package.json +1 -1
  21. package/dist/components/ui/button.js +0 -53
  22. package/dist/components/ui/calendar.js +0 -176
  23. package/dist/components/ui/card.js +0 -29
  24. package/dist/components/ui/checkbox.js +0 -31
  25. package/dist/components/ui/dialog.js +0 -77
  26. package/dist/components/ui/input.js +0 -21
  27. package/dist/components/ui/label.js +0 -22
  28. package/dist/components/ui/popover.js +0 -38
  29. package/dist/components/ui/select.js +0 -146
  30. package/dist/components/ui/separator.js +0 -26
  31. package/dist/components/ui/slider.js +0 -63
  32. package/dist/components/ui/tabs.js +0 -67
  33. package/dist/components/ui/textarea.js +0 -18
  34. package/dist/lib/utils.js +0 -8
  35. package/dist/node_modules/@date-fns/tz/date/index.js +0 -61
  36. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -69
  37. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
  38. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -22
  39. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  40. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  41. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
  42. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  43. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  44. package/dist/node_modules/@radix-ui/number/dist/index.js +0 -6
  45. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  46. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  47. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
  48. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -50
  49. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  50. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  51. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
  52. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
  53. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  54. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
  55. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  56. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  57. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
  58. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  59. package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -19
  60. package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.js +0 -32
  61. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -239
  62. package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  63. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
  64. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
  65. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
  66. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
  67. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  68. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -183
  69. package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -845
  70. package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  71. package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -24
  72. package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js +0 -32
  73. package/dist/node_modules/@radix-ui/react-slider/dist/index.js +0 -436
  74. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -61
  75. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -163
  76. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  77. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
  78. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  79. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  80. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
  81. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
  82. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -30
  83. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  84. package/dist/node_modules/class-variance-authority/dist/index.js +0 -35
  85. package/dist/node_modules/clsx/dist/clsx.js +0 -17
  86. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -7
  87. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
  88. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -548
  89. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -58
  90. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -49
  91. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -18
  92. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
  93. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
  94. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -20
  95. package/dist/node_modules/date-fns/addDays.js +0 -10
  96. package/dist/node_modules/date-fns/addMonths.js +0 -20
  97. package/dist/node_modules/date-fns/addWeeks.js +0 -8
  98. package/dist/node_modules/date-fns/addYears.js +0 -8
  99. package/dist/node_modules/date-fns/constants.js +0 -9
  100. package/dist/node_modules/date-fns/constructFrom.js +0 -8
  101. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -16
  102. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -13
  103. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -17
  104. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -17
  105. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -8
  106. package/dist/node_modules/date-fns/endOfMonth.js +0 -9
  107. package/dist/node_modules/date-fns/endOfWeek.js +0 -10
  108. package/dist/node_modules/date-fns/endOfYear.js +0 -9
  109. package/dist/node_modules/date-fns/format.js +0 -58
  110. package/dist/node_modules/date-fns/getDayOfYear.js +0 -11
  111. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -10
  112. package/dist/node_modules/date-fns/getDefaultOptions.js +0 -8
  113. package/dist/node_modules/date-fns/getISODay.js +0 -9
  114. package/dist/node_modules/date-fns/getISOWeek.js +0 -12
  115. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -15
  116. package/dist/node_modules/date-fns/getMonth.js +0 -8
  117. package/dist/node_modules/date-fns/getWeek.js +0 -12
  118. package/dist/node_modules/date-fns/getWeekYear.js +0 -16
  119. package/dist/node_modules/date-fns/getYear.js +0 -8
  120. package/dist/node_modules/date-fns/isAfter.js +0 -8
  121. package/dist/node_modules/date-fns/isBefore.js +0 -8
  122. package/dist/node_modules/date-fns/isDate.js +0 -7
  123. package/dist/node_modules/date-fns/isSameDay.js +0 -14
  124. package/dist/node_modules/date-fns/isSameMonth.js +0 -13
  125. package/dist/node_modules/date-fns/isSameYear.js +0 -13
  126. package/dist/node_modules/date-fns/isValid.js +0 -9
  127. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -9
  128. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -18
  129. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -31
  130. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -15
  131. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -70
  132. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -33
  133. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
  134. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -155
  135. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -110
  136. package/dist/node_modules/date-fns/locale/en-US.js +0 -21
  137. package/dist/node_modules/date-fns/max.js +0 -14
  138. package/dist/node_modules/date-fns/min.js +0 -14
  139. package/dist/node_modules/date-fns/parse/_lib/Parser.js +0 -22
  140. package/dist/node_modules/date-fns/parse/_lib/Setter.js +0 -35
  141. package/dist/node_modules/date-fns/parse/_lib/constants.js +0 -49
  142. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -42
  143. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -42
  144. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -55
  145. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -45
  146. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -41
  147. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -42
  148. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -25
  149. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -15
  150. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -16
  151. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -26
  152. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -26
  153. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -27
  154. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -27
  155. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -97
  156. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -41
  157. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -41
  158. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -43
  159. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -34
  160. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -72
  161. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -42
  162. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -63
  163. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -26
  164. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -69
  165. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -67
  166. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -26
  167. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -72
  168. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -69
  169. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -67
  170. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -16
  171. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -16
  172. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -43
  173. package/dist/node_modules/date-fns/parse/_lib/parsers.js +0 -67
  174. package/dist/node_modules/date-fns/parse/_lib/utils.js +0 -100
  175. package/dist/node_modules/date-fns/parse.js +0 -88
  176. package/dist/node_modules/date-fns/setDay.js +0 -11
  177. package/dist/node_modules/date-fns/setISODay.js +0 -11
  178. package/dist/node_modules/date-fns/setISOWeek.js +0 -10
  179. package/dist/node_modules/date-fns/setMonth.js +0 -13
  180. package/dist/node_modules/date-fns/setWeek.js +0 -10
  181. package/dist/node_modules/date-fns/setYear.js +0 -10
  182. package/dist/node_modules/date-fns/startOfDay.js +0 -9
  183. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -8
  184. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -11
  185. package/dist/node_modules/date-fns/startOfMonth.js +0 -9
  186. package/dist/node_modules/date-fns/startOfWeek.js +0 -10
  187. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -12
  188. package/dist/node_modules/date-fns/startOfYear.js +0 -9
  189. package/dist/node_modules/date-fns/toDate.js +0 -8
  190. package/dist/node_modules/date-fns/transpose.js +0 -17
  191. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
  192. package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -35
  193. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -21
  194. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -14
  195. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +0 -9
  196. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +0 -9
  197. package/dist/node_modules/lucide-react/dist/esm/icons/bell-off.js +0 -17
  198. package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +0 -15
  199. package/dist/node_modules/lucide-react/dist/esm/icons/calendar-days.js +0 -17
  200. package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +0 -11
  201. package/dist/node_modules/lucide-react/dist/esm/icons/camera.js +0 -15
  202. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -6
  203. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -6
  204. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +0 -6
  205. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +0 -6
  206. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -6
  207. package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +0 -10
  208. package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.js +0 -10
  209. package/dist/node_modules/lucide-react/dist/esm/icons/circle-user.js +0 -10
  210. package/dist/node_modules/lucide-react/dist/esm/icons/credit-card.js +0 -9
  211. package/dist/node_modules/lucide-react/dist/esm/icons/download.js +0 -10
  212. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.js +0 -10
  213. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +0 -10
  214. package/dist/node_modules/lucide-react/dist/esm/icons/eye-off.js +0 -23
  215. package/dist/node_modules/lucide-react/dist/esm/icons/eye.js +0 -15
  216. package/dist/node_modules/lucide-react/dist/esm/icons/folder.js +0 -14
  217. package/dist/node_modules/lucide-react/dist/esm/icons/heart-off.js +0 -22
  218. package/dist/node_modules/lucide-react/dist/esm/icons/heart.js +0 -14
  219. package/dist/node_modules/lucide-react/dist/esm/icons/house.js +0 -15
  220. package/dist/node_modules/lucide-react/dist/esm/icons/image.js +0 -10
  221. package/dist/node_modules/lucide-react/dist/esm/icons/info.js +0 -10
  222. package/dist/node_modules/lucide-react/dist/esm/icons/lock-open.js +0 -9
  223. package/dist/node_modules/lucide-react/dist/esm/icons/lock.js +0 -9
  224. package/dist/node_modules/lucide-react/dist/esm/icons/mail.js +0 -9
  225. package/dist/node_modules/lucide-react/dist/esm/icons/map-pin.js +0 -15
  226. package/dist/node_modules/lucide-react/dist/esm/icons/menu.js +0 -10
  227. package/dist/node_modules/lucide-react/dist/esm/icons/paperclip.js +0 -14
  228. package/dist/node_modules/lucide-react/dist/esm/icons/pencil.js +0 -15
  229. package/dist/node_modules/lucide-react/dist/esm/icons/phone.js +0 -14
  230. package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +0 -9
  231. package/dist/node_modules/lucide-react/dist/esm/icons/printer.js +0 -16
  232. package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +0 -11
  233. package/dist/node_modules/lucide-react/dist/esm/icons/search.js +0 -9
  234. package/dist/node_modules/lucide-react/dist/esm/icons/send.js +0 -15
  235. package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +0 -15
  236. package/dist/node_modules/lucide-react/dist/esm/icons/share-2.js +0 -12
  237. package/dist/node_modules/lucide-react/dist/esm/icons/shopping-cart.js +0 -16
  238. package/dist/node_modules/lucide-react/dist/esm/icons/star-half.js +0 -14
  239. package/dist/node_modules/lucide-react/dist/esm/icons/star-off.js +0 -10
  240. package/dist/node_modules/lucide-react/dist/esm/icons/star.js +0 -14
  241. package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +0 -12
  242. package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +0 -16
  243. package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +0 -10
  244. package/dist/node_modules/lucide-react/dist/esm/icons/user.js +0 -9
  245. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -9
  246. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -18
  247. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -234
  248. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -22
  249. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -19
  250. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -8
  251. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -8
  252. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -148
  253. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
  254. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
  255. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
  256. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
  257. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -10
  258. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -19
  259. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
  260. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
  261. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
  262. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
  263. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
  264. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
  265. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
  266. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -27
  267. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
  268. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
  269. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
  270. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
  271. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
  272. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
  273. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
  274. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
  275. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
  276. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
  277. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
  278. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
  279. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
  280. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -9
  281. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
  282. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
  283. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -7
  284. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
  285. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
  286. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
  287. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
  288. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -19
  289. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -42
  290. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -9
  291. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -7
  292. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -7
  293. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
  294. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -16
  295. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -19
  296. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -10
  297. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -16
  298. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -13
  299. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -15
  300. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -10
  301. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -13
  302. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -34
  303. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -13
  304. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -24
  305. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -13
  306. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -12
  307. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -12
  308. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -12
  309. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -13
  310. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -11
  311. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -7
  312. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -16
  313. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -7
  314. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -8
  315. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
  316. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -10
  317. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -9
  318. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -8
  319. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
  320. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
  321. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -7
  322. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
  323. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
  324. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
  325. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
  326. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
  327. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -37
  328. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -104
  329. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -21
  330. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -18
  331. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -15
  332. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -56
  333. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -75
  334. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -12
  335. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -23
  336. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -19
  337. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -32
  338. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -26
  339. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -26
  340. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -15
  341. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -28
  342. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -9
  343. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
  344. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -8
  345. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
  346. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  347. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -115
  348. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  349. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  350. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
  351. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  352. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  353. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
  354. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  355. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
  356. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  357. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  358. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
  359. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2765
  360. package/dist/node_modules/tslib/tslib.es6.js +0 -27
  361. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
  362. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
  363. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
  364. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  365. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
@@ -1,69 +0,0 @@
1
- import { numericPatterns as i } from "../constants.js";
2
- import { Parser as a } from "../Parser.js";
3
- import { mapValue as n, parseNDigits as m, parseNumericPattern as M } from "../utils.js";
4
- class h extends a {
5
- incompatibleTokens = [
6
- "Y",
7
- "R",
8
- "q",
9
- "Q",
10
- "L",
11
- "w",
12
- "I",
13
- "D",
14
- "i",
15
- "e",
16
- "c",
17
- "t",
18
- "T"
19
- ];
20
- priority = 110;
21
- parse(t, o, r) {
22
- const e = (s) => s - 1;
23
- switch (o) {
24
- // 1, 2, ..., 12
25
- case "M":
26
- return n(
27
- M(i.month, t),
28
- e
29
- );
30
- // 01, 02, ..., 12
31
- case "MM":
32
- return n(m(2, t), e);
33
- // 1st, 2nd, ..., 12th
34
- case "Mo":
35
- return n(
36
- r.ordinalNumber(t, {
37
- unit: "month"
38
- }),
39
- e
40
- );
41
- // Jan, Feb, ..., Dec
42
- case "MMM":
43
- return r.month(t, {
44
- width: "abbreviated",
45
- context: "formatting"
46
- }) || r.month(t, { width: "narrow", context: "formatting" });
47
- // J, F, ..., D
48
- case "MMMMM":
49
- return r.month(t, {
50
- width: "narrow",
51
- context: "formatting"
52
- });
53
- default:
54
- return r.month(t, { width: "wide", context: "formatting" }) || r.month(t, {
55
- width: "abbreviated",
56
- context: "formatting"
57
- }) || r.month(t, { width: "narrow", context: "formatting" });
58
- }
59
- }
60
- validate(t, o) {
61
- return o >= 0 && o <= 11;
62
- }
63
- set(t, o, r) {
64
- return t.setMonth(r, 1), t.setHours(0, 0, 0, 0), t;
65
- }
66
- }
67
- export {
68
- h as MonthParser
69
- };
@@ -1,67 +0,0 @@
1
- import { Parser as o } from "../Parser.js";
2
- import { parseNDigits as a } from "../utils.js";
3
- class u extends o {
4
- priority = 120;
5
- parse(r, e, t) {
6
- switch (e) {
7
- // 1, 2, 3, 4
8
- case "Q":
9
- case "QQ":
10
- return a(e.length, r);
11
- // 1st, 2nd, 3rd, 4th
12
- case "Qo":
13
- return t.ordinalNumber(r, { unit: "quarter" });
14
- // Q1, Q2, Q3, Q4
15
- case "QQQ":
16
- return t.quarter(r, {
17
- width: "abbreviated",
18
- context: "formatting"
19
- }) || t.quarter(r, {
20
- width: "narrow",
21
- context: "formatting"
22
- });
23
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
24
- case "QQQQQ":
25
- return t.quarter(r, {
26
- width: "narrow",
27
- context: "formatting"
28
- });
29
- default:
30
- return t.quarter(r, {
31
- width: "wide",
32
- context: "formatting"
33
- }) || t.quarter(r, {
34
- width: "abbreviated",
35
- context: "formatting"
36
- }) || t.quarter(r, {
37
- width: "narrow",
38
- context: "formatting"
39
- });
40
- }
41
- }
42
- validate(r, e) {
43
- return e >= 1 && e <= 4;
44
- }
45
- set(r, e, t) {
46
- return r.setMonth((t - 1) * 3, 1), r.setHours(0, 0, 0, 0), r;
47
- }
48
- incompatibleTokens = [
49
- "Y",
50
- "R",
51
- "q",
52
- "M",
53
- "L",
54
- "w",
55
- "I",
56
- "d",
57
- "D",
58
- "i",
59
- "e",
60
- "c",
61
- "t",
62
- "T"
63
- ];
64
- }
65
- export {
66
- u as QuarterParser
67
- };
@@ -1,26 +0,0 @@
1
- import { numericPatterns as t } from "../constants.js";
2
- import { Parser as n } from "../Parser.js";
3
- import { parseNDigits as o, parseNumericPattern as a } from "../utils.js";
4
- class u extends n {
5
- priority = 50;
6
- parse(r, e, s) {
7
- switch (e) {
8
- case "s":
9
- return a(t.second, r);
10
- case "so":
11
- return s.ordinalNumber(r, { unit: "second" });
12
- default:
13
- return o(e.length, r);
14
- }
15
- }
16
- validate(r, e) {
17
- return e >= 0 && e <= 59;
18
- }
19
- set(r, e, s) {
20
- return r.setSeconds(s, 0), r;
21
- }
22
- incompatibleTokens = ["t", "T"];
23
- }
24
- export {
25
- u as SecondParser
26
- };
@@ -1,72 +0,0 @@
1
- import { setDay as d } from "../../../setDay.js";
2
- import { Parser as l } from "../Parser.js";
3
- import { mapValue as s, parseNDigits as w } from "../utils.js";
4
- class p extends l {
5
- priority = 90;
6
- parse(e, a, o, n) {
7
- const t = (r) => {
8
- const c = Math.floor((r - 1) / 7) * 7;
9
- return (r + n.weekStartsOn + 6) % 7 + c;
10
- };
11
- switch (a) {
12
- // 3
13
- case "c":
14
- case "cc":
15
- return s(w(a.length, e), t);
16
- // 3rd
17
- case "co":
18
- return s(
19
- o.ordinalNumber(e, {
20
- unit: "day"
21
- }),
22
- t
23
- );
24
- // Tue
25
- case "ccc":
26
- return o.day(e, {
27
- width: "abbreviated",
28
- context: "standalone"
29
- }) || o.day(e, { width: "short", context: "standalone" }) || o.day(e, { width: "narrow", context: "standalone" });
30
- // T
31
- case "ccccc":
32
- return o.day(e, {
33
- width: "narrow",
34
- context: "standalone"
35
- });
36
- // Tu
37
- case "cccccc":
38
- return o.day(e, { width: "short", context: "standalone" }) || o.day(e, { width: "narrow", context: "standalone" });
39
- default:
40
- return o.day(e, { width: "wide", context: "standalone" }) || o.day(e, {
41
- width: "abbreviated",
42
- context: "standalone"
43
- }) || o.day(e, { width: "short", context: "standalone" }) || o.day(e, { width: "narrow", context: "standalone" });
44
- }
45
- }
46
- validate(e, a) {
47
- return a >= 0 && a <= 6;
48
- }
49
- set(e, a, o, n) {
50
- return e = d(e, o, n), e.setHours(0, 0, 0, 0), e;
51
- }
52
- incompatibleTokens = [
53
- "y",
54
- "R",
55
- "u",
56
- "q",
57
- "Q",
58
- "M",
59
- "L",
60
- "I",
61
- "d",
62
- "D",
63
- "E",
64
- "i",
65
- "e",
66
- "t",
67
- "T"
68
- ];
69
- }
70
- export {
71
- p as StandAloneLocalDayParser
72
- };
@@ -1,69 +0,0 @@
1
- import { numericPatterns as a } from "../constants.js";
2
- import { Parser as i } from "../Parser.js";
3
- import { mapValue as r, parseNDigits as l, parseNumericPattern as L } from "../utils.js";
4
- class d extends i {
5
- priority = 110;
6
- parse(e, n, t) {
7
- const o = (s) => s - 1;
8
- switch (n) {
9
- // 1, 2, ..., 12
10
- case "L":
11
- return r(
12
- L(a.month, e),
13
- o
14
- );
15
- // 01, 02, ..., 12
16
- case "LL":
17
- return r(l(2, e), o);
18
- // 1st, 2nd, ..., 12th
19
- case "Lo":
20
- return r(
21
- t.ordinalNumber(e, {
22
- unit: "month"
23
- }),
24
- o
25
- );
26
- // Jan, Feb, ..., Dec
27
- case "LLL":
28
- return t.month(e, {
29
- width: "abbreviated",
30
- context: "standalone"
31
- }) || t.month(e, { width: "narrow", context: "standalone" });
32
- // J, F, ..., D
33
- case "LLLLL":
34
- return t.month(e, {
35
- width: "narrow",
36
- context: "standalone"
37
- });
38
- default:
39
- return t.month(e, { width: "wide", context: "standalone" }) || t.month(e, {
40
- width: "abbreviated",
41
- context: "standalone"
42
- }) || t.month(e, { width: "narrow", context: "standalone" });
43
- }
44
- }
45
- validate(e, n) {
46
- return n >= 0 && n <= 11;
47
- }
48
- set(e, n, t) {
49
- return e.setMonth(t, 1), e.setHours(0, 0, 0, 0), e;
50
- }
51
- incompatibleTokens = [
52
- "Y",
53
- "R",
54
- "q",
55
- "Q",
56
- "M",
57
- "w",
58
- "I",
59
- "D",
60
- "i",
61
- "e",
62
- "c",
63
- "t",
64
- "T"
65
- ];
66
- }
67
- export {
68
- d as StandAloneMonthParser
69
- };
@@ -1,67 +0,0 @@
1
- import { Parser as a } from "../Parser.js";
2
- import { parseNDigits as n } from "../utils.js";
3
- class u extends a {
4
- priority = 120;
5
- parse(r, t, e) {
6
- switch (t) {
7
- // 1, 2, 3, 4
8
- case "q":
9
- case "qq":
10
- return n(t.length, r);
11
- // 1st, 2nd, 3rd, 4th
12
- case "qo":
13
- return e.ordinalNumber(r, { unit: "quarter" });
14
- // Q1, Q2, Q3, Q4
15
- case "qqq":
16
- return e.quarter(r, {
17
- width: "abbreviated",
18
- context: "standalone"
19
- }) || e.quarter(r, {
20
- width: "narrow",
21
- context: "standalone"
22
- });
23
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
24
- case "qqqqq":
25
- return e.quarter(r, {
26
- width: "narrow",
27
- context: "standalone"
28
- });
29
- default:
30
- return e.quarter(r, {
31
- width: "wide",
32
- context: "standalone"
33
- }) || e.quarter(r, {
34
- width: "abbreviated",
35
- context: "standalone"
36
- }) || e.quarter(r, {
37
- width: "narrow",
38
- context: "standalone"
39
- });
40
- }
41
- }
42
- validate(r, t) {
43
- return t >= 1 && t <= 4;
44
- }
45
- set(r, t, e) {
46
- return r.setMonth((e - 1) * 3, 1), r.setHours(0, 0, 0, 0), r;
47
- }
48
- incompatibleTokens = [
49
- "Y",
50
- "R",
51
- "Q",
52
- "M",
53
- "L",
54
- "w",
55
- "I",
56
- "d",
57
- "D",
58
- "i",
59
- "e",
60
- "c",
61
- "t",
62
- "T"
63
- ];
64
- }
65
- export {
66
- u as StandAloneQuarterParser
67
- };
@@ -1,16 +0,0 @@
1
- import { constructFrom as t } from "../../../constructFrom.js";
2
- import { Parser as s } from "../Parser.js";
3
- import { parseAnyDigitsSigned as i } from "../utils.js";
4
- class c extends s {
5
- priority = 20;
6
- parse(r) {
7
- return i(r);
8
- }
9
- set(r, m, e) {
10
- return [t(r, e), { timestampIsSet: !0 }];
11
- }
12
- incompatibleTokens = "*";
13
- }
14
- export {
15
- c as TimestampMillisecondsParser
16
- };
@@ -1,16 +0,0 @@
1
- import { constructFrom as t } from "../../../constructFrom.js";
2
- import { Parser as s } from "../Parser.js";
3
- import { parseAnyDigitsSigned as o } from "../utils.js";
4
- class c extends s {
5
- priority = 40;
6
- parse(r) {
7
- return o(r);
8
- }
9
- set(r, m, e) {
10
- return [t(r, e * 1e3), { timestampIsSet: !0 }];
11
- }
12
- incompatibleTokens = "*";
13
- }
14
- export {
15
- c as TimestampSecondsParser
16
- };
@@ -1,43 +0,0 @@
1
- import { Parser as u } from "../Parser.js";
2
- import { mapValue as t, parseNDigits as o, normalizeTwoDigitYear as l } from "../utils.js";
3
- class m extends u {
4
- priority = 130;
5
- incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"];
6
- parse(r, e, i) {
7
- const a = (s) => ({
8
- year: s,
9
- isTwoDigitYear: e === "yy"
10
- });
11
- switch (e) {
12
- case "y":
13
- return t(o(4, r), a);
14
- case "yo":
15
- return t(
16
- i.ordinalNumber(r, {
17
- unit: "year"
18
- }),
19
- a
20
- );
21
- default:
22
- return t(o(e.length, r), a);
23
- }
24
- }
25
- validate(r, e) {
26
- return e.isTwoDigitYear || e.year > 0;
27
- }
28
- set(r, e, i) {
29
- const a = r.getFullYear();
30
- if (i.isTwoDigitYear) {
31
- const n = l(
32
- i.year,
33
- a
34
- );
35
- return r.setFullYear(n, 0, 1), r.setHours(0, 0, 0, 0), r;
36
- }
37
- const s = !("era" in e) || e.era === 1 ? i.year : 1 - i.year;
38
- return r.setFullYear(s, 0, 1), r.setHours(0, 0, 0, 0), r;
39
- }
40
- }
41
- export {
42
- m as YearParser
43
- };
@@ -1,67 +0,0 @@
1
- import { EraParser as r } from "./parsers/EraParser.js";
2
- import { YearParser as e } from "./parsers/YearParser.js";
3
- import { LocalWeekYearParser as o } from "./parsers/LocalWeekYearParser.js";
4
- import { ISOWeekYearParser as m } from "./parsers/ISOWeekYearParser.js";
5
- import { ExtendedYearParser as a } from "./parsers/ExtendedYearParser.js";
6
- import { QuarterParser as t } from "./parsers/QuarterParser.js";
7
- import { StandAloneQuarterParser as n } from "./parsers/StandAloneQuarterParser.js";
8
- import { MonthParser as i } from "./parsers/MonthParser.js";
9
- import { StandAloneMonthParser as s } from "./parsers/StandAloneMonthParser.js";
10
- import { LocalWeekParser as p } from "./parsers/LocalWeekParser.js";
11
- import { ISOWeekParser as P } from "./parsers/ISOWeekParser.js";
12
- import { DateParser as f } from "./parsers/DateParser.js";
13
- import { DayOfYearParser as w } from "./parsers/DayOfYearParser.js";
14
- import { DayParser as d } from "./parsers/DayParser.js";
15
- import { LocalDayParser as S } from "./parsers/LocalDayParser.js";
16
- import { StandAloneLocalDayParser as c } from "./parsers/StandAloneLocalDayParser.js";
17
- import { ISODayParser as M } from "./parsers/ISODayParser.js";
18
- import { AMPMParser as l } from "./parsers/AMPMParser.js";
19
- import { AMPMMidnightParser as u } from "./parsers/AMPMMidnightParser.js";
20
- import { DayPeriodParser as D } from "./parsers/DayPeriodParser.js";
21
- import { Hour1to12Parser as y } from "./parsers/Hour1to12Parser.js";
22
- import { Hour0to23Parser as O } from "./parsers/Hour0to23Parser.js";
23
- import { Hour0To11Parser as T } from "./parsers/Hour0To11Parser.js";
24
- import { Hour1To24Parser as I } from "./parsers/Hour1To24Parser.js";
25
- import { MinuteParser as Y } from "./parsers/MinuteParser.js";
26
- import { SecondParser as h } from "./parsers/SecondParser.js";
27
- import { FractionOfSecondParser as k } from "./parsers/FractionOfSecondParser.js";
28
- import { ISOTimezoneWithZParser as A } from "./parsers/ISOTimezoneWithZParser.js";
29
- import { ISOTimezoneParser as H } from "./parsers/ISOTimezoneParser.js";
30
- import { TimestampSecondsParser as L } from "./parsers/TimestampSecondsParser.js";
31
- import { TimestampMillisecondsParser as W } from "./parsers/TimestampMillisecondsParser.js";
32
- const sr = {
33
- G: new r(),
34
- y: new e(),
35
- Y: new o(),
36
- R: new m(),
37
- u: new a(),
38
- Q: new t(),
39
- q: new n(),
40
- M: new i(),
41
- L: new s(),
42
- w: new p(),
43
- I: new P(),
44
- d: new f(),
45
- D: new w(),
46
- E: new d(),
47
- e: new S(),
48
- c: new c(),
49
- i: new M(),
50
- a: new l(),
51
- b: new u(),
52
- B: new D(),
53
- h: new y(),
54
- H: new O(),
55
- K: new T(),
56
- k: new I(),
57
- m: new Y(),
58
- s: new h(),
59
- S: new k(),
60
- X: new A(),
61
- x: new H(),
62
- t: new L(),
63
- T: new W()
64
- };
65
- export {
66
- sr as parsers
67
- };
@@ -1,100 +0,0 @@
1
- import { millisecondsInHour as l, millisecondsInMinute as m, millisecondsInSecond as f } from "../../constants.js";
2
- import { numericPatterns as r } from "./constants.js";
3
- function p(e, n) {
4
- return e && {
5
- value: n(e.value),
6
- rest: e.rest
7
- };
8
- }
9
- function t(e, n) {
10
- const s = n.match(e);
11
- return s ? {
12
- value: parseInt(s[0], 10),
13
- rest: n.slice(s[0].length)
14
- } : null;
15
- }
16
- function d(e, n) {
17
- const s = n.match(e);
18
- if (!s)
19
- return null;
20
- if (s[0] === "Z")
21
- return {
22
- value: 0,
23
- rest: n.slice(1)
24
- };
25
- const u = s[1] === "+" ? 1 : -1, i = s[2] ? parseInt(s[2], 10) : 0, c = s[3] ? parseInt(s[3], 10) : 0, o = s[5] ? parseInt(s[5], 10) : 0;
26
- return {
27
- value: u * (i * l + c * m + o * f),
28
- rest: n.slice(s[0].length)
29
- };
30
- }
31
- function D(e) {
32
- return t(r.anyDigitsSigned, e);
33
- }
34
- function I(e, n) {
35
- switch (e) {
36
- case 1:
37
- return t(r.singleDigit, n);
38
- case 2:
39
- return t(r.twoDigits, n);
40
- case 3:
41
- return t(r.threeDigits, n);
42
- case 4:
43
- return t(r.fourDigits, n);
44
- default:
45
- return t(new RegExp("^\\d{1," + e + "}"), n);
46
- }
47
- }
48
- function v(e, n) {
49
- switch (e) {
50
- case 1:
51
- return t(r.singleDigitSigned, n);
52
- case 2:
53
- return t(r.twoDigitsSigned, n);
54
- case 3:
55
- return t(r.threeDigitsSigned, n);
56
- case 4:
57
- return t(r.fourDigitsSigned, n);
58
- default:
59
- return t(new RegExp("^-?\\d{1," + e + "}"), n);
60
- }
61
- }
62
- function w(e) {
63
- switch (e) {
64
- case "morning":
65
- return 4;
66
- case "evening":
67
- return 17;
68
- case "pm":
69
- case "noon":
70
- case "afternoon":
71
- return 12;
72
- default:
73
- return 0;
74
- }
75
- }
76
- function E(e, n) {
77
- const s = n > 0, u = s ? n : 1 - n;
78
- let i;
79
- if (u <= 50)
80
- i = e || 100;
81
- else {
82
- const c = u + 50, o = Math.trunc(c / 100) * 100, a = e >= c % 100;
83
- i = e + o - (a ? 100 : 0);
84
- }
85
- return s ? i : 1 - i;
86
- }
87
- function P(e) {
88
- return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
89
- }
90
- export {
91
- w as dayPeriodEnumToHours,
92
- P as isLeapYearIndex,
93
- p as mapValue,
94
- E as normalizeTwoDigitYear,
95
- D as parseAnyDigitsSigned,
96
- I as parseNDigits,
97
- v as parseNDigitsSigned,
98
- t as parseNumericPattern,
99
- d as parseTimezonePattern
100
- };