@povio/ui 6.0.0-rc.11 → 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 (99) hide show
  1. package/MIGRATION.md +20 -38
  2. package/README.md +2 -2
  3. package/dist/{Autocomplete-BxRjxjtp.js → Autocomplete-Bn13u0zu.js} +2 -2
  4. package/dist/{Autocomplete.bound-DweyHUI5.js → Autocomplete.bound-Dwh__y-Z.js} +1 -1
  5. package/dist/{Calendar-DX0dVo6z.js → Calendar-yaQubCWK.js} +3 -3
  6. package/dist/{Calendar.lazy-W51M56GQ.js → Calendar.lazy-DcVss9Bk.js} +3 -3
  7. package/dist/{DatePicker-CqNS7lgR.js → DatePicker-bme8zGBo.js} +4 -4
  8. package/dist/{DatePicker.bound-Dxg2LM89.js → DatePicker.bound-M2cjR37s.js} +1 -1
  9. package/dist/{DatePickerInput-B2Pc_aJr.js → DatePickerInput-C2881tvS.js} +3 -3
  10. package/dist/{DateRangePicker-C3ClfSfj.js → DateRangePicker-Blg158JD.js} +12 -16
  11. package/dist/{DateRangePicker.bound-PR9rBoXc.js → DateRangePicker.bound-CkIDsAUf.js} +1 -1
  12. package/dist/{DateTimePicker-CYa2J-1r.js → DateTimePicker-CdRFt8WM.js} +4 -4
  13. package/dist/{DateTimePicker.bound-CQxnRveH.js → DateTimePicker.bound-nSCVUqd0.js} +1 -1
  14. package/dist/{Dialog-96c4Pzfm.js → Dialog-DN5703sy.js} +1 -1
  15. package/dist/{FileInput-IRM0C9W6.js → FileInput-BUwtAF2-.js} +1 -1
  16. package/dist/{FileInput.bound-CctyulN9.js → FileInput.bound-C12mOKpg.js} +1 -1
  17. package/dist/{FileUpload-Dfs3FvJ7.js → FileUpload-D7FMYm-k.js} +1 -1
  18. package/dist/{FileUpload.bound-vik_sTkm.js → FileUpload.bound-DmkuulOi.js} +1 -1
  19. package/dist/{Input-UbFhc_J2.js → Input-CG5LQ0zs.js} +2 -2
  20. package/dist/{Input.bound-0iJO2-ia.js → Input.bound-DYoXyRGy.js} +1 -1
  21. package/dist/{InputContent-D7lnNLWk.js → InputContent-Fx2E4UXl.js} +1 -1
  22. package/dist/{NumberField-twW8zuJ9.js → NumberField-DxuikBcr.js} +2 -2
  23. package/dist/{NumberField.bound-DHDsBNvI.js → NumberField.bound-ChJnNyJS.js} +1 -1
  24. package/dist/{NumberRangeInput-gT6gEJIz.js → NumberRangeInput-8bOjNEnS.js} +1 -1
  25. package/dist/{NumberRangeInput.bound-5Yv3Og73.js → NumberRangeInput.bound-BF6P_ega.js} +1 -1
  26. package/dist/{PasswordInput.bound-CXtbMCD6.js → PasswordInput.bound-Dfq5c3JQ.js} +2 -2
  27. package/dist/{RangeCalendar-0W1YFZqn.js → RangeCalendar-DT63UD8K.js} +34 -7
  28. package/dist/{RichTextEditor-BuqZth3X.js → RichTextEditor-DfwVdm45.js} +3 -3
  29. package/dist/{Select-B-TuE_Fh.js → Select-BM8PNrjC.js} +4 -4
  30. package/dist/{Select.bound-CNCChZww.js → Select.bound--Az1Xwgm.js} +1 -1
  31. package/dist/{SelectListBox-Dlonoc5z.js → SelectListBox-BFSZxDSi.js} +2 -2
  32. package/dist/{TabsFilters-CWUNeqYa.js → TabsFilters-DybNturW.js} +1 -1
  33. package/dist/{TextArea-DakA3nzZ.js → TextArea-Blsip3ZC.js} +1 -1
  34. package/dist/{TextArea.bound-CDVPP_qb.js → TextArea.bound-DeaskY6r.js} +1 -1
  35. package/dist/{TimePicker-RFzfDezn.js → TimePicker-4hV5zbgd.js} +3 -3
  36. package/dist/{TimePicker.bound-DPia51Qs.js → TimePicker.bound-BFSXJvE_.js} +1 -1
  37. package/dist/{TimePickerForm-DohOZViU.js → TimePickerForm-DD9VA_td.js} +2 -2
  38. package/dist/{TooltipWrapper-DLBksJsF.js → TooltipWrapper-BSY31JMc.js} +1 -1
  39. package/dist/components/alert-dialog.js +1 -1
  40. package/dist/components/autocomplete.js +1 -1
  41. package/dist/components/badge.js +1 -1
  42. package/dist/components/bottom-sheet-header.js +1 -1
  43. package/dist/components/date-picker.js +1 -1
  44. package/dist/components/date-range-picker.js +1 -1
  45. package/dist/components/date-time-picker.js +1 -1
  46. package/dist/components/dialog.js +1 -1
  47. package/dist/components/file-input.js +1 -1
  48. package/dist/components/file-upload-container.js +1 -1
  49. package/dist/components/file-upload.js +1 -1
  50. package/dist/components/input-frame.js +1 -1
  51. package/dist/components/input.js +1 -1
  52. package/dist/components/number-field.js +1 -1
  53. package/dist/components/number-range-input.js +1 -1
  54. package/dist/components/password-input.js +2 -2
  55. package/dist/components/select.js +1 -1
  56. package/dist/components/tabs-filters.js +1 -1
  57. package/dist/components/tag.js +1 -1
  58. package/dist/components/text-area.js +1 -1
  59. package/dist/components/time-picker.js +1 -1
  60. package/dist/config/confirmation.js +1 -1
  61. package/dist/config/resources.d.ts +1 -1
  62. package/dist/config/resources.js +1 -1
  63. package/dist/{confirmation.context-BwlIEVeF.js → confirmation.context-Bc2yEVp_.js} +1 -1
  64. package/dist/{i18n-BE9Wvs9L.js → i18n-D8vXIoiq.js} +0 -16
  65. package/dist/{i18n-EDC8xyfH.d.ts → i18n-DM-PUcxQ.d.ts} +0 -16
  66. package/dist/{import-Dkfk7PHt.js → import-C7W0Wv2r.js} +1 -1
  67. package/dist/index.d.ts +4 -6
  68. package/dist/index.js +22 -24
  69. package/dist/rich-text-editor.js +1 -1
  70. package/dist/{staticDateTimeSegments-4tIzPL8l.js → staticDateTimeSegments-CVuAhDDl.js} +1 -1
  71. package/dist/tanstack/autocomplete.js +1 -1
  72. package/dist/tanstack/date-picker.js +1 -1
  73. package/dist/tanstack/date-range-picker.js +1 -1
  74. package/dist/tanstack/date-time-picker.js +1 -1
  75. package/dist/tanstack/file-input.js +1 -1
  76. package/dist/tanstack/file-upload.js +1 -1
  77. package/dist/tanstack/input.js +1 -1
  78. package/dist/tanstack/number-field.js +1 -1
  79. package/dist/tanstack/number-range-input.js +1 -1
  80. package/dist/tanstack/password-input.js +1 -1
  81. package/dist/tanstack/rich-text-editor.js +1 -1
  82. package/dist/tanstack/select.js +1 -1
  83. package/dist/tanstack/table.d.ts +2 -2
  84. package/dist/tanstack/table.js +2 -2
  85. package/dist/tanstack/text-area.js +1 -1
  86. package/dist/tanstack/time-picker.js +1 -1
  87. package/dist/{tanstack-CtuKX9Ss.d.ts → tanstack-wNbE6b-h.d.ts} +1 -3
  88. package/dist/tanstack.d.ts +4 -6
  89. package/dist/tanstack.js +22 -24
  90. package/dist/{useTableColumnConfig-D3KH4Rpo.js → useTableColumnConfig-CXYgj5xi.js} +3 -157
  91. package/dist/{useTableNav-H5DrogZU.d.ts → useTableNav-BusSFEVC.d.ts} +2 -20
  92. package/package.json +1 -11
  93. package/dist/Pagination-BCGUVYOF.d.ts +0 -12
  94. package/dist/PaginationList-CvlSkJGn.d.ts +0 -18
  95. package/dist/PaginationList-D7SRwySe.js +0 -220
  96. package/dist/components/pagination-list.d.ts +0 -2
  97. package/dist/components/pagination-list.js +0 -2
  98. package/dist/components/pagination.d.ts +0 -2
  99. 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-DLBksJsF.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-D7lnNLWk.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-BxRjxjtp.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-BE9Wvs9L.js";
10
- import { t as TimePickerForm } from "./TimePickerForm-DohOZViU.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-Dkfk7PHt.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-B2Pc_aJr.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-4tIzPL8l.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-DX0dVo6z.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-B2Pc_aJr.js";
9
- import { i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-4tIzPL8l.js";
10
- import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-W51M56GQ.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-DLBksJsF.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-CqNS7lgR.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-4tIzPL8l.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-BE9Wvs9L.js";
15
- import { n as InputClear } from "./TooltipWrapper-DLBksJsF.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";
@@ -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-B2Pc_aJr.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-4tIzPL8l.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-BE9Wvs9L.js";
19
- import { t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.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-0W1YFZqn.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 = () => {
@@ -485,14 +485,12 @@ const hydrateRelativeDateRangeValue = (value, currentDate = today(getLocalTimeZo
485
485
  };
486
486
  //#endregion
487
487
  //#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.tsx
488
- const getRelativeDaysLabel = (value, t) => {
488
+ const resolveTimeZone = (timeZone) => timeZone === "clientLocal" ? getLocalTimeZone() : timeZone;
489
+ const getRelativeDaysLabel = (value, currentDate, locale, shouldForceLeadingZeros) => {
489
490
  const offset = value ? parseRelativeDaysValue(value) : void 0;
490
491
  if (!offset) return;
491
- return t(($) => $.ui.datePicker.relativeDaysLabel, {
492
- ns: "ui",
493
- start: formatRelativeDaysOffset(offset.start),
494
- end: formatRelativeDaysOffset(offset.end)
495
- });
492
+ const formatOffset = (days) => DateTimeUtils.formatCalendarDateLocalized(currentDate.add({ days }), locale, { shouldForceLeadingZeros });
493
+ return `${formatOffset(offset.start)} – ${formatOffset(offset.end)}`;
496
494
  };
497
495
  const DateRangePickerBase = (props) => {
498
496
  const ui = UIConfig.useConfig();
@@ -511,9 +509,7 @@ const DateRangePickerBase = (props) => {
511
509
  const disableManualEntry = disableManualEntryProp ?? ui.dateInput.disableManualEntry;
512
510
  const autoFixYear = autoFixYearProp ?? ui.dateInput.autoFixYear;
513
511
  const allowPartialRange = allowPartialRangeProp ?? ui.dateInput.allowPartialRange;
514
- const timeZone = ui.dateInput.timeZone;
515
- let effectiveTimeZone = getLocalTimeZone();
516
- if (timeZone !== "clientLocal") effectiveTimeZone = timeZone;
512
+ const effectiveTimeZone = resolveTimeZone(ui.dateInput.timeZone);
517
513
  const [validationRangeError, setValidationRangeError] = useState();
518
514
  const datePickerInputRef = useRef(null);
519
515
  const dateRangePickerRef = useMemo(() => ({ get current() {
@@ -1096,7 +1092,7 @@ const DateRangePickerBase = (props) => {
1096
1092
  const findRelativePreset = (presetValue) => {
1097
1093
  const preset = presets.find((option) => option.value === presetValue);
1098
1094
  if (preset || !presetValue) return preset;
1099
- const label = getRelativeDaysLabel(presetValue, t);
1095
+ const label = getRelativeDaysLabel(presetValue, todayDate, locale, shouldForceLeadingZeros);
1100
1096
  return label ? createPreset({
1101
1097
  value: presetValue,
1102
1098
  label,
@@ -1391,7 +1387,7 @@ const DateRangePickerInner = ({ fullIso = true, minValue, maxValue, renderStatic
1391
1387
  },
1392
1388
  ...ui.dateInput.dateRangeOptions
1393
1389
  ] : [];
1394
- const relativeLabel = mode === "relative" ? relativeOptions.find((option) => option.value === props.relativeValue)?.label ?? getRelativeDaysLabel(props.relativeValue, t) : 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;
1395
1391
  const startDateValue = relativeLabel ? null : parseCalendarDate(normalizedRange?.start ?? null);
1396
1392
  const endDateValue = relativeLabel ? null : parseCalendarDate(normalizedRange?.end ?? null);
1397
1393
  const hasProvidedRangeValue = mode === "relative" ? !!relativeLabel : !!(normalizedRange?.start || normalizedRange?.end);
@@ -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-C3ClfSfj.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-B2Pc_aJr.js";
9
- import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-4tIzPL8l.js";
10
- import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-W51M56GQ.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-DLBksJsF.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-CYa2J-1r.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-BE9Wvs9L.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-BE9Wvs9L.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-IRM0C9W6.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-BE9Wvs9L.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-Dfs3FvJ7.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-DLBksJsF.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-D7lnNLWk.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-UbFhc_J2.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-DLBksJsF.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";
@@ -10,10 +10,10 @@ import { t as inputBaseDefinition } from "./input.cva-DZii82eS.js";
10
10
  import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
11
11
  import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "./numberStatic.utils-BIyZuILs.js";
12
12
  import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
13
- import { t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.js";
13
+ import { t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
14
14
  import { n as useStaticInputHandoff } from "./useStaticInputHandoff-BN0fOerH.js";
15
15
  import { InputFrame } from "./components/input-frame.js";
16
- import { n as clearInput, t as InputContent } from "./InputContent-D7lnNLWk.js";
16
+ import { n as clearInput, t as InputContent } from "./InputContent-Fx2E4UXl.js";
17
17
  import { memo, useCallback, useEffect, useRef, useState } from "react";
18
18
  import { jsx } from "react/jsx-runtime";
19
19
  import { useNumberField } from "react-aria";
@@ -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 NumberFieldInner } from "./NumberField-twW8zuJ9.js";
3
+ import { r as NumberFieldInner } from "./NumberField-DxuikBcr.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/Input/NumberField/NumberField.bound.tsx
@@ -9,7 +9,7 @@ import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-
9
9
  import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
10
10
  import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "./numberStatic.utils-BIyZuILs.js";
11
11
  import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
12
- import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.js";
12
+ import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
13
13
  import { n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-BN0fOerH.js";
14
14
  import { InputFrame } from "./components/input-frame.js";
15
15
  import { memo, useEffect, useRef, useState } from "react";
@@ -1,5 +1,5 @@
1
1
  import { t as FieldController } from "./form.binding-DOR5gIQf.js";
2
- import { n as NumberRangeInputInner } from "./NumberRangeInput-gT6gEJIz.js";
2
+ import { n as NumberRangeInputInner } from "./NumberRangeInput-8bOjNEnS.js";
3
3
  import { memo } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/components/inputs/Input/NumberRangeInput/NumberRangeInput.bound.tsx
@@ -1,5 +1,5 @@
1
- import "./i18n-BE9Wvs9L.js";
2
- import { t as Input } from "./Input.bound-0iJO2-ia.js";
1
+ import "./i18n-D8vXIoiq.js";
2
+ import { t as Input } from "./Input.bound-DYoXyRGy.js";
3
3
  import { Eye, EyeOff } from "lucide-react";
4
4
  import { memo, useState } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
@@ -1,11 +1,12 @@
1
1
  import { t as clsx } from "./clsx-CnD0nOiA.js";
2
2
  import { IconButton } from "./components/icon-button.js";
3
3
  import { BadgeButton } from "./components/badge-button.js";
4
- import "./i18n-BE9Wvs9L.js";
5
- import { t as Select } from "./Select-B-TuE_Fh.js";
6
- import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-Dkfk7PHt.js";
4
+ import { t as useBreakpoint } from "./useBreakpoint-CJ3mx7UF.js";
5
+ import "./i18n-D8vXIoiq.js";
6
+ import { t as Select } from "./Select-BM8PNrjC.js";
7
+ import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-C7W0Wv2r.js";
7
8
  import { ChevronDown, ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react";
8
- import { useMemo, useRef } from "react";
9
+ import { useEffect, useMemo, useRef } from "react";
9
10
  import { jsx, jsxs } from "react/jsx-runtime";
10
11
  import { useTranslation } from "react-i18next";
11
12
  import { useRangeCalendar } from "@react-aria/calendar";
@@ -192,17 +193,43 @@ const CalendarSelectHeader = ({ state, isPrevMonthDisabled, isPrevYearDisabled,
192
193
  const RangeCalendar = ({ showWeekNumbers, className, leftCalendarState, rightCalendarState, calendarProps, onApply, onRangeChange: _onRangeChange, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, getSelectedDateLabel }) => {
193
194
  const leftRef = useRef(null);
194
195
  const rightRef = useRef(null);
196
+ const isDesktop = useBreakpoint("md");
195
197
  const { calendarProps: leftCalendarAriaProps } = useRangeCalendar(calendarProps, leftCalendarState, leftRef);
196
198
  const { calendarProps: rightCalendarAriaProps } = useRangeCalendar(calendarProps, rightCalendarState, rightRef);
197
199
  const leftDate = leftCalendarState.visibleRange.start;
198
200
  const rightDate = rightCalendarState.visibleRange.start;
201
+ useEffect(() => {
202
+ if (!isDesktop && rightDate.compare(leftDate) <= 0) {
203
+ const nextMonth = leftDate.add({ months: 1 });
204
+ if (!calendarProps.maxValue || nextMonth.compare(calendarProps.maxValue) <= 0) {
205
+ rightCalendarState.setFocusedDate(nextMonth);
206
+ rightCalendarState.setFocused(false);
207
+ }
208
+ }
209
+ }, [
210
+ isDesktop,
211
+ leftDate,
212
+ rightDate,
213
+ rightCalendarState,
214
+ calendarProps.maxValue
215
+ ]);
199
216
  const handleLeftKeyboardNavigation = (event, date) => {
217
+ if (!isDesktop && [
218
+ "ArrowLeft",
219
+ "ArrowRight",
220
+ "ArrowUp",
221
+ "ArrowDown"
222
+ ].includes(event.key)) return false;
200
223
  return onKeyboardNavigation?.(event, date, "left") ?? false;
201
224
  };
202
225
  const handleRightKeyboardNavigation = (event, date) => {
203
226
  return onKeyboardNavigation?.(event, date, "right") ?? false;
204
227
  };
205
228
  const handleLeftNavigate = (newDate) => {
229
+ if (!isDesktop) {
230
+ leftCalendarState.setFocusedDate(newDate);
231
+ return;
232
+ }
206
233
  const rightCurrentDate = rightCalendarState.visibleRange.start;
207
234
  if (newDate.year < rightCurrentDate.year || newDate.year === rightCurrentDate.year && newDate.month < rightCurrentDate.month) leftCalendarState.setFocusedDate(newDate);
208
235
  else {
@@ -236,10 +263,10 @@ const RangeCalendar = ({ showWeekNumbers, className, leftCalendarState, rightCal
236
263
  className: clsx("flex flex-col items-center", showWeekNumbers && "w-full"),
237
264
  children: [/* @__PURE__ */ jsx(CalendarSelectHeader, {
238
265
  state: leftCalendarState,
239
- isNextMonthDisabled: isNextDisabled,
240
- isNextYearDisabled: isNextDisabled,
266
+ isNextMonthDisabled: isDesktop && isNextDisabled,
267
+ isNextYearDisabled: isDesktop && isNextDisabled,
241
268
  onNavigate: handleLeftNavigate,
242
- maxDate: rightDate
269
+ maxDate: isDesktop ? rightDate : void 0
243
270
  }), /* @__PURE__ */ jsx(CalendarGrid, {
244
271
  showWeekNumbers,
245
272
  firstDayOfWeek: calendarProps.firstDayOfWeek,
@@ -14,10 +14,10 @@ import { t as Button } from "./Button-BaODzvZd.js";
14
14
  import { IconButton } from "./components/icon-button.js";
15
15
  import { n as FormFieldLabel, t as FormField } from "./FormField-dduTMkNH.js";
16
16
  import { i as inputSideDefinition, o as useInputCva } from "./input.cva-DZii82eS.js";
17
- import "./i18n-BE9Wvs9L.js";
17
+ import "./i18n-D8vXIoiq.js";
18
18
  import { t as popoverDefinition } from "./popover.cva-DAbfSma6.js";
19
- import { t as Input } from "./Input-UbFhc_J2.js";
20
- import { t as Select } from "./Select-B-TuE_Fh.js";
19
+ import { t as Input } from "./Input-CG5LQ0zs.js";
20
+ import { t as Select } from "./Select-BM8PNrjC.js";
21
21
  import { Popover } from "./components/popover.js";
22
22
  import { AlignCenter, AlignJustify, AlignLeft, AlignRight, Baseline, Bold, ChevronDown, Highlighter, Italic, Link, List, ListOrdered, Strikethrough, Underline } from "lucide-react";
23
23
  import $ahdqC$react, { createContext, forwardRef, memo, useContext, useEffect, useMemo, useRef, useState } from "react";
@@ -16,12 +16,12 @@ import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js
16
16
  import { n as FormFieldLabel, t as FormField } from "./FormField-dduTMkNH.js";
17
17
  import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DZii82eS.js";
18
18
  import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
19
- import "./i18n-BE9Wvs9L.js";
20
- import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.js";
19
+ import "./i18n-D8vXIoiq.js";
20
+ import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
21
21
  import { t as popoverDefinition } from "./popover.cva-DAbfSma6.js";
22
22
  import { n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-BN0fOerH.js";
23
23
  import { InputFrame } from "./components/input-frame.js";
24
- import { t as Input } from "./Input-UbFhc_J2.js";
24
+ import { t as Input } from "./Input-CG5LQ0zs.js";
25
25
  import { Tag } from "./components/tag.js";
26
26
  import { n as selectInputTagsContentWrapperDefinition, t as selectPopoverDefinition } from "./selectDesktop.cva-DStkOdwm.js";
27
27
  import { ChevronDown, Search, X } from "lucide-react";
@@ -686,7 +686,7 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
686
686
  //#region src/components/inputs/Selection/shared/SelectListBox.lazy.tsx
687
687
  let loadedListBox;
688
688
  let pendingListBox;
689
- const loadSelectListBox = () => pendingListBox ??= import("./SelectListBox-Dlonoc5z.js").then(({ SelectListBox }) => {
689
+ const loadSelectListBox = () => pendingListBox ??= import("./SelectListBox-BFSZxDSi.js").then(({ SelectListBox }) => {
690
690
  loadedListBox = SelectListBox;
691
691
  return SelectListBox;
692
692
  }).catch((error) => {
@@ -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 SelectInner } from "./Select-B-TuE_Fh.js";
3
+ import { n as SelectInner } from "./Select-BM8PNrjC.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/Selection/Select/Select.bound.tsx
@@ -5,9 +5,9 @@ import { i as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$e
5
5
  import { n as $a3be900807531178$re_export$ListLayout, r as $a3be900807531178$re_export$Rect } from "./exports-BNrTn8Tj.js";
6
6
  import { t as Spinner } from "./Spinner-DqjP06T1.js";
7
7
  import { t as CheckboxCheckmark } from "./CheckboxCheckmark-DWsYVZuu.js";
8
- import "./i18n-BE9Wvs9L.js";
8
+ import "./i18n-D8vXIoiq.js";
9
9
  import { t as selectListBoxItemDefinition } from "./selectItem.cva-B6vxey2R.js";
10
- import { c as LoadingItemId, o as SelectContext } from "./Select-B-TuE_Fh.js";
10
+ import { c as LoadingItemId, o as SelectContext } from "./Select-BM8PNrjC.js";
11
11
  import { t as useIntersectionObserver } from "./useIntersectionObserver-DFAhTsV0.js";
12
12
  import { Check } from "lucide-react";
13
13
  import $ahdqC$react, { createContext, useCallback, useContext, useLayoutEffect, useMemo, useRef } from "react";