@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
@@ -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-BvGO_LUx.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-C5JlwN5b.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-CpkLBjIM.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-BvGO_LUx.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-47xOaSXq.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
@@ -14,6 +14,7 @@ type PageHeaderTopLinkProps = {
14
14
  breadcrumbs?: never;
15
15
  backLink?: PageHeaderBackLink;
16
16
  };
17
+ type PageHeaderSize = "default" | "compact";
17
18
  type PageHeaderProps = PageHeaderTopLinkProps & {
18
19
  title: ReactNode;
19
20
  /** Sits beside the title, usually a `Badge`. */
@@ -22,8 +23,10 @@ type PageHeaderProps = PageHeaderTopLinkProps & {
22
23
  actions?: ReactNode;
23
24
  /** The page's one primary action. Always last, at the far right. */
24
25
  primaryAction?: ReactNode;
25
- /** Turn off when tabs sit right below the header; their underline separates the page instead. */
26
+ /** Draws a line under the header. Off by default; tabs, toolbars and cards below already separate the page. */
26
27
  divider?: boolean;
28
+ /** `compact` tightens the top padding and shrinks the title, for dense layouts or a header right under an app bar. */
29
+ size?: PageHeaderSize;
27
30
  className?: string;
28
31
  /** The page's details: `PageHeaderDetails` or `PageHeaderSummary`. */
29
32
  children?: ReactNode;
@@ -32,7 +35,7 @@ type PageHeaderProps = PageHeaderTopLinkProps & {
32
35
  * The top of a page: breadcrumbs or a back link, the title with its status, actions on the right (primary action
33
36
  * last), then the page's details. Below 640px of the header's own width the actions move under the title.
34
37
  */
35
- declare const PageHeader: ({ title, status, breadcrumbs, backLink, actions, primaryAction, divider, className, children }: PageHeaderProps) => import("react").JSX.Element;
38
+ declare const PageHeader: ({ title, status, breadcrumbs, backLink, actions, primaryAction, divider, size, className, children }: PageHeaderProps) => import("react").JSX.Element;
36
39
  interface PageHeaderDetail {
37
40
  label: string;
38
41
  value: ReactNode;
@@ -55,4 +58,4 @@ interface PageHeaderSummaryProps {
55
58
  /** A short paragraph describing the page, kept to about 66 characters a line (`ch` is a digit's width, so 50ch). */
56
59
  declare const PageHeaderSummary: ({ className, children }: PageHeaderSummaryProps) => import("react").JSX.Element;
57
60
  //#endregion
58
- export { PageHeaderDetailsProps as a, PageHeaderSummaryProps as c, PageHeaderDetails as i, PageHeaderBackLink as n, PageHeaderProps as o, PageHeaderDetail as r, PageHeaderSummary as s, PageHeader as t };
61
+ export { PageHeaderDetailsProps as a, PageHeaderSummary as c, PageHeaderDetails as i, PageHeaderSummaryProps as l, PageHeaderBackLink as n, PageHeaderProps as o, PageHeaderDetail as r, PageHeaderSize as s, PageHeader as t };
@@ -1,5 +1,5 @@
1
- import "./i18n-D1FWVTPi.js";
2
- import { t as Input } from "./Input.bound-QpE3qJqT.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-D1FWVTPi.js";
5
- import { t as Select } from "./Select-CSdr0OcD.js";
6
- import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-C14g8ng0.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";
@@ -189,20 +190,46 @@ const CalendarSelectHeader = ({ state, isPrevMonthDisabled, isPrevYearDisabled,
189
190
  };
190
191
  //#endregion
191
192
  //#region src/components/inputs/DateTime/shared/RangeCalendar.tsx
192
- const RangeCalendar = ({ showWeekNumbers, className, leftCalendarState, rightCalendarState, calendarProps, onApply, onRangeChange: _onRangeChange, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, isRangeSelectionDisabled }) => {
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,
@@ -251,9 +278,9 @@ const RangeCalendar = ({ showWeekNumbers, className, leftCalendarState, rightCal
251
278
  onDateHover,
252
279
  hoverDate,
253
280
  onKeyboardNavigation: handleLeftKeyboardNavigation,
254
- className: clsx("h-64", showWeekNumbers ? "w-full md:w-[336px]!" : "w-[304px]!", isRangeSelectionDisabled && "pointer-events-none opacity-50"),
281
+ className: clsx("h-64", showWeekNumbers ? "w-full md:w-[336px]!" : "w-[304px]!"),
255
282
  calendarSide: "left",
256
- isSelectionDisabled: isRangeSelectionDisabled
283
+ getSelectedDateLabel
257
284
  })]
258
285
  }), /* @__PURE__ */ jsxs("div", {
259
286
  ...rightCalendarAriaProps,
@@ -276,9 +303,9 @@ const RangeCalendar = ({ showWeekNumbers, className, leftCalendarState, rightCal
276
303
  onDateHover,
277
304
  hoverDate,
278
305
  onKeyboardNavigation: handleRightKeyboardNavigation,
279
- className: clsx("h-64", showWeekNumbers ? "w-full md:w-[336px]!" : "w-[304px]!", isRangeSelectionDisabled && "pointer-events-none opacity-50"),
306
+ className: clsx("h-64", showWeekNumbers ? "w-full md:w-[336px]!" : "w-[304px]!"),
280
307
  calendarSide: "right",
281
- isSelectionDisabled: isRangeSelectionDisabled
308
+ getSelectedDateLabel
282
309
  })]
283
310
  })]
284
311
  })
@@ -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-D1FWVTPi.js";
17
+ import "./i18n-D8vXIoiq.js";
18
18
  import { t as popoverDefinition } from "./popover.cva-DAbfSma6.js";
19
- import { t as Input } from "./Input-BIuNQb5u.js";
20
- import { t as Select } from "./Select-CSdr0OcD.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-D1FWVTPi.js";
20
- import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-BvGO_LUx.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-BIuNQb5u.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-DeiPWhOP.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-CSdr0OcD.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-D1FWVTPi.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-CSdr0OcD.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";
@@ -4,7 +4,7 @@ import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementT
4
4
  import { t as $91fe5e721c7f36c1$export$17f80983afe4e444 } from "./SelectionIndicator-C3hniBa2.js";
5
5
  import { n as uiOutlineClass } from "./outline.clsx-DGGQQRkM.js";
6
6
  import { t as Button } from "./Button-BaODzvZd.js";
7
- import "./i18n-D1FWVTPi.js";
7
+ import "./i18n-D8vXIoiq.js";
8
8
  import { Link } from "./components/link.js";
9
9
  import { Badge } from "./components/badge.js";
10
10
  import { c } from "react/compiler-runtime";
@@ -6,7 +6,7 @@ import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js"
6
6
  import { n as FormFieldLabel, t as FormField } from "./FormField-dduTMkNH.js";
7
7
  import { a as inputSizeDefinition, i as inputSideDefinition, o as useInputCva } from "./input.cva-DZii82eS.js";
8
8
  import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
9
- import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-BvGO_LUx.js";
9
+ import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
10
10
  import { t as textAreaWrapperDefinition } from "./TextArea.cva-ENXI55ec.js";
11
11
  import $ahdqC$react, { createContext, forwardRef, memo, useRef, useState } from "react";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { n as TextAreaBase } from "./TextArea-ciY0kt-D.js";
1
+ import { n as TextAreaBase } from "./TextArea-Blsip3ZC.js";
2
2
  import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
3
3
  import { t as FieldController } from "./form.binding-DOR5gIQf.js";
4
4
  import { memo } from "react";
@@ -10,14 +10,14 @@ import { n as FormFieldLabel, t as FormField } from "./FormField-dduTMkNH.js";
10
10
  import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DZii82eS.js";
11
11
  import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
12
12
  import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
13
- import { a as getStaticTimeSegments, c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, i as getStaticDateTimeFocusTarget, l as DateSegmentItem, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-bPuA-a2Y.js";
13
+ import { a as getStaticTimeSegments, c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, i as getStaticDateTimeFocusTarget, l as DateSegmentItem, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-CVuAhDDl.js";
14
14
  import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
15
15
  import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Du0Zn04v.js";
16
- import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-BvGO_LUx.js";
16
+ import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
17
17
  import { t as normalizeDatePickerValue } from "./datePickerValue.utils-CkmPaD6I.js";
18
18
  import { n as useStaticInputHandoff } from "./useStaticInputHandoff-BN0fOerH.js";
19
19
  import { InputFrame } from "./components/input-frame.js";
20
- import { t as TimePickerForm } from "./TimePickerForm-itDjoV7V.js";
20
+ import { t as TimePickerForm } from "./TimePickerForm-DD9VA_td.js";
21
21
  import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
22
22
  import { jsx, jsxs } from "react/jsx-runtime";
23
23
  import { GregorianCalendar, Time, getLocalTimeZone, now, toCalendarDateTime, toTime, toZoned, today } from "@internationalized/date";
@@ -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 TimePickerInner } from "./TimePicker-BKRPMduC.js";
3
+ import { n as TimePickerInner } from "./TimePicker-4hV5zbgd.js";
4
4
  import { memo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/inputs/DateTime/TimePicker/TimePicker.bound.tsx
@@ -2,8 +2,8 @@ import { t as clsx } from "./clsx-CnD0nOiA.js";
2
2
  import { t as Typography } from "./Typography-DCLnPa3P.js";
3
3
  import { IconButton } from "./components/icon-button.js";
4
4
  import { t as useBreakpoint } from "./useBreakpoint-CJ3mx7UF.js";
5
- import { u as getPlaceholder } from "./staticDateTimeSegments-bPuA-a2Y.js";
6
- import "./i18n-D1FWVTPi.js";
5
+ import { u as getPlaceholder } from "./staticDateTimeSegments-CVuAhDDl.js";
6
+ import "./i18n-D8vXIoiq.js";
7
7
  import { ChevronDown, ChevronUp } from "lucide-react";
8
8
  import { c } from "react/compiler-runtime";
9
9
  import { useEffect, useRef } from "react";
@@ -2,7 +2,7 @@ import { t as clsx } from "./clsx-CnD0nOiA.js";
2
2
  import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
3
3
  import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
4
4
  import { n as inputClearClassDefinition } from "./input.cva-DZii82eS.js";
5
- import "./i18n-D1FWVTPi.js";
5
+ import "./i18n-D8vXIoiq.js";
6
6
  import { t as tooltipWrapperTriggerDefinition } from "./tooltipWrapper.cva-t4NQ9zz9.js";
7
7
  import { X } from "lucide-react";
8
8
  import { Suspense, lazy } from "react";
@@ -2,7 +2,7 @@ import { t as clsx } from "../clsx-CnD0nOiA.js";
2
2
  import { t as Typography } from "../Typography-DCLnPa3P.js";
3
3
  import { t as UIConfig } from "../uiConfig.context-3DN9w6oU.js";
4
4
  import { t as Button } from "../Button-BaODzvZd.js";
5
- import { t as Dialog } from "../Dialog-Bn43feu0.js";
5
+ import { t as Dialog } from "../Dialog-DN5703sy.js";
6
6
  import { c } from "react/compiler-runtime";
7
7
  import { useId } from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { t as Autocomplete } from "../Autocomplete-CsJAU233.js";
1
+ import { t as Autocomplete } from "../Autocomplete-Bn13u0zu.js";
2
2
  export { Autocomplete };
@@ -5,7 +5,7 @@ import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "../Button-C1YB5d
5
5
  import { t as Typography } from "../Typography-DCLnPa3P.js";
6
6
  import { t as UIConfig } from "../uiConfig.context-3DN9w6oU.js";
7
7
  import { r as badgeButtonDefinition } from "../badgeButton.cva-t5PQOH4M.js";
8
- import "../i18n-D1FWVTPi.js";
8
+ import "../i18n-D8vXIoiq.js";
9
9
  import { X } from "lucide-react";
10
10
  import { c } from "react/compiler-runtime";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -3,7 +3,7 @@ import { t as IconSlot } from "../IconSlot-CqNuZl0E.js";
3
3
  import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "../Button-C1YB5dOw.js";
4
4
  import { t as Typography } from "../Typography-DCLnPa3P.js";
5
5
  import { n as uiOutlineClass } from "../outline.clsx-DGGQQRkM.js";
6
- import "../i18n-D1FWVTPi.js";
6
+ import "../i18n-D8vXIoiq.js";
7
7
  import { X } from "lucide-react";
8
8
  import { c } from "react/compiler-runtime";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { t as DatePicker } from "../DatePicker-D-YXdY2z.js";
1
+ import { t as DatePicker } from "../DatePicker-bme8zGBo.js";
2
2
  export { DatePicker };
@@ -1,4 +1,5 @@
1
- import { a as DateRangePickerProps, i as DateRangePickerInner, n as DateRangePicker, o as DateRangeRelativeOption, r as DateRangePickerComponent, s as DateRangeResolvedValue, t as AbsoluteDateRangePickerValue } from "../DateRangePicker-3pPW0ZBV.js";
1
+ import { a as DateRangePickerProps, i as DateRangePickerInner, n as DateRangePicker, o as DateRangeRelativeOption, r as DateRangePickerComponent, s as DateRangeResolvedValue, t as AbsoluteDateRangePickerValue } from "../DateRangePicker-32D4pWJg.js";
2
+ import { DateValue } from "react-aria";
2
3
  import { CalendarDate } from "@internationalized/date";
3
4
  //#region src/components/inputs/DateTime/DateRangePicker/dateRangePreset.utils.d.ts
4
5
  declare const dateRangePresetValues: readonly ["thisWeek", "lastWeek", "thisAndLastWeek", "thisMonth", "thisAndLastMonth", "thisYear", "lastYear", "thisAndLastYear", "soFar"];
@@ -17,6 +18,19 @@ interface StoredRelativeDateRangeValue {
17
18
  interface RelativeDateRangeValue extends StoredRelativeDateRangeValue {
18
19
  resolvedValue: ResolvedDateRangePreset;
19
20
  }
21
+ /** Whole-day distance of each range boundary from today; negative is past, positive is future. */
22
+ interface RelativeDaysOffset {
23
+ start: number;
24
+ end: number;
25
+ }
26
+ /** Whole days from `currentDate` to `date`; negative when `date` is in the past. */
27
+ declare const getRelativeDaysOffset: (date: DateValue, currentDate: CalendarDate) => number;
28
+ /** Display form of a single offset, e.g. `-7`, `0` or `+3`. */
29
+ declare const formatRelativeDaysOffset: (days: number) => string;
30
+ /** Serializes day offsets into a stable `relativeValue`, e.g. `days:-7:+3`. */
31
+ declare const formatRelativeDaysValue: ({ start, end }: RelativeDaysOffset) => string;
32
+ /** Returns undefined when the value is not a day-offset value or its start is after its end. */
33
+ declare const parseRelativeDaysValue: (value: string) => RelativeDaysOffset | undefined;
20
34
  declare const isStoredRelativeDateRangeValue: (value: unknown) => value is StoredRelativeDateRangeValue;
21
35
  declare const isRelativeDateRangeValue: (value: unknown) => value is RelativeDateRangeValue;
22
36
  declare const isDateRangePresetValue: (value: string) => value is DateRangePresetValue;
@@ -24,4 +38,4 @@ declare const getDateRangePreset: (value: string, currentDate?: CalendarDate, lo
24
38
  declare const resolveDateRangePreset: (value: string, currentDate?: CalendarDate, locale?: string) => ResolvedDateRangePreset | undefined;
25
39
  declare const hydrateRelativeDateRangeValue: (value: StoredRelativeDateRangeValue, currentDate?: CalendarDate, locale?: string) => RelativeDateRangeValue | undefined;
26
40
  //#endregion
27
- export { type AbsoluteDateRangePickerValue, DateRangePicker, type DateRangePickerComponent, type DateRangePickerInner, type DateRangePickerProps, type DateRangePreset, type DateRangePresetValue, type DateRangeRelativeOption, type DateRangeResolvedValue, type RelativeDateRangeValue, type ResolvedDateRangePreset, type StoredRelativeDateRangeValue, dateRangePresetValues, getDateRangePreset, hydrateRelativeDateRangeValue, isDateRangePresetValue, isRelativeDateRangeValue, isStoredRelativeDateRangeValue, resolveDateRangePreset };
41
+ export { type AbsoluteDateRangePickerValue, DateRangePicker, type DateRangePickerComponent, type DateRangePickerInner, type DateRangePickerProps, type DateRangePreset, type DateRangePresetValue, type DateRangeRelativeOption, type DateRangeResolvedValue, type RelativeDateRangeValue, type RelativeDaysOffset, type ResolvedDateRangePreset, type StoredRelativeDateRangeValue, dateRangePresetValues, formatRelativeDaysOffset, formatRelativeDaysValue, getDateRangePreset, getRelativeDaysOffset, hydrateRelativeDateRangeValue, isDateRangePresetValue, isRelativeDateRangeValue, isStoredRelativeDateRangeValue, parseRelativeDaysValue, resolveDateRangePreset };
@@ -1,2 +1,2 @@
1
- import { a as hydrateRelativeDateRangeValue, c as isStoredRelativeDateRangeValue, i as getDateRangePreset, l as resolveDateRangePreset, o as isDateRangePresetValue, r as dateRangePresetValues, s as isRelativeDateRangeValue, t as DateRangePicker } from "../DateRangePicker-tuM8Qyvp.js";
2
- export { DateRangePicker, dateRangePresetValues, getDateRangePreset, hydrateRelativeDateRangeValue, isDateRangePresetValue, isRelativeDateRangeValue, isStoredRelativeDateRangeValue, resolveDateRangePreset };
1
+ import { a as formatRelativeDaysValue, c as hydrateRelativeDateRangeValue, d as isStoredRelativeDateRangeValue, f as parseRelativeDaysValue, i as formatRelativeDaysOffset, l as isDateRangePresetValue, o as getDateRangePreset, p as resolveDateRangePreset, r as dateRangePresetValues, s as getRelativeDaysOffset, t as DateRangePicker, u as isRelativeDateRangeValue } from "../DateRangePicker-Blg158JD.js";
2
+ export { DateRangePicker, dateRangePresetValues, formatRelativeDaysOffset, formatRelativeDaysValue, getDateRangePreset, getRelativeDaysOffset, hydrateRelativeDateRangeValue, isDateRangePresetValue, isRelativeDateRangeValue, isStoredRelativeDateRangeValue, parseRelativeDaysValue, resolveDateRangePreset };
@@ -1,2 +1,2 @@
1
- import { t as DateTimePicker } from "../DateTimePicker-8BVP2qeR.js";
1
+ import { t as DateTimePicker } from "../DateTimePicker-CdRFt8WM.js";
2
2
  export { DateTimePicker };
@@ -1,2 +1,2 @@
1
- import { t as Dialog } from "../Dialog-Bn43feu0.js";
1
+ import { t as Dialog } from "../Dialog-DN5703sy.js";
2
2
  export { Dialog };
@@ -1,2 +1,2 @@
1
- import { t as FileInput } from "../FileInput-DNCKhAq-.js";
1
+ import { t as FileInput } from "../FileInput-BUwtAF2-.js";
2
2
  export { FileInput };
@@ -1,4 +1,4 @@
1
- import { t as FileUpload } from "../FileUpload-CQFCrvCI.js";
1
+ import { t as FileUpload } from "../FileUpload-D7FMYm-k.js";
2
2
  import { memo } from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/inputs/File/FileUploadContainer.tsx
@@ -1,2 +1,2 @@
1
- import { t as FileUpload } from "../FileUpload-CQFCrvCI.js";
1
+ import { t as FileUpload } from "../FileUpload-D7FMYm-k.js";
2
2
  export { FileUpload };
@@ -9,7 +9,7 @@ import { t as useFieldAccessibility } from "../useFieldAccessibility-eZIMECmG.js
9
9
  import { n as FormFieldLabel, t as FormField } from "../FormField-dduTMkNH.js";
10
10
  import { a as inputSizeDefinition, r as inputContentWrapperDefinition, t as inputBaseDefinition } from "../input.cva-DZii82eS.js";
11
11
  import { t as resolveInputLayout } from "../inputLayout-KdAtunGk.js";
12
- import { n as InputClear, t as TooltipWrapper } from "../TooltipWrapper-BvGO_LUx.js";
12
+ import { n as InputClear, t as TooltipWrapper } from "../TooltipWrapper-BSY31JMc.js";
13
13
  import { isValidElement, useId, useLayoutEffect, useRef } from "react";
14
14
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
15
15
  //#region src/components/inputs/Skeleton/InputFrame.tsx
@@ -1,2 +1,2 @@
1
- import { n as InputComponent, t as Input } from "../Input-BIuNQb5u.js";
1
+ import { n as InputComponent, t as Input } from "../Input-CG5LQ0zs.js";
2
2
  export { Input, InputComponent };
@@ -1,2 +1,2 @@
1
- import { n as NumberFieldComponent, t as NumberField } from "../NumberField-CpkLBjIM.js";
1
+ import { n as NumberFieldComponent, t as NumberField } from "../NumberField-DxuikBcr.js";
2
2
  export { NumberField, NumberFieldComponent };
@@ -1,2 +1,2 @@
1
- import { t as NumberRangeInput } from "../NumberRangeInput-47xOaSXq.js";
1
+ import { t as NumberRangeInput } from "../NumberRangeInput-8bOjNEnS.js";
2
2
  export { NumberRangeInput };
@@ -1,2 +1,2 @@
1
- import { a as PageHeaderDetailsProps, c as PageHeaderSummaryProps, i as PageHeaderDetails, n as PageHeaderBackLink, o as PageHeaderProps, r as PageHeaderDetail, s as PageHeaderSummary, t as PageHeader } from "../PageHeader-BwzxymWY.js";
2
- export { PageHeader, PageHeaderBackLink, PageHeaderDetail, PageHeaderDetails, PageHeaderDetailsProps, PageHeaderProps, PageHeaderSummary, PageHeaderSummaryProps };
1
+ import { a as PageHeaderDetailsProps, c as PageHeaderSummary, i as PageHeaderDetails, l as PageHeaderSummaryProps, n as PageHeaderBackLink, o as PageHeaderProps, r as PageHeaderDetail, s as PageHeaderSize, t as PageHeader } from "../PageHeader-DTfzf-dA.js";
2
+ export { PageHeader, PageHeaderBackLink, PageHeaderDetail, PageHeaderDetails, PageHeaderDetailsProps, PageHeaderProps, PageHeaderSize, PageHeaderSummary, PageHeaderSummaryProps };