@pfct/purple 1.7.0-next.4 → 1.8.0
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/Icon/utils/svgr-cli.template.d.ts +8 -0
- package/dist/Icon/utils/svgr-cli.template.d.ts.map +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/chunks/{index.DVHp5IZe.js → index.-8MfVPUU.js} +47 -47
- package/dist/chunks/{index.DIaW0faE.js → index.93u2Cu_l.js} +1 -1
- package/dist/chunks/index.9yN3bH7k.js +283 -0
- package/dist/chunks/{index.BtGja8CI.js → index.B04X8ryw.js} +1 -1
- package/dist/chunks/{index.CskkVMdK.js → index.B3rAhBCw.js} +1 -1
- package/dist/chunks/{index.C1WOc90r.js → index.BKkcGVEJ.js} +81 -81
- package/dist/chunks/{index.BngGCpBd.js → index.BRcoZnsL.js} +1 -1
- package/dist/chunks/index.BTUe9yKh.js +1 -0
- package/dist/chunks/index.Beaq4T1c.js +1 -0
- package/dist/chunks/index.BspO8Abs.js +41 -0
- package/dist/chunks/index.CtIpJqp4.js +5 -0
- package/dist/chunks/{index.CDVf4iB0.js → index.CtswiKeA.js} +1 -1
- package/dist/chunks/{index.CVogEmtp.js → index.DIsmU7qE.js} +1 -1
- package/dist/chunks/index.DcvrUsoU.js +1 -0
- package/dist/chunks/{index.CIUK7hO2.js → index.DrALxeqy.js} +23 -23
- package/dist/chunks/{index.BmifSqQX.js → index.Dud5PpT2.js} +26 -26
- package/dist/chunks/index._MxrBNop.js +60 -0
- package/dist/chunks/index.mCMIO9lL.js +1 -0
- package/dist/chunks/jsx-runtime.B0Vkbtvx.js +14 -0
- package/dist/chunks/jsx-runtime.C63F304d.js +615 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.es.js +177 -177
- 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.d.ts.map +1 -1
- package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
- 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/IconBadge/index.styled.d.ts.map +1 -1
- 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/Badge/TextBadge/index.styled.d.ts.map +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +32 -32
- package/dist/components/BottomSheet/BaseBottomSheet/index.styled.d.ts +5 -5
- package/dist/components/BottomSheet/BaseBottomSheet/index.styled.d.ts.map +1 -1
- package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/NavBottomSheet/index.es.js +18 -11
- package/dist/components/BottomSheet/NavBottomSheet/index.styled.d.ts +2 -2
- package/dist/components/BottomSheet/NavBottomSheet/index.styled.d.ts.map +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.d.ts.map +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +14 -18
- package/dist/components/BottomSheet/TitleBottomSheet/index.styled.cjs.js +6 -4
- package/dist/components/BottomSheet/TitleBottomSheet/index.styled.d.ts +9 -6
- package/dist/components/BottomSheet/TitleBottomSheet/index.styled.d.ts.map +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.styled.es.js +14 -9
- package/dist/components/Button/BaseButton/index.cjs.js +1 -1
- package/dist/components/Button/BaseButton/index.es.js +4 -4
- package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/DoubleButton/index.d.ts +1 -1
- package/dist/components/Button/DoubleButton/index.d.ts.map +1 -1
- package/dist/components/Button/DoubleButton/index.es.js +6 -6
- package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatBaseButton/index.es.js +16 -16
- package/dist/components/Button/FloatBaseButton/index.styled.d.ts +12 -12
- package/dist/components/Button/FloatBaseButton/index.styled.d.ts.map +1 -1
- package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatDoubleButton/index.d.ts +1 -0
- package/dist/components/Button/FloatDoubleButton/index.d.ts.map +1 -1
- package/dist/components/Button/FloatDoubleButton/index.es.js +13 -13
- package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatSingleButton/index.d.ts +1 -0
- package/dist/components/Button/FloatSingleButton/index.d.ts.map +1 -1
- package/dist/components/Button/FloatSingleButton/index.es.js +8 -8
- package/dist/components/Button/SingleButton/index.cjs.js +1 -1
- package/dist/components/Button/SingleButton/index.d.ts +1 -0
- package/dist/components/Button/SingleButton/index.d.ts.map +1 -1
- package/dist/components/Button/SingleButton/index.es.js +3 -3
- package/dist/components/Button/TestButton/index.cjs.js +1 -1
- package/dist/components/Button/TestButton/index.es.js +2 -2
- 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/Card/index.styled.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
- package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.es.js +41 -36
- package/dist/components/Chips/ChipItem/index.styled.d.ts +2 -2
- package/dist/components/Chips/ChipItem/index.styled.d.ts.map +1 -1
- package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.es.js +15 -15
- 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.d.ts.map +1 -1
- package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
- 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/Group/index.styled.d.ts.map +1 -1
- 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/Item/index.styled.d.ts.map +1 -1
- 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 +7 -7
- package/dist/components/Control/CheckMark/index.styled.d.ts +2 -2
- package/dist/components/Control/CheckMark/index.styled.d.ts.map +1 -1
- 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.d.ts +2 -2
- package/dist/components/Control/RadioButton/index.styled.d.ts.map +1 -1
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.d.ts +1 -1
- package/dist/components/Control/Switch/index.d.ts.map +1 -1
- package/dist/components/Control/Switch/index.es.js +71 -71
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +12 -12
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +12 -12
- 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 +14 -14
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +18 -18
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +13 -13
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.d.ts +11 -11
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.d.ts.map +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +3 -3
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.d.ts +5 -5
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.d.ts.map +1 -1
- 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/Month/index.styled.d.ts.map +1 -1
- 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/Week/index.styled.d.ts.map +1 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +17 -17
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.styed.d.ts +6 -6
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.styed.d.ts.map +1 -1
- package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/index.es.js +31 -31
- package/dist/components/DatePicker/BaseDatePicker/index.styled.d.ts +2 -2
- package/dist/components/DatePicker/BaseDatePicker/index.styled.d.ts.map +1 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +27 -27
- package/dist/components/DatePicker/RangeDatePickerModal/index.styled.d.ts +5 -5
- package/dist/components/DatePicker/RangeDatePickerModal/index.styled.d.ts.map +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.d.ts +1 -0
- package/dist/components/DatePicker/SingleDatePickerModal/index.d.ts.map +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +21 -19
- package/dist/components/DatePicker/SingleDatePickerModal/index.styled.d.ts +2 -2
- package/dist/components/DatePicker/SingleDatePickerModal/index.styled.d.ts.map +1 -1
- package/dist/components/Divider/index.cjs.js +1 -1
- package/dist/components/Divider/index.es.js +17 -17
- package/dist/components/Input/BaseInput/index.cjs.js +1 -1
- package/dist/components/Input/BaseInput/index.es.js +44 -44
- package/dist/components/Input/BaseInput/index.styled.d.ts +2 -2
- package/dist/components/Input/BaseInput/index.styled.d.ts.map +1 -1
- package/dist/components/Input/NumberInput/index.cjs.js +1 -1
- package/dist/components/Input/NumberInput/index.es.js +23 -23
- package/dist/components/Input/PostfixInput/index.cjs.js +1 -1
- package/dist/components/Input/PostfixInput/index.es.js +61 -61
- package/dist/components/Input/PostfixInput/index.styled.d.ts +5 -5
- package/dist/components/Input/PostfixInput/index.styled.d.ts.map +1 -1
- package/dist/components/Input/ResidentNumberInput/index.cjs.js +1 -1
- package/dist/components/Input/ResidentNumberInput/index.es.js +65 -65
- package/dist/components/Input/ResidentNumberInput/index.styled.d.ts +8 -8
- package/dist/components/Input/ResidentNumberInput/index.styled.d.ts.map +1 -1
- package/dist/components/Input/TextField/index.cjs.js +1 -1
- package/dist/components/Input/TextField/index.es.js +33 -33
- 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 +4 -4
- package/dist/components/Input/common/InputFrame/index.styled.d.ts.map +1 -1
- package/dist/components/Input/index.cjs.js +1 -1
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.es.js +10 -12
- package/dist/components/LegacyModal/BaseModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/BaseModal/index.es.js +8 -8
- package/dist/components/LegacyModal/BaseModal/index.styled.d.ts +2 -2
- package/dist/components/LegacyModal/BaseModal/index.styled.d.ts.map +1 -1
- package/dist/components/LegacyModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/index.es.js +19 -19
- package/dist/components/LegacyModal/index.styled.d.ts +13 -13
- package/dist/components/LegacyModal/index.styled.d.ts.map +1 -1
- package/dist/components/List/index.cjs.js +1 -1
- package/dist/components/List/index.es.js +11 -11
- package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.es.js +3 -3
- package/dist/components/Loading/ProgressBar/index.styled.d.ts +4 -4
- package/dist/components/Loading/ProgressBar/index.styled.d.ts.map +1 -1
- package/dist/components/Loading/Skeleton/index.cjs.js +1 -1
- package/dist/components/Loading/Skeleton/index.d.ts +1 -1
- package/dist/components/Loading/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Loading/Skeleton/index.es.js +5 -5
- package/dist/components/Loading/Spinner/index.cjs.js +1 -1
- package/dist/components/Loading/Spinner/index.es.js +3 -3
- package/dist/components/Loading/Spinner/index.styled.d.ts +2 -2
- package/dist/components/Loading/Spinner/index.styled.d.ts.map +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.d.ts.map +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.d.ts +1 -1
- package/dist/components/MiniButton/common/index.styled.d.ts.map +1 -1
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.d.ts +2 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.es.js +42 -42
- 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/BaseNavigation/index.styled.d.ts.map +1 -1
- package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/BottomNavigationBar/index.d.ts +1 -3
- package/dist/components/Navigation/BottomNavigationBar/index.d.ts.map +1 -1
- package/dist/components/Navigation/BottomNavigationBar/index.es.js +10 -10
- package/dist/components/Navigation/Navigation.cjs.js +1 -0
- package/dist/components/Navigation/Navigation.d.ts +28 -0
- package/dist/components/Navigation/Navigation.d.ts.map +1 -0
- package/dist/components/Navigation/Navigation.es.js +75 -0
- package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/PageNavigationBar/index.es.js +22 -22
- package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/TitleNavigationBar/index.es.js +12 -12
- package/dist/components/Navigation/index.cjs.js +1 -1
- package/dist/components/Navigation/index.d.ts +7 -27
- package/dist/components/Navigation/index.d.ts.map +1 -1
- package/dist/components/Navigation/index.es.js +13 -73
- package/dist/components/Navigation/index.styled.d.ts +5 -5
- package/dist/components/Navigation/index.styled.d.ts.map +1 -1
- package/dist/components/OverlayRoot/index.cjs.js +1 -1
- package/dist/components/OverlayRoot/index.es.js +7 -7
- package/dist/components/OverlayRoot/index.styled.d.ts +2 -2
- package/dist/components/OverlayRoot/index.styled.d.ts.map +1 -1
- package/dist/components/Segment/BaseSegment/index.cjs.js +1 -1
- package/dist/components/Segment/BaseSegment/index.es.js +16 -16
- package/dist/components/Segment/BaseSegment/index.styled.d.ts +10 -10
- package/dist/components/Segment/BaseSegment/index.styled.d.ts.map +1 -1
- package/dist/components/Segment/ExtendSegment/index.cjs.js +1 -1
- package/dist/components/Segment/ExtendSegment/index.es.js +18 -18
- package/dist/components/Segment/ExtendSegment/index.styled.d.ts +12 -12
- package/dist/components/Segment/ExtendSegment/index.styled.d.ts.map +1 -1
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.d.ts +4 -4
- package/dist/components/SelectBox/index.d.ts.map +1 -1
- package/dist/components/SelectBox/index.es.js +43 -43
- package/dist/components/SelectBox/index.styled.d.ts +8 -8
- package/dist/components/SelectBox/index.styled.d.ts.map +1 -1
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.es.js +17 -15
- package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/TextTabs/index.es.js +18 -18
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.es.js +8 -7
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.es.js +26 -26
- package/dist/components/TextArea/index.cjs.js +1 -1
- package/dist/components/TextArea/index.es.js +17 -17
- package/dist/components/Title/index.cjs.js +1 -1
- package/dist/components/Title/index.d.ts.map +1 -1
- package/dist/components/Title/index.es.js +14 -17
- package/dist/components/Title/index.styled.cjs.js +17 -3
- package/dist/components/Title/index.styled.d.ts +11 -2
- package/dist/components/Title/index.styled.d.ts.map +1 -1
- package/dist/components/Title/index.styled.es.js +28 -11
- package/dist/components/Toast/index.cjs.js +1 -1
- package/dist/components/Toast/index.es.js +4 -4
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.es.js +160 -148
- package/dist/components/ui/bottomSheet.cjs.js +1 -1
- package/dist/components/ui/bottomSheet.es.js +92 -92
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.es.js +14 -13
- package/dist/components/ui/checkbox.cjs.js +1 -1
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.es.js +89 -89
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.es.js +48 -48
- package/dist/components/ui/drawer.cjs.js +2 -2
- package/dist/components/ui/drawer.es.js +159 -159
- package/dist/components/ui/impact-tooltip.cjs.js +1 -1
- package/dist/components/ui/impact-tooltip.d.ts +1 -1
- package/dist/components/ui/impact-tooltip.d.ts.map +1 -1
- package/dist/components/ui/impact-tooltip.es.js +133 -133
- 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.d.ts.map +1 -1
- package/dist/components/ui/share-ui.es.js +34 -34
- package/dist/components/ui/tooltip.cjs.js +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -2
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.es.js +134 -136
- package/dist/components/ui/typography.cjs.js +1 -1
- package/dist/components/ui/typography.d.ts +1 -1
- package/dist/components/ui/typography.d.ts.map +1 -1
- package/dist/components/ui/typography.es.js +3 -3
- 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.d.ts +2 -2
- package/dist/core/Display/index.styled.d.ts.map +1 -1
- package/dist/core/TextStyles/index.d.ts +32 -32
- 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 +3 -3
- package/dist/core/Typography/index.cjs.js +1 -1
- package/dist/core/Typography/index.es.js +19 -19
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.es.js +20 -8
- package/dist/hooks/useEventListener.cjs.js +1 -1
- package/dist/hooks/useEventListener.es.js +10 -10
- package/dist/hooks/useOverlayPreventScroll.cjs.js +1 -1
- package/dist/hooks/useOverlayPreventScroll.d.ts +2 -0
- package/dist/hooks/useOverlayPreventScroll.d.ts.map +1 -1
- package/dist/hooks/useOverlayPreventScroll.es.js +28 -26
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +1 -1
- package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
- package/dist/icons/src/aliases/aliases.es.js +4 -4
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.es.js +8 -8
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +11 -11
- package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/prefixed.es.js +38 -38
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +11 -11
- package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/suffixed.es.js +40 -40
- package/dist/icons/src/icons/Alarm_fill.d.ts +1 -1
- package/dist/icons/src/icons/Alarm_fill.d.ts.map +1 -1
- package/dist/icons/src/icons/Calendar.d.ts +1 -1
- package/dist/icons/src/icons/Calendar.d.ts.map +1 -1
- package/dist/icons/src/icons/Cancel.d.ts +1 -1
- package/dist/icons/src/icons/Cancel.d.ts.map +1 -1
- package/dist/icons/src/icons/Cancel_circle.d.ts +1 -1
- package/dist/icons/src/icons/Cancel_circle.d.ts.map +1 -1
- package/dist/icons/src/icons/Cart_fill.d.ts +1 -1
- package/dist/icons/src/icons/Cart_fill.d.ts.map +1 -1
- package/dist/icons/src/icons/Check.d.ts +1 -1
- package/dist/icons/src/icons/Check.d.ts.map +1 -1
- package/dist/icons/src/icons/Chevron_down.d.ts +1 -1
- package/dist/icons/src/icons/Chevron_down.d.ts.map +1 -1
- package/dist/icons/src/icons/Chevron_left.d.ts +1 -1
- package/dist/icons/src/icons/Chevron_left.d.ts.map +1 -1
- package/dist/icons/src/icons/Chevron_right.d.ts +1 -1
- package/dist/icons/src/icons/Chevron_right.d.ts.map +1 -1
- package/dist/icons/src/icons/Chevron_up.d.ts +1 -1
- package/dist/icons/src/icons/Chevron_up.d.ts.map +1 -1
- package/dist/icons/src/icons/Double_Chevron_left.d.ts +1 -1
- package/dist/icons/src/icons/Double_Chevron_left.d.ts.map +1 -1
- package/dist/icons/src/icons/Double_Chevron_right.d.ts +1 -1
- package/dist/icons/src/icons/Double_Chevron_right.d.ts.map +1 -1
- package/dist/icons/src/icons/Eye_fill.d.ts +1 -1
- package/dist/icons/src/icons/Eye_fill.d.ts.map +1 -1
- package/dist/icons/src/icons/Eye_slash_fill.d.ts +1 -1
- package/dist/icons/src/icons/Eye_slash_fill.d.ts.map +1 -1
- package/dist/icons/src/icons/Filter.d.ts +1 -1
- package/dist/icons/src/icons/Filter.d.ts.map +1 -1
- package/dist/icons/src/icons/Information.d.ts +1 -1
- package/dist/icons/src/icons/Information.d.ts.map +1 -1
- package/dist/icons/src/icons/Menu.d.ts +1 -1
- package/dist/icons/src/icons/Menu.d.ts.map +1 -1
- package/dist/icons/src/icons/More.d.ts +1 -1
- package/dist/icons/src/icons/More.d.ts.map +1 -1
- package/dist/icons/src/icons/Person_fill.d.ts +1 -1
- package/dist/icons/src/icons/Person_fill.d.ts.map +1 -1
- package/dist/icons/src/icons/Plus.d.ts +1 -1
- package/dist/icons/src/icons/Plus.d.ts.map +1 -1
- package/dist/icons/src/icons/Question_circle.d.ts +1 -1
- package/dist/icons/src/icons/Question_circle.d.ts.map +1 -1
- package/dist/icons/src/icons/Re.d.ts +1 -1
- package/dist/icons/src/icons/Re.d.ts.map +1 -1
- package/dist/icons/src/icons/Search.d.ts +1 -1
- package/dist/icons/src/icons/Search.d.ts.map +1 -1
- package/dist/icons/src/icons/Setting_fill.d.ts +1 -1
- package/dist/icons/src/icons/Setting_fill.d.ts.map +1 -1
- package/dist/icons/src/icons/Share.d.ts +1 -1
- package/dist/icons/src/icons/Share.d.ts.map +1 -1
- package/dist/icons/src/icons/Store.d.ts +1 -1
- package/dist/icons/src/icons/Store.d.ts.map +1 -1
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.d.ts +9 -9
- package/dist/icons/src/icons/index.d.ts.map +1 -1
- package/dist/icons/src/icons/index.es.js +40 -40
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +360 -336
- package/dist/library/BasicForm/index.cjs.js +1 -1
- package/dist/library/BasicForm/index.es.js +10 -10
- 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 +1 -0
- package/dist/library/BasicLayout/Footer.d.ts.map +1 -1
- package/dist/library/BasicLayout/Footer.es.js +78 -76
- package/dist/library/BasicLayout/index.cjs.js +1 -1
- package/dist/library/BasicLayout/index.d.ts +20 -20
- package/dist/library/BasicLayout/index.es.js +42 -40
- 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.d.ts.map +1 -1
- package/dist/library/BasicLayout/index.styled.es.js +1 -1
- package/dist/library/Flex/index.d.ts +20 -6
- package/dist/library/Flex/index.d.ts.map +1 -1
- 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/IconWithImage/index.styled.d.ts.map +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/List/BottomSheetItemList/index.styled.d.ts.map +1 -1
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.es.js +47 -47
- package/dist/library/Lottie/index.styled.d.ts +3 -3
- package/dist/library/Lottie/index.styled.d.ts.map +1 -1
- 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/library/Spacing/index.styled.d.ts.map +1 -1
- package/dist/style/common.d.ts +1 -1
- package/package.json +16 -22
- package/dist/__mocks__/lottie-web.cjs.js +0 -1
- package/dist/__mocks__/lottie-web.d.ts +0 -5
- package/dist/__mocks__/lottie-web.d.ts.map +0 -1
- package/dist/__mocks__/lottie-web.es.js +0 -14
- package/dist/chunks/index.9fap07Gq.js +0 -60
- package/dist/chunks/index.B-Bfcjo7.js +0 -1
- package/dist/chunks/index.BfjI33ZB.js +0 -41
- package/dist/chunks/index.C3oZfEx6.js +0 -283
- package/dist/chunks/index.CqHp_goI.js +0 -1
- package/dist/chunks/index.QJBZMz2E.js +0 -5
- package/dist/chunks/index.eYfYnSCV.js +0 -1
- package/dist/chunks/index.ps14_l3u.js +0 -1
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import * as i from "react";
|
|
2
|
-
import { P as D, c as m, b as H, d as Z, a as q } from "./index.BmifSqQX.js";
|
|
3
|
-
import { c as K, u as h } from "./index.DLcqcWxM.js";
|
|
4
|
-
import { u as y } from "./index.CVogEmtp.js";
|
|
5
|
-
import { D as U, P as Y } from "./index.DVHp5IZe.js";
|
|
6
|
-
import { R as z, h as J, u as Q, F as X } from "./index.CIUK7hO2.js";
|
|
7
|
-
import { P as E } from "./index.CDVf4iB0.js";
|
|
8
|
-
import { jsx as s, jsxs as N, Fragment as I } from "react/jsx-runtime";
|
|
9
|
-
// @__NO_SIDE_EFFECTS__
|
|
10
|
-
function ee(e) {
|
|
11
|
-
const t = /* @__PURE__ */ te(e), n = i.forwardRef((r, o) => {
|
|
12
|
-
const { children: a, ...c } = r, l = i.Children.toArray(a), u = l.find(ne);
|
|
13
|
-
if (u) {
|
|
14
|
-
const f = u.props.children, g = l.map((v) => v === u ? i.Children.count(f) > 1 ? i.Children.only(null) : i.isValidElement(f) ? f.props.children : null : v);
|
|
15
|
-
return /* @__PURE__ */ s(t, { ...c, ref: o, children: i.isValidElement(f) ? i.cloneElement(f, void 0, g) : null });
|
|
16
|
-
}
|
|
17
|
-
return /* @__PURE__ */ s(t, { ...c, ref: o, children: a });
|
|
18
|
-
});
|
|
19
|
-
return n.displayName = `${e}.Slot`, n;
|
|
20
|
-
}
|
|
21
|
-
// @__NO_SIDE_EFFECTS__
|
|
22
|
-
function te(e) {
|
|
23
|
-
const t = i.forwardRef((n, r) => {
|
|
24
|
-
const { children: o, ...a } = n;
|
|
25
|
-
if (i.isValidElement(o)) {
|
|
26
|
-
const c = ae(o), l = re(a, o.props);
|
|
27
|
-
return o.type !== i.Fragment && (l.ref = r ? K(r, c) : c), i.cloneElement(o, l);
|
|
28
|
-
}
|
|
29
|
-
return i.Children.count(o) > 1 ? i.Children.only(null) : null;
|
|
30
|
-
});
|
|
31
|
-
return t.displayName = `${e}.SlotClone`, t;
|
|
32
|
-
}
|
|
33
|
-
var oe = /* @__PURE__ */ Symbol("radix.slottable");
|
|
34
|
-
function ne(e) {
|
|
35
|
-
return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === oe;
|
|
36
|
-
}
|
|
37
|
-
function re(e, t) {
|
|
38
|
-
const n = { ...t };
|
|
39
|
-
for (const r in t) {
|
|
40
|
-
const o = e[r], a = t[r];
|
|
41
|
-
/^on[A-Z]/.test(r) ? o && a ? n[r] = (...l) => {
|
|
42
|
-
const u = a(...l);
|
|
43
|
-
return o(...l), u;
|
|
44
|
-
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...a } : r === "className" && (n[r] = [o, a].filter(Boolean).join(" "));
|
|
45
|
-
}
|
|
46
|
-
return { ...e, ...n };
|
|
47
|
-
}
|
|
48
|
-
function ae(e) {
|
|
49
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
50
|
-
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
51
|
-
}
|
|
52
|
-
var R = "Dialog", [b] = H(R), [ie, d] = b(R), x = (e) => {
|
|
53
|
-
const {
|
|
54
|
-
__scopeDialog: t,
|
|
55
|
-
children: n,
|
|
56
|
-
open: r,
|
|
57
|
-
defaultOpen: o,
|
|
58
|
-
onOpenChange: a,
|
|
59
|
-
modal: c = !0
|
|
60
|
-
} = e, l = i.useRef(null), u = i.useRef(null), [f, g] = q({
|
|
61
|
-
prop: r,
|
|
62
|
-
defaultProp: o ?? !1,
|
|
63
|
-
onChange: a,
|
|
64
|
-
caller: R
|
|
65
|
-
});
|
|
66
|
-
return /* @__PURE__ */ s(
|
|
67
|
-
ie,
|
|
68
|
-
{
|
|
69
|
-
scope: t,
|
|
70
|
-
triggerRef: l,
|
|
71
|
-
contentRef: u,
|
|
72
|
-
contentId: y(),
|
|
73
|
-
titleId: y(),
|
|
74
|
-
descriptionId: y(),
|
|
75
|
-
open: f,
|
|
76
|
-
onOpenChange: g,
|
|
77
|
-
onOpenToggle: i.useCallback(() => g((v) => !v), [g]),
|
|
78
|
-
modal: c,
|
|
79
|
-
children: n
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
x.displayName = R;
|
|
84
|
-
var A = "DialogTrigger", T = i.forwardRef(
|
|
85
|
-
(e, t) => {
|
|
86
|
-
const { __scopeDialog: n, ...r } = e, o = d(A, n), a = h(t, o.triggerRef);
|
|
87
|
-
return /* @__PURE__ */ s(
|
|
88
|
-
D.button,
|
|
89
|
-
{
|
|
90
|
-
type: "button",
|
|
91
|
-
"aria-haspopup": "dialog",
|
|
92
|
-
"aria-expanded": o.open,
|
|
93
|
-
"aria-controls": o.contentId,
|
|
94
|
-
"data-state": O(o.open),
|
|
95
|
-
...r,
|
|
96
|
-
ref: a,
|
|
97
|
-
onClick: m(e.onClick, o.onOpenToggle)
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
T.displayName = A;
|
|
103
|
-
var _ = "DialogPortal", [se, S] = b(_, {
|
|
104
|
-
forceMount: void 0
|
|
105
|
-
}), M = (e) => {
|
|
106
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = d(_, t);
|
|
107
|
-
return /* @__PURE__ */ s(se, { scope: t, forceMount: n, children: i.Children.map(r, (c) => /* @__PURE__ */ s(E, { present: n || a.open, children: /* @__PURE__ */ s(Y, { asChild: !0, container: o, children: c }) })) });
|
|
108
|
-
};
|
|
109
|
-
M.displayName = _;
|
|
110
|
-
var C = "DialogOverlay", w = i.forwardRef(
|
|
111
|
-
(e, t) => {
|
|
112
|
-
const n = S(C, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = d(C, e.__scopeDialog);
|
|
113
|
-
return a.modal ? /* @__PURE__ */ s(E, { present: r || a.open, children: /* @__PURE__ */ s(ce, { ...o, ref: t }) }) : null;
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
w.displayName = C;
|
|
117
|
-
var le = /* @__PURE__ */ ee("DialogOverlay.RemoveScroll"), ce = i.forwardRef(
|
|
118
|
-
(e, t) => {
|
|
119
|
-
const { __scopeDialog: n, ...r } = e, o = d(C, n);
|
|
120
|
-
return (
|
|
121
|
-
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
122
|
-
// ie. when `Overlay` and `Content` are siblings
|
|
123
|
-
/* @__PURE__ */ s(z, { as: le, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s(
|
|
124
|
-
D.div,
|
|
125
|
-
{
|
|
126
|
-
"data-state": O(o.open),
|
|
127
|
-
...r,
|
|
128
|
-
ref: t,
|
|
129
|
-
style: { pointerEvents: "auto", ...r.style }
|
|
130
|
-
}
|
|
131
|
-
) })
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
), p = "DialogContent", F = i.forwardRef(
|
|
135
|
-
(e, t) => {
|
|
136
|
-
const n = S(p, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = d(p, e.__scopeDialog);
|
|
137
|
-
return /* @__PURE__ */ s(E, { present: r || a.open, children: a.modal ? /* @__PURE__ */ s(ue, { ...o, ref: t }) : /* @__PURE__ */ s(de, { ...o, ref: t }) });
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
F.displayName = p;
|
|
141
|
-
var ue = i.forwardRef(
|
|
142
|
-
(e, t) => {
|
|
143
|
-
const n = d(p, e.__scopeDialog), r = i.useRef(null), o = h(t, n.contentRef, r);
|
|
144
|
-
return i.useEffect(() => {
|
|
145
|
-
const a = r.current;
|
|
146
|
-
if (a) return J(a);
|
|
147
|
-
}, []), /* @__PURE__ */ s(
|
|
148
|
-
W,
|
|
149
|
-
{
|
|
150
|
-
...e,
|
|
151
|
-
ref: o,
|
|
152
|
-
trapFocus: n.open,
|
|
153
|
-
disableOutsidePointerEvents: !0,
|
|
154
|
-
onCloseAutoFocus: m(e.onCloseAutoFocus, (a) => {
|
|
155
|
-
a.preventDefault(), n.triggerRef.current?.focus();
|
|
156
|
-
}),
|
|
157
|
-
onPointerDownOutside: m(e.onPointerDownOutside, (a) => {
|
|
158
|
-
const c = a.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
|
|
159
|
-
(c.button === 2 || l) && a.preventDefault();
|
|
160
|
-
}),
|
|
161
|
-
onFocusOutside: m(
|
|
162
|
-
e.onFocusOutside,
|
|
163
|
-
(a) => a.preventDefault()
|
|
164
|
-
)
|
|
165
|
-
}
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
), de = i.forwardRef(
|
|
169
|
-
(e, t) => {
|
|
170
|
-
const n = d(p, e.__scopeDialog), r = i.useRef(!1), o = i.useRef(!1);
|
|
171
|
-
return /* @__PURE__ */ s(
|
|
172
|
-
W,
|
|
173
|
-
{
|
|
174
|
-
...e,
|
|
175
|
-
ref: t,
|
|
176
|
-
trapFocus: !1,
|
|
177
|
-
disableOutsidePointerEvents: !1,
|
|
178
|
-
onCloseAutoFocus: (a) => {
|
|
179
|
-
e.onCloseAutoFocus?.(a), a.defaultPrevented || (r.current || n.triggerRef.current?.focus(), a.preventDefault()), r.current = !1, o.current = !1;
|
|
180
|
-
},
|
|
181
|
-
onInteractOutside: (a) => {
|
|
182
|
-
e.onInteractOutside?.(a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
183
|
-
const c = a.target;
|
|
184
|
-
n.triggerRef.current?.contains(c) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
), W = i.forwardRef(
|
|
190
|
-
(e, t) => {
|
|
191
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = e, l = d(p, n), u = i.useRef(null), f = h(t, u);
|
|
192
|
-
return Q(), /* @__PURE__ */ N(I, { children: [
|
|
193
|
-
/* @__PURE__ */ s(
|
|
194
|
-
X,
|
|
195
|
-
{
|
|
196
|
-
asChild: !0,
|
|
197
|
-
loop: !0,
|
|
198
|
-
trapped: r,
|
|
199
|
-
onMountAutoFocus: o,
|
|
200
|
-
onUnmountAutoFocus: a,
|
|
201
|
-
children: /* @__PURE__ */ s(
|
|
202
|
-
U,
|
|
203
|
-
{
|
|
204
|
-
role: "dialog",
|
|
205
|
-
id: l.contentId,
|
|
206
|
-
"aria-describedby": l.descriptionId,
|
|
207
|
-
"aria-labelledby": l.titleId,
|
|
208
|
-
"data-state": O(l.open),
|
|
209
|
-
...c,
|
|
210
|
-
ref: f,
|
|
211
|
-
onDismiss: () => l.onOpenChange(!1)
|
|
212
|
-
}
|
|
213
|
-
)
|
|
214
|
-
}
|
|
215
|
-
),
|
|
216
|
-
/* @__PURE__ */ N(I, { children: [
|
|
217
|
-
/* @__PURE__ */ s(fe, { titleId: l.titleId }),
|
|
218
|
-
/* @__PURE__ */ s(ge, { contentRef: u, descriptionId: l.descriptionId })
|
|
219
|
-
] })
|
|
220
|
-
] });
|
|
221
|
-
}
|
|
222
|
-
), P = "DialogTitle", L = i.forwardRef(
|
|
223
|
-
(e, t) => {
|
|
224
|
-
const { __scopeDialog: n, ...r } = e, o = d(P, n);
|
|
225
|
-
return /* @__PURE__ */ s(D.h2, { id: o.titleId, ...r, ref: t });
|
|
226
|
-
}
|
|
227
|
-
);
|
|
228
|
-
L.displayName = P;
|
|
229
|
-
var k = "DialogDescription", G = i.forwardRef(
|
|
230
|
-
(e, t) => {
|
|
231
|
-
const { __scopeDialog: n, ...r } = e, o = d(k, n);
|
|
232
|
-
return /* @__PURE__ */ s(D.p, { id: o.descriptionId, ...r, ref: t });
|
|
233
|
-
}
|
|
234
|
-
);
|
|
235
|
-
G.displayName = k;
|
|
236
|
-
var V = "DialogClose", $ = i.forwardRef(
|
|
237
|
-
(e, t) => {
|
|
238
|
-
const { __scopeDialog: n, ...r } = e, o = d(V, n);
|
|
239
|
-
return /* @__PURE__ */ s(
|
|
240
|
-
D.button,
|
|
241
|
-
{
|
|
242
|
-
type: "button",
|
|
243
|
-
...r,
|
|
244
|
-
ref: t,
|
|
245
|
-
onClick: m(e.onClick, () => o.onOpenChange(!1))
|
|
246
|
-
}
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
$.displayName = V;
|
|
251
|
-
function O(e) {
|
|
252
|
-
return e ? "open" : "closed";
|
|
253
|
-
}
|
|
254
|
-
var j = "DialogTitleWarning", [Ee, B] = Z(j, {
|
|
255
|
-
contentName: p,
|
|
256
|
-
titleName: P,
|
|
257
|
-
docsSlug: "dialog"
|
|
258
|
-
}), fe = ({ titleId: e }) => {
|
|
259
|
-
const t = B(j), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
260
|
-
|
|
261
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
262
|
-
|
|
263
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
264
|
-
return i.useEffect(() => {
|
|
265
|
-
e && (document.getElementById(e) || console.error(n));
|
|
266
|
-
}, [n, e]), null;
|
|
267
|
-
}, pe = "DialogDescriptionWarning", ge = ({ contentRef: e, descriptionId: t }) => {
|
|
268
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${B(pe).contentName}}.`;
|
|
269
|
-
return i.useEffect(() => {
|
|
270
|
-
const o = e.current?.getAttribute("aria-describedby");
|
|
271
|
-
t && o && (document.getElementById(t) || console.warn(r));
|
|
272
|
-
}, [r, e, t]), null;
|
|
273
|
-
}, _e = x, Pe = T, Oe = M, Ne = w, Ie = F, be = L, xe = G, Ae = $;
|
|
274
|
-
export {
|
|
275
|
-
Ae as C,
|
|
276
|
-
xe as D,
|
|
277
|
-
Ne as O,
|
|
278
|
-
Oe as P,
|
|
279
|
-
_e as R,
|
|
280
|
-
be as T,
|
|
281
|
-
Ie as a,
|
|
282
|
-
Pe as b
|
|
283
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const It=require("react"),Re=require("react-dom"),J=require("./index.eYfYnSCV.js"),Y=require("react/jsx-runtime"),Xt=require("./index.BIcga6m3.js"),Oe=require("./index.B-Bfcjo7.js"),Pe=require("./index.CskkVMdK.js");function Yt(t){if(t&&typeof t=="object"&&"default"in t)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const R=Yt(It),Ce=Yt(Re),Se=["top","right","bottom","left"],Z=Math.min,_=Math.max,ft=Math.round,lt=Math.floor,z=t=>({x:t,y:t}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},De={start:"end",end:"start"};function vt(t,e,n){return _(t,Z(e,n))}function q(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function Rt(t){return t==="x"?"y":"x"}function Ot(t){return t==="y"?"height":"width"}const Le=new Set(["top","bottom"]);function V(t){return Le.has(U(t))?"y":"x"}function Pt(t){return Rt(V(t))}function Me(t,e,n){n===void 0&&(n=!1);const o=et(t),r=Pt(t),i=Ot(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ut(s)),[s,ut(s)]}function Te(t){const e=ut(t);return[bt(t),e,bt(e)]}function bt(t){return t.replace(/start|end/g,e=>De[e])}const $t=["left","right"],kt=["right","left"],$e=["top","bottom"],ke=["bottom","top"];function Fe(t,e,n){switch(t){case"top":case"bottom":return n?e?kt:$t:e?$t:kt;case"left":case"right":return e?$e:ke;default:return[]}}function Ne(t,e,n,o){const r=et(t);let i=Fe(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(bt)))),i}function ut(t){return t.replace(/left|right|bottom|top/g,e=>Ee[e])}function _e(t){return{top:0,right:0,bottom:0,left:0,...t}}function qt(t){return typeof t!="number"?_e(t):{top:t,right:t,bottom:t,left:t}}function dt(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Ft(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=Pt(e),c=Ot(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(et(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const We=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Ft(a,o,l),m=o,d={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),{x:f,y:u}=Ft(a,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:d}};async function rt(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=q(e,t),p=qt(d),w=c[m?u==="floating"?"reference":"floating":u],g=dt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),y=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},v=dt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const He=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=q(t,e)||{};if(a==null)return{};const u=qt(f),m={x:n,y:o},d=Pt(r),p=Ot(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[d]-m[d]-i.floating[p],v=m[d]-i.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let O=P?P[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=c.floating[b]||i.floating[p]);const M=y/2-v/2,F=O/2-h[p]/2-1,L=Z(u[g],F),$=Z(u[x],F),k=L,S=O-h[p]-$,C=O/2-h[p]/2+M,N=vt(k,C,S),E=!l.arrow&&et(r)!=null&&C!==N&&i.reference[p]/2-(C<k?L:$)-h[p]/2<0,D=E?C<k?C-k:C-S:0;return{[d]:m[d]+D,data:{[d]:N,centerOffset:C-N-D,...E&&{alignmentOffset:D}},reset:E}}}),Be=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=q(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),x=V(c),b=U(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(b||!h?[ut(c)]:Te(c)),P=p!=="none";!m&&P&&v.push(...Ne(c,h,p,y));const O=[c,...v],M=await rt(e,w),F=[];let L=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const C=Me(r,s,y);F.push(M[C[0]],M[C[1]])}if(L=[...L,{placement:r,overflows:F}],!F.every(C=>C<=0)){var $,k;const C=((($=i.flip)==null?void 0:$.index)||0)+1,N=O[C];if(N&&(!(u==="alignment"?x!==V(N):!1)||L.every(A=>V(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:C,overflows:L},reset:{placement:N}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(A=>{if(P){const T=V(A.placement);return T===x||T==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(T=>T>0).reduce((T,j)=>T+j,0)]).sort((A,T)=>A[1]-T[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function _t(t){return Se.some(e=>t[e]>=0)}const je=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=q(t,e);switch(o){case"referenceHidden":{const i=await rt(e,{...r,elementContext:"reference"}),s=Nt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:_t(s)}}}case"escaped":{const i=await rt(e,{...r,altBoundary:!0}),s=Nt(i,n.floating);return{data:{escapedOffsets:s,escaped:_t(s)}}}default:return{}}}}},Ut=new Set(["left","top"]);async function Ve(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=et(n),l=V(n)==="y",a=Ut.has(s)?-1:1,f=i&&l?-1:1,u=q(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const ze=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await Ve(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ie=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=q(t,e),a={x:n,y:o},f=await rt(e,l),u=V(U(r)),m=Rt(u);let d=a[m],p=a[u];if(i){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=vt(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=vt(x,p,b)}const h=c.fn({...e,[m]:d,[u]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[u]:s}}}}}},Xe=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=q(t,e),f={x:n,y:o},u=V(r),m=Rt(u);let d=f[m],p=f[u];const h=q(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const b=m==="y"?"height":"width",y=i.reference[m]-i.floating[b]+w.mainAxis,v=i.reference[m]+i.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=m==="y"?"width":"height",y=Ut.has(U(r)),v=i.reference[u]-i.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),P=i.reference[u]+i.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v:p>P&&(p=P)}return{[m]:d,[u]:p}}}},Ye=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=q(t,e),f=await rt(e,a),u=U(r),m=et(r),d=V(r)==="y",{width:p,height:h}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=Z(h-f[w],x),v=Z(p-f[g],b),P=!e.middlewareData.shift;let O=y,M=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=x),P&&!m){const L=_(f.left,0),$=_(f.right,0),k=_(f.top,0),S=_(f.bottom,0);d?M=p-2*(L!==0||$!==0?L+$:_(f.left,f.right)):O=h-2*(k!==0||S!==0?k+S:_(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:O});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function nt(t){return Zt(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(Zt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zt(t){return mt()?t instanceof Node||t instanceof W(t).Node:!1}function H(t){return mt()?t instanceof Element||t instanceof W(t).Element:!1}function I(t){return mt()?t instanceof HTMLElement||t instanceof W(t).HTMLElement:!1}function Wt(t){return!mt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof W(t).ShadowRoot}const qe=new Set(["inline","contents"]);function st(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!qe.has(r)}const Ue=new Set(["table","td","th"]);function Ze(t){return Ue.has(nt(t))}const Ke=[":popover-open",":modal"];function ht(t){return Ke.some(e=>{try{return t.matches(e)}catch{return!1}})}const Ge=["transform","translate","scale","rotate","perspective"],Je=["transform","translate","scale","rotate","perspective","filter"],Qe=["paint","layout","strict","content"];function Ct(t){const e=St(),n=H(t)?B(t):t;return Ge.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Je.some(o=>(n.willChange||"").includes(o))||Qe.some(o=>(n.contain||"").includes(o))}function tn(t){let e=K(t);for(;I(e)&&!tt(e);){if(Ct(e))return e;if(ht(e))return null;e=K(e)}return null}function St(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const en=new Set(["html","body","#document"]);function tt(t){return en.has(nt(t))}function B(t){return W(t).getComputedStyle(t)}function gt(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(nt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wt(t)&&t.host||X(t);return Wt(e)?e.host:e}function Kt(t){const e=K(t);return tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&st(e)?e:Kt(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Kt(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=W(r);if(i){const c=At(s);return e.concat(s,s.visualViewport||[],st(r)?r:[],c&&n?it(c):[])}return e.concat(r,it(r,[],n))}function At(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Gt(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=ft(n)!==i||ft(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Et(t){return H(t)?t:t.contextElement}function Q(t){const e=Et(t);if(!I(e))return z(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Gt(e);let s=(i?ft(n.width):n.width)/o,c=(i?ft(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const nn=z(0);function Jt(t){const e=W(t);return!St()||!e.visualViewport?nn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function on(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==W(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Et(t);let s=z(1);e&&(o?H(o)&&(s=Q(o)):s=Q(t));const c=on(i,n,o)?Jt(i):z(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=W(i),d=o&&H(o)?W(o):o;let p=m,h=At(p);for(;h&&o&&d!==p;){const w=Q(h),g=h.getBoundingClientRect(),x=B(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=W(h),h=At(p)}}return dt({width:f,height:u,x:l,y:a})}function wt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(X(t)).left+n}function Qt(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-wt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function rn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=X(o),c=e?ht(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=z(1);const f=z(0),u=I(o);if((u||!u&&!i)&&((nt(o)!=="body"||st(s))&&(l=gt(o)),I(o))){const d=G(o);a=Q(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?Qt(s,l):z(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function sn(t){return Array.from(t.getClientRects())}function cn(t){const e=X(t),n=gt(t),o=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+wt(t);const c=-n.scrollTop;return B(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Ht=25;function ln(t,e){const n=W(t),o=X(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=St();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=wt(o);if(a<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=Ht&&(i-=p)}else a<=Ht&&(i+=a);return{width:i,height:s,x:c,y:l}}const an=new Set(["absolute","fixed"]);function fn(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?Q(t):z(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Bt(t,e,n){let o;if(e==="viewport")o=ln(t,n);else if(e==="document")o=cn(X(t));else if(H(e))o=fn(e,n);else{const r=Jt(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return dt(o)}function te(t,e){const n=K(t);return n===e||!H(n)||tt(n)?!1:B(n).position==="fixed"||te(n,e)}function un(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(c=>H(c)&&nt(c)!=="body"),r=null;const i=B(t).position==="fixed";let s=i?K(t):t;for(;H(s)&&!tt(s);){const c=B(s),l=Ct(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&an.has(r.position)||st(s)&&!l&&te(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function dn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?ht(e)?[]:un(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Bt(e,f,r);return a.top=_(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=_(u.left,a.left),a},Bt(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function pn(t){const{width:e,height:n}=Gt(t);return{width:e,height:n}}function mn(t,e,n){const o=I(e),r=X(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=z(0);function a(){l.x=wt(r)}if(o||!o&&!i)if((nt(e)!=="body"||st(r))&&(c=gt(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?Qt(r,c):z(0),u=s.left+c.scrollLeft-l.x-f.x,m=s.top+c.scrollTop-l.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function xt(t){return B(t).position==="static"}function jt(t,e){if(!I(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return X(t)===n&&(n=n.ownerDocument.body),n}function ee(t,e){const n=W(t);if(ht(t))return n;if(!I(t)){let r=K(t);for(;r&&!tt(r);){if(H(r)&&!xt(r))return r;r=K(r)}return n}let o=jt(t,e);for(;o&&Ze(o)&&xt(o);)o=jt(o,e);return o&&tt(o)&&xt(o)&&!Ct(o)?n:o||tn(t)||n}const hn=async function(t){const e=this.getOffsetParent||ee,n=this.getDimensions,o=await n(t.floating);return{reference:mn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function gn(t){return B(t).direction==="rtl"}const wn={convertOffsetParentRelativeRectToViewportRelativeRect:rn,getDocumentElement:X,getClippingRect:dn,getOffsetParent:ee,getElementRects:hn,getClientRects:sn,getDimensions:pn,getScale:Q,isElement:H,isRTL:gn};function ne(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function xn(t,e){let n=null,o;const r=X(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=lt(u),h=lt(r.clientWidth-(f+m)),w=lt(r.clientHeight-(u+d)),g=lt(f),b={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:_(0,Z(1,l))||1};let y=!0;function v(P){const O=P[0].intersectionRatio;if(O!==l){if(!y)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!ne(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(v,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(t)}return s(!0),i}function yn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Et(t),f=r||i?[...a?it(a):[],...it(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?xn(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!ne(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const vn=ze,bn=Ie,An=Be,Rn=Ye,On=je,Vt=He,Pn=Xe,Cn=(t,e,n)=>{const o=new Map,r={platform:wn,...n},i={...r.platform,_c:o};return We(t,e,{...r,platform:i})};var Sn=typeof document<"u",En=function(){},at=Sn?It.useLayoutEffect:En;function pt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!pt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!pt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function oe(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function zt(t,e){const n=oe(t);return Math.round(e*n)/n}function yt(t){const e=R.useRef(t);return at(()=>{e.current=t}),e}function Dn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=R.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=R.useState(o);pt(m,o)||d(o);const[p,h]=R.useState(null),[w,g]=R.useState(null),x=R.useCallback(A=>{A!==P.current&&(P.current=A,h(A))},[]),b=R.useCallback(A=>{A!==O.current&&(O.current=A,g(A))},[]),y=i||p,v=s||w,P=R.useRef(null),O=R.useRef(null),M=R.useRef(f),F=l!=null,L=yt(l),$=yt(r),k=yt(a),S=R.useCallback(()=>{if(!P.current||!O.current)return;const A={placement:e,strategy:n,middleware:m};$.current&&(A.platform=$.current),Cn(P.current,O.current,A).then(T=>{const j={...T,isPositioned:k.current!==!1};C.current&&!pt(M.current,j)&&(M.current=j,Ce.flushSync(()=>{u(j)}))})},[m,e,n,$,k]);at(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const C=R.useRef(!1);at(()=>(C.current=!0,()=>{C.current=!1}),[]),at(()=>{if(y&&(P.current=y),v&&(O.current=v),y&&v){if(L.current)return L.current(y,v,S);S()}},[y,v,S,L,F]);const N=R.useMemo(()=>({reference:P,floating:O,setReference:x,setFloating:b}),[x,b]),E=R.useMemo(()=>({reference:y,floating:v}),[y,v]),D=R.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const T=zt(E.floating,f.x),j=zt(E.floating,f.y);return c?{...A,transform:"translate("+T+"px, "+j+"px)",...oe(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:j}},[n,c,E.floating,f.x,f.y]);return R.useMemo(()=>({...f,update:S,refs:N,elements:E,floatingStyles:D}),[f,S,N,E,D])}const Ln=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Vt({element:o.current,padding:r}).fn(n):{}:o?Vt({element:o,padding:r}).fn(n):{}}}},Mn=(t,e)=>({...vn(t),options:[t,e]}),Tn=(t,e)=>({...bn(t),options:[t,e]}),$n=(t,e)=>({...Pn(t),options:[t,e]}),kn=(t,e)=>({...An(t),options:[t,e]}),Fn=(t,e)=>({...Rn(t),options:[t,e]}),Nn=(t,e)=>({...On(t),options:[t,e]}),_n=(t,e)=>({...Ln(t),options:[t,e]});var Wn="Arrow",re=R.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return Y.jsx(J.Primitive.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:Y.jsx("polygon",{points:"0,0 30,0 15,10"})})});re.displayName=Wn;var Hn=re,Dt="Popper",[ie,Bn]=J.createContextScope(Dt),[jn,se]=ie(Dt),ce=t=>{const{__scopePopper:e,children:n}=t,[o,r]=R.useState(null);return Y.jsx(jn,{scope:e,anchor:o,onAnchorChange:r,children:n})};ce.displayName=Dt;var le="PopperAnchor",ae=R.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=se(le,n),s=R.useRef(null),c=Xt.useComposedRefs(e,s),l=R.useRef(null);return R.useEffect(()=>{const a=l.current;l.current=o?.current||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:Y.jsx(J.Primitive.div,{...r,ref:c})});ae.displayName=le;var Lt="PopperContent",[Vn,zn]=ie(Lt),fe=R.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=se(Lt,n),[g,x]=R.useState(null),b=Xt.useComposedRefs(e,ot=>x(ot)),[y,v]=R.useState(null),P=Pe.useSize(y),O=P?.width??0,M=P?.height??0,F=o+(i!=="center"?"-"+i:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Xn),altBoundary:k},{refs:C,floatingStyles:N,placement:E,isPositioned:D,middlewareData:A}=Dn({strategy:"fixed",placement:F,whileElementsMounted:(...ot)=>yn(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[Mn({mainAxis:r+M,alignmentAxis:s}),l&&Tn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?$n():void 0,...S}),l&&kn({...S}),Fn({...S,apply:({elements:ot,rects:Tt,availableWidth:ye,availableHeight:ve})=>{const{width:be,height:Ae}=Tt.reference,ct=ot.floating.style;ct.setProperty("--radix-popper-available-width",`${ye}px`),ct.setProperty("--radix-popper-available-height",`${ve}px`),ct.setProperty("--radix-popper-anchor-width",`${be}px`),ct.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),y&&_n({element:y,padding:c}),Yn({arrowWidth:O,arrowHeight:M}),m&&Nn({strategy:"referenceHidden",...S})]}),[T,j]=pe(E),Mt=Oe.useCallbackRef(p);J.useLayoutEffect2(()=>{D&&Mt?.()},[D,Mt]);const me=A.arrow?.x,he=A.arrow?.y,ge=A.arrow?.centerOffset!==0,[we,xe]=R.useState();return J.useLayoutEffect2(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),Y.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:D?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y.jsx(Vn,{scope:n,placedSide:T,onArrowChange:v,arrowX:me,arrowY:he,shouldHideArrow:ge,children:Y.jsx(J.Primitive.div,{"data-side":T,"data-align":j,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});fe.displayName=Lt;var ue="PopperArrow",In={top:"bottom",right:"left",bottom:"top",left:"right"},de=R.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=zn(ue,o),s=In[i.placedSide];return Y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:Y.jsx(Hn,{...r,ref:n,style:{...r.style,display:"block"}})})});de.displayName=ue;function Xn(t){return t!==null}var Yn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=pe(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+c/2,d=(r.arrow?.y??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var qn=ce,Un=ae,Zn=fe,Kn=de;exports.Anchor=Un;exports.Arrow=Kn;exports.Content=Zn;exports.Root2=qn;exports.createPopperScope=Bn;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";const H=require("react"),u=require("./index.eYfYnSCV.js"),x=require("./index.BIcga6m3.js"),y=require("./index.BtGja8CI.js"),O=require("./index.B-Bfcjo7.js"),D=require("./index.BfjI33ZB.js"),E=require("./index.BngGCpBd.js"),a=require("react/jsx-runtime");function V(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=V(H);function B(e){const t=Z(e),o=s.forwardRef((r,n)=>{const{children:i,...c}=r,l=s.Children.toArray(i),d=l.find(K);if(d){const p=d.props.children,m=l.map(v=>v===d?s.Children.count(p)>1?s.Children.only(null):s.isValidElement(p)?p.props.children:null:v);return a.jsx(t,{...c,ref:n,children:s.isValidElement(p)?s.cloneElement(p,void 0,m):null})}return a.jsx(t,{...c,ref:n,children:i})});return o.displayName=`${e}.Slot`,o}function Z(e){const t=s.forwardRef((o,r)=>{const{children:n,...i}=o;if(s.isValidElement(n)){const c=Y(n),l=U(i,n.props);return n.type!==s.Fragment&&(l.ref=r?x.composeRefs(r,c):c),s.cloneElement(n,l)}return s.Children.count(n)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var z=Symbol("radix.slottable");function K(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===z}function U(e,t){const o={...t};for(const r in t){const n=e[r],i=t[r];/^on[A-Z]/.test(r)?n&&i?o[r]=(...l)=>{const d=i(...l);return n(...l),d}:n&&(o[r]=n):r==="style"?o[r]={...n,...i}:r==="className"&&(o[r]=[n,i].filter(Boolean).join(" "))}return{...e,...o}}function Y(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var R="Dialog",[I]=u.createContextScope(R),[J,f]=I(R),N=e=>{const{__scopeDialog:t,children:o,open:r,defaultOpen:n,onOpenChange:i,modal:c=!0}=e,l=s.useRef(null),d=s.useRef(null),[p,m]=u.useControllableState({prop:r,defaultProp:n??!1,onChange:i,caller:R});return a.jsx(J,{scope:t,triggerRef:l,contentRef:d,contentId:y.useId(),titleId:y.useId(),descriptionId:y.useId(),open:p,onOpenChange:m,onOpenToggle:s.useCallback(()=>m(v=>!v),[m]),modal:c,children:o})};N.displayName=R;var b="DialogTrigger",j=s.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=f(b,o),i=x.useComposedRefs(t,n.triggerRef);return a.jsx(u.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":P(n.open),...r,ref:i,onClick:u.composeEventHandlers(e.onClick,n.onOpenToggle)})});j.displayName=b;var _="DialogPortal",[Q,T]=I(_,{forceMount:void 0}),A=e=>{const{__scopeDialog:t,forceMount:o,children:r,container:n}=e,i=f(_,t);return a.jsx(Q,{scope:t,forceMount:o,children:s.Children.map(r,c=>a.jsx(E.Presence,{present:o||i.open,children:a.jsx(O.Portal,{asChild:!0,container:n,children:c})}))})};A.displayName=_;var C="DialogOverlay",S=s.forwardRef((e,t)=>{const o=T(C,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,i=f(C,e.__scopeDialog);return i.modal?a.jsx(E.Presence,{present:r||i.open,children:a.jsx(ee,{...n,ref:t})}):null});S.displayName=C;var X=B("DialogOverlay.RemoveScroll"),ee=s.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=f(C,o);return a.jsx(D.ReactRemoveScroll,{as:X,allowPinchZoom:!0,shards:[n.contentRef],children:a.jsx(u.Primitive.div,{"data-state":P(n.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",M=s.forwardRef((e,t)=>{const o=T(g,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,i=f(g,e.__scopeDialog);return a.jsx(E.Presence,{present:r||i.open,children:i.modal?a.jsx(te,{...n,ref:t}):a.jsx(oe,{...n,ref:t})})});M.displayName=g;var te=s.forwardRef((e,t)=>{const o=f(g,e.__scopeDialog),r=s.useRef(null),n=x.useComposedRefs(t,o.contentRef,r);return s.useEffect(()=>{const i=r.current;if(i)return D.hideOthers(i)},[]),a.jsx(w,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u.composeEventHandlers(e.onCloseAutoFocus,i=>{i.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:u.composeEventHandlers(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&i.preventDefault()}),onFocusOutside:u.composeEventHandlers(e.onFocusOutside,i=>i.preventDefault())})}),oe=s.forwardRef((e,t)=>{const o=f(g,e.__scopeDialog),r=s.useRef(!1),n=s.useRef(!1);return a.jsx(w,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||o.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=i.target;o.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&n.current&&i.preventDefault()}})}),w=s.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:i,...c}=e,l=f(g,o),d=s.useRef(null),p=x.useComposedRefs(t,d);return D.useFocusGuards(),a.jsxs(a.Fragment,{children:[a.jsx(D.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:i,children:a.jsx(O.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":P(l.open),...c,ref:p,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(ne,{titleId:l.titleId}),a.jsx(ie,{contentRef:d,descriptionId:l.descriptionId})]})]})}),h="DialogTitle",F=s.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=f(h,o);return a.jsx(u.Primitive.h2,{id:n.titleId,...r,ref:t})});F.displayName=h;var W="DialogDescription",$=s.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=f(W,o);return a.jsx(u.Primitive.p,{id:n.descriptionId,...r,ref:t})});$.displayName=W;var L="DialogClose",k=s.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,n=f(L,o);return a.jsx(u.Primitive.button,{type:"button",...r,ref:t,onClick:u.composeEventHandlers(e.onClick,()=>n.onOpenChange(!1))})});k.displayName=L;function P(e){return e?"open":"closed"}var q="DialogTitleWarning",[ge,G]=u.createContext2(q,{contentName:g,titleName:h,docsSlug:"dialog"}),ne=({titleId:e})=>{const t=G(q),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
-
|
|
3
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
-
|
|
5
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return s.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},re="DialogDescriptionWarning",ie=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G(re).contentName}}.`;return s.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},se=N,ae=j,le=A,ce=S,ue=M,de=F,fe=$,pe=k;exports.Close=pe;exports.Content=ue;exports.Description=fe;exports.Overlay=ce;exports.Portal=le;exports.Root=se;exports.Title=de;exports.Trigger=ae;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const E=require("react"),m=require("react/jsx-runtime"),b=require("react-dom"),g=require("./index.BIcga6m3.js");function S(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=S(E),P=S(b);function R(e,t){const n=s.createContext(t),r=i=>{const{children:u,...c}=i,l=s.useMemo(()=>c,Object.values(c));return m.jsx(n.Provider,{value:l,children:u})};r.displayName=e+"Provider";function o(i){const u=s.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function w(e,t=[]){let n=[];function r(i,u){const c=s.createContext(u),l=n.length;n=[...n,u];const f=a=>{const{scope:v,children:C,...p}=a,y=v?.[e]?.[l]||c,x=s.useMemo(()=>p,Object.values(p));return m.jsx(y.Provider,{value:x,children:C})};f.displayName=i+"Provider";function d(a,v){const C=v?.[e]?.[l]||c,p=s.useContext(C);if(p)return p;if(u!==void 0)return u;throw new Error(`\`${a}\` must be used within \`${i}\``)}return[f,d]}const o=()=>{const i=n.map(u=>s.createContext(u));return function(c){const l=c?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,j(o,...t)]}function j(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const u=r.reduce((c,{useScope:l,scopeName:f})=>{const a=l(i)[`__scope${f}`];return{...c,...a}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var h=globalThis?.document?s.useLayoutEffect:()=>{},O=s[" useInsertionEffect ".trim().toString()]||h;function $({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,u]=D({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const a=d.current;a!==c&&console.warn(`${r} is changing from ${a?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,r])}const f=s.useCallback(d=>{if(c){const a=N(d)?d(e):d;a!==e&&u.current?.(a)}else i(d)},[c,e,i,u]);return[l,f]}function D({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return O(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function N(e){return typeof e=="function"}function I(e){const t=M(e),n=s.forwardRef((r,o)=>{const{children:i,...u}=r,c=s.Children.toArray(i),l=c.find(H);if(l){const f=l.props.children,d=c.map(a=>a===l?s.Children.count(f)>1?s.Children.only(null):s.isValidElement(f)?f.props.children:null:a);return m.jsx(t,{...u,ref:o,children:s.isValidElement(f)?s.cloneElement(f,void 0,d):null})}return m.jsx(t,{...u,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function M(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const u=T(o),c=L(i,o.props);return o.type!==s.Fragment&&(c.ref=r?g.composeRefs(r,u):u),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var V=Symbol("radix.slottable");function H(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===V}function L(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const l=i(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function T(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var W=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=W.reduce((e,t)=>{const n=I(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:u,...c}=o,l=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function A(e,t){e&&P.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=q;exports.composeEventHandlers=_;exports.createContext2=R;exports.createContextScope=w;exports.dispatchDiscreteCustomEvent=A;exports.useControllableState=$;exports.useLayoutEffect2=h;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const m=require("react"),b=require("./index.BIcga6m3.js"),d=require("react/jsx-runtime");function _(t){if(t&&typeof t=="object"&&"default"in t)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=_(m);var j=Symbol.for("react.lazy"),u=i[" use ".trim().toString()];function C(t){return typeof t=="object"&&t!==null&&"then"in t}function y(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===j&&"_payload"in t&&C(t._payload)}function S(t){const e=R(t),n=i.forwardRef((o,r)=>{let{children:l,...c}=o;y(l)&&typeof u=="function"&&(l=u(l._payload));const s=i.Children.toArray(l),a=s.find(h);if(a){const f=a.props.children,g=s.map(p=>p===a?i.Children.count(f)>1?i.Children.only(null):i.isValidElement(f)?f.props.children:null:p);return d.jsx(e,{...c,ref:r,children:i.isValidElement(f)?i.cloneElement(f,void 0,g):null})}return d.jsx(e,{...c,ref:r,children:l})});return n.displayName=`${t}.Slot`,n}var E=S("Slot");function R(t){const e=i.forwardRef((n,o)=>{let{children:r,...l}=n;if(y(r)&&typeof u=="function"&&(r=u(r._payload)),i.isValidElement(r)){const c=x(r),s=P(l,r.props);return r.type!==i.Fragment&&(s.ref=o?b.composeRefs(o,c):c),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var O=Symbol("radix.slottable");function h(t){return i.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===O}function P(t,e){const n={...e};for(const o in e){const r=t[o],l=e[o];/^on[A-Z]/.test(o)?r&&l?n[o]=(...s)=>{const a=l(...s);return r(...s),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...l}:o==="className"&&(n[o]=[r,l].filter(Boolean).join(" "))}return{...t,...n}}function x(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}exports.Slot=E;exports.createSlot=S;
|