@pfct/purple 1.14.0 → 1.15.1
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/assets/index.css +2 -2
- package/dist/chunks/{Accordion.D8caFIuT.js → Accordion.6fAW322P.js} +23 -23
- package/dist/chunks/Accordion.DnnZvp-k.js +1 -0
- package/dist/chunks/Divider.BIS4pXEy.js +1 -0
- package/dist/chunks/{Divider.KzhgrMYv.js → Divider.DBtnaPqJ.js} +1 -1
- package/dist/chunks/{DotLottie.rjIbaVEt.js → DotLottie.-8NWMOKQ.js} +57 -54
- package/dist/chunks/{DotLottie.CAB2tVvS.js → DotLottie.BCyB3kR7.js} +2 -2
- package/dist/chunks/{Spinner.C7NCfrzp.js → Spinner.D3F4lchb.js} +1 -1
- package/dist/chunks/{Spinner.CU8SLZiI.js → Spinner.FydRjihg.js} +1 -1
- package/dist/chunks/Switch.Cf6DiCUV.js +1 -0
- package/dist/chunks/{Switch.BgeUHuBq.js → Switch.DZP1mWLt.js} +7 -7
- package/dist/chunks/Toast.Cjdk4za6.js +1 -0
- package/dist/chunks/{bottomSheet.CnYVp9RP.js → bottomSheet.BH73fUXU.js} +2 -2
- package/dist/chunks/bottomSheet.M3yxr5-0.js +1 -0
- package/dist/chunks/calendar.B-KPMIgz.js +1 -0
- package/dist/chunks/calendar.DyOEuwp0.js +1511 -0
- package/dist/chunks/{checkbox.Dzvj-4RV.js → checkbox.DihHSceK.js} +8 -8
- package/dist/chunks/checkbox.kS_54E9q.js +1 -0
- package/dist/chunks/dateMatchModifiers.BP6awhUm.js +1652 -0
- package/dist/chunks/dateMatchModifiers.DWzTSPL9.js +1 -0
- package/dist/chunks/{dist.Cfck23KY.js → dist.0EAhIi1e.js} +1 -1
- package/dist/chunks/dist.BWsA5f1f.js +1 -0
- package/dist/chunks/{dist.CzNkwCpH.js → dist.BovUpaIu.js} +24 -10
- package/dist/chunks/dist.Bt6mCKem.js +1 -0
- package/dist/chunks/dist.C6Y9cYZm.js +1 -0
- package/dist/chunks/dist.C8FJXTu6.js +10 -0
- package/dist/chunks/dist.C8NniehT.js +1 -0
- package/dist/chunks/{dist.Dh7WDTyn.js → dist.CB-rIMVI.js} +1 -1
- package/dist/chunks/dist.Cf37BjoU.js +1 -0
- package/dist/chunks/dist.CmRTDXGG.js +1 -0
- package/dist/chunks/dist.D3MzxMSH.js +1 -0
- package/dist/chunks/dist.D3epBPq9.js +1 -0
- package/dist/chunks/{dist.6jgaVidM.js → dist.DAQtqq8Q.js} +4 -4
- package/dist/chunks/{dist.Ds9VPbBd.js → dist.DHqfAMUX.js} +21 -21
- package/dist/chunks/dist.DJPq2jOJ.js +1 -0
- package/dist/chunks/dist.DKOi9kq6.js +1 -0
- package/dist/chunks/{dist.Ct4Usz2n.js → dist.DSx7Feoc.js} +1 -1
- package/dist/chunks/dist.DV3oUYlD.js +1 -0
- package/dist/chunks/dist.DciOZstR.js +1 -0
- package/dist/chunks/{dist.DTByVKhF.js → dist.DrZbhygc.js} +18 -18
- package/dist/chunks/{dist.DPo6XlLq.js → dist.DuawELEr.js} +2 -2
- package/dist/chunks/dist.SHmlpKFY.js +1 -0
- package/dist/chunks/dist.cKdeuHWp.js +1 -0
- package/dist/chunks/{dist.mhQdJ8f2.js → dist.s6QukJK1.js} +40 -38
- package/dist/chunks/dist.xhWLHjmj.js +1 -0
- package/dist/chunks/drawer.CtoEYCdv.js +7 -0
- package/dist/chunks/{drawer.BewJ2D_w.js → drawer.EQu-ewat.js} +475 -464
- package/dist/chunks/{es2015.DoCbPEnP.js → es2015.D2emqwtq.js} +1 -1
- package/dist/chunks/magic-string.es.CBeGIr5F.js +10 -0
- package/dist/chunks/magic-string.es.DC_OgKJ1.js +659 -0
- package/dist/chunks/rolldown-runtime.mLOUI7ql.js +1 -0
- package/dist/chunks/src.ClN0uvp3.js +68 -0
- package/dist/chunks/src.DfmpOXyx.js +1 -0
- package/dist/chunks/test.DNmyFkvJ.BytdfLEt.js +157 -0
- package/dist/chunks/test.DNmyFkvJ.D_-8uo_7.js +17767 -0
- package/dist/chunks/tooltip.BIAjX12E.js +1 -0
- package/dist/chunks/{tooltip.w3pAhl4A.js → tooltip.D_ECTwc-.js} +17 -17
- package/dist/chunks/utils.DxA7tdMJ.js +1 -0
- package/dist/chunks/{utils.D6DjRYW1.js → utils.UNiIm9Bz.js} +372 -364
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.esm.js +1 -1
- package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.esm.js +1 -1
- package/dist/components/Badge/IconBadge/index.cjs.js +1 -1
- package/dist/components/Badge/IconBadge/index.esm.js +1 -1
- package/dist/components/Badge/TextBadge/index.cjs.js +1 -1
- package/dist/components/Badge/TextBadge/index.esm.js +1 -1
- package/dist/components/Button/BaseButton/index.cjs.js +1 -1
- package/dist/components/Button/BaseButton/index.esm.js +1 -1
- package/dist/components/Card/index.cjs.js +1 -1
- package/dist/components/Card/index.esm.js +1 -1
- package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.esm.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.esm.js +1 -1
- package/dist/components/Comment/Group/index.cjs.js +1 -1
- package/dist/components/Comment/Group/index.esm.js +1 -1
- package/dist/components/Comment/Item/index.cjs.js +1 -1
- package/dist/components/Comment/Item/index.esm.js +1 -1
- package/dist/components/Control/CheckMark/index.cjs.js +1 -1
- package/dist/components/Control/CheckMark/index.esm.js +1 -1
- package/dist/components/Control/RadioButton/index.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.esm.js +1 -1
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.esm.js +1 -1
- package/dist/components/Control/index.cjs.js +1 -1
- package/dist/components/Control/index.esm.js +2 -2
- package/dist/components/DatePicker/CalendarNavigation.cjs.js +1 -0
- package/dist/components/DatePicker/CalendarNavigation.d.ts +17 -0
- package/dist/components/DatePicker/CalendarNavigation.d.ts.map +1 -0
- package/dist/components/DatePicker/CalendarNavigation.esm.js +57 -0
- package/dist/components/DatePicker/RangeDatePicker.cjs.js +1 -0
- package/dist/components/DatePicker/RangeDatePicker.d.ts +30 -0
- package/dist/components/DatePicker/RangeDatePicker.d.ts.map +1 -0
- package/dist/components/DatePicker/RangeDatePicker.esm.js +64 -0
- package/dist/components/DatePicker/RangeDatePicker.test.cjs.js +1 -0
- package/dist/components/DatePicker/RangeDatePicker.test.d.ts +2 -0
- package/dist/components/DatePicker/RangeDatePicker.test.d.ts.map +1 -0
- package/dist/components/DatePicker/RangeDatePicker.test.esm.js +129 -0
- package/dist/components/DatePicker/SingleDatePicker.cjs.js +1 -0
- package/dist/components/DatePicker/SingleDatePicker.d.ts +25 -0
- package/dist/components/DatePicker/SingleDatePicker.d.ts.map +1 -0
- package/dist/components/DatePicker/SingleDatePicker.esm.js +52 -0
- package/dist/components/DatePicker/SingleDatePicker.test.cjs.js +1 -0
- package/dist/components/DatePicker/SingleDatePicker.test.d.ts +2 -0
- package/dist/components/DatePicker/SingleDatePicker.test.d.ts.map +1 -0
- package/dist/components/DatePicker/SingleDatePicker.test.esm.js +37 -0
- package/dist/components/DatePicker/hooks.cjs.js +1 -0
- package/dist/components/DatePicker/hooks.d.ts +46 -0
- package/dist/components/DatePicker/hooks.d.ts.map +1 -0
- package/dist/components/DatePicker/hooks.esm.js +53 -0
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.d.ts +7 -5
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.esm.js +4 -10
- package/dist/components/DatePicker/styles.cjs.js +1 -0
- package/dist/components/DatePicker/styles.d.ts +25 -0
- package/dist/components/DatePicker/styles.d.ts.map +1 -0
- package/dist/components/DatePicker/styles.esm.js +57 -0
- package/dist/components/DatePicker/utils.cjs.js +1 -0
- package/dist/components/DatePicker/utils.d.ts +23 -0
- package/dist/components/DatePicker/utils.d.ts.map +1 -0
- package/dist/components/DatePicker/utils.esm.js +16 -0
- package/dist/components/Divider/index.cjs.js +1 -1
- package/dist/components/Divider/index.esm.js +1 -1
- package/dist/components/ErrorUI/NotFoundError.cjs.js +1 -1
- package/dist/components/ErrorUI/NotFoundError.esm.js +1 -1
- package/dist/components/ErrorUI/PageLoadError.cjs.js +1 -1
- package/dist/components/ErrorUI/PageLoadError.esm.js +1 -1
- package/dist/components/ErrorUI/SectionError.cjs.js +1 -1
- package/dist/components/ErrorUI/SectionError.esm.js +1 -1
- package/dist/components/ErrorUI/illustrations.cjs.js +1 -1
- package/dist/components/ErrorUI/illustrations.esm.js +1 -1
- package/dist/components/Input/BaseInput/index.cjs.js +1 -1
- package/dist/components/Input/BaseInput/index.esm.js +1 -1
- package/dist/components/Input/PostfixInput/index.cjs.js +1 -1
- package/dist/components/Input/PostfixInput/index.esm.js +1 -1
- package/dist/components/Input/ResidentNumberInput/index.cjs.js +1 -1
- package/dist/components/Input/ResidentNumberInput/index.esm.js +1 -1
- package/dist/components/Input/TextField/index.cjs.js +1 -1
- package/dist/components/Input/TextField/index.esm.js +1 -1
- package/dist/components/Input/common/InputFrame/index.cjs.js +1 -1
- package/dist/components/Input/common/InputFrame/index.esm.js +1 -1
- package/dist/components/LegacyModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/index.esm.js +2 -2
- package/dist/components/List/index.cjs.js +1 -1
- package/dist/components/List/index.esm.js +1 -1
- package/dist/components/Loading/Skeleton/index.cjs.js +1 -1
- package/dist/components/Loading/Skeleton/index.esm.js +1 -1
- package/dist/components/Loading/Spinner/index.cjs.js +1 -1
- package/dist/components/Loading/Spinner/index.esm.js +1 -1
- package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/BoxMiniButton/index.esm.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.esm.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.esm.js +1 -1
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.esm.js +2 -2
- package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
- package/dist/components/Navigation/BaseNavigation/index.esm.js +1 -1
- package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/BottomNavigationBar/index.esm.js +1 -1
- package/dist/components/Navigation/Navigation.cjs.js +1 -1
- package/dist/components/Navigation/Navigation.esm.js +1 -1
- package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/PageNavigationBar/index.esm.js +1 -1
- package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/TitleNavigationBar/index.esm.js +1 -1
- package/dist/components/OverlayRoot/index.cjs.js +1 -1
- package/dist/components/OverlayRoot/index.esm.js +1 -1
- package/dist/components/Pagination/index.cjs.js +1 -1
- package/dist/components/Pagination/index.esm.js +1 -1
- package/dist/components/Pagination/usePagination.esm.js +9 -9
- package/dist/components/Segment/BaseSegment/index.cjs.js +1 -1
- package/dist/components/Segment/BaseSegment/index.esm.js +1 -1
- package/dist/components/Segment/ExtendSegment/index.cjs.js +1 -1
- package/dist/components/Segment/ExtendSegment/index.esm.js +1 -1
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.esm.js +1 -1
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.esm.js +1 -1
- package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/TextTabs/index.esm.js +1 -1
- package/dist/components/Tabs/index.cjs.js +1 -1
- package/dist/components/Tabs/index.esm.js +3 -3
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.esm.js +1 -1
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.esm.js +3 -3
- package/dist/components/TextArea/index.cjs.js +1 -1
- package/dist/components/TextArea/index.esm.js +1 -1
- package/dist/components/Title/index.cjs.js +1 -1
- package/dist/components/Title/index.esm.js +1 -1
- package/dist/components/Toast/index.cjs.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.esm.js +59 -62
- package/dist/components/ui/bottomSheet.cjs.js +1 -1
- package/dist/components/ui/bottomSheet.esm.js +1 -1
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.esm.js +2 -2
- package/dist/components/ui/calendar.cjs.js +1 -0
- package/dist/components/ui/calendar.d.ts +25 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.esm.js +2 -0
- package/dist/components/ui/checkbox.cjs.js +1 -1
- package/dist/components/ui/checkbox.esm.js +1 -1
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.esm.js +2 -2
- package/dist/components/ui/drawer.cjs.js +1 -1
- package/dist/components/ui/drawer.esm.js +1 -1
- package/dist/components/ui/impact-tooltip.cjs.js +1 -1
- package/dist/components/ui/impact-tooltip.esm.js +2 -2
- package/dist/components/ui/select.cjs.js +1 -1
- package/dist/components/ui/select.esm.js +3 -3
- package/dist/components/ui/share-ui.cjs.js +1 -1
- package/dist/components/ui/share-ui.esm.js +1 -1
- package/dist/components/ui/tooltip.cjs.js +1 -1
- package/dist/components/ui/tooltip.esm.js +1 -1
- package/dist/components/ui/typography.cjs.js +1 -1
- package/dist/components/ui/typography.esm.js +1 -1
- package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
- package/dist/core/Typography/BaseTypography/index.esm.js +1 -1
- package/dist/hooks/useOverlayPreventScroll.esm.js +1 -1
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +1 -1
- package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
- package/dist/icons/src/aliases/aliases.esm.js +3 -3
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.esm.js +3 -3
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +3 -3
- package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/prefixed.esm.js +3 -3
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +8 -8
- package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/suffixed.esm.js +3 -3
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.esm.js +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +124 -166
- package/dist/lib/twMerge.cjs.js +1 -0
- package/dist/lib/twMerge.d.ts +22 -0
- package/dist/lib/twMerge.d.ts.map +1 -0
- package/dist/lib/twMerge.esm.js +4 -0
- package/dist/lib/utils.cjs.js +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.esm.js +1 -1
- package/dist/library/DotLottie/index.cjs.js +1 -1
- package/dist/library/DotLottie/index.esm.js +1 -1
- package/dist/library/GlobalLayoutHeaderProvider/index.type.cjs.js +1 -1
- package/dist/library/List/BottomSheetItemList/index.cjs.js +1 -1
- package/dist/library/List/BottomSheetItemList/index.esm.js +1 -1
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.esm.js +1 -1
- package/dist/library/index.cjs.js +1 -1
- package/dist/library/index.esm.js +1 -1
- package/dist/theme.css +826 -0
- package/dist/utils/uuid.util.esm.js +1 -1
- package/package.json +14 -11
- package/dist/chunks/Accordion.CxDfMzK1.js +0 -1
- package/dist/chunks/Divider.CinbGPsa.js +0 -1
- package/dist/chunks/Switch.BL3XBsvs.js +0 -1
- package/dist/chunks/Toast.D-0VbzOt.js +0 -1
- package/dist/chunks/bottomSheet.B5OrcCXx.js +0 -1
- package/dist/chunks/checkbox.CYGNBSUO.js +0 -1
- package/dist/chunks/chunk.CMqjfN_6.js +0 -1
- package/dist/chunks/dist.B4EKXpi9.js +0 -1
- package/dist/chunks/dist.Bj_fI5rQ.js +0 -1
- package/dist/chunks/dist.BklO76Tk.js +0 -1
- package/dist/chunks/dist.BoEBrFAh.js +0 -1
- package/dist/chunks/dist.C4D-6Tcr.js +0 -1
- package/dist/chunks/dist.CJY8LqRA.js +0 -1
- package/dist/chunks/dist.CT8nUj9V.js +0 -1
- package/dist/chunks/dist.CpTw9rlm.js +0 -1
- package/dist/chunks/dist.Crl6KTg_.js +0 -21
- package/dist/chunks/dist.DTg4gm8w.js +0 -1
- package/dist/chunks/dist.DvmdOncE.js +0 -1
- package/dist/chunks/dist.ERrpPEZ4.js +0 -1
- package/dist/chunks/dist.OINbhiqU.js +0 -1
- package/dist/chunks/dist.Pmh4V8k2.js +0 -1
- package/dist/chunks/dist.Xtc44Blp.js +0 -1
- package/dist/chunks/dist.ZyM9l2Vf.js +0 -1
- package/dist/chunks/drawer.Cty9wtvs.js +0 -7
- package/dist/chunks/tooltip.Dv33hiJ0.js +0 -1
- package/dist/chunks/utils.C67s_c-g.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.d.ts +0 -13
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.esm.js +0 -30
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.d.ts +0 -12
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.esm.js +0 -27
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.d.ts +0 -8
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.esm.js +0 -6
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.d.ts +0 -12
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.esm.js +0 -24
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.d.ts +0 -12
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.esm.js +0 -24
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.d.ts +0 -12
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.esm.js +0 -24
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.d.ts +0 -8
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.esm.js +0 -7
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/styles.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/styles.d.ts +0 -9
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/styles.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/styles.esm.js +0 -4
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/type.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/type.d.ts +0 -14
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/type.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/type.esm.js +0 -0
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.d.ts +0 -4
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.esm.js +0 -17
- package/dist/components/DatePicker/BaseDatePicker/Month/index.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/Month/index.d.ts +0 -6
- package/dist/components/DatePicker/BaseDatePicker/Month/index.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/Month/index.esm.js +0 -8
- package/dist/components/DatePicker/BaseDatePicker/Week/index.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/Week/index.d.ts +0 -6
- package/dist/components/DatePicker/BaseDatePicker/Week/index.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/Week/index.esm.js +0 -8
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.d.ts +0 -12
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.esm.js +0 -50
- package/dist/components/DatePicker/BaseDatePicker/hooks/index.util.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/hooks/index.util.d.ts +0 -25
- package/dist/components/DatePicker/BaseDatePicker/hooks/index.util.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/hooks/index.util.esm.js +0 -44
- package/dist/components/DatePicker/BaseDatePicker/hooks/useBaseDatePicker.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/hooks/useBaseDatePicker.d.ts +0 -12
- package/dist/components/DatePicker/BaseDatePicker/hooks/useBaseDatePicker.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/hooks/useBaseDatePicker.esm.js +0 -28
- package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +0 -1
- package/dist/components/DatePicker/BaseDatePicker/index.d.ts +0 -11
- package/dist/components/DatePicker/BaseDatePicker/index.d.ts.map +0 -1
- package/dist/components/DatePicker/BaseDatePicker/index.esm.js +0 -62
- package/dist/components/DatePicker/RangeDatePicker/hooks/index.util.cjs.js +0 -1
- package/dist/components/DatePicker/RangeDatePicker/hooks/index.util.d.ts +0 -12
- package/dist/components/DatePicker/RangeDatePicker/hooks/index.util.d.ts.map +0 -1
- package/dist/components/DatePicker/RangeDatePicker/hooks/index.util.esm.js +0 -46
- package/dist/components/DatePicker/RangeDatePicker/hooks/useRangeDatePicker.cjs.js +0 -1
- package/dist/components/DatePicker/RangeDatePicker/hooks/useRangeDatePicker.d.ts +0 -20
- package/dist/components/DatePicker/RangeDatePicker/hooks/useRangeDatePicker.d.ts.map +0 -1
- package/dist/components/DatePicker/RangeDatePicker/hooks/useRangeDatePicker.esm.js +0 -42
- package/dist/components/DatePicker/RangeDatePicker/index.cjs.js +0 -1
- package/dist/components/DatePicker/RangeDatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/RangeDatePicker/index.d.ts.map +0 -1
- package/dist/components/DatePicker/RangeDatePicker/index.esm.js +0 -2
- package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +0 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.d.ts +0 -20
- package/dist/components/DatePicker/RangeDatePickerModal/index.d.ts.map +0 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.esm.js +0 -57
- package/dist/components/DatePicker/RangeDatePickerModal/useRangeDatePickerModal.cjs.js +0 -1
- package/dist/components/DatePicker/RangeDatePickerModal/useRangeDatePickerModal.d.ts +0 -11
- package/dist/components/DatePicker/RangeDatePickerModal/useRangeDatePickerModal.d.ts.map +0 -1
- package/dist/components/DatePicker/RangeDatePickerModal/useRangeDatePickerModal.esm.js +0 -36
- package/dist/components/DatePicker/SingleDatePicker/hooks/index.util.cjs.js +0 -1
- package/dist/components/DatePicker/SingleDatePicker/hooks/index.util.d.ts +0 -11
- package/dist/components/DatePicker/SingleDatePicker/hooks/index.util.d.ts.map +0 -1
- package/dist/components/DatePicker/SingleDatePicker/hooks/index.util.esm.js +0 -37
- package/dist/components/DatePicker/SingleDatePicker/hooks/useSingleDatePicker.cjs.js +0 -1
- package/dist/components/DatePicker/SingleDatePicker/hooks/useSingleDatePicker.d.ts +0 -18
- package/dist/components/DatePicker/SingleDatePicker/hooks/useSingleDatePicker.d.ts.map +0 -1
- package/dist/components/DatePicker/SingleDatePicker/hooks/useSingleDatePicker.esm.js +0 -27
- package/dist/components/DatePicker/SingleDatePicker/index.cjs.js +0 -1
- package/dist/components/DatePicker/SingleDatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/SingleDatePicker/index.d.ts.map +0 -1
- package/dist/components/DatePicker/SingleDatePicker/index.esm.js +0 -2
- package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +0 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.d.ts +0 -19
- package/dist/components/DatePicker/SingleDatePickerModal/index.d.ts.map +0 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.esm.js +0 -41
- package/dist/components/DatePicker/SingleDatePickerModal/useSingleDatePickerModal.cjs.js +0 -1
- package/dist/components/DatePicker/SingleDatePickerModal/useSingleDatePickerModal.d.ts +0 -8
- package/dist/components/DatePicker/SingleDatePickerModal/useSingleDatePickerModal.d.ts.map +0 -1
- package/dist/components/DatePicker/SingleDatePickerModal/useSingleDatePickerModal.esm.js +0 -31
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./dist.
|
|
1
|
+
import { a as e, i as t, o as n, r, t as i } from "./dist.BovUpaIu.js";
|
|
2
2
|
import { t as a } from "./dist.CwWM0zXK.js";
|
|
3
|
-
import { t as o } from "./dist.
|
|
4
|
-
import { t as s } from "./dist.
|
|
5
|
-
import { t as c } from "./utils.
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
import * as
|
|
9
|
-
import
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import * as
|
|
3
|
+
import { t as o } from "./dist.DSx7Feoc.js";
|
|
4
|
+
import { t as s } from "./dist.0EAhIi1e.js";
|
|
5
|
+
import { t as c } from "./utils.UNiIm9Bz.js";
|
|
6
|
+
import { t as l } from "./dist.C8FJXTu6.js";
|
|
7
|
+
import { n as u, r as d, t as f } from "./es2015.ByVyszJo.js";
|
|
8
|
+
import * as p from "react";
|
|
9
|
+
import m, { useEffect as h, useLayoutEffect as g, useMemo as _ } from "react";
|
|
10
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
11
|
+
import * as x from "react-dom";
|
|
12
12
|
//#region node_modules/vaul/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
13
13
|
// @__NO_SIDE_EFFECTS__
|
|
14
|
-
function
|
|
15
|
-
let t =
|
|
14
|
+
function S(e) {
|
|
15
|
+
let t = p.forwardRef((t, n) => {
|
|
16
16
|
let { children: r, ...i } = t, o = null, s = !1, c = [];
|
|
17
|
-
|
|
17
|
+
D(r) && typeof k == "function" && (r = k(r._payload)), p.Children.forEach(r, (e) => {
|
|
18
18
|
if (ee(e)) {
|
|
19
19
|
s = !0;
|
|
20
20
|
let t = e, n = "child" in t.props ? t.props.child : t.props.children;
|
|
21
|
-
|
|
21
|
+
D(n) && typeof k == "function" && (n = k(n._payload)), o = w(t, n), c.push(o?.props?.children);
|
|
22
22
|
} else c.push(e);
|
|
23
|
-
}), o ? o =
|
|
24
|
-
let l = o ?
|
|
23
|
+
}), o ? o = p.cloneElement(o, void 0, c) : !s && p.Children.count(r) === 1 && p.isValidElement(r) && (o = r);
|
|
24
|
+
let l = o ? E(o) : void 0, u = a(n, l);
|
|
25
25
|
if (!o) {
|
|
26
|
-
if (r || r === 0) throw Error(s ?
|
|
26
|
+
if (r || r === 0) throw Error(s ? re(e) : ne(e));
|
|
27
27
|
return r;
|
|
28
28
|
}
|
|
29
|
-
let d =
|
|
30
|
-
return o.type !==
|
|
29
|
+
let d = T(i, o.props ?? {});
|
|
30
|
+
return o.type !== p.Fragment && (d.ref = n ? u : l), p.cloneElement(o, d);
|
|
31
31
|
});
|
|
32
32
|
return t.displayName = `${e}.Slot`, t;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var C = Symbol.for("radix.slottable"), w = (e, t) => {
|
|
35
35
|
if ("child" in e.props) {
|
|
36
36
|
let t = e.props.child;
|
|
37
|
-
return
|
|
37
|
+
return p.isValidElement(t) ? p.cloneElement(t, void 0, e.props.children(t.props.children)) : null;
|
|
38
38
|
}
|
|
39
|
-
return
|
|
39
|
+
return p.isValidElement(t) ? t : null;
|
|
40
40
|
};
|
|
41
|
-
function
|
|
41
|
+
function T(e, t) {
|
|
42
42
|
let n = { ...t };
|
|
43
43
|
for (let r in t) {
|
|
44
44
|
let i = e[r], a = t[r];
|
|
@@ -55,21 +55,21 @@ function E(e, t) {
|
|
|
55
55
|
...n
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function E(e) {
|
|
59
59
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
60
60
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
61
61
|
}
|
|
62
62
|
function ee(e) {
|
|
63
|
-
return
|
|
63
|
+
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === C;
|
|
64
64
|
}
|
|
65
65
|
var te = Symbol.for("react.lazy");
|
|
66
|
-
function
|
|
67
|
-
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === te && "_payload" in e &&
|
|
66
|
+
function D(e) {
|
|
67
|
+
return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === te && "_payload" in e && O(e._payload);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function O(e) {
|
|
70
70
|
return typeof e == "object" && !!e && "then" in e;
|
|
71
71
|
}
|
|
72
|
-
var
|
|
72
|
+
var ne = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, re = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, k = p.use, A = [
|
|
73
73
|
"a",
|
|
74
74
|
"button",
|
|
75
75
|
"div",
|
|
@@ -88,9 +88,9 @@ var re = (e) => `${e} failed to slot onto its children. Expected a single React
|
|
|
88
88
|
"svg",
|
|
89
89
|
"ul"
|
|
90
90
|
].reduce((e, t) => {
|
|
91
|
-
let n = /* @__PURE__ */
|
|
91
|
+
let n = /* @__PURE__ */ S(`Primitive.${t}`), r = p.forwardRef((e, r) => {
|
|
92
92
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
93
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
93
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y(o, {
|
|
94
94
|
...a,
|
|
95
95
|
ref: r
|
|
96
96
|
});
|
|
@@ -100,68 +100,79 @@ var re = (e) => `${e} failed to slot onto its children. Expected a single React
|
|
|
100
100
|
[t]: r
|
|
101
101
|
};
|
|
102
102
|
}, {});
|
|
103
|
-
function
|
|
104
|
-
e &&
|
|
103
|
+
function ie(e, t) {
|
|
104
|
+
e && x.flushSync(() => e.dispatchEvent(t));
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
108
|
+
function ae(e, t = globalThis?.document) {
|
|
109
|
+
let n = l(e);
|
|
110
|
+
p.useEffect(() => {
|
|
111
|
+
let e = (e) => {
|
|
112
|
+
e.key === "Escape" && n(e);
|
|
113
|
+
};
|
|
114
|
+
return t.addEventListener("keydown", e, { capture: !0 }), () => t.removeEventListener("keydown", e, { capture: !0 });
|
|
115
|
+
}, [n, t]);
|
|
105
116
|
}
|
|
106
117
|
//#endregion
|
|
107
118
|
//#region node_modules/vaul/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
108
|
-
var oe = "DismissableLayer", j = "dismissableLayer.update", M = "dismissableLayer.pointerDownOutside", se = "dismissableLayer.focusOutside", N, P =
|
|
119
|
+
var oe = "DismissableLayer", j = "dismissableLayer.update", M = "dismissableLayer.pointerDownOutside", se = "dismissableLayer.focusOutside", N, P = p.createContext({
|
|
109
120
|
layers: /* @__PURE__ */ new Set(),
|
|
110
121
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
111
122
|
branches: /* @__PURE__ */ new Set()
|
|
112
|
-
}), F =
|
|
113
|
-
let { disableOutsidePointerEvents:
|
|
114
|
-
let t = e.target, n = [...
|
|
115
|
-
!
|
|
116
|
-
},
|
|
123
|
+
}), F = p.forwardRef((e, n) => {
|
|
124
|
+
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...u } = e, d = p.useContext(P), [f, m] = p.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, g] = p.useState({}), _ = a(n, (e) => m(e)), v = Array.from(d.layers), [b] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = v.indexOf(b), S = f ? v.indexOf(f) : -1, C = d.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= x, T = I((e) => {
|
|
125
|
+
let t = e.target, n = [...d.branches].some((e) => e.contains(t));
|
|
126
|
+
!w || n || (o?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
127
|
+
}, h), E = ue((e) => {
|
|
117
128
|
let t = e.target;
|
|
118
|
-
[...
|
|
119
|
-
},
|
|
120
|
-
return
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
if (
|
|
124
|
-
|
|
129
|
+
[...d.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
130
|
+
}, h);
|
|
131
|
+
return ae((e) => {
|
|
132
|
+
S === d.layers.size - 1 && (i?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
|
|
133
|
+
}, h), p.useEffect(() => {
|
|
134
|
+
if (f) return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (N = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), de(), () => {
|
|
135
|
+
r && (d.layersWithOutsidePointerEventsDisabled.delete(f), d.layersWithOutsidePointerEventsDisabled.size === 0 && (h.body.style.pointerEvents = N));
|
|
125
136
|
};
|
|
126
137
|
}, [
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
]),
|
|
132
|
-
|
|
133
|
-
}, [
|
|
134
|
-
let e = () =>
|
|
138
|
+
f,
|
|
139
|
+
h,
|
|
140
|
+
r,
|
|
141
|
+
d
|
|
142
|
+
]), p.useEffect(() => () => {
|
|
143
|
+
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), de());
|
|
144
|
+
}, [f, d]), p.useEffect(() => {
|
|
145
|
+
let e = () => g({});
|
|
135
146
|
return document.addEventListener(j, e), () => document.removeEventListener(j, e);
|
|
136
|
-
}, []), /* @__PURE__ */
|
|
137
|
-
...
|
|
138
|
-
ref:
|
|
147
|
+
}, []), /* @__PURE__ */ y(A.div, {
|
|
148
|
+
...u,
|
|
149
|
+
ref: _,
|
|
139
150
|
style: {
|
|
140
|
-
pointerEvents:
|
|
151
|
+
pointerEvents: C ? w ? "auto" : "none" : void 0,
|
|
141
152
|
...e.style
|
|
142
153
|
},
|
|
143
|
-
onFocusCapture:
|
|
144
|
-
onBlurCapture:
|
|
145
|
-
onPointerDownCapture:
|
|
154
|
+
onFocusCapture: t(e.onFocusCapture, E.onFocusCapture),
|
|
155
|
+
onBlurCapture: t(e.onBlurCapture, E.onBlurCapture),
|
|
156
|
+
onPointerDownCapture: t(e.onPointerDownCapture, T.onPointerDownCapture)
|
|
146
157
|
});
|
|
147
158
|
});
|
|
148
159
|
F.displayName = oe;
|
|
149
|
-
var ce = "DismissableLayerBranch", le =
|
|
150
|
-
let n =
|
|
151
|
-
return
|
|
160
|
+
var ce = "DismissableLayerBranch", le = p.forwardRef((e, t) => {
|
|
161
|
+
let n = p.useContext(P), r = p.useRef(null), i = a(t, r);
|
|
162
|
+
return p.useEffect(() => {
|
|
152
163
|
let e = r.current;
|
|
153
164
|
if (e) return n.branches.add(e), () => {
|
|
154
165
|
n.branches.delete(e);
|
|
155
166
|
};
|
|
156
|
-
}, [n.branches]), /* @__PURE__ */
|
|
167
|
+
}, [n.branches]), /* @__PURE__ */ y(A.div, {
|
|
157
168
|
...e,
|
|
158
169
|
ref: i
|
|
159
170
|
});
|
|
160
171
|
});
|
|
161
172
|
le.displayName = ce;
|
|
162
173
|
function I(e, t = globalThis?.document) {
|
|
163
|
-
let n = l(e), r =
|
|
164
|
-
return
|
|
174
|
+
let n = l(e), r = p.useRef(!1), i = p.useRef(() => {});
|
|
175
|
+
return p.useEffect(() => {
|
|
165
176
|
let e = (e) => {
|
|
166
177
|
if (e.target && !r.current) {
|
|
167
178
|
let r = function() {
|
|
@@ -179,8 +190,8 @@ function I(e, t = globalThis?.document) {
|
|
|
179
190
|
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
180
191
|
}
|
|
181
192
|
function ue(e, t = globalThis?.document) {
|
|
182
|
-
let n = l(e), r =
|
|
183
|
-
return
|
|
193
|
+
let n = l(e), r = p.useRef(!1);
|
|
194
|
+
return p.useEffect(() => {
|
|
184
195
|
let e = (e) => {
|
|
185
196
|
e.target && !r.current && L(se, n, { originalEvent: e }, { discrete: !1 });
|
|
186
197
|
};
|
|
@@ -200,15 +211,15 @@ function L(e, t, n, { discrete: r }) {
|
|
|
200
211
|
cancelable: !0,
|
|
201
212
|
detail: n
|
|
202
213
|
});
|
|
203
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
214
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? ie(i, a) : i.dispatchEvent(a);
|
|
204
215
|
}
|
|
205
216
|
//#endregion
|
|
206
217
|
//#region node_modules/vaul/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
207
|
-
var R = "focusScope.autoFocusOnMount",
|
|
218
|
+
var R = "focusScope.autoFocusOnMount", z = "focusScope.autoFocusOnUnmount", fe = {
|
|
208
219
|
bubbles: !1,
|
|
209
220
|
cancelable: !0
|
|
210
|
-
},
|
|
211
|
-
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: o, ...s } = e, [c, u] =
|
|
221
|
+
}, pe = "FocusScope", B = p.forwardRef((e, t) => {
|
|
222
|
+
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: o, ...s } = e, [c, u] = p.useState(null), d = l(i), f = l(o), m = p.useRef(null), h = a(t, (e) => u(e)), g = p.useRef({
|
|
212
223
|
paused: !1,
|
|
213
224
|
pause() {
|
|
214
225
|
this.paused = !0;
|
|
@@ -217,18 +228,18 @@ var R = "focusScope.autoFocusOnMount", fe = "focusScope.autoFocusOnUnmount", pe
|
|
|
217
228
|
this.paused = !1;
|
|
218
229
|
}
|
|
219
230
|
}).current;
|
|
220
|
-
|
|
231
|
+
p.useEffect(() => {
|
|
221
232
|
if (r) {
|
|
222
233
|
let e = function(e) {
|
|
223
234
|
if (g.paused || !c) return;
|
|
224
235
|
let t = e.target;
|
|
225
|
-
c.contains(t) ?
|
|
236
|
+
c.contains(t) ? m.current = t : H(m.current, { select: !0 });
|
|
226
237
|
}, t = function(e) {
|
|
227
238
|
if (g.paused || !c) return;
|
|
228
239
|
let t = e.relatedTarget;
|
|
229
|
-
t !== null && (c.contains(t) ||
|
|
240
|
+
t !== null && (c.contains(t) || H(m.current, { select: !0 }));
|
|
230
241
|
}, n = function(e) {
|
|
231
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
242
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && H(c);
|
|
232
243
|
};
|
|
233
244
|
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
234
245
|
let r = new MutationObserver(n);
|
|
@@ -243,18 +254,18 @@ var R = "focusScope.autoFocusOnMount", fe = "focusScope.autoFocusOnUnmount", pe
|
|
|
243
254
|
r,
|
|
244
255
|
c,
|
|
245
256
|
g.paused
|
|
246
|
-
]),
|
|
257
|
+
]), p.useEffect(() => {
|
|
247
258
|
if (c) {
|
|
248
|
-
|
|
259
|
+
U.add(g);
|
|
249
260
|
let e = document.activeElement;
|
|
250
261
|
if (!c.contains(e)) {
|
|
251
|
-
let t = new CustomEvent(R,
|
|
252
|
-
c.addEventListener(R, d), c.dispatchEvent(t), t.defaultPrevented || (
|
|
262
|
+
let t = new CustomEvent(R, fe);
|
|
263
|
+
c.addEventListener(R, d), c.dispatchEvent(t), t.defaultPrevented || (me(xe(V(c)), { select: !0 }), document.activeElement === e && H(c));
|
|
253
264
|
}
|
|
254
265
|
return () => {
|
|
255
266
|
c.removeEventListener(R, d), setTimeout(() => {
|
|
256
|
-
let t = new CustomEvent(
|
|
257
|
-
c.addEventListener(
|
|
267
|
+
let t = new CustomEvent(z, fe);
|
|
268
|
+
c.addEventListener(z, f), c.dispatchEvent(t), t.defaultPrevented || H(e ?? document.body, { select: !0 }), c.removeEventListener(z, f), U.remove(g);
|
|
258
269
|
}, 0);
|
|
259
270
|
};
|
|
260
271
|
}
|
|
@@ -264,35 +275,35 @@ var R = "focusScope.autoFocusOnMount", fe = "focusScope.autoFocusOnUnmount", pe
|
|
|
264
275
|
f,
|
|
265
276
|
g
|
|
266
277
|
]);
|
|
267
|
-
let _ =
|
|
278
|
+
let _ = p.useCallback((e) => {
|
|
268
279
|
if (!n && !r || g.paused) return;
|
|
269
280
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, i = document.activeElement;
|
|
270
281
|
if (t && i) {
|
|
271
|
-
let t = e.currentTarget, [r, a] =
|
|
272
|
-
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n &&
|
|
282
|
+
let t = e.currentTarget, [r, a] = he(t);
|
|
283
|
+
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n && H(r, { select: !0 })) : e.shiftKey && i === r && (e.preventDefault(), n && H(a, { select: !0 })) : i === t && e.preventDefault();
|
|
273
284
|
}
|
|
274
285
|
}, [
|
|
275
286
|
n,
|
|
276
287
|
r,
|
|
277
288
|
g.paused
|
|
278
289
|
]);
|
|
279
|
-
return /* @__PURE__ */
|
|
290
|
+
return /* @__PURE__ */ y(A.div, {
|
|
280
291
|
tabIndex: -1,
|
|
281
292
|
...s,
|
|
282
293
|
ref: h,
|
|
283
294
|
onKeyDown: _
|
|
284
295
|
});
|
|
285
296
|
});
|
|
286
|
-
|
|
287
|
-
function
|
|
297
|
+
B.displayName = pe;
|
|
298
|
+
function me(e, { select: t = !1 } = {}) {
|
|
288
299
|
let n = document.activeElement;
|
|
289
|
-
for (let r of e) if (
|
|
300
|
+
for (let r of e) if (H(r, { select: t }), document.activeElement !== n) return;
|
|
290
301
|
}
|
|
291
|
-
function
|
|
292
|
-
let t =
|
|
293
|
-
return [
|
|
302
|
+
function he(e) {
|
|
303
|
+
let t = V(e);
|
|
304
|
+
return [ge(t, e), ge(t.reverse(), e)];
|
|
294
305
|
}
|
|
295
|
-
function
|
|
306
|
+
function V(e) {
|
|
296
307
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
297
308
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
298
309
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -300,10 +311,10 @@ function B(e) {
|
|
|
300
311
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
301
312
|
return t;
|
|
302
313
|
}
|
|
303
|
-
function
|
|
304
|
-
for (let n of e) if (!
|
|
314
|
+
function ge(e, t) {
|
|
315
|
+
for (let n of e) if (!_e(n, { upTo: t })) return n;
|
|
305
316
|
}
|
|
306
|
-
function
|
|
317
|
+
function _e(e, { upTo: t }) {
|
|
307
318
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
308
319
|
for (; e;) {
|
|
309
320
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -312,57 +323,57 @@ function ve(e, { upTo: t }) {
|
|
|
312
323
|
}
|
|
313
324
|
return !1;
|
|
314
325
|
}
|
|
315
|
-
function
|
|
326
|
+
function ve(e) {
|
|
316
327
|
return e instanceof HTMLInputElement && "select" in e;
|
|
317
328
|
}
|
|
318
|
-
function
|
|
329
|
+
function H(e, { select: t = !1 } = {}) {
|
|
319
330
|
if (e && e.focus) {
|
|
320
331
|
let n = document.activeElement;
|
|
321
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
332
|
+
e.focus({ preventScroll: !0 }), e !== n && ve(e) && t && e.select();
|
|
322
333
|
}
|
|
323
334
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
335
|
+
var U = ye();
|
|
336
|
+
function ye() {
|
|
326
337
|
let e = [];
|
|
327
338
|
return {
|
|
328
339
|
add(t) {
|
|
329
340
|
let n = e[0];
|
|
330
|
-
t !== n && n?.pause(), e =
|
|
341
|
+
t !== n && n?.pause(), e = be(e, t), e.unshift(t);
|
|
331
342
|
},
|
|
332
343
|
remove(t) {
|
|
333
|
-
e =
|
|
344
|
+
e = be(e, t), e[0]?.resume();
|
|
334
345
|
}
|
|
335
346
|
};
|
|
336
347
|
}
|
|
337
|
-
function
|
|
348
|
+
function be(e, t) {
|
|
338
349
|
let n = [...e], r = n.indexOf(t);
|
|
339
350
|
return r !== -1 && n.splice(r, 1), n;
|
|
340
351
|
}
|
|
341
|
-
function
|
|
352
|
+
function xe(e) {
|
|
342
353
|
return e.filter((e) => e.tagName !== "A");
|
|
343
354
|
}
|
|
344
355
|
//#endregion
|
|
345
356
|
//#region node_modules/vaul/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
346
|
-
var
|
|
347
|
-
let { container:
|
|
348
|
-
|
|
349
|
-
let s =
|
|
350
|
-
return s ?
|
|
357
|
+
var W = "Portal", Se = p.forwardRef((e, t) => {
|
|
358
|
+
let { container: n, ...i } = e, [a, o] = p.useState(!1);
|
|
359
|
+
r(() => o(!0), []);
|
|
360
|
+
let s = n || a && globalThis?.document?.body;
|
|
361
|
+
return s ? x.createPortal(/* @__PURE__ */ y(A.div, {
|
|
351
362
|
...i,
|
|
352
363
|
ref: t
|
|
353
364
|
}), s) : null;
|
|
354
365
|
});
|
|
355
|
-
|
|
366
|
+
Se.displayName = W;
|
|
356
367
|
//#endregion
|
|
357
368
|
//#region node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
358
|
-
var
|
|
359
|
-
let { __scopeDialog: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: c = !0 } = e, l =
|
|
369
|
+
var G = "Dialog", [Ce, we] = n(G), [Te, K] = Ce(G), Ee = (e) => {
|
|
370
|
+
let { __scopeDialog: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: c = !0 } = e, l = p.useRef(null), u = p.useRef(null), [d, f] = i({
|
|
360
371
|
prop: r,
|
|
361
372
|
defaultProp: a ?? !1,
|
|
362
373
|
onChange: o,
|
|
363
|
-
caller:
|
|
374
|
+
caller: G
|
|
364
375
|
});
|
|
365
|
-
return /* @__PURE__ */
|
|
376
|
+
return /* @__PURE__ */ y(Te, {
|
|
366
377
|
scope: t,
|
|
367
378
|
triggerRef: l,
|
|
368
379
|
contentRef: u,
|
|
@@ -371,34 +382,34 @@ var W = "Dialog", [we, Te] = e(W), [Ee, G] = we(W), De = (e) => {
|
|
|
371
382
|
descriptionId: s(),
|
|
372
383
|
open: d,
|
|
373
384
|
onOpenChange: f,
|
|
374
|
-
onOpenToggle:
|
|
385
|
+
onOpenToggle: p.useCallback(() => f((e) => !e), [f]),
|
|
375
386
|
modal: c,
|
|
376
387
|
children: n
|
|
377
388
|
});
|
|
378
389
|
};
|
|
379
|
-
|
|
380
|
-
var
|
|
381
|
-
let { __scopeDialog:
|
|
382
|
-
return /* @__PURE__ */
|
|
390
|
+
Ee.displayName = G;
|
|
391
|
+
var De = "DialogTrigger", Oe = p.forwardRef((e, n) => {
|
|
392
|
+
let { __scopeDialog: r, ...i } = e, o = K(De, r), s = a(n, o.triggerRef);
|
|
393
|
+
return /* @__PURE__ */ y(A.button, {
|
|
383
394
|
type: "button",
|
|
384
395
|
"aria-haspopup": "dialog",
|
|
385
396
|
"aria-expanded": o.open,
|
|
386
397
|
"aria-controls": o.open ? o.contentId : void 0,
|
|
387
|
-
"data-state":
|
|
398
|
+
"data-state": qe(o.open),
|
|
388
399
|
...i,
|
|
389
400
|
ref: s,
|
|
390
|
-
onClick:
|
|
401
|
+
onClick: t(e.onClick, o.onOpenToggle)
|
|
391
402
|
});
|
|
392
403
|
});
|
|
393
|
-
|
|
394
|
-
var
|
|
395
|
-
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a =
|
|
396
|
-
return /* @__PURE__ */
|
|
404
|
+
Oe.displayName = De;
|
|
405
|
+
var ke = "DialogPortal", [Ae, je] = Ce(ke, { forceMount: void 0 }), Me = (e) => {
|
|
406
|
+
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = K(ke, t);
|
|
407
|
+
return /* @__PURE__ */ y(Ae, {
|
|
397
408
|
scope: t,
|
|
398
409
|
forceMount: n,
|
|
399
|
-
children:
|
|
410
|
+
children: p.Children.map(r, (e) => /* @__PURE__ */ y(o, {
|
|
400
411
|
present: n || a.open,
|
|
401
|
-
children: /* @__PURE__ */
|
|
412
|
+
children: /* @__PURE__ */ y(Se, {
|
|
402
413
|
asChild: !0,
|
|
403
414
|
container: i,
|
|
404
415
|
children: e
|
|
@@ -406,26 +417,26 @@ var Ae = "DialogPortal", [je, Me] = we(Ae, { forceMount: void 0 }), Ne = (e) =>
|
|
|
406
417
|
}))
|
|
407
418
|
});
|
|
408
419
|
};
|
|
409
|
-
|
|
410
|
-
var
|
|
411
|
-
let n =
|
|
412
|
-
return a.modal ? /* @__PURE__ */
|
|
420
|
+
Me.displayName = ke;
|
|
421
|
+
var Ne = "DialogOverlay", Pe = p.forwardRef((e, t) => {
|
|
422
|
+
let n = je(Ne, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = K(Ne, e.__scopeDialog);
|
|
423
|
+
return a.modal ? /* @__PURE__ */ y(o, {
|
|
413
424
|
present: r || a.open,
|
|
414
|
-
children: /* @__PURE__ */
|
|
425
|
+
children: /* @__PURE__ */ y(Ie, {
|
|
415
426
|
...i,
|
|
416
427
|
ref: t
|
|
417
428
|
})
|
|
418
429
|
}) : null;
|
|
419
430
|
});
|
|
420
|
-
|
|
421
|
-
var
|
|
422
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
423
|
-
return /* @__PURE__ */
|
|
424
|
-
as:
|
|
431
|
+
Pe.displayName = Ne;
|
|
432
|
+
var Fe = /* @__PURE__ */ S("DialogOverlay.RemoveScroll"), Ie = p.forwardRef((e, t) => {
|
|
433
|
+
let { __scopeDialog: n, ...r } = e, i = K(Ne, n);
|
|
434
|
+
return /* @__PURE__ */ y(u, {
|
|
435
|
+
as: Fe,
|
|
425
436
|
allowPinchZoom: !0,
|
|
426
437
|
shards: [i.contentRef],
|
|
427
|
-
children: /* @__PURE__ */
|
|
428
|
-
"data-state":
|
|
438
|
+
children: /* @__PURE__ */ y(A.div, {
|
|
439
|
+
"data-state": qe(i.open),
|
|
429
440
|
...r,
|
|
430
441
|
ref: t,
|
|
431
442
|
style: {
|
|
@@ -434,42 +445,42 @@ var Ie = /* @__PURE__ */ C("DialogOverlay.RemoveScroll"), Le = m.forwardRef((e,
|
|
|
434
445
|
}
|
|
435
446
|
})
|
|
436
447
|
});
|
|
437
|
-
}),
|
|
438
|
-
let n =
|
|
439
|
-
return /* @__PURE__ */
|
|
448
|
+
}), q = "DialogContent", Le = p.forwardRef((e, t) => {
|
|
449
|
+
let n = je(q, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = K(q, e.__scopeDialog);
|
|
450
|
+
return /* @__PURE__ */ y(o, {
|
|
440
451
|
present: r || a.open,
|
|
441
|
-
children: a.modal ? /* @__PURE__ */
|
|
452
|
+
children: a.modal ? /* @__PURE__ */ y(Re, {
|
|
442
453
|
...i,
|
|
443
454
|
ref: t
|
|
444
|
-
}) : /* @__PURE__ */
|
|
455
|
+
}) : /* @__PURE__ */ y(ze, {
|
|
445
456
|
...i,
|
|
446
457
|
ref: t
|
|
447
458
|
})
|
|
448
459
|
});
|
|
449
460
|
});
|
|
450
|
-
|
|
451
|
-
var
|
|
452
|
-
let
|
|
453
|
-
return
|
|
461
|
+
Le.displayName = q;
|
|
462
|
+
var Re = p.forwardRef((e, n) => {
|
|
463
|
+
let r = K(q, e.__scopeDialog), i = p.useRef(null), o = a(n, r.contentRef, i);
|
|
464
|
+
return p.useEffect(() => {
|
|
454
465
|
let e = i.current;
|
|
455
|
-
if (e) return
|
|
456
|
-
}, []), /* @__PURE__ */
|
|
466
|
+
if (e) return f(e);
|
|
467
|
+
}, []), /* @__PURE__ */ y(Be, {
|
|
457
468
|
...e,
|
|
458
469
|
ref: o,
|
|
459
|
-
trapFocus:
|
|
460
|
-
disableOutsidePointerEvents:
|
|
461
|
-
onCloseAutoFocus:
|
|
462
|
-
e.preventDefault(),
|
|
470
|
+
trapFocus: r.open,
|
|
471
|
+
disableOutsidePointerEvents: r.open,
|
|
472
|
+
onCloseAutoFocus: t(e.onCloseAutoFocus, (e) => {
|
|
473
|
+
e.preventDefault(), r.triggerRef.current?.focus();
|
|
463
474
|
}),
|
|
464
|
-
onPointerDownOutside:
|
|
475
|
+
onPointerDownOutside: t(e.onPointerDownOutside, (e) => {
|
|
465
476
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
466
477
|
(t.button === 2 || n) && e.preventDefault();
|
|
467
478
|
}),
|
|
468
|
-
onFocusOutside:
|
|
479
|
+
onFocusOutside: t(e.onFocusOutside, (e) => e.preventDefault())
|
|
469
480
|
});
|
|
470
|
-
}),
|
|
471
|
-
let n =
|
|
472
|
-
return /* @__PURE__ */
|
|
481
|
+
}), ze = p.forwardRef((e, t) => {
|
|
482
|
+
let n = K(q, e.__scopeDialog), r = p.useRef(!1), i = p.useRef(!1);
|
|
483
|
+
return /* @__PURE__ */ y(Be, {
|
|
473
484
|
...e,
|
|
474
485
|
ref: t,
|
|
475
486
|
trapFocus: !1,
|
|
@@ -483,75 +494,75 @@ var ze = m.forwardRef((e, t) => {
|
|
|
483
494
|
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
484
495
|
}
|
|
485
496
|
});
|
|
486
|
-
}),
|
|
487
|
-
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: o, ...s } = e, c =
|
|
488
|
-
return
|
|
497
|
+
}), Be = p.forwardRef((e, t) => {
|
|
498
|
+
let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: o, ...s } = e, c = K(q, n), l = p.useRef(null), u = a(t, l);
|
|
499
|
+
return d(), /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(B, {
|
|
489
500
|
asChild: !0,
|
|
490
501
|
loop: !0,
|
|
491
502
|
trapped: r,
|
|
492
503
|
onMountAutoFocus: i,
|
|
493
504
|
onUnmountAutoFocus: o,
|
|
494
|
-
children: /* @__PURE__ */
|
|
505
|
+
children: /* @__PURE__ */ y(F, {
|
|
495
506
|
role: "dialog",
|
|
496
507
|
id: c.contentId,
|
|
497
508
|
"aria-describedby": c.descriptionId,
|
|
498
509
|
"aria-labelledby": c.titleId,
|
|
499
|
-
"data-state":
|
|
510
|
+
"data-state": qe(c.open),
|
|
500
511
|
...s,
|
|
501
512
|
ref: u,
|
|
502
513
|
onDismiss: () => c.onOpenChange(!1)
|
|
503
514
|
})
|
|
504
|
-
}), /* @__PURE__ */
|
|
515
|
+
}), /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Ze, { titleId: c.titleId }), /* @__PURE__ */ y($e, {
|
|
505
516
|
contentRef: l,
|
|
506
517
|
descriptionId: c.descriptionId
|
|
507
518
|
})] })] });
|
|
508
|
-
}),
|
|
509
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
510
|
-
return /* @__PURE__ */
|
|
519
|
+
}), Ve = "DialogTitle", He = p.forwardRef((e, t) => {
|
|
520
|
+
let { __scopeDialog: n, ...r } = e, i = K(Ve, n);
|
|
521
|
+
return /* @__PURE__ */ y(A.h2, {
|
|
511
522
|
id: i.titleId,
|
|
512
523
|
...r,
|
|
513
524
|
ref: t
|
|
514
525
|
});
|
|
515
526
|
});
|
|
516
|
-
|
|
517
|
-
var
|
|
518
|
-
let { __scopeDialog: n, ...r } = e, i =
|
|
519
|
-
return /* @__PURE__ */
|
|
527
|
+
He.displayName = Ve;
|
|
528
|
+
var Ue = "DialogDescription", We = p.forwardRef((e, t) => {
|
|
529
|
+
let { __scopeDialog: n, ...r } = e, i = K(Ue, n);
|
|
530
|
+
return /* @__PURE__ */ y(A.p, {
|
|
520
531
|
id: i.descriptionId,
|
|
521
532
|
...r,
|
|
522
533
|
ref: t
|
|
523
534
|
});
|
|
524
535
|
});
|
|
525
|
-
|
|
526
|
-
var
|
|
527
|
-
let { __scopeDialog:
|
|
528
|
-
return /* @__PURE__ */
|
|
536
|
+
We.displayName = Ue;
|
|
537
|
+
var Ge = "DialogClose", Ke = p.forwardRef((e, n) => {
|
|
538
|
+
let { __scopeDialog: r, ...i } = e, a = K(Ge, r);
|
|
539
|
+
return /* @__PURE__ */ y(A.button, {
|
|
529
540
|
type: "button",
|
|
530
541
|
...i,
|
|
531
|
-
ref:
|
|
532
|
-
onClick:
|
|
542
|
+
ref: n,
|
|
543
|
+
onClick: t(e.onClick, () => a.onOpenChange(!1))
|
|
533
544
|
});
|
|
534
545
|
});
|
|
535
|
-
|
|
536
|
-
function
|
|
546
|
+
Ke.displayName = Ge;
|
|
547
|
+
function qe(e) {
|
|
537
548
|
return e ? "open" : "closed";
|
|
538
549
|
}
|
|
539
|
-
var
|
|
540
|
-
contentName:
|
|
541
|
-
titleName:
|
|
550
|
+
var Je = "DialogTitleWarning", [Ye, Xe] = e(Je, {
|
|
551
|
+
contentName: q,
|
|
552
|
+
titleName: Ve,
|
|
542
553
|
docsSlug: "dialog"
|
|
543
|
-
}),
|
|
544
|
-
let t =
|
|
554
|
+
}), Ze = ({ titleId: e }) => {
|
|
555
|
+
let t = Xe(Je), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
545
556
|
|
|
546
557
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
547
558
|
|
|
548
559
|
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
549
|
-
return
|
|
560
|
+
return p.useEffect(() => {
|
|
550
561
|
e && (document.getElementById(e) || console.error(n));
|
|
551
562
|
}, [n, e]), null;
|
|
552
|
-
},
|
|
553
|
-
let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
554
|
-
return
|
|
563
|
+
}, Qe = "DialogDescriptionWarning", $e = ({ contentRef: e, descriptionId: t }) => {
|
|
564
|
+
let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xe(Qe).contentName}}.`;
|
|
565
|
+
return p.useEffect(() => {
|
|
555
566
|
let r = e.current?.getAttribute("aria-describedby");
|
|
556
567
|
t && r && (document.getElementById(t) || console.warn(n));
|
|
557
568
|
}, [
|
|
@@ -559,15 +570,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
559
570
|
e,
|
|
560
571
|
t
|
|
561
572
|
]), null;
|
|
562
|
-
}, tt =
|
|
573
|
+
}, et = Ee, tt = Oe, nt = Me, rt = Pe, it = Le, at = He, ot = We, st = Ke;
|
|
563
574
|
//#endregion
|
|
564
575
|
//#region node_modules/vaul/dist/index.mjs
|
|
565
|
-
function
|
|
576
|
+
function ct(e) {
|
|
566
577
|
if (!e || typeof document > "u") return;
|
|
567
578
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
568
579
|
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
569
580
|
}
|
|
570
|
-
var
|
|
581
|
+
var lt = m.createContext({
|
|
571
582
|
drawerRef: { current: null },
|
|
572
583
|
overlayRef: { current: null },
|
|
573
584
|
onPress: () => {},
|
|
@@ -597,50 +608,50 @@ var ut = h.createContext({
|
|
|
597
608
|
noBodyStyles: !1,
|
|
598
609
|
container: null,
|
|
599
610
|
autoFocus: !1
|
|
600
|
-
}),
|
|
601
|
-
let e =
|
|
611
|
+
}), J = () => {
|
|
612
|
+
let e = m.useContext(lt);
|
|
602
613
|
if (!e) throw Error("useDrawerContext must be used within a Drawer.Root");
|
|
603
614
|
return e;
|
|
604
615
|
};
|
|
605
|
-
|
|
606
|
-
function
|
|
616
|
+
ct("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");
|
|
617
|
+
function ut() {
|
|
607
618
|
let e = navigator.userAgent;
|
|
608
619
|
return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || /FxiOS/.test(e));
|
|
609
620
|
}
|
|
621
|
+
function dt() {
|
|
622
|
+
return gt(/^Mac/);
|
|
623
|
+
}
|
|
610
624
|
function ft() {
|
|
611
|
-
return
|
|
625
|
+
return gt(/^iPhone/);
|
|
612
626
|
}
|
|
613
627
|
function pt() {
|
|
614
|
-
return
|
|
628
|
+
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
615
629
|
}
|
|
616
630
|
function mt() {
|
|
617
|
-
return /^(
|
|
631
|
+
return gt(/^iPad/) || dt() && navigator.maxTouchPoints > 1;
|
|
618
632
|
}
|
|
619
633
|
function ht() {
|
|
620
|
-
return
|
|
621
|
-
}
|
|
622
|
-
function gt() {
|
|
623
|
-
return pt() || ht();
|
|
634
|
+
return ft() || mt();
|
|
624
635
|
}
|
|
625
|
-
function
|
|
636
|
+
function gt(e) {
|
|
626
637
|
return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
|
|
627
638
|
}
|
|
628
|
-
var
|
|
629
|
-
function
|
|
639
|
+
var _t = 24, vt = typeof window < "u" ? g : h;
|
|
640
|
+
function yt(...e) {
|
|
630
641
|
return (...t) => {
|
|
631
642
|
for (let n of e) typeof n == "function" && n(...t);
|
|
632
643
|
};
|
|
633
644
|
}
|
|
634
|
-
var
|
|
635
|
-
function
|
|
645
|
+
var bt = typeof document < "u" && window.visualViewport;
|
|
646
|
+
function xt(e) {
|
|
636
647
|
let t = window.getComputedStyle(e);
|
|
637
648
|
return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
|
|
638
649
|
}
|
|
639
|
-
function
|
|
640
|
-
for (
|
|
650
|
+
function St(e) {
|
|
651
|
+
for (xt(e) && (e = e.parentElement); e && !xt(e);) e = e.parentElement;
|
|
641
652
|
return e || document.scrollingElement || document.documentElement;
|
|
642
653
|
}
|
|
643
|
-
var
|
|
654
|
+
var Ct = /* @__PURE__ */ new Set([
|
|
644
655
|
"checkbox",
|
|
645
656
|
"radio",
|
|
646
657
|
"range",
|
|
@@ -650,18 +661,18 @@ var wt = new Set([
|
|
|
650
661
|
"button",
|
|
651
662
|
"submit",
|
|
652
663
|
"reset"
|
|
653
|
-
]),
|
|
654
|
-
function
|
|
664
|
+
]), wt = 0, Tt;
|
|
665
|
+
function Et(e = {}) {
|
|
655
666
|
let { isDisabled: t } = e;
|
|
656
|
-
|
|
657
|
-
if (!t) return
|
|
658
|
-
|
|
667
|
+
vt(() => {
|
|
668
|
+
if (!t) return wt++, wt === 1 && ht() && (Tt = Dt()), () => {
|
|
669
|
+
wt--, wt === 0 && Tt?.();
|
|
659
670
|
};
|
|
660
671
|
}, [t]);
|
|
661
672
|
}
|
|
662
|
-
function
|
|
673
|
+
function Dt() {
|
|
663
674
|
let e, t = 0, n = (n) => {
|
|
664
|
-
e =
|
|
675
|
+
e = St(n.target), !(e === document.documentElement && e === document.body) && (t = n.changedTouches[0].pageY);
|
|
665
676
|
}, r = (n) => {
|
|
666
677
|
if (!e || e === document.documentElement || e === document.body) {
|
|
667
678
|
n.preventDefault();
|
|
@@ -671,70 +682,70 @@ function Ot() {
|
|
|
671
682
|
a !== 0 && ((i <= 0 && r > t || i >= a && r < t) && n.preventDefault(), t = r);
|
|
672
683
|
}, i = (e) => {
|
|
673
684
|
let t = e.target;
|
|
674
|
-
|
|
685
|
+
At(t) && t !== document.activeElement && (e.preventDefault(), t.style.transform = "translateY(-2000px)", t.focus(), requestAnimationFrame(() => {
|
|
675
686
|
t.style.transform = "";
|
|
676
687
|
}));
|
|
677
688
|
}, a = (e) => {
|
|
678
689
|
let t = e.target;
|
|
679
|
-
|
|
680
|
-
t.style.transform = "",
|
|
681
|
-
|
|
682
|
-
}) :
|
|
690
|
+
At(t) && (t.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
691
|
+
t.style.transform = "", bt && (bt.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
692
|
+
kt(t);
|
|
693
|
+
}) : bt.addEventListener("resize", () => kt(t), { once: !0 }));
|
|
683
694
|
}));
|
|
684
695
|
}, o = () => {
|
|
685
696
|
window.scrollTo(0, 0);
|
|
686
|
-
}, s = window.pageXOffset, c = window.pageYOffset, l =
|
|
697
|
+
}, s = window.pageXOffset, c = window.pageYOffset, l = yt(Ot(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
687
698
|
window.scrollTo(0, 0);
|
|
688
|
-
let u =
|
|
699
|
+
let u = yt(Y(document, "touchstart", n, {
|
|
689
700
|
passive: !1,
|
|
690
701
|
capture: !0
|
|
691
|
-
}),
|
|
702
|
+
}), Y(document, "touchmove", r, {
|
|
692
703
|
passive: !1,
|
|
693
704
|
capture: !0
|
|
694
|
-
}),
|
|
705
|
+
}), Y(document, "touchend", i, {
|
|
695
706
|
passive: !1,
|
|
696
707
|
capture: !0
|
|
697
|
-
}),
|
|
708
|
+
}), Y(document, "focus", a, !0), Y(window, "scroll", o));
|
|
698
709
|
return () => {
|
|
699
710
|
l(), u(), window.scrollTo(s, c);
|
|
700
711
|
};
|
|
701
712
|
}
|
|
702
|
-
function
|
|
713
|
+
function Ot(e, t, n) {
|
|
703
714
|
let r = e.style[t];
|
|
704
715
|
return e.style[t] = n, () => {
|
|
705
716
|
e.style[t] = r;
|
|
706
717
|
};
|
|
707
718
|
}
|
|
708
|
-
function
|
|
719
|
+
function Y(e, t, n, r) {
|
|
709
720
|
return e.addEventListener(t, n, r), () => {
|
|
710
721
|
e.removeEventListener(t, n, r);
|
|
711
722
|
};
|
|
712
723
|
}
|
|
713
|
-
function
|
|
724
|
+
function kt(e) {
|
|
714
725
|
let t = document.scrollingElement || document.documentElement;
|
|
715
726
|
for (; e && e !== t;) {
|
|
716
|
-
let t =
|
|
727
|
+
let t = St(e);
|
|
717
728
|
if (t !== document.documentElement && t !== document.body && t !== e) {
|
|
718
729
|
let n = t.getBoundingClientRect().top, r = e.getBoundingClientRect().top;
|
|
719
|
-
e.getBoundingClientRect().bottom > t.getBoundingClientRect().bottom +
|
|
730
|
+
e.getBoundingClientRect().bottom > t.getBoundingClientRect().bottom + _t && (t.scrollTop += r - n);
|
|
720
731
|
}
|
|
721
732
|
e = t.parentElement;
|
|
722
733
|
}
|
|
723
734
|
}
|
|
724
|
-
function
|
|
725
|
-
return e instanceof HTMLInputElement && !
|
|
735
|
+
function At(e) {
|
|
736
|
+
return e instanceof HTMLInputElement && !Ct.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
|
|
726
737
|
}
|
|
727
|
-
function
|
|
738
|
+
function jt(e, t) {
|
|
728
739
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
729
740
|
}
|
|
730
|
-
function
|
|
731
|
-
return (t) => e.forEach((e) =>
|
|
741
|
+
function Mt(...e) {
|
|
742
|
+
return (t) => e.forEach((e) => jt(e, t));
|
|
732
743
|
}
|
|
733
|
-
function
|
|
734
|
-
return
|
|
744
|
+
function Nt(...e) {
|
|
745
|
+
return p.useCallback(Mt(...e), e);
|
|
735
746
|
}
|
|
736
|
-
var
|
|
737
|
-
function
|
|
747
|
+
var Pt = /* @__PURE__ */ new WeakMap();
|
|
748
|
+
function X(e, t, n = !1) {
|
|
738
749
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
739
750
|
let r = {};
|
|
740
751
|
Object.entries(t).forEach(([t, n]) => {
|
|
@@ -743,14 +754,14 @@ function Y(e, t, n = !1) {
|
|
|
743
754
|
return;
|
|
744
755
|
}
|
|
745
756
|
r[t] = e.style[t], e.style[t] = n;
|
|
746
|
-
}), !n &&
|
|
757
|
+
}), !n && Pt.set(e, r);
|
|
747
758
|
}
|
|
748
|
-
function
|
|
759
|
+
function Ft(e, t) {
|
|
749
760
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
750
|
-
let n =
|
|
761
|
+
let n = Pt.get(e);
|
|
751
762
|
n && (e.style[t] = n[t]);
|
|
752
763
|
}
|
|
753
|
-
var
|
|
764
|
+
var Z = (e) => {
|
|
754
765
|
switch (e) {
|
|
755
766
|
case "top":
|
|
756
767
|
case "bottom": return !0;
|
|
@@ -759,22 +770,22 @@ var X = (e) => {
|
|
|
759
770
|
default: return e;
|
|
760
771
|
}
|
|
761
772
|
};
|
|
762
|
-
function
|
|
773
|
+
function It(e, t) {
|
|
763
774
|
if (!e) return null;
|
|
764
775
|
let n = window.getComputedStyle(e), r = n.transform || n.webkitTransform || n.mozTransform, i = r.match(/^matrix3d\((.+)\)$/);
|
|
765
|
-
return i ? parseFloat(i[1].split(", ")[
|
|
776
|
+
return i ? parseFloat(i[1].split(", ")[Z(t) ? 13 : 12]) : (i = r.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[Z(t) ? 5 : 4]) : null);
|
|
766
777
|
}
|
|
767
|
-
function
|
|
778
|
+
function Lt(e) {
|
|
768
779
|
return 8 * (Math.log(e + 1) - 2);
|
|
769
780
|
}
|
|
770
|
-
function
|
|
781
|
+
function Rt(e, t) {
|
|
771
782
|
if (!e) return () => {};
|
|
772
783
|
let n = e.style.cssText;
|
|
773
784
|
return Object.assign(e.style, t), () => {
|
|
774
785
|
e.style.cssText = n;
|
|
775
786
|
};
|
|
776
787
|
}
|
|
777
|
-
var
|
|
788
|
+
var Q = {
|
|
778
789
|
DURATION: .5,
|
|
779
790
|
EASE: [
|
|
780
791
|
.32,
|
|
@@ -782,16 +793,16 @@ var Z = {
|
|
|
782
793
|
0,
|
|
783
794
|
1
|
|
784
795
|
]
|
|
785
|
-
},
|
|
786
|
-
function
|
|
787
|
-
let t =
|
|
788
|
-
return
|
|
796
|
+
}, zt = .4, Bt = .25, Vt = 100, Ht = 8, Ut = 16, Wt = 26, Gt = "vaul-dragging";
|
|
797
|
+
function Kt(e) {
|
|
798
|
+
let t = m.useRef(e);
|
|
799
|
+
return m.useEffect(() => {
|
|
789
800
|
t.current = e;
|
|
790
|
-
}),
|
|
801
|
+
}), m.useMemo(() => (...e) => t.current == null ? void 0 : t.current.call(t, ...e), []);
|
|
791
802
|
}
|
|
792
|
-
function
|
|
793
|
-
let n =
|
|
794
|
-
return
|
|
803
|
+
function qt({ defaultProp: e, onChange: t }) {
|
|
804
|
+
let n = m.useState(e), [r] = n, i = m.useRef(r), a = Kt(t);
|
|
805
|
+
return m.useEffect(() => {
|
|
795
806
|
i.current !== r && (a(r), i.current = r);
|
|
796
807
|
}, [
|
|
797
808
|
r,
|
|
@@ -799,12 +810,12 @@ function Jt({ defaultProp: e, onChange: t }) {
|
|
|
799
810
|
a
|
|
800
811
|
]), n;
|
|
801
812
|
}
|
|
802
|
-
function
|
|
803
|
-
let [r, i] =
|
|
813
|
+
function Jt({ prop: e, defaultProp: t, onChange: n = () => {} }) {
|
|
814
|
+
let [r, i] = qt({
|
|
804
815
|
defaultProp: t,
|
|
805
816
|
onChange: n
|
|
806
|
-
}), a = e !== void 0, o = a ? e : r, s =
|
|
807
|
-
return [o,
|
|
817
|
+
}), a = e !== void 0, o = a ? e : r, s = Kt(n);
|
|
818
|
+
return [o, m.useCallback((t) => {
|
|
808
819
|
if (a) {
|
|
809
820
|
let n = typeof t == "function" ? t(e) : t;
|
|
810
821
|
n !== e && s(n);
|
|
@@ -816,16 +827,16 @@ function Yt({ prop: e, defaultProp: t, onChange: n = () => {} }) {
|
|
|
816
827
|
s
|
|
817
828
|
])];
|
|
818
829
|
}
|
|
819
|
-
function
|
|
820
|
-
let [u, d] =
|
|
830
|
+
function Yt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: i, fadeFromIndex: a, onSnapPointChange: o, direction: s = "bottom", container: c, snapToSequentialPoint: l }) {
|
|
831
|
+
let [u, d] = Jt({
|
|
821
832
|
prop: e,
|
|
822
833
|
defaultProp: n?.[0],
|
|
823
834
|
onChange: t
|
|
824
|
-
}), [f, p] =
|
|
835
|
+
}), [f, p] = m.useState(typeof window < "u" ? {
|
|
825
836
|
innerWidth: window.innerWidth,
|
|
826
837
|
innerHeight: window.innerHeight
|
|
827
838
|
} : void 0);
|
|
828
|
-
|
|
839
|
+
m.useEffect(() => {
|
|
829
840
|
function e() {
|
|
830
841
|
p({
|
|
831
842
|
innerWidth: window.innerWidth,
|
|
@@ -834,7 +845,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
834
845
|
}
|
|
835
846
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
836
847
|
}, []);
|
|
837
|
-
let
|
|
848
|
+
let h = m.useMemo(() => u === n?.[n.length - 1] || null, [n, u]), g = m.useMemo(() => n?.findIndex((e) => e === u) ?? null, [n, u]), _ = n && n.length > 0 && (a || a === 0) && !Number.isNaN(a) && n[a] === u || !n, v = m.useMemo(() => {
|
|
838
849
|
let e = c ? {
|
|
839
850
|
width: c.getBoundingClientRect().width,
|
|
840
851
|
height: c.getBoundingClientRect().height
|
|
@@ -847,7 +858,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
847
858
|
};
|
|
848
859
|
return n?.map((t) => {
|
|
849
860
|
let n = typeof t == "string", r = 0;
|
|
850
|
-
if (n && (r = parseInt(t, 10)),
|
|
861
|
+
if (n && (r = parseInt(t, 10)), Z(s)) {
|
|
851
862
|
let i = n ? r : f ? t * e.height : 0;
|
|
852
863
|
return f ? s === "bottom" ? e.height - i : -e.height + i : i;
|
|
853
864
|
}
|
|
@@ -858,16 +869,16 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
858
869
|
n,
|
|
859
870
|
f,
|
|
860
871
|
c
|
|
861
|
-
]), y =
|
|
872
|
+
]), y = m.useMemo(() => g === null ? null : v?.[g], [v, g]), b = m.useCallback((e) => {
|
|
862
873
|
let t = v?.findIndex((t) => t === e) ?? null;
|
|
863
|
-
o(t),
|
|
864
|
-
transition: `transform ${
|
|
865
|
-
transform:
|
|
866
|
-
}), v && t !== v.length - 1 && a !== void 0 && t !== a && t < a ?
|
|
867
|
-
transition: `opacity ${
|
|
874
|
+
o(t), X(r.current, {
|
|
875
|
+
transition: `transform ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
|
|
876
|
+
transform: Z(s) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
|
|
877
|
+
}), v && t !== v.length - 1 && a !== void 0 && t !== a && t < a ? X(i.current, {
|
|
878
|
+
transition: `opacity ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
|
|
868
879
|
opacity: "0"
|
|
869
|
-
}) :
|
|
870
|
-
transition: `opacity ${
|
|
880
|
+
}) : X(i.current, {
|
|
881
|
+
transition: `opacity ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
|
|
871
882
|
opacity: "1"
|
|
872
883
|
}), d(n?.[Math.max(t, 0)]);
|
|
873
884
|
}, [
|
|
@@ -878,7 +889,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
878
889
|
i,
|
|
879
890
|
d
|
|
880
891
|
]);
|
|
881
|
-
|
|
892
|
+
m.useEffect(() => {
|
|
882
893
|
if (u || e) {
|
|
883
894
|
let t = n?.findIndex((t) => t === e || t === u) ?? -1;
|
|
884
895
|
v && t !== -1 && typeof v[t] == "number" && b(v[t]);
|
|
@@ -893,7 +904,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
893
904
|
function x({ draggedDistance: e, closeDrawer: t, velocity: r, dismissible: o }) {
|
|
894
905
|
if (a === void 0) return;
|
|
895
906
|
let c = s === "bottom" || s === "right" ? (y ?? 0) - e : (y ?? 0) + e, u = g === a - 1, d = g === 0, f = e > 0;
|
|
896
|
-
if (u &&
|
|
907
|
+
if (u && X(i.current, { transition: `opacity ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})` }), !l && r > 2 && !f) {
|
|
897
908
|
o ? t() : b(v[0]);
|
|
898
909
|
return;
|
|
899
910
|
}
|
|
@@ -901,10 +912,10 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
901
912
|
b(v[n.length - 1]);
|
|
902
913
|
return;
|
|
903
914
|
}
|
|
904
|
-
let p = v?.reduce((e, t) => typeof e != "number" || typeof t != "number" ? e : Math.abs(t - c) < Math.abs(e - c) ? t : e),
|
|
905
|
-
if (r >
|
|
915
|
+
let p = v?.reduce((e, t) => typeof e != "number" || typeof t != "number" ? e : Math.abs(t - c) < Math.abs(e - c) ? t : e), m = Z(s) ? window.innerHeight : window.innerWidth;
|
|
916
|
+
if (r > zt && Math.abs(e) < m * .4) {
|
|
906
917
|
let e = f ? 1 : -1;
|
|
907
|
-
if (e > 0 &&
|
|
918
|
+
if (e > 0 && h && n) {
|
|
908
919
|
b(v[n.length - 1]);
|
|
909
920
|
return;
|
|
910
921
|
}
|
|
@@ -917,7 +928,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
917
928
|
function S({ draggedDistance: e }) {
|
|
918
929
|
if (y === null) return;
|
|
919
930
|
let t = s === "bottom" || s === "right" ? y - e : y + e;
|
|
920
|
-
(s === "bottom" || s === "right") && t < v[v.length - 1] || (s === "top" || s === "left") && t > v[v.length - 1] ||
|
|
931
|
+
(s === "bottom" || s === "right") && t < v[v.length - 1] || (s === "top" || s === "left") && t > v[v.length - 1] || X(r.current, { transform: Z(s) ? `translate3d(0, ${t}px, 0)` : `translate3d(${t}px, 0, 0)` });
|
|
921
932
|
}
|
|
922
933
|
function C(e, t) {
|
|
923
934
|
if (!n || typeof g != "number" || !v || a === void 0) return null;
|
|
@@ -929,7 +940,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
929
940
|
return r ? 1 - s : s;
|
|
930
941
|
}
|
|
931
942
|
return {
|
|
932
|
-
isLastSnapPoint:
|
|
943
|
+
isLastSnapPoint: h,
|
|
933
944
|
activeSnapPoint: u,
|
|
934
945
|
shouldFade: _,
|
|
935
946
|
getPercentageDragged: C,
|
|
@@ -940,31 +951,31 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
940
951
|
snapPointsOffset: v
|
|
941
952
|
};
|
|
942
953
|
}
|
|
943
|
-
function
|
|
944
|
-
let { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: i } =
|
|
954
|
+
function Xt() {
|
|
955
|
+
let { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: i } = J(), a = m.useRef(null), o = _(() => document.body.style.backgroundColor, []);
|
|
945
956
|
function s() {
|
|
946
|
-
return (window.innerWidth -
|
|
957
|
+
return (window.innerWidth - Wt) / window.innerWidth;
|
|
947
958
|
}
|
|
948
|
-
|
|
959
|
+
m.useEffect(() => {
|
|
949
960
|
if (t && n) {
|
|
950
961
|
a.current && clearTimeout(a.current);
|
|
951
962
|
let t = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
|
952
963
|
if (!t) return;
|
|
953
|
-
r && !i &&
|
|
954
|
-
transformOrigin:
|
|
964
|
+
r && !i && Rt(document.body, { background: "black" }), Rt(t, {
|
|
965
|
+
transformOrigin: Z(e) ? "top" : "left",
|
|
955
966
|
transitionProperty: "transform, border-radius",
|
|
956
|
-
transitionDuration: `${
|
|
957
|
-
transitionTimingFunction: `cubic-bezier(${
|
|
967
|
+
transitionDuration: `${Q.DURATION}s`,
|
|
968
|
+
transitionTimingFunction: `cubic-bezier(${Q.EASE.join(",")})`
|
|
958
969
|
});
|
|
959
|
-
let n =
|
|
960
|
-
borderRadius: `${
|
|
970
|
+
let n = Rt(t, {
|
|
971
|
+
borderRadius: `${Ht}px`,
|
|
961
972
|
overflow: "hidden",
|
|
962
|
-
...
|
|
973
|
+
...Z(e) ? { transform: `scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)` } : { transform: `scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)` }
|
|
963
974
|
});
|
|
964
975
|
return () => {
|
|
965
976
|
n(), a.current = window.setTimeout(() => {
|
|
966
977
|
o ? document.body.style.background = o : document.body.style.removeProperty("background");
|
|
967
|
-
},
|
|
978
|
+
}, Q.DURATION * 1e3);
|
|
968
979
|
};
|
|
969
980
|
}
|
|
970
981
|
}, [
|
|
@@ -973,11 +984,11 @@ function Zt() {
|
|
|
973
984
|
o
|
|
974
985
|
]);
|
|
975
986
|
}
|
|
976
|
-
var
|
|
987
|
+
var Zt = null;
|
|
977
988
|
function Qt({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: i, noBodyStyles: a }) {
|
|
978
|
-
let [o, s] =
|
|
979
|
-
if (
|
|
980
|
-
|
|
989
|
+
let [o, s] = m.useState(() => typeof window < "u" ? window.location.href : ""), c = m.useRef(0), l = m.useCallback(() => {
|
|
990
|
+
if (pt() && Zt === null && e && !a) {
|
|
991
|
+
Zt = {
|
|
981
992
|
position: document.body.style.position,
|
|
982
993
|
top: document.body.style.top,
|
|
983
994
|
left: document.body.style.left,
|
|
@@ -995,30 +1006,30 @@ function Qt({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
|
|
|
995
1006
|
e && c.current >= t && (document.body.style.top = `${-(c.current + e)}px`);
|
|
996
1007
|
}), 300);
|
|
997
1008
|
}
|
|
998
|
-
}, [e]), u =
|
|
999
|
-
if (
|
|
1009
|
+
}, [e]), u = m.useCallback(() => {
|
|
1010
|
+
if (pt() && Zt !== null && !a) {
|
|
1000
1011
|
let e = -parseInt(document.body.style.top, 10), t = -parseInt(document.body.style.left, 10);
|
|
1001
|
-
Object.assign(document.body.style,
|
|
1012
|
+
Object.assign(document.body.style, Zt), window.requestAnimationFrame(() => {
|
|
1002
1013
|
if (i && o !== window.location.href) {
|
|
1003
1014
|
s(window.location.href);
|
|
1004
1015
|
return;
|
|
1005
1016
|
}
|
|
1006
1017
|
window.scrollTo(t, e);
|
|
1007
|
-
}),
|
|
1018
|
+
}), Zt = null;
|
|
1008
1019
|
}
|
|
1009
1020
|
}, [o]);
|
|
1010
|
-
return
|
|
1021
|
+
return m.useEffect(() => {
|
|
1011
1022
|
function e() {
|
|
1012
1023
|
c.current = window.scrollY;
|
|
1013
1024
|
}
|
|
1014
1025
|
return e(), window.addEventListener("scroll", e), () => {
|
|
1015
1026
|
window.removeEventListener("scroll", e);
|
|
1016
1027
|
};
|
|
1017
|
-
}, []),
|
|
1028
|
+
}, []), m.useEffect(() => {
|
|
1018
1029
|
if (t) return () => {
|
|
1019
1030
|
typeof document > "u" || document.querySelector("[data-vaul-drawer]") || u();
|
|
1020
1031
|
};
|
|
1021
|
-
}, [t, u]),
|
|
1032
|
+
}, [t, u]), m.useEffect(() => {
|
|
1022
1033
|
n || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && l(), t || window.setTimeout(() => {
|
|
1023
1034
|
u();
|
|
1024
1035
|
}, 500)) : u());
|
|
@@ -1032,33 +1043,33 @@ function Qt({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
|
|
|
1032
1043
|
u
|
|
1033
1044
|
]), { restorePositionSetting: u };
|
|
1034
1045
|
}
|
|
1035
|
-
function $t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, snapPoints: a, shouldScaleBackground: o = !1, setBackgroundColorOnScale: s = !0, closeThreshold: c =
|
|
1036
|
-
let [O = !1, ne] =
|
|
1046
|
+
function $t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, snapPoints: a, shouldScaleBackground: o = !1, setBackgroundColorOnScale: s = !0, closeThreshold: c = Bt, scrollLockTimeout: l = Vt, dismissible: u = !0, handleOnly: d = !1, fadeFromIndex: f = a && a.length - 1, activeSnapPoint: p, setActiveSnapPoint: h, fixed: g, modal: _ = !0, onClose: v, nested: y, noBodyStyles: b = !1, direction: x = "bottom", defaultOpen: S = !1, disablePreventScroll: C = !0, snapToSequentialPoint: w = !1, preventScrollRestoration: T = !1, repositionInputs: E = !0, onAnimationEnd: ee, container: te, autoFocus: D = !1 }) {
|
|
1047
|
+
let [O = !1, ne] = Jt({
|
|
1037
1048
|
defaultProp: S,
|
|
1038
1049
|
prop: e,
|
|
1039
1050
|
onChange: (e) => {
|
|
1040
|
-
t?.(e), !e && !y &&
|
|
1041
|
-
|
|
1042
|
-
},
|
|
1051
|
+
t?.(e), !e && !y && H(), setTimeout(() => {
|
|
1052
|
+
ee?.(e);
|
|
1053
|
+
}, Q.DURATION * 1e3), e && !_ && typeof window < "u" && window.requestAnimationFrame(() => {
|
|
1043
1054
|
document.body.style.pointerEvents = "auto";
|
|
1044
1055
|
}), e || (document.body.style.pointerEvents = "auto");
|
|
1045
1056
|
}
|
|
1046
|
-
}), [re,
|
|
1057
|
+
}), [re, k] = m.useState(!1), [A, ie] = m.useState(!1), [ae, oe] = m.useState(!1), j = m.useRef(null), M = m.useRef(null), se = m.useRef(null), N = m.useRef(null), P = m.useRef(null), F = m.useRef(!1), ce = m.useRef(null), le = m.useRef(0), I = m.useRef(!1), ue = m.useRef(!S), de = m.useRef(0), L = m.useRef(null), R = m.useRef(L.current?.getBoundingClientRect().height || 0), z = m.useRef(L.current?.getBoundingClientRect().width || 0), fe = m.useRef(0), { activeSnapPoint: pe, activeSnapPointIndex: B, setActiveSnapPoint: me, onRelease: he, snapPointsOffset: V, onDrag: ge, shouldFade: _e, getPercentageDragged: ve } = Yt({
|
|
1047
1058
|
snapPoints: a,
|
|
1048
1059
|
activeSnapPointProp: p,
|
|
1049
|
-
setActiveSnapPointProp:
|
|
1060
|
+
setActiveSnapPointProp: h,
|
|
1050
1061
|
drawerRef: L,
|
|
1051
1062
|
fadeFromIndex: f,
|
|
1052
1063
|
overlayRef: j,
|
|
1053
|
-
onSnapPointChange:
|
|
1054
|
-
a && e ===
|
|
1064
|
+
onSnapPointChange: m.useCallback((e) => {
|
|
1065
|
+
a && e === V.length - 1 && (M.current = /* @__PURE__ */ new Date());
|
|
1055
1066
|
}, []),
|
|
1056
1067
|
direction: x,
|
|
1057
|
-
container:
|
|
1068
|
+
container: te,
|
|
1058
1069
|
snapToSequentialPoint: w
|
|
1059
1070
|
});
|
|
1060
|
-
|
|
1061
|
-
let { restorePositionSetting:
|
|
1071
|
+
Et({ isDisabled: !O || A || !_ || ae || !re || !E || !C });
|
|
1072
|
+
let { restorePositionSetting: H } = Qt({
|
|
1062
1073
|
isOpen: O,
|
|
1063
1074
|
modal: _,
|
|
1064
1075
|
nested: y ?? !1,
|
|
@@ -1066,14 +1077,14 @@ function $t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
1066
1077
|
preventScrollRestoration: T,
|
|
1067
1078
|
noBodyStyles: b
|
|
1068
1079
|
});
|
|
1069
|
-
function
|
|
1070
|
-
return (window.innerWidth -
|
|
1080
|
+
function U() {
|
|
1081
|
+
return (window.innerWidth - Wt) / window.innerWidth;
|
|
1071
1082
|
}
|
|
1072
|
-
function
|
|
1073
|
-
!u && !a || L.current && !L.current.contains(e.target) || (R.current = L.current?.getBoundingClientRect().height || 0,
|
|
1083
|
+
function ye(e) {
|
|
1084
|
+
!u && !a || L.current && !L.current.contains(e.target) || (R.current = L.current?.getBoundingClientRect().height || 0, z.current = L.current?.getBoundingClientRect().width || 0, ie(!0), se.current = /* @__PURE__ */ new Date(), ht() && window.addEventListener("touchend", () => F.current = !1, { once: !0 }), e.target.setPointerCapture(e.pointerId), le.current = Z(x) ? e.pageY : e.pageX);
|
|
1074
1085
|
}
|
|
1075
|
-
function
|
|
1076
|
-
let n = e, r = window.getSelection()?.toString(), i = L.current ?
|
|
1086
|
+
function be(e, t) {
|
|
1087
|
+
let n = e, r = window.getSelection()?.toString(), i = L.current ? It(L.current, x) : null, a = /* @__PURE__ */ new Date();
|
|
1077
1088
|
if (n.tagName === "SELECT" || n.hasAttribute("data-vaul-no-drag") || n.closest("[data-vaul-no-drag]")) return !1;
|
|
1078
1089
|
if (x === "right" || x === "left") return !0;
|
|
1079
1090
|
if (M.current && a.getTime() - M.current.getTime() < 500) return !1;
|
|
@@ -1089,207 +1100,207 @@ function $t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
1089
1100
|
}
|
|
1090
1101
|
return !0;
|
|
1091
1102
|
}
|
|
1092
|
-
function
|
|
1093
|
-
if (L.current &&
|
|
1094
|
-
let t = x === "bottom" || x === "right" ? 1 : -1, n = (le.current - (
|
|
1095
|
-
if (s &&
|
|
1096
|
-
let c = Math.abs(n), l = document.querySelector("[data-vaul-drawer-wrapper]"), d = c / (x === "bottom" || x === "top" ? R.current :
|
|
1097
|
-
if (p !== null && (d = p), s && d >= 1 || !F.current && !
|
|
1098
|
-
if (L.current.classList.add(
|
|
1099
|
-
let e =
|
|
1100
|
-
|
|
1103
|
+
function xe(e) {
|
|
1104
|
+
if (L.current && A) {
|
|
1105
|
+
let t = x === "bottom" || x === "right" ? 1 : -1, n = (le.current - (Z(x) ? e.pageY : e.pageX)) * t, i = n > 0, s = a && !u && !i;
|
|
1106
|
+
if (s && B === 0) return;
|
|
1107
|
+
let c = Math.abs(n), l = document.querySelector("[data-vaul-drawer-wrapper]"), d = c / (x === "bottom" || x === "top" ? R.current : z.current), p = ve(c, i);
|
|
1108
|
+
if (p !== null && (d = p), s && d >= 1 || !F.current && !be(e.target, i)) return;
|
|
1109
|
+
if (L.current.classList.add(Gt), F.current = !0, X(L.current, { transition: "none" }), X(j.current, { transition: "none" }), a && ge({ draggedDistance: n }), i && !a) {
|
|
1110
|
+
let e = Lt(n), r = Math.min(e * -1, 0) * t;
|
|
1111
|
+
X(L.current, { transform: Z(x) ? `translate3d(0, ${r}px, 0)` : `translate3d(${r}px, 0, 0)` });
|
|
1101
1112
|
return;
|
|
1102
1113
|
}
|
|
1103
1114
|
let m = 1 - d;
|
|
1104
|
-
if ((
|
|
1115
|
+
if ((_e || f && B === f - 1) && (r?.(e, d), X(j.current, {
|
|
1105
1116
|
opacity: `${m}`,
|
|
1106
1117
|
transition: "none"
|
|
1107
1118
|
}, !0)), l && j.current && o) {
|
|
1108
|
-
let e = Math.min(
|
|
1109
|
-
|
|
1119
|
+
let e = Math.min(U() + d * (1 - U()), 1), t = 8 - d * 8, n = Math.max(0, 14 - d * 14);
|
|
1120
|
+
X(l, {
|
|
1110
1121
|
borderRadius: `${t}px`,
|
|
1111
|
-
transform:
|
|
1122
|
+
transform: Z(x) ? `scale(${e}) translate3d(0, ${n}px, 0)` : `scale(${e}) translate3d(${n}px, 0, 0)`,
|
|
1112
1123
|
transition: "none"
|
|
1113
1124
|
}, !0);
|
|
1114
1125
|
}
|
|
1115
1126
|
if (!a) {
|
|
1116
1127
|
let e = c * t;
|
|
1117
|
-
|
|
1128
|
+
X(L.current, { transform: Z(x) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)` });
|
|
1118
1129
|
}
|
|
1119
1130
|
}
|
|
1120
1131
|
}
|
|
1121
|
-
|
|
1132
|
+
m.useEffect(() => {
|
|
1122
1133
|
window.requestAnimationFrame(() => {
|
|
1123
1134
|
ue.current = !0;
|
|
1124
1135
|
});
|
|
1125
|
-
}, []),
|
|
1136
|
+
}, []), m.useEffect(() => {
|
|
1126
1137
|
var e;
|
|
1127
1138
|
function t() {
|
|
1128
1139
|
if (!L.current || !E) return;
|
|
1129
1140
|
let e = document.activeElement;
|
|
1130
|
-
if (
|
|
1141
|
+
if (At(e) || I.current) {
|
|
1131
1142
|
let e = window.visualViewport?.height || 0, t = window.innerHeight, n = t - e, r = L.current.getBoundingClientRect().height || 0, i = r > t * .8;
|
|
1132
|
-
|
|
1143
|
+
fe.current ||= r;
|
|
1133
1144
|
let o = L.current.getBoundingClientRect().top;
|
|
1134
|
-
if (Math.abs(de.current - n) > 60 && (I.current = !I.current), a && a.length > 0 &&
|
|
1135
|
-
let e = B
|
|
1145
|
+
if (Math.abs(de.current - n) > 60 && (I.current = !I.current), a && a.length > 0 && V && B) {
|
|
1146
|
+
let e = V[B] || 0;
|
|
1136
1147
|
n += e;
|
|
1137
1148
|
}
|
|
1138
1149
|
if (de.current = n, r > e || I.current) {
|
|
1139
1150
|
let t = L.current.getBoundingClientRect().height, r = t;
|
|
1140
|
-
t > e && (r = e - (i ? o :
|
|
1141
|
-
} else
|
|
1151
|
+
t > e && (r = e - (i ? o : Wt)), g ? L.current.style.height = `${t - Math.max(n, 0)}px` : L.current.style.height = `${Math.max(r, e - o)}px`;
|
|
1152
|
+
} else ut() || (L.current.style.height = `${fe.current}px`);
|
|
1142
1153
|
a && a.length > 0 && !I.current ? L.current.style.bottom = "0px" : L.current.style.bottom = `${Math.max(n, 0)}px`;
|
|
1143
1154
|
}
|
|
1144
1155
|
}
|
|
1145
1156
|
return (e = window.visualViewport) == null || e.addEventListener("resize", t), () => window.visualViewport?.removeEventListener("resize", t);
|
|
1146
1157
|
}, [
|
|
1147
|
-
|
|
1158
|
+
B,
|
|
1148
1159
|
a,
|
|
1149
|
-
|
|
1160
|
+
V
|
|
1150
1161
|
]);
|
|
1151
|
-
function
|
|
1152
|
-
|
|
1153
|
-
a &&
|
|
1154
|
-
},
|
|
1162
|
+
function W(e) {
|
|
1163
|
+
G(), v?.(), e || ne(!1), setTimeout(() => {
|
|
1164
|
+
a && me(a[0]);
|
|
1165
|
+
}, Q.DURATION * 1e3);
|
|
1155
1166
|
}
|
|
1156
|
-
function
|
|
1167
|
+
function Se() {
|
|
1157
1168
|
if (!L.current) return;
|
|
1158
|
-
let e = document.querySelector("[data-vaul-drawer-wrapper]"), t =
|
|
1159
|
-
|
|
1169
|
+
let e = document.querySelector("[data-vaul-drawer-wrapper]"), t = It(L.current, x);
|
|
1170
|
+
X(L.current, {
|
|
1160
1171
|
transform: "translate3d(0, 0, 0)",
|
|
1161
|
-
transition: `transform ${
|
|
1162
|
-
}),
|
|
1163
|
-
transition: `opacity ${
|
|
1172
|
+
transition: `transform ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`
|
|
1173
|
+
}), X(j.current, {
|
|
1174
|
+
transition: `opacity ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
|
|
1164
1175
|
opacity: "1"
|
|
1165
|
-
}), o && t && t > 0 && O &&
|
|
1166
|
-
borderRadius: `${
|
|
1176
|
+
}), o && t && t > 0 && O && X(e, {
|
|
1177
|
+
borderRadius: `${Ht}px`,
|
|
1167
1178
|
overflow: "hidden",
|
|
1168
|
-
...
|
|
1169
|
-
transform: `scale(${
|
|
1179
|
+
...Z(x) ? {
|
|
1180
|
+
transform: `scale(${U()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
1170
1181
|
transformOrigin: "top"
|
|
1171
1182
|
} : {
|
|
1172
|
-
transform: `scale(${
|
|
1183
|
+
transform: `scale(${U()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
|
|
1173
1184
|
transformOrigin: "left"
|
|
1174
1185
|
},
|
|
1175
1186
|
transitionProperty: "transform, border-radius",
|
|
1176
|
-
transitionDuration: `${
|
|
1177
|
-
transitionTimingFunction: `cubic-bezier(${
|
|
1187
|
+
transitionDuration: `${Q.DURATION}s`,
|
|
1188
|
+
transitionTimingFunction: `cubic-bezier(${Q.EASE.join(",")})`
|
|
1178
1189
|
}, !0);
|
|
1179
1190
|
}
|
|
1180
|
-
function
|
|
1181
|
-
!
|
|
1191
|
+
function G() {
|
|
1192
|
+
!A || !L.current || (L.current.classList.remove(Gt), F.current = !1, ie(!1), N.current = /* @__PURE__ */ new Date());
|
|
1182
1193
|
}
|
|
1183
|
-
function
|
|
1184
|
-
if (!
|
|
1185
|
-
L.current.classList.remove(
|
|
1186
|
-
let t =
|
|
1187
|
-
if (!e || !
|
|
1188
|
-
let n = N.current.getTime() - se.current.getTime(), r = le.current - (
|
|
1194
|
+
function Ce(e) {
|
|
1195
|
+
if (!A || !L.current) return;
|
|
1196
|
+
L.current.classList.remove(Gt), F.current = !1, ie(!1), N.current = /* @__PURE__ */ new Date();
|
|
1197
|
+
let t = It(L.current, x);
|
|
1198
|
+
if (!e || !be(e.target, !1) || !t || Number.isNaN(t) || se.current === null) return;
|
|
1199
|
+
let n = N.current.getTime() - se.current.getTime(), r = le.current - (Z(x) ? e.pageY : e.pageX), o = Math.abs(r) / n;
|
|
1189
1200
|
if (o > .05 && (oe(!0), setTimeout(() => {
|
|
1190
1201
|
oe(!1);
|
|
1191
1202
|
}, 200)), a) {
|
|
1192
|
-
|
|
1203
|
+
he({
|
|
1193
1204
|
draggedDistance: r * (x === "bottom" || x === "right" ? 1 : -1),
|
|
1194
|
-
closeDrawer:
|
|
1205
|
+
closeDrawer: W,
|
|
1195
1206
|
velocity: o,
|
|
1196
1207
|
dismissible: u
|
|
1197
1208
|
}), i?.(e, !0);
|
|
1198
1209
|
return;
|
|
1199
1210
|
}
|
|
1200
1211
|
if (x === "bottom" || x === "right" ? r > 0 : r < 0) {
|
|
1201
|
-
|
|
1212
|
+
Se(), i?.(e, !0);
|
|
1202
1213
|
return;
|
|
1203
1214
|
}
|
|
1204
|
-
if (o >
|
|
1205
|
-
|
|
1215
|
+
if (o > zt) {
|
|
1216
|
+
W(), i?.(e, !1);
|
|
1206
1217
|
return;
|
|
1207
1218
|
}
|
|
1208
1219
|
let s = Math.min(L.current.getBoundingClientRect().height ?? 0, window.innerHeight), l = Math.min(L.current.getBoundingClientRect().width ?? 0, window.innerWidth);
|
|
1209
1220
|
if (Math.abs(t) >= (x === "left" || x === "right" ? l : s) * c) {
|
|
1210
|
-
|
|
1221
|
+
W(), i?.(e, !1);
|
|
1211
1222
|
return;
|
|
1212
1223
|
}
|
|
1213
|
-
i?.(e, !0),
|
|
1224
|
+
i?.(e, !0), Se();
|
|
1214
1225
|
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1226
|
+
m.useEffect(() => (O && (X(document.documentElement, { scrollBehavior: "auto" }), M.current = /* @__PURE__ */ new Date()), () => {
|
|
1227
|
+
Ft(document.documentElement, "scrollBehavior");
|
|
1217
1228
|
}), [O]);
|
|
1218
|
-
function
|
|
1219
|
-
let t = e ? (window.innerWidth -
|
|
1220
|
-
ce.current && window.clearTimeout(ce.current),
|
|
1221
|
-
transition: `transform ${
|
|
1222
|
-
transform:
|
|
1229
|
+
function we(e) {
|
|
1230
|
+
let t = e ? (window.innerWidth - Ut) / window.innerWidth : 1, n = e ? -16 : 0;
|
|
1231
|
+
ce.current && window.clearTimeout(ce.current), X(L.current, {
|
|
1232
|
+
transition: `transform ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
|
|
1233
|
+
transform: Z(x) ? `scale(${t}) translate3d(0, ${n}px, 0)` : `scale(${t}) translate3d(${n}px, 0, 0)`
|
|
1223
1234
|
}), !e && L.current && (ce.current = setTimeout(() => {
|
|
1224
|
-
let e =
|
|
1225
|
-
|
|
1235
|
+
let e = It(L.current, x);
|
|
1236
|
+
X(L.current, {
|
|
1226
1237
|
transition: "none",
|
|
1227
|
-
transform:
|
|
1238
|
+
transform: Z(x) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
|
|
1228
1239
|
});
|
|
1229
1240
|
}, 500));
|
|
1230
1241
|
}
|
|
1231
|
-
function
|
|
1242
|
+
function Te(e, t) {
|
|
1232
1243
|
if (t < 0) return;
|
|
1233
|
-
let n = (window.innerWidth -
|
|
1234
|
-
|
|
1235
|
-
transform:
|
|
1244
|
+
let n = (window.innerWidth - Ut) / window.innerWidth, r = n + t * (1 - n), i = -16 + t * Ut;
|
|
1245
|
+
X(L.current, {
|
|
1246
|
+
transform: Z(x) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`,
|
|
1236
1247
|
transition: "none"
|
|
1237
1248
|
});
|
|
1238
1249
|
}
|
|
1239
|
-
function
|
|
1240
|
-
let n =
|
|
1241
|
-
t &&
|
|
1242
|
-
transition: `transform ${
|
|
1243
|
-
transform:
|
|
1250
|
+
function K(e, t) {
|
|
1251
|
+
let n = Z(x) ? window.innerHeight : window.innerWidth, r = t ? (n - Ut) / n : 1, i = t ? -16 : 0;
|
|
1252
|
+
t && X(L.current, {
|
|
1253
|
+
transition: `transform ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
|
|
1254
|
+
transform: Z(x) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`
|
|
1244
1255
|
});
|
|
1245
1256
|
}
|
|
1246
|
-
return
|
|
1257
|
+
return m.useEffect(() => {
|
|
1247
1258
|
_ || window.requestAnimationFrame(() => {
|
|
1248
1259
|
document.body.style.pointerEvents = "auto";
|
|
1249
1260
|
});
|
|
1250
|
-
}, [_]), /*#__PURE__*/
|
|
1261
|
+
}, [_]), /*#__PURE__*/ m.createElement(et, {
|
|
1251
1262
|
defaultOpen: S,
|
|
1252
1263
|
onOpenChange: (e) => {
|
|
1253
|
-
!u && !e || (e ?
|
|
1264
|
+
!u && !e || (e ? k(!0) : W(!0), ne(e));
|
|
1254
1265
|
},
|
|
1255
1266
|
open: O
|
|
1256
|
-
}, /*#__PURE__*/
|
|
1257
|
-
activeSnapPoint:
|
|
1267
|
+
}, /*#__PURE__*/ m.createElement(lt.Provider, { value: {
|
|
1268
|
+
activeSnapPoint: pe,
|
|
1258
1269
|
snapPoints: a,
|
|
1259
|
-
setActiveSnapPoint:
|
|
1270
|
+
setActiveSnapPoint: me,
|
|
1260
1271
|
drawerRef: L,
|
|
1261
1272
|
overlayRef: j,
|
|
1262
1273
|
onOpenChange: t,
|
|
1263
|
-
onPress:
|
|
1264
|
-
onRelease:
|
|
1265
|
-
onDrag:
|
|
1274
|
+
onPress: ye,
|
|
1275
|
+
onRelease: Ce,
|
|
1276
|
+
onDrag: xe,
|
|
1266
1277
|
dismissible: u,
|
|
1267
1278
|
shouldAnimate: ue,
|
|
1268
1279
|
handleOnly: d,
|
|
1269
1280
|
isOpen: O,
|
|
1270
|
-
isDragging:
|
|
1271
|
-
shouldFade:
|
|
1272
|
-
closeDrawer:
|
|
1273
|
-
onNestedDrag:
|
|
1274
|
-
onNestedOpenChange:
|
|
1275
|
-
onNestedRelease:
|
|
1281
|
+
isDragging: A,
|
|
1282
|
+
shouldFade: _e,
|
|
1283
|
+
closeDrawer: W,
|
|
1284
|
+
onNestedDrag: Te,
|
|
1285
|
+
onNestedOpenChange: we,
|
|
1286
|
+
onNestedRelease: K,
|
|
1276
1287
|
keyboardIsOpen: I,
|
|
1277
1288
|
modal: _,
|
|
1278
|
-
snapPointsOffset:
|
|
1279
|
-
activeSnapPointIndex:
|
|
1289
|
+
snapPointsOffset: V,
|
|
1290
|
+
activeSnapPointIndex: B,
|
|
1280
1291
|
direction: x,
|
|
1281
1292
|
shouldScaleBackground: o,
|
|
1282
1293
|
setBackgroundColorOnScale: s,
|
|
1283
1294
|
noBodyStyles: b,
|
|
1284
|
-
container:
|
|
1285
|
-
autoFocus:
|
|
1295
|
+
container: te,
|
|
1296
|
+
autoFocus: D
|
|
1286
1297
|
} }, n));
|
|
1287
1298
|
}
|
|
1288
|
-
var en = /*#__PURE__*/
|
|
1289
|
-
let { overlayRef: n, snapPoints: r, onRelease: i, shouldFade: a, isOpen: o, modal: s, shouldAnimate: c } =
|
|
1299
|
+
var en = /*#__PURE__*/ m.forwardRef(function({ ...e }, t) {
|
|
1300
|
+
let { overlayRef: n, snapPoints: r, onRelease: i, shouldFade: a, isOpen: o, modal: s, shouldAnimate: c } = J(), l = Nt(t, n), u = r && r.length > 0;
|
|
1290
1301
|
if (!s) return null;
|
|
1291
|
-
let d =
|
|
1292
|
-
return /*#__PURE__*/
|
|
1302
|
+
let d = m.useCallback((e) => i(e), [i]);
|
|
1303
|
+
return /*#__PURE__*/ m.createElement(rt, {
|
|
1293
1304
|
onMouseUp: d,
|
|
1294
1305
|
ref: l,
|
|
1295
1306
|
"data-vaul-overlay": "",
|
|
@@ -1300,10 +1311,10 @@ var en = /*#__PURE__*/ h.forwardRef(function({ ...e }, t) {
|
|
|
1300
1311
|
});
|
|
1301
1312
|
});
|
|
1302
1313
|
en.displayName = "Drawer.Overlay";
|
|
1303
|
-
var tn = /*#__PURE__*/
|
|
1304
|
-
let { drawerRef: a, onPress: o, onRelease: s, onDrag: c, keyboardIsOpen: l, snapPointsOffset: u, activeSnapPointIndex: d, modal: f, isOpen: p, direction:
|
|
1305
|
-
|
|
1306
|
-
let
|
|
1314
|
+
var tn = /*#__PURE__*/ m.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, i) {
|
|
1315
|
+
let { drawerRef: a, onPress: o, onRelease: s, onDrag: c, keyboardIsOpen: l, snapPointsOffset: u, activeSnapPointIndex: d, modal: f, isOpen: p, direction: h, snapPoints: g, container: _, handleOnly: v, shouldAnimate: y, autoFocus: b } = J(), [x, S] = m.useState(!1), C = Nt(i, a), w = m.useRef(null), T = m.useRef(null), E = m.useRef(!1), ee = g && g.length > 0;
|
|
1316
|
+
Xt();
|
|
1317
|
+
let te = (e, t, n = 0) => {
|
|
1307
1318
|
if (E.current) return !0;
|
|
1308
1319
|
let r = Math.abs(e.y), i = Math.abs(e.x), a = i > r, o = ["bottom", "right"].includes(t) ? 1 : -1;
|
|
1309
1320
|
if (t === "left" || t === "right") {
|
|
@@ -1311,19 +1322,19 @@ var tn = /*#__PURE__*/ h.forwardRef(function({ onPointerDownOutside: e, style: t
|
|
|
1311
1322
|
} else if (!(e.y * o < 0) && r >= 0 && r <= n) return !a;
|
|
1312
1323
|
return E.current = !0, !0;
|
|
1313
1324
|
};
|
|
1314
|
-
|
|
1315
|
-
|
|
1325
|
+
m.useEffect(() => {
|
|
1326
|
+
ee && window.requestAnimationFrame(() => {
|
|
1316
1327
|
S(!0);
|
|
1317
1328
|
});
|
|
1318
1329
|
}, []);
|
|
1319
|
-
function
|
|
1330
|
+
function D(e) {
|
|
1320
1331
|
w.current = null, E.current = !1, s(e);
|
|
1321
1332
|
}
|
|
1322
|
-
return /*#__PURE__*/
|
|
1323
|
-
"data-vaul-drawer-direction":
|
|
1333
|
+
return /*#__PURE__*/ m.createElement(it, {
|
|
1334
|
+
"data-vaul-drawer-direction": h,
|
|
1324
1335
|
"data-vaul-drawer": "",
|
|
1325
1336
|
"data-vaul-delayed-snap-points": x ? "true" : "false",
|
|
1326
|
-
"data-vaul-snap-points": p &&
|
|
1337
|
+
"data-vaul-snap-points": p && ee ? "true" : "false",
|
|
1327
1338
|
"data-vaul-custom-container": _ ? "true" : "false",
|
|
1328
1339
|
"data-vaul-animate": y?.current ? "true" : "false",
|
|
1329
1340
|
...r,
|
|
@@ -1357,25 +1368,25 @@ var tn = /*#__PURE__*/ h.forwardRef(function({ onPointerDownOutside: e, style: t
|
|
|
1357
1368
|
onPointerMove: (e) => {
|
|
1358
1369
|
if (T.current = e, v || (r.onPointerMove == null || r.onPointerMove.call(r, e), !w.current)) return;
|
|
1359
1370
|
let t = e.pageY - w.current.y, n = e.pageX - w.current.x, i = e.pointerType === "touch" ? 10 : 2;
|
|
1360
|
-
|
|
1371
|
+
te({
|
|
1361
1372
|
x: n,
|
|
1362
1373
|
y: t
|
|
1363
|
-
},
|
|
1374
|
+
}, h, i) ? c(e) : (Math.abs(n) > i || Math.abs(t) > i) && (w.current = null);
|
|
1364
1375
|
},
|
|
1365
1376
|
onPointerUp: (e) => {
|
|
1366
1377
|
r.onPointerUp == null || r.onPointerUp.call(r, e), w.current = null, E.current = !1, s(e);
|
|
1367
1378
|
},
|
|
1368
1379
|
onPointerOut: (e) => {
|
|
1369
|
-
r.onPointerOut == null || r.onPointerOut.call(r, e),
|
|
1380
|
+
r.onPointerOut == null || r.onPointerOut.call(r, e), D(T.current);
|
|
1370
1381
|
},
|
|
1371
1382
|
onContextMenu: (e) => {
|
|
1372
|
-
r.onContextMenu == null || r.onContextMenu.call(r, e), T.current &&
|
|
1383
|
+
r.onContextMenu == null || r.onContextMenu.call(r, e), T.current && D(T.current);
|
|
1373
1384
|
}
|
|
1374
1385
|
});
|
|
1375
1386
|
});
|
|
1376
1387
|
tn.displayName = "Drawer.Content";
|
|
1377
|
-
var nn = 250, rn = 120, an = /*#__PURE__*/
|
|
1378
|
-
let { closeDrawer: i, isDragging: a, snapPoints: o, activeSnapPoint: s, setActiveSnapPoint: c, dismissible: l, handleOnly: u, isOpen: d, onPress: f, onDrag: p } =
|
|
1388
|
+
var nn = 250, rn = 120, an = /*#__PURE__*/ m.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
|
|
1389
|
+
let { closeDrawer: i, isDragging: a, snapPoints: o, activeSnapPoint: s, setActiveSnapPoint: c, dismissible: l, handleOnly: u, isOpen: d, onPress: f, onDrag: p } = J(), h = m.useRef(null), g = m.useRef(!1);
|
|
1379
1390
|
function _() {
|
|
1380
1391
|
if (g.current) {
|
|
1381
1392
|
b();
|
|
@@ -1404,14 +1415,14 @@ var nn = 250, rn = 120, an = /*#__PURE__*/ h.forwardRef(function({ preventCycle:
|
|
|
1404
1415
|
c(n);
|
|
1405
1416
|
}
|
|
1406
1417
|
function y() {
|
|
1407
|
-
|
|
1418
|
+
h.current = window.setTimeout(() => {
|
|
1408
1419
|
g.current = !0;
|
|
1409
1420
|
}, nn);
|
|
1410
1421
|
}
|
|
1411
1422
|
function b() {
|
|
1412
|
-
|
|
1423
|
+
h.current && window.clearTimeout(h.current), g.current = !1;
|
|
1413
1424
|
}
|
|
1414
|
-
return /*#__PURE__*/
|
|
1425
|
+
return /*#__PURE__*/ m.createElement("div", {
|
|
1415
1426
|
onClick: _,
|
|
1416
1427
|
onPointerCancel: b,
|
|
1417
1428
|
onPointerDown: (e) => {
|
|
@@ -1425,16 +1436,16 @@ var nn = 250, rn = 120, an = /*#__PURE__*/ h.forwardRef(function({ preventCycle:
|
|
|
1425
1436
|
"data-vaul-handle": "",
|
|
1426
1437
|
"aria-hidden": "true",
|
|
1427
1438
|
...n
|
|
1428
|
-
}, /*#__PURE__*/
|
|
1439
|
+
}, /*#__PURE__*/ m.createElement("span", {
|
|
1429
1440
|
"data-vaul-handle-hitarea": "",
|
|
1430
1441
|
"aria-hidden": "true"
|
|
1431
1442
|
}, t));
|
|
1432
1443
|
});
|
|
1433
1444
|
an.displayName = "Drawer.Handle";
|
|
1434
1445
|
function on({ onDrag: e, onOpenChange: t, open: n, ...r }) {
|
|
1435
|
-
let { onNestedDrag: i, onNestedOpenChange: a, onNestedRelease: o } =
|
|
1446
|
+
let { onNestedDrag: i, onNestedOpenChange: a, onNestedRelease: o } = J();
|
|
1436
1447
|
if (!i) throw Error("Drawer.NestedRoot must be placed in another drawer");
|
|
1437
|
-
return /*#__PURE__*/
|
|
1448
|
+
return /*#__PURE__*/ m.createElement($t, {
|
|
1438
1449
|
nested: !0,
|
|
1439
1450
|
open: n,
|
|
1440
1451
|
onClose: () => {
|
|
@@ -1451,8 +1462,8 @@ function on({ onDrag: e, onOpenChange: t, open: n, ...r }) {
|
|
|
1451
1462
|
});
|
|
1452
1463
|
}
|
|
1453
1464
|
function sn(e) {
|
|
1454
|
-
let t =
|
|
1455
|
-
return /*#__PURE__*/
|
|
1465
|
+
let t = J(), { container: n = t.container, ...r } = e;
|
|
1466
|
+
return /*#__PURE__*/ m.createElement(nt, {
|
|
1456
1467
|
container: n,
|
|
1457
1468
|
...r
|
|
1458
1469
|
});
|
|
@@ -1462,50 +1473,50 @@ var $ = {
|
|
|
1462
1473
|
NestedRoot: on,
|
|
1463
1474
|
Content: tn,
|
|
1464
1475
|
Overlay: en,
|
|
1465
|
-
Trigger:
|
|
1476
|
+
Trigger: tt,
|
|
1466
1477
|
Portal: sn,
|
|
1467
1478
|
Handle: an,
|
|
1468
|
-
Close:
|
|
1469
|
-
Title:
|
|
1470
|
-
Description:
|
|
1479
|
+
Close: st,
|
|
1480
|
+
Title: at,
|
|
1481
|
+
Description: ot
|
|
1471
1482
|
};
|
|
1472
1483
|
//#endregion
|
|
1473
1484
|
//#region src/components/ui/drawer.tsx
|
|
1474
1485
|
function cn({ ...e }) {
|
|
1475
|
-
return /* @__PURE__ */
|
|
1486
|
+
return /* @__PURE__ */ y($.Root, {
|
|
1476
1487
|
"data-slot": "drawer",
|
|
1477
1488
|
...e
|
|
1478
1489
|
});
|
|
1479
1490
|
}
|
|
1480
1491
|
function ln({ ...e }) {
|
|
1481
|
-
return /* @__PURE__ */
|
|
1492
|
+
return /* @__PURE__ */ y($.Trigger, {
|
|
1482
1493
|
"data-slot": "drawer-trigger",
|
|
1483
1494
|
...e
|
|
1484
1495
|
});
|
|
1485
1496
|
}
|
|
1486
1497
|
function un({ ...e }) {
|
|
1487
|
-
return /* @__PURE__ */
|
|
1498
|
+
return /* @__PURE__ */ y($.Portal, {
|
|
1488
1499
|
"data-slot": "drawer-portal",
|
|
1489
1500
|
...e
|
|
1490
1501
|
});
|
|
1491
1502
|
}
|
|
1492
1503
|
function dn({ ...e }) {
|
|
1493
|
-
return /* @__PURE__ */
|
|
1504
|
+
return /* @__PURE__ */ y($.Close, {
|
|
1494
1505
|
"data-slot": "drawer-close",
|
|
1495
1506
|
...e
|
|
1496
1507
|
});
|
|
1497
1508
|
}
|
|
1498
1509
|
function fn({ className: e, ...t }) {
|
|
1499
|
-
return /* @__PURE__ */
|
|
1510
|
+
return /* @__PURE__ */ y($.Overlay, {
|
|
1500
1511
|
className: c("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-1000 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in", e),
|
|
1501
1512
|
"data-slot": "drawer-overlay",
|
|
1502
1513
|
...t
|
|
1503
1514
|
});
|
|
1504
1515
|
}
|
|
1505
1516
|
function pn({ className: e, children: t, ...n }) {
|
|
1506
|
-
return /* @__PURE__ */
|
|
1517
|
+
return /* @__PURE__ */ b(un, {
|
|
1507
1518
|
"data-slot": "drawer-portal",
|
|
1508
|
-
children: [/* @__PURE__ */
|
|
1519
|
+
children: [/* @__PURE__ */ y(fn, {}), /* @__PURE__ */ y($.Content, {
|
|
1509
1520
|
className: c("group/drawer-content fixed z-1000 flex h-auto flex-col bg-white", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-0", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", e),
|
|
1510
1521
|
"data-slot": "drawer-content",
|
|
1511
1522
|
...n,
|
|
@@ -1514,28 +1525,28 @@ function pn({ className: e, children: t, ...n }) {
|
|
|
1514
1525
|
});
|
|
1515
1526
|
}
|
|
1516
1527
|
function mn({ className: e, ...t }) {
|
|
1517
|
-
return /* @__PURE__ */
|
|
1528
|
+
return /* @__PURE__ */ y("div", {
|
|
1518
1529
|
className: c("flex flex-col gap-2 p-5", e),
|
|
1519
1530
|
"data-slot": "drawer-header",
|
|
1520
1531
|
...t
|
|
1521
1532
|
});
|
|
1522
1533
|
}
|
|
1523
1534
|
function hn({ className: e, ...t }) {
|
|
1524
|
-
return /* @__PURE__ */
|
|
1535
|
+
return /* @__PURE__ */ y("div", {
|
|
1525
1536
|
className: c("mt-auto flex flex-col gap-2 p-5", e),
|
|
1526
1537
|
"data-slot": "drawer-footer",
|
|
1527
1538
|
...t
|
|
1528
1539
|
});
|
|
1529
1540
|
}
|
|
1530
1541
|
function gn({ className: e, ...t }) {
|
|
1531
|
-
return /* @__PURE__ */
|
|
1542
|
+
return /* @__PURE__ */ y($.Title, {
|
|
1532
1543
|
className: c("font-semibold text-foreground", e),
|
|
1533
1544
|
"data-slot": "drawer-title",
|
|
1534
1545
|
...t
|
|
1535
1546
|
});
|
|
1536
1547
|
}
|
|
1537
1548
|
function _n({ className: e, ...t }) {
|
|
1538
|
-
return /* @__PURE__ */
|
|
1549
|
+
return /* @__PURE__ */ y($.Description, {
|
|
1539
1550
|
className: c("text-muted-foreground text-sm", e),
|
|
1540
1551
|
"data-slot": "drawer-description",
|
|
1541
1552
|
...t
|