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
@@ -1,33 +1,49 @@
1
1
  import { j as r } from "../../../_virtual/jsx-runtime.js";
2
- import { useState as m } from "react";
3
- import { useController as b } from "react-hook-form";
4
- import { FontAwesomeIcon as w } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
5
- import { faEye as y, faEyeSlash as j } from "../../../node_modules/@fortawesome/pro-light-svg-icons/index.js";
6
- import { useTheme as $ } from "../../../hooks/useTheme.js";
7
- const P = ({
8
- label: u,
9
- control: i,
2
+ import { useState as y } from "react";
3
+ import { useController as w } from "react-hook-form";
4
+ import { FontAwesomeIcon as $ } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
5
+ import { faEye as j, faEyeSlash as v } from "../../../node_modules/@fortawesome/pro-light-svg-icons/index.js";
6
+ import { useTheme as N } from "../../../hooks/useTheme.js";
7
+ const V = ({
8
+ label: i,
9
+ control: c,
10
10
  name: e,
11
- placeholder: c,
12
- className: d = "",
13
- disabled: o = !1,
11
+ placeholder: p,
12
+ className: x = "",
13
+ disabled: t = !1,
14
+ size: d = "md",
14
15
  leftSide: a
15
16
  }) => {
16
17
  const {
17
- field: { value: s = "", onChange: f, ref: p, onBlur: x },
18
- fieldState: { error: t }
19
- } = b({ name: e, control: i }), [l, g] = m(!1), { t: n } = $();
18
+ field: { value: n = "", onChange: m, ref: f, onBlur: g },
19
+ fieldState: { error: l }
20
+ } = w({ name: e, control: c }), [s, h] = y(!1), { t: u } = N(), o = {
21
+ sm: {
22
+ container: "px-16 py-8",
23
+ text: "text-sm",
24
+ label: "text-sm",
25
+ error: "text-sm",
26
+ gap: "gap-8"
27
+ },
28
+ md: {
29
+ container: "p-16",
30
+ text: "text-14",
31
+ label: "text-14",
32
+ error: "text-sm",
33
+ gap: "gap-8"
34
+ }
35
+ }[d];
20
36
  return /* @__PURE__ */ r.jsxs(
21
37
  "label",
22
38
  {
23
- className: `flex flex-col group gap-8 select-none ${o && "cursor-not-allowed"} ${d}`,
39
+ className: `flex flex-col group select-none ${o.gap} ${t && "cursor-not-allowed"} ${x}`,
24
40
  htmlFor: e,
25
41
  children: [
26
42
  /* @__PURE__ */ r.jsx(
27
43
  "h6",
28
44
  {
29
- className: `text-gray-600 font-600 group ${t && "!text-red-500"} text-label ${o && "text-gray-300"}`,
30
- children: u
45
+ className: `text-gray-600 font-600 group ${l && "!text-red-500"} ${o.label} ${t && "text-gray-300"}`,
46
+ children: i
31
47
  }
32
48
  ),
33
49
  /* @__PURE__ */ r.jsxs(
@@ -35,20 +51,20 @@ const P = ({
35
51
  {
36
52
  htmlFor: e,
37
53
  className: `
38
- flex items-center justify-between gap-8 p-16
39
-
40
- ${t && "!border-red-500"}
54
+ flex items-center justify-between gap-8 ${o.container}
55
+
56
+ ${l && "!border-red-500"}
41
57
 
42
58
  bg-light
43
-
44
- w-full h-full rounded-full border
45
-
46
- ${s && !o ? "border-blue-200" : "border-blue-100"}
47
- ${!o && "group-hover:border-blue-300"}
48
- ${o && "cursor-not-allowed"}
49
-
59
+
60
+ w-full h-full rounded-full border
61
+
62
+ ${n && !t ? "border-blue-200" : "border-blue-100"}
63
+ ${!t && "group-hover:border-blue-300"}
64
+ ${t && "cursor-not-allowed"}
65
+
50
66
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
51
-
67
+
52
68
  group-disabled:bg-gray-500
53
69
  `,
54
70
  children: [
@@ -57,35 +73,35 @@ const P = ({
57
73
  "input",
58
74
  {
59
75
  id: e,
60
- type: l ? "text" : "password",
76
+ type: s ? "text" : "password",
61
77
  autoComplete: "off",
62
78
  "aria-autocomplete": "none",
63
79
  name: e,
64
- disabled: o,
65
- placeholder: c,
66
- value: s,
67
- onChange: (h) => f(h.target.value),
68
- onBlur: x,
69
- ref: p,
70
- className: "group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"
80
+ disabled: t,
81
+ placeholder: p,
82
+ value: n,
83
+ onChange: (b) => m(b.target.value),
84
+ onBlur: g,
85
+ ref: f,
86
+ className: `group bg-transparent w-full h-full font-600 placeholder:font-600 ${o.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none`
71
87
  }
72
88
  ),
73
89
  /* @__PURE__ */ r.jsx(
74
- w,
90
+ $,
75
91
  {
76
- icon: l ? y : j,
92
+ icon: s ? j : v,
77
93
  className: "min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",
78
- onClick: () => g(!l)
94
+ onClick: () => h(!s)
79
95
  }
80
96
  )
81
97
  ]
82
98
  }
83
99
  ),
84
- /* @__PURE__ */ r.jsx("h4", { className: "font-500 text-label text-red-500 leading-none", children: t && n(t.message || "", { x: n(e) }) })
100
+ /* @__PURE__ */ r.jsx("h4", { className: `font-500 text-red-500 leading-none ${o.error}`, children: l && u(l.message || "", { x: u(e) }) })
85
101
  ]
86
102
  }
87
103
  );
88
104
  };
89
105
  export {
90
- P as default
106
+ V as default
91
107
  };
@@ -4,6 +4,7 @@ export type PasswordInputProps<T extends FieldValues> = {
4
4
  placeholder?: string;
5
5
  className?: string;
6
6
  disabled?: boolean;
7
+ size?: 'sm' | 'md';
7
8
  control: Control<T>;
8
9
  name: Path<T>;
9
10
  leftSide?: React.ReactNode;
@@ -1,4 +1,4 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
2
  import { 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;
@@ -1,59 +1,77 @@
1
- import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- import { useFloating as Y, useClick as _, useDismiss as q, useInteractions as G, useTransitionStyles as J } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
3
- import { useState as N, useRef as S, useEffect as K } from "react";
4
- import { Controller as Q } from "react-hook-form";
5
- import { useTheme as V } from "../../../hooks/useTheme.js";
1
+ import { j as t } from "../../../_virtual/jsx-runtime.js";
2
+ import { useFloating as U, useClick as Y, useDismiss as _, useInteractions as q, useTransitionStyles as G } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
3
+ import { useState as $, useRef as z, useEffect as J } from "react";
4
+ import { useController as K } from "react-hook-form";
5
+ import { useTheme as Q } from "../../../hooks/useTheme.js";
6
6
  import { autoUpdate as X } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
7
7
  import { offset as Z, flip as ee, shift as te, size as se, arrow as re } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
8
- const pe = ({
8
+ const me = ({
9
9
  options: c,
10
- name: l,
10
+ name: i,
11
11
  control: p,
12
- label: x = "Select an option",
12
+ label: d = "",
13
13
  placeholder: m = "Type to search...",
14
- className: r = "",
15
- input: h = !0,
14
+ className: n = "",
15
+ input: x = !0,
16
16
  dropdownStyle: f = {},
17
- innerClassName: g = "",
18
- showChevron: b = !0
19
- }) => /* @__PURE__ */ e.jsx(
20
- Q,
21
- {
22
- name: l,
23
- control: p,
24
- render: ({ field: { onChange: y, value: n }, fieldState: { error: s } }) => /* @__PURE__ */ e.jsx(
25
- ne,
26
- {
27
- options: c,
28
- value: n,
29
- onChange: y,
30
- label: x,
31
- placeholder: m,
32
- error: s == null ? void 0 : s.message,
33
- className: r,
34
- input: h,
35
- dropdownStyle: f,
36
- innerClassName: g,
37
- showChevron: b
38
- }
39
- )
40
- }
41
- ), ne = ({
17
+ innerClassName: h = "",
18
+ showChevron: g = !0,
19
+ size: y = "md"
20
+ }) => {
21
+ const {
22
+ field: { value: b, onChange: o },
23
+ fieldState: { error: s }
24
+ } = K({ name: i, control: p });
25
+ return /* @__PURE__ */ t.jsx(
26
+ ne,
27
+ {
28
+ options: c,
29
+ value: b,
30
+ onChange: o,
31
+ label: d,
32
+ placeholder: m,
33
+ error: s == null ? void 0 : s.message,
34
+ className: n,
35
+ input: x,
36
+ dropdownStyle: f,
37
+ innerClassName: h,
38
+ showChevron: g,
39
+ size: y
40
+ }
41
+ );
42
+ }, ne = ({
42
43
  options: c,
43
- value: l,
44
+ value: i,
44
45
  onChange: p,
45
- label: x = "Select an option",
46
+ label: d = "Select an option",
46
47
  placeholder: m = "Type to search...",
47
- error: r,
48
- input: h = !0,
48
+ error: n,
49
+ input: x = !0,
49
50
  className: f = "",
50
- dropdownStyle: g = {},
51
- innerClassName: b = "",
52
- showChevron: y = !0
51
+ dropdownStyle: h = {},
52
+ innerClassName: g = "",
53
+ showChevron: y = !0,
54
+ size: b = "md"
53
55
  }) => {
54
- const { t: n } = V(), [s, j] = N(!1), [a, k] = N(""), [i, C] = N(
55
- l || null
56
- ), v = S(null), M = S(null), { x: T, y: $, strategy: O, refs: d, context: w } = Y({
56
+ var T;
57
+ const { t: o } = Q(), [s, j] = $(!1), [v, C] = $(""), [l, S] = $(i || null), w = z(null), O = z(null), r = {
58
+ sm: {
59
+ container: "px-16 py-8",
60
+ text: "text-sm",
61
+ label: "text-sm",
62
+ error: "text-sm",
63
+ gap: "gap-8",
64
+ icon: "w-12 h-12"
65
+ },
66
+ md: {
67
+ container: "p-16",
68
+ text: "text-14",
69
+ label: "text-14",
70
+ error: "text-sm",
71
+ gap: "gap-8",
72
+ icon: "w-16 h-16"
73
+ }
74
+ }[b], { x: I, y: R, strategy: F, refs: N, context: k } = U({
57
75
  open: s,
58
76
  onOpenChange: j,
59
77
  middleware: [
@@ -61,150 +79,117 @@ const pe = ({
61
79
  ee(),
62
80
  te({ padding: 8 }),
63
81
  se({
64
- apply({ availableHeight: t, elements: o }) {
65
- Object.assign(o.floating.style, {
66
- maxHeight: `${Math.min(t - 10, 300)}px`
82
+ apply({ availableHeight: e, elements: a }) {
83
+ Object.assign(a.floating.style, {
84
+ maxHeight: `${Math.min(e - 10, 300)}px`
67
85
  });
68
86
  },
69
87
  padding: 8
70
88
  }),
71
- re({ element: M })
89
+ re({ element: O })
72
90
  ],
73
91
  placement: "bottom-start",
74
92
  whileElementsMounted: X
75
- }), P = _(w), R = q(w), { getReferenceProps: z, getFloatingProps: F } = G([
76
- P,
77
- R
78
- ]), { isMounted: I, styles: W } = J(w, {
93
+ }), M = Y(k), P = _(k), { getReferenceProps: E, getFloatingProps: W } = q([M, P]), { isMounted: A, styles: B } = G(k, {
79
94
  duration: { open: 200, close: 150 },
80
95
  initial: { opacity: 0, transform: "translateY(-4px)" }
81
96
  }), L = (() => {
82
- const t = Array.isArray(c) ? c : [];
83
- if (!a.trim()) return t;
84
- const o = a.toLowerCase();
85
- return t.filter((u) => {
86
- const H = u.label.toLowerCase(), U = u.key.toLowerCase();
87
- return H.includes(o) || U.includes(o);
88
- });
89
- })(), B = (t) => {
90
- C(t), j(!1), k(""), p(t);
91
- }, E = () => {
92
- j(!s), !s && v.current && setTimeout(() => {
93
- var t;
94
- return (t = v.current) == null ? void 0 : t.focus();
97
+ const e = Array.isArray(c) ? c : [];
98
+ if (!v.trim()) return e;
99
+ const a = v.toLowerCase();
100
+ return e.filter(
101
+ (u) => u.label.toLowerCase().includes(a) || u.key.toLowerCase().includes(a)
102
+ );
103
+ })(), D = (e) => {
104
+ S(e), j(!1), C(""), p(e);
105
+ }, V = () => {
106
+ j(!s), !s && w.current && setTimeout(() => {
107
+ var e;
108
+ return (e = w.current) == null ? void 0 : e.focus();
95
109
  }, 100);
96
110
  };
97
- K(() => {
98
- C(l);
99
- }, [l]);
100
- const A = z({
101
- onClick: E
102
- }), D = n(m);
103
- return /* @__PURE__ */ e.jsxs("div", { className: `w-full relative flex flex-col gap-8 ${f}`, children: [
104
- /* @__PURE__ */ e.jsx(
105
- "h6",
106
- {
107
- className: `text-gray-600 font-600 group ${r ? "!text-red-500" : ""} text-label`,
108
- children: x
109
- }
110
- ),
111
- /* @__PURE__ */ e.jsxs(
111
+ J(() => {
112
+ S(i);
113
+ }, [i]);
114
+ const H = E({
115
+ onClick: V
116
+ });
117
+ return /* @__PURE__ */ t.jsxs("div", { className: `relative flex flex-col ${r.gap} ${f}`, children: [
118
+ d && /* @__PURE__ */ t.jsx("h6", { className: `text-gray-600 font-600 ${n ? "!text-red-500" : ""} ${r.label}`, children: d }),
119
+ /* @__PURE__ */ t.jsxs(
112
120
  "div",
113
121
  {
114
- ref: d.setReference,
115
- className: `${b} flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
116
- border transition-all duration-200 hover:border-blue-400
117
- ${r ? "border-red-500 hover:border-red-600" : ""} ${s ? "border-blue-400" : "border-blue-100"}`,
118
- ...A,
122
+ ref: N.setReference,
123
+ className: `${g} flex items-center justify-between bg-light rounded-full border transition-all duration-200
124
+ ${r.container} cursor-pointer hover:border-blue-400
125
+ ${n ? "border-red-500 hover:border-red-600" : ""}
126
+ ${s ? "border-blue-400" : "border-blue-100"}`,
127
+ ...H,
119
128
  children: [
120
- i ? /* @__PURE__ */ e.jsx("div", { className: "flex items-center w-full", children: /* @__PURE__ */ e.jsx("span", { className: "flex-grow font-600 text-body-m", children: n(i.label) }) }) : /* @__PURE__ */ e.jsx("span", { className: "text-gray-400 font-600 text-body-m", children: D }),
121
- y && /* @__PURE__ */ e.jsx(
129
+ /* @__PURE__ */ t.jsx("div", { className: "flex items-center w-full overflow-hidden", children: /* @__PURE__ */ t.jsx("span", { className: `flex-grow font-600 truncate ${r.text} ${l ? "" : "text-gray-400"}`, children: o(l ? l.label : m) }) }),
130
+ y && /* @__PURE__ */ t.jsx(
122
131
  "svg",
123
132
  {
124
- className: `w-16 h-16 transition-transform ${s ? "transform rotate-180" : ""}`,
133
+ className: `${r.icon} transition-transform ${s ? "rotate-180" : ""}`,
125
134
  fill: "none",
126
135
  stroke: "currentColor",
127
136
  viewBox: "0 0 24 24",
128
- children: /* @__PURE__ */ e.jsx(
129
- "path",
130
- {
131
- strokeLinecap: "round",
132
- strokeLinejoin: "round",
133
- strokeWidth: "2",
134
- d: "M19 9l-7 7-7-7"
135
- }
136
- )
137
+ children: /* @__PURE__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M19 9l-7 7-7-7" })
137
138
  }
138
139
  )
139
140
  ]
140
141
  }
141
142
  ),
142
- r && /* @__PURE__ */ e.jsx("p", { className: "mt-1 text-sm text-red-600", children: r }),
143
- I && /* @__PURE__ */ e.jsxs(
143
+ n && /* @__PURE__ */ t.jsx("p", { className: `font-500 text-red-500 leading-none ${r.error}`, children: n }),
144
+ A && /* @__PURE__ */ t.jsxs(
144
145
  "div",
145
146
  {
146
- ref: d.setFloating,
147
+ ref: N.setFloating,
147
148
  style: {
148
- position: O,
149
- top: $ ?? 0,
150
- left: T ?? 0,
151
- ...W,
152
- width: d.reference.current instanceof Element ? d.reference.current.clientWidth : void 0,
149
+ position: F,
150
+ top: R ?? 0,
151
+ left: I ?? 0,
152
+ ...B,
153
+ width: (T = N.reference.current) == null ? void 0 : T.clientWidth,
153
154
  zIndex: 50,
154
- ...g
155
+ ...h
155
156
  },
156
157
  className: "bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",
157
- ...F(),
158
+ ...W(),
158
159
  children: [
159
- h && /* @__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: [
160
- /* @__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: "h-16 w-16 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" }) }) }),
161
- /* @__PURE__ */ e.jsx(
160
+ x && /* @__PURE__ */ t.jsx("div", { className: "sticky top-0 bg-white p-8 border-b border-gray-100 z-20", children: /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
161
+ /* @__PURE__ */ t.jsx("div", { className: "absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none", children: /* @__PURE__ */ t.jsx("svg", { className: "h-16 w-16 text-gray-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
162
+ /* @__PURE__ */ t.jsx(
162
163
  "input",
163
164
  {
164
- ref: v,
165
+ ref: w,
165
166
  type: "text",
166
167
  className: "w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",
167
- placeholder: n("search_options"),
168
- value: a,
169
- onChange: (t) => k(t.target.value),
170
- onClick: (t) => t.stopPropagation(),
168
+ placeholder: o("search_options"),
169
+ value: v,
170
+ onChange: (e) => C(e.target.value),
171
+ onClick: (e) => e.stopPropagation(),
171
172
  autoFocus: !0
172
173
  }
173
- ),
174
- a && /* @__PURE__ */ e.jsx(
175
- "button",
176
- {
177
- className: "absolute inset-y-0 right-0 pr-12 flex items-center",
178
- onClick: (t) => {
179
- t.stopPropagation(), k("");
180
- },
181
- 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" }) })
182
- }
183
174
  )
184
175
  ] }) }),
185
- /* @__PURE__ */ e.jsx("div", { className: "max-h-[250px] overflow-y-auto", children: L.length > 0 ? /* @__PURE__ */ e.jsx("ul", { className: "py-4", children: L.map((t, o) => /* @__PURE__ */ e.jsx(
176
+ /* @__PURE__ */ t.jsx("div", { className: "max-h-[250px] overflow-y-auto", children: L.length > 0 ? /* @__PURE__ */ t.jsx("ul", { className: "py-4", children: L.map((e, a) => /* @__PURE__ */ t.jsx(
186
177
  "li",
187
178
  {
188
- className: `flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${(i == null ? void 0 : i.key) === t.key ? "bg-blue-100/30 text-blue-500 font-medium" : ""}`,
179
+ className: `flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer
180
+ ${(l == null ? void 0 : l.key) === e.key ? "bg-blue-100/30 text-blue-500 font-medium" : ""}`,
189
181
  onClick: (u) => {
190
- u.stopPropagation(), B(t);
182
+ u.stopPropagation(), D(e);
191
183
  },
192
- children: /* @__PURE__ */ e.jsx("span", { children: typeof t.label == "string" ? n(t.label) : t.expandedLabel || t.label })
184
+ children: /* @__PURE__ */ t.jsx("span", { className: r.text, children: typeof e.label == "string" ? o(e.label) : e.expandedLabel || e.label })
193
185
  },
194
- `${t.key}-${o}`
195
- )) }) : /* @__PURE__ */ e.jsxs("div", { className: "px-16 py-16 text-center text-gray-500", children: [
196
- /* @__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" }) }),
197
- /* @__PURE__ */ e.jsxs("p", { className: "mt-8 text-body-s", children: [
198
- 'No matches found for "',
199
- a,
200
- '"'
201
- ] })
202
- ] }) })
186
+ `${e.key}-${a}`
187
+ )) }) : /* @__PURE__ */ t.jsx("div", { className: "px-16 py-16 text-center text-gray-500", children: /* @__PURE__ */ t.jsx("p", { className: "text-body-s", children: "No matches found" }) }) })
203
188
  ]
204
189
  }
205
190
  )
206
191
  ] });
207
192
  };
208
193
  export {
209
- pe as default
194
+ me as default
210
195
  };
@@ -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,5 @@
1
+ import { StepProps } from '../../../types';
2
+ declare const StepIndicator: React.FC<StepProps & {
3
+ sizeClass?: string;
4
+ }>;
5
+ export default StepIndicator;
@@ -0,0 +1,58 @@
1
+ import { j as o } from "../../../_virtual/jsx-runtime.js";
2
+ import { resolveStepperColors as j } from "../../molecules/Stepper/Stepper.styles.js";
3
+ import { faCheck as y } from "../../../node_modules/@fortawesome/free-solid-svg-icons/index.js";
4
+ import { FontAwesomeIcon as g } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
5
+ import { motion as i } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
6
+ import { AnimatePresence as I } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
7
+ const w = ({
8
+ status: n,
9
+ shouldAnimate: e,
10
+ color: r,
11
+ index: s,
12
+ sizeClass: a
13
+ }) => {
14
+ const t = n === "done", c = n === "focus", {
15
+ focusIconColor: l,
16
+ completedIconColor: m,
17
+ pendingIconColor: p,
18
+ focusBgColor: d,
19
+ completedBgColor: f,
20
+ pendingBgColor: x
21
+ } = j(r), u = t ? m : c ? l : p, C = t ? f : c ? d : x;
22
+ return /* @__PURE__ */ o.jsx(
23
+ i.div,
24
+ {
25
+ animate: { backgroundColor: C },
26
+ transition: { duration: e ? 0.3 : 0, ease: "easeOut" },
27
+ className: `size-[35px] rounded-full flex items-center justify-center font-bold text-sm ${a} ${u}`,
28
+ children: /* @__PURE__ */ o.jsx(I, { mode: "wait", children: t ? /* @__PURE__ */ o.jsx(
29
+ i.div,
30
+ {
31
+ initial: e ? { opacity: 0, scale: 0.5 } : { opacity: 1 },
32
+ animate: { opacity: 1, scale: 1 },
33
+ exit: { opacity: 0, scale: 0.5 },
34
+ className: "flex items-center justify-center",
35
+ children: /* @__PURE__ */ o.jsx(
36
+ g,
37
+ {
38
+ icon: y
39
+ }
40
+ )
41
+ },
42
+ "check"
43
+ ) : /* @__PURE__ */ o.jsx(
44
+ i.div,
45
+ {
46
+ initial: e ? { opacity: 0 } : { opacity: 1 },
47
+ animate: { opacity: 1 },
48
+ className: "leading-none flex items-center justify-center",
49
+ children: s + 1
50
+ },
51
+ "number"
52
+ ) })
53
+ }
54
+ );
55
+ };
56
+ export {
57
+ w as default
58
+ };
@@ -0,0 +1 @@
1
+ export { default as StepIndicator } from './StepIndicator';