@povio/ui 3.4.0-rc.26 → 3.4.0-rc.28
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/{Accordion-BLPm2118.js → Accordion-BKBl-2EO.js} +4 -3
- package/dist/{BottomSheet-CEyxZ2Nd.js → BottomSheet-CQ9Pkvn_.js} +5 -5
- package/dist/{Breadcrumbs-Cbl2-M7J.js → Breadcrumbs-D0mblHwu.js} +8 -7
- package/dist/{Button-oSE-CM83.js → Button-D09S1dNt.js} +3 -2
- package/dist/{Button-CtPMeT8f.js → Button-D9J5wkMv.js} +3 -3
- package/dist/{Calendar-Dc1UbbAq.js → Calendar-DQxeTov4.js} +13 -11
- package/dist/{Checkbox-Feyideqw.js → Checkbox-B0w_4Ri0.js} +6 -5
- package/dist/DOMFunctions-BrQjsnDh.js +52 -0
- package/dist/{DatePicker-BdRp_rG7.js → DatePicker-BT46HC74.js} +9 -9
- package/dist/{DatePicker-EJTAeVRc.d.ts → DatePicker-COJoYiqp.d.ts} +1 -1
- package/dist/{DatePickerInput-CJR-w_b1.d.ts → DatePickerInput-BJi1U0fr.d.ts} +1 -1
- package/dist/{DatePickerInput-D3kmFpMZ.js → DatePickerInput-BK6P_VAB.js} +8 -12
- package/dist/{DateRangePicker-CMWUdyh1.d.ts → DateRangePicker-Bjf2hKX1.d.ts} +31 -13
- package/dist/{DateRangePicker-XhfuEunT.js → DateRangePicker-DH4Eg6sF.js} +105 -43
- package/dist/{DateTimePicker-B9cZ38EY.d.ts → DateTimePicker-BPCAME01.d.ts} +1 -1
- package/dist/{DateTimePicker-_PD3JGVy.js → DateTimePicker-BZcH7uNO.js} +9 -9
- package/dist/{Dialog-CXVxCqvL.js → Dialog-Bl7F9FUP.js} +12 -10
- package/dist/{Drawer-XaAwht0J.js → Drawer-BkPPB5DQ.js} +2 -2
- package/dist/{FileTrigger-BSzrj50r.js → FileTrigger-CjvQGNXu.js} +11 -10
- package/dist/{FileUpload-CNM9dv4D.js → FileUpload-BocbkafM.js} +6 -6
- package/dist/{Form-BX_x2VGS.d.ts → Form-BrF_Buzl.d.ts} +1 -1
- package/dist/{FormField-ChDNTHr4.js → FormField-Cl-t5Wi1.js} +10 -34
- package/dist/FormFieldHeaderTooltip-C3nmuFKW.js +38 -0
- package/dist/InlineTooltipWrapper-7ePcpH9g.js +24 -0
- package/dist/{Input-B4FVIWxn.js → Input-BefLtZJe.js} +2 -1
- package/dist/{InputItem-DWuSzs16.js → InputItem-BjC0bpZe.js} +12 -12
- package/dist/{InputUpload-BQpUaRQl.js → InputUpload-DLLtrKIG.js} +6 -6
- package/dist/{Inputs-B5F_klPo.d.ts → Inputs-7s_wFr8h.d.ts} +1 -1
- package/dist/{Inputs-D4duTr-F.js → Inputs-CErLG3k2.js} +1 -1
- package/dist/{Label-a10cLlQM.js → Label-BVczUvgv.js} +1 -1
- package/dist/{Link-iPOFlrxY.js → Link-BWbPxs6p.js} +2 -1
- package/dist/{Link-vPV4s0c3.js → Link-EHxXHf53.js} +1 -1
- package/dist/{ListBox-lSDt9Q4j.js → ListBox-Ck1UjeGo.js} +6 -5
- package/dist/{Menu-DDKo6fUO.js → Menu-fXWnROTU.js} +3 -3
- package/dist/{MenuDesktop-AnvU8TNb.js → MenuDesktop-C3_I4fdd.js} +1 -1
- package/dist/{Modal-BrOOpTQ4.js → Modal-CSr-DYqC.js} +3 -3
- package/dist/{Modal-CAAJgOQb.js → Modal-UhtruHmf.js} +4 -3
- package/dist/{NumberRangeInput-CBM_ycX_.js → NumberRangeInput-BFaL0_B5.js} +7 -7
- package/dist/{OverlayArrow-Bz_8bYjT.js → OverlayArrow-CyFI2DhX.js} +11 -44
- package/dist/{PaginationList-B27QL6gG.js → PaginationList-BQqvE8zu.js} +2 -2
- package/dist/{PasswordInput-BUZPRoOL.js → PasswordInput-CMKZF3YS.js} +1 -1
- package/dist/{RadioGroup-DbMmwkLQ.js → RadioGroup-lA8iM1Ry.js} +10 -8
- package/dist/{Segment--coTx1BD.js → Segment-BAVcQyuY.js} +3 -3
- package/dist/{Select-BXhqcKAI.js → Select-BEgNpIuG.js} +3 -3
- package/dist/{SelectionIndicator-BiAHPBz2.js → SelectionIndicator-BvWiZS2N.js} +2 -2
- package/dist/{Slider-YdD68ygp.js → Slider-CGESXeRj.js} +9 -8
- package/dist/{Stepper-Cc7qNjch.js → Stepper-CSfhZBK1.js} +1 -1
- package/dist/{Tag-BAFkwLDe.js → Tag-Dqo18sIY.js} +2 -2
- package/dist/{TextArea-B8TIZZ5i.js → TextArea-CcXiu7JQ.js} +4 -3
- package/dist/{TextEditor-Co_gbkPT.js → TextEditor-CKGUWpY_.js} +12 -11
- package/dist/{TimePicker-dftQtlWT.js → TimePicker-eWZ7lIDW.js} +8 -8
- package/dist/{Toast-BDoTQFr5.js → Toast-ZFTj3GGo.js} +1 -1
- package/dist/{Toggle-Bw15KIly.js → Toggle-bWM3RSXY.js} +4 -3
- package/dist/{ToggleButton-DYVFkuEk.js → ToggleButton-C01P8reg.js} +6 -4
- package/dist/{Tooltip-CVBOnHy-.js → Tooltip-D8YNkKCl.js} +5 -13
- package/dist/{TooltipWrapper-eCF5-eNP.js → TooltipWrapper-DyDsoRe-.js} +7 -21
- package/dist/{VisuallyHidden-src7PN5r.js → VisuallyHidden-CWgME09A.js} +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/action-modal.js +2 -2
- package/dist/components/autocomplete.js +3 -3
- package/dist/components/bottom-sheet.js +2 -2
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +2 -2
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.d.ts +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/drawer.js +2 -2
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/inline-icon-button.js +1 -1
- package/dist/components/input-upload.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/menu.js +2 -2
- package/dist/components/modal.js +1 -1
- package/dist/components/number-input.js +8 -8
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination-list.js +1 -1
- package/dist/components/pagination.js +2 -2
- package/dist/components/password-input.js +1 -1
- package/dist/components/pill-button.js +2 -2
- package/dist/components/pill.js +2 -2
- package/dist/components/query-autocomplete.js +1 -1
- package/dist/components/query-select.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/responsive-popover.js +1 -1
- package/dist/components/segment.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/split-button.js +2 -2
- package/dist/components/stepper.js +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/text-button.js +1 -1
- package/dist/components/text-input.js +6 -6
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/use-toast.js +2 -2
- 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 +3 -3
- package/dist/{confirmation.context-2-6G831n.js → confirmation.context-CD-UjjK8.js} +1 -1
- package/dist/{context-HV79Qf_F.js → context-74MZZLC0.js} +2 -53
- package/dist/{date-picker-42XrbatY.d.ts → date-picker-gLc7aPL7.d.ts} +1 -1
- package/dist/date-range-picker-B0CQwS9a.d.ts +9 -0
- package/dist/{date-time-picker-BQp0fmmb.d.ts → date-time-picker-Db_pMYsD.d.ts} +1 -1
- package/dist/{datePickerValue.utils-469FeRCl.js → datePickerValue.utils-CA2te8RG.js} +2 -2
- package/dist/{dynamicInputs-CecPNXsF.d.ts → dynamicInputs-D1UI85oQ.d.ts} +8 -8
- package/dist/{i18n-C2TBJvnh.js → i18n-BDjNuy4Z.js} +2 -0
- package/dist/{i18n-DjqhCCJq.d.ts → i18n-D0Pz0p2u.d.ts} +2 -0
- package/dist/import-BXAtbYEe.js +73 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.js +28 -28
- package/dist/number-DTwXo26a.js +40 -0
- package/dist/{numberStatic.utils-CWkou4ca.js → numberStatic.utils-DcnGigJ6.js} +7 -6
- package/dist/rhf/checkbox.js +1 -1
- package/dist/rhf/date-picker.d.ts +2 -2
- package/dist/rhf/date-picker.js +1 -1
- package/dist/rhf/date-range-picker.d.ts +3 -3
- package/dist/rhf/date-range-picker.js +1 -1
- package/dist/rhf/date-time-picker.d.ts +2 -2
- package/dist/rhf/date-time-picker.js +1 -1
- package/dist/rhf/file-upload.js +1 -1
- package/dist/rhf/input-upload.js +1 -1
- package/dist/rhf/inputs.d.ts +1 -1
- package/dist/rhf/number-range-input.js +1 -1
- package/dist/rhf/password-input.js +1 -1
- package/dist/rhf/radio-group.js +1 -1
- package/dist/rhf/segment.js +1 -1
- package/dist/rhf/select.js +1 -1
- package/dist/rhf/slider.js +1 -1
- package/dist/rhf/text-area.js +1 -1
- package/dist/rhf/text-editor.js +1 -1
- package/dist/rhf/time-picker.js +1 -1
- package/dist/rhf/toggle.js +1 -1
- package/dist/rhf.d.ts +9 -9
- package/dist/rhf.js +28 -28
- package/dist/{staticDateTimeSegments-BOFCK9Ub.js → staticDateTimeSegments-BJpz4raS.js} +15 -13
- package/dist/{staticSelect.utils-Bh1OVHuT.js → staticSelect.utils-D16Yq0j-.js} +21 -19
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.d.ts +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.d.ts +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.d.ts +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/input-upload.js +1 -1
- package/dist/tanstack/inputs.d.ts +2 -2
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.js +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/segment.js +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/text-editor.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle.js +1 -1
- package/dist/tanstack.d.ts +9 -9
- package/dist/tanstack.js +39 -39
- package/dist/text-editor.js +1 -1
- package/dist/{toast.runtime--mTw_-fT.js → toast.runtime-CzHEhKmm.js} +1 -1
- package/dist/tooltipWrapper.cva-CUu8pI-a.js +5 -0
- package/dist/triangle-B5uw3vnc.js +13 -0
- package/dist/{uiConfig.context-B27wINPD.d.ts → uiConfig.context-H1XbHuwS.d.ts} +2 -2
- package/dist/{useButton-STC3gJBt.js → useButton-CTZ6UEfP.js} +2 -1
- package/dist/{useDescription-D8raJPFb.js → useDescription-4EIEr0rR.js} +1 -1
- package/dist/{useEffectEvent-DAMDuWzz.js → useEffectEvent-BdzIyMdT.js} +1 -1
- package/dist/{useEvent-5X8yPLOx.js → useEvent-CjGFQh-l.js} +1 -1
- package/dist/{useFieldAccessibility-BsEP3ts2.js → useFieldAccessibility-gWmCBTWA.js} +2 -2
- package/dist/{useFilter-DjR64hmy.js → useFilter-CI4X6urj.js} +1 -1
- package/dist/{useFormAutosave-DtYELduH.js → useFormAutosave-D-tnGPI8.js} +1 -1
- package/dist/{useFormReset-CFgV1v57.js → useFormReset-BmSQIMid.js} +1 -1
- package/dist/{useFormValidation-DWqb1ZeB.js → useFormValidation-DlNyD6aD.js} +2 -2
- package/dist/{useLabels-CUjKpeKj.js → useLabels-Bt2BXuQ6.js} +1 -1
- package/dist/{useLocalizedStringFormatter-D9TmTRN_.js → useLocalizedStringFormatter-tBB7tXBj.js} +1 -1
- package/dist/{useNumberFormatter-BiWwqIo9.js → useNumberFormatter-Dgd8W1FX.js} +1 -1
- package/dist/{useSpinButton-BxGKzVHd.js → useSpinButton-Ba23Hqso.js} +3 -3
- package/dist/{useStaticInputHandoff-ClwANfo-.js → useStaticInputHandoff-D8dmC_LG.js} +2 -2
- package/dist/{useTableColumnConfig-CR0gk7hI.js → useTableColumnConfig-C647gNJs.js} +3 -3
- package/dist/{useToggle-ingqhLIQ.js → useToggle-D8aP2d5t.js} +3 -2
- package/dist/{import-CuNJ25EP.js → utils-D-KKbY-n.js} +1 -73
- package/package.json +1 -1
- package/dist/date-range-picker-BYdeSyMU.d.ts +0 -9
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { t as ChevronDown } from "./chevron-down-Ciz9yP9R.js";
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
3
|
import { i as $4e85f108e88277b8$export$d688439359537581 } from "./RSPContexts-DHQi1l7F.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { _ as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $5dc95899b306f630$export$c9058316764c140e, g as $b5e257d569688ac6$export$535bd6ca7f90a273, h as $bdb11010cef70236$export$f680877a34711e37, n as $64fa3d84918910a7$export$29f1550f4b0d4415, o as $64fa3d84918910a7$export$c62b8e45d58ddad9, r as $64fa3d84918910a7$export$4d86445c2cf5e3, s as $64fa3d84918910a7$export$df3a06d6289f983e, t as $64fa3d84918910a7$export$2881499e37b75b9a } from "./utils-D-KKbY-n.js";
|
|
5
|
+
import { a as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./import-BXAtbYEe.js";
|
|
6
|
+
import { t as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-CjGFQh-l.js";
|
|
6
7
|
import { t as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-Bk39gTui.js";
|
|
7
|
-
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, t as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-
|
|
8
|
+
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, t as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-D09S1dNt.js";
|
|
8
9
|
import { t as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Cd0lBvKO.js";
|
|
9
10
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
10
11
|
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
|
|
2
2
|
import { t as X } from "./x-BYOEO0gW.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
-
import { n as $de32f1b87079253c$export$3ddf2d174ce01153, t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "./Dialog-
|
|
5
|
-
import {
|
|
6
|
-
import { n as $f3f84453ead64de5$export$8948f78d83984c69, r as $5df64b3807dc15ee$export$d699905dd57c73ca, t as $f3f84453ead64de5$export$2b77a92f1a5ad772 } from "./Modal-
|
|
7
|
-
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-
|
|
4
|
+
import { n as $de32f1b87079253c$export$3ddf2d174ce01153, t as $de32f1b87079253c$export$2e1e1122cf0cba88 } from "./Dialog-Bl7F9FUP.js";
|
|
5
|
+
import { l as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-CyFI2DhX.js";
|
|
6
|
+
import { n as $f3f84453ead64de5$export$8948f78d83984c69, r as $5df64b3807dc15ee$export$d699905dd57c73ca, t as $f3f84453ead64de5$export$2b77a92f1a5ad772 } from "./Modal-UhtruHmf.js";
|
|
7
|
+
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-D09S1dNt.js";
|
|
8
8
|
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
9
|
-
import "./i18n-
|
|
9
|
+
import "./i18n-BDjNuy4Z.js";
|
|
10
10
|
import { n as useStateAndRef, t as DomUtils } from "./dom.utils-CeVnXH-T.js";
|
|
11
11
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
12
12
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { t as MenuDesktop } from "./MenuDesktop-
|
|
1
|
+
import { t as MenuDesktop } from "./MenuDesktop-C3_I4fdd.js";
|
|
2
2
|
import { t as ChevronRight } from "./chevron-right-C_M98bh3.js";
|
|
3
|
-
import { t as Tooltip } from "./Tooltip-
|
|
3
|
+
import { t as Tooltip } from "./Tooltip-D8YNkKCl.js";
|
|
4
4
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
|
-
import { d as $
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { n as $
|
|
9
|
-
import { n as $
|
|
5
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, l as $64fa3d84918910a7$export$fabf2dc03a41866e, n as $64fa3d84918910a7$export$29f1550f4b0d4415, r as $64fa3d84918910a7$export$4d86445c2cf5e3, s as $64fa3d84918910a7$export$df3a06d6289f983e } from "./utils-D-KKbY-n.js";
|
|
6
|
+
import { a as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./import-BXAtbYEe.js";
|
|
7
|
+
import { _ as $e1995378a142960e$export$18af5c7a9e9b3664, h as $7135fc7d473fd974$export$4feb769f8ddf26c5, v as $e1995378a142960e$export$bf788dd355e3a401, x as $23b9f4fcf0fe224b$export$d68d59712b04d9d1, y as $e1995378a142960e$export$fb8073518f34e6ec } from "./Dialog-Bl7F9FUP.js";
|
|
8
|
+
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-D09S1dNt.js";
|
|
9
|
+
import { n as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-tBB7tXBj.js";
|
|
10
|
+
import { n as $4f118338184dc1d9$export$e2509388b49734e7, t as $4f118338184dc1d9$export$a6c7ac8248d6e38a } from "./Link-BWbPxs6p.js";
|
|
10
11
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
11
12
|
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
12
13
|
import { t as LinkContext } from "./link.context-J7aQtMOr.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, h as $bdb11010cef70236$export$f680877a34711e37, n as $64fa3d84918910a7$export$29f1550f4b0d4415, r as $64fa3d84918910a7$export$4d86445c2cf5e3, s as $64fa3d84918910a7$export$df3a06d6289f983e } from "./utils-D-KKbY-n.js";
|
|
2
|
+
import { a as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, i as useHover } from "./import-BXAtbYEe.js";
|
|
2
3
|
import { t as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Cd0lBvKO.js";
|
|
3
4
|
import { t as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-BtagiSrf.js";
|
|
4
|
-
import { t as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-
|
|
5
|
+
import { t as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-CTZ6UEfP.js";
|
|
5
6
|
import $HgANd$react, { createContext, useEffect, useRef } from "react";
|
|
6
7
|
//#region ../../node_modules/.bun/@react-aria+live-announcer@3.4.4/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs
|
|
7
8
|
const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY = 7e3;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
-
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-
|
|
4
|
-
import { t as $4f118338184dc1d9$export$a6c7ac8248d6e38a } from "./Link-
|
|
5
|
-
import { t as $efde0372d7a700fe$export$d2b052e7b4be1756 } from "./ToggleButton-
|
|
3
|
+
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-D09S1dNt.js";
|
|
4
|
+
import { t as $4f118338184dc1d9$export$a6c7ac8248d6e38a } from "./Link-BWbPxs6p.js";
|
|
5
|
+
import { t as $efde0372d7a700fe$export$d2b052e7b4be1756 } from "./ToggleButton-C01P8reg.js";
|
|
6
6
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
7
7
|
import { t as LinkContext } from "./link.context-J7aQtMOr.js";
|
|
8
8
|
import { t as ButtonContent } from "./ButtonContent-17xvQXod.js";
|
|
@@ -2,22 +2,24 @@ import { t as ChevronDown } from "./chevron-down-Ciz9yP9R.js";
|
|
|
2
2
|
import { t as ChevronLeft } from "./chevron-left-VO8YZrXZ.js";
|
|
3
3
|
import { t as ChevronRight } from "./chevron-right-C_M98bh3.js";
|
|
4
4
|
import { t as ChevronUp } from "./chevron-up-CHRnDSA3.js";
|
|
5
|
-
import { i as CalendarGrid } from "./DatePickerInput-
|
|
5
|
+
import { i as CalendarGrid } from "./DatePickerInput-BK6P_VAB.js";
|
|
6
6
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { o as $9bf71ea28793e738$export$c5251b9e124bf29 } from "./SelectionIndicator-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { n as $
|
|
7
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, h as $bdb11010cef70236$export$f680877a34711e37 } from "./utils-D-KKbY-n.js";
|
|
8
|
+
import { t as $d4ee10de306f2510$export$4282f70798064fe0 } from "./DOMFunctions-BrQjsnDh.js";
|
|
9
|
+
import { o as $9bf71ea28793e738$export$c5251b9e124bf29 } from "./SelectionIndicator-BvWiZS2N.js";
|
|
10
|
+
import { a as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./import-BXAtbYEe.js";
|
|
11
|
+
import { t as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "./useDescription-4EIEr0rR.js";
|
|
12
|
+
import { C as $dfb4eba373ed9493$exports, S as $3dfb0f96be0d6a08$export$4a931266a3838b86, v as $16f0b7bb276bc17e$export$300019f83c56d282, w as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./staticDateTimeSegments-BJpz4raS.js";
|
|
13
|
+
import { i as $eed445e0843c11d0$export$a11e76429ed99b4, t as $eed445e0843c11d0$export$41f133550aa26f48 } from "./ListBox-Ck1UjeGo.js";
|
|
14
|
+
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-D09S1dNt.js";
|
|
15
|
+
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-74MZZLC0.js";
|
|
16
|
+
import { n as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-tBB7tXBj.js";
|
|
15
17
|
import { n as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidationState-Bpry7Uk5.js";
|
|
16
|
-
import { n as $84b7d8702d4ff4a8$export$40258cc1d95ff477 } from "./ToggleButton-
|
|
18
|
+
import { n as $84b7d8702d4ff4a8$export$40258cc1d95ff477 } from "./ToggleButton-C01P8reg.js";
|
|
17
19
|
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
18
20
|
import { PillButton } from "./components/pill-button.js";
|
|
19
21
|
import { t as useBreakpoint } from "./useBreakpoint-YuMYUdpG.js";
|
|
20
|
-
import { n as TimePickerForm } from "./datePickerValue.utils-
|
|
22
|
+
import { n as TimePickerForm } from "./datePickerValue.utils-CA2te8RG.js";
|
|
21
23
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
22
24
|
import { c } from "react/compiler-runtime";
|
|
23
25
|
import { CalendarDateTime, Time, today } from "@internationalized/date";
|
|
@@ -2,15 +2,16 @@ import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
|
|
|
2
2
|
import { c as checkboxIndicatorClass, l as checkboxTypography, n as checkboxContentClassName, t as CheckboxCheckmark } from "./CheckboxCheckmark-C7Oq15ms.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { n as $4e85f108e88277b8$export$b085522c77523c51 } from "./RSPContexts-DHQi1l7F.js";
|
|
5
|
-
import {
|
|
5
|
+
import { c as $64fa3d84918910a7$export$ef03459518577ad4, d as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, l as $64fa3d84918910a7$export$fabf2dc03a41866e, n as $64fa3d84918910a7$export$29f1550f4b0d4415, r as $64fa3d84918910a7$export$4d86445c2cf5e3, s as $64fa3d84918910a7$export$df3a06d6289f983e, t as $64fa3d84918910a7$export$2881499e37b75b9a, u as $df56164dff5785e2$export$4338b53315abf666 } from "./utils-D-KKbY-n.js";
|
|
6
|
+
import { a as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, i as useHover$1 } from "./import-BXAtbYEe.js";
|
|
6
7
|
import { t as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-Bk39gTui.js";
|
|
7
8
|
import { t as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Cd0lBvKO.js";
|
|
8
|
-
import { t as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
9
|
+
import { t as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-CWgME09A.js";
|
|
9
10
|
import { i as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, n as $e5be200c675c3b3a$export$a763b9476acd3eb, r as $e5be200c675c3b3a$export$dad6ae84456c676a, t as $e5be200c675c3b3a$export$75ee7c75d68f5b0e } from "./useFormValidationState-Bpry7Uk5.js";
|
|
10
|
-
import { t as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
11
|
-
import { t as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "./useToggle-
|
|
11
|
+
import { t as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-DlNyD6aD.js";
|
|
12
|
+
import { t as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "./useToggle-D8aP2d5t.js";
|
|
12
13
|
import { t as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "./useToggleState-Dyx-sAjp.js";
|
|
13
|
-
import { t as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-
|
|
14
|
+
import { t as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-BVczUvgv.js";
|
|
14
15
|
import { t as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-BTtw_Syz.js";
|
|
15
16
|
import { n as $ee014567cb39d3f0$export$ff05c3ac10437e03, t as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-CKUcoaMX.js";
|
|
16
17
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/domHelpers.mjs
|
|
2
|
+
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
3
|
+
var _el_ownerDocument;
|
|
4
|
+
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
|
5
|
+
};
|
|
6
|
+
const $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => {
|
|
7
|
+
if (el && "window" in el && el.window === el) return el;
|
|
8
|
+
return $431fbd86ca7dc216$export$b204af158042fbac(el).defaultView || window;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Type guard that checks if a value is a Node. Verifies the presence and type of the nodeType property.
|
|
12
|
+
*/ function $431fbd86ca7dc216$var$isNode(value) {
|
|
13
|
+
return value !== null && typeof value === "object" && "nodeType" in value && typeof value.nodeType === "number";
|
|
14
|
+
}
|
|
15
|
+
function $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {
|
|
16
|
+
return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in node;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ../../node_modules/.bun/@react-stately+flags@3.1.2/node_modules/@react-stately/flags/dist/import.mjs
|
|
20
|
+
let $f4e2df6bd15f8569$var$_shadowDOM = false;
|
|
21
|
+
function $f4e2df6bd15f8569$export$98658e8c59125e6a() {
|
|
22
|
+
return $f4e2df6bd15f8569$var$_shadowDOM;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/DOMFunctions.mjs
|
|
26
|
+
function $d4ee10de306f2510$export$4282f70798064fe0(node, otherNode) {
|
|
27
|
+
if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return otherNode && node ? node.contains(otherNode) : false;
|
|
28
|
+
if (!node || !otherNode) return false;
|
|
29
|
+
let currentNode = otherNode;
|
|
30
|
+
while (currentNode !== null) {
|
|
31
|
+
if (currentNode === node) return true;
|
|
32
|
+
if (currentNode.tagName === "SLOT" && currentNode.assignedSlot) currentNode = currentNode.assignedSlot.parentNode;
|
|
33
|
+
else if ($431fbd86ca7dc216$export$af51f0f06c0f328a(currentNode)) currentNode = currentNode.host;
|
|
34
|
+
else currentNode = currentNode.parentNode;
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
const $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document) => {
|
|
39
|
+
var _activeElement_shadowRoot;
|
|
40
|
+
if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return doc.activeElement;
|
|
41
|
+
let activeElement = doc.activeElement;
|
|
42
|
+
while (activeElement && "shadowRoot" in activeElement && ((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0 ? void 0 : _activeElement_shadowRoot.activeElement)) activeElement = activeElement.shadowRoot.activeElement;
|
|
43
|
+
return activeElement;
|
|
44
|
+
};
|
|
45
|
+
function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {
|
|
46
|
+
if ($f4e2df6bd15f8569$export$98658e8c59125e6a() && event.target.shadowRoot) {
|
|
47
|
+
if (event.composedPath) return event.composedPath()[0];
|
|
48
|
+
}
|
|
49
|
+
return event.target;
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { $431fbd86ca7dc216$export$b204af158042fbac as a, $f4e2df6bd15f8569$export$98658e8c59125e6a as i, $d4ee10de306f2510$export$cd4e5573fbe2b576 as n, $431fbd86ca7dc216$export$f21a1ffae260145a as o, $d4ee10de306f2510$export$e58f029f0fbfdb29 as r, $d4ee10de306f2510$export$4282f70798064fe0 as t };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as renderDatePickerTodayIcon, r as datePickerInputContentRowDefinition, t as DatePickerInput } from "./DatePickerInput-D3kmFpMZ.js";
|
|
2
|
+
import { n as renderDatePickerTodayIcon, r as datePickerInputContentRowDefinition, t as DatePickerInput } from "./DatePickerInput-BK6P_VAB.js";
|
|
4
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { r as $6057a3d2a53a12fd$export$42df105a73306d51, t as Calendar } from "./Calendar-
|
|
4
|
+
import { f as $5dc95899b306f630$export$c9058316764c140e } from "./utils-D-KKbY-n.js";
|
|
5
|
+
import { d as useCalendarState, i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, p as useDatePickerState, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-BJpz4raS.js";
|
|
6
|
+
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-74MZZLC0.js";
|
|
7
|
+
import { r as $6057a3d2a53a12fd$export$42df105a73306d51, t as Calendar } from "./Calendar-DQxeTov4.js";
|
|
9
8
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
10
9
|
import { t as FieldController } from "./form.binding-DyZ4fH8l.js";
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
10
|
+
import { t as FormField } from "./FormField-Cl-t5Wi1.js";
|
|
11
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-DyDsoRe-.js";
|
|
12
|
+
import { n as InputFrame, t as useStaticInputHandoff } from "./useStaticInputHandoff-D8dmC_LG.js";
|
|
13
|
+
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-CA2te8RG.js";
|
|
14
14
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
15
15
|
import { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
16
16
|
import { createCalendar, getLocalTimeZone, toCalendarDate, today } from "@internationalized/date";
|
|
@@ -3,7 +3,7 @@ import { n as FieldValues } from "./form.binding-DWlFTecs.js";
|
|
|
3
3
|
import { t as ControlProps } from "./form.types-B9Vp8q2g.js";
|
|
4
4
|
import { n as FormFieldProps } from "./FormField-CpPQoyv_.js";
|
|
5
5
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
6
|
-
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-
|
|
6
|
+
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-BJi1U0fr.js";
|
|
7
7
|
import { FocusEvent, Ref } from "react";
|
|
8
8
|
import { CalendarDate, DateValue } from "@internationalized/date";
|
|
9
9
|
//#region src/components/inputs/DateTime/DatePicker/DatePicker.d.ts
|
|
@@ -2,7 +2,7 @@ import "./types-BSiv-Igp.js";
|
|
|
2
2
|
import { n as IconButtonProps } from "./IconButton-Dv45TT1w.js";
|
|
3
3
|
import "./FormField-CpPQoyv_.js";
|
|
4
4
|
import "./input.cva-CfgCOIQW.js";
|
|
5
|
-
import { Ref } from "react";
|
|
5
|
+
import { ReactNode, Ref } from "react";
|
|
6
6
|
//#region src/components/inputs/DateTime/shared/datePicker.types.d.ts
|
|
7
7
|
type DatePickerTodayIcon = boolean | IconButtonProps["icon"];
|
|
8
8
|
type DatePickerTodayIconButtonSize = IconButtonProps["size"];
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-CskCrR9z.js";
|
|
2
2
|
import { t as UIConfig } from "./uiConfig.context-B_wBkrQZ.js";
|
|
3
|
-
import { r as FormFieldLabel } from "./FormField-ChDNTHr4.js";
|
|
4
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-D-KKbY-n.js";
|
|
5
|
+
import { b as $16f0b7bb276bc17e$export$5591b0b878c1a989, c as useFirefoxDateSegmentSelectionGuard, f as useDateFieldState, l as DateSegmentItem } from "./staticDateTimeSegments-BJpz4raS.js";
|
|
6
|
+
import { n as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-D09S1dNt.js";
|
|
7
|
+
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-74MZZLC0.js";
|
|
9
8
|
import { t as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Cd0lBvKO.js";
|
|
10
9
|
import { t as UIOverrides } from "./uiOverrides.context-Bfm2n-n8.js";
|
|
11
10
|
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
12
11
|
import { IconButton } from "./components/icon-button.js";
|
|
13
12
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
14
|
-
import { r as
|
|
13
|
+
import { r as FormFieldLabel } from "./FormField-Cl-t5Wi1.js";
|
|
14
|
+
import { n as InputClear } from "./TooltipWrapper-DyDsoRe-.js";
|
|
15
15
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-KYGD4Bdz.js";
|
|
16
16
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
17
17
|
import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
|
|
@@ -421,7 +421,7 @@ const renderDatePickerTodayIcon = (todayIcon, options) => {
|
|
|
421
421
|
};
|
|
422
422
|
//#endregion
|
|
423
423
|
//#region src/components/inputs/DateTime/shared/DatePickerInput.tsx
|
|
424
|
-
const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, isValueControlled, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, shouldShrinkInput, isClearable, isClearableIfDisabled, headerProps, todayIcon, todayIconButtonSize = "none", todayIconButtonComponent, todayIconPlacement = "content", isDirty, isRequired, disableManualEntry, autoFixYear = false, placeholder,
|
|
424
|
+
const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, fieldValue, endFieldValue, isValueControlled, hasValue, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, shouldShrinkInput, isClearable, isClearableIfDisabled, headerProps, todayIcon, todayIconButtonSize = "none", todayIconButtonComponent, todayIconPlacement = "content", isDirty, isRequired, disableManualEntry, autoFixYear = false, placeholder, displayContent, className, onOpenDropdown, dateGranularity = "day", timeZone: timeZoneProp, isTimeOptional = false, format, onClear: onClearProp, ...props }) => {
|
|
425
425
|
const uiConfig = UIConfig.useConfig();
|
|
426
426
|
const timeZone = timeZoneProp ?? uiConfig.dateInput.timeZone;
|
|
427
427
|
let effectiveTimeZone = getLocalTimeZone();
|
|
@@ -541,11 +541,7 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, field
|
|
|
541
541
|
isDisabled
|
|
542
542
|
}),
|
|
543
543
|
!shouldRenderTodayIconWithFieldLabel && todayIconButton,
|
|
544
|
-
|
|
545
|
-
size: "label-1",
|
|
546
|
-
className: "truncate",
|
|
547
|
-
children: displayValue
|
|
548
|
-
}) : disableManualEntry && placeholder && !fieldProps.value ? /* @__PURE__ */ jsx(Typography, {
|
|
544
|
+
displayContent ? displayContent : disableManualEntry && placeholder && !fieldProps.value ? /* @__PURE__ */ jsx(Typography, {
|
|
549
545
|
size: "label-1",
|
|
550
546
|
className: "text-text-default-3",
|
|
551
547
|
children: placeholder
|
|
@@ -3,7 +3,7 @@ import { n as FieldValues } from "./form.binding-DWlFTecs.js";
|
|
|
3
3
|
import { t as ControlProps } from "./form.types-B9Vp8q2g.js";
|
|
4
4
|
import { n as FormFieldProps } from "./FormField-CpPQoyv_.js";
|
|
5
5
|
import { n as InputVariantProps } from "./input.cva-CfgCOIQW.js";
|
|
6
|
-
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-
|
|
6
|
+
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-BJi1U0fr.js";
|
|
7
7
|
import { FocusEvent, Ref } from "react";
|
|
8
8
|
import { CalendarDate } from "@internationalized/date";
|
|
9
9
|
//#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts
|
|
@@ -27,34 +27,52 @@ interface DateRangePickerBaseProps extends FormFieldProps, InputVariantProps, Om
|
|
|
27
27
|
allowPartialRange?: boolean;
|
|
28
28
|
mode?: "absolute" | "relative";
|
|
29
29
|
relativeValue?: string | null;
|
|
30
|
+
relativeResolvedValue?: DateRange | null;
|
|
30
31
|
relativeOptions?: DateRangeRelativeOption[];
|
|
31
|
-
onRelativeChange?: (value: string | null) => void;
|
|
32
|
+
onRelativeChange?: (value: string | null, resolvedValue: DateRange | null) => void;
|
|
33
|
+
enableRelativeMode?: boolean;
|
|
34
|
+
onModeChange?: (isRelative: boolean) => void;
|
|
35
|
+
}
|
|
36
|
+
interface DateRange {
|
|
37
|
+
start: DateValue$1;
|
|
38
|
+
end: DateValue$1;
|
|
32
39
|
}
|
|
33
40
|
interface DateRangeRelativeOption {
|
|
34
41
|
/** Stable value emitted by DateRangePicker when mode is `relative`. */
|
|
35
42
|
value: string;
|
|
36
43
|
/** Human-readable value shown in the input and options list. */
|
|
37
44
|
label: string;
|
|
45
|
+
/** Resolves this relative option to its current concrete range. */
|
|
46
|
+
getValue: () => DateRangeResolvedValue;
|
|
38
47
|
isDisabled?: boolean;
|
|
39
48
|
}
|
|
40
|
-
interface
|
|
49
|
+
interface DateRangeResolvedValue {
|
|
50
|
+
start: string;
|
|
51
|
+
end: string;
|
|
52
|
+
}
|
|
53
|
+
interface DateRangeRelativeValue {
|
|
54
|
+
relativeValue: string;
|
|
55
|
+
resolvedValue: DateRangeResolvedValue;
|
|
56
|
+
}
|
|
57
|
+
interface DateRangePickerSharedProps extends Omit<DateRangePickerBaseProps, "value" | "onChange" | "minValue" | "maxValue" | "mode" | "relativeValue" | "relativeResolvedValue" | "relativeOptions" | "onRelativeChange" | "onModeChange"> {
|
|
41
58
|
fullIso?: boolean;
|
|
42
59
|
minValue?: DateValue$1 | string;
|
|
43
60
|
maxValue?: DateValue$1 | string;
|
|
44
61
|
renderStaticInput?: boolean;
|
|
45
62
|
}
|
|
46
|
-
type
|
|
63
|
+
type AbsoluteDateRangePickerValue = {
|
|
47
64
|
start: string | null;
|
|
48
65
|
end: string | null;
|
|
49
|
-
} |
|
|
50
|
-
type
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
66
|
+
} | null;
|
|
67
|
+
type DateRangePickerValue = AbsoluteDateRangePickerValue | DateRangeRelativeValue;
|
|
68
|
+
type DateRangePickerProps<TEnableRelativeMode extends boolean = false> = DateRangePickerSharedProps & {
|
|
69
|
+
/** Allows switching between concrete date ranges and relative preset values. */
|
|
70
|
+
enableRelativeMode?: TEnableRelativeMode;
|
|
71
|
+
value?: TEnableRelativeMode extends true ? DateRangePickerValue : AbsoluteDateRangePickerValue;
|
|
72
|
+
onChange?: (value: TEnableRelativeMode extends true ? DateRangePickerValue : AbsoluteDateRangePickerValue) => void;
|
|
55
73
|
};
|
|
56
|
-
type ControlledDateRangePickerProps<TFieldValues extends FieldValues,
|
|
57
|
-
declare const DateRangePickerComponent: <TFieldValues extends FieldValues,
|
|
74
|
+
type ControlledDateRangePickerProps<TFieldValues extends FieldValues, TEnableRelativeMode extends boolean = false> = ControlProps<DateRangePickerProps<TEnableRelativeMode>, TFieldValues>;
|
|
75
|
+
declare const DateRangePickerComponent: <TFieldValues extends FieldValues, TEnableRelativeMode extends boolean = false>({ fullIso, minValue, maxValue, renderStaticInput, ...props }: ControlledDateRangePickerProps<TFieldValues, TEnableRelativeMode>) => import("react/jsx-runtime").JSX.Element;
|
|
58
76
|
declare const DateRangePicker: typeof DateRangePickerComponent;
|
|
59
77
|
//#endregion
|
|
60
|
-
export { DateRangeRelativeOption as i, DateRangePicker as n, DateRangePickerProps as r, ControlledDateRangePickerProps as t };
|
|
78
|
+
export { DateRangeRelativeValue as a, DateRangeRelativeOption as i, DateRangePicker as n, DateRangeResolvedValue as o, DateRangePickerProps as r, ControlledDateRangePickerProps as t };
|