@pfct/purple 1.5.0-npm-next.6 → 1.5.0-npm-next.8
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 +1 -1
- package/dist/chunks/clsx.C11secjj.js +1 -0
- package/dist/chunks/clsx.OuTLNxxd.js +16 -0
- package/dist/chunks/index.4M0spsbp.js +13 -0
- package/dist/chunks/index.6ZBAQokh.js +82 -0
- package/dist/chunks/index.B1f1TmJo.js +1540 -0
- package/dist/chunks/index.BBvMzEkn.js +1 -0
- package/dist/chunks/index.BCzFyP67.js +675 -0
- package/dist/chunks/index.BGfHe7LA.js +71 -0
- package/dist/chunks/index.BKwOnmIv.js +1 -0
- package/dist/chunks/index.BZPx6jYI.js +8 -0
- package/dist/chunks/{index.styled.B9NKU_3J.js → index.BarRvPVS.js} +291 -352
- package/dist/chunks/index.BiYcAxU7.js +152 -0
- package/dist/chunks/index.BmpKbNvp.js +41 -0
- package/dist/chunks/index.ByATMvf3.js +161 -0
- package/dist/chunks/index.CFXaphxE.js +5 -0
- package/dist/chunks/index.CKKuhuuw.js +1 -0
- package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
- package/dist/chunks/index.Cg1ETQne.js +27 -0
- package/dist/chunks/index.D2jUN9AV.js +1 -0
- package/dist/chunks/index.DAZ7Rqfw.js +1 -0
- package/dist/chunks/index.DIN2VJFB.js +1 -0
- package/dist/chunks/index.DMhXgOEz.js +1 -0
- package/dist/chunks/index.DSzDrqih.js +1 -0
- package/dist/chunks/index.Dh7jK0Mq.js +777 -0
- package/dist/chunks/index.Dp6n8vyp.js +1 -0
- package/dist/chunks/index.Zd9j6m3g.js +1 -0
- package/dist/chunks/index.mqd1GOb5.js +340 -0
- package/dist/chunks/index.z1-FwbyF.js +244 -0
- package/dist/chunks/jsx-runtime.CrDL12FN.js +22 -0
- package/dist/chunks/jsx-runtime.OVHDjVDe.js +284 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.es.js +250 -686
- package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.es.js +10 -10
- package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.styled.d.ts +3 -3
- package/dist/components/Badge/BaseBadge/index.styled.es.js +2 -2
- package/dist/components/Badge/IconBadge/index.cjs.js +1 -1
- package/dist/components/Badge/IconBadge/index.es.js +6 -6
- package/dist/components/Badge/IconBadge/index.styled.d.ts +2 -2
- package/dist/components/Badge/TextBadge/index.cjs.js +1 -1
- package/dist/components/Badge/TextBadge/index.es.js +7 -7
- package/dist/components/Badge/TextBadge/index.styled.d.ts +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +28 -30
- package/dist/components/BottomSheet/BaseBottomSheet/index.styled.d.ts +5 -5
- package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/NavBottomSheet/index.es.js +2 -2
- package/dist/components/BottomSheet/NavBottomSheet/index.styled.d.ts +2 -2
- package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +3 -3
- package/dist/components/BottomSheet/TitleBottomSheet/index.styled.d.ts +4 -4
- package/dist/components/BottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/index.es.js +1 -1
- package/dist/components/Button/BaseButton/index.cjs.js +1 -1
- package/dist/components/Button/BaseButton/index.es.js +5 -5
- package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/DoubleButton/index.es.js +2 -2
- package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatBaseButton/index.es.js +12 -12
- package/dist/components/Button/FloatBaseButton/index.styled.d.ts +12 -12
- package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatDoubleButton/index.es.js +11 -11
- package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatSingleButton/index.es.js +12 -12
- package/dist/components/Button/SingleButton/index.cjs.js +1 -1
- package/dist/components/Button/SingleButton/index.es.js +4 -4
- package/dist/components/Button/TestButton/index.cjs.js +1 -1
- package/dist/components/Button/TestButton/index.es.js +2 -2
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +1 -1
- package/dist/components/Card/index.cjs.js +1 -1
- package/dist/components/Card/index.es.js +7 -7
- package/dist/components/Card/index.styled.d.ts +2 -2
- package/dist/components/Chips/BasicChips/index.cjs.js +1 -1
- package/dist/components/Chips/BasicChips/index.es.js +8 -8
- package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
- package/dist/components/Chips/BasicChips/index.styled.d.ts +5 -5
- package/dist/components/Chips/BasicChips/index.styled.es.js +2 -2
- package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.es.js +53 -52
- package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.styled.d.ts +2 -2
- package/dist/components/Chips/ChipItem/index.styled.es.js +25 -27
- package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.es.js +27 -27
- package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.styled.d.ts +5 -5
- package/dist/components/Chips/ChipsFrame/index.styled.es.js +2 -2
- package/dist/components/Comment/Group/index.cjs.js +1 -1
- package/dist/components/Comment/Group/index.es.js +3 -3
- package/dist/components/Comment/Group/index.styled.d.ts +2 -2
- package/dist/components/Comment/Item/index.cjs.js +1 -1
- package/dist/components/Comment/Item/index.es.js +6 -6
- package/dist/components/Comment/Item/index.styled.d.ts +8 -8
- package/dist/components/Comment/index.d.ts +2 -2
- package/dist/components/Control/CheckMark/CheckMark.cjs.js +1 -1
- package/dist/components/Control/CheckMark/CheckMark.es.js +3 -3
- package/dist/components/Control/CheckMark/index.cjs.js +1 -1
- package/dist/components/Control/CheckMark/index.es.js +26 -28
- package/dist/components/Control/CheckMark/index.styled.d.ts +2 -2
- package/dist/components/Control/RadioButton/index.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.es.js +11 -11
- package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.styled.d.ts +2 -2
- package/dist/components/Control/RadioButton/index.styled.es.js +22 -24
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.d.ts +37 -9
- package/dist/components/Control/Switch/index.es.js +189 -85
- package/dist/components/Control/index.cjs.js +1 -1
- package/dist/components/Control/index.d.ts +2 -1
- package/dist/components/Control/index.es.js +4 -4
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +30 -32
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +31 -33
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +3 -3
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +32 -34
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +36 -38
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +32 -34
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.d.ts +10 -10
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +33 -35
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +5 -5
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.d.ts +5 -5
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +2 -2
- package/dist/components/DatePicker/BaseDatePicker/Month/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/Month/index.es.js +4 -4
- package/dist/components/DatePicker/BaseDatePicker/Month/index.styled.d.ts +2 -2
- package/dist/components/DatePicker/BaseDatePicker/Week/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/Week/index.es.js +3 -3
- package/dist/components/DatePicker/BaseDatePicker/Week/index.styled.d.ts +4 -4
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +28 -28
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.styed.d.ts +6 -6
- package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/index.es.js +59 -61
- package/dist/components/DatePicker/BaseDatePicker/index.styled.d.ts +2 -2
- package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +26 -26
- package/dist/components/DatePicker/RangeDatePickerModal/index.styled.d.ts +5 -5
- package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +29 -31
- package/dist/components/DatePicker/SingleDatePickerModal/index.styled.d.ts +2 -2
- package/dist/components/Divider/index.cjs.js +1 -1
- package/dist/components/Divider/index.es.js +3 -3
- package/dist/components/Divider/index.styled.d.ts +4 -4
- package/dist/components/Input/BaseInput/index.cjs.js +1 -1
- package/dist/components/Input/BaseInput/index.es.js +39 -39
- package/dist/components/Input/BaseInput/index.styled.d.ts +2 -2
- package/dist/components/Input/NumberInput/index.cjs.js +1 -1
- package/dist/components/Input/NumberInput/index.es.js +43 -45
- package/dist/components/Input/PostfixInput/index.cjs.js +1 -1
- package/dist/components/Input/PostfixInput/index.es.js +60 -60
- package/dist/components/Input/PostfixInput/index.styled.d.ts +5 -5
- package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
- package/dist/components/Input/PostfixInput/index.util.es.js +25 -27
- package/dist/components/Input/ResidentNumberInput/index.cjs.js +1 -1
- package/dist/components/Input/ResidentNumberInput/index.es.js +73 -73
- package/dist/components/Input/ResidentNumberInput/index.styled.d.ts +8 -8
- package/dist/components/Input/TextField/index.cjs.js +1 -1
- package/dist/components/Input/TextField/index.es.js +52 -52
- package/dist/components/Input/common/InputFrame/index.cjs.js +1 -1
- package/dist/components/Input/common/InputFrame/index.es.js +17 -17
- package/dist/components/Input/common/InputFrame/index.styled.d.ts +3 -3
- package/dist/components/Input/index.cjs.js +1 -1
- package/dist/components/Input/index.es.js +35 -37
- package/dist/components/LegacyModal/BaseModal/index.cjs.js +1 -0
- package/dist/components/LegacyModal/BaseModal/index.es.js +8 -0
- package/dist/components/LegacyModal/BaseModal/index.styled.d.ts +6 -0
- package/dist/components/LegacyModal/index.cjs.js +1 -0
- package/dist/components/LegacyModal/index.d.ts +31 -0
- package/dist/components/LegacyModal/index.es.js +9 -0
- package/dist/components/LegacyModal/index.styled.cjs.js +42 -0
- package/dist/components/LegacyModal/index.styled.d.ts +29 -0
- package/dist/components/LegacyModal/index.styled.es.js +56 -0
- package/dist/components/List/index.cjs.js +1 -1
- package/dist/components/List/index.es.js +10 -10
- package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.es.js +7 -7
- package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.styled.d.ts +4 -4
- package/dist/components/Loading/ProgressBar/index.styled.es.js +23 -25
- package/dist/components/Loading/Skeleton/SkeletonLayout/index.cjs.js +1 -1
- package/dist/components/Loading/Skeleton/SkeletonLayout/index.es.js +3 -3
- package/dist/components/Loading/Skeleton/SkeletonLayout/index.styled.d.ts +4 -4
- package/dist/components/Loading/Skeleton/index.cjs.js +1 -1
- package/dist/components/Loading/Skeleton/index.es.js +10 -10
- package/dist/components/Loading/Skeleton/index.styled.d.ts +6 -6
- package/dist/components/Loading/Spinner/index.cjs.js +1 -1
- package/dist/components/Loading/Spinner/index.es.js +2 -2
- package/dist/components/Loading/Spinner/index.styled.d.ts +2 -2
- package/dist/components/Loading/index.cjs.js +1 -1
- package/dist/components/Loading/index.es.js +1 -1
- package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
- package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.d.ts +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.es.js +30 -27
- package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +43 -40
- package/dist/components/MiniButton/common/ButtonTag.cjs.js +1 -1
- package/dist/components/MiniButton/common/ButtonTag.es.js +3 -3
- package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
- package/dist/components/MiniButton/common/index.styled.d.ts +1 -1
- package/dist/components/MiniButton/common/index.styled.es.js +24 -26
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.d.ts +14 -27
- package/dist/components/Modal/index.es.js +99 -9
- package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
- package/dist/components/Navigation/BaseNavigation/index.es.js +14 -14
- package/dist/components/Navigation/BaseNavigation/index.styled.d.ts +8 -8
- package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/BottomNavigationBar/index.es.js +13 -13
- package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/PageNavigationBar/index.es.js +36 -36
- package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/TitleNavigationBar/index.es.js +20 -20
- package/dist/components/Navigation/index.cjs.js +1 -1
- package/dist/components/Navigation/index.es.js +34 -34
- package/dist/components/Navigation/index.styled.d.ts +5 -5
- package/dist/components/OverlayRoot/index.cjs.js +1 -1
- package/dist/components/OverlayRoot/index.es.js +22 -24
- package/dist/components/OverlayRoot/index.styled.d.ts +1 -1
- package/dist/components/Segment/BaseSegment/index.cjs.js +1 -1
- package/dist/components/Segment/BaseSegment/index.es.js +14 -14
- package/dist/components/Segment/BaseSegment/index.styled.d.ts +10 -10
- package/dist/components/Segment/ExtendSegment/index.cjs.js +1 -1
- package/dist/components/Segment/ExtendSegment/index.es.js +19 -19
- package/dist/components/Segment/ExtendSegment/index.styled.d.ts +12 -12
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.es.js +55 -55
- package/dist/components/SelectBox/index.styled.cjs.js +1 -1
- package/dist/components/SelectBox/index.styled.d.ts +8 -8
- package/dist/components/SelectBox/index.styled.es.js +29 -31
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.es.js +32 -34
- package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/TextTabs/index.es.js +38 -40
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.es.js +4 -4
- package/dist/components/Tag/index.styled.cjs.js +1 -1
- package/dist/components/Tag/index.styled.d.ts +2 -2
- package/dist/components/Tag/index.styled.es.js +22 -24
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.es.js +43 -44
- package/dist/components/TextArea/index.cjs.js +1 -0
- package/dist/components/TextArea/index.d.ts +80 -0
- package/dist/components/TextArea/index.es.js +30 -0
- package/dist/components/Title/index.cjs.js +1 -1
- package/dist/components/Title/index.es.js +13 -13
- package/dist/components/Title/index.styled.cjs.js +1 -1
- package/dist/components/Title/index.styled.d.ts +2 -2
- package/dist/components/Title/index.styled.es.js +23 -25
- package/dist/components/Toast/index.cjs.js +1 -0
- package/dist/components/Toast/index.d.ts +5 -0
- package/dist/components/Toast/index.es.js +36 -0
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +5 -3
- package/dist/components/index.es.js +163 -140
- package/dist/components/ui/bottomSheet.cjs.js +13 -13
- package/dist/components/ui/bottomSheet.es.js +97 -97
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.es.js +5 -5
- package/dist/components/ui/checkbox.cjs.js +1 -0
- package/dist/components/ui/checkbox.d.ts +9 -0
- package/dist/components/ui/checkbox.es.js +445 -0
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.es.js +49 -49
- package/dist/components/ui/drawer.cjs.js +2 -2
- package/dist/components/ui/drawer.es.js +218 -218
- package/dist/components/ui/impact-tooltip.cjs.js +1 -0
- package/dist/components/ui/impact-tooltip.d.ts +16 -0
- package/dist/components/ui/impact-tooltip.es.js +343 -0
- package/dist/components/ui/share-ui.cjs.js +1 -1
- package/dist/components/ui/share-ui.d.ts +1 -1
- package/dist/components/ui/share-ui.es.js +34 -34
- package/dist/components/ui/tooltip.cjs.js +1 -0
- package/dist/components/ui/tooltip.d.ts +10 -0
- package/dist/components/ui/tooltip.es.js +388 -0
- package/dist/components/ui/typography.cjs.js +1 -1
- package/dist/components/ui/typography.d.ts +1 -1
- package/dist/components/ui/typography.es.js +5 -5
- package/dist/core/Colors/index.cjs.js +1 -1
- package/dist/core/Colors/index.d.ts +0 -4
- package/dist/core/Colors/index.es.js +4 -8
- package/dist/core/Display/Mobile.cjs.js +1 -1
- package/dist/core/Display/Mobile.es.js +4 -4
- package/dist/core/Display/Pc.cjs.js +1 -1
- package/dist/core/Display/Pc.es.js +4 -4
- package/dist/core/Display/index.styled.cjs.js +1 -1
- package/dist/core/Display/index.styled.d.ts +2 -2
- package/dist/core/Display/index.styled.es.js +23 -25
- package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
- package/dist/core/Typography/BaseTypography/index.d.ts +16 -16
- package/dist/core/Typography/BaseTypography/index.es.js +5 -5
- package/dist/core/Typography/index.cjs.js +1 -1
- package/dist/core/Typography/index.es.js +19 -19
- package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
- package/dist/hooks/useLayoutIsMobile.es.js +23 -25
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +14 -14
- package/dist/icons/src/aliases/aliases.es.js +44 -44
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.es.js +88 -88
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +14 -14
- package/dist/icons/src/aliases/prefixed.es.js +50 -50
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +16 -16
- package/dist/icons/src/aliases/suffixed.es.js +52 -52
- package/dist/icons/src/icons/Alarm_fill.d.ts +1 -1
- package/dist/icons/src/icons/Calendar.d.ts +1 -1
- package/dist/icons/src/icons/Cancel.d.ts +1 -1
- package/dist/icons/src/icons/Cancel_circle.d.ts +1 -1
- package/dist/icons/src/icons/Cart_fill.d.ts +1 -1
- package/dist/icons/src/icons/Check.d.ts +1 -1
- package/dist/icons/src/icons/Chevron_down.d.ts +1 -1
- package/dist/icons/src/icons/Chevron_left.d.ts +1 -1
- package/dist/icons/src/icons/Chevron_right.d.ts +1 -1
- package/dist/icons/src/icons/Chevron_up.d.ts +1 -1
- package/dist/icons/src/icons/Double_Chevron_left.d.ts +1 -1
- package/dist/icons/src/icons/Double_Chevron_right.d.ts +1 -1
- package/dist/icons/src/icons/Eye_fill.d.ts +1 -1
- package/dist/icons/src/icons/Eye_slash_fill.d.ts +1 -1
- package/dist/icons/src/icons/Filter.d.ts +1 -1
- package/dist/icons/src/icons/Information.d.ts +1 -1
- package/dist/icons/src/icons/Menu.d.ts +1 -1
- package/dist/icons/src/icons/More.d.ts +1 -1
- package/dist/icons/src/icons/Person_fill.d.ts +1 -1
- package/dist/icons/src/icons/Plus.d.ts +1 -1
- package/dist/icons/src/icons/Question_circle.d.ts +1 -1
- package/dist/icons/src/icons/Re.d.ts +1 -1
- package/dist/icons/src/icons/Search.d.ts +1 -1
- package/dist/icons/src/icons/Setting_fill.d.ts +1 -1
- package/dist/icons/src/icons/Share.d.ts +1 -1
- package/dist/icons/src/icons/Store.d.ts +1 -1
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.d.ts +15 -15
- package/dist/icons/src/icons/index.es.js +44 -44
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +373 -350
- package/dist/lib/utils.cjs.js +1 -1
- package/dist/lib/utils.es.js +2729 -2
- package/dist/library/BasicForm/index.cjs.js +1 -1
- package/dist/library/BasicForm/index.es.js +11 -11
- package/dist/library/BasicLayout/Body.cjs.js +1 -1
- package/dist/library/BasicLayout/Body.es.js +7 -7
- package/dist/library/BasicLayout/Footer.cjs.js +1 -1
- package/dist/library/BasicLayout/Footer.d.ts +2 -2
- package/dist/library/BasicLayout/Footer.es.js +85 -84
- package/dist/library/BasicLayout/index.cjs.js +1 -1
- package/dist/library/BasicLayout/index.d.ts +21 -21
- package/dist/library/BasicLayout/index.es.js +58 -60
- package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
- package/dist/library/BasicLayout/index.styled.d.ts +21 -21
- package/dist/library/BasicLayout/index.styled.es.js +51 -53
- package/dist/library/Flex/index.styled.d.ts +3 -3
- package/dist/library/IconWithImage/index.cjs.js +1 -1
- package/dist/library/IconWithImage/index.es.js +4 -4
- package/dist/library/IconWithImage/index.styled.d.ts +1 -1
- package/dist/library/List/BottomSheetItemList/index.cjs.js +1 -1
- package/dist/library/List/BottomSheetItemList/index.es.js +5 -5
- package/dist/library/List/BottomSheetItemList/index.styled.d.ts +1 -1
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.es.js +55 -55
- package/dist/library/Lottie/index.styled.d.ts +3 -3
- package/dist/library/Spacing/index.cjs.js +1 -1
- package/dist/library/Spacing/index.es.js +3 -3
- package/dist/library/Spacing/index.styled.d.ts +2 -2
- package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/chip.es.js +2 -2
- package/dist/utils/GenerateColorStyle/index.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/index.es.js +8 -8
- package/dist/utils/GenerateColorStyle/tab/fill-tabs.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/tab/fill-tabs.es.js +23 -25
- package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +23 -25
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +8 -8
- package/package.json +19 -12
- package/dist/chunks/index.B7ToLlZV.js +0 -1242
- package/dist/chunks/index.BUYroSWi.js +0 -1
- package/dist/chunks/index.CycwZAWT.js +0 -67
- package/dist/chunks/index.D2Ren1qk.js +0 -45
- package/dist/chunks/index.DnJQUgiG.js +0 -1
- package/dist/chunks/index.styled.D12n8i_w.js +0 -398
- package/dist/chunks/utils.B9KdtH6G.js +0 -2493
- package/dist/chunks/utils.Gb5_Gcy7.js +0 -1
- package/dist/components/Control/CheckBox/CheckIcon.cjs.js +0 -1
- package/dist/components/Control/CheckBox/CheckIcon.d.ts +0 -6
- package/dist/components/Control/CheckBox/CheckIcon.es.js +0 -26
- package/dist/components/Control/CheckBox/index.cjs.js +0 -1
- package/dist/components/Control/CheckBox/index.d.ts +0 -12
- package/dist/components/Control/CheckBox/index.es.js +0 -97
- package/dist/components/Control/CheckBox/index.styled.cjs.js +0 -24
- package/dist/components/Control/CheckBox/index.styled.d.ts +0 -18
- package/dist/components/Control/CheckBox/index.styled.es.js +0 -30
- package/dist/components/Control/Switch/index.styled.cjs.js +0 -32
- package/dist/components/Control/Switch/index.styled.d.ts +0 -15
- package/dist/components/Control/Switch/index.styled.es.js +0 -42
- package/dist/components/Modal/BaseModal/index.cjs.js +0 -1
- package/dist/components/Modal/BaseModal/index.es.js +0 -8
- package/dist/components/Modal/BaseModal/index.styled.d.ts +0 -6
- package/dist/components/Modal/index.styled.cjs.js +0 -35
- package/dist/components/Modal/index.styled.d.ts +0 -26
- package/dist/components/Modal/index.styled.es.js +0 -47
- package/dist/components/ToastMessage/BaseToastMessage/index.cjs.js +0 -1
- package/dist/components/ToastMessage/BaseToastMessage/index.d.ts +0 -13
- package/dist/components/ToastMessage/BaseToastMessage/index.es.js +0 -25
- package/dist/components/ToastMessage/BaseToastMessage/index.styled.cjs.js +0 -1
- package/dist/components/ToastMessage/BaseToastMessage/index.styled.d.ts +0 -10
- package/dist/components/ToastMessage/BaseToastMessage/index.styled.es.js +0 -81
- package/dist/components/ToastMessage/Toast/index.cjs.js +0 -1
- package/dist/components/ToastMessage/Toast/index.d.ts +0 -13
- package/dist/components/ToastMessage/Toast/index.es.js +0 -32
- package/dist/components/ToastMessage/Toast/index.styled.cjs.js +0 -13
- package/dist/components/ToastMessage/Toast/index.styled.d.ts +0 -8
- package/dist/components/ToastMessage/Toast/index.styled.es.js +0 -18
- package/dist/components/ToastMessage/index.cjs.js +0 -1
- package/dist/components/ToastMessage/index.d.ts +0 -1
- package/dist/components/ToastMessage/index.es.js +0 -4
- package/dist/components/Tooltip/BasicTooltip/index.cjs.js +0 -1
- package/dist/components/Tooltip/BasicTooltip/index.d.ts +0 -5
- package/dist/components/Tooltip/BasicTooltip/index.es.js +0 -6
- package/dist/components/Tooltip/ImpactTooltip/index.cjs.js +0 -1
- package/dist/components/Tooltip/ImpactTooltip/index.d.ts +0 -7
- package/dist/components/Tooltip/ImpactTooltip/index.es.js +0 -23
- package/dist/components/Tooltip/TooltipBase/index.cjs.js +0 -8
- package/dist/components/Tooltip/TooltipBase/index.d.ts +0 -18
- package/dist/components/Tooltip/TooltipBase/index.es.js +0 -146
- package/dist/components/Tooltip/TooltipBase/index.styled.cjs.js +0 -107
- package/dist/components/Tooltip/TooltipBase/index.styled.d.ts +0 -22
- package/dist/components/Tooltip/TooltipBase/index.styled.es.js +0 -2006
- package/dist/components/Tooltip/index.cjs.js +0 -1
- package/dist/components/Tooltip/index.d.ts +0 -6
- package/dist/components/Tooltip/index.es.js +0 -6
- /package/dist/components/{Modal → LegacyModal}/BaseModal/index.d.ts +0 -0
- /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.cjs.js +0 -0
- /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.es.js +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as
|
|
3
|
-
import * as
|
|
4
|
-
import r, { useMemo as
|
|
5
|
-
import {
|
|
6
|
-
function
|
|
1
|
+
import { j as z } from "../../chunks/jsx-runtime.OVHDjVDe.js";
|
|
2
|
+
import { O as he, a as ge, b as ve, C as ye, T as be, D as Se, R as Te, P as Re } from "../../chunks/index.z1-FwbyF.js";
|
|
3
|
+
import * as De from "react";
|
|
4
|
+
import r, { useMemo as Ee, useLayoutEffect as xe, useEffect as Oe } from "react";
|
|
5
|
+
import { cn as ot } from "../../lib/utils.es.js";
|
|
6
|
+
function Ce(t) {
|
|
7
7
|
if (typeof document > "u") return;
|
|
8
8
|
let n = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
|
|
9
9
|
e.type = "text/css", n.appendChild(e), e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const Vt = r.createContext({
|
|
12
12
|
drawerRef: {
|
|
13
13
|
current: null
|
|
14
14
|
},
|
|
@@ -55,57 +55,57 @@ const jt = r.createContext({
|
|
|
55
55
|
noBodyStyles: !1,
|
|
56
56
|
container: null,
|
|
57
57
|
autoFocus: !1
|
|
58
|
-
}),
|
|
59
|
-
const t = r.useContext(
|
|
58
|
+
}), mt = () => {
|
|
59
|
+
const t = r.useContext(Vt);
|
|
60
60
|
if (!t)
|
|
61
61
|
throw new Error("useDrawerContext must be used within a Drawer.Root");
|
|
62
62
|
return t;
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
Ce(`[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(
|
|
65
65
|
[data-state=closed]
|
|
66
66
|
){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)}}`);
|
|
67
|
-
function
|
|
67
|
+
function $e() {
|
|
68
68
|
const t = navigator.userAgent;
|
|
69
69
|
return typeof window < "u" && (/Firefox/.test(t) && /Mobile/.test(t) || // Android Firefox
|
|
70
70
|
/FxiOS/.test(t));
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Ae() {
|
|
73
73
|
return At(/^Mac/);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Me() {
|
|
76
76
|
return At(/^iPhone/);
|
|
77
77
|
}
|
|
78
78
|
function Ft() {
|
|
79
79
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Pe() {
|
|
82
82
|
return At(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
83
|
-
|
|
83
|
+
Ae() && navigator.maxTouchPoints > 1;
|
|
84
84
|
}
|
|
85
85
|
function Yt() {
|
|
86
|
-
return
|
|
86
|
+
return Me() || Pe();
|
|
87
87
|
}
|
|
88
88
|
function At(t) {
|
|
89
89
|
return typeof window < "u" && window.navigator != null ? t.test(window.navigator.platform) : void 0;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
92
|
-
function
|
|
91
|
+
const Ie = 24, Ne = typeof window < "u" ? xe : Oe;
|
|
92
|
+
function jt(...t) {
|
|
93
93
|
return (...n) => {
|
|
94
94
|
for (let e of t)
|
|
95
95
|
typeof e == "function" && e(...n);
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
function
|
|
98
|
+
const Dt = typeof document < "u" && window.visualViewport;
|
|
99
|
+
function Wt(t) {
|
|
100
100
|
let n = window.getComputedStyle(t);
|
|
101
101
|
return /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
|
|
102
102
|
}
|
|
103
103
|
function qt(t) {
|
|
104
|
-
for (
|
|
104
|
+
for (Wt(t) && (t = t.parentElement); t && !Wt(t); )
|
|
105
105
|
t = t.parentElement;
|
|
106
106
|
return t || document.scrollingElement || document.documentElement;
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const _e = /* @__PURE__ */ new Set([
|
|
109
109
|
"checkbox",
|
|
110
110
|
"radio",
|
|
111
111
|
"range",
|
|
@@ -116,19 +116,19 @@ const He = /* @__PURE__ */ new Set([
|
|
|
116
116
|
"submit",
|
|
117
117
|
"reset"
|
|
118
118
|
]);
|
|
119
|
-
let
|
|
120
|
-
function
|
|
119
|
+
let gt = 0, Et;
|
|
120
|
+
function He(t = {}) {
|
|
121
121
|
let { isDisabled: n } = t;
|
|
122
|
-
|
|
122
|
+
Ne(() => {
|
|
123
123
|
if (!n)
|
|
124
|
-
return
|
|
125
|
-
|
|
124
|
+
return gt++, gt === 1 && Yt() && (Et = Le()), () => {
|
|
125
|
+
gt--, gt === 0 && (Et == null || Et());
|
|
126
126
|
};
|
|
127
127
|
}, [
|
|
128
128
|
n
|
|
129
129
|
]);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Le() {
|
|
132
132
|
let t, n = 0, e = (f) => {
|
|
133
133
|
t = qt(f.target), !(t === document.documentElement && t === document.body) && (n = f.changedTouches[0].pageY);
|
|
134
134
|
}, o = (f) => {
|
|
@@ -146,64 +146,64 @@ function ke() {
|
|
|
146
146
|
}, a = (f) => {
|
|
147
147
|
let m = f.target;
|
|
148
148
|
Ct(m) && (m.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
149
|
-
m.style.transform = "",
|
|
150
|
-
|
|
151
|
-
}) :
|
|
149
|
+
m.style.transform = "", Dt && (Dt.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
150
|
+
zt(m);
|
|
151
|
+
}) : Dt.addEventListener("resize", () => zt(m), {
|
|
152
152
|
once: !0
|
|
153
153
|
}));
|
|
154
154
|
}));
|
|
155
155
|
}, v = () => {
|
|
156
156
|
window.scrollTo(0, 0);
|
|
157
|
-
}, p = window.pageXOffset, T = window.pageYOffset,
|
|
157
|
+
}, p = window.pageXOffset, T = window.pageYOffset, D = jt(ke(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
158
158
|
window.scrollTo(0, 0);
|
|
159
|
-
let h =
|
|
159
|
+
let h = jt(dt(document, "touchstart", e, {
|
|
160
160
|
passive: !1,
|
|
161
161
|
capture: !0
|
|
162
|
-
}),
|
|
162
|
+
}), dt(document, "touchmove", o, {
|
|
163
163
|
passive: !1,
|
|
164
164
|
capture: !0
|
|
165
|
-
}),
|
|
165
|
+
}), dt(document, "touchend", i, {
|
|
166
166
|
passive: !1,
|
|
167
167
|
capture: !0
|
|
168
|
-
}),
|
|
168
|
+
}), dt(document, "focus", a, !0), dt(window, "scroll", v));
|
|
169
169
|
return () => {
|
|
170
|
-
|
|
170
|
+
D(), h(), window.scrollTo(p, T);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function ke(t, n, e) {
|
|
174
174
|
let o = t.style[n];
|
|
175
175
|
return t.style[n] = e, () => {
|
|
176
176
|
t.style[n] = o;
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function dt(t, n, e, o) {
|
|
180
180
|
return t.addEventListener(n, e, o), () => {
|
|
181
181
|
t.removeEventListener(n, e, o);
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function zt(t) {
|
|
185
185
|
let n = document.scrollingElement || document.documentElement;
|
|
186
186
|
for (; t && t !== n; ) {
|
|
187
187
|
let e = qt(t);
|
|
188
188
|
if (e !== document.documentElement && e !== document.body && e !== t) {
|
|
189
189
|
let o = e.getBoundingClientRect().top, i = t.getBoundingClientRect().top, a = t.getBoundingClientRect().bottom;
|
|
190
|
-
const v = e.getBoundingClientRect().bottom +
|
|
190
|
+
const v = e.getBoundingClientRect().bottom + Ie;
|
|
191
191
|
a > v && (e.scrollTop += i - o);
|
|
192
192
|
}
|
|
193
193
|
t = e.parentElement;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
function Ct(t) {
|
|
197
|
-
return t instanceof HTMLInputElement && !
|
|
197
|
+
return t instanceof HTMLInputElement && !_e.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Be(t, n) {
|
|
200
200
|
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
return (n) => t.forEach((e) =>
|
|
202
|
+
function Ue(...t) {
|
|
203
|
+
return (n) => t.forEach((e) => Be(e, n));
|
|
204
204
|
}
|
|
205
205
|
function Xt(...t) {
|
|
206
|
-
return
|
|
206
|
+
return De.useCallback(Ue(...t), t);
|
|
207
207
|
}
|
|
208
208
|
const Kt = /* @__PURE__ */ new WeakMap();
|
|
209
209
|
function $(t, n, e = !1) {
|
|
@@ -217,7 +217,7 @@ function $(t, n, e = !1) {
|
|
|
217
217
|
o[i] = t.style[i], t.style[i] = a;
|
|
218
218
|
}), !e && Kt.set(t, o);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Fe(t, n) {
|
|
221
221
|
if (!t || !(t instanceof HTMLElement)) return;
|
|
222
222
|
let e = Kt.get(t);
|
|
223
223
|
e && (t.style[n] = e[n]);
|
|
@@ -234,7 +234,7 @@ const C = (t) => {
|
|
|
234
234
|
return t;
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
|
-
function
|
|
237
|
+
function vt(t, n) {
|
|
238
238
|
if (!t)
|
|
239
239
|
return null;
|
|
240
240
|
const e = window.getComputedStyle(t), o = (
|
|
@@ -244,7 +244,7 @@ function gt(t, n) {
|
|
|
244
244
|
let i = o.match(/^matrix3d\((.+)\)$/);
|
|
245
245
|
return i ? parseFloat(i[1].split(", ")[C(n) ? 13 : 12]) : (i = o.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[C(n) ? 5 : 4]) : null);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function je(t) {
|
|
248
248
|
return 8 * (Math.log(t + 1) - 2);
|
|
249
249
|
}
|
|
250
250
|
function xt(t, n) {
|
|
@@ -255,7 +255,7 @@ function xt(t, n) {
|
|
|
255
255
|
t.style.cssText = e;
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function We(...t) {
|
|
259
259
|
return (...n) => {
|
|
260
260
|
for (const e of t)
|
|
261
261
|
typeof e == "function" && e(...n);
|
|
@@ -269,14 +269,14 @@ const x = {
|
|
|
269
269
|
0,
|
|
270
270
|
1
|
|
271
271
|
]
|
|
272
|
-
}, Gt = 0.4,
|
|
272
|
+
}, Gt = 0.4, ze = 0.25, Ve = 100, Jt = 8, et = 16, $t = 26, Ot = "vaul-dragging";
|
|
273
273
|
function Qt(t) {
|
|
274
274
|
const n = r.useRef(t);
|
|
275
275
|
return r.useEffect(() => {
|
|
276
276
|
n.current = t;
|
|
277
277
|
}), r.useMemo(() => (...e) => n.current == null ? void 0 : n.current.call(n, ...e), []);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Ye({ defaultProp: t, onChange: n }) {
|
|
280
280
|
const e = r.useState(t), [o] = e, i = r.useRef(o), a = Qt(n);
|
|
281
281
|
return r.useEffect(() => {
|
|
282
282
|
i.current !== o && (a(o), i.current = o);
|
|
@@ -288,15 +288,15 @@ function qe({ defaultProp: t, onChange: n }) {
|
|
|
288
288
|
}
|
|
289
289
|
function Zt({ prop: t, defaultProp: n, onChange: e = () => {
|
|
290
290
|
} }) {
|
|
291
|
-
const [o, i] =
|
|
291
|
+
const [o, i] = Ye({
|
|
292
292
|
defaultProp: n,
|
|
293
293
|
onChange: e
|
|
294
|
-
}), a = t !== void 0, v = a ? t : o, p = Qt(e), T = r.useCallback((
|
|
294
|
+
}), a = t !== void 0, v = a ? t : o, p = Qt(e), T = r.useCallback((D) => {
|
|
295
295
|
if (a) {
|
|
296
|
-
const f = typeof
|
|
296
|
+
const f = typeof D == "function" ? D(t) : D;
|
|
297
297
|
f !== t && p(f);
|
|
298
298
|
} else
|
|
299
|
-
i(
|
|
299
|
+
i(D);
|
|
300
300
|
}, [
|
|
301
301
|
a,
|
|
302
302
|
t,
|
|
@@ -308,7 +308,7 @@ function Zt({ prop: t, defaultProp: n, onChange: e = () => {
|
|
|
308
308
|
T
|
|
309
309
|
];
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function qe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e, drawerRef: o, overlayRef: i, fadeFromIndex: a, onSnapPointChange: v, direction: p = "bottom", container: T, snapToSequentialPoint: D }) {
|
|
312
312
|
const [h, f] = Zt({
|
|
313
313
|
prop: t,
|
|
314
314
|
defaultProp: e == null ? void 0 : e[0],
|
|
@@ -354,8 +354,8 @@ function Xe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
|
|
|
354
354
|
const s = N ? P : m ? y * u.height : 0;
|
|
355
355
|
return m ? p === "bottom" ? u.height - s : -u.height + s : s;
|
|
356
356
|
}
|
|
357
|
-
const
|
|
358
|
-
return m ? p === "right" ? u.width -
|
|
357
|
+
const j = N ? P : m ? y * u.width : 0;
|
|
358
|
+
return m ? p === "right" ? u.width - j : -u.width + j : j;
|
|
359
359
|
})) != null ? b : [];
|
|
360
360
|
}, [
|
|
361
361
|
e,
|
|
@@ -400,19 +400,19 @@ function Xe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
|
|
|
400
400
|
]);
|
|
401
401
|
function c({ draggedDistance: u, closeDrawer: b, velocity: y, dismissible: N }) {
|
|
402
402
|
if (a === void 0) return;
|
|
403
|
-
const P = p === "bottom" || p === "right" ? (M ?? 0) - u : (M ?? 0) + u,
|
|
404
|
-
if (
|
|
403
|
+
const P = p === "bottom" || p === "right" ? (M ?? 0) - u : (M ?? 0) + u, j = E === a - 1, s = E === 0, F = u > 0;
|
|
404
|
+
if (j && $(i.current, {
|
|
405
405
|
transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`
|
|
406
|
-
}), !
|
|
406
|
+
}), !D && y > 2 && !F) {
|
|
407
407
|
N ? b() : A(w[0]);
|
|
408
408
|
return;
|
|
409
409
|
}
|
|
410
|
-
if (!
|
|
410
|
+
if (!D && y > 2 && F && w && e) {
|
|
411
411
|
A(w[e.length - 1]);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
|
-
const _ = w == null ? void 0 : w.reduce((I, X) => typeof I != "number" || typeof X != "number" ? I : Math.abs(X - P) < Math.abs(I - P) ? X : I),
|
|
415
|
-
if (y > Gt && Math.abs(u) <
|
|
414
|
+
const _ = w == null ? void 0 : w.reduce((I, X) => typeof I != "number" || typeof X != "number" ? I : Math.abs(X - P) < Math.abs(I - P) ? X : I), W = C(p) ? window.innerHeight : window.innerWidth;
|
|
415
|
+
if (y > Gt && Math.abs(u) < W * 0.4) {
|
|
416
416
|
const I = F ? 1 : -1;
|
|
417
417
|
if (I > 0 && L && e) {
|
|
418
418
|
A(w[e.length - 1]);
|
|
@@ -438,7 +438,7 @@ function Xe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
|
|
|
438
438
|
return 0;
|
|
439
439
|
if (y && !b) return 1;
|
|
440
440
|
if (!U && !y) return null;
|
|
441
|
-
const P = y ? E + 1 : E - 1,
|
|
441
|
+
const P = y ? E + 1 : E - 1, j = y ? w[P] - w[P - 1] : w[P + 1] - w[P], s = u / Math.abs(j);
|
|
442
442
|
return y ? 1 - s : s;
|
|
443
443
|
}
|
|
444
444
|
return {
|
|
@@ -453,10 +453,10 @@ function Xe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
|
|
|
453
453
|
snapPointsOffset: w
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
const
|
|
456
|
+
const Xe = () => () => {
|
|
457
457
|
};
|
|
458
|
-
function
|
|
459
|
-
const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: o, noBodyStyles: i } =
|
|
458
|
+
function Ke() {
|
|
459
|
+
const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: o, noBodyStyles: i } = mt(), a = r.useRef(null), v = Ee(() => document.body.style.backgroundColor, []);
|
|
460
460
|
function p() {
|
|
461
461
|
return (window.innerWidth - $t) / window.innerWidth;
|
|
462
462
|
}
|
|
@@ -465,15 +465,15 @@ function Ge() {
|
|
|
465
465
|
a.current && clearTimeout(a.current);
|
|
466
466
|
const T = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
|
467
467
|
if (!T) return;
|
|
468
|
-
|
|
468
|
+
We(o && !i ? xt(document.body, {
|
|
469
469
|
background: "black"
|
|
470
|
-
}) :
|
|
470
|
+
}) : Xe, xt(T, {
|
|
471
471
|
transformOrigin: C(t) ? "top" : "left",
|
|
472
472
|
transitionProperty: "transform, border-radius",
|
|
473
473
|
transitionDuration: `${x.DURATION}s`,
|
|
474
474
|
transitionTimingFunction: `cubic-bezier(${x.EASE.join(",")})`
|
|
475
475
|
}));
|
|
476
|
-
const
|
|
476
|
+
const D = xt(T, {
|
|
477
477
|
borderRadius: `${Jt}px`,
|
|
478
478
|
overflow: "hidden",
|
|
479
479
|
...C(t) ? {
|
|
@@ -483,7 +483,7 @@ function Ge() {
|
|
|
483
483
|
}
|
|
484
484
|
});
|
|
485
485
|
return () => {
|
|
486
|
-
|
|
486
|
+
D(), a.current = window.setTimeout(() => {
|
|
487
487
|
v ? document.body.style.background = v : document.body.style.removeProperty("background");
|
|
488
488
|
}, x.DURATION * 1e3);
|
|
489
489
|
};
|
|
@@ -494,11 +494,11 @@ function Ge() {
|
|
|
494
494
|
v
|
|
495
495
|
]);
|
|
496
496
|
}
|
|
497
|
-
let
|
|
498
|
-
function
|
|
499
|
-
const [v, p] = r.useState(() => typeof window < "u" ? window.location.href : ""), T = r.useRef(0),
|
|
500
|
-
if (Ft() &&
|
|
501
|
-
|
|
497
|
+
let ft = null;
|
|
498
|
+
function Ge({ isOpen: t, modal: n, nested: e, hasBeenOpened: o, preventScrollRestoration: i, noBodyStyles: a }) {
|
|
499
|
+
const [v, p] = r.useState(() => typeof window < "u" ? window.location.href : ""), T = r.useRef(0), D = r.useCallback(() => {
|
|
500
|
+
if (Ft() && ft === null && t && !a) {
|
|
501
|
+
ft = {
|
|
502
502
|
position: document.body.style.position,
|
|
503
503
|
top: document.body.style.top,
|
|
504
504
|
left: document.body.style.left,
|
|
@@ -519,15 +519,15 @@ function Je({ isOpen: t, modal: n, nested: e, hasBeenOpened: o, preventScrollRes
|
|
|
519
519
|
}, [
|
|
520
520
|
t
|
|
521
521
|
]), h = r.useCallback(() => {
|
|
522
|
-
if (Ft() &&
|
|
522
|
+
if (Ft() && ft !== null && !a) {
|
|
523
523
|
const f = -parseInt(document.body.style.top, 10), m = -parseInt(document.body.style.left, 10);
|
|
524
|
-
Object.assign(document.body.style,
|
|
524
|
+
Object.assign(document.body.style, ft), window.requestAnimationFrame(() => {
|
|
525
525
|
if (i && v !== window.location.href) {
|
|
526
526
|
p(window.location.href);
|
|
527
527
|
return;
|
|
528
528
|
}
|
|
529
529
|
window.scrollTo(m, f);
|
|
530
|
-
}),
|
|
530
|
+
}), ft = null;
|
|
531
531
|
}
|
|
532
532
|
}, [
|
|
533
533
|
v
|
|
@@ -548,7 +548,7 @@ function Je({ isOpen: t, modal: n, nested: e, hasBeenOpened: o, preventScrollRes
|
|
|
548
548
|
n,
|
|
549
549
|
h
|
|
550
550
|
]), r.useEffect(() => {
|
|
551
|
-
e || !o || (t ? (!window.matchMedia("(display-mode: standalone)").matches &&
|
|
551
|
+
e || !o || (t ? (!window.matchMedia("(display-mode: standalone)").matches && D(), n || window.setTimeout(() => {
|
|
552
552
|
h();
|
|
553
553
|
}, 500)) : h());
|
|
554
554
|
}, [
|
|
@@ -557,15 +557,15 @@ function Je({ isOpen: t, modal: n, nested: e, hasBeenOpened: o, preventScrollRes
|
|
|
557
557
|
v,
|
|
558
558
|
n,
|
|
559
559
|
e,
|
|
560
|
-
|
|
560
|
+
D,
|
|
561
561
|
h
|
|
562
562
|
]), {
|
|
563
563
|
restorePositionSetting: h
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, snapPoints: a, shouldScaleBackground: v = !1, setBackgroundColorOnScale: p = !0, closeThreshold: T = ze, scrollLockTimeout: D = Ve, dismissible: h = !0, handleOnly: f = !1, fadeFromIndex: m = a && a.length - 1, activeSnapPoint: B, setActiveSnapPoint: L, fixed: E, modal: U = !0, onClose: w, nested: M, noBodyStyles: A = !1, direction: c = "bottom", defaultOpen: Y = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: u = !1, preventScrollRestoration: b = !1, repositionInputs: y = !0, onAnimationEnd: N, container: P, autoFocus: j = !1 }) {
|
|
567
567
|
var s, F;
|
|
568
|
-
const [_ = !1,
|
|
568
|
+
const [_ = !1, W] = Zt({
|
|
569
569
|
defaultProp: Y,
|
|
570
570
|
prop: t,
|
|
571
571
|
onChange: (l) => {
|
|
@@ -575,24 +575,24 @@ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
|
|
|
575
575
|
document.body.style.pointerEvents = "auto";
|
|
576
576
|
}), l || (document.body.style.pointerEvents = "auto");
|
|
577
577
|
}
|
|
578
|
-
}), [I, X] = r.useState(!1), [K,
|
|
579
|
-
a && l ===
|
|
580
|
-
}, []), { activeSnapPoint: ae, activeSnapPointIndex:
|
|
578
|
+
}), [I, X] = r.useState(!1), [K, it] = r.useState(!1), [ne, Mt] = r.useState(!1), nt = r.useRef(null), wt = r.useRef(null), yt = r.useRef(null), bt = r.useRef(null), lt = r.useRef(null), st = r.useRef(!1), St = r.useRef(null), Tt = r.useRef(0), rt = r.useRef(!1), Pt = r.useRef(!Y), It = r.useRef(0), d = r.useRef(null), Nt = r.useRef(((s = d.current) == null ? void 0 : s.getBoundingClientRect().height) || 0), _t = r.useRef(((F = d.current) == null ? void 0 : F.getBoundingClientRect().width) || 0), Rt = r.useRef(0), re = r.useCallback((l) => {
|
|
579
|
+
a && l === ut.length - 1 && (wt.current = /* @__PURE__ */ new Date());
|
|
580
|
+
}, []), { activeSnapPoint: ae, activeSnapPointIndex: at, setActiveSnapPoint: Ht, onRelease: oe, snapPointsOffset: ut, onDrag: ie, shouldFade: Lt, getPercentageDragged: le } = qe({
|
|
581
581
|
snapPoints: a,
|
|
582
582
|
activeSnapPointProp: B,
|
|
583
583
|
setActiveSnapPointProp: L,
|
|
584
584
|
drawerRef: d,
|
|
585
585
|
fadeFromIndex: m,
|
|
586
|
-
overlayRef:
|
|
586
|
+
overlayRef: nt,
|
|
587
587
|
onSnapPointChange: re,
|
|
588
588
|
direction: c,
|
|
589
589
|
container: P,
|
|
590
590
|
snapToSequentialPoint: u
|
|
591
591
|
});
|
|
592
|
-
|
|
592
|
+
He({
|
|
593
593
|
isDisabled: !_ || K || !U || ne || !I || !y || !Z
|
|
594
594
|
});
|
|
595
|
-
const { restorePositionSetting: se } =
|
|
595
|
+
const { restorePositionSetting: se } = Ge({
|
|
596
596
|
isOpen: _,
|
|
597
597
|
modal: U,
|
|
598
598
|
nested: M ?? !1,
|
|
@@ -600,35 +600,35 @@ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
|
|
|
600
600
|
preventScrollRestoration: b,
|
|
601
601
|
noBodyStyles: A
|
|
602
602
|
});
|
|
603
|
-
function
|
|
603
|
+
function pt() {
|
|
604
604
|
return (window.innerWidth - $t) / window.innerWidth;
|
|
605
605
|
}
|
|
606
606
|
function ue(l) {
|
|
607
|
-
var S,
|
|
608
|
-
!h && !a || d.current && !d.current.contains(l.target) || (Nt.current = ((S = d.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, _t.current = ((
|
|
607
|
+
var S, R;
|
|
608
|
+
!h && !a || d.current && !d.current.contains(l.target) || (Nt.current = ((S = d.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, _t.current = ((R = d.current) == null ? void 0 : R.getBoundingClientRect().width) || 0, it(!0), yt.current = /* @__PURE__ */ new Date(), Yt() && window.addEventListener("touchend", () => st.current = !1, {
|
|
609
609
|
once: !0
|
|
610
610
|
}), l.target.setPointerCapture(l.pointerId), Tt.current = C(c) ? l.pageY : l.pageX);
|
|
611
611
|
}
|
|
612
612
|
function kt(l, S) {
|
|
613
|
-
var
|
|
613
|
+
var R;
|
|
614
614
|
let g = l;
|
|
615
|
-
const O = (
|
|
615
|
+
const O = (R = window.getSelection()) == null ? void 0 : R.toString(), k = d.current ? vt(d.current, c) : null, H = /* @__PURE__ */ new Date();
|
|
616
616
|
if (g.tagName === "SELECT" || g.hasAttribute("data-vaul-no-drag") || g.closest("[data-vaul-no-drag]"))
|
|
617
617
|
return !1;
|
|
618
618
|
if (c === "right" || c === "left")
|
|
619
619
|
return !0;
|
|
620
|
-
if (
|
|
620
|
+
if (wt.current && H.getTime() - wt.current.getTime() < 500)
|
|
621
621
|
return !1;
|
|
622
622
|
if (k !== null && (c === "bottom" ? k > 0 : k < 0))
|
|
623
623
|
return !0;
|
|
624
624
|
if (O && O.length > 0)
|
|
625
625
|
return !1;
|
|
626
|
-
if (
|
|
627
|
-
return
|
|
626
|
+
if (lt.current && H.getTime() - lt.current.getTime() < D && k === 0 || S)
|
|
627
|
+
return lt.current = H, !1;
|
|
628
628
|
for (; g; ) {
|
|
629
629
|
if (g.scrollHeight > g.clientHeight) {
|
|
630
630
|
if (g.scrollTop !== 0)
|
|
631
|
-
return
|
|
631
|
+
return lt.current = /* @__PURE__ */ new Date(), !1;
|
|
632
632
|
if (g.getAttribute("role") === "dialog")
|
|
633
633
|
return !0;
|
|
634
634
|
}
|
|
@@ -638,33 +638,33 @@ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
|
|
|
638
638
|
}
|
|
639
639
|
function ce(l) {
|
|
640
640
|
if (d.current && K) {
|
|
641
|
-
const S = c === "bottom" || c === "right" ? 1 : -1,
|
|
642
|
-
if (O &&
|
|
643
|
-
const k = Math.abs(
|
|
641
|
+
const S = c === "bottom" || c === "right" ? 1 : -1, R = (Tt.current - (C(c) ? l.pageY : l.pageX)) * S, g = R > 0, O = a && !h && !g;
|
|
642
|
+
if (O && at === 0) return;
|
|
643
|
+
const k = Math.abs(R), H = document.querySelector("[data-vaul-drawer-wrapper]"), G = c === "bottom" || c === "top" ? Nt.current : _t.current;
|
|
644
644
|
let V = k / G;
|
|
645
645
|
const tt = le(k, g);
|
|
646
|
-
if (tt !== null && (V = tt), O && V >= 1 || !
|
|
647
|
-
if (d.current.classList.add(Ot),
|
|
646
|
+
if (tt !== null && (V = tt), O && V >= 1 || !st.current && !kt(l.target, g)) return;
|
|
647
|
+
if (d.current.classList.add(Ot), st.current = !0, $(d.current, {
|
|
648
648
|
transition: "none"
|
|
649
|
-
}), $(
|
|
649
|
+
}), $(nt.current, {
|
|
650
650
|
transition: "none"
|
|
651
651
|
}), a && ie({
|
|
652
|
-
draggedDistance:
|
|
652
|
+
draggedDistance: R
|
|
653
653
|
}), g && !a) {
|
|
654
|
-
const q =
|
|
654
|
+
const q = je(R), ht = Math.min(q * -1, 0) * S;
|
|
655
655
|
$(d.current, {
|
|
656
|
-
transform: C(c) ? `translate3d(0, ${
|
|
656
|
+
transform: C(c) ? `translate3d(0, ${ht}px, 0)` : `translate3d(${ht}px, 0, 0)`
|
|
657
657
|
});
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
660
660
|
const J = 1 - V;
|
|
661
|
-
if ((Lt || m &&
|
|
661
|
+
if ((Lt || m && at === m - 1) && (o == null || o(l, V), $(nt.current, {
|
|
662
662
|
opacity: `${J}`,
|
|
663
663
|
transition: "none"
|
|
664
|
-
}, !0)), H &&
|
|
665
|
-
const q = Math.min(
|
|
664
|
+
}, !0)), H && nt.current && v) {
|
|
665
|
+
const q = Math.min(pt() + V * (1 - pt()), 1), ht = 8 - V * 8, Ut = Math.max(0, 14 - V * 14);
|
|
666
666
|
$(H, {
|
|
667
|
-
borderRadius: `${
|
|
667
|
+
borderRadius: `${ht}px`,
|
|
668
668
|
transform: C(c) ? `scale(${q}) translate3d(0, ${Ut}px, 0)` : `scale(${q}) translate3d(${Ut}px, 0, 0)`,
|
|
669
669
|
transition: "none"
|
|
670
670
|
}, !0);
|
|
@@ -685,57 +685,57 @@ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
|
|
|
685
685
|
var l;
|
|
686
686
|
function S() {
|
|
687
687
|
if (!d.current || !y) return;
|
|
688
|
-
const
|
|
689
|
-
if (Ct(
|
|
688
|
+
const R = document.activeElement;
|
|
689
|
+
if (Ct(R) || rt.current) {
|
|
690
690
|
var g;
|
|
691
691
|
const O = ((g = window.visualViewport) == null ? void 0 : g.height) || 0, k = window.innerHeight;
|
|
692
692
|
let H = k - O;
|
|
693
693
|
const G = d.current.getBoundingClientRect().height || 0, V = G > k * 0.8;
|
|
694
|
-
|
|
694
|
+
Rt.current || (Rt.current = G);
|
|
695
695
|
const tt = d.current.getBoundingClientRect().top;
|
|
696
|
-
if (Math.abs(It.current - H) > 60 && (
|
|
697
|
-
const J =
|
|
696
|
+
if (Math.abs(It.current - H) > 60 && (rt.current = !rt.current), a && a.length > 0 && ut && at) {
|
|
697
|
+
const J = ut[at] || 0;
|
|
698
698
|
H += J;
|
|
699
699
|
}
|
|
700
|
-
if (It.current = H, G > O ||
|
|
700
|
+
if (It.current = H, G > O || rt.current) {
|
|
701
701
|
const J = d.current.getBoundingClientRect().height;
|
|
702
702
|
let q = J;
|
|
703
703
|
J > O && (q = O - (V ? tt : $t)), E ? d.current.style.height = `${J - Math.max(H, 0)}px` : d.current.style.height = `${Math.max(q, O - tt)}px`;
|
|
704
|
-
} else
|
|
705
|
-
a && a.length > 0 && !
|
|
704
|
+
} else $e() || (d.current.style.height = `${Rt.current}px`);
|
|
705
|
+
a && a.length > 0 && !rt.current ? d.current.style.bottom = "0px" : d.current.style.bottom = `${Math.max(H, 0)}px`;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
return (l = window.visualViewport) == null || l.addEventListener("resize", S), () => {
|
|
709
|
-
var
|
|
710
|
-
return (
|
|
709
|
+
var R;
|
|
710
|
+
return (R = window.visualViewport) == null ? void 0 : R.removeEventListener("resize", S);
|
|
711
711
|
};
|
|
712
712
|
}, [
|
|
713
|
-
|
|
713
|
+
at,
|
|
714
714
|
a,
|
|
715
|
-
|
|
715
|
+
ut
|
|
716
716
|
]);
|
|
717
|
-
function
|
|
718
|
-
de(), w == null || w(), l ||
|
|
717
|
+
function ct(l) {
|
|
718
|
+
de(), w == null || w(), l || W(!1), setTimeout(() => {
|
|
719
719
|
a && Ht(a[0]);
|
|
720
720
|
}, x.DURATION * 1e3);
|
|
721
721
|
}
|
|
722
722
|
function Bt() {
|
|
723
723
|
if (!d.current) return;
|
|
724
|
-
const l = document.querySelector("[data-vaul-drawer-wrapper]"), S =
|
|
724
|
+
const l = document.querySelector("[data-vaul-drawer-wrapper]"), S = vt(d.current, c);
|
|
725
725
|
$(d.current, {
|
|
726
726
|
transform: "translate3d(0, 0, 0)",
|
|
727
727
|
transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`
|
|
728
|
-
}), $(
|
|
728
|
+
}), $(nt.current, {
|
|
729
729
|
transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
|
|
730
730
|
opacity: "1"
|
|
731
731
|
}), v && S && S > 0 && _ && $(l, {
|
|
732
732
|
borderRadius: `${Jt}px`,
|
|
733
733
|
overflow: "hidden",
|
|
734
734
|
...C(c) ? {
|
|
735
|
-
transform: `scale(${
|
|
735
|
+
transform: `scale(${pt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
736
736
|
transformOrigin: "top"
|
|
737
737
|
} : {
|
|
738
|
-
transform: `scale(${
|
|
738
|
+
transform: `scale(${pt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
|
|
739
739
|
transformOrigin: "left"
|
|
740
740
|
},
|
|
741
741
|
transitionProperty: "transform, border-radius",
|
|
@@ -744,20 +744,20 @@ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
|
|
|
744
744
|
}, !0);
|
|
745
745
|
}
|
|
746
746
|
function de() {
|
|
747
|
-
!K || !d.current || (d.current.classList.remove(Ot),
|
|
747
|
+
!K || !d.current || (d.current.classList.remove(Ot), st.current = !1, it(!1), bt.current = /* @__PURE__ */ new Date());
|
|
748
748
|
}
|
|
749
749
|
function fe(l) {
|
|
750
750
|
if (!K || !d.current) return;
|
|
751
|
-
d.current.classList.remove(Ot),
|
|
752
|
-
const S =
|
|
751
|
+
d.current.classList.remove(Ot), st.current = !1, it(!1), bt.current = /* @__PURE__ */ new Date();
|
|
752
|
+
const S = vt(d.current, c);
|
|
753
753
|
if (!l || !kt(l.target, !1) || !S || Number.isNaN(S) || yt.current === null) return;
|
|
754
|
-
const
|
|
754
|
+
const R = bt.current.getTime() - yt.current.getTime(), g = Tt.current - (C(c) ? l.pageY : l.pageX), O = Math.abs(g) / R;
|
|
755
755
|
if (O > 0.05 && (Mt(!0), setTimeout(() => {
|
|
756
756
|
Mt(!1);
|
|
757
757
|
}, 200)), a) {
|
|
758
758
|
oe({
|
|
759
759
|
draggedDistance: g * (c === "bottom" || c === "right" ? 1 : -1),
|
|
760
|
-
closeDrawer:
|
|
760
|
+
closeDrawer: ct,
|
|
761
761
|
velocity: O,
|
|
762
762
|
dismissible: h
|
|
763
763
|
}), i == null || i(l, !0);
|
|
@@ -768,7 +768,7 @@ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
|
|
|
768
768
|
return;
|
|
769
769
|
}
|
|
770
770
|
if (O > Gt) {
|
|
771
|
-
|
|
771
|
+
ct(), i == null || i(l, !1);
|
|
772
772
|
return;
|
|
773
773
|
}
|
|
774
774
|
var k;
|
|
@@ -776,25 +776,25 @@ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
|
|
|
776
776
|
var G;
|
|
777
777
|
const V = Math.min((G = d.current.getBoundingClientRect().width) != null ? G : 0, window.innerWidth), tt = c === "left" || c === "right";
|
|
778
778
|
if (Math.abs(S) >= (tt ? V : H) * T) {
|
|
779
|
-
|
|
779
|
+
ct(), i == null || i(l, !1);
|
|
780
780
|
return;
|
|
781
781
|
}
|
|
782
782
|
i == null || i(l, !0), Bt();
|
|
783
783
|
}
|
|
784
784
|
r.useEffect(() => (_ && ($(document.documentElement, {
|
|
785
785
|
scrollBehavior: "auto"
|
|
786
|
-
}),
|
|
787
|
-
|
|
786
|
+
}), wt.current = /* @__PURE__ */ new Date()), () => {
|
|
787
|
+
Fe(document.documentElement, "scrollBehavior");
|
|
788
788
|
}), [
|
|
789
789
|
_
|
|
790
790
|
]);
|
|
791
791
|
function me(l) {
|
|
792
|
-
const S = l ? (window.innerWidth -
|
|
792
|
+
const S = l ? (window.innerWidth - et) / window.innerWidth : 1, R = l ? -et : 0;
|
|
793
793
|
St.current && window.clearTimeout(St.current), $(d.current, {
|
|
794
794
|
transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
|
|
795
|
-
transform: C(c) ? `scale(${S}) translate3d(0, ${
|
|
795
|
+
transform: C(c) ? `scale(${S}) translate3d(0, ${R}px, 0)` : `scale(${S}) translate3d(${R}px, 0, 0)`
|
|
796
796
|
}), !l && d.current && (St.current = setTimeout(() => {
|
|
797
|
-
const g =
|
|
797
|
+
const g = vt(d.current, c);
|
|
798
798
|
$(d.current, {
|
|
799
799
|
transition: "none",
|
|
800
800
|
transform: C(c) ? `translate3d(0, ${g}px, 0)` : `translate3d(${g}px, 0, 0)`
|
|
@@ -803,14 +803,14 @@ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
|
|
|
803
803
|
}
|
|
804
804
|
function we(l, S) {
|
|
805
805
|
if (S < 0) return;
|
|
806
|
-
const
|
|
806
|
+
const R = (window.innerWidth - et) / window.innerWidth, g = R + S * (1 - R), O = -et + S * et;
|
|
807
807
|
$(d.current, {
|
|
808
808
|
transform: C(c) ? `scale(${g}) translate3d(0, ${O}px, 0)` : `scale(${g}) translate3d(${O}px, 0, 0)`,
|
|
809
809
|
transition: "none"
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
812
|
function pe(l, S) {
|
|
813
|
-
const
|
|
813
|
+
const R = C(c) ? window.innerHeight : window.innerWidth, g = S ? (R - et) / R : 1, O = S ? -et : 0;
|
|
814
814
|
S && $(d.current, {
|
|
815
815
|
transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
|
|
816
816
|
transform: C(c) ? `scale(${g}) translate3d(0, ${O}px, 0)` : `scale(${g}) translate3d(${O}px, 0, 0)`
|
|
@@ -822,19 +822,19 @@ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
|
|
|
822
822
|
});
|
|
823
823
|
}, [
|
|
824
824
|
U
|
|
825
|
-
]), /* @__PURE__ */ r.createElement(
|
|
825
|
+
]), /* @__PURE__ */ r.createElement(Te, {
|
|
826
826
|
defaultOpen: Y,
|
|
827
827
|
onOpenChange: (l) => {
|
|
828
|
-
!h && !l || (l ? X(!0) :
|
|
828
|
+
!h && !l || (l ? X(!0) : ct(!0), W(l));
|
|
829
829
|
},
|
|
830
830
|
open: _
|
|
831
|
-
}, /* @__PURE__ */ r.createElement(
|
|
831
|
+
}, /* @__PURE__ */ r.createElement(Vt.Provider, {
|
|
832
832
|
value: {
|
|
833
833
|
activeSnapPoint: ae,
|
|
834
834
|
snapPoints: a,
|
|
835
835
|
setActiveSnapPoint: Ht,
|
|
836
836
|
drawerRef: d,
|
|
837
|
-
overlayRef:
|
|
837
|
+
overlayRef: nt,
|
|
838
838
|
onOpenChange: n,
|
|
839
839
|
onPress: ue,
|
|
840
840
|
onRelease: fe,
|
|
@@ -845,33 +845,33 @@ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
|
|
|
845
845
|
isOpen: _,
|
|
846
846
|
isDragging: K,
|
|
847
847
|
shouldFade: Lt,
|
|
848
|
-
closeDrawer:
|
|
848
|
+
closeDrawer: ct,
|
|
849
849
|
onNestedDrag: we,
|
|
850
850
|
onNestedOpenChange: me,
|
|
851
851
|
onNestedRelease: pe,
|
|
852
|
-
keyboardIsOpen:
|
|
852
|
+
keyboardIsOpen: rt,
|
|
853
853
|
modal: U,
|
|
854
|
-
snapPointsOffset:
|
|
855
|
-
activeSnapPointIndex:
|
|
854
|
+
snapPointsOffset: ut,
|
|
855
|
+
activeSnapPointIndex: at,
|
|
856
856
|
direction: c,
|
|
857
857
|
shouldScaleBackground: v,
|
|
858
858
|
setBackgroundColorOnScale: p,
|
|
859
859
|
noBodyStyles: A,
|
|
860
860
|
container: P,
|
|
861
|
-
autoFocus:
|
|
861
|
+
autoFocus: j
|
|
862
862
|
}
|
|
863
863
|
}, e));
|
|
864
864
|
}
|
|
865
865
|
const te = /* @__PURE__ */ r.forwardRef(function({ ...t }, n) {
|
|
866
|
-
const { overlayRef: e, snapPoints: o, onRelease: i, shouldFade: a, isOpen: v, modal: p, shouldAnimate: T } =
|
|
866
|
+
const { overlayRef: e, snapPoints: o, onRelease: i, shouldFade: a, isOpen: v, modal: p, shouldAnimate: T } = mt(), D = Xt(n, e), h = o && o.length > 0;
|
|
867
867
|
if (!p)
|
|
868
868
|
return null;
|
|
869
869
|
const f = r.useCallback((m) => i(m), [
|
|
870
870
|
i
|
|
871
871
|
]);
|
|
872
|
-
return /* @__PURE__ */ r.createElement(
|
|
872
|
+
return /* @__PURE__ */ r.createElement(he, {
|
|
873
873
|
onMouseUp: f,
|
|
874
|
-
ref:
|
|
874
|
+
ref: D,
|
|
875
875
|
"data-vaul-overlay": "",
|
|
876
876
|
"data-vaul-snap-points": v && h ? "true" : "false",
|
|
877
877
|
"data-vaul-snap-points-overlay": v && a ? "true" : "false",
|
|
@@ -881,18 +881,18 @@ const te = /* @__PURE__ */ r.forwardRef(function({ ...t }, n) {
|
|
|
881
881
|
});
|
|
882
882
|
te.displayName = "Drawer.Overlay";
|
|
883
883
|
const ee = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, style: n, onOpenAutoFocus: e, ...o }, i) {
|
|
884
|
-
const { drawerRef: a, onPress: v, onRelease: p, onDrag: T, keyboardIsOpen:
|
|
885
|
-
|
|
884
|
+
const { drawerRef: a, onPress: v, onRelease: p, onDrag: T, keyboardIsOpen: D, snapPointsOffset: h, activeSnapPointIndex: f, modal: m, isOpen: B, direction: L, snapPoints: E, container: U, handleOnly: w, shouldAnimate: M, autoFocus: A } = mt(), [c, Y] = r.useState(!1), Z = Xt(i, a), u = r.useRef(null), b = r.useRef(null), y = r.useRef(!1), N = E && E.length > 0;
|
|
885
|
+
Ke();
|
|
886
886
|
const P = (s, F, _ = 0) => {
|
|
887
887
|
if (y.current) return !0;
|
|
888
|
-
const
|
|
888
|
+
const W = Math.abs(s.y), I = Math.abs(s.x), X = I > W, K = [
|
|
889
889
|
"bottom",
|
|
890
890
|
"right"
|
|
891
891
|
].includes(F) ? 1 : -1;
|
|
892
892
|
if (F === "left" || F === "right") {
|
|
893
893
|
if (!(s.x * K < 0) && I >= 0 && I <= _)
|
|
894
894
|
return X;
|
|
895
|
-
} else if (!(s.y * K < 0) &&
|
|
895
|
+
} else if (!(s.y * K < 0) && W >= 0 && W <= _)
|
|
896
896
|
return !X;
|
|
897
897
|
return y.current = !0, !0;
|
|
898
898
|
};
|
|
@@ -901,10 +901,10 @@ const ee = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
|
|
|
901
901
|
Y(!0);
|
|
902
902
|
});
|
|
903
903
|
}, []);
|
|
904
|
-
function
|
|
904
|
+
function j(s) {
|
|
905
905
|
u.current = null, y.current = !1, p(s);
|
|
906
906
|
}
|
|
907
|
-
return /* @__PURE__ */ r.createElement(
|
|
907
|
+
return /* @__PURE__ */ r.createElement(ge, {
|
|
908
908
|
"data-vaul-drawer-direction": L,
|
|
909
909
|
"data-vaul-drawer": "",
|
|
910
910
|
"data-vaul-delayed-snap-points": c ? "true" : "false",
|
|
@@ -931,7 +931,7 @@ const ee = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
|
|
|
931
931
|
s.preventDefault();
|
|
932
932
|
return;
|
|
933
933
|
}
|
|
934
|
-
|
|
934
|
+
D.current && (D.current = !1);
|
|
935
935
|
},
|
|
936
936
|
onFocusOutside: (s) => {
|
|
937
937
|
if (!m) {
|
|
@@ -941,26 +941,26 @@ const ee = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
|
|
|
941
941
|
},
|
|
942
942
|
onPointerMove: (s) => {
|
|
943
943
|
if (b.current = s, w || (o.onPointerMove == null || o.onPointerMove.call(o, s), !u.current)) return;
|
|
944
|
-
const F = s.pageY - u.current.y, _ = s.pageX - u.current.x,
|
|
944
|
+
const F = s.pageY - u.current.y, _ = s.pageX - u.current.x, W = s.pointerType === "touch" ? 10 : 2;
|
|
945
945
|
P({
|
|
946
946
|
x: _,
|
|
947
947
|
y: F
|
|
948
|
-
}, L,
|
|
948
|
+
}, L, W) ? T(s) : (Math.abs(_) > W || Math.abs(F) > W) && (u.current = null);
|
|
949
949
|
},
|
|
950
950
|
onPointerUp: (s) => {
|
|
951
951
|
o.onPointerUp == null || o.onPointerUp.call(o, s), u.current = null, y.current = !1, p(s);
|
|
952
952
|
},
|
|
953
953
|
onPointerOut: (s) => {
|
|
954
|
-
o.onPointerOut == null || o.onPointerOut.call(o, s),
|
|
954
|
+
o.onPointerOut == null || o.onPointerOut.call(o, s), j(b.current);
|
|
955
955
|
},
|
|
956
956
|
onContextMenu: (s) => {
|
|
957
|
-
o.onContextMenu == null || o.onContextMenu.call(o, s), b.current &&
|
|
957
|
+
o.onContextMenu == null || o.onContextMenu.call(o, s), b.current && j(b.current);
|
|
958
958
|
}
|
|
959
959
|
});
|
|
960
960
|
});
|
|
961
961
|
ee.displayName = "Drawer.Content";
|
|
962
|
-
const
|
|
963
|
-
const { closeDrawer: i, isDragging: a, snapPoints: v, activeSnapPoint: p, setActiveSnapPoint: T, dismissible:
|
|
962
|
+
const Qe = 250, Ze = 120, tn = /* @__PURE__ */ r.forwardRef(function({ preventCycle: t = !1, children: n, ...e }, o) {
|
|
963
|
+
const { closeDrawer: i, isDragging: a, snapPoints: v, activeSnapPoint: p, setActiveSnapPoint: T, dismissible: D, handleOnly: h, isOpen: f, onPress: m, onDrag: B } = mt(), L = r.useRef(null), E = r.useRef(!1);
|
|
964
964
|
function U() {
|
|
965
965
|
if (E.current) {
|
|
966
966
|
A();
|
|
@@ -968,7 +968,7 @@ const Ze = 250, tn = 120, en = /* @__PURE__ */ r.forwardRef(function({ preventCy
|
|
|
968
968
|
}
|
|
969
969
|
window.setTimeout(() => {
|
|
970
970
|
w();
|
|
971
|
-
},
|
|
971
|
+
}, Ze);
|
|
972
972
|
}
|
|
973
973
|
function w() {
|
|
974
974
|
if (a || t || E.current) {
|
|
@@ -976,10 +976,10 @@ const Ze = 250, tn = 120, en = /* @__PURE__ */ r.forwardRef(function({ preventCy
|
|
|
976
976
|
return;
|
|
977
977
|
}
|
|
978
978
|
if (A(), !v || v.length === 0) {
|
|
979
|
-
|
|
979
|
+
D || i();
|
|
980
980
|
return;
|
|
981
981
|
}
|
|
982
|
-
if (p === v[v.length - 1] &&
|
|
982
|
+
if (p === v[v.length - 1] && D) {
|
|
983
983
|
i();
|
|
984
984
|
return;
|
|
985
985
|
}
|
|
@@ -991,7 +991,7 @@ const Ze = 250, tn = 120, en = /* @__PURE__ */ r.forwardRef(function({ preventCy
|
|
|
991
991
|
function M() {
|
|
992
992
|
L.current = window.setTimeout(() => {
|
|
993
993
|
E.current = !0;
|
|
994
|
-
},
|
|
994
|
+
}, Qe);
|
|
995
995
|
}
|
|
996
996
|
function A() {
|
|
997
997
|
L.current && window.clearTimeout(L.current), E.current = !1;
|
|
@@ -1016,42 +1016,42 @@ const Ze = 250, tn = 120, en = /* @__PURE__ */ r.forwardRef(function({ preventCy
|
|
|
1016
1016
|
"aria-hidden": "true"
|
|
1017
1017
|
}, n));
|
|
1018
1018
|
});
|
|
1019
|
-
|
|
1020
|
-
function
|
|
1021
|
-
const n =
|
|
1019
|
+
tn.displayName = "Drawer.Handle";
|
|
1020
|
+
function en(t) {
|
|
1021
|
+
const n = mt(), { container: e = n.container, ...o } = t;
|
|
1022
1022
|
return /* @__PURE__ */ r.createElement(Re, {
|
|
1023
1023
|
container: e,
|
|
1024
1024
|
...o
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
1027
|
const Q = {
|
|
1028
|
-
Root:
|
|
1028
|
+
Root: Je,
|
|
1029
1029
|
Content: ee,
|
|
1030
1030
|
Overlay: te,
|
|
1031
|
-
Trigger:
|
|
1032
|
-
Portal:
|
|
1033
|
-
Close:
|
|
1034
|
-
Title:
|
|
1035
|
-
Description:
|
|
1031
|
+
Trigger: ve,
|
|
1032
|
+
Portal: en,
|
|
1033
|
+
Close: ye,
|
|
1034
|
+
Title: be,
|
|
1035
|
+
Description: Se
|
|
1036
1036
|
};
|
|
1037
|
-
function
|
|
1038
|
-
return /* @__PURE__ */
|
|
1037
|
+
function un({ ...t }) {
|
|
1038
|
+
return /* @__PURE__ */ z.jsx(Q.Root, { "data-slot": "drawer", ...t });
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
return /* @__PURE__ */
|
|
1040
|
+
function cn({ ...t }) {
|
|
1041
|
+
return /* @__PURE__ */ z.jsx(Q.Trigger, { "data-slot": "drawer-trigger", ...t });
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1044
|
-
return /* @__PURE__ */
|
|
1043
|
+
function nn({ ...t }) {
|
|
1044
|
+
return /* @__PURE__ */ z.jsx(Q.Portal, { "data-slot": "drawer-portal", ...t });
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return /* @__PURE__ */
|
|
1046
|
+
function dn({ ...t }) {
|
|
1047
|
+
return /* @__PURE__ */ z.jsx(Q.Close, { "data-slot": "drawer-close", ...t });
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1050
|
-
return /* @__PURE__ */
|
|
1049
|
+
function rn({ className: t, ...n }) {
|
|
1050
|
+
return /* @__PURE__ */ z.jsx(
|
|
1051
1051
|
Q.Overlay,
|
|
1052
1052
|
{
|
|
1053
1053
|
"data-slot": "drawer-overlay",
|
|
1054
|
-
className:
|
|
1054
|
+
className: ot(
|
|
1055
1055
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-1000 bg-black/50",
|
|
1056
1056
|
t
|
|
1057
1057
|
),
|
|
@@ -1059,14 +1059,14 @@ function an({ className: t, ...n }) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return /* @__PURE__ */
|
|
1064
|
-
/* @__PURE__ */
|
|
1065
|
-
/* @__PURE__ */
|
|
1062
|
+
function fn({ className: t, children: n, ...e }) {
|
|
1063
|
+
return /* @__PURE__ */ z.jsxs(nn, { "data-slot": "drawer-portal", children: [
|
|
1064
|
+
/* @__PURE__ */ z.jsx(rn, {}),
|
|
1065
|
+
/* @__PURE__ */ z.jsx(
|
|
1066
1066
|
Q.Content,
|
|
1067
1067
|
{
|
|
1068
1068
|
"data-slot": "drawer-content",
|
|
1069
|
-
className:
|
|
1069
|
+
className: ot(
|
|
1070
1070
|
"group/drawer-content fixed z-1000 flex h-auto flex-col bg-white",
|
|
1071
1071
|
"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",
|
|
1072
1072
|
"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",
|
|
@@ -1080,41 +1080,41 @@ function mn({ className: t, children: n, ...e }) {
|
|
|
1080
1080
|
)
|
|
1081
1081
|
] });
|
|
1082
1082
|
}
|
|
1083
|
+
function mn({ className: t, ...n }) {
|
|
1084
|
+
return /* @__PURE__ */ z.jsx("div", { "data-slot": "drawer-header", className: ot("flex flex-col gap-2 p-5", t), ...n });
|
|
1085
|
+
}
|
|
1083
1086
|
function wn({ className: t, ...n }) {
|
|
1084
|
-
return /* @__PURE__ */
|
|
1087
|
+
return /* @__PURE__ */ z.jsx("div", { "data-slot": "drawer-footer", className: ot("mt-auto flex flex-col gap-2 p-5", t), ...n });
|
|
1085
1088
|
}
|
|
1086
1089
|
function pn({ className: t, ...n }) {
|
|
1087
|
-
return /* @__PURE__ */
|
|
1088
|
-
}
|
|
1089
|
-
function hn({ className: t, ...n }) {
|
|
1090
|
-
return /* @__PURE__ */ j(
|
|
1090
|
+
return /* @__PURE__ */ z.jsx(
|
|
1091
1091
|
Q.Title,
|
|
1092
1092
|
{
|
|
1093
1093
|
"data-slot": "drawer-title",
|
|
1094
|
-
className:
|
|
1094
|
+
className: ot("text-foreground font-semibold", t),
|
|
1095
1095
|
...n
|
|
1096
1096
|
}
|
|
1097
1097
|
);
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1100
|
-
return /* @__PURE__ */
|
|
1099
|
+
function hn({ className: t, ...n }) {
|
|
1100
|
+
return /* @__PURE__ */ z.jsx(
|
|
1101
1101
|
Q.Description,
|
|
1102
1102
|
{
|
|
1103
1103
|
"data-slot": "drawer-description",
|
|
1104
|
-
className:
|
|
1104
|
+
className: ot("text-muted-foreground text-sm", t),
|
|
1105
1105
|
...n
|
|
1106
1106
|
}
|
|
1107
1107
|
);
|
|
1108
1108
|
}
|
|
1109
1109
|
export {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1110
|
+
un as Drawer,
|
|
1111
|
+
dn as DrawerClose,
|
|
1112
|
+
fn as DrawerContent,
|
|
1113
|
+
hn as DrawerDescription,
|
|
1114
|
+
wn as DrawerFooter,
|
|
1115
|
+
mn as DrawerHeader,
|
|
1116
|
+
rn as DrawerOverlay,
|
|
1117
|
+
nn as DrawerPortal,
|
|
1118
|
+
pn as DrawerTitle,
|
|
1119
|
+
cn as DrawerTrigger
|
|
1120
1120
|
};
|