prometeo-design-system 2.8.5 → 2.8.7

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/dist/Avatar.js +4 -0
  2. package/dist/Button.js +4 -0
  3. package/dist/CardProfile.js +5 -0
  4. package/dist/CheckBox.js +4 -0
  5. package/dist/DatePicker.js +5 -0
  6. package/dist/DialogModal.js +6 -0
  7. package/dist/DrawerDesktop.js +6 -0
  8. package/dist/DrawerMobile.js +6 -0
  9. package/dist/DropZone.js +5 -0
  10. package/dist/FAButton.js +4 -0
  11. package/dist/Header.js +4 -0
  12. package/dist/Icons/Icons.js +1055 -0
  13. package/dist/Icons.js +5 -0
  14. package/dist/Image.js +4 -0
  15. package/dist/ImageGallery.js +6 -0
  16. package/dist/Input.js +4 -0
  17. package/dist/InputMultiple.js +5 -0
  18. package/dist/LayoutGeneric.js +4 -0
  19. package/dist/Logo.js +4 -0
  20. package/dist/Menu.js +5 -0
  21. package/dist/OtpInput.js +4 -0
  22. package/dist/Pagination.js +4 -0
  23. package/dist/ProfilePictureUpload.js +5 -0
  24. package/dist/ProgressBar.js +4 -0
  25. package/dist/RadioButton.js +5 -0
  26. package/dist/SegmentedButton.js +5 -0
  27. package/dist/Select.js +4 -0
  28. package/dist/SelectSearch.js +4 -0
  29. package/dist/Skeleton.js +5 -0
  30. package/dist/Spinner.js +4 -0
  31. package/dist/Steps.js +5 -0
  32. package/dist/SwipeContainer.js +4 -0
  33. package/dist/Switch.js +5 -0
  34. package/dist/TabLinks.js +4 -0
  35. package/dist/Table.js +11 -0
  36. package/dist/TextArea.js +4 -0
  37. package/dist/Toast.js +5 -0
  38. package/dist/ToastProvider.js +4 -0
  39. package/dist/Tooltip.js +4 -0
  40. package/dist/components/Autocomplete/useAutocomplete.js +143 -0
  41. package/dist/{Avatar.es.js → components/Avatar/Avatar.js} +24 -24
  42. package/dist/{Button.es.js → components/Button/Button.js} +55 -55
  43. package/dist/{CardProfile-CsytJlKZ.js → components/CardProfile/CardProfile.js} +68 -94
  44. package/dist/{CheckBox.es.js → components/CheckBox/CheckBox.js} +25 -25
  45. package/dist/components/DatePicker/DatePicker.js +396 -0
  46. package/dist/components/Dialog/Dialog.js +60 -0
  47. package/dist/components/Dialog/useDialogControl.js +18 -0
  48. package/dist/components/Drawer/DrawerDesktop.js +179 -0
  49. package/dist/components/Drawer/DrawerMobile.js +219 -0
  50. package/dist/components/Drawer/useDrawerDesktop.js +18 -0
  51. package/dist/components/Drawer/useDrawerMobile.js +27 -0
  52. package/dist/components/DropZone/DropZone.js +86 -0
  53. package/dist/components/DropZone/useFileDropzone.js +24 -0
  54. package/dist/{FAButton.es.js → components/FAB/FAButton.js} +5 -5
  55. package/dist/components/Header/Header.js +32 -0
  56. package/dist/components/Image/GalleryPreview.js +40 -0
  57. package/dist/{Image.es.js → components/Image/Image.js} +32 -32
  58. package/dist/components/Image/ImageGallery.js +68 -0
  59. package/dist/components/Image/LightBox.js +223 -0
  60. package/dist/{ImageGallery.es.js → components/Image/useImageGallery.js} +0 -2
  61. package/dist/components/Input/Input.js +219 -0
  62. package/dist/components/InputMultiple/InputMultiple.js +262 -0
  63. package/dist/components/Layout/LayoutGeneric.js +13 -0
  64. package/dist/components/Logo/Logo.js +9 -0
  65. package/dist/{Menu.es.js → components/Menu/MenuComposable.js} +12 -13
  66. package/dist/components/OtpInput/OtpInput.js +112 -0
  67. package/dist/{Pagination.es.js → components/Pagination/Pagination.js} +32 -32
  68. package/dist/{ProfilePictureUpload.es.js → components/ProfilePictureUpload/ProfilePictureUpload.js} +56 -57
  69. package/dist/components/ProgressBar/ProgressBar.js +70 -0
  70. package/dist/{RadioButton.es.js → components/RadioButton/RadioButton.js} +35 -36
  71. package/dist/{SegmentedButton.es.js → components/SegmentedButton/SegmentedButton.js} +37 -38
  72. package/dist/components/Select/Select.js +1005 -0
  73. package/dist/components/SelectSearch/SelectSearch.js +101 -0
  74. package/dist/components/Shared/Chip.js +55 -0
  75. package/dist/components/Shared/HelperComponent.js +24 -0
  76. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.js +62 -0
  77. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.js +59 -0
  78. package/dist/components/Sidebar/SidebarComposable.js +84 -0
  79. package/dist/components/Sidebar/components/NavigationLink.js +34 -0
  80. package/dist/components/Sidebar/components/badge.js +33 -0
  81. package/dist/components/Sidebar/components/changue-account.js +31 -0
  82. package/dist/components/Sidebar/components/collapse-button.js +18 -0
  83. package/dist/components/Sidebar/components/company-logo.js +12 -0
  84. package/dist/components/Sidebar/components/nav-actions.js +98 -0
  85. package/dist/components/Sidebar/components/nav-links.js +100 -0
  86. package/dist/components/Sidebar/context/SidebarContext.js +19 -0
  87. package/dist/components/Sidebar/hooks/SidebarProvider.js +33 -0
  88. package/dist/components/Sidebar/hooks/useNavBarActions.js +9 -0
  89. package/dist/components/Sidebar/hooks/useNavBarCollapse.js +11 -0
  90. package/dist/components/Sidebar/hooks/useSidebarHook.js +13 -0
  91. package/dist/components/Sidebar/ui/useNavbarAnimation.js +326 -0
  92. package/dist/{Skeleton.es.js → components/Skeleton/Skeleton.js} +16 -18
  93. package/dist/components/Spinner/Spinner.js +52 -0
  94. package/dist/{Steps.es.js → components/Steps/Steps.js} +61 -62
  95. package/dist/{SwipeContainer.es.js → components/SwipeContainer/SwipeContainer.js} +68 -68
  96. package/dist/{Switch.es.js → components/Switch/Switch.js} +17 -18
  97. package/dist/{TabLinks.es.js → components/TabLinks/TabLinks.js} +11 -11
  98. package/dist/components/TabSwitch/TabSwitch.js +57 -0
  99. package/dist/{Table.es.js → components/Table/Table.js} +38 -41
  100. package/dist/{TextArea.es.js → components/TextArea/TextArea.js} +24 -26
  101. package/dist/components/Toaster/ToastProvider.js +6 -0
  102. package/dist/{Toast.es.js → components/Toaster/Toaster.js} +48 -48
  103. package/dist/components/Tooltip/Tootip.js +62 -0
  104. package/dist/hooks/useClickOutside.js +24 -0
  105. package/dist/{useDragScroll-CHN9OMwn.js → hooks/useDragScroll.js} +1 -1
  106. package/dist/hooks/useLabelBackground.js +25 -0
  107. package/dist/index.js +119 -0
  108. package/dist/{cn-B6yFEsav.js → lib/cn.js} +2 -2
  109. package/dist/lib/utils.js +54 -0
  110. package/dist/node_modules/@date-fns/tz/date/index.js +61 -0
  111. package/dist/node_modules/@date-fns/tz/date/mini.js +69 -0
  112. package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
  113. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +22 -0
  114. package/dist/{index-BOQuZ0gG.js → node_modules/class-variance-authority/dist/index.js} +10 -9
  115. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  116. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  117. package/dist/node_modules/date-fns/_lib/format/formatters.js +583 -0
  118. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  119. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  120. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  121. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  122. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
  123. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  124. package/dist/node_modules/date-fns/addDays.js +10 -0
  125. package/dist/node_modules/date-fns/addMonths.js +20 -0
  126. package/dist/node_modules/date-fns/addWeeks.js +8 -0
  127. package/dist/node_modules/date-fns/addYears.js +8 -0
  128. package/dist/node_modules/date-fns/constants.js +6 -0
  129. package/dist/node_modules/date-fns/constructFrom.js +8 -0
  130. package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
  131. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +13 -0
  132. package/dist/node_modules/date-fns/eachMonthOfInterval.js +17 -0
  133. package/dist/node_modules/date-fns/eachYearOfInterval.js +17 -0
  134. package/dist/node_modules/date-fns/endOfISOWeek.js +8 -0
  135. package/dist/node_modules/date-fns/endOfMonth.js +9 -0
  136. package/dist/node_modules/date-fns/endOfWeek.js +10 -0
  137. package/dist/node_modules/date-fns/endOfYear.js +9 -0
  138. package/dist/node_modules/date-fns/format.js +58 -0
  139. package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
  140. package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
  141. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  142. package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
  143. package/dist/node_modules/date-fns/getMonth.js +8 -0
  144. package/dist/node_modules/date-fns/getWeek.js +12 -0
  145. package/dist/node_modules/date-fns/getWeekYear.js +16 -0
  146. package/dist/node_modules/date-fns/getYear.js +8 -0
  147. package/dist/node_modules/date-fns/isAfter.js +8 -0
  148. package/dist/node_modules/date-fns/isBefore.js +8 -0
  149. package/dist/node_modules/date-fns/isDate.js +7 -0
  150. package/dist/node_modules/date-fns/isSameDay.js +14 -0
  151. package/dist/node_modules/date-fns/isSameMonth.js +13 -0
  152. package/dist/node_modules/date-fns/isSameYear.js +13 -0
  153. package/dist/node_modules/date-fns/isValid.js +9 -0
  154. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  155. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  156. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  157. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  158. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  159. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  160. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  161. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  162. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  163. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  164. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +70 -0
  165. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +33 -0
  166. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -0
  167. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +143 -0
  168. package/dist/node_modules/date-fns/locale/es/_lib/match.js +116 -0
  169. package/dist/node_modules/date-fns/locale/es.js +21 -0
  170. package/dist/node_modules/date-fns/max.js +14 -0
  171. package/dist/node_modules/date-fns/min.js +14 -0
  172. package/dist/node_modules/date-fns/setMonth.js +13 -0
  173. package/dist/node_modules/date-fns/setYear.js +10 -0
  174. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  175. package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
  176. package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  177. package/dist/node_modules/date-fns/startOfMonth.js +9 -0
  178. package/dist/node_modules/date-fns/startOfWeek.js +10 -0
  179. package/dist/node_modules/date-fns/startOfWeekYear.js +12 -0
  180. package/dist/node_modules/date-fns/startOfYear.js +9 -0
  181. package/dist/node_modules/date-fns/toDate.js +8 -0
  182. package/dist/node_modules/input-otp/dist/index.js +194 -0
  183. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +227 -0
  184. package/dist/node_modules/react-day-picker/dist/esm/UI.js +22 -0
  185. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +19 -0
  186. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +8 -0
  187. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +8 -0
  188. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +147 -0
  189. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
  190. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
  191. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
  192. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
  193. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +10 -0
  194. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +19 -0
  195. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
  196. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
  198. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
  199. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
  200. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
  201. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
  202. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +27 -0
  203. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
  204. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
  205. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
  206. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
  207. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
  208. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
  209. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
  210. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
  211. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
  213. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
  214. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
  215. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
  216. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +9 -0
  217. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
  218. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
  219. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +7 -0
  220. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
  221. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
  222. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
  223. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
  224. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +19 -0
  225. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +42 -0
  226. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +9 -0
  227. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +7 -0
  228. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +7 -0
  229. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
  230. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +16 -0
  231. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +21 -0
  232. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +10 -0
  233. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +16 -0
  234. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +13 -0
  235. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +15 -0
  236. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +10 -0
  237. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +13 -0
  238. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +13 -0
  239. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +24 -0
  240. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +13 -0
  241. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +12 -0
  242. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +12 -0
  243. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +12 -0
  244. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +13 -0
  245. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +11 -0
  246. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +7 -0
  247. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +16 -0
  248. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +7 -0
  249. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +8 -0
  250. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
  251. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +10 -0
  252. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +9 -0
  253. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +8 -0
  254. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
  255. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
  256. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +6 -0
  257. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
  258. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
  259. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
  260. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
  261. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
  262. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +21 -0
  263. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +18 -0
  264. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +15 -0
  265. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +56 -0
  266. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +44 -0
  267. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +12 -0
  268. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +23 -0
  269. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +19 -0
  270. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +32 -0
  271. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +26 -0
  272. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +15 -0
  273. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +28 -0
  274. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +9 -0
  275. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
  276. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
  277. package/dist/prometeo-design-system.css +1 -1
  278. package/dist/useDevice.js +4 -0
  279. package/package.json +114 -115
  280. package/dist/CardProfile.es.js +0 -5
  281. package/dist/DatePicker.es.js +0 -3441
  282. package/dist/DialogModal.es.js +0 -75
  283. package/dist/DrawerDesktop.es.js +0 -192
  284. package/dist/DrawerMobile.es.js +0 -242
  285. package/dist/DropZone.es.js +0 -87
  286. package/dist/Header.es.js +0 -32
  287. package/dist/HelperComponent-g_xuKWzK.js +0 -24
  288. package/dist/Icons-DtFC5DJ7.js +0 -1079
  289. package/dist/Icons.es.js +0 -5
  290. package/dist/ImageGallery-Ckxg9OIC.js +0 -317
  291. package/dist/Input-Cck37DpG.js +0 -240
  292. package/dist/Input.es.js +0 -4
  293. package/dist/InputMultiple.es.js +0 -263
  294. package/dist/LayoutGeneric-CbaoatQB.js +0 -26
  295. package/dist/LayoutGeneric.es.js +0 -4
  296. package/dist/Logo.es.js +0 -9
  297. package/dist/OtpInput.es.js +0 -301
  298. package/dist/ProgressBar.es.js +0 -70
  299. package/dist/Select-BD5FTxVw.js +0 -1100
  300. package/dist/Select.es.js +0 -4
  301. package/dist/SelectSearch.es.js +0 -237
  302. package/dist/Spinner.es.js +0 -52
  303. package/dist/ToastProvider.es.js +0 -6
  304. package/dist/Tooltip.es.js +0 -62
  305. package/dist/jsx-runtime-DKDX3adD.js +0 -281
  306. package/dist/prometeo-design-system.es.js +0 -1002
  307. /package/dist/{useDevice.es.js → hooks/useDevice.js} +0 -0
@@ -1,15 +1,15 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { C as j } from "./Icons-DtFC5DJ7.js";
3
- import { c as y } from "./cn-B6yFEsav.js";
4
- import { motion as r } from "framer-motion";
5
- import N from "react";
6
- const b = ({
7
- index: n,
1
+ import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
+ import { Check as b } from "../../Icons/Icons.js";
3
+ import { cn as w } from "../../lib/cn.js";
4
+ import { motion as s } from "framer-motion";
5
+ import $ from "react";
6
+ const v = ({
7
+ index: c,
8
8
  isHorizontal: t,
9
- currentStep: u,
10
- size: s
9
+ currentStep: f,
10
+ size: n
11
11
  }) => {
12
- const i = n < u, x = n === u - 1, o = {
12
+ const i = c < f, p = c === f - 1, o = {
13
13
  horizontal: {
14
14
  sm: "w-[44px] h-[2px]",
15
15
  md: "w-20 h-1",
@@ -21,15 +21,15 @@ const b = ({
21
21
  lg: "w-1 h-20"
22
22
  }
23
23
  };
24
- return /* @__PURE__ */ e.jsxs("div", { className: `relative ${t ? o.horizontal[s] : o.vertical[s]}`, children: [
25
- /* @__PURE__ */ e.jsx(
24
+ return /* @__PURE__ */ u("div", { className: `relative ${t ? o.horizontal[n] : o.vertical[n]}`, children: [
25
+ /* @__PURE__ */ e(
26
26
  "div",
27
27
  {
28
28
  className: "absolute inset-0 rounded-full bg-neutral-medium-default"
29
29
  }
30
30
  ),
31
- /* @__PURE__ */ e.jsx(
32
- r.div,
31
+ /* @__PURE__ */ e(
32
+ s.div,
33
33
  {
34
34
  className: "absolute inset-0 rounded-full bg-primary-default-default",
35
35
  initial: {
@@ -45,7 +45,7 @@ const b = ({
45
45
  transition: {
46
46
  duration: 0.2,
47
47
  ease: "easeInOut",
48
- delay: n * 0.1
48
+ delay: c * 0.1
49
49
  },
50
50
  style: {
51
51
  originX: t ? 0 : 0.5,
@@ -53,8 +53,8 @@ const b = ({
53
53
  }
54
54
  }
55
55
  ),
56
- x && /* @__PURE__ */ e.jsx(
57
- r.div,
56
+ p && /* @__PURE__ */ e(
57
+ s.div,
58
58
  {
59
59
  className: "absolute inset-0 rounded-full bg-primary-default-default",
60
60
  initial: {
@@ -80,22 +80,22 @@ const b = ({
80
80
  }
81
81
  )
82
82
  ] });
83
- }, S = ({
84
- steps: n,
83
+ }, k = ({
84
+ steps: c,
85
85
  currentStep: t,
86
- orientation: u = "horizontal",
87
- variant: s = "default",
86
+ orientation: f = "horizontal",
87
+ variant: n = "default",
88
88
  size: i = "md",
89
- className: x = "",
89
+ className: p = "",
90
90
  onStepClick: o,
91
- allowClickableSteps: p = !1
91
+ allowClickableSteps: g = !1
92
92
  }) => {
93
- const c = u === "horizontal", m = {
93
+ const r = f === "horizontal", m = {
94
94
  sm: {
95
95
  circle: "size-7 aspect-square text-xs",
96
96
  title: "text-sm",
97
97
  description: "text-[11px] w-16",
98
- spacing: c ? "gap-2" : "gap-1",
98
+ spacing: r ? "gap-2" : "gap-1",
99
99
  connectorContainer: "px-2",
100
100
  iconSize: 20
101
101
  },
@@ -103,7 +103,7 @@ const b = ({
103
103
  circle: "w-10 h-10 text-sm",
104
104
  title: "text-base",
105
105
  description: "text-sm w-20",
106
- spacing: c ? "gap-3" : "gap-2",
106
+ spacing: r ? "gap-3" : "gap-2",
107
107
  connectorContainer: "px-2",
108
108
  iconSize: 24
109
109
  },
@@ -111,11 +111,11 @@ const b = ({
111
111
  circle: "w-12 h-12 text-base",
112
112
  title: "text-lg",
113
113
  description: "text-base w-28",
114
- spacing: c ? "gap-4" : "gap-3",
114
+ spacing: r ? "gap-4" : "gap-3",
115
115
  connectorContainer: "px-2",
116
116
  iconSize: 28
117
117
  }
118
- }, w = (a) => a < t ? "completed" : a === t ? "current" : "upcoming", g = (a) => {
118
+ }, N = (a) => a < t ? "completed" : a === t ? "current" : "upcoming", h = (a) => {
119
119
  const l = `${m[i].circle} rounded-full flex items-center justify-center font-medium`;
120
120
  switch (a) {
121
121
  case "completed":
@@ -125,69 +125,69 @@ const b = ({
125
125
  default:
126
126
  return `${l} bg-neutral-medium-default text-neutral-medium-default`;
127
127
  }
128
- }, h = (a) => {
129
- p && o && o(a);
130
- }, v = c ? `flex items-center w-full justify-center ${x}` : `space-y-0 ${x}`;
131
- return /* @__PURE__ */ e.jsx("div", { className: v, children: n.map((a, l) => {
132
- const d = w(l), f = p && o;
133
- return /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: c ? /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
134
- /* @__PURE__ */ e.jsxs("div", { className: "w-max flex flex-col items-center relative", children: [
135
- /* @__PURE__ */ e.jsx(
136
- r.div,
128
+ }, y = (a) => {
129
+ g && o && o(a);
130
+ }, C = r ? `flex items-center w-full justify-center ${p}` : `space-y-0 ${p}`;
131
+ return /* @__PURE__ */ e("div", { className: C, children: c.map((a, l) => {
132
+ const d = N(l), x = g && o;
133
+ return /* @__PURE__ */ e("div", { className: "flex items-center", children: r ? /* @__PURE__ */ u("div", { className: "flex", children: [
134
+ /* @__PURE__ */ u("div", { className: "w-max flex flex-col items-center relative", children: [
135
+ /* @__PURE__ */ e(
136
+ s.div,
137
137
  {
138
- className: `${g(d)} ${f ? "cursor-pointer" : ""} relative z-10`,
138
+ className: `${h(d)} ${x ? "cursor-pointer" : ""} relative z-10`,
139
139
  initial: { scale: 0.8, opacity: 0 },
140
140
  animate: { scale: 1, opacity: 1 },
141
141
  transition: { duration: 0.3, delay: l * 0.3 },
142
- whileTap: f ? { scale: 0.95 } : {},
143
- onClick: () => h(l),
144
- children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(j, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : N.cloneElement(a.icon, { size: m[i].iconSize })
142
+ whileTap: x ? { scale: 0.95 } : {},
143
+ onClick: () => y(l),
144
+ children: n === "numbered" || n === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e(s.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e(b, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e("span", { children: l + 1 }) : $.cloneElement(a.icon, { size: m[i].iconSize })
145
145
  }
146
146
  ),
147
- s !== "minimal" && s !== "numbered-minimal" && a.description && /* @__PURE__ */ e.jsx("p", { className: y(
147
+ n !== "minimal" && n !== "numbered-minimal" && a.description && /* @__PURE__ */ e("p", { className: w(
148
148
  "absolute text-center w-28 -bottom-2 translate-y-full",
149
149
  m[i].description,
150
150
  "text-gray-400 mt-2 text-center",
151
151
  d === "current" ? "text-neutral-strong-default font-semibold " : "text-neutral-medium-default"
152
152
  ), children: a.description })
153
153
  ] }),
154
- l < n.length - 1 && /* @__PURE__ */ e.jsx(
154
+ l < c.length - 1 && /* @__PURE__ */ e(
155
155
  "div",
156
156
  {
157
157
  className: `flex items-center w-max ${m[i].connectorContainer}`,
158
- children: /* @__PURE__ */ e.jsx(
159
- b,
158
+ children: /* @__PURE__ */ e(
159
+ v,
160
160
  {
161
161
  index: l,
162
- isHorizontal: c,
162
+ isHorizontal: r,
163
163
  currentStep: t,
164
164
  size: i
165
165
  }
166
166
  )
167
167
  }
168
168
  )
169
- ] }) : /* @__PURE__ */ e.jsxs("div", { className: "relative flex flex-col items-center w-max", children: [
170
- /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center w-full relative", children: [
171
- /* @__PURE__ */ e.jsx(
172
- r.div,
169
+ ] }) : /* @__PURE__ */ u("div", { className: "relative flex flex-col items-center w-max", children: [
170
+ /* @__PURE__ */ u("div", { className: "flex flex-col items-center w-full relative", children: [
171
+ /* @__PURE__ */ e(
172
+ s.div,
173
173
  {
174
- className: `${g(d)} ${f ? "cursor-pointer" : ""}`,
174
+ className: `${h(d)} ${x ? "cursor-pointer" : ""}`,
175
175
  initial: { scale: 0.8, opacity: 0 },
176
176
  animate: { scale: 1, opacity: 1 },
177
177
  transition: { duration: 0.3, delay: l * 0.1 },
178
- whileTap: f ? { scale: 0.95 } : {},
179
- onClick: () => h(l),
180
- children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(j, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : a.icon
178
+ whileTap: x ? { scale: 0.95 } : {},
179
+ onClick: () => y(l),
180
+ children: n === "numbered" || n === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e(s.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e(b, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e("span", { children: l + 1 }) : a.icon
181
181
  }
182
182
  ),
183
- s !== "minimal" && s !== "numbered-minimal" && /* @__PURE__ */ e.jsx(
184
- r.div,
183
+ n !== "minimal" && n !== "numbered-minimal" && /* @__PURE__ */ e(
184
+ s.div,
185
185
  {
186
186
  className: `absolute -right-4 top-1/2 -translate-y-1/2 translate-x-full ml-4 gap-3 flex flex-col w-full ${m[i].spacing} flex h-full`,
187
187
  initial: { opacity: 0, x: -10 },
188
188
  animate: { opacity: 1, x: 0 },
189
189
  transition: { duration: 0.3, delay: l * 0.1 + 0.1 },
190
- children: a.description && /* @__PURE__ */ e.jsx("p", { className: y(
190
+ children: a.description && /* @__PURE__ */ e("p", { className: w(
191
191
  "h-full text-start flex items-center justify-start ",
192
192
  m[i].description,
193
193
  "text-gray-400",
@@ -196,11 +196,11 @@ const b = ({
196
196
  }
197
197
  )
198
198
  ] }),
199
- l < n.length - 1 && /* @__PURE__ */ e.jsx("div", { className: "py-2", children: /* @__PURE__ */ e.jsx(
200
- b,
199
+ l < c.length - 1 && /* @__PURE__ */ e("div", { className: "py-2", children: /* @__PURE__ */ e(
200
+ v,
201
201
  {
202
202
  index: l,
203
- isHorizontal: c,
203
+ isHorizontal: r,
204
204
  currentStep: t,
205
205
  size: i
206
206
  }
@@ -209,6 +209,5 @@ const b = ({
209
209
  }) });
210
210
  };
211
211
  export {
212
- S as Steps,
213
- S as default
212
+ k as default
214
213
  };
@@ -1,94 +1,94 @@
1
- import { j as o } from "./jsx-runtime-DKDX3adD.js";
2
- import { c as i } from "./cn-B6yFEsav.js";
3
- import { useState as d, useRef as D, useEffect as L } from "react";
4
- const O = ({
5
- children: x,
6
- className: P,
1
+ import { jsxs as D, jsx as o } from "react/jsx-runtime";
2
+ import { cn as i } from "../../lib/cn.js";
3
+ import { useState as d, useRef as L, useEffect as P } from "react";
4
+ const Q = ({
5
+ children: m,
6
+ className: W,
7
7
  showIndicators: R = !0,
8
- showControls: W = !0,
8
+ showControls: Y = !0,
9
9
  // Por defecto mostrar controles
10
- autoPlay: k = !1,
11
- autoPlayInterval: $ = 3e3,
12
- onSwipe: m,
13
- threshold: Y = 50,
10
+ autoPlay: $ = !1,
11
+ autoPlayInterval: N = 3e3,
12
+ onSwipe: p,
13
+ threshold: B = 50,
14
14
  disabled: l = !1,
15
15
  cardWidth: f,
16
16
  // Ancho personalizado de tarjetas
17
17
  visibleCards: r,
18
18
  // Número de tarjetas visibles
19
- width: p = "100%",
19
+ width: x = "100%",
20
20
  // Ancho por defecto
21
21
  height: v = "300px",
22
22
  // Alto por defecto
23
23
  gap: g = 16
24
24
  // Separación por defecto entre cards
25
25
  }) => {
26
- const [n, h] = d(0), [u, N] = d(!1), [T, B] = d({ x: 0, y: 0 }), [I, w] = d({ x: 0, y: 0 }), y = D(null), c = D(null), s = x.length, C = f ? typeof f == "number" ? `${f}px` : f : r && r > 0 ? `${100 / r}%` : "100%";
27
- L(() => (k && s > 1 && !u && (c.current = setInterval(() => {
26
+ const [n, h] = d(0), [u, T] = d(!1), [I, C] = d({ x: 0, y: 0 }), [S, w] = d({ x: 0, y: 0 }), y = L(null), c = L(null), s = m.length, U = f ? typeof f == "number" ? `${f}px` : f : r && r > 0 ? `${100 / r}%` : "100%";
27
+ P(() => ($ && s > 1 && !u && (c.current = setInterval(() => {
28
28
  h((e) => (e + 1) % s);
29
- }, $)), () => {
29
+ }, N)), () => {
30
30
  c.current && clearInterval(c.current);
31
- }), [k, $, s, u]), L(() => {
31
+ }), [$, N, s, u]), P(() => {
32
32
  u && c.current && clearInterval(c.current);
33
33
  }, [u]);
34
- const S = (e, t) => {
35
- l || (N(!0), B({ x: e, y: t }), w({ x: e, y: t }));
36
- }, E = (e, t) => {
34
+ const X = (e, t) => {
35
+ l || (T(!0), C({ x: e, y: t }), w({ x: e, y: t }));
36
+ }, b = (e, t) => {
37
37
  !u || l || w({ x: e, y: t });
38
- }, X = () => {
38
+ }, E = () => {
39
39
  if (!u || l) return;
40
- const e = I.x - T.x;
41
- if (Math.abs(e) > Y) {
40
+ const e = S.x - I.x;
41
+ if (Math.abs(e) > B) {
42
42
  if (e > 0 && n > 0) {
43
43
  const a = n - 1;
44
- h(a), m?.(a);
44
+ h(a), p?.(a);
45
45
  } else if (e < 0 && n < s - 1) {
46
46
  const a = n + 1;
47
- h(a), m?.(a);
47
+ h(a), p?.(a);
48
48
  }
49
49
  }
50
- N(!1), w({ x: 0, y: 0 });
51
- }, U = (e) => {
52
- e.preventDefault(), S(e.clientX, e.clientY);
50
+ T(!1), w({ x: 0, y: 0 });
53
51
  }, _ = (e) => {
54
- E(e.clientX, e.clientY);
55
- }, b = () => {
56
- X();
52
+ e.preventDefault(), X(e.clientX, e.clientY);
57
53
  }, q = (e) => {
58
- const t = e.touches[0];
59
- S(t.clientX, t.clientY);
54
+ b(e.clientX, e.clientY);
55
+ }, j = () => {
56
+ E();
60
57
  }, z = (e) => {
61
58
  const t = e.touches[0];
62
- E(t.clientX, t.clientY);
63
- }, A = () => {
64
- X();
65
- }, j = (e) => {
66
- l || e < 0 || e >= s || (h(e), m?.(e));
59
+ X(t.clientX, t.clientY);
60
+ }, A = (e) => {
61
+ const t = e.touches[0];
62
+ b(t.clientX, t.clientY);
67
63
  }, F = () => {
68
- const e = I.x - T.x;
64
+ E();
65
+ }, M = (e) => {
66
+ l || e < 0 || e >= s || (h(e), p?.(e));
67
+ }, G = () => {
68
+ const e = S.x - I.x;
69
69
  let t = 0;
70
70
  if (r && r > 0) {
71
- const M = y.current ? (y.current.offsetWidth - g * (r - 1)) / r : 0;
72
- t = n * (M + g);
71
+ const k = y.current ? (y.current.offsetWidth - g * (r - 1)) / r : 0;
72
+ t = n * (k + g);
73
73
  } else
74
74
  t = n * 100;
75
75
  const a = r && r > 0 ? `translateX(-${t}px)` : `translateX(-${n * 100}%)`;
76
76
  if (u) {
77
- const M = `translateX(${e}px)`;
78
- return `${a} ${M}`;
77
+ const k = `translateX(${e}px)`;
78
+ return `${a} ${k}`;
79
79
  }
80
80
  return a;
81
81
  };
82
- return s === 0 ? null : /* @__PURE__ */ o.jsxs(
82
+ return s === 0 ? null : /* @__PURE__ */ D(
83
83
  "div",
84
84
  {
85
- className: i("relative overflow-hidden", P),
85
+ className: i("relative overflow-hidden", W),
86
86
  style: {
87
- width: typeof p == "number" ? `${p}px` : p,
87
+ width: typeof x == "number" ? `${x}px` : x,
88
88
  height: typeof v == "number" ? `${v}px` : v
89
89
  },
90
90
  children: [
91
- /* @__PURE__ */ o.jsx(
91
+ /* @__PURE__ */ o(
92
92
  "div",
93
93
  {
94
94
  ref: y,
@@ -97,22 +97,22 @@ const O = ({
97
97
  l && "pointer-events-none opacity-50"
98
98
  ),
99
99
  style: {
100
- transform: F(),
100
+ transform: G(),
101
101
  gap: `${g}px`
102
102
  },
103
- onMouseDown: U,
104
- onMouseMove: _,
105
- onMouseUp: b,
106
- onMouseLeave: b,
107
- onTouchStart: q,
108
- onTouchMove: z,
109
- onTouchEnd: A,
110
- children: x.map((e, t) => /* @__PURE__ */ o.jsx(
103
+ onMouseDown: _,
104
+ onMouseMove: q,
105
+ onMouseUp: j,
106
+ onMouseLeave: j,
107
+ onTouchStart: z,
108
+ onTouchMove: A,
109
+ onTouchEnd: F,
110
+ children: m.map((e, t) => /* @__PURE__ */ o(
111
111
  "div",
112
112
  {
113
113
  className: "flex-shrink-0 h-full",
114
114
  style: {
115
- width: C
115
+ width: U
116
116
  },
117
117
  children: e
118
118
  },
@@ -120,10 +120,10 @@ const O = ({
120
120
  ))
121
121
  }
122
122
  ),
123
- R && s > 1 && /* @__PURE__ */ o.jsx("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2", children: x.map((e, t) => /* @__PURE__ */ o.jsx(
123
+ R && s > 1 && /* @__PURE__ */ o("div", { className: "absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2", children: m.map((e, t) => /* @__PURE__ */ o(
124
124
  "button",
125
125
  {
126
- onClick: () => j(t),
126
+ onClick: () => M(t),
127
127
  className: i(
128
128
  "w-2 h-2 rounded-full transition-all duration-200",
129
129
  t === n ? "bg-primary-default-default" : "bg-neutral-medium-default hover:bg-neutral-default-default"
@@ -132,45 +132,45 @@ const O = ({
132
132
  },
133
133
  t
134
134
  )) }),
135
- W && s > 1 && /* @__PURE__ */ o.jsxs("div", { className: "absolute inset-0 flex items-center justify-between pointer-events-none", children: [
136
- n > 0 && /* @__PURE__ */ o.jsx(
135
+ Y && s > 1 && /* @__PURE__ */ D("div", { className: "absolute inset-0 flex items-center justify-between pointer-events-none", children: [
136
+ n > 0 && /* @__PURE__ */ o(
137
137
  "button",
138
138
  {
139
- onClick: () => j(n - 1),
139
+ onClick: () => M(n - 1),
140
140
  className: i(
141
141
  "p-2 rounded-full bg-white shadow-md hover:shadow-lg transition-shadow pointer-events-auto",
142
142
  l && "pointer-events-none opacity-50"
143
143
  ),
144
144
  "aria-label": "Elemento anterior",
145
- children: /* @__PURE__ */ o.jsx(
145
+ children: /* @__PURE__ */ o(
146
146
  "svg",
147
147
  {
148
148
  className: "w-4 h-4 text-neutral-default-default rotate-180",
149
149
  fill: "none",
150
150
  stroke: "currentColor",
151
151
  viewBox: "0 0 24 24",
152
- children: /* @__PURE__ */ o.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
152
+ children: /* @__PURE__ */ o("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
153
153
  }
154
154
  )
155
155
  }
156
156
  ),
157
- n < s - 1 && /* @__PURE__ */ o.jsx(
157
+ n < s - 1 && /* @__PURE__ */ o(
158
158
  "button",
159
159
  {
160
- onClick: () => j(n + 1),
160
+ onClick: () => M(n + 1),
161
161
  className: i(
162
162
  "p-2 rounded-full bg-white shadow-md hover:shadow-lg transition-shadow pointer-events-auto",
163
163
  l && "pointer-events-none opacity-50"
164
164
  ),
165
165
  "aria-label": "Elemento siguiente",
166
- children: /* @__PURE__ */ o.jsx(
166
+ children: /* @__PURE__ */ o(
167
167
  "svg",
168
168
  {
169
169
  className: "w-4 h-4 text-neutral-default-default",
170
170
  fill: "none",
171
171
  stroke: "currentColor",
172
172
  viewBox: "0 0 24 24",
173
- children: /* @__PURE__ */ o.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
173
+ children: /* @__PURE__ */ o("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
174
174
  }
175
175
  )
176
176
  }
@@ -181,5 +181,5 @@ const O = ({
181
181
  );
182
182
  };
183
183
  export {
184
- O as default
184
+ Q as default
185
185
  };
@@ -1,11 +1,11 @@
1
- import { j as a } from "./jsx-runtime-DKDX3adD.js";
2
- import { c as r } from "./cn-B6yFEsav.js";
3
- import { memo as w, useRef as b } from "react";
1
+ import { jsxs as w, jsx as a } from "react/jsx-runtime";
2
+ import { cn as r } from "../../lib/cn.js";
3
+ import { memo as b, useRef as k } from "react";
4
4
  import { motion as c } from "framer-motion";
5
- const l = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
6
- const n = b(null), h = (u) => {
5
+ const s = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
6
+ const n = k(null), h = (l) => {
7
7
  if (!n.current || t) return;
8
- u.preventDefault(), u.stopPropagation();
8
+ l.preventDefault(), l.stopPropagation();
9
9
  const g = !n.current.checked;
10
10
  f(d, g);
11
11
  }, i = {
@@ -46,19 +46,19 @@ const l = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
46
46
  off: {
47
47
  width: 16
48
48
  }
49
- }, e = o ? "on" : "off", s = t ? "disabled" : "default";
50
- return /* @__PURE__ */ a.jsxs("div", { children: [
51
- /* @__PURE__ */ a.jsx("input", { type: "checkbox", hidden: !0, ref: n, checked: o, disabled: t }),
52
- /* @__PURE__ */ a.jsx(
49
+ }, e = o ? "on" : "off", u = t ? "disabled" : "default";
50
+ return /* @__PURE__ */ w("div", { children: [
51
+ /* @__PURE__ */ a("input", { type: "checkbox", hidden: !0, ref: n, checked: o, disabled: t }),
52
+ /* @__PURE__ */ a(
53
53
  "div",
54
54
  {
55
55
  onClick: h,
56
56
  className: r(
57
57
  "w-14 h-8 rounded-full relative px-2 cursor-pointer",
58
58
  t && "cursor-default",
59
- i[e][s].container
59
+ i[e][u].container
60
60
  ),
61
- children: /* @__PURE__ */ a.jsx(
61
+ children: /* @__PURE__ */ a(
62
62
  c.span,
63
63
  {
64
64
  animate: m[e],
@@ -69,7 +69,7 @@ const l = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
69
69
  "absolute top-1/2 -translate-y-1/2 grid place-items-center ",
70
70
  "size-10 aspect-square rounded-full absolute top-1/2 -translate-y-1/2"
71
71
  ),
72
- children: /* @__PURE__ */ a.jsx(
72
+ children: /* @__PURE__ */ a(
73
73
  c.span,
74
74
  {
75
75
  animate: p[e],
@@ -79,7 +79,7 @@ const l = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
79
79
  },
80
80
  className: r(
81
81
  "size-4 aspect-square rounded-full z-10",
82
- i[e][s].dot
82
+ i[e][u].dot
83
83
  )
84
84
  }
85
85
  )
@@ -89,9 +89,8 @@ const l = ({ name: d, value: o, onChange: f, disabled: t = !1 }) => {
89
89
  )
90
90
  ] });
91
91
  };
92
- l.displayName = "Switch";
93
- const y = w(l);
92
+ s.displayName = "Switch";
93
+ const N = b(s);
94
94
  export {
95
- y as Switch,
96
- y as default
95
+ N as default
97
96
  };
@@ -1,7 +1,7 @@
1
- import { j as n } from "./jsx-runtime-DKDX3adD.js";
2
- import { motion as x } from "framer-motion";
3
- import { memo as N } from "react";
4
- import { c as r } from "./cn-B6yFEsav.js";
1
+ import { jsx as n, jsxs as N } from "react/jsx-runtime";
2
+ import { motion as g } from "framer-motion";
3
+ import { memo as T } from "react";
4
+ import { cn as r } from "../../lib/cn.js";
5
5
  function o({
6
6
  items: t,
7
7
  activeTab: e,
@@ -16,7 +16,7 @@ function o({
16
16
  const h = (a) => {
17
17
  a.disabled || i?.(a.id, a);
18
18
  };
19
- return /* @__PURE__ */ n.jsx(
19
+ return /* @__PURE__ */ n(
20
20
  "div",
21
21
  {
22
22
  className: r(
@@ -26,7 +26,7 @@ function o({
26
26
  role: "tablist",
27
27
  children: t?.map((a) => {
28
28
  const s = e === a.id, c = () => h(a);
29
- return m ? /* @__PURE__ */ n.jsx("div", { children: m(a, s, c) }, a.id) : /* @__PURE__ */ n.jsxs(
29
+ return m ? /* @__PURE__ */ n("div", { children: m(a, s, c) }, a.id) : /* @__PURE__ */ N(
30
30
  "button",
31
31
  {
32
32
  onClick: c,
@@ -44,8 +44,8 @@ function o({
44
44
  "aria-selected": s,
45
45
  title: a.description,
46
46
  children: [
47
- s && b && /* @__PURE__ */ n.jsx(
48
- x.div,
47
+ s && b && /* @__PURE__ */ n(
48
+ g.div,
49
49
  {
50
50
  layoutId: "tab-indicator",
51
51
  className: r(
@@ -60,7 +60,7 @@ function o({
60
60
  "aria-hidden": "true"
61
61
  }
62
62
  ),
63
- /* @__PURE__ */ n.jsx(
63
+ /* @__PURE__ */ n(
64
64
  "span",
65
65
  {
66
66
  className: r(
@@ -79,7 +79,7 @@ function o({
79
79
  );
80
80
  }
81
81
  o.displayName = "TabLinks";
82
- const C = N(o, (t, e) => {
82
+ const k = T(o, (t, e) => {
83
83
  if (t.activeTab !== e.activeTab || t.className !== e.className || t.tabClassName !== e.tabClassName || t.activeTabClassName !== e.activeTabClassName || t.indicatorClassName !== e.indicatorClassName || t.animated !== e.animated || t.onTabChange !== e.onTabChange || t.renderTab !== e.renderTab || t.items.length !== e.items.length)
84
84
  return !1;
85
85
  for (let i = 0; i < t.items.length; i++) {
@@ -90,5 +90,5 @@ const C = N(o, (t, e) => {
90
90
  return !0;
91
91
  });
92
92
  export {
93
- C as default
93
+ k as default
94
94
  };