prometeo-design-system 2.8.7 → 2.8.9

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