@povio/ui 6.0.0-rc.10 → 6.0.0-rc.12

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 (107) hide show
  1. package/MIGRATION.md +20 -38
  2. package/README.md +2 -2
  3. package/dist/{Autocomplete-CsJAU233.js → Autocomplete-Bn13u0zu.js} +2 -2
  4. package/dist/{Autocomplete.bound-CGC8m4dK.js → Autocomplete.bound-Dwh__y-Z.js} +1 -1
  5. package/dist/{Calendar-Cr6B7SDx.js → Calendar-yaQubCWK.js} +3 -3
  6. package/dist/{Calendar.lazy-MJisXRJK.js → Calendar.lazy-DcVss9Bk.js} +3 -3
  7. package/dist/{DatePicker-D-YXdY2z.js → DatePicker-bme8zGBo.js} +4 -4
  8. package/dist/{DatePicker.bound-a-6NJTgy.js → DatePicker.bound-M2cjR37s.js} +1 -1
  9. package/dist/{DatePickerInput-2CZtsxdK.js → DatePickerInput-C2881tvS.js} +3 -3
  10. package/dist/{DateRangePicker-3pPW0ZBV.d.ts → DateRangePicker-32D4pWJg.d.ts} +2 -2
  11. package/dist/{DateRangePicker-tuM8Qyvp.js → DateRangePicker-Blg158JD.js} +92 -29
  12. package/dist/{DateRangePicker.bound-vFyFw4wA.d.ts → DateRangePicker.bound-CVtoVsho.d.ts} +1 -1
  13. package/dist/{DateRangePicker.bound-B5SKOkVM.js → DateRangePicker.bound-CkIDsAUf.js} +1 -1
  14. package/dist/{DateTimePicker-8BVP2qeR.js → DateTimePicker-CdRFt8WM.js} +4 -4
  15. package/dist/{DateTimePicker.bound-C3y8TqPk.js → DateTimePicker.bound-nSCVUqd0.js} +1 -1
  16. package/dist/{Dialog-Bn43feu0.js → Dialog-DN5703sy.js} +1 -1
  17. package/dist/{FileInput-DNCKhAq-.js → FileInput-BUwtAF2-.js} +1 -1
  18. package/dist/{FileInput.bound-DCSair97.js → FileInput.bound-C12mOKpg.js} +1 -1
  19. package/dist/{FileUpload-CQFCrvCI.js → FileUpload-D7FMYm-k.js} +1 -1
  20. package/dist/{FileUpload.bound-BwetBdi7.js → FileUpload.bound-DmkuulOi.js} +1 -1
  21. package/dist/{Input-BIuNQb5u.js → Input-CG5LQ0zs.js} +2 -2
  22. package/dist/{Input.bound-QpE3qJqT.js → Input.bound-DYoXyRGy.js} +1 -1
  23. package/dist/{InputContent-C5JlwN5b.js → InputContent-Fx2E4UXl.js} +1 -1
  24. package/dist/{NumberField-CpkLBjIM.js → NumberField-DxuikBcr.js} +2 -2
  25. package/dist/{NumberField.bound-BbZLqewF.js → NumberField.bound-ChJnNyJS.js} +1 -1
  26. package/dist/{NumberRangeInput-47xOaSXq.js → NumberRangeInput-8bOjNEnS.js} +1 -1
  27. package/dist/{NumberRangeInput.bound-B21y7xkb.js → NumberRangeInput.bound-BF6P_ega.js} +1 -1
  28. package/dist/{PageHeader-BwzxymWY.d.ts → PageHeader-DTfzf-dA.d.ts} +6 -3
  29. package/dist/{PasswordInput.bound-DVkRv16z.js → PasswordInput.bound-Dfq5c3JQ.js} +2 -2
  30. package/dist/{RangeCalendar-CAWTz3pq.js → RangeCalendar-DT63UD8K.js} +39 -12
  31. package/dist/{RichTextEditor-16feWcDW.js → RichTextEditor-DfwVdm45.js} +3 -3
  32. package/dist/{Select-CSdr0OcD.js → Select-BM8PNrjC.js} +4 -4
  33. package/dist/{Select.bound-D-Wl7nLz.js → Select.bound--Az1Xwgm.js} +1 -1
  34. package/dist/{SelectListBox-DeiPWhOP.js → SelectListBox-BFSZxDSi.js} +2 -2
  35. package/dist/{TabsFilters-CvYxvrud.js → TabsFilters-DybNturW.js} +1 -1
  36. package/dist/{TextArea-ciY0kt-D.js → TextArea-Blsip3ZC.js} +1 -1
  37. package/dist/{TextArea.bound-DQ_ULvue.js → TextArea.bound-DeaskY6r.js} +1 -1
  38. package/dist/{TimePicker-BKRPMduC.js → TimePicker-4hV5zbgd.js} +3 -3
  39. package/dist/{TimePicker.bound-PtJTz6s3.js → TimePicker.bound-BFSXJvE_.js} +1 -1
  40. package/dist/{TimePickerForm-itDjoV7V.js → TimePickerForm-DD9VA_td.js} +2 -2
  41. package/dist/{TooltipWrapper-BvGO_LUx.js → TooltipWrapper-BSY31JMc.js} +1 -1
  42. package/dist/components/alert-dialog.js +1 -1
  43. package/dist/components/autocomplete.js +1 -1
  44. package/dist/components/badge.js +1 -1
  45. package/dist/components/bottom-sheet-header.js +1 -1
  46. package/dist/components/date-picker.js +1 -1
  47. package/dist/components/date-range-picker.d.ts +16 -2
  48. package/dist/components/date-range-picker.js +2 -2
  49. package/dist/components/date-time-picker.js +1 -1
  50. package/dist/components/dialog.js +1 -1
  51. package/dist/components/file-input.js +1 -1
  52. package/dist/components/file-upload-container.js +1 -1
  53. package/dist/components/file-upload.js +1 -1
  54. package/dist/components/input-frame.js +1 -1
  55. package/dist/components/input.js +1 -1
  56. package/dist/components/number-field.js +1 -1
  57. package/dist/components/number-range-input.js +1 -1
  58. package/dist/components/page-header.d.ts +2 -2
  59. package/dist/components/page-header.js +77 -72
  60. package/dist/components/password-input.js +2 -2
  61. package/dist/components/select.js +1 -1
  62. package/dist/components/tabs-filters.js +1 -1
  63. package/dist/components/tag.js +1 -1
  64. package/dist/components/text-area.js +1 -1
  65. package/dist/components/time-picker.js +1 -1
  66. package/dist/config/confirmation.js +1 -1
  67. package/dist/config/resources.d.ts +1 -1
  68. package/dist/config/resources.js +1 -1
  69. package/dist/config/ui-config.d.ts +1 -1
  70. package/dist/{confirmation.context-CByUxDcn.js → confirmation.context-Bc2yEVp_.js} +1 -1
  71. package/dist/{i18n-D1FWVTPi.js → i18n-D8vXIoiq.js} +0 -14
  72. package/dist/{i18n-DE45mOCM.d.ts → i18n-DM-PUcxQ.d.ts} +0 -14
  73. package/dist/{import-C14g8ng0.js → import-C7W0Wv2r.js} +14 -10
  74. package/dist/index.d.ts +7 -9
  75. package/dist/index.js +22 -24
  76. package/dist/rich-text-editor.js +1 -1
  77. package/dist/{staticDateTimeSegments-bPuA-a2Y.js → staticDateTimeSegments-CVuAhDDl.js} +1 -1
  78. package/dist/tanstack/autocomplete.js +1 -1
  79. package/dist/tanstack/date-picker.js +1 -1
  80. package/dist/tanstack/date-range-picker.d.ts +2 -2
  81. package/dist/tanstack/date-range-picker.js +1 -1
  82. package/dist/tanstack/date-time-picker.js +1 -1
  83. package/dist/tanstack/file-input.js +1 -1
  84. package/dist/tanstack/file-upload.js +1 -1
  85. package/dist/tanstack/input.js +1 -1
  86. package/dist/tanstack/number-field.js +1 -1
  87. package/dist/tanstack/number-range-input.js +1 -1
  88. package/dist/tanstack/password-input.js +1 -1
  89. package/dist/tanstack/rich-text-editor.js +1 -1
  90. package/dist/tanstack/select.js +1 -1
  91. package/dist/tanstack/table.d.ts +2 -2
  92. package/dist/tanstack/table.js +2 -2
  93. package/dist/tanstack/text-area.js +1 -1
  94. package/dist/tanstack/time-picker.js +1 -1
  95. package/dist/{tanstack-zusJduSB.d.ts → tanstack-wNbE6b-h.d.ts} +3 -5
  96. package/dist/tanstack.d.ts +7 -9
  97. package/dist/tanstack.js +22 -24
  98. package/dist/{useTableColumnConfig-D5NxR1Co.js → useTableColumnConfig-CXYgj5xi.js} +3 -157
  99. package/dist/{useTableNav-H5DrogZU.d.ts → useTableNav-BusSFEVC.d.ts} +2 -20
  100. package/package.json +1 -11
  101. package/dist/Pagination-BCGUVYOF.d.ts +0 -12
  102. package/dist/PaginationList-BTmrmOGl.js +0 -220
  103. package/dist/PaginationList-CvlSkJGn.d.ts +0 -18
  104. package/dist/components/pagination-list.d.ts +0 -2
  105. package/dist/components/pagination-list.js +0 -2
  106. package/dist/components/pagination.d.ts +0 -2
  107. package/dist/components/pagination.js +0 -138
package/MIGRATION.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Povio UI migration guide
2
2
 
3
- This guide covers the web UI cleanup, including the focused button cleanup: removal of React Hook Form integration, schema-driven rendering, query selectors, and the admin page builder; stricter input contracts; the form, accessibility, upload, date/time, table, and pagination fixes; and consolidation of redundant button wrappers.
3
+ This guide covers the web UI cleanup, including the focused button cleanup: removal of React Hook Form integration, schema-driven rendering, query selectors, and the admin page builder; stricter input contracts; the form, accessibility, upload, date/time, and table fixes; removal of paginated tables; and consolidation of redundant button wrappers.
4
4
 
5
5
  Migrate one form or page at a time. Preserve its API payloads, permissions, translations, URL state, and design. Choose controls from the meaning of each field, then verify their value types against the public declarations. A TypeScript error should be resolved by fixing the binding or data shape, rather than adding a cast or suppression.
6
6
 
@@ -417,58 +417,40 @@ For each page, carry the old configuration's behavior into explicit components:
417
417
 
418
418
  Keep small shared presentation components such as `QueryFeedback`, `EmptyResults`, and the `normalizeFilter` helper. Preserve the distinction between an empty dataset and a filtered search with no matches. When a refresh fails, keep cached rows visible and show the error with retry.
419
419
 
420
- Keep filters, sorting, page size, and pagination in the established URL state. Use the existing routing serialization helpers; avoid adding another JSON encoding layer around arrays, objects, or quoted strings. Routing serialization was corrected to avoid double encoding.
420
+ Keep filters and sorting in the established URL state. Use the existing routing serialization helpers; avoid adding another JSON encoding layer around arrays, objects, or quoted strings. Routing serialization was corrected to avoid double encoding.
421
421
 
422
422
  The explicit examples in this repository include `apps/admin/src/components/rockets/RocketsPage.tsx`, its `filters/` and `tables/` siblings, and frontend `apps/fe/src/components/rockets/RocketFilters.tsx` and `RocketsTable.tsx`. Existing application code can contain workspace-only table aliases; use the public `row.original` pattern above when creating portable examples.
423
423
 
424
- ## 11. Check pagination boundaries
424
+ ## 11. Replace pagination with infinite loading
425
425
 
426
- TanStack table state and every `usePagination` input/output use zero-based `pageIndex`: the first page is `0`. The hook now defaults to `{ pageIndex: 0, pageSize: 20 }`. The standalone Pagination component's `page` is one-based. PaginatedTable converts between them and resets the index to zero when page size changes.
427
-
428
- Page sizes must be positive safe integers. The built-in page-size editor constrains numeric edits and only calls `onPageSizeChange` with a valid size; clearing it no longer emits `0` or resets pagination. Keep the same validation on application-owned page-size inputs, programmatic state, and API parameters.
429
-
430
- The URL remains one-based: `?page=2` initializes `pageIndex: 1`. The hook writes index `1` back as `page=2`, omits `page` for the first page, and omits `size` for the default size of `20`. Other query parameters are preserved. Invalid page or size values fall back to the default for that field; URL values must be positive safe whole integers.
431
-
432
- Change explicit first-page defaults from `usePagination({ pageIndex: 1, ... })` to `pageIndex: 0`. An explicitly supplied default state still takes precedence over URL initialization. Without it, the hook reads the URL when mounted; it does not rehydrate its state on later URL changes.
433
-
434
- Remove compensating offsets that were added around the old behavior. Apply a conversion exactly once at each boundary:
435
-
436
- ```text
437
- Table state pageIndex 0 → visible page 1
438
- Table state pageIndex 1 → visible page 2
439
- One-based server API page = pageIndex + 1
440
- One-based pager selection → table pageIndex = page - 1
441
- URL page 2 ↔ table pageIndex 1
442
- ```
443
-
444
- For local data, replace `(pageIndex - 1) * pageSize` with `pageIndex * pageSize`. Pass that slice to PaginatedTable; the component displays the rows you supply:
426
+ `PaginatedTable`, `Pagination`, `PaginationList` and `usePagination` were removed, together with the `@povio/ui/pagination` and `@povio/ui/pagination-list` entries and the `ui.pagination.*` translations. Lists always load incrementally:
445
427
 
446
428
  ```tsx
447
- import { PaginatedTable, type TableProps, usePagination } from "@povio/ui/tanstack/table";
429
+ import { InfiniteTable, useSorting } from "@povio/ui/tanstack/table";
448
430
 
449
- type Result = { id: string; name: string };
450
- const columns: TableProps<Result>["columns"] = [
451
- { accessorKey: "name", header: "Name", cell: ({ row }) => row.original.name },
452
- ];
431
+ const PAGE_SIZE = 20;
453
432
 
454
- export function LocalResults({ rows }: { rows: Result[] }) {
455
- const { pagination, setPagination } = usePagination();
456
- const start = pagination.pageIndex * pagination.pageSize;
433
+ export function UsersList() {
434
+ const { order, ...sorting } = useSorting();
435
+ const query = UserQueries.usePaginateInfinite({ limit: PAGE_SIZE, order: order || undefined });
436
+ const items = query.data?.pages.flatMap((page) => page.items) ?? [];
457
437
  return (
458
- <PaginatedTable
459
- items={rows.slice(start, start + pagination.pageSize)}
438
+ <InfiniteTable
439
+ items={items}
460
440
  columns={columns}
461
- totalItems={rows.length}
462
- pagination={pagination}
463
- setPagination={setPagination}
441
+ {...sorting}
442
+ hasNextPage={query.hasNextPage}
443
+ fetchNextPage={query.fetchNextPage}
444
+ isFetchingNextPage={query.isFetchingNextPage}
464
445
  />
465
446
  );
466
447
  }
467
448
  ```
468
449
 
469
- When connecting `usePagination` directly to a standalone Pagination, pass `page={pageIndex + 1}` and convert `onPageChange` back with `pageIndex: page - 1`. A jump-to-page input also shows one-based page numbers. For nonempty results, row ranges start at `pageIndex * pageSize + 1` and end at `Math.min((pageIndex + 1) * pageSize, totalItems)`. Set `pageIndex: 0` when changing page size manually; PaginatedTable already does this for its own pager.
470
-
471
- Check the server API's actual convention before converting its page number. PaginatedTable includes its pager; avoid adding a second one. InfiniteTable remains available for incremental loading; an application-owned API page/cursor is separate from `usePagination` state and retains the API's convention. Check first-page loading, navigation, page-size resets, and reloading a `?page=2` URL so offsets are applied exactly once.
450
+ - Replace `PaginatedTable` with `InfiniteTable` and the list query with its `...Infinite` variant.
451
+ - Replace `usePagination().pageSize` with a constant page size in the component. Remove `page` and `size` from URLs and links.
452
+ - Delete page-number controls, "results per page" selectors and jump-to-page inputs; there is no replacement.
453
+ - Keep `Table` only for short, fixed data that is loaded at once.
472
454
 
473
455
  ## 12. Preserve accessibility while replacing layouts
474
456
 
package/README.md CHANGED
@@ -238,9 +238,9 @@ import { TimePicker } from "@povio/ui/time-picker";
238
238
 
239
239
  Table selection is internally managed by default. Supply `defaultSelectedRows` alone for an initial selection, or `onRowSelectionChange` alone to observe changes. Defaults are read only when mounted. When both props are supplied, selection is controlled: pass the current state through the legacy `defaultSelectedRows` prop and its React state setter through `onRowSelectionChange`. That callback receives TanStack selection values or updater functions. Use stable `getRowId` values for selection keys.
240
240
 
241
- ## Pagination
241
+ ## Lists
242
242
 
243
- `usePagination` from `@povio/ui/tanstack/table` returns zero-based table state, defaulting to `{ pageIndex: 0, pageSize: 20 }`. URL page numbers remain one-based: `?page=2` becomes `pageIndex: 1`, and the first page omits the `page` parameter. Explicit default state overrides URL initialization; URL values are otherwise read when mounted. PaginatedTable accepts that state directly. Standalone Pagination uses one-based `page`, so convert with `pageIndex + 1` and `page - 1` at its boundary. See the [pagination migration steps](MIGRATION.md#11-check-pagination-boundaries) for row slicing, URL behavior, and page-size resets.
243
+ Paginated tables and page controls were removed. Load server lists with `InfiniteTable` and an `...Infinite` query; pass the page size as a constant in the query parameters, not through the URL. Use `Table` only for short, fixed data loaded at once. See [migration step 11](MIGRATION.md#11-replace-pagination-with-infinite-loading).
244
244
 
245
245
  ## Built-package tests
246
246
 
@@ -10,9 +10,9 @@ import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js"
10
10
  import { t as FormField } from "./FormField-dduTMkNH.js";
11
11
  import { t as inputBaseDefinition } from "./input.cva-DZii82eS.js";
12
12
  import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
13
- import { t as TooltipWrapper } from "./TooltipWrapper-BvGO_LUx.js";
13
+ import { t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
14
14
  import { t as popoverDefinition } from "./popover.cva-DAbfSma6.js";
15
- import { t as InputContent } from "./InputContent-C5JlwN5b.js";
15
+ import { t as InputContent } from "./InputContent-Fx2E4UXl.js";
16
16
  import { t as selectListBoxItemDefinition } from "./selectItem.cva-B6vxey2R.js";
17
17
  import { memo, useId, useRef, useState } from "react";
18
18
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
2
2
  import { t as FieldController } from "./form.binding-DOR5gIQf.js";
3
- import { n as AutocompleteInner } from "./Autocomplete-CsJAU233.js";
3
+ import { n as AutocompleteInner } from "./Autocomplete-Bn13u0zu.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/Selection/Autocomplete/Autocomplete.bound.tsx
@@ -6,10 +6,10 @@ import { n as $bc25b811ec97a172$export$40258cc1d95ff477 } from "./ToggleButton-P
6
6
  import { t as Typography } from "./Typography-DCLnPa3P.js";
7
7
  import { n as uiOutlineClass } from "./outline.clsx-DGGQQRkM.js";
8
8
  import { BadgeButton } from "./components/badge-button.js";
9
- import "./i18n-D1FWVTPi.js";
10
- import { t as TimePickerForm } from "./TimePickerForm-itDjoV7V.js";
9
+ import "./i18n-D8vXIoiq.js";
10
+ import { t as TimePickerForm } from "./TimePickerForm-DD9VA_td.js";
11
11
  import { t as useScrollableListBox } from "./useScrollableListBox-oYKqU3Hp.js";
12
- import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-C14g8ng0.js";
12
+ import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-C7W0Wv2r.js";
13
13
  import { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from "lucide-react";
14
14
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  import { t as Spinner } from "./Spinner-DqjP06T1.js";
2
- import { r as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./DatePickerInput-2CZtsxdK.js";
2
+ import { r as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./DatePickerInput-C2881tvS.js";
3
3
  import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
4
4
  import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-DYarfm5F.js";
5
- import { f as $8b141f2f71e88f85$export$2440da353cedad43, g as $8b141f2f71e88f85$export$f18627323ab57ac0, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, p as $8b141f2f71e88f85$export$7e319ea407e63bc0 } from "./staticDateTimeSegments-bPuA-a2Y.js";
5
+ import { f as $8b141f2f71e88f85$export$2440da353cedad43, g as $8b141f2f71e88f85$export$f18627323ab57ac0, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, p as $8b141f2f71e88f85$export$7e319ea407e63bc0 } from "./staticDateTimeSegments-CVuAhDDl.js";
6
6
  import { Suspense, lazy, useMemo, useState } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  import { DateFormatter, toCalendarDate, toCalendarDateTime } from "@internationalized/date";
@@ -110,7 +110,7 @@ function $28aae683a942e141$export$87194bb378cc3ac2(props) {
110
110
  }
111
111
  //#endregion
112
112
  //#region src/components/inputs/DateTime/shared/Calendar.lazy.tsx
113
- const loadCalendar = () => import("./Calendar-Cr6B7SDx.js");
113
+ const loadCalendar = () => import("./Calendar-yaQubCWK.js");
114
114
  const CalendarRenderer = lazy(() => loadCalendar().then(({ Calendar }) => ({ default: Calendar })));
115
115
  /** Fetches the calendar chunk ahead of the dialog opening (hover, focus). */
116
116
  const preloadCalendar = () => {
@@ -5,12 +5,12 @@ import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js
5
5
  import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
6
6
  import { t as FormField } from "./FormField-dduTMkNH.js";
7
7
  import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
8
- import { i as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, n as renderDatePickerTodayIcon, t as DatePickerInput } from "./DatePickerInput-2CZtsxdK.js";
9
- import { i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-bPuA-a2Y.js";
10
- import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-MJisXRJK.js";
8
+ import { i as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, n as renderDatePickerTodayIcon, t as DatePickerInput } from "./DatePickerInput-C2881tvS.js";
9
+ import { i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-CVuAhDDl.js";
10
+ import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-DcVss9Bk.js";
11
11
  import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
12
12
  import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Du0Zn04v.js";
13
- import { t as TooltipWrapper } from "./TooltipWrapper-BvGO_LUx.js";
13
+ import { t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
14
14
  import { t as normalizeDatePickerValue } from "./datePickerValue.utils-CkmPaD6I.js";
15
15
  import { n as useStaticInputHandoff } from "./useStaticInputHandoff-BN0fOerH.js";
16
16
  import { InputFrame } from "./components/input-frame.js";
@@ -1,6 +1,6 @@
1
1
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
2
2
  import { t as FieldController } from "./form.binding-DOR5gIQf.js";
3
- import { n as DatePickerInner } from "./DatePicker-D-YXdY2z.js";
3
+ import { n as DatePickerInner } from "./DatePicker-bme8zGBo.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/DateTime/DatePicker/DatePicker.bound.tsx
@@ -7,12 +7,12 @@ import { IconButton } from "./components/icon-button.js";
7
7
  import { n as FormFieldLabel } from "./FormField-dduTMkNH.js";
8
8
  import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DZii82eS.js";
9
9
  import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
10
- import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-bPuA-a2Y.js";
10
+ import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-CVuAhDDl.js";
11
11
  import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
12
12
  import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
13
13
  import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Du0Zn04v.js";
14
- import "./i18n-D1FWVTPi.js";
15
- import { n as InputClear } from "./TooltipWrapper-BvGO_LUx.js";
14
+ import "./i18n-D8vXIoiq.js";
15
+ import { n as InputClear } from "./TooltipWrapper-BSY31JMc.js";
16
16
  import { Type } from "lucide-react";
17
17
  import { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
18
18
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -76,9 +76,9 @@ type DateRangePickerProps = Omit<DateRangePickerSharedProps, "defaultValue"> & {
76
76
  value?: AbsoluteDateRangePickerValue;
77
77
  /** Emits formatted endpoints (including resolved relative ranges), or null when cleared/incomplete without allowPartialRange. */
78
78
  onChange?: (value: AbsoluteDateRangePickerValue) => void;
79
- /** Selected relative preset key when enableRelativeMode is true; null means no preset. */
79
+ /** Selected relative preset key or day offsets when enableRelativeMode is true; null means no selection. */
80
80
  relativeValue?: string | null;
81
- /** Emits the relative preset key, or null when cleared or switching modes. */
81
+ /** Emits a preset or option value, or day offsets such as `days:-7:+3`; null when cleared or switching modes. */
82
82
  onRelativeChange?: (value: string | null) => void;
83
83
  };
84
84
  type DateRangePickerInnerProps = DateRangePickerSharedProps & {
@@ -9,14 +9,14 @@ import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js
9
9
  import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
10
10
  import { t as FormField } from "./FormField-dduTMkNH.js";
11
11
  import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
12
- import { a as $dd602d3c757202f2$export$4f5203c0d889109e, c as $dd602d3c757202f2$export$f4a51ff076cc9a09, i as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, n as renderDatePickerTodayIcon, o as $dd602d3c757202f2$export$a1d3911297b952d7, r as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, s as $dd602d3c757202f2$export$eac50920cf2fd59a, t as DatePickerInput } from "./DatePickerInput-2CZtsxdK.js";
12
+ import { a as $dd602d3c757202f2$export$4f5203c0d889109e, c as $dd602d3c757202f2$export$f4a51ff076cc9a09, i as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, n as renderDatePickerTodayIcon, o as $dd602d3c757202f2$export$a1d3911297b952d7, r as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, s as $dd602d3c757202f2$export$eac50920cf2fd59a, t as DatePickerInput } from "./DatePickerInput-C2881tvS.js";
13
13
  import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
14
14
  import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-DYarfm5F.js";
15
- import { f as $8b141f2f71e88f85$export$2440da353cedad43, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, i as getStaticDateTimeFocusTarget, m as $8b141f2f71e88f85$export$80ff8fc0ae339c13, o as DateTimeDialogFooter, p as $8b141f2f71e88f85$export$7e319ea407e63bc0, r as getStaticDateRangeSegments, s as DateTimeDialog } from "./staticDateTimeSegments-bPuA-a2Y.js";
15
+ import { f as $8b141f2f71e88f85$export$2440da353cedad43, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, i as getStaticDateTimeFocusTarget, m as $8b141f2f71e88f85$export$80ff8fc0ae339c13, o as DateTimeDialogFooter, p as $8b141f2f71e88f85$export$7e319ea407e63bc0, r as getStaticDateRangeSegments, s as DateTimeDialog } from "./staticDateTimeSegments-CVuAhDDl.js";
16
16
  import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
17
17
  import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Du0Zn04v.js";
18
- import "./i18n-D1FWVTPi.js";
19
- import { t as TooltipWrapper } from "./TooltipWrapper-BvGO_LUx.js";
18
+ import "./i18n-D8vXIoiq.js";
19
+ import { t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
20
20
  import { n as useStaticInputHandoff } from "./useStaticInputHandoff-BN0fOerH.js";
21
21
  import { InputFrame } from "./components/input-frame.js";
22
22
  import { Suspense, lazy, memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
@@ -369,7 +369,7 @@ function $6de3e3f1a7663217$var$isCompleteRange(value) {
369
369
  }
370
370
  //#endregion
371
371
  //#region src/components/inputs/DateTime/shared/RangeCalendar.lazy.tsx
372
- const loadRangeCalendar = () => import("./RangeCalendar-CAWTz3pq.js");
372
+ const loadRangeCalendar = () => import("./RangeCalendar-DT63UD8K.js");
373
373
  const RangeCalendarRenderer = lazy(() => loadRangeCalendar().then(({ RangeCalendar }) => ({ default: RangeCalendar })));
374
374
  /** Fetches the range calendar chunk ahead of the dialog opening (hover, focus). */
375
375
  const preloadRangeCalendar = () => {
@@ -399,10 +399,33 @@ const dateRangePresetValues = [
399
399
  "thisAndLastYear",
400
400
  "soFar"
401
401
  ];
402
+ const RELATIVE_DAYS_VALUE_PATTERN = /^days:([+-]?\d{1,7}):([+-]?\d{1,7})$/;
403
+ /** Whole days from `currentDate` to `date`; negative when `date` is in the past. */
404
+ const getRelativeDaysOffset = (date, currentDate) => toCalendarDate(date).compare(currentDate);
405
+ /** Display form of a single offset, e.g. `-7`, `0` or `+3`. */
406
+ const formatRelativeDaysOffset = (days) => days > 0 ? `+${days}` : `${days}`;
407
+ /** Serializes day offsets into a stable `relativeValue`, e.g. `days:-7:+3`. */
408
+ const formatRelativeDaysValue = ({ start, end }) => `days:${formatRelativeDaysOffset(start)}:${formatRelativeDaysOffset(end)}`;
409
+ /** Returns undefined when the value is not a day-offset value or its start is after its end. */
410
+ const parseRelativeDaysValue = (value) => {
411
+ const match = RELATIVE_DAYS_VALUE_PATTERN.exec(value);
412
+ if (!match) return;
413
+ const start = Number(match[1]);
414
+ const end = Number(match[2]);
415
+ return start <= end ? {
416
+ start,
417
+ end
418
+ } : void 0;
419
+ };
402
420
  const isStoredRelativeDateRangeValue = (value) => typeof value === "object" && value !== null && typeof value.relativeValue === "string";
403
421
  const isRelativeDateRangeValue = (value) => isStoredRelativeDateRangeValue(value) && typeof value.resolvedValue === "object";
404
422
  const isDateRangePresetValue = (value) => dateRangePresetValues.some((preset) => preset === value);
405
423
  const getDateRangePreset = (value, currentDate = today(getLocalTimeZone()), locale = "en-GB") => {
424
+ const relativeDays = parseRelativeDaysValue(value);
425
+ if (relativeDays) return {
426
+ start: currentDate.add({ days: relativeDays.start }),
427
+ end: currentDate.add({ days: relativeDays.end })
428
+ };
406
429
  if (!isDateRangePresetValue(value)) return;
407
430
  const previousYear = currentDate.subtract({ years: 1 });
408
431
  switch (value) {
@@ -462,6 +485,13 @@ const hydrateRelativeDateRangeValue = (value, currentDate = today(getLocalTimeZo
462
485
  };
463
486
  //#endregion
464
487
  //#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.tsx
488
+ const resolveTimeZone = (timeZone) => timeZone === "clientLocal" ? getLocalTimeZone() : timeZone;
489
+ const getRelativeDaysLabel = (value, currentDate, locale, shouldForceLeadingZeros) => {
490
+ const offset = value ? parseRelativeDaysValue(value) : void 0;
491
+ if (!offset) return;
492
+ const formatOffset = (days) => DateTimeUtils.formatCalendarDateLocalized(currentDate.add({ days }), locale, { shouldForceLeadingZeros });
493
+ return `${formatOffset(offset.start)} – ${formatOffset(offset.end)}`;
494
+ };
465
495
  const DateRangePickerBase = (props) => {
466
496
  const ui = UIConfig.useConfig();
467
497
  const { t } = useTranslation();
@@ -479,9 +509,7 @@ const DateRangePickerBase = (props) => {
479
509
  const disableManualEntry = disableManualEntryProp ?? ui.dateInput.disableManualEntry;
480
510
  const autoFixYear = autoFixYearProp ?? ui.dateInput.autoFixYear;
481
511
  const allowPartialRange = allowPartialRangeProp ?? ui.dateInput.allowPartialRange;
482
- const timeZone = ui.dateInput.timeZone;
483
- let effectiveTimeZone = getLocalTimeZone();
484
- if (timeZone !== "clientLocal") effectiveTimeZone = timeZone;
512
+ const effectiveTimeZone = resolveTimeZone(ui.dateInput.timeZone);
485
513
  const [validationRangeError, setValidationRangeError] = useState();
486
514
  const datePickerInputRef = useRef(null);
487
515
  const dateRangePickerRef = useMemo(() => ({ get current() {
@@ -719,6 +747,7 @@ const DateRangePickerBase = (props) => {
719
747
  setHoverDate(null);
720
748
  leftCalendarState.setValue(null);
721
749
  rightCalendarState.setValue(null);
750
+ if (mode === "relative") setActivePreset(null);
722
751
  } else {
723
752
  const { start } = rangeSelection;
724
753
  const end = date;
@@ -737,7 +766,11 @@ const DateRangePickerBase = (props) => {
737
766
  isSelecting: false
738
767
  });
739
768
  setHoverDate(null);
740
- setActivePreset(null);
769
+ const currentDate = today(effectiveTimeZone);
770
+ setActivePreset(mode === "relative" ? formatRelativeDaysValue({
771
+ start: getRelativeDaysOffset(clampedRange.start, currentDate),
772
+ end: getRelativeDaysOffset(clampedRange.end, currentDate)
773
+ }) : null);
741
774
  }
742
775
  }, [
743
776
  rangeSelection,
@@ -745,7 +778,9 @@ const DateRangePickerBase = (props) => {
745
778
  rightCalendarState,
746
779
  dialogState,
747
780
  isDateOutsideBounds,
748
- clampRangeToBounds
781
+ clampRangeToBounds,
782
+ mode,
783
+ effectiveTimeZone
749
784
  ]);
750
785
  const handleKeyboardNavigation = useCallback((event, date, calendarSide) => {
751
786
  const currentState = calendarSide === "left" ? leftCalendarState : rightCalendarState;
@@ -824,6 +859,8 @@ const DateRangePickerBase = (props) => {
824
859
  isSelecting: false
825
860
  });
826
861
  setHoverDate(null);
862
+ leftCalendarState.setAnchorDate(null);
863
+ rightCalendarState.setAnchorDate(null);
827
864
  shouldPreventDefault = true;
828
865
  }
829
866
  if (shouldPreventDefault) {
@@ -837,6 +874,8 @@ const DateRangePickerBase = (props) => {
837
874
  handleDateSelection
838
875
  ]);
839
876
  const syncCalendarStates = useCallback((newValue) => {
877
+ leftCalendarState.setAnchorDate(null);
878
+ rightCalendarState.setAnchorDate(null);
840
879
  if (newValue === null) {
841
880
  setValidationRangeError(void 0);
842
881
  leftCalendarState.setValue(null);
@@ -871,7 +910,7 @@ const DateRangePickerBase = (props) => {
871
910
  ]);
872
911
  const onApply = () => {
873
912
  if (mode === "relative") {
874
- const preset = presets.find((option) => option.value === activePreset);
913
+ const preset = findRelativePreset(activePreset);
875
914
  handledRelativeValueRef.current = activePreset;
876
915
  onRelativeChange?.(activePreset, preset?.clampedValue ?? null);
877
916
  onValueCommit?.();
@@ -931,6 +970,7 @@ const DateRangePickerBase = (props) => {
931
970
  const syncSelectionFromControlledValue = () => {
932
971
  if (mode === "relative") {
933
972
  setActivePreset(relativeValue ?? null);
973
+ showRangeInCalendars(findRelativePreset(relativeValue)?.clampedValue ?? null);
934
974
  return;
935
975
  }
936
976
  const currentValue = state.value;
@@ -1049,23 +1089,43 @@ const DateRangePickerBase = (props) => {
1049
1089
  };
1050
1090
  })
1051
1091
  ];
1052
- const selectPreset = (preset) => {
1053
- if (preset.isDisabled || mode !== "relative" && !preset.clampedValue) return;
1054
- setActivePreset(mode === "relative" ? preset.value : preset.label);
1055
- if (!preset.clampedValue) return;
1056
- const presetValue = preset.clampedValue;
1057
- syncCalendarStates(presetValue);
1058
- const startDate = presetValue.start;
1092
+ const findRelativePreset = (presetValue) => {
1093
+ const preset = presets.find((option) => option.value === presetValue);
1094
+ if (preset || !presetValue) return preset;
1095
+ const label = getRelativeDaysLabel(presetValue, todayDate, locale, shouldForceLeadingZeros);
1096
+ return label ? createPreset({
1097
+ value: presetValue,
1098
+ label,
1099
+ getValue: getPresetRange(presetValue)
1100
+ }) : void 0;
1101
+ };
1102
+ const showRangeInCalendars = (range) => {
1103
+ syncCalendarStates(range);
1104
+ if (!range) return;
1105
+ const startDate = range.start;
1059
1106
  leftCalendarState.setFocusedDate(startDate);
1060
- const endDate = presetValue.end;
1061
- if ((endDate.year - startDate.year) * 12 + (endDate.month - startDate.month) > 2) rightCalendarState.setFocusedDate(endDate);
1107
+ const endDate = range.end;
1108
+ if ((endDate.year - startDate.year) * 12 + (endDate.month - startDate.month) > 1) rightCalendarState.setFocusedDate(endDate);
1062
1109
  else {
1063
1110
  const rightCalendarMonth = startDate.add({ months: 1 });
1064
1111
  rightCalendarState.setFocusedDate(rightCalendarMonth);
1065
1112
  }
1066
- if (mode === "relative") setActivePreset(preset.value);
1067
1113
  };
1068
- const activeRelativeOption = mode === "relative" ? presets.find((preset) => preset.value === relativeValue) : void 0;
1114
+ const selectPreset = (preset) => {
1115
+ if (preset.isDisabled || mode !== "relative" && !preset.clampedValue) return;
1116
+ setActivePreset(mode === "relative" ? preset.value : preset.label);
1117
+ if (!preset.clampedValue) return;
1118
+ showRangeInCalendars(preset.clampedValue);
1119
+ };
1120
+ const onCalendarKeyboardNavigation = (event, date, calendarSide) => {
1121
+ if (mode !== "relative" || event.key !== "Escape") return handleKeyboardNavigation(event, date, calendarSide);
1122
+ if (!rangeSelection.isSelecting) return false;
1123
+ syncSelectionFromControlledValue();
1124
+ event.preventDefault();
1125
+ event.stopPropagation();
1126
+ return true;
1127
+ };
1128
+ const activeRelativeOption = mode === "relative" ? findRelativePreset(relativeValue) : void 0;
1069
1129
  useEffect(() => {
1070
1130
  if (mode !== "relative" || handledRelativeValueRef.current === relativeValue) return;
1071
1131
  handledRelativeValueRef.current = relativeValue;
@@ -1159,7 +1219,10 @@ const DateRangePickerBase = (props) => {
1159
1219
  className: "flex w-full flex-row overflow-auto border-border border-solid [-ms-overflow-style:none] [scrollbar-width:none] md:w-[156px] md:flex-col md:border-r [&::-webkit-scrollbar]:hidden",
1160
1220
  children: [enableRelativeMode && /* @__PURE__ */ jsx(Switch, {
1161
1221
  isSelected: mode === "relative",
1162
- onChange: onModeChange,
1222
+ onChange: (isRelative) => {
1223
+ syncCalendarStates(null);
1224
+ onModeChange?.(isRelative);
1225
+ },
1163
1226
  className: "shrink-0 px-2 py-2 md:px-2",
1164
1227
  children: t(($) => $.ui.datePicker.relativeMode, { ns: "ui" })
1165
1228
  }), presets.map((preset) => /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
@@ -1177,7 +1240,7 @@ const DateRangePickerBase = (props) => {
1177
1240
  }),
1178
1241
  footer: /* @__PURE__ */ jsx(DateTimeDialogFooter, {
1179
1242
  isDisabled,
1180
- isValid: mode === "relative" ? !!activePreset : !dialogState.isInvalid && !!dialogState.value,
1243
+ isValid: mode === "relative" ? !!findRelativePreset(activePreset)?.clampedValue : !dialogState.isInvalid && !!dialogState.value,
1181
1244
  onTodayPress: mode === "relative" ? void 0 : onTodayPress,
1182
1245
  onApply
1183
1246
  }),
@@ -1197,12 +1260,12 @@ const DateRangePickerBase = (props) => {
1197
1260
  calendarProps,
1198
1261
  onApply,
1199
1262
  onRangeChange: syncCalendarStates,
1200
- onDateSelection: mode === "relative" ? void 0 : handleDateSelection,
1263
+ onDateSelection: handleDateSelection,
1201
1264
  onDateHover: handleDateHover,
1202
1265
  rangeSelection,
1203
1266
  hoverDate,
1204
- onKeyboardNavigation: mode === "relative" ? void 0 : handleKeyboardNavigation,
1205
- isRangeSelectionDisabled: mode === "relative"
1267
+ onKeyboardNavigation: onCalendarKeyboardNavigation,
1268
+ getSelectedDateLabel: mode === "relative" ? (date) => formatRelativeDaysOffset(getRelativeDaysOffset(date, todayDate)) : void 0
1206
1269
  })
1207
1270
  })
1208
1271
  })
@@ -1324,7 +1387,7 @@ const DateRangePickerInner = ({ fullIso = true, minValue, maxValue, renderStatic
1324
1387
  },
1325
1388
  ...ui.dateInput.dateRangeOptions
1326
1389
  ] : [];
1327
- const relativeLabel = mode === "relative" ? relativeOptions.find((option) => option.value === props.relativeValue)?.label : void 0;
1390
+ const relativeLabel = mode === "relative" ? relativeOptions.find((option) => option.value === props.relativeValue)?.label ?? getRelativeDaysLabel(props.relativeValue, today(resolveTimeZone(ui.dateInput.timeZone)), locale, shouldForceLeadingZeros) : void 0;
1328
1391
  const startDateValue = relativeLabel ? null : parseCalendarDate(normalizedRange?.start ?? null);
1329
1392
  const endDateValue = relativeLabel ? null : parseCalendarDate(normalizedRange?.end ?? null);
1330
1393
  const hasProvidedRangeValue = mode === "relative" ? !!relativeLabel : !!(normalizedRange?.start || normalizedRange?.end);
@@ -1439,4 +1502,4 @@ const DateRangePickerComponent = ({ defaultValue, value, onChange, ...props }) =
1439
1502
  };
1440
1503
  const DateRangePicker = memo(DateRangePickerComponent);
1441
1504
  //#endregion
1442
- export { hydrateRelativeDateRangeValue as a, isStoredRelativeDateRangeValue as c, getDateRangePreset as i, resolveDateRangePreset as l, DateRangePickerInner as n, isDateRangePresetValue as o, dateRangePresetValues as r, isRelativeDateRangeValue as s, DateRangePicker as t };
1505
+ export { formatRelativeDaysValue as a, hydrateRelativeDateRangeValue as c, isStoredRelativeDateRangeValue as d, parseRelativeDaysValue as f, formatRelativeDaysOffset as i, isDateRangePresetValue as l, DateRangePickerInner as n, getDateRangePreset as o, resolveDateRangePreset as p, dateRangePresetValues as r, getRelativeDaysOffset as s, DateRangePicker as t, isRelativeDateRangeValue as u };
@@ -1,4 +1,4 @@
1
- import { a as DateRangePickerProps$1 } from "./DateRangePicker-3pPW0ZBV.js";
1
+ import { a as DateRangePickerProps$1 } from "./DateRangePicker-32D4pWJg.js";
2
2
  import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
3
3
  //#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.bound.d.ts
4
4
  type ControlledDateRangePickerProps<TFieldValues extends FieldValues> = FormControlProps<DateRangePickerProps$1, TFieldValues>;
@@ -1,6 +1,6 @@
1
1
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
2
2
  import { t as FieldController } from "./form.binding-DOR5gIQf.js";
3
- import { n as DateRangePickerInner } from "./DateRangePicker-tuM8Qyvp.js";
3
+ import { n as DateRangePickerInner } from "./DateRangePicker-Blg158JD.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.bound.tsx
@@ -5,12 +5,12 @@ import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js
5
5
  import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
6
6
  import { t as FormField } from "./FormField-dduTMkNH.js";
7
7
  import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
8
- import { i as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, n as renderDatePickerTodayIcon, t as DatePickerInput } from "./DatePickerInput-2CZtsxdK.js";
9
- import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-bPuA-a2Y.js";
10
- import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-MJisXRJK.js";
8
+ import { i as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, n as renderDatePickerTodayIcon, t as DatePickerInput } from "./DatePickerInput-C2881tvS.js";
9
+ import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-CVuAhDDl.js";
10
+ import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-DcVss9Bk.js";
11
11
  import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
12
12
  import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Du0Zn04v.js";
13
- import { t as TooltipWrapper } from "./TooltipWrapper-BvGO_LUx.js";
13
+ import { t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
14
14
  import { t as normalizeDatePickerValue } from "./datePickerValue.utils-CkmPaD6I.js";
15
15
  import { n as useStaticInputHandoff } from "./useStaticInputHandoff-BN0fOerH.js";
16
16
  import { InputFrame } from "./components/input-frame.js";
@@ -1,6 +1,6 @@
1
1
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
2
2
  import { t as FieldController } from "./form.binding-DOR5gIQf.js";
3
- import { n as DateTimePickerInner } from "./DateTimePicker-8BVP2qeR.js";
3
+ import { n as DateTimePickerInner } from "./DateTimePicker-CdRFt8WM.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/DateTime/DateTimePicker/DateTimePicker.bound.tsx
@@ -3,7 +3,7 @@ import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
3
3
  import { n as $f2ff30fde7b014be$export$3ddf2d174ce01153 } from "./Dialog-C9H9_BmK.js";
4
4
  import { n as $8b8d26808cb8cb53$export$8948f78d83984c69, t as $8b8d26808cb8cb53$export$2b77a92f1a5ad772 } from "./Modal-DcLWF9cB.js";
5
5
  import { IconButton } from "./components/icon-button.js";
6
- import "./i18n-D1FWVTPi.js";
6
+ import "./i18n-D8vXIoiq.js";
7
7
  import { i as dialogOverlayDefinition, n as dialogMainDefinition, t as dialogContentDefinition } from "./dialog.cva-BIpz6HcA.js";
8
8
  import { X } from "lucide-react";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -8,7 +8,7 @@ import { IconButton } from "./components/icon-button.js";
8
8
  import { i as $a8ea2faf2ebe4d2f$re_export$useLabels } from "./import-D_3dPATF.js";
9
9
  import { t as FormField } from "./FormField-dduTMkNH.js";
10
10
  import { a as inputSizeDefinition } from "./input.cva-DZii82eS.js";
11
- import "./i18n-D1FWVTPi.js";
11
+ import "./i18n-D8vXIoiq.js";
12
12
  import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
13
13
  import { Upload, X } from "lucide-react";
14
14
  import { memo, useState } from "react";
@@ -1,6 +1,6 @@
1
1
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
2
2
  import { t as FieldController } from "./form.binding-DOR5gIQf.js";
3
- import { n as FileInputBase } from "./FileInput-DNCKhAq-.js";
3
+ import { n as FileInputBase } from "./FileInput-BUwtAF2-.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/File/FileInput.bound.tsx
@@ -8,7 +8,7 @@ import { t as Button } from "./Button-BaODzvZd.js";
8
8
  import { IconButton } from "./components/icon-button.js";
9
9
  import { i as $a8ea2faf2ebe4d2f$re_export$useLabels } from "./import-D_3dPATF.js";
10
10
  import { t as FormField } from "./FormField-dduTMkNH.js";
11
- import "./i18n-D1FWVTPi.js";
11
+ import "./i18n-D8vXIoiq.js";
12
12
  import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
13
13
  import { t as Progress } from "./Progress-RiEGGxNG.js";
14
14
  import { t as fileUploadDropZoneDefinition } from "./fileUpload.cva-BYzXGc9C.js";
@@ -1,6 +1,6 @@
1
1
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
2
2
  import { t as FieldController } from "./form.binding-DOR5gIQf.js";
3
- import { n as FileUploadBase } from "./FileUpload-CQFCrvCI.js";
3
+ import { n as FileUploadBase } from "./FileUpload-D7FMYm-k.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/File/FileUpload.bound.tsx
@@ -7,10 +7,10 @@ import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js"
7
7
  import { t as FormField } from "./FormField-dduTMkNH.js";
8
8
  import { t as inputBaseDefinition } from "./input.cva-DZii82eS.js";
9
9
  import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
10
- import { t as TooltipWrapper } from "./TooltipWrapper-BvGO_LUx.js";
10
+ import { t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
11
11
  import { n as useStaticInputHandoff } from "./useStaticInputHandoff-BN0fOerH.js";
12
12
  import { InputFrame } from "./components/input-frame.js";
13
- import { n as clearInput, t as InputContent } from "./InputContent-C5JlwN5b.js";
13
+ import { n as clearInput, t as InputContent } from "./InputContent-Fx2E4UXl.js";
14
14
  import { memo, useEffect, useRef, useState } from "react";
15
15
  import { jsx } from "react/jsx-runtime";
16
16
  import { useFocusVisible } from "@react-aria/interactions";
@@ -1,6 +1,6 @@
1
1
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
2
2
  import { t as FieldController } from "./form.binding-DOR5gIQf.js";
3
- import { r as InputInner } from "./Input-BIuNQb5u.js";
3
+ import { r as InputInner } from "./Input-CG5LQ0zs.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/Input/Input.bound.tsx
@@ -6,7 +6,7 @@ import { t as Spinner } from "./Spinner-DqjP06T1.js";
6
6
  import { IconButton } from "./components/icon-button.js";
7
7
  import { n as FormFieldLabel } from "./FormField-dduTMkNH.js";
8
8
  import { a as inputSizeDefinition, r as inputContentWrapperDefinition } from "./input.cva-DZii82eS.js";
9
- import { n as InputClear } from "./TooltipWrapper-BvGO_LUx.js";
9
+ import { n as InputClear } from "./TooltipWrapper-BSY31JMc.js";
10
10
  import { isValidElement } from "react";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
12
12
  import { flushSync } from "react-dom";