@pfct/purple 1.5.0-rc.1 → 1.5.0-rc.11
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.52hLHqtl.js +671 -0
- package/dist/chunks/index.B1zCXH4b.js +1 -0
- package/dist/chunks/index.BFOvovu2.js +1 -0
- package/dist/chunks/index.BZPx6jYI.js +8 -0
- package/dist/chunks/index.C-8GI_iQ.js +5 -0
- package/dist/chunks/index.C4zsfJoH.js +1 -0
- package/dist/chunks/index.CHQFbaeH.js +41 -0
- package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
- package/dist/chunks/index.Cdy_UEl-.js +1 -0
- package/dist/chunks/index.D-9nbSdR.js +205 -0
- package/dist/chunks/{index.styled.D_VcbV29.js → index.D0q0M2nK.js} +264 -326
- package/dist/chunks/index.D2jUN9AV.js +1 -0
- package/dist/chunks/index.D6z7cYa5.js +1 -0
- package/dist/chunks/index.DDo7KIbo.js +60 -0
- package/dist/chunks/index.DHAJ5bcO.js +1531 -0
- package/dist/chunks/index.DMhXgOEz.js +1 -0
- package/dist/chunks/index.DS2YScMD.js +27 -0
- package/dist/chunks/index.DYrg31YP.js +354 -0
- package/dist/chunks/index.Dh7jK0Mq.js +777 -0
- package/dist/chunks/index.DjUJriOp.js +1 -0
- package/dist/chunks/index.HA10ghBA.js +152 -0
- package/dist/chunks/index.Zd9j6m3g.js +1 -0
- package/dist/chunks/index.ak1mD2js.js +1 -0
- package/dist/chunks/index.eUOZnpu6.js +13 -0
- package/dist/chunks/index.nObpX_Vm.js +71 -0
- package/dist/chunks/index.vLV8RYs2.js +288 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.es.js +289 -425
- 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 +22 -24
- 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 +21 -23
- package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.styled.es.js +19 -21
- package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.es.js +10 -10
- 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 +16 -18
- 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 +16 -18
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.d.ts +37 -9
- package/dist/components/Control/Switch/index.es.js +189 -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 +18 -20
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +18 -20
- 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 +18 -20
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +18 -20
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +18 -20
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +27 -29
- 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 +11 -11
- package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/index.es.js +26 -28
- 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 +16 -18
- package/dist/components/Input/NumberInput/index.cjs.js +1 -1
- package/dist/components/Input/NumberInput/index.es.js +48 -50
- package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
- package/dist/components/Input/PostfixInput/index.util.es.js +19 -21
- package/dist/components/Input/TextField/index.cjs.js +1 -1
- package/dist/components/Input/TextField/index.es.js +10 -10
- package/dist/components/Input/index.cjs.js +1 -1
- package/dist/components/Input/index.es.js +27 -29
- 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 +17 -19
- 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 +18 -20
- 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 +10 -10
- 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 +10 -10
- package/dist/components/OverlayRoot/index.cjs.js +1 -1
- package/dist/components/OverlayRoot/index.es.js +16 -18
- 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 +14 -14
- package/dist/components/SelectBox/index.styled.cjs.js +1 -1
- package/dist/components/SelectBox/index.styled.es.js +23 -25
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.es.js +18 -20
- 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 +51 -64
- 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 +16 -18
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.es.js +14 -15
- 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 +20 -22
- 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 +154 -120
- 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 +445 -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 +387 -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 +392 -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 +17 -19
- 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 +17 -19
- package/dist/icons/src/aliases/aliases.cjs.js +1 -1
- package/dist/icons/src/aliases/aliases.d.ts +9 -9
- package/dist/icons/src/aliases/aliases.es.js +44 -44
- package/dist/icons/src/aliases/index.cjs.js +1 -1
- package/dist/icons/src/aliases/index.es.js +88 -88
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +11 -11
- package/dist/icons/src/aliases/prefixed.es.js +48 -48
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +16 -16
- package/dist/icons/src/aliases/suffixed.es.js +46 -46
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.d.ts +11 -11
- package/dist/icons/src/icons/index.es.js +50 -50
- 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 +2761 -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 +35 -34
- 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 +20 -22
- package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
- package/dist/library/BasicLayout/index.styled.es.js +45 -47
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.es.js +116 -116
- 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 +17 -19
- package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
- package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +17 -19
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +8 -8
- package/package.json +22 -15
- package/dist/chunks/index.B0KRXeX3.js +0 -205
- 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.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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as z } from "../../chunks/jsx-runtime.Drh4NO5G.js";
|
|
2
|
-
import { O as he, a as ge, b as ve, C as ye, T as be, D as Se, R as Te, P as Re } from "../../chunks/index.
|
|
2
|
+
import { O as he, a as ge, b as ve, C as ye, T as be, D as Se, R as Te, P as Re } from "../../chunks/index.vLV8RYs2.js";
|
|
3
3
|
import * as De from "react";
|
|
4
4
|
import r, { useMemo as Ee, useLayoutEffect as xe, useEffect as Oe } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { cn as at } from "../../lib/utils.es.js";
|
|
6
6
|
function Ce(t) {
|
|
7
7
|
if (typeof document > "u") return;
|
|
8
8
|
let n = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../chunks/jsx-runtime.713F0z8w.js"),z=require("react"),x=require("../../chunks/index.DjUJriOp.js"),E=require("../../chunks/index.BIcga6m3.js"),b=require("../../chunks/index.Cdy_UEl-.js"),h=require("../../chunks/index.CHQFbaeH.js"),L=require("../../chunks/index.ak1mD2js.js"),g=require("../../chunks/index.B1zCXH4b.js"),A=require("../../chunks/index.C4zsfJoH.js"),W=require("../../lib/utils.cjs.js"),O=require("../../chunks/index.DMhXgOEz.js");require("../../icons/src/icons/Alarm_fill.cjs.js");require("../../icons/src/icons/Calendar.cjs.js");const B=require("../../icons/src/icons/Cancel.cjs.js");require("../../icons/src/icons/Cancel_circle.cjs.js");require("../../icons/src/icons/Cart_fill.cjs.js");require("../../icons/src/icons/Check.cjs.js");require("../../icons/src/icons/Chevron_down.cjs.js");require("../../icons/src/icons/Chevron_right.cjs.js");require("../../icons/src/icons/Chevron_up.cjs.js");require("../../icons/src/icons/Double_Chevron_left.cjs.js");require("../../icons/src/icons/Chevron_left.cjs.js");require("../../icons/src/icons/Double_Chevron_right.cjs.js");require("../../icons/src/icons/Eye_fill.cjs.js");require("../../icons/src/icons/Eye_slash_fill.cjs.js");require("../../icons/src/icons/Filter.cjs.js");require("../../icons/src/icons/Information.cjs.js");require("../../icons/src/icons/Menu.cjs.js");require("../../icons/src/icons/Person_fill.cjs.js");require("../../icons/src/icons/Plus.cjs.js");require("../../icons/src/icons/Question_circle.cjs.js");require("../../icons/src/icons/Search.cjs.js");require("../../icons/src/icons/Re.cjs.js");require("../../icons/src/icons/Setting_fill.cjs.js");require("../../icons/src/icons/More.cjs.js");require("../../icons/src/icons/Store.cjs.js");require("../../icons/src/icons/Share.cjs.js");function G(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 i=G(z);function K(e){const t=Z(e),r=i.forwardRef((n,o)=>{const{children:s,...a}=n,c=i.Children.toArray(s),u=c.find(J);if(u){const p=u.props.children,m=c.map(f=>f===u?i.Children.count(p)>1?i.Children.only(null):i.isValidElement(p)?p.props.children:null:f);return l.jsxRuntimeExports.jsx(t,{...a,ref:o,children:i.isValidElement(p)?i.cloneElement(p,void 0,m):null})}return l.jsxRuntimeExports.jsx(t,{...a,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}function Z(e){const t=i.forwardRef((r,n)=>{const{children:o,...s}=r;if(i.isValidElement(o)){const a=X(o),c=Q(s,o.props);return o.type!==i.Fragment&&(c.ref=n?E.composeRefs(n,a):a),i.cloneElement(o,c)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var U=Symbol("radix.slottable");function J(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===U}function Q(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function X(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var j="Popover",[_,Pe]=x.createContextScope(j,[g.createPopperScope]),P=g.createPopperScope(),[Y,v]=_(j),q=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,c=P(t),u=i.useRef(null),[p,m]=i.useState(!1),[f,d]=x.useControllableState({prop:n,defaultProp:o??!1,onChange:s,caller:j});return l.jsxRuntimeExports.jsx(g.Root2,{...c,children:l.jsxRuntimeExports.jsx(Y,{scope:t,contentId:L.useId(),triggerRef:u,open:f,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(C=>!C),[d]),hasCustomAnchor:p,onCustomAnchorAdd:i.useCallback(()=>m(!0),[]),onCustomAnchorRemove:i.useCallback(()=>m(!1),[]),modal:a,children:r})})};q.displayName=j;var S="PopoverAnchor",w=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=v(S,r),s=P(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=o;return i.useEffect(()=>(a(),()=>c()),[a,c]),l.jsxRuntimeExports.jsx(g.Anchor,{...s,...n,ref:t})});w.displayName=S;var T="PopoverTrigger",I=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=v(T,r),s=P(r),a=E.useComposedRefs(t,o.triggerRef),c=l.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":H(o.open),...n,ref:a,onClick:x.composeEventHandlers(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsxRuntimeExports.jsx(g.Anchor,{asChild:!0,...s,children:c})});I.displayName=T;var y="PopoverPortal",[ee,te]=_(y,{forceMount:void 0}),N=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,s=v(y,t);return l.jsxRuntimeExports.jsx(ee,{scope:t,forceMount:r,children:l.jsxRuntimeExports.jsx(A.Presence,{present:r||s.open,children:l.jsxRuntimeExports.jsx(b.Portal,{asChild:!0,container:o,children:n})})})};N.displayName=y;var R="PopoverContent",F=i.forwardRef((e,t)=>{const r=te(R,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,s=v(R,e.__scopePopover);return l.jsxRuntimeExports.jsx(A.Presence,{present:n||s.open,children:s.modal?l.jsxRuntimeExports.jsx(re,{...o,ref:t}):l.jsxRuntimeExports.jsx(ne,{...o,ref:t})})});F.displayName=R;var oe=K("PopoverContent.RemoveScroll"),re=i.forwardRef((e,t)=>{const r=v(R,e.__scopePopover),n=i.useRef(null),o=E.useComposedRefs(t,n),s=i.useRef(!1);return i.useEffect(()=>{const a=n.current;if(a)return h.hideOthers(a)},[]),l.jsxRuntimeExports.jsx(h.ReactRemoveScroll,{as:oe,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(D,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),s.current||(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:x.composeEventHandlers(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,p=c.button===2||u;s.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:x.composeEventHandlers(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((e,t)=>{const r=v(R,e.__scopePopover),n=i.useRef(!1),o=i.useRef(!1);return l.jsxRuntimeExports.jsx(D,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(n.current||(c=r.triggerRef.current)==null||c.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var u,p;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((p=r.triggerRef.current)==null?void 0:p.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),D=i.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p,onInteractOutside:m,...f}=e,d=v(R,r),C=P(r);return h.useFocusGuards(),l.jsxRuntimeExports.jsx(h.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(b.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p,onDismiss:()=>d.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(g.Content,{"data-state":H(d.open),role:"dialog",id:d.contentId,...C,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),M="PopoverClose",k=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=v(M,r);return l.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",...n,ref:t,onClick:x.composeEventHandlers(e.onClick,()=>o.onOpenChange(!1))})});k.displayName=M;var se="PopoverArrow",V=i.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=P(r);return l.jsxRuntimeExports.jsx(g.Arrow,{...o,...n,ref:t})});V.displayName=se;function H(e){return e?"open":"closed"}var ie=q,ae=w,ce=I,le=N,ue=F,pe=k,de=V;const fe=O.cva("z-50 overflow-visible rounded-[8px] px-[15px] py-[12.5px] animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-0 typo-b2",{variants:{color:{pink:"bg-pink-400 text-gray-25",blue:"bg-blue-400 text-gray-25",gray:"bg-gray-700 text-gray-25",lime:"bg-lime-400 text-gray-25"}},defaultVariants:{color:"gray"}}),xe=O.cva("-my-px border-none",{variants:{color:{pink:"fill-pink-400",gray:"fill-gray-700",blue:"fill-blue-400",lime:"fill-lime-400"}},defaultVariants:{color:"gray"}});function me({defaultOpen:e=!0,...t}){return l.jsxRuntimeExports.jsx(ie,{"data-slot":"impact-tooltip",defaultOpen:e,...t})}function ve({...e}){return l.jsxRuntimeExports.jsx(ce,{"data-slot":"impact-tooltip-trigger",...e})}function ge({className:e,...t}){return l.jsxRuntimeExports.jsx(ae,{"data-slot":"impact-tooltip-anchor",className:e,...t})}function Re({color:e,className:t,align:r="center",side:n="top",sideOffset:o=8,collisionPadding:s=20,arrowPadding:a=8.8,children:c,closeButton:u=!1,avoidCollisions:p=!0,hideWhenDetached:m=!1,updatePositionStrategy:f="optimized",...d}){return l.jsxRuntimeExports.jsx(le,{forceMount:d.forceMount,children:l.jsxRuntimeExports.jsxs(ue,{"data-slot":"impact-tooltip-content",side:n,align:r,sideOffset:o,collisionPadding:s,arrowPadding:a,className:W.cn(fe({color:e,className:t})),avoidCollisions:p,hideWhenDetached:m,updatePositionStrategy:f,...d,children:[l.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-1.25",children:[c,u&&l.jsxRuntimeExports.jsx($,{children:l.jsxRuntimeExports.jsx(B.default,{size:15})})]}),l.jsxRuntimeExports.jsx(de,{className:xe({color:e}),width:12,height:6,style:{visibility:"visible"}})]})})}function $({...e}){return l.jsxRuntimeExports.jsx(pe,{"data-slot":"impact-tooltip-close",...e})}exports.ImpactTooltip=me;exports.ImpactTooltipAnchor=ge;exports.ImpactTooltipCloseButton=$;exports.ImpactTooltipContent=Re;exports.ImpactTooltipTrigger=ve;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
4
|
+
declare const impactTooltipVariants: (props?: ({
|
|
5
|
+
color?: "pink" | "lime" | "blue" | "gray" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function ImpactTooltip({ defaultOpen, ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
|
|
8
|
+
declare function ImpactTooltipTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
|
|
9
|
+
declare function ImpactTooltipAnchor({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
|
|
10
|
+
type ImpactTooltipContentProps = React.ComponentProps<typeof PopoverPrimitive.Content> & VariantProps<typeof impactTooltipVariants> & {
|
|
11
|
+
closeButton?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function ImpactTooltipContent({ color, className, align, side, sideOffset, collisionPadding, arrowPadding, children, closeButton, avoidCollisions, hideWhenDetached, updatePositionStrategy, ...props }: ImpactTooltipContentProps): React.JSX.Element;
|
|
14
|
+
declare function ImpactTooltipCloseButton({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Close>): React.JSX.Element;
|
|
15
|
+
export { ImpactTooltip, ImpactTooltipTrigger, ImpactTooltipContent, ImpactTooltipAnchor, ImpactTooltipCloseButton };
|
|
16
|
+
export type { ImpactTooltipContentProps };
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { j as l } from "../../chunks/jsx-runtime.Drh4NO5G.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { a as z, c as H, P as y, b as h } from "../../chunks/index.D-9nbSdR.js";
|
|
4
|
+
import { c as $, u as b } from "../../chunks/index.DLcqcWxM.js";
|
|
5
|
+
import { P as B, D as G } from "../../chunks/index.HA10ghBA.js";
|
|
6
|
+
import { h as K, R as Z, u as U, F as q } from "../../chunks/index.52hLHqtl.js";
|
|
7
|
+
import { u as J } from "../../chunks/index.eUOZnpu6.js";
|
|
8
|
+
import { c as A, R as Q, A as j, a as X, C as Y } from "../../chunks/index.DHAJ5bcO.js";
|
|
9
|
+
import { P as O } from "../../chunks/index.nObpX_Vm.js";
|
|
10
|
+
import { cn as ee } from "../../lib/utils.es.js";
|
|
11
|
+
import { c as E } from "../../chunks/index.Cc-miKAT.js";
|
|
12
|
+
import "../../icons/src/icons/Alarm_fill.es.js";
|
|
13
|
+
import "../../icons/src/icons/Calendar.es.js";
|
|
14
|
+
import oe from "../../icons/src/icons/Cancel.es.js";
|
|
15
|
+
import "../../icons/src/icons/Cancel_circle.es.js";
|
|
16
|
+
import "../../icons/src/icons/Cart_fill.es.js";
|
|
17
|
+
import "../../icons/src/icons/Check.es.js";
|
|
18
|
+
import "../../icons/src/icons/Chevron_down.es.js";
|
|
19
|
+
import "../../icons/src/icons/Chevron_right.es.js";
|
|
20
|
+
import "../../icons/src/icons/Chevron_up.es.js";
|
|
21
|
+
import "../../icons/src/icons/Double_Chevron_left.es.js";
|
|
22
|
+
import "../../icons/src/icons/Chevron_left.es.js";
|
|
23
|
+
import "../../icons/src/icons/Double_Chevron_right.es.js";
|
|
24
|
+
import "../../icons/src/icons/Eye_fill.es.js";
|
|
25
|
+
import "../../icons/src/icons/Eye_slash_fill.es.js";
|
|
26
|
+
import "../../icons/src/icons/Filter.es.js";
|
|
27
|
+
import "../../icons/src/icons/Information.es.js";
|
|
28
|
+
import "../../icons/src/icons/Menu.es.js";
|
|
29
|
+
import "../../icons/src/icons/Person_fill.es.js";
|
|
30
|
+
import "../../icons/src/icons/Plus.es.js";
|
|
31
|
+
import "../../icons/src/icons/Question_circle.es.js";
|
|
32
|
+
import "../../icons/src/icons/Search.es.js";
|
|
33
|
+
import "../../icons/src/icons/Re.es.js";
|
|
34
|
+
import "../../icons/src/icons/Setting_fill.es.js";
|
|
35
|
+
import "../../icons/src/icons/More.es.js";
|
|
36
|
+
import "../../icons/src/icons/Store.es.js";
|
|
37
|
+
import "../../icons/src/icons/Share.es.js";
|
|
38
|
+
// @__NO_SIDE_EFFECTS__
|
|
39
|
+
function te(e) {
|
|
40
|
+
const t = /* @__PURE__ */ re(e), r = s.forwardRef((n, o) => {
|
|
41
|
+
const { children: a, ...i } = n, c = s.Children.toArray(a), p = c.find(ae);
|
|
42
|
+
if (p) {
|
|
43
|
+
const u = p.props.children, m = c.map((f) => f === p ? s.Children.count(u) > 1 ? s.Children.only(null) : s.isValidElement(u) ? u.props.children : null : f);
|
|
44
|
+
return /* @__PURE__ */ l.jsx(t, { ...i, ref: o, children: s.isValidElement(u) ? s.cloneElement(u, void 0, m) : null });
|
|
45
|
+
}
|
|
46
|
+
return /* @__PURE__ */ l.jsx(t, { ...i, ref: o, children: a });
|
|
47
|
+
});
|
|
48
|
+
return r.displayName = `${e}.Slot`, r;
|
|
49
|
+
}
|
|
50
|
+
// @__NO_SIDE_EFFECTS__
|
|
51
|
+
function re(e) {
|
|
52
|
+
const t = s.forwardRef((r, n) => {
|
|
53
|
+
const { children: o, ...a } = r;
|
|
54
|
+
if (s.isValidElement(o)) {
|
|
55
|
+
const i = ie(o), c = se(a, o.props);
|
|
56
|
+
return o.type !== s.Fragment && (c.ref = n ? $(n, i) : i), s.cloneElement(o, c);
|
|
57
|
+
}
|
|
58
|
+
return s.Children.count(o) > 1 ? s.Children.only(null) : null;
|
|
59
|
+
});
|
|
60
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
61
|
+
}
|
|
62
|
+
var ne = Symbol("radix.slottable");
|
|
63
|
+
function ae(e) {
|
|
64
|
+
return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ne;
|
|
65
|
+
}
|
|
66
|
+
function se(e, t) {
|
|
67
|
+
const r = { ...t };
|
|
68
|
+
for (const n in t) {
|
|
69
|
+
const o = e[n], a = t[n];
|
|
70
|
+
/^on[A-Z]/.test(n) ? o && a ? r[n] = (...c) => {
|
|
71
|
+
const p = a(...c);
|
|
72
|
+
return o(...c), p;
|
|
73
|
+
} : o && (r[n] = o) : n === "style" ? r[n] = { ...o, ...a } : n === "className" && (r[n] = [o, a].filter(Boolean).join(" "));
|
|
74
|
+
}
|
|
75
|
+
return { ...e, ...r };
|
|
76
|
+
}
|
|
77
|
+
function ie(e) {
|
|
78
|
+
var n, o;
|
|
79
|
+
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
80
|
+
return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
81
|
+
}
|
|
82
|
+
var x = "Popover", [_, io] = H(x, [
|
|
83
|
+
A
|
|
84
|
+
]), P = A(), [ce, v] = _(x), w = (e) => {
|
|
85
|
+
const {
|
|
86
|
+
__scopePopover: t,
|
|
87
|
+
children: r,
|
|
88
|
+
open: n,
|
|
89
|
+
defaultOpen: o,
|
|
90
|
+
onOpenChange: a,
|
|
91
|
+
modal: i = !1
|
|
92
|
+
} = e, c = P(t), p = s.useRef(null), [u, m] = s.useState(!1), [f, d] = z({
|
|
93
|
+
prop: n,
|
|
94
|
+
defaultProp: o ?? !1,
|
|
95
|
+
onChange: a,
|
|
96
|
+
caller: x
|
|
97
|
+
});
|
|
98
|
+
return /* @__PURE__ */ l.jsx(Q, { ...c, children: /* @__PURE__ */ l.jsx(
|
|
99
|
+
ce,
|
|
100
|
+
{
|
|
101
|
+
scope: t,
|
|
102
|
+
contentId: J(),
|
|
103
|
+
triggerRef: p,
|
|
104
|
+
open: f,
|
|
105
|
+
onOpenChange: d,
|
|
106
|
+
onOpenToggle: s.useCallback(() => d((C) => !C), [d]),
|
|
107
|
+
hasCustomAnchor: u,
|
|
108
|
+
onCustomAnchorAdd: s.useCallback(() => m(!0), []),
|
|
109
|
+
onCustomAnchorRemove: s.useCallback(() => m(!1), []),
|
|
110
|
+
modal: i,
|
|
111
|
+
children: r
|
|
112
|
+
}
|
|
113
|
+
) });
|
|
114
|
+
};
|
|
115
|
+
w.displayName = x;
|
|
116
|
+
var S = "PopoverAnchor", N = s.forwardRef(
|
|
117
|
+
(e, t) => {
|
|
118
|
+
const { __scopePopover: r, ...n } = e, o = v(S, r), a = P(r), { onCustomAnchorAdd: i, onCustomAnchorRemove: c } = o;
|
|
119
|
+
return s.useEffect(() => (i(), () => c()), [i, c]), /* @__PURE__ */ l.jsx(j, { ...a, ...n, ref: t });
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
N.displayName = S;
|
|
123
|
+
var T = "PopoverTrigger", I = s.forwardRef(
|
|
124
|
+
(e, t) => {
|
|
125
|
+
const { __scopePopover: r, ...n } = e, o = v(T, r), a = P(r), i = b(t, o.triggerRef), c = /* @__PURE__ */ l.jsx(
|
|
126
|
+
y.button,
|
|
127
|
+
{
|
|
128
|
+
type: "button",
|
|
129
|
+
"aria-haspopup": "dialog",
|
|
130
|
+
"aria-expanded": o.open,
|
|
131
|
+
"aria-controls": o.contentId,
|
|
132
|
+
"data-state": W(o.open),
|
|
133
|
+
...n,
|
|
134
|
+
ref: i,
|
|
135
|
+
onClick: h(e.onClick, o.onOpenToggle)
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
return o.hasCustomAnchor ? c : /* @__PURE__ */ l.jsx(j, { asChild: !0, ...a, children: c });
|
|
139
|
+
}
|
|
140
|
+
);
|
|
141
|
+
I.displayName = T;
|
|
142
|
+
var R = "PopoverPortal", [le, pe] = _(R, {
|
|
143
|
+
forceMount: void 0
|
|
144
|
+
}), F = (e) => {
|
|
145
|
+
const { __scopePopover: t, forceMount: r, children: n, container: o } = e, a = v(R, t);
|
|
146
|
+
return /* @__PURE__ */ l.jsx(le, { scope: t, forceMount: r, children: /* @__PURE__ */ l.jsx(O, { present: r || a.open, children: /* @__PURE__ */ l.jsx(B, { asChild: !0, container: o, children: n }) }) });
|
|
147
|
+
};
|
|
148
|
+
F.displayName = R;
|
|
149
|
+
var g = "PopoverContent", D = s.forwardRef(
|
|
150
|
+
(e, t) => {
|
|
151
|
+
const r = pe(g, e.__scopePopover), { forceMount: n = r.forceMount, ...o } = e, a = v(g, e.__scopePopover);
|
|
152
|
+
return /* @__PURE__ */ l.jsx(O, { present: n || a.open, children: a.modal ? /* @__PURE__ */ l.jsx(de, { ...o, ref: t }) : /* @__PURE__ */ l.jsx(fe, { ...o, ref: t }) });
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
D.displayName = g;
|
|
156
|
+
var ue = /* @__PURE__ */ te("PopoverContent.RemoveScroll"), de = s.forwardRef(
|
|
157
|
+
(e, t) => {
|
|
158
|
+
const r = v(g, e.__scopePopover), n = s.useRef(null), o = b(t, n), a = s.useRef(!1);
|
|
159
|
+
return s.useEffect(() => {
|
|
160
|
+
const i = n.current;
|
|
161
|
+
if (i) return K(i);
|
|
162
|
+
}, []), /* @__PURE__ */ l.jsx(Z, { as: ue, allowPinchZoom: !0, children: /* @__PURE__ */ l.jsx(
|
|
163
|
+
k,
|
|
164
|
+
{
|
|
165
|
+
...e,
|
|
166
|
+
ref: o,
|
|
167
|
+
trapFocus: r.open,
|
|
168
|
+
disableOutsidePointerEvents: !0,
|
|
169
|
+
onCloseAutoFocus: h(e.onCloseAutoFocus, (i) => {
|
|
170
|
+
var c;
|
|
171
|
+
i.preventDefault(), a.current || (c = r.triggerRef.current) == null || c.focus();
|
|
172
|
+
}),
|
|
173
|
+
onPointerDownOutside: h(
|
|
174
|
+
e.onPointerDownOutside,
|
|
175
|
+
(i) => {
|
|
176
|
+
const c = i.detail.originalEvent, p = c.button === 0 && c.ctrlKey === !0, u = c.button === 2 || p;
|
|
177
|
+
a.current = u;
|
|
178
|
+
},
|
|
179
|
+
{ checkForDefaultPrevented: !1 }
|
|
180
|
+
),
|
|
181
|
+
onFocusOutside: h(
|
|
182
|
+
e.onFocusOutside,
|
|
183
|
+
(i) => i.preventDefault(),
|
|
184
|
+
{ checkForDefaultPrevented: !1 }
|
|
185
|
+
)
|
|
186
|
+
}
|
|
187
|
+
) });
|
|
188
|
+
}
|
|
189
|
+
), fe = s.forwardRef(
|
|
190
|
+
(e, t) => {
|
|
191
|
+
const r = v(g, e.__scopePopover), n = s.useRef(!1), o = s.useRef(!1);
|
|
192
|
+
return /* @__PURE__ */ l.jsx(
|
|
193
|
+
k,
|
|
194
|
+
{
|
|
195
|
+
...e,
|
|
196
|
+
ref: t,
|
|
197
|
+
trapFocus: !1,
|
|
198
|
+
disableOutsidePointerEvents: !1,
|
|
199
|
+
onCloseAutoFocus: (a) => {
|
|
200
|
+
var i, c;
|
|
201
|
+
(i = e.onCloseAutoFocus) == null || i.call(e, a), a.defaultPrevented || (n.current || (c = r.triggerRef.current) == null || c.focus(), a.preventDefault()), n.current = !1, o.current = !1;
|
|
202
|
+
},
|
|
203
|
+
onInteractOutside: (a) => {
|
|
204
|
+
var p, u;
|
|
205
|
+
(p = e.onInteractOutside) == null || p.call(e, a), a.defaultPrevented || (n.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
206
|
+
const i = a.target;
|
|
207
|
+
((u = r.triggerRef.current) == null ? void 0 : u.contains(i)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
), k = s.forwardRef(
|
|
213
|
+
(e, t) => {
|
|
214
|
+
const {
|
|
215
|
+
__scopePopover: r,
|
|
216
|
+
trapFocus: n,
|
|
217
|
+
onOpenAutoFocus: o,
|
|
218
|
+
onCloseAutoFocus: a,
|
|
219
|
+
disableOutsidePointerEvents: i,
|
|
220
|
+
onEscapeKeyDown: c,
|
|
221
|
+
onPointerDownOutside: p,
|
|
222
|
+
onFocusOutside: u,
|
|
223
|
+
onInteractOutside: m,
|
|
224
|
+
...f
|
|
225
|
+
} = e, d = v(g, r), C = P(r);
|
|
226
|
+
return U(), /* @__PURE__ */ l.jsx(
|
|
227
|
+
q,
|
|
228
|
+
{
|
|
229
|
+
asChild: !0,
|
|
230
|
+
loop: !0,
|
|
231
|
+
trapped: n,
|
|
232
|
+
onMountAutoFocus: o,
|
|
233
|
+
onUnmountAutoFocus: a,
|
|
234
|
+
children: /* @__PURE__ */ l.jsx(
|
|
235
|
+
G,
|
|
236
|
+
{
|
|
237
|
+
asChild: !0,
|
|
238
|
+
disableOutsidePointerEvents: i,
|
|
239
|
+
onInteractOutside: m,
|
|
240
|
+
onEscapeKeyDown: c,
|
|
241
|
+
onPointerDownOutside: p,
|
|
242
|
+
onFocusOutside: u,
|
|
243
|
+
onDismiss: () => d.onOpenChange(!1),
|
|
244
|
+
children: /* @__PURE__ */ l.jsx(
|
|
245
|
+
Y,
|
|
246
|
+
{
|
|
247
|
+
"data-state": W(d.open),
|
|
248
|
+
role: "dialog",
|
|
249
|
+
id: d.contentId,
|
|
250
|
+
...C,
|
|
251
|
+
...f,
|
|
252
|
+
ref: t,
|
|
253
|
+
style: {
|
|
254
|
+
...f.style,
|
|
255
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
256
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
257
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
258
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
259
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
)
|
|
263
|
+
}
|
|
264
|
+
)
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
), M = "PopoverClose", V = s.forwardRef(
|
|
269
|
+
(e, t) => {
|
|
270
|
+
const { __scopePopover: r, ...n } = e, o = v(M, r);
|
|
271
|
+
return /* @__PURE__ */ l.jsx(
|
|
272
|
+
y.button,
|
|
273
|
+
{
|
|
274
|
+
type: "button",
|
|
275
|
+
...n,
|
|
276
|
+
ref: t,
|
|
277
|
+
onClick: h(e.onClick, () => o.onOpenChange(!1))
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
);
|
|
282
|
+
V.displayName = M;
|
|
283
|
+
var me = "PopoverArrow", L = s.forwardRef(
|
|
284
|
+
(e, t) => {
|
|
285
|
+
const { __scopePopover: r, ...n } = e, o = P(r);
|
|
286
|
+
return /* @__PURE__ */ l.jsx(X, { ...o, ...n, ref: t });
|
|
287
|
+
}
|
|
288
|
+
);
|
|
289
|
+
L.displayName = me;
|
|
290
|
+
function W(e) {
|
|
291
|
+
return e ? "open" : "closed";
|
|
292
|
+
}
|
|
293
|
+
var ve = w, ge = N, he = I, Pe = F, xe = D, Ce = V, Re = L;
|
|
294
|
+
const ye = E(
|
|
295
|
+
"z-50 overflow-visible rounded-[8px] px-[15px] py-[12.5px] animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-0 typo-b2",
|
|
296
|
+
{
|
|
297
|
+
variants: {
|
|
298
|
+
color: {
|
|
299
|
+
pink: "bg-pink-400 text-gray-25",
|
|
300
|
+
blue: "bg-blue-400 text-gray-25",
|
|
301
|
+
gray: "bg-gray-700 text-gray-25",
|
|
302
|
+
lime: "bg-lime-400 text-gray-25"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
defaultVariants: {
|
|
306
|
+
color: "gray"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
), be = E("-my-px border-none", {
|
|
310
|
+
variants: {
|
|
311
|
+
color: {
|
|
312
|
+
pink: "fill-pink-400",
|
|
313
|
+
gray: "fill-gray-700",
|
|
314
|
+
blue: "fill-blue-400",
|
|
315
|
+
lime: "fill-lime-400"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
defaultVariants: {
|
|
319
|
+
color: "gray"
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
function co({ defaultOpen: e = !0, ...t }) {
|
|
323
|
+
return /* @__PURE__ */ l.jsx(ve, { "data-slot": "impact-tooltip", defaultOpen: e, ...t });
|
|
324
|
+
}
|
|
325
|
+
function lo({ ...e }) {
|
|
326
|
+
return /* @__PURE__ */ l.jsx(he, { "data-slot": "impact-tooltip-trigger", ...e });
|
|
327
|
+
}
|
|
328
|
+
function po({ className: e, ...t }) {
|
|
329
|
+
return /* @__PURE__ */ l.jsx(ge, { "data-slot": "impact-tooltip-anchor", className: e, ...t });
|
|
330
|
+
}
|
|
331
|
+
function uo({
|
|
332
|
+
color: e,
|
|
333
|
+
className: t,
|
|
334
|
+
align: r = "center",
|
|
335
|
+
side: n = "top",
|
|
336
|
+
sideOffset: o = 8,
|
|
337
|
+
collisionPadding: a = 20,
|
|
338
|
+
arrowPadding: i = 8.8,
|
|
339
|
+
children: c,
|
|
340
|
+
closeButton: p = !1,
|
|
341
|
+
avoidCollisions: u = !0,
|
|
342
|
+
hideWhenDetached: m = !1,
|
|
343
|
+
updatePositionStrategy: f = "optimized",
|
|
344
|
+
...d
|
|
345
|
+
}) {
|
|
346
|
+
return /* @__PURE__ */ l.jsx(Pe, { forceMount: d.forceMount, children: /* @__PURE__ */ l.jsxs(
|
|
347
|
+
xe,
|
|
348
|
+
{
|
|
349
|
+
"data-slot": "impact-tooltip-content",
|
|
350
|
+
side: n,
|
|
351
|
+
align: r,
|
|
352
|
+
sideOffset: o,
|
|
353
|
+
collisionPadding: a,
|
|
354
|
+
arrowPadding: i,
|
|
355
|
+
className: ee(ye({ color: e, className: t })),
|
|
356
|
+
avoidCollisions: u,
|
|
357
|
+
hideWhenDetached: m,
|
|
358
|
+
updatePositionStrategy: f,
|
|
359
|
+
...d,
|
|
360
|
+
children: [
|
|
361
|
+
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between gap-1.25", children: [
|
|
362
|
+
c,
|
|
363
|
+
p && /* @__PURE__ */ l.jsx(Ae, { children: /* @__PURE__ */ l.jsx(oe, { size: 15 }) })
|
|
364
|
+
] }),
|
|
365
|
+
/* @__PURE__ */ l.jsx(
|
|
366
|
+
Re,
|
|
367
|
+
{
|
|
368
|
+
className: be({ color: e }),
|
|
369
|
+
width: 12,
|
|
370
|
+
height: 6,
|
|
371
|
+
style: { visibility: "visible" }
|
|
372
|
+
}
|
|
373
|
+
)
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
) });
|
|
377
|
+
}
|
|
378
|
+
function Ae({ ...e }) {
|
|
379
|
+
return /* @__PURE__ */ l.jsx(Ce, { "data-slot": "impact-tooltip-close", ...e });
|
|
380
|
+
}
|
|
381
|
+
export {
|
|
382
|
+
co as ImpactTooltip,
|
|
383
|
+
po as ImpactTooltipAnchor,
|
|
384
|
+
Ae as ImpactTooltipCloseButton,
|
|
385
|
+
uo as ImpactTooltipContent,
|
|
386
|
+
lo as ImpactTooltipTrigger
|
|
387
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../chunks/jsx-runtime.713F0z8w.js"),p=require("react"),f=require("../../chunks/index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../chunks/jsx-runtime.713F0z8w.js"),p=require("react"),f=require("../../chunks/index.DMhXgOEz.js"),n=require("../../lib/utils.cjs.js");function h(e){if(e&&typeof e=="object"&&"default"in e)return e;const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return s.default=e,Object.freeze(s)}const a=h(p),j=f.cva("flex items-center justify-between gap-3.75",{variants:{background:{default:"bg-transparent",gray:"bg-gray-25"},type:{list:"py-5",card:"p-5 rounded-[10px]"}},compoundVariants:[{background:"default",type:"card",className:"bg-white"}],defaultVariants:{background:"default",type:"list"}}),l=a.forwardRef(({className:e,type:s,background:r,...i},d)=>t.jsxRuntimeExports.jsx("div",{ref:d,className:n.cn(j({type:s,background:r,className:e})),...i}));l.displayName="ShareUI";const c=a.forwardRef(({className:e,...s},r)=>t.jsxRuntimeExports.jsx("div",{ref:r,className:n.cn("typo-h6 text-gray-900",e),...s}));c.displayName="ShareTitle";const x=a.forwardRef(({className:e,...s},r)=>t.jsxRuntimeExports.jsx("div",{ref:r,className:n.cn("typo-t4 text-gray-500",e),...s}));x.displayName="ShareDescription";const u=a.forwardRef(({className:e,...s},r)=>t.jsxRuntimeExports.jsx("div",{ref:r,className:n.cn("m-0 flex flex-1 flex-col justify-between gap-1.25 p-0",e),...s}));u.displayName="ShareTextContainer";const o=a.forwardRef(({className:e,...s},r)=>t.jsxRuntimeExports.jsx("button",{ref:r,className:n.cn("border-0 bg-none p-0",e),...s}));o.displayName="ShareButton";const m=e=>t.jsxRuntimeExports.jsx(o,{...e,children:t.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",children:[t.jsxRuntimeExports.jsx("circle",{cx:"20.5",cy:"20",r:"20",fill:"#F9E000"}),t.jsxRuntimeExports.jsx("path",{d:"M20.5006 10.7233C14.5824 10.7233 9.78516 14.3347 9.78516 18.7921C9.78516 21.6924 11.8166 24.2343 14.8677 25.6565C14.6431 26.4524 14.0564 28.5433 13.939 28.9904C13.7933 29.5454 14.1515 29.5377 14.3882 29.3893C14.5723 29.2717 17.324 27.4892 18.5117 26.7202C19.1571 26.8108 19.8208 26.859 20.5006 26.859C26.4188 26.859 31.2161 23.2476 31.2161 18.7921C31.2161 14.3366 26.4188 10.7233 20.5006 10.7233Z",fill:"#371C1D"})]})}),g=e=>t.jsxRuntimeExports.jsx(o,{...e,children:t.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",children:[t.jsxRuntimeExports.jsx("circle",{cx:"20.5",cy:"20",r:"20",fill:"#D2D2D2"}),t.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2902 22.6446C13.3058 23.629 13.3058 25.225 14.2902 26.2094C15.2746 27.1937 16.8706 27.1937 17.855 26.2094L20.6367 23.4277C21.1639 22.9005 22.0187 22.9005 22.5459 23.4277C23.0731 23.9549 23.0731 24.8096 22.5459 25.3369L19.7642 28.1186C17.7254 30.1574 14.4198 30.1574 12.381 28.1185C10.3422 26.0797 10.3422 22.7742 12.381 20.7354L15.1627 17.9537C15.6899 17.4265 16.5447 17.4265 17.0719 17.9537C17.5991 18.4809 17.5991 19.3357 17.0719 19.8629L14.2902 22.6446Z",fill:"white"}),t.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.1434 13.791C24.1278 12.8067 25.7238 12.8067 26.7082 13.791C27.6926 14.7754 27.6926 16.3714 26.7082 17.3558L23.9265 20.1375C23.3993 20.6647 23.3993 21.5195 23.9265 22.0467C24.4537 22.5739 25.3085 22.5739 25.8357 22.0467L28.6174 19.265C30.6562 17.2262 30.6562 13.9207 28.6174 11.8819C26.5786 9.84305 23.273 9.84305 21.2342 11.8819L18.4525 14.6635C17.9253 15.1908 17.9253 16.0455 18.4525 16.5727C18.9797 17.0999 19.8345 17.0999 20.3617 16.5727L23.1434 13.791Z",fill:"white"}),t.jsxRuntimeExports.jsx("rect",{x:"15.8301",y:"22.8126",width:"10.5061",height:"2.62656",rx:"1.31328",transform:"rotate(-45 15.8301 22.8126)",fill:"white"})]})});exports.ShareButton=o;exports.ShareDescription=x;exports.ShareKakaoButton=m;exports.ShareTextContainer=u;exports.ShareTitle=c;exports.ShareUI=l;exports.ShareUrlButton=g;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "../../chunks/jsx-runtime.Drh4NO5G.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { c as d } from "../../chunks/index.
|
|
4
|
-
import {
|
|
3
|
+
import { c as d } from "../../chunks/index.Cc-miKAT.js";
|
|
4
|
+
import { cn as i } from "../../lib/utils.es.js";
|
|
5
5
|
const c = d("flex items-center justify-between gap-3.75", {
|
|
6
6
|
variants: {
|
|
7
7
|
background: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../chunks/jsx-runtime.713F0z8w.js"),J=require("react"),g=require("../../chunks/index.DjUJriOp.js"),N=require("../../chunks/index.BIcga6m3.js"),M=require("../../chunks/index.Cdy_UEl-.js"),Q=require("../../chunks/index.ak1mD2js.js"),R=require("../../chunks/index.B1zCXH4b.js"),q=require("../../chunks/index.C4zsfJoH.js"),Z=require("../../lib/utils.cjs.js");function ee(e){if(e&&typeof e=="object"&&"default"in e)return e;const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=ee(J);var te=Symbol("radix.slottable");function oe(e){const o=({children:t})=>c.jsxRuntimeExports.jsx(c.jsxRuntimeExports.Fragment,{children:t});return o.displayName=`${e}.Slottable`,o.__radixId=te,o}var re=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ne="VisuallyHidden",$=s.forwardRef((e,o)=>c.jsxRuntimeExports.jsx(g.Primitive.span,{...e,ref:o,style:{...re,...e.style}}));$.displayName=ne;var se=$,[O,De]=g.createContextScope("Tooltip",[R.createPopperScope]),D=R.createPopperScope(),F="TooltipProvider",ie=700,L="tooltip.open",[ae,A]=O(F),G=e=>{const{__scopeTooltip:o,delayDuration:t=ie,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:a}=e,l=s.useRef(!0),f=s.useRef(!1),i=s.useRef(0);return s.useEffect(()=>{const d=i.current;return()=>window.clearTimeout(d)},[]),c.jsxRuntimeExports.jsx(ae,{scope:o,isOpenDelayedRef:l,delayDuration:t,onOpen:s.useCallback(()=>{window.clearTimeout(i.current),l.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:f,onPointerInTransitChange:s.useCallback(d=>{f.current=d},[]),disableHoverableContent:n,children:a})};G.displayName=F;var P="Tooltip",[le,_]=O(P),V=e=>{const{__scopeTooltip:o,children:t,open:r,defaultOpen:n,onOpenChange:a,disableHoverableContent:l,delayDuration:f}=e,i=A(P,e.__scopeTooltip),d=D(o),[u,x]=s.useState(null),v=Q.useId(),p=s.useRef(0),m=l??i.disableHoverableContent,T=f??i.delayDuration,h=s.useRef(!1),[E,y]=g.useControllableState({prop:r,defaultProp:n??!1,onChange:I=>{I?(i.onOpen(),document.dispatchEvent(new CustomEvent(L))):i.onClose(),a==null||a(I)},caller:P}),C=s.useMemo(()=>E?h.current?"delayed-open":"instant-open":"closed",[E]),j=s.useCallback(()=>{window.clearTimeout(p.current),p.current=0,h.current=!1,y(!0)},[y]),w=s.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),H=s.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{h.current=!0,y(!0),p.current=0},T)},[T,y]);return s.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),c.jsxRuntimeExports.jsx(R.Root2,{...d,children:c.jsxRuntimeExports.jsx(le,{scope:o,contentId:v,open:E,stateAttribute:C,trigger:u,onTriggerChange:x,onTriggerEnter:s.useCallback(()=>{i.isOpenDelayedRef.current?H():j()},[i.isOpenDelayedRef,H,j]),onTriggerLeave:s.useCallback(()=>{m?w():(window.clearTimeout(p.current),p.current=0)},[w,m]),onOpen:j,onClose:w,disableHoverableContent:m,children:t})})};V.displayName=P;var S="TooltipTrigger",z=s.forwardRef((e,o)=>{const{__scopeTooltip:t,...r}=e,n=_(S,t),a=A(S,t),l=D(t),f=s.useRef(null),i=N.useComposedRefs(o,f,n.onTriggerChange),d=s.useRef(!1),u=s.useRef(!1),x=s.useCallback(()=>d.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),c.jsxRuntimeExports.jsx(R.Anchor,{asChild:!0,...l,children:c.jsxRuntimeExports.jsx(g.Primitive.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:g.composeEventHandlers(e.onPointerMove,v=>{v.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:g.composeEventHandlers(e.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:g.composeEventHandlers(e.onPointerDown,()=>{n.open&&n.onClose(),d.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:g.composeEventHandlers(e.onFocus,()=>{d.current||n.onOpen()}),onBlur:g.composeEventHandlers(e.onBlur,n.onClose),onClick:g.composeEventHandlers(e.onClick,n.onClose)})})});z.displayName=S;var k="TooltipPortal",[ce,ue]=O(k,{forceMount:void 0}),B=e=>{const{__scopeTooltip:o,forceMount:t,children:r,container:n}=e,a=_(k,o);return c.jsxRuntimeExports.jsx(ce,{scope:o,forceMount:t,children:c.jsxRuntimeExports.jsx(q.Presence,{present:t||a.open,children:c.jsxRuntimeExports.jsx(M.Portal,{asChild:!0,container:n,children:r})})})};B.displayName=k;var b="TooltipContent",Y=s.forwardRef((e,o)=>{const t=ue(b,e.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...a}=e,l=_(b,e.__scopeTooltip);return c.jsxRuntimeExports.jsx(q.Presence,{present:r||l.open,children:l.disableHoverableContent?c.jsxRuntimeExports.jsx(U,{side:n,...a,ref:o}):c.jsxRuntimeExports.jsx(pe,{side:n,...a,ref:o})})}),pe=s.forwardRef((e,o)=>{const t=_(b,e.__scopeTooltip),r=A(b,e.__scopeTooltip),n=s.useRef(null),a=N.useComposedRefs(o,n),[l,f]=s.useState(null),{trigger:i,onClose:d}=t,u=n.current,{onPointerInTransitChange:x}=r,v=s.useCallback(()=>{f(null),x(!1)},[x]),p=s.useCallback((m,T)=>{const h=m.currentTarget,E={x:m.clientX,y:m.clientY},y=ve(E,h.getBoundingClientRect()),C=me(E,y),j=he(T.getBoundingClientRect()),w=ye([...C,...j]);f(w),x(!0)},[x]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(i&&u){const m=h=>p(h,u),T=h=>p(h,i);return i.addEventListener("pointerleave",m),u.addEventListener("pointerleave",T),()=>{i.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",T)}}},[i,u,p,v]),s.useEffect(()=>{if(l){const m=T=>{const h=T.target,E={x:T.clientX,y:T.clientY},y=(i==null?void 0:i.contains(h))||(u==null?void 0:u.contains(h)),C=!Te(E,l);y?v():C&&(v(),d())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[i,u,l,d,v]),c.jsxRuntimeExports.jsx(U,{...e,ref:a})}),[de,xe]=O(P,{isInside:!1}),fe=oe("TooltipContent"),U=s.forwardRef((e,o)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:a,onPointerDownOutside:l,...f}=e,i=_(b,t),d=D(t),{onClose:u}=i;return s.useEffect(()=>(document.addEventListener(L,u),()=>document.removeEventListener(L,u)),[u]),s.useEffect(()=>{if(i.trigger){const x=v=>{const p=v.target;p!=null&&p.contains(i.trigger)&&u()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[i.trigger,u]),c.jsxRuntimeExports.jsx(M.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:x=>x.preventDefault(),onDismiss:u,children:c.jsxRuntimeExports.jsxs(R.Content,{"data-state":i.stateAttribute,...d,...f,ref:o,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsxRuntimeExports.jsx(fe,{children:r}),c.jsxRuntimeExports.jsx(de,{scope:t,isInside:!0,children:c.jsxRuntimeExports.jsx(se,{id:i.contentId,role:"tooltip",children:n||r})})]})})});Y.displayName=b;var W="TooltipArrow",X=s.forwardRef((e,o)=>{const{__scopeTooltip:t,...r}=e,n=D(t);return xe(W,t).isInside?null:c.jsxRuntimeExports.jsx(R.Arrow,{...n,...r,ref:o})});X.displayName=W;function ve(e,o){const t=Math.abs(o.top-e.y),r=Math.abs(o.bottom-e.y),n=Math.abs(o.right-e.x),a=Math.abs(o.left-e.x);switch(Math.min(t,r,n,a)){case a:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function me(e,o,t=5){const r=[];switch(o){case"top":r.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":r.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":r.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":r.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return r}function he(e){const{top:o,right:t,bottom:r,left:n}=e;return[{x:n,y:o},{x:t,y:o},{x:t,y:r},{x:n,y:r}]}function Te(e,o){const{x:t,y:r}=e;let n=!1;for(let a=0,l=o.length-1;a<o.length;l=a++){const f=o[a],i=o[l],d=f.x,u=f.y,x=i.x,v=i.y;u>r!=v>r&&t<(x-d)*(r-u)/(v-u)+d&&(n=!n)}return n}function ye(e){const o=e.slice();return o.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),ge(o)}function ge(e){if(e.length<=1)return e.slice();const o=[];for(let r=0;r<e.length;r++){const n=e[r];for(;o.length>=2;){const a=o[o.length-1],l=o[o.length-2];if((a.x-l.x)*(n.y-l.y)>=(a.y-l.y)*(n.x-l.x))o.pop();else break}o.push(n)}o.pop();const t=[];for(let r=e.length-1;r>=0;r--){const n=e[r];for(;t.length>=2;){const a=t[t.length-1],l=t[t.length-2];if((a.x-l.x)*(n.y-l.y)>=(a.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),o.length===1&&t.length===1&&o[0].x===t[0].x&&o[0].y===t[0].y?o:o.concat(t)}var Ee=G,be=V,Re=z,Ce=B,je=Y,we=X;function K({delayDuration:e=0,...o}){return c.jsxRuntimeExports.jsx(Ee,{"data-slot":"tooltip-provider",delayDuration:e,...o})}function Pe({...e}){return c.jsxRuntimeExports.jsx(K,{children:c.jsxRuntimeExports.jsx(be,{"data-slot":"tooltip",...e})})}function _e({...e}){return c.jsxRuntimeExports.jsx(Re,{"data-slot":"tooltip-trigger",...e})}function Oe({className:e,sideOffset:o=5,collisionPadding:t={left:20,right:20},children:r,...n}){return c.jsxRuntimeExports.jsx(Ce,{children:c.jsxRuntimeExports.jsxs(je,{"data-slot":"tooltip-content",sideOffset:o,className:Z.cn("animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 typo-b2 z-50 overflow-hidden rounded-[8px] border border-gray-100 bg-white px-[15px] py-[12.5px] text-gray-400",e),collisionPadding:t,...n,children:[r,c.jsxRuntimeExports.jsx(we,{className:"-my-px border-none fill-white drop-shadow-[0_1px_0_var(--color-gray-100)]"})]})})}exports.Tooltip=Pe;exports.TooltipContent=Oe;exports.TooltipProvider=K;exports.TooltipTrigger=_e;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
type TooltipContentProps = React.ComponentProps<typeof TooltipPrimitive.Content>;
|
|
7
|
+
declare function TooltipContent({ className, sideOffset, collisionPadding, children, ...props }: TooltipContentProps): React.JSX.Element;
|
|
8
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
9
|
+
export type { TooltipContentProps };
|