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
package/dist/index.js ADDED
@@ -0,0 +1,127 @@
1
+ import { default as t } from "./components/Avatar/Avatar.js";
2
+ import { default as f } from "./components/Button/Button.js";
3
+ import { CardProfile as l } from "./components/CardProfile/CardProfile.js";
4
+ import { default as s } from "./components/CheckBox/CheckBox.js";
5
+ import { default as u } from "./components/Dialog/Dialog.js";
6
+ import { default as i } from "./components/Header/Header.js";
7
+ import { default as b } from "./components/Input/Input.js";
8
+ import { default as c } from "./components/InputMultiple/InputMultiple.js";
9
+ import { default as g } from "./components/Logo/Logo.js";
10
+ import { Menu as v } from "./components/Menu/MenuComposable.js";
11
+ import { default as D } from "./components/Pagination/Pagination.js";
12
+ import { ProfilePictureUpload as k } from "./components/ProfilePictureUpload/ProfilePictureUpload.js";
13
+ import { default as I } from "./components/ProgressBar/ProgressBar.js";
14
+ import { default as A } from "./components/Select/Select.js";
15
+ import { default as M } from "./components/Sidebar/components/changue-account.js";
16
+ import { default as h } from "./components/Spinner/Spinner.js";
17
+ import { default as H } from "./components/Steps/Steps.js";
18
+ import { default as G } from "./components/SwipeContainer/SwipeContainer.js";
19
+ import { default as z } from "./components/Switch/Switch.js";
20
+ import { default as Z } from "./components/DatePicker/DatePicker.js";
21
+ import { Table as q, TableBody as E, TableCaption as J, TableCell as K, TableFooter as Q, TableHead as V, TableHeader as W, TableRow as X } from "./components/Table/Table.js";
22
+ import { default as _ } from "./components/TabLinks/TabLinks.js";
23
+ import { default as ee } from "./components/TextArea/TextArea.js";
24
+ import { default as re } from "./components/Tooltip/Tootip.js";
25
+ import { default as ae } from "./components/Skeleton/Skeleton.js";
26
+ import { default as pe } from "./components/SegmentedButton/SegmentedButton.js";
27
+ import { default as me } from "./components/Layout/LayoutGeneric.js";
28
+ import { default as xe } from "./components/Image/ImageGallery.js";
29
+ import { default as de } from "./components/Image/Image.js";
30
+ import { default as ne, toastpyrion as be } from "./components/Toaster/Toaster.js";
31
+ import { default as ce } from "./components/Toaster/ToastProvider.js";
32
+ import { default as ge } from "./components/SelectSearch/SelectSearch.js";
33
+ import { default as ve } from "./components/FAB/FAButton.js";
34
+ import { default as De } from "./components/RadioButton/RadioButton.js";
35
+ import { SecondaryBar as ke } from "./components/Sidebar/SecondaryBar/SecondaryBar.js";
36
+ import { Badge as Ie } from "./components/Sidebar/components/badge.js";
37
+ import { NavbarCollapseButton as Ae } from "./components/Sidebar/components/collapse-button.js";
38
+ import { CompanyLogo as Me } from "./components/Sidebar/components/company-logo.js";
39
+ import { NavbarLinks as he } from "./components/Sidebar/components/nav-links.js";
40
+ import { default as He } from "./components/OtpInput/OtpInput.js";
41
+ import { DropZone as Ge } from "./components/DropZone/DropZone.js";
42
+ import * as e from "./Icons/Icons.js";
43
+ import { default as ze } from "./components/Drawer/DrawerDesktop.js";
44
+ import { default as Ze } from "./components/Drawer/DrawerMobile.js";
45
+ import { useDrawerMobile as qe } from "./components/Drawer/useDrawerMobile.js";
46
+ import { useDrawerDesktop as Je } from "./components/Drawer/useDrawerDesktop.js";
47
+ import { SidebarProvider as Qe } from "./components/Sidebar/hooks/SidebarProvider.js";
48
+ import { useSidebar as We } from "./components/Sidebar/hooks/useSidebarHook.js";
49
+ import { useClickOutside as Ye } from "./hooks/useClickOutside.js";
50
+ import { useIsMobile as $e } from "./hooks/useDevice.js";
51
+ import { useDialogControl as oo } from "./components/Dialog/useDialogControl.js";
52
+ import { useFileDropzone as to } from "./components/DropZone/useFileDropzone.js";
53
+ import { SidebarProvider as fo, useSidebarContext as po } from "./components/Sidebar/context/SidebarContext.js";
54
+ import { Sidebar as mo } from "./components/Sidebar/SidebarComposable.js";
55
+ import { NavigationLink as xo } from "./components/Sidebar/components/NavigationLink.js";
56
+ import { NavBarActions as io } from "./components/Sidebar/components/nav-actions.js";
57
+ import { useActionsNavbar as bo } from "./components/Sidebar/hooks/useNavBarActions.js";
58
+ import { useNavbarCollapse as co } from "./components/Sidebar/hooks/useNavBarCollapse.js";
59
+ export {
60
+ t as Avatar,
61
+ Ie as Badge,
62
+ f as Button,
63
+ l as CardProfile,
64
+ M as ChangueAccount,
65
+ s as CheckBox,
66
+ Me as CompanyLogo,
67
+ Z as DatePicker,
68
+ u as DialogModal,
69
+ ze as DrawerDesktop,
70
+ Ze as DrawerMobile,
71
+ Ge as DropZone,
72
+ ve as FAButton,
73
+ i as Header,
74
+ e as Icons,
75
+ de as Image,
76
+ xe as ImageGallery,
77
+ b as Input,
78
+ c as InputMultiple,
79
+ me as LayoutGeneric,
80
+ g as Logo,
81
+ v as Menu,
82
+ io as NavBarActions,
83
+ Ae as NavbarCollapseButton,
84
+ he as NavbarLinks,
85
+ xo as NavigationLink,
86
+ He as OtpInput,
87
+ D as Pagination,
88
+ k as ProfilePictureUpload,
89
+ I as ProgressBar,
90
+ De as RadioButton,
91
+ ke as SecondaryBar,
92
+ pe as SegmentedButton,
93
+ A as Select,
94
+ ge as SelectSearch,
95
+ mo as Sidebar,
96
+ Qe as SidebarProvider,
97
+ fo as SidebarRefProvider,
98
+ ae as Skeleton,
99
+ h as Spinner,
100
+ H as Steps,
101
+ G as SwipeContainer,
102
+ z as Switch,
103
+ _ as TabLinks,
104
+ q as Table,
105
+ E as TableBody,
106
+ J as TableCaption,
107
+ K as TableCell,
108
+ Q as TableFooter,
109
+ V as TableHead,
110
+ W as TableHeader,
111
+ X as TableRow,
112
+ ee as TextArea,
113
+ ne as Toast,
114
+ ce as ToastProvider,
115
+ re as Tooltip,
116
+ be as toastpyrion,
117
+ bo as useActionsNavbar,
118
+ Ye as useClickOutside,
119
+ oo as useDialogControl,
120
+ Je as useDrawerDesktop,
121
+ qe as useDrawerMobile,
122
+ to as useFileDropzone,
123
+ $e as useIsMobile,
124
+ co as useNavbarCollapse,
125
+ We as useSidebar,
126
+ po as useSidebarContext
127
+ };
@@ -1,8 +1,8 @@
1
1
  import { clsx as o } from "clsx";
2
2
  import { twMerge as t } from "tailwind-merge";
3
- function m(...r) {
3
+ function n(...r) {
4
4
  return t(o(r));
5
5
  }
6
6
  export {
7
- m as c
7
+ n as cn
8
8
  };
@@ -0,0 +1,54 @@
1
+ function A(c, f) {
2
+ if (typeof f == "function")
3
+ return f(c);
4
+ const g = f?.split(".");
5
+ let e = c;
6
+ for (const n of g)
7
+ if (e && typeof e == "object" && n in e)
8
+ e = e[n];
9
+ else
10
+ return;
11
+ return e;
12
+ }
13
+ const E = (c, f) => {
14
+ if (!f) return !0;
15
+ const g = 0.1, e = String(c).toLowerCase(), n = String(f).toLowerCase().trim();
16
+ if (e.includes(n)) return !0;
17
+ const h = n.split(/\s+/).filter(Boolean), p = h.filter((t) => /^\d+$/.test(t));
18
+ if (h.length > 1 || p.length > 0) {
19
+ for (const t of p)
20
+ if (!new RegExp(`(^|\\D)${t}(\\D|$)`).test(e)) return !1;
21
+ for (const t of h)
22
+ if (!/^\d+$/.test(t) && !e.includes(t))
23
+ return !1;
24
+ return !0;
25
+ }
26
+ if (n.length > e.length) return !1;
27
+ const R = Math.floor(n.length * g);
28
+ if (R <= 0) return !1;
29
+ const y = (t, l) => {
30
+ const a = t.length, i = l.length;
31
+ if (a === 0) return i;
32
+ if (i === 0) return a;
33
+ const o = new Array(i + 1);
34
+ for (let r = 0; r <= i; r++) o[r] = r;
35
+ for (let r = 1; r <= a; r++) {
36
+ let w = r - 1;
37
+ o[0] = r;
38
+ for (let s = 1; s <= i; s++) {
39
+ const C = o[s], x = t.charCodeAt(r - 1) === l.charCodeAt(s - 1) ? 0 : 1, d = o[s] + 1, m = o[s - 1] + 1, u = w + x;
40
+ o[s] = d < m ? d < u ? d : u : m < u ? m : u, w = C;
41
+ }
42
+ }
43
+ return o[i];
44
+ };
45
+ for (let t = 0; t <= e.length - n.length; t++) {
46
+ const l = e.slice(t, t + n.length);
47
+ if (y(l, n) <= R) return !0;
48
+ }
49
+ return !1;
50
+ };
51
+ export {
52
+ A as getAccessorValue,
53
+ E as hasCoincidences
54
+ };
@@ -0,0 +1,61 @@
1
+ import { tzName as r } from "../tzName/index.js";
2
+ import { TZDateMini as s } from "./mini.js";
3
+ class o extends s {
4
+ //#region static
5
+ static tz(t, ...e) {
6
+ return e.length ? new o(...e, t) : new o(Date.now(), t);
7
+ }
8
+ //#endregion
9
+ //#region representation
10
+ toISOString() {
11
+ const [t, e, n] = this.tzComponents(), i = `${t}${e}:${n}`;
12
+ return this.internal.toISOString().slice(0, -1) + i;
13
+ }
14
+ toString() {
15
+ return `${this.toDateString()} ${this.toTimeString()}`;
16
+ }
17
+ toDateString() {
18
+ const [t, e, n, i] = this.internal.toUTCString().split(" ");
19
+ return `${t?.slice(0, -1)} ${n} ${e} ${i}`;
20
+ }
21
+ toTimeString() {
22
+ const t = this.internal.toUTCString().split(" ")[4], [e, n, i] = this.tzComponents();
23
+ return `${t} GMT${e}${n}${i} (${r(this.timeZone, this)})`;
24
+ }
25
+ toLocaleString(t, e) {
26
+ return Date.prototype.toLocaleString.call(this, t, {
27
+ ...e,
28
+ timeZone: e?.timeZone || this.timeZone
29
+ });
30
+ }
31
+ toLocaleDateString(t, e) {
32
+ return Date.prototype.toLocaleDateString.call(this, t, {
33
+ ...e,
34
+ timeZone: e?.timeZone || this.timeZone
35
+ });
36
+ }
37
+ toLocaleTimeString(t, e) {
38
+ return Date.prototype.toLocaleTimeString.call(this, t, {
39
+ ...e,
40
+ timeZone: e?.timeZone || this.timeZone
41
+ });
42
+ }
43
+ //#endregion
44
+ //#region private
45
+ tzComponents() {
46
+ const t = this.getTimezoneOffset(), e = t > 0 ? "-" : "+", n = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), i = String(Math.abs(t) % 60).padStart(2, "0");
47
+ return [e, n, i];
48
+ }
49
+ //#endregion
50
+ withTimeZone(t) {
51
+ return new o(+this, t);
52
+ }
53
+ //#region date-fns integration
54
+ [Symbol.for("constructDateFrom")](t) {
55
+ return new o(+new Date(t), this.timeZone);
56
+ }
57
+ //#endregion
58
+ }
59
+ export {
60
+ o as TZDate
61
+ };
@@ -0,0 +1,69 @@
1
+ import { tzOffset as s } from "../tzOffset/index.js";
2
+ class n extends Date {
3
+ //#region static
4
+ constructor(...e) {
5
+ super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(s(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), U(this), a(this)) : this.setTime(Date.now());
6
+ }
7
+ static tz(e, ...o) {
8
+ return o.length ? new n(...o, e) : new n(Date.now(), e);
9
+ }
10
+ //#endregion
11
+ //#region time zone
12
+ withTimeZone(e) {
13
+ return new n(+this, e);
14
+ }
15
+ getTimezoneOffset() {
16
+ const e = -s(this.timeZone, this);
17
+ return e > 0 ? Math.floor(e) : Math.ceil(e);
18
+ }
19
+ //#endregion
20
+ //#region time
21
+ setTime(e) {
22
+ return Date.prototype.setTime.apply(this, arguments), a(this), +this;
23
+ }
24
+ //#endregion
25
+ //#region date-fns integration
26
+ [Symbol.for("constructDateFrom")](e) {
27
+ return new n(+new Date(e), this.timeZone);
28
+ }
29
+ //#endregion
30
+ }
31
+ const D = /^(get|set)(?!UTC)/;
32
+ Object.getOwnPropertyNames(Date.prototype).forEach((t) => {
33
+ if (!D.test(t)) return;
34
+ const e = t.replace(D, "$1UTC");
35
+ n.prototype[e] && (t.startsWith("get") ? n.prototype[t] = function() {
36
+ return this.internal[e]();
37
+ } : (n.prototype[t] = function() {
38
+ return Date.prototype[e].apply(this.internal, arguments), H(this), +this;
39
+ }, n.prototype[e] = function() {
40
+ return Date.prototype[e].apply(this, arguments), a(this), +this;
41
+ }));
42
+ });
43
+ function a(t) {
44
+ t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - Math.round(-s(t.timeZone, t) * 60));
45
+ }
46
+ function H(t) {
47
+ Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), U(t);
48
+ }
49
+ function U(t) {
50
+ const e = s(t.timeZone, t), o = e > 0 ? Math.floor(e) : Math.ceil(e), i = /* @__PURE__ */ new Date(+t);
51
+ i.setUTCHours(i.getUTCHours() - 1);
52
+ const r = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), g = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset(), m = r - g, M = Date.prototype.getHours.apply(t) !== t.internal.getUTCHours();
53
+ m && M && t.internal.setUTCMinutes(t.internal.getUTCMinutes() + m);
54
+ const f = r - o;
55
+ f && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + f);
56
+ const l = /* @__PURE__ */ new Date(+t);
57
+ l.setUTCSeconds(0);
58
+ const y = r > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, c = Math.round(-(s(t.timeZone, t) * 60)) % 60;
59
+ (c || y) && (t.internal.setUTCSeconds(t.internal.getUTCSeconds() + c), Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + c + y));
60
+ const p = s(t.timeZone, t), u = p > 0 ? Math.floor(p) : Math.ceil(p), w = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - u, O = u !== o, C = w - f;
61
+ if (O && C) {
62
+ Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + C);
63
+ const h = s(t.timeZone, t), S = h > 0 ? Math.floor(h) : Math.ceil(h), T = u - S;
64
+ T && (t.internal.setUTCMinutes(t.internal.getUTCMinutes() + T), Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + T));
65
+ }
66
+ }
67
+ export {
68
+ n as TZDateMini
69
+ };
@@ -0,0 +1,11 @@
1
+ function o(e, n, t = "long") {
2
+ return new Intl.DateTimeFormat("en-US", {
3
+ // Enforces engine to render the time. Without the option JavaScriptCore omits it.
4
+ hour: "numeric",
5
+ timeZone: e,
6
+ timeZoneName: t
7
+ }).format(n).split(/\s/g).slice(2).join(" ");
8
+ }
9
+ export {
10
+ o as tzName
11
+ };
@@ -0,0 +1,22 @@
1
+ const e = {}, s = {};
2
+ function u(t, r) {
3
+ try {
4
+ const n = (e[t] ||= new Intl.DateTimeFormat("en-US", {
5
+ timeZone: t,
6
+ timeZoneName: "longOffset"
7
+ }).format)(r).split("GMT")[1];
8
+ return n in s ? s[n] : o(n, n.split(":"));
9
+ } catch {
10
+ if (t in s) return s[t];
11
+ const f = t?.match(a);
12
+ return f ? o(t, f.slice(1)) : NaN;
13
+ }
14
+ }
15
+ const a = /([+-]\d\d):?(\d\d)?/;
16
+ function o(t, r) {
17
+ const f = +(r[0] || 0), n = +(r[1] || 0), c = +(r[2] || 0) / 60;
18
+ return s[t] = f * 60 + n > 0 ? f * 60 + n + c : f * 60 - n - c;
19
+ }
20
+ export {
21
+ u as tzOffset
22
+ };
@@ -1,17 +1,17 @@
1
1
  import { clsx as O } from "clsx";
2
2
  const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
3
- var u;
3
+ var s;
4
4
  if (l?.variants == null) return y(e, n?.class, n?.className);
5
5
  const { variants: r, defaultVariants: d } = l, V = Object.keys(r).map((t) => {
6
- const a = n?.[t], s = d?.[t];
6
+ const a = n?.[t], u = d?.[t];
7
7
  if (a === null) return null;
8
- const i = m(a) || m(s);
8
+ const i = m(a) || m(u);
9
9
  return r[t][i];
10
10
  }), v = n && Object.entries(n).reduce((t, a) => {
11
- let [s, i] = a;
12
- return i === void 0 || (t[s] = i), t;
13
- }, {}), N = l == null || (u = l.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((t, a) => {
14
- let { class: s, className: i, ...f } = a;
11
+ let [u, i] = a;
12
+ return i === void 0 || (t[u] = i), t;
13
+ }, {}), N = l == null || (s = l.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((t, a) => {
14
+ let { class: u, className: i, ...f } = a;
15
15
  return Object.entries(f).every((C) => {
16
16
  let [c, o] = C;
17
17
  return Array.isArray(o) ? o.includes({
@@ -23,12 +23,13 @@ const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j =
23
23
  }[c] === o;
24
24
  }) ? [
25
25
  ...t,
26
- s,
26
+ u,
27
27
  i
28
28
  ] : t;
29
29
  }, []);
30
30
  return y(e, V, N, n?.class, n?.className);
31
31
  };
32
32
  export {
33
- j as c
33
+ j as cva,
34
+ y as cx
34
35
  };
@@ -0,0 +1,7 @@
1
+ function r(t, n) {
2
+ const o = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(n, "0");
3
+ return o + a;
4
+ }
5
+ export {
6
+ r as addLeadingZeros
7
+ };
@@ -0,0 +1,7 @@
1
+ let t = {};
2
+ function e() {
3
+ return t;
4
+ }
5
+ export {
6
+ e as getDefaultOptions
7
+ };