@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,1242 +0,0 @@
|
|
|
1
|
-
import * as c from "react";
|
|
2
|
-
import { useState as ot } from "react";
|
|
3
|
-
import { S as Ne, u as L } from "./index.CycwZAWT.js";
|
|
4
|
-
import { jsx as y, jsxs as de, Fragment as fe } from "react/jsx-runtime";
|
|
5
|
-
import * as at from "react-dom";
|
|
6
|
-
import it from "react-dom";
|
|
7
|
-
function M(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
8
|
-
return function(o) {
|
|
9
|
-
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
10
|
-
return t == null ? void 0 : t(o);
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function ct(e, t) {
|
|
14
|
-
const n = c.createContext(t), r = (a) => {
|
|
15
|
-
const { children: s, ...i } = a, d = c.useMemo(() => i, Object.values(i));
|
|
16
|
-
return /* @__PURE__ */ y(n.Provider, { value: d, children: s });
|
|
17
|
-
};
|
|
18
|
-
r.displayName = e + "Provider";
|
|
19
|
-
function o(a) {
|
|
20
|
-
const s = c.useContext(n);
|
|
21
|
-
if (s) return s;
|
|
22
|
-
if (t !== void 0) return t;
|
|
23
|
-
throw new Error(`\`${a}\` must be used within \`${e}\``);
|
|
24
|
-
}
|
|
25
|
-
return [r, o];
|
|
26
|
-
}
|
|
27
|
-
function st(e, t = []) {
|
|
28
|
-
let n = [];
|
|
29
|
-
function r(a, s) {
|
|
30
|
-
const i = c.createContext(s), d = n.length;
|
|
31
|
-
n = [...n, s];
|
|
32
|
-
const l = (v) => {
|
|
33
|
-
var g;
|
|
34
|
-
const { scope: m, children: p, ...S } = v, u = ((g = m == null ? void 0 : m[e]) == null ? void 0 : g[d]) || i, h = c.useMemo(() => S, Object.values(S));
|
|
35
|
-
return /* @__PURE__ */ y(u.Provider, { value: h, children: p });
|
|
36
|
-
};
|
|
37
|
-
l.displayName = a + "Provider";
|
|
38
|
-
function f(v, m) {
|
|
39
|
-
var u;
|
|
40
|
-
const p = ((u = m == null ? void 0 : m[e]) == null ? void 0 : u[d]) || i, S = c.useContext(p);
|
|
41
|
-
if (S) return S;
|
|
42
|
-
if (s !== void 0) return s;
|
|
43
|
-
throw new Error(`\`${v}\` must be used within \`${a}\``);
|
|
44
|
-
}
|
|
45
|
-
return [l, f];
|
|
46
|
-
}
|
|
47
|
-
const o = () => {
|
|
48
|
-
const a = n.map((s) => c.createContext(s));
|
|
49
|
-
return function(i) {
|
|
50
|
-
const d = (i == null ? void 0 : i[e]) || a;
|
|
51
|
-
return c.useMemo(
|
|
52
|
-
() => ({ [`__scope${e}`]: { ...i, [e]: d } }),
|
|
53
|
-
[i, d]
|
|
54
|
-
);
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
return o.scopeName = e, [r, ut(o, ...t)];
|
|
58
|
-
}
|
|
59
|
-
function ut(...e) {
|
|
60
|
-
const t = e[0];
|
|
61
|
-
if (e.length === 1) return t;
|
|
62
|
-
const n = () => {
|
|
63
|
-
const r = e.map((o) => ({
|
|
64
|
-
useScope: o(),
|
|
65
|
-
scopeName: o.scopeName
|
|
66
|
-
}));
|
|
67
|
-
return function(a) {
|
|
68
|
-
const s = r.reduce((i, { useScope: d, scopeName: l }) => {
|
|
69
|
-
const v = d(a)[`__scope${l}`];
|
|
70
|
-
return { ...i, ...v };
|
|
71
|
-
}, {});
|
|
72
|
-
return c.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
return n.scopeName = t.scopeName, n;
|
|
76
|
-
}
|
|
77
|
-
var lt = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
|
|
78
|
-
}, dt = c.useId || (() => {
|
|
79
|
-
}), ft = 0;
|
|
80
|
-
function q(e) {
|
|
81
|
-
const [t, n] = c.useState(dt());
|
|
82
|
-
return lt(() => {
|
|
83
|
-
n((r) => r ?? String(ft++));
|
|
84
|
-
}, [e]), e || (t ? `radix-${t}` : "");
|
|
85
|
-
}
|
|
86
|
-
function I(e) {
|
|
87
|
-
const t = c.useRef(e);
|
|
88
|
-
return c.useEffect(() => {
|
|
89
|
-
t.current = e;
|
|
90
|
-
}), c.useMemo(() => (...n) => {
|
|
91
|
-
var r;
|
|
92
|
-
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
93
|
-
}, []);
|
|
94
|
-
}
|
|
95
|
-
function vt({
|
|
96
|
-
prop: e,
|
|
97
|
-
defaultProp: t,
|
|
98
|
-
onChange: n = () => {
|
|
99
|
-
}
|
|
100
|
-
}) {
|
|
101
|
-
const [r, o] = mt({ defaultProp: t, onChange: n }), a = e !== void 0, s = a ? e : r, i = I(n), d = c.useCallback(
|
|
102
|
-
(l) => {
|
|
103
|
-
if (a) {
|
|
104
|
-
const v = typeof l == "function" ? l(e) : l;
|
|
105
|
-
v !== e && i(v);
|
|
106
|
-
} else
|
|
107
|
-
o(l);
|
|
108
|
-
},
|
|
109
|
-
[a, e, o, i]
|
|
110
|
-
);
|
|
111
|
-
return [s, d];
|
|
112
|
-
}
|
|
113
|
-
function mt({
|
|
114
|
-
defaultProp: e,
|
|
115
|
-
onChange: t
|
|
116
|
-
}) {
|
|
117
|
-
const n = c.useState(e), [r] = n, o = c.useRef(r), a = I(t);
|
|
118
|
-
return c.useEffect(() => {
|
|
119
|
-
o.current !== r && (a(r), o.current = r);
|
|
120
|
-
}, [r, o, a]), n;
|
|
121
|
-
}
|
|
122
|
-
var ht = [
|
|
123
|
-
"a",
|
|
124
|
-
"button",
|
|
125
|
-
"div",
|
|
126
|
-
"form",
|
|
127
|
-
"h2",
|
|
128
|
-
"h3",
|
|
129
|
-
"img",
|
|
130
|
-
"input",
|
|
131
|
-
"label",
|
|
132
|
-
"li",
|
|
133
|
-
"nav",
|
|
134
|
-
"ol",
|
|
135
|
-
"p",
|
|
136
|
-
"span",
|
|
137
|
-
"svg",
|
|
138
|
-
"ul"
|
|
139
|
-
], A = ht.reduce((e, t) => {
|
|
140
|
-
const n = c.forwardRef((r, o) => {
|
|
141
|
-
const { asChild: a, ...s } = r, i = a ? Ne : t;
|
|
142
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y(i, { ...s, ref: o });
|
|
143
|
-
});
|
|
144
|
-
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
145
|
-
}, {});
|
|
146
|
-
function pt(e, t) {
|
|
147
|
-
e && at.flushSync(() => e.dispatchEvent(t));
|
|
148
|
-
}
|
|
149
|
-
function gt(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
150
|
-
const n = I(e);
|
|
151
|
-
c.useEffect(() => {
|
|
152
|
-
const r = (o) => {
|
|
153
|
-
o.key === "Escape" && n(o);
|
|
154
|
-
};
|
|
155
|
-
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
156
|
-
}, [n, t]);
|
|
157
|
-
}
|
|
158
|
-
var yt = "DismissableLayer", ae = "dismissableLayer.update", Et = "dismissableLayer.pointerDownOutside", bt = "dismissableLayer.focusOutside", ve, De = c.createContext({
|
|
159
|
-
layers: /* @__PURE__ */ new Set(),
|
|
160
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
161
|
-
branches: /* @__PURE__ */ new Set()
|
|
162
|
-
}), Oe = c.forwardRef(
|
|
163
|
-
(e, t) => {
|
|
164
|
-
const {
|
|
165
|
-
disableOutsidePointerEvents: n = !1,
|
|
166
|
-
onEscapeKeyDown: r,
|
|
167
|
-
onPointerDownOutside: o,
|
|
168
|
-
onFocusOutside: a,
|
|
169
|
-
onInteractOutside: s,
|
|
170
|
-
onDismiss: i,
|
|
171
|
-
...d
|
|
172
|
-
} = e, l = c.useContext(De), [f, v] = c.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = c.useState({}), S = L(t, (E) => v(E)), u = Array.from(l.layers), [h] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), g = u.indexOf(h), P = f ? u.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, C = P >= g, w = wt((E) => {
|
|
173
|
-
const O = E.target, B = [...l.branches].some((Z) => Z.contains(O));
|
|
174
|
-
!C || B || (o == null || o(E), s == null || s(E), E.defaultPrevented || i == null || i());
|
|
175
|
-
}, m), D = Pt((E) => {
|
|
176
|
-
const O = E.target;
|
|
177
|
-
[...l.branches].some((Z) => Z.contains(O)) || (a == null || a(E), s == null || s(E), E.defaultPrevented || i == null || i());
|
|
178
|
-
}, m);
|
|
179
|
-
return gt((E) => {
|
|
180
|
-
P === l.layers.size - 1 && (r == null || r(E), !E.defaultPrevented && i && (E.preventDefault(), i()));
|
|
181
|
-
}, m), c.useEffect(() => {
|
|
182
|
-
if (f)
|
|
183
|
-
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (ve = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), me(), () => {
|
|
184
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = ve);
|
|
185
|
-
};
|
|
186
|
-
}, [f, m, n, l]), c.useEffect(() => () => {
|
|
187
|
-
f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), me());
|
|
188
|
-
}, [f, l]), c.useEffect(() => {
|
|
189
|
-
const E = () => p({});
|
|
190
|
-
return document.addEventListener(ae, E), () => document.removeEventListener(ae, E);
|
|
191
|
-
}, []), /* @__PURE__ */ y(
|
|
192
|
-
A.div,
|
|
193
|
-
{
|
|
194
|
-
...d,
|
|
195
|
-
ref: S,
|
|
196
|
-
style: {
|
|
197
|
-
pointerEvents: b ? C ? "auto" : "none" : void 0,
|
|
198
|
-
...e.style
|
|
199
|
-
},
|
|
200
|
-
onFocusCapture: M(e.onFocusCapture, D.onFocusCapture),
|
|
201
|
-
onBlurCapture: M(e.onBlurCapture, D.onBlurCapture),
|
|
202
|
-
onPointerDownCapture: M(
|
|
203
|
-
e.onPointerDownCapture,
|
|
204
|
-
w.onPointerDownCapture
|
|
205
|
-
)
|
|
206
|
-
}
|
|
207
|
-
);
|
|
208
|
-
}
|
|
209
|
-
);
|
|
210
|
-
Oe.displayName = yt;
|
|
211
|
-
var Ct = "DismissableLayerBranch", St = c.forwardRef((e, t) => {
|
|
212
|
-
const n = c.useContext(De), r = c.useRef(null), o = L(t, r);
|
|
213
|
-
return c.useEffect(() => {
|
|
214
|
-
const a = r.current;
|
|
215
|
-
if (a)
|
|
216
|
-
return n.branches.add(a), () => {
|
|
217
|
-
n.branches.delete(a);
|
|
218
|
-
};
|
|
219
|
-
}, [n.branches]), /* @__PURE__ */ y(A.div, { ...e, ref: o });
|
|
220
|
-
});
|
|
221
|
-
St.displayName = Ct;
|
|
222
|
-
function wt(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
223
|
-
const n = I(e), r = c.useRef(!1), o = c.useRef(() => {
|
|
224
|
-
});
|
|
225
|
-
return c.useEffect(() => {
|
|
226
|
-
const a = (i) => {
|
|
227
|
-
if (i.target && !r.current) {
|
|
228
|
-
let d = function() {
|
|
229
|
-
Ae(
|
|
230
|
-
Et,
|
|
231
|
-
n,
|
|
232
|
-
l,
|
|
233
|
-
{ discrete: !0 }
|
|
234
|
-
);
|
|
235
|
-
};
|
|
236
|
-
const l = { originalEvent: i };
|
|
237
|
-
i.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = d, t.addEventListener("click", o.current, { once: !0 })) : d();
|
|
238
|
-
} else
|
|
239
|
-
t.removeEventListener("click", o.current);
|
|
240
|
-
r.current = !1;
|
|
241
|
-
}, s = window.setTimeout(() => {
|
|
242
|
-
t.addEventListener("pointerdown", a);
|
|
243
|
-
}, 0);
|
|
244
|
-
return () => {
|
|
245
|
-
window.clearTimeout(s), t.removeEventListener("pointerdown", a), t.removeEventListener("click", o.current);
|
|
246
|
-
};
|
|
247
|
-
}, [t, n]), {
|
|
248
|
-
// ensures we check React component tree (not just DOM tree)
|
|
249
|
-
onPointerDownCapture: () => r.current = !0
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
function Pt(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
253
|
-
const n = I(e), r = c.useRef(!1);
|
|
254
|
-
return c.useEffect(() => {
|
|
255
|
-
const o = (a) => {
|
|
256
|
-
a.target && !r.current && Ae(bt, n, { originalEvent: a }, {
|
|
257
|
-
discrete: !1
|
|
258
|
-
});
|
|
259
|
-
};
|
|
260
|
-
return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
|
|
261
|
-
}, [t, n]), {
|
|
262
|
-
onFocusCapture: () => r.current = !0,
|
|
263
|
-
onBlurCapture: () => r.current = !1
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
function me() {
|
|
267
|
-
const e = new CustomEvent(ae);
|
|
268
|
-
document.dispatchEvent(e);
|
|
269
|
-
}
|
|
270
|
-
function Ae(e, t, n, { discrete: r }) {
|
|
271
|
-
const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
272
|
-
t && o.addEventListener(e, t, { once: !0 }), r ? pt(o, a) : o.dispatchEvent(a);
|
|
273
|
-
}
|
|
274
|
-
var Q = "focusScope.autoFocusOnMount", J = "focusScope.autoFocusOnUnmount", he = { bubbles: !1, cancelable: !0 }, Rt = "FocusScope", Te = c.forwardRef((e, t) => {
|
|
275
|
-
const {
|
|
276
|
-
loop: n = !1,
|
|
277
|
-
trapped: r = !1,
|
|
278
|
-
onMountAutoFocus: o,
|
|
279
|
-
onUnmountAutoFocus: a,
|
|
280
|
-
...s
|
|
281
|
-
} = e, [i, d] = c.useState(null), l = I(o), f = I(a), v = c.useRef(null), m = L(t, (u) => d(u)), p = c.useRef({
|
|
282
|
-
paused: !1,
|
|
283
|
-
pause() {
|
|
284
|
-
this.paused = !0;
|
|
285
|
-
},
|
|
286
|
-
resume() {
|
|
287
|
-
this.paused = !1;
|
|
288
|
-
}
|
|
289
|
-
}).current;
|
|
290
|
-
c.useEffect(() => {
|
|
291
|
-
if (r) {
|
|
292
|
-
let u = function(b) {
|
|
293
|
-
if (p.paused || !i) return;
|
|
294
|
-
const C = b.target;
|
|
295
|
-
i.contains(C) ? v.current = C : T(v.current, { select: !0 });
|
|
296
|
-
}, h = function(b) {
|
|
297
|
-
if (p.paused || !i) return;
|
|
298
|
-
const C = b.relatedTarget;
|
|
299
|
-
C !== null && (i.contains(C) || T(v.current, { select: !0 }));
|
|
300
|
-
}, g = function(b) {
|
|
301
|
-
if (document.activeElement === document.body)
|
|
302
|
-
for (const w of b)
|
|
303
|
-
w.removedNodes.length > 0 && T(i);
|
|
304
|
-
};
|
|
305
|
-
document.addEventListener("focusin", u), document.addEventListener("focusout", h);
|
|
306
|
-
const P = new MutationObserver(g);
|
|
307
|
-
return i && P.observe(i, { childList: !0, subtree: !0 }), () => {
|
|
308
|
-
document.removeEventListener("focusin", u), document.removeEventListener("focusout", h), P.disconnect();
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
}, [r, i, p.paused]), c.useEffect(() => {
|
|
312
|
-
if (i) {
|
|
313
|
-
ge.add(p);
|
|
314
|
-
const u = document.activeElement;
|
|
315
|
-
if (!i.contains(u)) {
|
|
316
|
-
const g = new CustomEvent(Q, he);
|
|
317
|
-
i.addEventListener(Q, l), i.dispatchEvent(g), g.defaultPrevented || (Nt(Mt(Me(i)), { select: !0 }), document.activeElement === u && T(i));
|
|
318
|
-
}
|
|
319
|
-
return () => {
|
|
320
|
-
i.removeEventListener(Q, l), setTimeout(() => {
|
|
321
|
-
const g = new CustomEvent(J, he);
|
|
322
|
-
i.addEventListener(J, f), i.dispatchEvent(g), g.defaultPrevented || T(u ?? document.body, { select: !0 }), i.removeEventListener(J, f), ge.remove(p);
|
|
323
|
-
}, 0);
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
}, [i, l, f, p]);
|
|
327
|
-
const S = c.useCallback(
|
|
328
|
-
(u) => {
|
|
329
|
-
if (!n && !r || p.paused) return;
|
|
330
|
-
const h = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, g = document.activeElement;
|
|
331
|
-
if (h && g) {
|
|
332
|
-
const P = u.currentTarget, [b, C] = Dt(P);
|
|
333
|
-
b && C ? !u.shiftKey && g === C ? (u.preventDefault(), n && T(b, { select: !0 })) : u.shiftKey && g === b && (u.preventDefault(), n && T(C, { select: !0 })) : g === P && u.preventDefault();
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
[n, r, p.paused]
|
|
337
|
-
);
|
|
338
|
-
return /* @__PURE__ */ y(A.div, { tabIndex: -1, ...s, ref: m, onKeyDown: S });
|
|
339
|
-
});
|
|
340
|
-
Te.displayName = Rt;
|
|
341
|
-
function Nt(e, { select: t = !1 } = {}) {
|
|
342
|
-
const n = document.activeElement;
|
|
343
|
-
for (const r of e)
|
|
344
|
-
if (T(r, { select: t }), document.activeElement !== n) return;
|
|
345
|
-
}
|
|
346
|
-
function Dt(e) {
|
|
347
|
-
const t = Me(e), n = pe(t, e), r = pe(t.reverse(), e);
|
|
348
|
-
return [n, r];
|
|
349
|
-
}
|
|
350
|
-
function Me(e) {
|
|
351
|
-
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
352
|
-
acceptNode: (r) => {
|
|
353
|
-
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
354
|
-
return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
358
|
-
return t;
|
|
359
|
-
}
|
|
360
|
-
function pe(e, t) {
|
|
361
|
-
for (const n of e)
|
|
362
|
-
if (!Ot(n, { upTo: t })) return n;
|
|
363
|
-
}
|
|
364
|
-
function Ot(e, { upTo: t }) {
|
|
365
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
366
|
-
for (; e; ) {
|
|
367
|
-
if (t !== void 0 && e === t) return !1;
|
|
368
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
369
|
-
e = e.parentElement;
|
|
370
|
-
}
|
|
371
|
-
return !1;
|
|
372
|
-
}
|
|
373
|
-
function At(e) {
|
|
374
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
375
|
-
}
|
|
376
|
-
function T(e, { select: t = !1 } = {}) {
|
|
377
|
-
if (e && e.focus) {
|
|
378
|
-
const n = document.activeElement;
|
|
379
|
-
e.focus({ preventScroll: !0 }), e !== n && At(e) && t && e.select();
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
var ge = Tt();
|
|
383
|
-
function Tt() {
|
|
384
|
-
let e = [];
|
|
385
|
-
return {
|
|
386
|
-
add(t) {
|
|
387
|
-
const n = e[0];
|
|
388
|
-
t !== n && (n == null || n.pause()), e = ye(e, t), e.unshift(t);
|
|
389
|
-
},
|
|
390
|
-
remove(t) {
|
|
391
|
-
var n;
|
|
392
|
-
e = ye(e, t), (n = e[0]) == null || n.resume();
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
function ye(e, t) {
|
|
397
|
-
const n = [...e], r = n.indexOf(t);
|
|
398
|
-
return r !== -1 && n.splice(r, 1), n;
|
|
399
|
-
}
|
|
400
|
-
function Mt(e) {
|
|
401
|
-
return e.filter((t) => t.tagName !== "A");
|
|
402
|
-
}
|
|
403
|
-
var It = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
|
|
404
|
-
}, xt = "Portal", Ie = c.forwardRef((e, t) => {
|
|
405
|
-
var i;
|
|
406
|
-
const { container: n, ...r } = e, [o, a] = c.useState(!1);
|
|
407
|
-
It(() => a(!0), []);
|
|
408
|
-
const s = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
409
|
-
return s ? it.createPortal(/* @__PURE__ */ y(A.div, { ...r, ref: t }), s) : null;
|
|
410
|
-
});
|
|
411
|
-
Ie.displayName = xt;
|
|
412
|
-
var Ee = globalThis != null && globalThis.document ? c.useLayoutEffect : () => {
|
|
413
|
-
};
|
|
414
|
-
function Lt(e, t) {
|
|
415
|
-
return c.useReducer((n, r) => t[n][r] ?? n, e);
|
|
416
|
-
}
|
|
417
|
-
var z = (e) => {
|
|
418
|
-
const { present: t, children: n } = e, r = _t(t), o = typeof n == "function" ? n({ present: r.isPresent }) : c.Children.only(n), a = L(r.ref, Ft(o));
|
|
419
|
-
return typeof n == "function" || r.isPresent ? c.cloneElement(o, { ref: a }) : null;
|
|
420
|
-
};
|
|
421
|
-
z.displayName = "Presence";
|
|
422
|
-
function _t(e) {
|
|
423
|
-
const [t, n] = c.useState(), r = c.useRef({}), o = c.useRef(e), a = c.useRef("none"), s = e ? "mounted" : "unmounted", [i, d] = Lt(s, {
|
|
424
|
-
mounted: {
|
|
425
|
-
UNMOUNT: "unmounted",
|
|
426
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
427
|
-
},
|
|
428
|
-
unmountSuspended: {
|
|
429
|
-
MOUNT: "mounted",
|
|
430
|
-
ANIMATION_END: "unmounted"
|
|
431
|
-
},
|
|
432
|
-
unmounted: {
|
|
433
|
-
MOUNT: "mounted"
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
return c.useEffect(() => {
|
|
437
|
-
const l = U(r.current);
|
|
438
|
-
a.current = i === "mounted" ? l : "none";
|
|
439
|
-
}, [i]), Ee(() => {
|
|
440
|
-
const l = r.current, f = o.current;
|
|
441
|
-
if (f !== e) {
|
|
442
|
-
const m = a.current, p = U(l);
|
|
443
|
-
e ? d("MOUNT") : p === "none" || (l == null ? void 0 : l.display) === "none" ? d("UNMOUNT") : d(f && m !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
444
|
-
}
|
|
445
|
-
}, [e, d]), Ee(() => {
|
|
446
|
-
if (t) {
|
|
447
|
-
let l;
|
|
448
|
-
const f = t.ownerDocument.defaultView ?? window, v = (p) => {
|
|
449
|
-
const u = U(r.current).includes(p.animationName);
|
|
450
|
-
if (p.target === t && u && (d("ANIMATION_END"), !o.current)) {
|
|
451
|
-
const h = t.style.animationFillMode;
|
|
452
|
-
t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
|
|
453
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
}, m = (p) => {
|
|
457
|
-
p.target === t && (a.current = U(r.current));
|
|
458
|
-
};
|
|
459
|
-
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", v), t.addEventListener("animationend", v), () => {
|
|
460
|
-
f.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", v), t.removeEventListener("animationend", v);
|
|
461
|
-
};
|
|
462
|
-
} else
|
|
463
|
-
d("ANIMATION_END");
|
|
464
|
-
}, [t, d]), {
|
|
465
|
-
isPresent: ["mounted", "unmountSuspended"].includes(i),
|
|
466
|
-
ref: c.useCallback((l) => {
|
|
467
|
-
l && (r.current = getComputedStyle(l)), n(l);
|
|
468
|
-
}, [])
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
function U(e) {
|
|
472
|
-
return (e == null ? void 0 : e.animationName) || "none";
|
|
473
|
-
}
|
|
474
|
-
function Ft(e) {
|
|
475
|
-
var r, o;
|
|
476
|
-
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
477
|
-
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
478
|
-
}
|
|
479
|
-
var ee = 0;
|
|
480
|
-
function kt() {
|
|
481
|
-
c.useEffect(() => {
|
|
482
|
-
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
483
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? be()), document.body.insertAdjacentElement("beforeend", e[1] ?? be()), ee++, () => {
|
|
484
|
-
ee === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ee--;
|
|
485
|
-
};
|
|
486
|
-
}, []);
|
|
487
|
-
}
|
|
488
|
-
function be() {
|
|
489
|
-
const e = document.createElement("span");
|
|
490
|
-
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
491
|
-
}
|
|
492
|
-
var N = function() {
|
|
493
|
-
return N = Object.assign || function(t) {
|
|
494
|
-
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
495
|
-
n = arguments[r];
|
|
496
|
-
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
497
|
-
}
|
|
498
|
-
return t;
|
|
499
|
-
}, N.apply(this, arguments);
|
|
500
|
-
};
|
|
501
|
-
function xe(e, t) {
|
|
502
|
-
var n = {};
|
|
503
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
504
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
505
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
506
|
-
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
507
|
-
return n;
|
|
508
|
-
}
|
|
509
|
-
function Wt(e, t, n) {
|
|
510
|
-
if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
|
|
511
|
-
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
512
|
-
return e.concat(a || Array.prototype.slice.call(t));
|
|
513
|
-
}
|
|
514
|
-
var G = "right-scroll-bar-position", Y = "width-before-scroll-bar", Bt = "with-scroll-bars-hidden", Ut = "--removed-body-scroll-bar-size";
|
|
515
|
-
function te(e, t) {
|
|
516
|
-
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
517
|
-
}
|
|
518
|
-
function $t(e, t) {
|
|
519
|
-
var n = ot(function() {
|
|
520
|
-
return {
|
|
521
|
-
// value
|
|
522
|
-
value: e,
|
|
523
|
-
// last callback
|
|
524
|
-
callback: t,
|
|
525
|
-
// "memoized" public interface
|
|
526
|
-
facade: {
|
|
527
|
-
get current() {
|
|
528
|
-
return n.value;
|
|
529
|
-
},
|
|
530
|
-
set current(r) {
|
|
531
|
-
var o = n.value;
|
|
532
|
-
o !== r && (n.value = r, n.callback(r, o));
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
})[0];
|
|
537
|
-
return n.callback = t, n.facade;
|
|
538
|
-
}
|
|
539
|
-
var jt = typeof window < "u" ? c.useLayoutEffect : c.useEffect, Ce = /* @__PURE__ */ new WeakMap();
|
|
540
|
-
function Kt(e, t) {
|
|
541
|
-
var n = $t(null, function(r) {
|
|
542
|
-
return e.forEach(function(o) {
|
|
543
|
-
return te(o, r);
|
|
544
|
-
});
|
|
545
|
-
});
|
|
546
|
-
return jt(function() {
|
|
547
|
-
var r = Ce.get(n);
|
|
548
|
-
if (r) {
|
|
549
|
-
var o = new Set(r), a = new Set(e), s = n.current;
|
|
550
|
-
o.forEach(function(i) {
|
|
551
|
-
a.has(i) || te(i, null);
|
|
552
|
-
}), a.forEach(function(i) {
|
|
553
|
-
o.has(i) || te(i, s);
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
Ce.set(n, e);
|
|
557
|
-
}, [e]), n;
|
|
558
|
-
}
|
|
559
|
-
function Vt(e) {
|
|
560
|
-
return e;
|
|
561
|
-
}
|
|
562
|
-
function Gt(e, t) {
|
|
563
|
-
t === void 0 && (t = Vt);
|
|
564
|
-
var n = [], r = !1, o = {
|
|
565
|
-
read: function() {
|
|
566
|
-
if (r)
|
|
567
|
-
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
568
|
-
return n.length ? n[n.length - 1] : e;
|
|
569
|
-
},
|
|
570
|
-
useMedium: function(a) {
|
|
571
|
-
var s = t(a, r);
|
|
572
|
-
return n.push(s), function() {
|
|
573
|
-
n = n.filter(function(i) {
|
|
574
|
-
return i !== s;
|
|
575
|
-
});
|
|
576
|
-
};
|
|
577
|
-
},
|
|
578
|
-
assignSyncMedium: function(a) {
|
|
579
|
-
for (r = !0; n.length; ) {
|
|
580
|
-
var s = n;
|
|
581
|
-
n = [], s.forEach(a);
|
|
582
|
-
}
|
|
583
|
-
n = {
|
|
584
|
-
push: function(i) {
|
|
585
|
-
return a(i);
|
|
586
|
-
},
|
|
587
|
-
filter: function() {
|
|
588
|
-
return n;
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
},
|
|
592
|
-
assignMedium: function(a) {
|
|
593
|
-
r = !0;
|
|
594
|
-
var s = [];
|
|
595
|
-
if (n.length) {
|
|
596
|
-
var i = n;
|
|
597
|
-
n = [], i.forEach(a), s = n;
|
|
598
|
-
}
|
|
599
|
-
var d = function() {
|
|
600
|
-
var f = s;
|
|
601
|
-
s = [], f.forEach(a);
|
|
602
|
-
}, l = function() {
|
|
603
|
-
return Promise.resolve().then(d);
|
|
604
|
-
};
|
|
605
|
-
l(), n = {
|
|
606
|
-
push: function(f) {
|
|
607
|
-
s.push(f), l();
|
|
608
|
-
},
|
|
609
|
-
filter: function(f) {
|
|
610
|
-
return s = s.filter(f), n;
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
return o;
|
|
616
|
-
}
|
|
617
|
-
function Yt(e) {
|
|
618
|
-
e === void 0 && (e = {});
|
|
619
|
-
var t = Gt(null);
|
|
620
|
-
return t.options = N({ async: !0, ssr: !1 }, e), t;
|
|
621
|
-
}
|
|
622
|
-
var Le = function(e) {
|
|
623
|
-
var t = e.sideCar, n = xe(e, ["sideCar"]);
|
|
624
|
-
if (!t)
|
|
625
|
-
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
626
|
-
var r = t.read();
|
|
627
|
-
if (!r)
|
|
628
|
-
throw new Error("Sidecar medium not found");
|
|
629
|
-
return c.createElement(r, N({}, n));
|
|
630
|
-
};
|
|
631
|
-
Le.isSideCarExport = !0;
|
|
632
|
-
function Xt(e, t) {
|
|
633
|
-
return e.useMedium(t), Le;
|
|
634
|
-
}
|
|
635
|
-
var _e = Yt(), ne = function() {
|
|
636
|
-
}, H = c.forwardRef(function(e, t) {
|
|
637
|
-
var n = c.useRef(null), r = c.useState({
|
|
638
|
-
onScrollCapture: ne,
|
|
639
|
-
onWheelCapture: ne,
|
|
640
|
-
onTouchMoveCapture: ne
|
|
641
|
-
}), o = r[0], a = r[1], s = e.forwardProps, i = e.children, d = e.className, l = e.removeScrollBar, f = e.enabled, v = e.shards, m = e.sideCar, p = e.noIsolation, S = e.inert, u = e.allowPinchZoom, h = e.as, g = h === void 0 ? "div" : h, P = e.gapMode, b = xe(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = m, w = Kt([n, t]), D = N(N({}, b), o);
|
|
642
|
-
return c.createElement(
|
|
643
|
-
c.Fragment,
|
|
644
|
-
null,
|
|
645
|
-
f && c.createElement(C, { sideCar: _e, removeScrollBar: l, shards: v, noIsolation: p, inert: S, setCallbacks: a, allowPinchZoom: !!u, lockRef: n, gapMode: P }),
|
|
646
|
-
s ? c.cloneElement(c.Children.only(i), N(N({}, D), { ref: w })) : c.createElement(g, N({}, D, { className: d, ref: w }), i)
|
|
647
|
-
);
|
|
648
|
-
});
|
|
649
|
-
H.defaultProps = {
|
|
650
|
-
enabled: !0,
|
|
651
|
-
removeScrollBar: !0,
|
|
652
|
-
inert: !1
|
|
653
|
-
};
|
|
654
|
-
H.classNames = {
|
|
655
|
-
fullWidth: Y,
|
|
656
|
-
zeroRight: G
|
|
657
|
-
};
|
|
658
|
-
var zt = function() {
|
|
659
|
-
if (typeof __webpack_nonce__ < "u")
|
|
660
|
-
return __webpack_nonce__;
|
|
661
|
-
};
|
|
662
|
-
function Ht() {
|
|
663
|
-
if (!document)
|
|
664
|
-
return null;
|
|
665
|
-
var e = document.createElement("style");
|
|
666
|
-
e.type = "text/css";
|
|
667
|
-
var t = zt();
|
|
668
|
-
return t && e.setAttribute("nonce", t), e;
|
|
669
|
-
}
|
|
670
|
-
function Zt(e, t) {
|
|
671
|
-
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
672
|
-
}
|
|
673
|
-
function qt(e) {
|
|
674
|
-
var t = document.head || document.getElementsByTagName("head")[0];
|
|
675
|
-
t.appendChild(e);
|
|
676
|
-
}
|
|
677
|
-
var Qt = function() {
|
|
678
|
-
var e = 0, t = null;
|
|
679
|
-
return {
|
|
680
|
-
add: function(n) {
|
|
681
|
-
e == 0 && (t = Ht()) && (Zt(t, n), qt(t)), e++;
|
|
682
|
-
},
|
|
683
|
-
remove: function() {
|
|
684
|
-
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
685
|
-
}
|
|
686
|
-
};
|
|
687
|
-
}, Jt = function() {
|
|
688
|
-
var e = Qt();
|
|
689
|
-
return function(t, n) {
|
|
690
|
-
c.useEffect(function() {
|
|
691
|
-
return e.add(t), function() {
|
|
692
|
-
e.remove();
|
|
693
|
-
};
|
|
694
|
-
}, [t && n]);
|
|
695
|
-
};
|
|
696
|
-
}, Fe = function() {
|
|
697
|
-
var e = Jt(), t = function(n) {
|
|
698
|
-
var r = n.styles, o = n.dynamic;
|
|
699
|
-
return e(r, o), null;
|
|
700
|
-
};
|
|
701
|
-
return t;
|
|
702
|
-
}, en = {
|
|
703
|
-
left: 0,
|
|
704
|
-
top: 0,
|
|
705
|
-
right: 0,
|
|
706
|
-
gap: 0
|
|
707
|
-
}, re = function(e) {
|
|
708
|
-
return parseInt(e || "", 10) || 0;
|
|
709
|
-
}, tn = function(e) {
|
|
710
|
-
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
711
|
-
return [re(n), re(r), re(o)];
|
|
712
|
-
}, nn = function(e) {
|
|
713
|
-
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
714
|
-
return en;
|
|
715
|
-
var t = tn(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
716
|
-
return {
|
|
717
|
-
left: t[0],
|
|
718
|
-
top: t[1],
|
|
719
|
-
right: t[2],
|
|
720
|
-
gap: Math.max(0, r - n + t[2] - t[0])
|
|
721
|
-
};
|
|
722
|
-
}, rn = Fe(), W = "data-scroll-locked", on = function(e, t, n, r) {
|
|
723
|
-
var o = e.left, a = e.top, s = e.right, i = e.gap;
|
|
724
|
-
return n === void 0 && (n = "margin"), `
|
|
725
|
-
.`.concat(Bt, ` {
|
|
726
|
-
overflow: hidden `).concat(r, `;
|
|
727
|
-
padding-right: `).concat(i, "px ").concat(r, `;
|
|
728
|
-
}
|
|
729
|
-
body[`).concat(W, `] {
|
|
730
|
-
overflow: hidden `).concat(r, `;
|
|
731
|
-
overscroll-behavior: contain;
|
|
732
|
-
`).concat([
|
|
733
|
-
t && "position: relative ".concat(r, ";"),
|
|
734
|
-
n === "margin" && `
|
|
735
|
-
padding-left: `.concat(o, `px;
|
|
736
|
-
padding-top: `).concat(a, `px;
|
|
737
|
-
padding-right: `).concat(s, `px;
|
|
738
|
-
margin-left:0;
|
|
739
|
-
margin-top:0;
|
|
740
|
-
margin-right: `).concat(i, "px ").concat(r, `;
|
|
741
|
-
`),
|
|
742
|
-
n === "padding" && "padding-right: ".concat(i, "px ").concat(r, ";")
|
|
743
|
-
].filter(Boolean).join(""), `
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
.`).concat(G, ` {
|
|
747
|
-
right: `).concat(i, "px ").concat(r, `;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
.`).concat(Y, ` {
|
|
751
|
-
margin-right: `).concat(i, "px ").concat(r, `;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
.`).concat(G, " .").concat(G, ` {
|
|
755
|
-
right: 0 `).concat(r, `;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
.`).concat(Y, " .").concat(Y, ` {
|
|
759
|
-
margin-right: 0 `).concat(r, `;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
body[`).concat(W, `] {
|
|
763
|
-
`).concat(Ut, ": ").concat(i, `px;
|
|
764
|
-
}
|
|
765
|
-
`);
|
|
766
|
-
}, Se = function() {
|
|
767
|
-
var e = parseInt(document.body.getAttribute(W) || "0", 10);
|
|
768
|
-
return isFinite(e) ? e : 0;
|
|
769
|
-
}, an = function() {
|
|
770
|
-
c.useEffect(function() {
|
|
771
|
-
return document.body.setAttribute(W, (Se() + 1).toString()), function() {
|
|
772
|
-
var e = Se() - 1;
|
|
773
|
-
e <= 0 ? document.body.removeAttribute(W) : document.body.setAttribute(W, e.toString());
|
|
774
|
-
};
|
|
775
|
-
}, []);
|
|
776
|
-
}, cn = function(e) {
|
|
777
|
-
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
778
|
-
an();
|
|
779
|
-
var a = c.useMemo(function() {
|
|
780
|
-
return nn(o);
|
|
781
|
-
}, [o]);
|
|
782
|
-
return c.createElement(rn, { styles: on(a, !t, o, n ? "" : "!important") });
|
|
783
|
-
}, ie = !1;
|
|
784
|
-
if (typeof window < "u")
|
|
785
|
-
try {
|
|
786
|
-
var $ = Object.defineProperty({}, "passive", {
|
|
787
|
-
get: function() {
|
|
788
|
-
return ie = !0, !0;
|
|
789
|
-
}
|
|
790
|
-
});
|
|
791
|
-
window.addEventListener("test", $, $), window.removeEventListener("test", $, $);
|
|
792
|
-
} catch {
|
|
793
|
-
ie = !1;
|
|
794
|
-
}
|
|
795
|
-
var _ = ie ? { passive: !1 } : !1, sn = function(e) {
|
|
796
|
-
return e.tagName === "TEXTAREA";
|
|
797
|
-
}, ke = function(e, t) {
|
|
798
|
-
if (!(e instanceof Element))
|
|
799
|
-
return !1;
|
|
800
|
-
var n = window.getComputedStyle(e);
|
|
801
|
-
return (
|
|
802
|
-
// not-not-scrollable
|
|
803
|
-
n[t] !== "hidden" && // contains scroll inside self
|
|
804
|
-
!(n.overflowY === n.overflowX && !sn(e) && n[t] === "visible")
|
|
805
|
-
);
|
|
806
|
-
}, un = function(e) {
|
|
807
|
-
return ke(e, "overflowY");
|
|
808
|
-
}, ln = function(e) {
|
|
809
|
-
return ke(e, "overflowX");
|
|
810
|
-
}, we = function(e, t) {
|
|
811
|
-
var n = t.ownerDocument, r = t;
|
|
812
|
-
do {
|
|
813
|
-
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
814
|
-
var o = We(e, r);
|
|
815
|
-
if (o) {
|
|
816
|
-
var a = Be(e, r), s = a[1], i = a[2];
|
|
817
|
-
if (s > i)
|
|
818
|
-
return !0;
|
|
819
|
-
}
|
|
820
|
-
r = r.parentNode;
|
|
821
|
-
} while (r && r !== n.body);
|
|
822
|
-
return !1;
|
|
823
|
-
}, dn = function(e) {
|
|
824
|
-
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
825
|
-
return [
|
|
826
|
-
t,
|
|
827
|
-
n,
|
|
828
|
-
r
|
|
829
|
-
];
|
|
830
|
-
}, fn = function(e) {
|
|
831
|
-
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
832
|
-
return [
|
|
833
|
-
t,
|
|
834
|
-
n,
|
|
835
|
-
r
|
|
836
|
-
];
|
|
837
|
-
}, We = function(e, t) {
|
|
838
|
-
return e === "v" ? un(t) : ln(t);
|
|
839
|
-
}, Be = function(e, t) {
|
|
840
|
-
return e === "v" ? dn(t) : fn(t);
|
|
841
|
-
}, vn = function(e, t) {
|
|
842
|
-
return e === "h" && t === "rtl" ? -1 : 1;
|
|
843
|
-
}, mn = function(e, t, n, r, o) {
|
|
844
|
-
var a = vn(e, window.getComputedStyle(t).direction), s = a * r, i = n.target, d = t.contains(i), l = !1, f = s > 0, v = 0, m = 0;
|
|
845
|
-
do {
|
|
846
|
-
var p = Be(e, i), S = p[0], u = p[1], h = p[2], g = u - h - a * S;
|
|
847
|
-
(S || g) && We(e, i) && (v += g, m += S), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
|
|
848
|
-
} while (
|
|
849
|
-
// portaled content
|
|
850
|
-
!d && i !== document.body || // self content
|
|
851
|
-
d && (t.contains(i) || t === i)
|
|
852
|
-
);
|
|
853
|
-
return (f && Math.abs(v) < 1 || !f && Math.abs(m) < 1) && (l = !0), l;
|
|
854
|
-
}, j = function(e) {
|
|
855
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
856
|
-
}, Pe = function(e) {
|
|
857
|
-
return [e.deltaX, e.deltaY];
|
|
858
|
-
}, Re = function(e) {
|
|
859
|
-
return e && "current" in e ? e.current : e;
|
|
860
|
-
}, hn = function(e, t) {
|
|
861
|
-
return e[0] === t[0] && e[1] === t[1];
|
|
862
|
-
}, pn = function(e) {
|
|
863
|
-
return `
|
|
864
|
-
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
865
|
-
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
866
|
-
`);
|
|
867
|
-
}, gn = 0, F = [];
|
|
868
|
-
function yn(e) {
|
|
869
|
-
var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), o = c.useState(gn++)[0], a = c.useState(Fe)[0], s = c.useRef(e);
|
|
870
|
-
c.useEffect(function() {
|
|
871
|
-
s.current = e;
|
|
872
|
-
}, [e]), c.useEffect(function() {
|
|
873
|
-
if (e.inert) {
|
|
874
|
-
document.body.classList.add("block-interactivity-".concat(o));
|
|
875
|
-
var u = Wt([e.lockRef.current], (e.shards || []).map(Re), !0).filter(Boolean);
|
|
876
|
-
return u.forEach(function(h) {
|
|
877
|
-
return h.classList.add("allow-interactivity-".concat(o));
|
|
878
|
-
}), function() {
|
|
879
|
-
document.body.classList.remove("block-interactivity-".concat(o)), u.forEach(function(h) {
|
|
880
|
-
return h.classList.remove("allow-interactivity-".concat(o));
|
|
881
|
-
});
|
|
882
|
-
};
|
|
883
|
-
}
|
|
884
|
-
}, [e.inert, e.lockRef.current, e.shards]);
|
|
885
|
-
var i = c.useCallback(function(u, h) {
|
|
886
|
-
if ("touches" in u && u.touches.length === 2 || u.type === "wheel" && u.ctrlKey)
|
|
887
|
-
return !s.current.allowPinchZoom;
|
|
888
|
-
var g = j(u), P = n.current, b = "deltaX" in u ? u.deltaX : P[0] - g[0], C = "deltaY" in u ? u.deltaY : P[1] - g[1], w, D = u.target, E = Math.abs(b) > Math.abs(C) ? "h" : "v";
|
|
889
|
-
if ("touches" in u && E === "h" && D.type === "range")
|
|
890
|
-
return !1;
|
|
891
|
-
var O = we(E, D);
|
|
892
|
-
if (!O)
|
|
893
|
-
return !0;
|
|
894
|
-
if (O ? w = E : (w = E === "v" ? "h" : "v", O = we(E, D)), !O)
|
|
895
|
-
return !1;
|
|
896
|
-
if (!r.current && "changedTouches" in u && (b || C) && (r.current = w), !w)
|
|
897
|
-
return !0;
|
|
898
|
-
var B = r.current || w;
|
|
899
|
-
return mn(B, h, u, B === "h" ? b : C);
|
|
900
|
-
}, []), d = c.useCallback(function(u) {
|
|
901
|
-
var h = u;
|
|
902
|
-
if (!(!F.length || F[F.length - 1] !== a)) {
|
|
903
|
-
var g = "deltaY" in h ? Pe(h) : j(h), P = t.current.filter(function(w) {
|
|
904
|
-
return w.name === h.type && (w.target === h.target || h.target === w.shadowParent) && hn(w.delta, g);
|
|
905
|
-
})[0];
|
|
906
|
-
if (P && P.should) {
|
|
907
|
-
h.cancelable && h.preventDefault();
|
|
908
|
-
return;
|
|
909
|
-
}
|
|
910
|
-
if (!P) {
|
|
911
|
-
var b = (s.current.shards || []).map(Re).filter(Boolean).filter(function(w) {
|
|
912
|
-
return w.contains(h.target);
|
|
913
|
-
}), C = b.length > 0 ? i(h, b[0]) : !s.current.noIsolation;
|
|
914
|
-
C && h.cancelable && h.preventDefault();
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
}, []), l = c.useCallback(function(u, h, g, P) {
|
|
918
|
-
var b = { name: u, delta: h, target: g, should: P, shadowParent: En(g) };
|
|
919
|
-
t.current.push(b), setTimeout(function() {
|
|
920
|
-
t.current = t.current.filter(function(C) {
|
|
921
|
-
return C !== b;
|
|
922
|
-
});
|
|
923
|
-
}, 1);
|
|
924
|
-
}, []), f = c.useCallback(function(u) {
|
|
925
|
-
n.current = j(u), r.current = void 0;
|
|
926
|
-
}, []), v = c.useCallback(function(u) {
|
|
927
|
-
l(u.type, Pe(u), u.target, i(u, e.lockRef.current));
|
|
928
|
-
}, []), m = c.useCallback(function(u) {
|
|
929
|
-
l(u.type, j(u), u.target, i(u, e.lockRef.current));
|
|
930
|
-
}, []);
|
|
931
|
-
c.useEffect(function() {
|
|
932
|
-
return F.push(a), e.setCallbacks({
|
|
933
|
-
onScrollCapture: v,
|
|
934
|
-
onWheelCapture: v,
|
|
935
|
-
onTouchMoveCapture: m
|
|
936
|
-
}), document.addEventListener("wheel", d, _), document.addEventListener("touchmove", d, _), document.addEventListener("touchstart", f, _), function() {
|
|
937
|
-
F = F.filter(function(u) {
|
|
938
|
-
return u !== a;
|
|
939
|
-
}), document.removeEventListener("wheel", d, _), document.removeEventListener("touchmove", d, _), document.removeEventListener("touchstart", f, _);
|
|
940
|
-
};
|
|
941
|
-
}, []);
|
|
942
|
-
var p = e.removeScrollBar, S = e.inert;
|
|
943
|
-
return c.createElement(
|
|
944
|
-
c.Fragment,
|
|
945
|
-
null,
|
|
946
|
-
S ? c.createElement(a, { styles: pn(o) }) : null,
|
|
947
|
-
p ? c.createElement(cn, { gapMode: e.gapMode }) : null
|
|
948
|
-
);
|
|
949
|
-
}
|
|
950
|
-
function En(e) {
|
|
951
|
-
for (var t = null; e !== null; )
|
|
952
|
-
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
953
|
-
return t;
|
|
954
|
-
}
|
|
955
|
-
const bn = Xt(_e, yn);
|
|
956
|
-
var Ue = c.forwardRef(function(e, t) {
|
|
957
|
-
return c.createElement(H, N({}, e, { ref: t, sideCar: bn }));
|
|
958
|
-
});
|
|
959
|
-
Ue.classNames = H.classNames;
|
|
960
|
-
var Cn = function(e) {
|
|
961
|
-
if (typeof document > "u")
|
|
962
|
-
return null;
|
|
963
|
-
var t = Array.isArray(e) ? e[0] : e;
|
|
964
|
-
return t.ownerDocument.body;
|
|
965
|
-
}, k = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), V = {}, oe = 0, $e = function(e) {
|
|
966
|
-
return e && (e.host || $e(e.parentNode));
|
|
967
|
-
}, Sn = function(e, t) {
|
|
968
|
-
return t.map(function(n) {
|
|
969
|
-
if (e.contains(n))
|
|
970
|
-
return n;
|
|
971
|
-
var r = $e(n);
|
|
972
|
-
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
973
|
-
}).filter(function(n) {
|
|
974
|
-
return !!n;
|
|
975
|
-
});
|
|
976
|
-
}, wn = function(e, t, n, r) {
|
|
977
|
-
var o = Sn(t, Array.isArray(e) ? e : [e]);
|
|
978
|
-
V[n] || (V[n] = /* @__PURE__ */ new WeakMap());
|
|
979
|
-
var a = V[n], s = [], i = /* @__PURE__ */ new Set(), d = new Set(o), l = function(v) {
|
|
980
|
-
!v || i.has(v) || (i.add(v), l(v.parentNode));
|
|
981
|
-
};
|
|
982
|
-
o.forEach(l);
|
|
983
|
-
var f = function(v) {
|
|
984
|
-
!v || d.has(v) || Array.prototype.forEach.call(v.children, function(m) {
|
|
985
|
-
if (i.has(m))
|
|
986
|
-
f(m);
|
|
987
|
-
else
|
|
988
|
-
try {
|
|
989
|
-
var p = m.getAttribute(r), S = p !== null && p !== "false", u = (k.get(m) || 0) + 1, h = (a.get(m) || 0) + 1;
|
|
990
|
-
k.set(m, u), a.set(m, h), s.push(m), u === 1 && S && K.set(m, !0), h === 1 && m.setAttribute(n, "true"), S || m.setAttribute(r, "true");
|
|
991
|
-
} catch (g) {
|
|
992
|
-
console.error("aria-hidden: cannot operate on ", m, g);
|
|
993
|
-
}
|
|
994
|
-
});
|
|
995
|
-
};
|
|
996
|
-
return f(t), i.clear(), oe++, function() {
|
|
997
|
-
s.forEach(function(v) {
|
|
998
|
-
var m = k.get(v) - 1, p = a.get(v) - 1;
|
|
999
|
-
k.set(v, m), a.set(v, p), m || (K.has(v) || v.removeAttribute(r), K.delete(v)), p || v.removeAttribute(n);
|
|
1000
|
-
}), oe--, oe || (k = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), V = {});
|
|
1001
|
-
};
|
|
1002
|
-
}, Pn = function(e, t, n) {
|
|
1003
|
-
n === void 0 && (n = "data-aria-hidden");
|
|
1004
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o = Cn(e);
|
|
1005
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), wn(r, o, n, "aria-hidden")) : function() {
|
|
1006
|
-
return null;
|
|
1007
|
-
};
|
|
1008
|
-
}, ce = "Dialog", [je, kn] = st(ce), [Rn, R] = je(ce), Ke = (e) => {
|
|
1009
|
-
const {
|
|
1010
|
-
__scopeDialog: t,
|
|
1011
|
-
children: n,
|
|
1012
|
-
open: r,
|
|
1013
|
-
defaultOpen: o,
|
|
1014
|
-
onOpenChange: a,
|
|
1015
|
-
modal: s = !0
|
|
1016
|
-
} = e, i = c.useRef(null), d = c.useRef(null), [l = !1, f] = vt({
|
|
1017
|
-
prop: r,
|
|
1018
|
-
defaultProp: o,
|
|
1019
|
-
onChange: a
|
|
1020
|
-
});
|
|
1021
|
-
return /* @__PURE__ */ y(
|
|
1022
|
-
Rn,
|
|
1023
|
-
{
|
|
1024
|
-
scope: t,
|
|
1025
|
-
triggerRef: i,
|
|
1026
|
-
contentRef: d,
|
|
1027
|
-
contentId: q(),
|
|
1028
|
-
titleId: q(),
|
|
1029
|
-
descriptionId: q(),
|
|
1030
|
-
open: l,
|
|
1031
|
-
onOpenChange: f,
|
|
1032
|
-
onOpenToggle: c.useCallback(() => f((v) => !v), [f]),
|
|
1033
|
-
modal: s,
|
|
1034
|
-
children: n
|
|
1035
|
-
}
|
|
1036
|
-
);
|
|
1037
|
-
};
|
|
1038
|
-
Ke.displayName = ce;
|
|
1039
|
-
var Ve = "DialogTrigger", Ge = c.forwardRef(
|
|
1040
|
-
(e, t) => {
|
|
1041
|
-
const { __scopeDialog: n, ...r } = e, o = R(Ve, n), a = L(t, o.triggerRef);
|
|
1042
|
-
return /* @__PURE__ */ y(
|
|
1043
|
-
A.button,
|
|
1044
|
-
{
|
|
1045
|
-
type: "button",
|
|
1046
|
-
"aria-haspopup": "dialog",
|
|
1047
|
-
"aria-expanded": o.open,
|
|
1048
|
-
"aria-controls": o.contentId,
|
|
1049
|
-
"data-state": le(o.open),
|
|
1050
|
-
...r,
|
|
1051
|
-
ref: a,
|
|
1052
|
-
onClick: M(e.onClick, o.onOpenToggle)
|
|
1053
|
-
}
|
|
1054
|
-
);
|
|
1055
|
-
}
|
|
1056
|
-
);
|
|
1057
|
-
Ge.displayName = Ve;
|
|
1058
|
-
var se = "DialogPortal", [Nn, Ye] = je(se, {
|
|
1059
|
-
forceMount: void 0
|
|
1060
|
-
}), Xe = (e) => {
|
|
1061
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = R(se, t);
|
|
1062
|
-
return /* @__PURE__ */ y(Nn, { scope: t, forceMount: n, children: c.Children.map(r, (s) => /* @__PURE__ */ y(z, { present: n || a.open, children: /* @__PURE__ */ y(Ie, { asChild: !0, container: o, children: s }) })) });
|
|
1063
|
-
};
|
|
1064
|
-
Xe.displayName = se;
|
|
1065
|
-
var X = "DialogOverlay", ze = c.forwardRef(
|
|
1066
|
-
(e, t) => {
|
|
1067
|
-
const n = Ye(X, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = R(X, e.__scopeDialog);
|
|
1068
|
-
return a.modal ? /* @__PURE__ */ y(z, { present: r || a.open, children: /* @__PURE__ */ y(Dn, { ...o, ref: t }) }) : null;
|
|
1069
|
-
}
|
|
1070
|
-
);
|
|
1071
|
-
ze.displayName = X;
|
|
1072
|
-
var Dn = c.forwardRef(
|
|
1073
|
-
(e, t) => {
|
|
1074
|
-
const { __scopeDialog: n, ...r } = e, o = R(X, n);
|
|
1075
|
-
return (
|
|
1076
|
-
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1077
|
-
// ie. when `Overlay` and `Content` are siblings
|
|
1078
|
-
/* @__PURE__ */ y(Ue, { as: Ne, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ y(
|
|
1079
|
-
A.div,
|
|
1080
|
-
{
|
|
1081
|
-
"data-state": le(o.open),
|
|
1082
|
-
...r,
|
|
1083
|
-
ref: t,
|
|
1084
|
-
style: { pointerEvents: "auto", ...r.style }
|
|
1085
|
-
}
|
|
1086
|
-
) })
|
|
1087
|
-
);
|
|
1088
|
-
}
|
|
1089
|
-
), x = "DialogContent", He = c.forwardRef(
|
|
1090
|
-
(e, t) => {
|
|
1091
|
-
const n = Ye(x, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = R(x, e.__scopeDialog);
|
|
1092
|
-
return /* @__PURE__ */ y(z, { present: r || a.open, children: a.modal ? /* @__PURE__ */ y(On, { ...o, ref: t }) : /* @__PURE__ */ y(An, { ...o, ref: t }) });
|
|
1093
|
-
}
|
|
1094
|
-
);
|
|
1095
|
-
He.displayName = x;
|
|
1096
|
-
var On = c.forwardRef(
|
|
1097
|
-
(e, t) => {
|
|
1098
|
-
const n = R(x, e.__scopeDialog), r = c.useRef(null), o = L(t, n.contentRef, r);
|
|
1099
|
-
return c.useEffect(() => {
|
|
1100
|
-
const a = r.current;
|
|
1101
|
-
if (a) return Pn(a);
|
|
1102
|
-
}, []), /* @__PURE__ */ y(
|
|
1103
|
-
Ze,
|
|
1104
|
-
{
|
|
1105
|
-
...e,
|
|
1106
|
-
ref: o,
|
|
1107
|
-
trapFocus: n.open,
|
|
1108
|
-
disableOutsidePointerEvents: !0,
|
|
1109
|
-
onCloseAutoFocus: M(e.onCloseAutoFocus, (a) => {
|
|
1110
|
-
var s;
|
|
1111
|
-
a.preventDefault(), (s = n.triggerRef.current) == null || s.focus();
|
|
1112
|
-
}),
|
|
1113
|
-
onPointerDownOutside: M(e.onPointerDownOutside, (a) => {
|
|
1114
|
-
const s = a.detail.originalEvent, i = s.button === 0 && s.ctrlKey === !0;
|
|
1115
|
-
(s.button === 2 || i) && a.preventDefault();
|
|
1116
|
-
}),
|
|
1117
|
-
onFocusOutside: M(
|
|
1118
|
-
e.onFocusOutside,
|
|
1119
|
-
(a) => a.preventDefault()
|
|
1120
|
-
)
|
|
1121
|
-
}
|
|
1122
|
-
);
|
|
1123
|
-
}
|
|
1124
|
-
), An = c.forwardRef(
|
|
1125
|
-
(e, t) => {
|
|
1126
|
-
const n = R(x, e.__scopeDialog), r = c.useRef(!1), o = c.useRef(!1);
|
|
1127
|
-
return /* @__PURE__ */ y(
|
|
1128
|
-
Ze,
|
|
1129
|
-
{
|
|
1130
|
-
...e,
|
|
1131
|
-
ref: t,
|
|
1132
|
-
trapFocus: !1,
|
|
1133
|
-
disableOutsidePointerEvents: !1,
|
|
1134
|
-
onCloseAutoFocus: (a) => {
|
|
1135
|
-
var s, i;
|
|
1136
|
-
(s = e.onCloseAutoFocus) == null || s.call(e, a), a.defaultPrevented || (r.current || (i = n.triggerRef.current) == null || i.focus(), a.preventDefault()), r.current = !1, o.current = !1;
|
|
1137
|
-
},
|
|
1138
|
-
onInteractOutside: (a) => {
|
|
1139
|
-
var d, l;
|
|
1140
|
-
(d = e.onInteractOutside) == null || d.call(e, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
1141
|
-
const s = a.target;
|
|
1142
|
-
((l = n.triggerRef.current) == null ? void 0 : l.contains(s)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
);
|
|
1146
|
-
}
|
|
1147
|
-
), Ze = c.forwardRef(
|
|
1148
|
-
(e, t) => {
|
|
1149
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, i = R(x, n), d = c.useRef(null), l = L(t, d);
|
|
1150
|
-
return kt(), /* @__PURE__ */ de(fe, { children: [
|
|
1151
|
-
/* @__PURE__ */ y(
|
|
1152
|
-
Te,
|
|
1153
|
-
{
|
|
1154
|
-
asChild: !0,
|
|
1155
|
-
loop: !0,
|
|
1156
|
-
trapped: r,
|
|
1157
|
-
onMountAutoFocus: o,
|
|
1158
|
-
onUnmountAutoFocus: a,
|
|
1159
|
-
children: /* @__PURE__ */ y(
|
|
1160
|
-
Oe,
|
|
1161
|
-
{
|
|
1162
|
-
role: "dialog",
|
|
1163
|
-
id: i.contentId,
|
|
1164
|
-
"aria-describedby": i.descriptionId,
|
|
1165
|
-
"aria-labelledby": i.titleId,
|
|
1166
|
-
"data-state": le(i.open),
|
|
1167
|
-
...s,
|
|
1168
|
-
ref: l,
|
|
1169
|
-
onDismiss: () => i.onOpenChange(!1)
|
|
1170
|
-
}
|
|
1171
|
-
)
|
|
1172
|
-
}
|
|
1173
|
-
),
|
|
1174
|
-
/* @__PURE__ */ de(fe, { children: [
|
|
1175
|
-
/* @__PURE__ */ y(Tn, { titleId: i.titleId }),
|
|
1176
|
-
/* @__PURE__ */ y(In, { contentRef: d, descriptionId: i.descriptionId })
|
|
1177
|
-
] })
|
|
1178
|
-
] });
|
|
1179
|
-
}
|
|
1180
|
-
), ue = "DialogTitle", qe = c.forwardRef(
|
|
1181
|
-
(e, t) => {
|
|
1182
|
-
const { __scopeDialog: n, ...r } = e, o = R(ue, n);
|
|
1183
|
-
return /* @__PURE__ */ y(A.h2, { id: o.titleId, ...r, ref: t });
|
|
1184
|
-
}
|
|
1185
|
-
);
|
|
1186
|
-
qe.displayName = ue;
|
|
1187
|
-
var Qe = "DialogDescription", Je = c.forwardRef(
|
|
1188
|
-
(e, t) => {
|
|
1189
|
-
const { __scopeDialog: n, ...r } = e, o = R(Qe, n);
|
|
1190
|
-
return /* @__PURE__ */ y(A.p, { id: o.descriptionId, ...r, ref: t });
|
|
1191
|
-
}
|
|
1192
|
-
);
|
|
1193
|
-
Je.displayName = Qe;
|
|
1194
|
-
var et = "DialogClose", tt = c.forwardRef(
|
|
1195
|
-
(e, t) => {
|
|
1196
|
-
const { __scopeDialog: n, ...r } = e, o = R(et, n);
|
|
1197
|
-
return /* @__PURE__ */ y(
|
|
1198
|
-
A.button,
|
|
1199
|
-
{
|
|
1200
|
-
type: "button",
|
|
1201
|
-
...r,
|
|
1202
|
-
ref: t,
|
|
1203
|
-
onClick: M(e.onClick, () => o.onOpenChange(!1))
|
|
1204
|
-
}
|
|
1205
|
-
);
|
|
1206
|
-
}
|
|
1207
|
-
);
|
|
1208
|
-
tt.displayName = et;
|
|
1209
|
-
function le(e) {
|
|
1210
|
-
return e ? "open" : "closed";
|
|
1211
|
-
}
|
|
1212
|
-
var nt = "DialogTitleWarning", [Wn, rt] = ct(nt, {
|
|
1213
|
-
contentName: x,
|
|
1214
|
-
titleName: ue,
|
|
1215
|
-
docsSlug: "dialog"
|
|
1216
|
-
}), Tn = ({ titleId: e }) => {
|
|
1217
|
-
const t = rt(nt), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
1218
|
-
|
|
1219
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
1220
|
-
|
|
1221
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
1222
|
-
return c.useEffect(() => {
|
|
1223
|
-
e && (document.getElementById(e) || console.error(n));
|
|
1224
|
-
}, [n, e]), null;
|
|
1225
|
-
}, Mn = "DialogDescriptionWarning", In = ({ contentRef: e, descriptionId: t }) => {
|
|
1226
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${rt(Mn).contentName}}.`;
|
|
1227
|
-
return c.useEffect(() => {
|
|
1228
|
-
var a;
|
|
1229
|
-
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
1230
|
-
t && o && (document.getElementById(t) || console.warn(r));
|
|
1231
|
-
}, [r, e, t]), null;
|
|
1232
|
-
}, Bn = Ke, Un = Ge, $n = Xe, jn = ze, Kn = He, Vn = qe, Gn = Je, Yn = tt;
|
|
1233
|
-
export {
|
|
1234
|
-
Yn as C,
|
|
1235
|
-
Gn as D,
|
|
1236
|
-
jn as O,
|
|
1237
|
-
$n as P,
|
|
1238
|
-
Bn as R,
|
|
1239
|
-
Vn as T,
|
|
1240
|
-
Kn as a,
|
|
1241
|
-
Un as b
|
|
1242
|
-
};
|