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

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 (280) hide show
  1. package/dist/assets/locales/en/translation.json.d.ts +158 -0
  2. package/dist/assets/locales/sl/translation.json.d.ts +154 -0
  3. package/dist/components/Breadcrumbs/Breadcrumbs.js +7 -7
  4. package/dist/components/Menu/MenuDesktop.js +1 -1
  5. package/dist/components/Menu/MenuItem.js +4 -4
  6. package/dist/components/Menu/MenuMobile.js +5 -5
  7. package/dist/components/Menu/MenuPopover.js +2 -2
  8. package/dist/components/buttons/Button/Button.js +1 -1
  9. package/dist/components/buttons/PillButton/PillButton.js +4 -4
  10. package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
  11. package/dist/components/buttons/SplitButton/SplitButton.js +3 -3
  12. package/dist/components/buttons/shared/ButtonContent.js +2 -2
  13. package/dist/components/buttons/shared/buttonContent.cva.d.ts +1 -1
  14. package/dist/components/inputs/Checkbox/Checkbox.js +2 -2
  15. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +2 -3
  16. package/dist/components/inputs/Checkbox/CheckboxGroup.js +2 -2
  17. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +1 -0
  18. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +5 -3
  19. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +1 -0
  20. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +5 -3
  21. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +1 -0
  22. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +9 -6
  23. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -0
  24. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +199 -193
  25. package/dist/components/inputs/DateTime/shared/Calendar.js +1 -1
  26. package/dist/components/inputs/DateTime/shared/CalendarCell.js +1 -1
  27. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +1 -1
  28. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +7 -10
  29. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +8 -12
  30. package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
  31. package/dist/components/inputs/DateTime/shared/DateField.js +4 -4
  32. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -1
  33. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +8 -7
  34. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +3 -3
  35. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +2 -2
  36. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +1 -1
  37. package/dist/components/inputs/DateTime/shared/MonthPicker.js +2 -2
  38. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +2 -2
  39. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +4 -5
  40. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -1
  41. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +49 -47
  42. package/dist/components/inputs/DateTime/shared/YearPicker.js +2 -2
  43. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +46 -1
  44. package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +1 -1
  45. package/dist/components/inputs/File/FileUpload.js +3 -3
  46. package/dist/components/inputs/File/InputUpload.js +2 -2
  47. package/dist/components/inputs/File/shared/FileCard.js +1 -1
  48. package/dist/components/inputs/File/shared/FileCardList.js +1 -1
  49. package/dist/components/inputs/File/shared/FileUploadContent.js +1 -1
  50. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -3
  51. package/dist/components/inputs/File/shared/FileUploadContentError.js +5 -6
  52. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +5 -6
  53. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -5
  54. package/dist/components/inputs/File/shared/InputUploadContent.js +4 -4
  55. package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -3
  56. package/dist/components/inputs/FormField/FormFieldError.js +1 -1
  57. package/dist/components/inputs/FormField/FormFieldHeader.js +4 -4
  58. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +3 -3
  59. package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
  60. package/dist/components/inputs/FormField/FormFieldLabel.js +2 -2
  61. package/dist/components/inputs/Input/NumberInput/NumberInput.js +90 -88
  62. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +2 -1
  63. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +265 -254
  64. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +1 -0
  65. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +7 -6
  66. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +3 -4
  67. package/dist/components/inputs/Input/TextArea/TextArea.d.ts +1 -0
  68. package/dist/components/inputs/Input/TextArea/TextArea.js +100 -99
  69. package/dist/components/inputs/Input/TextInput/TextInput.js +93 -91
  70. package/dist/components/inputs/Input/shared/InputContent.d.ts +2 -1
  71. package/dist/components/inputs/Input/shared/InputContent.js +50 -48
  72. package/dist/components/inputs/Inputs/Form.js +1 -1
  73. package/dist/components/inputs/Inputs/InputItem.d.ts +1 -1
  74. package/dist/components/inputs/Inputs/InputItem.js +1 -1
  75. package/dist/components/inputs/RadioGroup/RadioGroup.js +2 -2
  76. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +3 -3
  77. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +1 -1
  78. package/dist/components/inputs/Selection/Select/QuerySelect.js +1 -1
  79. package/dist/components/inputs/Selection/Select/Select.js +4 -4
  80. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -0
  81. package/dist/components/inputs/Selection/shared/SelectDesktop.js +58 -56
  82. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
  83. package/dist/components/inputs/Selection/shared/SelectInput.js +57 -56
  84. package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
  85. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +2 -2
  86. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +2 -2
  87. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +1 -1
  88. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +1 -1
  89. package/dist/components/inputs/Selection/shared/SelectMobile.js +5 -4
  90. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +3 -3
  91. package/dist/components/inputs/Selection/shared/select.context.js +1 -1
  92. package/dist/components/inputs/Skeleton/InputFrame.d.ts +1 -0
  93. package/dist/components/inputs/Skeleton/InputFrame.js +10 -7
  94. package/dist/components/inputs/Slider/Slider.js +2 -2
  95. package/dist/components/inputs/TextEditor/TextEditor.js +2 -2
  96. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +2 -2
  97. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +4 -4
  98. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -4
  99. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +5 -8
  100. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -3
  101. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +4 -5
  102. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -5
  103. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +6 -9
  104. package/dist/components/inputs/Toggle/Toggle.js +2 -2
  105. package/dist/components/inputs/shared/CheckContent.js +1 -1
  106. package/dist/components/inputs/shared/InputClear.js +45 -28
  107. package/dist/components/inputs/shared/TooltipWrapper.d.ts +1 -1
  108. package/dist/components/inputs/shared/input.cva.js +1 -1
  109. package/dist/components/inputs/shared/useStaticInputHandoff.js +64 -38
  110. package/dist/components/navigation/Accordion/Accordion.js +1 -1
  111. package/dist/components/navigation/Accordion/AccordionItem.js +3 -3
  112. package/dist/components/navigation/Stepper/Stepper.js +2 -2
  113. package/dist/components/navigation/Stepper/StepperItem.js +4 -4
  114. package/dist/components/overlays/ActionModal/ActionModal.js +1 -1
  115. package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -3
  116. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -4
  117. package/dist/components/overlays/Drawer/Drawer.js +2 -2
  118. package/dist/components/overlays/Modal/Modal.js +3 -3
  119. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +1 -1
  120. package/dist/components/overlays/Tooltip/Tooltip.js +15 -8
  121. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
  122. package/dist/components/segment/Segment.js +4 -4
  123. package/dist/components/segment/SegmentItem.js +1 -1
  124. package/dist/components/shared/pagination/Pagination.js +1 -1
  125. package/dist/components/shared/pagination/PaginationList.js +6 -9
  126. package/dist/components/table/ColumnConfig.js +1 -1
  127. package/dist/components/table/InfiniteTable.js +1 -1
  128. package/dist/components/table/Table.js +6 -8
  129. package/dist/components/text/Link/Link.js +1 -1
  130. package/dist/components/text/Pill/Pill.js +3 -3
  131. package/dist/components/text/Tag/Tag.js +3 -3
  132. package/dist/config/confirmation.context.js +1 -1
  133. package/dist/config/link.context.js +1 -1
  134. package/dist/config/router.context.js +1 -1
  135. package/dist/config/theme.context.js +1 -1
  136. package/dist/config/uiConfig.context.d.ts +13 -4
  137. package/dist/config/uiConfig.context.js +19 -12
  138. package/dist/config/uiOverrides.context.js +2 -2
  139. package/dist/hooks/useFilters.js +1 -1
  140. package/dist/hooks/useForm.js +1 -1
  141. package/dist/hooks/useIntersectionObserver.js +1 -1
  142. package/dist/hooks/useLocalStorage.js +1 -1
  143. package/dist/hooks/usePagination.js +1 -1
  144. package/dist/hooks/useScrollableListBox.js +1 -1
  145. package/dist/hooks/useSorting.js +1 -1
  146. package/dist/hooks/useStateAndRef.js +1 -1
  147. package/dist/hooks/useTableColumnConfig.js +1 -1
  148. package/dist/index.d.ts +1 -263
  149. package/dist/index.js +10 -70
  150. package/dist/rhf/Inputs.d.ts +60 -0
  151. package/dist/rhf/Inputs.js +148 -0
  152. package/dist/rhf/components.d.ts +80 -0
  153. package/dist/rhf/components.js +101 -0
  154. package/dist/rhf/dynamicInputs.d.ts +18 -0
  155. package/dist/rhf/dynamicInputs.js +5 -0
  156. package/dist/rhf/entrypoints.type-test.d.ts +1 -0
  157. package/dist/rhf/fieldAdapter.d.ts +7 -0
  158. package/dist/rhf/fieldAdapter.js +40 -0
  159. package/dist/rhf/form.types.d.ts +12 -0
  160. package/dist/rhf/useAutosave.d.ts +10 -0
  161. package/dist/rhf/useAutosave.js +71 -0
  162. package/dist/rhf/useForm.d.ts +18 -0
  163. package/dist/rhf/useForm.js +48 -0
  164. package/dist/rhf/useFormAutosave.d.ts +15 -0
  165. package/dist/rhf/useFormAutosave.js +59 -0
  166. package/dist/rhf.d.ts +225 -0
  167. package/dist/tanstack.d.ts +224 -0
  168. package/dist/tanstack.js +141 -0
  169. package/package.json +15 -2
  170. package/dist/assets/icons/Account.d.ts +0 -2
  171. package/dist/assets/icons/AlignCenter.d.ts +0 -2
  172. package/dist/assets/icons/AlignCenter.js +0 -30
  173. package/dist/assets/icons/AlignLeft.d.ts +0 -2
  174. package/dist/assets/icons/AlignLeft.js +0 -30
  175. package/dist/assets/icons/AlignLeftRight.d.ts +0 -2
  176. package/dist/assets/icons/AlignLeftRight.js +0 -30
  177. package/dist/assets/icons/AlignRight.d.ts +0 -2
  178. package/dist/assets/icons/AlignRight.js +0 -30
  179. package/dist/assets/icons/ArrowDropDown.d.ts +0 -2
  180. package/dist/assets/icons/ArrowDropDown.js +0 -30
  181. package/dist/assets/icons/ArrowDropUp.d.ts +0 -2
  182. package/dist/assets/icons/ArrowDropUp.js +0 -30
  183. package/dist/assets/icons/ArrowLeft.d.ts +0 -2
  184. package/dist/assets/icons/ArrowLeft.js +0 -30
  185. package/dist/assets/icons/ArrowRight.d.ts +0 -2
  186. package/dist/assets/icons/ArrowRight.js +0 -30
  187. package/dist/assets/icons/Board.d.ts +0 -2
  188. package/dist/assets/icons/Bold.d.ts +0 -2
  189. package/dist/assets/icons/Bold.js +0 -30
  190. package/dist/assets/icons/BulletedList.d.ts +0 -2
  191. package/dist/assets/icons/BulletedList.js +0 -30
  192. package/dist/assets/icons/Calendar.d.ts +0 -2
  193. package/dist/assets/icons/Calendar.js +0 -32
  194. package/dist/assets/icons/Check.d.ts +0 -2
  195. package/dist/assets/icons/Check.js +0 -32
  196. package/dist/assets/icons/CheckCircle.d.ts +0 -2
  197. package/dist/assets/icons/CheckCircle.js +0 -30
  198. package/dist/assets/icons/CheckboxCheckmark.d.ts +0 -2
  199. package/dist/assets/icons/CheckboxCheckmark.js +0 -33
  200. package/dist/assets/icons/CheckboxIndeterminate.d.ts +0 -2
  201. package/dist/assets/icons/CheckboxIndeterminate.js +0 -33
  202. package/dist/assets/icons/ChevronDown.d.ts +0 -2
  203. package/dist/assets/icons/ChevronDown.js +0 -32
  204. package/dist/assets/icons/ChevronLeft.d.ts +0 -2
  205. package/dist/assets/icons/ChevronLeft.js +0 -32
  206. package/dist/assets/icons/ChevronRight.d.ts +0 -2
  207. package/dist/assets/icons/ChevronRight.js +0 -32
  208. package/dist/assets/icons/ChevronUp.d.ts +0 -2
  209. package/dist/assets/icons/ChevronUp.js +0 -32
  210. package/dist/assets/icons/ChevronsLeft.d.ts +0 -2
  211. package/dist/assets/icons/ChevronsLeft.js +0 -32
  212. package/dist/assets/icons/ChevronsRight.d.ts +0 -2
  213. package/dist/assets/icons/ChevronsRight.js +0 -32
  214. package/dist/assets/icons/Clock.d.ts +0 -2
  215. package/dist/assets/icons/Clock.js +0 -30
  216. package/dist/assets/icons/Close.d.ts +0 -2
  217. package/dist/assets/icons/Close.js +0 -30
  218. package/dist/assets/icons/DateTime.d.ts +0 -2
  219. package/dist/assets/icons/DateTime.js +0 -39
  220. package/dist/assets/icons/DragIndicator.d.ts +0 -2
  221. package/dist/assets/icons/DragIndicator.js +0 -30
  222. package/dist/assets/icons/Edit.d.ts +0 -2
  223. package/dist/assets/icons/Emoji.d.ts +0 -2
  224. package/dist/assets/icons/File.d.ts +0 -2
  225. package/dist/assets/icons/File.js +0 -32
  226. package/dist/assets/icons/Grid.d.ts +0 -2
  227. package/dist/assets/icons/Highlight.d.ts +0 -2
  228. package/dist/assets/icons/Highlight.js +0 -30
  229. package/dist/assets/icons/HighlightOn.d.ts +0 -6
  230. package/dist/assets/icons/HighlightOn.js +0 -55
  231. package/dist/assets/icons/Home.d.ts +0 -2
  232. package/dist/assets/icons/Home.js +0 -30
  233. package/dist/assets/icons/Image.d.ts +0 -2
  234. package/dist/assets/icons/ImageError.d.ts +0 -2
  235. package/dist/assets/icons/Info.d.ts +0 -2
  236. package/dist/assets/icons/Info.js +0 -41
  237. package/dist/assets/icons/Italic.d.ts +0 -2
  238. package/dist/assets/icons/Italic.js +0 -30
  239. package/dist/assets/icons/Link.d.ts +0 -2
  240. package/dist/assets/icons/Link.js +0 -30
  241. package/dist/assets/icons/Loader.d.ts +0 -2
  242. package/dist/assets/icons/MapPin.d.ts +0 -2
  243. package/dist/assets/icons/Menu.d.ts +0 -2
  244. package/dist/assets/icons/Menu.js +0 -30
  245. package/dist/assets/icons/Minus.d.ts +0 -2
  246. package/dist/assets/icons/MoreHoriz.d.ts +0 -2
  247. package/dist/assets/icons/NumberedList.d.ts +0 -2
  248. package/dist/assets/icons/NumberedList.js +0 -30
  249. package/dist/assets/icons/Pause.d.ts +0 -2
  250. package/dist/assets/icons/Plus.d.ts +0 -2
  251. package/dist/assets/icons/PointerHorizontal.d.ts +0 -2
  252. package/dist/assets/icons/PointerHorizontal.js +0 -30
  253. package/dist/assets/icons/PointerVertical.d.ts +0 -2
  254. package/dist/assets/icons/PointerVertical.js +0 -30
  255. package/dist/assets/icons/Retry.d.ts +0 -2
  256. package/dist/assets/icons/Search.d.ts +0 -2
  257. package/dist/assets/icons/Search.js +0 -30
  258. package/dist/assets/icons/Send.d.ts +0 -2
  259. package/dist/assets/icons/Send.js +0 -32
  260. package/dist/assets/icons/Share.d.ts +0 -2
  261. package/dist/assets/icons/Slash.d.ts +0 -2
  262. package/dist/assets/icons/Strikethrough.d.ts +0 -2
  263. package/dist/assets/icons/Strikethrough.js +0 -30
  264. package/dist/assets/icons/TextColor.d.ts +0 -6
  265. package/dist/assets/icons/TextColor.js +0 -52
  266. package/dist/assets/icons/Today.d.ts +0 -2
  267. package/dist/assets/icons/Today.js +0 -30
  268. package/dist/assets/icons/Trash.d.ts +0 -2
  269. package/dist/assets/icons/Underlined.d.ts +0 -2
  270. package/dist/assets/icons/Underlined.js +0 -32
  271. package/dist/assets/icons/Upload.d.ts +0 -2
  272. package/dist/assets/icons/Upload.js +0 -39
  273. package/dist/assets/icons/User.d.ts +0 -2
  274. package/dist/assets/icons/Visibility.d.ts +0 -2
  275. package/dist/assets/icons/Visibility.js +0 -30
  276. package/dist/assets/icons/VisibilityOff.d.ts +0 -2
  277. package/dist/assets/icons/VisibilityOff.js +0 -30
  278. package/dist/assets/icons/WarningFilled.d.ts +0 -2
  279. package/dist/assets/icons/WarningFilled.js +0 -32
  280. package/dist/assets/icons/WarningOutlined.d.ts +0 -2
@@ -1,11 +1,8 @@
1
- import { ArrowDropDownIcon } from "../../../../assets/icons/ArrowDropDown.js";
2
- import { ArrowDropUpIcon } from "../../../../assets/icons/ArrowDropUp.js";
3
- import { ChevronLeftIcon } from "../../../../assets/icons/ChevronLeft.js";
4
- import { ChevronRightIcon } from "../../../../assets/icons/ChevronRight.js";
5
1
  import { PillButton } from "../../../buttons/PillButton/PillButton.js";
6
- import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from "lucide-react";
7
3
  import { clsx } from "clsx";
8
4
  import { Button, ToggleButtonGroup } from "react-aria-components";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
9
6
  import { CalendarDateTime, Time } from "@internationalized/date";
10
7
  import { useDateFormatter } from "@react-aria/i18n";
11
8
  //#region src/components/inputs/DateTime/shared/CalendarHeader.tsx
@@ -43,7 +40,7 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
43
40
  ...prevButtonProps,
44
41
  isDisabled: !!toggleState,
45
42
  className: clsx("shrink-0 focus-visible:outline-interactive-contained-secondary-focus", !!toggleState && "opacity-0"),
46
- children: /* @__PURE__ */ jsx(ChevronLeftIcon, { className: "size-6 text-interactive-text-secondary-idle" })
43
+ children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-6 text-interactive-text-secondary-idle" })
47
44
  })
48
45
  }),
49
46
  /* @__PURE__ */ jsxs(ToggleButtonGroup, {
@@ -53,7 +50,7 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
53
50
  color: "secondary",
54
51
  variant: "subtle",
55
52
  iconPosition: "right",
56
- icon: toggleState === "month" ? ArrowDropUpIcon : ArrowDropDownIcon,
53
+ icon: toggleState === "month" ? ChevronUp : ChevronDown,
57
54
  toggle: true,
58
55
  isSelected: toggleState === "month",
59
56
  onChange: (isSelected) => {
@@ -73,7 +70,7 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
73
70
  color: "secondary",
74
71
  variant: "subtle",
75
72
  iconPosition: "right",
76
- icon: toggleState === "year" ? ArrowDropUpIcon : ArrowDropDownIcon,
73
+ icon: toggleState === "year" ? ChevronUp : ChevronDown,
77
74
  toggle: true,
78
75
  isSelected: toggleState === "year",
79
76
  onChange: (isSelected_0) => {
@@ -97,7 +94,7 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
97
94
  color: "secondary",
98
95
  variant: "subtle",
99
96
  iconPosition: "right",
100
- icon: toggleState === "time" ? ArrowDropUpIcon : ArrowDropDownIcon,
97
+ icon: toggleState === "time" ? ChevronUp : ChevronDown,
101
98
  toggle: true,
102
99
  isSelected: toggleState === "time",
103
100
  onChange: (isSelected_1) => setToggleState(isSelected_1 ? "time" : null),
@@ -111,7 +108,7 @@ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextBut
111
108
  ...nextButtonProps,
112
109
  isDisabled: !!toggleState,
113
110
  className: clsx("shrink-0 focus-visible:outline-interactive-contained-secondary-focus", !!toggleState && "opacity-0"),
114
- children: /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-6 text-interactive-text-secondary-idle" })
111
+ children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-6 text-interactive-text-secondary-idle" })
115
112
  })
116
113
  })
117
114
  ]
@@ -1,14 +1,10 @@
1
- import { ArrowDropDownIcon } from "../../../../assets/icons/ArrowDropDown.js";
2
- import { ChevronLeftIcon } from "../../../../assets/icons/ChevronLeft.js";
3
- import { ChevronRightIcon } from "../../../../assets/icons/ChevronRight.js";
4
- import { ChevronsLeftIcon } from "../../../../assets/icons/ChevronsLeft.js";
5
- import { ChevronsRightIcon } from "../../../../assets/icons/ChevronsRight.js";
6
1
  import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
7
2
  import { PillButton } from "../../../buttons/PillButton/PillButton.js";
8
3
  import "../../../../config/i18n.js";
9
4
  import { Select } from "../../Selection/Select/Select.js";
10
- import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { ChevronDown, ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react";
11
6
  import { useMemo } from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
12
8
  import { useTranslation } from "react-i18next";
13
9
  import { useDateFormatter } from "@react-aria/i18n";
14
10
  //#region src/components/inputs/DateTime/shared/CalendarSelectHeader.tsx
@@ -105,13 +101,13 @@ var CalendarSelectHeader = ({ state, isPrevMonthDisabled, isPrevYearDisabled, is
105
101
  color: "secondary",
106
102
  isDisabled: isPrevYearDisabled,
107
103
  onClick: handlePrevYear,
108
- icon: ChevronsLeftIcon,
104
+ icon: ChevronsLeft,
109
105
  label: t(($) => $.ui.datePicker.navigation.previousYear)
110
106
  }), /* @__PURE__ */ jsx(InlineIconButton, {
111
107
  color: "secondary",
112
108
  isDisabled: isPrevMonthDisabled,
113
109
  onClick: handlePrevMonth,
114
- icon: ChevronLeftIcon,
110
+ icon: ChevronLeft,
115
111
  label: t(($_0) => $_0.ui.datePicker.navigation.previousMonth)
116
112
  })]
117
113
  }),
@@ -124,7 +120,7 @@ var CalendarSelectHeader = ({ state, isPrevMonthDisabled, isPrevYearDisabled, is
124
120
  color: "secondary",
125
121
  variant: "subtle",
126
122
  iconPosition: "right",
127
- icon: ArrowDropDownIcon,
123
+ icon: ChevronDown,
128
124
  children: MONTHS[currentMonth].slice(0, 3)
129
125
  }),
130
126
  ignoreTriggerWidth: true,
@@ -142,7 +138,7 @@ var CalendarSelectHeader = ({ state, isPrevMonthDisabled, isPrevYearDisabled, is
142
138
  color: "secondary",
143
139
  variant: "subtle",
144
140
  iconPosition: "right",
145
- icon: ArrowDropDownIcon,
141
+ icon: ChevronDown,
146
142
  children: currentYear.toString()
147
143
  }),
148
144
  items: availableYears.map(({ year: year_0, isDisabled: isDisabled_3 }) => ({
@@ -160,13 +156,13 @@ var CalendarSelectHeader = ({ state, isPrevMonthDisabled, isPrevYearDisabled, is
160
156
  color: "secondary",
161
157
  isDisabled: isNextMonthDisabled,
162
158
  onClick: handleNextMonth,
163
- icon: ChevronRightIcon,
159
+ icon: ChevronRight,
164
160
  label: t(($_1) => $_1.ui.datePicker.navigation.nextMonth)
165
161
  }), /* @__PURE__ */ jsx(InlineIconButton, {
166
162
  color: "secondary",
167
163
  isDisabled: isNextYearDisabled,
168
164
  onClick: handleNextYear,
169
- icon: ChevronsRightIcon,
165
+ icon: ChevronsRight,
170
166
  label: t(($_2) => $_2.ui.datePicker.navigation.nextYear)
171
167
  })]
172
168
  })
@@ -15,6 +15,7 @@ interface DateFieldProps extends Omit<DateFieldStateOptions, "locale" | "createC
15
15
  timeZone?: string;
16
16
  segmentGroup?: string;
17
17
  shouldAutoFixYear?: boolean;
18
+ preserveNullValue?: boolean;
18
19
  }
19
- export declare const DateField: ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity, isTimeOptional, format, timeZone, segmentGroup, shouldAutoFixYear, ...props }: DateFieldProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const DateField: ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity, isTimeOptional, format, timeZone, segmentGroup, shouldAutoFixYear, preserveNullValue, ...props }: DateFieldProps) => import("react/jsx-runtime").JSX.Element;
20
21
  export {};
@@ -1,18 +1,18 @@
1
1
  import { DateSegmentItem } from "./DateSegmentItem.js";
2
2
  import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
3
- import { Fragment, jsx } from "react/jsx-runtime";
4
3
  import { clsx } from "clsx";
5
4
  import { useCallback, useEffect, useImperativeHandle, useMemo, useRef } from "react";
5
+ import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
6
6
  import { useDateField, useLocale } from "react-aria";
7
7
  import { CalendarDate, CalendarDateTime, createCalendar } from "@internationalized/date";
8
8
  import { DateTime } from "luxon";
9
9
  import { useDateFieldState } from "react-stately";
10
10
  //#region src/components/inputs/DateTime/shared/DateField.tsx
11
11
  var omitNullValue = ({ value: _value, ...props }) => props;
12
- var DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity = "day", isTimeOptional = false, format, timeZone, segmentGroup, shouldAutoFixYear = false, ...props }) => {
12
+ var DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, dateGranularity = "day", isTimeOptional = false, format, timeZone, segmentGroup, shouldAutoFixYear = false, preserveNullValue = false, ...props }) => {
13
13
  const { locale } = useLocale();
14
14
  const previousValueRef = useRef(props.value);
15
- const dateFieldProps = props.value == null ? omitNullValue(props) : props;
15
+ const dateFieldProps = props.value == null && !preserveNullValue ? omitNullValue(props) : props;
16
16
  const state = useDateFieldState({
17
17
  ...dateFieldProps,
18
18
  isDisabled,
@@ -130,7 +130,7 @@ var DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManua
130
130
  return formattedDate.toFormat(format);
131
131
  };
132
132
  const formattedDisplayValue = getFormattedDisplayValue();
133
- let fieldContent = /* @__PURE__ */ jsx(Fragment, { children: segmentsToRender.map((segment_7, i) => /* @__PURE__ */ jsx(DateSegmentItem, {
133
+ let fieldContent = /* @__PURE__ */ jsx(Fragment$1, { children: segmentsToRender.map((segment_7, i) => /* @__PURE__ */ jsx(DateSegmentItem, {
134
134
  segment: segment_7,
135
135
  segmentGroup,
136
136
  state,
@@ -23,6 +23,7 @@ interface DatePickerInputProps extends InputVariantProps {
23
23
  isDateTime?: boolean;
24
24
  shouldShrinkInput?: boolean;
25
25
  isClearable?: boolean;
26
+ isClearableIfDisabled?: boolean;
26
27
  headerProps?: FormFieldHeaderProps;
27
28
  todayIcon?: DatePickerTodayIcon;
28
29
  todayIconButtonSize?: DatePickerTodayIconButtonSize;
@@ -41,5 +42,5 @@ interface DatePickerInputProps extends InputVariantProps {
41
42
  format?: string;
42
43
  onClear?: () => void;
43
44
  }
44
- export declare const DatePickerInput: ({ ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, isValueControlled, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, shouldShrinkInput, isClearable, headerProps, todayIcon, todayIconButtonSize, todayIconButtonComponent, todayIconPlacement, isDirty, isRequired, disableManualEntry, autoFixYear, placeholder, className, onOpenDropdown, dateGranularity, timeZone: timeZoneProp, isTimeOptional, format, onClear: onClearProp, ...props }: DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
45
+ export declare const DatePickerInput: ({ ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, isValueControlled, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, shouldShrinkInput, isClearable, isClearableIfDisabled, headerProps, todayIcon, todayIconButtonSize, todayIconButtonComponent, todayIconPlacement, isDirty, isRequired, disableManualEntry, autoFixYear, placeholder, className, onOpenDropdown, dateGranularity, timeZone: timeZoneProp, isTimeOptional, format, onClear: onClearProp, ...props }: DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
45
46
  export {};
@@ -10,14 +10,14 @@ import { datePickerInputContentRowDefinition } from "./datePickerInput.cva.js";
10
10
  import { renderDatePickerTodayIcon } from "./datePickerTodayIcon.js";
11
11
  import { useFirefoxDateSegmentSelectionGuard } from "./useFirefoxDateSegmentSelectionGuard.js";
12
12
  import { InputClear } from "../../shared/InputClear.js";
13
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
13
  import { clsx } from "clsx";
15
14
  import { useCallback, useImperativeHandle, useRef, useState } from "react";
16
15
  import { Button } from "react-aria-components";
16
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
17
17
  import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
18
18
  import { getLocalTimeZone, today } from "@internationalized/date";
19
19
  //#region src/components/inputs/DateTime/shared/DatePickerInput.tsx
20
- var DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, isValueControlled, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, shouldShrinkInput, isClearable, headerProps, todayIcon, todayIconButtonSize = "none", todayIconButtonComponent, todayIconPlacement = "content", isDirty, isRequired, disableManualEntry, autoFixYear = false, placeholder, className, onOpenDropdown, dateGranularity = "day", timeZone: timeZoneProp, isTimeOptional = false, format, onClear: onClearProp, ...props }) => {
20
+ var DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, isValueControlled, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, shouldShrinkInput, isClearable, isClearableIfDisabled, headerProps, todayIcon, todayIconButtonSize = "none", todayIconButtonComponent, todayIconPlacement = "content", isDirty, isRequired, disableManualEntry, autoFixYear = false, placeholder, className, onOpenDropdown, dateGranularity = "day", timeZone: timeZoneProp, isTimeOptional = false, format, onClear: onClearProp, ...props }) => {
21
21
  const uiConfig = UIConfig.useConfig();
22
22
  const timeZone = timeZoneProp ?? uiConfig.dateInput.timeZone;
23
23
  let effectiveTimeZone = getLocalTimeZone();
@@ -51,10 +51,10 @@ var DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldVa
51
51
  shouldAutoFixYear: autoFixYear
52
52
  } : void 0;
53
53
  const clearInput = useCallback(() => {
54
- dateFieldRef.current?.clearField();
55
- endDateFieldRef.current?.clearField();
56
54
  if (onClearProp) onClearProp();
57
55
  else {
56
+ dateFieldRef.current?.clearField();
57
+ endDateFieldRef.current?.clearField();
58
58
  fieldProps.onChange?.(null);
59
59
  endFieldProps?.onChange?.(null);
60
60
  }
@@ -71,7 +71,7 @@ var DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldVa
71
71
  const onClearChange = useCallback((canClearInput) => {
72
72
  setCanClear(canClearInput);
73
73
  }, []);
74
- const showClear = canClear || hasValue || normalizedFieldProps.value != null || normalizedEndFieldProps?.value != null;
74
+ const showClear = (!isDisabled || isClearableIfDisabled === true) && (canClear || hasValue || normalizedFieldProps.value != null || normalizedEndFieldProps?.value != null);
75
75
  const isTodayIconDisabled = isDisabled || buttonProps.isDisabled;
76
76
  const onToday = () => {
77
77
  if (isTodayIconDisabled) return;
@@ -140,7 +140,7 @@ var DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldVa
140
140
  size: "label-1",
141
141
  className: "text-text-default-3",
142
142
  children: placeholder
143
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(DateField, {
143
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(DateField, {
144
144
  ref: dateFieldRef,
145
145
  ...normalizedFieldProps,
146
146
  isDisabled,
@@ -150,10 +150,11 @@ var DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldVa
150
150
  disableManualEntry,
151
151
  dateGranularity,
152
152
  isTimeOptional,
153
+ preserveNullValue: isValueControlled && !endFieldProps,
153
154
  format,
154
155
  timeZone: effectiveTimeZone,
155
156
  segmentGroup: normalizedEndFieldProps ? "start" : void 0
156
- }), normalizedEndFieldProps && /* @__PURE__ */ jsxs(Fragment, { children: [!((as === "floating" || as === "filter") && hidePlaceholder) && /* @__PURE__ */ jsx("span", {
157
+ }), normalizedEndFieldProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [!((as === "floating" || as === "filter") && hidePlaceholder) && /* @__PURE__ */ jsx("span", {
157
158
  className: clsx("pointer-events-none select-none", isDisabled && "text-interactive-text-secondary-disabled"),
158
159
  children: "–"
159
160
  }), /* @__PURE__ */ jsx(DateField, {
@@ -1,7 +1,7 @@
1
- import { c } from "react/compiler-runtime";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
1
  import { clsx } from "clsx";
4
2
  import { useRef } from "react";
3
+ import { c } from "react/compiler-runtime";
4
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
5
  import { useDateSegment } from "react-aria";
6
6
  //#region src/components/inputs/DateTime/shared/DateSegmentItem.tsx
7
7
  var getPlaceholder = (segment) => {
@@ -93,7 +93,7 @@ var DateSegmentItemView = (t0) => {
93
93
  const t12 = isPlaceholder ? "" : text;
94
94
  let t13;
95
95
  if ($[10] !== t11 || $[11] !== t12) {
96
- t13 = /* @__PURE__ */ jsxs(Fragment, { children: [t11, t12] });
96
+ t13 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t11, t12] });
97
97
  $[10] = t11;
98
98
  $[11] = t12;
99
99
  $[12] = t13;
@@ -2,10 +2,10 @@ import { UIOverrides } from "../../../../config/uiOverrides.context.js";
2
2
  import { BottomSheet } from "../../../overlays/BottomSheet/BottomSheet.js";
3
3
  import { useBreakpoint } from "../../../../hooks/useBreakpoint.js";
4
4
  import { popoverDefinition } from "../../../shared/popover.cva.js";
5
- import { c } from "react/compiler-runtime";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
5
  import clsx$1 from "clsx";
8
6
  import { Dialog, Popover } from "react-aria-components";
7
+ import { c } from "react/compiler-runtime";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region src/components/inputs/DateTime/shared/DateTimeDialog.tsx
10
10
  var DateTimeDialog = (t0) => {
11
11
  const $ = c(26);
@@ -1,7 +1,7 @@
1
1
  import "../../../../config/i18n.js";
2
2
  import { TextButton } from "../../../buttons/TextButton/TextButton.js";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import { clsx } from "clsx";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { useTranslation } from "react-i18next";
6
6
  //#region src/components/inputs/DateTime/shared/DateTimeDialogFooter.tsx
7
7
  var DateTimeDialogFooter = ({ isValid = true, isDisabled = false, onTodayPress, onApply }) => {
@@ -1,9 +1,9 @@
1
1
  import { Typography } from "../../../text/Typography/Typography.js";
2
- import { c } from "react/compiler-runtime";
3
- import { jsx } from "react/jsx-runtime";
4
2
  import { clsx } from "clsx";
5
3
  import { useRef } from "react";
6
4
  import { ListBox, ListBoxItem } from "react-aria-components";
5
+ import { c } from "react/compiler-runtime";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  import { useDateFormatter } from "@react-aria/i18n";
8
8
  //#region src/components/inputs/DateTime/shared/MonthPicker.tsx
9
9
  var MonthPicker = (t0) => {
@@ -1,9 +1,9 @@
1
1
  import { CalendarGrid } from "./CalendarGrid.js";
2
2
  import { CalendarSelectHeader } from "./CalendarSelectHeader.js";
3
- import { c } from "react/compiler-runtime";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
3
  import { clsx } from "clsx";
6
4
  import { useRef } from "react";
5
+ import { c } from "react/compiler-runtime";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { useRangeCalendar } from "@react-aria/calendar";
8
8
  //#region src/components/inputs/DateTime/shared/RangeCalendar.tsx
9
9
  var RangeCalendar = (t0) => {
@@ -1,14 +1,13 @@
1
- import { ChevronDownIcon } from "../../../../assets/icons/ChevronDown.js";
2
- import { ChevronUpIcon } from "../../../../assets/icons/ChevronUp.js";
3
1
  import { Typography } from "../../../text/Typography/Typography.js";
4
2
  import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
5
3
  import { useBreakpoint } from "../../../../hooks/useBreakpoint.js";
6
4
  import { getPlaceholder } from "./DateSegmentItem.js";
7
5
  import { useLongPressRepeat } from "../../../../hooks/useLongPressRepeat.js";
8
- import { c } from "react/compiler-runtime";
9
- import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { ChevronDown, ChevronUp } from "lucide-react";
10
7
  import { clsx } from "clsx";
11
8
  import { useEffect, useRef } from "react";
9
+ import { c } from "react/compiler-runtime";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
12
11
  import { useDateSegment, useLocale, useTimeField } from "react-aria";
13
12
  import { Time } from "@internationalized/date";
14
13
  import { useTimeFieldState } from "@react-stately/datepicker";
@@ -289,7 +288,7 @@ var TimeSegmentButton = (t0) => {
289
288
  } else t6 = $[10];
290
289
  return t6;
291
290
  }
292
- const Icon = type === "increment" ? ChevronUpIcon : ChevronDownIcon;
291
+ const Icon = type === "increment" ? ChevronUp : ChevronDown;
293
292
  let t6;
294
293
  if ($[11] !== Icon || $[12] !== onPressEnd || $[13] !== onPressStart) {
295
294
  t6 = /* @__PURE__ */ jsx("div", {
@@ -14,11 +14,12 @@ interface DatePickerInputProps extends InputVariantProps {
14
14
  disableDropdown?: boolean;
15
15
  headerProps?: FormFieldHeaderProps;
16
16
  isClearable?: boolean;
17
+ isClearableIfDisabled?: boolean;
17
18
  disableManualEntry?: boolean;
18
19
  placeholder?: string;
19
20
  className?: string;
20
21
  onPress: () => void;
21
22
  onClear?: () => void;
22
23
  }
23
- export declare const TimePickerInput: ({ ref, as, fieldProps, state, isDisabled, isDirty, isRequired, isInvalid, disableDropdown, variant, size, isClearable, headerProps, disableManualEntry, placeholder, className, onPress, onClear, ...props }: DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const TimePickerInput: ({ ref, as, fieldProps, state, isDisabled, isDirty, isRequired, isInvalid, disableDropdown, variant, size, isClearable, isClearableIfDisabled, headerProps, disableManualEntry, placeholder, className, onPress, onClear, ...props }: DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
24
25
  export {};
@@ -7,17 +7,17 @@ import { inputBaseDefinition, inputSizeDefinition } from "../../shared/input.cva
7
7
  import { useFirefoxDateSegmentSelectionGuard } from "./useFirefoxDateSegmentSelectionGuard.js";
8
8
  import { InputClear } from "../../shared/InputClear.js";
9
9
  import { TimeField } from "./TimeField.js";
10
- import { c } from "react/compiler-runtime";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
10
  import { clsx } from "clsx";
13
11
  import { useRef, useState } from "react";
14
12
  import { Button } from "react-aria-components";
13
+ import { c } from "react/compiler-runtime";
14
+ import { jsx, jsxs } from "react/jsx-runtime";
15
15
  import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
16
16
  import { mergeRefs } from "@react-aria/utils";
17
17
  //#region src/components/inputs/DateTime/shared/TimePickerInput.tsx
18
18
  var TimePickerInput = (t0) => {
19
- const $ = c(67);
20
- const { ref, as, fieldProps, state, isDisabled, isDirty, isRequired, isInvalid, disableDropdown, variant, size, isClearable, headerProps, disableManualEntry, placeholder, className, onPress, onClear, ...props } = t0;
19
+ const $ = c(69);
20
+ const { ref, as, fieldProps, state, isDisabled, isDirty, isRequired, isInvalid, disableDropdown, variant, size, isClearable, isClearableIfDisabled, headerProps, disableManualEntry, placeholder, className, onPress, onClear, ...props } = t0;
21
21
  const uiConfig = UIConfig.useConfig();
22
22
  const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
23
23
  const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
@@ -147,22 +147,24 @@ var TimePickerInput = (t0) => {
147
147
  $[32] = t22;
148
148
  } else t22 = $[32];
149
149
  let t23;
150
- if ($[33] !== canClear || $[34] !== isClearable || $[35] !== onClear || $[36] !== state) {
150
+ if ($[33] !== canClear || $[34] !== isClearable || $[35] !== isClearableIfDisabled || $[36] !== isDisabled || $[37] !== onClear || $[38] !== state) {
151
151
  t23 = isClearable && /* @__PURE__ */ jsx(InputClear, {
152
152
  onClear: () => {
153
- state.setValue(null);
154
- onClear?.();
153
+ if (onClear) onClear();
154
+ else state.setValue(null);
155
155
  },
156
- show: canClear
156
+ show: canClear && (!isDisabled || isClearableIfDisabled === true)
157
157
  });
158
158
  $[33] = canClear;
159
159
  $[34] = isClearable;
160
- $[35] = onClear;
161
- $[36] = state;
162
- $[37] = t23;
163
- } else t23 = $[37];
160
+ $[35] = isClearableIfDisabled;
161
+ $[36] = isDisabled;
162
+ $[37] = onClear;
163
+ $[38] = state;
164
+ $[39] = t23;
165
+ } else t23 = $[39];
164
166
  let t24;
165
- if ($[38] !== disableDropdown || $[39] !== disableManualEntry || $[40] !== isDisabled || $[41] !== onPress || $[42] !== uiConfig) {
167
+ if ($[40] !== disableDropdown || $[41] !== disableManualEntry || $[42] !== isDisabled || $[43] !== onPress || $[44] !== uiConfig) {
166
168
  t24 = (!disableDropdown || disableManualEntry) && /* @__PURE__ */ jsx(InlineIconButton, {
167
169
  label: "",
168
170
  color: "secondary",
@@ -172,26 +174,26 @@ var TimePickerInput = (t0) => {
172
174
  className: "border-0!",
173
175
  "data-static-press-action": ""
174
176
  });
175
- $[38] = disableDropdown;
176
- $[39] = disableManualEntry;
177
- $[40] = isDisabled;
178
- $[41] = onPress;
179
- $[42] = uiConfig;
180
- $[43] = t24;
181
- } else t24 = $[43];
177
+ $[40] = disableDropdown;
178
+ $[41] = disableManualEntry;
179
+ $[42] = isDisabled;
180
+ $[43] = onPress;
181
+ $[44] = uiConfig;
182
+ $[45] = t24;
183
+ } else t24 = $[45];
182
184
  let t25;
183
- if ($[44] !== t22 || $[45] !== t23 || $[46] !== t24) {
185
+ if ($[46] !== t22 || $[47] !== t23 || $[48] !== t24) {
184
186
  t25 = /* @__PURE__ */ jsxs("div", {
185
187
  className: t22,
186
188
  children: [t23, t24]
187
189
  });
188
- $[44] = t22;
189
- $[45] = t23;
190
- $[46] = t24;
191
- $[47] = t25;
192
- } else t25 = $[47];
190
+ $[46] = t22;
191
+ $[47] = t23;
192
+ $[48] = t24;
193
+ $[49] = t25;
194
+ } else t25 = $[49];
193
195
  let t26;
194
- if ($[48] !== fieldProps || $[49] !== focusWithinProps || $[50] !== hoverProps || $[51] !== t10 || $[52] !== t11 || $[53] !== t12 || $[54] !== t13 || $[55] !== t14 || $[56] !== t15 || $[57] !== t16 || $[58] !== t21 || $[59] !== t25 || $[60] !== t4 || $[61] !== t5 || $[62] !== t6 || $[63] !== t7 || $[64] !== t8 || $[65] !== t9) {
196
+ if ($[50] !== fieldProps || $[51] !== focusWithinProps || $[52] !== hoverProps || $[53] !== t10 || $[54] !== t11 || $[55] !== t12 || $[56] !== t13 || $[57] !== t14 || $[58] !== t15 || $[59] !== t16 || $[60] !== t21 || $[61] !== t25 || $[62] !== t4 || $[63] !== t5 || $[64] !== t6 || $[65] !== t7 || $[66] !== t8 || $[67] !== t9) {
195
197
  t26 = /* @__PURE__ */ jsxs("div", {
196
198
  ref: t4,
197
199
  className: t5,
@@ -213,26 +215,26 @@ var TimePickerInput = (t0) => {
213
215
  ...hoverProps,
214
216
  children: [t21, t25]
215
217
  });
216
- $[48] = fieldProps;
217
- $[49] = focusWithinProps;
218
- $[50] = hoverProps;
219
- $[51] = t10;
220
- $[52] = t11;
221
- $[53] = t12;
222
- $[54] = t13;
223
- $[55] = t14;
224
- $[56] = t15;
225
- $[57] = t16;
226
- $[58] = t21;
227
- $[59] = t25;
228
- $[60] = t4;
229
- $[61] = t5;
230
- $[62] = t6;
231
- $[63] = t7;
232
- $[64] = t8;
233
- $[65] = t9;
234
- $[66] = t26;
235
- } else t26 = $[66];
218
+ $[50] = fieldProps;
219
+ $[51] = focusWithinProps;
220
+ $[52] = hoverProps;
221
+ $[53] = t10;
222
+ $[54] = t11;
223
+ $[55] = t12;
224
+ $[56] = t13;
225
+ $[57] = t14;
226
+ $[58] = t15;
227
+ $[59] = t16;
228
+ $[60] = t21;
229
+ $[61] = t25;
230
+ $[62] = t4;
231
+ $[63] = t5;
232
+ $[64] = t6;
233
+ $[65] = t7;
234
+ $[66] = t8;
235
+ $[67] = t9;
236
+ $[68] = t26;
237
+ } else t26 = $[68];
236
238
  return t26;
237
239
  };
238
240
  function _temp(segment) {
@@ -1,10 +1,10 @@
1
1
  import { Typography } from "../../../text/Typography/Typography.js";
2
2
  import { useScrollableListBox } from "../../../../hooks/useScrollableListBox.js";
3
- import { c } from "react/compiler-runtime";
4
- import { jsx } from "react/jsx-runtime";
5
3
  import { clsx } from "clsx";
6
4
  import { useRef } from "react";
7
5
  import { ListBox, ListBoxItem } from "react-aria-components";
6
+ import { c } from "react/compiler-runtime";
7
+ import { jsx } from "react/jsx-runtime";
8
8
  import { today } from "@internationalized/date";
9
9
  import { useDateFormatter } from "@react-aria/i18n";
10
10
  //#region src/components/inputs/DateTime/shared/YearPicker.tsx
@@ -1,8 +1,53 @@
1
1
  import { IconButton } from "../../../buttons/IconButton/IconButton.js";
2
2
  import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
3
- import { TodayIcon } from "../../../../assets/icons/Today.js";
3
+ import { c } from "react/compiler-runtime";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/components/inputs/DateTime/shared/datePickerTodayIcon.tsx
6
+ var TodayIcon = (t0) => {
7
+ const $ = c(9);
8
+ let className;
9
+ let props;
10
+ if ($[0] !== t0) {
11
+ ({className, ...props} = t0);
12
+ $[0] = t0;
13
+ $[1] = className;
14
+ $[2] = props;
15
+ } else {
16
+ className = $[1];
17
+ props = $[2];
18
+ }
19
+ let t1;
20
+ if ($[3] !== className) {
21
+ t1 = ["fill-current", className].filter(Boolean);
22
+ $[3] = className;
23
+ $[4] = t1;
24
+ } else t1 = $[4];
25
+ const t2 = t1.join(" ");
26
+ let t3;
27
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
28
+ t3 = /* @__PURE__ */ jsx("path", {
29
+ fill: "currentColor",
30
+ d: "M9.184 9.672v-.945h5.628v.945h-2.27V16H11.45V9.672z",
31
+ transform: "translate(12 12) scale(1.65) translate(-12 -12)"
32
+ });
33
+ $[5] = t3;
34
+ } else t3 = $[5];
35
+ let t4;
36
+ if ($[6] !== props || $[7] !== t2) {
37
+ t4 = /* @__PURE__ */ jsx("svg", {
38
+ xmlns: "http://www.w3.org/2000/svg",
39
+ fill: "none",
40
+ viewBox: "0 0 24 24",
41
+ ...props,
42
+ className: t2,
43
+ children: t3
44
+ });
45
+ $[6] = props;
46
+ $[7] = t2;
47
+ $[8] = t4;
48
+ } else t4 = $[8];
49
+ return t4;
50
+ };
6
51
  var getDatePickerTodayIcon = (todayIcon) => {
7
52
  if (!todayIcon) return null;
8
53
  return todayIcon === true ? TodayIcon : todayIcon;
@@ -1,5 +1,5 @@
1
- import { c } from "react/compiler-runtime";
2
1
  import { useLayoutEffect } from "react";
2
+ import { c } from "react/compiler-runtime";
3
3
  import { isFirefox } from "@react-aria/utils";
4
4
  //#region src/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.ts
5
5
  var isEditableElement = (element) => element instanceof HTMLElement && (element.matches("input, textarea") || element.isContentEditable);
@@ -8,11 +8,11 @@ import { FileCardList } from "./shared/FileCardList.js";
8
8
  import { FileUploadContentEmpty } from "./shared/FileUploadContentEmpty.js";
9
9
  import { FileUploadContent } from "./shared/FileUploadContent.js";
10
10
  import { fileUploadDropZoneDefinition } from "./shared/fileUpload.cva.js";
11
- import { c } from "react/compiler-runtime";
12
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
11
  import { clsx } from "clsx";
14
12
  import { useCallback, useState } from "react";
15
13
  import { DropZone } from "react-aria-components";
14
+ import { c } from "react/compiler-runtime";
15
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
16
16
  import { mergeRefs, useLabels } from "@react-aria/utils";
17
17
  import { useTranslation } from "react-i18next";
18
18
  //#region src/components/inputs/File/FileUpload.tsx
@@ -142,7 +142,7 @@ var FileUploadBase = (props) => {
142
142
  isContainer: !!children,
143
143
  className: "group/file-upload-drop-zone"
144
144
  }),
145
- children: children ? /* @__PURE__ */ jsxs(Fragment, { children: [children({
145
+ children: children ? /* @__PURE__ */ jsxs(Fragment$1, { children: [children({
146
146
  files: uploadState,
147
147
  onRemove: handleRemove,
148
148
  onCancel: handleCancelUpload
@@ -4,10 +4,10 @@ import { FormField } from "../FormField/FormField.js";
4
4
  import { FileUtils } from "../../../utils/file.utils.js";
5
5
  import { InputUploadContent } from "./shared/InputUploadContent.js";
6
6
  import { InputUploadFilled } from "./shared/InputUploadFilled.js";
7
- import { c } from "react/compiler-runtime";
8
- import { jsx } from "react/jsx-runtime";
9
7
  import { clsx } from "clsx";
10
8
  import { useState } from "react";
9
+ import { c } from "react/compiler-runtime";
10
+ import { jsx } from "react/jsx-runtime";
11
11
  import { mergeRefs, useLabels } from "@react-aria/utils";
12
12
  //#region src/components/inputs/File/InputUpload.tsx
13
13
  var InputUploadBase = ({ ref: _ref, label, tooltipText, variant, helperText, isRequired, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, onChange, onInvalidFileType, value, defaultValue, allowsMultiple = false, hideLabel, acceptedFileTypes, size, ...rest }) => {
@@ -1,9 +1,9 @@
1
1
  import { FileUploadContentError } from "./FileUploadContentError.js";
2
2
  import { FileUploadContentFilled } from "./FileUploadContentFilled.js";
3
3
  import { FileUploadContentLoading } from "./FileUploadContentLoading.js";
4
+ import { clsx } from "clsx";
4
5
  import { c } from "react/compiler-runtime";
5
6
  import { jsx } from "react/jsx-runtime";
6
- import { clsx } from "clsx";
7
7
  //#region src/components/inputs/File/shared/FileCard.tsx
8
8
  var FileCard = (t0) => {
9
9
  const $ = c(31);
@@ -1,7 +1,7 @@
1
1
  import { FileCard } from "./FileCard.js";
2
+ import { clsx } from "clsx";
2
3
  import { c } from "react/compiler-runtime";
3
4
  import { jsx } from "react/jsx-runtime";
4
- import { clsx } from "clsx";
5
5
  //#region src/components/inputs/File/shared/FileCardList.tsx
6
6
  var FileCardList = (t0) => {
7
7
  const $ = c(20);