@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,14 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render the caption for a month in the calendar.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function MonthCaption(props) {
10
- const { calendarMonth, displayIndex, ...divProps } = props;
11
- return React__default.createElement("div", { ...divProps });
12
- }
13
-
14
- export { MonthCaption };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render the grid of days for a specific month.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function MonthGrid(props) {
10
- return React__default.createElement("table", { ...props });
11
- }
12
-
13
- export { MonthGrid };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render a container wrapping the month grids.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function Months(props) {
10
- return React__default.createElement("div", { ...props });
11
- }
12
-
13
- export { Months };
@@ -1,15 +0,0 @@
1
- import React__default from 'react';
2
- import { useDayPicker } from '../useDayPicker.js';
3
-
4
- /**
5
- * Render a dropdown to navigate between months in the calendar.
6
- *
7
- * @group Components
8
- * @see https://daypicker.dev/guides/custom-components
9
- */
10
- function MonthsDropdown(props) {
11
- const { components } = useDayPicker();
12
- return React__default.createElement(components.Dropdown, { ...props });
13
- }
14
-
15
- export { MonthsDropdown };
@@ -1,31 +0,0 @@
1
- import React__default, { useCallback } from 'react';
2
- import { UI } from '../UI.js';
3
- import { useDayPicker } from '../useDayPicker.js';
4
-
5
- /**
6
- * Render the navigation toolbar with buttons to navigate between months.
7
- *
8
- * @group Components
9
- * @see https://daypicker.dev/guides/custom-components
10
- */
11
- function Nav(props) {
12
- const { onPreviousClick, onNextClick, previousMonth, nextMonth, ...navProps } = props;
13
- const { components, classNames, labels: { labelPrevious, labelNext } } = useDayPicker();
14
- const handleNextClick = useCallback((e) => {
15
- if (nextMonth) {
16
- onNextClick?.(e);
17
- }
18
- }, [nextMonth, onNextClick]);
19
- const handlePreviousClick = useCallback((e) => {
20
- if (previousMonth) {
21
- onPreviousClick?.(e);
22
- }
23
- }, [previousMonth, onPreviousClick]);
24
- return (React__default.createElement("nav", { ...navProps },
25
- React__default.createElement(components.PreviousMonthButton, { type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? undefined : -1, "aria-disabled": previousMonth ? undefined : true, "aria-label": labelPrevious(previousMonth), onClick: handlePreviousClick },
26
- React__default.createElement(components.Chevron, { disabled: previousMonth ? undefined : true, className: classNames[UI.Chevron], orientation: "left" })),
27
- React__default.createElement(components.NextMonthButton, { type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? undefined : -1, "aria-disabled": nextMonth ? undefined : true, "aria-label": labelNext(nextMonth), onClick: handleNextClick },
28
- React__default.createElement(components.Chevron, { disabled: nextMonth ? undefined : true, orientation: "right", className: classNames[UI.Chevron] }))));
29
- }
30
-
31
- export { Nav };
@@ -1,15 +0,0 @@
1
- import React__default from 'react';
2
- import { useDayPicker } from '../useDayPicker.js';
3
-
4
- /**
5
- * Render the button to navigate to the next month in the calendar.
6
- *
7
- * @group Components
8
- * @see https://daypicker.dev/guides/custom-components
9
- */
10
- function NextMonthButton(props) {
11
- const { components } = useDayPicker();
12
- return React__default.createElement(components.Button, { ...props });
13
- }
14
-
15
- export { NextMonthButton };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render an `option` element.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function Option(props) {
10
- return React__default.createElement("option", { ...props });
11
- }
12
-
13
- export { Option };
@@ -1,15 +0,0 @@
1
- import React__default from 'react';
2
- import { useDayPicker } from '../useDayPicker.js';
3
-
4
- /**
5
- * Render the button to navigate to the previous month in the calendar.
6
- *
7
- * @group Components
8
- * @see https://daypicker.dev/guides/custom-components
9
- */
10
- function PreviousMonthButton(props) {
11
- const { components } = useDayPicker();
12
- return React__default.createElement(components.Button, { ...props });
13
- }
14
-
15
- export { PreviousMonthButton };
@@ -1,14 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render the root element of the calendar.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function Root(props) {
10
- const { rootRef, ...rest } = props;
11
- return React__default.createElement("div", { ...rest, ref: rootRef });
12
- }
13
-
14
- export { Root };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render a `select` element.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function Select(props) {
10
- return React__default.createElement("select", { ...props });
11
- }
12
-
13
- export { Select };
@@ -1,14 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render a table row representing a week in the calendar.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function Week(props) {
10
- const { week, ...trProps } = props;
11
- return React__default.createElement("tr", { ...trProps });
12
- }
13
-
14
- export { Week };
@@ -1,14 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render a table cell displaying the number of the week.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function WeekNumber(props) {
10
- const { week, ...thProps } = props;
11
- return React__default.createElement("th", { ...thProps });
12
- }
13
-
14
- export { WeekNumber };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render the header cell for the week numbers column.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function WeekNumberHeader(props) {
10
- return React__default.createElement("th", { ...props });
11
- }
12
-
13
- export { WeekNumberHeader };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render a table header cell with the name of a weekday (e.g., "Mo", "Tu").
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function Weekday(props) {
10
- return React__default.createElement("th", { ...props });
11
- }
12
-
13
- export { Weekday };
@@ -1,14 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render the table row containing the weekday names.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function Weekdays(props) {
10
- return (React__default.createElement("thead", { "aria-hidden": true },
11
- React__default.createElement("tr", { ...props })));
12
- }
13
-
14
- export { Weekdays };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
-
3
- /**
4
- * Render the container for the weeks in the month grid.
5
- *
6
- * @group Components
7
- * @see https://daypicker.dev/guides/custom-components
8
- */
9
- function Weeks(props) {
10
- return React__default.createElement("tbody", { ...props });
11
- }
12
-
13
- export { Weeks };
@@ -1,15 +0,0 @@
1
- import React__default from 'react';
2
- import { useDayPicker } from '../useDayPicker.js';
3
-
4
- /**
5
- * Render a dropdown to navigate between years in the calendar.
6
- *
7
- * @group Components
8
- * @see https://daypicker.dev/guides/custom-components
9
- */
10
- function YearsDropdown(props) {
11
- const { components } = useDayPicker();
12
- return React__default.createElement(components.Dropdown, { ...props });
13
- }
14
-
15
- export { YearsDropdown };
@@ -1,26 +0,0 @@
1
- export { Button } from './Button.js';
2
- export { CaptionLabel } from './CaptionLabel.js';
3
- export { Chevron } from './Chevron.js';
4
- export { Day } from './Day.js';
5
- export { DayButton } from './DayButton.js';
6
- export { Dropdown } from './Dropdown.js';
7
- export { DropdownNav } from './DropdownNav.js';
8
- export { Footer } from './Footer.js';
9
- export { Month } from './Month.js';
10
- export { MonthCaption } from './MonthCaption.js';
11
- export { MonthGrid } from './MonthGrid.js';
12
- export { Months } from './Months.js';
13
- export { MonthsDropdown } from './MonthsDropdown.js';
14
- export { Nav } from './Nav.js';
15
- export { NextMonthButton } from './NextMonthButton.js';
16
- export { Option } from './Option.js';
17
- export { PreviousMonthButton } from './PreviousMonthButton.js';
18
- export { Root } from './Root.js';
19
- export { Select } from './Select.js';
20
- export { Week } from './Week.js';
21
- export { Weekday } from './Weekday.js';
22
- export { Weekdays } from './Weekdays.js';
23
- export { WeekNumber } from './WeekNumber.js';
24
- export { WeekNumberHeader } from './WeekNumberHeader.js';
25
- export { Weeks } from './Weeks.js';
26
- export { YearsDropdown } from './YearsDropdown.js';
@@ -1,25 +0,0 @@
1
- import { DateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the caption of the month.
5
- *
6
- * @defaultValue `LLLL y` (e.g., "November 2022").
7
- * @param month The date representing the month.
8
- * @param options Configuration options for the date library.
9
- * @param dateLib The date library to use for formatting. If not provided, a new
10
- * instance is created.
11
- * @returns The formatted caption as a string.
12
- * @group Formatters
13
- * @see https://daypicker.dev/docs/translation#custom-formatters
14
- */
15
- function formatCaption(month, options, dateLib) {
16
- return (dateLib ?? new DateLib(options)).format(month, "LLLL y");
17
- }
18
- /**
19
- * @private
20
- * @deprecated Use {@link formatCaption} instead.
21
- * @group Formatters
22
- */
23
- const formatMonthCaption = formatCaption;
24
-
25
- export { formatCaption, formatMonthCaption };
@@ -1,19 +0,0 @@
1
- import { DateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the day date shown in the day cell.
5
- *
6
- * @defaultValue `d` (e.g., "1").
7
- * @param date The date to format.
8
- * @param options Configuration options for the date library.
9
- * @param dateLib The date library to use for formatting. If not provided, a new
10
- * instance is created.
11
- * @returns The formatted day as a string.
12
- * @group Formatters
13
- * @see https://daypicker.dev/docs/translation#custom-formatters
14
- */
15
- function formatDay(date, options, dateLib) {
16
- return (dateLib ?? new DateLib(options)).format(date, "d");
17
- }
18
-
19
- export { formatDay };
@@ -1,18 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the month for the dropdown option label.
5
- *
6
- * @defaultValue The localized full month name.
7
- * @param month The date representing the month.
8
- * @param dateLib The date library to use for formatting. Defaults to
9
- * `defaultDateLib`.
10
- * @returns The formatted month name as a string.
11
- * @group Formatters
12
- * @see https://daypicker.dev/docs/translation#custom-formatters
13
- */
14
- function formatMonthDropdown(month, dateLib = defaultDateLib) {
15
- return dateLib.format(month, "LLLL");
16
- }
17
-
18
- export { formatMonthDropdown };
@@ -1,21 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the week number.
5
- *
6
- * @defaultValue The week number as a string, with a leading zero for single-digit numbers.
7
- * @param weekNumber The week number to format.
8
- * @param dateLib The date library to use for formatting. Defaults to
9
- * `defaultDateLib`.
10
- * @returns The formatted week number as a string.
11
- * @group Formatters
12
- * @see https://daypicker.dev/docs/translation#custom-formatters
13
- */
14
- function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
15
- if (weekNumber < 10) {
16
- return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);
17
- }
18
- return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);
19
- }
20
-
21
- export { formatWeekNumber };
@@ -1,13 +0,0 @@
1
- /**
2
- * Formats the header for the week number column.
3
- *
4
- * @defaultValue An empty string `""`.
5
- * @returns The formatted week number header as a string.
6
- * @group Formatters
7
- * @see https://daypicker.dev/docs/translation#custom-formatters
8
- */
9
- function formatWeekNumberHeader() {
10
- return ``;
11
- }
12
-
13
- export { formatWeekNumberHeader };
@@ -1,19 +0,0 @@
1
- import { DateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the name of a weekday to be displayed in the weekdays header.
5
- *
6
- * @defaultValue `cccccc` (e.g., "Mo" for Monday).
7
- * @param weekday The date representing the weekday.
8
- * @param options Configuration options for the date library.
9
- * @param dateLib The date library to use for formatting. If not provided, a new
10
- * instance is created.
11
- * @returns The formatted weekday name as a string.
12
- * @group Formatters
13
- * @see https://daypicker.dev/docs/translation#custom-formatters
14
- */
15
- function formatWeekdayName(weekday, options, dateLib) {
16
- return (dateLib ?? new DateLib(options)).format(weekday, "cccccc");
17
- }
18
-
19
- export { formatWeekdayName };
@@ -1,23 +0,0 @@
1
- import { defaultDateLib } from '../classes/DateLib.js';
2
-
3
- /**
4
- * Formats the year for the dropdown option label.
5
- *
6
- * @param year The year to format.
7
- * @param dateLib The date library to use for formatting. Defaults to
8
- * `defaultDateLib`.
9
- * @returns The formatted year as a string.
10
- * @group Formatters
11
- * @see https://daypicker.dev/docs/translation#custom-formatters
12
- */
13
- function formatYearDropdown(year, dateLib = defaultDateLib) {
14
- return dateLib.format(year, "yyyy");
15
- }
16
- /**
17
- * @private
18
- * @deprecated Use `formatYearDropdown` instead.
19
- * @group Formatters
20
- */
21
- const formatYearCaption = formatYearDropdown;
22
-
23
- export { formatYearCaption, formatYearDropdown };
@@ -1,7 +0,0 @@
1
- export { formatCaption, formatMonthCaption } from './formatCaption.js';
2
- export { formatDay } from './formatDay.js';
3
- export { formatMonthDropdown } from './formatMonthDropdown.js';
4
- export { formatWeekNumber } from './formatWeekNumber.js';
5
- export { formatWeekNumberHeader } from './formatWeekNumberHeader.js';
6
- export { formatWeekdayName } from './formatWeekdayName.js';
7
- export { formatYearCaption, formatYearDropdown } from './formatYearDropdown.js';
@@ -1,73 +0,0 @@
1
- import { DayFlag } from '../UI.js';
2
-
3
- var FocusTargetPriority;
4
- (function (FocusTargetPriority) {
5
- FocusTargetPriority[FocusTargetPriority["Today"] = 0] = "Today";
6
- FocusTargetPriority[FocusTargetPriority["Selected"] = 1] = "Selected";
7
- FocusTargetPriority[FocusTargetPriority["LastFocused"] = 2] = "LastFocused";
8
- FocusTargetPriority[FocusTargetPriority["FocusedModifier"] = 3] = "FocusedModifier";
9
- })(FocusTargetPriority || (FocusTargetPriority = {}));
10
- /**
11
- * Determines if a day is focusable based on its modifiers.
12
- *
13
- * A day is considered focusable if it is not disabled, hidden, or outside the
14
- * displayed month.
15
- *
16
- * @param modifiers The modifiers applied to the day.
17
- * @returns `true` if the day is focusable, otherwise `false`.
18
- */
19
- function isFocusableDay(modifiers) {
20
- return (!modifiers[DayFlag.disabled] &&
21
- !modifiers[DayFlag.hidden] &&
22
- !modifiers[DayFlag.outside]);
23
- }
24
- /**
25
- * Calculates the focus target day based on priority.
26
- *
27
- * This function determines the day that should receive focus in the calendar,
28
- * prioritizing days with specific modifiers (e.g., "focused", "today") or
29
- * selection states.
30
- *
31
- * @param days The array of `CalendarDay` objects to evaluate.
32
- * @param getModifiers A function to retrieve the modifiers for a given day.
33
- * @param isSelected A function to determine if a day is selected.
34
- * @param lastFocused The last focused day, if any.
35
- * @returns The `CalendarDay` that should receive focus, or `undefined` if no
36
- * focusable day is found.
37
- */
38
- function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
39
- let focusTarget;
40
- let foundFocusTargetPriority = -1;
41
- for (const day of days) {
42
- const modifiers = getModifiers(day);
43
- if (isFocusableDay(modifiers)) {
44
- if (modifiers[DayFlag.focused] &&
45
- foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {
46
- focusTarget = day;
47
- foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;
48
- }
49
- else if (lastFocused?.isEqualTo(day) &&
50
- foundFocusTargetPriority < FocusTargetPriority.LastFocused) {
51
- focusTarget = day;
52
- foundFocusTargetPriority = FocusTargetPriority.LastFocused;
53
- }
54
- else if (isSelected(day.date) &&
55
- foundFocusTargetPriority < FocusTargetPriority.Selected) {
56
- focusTarget = day;
57
- foundFocusTargetPriority = FocusTargetPriority.Selected;
58
- }
59
- else if (modifiers[DayFlag.today] &&
60
- foundFocusTargetPriority < FocusTargetPriority.Today) {
61
- focusTarget = day;
62
- foundFocusTargetPriority = FocusTargetPriority.Today;
63
- }
64
- }
65
- }
66
- if (!focusTarget) {
67
- // Return the first day that is focusable
68
- focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));
69
- }
70
- return focusTarget;
71
- }
72
-
73
- export { calculateFocusTarget };
@@ -1,95 +0,0 @@
1
- import { DayFlag } from '../UI.js';
2
- import { dateMatchModifiers } from '../utils/dateMatchModifiers.js';
3
-
4
- /**
5
- * Creates a function to retrieve the modifiers for a given day.
6
- *
7
- * This function calculates both internal and custom modifiers for each day
8
- * based on the provided calendar days and DayPicker props.
9
- *
10
- * @private
11
- * @param days The array of `CalendarDay` objects to process.
12
- * @param props The DayPicker props, including modifiers and configuration
13
- * options.
14
- * @param dateLib The date library to use for date manipulation.
15
- * @returns A function that retrieves the modifiers for a given `CalendarDay`.
16
- */
17
- function createGetModifiers(days, props, dateLib) {
18
- const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today } = props;
19
- const { isSameDay, isSameMonth, startOfMonth, isBefore, endOfMonth, isAfter } = dateLib;
20
- const startMonth = props.startMonth && startOfMonth(props.startMonth);
21
- const endMonth = props.endMonth && endOfMonth(props.endMonth);
22
- const internalModifiersMap = {
23
- [DayFlag.focused]: [],
24
- [DayFlag.outside]: [],
25
- [DayFlag.disabled]: [],
26
- [DayFlag.hidden]: [],
27
- [DayFlag.today]: []
28
- };
29
- const customModifiersMap = {};
30
- for (const day of days) {
31
- const { date, displayMonth } = day;
32
- const isOutside = Boolean(displayMonth && !isSameMonth(date, displayMonth));
33
- const isBeforeStartMonth = Boolean(startMonth && isBefore(date, startMonth));
34
- const isAfterEndMonth = Boolean(endMonth && isAfter(date, endMonth));
35
- const isDisabled = Boolean(disabled && dateMatchModifiers(date, disabled, dateLib));
36
- const isHidden = Boolean(hidden && dateMatchModifiers(date, hidden, dateLib)) ||
37
- isBeforeStartMonth ||
38
- isAfterEndMonth ||
39
- // Broadcast calendar will show outside days as default
40
- (!broadcastCalendar && !showOutsideDays && isOutside) ||
41
- (broadcastCalendar && showOutsideDays === false && isOutside);
42
- const isToday = isSameDay(date, today ?? dateLib.today());
43
- if (isOutside)
44
- internalModifiersMap.outside.push(day);
45
- if (isDisabled)
46
- internalModifiersMap.disabled.push(day);
47
- if (isHidden)
48
- internalModifiersMap.hidden.push(day);
49
- if (isToday)
50
- internalModifiersMap.today.push(day);
51
- // Add custom modifiers
52
- if (modifiers) {
53
- Object.keys(modifiers).forEach((name) => {
54
- const modifierValue = modifiers?.[name];
55
- const isMatch = modifierValue
56
- ? dateMatchModifiers(date, modifierValue, dateLib)
57
- : false;
58
- if (!isMatch)
59
- return;
60
- if (customModifiersMap[name]) {
61
- customModifiersMap[name].push(day);
62
- }
63
- else {
64
- customModifiersMap[name] = [day];
65
- }
66
- });
67
- }
68
- }
69
- return (day) => {
70
- // Initialize all the modifiers to false
71
- const dayFlags = {
72
- [DayFlag.focused]: false,
73
- [DayFlag.disabled]: false,
74
- [DayFlag.hidden]: false,
75
- [DayFlag.outside]: false,
76
- [DayFlag.today]: false
77
- };
78
- const customModifiers = {};
79
- // Find the modifiers for the given day
80
- for (const name in internalModifiersMap) {
81
- const days = internalModifiersMap[name];
82
- dayFlags[name] = days.some((d) => d === day);
83
- }
84
- for (const name in customModifiersMap) {
85
- customModifiers[name] = customModifiersMap[name].some((d) => d === day);
86
- }
87
- return {
88
- ...dayFlags,
89
- // custom modifiers should override all the previous ones
90
- ...customModifiers
91
- };
92
- };
93
- }
94
-
95
- export { createGetModifiers };
@@ -1,22 +0,0 @@
1
- import { getBroadcastWeeksInMonth } from './getBroadcastWeeksInMonth.js';
2
- import { startOfBroadcastWeek } from './startOfBroadcastWeek.js';
3
-
4
- /**
5
- * Returns the end date of the week in the broadcast calendar.
6
- *
7
- * The broadcast week ends on the last day of the last broadcast week for the
8
- * given date.
9
- *
10
- * @since 9.4.0
11
- * @param date The date for which to calculate the end of the broadcast week.
12
- * @param dateLib The date library to use for date manipulation.
13
- * @returns The end date of the broadcast week.
14
- */
15
- function endOfBroadcastWeek(date, dateLib) {
16
- const startDate = startOfBroadcastWeek(date, dateLib);
17
- const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);
18
- const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);
19
- return endDate;
20
- }
21
-
22
- export { endOfBroadcastWeek };