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,37 @@
1
+ import { Control, FieldValues, Path } from "react-hook-form";
2
+ export type Country = {
3
+ labelES: string;
4
+ label: string;
5
+ code: string;
6
+ codeISO2: string;
7
+ phone: string;
8
+ };
9
+ export interface CountryDropdownProps<T extends FieldValues> {
10
+ countries?: Country[];
11
+ name: Path<T>;
12
+ control: Control<T>;
13
+ label?: string;
14
+ placeholder?: string;
15
+ language?: "en" | "es";
16
+ className?: string;
17
+ }
18
+ export interface CountryDropdownProps<T extends FieldValues> {
19
+ countries?: Country[];
20
+ name: Path<T>;
21
+ control: Control<T>;
22
+ label?: string;
23
+ placeholder?: string;
24
+ language?: "en" | "es";
25
+ className?: string;
26
+ translateKey?: string;
27
+ }
28
+ export interface CountryDropdownFieldProps {
29
+ countries: Country[];
30
+ value: Country | null;
31
+ onChange: (country: Country | null) => void;
32
+ label?: string;
33
+ placeholder?: string;
34
+ language?: "en" | "es";
35
+ error?: string;
36
+ className?: string;
37
+ }
@@ -0,0 +1 @@
1
+ export { default as CountryInput } from "./CountryInput";
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { Country } from '../../../constants/countries';
3
+ declare const CountryLabel: React.FC<{
4
+ country: Country;
5
+ }>;
6
+ export default CountryLabel;
@@ -0,0 +1 @@
1
+ export { default as CountryLabel } from './CountryLabel';
@@ -0,0 +1,4 @@
1
+ import { FieldValues } from "react-hook-form";
2
+ import { CountryDropdownProps } from "./CountryDropdown.types";
3
+ declare const CountryDropdown: <T extends FieldValues>({ countries, name, control, label, placeholder, language, className, }: CountryDropdownProps<T>) => import("react/jsx-runtime").JSX.Element;
4
+ export default CountryDropdown;
@@ -0,0 +1,36 @@
1
+ import { Control, FieldValues, Path } from "react-hook-form";
2
+ export type Country = {
3
+ labelES: string;
4
+ label: string;
5
+ code: string;
6
+ codeISO2: string;
7
+ phone: string;
8
+ };
9
+ export interface CountryDropdownProps<T extends FieldValues> {
10
+ countries: Country[];
11
+ name: Path<T>;
12
+ control: Control<T>;
13
+ label?: string;
14
+ placeholder?: string;
15
+ language?: "en" | "es";
16
+ className?: string;
17
+ }
18
+ export interface CountryDropdownProps<T extends FieldValues> {
19
+ countries: Country[];
20
+ name: Path<T>;
21
+ control: Control<T>;
22
+ label?: string;
23
+ placeholder?: string;
24
+ language?: "en" | "es";
25
+ className?: string;
26
+ }
27
+ export interface CountryDropdownFieldProps {
28
+ countries: Country[];
29
+ value: Country | null;
30
+ onChange: (country: Country | null) => void;
31
+ label?: string;
32
+ placeholder?: string;
33
+ language?: "en" | "es";
34
+ error?: string;
35
+ className?: string;
36
+ }
@@ -0,0 +1 @@
1
+ export { default as CountryDropdown } from "./CountryDropdown";
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface DividerProps {
3
+ className?: string;
4
+ direction?: 'horizontal' | 'vertical';
5
+ }
6
+ declare const Divider: React.FC<DividerProps>;
7
+ export default Divider;
@@ -0,0 +1 @@
1
+ export { default as Divider } from './Divider';
@@ -0,0 +1,8 @@
1
+ import { Filter, FilterControl } from "@/types/filters";
2
+ interface FilterPillProps<T> {
3
+ filter: Omit<Filter<T>, "fn">;
4
+ filterControl: FilterControl<T>;
5
+ translations?: Record<string, string>;
6
+ }
7
+ declare const FilterPill: <T>({ filter, filterControl, translations, }: FilterPillProps<T>) => React.ReactElement;
8
+ export default FilterPill;
@@ -0,0 +1 @@
1
+ export { default as FilterPill } from "./FilterPill";
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { FloatingCardProps } from "./FloatingCard.types";
3
+ declare const FloatingCard: React.FC<FloatingCardProps>;
4
+ export default FloatingCard;
@@ -1,6 +1,6 @@
1
- import { Placement } from '@floating-ui/dom';
2
- export interface TooltipProps {
3
- message: React.ReactNode;
1
+ import type { Placement } from "@floating-ui/dom";
2
+ export interface FloatingCardProps {
3
+ content: React.ReactNode;
4
4
  children: React.ReactElement;
5
5
  className?: string;
6
6
  placement?: Placement;
@@ -0,0 +1 @@
1
+ export { default as FloatingCard } from "./FloatingCard";
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IconButtonProps } from "./IconButton.types";
3
+ declare const IconButton: React.FC<IconButtonProps>;
4
+ export default IconButton;
@@ -0,0 +1,10 @@
1
+ export declare const resolveIconButtonClasses: (variant?: "filled" | "outline" | "transparent" | "invisible", color?: "blue" | "aqua" | "red" | "gray", size?: "lg" | "base" | "md" | "sm" | "xs", shadow?: "none" | "blue") => string;
2
+ declare const iconSizeVariants: {
3
+ lg: string;
4
+ base: string;
5
+ md: string;
6
+ sm: string;
7
+ xs: string;
8
+ };
9
+ export declare const resolveIconClasses: (size?: keyof typeof iconSizeVariants) => string;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
+ import { Color, Shadow, Size, Variant } from "../../../types/styleValues";
4
+ export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
+ variant?: Variant;
6
+ color?: Color;
7
+ size?: Size;
8
+ shadow?: Shadow;
9
+ icon?: FontAwesomeIconProps['icon'];
10
+ iconProps?: Omit<FontAwesomeIconProps, 'icon'>;
11
+ }
@@ -0,0 +1 @@
1
+ export { default as IconButton } from './IconButton';
@@ -0,0 +1,4 @@
1
+ import { FieldValues } from "react-hook-form";
2
+ import type { ImageProfileInputProps } from "./ImageProfileInput.types";
3
+ declare const ImageProfileInput: <T extends FieldValues = FieldValues>({ src: defaultImageSrc, alt, isEditable, onChange, className, name, control, user, }: ImageProfileInputProps<T>) => React.ReactElement;
4
+ export default ImageProfileInput;
@@ -0,0 +1,12 @@
1
+ import { UserStructure } from 'legal-cycle-api-types';
2
+ import { Control, FieldValues, Path } from "react-hook-form";
3
+ export interface ImageProfileInputProps<T extends FieldValues = FieldValues> {
4
+ src: string;
5
+ alt: string;
6
+ isEditable?: boolean;
7
+ onChange?: (file: File | null) => void;
8
+ className?: string;
9
+ name?: Path<T>;
10
+ control?: Control<T>;
11
+ user?: UserStructure;
12
+ }
@@ -0,0 +1,9 @@
1
+ import * as yup from "yup";
2
+ declare const yupImageProfileValidator: yup.ObjectSchema<{
3
+ name: string | undefined;
4
+ base64: string | undefined;
5
+ }, yup.AnyObject, {
6
+ name: undefined;
7
+ base64: undefined;
8
+ }, "">;
9
+ export default yupImageProfileValidator;
@@ -0,0 +1,2 @@
1
+ export { default as ImageProfileInput } from "./ImageProfileInput";
2
+ export { default as yupImageProfileValidator } from "./ImageProfileInput.validators";
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export type IndexedStepProps = {
3
+ index: number;
4
+ label: string;
5
+ active?: boolean;
6
+ completed?: boolean;
7
+ };
8
+ declare const IndexedStep: React.FC<IndexedStepProps>;
9
+ export default IndexedStep;
@@ -0,0 +1 @@
1
+ export { default as IndexedStep } from './IndexedStep';
@@ -0,0 +1,3 @@
1
+ import InfoCardProps from './InfoCard.types';
2
+ declare const InfoCard: React.FC<InfoCardProps>;
3
+ export default InfoCard;
@@ -0,0 +1,6 @@
1
+ interface InfoCardProps {
2
+ imageUrl: string;
3
+ title: string;
4
+ subtitle: string;
5
+ }
6
+ export default InfoCardProps;
@@ -0,0 +1 @@
1
+ export { default as InfoCard } from './InfoCard';
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { InformationDisclaimerProps } from "./InformationDisclaimer.types";
3
+ declare const InformationDisclaimer: React.FC<InformationDisclaimerProps>;
4
+ export default InformationDisclaimer;
@@ -0,0 +1,9 @@
1
+ import { InformationDisclaimerType } from "./InformationDisclaimer.types";
2
+ export declare const resolveSizeStyles: (size: "small" | "normal") => {
3
+ containerStyles: string;
4
+ titleStyles: string;
5
+ descriptionStyles: string;
6
+ iconStyles: string;
7
+ };
8
+ export declare const resolveIconColor: (type: InformationDisclaimerType) => "bg-green-100 text-green-500" | "bg-yellow-100 text-yellow-500" | "bg-red-100 text-red-500" | "bg-blue-100 text-blue-500";
9
+ export declare const resolveIcon: (type: InformationDisclaimerType) => "info" | import("@fortawesome/fontawesome-common-types").IconDefinition;
@@ -0,0 +1,10 @@
1
+ export type InformationDisclaimerType = "success" | "informative" | "warning" | "error";
2
+ export type InformationDisclaimerProps = {
3
+ title: string;
4
+ description: string;
5
+ className?: string;
6
+ showIcon?: boolean;
7
+ type?: InformationDisclaimerType;
8
+ iconClassName?: string;
9
+ size?: "small" | "normal";
10
+ };
@@ -0,0 +1 @@
1
+ export { default as InformationDisclaimer } from './InformationDisclaimer';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface LoadingProgressProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ size?: number;
4
+ strokeWidth?: number;
5
+ color?: string;
6
+ duration?: number;
7
+ label?: string;
8
+ initialProgress?: number;
9
+ automaticProgress?: boolean;
10
+ showProgress?: boolean;
11
+ }
12
+ declare const LoadingProgress: React.FC<LoadingProgressProps>;
13
+ export default LoadingProgress;
@@ -0,0 +1 @@
1
+ export { default as LoadingProgress } from './LoadingProgress';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface LoadingSpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ variant?: 'circle' | 'cube';
4
+ size?: number;
5
+ color?: string;
6
+ }
7
+ declare const LoadingSpinner: React.FC<LoadingSpinnerProps>;
8
+ export default LoadingSpinner;
@@ -0,0 +1 @@
1
+ export { default as LoadingSpinner } from './LoadingSpinner';
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { PasswordInputProps } from "./PasswordInput.types";
3
+ import { FieldValues } from "react-hook-form";
4
+ declare const PasswordInput: <T extends FieldValues>({ label, control, name, placeholder, className, disabled, size, leftSide, }: PasswordInputProps<T>) => React.ReactElement;
5
+ export default PasswordInput;
@@ -0,0 +1,12 @@
1
+ import { Control, FieldValues, Path } from "react-hook-form";
2
+ export type PasswordInputProps<T extends FieldValues> = {
3
+ label: string;
4
+ placeholder?: string;
5
+ className?: string;
6
+ disabled?: boolean;
7
+ size?: 'sm' | 'md';
8
+ control: Control<T>;
9
+ name: Path<T>;
10
+ leftSide?: React.ReactNode;
11
+ rightSide?: React.ReactNode;
12
+ };
@@ -0,0 +1 @@
1
+ export { default as PasswordInput } from './PasswordInput';
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { FieldValues } from "react-hook-form";
3
+ import { PhoneInputProps } from "./PhoneInput.types";
4
+ declare const PhoneInput: <T extends FieldValues = FieldValues>({ name, control, label, placeholder, language, className, translateKey, countries, }: PhoneInputProps<T>) => React.ReactElement;
5
+ export default PhoneInput;
@@ -0,0 +1,12 @@
1
+ import { Control, FieldValues, Path } from "react-hook-form";
2
+ import { Country } from "../../../constants/countries";
3
+ export interface PhoneInputProps<T extends FieldValues = FieldValues> {
4
+ countries?: Country[];
5
+ name: Path<T>;
6
+ control: Control<T>;
7
+ label?: string;
8
+ placeholder?: string;
9
+ language?: string;
10
+ className?: string;
11
+ translateKey?: string;
12
+ }
@@ -0,0 +1 @@
1
+ export { default as PhoneInput } from "./PhoneInput";
@@ -0,0 +1,8 @@
1
+ interface PillProps {
2
+ label: string;
3
+ onClick?: () => void;
4
+ onRemove?: () => void;
5
+ readOnly?: boolean;
6
+ }
7
+ declare const Pill: ({ label, onClick, onRemove, readOnly, }: PillProps) => React.ReactElement;
8
+ export default Pill;
@@ -0,0 +1 @@
1
+ export { default as Pill } from "./Pill";
@@ -0,0 +1,3 @@
1
+ import type { ProgressBarProps } from "./ProgressBar.types";
2
+ declare const ProgressBar: ({ progress, showPercentage, color, className, ...props }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ProgressBar;
@@ -0,0 +1,7 @@
1
+ import { Color } from "../../../types/styleValues";
2
+ interface ProgressBarColorConfig {
3
+ bgColor: string;
4
+ fillColor: string;
5
+ }
6
+ export declare const resolveProgressBarColors: (color: Color) => ProgressBarColorConfig;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Color } from "../../../types/styleValues";
2
+ export interface ProgressBarProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ progress: number;
4
+ showPercentage?: boolean;
5
+ color?: Color;
6
+ }
@@ -0,0 +1 @@
1
+ export { default as ProgressBar } from "./ProgressBar";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const SearchBar: React.FC;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { DesktopSectionButtonTypes } from "./desktop";
3
+ import { MobileSectionButtonTypes } from "./mobile";
4
+ interface DesktopSectionButtonProps extends DesktopSectionButtonTypes {
5
+ display: "desktop";
6
+ }
7
+ interface MobileSectionButtonProps extends MobileSectionButtonTypes {
8
+ display: "mobile";
9
+ }
10
+ type SectionButtonProps = DesktopSectionButtonProps | MobileSectionButtonProps;
11
+ declare const SectionButton: React.FC<SectionButtonProps>;
12
+ export default SectionButton;
@@ -0,0 +1,3 @@
1
+ import { SectionButtonProps } from "./SectionButton.types";
2
+ declare const SectionButton: React.FC<SectionButtonProps>;
3
+ export default SectionButton;
@@ -0,0 +1,2 @@
1
+ import { Color } from "../../../../types/styleValues";
2
+ export declare const resolveSectionButtonClasses: (active?: boolean, color?: Color) => string;
@@ -0,0 +1,37 @@
1
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
+ import { Color } from "../../../../types/styleValues";
3
+ export interface SectionButtonProps {
4
+ /**
5
+ * The label text of the button
6
+ */
7
+ label: string;
8
+ /**
9
+ * URL to navigate to when the button is clicked (renders as an anchor tag)
10
+ */
11
+ href?: string;
12
+ /**
13
+ * Click event handler
14
+ */
15
+ onClick?: (e: React.MouseEvent) => void;
16
+ /**
17
+ * Whether the button is in active state
18
+ */
19
+ active?: boolean;
20
+ /**
21
+ * Whether the button is disabled
22
+ */
23
+ disabled?: boolean;
24
+ /**
25
+ * Additional CSS classes to apply
26
+ */
27
+ className?: string;
28
+ /**
29
+ * Optional icon to display
30
+ */
31
+ icon?: IconProp;
32
+ /**
33
+ * Color scheme for the button
34
+ */
35
+ color?: Color;
36
+ }
37
+ export default SectionButtonProps;
@@ -0,0 +1,2 @@
1
+ export { default as DesktopSectionButton } from "./SectionButton";
2
+ export type { default as DesktopSectionButtonTypes } from "./SectionButton.types";
@@ -0,0 +1 @@
1
+ export { default as SectionButton } from "./SectionButton";
@@ -0,0 +1,3 @@
1
+ import { Color } from "../../../../types/styleValues";
2
+ export declare const resolveSectionButtonIconClasses: (active?: boolean, color?: Color) => string;
3
+ export declare const resolveSectionButtonClasses: (active?: boolean, color?: Color) => string;
@@ -0,0 +1,3 @@
1
+ import SectionButtonProps from "./SectionButton.types";
2
+ declare const SectionButton: React.FC<SectionButtonProps>;
3
+ export default SectionButton;
@@ -0,0 +1,37 @@
1
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
+ import { Color } from "../../../../types/styleValues";
3
+ export interface SectionButtonProps {
4
+ /**
5
+ * The label text of the button
6
+ */
7
+ label: string;
8
+ /**
9
+ * URL to navigate to when the button is clicked (renders as an anchor tag)
10
+ */
11
+ href?: string;
12
+ /**
13
+ * Click event handler
14
+ */
15
+ onClick?: (e: React.MouseEvent) => void;
16
+ /**
17
+ * Whether the button is in active state
18
+ */
19
+ active?: boolean;
20
+ /**
21
+ * Whether the button is disabled
22
+ */
23
+ disabled?: boolean;
24
+ /**
25
+ * Additional CSS classes to apply
26
+ */
27
+ className?: string;
28
+ /**
29
+ * Optional icon to display
30
+ */
31
+ icon?: IconProp;
32
+ /**
33
+ * Color scheme for the button
34
+ */
35
+ color?: Color;
36
+ }
37
+ export default SectionButtonProps;
@@ -0,0 +1,2 @@
1
+ export { default as MobileSectionButton } from "./SectionButton";
2
+ export type { default as MobileSectionButtonTypes } from "./SectionButton.types";
@@ -1,4 +1,4 @@
1
1
  import { FieldValues } from "react-hook-form";
2
2
  import type { SelectInputProps } from "./SelectInput.types";
3
- declare const SelectInput: <T extends FieldValues>({ options, name, control, label, placeholder, className, input, dropdownStyle, innerClassName, showChevron, }: SelectInputProps<T>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SelectInput: <T extends FieldValues>({ options, name, control, label, placeholder, className, input, dropdownStyle, innerClassName, showChevron, size, }: SelectInputProps<T>) => import("react/jsx-runtime").JSX.Element;
4
4
  export default SelectInput;
@@ -15,6 +15,7 @@ export interface SelectInputProps<T extends FieldValues> {
15
15
  innerClassName?: string;
16
16
  dropdownStyle?: React.CSSProperties;
17
17
  showChevron?: boolean;
18
+ size?: 'sm' | 'md';
18
19
  }
19
20
  export interface SelectInputFieldProps {
20
21
  options: Option[];
@@ -28,4 +29,5 @@ export interface SelectInputFieldProps {
28
29
  innerClassName?: string;
29
30
  dropdownStyle?: React.CSSProperties;
30
31
  showChevron?: boolean;
32
+ size?: 'sm' | 'md';
31
33
  }
@@ -0,0 +1 @@
1
+ export { default as SelectInput } from "./SelectInput";
@@ -0,0 +1,13 @@
1
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
+ import { Color } from "../../../types/styleValues";
3
+ interface SidebarButtonProps {
4
+ active: boolean;
5
+ icon: IconProp;
6
+ label: string;
7
+ onClick: () => void;
8
+ expanded: boolean;
9
+ disabled?: boolean;
10
+ color?: Color;
11
+ }
12
+ declare const SidebarButton: React.FC<SidebarButtonProps>;
13
+ export default SidebarButton;
@@ -0,0 +1,9 @@
1
+ import { Color } from "../../../types/styleValues";
2
+ interface SidebarButtonColorConfig {
3
+ activeTextColor: string;
4
+ activeBgColor: string;
5
+ hoverBgColor: string;
6
+ activeIconColor: string;
7
+ }
8
+ export declare const resolveSidebarButtonColors: (color: Color) => SidebarButtonColorConfig;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { default as SidebarButton } from './SidebarButton';
@@ -0,0 +1,5 @@
1
+ import { StepProps } from "../../../types";
2
+ declare const StepIndicator: React.FC<StepProps & {
3
+ sizeClass?: string;
4
+ }>;
5
+ export default StepIndicator;
@@ -0,0 +1 @@
1
+ export { default as StepIndicator } from './StepIndicator';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export type SwitchProps = {
3
+ active: boolean;
4
+ onClick?: () => void;
5
+ };
6
+ declare const Switch: React.FC<SwitchProps>;
7
+ export default Switch;
@@ -0,0 +1 @@
1
+ export { default as Switch } from "./Switch";
@@ -0,0 +1,3 @@
1
+ import TabProps from "./Tab.types";
2
+ declare const Tab: ({ label, icon, isSelected, onClick, variant, direction, labelClassName, }: TabProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Tab;
@@ -0,0 +1,6 @@
1
+ declare const tabVariantClasses: {
2
+ default: string;
3
+ underline: string;
4
+ };
5
+ export declare const resolveTabClasses: (variant?: keyof typeof tabVariantClasses, isSelected?: boolean) => string;
6
+ export {};
@@ -0,0 +1,11 @@
1
+ import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
+ export default interface TabProps {
3
+ href?: string;
4
+ label: string;
5
+ icon?: IconProp;
6
+ isSelected?: boolean;
7
+ direction?: "row" | "col";
8
+ onClick?: () => void;
9
+ variant?: "default" | "underline";
10
+ labelClassName?: string;
11
+ }
@@ -0,0 +1 @@
1
+ export { default as Tab } from "./Tab";