@pfct/purple 1.5.0-rc.1 → 1.5.0-rc.10
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 +7 -0
- 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.1jpVsLW3.js +1 -0
- package/dist/chunks/index.B0nfUjLZ.js +374 -0
- package/dist/chunks/index.BCUPRn9W.js +5 -0
- package/dist/chunks/index.BGQJ5UjQ.js +1 -0
- package/dist/chunks/index.BKQj6Ros.js +1 -0
- package/dist/chunks/index.BX-VsGjT.js +1 -0
- package/dist/chunks/index.BZCoWHJr.js +41 -0
- package/dist/chunks/index.BZPx6jYI.js +8 -0
- package/dist/chunks/index.Bi2dd8ax.js +354 -0
- package/dist/chunks/index.BrP7bNBb.js +35 -0
- package/dist/chunks/index.CL8HuWEm.js +154 -0
- package/dist/chunks/{index.styled.D_VcbV29.js → index.Ca_yAFix.js} +266 -328
- package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
- package/dist/chunks/index.Cg4EOYHb.js +71 -0
- package/dist/chunks/index.CuQJFSqG.js +82 -0
- package/dist/chunks/index.D2jUN9AV.js +1 -0
- package/dist/chunks/index.DB6HVhpz.js +1 -0
- package/dist/chunks/index.DG2yRD83.js +27 -0
- package/dist/chunks/index.DLeNytVF.js +9 -0
- package/dist/chunks/index.DMhXgOEz.js +1 -0
- package/dist/chunks/index.DaxnLcvM.js +1 -0
- package/dist/chunks/index.Dh7jK0Mq.js +777 -0
- package/dist/chunks/index.DqB4vTTG.js +1 -0
- package/dist/chunks/index.F4-yWY3F.js +1335 -0
- package/dist/chunks/index.R27B_vrp.js +1 -0
- package/dist/chunks/index.Sb_wKSRC.js +13 -0
- package/dist/chunks/index.Zd9j6m3g.js +1 -0
- package/dist/chunks/index.kG55MjaG.js +659 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.es.js +266 -445
- package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.es.js +1 -1
- package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +24 -26
- package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/NavBottomSheet/index.es.js +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +1 -1
- 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 +1 -1
- package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/DoubleButton/index.es.js +1 -1
- package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatBaseButton/index.es.js +1 -1
- package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatDoubleButton/index.es.js +1 -1
- package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatSingleButton/index.es.js +1 -1
- package/dist/components/Button/SingleButton/index.cjs.js +1 -1
- package/dist/components/Button/SingleButton/index.es.js +1 -1
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +1 -1
- package/dist/components/Chips/BasicChips/index.styled.cjs.js +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 +20 -22
- package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.styled.es.js +21 -23
- package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.es.js +12 -12
- package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
- package/dist/components/Control/CheckMark/index.cjs.js +1 -1
- package/dist/components/Control/CheckMark/index.es.js +18 -20
- package/dist/components/Control/RadioButton/index.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.es.js +1 -1
- package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.styled.es.js +18 -20
- 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 +190 -84
- 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 +20 -22
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +20 -22
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +20 -22
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +20 -22
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +20 -22
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +29 -31
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +16 -16
- package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/index.es.js +28 -30
- package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +18 -20
- package/dist/components/Input/NumberInput/index.cjs.js +1 -1
- package/dist/components/Input/NumberInput/index.es.js +50 -52
- package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
- package/dist/components/Input/PostfixInput/index.util.es.js +21 -23
- package/dist/components/Input/TextField/index.cjs.js +1 -1
- package/dist/components/Input/TextField/index.es.js +12 -12
- package/dist/components/Input/index.cjs.js +1 -1
- package/dist/components/Input/index.es.js +29 -31
- package/dist/components/{Modal → LegacyModal}/BaseModal/index.cjs.js +1 -1
- package/dist/components/{Modal → LegacyModal}/BaseModal/index.es.js +2 -2
- 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/List/index.cjs.js +1 -1
- package/dist/components/List/index.es.js +8 -8
- package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.es.js +1 -1
- package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.styled.es.js +19 -21
- package/dist/components/Loading/Spinner/index.cjs.js +1 -1
- package/dist/components/Loading/Spinner/index.es.js +1 -1
- 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 +34 -31
- package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.d.ts +1 -0
- package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +36 -31
- package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
- package/dist/components/MiniButton/common/index.styled.es.js +20 -22
- 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 -7
- package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
- package/dist/components/Navigation/BaseNavigation/index.es.js +9 -9
- package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/BottomNavigationBar/index.es.js +5 -5
- package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/PageNavigationBar/index.es.js +12 -12
- package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/TitleNavigationBar/index.es.js +10 -10
- package/dist/components/Navigation/index.cjs.js +1 -1
- package/dist/components/Navigation/index.es.js +12 -12
- package/dist/components/OverlayRoot/index.cjs.js +1 -1
- package/dist/components/OverlayRoot/index.es.js +18 -20
- package/dist/components/Segment/BaseSegment/index.styled.cjs.js +1 -1
- package/dist/components/Segment/BaseSegment/index.styled.es.js +1 -1
- package/dist/components/Segment/ExtendSegment/index.styled.cjs.js +1 -1
- package/dist/components/Segment/ExtendSegment/index.styled.es.js +1 -1
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.es.js +16 -16
- package/dist/components/SelectBox/index.styled.cjs.js +1 -1
- package/dist/components/SelectBox/index.styled.es.js +25 -27
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.es.js +20 -22
- package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/TextTabs/index.d.ts +15 -11
- package/dist/components/Tabs/TextTabs/index.es.js +53 -66
- package/dist/components/Tabs/index.cjs.js +1 -1
- package/dist/components/Tabs/index.es.js +5 -4
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.es.js +1 -1
- package/dist/components/Tag/index.styled.cjs.js +1 -1
- package/dist/components/Tag/index.styled.es.js +18 -20
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.es.js +16 -17
- 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 +1 -1
- package/dist/components/Title/index.styled.cjs.js +1 -1
- package/dist/components/Title/index.styled.es.js +22 -24
- 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 +6 -3
- package/dist/components/index.es.js +156 -122
- package/dist/components/ui/bottomSheet.cjs.js +13 -13
- package/dist/components/ui/bottomSheet.es.js +76 -71
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.es.js +4 -4
- 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 +446 -0
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.es.js +30 -30
- package/dist/components/ui/drawer.cjs.js +1 -1
- package/dist/components/ui/drawer.es.js +2 -2
- 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 +672 -0
- package/dist/components/ui/share-ui.cjs.js +1 -1
- package/dist/components/ui/share-ui.es.js +2 -2
- package/dist/components/ui/tooltip.cjs.js +1 -0
- package/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/components/ui/tooltip.es.js +771 -0
- package/dist/components/ui/typography.cjs.js +1 -1
- package/dist/components/ui/typography.es.js +3 -3
- 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 +1 -1
- package/dist/core/Display/Pc.cjs.js +1 -1
- package/dist/core/Display/Pc.es.js +1 -1
- package/dist/core/Display/index.styled.cjs.js +1 -1
- package/dist/core/Display/index.styled.es.js +19 -21
- package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
- package/dist/core/Typography/BaseTypography/index.es.js +2 -2
- package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
- package/dist/hooks/useLayoutIsMobile.es.js +19 -21
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +11 -11
- package/dist/icons/src/aliases/aliases.es.js +46 -46
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.es.js +92 -92
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +16 -16
- package/dist/icons/src/aliases/prefixed.es.js +46 -46
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +18 -18
- package/dist/icons/src/aliases/suffixed.es.js +48 -48
- 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 +379 -345
- package/dist/lib/utils.cjs.js +1 -1
- package/dist/lib/utils.es.js +2729 -2
- 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 +37 -36
- package/dist/library/BasicLayout/index.cjs.js +1 -1
- package/dist/library/BasicLayout/index.d.ts +1 -1
- package/dist/library/BasicLayout/index.es.js +22 -24
- package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
- package/dist/library/BasicLayout/index.styled.es.js +47 -49
- package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/chip.es.js +1 -1
- 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 +19 -21
- package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +19 -21
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +8 -8
- package/package.json +16 -9
- package/dist/chunks/index.B0KRXeX3.js +0 -205
- package/dist/chunks/index.BIcga6m3.js +0 -1
- package/dist/chunks/index.BiFBNKMb.js +0 -51
- package/dist/chunks/index.C4mr2-78.js +0 -1
- package/dist/chunks/index.CAOufkQO.js +0 -1072
- package/dist/chunks/index.DLcqcWxM.js +0 -29
- package/dist/chunks/index.Dazlhpef.js +0 -45
- package/dist/chunks/index.DnJQUgiG.js +0 -1
- package/dist/chunks/index.SS1p-Ys5.js +0 -1
- package/dist/chunks/index.styled.DX1B4OiV.js +0 -412
- 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 -96
- 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/MiniButton/UnderLineMiniButton/index.styled.cjs.js +0 -8
- package/dist/components/MiniButton/UnderLineMiniButton/index.styled.d.ts +0 -9
- package/dist/components/MiniButton/UnderLineMiniButton/index.styled.es.js +0 -14
- 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 -80
- 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.d.ts +0 -0
- /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.es.js +0 -0
- /package/dist/components/{Modal → LegacyModal}/index.styled.cjs.js +0 -0
- /package/dist/components/{Modal → LegacyModal}/index.styled.d.ts +0 -0
- /package/dist/components/{Modal → LegacyModal}/index.styled.es.js +0 -0
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { c as N } from "./index.DLeNytVF.js";
|
|
3
|
+
import { u as _, c as ce } from "./index.CuQJFSqG.js";
|
|
4
|
+
import { P as R, c as ue, b as le, a as de } from "./index.CL8HuWEm.js";
|
|
5
|
+
import { u as P } from "./index.Sb_wKSRC.js";
|
|
6
|
+
import { R as fe, h as pe, u as me, D as ge } from "./index.kG55MjaG.js";
|
|
7
|
+
import { u as L, P as ve } from "./index.BrP7bNBb.js";
|
|
8
|
+
import { j as c } from "./jsx-runtime.Drh4NO5G.js";
|
|
9
|
+
import { P as A } from "./index.Cg4EOYHb.js";
|
|
10
|
+
var F = "focusScope.autoFocusOnMount", I = "focusScope.autoFocusOnUnmount", k = { bubbles: !1, cancelable: !0 }, Ee = "FocusScope", G = i.forwardRef((e, t) => {
|
|
11
|
+
const {
|
|
12
|
+
loop: o = !1,
|
|
13
|
+
trapped: n = !1,
|
|
14
|
+
onMountAutoFocus: s,
|
|
15
|
+
onUnmountAutoFocus: r,
|
|
16
|
+
...u
|
|
17
|
+
} = e, [a, p] = i.useState(null), m = L(s), C = L(r), b = i.useRef(null), ae = _(t, (l) => p(l)), E = i.useRef({
|
|
18
|
+
paused: !1,
|
|
19
|
+
pause() {
|
|
20
|
+
this.paused = !0;
|
|
21
|
+
},
|
|
22
|
+
resume() {
|
|
23
|
+
this.paused = !1;
|
|
24
|
+
}
|
|
25
|
+
}).current;
|
|
26
|
+
i.useEffect(() => {
|
|
27
|
+
if (n) {
|
|
28
|
+
let l = function(v) {
|
|
29
|
+
if (E.paused || !a) return;
|
|
30
|
+
const g = v.target;
|
|
31
|
+
a.contains(g) ? b.current = g : D(b.current, { select: !0 });
|
|
32
|
+
}, x = function(v) {
|
|
33
|
+
if (E.paused || !a) return;
|
|
34
|
+
const g = v.relatedTarget;
|
|
35
|
+
g !== null && (a.contains(g) || D(b.current, { select: !0 }));
|
|
36
|
+
}, d = function(v) {
|
|
37
|
+
if (document.activeElement === document.body)
|
|
38
|
+
for (const j of v)
|
|
39
|
+
j.removedNodes.length > 0 && D(a);
|
|
40
|
+
};
|
|
41
|
+
document.addEventListener("focusin", l), document.addEventListener("focusout", x);
|
|
42
|
+
const y = new MutationObserver(d);
|
|
43
|
+
return a && y.observe(a, { childList: !0, subtree: !0 }), () => {
|
|
44
|
+
document.removeEventListener("focusin", l), document.removeEventListener("focusout", x), y.disconnect();
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}, [n, a, E.paused]), i.useEffect(() => {
|
|
48
|
+
if (a) {
|
|
49
|
+
W.add(E);
|
|
50
|
+
const l = document.activeElement;
|
|
51
|
+
if (!a.contains(l)) {
|
|
52
|
+
const d = new CustomEvent(F, k);
|
|
53
|
+
a.addEventListener(F, m), a.dispatchEvent(d), d.defaultPrevented || (De(xe(H(a)), { select: !0 }), document.activeElement === l && D(a));
|
|
54
|
+
}
|
|
55
|
+
return () => {
|
|
56
|
+
a.removeEventListener(F, m), setTimeout(() => {
|
|
57
|
+
const d = new CustomEvent(I, k);
|
|
58
|
+
a.addEventListener(I, C), a.dispatchEvent(d), d.defaultPrevented || D(l ?? document.body, { select: !0 }), a.removeEventListener(I, C), W.remove(E);
|
|
59
|
+
}, 0);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}, [a, m, C, E]);
|
|
63
|
+
const ie = i.useCallback(
|
|
64
|
+
(l) => {
|
|
65
|
+
if (!o && !n || E.paused) return;
|
|
66
|
+
const x = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, d = document.activeElement;
|
|
67
|
+
if (x && d) {
|
|
68
|
+
const y = l.currentTarget, [v, g] = Ce(y);
|
|
69
|
+
v && g ? !l.shiftKey && d === g ? (l.preventDefault(), o && D(v, { select: !0 })) : l.shiftKey && d === v && (l.preventDefault(), o && D(g, { select: !0 })) : d === y && l.preventDefault();
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
[o, n, E.paused]
|
|
73
|
+
);
|
|
74
|
+
return /* @__PURE__ */ c.jsx(R.div, { tabIndex: -1, ...u, ref: ae, onKeyDown: ie });
|
|
75
|
+
});
|
|
76
|
+
G.displayName = Ee;
|
|
77
|
+
function De(e, { select: t = !1 } = {}) {
|
|
78
|
+
const o = document.activeElement;
|
|
79
|
+
for (const n of e)
|
|
80
|
+
if (D(n, { select: t }), document.activeElement !== o) return;
|
|
81
|
+
}
|
|
82
|
+
function Ce(e) {
|
|
83
|
+
const t = H(e), o = U(t, e), n = U(t.reverse(), e);
|
|
84
|
+
return [o, n];
|
|
85
|
+
}
|
|
86
|
+
function H(e) {
|
|
87
|
+
const t = [], o = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
88
|
+
acceptNode: (n) => {
|
|
89
|
+
const s = n.tagName === "INPUT" && n.type === "hidden";
|
|
90
|
+
return n.disabled || n.hidden || s ? NodeFilter.FILTER_SKIP : n.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
for (; o.nextNode(); ) t.push(o.currentNode);
|
|
94
|
+
return t;
|
|
95
|
+
}
|
|
96
|
+
function U(e, t) {
|
|
97
|
+
for (const o of e)
|
|
98
|
+
if (!he(o, { upTo: t })) return o;
|
|
99
|
+
}
|
|
100
|
+
function he(e, { upTo: t }) {
|
|
101
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
102
|
+
for (; e; ) {
|
|
103
|
+
if (t !== void 0 && e === t) return !1;
|
|
104
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
105
|
+
e = e.parentElement;
|
|
106
|
+
}
|
|
107
|
+
return !1;
|
|
108
|
+
}
|
|
109
|
+
function Re(e) {
|
|
110
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
111
|
+
}
|
|
112
|
+
function D(e, { select: t = !1 } = {}) {
|
|
113
|
+
if (e && e.focus) {
|
|
114
|
+
const o = document.activeElement;
|
|
115
|
+
e.focus({ preventScroll: !0 }), e !== o && Re(e) && t && e.select();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
var W = be();
|
|
119
|
+
function be() {
|
|
120
|
+
let e = [];
|
|
121
|
+
return {
|
|
122
|
+
add(t) {
|
|
123
|
+
const o = e[0];
|
|
124
|
+
t !== o && (o == null || o.pause()), e = K(e, t), e.unshift(t);
|
|
125
|
+
},
|
|
126
|
+
remove(t) {
|
|
127
|
+
var o;
|
|
128
|
+
e = K(e, t), (o = e[0]) == null || o.resume();
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function K(e, t) {
|
|
133
|
+
const o = [...e], n = o.indexOf(t);
|
|
134
|
+
return n !== -1 && o.splice(n, 1), o;
|
|
135
|
+
}
|
|
136
|
+
function xe(e) {
|
|
137
|
+
return e.filter((t) => t.tagName !== "A");
|
|
138
|
+
}
|
|
139
|
+
var T = "Dialog", [$, Ke] = ue(T), [ye, f] = $(T), V = (e) => {
|
|
140
|
+
const {
|
|
141
|
+
__scopeDialog: t,
|
|
142
|
+
children: o,
|
|
143
|
+
open: n,
|
|
144
|
+
defaultOpen: s,
|
|
145
|
+
onOpenChange: r,
|
|
146
|
+
modal: u = !0
|
|
147
|
+
} = e, a = i.useRef(null), p = i.useRef(null), [m, C] = de({
|
|
148
|
+
prop: n,
|
|
149
|
+
defaultProp: s ?? !1,
|
|
150
|
+
onChange: r,
|
|
151
|
+
caller: T
|
|
152
|
+
});
|
|
153
|
+
return /* @__PURE__ */ c.jsx(
|
|
154
|
+
ye,
|
|
155
|
+
{
|
|
156
|
+
scope: t,
|
|
157
|
+
triggerRef: a,
|
|
158
|
+
contentRef: p,
|
|
159
|
+
contentId: P(),
|
|
160
|
+
titleId: P(),
|
|
161
|
+
descriptionId: P(),
|
|
162
|
+
open: m,
|
|
163
|
+
onOpenChange: C,
|
|
164
|
+
onOpenToggle: i.useCallback(() => C((b) => !b), [C]),
|
|
165
|
+
modal: u,
|
|
166
|
+
children: o
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
};
|
|
170
|
+
V.displayName = T;
|
|
171
|
+
var B = "DialogTrigger", q = i.forwardRef(
|
|
172
|
+
(e, t) => {
|
|
173
|
+
const { __scopeDialog: o, ...n } = e, s = f(B, o), r = _(t, s.triggerRef);
|
|
174
|
+
return /* @__PURE__ */ c.jsx(
|
|
175
|
+
R.button,
|
|
176
|
+
{
|
|
177
|
+
type: "button",
|
|
178
|
+
"aria-haspopup": "dialog",
|
|
179
|
+
"aria-expanded": s.open,
|
|
180
|
+
"aria-controls": s.contentId,
|
|
181
|
+
"data-state": w(s.open),
|
|
182
|
+
...n,
|
|
183
|
+
ref: r,
|
|
184
|
+
onClick: N(e.onClick, s.onOpenToggle)
|
|
185
|
+
}
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
);
|
|
189
|
+
q.displayName = B;
|
|
190
|
+
var S = "DialogPortal", [Ne, Y] = $(S, {
|
|
191
|
+
forceMount: void 0
|
|
192
|
+
}), Z = (e) => {
|
|
193
|
+
const { __scopeDialog: t, forceMount: o, children: n, container: s } = e, r = f(S, t);
|
|
194
|
+
return /* @__PURE__ */ c.jsx(Ne, { scope: t, forceMount: o, children: i.Children.map(n, (u) => /* @__PURE__ */ c.jsx(A, { present: o || r.open, children: /* @__PURE__ */ c.jsx(ve, { asChild: !0, container: s, children: u }) })) });
|
|
195
|
+
};
|
|
196
|
+
Z.displayName = S;
|
|
197
|
+
var O = "DialogOverlay", z = i.forwardRef(
|
|
198
|
+
(e, t) => {
|
|
199
|
+
const o = Y(O, e.__scopeDialog), { forceMount: n = o.forceMount, ...s } = e, r = f(O, e.__scopeDialog);
|
|
200
|
+
return r.modal ? /* @__PURE__ */ c.jsx(A, { present: n || r.open, children: /* @__PURE__ */ c.jsx(_e, { ...s, ref: t }) }) : null;
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
z.displayName = O;
|
|
204
|
+
var Oe = ce("DialogOverlay.RemoveScroll"), _e = i.forwardRef(
|
|
205
|
+
(e, t) => {
|
|
206
|
+
const { __scopeDialog: o, ...n } = e, s = f(O, o);
|
|
207
|
+
return (
|
|
208
|
+
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
209
|
+
// ie. when `Overlay` and `Content` are siblings
|
|
210
|
+
/* @__PURE__ */ c.jsx(fe, { as: Oe, allowPinchZoom: !0, shards: [s.contentRef], children: /* @__PURE__ */ c.jsx(
|
|
211
|
+
R.div,
|
|
212
|
+
{
|
|
213
|
+
"data-state": w(s.open),
|
|
214
|
+
...n,
|
|
215
|
+
ref: t,
|
|
216
|
+
style: { pointerEvents: "auto", ...n.style }
|
|
217
|
+
}
|
|
218
|
+
) })
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
), h = "DialogContent", J = i.forwardRef(
|
|
222
|
+
(e, t) => {
|
|
223
|
+
const o = Y(h, e.__scopeDialog), { forceMount: n = o.forceMount, ...s } = e, r = f(h, e.__scopeDialog);
|
|
224
|
+
return /* @__PURE__ */ c.jsx(A, { present: n || r.open, children: r.modal ? /* @__PURE__ */ c.jsx(Te, { ...s, ref: t }) : /* @__PURE__ */ c.jsx(Pe, { ...s, ref: t }) });
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
J.displayName = h;
|
|
228
|
+
var Te = i.forwardRef(
|
|
229
|
+
(e, t) => {
|
|
230
|
+
const o = f(h, e.__scopeDialog), n = i.useRef(null), s = _(t, o.contentRef, n);
|
|
231
|
+
return i.useEffect(() => {
|
|
232
|
+
const r = n.current;
|
|
233
|
+
if (r) return pe(r);
|
|
234
|
+
}, []), /* @__PURE__ */ c.jsx(
|
|
235
|
+
Q,
|
|
236
|
+
{
|
|
237
|
+
...e,
|
|
238
|
+
ref: s,
|
|
239
|
+
trapFocus: o.open,
|
|
240
|
+
disableOutsidePointerEvents: !0,
|
|
241
|
+
onCloseAutoFocus: N(e.onCloseAutoFocus, (r) => {
|
|
242
|
+
var u;
|
|
243
|
+
r.preventDefault(), (u = o.triggerRef.current) == null || u.focus();
|
|
244
|
+
}),
|
|
245
|
+
onPointerDownOutside: N(e.onPointerDownOutside, (r) => {
|
|
246
|
+
const u = r.detail.originalEvent, a = u.button === 0 && u.ctrlKey === !0;
|
|
247
|
+
(u.button === 2 || a) && r.preventDefault();
|
|
248
|
+
}),
|
|
249
|
+
onFocusOutside: N(
|
|
250
|
+
e.onFocusOutside,
|
|
251
|
+
(r) => r.preventDefault()
|
|
252
|
+
)
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
), Pe = i.forwardRef(
|
|
257
|
+
(e, t) => {
|
|
258
|
+
const o = f(h, e.__scopeDialog), n = i.useRef(!1), s = i.useRef(!1);
|
|
259
|
+
return /* @__PURE__ */ c.jsx(
|
|
260
|
+
Q,
|
|
261
|
+
{
|
|
262
|
+
...e,
|
|
263
|
+
ref: t,
|
|
264
|
+
trapFocus: !1,
|
|
265
|
+
disableOutsidePointerEvents: !1,
|
|
266
|
+
onCloseAutoFocus: (r) => {
|
|
267
|
+
var u, a;
|
|
268
|
+
(u = e.onCloseAutoFocus) == null || u.call(e, r), r.defaultPrevented || (n.current || (a = o.triggerRef.current) == null || a.focus(), r.preventDefault()), n.current = !1, s.current = !1;
|
|
269
|
+
},
|
|
270
|
+
onInteractOutside: (r) => {
|
|
271
|
+
var p, m;
|
|
272
|
+
(p = e.onInteractOutside) == null || p.call(e, r), r.defaultPrevented || (n.current = !0, r.detail.originalEvent.type === "pointerdown" && (s.current = !0));
|
|
273
|
+
const u = r.target;
|
|
274
|
+
((m = o.triggerRef.current) == null ? void 0 : m.contains(u)) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && s.current && r.preventDefault();
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
), Q = i.forwardRef(
|
|
280
|
+
(e, t) => {
|
|
281
|
+
const { __scopeDialog: o, trapFocus: n, onOpenAutoFocus: s, onCloseAutoFocus: r, ...u } = e, a = f(h, o), p = i.useRef(null), m = _(t, p);
|
|
282
|
+
return me(), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
283
|
+
/* @__PURE__ */ c.jsx(
|
|
284
|
+
G,
|
|
285
|
+
{
|
|
286
|
+
asChild: !0,
|
|
287
|
+
loop: !0,
|
|
288
|
+
trapped: n,
|
|
289
|
+
onMountAutoFocus: s,
|
|
290
|
+
onUnmountAutoFocus: r,
|
|
291
|
+
children: /* @__PURE__ */ c.jsx(
|
|
292
|
+
ge,
|
|
293
|
+
{
|
|
294
|
+
role: "dialog",
|
|
295
|
+
id: a.contentId,
|
|
296
|
+
"aria-describedby": a.descriptionId,
|
|
297
|
+
"aria-labelledby": a.titleId,
|
|
298
|
+
"data-state": w(a.open),
|
|
299
|
+
...u,
|
|
300
|
+
ref: m,
|
|
301
|
+
onDismiss: () => a.onOpenChange(!1)
|
|
302
|
+
}
|
|
303
|
+
)
|
|
304
|
+
}
|
|
305
|
+
),
|
|
306
|
+
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
307
|
+
/* @__PURE__ */ c.jsx(Fe, { titleId: a.titleId }),
|
|
308
|
+
/* @__PURE__ */ c.jsx(Ae, { contentRef: p, descriptionId: a.descriptionId })
|
|
309
|
+
] })
|
|
310
|
+
] });
|
|
311
|
+
}
|
|
312
|
+
), M = "DialogTitle", X = i.forwardRef(
|
|
313
|
+
(e, t) => {
|
|
314
|
+
const { __scopeDialog: o, ...n } = e, s = f(M, o);
|
|
315
|
+
return /* @__PURE__ */ c.jsx(R.h2, { id: s.titleId, ...n, ref: t });
|
|
316
|
+
}
|
|
317
|
+
);
|
|
318
|
+
X.displayName = M;
|
|
319
|
+
var ee = "DialogDescription", te = i.forwardRef(
|
|
320
|
+
(e, t) => {
|
|
321
|
+
const { __scopeDialog: o, ...n } = e, s = f(ee, o);
|
|
322
|
+
return /* @__PURE__ */ c.jsx(R.p, { id: s.descriptionId, ...n, ref: t });
|
|
323
|
+
}
|
|
324
|
+
);
|
|
325
|
+
te.displayName = ee;
|
|
326
|
+
var oe = "DialogClose", ne = i.forwardRef(
|
|
327
|
+
(e, t) => {
|
|
328
|
+
const { __scopeDialog: o, ...n } = e, s = f(oe, o);
|
|
329
|
+
return /* @__PURE__ */ c.jsx(
|
|
330
|
+
R.button,
|
|
331
|
+
{
|
|
332
|
+
type: "button",
|
|
333
|
+
...n,
|
|
334
|
+
ref: t,
|
|
335
|
+
onClick: N(e.onClick, () => s.onOpenChange(!1))
|
|
336
|
+
}
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
ne.displayName = oe;
|
|
341
|
+
function w(e) {
|
|
342
|
+
return e ? "open" : "closed";
|
|
343
|
+
}
|
|
344
|
+
var re = "DialogTitleWarning", [Ge, se] = le(re, {
|
|
345
|
+
contentName: h,
|
|
346
|
+
titleName: M,
|
|
347
|
+
docsSlug: "dialog"
|
|
348
|
+
}), Fe = ({ titleId: e }) => {
|
|
349
|
+
const t = se(re), o = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
350
|
+
|
|
351
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
352
|
+
|
|
353
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
354
|
+
return i.useEffect(() => {
|
|
355
|
+
e && (document.getElementById(e) || console.error(o));
|
|
356
|
+
}, [o, e]), null;
|
|
357
|
+
}, Ie = "DialogDescriptionWarning", Ae = ({ contentRef: e, descriptionId: t }) => {
|
|
358
|
+
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${se(Ie).contentName}}.`;
|
|
359
|
+
return i.useEffect(() => {
|
|
360
|
+
var r;
|
|
361
|
+
const s = (r = e.current) == null ? void 0 : r.getAttribute("aria-describedby");
|
|
362
|
+
t && s && (document.getElementById(t) || console.warn(n));
|
|
363
|
+
}, [n, e, t]), null;
|
|
364
|
+
}, He = V, $e = q, Ve = Z, Be = z, qe = J, Ye = X, Ze = te, ze = ne;
|
|
365
|
+
export {
|
|
366
|
+
ze as C,
|
|
367
|
+
Ze as D,
|
|
368
|
+
Be as O,
|
|
369
|
+
Ve as P,
|
|
370
|
+
He as R,
|
|
371
|
+
Ye as T,
|
|
372
|
+
qe as a,
|
|
373
|
+
$e as b
|
|
374
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const ue=require("react"),O=require("./index.DaxnLcvM.js"),j=require("./index.BKQj6Ros.js"),x=require("./index.BGQJ5UjQ.js"),T=require("./index.BX-VsGjT.js"),N=require("./index.BZCoWHJr.js"),A=require("./index.1jpVsLW3.js"),c=require("./jsx-runtime.713F0z8w.js"),S=require("./index.R27B_vrp.js");function le(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 o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=le(ue);var I="focusScope.autoFocusOnMount",F="focusScope.autoFocusOnUnmount",U={bubbles:!1,cancelable:!0},de="FocusScope",q=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:r,...u}=e,[i,p]=a.useState(null),m=A.useCallbackRef(s),C=A.useCallbackRef(r),b=a.useRef(null),ae=j.useComposedRefs(t,l=>p(l)),E=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(o){let l=function(v){if(E.paused||!i)return;const g=v.target;i.contains(g)?b.current=g:R(b.current,{select:!0})},h=function(v){if(E.paused||!i)return;const g=v.relatedTarget;g!==null&&(i.contains(g)||R(b.current,{select:!0}))},d=function(v){if(document.activeElement===document.body)for(const k of v)k.removedNodes.length>0&&R(i)};document.addEventListener("focusin",l),document.addEventListener("focusout",h);const y=new MutationObserver(d);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",h),y.disconnect()}}},[o,i,E.paused]),a.useEffect(()=>{if(i){K.add(E);const l=document.activeElement;if(!i.contains(l)){const d=new CustomEvent(I,U);i.addEventListener(I,m),i.dispatchEvent(d),d.defaultPrevented||(fe(xe(H(i)),{select:!0}),document.activeElement===l&&R(i))}return()=>{i.removeEventListener(I,m),setTimeout(()=>{const d=new CustomEvent(F,U);i.addEventListener(F,C),i.dispatchEvent(d),d.defaultPrevented||R(l??document.body,{select:!0}),i.removeEventListener(F,C),K.remove(E)},0)}}},[i,m,C,E]);const ce=a.useCallback(l=>{if(!n&&!o||E.paused)return;const h=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,d=document.activeElement;if(h&&d){const y=l.currentTarget,[v,g]=pe(y);v&&g?!l.shiftKey&&d===g?(l.preventDefault(),n&&R(v,{select:!0})):l.shiftKey&&d===v&&(l.preventDefault(),n&&R(g,{select:!0})):d===y&&l.preventDefault()}},[n,o,E.paused]);return c.jsxRuntimeExports.jsx(x.Primitive.div,{tabIndex:-1,...u,ref:ae,onKeyDown:ce})});q.displayName=de;function fe(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(R(o,{select:t}),document.activeElement!==n)return}function pe(e){const t=H(e),n=W(t,e),o=W(t.reverse(),e);return[n,o]}function H(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function W(e,t){for(const n of e)if(!me(n,{upTo:t}))return n}function me(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ge(e){return e instanceof HTMLInputElement&&"select"in e}function R(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ge(e)&&t&&e.select()}}var K=ve();function ve(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=$(e,t),e.unshift(t)},remove(t){var n;e=$(e,t),(n=e[0])==null||n.resume()}}}function $(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function xe(e){return e.filter(t=>t.tagName!=="A")}var P="Dialog",[G,Me]=x.createContextScope(P),[Ee,f]=G(P),V=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:s,onOpenChange:r,modal:u=!0}=e,i=a.useRef(null),p=a.useRef(null),[m,C]=x.useControllableState({prop:o,defaultProp:s??!1,onChange:r,caller:P});return c.jsxRuntimeExports.jsx(Ee,{scope:t,triggerRef:i,contentRef:p,contentId:T.useId(),titleId:T.useId(),descriptionId:T.useId(),open:m,onOpenChange:C,onOpenToggle:a.useCallback(()=>C(b=>!b),[C]),modal:u,children:n})};V.displayName=P;var B="DialogTrigger",z=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,s=f(B,n),r=j.useComposedRefs(t,s.triggerRef);return c.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":L(s.open),...o,ref:r,onClick:O.composeEventHandlers(e.onClick,s.onOpenToggle)})});z.displayName=B;var M="DialogPortal",[Re,Y]=G(M,{forceMount:void 0}),Z=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:s}=e,r=f(M,t);return c.jsxRuntimeExports.jsx(Re,{scope:t,forceMount:n,children:a.Children.map(o,u=>c.jsxRuntimeExports.jsx(S.Presence,{present:n||r.open,children:c.jsxRuntimeExports.jsx(A.Portal,{asChild:!0,container:s,children:u})}))})};Z.displayName=M;var _="DialogOverlay",J=a.forwardRef((e,t)=>{const n=Y(_,e.__scopeDialog),{forceMount:o=n.forceMount,...s}=e,r=f(_,e.__scopeDialog);return r.modal?c.jsxRuntimeExports.jsx(S.Presence,{present:o||r.open,children:c.jsxRuntimeExports.jsx(De,{...s,ref:t})}):null});J.displayName=_;var Ce=j.createSlot("DialogOverlay.RemoveScroll"),De=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,s=f(_,n);return c.jsxRuntimeExports.jsx(N.ReactRemoveScroll,{as:Ce,allowPinchZoom:!0,shards:[s.contentRef],children:c.jsxRuntimeExports.jsx(x.Primitive.div,{"data-state":L(s.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),D="DialogContent",Q=a.forwardRef((e,t)=>{const n=Y(D,e.__scopeDialog),{forceMount:o=n.forceMount,...s}=e,r=f(D,e.__scopeDialog);return c.jsxRuntimeExports.jsx(S.Presence,{present:o||r.open,children:r.modal?c.jsxRuntimeExports.jsx(be,{...s,ref:t}):c.jsxRuntimeExports.jsx(he,{...s,ref:t})})});Q.displayName=D;var be=a.forwardRef((e,t)=>{const n=f(D,e.__scopeDialog),o=a.useRef(null),s=j.useComposedRefs(t,n.contentRef,o);return a.useEffect(()=>{const r=o.current;if(r)return N.hideOthers(r)},[]),c.jsxRuntimeExports.jsx(X,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:O.composeEventHandlers(e.onCloseAutoFocus,r=>{var u;r.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:O.composeEventHandlers(e.onPointerDownOutside,r=>{const u=r.detail.originalEvent,i=u.button===0&&u.ctrlKey===!0;(u.button===2||i)&&r.preventDefault()}),onFocusOutside:O.composeEventHandlers(e.onFocusOutside,r=>r.preventDefault())})}),he=a.forwardRef((e,t)=>{const n=f(D,e.__scopeDialog),o=a.useRef(!1),s=a.useRef(!1);return c.jsxRuntimeExports.jsx(X,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{var u,i;(u=e.onCloseAutoFocus)==null||u.call(e,r),r.defaultPrevented||(o.current||(i=n.triggerRef.current)==null||i.focus(),r.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:r=>{var p,m;(p=e.onInteractOutside)==null||p.call(e,r),r.defaultPrevented||(o.current=!0,r.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=r.target;((m=n.triggerRef.current)==null?void 0:m.contains(u))&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&s.current&&r.preventDefault()}})}),X=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:r,...u}=e,i=f(D,n),p=a.useRef(null),m=j.useComposedRefs(t,p);return N.useFocusGuards(),c.jsxRuntimeExports.jsxs(c.jsxRuntimeExports.Fragment,{children:[c.jsxRuntimeExports.jsx(q,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:r,children:c.jsxRuntimeExports.jsx(N.DismissableLayer,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":L(i.open),...u,ref:m,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxRuntimeExports.jsxs(c.jsxRuntimeExports.Fragment,{children:[c.jsxRuntimeExports.jsx(ye,{titleId:i.titleId}),c.jsxRuntimeExports.jsx(je,{contentRef:p,descriptionId:i.descriptionId})]})]})}),w="DialogTitle",ee=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,s=f(w,n);return c.jsxRuntimeExports.jsx(x.Primitive.h2,{id:s.titleId,...o,ref:t})});ee.displayName=w;var te="DialogDescription",ne=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,s=f(te,n);return c.jsxRuntimeExports.jsx(x.Primitive.p,{id:s.descriptionId,...o,ref:t})});ne.displayName=te;var oe="DialogClose",re=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,s=f(oe,n);return c.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",...o,ref:t,onClick:O.composeEventHandlers(e.onClick,()=>s.onOpenChange(!1))})});re.displayName=oe;function L(e){return e?"open":"closed"}var se="DialogTitleWarning",[we,ie]=x.createContext2(se,{contentName:D,titleName:w,docsSlug:"dialog"}),ye=({titleId:e})=>{const t=ie(se),n=`\`${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 a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Oe="DialogDescriptionWarning",je=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ie(Oe).contentName}}.`;return a.useEffect(()=>{var r;const s=(r=e.current)==null?void 0:r.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Ne=V,_e=z,Pe=Z,Te=J,Ie=Q,Fe=ee,Ae=ne,Se=re;exports.Close=Se;exports.Content=Ie;exports.Description=Ae;exports.Overlay=Te;exports.Portal=Pe;exports.Root=Ne;exports.Title=Fe;exports.Trigger=_e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const w=require("react"),S=require("./jsx-runtime.713F0z8w.js"),E=require("react-dom"),j=require("./index.BKQj6Ros.js");function b(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 u=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,u.get?u:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const s=b(w),y=b(E);function R(t,e){const n=s.createContext(e),u=c=>{const{children:o,...r}=c,l=s.useMemo(()=>r,Object.values(r));return S.jsxRuntimeExports.jsx(n.Provider,{value:l,children:o})};u.displayName=t+"Provider";function i(c){const o=s.useContext(n);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${c}\` must be used within \`${t}\``)}return[u,i]}function $(t,e=[]){let n=[];function u(c,o){const r=s.createContext(o),l=n.length;n=[...n,o];const m=a=>{var C;const{scope:f,children:p,...v}=a,x=((C=f==null?void 0:f[t])==null?void 0:C[l])||r,P=s.useMemo(()=>v,Object.values(v));return S.jsxRuntimeExports.jsx(x.Provider,{value:P,children:p})};m.displayName=c+"Provider";function d(a,f){var x;const p=((x=f==null?void 0:f[t])==null?void 0:x[l])||r,v=s.useContext(p);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${a}\` must be used within \`${c}\``)}return[m,d]}const i=()=>{const c=n.map(o=>s.createContext(o));return function(r){const l=(r==null?void 0:r[t])||c;return s.useMemo(()=>({[`__scope${t}`]:{...r,[t]:l}}),[r,l])}};return i.scopeName=t,[u,_(i,...e)]}function _(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const u=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(c){const o=u.reduce((r,{useScope:l,scopeName:m})=>{const a=l(c)[`__scope${m}`];return{...r,...a}},{});return s.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}var h=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{},O=s[" useInsertionEffect ".trim().toString()]||h;function g({prop:t,defaultProp:e,onChange:n=()=>{},caller:u}){const[i,c,o]=D({defaultProp:e,onChange:n}),r=t!==void 0,l=r?t:i;{const d=s.useRef(t!==void 0);s.useEffect(()=>{const a=d.current;a!==r&&console.warn(`${u} is changing from ${a?"controlled":"uncontrolled"} to ${r?"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=r},[r,u])}const m=s.useCallback(d=>{var a;if(r){const f=M(d)?d(t):d;f!==t&&((a=o.current)==null||a.call(o,f))}else c(d)},[r,t,c,o]);return[l,m]}function D({defaultProp:t,onChange:e}){const[n,u]=s.useState(t),i=s.useRef(n),c=s.useRef(e);return O(()=>{c.current=e},[e]),s.useEffect(()=>{var o;i.current!==n&&((o=c.current)==null||o.call(c,n),i.current=n)},[n,i]),[n,u,c]}function M(t){return typeof t=="function"}var N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=N.reduce((t,e)=>{const n=j.createSlot(`Primitive.${e}`),u=s.forwardRef((i,c)=>{const{asChild:o,...r}=i,l=o?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsxRuntimeExports.jsx(l,{...r,ref:c})});return u.displayName=`Primitive.${e}`,{...t,[e]:u}},{});function k(t,e){t&&y.flushSync(()=>t.dispatchEvent(e))}exports.Primitive=q;exports.createContext2=R;exports.createContextScope=$;exports.dispatchDiscreteCustomEvent=k;exports.useControllableState=g;exports.useLayoutEffect2=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const g=require("react"),f=require("./jsx-runtime.713F0z8w.js");function R(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=R(g);function d(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function m(...e){return t=>{let r=!1;const o=e.map(n=>{const l=d(n,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let n=0;n<o.length;n++){const l=o[n];typeof l=="function"?l():d(e[n],null)}}}}function j(...e){return i.useCallback(m(...e),e)}function y(e){const t=C(e),r=i.forwardRef((o,n)=>{const{children:l,...c}=o,s=i.Children.toArray(l),u=s.find(h);if(u){const a=u.props.children,b=s.map(p=>p===u?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:p);return f.jsxRuntimeExports.jsx(t,{...c,ref:n,children:i.isValidElement(a)?i.cloneElement(a,void 0,b):null})}return f.jsxRuntimeExports.jsx(t,{...c,ref:n,children:l})});return r.displayName=`${e}.Slot`,r}var x=y("Slot");function C(e){const t=i.forwardRef((r,o)=>{const{children:n,...l}=r;if(i.isValidElement(n)){const c=_(n),s=O(l,n.props);return n.type!==i.Fragment&&(s.ref=o?m(o,c):c),i.cloneElement(n,s)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var S=Symbol("radix.slottable");function E(e){const t=({children:r})=>f.jsxRuntimeExports.jsx(f.jsxRuntimeExports.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=S,t}function h(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===S}function O(e,t){const r={...t};for(const o in t){const n=e[o],l=t[o];/^on[A-Z]/.test(o)?n&&l?r[o]=(...s)=>{const u=l(...s);return n(...s),u}:n&&(r[o]=n):o==="style"?r[o]={...n,...l}:o==="className"&&(r[o]=[n,l].filter(Boolean).join(" "))}return{...e,...r}}function _(e){var o,n;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}exports.Slot=x;exports.createSlot=y;exports.createSlottable=E;exports.useComposedRefs=j;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("react"),c=require("./index.BGQJ5UjQ.js");function a(t){if(t&&typeof t=="object"&&"default"in t)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const o=a(u);var i=o[" useId ".trim().toString()]||(()=>{}),s=0;function f(t){const[e,r]=o.useState(i());return c.useLayoutEffect2(()=>{r(n=>n??String(s++))},[t]),t||(e?`radix-${e}`:"")}exports.useId=f;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";const ae=require("react"),_=require("./index.DaxnLcvM.js"),G=require("./index.BGQJ5UjQ.js"),oe=require("./index.BKQj6Ros.js"),Z=require("./index.1jpVsLW3.js"),ie=require("./jsx-runtime.713F0z8w.js");function be(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=be(ae);var Ee="DismissableLayer",V="dismissableLayer.update",we="dismissableLayer.pointerDownOutside",Se="dismissableLayer.focusOutside",$,ce=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ue=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:i,...g}=e,l=c.useContext(ce),[f,h]=c.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,b]=c.useState({}),S=oe.useComposedRefs(t,m=>h(m)),u=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),p=u.indexOf(v),E=f?u.indexOf(f):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,C=E>=p,y=Pe(m=>{const O=m.target,D=[...l.branches].some(F=>F.contains(O));!C||D||(a==null||a(m),s==null||s(m),m.defaultPrevented||i==null||i())},d),P=Oe(m=>{const O=m.target;[...l.branches].some(F=>F.contains(O))||(o==null||o(m),s==null||s(m),m.defaultPrevented||i==null||i())},d);return Z.useEscapeKeydown(m=>{E===l.layers.size-1&&(n==null||n(m),!m.defaultPrevented&&i&&(m.preventDefault(),i()))},d),c.useEffect(()=>{if(f)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&($=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Q(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=$)}},[f,d,r,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Q())},[f,l]),c.useEffect(()=>{const m=()=>b({});return document.addEventListener(V,m),()=>document.removeEventListener(V,m)},[]),ie.jsxRuntimeExports.jsx(G.Primitive.div,{...g,ref:S,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:_.composeEventHandlers(e.onFocusCapture,P.onFocusCapture),onBlurCapture:_.composeEventHandlers(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:_.composeEventHandlers(e.onPointerDownCapture,y.onPointerDownCapture)})});ue.displayName=Ee;var Ce="DismissableLayerBranch",Re=c.forwardRef((e,t)=>{const r=c.useContext(ce),n=c.useRef(null),a=oe.useComposedRefs(t,n);return c.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),ie.jsxRuntimeExports.jsx(G.Primitive.div,{...e,ref:a})});Re.displayName=Ce;function Pe(e,t=globalThis==null?void 0:globalThis.document){const r=Z.useCallbackRef(e),n=c.useRef(!1),a=c.useRef(()=>{});return c.useEffect(()=>{const o=i=>{if(i.target&&!n.current){let g=function(){se(we,r,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=g,t.addEventListener("click",a.current,{once:!0})):g()}else t.removeEventListener("click",a.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Oe(e,t=globalThis==null?void 0:globalThis.document){const r=Z.useCallbackRef(e),n=c.useRef(!1);return c.useEffect(()=>{const a=o=>{o.target&&!n.current&&se(Se,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Q(){const e=new CustomEvent(V);document.dispatchEvent(e)}function se(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?G.dispatchDiscreteCustomEvent(a,o):a.dispatchEvent(o)}var H=0;function Le(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??K()),document.body.insertAdjacentElement("beforeend",e[1]??K()),H++,()=>{H===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),H--}},[])}function K(){const e=document.createElement("span");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}var R=function(){return R=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},R.apply(this,arguments)};function le(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function ke(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var N="right-scroll-bar-position",I="width-before-scroll-bar",xe="with-scroll-bars-hidden",Ae="--removed-body-scroll-bar-size";function X(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function De(e,t){var r=ae.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var Te=typeof window<"u"?c.useLayoutEffect:c.useEffect,J=new WeakMap;function Be(e,t){var r=De(null,function(n){return e.forEach(function(a){return X(a,n)})});return Te(function(){var n=J.get(r);if(n){var a=new Set(n),o=new Set(e),s=r.current;a.forEach(function(i){o.has(i)||X(i,null)}),o.forEach(function(i){a.has(i)||X(i,s)})}J.set(r,e)},[e]),r}function Me(e){return e}function We(e,t){t===void 0&&(t=Me);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var s=t(o,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(o){for(n=!0;r.length;){var s=r;r=[],s.forEach(o)}r={push:function(i){return o(i)},filter:function(){return r}}},assignMedium:function(o){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(o),s=r}var g=function(){var f=s;s=[],f.forEach(o)},l=function(){return Promise.resolve().then(g)};l(),r={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),r}}}};return a}function Ne(e){e===void 0&&(e={});var t=We(null);return t.options=R({async:!0,ssr:!1},e),t}var fe=function(e){var t=e.sideCar,r=le(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return c.createElement(n,R({},r))};fe.isSideCarExport=!0;function Ie(e,t){return e.useMedium(t),fe}var de=Ne(),Y=function(){},j=c.forwardRef(function(e,t){var r=c.useRef(null),n=c.useState({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:Y}),a=n[0],o=n[1],s=e.forwardProps,i=e.children,g=e.className,l=e.removeScrollBar,f=e.enabled,h=e.shards,d=e.sideCar,b=e.noIsolation,S=e.inert,u=e.allowPinchZoom,v=e.as,p=v===void 0?"div":v,E=e.gapMode,w=le(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,y=Be([r,t]),P=R(R({},w),a);return c.createElement(c.Fragment,null,f&&c.createElement(C,{sideCar:de,removeScrollBar:l,shards:h,noIsolation:b,inert:S,setCallbacks:o,allowPinchZoom:!!u,lockRef:r,gapMode:E}),s?c.cloneElement(c.Children.only(i),R(R({},P),{ref:y})):c.createElement(p,R({},P,{className:g,ref:y}),i))});j.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};j.classNames={fullWidth:I,zeroRight:N};var je=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Fe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=je();return t&&e.setAttribute("nonce",t),e}function _e(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function He(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xe=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Fe())&&(_e(t,r),He(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ye=function(){var e=Xe();return function(t,r){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ve=function(){var e=Ye(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},ze={left:0,top:0,right:0,gap:0},z=function(e){return parseInt(e||"",10)||0},qe=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[z(r),z(n),z(a)]},Ve=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ze;var t=qe(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Ue=ve(),A="data-scroll-locked",Ge=function(e,t,r,n){var a=e.left,o=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
2
|
+
.`.concat(xe,` {
|
|
3
|
+
overflow: hidden `).concat(n,`;
|
|
4
|
+
padding-right: `).concat(i,"px ").concat(n,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(A,`] {
|
|
7
|
+
overflow: hidden `).concat(n,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
10
|
+
padding-left: `.concat(a,`px;
|
|
11
|
+
padding-top: `).concat(o,`px;
|
|
12
|
+
padding-right: `).concat(s,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(i,"px ").concat(n,`;
|
|
16
|
+
`),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(N,` {
|
|
20
|
+
right: `).concat(i,"px ").concat(n,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(I,` {
|
|
24
|
+
margin-right: `).concat(i,"px ").concat(n,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(N," .").concat(N,` {
|
|
28
|
+
right: 0 `).concat(n,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(I," .").concat(I,` {
|
|
32
|
+
margin-right: 0 `).concat(n,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(A,`] {
|
|
36
|
+
`).concat(Ae,": ").concat(i,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},ee=function(){var e=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(e)?e:0},Ze=function(){c.useEffect(function(){return document.body.setAttribute(A,(ee()+1).toString()),function(){var e=ee()-1;e<=0?document.body.removeAttribute(A):document.body.setAttribute(A,e.toString())}},[])},$e=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;Ze();var o=c.useMemo(function(){return Ve(a)},[a]);return c.createElement(Ue,{styles:Ge(o,!t,a,r?"":"!important")})},U=!1;if(typeof window<"u")try{var T=Object.defineProperty({},"passive",{get:function(){return U=!0,!0}});window.addEventListener("test",T,T),window.removeEventListener("test",T,T)}catch{U=!1}var L=U?{passive:!1}:!1,Qe=function(e){return e.tagName==="TEXTAREA"},he=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Qe(e)&&r[t]==="visible")},Ke=function(e){return he(e,"overflowY")},Je=function(e){return he(e,"overflowX")},te=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=me(e,n);if(a){var o=ge(e,n),s=o[1],i=o[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},et=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},tt=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},me=function(e,t){return e==="v"?Ke(t):Je(t)},ge=function(e,t){return e==="v"?et(t):tt(t)},rt=function(e,t){return e==="h"&&t==="rtl"?-1:1},nt=function(e,t,r,n,a){var o=rt(e,window.getComputedStyle(t).direction),s=o*n,i=r.target,g=t.contains(i),l=!1,f=s>0,h=0,d=0;do{var b=ge(e,i),S=b[0],u=b[1],v=b[2],p=u-v-o*S;(S||p)&&me(e,i)&&(h+=p,d+=S),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!g&&i!==document.body||g&&(t.contains(i)||t===i));return(f&&Math.abs(h)<1||!f&&Math.abs(d)<1)&&(l=!0),l},B=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},re=function(e){return[e.deltaX,e.deltaY]},ne=function(e){return e&&"current"in e?e.current:e},at=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ot=function(e){return`
|
|
39
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
+
`)},it=0,k=[];function ct(e){var t=c.useRef([]),r=c.useRef([0,0]),n=c.useRef(),a=c.useState(it++)[0],o=c.useState(ve)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var u=ke([e.lockRef.current],(e.shards||[]).map(ne),!0).filter(Boolean);return u.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),u.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(u,v){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!s.current.allowPinchZoom;var p=B(u),E=r.current,w="deltaX"in u?u.deltaX:E[0]-p[0],C="deltaY"in u?u.deltaY:E[1]-p[1],y,P=u.target,m=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in u&&m==="h"&&P.type==="range")return!1;var O=te(m,P);if(!O)return!0;if(O?y=m:(y=m==="v"?"h":"v",O=te(m,P)),!O)return!1;if(!n.current&&"changedTouches"in u&&(w||C)&&(n.current=y),!y)return!0;var D=n.current||y;return nt(D,v,u,D==="h"?w:C)},[]),g=c.useCallback(function(u){var v=u;if(!(!k.length||k[k.length-1]!==o)){var p="deltaY"in v?re(v):B(v),E=t.current.filter(function(y){return y.name===v.type&&(y.target===v.target||v.target===y.shadowParent)&&at(y.delta,p)})[0];if(E&&E.should){v.cancelable&&v.preventDefault();return}if(!E){var w=(s.current.shards||[]).map(ne).filter(Boolean).filter(function(y){return y.contains(v.target)}),C=w.length>0?i(v,w[0]):!s.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),l=c.useCallback(function(u,v,p,E){var w={name:u,delta:v,target:p,should:E,shadowParent:ut(p)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=c.useCallback(function(u){r.current=B(u),n.current=void 0},[]),h=c.useCallback(function(u){l(u.type,re(u),u.target,i(u,e.lockRef.current))},[]),d=c.useCallback(function(u){l(u.type,B(u),u.target,i(u,e.lockRef.current))},[]);c.useEffect(function(){return k.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",g,L),document.addEventListener("touchmove",g,L),document.addEventListener("touchstart",f,L),function(){k=k.filter(function(u){return u!==o}),document.removeEventListener("wheel",g,L),document.removeEventListener("touchmove",g,L),document.removeEventListener("touchstart",f,L)}},[]);var b=e.removeScrollBar,S=e.inert;return c.createElement(c.Fragment,null,S?c.createElement(o,{styles:ot(a)}):null,b?c.createElement($e,{gapMode:e.gapMode}):null)}function ut(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const st=Ie(de,ct);var ye=c.forwardRef(function(e,t){return c.createElement(j,R({},e,{ref:t,sideCar:st}))});ye.classNames=j.classNames;var lt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},x=new WeakMap,M=new WeakMap,W={},q=0,pe=function(e){return e&&(e.host||pe(e.parentNode))},ft=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=pe(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},dt=function(e,t,r,n){var a=ft(t,Array.isArray(e)?e:[e]);W[r]||(W[r]=new WeakMap);var o=W[r],s=[],i=new Set,g=new Set(a),l=function(h){!h||i.has(h)||(i.add(h),l(h.parentNode))};a.forEach(l);var f=function(h){!h||g.has(h)||Array.prototype.forEach.call(h.children,function(d){if(i.has(d))f(d);else try{var b=d.getAttribute(n),S=b!==null&&b!=="false",u=(x.get(d)||0)+1,v=(o.get(d)||0)+1;x.set(d,u),o.set(d,v),s.push(d),u===1&&S&&M.set(d,!0),v===1&&d.setAttribute(r,"true"),S||d.setAttribute(n,"true")}catch(p){console.error("aria-hidden: cannot operate on ",d,p)}})};return f(t),i.clear(),q++,function(){s.forEach(function(h){var d=x.get(h)-1,b=o.get(h)-1;x.set(h,d),o.set(h,b),d||(M.has(h)||h.removeAttribute(n),M.delete(h)),b||h.removeAttribute(r)}),q--,q||(x=new WeakMap,x=new WeakMap,M=new WeakMap,W={})}},vt=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=lt(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),dt(n,a,r,"aria-hidden")):function(){return null}};exports.DismissableLayer=ue;exports.ReactRemoveScroll=ye;exports.hideOthers=vt;exports.useFocusGuards=Le;
|