@povio/ui 2.3.2-rc.3 → 2.3.3

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 (284) hide show
  1. package/dist/assets/icons/AlignCenter.js +11 -26
  2. package/dist/assets/icons/AlignLeft.js +11 -26
  3. package/dist/assets/icons/AlignLeftRight.js +11 -26
  4. package/dist/assets/icons/AlignRight.js +11 -26
  5. package/dist/assets/icons/ArrowDropDown.js +11 -26
  6. package/dist/assets/icons/ArrowDropUp.js +11 -26
  7. package/dist/assets/icons/ArrowLeft.js +11 -26
  8. package/dist/assets/icons/ArrowRight.js +11 -26
  9. package/dist/assets/icons/Bold.js +11 -26
  10. package/dist/assets/icons/BulletedList.js +11 -26
  11. package/dist/assets/icons/Calendar.js +13 -28
  12. package/dist/assets/icons/Check.js +13 -28
  13. package/dist/assets/icons/CheckCircle.js +11 -26
  14. package/dist/assets/icons/CheckboxCheckmark.js +14 -29
  15. package/dist/assets/icons/CheckboxIndeterminate.js +14 -29
  16. package/dist/assets/icons/ChevronDown.js +13 -28
  17. package/dist/assets/icons/ChevronLeft.js +13 -28
  18. package/dist/assets/icons/ChevronRight.js +13 -28
  19. package/dist/assets/icons/ChevronUp.js +13 -28
  20. package/dist/assets/icons/ChevronsLeft.js +13 -28
  21. package/dist/assets/icons/ChevronsRight.js +13 -28
  22. package/dist/assets/icons/Clock.js +11 -26
  23. package/dist/assets/icons/Close.js +11 -26
  24. package/dist/assets/icons/DateTime.js +14 -35
  25. package/dist/assets/icons/DragIndicator.js +11 -26
  26. package/dist/assets/icons/File.js +13 -28
  27. package/dist/assets/icons/Highlight.js +11 -26
  28. package/dist/assets/icons/HighlightOn.js +15 -49
  29. package/dist/assets/icons/Home.js +11 -26
  30. package/dist/assets/icons/Info.js +16 -37
  31. package/dist/assets/icons/Italic.js +11 -26
  32. package/dist/assets/icons/Link.js +11 -26
  33. package/dist/assets/icons/Menu.js +11 -26
  34. package/dist/assets/icons/NumberedList.js +11 -26
  35. package/dist/assets/icons/PointerHorizontal.js +11 -26
  36. package/dist/assets/icons/PointerVertical.js +11 -26
  37. package/dist/assets/icons/Search.js +11 -26
  38. package/dist/assets/icons/Send.js +13 -28
  39. package/dist/assets/icons/Strikethrough.js +11 -26
  40. package/dist/assets/icons/TextColor.js +14 -48
  41. package/dist/assets/icons/Today.js +11 -26
  42. package/dist/assets/icons/Underlined.js +13 -28
  43. package/dist/assets/icons/Upload.js +14 -35
  44. package/dist/assets/icons/Visibility.js +11 -26
  45. package/dist/assets/icons/VisibilityOff.js +11 -26
  46. package/dist/assets/icons/WarningFilled.js +13 -28
  47. package/dist/assets/locales/sl/translation.json.js +2 -2
  48. package/dist/components/Breadcrumbs/Breadcrumbs.js +56 -207
  49. package/dist/components/Menu/Menu.js +2 -18
  50. package/dist/components/Menu/MenuDesktop.js +7 -41
  51. package/dist/components/Menu/MenuItem.js +9 -32
  52. package/dist/components/Menu/MenuMobile.js +38 -97
  53. package/dist/components/Menu/MenuPopover.js +29 -105
  54. package/dist/components/buttons/IconButton/IconButton.js +8 -40
  55. package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +1 -2
  56. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +9 -34
  57. package/dist/components/buttons/PillButton/PillButton.js +17 -55
  58. package/dist/components/buttons/SplitButton/SplitButton.js +18 -103
  59. package/dist/components/buttons/TextButton/TextButton.js +8 -30
  60. package/dist/components/buttons/ToggleButton/ToggleButton.js +8 -28
  61. package/dist/components/buttons/shared/ButtonContent.js +22 -80
  62. package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -1
  63. package/dist/components/inputs/Checkbox/Checkbox.js +35 -201
  64. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +10 -24
  65. package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +0 -3
  66. package/dist/components/inputs/Checkbox/checkbox.cva.js +1 -2
  67. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +5 -12
  68. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +75 -368
  69. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +5 -12
  70. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +298 -506
  71. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +5 -13
  72. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +56 -273
  73. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +3 -6
  74. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +130 -606
  75. package/dist/components/inputs/DateTime/shared/Calendar.d.ts +2 -5
  76. package/dist/components/inputs/DateTime/shared/Calendar.js +119 -332
  77. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +2 -3
  78. package/dist/components/inputs/DateTime/shared/CalendarCell.js +102 -301
  79. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +2 -3
  80. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +33 -146
  81. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +93 -249
  82. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +137 -318
  83. package/dist/components/inputs/DateTime/shared/DateField.js +112 -311
  84. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +3 -13
  85. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +139 -383
  86. package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -15
  87. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +11 -96
  88. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +27 -81
  89. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +10 -59
  90. package/dist/components/inputs/DateTime/shared/MonthPicker.js +58 -103
  91. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +82 -193
  92. package/dist/components/inputs/DateTime/shared/TimeField.js +8 -27
  93. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +110 -279
  94. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +1 -4
  95. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +65 -210
  96. package/dist/components/inputs/DateTime/shared/YearPicker.js +68 -119
  97. package/dist/components/inputs/File/FileUpload.js +44 -87
  98. package/dist/components/inputs/File/FileUploadContainer.js +7 -15
  99. package/dist/components/inputs/File/InputUpload.js +79 -317
  100. package/dist/components/inputs/File/shared/FileCard.js +41 -104
  101. package/dist/components/inputs/File/shared/FileCardList.js +12 -47
  102. package/dist/components/inputs/File/shared/FileUploadContent.js +44 -175
  103. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +46 -149
  104. package/dist/components/inputs/File/shared/FileUploadContentError.js +93 -234
  105. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +97 -230
  106. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +55 -199
  107. package/dist/components/inputs/File/shared/InputUploadContent.js +34 -148
  108. package/dist/components/inputs/File/shared/InputUploadFilled.js +8 -49
  109. package/dist/components/inputs/File/shared/ProgressBar.js +9 -48
  110. package/dist/components/inputs/FormField/FormField.d.ts +3 -3
  111. package/dist/components/inputs/FormField/FormField.js +37 -119
  112. package/dist/components/inputs/FormField/FormFieldError.js +5 -25
  113. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
  114. package/dist/components/inputs/FormField/FormFieldHeader.js +22 -81
  115. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +7 -31
  116. package/dist/components/inputs/FormField/FormFieldHelper.js +6 -26
  117. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
  118. package/dist/components/inputs/FormField/FormFieldLabel.js +9 -40
  119. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +2 -5
  120. package/dist/components/inputs/Input/NumberInput/NumberInput.js +97 -447
  121. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +9 -48
  122. package/dist/components/inputs/Input/TextArea/TextArea.js +90 -305
  123. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +1 -3
  124. package/dist/components/inputs/Input/TextInput/TextInput.js +90 -419
  125. package/dist/components/inputs/Input/shared/InputContent.js +59 -192
  126. package/dist/components/inputs/Inputs/Form.js +11 -40
  127. package/dist/components/inputs/Inputs/InputItem.d.ts +21 -15
  128. package/dist/components/inputs/Inputs/InputItem.js +14 -69
  129. package/dist/components/inputs/Inputs/Inputs.js +11 -37
  130. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -3
  131. package/dist/components/inputs/RadioGroup/RadioGroup.js +61 -353
  132. package/dist/components/inputs/RadioGroup/radio.cva.d.ts +0 -17
  133. package/dist/components/inputs/RadioGroup/radio.cva.js +1 -42
  134. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +2 -6
  135. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +22 -214
  136. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +18 -3
  137. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +8 -104
  138. package/dist/components/inputs/Selection/Select/Select.d.ts +3 -7
  139. package/dist/components/inputs/Selection/Select/Select.js +18 -225
  140. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -8
  141. package/dist/components/inputs/Selection/shared/SelectBase.js +18 -69
  142. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
  143. package/dist/components/inputs/Selection/shared/SelectDesktop.js +138 -393
  144. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
  145. package/dist/components/inputs/Selection/shared/SelectInput.js +116 -330
  146. package/dist/components/inputs/Selection/shared/SelectInputTags.js +25 -99
  147. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
  148. package/dist/components/inputs/Selection/shared/SelectListBox.js +52 -164
  149. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +35 -85
  150. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +16 -69
  151. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +21 -70
  152. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +9 -58
  153. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
  154. package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -9
  155. package/dist/components/inputs/Selection/shared/select.context.d.ts +2 -3
  156. package/dist/components/inputs/Selection/shared/select.context.js +36 -67
  157. package/dist/components/inputs/Selection/shared/select.types.d.ts +2 -3
  158. package/dist/components/inputs/Selection/shared/useSelectItems.js +49 -109
  159. package/dist/components/inputs/Slider/Slider.d.ts +1 -2
  160. package/dist/components/inputs/Slider/Slider.js +76 -265
  161. package/dist/components/inputs/TextEditor/TextEditor.d.ts +0 -1
  162. package/dist/components/inputs/TextEditor/TextEditor.js +98 -447
  163. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +11 -37
  164. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +30 -102
  165. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +45 -194
  166. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +28 -88
  167. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +14 -48
  168. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +19 -66
  169. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +15 -49
  170. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +32 -92
  171. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +54 -126
  172. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +38 -141
  173. package/dist/components/inputs/Toggle/Toggle.d.ts +0 -1
  174. package/dist/components/inputs/Toggle/Toggle.js +37 -214
  175. package/dist/components/inputs/Toggle/toggle.cva.d.ts +0 -3
  176. package/dist/components/inputs/Toggle/toggle.cva.js +1 -2
  177. package/dist/components/inputs/shared/CheckContent.d.ts +1 -2
  178. package/dist/components/inputs/shared/CheckContent.js +11 -21
  179. package/dist/components/inputs/shared/InputClear.d.ts +1 -2
  180. package/dist/components/inputs/shared/InputClear.js +12 -88
  181. package/dist/components/inputs/shared/TooltipWrapper.js +11 -50
  182. package/dist/components/inputs/shared/input.cva.d.ts +0 -10
  183. package/dist/components/inputs/shared/input.cva.js +4 -32
  184. package/dist/components/navigation/Accordion/Accordion.js +22 -69
  185. package/dist/components/navigation/Accordion/AccordionItem.js +41 -86
  186. package/dist/components/navigation/Stepper/Stepper.js +22 -67
  187. package/dist/components/navigation/Stepper/StepperItem.js +31 -104
  188. package/dist/components/navigation/Stepper/StepperSeparator.js +5 -23
  189. package/dist/components/overlays/ActionModal/ActionModal.js +35 -169
  190. package/dist/components/overlays/BottomSheet/BottomSheet.js +23 -96
  191. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +8 -48
  192. package/dist/components/overlays/Drawer/Drawer.js +20 -62
  193. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +27 -83
  194. package/dist/components/overlays/Tooltip/Tooltip.js +28 -137
  195. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +12 -37
  196. package/dist/components/segment/Segment.js +57 -218
  197. package/dist/components/segment/SegmentItem.js +10 -67
  198. package/dist/components/shared/pagination/Pagination.js +22 -108
  199. package/dist/components/shared/pagination/PaginationList.js +64 -167
  200. package/dist/components/status/Alert/Alert.js +30 -97
  201. package/dist/components/status/Loader/Loader.js +22 -77
  202. package/dist/components/status/Toast/Toast.js +13 -21
  203. package/dist/components/status/Toast/useToast.js +57 -62
  204. package/dist/components/table/ColumnConfig.js +54 -158
  205. package/dist/components/table/InfiniteTable.js +16 -67
  206. package/dist/components/table/PaginatedTable.js +18 -84
  207. package/dist/components/table/Table.js +27 -28
  208. package/dist/components/text/Link/Link.js +7 -19
  209. package/dist/components/text/Typography/Typography.js +8 -23
  210. package/dist/config/confirmation.context.js +1 -1
  211. package/dist/config/link.context.js +9 -23
  212. package/dist/config/router.context.js +16 -42
  213. package/dist/config/theme.context.js +45 -98
  214. package/dist/config/uiConfig.context.d.ts +6 -19
  215. package/dist/config/uiConfig.context.js +14 -67
  216. package/dist/config/uiStyle.context.d.ts +4 -27
  217. package/dist/config/uiStyle.context.js +5 -15
  218. package/dist/helpers/dynamicInputs.d.ts +5 -5
  219. package/dist/helpers/dynamicInputs.js +0 -3
  220. package/dist/hooks/useBreakpoint.js +3 -16
  221. package/dist/hooks/useDebounceCallback.js +17 -51
  222. package/dist/hooks/useFilters.js +64 -125
  223. package/dist/hooks/useForm.js +8 -42
  224. package/dist/hooks/useFormAutosave.js +30 -101
  225. package/dist/hooks/useIntersectionObserver.d.ts +1 -1
  226. package/dist/hooks/useIntersectionObserver.js +24 -91
  227. package/dist/hooks/useLocalStorage.js +10 -43
  228. package/dist/hooks/useLongPressRepeat.js +20 -55
  229. package/dist/hooks/usePagination.js +19 -49
  230. package/dist/hooks/useScrollableListBox.js +16 -37
  231. package/dist/hooks/useSorting.js +28 -69
  232. package/dist/hooks/useStateAndRef.js +7 -21
  233. package/dist/hooks/useTableColumnConfig.js +31 -124
  234. package/dist/hooks/useTranslationMemo.js +5 -25
  235. package/dist/index.d.ts +0 -7
  236. package/dist/index.js +2 -4
  237. package/dist/tw-ui-plugin.js +0 -6
  238. package/dist/utils/date-time.utils.d.ts +10 -38
  239. package/dist/utils/date-time.utils.js +22 -134
  240. package/package.json +1 -1
  241. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -5
  242. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -7
  243. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -13
  244. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
  245. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -32
  246. package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
  247. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
  248. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -39
  249. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -85
  250. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
  251. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -6
  252. package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -11
  253. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -45
  254. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -571
  255. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -35
  256. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -575
  257. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -4
  258. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
  259. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
  260. package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
  261. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +0 -36
  262. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -14
  263. package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -173
  264. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
  265. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -47
  266. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -12
  267. package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -36
  268. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -3
  269. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
  270. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -5
  271. package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -5
  272. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
  273. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -37
  274. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
  275. package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -82
  276. package/dist/components/inputs/Skeleton/InputFrame.js +0 -548
  277. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -4
  278. package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
  279. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -14
  280. package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -100
  281. package/dist/hooks/useQueryAutocomplete.d.ts +0 -14
  282. package/dist/hooks/useQueryAutocomplete.js +0 -57
  283. package/dist/utils/query.utils.d.ts +0 -4
  284. package/dist/utils/query.utils.js +0 -8
@@ -1,40 +1,32 @@
1
- import { FocusEvent, Ref } from 'react';
1
+ import { Ref } from 'react';
2
2
  import { DateValue } from 'react-aria';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
  import { DatePickerStateOptions } from 'react-stately';
5
5
  import { DatePickerInputHandle } from '../shared/DatePickerInput';
6
- import { DatePickerTodayIcon, DatePickerTodayIconButtonComponent, DatePickerTodayIconButtonSize, DatePickerTodayIconPlacement } from '../shared/datePicker.types';
7
6
  import { FormFieldProps } from '../../FormField/FormField';
8
7
  import { ControlProps } from '../../shared/form.types';
9
8
  import { InputVariantProps } from '../../shared/input.cva';
10
- interface DateTimePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<DatePickerStateOptions<DateValue>, "granularity" | "shouldCloseOnSelect" | "label" | "onBlur"> {
9
+ interface DateTimePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<DatePickerStateOptions<DateValue>, "granularity" | "shouldCloseOnSelect" | "label"> {
11
10
  ref?: Ref<DatePickerInputHandle & HTMLDivElement>;
12
11
  disableDropdown?: boolean;
13
12
  isTimeOptional?: boolean;
14
13
  isClearable?: boolean;
15
- todayIcon?: DatePickerTodayIcon;
16
- todayIconButtonSize?: DatePickerTodayIconButtonSize;
17
- todayIconButtonComponent?: DatePickerTodayIconButtonComponent;
18
- todayIconPlacement?: DatePickerTodayIconPlacement;
14
+ todayIcon?: boolean;
19
15
  isDirty?: boolean;
20
16
  disableManualEntry?: boolean;
21
- autoFixYear?: boolean;
22
- setDateValueOnDateSelection?: boolean;
23
17
  placeholder?: string;
24
18
  inputClassName?: string;
25
19
  shouldUpdateDateOnMonthYearChange?: boolean;
26
20
  timeZone?: string;
21
+ autoFixYear?: boolean;
27
22
  format?: string;
28
- onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
29
- fireBlurOnChange?: boolean;
30
23
  }
31
24
  export interface DateTimePickerProps extends Omit<DateTimePickerBaseProps, "value" | "onChange"> {
32
25
  value?: string | null;
33
26
  onChange?: (value: string | null) => void;
34
27
  fullIso?: boolean;
35
- renderStaticInput?: boolean;
36
28
  timeZone?: string;
37
29
  }
38
30
  export type ControlledDateTimePickerProps<TFieldValues extends FieldValues> = ControlProps<DateTimePickerProps, TFieldValues>;
39
- export declare const DateTimePicker: <TFieldValues extends FieldValues>({ fullIso, renderStaticInput, ...props }: ControlledDateTimePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
31
+ export declare const DateTimePicker: <TFieldValues extends FieldValues>({ fullIso, ...props }: ControlledDateTimePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
40
32
  export {};
@@ -1,47 +1,24 @@
1
- import { UIStyle } from "../../../../config/uiStyle.context.js";
2
1
  import { UIConfig } from "../../../../config/uiConfig.context.js";
3
2
  import { Calendar } from "../shared/Calendar.js";
4
3
  import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
5
- import { datePickerInputContentRow } from "../shared/datePickerInput.cva.js";
6
- import { renderDatePickerTodayIcon } from "../shared/datePickerTodayIcon.js";
7
4
  import { DatePickerInput } from "../shared/DatePickerInput.js";
8
5
  import { DateTimeDialog } from "../shared/DateTimeDialog.js";
9
6
  import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
10
- import { getStaticCalendarDateTimeSegments } from "../shared/staticDateTimeSegments.js";
11
7
  import { FormField } from "../../FormField/FormField.js";
12
8
  import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
13
- import { InputFrame } from "../../Skeleton/InputFrame.js";
14
- import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
15
- import { useDebounceCallback } from "../../../../hooks/useDebounceCallback.js";
16
- import { c } from "react/compiler-runtime";
17
9
  import { jsx, jsxs } from "react/jsx-runtime";
18
- import { clsx } from "clsx";
19
- import { useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
10
+ import { useEffect, useImperativeHandle, useMemo, useRef } from "react";
20
11
  import { useDatePicker, useLocale } from "react-aria";
21
12
  import { mergeRefs } from "@react-aria/utils";
22
13
  import { Controller } from "react-hook-form";
23
- import { Time, createCalendar, toCalendarDate, toCalendarDateTime, today } from "@internationalized/date";
14
+ import { Time, createCalendar, getLocalTimeZone, now, toCalendarDateTime, today } from "@internationalized/date";
24
15
  import { useCalendarState, useDatePickerState } from "react-stately";
25
16
  //#region src/components/inputs/DateTime/DateTimePicker/DateTimePicker.tsx
26
17
  var DateTimePickerBase = (props) => {
27
18
  const ui = UIConfig.useConfig();
28
- const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, onBlur, value, disableDropdown, isTimeOptional, placeholder, inputClassName, hideLabel: hideLabelProp, variant: variantProp, as: asProp, size: sizeProp, isClearable: isClearableProp, todayIcon: todayIconProp, todayIconButtonSize: todayIconButtonSizeProp, todayIconButtonComponent: todayIconButtonComponentProp, todayIconPlacement: todayIconPlacementProp, shouldForceLeadingZeros: shouldForceLeadingZerosProp, disableManualEntry: disableManualEntryProp, shouldUpdateDateOnMonthYearChange: shouldUpdateDateOnMonthYearChangeProp, timeZone: _timeZone, autoFixYear: autoFixYearProp, fireBlurOnChange: fireBlurOnChangeProp, format, setDateValueOnDateSelection: setDateValueOnDateSelectionProp, ...rest } = props;
29
- const hideLabel = hideLabelProp ?? ui.input.hideLabel;
30
- const variant = variantProp ?? ui.input.variant;
31
- const as = asProp ?? ui.input.as;
32
- const size = sizeProp ?? ui.input.size;
33
- const isClearable = isClearableProp ?? ui.input.isClearable;
34
- const todayIcon = todayIconProp ?? ui.dateInput.todayIcon;
35
- const todayIconButtonSize = todayIconButtonSizeProp ?? ui.dateInput.todayIconButtonSize;
36
- const todayIconButtonComponent = todayIconButtonComponentProp ?? ui.dateInput.todayIconButtonComponent;
37
- const todayIconPlacement = todayIconPlacementProp ?? ui.dateInput.todayIconPlacement;
38
- const shouldForceLeadingZeros = shouldForceLeadingZerosProp ?? ui.dateInput.shouldForceLeadingZeros;
39
- const disableManualEntry = disableManualEntryProp ?? ui.dateInput.disableManualEntry;
40
- const shouldUpdateDateOnMonthYearChange = shouldUpdateDateOnMonthYearChangeProp ?? ui.dateInput.shouldUpdateDateOnMonthYearChange;
41
- const autoFixYear = autoFixYearProp ?? ui.dateInput.autoFixYear;
42
- const fireBlurOnChange = fireBlurOnChangeProp ?? ui.dateInput.fireBlurOnChange;
43
- const setDateValueOnDateSelection = setDateValueOnDateSelectionProp ?? ui.dateInput.setDateValueOnDateSelection;
44
- const effectiveTimeZone = "UTC";
19
+ const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, isTimeOptional, placeholder, inputClassName, hideLabel = ui.input.hideLabel, variant = ui.input.variant, as = ui.input.as, size = ui.input.size, isClearable = ui.input.isClearable, todayIcon = ui.dateInput.todayIcon, shouldForceLeadingZeros = ui.dateInput.shouldForceLeadingZeros, disableManualEntry = ui.dateInput.disableManualEntry, shouldUpdateDateOnMonthYearChange = ui.dateInput.shouldUpdateDateOnMonthYearChange, timeZone, autoFixYear = ui.dateInput.autoFixYear, format, ...rest } = props;
20
+ let effectiveTimeZone = getLocalTimeZone();
21
+ if (timeZone) effectiveTimeZone = timeZone;
45
22
  const formFieldProps = {
46
23
  error,
47
24
  label,
@@ -59,20 +36,12 @@ var DateTimePickerBase = (props) => {
59
36
  const datePickerRef = useMemo(() => ({ get current() {
60
37
  return datePickerInputRef.current?.getContainer?.() || null;
61
38
  } }), []);
62
- useImperativeHandle(ref, () => ({
63
- clear: () => {
64
- datePickerInputRef.current?.clear();
65
- },
66
- getContainer: () => datePickerInputRef.current?.getContainer?.() ?? null
67
- }));
68
- const handleBlur = (val) => {
69
- onBlur?.({ target: { value: val } });
70
- };
71
- const { callback: debouncedBlur } = useDebounceCallback(handleBlur, { delay: 500 });
72
- const normalizedValue = value ?? null;
39
+ useImperativeHandle(ref, () => ({ clear: () => {
40
+ datePickerInputRef.current?.clear();
41
+ } }));
73
42
  const dialogState = useDatePickerState({
74
43
  ...rest,
75
- defaultValue: normalizedValue ?? rest.defaultValue ?? null,
44
+ defaultValue: value || rest.defaultValue,
76
45
  shouldCloseOnSelect: false,
77
46
  granularity: "minute",
78
47
  hideTimeZone: true,
@@ -84,12 +53,11 @@ var DateTimePickerBase = (props) => {
84
53
  const state = useDatePickerState({
85
54
  ...rest,
86
55
  shouldForceLeadingZeros,
87
- value: normalizedValue,
88
- onChange: (val_0) => {
89
- onChange?.(val_0);
90
- dialogState.setValue(val_0);
91
- calendarState.setFocusedDate(val_0 || today(effectiveTimeZone));
92
- if (fireBlurOnChange) debouncedBlur(val_0);
56
+ value,
57
+ onChange: (val) => {
58
+ onChange?.(val);
59
+ dialogState.setValue(val);
60
+ calendarState.setFocusedDate(val || today(effectiveTimeZone));
93
61
  },
94
62
  shouldCloseOnSelect: false,
95
63
  granularity: "minute",
@@ -125,10 +93,8 @@ var DateTimePickerBase = (props) => {
125
93
  labelProps
126
94
  };
127
95
  const onApply = () => {
128
- const newValue = dialogState.value;
129
- state.setValue(newValue);
96
+ state.setValue(dialogState.value);
130
97
  state.toggle();
131
- if (fireBlurOnChange) handleBlur(newValue);
132
98
  };
133
99
  const onMonthYearChange = (selectedDate) => {
134
100
  if (!shouldUpdateDateOnMonthYearChange) return;
@@ -146,9 +112,8 @@ var DateTimePickerBase = (props) => {
146
112
  calendarState.setFocusedDate(selectedDate);
147
113
  };
148
114
  const onTodayPress = () => {
149
- const currentValue = DateTimeUtils.getCurrentWallClockCalendarDateTime();
150
- dialogState.setValue(currentValue);
151
- calendarState.setFocusedDate(toCalendarDate(currentValue));
115
+ dialogState.setValue(toCalendarDateTime(now(effectiveTimeZone)));
116
+ calendarState.setFocusedDate(today(effectiveTimeZone));
152
117
  };
153
118
  const onOpenChange = (isOpen) => {
154
119
  state.toggle();
@@ -161,7 +126,7 @@ var DateTimePickerBase = (props) => {
161
126
  dialogState.setValue(state.value);
162
127
  return;
163
128
  }
164
- const textValue = e?.currentTarget?.textContent ?? null;
129
+ const textValue = e.currentTarget.textContent;
165
130
  const dateTimeValue = DateTimeUtils.formatTextDateToCalendarDateTime(textValue, effectiveTimeZone, locale);
166
131
  if (dateTimeValue) {
167
132
  state.setValue(dateTimeValue);
@@ -185,15 +150,11 @@ var DateTimePickerBase = (props) => {
185
150
  groupProps,
186
151
  fieldProps: {
187
152
  ...fieldProps,
188
- onBlur: (e_0) => {
189
- fieldProps.onBlur?.(e_0);
190
- handleBlur(state.value);
191
- onInputBlur(e_0);
153
+ onBlur: (e) => {
154
+ fieldProps.onBlur?.(e);
155
+ onInputBlur(e);
192
156
  }
193
157
  },
194
- fieldValue: normalizedValue,
195
- isValueControlled: true,
196
- hasValue: normalizedValue != null,
197
158
  buttonProps,
198
159
  isDirty,
199
160
  isDisabled,
@@ -205,19 +166,15 @@ var DateTimePickerBase = (props) => {
205
166
  isClearable,
206
167
  headerProps,
207
168
  todayIcon,
208
- todayIconButtonSize,
209
- todayIconButtonComponent,
210
- todayIconPlacement,
211
169
  isRequired,
212
170
  disableManualEntry,
213
- autoFixYear,
214
171
  placeholder,
215
172
  onOpenDropdown: () => state.toggle(),
216
173
  className: inputClassName,
217
174
  timeZone: effectiveTimeZone,
175
+ autoFixYear,
218
176
  isTimeOptional,
219
- format,
220
- fireBlurOnChange
177
+ format
221
178
  }), (!disableDropdown || disableManualEntry) && /* @__PURE__ */ jsx(DateTimeDialog, {
222
179
  footer: /* @__PURE__ */ jsx(DateTimeDialogFooter, {
223
180
  isDisabled,
@@ -237,220 +194,46 @@ var DateTimePickerBase = (props) => {
237
194
  datePickerState: dialogState,
238
195
  onApply,
239
196
  onMonthYearChange,
240
- granularity: "day",
241
- setDateValueOnDateSelection
197
+ granularity: "day"
242
198
  })
243
199
  })]
244
200
  })
245
201
  });
246
202
  };
247
- var DateTimePickerInner = (t0) => {
248
- const $ = c(9);
249
- const { fullIso: t1, renderStaticInput, isFormControlDisabled, ...props } = t0;
250
- const ui = UIConfig.useConfig();
251
- const datePickerInputContentRowCva = UIStyle.useCva("datePickerInput.contentRowCva", datePickerInputContentRow);
252
- const { locale } = useLocale();
253
- const shouldForceLeadingZeros = props.shouldForceLeadingZeros ?? ui.dateInput.shouldForceLeadingZeros;
254
- const [renderInput, setRenderInput] = useState(!(renderStaticInput ?? ui.renderStaticInput));
255
- const inputRef = useRef(null);
256
- const { renderRealInput } = useStaticInputHandoff({
257
- inputRef,
258
- renderInput,
259
- setRenderInput,
260
- getFocusTarget: _temp
261
- });
262
- const normalizedValue = props.value ?? null;
263
- const formatDateValue = _temp2;
264
- const parseDateValue = _temp3;
265
- if (!renderInput) {
266
- const dateTimeValue = normalizedValue ? parseDateValue(normalizedValue) : null;
267
- const as = props.as ?? ui.input.as;
268
- const size = props.size ?? ui.input.size;
269
- const isDisabled = isFormControlDisabled || !!props.isDisabled;
270
- const todayIcon = props.todayIcon ?? ui.dateInput.todayIcon;
271
- const todayIconButtonSize = props.todayIconButtonSize ?? ui.dateInput.todayIconButtonSize;
272
- const todayIconButtonComponent = props.todayIconButtonComponent ?? ui.dateInput.todayIconButtonComponent;
273
- const todayIconPlacement = props.todayIconPlacement ?? ui.dateInput.todayIconPlacement;
274
- const staticTodayIcon = renderDatePickerTodayIcon(todayIcon, {
275
- isDisabled,
276
- renderStatic: true,
277
- size: todayIconButtonSize,
278
- todayIconButtonComponent
279
- });
280
- const disableManualEntry = props.disableManualEntry ?? ui.dateInput.disableManualEntry;
281
- const showDropdown = !props.disableDropdown || disableManualEntry;
282
- const staticSegments = getStaticCalendarDateTimeSegments({
283
- value: dateTimeValue,
284
- locale,
285
- shouldForceLeadingZeros,
286
- isDisabled,
287
- hidePlaceholder: as === "floating" && !dateTimeValue,
288
- disableManualEntry,
289
- placeholder: props.placeholder
290
- });
291
- return /* @__PURE__ */ jsx(InputFrame, {
292
- ...props,
293
- isDisabled,
294
- className: clsx("group relative inline-flex w-full flex-col text-left", props.className),
295
- inputClassName: clsx("min-w-input-width-min-width", props.inputClassName),
296
- contentClassName: "pr-0!",
297
- contentWrapperClassName: datePickerInputContentRowCva({ size }),
298
- contentGroup: "date-picker",
299
- labelPlacement: "content-row",
300
- dataAttributes: {
301
- dataIsEmpty: dateTimeValue == null,
302
- dataIsFilled: dateTimeValue != null,
303
- dataIsDirty: props.isDirty,
304
- dataIsRequired: props.isRequired,
305
- dataIsDisabled: isDisabled,
306
- dataDisabled: isDisabled,
307
- dataInvalid: !!props.error,
308
- dataHasSelection: dateTimeValue != null
309
- },
310
- renderStatic: true,
311
- onStaticInteract: renderRealInput,
312
- actionContent: staticTodayIcon,
313
- actionContentPlacement: todayIconPlacement === "fieldLabel" ? "content-row" : "content-wrapper",
314
- showClear: dateTimeValue != null,
315
- wrapContentAndTrailing: true,
316
- contentAndTrailingClassName: "gap-2!",
317
- trailingClassName: "py-0! pl-0!",
318
- action: showDropdown ? {
319
- icon: ui.dateInput.dateTimeIcon,
320
- onClick: _temp4,
321
- altText: ""
322
- } : void 0,
323
- children: staticSegments
324
- });
325
- }
326
- const T0 = DateTimePickerBase;
327
- const t2 = mergeRefs(props.ref, inputRef);
328
- const t3 = parseDateValue(normalizedValue);
329
- let t4;
330
- if ($[0] !== formatDateValue || $[1] !== props) {
331
- t4 = (value) => props.onChange?.(formatDateValue(value));
332
- $[0] = formatDateValue;
333
- $[1] = props;
334
- $[2] = t4;
335
- } else t4 = $[2];
336
- let t5;
337
- if ($[3] !== T0 || $[4] !== props || $[5] !== t2 || $[6] !== t3 || $[7] !== t4) {
338
- t5 = /* @__PURE__ */ jsx(T0, {
339
- ...props,
340
- ref: t2,
341
- value: t3,
342
- onChange: t4
343
- });
344
- $[3] = T0;
345
- $[4] = props;
346
- $[5] = t2;
347
- $[6] = t3;
348
- $[7] = t4;
349
- $[8] = t5;
350
- } else t5 = $[8];
351
- return t5;
352
- };
353
- var DateTimePicker = (t0) => {
354
- const $ = c(24);
355
- let props;
356
- let renderStaticInput;
357
- let t1;
358
- if ($[0] !== t0) {
359
- ({fullIso: t1, renderStaticInput, ...props} = t0);
360
- $[0] = t0;
361
- $[1] = props;
362
- $[2] = renderStaticInput;
363
- $[3] = t1;
364
- } else {
365
- props = $[1];
366
- renderStaticInput = $[2];
367
- t1 = $[3];
368
- }
369
- const fullIso = t1 === void 0 ? true : t1;
203
+ var DateTimePicker = ({ fullIso = true, ...props }) => {
204
+ let effectiveTimeZone = getLocalTimeZone();
205
+ if (props.timeZone) effectiveTimeZone = props.timeZone;
206
+ const formatDateValue = (dateValue) => {
207
+ if (dateValue === null) return null;
208
+ if (fullIso) return DateTimeUtils.fromDateValueToISO(dateValue, effectiveTimeZone);
209
+ return DateTimeUtils.fromDateValueToISO(dateValue, effectiveTimeZone);
210
+ };
211
+ const parseDateValue = (isoString) => {
212
+ if (isoString == null) return isoString;
213
+ return DateTimeUtils.fromUTCISOToCalendarDateTime(isoString, effectiveTimeZone);
214
+ };
370
215
  if ("formControl" in props && props.formControl) {
371
- let formControl;
372
- let innerProps;
373
- let ref;
374
- if ($[4] !== props) {
375
- ({formControl, ref, ...innerProps} = props);
376
- $[4] = props;
377
- $[5] = formControl;
378
- $[6] = innerProps;
379
- $[7] = ref;
380
- } else {
381
- formControl = $[5];
382
- innerProps = $[6];
383
- ref = $[7];
384
- }
385
- const controlWithOptions = formControl.control;
386
- let t2;
387
- if ($[8] !== controlWithOptions._options?.disabled || $[9] !== fullIso || $[10] !== innerProps || $[11] !== props.error || $[12] !== props.isDisabled || $[13] !== ref || $[14] !== renderStaticInput) {
388
- t2 = (t3) => {
389
- const { field, fieldState: t4 } = t3;
390
- const { error, isDirty } = t4;
391
- return /* @__PURE__ */ jsx(DateTimePickerInner, {
392
- ...innerProps,
393
- ref: mergeRefs(ref, field.ref),
394
- value: field.value ?? null,
395
- onChange: field.onChange,
396
- onBlur: field.onBlur,
397
- isDirty,
398
- isDisabled: field.disabled || props.isDisabled,
399
- isFormControlDisabled: !!controlWithOptions._options?.disabled,
400
- error: props.error ?? error?.message,
401
- fullIso,
402
- renderStaticInput
403
- });
404
- };
405
- $[8] = controlWithOptions._options?.disabled;
406
- $[9] = fullIso;
407
- $[10] = innerProps;
408
- $[11] = props.error;
409
- $[12] = props.isDisabled;
410
- $[13] = ref;
411
- $[14] = renderStaticInput;
412
- $[15] = t2;
413
- } else t2 = $[15];
414
- let t3;
415
- if ($[16] !== formControl.control || $[17] !== formControl.name || $[18] !== t2) {
416
- t3 = /* @__PURE__ */ jsx(Controller, {
417
- control: formControl.control,
418
- name: formControl.name,
419
- render: t2
420
- });
421
- $[16] = formControl.control;
422
- $[17] = formControl.name;
423
- $[18] = t2;
424
- $[19] = t3;
425
- } else t3 = $[19];
426
- return t3;
427
- }
428
- let t2;
429
- if ($[20] !== fullIso || $[21] !== props || $[22] !== renderStaticInput) {
430
- t2 = /* @__PURE__ */ jsx(DateTimePickerInner, {
431
- ...props,
432
- fullIso,
433
- renderStaticInput
216
+ const { formControl, ref, ...innerProps } = props;
217
+ return /* @__PURE__ */ jsx(Controller, {
218
+ control: formControl.control,
219
+ name: formControl.name,
220
+ render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(DateTimePickerBase, {
221
+ ...innerProps,
222
+ ref: mergeRefs(ref, field.ref),
223
+ value: parseDateValue(field.value),
224
+ onChange: (value) => field.onChange(formatDateValue(value)),
225
+ onBlur: field.onBlur,
226
+ isDirty,
227
+ isDisabled: field.disabled || props.isDisabled,
228
+ error: props.error ?? error?.message
229
+ })
434
230
  });
435
- $[20] = fullIso;
436
- $[21] = props;
437
- $[22] = renderStaticInput;
438
- $[23] = t2;
439
- } else t2 = $[23];
440
- return t2;
231
+ }
232
+ return /* @__PURE__ */ jsx(DateTimePickerBase, {
233
+ ...props,
234
+ value: parseDateValue(props.value),
235
+ onChange: (value) => props.onChange?.(formatDateValue(value))
236
+ });
441
237
  };
442
- function _temp(input) {
443
- const container = input.getContainer?.() ?? input;
444
- return container instanceof HTMLElement ? container.querySelector("input, button, [tabindex]:not([tabindex='-1'])") : null;
445
- }
446
- function _temp2(dateValue) {
447
- if (dateValue === null) return null;
448
- return DateTimeUtils.fromDateValueFieldsToUTCISO(dateValue);
449
- }
450
- function _temp3(isoString) {
451
- if (isoString == null) return null;
452
- return DateTimeUtils.fromUTCISOToCalendarDateTime(isoString, "UTC");
453
- }
454
- function _temp4() {}
455
238
  //#endregion
456
239
  export { DateTimePicker };
@@ -1,10 +1,10 @@
1
- import { Ref, FocusEvent } from 'react';
1
+ import { Ref } from 'react';
2
2
  import { AriaTimeFieldProps, TimeValue } from 'react-aria';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
  import { FormFieldProps } from '../../FormField/FormField';
5
5
  import { ControlProps } from '../../shared/form.types';
6
6
  import { InputVariantProps } from '../../shared/input.cva';
7
- interface TimePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<AriaTimeFieldProps<TimeValue>, "label" | "onBlur"> {
7
+ interface TimePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<AriaTimeFieldProps<TimeValue>, "label"> {
8
8
  ref?: Ref<HTMLDivElement>;
9
9
  disableDropdown?: boolean;
10
10
  date?: string | null;
@@ -13,16 +13,13 @@ interface TimePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<Ar
13
13
  disableManualEntry?: boolean;
14
14
  placeholder?: string;
15
15
  inputClassName?: string;
16
- onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
17
- fireBlurOnChange?: boolean;
18
16
  }
19
17
  export interface TimePickerProps extends Omit<TimePickerBaseProps, "value" | "onChange"> {
20
18
  value?: string | null;
21
19
  onChange?: (value: string | null) => void;
22
20
  fullIso?: boolean;
23
21
  timeZone?: string;
24
- renderStaticInput?: boolean;
25
22
  }
26
23
  export type ControlledTimePickerProps<TFieldValues extends FieldValues> = ControlProps<TimePickerProps, TFieldValues>;
27
- export declare const TimePicker: <TFieldValues extends FieldValues>({ renderStaticInput, ...props }: ControlledTimePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const TimePicker: <TFieldValues extends FieldValues>(props: ControlledTimePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
28
25
  export {};