@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,207 +0,0 @@
1
- import { tzOffset } from '../tzOffset/index.js';
2
-
3
- class TZDateMini extends Date {
4
- //#region static
5
-
6
- constructor(...args) {
7
- super();
8
- if (args.length > 1 && typeof args[args.length - 1] === "string") {
9
- this.timeZone = args.pop();
10
- }
11
- this.internal = new Date();
12
- if (isNaN(tzOffset(this.timeZone, this))) {
13
- this.setTime(NaN);
14
- } else {
15
- if (!args.length) {
16
- this.setTime(Date.now());
17
- } else if (typeof args[0] === "number" && (args.length === 1 || args.length === 2 && typeof args[1] !== "number")) {
18
- this.setTime(args[0]);
19
- } else if (typeof args[0] === "string") {
20
- this.setTime(+new Date(args[0]));
21
- } else if (args[0] instanceof Date) {
22
- this.setTime(+args[0]);
23
- } else {
24
- this.setTime(+new Date(...args));
25
- adjustToSystemTZ(this);
26
- syncToInternal(this);
27
- }
28
- }
29
- }
30
- static tz(tz, ...args) {
31
- return args.length ? new TZDateMini(...args, tz) : new TZDateMini(Date.now(), tz);
32
- }
33
-
34
- //#endregion
35
-
36
- //#region time zone
37
-
38
- withTimeZone(timeZone) {
39
- return new TZDateMini(+this, timeZone);
40
- }
41
- getTimezoneOffset() {
42
- return -tzOffset(this.timeZone, this);
43
- }
44
-
45
- //#endregion
46
-
47
- //#region time
48
-
49
- setTime(time) {
50
- Date.prototype.setTime.apply(this, arguments);
51
- syncToInternal(this);
52
- return +this;
53
- }
54
-
55
- //#endregion
56
-
57
- //#region date-fns integration
58
-
59
- [Symbol.for("constructDateFrom")](date) {
60
- return new TZDateMini(+new Date(date), this.timeZone);
61
- }
62
-
63
- //#endregion
64
- }
65
-
66
- // Assign getters and setters
67
- const re = /^(get|set)(?!UTC)/;
68
- Object.getOwnPropertyNames(Date.prototype).forEach(method => {
69
- if (!re.test(method)) return;
70
- const utcMethod = method.replace(re, "$1UTC");
71
- // Filter out methods without UTC counterparts
72
- if (!TZDateMini.prototype[utcMethod]) return;
73
- if (method.startsWith("get")) {
74
- // Delegate to internal date's UTC method
75
- TZDateMini.prototype[method] = function () {
76
- return this.internal[utcMethod]();
77
- };
78
- } else {
79
- // Assign regular setter
80
- TZDateMini.prototype[method] = function () {
81
- Date.prototype[utcMethod].apply(this.internal, arguments);
82
- syncFromInternal(this);
83
- return +this;
84
- };
85
-
86
- // Assign UTC setter
87
- TZDateMini.prototype[utcMethod] = function () {
88
- Date.prototype[utcMethod].apply(this, arguments);
89
- syncToInternal(this);
90
- return +this;
91
- };
92
- }
93
- });
94
-
95
- /**
96
- * Function syncs time to internal date, applying the time zone offset.
97
- *
98
- * @param {Date} date - Date to sync
99
- */
100
- function syncToInternal(date) {
101
- date.internal.setTime(+date);
102
- date.internal.setUTCMinutes(date.internal.getUTCMinutes() - date.getTimezoneOffset());
103
- }
104
-
105
- /**
106
- * Function syncs the internal date UTC values to the date. It allows to get
107
- * accurate timestamp value.
108
- *
109
- * @param {Date} date - The date to sync
110
- */
111
- function syncFromInternal(date) {
112
- // First we transpose the internal values
113
- Date.prototype.setFullYear.call(date, date.internal.getUTCFullYear(), date.internal.getUTCMonth(), date.internal.getUTCDate());
114
- Date.prototype.setHours.call(date, date.internal.getUTCHours(), date.internal.getUTCMinutes(), date.internal.getUTCSeconds(), date.internal.getUTCMilliseconds());
115
-
116
- // Now we have to adjust the date to the system time zone
117
- adjustToSystemTZ(date);
118
- }
119
-
120
- /**
121
- * Function adjusts the date to the system time zone. It uses the time zone
122
- * differences to calculate the offset and adjust the date.
123
- *
124
- * @param {Date} date - Date to adjust
125
- */
126
- function adjustToSystemTZ(date) {
127
- // Save the time zone offset before all the adjustments
128
- const offset = tzOffset(date.timeZone, date);
129
-
130
- //#region System DST adjustment
131
-
132
- // The biggest problem with using the system time zone is that when we create
133
- // a date from internal values stored in UTC, the system time zone might end
134
- // up on the DST hour:
135
- //
136
- // $ TZ=America/New_York node
137
- // > new Date(2020, 2, 8, 1).toString()
138
- // 'Sun Mar 08 2020 01:00:00 GMT-0500 (Eastern Standard Time)'
139
- // > new Date(2020, 2, 8, 2).toString()
140
- // 'Sun Mar 08 2020 03:00:00 GMT-0400 (Eastern Daylight Time)'
141
- // > new Date(2020, 2, 8, 3).toString()
142
- // 'Sun Mar 08 2020 03:00:00 GMT-0400 (Eastern Daylight Time)'
143
- // > new Date(2020, 2, 8, 4).toString()
144
- // 'Sun Mar 08 2020 04:00:00 GMT-0400 (Eastern Daylight Time)'
145
- //
146
- // Here we get the same hour for both 2 and 3, because the system time zone
147
- // has DST beginning at 8 March 2020, 2 a.m. and jumps to 3 a.m. So we have
148
- // to adjust the internal date to reflect that.
149
- //
150
- // However we want to adjust only if that's the DST hour the change happenes,
151
- // not the hour where DST moves to.
152
-
153
- // We calculate the previous hour to see if the time zone offset has changed
154
- // and we have landed on the DST hour.
155
- const prevHour = new Date(+date);
156
- // We use UTC methods here as we don't want to land on the same hour again
157
- // in case of DST.
158
- prevHour.setUTCHours(prevHour.getUTCHours() - 1);
159
-
160
- // Calculate if we are on the system DST hour.
161
- const systemOffset = -new Date(+date).getTimezoneOffset();
162
- const prevHourSystemOffset = -new Date(+prevHour).getTimezoneOffset();
163
- const systemDSTChange = systemOffset - prevHourSystemOffset;
164
- // Detect the DST shift. System DST change will occur both on
165
- const dstShift = Date.prototype.getHours.apply(date) !== date.internal.getUTCHours();
166
-
167
- // Move the internal date when we are on the system DST hour.
168
- if (systemDSTChange && dstShift) date.internal.setUTCMinutes(date.internal.getUTCMinutes() + systemDSTChange);
169
-
170
- //#endregion
171
-
172
- //#region System diff adjustment
173
-
174
- // Now we need to adjust the date, since we just applied internal values.
175
- // We need to calculate the difference between the system and date time zones
176
- // and apply it to the date.
177
-
178
- const offsetDiff = systemOffset - offset;
179
- if (offsetDiff) Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetDiff);
180
-
181
- //#endregion
182
-
183
- //#region Post-adjustment DST fix
184
-
185
- const postOffset = tzOffset(date.timeZone, date);
186
- const postSystemOffset = -new Date(+date).getTimezoneOffset();
187
- const postOffsetDiff = postSystemOffset - postOffset;
188
- const offsetChanged = postOffset !== offset;
189
- const postDiff = postOffsetDiff - offsetDiff;
190
- if (offsetChanged && postDiff) {
191
- Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + postDiff);
192
-
193
- // Now we need to check if got offset change during the post-adjustment.
194
- // If so, we also need both dates to reflect that.
195
-
196
- const newOffset = tzOffset(date.timeZone, date);
197
- const offsetChange = postOffset - newOffset;
198
- if (offsetChange) {
199
- date.internal.setUTCMinutes(date.internal.getUTCMinutes() + offsetChange);
200
- Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetChange);
201
- }
202
- }
203
-
204
- //#endregion
205
- }
206
-
207
- export { TZDateMini };
@@ -1,43 +0,0 @@
1
- const offsetFormatCache = {};
2
- const offsetCache = {};
3
-
4
- /**
5
- * The function extracts UTC offset in minutes from the given date in specified
6
- * time zone.
7
- *
8
- * Unlike `Date.prototype.getTimezoneOffset`, this function returns the value
9
- * mirrored to the sign of the offset in the time zone. For Asia/Singapore
10
- * (UTC+8), `tzOffset` returns 480, while `getTimezoneOffset` returns -480.
11
- *
12
- * @param timeZone - Time zone name (IANA or UTC offset)
13
- * @param date - Date to check the offset for
14
- *
15
- * @returns UTC offset in minutes
16
- */
17
- function tzOffset(timeZone, date) {
18
- try {
19
- const format = offsetFormatCache[timeZone] ||= new Intl.DateTimeFormat("en-GB", {
20
- timeZone,
21
- hour: "numeric",
22
- timeZoneName: "longOffset"
23
- }).format;
24
- const offsetStr = format(date).split('GMT')[1] || '';
25
- if (offsetStr in offsetCache) return offsetCache[offsetStr];
26
- return calcOffset(offsetStr, offsetStr.split(":"));
27
- } catch {
28
- // Fallback to manual parsing if the runtime doesn't support ±HH:MM/±HHMM/±HH
29
- // See: https://github.com/nodejs/node/issues/53419
30
- if (timeZone in offsetCache) return offsetCache[timeZone];
31
- const captures = timeZone?.match(offsetRe);
32
- if (captures) return calcOffset(timeZone, captures.slice(1));
33
- return NaN;
34
- }
35
- }
36
- const offsetRe = /([+-]\d\d):?(\d\d)?/;
37
- function calcOffset(cacheStr, values) {
38
- const hours = +values[0];
39
- const minutes = +(values[1] || 0);
40
- return offsetCache[cacheStr] = hours > 0 ? hours * 60 + minutes : hours * 60 - minutes;
41
- }
42
-
43
- export { tzOffset };
@@ -1,11 +0,0 @@
1
- // packages/core/primitive/src/primitive.tsx
2
- function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
3
- return function handleEvent(event) {
4
- originalEventHandler?.(event);
5
- if (checkForDefaultPrevented === false || !event.defaultPrevented) {
6
- return ourEventHandler?.(event);
7
- }
8
- };
9
- }
10
-
11
- export { composeEventHandlers };
@@ -1,39 +0,0 @@
1
- import * as React from 'react';
2
-
3
- // packages/react/compose-refs/src/compose-refs.tsx
4
- function setRef(ref, value) {
5
- if (typeof ref === "function") {
6
- return ref(value);
7
- } else if (ref !== null && ref !== void 0) {
8
- ref.current = value;
9
- }
10
- }
11
- function composeRefs(...refs) {
12
- return (node) => {
13
- let hasCleanup = false;
14
- const cleanups = refs.map((ref) => {
15
- const cleanup = setRef(ref, node);
16
- if (!hasCleanup && typeof cleanup == "function") {
17
- hasCleanup = true;
18
- }
19
- return cleanup;
20
- });
21
- if (hasCleanup) {
22
- return () => {
23
- for (let i = 0; i < cleanups.length; i++) {
24
- const cleanup = cleanups[i];
25
- if (typeof cleanup == "function") {
26
- cleanup();
27
- } else {
28
- setRef(refs[i], null);
29
- }
30
- }
31
- };
32
- }
33
- };
34
- }
35
- function useComposedRefs(...refs) {
36
- return React.useCallback(composeRefs(...refs), refs);
37
- }
38
-
39
- export { composeRefs, useComposedRefs };
@@ -1,79 +0,0 @@
1
- import * as React from 'react';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- // packages/react/context/src/create-context.tsx
5
- function createContext2(rootComponentName, defaultContext) {
6
- const Context = React.createContext(defaultContext);
7
- const Provider = (props) => {
8
- const { children, ...context } = props;
9
- const value = React.useMemo(() => context, Object.values(context));
10
- return /* @__PURE__ */ jsx(Context.Provider, { value, children });
11
- };
12
- Provider.displayName = rootComponentName + "Provider";
13
- function useContext2(consumerName) {
14
- const context = React.useContext(Context);
15
- if (context) return context;
16
- if (defaultContext !== void 0) return defaultContext;
17
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
18
- }
19
- return [Provider, useContext2];
20
- }
21
- function createContextScope(scopeName, createContextScopeDeps = []) {
22
- let defaultContexts = [];
23
- function createContext3(rootComponentName, defaultContext) {
24
- const BaseContext = React.createContext(defaultContext);
25
- const index = defaultContexts.length;
26
- defaultContexts = [...defaultContexts, defaultContext];
27
- const Provider = (props) => {
28
- const { scope, children, ...context } = props;
29
- const Context = scope?.[scopeName]?.[index] || BaseContext;
30
- const value = React.useMemo(() => context, Object.values(context));
31
- return /* @__PURE__ */ jsx(Context.Provider, { value, children });
32
- };
33
- Provider.displayName = rootComponentName + "Provider";
34
- function useContext2(consumerName, scope) {
35
- const Context = scope?.[scopeName]?.[index] || BaseContext;
36
- const context = React.useContext(Context);
37
- if (context) return context;
38
- if (defaultContext !== void 0) return defaultContext;
39
- throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
40
- }
41
- return [Provider, useContext2];
42
- }
43
- const createScope = () => {
44
- const scopeContexts = defaultContexts.map((defaultContext) => {
45
- return React.createContext(defaultContext);
46
- });
47
- return function useScope(scope) {
48
- const contexts = scope?.[scopeName] || scopeContexts;
49
- return React.useMemo(
50
- () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
51
- [scope, contexts]
52
- );
53
- };
54
- };
55
- createScope.scopeName = scopeName;
56
- return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
57
- }
58
- function composeContextScopes(...scopes) {
59
- const baseScope = scopes[0];
60
- if (scopes.length === 1) return baseScope;
61
- const createScope = () => {
62
- const scopeHooks = scopes.map((createScope2) => ({
63
- useScope: createScope2(),
64
- scopeName: createScope2.scopeName
65
- }));
66
- return function useComposedScopes(overrideScopes) {
67
- const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
68
- const scopeProps = useScope(overrideScopes);
69
- const currentScope = scopeProps[`__scope${scopeName}`];
70
- return { ...nextScopes2, ...currentScope };
71
- }, {});
72
- return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
73
- };
74
- };
75
- createScope.scopeName = baseScope.scopeName;
76
- return createScope;
77
- }
78
-
79
- export { createContext2 as createContext, createContextScope };