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
@@ -0,0 +1,212 @@
1
+ import { j as e } from "../../../_virtual/jsx-runtime.js";
2
+ import Y, { useState as N, useRef as w } from "react";
3
+ import { useFloating as q, useClick as A, useDismiss as G, useInteractions as J, useTransitionStyles as K } 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 Q 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 X } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
15
+ import { offset as Z, flip as V, shift as ee, size as te, arrow as re } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
16
+ const je = ({
17
+ label: u,
18
+ options: m,
19
+ selectedValue: a = null,
20
+ onUpdate: $,
21
+ placeholder: C = "Seleccionar opción",
22
+ allowSearch: z = !0,
23
+ className: S = "",
24
+ disabled: r = !1,
25
+ size: L = "md",
26
+ showRadio: M = !1
27
+ }) => {
28
+ var f, g, y, j;
29
+ const [n, i] = N(!1), [l, c] = N(""), R = w(null), B = w(null), s = {
30
+ sm: {
31
+ container: "px-16 py-8",
32
+ text: "text-sm",
33
+ label: "text-sm",
34
+ icon: "w-12 h-12",
35
+ checkboxSize: 16,
36
+ gap: "gap-8",
37
+ searchText: "text-sm",
38
+ searchIcon: "size-12"
39
+ },
40
+ md: {
41
+ container: "p-16",
42
+ text: "text-14",
43
+ label: "text-14",
44
+ icon: "w-16 h-16",
45
+ checkboxSize: 20,
46
+ gap: "gap-8",
47
+ searchText: "text-14",
48
+ searchIcon: "size-16"
49
+ }
50
+ }[L], { x: I, y: O, strategy: T, refs: x, context: d } = q({
51
+ open: n && !r,
52
+ onOpenChange: (t) => !r && i(t),
53
+ middleware: [
54
+ Z(8),
55
+ V(),
56
+ ee({ padding: 8 }),
57
+ te({
58
+ apply({ availableHeight: t, elements: p }) {
59
+ Object.assign(p.floating.style, {
60
+ maxHeight: `${Math.min(t - 10, 500)}px`
61
+ });
62
+ },
63
+ padding: 8
64
+ }),
65
+ re({ element: B })
66
+ ],
67
+ placement: "bottom-start",
68
+ whileElementsMounted: X
69
+ }), F = A(d, { enabled: !r }), P = G(d), { getReferenceProps: W, getFloatingProps: D } = J([F, P]), { isMounted: E, styles: _ } = K(d, {
70
+ duration: { open: 200, close: 150 },
71
+ initial: { opacity: 0, transform: "translateY(-4px)" }
72
+ }), o = m.find((t) => t.value === a), H = (t) => {
73
+ r || ($(a === t ? null : t), i(!1), c(""));
74
+ }, h = m.filter(
75
+ (t) => t.label.toLowerCase().includes(l.toLowerCase())
76
+ ), U = W({
77
+ onClick: () => !r && i(!n)
78
+ });
79
+ return /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col select-none ${s.gap} ${r ? "cursor-not-allowed" : ""} ${S}`, children: [
80
+ u && /* @__PURE__ */ e.jsx("h6", { className: `text-gray-600 font-600 ${s.label} ${r ? "text-gray-300" : ""}`, children: u }),
81
+ /* @__PURE__ */ e.jsxs(
82
+ "div",
83
+ {
84
+ ref: x.setReference,
85
+ className: `
86
+ flex items-center justify-between rounded-full border transition-all duration-200
87
+ ${s.container}
88
+ ${r ? "bg-gray-50 border-gray-200 cursor-not-allowed" : "bg-blue-50 cursor-pointer"}
89
+ ${!r && (n ? "border-blue-500" : "border-blue-100 hover:border-blue-300")}
90
+ `,
91
+ ...U,
92
+ children: [
93
+ o ? /* @__PURE__ */ e.jsxs("div", { className: `flex items-center gap-[6px] overflow-hidden ${((f = o.colors) == null ? void 0 : f.bgColor) || ""} ${((g = o.colors) == null ? void 0 : g.textColor) || ""} ${o.colors ? "rounded-[8px] py-4 px-8" : ""}`, children: [
94
+ ((y = o.colors) == null ? void 0 : y.dotColor) && /* @__PURE__ */ e.jsx(
95
+ "span",
96
+ {
97
+ className: "size-6 rounded-full flex-shrink-0",
98
+ style: { background: o.colors.dotColor }
99
+ }
100
+ ),
101
+ /* @__PURE__ */ e.jsx("span", { className: `${s.text} font-semibold truncate`, children: o.label })
102
+ ] }) : /* @__PURE__ */ e.jsx("span", { className: `flex-grow text-left truncate font-600 ${s.text} ${r ? "text-gray-300" : "text-gray-500"}`, children: C }),
103
+ /* @__PURE__ */ e.jsx(
104
+ "svg",
105
+ {
106
+ className: `${s.icon} transition-transform ${n ? "rotate-180" : ""} ${r ? "text-gray-300" : "text-gray-500"}`,
107
+ fill: "none",
108
+ stroke: "currentColor",
109
+ viewBox: "0 0 24 24",
110
+ children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M19 9l-7 7-7-7" })
111
+ }
112
+ )
113
+ ]
114
+ }
115
+ ),
116
+ E && !r && /* @__PURE__ */ e.jsxs(
117
+ "div",
118
+ {
119
+ ref: x.setFloating,
120
+ style: {
121
+ position: T,
122
+ top: O ?? 0,
123
+ left: I ?? 0,
124
+ ..._,
125
+ width: (j = x.reference.current) == null ? void 0 : j.clientWidth,
126
+ zIndex: 50
127
+ },
128
+ className: "bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",
129
+ ...D(),
130
+ children: [
131
+ z && /* @__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: [
132
+ /* @__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: `${s.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" }) }) }),
133
+ /* @__PURE__ */ e.jsx(
134
+ "input",
135
+ {
136
+ ref: R,
137
+ type: "text",
138
+ className: `w-full py-6 pl-36 pr-12 rounded-full focus:outline-none bg-gray-50 ${s.searchText}`,
139
+ placeholder: "Buscar...",
140
+ value: l,
141
+ onChange: (t) => c(t.target.value),
142
+ onClick: (t) => t.stopPropagation(),
143
+ autoFocus: !0
144
+ }
145
+ ),
146
+ l && /* @__PURE__ */ e.jsx(
147
+ "button",
148
+ {
149
+ className: "absolute inset-y-0 right-0 pr-12 flex items-center",
150
+ onClick: (t) => {
151
+ t.stopPropagation(), c("");
152
+ },
153
+ 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" }) })
154
+ }
155
+ )
156
+ ] }) }),
157
+ /* @__PURE__ */ e.jsx("div", { className: "max-h-[450px] overflow-y-auto", children: h.length > 0 ? /* @__PURE__ */ e.jsx("div", { className: "py-4", children: h.map((t) => {
158
+ var v, b, k;
159
+ const p = a === t.value;
160
+ return /* @__PURE__ */ e.jsxs(Y.Fragment, { children: [
161
+ t.dividerBefore && /* @__PURE__ */ e.jsx("div", { className: "px-16 py-8", children: /* @__PURE__ */ e.jsx("hr", { className: "border-t border-gray-200" }) }),
162
+ /* @__PURE__ */ e.jsxs(
163
+ "div",
164
+ {
165
+ className: "flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer gap-12",
166
+ onClick: () => H(t.value),
167
+ children: [
168
+ M && /* @__PURE__ */ e.jsx(
169
+ Q,
170
+ {
171
+ active: p,
172
+ size: s.checkboxSize,
173
+ variant: "rounded",
174
+ className: "flex-shrink-0"
175
+ }
176
+ ),
177
+ /* @__PURE__ */ e.jsxs(
178
+ "div",
179
+ {
180
+ className: `flex items-center rounded-[8px] py-4 px-8 gap-[6px] overflow-hidden ${((v = t.colors) == null ? void 0 : v.bgColor) || ""} ${((b = t.colors) == null ? void 0 : b.textColor) || ""}`,
181
+ children: [
182
+ ((k = t.colors) == null ? void 0 : k.dotColor) && /* @__PURE__ */ e.jsx(
183
+ "span",
184
+ {
185
+ className: "size-6 rounded-full flex-shrink-0",
186
+ style: { background: t.colors.dotColor }
187
+ }
188
+ ),
189
+ /* @__PURE__ */ e.jsx("span", { className: `${s.text} font-semibold truncate`, children: t.label })
190
+ ]
191
+ }
192
+ )
193
+ ]
194
+ }
195
+ )
196
+ ] }, t.value);
197
+ }) }) : /* @__PURE__ */ e.jsxs("div", { className: "px-16 py-16 text-center text-gray-500", children: [
198
+ /* @__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" }) }),
199
+ /* @__PURE__ */ e.jsxs("p", { className: "mt-8 text-body-s", children: [
200
+ "No se encontraron resultados para “",
201
+ l,
202
+ "”"
203
+ ] })
204
+ ] }) })
205
+ ]
206
+ }
207
+ )
208
+ ] });
209
+ };
210
+ export {
211
+ je as default
212
+ };
@@ -0,0 +1 @@
1
+ export { default as SingleSelectDropdown } from './SingleSelectDropdown';
@@ -1,3 +1,3 @@
1
- import { StepperProps } from './Stepper.types';
1
+ import { StepperProps } from '../../../types';
2
2
  declare const Stepper: React.FC<StepperProps>;
3
3
  export default Stepper;
@@ -1,249 +1,96 @@
1
1
  import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- import { faCheck as S, faClockSix as k } from "../../../node_modules/@fortawesome/pro-light-svg-icons/index.js";
3
- import { FontAwesomeIcon as h } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
4
- import { useState as y, useEffect as $ } from "react";
5
- import { useTheme as v } from "../../../hooks/useTheme.js";
6
- import { resolveStepperColors as w } from "./Stepper.styles.js";
7
- import { motion as m } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
8
- import { AnimatePresence as I } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
9
- const D = ({
10
- status: a,
11
- label: u,
12
- shouldAnimate: t,
13
- color: j,
14
- index: p
15
- }) => {
16
- const { t: s } = v(), o = a === "done", i = a === "focus", {
17
- // completedBgColor,
18
- focusBorderColor: c,
19
- pendingBorderColor: l,
20
- iconActiveColor: f
21
- } = w(j);
22
- return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-8 h-fit", children: [
23
- /* @__PURE__ */ e.jsx(
24
- m.div,
25
- {
26
- initial: t ? !1 : {
27
- backgroundColor: o ? "#E0F1ED" : i ? c : "white",
28
- borderWidth: i ? "1px" : "0px",
29
- borderColor: i ? c : l
30
- },
31
- animate: {
32
- backgroundColor: o ? "#E0F1ED" : i ? c : "white",
33
- borderWidth: i || !o ? "1px" : "0px",
34
- borderColor: i ? c : l
35
- },
36
- transition: { duration: t ? 0.3 : 0, ease: "easeOut" },
37
- className: "min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",
38
- children: /* @__PURE__ */ e.jsx(
39
- m.div,
40
- {
41
- initial: t ? !1 : { color: o ? "rgb(34, 197, 94)" : "rgb(209, 213, 219)" },
42
- animate: {
43
- color: o || i ? "rgb(34, 197, 94)" : "rgb(209, 213, 219)"
44
- },
45
- transition: { duration: t ? 0.2 : 0 },
46
- className: "flex items-center justify-center",
47
- children: /* @__PURE__ */ e.jsx(I, { mode: "wait", children: o || i ? /* @__PURE__ */ e.jsx(
48
- m.div,
49
- {
50
- initial: t ? { opacity: 0, scale: 0.8, rotate: -180 } : { opacity: 1, scale: 1, rotate: 0 },
51
- animate: { opacity: 1, scale: 1, rotate: 0 },
52
- exit: { opacity: 0, scale: 0.8, rotate: 180 },
53
- transition: { duration: t ? 0.3 : 0 },
54
- className: "flex items-center justify-center",
55
- children: o ? /* @__PURE__ */ e.jsx(
56
- h,
57
- {
58
- icon: S,
59
- className: `w-14 h-14 min-w-14 min-h-14 ${f}`
60
- }
61
- ) : /* @__PURE__ */ e.jsx("div", { className: "text-white leading-none font-500 text-body-s flex items-center justify-center mb-1", children: p + 1 })
62
- },
63
- "check"
64
- ) : /* @__PURE__ */ e.jsx(
65
- m.div,
66
- {
67
- initial: t ? { opacity: 0, scale: 0.8, rotate: -180 } : { opacity: 1, scale: 1, rotate: 0 },
68
- animate: { opacity: 1, scale: 1, rotate: 0 },
69
- exit: { opacity: 0, scale: 0.8, rotate: 180 },
70
- transition: { duration: t ? 0.3 : 0 },
71
- className: "flex items-center justify-center",
72
- children: /* @__PURE__ */ e.jsx(
73
- h,
74
- {
75
- icon: k,
76
- className: "w-14 h-14 min-w-14 min-h-14"
77
- }
78
- )
79
- },
80
- "clock"
81
- ) })
82
- }
83
- )
84
- }
85
- ),
86
- /* @__PURE__ */ e.jsx(
87
- "span",
88
- {
89
- className: `text-body-s transition-all duration-300 text-center w-full font-500
90
-
91
- `,
92
- style: {
93
- color: i ? c : o ? "#000" : "#8F9095"
94
- },
95
- children: s(u)
96
- }
97
- )
2
+ import { useState as f, useEffect as w } from "react";
3
+ import { useTheme as u } from "../../../hooks/useTheme.js";
4
+ import { resolveStepperColors as x } from "./Stepper.styles.js";
5
+ import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
6
+ import "../../../_virtual/lodash.js";
7
+ import "react-hook-form";
8
+ import "../InformationContainer/InformationContainer.js";
9
+ import "react-dom";
10
+ import "../../../constants/countries.js";
11
+ import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
12
+ import "fuse.js";
13
+ import v from "../../atoms/StepIndicator/StepIndicator.js";
14
+ const z = (t) => {
15
+ const { t: i } = u(), { labelColor: r } = x(t.color);
16
+ return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-8 h-fit min-w-0", children: [
17
+ /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(v, { ...t }) }),
18
+ t.label && /* @__PURE__ */ e.jsx("span", { className: `text-body-s transition-all duration-300 font-semibold truncate ${r}`, children: i(t.label) })
98
19
  ] });
99
- }, W = ({
100
- status: a,
101
- label: u,
102
- shouldAnimate: t,
103
- color: j
104
- }) => {
105
- const { t: p } = v(), s = a === "done", o = a === "focus", {
106
- completedBgColor: i,
107
- focusBorderColor: c,
108
- pendingBorderColor: l,
109
- iconActiveColor: f
110
- } = w(j);
111
- return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-8 h-fit", children: [
112
- /* @__PURE__ */ e.jsx(
113
- m.div,
114
- {
115
- initial: t ? !1 : {
116
- backgroundColor: s ? i : "white",
117
- borderWidth: o || !s ? "1px" : "0px",
118
- borderColor: o ? c : l
119
- },
120
- animate: {
121
- backgroundColor: s ? i : "white",
122
- borderWidth: o || !s ? "1px" : "0px",
123
- borderColor: o ? c : l
124
- },
125
- transition: { duration: t ? 0.3 : 0, ease: "easeOut" },
126
- className: "min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",
127
- children: /* @__PURE__ */ e.jsx(
128
- m.div,
129
- {
130
- initial: t ? !1 : {
131
- color: o || s ? "rgb(34, 197, 94)" : "rgb(209, 213, 219)"
132
- },
133
- animate: {
134
- color: o || s ? "rgb(34, 197, 94)" : "rgb(209, 213, 219)"
135
- },
136
- transition: { duration: t ? 0.2 : 0 },
137
- className: "flex items-center justify-center",
138
- children: /* @__PURE__ */ e.jsx(I, { mode: "wait", children: s || o ? /* @__PURE__ */ e.jsx(
139
- m.div,
140
- {
141
- initial: t ? { opacity: 0, scale: 0.8, rotate: -180 } : { opacity: 1, scale: 1, rotate: 0 },
142
- animate: { opacity: 1, scale: 1, rotate: 0 },
143
- exit: { opacity: 0, scale: 0.8, rotate: 180 },
144
- transition: { duration: t ? 0.3 : 0 },
145
- className: "flex items-center justify-center",
146
- children: /* @__PURE__ */ e.jsx(
147
- h,
148
- {
149
- icon: S,
150
- className: `w-14 h-14 min-w-14 min-h-14 ${f}`
151
- }
152
- )
153
- },
154
- "check"
155
- ) : /* @__PURE__ */ e.jsx(
156
- m.div,
157
- {
158
- initial: t ? { opacity: 0, scale: 0.8, rotate: -180 } : { opacity: 1, scale: 1, rotate: 0 },
159
- animate: { opacity: 1, scale: 1, rotate: 0 },
160
- exit: { opacity: 0, scale: 0.8, rotate: 180 },
161
- transition: { duration: t ? 0.3 : 0 },
162
- className: "flex items-center justify-center",
163
- children: /* @__PURE__ */ e.jsx(
164
- h,
165
- {
166
- icon: k,
167
- className: "w-14 h-14 min-w-14 min-h-14"
168
- }
169
- )
170
- },
171
- "clock"
172
- ) })
173
- }
174
- )
175
- }
176
- ),
177
- /* @__PURE__ */ e.jsx(
178
- "span",
179
- {
180
- className: `text-body-s font-medium transition-all duration-300 text-center w-full ${s || o ? "text-black" : "text-gray-400"}`,
181
- children: p(u)
182
- }
183
- )
20
+ }, I = (t) => {
21
+ const { t: i } = u(), { labelColor: r } = x(t.color);
22
+ return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center gap-8 h-fit min-w-fit", children: [
23
+ /* @__PURE__ */ e.jsx(v, { ...t }),
24
+ t.label && /* @__PURE__ */ e.jsx("span", { className: `text-body-s transition-all duration-300 text-center font-semibold whitespace-nowrap ${r}`, children: i(t.label) })
184
25
  ] });
185
- }, J = ({
186
- steps: a,
187
- direction: u = "horizontal",
188
- color: t
26
+ }, D = ({
27
+ steps: t,
28
+ direction: i = "horizontal",
29
+ color: r
189
30
  }) => {
190
- const { defaultColorScheme: j } = v(), p = t || j, { lineActiveColor: s, lineGradientFrom: o } = w(p), [i, c] = y([]), [l, f] = y(null), [g, z] = y(!1), C = a.findIndex((n) => !n.completed), b = (n) => C === n;
191
- $(() => {
192
- const n = a.map(
193
- (r, d) => b(d) ? "focus" : r.completed ? "done" : "pending"
31
+ const { defaultColorScheme: b } = u(), c = r || b, s = x(c), [S, p] = f([]), [h, g] = f(null), [d, N] = f(!1), j = t.findIndex((o) => !o.completed), m = (o) => j === o;
32
+ w(() => {
33
+ const o = t.map(
34
+ (l, n) => m(n) ? "focus" : l.completed ? "done" : "pending"
194
35
  );
195
- if (!g)
196
- c(n), z(!0), f(null);
36
+ if (!d)
37
+ p(o), N(!0), g(null);
197
38
  else {
198
- const r = n.findIndex(
199
- (d, x) => d !== i[x]
39
+ const l = o.findIndex(
40
+ (n, a) => n !== S[a]
200
41
  );
201
- f(r !== -1 ? r : null), c(n);
42
+ g(l !== -1 ? l : null), p(o);
202
43
  }
203
- }, [a, C]);
204
- const F = () => /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-16 relative", children: a.map((n, r) => {
205
- var N;
206
- const d = b(r - 1) ? "focus" : (N = a[r - 1]) != null && N.completed ? "done" : "pending", x = b(r) ? "focus" : n.completed ? "done" : "pending", E = g && l === r;
207
- return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-10 relative", children: [
208
- r !== 0 && /* @__PURE__ */ e.jsx(
44
+ }, [t, j]);
45
+ const C = () => /* @__PURE__ */ e.jsx("div", { className: "flex flex-col h-full w-full", children: t.map((o, l) => {
46
+ const n = m(l) ? "focus" : o.completed ? "done" : "pending", a = d && h === l;
47
+ return /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col ${l < t.length - 1 ? "flex-1" : "flex-initial"}`, children: [
48
+ /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-4 z-10", children: /* @__PURE__ */ e.jsx(
49
+ z,
50
+ {
51
+ index: l,
52
+ status: n,
53
+ shouldAnimate: a,
54
+ label: o.label,
55
+ color: c
56
+ }
57
+ ) }),
58
+ l < t.length - 1 && /* @__PURE__ */ e.jsx("div", { className: "flex h-full w-[35px] justify-center my-4", children: /* @__PURE__ */ e.jsx(
209
59
  "div",
210
60
  {
211
- className: `absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${x === "done" || x === "focus" ? s : d === "done" || d === "focus" ? `bg-gradient-to-b ${o} to-[rgb(243,244,246)]` : "bg-[rgb(243,244,246)]"}`
61
+ className: `w-[1.5px] h-full transition-all duration-500 ${n === "done" ? s.lineActiveColor : n === "focus" ? `bg-gradient-to-b ${s.lineGradientFrom} ${s.lineGradientTo}` : ""}`,
62
+ style: {
63
+ backgroundColor: n === "pending" ? s.pendingBgColor : void 0
64
+ }
212
65
  }
213
- ),
214
- /* @__PURE__ */ e.jsx(
215
- D,
66
+ ) })
67
+ ] }, l);
68
+ }) }), $ = () => /* @__PURE__ */ e.jsx("div", { className: "w-full flex items-start", children: t.map((o, l) => {
69
+ const n = m(l) ? "focus" : o.completed ? "done" : "pending", a = d && h === l;
70
+ return /* @__PURE__ */ e.jsxs("div", { className: `flex items-start ${l < t.length - 1 ? "flex-1" : "flex-initial"}`, children: [
71
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-center z-10", children: /* @__PURE__ */ e.jsx(
72
+ I,
216
73
  {
217
- index: r,
218
- status: x,
219
- shouldAnimate: E,
220
- label: n.label,
221
- color: p
74
+ index: l,
75
+ status: n,
76
+ shouldAnimate: a,
77
+ label: o.label,
78
+ color: c
222
79
  }
223
- )
224
- ] }, r);
225
- }) }), B = () => /* @__PURE__ */ e.jsx("div", { className: "w-full flex items-center gap-12", children: a.map((n, r) => {
226
- const d = b(r) ? "focus" : n.completed ? "done" : "pending", x = g && l === r;
227
- return /* @__PURE__ */ e.jsx(
228
- "div",
229
- {
230
- className: "flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",
231
- children: /* @__PURE__ */ e.jsx(
232
- W,
233
- {
234
- index: r,
235
- status: d,
236
- shouldAnimate: x,
237
- label: n.label,
238
- color: p
80
+ ) }),
81
+ l < t.length - 1 && /* @__PURE__ */ e.jsx(
82
+ "div",
83
+ {
84
+ className: `flex-1 h-[1.5px] mt-[16px] mx-4 transition-all duration-500 ${n === "done" ? s.lineActiveColor : n === "focus" ? `bg-gradient-to-r ${s.lineGradientFrom} ${s.lineGradientTo}` : ""}`,
85
+ style: {
86
+ backgroundColor: n === "pending" ? s.pendingBgColor : void 0
239
87
  }
240
- )
241
- },
242
- r
243
- );
88
+ }
89
+ )
90
+ ] }, l);
244
91
  }) });
245
- return u === "horizontal" ? /* @__PURE__ */ e.jsx(B, {}) : /* @__PURE__ */ e.jsx(F, {});
92
+ return i === "horizontal" ? /* @__PURE__ */ e.jsx($, {}) : /* @__PURE__ */ e.jsx(C, {});
246
93
  };
247
94
  export {
248
- J as default
95
+ D as default
249
96
  };
@@ -1,11 +1,15 @@
1
1
  import { Color } from '../../../types/styleValues';
2
2
  interface StepperColorConfig {
3
+ focusIconColor: string;
4
+ completedIconColor: string;
5
+ pendingIconColor: string;
6
+ labelColor: string;
7
+ focusBgColor: string;
3
8
  completedBgColor: string;
4
- focusBorderColor: string;
5
- pendingBorderColor: string;
6
- iconActiveColor: string;
9
+ pendingBgColor: string;
7
10
  lineActiveColor: string;
8
11
  lineGradientFrom: string;
12
+ lineGradientTo: string;
9
13
  }
10
14
  export declare const resolveStepperColors: (color: Color) => StepperColorConfig;
11
15
  export {};
@@ -1,26 +1,34 @@
1
1
  const e = {
2
- completedBgColor: "#dae2fb",
3
- focusBorderColor: "#4570EB",
4
- pendingBorderColor: "#ABACAF70",
5
- iconActiveColor: "text-blue-500",
6
- lineActiveColor: "bg-blue-500",
7
- lineGradientFrom: "from-blue-500"
8
- }, r = {
2
+ focusIconColor: "text-white",
3
+ completedIconColor: "text-blue-500",
4
+ pendingIconColor: "text-blue-500",
5
+ labelColor: "text-blue-500",
6
+ focusBgColor: "#4570EB",
7
+ completedBgColor: "#CAD6F9",
8
+ pendingBgColor: "#ECF1FD",
9
+ lineActiveColor: "bg-blue-200",
10
+ lineGradientFrom: "from-blue-500",
11
+ lineGradientTo: "to-blue-200"
12
+ }, l = {
13
+ focusIconColor: "text-white",
14
+ completedIconColor: "text-aqua-500",
15
+ pendingIconColor: "text-aqua-500",
16
+ labelColor: "text-aqua-500",
17
+ focusBgColor: "#1DA696",
9
18
  completedBgColor: "#C7F9F5",
10
- focusBorderColor: "#1DA696",
11
- pendingBorderColor: "#ABACAF70",
12
- iconActiveColor: "text-aqua-500",
13
- lineActiveColor: "bg-aqua-500",
14
- lineGradientFrom: "from-aqua-500"
15
- }, l = (o) => {
19
+ pendingBgColor: "#C7F9F5",
20
+ lineActiveColor: "bg-aqua-200",
21
+ lineGradientFrom: "from-aqua-500",
22
+ lineGradientTo: "to-aqua-200"
23
+ }, t = (o) => {
16
24
  switch (o) {
17
25
  case "aqua":
18
- return r;
26
+ return l;
19
27
  case "blue":
20
28
  default:
21
29
  return e;
22
30
  }
23
31
  };
24
32
  export {
25
- l as resolveStepperColors
33
+ t as resolveStepperColors
26
34
  };
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from 'react';
2
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
+ type TooltipLocation = 'top' | 'bottom' | 'left' | 'right';
4
+ interface TooltipProps {
5
+ text: string;
6
+ children: ReactNode;
7
+ icon?: IconDefinition;
8
+ location?: TooltipLocation;
9
+ childClassName?: string;
10
+ }
11
+ /**
12
+ * Smart Tooltip Component
13
+ * * Automatically detects if the children's text is truncated.
14
+ * The tooltip bubble only appears if the content overflows its container.
15
+ * * Usage Note:
16
+ * By default, it truncates based on the parent's width. To truncate earlier,
17
+ * pass a specific width class to `childClassName` (e.g., `max-w-[200px]`).
18
+ */
19
+ declare const Tooltip: ({ text, children, icon, location, childClassName }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
20
+ export default Tooltip;