prometeo-design-system 2.8.4 → 2.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/dist/Avatar.js +4 -0
  2. package/dist/Button.js +4 -0
  3. package/dist/CardProfile.d.ts +4 -0
  4. package/dist/CardProfile.js +5 -0
  5. package/dist/CheckBox.js +4 -0
  6. package/dist/DatePicker.d.ts +2 -0
  7. package/dist/DatePicker.js +5 -0
  8. package/dist/DialogModal.js +6 -0
  9. package/dist/DrawerDesktop.js +6 -0
  10. package/dist/DrawerMobile.js +6 -0
  11. package/dist/DropZone.d.ts +4 -0
  12. package/dist/DropZone.js +5 -0
  13. package/dist/FAButton.js +4 -0
  14. package/dist/Header.js +4 -0
  15. package/dist/Icons/Icons.d.ts +1 -1
  16. package/dist/Icons/Icons.js +1055 -0
  17. package/dist/Icons.d.ts +4 -0
  18. package/dist/Icons.js +5 -0
  19. package/dist/Image.js +4 -0
  20. package/dist/ImageGallery.js +6 -0
  21. package/dist/Input.js +4 -0
  22. package/dist/InputMultiple.d.ts +4 -0
  23. package/dist/InputMultiple.js +5 -0
  24. package/dist/LayoutGeneric.js +4 -0
  25. package/dist/Logo.js +4 -0
  26. package/dist/Menu.d.ts +4 -0
  27. package/dist/Menu.js +5 -0
  28. package/dist/OtpInput.js +4 -0
  29. package/dist/Pagination.js +4 -0
  30. package/dist/ProfilePictureUpload.d.ts +4 -0
  31. package/dist/ProfilePictureUpload.js +5 -0
  32. package/dist/ProgressBar.js +4 -0
  33. package/dist/RadioButton.d.ts +4 -0
  34. package/dist/RadioButton.js +5 -0
  35. package/dist/SegmentedButton.d.ts +4 -0
  36. package/dist/SegmentedButton.js +5 -0
  37. package/dist/Select.js +4 -0
  38. package/dist/SelectSearch.js +4 -0
  39. package/dist/Skeleton.d.ts +4 -0
  40. package/dist/Skeleton.js +5 -0
  41. package/dist/Spinner.js +4 -0
  42. package/dist/Steps.d.ts +4 -0
  43. package/dist/Steps.js +5 -0
  44. package/dist/SwipeContainer.js +4 -0
  45. package/dist/Switch.d.ts +4 -0
  46. package/dist/Switch.js +5 -0
  47. package/dist/TabLinks.js +4 -0
  48. package/dist/Table.js +11 -0
  49. package/dist/TextArea.js +4 -0
  50. package/dist/Toast.js +5 -0
  51. package/dist/ToastProvider.js +4 -0
  52. package/dist/Tooltip.js +4 -0
  53. package/dist/components/Autocomplete/useAutocomplete.js +143 -0
  54. package/dist/{Avatar.es.js → components/Avatar/Avatar.js} +28 -33
  55. package/dist/{Button.es.js → components/Button/Button.js} +55 -55
  56. package/dist/{CardProfile-BB-IP1MR.js → components/CardProfile/CardProfile.js} +68 -94
  57. package/dist/{CheckBox.es.js → components/CheckBox/CheckBox.js} +25 -25
  58. package/dist/components/DatePicker/DatePicker.js +396 -0
  59. package/dist/components/Dialog/Dialog.js +60 -0
  60. package/dist/components/Dialog/useDialogControl.js +18 -0
  61. package/dist/components/Drawer/DrawerDesktop.js +179 -0
  62. package/dist/components/Drawer/DrawerMobile.js +219 -0
  63. package/dist/components/Drawer/useDrawerDesktop.js +18 -0
  64. package/dist/components/Drawer/useDrawerMobile.js +27 -0
  65. package/dist/components/DropZone/DropZone.js +86 -0
  66. package/dist/components/DropZone/useFileDropzone.js +24 -0
  67. package/dist/{FAButton.es.js → components/FAB/FAButton.js} +5 -5
  68. package/dist/components/Header/Header.js +32 -0
  69. package/dist/components/Image/GalleryPreview.js +40 -0
  70. package/dist/{Image.es.js → components/Image/Image.js} +32 -32
  71. package/dist/components/Image/ImageGallery.js +68 -0
  72. package/dist/components/Image/LightBox.js +223 -0
  73. package/dist/{ImageGallery.es.js → components/Image/useImageGallery.js} +0 -2
  74. package/dist/components/Input/Input.js +219 -0
  75. package/dist/{InputMultiple.es.js → components/InputMultiple/InputMultiple.js} +91 -91
  76. package/dist/components/Layout/LayoutGeneric.js +13 -0
  77. package/dist/components/Logo/Logo.js +9 -0
  78. package/dist/{Menu.es.js → components/Menu/MenuComposable.js} +11 -11
  79. package/dist/components/OtpInput/OtpInput.js +112 -0
  80. package/dist/{Pagination.es.js → components/Pagination/Pagination.js} +32 -32
  81. package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +1 -1
  82. package/dist/{ProfilePictureUpload.es.js → components/ProfilePictureUpload/ProfilePictureUpload.js} +73 -98
  83. package/dist/components/ProgressBar/ProgressBar.js +70 -0
  84. package/dist/{RadioButton.es.js → components/RadioButton/RadioButton.js} +35 -35
  85. package/dist/{SegmentedButton.es.js → components/SegmentedButton/SegmentedButton.js} +37 -37
  86. package/dist/components/Select/Select.js +1005 -0
  87. package/dist/components/SelectSearch/SelectSearch.js +101 -0
  88. package/dist/components/Shared/Chip.js +55 -0
  89. package/dist/components/Shared/HelperComponent.js +24 -0
  90. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.js +62 -0
  91. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.js +59 -0
  92. package/dist/components/Sidebar/SidebarComposable.js +84 -0
  93. package/dist/components/Sidebar/components/NavigationLink.js +34 -0
  94. package/dist/components/Sidebar/components/badge.js +33 -0
  95. package/dist/components/Sidebar/components/changue-account.js +31 -0
  96. package/dist/components/Sidebar/components/collapse-button.js +18 -0
  97. package/dist/components/Sidebar/components/company-logo.js +12 -0
  98. package/dist/components/Sidebar/components/nav-actions.js +98 -0
  99. package/dist/components/Sidebar/components/nav-links.js +100 -0
  100. package/dist/components/Sidebar/context/SidebarContext.js +19 -0
  101. package/dist/components/Sidebar/hooks/SidebarProvider.js +33 -0
  102. package/dist/components/Sidebar/hooks/useNavBarActions.js +9 -0
  103. package/dist/components/Sidebar/hooks/useNavBarCollapse.js +11 -0
  104. package/dist/components/Sidebar/hooks/useSidebarHook.js +13 -0
  105. package/dist/components/Sidebar/ui/useNavbarAnimation.js +326 -0
  106. package/dist/{Skeleton.es.js → components/Skeleton/Skeleton.js} +16 -17
  107. package/dist/components/Spinner/Spinner.js +52 -0
  108. package/dist/{Steps.es.js → components/Steps/Steps.js} +61 -61
  109. package/dist/{SwipeContainer.es.js → components/SwipeContainer/SwipeContainer.js} +68 -68
  110. package/dist/{Switch.es.js → components/Switch/Switch.js} +17 -17
  111. package/dist/{TabLinks.es.js → components/TabLinks/TabLinks.js} +11 -11
  112. package/dist/components/TabSwitch/TabSwitch.js +57 -0
  113. package/dist/{Table.es.js → components/Table/Table.js} +38 -41
  114. package/dist/{TextArea.es.js → components/TextArea/TextArea.js} +24 -26
  115. package/dist/components/Toaster/ToastProvider.js +6 -0
  116. package/dist/{Toast.es.js → components/Toaster/Toaster.js} +42 -42
  117. package/dist/components/Tooltip/Tootip.js +62 -0
  118. package/dist/exports/CardProfile.d.ts +1 -0
  119. package/dist/exports/DatePicker.d.ts +2 -0
  120. package/dist/exports/DropZone.d.ts +2 -0
  121. package/dist/exports/Icons.d.ts +2 -1
  122. package/dist/exports/InputMultiple.d.ts +2 -0
  123. package/dist/exports/Menu.d.ts +1 -0
  124. package/dist/exports/ProfilePictureUpload.d.ts +1 -0
  125. package/dist/exports/RadioButton.d.ts +2 -0
  126. package/dist/exports/SegmentedButton.d.ts +2 -0
  127. package/dist/exports/Skeleton.d.ts +2 -0
  128. package/dist/exports/Steps.d.ts +1 -0
  129. package/dist/exports/Switch.d.ts +2 -0
  130. package/dist/hooks/useClickOutside.js +24 -0
  131. package/dist/{useDragScroll-CHN9OMwn.js → hooks/useDragScroll.js} +1 -1
  132. package/dist/hooks/useLabelBackground.js +25 -0
  133. package/dist/index.d.ts +0 -4
  134. package/dist/index.js +119 -0
  135. package/dist/{cn-B6yFEsav.js → lib/cn.js} +2 -2
  136. package/dist/lib/utils.js +54 -0
  137. package/dist/node_modules/@date-fns/tz/date/index.js +61 -0
  138. package/dist/node_modules/@date-fns/tz/date/mini.js +69 -0
  139. package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
  140. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +22 -0
  141. package/dist/{index-BOQuZ0gG.js → node_modules/class-variance-authority/dist/index.js} +10 -9
  142. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  143. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  144. package/dist/node_modules/date-fns/_lib/format/formatters.js +583 -0
  145. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  146. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  147. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  148. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  149. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
  150. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  151. package/dist/node_modules/date-fns/addDays.js +10 -0
  152. package/dist/node_modules/date-fns/addMonths.js +20 -0
  153. package/dist/node_modules/date-fns/addWeeks.js +8 -0
  154. package/dist/node_modules/date-fns/addYears.js +8 -0
  155. package/dist/node_modules/date-fns/constants.js +6 -0
  156. package/dist/node_modules/date-fns/constructFrom.js +8 -0
  157. package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
  158. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +13 -0
  159. package/dist/node_modules/date-fns/eachMonthOfInterval.js +17 -0
  160. package/dist/node_modules/date-fns/eachYearOfInterval.js +17 -0
  161. package/dist/node_modules/date-fns/endOfISOWeek.js +8 -0
  162. package/dist/node_modules/date-fns/endOfMonth.js +9 -0
  163. package/dist/node_modules/date-fns/endOfWeek.js +10 -0
  164. package/dist/node_modules/date-fns/endOfYear.js +9 -0
  165. package/dist/node_modules/date-fns/format.js +58 -0
  166. package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
  167. package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
  168. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  169. package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
  170. package/dist/node_modules/date-fns/getMonth.js +8 -0
  171. package/dist/node_modules/date-fns/getWeek.js +12 -0
  172. package/dist/node_modules/date-fns/getWeekYear.js +16 -0
  173. package/dist/node_modules/date-fns/getYear.js +8 -0
  174. package/dist/node_modules/date-fns/isAfter.js +8 -0
  175. package/dist/node_modules/date-fns/isBefore.js +8 -0
  176. package/dist/node_modules/date-fns/isDate.js +7 -0
  177. package/dist/node_modules/date-fns/isSameDay.js +14 -0
  178. package/dist/node_modules/date-fns/isSameMonth.js +13 -0
  179. package/dist/node_modules/date-fns/isSameYear.js +13 -0
  180. package/dist/node_modules/date-fns/isValid.js +9 -0
  181. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  182. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  183. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  184. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  185. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  186. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  187. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  188. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  189. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  190. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  191. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +70 -0
  192. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +33 -0
  193. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -0
  194. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +143 -0
  195. package/dist/node_modules/date-fns/locale/es/_lib/match.js +116 -0
  196. package/dist/node_modules/date-fns/locale/es.js +21 -0
  197. package/dist/node_modules/date-fns/max.js +14 -0
  198. package/dist/node_modules/date-fns/min.js +14 -0
  199. package/dist/node_modules/date-fns/setMonth.js +13 -0
  200. package/dist/node_modules/date-fns/setYear.js +10 -0
  201. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  202. package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
  203. package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  204. package/dist/node_modules/date-fns/startOfMonth.js +9 -0
  205. package/dist/node_modules/date-fns/startOfWeek.js +10 -0
  206. package/dist/node_modules/date-fns/startOfWeekYear.js +12 -0
  207. package/dist/node_modules/date-fns/startOfYear.js +9 -0
  208. package/dist/node_modules/date-fns/toDate.js +8 -0
  209. package/dist/node_modules/input-otp/dist/index.js +194 -0
  210. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +227 -0
  211. package/dist/node_modules/react-day-picker/dist/esm/UI.js +22 -0
  212. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +19 -0
  213. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +8 -0
  214. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +8 -0
  215. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +147 -0
  216. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
  217. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
  218. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
  219. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
  220. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +10 -0
  221. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +19 -0
  222. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
  223. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
  224. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
  225. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
  226. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
  227. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
  228. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
  229. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +27 -0
  230. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
  231. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
  232. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
  233. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
  234. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
  235. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
  236. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
  237. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
  238. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
  239. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
  240. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
  241. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
  242. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
  243. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +9 -0
  244. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
  245. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
  246. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +7 -0
  247. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
  248. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
  249. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
  250. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
  251. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +19 -0
  252. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +42 -0
  253. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +9 -0
  254. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +7 -0
  255. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +7 -0
  256. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
  257. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +16 -0
  258. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +21 -0
  259. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +10 -0
  260. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +16 -0
  261. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +13 -0
  262. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +15 -0
  263. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +10 -0
  264. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +13 -0
  265. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +13 -0
  266. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +24 -0
  267. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +13 -0
  268. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +12 -0
  269. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +12 -0
  270. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +12 -0
  271. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +13 -0
  272. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +11 -0
  273. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +7 -0
  274. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +16 -0
  275. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +7 -0
  276. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +8 -0
  277. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
  278. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +10 -0
  279. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +9 -0
  280. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +8 -0
  281. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
  282. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
  283. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +6 -0
  284. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
  285. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
  286. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
  287. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
  288. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
  289. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +21 -0
  290. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +18 -0
  291. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +15 -0
  292. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +56 -0
  293. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +44 -0
  294. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +12 -0
  295. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +23 -0
  296. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +19 -0
  297. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +32 -0
  298. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +26 -0
  299. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +15 -0
  300. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +28 -0
  301. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +9 -0
  302. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
  303. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
  304. package/dist/prometeo-design-system.css +1 -1
  305. package/dist/styles.d.ts +0 -0
  306. package/dist/useDevice.js +4 -0
  307. package/package.json +282 -274
  308. package/src/styles/app.css +1314 -0
  309. package/src/styles/base.css +1323 -0
  310. package/src/styles/fonts.css +46 -0
  311. package/src/styles/palette.css +83 -0
  312. package/src/styles/utilities.css +1126 -0
  313. package/dist/CardProfile.es.js +0 -4
  314. package/dist/DatePicker.es.js +0 -3500
  315. package/dist/DialogModal.es.js +0 -75
  316. package/dist/DrawerDesktop.es.js +0 -192
  317. package/dist/DrawerMobile.es.js +0 -242
  318. package/dist/DropZone.es.js +0 -86
  319. package/dist/Header.es.js +0 -32
  320. package/dist/HelperComponent-D_Cqdf1J.js +0 -24
  321. package/dist/Icons.es.js +0 -1055
  322. package/dist/ImageGallery-CjaJ0UCN.js +0 -317
  323. package/dist/Input-Bdo-Acix.js +0 -240
  324. package/dist/Input.es.js +0 -4
  325. package/dist/LayoutGeneric-B6E-yOYJ.js +0 -26
  326. package/dist/LayoutGeneric.es.js +0 -4
  327. package/dist/Logo.es.js +0 -9
  328. package/dist/OtpInput.es.js +0 -301
  329. package/dist/ProgressBar.es.js +0 -70
  330. package/dist/Select-D2APaG1z.js +0 -1100
  331. package/dist/Select.es.js +0 -4
  332. package/dist/SelectSearch.es.js +0 -237
  333. package/dist/Spinner.es.js +0 -52
  334. package/dist/ToastProvider.es.js +0 -6
  335. package/dist/Tooltip.es.js +0 -62
  336. package/dist/components/Button/Button_Legacy.d.ts +0 -29
  337. package/dist/jsx-runtime-ByW6EXIE.js +0 -283
  338. package/dist/prometeo-design-system.es.js +0 -1008
  339. /package/dist/{useDevice.es.js → hooks/useDevice.js} +0 -0
@@ -1,8 +1,8 @@
1
- import { j as t } from "./jsx-runtime-ByW6EXIE.js";
2
- import { memo as M, useMemo as A } from "react";
3
- import E from "./Spinner.es.js";
4
- import { c as v } from "./index-BOQuZ0gG.js";
5
- import { c as d } from "./cn-B6yFEsav.js";
1
+ import { jsxs as y, jsx as o } from "react/jsx-runtime";
2
+ import { memo as A, useMemo as q } from "react";
3
+ import D from "../Spinner/Spinner.js";
4
+ import { cva as v } from "../../node_modules/class-variance-authority/dist/index.js";
5
+ import { cn as d } from "../../lib/cn.js";
6
6
  const m = {
7
7
  small: {
8
8
  container: "h-10 px-4 py-2"
@@ -138,21 +138,21 @@ const m = {
138
138
  container: "flex justify-center items-center gap-1 w-max rounded-lg bg-transparent cursor-pointer transition-all ease-in-out duration-300 relative",
139
139
  label: "w-max transition-all ease-in-out duration-300",
140
140
  icon: "w-max transition-all ease-in-out duration-300 flex justify-center items-center"
141
- }, y = {
141
+ }, w = {
142
142
  true: {
143
143
  container: "hover:scale-105 active:scale-95 disabled:scale-100"
144
144
  },
145
145
  false: {
146
146
  container: ""
147
147
  }
148
- }, w = {
148
+ }, V = {
149
149
  true: {
150
150
  icon: "group-hover:rotate-90 group-active:rotate-0 group-disabled:rotate-0"
151
151
  },
152
152
  false: {
153
153
  icon: ""
154
154
  }
155
- }, R = v(p.container, {
155
+ }, E = v(p.container, {
156
156
  variants: {
157
157
  size: {
158
158
  small: `${r.small.container} ${m.small.container}`,
@@ -173,8 +173,8 @@ const m = {
173
173
  disabled: ""
174
174
  },
175
175
  animation: {
176
- true: y.true.container,
177
- false: y.false.container
176
+ true: w.true.container,
177
+ false: w.false.container
178
178
  }
179
179
  },
180
180
  compoundVariants: [
@@ -203,7 +203,7 @@ const m = {
203
203
  color: "primary",
204
204
  animation: !0
205
205
  }
206
- }), V = v(p.label, {
206
+ }), k = v(p.label, {
207
207
  variants: {
208
208
  size: {
209
209
  small: r.small.label,
@@ -249,7 +249,7 @@ const m = {
249
249
  variant: "fill",
250
250
  color: "primary"
251
251
  }
252
- }), q = v(p.icon, {
252
+ }), F = v(p.icon, {
253
253
  variants: {
254
254
  size: {
255
255
  small: r.small.icon,
@@ -270,8 +270,8 @@ const m = {
270
270
  disabled: ""
271
271
  },
272
272
  animateIcon: {
273
- true: w.true.icon,
274
- false: w.false.icon
273
+ true: V.true.icon,
274
+ false: V.false.icon
275
275
  }
276
276
  },
277
277
  compoundVariants: [
@@ -300,60 +300,60 @@ const m = {
300
300
  color: "primary",
301
301
  animateIcon: !0
302
302
  }
303
- }), D = ({
303
+ }), G = ({
304
304
  label: g,
305
- onClick: j,
306
- icon: i,
305
+ onClick: $,
306
+ icon: s,
307
307
  contentClassName: u,
308
308
  loadingText: f = "Cargando...",
309
- animate: k = !0,
310
- animateIcon: $ = !0,
311
- isLoading: a = !1,
309
+ animate: N = !0,
310
+ animateIcon: I = !0,
311
+ isLoading: t = !1,
312
312
  children: c,
313
313
  hideSpinner: b = !1,
314
- spinner: x = /* @__PURE__ */ t.jsx(E, { size: "small", variant: "clip", speedMultiplier: 0.5, className: "mt-1.5", color: "var(--neutral-600)" }),
315
- type: N,
316
- className: I,
317
- disabled: s,
314
+ spinner: x = /* @__PURE__ */ o(D, { size: "small", variant: "clip", speedMultiplier: 0.5, className: "mt-1.5", color: "var(--neutral-600)" }),
315
+ type: j,
316
+ className: z,
317
+ disabled: i,
318
318
  variant: l = "fill",
319
- form: z,
320
- size: o = "medium",
321
- color: S = "primary"
319
+ form: S,
320
+ size: a = "medium",
321
+ color: B = "primary"
322
322
  }) => {
323
- const h = !!($ && !s && !a), B = !!(k && !s && !a), n = s || a ? "disabled" : S, C = A(() => c || (a ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1", children: [
323
+ const h = !!(I && !i && !t), C = !!(N && !i && !t), n = i || t ? "disabled" : B, M = q(() => c || (t ? /* @__PURE__ */ y("div", { className: "flex items-center gap-1", children: [
324
324
  !b && x,
325
- /* @__PURE__ */ t.jsx(
325
+ /* @__PURE__ */ o(
326
326
  "span",
327
327
  {
328
328
  className: d(
329
- V({
330
- size: o,
329
+ k({
330
+ size: a,
331
331
  variant: l,
332
332
  color: n
333
333
  }),
334
- o === "small" ? "prometeo-fonts-label-xsmall" : ""
334
+ a === "small" ? "prometeo-fonts-label-xsmall" : ""
335
335
  ),
336
336
  children: f
337
337
  }
338
338
  )
339
- ] }) : /* @__PURE__ */ t.jsxs("div", { className: d("flex items-center gap-1", u), children: [
340
- i && /* @__PURE__ */ t.jsx(
339
+ ] }) : /* @__PURE__ */ y("div", { className: d("flex items-center gap-1", u), children: [
340
+ s && /* @__PURE__ */ o(
341
341
  "span",
342
342
  {
343
- className: q({
344
- size: o,
343
+ className: F({
344
+ size: a,
345
345
  variant: l,
346
346
  color: n,
347
347
  animateIcon: h
348
348
  }),
349
- children: i
349
+ children: s
350
350
  }
351
351
  ),
352
- /* @__PURE__ */ t.jsx(
352
+ /* @__PURE__ */ o(
353
353
  "span",
354
354
  {
355
- className: V({
356
- size: o,
355
+ className: k({
356
+ size: a,
357
357
  variant: l,
358
358
  color: n
359
359
  }),
@@ -363,38 +363,38 @@ const m = {
363
363
  ] })), [
364
364
  c,
365
365
  u,
366
- i,
366
+ s,
367
367
  g,
368
368
  l,
369
- o,
370
- n,
371
369
  a,
370
+ n,
371
+ t,
372
372
  b,
373
373
  x,
374
374
  f,
375
375
  h
376
376
  ]);
377
- return /* @__PURE__ */ t.jsx(
377
+ return /* @__PURE__ */ o(
378
378
  "button",
379
379
  {
380
- type: N,
380
+ type: j,
381
381
  className: d(
382
382
  "group",
383
- R({
384
- size: o,
383
+ E({
384
+ size: a,
385
385
  variant: l,
386
386
  color: n,
387
- animation: B
387
+ animation: C
388
388
  }),
389
- I
389
+ z
390
390
  ),
391
- disabled: s || a,
392
- form: z,
393
- onClick: j,
394
- children: /* @__PURE__ */ t.jsx("div", { className: `flex items-center gap-1 ${u}`, children: C })
391
+ disabled: i || t,
392
+ form: S,
393
+ onClick: $,
394
+ children: /* @__PURE__ */ o("div", { className: `flex items-center gap-1 ${u}`, children: M })
395
395
  }
396
396
  );
397
- }, O = M(D);
397
+ }, Q = A(G);
398
398
  export {
399
- O as default
399
+ Q as default
400
400
  };
@@ -1,41 +1,16 @@
1
- import { j as e } from "./jsx-runtime-ByW6EXIE.js";
2
- import { c as l } from "./cn-B6yFEsav.js";
3
- import { motion as i, AnimatePresence as c } from "framer-motion";
4
- import u from "./Avatar.es.js";
5
- import { ChevronDown as m, Logout as f } from "./Icons.es.js";
6
- function x({
7
- sessions: t,
8
- handleTokenLogin: a
9
- }) {
10
- return /* @__PURE__ */ e.jsx("div", { className: "profile-options-container w-full ", children: t?.map((r) => /* @__PURE__ */ e.jsx(
11
- "button",
12
- {
13
- className: "w-full ",
14
- onClick: () => a?.(r.token),
15
- children: /* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsx(
16
- o.Content,
17
- {
18
- onClick: () => {
19
- console.log("hola");
20
- },
21
- isExpanded: !1,
22
- nameUser: r.name,
23
- nameArea: r?.areaId?.name,
24
- nameCompany: r.companyId.name,
25
- cardProfile: /* @__PURE__ */ e.jsx(o.Image, { isExpanded: !1 })
26
- }
27
- ) })
28
- },
29
- r._id
30
- )) });
31
- }
32
- const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profile-container flex rounded-md text-white-prometeo overflow-hidden shrink-0 w-full min-w-0 ", children: t }), p = ({
1
+ import { jsx as e, jsxs as l, Fragment as s } from "react/jsx-runtime";
2
+ import { cn as n } from "../../lib/cn.js";
3
+ import { motion as r, AnimatePresence as u } from "framer-motion";
4
+ import f from "../Avatar/Avatar.js";
5
+ import m from "../Sidebar/components/changue-account.js";
6
+ import { ChevronDown as h, Logout as p } from "../../Icons/Icons.js";
7
+ const x = ({ children: t }) => /* @__PURE__ */ e("div", { className: "profile-container flex rounded-md text-white-prometeo overflow-hidden shrink-0 w-full min-w-0 ", children: t }), g = ({
33
8
  isExpanded: t,
34
9
  sessions: a,
35
- onClickLogout: r,
36
- handleTokenLogin: n
37
- }) => /* @__PURE__ */ e.jsx(c, { mode: "wait", children: t && /* @__PURE__ */ e.jsxs(
38
- i.div,
10
+ onClickLogout: i,
11
+ handleTokenLogin: o
12
+ }) => /* @__PURE__ */ e(u, { mode: "wait", children: t && /* @__PURE__ */ l(
13
+ r.div,
39
14
  {
40
15
  initial: { height: 0, opacity: 0 },
41
16
  animate: {
@@ -60,8 +35,8 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
60
35
  },
61
36
  className: "overflow-hidden",
62
37
  children: [
63
- /* @__PURE__ */ e.jsx(
64
- i.div,
38
+ /* @__PURE__ */ e(
39
+ r.div,
65
40
  {
66
41
  className: "flex justify-center items-center w-full mt-4",
67
42
  exit: {
@@ -74,12 +49,12 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
74
49
  ease: "easeInOut"
75
50
  }
76
51
  },
77
- children: /* @__PURE__ */ e.jsx("div", { className: "border-b border-neutral-strong-default border w-full" })
52
+ children: /* @__PURE__ */ e("div", { className: "border-b border-neutral-strong-default border w-full" })
78
53
  }
79
54
  ),
80
- a && a.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
81
- /* @__PURE__ */ e.jsx(
82
- i.div,
55
+ a && a.length > 0 && /* @__PURE__ */ l(s, { children: [
56
+ /* @__PURE__ */ e(
57
+ r.div,
83
58
  {
84
59
  className: "mt-4",
85
60
  exit: {
@@ -92,11 +67,11 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
92
67
  ease: "easeInOut"
93
68
  }
94
69
  },
95
- children: /* @__PURE__ */ e.jsx("span", { className: "text-neutral-medium-default font-semibold text-xs", children: "Cambiar cuenta" })
70
+ children: /* @__PURE__ */ e("span", { className: "text-neutral-medium-default font-semibold text-xs", children: "Cambiar cuenta" })
96
71
  }
97
72
  ),
98
- /* @__PURE__ */ e.jsx(
99
- i.div,
73
+ /* @__PURE__ */ e(
74
+ r.div,
100
75
  {
101
76
  className: "mt-4 overflow-hidden w-full ",
102
77
  exit: {
@@ -112,17 +87,17 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
112
87
  ease: "easeInOut"
113
88
  }
114
89
  },
115
- children: /* @__PURE__ */ e.jsx(
116
- x,
90
+ children: /* @__PURE__ */ e(
91
+ m,
117
92
  {
118
93
  sessions: a,
119
- handleTokenLogin: n
94
+ handleTokenLogin: o
120
95
  }
121
96
  )
122
97
  }
123
98
  ),
124
- /* @__PURE__ */ e.jsx(
125
- i.div,
99
+ /* @__PURE__ */ e(
100
+ r.div,
126
101
  {
127
102
  className: "flex justify-center items-center w-full mt-4",
128
103
  exit: {
@@ -135,14 +110,14 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
135
110
  ease: "easeInOut"
136
111
  }
137
112
  },
138
- children: /* @__PURE__ */ e.jsx("div", { className: "border-b border-neutral-strong-default border w-full" })
113
+ children: /* @__PURE__ */ e("div", { className: "border-b border-neutral-strong-default border w-full" })
139
114
  }
140
115
  )
141
116
  ] }),
142
- /* @__PURE__ */ e.jsxs(
143
- i.button,
117
+ /* @__PURE__ */ l(
118
+ r.button,
144
119
  {
145
- onClick: r,
120
+ onClick: i,
146
121
  className: "flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",
147
122
  exit: {
148
123
  opacity: 0,
@@ -161,33 +136,33 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
161
136
  },
162
137
  whileTap: { scale: 0.98 },
163
138
  children: [
164
- /* @__PURE__ */ e.jsx(f, { size: 24, className: "text-neutral-default-default" }),
165
- /* @__PURE__ */ e.jsx("span", { className: "text-neutral-default-default font-semibold text-sm", children: "Cerrar sesión" })
139
+ /* @__PURE__ */ e(p, { size: 24, className: "text-neutral-default-default" }),
140
+ /* @__PURE__ */ e("span", { className: "text-neutral-default-default font-semibold text-sm", children: "Cerrar sesión" })
166
141
  ]
167
142
  }
168
143
  )
169
144
  ]
170
145
  }
171
- ) }), j = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper ml-1", children: /* @__PURE__ */ e.jsx(
172
- u,
146
+ ) }), v = ({ imageUrl: t, fallbackText: a }) => /* @__PURE__ */ e("div", { className: "flex items-center justify-center profile-image-wrapper ml-1", children: /* @__PURE__ */ e(
147
+ f,
173
148
  {
174
149
  imageUrl: t,
175
150
  sizeImage: "xs",
176
151
  sizeFallback: "xs",
177
152
  fallbackText: a
178
153
  }
179
- ) }), g = ({
154
+ ) }), y = ({
180
155
  isExpanded: t,
181
156
  nameUser: a,
182
- nameCompany: r,
183
- nameArea: n,
184
- cardProfile: s,
185
- onClick: d
186
- }) => /* @__PURE__ */ e.jsxs(
187
- i.button,
157
+ nameCompany: i,
158
+ nameArea: o,
159
+ cardProfile: d,
160
+ onClick: c
161
+ }) => /* @__PURE__ */ l(
162
+ r.button,
188
163
  {
189
- onClick: d,
190
- className: l(
164
+ onClick: c,
165
+ className: n(
191
166
  "flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile h-12",
192
167
  t && "bg-neutral-medium-selected"
193
168
  ),
@@ -198,55 +173,55 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
198
173
  whileTap: { scale: 0.98 },
199
174
  transition: { duration: 0.2, ease: "easeInOut" },
200
175
  children: [
201
- s,
202
- /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2", children: [
203
- /* @__PURE__ */ e.jsx(
176
+ d,
177
+ /* @__PURE__ */ l("div", { className: "flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2", children: [
178
+ /* @__PURE__ */ e(
204
179
  "p",
205
180
  {
206
- className: l(
181
+ className: n(
207
182
  "profile-name font-semibold leading-tight mb-0 text-left",
208
183
  t ? "text-primary-default-default" : "text-neutral-default-default"
209
184
  ),
210
185
  children: a?.length && a?.length > 20 ? a?.slice(0, 10) + ".." : a
211
186
  }
212
187
  ),
213
- /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-1 mt-0 ", children: r && r ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
214
- /* @__PURE__ */ e.jsx(
188
+ /* @__PURE__ */ e("div", { className: "flex items-center gap-1 mt-0 ", children: i && i ? /* @__PURE__ */ l(s, { children: [
189
+ /* @__PURE__ */ e(
215
190
  "p",
216
191
  {
217
- className: l(
192
+ className: n(
218
193
  "profile-options truncate text-xs mt-0",
219
194
  t ? "text-primary-default-default" : "text-neutral-default-default"
220
195
  ),
221
- children: r?.length && r?.length > 20 ? r?.slice(0, 10) + ".." : r
196
+ children: i?.length && i?.length > 20 ? i?.slice(0, 10) + ".." : i
222
197
  }
223
198
  ),
224
- /* @__PURE__ */ e.jsx(
199
+ /* @__PURE__ */ e(
225
200
  "p",
226
201
  {
227
- className: l(
202
+ className: n(
228
203
  "profile-options truncate font-bold mt-0",
229
204
  t ? "text-primary-default-default" : "text-neutral-default-default"
230
205
  ),
231
206
  children: "·"
232
207
  }
233
208
  ),
234
- /* @__PURE__ */ e.jsx(
209
+ /* @__PURE__ */ e(
235
210
  "p",
236
211
  {
237
- className: l(
212
+ className: n(
238
213
  "profile-options truncate text-xs mt-0",
239
214
  t ? "text-primary-default-default" : "text-neutral-default-default"
240
215
  ),
241
- children: n || "Sin asignar"
216
+ children: o || "Sin asignar"
242
217
  }
243
218
  )
244
- ] }) : /* @__PURE__ */ e.jsx("span", { className: "font-semibold leading-tight ml-3 text-xs text-blue-300 text-center", children: "Sin asignar" }) })
219
+ ] }) : /* @__PURE__ */ e("span", { className: "font-semibold leading-tight ml-3 text-xs text-blue-300 text-center", children: "Sin asignar" }) })
245
220
  ] })
246
221
  ]
247
222
  }
248
- ), v = () => /* @__PURE__ */ e.jsx("div", { className: "w-px bg-gray-500/30 my-1 border-separator-profile" }), y = ({ isExpanded: t, onClick: a }) => /* @__PURE__ */ e.jsx(
249
- i.button,
223
+ ), b = () => /* @__PURE__ */ e("div", { className: "w-px bg-gray-500/30 my-1 border-separator-profile" }), w = ({ isExpanded: t, onClick: a }) => /* @__PURE__ */ e(
224
+ r.button,
250
225
  {
251
226
  onClick: a,
252
227
  className: "flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] hover:bg-neutral-medium-selected button-content-chevron",
@@ -255,24 +230,23 @@ const h = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
255
230
  transition: { duration: 0.2, ease: "easeOut" },
256
231
  title: t ? "Ocultar opciones" : "Mostrar opciones",
257
232
  "aria-label": t ? "Ocultar opciones" : "Mostrar opciones",
258
- children: /* @__PURE__ */ e.jsx(
259
- i.div,
233
+ children: /* @__PURE__ */ e(
234
+ r.div,
260
235
  {
261
236
  animate: { rotate: t ? 180 : 0 },
262
237
  transition: { duration: 0.3, ease: "easeOut" },
263
238
  className: "relative button-select-crevron",
264
- children: /* @__PURE__ */ e.jsx(i.div, { transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(m, { size: 20, className: "text-prometeo-neutral " }) })
239
+ children: /* @__PURE__ */ e(r.div, { transition: { duration: 0.2 }, children: /* @__PURE__ */ e(h, { size: 20, className: "text-prometeo-neutral " }) })
265
240
  }
266
241
  )
267
242
  }
268
- ), o = Object.assign(h, {
269
- Menu: p,
270
- Image: j,
271
- Content: g,
272
- Separator: v,
273
- Options: y
243
+ ), z = Object.assign(x, {
244
+ Menu: g,
245
+ Image: v,
246
+ Content: y,
247
+ Separator: b,
248
+ Options: w
274
249
  });
275
250
  export {
276
- o as C,
277
- x as a
251
+ z as CardProfile
278
252
  };
@@ -1,9 +1,9 @@
1
- import { j as a } from "./jsx-runtime-ByW6EXIE.js";
2
- import { Check as m } from "./Icons.es.js";
3
- import { memo as k, forwardRef as g, useId as v, useRef as C, useCallback as y } from "react";
4
- const s = g(
5
- ({ className: l, disabled: e, onChange: i, value: d, ...t }, r) => {
6
- const u = v(), o = C(null), f = `
1
+ import { jsx as n, jsxs as x } from "react/jsx-runtime";
2
+ import { Check as k } from "../../Icons/Icons.js";
3
+ import { memo as g, forwardRef as v, useId as C, useRef as y, useCallback as $ } from "react";
4
+ const l = v(
5
+ ({ className: i, disabled: e, onChange: s, value: d, ...t }, r) => {
6
+ const u = C(), a = y(null), f = `
7
7
  after:content-[""]
8
8
  after:absolute
9
9
  after:top-1/2
@@ -25,20 +25,20 @@ const s = g(
25
25
  transition-all
26
26
  duration-200
27
27
  ease-in-out
28
- `, h = "hover:#hover-span:opacity-100", p = "bg-primary-light", x = `
28
+ `, h = "hover:#hover-span:opacity-100", p = "bg-primary-light", b = `
29
29
  bg-transparent
30
30
  border-[2px]
31
31
  aria-checked:border-none
32
32
  border-neutral-medium-default
33
33
  hover:border-neutral-medium-hover
34
- `, b = {
34
+ `, m = {
35
35
  selected: "bg-primary-default-disabled!",
36
36
  default: "border-neutral-default-disabled "
37
- }, c = y(() => {
38
- if (o.current)
39
- return o.current.click();
37
+ }, c = $(() => {
38
+ if (a.current)
39
+ return a.current.click();
40
40
  }, []);
41
- return /* @__PURE__ */ a.jsx(
41
+ return /* @__PURE__ */ n(
42
42
  "div",
43
43
  {
44
44
  id: "checkbox-container",
@@ -51,31 +51,31 @@ const s = g(
51
51
  className: "grid place-items-center p-2",
52
52
  onClick: c,
53
53
  draggable: !1,
54
- children: /* @__PURE__ */ a.jsxs(
54
+ children: /* @__PURE__ */ x(
55
55
  "div",
56
56
  {
57
57
  id: "checkbox-box",
58
58
  "aria-checked": t.checked,
59
59
  className: `grid place-items-center absolute size-[18px] rounded-[2px]
60
60
  ${f}
61
- ${x}
61
+ ${b}
62
62
  ${t.checked ? p : ""}
63
- ${e ? b[t.checked ? "selected" : "default"] : ""}
63
+ ${e ? m[t.checked ? "selected" : "default"] : ""}
64
64
  `,
65
65
  onClick: c,
66
66
  draggable: !1,
67
67
  children: [
68
- /* @__PURE__ */ a.jsx(
68
+ /* @__PURE__ */ n(
69
69
  "input",
70
70
  {
71
71
  type: "checkbox",
72
72
  id: u,
73
- ref: (n) => {
74
- o.current = n, typeof r == "function" ? r(n) : r && (r.current = n);
73
+ ref: (o) => {
74
+ a.current = o, typeof r == "function" ? r(o) : r && (r.current = o);
75
75
  },
76
- onChange: i,
76
+ onChange: s,
77
77
  value: d,
78
- className: `${l} ${h}`,
78
+ className: `${i} ${h}`,
79
79
  disabled: e,
80
80
  style: {
81
81
  position: "absolute",
@@ -91,8 +91,8 @@ const s = g(
91
91
  ...t
92
92
  }
93
93
  ),
94
- t.checked && /* @__PURE__ */ a.jsx(
95
- m,
94
+ t.checked && /* @__PURE__ */ n(
95
+ k,
96
96
  {
97
97
  size: 18,
98
98
  className: `absolute ${e ? "icon-neutral-strong-disabled" : ""} pointer-events-none icon-neutral-strong-default`
@@ -105,8 +105,8 @@ const s = g(
105
105
  );
106
106
  }
107
107
  );
108
- s.displayName = "CheckBox";
109
- const w = k(s);
108
+ l.displayName = "CheckBox";
109
+ const B = g(l);
110
110
  export {
111
- w as default
111
+ B as default
112
112
  };