@povio/ui 3.4.0-rc.10 → 3.4.0-rc.11

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 (316) hide show
  1. package/dist/assets/icons/Account.d.ts +2 -0
  2. package/dist/assets/icons/AlignCenter.d.ts +2 -0
  3. package/dist/assets/icons/AlignCenter.js +30 -0
  4. package/dist/assets/icons/AlignLeft.d.ts +2 -0
  5. package/dist/assets/icons/AlignLeft.js +30 -0
  6. package/dist/assets/icons/AlignLeftRight.d.ts +2 -0
  7. package/dist/assets/icons/AlignLeftRight.js +30 -0
  8. package/dist/assets/icons/AlignRight.d.ts +2 -0
  9. package/dist/assets/icons/AlignRight.js +30 -0
  10. package/dist/assets/icons/ArrowDropDown.d.ts +2 -0
  11. package/dist/assets/icons/ArrowDropDown.js +30 -0
  12. package/dist/assets/icons/ArrowDropUp.d.ts +2 -0
  13. package/dist/assets/icons/ArrowDropUp.js +30 -0
  14. package/dist/assets/icons/ArrowLeft.d.ts +2 -0
  15. package/dist/assets/icons/ArrowLeft.js +30 -0
  16. package/dist/assets/icons/ArrowRight.d.ts +2 -0
  17. package/dist/assets/icons/ArrowRight.js +30 -0
  18. package/dist/assets/icons/Board.d.ts +2 -0
  19. package/dist/assets/icons/Bold.d.ts +2 -0
  20. package/dist/assets/icons/Bold.js +30 -0
  21. package/dist/assets/icons/BulletedList.d.ts +2 -0
  22. package/dist/assets/icons/BulletedList.js +30 -0
  23. package/dist/assets/icons/Calendar.d.ts +2 -0
  24. package/dist/assets/icons/Calendar.js +32 -0
  25. package/dist/assets/icons/Check.d.ts +2 -0
  26. package/dist/assets/icons/Check.js +32 -0
  27. package/dist/assets/icons/CheckCircle.d.ts +2 -0
  28. package/dist/assets/icons/CheckCircle.js +30 -0
  29. package/dist/assets/icons/CheckboxCheckmark.d.ts +2 -0
  30. package/dist/assets/icons/CheckboxCheckmark.js +33 -0
  31. package/dist/assets/icons/CheckboxIndeterminate.d.ts +2 -0
  32. package/dist/assets/icons/CheckboxIndeterminate.js +33 -0
  33. package/dist/assets/icons/ChevronDown.d.ts +2 -0
  34. package/dist/assets/icons/ChevronDown.js +32 -0
  35. package/dist/assets/icons/ChevronLeft.d.ts +2 -0
  36. package/dist/assets/icons/ChevronLeft.js +32 -0
  37. package/dist/assets/icons/ChevronRight.d.ts +2 -0
  38. package/dist/assets/icons/ChevronRight.js +32 -0
  39. package/dist/assets/icons/ChevronUp.d.ts +2 -0
  40. package/dist/assets/icons/ChevronUp.js +32 -0
  41. package/dist/assets/icons/ChevronsLeft.d.ts +2 -0
  42. package/dist/assets/icons/ChevronsLeft.js +32 -0
  43. package/dist/assets/icons/ChevronsRight.d.ts +2 -0
  44. package/dist/assets/icons/ChevronsRight.js +32 -0
  45. package/dist/assets/icons/Clock.d.ts +2 -0
  46. package/dist/assets/icons/Clock.js +30 -0
  47. package/dist/assets/icons/Close.d.ts +2 -0
  48. package/dist/assets/icons/Close.js +30 -0
  49. package/dist/assets/icons/DateTime.d.ts +2 -0
  50. package/dist/assets/icons/DateTime.js +39 -0
  51. package/dist/assets/icons/DragIndicator.d.ts +2 -0
  52. package/dist/assets/icons/DragIndicator.js +30 -0
  53. package/dist/assets/icons/Edit.d.ts +2 -0
  54. package/dist/assets/icons/Emoji.d.ts +2 -0
  55. package/dist/assets/icons/File.d.ts +2 -0
  56. package/dist/assets/icons/File.js +32 -0
  57. package/dist/assets/icons/Grid.d.ts +2 -0
  58. package/dist/assets/icons/Highlight.d.ts +2 -0
  59. package/dist/assets/icons/Highlight.js +30 -0
  60. package/dist/assets/icons/HighlightOn.d.ts +6 -0
  61. package/dist/assets/icons/HighlightOn.js +55 -0
  62. package/dist/assets/icons/Home.d.ts +2 -0
  63. package/dist/assets/icons/Home.js +30 -0
  64. package/dist/assets/icons/Image.d.ts +2 -0
  65. package/dist/assets/icons/ImageError.d.ts +2 -0
  66. package/dist/assets/icons/Info.d.ts +2 -0
  67. package/dist/assets/icons/Info.js +41 -0
  68. package/dist/assets/icons/Italic.d.ts +2 -0
  69. package/dist/assets/icons/Italic.js +30 -0
  70. package/dist/assets/icons/Link.d.ts +2 -0
  71. package/dist/assets/icons/Link.js +30 -0
  72. package/dist/assets/icons/Loader.d.ts +2 -0
  73. package/dist/assets/icons/MapPin.d.ts +2 -0
  74. package/dist/assets/icons/Menu.d.ts +2 -0
  75. package/dist/assets/icons/Menu.js +30 -0
  76. package/dist/assets/icons/Minus.d.ts +2 -0
  77. package/dist/assets/icons/MoreHoriz.d.ts +2 -0
  78. package/dist/assets/icons/NumberedList.d.ts +2 -0
  79. package/dist/assets/icons/NumberedList.js +30 -0
  80. package/dist/assets/icons/Pause.d.ts +2 -0
  81. package/dist/assets/icons/Plus.d.ts +2 -0
  82. package/dist/assets/icons/PointerHorizontal.d.ts +2 -0
  83. package/dist/assets/icons/PointerHorizontal.js +30 -0
  84. package/dist/assets/icons/PointerVertical.d.ts +2 -0
  85. package/dist/assets/icons/PointerVertical.js +30 -0
  86. package/dist/assets/icons/Retry.d.ts +2 -0
  87. package/dist/assets/icons/Search.d.ts +2 -0
  88. package/dist/assets/icons/Search.js +30 -0
  89. package/dist/assets/icons/Send.d.ts +2 -0
  90. package/dist/assets/icons/Send.js +32 -0
  91. package/dist/assets/icons/Share.d.ts +2 -0
  92. package/dist/assets/icons/Slash.d.ts +2 -0
  93. package/dist/assets/icons/Strikethrough.d.ts +2 -0
  94. package/dist/assets/icons/Strikethrough.js +30 -0
  95. package/dist/assets/icons/TextColor.d.ts +6 -0
  96. package/dist/assets/icons/TextColor.js +52 -0
  97. package/dist/assets/icons/Today.d.ts +2 -0
  98. package/dist/assets/icons/Today.js +30 -0
  99. package/dist/assets/icons/Trash.d.ts +2 -0
  100. package/dist/assets/icons/Underlined.d.ts +2 -0
  101. package/dist/assets/icons/Underlined.js +32 -0
  102. package/dist/assets/icons/Upload.d.ts +2 -0
  103. package/dist/assets/icons/Upload.js +39 -0
  104. package/dist/assets/icons/User.d.ts +2 -0
  105. package/dist/assets/icons/Visibility.d.ts +2 -0
  106. package/dist/assets/icons/Visibility.js +30 -0
  107. package/dist/assets/icons/VisibilityOff.d.ts +2 -0
  108. package/dist/assets/icons/VisibilityOff.js +30 -0
  109. package/dist/assets/icons/WarningFilled.d.ts +2 -0
  110. package/dist/assets/icons/WarningFilled.js +32 -0
  111. package/dist/assets/icons/WarningOutlined.d.ts +2 -0
  112. package/dist/components/Breadcrumbs/Breadcrumbs.js +7 -7
  113. package/dist/components/Menu/MenuDesktop.js +1 -1
  114. package/dist/components/Menu/MenuItem.js +4 -4
  115. package/dist/components/Menu/MenuMobile.js +5 -5
  116. package/dist/components/Menu/MenuPopover.js +2 -2
  117. package/dist/components/buttons/Button/Button.js +1 -1
  118. package/dist/components/buttons/PillButton/PillButton.js +4 -4
  119. package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
  120. package/dist/components/buttons/SplitButton/SplitButton.js +3 -3
  121. package/dist/components/buttons/shared/ButtonContent.js +2 -2
  122. package/dist/components/buttons/shared/buttonContent.cva.d.ts +1 -1
  123. package/dist/components/inputs/Checkbox/Checkbox.d.ts +2 -1
  124. package/dist/components/inputs/Checkbox/Checkbox.js +102 -95
  125. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +3 -2
  126. package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +2 -1
  127. package/dist/components/inputs/Checkbox/CheckboxGroup.js +115 -111
  128. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +2 -2
  129. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +22 -17
  130. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +2 -2
  131. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +23 -17
  132. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +2 -2
  133. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +25 -21
  134. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +2 -2
  135. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +238 -225
  136. package/dist/components/inputs/DateTime/shared/Calendar.js +1 -1
  137. package/dist/components/inputs/DateTime/shared/CalendarCell.js +1 -1
  138. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +1 -1
  139. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +10 -7
  140. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +12 -8
  141. package/dist/components/inputs/DateTime/shared/DateField.d.ts +1 -2
  142. package/dist/components/inputs/DateTime/shared/DateField.js +4 -4
  143. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -2
  144. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +16 -8
  145. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +3 -3
  146. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +2 -2
  147. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +1 -1
  148. package/dist/components/inputs/DateTime/shared/MonthPicker.js +2 -2
  149. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +2 -2
  150. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +5 -4
  151. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -2
  152. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +11 -10
  153. package/dist/components/inputs/DateTime/shared/YearPicker.js +2 -2
  154. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +1 -46
  155. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +1 -1
  156. package/dist/components/inputs/File/FileUpload.d.ts +1 -1
  157. package/dist/components/inputs/File/FileUpload.js +20 -20
  158. package/dist/components/inputs/File/InputUpload.d.ts +1 -1
  159. package/dist/components/inputs/File/InputUpload.js +19 -19
  160. package/dist/components/inputs/File/fileUpload.types.d.ts +1 -1
  161. package/dist/components/inputs/File/inputUpload.types.d.ts +1 -1
  162. package/dist/components/inputs/File/shared/FileCard.js +1 -1
  163. package/dist/components/inputs/File/shared/FileCardList.js +1 -1
  164. package/dist/components/inputs/File/shared/FileUploadContent.js +1 -1
  165. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -3
  166. package/dist/components/inputs/File/shared/FileUploadContentError.js +6 -5
  167. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +6 -5
  168. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +5 -4
  169. package/dist/components/inputs/File/shared/InputUploadContent.js +4 -4
  170. package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -3
  171. package/dist/components/inputs/FormField/FormFieldError.js +1 -1
  172. package/dist/components/inputs/FormField/FormFieldHeader.js +4 -4
  173. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +3 -3
  174. package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
  175. package/dist/components/inputs/FormField/FormFieldLabel.js +2 -2
  176. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +1 -1
  177. package/dist/components/inputs/Input/NumberInput/NumberInput.js +107 -109
  178. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +1 -2
  179. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +254 -265
  180. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +1 -2
  181. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +24 -25
  182. package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +1 -1
  183. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +4 -3
  184. package/dist/components/inputs/Input/TextArea/TextArea.d.ts +1 -2
  185. package/dist/components/inputs/Input/TextArea/TextArea.js +117 -118
  186. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +2 -2
  187. package/dist/components/inputs/Input/TextInput/TextInput.js +129 -129
  188. package/dist/components/inputs/Input/shared/InputContent.d.ts +1 -2
  189. package/dist/components/inputs/Input/shared/InputContent.js +48 -50
  190. package/dist/components/inputs/Inputs/Form.d.ts +4 -4
  191. package/dist/components/inputs/Inputs/Form.js +1 -1
  192. package/dist/components/inputs/Inputs/InputItem.d.ts +22 -22
  193. package/dist/components/inputs/Inputs/InputItem.js +37 -36
  194. package/dist/components/inputs/Inputs/Inputs.d.ts +2 -2
  195. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +2 -1
  196. package/dist/components/inputs/RadioGroup/RadioGroup.js +113 -109
  197. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +1 -1
  198. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +16 -16
  199. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +1 -1
  200. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +20 -20
  201. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +1 -1
  202. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +1 -1
  203. package/dist/components/inputs/Selection/Select/QuerySelect.js +20 -20
  204. package/dist/components/inputs/Selection/Select/Select.d.ts +1 -1
  205. package/dist/components/inputs/Selection/Select/Select.js +23 -23
  206. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -1
  207. package/dist/components/inputs/Selection/shared/SelectBase.js +37 -34
  208. package/dist/components/inputs/Selection/shared/SelectDesktop.js +56 -58
  209. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
  210. package/dist/components/inputs/Selection/shared/SelectInput.js +56 -57
  211. package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
  212. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +2 -2
  213. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +2 -2
  214. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +1 -1
  215. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +1 -1
  216. package/dist/components/inputs/Selection/shared/SelectMobile.js +4 -5
  217. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +3 -3
  218. package/dist/components/inputs/Selection/shared/select.context.d.ts +2 -2
  219. package/dist/components/inputs/Selection/shared/select.context.js +9 -5
  220. package/dist/components/inputs/Selection/shared/select.types.d.ts +1 -1
  221. package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -1
  222. package/dist/components/inputs/Skeleton/InputFrame.js +7 -10
  223. package/dist/components/inputs/Slider/Slider.d.ts +1 -1
  224. package/dist/components/inputs/Slider/Slider.js +20 -20
  225. package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -1
  226. package/dist/components/inputs/TextEditor/TextEditor.js +20 -20
  227. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +2 -2
  228. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +4 -4
  229. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -4
  230. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +8 -5
  231. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -3
  232. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +5 -4
  233. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +5 -4
  234. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +9 -6
  235. package/dist/components/inputs/Toggle/Toggle.d.ts +2 -1
  236. package/dist/components/inputs/Toggle/Toggle.js +65 -61
  237. package/dist/components/inputs/shared/CheckContent.js +1 -1
  238. package/dist/components/inputs/shared/InputClear.js +28 -45
  239. package/dist/components/inputs/shared/TooltipWrapper.d.ts +1 -1
  240. package/dist/components/inputs/shared/form.types.d.ts +8 -9
  241. package/dist/components/inputs/shared/input.cva.js +1 -1
  242. package/dist/components/inputs/shared/useStaticInputHandoff.js +38 -64
  243. package/dist/components/navigation/Accordion/Accordion.js +1 -1
  244. package/dist/components/navigation/Accordion/AccordionItem.js +3 -3
  245. package/dist/components/navigation/Stepper/Stepper.js +2 -2
  246. package/dist/components/navigation/Stepper/StepperItem.js +4 -4
  247. package/dist/components/overlays/ActionModal/ActionModal.js +1 -1
  248. package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -3
  249. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -4
  250. package/dist/components/overlays/Drawer/Drawer.js +2 -2
  251. package/dist/components/overlays/Modal/Modal.js +3 -3
  252. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +1 -1
  253. package/dist/components/overlays/Tooltip/Tooltip.js +8 -15
  254. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
  255. package/dist/components/segment/Segment.d.ts +1 -1
  256. package/dist/components/segment/Segment.js +21 -21
  257. package/dist/components/segment/SegmentItem.js +1 -1
  258. package/dist/components/segment/segment.types.d.ts +1 -1
  259. package/dist/components/shared/pagination/Pagination.js +1 -1
  260. package/dist/components/shared/pagination/PaginationList.js +9 -6
  261. package/dist/components/table/ColumnConfig.js +1 -1
  262. package/dist/components/table/InfiniteTable.js +1 -1
  263. package/dist/components/table/Table.js +8 -6
  264. package/dist/components/text/Link/Link.js +1 -1
  265. package/dist/components/text/Pill/Pill.js +3 -3
  266. package/dist/components/text/Tag/Tag.js +3 -3
  267. package/dist/config/confirmation.context.js +1 -1
  268. package/dist/config/link.context.js +1 -1
  269. package/dist/config/router.context.js +1 -1
  270. package/dist/config/theme.context.js +1 -1
  271. package/dist/config/uiConfig.context.d.ts +5 -14
  272. package/dist/config/uiConfig.context.js +11 -9
  273. package/dist/config/uiOverrides.context.js +2 -2
  274. package/dist/helpers/dynamicColumns.d.ts +1 -1
  275. package/dist/helpers/dynamicInputs.d.ts +7 -7
  276. package/dist/hooks/useAutosave.d.ts +4 -4
  277. package/dist/hooks/useAutosave.js +49 -64
  278. package/dist/hooks/useFilters.js +1 -1
  279. package/dist/hooks/useForm.d.ts +15 -39
  280. package/dist/hooks/useForm.js +43 -96
  281. package/dist/hooks/useFormAutosave.d.ts +9 -8
  282. package/dist/hooks/useFormAutosave.js +9 -23
  283. package/dist/hooks/useIntersectionObserver.js +1 -1
  284. package/dist/hooks/useLocalStorage.js +1 -1
  285. package/dist/hooks/usePagination.js +1 -1
  286. package/dist/hooks/useScrollableListBox.js +1 -1
  287. package/dist/hooks/useSorting.js +1 -1
  288. package/dist/hooks/useStateAndRef.js +1 -1
  289. package/dist/hooks/useTableColumnConfig.js +1 -1
  290. package/dist/index.d.ts +263 -1
  291. package/dist/index.js +71 -11
  292. package/package.json +3 -15
  293. package/dist/assets/locales/en/translation.json.d.ts +0 -158
  294. package/dist/assets/locales/sl/translation.json.d.ts +0 -154
  295. package/dist/components/inputs/shared/form.binding.d.ts +0 -27
  296. package/dist/components/inputs/shared/form.binding.js +0 -57
  297. package/dist/components/inputs/shared/form.types.js +0 -8
  298. package/dist/rhf/Inputs.d.ts +0 -60
  299. package/dist/rhf/Inputs.js +0 -148
  300. package/dist/rhf/components.d.ts +0 -80
  301. package/dist/rhf/components.js +0 -101
  302. package/dist/rhf/dynamicInputs.d.ts +0 -18
  303. package/dist/rhf/dynamicInputs.js +0 -5
  304. package/dist/rhf/fieldAdapter.d.ts +0 -7
  305. package/dist/rhf/fieldAdapter.js +0 -40
  306. package/dist/rhf/form.types.d.ts +0 -12
  307. package/dist/rhf/useAutosave.d.ts +0 -10
  308. package/dist/rhf/useAutosave.js +0 -71
  309. package/dist/rhf/useForm.d.ts +0 -18
  310. package/dist/rhf/useForm.js +0 -48
  311. package/dist/rhf/useFormAutosave.d.ts +0 -15
  312. package/dist/rhf/useFormAutosave.js +0 -59
  313. package/dist/rhf.d.ts +0 -225
  314. package/dist/tanstack.d.ts +0 -224
  315. package/dist/tanstack.js +0 -141
  316. /package/dist/{rhf/entrypoints.type-test.d.ts → hooks/useAutosave.spec.d.ts} +0 -0
@@ -7,16 +7,16 @@ import { SelectContext } from "./select.context.js";
7
7
  import { SelectInput } from "./SelectInput.js";
8
8
  import { SelectListBox } from "./SelectListBox.js";
9
9
  import { selectPopoverDefinition } from "./selectDesktop.cva.js";
10
- import { clsx } from "clsx";
11
- import { Fragment, useLayoutEffect, useRef, useState } from "react";
12
- import { ComboBox, DialogTrigger, Popover } from "react-aria-components";
13
10
  import { c } from "react/compiler-runtime";
14
11
  import { jsx, jsxs } from "react/jsx-runtime";
12
+ import { clsx } from "clsx";
13
+ import { Fragment as Fragment$1, useLayoutEffect, useRef, useState } from "react";
14
+ import { ComboBox, DialogTrigger, Popover } from "react-aria-components";
15
15
  import { useLabel, usePreventScroll } from "react-aria";
16
16
  import { mergeRefs } from "@react-aria/utils";
17
17
  //#region src/components/inputs/Selection/shared/SelectDesktop.tsx
18
18
  var SelectDesktop = (t0) => {
19
- const $ = c(130);
19
+ const $ = c(129);
20
20
  let containerClassName;
21
21
  let customTrigger;
22
22
  let error;
@@ -61,7 +61,7 @@ var SelectDesktop = (t0) => {
61
61
  showSelectionContent = $[12];
62
62
  trailingContent = $[13];
63
63
  }
64
- const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, isLoading, as, size, collapseAfter, selectedTagsType } = props;
64
+ const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, isSearchable, isClearable, isLoading, as, size, collapseAfter, selectedTagsType } = props;
65
65
  const popoverCva = UIOverrides.useCva("popover.cva", popoverDefinition);
66
66
  const selectPopoverCva = UIOverrides.useCva("select.popoverCva", selectPopoverDefinition);
67
67
  const t1 = isHeaderHidden || as === "inline" || as === "filter" || as === "floating";
@@ -179,7 +179,7 @@ var SelectDesktop = (t0) => {
179
179
  $[42] = t9;
180
180
  } else t9 = $[42];
181
181
  const openChangeHandler = t9;
182
- const WrapperComponent = isSearchable ? ComboBox : Fragment;
182
+ const WrapperComponent = isSearchable ? ComboBox : Fragment$1;
183
183
  const t10 = isMultiple ? null : fieldState.value;
184
184
  const t11 = fieldState.inputValue;
185
185
  const t12 = !!error;
@@ -280,7 +280,7 @@ var SelectDesktop = (t0) => {
280
280
  $[77] = t20;
281
281
  } else t20 = $[77];
282
282
  let t21;
283
- if ($[78] !== as || $[79] !== className || $[80] !== collapseAfter || $[81] !== customTrigger || $[82] !== dialogTriggerProps || $[83] !== error || $[84] !== fieldProps || $[85] !== headerProps || $[86] !== hideDropdownIcon || $[87] !== inputClassName || $[88] !== isClearable || $[89] !== isClearableIfDisabled || $[90] !== isDirty || $[91] !== isDisabled || $[92] !== isRequired || $[93] !== isSearchable || $[94] !== leadingContent || $[95] !== onBlur || $[96] !== placeholder || $[97] !== ref || $[98] !== selectedTagsType || $[99] !== showSelectionContent || $[100] !== size || $[101] !== trailingContent || $[102] !== variant) {
283
+ if ($[78] !== as || $[79] !== className || $[80] !== collapseAfter || $[81] !== customTrigger || $[82] !== dialogTriggerProps || $[83] !== error || $[84] !== fieldProps || $[85] !== headerProps || $[86] !== hideDropdownIcon || $[87] !== inputClassName || $[88] !== isClearable || $[89] !== isDirty || $[90] !== isDisabled || $[91] !== isRequired || $[92] !== isSearchable || $[93] !== leadingContent || $[94] !== onBlur || $[95] !== placeholder || $[96] !== ref || $[97] !== selectedTagsType || $[98] !== showSelectionContent || $[99] !== size || $[100] !== trailingContent || $[101] !== variant) {
284
284
  t21 = customTrigger ? /* @__PURE__ */ jsx(DialogTrigger, {
285
285
  ...dialogTriggerProps,
286
286
  children: /* @__PURE__ */ jsx("div", {
@@ -300,7 +300,6 @@ var SelectDesktop = (t0) => {
300
300
  hideDropdownIcon,
301
301
  isSearchable,
302
302
  isClearable,
303
- isClearableIfDisabled,
304
303
  showSelectionContent,
305
304
  inputClassName,
306
305
  leadingContent,
@@ -327,24 +326,23 @@ var SelectDesktop = (t0) => {
327
326
  $[86] = hideDropdownIcon;
328
327
  $[87] = inputClassName;
329
328
  $[88] = isClearable;
330
- $[89] = isClearableIfDisabled;
331
- $[90] = isDirty;
332
- $[91] = isDisabled;
333
- $[92] = isRequired;
334
- $[93] = isSearchable;
335
- $[94] = leadingContent;
336
- $[95] = onBlur;
337
- $[96] = placeholder;
338
- $[97] = ref;
339
- $[98] = selectedTagsType;
340
- $[99] = showSelectionContent;
341
- $[100] = size;
342
- $[101] = trailingContent;
343
- $[102] = variant;
344
- $[103] = t21;
345
- } else t21 = $[103];
329
+ $[89] = isDirty;
330
+ $[90] = isDisabled;
331
+ $[91] = isRequired;
332
+ $[92] = isSearchable;
333
+ $[93] = leadingContent;
334
+ $[94] = onBlur;
335
+ $[95] = placeholder;
336
+ $[96] = ref;
337
+ $[97] = selectedTagsType;
338
+ $[98] = showSelectionContent;
339
+ $[99] = size;
340
+ $[100] = trailingContent;
341
+ $[101] = variant;
342
+ $[102] = t21;
343
+ } else t21 = $[102];
346
344
  let t22;
347
- if ($[104] !== ignoreTriggerWidth || $[105] !== isOpen || $[106] !== isSearchable || $[107] !== popoverCva || $[108] !== popoverWidth || $[109] !== props || $[110] !== selectPopoverCva || $[111] !== setIsOpen || $[112] !== showPopover) {
345
+ if ($[103] !== ignoreTriggerWidth || $[104] !== isOpen || $[105] !== isSearchable || $[106] !== popoverCva || $[107] !== popoverWidth || $[108] !== props || $[109] !== selectPopoverCva || $[110] !== setIsOpen || $[111] !== showPopover) {
348
346
  t22 = (!isSearchable || showPopover) && /* @__PURE__ */ jsx(Popover, {
349
347
  triggerRef,
350
348
  isOpen,
@@ -358,19 +356,19 @@ var SelectDesktop = (t0) => {
358
356
  autoFocus: !isSearchable
359
357
  })
360
358
  });
361
- $[104] = ignoreTriggerWidth;
362
- $[105] = isOpen;
363
- $[106] = isSearchable;
364
- $[107] = popoverCva;
365
- $[108] = popoverWidth;
366
- $[109] = props;
367
- $[110] = selectPopoverCva;
368
- $[111] = setIsOpen;
369
- $[112] = showPopover;
370
- $[113] = t22;
371
- } else t22 = $[113];
359
+ $[103] = ignoreTriggerWidth;
360
+ $[104] = isOpen;
361
+ $[105] = isSearchable;
362
+ $[106] = popoverCva;
363
+ $[107] = popoverWidth;
364
+ $[108] = props;
365
+ $[109] = selectPopoverCva;
366
+ $[110] = setIsOpen;
367
+ $[111] = showPopover;
368
+ $[112] = t22;
369
+ } else t22 = $[112];
372
370
  let t23;
373
- if ($[114] !== as || $[115] !== formFieldProps || $[116] !== onFocusCapture || $[117] !== onMouseEnter || $[118] !== t20 || $[119] !== t21 || $[120] !== t22) {
371
+ if ($[113] !== as || $[114] !== formFieldProps || $[115] !== onFocusCapture || $[116] !== onMouseEnter || $[117] !== t20 || $[118] !== t21 || $[119] !== t22) {
374
372
  t23 = /* @__PURE__ */ jsxs(FormField, {
375
373
  ...formFieldProps,
376
374
  ...t20,
@@ -380,38 +378,38 @@ var SelectDesktop = (t0) => {
380
378
  ref: wrapperRef,
381
379
  children: [t21, t22]
382
380
  });
383
- $[114] = as;
384
- $[115] = formFieldProps;
385
- $[116] = onFocusCapture;
386
- $[117] = onMouseEnter;
387
- $[118] = t20;
388
- $[119] = t21;
389
- $[120] = t22;
390
- $[121] = t23;
391
- } else t23 = $[121];
381
+ $[113] = as;
382
+ $[114] = formFieldProps;
383
+ $[115] = onFocusCapture;
384
+ $[116] = onMouseEnter;
385
+ $[117] = t20;
386
+ $[118] = t21;
387
+ $[119] = t22;
388
+ $[120] = t23;
389
+ } else t23 = $[120];
392
390
  let t24;
393
- if ($[122] !== WrapperComponent || $[123] !== t19 || $[124] !== t23) {
391
+ if ($[121] !== WrapperComponent || $[122] !== t19 || $[123] !== t23) {
394
392
  t24 = /* @__PURE__ */ jsx(WrapperComponent, {
395
393
  ...t19,
396
394
  children: t23
397
395
  });
398
- $[122] = WrapperComponent;
399
- $[123] = t19;
400
- $[124] = t23;
401
- $[125] = t24;
402
- } else t24 = $[125];
396
+ $[121] = WrapperComponent;
397
+ $[122] = t19;
398
+ $[123] = t23;
399
+ $[124] = t24;
400
+ } else t24 = $[124];
403
401
  let t25;
404
- if ($[126] !== as || $[127] !== error || $[128] !== t24) {
402
+ if ($[125] !== as || $[126] !== error || $[127] !== t24) {
405
403
  t25 = /* @__PURE__ */ jsx(TooltipWrapper, {
406
404
  as,
407
405
  error,
408
406
  children: t24
409
407
  });
410
- $[126] = as;
411
- $[127] = error;
412
- $[128] = t24;
413
- $[129] = t25;
414
- } else t25 = $[129];
408
+ $[125] = as;
409
+ $[126] = error;
410
+ $[127] = t24;
411
+ $[128] = t25;
412
+ } else t25 = $[128];
415
413
  return t25;
416
414
  };
417
415
  function _temp(item) {
@@ -4,12 +4,12 @@ import { FormFieldHeaderProps } from '../../FormField/FormFieldHeader';
4
4
  import { SelectBaseProps } from './SelectBase';
5
5
  import { SelectItem } from './select.types';
6
6
  import { InputVariantProps } from '../../shared/input.cva';
7
- interface SelectInputProps extends InputVariantProps, Pick<SelectBaseProps, "ref" | "placeholder" | "isDisabled" | "hideDropdownIcon" | "isSearchable" | "isClearable" | "isClearableIfDisabled" | "onBlur" | "showSelectionContent" | "inputClassName" | "selectedTagsType" | "collapseAfter" | "isRequired" | "isDirty" | "leadingContent" | "trailingContent" | "onMouseEnter" | "onFocusCapture"> {
7
+ interface SelectInputProps extends InputVariantProps, Pick<SelectBaseProps, "ref" | "placeholder" | "isDisabled" | "hideDropdownIcon" | "isSearchable" | "isClearable" | "onBlur" | "showSelectionContent" | "inputClassName" | "selectedTagsType" | "collapseAfter" | "isRequired" | "isDirty" | "leadingContent" | "trailingContent" | "onMouseEnter" | "onFocusCapture"> {
8
8
  isInvalid?: boolean;
9
9
  className?: string;
10
10
  fieldProps?: AriaFieldProps;
11
11
  headerProps?: FormFieldHeaderProps;
12
12
  onCloseComboBox?: (state: ComboBoxState<SelectItem> | null) => void;
13
13
  }
14
- export declare const SelectInput: ({ ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, isRequired, isDirty, onCloseComboBox, onBlur, leadingContent, trailingContent, onMouseEnter, onFocusCapture, ...props }: SelectInputProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const SelectInput: ({ ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, isRequired, isDirty, onCloseComboBox, onBlur, leadingContent, trailingContent, onMouseEnter, onFocusCapture, ...props }: SelectInputProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export {};
@@ -1,3 +1,4 @@
1
+ import { ArrowDropDownIcon } from "../../../../assets/icons/ArrowDropDown.js";
1
2
  import { UIOverrides } from "../../../../config/uiOverrides.context.js";
2
3
  import { Typography } from "../../../text/Typography/Typography.js";
3
4
  import "../../../../config/i18n.js";
@@ -8,18 +9,17 @@ import { SelectInputTags } from "./SelectInputTags.js";
8
9
  import { SelectContext } from "./select.context.js";
9
10
  import { selectInputTagsContentWrapperDefinition } from "./selectInput.cva.js";
10
11
  import { useKeyInteractions } from "../../../../hooks/useKeyInteractions.js";
11
- import { ChevronDown } from "lucide-react";
12
+ import { c } from "react/compiler-runtime";
13
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
14
  import { clsx } from "clsx";
13
15
  import { use, useRef, useState } from "react";
14
16
  import { Button, ComboBoxStateContext, Input } from "react-aria-components";
15
- import { c } from "react/compiler-runtime";
16
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
17
17
  import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
18
18
  import { useTranslation } from "react-i18next";
19
19
  //#region src/components/inputs/Selection/shared/SelectInput.tsx
20
20
  var SelectInput = (t0) => {
21
- const $0 = c(137);
22
- const { ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, isRequired, isDirty, onCloseComboBox, onBlur, leadingContent, trailingContent, onMouseEnter, onFocusCapture, ...props } = t0;
21
+ const $0 = c(136);
22
+ const { ref, placeholder, variant, as, size, isDisabled, isInvalid, className, hideDropdownIcon, isSearchable, isClearable, showSelectionContent, inputClassName, fieldProps, headerProps, selectedTagsType, collapseAfter, isRequired, isDirty, onCloseComboBox, onBlur, leadingContent, trailingContent, onMouseEnter, onFocusCapture, ...props } = t0;
23
23
  const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
24
24
  const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
25
25
  const inputClearClassCva = UIOverrides.useCva("input.clearClassCva", inputClearClassDefinition);
@@ -311,7 +311,7 @@ var SelectInput = (t0) => {
311
311
  className: clsx("group/select-trigger w-full truncate text-start outline-none disabled:text-text-default-3", showTags && "absolute inset-0 z-base"),
312
312
  onKeyDown: onTriggerKeyDown,
313
313
  ...fieldProps,
314
- children: [(as === "floating" && isEmpty || isMultiple && !isEmpty) && /* @__PURE__ */ jsx(Fragment$1, { children: "\xA0" }), (isEmpty || !isMultiple) && (as !== "floating" || !isEmpty) && /* @__PURE__ */ jsxs(Typography, {
314
+ children: [(as === "floating" && isEmpty || isMultiple && !isEmpty) && /* @__PURE__ */ jsx(Fragment, { children: "\xA0" }), (isEmpty || !isMultiple) && (as !== "floating" || !isEmpty) && /* @__PURE__ */ jsxs(Typography, {
315
315
  size: "label-1",
316
316
  as: "span",
317
317
  className: clsx("truncate empty:before:inline-block empty:before:content-['']", isEmpty && "text-text-default-3 group-disabled/select-trigger:text-interactive-text-secondary-disabled"),
@@ -355,8 +355,8 @@ var SelectInput = (t0) => {
355
355
  $0[92] = t38;
356
356
  } else t38 = $0[92];
357
357
  let t39;
358
- if ($0[93] !== as || $0[94] !== inputClearClassCva || $0[95] !== isClearable || $0[96] !== isClearableIfDisabled || $0[97] !== isDisabled || $0[98] !== onClear || $0[99] !== showClearButton) {
359
- t39 = isClearable && (!isDisabled || isClearableIfDisabled === true) && /* @__PURE__ */ jsx(InputClear, {
358
+ if ($0[93] !== as || $0[94] !== inputClearClassCva || $0[95] !== isClearable || $0[96] !== isDisabled || $0[97] !== onClear || $0[98] !== showClearButton) {
359
+ t39 = isClearable && !isDisabled && /* @__PURE__ */ jsx(InputClear, {
360
360
  onClear: () => {
361
361
  onClear();
362
362
  },
@@ -366,23 +366,22 @@ var SelectInput = (t0) => {
366
366
  $0[93] = as;
367
367
  $0[94] = inputClearClassCva;
368
368
  $0[95] = isClearable;
369
- $0[96] = isClearableIfDisabled;
370
- $0[97] = isDisabled;
371
- $0[98] = onClear;
372
- $0[99] = showClearButton;
373
- $0[100] = t39;
374
- } else t39 = $0[100];
369
+ $0[96] = isDisabled;
370
+ $0[97] = onClear;
371
+ $0[98] = showClearButton;
372
+ $0[99] = t39;
373
+ } else t39 = $0[99];
375
374
  let t40;
376
- if ($0[101] !== trailingContent) {
375
+ if ($0[100] !== trailingContent) {
377
376
  t40 = trailingContent && /* @__PURE__ */ jsx("div", {
378
377
  className: "flex shrink-0 items-center",
379
378
  children: trailingContent
380
379
  });
381
- $0[101] = trailingContent;
382
- $0[102] = t40;
383
- } else t40 = $0[102];
380
+ $0[100] = trailingContent;
381
+ $0[101] = t40;
382
+ } else t40 = $0[101];
384
383
  let t41;
385
- if ($0[103] !== hideDropdownIcon || $0[104] !== inputSizeCva || $0[105] !== isDisabled || $0[106] !== isOpen || $0[107] !== isSearchable || $0[108] !== setIsOpen || $0[109] !== size || $0[110] !== t) {
384
+ if ($0[102] !== hideDropdownIcon || $0[103] !== inputSizeCva || $0[104] !== isDisabled || $0[105] !== isOpen || $0[106] !== isSearchable || $0[107] !== setIsOpen || $0[108] !== size || $0[109] !== t) {
386
385
  t41 = !hideDropdownIcon && /* @__PURE__ */ jsx(Button, {
387
386
  excludeFromTabOrder: true,
388
387
  "aria-label": t(($) => isOpen ? $.ui.closeAlt : $.ui.openAlt),
@@ -391,23 +390,23 @@ var SelectInput = (t0) => {
391
390
  onPress: () => {
392
391
  if (!isSearchable) setIsOpen(!isOpen);
393
392
  },
394
- children: /* @__PURE__ */ jsx(ChevronDown, {
393
+ children: /* @__PURE__ */ jsx(ArrowDropDownIcon, {
395
394
  className: clsx("size-6 shrink-0", isOpen && "rotate-180", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle"),
396
395
  "aria-hidden": "true"
397
396
  })
398
397
  });
399
- $0[103] = hideDropdownIcon;
400
- $0[104] = inputSizeCva;
401
- $0[105] = isDisabled;
402
- $0[106] = isOpen;
403
- $0[107] = isSearchable;
404
- $0[108] = setIsOpen;
405
- $0[109] = size;
406
- $0[110] = t;
407
- $0[111] = t41;
408
- } else t41 = $0[111];
398
+ $0[102] = hideDropdownIcon;
399
+ $0[103] = inputSizeCva;
400
+ $0[104] = isDisabled;
401
+ $0[105] = isOpen;
402
+ $0[106] = isSearchable;
403
+ $0[107] = setIsOpen;
404
+ $0[108] = size;
405
+ $0[109] = t;
406
+ $0[110] = t41;
407
+ } else t41 = $0[110];
409
408
  let t42;
410
- if ($0[112] !== focusWithinProps || $0[113] !== hoverProps || $0[114] !== onFocusCapture || $0[115] !== onMouseEnter || $0[116] !== ref || $0[117] !== t16 || $0[118] !== t18 || $0[119] !== t19 || $0[120] !== t20 || $0[121] !== t21 || $0[122] !== t22 || $0[123] !== t23 || $0[124] !== t24 || $0[125] !== t25 || $0[126] !== t26 || $0[127] !== t27 || $0[128] !== t28 || $0[129] !== t29 || $0[130] !== t30 || $0[131] !== t31 || $0[132] !== t38 || $0[133] !== t39 || $0[134] !== t40 || $0[135] !== t41) {
409
+ if ($0[111] !== focusWithinProps || $0[112] !== hoverProps || $0[113] !== onFocusCapture || $0[114] !== onMouseEnter || $0[115] !== ref || $0[116] !== t16 || $0[117] !== t18 || $0[118] !== t19 || $0[119] !== t20 || $0[120] !== t21 || $0[121] !== t22 || $0[122] !== t23 || $0[123] !== t24 || $0[124] !== t25 || $0[125] !== t26 || $0[126] !== t27 || $0[127] !== t28 || $0[128] !== t29 || $0[129] !== t30 || $0[130] !== t31 || $0[131] !== t38 || $0[132] !== t39 || $0[133] !== t40 || $0[134] !== t41) {
411
410
  t42 = /* @__PURE__ */ jsxs("div", {
412
411
  ref,
413
412
  className: t16,
@@ -438,32 +437,32 @@ var SelectInput = (t0) => {
438
437
  t41
439
438
  ]
440
439
  });
441
- $0[112] = focusWithinProps;
442
- $0[113] = hoverProps;
443
- $0[114] = onFocusCapture;
444
- $0[115] = onMouseEnter;
445
- $0[116] = ref;
446
- $0[117] = t16;
447
- $0[118] = t18;
448
- $0[119] = t19;
449
- $0[120] = t20;
450
- $0[121] = t21;
451
- $0[122] = t22;
452
- $0[123] = t23;
453
- $0[124] = t24;
454
- $0[125] = t25;
455
- $0[126] = t26;
456
- $0[127] = t27;
457
- $0[128] = t28;
458
- $0[129] = t29;
459
- $0[130] = t30;
460
- $0[131] = t31;
461
- $0[132] = t38;
462
- $0[133] = t39;
463
- $0[134] = t40;
464
- $0[135] = t41;
465
- $0[136] = t42;
466
- } else t42 = $0[136];
440
+ $0[111] = focusWithinProps;
441
+ $0[112] = hoverProps;
442
+ $0[113] = onFocusCapture;
443
+ $0[114] = onMouseEnter;
444
+ $0[115] = ref;
445
+ $0[116] = t16;
446
+ $0[117] = t18;
447
+ $0[118] = t19;
448
+ $0[119] = t20;
449
+ $0[120] = t21;
450
+ $0[121] = t22;
451
+ $0[122] = t23;
452
+ $0[123] = t24;
453
+ $0[124] = t25;
454
+ $0[125] = t26;
455
+ $0[126] = t27;
456
+ $0[127] = t28;
457
+ $0[128] = t29;
458
+ $0[129] = t30;
459
+ $0[130] = t31;
460
+ $0[131] = t38;
461
+ $0[132] = t39;
462
+ $0[133] = t40;
463
+ $0[134] = t41;
464
+ $0[135] = t42;
465
+ } else t42 = $0[135];
467
466
  return t42;
468
467
  };
469
468
  //#endregion
@@ -3,9 +3,9 @@ import { SelectContext } from "./select.context.js";
3
3
  import { SelectListBoxItem } from "./SelectListBoxItem.js";
4
4
  import { SelectListBoxItemSelectAll } from "./SelectListBoxItemSelectAll.js";
5
5
  import { SelectListBoxLoadingItem } from "./SelectListBoxLoadingItem.js";
6
+ import { jsx } from "react/jsx-runtime";
6
7
  import { clsx } from "clsx";
7
8
  import { ListBox, ListLayout, Virtualizer } from "react-aria-components";
8
- import { jsx } from "react/jsx-runtime";
9
9
  //#region src/components/inputs/Selection/shared/SelectListBox.tsx
10
10
  var SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true, virtualizerOptions, totalItems, newItemRender, onLoadMore, className, onClose, ...props }) => {
11
11
  const { fieldState, onChange, listItems, selectableListItems, selectedIds, isMultiple, onClear, onSelectAll, hasLoadMore } = SelectContext.useSelect();
@@ -3,10 +3,10 @@ import "../../../../config/i18n.js";
3
3
  import { CheckboxCheckmark } from "../../Checkbox/CheckboxCheckmark.js";
4
4
  import { SelectContext } from "./select.context.js";
5
5
  import { selectListBoxItemDefinition } from "./selectItem.cva.js";
6
- import { useRef } from "react";
7
- import { ListBoxItem } from "react-aria-components";
8
6
  import { c } from "react/compiler-runtime";
9
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { useRef } from "react";
9
+ import { ListBoxItem } from "react-aria-components";
10
10
  import { useTranslation } from "react-i18next";
11
11
  //#region src/components/inputs/Selection/shared/SelectListBoxItem.tsx
12
12
  var SelectListBoxItem = (t0) => {
@@ -3,10 +3,10 @@ import "../../../../config/i18n.js";
3
3
  import { CheckboxCheckmark } from "../../Checkbox/CheckboxCheckmark.js";
4
4
  import { SelectContext } from "./select.context.js";
5
5
  import { selectListBoxItemDefinition } from "./selectItem.cva.js";
6
- import { useRef } from "react";
7
- import { ListBoxItem } from "react-aria-components";
8
6
  import { c } from "react/compiler-runtime";
9
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { useRef } from "react";
9
+ import { ListBoxItem } from "react-aria-components";
10
10
  import { useTranslation } from "react-i18next";
11
11
  //#region src/components/inputs/Selection/shared/SelectListBoxItemSelectAll.tsx
12
12
  var SelectListBoxItemSelectAll = (t0) => {
@@ -4,9 +4,9 @@ import "../../../../config/i18n.js";
4
4
  import { SelectContext } from "./select.context.js";
5
5
  import { selectListBoxItemDefinition } from "./selectItem.cva.js";
6
6
  import { useIntersectionObserver } from "../../../../hooks/useIntersectionObserver.js";
7
- import { ListBoxItem } from "react-aria-components";
8
7
  import { c } from "react/compiler-runtime";
9
8
  import { jsx } from "react/jsx-runtime";
9
+ import { ListBoxItem } from "react-aria-components";
10
10
  import { useTranslation } from "react-i18next";
11
11
  //#region src/components/inputs/Selection/shared/SelectListBoxLoadingItem.tsx
12
12
  var SelectListBoxLoadingItem = (t0) => {
@@ -1,9 +1,9 @@
1
1
  import "../../../../config/i18n.js";
2
2
  import { TextButton } from "../../../buttons/TextButton/TextButton.js";
3
3
  import { SelectContext } from "./select.context.js";
4
- import { clsx } from "clsx";
5
4
  import { c } from "react/compiler-runtime";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { clsx } from "clsx";
7
7
  import { useTranslation } from "react-i18next";
8
8
  //#region src/components/inputs/Selection/shared/SelectListBoxSelectionBar.tsx
9
9
  var SelectListBoxSelectionBar = (t0) => {
@@ -3,18 +3,18 @@ import { FormField } from "../../FormField/FormField.js";
3
3
  import { SelectContext } from "./select.context.js";
4
4
  import { SelectInput } from "./SelectInput.js";
5
5
  import { SelectListBox } from "./SelectListBox.js";
6
+ import { SearchIcon } from "../../../../assets/icons/Search.js";
6
7
  import { FormFieldHeaderClose } from "../../FormField/FormFieldHeaderClose.js";
7
8
  import { TextInput } from "../../Input/TextInput/TextInput.js";
8
9
  import { SelectListBoxSelectionBar } from "./SelectListBoxSelectionBar.js";
9
- import { Search } from "lucide-react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
10
11
  import { clsx } from "clsx";
11
12
  import { useRef } from "react";
12
13
  import { DialogTrigger } from "react-aria-components";
13
- import { jsx, jsxs } from "react/jsx-runtime";
14
14
  import { useLabel } from "react-aria";
15
15
  //#region src/components/inputs/Selection/shared/SelectMobile.tsx
16
16
  var SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containerClassName, leadingContent, trailingContent, customTrigger, onBlur, onMouseEnter, onFocusCapture, bottomSheetProps, ...props }) => {
17
- const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, hideSearchIcon, isSearchable, isClearable, isClearableIfDisabled, as, size, collapseAfter, selectedTagsType } = props;
17
+ const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, hideSearchIcon, isSearchable, isClearable, as, size, collapseAfter, selectedTagsType } = props;
18
18
  const formFieldProps = {
19
19
  error,
20
20
  label,
@@ -77,7 +77,6 @@ var SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containe
77
77
  hideDropdownIcon,
78
78
  isSearchable: false,
79
79
  isClearable,
80
- isClearableIfDisabled,
81
80
  showSelectionContent,
82
81
  onBlur: void 0,
83
82
  fieldProps,
@@ -110,7 +109,7 @@ var SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containe
110
109
  rightContent: /* @__PURE__ */ jsx(FormFieldHeaderClose, { onClose: close }),
111
110
  inputClassName,
112
111
  className: "mb-list-height-title-bottom px-list-side-title",
113
- leadingIcon: !hideSearchIcon ? /* @__PURE__ */ jsx(Search, { className: "size-6" }) : void 0,
112
+ leadingIcon: !hideSearchIcon ? /* @__PURE__ */ jsx(SearchIcon, { className: "size-6" }) : void 0,
114
113
  size: "default",
115
114
  isClearable
116
115
  }), /* @__PURE__ */ jsx(SelectListBox, {
@@ -1,9 +1,9 @@
1
+ import { ArrowDropDownIcon } from "../../../../assets/icons/ArrowDropDown.js";
1
2
  import { UIOverrides } from "../../../../config/uiOverrides.context.js";
2
3
  import { inputSizeDefinition } from "../../shared/input.cva.js";
3
- import { ChevronDown } from "lucide-react";
4
- import { clsx } from "clsx";
5
4
  import { c } from "react/compiler-runtime";
6
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ import { clsx } from "clsx";
7
7
  //#region src/components/inputs/Selection/shared/StaticSelectTrailingContent.tsx
8
8
  var StaticSelectTrailingContent = (t0) => {
9
9
  const $ = c(10);
@@ -26,7 +26,7 @@ var StaticSelectTrailingContent = (t0) => {
26
26
  tabIndex: -1,
27
27
  className: clsx("self-stretch border-0! pl-1-5 outline-none", inputSizeCva({ size })),
28
28
  "aria-hidden": "true",
29
- children: /* @__PURE__ */ jsx(ChevronDown, { className: clsx("size-6 shrink-0", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle") })
29
+ children: /* @__PURE__ */ jsx(ArrowDropDownIcon, { className: clsx("size-6 shrink-0", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle") })
30
30
  }) : void 0;
31
31
  $[2] = hideDropdownIcon;
32
32
  $[3] = inputSizeCva;
@@ -25,8 +25,8 @@ export declare namespace SelectContext {
25
25
  isMultiple: boolean;
26
26
  multiSelectAutoConfirm: boolean;
27
27
  } & Pick<SelectBaseProps, "onInputChange" | "isLoading" | "hasLoadMore">;
28
- export type ProviderProps = GroupedSelectProps & Pick<SelectBaseProps, "items" | "onInputChange" | "onSearchChange" | "showSelectAllOption" | "showNewItemOption" | "newItemMinLength" | "onNewItemOption" | "isLoading" | "hasLoadMore" | "mapInitialToSelectItem" | "isSearchable" | "isClientSearchDisabled" | "ignoreInputValueFiltering" | "searchDebounceDelay" | "multiSelectAutoConfirm" | "onBlur">;
29
- export const Provider: ({ items, onInputChange, onSearchChange, showSelectAllOption, showNewItemOption, newItemMinLength, onNewItemOption, isLoading, hasLoadMore, isClientSearchDisabled, ignoreInputValueFiltering, searchDebounceDelay, multiSelectAutoConfirm, onBlur: fieldOnBlur, children, mapInitialToSelectItem, ...props }: PropsWithChildren<ProviderProps>) => import("react/jsx-runtime").JSX.Element;
28
+ export type ProviderProps = GroupedSelectProps & Pick<SelectBaseProps, "items" | "onInputChange" | "onSearchChange" | "showSelectAllOption" | "showNewItemOption" | "newItemMinLength" | "onNewItemOption" | "isLoading" | "hasLoadMore" | "mapInitialToSelectItem" | "isSearchable" | "isClientSearchDisabled" | "ignoreInputValueFiltering" | "fireBlurOnChange" | "searchDebounceDelay" | "multiSelectAutoConfirm" | "onBlur">;
29
+ export const Provider: ({ items, onInputChange, onSearchChange, showSelectAllOption, showNewItemOption, newItemMinLength, onNewItemOption, isLoading, hasLoadMore, isClientSearchDisabled, ignoreInputValueFiltering, fireBlurOnChange, searchDebounceDelay, multiSelectAutoConfirm, onBlur: fieldOnBlur, children, mapInitialToSelectItem, ...props }: PropsWithChildren<ProviderProps>) => import("react/jsx-runtime").JSX.Element;
30
30
  export const useSelect: () => Type;
31
31
  export {};
32
32
  }
@@ -1,7 +1,7 @@
1
- import { useSelectItems } from "./useSelectItems.js";
2
1
  import { useDebounceCallback } from "../../../../hooks/useDebounceCallback.js";
3
- import { createContext, use, useCallback, useEffect, useMemo, useRef, useState } from "react";
2
+ import { useSelectItems } from "./useSelectItems.js";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import { createContext, use, useCallback, useEffect, useMemo, useRef, useState } from "react";
5
5
  //#region src/components/inputs/Selection/shared/select.context.tsx
6
6
  var SelectContext;
7
7
  (function(_SelectContext) {
@@ -10,7 +10,7 @@ var SelectContext;
10
10
  id: item.id,
11
11
  label: item.label ?? item.name ?? ""
12
12
  });
13
- _SelectContext.Provider = ({ items, onInputChange, onSearchChange, showSelectAllOption, showNewItemOption, newItemMinLength, onNewItemOption, isLoading, hasLoadMore, isClientSearchDisabled, ignoreInputValueFiltering, searchDebounceDelay, multiSelectAutoConfirm = false, onBlur: fieldOnBlur, children, mapInitialToSelectItem = defaultMapInitialToSelectItem, ...props }) => {
13
+ _SelectContext.Provider = ({ items, onInputChange, onSearchChange, showSelectAllOption, showNewItemOption, newItemMinLength, onNewItemOption, isLoading, hasLoadMore, isClientSearchDisabled, ignoreInputValueFiltering, fireBlurOnChange, searchDebounceDelay, multiSelectAutoConfirm = false, onBlur: fieldOnBlur, children, mapInitialToSelectItem = defaultMapInitialToSelectItem, ...props }) => {
14
14
  const isMultiple = props.selectionMode === "multiple";
15
15
  const initialSelectedItems = useMemo(() => {
16
16
  if (!props.initialSelection) return null;
@@ -75,6 +75,9 @@ var SelectContext;
75
75
  onSearchChangeDebounced,
76
76
  updateValue
77
77
  ]);
78
+ const triggerBlurOnChange = useCallback(() => {
79
+ if (fireBlurOnChange) fieldOnBlur?.({});
80
+ }, [fireBlurOnChange, fieldOnBlur]);
78
81
  const syncFieldState = (value_1) => {
79
82
  const newFieldState = {
80
83
  value: value_1,
@@ -117,7 +120,7 @@ var SelectContext;
117
120
  searchValue: ""
118
121
  };
119
122
  setFieldState(newFieldState_1);
120
- emitStateChanges(newFieldState_1);
123
+ if (emitStateChanges(newFieldState_1)) triggerBlurOnChange();
121
124
  }
122
125
  if (!isMultiple) {
123
126
  setIsOpen(false);
@@ -128,7 +131,8 @@ var SelectContext;
128
131
  onNewItemOption,
129
132
  fieldState.inputValue,
130
133
  getItem_0,
131
- isMultiple
134
+ isMultiple,
135
+ triggerBlurOnChange
132
136
  ]);
133
137
  const onClear = useCallback(() => {
134
138
  if (selectedIds.length === 0) {
@@ -1,6 +1,6 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import { Key } from 'react-aria-components';
3
- import { FieldValues } from '../../shared/form.binding';
3
+ import { FieldValues } from 'react-hook-form';
4
4
  import { ControlProps } from '../../shared/form.types';
5
5
  export interface SelectItem<TKey extends Key = Key> {
6
6
  id: TKey;
@@ -59,7 +59,6 @@ export interface InputFrameProps extends InputVariantProps, Partial<FormFieldPro
59
59
  isLoading?: boolean;
60
60
  action?: InputFrameAction;
61
61
  isClearable?: boolean;
62
- isClearableIfDisabled?: boolean;
63
62
  showClear?: boolean;
64
63
  onStaticInteract?: (shouldFocus: boolean, target?: EventTarget | null) => void;
65
64
  onStaticPress?: () => void;