lawgic-dev-kit 0.21.4 → 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 +131 -143
  6. package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +4 -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 +2 -0
  14. package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +102 -87
  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 +4 -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 +2 -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 +6 -3
  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
@@ -1,4 +1,4 @@
1
- import { j as o } from "../../../_virtual/jsx-runtime.js";
1
+ import { j as l } from "../../../_virtual/jsx-runtime.js";
2
2
  import { useController as w } from "react-hook-form";
3
3
  import { useTheme as v } from "../../../hooks/useTheme.js";
4
4
  import "react";
@@ -6,59 +6,59 @@ const S = ({
6
6
  label: c,
7
7
  control: x,
8
8
  name: e,
9
- placeholder: d,
10
- className: i = "",
9
+ placeholder: p,
10
+ className: d = "",
11
11
  disabled: t = !1,
12
- leftSide: s,
12
+ leftSide: a,
13
13
  rightSide: n,
14
- translateKey: p = "",
15
- size: b = "base",
16
- ...g
14
+ translateKey: i = "",
15
+ size: g = "base",
16
+ ...b
17
17
  }) => {
18
18
  const {
19
- field: { value: u = "", onChange: f, ref: h, onBlur: m },
19
+ field: { value: u = "", onChange: m, ref: f, onBlur: h },
20
20
  fieldState: { error: r }
21
- } = w({ name: e, control: x }), { t: a } = v(), l = {
21
+ } = w({ name: e, control: x }), { t: s } = v(), o = {
22
22
  sm: {
23
- container: "p-8",
24
- text: "text-body-s",
25
- label: "text-xs",
26
- error: "text-xs",
27
- gap: "gap-6"
23
+ container: "px-16 py-8",
24
+ text: "text-sm",
25
+ label: "text-sm",
26
+ error: "text-sm",
27
+ gap: "gap-8"
28
28
  },
29
29
  base: {
30
30
  container: "p-16",
31
31
  text: "text-body-m",
32
- label: "text-label",
33
- error: "text-label",
32
+ label: "text-14",
33
+ error: "text-sm",
34
34
  gap: "gap-8"
35
35
  }
36
- }[b], y = a(e), $ = a(p);
37
- return /* @__PURE__ */ o.jsxs(
36
+ }[g], y = s(e), $ = s(i);
37
+ return /* @__PURE__ */ l.jsxs(
38
38
  "label",
39
39
  {
40
- className: `flex flex-col group select-none ${l.gap} ${t && "cursor-not-allowed"} ${i}`,
40
+ className: `flex flex-col group select-none ${o.gap} ${t && "cursor-not-allowed"} ${d}`,
41
41
  htmlFor: e,
42
42
  children: [
43
- /* @__PURE__ */ o.jsx(
43
+ /* @__PURE__ */ l.jsx(
44
44
  "h6",
45
45
  {
46
- className: `text-gray-600 font-600 group ${r && "text-red-500!"} ${l.label} ${t && "text-gray-300"}`,
46
+ className: `text-gray-600 font-600 group ${r && "text-red-500!"} ${o.label} ${t && "text-gray-300"}`,
47
47
  children: c
48
48
  }
49
49
  ),
50
- /* @__PURE__ */ o.jsxs(
50
+ /* @__PURE__ */ l.jsxs(
51
51
  "label",
52
52
  {
53
53
  htmlFor: e,
54
54
  className: `
55
- flex items-center justify-between gap-8 ${l.container}
55
+ flex items-center justify-between gap-8 ${o.container}
56
56
 
57
57
  ${r && "border-red-500!"}
58
58
 
59
59
  !bg-blue-50
60
60
 
61
- w-full h-full rounded-full border
61
+ rounded-full border
62
62
 
63
63
  ${u && !t ? "border-blue-200" : "border-blue-100"}
64
64
  ${!t && "group-hover:border-blue-300"}
@@ -69,27 +69,27 @@ const S = ({
69
69
  group-disabled:bg-gray-500
70
70
  `,
71
71
  children: [
72
- s && s,
73
- /* @__PURE__ */ o.jsx(
72
+ a && a,
73
+ /* @__PURE__ */ l.jsx(
74
74
  "input",
75
75
  {
76
76
  id: e,
77
77
  name: e,
78
78
  disabled: t,
79
- placeholder: d,
79
+ placeholder: p,
80
80
  value: u,
81
- onChange: (j) => f(j.target.value),
82
- onBlur: m,
83
- ref: h,
84
- className: `group bg-transparent w-full h-full font-600 placeholder:font-600 ${l.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,
85
- ...g
81
+ onChange: (j) => m(j.target.value),
82
+ onBlur: h,
83
+ ref: f,
84
+ 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-hidden`,
85
+ ...b
86
86
  }
87
87
  ),
88
88
  n && n
89
89
  ]
90
90
  }
91
91
  ),
92
- /* @__PURE__ */ o.jsx("h4", { className: `font-500 text-red-500 leading-none ${l.error}`, children: (r == null ? void 0 : r.message) && a(r.message, { x: $ || y }) })
92
+ /* @__PURE__ */ l.jsx("h4", { className: `font-500 text-red-500 leading-none ${o.error}`, children: (r == null ? void 0 : r.message) && s(r.message, { x: $ || y }) })
93
93
  ]
94
94
  }
95
95
  );
@@ -1,5 +1,4 @@
1
- import { ToastType } from '../../../types';
2
- type ToastContent = string | React.ReactNode;
1
+ import { ToastContent, ToastType } from '../../../types';
3
2
  interface ToastProps {
4
3
  id?: string;
5
4
  content: ToastContent;
@@ -13,7 +12,7 @@ interface ToastManagerProps {
13
12
  toasts: Array<{
14
13
  id: string;
15
14
  content: ToastContent;
16
- type: "success" | "error" | "warning" | "info" | "loading";
15
+ type: "success" | "error" | "warning" | "notification" | "loading";
17
16
  duration?: number;
18
17
  }>;
19
18
  removeToast: (id: string) => void;
@@ -1,48 +1,50 @@
1
1
  import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- import { faCircleInfo as c, faXmark as p, faCircleExclamation as y, faTriangleExclamation as h, faCircleCheck as w } from "../../../node_modules/@fortawesome/pro-light-svg-icons/index.js";
2
+ import { faXmark as g, faCircleInfo as s, faBell as b, faTriangleExclamation as y, faCircleCheck as h } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
3
3
  import { FontAwesomeIcon as x } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
4
4
  import { useState as j, useEffect as f } from "react";
5
- import { AnimatePresence as N } from "../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
6
- import { motion as T } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
7
- const k = 500, D = ({
8
- id: d,
9
- content: b,
10
- type: u = "info",
11
- duration: s = 0,
12
- onClose: o
5
+ import { AnimatePresence as k } from "../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
6
+ import { motion as w } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
7
+ const N = 500, B = ({
8
+ id: p,
9
+ content: r,
10
+ type: u = "notification",
11
+ duration: o = 0,
12
+ onClose: l
13
13
  }) => {
14
14
  const [n, m] = j(!0);
15
- let t = c, a, r, i;
15
+ let t, a = s, i;
16
16
  switch (u) {
17
17
  case "success":
18
- a = "text-green-500", r = "bg-green-50", i = "border-green-500", t = w;
18
+ i = "text-green-500", t = "bg-green-100", a = h;
19
19
  break;
20
20
  case "error":
21
- a = "text-red-500", r = "bg-red-50", i = "border-red-500", t = h;
21
+ i = "text-red-500", t = "bg-red-100", a = y;
22
22
  break;
23
23
  case "warning":
24
- a = "text-yellow-500", r = "bg-yellow-50", i = "border-yellow-500", t = y;
24
+ i = "text-yellow-500", t = "bg-yellow-100", a = s;
25
25
  break;
26
26
  case "loading":
27
- a = "text-gray-500", r = "bg-gray-50", i = "border-gray-500", t = c;
27
+ i = "text-gray-500", t = "bg-gray-100", a = s;
28
+ break;
29
+ case "notification":
30
+ i = "text-blue-500", t = "bg-blue-100", a = b;
28
31
  break;
29
- case "info":
30
32
  default:
31
- a = "text-blue-500", r = "bg-blue-50", i = "border-blue-500", t = c;
33
+ i = "text-blue-500", t = "bg-blue-100", a = s;
32
34
  }
33
35
  f(() => {
34
- if (s === 0) return;
35
- const l = setTimeout(() => {
36
+ if (o === 0) return;
37
+ const c = setTimeout(() => {
36
38
  m(!1);
37
- }, s);
38
- return () => clearTimeout(l);
39
- }, [s]), f(() => {
39
+ }, o);
40
+ return () => clearTimeout(c);
41
+ }, [o]), f(() => {
40
42
  if (!n) {
41
- const l = setTimeout(o, k);
42
- return () => clearTimeout(l);
43
+ const c = setTimeout(l, N);
44
+ return () => clearTimeout(c);
43
45
  }
44
- }, [n, o]);
45
- const g = {
46
+ }, [n, l]);
47
+ const d = {
46
48
  initial: {
47
49
  opacity: 0,
48
50
  y: 50,
@@ -69,45 +71,36 @@ const k = 500, D = ({
69
71
  }
70
72
  }
71
73
  };
72
- return /* @__PURE__ */ e.jsx(N, { onExitComplete: o, children: n && /* @__PURE__ */ e.jsx(
73
- T.div,
74
+ return /* @__PURE__ */ e.jsx(k, { onExitComplete: l, children: n && /* @__PURE__ */ e.jsxs(
75
+ w.div,
74
76
  {
75
- id: d,
76
- className: `toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${r} ${i}`,
77
+ id: p,
78
+ className: "toast w-[320px] rounded-xl border-[1.5px] p-[18px] shadow-md bg-white font-jakarta-sans",
77
79
  initial: "initial",
78
80
  animate: "animate",
79
81
  exit: "exit",
80
- variants: g,
82
+ variants: d,
81
83
  layout: !0,
82
- children: /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center p-3", children: [
83
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-6", children: [
84
- /* @__PURE__ */ e.jsx(
85
- x,
86
- {
87
- icon: t,
88
- className: `w-20 h-20 min-h-20 min-w-20 ${a}`
89
- }
90
- ),
91
- /* @__PURE__ */ e.jsx("span", { className: "text-gray-800 font-medium text-base", children: b })
92
- ] }),
84
+ children: [
93
85
  /* @__PURE__ */ e.jsx(
94
- "button",
86
+ x,
95
87
  {
88
+ icon: g,
96
89
  onClick: () => m(!1),
97
- className: "text-gray-500 transition-all hover:text-gray-700 flex items-center",
98
- children: /* @__PURE__ */ e.jsx(
99
- x,
100
- {
101
- icon: p,
102
- className: "w-20 h-20 min-h-20 min-w-20"
103
- }
104
- )
90
+ className: "float-right text-lg text-[#9CA1B6] cursor-pointer"
105
91
  }
106
- )
107
- ] })
92
+ ),
93
+ /* @__PURE__ */ e.jsxs("div", { className: "space-y-16", children: [
94
+ /* @__PURE__ */ e.jsxs("div", { className: "flex gap-12", children: [
95
+ /* @__PURE__ */ e.jsx(x, { icon: a, className: `text-[20px] p-6 rounded-full self-start ${i} ${t}` }),
96
+ /* @__PURE__ */ e.jsx("h5", { className: "text-lg font-bold text-blue-900 self-center", children: r.title })
97
+ ] }),
98
+ r.description && /* @__PURE__ */ e.jsx("span", { className: "text-sm text-gray-500 leading-[16px]", children: r.description })
99
+ ] })
100
+ ]
108
101
  }
109
102
  ) });
110
103
  };
111
104
  export {
112
- D as default
105
+ B as default
113
106
  };
@@ -16,6 +16,8 @@ interface UncontrolledSelectorProps {
16
16
  className?: string;
17
17
  innerClassName?: string;
18
18
  dropdownStyle?: React.CSSProperties;
19
+ showChevron?: boolean;
20
+ size?: 'sm' | 'base';
19
21
  }
20
22
  declare const UncontrolledSelector: React.FC<UncontrolledSelectorProps>;
21
23
  export default UncontrolledSelector;
@@ -1,28 +1,49 @@
1
1
  import { j as t } from "../../../_virtual/jsx-runtime.js";
2
- import M, { useState as k, useRef as N, useMemo as p } from "react";
3
- import { useFloating as U, useClick as _, useDismiss as H, useInteractions as Y, useTransitionStyles as q } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
4
- import G from "fuse.js";
5
- import { autoUpdate as J } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
6
- import { offset as K, flip as Q, shift as X, size as Z, arrow as ee } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
7
- const ie = ({
2
+ import M, { useState as N, useRef as $, useMemo as g } from "react";
3
+ import { useFloating as Y, useClick as q, useDismiss as G, useInteractions as J, useTransitionStyles as K } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
4
+ import Q from "fuse.js";
5
+ import { autoUpdate as X } from "../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
6
+ import { offset as Z, flip as ee, shift as te, size as re, arrow as se } from "../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
7
+ const me = ({
8
8
  options: r,
9
- onChange: x,
9
+ onChange: b,
10
10
  value: s,
11
- disabled: d,
12
- error: o,
13
- label: g = "",
11
+ disabled: u,
12
+ error: i,
13
+ label: y = "",
14
14
  placeholder: L = "",
15
- allowSearch: b = !1,
16
- className: C = "",
17
- innerClassName: $ = "",
18
- dropdownStyle: S = {}
15
+ allowSearch: j = !1,
16
+ className: S = "",
17
+ innerClassName: C = "",
18
+ dropdownStyle: O = {},
19
+ showChevron: z = !0,
20
+ size: R = "base"
19
21
  }) => {
20
- const [a, u] = k(!1), [l, m] = k(""), h = N(null), O = N(null), y = r.find((e) => e.value === s), j = p(() => r.map((e) => ({
22
+ const [l, m] = N(!1), [a, p] = N(""), h = $(null), T = $(null), x = r.find((e) => e.value === s), n = {
23
+ sm: {
24
+ container: "px-16 py-8",
25
+ text: "text-sm",
26
+ label: "text-sm",
27
+ error: "text-sm",
28
+ gap: "gap-8",
29
+ icon: "w-12 h-12",
30
+ option: "text-sm"
31
+ },
32
+ base: {
33
+ container: "p-16",
34
+ text: "text-body-m",
35
+ label: "text-14",
36
+ error: "text-sm",
37
+ gap: "gap-8",
38
+ icon: "w-16 h-16",
39
+ option: "text-body-m"
40
+ }
41
+ }[R], v = g(() => r.map((e) => ({
21
42
  ...e,
22
43
  // Extract text from React nodes if needed
23
- searchableLabel: typeof e.label == "string" ? e.label : M.isValidElement(e.label) ? c(e.label) : String(e.label),
44
+ searchableLabel: typeof e.label == "string" ? e.label : M.isValidElement(e.label) ? d(e.label) : String(e.label),
24
45
  searchableValue: String(e.value)
25
- })), [r]), v = p(() => {
46
+ })), [r]), w = g(() => {
26
47
  const e = {
27
48
  keys: [
28
49
  { name: "searchableLabel", weight: 2 },
@@ -40,103 +61,97 @@ const ie = ({
40
61
  shouldSort: !0,
41
62
  findAllMatches: !0
42
63
  };
43
- return new G(j, e);
44
- }, [j]), { x: R, y: T, strategy: F, refs: i, context: f } = U({
45
- open: a,
46
- onOpenChange: u,
64
+ return new Q(v, e);
65
+ }, [v]), { x: F, y: P, strategy: A, refs: c, context: f } = Y({
66
+ open: l,
67
+ onOpenChange: m,
47
68
  middleware: [
48
- K(8),
49
- Q(),
50
- X({ padding: 8 }),
51
- Z({
52
- apply({ availableHeight: e, elements: n }) {
53
- Object.assign(n.floating.style, {
69
+ Z(8),
70
+ ee(),
71
+ te({ padding: 8 }),
72
+ re({
73
+ apply({ availableHeight: e, elements: o }) {
74
+ Object.assign(o.floating.style, {
54
75
  maxHeight: `${Math.min(e - 10, 300)}px`
55
76
  });
56
77
  },
57
78
  padding: 8
58
79
  }),
59
- ee({ element: O })
80
+ se({ element: T })
60
81
  ],
61
82
  placement: "bottom-start",
62
- whileElementsMounted: J
63
- }), P = _(f), z = H(f), { getReferenceProps: A, getFloatingProps: E } = Y([
64
- P,
65
- z
66
- ]), { isMounted: W, styles: B } = q(f, {
83
+ whileElementsMounted: X
84
+ }), E = q(f), W = G(f), { getReferenceProps: B, getFloatingProps: V } = J([
85
+ E,
86
+ W
87
+ ]), { isMounted: D, styles: I } = K(f, {
67
88
  duration: { open: 200, close: 150 },
68
89
  initial: { opacity: 0, transform: "translateY(-4px)" }
69
- }), w = p(() => l.trim() ? v.search(l).map((n) => ({
70
- ...n.item,
71
- score: n.score,
72
- matches: n.matches
73
- })) : r, [l, v, r]), V = (e) => {
74
- x(e.value), u(!1), m("");
75
- }, D = A({
90
+ }), k = g(() => a.trim() ? w.search(a).map((o) => ({
91
+ ...o.item,
92
+ score: o.score,
93
+ matches: o.matches
94
+ })) : r, [a, w, r]), U = (e) => {
95
+ b(e.value), m(!1), p("");
96
+ }, _ = B({
76
97
  onClick: () => {
77
- d || (u(!a), !a && h.current && b && setTimeout(() => {
98
+ u || (m(!l), !l && h.current && j && setTimeout(() => {
78
99
  var e;
79
100
  return (e = h.current) == null ? void 0 : e.focus();
80
101
  }, 100));
81
102
  }
82
103
  });
83
- return /* @__PURE__ */ t.jsxs("div", { className: `w-full relative flex flex-col gap-8 ${C}`, children: [
84
- g && /* @__PURE__ */ t.jsx(
104
+ return /* @__PURE__ */ t.jsxs("div", { className: `relative flex flex-col ${n.gap} ${S}`, children: [
105
+ y && /* @__PURE__ */ t.jsx(
85
106
  "h6",
86
107
  {
87
- className: `text-gray-600 font-600 group ${o ? "!text-red-500" : ""} text-label ${d ? "text-gray-300" : ""}`,
88
- children: g
108
+ className: `text-gray-600 font-600 group ${i ? "!text-red-500" : ""} ${n.label} ${u ? "text-gray-300" : ""}`,
109
+ children: y
89
110
  }
90
111
  ),
91
112
  /* @__PURE__ */ t.jsxs(
92
113
  "div",
93
114
  {
94
- ref: i.setReference,
95
- className: `${$} flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
96
- border transition-all duration-200 ${d ? "opacity-60 cursor-not-allowed" : "hover:border-blue-400"}
97
- ${o ? "border-red-500 hover:border-red-600" : ""} ${a ? "border-blue-400" : "border-blue-100"}`,
98
- ...D,
115
+ ref: c.setReference,
116
+ className: `${C} flex items-center justify-between bg-light rounded-full
117
+ ${n.container} cursor-pointer border transition-all duration-200
118
+ ${u ? "opacity-60 cursor-not-allowed" : "hover:border-blue-400"}
119
+ ${i ? "border-red-500 hover:border-red-600" : ""}
120
+ ${l ? "border-blue-400" : "border-blue-100"}`,
121
+ ..._,
99
122
  children: [
100
- y ? /* @__PURE__ */ t.jsx("div", { className: "flex items-center w-full", children: /* @__PURE__ */ t.jsx("span", { className: "flex-grow font-600 text-body-m", children: y.label }) }) : /* @__PURE__ */ t.jsx("span", { className: "text-gray-400 font-600 text-body-m", children: L }),
101
- /* @__PURE__ */ t.jsx(
123
+ /* @__PURE__ */ t.jsx("div", { className: "flex items-center w-full overflow-hidden", children: /* @__PURE__ */ t.jsx("span", { className: `flex-grow font-600 truncate ${n.text} ${x ? "" : "text-gray-400"}`, children: x ? x.label : L }) }),
124
+ z && /* @__PURE__ */ t.jsx(
102
125
  "svg",
103
126
  {
104
- className: `w-16 h-16 transition-transform ${a ? "transform rotate-180" : ""}`,
127
+ className: `${n.icon} transition-transform ${l ? "transform rotate-180" : ""}`,
105
128
  fill: "none",
106
129
  stroke: "currentColor",
107
130
  viewBox: "0 0 24 24",
108
- children: /* @__PURE__ */ t.jsx(
109
- "path",
110
- {
111
- strokeLinecap: "round",
112
- strokeLinejoin: "round",
113
- strokeWidth: "2",
114
- d: "M19 9l-7 7-7-7"
115
- }
116
- )
131
+ children: /* @__PURE__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M19 9l-7 7-7-7" })
117
132
  }
118
133
  )
119
134
  ]
120
135
  }
121
136
  ),
122
- o && /* @__PURE__ */ t.jsx("p", { className: "mt-1 text-sm text-red-600", children: o }),
123
- W && /* @__PURE__ */ t.jsxs(
137
+ i && /* @__PURE__ */ t.jsx("p", { className: `font-500 text-red-500 leading-none ${n.error}`, children: i }),
138
+ D && /* @__PURE__ */ t.jsxs(
124
139
  "div",
125
140
  {
126
- ref: i.setFloating,
141
+ ref: c.setFloating,
127
142
  style: {
128
- position: F,
129
- top: T ?? 0,
130
- left: R ?? 0,
131
- ...B,
132
- width: i.reference.current instanceof Element ? i.reference.current.clientWidth : void 0,
143
+ position: A,
144
+ top: P ?? 0,
145
+ left: F ?? 0,
146
+ ...I,
147
+ width: c.reference.current instanceof Element ? c.reference.current.clientWidth : void 0,
133
148
  zIndex: 50,
134
- ...S
149
+ ...O
135
150
  },
136
151
  className: "bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",
137
- ...E(),
152
+ ...V(),
138
153
  children: [
139
- b && /* @__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: [
154
+ j && /* @__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: [
140
155
  /* @__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" }) }) }),
141
156
  /* @__PURE__ */ t.jsx(
142
157
  "input",
@@ -145,38 +160,38 @@ const ie = ({
145
160
  type: "text",
146
161
  className: "w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",
147
162
  placeholder: "Search options...",
148
- value: l,
149
- onChange: (e) => m(e.target.value),
163
+ value: a,
164
+ onChange: (e) => p(e.target.value),
150
165
  onClick: (e) => e.stopPropagation(),
151
166
  autoFocus: !0
152
167
  }
153
168
  ),
154
- l && /* @__PURE__ */ t.jsx(
169
+ a && /* @__PURE__ */ t.jsx(
155
170
  "button",
156
171
  {
157
172
  className: "absolute inset-y-0 right-0 pr-12 flex items-center",
158
173
  onClick: (e) => {
159
- e.stopPropagation(), m("");
174
+ e.stopPropagation(), p("");
160
175
  },
161
176
  children: /* @__PURE__ */ t.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__ */ t.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" }) })
162
177
  }
163
178
  )
164
179
  ] }) }),
165
- /* @__PURE__ */ t.jsx("div", { className: "max-h-[250px] overflow-y-auto", children: w.length > 0 ? /* @__PURE__ */ t.jsx("ul", { className: "py-4", children: w.map((e, n) => /* @__PURE__ */ t.jsx(
180
+ /* @__PURE__ */ t.jsx("div", { className: "max-h-[250px] overflow-y-auto", children: k.length > 0 ? /* @__PURE__ */ t.jsx("ul", { className: "py-4", children: k.map((e, o) => /* @__PURE__ */ t.jsx(
166
181
  "li",
167
182
  {
168
- className: `flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${s === e.value ? "bg-blue-100/30 text-blue-500 font-medium" : ""}`,
169
- onClick: (I) => {
170
- I.stopPropagation(), V(e);
183
+ className: `flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n.option} ${s === e.value ? "bg-blue-100/30 text-blue-500 font-medium text" : ""}`,
184
+ onClick: (H) => {
185
+ H.stopPropagation(), U(e);
171
186
  },
172
187
  children: /* @__PURE__ */ t.jsx("span", { children: (e == null ? void 0 : e.expandedLabel) || e.label })
173
188
  },
174
- `${e.value}-${n}`
189
+ `${e.value}-${o}`
175
190
  )) }) : /* @__PURE__ */ t.jsxs("div", { className: "px-16 py-16 text-center text-gray-500", children: [
176
191
  /* @__PURE__ */ t.jsx("svg", { className: "mx-auto h-24 w-24 text-gray-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ t.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" }) }),
177
192
  /* @__PURE__ */ t.jsxs("p", { className: "mt-8 text-body-s", children: [
178
193
  'No matches found for "',
179
- l,
194
+ a,
180
195
  '"'
181
196
  ] })
182
197
  ] }) })
@@ -184,16 +199,16 @@ const ie = ({
184
199
  }
185
200
  )
186
201
  ] });
187
- }, c = (r) => {
202
+ }, d = (r) => {
188
203
  if (typeof r == "string") return r;
189
204
  if (typeof r == "number" || typeof r == "boolean") return String(r);
190
205
  if (!r) return "";
191
206
  if (M.isValidElement(r)) {
192
207
  const s = r.props.children;
193
- return s ? Array.isArray(s) ? s.map(c).join(" ") : c(s) : "";
208
+ return s ? Array.isArray(s) ? s.map(d).join(" ") : d(s) : "";
194
209
  }
195
- return Array.isArray(r) ? r.map(c).join(" ") : "";
210
+ return Array.isArray(r) ? r.map(d).join(" ") : "";
196
211
  };
197
212
  export {
198
- ie as default
213
+ me as default
199
214
  };