lawgic-dev-kit 0.21.6 → 0.22.2

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 (269) hide show
  1. package/README.md +54 -54
  2. package/dist/components/atoms/Checkbox/Checkbox.d.ts +3 -2
  3. package/dist/components/atoms/Checkbox/Checkbox.js +43 -30
  4. package/dist/components/atoms/SelectInput/SelectInput.d.ts +1 -1
  5. package/dist/components/atoms/SelectInput/SelectInput.js +125 -140
  6. package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
  7. package/dist/components/atoms/StepIndicator/StepIndicator.d.ts +5 -0
  8. package/dist/components/atoms/StepIndicator/StepIndicator.js +58 -0
  9. package/dist/components/atoms/StepIndicator/index.d.ts +1 -0
  10. package/dist/components/atoms/TextInput/TextInput.js +33 -33
  11. package/dist/components/atoms/Toast/Toast.d.ts +2 -3
  12. package/dist/components/atoms/Toast/Toast.js +46 -53
  13. package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
  14. package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +102 -88
  15. package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +20 -26
  16. package/dist/components/atoms/UploadContainer/UploadContainer.js +4 -4
  17. package/dist/components/atoms/index.d.ts +1 -1
  18. package/dist/components/molecules/CalendarSelector/CalendarSelector.js +8 -8
  19. package/dist/components/molecules/EmptyState/EmptyState.d.ts +9 -0
  20. package/dist/components/molecules/EmptyState/EmptyState.js +16 -0
  21. package/dist/components/molecules/EmptyState/index.d.ts +1 -0
  22. package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +23 -0
  23. package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +190 -0
  24. package/dist/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
  25. package/dist/components/molecules/Stepper/Stepper.d.ts +1 -1
  26. package/dist/components/molecules/Stepper/Stepper.js +78 -231
  27. package/dist/components/molecules/Stepper/Stepper.styles.d.ts +7 -3
  28. package/dist/components/molecules/Stepper/Stepper.styles.js +23 -15
  29. package/dist/components/molecules/Tooltip/Tooltip.d.ts +20 -0
  30. package/dist/components/molecules/Tooltip/Tooltip.js +41 -0
  31. package/dist/components/molecules/index.d.ts +3 -0
  32. package/dist/index.js +71 -65
  33. package/dist/lawgic-dev-kit.css +1 -1
  34. package/dist/lawgic-dev-kit.umd.js +80 -73
  35. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +396 -712
  36. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +33 -81
  37. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +7 -2
  38. package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +14 -49
  39. package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +32 -12
  40. package/dist/src/Root.d.ts +2 -0
  41. package/dist/src/app.d.ts +1 -0
  42. package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +11 -0
  43. package/dist/src/components/atoms/ActionButton/index.d.ts +1 -0
  44. package/dist/src/components/atoms/AsyncToast/index.d.ts +11 -0
  45. package/dist/src/components/atoms/Avatar/Avatar.d.ts +11 -0
  46. package/dist/src/components/atoms/Avatar/index.d.ts +1 -0
  47. package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +4 -0
  48. package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +6 -0
  49. package/dist/src/components/atoms/BoxContainer/index.d.ts +1 -0
  50. package/dist/src/components/atoms/Button/Button.d.ts +4 -0
  51. package/dist/src/components/atoms/Button/Button.styles.d.ts +26 -0
  52. package/dist/src/components/atoms/Button/Button.types.d.ts +12 -0
  53. package/dist/src/components/atoms/Button/index.d.ts +1 -0
  54. package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +4 -0
  55. package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +6 -0
  56. package/dist/src/components/atoms/CenterModal/index.d.ts +1 -0
  57. package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +13 -0
  58. package/dist/src/components/atoms/Checkbox/index.d.ts +1 -0
  59. package/dist/src/components/atoms/CircleProgress/CircleProgress.d.ts +22 -0
  60. package/dist/src/components/atoms/CircleProgress/index.d.ts +1 -0
  61. package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.d.ts +4 -0
  62. package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.types.d.ts +7 -0
  63. package/dist/src/components/atoms/ClickAwayListener/index.d.ts +1 -0
  64. package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +4 -0
  65. package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +37 -0
  66. package/dist/src/components/atoms/CountryInput/index.d.ts +1 -0
  67. package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +6 -0
  68. package/dist/src/components/atoms/CountryLabel/index.d.ts +1 -0
  69. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +4 -0
  70. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +36 -0
  71. package/dist/src/components/atoms/CountrySelectInput/index.d.ts +1 -0
  72. package/dist/src/components/atoms/Divider/Divider.d.ts +7 -0
  73. package/dist/src/components/atoms/Divider/index.d.ts +1 -0
  74. package/dist/src/components/atoms/FilterPill/FilterPill.d.ts +8 -0
  75. package/dist/src/components/atoms/FilterPill/index.d.ts +1 -0
  76. package/dist/src/components/atoms/FloatingCard/FloatingCard.d.ts +4 -0
  77. package/dist/{components/atoms/Tooltip/Tooltip.types.d.ts → src/components/atoms/FloatingCard/FloatingCard.types.d.ts} +3 -3
  78. package/dist/src/components/atoms/FloatingCard/index.d.ts +1 -0
  79. package/dist/src/components/atoms/IconButton/IconButton.d.ts +4 -0
  80. package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +10 -0
  81. package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +11 -0
  82. package/dist/src/components/atoms/IconButton/index.d.ts +1 -0
  83. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +4 -0
  84. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +12 -0
  85. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +9 -0
  86. package/dist/src/components/atoms/ImageProfileInput/index.d.ts +2 -0
  87. package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +9 -0
  88. package/dist/src/components/atoms/IndexedStep/index.d.ts +1 -0
  89. package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +3 -0
  90. package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +6 -0
  91. package/dist/src/components/atoms/InfoCard/index.d.ts +1 -0
  92. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.d.ts +4 -0
  93. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +3 -0
  94. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +10 -0
  95. package/dist/src/components/atoms/InformationDisclaimer/index.d.ts +1 -0
  96. package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +13 -0
  97. package/dist/src/components/atoms/LoadingProgress/index.d.ts +1 -0
  98. package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +8 -0
  99. package/dist/src/components/atoms/LoadingSpinner/index.d.ts +1 -0
  100. package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +5 -0
  101. package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +11 -0
  102. package/dist/src/components/atoms/PasswordInput/index.d.ts +1 -0
  103. package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +5 -0
  104. package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +12 -0
  105. package/dist/src/components/atoms/PhoneInput/index.d.ts +1 -0
  106. package/dist/src/components/atoms/Pill/Pill.d.ts +8 -0
  107. package/dist/src/components/atoms/Pill/index.d.ts +1 -0
  108. package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
  109. package/dist/src/components/atoms/ProgressBar/ProgressBar.styles.d.ts +7 -0
  110. package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +6 -0
  111. package/dist/src/components/atoms/ProgressBar/index.d.ts +1 -0
  112. package/dist/src/components/atoms/SearchBar/index.d.ts +2 -0
  113. package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +12 -0
  114. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +3 -0
  115. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +2 -0
  116. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +37 -0
  117. package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +2 -0
  118. package/dist/src/components/atoms/SectionButton/index.d.ts +1 -0
  119. package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +3 -0
  120. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
  121. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +37 -0
  122. package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +2 -0
  123. package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +1 -1
  124. package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
  125. package/dist/src/components/atoms/SelectInput/index.d.ts +1 -0
  126. package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +13 -0
  127. package/dist/src/components/atoms/SidebarButton/SidebarButton.styles.d.ts +9 -0
  128. package/dist/src/components/atoms/SidebarButton/index.d.ts +1 -0
  129. package/dist/src/components/atoms/StepIndicator/StepIndicator.d.ts +5 -0
  130. package/dist/src/components/atoms/StepIndicator/index.d.ts +1 -0
  131. package/dist/src/components/atoms/Switch/Switch.d.ts +7 -0
  132. package/dist/src/components/atoms/Switch/index.d.ts +1 -0
  133. package/dist/src/components/atoms/Tab/Tab.d.ts +3 -0
  134. package/dist/src/components/atoms/Tab/Tab.styles.d.ts +6 -0
  135. package/dist/src/components/atoms/Tab/Tab.types.d.ts +11 -0
  136. package/dist/src/components/atoms/Tab/index.d.ts +1 -0
  137. package/dist/src/components/atoms/TextButton/TextButton.d.ts +4 -0
  138. package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +2 -0
  139. package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +6 -0
  140. package/dist/src/components/atoms/TextButton/index.d.ts +1 -0
  141. package/dist/src/components/atoms/TextInput/TextInput.d.ts +5 -0
  142. package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +13 -0
  143. package/dist/src/components/atoms/TextInput/index.d.ts +1 -0
  144. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +3 -0
  145. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +5 -0
  146. package/dist/src/components/atoms/TextStaticInput/index.d.ts +1 -0
  147. package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +4 -0
  148. package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +30 -0
  149. package/dist/src/components/atoms/ThresholdCircleProgress/index.d.ts +1 -0
  150. package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.d.ts +4 -0
  151. package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.types.d.ts +22 -0
  152. package/dist/src/components/atoms/ThresholdProgressBar/index.d.ts +1 -0
  153. package/dist/src/components/atoms/Toast/Toast.d.ts +20 -0
  154. package/dist/src/components/atoms/Toast/index.d.ts +1 -0
  155. package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
  156. package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +1 -0
  157. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +4 -0
  158. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +14 -0
  159. package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +1 -0
  160. package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +4 -0
  161. package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +37 -0
  162. package/dist/src/components/atoms/UploadContainer/index.d.ts +1 -0
  163. package/dist/src/components/atoms/index.d.ts +42 -0
  164. package/dist/src/components/index.d.ts +3 -0
  165. package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +3 -0
  166. package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +9 -0
  167. package/dist/src/components/molecules/AlertModal/index.d.ts +2 -0
  168. package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.d.ts +3 -0
  169. package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +28 -0
  170. package/dist/src/components/molecules/AutocompleteInput/index.d.ts +1 -0
  171. package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +14 -0
  172. package/dist/src/components/molecules/CalendarSelector/CalendarSelector.styles.d.ts +36 -0
  173. package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +15 -0
  174. package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +7 -0
  175. package/dist/src/components/molecules/CalendarSelector/index.d.ts +1 -0
  176. package/dist/src/components/molecules/DateInput/DateInput.d.ts +14 -0
  177. package/dist/src/components/molecules/DateInput/index.d.ts +1 -0
  178. package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +3 -0
  179. package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +11 -0
  180. package/dist/src/components/molecules/DialogModal/index.d.ts +1 -0
  181. package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +3 -0
  182. package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +9 -0
  183. package/dist/src/components/molecules/Dropdown/index.d.ts +1 -0
  184. package/dist/src/components/molecules/EmptyState/EmptyState.d.ts +9 -0
  185. package/dist/src/components/molecules/EmptyState/index.d.ts +1 -0
  186. package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +4 -0
  187. package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +17 -0
  188. package/dist/src/components/molecules/FileUpload/index.d.ts +1 -0
  189. package/dist/src/components/molecules/FiltersMenu/FiltersMenu.d.ts +13 -0
  190. package/dist/src/components/molecules/FiltersMenu/index.d.ts +1 -0
  191. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +4 -0
  192. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +13 -0
  193. package/dist/src/components/molecules/FloatingMenu/index.d.ts +1 -0
  194. package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +7 -0
  195. package/dist/src/components/molecules/IndexedStepper/index.d.ts +1 -0
  196. package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +14 -0
  197. package/dist/src/components/molecules/InformationContainer/index.d.ts +1 -0
  198. package/dist/src/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +23 -0
  199. package/dist/src/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
  200. package/dist/src/components/molecules/PillsContainer/PillsContainer.d.ts +9 -0
  201. package/dist/src/components/molecules/PillsContainer/index.d.ts +1 -0
  202. package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +4 -0
  203. package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +5 -0
  204. package/dist/src/components/molecules/SearchModal/index.d.ts +1 -0
  205. package/dist/src/components/molecules/SideModal/SideModal.d.ts +4 -0
  206. package/dist/src/components/molecules/SideModal/SideModal.types.d.ts +11 -0
  207. package/dist/src/components/molecules/SideModal/index.d.ts +1 -0
  208. package/dist/src/components/molecules/Stepper/Stepper.d.ts +3 -0
  209. package/dist/src/components/molecules/Stepper/Stepper.styles.d.ts +15 -0
  210. package/dist/src/components/molecules/Stepper/index.d.ts +1 -0
  211. package/dist/src/components/molecules/Tabs/Tabs.d.ts +21 -0
  212. package/dist/src/components/molecules/Tabs/index.d.ts +1 -0
  213. package/dist/src/components/molecules/Tooltip/Tooltip.d.ts +20 -0
  214. package/dist/src/components/molecules/Tooltip/index.d.ts +1 -0
  215. package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +16 -0
  216. package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
  217. package/dist/src/components/molecules/index.d.ts +22 -0
  218. package/dist/src/components/organisms/index.d.ts +1 -0
  219. package/dist/src/constants/countries.d.ts +30 -0
  220. package/dist/src/contexts/index.d.ts +1 -0
  221. package/dist/src/contexts/themeContext.d.ts +3 -0
  222. package/dist/src/hooks/index.d.ts +2 -0
  223. package/dist/src/hooks/useFilterToggler.d.ts +5 -0
  224. package/dist/src/hooks/useTheme.d.ts +1 -0
  225. package/dist/src/index.d.ts +8 -0
  226. package/dist/src/lab/Laboratory.d.ts +2 -0
  227. package/dist/src/lab/LaboratoryLayout.d.ts +5 -0
  228. package/dist/src/lab/index.lab.d.ts +1 -0
  229. package/dist/src/providers/ThemeProvider.d.ts +7 -0
  230. package/dist/src/providers/index.d.ts +1 -0
  231. package/dist/src/themes/default.d.ts +2 -0
  232. package/dist/src/themes/index.d.ts +2 -0
  233. package/dist/src/themes/types.d.ts +6 -0
  234. package/dist/src/types/baseModalProps.d.ts +4 -0
  235. package/dist/src/types/cycles.d.ts +103 -0
  236. package/dist/src/types/display.d.ts +2 -0
  237. package/dist/src/types/fileInfo.d.ts +2 -0
  238. package/dist/src/types/filters.d.ts +22 -0
  239. package/dist/src/types/i18n.d.ts +1 -0
  240. package/dist/src/types/index.d.ts +10 -0
  241. package/dist/src/types/modal.d.ts +34 -0
  242. package/dist/src/types/modalType.d.ts +1 -0
  243. package/dist/src/types/navbarOption.d.ts +7 -0
  244. package/dist/src/types/sidebarOption.d.ts +7 -0
  245. package/dist/src/types/stepper.d.ts +23 -0
  246. package/dist/src/types/styleValues.d.ts +4 -0
  247. package/dist/src/types/toast.d.ts +29 -0
  248. package/dist/src/utils/cycles.d.ts +2 -0
  249. package/dist/src/utils/dates.d.ts +1 -0
  250. package/dist/src/utils/files.d.ts +8 -0
  251. package/dist/src/utils/images.d.ts +1 -0
  252. package/dist/src/utils/index.d.ts +7 -0
  253. package/dist/src/utils/modal.d.ts +13 -0
  254. package/dist/src/utils/renderContentOptions.d.ts +3 -0
  255. package/dist/src/utils/stepper.d.ts +2 -0
  256. package/dist/src/utils/strings.d.ts +2 -0
  257. package/dist/src/utils/toast.d.ts +15 -0
  258. package/dist/types/index.d.ts +1 -0
  259. package/dist/types/stepper.d.ts +23 -0
  260. package/dist/types/toast.d.ts +6 -3
  261. package/dist/utils/stepper.d.ts +2 -0
  262. package/dist/utils/toast.js +3 -3
  263. package/dist/vite-env.d.ts +1 -1
  264. package/dist/vite.config.d.ts +2 -0
  265. package/package.json +157 -157
  266. package/dist/components/atoms/Tooltip/Tooltip.d.ts +0 -4
  267. package/dist/components/atoms/Tooltip/Tooltip.js +0 -121
  268. package/dist/components/molecules/Stepper/Stepper.types.d.ts +0 -9
  269. /package/dist/components/{atoms → molecules}/Tooltip/index.d.ts +0 -0
package/README.md CHANGED
@@ -1,54 +1,54 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
-
14
- ```js
15
- export default tseslint.config({
16
- extends: [
17
- // Remove ...tseslint.configs.recommended and replace with this
18
- ...tseslint.configs.recommendedTypeChecked,
19
- // Alternatively, use this for stricter rules
20
- ...tseslint.configs.strictTypeChecked,
21
- // Optionally, add this for stylistic rules
22
- ...tseslint.configs.stylisticTypeChecked,
23
- ],
24
- languageOptions: {
25
- // other options...
26
- parserOptions: {
27
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
28
- tsconfigRootDir: import.meta.dirname,
29
- },
30
- },
31
- })
32
- ```
33
-
34
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
35
-
36
- ```js
37
- // eslint.config.js
38
- import reactX from 'eslint-plugin-react-x'
39
- import reactDom from 'eslint-plugin-react-dom'
40
-
41
- export default tseslint.config({
42
- plugins: {
43
- // Add the react-x and react-dom plugins
44
- 'react-x': reactX,
45
- 'react-dom': reactDom,
46
- },
47
- rules: {
48
- // other rules...
49
- // Enable its recommended typescript rules
50
- ...reactX.configs['recommended-typescript'].rules,
51
- ...reactDom.configs.recommended.rules,
52
- },
53
- })
54
- ```
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
+
14
+ ```js
15
+ export default tseslint.config({
16
+ extends: [
17
+ // Remove ...tseslint.configs.recommended and replace with this
18
+ ...tseslint.configs.recommendedTypeChecked,
19
+ // Alternatively, use this for stricter rules
20
+ ...tseslint.configs.strictTypeChecked,
21
+ // Optionally, add this for stylistic rules
22
+ ...tseslint.configs.stylisticTypeChecked,
23
+ ],
24
+ languageOptions: {
25
+ // other options...
26
+ parserOptions: {
27
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
28
+ tsconfigRootDir: import.meta.dirname,
29
+ },
30
+ },
31
+ })
32
+ ```
33
+
34
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
35
+
36
+ ```js
37
+ // eslint.config.js
38
+ import reactX from 'eslint-plugin-react-x'
39
+ import reactDom from 'eslint-plugin-react-dom'
40
+
41
+ export default tseslint.config({
42
+ plugins: {
43
+ // Add the react-x and react-dom plugins
44
+ 'react-x': reactX,
45
+ 'react-dom': reactDom,
46
+ },
47
+ rules: {
48
+ // other rules...
49
+ // Enable its recommended typescript rules
50
+ ...reactX.configs['recommended-typescript'].rules,
51
+ ...reactDom.configs.recommended.rules,
52
+ },
53
+ })
54
+ ```
@@ -3,10 +3,11 @@ type ColorVariant = "blue" | "aqua" | "red" | "gray";
3
3
  type Variant = "rounded" | "square";
4
4
  interface CheckboxProps extends React.ComponentPropsWithoutRef<"div"> {
5
5
  active?: boolean | string | number;
6
- color?: ColorVariant;
7
6
  variant?: Variant;
8
- className?: string;
7
+ color?: ColorVariant;
9
8
  size?: number;
9
+ disabled?: boolean;
10
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
10
11
  }
11
12
  declare const Checkbox: React.FC<CheckboxProps>;
12
13
  export default Checkbox;
@@ -1,42 +1,55 @@
1
- import { j as d } from "../../../_virtual/jsx-runtime.js";
2
- const c = ({
3
- active: r,
1
+ import { j as a } from "../../../_virtual/jsx-runtime.js";
2
+ import { FontAwesomeIcon as h } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
3
+ import { faCheck as m } from "../../../node_modules/@fortawesome/pro-solid-svg-icons/index.js";
4
+ const $ = ({
5
+ active: d = !1,
6
+ variant: b = "rounded",
4
7
  color: n = "blue",
5
- variant: l = "rounded",
6
- className: u,
7
- size: o = 16,
8
- ...i
8
+ size: e = 20,
9
+ disabled: o = !1,
10
+ onClick: t,
11
+ className: i = "",
12
+ ...l
9
13
  }) => {
10
- const t = {
11
- blue: "border-blue-500 bg-blue-500",
12
- aqua: "border-aqua-500 bg-aqua-500",
13
- red: "border-red-500 bg-red-500",
14
- gray: "border-gray-500 bg-gray-500"
15
- }[n], a = {
16
- rounded: "rounded-full",
17
- square: "rounded-md"
18
- }[l], s = (e) => ({
19
- width: `${e}px`,
20
- height: `${e}px`,
21
- minWidth: `${e}px`,
22
- minHeight: `${e}px`
23
- });
24
- return /* @__PURE__ */ d.jsx(
14
+ const r = !!d, s = (y) => {
15
+ o || t && t(y);
16
+ }, g = {
17
+ blue: r ? "bg-blue-500 border-blue-500" : "bg-white border-gray-300 hover:border-blue-400",
18
+ aqua: r ? "bg-aqua-500 border-aqua-500" : "bg-white border-gray-300 hover:border-aqua-400",
19
+ red: r ? "bg-red-500 border-red-500" : "bg-white border-gray-300 hover:border-red-400",
20
+ gray: r ? "bg-gray-500 border-gray-500" : "bg-white border-gray-300 hover:border-gray-400"
21
+ }, c = r ? "bg-gray-400 border-gray-400 opacity-60" : "bg-gray-100 border-gray-300 opacity-60", u = b === "rounded" ? "rounded-full" : "rounded-md";
22
+ return /* @__PURE__ */ a.jsx(
25
23
  "div",
26
24
  {
27
- className: `relative transition-colors ease-in-out duration-150 flex items-center justify-center ${a} border-[1.5px] bg-white ${r ? t : "border-gray-400"} ${u}`,
28
- style: s(o),
29
- ...i,
30
- children: /* @__PURE__ */ d.jsx(
31
- "div",
25
+ className: `
26
+ relative flex items-center justify-center border-[1.5px] transition-all duration-150
27
+ ${u}
28
+ ${o ? "cursor-not-allowed" : "cursor-pointer"}
29
+ ${o ? c : g[n]}
30
+ ${i}
31
+ `,
32
+ style: {
33
+ width: `${e}px`,
34
+ height: `${e}px`,
35
+ minWidth: `${e}px`,
36
+ minHeight: `${e}px`
37
+ },
38
+ onClick: s,
39
+ ...l,
40
+ children: r && /* @__PURE__ */ a.jsx(
41
+ h,
32
42
  {
33
- className: `absolute transition-colors ease-in-out duration-150 ${a} size-12 ${r ? t : ""}`,
34
- style: s(o * 0.7)
43
+ icon: m,
44
+ className: "text-white",
45
+ style: {
46
+ fontSize: `${e * 0.6}px`
47
+ }
35
48
  }
36
49
  )
37
50
  }
38
51
  );
39
52
  };
40
53
  export {
41
- c as default
54
+ $ as default
42
55
  };
@@ -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: b = "base"
20
+ }) => {
21
+ const {
22
+ field: { value: y, 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: y,
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: b
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: b = !0,
54
+ size: y = "base"
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
+ base: {
67
+ container: "p-16",
68
+ text: "text-body-m",
69
+ label: "text-14",
70
+ error: "text-sm",
71
+ gap: "gap-8",
72
+ icon: "w-16 h-16"
73
+ }
74
+ }[y], { 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
+ b && /* @__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' | 'base';
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' | 'base';
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';