@povio/ui 6.0.0-rc.10 → 6.0.0-rc.11
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.
- package/dist/{Autocomplete-CsJAU233.js → Autocomplete-BxRjxjtp.js} +2 -2
- package/dist/{Autocomplete.bound-CGC8m4dK.js → Autocomplete.bound-DweyHUI5.js} +1 -1
- package/dist/{Calendar-Cr6B7SDx.js → Calendar-DX0dVo6z.js} +3 -3
- package/dist/{Calendar.lazy-MJisXRJK.js → Calendar.lazy-W51M56GQ.js} +3 -3
- package/dist/{DatePicker-D-YXdY2z.js → DatePicker-CqNS7lgR.js} +4 -4
- package/dist/{DatePicker.bound-a-6NJTgy.js → DatePicker.bound-Dxg2LM89.js} +1 -1
- package/dist/{DatePickerInput-2CZtsxdK.js → DatePickerInput-B2Pc_aJr.js} +3 -3
- package/dist/{DateRangePicker-3pPW0ZBV.d.ts → DateRangePicker-32D4pWJg.d.ts} +2 -2
- package/dist/{DateRangePicker-tuM8Qyvp.js → DateRangePicker-C3ClfSfj.js} +93 -26
- package/dist/{DateRangePicker.bound-vFyFw4wA.d.ts → DateRangePicker.bound-CVtoVsho.d.ts} +1 -1
- package/dist/{DateRangePicker.bound-B5SKOkVM.js → DateRangePicker.bound-PR9rBoXc.js} +1 -1
- package/dist/{DateTimePicker-8BVP2qeR.js → DateTimePicker-CYa2J-1r.js} +4 -4
- package/dist/{DateTimePicker.bound-C3y8TqPk.js → DateTimePicker.bound-CQxnRveH.js} +1 -1
- package/dist/{Dialog-Bn43feu0.js → Dialog-96c4Pzfm.js} +1 -1
- package/dist/{FileInput-DNCKhAq-.js → FileInput-IRM0C9W6.js} +1 -1
- package/dist/{FileInput.bound-DCSair97.js → FileInput.bound-CctyulN9.js} +1 -1
- package/dist/{FileUpload-CQFCrvCI.js → FileUpload-Dfs3FvJ7.js} +1 -1
- package/dist/{FileUpload.bound-BwetBdi7.js → FileUpload.bound-vik_sTkm.js} +1 -1
- package/dist/{Input-BIuNQb5u.js → Input-UbFhc_J2.js} +2 -2
- package/dist/{Input.bound-QpE3qJqT.js → Input.bound-0iJO2-ia.js} +1 -1
- package/dist/{InputContent-C5JlwN5b.js → InputContent-D7lnNLWk.js} +1 -1
- package/dist/{NumberField-CpkLBjIM.js → NumberField-twW8zuJ9.js} +2 -2
- package/dist/{NumberField.bound-BbZLqewF.js → NumberField.bound-DHDsBNvI.js} +1 -1
- package/dist/{NumberRangeInput-47xOaSXq.js → NumberRangeInput-gT6gEJIz.js} +1 -1
- package/dist/{NumberRangeInput.bound-B21y7xkb.js → NumberRangeInput.bound-5Yv3Og73.js} +1 -1
- package/dist/{PageHeader-BwzxymWY.d.ts → PageHeader-DTfzf-dA.d.ts} +6 -3
- package/dist/{PaginationList-BTmrmOGl.js → PaginationList-D7SRwySe.js} +1 -1
- package/dist/{PasswordInput.bound-DVkRv16z.js → PasswordInput.bound-CXtbMCD6.js} +2 -2
- package/dist/{RangeCalendar-CAWTz3pq.js → RangeCalendar-0W1YFZqn.js} +8 -8
- package/dist/{RichTextEditor-16feWcDW.js → RichTextEditor-BuqZth3X.js} +3 -3
- package/dist/{Select-CSdr0OcD.js → Select-B-TuE_Fh.js} +4 -4
- package/dist/{Select.bound-D-Wl7nLz.js → Select.bound-CNCChZww.js} +1 -1
- package/dist/{SelectListBox-DeiPWhOP.js → SelectListBox-Dlonoc5z.js} +2 -2
- package/dist/{TabsFilters-CvYxvrud.js → TabsFilters-CWUNeqYa.js} +1 -1
- package/dist/{TextArea-ciY0kt-D.js → TextArea-DakA3nzZ.js} +1 -1
- package/dist/{TextArea.bound-DQ_ULvue.js → TextArea.bound-CDVPP_qb.js} +1 -1
- package/dist/{TimePicker-BKRPMduC.js → TimePicker-RFzfDezn.js} +3 -3
- package/dist/{TimePicker.bound-PtJTz6s3.js → TimePicker.bound-DPia51Qs.js} +1 -1
- package/dist/{TimePickerForm-itDjoV7V.js → TimePickerForm-DohOZViU.js} +2 -2
- package/dist/{TooltipWrapper-BvGO_LUx.js → TooltipWrapper-DLBksJsF.js} +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/bottom-sheet-header.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +16 -2
- package/dist/components/date-range-picker.js +2 -2
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/input-frame.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/number-field.js +1 -1
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.d.ts +2 -2
- package/dist/components/page-header.js +77 -72
- package/dist/components/pagination-list.js +1 -1
- package/dist/components/pagination.js +3 -3
- package/dist/components/password-input.js +2 -2
- package/dist/components/select.js +1 -1
- package/dist/components/tabs-filters.js +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/resources.d.ts +1 -1
- package/dist/config/resources.js +1 -1
- package/dist/config/ui-config.d.ts +1 -1
- package/dist/{confirmation.context-CByUxDcn.js → confirmation.context-BwlIEVeF.js} +1 -1
- package/dist/{i18n-D1FWVTPi.js → i18n-BE9Wvs9L.js} +2 -0
- package/dist/{i18n-DE45mOCM.d.ts → i18n-EDC8xyfH.d.ts} +2 -0
- package/dist/{import-C14g8ng0.js → import-Dkfk7PHt.js} +14 -10
- package/dist/index.d.ts +6 -6
- package/dist/index.js +22 -22
- package/dist/rich-text-editor.js +1 -1
- package/dist/{staticDateTimeSegments-bPuA-a2Y.js → staticDateTimeSegments-4tIzPL8l.js} +1 -1
- package/dist/tanstack/autocomplete.js +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +2 -2
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/input.js +1 -1
- package/dist/tanstack/number-field.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.js +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/{tanstack-zusJduSB.d.ts → tanstack-CtuKX9Ss.d.ts} +2 -2
- package/dist/tanstack.d.ts +6 -6
- package/dist/tanstack.js +22 -22
- package/dist/{useTableColumnConfig-D5NxR1Co.js → useTableColumnConfig-D3KH4Rpo.js} +2 -2
- package/package.json +1 -1
|
@@ -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-
|
|
13
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.js";
|
|
14
14
|
import { t as popoverDefinition } from "./popover.cva-DAbfSma6.js";
|
|
15
|
-
import { t as InputContent } from "./InputContent-
|
|
15
|
+
import { t as InputContent } from "./InputContent-D7lnNLWk.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-
|
|
3
|
+
import { n as AutocompleteInner } from "./Autocomplete-BxRjxjtp.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-
|
|
10
|
-
import { t as TimePickerForm } from "./TimePickerForm-
|
|
9
|
+
import "./i18n-BE9Wvs9L.js";
|
|
10
|
+
import { t as TimePickerForm } from "./TimePickerForm-DohOZViU.js";
|
|
11
11
|
import { t as useScrollableListBox } from "./useScrollableListBox-oYKqU3Hp.js";
|
|
12
|
-
import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-
|
|
12
|
+
import { n as CalendarGrid, t as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./import-Dkfk7PHt.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-
|
|
2
|
+
import { r as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./DatePickerInput-B2Pc_aJr.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-
|
|
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";
|
|
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-
|
|
113
|
+
const loadCalendar = () => import("./Calendar-DX0dVo6z.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-
|
|
9
|
-
import { i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-
|
|
10
|
-
import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-
|
|
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";
|
|
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-
|
|
13
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.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-
|
|
3
|
+
import { n as DatePickerInner } from "./DatePicker-CqNS7lgR.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-
|
|
10
|
+
import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-4tIzPL8l.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-
|
|
15
|
-
import { n as InputClear } from "./TooltipWrapper-
|
|
14
|
+
import "./i18n-BE9Wvs9L.js";
|
|
15
|
+
import { n as InputClear } from "./TooltipWrapper-DLBksJsF.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
|
|
79
|
+
/** Selected relative preset key or day offsets when enableRelativeMode is true; null means no selection. */
|
|
80
80
|
relativeValue?: string | null;
|
|
81
|
-
/** Emits
|
|
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-
|
|
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";
|
|
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-
|
|
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";
|
|
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-
|
|
19
|
-
import { t as TooltipWrapper } from "./TooltipWrapper-
|
|
18
|
+
import "./i18n-BE9Wvs9L.js";
|
|
19
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.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-
|
|
372
|
+
const loadRangeCalendar = () => import("./RangeCalendar-0W1YFZqn.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,15 @@ const hydrateRelativeDateRangeValue = (value, currentDate = today(getLocalTimeZo
|
|
|
462
485
|
};
|
|
463
486
|
//#endregion
|
|
464
487
|
//#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.tsx
|
|
488
|
+
const getRelativeDaysLabel = (value, t) => {
|
|
489
|
+
const offset = value ? parseRelativeDaysValue(value) : void 0;
|
|
490
|
+
if (!offset) return;
|
|
491
|
+
return t(($) => $.ui.datePicker.relativeDaysLabel, {
|
|
492
|
+
ns: "ui",
|
|
493
|
+
start: formatRelativeDaysOffset(offset.start),
|
|
494
|
+
end: formatRelativeDaysOffset(offset.end)
|
|
495
|
+
});
|
|
496
|
+
};
|
|
465
497
|
const DateRangePickerBase = (props) => {
|
|
466
498
|
const ui = UIConfig.useConfig();
|
|
467
499
|
const { t } = useTranslation();
|
|
@@ -719,6 +751,7 @@ const DateRangePickerBase = (props) => {
|
|
|
719
751
|
setHoverDate(null);
|
|
720
752
|
leftCalendarState.setValue(null);
|
|
721
753
|
rightCalendarState.setValue(null);
|
|
754
|
+
if (mode === "relative") setActivePreset(null);
|
|
722
755
|
} else {
|
|
723
756
|
const { start } = rangeSelection;
|
|
724
757
|
const end = date;
|
|
@@ -737,7 +770,11 @@ const DateRangePickerBase = (props) => {
|
|
|
737
770
|
isSelecting: false
|
|
738
771
|
});
|
|
739
772
|
setHoverDate(null);
|
|
740
|
-
|
|
773
|
+
const currentDate = today(effectiveTimeZone);
|
|
774
|
+
setActivePreset(mode === "relative" ? formatRelativeDaysValue({
|
|
775
|
+
start: getRelativeDaysOffset(clampedRange.start, currentDate),
|
|
776
|
+
end: getRelativeDaysOffset(clampedRange.end, currentDate)
|
|
777
|
+
}) : null);
|
|
741
778
|
}
|
|
742
779
|
}, [
|
|
743
780
|
rangeSelection,
|
|
@@ -745,7 +782,9 @@ const DateRangePickerBase = (props) => {
|
|
|
745
782
|
rightCalendarState,
|
|
746
783
|
dialogState,
|
|
747
784
|
isDateOutsideBounds,
|
|
748
|
-
clampRangeToBounds
|
|
785
|
+
clampRangeToBounds,
|
|
786
|
+
mode,
|
|
787
|
+
effectiveTimeZone
|
|
749
788
|
]);
|
|
750
789
|
const handleKeyboardNavigation = useCallback((event, date, calendarSide) => {
|
|
751
790
|
const currentState = calendarSide === "left" ? leftCalendarState : rightCalendarState;
|
|
@@ -824,6 +863,8 @@ const DateRangePickerBase = (props) => {
|
|
|
824
863
|
isSelecting: false
|
|
825
864
|
});
|
|
826
865
|
setHoverDate(null);
|
|
866
|
+
leftCalendarState.setAnchorDate(null);
|
|
867
|
+
rightCalendarState.setAnchorDate(null);
|
|
827
868
|
shouldPreventDefault = true;
|
|
828
869
|
}
|
|
829
870
|
if (shouldPreventDefault) {
|
|
@@ -837,6 +878,8 @@ const DateRangePickerBase = (props) => {
|
|
|
837
878
|
handleDateSelection
|
|
838
879
|
]);
|
|
839
880
|
const syncCalendarStates = useCallback((newValue) => {
|
|
881
|
+
leftCalendarState.setAnchorDate(null);
|
|
882
|
+
rightCalendarState.setAnchorDate(null);
|
|
840
883
|
if (newValue === null) {
|
|
841
884
|
setValidationRangeError(void 0);
|
|
842
885
|
leftCalendarState.setValue(null);
|
|
@@ -871,7 +914,7 @@ const DateRangePickerBase = (props) => {
|
|
|
871
914
|
]);
|
|
872
915
|
const onApply = () => {
|
|
873
916
|
if (mode === "relative") {
|
|
874
|
-
const preset =
|
|
917
|
+
const preset = findRelativePreset(activePreset);
|
|
875
918
|
handledRelativeValueRef.current = activePreset;
|
|
876
919
|
onRelativeChange?.(activePreset, preset?.clampedValue ?? null);
|
|
877
920
|
onValueCommit?.();
|
|
@@ -931,6 +974,7 @@ const DateRangePickerBase = (props) => {
|
|
|
931
974
|
const syncSelectionFromControlledValue = () => {
|
|
932
975
|
if (mode === "relative") {
|
|
933
976
|
setActivePreset(relativeValue ?? null);
|
|
977
|
+
showRangeInCalendars(findRelativePreset(relativeValue)?.clampedValue ?? null);
|
|
934
978
|
return;
|
|
935
979
|
}
|
|
936
980
|
const currentValue = state.value;
|
|
@@ -1049,23 +1093,43 @@ const DateRangePickerBase = (props) => {
|
|
|
1049
1093
|
};
|
|
1050
1094
|
})
|
|
1051
1095
|
];
|
|
1052
|
-
const
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1096
|
+
const findRelativePreset = (presetValue) => {
|
|
1097
|
+
const preset = presets.find((option) => option.value === presetValue);
|
|
1098
|
+
if (preset || !presetValue) return preset;
|
|
1099
|
+
const label = getRelativeDaysLabel(presetValue, t);
|
|
1100
|
+
return label ? createPreset({
|
|
1101
|
+
value: presetValue,
|
|
1102
|
+
label,
|
|
1103
|
+
getValue: getPresetRange(presetValue)
|
|
1104
|
+
}) : void 0;
|
|
1105
|
+
};
|
|
1106
|
+
const showRangeInCalendars = (range) => {
|
|
1107
|
+
syncCalendarStates(range);
|
|
1108
|
+
if (!range) return;
|
|
1109
|
+
const startDate = range.start;
|
|
1059
1110
|
leftCalendarState.setFocusedDate(startDate);
|
|
1060
|
-
const endDate =
|
|
1061
|
-
if ((endDate.year - startDate.year) * 12 + (endDate.month - startDate.month) >
|
|
1111
|
+
const endDate = range.end;
|
|
1112
|
+
if ((endDate.year - startDate.year) * 12 + (endDate.month - startDate.month) > 1) rightCalendarState.setFocusedDate(endDate);
|
|
1062
1113
|
else {
|
|
1063
1114
|
const rightCalendarMonth = startDate.add({ months: 1 });
|
|
1064
1115
|
rightCalendarState.setFocusedDate(rightCalendarMonth);
|
|
1065
1116
|
}
|
|
1066
|
-
if (mode === "relative") setActivePreset(preset.value);
|
|
1067
1117
|
};
|
|
1068
|
-
const
|
|
1118
|
+
const selectPreset = (preset) => {
|
|
1119
|
+
if (preset.isDisabled || mode !== "relative" && !preset.clampedValue) return;
|
|
1120
|
+
setActivePreset(mode === "relative" ? preset.value : preset.label);
|
|
1121
|
+
if (!preset.clampedValue) return;
|
|
1122
|
+
showRangeInCalendars(preset.clampedValue);
|
|
1123
|
+
};
|
|
1124
|
+
const onCalendarKeyboardNavigation = (event, date, calendarSide) => {
|
|
1125
|
+
if (mode !== "relative" || event.key !== "Escape") return handleKeyboardNavigation(event, date, calendarSide);
|
|
1126
|
+
if (!rangeSelection.isSelecting) return false;
|
|
1127
|
+
syncSelectionFromControlledValue();
|
|
1128
|
+
event.preventDefault();
|
|
1129
|
+
event.stopPropagation();
|
|
1130
|
+
return true;
|
|
1131
|
+
};
|
|
1132
|
+
const activeRelativeOption = mode === "relative" ? findRelativePreset(relativeValue) : void 0;
|
|
1069
1133
|
useEffect(() => {
|
|
1070
1134
|
if (mode !== "relative" || handledRelativeValueRef.current === relativeValue) return;
|
|
1071
1135
|
handledRelativeValueRef.current = relativeValue;
|
|
@@ -1159,7 +1223,10 @@ const DateRangePickerBase = (props) => {
|
|
|
1159
1223
|
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
1224
|
children: [enableRelativeMode && /* @__PURE__ */ jsx(Switch, {
|
|
1161
1225
|
isSelected: mode === "relative",
|
|
1162
|
-
onChange:
|
|
1226
|
+
onChange: (isRelative) => {
|
|
1227
|
+
syncCalendarStates(null);
|
|
1228
|
+
onModeChange?.(isRelative);
|
|
1229
|
+
},
|
|
1163
1230
|
className: "shrink-0 px-2 py-2 md:px-2",
|
|
1164
1231
|
children: t(($) => $.ui.datePicker.relativeMode, { ns: "ui" })
|
|
1165
1232
|
}), presets.map((preset) => /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
@@ -1177,7 +1244,7 @@ const DateRangePickerBase = (props) => {
|
|
|
1177
1244
|
}),
|
|
1178
1245
|
footer: /* @__PURE__ */ jsx(DateTimeDialogFooter, {
|
|
1179
1246
|
isDisabled,
|
|
1180
|
-
isValid: mode === "relative" ? !!activePreset : !dialogState.isInvalid && !!dialogState.value,
|
|
1247
|
+
isValid: mode === "relative" ? !!findRelativePreset(activePreset)?.clampedValue : !dialogState.isInvalid && !!dialogState.value,
|
|
1181
1248
|
onTodayPress: mode === "relative" ? void 0 : onTodayPress,
|
|
1182
1249
|
onApply
|
|
1183
1250
|
}),
|
|
@@ -1197,12 +1264,12 @@ const DateRangePickerBase = (props) => {
|
|
|
1197
1264
|
calendarProps,
|
|
1198
1265
|
onApply,
|
|
1199
1266
|
onRangeChange: syncCalendarStates,
|
|
1200
|
-
onDateSelection:
|
|
1267
|
+
onDateSelection: handleDateSelection,
|
|
1201
1268
|
onDateHover: handleDateHover,
|
|
1202
1269
|
rangeSelection,
|
|
1203
1270
|
hoverDate,
|
|
1204
|
-
onKeyboardNavigation:
|
|
1205
|
-
|
|
1271
|
+
onKeyboardNavigation: onCalendarKeyboardNavigation,
|
|
1272
|
+
getSelectedDateLabel: mode === "relative" ? (date) => formatRelativeDaysOffset(getRelativeDaysOffset(date, todayDate)) : void 0
|
|
1206
1273
|
})
|
|
1207
1274
|
})
|
|
1208
1275
|
})
|
|
@@ -1324,7 +1391,7 @@ const DateRangePickerInner = ({ fullIso = true, minValue, maxValue, renderStatic
|
|
|
1324
1391
|
},
|
|
1325
1392
|
...ui.dateInput.dateRangeOptions
|
|
1326
1393
|
] : [];
|
|
1327
|
-
const relativeLabel = mode === "relative" ? relativeOptions.find((option) => option.value === props.relativeValue)?.label : void 0;
|
|
1394
|
+
const relativeLabel = mode === "relative" ? relativeOptions.find((option) => option.value === props.relativeValue)?.label ?? getRelativeDaysLabel(props.relativeValue, t) : void 0;
|
|
1328
1395
|
const startDateValue = relativeLabel ? null : parseCalendarDate(normalizedRange?.start ?? null);
|
|
1329
1396
|
const endDateValue = relativeLabel ? null : parseCalendarDate(normalizedRange?.end ?? null);
|
|
1330
1397
|
const hasProvidedRangeValue = mode === "relative" ? !!relativeLabel : !!(normalizedRange?.start || normalizedRange?.end);
|
|
@@ -1439,4 +1506,4 @@ const DateRangePickerComponent = ({ defaultValue, value, onChange, ...props }) =
|
|
|
1439
1506
|
};
|
|
1440
1507
|
const DateRangePicker = memo(DateRangePickerComponent);
|
|
1441
1508
|
//#endregion
|
|
1442
|
-
export {
|
|
1509
|
+
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-
|
|
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-
|
|
3
|
+
import { n as DateRangePickerInner } from "./DateRangePicker-C3ClfSfj.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-
|
|
9
|
-
import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-
|
|
10
|
-
import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-
|
|
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";
|
|
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-
|
|
13
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.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-
|
|
3
|
+
import { n as DateTimePickerInner } from "./DateTimePicker-CYa2J-1r.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-
|
|
6
|
+
import "./i18n-BE9Wvs9L.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-
|
|
11
|
+
import "./i18n-BE9Wvs9L.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-
|
|
3
|
+
import { n as FileInputBase } from "./FileInput-IRM0C9W6.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-
|
|
11
|
+
import "./i18n-BE9Wvs9L.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-
|
|
3
|
+
import { n as FileUploadBase } from "./FileUpload-Dfs3FvJ7.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-
|
|
10
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.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-
|
|
13
|
+
import { n as clearInput, t as InputContent } from "./InputContent-D7lnNLWk.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-
|
|
3
|
+
import { r as InputInner } from "./Input-UbFhc_J2.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-
|
|
9
|
+
import { n as InputClear } from "./TooltipWrapper-DLBksJsF.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-
|
|
13
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.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-
|
|
16
|
+
import { n as clearInput, t as InputContent } from "./InputContent-D7lnNLWk.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-
|
|
3
|
+
import { r as NumberFieldInner } from "./NumberField-twW8zuJ9.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-
|
|
12
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-DLBksJsF.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-
|
|
2
|
+
import { n as NumberRangeInputInner } from "./NumberRangeInput-gT6gEJIz.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
|
-
/**
|
|
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,
|
|
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 };
|
|
@@ -2,7 +2,7 @@ import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
|
2
2
|
import { r as cva } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
3
|
import { t as Button } from "./Button-BaODzvZd.js";
|
|
4
4
|
import { IconButton } from "./components/icon-button.js";
|
|
5
|
-
import "./i18n-
|
|
5
|
+
import "./i18n-BE9Wvs9L.js";
|
|
6
6
|
import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight, Ellipsis } from "lucide-react";
|
|
7
7
|
import { c } from "react/compiler-runtime";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./i18n-
|
|
2
|
-
import { t as Input } from "./Input.bound-
|
|
1
|
+
import "./i18n-BE9Wvs9L.js";
|
|
2
|
+
import { t as Input } from "./Input.bound-0iJO2-ia.js";
|
|
3
3
|
import { Eye, EyeOff } from "lucide-react";
|
|
4
4
|
import { memo, useState } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|