@zimyo/ui 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/package.json +78 -83
  2. package/dist/components/index.d.ts +0 -60
  3. package/dist/components/ui/accordion.d.ts +0 -10
  4. package/dist/components/ui/accordion.js +0 -58
  5. package/dist/components/ui/alert-dialog.d.ts +0 -17
  6. package/dist/components/ui/alert-dialog.js +0 -108
  7. package/dist/components/ui/alert.d.ts +0 -13
  8. package/dist/components/ui/alert.js +0 -52
  9. package/dist/components/ui/aspect-ratio.d.ts +0 -6
  10. package/dist/components/ui/aspect-ratio.js +0 -12
  11. package/dist/components/ui/avatar.d.ts +0 -9
  12. package/dist/components/ui/avatar.js +0 -37
  13. package/dist/components/ui/badge.d.ts +0 -13
  14. package/dist/components/ui/badge.js +0 -36
  15. package/dist/components/ui/breadcrumb.d.ts +0 -14
  16. package/dist/components/ui/breadcrumb.js +0 -94
  17. package/dist/components/ui/button.d.ts +0 -14
  18. package/dist/components/ui/button.js +0 -48
  19. package/dist/components/ui/calendar.d.ts +0 -13
  20. package/dist/components/ui/calendar.js +0 -137
  21. package/dist/components/ui/card.d.ts +0 -12
  22. package/dist/components/ui/card.js +0 -76
  23. package/dist/components/ui/carousel.d.ts +0 -25
  24. package/dist/components/ui/carousel.js +0 -173
  25. package/dist/components/ui/chart.d.ts +0 -44
  26. package/dist/components/ui/chart.js +0 -203
  27. package/dist/components/ui/checkbox.d.ts +0 -7
  28. package/dist/components/ui/checkbox.js +0 -26
  29. package/dist/components/ui/collapsible.d.ts +0 -8
  30. package/dist/components/ui/collapsible.js +0 -24
  31. package/dist/components/ui/command.d.ts +0 -22
  32. package/dist/components/ui/command.js +0 -119
  33. package/dist/components/ui/context-menu.d.ts +0 -28
  34. package/dist/components/ui/context-menu.js +0 -171
  35. package/dist/components/ui/dialog.d.ts +0 -18
  36. package/dist/components/ui/dialog.js +0 -106
  37. package/dist/components/ui/drawer.d.ts +0 -16
  38. package/dist/components/ui/drawer.js +0 -99
  39. package/dist/components/ui/dropdown-menu.d.ts +0 -28
  40. package/dist/components/ui/dropdown-menu.js +0 -173
  41. package/dist/components/ui/form.d.ts +0 -27
  42. package/dist/components/ui/form.js +0 -129
  43. package/dist/components/ui/hover-card.d.ts +0 -9
  44. package/dist/components/ui/hover-card.js +0 -36
  45. package/dist/components/ui/input-otp.d.ts +0 -14
  46. package/dist/components/ui/input-otp.js +0 -66
  47. package/dist/components/ui/input.d.ts +0 -6
  48. package/dist/components/ui/input.js +0 -18
  49. package/dist/components/ui/label.d.ts +0 -7
  50. package/dist/components/ui/label.js +0 -17
  51. package/dist/components/ui/menubar.d.ts +0 -29
  52. package/dist/components/ui/menubar.js +0 -191
  53. package/dist/components/ui/navigation-menu.d.ts +0 -18
  54. package/dist/components/ui/navigation-menu.js +0 -108
  55. package/dist/components/ui/pagination.d.ts +0 -18
  56. package/dist/components/ui/pagination.js +0 -103
  57. package/dist/components/ui/popover.d.ts +0 -10
  58. package/dist/components/ui/popover.js +0 -41
  59. package/dist/components/ui/progress.d.ts +0 -7
  60. package/dist/components/ui/progress.js +0 -26
  61. package/dist/components/ui/radio-group.d.ts +0 -8
  62. package/dist/components/ui/radio-group.js +0 -36
  63. package/dist/components/ui/resizable.d.ts +0 -11
  64. package/dist/components/ui/resizable.js +0 -42
  65. package/dist/components/ui/scroll-area.d.ts +0 -8
  66. package/dist/components/ui/scroll-area.js +0 -41
  67. package/dist/components/ui/select.d.ts +0 -18
  68. package/dist/components/ui/select.js +0 -136
  69. package/dist/components/ui/separator.d.ts +0 -7
  70. package/dist/components/ui/separator.js +0 -21
  71. package/dist/components/ui/sheet.d.ts +0 -16
  72. package/dist/components/ui/sheet.js +0 -106
  73. package/dist/components/ui/sidebar.d.ts +0 -74
  74. package/dist/components/ui/sidebar.js +0 -511
  75. package/dist/components/ui/skeleton.d.ts +0 -5
  76. package/dist/components/ui/skeleton.js +0 -16
  77. package/dist/components/ui/slider.d.ts +0 -7
  78. package/dist/components/ui/slider.js +0 -41
  79. package/dist/components/ui/sonner.d.ts +0 -6
  80. package/dist/components/ui/sonner.js +0 -18
  81. package/dist/components/ui/switch.d.ts +0 -7
  82. package/dist/components/ui/switch.js +0 -22
  83. package/dist/components/ui/table.d.ts +0 -13
  84. package/dist/components/ui/table.js +0 -90
  85. package/dist/components/ui/tabs.d.ts +0 -10
  86. package/dist/components/ui/tabs.js +0 -47
  87. package/dist/components/ui/textarea.d.ts +0 -6
  88. package/dist/components/ui/textarea.js +0 -16
  89. package/dist/components/ui/toggle-group.d.ts +0 -11
  90. package/dist/components/ui/toggle-group.js +0 -57
  91. package/dist/components/ui/toggle.d.ts +0 -13
  92. package/dist/components/ui/toggle.js +0 -41
  93. package/dist/components/ui/tooltip.d.ts +0 -10
  94. package/dist/components/ui/tooltip.js +0 -50
  95. package/dist/index.d.ts +0 -63
  96. package/dist/index.js +0 -48
  97. package/dist/lib/utils.d.ts +0 -5
  98. package/dist/lib/utils.js +0 -8
  99. package/dist/node_modules/@date-fns/tz/date/index.js +0 -101
  100. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -207
  101. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -43
  102. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -11
  103. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -39
  104. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -79
  105. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -321
  106. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -211
  107. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -29
  108. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -207
  109. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -15
  110. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -17
  111. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -130
  112. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -43
  113. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -89
  114. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -12
  115. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -70
  116. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -18
  117. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
  118. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
  119. package/dist/node_modules/class-variance-authority/dist/index.js +0 -44
  120. package/dist/node_modules/clsx/dist/clsx.js +0 -3
  121. package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.js +0 -3
  122. package/dist/node_modules/cmdk/dist/index.js +0 -10
  123. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -7
  124. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
  125. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -775
  126. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -94
  127. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -66
  128. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -31
  129. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
  130. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
  131. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -25
  132. package/dist/node_modules/date-fns/addDays.js +0 -41
  133. package/dist/node_modules/date-fns/addMonths.js +0 -75
  134. package/dist/node_modules/date-fns/addWeeks.js +0 -33
  135. package/dist/node_modules/date-fns/addYears.js +0 -33
  136. package/dist/node_modules/date-fns/constants.js +0 -46
  137. package/dist/node_modules/date-fns/constructFrom.js +0 -49
  138. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -62
  139. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -42
  140. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -65
  141. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -35
  142. package/dist/node_modules/date-fns/endOfMonth.js +0 -37
  143. package/dist/node_modules/date-fns/endOfWeek.js +0 -53
  144. package/dist/node_modules/date-fns/endOfYear.js +0 -37
  145. package/dist/node_modules/date-fns/format.js +0 -423
  146. package/dist/node_modules/date-fns/getDayOfYear.js +0 -34
  147. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -36
  148. package/dist/node_modules/date-fns/getISOWeek.js +0 -40
  149. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -52
  150. package/dist/node_modules/date-fns/getMonth.js +0 -29
  151. package/dist/node_modules/date-fns/getWeek.js +0 -54
  152. package/dist/node_modules/date-fns/getWeekYear.js +0 -75
  153. package/dist/node_modules/date-fns/getYear.js +0 -29
  154. package/dist/node_modules/date-fns/isAfter.js +0 -25
  155. package/dist/node_modules/date-fns/isBefore.js +0 -25
  156. package/dist/node_modules/date-fns/isDate.js +0 -41
  157. package/dist/node_modules/date-fns/isSameDay.js +0 -46
  158. package/dist/node_modules/date-fns/isSameMonth.js +0 -43
  159. package/dist/node_modules/date-fns/isSameYear.js +0 -35
  160. package/dist/node_modules/date-fns/isValid.js +0 -39
  161. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  162. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -64
  163. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -59
  164. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -22
  165. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -103
  166. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -41
  167. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -13
  168. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -189
  169. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -134
  170. package/dist/node_modules/date-fns/locale/en-US.js +0 -28
  171. package/dist/node_modules/date-fns/max.js +0 -49
  172. package/dist/node_modules/date-fns/min.js +0 -49
  173. package/dist/node_modules/date-fns/setMonth.js +0 -46
  174. package/dist/node_modules/date-fns/setYear.js +0 -40
  175. package/dist/node_modules/date-fns/startOfDay.js +0 -35
  176. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -35
  177. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -42
  178. package/dist/node_modules/date-fns/startOfMonth.js +0 -37
  179. package/dist/node_modules/date-fns/startOfWeek.js +0 -53
  180. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -64
  181. package/dist/node_modules/date-fns/startOfYear.js +0 -36
  182. package/dist/node_modules/date-fns/toDate.js +0 -46
  183. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1669
  184. package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +0 -37
  185. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -38
  186. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
  187. package/dist/node_modules/input-otp/dist/index.js +0 -24
  188. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -285
  189. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -122
  190. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -30
  191. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -14
  192. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -13
  193. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -522
  194. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -13
  195. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -13
  196. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -18
  198. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -19
  199. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -21
  200. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -13
  201. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -13
  202. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -15
  203. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -14
  204. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -13
  205. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -13
  206. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -15
  207. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -31
  208. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -15
  209. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -13
  210. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -15
  211. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -14
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -13
  213. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -14
  214. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -14
  215. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -13
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -13
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -14
  218. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -13
  219. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -15
  220. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
  221. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -25
  222. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -19
  223. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -18
  224. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -21
  225. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -13
  226. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -19
  227. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -23
  228. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -7
  229. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -73
  230. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -95
  231. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -22
  232. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -28
  233. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -33
  234. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -20
  235. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -27
  236. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -51
  237. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -19
  238. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -33
  239. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -24
  240. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -46
  241. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -24
  242. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -28
  243. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -33
  244. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -69
  245. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -51
  246. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -39
  247. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -36
  248. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -37
  249. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -27
  250. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -24
  251. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -14
  252. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -38
  253. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -27
  254. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -31
  255. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -11
  256. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -32
  257. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -24
  258. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -22
  259. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -14
  260. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -13
  261. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -15
  262. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -15
  263. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -15
  264. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -14
  265. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -18
  266. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -14
  267. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -57
  268. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -45
  269. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -44
  270. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -175
  271. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -85
  272. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -25
  273. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -50
  274. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -31
  275. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -92
  276. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -62
  277. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -30
  278. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -74
  279. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -35
  280. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -21
  281. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -66
  282. package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -507
  283. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -9
  284. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -160
  285. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -38
  286. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -21
  287. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
  288. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  289. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  290. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -56
  291. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
  292. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -31
  293. package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.js +0 -2407
  294. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -19
  295. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -25
  296. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -51
  297. package/dist/node_modules/sonner/dist/index.js +0 -1125
  298. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2956
  299. package/dist/node_modules/tslib/tslib.es6.js +0 -56
  300. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -24
  301. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -48
  302. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -42
  303. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
  304. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -77
  305. package/dist/node_modules/vaul/dist/index.js +0 -1627
  306. package/dist/providers/ThemeProvider.d.ts +0 -12
  307. package/dist/providers/ThemeProvider.js +0 -27
  308. package/dist/providers/index.d.ts +0 -3
  309. package/dist/styles.css +0 -1
@@ -1,85 +0,0 @@
1
- import { useEffect } from 'react';
2
- import { getDates } from './helpers/getDates.js';
3
- import { getDays } from './helpers/getDays.js';
4
- import { getDisplayMonths } from './helpers/getDisplayMonths.js';
5
- import { getInitialMonth } from './helpers/getInitialMonth.js';
6
- import { getMonths } from './helpers/getMonths.js';
7
- import { getNavMonths } from './helpers/getNavMonth.js';
8
- import { getNextMonth } from './helpers/getNextMonth.js';
9
- import { getPreviousMonth } from './helpers/getPreviousMonth.js';
10
- import { getWeeks } from './helpers/getWeeks.js';
11
- import { useControlledValue } from './helpers/useControlledValue.js';
12
-
13
- /**
14
- * Provides the calendar object to work with the calendar in custom components.
15
- *
16
- * @private
17
- * @param props - The DayPicker props related to calendar configuration.
18
- * @param dateLib - The date utility library instance.
19
- * @returns The calendar object containing displayed days, weeks, months, and
20
- * navigation methods.
21
- */
22
- function useCalendar(props, dateLib) {
23
- const [navStart, navEnd] = getNavMonths(props, dateLib);
24
- const { startOfMonth, endOfMonth } = dateLib;
25
- const initialMonth = getInitialMonth(props, dateLib);
26
- const [firstMonth, setFirstMonth] = useControlledValue(initialMonth,
27
- // initialMonth is always computed from props.month if provided
28
- props.month ? initialMonth : undefined);
29
- useEffect(() => {
30
- const newInitialMonth = getInitialMonth(props, dateLib);
31
- setFirstMonth(newInitialMonth);
32
- // eslint-disable-next-line react-hooks/exhaustive-deps
33
- }, [props.timeZone]);
34
- /** The months displayed in the calendar. */
35
- const displayMonths = getDisplayMonths(firstMonth, navEnd, props, dateLib);
36
- /** The dates displayed in the calendar. */
37
- const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, props, dateLib);
38
- /** The Months displayed in the calendar. */
39
- const months = getMonths(displayMonths, dates, props, dateLib);
40
- /** The Weeks displayed in the calendar. */
41
- const weeks = getWeeks(months);
42
- /** The Days displayed in the calendar. */
43
- const days = getDays(months);
44
- const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);
45
- const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);
46
- const { disableNavigation, onMonthChange } = props;
47
- const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));
48
- const goToMonth = (date) => {
49
- if (disableNavigation) {
50
- return;
51
- }
52
- let newMonth = startOfMonth(date);
53
- // if month is before start, use the first month instead
54
- if (navStart && newMonth < startOfMonth(navStart)) {
55
- newMonth = startOfMonth(navStart);
56
- }
57
- // if month is after endMonth, use the last month instead
58
- if (navEnd && newMonth > startOfMonth(navEnd)) {
59
- newMonth = startOfMonth(navEnd);
60
- }
61
- setFirstMonth(newMonth);
62
- onMonthChange?.(newMonth);
63
- };
64
- const goToDay = (day) => {
65
- // is this check necessary?
66
- if (isDayInCalendar(day)) {
67
- return;
68
- }
69
- goToMonth(day.date);
70
- };
71
- const calendar = {
72
- months,
73
- weeks,
74
- days,
75
- navStart,
76
- navEnd,
77
- previousMonth,
78
- nextMonth,
79
- goToMonth,
80
- goToDay
81
- };
82
- return calendar;
83
- }
84
-
85
- export { useCalendar };
@@ -1,25 +0,0 @@
1
- import { createContext, useContext } from 'react';
2
-
3
- /** @ignore */
4
- const dayPickerContext = createContext(undefined);
5
- /**
6
- * Provides access to the DayPicker context, which includes properties and
7
- * methods to interact with the DayPicker component. This hook must be used
8
- * within a custom component.
9
- *
10
- * @template T - Use this type to refine the returned context type with a
11
- * specific selection mode.
12
- * @returns The context to work with DayPicker.
13
- * @throws {Error} If the hook is used outside of a DayPicker provider.
14
- * @group Hooks
15
- * @see https://daypicker.dev/guides/custom-components
16
- */
17
- function useDayPicker() {
18
- const context = useContext(dayPickerContext);
19
- if (context === undefined) {
20
- throw new Error("useDayPicker() must be used within a custom component.");
21
- }
22
- return context;
23
- }
24
-
25
- export { dayPickerContext, useDayPicker };
@@ -1,50 +0,0 @@
1
- import { useState } from 'react';
2
- import { calculateFocusTarget } from './helpers/calculateFocusTarget.js';
3
- import { getNextFocus } from './helpers/getNextFocus.js';
4
-
5
- /**
6
- * Manages focus behavior for the DayPicker component, including setting,
7
- * moving, and blurring focus on calendar days.
8
- *
9
- * @template T - The type of DayPicker props.
10
- * @param props - The DayPicker props.
11
- * @param calendar - The calendar object containing the displayed days and
12
- * months.
13
- * @param getModifiers - A function to retrieve modifiers for a given day.
14
- * @param isSelected - A function to check if a date is selected.
15
- * @param dateLib - The date utility library instance.
16
- * @returns An object containing focus-related methods and the currently focused
17
- * day.
18
- */
19
- function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
20
- const { autoFocus } = props;
21
- const [lastFocused, setLastFocused] = useState();
22
- const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);
23
- const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);
24
- const blur = () => {
25
- setLastFocused(focusedDay);
26
- setFocused(undefined);
27
- };
28
- const moveFocus = (moveBy, moveDir) => {
29
- if (!focusedDay)
30
- return;
31
- const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);
32
- if (!nextFocus)
33
- return;
34
- calendar.goToDay(nextFocus);
35
- setFocused(nextFocus);
36
- };
37
- const isFocusTarget = (day) => {
38
- return Boolean(focusTarget?.isEqualTo(day));
39
- };
40
- const useFocus = {
41
- isFocusTarget,
42
- setFocused,
43
- focused: focusedDay,
44
- blur,
45
- moveFocus
46
- };
47
- return useFocus;
48
- }
49
-
50
- export { useFocus };
@@ -1,31 +0,0 @@
1
- import { useMulti } from './selection/useMulti.js';
2
- import { useRange } from './selection/useRange.js';
3
- import { useSingle } from './selection/useSingle.js';
4
-
5
- /**
6
- * Determines the appropriate selection hook to use based on the selection mode
7
- * and returns the corresponding selection object.
8
- *
9
- * @template T - The type of DayPicker props.
10
- * @param props - The DayPicker props.
11
- * @param dateLib - The date utility library instance.
12
- * @returns The selection object for the specified mode, or `undefined` if no
13
- * mode is set.
14
- */
15
- function useSelection(props, dateLib) {
16
- const single = useSingle(props, dateLib);
17
- const multi = useMulti(props, dateLib);
18
- const range = useRange(props, dateLib);
19
- switch (props.mode) {
20
- case "single":
21
- return single;
22
- case "multiple":
23
- return multi;
24
- case "range":
25
- return range;
26
- default:
27
- return undefined;
28
- }
29
- }
30
-
31
- export { useSelection };
@@ -1,92 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Adds a date to an existing range, considering constraints like minimum and
5
- * maximum range size.
6
- *
7
- * @param date - The date to add to the range.
8
- * @param initialRange - The initial range to which the date will be added.
9
- * @param min - The minimum number of days in the range.
10
- * @param max - The maximum number of days in the range.
11
- * @param required - Whether the range must always include at least one date.
12
- * @param dateLib - The date utility library instance.
13
- * @returns The updated date range, or `undefined` if the range is cleared.
14
- * @group Utilities
15
- */
16
- function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {
17
- const { from, to } = initialRange || {};
18
- const { isSameDay, isAfter, isBefore } = dateLib;
19
- let range;
20
- if (!from && !to) {
21
- // the range is empty, add the date
22
- range = { from: date, to: min > 0 ? undefined : date };
23
- }
24
- else if (from && !to) {
25
- // adding date to an incomplete range
26
- if (isSameDay(from, date)) {
27
- // adding a date equal to the start of the range
28
- if (required) {
29
- range = { from, to: undefined };
30
- }
31
- else {
32
- range = undefined;
33
- }
34
- }
35
- else if (isBefore(date, from)) {
36
- // adding a date before the start of the range
37
- range = { from: date, to: from };
38
- }
39
- else {
40
- // adding a date after the start of the range
41
- range = { from, to: date };
42
- }
43
- }
44
- else if (from && to) {
45
- // adding date to a complete range
46
- if (isSameDay(from, date) && isSameDay(to, date)) {
47
- // adding a date that is equal to both start and end of the range
48
- if (required) {
49
- range = { from, to };
50
- }
51
- else {
52
- range = undefined;
53
- }
54
- }
55
- else if (isSameDay(from, date)) {
56
- // adding a date equal to the the start of the range
57
- range = { from, to: min > 0 ? undefined : date };
58
- }
59
- else if (isSameDay(to, date)) {
60
- // adding a dare equal to the end of the range
61
- range = { from: date, to: min > 0 ? undefined : date };
62
- }
63
- else if (isBefore(date, from)) {
64
- // adding a date before the start of the range
65
- range = { from: date, to: to };
66
- }
67
- else if (isAfter(date, from)) {
68
- // adding a date after the start of the range
69
- range = { from, to: date };
70
- }
71
- else if (isAfter(date, to)) {
72
- // adding a date after the end of the range
73
- range = { from, to: date };
74
- }
75
- else {
76
- throw new Error("Invalid range");
77
- }
78
- }
79
- // check for min / max
80
- if (range?.from && range?.to) {
81
- const diff = dateLib.differenceInCalendarDays(range.to, range.from);
82
- if (max > 0 && diff > max) {
83
- range = { from: date, to: undefined };
84
- }
85
- else if (min > 1 && diff < min) {
86
- range = { from: date, to: undefined };
87
- }
88
- }
89
- return range;
90
- }
91
-
92
- export { addToRange };
@@ -1,62 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
- import { rangeIncludesDate } from './rangeIncludesDate.js';
3
- import { isDatesArray, isDateRange, isDayOfWeekType, isDateInterval, isDateAfterType, isDateBeforeType } from './typeguards.js';
4
-
5
- /**
6
- * Checks if a given date matches at least one of the specified {@link Matcher}.
7
- *
8
- * @param date - The date to check.
9
- * @param matchers - The matchers to check against.
10
- * @param dateLib - The date utility library instance.
11
- * @returns `true` if the date matches any of the matchers, otherwise `false`.
12
- * @group Utilities
13
- */
14
- function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
15
- const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;
16
- const { isSameDay, differenceInCalendarDays, isAfter } = dateLib;
17
- return matchersArr.some((matcher) => {
18
- if (typeof matcher === "boolean") {
19
- return matcher;
20
- }
21
- if (dateLib.isDate(matcher)) {
22
- return isSameDay(date, matcher);
23
- }
24
- if (isDatesArray(matcher, dateLib)) {
25
- return matcher.includes(date);
26
- }
27
- if (isDateRange(matcher)) {
28
- return rangeIncludesDate(matcher, date, false, dateLib);
29
- }
30
- if (isDayOfWeekType(matcher)) {
31
- if (!Array.isArray(matcher.dayOfWeek)) {
32
- return matcher.dayOfWeek === date.getDay();
33
- }
34
- return matcher.dayOfWeek.includes(date.getDay());
35
- }
36
- if (isDateInterval(matcher)) {
37
- const diffBefore = differenceInCalendarDays(matcher.before, date);
38
- const diffAfter = differenceInCalendarDays(matcher.after, date);
39
- const isDayBefore = diffBefore > 0;
40
- const isDayAfter = diffAfter < 0;
41
- const isClosedInterval = isAfter(matcher.before, matcher.after);
42
- if (isClosedInterval) {
43
- return isDayAfter && isDayBefore;
44
- }
45
- else {
46
- return isDayBefore || isDayAfter;
47
- }
48
- }
49
- if (isDateAfterType(matcher)) {
50
- return differenceInCalendarDays(date, matcher.after) > 0;
51
- }
52
- if (isDateBeforeType(matcher)) {
53
- return differenceInCalendarDays(matcher.before, date) > 0;
54
- }
55
- if (typeof matcher === "function") {
56
- return matcher(date);
57
- }
58
- return false;
59
- });
60
- }
61
-
62
- export { dateMatchModifiers };
@@ -1,30 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Checks if a date range contains one or more specified days of the week.
5
- *
6
- * @since 9.2.2
7
- * @param range - The date range to check.
8
- * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is
9
- * Sunday).
10
- * @param dateLib - The date utility library instance.
11
- * @returns `true` if the range contains the specified day(s) of the week,
12
- * otherwise `false`.
13
- * @group Utilities
14
- */
15
- function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
16
- const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;
17
- let date = range.from;
18
- const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);
19
- // iterate at maximum one week or the total days if the range is shorter than one week
20
- const totalDaysLimit = Math.min(totalDays, 6);
21
- for (let i = 0; i <= totalDaysLimit; i++) {
22
- if (dayOfWeekArr.includes(date.getDay())) {
23
- return true;
24
- }
25
- date = dateLib.addDays(date, 1);
26
- }
27
- return false;
28
- }
29
-
30
- export { rangeContainsDayOfWeek };
@@ -1,74 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
- import { dateMatchModifiers } from './dateMatchModifiers.js';
3
- import { rangeContainsDayOfWeek } from './rangeContainsDayOfWeek.js';
4
- import { rangeIncludesDate } from './rangeIncludesDate.js';
5
- import { rangeOverlaps } from './rangeOverlaps.js';
6
- import { isDatesArray, isDateRange, isDayOfWeekType, isDateInterval, isDateAfterType, isDateBeforeType } from './typeguards.js';
7
-
8
- /**
9
- * Checks if a date range contains dates that match the given modifiers.
10
- *
11
- * @since 9.2.2
12
- * @param range - The date range to check.
13
- * @param modifiers - The modifiers to match against.
14
- * @param dateLib - The date utility library instance.
15
- * @returns `true` if the range contains matching dates, otherwise `false`.
16
- * @group Utilities
17
- */
18
- function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
19
- const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];
20
- // Defer function matchers evaluation as they are the least performant.
21
- const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== "function");
22
- const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {
23
- if (typeof matcher === "boolean")
24
- return matcher;
25
- if (dateLib.isDate(matcher)) {
26
- return rangeIncludesDate(range, matcher, false, dateLib);
27
- }
28
- if (isDatesArray(matcher, dateLib)) {
29
- return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));
30
- }
31
- if (isDateRange(matcher)) {
32
- if (matcher.from && matcher.to) {
33
- return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);
34
- }
35
- return false;
36
- }
37
- if (isDayOfWeekType(matcher)) {
38
- return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);
39
- }
40
- if (isDateInterval(matcher)) {
41
- const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);
42
- if (isClosedInterval) {
43
- return rangeOverlaps(range, {
44
- from: dateLib.addDays(matcher.after, 1),
45
- to: dateLib.addDays(matcher.before, -1)
46
- }, dateLib);
47
- }
48
- return (dateMatchModifiers(range.from, matcher, dateLib) ||
49
- dateMatchModifiers(range.to, matcher, dateLib));
50
- }
51
- if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {
52
- return (dateMatchModifiers(range.from, matcher, dateLib) ||
53
- dateMatchModifiers(range.to, matcher, dateLib));
54
- }
55
- return false;
56
- });
57
- if (nonFunctionMatchersResult) {
58
- return true;
59
- }
60
- const functionMatchers = matchers.filter((matcher) => typeof matcher === "function");
61
- if (functionMatchers.length) {
62
- let date = range.from;
63
- const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);
64
- for (let i = 0; i <= totalDays; i++) {
65
- if (functionMatchers.some((matcher) => matcher(date))) {
66
- return true;
67
- }
68
- date = dateLib.addDays(date, 1);
69
- }
70
- }
71
- return false;
72
- }
73
-
74
- export { rangeContainsModifiers };
@@ -1,35 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Checks if a given date is within a specified date range.
5
- *
6
- * @since 9.0.0
7
- * @param range - The date range to check against.
8
- * @param date - The date to check.
9
- * @param excludeEnds - If `true`, the range's start and end dates are excluded.
10
- * @param dateLib - The date utility library instance.
11
- * @returns `true` if the date is within the range, otherwise `false`.
12
- * @group Utilities
13
- */
14
- function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {
15
- let { from, to } = range;
16
- const { differenceInCalendarDays, isSameDay } = dateLib;
17
- if (from && to) {
18
- const isRangeInverted = differenceInCalendarDays(to, from) < 0;
19
- if (isRangeInverted) {
20
- [from, to] = [to, from];
21
- }
22
- const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&
23
- differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);
24
- return isInRange;
25
- }
26
- if (!excludeEnds && to) {
27
- return isSameDay(to, date);
28
- }
29
- if (!excludeEnds && from) {
30
- return isSameDay(from, date);
31
- }
32
- return false;
33
- }
34
-
35
- export { rangeIncludesDate };
@@ -1,21 +0,0 @@
1
- import { rangeIncludesDate } from './rangeIncludesDate.js';
2
- import { defaultDateLib } from '../classes/DateLib.js';
3
-
4
- /**
5
- * Determines if two date ranges overlap.
6
- *
7
- * @since 9.2.2
8
- * @param rangeLeft - The first date range.
9
- * @param rangeRight - The second date range.
10
- * @param dateLib - The date utility library instance.
11
- * @returns `true` if the ranges overlap, otherwise `false`.
12
- * @group Utilities
13
- */
14
- function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {
15
- return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||
16
- rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||
17
- rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||
18
- rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));
19
- }
20
-
21
- export { rangeOverlaps };
@@ -1,66 +0,0 @@
1
- /**
2
- * Checks if the given value is of type {@link DateInterval}.
3
- *
4
- * @param matcher - The value to check.
5
- * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.
6
- * @group Utilities
7
- */
8
- function isDateInterval(matcher) {
9
- return Boolean(matcher &&
10
- typeof matcher === "object" &&
11
- "before" in matcher &&
12
- "after" in matcher);
13
- }
14
- /**
15
- * Checks if the given value is of type {@link DateRange}.
16
- *
17
- * @param value - The value to check.
18
- * @returns `true` if the value is a {@link DateRange}, otherwise `false`.
19
- * @group Utilities
20
- */
21
- function isDateRange(value) {
22
- return Boolean(value && typeof value === "object" && "from" in value);
23
- }
24
- /**
25
- * Checks if the given value is of type {@link DateAfter}.
26
- *
27
- * @param value - The value to check.
28
- * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.
29
- * @group Utilities
30
- */
31
- function isDateAfterType(value) {
32
- return Boolean(value && typeof value === "object" && "after" in value);
33
- }
34
- /**
35
- * Checks if the given value is of type {@link DateBefore}.
36
- *
37
- * @param value - The value to check.
38
- * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.
39
- * @group Utilities
40
- */
41
- function isDateBeforeType(value) {
42
- return Boolean(value && typeof value === "object" && "before" in value);
43
- }
44
- /**
45
- * Checks if the given value is of type {@link DayOfWeek}.
46
- *
47
- * @param value - The value to check.
48
- * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.
49
- * @group Utilities
50
- */
51
- function isDayOfWeekType(value) {
52
- return Boolean(value && typeof value === "object" && "dayOfWeek" in value);
53
- }
54
- /**
55
- * Checks if the given value is an array of valid dates.
56
- *
57
- * @private
58
- * @param value - The value to check.
59
- * @param dateLib - The date utility library instance.
60
- * @returns `true` if the value is an array of valid dates, otherwise `false`.
61
- */
62
- function isDatesArray(value, dateLib) {
63
- return Array.isArray(value) && value.every(dateLib.isDate);
64
- }
65
-
66
- export { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType };