lawgic-dev-kit 0.21.6 → 0.22.4

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 (299) hide show
  1. package/README.md +54 -54
  2. package/dist/_virtual/index2.js +2 -3
  3. package/dist/_virtual/index3.js +3 -3
  4. package/dist/_virtual/index4.js +3 -5
  5. package/dist/_virtual/index5.js +5 -2
  6. package/dist/components/atoms/Checkbox/Checkbox.d.ts +3 -2
  7. package/dist/components/atoms/Checkbox/Checkbox.js +43 -30
  8. package/dist/components/atoms/Chip/Chip.d.ts +13 -0
  9. package/dist/components/atoms/Chip/Chip.js +32 -0
  10. package/dist/components/atoms/Chip/index.d.ts +1 -0
  11. package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.js +17 -30
  12. package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +8 -2
  13. package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.js +46 -12
  14. package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +3 -3
  15. package/dist/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +1 -1
  16. package/dist/components/atoms/LoadingSpinner/LoadingSpinner.js +56 -12
  17. package/dist/components/atoms/PasswordInput/PasswordInput.d.ts +1 -1
  18. package/dist/components/atoms/PasswordInput/PasswordInput.js +57 -41
  19. package/dist/components/atoms/PasswordInput/PasswordInput.types.d.ts +1 -0
  20. package/dist/components/atoms/SelectInput/SelectInput.d.ts +1 -1
  21. package/dist/components/atoms/SelectInput/SelectInput.js +125 -140
  22. package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
  23. package/dist/components/atoms/StepIndicator/StepIndicator.d.ts +5 -0
  24. package/dist/components/atoms/StepIndicator/StepIndicator.js +58 -0
  25. package/dist/components/atoms/StepIndicator/index.d.ts +1 -0
  26. package/dist/components/atoms/TextInput/TextInput.js +33 -33
  27. package/dist/components/atoms/TextInput/TextInput.types.d.ts +1 -1
  28. package/dist/components/atoms/Toast/Toast.d.ts +2 -3
  29. package/dist/components/atoms/Toast/Toast.js +46 -53
  30. package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
  31. package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +98 -84
  32. package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +29 -35
  33. package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +1 -1
  34. package/dist/components/atoms/UploadContainer/UploadContainer.js +4 -4
  35. package/dist/components/atoms/index.d.ts +2 -1
  36. package/dist/components/molecules/CalendarSelector/CalendarSelector.js +8 -8
  37. package/dist/components/molecules/DateInput/DateInput.d.ts +1 -1
  38. package/dist/components/molecules/EmptyState/EmptyState.d.ts +9 -0
  39. package/dist/components/molecules/EmptyState/EmptyState.js +16 -0
  40. package/dist/components/molecules/EmptyState/index.d.ts +1 -0
  41. package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +24 -0
  42. package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +208 -0
  43. package/dist/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
  44. package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.d.ts +25 -0
  45. package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.js +212 -0
  46. package/dist/components/molecules/SingleSelectDropdown/index.d.ts +1 -0
  47. package/dist/components/molecules/Stepper/Stepper.d.ts +1 -1
  48. package/dist/components/molecules/Stepper/Stepper.js +78 -231
  49. package/dist/components/molecules/Stepper/Stepper.styles.d.ts +7 -3
  50. package/dist/components/molecules/Stepper/Stepper.styles.js +23 -15
  51. package/dist/components/molecules/Tooltip/Tooltip.d.ts +20 -0
  52. package/dist/components/molecules/Tooltip/Tooltip.js +41 -0
  53. package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +1 -1
  54. package/dist/components/molecules/index.d.ts +4 -0
  55. package/dist/index.js +139 -129
  56. package/dist/lawgic-dev-kit.css +1 -1
  57. package/dist/lawgic-dev-kit.umd.js +109 -97
  58. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +396 -712
  59. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +33 -81
  60. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +7 -2
  61. package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +14 -49
  62. package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +32 -12
  63. package/dist/node_modules/@fortawesome/pro-solid-svg-icons/index.js +14 -9
  64. package/dist/node_modules/prop-types/index.js +1 -1
  65. package/dist/node_modules/yup/index.esm.js +3 -3
  66. package/dist/src/Root.d.ts +2 -0
  67. package/dist/src/app.d.ts +1 -0
  68. package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +11 -0
  69. package/dist/src/components/atoms/ActionButton/index.d.ts +1 -0
  70. package/dist/src/components/atoms/AsyncToast/index.d.ts +11 -0
  71. package/dist/src/components/atoms/Avatar/Avatar.d.ts +11 -0
  72. package/dist/src/components/atoms/Avatar/index.d.ts +1 -0
  73. package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +4 -0
  74. package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +6 -0
  75. package/dist/src/components/atoms/BoxContainer/index.d.ts +1 -0
  76. package/dist/src/components/atoms/Button/Button.d.ts +4 -0
  77. package/dist/src/components/atoms/Button/Button.styles.d.ts +26 -0
  78. package/dist/src/components/atoms/Button/Button.types.d.ts +12 -0
  79. package/dist/src/components/atoms/Button/index.d.ts +1 -0
  80. package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +4 -0
  81. package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +6 -0
  82. package/dist/src/components/atoms/CenterModal/index.d.ts +1 -0
  83. package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +13 -0
  84. package/dist/src/components/atoms/Checkbox/index.d.ts +1 -0
  85. package/dist/src/components/atoms/Chip/Chip.d.ts +13 -0
  86. package/dist/src/components/atoms/Chip/index.d.ts +1 -0
  87. package/dist/src/components/atoms/CircleProgress/CircleProgress.d.ts +22 -0
  88. package/dist/src/components/atoms/CircleProgress/index.d.ts +1 -0
  89. package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.d.ts +4 -0
  90. package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.types.d.ts +7 -0
  91. package/dist/src/components/atoms/ClickAwayListener/index.d.ts +1 -0
  92. package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +4 -0
  93. package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +37 -0
  94. package/dist/src/components/atoms/CountryInput/index.d.ts +1 -0
  95. package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +6 -0
  96. package/dist/src/components/atoms/CountryLabel/index.d.ts +1 -0
  97. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +4 -0
  98. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +36 -0
  99. package/dist/src/components/atoms/CountrySelectInput/index.d.ts +1 -0
  100. package/dist/src/components/atoms/Divider/Divider.d.ts +7 -0
  101. package/dist/src/components/atoms/Divider/index.d.ts +1 -0
  102. package/dist/src/components/atoms/FilterPill/FilterPill.d.ts +8 -0
  103. package/dist/src/components/atoms/FilterPill/index.d.ts +1 -0
  104. package/dist/src/components/atoms/FloatingCard/FloatingCard.d.ts +4 -0
  105. package/dist/{components/atoms/Tooltip/Tooltip.types.d.ts → src/components/atoms/FloatingCard/FloatingCard.types.d.ts} +3 -3
  106. package/dist/src/components/atoms/FloatingCard/index.d.ts +1 -0
  107. package/dist/src/components/atoms/IconButton/IconButton.d.ts +4 -0
  108. package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +10 -0
  109. package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +11 -0
  110. package/dist/src/components/atoms/IconButton/index.d.ts +1 -0
  111. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +4 -0
  112. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +12 -0
  113. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +9 -0
  114. package/dist/src/components/atoms/ImageProfileInput/index.d.ts +2 -0
  115. package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +9 -0
  116. package/dist/src/components/atoms/IndexedStep/index.d.ts +1 -0
  117. package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +3 -0
  118. package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +6 -0
  119. package/dist/src/components/atoms/InfoCard/index.d.ts +1 -0
  120. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.d.ts +4 -0
  121. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +9 -0
  122. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +10 -0
  123. package/dist/src/components/atoms/InformationDisclaimer/index.d.ts +1 -0
  124. package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +13 -0
  125. package/dist/src/components/atoms/LoadingProgress/index.d.ts +1 -0
  126. package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +8 -0
  127. package/dist/src/components/atoms/LoadingSpinner/index.d.ts +1 -0
  128. package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +5 -0
  129. package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +12 -0
  130. package/dist/src/components/atoms/PasswordInput/index.d.ts +1 -0
  131. package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +5 -0
  132. package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +12 -0
  133. package/dist/src/components/atoms/PhoneInput/index.d.ts +1 -0
  134. package/dist/src/components/atoms/Pill/Pill.d.ts +8 -0
  135. package/dist/src/components/atoms/Pill/index.d.ts +1 -0
  136. package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
  137. package/dist/src/components/atoms/ProgressBar/ProgressBar.styles.d.ts +7 -0
  138. package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +6 -0
  139. package/dist/src/components/atoms/ProgressBar/index.d.ts +1 -0
  140. package/dist/src/components/atoms/SearchBar/index.d.ts +2 -0
  141. package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +12 -0
  142. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +3 -0
  143. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +2 -0
  144. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +37 -0
  145. package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +2 -0
  146. package/dist/src/components/atoms/SectionButton/index.d.ts +1 -0
  147. package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +3 -0
  148. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
  149. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +37 -0
  150. package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +2 -0
  151. package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +1 -1
  152. package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
  153. package/dist/src/components/atoms/SelectInput/index.d.ts +1 -0
  154. package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +13 -0
  155. package/dist/src/components/atoms/SidebarButton/SidebarButton.styles.d.ts +9 -0
  156. package/dist/src/components/atoms/SidebarButton/index.d.ts +1 -0
  157. package/dist/src/components/atoms/StepIndicator/StepIndicator.d.ts +5 -0
  158. package/dist/src/components/atoms/StepIndicator/index.d.ts +1 -0
  159. package/dist/src/components/atoms/Switch/Switch.d.ts +7 -0
  160. package/dist/src/components/atoms/Switch/index.d.ts +1 -0
  161. package/dist/src/components/atoms/Tab/Tab.d.ts +3 -0
  162. package/dist/src/components/atoms/Tab/Tab.styles.d.ts +6 -0
  163. package/dist/src/components/atoms/Tab/Tab.types.d.ts +11 -0
  164. package/dist/src/components/atoms/Tab/index.d.ts +1 -0
  165. package/dist/src/components/atoms/TextButton/TextButton.d.ts +4 -0
  166. package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +2 -0
  167. package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +6 -0
  168. package/dist/src/components/atoms/TextButton/index.d.ts +1 -0
  169. package/dist/src/components/atoms/TextInput/TextInput.d.ts +5 -0
  170. package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +13 -0
  171. package/dist/src/components/atoms/TextInput/index.d.ts +1 -0
  172. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +3 -0
  173. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +5 -0
  174. package/dist/src/components/atoms/TextStaticInput/index.d.ts +1 -0
  175. package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +4 -0
  176. package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +30 -0
  177. package/dist/src/components/atoms/ThresholdCircleProgress/index.d.ts +1 -0
  178. package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.d.ts +4 -0
  179. package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.types.d.ts +22 -0
  180. package/dist/src/components/atoms/ThresholdProgressBar/index.d.ts +1 -0
  181. package/dist/src/components/atoms/Toast/Toast.d.ts +20 -0
  182. package/dist/src/components/atoms/Toast/index.d.ts +1 -0
  183. package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
  184. package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +1 -0
  185. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +4 -0
  186. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +14 -0
  187. package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +1 -0
  188. package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +4 -0
  189. package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +37 -0
  190. package/dist/src/components/atoms/UploadContainer/index.d.ts +1 -0
  191. package/dist/src/components/atoms/index.d.ts +43 -0
  192. package/dist/src/components/index.d.ts +3 -0
  193. package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +3 -0
  194. package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +9 -0
  195. package/dist/src/components/molecules/AlertModal/index.d.ts +2 -0
  196. package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.d.ts +3 -0
  197. package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +28 -0
  198. package/dist/src/components/molecules/AutocompleteInput/index.d.ts +1 -0
  199. package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +14 -0
  200. package/dist/src/components/molecules/CalendarSelector/CalendarSelector.styles.d.ts +36 -0
  201. package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +15 -0
  202. package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +7 -0
  203. package/dist/src/components/molecules/CalendarSelector/index.d.ts +1 -0
  204. package/dist/src/components/molecules/DateInput/DateInput.d.ts +14 -0
  205. package/dist/src/components/molecules/DateInput/index.d.ts +1 -0
  206. package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +3 -0
  207. package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +11 -0
  208. package/dist/src/components/molecules/DialogModal/index.d.ts +1 -0
  209. package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +3 -0
  210. package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +9 -0
  211. package/dist/src/components/molecules/Dropdown/index.d.ts +1 -0
  212. package/dist/src/components/molecules/EmptyState/EmptyState.d.ts +9 -0
  213. package/dist/src/components/molecules/EmptyState/index.d.ts +1 -0
  214. package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +4 -0
  215. package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +17 -0
  216. package/dist/src/components/molecules/FileUpload/index.d.ts +1 -0
  217. package/dist/src/components/molecules/FiltersMenu/FiltersMenu.d.ts +13 -0
  218. package/dist/src/components/molecules/FiltersMenu/index.d.ts +1 -0
  219. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +4 -0
  220. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +13 -0
  221. package/dist/src/components/molecules/FloatingMenu/index.d.ts +1 -0
  222. package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +7 -0
  223. package/dist/src/components/molecules/IndexedStepper/index.d.ts +1 -0
  224. package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +14 -0
  225. package/dist/src/components/molecules/InformationContainer/index.d.ts +1 -0
  226. package/dist/src/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +24 -0
  227. package/dist/src/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
  228. package/dist/src/components/molecules/PillsContainer/PillsContainer.d.ts +9 -0
  229. package/dist/src/components/molecules/PillsContainer/index.d.ts +1 -0
  230. package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +4 -0
  231. package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +5 -0
  232. package/dist/src/components/molecules/SearchModal/index.d.ts +1 -0
  233. package/dist/src/components/molecules/SideModal/SideModal.d.ts +4 -0
  234. package/dist/src/components/molecules/SideModal/SideModal.types.d.ts +11 -0
  235. package/dist/src/components/molecules/SideModal/index.d.ts +1 -0
  236. package/dist/src/components/molecules/SingleSelectDropdown/SingleSelectDropdown.d.ts +25 -0
  237. package/dist/src/components/molecules/SingleSelectDropdown/index.d.ts +1 -0
  238. package/dist/src/components/molecules/Stepper/Stepper.d.ts +3 -0
  239. package/dist/src/components/molecules/Stepper/Stepper.styles.d.ts +15 -0
  240. package/dist/src/components/molecules/Stepper/index.d.ts +1 -0
  241. package/dist/src/components/molecules/Tabs/Tabs.d.ts +21 -0
  242. package/dist/src/components/molecules/Tabs/index.d.ts +1 -0
  243. package/dist/src/components/molecules/Tooltip/Tooltip.d.ts +20 -0
  244. package/dist/src/components/molecules/Tooltip/index.d.ts +1 -0
  245. package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +16 -0
  246. package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
  247. package/dist/src/components/molecules/index.d.ts +23 -0
  248. package/dist/src/components/organisms/index.d.ts +1 -0
  249. package/dist/src/constants/countries.d.ts +30 -0
  250. package/dist/src/contexts/index.d.ts +1 -0
  251. package/dist/src/contexts/themeContext.d.ts +3 -0
  252. package/dist/src/hooks/index.d.ts +2 -0
  253. package/dist/src/hooks/useFilterToggler.d.ts +5 -0
  254. package/dist/src/hooks/useTheme.d.ts +1 -0
  255. package/dist/src/index.d.ts +8 -0
  256. package/dist/src/lab/Laboratory.d.ts +2 -0
  257. package/dist/src/lab/LaboratoryLayout.d.ts +5 -0
  258. package/dist/src/lab/index.lab.d.ts +1 -0
  259. package/dist/src/providers/ThemeProvider.d.ts +7 -0
  260. package/dist/src/providers/index.d.ts +1 -0
  261. package/dist/src/themes/default.d.ts +2 -0
  262. package/dist/src/themes/index.d.ts +2 -0
  263. package/dist/src/themes/types.d.ts +6 -0
  264. package/dist/src/types/baseModalProps.d.ts +4 -0
  265. package/dist/src/types/cycles.d.ts +103 -0
  266. package/dist/src/types/display.d.ts +2 -0
  267. package/dist/src/types/fileInfo.d.ts +2 -0
  268. package/dist/src/types/filters.d.ts +22 -0
  269. package/dist/src/types/i18n.d.ts +1 -0
  270. package/dist/src/types/index.d.ts +10 -0
  271. package/dist/src/types/modal.d.ts +34 -0
  272. package/dist/src/types/modalType.d.ts +1 -0
  273. package/dist/src/types/navbarOption.d.ts +7 -0
  274. package/dist/src/types/sidebarOption.d.ts +7 -0
  275. package/dist/src/types/stepper.d.ts +23 -0
  276. package/dist/src/types/styleValues.d.ts +4 -0
  277. package/dist/src/types/toast.d.ts +29 -0
  278. package/dist/src/utils/cycles.d.ts +2 -0
  279. package/dist/src/utils/dates.d.ts +1 -0
  280. package/dist/src/utils/files.d.ts +8 -0
  281. package/dist/src/utils/images.d.ts +1 -0
  282. package/dist/src/utils/index.d.ts +7 -0
  283. package/dist/src/utils/modal.d.ts +13 -0
  284. package/dist/src/utils/renderContentOptions.d.ts +3 -0
  285. package/dist/src/utils/stepper.d.ts +2 -0
  286. package/dist/src/utils/strings.d.ts +2 -0
  287. package/dist/src/utils/toast.d.ts +15 -0
  288. package/dist/types/index.d.ts +1 -0
  289. package/dist/types/stepper.d.ts +23 -0
  290. package/dist/types/toast.d.ts +6 -3
  291. package/dist/utils/stepper.d.ts +2 -0
  292. package/dist/utils/toast.js +3 -3
  293. package/dist/vite-env.d.ts +1 -1
  294. package/dist/vite.config.d.ts +2 -0
  295. package/package.json +157 -157
  296. package/dist/components/atoms/Tooltip/Tooltip.d.ts +0 -4
  297. package/dist/components/atoms/Tooltip/Tooltip.js +0 -121
  298. package/dist/components/molecules/Stepper/Stepper.types.d.ts +0 -9
  299. /package/dist/components/{atoms → molecules}/Tooltip/index.d.ts +0 -0
@@ -2,47 +2,47 @@ import { j as o } from "../../../_virtual/jsx-runtime.js";
2
2
  import { useTheme as h } from "../../../hooks/useTheme.js";
3
3
  import "react";
4
4
  const w = ({
5
- label: x,
5
+ label: u,
6
6
  onChange: p,
7
- value: s,
7
+ value: n,
8
8
  name: t,
9
9
  error: l,
10
10
  placeholder: i,
11
- className: b = "",
11
+ className: g = "",
12
12
  disabled: e = !1,
13
- disabledInput: n = !1,
14
- size: g = "base",
13
+ disabledInput: s = !1,
14
+ size: d = "md",
15
15
  leftSide: a,
16
16
  rightSide: c,
17
- ...d
17
+ ...b
18
18
  }) => {
19
- const { t: u } = h(), r = {
19
+ const { t: x } = h(), r = {
20
20
  sm: {
21
- container: "p-8",
22
- text: "text-body-s",
23
- label: "text-xs",
24
- error: "text-xs",
25
- gap: "gap-6"
21
+ container: "px-16 py-8",
22
+ text: "text-sm",
23
+ label: "text-sm",
24
+ error: "text-sm",
25
+ gap: "gap-8"
26
26
  },
27
- base: {
27
+ md: {
28
28
  container: "p-16",
29
- text: "text-body-m",
30
- label: "text-label",
31
- error: "text-label",
29
+ text: "text-14",
30
+ label: "text-14",
31
+ error: "text-14",
32
32
  gap: "gap-8"
33
33
  }
34
- }[g];
34
+ }[d];
35
35
  return /* @__PURE__ */ o.jsxs(
36
36
  "label",
37
37
  {
38
- className: `flex flex-col group select-none ${r.gap} ${e && "cursor-not-allowed"} ${b}`,
38
+ className: `flex flex-col group select-none ${r.gap} ${e && "cursor-not-allowed"} ${g}`,
39
39
  htmlFor: t,
40
40
  children: [
41
41
  /* @__PURE__ */ o.jsx(
42
42
  "h6",
43
43
  {
44
44
  className: `text-gray-600 font-600 group ${l && "!text-red-500"} ${r.label} ${e && "text-gray-300"}`,
45
- children: x
45
+ children: u
46
46
  }
47
47
  ),
48
48
  /* @__PURE__ */ o.jsxs(
@@ -50,20 +50,14 @@ const w = ({
50
50
  {
51
51
  htmlFor: t,
52
52
  className: `
53
- flex items-center justify-between gap-8 ${r.container}
54
-
55
- ${l && "!border-red-500"}
56
-
57
- bg-light
58
-
59
- w-full h-full rounded-full border
60
-
61
- ${s && !e ? "border-blue-200" : "border-blue-100"}
62
- ${!e && "group-hover:border-blue-300"}
63
- ${e && "cursor-not-allowed"}
53
+ flex items-center justify-between gap-8 bg-light
54
+ ${r.container} ${l && "!border-red-500"} rounded-full border
55
+ ${n && !e ? "border-blue-200" : "border-blue-100"}
56
+ ${!e && "group-hover:border-blue-300"}
57
+ ${e && "cursor-not-allowed"}
64
58
 
65
59
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
66
- ${n && "hover:!cursor-pointer"}
60
+ ${s && "hover:!cursor-pointer"}
67
61
  group-disabled:bg-gray-500
68
62
  `,
69
63
  children: [
@@ -71,23 +65,23 @@ const w = ({
71
65
  /* @__PURE__ */ o.jsx(
72
66
  "input",
73
67
  {
74
- ...d,
68
+ ...b,
75
69
  id: t,
76
70
  name: t,
77
71
  disabled: e,
78
72
  placeholder: i,
79
- value: s,
73
+ value: n,
80
74
  onChange: (f) => {
81
75
  p(f.target.value);
82
76
  },
83
- className: `group bg-transparent w-full h-full font-600 placeholder:font-600 ${r.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${n && "pointer-events-none !select-none !caret-transparent"}`
77
+ className: `group bg-transparent w-full h-full font-600 placeholder:font-600 ${r.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${s && "pointer-events-none !select-none !caret-transparent"}`
84
78
  }
85
79
  ),
86
80
  c && c
87
81
  ]
88
82
  }
89
83
  ),
90
- /* @__PURE__ */ o.jsx("h4", { className: `font-500 text-red-500 leading-none ${r.error}`, children: l && u(l || "", { x: u(t) }) })
84
+ /* @__PURE__ */ o.jsx("h4", { className: `font-500 text-red-500 leading-none ${r.error}`, children: l && x(l || "", { x: x(t) }) })
91
85
  ]
92
86
  }
93
87
  );
@@ -8,7 +8,7 @@ export type UncontrolledTextInputProps = {
8
8
  error?: string | undefined;
9
9
  disabled?: boolean;
10
10
  disabledInput?: boolean;
11
- size?: 'sm' | 'base';
11
+ size?: 'sm' | 'md';
12
12
  leftSide?: React.ReactNode;
13
13
  rightSide?: React.ReactNode;
14
14
  } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>;
@@ -4,11 +4,11 @@ import { translateBytes as O } from "../../../utils/files.js";
4
4
  import "../../../_virtual/lodash.js";
5
5
  import { FontAwesomeIcon as R } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
6
6
  import { useTheme as T } from "../../../hooks/useTheme.js";
7
- import U from "../Button/Button.js";
7
+ import { faCloudUpload as U } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
8
+ import z from "../Button/Button.js";
8
9
  import "react-hook-form";
9
10
  import "../../../constants/countries.js";
10
11
  import "../ImageProfileInput/ImageProfileInput.validators.js";
11
- import { faCloudUpload as z } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
12
12
  import A from "../TextButton/TextButton.js";
13
13
  import "fuse.js";
14
14
  import _ from "../LoadingProgress/LoadingProgress.js";
@@ -110,12 +110,12 @@ const le = ({
110
110
  /* @__PURE__ */ e.jsx("div", { className: "flex justify-center shrink-0", children: /* @__PURE__ */ e.jsx(
111
111
  R,
112
112
  {
113
- icon: z,
113
+ icon: U,
114
114
  className: "text-blue-500 text-2xl"
115
115
  }
116
116
  ) }),
117
117
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-start text-left grow", children: /* @__PURE__ */ e.jsx("h3", { className: "font-600 text-lg text-dark", children: l(m) }) }),
118
- /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(U, { color: "blue", variant: "transparent", children: l(h) }) }),
118
+ /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(z, { color: "blue", variant: "transparent", children: l(h) }) }),
119
119
  /* @__PURE__ */ e.jsx(
120
120
  "input",
121
121
  {
@@ -6,6 +6,7 @@ export * from './BoxContainer/index';
6
6
  export * from './Button/index';
7
7
  export * from './CenterModal/index';
8
8
  export * from './Checkbox/index';
9
+ export * from './Chip/index';
9
10
  export * from './CountryInput/index';
10
11
  export * from './CountryLabel/index';
11
12
  export * from './CountrySelectInput/index';
@@ -31,7 +32,6 @@ export * from './Toast/index';
31
32
  export * from './UncontrolledSelector/index';
32
33
  export * from './UncontrolledTextInput/index';
33
34
  export * from './UploadContainer/index';
34
- export * from './Tooltip/index';
35
35
  export * from './LoadingProgress/index';
36
36
  export * from './ThresholdCircleProgress/index';
37
37
  export * from './ThresholdProgressBar/index';
@@ -40,3 +40,4 @@ export * from './Switch/index';
40
40
  export * from './Pill/index';
41
41
  export * from './FilterPill/index';
42
42
  export * from './ClickAwayListener/index';
43
+ export * from './StepIndicator/index';
@@ -3,12 +3,12 @@ import { faChevronRight as le } from "../../../node_modules/@fortawesome/free-so
3
3
  import { faChevronLeft as ce } from "../../../node_modules/@fortawesome/pro-solid-svg-icons/index.js";
4
4
  import { useState as x, useEffect as I, useRef as U } from "react";
5
5
  import { FontAwesomeIcon as me } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
6
+ import { faChevronDown as de } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
6
7
  import "../../../_virtual/lodash.js";
7
- import { useTheme as de } from "../../../hooks/useTheme.js";
8
+ import { useTheme as pe } from "../../../hooks/useTheme.js";
8
9
  import R from "../FloatingMenu/FloatingMenu.js";
9
- import pe from "./PeriodToggle.js";
10
- import ue from "./TimeDisplay.js";
11
- import { faChevronDown as fe } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
10
+ import ue from "./PeriodToggle.js";
11
+ import fe from "./TimeDisplay.js";
12
12
  import { getColorVariants as ge } from "./CalendarSelector.styles.js";
13
13
  import "react-hook-form";
14
14
  import "../InformationContainer/InformationContainer.js";
@@ -46,7 +46,7 @@ const mt = ({
46
46
  }) => {
47
47
  const [n, w] = x(p), [O, j] = x(p), [f, Y] = x(p.getHours() % 12 || 12), [N, A] = x(
48
48
  p.getHours() >= 12 ? "PM" : "AM"
49
- ), [k, H] = x(0), { t: K } = de(), c = ge(b), [L, F] = x(!1), [$, S] = x(!1);
49
+ ), [k, H] = x(0), { t: K } = pe(), c = ge(b), [L, F] = x(!1), [$, S] = x(!1);
50
50
  I(() => {
51
51
  w(p), j(p), Y(p.getHours() % 12 || 12), A(p.getHours() >= 12 ? "PM" : "AM");
52
52
  }, [p]);
@@ -165,7 +165,7 @@ const mt = ({
165
165
  /^./,
166
166
  (t) => t.toUpperCase()
167
167
  ) }),
168
- /* @__PURE__ */ e.jsx(me, { icon: fe, className: "w-12 h-12" })
168
+ /* @__PURE__ */ e.jsx(me, { icon: de, className: "w-12 h-12" })
169
169
  ]
170
170
  }
171
171
  )
@@ -264,7 +264,7 @@ const mt = ({
264
264
  className: "!p-0 overflow-hidden",
265
265
  strategy: "fixed",
266
266
  children: /* @__PURE__ */ e.jsx(
267
- ue,
267
+ fe,
268
268
  {
269
269
  setHourMenuOpen: F,
270
270
  hourMenuOpen: L,
@@ -274,7 +274,7 @@ const mt = ({
274
274
  }
275
275
  ),
276
276
  /* @__PURE__ */ e.jsx(
277
- pe,
277
+ ue,
278
278
  {
279
279
  selectedPeriod: N,
280
280
  handlePeriodChange: te,
@@ -8,7 +8,7 @@ export type DateInputProps<T extends FieldValues = FieldValues> = {
8
8
  translateKey?: string;
9
9
  futureDates?: boolean;
10
10
  pastDates?: boolean;
11
- size?: "sm" | "base";
11
+ size?: "sm" | "md";
12
12
  };
13
13
  declare const DateInput: <T extends FieldValues = FieldValues>({ control, name, showTimeSelector, label, translateKey, placeholder, futureDates, pastDates, size, }: DateInputProps<T>) => React.ReactElement;
14
14
  export default DateInput;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface EmptyStateProps {
3
+ image?: string;
4
+ title: string;
5
+ subtitle: string;
6
+ className?: string;
7
+ }
8
+ declare const EmptyState: React.FC<EmptyStateProps>;
9
+ export default EmptyState;
@@ -0,0 +1,16 @@
1
+ import { j as e } from "../../../_virtual/jsx-runtime.js";
2
+ const c = ({
3
+ image: s,
4
+ title: t,
5
+ subtitle: a,
6
+ className: l = ""
7
+ }) => /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col items-center justify-center gap-24 p-8 text-center w-full h-full min-h-[300px] ${l}`, children: [
8
+ s && /* @__PURE__ */ e.jsx("img", { src: s, alt: t, draggable: !1, className: "select-none" }),
9
+ /* @__PURE__ */ e.jsxs("div", { className: "space-y-16 max-w-[300px] select-none", children: [
10
+ /* @__PURE__ */ e.jsx("h3", { className: "text-[20px] font-bold text-blue-900 tracking-wide leading-[100%]", children: t }),
11
+ /* @__PURE__ */ e.jsx("p", { className: "text-base text-gray-500 max-w-sm leading-[150%]", children: a })
12
+ ] })
13
+ ] });
14
+ export {
15
+ c as default
16
+ };
@@ -0,0 +1 @@
1
+ export { default as EmptyState } from './EmptyState';
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ export type Option = {
3
+ label: string;
4
+ value: string | number;
5
+ dividerBefore?: boolean;
6
+ colors?: {
7
+ bgColor?: string;
8
+ textColor?: string;
9
+ dotColor?: string;
10
+ };
11
+ };
12
+ interface MultiSelectDropdownProps {
13
+ label?: string;
14
+ options: Option[];
15
+ selectedValues: string[];
16
+ onUpdate: (newSelectedValues: string[]) => void;
17
+ placeholder?: string;
18
+ allowSearch?: boolean;
19
+ className?: string;
20
+ disabled?: boolean;
21
+ size?: 'sm' | 'md';
22
+ }
23
+ declare const MultiSelectDropdown: React.FC<MultiSelectDropdownProps>;
24
+ export default MultiSelectDropdown;
@@ -0,0 +1,208 @@
1
+ import { j as e } from "../../../_virtual/jsx-runtime.js";
2
+ import E, { useState as b, useRef as v, useCallback as _ } from "react";
3
+ import { useFloating as q, useClick as H, useDismiss as Y, useInteractions as A, useTransitionStyles as G } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
4
+ import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
5
+ import "../../../_virtual/lodash.js";
6
+ import "../../../contexts/themeContext.js";
7
+ import "react-hook-form";
8
+ import "../InformationContainer/InformationContainer.js";
9
+ import "react-dom";
10
+ import J from "../../atoms/Checkbox/Checkbox.js";
11
+ import "../../../constants/countries.js";
12
+ import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
13
+ import "fuse.js";
14
+ import { autoUpdate as K } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
15
+ import { offset as Q, flip as U, shift as X, size as Z, arrow as V } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
16
+ const fe = ({
17
+ label: p,
18
+ options: u,
19
+ selectedValues: n,
20
+ onUpdate: m,
21
+ placeholder: k = "Seleccionar opciones",
22
+ allowSearch: w = !0,
23
+ className: N = "",
24
+ disabled: r = !1,
25
+ size: C = "md"
26
+ }) => {
27
+ var y;
28
+ const [l, h] = b(!1), [i, f] = b(""), $ = v(null), z = v(null), o = {
29
+ sm: {
30
+ container: "px-16 py-8",
31
+ text: "text-sm",
32
+ label: "text-sm",
33
+ icon: "w-12 h-12",
34
+ checkboxSize: 16,
35
+ gap: "gap-8",
36
+ searchText: "text-sm",
37
+ searchIcon: "size-12"
38
+ },
39
+ md: {
40
+ container: "p-16",
41
+ text: "text-14",
42
+ label: "text-14",
43
+ icon: "w-16 h-16",
44
+ checkboxSize: 20,
45
+ gap: "gap-8",
46
+ searchText: "text-14",
47
+ searchIcon: "size-16"
48
+ }
49
+ }[C], { x: S, y: L, strategy: M, refs: x, context: d } = q({
50
+ open: l && !r,
51
+ onOpenChange: (t) => !r && h(t),
52
+ middleware: [
53
+ Q(8),
54
+ U(),
55
+ X({ padding: 8 }),
56
+ Z({
57
+ apply({ availableHeight: t, elements: s }) {
58
+ Object.assign(s.floating.style, {
59
+ maxHeight: `${Math.min(t - 10, 500)}px`
60
+ });
61
+ },
62
+ padding: 8
63
+ }),
64
+ V({ element: z })
65
+ ],
66
+ placement: "bottom-start",
67
+ whileElementsMounted: K
68
+ }), R = H(d, { enabled: !r }), B = Y(d), { getReferenceProps: I, getFloatingProps: T } = A([R, B]), { isMounted: F, styles: O } = G(d, {
69
+ duration: { open: 200, close: 150 },
70
+ initial: { opacity: 0, transform: "translateY(-4px)" }
71
+ }), P = _((t, s) => {
72
+ if (r) return;
73
+ let a;
74
+ s ? a = n.includes(t) ? n : [...n, t] : a = n.filter((c) => c !== t), m(a);
75
+ }, [n, m, r]), g = u.filter(
76
+ (t) => t.label.toLowerCase().includes(i.toLowerCase())
77
+ ), W = () => {
78
+ if (n.length === 0) return k;
79
+ const t = u.filter((s) => n.includes(s.value)).map((s) => s.label);
80
+ return t.length === 1 ? t[0] : `${t.length} seleccionados`;
81
+ }, D = I({
82
+ onClick: () => !r && h(!l)
83
+ });
84
+ return /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col select-none ${o.gap} ${r ? "cursor-not-allowed" : ""} ${N}`, children: [
85
+ p && /* @__PURE__ */ e.jsx("h6", { className: `text-gray-600 font-600 ${o.label} ${r ? "text-gray-300" : ""}`, children: p }),
86
+ /* @__PURE__ */ e.jsxs(
87
+ "div",
88
+ {
89
+ ref: x.setReference,
90
+ className: `
91
+ flex items-center justify-between rounded-full border transition-all duration-200
92
+ ${o.container}
93
+ ${r ? "bg-gray-50 border-gray-200 cursor-not-allowed" : "bg-blue-50 cursor-pointer"}
94
+ ${!r && (l ? "border-blue-500" : "border-blue-100 hover:border-blue-300")}
95
+ `,
96
+ ...D,
97
+ children: [
98
+ /* @__PURE__ */ e.jsx("span", { className: `flex-grow text-left truncate font-600 ${o.text} ${r ? "text-gray-300" : "text-gray-500"}`, children: W() }),
99
+ /* @__PURE__ */ e.jsx(
100
+ "svg",
101
+ {
102
+ className: `${o.icon} transition-transform ${l ? "rotate-180" : ""} ${r ? "text-gray-300" : "text-gray-500"}`,
103
+ fill: "none",
104
+ stroke: "currentColor",
105
+ viewBox: "0 0 24 24",
106
+ children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M19 9l-7 7-7-7" })
107
+ }
108
+ )
109
+ ]
110
+ }
111
+ ),
112
+ F && !r && /* @__PURE__ */ e.jsxs(
113
+ "div",
114
+ {
115
+ ref: x.setFloating,
116
+ style: {
117
+ position: M,
118
+ top: L ?? 0,
119
+ left: S ?? 0,
120
+ ...O,
121
+ width: (y = x.reference.current) == null ? void 0 : y.clientWidth,
122
+ zIndex: 50
123
+ },
124
+ className: "bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",
125
+ ...T(),
126
+ children: [
127
+ w && /* @__PURE__ */ e.jsx("div", { className: "sticky top-0 bg-white p-8 border-b border-gray-100 z-20", children: /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
128
+ /* @__PURE__ */ e.jsx("div", { className: "absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none", children: /* @__PURE__ */ e.jsx("svg", { className: `${o.searchIcon} text-gray-400`, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
129
+ /* @__PURE__ */ e.jsx(
130
+ "input",
131
+ {
132
+ ref: $,
133
+ type: "text",
134
+ className: `w-full py-6 pl-36 pr-12 rounded-full focus:outline-none bg-gray-50 ${o.searchText}`,
135
+ placeholder: "Buscar...",
136
+ value: i,
137
+ onChange: (t) => f(t.target.value),
138
+ onClick: (t) => t.stopPropagation(),
139
+ autoFocus: !0
140
+ }
141
+ ),
142
+ i && /* @__PURE__ */ e.jsx(
143
+ "button",
144
+ {
145
+ className: "absolute inset-y-0 right-0 pr-12 flex items-center",
146
+ onClick: (t) => {
147
+ t.stopPropagation(), f("");
148
+ },
149
+ children: /* @__PURE__ */ e.jsx("svg", { className: "h-16 w-16 text-gray-400 hover:text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" }) })
150
+ }
151
+ )
152
+ ] }) }),
153
+ /* @__PURE__ */ e.jsx("div", { className: "max-h-[450px] overflow-y-auto", children: g.length > 0 ? /* @__PURE__ */ e.jsx("div", { className: "py-4", children: g.map((t) => {
154
+ var a, c, j;
155
+ const s = n.includes(t.value);
156
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
157
+ t.dividerBefore && /* @__PURE__ */ e.jsx("div", { className: "px-16 py-8", children: /* @__PURE__ */ e.jsx("hr", { className: "border-t border-gray-200" }) }),
158
+ /* @__PURE__ */ e.jsxs(
159
+ "div",
160
+ {
161
+ className: "flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer gap-12",
162
+ onClick: () => P(t.value, !s),
163
+ children: [
164
+ /* @__PURE__ */ e.jsx(
165
+ J,
166
+ {
167
+ active: s,
168
+ size: o.checkboxSize,
169
+ variant: "square",
170
+ className: "flex-shrink-0"
171
+ }
172
+ ),
173
+ /* @__PURE__ */ e.jsxs(
174
+ "div",
175
+ {
176
+ className: `flex items-center rounded-[8px] py-4 px-8 gap-[6px] overflow-hidden ${((a = t.colors) == null ? void 0 : a.bgColor) || ""} ${((c = t.colors) == null ? void 0 : c.textColor) || ""}`,
177
+ children: [
178
+ ((j = t.colors) == null ? void 0 : j.dotColor) && /* @__PURE__ */ e.jsx(
179
+ "span",
180
+ {
181
+ className: "size-6 rounded-full flex-shrink-0",
182
+ style: { background: t.colors.dotColor }
183
+ }
184
+ ),
185
+ /* @__PURE__ */ e.jsx("span", { className: `${o.text} font-semibold truncate`, children: t.label })
186
+ ]
187
+ }
188
+ )
189
+ ]
190
+ }
191
+ )
192
+ ] }, t.value);
193
+ }) }) : /* @__PURE__ */ e.jsxs("div", { className: "px-16 py-16 text-center text-gray-500", children: [
194
+ /* @__PURE__ */ e.jsx("svg", { className: "mx-auto h-24 w-24 text-gray-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) }),
195
+ /* @__PURE__ */ e.jsxs("p", { className: "mt-8 text-body-s", children: [
196
+ "No se encontraron resultados para “",
197
+ i,
198
+ "”"
199
+ ] })
200
+ ] }) })
201
+ ]
202
+ }
203
+ )
204
+ ] });
205
+ };
206
+ export {
207
+ fe as default
208
+ };
@@ -0,0 +1 @@
1
+ export { default as MultiSelectDropdown } from './MultiSelectDropdown';
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ export type Option = {
3
+ label: string;
4
+ value: string | number;
5
+ dividerBefore?: boolean;
6
+ colors?: {
7
+ bgColor?: string;
8
+ textColor?: string;
9
+ dotColor?: string;
10
+ };
11
+ };
12
+ interface SingleSelectDropdownProps {
13
+ label?: string;
14
+ options: Option[];
15
+ selectedValue?: string | number | null;
16
+ onUpdate: (value: string | number | null) => void;
17
+ placeholder?: string;
18
+ allowSearch?: boolean;
19
+ className?: string;
20
+ disabled?: boolean;
21
+ size?: 'sm' | 'md';
22
+ showRadio?: boolean;
23
+ }
24
+ declare const SingleSelectDropdown: React.FC<SingleSelectDropdownProps>;
25
+ export default SingleSelectDropdown;