prometeo-design-system 2.8.6 → 2.8.8

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 (308) 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.d.ts +16 -12
  108. package/dist/index.js +127 -0
  109. package/dist/{cn-B6yFEsav.js → lib/cn.js} +2 -2
  110. package/dist/lib/utils.js +54 -0
  111. package/dist/node_modules/@date-fns/tz/date/index.js +61 -0
  112. package/dist/node_modules/@date-fns/tz/date/mini.js +69 -0
  113. package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
  114. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +22 -0
  115. package/dist/{index-BOQuZ0gG.js → node_modules/class-variance-authority/dist/index.js} +10 -9
  116. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  117. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  118. package/dist/node_modules/date-fns/_lib/format/formatters.js +583 -0
  119. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  120. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  121. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  122. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  123. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
  124. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  125. package/dist/node_modules/date-fns/addDays.js +10 -0
  126. package/dist/node_modules/date-fns/addMonths.js +20 -0
  127. package/dist/node_modules/date-fns/addWeeks.js +8 -0
  128. package/dist/node_modules/date-fns/addYears.js +8 -0
  129. package/dist/node_modules/date-fns/constants.js +6 -0
  130. package/dist/node_modules/date-fns/constructFrom.js +8 -0
  131. package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
  132. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +13 -0
  133. package/dist/node_modules/date-fns/eachMonthOfInterval.js +17 -0
  134. package/dist/node_modules/date-fns/eachYearOfInterval.js +17 -0
  135. package/dist/node_modules/date-fns/endOfISOWeek.js +8 -0
  136. package/dist/node_modules/date-fns/endOfMonth.js +9 -0
  137. package/dist/node_modules/date-fns/endOfWeek.js +10 -0
  138. package/dist/node_modules/date-fns/endOfYear.js +9 -0
  139. package/dist/node_modules/date-fns/format.js +58 -0
  140. package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
  141. package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
  142. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  143. package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
  144. package/dist/node_modules/date-fns/getMonth.js +8 -0
  145. package/dist/node_modules/date-fns/getWeek.js +12 -0
  146. package/dist/node_modules/date-fns/getWeekYear.js +16 -0
  147. package/dist/node_modules/date-fns/getYear.js +8 -0
  148. package/dist/node_modules/date-fns/isAfter.js +8 -0
  149. package/dist/node_modules/date-fns/isBefore.js +8 -0
  150. package/dist/node_modules/date-fns/isDate.js +7 -0
  151. package/dist/node_modules/date-fns/isSameDay.js +14 -0
  152. package/dist/node_modules/date-fns/isSameMonth.js +13 -0
  153. package/dist/node_modules/date-fns/isSameYear.js +13 -0
  154. package/dist/node_modules/date-fns/isValid.js +9 -0
  155. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  156. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  157. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  158. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  159. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  160. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  161. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  162. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  163. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  164. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  165. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +70 -0
  166. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +33 -0
  167. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -0
  168. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +143 -0
  169. package/dist/node_modules/date-fns/locale/es/_lib/match.js +116 -0
  170. package/dist/node_modules/date-fns/locale/es.js +21 -0
  171. package/dist/node_modules/date-fns/max.js +14 -0
  172. package/dist/node_modules/date-fns/min.js +14 -0
  173. package/dist/node_modules/date-fns/setMonth.js +13 -0
  174. package/dist/node_modules/date-fns/setYear.js +10 -0
  175. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  176. package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
  177. package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  178. package/dist/node_modules/date-fns/startOfMonth.js +9 -0
  179. package/dist/node_modules/date-fns/startOfWeek.js +10 -0
  180. package/dist/node_modules/date-fns/startOfWeekYear.js +12 -0
  181. package/dist/node_modules/date-fns/startOfYear.js +9 -0
  182. package/dist/node_modules/date-fns/toDate.js +8 -0
  183. package/dist/node_modules/input-otp/dist/index.js +194 -0
  184. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +227 -0
  185. package/dist/node_modules/react-day-picker/dist/esm/UI.js +22 -0
  186. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +19 -0
  187. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +8 -0
  188. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +8 -0
  189. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +147 -0
  190. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
  191. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
  192. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
  193. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
  194. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +10 -0
  195. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +19 -0
  196. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
  198. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
  199. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
  200. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
  201. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
  202. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
  203. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +27 -0
  204. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
  205. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
  206. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
  207. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
  208. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
  209. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
  210. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
  211. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
  213. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
  214. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
  215. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
  216. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
  217. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +9 -0
  218. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
  219. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
  220. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +7 -0
  221. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
  222. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
  223. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
  224. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
  225. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +19 -0
  226. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +42 -0
  227. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +9 -0
  228. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +7 -0
  229. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +7 -0
  230. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
  231. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +16 -0
  232. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +21 -0
  233. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +10 -0
  234. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +16 -0
  235. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +13 -0
  236. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +15 -0
  237. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +10 -0
  238. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +13 -0
  239. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +13 -0
  240. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +24 -0
  241. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +13 -0
  242. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +12 -0
  243. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +12 -0
  244. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +12 -0
  245. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +13 -0
  246. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +11 -0
  247. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +7 -0
  248. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +16 -0
  249. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +7 -0
  250. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +8 -0
  251. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
  252. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +10 -0
  253. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +9 -0
  254. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +8 -0
  255. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
  256. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
  257. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +6 -0
  258. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
  259. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
  260. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
  261. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
  262. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
  263. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +21 -0
  264. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +18 -0
  265. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +15 -0
  266. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +56 -0
  267. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +44 -0
  268. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +12 -0
  269. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +23 -0
  270. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +19 -0
  271. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +32 -0
  272. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +26 -0
  273. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +15 -0
  274. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +28 -0
  275. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +9 -0
  276. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
  277. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
  278. package/dist/prometeo-design-system.css +1 -1
  279. package/dist/useDevice.js +4 -0
  280. package/package.json +114 -115
  281. package/dist/CardProfile.es.js +0 -5
  282. package/dist/DatePicker.es.js +0 -3441
  283. package/dist/DialogModal.es.js +0 -75
  284. package/dist/DrawerDesktop.es.js +0 -192
  285. package/dist/DrawerMobile.es.js +0 -242
  286. package/dist/DropZone.es.js +0 -87
  287. package/dist/Header.es.js +0 -32
  288. package/dist/HelperComponent-g_xuKWzK.js +0 -24
  289. package/dist/Icons-DtFC5DJ7.js +0 -1079
  290. package/dist/Icons.es.js +0 -5
  291. package/dist/ImageGallery-Ckxg9OIC.js +0 -317
  292. package/dist/Input-Cck37DpG.js +0 -240
  293. package/dist/Input.es.js +0 -4
  294. package/dist/InputMultiple.es.js +0 -263
  295. package/dist/LayoutGeneric-CbaoatQB.js +0 -26
  296. package/dist/LayoutGeneric.es.js +0 -4
  297. package/dist/Logo.es.js +0 -9
  298. package/dist/OtpInput.es.js +0 -301
  299. package/dist/ProgressBar.es.js +0 -70
  300. package/dist/Select-BD5FTxVw.js +0 -1100
  301. package/dist/Select.es.js +0 -4
  302. package/dist/SelectSearch.es.js +0 -237
  303. package/dist/Spinner.es.js +0 -52
  304. package/dist/ToastProvider.es.js +0 -6
  305. package/dist/Tooltip.es.js +0 -62
  306. package/dist/jsx-runtime-DKDX3adD.js +0 -281
  307. package/dist/prometeo-design-system.es.js +0 -1002
  308. /package/dist/{useDevice.es.js → hooks/useDevice.js} +0 -0
@@ -1,23 +1,23 @@
1
- import { j as o } from "./jsx-runtime-DKDX3adD.js";
2
- import { memo as L, useRef as w, useLayoutEffect as N } from "react";
3
- import R from "./Avatar.es.js";
4
- import { c as i } from "./cn-B6yFEsav.js";
5
- const F = {
1
+ import { jsxs as R, jsx as n } from "react/jsx-runtime";
2
+ import { memo as j, useRef as w, useLayoutEffect as x } from "react";
3
+ import F from "../Avatar/Avatar.js";
4
+ import { cn as i } from "../../lib/cn.js";
5
+ const A = {
6
6
  sm: "w-16 h-16",
7
7
  md: "w-24 h-24",
8
8
  lg: "w-32 h-32",
9
9
  xl: "w-40 h-40"
10
- }, A = {
10
+ }, M = {
11
11
  sm: "w-4 h-4",
12
12
  md: "w-5 h-5",
13
13
  lg: "w-6 h-6",
14
14
  xl: "w-8 h-8"
15
- }, M = {
15
+ }, T = {
16
16
  sm: "w-6 h-6",
17
17
  md: "w-7 h-7",
18
18
  lg: "w-8 h-8",
19
19
  xl: "w-10 h-10"
20
- }, T = {
20
+ }, U = {
21
21
  sm: "-bottom-1 -right-0.5",
22
22
  md: "-bottom-0.5 -right-0.5",
23
23
  lg: "bottom-1 right-1",
@@ -27,37 +27,37 @@ const F = {
27
27
  md: "w-5 h-5",
28
28
  lg: "w-6 h-6",
29
29
  xl: "w-7 h-7"
30
- }, U = {
30
+ }, z = {
31
31
  sm: "-top-0.5 -right-0.5",
32
32
  md: "-top-1 -right-1",
33
33
  lg: "-top-1 -right-0",
34
34
  xl: "top-1 right-1"
35
35
  };
36
- function z({
36
+ function W({
37
37
  imageUrl: t,
38
38
  fallbackText: e = "S L",
39
39
  onFileSelect: y,
40
40
  onEditClick: m,
41
41
  onRemoveClick: k,
42
- size: r = "lg",
42
+ size: o = "lg",
43
43
  className: C,
44
- disabled: n = !1,
45
- showRemoveButton: j = !0,
46
- acceptedTypes: p = "image/*",
44
+ disabled: r = !1,
45
+ showRemoveButton: p = !0,
46
+ acceptedTypes: v = "image/*",
47
47
  maxFileSize: h = 5 * 1024 * 1024,
48
48
  onError: g
49
49
  }) {
50
- const f = w(null), u = w(null), x = (l) => l.type.startsWith("image/") ? l.size > h ? (g?.(
50
+ const f = w(null), u = w(null), B = (l) => l.type.startsWith("image/") ? l.size > h ? (g?.(
51
51
  `La imagen debe ser menor a ${Math.round(h / 1024 / 1024)}MB`
52
- ), !1) : !0 : (g?.("Por favor selecciona un archivo de imagen válido"), !1), v = (l) => {
52
+ ), !1) : !0 : (g?.("Por favor selecciona un archivo de imagen válido"), !1), S = (l) => {
53
53
  const a = l.target.files?.[0];
54
- a && (x(a) && y?.(a), l.target.value = "");
55
- }, B = () => {
56
- n || (m ? m() : f.current?.click());
57
- }, S = (l) => {
58
- l.stopPropagation(), !n && k?.();
54
+ a && (B(a) && y?.(a), l.target.value = "");
55
+ }, L = () => {
56
+ r || (m ? m() : f.current?.click());
57
+ }, N = (l) => {
58
+ l.stopPropagation(), !r && k?.();
59
59
  };
60
- return N(() => {
60
+ return x(() => {
61
61
  if (u.current) {
62
62
  const a = ((E) => {
63
63
  let c = E;
@@ -74,61 +74,61 @@ function z({
74
74
  );
75
75
  u.current.style.borderColor = a;
76
76
  }
77
- }, []), /* @__PURE__ */ o.jsxs(
77
+ }, []), /* @__PURE__ */ R(
78
78
  "div",
79
79
  {
80
80
  className: i("relative inline-block border-inherit group", C),
81
81
  children: [
82
- /* @__PURE__ */ o.jsx(
82
+ /* @__PURE__ */ n(
83
83
  "input",
84
84
  {
85
85
  ref: f,
86
86
  type: "file",
87
- accept: p,
88
- onChange: v,
87
+ accept: v,
88
+ onChange: S,
89
89
  className: "hidden",
90
- disabled: n
90
+ disabled: r
91
91
  }
92
92
  ),
93
- /* @__PURE__ */ o.jsx(
93
+ /* @__PURE__ */ n(
94
94
  "div",
95
95
  {
96
96
  className: i(
97
- F[r],
97
+ A[o],
98
98
  "rounded-full overflow-hidden flex items-center justify-center relative",
99
- n && "opacity-50 cursor-not-default"
99
+ r && "opacity-50 cursor-not-default"
100
100
  ),
101
- children: /* @__PURE__ */ o.jsx(
102
- R,
101
+ children: /* @__PURE__ */ n(
102
+ F,
103
103
  {
104
104
  imageUrl: t,
105
105
  fallbackText: e,
106
- sizeImage: r,
107
- sizeFallback: r
106
+ sizeImage: o,
107
+ sizeFallback: o
108
108
  }
109
109
  )
110
110
  }
111
111
  ),
112
- /* @__PURE__ */ o.jsx(
112
+ /* @__PURE__ */ n(
113
113
  "button",
114
114
  {
115
115
  ref: u,
116
116
  className: i(
117
117
  "absolute bg-primary-default-default rounded-lg border-2 hover:bg-primary-default-hover cursor-pointer grid place-content-center",
118
- T[r],
119
- M[r],
120
- n && "opacity-50 cursor-not-default"
118
+ U[o],
119
+ T[o],
120
+ r && "opacity-50 cursor-not-default"
121
121
  ),
122
- onClick: B,
123
- disabled: n,
124
- children: /* @__PURE__ */ o.jsx(
122
+ onClick: L,
123
+ disabled: r,
124
+ children: /* @__PURE__ */ n(
125
125
  "svg",
126
126
  {
127
- className: i(A[r], "text-white"),
127
+ className: i(M[o], "text-white"),
128
128
  fill: "none",
129
129
  stroke: "currentColor",
130
130
  viewBox: "0 0 24 24",
131
- children: /* @__PURE__ */ o.jsx(
131
+ children: /* @__PURE__ */ n(
132
132
  "path",
133
133
  {
134
134
  strokeLinecap: "round",
@@ -141,27 +141,27 @@ function z({
141
141
  )
142
142
  }
143
143
  ),
144
- t && j && !n && /* @__PURE__ */ o.jsx(
144
+ t && p && !r && /* @__PURE__ */ n(
145
145
  "button",
146
146
  {
147
147
  className: i(
148
148
  "absolute rounded-full shadow-lg bg-error-light flex cursor-pointer items-center justify-center",
149
149
  "opacity-0 scale-80 group-hover:opacity-100 group-hover:scale-100",
150
150
  "transition-all duration-200 ease-out",
151
- U[r],
152
- b[r],
153
- n && "opacity-50 cursor-default"
151
+ z[o],
152
+ b[o],
153
+ r && "opacity-50 cursor-default"
154
154
  ),
155
- disabled: n,
156
- onClick: S,
157
- children: /* @__PURE__ */ o.jsx(
155
+ disabled: r,
156
+ onClick: N,
157
+ children: /* @__PURE__ */ n(
158
158
  "svg",
159
159
  {
160
- className: i(b[r], "text-white p-1"),
160
+ className: i(b[o], "text-white p-1"),
161
161
  fill: "none",
162
162
  stroke: "currentColor",
163
163
  viewBox: "0 0 24 24",
164
- children: /* @__PURE__ */ o.jsx(
164
+ children: /* @__PURE__ */ n(
165
165
  "path",
166
166
  {
167
167
  strokeLinecap: "round",
@@ -178,12 +178,11 @@ function z({
178
178
  }
179
179
  );
180
180
  }
181
- const W = L(
182
- z,
181
+ const I = j(
182
+ W,
183
183
  (t, e) => t.imageUrl === e.imageUrl && t.fallbackText === e.fallbackText && t.size === e.size && t.className === e.className && t.disabled === e.disabled && t.showRemoveButton === e.showRemoveButton && t.acceptedTypes === e.acceptedTypes && t.maxFileSize === e.maxFileSize && t.disableEntryAnimation === e.disableEntryAnimation && t.onFileSelect === e.onFileSelect && t.onEditClick === e.onEditClick && t.onRemoveClick === e.onRemoveClick && t.onError === e.onError
184
184
  );
185
- W.displayName = "ProfilePictureUpload";
185
+ I.displayName = "ProfilePictureUpload";
186
186
  export {
187
- W as ProfilePictureUpload,
188
- W as default
187
+ I as ProfilePictureUpload
189
188
  };
@@ -0,0 +1,70 @@
1
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
+ import { cn as v } from "../../lib/cn.js";
3
+ import D from "react";
4
+ const P = D.forwardRef(
5
+ (m, p) => {
6
+ const { className: b, label: c, ...y } = m;
7
+ if (m.variant === "date") {
8
+ const { startDate: n, endDate: r } = m, i = new Date(n), a = new Date(r), l = /* @__PURE__ */ new Date(), d = a.getTime() - i.getTime(), u = l.getTime() - i.getTime(), o = Math.min(100, Math.max(0, u / d * 100)), f = 1440 * 60 * 1e3, h = Math.max(0, Math.ceil((a.getTime() - l.getTime()) / f)), g = Math.floor((l.getTime() - a.getTime()) / f), w = Math.ceil(d / f), N = Math.min(w, Math.max(0, Math.floor(u / f))), x = l > a, T = h === 0 && !x, M = x && g === 0;
9
+ let s = c;
10
+ return c || (x ? g === 0 ? s = "Vence hoy" : g === 1 ? s = "Vencido hace 1 día" : s = `Vencido hace ${g} días` : h === 0 ? s = "Vence hoy" : h === 1 ? s = "Falta 1 día" : s = `Faltan ${h} días`), /* @__PURE__ */ e("div", { ref: p, className: b, ...y, children: [
11
+ /* @__PURE__ */ e("div", { className: "flex justify-between items-end mb-2 gap-4 px-2", children: [
12
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-1", children: [
13
+ /* @__PURE__ */ t("span", { className: "text-sm text-neutral-medium-default", children: "Tiempo restante de resolución" }),
14
+ /* @__PURE__ */ t("span", { className: "font-semibold text-base text-neutral-default-default", children: s })
15
+ ] }),
16
+ /* @__PURE__ */ e("span", { className: "text-sm text-neutral-medium-default whitespace-nowrap", children: [
17
+ N,
18
+ " / ",
19
+ w,
20
+ " días"
21
+ ] })
22
+ ] }),
23
+ /* @__PURE__ */ t("div", { className: "w-full bg-neutral-800 dark:bg-neutral-900 border border-neutral-600 dark:border-neutral-700 rounded-sm h-4 overflow-hidden", children: /* @__PURE__ */ t(
24
+ "div",
25
+ {
26
+ className: v(
27
+ "h-full transition-all duration-300",
28
+ T || M ? "bg-yellow-500" : x ? "bg-red-500" : "bg-primary-default-default"
29
+ ),
30
+ style: { width: `${o}%` }
31
+ }
32
+ ) })
33
+ ] });
34
+ }
35
+ if (m.variant === "quantity") {
36
+ const { current: n, total: r, unit: i = "items" } = m, a = Math.min(100, Math.max(0, n / r * 100)), l = Math.max(0, r - n), d = n >= r, u = a >= 80 && !d;
37
+ let o = c;
38
+ return c || (d ? o = "Completado" : l === 1 ? o = `Falta 1 ${i}` : o = `Faltan ${l} ${i}`), /* @__PURE__ */ e("div", { ref: p, className: b, ...y, children: [
39
+ /* @__PURE__ */ e("div", { className: "flex justify-between items-end mb-2 gap-4 px-2", children: [
40
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-1", children: [
41
+ /* @__PURE__ */ t("span", { className: "text-sm text-neutral-medium-default", children: "Progreso" }),
42
+ /* @__PURE__ */ t("span", { className: "font-semibold text-base text-neutral-default-default", children: o })
43
+ ] }),
44
+ /* @__PURE__ */ e("span", { className: "text-sm text-neutral-medium-default whitespace-nowrap", children: [
45
+ n,
46
+ " / ",
47
+ r,
48
+ " ",
49
+ i
50
+ ] })
51
+ ] }),
52
+ /* @__PURE__ */ t("div", { className: "w-full bg-neutral-800 dark:bg-neutral-900 border border-neutral-600 dark:border-neutral-700 rounded-sm h-4 overflow-hidden", children: /* @__PURE__ */ t(
53
+ "div",
54
+ {
55
+ className: v(
56
+ "h-full transition-all duration-300",
57
+ d ? "bg-green-500" : u ? "bg-yellow-500" : "bg-primary-default-default"
58
+ ),
59
+ style: { width: `${a}%` }
60
+ }
61
+ ) })
62
+ ] });
63
+ }
64
+ return null;
65
+ }
66
+ );
67
+ P.displayName = "ProgressBar";
68
+ export {
69
+ P as default
70
+ };
@@ -1,37 +1,37 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { c as t } from "./cn-B6yFEsav.js";
3
- import { memo as x, forwardRef as k, useRef as g, useEffect as y } from "react";
4
- import { H as j } from "./HelperComponent-g_xuKWzK.js";
5
- const s = k((n, a) => {
6
- const r = g(null);
7
- y(() => {
8
- a && (typeof a == "function" ? a(r.current) : a.current = r.current);
9
- }, [a]);
10
- const c = (v) => {
11
- r.current && (v.stopPropagation(), r.current.click());
12
- }, { disabled: o = !1, label: l, required: u = !1, errorComponent: d, helperComponent: i, variant: f = "default", className: p, labelClassName: m, ...b } = n, h = d !== void 0 || i !== void 0;
13
- return /* @__PURE__ */ e.jsxs("div", { className: t("flex flex-col gap-1 min-h-10 min-w-max items-center", p), children: [
14
- /* @__PURE__ */ e.jsxs("label", { className: t("flex items-center justify-start gap-3"), children: [
15
- /* @__PURE__ */ e.jsxs("div", { className: "relative z-10 min-w-10 h-10 flex items-center justify-center ", children: [
16
- /* @__PURE__ */ e.jsx(
1
+ import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
+ import { cn as t } from "../../lib/cn.js";
3
+ import { memo as g, forwardRef as y, useRef as x, useEffect as N } from "react";
4
+ import C from "../Shared/HelperComponent.js";
5
+ const c = y((s, r) => {
6
+ const e = x(null);
7
+ N(() => {
8
+ r && (typeof r == "function" ? r(e.current) : r.current = e.current);
9
+ }, [r]);
10
+ const u = (k) => {
11
+ e.current && (k.stopPropagation(), e.current.click());
12
+ }, { disabled: l = !1, label: d, required: f = !1, errorComponent: i, helperComponent: n, variant: p = "default", className: b, labelClassName: m, ...h } = s, v = i !== void 0 || n !== void 0;
13
+ return /* @__PURE__ */ o("div", { className: t("flex flex-col gap-1 min-h-10 min-w-max items-center", b), children: [
14
+ /* @__PURE__ */ o("label", { className: t("flex items-center justify-start gap-3"), children: [
15
+ /* @__PURE__ */ o("div", { className: "relative z-10 min-w-10 h-10 flex items-center justify-center ", children: [
16
+ /* @__PURE__ */ a(
17
17
  "input",
18
18
  {
19
19
  hidden: !0,
20
20
  type: "radio",
21
- ref: r,
21
+ ref: e,
22
22
  className: "peer",
23
- disabled: o,
24
- ...b
23
+ disabled: l,
24
+ ...h
25
25
  }
26
26
  ),
27
- /* @__PURE__ */ e.jsx(
27
+ /* @__PURE__ */ a(
28
28
  "div",
29
29
  {
30
30
  role: "radio",
31
- "aria-checked": r.current?.checked,
32
- "aria-disabled": o,
33
- onClick: o ? () => {
34
- } : c,
31
+ "aria-checked": e.current?.checked,
32
+ "aria-disabled": l,
33
+ onClick: l ? () => {
34
+ } : u,
35
35
  className: t(
36
36
  "size-5 rounded-full border-neutral-default-hover hover:border-neutral-default-default border-2 p-[3px]",
37
37
  "transition-all duration-300 cursor-pointer relative ",
@@ -45,7 +45,7 @@ const s = k((n, a) => {
45
45
  "peer-disabled:border-neutral-default-disabled peer-disabled:peer-checked:border-neutral-default-default",
46
46
  "peer-disabled:peer-checked:*:bg-neutral-weak-hover"
47
47
  ),
48
- children: /* @__PURE__ */ e.jsx(
48
+ children: /* @__PURE__ */ a(
49
49
  "div",
50
50
  {
51
51
  className: t(
@@ -56,23 +56,22 @@ const s = k((n, a) => {
56
56
  }
57
57
  )
58
58
  ] }),
59
- l && /* @__PURE__ */ e.jsxs("span", { className: t("prometeo-fonts-label-large w-max min-w-max", m), children: [
60
- l,
61
- u && " *"
59
+ d && /* @__PURE__ */ o("span", { className: t("prometeo-fonts-label-large w-max min-w-max", m), children: [
60
+ d,
61
+ f && " *"
62
62
  ] })
63
63
  ] }),
64
- h && /* @__PURE__ */ e.jsx("div", { className: "min-h-5", children: /* @__PURE__ */ e.jsx(
65
- j,
64
+ v && /* @__PURE__ */ a("div", { className: "min-h-5", children: /* @__PURE__ */ a(
65
+ C,
66
66
  {
67
- variant: f,
68
- children: d || i
67
+ variant: p,
68
+ children: i || n
69
69
  }
70
70
  ) })
71
71
  ] });
72
72
  });
73
- s.displayName = "RadioButton";
74
- const z = x(s);
73
+ c.displayName = "RadioButton";
74
+ const B = g(c);
75
75
  export {
76
- z as RadioButton,
77
- z as default
76
+ B as default
78
77
  };
@@ -1,9 +1,9 @@
1
- import { j as u } from "./jsx-runtime-DKDX3adD.js";
2
- import { c as s } from "./cn-B6yFEsav.js";
3
- import z, { useState as M, useMemo as C, useEffect as L } from "react";
4
- import { motion as E } from "framer-motion";
5
- const X = (T) => {
6
- const [c, _] = M({}), { size: t = "medium", color: R = "default", options: l, value: h, name: x, onChange: j, icon: y, allowExpand: n = !1, disabled: d = !1 } = T, m = Math.max(l.findIndex((e) => e.value === h), 0), w = l.length, N = 9, b = 26, o = {
1
+ import { jsxs as T, jsx as p } from "react/jsx-runtime";
2
+ import { cn as s } from "../../lib/cn.js";
3
+ import M, { useState as L, useMemo as E, useEffect as B } from "react";
4
+ import { motion as _ } from "framer-motion";
5
+ const $ = (S) => {
6
+ const [u, j] = L({}), { size: t = "medium", color: H = "default", options: l, value: h, name: x, onChange: y, icon: N, allowExpand: n = !1, disabled: d = !1 } = S, c = Math.max(l.findIndex((e) => e.value === h), 0), w = l.length, k = 9, b = 26, o = {
7
7
  small: 120,
8
8
  medium: 120,
9
9
  large: 120
@@ -11,11 +11,11 @@ const X = (T) => {
11
11
  small: 94,
12
12
  medium: 94,
13
13
  large: 94
14
- }, k = 16, S = {
14
+ }, I = 16, R = {
15
15
  small: { container: "p-2" },
16
16
  medium: { container: "p-4 h-[48px] rounded-lg" },
17
17
  large: { container: "p-6" }
18
- }, f = {
18
+ }, m = {
19
19
  default: {
20
20
  switch: "bg-primary-medium-default text-neutral-weak-default",
21
21
  container: "border-neutral-default-default",
@@ -46,24 +46,24 @@ const X = (T) => {
46
46
  icon: "text-neutral-strong-disabled",
47
47
  option: "text-neutral-medium-pressed"
48
48
  }
49
- }, I = l.find((e) => e.value === h) ?? l[0], g = I.label.length * N + k * 2 + b, W = () => C(() => Object.values(c).reduce((i, r) => i + r, 0) + b, [c]), v = {
49
+ }, C = l.find((e) => e.value === h) ?? l[0], g = C.label.length * k + I * 2 + b, W = () => E(() => Object.values(u).reduce((i, r) => i + r, 0) + b, [u]), v = {
50
50
  small: n ? W() : (w - 1) * a.small + o.small,
51
51
  medium: n ? W() : (w - 1) * a.medium + o.medium,
52
52
  large: n ? W() : (w - 1) * a.large + o.large
53
53
  };
54
- L(() => {
54
+ B(() => {
55
55
  if (!n) return;
56
56
  let e = {};
57
57
  l.forEach((i, r) => {
58
- e[r] = i.label.length * N + k * 2;
59
- }), _(e);
58
+ e[r] = i.label.length * k + I * 2;
59
+ }), j(e);
60
60
  }, []);
61
- const H = C(() => n ? Object.values(c).reduce((e, i, r) => r < m ? e + i : e, 0) : Math.max(m * a[t] - 2, 0), [m]), D = () => {
61
+ const D = E(() => n ? Object.values(u).reduce((e, i, r) => r < c ? e + i : e, 0) : Math.max(c * a[t] - 2, 0), [c]), A = () => {
62
62
  if (d) return;
63
- const e = m === l.length - 1 ? l[0] : l[m + 1];
64
- j?.(x, e.value);
65
- }, p = d ? "disabled" : R;
66
- return /* @__PURE__ */ u.jsxs(
63
+ const e = c === l.length - 1 ? l[0] : l[c + 1];
64
+ y?.(x, e.value);
65
+ }, f = d ? "disabled" : H;
66
+ return /* @__PURE__ */ T(
67
67
  "button",
68
68
  {
69
69
  name: x,
@@ -74,18 +74,18 @@ const X = (T) => {
74
74
  maxWidth: v[t]
75
75
  },
76
76
  className: s(
77
- S[t].container,
78
- f[p].container,
77
+ R[t].container,
78
+ m[f].container,
79
79
  "border",
80
80
  !d && "cursor-pointer",
81
81
  "relative"
82
82
  ),
83
83
  children: [
84
- /* @__PURE__ */ u.jsxs(
85
- E.div,
84
+ /* @__PURE__ */ T(
85
+ _.div,
86
86
  {
87
87
  animate: {
88
- left: `${H}px`,
88
+ left: `${D}px`,
89
89
  width: n ? g : o[t],
90
90
  minWidth: n ? g : o[t],
91
91
  maxWidth: n ? g : o[t]
@@ -98,31 +98,31 @@ const X = (T) => {
98
98
  className: s(
99
99
  "absolute top-0 left-0 h-full rounded-[6px] z-30",
100
100
  "flex items-center justify-center gap-[2px] p-4",
101
- f[p].switch
101
+ m[f].switch
102
102
  ),
103
103
  onClick: () => {
104
- !d && D();
104
+ !d && A();
105
105
  },
106
106
  children: [
107
- y && z.cloneElement(y, { className: s(
107
+ N && M.cloneElement(N, { className: s(
108
108
  "w-6 h-6 text-neutral-weak-default min-w-6 min-h-6",
109
- f[p].icon
109
+ m[f].icon
110
110
  ) }),
111
- /* @__PURE__ */ u.jsx(
111
+ /* @__PURE__ */ p(
112
112
  "p",
113
113
  {
114
114
  className: s(
115
115
  "prometeo-fonts-label-large ",
116
116
  " overflow-hidden overflow-ellipsis text-nowrap select-none ",
117
- f[p].switch
117
+ m[f].switch
118
118
  ),
119
- children: I.label
119
+ children: C.label
120
120
  }
121
121
  )
122
122
  ]
123
123
  }
124
124
  ),
125
- /* @__PURE__ */ u.jsx(
125
+ /* @__PURE__ */ p(
126
126
  "div",
127
127
  {
128
128
  className: s(
@@ -130,12 +130,12 @@ const X = (T) => {
130
130
  "flex justify-center"
131
131
  ),
132
132
  children: l?.map((e, i) => {
133
- const r = e.value === (h || l[0].value), A = n ? c[i] + b : o[t], P = n ? c[i] : a[t], O = r ? A : P;
134
- return /* @__PURE__ */ u.jsx(
135
- E.span,
133
+ const r = e.value === (h || l[0].value), P = n ? u[i] + b : o[t], z = n ? u[i] : a[t], O = r ? P : z;
134
+ return /* @__PURE__ */ p(
135
+ _.span,
136
136
  {
137
137
  onClick: () => {
138
- !d && j?.(x, e.value);
138
+ !d && y?.(x, e.value);
139
139
  },
140
140
  animate: {
141
141
  width: O,
@@ -154,7 +154,7 @@ const X = (T) => {
154
154
  !d && "cursor-pointer"
155
155
  ),
156
156
  "aria-label": e.label,
157
- children: /* @__PURE__ */ u.jsx(
157
+ children: /* @__PURE__ */ p(
158
158
  "p",
159
159
  {
160
160
  style: {
@@ -164,7 +164,7 @@ const X = (T) => {
164
164
  },
165
165
  className: s(
166
166
  "px-3 place-content-center overflow-hidden text-ellipsis text-wrap prometeo-fonts-label-large h-full select-none",
167
- f[p].option
167
+ m[f].option
168
168
  ),
169
169
  children: e.label
170
170
  }
@@ -180,6 +180,5 @@ const X = (T) => {
180
180
  );
181
181
  };
182
182
  export {
183
- X as SegmentedButton,
184
- X as default
183
+ $ as default
185
184
  };