@zimyo/ui 1.0.2 → 1.1.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 (327) hide show
  1. package/dist/Accordion/index.d.ts +34 -0
  2. package/dist/Accordion/index.esm.js +129 -0
  3. package/dist/Accordion/index.js +137 -0
  4. package/dist/Button/index.d.ts +15 -0
  5. package/dist/Button/index.esm.js +23 -0
  6. package/dist/Button/index.js +28 -0
  7. package/dist/Card/index.d.ts +41 -0
  8. package/dist/Card/index.esm.js +36 -0
  9. package/dist/Card/index.js +38 -0
  10. package/dist/Popover/index.d.ts +19 -0
  11. package/dist/Popover/index.esm.js +22 -0
  12. package/dist/Popover/index.js +27 -0
  13. package/dist/RadioGroup/index.d.ts +31 -0
  14. package/dist/RadioGroup/index.esm.js +92 -0
  15. package/dist/RadioGroup/index.js +97 -0
  16. package/dist/Typography/index.d.ts +30 -0
  17. package/dist/Typography/index.esm.js +57 -0
  18. package/dist/Typography/index.js +66 -0
  19. package/package.json +106 -83
  20. package/dist/components/index.d.ts +0 -60
  21. package/dist/components/ui/accordion.d.ts +0 -10
  22. package/dist/components/ui/accordion.js +0 -58
  23. package/dist/components/ui/alert-dialog.d.ts +0 -17
  24. package/dist/components/ui/alert-dialog.js +0 -108
  25. package/dist/components/ui/alert.d.ts +0 -13
  26. package/dist/components/ui/alert.js +0 -52
  27. package/dist/components/ui/aspect-ratio.d.ts +0 -6
  28. package/dist/components/ui/aspect-ratio.js +0 -12
  29. package/dist/components/ui/avatar.d.ts +0 -9
  30. package/dist/components/ui/avatar.js +0 -37
  31. package/dist/components/ui/badge.d.ts +0 -13
  32. package/dist/components/ui/badge.js +0 -36
  33. package/dist/components/ui/breadcrumb.d.ts +0 -14
  34. package/dist/components/ui/breadcrumb.js +0 -94
  35. package/dist/components/ui/button.d.ts +0 -14
  36. package/dist/components/ui/button.js +0 -48
  37. package/dist/components/ui/calendar.d.ts +0 -13
  38. package/dist/components/ui/calendar.js +0 -137
  39. package/dist/components/ui/card.d.ts +0 -12
  40. package/dist/components/ui/card.js +0 -76
  41. package/dist/components/ui/carousel.d.ts +0 -25
  42. package/dist/components/ui/carousel.js +0 -173
  43. package/dist/components/ui/chart.d.ts +0 -44
  44. package/dist/components/ui/chart.js +0 -203
  45. package/dist/components/ui/checkbox.d.ts +0 -7
  46. package/dist/components/ui/checkbox.js +0 -26
  47. package/dist/components/ui/collapsible.d.ts +0 -8
  48. package/dist/components/ui/collapsible.js +0 -24
  49. package/dist/components/ui/command.d.ts +0 -22
  50. package/dist/components/ui/command.js +0 -119
  51. package/dist/components/ui/context-menu.d.ts +0 -28
  52. package/dist/components/ui/context-menu.js +0 -171
  53. package/dist/components/ui/dialog.d.ts +0 -18
  54. package/dist/components/ui/dialog.js +0 -106
  55. package/dist/components/ui/drawer.d.ts +0 -16
  56. package/dist/components/ui/drawer.js +0 -99
  57. package/dist/components/ui/dropdown-menu.d.ts +0 -28
  58. package/dist/components/ui/dropdown-menu.js +0 -173
  59. package/dist/components/ui/form.d.ts +0 -27
  60. package/dist/components/ui/form.js +0 -129
  61. package/dist/components/ui/hover-card.d.ts +0 -9
  62. package/dist/components/ui/hover-card.js +0 -36
  63. package/dist/components/ui/input-otp.d.ts +0 -14
  64. package/dist/components/ui/input-otp.js +0 -66
  65. package/dist/components/ui/input.d.ts +0 -6
  66. package/dist/components/ui/input.js +0 -18
  67. package/dist/components/ui/label.d.ts +0 -7
  68. package/dist/components/ui/label.js +0 -17
  69. package/dist/components/ui/menubar.d.ts +0 -29
  70. package/dist/components/ui/menubar.js +0 -191
  71. package/dist/components/ui/navigation-menu.d.ts +0 -18
  72. package/dist/components/ui/navigation-menu.js +0 -108
  73. package/dist/components/ui/pagination.d.ts +0 -18
  74. package/dist/components/ui/pagination.js +0 -103
  75. package/dist/components/ui/popover.d.ts +0 -10
  76. package/dist/components/ui/popover.js +0 -41
  77. package/dist/components/ui/progress.d.ts +0 -7
  78. package/dist/components/ui/progress.js +0 -26
  79. package/dist/components/ui/radio-group.d.ts +0 -8
  80. package/dist/components/ui/radio-group.js +0 -36
  81. package/dist/components/ui/resizable.d.ts +0 -11
  82. package/dist/components/ui/resizable.js +0 -42
  83. package/dist/components/ui/scroll-area.d.ts +0 -8
  84. package/dist/components/ui/scroll-area.js +0 -41
  85. package/dist/components/ui/select.d.ts +0 -18
  86. package/dist/components/ui/select.js +0 -136
  87. package/dist/components/ui/separator.d.ts +0 -7
  88. package/dist/components/ui/separator.js +0 -21
  89. package/dist/components/ui/sheet.d.ts +0 -16
  90. package/dist/components/ui/sheet.js +0 -106
  91. package/dist/components/ui/sidebar.d.ts +0 -74
  92. package/dist/components/ui/sidebar.js +0 -511
  93. package/dist/components/ui/skeleton.d.ts +0 -5
  94. package/dist/components/ui/skeleton.js +0 -16
  95. package/dist/components/ui/slider.d.ts +0 -7
  96. package/dist/components/ui/slider.js +0 -41
  97. package/dist/components/ui/sonner.d.ts +0 -6
  98. package/dist/components/ui/sonner.js +0 -18
  99. package/dist/components/ui/switch.d.ts +0 -7
  100. package/dist/components/ui/switch.js +0 -22
  101. package/dist/components/ui/table.d.ts +0 -13
  102. package/dist/components/ui/table.js +0 -90
  103. package/dist/components/ui/tabs.d.ts +0 -10
  104. package/dist/components/ui/tabs.js +0 -47
  105. package/dist/components/ui/textarea.d.ts +0 -6
  106. package/dist/components/ui/textarea.js +0 -16
  107. package/dist/components/ui/toggle-group.d.ts +0 -11
  108. package/dist/components/ui/toggle-group.js +0 -57
  109. package/dist/components/ui/toggle.d.ts +0 -13
  110. package/dist/components/ui/toggle.js +0 -41
  111. package/dist/components/ui/tooltip.d.ts +0 -10
  112. package/dist/components/ui/tooltip.js +0 -50
  113. package/dist/index.d.ts +0 -63
  114. package/dist/index.js +0 -48
  115. package/dist/lib/utils.d.ts +0 -5
  116. package/dist/lib/utils.js +0 -8
  117. package/dist/node_modules/@date-fns/tz/date/index.js +0 -101
  118. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -207
  119. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -43
  120. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -11
  121. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -39
  122. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -79
  123. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -321
  124. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -211
  125. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -29
  126. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -207
  127. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -15
  128. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -17
  129. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -130
  130. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -43
  131. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -89
  132. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -12
  133. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -70
  134. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -18
  135. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
  136. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
  137. package/dist/node_modules/class-variance-authority/dist/index.js +0 -44
  138. package/dist/node_modules/clsx/dist/clsx.js +0 -3
  139. package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.js +0 -3
  140. package/dist/node_modules/cmdk/dist/index.js +0 -10
  141. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -7
  142. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
  143. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -775
  144. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -94
  145. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -66
  146. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -31
  147. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
  148. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
  149. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -25
  150. package/dist/node_modules/date-fns/addDays.js +0 -41
  151. package/dist/node_modules/date-fns/addMonths.js +0 -75
  152. package/dist/node_modules/date-fns/addWeeks.js +0 -33
  153. package/dist/node_modules/date-fns/addYears.js +0 -33
  154. package/dist/node_modules/date-fns/constants.js +0 -46
  155. package/dist/node_modules/date-fns/constructFrom.js +0 -49
  156. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -62
  157. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -42
  158. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -65
  159. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -35
  160. package/dist/node_modules/date-fns/endOfMonth.js +0 -37
  161. package/dist/node_modules/date-fns/endOfWeek.js +0 -53
  162. package/dist/node_modules/date-fns/endOfYear.js +0 -37
  163. package/dist/node_modules/date-fns/format.js +0 -423
  164. package/dist/node_modules/date-fns/getDayOfYear.js +0 -34
  165. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -36
  166. package/dist/node_modules/date-fns/getISOWeek.js +0 -40
  167. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -52
  168. package/dist/node_modules/date-fns/getMonth.js +0 -29
  169. package/dist/node_modules/date-fns/getWeek.js +0 -54
  170. package/dist/node_modules/date-fns/getWeekYear.js +0 -75
  171. package/dist/node_modules/date-fns/getYear.js +0 -29
  172. package/dist/node_modules/date-fns/isAfter.js +0 -25
  173. package/dist/node_modules/date-fns/isBefore.js +0 -25
  174. package/dist/node_modules/date-fns/isDate.js +0 -41
  175. package/dist/node_modules/date-fns/isSameDay.js +0 -46
  176. package/dist/node_modules/date-fns/isSameMonth.js +0 -43
  177. package/dist/node_modules/date-fns/isSameYear.js +0 -35
  178. package/dist/node_modules/date-fns/isValid.js +0 -39
  179. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  180. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -64
  181. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -59
  182. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -22
  183. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -103
  184. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -41
  185. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -13
  186. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -189
  187. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -134
  188. package/dist/node_modules/date-fns/locale/en-US.js +0 -28
  189. package/dist/node_modules/date-fns/max.js +0 -49
  190. package/dist/node_modules/date-fns/min.js +0 -49
  191. package/dist/node_modules/date-fns/setMonth.js +0 -46
  192. package/dist/node_modules/date-fns/setYear.js +0 -40
  193. package/dist/node_modules/date-fns/startOfDay.js +0 -35
  194. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -35
  195. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -42
  196. package/dist/node_modules/date-fns/startOfMonth.js +0 -37
  197. package/dist/node_modules/date-fns/startOfWeek.js +0 -53
  198. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -64
  199. package/dist/node_modules/date-fns/startOfYear.js +0 -36
  200. package/dist/node_modules/date-fns/toDate.js +0 -46
  201. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1669
  202. package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +0 -37
  203. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -38
  204. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
  205. package/dist/node_modules/input-otp/dist/index.js +0 -24
  206. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -285
  207. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -122
  208. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -30
  209. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -14
  210. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -13
  211. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -522
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -13
  213. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -13
  214. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
  215. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -18
  216. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -19
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -21
  218. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -13
  219. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -13
  220. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -15
  221. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -14
  222. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -13
  223. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -13
  224. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -15
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -31
  226. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -15
  227. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -13
  228. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -15
  229. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -14
  230. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -13
  231. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -14
  232. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -14
  233. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -13
  234. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -13
  235. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -14
  236. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -13
  237. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -15
  238. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
  239. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -25
  240. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -19
  241. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -18
  242. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -21
  243. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -13
  244. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -19
  245. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -23
  246. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -7
  247. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -73
  248. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -95
  249. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -22
  250. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -28
  251. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -33
  252. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -20
  253. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -27
  254. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -51
  255. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -19
  256. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -33
  257. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -24
  258. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -46
  259. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -24
  260. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -28
  261. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -33
  262. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -69
  263. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -51
  264. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -39
  265. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -36
  266. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -37
  267. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -27
  268. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -24
  269. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -14
  270. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -38
  271. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -27
  272. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -31
  273. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -11
  274. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -32
  275. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -24
  276. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -22
  277. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -14
  278. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -13
  279. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -15
  280. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -15
  281. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -15
  282. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -14
  283. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -18
  284. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -14
  285. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -57
  286. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -45
  287. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -44
  288. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -175
  289. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -85
  290. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -25
  291. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -50
  292. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -31
  293. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -92
  294. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -62
  295. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -30
  296. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -74
  297. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -35
  298. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -21
  299. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -66
  300. package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -507
  301. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -9
  302. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -160
  303. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -38
  304. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -21
  305. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
  306. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  307. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  308. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -56
  309. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
  310. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -31
  311. package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.js +0 -2407
  312. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -19
  313. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -25
  314. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -51
  315. package/dist/node_modules/sonner/dist/index.js +0 -1125
  316. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2956
  317. package/dist/node_modules/tslib/tslib.es6.js +0 -56
  318. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -24
  319. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -48
  320. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -42
  321. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
  322. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -77
  323. package/dist/node_modules/vaul/dist/index.js +0 -1627
  324. package/dist/providers/ThemeProvider.d.ts +0 -12
  325. package/dist/providers/ThemeProvider.js +0 -27
  326. package/dist/providers/index.d.ts +0 -3
  327. package/dist/styles.css +0 -1
@@ -1,34 +0,0 @@
1
- import { differenceInCalendarDays } from './differenceInCalendarDays.js';
2
- import { startOfYear } from './startOfYear.js';
3
- import { toDate } from './toDate.js';
4
-
5
- /**
6
- * The {@link getDayOfYear} function options.
7
- */
8
-
9
- /**
10
- * @name getDayOfYear
11
- * @category Day Helpers
12
- * @summary Get the day of the year of the given date.
13
- *
14
- * @description
15
- * Get the day of the year of the given date.
16
- *
17
- * @param date - The given date
18
- * @param options - The options
19
- *
20
- * @returns The day of year
21
- *
22
- * @example
23
- * // Which day of the year is 2 July 2014?
24
- * const result = getDayOfYear(new Date(2014, 6, 2))
25
- * //=> 183
26
- */
27
- function getDayOfYear(date, options) {
28
- const _date = toDate(date, options?.in);
29
- const diff = differenceInCalendarDays(_date, startOfYear(_date));
30
- const dayOfYear = diff + 1;
31
- return dayOfYear;
32
- }
33
-
34
- export { getDayOfYear as default, getDayOfYear };
@@ -1,36 +0,0 @@
1
- import { constructFrom } from './constructFrom.js';
2
- import { toDate } from './toDate.js';
3
-
4
- /**
5
- * The {@link getDaysInMonth} function options.
6
- */
7
-
8
- /**
9
- * @name getDaysInMonth
10
- * @category Month Helpers
11
- * @summary Get the number of days in a month of the given date.
12
- *
13
- * @description
14
- * Get the number of days in a month of the given date, considering the context if provided.
15
- *
16
- * @param date - The given date
17
- * @param options - An object with options
18
- *
19
- * @returns The number of days in a month
20
- *
21
- * @example
22
- * // How many days are in February 2000?
23
- * const result = getDaysInMonth(new Date(2000, 1))
24
- * //=> 29
25
- */
26
- function getDaysInMonth(date, options) {
27
- const _date = toDate(date, options?.in);
28
- const year = _date.getFullYear();
29
- const monthIndex = _date.getMonth();
30
- const lastDayOfMonth = constructFrom(_date, 0);
31
- lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
32
- lastDayOfMonth.setHours(0, 0, 0, 0);
33
- return lastDayOfMonth.getDate();
34
- }
35
-
36
- export { getDaysInMonth as default, getDaysInMonth };
@@ -1,40 +0,0 @@
1
- import { millisecondsInWeek } from './constants.js';
2
- import { startOfISOWeek } from './startOfISOWeek.js';
3
- import { startOfISOWeekYear } from './startOfISOWeekYear.js';
4
- import { toDate } from './toDate.js';
5
-
6
- /**
7
- * The {@link getISOWeek} function options.
8
- */
9
-
10
- /**
11
- * @name getISOWeek
12
- * @category ISO Week Helpers
13
- * @summary Get the ISO week of the given date.
14
- *
15
- * @description
16
- * Get the ISO week of the given date.
17
- *
18
- * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
19
- *
20
- * @param date - The given date
21
- * @param options - The options
22
- *
23
- * @returns The ISO week
24
- *
25
- * @example
26
- * // Which week of the ISO-week numbering year is 2 January 2005?
27
- * const result = getISOWeek(new Date(2005, 0, 2))
28
- * //=> 53
29
- */
30
- function getISOWeek(date, options) {
31
- const _date = toDate(date, options?.in);
32
- const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);
33
-
34
- // Round the number of weeks to the nearest integer because the number of
35
- // milliseconds in a week is not constant (e.g. it's different in the week of
36
- // the daylight saving time clock shift).
37
- return Math.round(diff / millisecondsInWeek) + 1;
38
- }
39
-
40
- export { getISOWeek as default, getISOWeek };
@@ -1,52 +0,0 @@
1
- import { constructFrom } from './constructFrom.js';
2
- import { startOfISOWeek } from './startOfISOWeek.js';
3
- import { toDate } from './toDate.js';
4
-
5
- /**
6
- * The {@link getISOWeekYear} function options.
7
- */
8
-
9
- /**
10
- * @name getISOWeekYear
11
- * @category ISO Week-Numbering Year Helpers
12
- * @summary Get the ISO week-numbering year of the given date.
13
- *
14
- * @description
15
- * Get the ISO week-numbering year of the given date,
16
- * which always starts 3 days before the year's first Thursday.
17
- *
18
- * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
19
- *
20
- * @param date - The given date
21
- *
22
- * @returns The ISO week-numbering year
23
- *
24
- * @example
25
- * // Which ISO-week numbering year is 2 January 2005?
26
- * const result = getISOWeekYear(new Date(2005, 0, 2))
27
- * //=> 2004
28
- */
29
- function getISOWeekYear(date, options) {
30
- const _date = toDate(date, options?.in);
31
- const year = _date.getFullYear();
32
-
33
- const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);
34
- fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
35
- fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
36
- const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
37
-
38
- const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);
39
- fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
40
- fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
41
- const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
42
-
43
- if (_date.getTime() >= startOfNextYear.getTime()) {
44
- return year + 1;
45
- } else if (_date.getTime() >= startOfThisYear.getTime()) {
46
- return year;
47
- } else {
48
- return year - 1;
49
- }
50
- }
51
-
52
- export { getISOWeekYear as default, getISOWeekYear };
@@ -1,29 +0,0 @@
1
- import { toDate } from './toDate.js';
2
-
3
- /**
4
- * The {@link getMonth} function options.
5
- */
6
-
7
- /**
8
- * @name getMonth
9
- * @category Month Helpers
10
- * @summary Get the month of the given date.
11
- *
12
- * @description
13
- * Get the month of the given date.
14
- *
15
- * @param date - The given date
16
- * @param options - An object with options
17
- *
18
- * @returns The month index (0-11)
19
- *
20
- * @example
21
- * // Which month is 29 February 2012?
22
- * const result = getMonth(new Date(2012, 1, 29))
23
- * //=> 1
24
- */
25
- function getMonth(date, options) {
26
- return toDate(date, options?.in).getMonth();
27
- }
28
-
29
- export { getMonth as default, getMonth };
@@ -1,54 +0,0 @@
1
- import { millisecondsInWeek } from './constants.js';
2
- import { startOfWeek } from './startOfWeek.js';
3
- import { startOfWeekYear } from './startOfWeekYear.js';
4
- import { toDate } from './toDate.js';
5
-
6
- /**
7
- * The {@link getWeek} function options.
8
- */
9
-
10
- /**
11
- * @name getWeek
12
- * @category Week Helpers
13
- * @summary Get the local week index of the given date.
14
- *
15
- * @description
16
- * Get the local week index of the given date.
17
- * The exact calculation depends on the values of
18
- * `options.weekStartsOn` (which is the index of the first day of the week)
19
- * and `options.firstWeekContainsDate` (which is the day of January, which is always in
20
- * the first week of the week-numbering year)
21
- *
22
- * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
23
- *
24
- * @param date - The given date
25
- * @param options - An object with options
26
- *
27
- * @returns The week
28
- *
29
- * @example
30
- * // Which week of the local week numbering year is 2 January 2005 with default options?
31
- * const result = getWeek(new Date(2005, 0, 2))
32
- * //=> 2
33
- *
34
- * @example
35
- * // Which week of the local week numbering year is 2 January 2005,
36
- * // if Monday is the first day of the week,
37
- * // and the first week of the year always contains 4 January?
38
- * const result = getWeek(new Date(2005, 0, 2), {
39
- * weekStartsOn: 1,
40
- * firstWeekContainsDate: 4
41
- * })
42
- * //=> 53
43
- */
44
- function getWeek(date, options) {
45
- const _date = toDate(date, options?.in);
46
- const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
47
-
48
- // Round the number of weeks to the nearest integer because the number of
49
- // milliseconds in a week is not constant (e.g. it's different in the week of
50
- // the daylight saving time clock shift).
51
- return Math.round(diff / millisecondsInWeek) + 1;
52
- }
53
-
54
- export { getWeek as default, getWeek };
@@ -1,75 +0,0 @@
1
- import { getDefaultOptions } from './_lib/defaultOptions.js';
2
- import { constructFrom } from './constructFrom.js';
3
- import { startOfWeek } from './startOfWeek.js';
4
- import { toDate } from './toDate.js';
5
-
6
- /**
7
- * The {@link getWeekYear} function options.
8
- */
9
-
10
- /**
11
- * @name getWeekYear
12
- * @category Week-Numbering Year Helpers
13
- * @summary Get the local week-numbering year of the given date.
14
- *
15
- * @description
16
- * Get the local week-numbering year of the given date.
17
- * The exact calculation depends on the values of
18
- * `options.weekStartsOn` (which is the index of the first day of the week)
19
- * and `options.firstWeekContainsDate` (which is the day of January, which is always in
20
- * the first week of the week-numbering year)
21
- *
22
- * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
23
- *
24
- * @param date - The given date
25
- * @param options - An object with options.
26
- *
27
- * @returns The local week-numbering year
28
- *
29
- * @example
30
- * // Which week numbering year is 26 December 2004 with the default settings?
31
- * const result = getWeekYear(new Date(2004, 11, 26))
32
- * //=> 2005
33
- *
34
- * @example
35
- * // Which week numbering year is 26 December 2004 if week starts on Saturday?
36
- * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
37
- * //=> 2004
38
- *
39
- * @example
40
- * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
41
- * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
42
- * //=> 2004
43
- */
44
- function getWeekYear(date, options) {
45
- const _date = toDate(date, options?.in);
46
- const year = _date.getFullYear();
47
-
48
- const defaultOptions = getDefaultOptions();
49
- const firstWeekContainsDate =
50
- options?.firstWeekContainsDate ??
51
- options?.locale?.options?.firstWeekContainsDate ??
52
- defaultOptions.firstWeekContainsDate ??
53
- defaultOptions.locale?.options?.firstWeekContainsDate ??
54
- 1;
55
-
56
- const firstWeekOfNextYear = constructFrom(options?.in || date, 0);
57
- firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
58
- firstWeekOfNextYear.setHours(0, 0, 0, 0);
59
- const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);
60
-
61
- const firstWeekOfThisYear = constructFrom(options?.in || date, 0);
62
- firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
63
- firstWeekOfThisYear.setHours(0, 0, 0, 0);
64
- const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);
65
-
66
- if (+_date >= +startOfNextYear) {
67
- return year + 1;
68
- } else if (+_date >= +startOfThisYear) {
69
- return year;
70
- } else {
71
- return year - 1;
72
- }
73
- }
74
-
75
- export { getWeekYear as default, getWeekYear };
@@ -1,29 +0,0 @@
1
- import { toDate } from './toDate.js';
2
-
3
- /**
4
- * The {@link getYear} function options.
5
- */
6
-
7
- /**
8
- * @name getYear
9
- * @category Year Helpers
10
- * @summary Get the year of the given date.
11
- *
12
- * @description
13
- * Get the year of the given date.
14
- *
15
- * @param date - The given date
16
- * @param options - An object with options
17
- *
18
- * @returns The year
19
- *
20
- * @example
21
- * // Which year is 2 July 2014?
22
- * const result = getYear(new Date(2014, 6, 2))
23
- * //=> 2014
24
- */
25
- function getYear(date, options) {
26
- return toDate(date, options?.in).getFullYear();
27
- }
28
-
29
- export { getYear as default, getYear };
@@ -1,25 +0,0 @@
1
- import { toDate } from './toDate.js';
2
-
3
- /**
4
- * @name isAfter
5
- * @category Common Helpers
6
- * @summary Is the first date after the second one?
7
- *
8
- * @description
9
- * Is the first date after the second one?
10
- *
11
- * @param date - The date that should be after the other one to return true
12
- * @param dateToCompare - The date to compare with
13
- *
14
- * @returns The first date is after the second date
15
- *
16
- * @example
17
- * // Is 10 July 1989 after 11 February 1987?
18
- * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
19
- * //=> true
20
- */
21
- function isAfter(date, dateToCompare) {
22
- return +toDate(date) > +toDate(dateToCompare);
23
- }
24
-
25
- export { isAfter as default, isAfter };
@@ -1,25 +0,0 @@
1
- import { toDate } from './toDate.js';
2
-
3
- /**
4
- * @name isBefore
5
- * @category Common Helpers
6
- * @summary Is the first date before the second one?
7
- *
8
- * @description
9
- * Is the first date before the second one?
10
- *
11
- * @param date - The date that should be before the other one to return true
12
- * @param dateToCompare - The date to compare with
13
- *
14
- * @returns The first date is before the second date
15
- *
16
- * @example
17
- * // Is 10 July 1989 before 11 February 1987?
18
- * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
19
- * //=> false
20
- */
21
- function isBefore(date, dateToCompare) {
22
- return +toDate(date) < +toDate(dateToCompare);
23
- }
24
-
25
- export { isBefore as default, isBefore };
@@ -1,41 +0,0 @@
1
- /**
2
- * @name isDate
3
- * @category Common Helpers
4
- * @summary Is the given value a date?
5
- *
6
- * @description
7
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
8
- *
9
- * @param value - The value to check
10
- *
11
- * @returns True if the given value is a date
12
- *
13
- * @example
14
- * // For a valid date:
15
- * const result = isDate(new Date())
16
- * //=> true
17
- *
18
- * @example
19
- * // For an invalid date:
20
- * const result = isDate(new Date(NaN))
21
- * //=> true
22
- *
23
- * @example
24
- * // For some value:
25
- * const result = isDate('2014-02-31')
26
- * //=> false
27
- *
28
- * @example
29
- * // For an object:
30
- * const result = isDate({})
31
- * //=> false
32
- */
33
- function isDate(value) {
34
- return (
35
- value instanceof Date ||
36
- (typeof value === "object" &&
37
- Object.prototype.toString.call(value) === "[object Date]")
38
- );
39
- }
40
-
41
- export { isDate as default, isDate };
@@ -1,46 +0,0 @@
1
- import { normalizeDates } from './_lib/normalizeDates.js';
2
- import { startOfDay } from './startOfDay.js';
3
-
4
- /**
5
- * The {@link isSameDay} function options.
6
- */
7
-
8
- /**
9
- * @name isSameDay
10
- * @category Day Helpers
11
- * @summary Are the given dates in the same day (and year and month)?
12
- *
13
- * @description
14
- * Are the given dates in the same day (and year and month)?
15
- *
16
- * @param laterDate - The first date to check
17
- * @param earlierDate - The second date to check
18
- * @param options - An object with options
19
- *
20
- * @returns The dates are in the same day (and year and month)
21
- *
22
- * @example
23
- * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
24
- * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
25
- * //=> true
26
- *
27
- * @example
28
- * // Are 4 September and 4 October in the same day?
29
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
30
- * //=> false
31
- *
32
- * @example
33
- * // Are 4 September, 2014 and 4 September, 2015 in the same day?
34
- * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
35
- * //=> false
36
- */
37
- function isSameDay(laterDate, earlierDate, options) {
38
- const [dateLeft_, dateRight_] = normalizeDates(
39
- options?.in,
40
- laterDate,
41
- earlierDate,
42
- );
43
- return +startOfDay(dateLeft_) === +startOfDay(dateRight_);
44
- }
45
-
46
- export { isSameDay as default, isSameDay };
@@ -1,43 +0,0 @@
1
- import { normalizeDates } from './_lib/normalizeDates.js';
2
-
3
- /**
4
- * The {@link isSameMonth} function options.
5
- */
6
-
7
- /**
8
- * @name isSameMonth
9
- * @category Month Helpers
10
- * @summary Are the given dates in the same month (and year)?
11
- *
12
- * @description
13
- * Are the given dates in the same month (and year)?
14
- *
15
- * @param laterDate - The first date to check
16
- * @param earlierDate - The second date to check
17
- * @param options - An object with options
18
- *
19
- * @returns The dates are in the same month (and year)
20
- *
21
- * @example
22
- * // Are 2 September 2014 and 25 September 2014 in the same month?
23
- * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
24
- * //=> true
25
- *
26
- * @example
27
- * // Are 2 September 2014 and 25 September 2015 in the same month?
28
- * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
29
- * //=> false
30
- */
31
- function isSameMonth(laterDate, earlierDate, options) {
32
- const [laterDate_, earlierDate_] = normalizeDates(
33
- options?.in,
34
- laterDate,
35
- earlierDate,
36
- );
37
- return (
38
- laterDate_.getFullYear() === earlierDate_.getFullYear() &&
39
- laterDate_.getMonth() === earlierDate_.getMonth()
40
- );
41
- }
42
-
43
- export { isSameMonth as default, isSameMonth };
@@ -1,35 +0,0 @@
1
- import { normalizeDates } from './_lib/normalizeDates.js';
2
-
3
- /**
4
- * The {@link isSameYear} function options.
5
- */
6
-
7
- /**
8
- * @name isSameYear
9
- * @category Year Helpers
10
- * @summary Are the given dates in the same year?
11
- *
12
- * @description
13
- * Are the given dates in the same year?
14
- *
15
- * @param laterDate - The first date to check
16
- * @param earlierDate - The second date to check
17
- * @param options - An object with options
18
- *
19
- * @returns The dates are in the same year
20
- *
21
- * @example
22
- * // Are 2 September 2014 and 25 September 2014 in the same year?
23
- * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))
24
- * //=> true
25
- */
26
- function isSameYear(laterDate, earlierDate, options) {
27
- const [laterDate_, earlierDate_] = normalizeDates(
28
- options?.in,
29
- laterDate,
30
- earlierDate,
31
- );
32
- return laterDate_.getFullYear() === earlierDate_.getFullYear();
33
- }
34
-
35
- export { isSameYear as default, isSameYear };
@@ -1,39 +0,0 @@
1
- import { isDate } from './isDate.js';
2
- import { toDate } from './toDate.js';
3
-
4
- /**
5
- * @name isValid
6
- * @category Common Helpers
7
- * @summary Is the given date valid?
8
- *
9
- * @description
10
- * Returns false if argument is Invalid Date and true otherwise.
11
- * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)
12
- * Invalid Date is a Date, whose time value is NaN.
13
- *
14
- * Time value of Date: http://es5.github.io/#x15.9.1.1
15
- *
16
- * @param date - The date to check
17
- *
18
- * @returns The date is valid
19
- *
20
- * @example
21
- * // For the valid date:
22
- * const result = isValid(new Date(2014, 1, 31))
23
- * //=> true
24
- *
25
- * @example
26
- * // For the value, convertible into a date:
27
- * const result = isValid(1393804800000)
28
- * //=> true
29
- *
30
- * @example
31
- * // For the invalid date:
32
- * const result = isValid(new Date(''))
33
- * //=> false
34
- */
35
- function isValid(date) {
36
- return !((!isDate(date) && typeof date !== "number") || isNaN(+toDate(date)));
37
- }
38
-
39
- export { isValid as default, isValid };
@@ -1,10 +0,0 @@
1
- function buildFormatLongFn(args) {
2
- return (options = {}) => {
3
- // TODO: Remove String()
4
- const width = options.width ? String(options.width) : args.defaultWidth;
5
- const format = args.formats[width] || args.formats[args.defaultWidth];
6
- return format;
7
- };
8
- }
9
-
10
- export { buildFormatLongFn };
@@ -1,64 +0,0 @@
1
- /**
2
- * The localize function argument callback which allows to convert raw value to
3
- * the actual type.
4
- *
5
- * @param value - The value to convert
6
- *
7
- * @returns The converted value
8
- */
9
-
10
- /**
11
- * The map of localized values for each width.
12
- */
13
-
14
- /**
15
- * The index type of the locale unit value. It types conversion of units of
16
- * values that don't start at 0 (i.e. quarters).
17
- */
18
-
19
- /**
20
- * Converts the unit value to the tuple of values.
21
- */
22
-
23
- /**
24
- * The tuple of localized era values. The first element represents BC,
25
- * the second element represents AD.
26
- */
27
-
28
- /**
29
- * The tuple of localized quarter values. The first element represents Q1.
30
- */
31
-
32
- /**
33
- * The tuple of localized day values. The first element represents Sunday.
34
- */
35
-
36
- /**
37
- * The tuple of localized month values. The first element represents January.
38
- */
39
-
40
- function buildLocalizeFn(args) {
41
- return (value, options) => {
42
- const context = options?.context ? String(options.context) : "standalone";
43
-
44
- let valuesArray;
45
- if (context === "formatting" && args.formattingValues) {
46
- const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
47
- const width = options?.width ? String(options.width) : defaultWidth;
48
-
49
- valuesArray =
50
- args.formattingValues[width] || args.formattingValues[defaultWidth];
51
- } else {
52
- const defaultWidth = args.defaultWidth;
53
- const width = options?.width ? String(options.width) : args.defaultWidth;
54
-
55
- valuesArray = args.values[width] || args.values[defaultWidth];
56
- }
57
- const index = args.argumentCallback ? args.argumentCallback(value) : value;
58
-
59
- // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
60
- return valuesArray[index];
61
- };
62
- }
63
-
64
- export { buildLocalizeFn };