@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
@@ -1,6 +1,5 @@
1
1
  import { UIOverrides } from "../../../../config/uiOverrides.context.js";
2
2
  import { UIConfig } from "../../../../config/uiConfig.context.js";
3
- import { FieldController } from "../../shared/form.binding.js";
4
3
  import { FormField } from "../../FormField/FormField.js";
5
4
  import { inputBaseDefinition } from "../../shared/input.cva.js";
6
5
  import { IntlUtils } from "../../../../utils/intl.utils.js";
@@ -9,22 +8,23 @@ import { InputFrame } from "../../Skeleton/InputFrame.js";
9
8
  import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
10
9
  import { InputContent } from "../shared/InputContent.js";
11
10
  import { getStaticNumberDisplayValue } from "../shared/numberStatic.utils.js";
11
+ import { c } from "react/compiler-runtime";
12
+ import { jsx } from "react/jsx-runtime";
12
13
  import { clsx } from "clsx";
13
14
  import { useEffect, useRef, useState } from "react";
14
15
  import { Input, useLocale } from "react-aria-components";
15
- import { c } from "react/compiler-runtime";
16
- import { jsx } from "react/jsx-runtime";
17
16
  import { useFocusVisible, useNumberField } from "react-aria";
18
17
  import { mergeRefs } from "@react-aria/utils";
18
+ import { Controller } from "react-hook-form";
19
19
  import { useNumberFieldState } from "react-stately";
20
20
  //#region src/components/inputs/Input/NumberInput/NumberInput.tsx
21
21
  var NumberInputBase = (props) => {
22
- const $ = c(91);
22
+ const $ = c(90);
23
23
  const ui = UIConfig.useConfig();
24
24
  const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
25
25
  const hasControlledValue = "value" in props;
26
26
  const inputRef = useRef(null);
27
- const { ref, inputClassName, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, className, unit, isLoading, action, leadingIcon, trailingIcon, value, onChange, onBlur, formatOptions: formatOptionsProp, variant: variantProp, as: asProp, size: sizeProp, hideLabel: hideLabelProp, isClearable: isClearableProp, isClearableIfDisabled, autoFocusOnMount, ...rest } = props;
27
+ const { ref, inputClassName, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, className, unit, isLoading, action, leadingIcon, trailingIcon, value, onChange, onBlur, formatOptions: formatOptionsProp, variant: variantProp, as: asProp, size: sizeProp, hideLabel: hideLabelProp, isClearable: isClearableProp, autoFocusOnMount, ...rest } = props;
28
28
  const formatOptions = formatOptionsProp ?? ui.numberInput.formatOptions;
29
29
  const variant = variantProp ?? ui.input.variant;
30
30
  const as = asProp ?? ui.input.as;
@@ -128,7 +128,7 @@ var NumberInputBase = (props) => {
128
128
  $[24] = t7;
129
129
  } else t7 = $[24];
130
130
  let t8;
131
- if ($[25] !== action || $[26] !== handleInputBlur || $[27] !== isClearable || $[28] !== isClearableIfDisabled || $[29] !== isDisabled || $[30] !== isLoading || $[31] !== leadingIcon || $[32] !== state.inputValue || $[33] !== t7 || $[34] !== trailingIcon || $[35] !== unit) {
131
+ if ($[25] !== action || $[26] !== handleInputBlur || $[27] !== isClearable || $[28] !== isDisabled || $[29] !== isLoading || $[30] !== leadingIcon || $[31] !== state.inputValue || $[32] !== t7 || $[33] !== trailingIcon || $[34] !== unit) {
132
132
  t8 = {
133
133
  unit,
134
134
  isLoading,
@@ -137,7 +137,6 @@ var NumberInputBase = (props) => {
137
137
  leadingIcon,
138
138
  trailingIcon,
139
139
  isClearable,
140
- isClearableIfDisabled,
141
140
  onChange: t7,
142
141
  value: state.inputValue,
143
142
  onBlur: handleInputBlur
@@ -145,20 +144,19 @@ var NumberInputBase = (props) => {
145
144
  $[25] = action;
146
145
  $[26] = handleInputBlur;
147
146
  $[27] = isClearable;
148
- $[28] = isClearableIfDisabled;
149
- $[29] = isDisabled;
150
- $[30] = isLoading;
151
- $[31] = leadingIcon;
152
- $[32] = state.inputValue;
153
- $[33] = t7;
154
- $[34] = trailingIcon;
155
- $[35] = unit;
156
- $[36] = t8;
157
- } else t8 = $[36];
147
+ $[28] = isDisabled;
148
+ $[29] = isLoading;
149
+ $[30] = leadingIcon;
150
+ $[31] = state.inputValue;
151
+ $[32] = t7;
152
+ $[33] = trailingIcon;
153
+ $[34] = unit;
154
+ $[35] = t8;
155
+ } else t8 = $[35];
158
156
  const inputContentProps = t8;
159
157
  const t9 = hideLabel || isHeaderHidden;
160
158
  let t10;
161
- if ($[37] !== headerClassName || $[38] !== helperText || $[39] !== isDisabled || $[40] !== isRequired || $[41] !== label || $[42] !== labelProps || $[43] !== rightContent || $[44] !== t9 || $[45] !== tooltipText) {
159
+ if ($[36] !== headerClassName || $[37] !== helperText || $[38] !== isDisabled || $[39] !== isRequired || $[40] !== label || $[41] !== labelProps || $[42] !== rightContent || $[43] !== t9 || $[44] !== tooltipText) {
162
160
  t10 = {
163
161
  label,
164
162
  tooltipText,
@@ -170,28 +168,28 @@ var NumberInputBase = (props) => {
170
168
  className: headerClassName,
171
169
  labelProps
172
170
  };
173
- $[37] = headerClassName;
174
- $[38] = helperText;
175
- $[39] = isDisabled;
176
- $[40] = isRequired;
177
- $[41] = label;
178
- $[42] = labelProps;
179
- $[43] = rightContent;
180
- $[44] = t9;
181
- $[45] = tooltipText;
182
- $[46] = t10;
183
- } else t10 = $[46];
171
+ $[36] = headerClassName;
172
+ $[37] = helperText;
173
+ $[38] = isDisabled;
174
+ $[39] = isRequired;
175
+ $[40] = label;
176
+ $[41] = labelProps;
177
+ $[42] = rightContent;
178
+ $[43] = t9;
179
+ $[44] = tooltipText;
180
+ $[45] = t10;
181
+ } else t10 = $[45];
184
182
  const headerProps = t10;
185
183
  const dataIsDisabled = isDisabled || void 0;
186
184
  const T0 = TooltipWrapper;
187
185
  const t11 = as === "inline" ? -1 : void 0;
188
186
  const T1 = FormField;
189
187
  let t12;
190
- if ($[47] !== className) {
188
+ if ($[46] !== className) {
191
189
  t12 = clsx("group w-full", className);
192
- $[47] = className;
193
- $[48] = t12;
194
- } else t12 = $[48];
190
+ $[46] = className;
191
+ $[47] = t12;
192
+ } else t12 = $[47];
195
193
  const t13 = as === "inline" ? -1 : void 0;
196
194
  const t14 = clsx("relative flex cursor-text has-disabled:cursor-default", inputBaseCva({
197
195
  variant,
@@ -199,35 +197,35 @@ var NumberInputBase = (props) => {
199
197
  ...rest
200
198
  }), inputClassName);
201
199
  let t15;
202
- if ($[49] === Symbol.for("react.memo_cache_sentinel")) {
200
+ if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
203
201
  t15 = () => inputRef.current?.focus();
204
- $[49] = t15;
205
- } else t15 = $[49];
202
+ $[48] = t15;
203
+ } else t15 = $[48];
206
204
  const t16 = value === null || value === void 0 || void 0;
207
205
  const t17 = isRequired || void 0;
208
206
  let t18;
209
- if ($[50] !== ref) {
207
+ if ($[49] !== ref) {
210
208
  t18 = mergeRefs(ref, inputRef, numberFieldRef);
211
- $[50] = ref;
212
- $[51] = t18;
213
- } else t18 = $[51];
209
+ $[49] = ref;
210
+ $[50] = t18;
211
+ } else t18 = $[50];
214
212
  const t19 = isDirty || void 0;
215
213
  const t20 = isRequired || void 0;
216
214
  const t21 = state.inputValue === "" || state.inputValue === void 0 || state.inputValue === null || void 0;
217
215
  const t22 = !("" + value === "" || value === null || value === void 0) || void 0;
218
216
  const t23 = as === "floating" ? "\xA0" : inputProps.placeholder;
219
217
  let t24;
220
- if ($[52] !== inputProps || $[53] !== isFocusVisible) {
218
+ if ($[51] !== inputProps || $[52] !== isFocusVisible) {
221
219
  t24 = (e_1) => {
222
220
  inputProps.onFocus?.(e_1);
223
221
  if (isFocusVisible) e_1.target.select();
224
222
  };
225
- $[52] = inputProps;
226
- $[53] = isFocusVisible;
227
- $[54] = t24;
228
- } else t24 = $[54];
223
+ $[51] = inputProps;
224
+ $[52] = isFocusVisible;
225
+ $[53] = t24;
226
+ } else t24 = $[53];
229
227
  let t25;
230
- if ($[55] !== dataIsDisabled || $[56] !== inputProps || $[57] !== t18 || $[58] !== t19 || $[59] !== t20 || $[60] !== t21 || $[61] !== t22 || $[62] !== t23 || $[63] !== t24) {
228
+ if ($[54] !== dataIsDisabled || $[55] !== inputProps || $[56] !== t18 || $[57] !== t19 || $[58] !== t20 || $[59] !== t21 || $[60] !== t22 || $[61] !== t23 || $[62] !== t24) {
231
229
  t25 = /* @__PURE__ */ jsx(Input, {
232
230
  ...inputProps,
233
231
  ref: t18,
@@ -240,19 +238,19 @@ var NumberInputBase = (props) => {
240
238
  className: "w-full bg-transparent outline-none",
241
239
  onFocus: t24
242
240
  });
243
- $[55] = dataIsDisabled;
244
- $[56] = inputProps;
245
- $[57] = t18;
246
- $[58] = t19;
247
- $[59] = t20;
248
- $[60] = t21;
249
- $[61] = t22;
250
- $[62] = t23;
251
- $[63] = t24;
252
- $[64] = t25;
253
- } else t25 = $[64];
241
+ $[54] = dataIsDisabled;
242
+ $[55] = inputProps;
243
+ $[56] = t18;
244
+ $[57] = t19;
245
+ $[58] = t20;
246
+ $[59] = t21;
247
+ $[60] = t22;
248
+ $[61] = t23;
249
+ $[62] = t24;
250
+ $[63] = t25;
251
+ } else t25 = $[63];
254
252
  let t26;
255
- if ($[65] !== as || $[66] !== headerProps || $[67] !== inputContentProps || $[68] !== size || $[69] !== t25) {
253
+ if ($[64] !== as || $[65] !== headerProps || $[66] !== inputContentProps || $[67] !== size || $[68] !== t25) {
256
254
  t26 = /* @__PURE__ */ jsx(InputContent, {
257
255
  ...inputContentProps,
258
256
  headerProps,
@@ -260,15 +258,15 @@ var NumberInputBase = (props) => {
260
258
  size,
261
259
  children: t25
262
260
  });
263
- $[65] = as;
264
- $[66] = headerProps;
265
- $[67] = inputContentProps;
266
- $[68] = size;
267
- $[69] = t25;
268
- $[70] = t26;
269
- } else t26 = $[70];
261
+ $[64] = as;
262
+ $[65] = headerProps;
263
+ $[66] = inputContentProps;
264
+ $[67] = size;
265
+ $[68] = t25;
266
+ $[69] = t26;
267
+ } else t26 = $[69];
270
268
  let t27;
271
- if ($[71] !== dataIsDisabled || $[72] !== t14 || $[73] !== t16 || $[74] !== t17 || $[75] !== t26) {
269
+ if ($[70] !== dataIsDisabled || $[71] !== t14 || $[72] !== t16 || $[73] !== t17 || $[74] !== t26) {
272
270
  t27 = /* @__PURE__ */ jsx("div", {
273
271
  className: t14,
274
272
  onClick: t15,
@@ -277,15 +275,15 @@ var NumberInputBase = (props) => {
277
275
  "data-is-disabled": dataIsDisabled,
278
276
  children: t26
279
277
  });
280
- $[71] = dataIsDisabled;
281
- $[72] = t14;
282
- $[73] = t16;
283
- $[74] = t17;
284
- $[75] = t26;
285
- $[76] = t27;
286
- } else t27 = $[76];
278
+ $[70] = dataIsDisabled;
279
+ $[71] = t14;
280
+ $[72] = t16;
281
+ $[73] = t17;
282
+ $[74] = t26;
283
+ $[75] = t27;
284
+ } else t27 = $[75];
287
285
  let t28;
288
- if ($[77] !== T1 || $[78] !== as || $[79] !== formFieldProps || $[80] !== labelProps || $[81] !== t12 || $[82] !== t13 || $[83] !== t27) {
286
+ if ($[76] !== T1 || $[77] !== as || $[78] !== formFieldProps || $[79] !== labelProps || $[80] !== t12 || $[81] !== t13 || $[82] !== t27) {
289
287
  t28 = /* @__PURE__ */ jsx(T1, {
290
288
  ...formFieldProps,
291
289
  as,
@@ -294,30 +292,30 @@ var NumberInputBase = (props) => {
294
292
  tabIndex: t13,
295
293
  children: t27
296
294
  });
297
- $[77] = T1;
298
- $[78] = as;
299
- $[79] = formFieldProps;
300
- $[80] = labelProps;
301
- $[81] = t12;
302
- $[82] = t13;
303
- $[83] = t27;
304
- $[84] = t28;
305
- } else t28 = $[84];
295
+ $[76] = T1;
296
+ $[77] = as;
297
+ $[78] = formFieldProps;
298
+ $[79] = labelProps;
299
+ $[80] = t12;
300
+ $[81] = t13;
301
+ $[82] = t27;
302
+ $[83] = t28;
303
+ } else t28 = $[83];
306
304
  let t29;
307
- if ($[85] !== T0 || $[86] !== as || $[87] !== error || $[88] !== t11 || $[89] !== t28) {
305
+ if ($[84] !== T0 || $[85] !== as || $[86] !== error || $[87] !== t11 || $[88] !== t28) {
308
306
  t29 = /* @__PURE__ */ jsx(T0, {
309
307
  as,
310
308
  error,
311
309
  triggerTabIndex: t11,
312
310
  children: t28
313
311
  });
314
- $[85] = T0;
315
- $[86] = as;
316
- $[87] = error;
317
- $[88] = t11;
318
- $[89] = t28;
319
- $[90] = t29;
320
- } else t29 = $[90];
312
+ $[84] = T0;
313
+ $[85] = as;
314
+ $[86] = error;
315
+ $[87] = t11;
316
+ $[88] = t28;
317
+ $[89] = t29;
318
+ } else t29 = $[89];
321
319
  return t29;
322
320
  };
323
321
  var NumberInputInner = (t0) => {
@@ -422,35 +420,35 @@ var NumberInput = (t0) => {
422
420
  props = $[1];
423
421
  renderStaticInput = $[2];
424
422
  }
425
- if ("field" in props && props.field) {
426
- let field;
423
+ if ("formControl" in props && props.formControl) {
424
+ let formControl;
427
425
  let innerProps;
428
426
  let ref;
429
427
  if ($[3] !== props) {
430
- ({field, ref, ...innerProps} = props);
428
+ ({formControl, ref, ...innerProps} = props);
431
429
  $[3] = props;
432
- $[4] = field;
430
+ $[4] = formControl;
433
431
  $[5] = innerProps;
434
432
  $[6] = ref;
435
433
  } else {
436
- field = $[4];
434
+ formControl = $[4];
437
435
  innerProps = $[5];
438
436
  ref = $[6];
439
437
  }
440
- const controlWithOptions = field.form;
438
+ const controlWithOptions = formControl.control;
441
439
  let t1;
442
440
  if ($[7] !== controlWithOptions._options?.disabled || $[8] !== innerProps || $[9] !== props.error || $[10] !== props.isDisabled || $[11] !== ref || $[12] !== renderStaticInput) {
443
441
  t1 = (t2) => {
444
- const { field: field_0, fieldState: t3 } = t2;
442
+ const { field, fieldState: t3 } = t2;
445
443
  const { error, isDirty } = t3;
446
444
  return /* @__PURE__ */ jsx(NumberInputInner, {
447
445
  ...innerProps,
448
- ref: mergeRefs(ref, field_0.ref),
449
- value: field_0.value,
450
- onChange: field_0.onChange,
451
- onBlur: field_0.onBlur,
446
+ ref: mergeRefs(ref, field.ref),
447
+ value: field.value,
448
+ onChange: field.onChange,
449
+ onBlur: field.onBlur,
452
450
  isDirty,
453
- isDisabled: field_0.disabled || props.isDisabled,
451
+ isDisabled: field.disabled || props.isDisabled,
454
452
  isFormControlDisabled: !!controlWithOptions._options?.disabled,
455
453
  error: props.error ?? error?.message,
456
454
  renderStaticInput
@@ -465,14 +463,14 @@ var NumberInput = (t0) => {
465
463
  $[13] = t1;
466
464
  } else t1 = $[13];
467
465
  let t2;
468
- if ($[14] !== field.form || $[15] !== field.name || $[16] !== t1) {
469
- t2 = /* @__PURE__ */ jsx(FieldController, {
470
- control: field.form,
471
- name: field.name,
466
+ if ($[14] !== formControl.control || $[15] !== formControl.name || $[16] !== t1) {
467
+ t2 = /* @__PURE__ */ jsx(Controller, {
468
+ control: formControl.control,
469
+ name: formControl.name,
472
470
  render: t1
473
471
  });
474
- $[14] = field.form;
475
- $[15] = field.name;
472
+ $[14] = formControl.control;
473
+ $[15] = formControl.name;
476
474
  $[16] = t1;
477
475
  $[17] = t2;
478
476
  } else t2 = $[17];
@@ -28,7 +28,6 @@ export interface NumberRangeFieldProps extends NumberRangeFieldInputProps {
28
28
  hideInnerLabels?: boolean;
29
29
  isDirty?: boolean;
30
30
  isClearable?: boolean;
31
- isClearableIfDisabled?: boolean;
32
31
  autoFocusOnMount?: boolean;
33
32
  isDisabled?: boolean;
34
33
  isRequired?: boolean;
@@ -42,5 +41,5 @@ export interface NumberRangeFieldProps extends NumberRangeFieldInputProps {
42
41
  onRangeSideClear: (side: keyof NumberRangeValue) => void;
43
42
  onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
44
43
  }
45
- export declare const NumberRangeField: ({ ref, as, className, inputClassName, minInputClassName, maxInputClassName, inputBaseClassName, inputSizeClassName, formFieldProps, headerProps, rangeValue, effectiveError, minPlaceholder, maxPlaceholder, minLabel, maxLabel, hideInnerLabels, isDirty, isClearable, isClearableIfDisabled, autoFocusOnMount, isDisabled, isRequired, isEmpty, isHovered, isFocused, isFocusVisible, focusWithinProps, hoverProps, onRangeSideChange, onRangeSideClear, onBlur, ...numberFieldProps }: NumberRangeFieldProps) => import("react/jsx-runtime").JSX.Element;
44
+ export declare const NumberRangeField: ({ ref, as, className, inputClassName, minInputClassName, maxInputClassName, inputBaseClassName, inputSizeClassName, formFieldProps, headerProps, rangeValue, effectiveError, minPlaceholder, maxPlaceholder, minLabel, maxLabel, hideInnerLabels, isDirty, isClearable, autoFocusOnMount, isDisabled, isRequired, isEmpty, isHovered, isFocused, isFocusVisible, focusWithinProps, hoverProps, onRangeSideChange, onRangeSideClear, onBlur, ...numberFieldProps }: NumberRangeFieldProps) => import("react/jsx-runtime").JSX.Element;
46
45
  export {};