@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,94 +0,0 @@
1
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
- import { MoreHorizontal, ChevronRight } from 'lucide-react';
4
- import { Slot } from 'radix-ui';
5
- import { cn } from '../../lib/utils.js';
6
-
7
- function Breadcrumb(_a) {
8
- var props = __rest(_a, []);
9
- return jsx("nav", Object.assign({
10
- "aria-label": "breadcrumb",
11
- "data-slot": "breadcrumb"
12
- }, props));
13
- }
14
- function BreadcrumbList(_a) {
15
- var {
16
- className
17
- } = _a,
18
- props = __rest(_a, ["className"]);
19
- return jsx("ol", Object.assign({
20
- "data-slot": "breadcrumb-list",
21
- className: cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", className)
22
- }, props));
23
- }
24
- function BreadcrumbItem(_a) {
25
- var {
26
- className
27
- } = _a,
28
- props = __rest(_a, ["className"]);
29
- return jsx("li", Object.assign({
30
- "data-slot": "breadcrumb-item",
31
- className: cn("inline-flex items-center gap-1.5", className)
32
- }, props));
33
- }
34
- function BreadcrumbLink(_a) {
35
- var {
36
- asChild,
37
- className
38
- } = _a,
39
- props = __rest(_a, ["asChild", "className"]);
40
- const Comp = asChild ? Slot.Slot : "a";
41
- return jsx(Comp, Object.assign({
42
- "data-slot": "breadcrumb-link",
43
- className: cn("hover:text-foreground transition-colors", className)
44
- }, props));
45
- }
46
- function BreadcrumbPage(_a) {
47
- var {
48
- className
49
- } = _a,
50
- props = __rest(_a, ["className"]);
51
- return jsx("span", Object.assign({
52
- "data-slot": "breadcrumb-page",
53
- role: "link",
54
- "aria-disabled": "true",
55
- "aria-current": "page",
56
- className: cn("text-foreground font-normal", className)
57
- }, props));
58
- }
59
- function BreadcrumbSeparator(_a) {
60
- var {
61
- children,
62
- className
63
- } = _a,
64
- props = __rest(_a, ["children", "className"]);
65
- return jsx("li", Object.assign({
66
- "data-slot": "breadcrumb-separator",
67
- role: "presentation",
68
- "aria-hidden": "true",
69
- className: cn("[&>svg]:size-3.5", className)
70
- }, props, {
71
- children: children !== null && children !== void 0 ? children : jsx(ChevronRight, {})
72
- }));
73
- }
74
- function BreadcrumbEllipsis(_a) {
75
- var {
76
- className
77
- } = _a,
78
- props = __rest(_a, ["className"]);
79
- return jsxs("span", Object.assign({
80
- "data-slot": "breadcrumb-ellipsis",
81
- role: "presentation",
82
- "aria-hidden": "true",
83
- className: cn("flex size-9 items-center justify-center", className)
84
- }, props, {
85
- children: [jsx(MoreHorizontal, {
86
- className: "size-4"
87
- }), jsx("span", {
88
- className: "sr-only",
89
- children: "More"
90
- })]
91
- }));
92
- }
93
-
94
- export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
@@ -1,14 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
3
- import { VariantProps } from 'class-variance-authority';
4
- import * as React from 'react';
5
-
6
- declare const buttonVariants: (props?: ({
7
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
8
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
9
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
10
- declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
11
- asChild?: boolean;
12
- }): react_jsx_runtime.JSX.Element;
13
-
14
- export { Button, buttonVariants };
@@ -1,48 +0,0 @@
1
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { cva } from '../../node_modules/class-variance-authority/dist/index.js';
4
- import { Slot } from 'radix-ui';
5
- import { cn } from '../../lib/utils.js';
6
-
7
- const buttonVariants = cva("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
8
- variants: {
9
- variant: {
10
- default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",
11
- destructive: "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",
12
- outline: "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
13
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",
14
- ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
15
- link: "text-primary underline-offset-4 hover:underline"
16
- },
17
- size: {
18
- default: "h-9 px-4 py-2 has-[>svg]:px-3",
19
- sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
20
- lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
21
- icon: "size-9"
22
- }
23
- },
24
- defaultVariants: {
25
- variant: "default",
26
- size: "default"
27
- }
28
- });
29
- function Button(_a) {
30
- var {
31
- className,
32
- variant,
33
- size,
34
- asChild = false
35
- } = _a,
36
- props = __rest(_a, ["className", "variant", "size", "asChild"]);
37
- const Comp = asChild ? Slot.Slot : "button";
38
- return jsx(Comp, Object.assign({
39
- "data-slot": "button",
40
- className: cn(buttonVariants({
41
- variant,
42
- size,
43
- className
44
- }))
45
- }, props));
46
- }
47
-
48
- export { Button, buttonVariants };
@@ -1,13 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { DayPicker, DayButton } from 'react-day-picker';
4
- import { Button } from './button.js';
5
- import 'class-variance-authority/dist/types';
6
- import 'class-variance-authority';
7
-
8
- declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
9
- buttonVariant?: React.ComponentProps<typeof Button>["variant"];
10
- }): react_jsx_runtime.JSX.Element;
11
- declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): react_jsx_runtime.JSX.Element;
12
-
13
- export { Calendar, CalendarDayButton };
@@ -1,137 +0,0 @@
1
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon } from 'lucide-react';
4
- import * as React from 'react';
5
- import { buttonVariants, Button } from './button.js';
6
- import { cn } from '../../lib/utils.js';
7
- import { getDefaultClassNames } from '../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js';
8
- import { DayPicker } from '../../node_modules/react-day-picker/dist/esm/DayPicker.js';
9
-
10
- function Calendar(_a) {
11
- var {
12
- className,
13
- classNames,
14
- showOutsideDays = true,
15
- captionLayout = "label",
16
- buttonVariant = "ghost",
17
- formatters,
18
- components
19
- } = _a,
20
- props = __rest(_a, ["className", "classNames", "showOutsideDays", "captionLayout", "buttonVariant", "formatters", "components"]);
21
- const defaultClassNames = getDefaultClassNames();
22
- return jsx(DayPicker, Object.assign({
23
- showOutsideDays: showOutsideDays,
24
- className: cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className),
25
- captionLayout: captionLayout,
26
- formatters: Object.assign({
27
- formatMonthDropdown: date => date.toLocaleString("default", {
28
- month: "short"
29
- })
30
- }, formatters),
31
- classNames: Object.assign({
32
- root: cn("w-fit", defaultClassNames.root),
33
- months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),
34
- month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
35
- nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),
36
- button_previous: cn(buttonVariants({
37
- variant: buttonVariant
38
- }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_previous),
39
- button_next: cn(buttonVariants({
40
- variant: buttonVariant
41
- }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_next),
42
- month_caption: cn("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", defaultClassNames.month_caption),
43
- dropdowns: cn("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns),
44
- dropdown_root: cn("has-focus:border-ring border-input has-focus:ring-ring/50 relative rounded-md border shadow-xs has-focus:ring-[3px]", defaultClassNames.dropdown_root),
45
- dropdown: cn("absolute inset-0 opacity-0", defaultClassNames.dropdown),
46
- caption_label: cn("font-medium select-none", captionLayout === "label" ? "text-sm" : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5", defaultClassNames.caption_label),
47
- table: "w-full border-collapse",
48
- weekdays: cn("flex", defaultClassNames.weekdays),
49
- weekday: cn("text-muted-foreground flex-1 rounded-md text-[0.8rem] font-normal select-none", defaultClassNames.weekday),
50
- week: cn("mt-2 flex w-full", defaultClassNames.week),
51
- week_number_header: cn("w-(--cell-size) select-none", defaultClassNames.week_number_header),
52
- week_number: cn("text-muted-foreground text-[0.8rem] select-none", defaultClassNames.week_number),
53
- day: cn("group/day relative aspect-square h-full w-full p-0 text-center select-none [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md", defaultClassNames.day),
54
- range_start: cn("bg-accent rounded-l-md", defaultClassNames.range_start),
55
- range_middle: cn("rounded-none", defaultClassNames.range_middle),
56
- range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end),
57
- today: cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", defaultClassNames.today),
58
- outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
59
- disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled),
60
- hidden: cn("invisible", defaultClassNames.hidden)
61
- }, classNames),
62
- components: Object.assign({
63
- Root: _a => {
64
- var {
65
- className,
66
- rootRef
67
- } = _a,
68
- props = __rest(_a, ["className", "rootRef"]);
69
- return jsx("div", Object.assign({
70
- "data-slot": "calendar",
71
- ref: rootRef,
72
- className: cn(className)
73
- }, props));
74
- },
75
- Chevron: _a => {
76
- var {
77
- className,
78
- orientation
79
- } = _a,
80
- props = __rest(_a, ["className", "orientation"]);
81
- if (orientation === "left") {
82
- return jsx(ChevronLeftIcon, Object.assign({
83
- className: cn("size-4", className)
84
- }, props));
85
- }
86
- if (orientation === "right") {
87
- return jsx(ChevronRightIcon, Object.assign({
88
- className: cn("size-4", className)
89
- }, props));
90
- }
91
- return jsx(ChevronDownIcon, Object.assign({
92
- className: cn("size-4", className)
93
- }, props));
94
- },
95
- DayButton: CalendarDayButton,
96
- WeekNumber: _a => {
97
- var {
98
- children
99
- } = _a,
100
- props = __rest(_a, ["children"]);
101
- return jsx("td", Object.assign({}, props, {
102
- children: jsx("div", {
103
- className: "flex size-(--cell-size) items-center justify-center text-center",
104
- children: children
105
- })
106
- }));
107
- }
108
- }, components)
109
- }, props));
110
- }
111
- function CalendarDayButton(_a) {
112
- var {
113
- className,
114
- day,
115
- modifiers
116
- } = _a,
117
- props = __rest(_a, ["className", "day", "modifiers"]);
118
- const defaultClassNames = getDefaultClassNames();
119
- const ref = React.useRef(null);
120
- React.useEffect(() => {
121
- var _a;
122
- if (modifiers.focused) (_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
123
- }, [modifiers.focused]);
124
- return jsx(Button, Object.assign({
125
- ref: ref,
126
- variant: "ghost",
127
- size: "icon",
128
- "data-day": day.date.toLocaleDateString(),
129
- "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
130
- "data-range-start": modifiers.range_start,
131
- "data-range-end": modifiers.range_end,
132
- "data-range-middle": modifiers.range_middle,
133
- className: cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className)
134
- }, props));
135
- }
136
-
137
- export { Calendar, CalendarDayButton };
@@ -1,12 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- declare function Card({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
5
- declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
6
- declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
7
- declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
8
- declare function CardAction({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
9
- declare function CardContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
10
- declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
11
-
12
- export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -1,76 +0,0 @@
1
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { cn } from '../../lib/utils.js';
4
-
5
- function Card(_a) {
6
- var {
7
- className
8
- } = _a,
9
- props = __rest(_a, ["className"]);
10
- return jsx("div", Object.assign({
11
- "data-slot": "card",
12
- className: cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className)
13
- }, props));
14
- }
15
- function CardHeader(_a) {
16
- var {
17
- className
18
- } = _a,
19
- props = __rest(_a, ["className"]);
20
- return jsx("div", Object.assign({
21
- "data-slot": "card-header",
22
- className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className)
23
- }, props));
24
- }
25
- function CardTitle(_a) {
26
- var {
27
- className
28
- } = _a,
29
- props = __rest(_a, ["className"]);
30
- return jsx("div", Object.assign({
31
- "data-slot": "card-title",
32
- className: cn("leading-none font-semibold", className)
33
- }, props));
34
- }
35
- function CardDescription(_a) {
36
- var {
37
- className
38
- } = _a,
39
- props = __rest(_a, ["className"]);
40
- return jsx("div", Object.assign({
41
- "data-slot": "card-description",
42
- className: cn("text-muted-foreground text-sm", className)
43
- }, props));
44
- }
45
- function CardAction(_a) {
46
- var {
47
- className
48
- } = _a,
49
- props = __rest(_a, ["className"]);
50
- return jsx("div", Object.assign({
51
- "data-slot": "card-action",
52
- className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className)
53
- }, props));
54
- }
55
- function CardContent(_a) {
56
- var {
57
- className
58
- } = _a,
59
- props = __rest(_a, ["className"]);
60
- return jsx("div", Object.assign({
61
- "data-slot": "card-content",
62
- className: cn("px-6", className)
63
- }, props));
64
- }
65
- function CardFooter(_a) {
66
- var {
67
- className
68
- } = _a,
69
- props = __rest(_a, ["className"]);
70
- return jsx("div", Object.assign({
71
- "data-slot": "card-footer",
72
- className: cn("flex items-center px-6 [.border-t]:pt-6", className)
73
- }, props));
74
- }
75
-
76
- export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -1,25 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
3
- import * as React from 'react';
4
- import { Button } from './button.js';
5
- import 'class-variance-authority/dist/types';
6
- import 'class-variance-authority';
7
-
8
- type CarouselApi = UseEmblaCarouselType[1];
9
- type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
10
- type CarouselOptions = UseCarouselParameters[0];
11
- type CarouselPlugin = UseCarouselParameters[1];
12
- type CarouselProps = {
13
- opts?: CarouselOptions;
14
- plugins?: CarouselPlugin;
15
- orientation?: "horizontal" | "vertical";
16
- setApi?: (api: CarouselApi) => void;
17
- };
18
- declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): react_jsx_runtime.JSX.Element;
19
- declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
20
- declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
21
- declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
22
- declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
23
-
24
- export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
25
- export type { CarouselApi };
@@ -1,173 +0,0 @@
1
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
- import useEmblaCarousel from '../../node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js';
4
- import { ArrowRight, ArrowLeft } from 'lucide-react';
5
- import * as React from 'react';
6
- import { Button } from './button.js';
7
- import { cn } from '../../lib/utils.js';
8
-
9
- const CarouselContext = /*#__PURE__*/React.createContext(null);
10
- function useCarousel() {
11
- const context = React.useContext(CarouselContext);
12
- if (!context) {
13
- throw new Error("useCarousel must be used within a <Carousel />");
14
- }
15
- return context;
16
- }
17
- function Carousel(_a) {
18
- var {
19
- orientation = "horizontal",
20
- opts,
21
- setApi,
22
- plugins,
23
- className,
24
- children
25
- } = _a,
26
- props = __rest(_a, ["orientation", "opts", "setApi", "plugins", "className", "children"]);
27
- const [carouselRef, api] = useEmblaCarousel(Object.assign(Object.assign({}, opts), {
28
- axis: orientation === "horizontal" ? "x" : "y"
29
- }), plugins);
30
- const [canScrollPrev, setCanScrollPrev] = React.useState(false);
31
- const [canScrollNext, setCanScrollNext] = React.useState(false);
32
- const onSelect = React.useCallback(api => {
33
- if (!api) return;
34
- setCanScrollPrev(api.canScrollPrev());
35
- setCanScrollNext(api.canScrollNext());
36
- }, []);
37
- const scrollPrev = React.useCallback(() => {
38
- api === null || api === void 0 ? void 0 : api.scrollPrev();
39
- }, [api]);
40
- const scrollNext = React.useCallback(() => {
41
- api === null || api === void 0 ? void 0 : api.scrollNext();
42
- }, [api]);
43
- const handleKeyDown = React.useCallback(event => {
44
- if (event.key === "ArrowLeft") {
45
- event.preventDefault();
46
- scrollPrev();
47
- } else if (event.key === "ArrowRight") {
48
- event.preventDefault();
49
- scrollNext();
50
- }
51
- }, [scrollPrev, scrollNext]);
52
- React.useEffect(() => {
53
- if (!api || !setApi) return;
54
- setApi(api);
55
- }, [api, setApi]);
56
- React.useEffect(() => {
57
- if (!api) return;
58
- onSelect(api);
59
- api.on("reInit", onSelect);
60
- api.on("select", onSelect);
61
- return () => {
62
- api === null || api === void 0 ? void 0 : api.off("select", onSelect);
63
- };
64
- }, [api, onSelect]);
65
- return jsx(CarouselContext.Provider, {
66
- value: {
67
- carouselRef,
68
- api: api,
69
- opts,
70
- orientation: orientation || ((opts === null || opts === void 0 ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
71
- scrollPrev,
72
- scrollNext,
73
- canScrollPrev,
74
- canScrollNext
75
- },
76
- children: jsx("div", Object.assign({
77
- onKeyDownCapture: handleKeyDown,
78
- className: cn("relative", className),
79
- role: "region",
80
- "aria-roledescription": "carousel",
81
- "data-slot": "carousel"
82
- }, props, {
83
- children: children
84
- }))
85
- });
86
- }
87
- function CarouselContent(_a) {
88
- var {
89
- className
90
- } = _a,
91
- props = __rest(_a, ["className"]);
92
- const {
93
- carouselRef,
94
- orientation
95
- } = useCarousel();
96
- return jsx("div", {
97
- ref: carouselRef,
98
- className: "overflow-hidden",
99
- "data-slot": "carousel-content",
100
- children: jsx("div", Object.assign({
101
- className: cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className)
102
- }, props))
103
- });
104
- }
105
- function CarouselItem(_a) {
106
- var {
107
- className
108
- } = _a,
109
- props = __rest(_a, ["className"]);
110
- const {
111
- orientation
112
- } = useCarousel();
113
- return jsx("div", Object.assign({
114
- role: "group",
115
- "aria-roledescription": "slide",
116
- "data-slot": "carousel-item",
117
- className: cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className)
118
- }, props));
119
- }
120
- function CarouselPrevious(_a) {
121
- var {
122
- className,
123
- variant = "outline",
124
- size = "icon"
125
- } = _a,
126
- props = __rest(_a, ["className", "variant", "size"]);
127
- const {
128
- orientation,
129
- scrollPrev,
130
- canScrollPrev
131
- } = useCarousel();
132
- return jsxs(Button, Object.assign({
133
- "data-slot": "carousel-previous",
134
- variant: variant,
135
- size: size,
136
- className: cn("absolute size-8 rounded-full", orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className),
137
- disabled: !canScrollPrev,
138
- onClick: scrollPrev
139
- }, props, {
140
- children: [jsx(ArrowLeft, {}), jsx("span", {
141
- className: "sr-only",
142
- children: "Previous slide"
143
- })]
144
- }));
145
- }
146
- function CarouselNext(_a) {
147
- var {
148
- className,
149
- variant = "outline",
150
- size = "icon"
151
- } = _a,
152
- props = __rest(_a, ["className", "variant", "size"]);
153
- const {
154
- orientation,
155
- scrollNext,
156
- canScrollNext
157
- } = useCarousel();
158
- return jsxs(Button, Object.assign({
159
- "data-slot": "carousel-next",
160
- variant: variant,
161
- size: size,
162
- className: cn("absolute size-8 rounded-full", orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className),
163
- disabled: !canScrollNext,
164
- onClick: scrollNext
165
- }, props, {
166
- children: [jsx(ArrowRight, {}), jsx("span", {
167
- className: "sr-only",
168
- children: "Next slide"
169
- })]
170
- }));
171
- }
172
-
173
- export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
@@ -1,44 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import * as RechartsPrimitive from 'recharts';
4
-
5
- declare const THEMES: {
6
- readonly light: "";
7
- readonly dark: ".dark";
8
- };
9
- type ChartConfig = {
10
- [k in string]: {
11
- label?: React.ReactNode;
12
- icon?: React.ComponentType;
13
- } & ({
14
- color?: string;
15
- theme?: never;
16
- } | {
17
- color?: never;
18
- theme: Record<keyof typeof THEMES, string>;
19
- });
20
- };
21
- declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<"div"> & {
22
- config: ChartConfig;
23
- children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
24
- }): react_jsx_runtime.JSX.Element;
25
- declare const ChartStyle: ({ id, config }: {
26
- id: string;
27
- config: ChartConfig;
28
- }) => react_jsx_runtime.JSX.Element | null;
29
- declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
30
- declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<"div"> & {
31
- hideLabel?: boolean;
32
- hideIndicator?: boolean;
33
- indicator?: "line" | "dot" | "dashed";
34
- nameKey?: string;
35
- labelKey?: string;
36
- }): react_jsx_runtime.JSX.Element | null;
37
- declare const ChartLegend: typeof RechartsPrimitive.Legend;
38
- declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<"div"> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
39
- hideIcon?: boolean;
40
- nameKey?: string;
41
- }): react_jsx_runtime.JSX.Element | null;
42
-
43
- export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };
44
- export type { ChartConfig };