@zimyo/ui 1.0.1 → 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 (307) hide show
  1. package/package.json +79 -80
  2. package/dist/_virtual/_rollupPluginBabelHelpers.js +0 -11
  3. package/dist/components/index.d.ts +0 -59
  4. package/dist/components/ui/accordion.d.ts +0 -9
  5. package/dist/components/ui/accordion.js +0 -53
  6. package/dist/components/ui/alert-dialog.d.ts +0 -16
  7. package/dist/components/ui/alert-dialog.js +0 -107
  8. package/dist/components/ui/alert.d.ts +0 -12
  9. package/dist/components/ui/alert.js +0 -53
  10. package/dist/components/ui/aspect-ratio.d.ts +0 -6
  11. package/dist/components/ui/aspect-ratio.js +0 -12
  12. package/dist/components/ui/avatar.d.ts +0 -8
  13. package/dist/components/ui/avatar.js +0 -38
  14. package/dist/components/ui/badge.d.ts +0 -12
  15. package/dist/components/ui/badge.js +0 -37
  16. package/dist/components/ui/breadcrumb.d.ts +0 -13
  17. package/dist/components/ui/breadcrumb.js +0 -90
  18. package/dist/components/ui/button.d.ts +0 -13
  19. package/dist/components/ui/button.js +0 -49
  20. package/dist/components/ui/calendar.d.ts +0 -12
  21. package/dist/components/ui/calendar.js +0 -134
  22. package/dist/components/ui/card.d.ts +0 -11
  23. package/dist/components/ui/card.js +0 -77
  24. package/dist/components/ui/carousel.d.ts +0 -24
  25. package/dist/components/ui/carousel.js +0 -163
  26. package/dist/components/ui/chart.d.ts +0 -43
  27. package/dist/components/ui/chart.js +0 -187
  28. package/dist/components/ui/checkbox.d.ts +0 -6
  29. package/dist/components/ui/checkbox.js +0 -24
  30. package/dist/components/ui/collapsible.d.ts +0 -8
  31. package/dist/components/ui/collapsible.js +0 -24
  32. package/dist/components/ui/command.d.ts +0 -21
  33. package/dist/components/ui/command.js +0 -110
  34. package/dist/components/ui/context-menu.d.ts +0 -27
  35. package/dist/components/ui/context-menu.js +0 -158
  36. package/dist/components/ui/dialog.d.ts +0 -17
  37. package/dist/components/ui/dialog.js +0 -102
  38. package/dist/components/ui/drawer.d.ts +0 -15
  39. package/dist/components/ui/drawer.js +0 -97
  40. package/dist/components/ui/dropdown-menu.d.ts +0 -27
  41. package/dist/components/ui/dropdown-menu.js +0 -160
  42. package/dist/components/ui/form.d.ts +0 -26
  43. package/dist/components/ui/form.js +0 -125
  44. package/dist/components/ui/hover-card.d.ts +0 -8
  45. package/dist/components/ui/hover-card.js +0 -36
  46. package/dist/components/ui/input-otp.d.ts +0 -13
  47. package/dist/components/ui/input-otp.js +0 -61
  48. package/dist/components/ui/input.d.ts +0 -5
  49. package/dist/components/ui/input.js +0 -19
  50. package/dist/components/ui/label.d.ts +0 -6
  51. package/dist/components/ui/label.js +0 -18
  52. package/dist/components/ui/menubar.d.ts +0 -28
  53. package/dist/components/ui/menubar.js +0 -178
  54. package/dist/components/ui/navigation-menu.d.ts +0 -17
  55. package/dist/components/ui/navigation-menu.js +0 -102
  56. package/dist/components/ui/pagination.d.ts +0 -17
  57. package/dist/components/ui/pagination.js +0 -95
  58. package/dist/components/ui/popover.d.ts +0 -9
  59. package/dist/components/ui/popover.js +0 -40
  60. package/dist/components/ui/progress.d.ts +0 -6
  61. package/dist/components/ui/progress.js +0 -25
  62. package/dist/components/ui/radio-group.d.ts +0 -7
  63. package/dist/components/ui/radio-group.js +0 -34
  64. package/dist/components/ui/resizable.d.ts +0 -10
  65. package/dist/components/ui/resizable.js +0 -40
  66. package/dist/components/ui/scroll-area.d.ts +0 -7
  67. package/dist/components/ui/scroll-area.js +0 -37
  68. package/dist/components/ui/select.d.ts +0 -17
  69. package/dist/components/ui/select.js +0 -118
  70. package/dist/components/ui/separator.d.ts +0 -6
  71. package/dist/components/ui/separator.js +0 -22
  72. package/dist/components/ui/sheet.d.ts +0 -15
  73. package/dist/components/ui/sheet.js +0 -101
  74. package/dist/components/ui/sidebar.d.ts +0 -73
  75. package/dist/components/ui/sidebar.js +0 -484
  76. package/dist/components/ui/skeleton.d.ts +0 -5
  77. package/dist/components/ui/skeleton.js +0 -16
  78. package/dist/components/ui/slider.d.ts +0 -6
  79. package/dist/components/ui/slider.js +0 -39
  80. package/dist/components/ui/sonner.d.ts +0 -6
  81. package/dist/components/ui/sonner.js +0 -18
  82. package/dist/components/ui/switch.d.ts +0 -6
  83. package/dist/components/ui/switch.js +0 -21
  84. package/dist/components/ui/table.d.ts +0 -12
  85. package/dist/components/ui/table.js +0 -90
  86. package/dist/components/ui/tabs.d.ts +0 -9
  87. package/dist/components/ui/tabs.js +0 -48
  88. package/dist/components/ui/textarea.d.ts +0 -5
  89. package/dist/components/ui/textarea.js +0 -17
  90. package/dist/components/ui/toggle-group.d.ts +0 -10
  91. package/dist/components/ui/toggle-group.js +0 -52
  92. package/dist/components/ui/toggle.d.ts +0 -12
  93. package/dist/components/ui/toggle.js +0 -42
  94. package/dist/components/ui/tooltip.d.ts +0 -9
  95. package/dist/components/ui/tooltip.js +0 -45
  96. package/dist/index.d.ts +0 -61
  97. package/dist/index.js +0 -47
  98. package/dist/lib/utils.d.ts +0 -5
  99. package/dist/lib/utils.js +0 -8
  100. package/dist/node_modules/@date-fns/tz/date/index.js +0 -101
  101. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -207
  102. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -43
  103. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -11
  104. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -39
  105. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -79
  106. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -321
  107. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -211
  108. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -29
  109. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -207
  110. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -15
  111. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -17
  112. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -130
  113. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -43
  114. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -89
  115. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -12
  116. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -70
  117. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -18
  118. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
  119. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
  120. package/dist/node_modules/class-variance-authority/dist/index.js +0 -44
  121. package/dist/node_modules/clsx/dist/clsx.js +0 -3
  122. package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.js +0 -3
  123. package/dist/node_modules/cmdk/dist/index.js +0 -10
  124. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -7
  125. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
  126. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -775
  127. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -94
  128. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -66
  129. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -31
  130. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
  131. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
  132. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -25
  133. package/dist/node_modules/date-fns/addDays.js +0 -41
  134. package/dist/node_modules/date-fns/addMonths.js +0 -75
  135. package/dist/node_modules/date-fns/addWeeks.js +0 -33
  136. package/dist/node_modules/date-fns/addYears.js +0 -33
  137. package/dist/node_modules/date-fns/constants.js +0 -46
  138. package/dist/node_modules/date-fns/constructFrom.js +0 -49
  139. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -62
  140. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -42
  141. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -65
  142. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -35
  143. package/dist/node_modules/date-fns/endOfMonth.js +0 -37
  144. package/dist/node_modules/date-fns/endOfWeek.js +0 -53
  145. package/dist/node_modules/date-fns/endOfYear.js +0 -37
  146. package/dist/node_modules/date-fns/format.js +0 -423
  147. package/dist/node_modules/date-fns/getDayOfYear.js +0 -34
  148. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -36
  149. package/dist/node_modules/date-fns/getISOWeek.js +0 -40
  150. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -52
  151. package/dist/node_modules/date-fns/getMonth.js +0 -29
  152. package/dist/node_modules/date-fns/getWeek.js +0 -54
  153. package/dist/node_modules/date-fns/getWeekYear.js +0 -75
  154. package/dist/node_modules/date-fns/getYear.js +0 -29
  155. package/dist/node_modules/date-fns/isAfter.js +0 -25
  156. package/dist/node_modules/date-fns/isBefore.js +0 -25
  157. package/dist/node_modules/date-fns/isDate.js +0 -41
  158. package/dist/node_modules/date-fns/isSameDay.js +0 -46
  159. package/dist/node_modules/date-fns/isSameMonth.js +0 -43
  160. package/dist/node_modules/date-fns/isSameYear.js +0 -35
  161. package/dist/node_modules/date-fns/isValid.js +0 -39
  162. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  163. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -64
  164. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -59
  165. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -22
  166. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -103
  167. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -41
  168. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -13
  169. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -189
  170. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -134
  171. package/dist/node_modules/date-fns/locale/en-US.js +0 -28
  172. package/dist/node_modules/date-fns/max.js +0 -49
  173. package/dist/node_modules/date-fns/min.js +0 -49
  174. package/dist/node_modules/date-fns/setMonth.js +0 -46
  175. package/dist/node_modules/date-fns/setYear.js +0 -40
  176. package/dist/node_modules/date-fns/startOfDay.js +0 -35
  177. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -35
  178. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -42
  179. package/dist/node_modules/date-fns/startOfMonth.js +0 -37
  180. package/dist/node_modules/date-fns/startOfWeek.js +0 -53
  181. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -64
  182. package/dist/node_modules/date-fns/startOfYear.js +0 -36
  183. package/dist/node_modules/date-fns/toDate.js +0 -46
  184. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1669
  185. package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +0 -37
  186. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -38
  187. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
  188. package/dist/node_modules/input-otp/dist/index.js +0 -24
  189. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -285
  190. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -122
  191. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -30
  192. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -14
  193. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -13
  194. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -522
  195. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -13
  196. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -13
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
  198. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -18
  199. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -19
  200. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -21
  201. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -13
  202. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -13
  203. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -15
  204. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -14
  205. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -13
  206. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -13
  207. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -15
  208. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -31
  209. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -15
  210. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -13
  211. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -15
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -14
  213. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -13
  214. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -14
  215. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -14
  216. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -13
  217. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -13
  218. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -14
  219. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -13
  220. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -15
  221. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
  222. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -25
  223. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -19
  224. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -18
  225. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -21
  226. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -13
  227. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -19
  228. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -23
  229. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -7
  230. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -73
  231. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -95
  232. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -22
  233. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -28
  234. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -33
  235. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -20
  236. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -27
  237. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -51
  238. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -19
  239. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -33
  240. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -24
  241. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -46
  242. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -24
  243. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -28
  244. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -33
  245. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -69
  246. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -51
  247. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -39
  248. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -36
  249. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -37
  250. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -27
  251. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -24
  252. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -14
  253. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -38
  254. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -27
  255. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -31
  256. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -11
  257. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -32
  258. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -24
  259. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -22
  260. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -14
  261. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -13
  262. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -15
  263. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -15
  264. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -15
  265. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -14
  266. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -18
  267. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -14
  268. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -57
  269. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -45
  270. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -44
  271. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -175
  272. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -85
  273. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -25
  274. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -50
  275. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -31
  276. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -92
  277. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -62
  278. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -30
  279. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -74
  280. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -35
  281. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -21
  282. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -66
  283. package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -507
  284. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -9
  285. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -160
  286. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -38
  287. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -21
  288. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
  289. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  290. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  291. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -56
  292. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
  293. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -31
  294. package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.js +0 -2407
  295. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -19
  296. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -25
  297. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -51
  298. package/dist/node_modules/sonner/dist/index.js +0 -1125
  299. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2956
  300. package/dist/node_modules/tslib/tslib.es6.js +0 -56
  301. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -24
  302. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -48
  303. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -42
  304. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
  305. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -77
  306. package/dist/node_modules/vaul/dist/index.js +0 -1627
  307. package/dist/styles.css +0 -1
@@ -1,38 +0,0 @@
1
- import { __rest, __assign } from '../../../tslib/tslib.es6.js';
2
- import * as React from 'react';
3
- import { zeroRightClassName, fullWidthClassName } from '../../../react-remove-scroll-bar/dist/es2015/constants.js';
4
- import { effectCar } from './medium.js';
5
- import { useMergeRefs } from '../../../use-callback-ref/dist/es2015/useMergeRef.js';
6
-
7
- var nothing = function () {
8
- return;
9
- };
10
- /**
11
- * Removes scrollbar from the page and contain the scroll within the Lock
12
- */
13
- var RemoveScroll = React.forwardRef(function (props, parentRef) {
14
- var ref = React.useRef(null);
15
- var _a = React.useState({
16
- onScrollCapture: nothing,
17
- onWheelCapture: nothing,
18
- onTouchMoveCapture: nothing,
19
- }), callbacks = _a[0], setCallbacks = _a[1];
20
- var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
21
- var SideCar = sideCar;
22
- var containerRef = useMergeRefs([ref, parentRef]);
23
- var containerProps = __assign(__assign({}, rest), callbacks);
24
- return (React.createElement(React.Fragment, null,
25
- enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noRelative: noRelative, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),
26
- forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));
27
- });
28
- RemoveScroll.defaultProps = {
29
- enabled: true,
30
- removeScrollBar: true,
31
- inert: false,
32
- };
33
- RemoveScroll.classNames = {
34
- fullWidth: fullWidthClassName,
35
- zeroRight: zeroRightClassName,
36
- };
37
-
38
- export { RemoveScroll };
@@ -1,21 +0,0 @@
1
- var passiveSupported = false;
2
- if (typeof window !== 'undefined') {
3
- try {
4
- var options = Object.defineProperty({}, 'passive', {
5
- get: function () {
6
- passiveSupported = true;
7
- return true;
8
- },
9
- });
10
- // @ts-ignore
11
- window.addEventListener('test', options, options);
12
- // @ts-ignore
13
- window.removeEventListener('test', options, options);
14
- }
15
- catch (err) {
16
- passiveSupported = false;
17
- }
18
- }
19
- var nonPassive = passiveSupported ? { passive: false } : false;
20
-
21
- export { nonPassive };
@@ -1,110 +0,0 @@
1
- var alwaysContainsScroll = function (node) {
2
- // textarea will always _contain_ scroll inside self. It only can be hidden
3
- return node.tagName === 'TEXTAREA';
4
- };
5
- var elementCanBeScrolled = function (node, overflow) {
6
- if (!(node instanceof Element)) {
7
- return false;
8
- }
9
- var styles = window.getComputedStyle(node);
10
- return (
11
- // not-not-scrollable
12
- styles[overflow] !== 'hidden' &&
13
- // contains scroll inside self
14
- !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));
15
- };
16
- var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
17
- var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
18
- var locationCouldBeScrolled = function (axis, node) {
19
- var ownerDocument = node.ownerDocument;
20
- var current = node;
21
- do {
22
- // Skip over shadow root
23
- if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {
24
- current = current.host;
25
- }
26
- var isScrollable = elementCouldBeScrolled(axis, current);
27
- if (isScrollable) {
28
- var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];
29
- if (scrollHeight > clientHeight) {
30
- return true;
31
- }
32
- }
33
- current = current.parentNode;
34
- } while (current && current !== ownerDocument.body);
35
- return false;
36
- };
37
- var getVScrollVariables = function (_a) {
38
- var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
39
- return [
40
- scrollTop,
41
- scrollHeight,
42
- clientHeight,
43
- ];
44
- };
45
- var getHScrollVariables = function (_a) {
46
- var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
47
- return [
48
- scrollLeft,
49
- scrollWidth,
50
- clientWidth,
51
- ];
52
- };
53
- var elementCouldBeScrolled = function (axis, node) {
54
- return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
55
- };
56
- var getScrollVariables = function (axis, node) {
57
- return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);
58
- };
59
- var getDirectionFactor = function (axis, direction) {
60
- /**
61
- * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
62
- * and then increasingly negative as you scroll towards the end of the content.
63
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
64
- */
65
- return axis === 'h' && direction === 'rtl' ? -1 : 1;
66
- };
67
- var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {
68
- var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
69
- var delta = directionFactor * sourceDelta;
70
- // find scrollable target
71
- var target = event.target;
72
- var targetInLock = endTarget.contains(target);
73
- var shouldCancelScroll = false;
74
- var isDeltaPositive = delta > 0;
75
- var availableScroll = 0;
76
- var availableScrollTop = 0;
77
- do {
78
- if (!target) {
79
- break;
80
- }
81
- var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
82
- var elementScroll = scroll_1 - capacity - directionFactor * position;
83
- if (position || elementScroll) {
84
- if (elementCouldBeScrolled(axis, target)) {
85
- availableScroll += elementScroll;
86
- availableScrollTop += position;
87
- }
88
- }
89
- var parent_1 = target.parentNode;
90
- // we will "bubble" from ShadowDom in case we are, or just to the parent in normal case
91
- // this is the same logic used in focus-lock
92
- target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);
93
- } while (
94
- // portaled content
95
- (!targetInLock && target !== document.body) ||
96
- // self content
97
- (targetInLock && (endTarget.contains(target) || endTarget === target)));
98
- // handle epsilon around 0 (non standard zoom levels)
99
- if (isDeltaPositive &&
100
- ((Math.abs(availableScroll) < 1) || (false))) {
101
- shouldCancelScroll = true;
102
- }
103
- else if (!isDeltaPositive &&
104
- ((Math.abs(availableScrollTop) < 1) || (false))) {
105
- shouldCancelScroll = true;
106
- }
107
- return shouldCancelScroll;
108
- };
109
-
110
- export { handleScroll, locationCouldBeScrolled };
@@ -1,5 +0,0 @@
1
- import { createSidecarMedium } from '../../../use-sidecar/dist/es2015/medium.js';
2
-
3
- var effectCar = createSidecarMedium();
4
-
5
- export { effectCar };
@@ -1,7 +0,0 @@
1
- import { RemoveScrollSideCar } from './SideEffect.js';
2
- import { effectCar } from './medium.js';
3
- import { exportSidecar } from '../../../use-sidecar/dist/es2015/exports.js';
4
-
5
- var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
6
-
7
- export { SideCar as default };
@@ -1,56 +0,0 @@
1
- import * as React from 'react';
2
- import { styleSingleton } from '../../../react-style-singleton/dist/es2015/component.js';
3
- import { noScrollbarsClassName, zeroRightClassName, fullWidthClassName, removedBarSizeVariable } from './constants.js';
4
- import { getGapWidth } from './utils.js';
5
-
6
- var Style = styleSingleton();
7
- var lockAttribute = 'data-scroll-locked';
8
- // important tip - once we measure scrollBar width and remove them
9
- // we could not repeat this operation
10
- // thus we are using style-singleton - only the first "yet correct" style will be applied.
11
- var getStyles = function (_a, allowRelative, gapMode, important) {
12
- var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
13
- if (gapMode === void 0) { gapMode = 'margin'; }
14
- return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
15
- allowRelative && "position: relative ".concat(important, ";"),
16
- gapMode === 'margin' &&
17
- "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
18
- gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
19
- ]
20
- .filter(Boolean)
21
- .join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
22
- };
23
- var getCurrentUseCounter = function () {
24
- var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);
25
- return isFinite(counter) ? counter : 0;
26
- };
27
- var useLockAttribute = function () {
28
- React.useEffect(function () {
29
- document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
30
- return function () {
31
- var newCounter = getCurrentUseCounter() - 1;
32
- if (newCounter <= 0) {
33
- document.body.removeAttribute(lockAttribute);
34
- }
35
- else {
36
- document.body.setAttribute(lockAttribute, newCounter.toString());
37
- }
38
- };
39
- }, []);
40
- };
41
- /**
42
- * Removes page scrollbar and blocks page scroll when mounted
43
- */
44
- var RemoveScrollBar = function (_a) {
45
- var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;
46
- useLockAttribute();
47
- /*
48
- gap will be measured on every component mount
49
- however it will be used only by the "first" invocation
50
- due to singleton nature of <Style
51
- */
52
- var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
53
- return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
54
- };
55
-
56
- export { RemoveScrollBar, lockAttribute, useLockAttribute };
@@ -1,10 +0,0 @@
1
- var zeroRightClassName = 'right-scroll-bar-position';
2
- var fullWidthClassName = 'width-before-scroll-bar';
3
- var noScrollbarsClassName = 'with-scroll-bars-hidden';
4
- /**
5
- * Name of a CSS variable containing the amount of "hidden" scrollbar
6
- * ! might be undefined ! use will fallback!
7
- */
8
- var removedBarSizeVariable = '--removed-body-scroll-bar-size';
9
-
10
- export { fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable, zeroRightClassName };
@@ -1,31 +0,0 @@
1
- var zeroGap = {
2
- left: 0,
3
- top: 0,
4
- right: 0,
5
- gap: 0,
6
- };
7
- var parse = function (x) { return parseInt(x || '', 10) || 0; };
8
- var getOffset = function (gapMode) {
9
- var cs = window.getComputedStyle(document.body);
10
- var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
11
- var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
12
- var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
13
- return [parse(left), parse(top), parse(right)];
14
- };
15
- var getGapWidth = function (gapMode) {
16
- if (gapMode === void 0) { gapMode = 'margin'; }
17
- if (typeof window === 'undefined') {
18
- return zeroGap;
19
- }
20
- var offsets = getOffset(gapMode);
21
- var documentWidth = document.documentElement.clientWidth;
22
- var windowWidth = window.innerWidth;
23
- return {
24
- left: offsets[0],
25
- top: offsets[1],
26
- right: offsets[2],
27
- gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
28
- };
29
- };
30
-
31
- export { getGapWidth, zeroGap };