@povio/ui 3.1.0 → 3.2.0

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 (301) hide show
  1. package/dist/assets/icons/AlignCenter.js +26 -11
  2. package/dist/assets/icons/AlignLeft.js +26 -11
  3. package/dist/assets/icons/AlignLeftRight.js +26 -11
  4. package/dist/assets/icons/AlignRight.js +26 -11
  5. package/dist/assets/icons/ArrowDropDown.js +26 -11
  6. package/dist/assets/icons/ArrowDropUp.js +26 -11
  7. package/dist/assets/icons/ArrowLeft.js +26 -11
  8. package/dist/assets/icons/ArrowRight.js +26 -11
  9. package/dist/assets/icons/Bold.js +26 -11
  10. package/dist/assets/icons/BulletedList.js +26 -11
  11. package/dist/assets/icons/Calendar.js +28 -13
  12. package/dist/assets/icons/Check.js +28 -13
  13. package/dist/assets/icons/CheckCircle.js +26 -11
  14. package/dist/assets/icons/CheckboxCheckmark.js +29 -14
  15. package/dist/assets/icons/CheckboxIndeterminate.js +29 -14
  16. package/dist/assets/icons/ChevronDown.js +28 -13
  17. package/dist/assets/icons/ChevronLeft.js +28 -13
  18. package/dist/assets/icons/ChevronRight.js +28 -13
  19. package/dist/assets/icons/ChevronUp.js +28 -13
  20. package/dist/assets/icons/ChevronsLeft.js +28 -13
  21. package/dist/assets/icons/ChevronsRight.js +28 -13
  22. package/dist/assets/icons/Clock.js +26 -11
  23. package/dist/assets/icons/Close.js +26 -11
  24. package/dist/assets/icons/DateTime.js +35 -14
  25. package/dist/assets/icons/DragIndicator.js +26 -11
  26. package/dist/assets/icons/File.js +28 -13
  27. package/dist/assets/icons/Highlight.js +26 -11
  28. package/dist/assets/icons/HighlightOn.js +49 -15
  29. package/dist/assets/icons/Home.js +26 -11
  30. package/dist/assets/icons/Info.js +37 -16
  31. package/dist/assets/icons/Italic.js +26 -11
  32. package/dist/assets/icons/Link.js +26 -11
  33. package/dist/assets/icons/Menu.js +26 -11
  34. package/dist/assets/icons/NumberedList.js +26 -11
  35. package/dist/assets/icons/PointerHorizontal.js +26 -11
  36. package/dist/assets/icons/PointerVertical.js +26 -11
  37. package/dist/assets/icons/Search.js +26 -11
  38. package/dist/assets/icons/Send.js +28 -13
  39. package/dist/assets/icons/Strikethrough.js +26 -11
  40. package/dist/assets/icons/TextColor.js +48 -14
  41. package/dist/assets/icons/Today.js +26 -11
  42. package/dist/assets/icons/Underlined.js +28 -13
  43. package/dist/assets/icons/Upload.js +35 -14
  44. package/dist/assets/icons/Visibility.js +26 -11
  45. package/dist/assets/icons/VisibilityOff.js +26 -11
  46. package/dist/assets/icons/WarningFilled.js +28 -13
  47. package/dist/components/Breadcrumbs/Breadcrumbs.js +207 -56
  48. package/dist/components/Menu/Menu.js +18 -2
  49. package/dist/components/Menu/MenuDesktop.js +41 -7
  50. package/dist/components/Menu/MenuItem.js +32 -9
  51. package/dist/components/Menu/MenuMobile.js +102 -39
  52. package/dist/components/Menu/MenuPopover.js +105 -29
  53. package/dist/components/buttons/Button/button.cva.d.ts +3 -3
  54. package/dist/components/buttons/IconButton/IconButton.js +40 -8
  55. package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +2 -1
  56. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
  57. package/dist/components/buttons/PillButton/PillButton.js +55 -17
  58. package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
  59. package/dist/components/buttons/SplitButton/SplitButton.js +103 -18
  60. package/dist/components/buttons/TextButton/TextButton.js +30 -8
  61. package/dist/components/buttons/ToggleButton/ToggleButton.js +28 -8
  62. package/dist/components/buttons/shared/ButtonContent.js +80 -22
  63. package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -0
  64. package/dist/components/inputs/Checkbox/Checkbox.js +201 -35
  65. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +24 -10
  66. package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +3 -0
  67. package/dist/components/inputs/Checkbox/checkbox.cva.js +2 -1
  68. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +12 -5
  69. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +380 -75
  70. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +12 -5
  71. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +499 -186
  72. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +14 -5
  73. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +280 -46
  74. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +7 -3
  75. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +616 -121
  76. package/dist/components/inputs/DateTime/shared/Calendar.d.ts +5 -2
  77. package/dist/components/inputs/DateTime/shared/Calendar.js +342 -119
  78. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +4 -2
  79. package/dist/components/inputs/DateTime/shared/CalendarCell.js +310 -103
  80. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +4 -2
  81. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +150 -33
  82. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +233 -98
  83. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
  84. package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
  85. package/dist/components/inputs/DateTime/shared/DateField.js +288 -112
  86. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +14 -3
  87. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +359 -129
  88. package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +18 -1
  89. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +104 -11
  90. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +83 -28
  91. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
  92. package/dist/components/inputs/DateTime/shared/MonthPicker.js +103 -58
  93. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +193 -82
  94. package/dist/components/inputs/DateTime/shared/TimeField.js +27 -8
  95. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +279 -110
  96. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +4 -1
  97. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +211 -65
  98. package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
  99. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +5 -0
  100. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +16 -0
  101. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +16 -0
  102. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +15 -0
  103. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +32 -0
  104. package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +2 -0
  105. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +1 -0
  106. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +41 -0
  107. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +99 -0
  108. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +1 -0
  109. package/dist/components/inputs/File/FileUpload.js +91 -46
  110. package/dist/components/inputs/File/FileUploadContainer.js +15 -7
  111. package/dist/components/inputs/File/InputUpload.js +317 -79
  112. package/dist/components/inputs/File/index.d.ts +1 -1
  113. package/dist/components/inputs/File/shared/FileCard.js +104 -41
  114. package/dist/components/inputs/File/shared/FileCardList.js +47 -12
  115. package/dist/components/inputs/File/shared/FileUploadContent.js +175 -44
  116. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +149 -46
  117. package/dist/components/inputs/File/shared/FileUploadContentError.js +234 -93
  118. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +230 -97
  119. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +199 -55
  120. package/dist/components/inputs/File/shared/InputUploadContent.js +148 -34
  121. package/dist/components/inputs/File/shared/InputUploadFilled.js +49 -8
  122. package/dist/components/inputs/File/shared/ProgressBar.js +102 -15
  123. package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +0 -11
  124. package/dist/components/inputs/File/shared/fileUpload.cva.js +1 -18
  125. package/dist/components/inputs/FormField/FormField.d.ts +3 -3
  126. package/dist/components/inputs/FormField/FormField.js +119 -37
  127. package/dist/components/inputs/FormField/FormFieldError.js +25 -5
  128. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
  129. package/dist/components/inputs/FormField/FormFieldHeader.js +81 -22
  130. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +31 -7
  131. package/dist/components/inputs/FormField/FormFieldHelper.js +26 -6
  132. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
  133. package/dist/components/inputs/FormField/FormFieldLabel.js +40 -9
  134. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +13 -0
  135. package/dist/components/inputs/FormField/formFieldHeader.cva.js +14 -0
  136. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +5 -2
  137. package/dist/components/inputs/Input/NumberInput/NumberInput.js +446 -97
  138. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +45 -0
  139. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +571 -0
  140. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +35 -0
  141. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +574 -0
  142. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
  143. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +8 -0
  144. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +5 -0
  145. package/dist/components/inputs/Input/TextArea/TextArea.js +305 -90
  146. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +3 -1
  147. package/dist/components/inputs/Input/TextInput/TextInput.js +429 -90
  148. package/dist/components/inputs/Input/shared/InputContent.js +193 -59
  149. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +1 -0
  150. package/dist/components/inputs/Input/shared/numberStatic.utils.js +7 -0
  151. package/dist/components/inputs/Inputs/Form.js +40 -11
  152. package/dist/components/inputs/Inputs/InputItem.d.ts +15 -21
  153. package/dist/components/inputs/Inputs/InputItem.js +69 -14
  154. package/dist/components/inputs/Inputs/Inputs.js +37 -11
  155. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +3 -1
  156. package/dist/components/inputs/RadioGroup/RadioGroup.js +353 -61
  157. package/dist/components/inputs/RadioGroup/radio.cva.d.ts +45 -0
  158. package/dist/components/inputs/RadioGroup/radio.cva.js +48 -1
  159. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +6 -2
  160. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +217 -22
  161. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -18
  162. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +107 -8
  163. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +37 -0
  164. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +14 -0
  165. package/dist/components/inputs/Selection/Select/QuerySelect.js +178 -0
  166. package/dist/components/inputs/Selection/Select/Select.d.ts +7 -3
  167. package/dist/components/inputs/Selection/Select/Select.js +227 -18
  168. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +8 -1
  169. package/dist/components/inputs/Selection/shared/SelectBase.js +69 -18
  170. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
  171. package/dist/components/inputs/Selection/shared/SelectDesktop.js +393 -138
  172. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
  173. package/dist/components/inputs/Selection/shared/SelectInput.js +397 -116
  174. package/dist/components/inputs/Selection/shared/SelectInputTags.js +99 -25
  175. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
  176. package/dist/components/inputs/Selection/shared/SelectListBox.js +164 -52
  177. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +85 -35
  178. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +69 -16
  179. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +70 -21
  180. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +58 -9
  181. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
  182. package/dist/components/inputs/Selection/shared/SelectMobile.js +9 -3
  183. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +9 -0
  184. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +47 -0
  185. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +14 -0
  186. package/dist/components/inputs/Selection/shared/querySelect.utils.js +43 -0
  187. package/dist/components/inputs/Selection/shared/select.context.d.ts +3 -2
  188. package/dist/components/inputs/Selection/shared/select.context.js +67 -36
  189. package/dist/components/inputs/Selection/shared/select.types.d.ts +3 -2
  190. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +6 -0
  191. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +5 -0
  192. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +12 -0
  193. package/dist/components/inputs/Selection/shared/selectInput.cva.js +8 -0
  194. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +23 -0
  195. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +54 -0
  196. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +1 -0
  197. package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
  198. package/dist/components/inputs/Skeleton/InputFrame.d.ts +83 -0
  199. package/dist/components/inputs/Skeleton/InputFrame.js +612 -0
  200. package/dist/components/inputs/Slider/Slider.d.ts +2 -1
  201. package/dist/components/inputs/Slider/Slider.js +265 -76
  202. package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -0
  203. package/dist/components/inputs/TextEditor/TextEditor.js +447 -98
  204. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +37 -11
  205. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +102 -30
  206. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +194 -45
  207. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +88 -28
  208. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +48 -14
  209. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +66 -19
  210. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +49 -15
  211. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +92 -32
  212. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +126 -54
  213. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +141 -38
  214. package/dist/components/inputs/Toggle/Toggle.d.ts +1 -0
  215. package/dist/components/inputs/Toggle/Toggle.js +214 -37
  216. package/dist/components/inputs/Toggle/toggle.cva.d.ts +3 -0
  217. package/dist/components/inputs/Toggle/toggle.cva.js +2 -1
  218. package/dist/components/inputs/shared/CheckContent.d.ts +2 -1
  219. package/dist/components/inputs/shared/CheckContent.js +21 -11
  220. package/dist/components/inputs/shared/InputClear.d.ts +2 -1
  221. package/dist/components/inputs/shared/InputClear.js +88 -12
  222. package/dist/components/inputs/shared/TooltipWrapper.js +50 -11
  223. package/dist/components/inputs/shared/input.cva.d.ts +28 -0
  224. package/dist/components/inputs/shared/input.cva.js +38 -4
  225. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +8 -0
  226. package/dist/components/inputs/shared/tooltipWrapper.cva.js +5 -0
  227. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +15 -0
  228. package/dist/components/inputs/shared/useStaticInputHandoff.js +112 -0
  229. package/dist/components/navigation/Accordion/Accordion.js +69 -22
  230. package/dist/components/navigation/Accordion/AccordionItem.js +86 -41
  231. package/dist/components/navigation/Stepper/Stepper.js +67 -22
  232. package/dist/components/navigation/Stepper/StepperItem.js +104 -31
  233. package/dist/components/navigation/Stepper/StepperSeparator.js +23 -5
  234. package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
  235. package/dist/components/overlays/BottomSheet/BottomSheet.js +96 -23
  236. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +48 -8
  237. package/dist/components/overlays/Drawer/Drawer.js +62 -20
  238. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +85 -28
  239. package/dist/components/overlays/Tooltip/Tooltip.js +137 -28
  240. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +37 -12
  241. package/dist/components/segment/Segment.js +218 -57
  242. package/dist/components/segment/SegmentItem.js +67 -10
  243. package/dist/components/shared/pagination/Pagination.js +108 -22
  244. package/dist/components/shared/pagination/PaginationList.js +167 -64
  245. package/dist/components/shared/pagination/minWidth.cva.d.ts +1 -1
  246. package/dist/components/status/Alert/Alert.js +97 -30
  247. package/dist/components/status/Loader/Loader.js +77 -22
  248. package/dist/components/status/Toast/Toast.js +28 -14
  249. package/dist/components/status/Toast/toast.cva.d.ts +1 -1
  250. package/dist/components/status/Toast/useToast.js +62 -57
  251. package/dist/components/table/ColumnConfig.js +158 -54
  252. package/dist/components/table/InfiniteTable.js +67 -16
  253. package/dist/components/table/PaginatedTable.js +84 -18
  254. package/dist/components/table/Table.js +28 -27
  255. package/dist/components/text/Link/Link.js +19 -7
  256. package/dist/components/text/Typography/Typography.js +23 -8
  257. package/dist/config/confirmation.context.js +1 -1
  258. package/dist/config/link.context.js +23 -9
  259. package/dist/config/router.context.js +42 -16
  260. package/dist/config/theme.context.js +98 -45
  261. package/dist/config/uiConfig.context.d.ts +20 -6
  262. package/dist/config/uiConfig.context.js +68 -14
  263. package/dist/config/uiOverrides.context.d.ts +30 -11
  264. package/dist/config/uiOverrides.context.js +54 -14
  265. package/dist/helpers/dynamicInputs.d.ts +12 -9
  266. package/dist/helpers/dynamicInputs.js +13 -8
  267. package/dist/hooks/useAutosave.d.ts +2 -1
  268. package/dist/hooks/useAutosave.js +12 -4
  269. package/dist/hooks/useAutosave.spec.d.ts +1 -0
  270. package/dist/hooks/useBreakpoint.js +16 -3
  271. package/dist/hooks/useDebounceCallback.js +51 -17
  272. package/dist/hooks/useFilters.js +125 -64
  273. package/dist/hooks/useForm.js +42 -8
  274. package/dist/hooks/useFormAutosave.d.ts +3 -1
  275. package/dist/hooks/useFormAutosave.js +122 -30
  276. package/dist/hooks/useFormAutosave.spec.d.ts +1 -0
  277. package/dist/hooks/useIntersectionObserver.d.ts +1 -1
  278. package/dist/hooks/useIntersectionObserver.js +91 -24
  279. package/dist/hooks/useKeyInteractions.d.ts +20 -0
  280. package/dist/hooks/useKeyInteractions.js +54 -0
  281. package/dist/hooks/useKeyInteractions.spec.d.ts +1 -0
  282. package/dist/hooks/useLocalStorage.js +43 -10
  283. package/dist/hooks/useLongPressRepeat.js +55 -20
  284. package/dist/hooks/usePagination.js +49 -19
  285. package/dist/hooks/useQueryAutocomplete.d.ts +14 -0
  286. package/dist/hooks/useQueryAutocomplete.js +72 -0
  287. package/dist/hooks/useScrollableListBox.js +37 -16
  288. package/dist/hooks/useSorting.js +69 -28
  289. package/dist/hooks/useStateAndRef.js +21 -7
  290. package/dist/hooks/useTableColumnConfig.js +124 -31
  291. package/dist/hooks/useTranslationMemo.js +25 -5
  292. package/dist/index.d.ts +18 -3
  293. package/dist/index.js +15 -5
  294. package/dist/tw-ui-plugin.js +6 -0
  295. package/dist/utils/date-time.utils.d.ts +38 -10
  296. package/dist/utils/date-time.utils.js +136 -22
  297. package/dist/utils/query.utils.d.ts +4 -0
  298. package/dist/utils/query.utils.js +8 -0
  299. package/dist/utils/zod.utils.d.ts +2 -0
  300. package/dist/utils/zod.utils.js +5 -0
  301. package/package.json +2 -2
@@ -0,0 +1,612 @@
1
+ import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
+ import { typographyDefinition } from "../../text/Typography/typography.cva.js";
3
+ import { Loader } from "../../status/Loader/Loader.js";
4
+ import { UIConfig } from "../../../config/uiConfig.context.js";
5
+ import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
6
+ import { FormFieldLabel } from "../FormField/FormFieldLabel.js";
7
+ import { InputClear } from "../shared/InputClear.js";
8
+ import { inputBaseDefinition, inputContentWrapperDefinition, inputSizeDefinition } from "../shared/input.cva.js";
9
+ import { FormField } from "../FormField/FormField.js";
10
+ import { TooltipWrapper } from "../shared/TooltipWrapper.js";
11
+ import { c } from "react/compiler-runtime";
12
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
+ import { clsx } from "clsx";
14
+ import { isValidElement, useId, useRef } from "react";
15
+ //#region src/components/inputs/Skeleton/InputFrame.tsx
16
+ var InputFrame = (props) => {
17
+ const $ = c(202);
18
+ const ui = UIConfig.useConfig();
19
+ const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
20
+ const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
21
+ const inputContentWrapperCva = UIOverrides.useCva("input.contentWrapperCva", inputContentWrapperDefinition);
22
+ const typographyCva = UIOverrides.useCva("typography.cva", typographyDefinition);
23
+ const generatedInputId = useId();
24
+ const pendingStaticPressPointerIdRef = useRef(null);
25
+ const { ref, children, formFieldRef, labelProps: labelPropsProp, headerProps, error, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isHeaderHidden, hideLabel: hideLabelProp, headerClassName, errorClassName, className, leadingContent, leadingIcon, actionContent, actionContentPlacement: t0, trailingContent, trailingIcon, trailingAction, unit, isLoading, action, isClearable: isClearableProp, showClear, onStaticInteract, onStaticPress, staticPressTarget: t1, clearClassName, onClear, dataAttributes, typographySize, id: idProp, inputClassName, contentClassName, contentWrapperClassName, contentGroup: t2, contentAndTrailingClassName, wrapContentAndTrailing, wrapTrailingContent: t3, reserveTrailingContent, labelPlacement: t4, trailingClassName, onMouseEnter, onFocusCapture, variant: variantProp, as: asProp, size: sizeProp } = props;
26
+ const actionContentPlacement = t0 === void 0 ? "content-wrapper" : t0;
27
+ const staticPressTarget = t1 === void 0 ? "frame" : t1;
28
+ const contentGroup = t2 === void 0 ? "input" : t2;
29
+ const wrapTrailingContent = t3 === void 0 ? true : t3;
30
+ const labelPlacement = t4 === void 0 ? "content-wrapper" : t4;
31
+ const as = asProp ?? ui.input.as;
32
+ const size = sizeProp ?? ui.input.size;
33
+ const variant = variantProp ?? ui.input.variant;
34
+ const hideLabel = hideLabelProp ?? ui.input.hideLabel;
35
+ const hasClear = !!(isClearableProp ?? ui.input.isClearable);
36
+ let t5;
37
+ if ($[0] !== leadingIcon) {
38
+ t5 = leadingIcon && isValidElement(leadingIcon);
39
+ $[0] = leadingIcon;
40
+ $[1] = t5;
41
+ } else t5 = $[1];
42
+ const isLeadingIconElement = t5;
43
+ let t6;
44
+ if ($[2] !== trailingIcon) {
45
+ t6 = trailingIcon && isValidElement(trailingIcon);
46
+ $[2] = trailingIcon;
47
+ $[3] = t6;
48
+ } else t6 = $[3];
49
+ const isTrailingIconElement = t6;
50
+ const hasTrailingContent = reserveTrailingContent || hasClear || !!trailingContent || !!unit || !!isLoading || !!action || !!trailingIcon || !!trailingAction;
51
+ const isTrailingInteractive = !!action || !!trailingAction || !!isTrailingIconElement || hasClear && !!showClear || !!trailingContent;
52
+ let dataAttributeProps;
53
+ let formFieldProps;
54
+ let isInputContentGroup;
55
+ let labelProps;
56
+ let t10;
57
+ let t11;
58
+ let t12;
59
+ let t13;
60
+ let t14;
61
+ let t15;
62
+ let t16;
63
+ let t7;
64
+ let t8;
65
+ let t9;
66
+ if ($[4] !== actionContent || $[5] !== actionContentPlacement || $[6] !== as || $[7] !== children || $[8] !== className || $[9] !== contentClassName || $[10] !== contentGroup || $[11] !== contentWrapperClassName || $[12] !== dataAttributes || $[13] !== error || $[14] !== errorClassName || $[15] !== generatedInputId || $[16] !== headerClassName || $[17] !== headerProps || $[18] !== helperText || $[19] !== hideLabel || $[20] !== idProp || $[21] !== inputContentWrapperCva || $[22] !== inputSizeCva || $[23] !== isDisabled || $[24] !== isHeaderHidden || $[25] !== isLeadingIconElement || $[26] !== isRequired || $[27] !== label || $[28] !== labelPlacement || $[29] !== labelPropsProp || $[30] !== leadingContent || $[31] !== leadingIcon || $[32] !== rightContent || $[33] !== size || $[34] !== tooltipText || $[35] !== typographyCva || $[36] !== typographySize) {
67
+ dataAttributeProps = getInputFrameDataAttributeProps(dataAttributes);
68
+ const baseLabelProps = headerProps?.labelProps ?? labelPropsProp;
69
+ const inputId = idProp ?? baseLabelProps?.htmlFor ?? `input-frame_${generatedInputId}`;
70
+ let t17;
71
+ if ($[51] !== baseLabelProps || $[52] !== inputId) {
72
+ t17 = {
73
+ ...baseLabelProps,
74
+ htmlFor: inputId
75
+ };
76
+ $[51] = baseLabelProps;
77
+ $[52] = inputId;
78
+ $[53] = t17;
79
+ } else t17 = $[53];
80
+ labelProps = t17;
81
+ const t18 = label ?? "";
82
+ const t19 = isHeaderHidden || as === "inline" || as === "filter" || as === "floating";
83
+ let t20;
84
+ if ($[54] !== className || $[55] !== error || $[56] !== errorClassName || $[57] !== headerClassName || $[58] !== helperText || $[59] !== hideLabel || $[60] !== isDisabled || $[61] !== isRequired || $[62] !== rightContent || $[63] !== t18 || $[64] !== t19 || $[65] !== tooltipText) {
85
+ t20 = {
86
+ error,
87
+ label: t18,
88
+ tooltipText,
89
+ helperText,
90
+ isRequired,
91
+ rightContent,
92
+ isHeaderHidden: t19,
93
+ hideLabel,
94
+ isDisabled,
95
+ headerClassName,
96
+ errorClassName,
97
+ className
98
+ };
99
+ $[54] = className;
100
+ $[55] = error;
101
+ $[56] = errorClassName;
102
+ $[57] = headerClassName;
103
+ $[58] = helperText;
104
+ $[59] = hideLabel;
105
+ $[60] = isDisabled;
106
+ $[61] = isRequired;
107
+ $[62] = rightContent;
108
+ $[63] = t18;
109
+ $[64] = t19;
110
+ $[65] = tooltipText;
111
+ $[66] = t20;
112
+ } else t20 = $[66];
113
+ formFieldProps = t20;
114
+ let t21;
115
+ if ($[67] !== headerClassName || $[68] !== headerProps || $[69] !== helperText || $[70] !== hideLabel || $[71] !== isDisabled || $[72] !== isHeaderHidden || $[73] !== isRequired || $[74] !== label || $[75] !== labelProps || $[76] !== rightContent || $[77] !== tooltipText) {
116
+ t21 = headerProps ? {
117
+ ...headerProps,
118
+ labelProps
119
+ } : {
120
+ label: label ?? "",
121
+ tooltipText,
122
+ helperText,
123
+ isRequired,
124
+ rightContent,
125
+ isHeaderHidden: hideLabel || isHeaderHidden,
126
+ isDisabled,
127
+ className: headerClassName,
128
+ labelProps
129
+ };
130
+ $[67] = headerClassName;
131
+ $[68] = headerProps;
132
+ $[69] = helperText;
133
+ $[70] = hideLabel;
134
+ $[71] = isDisabled;
135
+ $[72] = isHeaderHidden;
136
+ $[73] = isRequired;
137
+ $[74] = label;
138
+ $[75] = labelProps;
139
+ $[76] = rightContent;
140
+ $[77] = tooltipText;
141
+ $[78] = t21;
142
+ } else t21 = $[78];
143
+ const resolvedHeaderProps = t21;
144
+ let t22;
145
+ if ($[79] !== as) {
146
+ t22 = as && ["filter", "floating"].includes(as);
147
+ $[79] = as;
148
+ $[80] = t22;
149
+ } else t22 = $[80];
150
+ const shouldRenderLabel = t22;
151
+ let t23;
152
+ if ($[81] !== as || $[82] !== resolvedHeaderProps || $[83] !== shouldRenderLabel || $[84] !== size) {
153
+ t23 = shouldRenderLabel ? /* @__PURE__ */ jsx(FormFieldLabel, {
154
+ as,
155
+ size,
156
+ ...resolvedHeaderProps
157
+ }) : null;
158
+ $[81] = as;
159
+ $[82] = resolvedHeaderProps;
160
+ $[83] = shouldRenderLabel;
161
+ $[84] = size;
162
+ $[85] = t23;
163
+ } else t23 = $[85];
164
+ const labelContent = t23;
165
+ let t24;
166
+ if ($[86] !== as || $[87] !== contentWrapperClassName || $[88] !== inputContentWrapperCva) {
167
+ t24 = contentWrapperClassName ?? inputContentWrapperCva({ as });
168
+ $[86] = as;
169
+ $[87] = contentWrapperClassName;
170
+ $[88] = inputContentWrapperCva;
171
+ $[89] = t24;
172
+ } else t24 = $[89];
173
+ const resolvedContentWrapperClassName = t24;
174
+ isInputContentGroup = contentGroup === "input";
175
+ t11 = dataAttributeProps;
176
+ const t25 = isInputContentGroup && inputFrameContentGroupClassNames.input;
177
+ if ($[90] !== as || $[91] !== contentClassName || $[92] !== inputSizeCva || $[93] !== size || $[94] !== t25 || $[95] !== typographyCva || $[96] !== typographySize) {
178
+ let t26;
179
+ if ($[98] !== typographyCva || $[99] !== typographySize) {
180
+ t26 = typographySize && typographyCva({ size: typographySize });
181
+ $[98] = typographyCva;
182
+ $[99] = typographySize;
183
+ $[100] = t26;
184
+ } else t26 = $[100];
185
+ t12 = clsx(t25, "group/input-frame flex min-w-0 w-full items-center gap-input-gap-input-text-to-elements", inputSizeCva({
186
+ size,
187
+ as
188
+ }), t26, contentClassName);
189
+ $[90] = as;
190
+ $[91] = contentClassName;
191
+ $[92] = inputSizeCva;
192
+ $[93] = size;
193
+ $[94] = t25;
194
+ $[95] = typographyCva;
195
+ $[96] = typographySize;
196
+ $[97] = t12;
197
+ } else t12 = $[97];
198
+ t13 = leadingContent;
199
+ if ($[101] !== isLeadingIconElement || $[102] !== leadingIcon) {
200
+ t14 = leadingIcon && /* @__PURE__ */ jsx("div", {
201
+ className: clsx(!isLeadingIconElement && "pointer-events-none"),
202
+ children: renderIconVisual(leadingIcon)
203
+ });
204
+ $[101] = isLeadingIconElement;
205
+ $[102] = leadingIcon;
206
+ $[103] = t14;
207
+ } else t14 = $[103];
208
+ t15 = labelPlacement === "content-row" && labelContent;
209
+ t16 = actionContentPlacement === "content-row" && actionContent;
210
+ t7 = resolvedContentWrapperClassName;
211
+ t8 = labelPlacement === "content-wrapper" && labelContent;
212
+ t9 = actionContentPlacement === "content-wrapper" && actionContent;
213
+ t10 = typeof children === "function" ? children({
214
+ ...dataAttributeProps,
215
+ id: inputId
216
+ }) : children;
217
+ $[4] = actionContent;
218
+ $[5] = actionContentPlacement;
219
+ $[6] = as;
220
+ $[7] = children;
221
+ $[8] = className;
222
+ $[9] = contentClassName;
223
+ $[10] = contentGroup;
224
+ $[11] = contentWrapperClassName;
225
+ $[12] = dataAttributes;
226
+ $[13] = error;
227
+ $[14] = errorClassName;
228
+ $[15] = generatedInputId;
229
+ $[16] = headerClassName;
230
+ $[17] = headerProps;
231
+ $[18] = helperText;
232
+ $[19] = hideLabel;
233
+ $[20] = idProp;
234
+ $[21] = inputContentWrapperCva;
235
+ $[22] = inputSizeCva;
236
+ $[23] = isDisabled;
237
+ $[24] = isHeaderHidden;
238
+ $[25] = isLeadingIconElement;
239
+ $[26] = isRequired;
240
+ $[27] = label;
241
+ $[28] = labelPlacement;
242
+ $[29] = labelPropsProp;
243
+ $[30] = leadingContent;
244
+ $[31] = leadingIcon;
245
+ $[32] = rightContent;
246
+ $[33] = size;
247
+ $[34] = tooltipText;
248
+ $[35] = typographyCva;
249
+ $[36] = typographySize;
250
+ $[37] = dataAttributeProps;
251
+ $[38] = formFieldProps;
252
+ $[39] = isInputContentGroup;
253
+ $[40] = labelProps;
254
+ $[41] = t10;
255
+ $[42] = t11;
256
+ $[43] = t12;
257
+ $[44] = t13;
258
+ $[45] = t14;
259
+ $[46] = t15;
260
+ $[47] = t16;
261
+ $[48] = t7;
262
+ $[49] = t8;
263
+ $[50] = t9;
264
+ } else {
265
+ dataAttributeProps = $[37];
266
+ formFieldProps = $[38];
267
+ isInputContentGroup = $[39];
268
+ labelProps = $[40];
269
+ t10 = $[41];
270
+ t11 = $[42];
271
+ t12 = $[43];
272
+ t13 = $[44];
273
+ t14 = $[45];
274
+ t15 = $[46];
275
+ t16 = $[47];
276
+ t7 = $[48];
277
+ t8 = $[49];
278
+ t9 = $[50];
279
+ }
280
+ let t17;
281
+ if ($[104] !== t10 || $[105] !== t7 || $[106] !== t8 || $[107] !== t9) {
282
+ t17 = /* @__PURE__ */ jsxs("div", {
283
+ className: t7,
284
+ children: [
285
+ t8,
286
+ t9,
287
+ t10
288
+ ]
289
+ });
290
+ $[104] = t10;
291
+ $[105] = t7;
292
+ $[106] = t8;
293
+ $[107] = t9;
294
+ $[108] = t17;
295
+ } else t17 = $[108];
296
+ let t18;
297
+ if ($[109] !== t11 || $[110] !== t12 || $[111] !== t13 || $[112] !== t14 || $[113] !== t15 || $[114] !== t16 || $[115] !== t17) {
298
+ t18 = /* @__PURE__ */ jsxs("div", {
299
+ ...t11,
300
+ className: t12,
301
+ children: [
302
+ t13,
303
+ t14,
304
+ t15,
305
+ t16,
306
+ t17
307
+ ]
308
+ });
309
+ $[109] = t11;
310
+ $[110] = t12;
311
+ $[111] = t13;
312
+ $[112] = t14;
313
+ $[113] = t15;
314
+ $[114] = t16;
315
+ $[115] = t17;
316
+ $[116] = t18;
317
+ } else t18 = $[116];
318
+ const contentRow = t18;
319
+ let t19;
320
+ if ($[117] !== action || $[118] !== clearClassName || $[119] !== hasClear || $[120] !== hasTrailingContent || $[121] !== isDisabled || $[122] !== isLoading || $[123] !== onClear || $[124] !== onStaticPress || $[125] !== showClear || $[126] !== trailingAction || $[127] !== trailingContent || $[128] !== trailingIcon || $[129] !== typographyCva || $[130] !== unit) {
321
+ t19 = hasTrailingContent ? /* @__PURE__ */ jsxs(Fragment, { children: [
322
+ hasClear && /* @__PURE__ */ jsx(InputClear, {
323
+ onClear: () => onClear?.(),
324
+ className: clearClassName,
325
+ show: !!showClear,
326
+ renderStatic: true
327
+ }),
328
+ trailingContent,
329
+ unit && /* @__PURE__ */ jsx("span", {
330
+ className: typographyCva({
331
+ size: "label-2",
332
+ sizeMobile: "label-2",
333
+ variant: "prominent-1",
334
+ className: "text-text-default-3"
335
+ }),
336
+ children: unit
337
+ }),
338
+ isLoading && /* @__PURE__ */ jsx("div", {
339
+ className: "inline-flex",
340
+ children: /* @__PURE__ */ jsx(Loader, {})
341
+ }),
342
+ !isLoading && action && /* @__PURE__ */ jsx(InlineIconButton, {
343
+ color: "secondary",
344
+ icon: action.icon,
345
+ isDisabled,
346
+ onPress: () => {
347
+ if (onStaticPress) {
348
+ onStaticPress();
349
+ return;
350
+ }
351
+ action.onClick();
352
+ },
353
+ excludeFromTabOrder: true,
354
+ label: action.altText,
355
+ className: clsx("border-0!", action.className),
356
+ "data-static-press-action": ""
357
+ }),
358
+ !isLoading && !action && trailingIcon && renderIconVisual(trailingIcon),
359
+ trailingAction
360
+ ] }) : null;
361
+ $[117] = action;
362
+ $[118] = clearClassName;
363
+ $[119] = hasClear;
364
+ $[120] = hasTrailingContent;
365
+ $[121] = isDisabled;
366
+ $[122] = isLoading;
367
+ $[123] = onClear;
368
+ $[124] = onStaticPress;
369
+ $[125] = showClear;
370
+ $[126] = trailingAction;
371
+ $[127] = trailingContent;
372
+ $[128] = trailingIcon;
373
+ $[129] = typographyCva;
374
+ $[130] = unit;
375
+ $[131] = t19;
376
+ } else t19 = $[131];
377
+ const trailingContentNodes = t19;
378
+ let t20;
379
+ if ($[132] !== as || $[133] !== inputSizeCva || $[134] !== isDisabled || $[135] !== isTrailingInteractive || $[136] !== size || $[137] !== trailingClassName || $[138] !== trailingContentNodes || $[139] !== wrapTrailingContent) {
380
+ t20 = wrapTrailingContent && trailingContentNodes ? /* @__PURE__ */ jsx("div", {
381
+ className: clsx("flex items-center gap-input-gap-trailing-elements", inputSizeCva({
382
+ size,
383
+ as
384
+ }), !isTrailingInteractive && "pointer-events-none", isDisabled && "text-interactive-text-secondary-disabled", trailingClassName),
385
+ children: trailingContentNodes
386
+ }) : trailingContentNodes;
387
+ $[132] = as;
388
+ $[133] = inputSizeCva;
389
+ $[134] = isDisabled;
390
+ $[135] = isTrailingInteractive;
391
+ $[136] = size;
392
+ $[137] = trailingClassName;
393
+ $[138] = trailingContentNodes;
394
+ $[139] = wrapTrailingContent;
395
+ $[140] = t20;
396
+ } else t20 = $[140];
397
+ const trailingRow = t20;
398
+ let t21;
399
+ if ($[141] !== contentAndTrailingClassName || $[142] !== contentRow || $[143] !== trailingRow || $[144] !== wrapContentAndTrailing) {
400
+ t21 = wrapContentAndTrailing ? /* @__PURE__ */ jsxs("div", {
401
+ className: clsx("flex w-full items-center gap-input-gap-input-text-to-elements", contentAndTrailingClassName),
402
+ children: [contentRow, trailingRow]
403
+ }) : /* @__PURE__ */ jsxs(Fragment, { children: [contentRow, trailingRow] });
404
+ $[141] = contentAndTrailingClassName;
405
+ $[142] = contentRow;
406
+ $[143] = trailingRow;
407
+ $[144] = wrapContentAndTrailing;
408
+ $[145] = t21;
409
+ } else t21 = $[145];
410
+ const inputFrameContent = t21;
411
+ let t22;
412
+ if ($[146] !== staticPressTarget) {
413
+ t22 = (target) => staticPressTarget === "frame" || target instanceof Element && !!target.closest("[data-static-press-action]");
414
+ $[146] = staticPressTarget;
415
+ $[147] = t22;
416
+ } else t22 = $[147];
417
+ const shouldReplayStaticPress = t22;
418
+ const isStaticPressActionTarget = _temp;
419
+ const t23 = as === "inline" ? -1 : void 0;
420
+ const t24 = as === "inline" ? -1 : void 0;
421
+ let t25;
422
+ if ($[148] !== onMouseEnter || $[149] !== onStaticInteract) {
423
+ t25 = (event) => {
424
+ onMouseEnter?.(event);
425
+ if (isStaticPressActionTarget(event.target)) return;
426
+ onStaticInteract?.(false, event.target);
427
+ };
428
+ $[148] = onMouseEnter;
429
+ $[149] = onStaticInteract;
430
+ $[150] = t25;
431
+ } else t25 = $[150];
432
+ let t26;
433
+ if ($[151] !== onFocusCapture || $[152] !== onStaticInteract) {
434
+ t26 = (event_0) => {
435
+ onFocusCapture?.(event_0);
436
+ if (pendingStaticPressPointerIdRef.current == null) onStaticInteract?.(true, event_0.target);
437
+ };
438
+ $[151] = onFocusCapture;
439
+ $[152] = onStaticInteract;
440
+ $[153] = t26;
441
+ } else t26 = $[153];
442
+ const t27 = !isInputContentGroup && inputFrameContentGroupClassNames[contentGroup];
443
+ let t28;
444
+ if ($[154] !== as || $[155] !== inputBaseCva || $[156] !== inputClassName || $[157] !== t27 || $[158] !== variant) {
445
+ t28 = clsx("relative flex cursor-text has-disabled:cursor-default", t27, inputBaseCva({
446
+ variant,
447
+ as
448
+ }), inputClassName);
449
+ $[154] = as;
450
+ $[155] = inputBaseCva;
451
+ $[156] = inputClassName;
452
+ $[157] = t27;
453
+ $[158] = variant;
454
+ $[159] = t28;
455
+ } else t28 = $[159];
456
+ const t29 = isDisabled ? -1 : 0;
457
+ let t30;
458
+ if ($[160] !== onStaticInteract) {
459
+ t30 = (event_1) => {
460
+ if (pendingStaticPressPointerIdRef.current == null) onStaticInteract?.(true, event_1.target);
461
+ };
462
+ $[160] = onStaticInteract;
463
+ $[161] = t30;
464
+ } else t30 = $[161];
465
+ let t31;
466
+ if ($[162] !== onStaticInteract || $[163] !== onStaticPress || $[164] !== shouldReplayStaticPress) {
467
+ t31 = (event_2) => {
468
+ if (onStaticPress && shouldReplayStaticPress(event_2.target)) {
469
+ onStaticPress();
470
+ return;
471
+ }
472
+ onStaticInteract?.(true, event_2.target);
473
+ };
474
+ $[162] = onStaticInteract;
475
+ $[163] = onStaticPress;
476
+ $[164] = shouldReplayStaticPress;
477
+ $[165] = t31;
478
+ } else t31 = $[165];
479
+ let t32;
480
+ if ($[166] !== onStaticPress || $[167] !== shouldReplayStaticPress) {
481
+ t32 = (event_3) => {
482
+ if (onStaticPress && shouldReplayStaticPress(event_3.target) || isStaticPressActionTarget(event_3.target)) pendingStaticPressPointerIdRef.current = event_3.pointerId;
483
+ };
484
+ $[166] = onStaticPress;
485
+ $[167] = shouldReplayStaticPress;
486
+ $[168] = t32;
487
+ } else t32 = $[168];
488
+ let t33;
489
+ if ($[169] !== onStaticInteract || $[170] !== onStaticPress || $[171] !== shouldReplayStaticPress) {
490
+ t33 = (event_4) => {
491
+ if (pendingStaticPressPointerIdRef.current === event_4.pointerId) return;
492
+ if (onStaticPress && shouldReplayStaticPress(event_4.target)) {
493
+ pendingStaticPressPointerIdRef.current = event_4.pointerId;
494
+ return;
495
+ }
496
+ onStaticInteract?.(true, event_4.target);
497
+ };
498
+ $[169] = onStaticInteract;
499
+ $[170] = onStaticPress;
500
+ $[171] = shouldReplayStaticPress;
501
+ $[172] = t33;
502
+ } else t33 = $[172];
503
+ let t34;
504
+ if ($[173] === Symbol.for("react.memo_cache_sentinel")) {
505
+ t34 = (event_5) => {
506
+ if (pendingStaticPressPointerIdRef.current === event_5.pointerId) pendingStaticPressPointerIdRef.current = null;
507
+ };
508
+ $[173] = t34;
509
+ } else t34 = $[173];
510
+ let t35;
511
+ if ($[174] !== onStaticPress) {
512
+ t35 = (event_6) => {
513
+ if (pendingStaticPressPointerIdRef.current !== event_6.pointerId) return;
514
+ pendingStaticPressPointerIdRef.current = null;
515
+ onStaticPress?.();
516
+ };
517
+ $[174] = onStaticPress;
518
+ $[175] = t35;
519
+ } else t35 = $[175];
520
+ let t36;
521
+ if ($[176] !== dataAttributeProps || $[177] !== inputFrameContent || $[178] !== ref || $[179] !== t28 || $[180] !== t29 || $[181] !== t30 || $[182] !== t31 || $[183] !== t32 || $[184] !== t33 || $[185] !== t35) {
522
+ t36 = /* @__PURE__ */ jsx("div", {
523
+ ref,
524
+ ...dataAttributeProps,
525
+ className: t28,
526
+ tabIndex: t29,
527
+ onFocus: t30,
528
+ onClick: t31,
529
+ onPointerDownCapture: t32,
530
+ onPointerDown: t33,
531
+ onPointerCancel: t34,
532
+ onPointerUp: t35,
533
+ "data-rac": "",
534
+ children: inputFrameContent
535
+ });
536
+ $[176] = dataAttributeProps;
537
+ $[177] = inputFrameContent;
538
+ $[178] = ref;
539
+ $[179] = t28;
540
+ $[180] = t29;
541
+ $[181] = t30;
542
+ $[182] = t31;
543
+ $[183] = t32;
544
+ $[184] = t33;
545
+ $[185] = t35;
546
+ $[186] = t36;
547
+ } else t36 = $[186];
548
+ let t37;
549
+ if ($[187] !== as || $[188] !== dataAttributeProps || $[189] !== formFieldProps || $[190] !== formFieldRef || $[191] !== labelProps || $[192] !== t24 || $[193] !== t25 || $[194] !== t26 || $[195] !== t36) {
550
+ t37 = /* @__PURE__ */ jsx(FormField, {
551
+ ...formFieldProps,
552
+ ...dataAttributeProps,
553
+ ref: formFieldRef,
554
+ as,
555
+ labelProps,
556
+ tabIndex: t24,
557
+ onMouseEnter: t25,
558
+ onFocusCapture: t26,
559
+ children: t36
560
+ });
561
+ $[187] = as;
562
+ $[188] = dataAttributeProps;
563
+ $[189] = formFieldProps;
564
+ $[190] = formFieldRef;
565
+ $[191] = labelProps;
566
+ $[192] = t24;
567
+ $[193] = t25;
568
+ $[194] = t26;
569
+ $[195] = t36;
570
+ $[196] = t37;
571
+ } else t37 = $[196];
572
+ let t38;
573
+ if ($[197] !== as || $[198] !== error || $[199] !== t23 || $[200] !== t37) {
574
+ t38 = /* @__PURE__ */ jsx(TooltipWrapper, {
575
+ as,
576
+ error,
577
+ triggerTabIndex: t23,
578
+ children: t37
579
+ });
580
+ $[197] = as;
581
+ $[198] = error;
582
+ $[199] = t23;
583
+ $[200] = t37;
584
+ $[201] = t38;
585
+ } else t38 = $[201];
586
+ return t38;
587
+ };
588
+ var inputFrameContentGroupClassNames = {
589
+ "date-picker": "group/date-picker-content",
590
+ input: "group/input-content",
591
+ select: "group/select-content"
592
+ };
593
+ var renderIconVisual = (icon) => {
594
+ if (isValidElement(icon)) return icon;
595
+ return /* @__PURE__ */ jsx(icon, { className: "size-6 text-interactive-text-secondary-idle" });
596
+ };
597
+ var getInputFrameDataAttributeProps = (dataAttributes) => ({
598
+ "data-is-empty": dataAttributes?.dataIsEmpty || void 0,
599
+ "data-is-filled": dataAttributes?.dataIsFilled || void 0,
600
+ "data-is-dirty": dataAttributes?.dataIsDirty || void 0,
601
+ "data-is-required": dataAttributes?.dataIsRequired || void 0,
602
+ "data-is-disabled": dataAttributes?.dataIsDisabled || void 0,
603
+ "data-disabled": dataAttributes?.dataDisabled || void 0,
604
+ "data-has-search": dataAttributes?.dataHasSearch || void 0,
605
+ "data-invalid": dataAttributes?.dataInvalid || void 0,
606
+ "data-has-selection": dataAttributes?.dataHasSelection || void 0
607
+ });
608
+ function _temp(target_0) {
609
+ return target_0 instanceof Element && !!target_0.closest("[data-static-press-action]");
610
+ }
611
+ //#endregion
612
+ export { InputFrame };
@@ -1,4 +1,4 @@
1
- import { Ref } from 'react';
1
+ import { FocusEvent, Ref } from 'react';
2
2
  import { SliderProps as AriaSliderProps } from 'react-aria-components';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
  import { FormFieldProps } from '../FormField/FormField';
@@ -10,6 +10,7 @@ interface SliderBaseProps<IsRange extends boolean = false> extends FormFieldProp
10
10
  isRange?: IsRange;
11
11
  defaultValue?: SliderValue<IsRange>;
12
12
  value?: SliderValue<IsRange>;
13
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
13
14
  onChange?: (value: SliderValue<IsRange>) => void;
14
15
  }
15
16
  export type SliderProps<IsRange extends boolean = false> = SliderBaseProps<IsRange>;